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

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

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


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

 Copyright Google LLC All Rights Reserved.

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

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

 (The MIT License)

 Copyright (C) 2014 by Vitaly Puzrin

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

 Copyright (c) 2014, John MacFarlane

 All rights reserved.

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

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

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

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

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


 The MIT License (MIT)

 Copyright (c) 2015-present Dan Abramov

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

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

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

 The MIT License (MIT)

 Copyright (c) 2016 Denis Rul

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

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

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

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

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

 Copyright Google Inc. All Rights Reserved.

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

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

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

Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
*/
var C9,Itz,yXm,om,zI,Dt,QW,Nz,VW,kI9,FYm,jI,zmH,THt,GI,rXm,LYz,psH,yd,VIW,jmO,Xsz,b9z,YFI,ee,DY,je,Xq,KYK,$u,AXK,b8,f5,Wm,vzK,xu,qq,dzX,Z9Y,BHO,tc,hmY,Ow,UzK,Mq,EzX,IL,H9m,O9W,C8I,jB,swz,ouz,ycz,k0W,FPs,VY,at9,QY,MIK,IYX,ccs,ebH,rcz,K8,i5O,wmH,nut,P8F,Dqm,pmO,VeF,BR,lYO,RbK,SwO,KPF,hP,JP,Acs,b59,qw9,aL,mqz,hbW,BSt,Eu9,IJ,LPs,C2,sm,oJ,tes,UqX,H5K,zR,JcI,O59,aYK,ISz,MeI,Qf,Cjz,sLI,FL,yPW,kMm,uRH,eYz,$G,PjI,zYX,LLz,DKW,pR9,XRY,VBW,AT,va,RYF,YHz,GM9,APz,qHt,UKK,O8m,oGF,Mj,kRY,uLz,oM,FG,ui,TK,cn,pa,NM,
Vp,waY,Yb,P7F,pam,da,qM,NRt,Zd,Bn,EC,h_,jJs,l89,XaY,$js,RTO,b2X,Ymm,GRm,f8m,Kzm,OC,J_,ATs,gGH,vGI,djH,WzI,xjW,F4,mj9,uI,zA,TA,cy,r4,BRz,iI,hTY,O29,L1,a8z,MFK,Idz,p1,CiI,sMz,QX,NL,kKK,j1,zEI,TaK,X4,eEz,c_s,r_W,iaH,wnz,nbK,bI,Pit,L7X,Y5,DMH,pnK,GA,f1,S1,AM,QMI,VOH,NaI,g4,ldI,Xnm,$MI,Wy,x5,mg,ZR,By,Ej,hM,REX,baY,YCF,GK9,fdI,SCI,K7z,A_H,gbI,vbX,W7I,Hy,dM9,xMI,qCH,aI,ML,mMX,Ebz,hEY,UMF,tOs,J_z,Oa9,CIs,sIm,o5F,yMY,kAH,FgI,u4I,ek9,s1,rMt,i1X,oE,wyO,n5W,PIm,LgF,py9,fRz,SjI,KgK,g5O,v5z,el,Wgz,r0,Z1W,B4I,E5I,
hkz,ULz,H1m,t1I,JMz,Do,aRY,qjO,M1I,IoI,C3H,sEs,oFs,yi9,kTI,FwI,uJH,ciI,T0I,iez,eCI,riI,P3t,Lws,DbW,wiz,QEF,nFY,VlI,Sl,Ke,g0,jE9,XiX,$bs,Y1I,xbW,foX,GTY,KwF,gFt,S1m,B0W,mbm,EFI,hCK,UbY,HeI,tlt,Oez,Jis,aoI,MlO,IDO,CAI,oqt,keK,FcI,uBX,TQm,z39,NQX,VyI,Zo,j1X,X2H,$9W,R3I,bLY,YBz,fDF,SBz,KcO,Ji,O1,Akm,x9W,CL,sB,BQF,EqO,C0K,cfm,uA,rfK,KCt,w4H,SuK,iA,AfY,g4W,WCt,dTK,xTH,quW,mTm,Z$X,BeY,P2,hzW,H$O,UTF,JfI,XB,bA,Yq,af9,MXY,Ixz,Cht,sUY,oSO,kuK,yqt,ZD,EB,nSH,Jk,D$H,a1,p5F,QUs,IF,N5m,M9,Gus,S3t,gSF,vS9,d$Y,x$s,
q3s,ZHI,h8m,U$I,yM,OHF,IJI,CXO,sDX,ot9,yYt,MR9,Jqs,tRI,F$,HHI,klI,uTX,TCH,rYH,cYz,TO,wNz,PXF,LZI,DSz,pN9,we,QDY,V7Y,NC9,jDz,XNX,Df,KZF,gtW,WZm,xSI,q8m,mSz,VM,jX,Zh9,USO,RF,OhH,Y4,GO,IvO,oVz,kDz,Fxt,ujK,f$,z19,TIO,czK,rzF,iwY,wFs,nVH,Lxz,K$,DyX,pFX,ge,de,VPI,jeK,lvF,qT,R1s,bwm,GDI,tf,vVz,WxO,dyz,xym,qLF,MT,IU,CH,s3,BIW,yr,EVI,h1K,UyI,HwI,Jzm,OwH,tPI,F2,avs,s0H,uh,C2t,ooK,MPF,y3H,eR,u9I,kBO,zjt,TTH,c3O,r3s,ejF,iiK,P29,wHm,DUX,lis,$Um,biI,GBI,KUm,Sss,fiK,A3W,voW,dUH,WUs,xUW,mUF,ZiK,jR,UUI,$S,J3X,tNW,
OiK,bh,YS,aim,Gu,MNz,Cft,ods,FoK,z0z,u1H,Jq,TXm,sRI,Pfz,LoY,DsW,Ch,p1z,NXO,Vsm,kt,l7H,R0z,$sm,f7K,SoY,KoI,AnW,vdI,mss,WoO,xsO,qoz,Z7I,EdX,BX9,UsY,h0s,iX,H7W,JnY,O7t,CGI,NS,VS,sCO,oBH,j7,uds,RD,bX,Yt,eyW,Gl,w$I,Kh,nBm,PGK,Lrt,DJF,vN,p$I,N8s,ViI,lCI,$JX,Yhz,fCF,hY,ShI,KrI,A$z,gBH,vBz,WrO,dJI,xJI,tY,ZqY,B8z,EBm,hyX,UJz,HqO,tiY,J$I,OqK,aCW,Miz,I0I,CWX,oe,iAF,wQH,yq,u$,zD,n3z,PWt,LMF,D19,pQW,QtI,N9m,$1m,RQI,bAm,YNs,Ggm,i$,nw,PF,Lw,Qq,Ny,Vq,SNK,l$,A7K,Xj,g3I,v3X,$V,WMs,d1z,x1I,trm,OAW,sQm,FjW,kLm,J7z,uyz,
cSz,lkz,P6Y,YeX,Dks,bxY,GL9,SP,Kjz,Az,g9X,v9z,dk9,xk9,qez,ZxW,WF,E9I,hdt,UkH,HxH,tdW,JSH,OxI,BiH,IWt,Cg9,s_z,qy,zMz,TUI,ulm,eMH,rGz,wDz,nkH,ipH,VfX,lW9,$cK,bpm,My,AGO,K0H,xcI,mcH,Zp9,BUH,Ek9,hMz,UcX,zB,sHO,yLt,IBz,Mfz,omm,tfz,Fhz,Lh9,TWz,cLz,elW,RlX,Ybz,$H9,gmz,XOI,HpX,ALm,zlH,PTK,bKs,k$I,Opz,JGK,aWH,CTF,lBH,l2,OK9,MAm,I_F,CUz,sjY,esW,LdK,DxY,vH,Qjs,jjK,RsK,$xO,Y5s,GpI,Kdz,S5z,AEz,WdX,v$O,Us,dxz,xxW,mxW,q5t,HH,Hvt,UxW,hsF,a_W,t2O,M2Y,OvW,Inm,J3,CkK,kNW,osX,yUI,uUz,zVz,cUI,IR,iEm,eVI,wPt,D3t,pPW,VzY,
ln9,yz,kd,bEt,YZt,F1,uf,GNO,z2,T2,fnW,c1,SZF,es,K4X,AUz,n7,gsY,vsW,W4I,d3W,x3I,m3F,qZ9,BhO,U39,hVm,HEW,tz9,ZEt,JUm,MzX,anz,Ess,Ium,CYX,Qz,sYI,y99,oA9,kUX,FO9,z4F,uiW,TJI,Vz,r9Y,iMK,c9m,nAK,PYI,LOI,NJX,lut,YGz,KOs,js,vAW,WOm,lf,dls,bf,Yd,EAm,$d,Ss,h4W,Ulm,tjI,J9I,auI,IZI,Csm,scW,oXO,F2s,e99,TlX,kxO,raI,inF,v1,ca9,wpt,xd,nXm,Psm,L2m,DEK,VLm,ppY,NlO,$E9,R99,SdH,fZI,gXI,mEF,Znz,EXO,UEF,HnH,JaX,On9,aZK,IHX,Czs,s7H,kb9,TAt,cuK,FeK,ruz,wJK,iI9,eFI,nHK,LeI,DdY,pJI,Q7z,NAz,aR,Ms,sh,Fd,lHO,XJX,RFm,GbX,uG,z5,
fHI,T5,AuY,gH9,vHI,ei,mdF,hFW,HIY,ttF,JuK,OIW,aHI,C4F,iG,shs,k6F,w8,FAF,TdW,c0I,eB9,zB9,LAs,QhF,Dmm,NdY,lzI,$mt,bFW,S0F,fzm,vCY,Qk,WAI,dmO,NJ,xmz,Vk,q0I,mmI,ZF9,ECK,Bd9,hBY,UmK,HFs,tkt,sdX,yhX,FRz,kEX,Mkm,OFm,zhX,chX,ngO,PBY,VZX,leY,$B,XzO,Rhm,bQz,GEz,AhW,vgF,dYm,xYI,qrF,mYF,UYO,ZQ9,OQm,aeO,III,YB,szY,ojF,yZO,k9X,Fum,unI,z$Y,cZY,e$K,Kq,iWY,wfz,Lut,A$,PRI,pfm,jzs,v$,lII,XfY,$2X,Yv9,G9F,R$m,Svs,vjF,qvm,m2z,h$,ZWY,U2z,OW9,J$,IAO,aIs,Mgm,sNs,yjW,kGO,Tbz,rjW,eJO,cjK,ibI,n6O,PLH,VGO,LXH,jNW,$iK,lA9,SUm,
g6I,WXO,xim,tG9,Obt,aAF,srz,yeX,Y3,d9,wKW,iyz,Ppt,LIm,pKH,DCO,QrO,NrO,x3,o9W,exK,nYm,reY,vQ,t7,l9z,XKz,YIt,GvI,f9X,SIs,KIt,Ae9,gYs,at,vYW,M1,WIm,dCm,xCK,qIF,se,mCz,EYt,UC9,HyI,Cb9,o1W,ypI,kJz,uCY,zXO,ed,cp9,eXs,rp9,i6O,wCX,n1s,LaK,pCI,Nom,V_z,b6s,$7z,YVY,SVt,Kaz,Dk,ApW,g1t,v1Y,x79,m7m,qVs,Bo9,hXF,VE,H69,t_O,U7Y,JpI,O6K,M_F,CuF,IsH,siH,aQY,orH,ywY,grm,vrY,WqK,duK,xuz,qJz,mum,ErX,BkF,htX,HVK,UuO,jd,tcX,ass,ofY,Jwz,yo9,kXs,F_I,uHm,nfK,L_z,DDs,Q$z,NOz,gi,X3Y,Y2Y,fNz,vg,gfs,Ao9,vf9,x9,W_m,dDI,xDs,mDO,
ZZH,BOH,EfF,UDz,HZO,yJY,I4Y,sVs,FyO,kkF,uVH,zfX,cJs,rJI,wk9,P_X,$Xt,Y7z,f4z,S7W,KyH,AJX,gUH,WyW,dXm,mXI,Zu9,Bfz,EUY,hfm,UXs,HuI,tos,a4W,CaI,sAt,oyO,aQ,Mk,I_,Cp,ysK,y0,FtO,Tx9,rsF,nyF,D8z,NxK,p7z,d8X,x8W,b0K,KtK,qtI,gyt,vym,jAY,fLm,QAI,YtH,zim,X7Y,w7H,ei9,m89,Z0F,BxI,LtF,RiI,hiH,H0X,JsW,M9I,Ib9,wU,zvz,uNI,rmm,npz,Lkm,pA9,QWm,jWY,XAm,lbY,bX9,Gds,Wk9,gpF,SPm,vpW,KkX,dFW,ZXO,$k,abY,tDm,IyF,CZO,oxO,yxO,bg,kWt,zrO,Tnz,cxm,ert,pwm,DfY,vD,BD,$fX,RrX,hG,bNI,Y_H,GWI,fyI,S_s,KBm,AxI,gx9,vxK,WBW,dfz,xfY,q_z,
mfY,ZNI,Uq,Bnz,ExX,hrz,Ufs,HNs,tHO,JxI,ONI,ays,MHs,Igt,CFs,tG,olF,khY,upz,c4I,iDY,wrY,nlt,LsO,prI,Q5H,NpW,j5z,RAY,Xrm,bDm,YQW,Ghz,KsI,dVY,xVX,mVY,nK,Bp9,iT,hAz,UVm,PO,HDO,tJY,J4H,ODK,DB,Cnz,oTW,zqF,usY,c2I,eqt,XI,$m,r2K,wxs,Pnt,Llz,pxz,QuW,nTF,NFI,$rm,GfI,fhs,RH,SAt,KlX,drm,A2H,vTs,Wl9,ETW,qA9,hqO,UrF,t4m,OzX,ahz,M4Y,IwK,C1s,s9m,yD9,k7H,FQI,ubX,zWt,cDF,rDs,nZO,peI,Vv9,lws,RWH,AL,boO,YpF,G7I,fwW,SpW,ADm,gZH,vZm,WQt,dG9,xGW,qpm,mGs,ZoO,BPY,EZW,UGm,hWI,JDI,awY,MvY,WO,I1X,C9K,yCO,oOK,xm,um9,z2m,rCY,nOm,
icH,e2K,Doz,LDs,jOX,poz,Eb,N2Y,Gom,$o9,R2F,bcY,YlF,f1Y,KDt,Slm,hL,Ub,qlO,gOm,xoY,doI,vOz,WDm,B2W,h2Y,Hc9,Uoz,a1I,OcI,CVs,sKX,y8F,krs,oWz,FT9,zcm,uEF,c8Y,iss,Cv,wqK,nWz,D5I,jKt,YEW,oj,fGY,gW9,x5H,d5F,vWt,WTO,zp,EWs,m5W,ZsH,hcI,HsO,U5s,OsX,aGt,IlW,Cmz,s6z,o8K,yvY,FFz,uPH,pv,T7I,Nx,cvO,wWW,n8z,XW,PmI,DeI,RGI,bdW,VaK,$eI,j6K,llH,SR9,KFH,flW,AvW,g8I,xeH,v8s,qRH,meI,fv,B7I,E8I,hGF,ZdH,HdK,UeW,S2,alK,kVO,FbI,u3K,z7I,TBK,cKm,wLI,rKH,iJm,e7I,PCz,Dnm,pLW,Vm9,jbz,XLY,W9,$nI,R7I,bJW,GVz,f$H,S$O,KbF,AKH,vRF,dnY,
xnW,ZJz,mnO,ERY,BB9,h7z,UnO,HJs,md,JKW,zOF,F9I,eOH,rym,DPt,pTO,Qft,Ncm,VKH,jfF,$PH,ROt,bOm,YSI,SSO,K9H,Ays,ghs,vhI,W9s,dPK,xPz,qSF,mPz,ZOt,Ehm,hO9,UPs,tKm,OO9,MKW,ov9,sPz,CHO,I5z,kiF,F1F,zN,uaI,z5z,TLF,c5s,i_I,e5m,wbY,r5K,nvz,rh,PHW,L1I,DRs,pbm,QPY,NL9,V$W,XbO,l5I,jPm,$RX,Gim,f5K,LE,SKm,K1I,A5K,gvF,vvX,W1X,xRY,qKF,mRH,Z_m,h5W,Evm,O_H,BLs,pE,a5H,URs,J5I,CqO,oIK,zZW,F8I,u09,knH,ygF,$s,TzH,eZ9,rgI,ifm,wEm,nII,bk,Ys,QSK,L8z,PqO,DIt,fjO,YMK,pEm,bfK,dIK,xIs,qMm,Zn,mII,ZfF,BzX,UIs,tut,Of9,Mum,Imz,Clt,kwF,
yQt,Ffm,zHX,JU,eHO,rQI,irI,wZm,a8,M3,LfK,QGs,$6O,GwI,fmK,SOz,Kfm,AQX,vwm,d6H,WfY,x6F,qOz,ZrY,BjI,EwI,hHY,U6m,HrW,kA,amH,tSz,Fi,I6s,MSm,CNK,zKI,TgX,kcO,y1O,uMs,FGK,wGt,nDW,PNI,LGt,DQm,pGt,Q4H,NgF,l6m,V8Y,j4s,XGI,RKF,YWm,f6O,KG9,gDK,xQF,qWI,mQY,ZPW,BgH,ej,hKH,EDW,rJ,UQz,t8O,J1s,OPz,a6F,oNz,y6s,kSW,FmY,urW,zn9,TMm,pM,enX,r6F,iCH,nNz,wXm,Pym,DwI,pXH,Q3t,VTm,j3H,NMI,YkY,Sk9,Kmt,A6W,gNH,WmY,vN9,ZCF,BMs,ENK,hnI,HCz,UwI,J6H,CJX,IcX,oLm,yrO,kFF,crO,e_F,rrs,i4I,DWI,L5Y,PJm,NZX,jgO,VxI,lcH,A9,XUY,$Wt,GFm,YgW,
fc9,Sgz,K5I,ArI,W5t,xWz,qgF,mWW,Z4K,BZO,ELO,h_K,H49,UWO,txW,O4m,JrF,acm,MxY,IVF,C5H,sTI,yFs,kYW,F6O,uYK,zPI,Twz,cFs,rF9,itK,ePz,h9,P5K,DAt,p8F,QTO,NwW,jTY,lVF,GYt,fVm,v0t,dAO,xAX,Zts,Bwm,E0O,hPW,UAO,HtI,JFs,Otz,MMH,CSW,oQz,uA9,k1X,yHH,FHF,zDs,eDI,TKF,cHW,iRs,PSz,LHH,DNt,QXY,NKK,VbO,lXH,$NW,jXm,RDW,bRF,Y6z,G1Y,fXz,KHY,AHY,gQF,vQm,dNO,WHY,xN9,q6K,mNH,ZRK,BKm,EQm,hDt,UNO,JHH,ORI,HRH,tbs,I2s,oJI,yBW,nJX,eN9,w69,PoO,iks,ym,LWz,DZm,QaK,jat,V5O,l2W,X6m,kX,us,RNI,bkX,cp,eL,YfX,GmW,ABI,WWH,xZW,qfY,mZI,ZkI,
BDW,hN9,UZm,Hkm,t5z,JB9,OkI,a2z,wl,M5z,IqW,Pp,CwI,skF,oPW,yV9,kjm,FSz,pn,Qm,uzK,zaX,NE,T6t,cVH,eaI,rVF,wBK,nPI,LSt,V6H,N6F,QkI,jkO,lq9,Gjt,RaY,bGm,$vt,Yct,jL,AVI,gPK,vPW,WSm,dvz,qcI,EPm,ZGs,ls,mvW,JVF,aqz,M6I,IKz,CdW,syH,kHH,FJF,zuK,TEz,cRI,euz,iTK,w_m,ni9,LJm,D_F,p_H,NEH,V0I,lKH,X_Y,GH9,fKz,SyH,ARm,KJK,viH,WJY,d_m,x_m,qyW,m_X,Eis,ZTI,huF,t0Y,IEm,CrI,sxH,onH,kQF,SL,Aa,Kn,F3I,uXI,zeK,T$I,rbz,eem,wIt,nnt,PrX,DBz,pIz,Qxm,Vpm,lEI,$BX,ReO,bUI,vp,YTI,fEY,STH,gns,vnm,Wp,dl,xBO,W3s,qTY,B$K,mBI,Enz,qE,UBI,
HUX,OUO,Mpm,m2,CPF,soI,oEX,yOs,kCK,FEs,u_9,e6z,rOO,nEF,i3s,wtI,PPt,LEH,Nvt,D4X,Qom,Vqm,joX,lPm,R6K,b3m,YxH,GCz,fPm,WEz,vEO,Bv9,U4K,ME,H3m,lDK,tq9,JOF,aPX,IOF,CcO,zIz,TmH,yV,cdK,eI9,rdH,iSX,wcm,PcH,Dgm,neY,LKI,Nm9,QvX,jvm,lOm,Xcm,$gm,RIm,bSY,Y4m,GaI,AdI,WKF,geO,dgF,xgs,q4H,uz,mgO,ZSI,Tb,EeX,BmW,hIK,Ugz,tCO,JdI,aOt,MCI,Ipm,CMK,sZK,yWm,ucm,cWW,iBY,rWY,wYs,n_W,DaH,bBK,VhI,G3m,fpX,KpX,AWO,v_t,da9,qiK,xaX,ZBW,BGm,E_I,hRW,UaO,HBF,JWz,Mhm,Iaz,CDH,sBK,ktI,yIH,TVO,cIW,eUI,rIt,imH,naW,Xv,L$z,YH,pdF,NVt,V3W,
RUX,YDs,K$W,gaz,vaz,dOW,xOX,qDY,ZmO,Ea9,hUz,t3m,Omz,IFF,M3K,aaK,gA,sqI,CQm,o7O,yNI,kzX,FVI,uDK,zgz,Tqs,egt,rNK,iYs,n7Y,D0H,wuK,PQH,puW,Qqm,Nqm,Vwm,lFW,XuW,KVW,ANm,g7K,v7I,WVH,q9t,ZH,U0s,HYK,twm,JNK,OYW,BJ,En,B2,ksz,Un,FiW,cts,rtI,eLO,HJ,ig9,wMY,qmW;_.Im=function(I,C){if(Error.captureStackTrace)Error.captureStackTrace(this,_.Im);else{var y=Error().stack;y&&(this.stack=y)}I&&(this.message=String(I));C!==void 0&&(this.cause=C)};
C9=function(){throw Error("B");};
Itz=function(I,C){C=String.fromCharCode.apply(null,C);return I==null?C:I+C};
yXm=function(I){var C=!1;C=C===void 0?!1:C;if(CKI){if(C&&(smK?!I.isWellFormed():/(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])/.test(I)))throw Error("C");I=(ozm||(ozm=new TextEncoder)).encode(I)}else{for(var y=0,k=new Uint8Array(3*I.length),F=0;F<I.length;F++){var z=I.charCodeAt(F);if(z<128)k[y++]=z;else{if(z<2048)k[y++]=z>>6|192;else{if(z>=55296&&z<=57343){if(z<=56319&&F<I.length){var c=I.charCodeAt(++F);if(c>=56320&&c<=57343){z=(z-55296)*1024+c-56320+65536;k[y++]=z>>18|
240;k[y++]=z>>12&63|128;k[y++]=z>>6&63|128;k[y++]=z&63|128;continue}else F--}if(C)throw Error("C");z=65533}k[y++]=z>>12|224;k[y++]=z>>6&63|128}k[y++]=z&63|128}}I=y===k.length?k:k.subarray(0,y)}return I};
om=function(I){_.sF.setTimeout(function(){throw I;},0)};
_.FO=function(I,C){return I.lastIndexOf(C,0)==0};
zI=function(I,C){var y=I.length-C.length;return y>=0&&I.indexOf(C,y)==y};
_.eI=function(I){return/^[\s\xa0]*$/.test(I)};
_.rH=function(I,C){return I.indexOf(C)!=-1};
_.iK=function(I,C){return _.rH(I.toLowerCase(),C.toLowerCase())};
_.wH=function(){var I=_.sF.navigator;return I&&(I=I.userAgent)?I:""};
Dt=function(I){if(!n9||!Ps)return!1;for(var C=0;C<Ps.brands.length;C++){var y=Ps.brands[C].brand;if(y&&_.rH(y,I))return!0}return!1};
QW=function(I){return _.rH(_.wH(),I)};
Nz=function(){return n9?!!Ps&&Ps.brands.length>0:!1};
VW=function(){return Nz()?!1:QW("Opera")};
kI9=function(){return Nz()?!1:QW("Trident")||QW("MSIE")};
FYm=function(){return Nz()?Dt("Microsoft Edge"):QW("Edg/")};
jI=function(){return QW("Firefox")||QW("FxiOS")};
_.Yz=function(){return QW("Safari")&&!(_.bK()||(Nz()?0:QW("Coast"))||VW()||(Nz()?0:QW("Edge"))||FYm()||(Nz()?Dt("Opera"):QW("OPR"))||jI()||QW("Silk")||QW("Android"))};
_.bK=function(){return Nz()?Dt("Chromium"):(QW("Chrome")||QW("CriOS"))&&!(Nz()?0:QW("Edge"))||QW("Silk")};
_.uOz=function(){return QW("Android")&&!(_.bK()||jI()||VW()||QW("Silk"))};
zmH=function(I){var C={};I.forEach(function(y){C[y[0]]=y[1]});
return function(y){return C[y.find(function(k){return k in C})]||""}};
THt=function(I){var C=_.wH();if(I==="Internet Explorer"){if(kI9())if((I=/rv: *([\d\.]*)/.exec(C))&&I[1])C=I[1];else{I="";var y=/MSIE +([\d\.]+)/.exec(C);if(y&&y[1])if(C=/Trident\/(\d.\d)/.exec(C),y[1]=="7.0")if(C&&C[1])switch(C[1]){case "4.0":I="8.0";break;case "5.0":I="9.0";break;case "6.0":I="10.0";break;case "7.0":I="11.0"}else I="7.0";else I=y[1];C=I}else C="";return C}var k=RegExp("([A-Z][\\w ]+)/([^\\s]+)\\s*(?:\\((.*?)\\))?","g");y=[];for(var F;F=k.exec(C);)y.push([F[1],F[2],F[3]||void 0]);
C=zmH(y);switch(I){case "Opera":if(VW())return C(["Version","Opera"]);if(Nz()?Dt("Opera"):QW("OPR"))return C(["OPR"]);break;case "Microsoft Edge":if(Nz()?0:QW("Edge"))return C(["Edge"]);if(FYm())return C(["Edg"]);break;case "Chromium":if(_.bK())return C(["Chrome","CriOS","HeadlessChrome"])}return I==="Firefox"&&jI()||I==="Safari"&&_.Yz()||I==="Android Browser"&&_.uOz()||I==="Silk"&&QW("Silk")?(C=y[2])&&C[1]||"":""};
_.cXm=function(I){if(Nz()&&I!=="Silk"){var C=Ps.brands.find(function(y){return y.brand===I});
if(!C||!C.version)return NaN;C=C.version.split(".")}else{C=THt(I);if(C==="")return NaN;C=C.split(".")}return C.length===0?NaN:Number(C[0])};
GI=function(){return n9?!!Ps&&!!Ps.platform:!1};
_.emY=function(){return GI()?Ps.platform==="Android":QW("Android")};
rXm=function(){return QW("iPhone")&&!QW("iPod")&&!QW("iPad")};
_.f9=function(){return rXm()||QW("iPad")||QW("iPod")};
_.i9K=function(){return GI()?Ps.platform==="macOS":QW("Macintosh")};
_.wsX=function(){return GI()?Ps.platform==="Windows":QW("Windows")};
_.nzI=function(){return GI()?Ps.platform==="Chrome OS":QW("CrOS")};
_.K9=function(I){return I[I.length-1]};
_.AX=function(I,C,y){C=_.PKz(I,C,y);return C<0?null:typeof I==="string"?I.charAt(C):I[C]};
_.PKz=function(I,C,y){for(var k=I.length,F=typeof I==="string"?I.split(""):I,z=0;z<k;z++)if(z in F&&C.call(y,F[z],z,I))return z;return-1};
LYz=function(I){for(var C=_.gH,y=typeof I==="string"?I.split(""):I,k=I.length-1;k>=0;k--)if(k in y&&C.call(void 0,y[k],k,I))return k;return-1};
_.qz=function(I,C){return _.dH(I,C)>=0};
_.Dzt=function(I,C){_.qz(I,C)||I.push(C)};
_.Hs=function(I,C){C=_.dH(I,C);var y;(y=C>=0)&&_.UF(I,C);return y};
_.UF=function(I,C){Array.prototype.splice.call(I,C,1)};
_.tX=function(I){var C=I.length;if(C>0){for(var y=Array(C),k=0;k<C;k++)y[k]=I[k];return y}return[]};
_.C5=function(I,C){for(var y=1;y<arguments.length;y++){var k=arguments[y];if(_.Mz(k)){var F=I.length||0,z=k.length||0;I.length=F+z;for(var c=0;c<z;c++)I[F+c]=k[c]}else I.push(k)}};
_.Qmm=function(I,C,y,k){Array.prototype.splice.apply(I,psH(arguments,1))};
psH=function(I,C,y){return arguments.length<=2?Array.prototype.slice.call(I,C):Array.prototype.slice.call(I,C,y)};
yd=function(I,C){C=C||I;for(var y=0,k=0,F={};k<I.length;){var z=I[k++],c=_.sw(z)?"o"+_.ow(z):(typeof z).charAt(0)+z;Object.prototype.hasOwnProperty.call(F,c)||(F[c]=!0,C[y++]=z)}C.length=y};
_.NHm=function(I,C,y){y=y||_.Fq;for(var k=0,F=I.length,z;k<F;){var c=k+(F-k>>>1);var r=y(C,I[c]);r>0?k=c+1:(F=c,z=!r)}return z?k:-k-1};
_.u8=function(I,C,y){if(!_.Mz(I)||!_.Mz(C)||I.length!=C.length)return!1;var k=I.length;y=y||VIW;for(var F=0;F<k;F++)if(!y(I[F],C[F]))return!1;return!0};
_.Fq=function(I,C){return I>C?1:I<C?-1:0};
VIW=function(I,C){return I===C};
jmO=function(I,C,y){C=Array.prototype.splice.call(I,C,1);Array.prototype.splice.call(I,y,0,C[0])};
Xsz=function(I){return ltI[I]||""};
b9z=function(I){if(!$zz)return _.T0(I);I=RmW.test(I)?I.replace(RmW,Xsz):I;I=atob(I);for(var C=new Uint8Array(I.length),y=0;y<I.length;y++)C[y]=I.charCodeAt(y);return C};
YFI=function(I,C){I.__closure__error__context__984382||(I.__closure__error__context__984382={});I.__closure__error__context__984382.severity=C};
_.cm=function(I){I=Error(I);YFI(I,"warning");return I};
ee=function(I,C){if(I!=null){var y;var k=(y=GIm)!=null?y:GIm={};y=k[I]||0;y>=C||(k[I]=y+1,I=Error(),YFI(I,"incident"),om(I))}};
DY=function(I,C,y){return typeof Symbol==="function"&&typeof Symbol()==="symbol"?(y===void 0?0:y)&&Symbol.for&&I?Symbol.for(I):I!=null?Symbol(I):Symbol():C};
je=function(I,C){Nq||_.Vd in I||fts(I,SFt);I[_.Vd]|=C};
Xq=function(I,C){Nq||_.Vd in I||fts(I,SFt);I[_.Vd]=C};
KYK=function(I){if(4&I)return 512&I?512:1024&I?1024:0};
$u=function(I){je(I,34);return I};
AXK=function(I){je(I,32);return I};
b8=function(){return typeof BigInt==="function"};
f5=function(I,C){return C===void 0?I.copyOnWrite!==Yu&&!!(2&(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Vd]|0)):!!(2&C)&&I.copyOnWrite!==Yu};
_.vm=function(I,C){if(I!=null)if(typeof I==="string")I=I?new Se(I,Ac):_.gS();else if(I.constructor!==Se)if(gzm&&I!=null&&I instanceof Uint8Array)I=I.length?new Se(new Uint8Array(I),Ac):_.gS();else{if(!C)throw Error();I=void 0}return I};
Wm=function(I,C){if(typeof C!=="number"||C<0||C>=I.length)throw Error();};
vzK=function(I,C,y){C=C&128?0:-1;var k=I.length,F;if(F=!!k)F=I[k-1],F=F!=null&&typeof F==="object"&&F.constructor===Object;for(var z=k+(F?-1:0),c=0;c<z;c++)y(c-C,I[c]);if(F){I=I[k-1];for(var r in I)!isNaN(r)&&y(+r,I[r])}};
xu=function(I){return I&128?dS:void 0};
qq=function(I){I.isGuard_doNotManuallySetPrettyPlease=!0;return I};
dzX=function(){var I=WYO;return qq(function(C){for(var y in I)if(C===I[y]&&!/^[0-9]+$/.test(y))return!0;return!1})};
_.Bm=function(I){var C=I;if(xzH(C)){if(!/^\s*(?:-?[1-9]\d*|0)?\s*$/.test(C))throw Error(String(C));}else if(qFz(C)&&!Number.isSafeInteger(C))throw Error(String(C));return mP?BigInt(I):I=mzI(I)?I?"1":"0":xzH(I)?I.trim()||"0":String(I)};
Z9Y=function(I,C){if(I.length>C.length)return!1;if(I.length<C.length||I===C)return!0;for(var y=0;y<I.length;y++){var k=I[y],F=C[y];if(k>F)return!1;if(k<F)return!0}};
BHO=function(I){var C=I>>>0;Ew=C;Hm=(I-C)/4294967296>>>0};
tc=function(I){if(I<0){BHO(-I);var C=_.T(EzX(Ew,Hm));I=C.next().value;C=C.next().value;Ew=I>>>0;Hm=C>>>0}else BHO(I)};
hmY=function(I,C){var y=C*4294967296+(I>>>0);return Number.isSafeInteger(y)?y:_.Jc(I,C)};
Ow=function(I,C){var y=C&2147483648;y&&(I=~I+1>>>0,C=~C>>>0,I==0&&(C=C+1>>>0));I=hmY(I,C);return typeof I==="number"?y?-I:I:y?"-"+I:I};
_.Jc=function(I,C){C>>>=0;I>>>=0;if(C<=2097151)var y=""+(4294967296*C+I);else b8()?y=""+(BigInt(C)<<BigInt(32)|BigInt(I)):(y=(I>>>24|C<<8)&16777215,C=C>>16&65535,I=(I&16777215)+y*6777216+C*6710656,y+=C*8147497,C*=2,I>=1E7&&(y+=I/1E7>>>0,I%=1E7),y>=1E7&&(C+=y/1E7>>>0,y%=1E7),y=C+UzK(y)+UzK(I));return y};
UzK=function(I){I=String(I);return"0000000".slice(I.length)+I};
_.aw=function(I,C){C&2147483648?b8()?I=""+(BigInt(C|0)<<BigInt(32)|BigInt(I>>>0)):(C=_.T(EzX(I,C)),I=C.next().value,C=C.next().value,I="-"+_.Jc(I,C)):I=_.Jc(I,C);return I};
Mq=function(I){if(I.length<16)tc(Number(I));else if(b8())I=BigInt(I),Ew=Number(I&BigInt(4294967295))>>>0,Hm=Number(I>>BigInt(32)&BigInt(4294967295));else{var C=+(I[0]==="-");Hm=Ew=0;for(var y=I.length,k=C,F=(y-C)%6+C;F<=y;k=F,F+=6)k=Number(I.slice(k,F)),Hm*=1E6,Ew=Ew*1E6+k,Ew>=4294967296&&(Hm+=Math.trunc(Ew/4294967296),Hm>>>=0,Ew>>>=0);C&&(C=_.T(EzX(Ew,Hm)),I=C.next().value,C=C.next().value,Ew=I,Hm=C)}};
EzX=function(I,C){C=~C;I?I=~I+1:C+=1;return[I,C]};
IL=function(I){return Array.prototype.slice.call(I)};
_.C8=function(I,C){throw Error(C===void 0?"unexpected value "+I+"!":C);};
_.kK=function(I){if(I!=null&&typeof I!=="number")throw Error("I`"+typeof I+"`"+I);return I};
_.uj=function(I){if(I==null||typeof I==="number")return I;if(I==="NaN"||I==="Infinity"||I==="-Infinity")return Number(I)};
H9m=function(I){if(I!=null&&typeof I!=="boolean")throw Error("J`"+_.zM(I)+"`"+I);return I};
_.tI9=function(I){if(I==null||typeof I==="boolean")return I;if(typeof I==="number")return!!I};
_.cR=function(I){switch(typeof I){case "bigint":return!0;case "number":return TM(I);case "string":return JXY.test(I);default:return!1}};
_.eB=function(I){if(!TM(I))throw _.cm("enum");return I|0};
_.ij=function(I){return I==null?I:TM(I)?I|0:void 0};
O9W=function(I){if(typeof I!=="number")throw _.cm("int32");if(!TM(I))throw _.cm("int32");return I|0};
_.PR=function(I){return I==null?I:O9W(I)};
_.DS=function(I){if(I==null)return I;if(typeof I==="string"&&I)I=+I;else if(typeof I!=="number")return;return TM(I)?I|0:void 0};
_.p8=function(I){if(I==null)return I;if(typeof I==="string"&&I)I=+I;else if(typeof I!=="number")return;return TM(I)?I>>>0:void 0};
C8I=function(I){var C=0;C=C===void 0?0:C;if(!_.cR(I))throw _.cm("int64");var y=typeof I;switch(C){case 512:switch(y){case "string":return QY(I);case "bigint":return String(NK(64,I));default:return at9(I)}case 1024:switch(y){case "string":return MIK(I);case "bigint":return _.Bm(NK(64,I));default:return IYX(I)}case 0:switch(y){case "string":return QY(I);case "bigint":return _.Bm(NK(64,I));default:return VY(I)}default:return _.C8(C,"Unknown format requested type for int64")}};
jB=function(I){return I==null?I:C8I(I)};
swz=function(I){if(I[0]==="-")return!1;var C=I.length;return C<20?!0:C===20&&Number(I.substring(0,6))<184467};
ouz=function(I){var C=I.length;return I[0]==="-"?C<20?!0:C===20&&Number(I.substring(0,7))>-922337:C<19?!0:C===19&&Number(I.substring(0,6))<922337};
ycz=function(I){if(I<0){tc(I);var C=_.Jc(Ew,Hm);I=Number(C);return lj(I)?I:C}C=String(I);if(swz(C))return C;tc(I);return hmY(Ew,Hm)};
k0W=function(I){if(ouz(I))return I;Mq(I);return _.aw(Ew,Hm)};
FPs=function(I){if(swz(I))return I;Mq(I);return _.Jc(Ew,Hm)};
VY=function(I){I=$K(I);lj(I)||(tc(I),I=Ow(Ew,Hm));return I};
_.RL=function(I){I=$K(I);return I>=0&&lj(I)?I:ycz(I)};
at9=function(I){I=$K(I);if(lj(I))I=String(I);else{var C=String(I);ouz(C)?I=C:(tc(I),I=_.aw(Ew,Hm))}return I};
_.uq9=function(I){I=$K(I);if(I>=0&&lj(I))I=String(I);else{var C=String(I);swz(C)?I=C:(tc(I),I=_.Jc(Ew,Hm))}return I};
QY=function(I){var C=$K(Number(I));if(lj(C))return String(C);C=I.indexOf(".");C!==-1&&(I=I.substring(0,C));return k0W(I)};
MIK=function(I){var C=$K(Number(I));if(lj(C))return _.Bm(C);C=I.indexOf(".");C!==-1&&(I=I.substring(0,C));return b8()?_.Bm(NK(64,BigInt(I))):_.Bm(k0W(I))};
IYX=function(I){return lj(I)?_.Bm(VY(I)):_.Bm(at9(I))};
_.zbH=function(I){return lj(I)?_.Bm(_.RL(I)):_.Bm(_.uq9(I))};
_.GM=function(I){var C=$K(Number(I));if(lj(C)&&C>=0)return String(C);C=I.indexOf(".");C!==-1&&(I=I.substring(0,C));return FPs(I)};
_.TSF=function(I){var C=$K(Number(I));if(lj(C)&&C>=0)return _.Bm(C);C=I.indexOf(".");C!==-1&&(I=I.substring(0,C));return b8()?_.Bm((0,_.f8)(64,BigInt(I))):_.Bm(FPs(I))};
ccs=function(I,C){C=C===void 0?!1:C;var y=typeof I;if(I==null)return I;if(y==="bigint")return String(NK(64,I));if(_.cR(I))return y==="string"?QY(I):C?at9(I):VY(I)};
ebH=function(I){if(I==null)return I;var C=typeof I;if(C==="bigint")return String(NK(64,I));if(_.cR(I)){if(C==="string")return QY(I);if(C==="number")return VY(I)}};
rcz=function(I){if(I==null)return I;var C=typeof I;if(C==="bigint")return String((0,_.f8)(64,I));if(_.cR(I)){if(C==="string")return _.GM(I);if(C==="number")return _.RL(I)}};
_.SB=function(I){if(typeof I!=="string")throw Error();return I};
K8=function(I){if(I!=null&&typeof I!=="string")throw Error();return I};
_.AP=function(I){return I==null||typeof I==="string"?I:void 0};
i5O=function(I,C,y,k){if(I!=null&&I[gy]===vR)return I;if(!Array.isArray(I))return y?k&2?((I=C[WR])||(I=new C,$u(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),I=C[WR]=I),C=I):C=new C:C=void 0,C;y=I[_.Vd]|0;k=y|k&32|k&2;k!==y&&Xq(I,k);return new C(I)};
wmH=function(I,C,y){I=C?O9W(I):_.DS(I);return I==null?y?0:void 0:I|0};
nut=function(I){return I};
P8F=function(I){return I};
Dqm=function(I,C,y,k,F,z){I=i5O(I,k,y,z);F&&(I=LPs(I));return I};
pmO=function(I){return[I,this.get(I)]};
VeF=function(){return Qwz||(Qwz=new dy($u([]),void 0,void 0,void 0,NSm))};
BR=function(I){var C=qK(mL);return C?I[C]:void 0};
lYO=function(I,C){var y=qK(mL),k;Nq&&y&&((k=I[y])==null?void 0:k[C])!=null&&ee(jwW,3)};
RbK=function(I,C){var y=y===void 0?!1:y;if(qK(Xm9)&&qK(mL)&&void 0===Xm9){var k=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=k[mL];if(!F)return;if(F=F.reviveUnknownFields)try{F(k,C,$qI);return}catch(z){om(z)}}y&&(I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,(y=qK(mL))&&y in I&&(I=I[y])&&delete I[C])};
SwO=function(I,C,y,k){var F=k!==void 0;k=!!k;var z=qK(mL),c;!F&&Nq&&z&&(c=I[z])&&EH(c,b59);z=[];var r=I.length;c=4294967295;var w=!1,L=!!(C&64),D=L?C&128?0:-1:void 0;if(!(C&1)){var p=r&&I[r-1];p!=null&&typeof p==="object"&&p.constructor===Object?(r--,c=r):p=void 0;if(L&&!(C&128)&&!F){w=!0;var Q;c=((Q=Ywz)!=null?Q:nut)(c-D,D,I,p)+D}}C=void 0;for(Q=0;Q<r;Q++){var X=I[Q];if(X!=null&&(X=y(X,k))!=null)if(L&&Q>=c){var b=Q-D,S=void 0;((S=C)!=null?S:C={})[b]=X}else z[Q]=X}if(p)for(var A in p)r=p[A],r!=null&&
(r=y(r,k))!=null&&(Q=+A,X=void 0,L&&!Number.isNaN(Q)&&(X=Q+D)<c?z[X]=r:(Q=void 0,((Q=C)!=null?Q:C={})[A]=r));C&&(w?z.push(C):z[c]=C);F&&qK(mL)&&(I=BR(I))&&I instanceof G0W&&(z[mL]=fYO(I));return z};
KPF=function(I){I[0]=hP(I[0]);I[1]=hP(I[1]);return I};
hP=function(I){switch(typeof I){case "number":return Number.isFinite(I)?I:""+I;case "bigint":return(0,_.UH)(I)?Number(I):""+I;case "boolean":return I?1:0;case "object":if(Array.isArray(I)){var C=I[_.Vd]|0;return I.length===0&&C&1?void 0:SwO(I,C,hP)}if(I!=null&&I[gy]===vR)return Acs(I);if(I instanceof Se){C=I.JSC$6687_value_;if(C==null)I="";else if(typeof C==="string")I=C;else{if($zz){for(var y="",k=0,F=C.length-10240;k<F;)y+=String.fromCharCode.apply(null,C.subarray(k,k+=10240));y+=String.fromCharCode.apply(null,
k?C.subarray(k):C);C=btoa(y)}else C=_.HR(C);I=I.JSC$6687_value_=C}return I}if(I instanceof dy)return I=I.size!==0?Array.from(tP.prototype.entries.call(I),KPF):void 0,I;return}return I};
JP=function(I,C){if(C){Ywz=C==null||C===nut||C[gum]!==vum?nut:C;try{return Acs(I)}finally{Ywz=void 0}}return Acs(I)};
Acs=function(I){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return SwO(I,I[_.Vd]|0,hP)};
b59=function(I,C){C<500||ee(WPm,1)};
qw9=function(I){switch(typeof I){case "boolean":return dq9||(dq9=[0,void 0,!0]);case "number":return I>0?void 0:I===0?xqX||(xqX=[0,void 0]):[-I,void 0];case "string":return[0,I];case "object":return I}};
aL=function(I,C,y){return I=_.OH(I,C[0],C[1],y?1:2)};
_.OH=function(I,C,y,k){k=k===void 0?0:k;if(I==null){var F=32;y?(I=[y],F|=128):I=[];C&&(F=F&-8380417|(C&1023)<<13)}else{if(!Array.isArray(I))throw Error("L");F=I[_.Vd]|0;2048&F&&!(2&F)&&mqz();if(F&256)throw Error("N");if(F&64)return k!==0||F&2048||Xq(I,F|2048),I;if(y&&(F|=128,y!==I[0]))throw Error("O");a:{y=I;F|=64;var z=y.length;if(z){var c=z-1,r=y[c];if(r!=null&&typeof r==="object"&&r.constructor===Object){C=F&128?0:-1;c-=C;if(c>=1024)throw Error("Q");for(var w in r)z=+w,z<c&&(y[z+C]=r[w],delete r[w]);
F=F&-8380417|(c&1023)<<13;break a}}if(C){w=Math.max(C,z-(F&128?0:-1));if(w>1024)throw Error("R");F=F&-8380417|(w&1023)<<13}}}F|=64;k===0&&(F|=2048);Xq(I,F);return I};
mqz=function(){ee(Z5m,5)};
hbW=function(I,C){if(typeof I!=="object")return I;if(Array.isArray(I)){var y=I[_.Vd]|0;return I.length===0&&y&1?void 0:BSt(I,y,C)}if(I!=null&&I[gy]===vR)return Eu9(I);if(I instanceof dy){C=I.arrayState;if(C&2)return I;if(!I.size)return;y=$u(Array.from(tP.prototype.entries.call(I)));if(I.valueCtor)for(I=0;I<y.length;I++){var k=y[I],F=k[1];F==null||typeof F!=="object"?F=void 0:F!=null&&F[gy]===vR?F=Eu9(F):Array.isArray(F)?F=BSt(F,F[_.Vd]|0,!!(C&32)):F=void 0;k[1]=F}return y}if(I instanceof Se)return I};
BSt=function(I,C,y){if(C&2)return I;!y||4096&C||16&C?I=IJ(I,C,!1,y&&!(C&16)):(je(I,34),C&4&&Object.freeze(I));return I};
Eu9=function(I){var C=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=C[_.Vd]|0;return f5(I,y)?I:IJ(C,y)};
IJ=function(I,C,y,k){k!=null||(k=!!(34&C));I=SwO(I,C,hbW,k);k=32;y&&(k|=2);C=C&8380609|k;Xq(I,C);return I};
LPs=function(I){var C=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=C[_.Vd]|0;return f5(I,y)?new I.constructor(IJ(C,y,!1)):I};
C2=function(I){if(I.copyOnWrite!==Yu)return!1;var C=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;C=IJ(C,C[_.Vd]|0);je(C,2048);I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=C;I.copyOnWrite=void 0;I.noLegacyNull=void 0;return!0};
sm=function(I){if(!C2(I)&&f5(I,I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows[_.Vd]|0))throw Error();};
oJ=function(I,C,y,k,F){var z=y+(F?0:-1),c=I.length-1;if(c>=1+(F?0:-1)&&z>=c){var r=I[c];if(r!=null&&typeof r==="object"&&r.constructor===Object)return r[y]=k,C}if(z<=c)return I[z]=k,C;if(k!==void 0){var w;c=((w=C)!=null?w:C=I[_.Vd]|0)>>13&1023||536870912;y>=c?k!=null&&(z={},I[c+(F?0:-1)]=(z[y]=k,z)):I[z]=k}return C};
_.u7=function(I,C,y,k,F){var z=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=z[_.Vd]|0;k=f5(I,c)?1:k;F=!!F||k===3;k===2&&C2(I)&&(z=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,c=z[_.Vd]|0);I=UqX(z,C);var r=I===kG?7:I[_.Vd]|0,w=H5K(r,c);var L=4&w?!1:!0;if(L){4&w&&(I=IL(I),r=0,w=FL(w,c),c=oJ(z,c,C,I));for(var D=0,p=0;D<I.length;D++){var Q=y(I[D]);Q!=null&&(I[p++]=Q)}p<D&&(I.length=p);y=(w|4)&-513;w=y&=-1025;w&=-4097}w!==r&&(Xq(I,w),2&w&&Object.freeze(I));return I=tes(I,w,z,
c,C,k,L,F)};
tes=function(I,C,y,k,F,z,c,r){var w=C;z===1||(z!==4?0:2&C||!(16&C)&&32&k)?zR(C)||(C|=!I.length||c&&!(4096&C)||32&k&&!(4096&C||16&C)?2:256,C!==w&&Xq(I,C),Object.freeze(I)):(z===2&&zR(C)&&(I=IL(I),w=0,C=FL(C,k),oJ(y,k,F,I)),zR(C)||(r||(C|=16),C!==w&&Xq(I,C)));return I};
UqX=function(I,C,y){I=eF(I,C,y);return Array.isArray(I)?I:kG};
H5K=function(I,C){2&C&&(I|=2);return I|1};
zR=function(I){return!!(2&I)&&!!(4&I)||!!(256&I)};
JcI=function(I){return _.vm(I,!0)};
O59=function(I,C){var y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,k=y[_.Vd]|0;a:{var F=k;k=f5(I,k);!k&&C2(I)&&(y=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=y[_.Vd]|0);var z=eF(y,C);I=!1;if(z==null){if(k){C=VeF();break a}z=[]}else if(z.constructor===dy)if(z.arrayState&2&&!k)z=Array.from(tP.prototype.entries.call(z));else{C=z;break a}else Array.isArray(z)?I=!!((z[_.Vd]|0)&2):z=[];if(k){if(!z.length){C=VeF();break a}I||(I=!0,$u(z))}else if(I){I=!1;k=z;k=IL(k);for(z=0;z<
k.length;z++){var c=k[z]=IL(k[z]);Array.isArray(c[1])&&(c[1]=$u(c[1]))}z=k}!I&&F&32&&AXK(z);I=new dy(z,void 0,wmH,wmH);oJ(y,F,C,I);C=I}return C};
_.i7=function(I,C,y,k){sm(I);var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=F[_.Vd]|0;if(y==null)return oJ(F,z,C),I;var c=y===kG?7:y[_.Vd]|0,r=c,w=zR(c),L=w||Object.isFrozen(y);w||(c=0);L||(y=IL(y),r=0,c=FL(c,z),L=!1);c|=5;var D;w=(D=KYK(c))!=null?D:0;for(D=0;D<y.length;D++){var p=y[D],Q=k(p,w);Object.is(p,Q)||(L&&(y=IL(y),r=0,c=FL(c,z),L=!1),y[D]=Q)}c!==r&&(L&&(y=IL(y),c=FL(c,z)),Xq(y,c));oJ(F,z,C,y);return I};
_.n2=function(I,C,y,k,F){sm(I);var z=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;oJ(z,z[_.Vd]|0,C,(k==="0"?Number(y)===0:y===k)?void 0:y,F);return I};
_.L2=function(I,C,y){if(C&2)throw Error();var k=xu(C),F=UqX(I,y,k),z=F===kG?7:F[_.Vd]|0,c=H5K(z,C);if(2&c||zR(c)||16&c)F=IL(F),z=0,c=FL(c,C),oJ(I,C,y,F,k);c&=-13;c!==z&&Xq(F,c);return F};
aYK=function(I){if(Nq){var C;return(C=I[p2])!=null?C:I[p2]=new Map}if(p2 in I)return I[p2];C=new Map;Object.defineProperty(I,p2,{value:C});return C};
ISz=function(I,C,y,k,F){var z=aYK(I),c=MeI(z,I,C,y,F);c!==k&&(c&&(C=oJ(I,C,c,void 0,F)),z.set(y,k));return C};
MeI=function(I,C,y,k,F){var z=I.get(k);if(z!=null)return z;for(var c=z=0;c<k.length;c++){var r=k[c];eF(C,r,F)!=null&&(z!==0&&(y=oJ(C,y,z,void 0,F)),z=r)}I.set(k,z);return z};
Qf=function(I,C,y,k,F){I=eF(I,k,F,function(z){return i5O(z,y,!1,C)});
if(I!=null)return I};
Cjz=function(I,C,y,k,F,z,c,r){var w=f5(I,y);z=w?1:z;c=!!c||z===3;w=r&&!w;(z===2||w)&&C2(I)&&(C=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y=C[_.Vd]|0);I=UqX(C,F);var L=I===kG?7:I[_.Vd]|0,D=H5K(L,y);if(r=!(4&D)){var p=I,Q=y,X=!!(2&D);X&&(Q|=2);for(var b=!X,S=!0,A=0,x=0;A<p.length;A++){var B=i5O(p[A],k,!1,Q);if(B instanceof k){if(!X){var t=f5(B);b&&(b=!t);S&&(S=t)}p[x++]=B}}x<A&&(p.length=x);D|=4;D=S?D&-4097:D|4096;D=b?D|8:D&-9}D!==L&&(Xq(I,D),2&D&&Object.freeze(I));if(w&&!(8&D||!I.length&&
(z===1||(z!==4?0:2&D||!(16&D)&&32&y)))){zR(D)&&(I=IL(I),D=FL(D,y),y=oJ(C,y,F,I));k=I;w=D;for(L=0;L<k.length;L++)p=k[L],D=LPs(p),p!==D&&(k[L]=D);w|=8;D=w=k.length?w|4096:w&-4097;Xq(I,D)}return I=tes(I,D,C,y,F,z,r,c)};
sLI=function(I){I==null&&(I=void 0);return I};
FL=function(I,C){return I=(2&C?I|2:I&-3)&-273};
_.oKz=function(I,C,y,k,F){sm(I);C=_.u7(I,C,F,2,!0);var z;F=(z=KYK(C===kG?7:C[_.Vd]|0))!=null?z:0;C.push(y(k,F));return I};
yPW=function(I,C,y,k,F,z,c){sm(I);var r=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;I=Cjz(I,r,r[_.Vd]|0,y,C,2,!0);if(z&&c)F!=null||(F=I.length-1),Wm(I,F),I.splice(F,z),I.length||(I[_.Vd]&=-4097);else{if(z){if(typeof F!=="number"||F<0||F>I.length)throw Error();}else k=k!=null?k:new y;F!=void 0?I.splice(F,z,k):I.push(k);F=y=I===kG?7:I[_.Vd]|0;f5(k)?(y&=-9,I.length===1&&(y&=-4097)):y|=4096;y!==F&&Xq(I,y)}};
kMm=function(I,C){if(typeof I==="string")return new Vf(b9z(I),C);if(Array.isArray(I))return new Vf(new Uint8Array(I),C);if(I.constructor===Uint8Array)return new Vf(I,!1);if(I.constructor===ArrayBuffer)return I=new Uint8Array(I),new Vf(I,!1);if(I.constructor===Se)return C=jF(I)||new Uint8Array(0),new Vf(C,!0,I);if(I instanceof Uint8Array)return I=I.constructor===Uint8Array?I:new Uint8Array(I.buffer,I.byteOffset,I.byteLength),new Vf(I,!1);throw Error();};
_.l7=function(){var I=function(){throw Error();};
Object.setPrototypeOf(I,I.prototype);return I};
uRH=function(I,C){var y=y===void 0?FLI:y;return new XL(I,C,y)};
eYz=function(I,C,y,k,F){C=zYX(C,k);C!=null&&(y=_.TyF(I,y),F(C,I),_.cPI(I,y))};
$G=function(I,C,y,k){var F=k[I];if(F)return F;F={};F.binaryFields=k;F.messageMetadata=qw9(k[0]);var z=k[1],c=1;z&&z.constructor===Object&&(F.extensions=z,z=k[++c],typeof z==="function"&&(F.isMessageSet=!0,rPO!=null||(rPO=z),i8I!=null||(i8I=k[c+1]),z=k[c+=2]));for(var r={};z&&Array.isArray(z)&&z.length&&typeof z[0]==="number"&&z[0]>0;){for(var w=0;w<z.length;w++)r[z[w]]=z;z=k[++c]}for(w=1;z!==void 0;){typeof z==="number"&&(w+=z,z=k[++c]);var L=void 0;if(z instanceof XL)var D=z;else D=wRm,c--;z=void 0;
if((z=D)==null?0:z.$$isMsg){z=k[++c];L=k;var p=c;typeof z==="function"&&(z=z(),L[p]=z);L=z}z=k[++c];p=w+1;typeof z==="number"&&z<0&&(p-=z,z=k[++c]);for(;w<p;w++){var Q=r[w];L?y(F,w,D,L,Q):C(F,w,D,Q)}}return k[I]=F};
PjI=function(I){return Array.isArray(I)?I[0]instanceof XL?I:[nKz,I]:[I,void 0]};
zYX=function(I,C){if(I instanceof _.GR)return I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;if(Array.isArray(I))return aL(I,C,!1)};
LLz=function(I,C,y,k){var F=y.$$binaryReaderFn;I[C]=k?function(z,c,r){return F(z,c,r,k)}:F};
DKW=function(I,C,y,k,F){var z=y.$$binaryReaderFn,c,r;I[C]=function(w,L,D){return z(w,L,D,r||(r=$G(f2,LLz,DKW,k).messageMetadata),c||(c=pR9(k)),F)}};
pR9=function(I){var C=I[QLX];if(C!=null)return C;var y=$G(f2,LLz,DKW,I);C=y.isMessageSet?function(k,F){return rPO(k,F,y)}:function(k,F){for(;Nyt(F)&&F.nextWireType_!=4;){var z=F.nextField_,c=y[z];
if(c==null){var r=y.extensions;r&&(r=r[z])&&(r=VBW(r),r!=null&&(c=y[z]=r))}if(c==null||!c(F,k,z)){r=F;c=r.fieldCursor_;SF(r);if(r.discardUnknownFields)var w=void 0;else{var L=r.decoder_.cursor_-c;r.decoder_.cursor_=c;w=jLW(r.decoder_,L)}L=r=c=void 0;var D=k;w&&((c=(r=(L=D[mL])!=null?L:D[mL]=new G0W)[z])!=null?c:r[z]=[]).push(w)}}if(k=BR(k))k.reviveUnknownFields=y.binaryFields[lSX];return!0};
I[QLX]=C;I[lSX]=XRY.bind(I);return C};
XRY=function(I,C,y,k){var F=this[f2],z=this[QLX],c=aL(void 0,F.messageMetadata,!1),r=BR(I);if(r){var w=!1,L=F.extensions;if(L){F=function(b,S,A){if(A.length!==0)if(L[S])for(b=_.T(A),S=b.next();!S.done;S=b.next()){S=$Kz(S.value);try{w=!0,z(c,S)}finally{S.free()}}else k==null||k(I,S,A)};
if(C==null)EH(r,F);else if(r!=null){var D=r[C];D&&F(r,C,D)}if(w){var p=I[_.Vd]|0;if(p&2&&p&2048&&(y==null||!y.reviveIntoImmutable))throw Error();var Q=xu(p),X=function(b,S){if(eF(I,b,Q)!=null)switch(y==null?void 0:y.resolutionBehavior){case 1:return;default:throw Error();}S!=null&&(p=oJ(I,p,b,S,Q));delete r[b]};
C==null?vzK(c,c[_.Vd]|0,function(b,S){X(b,S)}):X(C,eF(c,C,Q))}}}};
VBW=function(I){I=PjI(I);var C=I[0].$$binaryReaderFn;if(I=I[1]){var y=pR9(I),k=$G(f2,LLz,DKW,I).messageMetadata;return function(F,z,c){return C(F,z,c,k,y)}}return C};
AT=function(I,C,y){I[C]=y.$$binaryWriterFn};
va=function(I,C,y,k){var F,z,c=y.$$binaryWriterFn;I[C]=function(r,w,L){return c(r,w,L,z||(z=$G(gR,AT,va,k).messageMetadata),F||(F=RYF(k)))}};
RYF=function(I){var C=I[b8I];if(!C){var y=$G(gR,AT,va,I);C=function(k,F){return YHz(k,F,y)};
I[b8I]=C}return C};
YHz=function(I,C,y){vzK(I,I[_.Vd]|0,function(F,z){if(z!=null){var c=GM9(y,F);if(c)c(C,z,F);else{z=qK(mL);var r;Nq&&z&&((r=I[z])==null?void 0:r[F])!=null&&ee(fSt,3)}}});
var k=BR(I);k&&EH(k,function(F,z,c){Wa(C,C.encoder_.end());for(F=0;F<c.length;F++)Wa(C,jF(c[F])||new Uint8Array(0))})};
GM9=function(I,C){var y=I[C];if(y)return y;if(y=I.extensions)if(y=y[C]){y=PjI(y);var k=y[0].$$binaryWriterFn;if(y=y[1]){var F=RYF(y),z=$G(gR,AT,va,y).messageMetadata;y=I.isMessageSet?i8I(z,F):function(c,r,w){return k(c,r,w,z,F)}}else y=k;
return I[C]=y}};
_.SHz=function(I,C,y){if(Array.isArray(C)){var k=C[_.Vd]|0;if(k&4)return C;for(var F=0,z=0;F<C.length;F++){var c=I(C[F]);c!=null&&(C[z++]=c)}z<F&&(C.length=z);y&&(Xq(C,(k|5)&-1537),k&2&&Object.freeze(C));return C}};
_.dR=function(I,C,y){return new XL(I,C,y)};
_.KLs=function(I,C,y){return new XL(I,C,y)};
_.xG=function(I,C,y){oJ(I,I[_.Vd]|0,C,y,xu(I[_.Vd]|0))};
APz=function(I,C,y){C=_.uj(C);C!=null&&(_.qj(I,y,1),I=I.encoder_,y=mz||(mz=new DataView(new ArrayBuffer(8))),y.setFloat64(0,+C,!0),Ew=y.getUint32(0,!0),Hm=y.getUint32(4,!0),_.Z8(I,Ew),_.Z8(I,Hm))};
_.Em=function(I,C,y){C=ebH(C);if(C!=null){switch(typeof C){case "string":gK9(C)}if(C!=null)switch(_.qj(I,y,0),typeof C){case "number":I=I.encoder_;tc(C);vKI(I,Ew,Hm);break;case "bigint":y=BigInt.asUintN(64,C);y=new WLH(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));vKI(I.encoder_,y.JSC$6744_lo,y.JSC$6744_hi);break;default:y=gK9(C),vKI(I.encoder_,y.JSC$6744_lo,y.JSC$6744_hi)}}};
qHt=function(I,C,y){C=_.DS(C);C!=null&&C!=null&&(_.qj(I,y,0),_.xKt(I.encoder_,C))};
_.Z8t=function(I,C,y){mKm(I,y,rcz(C))};
_.ByX=function(I,C,y){C=_.tI9(C);C!=null&&(_.qj(I,y,0),I.encoder_.JSC$6746_buffer_.push(C?1:0))};
_.hYs=function(I,C,y){C=_.AP(C);C!=null&&EKm(I,y,yXm(C))};
UKK=function(I,C,y,k,F){C=zYX(C,k);C!=null&&(y=_.TyF(I,y),F(C,I),_.cPI(I,y))};
_.H8H=function(I,C,y){C=C==null||typeof C=="string"||C instanceof Se?C:void 0;C!=null&&EKm(I,y,kMm(C,!0).buffer)};
_.tBH=function(I,C,y){C=_.DS(C);C!=null&&(C=parseInt(C,10),_.qj(I,y,0),_.xKt(I.encoder_,C))};
_.hT=function(I,C){return function(y,k){var F={treatNewDataAsImmutable:!0};k&&Object.assign(F,k);y=$Kz(y,void 0,void 0,F);try{var z=new I,c=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;pR9(C)(c,y);var r=z}finally{y.free()}return r}};
_.Um=function(I){return function(C){return JPm(C,I)}};
O8m=function(I){return function(){return JPm(this,I)}};
_.aSm=function(I){return qq(function(C){return C instanceof I&&!f5(C)})};
_.Ha=function(I){return function(C){return MBF(I,C)}};
oGF=function(I,C){return I8W({child:I,origin:C||"https://gamesnacks.com",channelName:"gspc",receiveMessageConstructor:C7m,getPayloadCase:function(y){return y.getPayloadCase()},
createInitMessage:function(y){var k=new tT,F=new sJO;y=_.JT(F,1,y);return _.Om(k,5,aJ,y)}})};
Mj=function(I){return{valueOf:I}.valueOf()};
kRY=function(){var I=null;if(!yTz)return I;try{var C=function(y){return y};
I=yTz.createPolicy("goog#html",{createHTML:C,createScript:C,createScriptURL:C})}catch(y){}return I};
uLz=function(){FzH===void 0&&(FzH=kRY());return FzH};
_.Ca=function(I){var C=uLz();I=C?C.createScriptURL(I):I;return new IM(I)};
_.sC=function(I){if(I instanceof IM)return I.privateDoNotAccessOrElseWrappedResourceUrl;throw Error("da");};
oM=function(I){return I.toString().indexOf("`")===-1};
FG=function(I){return new _.yp(zTW,I)};
ui=function(I){return I instanceof _.yp};
_.zK=function(I){if(ui(I))return I.privateDoNotAccessOrElseWrappedUrl;throw Error("da");};
TK=function(I){return new TR9(function(C){return C.substr(0,I.length+1).toLowerCase()===I+":"})};
cn=function(I,C){C=C===void 0?cTz:C;if(ui(I))return I;for(var y=0;y<C.length;++y){var k=C[y];if(k instanceof TR9&&k.isValid(I))return FG(I)}};
_.ra=function(I,C){C=C===void 0?cTz:C;return cn(I,C)||eO};
_.ii=function(I){var C=window;if(typeof MediaSource!=="undefined"&&I instanceof MediaSource||typeof C.ManagedMediaSource!=="undefined"&&I instanceof C.ManagedMediaSource)return FG(URL.createObjectURL(I));C=I.type;C.toLowerCase()==="application/octet-stream"?C=!0:(C=C.match(/^([^;]+)(?:;\w+=(?:\w+|"[\w;,= ]+"))*$/i),C=(C==null?void 0:C.length)===2&&(/^image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp|x-icon|heic|heif|avif|x-ms-bmp)$/i.test(C[1])||/^video\/(?:3gpp|avi|mpeg|mpg|mp4|ogg|webm|x-flv|x-matroska|quicktime|x-ms-wmv)$/i.test(C[1])||
/^audio\/(?:3gpp2|3gpp|aac|amr|L16|midi|mp3|mp4|mpeg|oga|ogg|opus|x-m4a|x-matroska|x-wav|wav|webm)$/i.test(C[1])||/^font\/[\w-]+$/i.test(C[1])));if(!C)throw Error("da");return FG(URL.createObjectURL(I))};
_.na=function(I){for(var C=_.wa.apply(1,arguments),y=[I[0]],k=0;k<C.length;k++)y.push(String(C[k])),y.push(I[k+1]);return FG(y.join(""))};
_.rTW=function(I){if(!eTO){a:{var C=document.createElement("a");try{C.href=I}catch(y){I=void 0;break a}I=C.protocol;I=I===":"||I===""?"https:":I}return I}try{C=new URL(I)}catch(y){return"https:"}return C.protocol};
_.Dd=function(I){I instanceof _.yp?I=_.zK(I):I=i2O.test(I)?I:void 0;return I};
pa=function(I,C){C=_.Dd(C);C!==void 0&&(I.href=C)};
NM=function(I){var C=uLz();I=C?C.createHTML(I):I;return new Qp(I)};
Vp=function(I){if(I instanceof Qp)return I.privateDoNotAccessOrElseWrappedHtml;throw Error("da");};
_.jO=function(I,C){I.src=_.sC(C).toString()};
waY=function(I,C){I.setAttribute("sandbox","");for(var y=0;y<C.length;y++)I.sandbox.supports&&!I.sandbox.supports(C[y])||I.sandbox.add(C[y])};
_.nGY=function(I,C,y){I.removeAttribute("srcdoc");switch(C){case 0:if(y instanceof IM)throw new li("TrustedResourceUrl",0);waY(I,[]);C=_.Dd(y);C!==void 0&&(I.src=C);break;case 1:if(!(y instanceof IM))throw new li(typeof y,1);waY(I,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));_.jO(I,y);break;case 2:if(y instanceof IM)throw new li("TrustedResourceUrl",2);waY(I,"allow-same-origin allow-scripts allow-forms allow-popups allow-popups-to-escape-sandbox allow-storage-access-by-user-activation".split(" "));
C=_.Dd(y);C!==void 0&&(I.src=C);break;default:_.C8(C)}};
_.XG=function(I,C,y,k){C=_.Dd(C);return C!==void 0?I.open(C,y,k):null};
_.$b=function(I){I=I===void 0?document:I;var C,y;I=(y=(C=I).querySelector)==null?void 0:y.call(C,"script[nonce]");return I==null?"":I.nonce||I.getAttribute("nonce")||""};
_.bi=function(I){var C=uLz();I=C?C.createScript(I):I;return new _.RM(I)};
Yb=function(I){if(I instanceof _.RM)return I.privateDoNotAccessOrElseWrappedScript;throw Error("da");};
P7F=function(I){var C=_.$b(I.ownerDocument);C&&I.setAttribute("nonce",C)};
_.GK=function(I,C){I.textContent=Yb(C);P7F(I)};
_.fa=function(I,C){I.src=_.sC(C);P7F(I)};
_.SO=function(I,C){if(I.nodeType===1&&/^(script|style)$/i.test(I.tagName))throw Error("da");I.innerHTML=Vp(C)};
_.Ka=function(I,C,y,k){if(I.length===0)throw Error("da");I=I.map(function(z){if(z instanceof Lzz)z=z.privateDoNotAccessOrElseWrappedAttributePrefix;else throw Error("da");return z});
var F=y.toLowerCase();if(I.every(function(z){return F.indexOf(z)!==0}))throw Error("ea`"+y);
C.setAttribute(y,k)};
_.A_=function(I,C,y){if(C instanceof IM)I.href=_.sC(C).toString(),I.rel=y;else{if(Djz.indexOf(y)===-1)throw Error("fa`"+y);C=_.Dd(C);C!==void 0&&(I.href=C,I.rel=y)}};
pam=function(I){return"function"==typeof _.vn&&I instanceof _.vn};
_.QJF=function(I){if(pam(I))return I.privateDoNotAccessOrElseWrappedStyleSheet;throw Error("da");};
_.Wn=function(I,C){C=_.Dd(C);C!==void 0&&(I.href=C)};
da=function(I,C){I&&(C=I.indexOf(C),0<=C&&I.splice(C,1))};
qM=function(I){return typeof I==="function"};
NRt=function(I){return I instanceof m7||I&&"closed"in I&&qM(I.remove)&&qM(I.add)&&qM(I.unsubscribe)};
Zd=function(){};
Bn=function(I){VFY(function(){throw I;})};
EC=function(I){return I};
h_=function(){return jJs(_.wa.apply(0,arguments))};
jJs=function(I){return I.length===0?EC:I.length===1?I[0]:function(C){return I.reduce(function(y,k){return k(y)},C)}};
l89=function(I){var C;return(C=I!=null?I:void 0)!=null?C:Promise};
XaY=function(I,C){return new UC(function(y){var k=0;return C.schedule(function(){k===I.length?y.complete():(y.next(I[k++]),y.closed||this.schedule())})})};
$js=function(I,C){if(!I)throw Error("ga");return new UC(function(y){var k=new m7;k.add(C.schedule(function(){var F=I[Symbol.asyncIterator]();k.add(C.schedule(function(){var z=this;F.next().then(function(c){c.done?y.complete():(y.next(c.value),z.schedule())})}))}));
return k})};
RTO=function(I,C,y){C=C.schedule(function(){try{y.call(this)}catch(k){I.error(k)}},0);
I.add(C)};
b2X=function(I,C){return new UC(function(y){var k;y.add(C.schedule(function(){k=I[Hn]();RTO(y,C,function(){var F=k.next(),z=F.value;F.done?y.complete():(y.next(z),this.schedule())})}));
return function(){var F;return qM((F=k)==null?void 0:F.return)&&k.return()}})};
Ymm=function(I,C){return new UC(function(y){var k=new m7;k.add(C.schedule(function(){var F=I[t_]();k.add(F.subscribe({next:function(z){k.add(C.schedule(function(){return y.next(z)}))},
error:function(z){k.add(C.schedule(function(){return y.error(z)}))},
complete:function(){k.add(C.schedule(function(){return y.complete()}))}}))}));
return k})};
GRm=function(I,C){return new UC(function(y){return C.schedule(function(){return I.then(function(k){y.add(C.schedule(function(){y.next(k);y.add(C.schedule(function(){return y.complete()}))}))},function(k){y.add(C.schedule(function(){return y.error(k)}))})})})};
f8m=function(I){return new TypeError("ha`"+(I!==null&&typeof I==="object"?"an invalid object":"'"+I+"'"))};
Kzm=function(I,C){if(I!=null){if(qM(I[t_]))return Ymm(I,C);if(Smm(I))return XaY(I,C);if(qM(I==null?void 0:I.then))return GRm(I,C);if(Symbol.asyncIterator&&qM(I==null?void 0:I[Symbol.asyncIterator]))return $js(I,C);if(qM(I==null?void 0:I[Hn]))return b2X(I,C)}throw f8m(I);};
OC=function(I,C){return C?Kzm(I,C):J_(I)};
J_=function(I){if(I instanceof UC)return I;if(I!=null){if(qM(I[t_]))return ATs(I);if(Smm(I))return gGH(I);if(qM(I==null?void 0:I.then))return vGI(I);if(Symbol.asyncIterator&&qM(I==null?void 0:I[Symbol.asyncIterator]))return WzI(I);if(qM(I==null?void 0:I[Hn]))return djH(I)}throw f8m(I);};
ATs=function(I){return new UC(function(C){var y=I[t_]();if(qM(y.subscribe))return y.subscribe(C);throw new TypeError("ia");})};
gGH=function(I){return new UC(function(C){for(var y=0;y<I.length&&!C.closed;y++)C.next(I[y]);C.complete()})};
vGI=function(I){return new UC(function(C){I.then(function(y){C.closed||(C.next(y),C.complete())},function(y){return C.error(y)}).then(null,Bn)})};
djH=function(I){return new UC(function(C){for(var y=I[Hn]();!C.closed;){var k=y.next(),F=k.value;k.done?C.complete():C.next(F)}return function(){return qM(y==null?void 0:y.return)&&y.return()}})};
WzI=function(I){return new UC(function(C){xjW(I,C).catch(function(y){return C.error(y)})})};
xjW=function(I,C){var y,k,F,z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:_.aM(w,2,3);var L=I[Symbol.asyncIterator];z=L!==void 0?L.call(I):new qmW(_.T(I));case 5:return _.n(w,z.next(),8);case 8:k=w.yieldResult;if(k.done){w.jumpTo(3);break}c=k.value;C.next(c);w.jumpTo(5);break;case 3:_.MM(w);_.II(w,9);if(!k||k.done||!(F=z.return)){w.jumpTo(9);break}return _.n(w,F.call(z),9);case 9:_.MM(w,0,0,1);if(y)throw y.error;_.C1(w,10,1);break;case 10:_.C1(w,4);break;case 2:r=_.sj(w);y={error:r};w.jumpTo(3);
break;case 4:C.complete(),_.oI(w)}})};
F4=function(I,C){return C?XaY(I,C):gGH(I)};
mj9=function(I){return qM(I[I.length-1])?I.pop():void 0};
uI=function(I){var C=I[I.length-1];return C&&qM(C.schedule)?I.pop():void 0};
zA=function(){var I=_.wa.apply(0,arguments),C=uI(I);return C?XaY(I,C):F4(I)};
TA=function(I){var C=qM(I)?I:function(){return I};
return new UC(function(y){return y.error(C())})};
cy=function(I){return function(C){if(qM(C==null?void 0:C.lift))return C.lift(function(y){try{return I(y,this)}catch(k){this.error(k)}});
throw new TypeError("ja");}};
r4=function(){return cy(function(I,C){var y=null;I._refCount++;var k=new e1(C,void 0,void 0,void 0,function(){if(!I||I._refCount<=0||0<--I._refCount)y=null;else{var F=I._connection,z=y;y=null;!F||z&&F!==z||F.unsubscribe();C.unsubscribe()}});
I.subscribe(k);k.closed||(y=I.connect())})};
BRz=function(){var I=Z2F;var C=C===void 0?0:C;return cy(function(y,k){k.add(I.schedule(function(){return y.subscribe(k)},C))})};
iI=function(I){return cy(function(C,y){var k=0;C.subscribe(new e1(y,function(F){y.next(I.call(void 0,F,k++))}))})};
hTY=function(I){return iI(function(C){return EGm(C)?I.apply(null,_.Py(C)):I(C)})};
O29=function(I){if(I.length===1){var C=I[0];if(UjF(C))return{args:C,keys:null};if(C&&typeof C==="object"&&H2H(C)===tFK)return I=JTK(C),{args:I.map(function(y){return C[y]}),
keys:I}}return{args:I,keys:null}};
L1=function(){var I=_.wa.apply(0,arguments),C=uI(I),y=mj9(I);I=O29(I);var k=I.args,F=I.keys;if(k.length===0)return OC([],C);C=new UC(a8z(k,C,F?function(z){for(var c={},r=0;r<z.length;r++)c[F[r]]=z[r];return c}:EC));
return y?C.pipe(hTY(y)):C};
a8z=function(I,C,y){y=y===void 0?EC:y;return function(k){MFK(C,function(){for(var F=I.length,z=Array(F),c=F,r=I.map(function(){return!1}),w=!0,L={i$jscomp$260:0};L.i$jscomp$260<F;L={i$jscomp$260:L.i$jscomp$260},L.i$jscomp$260++)MFK(C,function(D){return function(){OC(I[D.i$jscomp$260],C).subscribe(new DR(k,function(p){z[D.i$jscomp$260]=p;
w&&(r[D.i$jscomp$260]=!0,w=!r.every(EC));w||k.next(y(z.slice()))},function(){return--c===0}))}}(L),k)},k)}};
MFK=function(I,C,y){I?y.add(I.schedule(C)):C()};
Idz=function(I,C,y,k){var F=[],z=0,c=0,r=!1,w=function(L){z++;J_(y(L,c++)).subscribe(new e1(C,function(D){C.next(D)},void 0,function(){z--;
for(var D={};F.length&&z<k;D={bufferedValue:void 0})D.bufferedValue=F.shift(),w(D.bufferedValue);!r||F.length||z||C.complete()}))};
I.subscribe(new e1(C,function(L){return z<k?w(L):F.push(L)},void 0,function(){r=!0;
!r||F.length||z||C.complete()}));
return function(){F=null}};
p1=function(I,C){var y=y===void 0?Infinity:y;if(qM(C))return p1(function(k,F){return iI(function(z,c){return C(k,z,F,c)})(J_(I(k,F)))},y);
typeof C==="number"&&(y=C);return cy(function(k,F){return Idz(k,F,I,y)})};
CiI=function(I){I=I===void 0?Infinity:I;return p1(EC,I)};
sMz=function(){var I=_.wa.apply(0,arguments);return CiI(1)(F4(I,uI(I)))};
QX=function(I){return new UC(function(C){J_(I()).subscribe(C)})};
NL=function(I,C,y){if(qM(y)){var k=y;y=void 0}if(k)return NL(I,C,y).pipe(hTY(k));k=_.T(qM(I.addEventListener)&&qM(I.removeEventListener)?obK.map(function(c){return function(r){return I[c](C,r,y)}}):qM(I.addListener)&&qM(I.removeListener)?y_H.map(kKK(I,C)):qM(I.on)&&qM(I.off)?F7z.map(kKK(I,C)):[]);
var F=k.next().value,z=k.next().value;return!F&&Smm(I)?p1(function(c){return NL(c,C,y)})(F4(I)):new UC(function(c){if(!F)throw new TypeError("ka");
var r=function(){var w=_.wa.apply(0,arguments);return c.next(1<w.length?w:w[0])};
F(r);return function(){return z(r)}})};
kKK=function(I,C){return function(y){return function(k){return I[y](C,k)}}};
j1=function(){var I=_.wa.apply(0,arguments),C=uI(I);var y=typeof I[I.length-1]==="number"?I.pop():Infinity;return I.length?I.length===1?J_(I[0]):CiI(y)(F4(I,C)):VX};
zEI=function(I){return I.length===1&&uGI(I[0])?I[0]:I};
TaK=function(){var I=zEI(_.wa.apply(0,arguments));return cy(function(C,y){var k=[C].concat(_.Py(I)),F=function(){if(!y.closed)if(k.length>0){try{var z=J_(k.shift())}catch(r){F();return}var c=new e1(y,void 0,Zd,Zd);y.add(z.subscribe(c));c.add(F)}else y.complete()};
F()})};
X4=function(I){return cy(function(C,y){var k=0;C.subscribe(new e1(y,function(F){return I.call(void 0,F,k++)&&y.next(F)}))})};
eEz=function(){var I=_.wa.apply(0,arguments);I=zEI(I);return I.length===1?J_(I[0]):new UC(c_s(I))};
c_s=function(I){return function(C){for(var y=[],k={i$jscomp$263:0};y&&!C.closed&&k.i$jscomp$263<I.length;k={i$jscomp$263:k.i$jscomp$263},k.i$jscomp$263++)y.push(J_(I[k.i$jscomp$263]).subscribe(new e1(C,function(F){return function(z){if(y){for(var c=0;c<y.length;c++)c!==F.i$jscomp$263&&y[c].unsubscribe();y=null}C.next(z)}}(k))))}};
r_W=function(){var I=_.wa.apply(0,arguments),C=mj9(I),y=zEI(I);return y.length?new UC(function(k){var F=y.map(function(){return[]}),z=y.map(function(){return!1});
k.add(function(){F=z=null});
for(var c={sourceIndex$jscomp$1:0};!k.closed&&c.sourceIndex$jscomp$1<y.length;c={sourceIndex$jscomp$1:c.sourceIndex$jscomp$1},c.sourceIndex$jscomp$1++)J_(y[c.sourceIndex$jscomp$1]).subscribe(new e1(k,function(r){return function(w){F[r.sourceIndex$jscomp$1].push(w);F.every(function(L){return L.length})&&(w=F.map(function(L){return L.shift()}),k.next(C?C.apply(null,_.Py(w)):w),F.some(function(L,D){return!L.length&&z[D]})&&k.complete())}}(c),void 0,function(r){return function(){z[r.sourceIndex$jscomp$1]=
!0;
!F[r.sourceIndex$jscomp$1].length&&k.complete()}}(c)));
return function(){F=z=null}}):VX};
iaH=function(I){var C,y,k;return!!I&&typeof I.active==="boolean"&&typeof((C=I.clock)==null?void 0:C.now)==="function"&&((y=I.clock)==null?void 0:y.timeline)!==void 0&&!((k=I.lastMeasurement)==null||!k.timestamp)&&typeof I.equivalentTo==="function"&&typeof I.extrapolateToNow==="function"&&typeof I.extrapolateToTime==="function"&&typeof I.map==="function"&&typeof I.joinWith==="function"};
wnz=function(I){function C(y){return typeof y==="boolean"||typeof y==="string"||typeof y==="number"||y===void 0||y===null}
return C(I)?!0:Array.isArray(I)?I.every(C):typeof I==="object"?Object.keys(I).every(function(y){return typeof y==="string"})&&Object.values(I).every(function(y){return Array.isArray(y)?y.every(C):C(y)}):!1};
nbK=function(I){if(wnz(I))return I;if(iaH(I))return{lastMeasurement:{value:nbK(I.lastMeasurement.value),timestamp:$5(I.lastMeasurement.timestamp,new RI(0,I.lastMeasurement.timestamp.timeline))},active:I.active};try{return JSON.parse(JSON.stringify(I))}catch(C){}return String(I)};
bI=function(I,C){return function(y){return new UC(function(k){return y.subscribe(function(F){I.timeExecution(C,function(){k.next(F)})()},function(F){I.timeExecution(C,function(){k.error(F)})()},function(){I.timeExecution(C,function(){k.complete()})()})})}};
Pit=function(I,C){var y=!1;return new UC(function(k){var F=I.setTimeout(function(){y=!0;k.next(!0);k.complete()},C);
return function(){y||I.clearTimeout(F)}})};
L7X=function(I){I=I.global;if(I.fetchLater)return I.fetchLater.bind(I)};
Y5=function(I){return cy(function(C,y){var k=null,F=!1,z;k=C.subscribe(new e1(y,void 0,function(c){z=J_(I(c,Y5(I)(C)));k?(k.unsubscribe(),k=null,z.subscribe(y)):F=!0}));
F&&(k.unsubscribe(),k=null,z.subscribe(y))})};
DMH=function(I,C,y){return function(k,F){var z=y,c=C,r=0;k.subscribe(new e1(F,function(w){var L=r++;c=z?I(c,w,L):(z=!0,w);F.next(c)},void 0,void 0))}};
pnK=function(I){I=I===void 0?null:I;return cy(function(C,y){var k=!1;C.subscribe(new e1(y,function(F){k=!0;y.next(F)},void 0,function(){k||y.next(I);
y.complete()}))})};
GA=function(){return cy(function(I,C){I.subscribe(new e1(C,Zd))})};
f1=function(I){return cy(function(C,y){C.subscribe(new e1(y,function(){return y.next(I)}))})};
S1=function(I){return I<=0?function(){return VX}:cy(function(C,y){var k=0;
C.subscribe(new e1(y,function(F){++k<=I&&(y.next(F),I<=k&&y.complete())}))})};
AM=function(I){var C=C===void 0?EC:C;var y;I=(y=I)!=null?y:QMI;return cy(function(k,F){var z,c=!0;k.subscribe(new e1(F,function(r){var w=C(r);if(c||!I(z,w))c=!1,z=w,F.next(r)}))})};
QMI=function(I,C){return I===C};
VOH=function(I){I=I===void 0?NaI:I;return cy(function(C,y){var k=!1;C.subscribe(new e1(y,function(F){k=!0;y.next(F)},void 0,function(){return k?y.complete():y.error(I())}))})};
NaI=function(){return new jMO};
g4=function(){var I=_.wa.apply(0,arguments);return function(C){return sMz(C,zA.apply(null,_.Py(I)))}};
ldI=function(I){return cy(function(C,y){var k=0;C.subscribe(new e1(y,function(F){I.call(void 0,F,k++,C)||(y.next(!1),y.complete())},void 0,function(){y.next(!0);
y.complete()}))})};
Xnm=function(){return cy(function(I,C){var y=[];I.subscribe(new e1(C,function(k){y.push(k);1<y.length&&y.shift()},void 0,function(){for(var k=_.T(y),F=k.next();!F.done;F=k.next())C.next(F.value);
C.complete()},function(){y=null}))})};
$MI=function(I,C){var y=arguments.length>=2;return function(k){return k.pipe(I?X4(function(F,z){return I(F,z,k)}):EC,Xnm(),y?pnK(C):VOH(function(){return new jMO}))}};
Wy=function(I){var C=qM(I)?I:function(){return I};
return qM()?cy(function(y,k){var F=C();(void 0)(F).subscribe(k).add(y.subscribe(F))}):function(y){var k=new vy(y,C);
qM(y==null?void 0:y.lift)&&(k.lift=y.lift);k.source=y;k.subjectFactory=C;return k}};
x5=function(I){var C=new d4(I,void 0,void 0);return function(y){return Wy(function(){return C})(y)}};
mg=function(I,C){return cy(DMH(I,C,arguments.length>=2))};
ZR=function(){var I=_.wa.apply(0,arguments),C=uI(I);return cy(function(y,k){(C?sMz(I,y,C):sMz(I,y)).subscribe(k)})};
By=function(I){return cy(function(C,y){var k=null,F=0,z=!1;C.subscribe(new e1(y,function(c){var r;(r=k)==null||r.unsubscribe();r=F++;J_(I(c,r)).subscribe(k=new e1(y,function(w){return y.next(w)},void 0,function(){k=null;
z&&!k&&y.complete()}))},void 0,function(){(z=!0,!k)&&y.complete()}))})};
Ej=function(I,C){C=C===void 0?!1:C;return cy(function(y,k){var F=0;y.subscribe(new e1(k,function(z){var c=I(z,F++);(c||C)&&k.next(z);!c&&k.complete()}))})};
hM=function(I,C,y){var k=qM(I)||C||y?{next:I,error:C,complete:y}:I;return k?cy(function(F,z){F.subscribe(new e1(z,function(c){var r;(r=k.next)==null||r.call(k,c);z.next(c)},function(c){var r;
(r=k.error)==null||r.call(k,c);z.error(c)},function(){var c;
(c=k.complete)==null||c.call(k);z.complete()}))}):EC};
REX=function(){var I=_.wa.apply(0,arguments),C=mj9(I);return cy(function(y,k){for(var F=I.length,z=Array(F),c=I.map(function(){return!1}),r=!1,w={i$jscomp$273:0};w.i$jscomp$273<F;w={i$jscomp$273:w.i$jscomp$273},w.i$jscomp$273++)J_(I[w.i$jscomp$273]).subscribe(new e1(k,function(L){return function(D){z[L.i$jscomp$273]=D;
r||c[L.i$jscomp$273]||(c[L.i$jscomp$273]=!0,(r=c.every(EC))&&(c=null))}}(w),void 0,Zd));
y.subscribe(new e1(k,function(L){r&&(L=[L].concat(_.Py(z)),k.next(C?C.apply(null,_.Py(L)):L))}))})};
baY=function(I){var C=[],y=0,k;for(k in I)C[y++]=k;return C};
YCF=function(I,C){for(var y in I)if(I[y]==C)return!0;return!1};
GK9=function(I,C,y){for(var k in I)if(C.call(y,I[k],k,I))return k};
fdI=function(I){if(!I||typeof I!=="object")return I;if(typeof I.clone==="function")return I.clone();if(typeof Map!=="undefined"&&I instanceof Map)return new Map(I);if(typeof Set!=="undefined"&&I instanceof Set)return new Set(I);if(I instanceof Date)return new Date(I.getTime());var C=Array.isArray(I)?[]:typeof ArrayBuffer!=="function"||typeof ArrayBuffer.isView!=="function"||!ArrayBuffer.isView(I)||I instanceof DataView?{}:new I.constructor(I.length),y;for(y in I)C[y]=fdI(I[y]);return C};
SCI=function(I){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return SCI.apply(null,arguments[0]);if(C%2)throw Error("oa");for(var y={},k=0;k<C;k+=2)y[arguments[k]]=arguments[k+1];return y};
K7z=function(I){var C=arguments.length;if(C==1&&Array.isArray(arguments[0]))return K7z.apply(null,arguments[0]);for(var y={},k=0;k<C;k++)y[arguments[k]]=!0;return y};
_.Uj=function(I){return new Lzz(I[0].toLowerCase())};
A_H=function(I){try{return new URL(I,window.document.baseURI)}catch(C){return new URL("about:invalid")}};
gbI=function(I,C){var y=C.createRange();y.selectNode(C.body);I=NM(I);return y.createContextualFragment(Vp(I))};
vbX=function(I){I=I.nodeName;return typeof I==="string"?I:"FORM"};
W7I=function(I){I=I.nodeType;return I===1||typeof I!=="number"};
Hy=function(I,C,y){I.setAttribute(C,y)};
dM9=function(I){return I.parts.map(function(C){var y=C.descriptor;return""+C.url+(y?" "+y:"")}).join(" , ")};
_.tM=function(I){var C=_.wa.apply(1,arguments);if(C.length===0)return _.Ca(I[0]);for(var y=I[0],k=0;k<C.length;k++)y+=encodeURIComponent(C[k])+I[k+1];return _.Ca(y)};
_.JM=function(I,C){I=_.sC(I).toString();var y=I.split(/[?#]/),k=/[?]/.test(I)?"?"+y[1]:"";return xMI(y[0],k,/[#]/.test(I)?"#"+(k?y[2]:y[1]):"",C)};
xMI=function(I,C,y,k){function F(c,r){c!=null&&(Array.isArray(c)?c.forEach(function(w){return F(w,r)}):(C+=z+encodeURIComponent(r)+"="+encodeURIComponent(c),z="&"))}
var z=C.length?"&":"?";k.constructor===Object&&(k=Object.entries(k));Array.isArray(k)?k.forEach(function(c){return F(c[1],c[0])}):k.forEach(F);
return _.Ca(I+C+y)};
qCH=function(I){I=I.global;if(I.PendingGetBeacon)return I.PendingGetBeacon};
aI=function(I){return function(C){return C.pipe(mMX(I,Wy(new Oj)))}};
ML=function(I){return function(C){return C.pipe(mMX(I,x5(1)))}};
mMX=function(I,C){function y(k){return new UC(function(F){return k.subscribe(function(z){IE(I,function(){return void F.next(z)},3)},function(z){IE(I,function(){return void F.error(z)},3)},function(){IE(I,function(){return void F.complete()},3)})})}
return h_(y,BRz(),C,r4(),y)};
Ebz=function(I){var C=ZaH(I);return C===null?new Ce(null):C.pipe(iI(function(y){y=y.serialize();if(Baz)y=_.sF.btoa(y);else{for(var k=[],F=0,z=0;z<y.length;z++){var c=y.charCodeAt(z);c>255&&(k[F++]=c&255,c>>=8);k[F++]=c}y=_.HR(k)}return y}),S1(1),ML(I.queue))};
hEY=function(I){var C=C===void 0?{}:C;if(typeof Event==="function")return new Event(I,C);if(typeof document!=="undefined"){var y=document.createEvent("CustomEvent");y.initCustomEvent(I,C.bubbles||!1,C.cancelable||!1,C.detail);return y}throw Error();};
UMF=function(I){return typeof I==="string"?document.getElementById(I):I};
tOs=function(I){var C=!1;C=C===void 0?!1:C;if(I.tagName==="IMG"){if(I.complete&&(!I.naturalWidth||!I.naturalHeight))return!0;var y;if(C&&((y=I.style)==null?void 0:y.display)==="none")return!0}var k,F;return HaK.test((k=I.getAttribute("width"))!=null?k:"")&&HaK.test((F=I.getAttribute("height"))!=null?F:"")};
J_z=function(I,C){if(I.tagName==="IMG")return I.naturalWidth&&I.naturalHeight?!0:!1;try{if(I.readyState)var y=I.readyState;else{var k,F;y=(k=I.contentWindow)==null?void 0:(F=k.document)==null?void 0:F.readyState}return y==="complete"}catch(z){return C===void 0?!1:C}};
Oa9=function(I){I||(I=function(C,y,k){C.addEventListener(y,k)});
return I};
CIs=function(I,C){var y=adt();y=y===void 0?new MOz:y;if(I=UMF(I)){var k=Oa9(k);for(var F=!1,z=function(A){F||(F=!0,C(A))},c,r=2,w=0;w<IRt.length;++w)if(IRt[w]===I.tagName){r=3;
c=[I];break}c||(c=I.querySelectorAll(IRt.join(",")));var L=0,D=0,p=!0,Q=I=!1;w={};for(var X=0;X<c.length;w={isImg:void 0},X++){var b=c[X];if(!tOs(b))if(w.isImg=b.tagName==="IMG",J_z(b,y.crossDomainLoadedDefault))I=!0,w.isImg&&(p=!0);else{L++;var S=function(A){return function(x){L--;!L&&p&&z(r);A.isImg&&(x=x&&x.type==="error",D--,x||(p=!0),!D&&Q&&p&&z(r))}}(w);
k(b,"load",S);w.isImg&&(D++,k(b,"error",S))}}D===0&&(p=!0);c=null;c=_.sF.document.readyState==="complete";if(L===0&&!I&&c)r=5;else if(L||!I){k(_.sF,"load",function(){!y.pendingImagesBlockLoad||!D&&p?z(4):Q=!0});
return}z(r)}};
sIm=function(I,C,y){if(I)for(var k=0;I!=null&&k<500&&!y(I);++k)I=C(I)};
o5F=function(I,C){sIm(I,function(y){try{return y===y.parent?null:y.parent}catch(k){}return null},C)};
yMY=function(I,C){if(I.tagName=="IFRAME")C(I);else{I=I.querySelectorAll("IFRAME");for(var y=0;y<I.length&&!C(I[y]);++y);}};
kAH=function(I){return(I=I.ownerDocument)&&(I.parentWindow||I.defaultView)||null};
FgI=function(I,C,y){try{var k=JSON.parse(y.data)}catch(c){}if(typeof k==="object"&&k&&k.type==="creativeLoad"){var F=kAH(I);if(y.source&&F){var z;o5F(y.source,function(c){try{if(c.parent===F)return z=c,!0}catch(r){}});
z&&yMY(I,function(c){if(c.contentWindow===z)return C(k),!0})}}};
u4I=function(I){return typeof I==="string"?document.getElementById(I):I};
ek9=function(){var I={};return I[0]=_.tM(zkI,"current"),I[1]=_.tM(T4z),I[2]=_.tM(cMt),I};
s1=function(I,C){return I.left===C.left&&I.top===C.top&&I.width===C.width&&I.height===C.height};
rMt=function(I,C){return{left:Math.max(I.left,C.left),top:Math.max(I.top,C.top),width:Math.max(0,Math.min(I.left+I.width,C.left+C.width)-Math.max(I.left,C.left)),height:Math.max(0,Math.min(I.top+I.height,C.top+C.height)-Math.max(I.top,C.top))}};
i1X=function(I,C){return{left:Math.round(I.left+C.x),top:Math.round(I.top+C.y),width:I.width,height:I.height}};
oE=function(I,C,y,k){this.top=I;this.right=C;this.bottom=y;this.left=k};
wyO=function(I,C,y){if(I&&C!==null&&C!=C.top){if(!C.top)return new _.y6(-12245933,-12245933);C=C.top}try{return(y===void 0?0:y)?(new _.y6(C.innerWidth,C.innerHeight)).round():_.kF(C).round()}catch(k){return new _.y6(-12245933,-12245933)}};
n5W=function(I,C,y){try{if(I){if(!C.top)return new oE(-12245933,-12245933,-12245933,-12245933);C=C.top}var k=wyO(I,C,y),F=k.height,z=k.width;if(z===-12245933)return new oE(z,z,z,z);var c=FJ(u3(C.document)),r=c.x,w=c.y;return new oE(w,r+z,w+F,r)}catch(L){return new oE(-12245933,-12245933,-12245933,-12245933)}};
PIm=function(I){var C;return(C=I.google_tag_data)!=null?C:I.google_tag_data={}};
LgF=function(I){var C,y;return typeof((C=I.navigator)==null?void 0:(y=C.userAgentData)==null?void 0:y.getHighEntropyValues)==="function"};
py9=function(I){if(!LgF(I))return null;var C=PIm(I);if(C.uach_promise)return C.uach_promise;I=I.navigator.userAgentData.getHighEntropyValues(DLI).then(function(y){C.uach!=null||(C.uach=y);return y});
return C.uach_promise=I};
fRz=function(I){var C;return QIY(N4O(V1I(jIW(lRm(XyI($Lm(Rks(b1I(new Yjs,I.architecture||""),I.bitness||""),I.mobile||!1),I.model||""),I.platform||""),I.platformVersion||""),I.uaFullVersion||""),((C=I.fullVersionList)==null?void 0:C.map(function(y){var k=new GAY;k=_.zT(k,1,y.brand);return _.zT(k,2,y.version)}))||[]),I.wow64||!1)};
SjI=function(I){var C,y;return(y=(C=py9(I))==null?void 0:C.then(function(k){return fRz(k)}))!=null?y:null};
KgK=function(I,C){return new UC(function(y){var k=!1,F=Array(C.length);F.fill(void 0);var z=new Set,c=new Set,r=function(p,Q){I.running?(F[Q]=p,z.add(Q),k||(k=!0,IE(I,function(){k=!1;y.next(_.tX(F))},1))):y.error(new TT(Q))},w=function(p,Q){c.add(Q);
z.add(Q);IE(I,function(){y.error(p)},1)},L=function(p){c.add(p);
IE(I,function(){c.size===C.length&&y.complete()},1)},D=C.map(function(p,Q){return p.subscribe(function(X){return void r(X,Q)},function(X){return void w(X,Q)},function(){return void L(Q)})});
return function(){D.forEach(function(p){return void p.unsubscribe()})}})};
g5O=function(I,C,y){function k(){if(C.debugChannel){var A=C.debugChannel,x=A.next;var B={creativeId:C.debugNames.getName(y),requiredSignals:F,signals:Object.assign({},z),hasPrematurelyCompleted:c,errorMessage:r,erroredSignalKey:w};B={specMajor:2,specMinor:0,specPatch:0,timestamp:$5(C.timeProvider.now(),new RI(0,C.timeProvider.timeline)),instanceId:C.debugNames.getName(C.symbol),creativeState:B};x.call(A,B)}}
for(var F=Object.keys(I),z={},c=!1,r=null,w=null,L={},D=new Set,p=[],Q=[],X=_.T(F),b=X.next(),S={};!b.done;S={key$jscomp$372:void 0},b=X.next())S.key$jscomp$372=b.value,b=I[S.key$jscomp$372],b instanceof Ce?(L[S.key$jscomp$372]=b.value,D.add(S.key$jscomp$372),C.debugChannel&&(z[String(S.key$jscomp$372)]=nbK(b.value))):(b=b.pipe(AM(function(A,x){return iaH(A)||iaH(x)?!1:A===x}),iI(function(A){return function(x){C.debugChannel&&(z[String(A.key$jscomp$372)]=nbK(x),k());
var B={};return B[A.key$jscomp$372]=x,B}}(S)),Y5(function(A){return function(x){if(x instanceof TT)throw new AMK(String(A.key$jscomp$372));
throw x;}}(S)),hM(function(A){return function(){D.add(A.key$jscomp$372)}}(S),function(A){return function(x){w=String(A.key$jscomp$372);
r=String(x);k()}}(S),function(A){return function(){D.has(A.key$jscomp$372)||(c=!0,k())}}(S))),Q.push(S.key$jscomp$372),p.push(b));
(I=Object.keys(z).length>0)&&k();X=KgK(C.queue,p).pipe(Y5(function(A){if(A instanceof TT)throw new ci(String(Q[A.inputObservableIndex]));throw A;}),iI(function(A){return Object.freeze(Object.assign.apply(Object,[{},
L].concat(_.Py(A))))}));
return(p=p.length>0)&&I?j1(zA(Object.freeze(L)),X):p?X:zA(Object.freeze(L))};
v5z=function(I,C,y,k,F){return I.performanceMonitor.timeExecution.bind(I.performanceMonitor)(733,function(){var z={};try{return C.pipe(Y5(function(c){k(Object.assign({},z,{error:c}));return VX}),p1(function(c){try{var r=y(I,c)}catch(L){return k(Object.assign({},z,{error:L instanceof Error?L:String(L)})),VX}var w={};
return g5O(r,I,c.symbol).pipe(hM(function(L){w=L}),x5(1),r4()).pipe(F,Y5(function(L){k(Object.assign({},w,{error:L}));
return VX}),g4(void 0),iI(function(){return!0}))})).pipe(mg(function(c){return c+1},0),Y5(function(c){k(Object.assign({},z,{error:c}));
return VX}))}catch(c){return k(Object.assign({},z,{error:c})),VX}})()};
el=function(I){var C=new Map;if(typeof I!=="object"||I===null)return C;Object.values(I).forEach(function(y){y&&typeof y.extrapolateToNow==="function"&&(C.has(y.clock.timeline)||C.set(y.clock.timeline,y.clock.now()))});
return C};
Wgz=function(I,C){return typeof I==="string"?encodeURIComponent(I):typeof I==="number"?String(I):Array.isArray(I)?I.map(function(y){return Wgz(y,C)}).join(","):I instanceof RI?I.toString():I&&typeof I.extrapolateToNow==="function"?Wgz(I.extrapolateUsingTimestampMap(C).value,C):I===!0?"1":I===!1?"0":I===void 0||I===null?null:I instanceof dLX?xL9(I):[I.top,
I.left,I.top+I.height,I.left+I.width].join()};
r0=function(I,C){I=Object.entries(I).map(function(y){var k=_.T(y);y=k.next().value;k=k.next().value;k=Wgz(k,C);return k===null?"":y+"="+k}).filter(function(y){return y!==""});
return I.length?I.join("&"):""};
Z1W=function(I,C){var y=qjO,k=mLz;C=C===void 0?.01:C;return function(F){C>0&&Math.random()<=C&&(I.global.HTMLFencedFrameElement&&I.global.fence&&typeof I.global.fence.reportEvent==="function"&&I.global.fence.reportEvent({eventType:"active-view-error",eventData:"",destination:["buyer"]}),F=Object.assign({},F,{errorMessage:F.error instanceof Error&&F.error.message?F.error.message:String(F.error),errorStack:F.error instanceof Error&&F.error.stack?String(F.error.stack):null,errorName:F.error instanceof
Error&&F.error.name?String(F.error.name):null,errorContext:String(I.performanceMonitor.timedFunctionContext),errorEscapedQueryId:F.escapedQueryId}),y(Object.assign({},F,{payloadMapper:function(){return function(z){try{return k(Object.assign({},z))}catch(c){return{}}}}(),
urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=error&bin=17"]}),el(F)).forEach(function(z){I.beaconFactory.makeBeacon(z).sendNow()}))}};
B4I=function(){var I=_.wa.apply(0,arguments);return function(C){var y=C.pipe(x5(1),r4());C=I.map(function(k){return y.pipe(k,g4(!0))});
return L1(C).pipe(S1(1),GA())}};
E5I=function(){var I=_.wa.apply(0,arguments);return function(C){var y=C.pipe(x5(1),r4());C=I.map(function(k){return y.pipe(k,g4(!0))});
return j1.apply(null,_.Py(C)).pipe(S1(1),GA())}};
hkz=function(I,C){return function(y){var k=y.pipe(x5(1),r4());y=k.pipe(I,g4(!0));k=k.pipe(h_(C,x5(),r4()),g4(!0));y=L1([y,k]);return eEz(y,k).pipe(S1(1),GA())}};
ULz=function(I,C,y){y(!0)};
H1m=function(I,C){return h_(By(function(y){var k=I(y),F=C(y),z={};return k&&F&&z?new UC(function(c){F(k,z,function(r){c.next(Object.assign({},y,{canEmit:r}));c.complete()});
return function(){}}):i3}),X4(function(y){return y.canEmit}))};
t1I=function(I){var C={attributes:!0,childList:!0,characterData:!0,subtree:!0};return function(y){return y.pipe(By(function(k){return new UC(function(F){function z(){r.disconnect();w.unsubscribe()}
var c=I.MutationObserver;if(c&&k.ref!==void 0){var r=new c(function(L){F.next(L)});
r.observe(k.ref,C);var w=k.JSC$7212_released.subscribe(z);return z}})}))}};
JMz=function(I){if(I.measurementDeferralState===3)return null;if(I.timeOnScreenReason!==void 0){var C=I.creativeFound===!1?"n":null;if(C!==null)return C}return I.geometricMeasurementErrors instanceof ne?"msf":I.contextValidationErrors instanceof Pi?"c":I.contextVisibilityKnown===!1?"pv":I.geometricMeasurementErrors||I.contextValidationErrors?"x":null};
Do=function(I,C){return I.replace(O1X,function(y,k){try{var F=_.Le.get(C,k);if(F==null||F.toString()==null)return y;F=F.toString();if(F==""||!_.eI(F==null?"":String(F)))return encodeURIComponent(F).replace(/%2C/g,",")}catch(z){}return y})};
aRY=function(I,C){var y=Object.assign({},I),k=I.userAgentClientHints;y=(delete y.userAgentClientHints,y);y=I.payloadMapper(y);var F=r0(y,C);return _.pe(I.urlPrefixes,function(z){var c="";typeof k==="string"&&(c="&"+r0({uach:k},C));var r={};return Do(z,(r.VIEWABILITY=F,r))+c})};
qjO=function(I,C){var y=I.payloadMapper(I),k=r0(y,C);return k?_.pe(I.urlPrefixes,function(F){F=F.indexOf("?")>=0?F:F+"?";F="?&".indexOf(F.slice(-1))>=0?F:F+"&";return F+k}):I.urlPrefixes};
M1I=function(){return h_(X4(function(I){return I!==void 0}),iI(function(I){return I}))};
IoI=function(I){return h_(iI(function(){return!0}),ZR(!1),ML(I))};
C3H=function(I){return I.length<=0?VX:L1(I.map(function(C){var y=0;return C.pipe(iI(function(k){return{index:y++,value:k}}))})).pipe(X4(function(C){return C.every(function(y){return y.index===C[0].index})}),iI(function(C){return C.map(function(y){return y.value})}))};
sEs=function(I,C){I.currentState&&(I.previousState=I.currentState);I.currentState=C;I.previousState&&I.previousState.value?(C=Math.max(0,$5(C.timestamp,I.previousState.timestamp)),I.totalTime+=C,I.consecutiveTime+=C):I.consecutiveTime=0;return I};
oFs=function(){return h_(mg(sEs,{totalTime:0,consecutiveTime:0}),iI(function(I){return I.totalTime}))};
yi9=function(){return h_(mg(sEs,{totalTime:0,consecutiveTime:0}),iI(function(I){return I.consecutiveTime}))};
kTI=function(I,C){return function(y){return C3H(C.map(function(k){return y.pipe(I(k))}))}};
FwI=function(){var I;return h_(hM(function(C){return void(I=C.timestamp)}),yi9(),iI(function(C){return{timestamp:I,
value:Math.round(C)}}))};
uJH=function(I,C){return s1(I.topWindowViewportExternalGeometry,C.topWindowViewportExternalGeometry)&&s1(I.elementGeometry,C.elementGeometry)&&s1(I.exposedViewportLocalGeometry,C.exposedViewportLocalGeometry)&&s1(I.intersectionGeometry,C.intersectionGeometry)&&I.elementGeometrySourceName===C.elementGeometrySourceName&&I.measurementRequests===C.measurementRequests&&I.viewportGeometrySourceName===C.viewportGeometrySourceName&&I.viewportLocalAppOffset.x===C.viewportLocalAppOffset.x&&I.viewportLocalAppOffset.y===
C.viewportLocalAppOffset.y};
ciI=function(I,C){return function(y){return function(k){var F=k.pipe(Wy(new Oj),r4());k=y.element.pipe(AM());F=F.pipe(iI(function(z){return z.value}));
return L1([k,F,C]).pipe(iI(function(z){var c=_.T(z);z=c.next().value;var r=c.next().value;c=c.next().value;if(z.ref===void 0)var w={top:0,left:0,width:0,height:0};else{w=z.ref.getBoundingClientRect();var L=z.ref,D=I.global,p=new _.Q6(0,0),Q=Nb(_.V6(L));if(jl(Q,"parent")){do{if(Q==D)var X=_.l3(L);else X=zCF(L),X=new _.Q6(X.left,X.top);p.x+=X.x;p.y+=X.y}while(Q&&Q!=D&&Q!=Q.parent&&(L=Q.frameElement)&&(Q=Q.parent))}w={top:p.y,left:p.x,width:w.width,height:w.height}}w=i1X(w,r.viewportLocalAppOffset);
D=rMt(w,r.exposedViewportLocalGeometry);p=I.timeProvider.now();Q=Object;L=Q.assign;if(c!==2||I.inCrossDomainIframe||D.width<=0||D.height<=0)var b=!1;else try{var S=I.document.elementFromPoint(D.left+D.width/2,D.top+D.height/2);b=S?!T0I(S,z):!1}catch(A){b=!1}return{timestamp:p,value:L.call(Q,{},r,{elementGeometrySourceName:"geo",intersectionGeometry:b?XJ.intersectionGeometry:D,elementGeometry:w})}}),aI(I.queue))}}};
T0I=function(I,C,y){y=y===void 0?0:y;return I.ref===void 0||C.ref===void 0?!1:I.ref===C.ref||_.$F(C.ref,function(k){return k===I.ref})?!0:C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView===C.ref.ownerDocument.defaultView.top?!1:y<10&&C.ref.ownerDocument&&C.ref.ownerDocument.defaultView&&C.ref.ownerDocument.defaultView.frameElement?T0I(I,new RE(C.ref.ownerDocument.defaultView.frameElement),y+1):!0};
iez=function(I){return function(C){return C.pipe(I.ResizeObserver?eCI(I):riI(I),x5(1),r4())}};
eCI=function(I){return function(C){return C.pipe(By(function(y){var k=I.ResizeObserver;if(!k||y.ref===void 0)return zA(XJ.elementGeometry);var F=(new UC(function(z){function c(){y.ref!==void 0&&r.unobserve(y.ref);r.disconnect();w.unsubscribe()}
if(y.ref===void 0)return z.complete(),function(){};
var r=new k(function(L){L.forEach(function(D){z.next(D)})});
r.observe(y.ref);var w=y.JSC$7212_released.subscribe(c);return c})).pipe(bI(I.performanceMonitor,736),iI(function(z){return z.contentRect}));
return j1(zA(y.ref.getBoundingClientRect()),F)}),AM(s1))}};
riI=function(I){return function(C){var y=C.pipe(t1I(I)),k=I.onResize;y=j1(C.pipe(iI(function(){return hEY("resize")})),y,k);
return L1(C,y).pipe(bI(I.performanceMonitor,737),iI(function(F){F=_.T(F).next().value;return F.ref===void 0?void 0:F.ref.getBoundingClientRect()}),M1I(),AM(s1))}};
P3t=function(I,C){var y=wiz(I,C).pipe(x5(1),r4());return function(k){return function(F){F=F.pipe(By(function(z){return z.element}),AM());
return L1([y,F]).pipe(By(function(z){var c=_.T(z);z=c.next().value;c=c.next().value;return nFY(I,z.intersectionObserver,iez(I),z.observations,k,z.flushRecords,c)}),aI(I.queue))}}};
Lws=function(I){return iI(function(C){return C.value.viewportGeometrySourceName!=="nio"?C:Object.assign({},C,{value:Object.assign({},C.value,{exposedViewportLocalGeometry:b3(I,!0),topWindowViewportExternalGeometry:b3(I,!0)})})})};
DbW=function(I,C){return zA(C).pipe(I,iI(function(){return C}))};
wiz=function(I,C){return I.timeProvider.timeline!==pis?TA(new ne(2)):I.MutationObserver?typeof IntersectionObserver==="undefined"?TA(new ne(0)):(new UC(function(y){var k=new Oj,F=new YF(k.next.bind(k),{threshold:[].concat(_.Py(C))});y.next({observations:k.pipe(bI(I.performanceMonitor,735)),intersectionObserver:F,flushRecords:function(z){z=F.takeRecords(z);z.length>0&&k.next(z)}})})).pipe(S1(1),x5(1),r4()):TA(new ne(1))};
QEF=function(I){return Kzm(I.sort(function(C,y){return C.time-y.time}),Z2F)};
nFY=function(I,C,y,k,F,z,c){return new UC(function(r){function w(){b||(b=!0,c.ref!==void 0&&C.unobserve(F,c.ref),D.unsubscribe(),X.unsubscribe(),Q.unsubscribe(),S.unsubscribe())}
if(c.ref!==void 0){N0Y(C,F);C.observe(F,c.ref);var L=new GT({timestamp:I.timeProvider.now(),value:Object.assign({},XJ,{viewportGeometrySourceName:"nio",elementGeometrySourceName:"nio"})}),D=k.pipe(p1(function(A){return QEF(A)}),X4(function(A){return A.target===c.ref}),iI(function(A){return{timestamp:new RI(A.time,pis),
value:{viewportGeometrySourceName:"nio",exposedViewportLocalGeometry:A.rootBounds||fe,topWindowViewportExternalGeometry:A.rootBounds||b3(I,!0),measurementRequests:p,elementGeometrySourceName:"nio",intersectionGeometry:A.intersectionRect,elementGeometry:A.boundingClientRect,viewportLocalAppOffset:{x:0,y:0},isIntersecting:A.isIntersecting,isV2Visible:A.isVisible}}}),Wy(L),r4()).subscribe(r),p=new Oj,Q=p.subscribe(function(){z(F);
r.next({timestamp:I.timeProvider.now(),value:L.value.value});c.ref!==void 0&&(C.unobserve(F,c.ref),C.observe(F,c.ref))}),X=DbW(y,c).subscribe(function(){p.next()}),b=!1,S=c.JSC$7212_released.subscribe(function(){return w()});
return w}})};
VlI=function(I,C){var y=I.getOnBackgrounded().pipe(iI(function(){return"b"}));
return eEz(C,y).pipe(S1(1),ML(I.queue))};
Sl=function(I){return function(C){var y;return C.pipe(hM(function(k){return void(y=k.timestamp)}),iI(function(k){return k.value}),I,iI(function(k){return{timestamp:y,
value:k}}))}};
Ke=function(I,C,y){y=y===void 0?function(k,F){return k===F}:y;
return I.timestamp.equals(C.timestamp)&&y(I.value,C.value)};
g0=function(I,C){return C.pipe(iI(function(y){return new Ai(I.timeProvider,{timestamp:I.timeProvider.now(),value:y})}))};
jE9=function(I){return function(C){return C.pipe(REX(I),iI(function(y){var k=_.T(y);y=k.next().value;k=k.next().value;var F=y.value;return{timestamp:y.timestamp,value:F>=1?!0:F<=0?!1:F>=k}}))}};
XiX=function(){return h_(X4(function(I,C){return C>0}),loW,ZR(-1),AM())};
$bs=function(I,C,y){return I?L1([C,y]).pipe(X4(function(k){var F=_.T(k);k=F.next().value;F=F.next().value;return k.timestamp.equals(F.timestamp)}),iI(function(k){var F=_.T(k);
k=F.next().value;F=F.next().value;return k.value>F.value?k:F})):C};
Y1I=function(I){return function(C){var y=C.pipe(RCI),k=C.pipe(beH);return I instanceof UC?I.pipe(By(function(F){return $bs(F,y,k)})):$bs(I.value,y,k)}};
xbW=function(I,C,y,k){var F=k.geometryIsOccluded,z=k.exposureThreshold,c=k.wasLargeAdAtRender,r=k.allowLargeAdThreshold,w=k.largeAdExposureThreshold,L=k.mayUseViewportShareExposure,D=k.hasMeasurementStarted;k=k.useIntersectionObserverV2;C=GTY(I,y,C);y=foX(I,y);k=S1m(C,k);var p=KwF(I,F,L,C),Q=p.pipe(iI(function(yW){return yW.value}),AM(),ML(I),mg(function(yW,a){return Math.max(yW,a)},0)),X=p.pipe(iI(function(yW){return yW.value}),XiX(),ML(I)),b=C.pipe(AiH,iI(function(yW){return yW.value}),S1(2),AM(),
ML(I));
c=gFt(I,C,c,r);var S=c.pipe(ZR(!1),AM(),iI(function(yW){return yW?w:z}));
r=p.pipe(jE9(S),AM(),ML(I));var A=L1([r,C]).pipe(X4(function(yW){var a=_.T(yW);yW=a.next().value;a=a.next().value;return yW.timestamp.equals(a.timestamp)}),iI(function(yW){var a=_.T(yW);
yW=a.next().value;a=a.next().value;return{visible:yW.value,geometry:a.value.elementGeometry}}),mg(function(yW,a){return!a.visible&&yW.visible?yW:a},{visible:!1,
geometry:fe}),iI(function(yW){return yW.geometry}),ZR(fe),ML(I),AM(s1));
L=L instanceof UC?L.pipe(AM(),f1()):i3;S=L1([L,S]).pipe(f1());var x=C.pipe(X4(function(yW){return yW.value.viewportGeometrySourceName!=="ns"&&yW.value.elementGeometrySourceName!=="ns"}),mg(function(yW){return yW+1},0),ZR(0),ML(I)),B=y.pipe(f1(!0),ZR(!1),ML(I));
B=L1([D,B]).pipe(iI(function(yW){var a=_.T(yW);yW=a.next().value;a=a.next().value;return yW&&!a}),ML(I));
var t=C.pipe(vFm,AM()),U=t.pipe(iI(function(yW){return yW.value}),mg(function(yW,a){return Math.max(yW,a)},0),AM(),ML(I));
I=t.pipe(iI(function(yW){return yW.value}),XiX(),ML(I));
return{shouldResetExposureSignals:L,shouldResetViewabilitySignals:S,geometrySignals:{readyGeometryWithDefault:C,measurementStrategy:C.pipe(Wwt),creativePosition:A.pipe(AM(s1)),visible:r.pipe(AM(Ke)),timestampedExposure:p.pipe(AM(Ke)),maximumExposure:Q,minimumExposure:X,browserSize:C.pipe(dbY,AM(_.u8)),timestampedScreenShare:t,maxScreenShare:U,minScreenShare:I,geometricMeasurementErrors:y,measurementRequests:C.pipe(iI(function(yW){return yW.value.measurementRequests})),
isLargeAd:c,geometryIsOccluded:F,hasMeasurementStarted:D,geometryMeasurable:B,validMeasurementCount:x,loadTimeExposure:b,v2VisibilityBitVector:k}}};
foX=function(I,C){return C.pipe(X4(function(){return!1}),iI(function(y){return y}),Y5(function(y){return vi(new Ce(y),I)}))};
GTY=function(I,C,y){return C.pipe(TaK(i3),ML(I)).pipe(AM(function(k,F){return Ke(k,F,uJH)}),ZR({timestamp:y.now(),
value:XJ}),ML(I))};
KwF=function(I,C,y,k){y=k.pipe(Y1I(y),Sl(iI(function(F){return Math.round(F*100)/100})),ML(I));
return C instanceof Ce?y:L1([y,C]).pipe(iI(function(F){var z=_.T(F);F=z.next().value;z=z.next().value;return{timestamp:z.timestamp.maximum(F.timestamp),value:z.value?0:F.value}}),AM(Ke),ML(I))};
gFt=function(I,C,y,k){C=[C.pipe(iI(function(F){return F.value.elementGeometry.width*F.value.elementGeometry.height>=242500}))];
y instanceof UC&&C.push(y.pipe(iI(function(F){return!!F})));
y=L1(C);return k?y.pipe(iI(function(F){return F.some(function(z){return z})}),ZR(!1),AM(),ML(I)):vi(new Ce(!1),I)};
S1m=function(I,C){I=L1([I,C]).pipe(iI(function(F){var z=_.T(F);F=z.next().value;if(z.next().value&&F.value.isIntersecting)return F.value.isV2Visible}),AM());
var y=I.pipe(iI(function(F){return F===void 0?!0:F}),mg(function(F,z){return F||!z},!1)),k=I.pipe(mg(function(F,z){return z===void 0?F:z?!1:F!=null?F:!0},void 0),iI(function(F){return!!F}));
return L1([C,r_W(I,y,k)]).pipe(iI(function(F){var z=_.T(F);F=z.next().value;var c=_.T(z.next().value);z=c.next().value;var r=c.next().value;c=c.next().value;var w=0;if(!F)return 0;if(z===void 0)return 16;z&&(w|=1);z||(w|=2);r&&(w|=4);c&&(w|=8);return w}))};
B0W=function(I,C,y,k,F){var z=Wi.timeThresholdMs;var c=c===void 0?new q1I(C,k):c;return(new UC(function(r){var w=y.pipe(ZR(void 0),By(function(){return mbm(F)})).pipe(iI(function(L){var D=L.value;
L=L.timestamp;var p=D.visible;D=D.consecutiveViewTime;var Q=D>=z;Q||!p?d0(c):(L=Math.max(0,$5(C.now(),L)),ZeF(c,Math.max(0,z-D-L)));return Q}),mg(function(L,D){return D||L},!1),AM()).subscribe(r);
return function(){c.dispose();w.unsubscribe()}})).pipe(Ej(function(r){return!r},!0),ML(I))};
mbm=function(I){return C3H([I,I.pipe(FwI())]).pipe(iI(function(C){var y=_.T(C);C=y.next().value;y=y.next().value;return{timestamp:C.timestamp,value:{visible:C.value,consecutiveViewTime:y.value}}}),AM(function(C,y){return Ke(C,y,function(k,F){return k.consecutiveViewTime===F.consecutiveViewTime&&k.visible===F.visible})}))};
EFI=function(){return h_(yi9(),mg(function(I,C){return Math.max(I,C)},0),iI(function(I){return Math.round(I)}))};
hCK=function(I){return h_(jE9(zA(I)),EFI())};
UbY=function(I,C){return C instanceof UC?C.pipe(By(function(y){return(y=y?15:null)?TA(new ne(y)):I})):(C=C.value?15:null)?TA(new ne(C)):I};
HeI=function(I){var C=new ne(13);if(I.length<1)return{chain:VX,capturedErrors:VX};var y=new Oj,k=I[0];return{chain:I.slice(1).reduce(function(F,z){return F.pipe(Y5(function(c){y.next(c);return z}))},k).pipe(Y5(function(F){y.next(F);
return TA(C)}),Wy(new Oj),r4()),
capturedErrors:y}};
tlt=function(I,C){var y=I.pipe(Wy(new Oj),r4());return By(function(k){return y.pipe(C(k))})};
Oez=function(I,C){if(I.inCrossDomainIframe)return TA(new ne(6));var y=new Oj;return j1(zA({}),C,y).pipe(iI(function(){return{timestamp:I.timeProvider.now(),value:{viewportGeometrySourceName:"geo",exposedViewportLocalGeometry:Jis(I),topWindowViewportExternalGeometry:b3(I,!0),measurementRequests:y,viewportLocalAppOffset:{x:0,y:0}}}}),aI(I.queue))};
Jis=function(I){var C=b3(I,!1);if(!I.inIframe||!xF(I.global.parent)||I.global.parent===I.global)return C;var y=new qb(I.global.parent,I.debugChannel);y.beaconFactory=I.beaconFactory;y=Jis(y);I=I.global.frameElement.getBoundingClientRect();return rMt(i1X(rMt(y,I),{x:C.left-I.left,y:C.top-I.top}),C)};
aoI=function(I){if(I.prerendering)return 3;var C;return(C={visible:1,hidden:2,prerender:3,preview:4,unloaded:5,"":0}[I.visibilityState||I.webkitVisibilityState||I.mozVisibilityState||""])!=null?C:0};
MlO=function(I){return I.document.JSC$7223_onVisibilityChange.pipe(iI(function(C){return C==="visible"}),AM(),ML(I.queue))};
IDO=function(I,C,y){var k;return C.pipe(AM(),By(function(F){return y.pipe(iI(function(){if(!k){k=!0;try{F.next()}finally{k=!1}}return!0}))}),ZR(!1),ML(I.queue))};
CAI=function(I){return h_(Sl(iI(function(C){return C>=1?!0:C<=0?!1:C>=I})),oFs(),iI(function(C){return Math.round(C)}))};
oqt=function(I,C,y,k,F){var z=s1H;if(z.length>1)for(var c=0;c<z.length-1;c++)if(z[c]<z[c+1])throw Error();c=F.pipe(ZR(void 0),By(function(){return y.pipe(FwI())}),AM(),ML(I));
F=F.pipe(ZR(void 0),By(function(){return y.pipe(EFI())}),AM(),ML(I));
return{totalMeasurementTime:k.pipe(ZR(void 0),By(function(){return C.pipe(iI(function(r){return{timestamp:r.timestamp,value:!0}}),oFs())}),AM(),ML(I)),
totalUnviewedTime:k.pipe(ZR(void 0),By(function(){return C.pipe(iI(function(r){return{timestamp:r.timestamp,value:r.value===0}}),oFs())}),AM(),ML(I)),
maxTimeOnScreen:k.pipe(ZR(void 0),By(function(){return C.pipe(kTI(hCK,z))}),AM(_.u8),ML(I)),
timeOnScreen:k.pipe(ZR(void 0),By(function(){return C.pipe(kTI(CAI,z),iI(function(r){return r.map(function(w,L){return L>0?w-r[L-1]:w})}))}),AM(_.u8),ML(I)),
maxConsecutiveViewTime:F,consecutiveViewTime:c.pipe(AM(Ke),ML(I))}};
keK=function(I){var C=!0;C=C===void 0?!1:C;return h_(By(function(y){return ykH(I.document,y,C)}),ML(I.queue))};
FcI=function(I,C,y){var k=y.pipe(iI(function(F){return{value:F,timestamp:I.timeProvider.now()}}),AM(Ke));
return C instanceof UC?C.pipe(AM(),By(function(F){return F?vi(new Ce({value:!1,timestamp:I.timeProvider.now()}),I.queue):k})):C.value===!1?k:new Ce(!1)};
uBX=function(I,C,y,k,F,z,c){var r=Wi;C=C instanceof UC?C.pipe(ZR(!1),AM()):C;var w=!I.isMobile();y=FcI(I,y,k);I=c.measurableCreative.pipe(IoI(I.queue));return Object.assign({},r,{geometryIsOccluded:y,wasLargeAdAtRender:F,allowLargeAdThreshold:w,mayUseViewportShareExposure:C,hasMeasurementStarted:I,useIntersectionObserverV2:z})};
TQm=function(I,C,y,k,F,z){var c=1;z=z===void 0?!0:z;c=c===void 0?.01:c;var r=r===void 0?I.timeProvider.intervalObservable(100).pipe(ML(I.queue)):r;return I.performanceMonitor.timeExecution(916,function(){return z39(I,C.pipe(aI(I.queue)),y.pipe(aI(I.queue)),k,F,z,c,r)})()};
z39=function(I,C,y,k,F,z,c,r){var w=MlO(I).pipe(iI(function(D){return!D})),L=new ckW(I,[new e3H(I,s1H),
new rkW(I,r)]);r=B4I(iLK,w2z);return v5z(I,C,function(D,p){var Q=vi(new Ce(p.element),D.queue).pipe(keK(D),ML(D.queue)),X={loadedElement:Q,shouldMeasure:Q.pipe(f1(!0)),measurableCreative:Q.pipe(iI(function(yW){var a=a===void 0?Symbol():a;return Object.freeze({symbol:a,element:vi(new Ce(yW),D.queue)})})),
creativeSearchResult:vi(new Ce("mue"),D.queue)},b=new Ce(!1),S=new Ce(!1),A=new Ce(17),x=new Ce(!1),B=new Ce(!1),t=vi(mw,D.queue);b=L.buildGeometrySource(X,{inApp:b,useV2:!1,requestSource:vi(A,D.queue)}).geometrySource;X=uBX(D,x,S,w,B,t,X);S=xbW(D.queue,D.timeProvider,b,X);X=S.geometrySignals;x=S.shouldResetViewabilitySignals;S=oqt(D.queue,X.timestampedExposure,X.visible,S.shouldResetExposureSignals,x);x=B0W(D.queue,D.timeProvider,x,X.measurementRequests,X.visible);B=y.pipe(X4(function(yW){return yW===
p.element.ref}),iI(function(){return"ur"}));
t=Pit(D.timeProvider,F).pipe(f1("t"));B=VlI(D,j1(B,t));t=IDO(D,X.measurementRequests,B.pipe(X4(function(yW){return yW!==null})));
b=B.pipe(X4(function(yW){return yW!==null}),iI(function(){return aoI(D.global.document)===1}));
var U=nqm(D.document);return Object.assign({},{beaconFactory:new Ce(D.beaconFactory),context:new Ce(D),inferredPingId:new Ce("lidar2"),timeOnScreenPingId:new Ce("lidartos"),binaryContext:new Ce(17),binaryVersion:new Ce(k),requestSource:A,contextValidationErrors:new Ce(D.validate()?null:new Pi),contextVisibilityKnown:new Ce(U),payloadMapper:new Ce(mLz),endOfSessionReason:B,timeOnScreenReason:B,requestMeasurementOnEndOfSession:t,hasImpressionFired:PAm,crossDomainIframeState:new Ce(D.inCrossDomainIframe?
1:void 0),inStatefulBeaconExperiment:mw,inFetchLaterBeaconExperiment:mw,isTurtlex:mw,turtlexReportEventData:new Ce(""),reportFencedFrameEvent:i3,isViewableAttributionEnabled:mw,inViewableAttributionExperiment:new Ce(0),fetchBeaconFactory:i3,supportsPendingBeacon:mw,supportsFetchLater:mw,emit:new Ce(ULz),beginToRenderEvent:new Ce(Symbol()),activeViewUnmeasurableEvent:new Ce(Symbol()),activeViewViewableEvent:new Ce(Symbol()),creativeFound:PAm,immediateUrlPrefixes:new Ce(p.immediateUrls),timeOnScreenUrlPrefixes:new Ce(p.timeOnScreenUrls),
cpmavUrls:i3,viewableRelayUrls:i3,measurementDeferralState:new Ce(2),urlSerializer:new Ce(aRY),viewUrlSerializer:new Ce(Lc9),isCreativeLoaded:Q.pipe(IoI(D.queue)),pageVisible:w.pipe(iI(function(yW){return!yW})),
eosPageVisible:b,timestampedExposureHistory:X.timestampedExposure.pipe(mg(function(yW,a){yW.push(a);return yW},[]))},X,{viewable:g0(D,x),
maxTimeOnScreen:g0(D,S.maxTimeOnScreen),timeOnScreen:g0(D,S.timeOnScreen),maxConsecutiveViewTime:g0(D,S.maxConsecutiveViewTime),consecutiveViewTime:S.consecutiveViewTime.pipe(iI(function(yW){return new Ai(D.timeProvider,yW)})),
totalMeasurementTime:g0(D,S.totalMeasurementTime),totalUnviewedTime:g0(D,S.totalUnviewedTime),userAgentClientHints:Ebz(D),clientOrderPingCounter:new Ce(new dLX)})},Z1W(I,c),E5I(z?hkz(r,D9F):hkz(r,p2W),Q1F))};
NQX=function(I,C){return(I=(new RegExp("[^#]*[?&]"+C+"=([^&#]*)")).exec(I))?I[1]:null};
VyI=function(I){var C=_.wa.apply(1,arguments).filter(Boolean).join("&");if(!C)return I;var y=I.match(/[?&]adurl=/);return y?I.slice(0,y.index+1)+C+"&"+I.slice(y.index+1):I+(I.indexOf("?")<0?"?":"&")+C};
Zo=function(I,C){return C?"&"+I+"="+encodeURIComponent(C):""};
j1X=function(){try{var I,C;return!!((I=window)==null?0:(C=I.top)==null?0:C.location.href)&&!1}catch(y){return!0}};
_.Bi=function(I){I&&typeof I.dispose=="function"&&I.dispose()};
_.E1=function(I){for(var C=0,y=arguments.length;C<y;++C){var k=arguments[C];_.Mz(k)?_.E1.apply(null,k):_.Bi(k)}};
X2H=function(){var I=lDK();I=I===void 0?"bevasrsg":I;return new Promise(function(C){var y=window===window.top?window:j1X()?window:window.top,k=y[I],F;((F=k)==null?0:F.bevasrs)?C(new hi(k.bevasrs)):(k||(k={},k=(k.nqfbel=[],k),y[I]=k),k.nqfbel.push(function(z){C(new hi(z))}))})};
$9W=function(I){var C={c:I.tY,e:I.bnF,mc:I.bCN,me:I.emi};I.hs&&(C.co={c:I.hs.nE4,a:I.hs.vYs,s:I.hs.cqQ});return C};
R3I=function(I){var C,y,k={tY:I.c,bnF:I.e,bCN:(C=I.mc)!=null?C:!1,emi:(y=I.me)!=null?y:!1};I.co&&(k.hs={nE4:I.co.c,vYs:I.co.a,cqQ:I.co.s});return k};
bLY=function(I){return function(){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I(),2);C=y.yieldResult;return y.return({f:function(){return C.vSi()},
c:function(k){return C.jOg(k)},
m:function(k){return C.cA(R3I(k))},
mws:function(k){return C.cE(R3I(k))}})})}};
YBz=function(I,C){var y=lDK();y=y===void 0?"bevasrsg":y;C={s:function(z){var c;return I.snapshot(Object.assign({},z.c&&{tY:z.c},z.s&&{gbN:z.s},{nTa:(c=z.p)!=null?c:!0}))},
e:function(z){var c;return void((c=I.k64)==null?void 0:c.call(I,z))},
c:function(z,c){return I.y2B(z,c)},
p:I.dNI,l:function(){return I.qWN()},
wpc:C?bLY(C):void 0};var k=window===window.top?window:j1X()?window:window.top,F=k[y];if(F){F.bevasrs=C;if(F.nqfbel!==void 0)for(y=_.T(F.nqfbel),k=y.next();!k.done;k=y.next())k=k.value,k(C);F.nqfbel=void 0}else F={},F=(F.bevasrs=C,F.nqfbel=void 0,F),k[y]=F};
fDF=function(I){var C=C===void 0?49:C;var y=[];_.U1(I,Gez,6,_.Hi()).forEach(function(k){_.ti(k,2)<=C&&y.push(_.ti(k,1))});
return y};
SBz=function(I){var C=C===void 0?49:C;var y=[];_.U1(I,Gez,6,_.Hi()).forEach(function(k){_.ti(k,2)>C&&y.push(_.ti(k,1))});
return y};
KcO=function(I){I.then(function(){},function(){})};
Ji=function(I){return{fieldType:1,fieldName:I}};
O1=function(I){return{fieldType:2,fieldName:I}};
_.aE=function(I){return{fieldType:3,fieldName:I}};
Akm=function(){function I(){F[0]=1732584193;F[1]=4023233417;F[2]=2562383102;F[3]=271733878;F[4]=3285377520;D=L=0}
function C(p){for(var Q=c,X=0;X<64;X+=4)Q[X/4]=p[X]<<24|p[X+1]<<16|p[X+2]<<8|p[X+3];for(X=16;X<80;X++)p=Q[X-3]^Q[X-8]^Q[X-14]^Q[X-16],Q[X]=(p<<1|p>>>31)&4294967295;p=F[0];var b=F[1],S=F[2],A=F[3],x=F[4];for(X=0;X<80;X++){if(X<40)if(X<20){var B=A^b&(S^A);var t=1518500249}else B=b^S^A,t=1859775393;else X<60?(B=b&S|A&(b|S),t=2400959708):(B=b^S^A,t=3395469782);B=((p<<5|p>>>27)&4294967295)+B+x+t+Q[X]&4294967295;x=A;A=S;S=(b<<30|b>>>2)&4294967295;b=p;p=B}F[0]=F[0]+p&4294967295;F[1]=F[1]+b&4294967295;F[2]=
F[2]+S&4294967295;F[3]=F[3]+A&4294967295;F[4]=F[4]+x&4294967295}
function y(p,Q){if(typeof p==="string"){p=unescape(encodeURIComponent(p));for(var X=[],b=0,S=p.length;b<S;++b)X.push(p.charCodeAt(b));p=X}Q||(Q=p.length);X=0;if(L==0)for(;X+64<Q;)C(p.slice(X,X+64)),X+=64,D+=64;for(;X<Q;)if(z[L++]=p[X++],D++,L==64)for(L=0,C(z);X+64<Q;)C(p.slice(X,X+64)),X+=64,D+=64}
function k(){var p=[],Q=D*8;L<56?y(r,56-L):y(r,64-(L-56));for(var X=63;X>=56;X--)z[X]=Q&255,Q>>>=8;C(z);for(X=Q=0;X<5;X++)for(var b=24;b>=0;b-=8)p[Q++]=F[X]>>b&255;return p}
for(var F=[],z=[],c=[],r=[128],w=1;w<64;++w)r[w]=0;var L,D;I();return{reset:I,update:y,digest:k,digestString:function(){for(var p=k(),Q="",X=0;X<p.length;X++)Q+="0123456789ABCDEF".charAt(Math.floor(p[X]/16))+"0123456789ABCDEF".charAt(p[X]%16);return Q}}};
x9W=function(I,C){C=C===void 0?gqs:C;if(!vq9){var y;I=(y=I.navigator)==null?void 0:y.userAgentData;if(!I||typeof I.getHighEntropyValues!=="function"||I.brands&&typeof I.brands.map!=="function")return Promise.reject(Error("ya"));WcH((I.brands||[]).map(function(F){var z=new d99;z=_.zT(z,1,F.brand);return _.zT(z,2,F.version)}));
typeof I.mobile==="boolean"&&_.Mb(I1,2,I.mobile);vq9=I.getHighEntropyValues(C)}var k=new Set(C);return vq9.then(function(F){var z=I1.clone();k.has("platform")&&_.zT(z,3,F.platform);k.has("platformVersion")&&_.zT(z,4,F.platformVersion);k.has("architecture")&&_.zT(z,5,F.architecture);k.has("model")&&_.zT(z,6,F.model);k.has("uaFullVersion")&&_.zT(z,7,F.uaFullVersion);return z.serialize()}).catch(function(){return I1.serialize()})};
CL=function(I,C,y,k){this.initialValue_=I;this.maxValue_=C;this.currBaseValue_=this.currValue_=I;this.randomFactor_=y||0;this.backoffFactor_=k||2};
sB=function(I){this.src=I;this.listeners={};this.typeCount_=0};
BQF=function(){for(var I;I=qBX.remove();){try{I.fn.call(I.scope)}catch(C){om(C)}m9K.put(I)}ZLH=!1};
_.o1=function(I){switch(I){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}};
EqO=function(I){switch(I){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""}};
_.h3W=function(){};
C0K=function(I){return{diM:new U9Y(I),errorCount:new HLF(I),eventCount:new tyz(I),gYa:new Jkm(I),lW4:new OL9(I),hS9:new aDI(I),eEx:new MyK(I),xPs:new IfI(I)}};
cfm=function(I,C,y,k){I=sFm(o4Y(yf9(new _.yo(1828,"0"),I),new kOz));C.length&&FCz(I,u$H(new zzX,C));k!==void 0&&(I.destinationUrl=k);var F=new TeI(1828,"","",!1,"",I.build());_.kq(F,I);var z=new FB({flush:function(c){try{F.flush(c)}catch(r){y(r)}}});
z.addOnDisposeCallback(function(){setTimeout(function(){try{z.snapshotAndFlush()}finally{F.dispose()}})});
z.invocationLimit=1E5;z.flushInterval=3E4;z.JSC$7659_flushTimer.setInterval(3E4);return z};
uA=function(){var I,C,y;return(y=(I=globalThis.performance)==null?void 0:(C=I.now)==null?void 0:C.call(I))!=null?y:Date.now()};
rfK=function(I,C,y){if(I.disable)return new ezF;C=C?fDF(C):[];if(y)return y.nzB(C),y.share();I={sC:I.sC,ftb:I.qy0,kVI:I.vML,destinationUrl:I.destinationUrl,mvq:I.mvq,paM:I.paM};y=C;y=y===void 0?[]:y;return new ze(I,y)};
_.i$Y=function(I){if(!I)return null;I=_.Te(I,4);return I===null||I===void 0?null:_.Ca(I)};
KCt=function(I,C){return C?w4H(C):I?SuK(I):Promise.resolve()};
w4H=function(I){return new Promise(function(C,y){var k=_.c2("SCRIPT"),F=_.i$Y(I);_.fa(k,F);k.onload=function(){_.ey(k);C()};
k.onerror=function(){_.ey(k);y(Error("Ja"))};
(rQ("HEAD")[0]||document.documentElement).appendChild(k)})};
SuK=function(I){return new Promise(function(C){var y=_.c2("SCRIPT");if(I){var k=_.Te(I,6);k=k===null||k===void 0?null:_.bi(k)}else k=null;_.GK(y,k);(rQ("HEAD")[0]||document.documentElement).appendChild(y);_.ey(y);C()})};
iA=function(I,C,y){var k,F=new Promise(function(z){k=setTimeout(z,C)});
return Promise.race([I.finally(function(){return void clearTimeout(k)}),
F.then(y)])};
AfY=function(I,C){try{return globalThis.sessionStorage.setItem(I,C),!0}catch(y){return!1}};
g4W=function(I,C,y,k){C=C===void 0?0:C;y=y===void 0?I.length:y;var F=0;for(k&&(F=g4W(k));C<y;C++)k=typeof I==="string"?I.charCodeAt(C):I[C],F=v4K(31,F)+k|0;return F};
WCt=function(I,C){return[g4W(I,0,I.length>>1,C),g4W(I,I.length>>1)]};
dTK=function(I){var C=_.T(WCt(I,wQ));I=C.next().value;C=C.next().value;return I.toString(16)+C.toString(16)};
xTH=function(I,C){var y=WCt(C);I=new Uint32Array(I.buffer);C=I[0];var k=_.T(y);y=k.next().value;k=k.next().value;for(var F=1;F<I.length;F+=2){for(var z=C,c=F,r=y,w=k,L=0;L<22;L++)c=c>>>8|c<<24,c+=z|0,c^=r+38293,z=z<<3|z>>>29,z^=c,w=w>>>8|w<<24,w+=r|0,w^=L+38293,r=r<<3|r>>>29,r^=w;z=[z,c];I[F]^=z[0];F+1<I.length&&(I[F+1]^=z[1])}};
quW=function(I,C,y,k,F){var z=(4-(wQ.length+y.length)%4)%4,c=new Uint8Array(4+z+wQ.length+4+y.length),r=new DataView(c.buffer),w=0;r.setUint32(w,Math.random()*4294967295);w=w+4+z;c.set(wQ,w);w+=wQ.length;r.setUint32(w,F);c.set(y,w+4);xTH(c,k);return I.insert(C,function(L){return void globalThis.sessionStorage.removeItem(L)})?AfY(C,_.HR(c))?"s":"t":"i"};
mTm=function(I,C){var y=globalThis.sessionStorage.getItem(I);if(!y)return["m"];try{var k=_.T0(y);xTH(k,C)}catch(F){return globalThis.sessionStorage.removeItem(I),["c"]}for(C=4;C<7&&k[C]===0;)C++;for(y=0;y<wQ.length;y++)if(k[C++]!==wQ[y])return globalThis.sessionStorage.removeItem(I),["d"];y=(new DataView(k.buffer)).getUint32(C);return Math.floor(Date.now()/1E3)>=y?(globalThis.sessionStorage.removeItem(I),["e"]):["a",new Uint8Array(k.buffer,C+4)]};
Z$X=function(I){return globalThis.TextEncoder?(new TextEncoder).encode(I):_.nL(I)};
BeY=function(I){var C=I,y;return function(){if(C){var k=C;C=void 0;y=k.apply(this,arguments)}return y}};
P2=function(I){return qq(function(C){if(C instanceof I)return!0;var y,k,F=C==null?void 0:(y=C.ownerDocument)==null?void 0:(k=y.defaultView)==null?void 0:k[I.name];return E4I(F)&&C instanceof F})};
_.pL=function(I,C,y){_.LL.call(this);this.JSC$7874_listener_=I;this.JSC$7874_interval_=C||0;this.handler_=y;this.callback_=(0,_.DD)(this.JSC$7876_doAction_,this)};
_.Qo=function(I){I=hzW(I);return _.Ca(I)};
hzW=function(I){return I===null?"null":I===void 0?"undefined":I};
H$O=function(I){if(I&&I.focus)if(I!==document.activeElement)I.focus();else return UTF(function(){return _.e(function(C){document.activeElement&&document.activeElement.blur();return C.return(UTF(function(){I.focus()}))})})};
_.tXI=function(I){var C=C===void 0?5:C;setTimeout(function(){var y;return _.e(function(k){k.nextAddress==1&&(y=document.activeElement);if(k.nextAddress!=5)return(document.activeElement===y||document.activeElement===document.body)&&C>=0&&I?_.n(k,H$O(I),5):k.jumpTo(0);if(document.activeElement===I)return k.return();I=I.parentElement;--C;return k.jumpTo(2)})},15)};
UTF=function(I){return new Promise(function(C){requestAnimationFrame(function(){C(I())})})};
JfI=function(I){if(_.N9)I(_.N9);else{var C;((C=Vo)!=null?C:Vo=[]).push(I)}};
XB=function(){!_.N9&&_.lA&&_.O$z(_.lA());return _.N9};
_.O$z=function(I){_.N9=I;var C;(C=Vo)==null||C.forEach(JfI);Vo=void 0};
_.$q=function(I){_.N9&&_.N9.beforeLoadModuleCode(I)};
_.R1=function(){_.N9&&_.N9.JSC$8829_setLoaded()};
bA=function(I){return(0,_.UH)(I)?Number(I):String(I)};
Yq=function(I){this.action=I;this.wfv=!1};
af9=function(I,C){Yq.call(this,"set-drive-options");this.appId=I;this.appOrigin=C};
MXY=function(I){Yq.call(this,"visibility");this.visible=I};
Ixz=function(I,C,y){Ge.call(this,I,C,y)};
Cht=function(I){fL.call(this,I)};
sUY=function(I){I=I&&I.getWindow()||window;return I.gadgets&&I.gadgets.rpc};
oSO=function(I,C){var y=C&&C.getWindow()||window;if(sUY(C))I();else if(Sy)Sy.push(I);else var k=Sy=[I],F=y.setInterval(function(){if(sUY(C)){y.clearInterval(F);for(var z=0;z<k.length;z++)k[z]();Sy=null}},100)};
kuK=function(I,C){var y=new KL(I);_.kq(C,y);var k={passive:!1};C.listen(y,"mousewheel",function(F){return void yqt(I,F)},k).listen(I,"scroll",function(F){return void yqt(I,F)},k)};
yqt=function(I,C){var y;a:{for(y=C.target;y;){if(y.nodeType==1){var k=_.Ak(y,"overflowY");if(k=="auto"||k=="scroll")break a}y=y.parentNode}y=null}if(!y||!_.gQ(I,y)||y.scrollHeight==y.clientHeight||C.deltaY>0&&Math.abs(y.scrollTop-(y.scrollHeight-y.clientHeight))<=1||C.deltaY<0&&y.scrollTop==0)C.preventDefault(),C.stopPropagation()};
ZD=function(I,C,y,k,F,z,c,r,w){r=r===void 0?!1:r;w=w===void 0?!1:w;Ge.call(this,void 0,void 0,void 0);Ge.call(this,z?z+" picker modal-dialog":"picker modal-dialog",!0,y);_.v2(I,"protocol");this.iframeManager_=new Fns;this.targetId_=W2();this.rpcToken_=W2();I=_.dQ(I);_.xq(I,"hostId");y=_.xq(I,"parent");this.useGapi_=!w&&!0||(y==null?void 0:y.includes("onepick.corp.google.com"));r&&_.q9(I,"fv2","true");this.setUrl(I.toString());this.preferredDialogWidth_=k;this.preferredDialogHeight_=F;k!==void 0||
F!==void 0?k=!0:(k=_.xq(_.dQ(I.toString()),"hostId"),u2s||(u2s=new Set("DocVerse fusiontables geo geowiki gm gmail-gadget gws hotpot jointly presentations pwa sites templates trix trix-copy-sheet webstore".split(" "))),k=!u2s.has(k));this.autoSizeDialog_=k;this.JSC$8064_gadgetsDomHelper_=c||this.JSC$8015_dom_;C&&(c=this.JSC$8064_gadgetsDomHelper_,C=_.xq(_.dQ(this.JSC$8066_url_),"grugl")=="true"?z8z:T5W,sUY(c)||(c=c||u3(document),k=c.createElement("SCRIPT"),_.fa(k,C),k.type="text/javascript",c.JSC$7241_document_.body.appendChild(k)));
I=I.toString();C=null;c=I.indexOf("/picker?");c>-1?C=I.substring(0,c+8-1):zI(I,"/picker")&&(C=I);C&&this.setRelayUrl(C+"/resources/rpc_relay.html");this.escapeToCancel_=!1;this.buttons_=null;this.buttonEl_&&(this.buttons_?(I=this.buttons_,I.JSC$8049_element_=this.buttonEl_,I.render()):_.SO(this.buttonEl_,cqK),_.mc(this.buttonEl_,!!this.buttons_))};
_.w5Y=function(I){var C=C===void 0?e8F:C;var y=_.ow(I),k=function(z){z=_.T(z);z.next();z=B2(z);return C(y,z)},F=function(z){var c=_.T(z);
z=c.next().value;c=B2(c);return I.apply(z,c)};
return function(){var z=_.wa.apply(0,arguments),c=this||_.sF,r=rqs.get(c);r||(r={},rqs.set(c,r));return _.iHX(r,[this].concat(_.Py(z)),F,k)}};
EB=function(I){var C={};I=I.replace(/\r/g,"").split("\n");for(var y=0;y<I.length;y++){var k=I[y],F=k.indexOf(":");F<0||(C[k.substring(0,F)]=k.substring(F+2,k.length))}return C};
nSH=function(I,C,y){y=y===void 0?function(){}:y;
C=_.T(C);for(var k=C.next();!k.done;k=C.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;if(k instanceof Array&&k.includes(I)||k===I)return F()}return y()};
_.H2=function(I,C,y){y=y===void 0?function(){}:y;
return I?C():y()};
_.Lnz=function(I){var C;return((C=PhW.documentOverride)!=null?C:I).__wizdispatcher};
Jk=function(I){var C=tk;tk=I;return C};
D$H=function(I,C){var y;if((y=I)==null?0:y.isDisposed)throw Error("nb`"+String(I.debugName));for(;I!==void 0;){y=I;if(y.retrieve)return y.retrieve(C,{optional:!0});I=I.parent}return OB};
a1=function(I){return{"\u0275prov":{providedIn:"root",token:Symbol(I),factory:void 0,value:void 0}}};
p5F=function(I){var C=Jk(I);I={};return I[Symbol.dispose]=function(){Jk(C)},I};
QUs=function(I,C){I.disposables||(I.disposables=[]);I.disposables.push(C)};
IF=function(I){var C=tk;C&&!C.isDisposed&&(QUs(C,function(){return void M9(I)}),I.parent=C)};
N5m=function(I){if(I.disposables){for(var C=_.T(I.disposables),y=C.next();!y.done;y=C.next())y=y.value,y();I.disposables.length=0}};
M9=function(I){if(!I.isDisposed){I.isDisposed=!0;var C;(C=I[Symbol.dispose])==null||C.call(I);delete I.parent;N5m(I)}};
Gus=function(I){var C={retrieve:function(y){switch(y.\u0275prov.token){case VRW.\u0275prov.token:var k=I.asyncDeps;break;case jUI.\u0275prov.token:k=I.rootElement;break;case lxW.\u0275prov.token:k=I.modelRootElement;break;case X5O.\u0275prov.token:k=I.appContext;break;case $$z.\u0275prov.token:k=I.rendererData;break;case R8m.\u0275prov.token:k=I.injectingConstructor;break;case bHX.\u0275prov.token:k=I.dispatcher}if(k)y=k;else a:{for(k=C.parent;k;){var F=k;if(F.retrieve){y=F.retrieve(y);break a}k=
k.parent}k=y.\u0275prov.token;F=Y3m[k];F!==void 0?y=F:(F=y.\u0275prov.providedIn,y.\u0275prov.factory?(y=y.\u0275prov.factory(),k&&F==="root"&&(Y3m[k]=y)):y=OB)}return y}};
IF(C);return C};
S3t=function(I){var C="";var y=_.sF._F_jsUrl;if(typeof document!=="undefined"&&document&&document.getElementById&&(I=document.getElementById(I))){var k=I.tagName.toUpperCase();if(k=="SCRIPT"||k=="LINK")C=I.src?I.src:I.getAttribute("href")}if(y&&C){if(y!=C)throw Error("ub`"+y+"`"+C);C=y}else C=y||C;if(!fxO(C))throw Error("vb");return C};
gSF=function(){if(!Kn9){Kn9=!0;try{var I=S3t(_.sF._F_jsUrl?"":"base-js")}catch(k){return}var C=Aqt(C$(I)),y=Object.keys(C);y.length!==0&&JfI(function(k){for(var F=_.T(y),z=F.next();!z.done;z=F.next()){z=z.value;for(var c=_.T(Object.keys(C[z])),r=c.next();!r.done;r=c.next())k.addExtraEdge(z,r.value)}})}};
vS9=function(I,C,y){var k;return I&&C?I+"__"+C:(k=I!=null?I:C)!=null?k:y};
d$Y=function(){var I=Object.assign({},WnF);Object.getOwnPropertyNames(WnF).forEach(function(C){su[C]!==void 0&&(I[C]=su[C])});
return I};
x$s=function(I,C){if(su.enablePerformanceTiming){var y,k;(k=(y=performance).mark)==null||k.call(y,I+"Start__"+C)}};
q3s=function(I,C){if(su.enablePerformanceTiming){var y,k;(k=(y=performance).measure)==null||k.call(y,I+"__"+C,I+"Start__"+C)}};
ZHI=function(I,C){var y=Object.create(m$Y);y.debugName=C;!tk||IF(y);C=Jk(y);try{I(y)}finally{Jk(C)}return function(){return void M9(y)}};
h8m=function(I){return B5Y(I)&&ESW in I};
U$I=function(I,C){return Object.is(I,C)};
yM=function(I){var C=oF;oF=I;return C};
OHF=function(I){if(k4)throw Error("da");if(oF!==null){var C=oF.nextProducerIndex++;HHI(oF);C<oF.producerNode.length&&oF.producerNode[C]!==I&&F$(oF)&&tRI(oF.producerNode[C],oF.producerIndexOfThis[C]);oF.producerNode[C]!==I&&(oF.producerNode[C]=I,oF.producerIndexOfThis[C]=F$(oF)?Jqs(I,oF,C):0);oF.producerLastReadVersion[C]=I.version}};
IJI=function(I){if(!F$(I)||I.dirty)if(I.dirty||I.lastCleanEpoch!==axW)(I.producerMustRecompute(I)||MR9(I))&&I.producerRecomputeValue(I),I.dirty=!1,I.lastCleanEpoch=axW};
CXO=function(I){if(I.liveConsumerNode!==void 0){var C=k4;k4=!0;try{for(var y=_.T(I.liveConsumerNode),k=y.next();!k.done;k=y.next()){var F=k.value;F.dirty||(I=void 0,F.dirty=!0,CXO(F),(I=F.consumerMarkedDirty)==null||I.call(F,F))}}finally{k4=C}}};
sDX=function(){var I;return((I=oF)==null?void 0:I.consumerAllowSignalWrites)!==!1};
ot9=function(I){I&&(I.nextProducerIndex=0);return yM(I)};
yYt=function(I,C){yM(C);if(I&&I.producerNode!==void 0&&I.producerIndexOfThis!==void 0&&I.producerLastReadVersion!==void 0){if(F$(I))for(C=I.nextProducerIndex;C<I.producerNode.length;C++)tRI(I.producerNode[C],I.producerIndexOfThis[C]);for(;I.producerNode.length>I.nextProducerIndex;)I.producerNode.pop(),I.producerLastReadVersion.pop(),I.producerIndexOfThis.pop()}};
MR9=function(I){HHI(I);for(var C=0;C<I.producerNode.length;C++){var y=I.producerNode[C],k=I.producerLastReadVersion[C];if(k!==y.version)return!0;IJI(y);if(k!==y.version)return!0}return!1};
Jqs=function(I,C,y){klI(I);if(I.liveConsumerNode.length===0&&I.producerNode!==void 0)for(var k=0;k<I.producerNode.length;k++)I.producerIndexOfThis[k]=Jqs(I.producerNode[k],I,k);I.liveConsumerIndexOfThis.push(y);return I.liveConsumerNode.push(C)-1};
tRI=function(I,C){klI(I);if(I.liveConsumerNode.length===1&&I.producerNode!==void 0)for(var y=0;y<I.producerNode.length;y++)tRI(I.producerNode[y],I.producerIndexOfThis[y]);y=I.liveConsumerNode.length-1;I.liveConsumerNode[C]=I.liveConsumerNode[y];I.liveConsumerIndexOfThis[C]=I.liveConsumerIndexOfThis[y];I.liveConsumerNode.length--;I.liveConsumerIndexOfThis.length--;C<I.liveConsumerNode.length&&(y=I.liveConsumerIndexOfThis[C],I=I.liveConsumerNode[C],HHI(I),I.producerIndexOfThis[y]=C)};
F$=function(I){var C,y;return I.consumerIsAlwaysLive||((y=I==null?void 0:(C=I.liveConsumerNode)==null?void 0:C.length)!=null?y:0)>0};
HHI=function(I){I.producerNode!=null||(I.producerNode=[]);I.producerIndexOfThis!=null||(I.producerIndexOfThis=[]);I.producerLastReadVersion!=null||(I.producerLastReadVersion=[])};
klI=function(I){I.liveConsumerNode!=null||(I.liveConsumerNode=[]);I.liveConsumerIndexOfThis!=null||(I.liveConsumerIndexOfThis=[])};
uTX=function(I){var C=Object.create(FZt);C.computation=I;I=function(){IJI(C);OHF(C);if(C.value===u0)throw C.error;return C.value};
I[zO]=C;return I};
TCH=function(I,C){var y=Object.create(zwm);y.value=I;C!==void 0&&(y.equal=C);I=function(){OHF(y);return y.value};
I[zO]=y;return I};
rYH=function(I,C){I=TCH(I,C);var y=I[zO];return[I,function(k){return cYz(y,k)},
function(k){sDX()||ew9(y);cYz(y,k(y.value))}]};
cYz=function(I,C){sDX()||ew9(I);if(!I.equal(I.value,C)){I.value=C;I.version++;axW++;CXO(I);var y;(y=ihm)==null||y(I)}};
TO=function(I){var C=yM(null);try{return I()}finally{yM(C)}};
_.c4=function(I,C,y){y=y===void 0?"":y;I=rYH(I,C==null?void 0:C.equals);var k=I[0],F=k[zO];F.debugName=vS9(C==null?void 0:C.debugName,y,"[signal]");if(!su.enablePerformanceTiming)return I;var z=I[1],c=I[2];return[k,function(r){wNz(function(){return void z(r)},F)},
function(r){wNz(function(){return void c(r)},F)}]};
wNz=function(I,C){x$s("signalSet",C.debugName);try{I()}finally{q3s("signalSet",C.debugName)}};
PXF=function(I,C){var y=_.T(_.c4(I,void 0,"cPpJzc"));I=y.next().value;y=y.next().value;I[ntz]=y;I[re]=C;return I};
LZI=function(I){return!!I&&typeof I==="object"&&Object.getPrototypeOf(I)===Object.prototype};
DSz=function(I){return typeof I==="function"&&ntz in I&&typeof I[ntz]==="function"};
pN9=function(I,C){Object.defineProperty(I,re,{get:function(){return C}})};
we=function(I,C){if(i0(I)){var y=I.map(function(z){return we(z,C)});
pN9(y,C);return y}if(LZI(I)){y={};I=_.T(Object.entries(I));for(var k=I.next();!k.done;k=I.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;y[k]=we(F,C)}pN9(y,C);return y}return PXF(I,C)};
QDY=function(I){if(i0(I))return I.map(function(F){return QDY(F)});
if(LZI(I)){var C={};I=_.T(Object.entries(I));for(var y=I.next();!y.done;y=I.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;C[y]=QDY(k)}return C}return DSz(I)?I():I};
V7Y=function(){var I={height:0,width:0};if(!LZI(I))throw Error("Hb");var C=Symbol("Ib");return[we(I,C),function(y,k){if(y[re]===C)if(typeof k==="function"){var F=[].concat(_.Py(QDY(y)));k=k(F)||F;NC9(y,[].concat(_.Py(k)))}else NC9(y,k);else throw Error("Jb");}]};
NC9=function(I,C){if(DSz(I))I[ntz](C);else if(i0(I)&&i0(C))C=we(C,I[re]),I.length=0,I.push.apply(I,_.Py(C));else if((LZI(I)||i0(I))&&(i0(C)||typeof C==="object"&&C!==null)){C=_.T(Object.entries(C));for(var y=C.next();!y.done;y=C.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;var F=I,z=F[y];Object.hasOwn(I,y)?NC9(z,k):F[y]=we(k,I[re])}}else throw Error("Kb");};
jDz=function(I){return Object.create(Object.assign({},n$,I))};
XNX=function(){var I;return(I=lJz)!=null?I:lJz=jDz({consumerAllowSignalWrites:!0})};
_.P4=function(I,C,y){y=y===void 0?"":y;I=uTX(I);var k=I[zO];k.debugName=vS9(C==null?void 0:C.debugName,y,"[computed]");(C==null?void 0:C.equals)!=null&&(k.equal=C.equals);return I};
Df=function(I){var C=yM($Sm);try{I()}finally{yM(C)}};
KZF=function(I){if(!I.isDisposed)switch(I.effectType){case Rwz:bht.schedule(I);break;case Y8z:Gl9.schedule(I);break;case fJI:S8z.schedule(I);break;default:_.C8(I.effectType)}};
gtW=function(I){AYK.push(I);return function(){var C=AYK.indexOf(I);C!==-1&&AYK.splice(C,1)}};
WZm=function(){if(p$>0)bht.flush();else for(var I=_.T(vtm),C=I.next();!C.done;C=I.next())C.value.flush()};
xSI=function(I){for(var C=_.T(I),y=C.next();!y.done;y=C.next()){var k=y.value;for(y=[k];k.parent!==void 0;)k=k.parent,dS9(k)&&I.has(k)&&y.push(k);for(;y.length>0;){k=y.pop();try{k.run()}finally{I.delete(k)}}}};
q8m=function(I){p$--;if(I){I=_.T(vtm);for(var C=I.next();!C.done;C=I.next())C.value.clear()}else p$>0||WZm()};
mSz=function(I){var C=I.component;var y=I.debugInstance;I=I.fn;var k,F=(k=C.debugName)!=null?k:C.name;QM={name:y?F+" ("+y+")":F,isReactive:C.componentType!==NT,parent:QM};C=I();QM=QM.parent;return C};
VM=function(){var I=QM;return I?I.isReactive:!1};
jX=function(I,C){C=C===void 0?{}:C;var y=QM;C.stack&&(QM=C.stack);try{return I()}catch(r){I=r;C=QM;for(var k=0,F=C;F!==null;)k++,F=F.parent;if(k!==0&&!I.componentStack)try{if(I.componentStack=C,su.enableComponentStacksInErrorMessages){var z=Zh9(C),c=I.message+"\n\nComponent stack: "+z;I.stack&&(I.stack=I.stack.replace(I.message,c));I.message=c}}catch(w){}if(I!==BCt){EtW=QM;z=[];for(c=tk;c;)C=void 0,z.push((C=c.debugName)!=null?C:"[context]"),C=void 0,c=(C=c.parent)!=null?C:null;hwF=z.reverse()}BCt=
I;throw I;}finally{QM=y}};
Zh9=function(I){for(var C=[];C.length<20&&I;)C.push(I.name),I=I.parent;return C.join(" > ")};
USO=function(I,C,y){C=Object.create(C);C.componentStack=QM;C.effectFn=I;y&&(C.debugName=y);IF(C);return C};
_.l0=function(I,C){I=USO(I,HhF,C);KZF(I)};
_.X$=function(I,C){I=USO(I,t7Y,C);KZF(I)};
_.$4=function(I){var C=tk;if(C){var y=QM;QUs(C,function(){var k=yM(XNX());try{jX(function(){return void I()},{stack:y})}finally{yM(k)}})}};
RF=function(I,C){var y={};(C===void 0||C)&&IF(y);C=Jk(y);try{I(y)}finally{Jk(C)}return function(){return void M9(y)}};
_.b0=function(I){return typeof I==="function"?I():(I==null?0:I[JYI])?I.get():I};
OhH=function(I){if(tk)throw Error("rb");RF(I,!1)};
Y4=function(I,C){I=Jk(I);try{return TO(C)}finally{Jk(I)}};
GO=function(I,C,y){y=y===void 0?3:y;var k=EtW,F,z;var c=(z=(F=hwF)==null?void 0:F.slice())!=null?z:[];C={componentStack:k,contextTrace:c,errorSeverity:y,featureFlags:d$Y(),tagName:C};return[I,C]};
IvO=function(I,C,y){if(Object.hasOwnProperty.call(aJF,I)&&(I=aJF[I],Object.hasOwnProperty.call(I,C)&&(I=I[C],I instanceof Array))){for(var k=null,F=!1,z=0,c=I.length;z<c;++z){var r=I[z],w=r.contingentAttribute;if(!w)return r.contract;k===null&&(k={});w=Object.hasOwnProperty.call(k,w)?k[w]:k[w]=y(w);if(w===r.requiredValue)return r.contract;w==null&&(F=!0)}if(F)return null}C=M79[C];return typeof C==="number"?C:null};
oVz=function(I,C,y){var k=null;(I=C$F[I])&&(k=I[C]);return typeof k!=="number"&&((I=C$F["*"])&&(k=I[C]),typeof k!=="number")?!1:!0===set[k][String(y).toLowerCase()]};
kDz=function(I,C){C=IvO(I.toLowerCase(),C,function(){var k;(k=su.handleError)==null||k.call.apply(k,[su].concat(_.Py(GO(Error("Pb"),I.toLowerCase()))))});
if(C===null)return null;var y;return(y=yzI[C])!=null?y:null};
Fxt=function(I,C,y){if(y===null||y===void 0)return y;I=kDz(I,C);return I===null?y:I(C,y)};
ujK=function(){};
f$=function(I,C){for(;I.length>C;)I.pop()};
z19=function(I){I=Array(I);f$(I,0);return I};
TIO=function(I,C,y){if(y==null)I.removeAttribute(C);else{var k;(k=C.lastIndexOf("xml:",0)===0?"http://www.w3.org/XML/1998/namespace":C.lastIndexOf("xlink:",0)===0?"http://www.w3.org/1999/xlink":null)?I.setAttributeNS(k,C,y):I.setAttribute(C,y)}};
czK=function(I,C,y){I[C]=y};
rzF=function(I,C,y){I=I.style;if(typeof y==="string")I.cssText=y;else{I.cssText="";for(var k in y)if(e1m.call(y,k)){C=I;var F=k,z=y[k];F.indexOf("-")>=0?C.setProperty(F,z):C[F]=z}}};
iwY=function(I,C,y){var k=typeof y;k==="object"||k==="function"?I[C]=y:TIO(I,C,y)};
wFs=function(){var I=new ujK;I[SX.default]=iwY;I.style=rzF;return I};
nVH=function(I,C,y,k){(k[C]||k[SX.default])(I,C,y)};
Lxz=function(I,C,y){C=new P$m(C,y);return I.__incrementalDOMData=C};
K$=function(I,C){if(I.__incrementalDOMData)return I.__incrementalDOMData;var y=I.nodeType===1?I.localName:I.nodeName,k=I.nodeType===1?I.getAttribute("key"):null;C=Lxz(I,y,I.nodeType===1?k||C:null);if(I.nodeType===1&&(I=I.attributes,y=I.length)){k=C._attrsArr||(C._attrsArr=z19(y*2));for(var F=0,z=0;F<y;F+=1,z+=2){var c=I[F],r=c.value;k[z]=c.name;k[z+1]=r}}return C};
DyX=function(I,C,y,k,F){return C==y&&k==F};
pFX=function(I){for(var C=Af,y=ge();y!==I;){var k=y.nextSibling;C.removeChild(y);v4.deleted.push(y);y=k}};
ge=function(){return W4?W4.nextSibling:Af.firstChild};
de=function(){W4=ge()};
VPI=function(I,C,y){de();var k;a:{if(k=W4){do{var F=k,z=I,c=C,r=K$(F,c);if(Qez(F,z,r.nameOrCtor,c,r.key))break a}while(C&&(k=k.nextSibling))}k=null}k||(I==="#text"?(y=x4.createTextNode(""),Lxz(y,"#text",null),I=y):(k=x4,F=Af,typeof I==="function"?k=new I:k=(F=I==="svg"?"http://www.w3.org/2000/svg":I==="math"?"http://www.w3.org/1998/Math/MathML":F==null||K$(F).nameOrCtor==="foreignObject"?null:F.namespaceURI)?k.createElementNS(F,I):k.createElement(I),Lxz(k,I,C),I=k,y&&I.setAttribute("nonce",y)),v4.created.push(I),
k=I);y=k;if(y!==W4){if(NIW.indexOf(y)>=0)for(I=Af,C=y.nextSibling,k=W4;k!==null&&k!==y;)F=k.nextSibling,I.insertBefore(k,C),k=F;else Af.insertBefore(y,W4);W4=y}};
jeK=function(I,C,y){VPI(I,C,y);Af=W4;W4=null;return Af};
lvF=function(){pFX(null);W4=Af;Af=Af.parentNode};
qT=function(){W4=Af.lastChild};
R1s=function(I,C){C=C===void 0?{}:C;var y=C.matches===void 0?DyX:C.matches;return function(k,F,z){var c=v4,r=x4,w=NIW,L=mC,D=Zf,p=W4,Q=Af,X=Qez;x4=k.ownerDocument;v4=new XF9(k);Qez=y;mC=[];Zf=[];W4=null;var b=Af=k.parentNode,S,A=$yY.call(k);if((S=A.nodeType===11||A.nodeType===9?A.activeElement:null)&&k.contains(S)){for(A=[];S!==b;)A.push(S),S=S.parentNode||(b?S.host:null);b=A}else b=[];NIW=b;try{return I(k,F,z)}finally{k=v4,hf&&k.deleted.length>0&&hf(k.deleted),x4=r,v4=c,Qez=X,mC=L,Zf=D,W4=p,Af=Q,
NIW=w}}};
bwm=function(I,C,y,k){Uu.push(nVH);Uu.push(I);Uu.push(C);Uu.push(y);Uu.push(k)};
GDI=function(I,C,y){var k=Zf;C=C._attrsArr||(C._attrsArr=z19(k.length));for(var F=!C.length||!1,z=0;z<k.length;z+=2){var c=k[z];if(F)C[z]=c;else if(C[z]!==c)break;var r=k[z+1];if(F||C[z+1]!==r)C[z+1]=r,bwm(I,c,r,y)}if(z<k.length||z<C.length){for(z=F=z;z<C.length;z+=2)H4[C[z]]=C[z+1];for(z=F;z<k.length;z+=2)F=k[z],c=k[z+1],H4[F]!==c&&bwm(I,F,c,y),C[z]=F,C[z+1]=c,delete H4[F];f$(C,k.length);for(var w in H4)bwm(I,w,void 0,y),delete H4[w]}I=YLW;YLW=y=Uu.length;for(w=I;w<y;w+=5)(0,Uu[w])(Uu[w+1],Uu[w+
2],Uu[w+3],Uu[w+4]);YLW=I;f$(Uu,I);f$(k,0)};
tf=function(I){VPI("#text",null);var C=W4;var y=K$(C);if(y.text!==I){y=y.text=I;for(var k=1;k<arguments.length;k+=1)y=(0,arguments[k])(y);C.data!==y&&(C.data=y)}};
vVz=function(I,C,y){if(y===!1&&fvX.has(C))TIO(I,C,null);else if(C!=="idomKey"&&C!=="skip"&&C!=="skipchildren"&&C!=="children"&&C!=="el"){if(C.startsWith("on"))if(C[2]===":"){if(y===void 0||y===null){var k;(k=su.handleError)==null||k.call.apply(k,[su].concat(_.Py(GO(Error("Vb`"+C),I.tagName))));I[C]=void 0;return}if(typeof y!=="object"||y===null)throw Error("Wb`"+C+"`"+typeof y);if(typeof y.getFn!=="function")throw Error("Xb`"+C+"`"+Object.keys(y));var F=y.getFn(0),z=C.slice(3);if((k=VM())&&I["on"+
z]===void 0)I.addEventListener(z,F),_.$4(function(){return void I.removeEventListener(z,F)});
else if(k||!SLW.includes(z))I["on"+z]=F}else{KxI(I,C,y);return}else if(C.startsWith("data-")&&typeof y==="string")try{y=AzY(y)}catch(c){y="zSoyz"}typeof y!=="function"||I._disposeEffects!=null?(su.enableAttributeSanitization&&(y=Fxt(I.tagName,C,y)),C==="style"?gVO(I,C,y):C.startsWith("prop:")?(C=C.slice(5),I[C]=y):KxI(I,C,y)):(I._signalProps||(I._signalProps=[]),I._signalValues||(I._signalValues=[]),I._signalProps.push(C))}};
WxO=function(I,C,y){y=(y===void 0?{}:y).isReactive;if(C==null?0:C.el){var k=C.el;if(typeof k==="function")k(I);else{var F;(F=k.onRender)==null||F.call(k,I);I._disposeRef||(I._disposeRef=function(){var z;(z=k.onUnmount)==null||z.call(k);delete I._disposeRef},y&&_.$4(function(){var z;
return void((z=I._disposeRef)==null?void 0:z.call(I))}))}}};
dyz=function(I){return B5Y(I)&&Jf in I};
xym=function(I){return dyz(I)?I[Jf].flattened:I};
qLF=function(I,C){var y=_.wa.apply(2,arguments),k;C=(k=C)!=null?k:{};k={};return k.type=I,k.props=C,k.children=y,k[Ou]=!0,k};
_.aF=function(I){return I.children};
MT=function(I){var C=mym!==qLF;mym=I?ZwI:qLF;return C};
IU=function(I){return _.sw(I)?"nodeType"in I:!1};
CH=function(){return document.createTextNode("")};
s3=function(I){I=document.createTextNode(String(I));I._isSignalTextNode=!0;return I};
BIW=function(I){var C=document.createElement("div");if(!(I instanceof Qp)){if(I.contentKind!==oU)throw Error("Tb");I=NM(I.toString())}_.SO(C,I);I=_.T(C.childNodes);for(var y=I.next();!y.done;y=I.next())y.value._isSafeOrSanitizedHtmlNode=!0;return C};
yr=function(I){I=typeof I;return I==="string"||I==="number"||I==="boolean"};
EVI=function(I){return I instanceof IM||ui(I)||"function"==typeof _.vn&&I instanceof _.vn||!1};
h1K=function(I,C){var y=I.parentElement;if(!y)return C;y.replaceChild(C,I);return C};
UyI=function(I,C){var y=I[0].parentElement;if(y)if(I[0].previousSibling||I[I.length-1].nextSibling){y.insertBefore(C,I[0]);for(var k=I.length-1;k>=0;k--)y.removeChild(I[k])}else y.textContent="",y.appendChild(C);return C};
HwI=function(I,C){if(I[0].parentElement)for(var y=I[0].parentElement,k=C.length,F=I.length,z=k,c=0,r=0,w=I[F-1].nextSibling,L=null;c<F||r<z;)if(I[c]===C[r])c++,r++;else{for(;I[F-1]===C[z-1];)F--,z--;if(F===c)for(var D=z<k?r?C[r-1].nextSibling:C[z-r]:w;r<z;){var p=C[r++];y.insertBefore(p,D)}else if(z===r)for(;c<F;)D=I[c],L&&L.has(D)||y.removeChild(D),c++;else if(I[c]===C[z-1]&&C[r]===I[F-1])D=I[--F].nextSibling,y.insertBefore(C[r++],I[c++].nextSibling),y.insertBefore(C[--z],D),I[F]=C[z];else{if(!L)for(L=
new Map,D=r;D<z;)L.set(C[D],D++);D=L.get(I[c]);if(D==null)y.removeChild(I[c]),c++;else if(r<D&&D<z){p=c;for(var Q=1,X=void 0;++p<F&&p<z&&(X=L.get(I[p]))!=null&&X===D+Q;)Q++;if(Q>D-r)for(p=I[c];r<D;)y.insertBefore(C[r++],p);else y.replaceChild(C[r++],I[c++])}else c++}}return C};
Jzm=function(I){if(Array.isArray(I)){if(I.length>1)throw Error("fc`"+I.length+"`"+I.map(tPI).join(", "));I=I[0]}if(I==null)return null;if(!(I instanceof _.RM)){var C,y;if((C=window)==null?0:(y=C.trustedTypes)==null?0:y.isScript(I))throw Error("ec");if(String(I).trim().length===0)return null;throw Error("gc`"+tPI(I));}return I};
OwH=function(I){if(Array.isArray(I)){if(I.length>1)throw Error("hc`"+I.length+"`"+I.map(tPI).join(", "));I=I[0]}if(I==null)return null;if(!pam(I)){if(String(I).trim().length===0)return null;throw Error("ic`"+tPI(I));}return I};
tPI=function(I){return"("+typeof I+") "+(I!=null&&typeof I==="object"?I.constructor.name:typeof I)+" "+I};
F2=function(I,C){function y(){F=!1;C.isControlFlowComponent&&p$++;var z=k[0],c=k[Jf].flattened,r=MT(!0);try{var w=I(),L=avs(z,w,k);Array.isArray(L)||(k[Jf].flattened=[L]);var D=k[Jf].flattened;if(c&&(!Array.isArray(c)||c.length!==0)){var p=Array.isArray(c)?c[0]:c,Q=p[kS],X=p._disposeEffects;p._disposeEffects=void 0;p=Array.isArray(D)?D[0]:D;p[kS]=Q;p[kS]&&(p[kS].numNodes=p===D?1:D.length);p._disposeEffects=X}k[0]=L;C.isControlFlowComponent&&q8m(!1)}catch(b){throw C.isControlFlowComponent&&q8m(!0),
b;}finally{MT(r)}}
C=C===void 0?{}:C;var k=MPF(),F=!0;_.X$(function(){(IiI==null?0:IiI.logger)&&!F?IiI.logger.logGraft(k[0],y):y()},C.debugName);
return k};
avs=function(I,C,y){for(;typeof C==="function";)C=C();if(C!=null&&C[Ou]){var k,F,z;(z=su.handleError)==null||z.call.apply(z,[su].concat(_.Py(GO(Error("jc`"+((k=C.type)==null?void 0:k.TAG_NAME)),(F=C.type)==null?void 0:F.TAG_NAME))))}if(I==null)return C==null?CH():yr(C)?s3(C):EVI(C)?s3(C.toString()):IU(C)?C:C.length===0?CH():C2t(C,y);if(IU(I)){if(C==null)return h1K(I,CH());if(yr(C))return s0H(I,C);if(EVI(C))return s0H(I,C.toString());if(IU(C))return h1K(I,C);if(C.length===0)return h1K(I,CH());C=C2t(C,
y);HwI([I],y[Jf].flattened);return C}I=uh(I);if(C==null)return UyI(I,CH());if(yr(C))return UyI(I,s3(C));if(EVI(C))return UyI(I,s3(C.toString()));if(IU(C))return HwI(I,[C])[0];if(C.length===0)return UyI(I,CH());C=C2t(C,y);HwI(I,y[Jf].flattened);return C};
s0H=function(I,C){I.nodeType===Node.TEXT_NODE?I.textContent!==String(C)&&(I.textContent=String(C)):I=h1K(I,s3(C));return I};
uh=function(I,C,y){return ooK(I,C!=null?C:[],y===void 0?!1:y)};
C2t=function(I,C){var y=uh(I,void 0,!0);if(y.length===0)return CH();C[Jf].flattened=y;return I};
ooK=function(I,C,y,k,F){C=C===void 0?[]:C;y=y===void 0?!1:y;F=F===void 0?-1:F;if(I==null)return C;if(I instanceof zu)return I=I.render(),ooK(I,C,y,k,F);if(IU(C)&&C.nodeType===Node.ELEMENT_NODE)switch(C.tagName){case "SCRIPT":y=Jzm(I);y!==null&&_.GK(C,y);return;case "STYLE":y=OwH(I);y!==null&&(C.textContent=_.QJF(y));return}yr(I)&&(I=s3(I),k&&y&&(k[F]=I));if(I!=null&&I.contentKind===oU||I instanceof Qp){y=BIW(I);y=Array.from(y.childNodes);y=_.T(y);for(I=y.next();!I.done;I=y.next())y3H(C,I.value);return C}EVI(I)&&
(I=s3(I.toString()),k&&y&&(k[F]=I));if(IU(I))return y3H(C,I);if(Array.isArray(I)){for(var z=0;z<I.length;z++)ooK(I[z],C,y,I,z);return C}if(typeof I==="function"){I=F2(I,{debugName:"qmF2ne"})[0];if(Array.isArray(I)){y=_.T(I);for(I=y.next();!I.done;I=y.next())y3H(C,I.value);return C}k&&y&&(k[F]=I);return y3H(C,I)}if(I!=null&&I[Ou]){k=MT(!0);F=mym;try{z=F.apply(null,[I.type,I.props].concat(_.Py(I.children)))}finally{MT(k)}return ooK(z,C,y)}var c;(c=su.handleError)==null||c.call.apply(c,[su].concat(_.Py(GO(Error("kc")))));
return C};
MPF=function(I){var C={};C=Object.assign([],(C[Jf]={flattened:[]},C));if(!I)return C;C[0]=C2t(I,C);return C};
y3H=function(I,C){Array.isArray(I)?I.push(C):I.appendChild(C);return I};
eR=function(I){if(!su.enableLazyTsx)return I;if(Array.isArray(I)){for(var C=0;C<I.length;C++)I[C]=eR(I[C]);return I}return I instanceof zu?(I=I.render(),eR(I)):I};
u9I=function(I,C){var y,k,F=kBO(I),z=function(X){k=X;X=MT(!0);var b=yM(r5);x$s("render",F);try{y=eR(I(C))}finally{q3s("render",F),yM(b),MT(X)}};
z=su.enableContextPerComponent?ZHI(z,F):RF(z,su.alwaysTrackContexts||!!tk);h8m(k);if(!C.renderedFromIdom){var c=Jk(k);try{return FUW(I,C,y),y}finally{Jk(c)}}!dyz(y)&&Array.isArray(y)&&(y=MPF(y));var r=xym(y);c=Array.isArray(r)?r[0]:r;var w=!1;if(c){var L,D=(L=C==null?void 0:C.idomKey)!=null?L:I;L=r!==c;c._disposeEffects=z;var p=c[kS]||{},Q=dyz(y)?y:p.sourceDynamicRange;Object.assign(p,{key:D,numNodes:L?r.length:1,context:k,higherOrder:!!c[kS],sourceDynamicRange:Q});c[kS]=p}else w=!0;(function(){var X=
Jk(k);try{FUW(I,C,r)}finally{Jk(X)}})();
w&&z();return y};
kBO=function(I){var C,y;return(y=(C=I.debugName)!=null?C:I.name)!=null?y:"[component]"};
zjt=function(I){var C={},y;for(y in I)C={prev$jscomp$23:void 0,next$jscomp$25:void 0},C.prev$jscomp$23=w5[y],C.next$jscomp$25=I[y],w5[y]=function(k){return function(){var F=_.wa.apply(0,arguments);k.prev$jscomp$23.apply(null,_.Py(F));k.next$jscomp$25.apply(null,_.Py(F))}}(C)};
TTH=function(){if(VM())throw Error("lc");return nH};
c3O=function(I,C){if(!I.__unmounted&&C){I.__unmounted=!0;try{I.didUnmount()}catch(F){var y,k;(k=su.handleError)==null||k.call.apply(k,[su].concat(_.Py(GO(F,(y=I.JSC$8140___type)==null?void 0:y.TAG_NAME))))}w5.didUnmount(I);I.el=null;C.__instance&&delete C.__instance}};
r3s=function(I,C,y){I._signalProps!=null&&I._disposeEffects==null&&((y===void 0?0:y)?I._disposeEffects=RF(function(){return void ejF(I,C)},su.alwaysTrackContexts||!!tk):ejF(I,C))};
ejF=function(I,C){_.X$(function(){for(var y=I._signalProps,k=I._signalValues,F=0;F<y.length;F++){var z=y[F],c=C[z]();k[F]!==c&&(k[F]=c,vVz(I,z,c))}},"e3YVbb")};
iiK=function(I,C,y){var k,F=[];I._disposeEffects=RF(function(){_.X$(function(){var z=y();if(z===null||z===void 0)z="";if(yr(z)||z===null)k!=null||(k=document.createTextNode("")),k.parentNode!==I&&(k._isSignalTextNode=!0,I.insertBefore(k,C)),k.textContent=String(z);else if(z!=null&&z.contentKind===oU||z instanceof Qp){for(var c=F.length>0?F[F.length-1].nextSibling:C,r=_.T(F),w=r.next();!w.done;w=r.next())I.removeChild(w.value);z=BIW(z);F=Array.from(z.childNodes);z=_.T(F);for(r=z.next();!r.done;r=z.next())I.insertBefore(r.value,
c)}else throw w=(r=(c=QM)==null?void 0:c.name)!=null?r:"unknown",Error("ac`"+w+"`"+typeof z);},"VvDgC")},su.alwaysTrackContexts||!!tk)};
P29=function(I,C){var y=_.wa.apply(2,arguments);C!=null||(C={});return!su.enableLazyTsx||QM!=null&&!VM()?wHm(I,C,y):new noH(I,C,y)};
wHm=function(I,C,y){if(I===_.aF)return y;if(typeof I==="function")return QM&&!VM()&&(C.renderedFromIdom=!0),mSz({component:I,debugInstance:C.debugInstance,fn:function(){var z=LUH(I,C,y);if(z)return z;y.length>0&&(C.children=y.length===1?y[0]:y);z=C;if(I.componentType!==NT)var c=!1;else{z||(z={});var r=new P5(z,I),w=yM(r5);try{c=r.render(z)}finally{yM(w)}c instanceof HTMLElement&&(c.__instance=r,r.el=c,r.JSC$8140___type=I,I.TAG_NAME=c.tagName.toLowerCase(),w5.didPatch(r))}return c===!1?u9I(I,C):c}});
var k=DUX(I,C),F;for(F in C)vVz(k,F,C[F]);r3s(k,C);uh(y,k);WxO(k,C,{isReactive:!0});pHH(k,C);return k};
DUX=function(I,C){I=(Q0Y.has(I.toLowerCase())?0:NT9.has(I.startsWith("svg:")?I.replace("svg:",""):I))?document.createElementNS("http://www.w3.org/2000/svg",I.startsWith("svg:")?I.replace("svg:",""):I):VNs(I,C)||document.createElement(I);I[j0K]=!0;return I};
lis=function(I){if(I){var C;(C=I._disposeRef)==null||C.call(I);var y;(y=I._disposeEffects)==null||y.call(I);I.__instance&&I.__instance instanceof LH&&(C=I.__instance,c3O(C,I),C instanceof P5&&C.disposeEffects());for(C=0;C<I.childNodes.length;C++)lis(I.childNodes[C])}};
$Um=function(I){XHF.push(I)===1&&requestAnimationFrame(function(){setTimeout(function(){var C=[].concat(_.Py(XHF));XHF=[];C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;try{for(var k=0;k<y.length;k++)lis(y[k])}catch(F){k=y=void 0,(k=(y=su).handleError)==null||k.call.apply(k,[y].concat(_.Py(GO(F))))}}})})};
_.P=function(I,C){return mym.apply(null,[I,C].concat(_.Py(_.wa.apply(2,arguments))))};
biI=function(){var I=document.body.firstElementChild;window.ng||I.__ngContext__||(I.__ngContext__={},I.setAttribute("ng-version","0.0.0-PLACEHOLDER"),window.ng=RjI)};
_.Dx=function(I){var C=I.cond;if(C===void 0)return I.else&&I.else();var y=_.P4(function(){return!!C()},void 0,"y0Xknf"),k=function(){var F=C();
if(!F){var z;(z=su.handleError)==null||z.call.apply(z,[su].concat(_.Py(GO(Ysm.nonNullableCondIsNull()))))}return F};
return F2(function(){var F=y(),z;RF(function(){var c=yM(r5);try{z=eR(F?I.then(k):I.else&&I.else())}finally{yM(c)}},!0);
return z},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
GBI=function(I){return _.Dx(I)};
_.pH=function(I){return I.keyBy==="INDEX"?fiK(I):Sss(I)};
KUm=function(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next()){var y=void 0;(y=C.value)==null||y()}};
Sss=function(I){var C=I.keyBy===void 0||I.keyBy==="REFERENCE",y=C?function(D){return D}:I.keyBy,k=[],F=[],z=[],c=[],r=[],w=[],L=!0;
_.$4(function(){KUm(c)});
return F2(function(){var D=I.each(),p=D.length;if(p===0){if(k.length===0&&!L)return z;KUm(c);k=D;F=[];for(D=0;D<k.length;D++)F.push(y(k[D]));z=[];c=[];r=[];w=[];I.fallback&&(c[0]=A3W(function(){z[0]=eR(I.fallback())}));
L=!1;return z}for(var Q=new goO,X=k.length-1;X>=0;X--)Q.push(F[X],X);X=Array(p);for(var b=Array(p),S=Array(p),A=Array(p),x=Array(C?0:p),B={i$jscomp$485:0};B.i$jscomp$485<p;B={i$jscomp$485:B.i$jscomp$485,item$jscomp$103:void 0,key$jscomp$523:void 0},B.i$jscomp$485++){B.item$jscomp$103=D[B.i$jscomp$485];B.key$jscomp$523=y(B.item$jscomp$103);var t=Q.pop(B.key$jscomp$523);t!=null?(S[B.i$jscomp$485]=z[t],b[B.i$jscomp$485]=F[t],X[B.i$jscomp$485]=c[t],A[B.i$jscomp$485]=r[t],C||(x[B.i$jscomp$485]=w[t]),Df(function(U){return function(){A[U.i$jscomp$485](U.i$jscomp$485);
if(!C)x[U.i$jscomp$485](U.item$jscomp$103)}}(B)),delete c[t]):X[B.i$jscomp$485]=A3W(function(U){return function(){var yW=_.T(_.c4(U.i$jscomp$485,void 0,"g4fKif")),a=yW.next().value;
yW=yW.next().value;A[U.i$jscomp$485]=yW;b[U.i$jscomp$485]=U.key$jscomp$523;if(C)S[U.i$jscomp$485]=eR(I.children(U.item$jscomp$103,a));else{var cs=_.T(_.c4(U.item$jscomp$103,void 0,"Ile0Kc"));yW=cs.next().value;cs=cs.next().value;x[U.i$jscomp$485]=cs;S[U.i$jscomp$485]=eR(I.children(yW,a))}}}(B))}KUm(c);
k=D;F=b;z=S;c=X;r=A;w=x;L=!1;return S},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
fiK=function(I){var C=[],y=[],k=[],F=[],z=!1;_.$4(function(){for(var c=_.T(F),r=c.next();!r.done;r=c.next())r=r.value,r()});
return F2(function(){var c=I.each();z&&c.length>0&&(F.pop()(),C.pop(),z=!1);for(var r=Array(c.length),w={i$jscomp$486:0};w.i$jscomp$486<c.length;w={i$jscomp$486:w.i$jscomp$486},w.i$jscomp$486++)if(w.i$jscomp$486<C.length)C[w.i$jscomp$486]!==c[w.i$jscomp$486]&&(Df(function(D){return function(){return void y[D.i$jscomp$486](c[D.i$jscomp$486])}}(w)),C[w.i$jscomp$486]=c[w.i$jscomp$486]),r[w.i$jscomp$486]=k[w.i$jscomp$486];
else{var L=A3W(function(D){return function(){C[D.i$jscomp$486]=c[D.i$jscomp$486];var p=_.T(_.c4(c[D.i$jscomp$486],void 0,"QVJXFd")),Q=p.next().value;p=p.next().value;y[D.i$jscomp$486]=p;r[D.i$jscomp$486]=eR(I.children(Q,D.i$jscomp$486))}}(w));
F[w.i$jscomp$486]=L}for(;C.length>c.length;)C.pop(),F.pop()(),y.pop();c.length===0&&!z&&I.fallback&&(w=A3W(function(){r[0]=eR(I.fallback())}),F[0]=w,z=!0);
return k=r},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
A3W=function(I){var C=tk;return RF(function(y){var k=yM(r5);try{y.parent=C,I(y)}finally{yM(k)}},!1)};
_.Qr=function(I){return I};
_.N$=function(I){return{isDefault:!0,children:I.children}};
_.Vr=function(I){var C=voW(I),y=_.P4(function(){return WUs(C)},void 0,"BHmkEe");
return F2(function(){var k=y(),F;RF(function(){var z=yM(r5);try{F=eR(k())}finally{yM(z)}});
return F},{debugName:I.debugInstance,
isControlFlowComponent:!0})};
voW=function(I){I=I.children;return Array.isArray(I)?I:[I]};
dUH=function(I){var C=I.props;I=I.getChildren()[0];return C.when?{when:C.when,children:I}:{isDefault:!0,children:I}};
WUs=function(I){var C=function(){return null};
I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y!=null&&y[Ou]&&(y=y.type===_.N$?{isDefault:!0,children:y.children[0]}:{when:y.props.when,children:y.children[0]}),y instanceof zu&&(y=dUH(y)),y.isDefault)C=y.children;else if(y.when())return y.children;return C};
xUW=function(I){var C=null,y;return{value:null,onRender:function(k){if(y&&k!==y){var F;(F=C)==null||F();y._disposeRef=void 0}y=k;C=I(k)||null},
onUnmount:function(){var k;(k=C)==null||k();C=null}}};
mUF=function(I){var C=TTH();if(C==null)throw qsI.PRIMITIVE_INVALID_HOOK_CALL();var y=C.hookCounter++;C.hooks||(C.hooks=[]);var k=C.hooks;k[y]||(k[y]={key:I,host:C});if(I!==k[y].key){var F,z;I=((F=C.JSC$8140___type)==null?void 0:F.name)||((z=C.functionComponent)==null?void 0:z.name);throw qsI.OUT_OF_ORDER_HOOK_CALL(I);}return k[y]};
ZiK=function(I,C){return!I||I.length!==(C==null?void 0:C.length)||I.some(function(y,k){return y!==C[k]})};
jR=function(I,C){var y=mUF("onChange"),k=TTH();ZiK(y.deps,C)&&(y.deps=C,y.pendingEffect=I,k.__syncEffects||(k.__syncEffects=[]),k.__syncEffects.push(y))};
UUI=function(I,C){var y;C!=null?y=C:y=_.Lnz(document).getAppContext();y.get(BT9).JSC$25286_getEventTarget().dispatchEvent(new Eoz(hj9,I,oU))};
_.lh=function(I,C){var y=y===void 0?{enableDevtools:!1}:y;var k=jX(function(){var F=yM(r5);try{return RF(function(){var z=_.Lnz(_.V6(I)),c;var r=Gus({rootElement:{value:I},appContext:y.appContext||(z==null?void 0:(c=z.getOptionalAppContext)==null?void 0:c.call(z)),dispatcher:z});z=Jk(r);r=MT(!0);p$++;try{uh(C(),I),q8m(!1)}catch(w){throw q8m(!0),w;}finally{MT(r),Jk(z)}},!1)}finally{yM(F)}});
I[HiF]=!0;y.legacyTriggerSoyRendererEvents&&UUI(I,y.appContext);return function(){I.textContent="";k();I[HiF]=!1}};
_.X2=function(I){if(dS9(oF)){var C;(C=su.handleError)==null||C.call.apply(C,[su].concat(_.Py(GO(Error("$b")))))}var y=tk,k=QM;Promise.resolve().then(function(){y&&!y.isDisposed&&jX(function(){var F=Jk(y);try{I()}finally{Jk(F)}},{stack:k})})};
$S=function(I,C){jR(function(){return TO(I)},C)};
_.RU=function(I){VM()?_.X2(function(){TO(I)}):jR(function(){return TO(I)},[])};
J3X=function(I){var C=[].concat(_.Py(I));I.length=0;I=_.T(C);for(C=I.next();!C.done;C=I.next()){C=C.value;tNW(C);var y=C.pendingEffect;C.pendingEffect=null;if(y=y==null?void 0:y())C.pendingCleanup=y}};
tNW=function(I){var C=I.pendingCleanup;I.pendingCleanup=null;C==null||C()};
OiK=function(I,C){if(VM())return I();var y=mUF("useMemoInternal");ZiK(y.deps,C)&&(y.deps=C,y.value=I());return y.value};
bh=function(I,C){return OiK(I,C)};
YS=function(I){return OiK(I,[])};
aim=function(){var I=_.wa.apply(0,arguments),C=YS(function(){return I.map(function(y){return _.c4(y,void 0,"lnSD0c")})});
$S(function(){for(var y=0;y<I.length;y++)(0,C[y][1])(I[y])},I);
return C.map(function(y){return _.T(y).next().value})};
Gu=function(I){return YS(function(){return{value:I}})};
_.fH=function(I,C){if(!I)return null;I=Object.keys(I);I=_.T(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var k=y.toLowerCase();if(k.indexOf(C,k.length-C.length)>-1)return y}return null};
_.KH=function(){var I=arguments,C=_.SR;I.length>1?C[I[0]]=I[1]:I.length===1&&Object.assign(C,I[0])};
_.Aq=function(I,C){return I in _.SR?_.SR[I]:C};
_.g5=function(I,C){return!!_.Aq(I,C)};
MNz=function(I){var C=_.SR.EXPERIMENT_FLAGS;return C?C[I]:void 0};
Cft=function(I){I7z.forEach(function(C){return C(I)})};
_.W5=function(I){return I&&window.yterr?function(){try{return I.apply(this,arguments)}catch(C){_.v5(C)}}:I};
_.v5=function(I){var C=_.d5("yt.logging.errors.log");C?C(I,"ERROR",void 0,void 0,void 0,void 0,void 0):(C=_.Aq("ERRORS",[]),C.push([I,"ERROR",void 0,void 0,void 0,void 0,void 0]),_.KH("ERRORS",C));Cft(I)};
_.xS=function(I,C,y,k,F){var z=_.d5("yt.logging.errors.log");z?z(I,"WARNING",C,y,k,void 0,F):(z=_.Aq("ERRORS",[]),z.push([I,"WARNING",C,y,k,void 0,F]),_.KH("ERRORS",z))};
ods=function(I,C){C=I.split(C);for(var y={},k=0,F=C.length;k<F;k++){var z=C[k].split("=");if(z.length===1&&z[0]||z.length===2)try{var c=sRI(z[0]||""),r=sRI(z[1]||"");if(c in y){var w=y[c];Array.isArray(w)?_.C5(w,r):y[c]=[w,r]}else y[c]=r}catch(Q){var L=Q,D=z[0],p=String(ods);L.args=[{key:D,value:z[1],query:I,method:ynH===p?"unchanged":p}];k2F.hasOwnProperty(D)||_.xS(L)}}return y};
FoK=function(I){var C=[];_.Le.forEach(I,function(y,k){var F=_.q$(k);_.mn(Array.isArray(y)?y:[y],function(z){z==""?C.push(F):C.push(F+"="+_.q$(z))})});
return C.join("&")};
_.Zx=function(I){I.charAt(0)==="?"&&(I=I.substring(1));return ods(I,"&")};
_.B5=function(I){return I.indexOf("?")!==-1?(I=(I||"").split("#")[0],I=I.split("?",2),_.Zx(I.length>1?I[1]:I[0])):{}};
_.E3=function(I,C){return u1H(I,C||{},!0)};
z0z=function(I,C){return u1H(I,C||{},!1)};
u1H=function(I,C,y){var k=I.split("#",2);I=k[0];k=k.length>1?"#"+k[1]:"";var F=I.split("?",2);I=F[0];F=_.Zx(F[1]||"");for(var z in C)if(y||!_.Le.containsKey(F,z))F[z]=C[z];return _.hq(I,F)+k};
Jq=function(I){if(!C)var C=window.location.href;var y=_.U3(I)[1]||null,k=_.H5(I);return y&&k?tq(I,C):k?_.H5(C)===k&&(Number(_.U3(C)[4]||null)||null)===(Number(_.U3(I)[4]||null)||null):!0};
_.cnz=function(I){I=TXm(I);return I===null?!1:I[0]==="com"&&I[1].match(/^youtube(?:kids|-nocookie)?$/)?!0:!1};
TXm=function(I){I=_.H5(I);return I!==null?I.split(".").reverse():null};
sRI=function(I){return I&&I.match(e0m)?I:O3(I)};
_.aU=function(I){return new rnF(I)};
_.N=function(){i7m||(i7m=new w1Y);return i7m};
Pfz=function(I){var C=_.ID,y,k;_.e(function(F){y=_.N();return(k=y.resolve(_.aU(C)))?(I(k),F.return(Promise.resolve(k))):F.return(y.resolve(new ndm(C)).then(function(z){I(z);return z}))})};
_.V=function(I){I=Ch(I);return typeof I==="string"&&I==="false"?!1:!!I};
_.s8=function(I,C){I=Ch(I);return I===void 0&&C!==void 0?C:Number(I||0)};
LoY=function(I){I=Ch(I);return Array.isArray(I)?_.pe(I,function(C){return Number(C||0)}):[Number(I||0)]};
_.oD=function(I){I=Ch(I);return I!==void 0?String(I):""};
_.yS=function(I){I=Ch(I);return Array.isArray(I)?_.pe(I,function(C){return String(C||"")}):[String(I||"")]};
DsW=function(){return _.Aq("EXPERIMENTS_TOKEN","")};
Ch=function(I){return _.Aq("EXPERIMENT_FLAGS",{})[I]};
p1z=function(){for(var I=[],C=_.Aq("EXPERIMENTS_FORCED_FLAGS",{}),y=_.T(Object.keys(C)),k=y.next();!k.done;k=y.next())k=k.value,I.push({key:k,value:String(C[k])});y=_.Aq("EXPERIMENT_FLAGS",{});k=_.T(Object.keys(y));for(var F=k.next();!F.done;F=k.next())F=F.value,F.startsWith("force_")&&C[F]===void 0&&I.push({key:F,value:String(y[F])});return I};
NXO=function(){if(!QRm)return null;var I=QRm();return"open"in I?I:null};
Vsm=function(I){switch(kt(I)){case 200:case 201:case 202:case 203:case 204:case 205:case 206:case 304:return!0;default:return!1}};
kt=function(I){return I&&"status"in I?I.status:-1};
_.FT=function(I,C){typeof I==="function"&&(I=_.W5(I));return window.setTimeout(I,C)};
_.uX=function(I,C){typeof I==="function"&&(I=_.W5(I));return window.setInterval(I,C)};
_.zl=function(I){window.clearTimeout(I)};
l7H=function(I){I=_.B5(I);for(var C=_.T(jRs),y=C.next();!y.done;y=C.next())if(I[y.value]!==void 0)return!0;return!1};
R0z=function(I,C,y,k,F,z,c,r){y=y===void 0?"GET":y;k=k===void 0?"":k;r=r===void 0?!1:r;var w=NXO();if(!w)return null;var L=function(){(w&&"readyState"in w?w.readyState:0)===4&&C&&_.W5(C)(w)};
"onloadend"in w?w.addEventListener("loadend",L,!1):w.onreadystatechange=L;_.V("debug_forward_web_query_parameters")&&(I=X1z(I,window.location.search));w.open(y,I,!0);z&&(w.responseType=z);c&&(w.withCredentials=!0);y=y==="POST"&&(window.FormData===void 0||!(k instanceof FormData));if(F=$sm(I,F))for(var D in F)w.setRequestHeader(D,F[D]),"content-type"===D.toLowerCase()&&(y=!1);y&&w.setRequestHeader("Content-Type","application/x-www-form-urlencoded");if(r&&"setAttributionReporting"in XMLHttpRequest.prototype){I=
{eventSourceEligible:!0,triggerEligible:!1};try{w.setAttributionReporting(I)}catch(p){_.xS(p)}}w.send(k);return w};
$sm=function(I,C){C=C===void 0?{}:C;var y=Jq(I),k=_.Aq("INNERTUBE_CLIENT_NAME"),F=_.V("web_ajax_ignore_global_headers_if_set"),z;for(z in b7z){var c=_.Aq(b7z[z]),r=z==="X-Goog-AuthUser"||z==="X-Goog-PageId";z!=="X-Goog-Visitor-Id"||c||(c=_.Aq("VISITOR_DATA"));var w;if(!(w=!c)){if(!(w=y||(_.H5(I)?!1:!0))){w=I;var L;if(L=_.V("add_auth_headers_to_remarketing_google_dot_com_ping")&&z==="Authorization"&&(k==="TVHTML5"||k==="TVHTML5_UNPLUGGED"||k==="TVHTML5_SIMPLY"))L=TXm(w),L=L===null?!1:L[1]==="google"?
!0:L[2]==="google"?L[0]==="au"&&L[1]==="com"?!0:L[0]==="uk"&&L[1]==="co"?!0:!1:!1;L&&(w=_.Tl(w)||"",w=w.split("/"),w="/"+(w.length>1?w[1]:""),L=w==="/pagead");w=L?!0:!1}w=!w}w||F&&C[z]!==void 0||k==="TVHTML5_UNPLUGGED"&&r||(C[z]=c)}"X-Goog-EOM-Visitor-Id"in C&&"X-Goog-Visitor-Id"in C&&delete C["X-Goog-Visitor-Id"];if(y||!_.H5(I))C["X-YouTube-Utc-Offset"]=String(-(new Date).getTimezoneOffset());if(y||!_.H5(I)){try{var D=(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(p){}D&&(C["X-YouTube-Time-Zone"]=
D)}document.location.hostname.endsWith("youtubeeducation.com")||!y&&_.H5(I)||(C["X-YouTube-Ad-Signals"]=FoK(Yom()));return C};
_.G2t=function(I,C){var y=_.H5(I);_.V("debug_handle_relative_url_for_query_forward_killswitch")||!y&&Jq(I)&&(y=document.location.hostname);var k=_.Tl(I);k=(y=y&&(y.endsWith("youtube.com")||y.endsWith("youtube-nocookie.com")))&&k&&k.startsWith("/api/");if(!y||k)return I;var F=_.Zx(C),z={};_.mn(jRs,function(c){F[c]&&(z[c]=F[c])});
return z0z(I,z)};
f7K=function(I,C){C.method="POST";C.postParams||(C.postParams={});return _.cN(I,C)};
SoY=function(I,C){var y=_.Aq("XSRF_FIELD_NAME"),k;C.headers&&(k=C.headers["Content-Type"]);return!C.excludeXsrf&&(!_.H5(I)||C.withCredentials||_.H5(I)===document.location.hostname)&&C.method==="POST"&&(!k||k==="application/x-www-form-urlencoded")&&!(C.postParams&&C.postParams[y])};
_.cN=function(I,C){var y=C.format||"JSON";I=KoI(I,C);var k=AnW(I,C),F=!1,z=gd9(I,function(w){if(!F){F=!0;r&&_.zl(r);var L=Vsm(w),D=null,p=400<=w.status&&w.status<500,Q=500<=w.status&&w.status<600;if(L||p||Q)D=vdI(I,y,w,C.convertToSafeHtml);L&&(L=WoO(y,w,D));D=D||{};p=C.context||_.sF;L?C.onSuccess&&C.onSuccess.call(p,w,D):C.onError&&C.onError.call(p,w,D);C.onFinish&&C.onFinish.call(p,w,D)}},C.method,k,C.headers,C.responseType,C.withCredentials);
k=C.timeout||0;if(C.onTimeout&&k>0){var c=C.onTimeout;var r=_.FT(function(){F||(F=!0,z.abort(),_.zl(r),c.call(C.context||_.sF,z))},k)}return z};
KoI=function(I,C){C.includeDomain&&(I=document.location.protocol+"//"+document.location.hostname+(document.location.port?":"+document.location.port:"")+I);var y=_.Aq("XSRF_FIELD_NAME");if(C=C.urlParams)C[y]&&delete C[y],I=_.E3(I,C);return I};
AnW=function(I,C){var y=_.Aq("XSRF_FIELD_NAME"),k=_.Aq("XSRF_TOKEN"),F=C.postBody||"",z=C.postParams;SoY(I,C)&&(z||(z={}),z[y]=k);(_.V("ajax_parse_query_data_only_when_filled")&&z&&Object.keys(z).length>0||z)&&typeof F==="string"&&(F=_.Zx(F),_.Le.extend(F,z),F=C.postBodyFormat&&C.postBodyFormat==="JSON"?JSON.stringify(F):_.e7(F));z=F||z&&!_.Le.isEmpty(z);!dsW&&z&&C.method!=="POST"&&(dsW=!0,_.v5(Error("Fc")));return F};
vdI=function(I,C,y,k){var F=null;switch(C){case "JSON":try{var z=y.responseText}catch(c){throw k=Error("Gc"),k.params=I,_.xS(k),c;}I=y.getResponseHeader("Content-Type")||"";z&&I.indexOf("json")>=0&&(z.substring(0,5)===")]}'\n"&&(z=z.substring(5)),F=JSON.parse(z));break;case "XML":if(I=(I=y.responseXML)?xsO(I):null)F={},_.mn(I.getElementsByTagName("*"),function(c){F[c.tagName]=qoz(c)})}k&&mss(F);
return F};
mss=function(I){if(_.sw(I))for(var C in I)C==="html_content"||zI(C,"_html")?I[C]=NM(I[C]):mss(I[C])};
WoO=function(I,C,y){if(C&&C.status===204)return!0;switch(I){case "JSON":return!!y;case "XML":return Number(y&&y.return_code)===0;case "RAW":return!0;default:return!!y}};
xsO=function(I){return I?(I=("responseXML"in I?I.responseXML:I).getElementsByTagName("root"))&&I.length>0?I[0]:null:null};
qoz=function(I){var C="";_.mn(I.childNodes,function(y){C+=y.nodeValue});
return C};
Z7I=function(I){if(I.name==="JavaException")return!0;I=I.stack;return I.includes("chrome://")||I.includes("chrome-extension://")||I.includes("moz-extension://")};
_.rC=function(I){_.LL.call(this);this.JSC$8321_key_=1;this.pendingKeys_=[];this.publishDepth_=0;this.subscriptions_=[];this.topics_={};this.async_=!!I};
EdX=function(I,C){var y=I.length,k=0,F=function(){return I.charCodeAt(k++)};
do{var z=BX9(F);if(z===Infinity)break;var c=z>>3;switch(z&7){case 0:z=BX9(F);if(c===C)return z;break;case 1:if(c===C)return;k+=8;break;case 2:z=BX9(F);if(c===C)return I.substr(k,z);k+=z;break;case 5:if(c===C)return;k+=4;break;default:return}}while(k<y)};
BX9=function(I){var C=I(),y=C&127;if(C<128)return y;C=I();y|=(C&127)<<7;if(C<128)return y;C=I();y|=(C&127)<<14;if(C<128)return y;C=I();return C<128?y|(C&127)<<21:Infinity};
UsY=function(I,C,y,k){if(I)if(Array.isArray(I)){var F=k;for(k=0;k<I.length&&!(I[k]&&(F+=h0s(k,I[k],C,y),F>500));k++);k=F}else if(typeof I==="object")for(F in I){if(I[F]){var z=F;var c=I[F],r=C,w=y;z=typeof c!=="string"||z!=="clickTrackingParams"&&z!=="trackingParams"?0:(c=EdX(atob(c.replace(/-/g,"+").replace(/_/g,"/")),2))?h0s(z+".ve",c,r,w):0;k+=z;k+=h0s(F,I[F],C,y);if(k>500)break}}else y[C]=iX(I),k+=y[C].length;else y[C]=iX(I),k+=y[C].length;return k};
h0s=function(I,C,y,k){y+="."+I;I=iX(C);k[y]=I;return y.length+I.length};
iX=function(I){try{return(typeof I==="string"?I:String(JSON.stringify(I))).substr(0,500)}catch(C){return"unable to serialize "+typeof I+" ("+C.message+")"}};
H7W=function(I){switch(I){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}};
_.nh=function(I,C,y,k,F){_.wC.set(I,C,{maxAge:y,path:"/",domain:k===void 0?"youtube.com":k,secure:F===void 0?!1:F})};
_.tsm=function(I,C,y){_.wC.remove(I,C===void 0?"/":C,y===void 0?"youtube.com":y)};
_.PN=function(){if(_.V("embeds_web_enable_cookie_detection_fix")){if(!_.sF.navigator.cookieEnabled)return!1}else if(!_.wC.isEnabled())return!1;if(!_.wC.isEmpty())return!0;_.V("embeds_web_enable_cookie_detection_fix")?_.wC.set("TESTCOOKIESENABLED","1",{maxAge:60,sameSite:"none",secure:!0}):_.wC.set("TESTCOOKIESENABLED","1",{maxAge:60});if(_.wC.get("TESTCOOKIESENABLED")!=="1")return!1;_.wC.remove("TESTCOOKIESENABLED");return!0};
JnY=function(){var I=_.sF.navigator;return I?I.connection:void 0};
O7t=function(){if(typeof Intl!=="undefined")try{return(new Intl.DateTimeFormat).resolvedOptions().timeZone}catch(I){}};
_.Msm=function(){var I=JnY();if(I){var C=a79[I.type||"unknown"]||"CONN_UNKNOWN";I=a79[I.effectiveType||"unknown"]||"CONN_UNKNOWN";C==="CONN_CELLULAR_UNKNOWN"&&I!=="CONN_UNKNOWN"&&(C=I);if(C!=="CONN_UNKNOWN")return C;if(I!=="CONN_UNKNOWN")return I}};
CGI=function(){var I=JnY();if(I!=null&&I.effectiveType)return ICO.hasOwnProperty(I.effectiveType)?ICO[I.effectiveType]:"EFFECTIVE_CONNECTION_TYPE_UNKNOWN"};
_.DJ=function(){try{return _.Lh(),!0}catch(I){return!1}};
_.Lh=function(I){if(_.Aq("DATASYNC_ID")!==void 0)return _.Aq("DATASYNC_ID");throw new _.ph("Datasync ID not set",I===void 0?"unknown":I);};
_.QS=function(I){this.mechanism=I};
NS=function(I){this.mechanism=I};
VS=function(I){this.storage_=I;this.cachedIsStorageAvailable_=null};
sCO=function(){var I=null;try{I=_.sF.localStorage||null}catch(C){}VS.call(this,I)};
oBH=function(){var I=null;try{I=_.sF.sessionStorage||null}catch(C){}VS.call(this,I)};
j7=function(I,C){this.mechanism_=I;this.JSC$8423_prefix_=C+"::"};
_.y$W=function(I){var C=new sCO;return C.isAvailable()?I?new j7(C,I):C:null};
_.k5s=function(I){var C=new oBH;return C.isAvailable()?I?new j7(C,I):C:null};
uds=function(){var I;return(I=Frm())==null?void 0:I.get("LAST_RESULT_ENTRY_KEY",!0)};
_.$t=function(I){zyt||(_.lX?_.lX.logError(I):(_.XT.push({type:"ERROR",payload:I}),_.XT.length>10&&_.XT.shift()))};
RD=function(I,C){zyt||(_.lX?_.lX.logEvent(I,C):(_.XT.push({type:"EVENT",eventType:I,payload:C}),_.XT.length>10&&_.XT.shift()))};
bX=function(I){if(I.indexOf(":")>=0)throw Error("Nc");};
Yt=function(I){return I.substr(0,I.indexOf(":"))||I};
eyW=function(){return(T8O||c$9)&&Gl("applewebkit")&&!Gl("version")&&(!Gl("safari")||Gl("gsa/"))};
Gl=function(I){var C=_.wH();return C?C.toLowerCase().indexOf(I)>=0:!1};
w$I=function(I,C,y,k){C=Yt(C);var F=I instanceof Error?I:Error("Oc`"+I);if(F instanceof fh)return F;I={objectStoreNames:y,dbName:C,dbVersion:k};if(F.name==="QuotaExceededError")return new fh("QUOTA_EXCEEDED",I);if(_.S7&&F.name==="UnknownError")return new fh("QUOTA_MAYBE_EXCEEDED",I);if(F instanceof r$K)return new fh("MISSING_INDEX",Object.assign({},I,{objectStore:F.objectStore,index:F.index}));if(F.name==="InvalidStateError"&&iq9.some(function(z){return F.message.includes(z)}))return new fh("EXECUTE_TRANSACTION_ON_CLOSED_DB",
I);
if(F.name==="AbortError")return new fh("UNKNOWN_ABORT",I,F.message);F.args=[Object.assign({},I,{name:"IdbError",originalName:F.name})];F.level="WARNING";return F};
Kh=function(I,C,y){var k=uds();return new fh("IDB_NOT_SUPPORTED",{context:{caller:I,publicName:C,version:y,hasSucceededOnce:k==null?void 0:k.hasSucceededOnce}})};
nBm=function(I){if(!I)throw Error();throw I;};
PGK=function(I){return I};
Lrt=function(I,C,y){var k=function(){try{I.removeEventListener("success",F),I.removeEventListener("error",z)}catch(c){}},F=function(){C(I.result);
k()},z=function(){y(I.error);
k()};
I.addEventListener("success",F);I.addEventListener("error",z)};
DJF=function(I){return new Promise(function(C,y){Lrt(I,C,y)})};
vN=function(I){return new AY(new gC(function(C,y){Lrt(I,C,y)}))};
p$I=function(I,C){return new AY(new gC(function(y,k){var F=function(){var z=I?C(I):null;z?z.then(function(c){I=c;F()},k):y()};
F()}))};
N8s=function(I,C,y){return new Promise(function(k,F){var z=C!==void 0?self.indexedDB.open(I,C):self.indexedDB.open(I);var c=y.blocked,r=y.blocking,w=y.terminated,L=y.upgrade,D=y.closed,p,Q=function(){p||(p=new WN(z.result,{closed:D}));return p};
z.addEventListener("upgradeneeded",function(X){try{if(X.newVersion===null)throw Error("Tc");if(z.transaction===null)throw Error("Uc");X.dataLoss&&X.dataLoss!=="none"&&RD("IDB_DATA_CORRUPTED",{reason:X.dataLossMessage||"unknown reason",dbName:Yt(I)});var b=Q(),S=new QCz(z.transaction);L&&L(b,function(A){return X.oldVersion<A&&X.newVersion>=A},S);
S.done.catch(function(A){F(A)})}catch(A){F(A)}});
z.addEventListener("success",function(){var X=z.result;r&&X.addEventListener("versionchange",function(){r(Q())});
X.addEventListener("close",function(){RD("IDB_UNEXPECTEDLY_CLOSED",{dbName:Yt(I),dbVersion:X.version});w&&w()});
k(Q())});
z.addEventListener("error",function(){F(z.error)});
c&&z.addEventListener("blocked",function(){c()})})};
ViI=function(I,C,y){y=y===void 0?{}:y;return N8s(I,C,y)};
_.xt=function(I,C){C=C===void 0?{}:C;var y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return _.aM(c,2),y=self.indexedDB.deleteDatabase(I),k=C,(F=k.blocked)&&y.addEventListener("blocked",function(){F()}),_.n(c,DJF(y),4);
if(c.nextAddress!=2)return _.dC(c,0);z=_.sj(c);throw w$I(z,I,"",-1);})};
lCI=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.qS(jCO,C),2);y=k.yieldResult;return k.return(_.mZ(y,["databases"],{enableRetries:!0,mode:"readwrite"},function(F){var z=F.objectStore("databases");return z.get(I.actualName).then(function(c){if(c?I.actualName!==c.actualName||I.publicName!==c.publicName||I.userIdentifier!==c.userIdentifier:1)return z.put(I).then(function(){})})}))})};
_.ZJ=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return I?_.n(k,_.qS(jCO,C),2):k.return();y=k.yieldResult;return k.return(y.delete("databases",I))})};
_.X$z=function(I,C){var y,k;return _.e(function(F){return F.nextAddress==1?(y=[],_.n(F,_.qS(jCO,C),2)):F.nextAddress!=3?(k=F.yieldResult,_.n(F,_.mZ(k,["databases"],{enableRetries:!0,mode:"readonly"},function(z){y.length=0;return BN(z.objectStore("databases"),{},function(c){I(c.getValue())&&y.push(c.getValue());return c.continue()})}),3)):F.return(y)})};
$JX=function(I,C){return _.X$z(function(y){return y.publicName===I&&y.userIdentifier!==void 0},C)};
Yhz=function(){var I,C,y,k;return _.e(function(F){switch(F.nextAddress){case 1:I=uds();if((C=I)==null?0:C.hasSucceededOnce)return F.return(!0);var z;if(z=RyX)z=/WebKit\/([0-9]+)/.exec(_.wH()),z=!!(z&&parseInt(z[1],10)>=600);z&&(z=/WebKit\/([0-9]+)/.exec(_.wH()),z=!(z&&parseInt(z[1],10)>=602));if(z||E8)return F.return(!1);try{if(y=self,!(y.indexedDB&&y.IDBIndex&&y.IDBKeyRange&&y.IDBObjectStore))return F.return(!1)}catch(c){return F.return(!1)}if(!("IDBTransaction"in self&&"objectStoreNames"in IDBTransaction.prototype))return F.return(!1);
_.aM(F,2);k={actualName:"yt-idb-test-do-not-use",publicName:"yt-idb-test-do-not-use",userIdentifier:void 0};return _.n(F,lCI(k,bqI),4);case 4:return _.n(F,_.ZJ("yt-idb-test-do-not-use",bqI),5);case 5:return F.return(!0);case 2:return _.sj(F),F.return(!1)}})};
fCF=function(){if(G5O!==void 0)return G5O;zyt=!0;return G5O=Yhz().then(function(I){zyt=!1;var C;if((C=Frm())!=null&&C.expiringStorage_){var y;C={hasSucceededOnce:((y=uds())==null?void 0:y.hasSucceededOnce)||I};var k;(k=Frm())==null||k.set("LAST_RESULT_ENTRY_KEY",C,2592E3,!0)}return I})};
hY=function(){return _.d5("ytglobal.idbToken_")||void 0};
_.HN=function(){var I=hY();return I?Promise.resolve(I):fCF().then(function(C){(C=C?bqI:void 0)&&_.U8("ytglobal.idbToken_",C);return C})};
ShI=function(I){if(!_.DJ())throw I=new fh("AUTH_INVALID",{dbName:I}),_.$t(I),I;var C=_.Lh();return{actualName:I+":"+C,publicName:I,userIdentifier:C}};
KrI=function(I,C,y,k){var F,z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:return z=(F=Error().stack)!=null?F:"",_.n(D,_.HN(),2);case 2:c=D.yieldResult;if(!c)throw r=Kh("openDbImpl",I,C),_.V("ytidb_async_stack_killswitch")||(r.stack=r.stack+"\n"+z.substring(z.indexOf("\n")+1)),_.$t(r),r;bX(I);w=y?{actualName:I,publicName:I,userIdentifier:void 0}:ShI(I);_.aM(D,3);return _.n(D,lCI(w,c),5);case 5:return _.n(D,ViI(w.actualName,C,k),6);case 6:return D.return(D.yieldResult);case 3:return L=
_.sj(D),_.aM(D,7),_.n(D,_.ZJ(w.actualName,c),9);case 9:_.dC(D,8);break;case 7:_.sj(D);case 8:throw L;}})};
A$z=function(I,C,y){y=y===void 0?{}:y;return KrI(I,C,!1,y)};
gBH=function(I,C,y){y=y===void 0?{}:y;return KrI(I,C,!0,y)};
vBz=function(I,C){C=C===void 0?{}:C;var y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,_.HN(),2);if(F.nextAddress!=3){y=F.yieldResult;if(!y)return F.return();bX(I);k=ShI(I);return _.n(F,_.xt(k.actualName,C),3)}return _.n(F,_.ZJ(k.actualName,y),0)})};
WrO=function(I,C,y){I=I.map(function(k){return _.e(function(F){return F.nextAddress==1?_.n(F,_.xt(k.actualName,C),2):_.n(F,_.ZJ(k.actualName,y),0)})});
return Promise.all(I).then(function(){})};
dJI=function(I){var C=C===void 0?{}:C;var y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,_.HN(),2);if(F.nextAddress!=3){y=F.yieldResult;if(!y)return F.return();bX(I);return _.n(F,$JX(I,y),3)}k=F.yieldResult;return _.n(F,WrO(k,C,y),0)})};
xJI=function(I,C){C=C===void 0?{}:C;var y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.HN(),2);if(k.nextAddress!=3){y=k.yieldResult;if(!y)return k.return();bX(I);return _.n(k,_.xt(I,C),3)}return _.n(k,_.ZJ(I,y),0)})};
tY=function(I,C){return qhY(I,C)};
ZqY=function(I){return _.qS(mJI(),I)};
B8z=function(I,C,y,k){var F,z,c;return _.e(function(r){switch(r.nextAddress){case 1:return F={config:I,hashData:C,timestamp:k!==void 0?k:(0,_.JY)()},_.n(r,ZqY(y),2);case 2:return z=r.yieldResult,_.n(r,z.clear("hotConfigStore"),3);case 3:return _.n(r,z.put("hotConfigStore",F),4);case 4:return c=r.yieldResult,r.return(c)}})};
EBm=function(I,C,y,k,F){var z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:return z={config:I,hashData:C,configData:y,timestamp:F!==void 0?F:(0,_.JY)()},_.n(w,ZqY(k),2);case 2:return c=w.yieldResult,_.n(w,c.clear("coldConfigStore"),3);case 3:return _.n(w,c.put("coldConfigStore",z),4);case 4:return r=w.yieldResult,w.return(r)}})};
hyX=function(I){var C,y;return _.e(function(k){return k.nextAddress==1?_.n(k,ZqY(I),2):k.nextAddress!=3?(C=k.yieldResult,y=void 0,_.n(k,_.mZ(C,["coldConfigStore"],{mode:"readwrite",enableRetries:!0},function(F){return _.O8(F.objectStore("coldConfigStore").index("coldTimestampIndex"),{direction:"prev"},function(z){y=z.getValue()})}),3)):k.return(y)})};
UJz=function(I){var C,y;return _.e(function(k){return k.nextAddress==1?_.n(k,ZqY(I),2):k.nextAddress!=3?(C=k.yieldResult,y=void 0,_.n(k,_.mZ(C,["hotConfigStore"],{mode:"readwrite",enableRetries:!0},function(F){return _.O8(F.objectStore("hotConfigStore").index("hotTimestampIndex"),{direction:"prev"},function(z){y=z.getValue()})}),3)):k.return(y)})};
HqO=function(){return _.e(function(I){return _.n(I,dJI("ytGcfConfig"),0)})};
tiY=function(){return"INNERTUBE_API_KEY"in _.SR&&"INNERTUBE_API_VERSION"in _.SR};
_.aD=function(){return{innertubeApiKey:_.Aq("INNERTUBE_API_KEY"),innertubeApiVersion:_.Aq("INNERTUBE_API_VERSION"),innertubeContextClientConfigInfo:_.Aq("INNERTUBE_CONTEXT_CLIENT_CONFIG_INFO"),innertubeContextClientName:_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME","WEB"),innertubeContextClientNameFieldNumber:_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME",1),innertubeContextClientVersion:_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION"),innertubeContextHostLanguage:_.Aq("INNERTUBE_CONTEXT_HL"),innertubeContextGeoLocation:_.Aq("INNERTUBE_CONTEXT_GL"),
innertubeHostOverride:_.Aq("INNERTUBE_HOST_OVERRIDE")||"",innertubeUseThirdPartyAuth:_.g5("INNERTUBE_USE_THIRD_PARTY_AUTH",!1),innertubeOmitApiKeyWhenAuthHeaderIsPresent:_.g5("INNERTUBE_OMIT_API_KEY_WHEN_AUTH_HEADER_IS_PRESENT",!1),appInstallData:_.Aq("SERIALIZED_CLIENT_CONFIG_DATA")}};
_.stK=function(I){var C={client:{hl:I.innertubeContextHostLanguage,gl:I.innertubeContextGeoLocation,clientName:I.innertubeContextClientName,clientVersion:I.innertubeContextClientVersion,configInfo:I.innertubeContextClientConfigInfo}};navigator.userAgent&&(C.client.userAgent=String(navigator.userAgent));var y=_.sF.devicePixelRatio;y&&y!=1&&(C.client.screenDensityFloat=String(y));y=DsW();y!==""&&(C.client.experimentsToken=y);y=p1z();y.length>0&&(C.request={internalExperimentFlags:y});J$I(I,void 0,C);
OqK(void 0,C);aCW(void 0,C);Miz(I,void 0,C);I0I(void 0,C);_.V("start_client_gcf")&&CWX(void 0,C);_.Aq("DELEGATED_SESSION_ID")&&!_.V("pageid_as_header_web")&&(C.user={onBehalfOfUser:_.Aq("DELEGATED_SESSION_ID")});!_.V("fill_delegate_context_in_gel_killswitch")&&(I=_.Aq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(C.user=Object.assign({},C.user,{serializedDelegationContext:I}));I=_.Aq("INNERTUBE_CONTEXT");var k;if(_.V("enable_persistent_device_token")&&(I==null?0:(k=I.client)==null?0:k.rolloutToken)){var F;
C.client.rolloutToken=I==null?void 0:(F=I.client)==null?void 0:F.rolloutToken}k=Object;F=k.assign;I=C.client;y={};for(var z=_.T(Object.entries(_.Zx(_.Aq("DEVICE","")))),c=z.next();!c.done;c=z.next()){var r=_.T(c.value);c=r.next().value;r=r.next().value;c==="cbrand"?y.deviceMake=r:c==="cmodel"?y.deviceModel=r:c==="cbr"?y.browserName=r:c==="cbrver"?y.browserVersion=r:c==="cos"?y.osName=r:c==="cosver"?y.osVersion=r:c==="cplatform"&&(y.platform=r)}C.client=F.call(k,I,y);return C};
J$I=function(I,C,y){I=I.innertubeContextClientName;if(I==="WEB"||I==="MWEB"||I===1||I===2)if(C){y=_.MS(C,o3I,96)||new o3I;var k=y7X();k=Object.keys(kgI).indexOf(k);k=k===-1?null:k;k!==null&&_.Ie(y,3,k);_.JT(C,96,y)}else y&&(y.client.mainAppWebInfo=(k=y.client.mainAppWebInfo)!=null?k:{},y.client.mainAppWebInfo.webDisplayMode=y7X())};
OqK=function(I,C){var y=_.d5("yt.embedded_player.embed_url");y&&(I?(C=_.MS(I,FMF,7)||new FMF,_.zT(C,4,y),_.JT(I,7,C)):C&&(C.thirdParty={embedUrl:y}))};
aCW=function(I,C){var y;if(_.V("web_log_memory_total_kbytes")&&((y=_.sF.navigator)==null?0:y.deviceMemory)){var k;y=(k=_.sF.navigator)==null?void 0:k.deviceMemory;I?_.Cw(I,95,jB(y*1E6)):C&&(C.client.memoryTotalKbytes=""+y*1E6)}};
Miz=function(I,C,y){if(I.appInstallData)if(C){var k;y=(k=_.MS(C,sL,62))!=null?k:new sL;_.zT(y,6,I.appInstallData);_.JT(C,62,y)}else y&&(y.client.configInfo=y.client.configInfo||{},y.client.configInfo.appInstallData=I.appInstallData)};
I0I=function(I,C){var y=_.Msm();y&&(I?_.Ie(I,61,uem[y]):C&&(C.client.connectionType=y));_.V("web_log_effective_connection_type")&&(y=CGI())&&(I?_.Ie(I,94,zQY[y]):C&&(C.client.effectiveConnectionType=y))};
_.eQW=function(I,C,y){y=y===void 0?{}:y;var k={};_.Aq("EOM_VISITOR_DATA")?k={"X-Goog-EOM-Visitor-Id":_.Aq("EOM_VISITOR_DATA")}:k={"X-Goog-Visitor-Id":y.visitorData||_.Aq("VISITOR_DATA","")};if(C&&C.includes("www.youtube-nocookie.com"))return k;C=y.authorization||_.Aq("AUTHORIZATION");C||(I?C="Bearer "+_.d5("gapi.auth.getToken")().access_token:(T9F.instance||(T9F.instance=new T9F),I=c7H(),_.V("pageid_as_header_web")||delete I["X-Goog-PageId"],k=Object.assign({},k,I)));C&&(k.Authorization=C);return k};
CWX=function(I,C){var y=r7O();if(y){var k=y.coldConfigData,F=y.coldHashData;y=y.hotHashData;if(I){var z;C=(z=_.MS(I,sL,62))!=null?z:new sL;k=_.zT(C,1,k);_.zT(k,3,F).setHotHashData(y);_.JT(I,62,C)}else C&&(C.client.configInfo=C.client.configInfo||{},k&&(C.client.configInfo.coldConfigData=k),F&&(C.client.configInfo.coldHashData=F),y&&(C.client.configInfo.hotHashData=y))}};
oe=function(I){for(var C=I.length;--C>=0;)I[C]=0};
iAF=function(I,C,y,k,F){this.static_tree=I;this.extra_bits=C;this.extra_base=y;this.elems=k;this.max_length=F;this.has_stree=I&&I.length};
wQH=function(I,C){this.dyn_tree=I;this.max_code=0;this.stat_desc=C};
yq=function(I,C){I.pending_buf[I.pending++]=C&255;I.pending_buf[I.pending++]=C>>>8&255};
u$=function(I,C,y){I.bi_valid>16-y?(I.bi_buf|=C<<I.bi_valid&65535,yq(I,I.bi_buf),I.bi_buf=C>>16-I.bi_valid,I.bi_valid+=y-16):(I.bi_buf|=C<<I.bi_valid&65535,I.bi_valid+=y)};
zD=function(I,C,y){u$(I,y[C*2],y[C*2+1])};
n3z=function(I,C){var y=0;do y|=I&1,I>>>=1,y<<=1;while(--C>0);return y>>>1};
PWt=function(I,C,y){var k=Array(16),F=0,z;for(z=1;z<=15;z++)k[z]=F=F+y[z-1]<<1;for(y=0;y<=C;y++)F=I[y*2+1],F!==0&&(I[y*2]=n3z(k[F]++,F))};
LMF=function(I){var C;for(C=0;C<286;C++)I.dyn_ltree[C*2]=0;for(C=0;C<30;C++)I.dyn_dtree[C*2]=0;for(C=0;C<19;C++)I.bl_tree[C*2]=0;I.dyn_ltree[512]=1;I.opt_len=I.static_len=0;I.last_lit=I.matches=0};
D19=function(I){I.bi_valid>8?yq(I,I.bi_buf):I.bi_valid>0&&(I.pending_buf[I.pending++]=I.bi_buf);I.bi_buf=0;I.bi_valid=0};
pQW=function(I,C,y){D19(I);yq(I,y);yq(I,~y);cF.arraySet(I.pending_buf,I.window,C,y,I.pending);I.pending+=y};
QtI=function(I,C,y,k){var F=C*2,z=y*2;return I[F]<I[z]||I[F]===I[z]&&k[C]<=k[y]};
N9m=function(I,C,y){for(var k=I.heap[y],F=y<<1;F<=I.heap_len;){F<I.heap_len&&QtI(C,I.heap[F+1],I.heap[F],I.depth)&&F++;if(QtI(C,k,I.heap[F],I.depth))break;I.heap[y]=I.heap[F];y=F;F<<=1}I.heap[y]=k};
$1m=function(I,C,y){var k=0;if(I.last_lit!==0){do{var F=I.pending_buf[I.d_buf+k*2]<<8|I.pending_buf[I.d_buf+k*2+1];var z=I.pending_buf[I.l_buf+k];k++;if(F===0)zD(I,z,C);else{var c=eP[z];zD(I,c+256+1,C);var r=VrY[c];r!==0&&(z-=jtz[c],u$(I,z,r));F--;c=F<256?rI[F]:rI[256+(F>>>7)];zD(I,c,y);r=l0O[c];r!==0&&(F-=XQK[c],u$(I,F,r))}}while(k<I.last_lit)}zD(I,256,C)};
RQI=function(I,C){var y=C.dyn_tree,k=C.stat_desc.static_tree,F=C.stat_desc.has_stree,z=C.stat_desc.elems,c,r=-1;I.heap_len=0;I.heap_max=573;for(c=0;c<z;c++)y[c*2]!==0?(I.heap[++I.heap_len]=r=c,I.depth[c]=0):y[c*2+1]=0;for(;I.heap_len<2;){var w=I.heap[++I.heap_len]=r<2?++r:0;y[w*2]=1;I.depth[w]=0;I.opt_len--;F&&(I.static_len-=k[w*2+1])}C.max_code=r;for(c=I.heap_len>>1;c>=1;c--)N9m(I,y,c);w=z;do c=I.heap[1],I.heap[1]=I.heap[I.heap_len--],N9m(I,y,1),k=I.heap[1],I.heap[--I.heap_max]=c,I.heap[--I.heap_max]=
k,y[w*2]=y[c*2]+y[k*2],I.depth[w]=(I.depth[c]>=I.depth[k]?I.depth[c]:I.depth[k])+1,y[c*2+1]=y[k*2+1]=w,I.heap[1]=w++,N9m(I,y,1);while(I.heap_len>=2);I.heap[--I.heap_max]=I.heap[1];c=C.dyn_tree;w=C.max_code;k=C.stat_desc.static_tree;F=C.stat_desc.has_stree;z=C.stat_desc.extra_bits;var L=C.stat_desc.extra_base,D=C.stat_desc.max_length,p,Q=0;for(p=0;p<=15;p++)I.bl_count[p]=0;c[I.heap[I.heap_max]*2+1]=0;for(C=I.heap_max+1;C<573;C++){var X=I.heap[C];p=c[c[X*2+1]*2+1]+1;p>D&&(p=D,Q++);c[X*2+1]=p;if(!(X>
w)){I.bl_count[p]++;var b=0;X>=L&&(b=z[X-L]);var S=c[X*2];I.opt_len+=S*(p+b);F&&(I.static_len+=S*(k[X*2+1]+b))}}if(Q!==0){do{for(p=D-1;I.bl_count[p]===0;)p--;I.bl_count[p]--;I.bl_count[p+1]+=2;I.bl_count[D]--;Q-=2}while(Q>0);for(p=D;p!==0;p--)for(X=I.bl_count[p];X!==0;)k=I.heap[--C],k>w||(c[k*2+1]!==p&&(I.opt_len+=(p-c[k*2+1])*c[k*2],c[k*2+1]=p),X--)}PWt(y,r,I.bl_count)};
bAm=function(I,C,y){var k,F=-1,z=C[1],c=0,r=7,w=4;z===0&&(r=138,w=3);C[(y+1)*2+1]=65535;for(k=0;k<=y;k++){var L=z;z=C[(k+1)*2+1];++c<r&&L===z||(c<w?I.bl_tree[L*2]+=c:L!==0?(L!==F&&I.bl_tree[L*2]++,I.bl_tree[32]++):c<=10?I.bl_tree[34]++:I.bl_tree[36]++,c=0,F=L,z===0?(r=138,w=3):L===z?(r=6,w=3):(r=7,w=4))}};
YNs=function(I,C,y){var k,F=-1,z=C[1],c=0,r=7,w=4;z===0&&(r=138,w=3);for(k=0;k<=y;k++){var L=z;z=C[(k+1)*2+1];if(!(++c<r&&L===z)){if(c<w){do zD(I,L,I.bl_tree);while(--c!==0)}else L!==0?(L!==F&&(zD(I,L,I.bl_tree),c--),zD(I,16,I.bl_tree),u$(I,c-3,2)):c<=10?(zD(I,17,I.bl_tree),u$(I,c-3,3)):(zD(I,18,I.bl_tree),u$(I,c-11,7));c=0;F=L;z===0?(r=138,w=3):L===z?(r=6,w=3):(r=7,w=4)}}};
Ggm=function(I){var C=4093624447,y;for(y=0;y<=31;y++,C>>>=1)if(C&1&&I.dyn_ltree[y*2]!==0)return 0;if(I.dyn_ltree[18]!==0||I.dyn_ltree[20]!==0||I.dyn_ltree[26]!==0)return 1;for(y=32;y<256;y++)if(I.dyn_ltree[y*2]!==0)return 1;return 0};
i$=function(I,C,y){I.pending_buf[I.d_buf+I.last_lit*2]=C>>>8&255;I.pending_buf[I.d_buf+I.last_lit*2+1]=C&255;I.pending_buf[I.l_buf+I.last_lit]=y&255;I.last_lit++;C===0?I.dyn_ltree[y*2]++:(I.matches++,C--,I.dyn_ltree[(eP[y]+256+1)*2]++,I.dyn_dtree[(C<256?rI[C]:rI[256+(C>>>7)])*2]++);return I.last_lit===I.lit_bufsize-1};
nw=function(I,C){I.msg=wI[C];return C};
PF=function(I){for(var C=I.length;--C>=0;)I[C]=0};
Lw=function(I){var C=I.state,y=C.pending;y>I.avail_out&&(y=I.avail_out);y!==0&&(cF.arraySet(I.output,C.pending_buf,C.pending_out,y,I.next_out),I.next_out+=y,C.pending_out+=y,I.total_out+=y,I.avail_out-=y,C.pending-=y,C.pending===0&&(C.pending_out=0))};
Qq=function(I,C){var y=I.block_start>=0?I.block_start:-1,k=I.strstart-I.block_start,F=0;if(I.level>0){I.strm.data_type===2&&(I.strm.data_type=Ggm(I));RQI(I,I.l_desc);RQI(I,I.d_desc);bAm(I,I.dyn_ltree,I.l_desc.max_code);bAm(I,I.dyn_dtree,I.d_desc.max_code);RQI(I,I.bl_desc);for(F=18;F>=3&&I.bl_tree[f0m[F]*2+1]===0;F--);I.opt_len+=3*(F+1)+5+5+4;var z=I.opt_len+3+7>>>3;var c=I.static_len+3+7>>>3;c<=z&&(z=c)}else z=c=k+5;if(k+4<=z&&y!==-1)u$(I,C?1:0,3),pQW(I,y,k);else if(I.strategy===4||c===z)u$(I,2+(C?
1:0),3),$1m(I,Dv,pw);else{u$(I,4+(C?1:0),3);y=I.l_desc.max_code+1;k=I.d_desc.max_code+1;F+=1;u$(I,y-257,5);u$(I,k-1,5);u$(I,F-4,4);for(z=0;z<F;z++)u$(I,I.bl_tree[f0m[z]*2+1],3);YNs(I,I.dyn_ltree,y-1);YNs(I,I.dyn_dtree,k-1);$1m(I,I.dyn_ltree,I.dyn_dtree)}LMF(I);C&&D19(I);I.block_start=I.strstart;Lw(I.strm)};
Ny=function(I,C){I.pending_buf[I.pending++]=C};
Vq=function(I,C){I.pending_buf[I.pending++]=C>>>8&255;I.pending_buf[I.pending++]=C&255};
SNK=function(I,C){var y=I.max_chain_length,k=I.strstart,F=I.prev_length,z=I.nice_match,c=I.strstart>I.w_size-262?I.strstart-(I.w_size-262):0,r=I.window,w=I.w_mask,L=I.prev,D=I.strstart+258,p=r[k+F-1],Q=r[k+F];I.prev_length>=I.good_match&&(y>>=2);z>I.lookahead&&(z=I.lookahead);do{var X=C;if(r[X+F]===Q&&r[X+F-1]===p&&r[X]===r[k]&&r[++X]===r[k+1]){k+=2;for(X++;r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&r[++k]===r[++X]&&k<D;);
X=258-(D-k);k=D-258;if(X>F){I.match_start=C;F=X;if(X>=z)break;p=r[k+F-1];Q=r[k+F]}}}while((C=L[C&w])>c&&--y!==0);return F<=I.lookahead?F:I.lookahead};
l$=function(I){var C=I.w_size,y;do{var k=I.window_size-I.lookahead-I.strstart;if(I.strstart>=C+(C-262)){cF.arraySet(I.window,I.window,C,C,0);I.match_start-=C;I.strstart-=C;I.block_start-=C;var F=y=I.hash_size;do{var z=I.head[--F];I.head[F]=z>=C?z-C:0}while(--y);F=y=C;do z=I.prev[--F],I.prev[F]=z>=C?z-C:0;while(--y);k+=C}if(I.strm.avail_in===0)break;F=I.strm;y=I.window;z=I.strstart+I.lookahead;var c=F.avail_in;c>k&&(c=k);c===0?y=0:(F.avail_in-=c,cF.arraySet(y,F.input,F.next_in,c,z),F.state.wrap===
1?F.adler=KMF(F.adler,y,c,z):F.state.wrap===2&&(F.adler=jP(F.adler,y,c,z)),F.next_in+=c,F.total_in+=c,y=c);I.lookahead+=y;if(I.lookahead+I.insert>=3)for(k=I.strstart-I.insert,I.ins_h=I.window[k],I.ins_h=(I.ins_h<<I.hash_shift^I.window[k+1])&I.hash_mask;I.insert&&!(I.ins_h=(I.ins_h<<I.hash_shift^I.window[k+3-1])&I.hash_mask,I.prev[k&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=k,k++,I.insert--,I.lookahead+I.insert<3););}while(I.lookahead<262&&I.strm.avail_in!==0)};
A7K=function(I,C){for(var y;;){if(I.lookahead<262){l$(I);if(I.lookahead<262&&C===0)return 1;if(I.lookahead===0)break}y=0;I.lookahead>=3&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,y=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);y!==0&&I.strstart-y<=I.w_size-262&&(I.match_length=SNK(I,y));if(I.match_length>=3)if(y=i$(I,I.strstart-I.match_start,I.match_length-3),I.lookahead-=I.match_length,I.match_length<=I.max_lazy_match&&I.lookahead>=3){I.match_length--;
do I.strstart++,I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart;while(--I.match_length!==0);I.strstart++}else I.strstart+=I.match_length,I.match_length=0,I.ins_h=I.window[I.strstart],I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+1])&I.hash_mask;else y=i$(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++;if(y&&(Qq(I,!1),I.strm.avail_out===0))return 1}I.insert=I.strstart<2?I.strstart:2;return C===4?(Qq(I,
!0),I.strm.avail_out===0?3:4):I.last_lit&&(Qq(I,!1),I.strm.avail_out===0)?1:2};
Xj=function(I,C){for(var y,k;;){if(I.lookahead<262){l$(I);if(I.lookahead<262&&C===0)return 1;if(I.lookahead===0)break}y=0;I.lookahead>=3&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,y=I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);I.prev_length=I.match_length;I.prev_match=I.match_start;I.match_length=2;y!==0&&I.prev_length<I.max_lazy_match&&I.strstart-y<=I.w_size-262&&(I.match_length=SNK(I,y),I.match_length<=5&&(I.strategy===1||I.match_length===3&&
I.strstart-I.match_start>4096)&&(I.match_length=2));if(I.prev_length>=3&&I.match_length<=I.prev_length){k=I.strstart+I.lookahead-3;y=i$(I,I.strstart-1-I.prev_match,I.prev_length-3);I.lookahead-=I.prev_length-1;I.prev_length-=2;do++I.strstart<=k&&(I.ins_h=(I.ins_h<<I.hash_shift^I.window[I.strstart+3-1])&I.hash_mask,I.prev[I.strstart&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=I.strstart);while(--I.prev_length!==0);I.match_available=0;I.match_length=2;I.strstart++;if(y&&(Qq(I,!1),I.strm.avail_out===0))return 1}else if(I.match_available){if((y=
i$(I,0,I.window[I.strstart-1]))&&Qq(I,!1),I.strstart++,I.lookahead--,I.strm.avail_out===0)return 1}else I.match_available=1,I.strstart++,I.lookahead--}I.match_available&&(i$(I,0,I.window[I.strstart-1]),I.match_available=0);I.insert=I.strstart<2?I.strstart:2;return C===4?(Qq(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Qq(I,!1),I.strm.avail_out===0)?1:2};
g3I=function(I,C){for(var y,k,F,z=I.window;;){if(I.lookahead<=258){l$(I);if(I.lookahead<=258&&C===0)return 1;if(I.lookahead===0)break}I.match_length=0;if(I.lookahead>=3&&I.strstart>0&&(k=I.strstart-1,y=z[k],y===z[++k]&&y===z[++k]&&y===z[++k])){for(F=I.strstart+258;y===z[++k]&&y===z[++k]&&y===z[++k]&&y===z[++k]&&y===z[++k]&&y===z[++k]&&y===z[++k]&&y===z[++k]&&k<F;);I.match_length=258-(F-k);I.match_length>I.lookahead&&(I.match_length=I.lookahead)}I.match_length>=3?(y=i$(I,1,I.match_length-3),I.lookahead-=
I.match_length,I.strstart+=I.match_length,I.match_length=0):(y=i$(I,0,I.window[I.strstart]),I.lookahead--,I.strstart++);if(y&&(Qq(I,!1),I.strm.avail_out===0))return 1}I.insert=0;return C===4?(Qq(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Qq(I,!1),I.strm.avail_out===0)?1:2};
v3X=function(I,C){for(var y;;){if(I.lookahead===0&&(l$(I),I.lookahead===0)){if(C===0)return 1;break}I.match_length=0;y=i$(I,0,I.window[I.strstart]);I.lookahead--;I.strstart++;if(y&&(Qq(I,!1),I.strm.avail_out===0))return 1}I.insert=0;return C===4?(Qq(I,!0),I.strm.avail_out===0?3:4):I.last_lit&&(Qq(I,!1),I.strm.avail_out===0)?1:2};
$V=function(I,C,y,k,F){this.good_length=I;this.max_lazy=C;this.nice_length=y;this.max_chain=k;this.func=F};
WMs=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 cF.Buf16(1146);this.dyn_dtree=new cF.Buf16(122);this.bl_tree=new cF.Buf16(78);PF(this.dyn_ltree);PF(this.dyn_dtree);PF(this.bl_tree);this.bl_desc=this.d_desc=this.l_desc=null;this.bl_count=new cF.Buf16(16);this.heap=new cF.Buf16(573);PF(this.heap);this.heap_max=this.heap_len=0;this.depth=new cF.Buf16(573);PF(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};
d1z=function(I,C){if(!I||!I.state||C>5||C<0)return I?nw(I,-2):-2;var y=I.state;if(!I.output||!I.input&&I.avail_in!==0||y.status===666&&C!==4)return nw(I,I.avail_out===0?-5:-2);y.strm=I;var k=y.last_flush;y.last_flush=C;if(y.status===42)if(y.wrap===2)I.adler=0,Ny(y,31),Ny(y,139),Ny(y,8),y.gzhead?(Ny(y,(y.gzhead.text?1:0)+(y.gzhead.hcrc?2:0)+(y.gzhead.extra?4:0)+(y.gzhead.name?8:0)+(y.gzhead.comment?16:0)),Ny(y,y.gzhead.time&255),Ny(y,y.gzhead.time>>8&255),Ny(y,y.gzhead.time>>16&255),Ny(y,y.gzhead.time>>
24&255),Ny(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Ny(y,y.gzhead.os&255),y.gzhead.extra&&y.gzhead.extra.length&&(Ny(y,y.gzhead.extra.length&255),Ny(y,y.gzhead.extra.length>>8&255)),y.gzhead.hcrc&&(I.adler=jP(I.adler,y.pending_buf,y.pending,0)),y.gzindex=0,y.status=69):(Ny(y,0),Ny(y,0),Ny(y,0),Ny(y,0),Ny(y,0),Ny(y,y.level===9?2:y.strategy>=2||y.level<2?4:0),Ny(y,3),y.status=113);else{var F=8+(y.w_bits-8<<4)<<8;F|=(y.strategy>=2||y.level<2?0:y.level<6?1:y.level===6?2:3)<<6;y.strstart!==0&&(F|=
32);y.status=113;Vq(y,F+(31-F%31));y.strstart!==0&&(Vq(y,I.adler>>>16),Vq(y,I.adler&65535));I.adler=1}if(y.status===69)if(y.gzhead.extra){for(F=y.pending;y.gzindex<(y.gzhead.extra.length&65535)&&(y.pending!==y.pending_buf_size||(y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F)),Lw(I),F=y.pending,y.pending!==y.pending_buf_size));)Ny(y,y.gzhead.extra[y.gzindex]&255),y.gzindex++;y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F));y.gzindex===y.gzhead.extra.length&&
(y.gzindex=0,y.status=73)}else y.status=73;if(y.status===73)if(y.gzhead.name){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F)),Lw(I),F=y.pending,y.pending===y.pending_buf_size)){var z=1;break}z=y.gzindex<y.gzhead.name.length?y.gzhead.name.charCodeAt(y.gzindex++)&255:0;Ny(y,z)}while(z!==0);y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F));z===0&&(y.gzindex=0,y.status=91)}else y.status=91;if(y.status===
91)if(y.gzhead.comment){F=y.pending;do{if(y.pending===y.pending_buf_size&&(y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F)),Lw(I),F=y.pending,y.pending===y.pending_buf_size)){z=1;break}z=y.gzindex<y.gzhead.comment.length?y.gzhead.comment.charCodeAt(y.gzindex++)&255:0;Ny(y,z)}while(z!==0);y.gzhead.hcrc&&y.pending>F&&(I.adler=jP(I.adler,y.pending_buf,y.pending-F,F));z===0&&(y.status=103)}else y.status=103;y.status===103&&(y.gzhead.hcrc?(y.pending+2>y.pending_buf_size&&Lw(I),
y.pending+2<=y.pending_buf_size&&(Ny(y,I.adler&255),Ny(y,I.adler>>8&255),I.adler=0,y.status=113)):y.status=113);if(y.pending!==0){if(Lw(I),I.avail_out===0)return y.last_flush=-1,0}else if(I.avail_in===0&&(C<<1)-(C>4?9:0)<=(k<<1)-(k>4?9:0)&&C!==4)return nw(I,-5);if(y.status===666&&I.avail_in!==0)return nw(I,-5);if(I.avail_in!==0||y.lookahead!==0||C!==0&&y.status!==666){k=y.strategy===2?v3X(y,C):y.strategy===3?g3I(y,C):Re[y.level].func(y,C);if(k===3||k===4)y.status=666;if(k===1||k===3)return I.avail_out===
0&&(y.last_flush=-1),0;if(k===2&&(C===1?(u$(y,2,3),zD(y,256,Dv),y.bi_valid===16?(yq(y,y.bi_buf),y.bi_buf=0,y.bi_valid=0):y.bi_valid>=8&&(y.pending_buf[y.pending++]=y.bi_buf&255,y.bi_buf>>=8,y.bi_valid-=8)):C!==5&&(u$(y,0,3),pQW(y,0,0),C===3&&(PF(y.head),y.lookahead===0&&(y.strstart=0,y.block_start=0,y.insert=0))),Lw(I),I.avail_out===0))return y.last_flush=-1,0}if(C!==4)return 0;if(y.wrap<=0)return 1;y.wrap===2?(Ny(y,I.adler&255),Ny(y,I.adler>>8&255),Ny(y,I.adler>>16&255),Ny(y,I.adler>>24&255),Ny(y,
I.total_in&255),Ny(y,I.total_in>>8&255),Ny(y,I.total_in>>16&255),Ny(y,I.total_in>>24&255)):(Vq(y,I.adler>>>16),Vq(y,I.adler&65535));Lw(I);y.wrap>0&&(y.wrap=-y.wrap);return y.pending!==0?0:1};
x1I=function(I){if(!(this instanceof x1I))return new x1I(I);I=this.options=cF.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},I||{});I.raw&&I.windowBits>0?I.windowBits=-I.windowBits:I.gzip&&I.windowBits>0&&I.windowBits<16&&(I.windowBits+=16);this.err=0;this.msg="";this.ended=!1;this.chunks=[];this.strm=new qNs;this.strm.avail_out=0;var C=this.strm;var y=I.level,k=I.method,F=I.windowBits,z=I.memLevel,c=I.strategy;if(C){var r=1;y===-1&&(y=6);F<0?(r=0,F=-F):F>15&&
(r=2,F-=16);if(z<1||z>9||k!==8||F<8||F>15||y<0||y>9||c<0||c>4)C=nw(C,-2);else{F===8&&(F=9);var w=new WMs;C.state=w;w.strm=C;w.wrap=r;w.gzhead=null;w.w_bits=F;w.w_size=1<<w.w_bits;w.w_mask=w.w_size-1;w.hash_bits=z+7;w.hash_size=1<<w.hash_bits;w.hash_mask=w.hash_size-1;w.hash_shift=~~((w.hash_bits+3-1)/3);w.window=new cF.Buf8(w.w_size*2);w.head=new cF.Buf16(w.hash_size);w.prev=new cF.Buf16(w.w_size);w.lit_bufsize=1<<z+6;w.pending_buf_size=w.lit_bufsize*4;w.pending_buf=new cF.Buf8(w.pending_buf_size);
w.d_buf=w.lit_bufsize;w.l_buf=3*w.lit_bufsize;w.level=y;w.strategy=c;w.method=k;if(C&&C.state){C.total_in=C.total_out=0;C.data_type=2;y=C.state;y.pending=0;y.pending_out=0;y.wrap<0&&(y.wrap=-y.wrap);y.status=y.wrap?42:113;C.adler=y.wrap===2?0:1;y.last_flush=0;if(!m1I){k=Array(16);for(z=c=0;z<28;z++)for(jtz[z]=c,F=0;F<1<<VrY[z];F++)eP[c++]=z;eP[c-1]=z;for(z=c=0;z<16;z++)for(XQK[z]=c,F=0;F<1<<l0O[z];F++)rI[c++]=z;for(c>>=7;z<30;z++)for(XQK[z]=c<<7,F=0;F<1<<l0O[z]-7;F++)rI[256+c++]=z;for(F=0;F<=15;F++)k[F]=
0;for(F=0;F<=143;)Dv[F*2+1]=8,F++,k[8]++;for(;F<=255;)Dv[F*2+1]=9,F++,k[9]++;for(;F<=279;)Dv[F*2+1]=7,F++,k[7]++;for(;F<=287;)Dv[F*2+1]=8,F++,k[8]++;PWt(Dv,287,k);for(F=0;F<30;F++)pw[F*2+1]=5,pw[F*2]=n3z(F,5);ZAO=new iAF(Dv,VrY,257,286,15);B9I=new iAF(pw,l0O,0,30,15);E39=new iAF([],hQK,0,19,7);m1I=!0}y.l_desc=new wQH(y.dyn_ltree,ZAO);y.d_desc=new wQH(y.dyn_dtree,B9I);y.bl_desc=new wQH(y.bl_tree,E39);y.bi_buf=0;y.bi_valid=0;LMF(y);y=0}else y=nw(C,-2);y===0&&(C=C.state,C.window_size=2*C.w_size,PF(C.head),
C.max_lazy_match=Re[C.level].max_lazy,C.good_match=Re[C.level].good_length,C.nice_match=Re[C.level].nice_length,C.max_chain_length=Re[C.level].max_chain,C.strstart=0,C.block_start=0,C.lookahead=0,C.insert=0,C.match_length=C.prev_length=2,C.match_available=0,C.ins_h=0);C=y}}else C=-2;if(C!==0)throw Error(wI[C]);I.header&&(C=this.strm)&&C.state&&C.state.wrap===2&&(C.state.gzhead=I.header);if(I.dictionary){var L;typeof I.dictionary==="string"?L=U1z(I.dictionary):HA9.call(I.dictionary)==="[object ArrayBuffer]"?
L=new Uint8Array(I.dictionary):L=I.dictionary;I=this.strm;z=L;c=z.length;if(I&&I.state)if(L=I.state,C=L.wrap,C===2||C===1&&L.status!==42||L.lookahead)C=-2;else{C===1&&(I.adler=KMF(I.adler,z,c,0));L.wrap=0;c>=L.w_size&&(C===0&&(PF(L.head),L.strstart=0,L.block_start=0,L.insert=0),y=new cF.Buf8(L.w_size),cF.arraySet(y,z,c-L.w_size,L.w_size,0),z=y,c=L.w_size);y=I.avail_in;k=I.next_in;F=I.input;I.avail_in=c;I.next_in=0;I.input=z;for(l$(L);L.lookahead>=3;){z=L.strstart;c=L.lookahead-2;do L.ins_h=(L.ins_h<<
L.hash_shift^L.window[z+3-1])&L.hash_mask,L.prev[z&L.w_mask]=L.head[L.ins_h],L.head[L.ins_h]=z,z++;while(--c);L.strstart=z;L.lookahead=2;l$(L)}L.strstart+=L.lookahead;L.block_start=L.strstart;L.insert=L.lookahead;L.lookahead=0;L.match_length=L.prev_length=2;L.match_available=0;I.next_in=k;I.input=F;I.avail_in=y;L.wrap=C;C=0}else C=-2;if(C!==0)throw Error(wI[C]);this._dict_set=!0}};
trm=function(I,C){C=C||{};C.gzip=!0;C=new x1I(C);C.push(I,!0);if(C.err)throw C.msg||wI[C.err];return C.result};
OAW=function(I,C){var y=J7z();y&&y.publish.call(y,I.toString(),I,C)};
sQm=function(I,C,y){var k=J7z();if(!k)return 0;var F=k.subscribe(I.toString(),function(z,c){var r=_.d5("ytPubsub2Pubsub2SkipSubKey");r&&r==F||(r=function(){if(a0F[F])try{if(c&&I instanceof Mrz&&I!=z)try{var w=I.dataClass,L=c;if(!L.args||!L.version)throw Error("Wc");try{if(!w.version_){var D=new w;w.version_=D.version}var p=w.version_}catch(Q){}if(!p||L.version!=p)throw Error("Xc");try{c=Reflect.construct(w,_.tX(L.args))}catch(Q){throw Q.message="yt.pubsub2.Data.deserialize(): "+Q.message,Q;}}catch(Q){throw Q.message=
"yt.pubsub2.pubsub2 cross-binary conversion error for "+I.toString()+": "+Q.message,Q;}C.call(y||window,c)}catch(Q){_.v5(Q)}},Ikz[I.toString()]?_.d5("yt.scheduler.instance")?_.b$.addLowPriorityJob(r):_.FT(r,0):r())});
a0F[F]=!0;C6I[I.toString()]||(C6I[I.toString()]=[]);C6I[I.toString()].push(F);return F};
FjW=function(){var I=o9W,C=sQm(ySO,function(y){I.apply(void 0,arguments);kLm(C)});
return C};
kLm=function(I){var C=J7z();C&&(typeof I==="number"&&(I=[I]),_.mn(I,function(y){C.unsubscribeByKey(y);delete a0F[y]}))};
J7z=function(){return _.d5("ytPubsub2Pubsub2Instance")};
uyz=function(I,C,y){y=y===void 0?{sampleRate:.1}:y;Math.random()<Math.min(.02,y.sampleRate/100)&&OAW("meta_logging_csi_event",{timerName:I,timelineData:C})};
_.zdI=function(I){return I?(I=I.privateDoNotAccessOrElseSafeScriptWrappedValue)?_.bi(I):null:null};
_.YV=function(I){return I?(I=I.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue)?_.Ca(I):null:null};
cSz=function(){Tiz||(Tiz=_.YV(_.Aq("WORKER_SERIALIZATION_URL")));return Tiz||void 0};
_.rSO=function(){var I=cSz();edY||I===void 0||(edY=new Worker(_.sC(I),void 0));return edY};
_.ixH=function(){return typeof Worker==="function"&&cSz()?!0:!1};
_.LjI=function(){if(_.ixH()&&!wgm){var I=function(y){y=y.data;if(y.op==="gzippedGelBatch"){var k=n9F.get(y.key);k&&(P6Y(y.gzippedBatch,k.latencyPayload,k.url,k.options,k.sendFn),n9F.delete(y.key))}},C=_.rSO();
C&&(C.addEventListener("message",I),C.onerror=function(){n9F.clear()},wgm=!0)}};
lkz=function(I,C,y,k,F){F=F===void 0?!1:F;var z={startTime:(0,_.JY)(),ticks:{},infos:{}};if(GD)try{var c=Dks(C);if(c!=null&&(c>pgm||c<QQX))k(I,y);else{if(_.V("gzip_gel_with_worker")&&(_.V("initial_gzip_use_main_thread")&&!NiY||!_.V("initial_gzip_use_main_thread"))){wgm||_.LjI();var r=_.rSO();if(r&&!F){n9F.set(Vd9,{latencyPayload:z,url:I,options:y,sendFn:k});r.postMessage({op:"gelBatchToGzip",serializedBatch:C,key:Vd9});Vd9++;return}}var w=trm(jQI(C));P6Y(w,z,I,y,k)}}catch(L){_.xS(L),k(I,y)}else k(I,
y)};
P6Y=function(I,C,y,k,F){NiY=!1;var z=(0,_.JY)();C.ticks.gelc=z;fw++;_.V("disable_compression_due_to_performance_degredation")&&z-C.startTime>=XgO&&($kI++,_.V("abandon_compression_after_N_slow_zips")?fw===_.s8("compression_disable_point")&&$kI>RdI&&(GD=!1):GD=!1);bxY(C);k.headers||(k.headers={});k.headers["Content-Encoding"]="gzip";k.postBody=I;k.postParams=void 0;F(y,k)};
YeX=function(I){var C=C===void 0?!1:C;var y=y===void 0?!1:y;var k=(0,_.JY)(),F={startTime:k,ticks:{},infos:{}},z=C?_.d5("yt.logging.gzipForFetch",!1):!0;if(GD&&z){if(!I.body)return I;try{var c=y?I.body:typeof I.body==="string"?I.body:JSON.stringify(I.body);z=c;if(!y&&typeof c==="string"){var r=Dks(c);if(r!=null&&(r>pgm||r<QQX))return I;y=C?{level:1}:void 0;z=trm(jQI(c),y);var w=(0,_.JY)();F.ticks.gelc=w;if(C){fw++;if((_.V("disable_compression_due_to_performance_degredation")||_.V("disable_compression_due_to_performance_degradation_lr"))&&
w-k>=XgO)if($kI++,_.V("abandon_compression_after_N_slow_zips")||_.V("abandon_compression_after_N_slow_zips_lr")){C=$kI/fw;var L=RdI/_.s8("compression_disable_point");fw>0&&fw%_.s8("compression_disable_point")===0&&C>=L&&(GD=!1)}else GD=!1;bxY(F)}}I.headers=Object.assign({},{"Content-Encoding":"gzip"},I.headers||{});I.body=z;return I}catch(D){return _.xS(D),I}}else return I};
Dks=function(I){try{return(new Blob(I.split(""))).size}catch(C){return _.xS(C),null}};
bxY=function(I){_.V("gel_compression_csi_killswitch")||!_.V("log_gel_compression_latency")&&!_.V("log_gel_compression_latency_lr")||uyz("gel_compression",I,{sampleRate:.1})};
GL9=function(){this.blockSize=-1};
SP=function(){this.blockSize=-1;this.blockSize=64;this.chain_=[];this.buf_=[];this.W_=[];this.pad_=[];this.pad_[0]=128;for(var I=1;I<this.blockSize;++I)this.pad_[I]=0;this.total_=this.inbuf_=0;this.reset()};
Kjz=function(I){I=Object.assign({},I);delete I.Authorization;var C=fkF();if(C){var y=new SP;y.update(_.Aq("INNERTUBE_API_KEY"));y.update(C);I.hash=_.HR(y.digest(),3)}return I};
Az=function(){ASK||(ASK=new _.Kw("yt.innertube"));return ASK};
g9X=function(I,C,y,k){if(k)return null;k=Az().get("nextId",!0)||1;var F=Az().get("requests",!0)||{};F[k]={method:I,request:C,authState:Kjz(y),requestTime:Math.round((0,_.JY)())};Az().set("nextId",k+1,86400,!0);Az().set("requests",F,86400,!0);return k};
v9z=function(I){var C=Az().get("requests",!0)||{};delete C[I];Az().set("requests",C,86400,!0)};
dk9=function(I){var C=Az().get("requests",!0);if(C){for(var y in C){var k=C[y];if(!(Math.round((0,_.JY)())-k.requestTime<6E4)){var F=k.authState,z=Kjz(_.eQW(!1));_.Le.equals(F,z)&&(F=k.request,"requestTimeMs"in F&&(F.requestTimeMs=Math.round((0,_.JY)())),Wjs(I,k.method,F,{}));delete C[y]}}Az().set("requests",C,86400,!0)}};
xk9=function(I){var C;return(I=I==null?void 0:(C=I.error)==null?void 0:C.code)&&I>=400&&I<=599?!1:!0};
qez=function(I){var C;I=I==null?void 0:(C=I.error)==null?void 0:C.code;return!(I!==400&&I!==415)};
ZxW=function(){if(mkO)return mkO();var I={};mkO=tY("LogsDatabaseV2",{objectStores:(I.LogsRequestsStore={addedAtVersion:2},I),shared:!1,upgrade:function(C,y,k){y(2)&&gI(C,"LogsRequestsStore",{keyPath:"id",autoIncrement:!0});y(3);y(5)&&(k=k.objectStore("LogsRequestsStore"),k.JSC$8482_wrapped.indexNames.contains("newRequest")&&k.JSC$8482_wrapped.deleteIndex("newRequest"),vF(k,"newRequestV2",["status","interface","timestamp"]));y(7)&&C.JSC$8467_wrapped.objectStoreNames.contains("sapisid")&&C.JSC$8467_wrapped.deleteObjectStore("sapisid");
y(9)&&C.JSC$8467_wrapped.objectStoreNames.contains("SWHealthLog")&&C.JSC$8467_wrapped.deleteObjectStore("SWHealthLog")},
version:9});return mkO()};
WF=function(I){return _.qS(ZxW(),I)};
E9I=function(I,C){var y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return y={startTime:(0,_.JY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_WRITE"},ticks:{}},_.n(c,WF(C),2);if(c.nextAddress!=3)return k=c.yieldResult,F=Object.assign({},I,{options:JSON.parse(JSON.stringify(I.options)),interface:_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME",0)}),_.n(c,k.put("LogsRequestsStore",F),3);z=c.yieldResult;y.ticks.tc=(0,_.JY)();BiH(y);return c.return(z)})};
hdt=function(I,C){var y,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return y={startTime:(0,_.JY)(),infos:{transactionType:"YT_IDB_TRANSACTION_TYPE_READ"},ticks:{}},_.n(D,WF(C),2);if(D.nextAddress!=3)return k=D.yieldResult,F=_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME",0),z=[I,F,0],c=[I,F,(0,_.JY)()],r=IDBKeyRange.bound(z,c),w="prev",_.V("use_fifo_for_networkless")&&(w="next"),L=void 0,_.n(D,_.mZ(k,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(p){return _.O8(p.objectStore("LogsRequestsStore").index("newRequestV2"),
{query:r,direction:w},function(Q){Q.getValue()&&(L=Q.getValue(),I==="NEW"&&(L.status="QUEUED",Q.update(L)))})}),3);
y.ticks.tc=(0,_.JY)();BiH(y);return D.return(L)})};
UkH=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,WF(C),2);y=k.yieldResult;return k.return(_.mZ(y,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){var z=F.objectStore("LogsRequestsStore");return z.get(I).then(function(c){if(c)return c.status="QUEUED",z.put(c).then(function(){return c})})}))})};
HxH=function(I,C,y,k){y=y===void 0?!0:y;var F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,WF(C),2);F=z.yieldResult;return z.return(_.mZ(F,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(c){var r=c.objectStore("LogsRequestsStore");return r.get(I).then(function(w){return w?(w.status="NEW",y&&(w.sendCount+=1),k!==void 0&&(w.options.compress=k),r.put(w).then(function(){return w})):AY.resolve(void 0)})}))})};
tdW=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,WF(C),2);y=k.yieldResult;return k.return(y.delete("LogsRequestsStore",I))})};
JSH=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,WF(I),2);C=k.yieldResult;y=(0,_.JY)()-2592E6;return _.n(k,_.mZ(C,["LogsRequestsStore"],{mode:"readwrite",enableRetries:!0},function(F){return BN(F.objectStore("LogsRequestsStore"),{},function(z){if(z.getValue().timestamp<=y)return z.delete().then(function(){return z.continue()})})}),0)})};
OxI=function(){_.e(function(I){return _.n(I,dJI("LogsDatabaseV2"),0)})};
BiH=function(I){_.V("nwl_csi_killswitch")||uyz("networkless_performance",I,{sampleRate:1})};
_.MdW=function(I){return _.qS(akH(),I)};
IWt=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,_.MdW(I),2);C=k.yieldResult;y=(0,_.JY)()-2592E6;return _.n(k,_.mZ(C,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(F){return BN(F.objectStore("SWHealthLog"),{},function(z){if(z.getValue().timestamp<=y)return z.delete().then(function(){return z.continue()})})}),0)})};
Cg9=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,_.MdW(I),2);C=y.yieldResult;return _.n(y,C.clear("SWHealthLog"),0)})};
_.dI=function(I,C,y,k,F,z,c){F=F===void 0?"":F;z=z===void 0?!1:z;c=c===void 0?!1:c;if(I)if(y&&!Gl("cobalt"))_.xS(new _.ph("Legacy referrer-scrubbed ping detected")),I&&s_z(I,void 0,{scrubReferrer:!0});else if(F)R0z(I,C,"POST",F,k);else if(_.Aq("USE_NET_AJAX_FOR_PING_TRANSPORT",!1)||k||c)R0z(I,C,"GET","",k,void 0,z,c);else{b:{try{c:{var r=new okz({url:I});if(NQX(r.JSC$7352_url_,"dsh")==="1")var w=null;else{var L=NQX(r.JSC$7352_url_,"ae");if(L==="1"){var D=NQX(r.JSC$7352_url_,"adurl");if(D)try{w={version:3,
directUrl:decodeURIComponent(D),asyncUrl:VyI(r.JSC$7352_url_,"act=1","ri=1",yGm(r))};break c}catch(b){}}w=L==="2"?{version:4,directUrl:VyI(r.JSC$7352_url_,"dct=1","suid="+r.suid_,""),asyncUrl:VyI(r.JSC$7352_url_,"act=1","ri=1","suid="+r.suid_)}:null}}if(w){var p=_.Tl(I);var Q=!(!p||!p.endsWith("/aclk")||_.v2(I,"ri")!=="1");break b}}catch(b){}Q=!1}if(Q){b:{try{if(window.navigator&&window.navigator.sendBeacon&&window.navigator.sendBeacon(I,"")){var X=!0;break b}}catch(b){}X=!1}X?(C&&C(),y=!0):y=!1}else y=
!1;y||s_z(I,C)}};
s_z=function(I,C,y){y=y===void 0?{}:y;var k=new Image,F=""+k8z++;F0m[F]=k;k.onload=k.onerror=function(){C&&F0m[F]&&C();delete F0m[F]};
y.scrubReferrer&&(k.referrerPolicy="no-referrer");k.src=I};
qy=function(I,C){ulm(I,C==="ATTRIBUTION_SRC_MODE_XHR_OPTION")};
zMz=function(I){var C;return((C=document.featurePolicy)==null?0:C.allowedFeatures().includes("attribution-reporting"))?I+"&nis=6":I+"&nis=5"};
TUI=function(I){if(!I)return!1;try{var C;if(((C=_.Zx(I))==null?void 0:C.asm)==="4")return!0}catch(y){_.v5(y)}return!1};
ulm=function(I,C){C?(I=zMz(I),_.dI(I,void 0,void 0,void 0,"",!0,!0)):_.dI(I)};
eMH=function(){cGm||(cGm=new _.Kw("yt.offline"));return cGm};
rGz=function(I){if(_.V("offline_error_handling")){var C=eMH().get("errors",!0)||{};C[I.message]={name:I.name,stack:I.stack};I.level&&(C[I.message].level=I.level);eMH().set("errors",C,2592E3,!0)}};
wDz=function(I,C,y,k){k=k===void 0?!1:k;C=_.V("web_fp_via_jspb")?Object.assign({},C):C;_.V("use_cfr_monitor")&&ipH(I,C);if(_.V("use_request_time_ms_header"))C.headers&&Jq(I)&&(C.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.JY)())));else{var F;if((F=C.postParams)==null?0:F.requestTimeMs)C.postParams.requestTimeMs=Math.round((0,_.JY)())}y&&Object.keys(C).length===0?_.dI(I):C.compress?C.postBody?(typeof C.postBody!=="string"&&(C.postBody=JSON.stringify(C.postBody)),lkz(I,C.postBody,
C,_.cN,k)):lkz(I,JSON.stringify(C.postParams),C,f7K,k):_.cN(I,C)};
nkH=function(I,C){_.V("use_event_time_ms_header")&&Jq(I)&&(C.headers||(C.headers={}),C.headers["X-Goog-Event-Time"]=JSON.stringify(Math.round((0,_.JY)())));return C};
_.L0X=function(){PgK||(PgK=new _.mx({logOfflineErrors:!0,enablePolling:!0}));return PgK};
ipH=function(I,C){var y=C.onError?C.onError:function(){};
C.onError=function(F,z){Zv().requestComplete(I,!1);y(F,z)};
var k=C.onSuccess?C.onSuccess:function(){};
C.onSuccess=function(F,z){Zv().requestComplete(I,!0);k(F,z)}};
_.Dct=function(){return _.H5(document.location.toString())!=="www.youtube-nocookie.com"};
_.NUI=function(){return _.d5("ytNetworklessLoggingInitializationOptions")?_.pDW.isNwlInitialized:_.Q_t};
VfX=function(I,C){if(_.V("polymer_on_demand_shady_dom")){var y;var k=(y=I.__shady_native_firstElementChild)!=null?y:I.firstElementChild}else k=I.firstElementChild;for(;k;){if(I=C(k)?k:VfX(k,C))return I;k=k.nextElementSibling}return null};
lW9=function(){var I=document;if("visibilityState"in I)return I.visibilityState;var C=j_I+"VisibilityState";if(C in I)return I[C]};
_.XDz=function(I,C){var y;hz(I,function(k){y=C[k];return!!y});
return y};
_.HF=function(I){var C=$cK(I);C?C.focus():_.UL(I)};
$cK=function(I){return(I=VfX(I,function(C){return _.tz(C)?RMI(C)&&!!C.offsetParent:!1}))?I:null};
_.UL=function(I,C){I.hasAttribute("tabindex")||I.setAttribute("tabindex","-1");I.focus(C)};
bpm=function(I,C,y,k){k=k===void 0?{}:k;I.addEventListener&&(C!="mouseenter"||"onmouseenter"in document?C!="mouseleave"||"onmouseenter"in document?C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"):C="mouseout":C="mouseover");return _.Le.findKey(Jz,function(F){var z=typeof F[4]==="boolean"&&F[4]==!!k,c=_.sw(F[4])&&_.sw(k)&&_.Le.equals(F[4],k);return!!F.length&&F[0]==I&&F[1]==C&&F[2]==y&&(z||c)})};
_.ae=function(I,C,y,k){k=k===void 0?{}:k;if(!I||!I.addEventListener&&!I.attachEvent)return"";var F=bpm(I,C,y,k);if(F)return F;F=++YqW.count+"";var z=!(C!="mouseenter"&&C!="mouseleave"||!I.addEventListener||"onmouseenter"in document);var c=z?function(r){r=new OL(r);if(!_.$F(r.relatedTarget,function(w){return w==I},!0))return r.currentTarget=I,r.type=C,y.call(I,r)}:function(r){r=new OL(r);
r.currentTarget=I;return y.call(I,r)};
c=_.W5(c);I.addEventListener?(C=="mouseenter"&&z?C="mouseover":C=="mouseleave"&&z?C="mouseout":C=="mousewheel"&&"MozBoxSizing"in document.documentElement.style&&(C="MozMousePixelScroll"),G8O()||typeof k==="boolean"?I.addEventListener(C,c,k):I.addEventListener(C,c,!!k.capture)):I.attachEvent("on"+C,c);Jz[F]=[I,C,y,c,k];return F};
_.Sqm=function(I,C,y){var k=k===void 0?{}:k;var F=_.ae(I,C,function(){_.fWm(F);y.apply(I,arguments)},k)};
_.fWm=function(I){I&&(typeof I=="string"&&(I=[I]),_.mn(I,function(C){if(C in Jz){var y=Jz[C],k=y[0],F=y[1],z=y[3];y=y[4];k.removeEventListener?G8O()||typeof y==="boolean"?k.removeEventListener(F,z,y):k.removeEventListener(F,z,!!y.capture):k.detachEvent&&k.detachEvent("on"+F,z);delete Jz[C]}}))};
My=function(I){this.callback_=I;this.position_=null;this.previousTime_=0;this.previousPosition_=null;this.previousVelocity_=0;this.cycles_=[];for(I=0;I<4;I++)this.cycles_.push(0);this.index_=0;this.mouseListenerKey_=_.ae(window,"mousemove",(0,_.DD)(this.onMouseMove_,this));this.timerId_=_.uX((0,_.DD)(this.checkPosition_,this),25)};
AGO=function(){var I={};var C=I.preferMobileEvents===void 0?!1:I.preferMobileEvents;I=I.enableScrollEventListener===void 0?!0:I.enableScrollEventListener;if(_.d5("_lact",window)==null){var y=parseInt(_.Aq("LACT"),10);y=isFinite(y)?Date.now()-Math.max(y,0):-1;_.U8("_lact",y,window);_.U8("_fact",y,window);y==-1&&_.I0();_.ae(document,"keydown",_.I0);_.ae(document,"keyup",_.I0);_.ae(document,"mousedown",_.I0);_.ae(document,"mouseup",_.I0);C?_.ae(window,"touchmove",function(){K0H("touchmove",200)},{passive:!0}):
(_.ae(window,"resize",function(){K0H("resize",200)}),I&&_.ae(window,"scroll",function(){K0H("scroll",200)}));
new My(function(){K0H("mouse",100)});
_.ae(document,"touchstart",_.I0,{passive:!0});_.ae(document,"touchend",_.I0,{passive:!0})}};
K0H=function(I,C){gkm[I]||(gkm[I]=!0,_.b$.addLowPriorityJob(function(){_.I0();gkm[I]=!1},C))};
_.I0=function(){_.d5("_lact",window)==null&&AGO();var I=Date.now();_.U8("_lact",I,window);_.d5("_fact",window)==-1&&_.U8("_fact",I,window);(I=_.d5("ytglobal.ytUtilActivityCallback_"))&&I()};
_.Ci=function(){var I=_.d5("_lact",window);return I==null?-1:Math.max(Date.now()-I,0)};
_.ko=function(I,C,y){var k=_.ss();if(k&&C){var F=k.subscribe(I,function(){var z=arguments,c=function(){o0[F]&&C.apply&&typeof C.apply=="function"&&C.apply(y||window,z)};
try{_.vkF[I]?c():_.FT(c,0)}catch(r){_.v5(r)}},y);
o0[F]=!0;yB[I]||(yB[I]=[]);yB[I].push(F);return F}return 0};
_.W0t=function(I){var C=_.ss();C&&(typeof I==="number"?I=[I]:typeof I==="string"&&(I=[parseInt(I,10)]),_.mn(I,function(y){C.unsubscribeByKey(y);delete o0[y]}))};
_.dc9=function(I,C){var y=_.ss();y&&y.publish.apply(y,arguments)};
_.qqs=function(I){var C=_.ss();if(C)if(C.clear(I),I)xcI(I);else for(var y in yB)xcI(y)};
_.ss=function(){return _.sF.ytPubsubPubsubInstance};
xcI=function(I){yB[I]&&(I=yB[I],_.mn(I,function(C){o0[C]&&delete o0[C]}),I.length=0)};
mcH=function(){var I,C;return"h5vcc"in F9&&((I=F9.h5vcc.traceEvent)==null?0:I.traceBegin)&&((C=F9.h5vcc.traceEvent)==null?0:C.traceEnd)?1:"performance"in F9&&F9.performance.mark&&F9.performance.measure?2:0};
Zp9=function(I){var C=mcH();switch(C){case 1:F9.h5vcc.traceEvent.traceBegin("YTLR",I);break;case 2:F9.performance.mark(I+"-start");break;case 0:break;default:_.C8(C,"unknown trace type")}};
BUH=function(I){var C=mcH();switch(C){case 1:F9.h5vcc.traceEvent.traceEnd("YTLR",I);break;case 2:C=I+"-start";var y=I+"-end";F9.performance.mark(y);F9.performance.measure(I,C,y);break;case 0:break;default:_.C8(C,"unknown trace type")}};
Ek9=function(I){var C,y;(y=(C=window).onerror)==null||y.call(C,I.message,"",0,0,I)};
hMz=function(I){if(_.V("web_lifecycle_error_handling_killswitch"))return I();try{return I()}catch(C){Ek9(C)}};
UcX=function(I){return[I.auth===void 0?"undefined":I.auth,I.isJspb===void 0?"undefined":I.isJspb,I.cttAuthInfo===void 0?"undefined":I.cttAuthInfo,I.tier===void 0?"undefined":I.tier].join("/")};
_.l=function(I,C){if(I)return I[C.name]};
zB=function(){var I=_.d5("yt.logging.ims");I||(I=new u2,_.U8("yt.logging.ims",I));return I};
sHO=function(I,C){if(I.endpoint==="log_event"){HpX(I);var y=tfz(I),k=JGK(I.payload)||"",F=Opz(k),z=200;if(F){if(F.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;z=aWH(F.tier);if(z===400){Mfz(I,C);return}}TB[y]=!0;y={cttAuthInfo:y,isJspb:!1,tier:z};zB().storePayload(y,I.payload);IBz(C,!1,y,CTF(k))}};
yLt=function(I,C,y){if(C.endpoint==="log_event"){HpX(void 0,C);var k=tfz(C,!0),F=Opz(I),z=200;if(F){if(F.enabled===!1&&!_.V("web_payload_policy_disabled_killswitch"))return;z=aWH(F.tier);if(z===400){omm(I,C,y);return}}TB[k]=!0;k={cttAuthInfo:k,isJspb:!0,tier:z};zB().storePayload(k,JP(C.payload));IBz(y,!0,k,CTF(I))}};
IBz=function(I,C,y,k){C=C===void 0?!1:C;k=k===void 0?!1:k;I&&(cH=new I);I=_.s8("tvhtml5_logging_max_batch_ads_fork")||_.s8("tvhtml5_logging_max_batch")||_.s8("web_logging_max_batch")||100;var F=(0,_.JY)(),z=k$I(C,y.tier),c=z.lastDebounceQueueFromLogTimeMs;k&&(z.useVideoStatsEndPoint=!0);k=0;y&&(k=zB().getSequenceCount(y));var r=function(){Fhz({writeThenSend:!0},C,y.tier)};
k>=1E3?r():k>=I?uIO||(uIO=zlH(function(){r();uIO=void 0},0)):F-c>=10&&(TWz(C,y.tier),z.lastDebounceQueueFromLogTimeMs=F)};
Mfz=function(I,C){if(I.endpoint==="log_event"){_.V("more_accurate_gel_parser")&&zB().storePayload({isJspb:!1},I.payload);HpX(I);var y=tfz(I),k=new Map;k.set(y,[I.payload]);var F=JGK(I.payload)||"";C&&(cH=new C);return new _.eN(function(z,c){cH&&cH.isReady()?cLz(k,cH,z,c,{bypassNetworkless:!0},!0,CTF(F)):z()})}};
omm=function(I,C,y){if(C.endpoint==="log_event"){HpX(void 0,C);var k=tfz(C,!0),F=new Map;F.set(k,[JP(C.payload)]);y&&(cH=new y);return new _.eN(function(z){cH&&cH.isReady()?elW(F,cH,z,{bypassNetworkless:!0},!0,CTF(I)):z()})}};
tfz=function(I,C){var y="";if(I.dangerousLogToVisitorSession)y="visitorOnlyApprovedKey";else if(I.cttAuthInfo){if(C===void 0?0:C){C=I.cttAuthInfo.token;y=I.cttAuthInfo;var k=new rLF;y.videoId?k.setVideoId(y.videoId):y.playlistId&&rT(k,2,iKI,K8(y.playlistId));wOs[C]=k}else C=I.cttAuthInfo,y={},C.videoId?y.videoId=C.videoId:C.playlistId&&(y.playlistId=C.playlistId),nmO[I.cttAuthInfo.token]=y;y=I.cttAuthInfo.token}return y};
Fhz=function(I,C,y){I=I===void 0?{}:I;C=C===void 0?!1:C;new _.eN(function(k,F){var z=k$I(C,y),c=z.useVideoStatsEndPoint;z.useVideoStatsEndPoint=!1;PTK(z.queueTimer);PTK(z.queueMaxTimer);z.queueMaxTimer=0;cH&&cH.isReady()?y===void 0&&_.V("enable_web_tiered_gel")?Lh9(k,F,I,C,300,c):Lh9(k,F,I,C,y,c):(TWz(C,y),k())})};
Lh9=function(I,C,y,k,F,z){var c=cH;y=y===void 0?{}:y;k=k===void 0?!1:k;F=F===void 0?200:F;z=z===void 0?!1:z;var r=new Map,w=new Map,L={isJspb:k,cttAuthInfo:void 0,tier:F},D={isJspb:k,cttAuthInfo:void 0};if(k){C=_.T(Object.keys(TB));for(F=C.next();!F.done;F=C.next())F=F.value,w=_.V("enable_web_tiered_gel")?zB().smartExtractMatchingEntries({keys:[L,D],sizeLimit:1E3}):zB().extractMatchingEntries({isJspb:!0,cttAuthInfo:F}),w.length>0&&r.set(F,w),(_.V("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&
delete TB[F];elW(r,c,I,y,!1,z)}else{r=_.T(Object.keys(TB));for(L=r.next();!L.done;L=r.next())L=L.value,D=_.V("enable_web_tiered_gel")?zB().smartExtractMatchingEntries({keys:[{isJspb:!1,cttAuthInfo:L,tier:F},{isJspb:!1,cttAuthInfo:L}],sizeLimit:1E3}):zB().extractMatchingEntries({isJspb:!1,cttAuthInfo:L}),D.length>0&&w.set(L,D),(_.V("web_fp_via_jspb_and_json")&&y.writeThenSend||!_.V("web_fp_via_jspb_and_json"))&&delete TB[L];cLz(w,c,I,C,y,!1,z)}};
TWz=function(I,C){I=I===void 0?!1:I;C=C===void 0?200:C;var y=function(){Fhz({writeThenSend:!0},I,C)},k=k$I(I,C),F=k===DH9||k===pOz?5E3:QHO;
_.V("web_gel_timeout_cap")&&!k.queueMaxTimer&&(F=zlH(function(){y()},F),k.queueMaxTimer=F);
PTK(k.queueTimer);F=_.Aq("LOGGING_BATCH_TIMEOUT",_.s8("web_gel_debounce_ms",1E4));_.V("shorten_initial_gel_batch_timeout")&&NWO&&(F=VAY);F=zlH(function(){_.s8("gel_min_batch_size")>0?zB().getSequenceCount({cttAuthInfo:void 0,isJspb:I,tier:C})>=jHX&&y():y()},F);
k.queueTimer=F};
cLz=function(I,C,y,k,F,z,c){F=F===void 0?{}:F;var r=Math.round((0,_.JY)()),w=I.size,L=lBH(c);I=_.T(I);var D=I.next();for(c={};!D.done;c={networkFailures:void 0,batchRequest:void 0,dangerousLogToVisitorSession:void 0,onSuccess$jscomp$3:void 0,onError$jscomp$5:void 0},D=I.next()){var p=_.T(D.value);D=p.next().value;p=p.next().value;c.batchRequest=_.Le.unsafeClone({context:_.stK(C.config_||_.aD())});if(!_.Mz(p)&&!_.V("throw_err_when_logevent_malformed_killswitch")){k();break}c.batchRequest.events=p;
(p=nmO[D])&&XOI(c.batchRequest,D,p);delete nmO[D];c.dangerousLogToVisitorSession=D==="visitorOnlyApprovedKey";$H9(c.batchRequest,r,c.dangerousLogToVisitorSession);RlX(F);c.onSuccess$jscomp$3=function(Q){_.V("start_client_gcf")&&_.b$.addLowPriorityJob(function(){return _.e(function(X){return _.n(X,bKs(Q),0)})});
w--;w||y()};
c.networkFailures=0;c.onError$jscomp$5=function(Q){return function(){Q.networkFailures++;if(F.bypassNetworkless&&Q.networkFailures===1)try{Wjs(C,L,Q.batchRequest,Ybz({writeThenSend:!0},Q.dangerousLogToVisitorSession,Q.onSuccess$jscomp$3,Q.onError$jscomp$5,z)),NWO=!1}catch(X){_.v5(X),k()}w--;w||y()}}(c);
try{Wjs(C,L,c.batchRequest,Ybz(F,c.dangerousLogToVisitorSession,c.onSuccess$jscomp$3,c.onError$jscomp$5,z)),NWO=!1}catch(Q){_.v5(Q),k()}}};
elW=function(I,C,y,k,F,z){k=k===void 0?{}:k;var c=Math.round((0,_.JY)()),r={value:I.size},w=new Map([].concat(_.Py(I)));w=_.T(w);for(var L=w.next();!L.done;L=w.next()){var D=_.T(L.value).next().value,p=I.get(D);L=new G$W;var Q=C.config_||_.aD(),X=new i2,b=new fBI;_.zT(b,1,Q.innertubeContextHostLanguage);_.zT(b,2,Q.innertubeContextGeoLocation);_.Ie(b,16,Q.innertubeContextClientNameFieldNumber);_.zT(b,17,Q.innertubeContextClientVersion);if(Q.innertubeContextClientConfigInfo){var S=Q.innertubeContextClientConfigInfo,
A=new sL;S.coldConfigData&&_.zT(A,1,S.coldConfigData);S.appInstallData&&_.zT(A,6,S.appInstallData);S.coldHashData&&_.zT(A,3,S.coldHashData);S.hotHashData&&A.setHotHashData(S.hotHashData);_.JT(b,62,A)}(S=_.sF.devicePixelRatio)&&S!=1&&_.Cw(b,65,_.kK(S));S=DsW();S!==""&&_.zT(b,54,S);S=p1z();if(S.length>0){A=new Sbt;for(var x=0;x<S.length;x++){var B=new wT;B.setKey(S[x].key);rT(B,2,Khz,K8(S[x].value));ni(A,15,wT,B)}_.JT(X,5,A)}J$I(Q,b);OqK(X);aCW(b);Miz(Q,b);I0I(b);_.V("start_client_gcf")&&CWX(b);_.Aq("DELEGATED_SESSION_ID")&&
!_.V("pageid_as_header_web")&&(Q=new PH,_.zT(Q,3,_.Aq("DELEGATED_SESSION_ID")));!_.V("fill_delegate_context_in_gel_killswitch")&&(S=_.Aq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"))&&(A=_.MS(X,PH,3)||new PH,Q=X,S=_.zT(A,18,S),_.JT(Q,3,S));Q=b;S=_.T(Object.entries(_.Zx(_.Aq("DEVICE",""))));for(A=S.next();!A.done;A=S.next())x=_.T(A.value),A=x.next().value,x=x.next().value,A==="cbrand"?_.zT(Q,12,x):A==="cmodel"?_.zT(Q,13,x):A==="cbr"?_.zT(Q,87,x):A==="cbrver"?_.zT(Q,88,x):A==="cos"?_.zT(Q,18,
x):A==="cosver"?_.zT(Q,19,x):A==="cplatform"&&_.Ie(Q,42,H7W(x));X.setClient(b);_.JT(L,1,X);if(b=wOs[D])a:{if(_.Te(b,Li(b,iKI,1)))X=1;else if(b.getPlaylistId())X=2;else break a;_.JT(L,4,b);b=L.getContext()||new i2;Q=_.MS(b,PH,3)||new PH;S=new Di;S.setToken(D);_.Ie(S,1,X);ni(Q,12,Di,S);_.JT(b,3,Q)}delete wOs[D];D=D==="visitorOnlyApprovedKey";ALm()||_.pi(L,2,c);!D&&(X=_.Aq("EVENT_ID"))&&(b=gmz(),Q=new vmX,_.zT(Q,1,X),_.pi(Q,2,b),_.JT(L,5,Q));RlX(k);if(_.V("jspb_serialize_with_worker")&&(X=_.rSO())&&
k.writeThenSend){_.Whs.set(dHW,{client:C,resolve:y,networklessOptions:k,isIsolated:F,useVSSEndpoint:z,dangerousLogToVisitorSession:D,requestsOutstanding:r});X.postMessage({op:"gelBatchToSerialize",batchRequest:JP(L),clientEvents:p,key:dHW});dHW++;break}if(p){X=[];for(b=0;b<p.length;b++)try{X.push(new QB(p[b]))}catch(t){_.v5(new _.ph("Transport failed to deserialize "+String(p[b])))}p=X}else p=[];p=_.T(p);for(X=p.next();!X.done;X=p.next())ni(L,3,QB,X.value);p={startTime:(0,_.JY)(),ticks:{},infos:{}};
L=L.serialize();p.ticks.geljspc=(0,_.JY)();_.V("log_jspb_serialize_latency")&&uyz("gel_jspb_serialize",p,{sampleRate:.1});_.xHm(L,C,y,k,F,z,D,r)}};
_.xHm=function(I,C,y,k,F,z,c,r){k=k===void 0?{}:k;r=r===void 0?{value:0}:r;z=lBH(z);k=Ybz(k,c,function(w){_.V("start_client_gcf")&&_.b$.addLowPriorityJob(function(){return _.e(function(L){return _.n(L,bKs(w),0)})});
r.value--;r.value||y()},function(){r.value--;
r.value||y()},F);
k.headers["Content-Type"]="application/json+protobuf";k.postBodyFormat="JSPB";k.postBody=I;Wjs(C,z,"",k);NWO=!1};
RlX=function(I){_.V("always_send_and_write")&&(I.writeThenSend=!1)};
Ybz=function(I,C,y,k,F){I={retry:!0,onSuccess:y,onError:k,networklessOptions:I,dangerousLogToVisitorSession:C,bypassMonitoring:!!F,headers:{},postBodyFormat:"",postBody:"",compress:_.V("compress_gel")||_.V("compress_gel_lr")};ALm()&&(I.headers["X-Goog-Request-Time"]=JSON.stringify(Math.round((0,_.JY)())));return I};
$H9=function(I,C,y){ALm()||(I.requestTimeMs=String(C));_.V("unsplit_gel_payloads_in_logs")&&(I.unsplitGelPayloadsInLogs=!0);!y&&(C=_.Aq("EVENT_ID"))&&(y=gmz(),I.serializedClientEventId={serializedEventId:C,clientCounter:String(y)})};
gmz=function(){var I=_.Aq("BATCH_CLIENT_COUNTER")||0;I||(I=Math.floor(Math.random()*65535/2));I++;I>65535&&(I=1);_.KH("BATCH_CLIENT_COUNTER",I);return I};
XOI=function(I,C,y){if(y.videoId)var k="VIDEO";else if(y.playlistId)k="PLAYLIST";else return;I.credentialTransferTokenTargetId=y;I.context=I.context||{};I.context.user=I.context.user||{};I.context.user.credentialTransferTokens=[{token:C,scope:k}]};
HpX=function(I,C){var y=_.oD("il_payload_scraping")==="enable_il_payload_scraping";if(!_.d5("yt.logging.transport.enableScrapingForTest"))if(y)qbm=[],_.U8("yt.logging.transport.enableScrapingForTest",!0),_.U8("yt.logging.transport.scrapedPayloadsForTesting",qbm),_.U8("yt.logging.transport.payloadToScrape","visualElementShown visualElementHidden visualElementAttached screenCreated visualElementGestured visualElementStateChanged".split(" ")),_.U8("yt.logging.transport.getScrapedPayloadFromClientEventsFunction"),
_.U8("yt.logging.transport.scrapeClientEvent",!0);else return;y=_.d5("yt.logging.transport.scrapedPayloadsForTesting");var k=_.d5("yt.logging.transport.payloadToScrape");C&&(C=_.d5("yt.logging.transport.getScrapedPayloadFromClientEventsFunction").bind(C.payload)())&&y.push(C);C=_.d5("yt.logging.transport.scrapeClientEvent");if(k&&k.length>=1)for(var F=0;F<k.length;F++)if(I&&I.payload[k[F]])if(C)y.push(I.payload);else{var z=void 0;y.push(((z=I)==null?void 0:z.payload)[k[F]])}_.U8("yt.logging.transport.scrapedPayloadsForTesting",
y)};
ALm=function(){return _.V("use_request_time_ms_header")||_.V("lr_use_request_time_ms_header")};
zlH=function(I,C){return _.V("transport_use_scheduler")===!1?_.FT(I,C):_.V("logging_avoid_blocking_during_navigation")||_.V("lr_logging_avoid_blocking_during_navigation")?_.NU(_.b$,function(){if(_.mHt().currentState==="none")I();else{var y={};_.mHt().install((y.none={callback:I},y))}},C):_.NU(_.b$,I,C)};
PTK=function(I){_.V("transport_use_scheduler")?_.b$.cancelJob(I):_.zl(I)};
bKs=function(I){var C,y,k,F,z,c,r,w,L,D;return _.e(function(p){return p.nextAddress==1?(k=(C=I)==null?void 0:(y=C.responseContext)==null?void 0:y.globalConfigGroup,F=_.l(k,ZKs),c=(z=k)==null?void 0:z.hotHashData,r=_.l(k,BWW),L=(w=k)==null?void 0:w.coldHashData,(D=_.N().resolve(_.aU(VB)))?c?F?_.n(p,EmK(D,c,F),2):_.n(p,EmK(D,c),2):p.jumpTo(2):p.return()):L?r?_.n(p,hlX(D,L,r),0):_.n(p,hlX(D,L),0):p.jumpTo(0)})};
k$I=function(I,C){C=C===void 0?200:C;return I?C===300?DH9:UHm:C===300?pOz:HKX};
Opz=function(I){if(_.V("enable_web_tiered_gel")){I=tAm[I||""];var C,y,k,F=_.N().resolve(_.aU(VB))==null?void 0:(C=JLF())==null?void 0:(y=C.loggingHotConfig)==null?void 0:(k=y.eventLoggingConfig)==null?void 0:k.payloadPolicies;if(F)for(C=0;C<F.length;C++)if(F[C].payloadNumber===I)return F[C]}};
JGK=function(I){I=Object.keys(I);I=_.T(I);for(var C=I.next();!C.done;C=I.next())if(C=C.value,tAm[C])return C};
aWH=function(I){switch(I){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}};
CTF=function(I){return I==="gelDebuggingEvent"};
lBH=function(I){return(I===void 0?0:I)&&_.V("vss_through_gel_video_stats")?"video_stats":"log_event"};
l2=function(I,C,y,k){k=k===void 0?{}:k;var F={},z=Math.round(k.timestamp||(0,_.JY)());F.eventTimeMs=z<Number.MAX_SAFE_INTEGER?z:0;F[I]=C;I=_.Ci();F.context={lastActivityMs:String(k.timestamp||!isFinite(I)?-1:I)};k.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")&&(I=F.context,C=k.sequenceGroup,C={index:OK9(C),groupKey:C},I.sequence=C,k.endOfSequence&&delete jN[k.sequenceGroup]);(k.sendIsolatedPayload?Mfz:sHO)({endpoint:"log_event",payload:F,cttAuthInfo:k.cttAuthInfo,dangerousLogToVisitorSession:k.dangerousLogToVisitorSession},
y)};
OK9=function(I){jN[I]=I in jN?jN[I]+1:0;return jN[I]};
_.b2=function(I,C,y){y=y===void 0?{}:y;var k=R0;_.g5("ytLoggingEventsDefaultDisabled",!1)&&R0===R0&&(k=null);l2(I,C,k,y)};
_.Yo=function(){if(_.V("web_fp_via_jspb")){var I=!0;I=I===void 0?!1:I;var C=aBY;aBY=[];if(C){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,I?l2(y.payloadName,y.payload,R0,y.options):_.b2(y.payloadName,y.payload,y.options)}Fhz(void 0,!0);if(!_.V("web_fp_via_jspb_and_json"))return}Fhz(void 0,!1)};
MAm=function(I,C){var y;if((y=C)==null?0:y.componentStack)return C;if(I=I.componentStack)C||(C={}),C.componentStack=Zh9(I);return C};
I_F=function(){_.mn(_.Aq("ERRORS")||[],function(I){_.GB.apply(null,I)});
_.KH("ERRORS",[])};
_.fi=function(I){_.GB(I)};
_.SN=function(I){_.GB(I,"WARNING")};
CUz=function(I){I instanceof Error?_.GB(I):(I=_.sw(I)?JSON.stringify(I):String(I),I=new _.ph(I),I.name="RejectedPromiseError",_.SN(I))};
sjY=function(I,C,y,k,F,z){C=C===void 0?"Unknown file":C;y=y===void 0?0:y;var c=!1,r=MNz("log_window_onerror_fraction");if(r&&Math.random()<r)c=!0;else{r=document.getElementsByTagName("script");for(var w=0,L=r.length;w<L;w++)if(r[w].src.indexOf("/debug-")>0){c=!0;break}}c&&(c=!1,F?c=!0:(typeof I==="string"?r=I:ErrorEvent&&I instanceof ErrorEvent?(c=!0,r=I.message,C=I.filename,y=I.lineno,k=I.colno):(r="Unknown error",C="Unknown file",y=0),F=new _.ph(r),F.name="UnhandledWindowError",F.message=r,F.fileName=
C,F.lineNumber=y,isNaN(k)?delete F.columnNumber:F.columnNumber=k),_.V("wiz_enable_component_stack_propagation_killswitch")||(z=MAm(F,z)),z&&_.Ki(F,z),c?_.GB(F):_.SN(F))};
_.GB=function(I,C,y,k,F,z,c,r){z=z===void 0?{}:z;z.name=y||_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME",1);z.version=k||_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION");y=z;C=C===void 0?"ERROR":C;c=c===void 0?!1:c;C=C===void 0?"ERROR":C;c=c===void 0?!1:c;if(I&&(I.hasOwnProperty("level")&&I.level&&(C=I.level),_.V("console_log_js_exceptions")&&(k=[],k.push("Name: "+I.name),k.push("Message: "+I.message),I.hasOwnProperty("params")&&k.push("Error Params: "+JSON.stringify(I.params)),I.hasOwnProperty("args")&&k.push("Error args: "+
JSON.stringify(I.args)),k.push("File name: "+I.fileName),k.push("Stacktrace: "+I.stack),k=k.join("\n"),window.console.log(k,I)),!(o$I>=5))){k=[];F=_.T(yEz);for(z=F.next();!z.done;z=F.next()){z=z.value;try{z()&&k.push(z())}catch(A){}}k=[].concat(_.Py(kpz),_.Py(k));var w=Fds(I);F=w.message||"Unknown Error";z=w.name||"UnknownError";var L=w.stack||I.stacktrace||"Not available";if(L.startsWith(z+": "+F)){var D=L.split("\n");D.shift();L=D.join("\n")}D=w.lineNumber||"Not available";w=w.fileName||"Not available";
var p=0;if(I.hasOwnProperty("args")&&I.args&&I.args.length)for(var Q=0;Q<I.args.length&&!(p=UsY(I.args[Q],"params."+Q,y,p),p>=500);Q++);else if(I.hasOwnProperty("params")&&I.params){var X=I.params;if(typeof I.params==="object")for(Q in X){if(X[Q]){var b="params."+Q,S=iX(X[Q]);y[b]=S;p+=b.length+S.length;if(p>500)break}}else y.params=iX(X)}if(k.length)for(Q=0;Q<k.length&&!(p=UsY(k[Q],"params.context."+Q,y,p),p>=500);Q++);navigator.vendor&&!y.hasOwnProperty("vendor")&&(y["device.vendor"]=navigator.vendor);
Q={message:F,name:z,lineNumber:D,fileName:w,stack:L,params:y,sampleWeight:1};y=Number(I.columnNumber);isNaN(y)||(Q.lineNumber=Q.lineNumber+":"+y);if(I.level==="IGNORED")I=0;else a:{I=uWH();y=_.T(I.messageWeights);for(k=y.next();!k.done;k=y.next())if(k=k.value,Q.message&&Q.message.match(k.messageRegExp)){I=k.weight;break a}I=_.T(I.callbackWeights);for(y=I.next();!y.done;y=I.next())if(y=y.value,y.callback(Q)){I=y.weight;break a}I=1}Q.sampleWeight=I;I=_.T(zst);for(y=I.next();!y.done;y=I.next())if(y=
y.value,y.patternsForType[Q.name])for(F=_.T(y.patternsForType[Q.name]),k=F.next();!k.done;k=F.next())if(z=k.value,k=Q.message.match(z.regexp)){Q.params["params.error.original"]=k[0];F=z.groups;z={};for(D=0;D<F.length;D++)z[F[D]]=k[D+1],Q.params["params.error."+F[D]]=k[D+1];Q.message=y.messageFn(z);break}Q.params||(Q.params={});I=uWH();Q.params["params.errorServiceSignature"]="msg="+I.messageWeights.length+"&cb="+I.callbackWeights.length;Q.params["params.serviceWorker"]="false";_.sF.document&&_.sF.document.querySelectorAll&&
(Q.params["params.fscripts"]=String(document.querySelectorAll("script:not([nonce])").length));(new A3(TYX,"sample")).constructor!==A3&&(Q.params["params.fconst"]="true");window.yterr&&typeof window.yterr==="function"&&window.yterr(Q);if(Q.sampleWeight!==0&&!cEH.has(Q.message)){if(c&&_.V("web_enable_error_204"))esW(C===void 0?"ERROR":C,Q);else{C=C===void 0?"ERROR":C;C==="ERROR"?(rEY.publish("handleError",Q),_.V("record_app_crashed_web")&&ivt===0&&Q.sampleWeight===1&&(ivt++,c={appCrashType:"APP_CRASH_TYPE_BREAKPAD"},
_.V("report_client_error_with_app_crash_ks")||(c.systemHealth={crashData:{clientError:{logMessage:{message:Q.message}}}}),_.b2("appCrashed",c)),w9W++):C==="WARNING"&&rEY.publish("handleWarning",Q);if(_.V("kevlar_gel_error_routing")){c=C;r=r===void 0?{}:r;b:{I=_.T(n$m);for(y=I.next();!y.done;y=I.next())if(Gl(y.value.toLowerCase())){I=!0;break b}I=!1}if(I)r=void 0;else{y={stackTrace:Q.stack};Q.fileName&&(y.filename=Q.fileName);I=Q.lineNumber&&Q.lineNumber.split?Q.lineNumber.split(":"):[];I.length!==
0&&(I.length!==1||isNaN(Number(I[0]))?I.length!==2||isNaN(Number(I[0]))||isNaN(Number(I[1]))||(y.lineNumber=Number(I[0]),y.columnNumber=Number(I[1])):y.lineNumber=Number(I[0]));I={level:"ERROR_LEVEL_UNKNOWN",message:Q.message,errorClassName:Q.name,sampleWeight:Q.sampleWeight};c==="ERROR"?I.level="ERROR_LEVEL_ERROR":c==="WARNING"&&(I.level="ERROR_LEVEL_WARNNING");y={isObfuscated:!0,browserStackInfo:y};r.pageUrl=window.location.href;r.kvPairs=[];_.Aq("FEXP_EXPERIMENTS")&&(r.experimentIds=_.Aq("FEXP_EXPERIMENTS"));
k=_.Aq("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS");if(!MNz("web_disable_gel_stp_ecatcher_killswitch")&&k)for(F=_.T(Object.keys(k)),z=F.next();!z.done;z=F.next())z=z.value,r.kvPairs.push({key:z,value:String(k[z])});if(k=Q.params)for(F=_.T(Object.keys(k)),z=F.next();!z.done;z=F.next())z=z.value,r.kvPairs.push({key:"client."+z,value:String(k[z])});k=_.Aq("SERVER_NAME");F=_.Aq("SERVER_VERSION");k&&F&&(r.kvPairs.push({key:"server.name",value:k}),r.kvPairs.push({key:"server.version",value:F}));r={errorMetadata:r,
stackTrace:y,logMessage:I}}r&&(_.b2("clientError",r),(c==="ERROR"||_.V("errors_flush_gel_always_killswitch"))&&_.Yo())}_.V("suppress_error_204_logging")||esW(C,Q)}try{cEH.add(Q.message)}catch(A){}o$I++}}};
esW=function(I,C){var y=C.params||{};I={urlParams:{a:"logerror",t:"jserror",type:C.name,msg:C.message.substr(0,250),line:C.lineNumber,level:I,"client.name":y.name},postParams:{url:_.Aq("PAGE_NAME",window.location.href),file:C.fileName},method:"POST"};y.version&&(I["client.version"]=y.version);if(I.postParams){C.stack&&(I.postParams.stack=C.stack);C=_.T(Object.keys(y));for(var k=C.next();!k.done;k=C.next())k=k.value,I.postParams["client."+k]=y[k];if(y=_.Aq("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"))for(C=
_.T(Object.keys(y)),k=C.next();!k.done;k=C.next())k=k.value,I.postParams[k]=y[k];(y=_.Aq("LAVA_VERSION"))&&(I.postParams["lava.version"]=y);y=_.Aq("SERVER_NAME");C=_.Aq("SERVER_VERSION");y&&C&&(I.postParams["server.name"]=y,I.postParams["server.version"]=C)}_.cN(_.Aq("ECATCHER_REPORT_HOST","")+"/error_204",I)};
_.PUX=function(I,C){C=C===void 0?"ERROR":C;var y=y===void 0?{}:y;var k=_.d5("ytbin.polymer.shared.lib.tampering.info");k&&(k=k())&&(y["params.tamperingInfo"]=k.sort().join(","));_.GB(I,C,void 0,void 0,!0,y)};
_.Ki=function(I){var C=_.wa.apply(1,arguments);I.args||(I.args=[]);Array.isArray(I.args)&&I.args.push.apply(I.args,_.Py(C))};
LdK=function(I){I.level="IGNORED"};
DxY=function(I,C){kpz.push(I);C();kpz.pop()};
vH=function(I,C){for(var y in C)C.hasOwnProperty(y)&&(I=_.gT(I,y,C[y]));return I};
_.p9K=function(I,C,y){y=y===void 0?!1:y;if(!I)return null;if(I.adInfoDialogEndpoint||I.backstageImageUploadEndpoint||I.confirmDialogEndpoint||I.clientActionEndpoint||I.createBackstagePostDialogEndpoint||I.createCommentReplyDialogEndpoint||I.flowEndpoint||I.guideBuilderEndpoint||I.liveChatDialogEndpoint||I.modalEndpoint||I.openPopupAction||I.shareEndpoint||I.shareEntityEndpoint||I.showLiveChatItemEndpoint||I.subscriptionManagerEndpoint||I.unlimitedCreateFamilyEndpoint||I.unlimitedFamilyFlowEndpoint||
I.updateCommentDialogEndpoint||I.updateCommentReplyDialogEndpoint||I.userFeedbackEndpoint||I.videoEditorEndpoint||I.ypcCancelSurveyEndpoint)return C=_.s8("polymer_report_client_url_requested_rate"),!y&&Math.random()<C&&_.SN(new _.ph("urlForEndpoint used on client endpoint",I)),null;var k=_.s8("polymer_report_missing_web_navigation_endpoint_rate");if(I.liveChatEndpoint||I.liveChatReplayEndpoint)k=0;if(!I.commandMetadata&&!I.clickTrackingParams&&Math.random()<k){var F={},z;for(z in I)F[z]="1";_.SN(new _.ph("Missing navigation data",
F))}F="";if(I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url)F=I.commandMetadata.webCommandMetadata.url;else if(I.searchEndpoint)Math.random()<k&&_.SN(new _.ph("Should not manually handle search",I)),F="/results?search_query="+encodeURIComponent(I.searchEndpoint.query).replace(/%20/g,"+"),I.searchEndpoint.params&&(F+="&sp="+I.searchEndpoint.params);else if(I.watchEndpoint)Math.random()<k&&_.SN(new _.ph("Should not manually handle watch",I)),F="/watch?v="+
I.watchEndpoint.videoId,I.watchEndpoint.playlistId&&(F+="&list="+I.watchEndpoint.playlistId),I.watchEndpoint.index&&(F+="&index="+I.watchEndpoint.index),I.watchEndpoint.startTimeSeconds&&(F+="&t="+I.watchEndpoint.startTimeSeconds);else if(I.browseEndpoint)k=I.browseEndpoint.browseId,(z=I.browseEndpoint.canonicalBaseUrl)?F=z:k&&(F=k.substr(0,2),F=F==="FE"?k==="FEwhat_to_watch"?"/":k==="FEmy_videos"?"/my_videos":"/feed/"+k.substr(2):F==="VL"?"/playlist?list="+k.substr(2):"/channel/"+k),F&&I.browseEndpoint.query&&
(F=vH(F+"/search",{query:I.browseEndpoint.query})),F&&I.browseEndpoint.params&&(F=vH(F,{params:I.browseEndpoint.params}));else{if(I.urlEndpoint)return I.urlEndpoint.url;I.signInEndpoint?(F="https://accounts.google.com/ServiceLogin",k={},_.Le.extend(k,C||{},{"continue":window.location.href.split("#")[0],action_handle_signin:!0,passive:!0}),C=k):I.uploadEndpoint?F="//www.youtube.com/upload":I.liveChatEndpoint?(F=I.liveChatEndpoint,k=_.Le.clone(F),_.sw(F.continuation)&&(z=Object.keys(F.continuation)[0],
k.continuation=F.continuation[z].continuation),F=vH("/youtubei/v1/live_chat/get_live_chat",k)):I.liveChatReplayEndpoint?(F=_.Le.clone(I.liveChatReplayEndpoint),F.currentPlayerState&&(_.Le.extend(F,F.currentPlayerState),delete F.currentPlayerState),F=vH("/youtubei/v1/live_chat/get_live_chat_replay",F)):I.liveChatItemContextMenuEndpoint?F=vH("/youtubei/v1/live_chat/get_item_context_menu",I.liveChatItemContextMenuEndpoint):I.liveChatPurchaseMessageEndpoint?F=vH("/youtubei/v1/live_chat/get_live_chat_message_buy_flow",
I.liveChatPurchaseMessageEndpoint):I.openSuperStickerBuyFlowCommand?F=vH("/youtubei/v1/live_chat/get_live_chat_super_sticker_buy_flow",I.openSuperStickerBuyFlowCommand):I.videoEditEndpoint?F=vH("/edit",{video_id:I.videoEditEndpoint.videoId}):I.liveDashboardEndpoint?F=I.liveDashboardEndpoint.videoId?vH("/live_dashboard",{v:I.liveDashboardEndpoint.videoId}):"/live_dashboard":I.signalNavigationEndpoint&&I.signalNavigationEndpoint.signal&&I.signalNavigationEndpoint.signal==="WEBCAM"?F="/webcam":I.getPdgBuyFlowCommand&&
(F=vH(I.getPdgBuyFlowCommand.buyflowApiPath,{params:I.getPdgBuyFlowCommand.params}))}return F||y?vH(F,C||{}):(_.SN(new _.ph("Error: Can't construct url for endpoint","keys:"+Object.keys(I).sort().join(","),I)),null)};
Qjs=function(I){if(I){if(I.browseEndpoint)return!!I.browseEndpoint.nofollow;if(I.watchEndpoint)return!!I.watchEndpoint.nofollow;if(I.urlEndpoint)return!!I.urlEndpoint.nofollow}return!1};
_.V2K=function(I,C){var y=C+I,k=NYz.get(y);if(k)return k;I=C+"-"+I.replace(/([A-Z])/g,"-$1").toLowerCase();NYz.set(y,I);return I};
jjK=function(I){var C=_.fH(I,"action")||_.fH(I,"command")||_.fH(I,"endpoint");if(!C)return null;C=_.V2K(C,"yt");_.l(I,_.WH)&&(C+="-"+_.l(I,_.WH).signal.toLowerCase().replace(/_/g,"-"));return C};
RsK=function(I){try{var C=Object.keys(I)}catch(F){return[]}for(var y=0;y<C.length;y++){var k=C[y];if(l_s.test(k)||X9I.test(k))return $xO(I[k])}return[]};
$xO=function(I){return I.command?[I.command]:I.onExecutionAction?[I.onExecutionAction]:I.onResponseReceivedCommand?[I.onResponseReceivedCommand]:I.updateFlowCommand?[I.updateFlowCommand]:I.clientActions?I.clientActions:I.action?[I.action]:I.actions||I.commands||I.onResponseReceivedActions||I.onResponseReceivedCommands||I.onResponseReceivedEndpoints||[]};
Y5s=function(I,C){C=C===void 0?!1:C;var y=_.N().resolve(_.aU(dT));y||(y=new bvW,_.N().addProvider({provide:dT,useValue:y}));return y&&I&&!_.Le.isEmpty(I)?y.getUrl(I,C):""};
GpI=function(I,C,y){y=y===void 0?"":y;if(C){I.data=C;var k=Y5s(C);k?(pa(I,k),Qjs(C)||!Jq(k)?I.rel="nofollow":I.removeAttribute("rel"),_.l(C,_.xo)&&_.l(C,_.xo).target==="TARGET_NEW_WINDOW"?I.target="_blank":y?I.target=y:I.removeAttribute("target")):(I.removeAttribute("href"),I.removeAttribute("rel"),I.removeAttribute("target"))}};
_.BH=function(I,C){var y=tk;if(VM())f_K(I,function(){var z=_.wa.apply(0,arguments);Y4(y,function(){C.apply(null,_.Py(z))})});
else{var k=_.qU.getInstance(),F=Gu(C);jR(function(){F.value=C});
_.RU(function(){var z={},c=_.mU(k,(z[I]=function(){var r=_.wa.apply(0,arguments);Y4(y,function(){F.value.apply(F,_.Py(r))})},z));
return function(){var r={};_.Zi(k,(r[I]="",r),c)}})}};
_.Es=function(I){return VM()?S5z(I):Kdz(I)};
_.h3=function(I){return VM()?S5z(I):Kdz(I)};
Kdz=function(I){return YS(function(){return S5z(I)})};
S5z=function(I){var C=xUW(function(y){C.value&&C.value===y||(C.__count=C.__count?C.__count+1:1);C.value=y;var k=function(){var F=yM(null);try{return I==null?void 0:I(y)}finally{yM(F)}}();
return function(){k==null||k();C.value=null}});
return C};
AEz=function(I){var C=tk,y=QM;return{getFn:function(){return function(k){C.isDisposed||jX(function(){return TO(function(){return I(k)})},{stack:y})!==!0&&k.stopPropagation()}}}};
WdX=function(I,C){if(VM())g$Y(I,function(k){var F=yM(null);try{C(k)}finally{yM(F)}});
else{var y=Gu(C);jR(function(){y.value=C});
_.RU(function(){var k=I.value;if(k){var F=function(z){y.value(z)};
k.addEventListener("yt-service-request-sent",F,void 0);return function(){k?k.removeEventListener("yt-service-request-sent",F,void 0):v$O(I)}}v$O(I)})}};
v$O=function(I){var C;(C=su.handleError)==null||C.call.apply(C,[su].concat(_.Py(GO(qsI.LOG_NULL_EL_REF_VALUE(),I.__expectedTagName,2))))};
Us=function(I){if(typeof I.children==="function")return I.children(),null;I=_.T(I.children);for(var C=I.next();!C.done;C=I.next())C=C.value,C();return null};
dxz=function(I){var C;return((C=I.prototype)==null?void 0:C.render)===void 0};
xxW=function(I){I=I.items.map(I.children);return I.length>0&&typeof I[0]==="string"?I.join(""):I};
mxW=function(I,C,y){y=y===void 0?!1:y;jX(function(){return q5t(I,C,y)})};
q5t=function(I,C,y){y=((y===void 0?0:y)?ZvO:BYz)(I,function(){HH(C)});
return y===null?I:y};
HH=function(I){if(I!==void 0&&I!==null)if(I instanceof zu)for(var C=Af;ge()!=null&&j0K in ge()&&C.contains(ge());)de();else if(Array.isArray(I))for(C=_.T(I),I=C.next();!I.done;I=C.next())HH(I.value);else if(I instanceof IM||"function"==typeof _.vn&&I instanceof _.vn)tf(I.toString());else if(IU(I)){if(ge()!==I){var y,k;C=(k=(y=QM)==null?void 0:y.name)!=null?k:"unknown";throw Error("dc`"+I.tagName+"`"+C);}de()}else if(I!=null&&I.contentKind===oU||I instanceof Qp)for(C=BIW(I),C=Array.from(C.childNodes),
C=_.T(C),I=C.next();!I.done;I=C.next())Af.appendChild(I.value),de();else if(ui(I)&&(I=I.toString()),y=typeof I,y==="boolean"||y==="number"||y==="string")tf(I);else if(typeof I==="function"){C=Af;var F=ge();F&&(F._isSignalTextNode||F._isSafeOrSanitizedHtmlNode)||iiK(C,F,I);de()}else if(I.type===xxW)HH(I.type(Object.assign({},I.props,{children:I.children[0]})));else{w5.beforeVisit(I);if(typeof I.type==="string"){a:{I.__open||jeK(I.type,I.props.idomKey);F=Af;for(C in I.props)if(I.props[C]!==E$m){var z=
I.props[C];y=Zf;y.push(C);y.push(z)}C=su.attributes;C=C===void 0?t3:C;z=Af;y=K$(z);GDI(z,y,C);r3s(F,I.props,!0);if((I.props.skip||I.props.skipchildren)&&Af.hasChildNodes())qT();else{if(I.type==="style"&&OwH(I.children)===null){qT();C=void 0;break a}HH(I.children)}lvF();I.__open&&(I.__open=!1);WxO(F,I.props);C=F}return C}if(I.type===_.aF)HH(I.children);else if(!hsF(I)){C=I;try{UxW(C)}catch(c){I=c,(z=su.handleError)==null||z.call.apply(z,[su].concat(_.Py(GO(I,(F=C.type)==null?void 0:F.TAG_NAME))))}C.__open&&
(lvF(),C.__open=!1)}}};
Hvt=function(I,C){var y;dxz(I)?y=new P5(C,I):y=new I(C);y.JSC$8140___type=I;y.__updateContext={nextState:y.state,isForced:!1};return y};
UxW=function(I){var C=I.type,y=C.TAG_NAME;if(C===Us)I.props.children=I.children,C(I.props);else{I.children.length>0&&(I.props.children=I.children);var k;(k=I.props).idomKey||(k.idomKey=C);if(y){var F=jeK(y,I.props.idomKey);I.__open=!0;var z=F.__instance}z||(z=Hvt(C,I.props),z.props=null,F&&(F.__instance=z,z.el=F));var c;y=((c=z.__updateContext)!=null?c:{nextState:z.state,isForced:!1}).nextState;z.__updateContext=void 0;C.getDerivedStateFromProps&&(y=C.getDerivedStateFromProps(I.props,y));z.props=
I.props;z.state=y;c=function(){var r=z;w5.beforeRender(r);var w=r.render(r.props);w5.afterRender(r,w);w?(r.props.idomKey&&(w.props.idomKey=r.props.idomKey),r=w):r=void 0;if(w=r)if(w.__open=I.__open,r=HH(w),I.__open=w.__open,!C.TAG_NAME)if(r)C.TAG_NAME=r.tagName.toLowerCase(),r.__instance=z,z.el=r;else{var L;if((L=z.hooks)==null?0:L.length){var D;(D=su.handleError)==null||D.call.apply(D,[su].concat(_.Py(GO(Error("jd")))))}}z.didPatch();w5.didPatch(z)};
(y=z.functionComponent)?mSz({component:y,debugInstance:z.props.debugInstance,fn:c}):c()}};
hsF=function(I){var C=I.type;if(!dxz(C)||C===Us||C.componentType===NT)return!1;I.props.children=I.children.length>1?I.children:I.children[0];var y,k=(y=I.props.idomKey)!=null?y:I.type,F;if(ge()&&((F=ge()[kS])==null?void 0:F.key)===k){var z=ge(),c=z[kS];if(!c)throw Error("cc`"+z.tagName);var r;(r=c.updateSignalsFromIdomProps)==null||r.call(c,I.props);t2O(c);return!0}if(JEI.has(C.name))throw r=C.name,C=(c=(z=QM)==null?void 0:z.name)!=null?c:"unknown",Error("bc`"+r+"`"+C);LUH(I.type,I.props,I.children);
I.props.renderedFromIdom=!0;(r=mSz({component:I.type,debugInstance:I.props.debugInstance,fn:function(){return u9I(I.type,I.props)}}))&&OvW(r);
return!0};
a_W=function(I){for(var C=0;C<uh(I).length;C++)de()};
t2O=function(I){var C=M2Y();if(C)a_W(C);else for(var y=0;y<I.numNodes;y++)(C=M2Y())?a_W(C):de()};
M2Y=function(){var I;return(I=ge()[kS])==null?void 0:I.sourceDynamicRange};
OvW=function(I){I=xym(I);I=Array.isArray(I)?I:[I];I=_.T(I);for(var C=I.next();!C.done;C=I.next())Af.insertBefore(C.value,ge()),de()};
Inm=function(I){var C=TTH(),y=YS(function(){return{value:typeof I==="function"?I():I}});
return[y.value,function(k){if(nH!==null){var F;(F=su.handleError)==null||F.call.apply(F,[su].concat(_.Py(GO(Error("kd")))))}y.value=typeof k==="function"?k(y.value):k;C.__updateContext={nextState:C.state,isForced:!0};k=Jk(C.effectContext);F=MT(!1);try{if(C.el){var z,c={},r=(c.props=C.props,c.type=C.JSC$8140___type,c.children=(z=C.props.children)!=null?z:[],c[Ou]=!0,c);try{mxW(C.el,r,!0)}catch(D){var w,L;(L=su.handleError)==null||L.call.apply(L,[su].concat(_.Py(GO(D,(w=C.JSC$8140___type)==null?void 0:
w.TAG_NAME))))}}}finally{MT(F),Jk(k)}}]};
J3=function(I,C){var y=tk,k=function(F){Y4(y,function(){C(F)})};
window.addEventListener(I,k,void 0);_.$4(function(){window.removeEventListener(I,k,void 0)})};
_.a0=function(I,C){var y=tk;_.RU(function(){var k,F=(k=C.observer)!=null?k:_.N().resolve(Os);if(k=I.value){var z=CkK(k),c=[];C.showOption&&c.push(F.observe(k,function(){Y4(y,function(){C.visibilityCallback(!0)})},C.showOption));
C.hideOption&&c.push(F.observe(k,function(){Y4(y,function(){C.visibilityCallback(!1)})},C.hideOption));
C.prescanOption&&C.prescanCallback&&c.push(F.observe(k,function(){Y4(y,function(){C.prescanCallback()})},C.prescanOption));
var r;z.visibilityMonitorKeys=((r=z.visibilityMonitorKeys)!=null?r:[]).concat(c)}})};
CkK=function(I){var C;return(C=I.polymerController)!=null?C:I};
_.MU=function(I){I.componentType=NT};
kNW=function(I,C){var y=s8H;return _.P(_.aF,null,_.H2(su.enableLazyTsx,function(){return _.P(osX,{id:y,value:I,children:C})},function(){var k=yUI(y,I);
IF(k);k=Jk(k);try{return C()}finally{Jk(k)}}))};
osX=function(I){var C=I.children;I=yUI(I.id,I.value);IF(I);I=Jk(I);try{return _.P(_.aF,null,eR(C()))}finally{Jk(I)}};
yUI=function(I,C){return Object.assign(Object.create(F4I),{id:I,contextValue:C})};
uUz=function(I){var C,y=tk;_.X$(function(){var k=Jk(y),F=MT(!C);try{if(C)mxW(C,I.children(),!0);else if(C=eR(I.children()),!(C instanceof Element))throw Error("ld");}finally{MT(F),Jk(k)}});
return C};
zVz=function(I){var C,y=RF(function(){var k=MT(!0);try{C=uh(I())}finally{MT(k)}},!1);
return[C,y]};
cUI=function(I){I=I.buf.charCodeAt(I.pos++);return ThX[I]};
IR=function(I){var C=0,y=0;do{var k=cUI(I);C|=(k&31)<<y;y+=5}while(k&32);return C<0?C+4294967296:C};
iEm=function(I,C,y){eVI(I,C);I[C][rUK].unshift(y)};
eVI=function(I,C){if(!I[C]||!I[C][rUK]){var y=I[C],k=y?[y]:[];I[C]=function(){for(var F=_.T(k),z=F.next();!z.done;z=F.next())z.value.apply(this,arguments)};
I[C][rUK]=k}};
wPt=function(I){if(!I)return[];var C=[];I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,Array.isArray(y)?C.push.apply(C,_.Py(wPt(y))):C.push(y);return C};
_.so=function(I,C){if(I&&nsI.test(I)||I==="//")return I;if(Pkm===void 0){Pkm=!1;try{var y=new URL("b","http://a");y.pathname="c%20d";Pkm=y.href==="http://a/c%20d"}catch(k){}}C||(C=document.baseURI||window.location.href);if(Pkm)try{return(new URL(I,C)).href}catch(k){return I}C7||(C7=document.implementation.createHTMLDocument("temp"),C7.base=C7.createElement("base"),C7.head.appendChild(C7.base),C7.anchor=C7.createElement("a"),C7.body.appendChild(C7.anchor));C7.base.href=C;C7.anchor.href=I;return C7.anchor.href||
I};
D3t=function(I,C){return I.replace(L4s,function(y,k,F,z){return k+"'"+_.so(F.replace(/["']/g,""),C)+"'"+z})};
pPW=function(I){return I.substring(0,I.lastIndexOf("/")+1)};
VzY=function(){Q8K=!1;for(var I=oR.length,C=0;C<I;C++){var y=oR[C];if(y)try{y()}catch(k){setTimeout(function(){throw k;})}}oR.splice(0,I);
Nht+=I};
_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry=function(I){console.log("["+I.is+"]: registered")};
ln9=function(I){j8z.push(I)};
yz=function(I){return XPX[I]||(XPX[I]=I.indexOf("-")<0?I:I.replace($3K,function(C){return C[1].toUpperCase()}))};
kd=function(I){return XPX[I]||(XPX[I]=I.replace(RVY,"-$1").toLowerCase())};
bEt=function(I,C){var y=C.parentInfo&&bEt(I,C.parentInfo);if(y)for(I=y.firstChild,y=0;I;I=I.nextSibling){if(C.parentIndex===y++)return I}else return I};
YZt=function(I,C){I=I._methodHost||I;return function(y){if(I[C])I[C](y,y.detail);else console.warn("listener method `"+C+"` not defined")}};
F1=function(I){return I.indexOf(".")>=0};
uf=function(I){var C=I.indexOf(".");return C===-1?I:I.slice(0,C)};
GNO=function(I,C){return I.indexOf(C+".")===0};
z2=function(I,C){return C.indexOf(I+".")===0};
T2=function(I,C,y){return C+y.slice(I.length)};
fnW=function(I,C){return I===C||GNO(I,C)||z2(I,C)};
c1=function(I){if(Array.isArray(I)){for(var C=[],y=0;y<I.length;y++)for(var k=I[y].toString().split("."),F=0;F<k.length;F++)C.push(k[F]);return C.join(".")}return I};
SZF=function(I){return Array.isArray(I)?c1(I).split("."):I.toString().split(".")};
es=function(I,C,y){C=SZF(C);for(var k=0;k<C.length;k++){if(!I)return;I=I[C[k]]}y&&(y.path=C.join("."));return I};
K4X=function(I,C,y){var k=SZF(C),F=k[k.length-1];if(k.length>1){for(C=0;C<k.length-1;C++)if(I=I[k[C]],!I)return;I[F]=y}else I[C]=y;return k.join(".")};
AUz=function(I,C,y){var k=I[C];if(!k)k=I[C]={};else if(!I.hasOwnProperty(C)&&(k=I[C]=Object.create(I[C]),y))for(var F in k)for(I=k[F],C=k[F]=Array(I.length),y=0;y<I.length;y++)C[y]=I[y];return k};
n7=function(I,C,y,k,F,z){if(C){var c=!1,r=rX++,w;for(w in y){var L=F?uf(w):w;if(L=C[L])for(var D=0,p=L.length,Q=void 0;D<p&&(Q=L[D]);D++)Q.info&&Q.info.lastRun===r||F&&!gsY(w,Q.trigger)||(Q.info&&(Q.info.lastRun=r),Q.fn(I,w,y,k,Q.info,F,z),c=!0)}return c}return!1};
gsY=function(I,C){if(C){var y=C.name;return y==I||!(!C.structured||!GNO(y,I))||!(!C.wildcard||!z2(y,I))}return!0};
vsW=function(I,C,y,k,F){C=typeof F.method==="string"?I[F.method]:F.method;y=F.property;C?C.call(I,I.__data[y],k[y]):F.dynamicFn||console.warn("observer method `"+F.method+"` not defined")};
W4I=function(I,C,y,k){y={value:y,queueProperty:!0};k&&(y.path=k);(0,_.P1)(I).dispatchEvent(new CustomEvent(C,{detail:y}))};
d3W=function(I,C,y,k,F,z){z=(k=(z?uf(C):C)!=C?C:null)?es(I,k):I.__data[C];k&&z===void 0&&(z=y[C]);W4I(I,F.eventName,z,k)};
x3I=function(I,C,y,k,F){y=I.__data[C];L7&&(y=L7(y,F.attrName,"attribute",I));I._propertyToAttribute(C,F.attrName,y)};
m3F=function(I){var C=I.constructor.__orderedComputedDeps;if(!C){C=new Map;for(var y=I.__computeEffects,k=qZ9(I),F=k.counts,z=k.ready,c=k.total;k=z.shift();)C.set(k,C.size),(k=y[k])&&k.forEach(function(r){r=r.info.methodInfo;--c;--F[r]===0&&z.push(r)});
c!==0&&console.warn("Computed graph for "+I.localName+" incomplete; circular?");I.constructor.__orderedComputedDeps=C}return C};
qZ9=function(I){var C=I.__computeInfo,y={};I=I.__computeEffects;var k=[],F=0,z;for(z in C){var c=C[z];F+=y[z]=c.args.filter(function(w){return!w.literal}).length+(c.dynamicFn?1:0)}for(var r in I)C[r]||k.push(r);
return{counts:y,ready:k,total:F}};
BhO=function(I,C,y,k,F){C=ZEt(I,C,y,k,F);if(C===D7)return!1;F=F.methodInfo;if(I.__dataHasAccessor&&I.__dataHasAccessor[F])return I._setPendingProperty(F,C,!0);I[F]=C;return!1};
U39=function(I,C,y,k,F,z,c){y.bindings=y.bindings||[];k={kind:k,target:F,parts:z,literal:c,isCompound:z.length!==1};y.bindings.push(k);k.target&&k.kind!="attribute"&&k.kind!="text"&&!k.isCompound&&k.parts[0].mode==="{"&&(y=k.parts[0],z=y.negate,k.listenerEvent=y.event||kd(F)+"-changed",k.listenerNegate=z);F=C.nodeInfoList.length;for(y=0;y<k.parts.length;y++){var r=k.parts[y];r.compoundIndex=y;z=I;c=C;var w=k,L=r,D=F;if(!L.literal)if(w.kind==="attribute"&&w.target[0]==="-")console.warn("Cannot set attribute "+
w.target+' because "-" is not a valid attribute starting character');else for(r=L.dependencies,w={index:D,binding:w,part:L,evaluator:z},L=0;L<r.length;L++)D=r[L],typeof D=="string"&&(D=Ess(D),D.wildcard=!0),z._addTemplatePropertyEffect(c,D.rootProperty,{fn:hVm,info:w,trigger:D})}};
hVm=function(I,C,y,k,F,z,c){c=c[F.index];var r=F.binding,w=F.part;z&&w.source&&C.length>w.source.length&&r.kind=="property"&&!r.isCompound&&c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[r.target]?(y=y[C],C=T2(w.source,r.target,C),c._setPendingPropertyOrPath(C,y,!1,!0)&&I._enqueueClient(c)):(C=F.evaluator._evaluateBinding(I,w,C,y,k,z),C!==D7&&(r.isCompound&&(y=c.__dataCompoundStorage[r.target],y[w.compoundIndex]=C,C=y.join("")),r.kind==="attribute"||r.target!=="textContent"&&
(r.target!=="value"||c.localName!=="input"&&c.localName!=="textarea")||(C=C==void 0?"":C),w=C,L7&&(w=L7(w,r.target,r.kind,c)),r.kind=="attribute"?I._valueToNodeAttribute(c,w,r.target):(r=r.target,c.__isPropertyEffectsClient&&c.__dataHasAccessor&&c.__dataHasAccessor[r]?c.__readOnly&&c.__readOnly[r]||c._setPendingProperty(r,w)&&I._enqueueClient(c):I._setUnmanagedPropertyToNode(c,r,w))))};
HEW=function(I,C,y){if(y.listenerEvent){var k=y.parts[0];I.addEventListener(y.listenerEvent,function(F){var z=y.target,c=k.source,r=k.negate,w=F.detail,L=w&&w.path;L?(c=T2(z,c,L),F=w&&w.value):F=F.currentTarget[z];C.__readOnly&&C.__readOnly[c]||!C._setPendingPropertyOrPath(c,r?!F:F,!0,!!L)||w&&w.queueProperty||C._invalidateProperties()})}};
tz9=function(I,C,y,k,F,z){z=C.static||z&&(typeof z!=="object"||z[C.methodName]);F={methodName:C.methodName,args:C.args,methodInfo:F,dynamicFn:z};for(var c=0,r=void 0;c<C.args.length&&(r=C.args[c]);c++)r.literal||I._addPropertyEffect(r.rootProperty,y,{fn:k,info:F,trigger:r});z&&I._addPropertyEffect(C.methodName,y,{fn:k,info:F});return F};
ZEt=function(I,C,y,k,F){k=I._methodHost||I;var z=k[F.methodName];if(z)return I=I._marshalArgs(F.args,C,y),I===D7?D7:z.apply(k,I);F.dynamicFn||console.warn("method `"+F.methodName+"` not defined")};
JUm=function(I){for(var C="",y=0;y<I.length;y++)C+=I[y].literal||"";return C};
MzX=function(I){if(I=I.match(/([^\s]+?)\(([\s\S]*)\)/)){var C={methodName:I[1],static:!0,args:OEH};return I[2].trim()?anz(I[2].replace(/\\,/g,"&comma;").split(","),C):C}return null};
anz=function(I,C){C.args=I.map(function(y){y=Ess(y);y.literal||(C.static=!1);return y},this);
return C};
Ess=function(I){I=I.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");var C={name:I,value:"",literal:!1},y=I[0];y==="-"&&(y=I[1]);y>="0"&&y<="9"&&(y="#");switch(y){case "'":case '"':C.value=I.slice(1,-1);C.literal=!0;break;case "#":C.value=Number(I),C.literal=!0}C.literal||(C.rootProperty=uf(I),C.structured=F1(I),C.structured&&(C.wildcard=I.slice(-2)==".*",C.wildcard&&(C.name=I.slice(0,-2))));return C};
Ium=function(I,C,y){I=es(I,y);I===void 0&&(I=C[y]);return I};
CYX=function(I,C,y,k){k={indexSplices:k};p7&&!I._overrideLegacyUndefined&&(C.splices=k);I.notifyPath(y+".splices",k);I.notifyPath(y+".length",C.length);p7&&!I._overrideLegacyUndefined&&(k.indexSplices=[])};
Qz=function(I,C,y,k,F,z){CYX(I,C,y,[{index:k,addedCount:F,removed:z,object:C,type:"splice"}])};
sYI=function(I){I=D3t((I.body?I.body:I).textContent,I.baseURI);var C=document.createElement("style");C.textContent=I;return C};
y99=function(I){I=I.trim().split(/\s+/);for(var C=[],y=0;y<I.length;y++)C.push.apply(C,_.Py(oA9(I[y])));return C};
oA9=function(I){var C=Ns.import(I);if(!C)return console.warn("Could not find style data in module named",I),[];if(C._styles===void 0){I=[];I.push.apply(I,_.Py(_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C)));var y=C.querySelector("template");y&&I.push.apply(I,_.Py(kUX(y,C.assetpath)));C._styles=I}return C._styles};
kUX=function(I,C){if(!I._styles){for(var y=[],k=I.content.querySelectorAll("style"),F=0;F<k.length;F++){var z=k[F],c=z.getAttribute("include");c&&y.push.apply(y,_.Py(y99(c).filter(function(r,w,L){return L.indexOf(r)===w})));
C&&(z.textContent=D3t(z.textContent,C));y.push(z)}I._styles=y}return I._styles};
FO9=function(I){return(I=Ns.import(I))?_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I):[]};
_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(I){var C=[];I=I.querySelectorAll("link[rel=import][type~=css]");for(var y=0;y<I.length;y++){var k=I[y];if(k.import){var F=k.import;if((k=k.hasAttribute("shady-unscoped"))&&!F._unscopedStyle){var z=sYI(F);z.setAttribute("shady-unscoped","");F._unscopedStyle=z}else F._style||(F._style=sYI(F));C.push(k?F._unscopedStyle:F._style)}}return C};
z4F=function(I){I=I.trim().split(/\s+/);for(var C="",y=0;y<I.length;y++)C+=uiW(I[y]);return C};
uiW=function(I){var C=Ns.import(I);if(C&&C._cssText===void 0){var y=_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(C),k=C.querySelector("template");k&&(y+=TJI(k,C.assetpath));C._cssText=y||null}C||console.warn("Could not find style data in module named",I);return C&&C._cssText||""};
TJI=function(I,C){var y="";I=kUX(I,C);for(C=0;C<I.length;C++){var k=I[C];k.parentNode&&k.parentNode.removeChild(k);y+=k.textContent}return y};
_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather=function(I){var C="";I=_._stylesFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I);for(var y=0;y<I.length;y++)C+=I[y].textContent;return C};
Vz=function(I,C){return{index:I,removed:[],addedCount:C}};
r9Y=function(I,C,y,k){var F=0,z=0,c=0,r=0,w=Math.min(C-F,k-z);if(F==0&&z==0)a:{for(c=0;c<w;c++)if(I[c]!==y[c])break a;c=w}if(C==I.length&&k==y.length){r=I.length;for(var L=y.length,D=0;D<w-c&&c9m(I[--r],y[--L]);)D++;r=D}F+=c;z+=c;C-=r;k-=r;if(C-F==0&&k-z==0)return[];if(F==C){for(C=Vz(F,0);z<k;)C.removed.push(y[z++]);return[C]}if(z==k)return[Vz(F,C-F)];w=F;c=z;k=k-c+1;r=C-w+1;C=Array(k);for(L=0;L<k;L++)C[L]=Array(r),C[L][0]=L;for(L=0;L<r;L++)C[0][L]=L;for(L=1;L<k;L++)for(D=1;D<r;D++)if(I[w+D-1]===
y[c+L-1])C[L][D]=C[L-1][D-1];else{var p=C[L-1][D]+1,Q=C[L][D-1]+1;C[L][D]=p<Q?p:Q}w=C.length-1;c=C[0].length-1;k=C[w][c];for(I=[];w>0||c>0;)w==0?(I.push(2),c--):c==0?(I.push(3),w--):(r=C[w-1][c-1],L=C[w-1][c],D=C[w][c-1],p=L<D?L<r?L:r:D<r?D:r,p==r?(r==k?I.push(0):(I.push(1),k=r),w--,c--):p==L?(I.push(3),w--,k=L):(I.push(2),c--,k=D));I.reverse();C=void 0;w=[];for(c=0;c<I.length;c++)switch(I[c]){case 0:C&&(w.push(C),C=void 0);F++;z++;break;case 1:C||(C=Vz(F,0));C.addedCount++;F++;C.removed.push(y[z]);
z++;break;case 2:C||(C=Vz(F,0));C.addedCount++;F++;break;case 3:C||(C=Vz(F,0)),C.removed.push(y[z]),z++}C&&w.push(C);return w};
iMK=function(I,C){return r9Y(I,I.length,C,C.length)};
c9m=function(I,C){return I===C};
nAK=function(I){if(I instanceof wjm)return I.value;throw Error("Cd`"+I);};
PYI=function(I,C){for(var y in C)y===null?I.style.removeProperty(y):I.style.setProperty(y,C[y])};
LOI=function(I,C){return(I=window.getComputedStyle(I).getPropertyValue(C))?I.trim():""};
NJX=function(I){requestAnimationFrame(function(){DlI?DlI(I):(pjs||(pjs=new Promise(function(C){QYm=C}),document.readyState==="complete"?QYm():document.addEventListener("readystatechange",function(){document.readyState==="complete"&&QYm()})),pjs.then(function(){I&&I()}))})};
lut=function(I){Vj9=I&&I.shimcssproperties?!1:jYt||!(navigator.userAgent.match(/AppleWebKit\/601|Edge\/15/)||!window.CSS||!CSS.supports||!CSS.supports("box-shadow","0 0 0 var(--foo)"))};
YGz=function(I){if(!(XjK.indexOf(I)>-1)&&I!=="touchend"&&$lW&&R4z&&bMH)return{passive:!0}};
KOs=function(I){for(var C=GUt?["click"]:XjK,y=0,k;y<C.length;y++)k=C[y],I?(fuz.length=0,document.addEventListener(k,SGt,!0)):document.removeEventListener(k,SGt,!0)};
js=function(I){var C=I.type;return XjK.indexOf(C)>-1?C==="mousemove"?(C=I.buttons===void 0?1:I.buttons,I instanceof window.MouseEvent&&!A9Y&&(C=gAz[I.which]||0),!!(C&1)):(I.button===void 0?0:I.button)===0:!1};
vAW=function(I){if(I.type==="click"){if(I.detail===0)return!0;var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);if(!C.nodeType||C.nodeType!==Node.ELEMENT_NODE)return!0;C=C.getBoundingClientRect();var y=I.pageX;I=I.pageY;return!(y>=C.left&&y<=C.right&&I>=C.top&&I<=C.bottom)}return!1};
WOm=function(I,C,y){I.movefn=C;I.upfn=y;document.addEventListener("mousemove",C);document.addEventListener("mouseup",y)};
lf=function(I){document.removeEventListener("mousemove",I.movefn);document.removeEventListener("mouseup",I.upfn);I.movefn=null;I.upfn=null};
dls=function(I,C){for(var y=document.elementFromPoint(I,C),k=y;k&&k.shadowRoot&&!window.ShadyDOM;){var F=k;k=k.shadowRoot.elementFromPoint(I,C);if(F===k)break;k&&(y=k)}return y};
_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var C=xlm(I);return C.length>0?C[0]:I.target};
_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var C=I.type,y=I.currentTarget.__polymerGestures;if(y&&(y=y[C])){if(!I.__polymerGesturesHandled&&(I.__polymerGesturesHandled={},C.slice(0,5)==="touch")){var k=I.changedTouches[0];C==="touchstart"&&I.touches.length===1&&(qGI=k.identifier);if(qGI!==k.identifier)return;$lW||(C==="touchstart"||C==="touchmove")&&_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)}k=
I.__polymerGesturesHandled;if(!k.skip){for(var F=0,z;F<X1.length;F++)z=X1[F],y[z.name]&&!k[z.name]&&z.flow&&z.flow.start.indexOf(I.type)>-1&&z.reset&&z.reset();for(F=0;F<X1.length;F++)z=X1[F],y[z.name]&&!k[z.name]&&(k[z.name]=!0,z[C](I))}}};
_._handleTouchAction$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){var C=I.changedTouches[0],y=I.type;if(y==="touchstart")mlz=C.clientX,ZMW=C.clientY,BJ9=!1;else if(y==="touchmove"&&!BJ9){BJ9=!0;y="auto";for(var k=xlm(I),F=0,z;F<k.length;F++)if(z=k[F],z.__polymerGesturesTouchAction){y=z.__polymerGesturesTouchAction;break}k=!1;F=Math.abs(mlz-C.clientX);C=Math.abs(ZMW-C.clientY);I.cancelable&&(y==="none"?k=!0:y==="pan-x"?k=C>F:y==="pan-y"&&(k=F>C));k?I.preventDefault():
$d("track")}};
bf=function(I,C,y){return RR[C]?(_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I,C,y),!0):!1};
Yd=function(I,C,y){return RR[C]?(_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I,C,y),!0):!1};
_._add$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,C,y){var k=RR[C],F=k.deps,z=k.name,c=I.__polymerGestures;c||(I.__polymerGestures=c={});for(var r=0,w,L;r<F.length;r++)w=F[r],GUt&&XjK.indexOf(w)>-1&&w!=="click"||((L=c[w])||(c[w]=L={_count:0}),L._count===0&&I.addEventListener(w,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,YGz(w)),L[z]=(L[z]||0)+1,L._count=(L._count||0)+1);I.addEventListener(C,y);k.touchAction&&_.G2(I,k.touchAction)};
_._remove$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,C,y){var k=RR[C],F=k.deps;k=k.name;var z=I.__polymerGestures;if(z)for(var c=0,r,w;c<F.length;c++)r=F[c],(w=z[r])&&w[k]&&(w[k]=(w[k]||1)-1,w._count=(w._count||1)-1,w._count===0&&I.removeEventListener(r,_._handleNative$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,YGz(r)));I.removeEventListener(C,y)};
EAm=function(I){X1.push(I);for(var C=0;C<I.emits.length;C++)RR[I.emits[C]]=I};
_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I){for(var C=0,y;C<X1.length;C++){y=X1[C];for(var k=0,F;k<y.emits.length;k++)if(F=y.emits[k],F===I)return y}return null};
_.G2=function(I,C){$lW&&I instanceof HTMLElement&&f7.run(function(){I.style.touchAction=C});
I.__polymerGesturesTouchAction=C};
_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures=function(I,C,y){C=new Event(C,{bubbles:!0,cancelable:!0,composed:!0});C.detail=y;(0,_.P1)(I).dispatchEvent(C);C.defaultPrevented&&(I=y.preventer||y.sourceEvent)&&I.preventDefault&&I.preventDefault()};
$d=function(I){I=_._findRecognizerByEvent$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I.info&&(I.info.prevent=!0)};
Ss=function(I,C,y,k){C&&_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,I,{x:y.clientX,y:y.clientY,sourceEvent:y,preventer:k,prevent:function(F){return $d(F)}})};
h4W=function(I,C,y){if(I.prevent)return!1;if(I.started)return!0;y=Math.abs(I.y-y);return Math.abs(I.x-C)>=5||y>=5};
Ulm=function(I,C,y){if(C){var k=I.moves[I.moves.length-2],F=I.moves[I.moves.length-1],z=F.x-I.x,c=F.y-I.y,r=0;if(k){var w=F.x-k.x;r=F.y-k.y}_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(C,"track",{state:I.state,x:y.clientX,y:y.clientY,dx:z,dy:c,ddx:w,ddy:r,sourceEvent:y,hover:function(){return dls(y.clientX,y.clientY)}})}};
tjI=function(I,C,y){var k=Math.abs(C.clientX-I.x),F=Math.abs(C.clientY-I.y),z=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(y||C);!z||HM9[z.localName]&&z.hasAttribute("disabled")||!(isNaN(k)||isNaN(F)||k<=25&&F<=25||vAW(C))||I.prevent||_._fire$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(z,"tap",{x:C.clientX,y:C.clientY,sourceEvent:C,preventer:y})};
J9I=function(I,C,y,k,F){var z;F&&(z=typeof y==="object"&&y!==null)&&(k=I.__dataTemp[C]);k=k!==y&&(k===k||y===y);z&&k&&(I.__dataTemp[C]=y);return k};
auI=function(){if(K7&&!An){if(!OMW){OMW=!0;var I=document.createElement("style");I.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(I)}return!0}return!1};
IZI=function(){return Mjs};
Csm=function(I,C){Mjs=I;Object.setPrototypeOf(I,C.prototype);new C;Mjs=null};
scW=function(I,C){for(var y=0;y<C.length;y++){var k=C[y];if(!!I!=!!k.__hideTemplateChildren__)if(k.nodeType===Node.TEXT_NODE)I?(k.__polymerTextContent__=k.textContent,k.textContent=""):k.textContent=k.__polymerTextContent__;else if(k.localName==="slot")if(I)k.__polymerReplaced__=document.createComment("hidden-slot"),(0,_.P1)((0,_.P1)(k).parentNode).replaceChild(k.__polymerReplaced__,k);else{var F=k.__polymerReplaced__;F&&(0,_.P1)((0,_.P1)(F).parentNode).replaceChild(k,F)}else k.style&&(I?(k.__polymerDisplay__=
k.style.display,k.style.display="none"):k.style.display=k.__polymerDisplay__);k.__hideTemplateChildren__=I;k._showHideChildren&&k._showHideChildren(I)}};
oXO=function(I){return(I=I.__dataHost)&&I._methodHost||I};
F2s=function(I,C,y){var k=y.mutableData?yaW:gX;v1.mixin&&(k=v1.mixin(k));var F=function(){return k.apply(this,arguments)||this};
_.R(F,k);F.prototype.__templatizeOptions=y;F.prototype._bindTemplate(I);kxO(F,I,C,y);return F};
e99=function(I,C,y,k){var F=y.forwardHostProp;if(F&&C.hasHostProps){var z=I.localName=="template",c=C.templatizeTemplateClass;if(!c){if(z){var r=y.mutableData?uS9:z9O;c=function(){return r.apply(this,arguments)||this};
_.R(c,r);c=C.templatizeTemplateClass=c}else{var w=I.constructor;c=function(){return w.apply(this,arguments)||this};
_.R(c,w);c=C.templatizeTemplateClass=c}var L=C.hostProps,D;for(D in L)c.prototype._addPropertyEffect("_host_"+D,c.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:TlX(F)}),c.prototype._createNotifyingProperty("_host_"+D);W1&&k&&ca9(C,y,k)}I.__dataProto&&Object.assign(I.__data,I.__dataProto);if(z)Csm(I,c),I.__dataTemp={},I.__dataPending=null,I.__dataOld=null,I._enableProperties();else{Object.setPrototypeOf(I,c.prototype);C=C.hostProps;for(var p in C)p="_host_"+p,p in I&&(C=I[p],delete I[p],I.__data[p]=
C)}}};
TlX=function(I){return function(C,y,k){I.call(C.__templatizeOwner,y.substring(6),k[y])}};
kxO=function(I,C,y,k){var F=y.hostProps||{},z;for(z in k.instanceProps){delete F[z];var c=k.notifyInstanceProp;c&&I.prototype._addPropertyEffect(z,I.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:raI(c)})}if(k.forwardHostProp&&C.__dataHost)for(var r in F)y.hasHostProps||(y.hasHostProps=!0),I.prototype._addPropertyEffect(r,I.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:inF()})};
raI=function(I){return function(C,y,k){I.call(C.__templatizeOwner,C,y,k[y])}};
inF=function(){return function(I,C,y){I.__dataHost._setPendingPropertyOrPath("_host_"+C,y[C],!0,!0)}};
v1=function(I,C,y){if(dX&&!oXO(I))throw Error("Id");y=y||{};if(I.__templatizeOwner)throw Error("Jd");I.__templatizeOwner=C;var k=(C?C.constructor:gX)._parseTemplate(I),F=k.templatizeInstanceClass;F||(F=F2s(I,k,y),k.templatizeInstanceClass=F);var z=oXO(I);e99(I,k,y,z);y=function(){return F.apply(this,arguments)||this};
_.R(y,F);y.prototype._methodHost=z;y.prototype.__dataHost=I;y.prototype.__templatizeOwner=C;y.prototype.__hostProps=k.hostProps;return y};
ca9=function(I,C,y){y=y.constructor._properties;I=I.propertyEffects;C=C.instanceProps;for(var k in I)if(!(y[k]||C&&C[k]))for(var F=I[k],z=0;z<F.length;z++){var c=F[z].info.part;if(!c.signature||!c.signature.static){console.warn("Property '"+k+"' used in template but not declared in 'properties'; attribute will not be observed.");break}}};
wpt=function(I,C){for(var y;C;)if(y=C.__dataHost?C:C.__templatizeInstance)if(y.__dataHost!=I)C=y.__dataHost;else return y;else C=(0,_.P1)(C).parentNode;return null};
xd=function(I){return I.localName==="slot"};
nXm=function(){for(var I=qs.prototype,C="cloneNode appendChild insertBefore removeChild replaceChild setAttribute removeAttribute querySelector querySelectorAll attachShadow".split(" "),y={},k=0;k<C.length;y={method$jscomp$32:void 0},k++)y.method$jscomp$32=C[k],I[y.method$jscomp$32]=function(F){return function(){return this.node[F.method$jscomp$32].apply(this.node,arguments)}}(y)};
Psm=function(I,C){for(var y={},k=0;k<C.length;y={name$jscomp$378:void 0},k++)y.name$jscomp$378=C[k],Object.defineProperty(I,y.name$jscomp$378,{get:function(F){return function(){return this.node[F.name$jscomp$378]}}(y),
configurable:!0})};
L2m=function(){for(var I=qs.prototype,C=["textContent","innerHTML","className"],y={},k=0;k<C.length;y={name$jscomp$379:void 0},k++)y.name$jscomp$379=C[k],Object.defineProperty(I,y.name$jscomp$379,{get:function(F){return function(){return this.node[F.name$jscomp$379]}}(y),
set:function(F){return function(z){this.node[F.name$jscomp$379]=z}}(y),
configurable:!0})};
DEK=function(){mo=document.documentElement.getAttribute("dir");mo=document.documentElement.getAttribute("dir");for(var I=0;I<Z7.length;I++){var C=Z7[I];C.__autoDirOptOut||C.setAttribute("dir",mo)}};
VLm=function(){B1=!0;requestAnimationFrame(function(){B1=!1;ppY(QcI);setTimeout(function(){for(var I=0,C=Eo.length;I<C;I++)NlO(Eo.shift())})})};
ppY=function(I){for(;I.length;)NlO(I.shift())};
NlO=function(I){var C=I[0],y=I[1];I=I[2];try{y.apply(C,I)}catch(k){setTimeout(function(){throw k;})}};
_.jcX=function(I,C,y){B1||VLm();QcI.push([I,C,y])};
_.hn=function(I,C,y){B1||VLm();Eo.push([I,C,y])};
$E9=function(I,C){C=C===void 0?!1:C;if(!lZX||!XpO||!lZX.handlesDynamicScoping)return null;var y=XpO.ScopingShim;if(!y)return null;var k=y.scopeForNode(I),F=(0,_.P1)(I).getRootNode(),z=function(c){if((0,_.P1)(c).getRootNode()===F){var r=Array.from(lZX.nativeMethods.querySelectorAll.call(c,"*"));r.push(c);for(c=0;c<r.length;c++){var w=r[c];if((0,_.P1)(w).getRootNode()===F){var L=y.currentScopeForNode(w);L!==k&&(L!==""&&y.unscopeNode(w,L),y.scopeNode(w,k))}}}};
z(I);return C?(C=new MutationObserver(function(c){for(var r=0;r<c.length;r++)for(var w=c[r],L=0;L<w.addedNodes.length;L++){var D=w.addedNodes[L];D.nodeType===Node.ELEMENT_NODE&&z(D)}}),C.observe(I,{childList:!0,
subtree:!0}),C):null};
R99=function(){document.body.removeAttribute("unresolved")};
SdH=function(I){var C=I=I.replace(bnz,"").replace(YdF,""),y=new Gx9;y.start=0;y.end=C.length;for(var k=y,F=0,z=C.length;F<z;F++)if(C[F]==="{"){k.rules||(k.rules=[]);var c=k,r=c.rules[c.rules.length-1]||null;k=new Gx9;k.start=F+1;k.parent=c;k.previous=r;c.rules.push(k)}else C[F]==="}"&&(k.end=F+1,k=k.parent||y);return fZI(y,I)};
fZI=function(I,C){var y=C.substring(I.start,I.end-1);I.parsedCssText=I.cssText=y.trim();I.parent&&(y=C.substring(I.previous?I.previous.end:I.parent.start,I.start-1),y=_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(y),y=y.replace(K2I," "),y=y.substring(y.lastIndexOf(";")+1),y=I.parsedSelector=I.selector=y.trim(),I.atRule=y.indexOf("@")===0,I.atRule?y.indexOf("@media")===0?I.type=4:y.match(Aaz)&&(I.type=7,I.keyframesName=I.selector.split(K2I).pop()):y.indexOf("--")===
0?I.type=1E3:I.type=1);if(y=I.rules)for(var k=0,F=y.length,z=void 0;k<F&&(z=y[k]);k++)fZI(z,C);return I};
_._expandUnicodeEscapes$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(I){return I.replace(/\\([0-9a-f]{1,6})\s/gi,function(){for(var C=arguments[1],y=6-C.length;y--;)C="0"+C;return"\\"+C})};
gXI=function(I,C,y){y=y===void 0?"":y;var k="";if(I.cssText||I.rules){var F=I.rules;if(F&&!_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse(F))for(var z=0,c=F.length,r=void 0;z<c&&(r=F[z]);z++)k=gXI(r,C,k);else C?C=I.cssText:(C=I.cssText,C=C.replace(vXW,"").replace(W2F,""),C=C.replace(dEz,"").replace(xEF,"")),(k=C.trim())&&(k="  "+k+"\n")}k&&(I.selector&&(y+=I.selector+" {\n"),y+=k,I.selector&&(y+="}\n\n"));return y};
_._hasMixinRules$$module$third_party$javascript$polymer$v2$shadycss$src$css_parse=function(I){I=I[0];return!!I&&!!I.selector&&I.selector.indexOf("--")===0};
mEF=function(I){if(I=qdm[I])I._applyShimCurrentVersion=I._applyShimCurrentVersion||0,I._applyShimValidatingVersion=I._applyShimValidatingVersion||0,I._applyShimNextVersion=(I._applyShimNextVersion||0)+1};
Znz=function(I){return I._applyShimCurrentVersion===I._applyShimNextVersion};
EXO=function(I){I._applyShimValidatingVersion=I._applyShimNextVersion;I._validating||(I._validating=!0,Blt.then(function(){I._applyShimCurrentVersion=I._applyShimNextVersion;I._validating=!1}))};
UEF=function(I){if(!I)return"";typeof I==="string"&&(I=SdH(I));return gXI(I,h9z)};
HnH=function(I){!I.__cssRules&&I.textContent&&(I.__cssRules=SdH(I.textContent));return I.__cssRules||null};
JaX=function(I,C,y,k){if(I){var F=!1,z=I.type;if(k&&z===4){var c=I.selector.match(tLK);c&&(window.matchMedia(c[1]).matches||(F=!0))}z===1?C(I):y&&z===7?y(I):z===1E3&&(F=!0);if((I=I.rules)&&!F)for(F=0,z=I.length,c=void 0;F<z&&(c=I[F]);F++)JaX(c,C,y,k)}};
On9=function(I,C){var y=I.indexOf("var(");if(y===-1)return C(I,"","","");a:{var k=0;var F=y+3;for(var z=I.length;F<z;F++)if(I[F]==="(")k++;else if(I[F]===")"&&--k===0)break a;F=-1}k=I.substring(y+4,F);y=I.substring(0,y);I=On9(I.substring(F+1),C);z=k.indexOf(",");if(z===-1)return C(y,k.trim(),"",I);F=k.substring(0,z).trim();k=k.substring(z+1).trim();return C(y,F,k,I)};
aZK=function(I){if(Uo!==void 0)return Uo;if(I.__cssBuild===void 0){var C=I.getAttribute("css-build");if(C)I.__cssBuild=C;else{a:{C=I.localName==="template"?I.content.firstChild:I.firstChild;if(C instanceof Comment&&(C=C.textContent.trim().split(":"),C[0]==="css-build")){C=C[1];break a}C=""}if(C!==""){var y=I.localName==="template"?I.content.firstChild:I.firstChild;y.parentNode.removeChild(y)}I.__cssBuild=C}}return I.__cssBuild||""};
IHX=function(I,C,y,k){for(var F=C._noAccessors,z=Object.getOwnPropertyNames(C),c=0;c<z.length;c++){var r=z[c];if(!(r in k))if(F)I[r]=C[r];else{var w=Object.getOwnPropertyDescriptor(C,r);w&&(w.configurable=!0,Object.defineProperty(I,r,w))}}for(var L in MLI)C[L]&&(y[L]=y[L]||[],y[L].push(C[L]))};
Czs=function(I,C,y){C=C||[];for(var k=I.length-1;k>=0;k--){var F=I[k];F?Array.isArray(F)?Czs(F,C):C.indexOf(F)<0&&(!y||y.indexOf(F)<0)&&C.unshift(F):console.warn("behavior is null, check for missing or 404 import")}return C};
s7H=function(I,C){for(var y in C){var k=I[y],F=C[y];I[y]=!("value"in F)&&k&&"value"in k?Object.assign({value:k.value},F):F}};
kb9=function(I,C,y){var k={},F=function(){return C.apply(this,arguments)||this};
_.R(F,C);F._finalizeClass=function(){if(this.hasOwnProperty("generatedFrom")){if(c)for(var w=0,L;w<c.length;w++)L=c[w],L.properties&&this.createProperties(L.properties),L.observers&&this.createObservers(L.observers,L.properties);I.properties&&this.createProperties(I.properties);I.observers&&this.createObservers(I.observers,I.properties);this._prepareTemplate()}else C._finalizeClass.call(this)};
F.prototype.created=function(){C.prototype.created.call(this);var w=k.created;if(w)for(var L=0;L<w.length;L++)w[L].call(this)};
F.prototype._registered=function(){var w=F.prototype;if(!w.hasOwnProperty("__hasRegisterFinished")){w.__hasRegisterFinished=!0;C.prototype._registered.call(this);K7&&r(w);w=Object.getPrototypeOf(this);var L=k.beforeRegister;if(L)for(var D=0;D<L.length;D++)L[D].call(w);if(L=k.registered)for(D=0;D<L.length;D++)L[D].call(w)}};
F.prototype._applyListeners=function(){C.prototype._applyListeners.call(this);var w=k.listeners;if(w)for(var L=0;L<w.length;L++){var D=w[L];if(D)for(var p in D)this._addMethodEventListenerToNode(this,p,D[p])}};
F.prototype._ensureAttributes=function(){var w=k.hostAttributes;if(w)for(var L=w.length-1;L>=0;L--){var D=w[L],p;for(p in D)this._ensureAttribute(p,D[p])}C.prototype._ensureAttributes.call(this)};
F.prototype.ready=function(){C.prototype.ready.call(this);var w=k.ready;if(w)for(var L=0;L<w.length;L++)w[L].call(this)};
F.prototype.attached=function(){C.prototype.attached.call(this);var w=k.attached;if(w)for(var L=0;L<w.length;L++)w[L].call(this)};
F.prototype.detached=function(){C.prototype.detached.call(this);var w=k.detached;if(w)for(var L=0;L<w.length;L++)w[L].call(this)};
F.prototype.attributeChanged=function(w,L,D){C.prototype.attributeChanged.call(this);var p=k.attributeChanged;if(p)for(var Q=0;Q<p.length;Q++)p[Q].call(this,w,L,D)};
_.H1.Object.defineProperties(F,{properties:{configurable:!0,enumerable:!0,get:function(){var w={};if(c)for(var L=0;L<c.length;L++)s7H(w,c[L].properties);s7H(w,I.properties);return w}},
observers:{configurable:!0,enumerable:!0,get:function(){var w=[];if(c)for(var L=0,D;L<c.length;L++)D=c[L],D.observers&&(w=w.concat(D.observers));I.observers&&(w=w.concat(I.observers));return w}}});
if(y){Array.isArray(y)||(y=[y]);var z=C.prototype.behaviors;var c=Czs(y,null,z);F.prototype.behaviors=z?z.concat(y):c}var r=function(w){if(c)for(var L=c,D=0;D<L.length;D++)IHX(w,L[D],k,oHs);IHX(w,I,k,yuX)};
K7||r(F.prototype);F.generatedFrom=I;return F};
TAt=function(I){var C=typeof I!=="string"?I:{is:I,notifyObserversOnUndefined:!0};C.fastInit===void 0&&(C.fastInit=!0);return function(y){if(!C.disableInheritanceCheck&&Object.getPrototypeOf(y.prototype).constructor!==_.tn)throw Error("Nd");var k=y.prototype;k.is=C.is;iEm(k,"created",function(){this.hostElement=this;this.polymerController=this});
FeK(k,y,C.fastInit);C.notifyObserversOnUndefined&&(k._overrideLegacyUndefined=!0);if(uvm)for(var F=_.T(Object.getOwnPropertyNames(k)),z=F.next();!z.done;z=F.next()){z=z.value;var c=Object.getOwnPropertyDescriptor(k,z);c.enumerable===!1&&(c.enumerable=!0,Object.defineProperty(k,z,c))}if("template"in y)var r=function(){return y.template};
else C.template!==void 0&&(r=C.template);if(r!==void 0){var w;Object.defineProperty(k,"_template",{get:function(){w===void 0&&(w=r());return w},
set:function(L){w=L},
configurable:!0,enumerable:!0})}Polymer(k);y[zFX]=k}};
cuK=function(I){I=I===void 0?{}:I;I.fastInit===void 0&&(I.fastInit=!0);return function(C){if(!I.disableInheritanceCheck&&Object.getPrototypeOf(C.prototype).constructor!==Jn)throw Error("Od");FeK(C.prototype,C,I.fastInit)}};
FeK=function(I,C,y){y=y===void 0?!1:y;eFI(C);y?iEm(I,"created",function(){this.disableEnforceFastDefaultValuesCheck||ruz(C,this)}):iEm(I,"ready",function(){for(var k={},F=_.T(wPt(this.behaviors)),z=F.next();!z.done;z=F.next())z=z.value,z.properties&&Object.assign(k,iI9(this,z.properties));
Object.assign(k,iI9(this,this.properties));ruz(C,this);F=_.T(Object.keys(k));for(z=F.next();!z.done;z=F.next())z=z.value,this[z]=k[z]})};
ruz=function(I,C){if(uvm){I=new I;for(var y=_.T(Object.getOwnPropertyNames(I)),k=y.next();!k.done;k=y.next())k=k.value,C[k]=I[k];for(y=C;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){k=_.T(Object.getOwnPropertyNames(y));for(var F=k.next();!F.done;F=k.next())F=F.value,I.hasOwnProperty(F)||Object.defineProperty(I,F,wJK(C,F))}}else I.apply(C)};
wJK=function(I,C){return{get:function(){var y=I[C];return y instanceof Function?y.bind(I):y},
set:function(y){I[C]=y}}};
iI9=function(I,C){if(!C)return{};for(var y={},k=_.T(Object.keys(C)),F=k.next();!F.done;F=k.next())if(F=F.value,!C[F].readOnly){var z=I[F];z!==void 0&&(y[F]=z)}return y};
eFI=function(I){var C=new I;I=I.prototype.properties||{};for(var y=_.T(Object.keys(I)),k=y.next();!k.done;k=y.next())if(k=k.value,C.hasOwnProperty(k)){var F=I[k];typeof F==="function"&&(I[k]=F={type:F});C[k]!=null&&F.type===Object&&(F.type=nHK(C[k].constructor))}};
nHK=function(I){for(var C=_.T(PzY),y=C.next();!y.done;y=C.next())if(y=y.value,I===y)return y;return Object};
LeI=function(I){return function(C,y){C.behaviors=C.behaviors||[];C.behaviors.push(I||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?Reflect.getMetadata("design:type",C,y).prototype:void 0));Object.defineProperty(C,y,{get:function(){return this},
enumerable:!0,configurable:!0})}};
DdY=function(I){I=I===void 0?{}:I;return function(C,y){C.properties=C.properties||{};I.type||(window.Reflect!==void 0&&window.Reflect.getMetadata!==void 0?I.type=nHK(Reflect.getMetadata("design:type",C,y)):I.type=String);var k=I,F=C.properties[y];C.properties[y]=F?Object.assign({},F,k):k}};
pJI=function(I){return function(C,y){C.listeners=C.listeners||{};C.listeners[I]=y}};
Q7z=function(){var I=_.wa.apply(0,arguments);if(I.length===0)throw Error("Pd");return function(C,y){C.observers=C.observers||[];C.observers.push(y+"("+I.join(",")+")")}};
NAz=function(){var I=_.wa.apply(0,arguments);return function(C,y,k){var F=Object.getOwnPropertyDescriptor(C,y).get,z="__compute__"+y;Object.defineProperty(C,z,{value:F,enumerable:!0});C.properties=C.properties||{};F=C.properties[y];F||(F={},C.properties[y]=F);F.computed=z+"("+I.join(",")+")";k.get=void 0}};
_.Oo=function(I,C,y){_.LL.call(this);this.JSC$9095_id_=null;this.usingListeners_=!1;this.JSC$9095_listener_=I;this.handler_=y;this.JSC$9095_win_=C||window;this.callback_=(0,_.DD)(this.JSC$9097_doAction_,this)};
aR=function(I){this.range_=I};
Ms=function(I){this.range_=I};
sh=function(I,C,y){_.LL.call(this);this.constrainScroll_=!1;this.horizontalScrolling_=!0;this.containerNode_=I;this.scrollTimer_=new _.IC(50);this.JSC$9174_eventHandler_=new _.Cq(this);this.scrollDelta_=new _.Q6;this.containerIsActuallyContent_=I.tagName==="BODY"||I.tagName==="HTML";this.containerBounds_=Vtz(I);this.containerIsActuallyContent_&&(I=_.kF(),this.containerBounds_.height=I.height,this.containerBounds_.width=I.width);this.margin_=C||0;if(C){if(C=this.containerBounds_.clone(),I=this.margin_){var k=
Math.min(I,C.height*.25);C.top+=k;C.height-=2*k;I=Math.min(I,C.width*.25);C.left+=I;C.width-=2*I}}else C=this.containerBounds_;this.scrollBounds_=C;y||this.JSC$9174_eventHandler_.listen(_.V6(this.containerNode_),"mousemove",this.JSC$9176_onMouseMove);this.JSC$9174_eventHandler_.listen(this.scrollTimer_,"tick",this.JSC$9176_onTick_)};
_.oC=function(I){this.mechanism=I};
Fd=function(I,C){this.JSC$9272_key_=I;this.JSC$9272_value_=C};
lHO=function(I){if(I>=55296&&I<=57343||I>1114111)return"\ufffd";I in j7W&&(I=j7W[I]);var C="";I>65535&&(I-=65536,C+=String.fromCharCode(I>>>10&1023|55296),I=56320|I&1023);return C+=String.fromCharCode(I)};
XJX=function(I,C){return I<C?1:-1};
RFm=function(){return function(I){return I.charAt(1)==="#"?I.charAt(2)==="X"||I.charAt(2)==="x"?lHO(parseInt(I.substr(3),16)):lHO(parseInt(I.substr(2),10)):$dz[I.slice(1,-1)]}};
GbX=function(I){return I.slice(1,I.length-1).trim().replace(bII,function(C){return Ynm[C]||" "})};
uG=function(I){return I===32||I===9};
z5=function(I,C){return C<I.length?I.charCodeAt(C):-1};
fHI=function(I){for(;I;){if(I._lastLineBlank)return!0;var C=I.type;if(C==="list"||C==="item")I=I._lastChild;else break}return!1};
T5=function(I){if(SnW.test(I)){var C=1,y=0,k=0;for(I[y]=="|"&&y++;y<I.length;){switch(I[y]){case "|":k=1;break;case " ":break;case "\t":break;default:k&&(k=0,C++)}y++}return Kem.test(I)?-C:C}return 0};
AuY=function(I){return I=="table"||I=="row"||I=="cell"};
gH9=function(){return new c$("document",[[1,1],[0,0]])};
vHI=function(){};
ei=function(){var I={safe:!1};I=I||{};I.softbreak=I.softbreak||"\n";this.disableTags=0;this.lastOut="\n";this.options=I};
mdF=function(I,C){var y="";if(I)if(I=I.toLowerCase(),I===" "||Wet.test(I))y="space";else if(ddY.test(I))y="esc";else if(I.length==1){if(!C||xdO.test(I))y=I}else y=qnX.test(I)?I.replace("arrow",""):I=="multiply"?"*":I;return y};
hFW=function(I,C){var y=I.hasModifiers;if(C.key)y=mdF(C.key,y);else if(C.detail&&C.detail.key)y=mdF(C.detail.key,y);else{y=C.keyIdentifier;var k="";y&&(y in ZIs?k=ZIs[y]:BAI.test(y)?(y=parseInt(y.replace("U+","0x"),16),k=String.fromCharCode(y).toLowerCase()):k=y.toLowerCase());(y=k)||(y=C.keyCode,k="",Number(y)&&(y>=65&&y<=90?k=String.fromCharCode(32+y):y>=112&&y<=123?k="f"+(y-112+1):y>=48&&y<=57?k=String(y-48):y>=96&&y<=105?k=String(y-96):k=EHO[y]),y=k);y=y||""}return y===I.key&&(!I.hasModifiers||
!!C.shiftKey===!!I.shiftKey&&!!C.ctrlKey===!!I.ctrlKey&&!!C.altKey===!!I.altKey&&!!C.metaKey===!!I.metaKey)};
HIY=function(I){return I.length===1?{combo:I,key:I,event:"keydown"}:I.split("+").reduce(function(C,y){var k=y.split(":");y=k[0];k=k[1];y in Udm?(C[Udm[y]]=!0,C.hasModifiers=!0):(C.key=y,C.event=k||"keydown");return C},{combo:I.split(":").shift()})};
ttF=function(I){return I.trim().split(" ").map(function(C){return HIY(C)})};
JuK=function(I,C){if(I&&I.fn){var y=I.fn;I.fn=function(){try{y.apply(this,arguments)}catch(k){if(k instanceof r8)console.warn("Argument '"+k.arg+"'"+(C?" for method '"+C+"'":"")+" was undefined. Ensure it has a default value, or else ensure the method handles the argument being undefined.");else throw k;}}}return I};
OIW=function(){var I=_.wa.apply(0,arguments);return I.length===0?function(C){return C}:I.length===1?I[0]:I.reduce(function(C,y){return function(){return C(y.apply(null,_.Py(_.wa.apply(0,arguments))))}})};
aHI=function(){var I=_.wa.apply(0,arguments);return function(C){return function(y,k){y=C(y,k);var F=function(){throw Error("ze");},z={getState:y.getState,
dispatch:function(c){return F.apply(null,[c].concat(_.Py(_.wa.apply(1,arguments))))}};
k=I.map(function(c){return c(z)});
F=OIW.apply(null,_.Py(k))(y.dispatch);return Object.assign({},y,{dispatch:F})}}};
C4F=function(I){Object.keys(I).forEach(function(C){var y=I[C];if(typeof y(void 0,{type:Mtt})==="undefined")throw Error("Ae`"+C);if(typeof y(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION"+IzI()})==="undefined")throw Error("Be`"+C+"`"+Mtt);})};
iG=function(I){for(var C=Object.keys(I),y={},k=0;k<C.length;k++){var F=C[k];typeof I[F]==="function"&&(y[F]=I[F])}var z=Object.keys(y);try{C4F(y)}catch(r){var c=r}return function(r,w){r=r===void 0?{}:r;if(c)throw c;for(var L=!1,D={},p=0;p<z.length;p++){var Q=z[p],X=r[Q],b=(0,y[Q])(X,w);if(typeof b==="undefined")throw r=w&&w.type,Error("Ce`"+(r?'"'+String(r)+'"':"(unknown type)")+"`"+Q);D[Q]=b;L=L||b!==X}return(L=L||z.length!==Object.keys(r).length)?D:r}};
shs=function(I,C,y){function k(){if(D)throw Error("De");return r}
function F(X){if(typeof X!=="function")throw Error("Ee`"+typeof X);if(D)throw Error("Fe");var b=!0;L===w&&(L=w.slice());L.push(X);return function(){if(b){if(D)throw Error("Ge");b=!1;L===w&&(L=w.slice());var S=L.indexOf(X);L.splice(S,1);w=null}}}
function z(X){if(typeof X!=="object"||X===null)var b=!1;else{for(b=X;Object.getPrototypeOf(b)!==null;)b=Object.getPrototypeOf(b);b=Object.getPrototypeOf(X)===b}if(!b)throw Error("He`"+typeof X);if(typeof X.type==="undefined")throw Error("Ie");if(D)throw Error("Je");try{D=!0,r=c(r,X)}finally{D=!1}b=w=L;for(var S=0;S<b.length;S++)(0,b[S])();return X}
if(typeof C==="function"&&typeof y==="function"||typeof y==="function"&&typeof arguments[3]==="function")throw Error("Ke");typeof C==="function"&&typeof y==="undefined"&&(y=C,C=void 0);if(typeof y!=="undefined"){if(typeof y!=="function")throw Error("Le`"+typeof y);return y(shs)(I,C)}if(typeof I!=="function")throw Error("Me`"+typeof I);var c=I,r=C,w=[],L=w,D=!1;z({type:Mtt});var p={},Q=(p.dispatch=z,p.subscribe=F,p.getState=k,p.replaceReducer=function(X){if(typeof X!=="function")throw Error("Ne`"+
typeof X);c=X;z({type:oCz});return Q},p[y0O]=function(){var X={};
return X.subscribe=function(b){function S(){b.next&&b.next(k())}
if(typeof b!=="object"||b===null)throw new TypeError("Oe`"+typeof b);S();return{unsubscribe:F(S)}},X[y0O]=function(){return this},X},p);
return Q};
k6F=function(I){function C(){F&&(F=!1,I());z&&k()}
function y(){requestAnimationFrame(C)}
function k(){var r=Date.now();if(F){if(r-c<2)return;z=!0}else F=!0,z=!1,setTimeout(y,20);c=r}
var F=!1,z=!1,c=0;return k};
w8=function(I){return typeof I==="number"?I:parseFloat(I)||0};
FAF=function(I){return _.wa.apply(1,arguments).reduce(function(C,y){return C+w8(I["border-"+y+"-width"])},0)};
_.Y=function(I,C){C=Vp(NM(C));I.innerHTML=C};
TdW=function(I){var C=u8I;C||(C=zB9(),C=u8I=_.Le.transpose(C));C=C[I];return typeof C==="string"?C:_.nq(I)};
c0I=function(I){I=String(I).toLowerCase();var C=zB9()[I];return typeof C==="string"?C:_.P$(I)};
eB9=function(I){I=I.toLowerCase();I=zB9()[I];return typeof I==="string"?I:null};
zB9=function(){if(!r0z){for(var I=Object.assign({},iFI),C=_.T(wvO),y=C.next();!y.done;y=C.next())y=y.value,I[y.toLowerCase()]=y;r0z=I}return r0z};
LAs=function(I,C){var y=window.customElements;return y&&y.get(I)||nCF[I]===!0?2:C.name==="HTMLUnknownElement"?1:C.name==="HTMLElement"&&P4m.test(I)?3:0};
QhF=function(I,C){switch(C){case "innerHTML":return Dmm(I)===1?2:null;case "textContent":return I=Dmm(I),I===1||I===6?1:null;default:var y,k;return(k=(y=pvz[I.localName])==null?void 0:y[C])!=null?k:null}};
Dmm=function(I){var C=I.localName,y=LAs(C,I.constructor);switch(y){case 0:case 1:return NdY(C,I);case 3:case 2:return 1;default:_.C8(y,"got an unknown element classification")}};
NdY=function(I,C){var y=Object.hasOwnProperty.call(VkF,I)?VkF[I]:null;return y!==null?y:Object.hasOwnProperty.call(jhm,I)&&C instanceof SVGElement?jhm[I]:null};
lzI=function(I,C){return C};
$mt=function(I){return(I=I.split(Xvm,2))?{url:I[0],metadata:I[1]}:null};
bFW=function(I){var C=String(I.url).replace(RBI,encodeURIComponent);if(I=I.metadata){RBI.lastIndex=0;if(RBI.test(I))return null;C+=" "+I}return C};
S0F=function(I){function C(L){var D=L.localName;if(!L.getAttribute("is")&&LAs(D,L.constructor)===2){var p;return(p=w)!=null?p:w=document.createElement("polyresinuncustomized")}(L=r[D])||(L=r[D]=document.createElement(D));return L}
var y=I.reportHandler||void 0,k=I.safeTypesBridge||Y0I,F=/^$/;if(I=I.allowedIdentifierPrefixes){I=_.T(I);for(var z=I.next();!z.done;z=I.next())F=new RegExp(F.source+"|^"+_.G6z(z.value))}y&&y(!1,"initResin",null);var c=fzm(F,k,y),r={},w=null;return function(L,D,p){var Q=L.nodeType;if(Q!==Node.ELEMENT_NODE){if(Q===Node.TEXT_NODE){D=L.parentElement;p=!D;if(D&&D.nodeType===Node.ELEMENT_NODE){Q=D.localName;var X=LAs(Q,D.constructor);switch(X){case 0:case 1:D=NdY(Q,D);p=D===1||D===6;break;case 3:case 2:p=
!0;break;default:_.C8(X,"got an unknown element classification")}}if(p)return function(x){return""+k(x,"STRING",x)}}return function(x){if(!x&&x!==document.all)return x;
y&&y(!0,"Failed to sanitize "+(L.parentElement&&L.parentElement.nodeName)+" #text node to value "+x,L.parentElement);return Lq}}var b=L.localName;
Q=C(L);var S=null;switch(p){case "attribute":if(c0I(D)in Q)break;return function(x){return x};
case "property":if(D in Q){S=QhF(Q,D);break}if((X=eB9(D))&&X in Q)break;return function(x){return x};
default:_.C8(p,"got an unknown resin type, expected either 'property' or 'attribute'")}var A=p==="attribute"?D.toLowerCase():TdW(D);S||(S=IvO(b,A,function(x){var B=L.getAttribute(x);return!B||/[\[\{]/.test(x)?null:B}));
return function(x){var B=DC,t=null;if(!x&&x!==document.all)return x;if(S!=null){var U=c[S],yW=U.safeType;t=U.safeReplacement;yW&&(B=k(x,yW,DC));B===DC&&(U.filterString?(B=String(k(x,"STRING",x)),B=U.filterString(b,A,B)):U.filterRaw&&(B=U.filterRaw(b,A,x,L)),B===t&&(B=DC))}B===DC&&(B=t||Lq,y&&y(!0,"Failed to sanitize attribute of <"+b+">: <"+b+" "+A+'="'+x+'">',L));return B}}};
fzm=function(I,C,y){return[,{filterRaw:function(k,F,z){return z},
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:KAz,safeType:"URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:KAz,safeType:"RESOURCE_URL"},{filterRaw:void 0,filterString:void 0,safeReplacement:Lq,safeType:"STYLE"},,{filterRaw:void 0,filterString:void 0,safeReplacement:A0W,safeType:"JAVASCRIPT"},{filterRaw:void 0,filterString:function(k,F,z){z=
String(z).toLowerCase();return oVz(k,F,z)?z:Lq},
safeReplacement:Lq,safeType:void 0},,{filterRaw:void 0,filterString:function(k,F,z){return I.test(z)?z:Lq},
safeReplacement:Lq,safeType:"CONSTANT"},{filterRaw:function(k,F,z,c){if(typeof z==="string")var r=(r=z.match(gCX))?r.map($mt).filter(Boolean):[];else if(Array.isArray(z))r=z;else return KAz;var w=r;r=[];var L=[],D={};if(Array.isArray(w))for(var p=0,Q=w.length;p<Q;++p){var X=w[p],b=X&&X.url;if(b){var S=C(b,"URL",D);if(S){var A=S!==D;(A?r:L).push({url:A?S:b,metadata:X.metadata})}}}else L.push(w);w=L.length?JSON.stringify(L):null;L=DC;if(r.length){if(!Array.isArray(r))throw Error();L=r.map(bFW).filter(Boolean).join(" , ")||
DC}w&&y&&y(!0,"Failed to sanitize attribute value of <"+k+">: <"+k+" "+F+'="'+z+'">: '+w,c);return L===DC?KAz:L},
filterString:void 0,safeReplacement:void 0,safeType:void 0}]};
vCY=function(I){var C=S0F(I);return function(y,k,F,z){return z||z===document.all?C(y,k,F)(z):z}};
Qk=function(I,C){function y(){function F(r,w,L){for(w=Reflect.getMetadata("parameters",r)||[];w.length<=L;)w.push(null);w[L]=w[L]||[];w[L].push(c);Reflect.defineMetadata(w,r);return r}
var z=_.wa.apply(0,arguments);if(this instanceof y)return k.apply(this,z),this;var c=new (Function.prototype.bind.apply(y,[null].concat(_.Py(z))));F.annotation=c;return F}
var k=WAI(C);y.prototype.toString=function(){return"@"+I};
return y.annotationCls=y};
WAI=function(I){return function(){var C=_.wa.apply(0,arguments),y=this;I.forEach(function(k,F){F=C[F];if(Array.isArray(k))y[k[0]]=F&&F!==void 0?F:k[1];else for(var z in k)y[z]=F&&F[z]!==void 0?F[z]:k[z]})}};
dmO=function(I){return I!==void 0&&I!==null};
NJ=function(I){if(typeof I==="string")return I;if(I===void 0||I===null)return""+I;if(I.overriddenName)return I.overriddenName;if(I.name)return I.name;I=I.toString();var C=I.indexOf("\n");return C===-1?I:I.substring(0,C)};
xmz=function(I){I.__forward_ref__=xmz;I.toString=function(){return NJ(this())};
return I};
Vk=function(I){return typeof I==="function"&&I.hasOwnProperty("__forward_ref__")&&I.__forward_ref__===xmz?I():I};
q0I=function(I){return I?I.map(function(C){return new (Function.prototype.bind.apply(C.type.annotationCls,[null].concat(_.Py(C.args?C.args:[]))))}):[]};
mmI=function(I){for(var C=[],y=0;y<I.length;++y){if(C.indexOf(I[y])>-1){C.push(I[y]);break}C.push(I[y])}return C};
ZF9=function(I){return I.length>1?" ("+mmI(I.slice().reverse()).map(function(C){return NJ(C.token)}).join(" -> ")+")":""};
ECK=function(I,C,y,k){if(k){var F=Error("Ve``"+(k instanceof Error?k.message:k));F.ngOriginalError=k}else F=Error();F.addKey=Bd9;F.keys=[C];F.injectors=[I];F.constructResolvingMessage=y;F.message=F.constructResolvingMessage();F.ngOriginalError=k;return F};
Bd9=function(I,C){this.injectors.push(I);this.keys.push(C);this.message=this.constructResolvingMessage()};
hBY=function(I,C){return ECK(I,C,function(){return"No provider for "+NJ(this.keys[0].token)+"!"+ZF9(this.keys)})};
UmK=function(I,C){return ECK(I,C,function(){return"Cannot instantiate cyclic dependency!"+ZF9(this.keys)})};
HFs=function(I,C,y){return ECK(I,y,function(){var k=NJ(this.keys[0].token);return this.ngOriginalError.message+": Error during instantiation of "+k+"!"+ZF9(this.keys)+"."},C)};
tkt=function(I,C){for(var y=[],k=0,F=C.length;k<F;k++){var z=C[k];z&&z.length!=0?y.push(z.map(NJ).join(" ")):y.push("?")}return Error("Ze`"+NJ(I)+"`"+y.join(", ")+"`"+NJ(I))};
sdX=function(I){var C=void 0,y=void 0;if(I&&I.useClass!==void 0){C=I.useClass;var k=Vk(I.useClass);var F=J0m.factory(k);k=OFm(k)}else I&&I.useExisting!==void 0?(F=function(z){return z},k=[azm(ji.get(Vk(I.useExisting)))]):I&&I.useFactory!==void 0?(F=I.useFactory,k=Mkm(I.useFactory,I.deps)):(y=I.useValue,F=function(){return I.useValue},k=IeF);
return new CBY(F,k,C,y)};
yhX=function(I){return new ogz(ji.get(Vk(I.provide)),[sdX(I)],I.multi)};
FRz=function(I){I=kEX(I,[]).map(yhX);for(var C=new Map,y=0;y<I.length;y++){var k=I[y],F=C.get(k.key.id);if(F){if(k.multiProvider!==F.multiProvider)throw Error("af`"+F+"`"+k);if(k.multiProvider)for(var z=0;z<k.resolvedFactories.length;z++)F.resolvedFactories.push(k.resolvedFactories[z]);else C.set(k.key.id,k)}else F=void 0,k.multiProvider?F=new ogz(k.key,k.resolvedFactories.slice(),k.multiProvider):F=k,C.set(k.key.id,F)}return Array.from(C.values())};
kEX=function(I,C){I.forEach(function(y){if(y instanceof uhO)C.push({provide:y,useClass:y});else if(y&&typeof y=="object"&&y.provide!==void 0)C.push(y);else if(y instanceof Array)kEX(y,C);else throw Error("Ye`"+y);});
return C};
Mkm=function(I,C){if(C){var y=C.map(function(k){return[k]});
return C.map(function(k){return zhX(I,k,y)})}return OFm(I)};
OFm=function(I){var C=J0m.parameters(I);if(!C)return[];if(C.some(function(y){return y==null}))throw tkt(I,C);
return C.map(function(y){return zhX(I,y,C)})};
zhX=function(I,C,y){var k=null,F=!1;if(!Array.isArray(C))return C instanceof Ts9?chX(C.token,F,null):chX(C,F,null);for(var z=null,c=0;c<C.length;++c){var r=C[c];if(r instanceof uhO)k=r;else if(r instanceof Ts9)k=r.token;else if(r instanceof ehz)F=!0;else if(r instanceof rhm||r instanceof iQz)z=r}k=Vk(k);if(k!=null)return chX(k,F,z);throw tkt(I,y);};
chX=function(I,C,y){return new wzH(ji.get(Vk(I)),C,y)};
ngO=function(I,C){for(var y=Array(I.providers.length),k=0;k<I.providers.length;++k){var F=k;if(k<0||k>=I.providers.length)throw Error("$e`"+k);y[F]=C(I.providers[k])}return y};
PBY=function(I){return typeof I==="function"&&J0m.parameters(I).every(function(C){return!!C})};
_._hasCachedLockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){return _._lockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(I)>-1};
_._hasCachedUnlockedElement$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){return _._unlockedElementCache$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(I)>-1};
_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I,C){var y,k;if(I.contains(C))return!0;I=_.lG(I).querySelectorAll("content,slot");for(y=0;y<I.length;++y){var F=_.lG(I[y]).getDistributedNodes();for(k=0;k<F.length;++k)if(F[k].nodeType===Node.ELEMENT_NODE&&_._composedTreeContains$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(F[k],C))return!0}return!1};
_._scrollInteractionHandler$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){I.cancelable&&_._shouldPreventScrolling$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(I)&&I.preventDefault();I.targetTouches&&(I=I.targetTouches[0],LRz=I.pageX,DYH=I.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 I=0,C=Xd.length;I<C;I++)document.addEventListener(Xd[I],_._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 I=0,C=Xd.length;I<C;I++)document.removeEventListener(Xd[I],_._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(I){var C=_.lG(I).rootTarget;I.type!=="touchmove"&&pzO!==C&&(pzO=C,QdY=_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(_.lG(I).path));if(!QdY.length)return!0;if(I.type==="touchstart")return!1;I=_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(I);
return!_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager(QdY,I.deltaX,I.deltaY)};
_._getScrollableNodes$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){for(var C=[],y=I.indexOf(NsI),k=0;k<=y;k++)if(I[k].nodeType===Node.ELEMENT_NODE){var F=I[k],z=F.style;z.overflow!=="scroll"&&z.overflow!=="auto"&&(z=window.getComputedStyle(F));z.overflow!=="scroll"&&z.overflow!=="auto"||C.push(F)}return C};
_._getScrollingNode$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I,C,y){if(C||y)for(var k=Math.abs(y)>=Math.abs(C),F=0;F<I.length;F++){var z=I[F];if(k?y<0?z.scrollTop>0:z.scrollTop<z.scrollHeight-z.clientHeight:C<0?z.scrollLeft>0:z.scrollLeft<z.scrollWidth-z.clientWidth)return z}};
_._getScrollInfo$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager=function(I){var C={deltaX:I.deltaX,deltaY:I.deltaY};"deltaX"in I||("wheelDeltaX"in I&&"wheelDeltaY"in I?(C.deltaX=-I.wheelDeltaX,C.deltaY=-I.wheelDeltaY):"wheelDelta"in I?(C.deltaX=0,C.deltaY=-I.wheelDelta):"axis"in I?(C.deltaX=I.axis===1?I.detail:0,C.deltaY=I.axis===2?I.detail:0):I.targetTouches&&(I=I.targetTouches[0],C.deltaX=LRz-I.pageX,C.deltaY=DYH-I.pageY));return C};
VZX=function(I){this.element=I;this.width=this.boundingRect.width;this.height=this.boundingRect.height;this.size=Math.max(this.width,this.height)};
leY=function(I){this.element=I;this.color=window.getComputedStyle(I).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");_.lG(this.waveContainer).appendChild(this.wave);jdK(this)};
$B=function(I,C){for(var y in I)if(y.toLowerCase()===C.toLowerCase())return I[y]};
XzO=function(I,C){for(var y in I)if(y.toLowerCase()===C.toLowerCase()){delete I[y];break}};
Rhm=function(I){I=_.Le.clone(I);for(var C=0;C<$YW.length;++C){var y=$YW[C],k=$B(I,y);k&&(I["X-Goog-Upload-Header-"+y]=k,XzO(I,y))}return I};
bQz=function(I){I=_.Le.clone(I);XzO(I,"X-Goog-Upload-Status")};
GEz=function(I){return YrH.some(function(C){return C.test(I)})};
AhW=function(I,C){var y;var k=(y=I.formContent)==null?void 0:y.locale;y=k==null?void 0:k.split("-")[0];k=k&&feI.includes(k)?k:y&&feI.includes(y)?y:void 0;k=(k!=null?k:"en").replaceAll("-","_").toLowerCase();var F;I=((F=I.initializationData)==null?0:F.useNightlyRelease)?"nightly":"live";var z;return(C==null?0:(z=C.getEnableAlohaBinarySplit)==null?0:z.call(C))?_.tM(SrY,I):_.tM(KRm,I,k)};
vgF=function(I,C,y,k){if(ggt)return ggt;var F=AhW(I,k);return ggt=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(z,c){var r=_.c2("SCRIPT");_.fa(r,F);r.onload=function(){C.feedbackV2GlobalObject?z(C.feedbackV2GlobalObject):c(Error("df"))};
r.onerror=function(){c(Error("ef`"+F.toString()))};
y.body.appendChild(r)})};
dYm=function(I,C,y,k){if(WRK)return WRK;var F=AhW(I,k);return WRK=C.feedbackV2GlobalObject?Promise.resolve(C.feedbackV2GlobalObject):new Promise(function(z,c){var r=_.c2("SCRIPT");_.fa(r,F);r.onload=function(){C.feedbackV2GlobalObject?z(C.feedbackV2GlobalObject):c(Error("df"))};
r.onerror=function(){c(Error("ef`"+F.toString()))};
y.body.appendChild(r)})};
xYI=function(I,C,y,k,F){F=F===void 0?!0:F;var z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:return z=Date.now(),_.n(D,vgF(I,y,k,C),2);case 2:c=D.yieldResult;if(!(F||((w=I.initializationData)==null?0:w.useNightlyRelease)||((L=I.initializationData)==null?0:L.isLocalServer))){r=c.initializeFeedbackClient(I,z,C);D.jumpTo(3);break}return _.n(D,c.initializeFeedbackClientAsync(I,z,C),4);case 4:r=D.yieldResult;case 3:return r.initiateAloha(),D.return(r)}})};
qrF=function(I,C,y,k){var F,z,c;return _.e(function(r){if(r.nextAddress==1)return F=Date.now(),_.n(r,dYm(I,y,k.document,C),2);if(r.nextAddress!=3)return z=r.yieldResult,_.n(r,z.initializeFeedbackClientAsync(I,F,C,k),3);c=r.yieldResult;c.initiateAloha();return r.return(c)})};
mYF=function(I,C,y){var k=!0;k=k===void 0?!0:k;var F,z,c,r,w,L,D,p,Q,X;return _.e(function(b){F=y||_.sF;if((z=C)==null?0:(r=(c=z).getEnableAlohaBinarySplit)==null?0:r.call(c)){w=F;if(w.isFormOpened)throw L=Error("ff"),L.name="DuplicateFormError",L;w.isFormOpened=!0;I.callbacks=I.callbacks||{};D=I.callbacks.onClose||function(){};
I.callbacks.onClose=function(S){w.isFormOpened=!1;D(S)};
try{return b.return(qrF(I,C,w,F))}catch(S){throw w.isFormOpened=!1,S;}}else{p=F;if(p.isFormOpened)throw Q=Error("ff"),Q.name="DuplicateFormError",Q;p.isFormOpened=!0;I.callbacks=I.callbacks||{};X=I.callbacks.onClose||function(){};
I.callbacks.onClose=function(S){p.isFormOpened=!1;X(S)};
try{return b.return(xYI(I,C,p,F.document,k))}catch(S){throw p.isFormOpened=!1,S;}}_.oI(b)})};
UYO=function(I,C){return _.e(function(y){return y.return(new Promise(function(k){var F=ZQ9(C!=null?C:"")+"/aloha_form_properties?productId="+I;Bs9(F,function(z){z=z.target;var c=null;try{var r=JSON,w=r.stringify;if(z.JSC$7668_xhr_){var L=z.JSC$7668_xhr_.responseText;L.indexOf(")]}'\n")==0&&(L=L.substring(5));var D=(0,_.RC)(L)}else D=void 0;c=MBF(EgI,w.call(r,D))}catch(p){w=new EgI,D=hhI(),D=_.bG(D,13,!1),D=_.bG(D,14,!0),D=_.bG(D,15,!0),D=_.bG(D,20,!1),c=_.JT(w,1,D)}k(c)},"GET","",{},2E3,!0)}))})};
ZQ9=function(I){return GEz(I)?I:"https://www.google.com/tools/feedback"};
OQm=function(I){I=I.match(new RegExp(HQF,"gi"))||[];I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;a:{var y=_.T(tZm);for(var k=y.next();!k.done;k=y.next())if(k.value.test(C)){y=!1;break a}y=!0}if(!y)a:{y=_.T(JhH);for(k=y.next();!k.done;k=y.next())if(k.value.test(C)){y=!0;break a}y=!1}if(y)return!0}return!1};
aeO=function(I){switch(I){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"}};
III=function(I){if(window.crypto&&window.crypto.getRandomValues)try{var C=Array(I),y=new Uint8Array(I);window.crypto.getRandomValues(y);for(var k=0;k<C.length;k++)C[k]=y[k];return C}catch(z){}C=Array(I);for(y=0;y<I;y++){k=Date.now();for(var F=0;F<k%23;F++)C[y]=Math.random();C[y]=Math.floor(Math.random()*256)}if(MZt)for(y=1,k=0;k<MZt.length;k++)C[y%I]^=C[(y-1)%I]/4^MZt.charCodeAt(k),y++;return C};
YB=function(I){I=III(I);for(var C=[],y=0;y<I.length;y++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(I[y]&63));return C.join("")};
szY=function(I){I&&_.b2("foregroundHeartbeatScreenAssociated",{clientDocumentNonce:CRX,clientScreenNonce:I})};
ojF=function(I){return _.Aq("client-screen-nonce-store",{})[I===void 0?0:I]};
yZO=function(I,C){C=C===void 0?0:C;var y=_.Aq("client-screen-nonce-store");y||(y={},_.KH("client-screen-nonce-store",y));y[C]=I};
k9X=function(I){I=I===void 0?0:I;return I===0?"ROOT_VE_TYPE":"ROOT_VE_TYPE."+I};
Fum=function(I){return _.Aq(k9X(I===void 0?0:I))};
_.fq=function(I){return(I=Fum(I===void 0?0:I))?new _.G5({veType:I,youtubeData:void 0,jspbYoutubeData:void 0}):null};
unI=function(){var I=_.Aq("csn-to-ctt-auth-info");I||(I={},_.KH("csn-to-ctt-auth-info",I));return I};
z$Y=function(){return Object.values(_.Aq("client-screen-nonce-store",{})).filter(function(I){return I!==void 0})};
_.Si=function(I){I=ojF(I===void 0?0:I);if(!I&&!_.g5("USE_CSN_FALLBACK",!0))return null;I||(I="UNDEFINED_CSN");return I?I:null};
cZY=function(I){for(var C=_.T(Object.values(T1s)),y=C.next();!y.done;y=C.next())if(_.Si(y.value)===I)return!0;return!1};
e$K=function(I,C,y){var k=unI();(y=_.Si(y))&&delete k[y];C&&(k[I]=C)};
Kq=function(I){return unI()[I]};
_.rZO=function(I,C,y,k){y=y===void 0?0:y;if(I!==ojF(y)||C!==_.Aq(k9X(y)))if(e$K(I,k,y),yZO(I,y),_.KH(k9X(y),C),C=function(){setTimeout(function(){szY(I)},0)},"requestAnimationFrame"in window)try{window.requestAnimationFrame(C)}catch(F){C()}else C()};
iWY=function(I,C){C=C===void 0?"":C;var y=[],k;for(k in I)if(I.hasOwnProperty(k)){var F=C!==""?C+"."+k:k;typeof I[k]==="object"?y.push.apply(y,_.Py(iWY(I[k],F))):y.push([F,I[k]])}y.sort();return y};
_.njt=function(I){var C=_.wa.apply(1,arguments);if(!A$(I)||C.some(function(k){return!A$(k)}))throw Error("gf");
C=_.T(C);for(var y=C.next();!y.done;y=C.next())wfz(I,y.value)};
wfz=function(I,C){for(var y in C)if(A$(C[y])){if(y in I&&!A$(I[y]))throw Error("hf");y in I||(I[y]={});wfz(I[y],C[y])}else if(PRI(C[y])){if(y in I&&!PRI(I[y]))throw Error("jf");y in I||(I[y]=[]);Lut(I[y],C[y])}else I[y]=C[y];return I};
Lut=function(I,C){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,A$(y)?I.push(wfz({},y)):PRI(y)?I.push(Lut([],y)):I.push(y);return I};
A$=function(I){return typeof I==="object"&&!Array.isArray(I)};
PRI=function(I){return typeof I==="object"&&Array.isArray(I)};
pfm=function(I){for(var C=_.T(Object.entries(D2s)),y=C.next();!y.done;y=C.next())if(y=_.T(y.value),y.next(),y=y.next().value,y==="SLI_STATUS_"+I)return y;return"SLI_STATUS_UNKNOWN"};
_.g8=function(I,C,y,k){return Qzt(I,C,function(){return new _.N1I(I,C,y,k)})};
_.Vgz=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_APP_BOOTS","APP_BOOTS",12E4,"TIMEOUT")};
jzs=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_NETWORK_REQUEST","NETWORK_REQUEST",12E4,"TIMEOUT")};
v$=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_WARM_PAGE_NAVIGATION","WARM_PAGE_NAVIGATION",12E4,"TIMEOUT")};
lII=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_YT_INITIAL_DATA_PRESENT","YT_INITIAL_DATA_LOADED",6E4,"FAILURE")};
XfY=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_ONE_MINUTE","STFE_GREATER_THAN_ONE_MINUTE",6E4,"SUCCESS")};
$2X=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_STFE_GREATER_THAN_TEN_MINUTES","STFE_GREATER_THAN_TEN_MINUTES",6E5,"SUCCESS")};
Yv9=function(I){I&&(I.dataset?I.dataset[R$m()]="true":_.Ka([_.Uj(bWs)],I,"data-loaded","true".toString()))};
G9F=function(I){return I?I.dataset?I.dataset[R$m()]:I.getAttribute("data-loaded"):null};
R$m=function(){return fI9.loaded||(fI9.loaded="loaded".replace(/\-([a-z])/g,function(I,C){return C.toUpperCase()}))};
_.W$=function(I,C,y){Svs(I,C,y===void 0?null:y)};
_.AZs=function(I,C){I&&C&&(I=""+_.ow(C),(I=KuW[I])&&_.W0t(I))};
Svs=function(I,C,y){y=y===void 0?null:y;var k=_.gjt(I),F=document.getElementById(k),z=F&&G9F(F),c=F&&!z;z?C&&C():(C&&(z=_.ko(k,C),C=""+_.ow(C),KuW[C]=z),c||(F=vjF(I,k,function(){G9F(F)||(Yv9(F),_.dc9(k),_.FT(function(){_.qqs(k)},0))},y)))};
vjF=function(I,C,y,k){k=k===void 0?null:k;var F=_.c2("SCRIPT");F.id=C;F.onload=function(){y&&setTimeout(y,0)};
F.onreadystatechange=function(){switch(F.readyState){case "loaded":case "complete":F.onload()}};
k&&F.setAttribute("nonce",k);_.fa(F,_.Qo(I));I=document.getElementsByTagName("head")[0]||document.body;I.insertBefore(F,I.firstChild);return F};
_.gjt=function(I){var C=document.createElement("a");pa(C,I);return"js-"+d8(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.x2F=function(){var I=_.Le.clone(Wus),C;return(new _.eN(function(y,k){I.onSuccess=function(F){Vsm(F)?y(new d2O(F)):k(new _.xB("Request failed, status="+kt(F),"net.badstatus",F))};
I.onError=function(F){k(new _.xB("Unknown request error","net.unknown",F))};
I.onTimeout=function(F){k(new _.xB("Request timed out","net.timeout",F))};
C=_.cN("//googleads.g.doubleclick.net/pagead/id",I)})).thenCatch(function(y){if(y instanceof _.qJ){var k;
(k=C)==null||k.abort()}return _.mr(y)})};
qvm=function(I){var C=_.Aq("INNERTUBE_HOST_OVERRIDE");C&&(I=String(C)+String(_.ZC(I)));return I};
m2z=function(I){var C={};_.V("json_condensed_response")&&(C.prettyPrint="false");return I=z0z(I,C)};
_.B$=function(I){return Jq(I)?"same-origin":"include"};
_.Eh=function(I){return Jq(I)?"same-origin":"cors"};
h$=function(I,C,y){y=y===void 0?{}:y;I={method:C===void 0?"POST":C,mode:_.Eh(I),credentials:_.B$(I)};C={};for(var k=_.T(Object.keys(y)),F=k.next();!F.done;F=k.next())F=F.value,y[F]&&(C[F]=y[F]);Object.keys(C).length>0&&(I.headers=C);return I};
_.Uh=function(I,C){C=C===void 0?{}:C;return"service:"+I+"/"+Object.keys(C).sort().map(function(y){return y+":"+C[y]}).join("/")};
ZWY=function(I){var C,y,k,F;I=(C=_.l(I,_.H$))==null?void 0:(y=C.watchEndpointSupportedOnesieConfig)==null?void 0:(k=y.html5PlaybackOnesieConfig)==null?void 0:(F=k.commonConfig)==null?void 0:F.url;if(!I)return[];C=new _.t$(I);return C.JSC$7905_domain_?["https://"+C.JSC$7905_domain_+"/generate_204"]:[]};
_.h$Y=function(){return B1z()||eyW()||Ejs&&Gl("version/")?!0:_.Aq("EOM_VISITOR_DATA")?!1:!0};
U2z=function(I){var C=I.docid||I.video_id||I.videoId||I.id;if(C)return C;C=I.raw_player_response;C||(I=I.player_response)&&(C=JSON.parse(I));return C&&C.videoDetails&&C.videoDetails.videoId||null};
_.tgO=function(I){a:{var C="EMBEDDED_PLAYER_MODE_UNKNOWN";window.location.hostname.includes("youtubeeducation.com")&&(C="EMBEDDED_PLAYER_MODE_PFL");var y=I.raw_embedded_player_response;if(!y&&(I=I.embedded_player_response))try{y=JSON.parse(I)}catch(F){break a}if(y)b:for(var k in HW9)if(HW9[k]==y.embeddedPlayerMode){C=HW9[k];break b}}return C==="EMBEDDED_PLAYER_MODE_PFL"};
_.JZH=function(){if(_.V("disable_biscotti_fetch_entirely_for_all_web_clients"))return Error("nf");if(!_.h$Y())return Error("of");var I=_.Aq("PLAYER_VARS",{});if(_.Le.get(I,"privembed",!1)=="1")return Error("pf");if(_.tgO(I))return Error("qf")};
OW9=function(I){return I.replace(/([a-zA-Z])(?=[A-Z])/g,"$1-").toLowerCase()};
J$=function(I){return!isNaN(Number(I))&&!_.eI(I)};
_.aC=function(I,C,y,k){k=k===void 0?!0:k;var F=_.Aq("VALID_SESSION_TEMPDATA_DOMAINS",[]),z=_.H5(window.location.href);z&&F.push(z);z=_.H5(I);if(_.qz(F,z)||!z&&_.FO(I,"/"))if(F=document.createElement("a"),pa(F,I),I=F.href)if(I=_.ZC(I),I=_.Oh(I))k&&!C.csn&&(C.itct||C.ved)&&(C=Object.assign({csn:_.Si()},C)),y?(y=parseInt(y,10),isFinite(y)&&y>0&&aIs(I,C,y)):aIs(I,C)};
IAO=function(I){var C=_.Aq("VALID_SESSION_TEMPDATA_DOMAINS",[]),y=_.H5(window.location.href);y&&C.push(y);y=_.H5(I);if(!(_.qz(C,y)||!y&&_.FO(I,"/")))return null;I=_.ZC(I);(I=_.Oh(I))?(I=Mgm(I),I=(I=_.wC.get(I,void 0)||null)?_.Zx(I):{}):I=null;return I};
aIs=function(I,C,y){I=Mgm(I);C=C?_.e7(C):"";y=y||5;_.h$Y()&&_.nh(I,C,y)};
Mgm=function(I){for(var C=_.T(CLz),y=C.next();!y.done;y=C.next())I=_.MJ(I,y.value);return"ST-"+d8(I).toString(36)};
sNs=function(I,C){I.commandMetadata&&_.l(I.commandMetadata,_.It)&&_.l(I.commandMetadata,_.It).url&&(I=_.B5(_.l(I.commandMetadata,_.It).url).adurl)&&_.cnz(I)&&_.aC(_.ZC(I),{encoded_ad_playback_context:C})};
_.o6F=function(I){if(I.requestFullscreen)I=I.requestFullscreen(void 0);else if(I.webkitRequestFullscreen)I=I.webkitRequestFullscreen();else if(I.mozRequestFullScreen)I=I.mozRequestFullScreen();else if(I.msRequestFullscreen)I=I.msRequestFullscreen();else if(I.webkitEnterFullscreen)I=I.webkitEnterFullscreen();else return Promise.reject(Error("sf"));return I instanceof Promise?I:Promise.resolve()};
_.sN=function(I){var C;_.XDz(["fullscreenEnabled","webkitFullscreenEnabled","mozFullScreenEnabled","msFullscreenEnabled"],document)?_.CA()==I&&(C=document):C=I;if(C&&(I=_.XDz(["exitFullscreen","webkitExitFullscreen","mozCancelFullScreen","msExitFullscreen"],C))){I.call(C)instanceof Promise||Promise.resolve();return}Promise.resolve()};
_.CA=function(){var I=I===void 0?!1:I;var C=_.XDz(["fullscreenElement","webkitFullscreenElement","mozFullScreenElement","msFullscreenElement"],document);if(I)for(;C&&C.shadowRoot;)C=C.shadowRoot.fullscreenElement;return C?C:null};
_.ot=function(I,C){C=C===void 0?!0:C;I.addEventListener("wheel",yjW);I.overscrollConfig={cooldown:C}};
_.yw=function(I){I.overscrollConfig=void 0;I.removeEventListener("wheel",yjW)};
yjW=function(I){var C=I.deltaY,y=I.target,k=null;if(window.Polymer&&window.Polymer.Element){if(y=I.path||I.composedPath&&I.composedPath()){y=_.T(y);for(var F=y.next();!F.done&&(F=F.value,!kGO(F,C));F=y.next())if(F.overscrollConfig){k=F;break}}}else for(;y&&!kGO(y,C);){if(y.overscrollConfig){k=y;break}y=y.parentElement}k&&(C=k.overscrollConfig,C.cooldown?(k=I.deltaY,y=C.lastDeltaY||0,C.lastDeltaY=k,F=C.lastStopped||0,y&&F&&y>0==k>0?Math.abs(y)>=Math.abs(k)?(k=F+1200,y=!1):(k=F+600,y=!0):(k=Date.now()+
600,y=!0),k>Date.now()&&(I.preventDefault(),y&&(C.lastStopped=Date.now()))):I.preventDefault())};
kGO=function(I,C){return C<0&&I.scrollTop>0||C>0&&I.scrollTop<I.scrollHeight-I.clientHeight-1?(I=getComputedStyle(I).overflowY,I=="auto"||I=="scroll"):!1};
_.k3=function(I,C,y,k){k||(k={bubbles:!0,cancelable:!1,composed:!0});y!==null&&y!==void 0&&(k.detail=y);C=new CustomEvent(C,k);I.dispatchEvent(C);return C};
_.Fe=function(I,C,y,k){C=new FXz(C,!(k===void 0||!k),y);_.k3(I,"yt-action",C);return C.returnValue};
_.uW=function(I,C,y){return _.Fe(I,C,y,!0)};
_.zg=function(I,C,y){return _.Fe(I,C,y)[0]};
_.cQ=function(I,C,y,k){C&&C.length&&C.forEach(function(F){var z=jjK(F);z&&(_.V("handle_service_request_actions")&&F.commandMetadata&&F.commandMetadata.webCommandMetadata&&F.commandMetadata.webCommandMetadata.sendPost?_.Tg(y?y:I,[F]):_.uW(I,z,[F,y,k]))})};
_.Tg=function(I,C){var y=[I];C&&y.push.apply(y,C);C=_.Fe(I,"yt-service-request",y);return C.length>0&&(C=C[0],_.k3(I,"yt-service-request-sent",C),C&&C.ajaxPromise)?(C.ajaxPromise.then(function(k){_.k3(I,"yt-service-request-completed",k)},function(k){_.k3(I,"yt-service-request-error",{error:k,
params:y})},I),C.ajaxPromise):_.er()};
_.iW=function(I,C){if(_.V("handle_service_request_actions"))_.cQ(C,I,C);else{I=_.T(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;var k=void 0;((k=_.l(y,_.r9))==null?0:k.commands)?_.iW(_.l(y,_.r9).commands,C):(k=void 0,((k=_.l(y,_.w9))==null?0:k.actions)?_.iW(_.l(y,_.w9).actions,C):(k=void 0,((k=_.l(y.commandMetadata,_.It))==null?0:k.sendPost)?_.Tg(C,[y]):_.cQ(C,[y],C)))}}};
_.zJI=function(I,C,y){C=C===void 0?{}:C;typeof C==="function"&&(C={callback:C});y||C._c&&C._c.jsl&&C._c.jsl.h||_.Le.extend(C,{_c:{jsl:{h:_.Aq("GAPI_HINT_PARAMS")}}});(C.gapiHintOverride||_.Aq("GAPI_HINT_OVERRIDE"))&&(y=_.B5(document.location.href).gapi_jsh)&&_.Le.extend(C,{_c:{jsl:{h:y}}});ugm(I,C)};
_.PQ=function(I,C,y){C=C===void 0?{}:C;I=(I=I in nA?nA[I]:y)||"";y={};for(var k in C){y={key$jscomp$788:y.key$jscomp$788};y.key$jscomp$788=k;var F=function(z){return function(){return String(C[z.key$jscomp$788])}}(y);
I=I.replace(new RegExp("\\$\\{"+y.key$jscomp$788+"\\}","gi"),F);I=I.replace(new RegExp("\\$"+y.key$jscomp$788,"gi"),F)}return I};
_.LA=function(I,C){return Tbz(I in nA?nA[I]:{},C)};
Tbz=function(I,C){var y=_.Aq("I18N_PLURAL_RULES");y||(y=function(k){return k==1?"one":"other"});
return(I=I["case"+C]||I[y(C)])?I.replace("#",C.toString()):C+""};
rjW=function(I){var C=cjK(I),y=document.getElementById(C),k=y&&G9F(y);k||y&&!k||(y=eJO(I,C,function(){if(!G9F(y)){Yv9(y);_.dc9(C);var F=_.D0(_.qqs,C);_.FT(F,0)}}))};
eJO=function(I,C,y){var k=document.createElement("link");k.id=C;k.onload=function(){y&&setTimeout(y,0)};
I=_.Qo(I);_.A_(k,I,"stylesheet");(document.getElementsByTagName("head")[0]||document.body).appendChild(k);return k};
cjK=function(I){var C=_.c2("A");pa(C,FG(I));return"css-"+d8(C.href.replace(/^[a-zA-Z]+:\/\//,"//"))};
_.wlm=function(I){var C=ibI();I!==C&&(C=_.pA(),!_.V("web_autonav_allow_off_by_default")&&I||_.Qw(0,141,!0),_.Qw(0,140,!I),C.save())};
ibI=function(){var I=_.pA();return _.V("web_autonav_allow_off_by_default")&&!I.getFlag(141)&&_.Aq("AUTONAV_OFF_BY_DEFAULT")?!1:!I.getFlag(140)};
n6O=function(I,C){var y,k;I=((y=I.watchEndpointSupportedAuthorizationTokenConfig)==null?void 0:(k=y.videoAuthorizationToken)==null?void 0:k.credentialTransferTokens)||[];for(y=0;y<I.length;++y)if(I[y].scope===C)return I[y].token||void 0};
PLH=function(I){for(var C=0,y=0;y<I.length;y++)C=C*31+I.charCodeAt(y),y<I.length-1&&(C%=0x800000000000);return C%1E5};
_.N1=function(I){return _.d5("ytcsi."+(I||"")+"data_")||LXH(I)};
_.DiK=function(I){I=_.N1(I);I.metadata||(I.metadata={});return I.metadata};
_.plz=function(I){I=_.N1(I);I.tick||(I.tick={});return I.tick};
_.QNm=function(I){I=_.N1(I);if(I.gel){var C=I.gel;C.gelInfos||(C.gelInfos={});C.gelTicks||(C.gelTicks={})}else I.gel={gelTicks:{},gelInfos:{}};return I.gel};
_.NbI=function(I){I=_.QNm(I);I.gelInfos||(I.gelInfos={});return I.gelInfos};
VGO=function(I){var C=_.N1(I).nonce;C||(C=YB(16),_.N1(I).nonce=C);return C};
LXH=function(I){var C={tick:{},info:{}};_.U8("ytcsi."+(I||"")+"data_",C);return C};
jNW=function(){var I=_.d5("ytcsi.debug");I||(I=[],_.U8("ytcsi.debug",I),_.U8("ytcsi.reference",{}));return I};
_.XlF=function(I){I=I||"";var C=lA9();if(C[I])return C[I];var y=jNW(),k={timerName:I,info:{},tick:{},span:{},jspbInfo:[]};y.push(k);return C[I]=k};
$iK=function(I){I=I||"";var C=lA9();C[I]&&delete C[I];var y=jNW(),k={timerName:I,info:{},tick:{},span:{},jspbInfo:[]};y.push(k);C[I]=k};
lA9=function(){var I=_.d5("ytcsi.reference");if(I)return I;jNW();return _.d5("ytcsi.reference")};
_.bbs=function(I){return RJm[I]||"LATENCY_ACTION_UNKNOWN"};
SUm=function(I,C,y){y=y===void 0?{}:y;var k=!1;_.g5("ytLoggingEventsDefaultDisabled",!1)&&(k=!0);k=k?null:R0;y=y===void 0?{}:y;var F=Math.round(y.timestamp||(0,_.JY)());_.pi(C,1,F<Number.MAX_SAFE_INTEGER?F:0);F=new YUW;if(y.lact)_.pi(F,1,isFinite(y.lact)?y.lact:-1);else if(y.timestamp)_.pi(F,1,-1);else{var z=_.Ci();_.pi(F,1,isFinite(z)?z:-1)}if(y.sequenceGroup&&!_.V("web_gel_sequence_info_killswitch")){z=y.sequenceGroup;var c=OK9(z),r=new GGK;r.setIndex(c);_.zT(r,1,z);_.JT(F,3,r);y.endOfSequence&&
delete fA9[y.sequenceGroup]}_.JT(C,33,F);(y.sendIsolatedPayload?omm:yLt)(I,{endpoint:"log_event",payload:C,cttAuthInfo:y.cttAuthInfo,dangerousLogToVisitorSession:y.dangerousLogToVisitorSession},k)};
_.jr=function(){return(_.V("csi_use_time_origin")||_.V("csi_use_time_origin_tvhtml5"))&&_.Vw.timeOrigin?Math.floor(_.Vw.timeOrigin):_.Vw.timing.navigationStart};
_.KXs=function(I,C){_.lW("_start",I,C)};
_.Rt=function(I,C){if(!_.V("web_csi_action_sampling_enabled")||!_.N1(C).actionDisabled){var y=_.XlF(C||"");_.njt(y.info,I);I.loadType&&(y=I.loadType,_.DiK(C).loadType=y);_.njt(_.NbI(C),I);y=VGO(C);C=_.N1(C).cttAuthInfo;Ajm().info(I,y,C)}};
g6I=function(){var I,C,y,k;return((k=_.N().resolve(_.aU(VB))==null?void 0:(I=JLF())==null?void 0:(C=I.loggingHotConfig)==null?void 0:(y=C.csiConfig)==null?void 0:y.debugTicks)!=null?k:[]).map(function(F){return Object.values(F)[0]})};
_.lW=function(I,C,y){if(!_.V("web_csi_action_sampling_enabled")||!_.N1(y).actionDisabled){var k=VGO(y),F;if(F=_.V("web_csi_debug_sample_enabled")&&k){(_.N().resolve(_.aU(VB))==null?0:JLF())&&!v6Y&&(v6Y=!0,_.lW("gcfl",(0,_.JY)(),y));var z,c,r;F=(_.N().resolve(_.aU(VB))==null?void 0:(z=JLF())==null?void 0:(c=z.loggingHotConfig)==null?void 0:(r=c.csiConfig)==null?void 0:r.debugSampleWeight)||0;if(z=F!==0)b:{z=g6I();if(z.length>0)for(c=0;c<z.length;c++)if(I===z[c]){z=!0;break b}z=!1}z?(F=PLH(k)%F!==0,
_.N1(y).debugTicksExcludedLogged||(z={},z.debugTicksExcluded=F,_.Rt(z,y)),_.N1(y).debugTicksExcludedLogged=!0):F=!1}if(!F){I[0]!=="_"&&WXO(I,y,C);F=_.XlF(y||"");F.tick[I]=C||(0,_.JY)();if(F.callback&&F.callback[I])for(F=_.T(F.callback[I]),z=F.next();!z.done;z=F.next())z=z.value,z();F=_.QNm(y);F.gelTicks&&(F.gelTicks[I]=!0);z=_.plz(y);F=C||(0,_.JY)();_.V("log_repeated_ytcsi_ticks")?I in z||(z[I]=F):z[I]=F;z=_.N1(y).cttAuthInfo;I==="_start"?Ajm().baseline(k,C,z):Ajm().tick(I,k,C,z);_.diI(y);return F}}};
WXO=function(I,C,y){if(_.Vw.mark)if(I.startsWith("mark_")||(I="mark_"+I),C&&(I+=" ("+C+")"),y===void 0||_.V("web_csi_disable_alt_time_performance_mark"))_.Vw.mark(I);else{y=_.V("csi_use_performance_navigation_timing")||_.V("csi_use_performance_navigation_timing_tvhtml5")?y-_.Vw.timeOrigin:y-(_.Vw.timeOrigin||_.Vw.timing.navigationStart);try{_.Vw.mark(I,{startTime:y})}catch(k){}}};
xim=function(){var I,C=(I=_.Vw.getEntriesByType)==null?void 0:I.call(_.Vw,"mark");C&&C.forEach(function(y){if(y.name.startsWith("mark_")){var k;(k=_.Vw.clearMarks)==null||k.call(_.Vw,y.name)}})};
_.qUK=function(){switch(lW9()){case "hidden":return 0;case "visible":return 1;case "prerender":return 2;case "unloaded":return 3;default:return-1}};
_.mit=function(I){var C={},y=function(z,c,r){c=c.match("_rid")?c.split("_rid")[0]:c;typeof r==="number"&&(r=JSON.stringify(r));z.requestIds?z.requestIds.push({endpoint:c,id:r}):z.requestIds=[{endpoint:c,id:r}]};
I=_.T(Object.entries(I));for(var k=I.next();!k.done;k=I.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;switch(k){case "GetBrowse_rid":y(C,k,F);break;case "GetGuide_rid":y(C,k,F);break;case "GetHome_rid":y(C,k,F);break;case "GetPlayer_rid":y(C,k,F);break;case "GetSearch_rid":y(C,k,F);break;case "GetSettings_rid":y(C,k,F);break;case "GetTrending_rid":y(C,k,F);break;case "GetWatchNext_rid":y(C,k,F);break;case "yt_red":C.isRedSubscriber=!!F;break;case "yt_ad":C.isMonetized=!!F}}return C};
_.ZbO=function(I){var C=_.bW("aft",I);if(C)return C;C=_.Aq((I||"")+"TIMING_AFT_KEYS",["ol"]);for(var y=C.length,k=0;k<y;k++){var F=_.bW(C[k],I);if(F)return F}return NaN};
_.BbO=function(I,C){_.U8("ytglobal.timing"+(C||"")+"ready_",I)};
_.bW=function(I,C){if(I=_.plz(C)[I])return typeof I==="number"?I:I[I.length-1]};
_.diI=function(I){var C=_.bW("_start",I),y=_.ZbO(I),k=!E6X;C&&y&&k&&(OAW(hJ9,new UiF(Math.round(y-C),I)),E6X=!0)};
tG9=function(I){LXH(I);HbY();xim();I||(_.Aq("TIMING_ACTION")&&_.KH("PREVIOUS_ACTION",_.Aq("TIMING_ACTION")),_.KH("TIMING_ACTION",""))};
_.Jjz=function(I){I=I===void 0?{}:I;_.W5(function(){Y3();$iK();tG9();_.BbO(!1);I.cttAuthInfo&&(_.N1().cttAuthInfo=I.cttAuthInfo);_.KH("TIMING_AFT_KEYS",[]);I.isHot?_.Gg({loadType:"hot"}):_.Gg({loadType:"warm"});_.KH("TIMING_ACTION","");delete _.Aq("TIMING_INFO",{}).yt_lt;_.W5(_.KXs)(I.startTime,void 0)})()};
_.fA=function(I,C,y,k){C=C===void 0?{}:C;_.W5(function(){var F=y?y:I;Obt(F);var z=C.sampleRate;if(!_.V("web_csi_action_sampling_enabled")||z===void 0||z<=1)z=!1;else{var c=VGO(F);z=PLH(c)%z!==0}z&&(_.N1(F).actionDisabled=!0);_.XlF(F||"").info.actionType=I;C.cttAuthInfo&&(_.N1(F).cttAuthInfo=C.cttAuthInfo);_.KH(F+"TIMING_ACTION",I);_.W5(_.KXs)(C.startTime,F);z={actionType:k||_.bbs(I)};C.logPreviousAction&&(z.previousAction=_.bbs(_.Aq("TIMING_ACTION")));(c=_.Si())&&c!=="UNDEFINED_CSN"&&(z.clientScreenNonce=
c);_.Gg(z,F);_.BbO(!0,F)})()};
Obt=function(I){_.W5(function(){Y3(I);$iK(I);tG9(I)})()};
aAF=function(){_.W5(function(){var I=[],C;for(C in _.d5("ytcsi.".slice(0,-1)))C.endsWith("data_")&&I.push(C.slice(0,-5));I=_.T(I);for(C=I.next();!C.done;C=I.next())Obt(C.value);Y3()})()};
_.I9z=function(I){return _.W5(function(){return _.MGY("_start",I)})()};
_.Gg=function(I,C,y){_.W5(_.Rt)(I,C,y===void 0?!1:y)};
_.Sr=function(I,C,y){return _.W5(_.lW)(I,C,y)};
_.MGY=function(I,C){return _.W5(function(){var y=_.plz(C);return I in y})()};
srz=function(I){if(!_.V("universal_csi_network_ticks"))return"";I=_.Tl(I)||"";for(var C=Object.keys(Cpm),y=0;y<C.length;y++){var k=C[y];if(I.includes(k))return k}return""};
yeX=function(I){if(!_.V("universal_csi_network_ticks"))return function(){};
var C=Cpm[I];return C?(_.KA(C),function(){var y=_.V("universal_csi_network_ticks")?(y=oYm[I])?_.KA(y):!1:!1;return y}):function(){}};
_.KA=function(I,C,y){return _.W5(function(){if(_.MGY(I,y))return!1;_.Sr(I,C,y);return!0})()};
_.A7=function(I,C,y){_.W5(function(){if(!_.I9z(y)||_.MGY(I,y))return!1;_.Sr(I,C,y);return!0})()};
_.g9=function(I){return _.W5(_.bW)(I,void 0)};
Y3=function(I){_.I9z(I)&&_.Sr("aa",void 0,I)};
_.TrF=function(I,C,y,k,F,z,c,r,w){var L=kvm();r=new _.G5({veType:C,youtubeData:z,jspbYoutubeData:r});z=vQ({},L);F&&(z.cttAuthInfo=F);F={csn:L,pageVe:r.getAsJson()};_.V("expectation_logging")&&w&&w.screenCreatedLoggingExpectations&&(F.screenCreatedLoggingExpectations=w.screenCreatedLoggingExpectations);y&&y.visualElement?(F.implicitGesture={parentCsn:y.clientScreenNonce,gesturedVe:y.visualElement.getAsJson()},c&&(F.implicitGesture.gestureType=c)):y&&_.SN(new _.ph("newScreen() parent element does not have a VE - rootVe",
C));k&&(F.cloneCsn=k);I?l2("screenCreated",F,I,z):_.b2("screenCreated",F,z);OAW(ySO,new FIt(L));WQ.clear();uZI.clear();zxY.clear();return L};
d9=function(I,C,y,k,F){_.ceI(I,C,y,[k],F===void 0?!1:F)};
_.ceI=function(I,C,y,k,F){F=F===void 0?!1:F;for(var z=vQ({cttAuthInfo:Kq(C)||void 0},C),c=_.T(k),r=c.next();!r.done;r=c.next()){r=r.value;var w=r.getAsJson();(_.Le.isEmpty(w)||!w.trackingParams&&!w.veType)&&_.SN(Error("tf"));if(_.V("no_client_ve_attach_unless_shown")){var L=exK(r,C);if(w.veType&&!uZI.has(L)&&!zxY.has(L)&&!F){if(!_.V("il_attach_cache_limit")||WQ.size<1E3){WQ.set(L,[I,C,y,r]);return}_.V("il_attach_cache_limit")&&WQ.size>1E3&&_.SN(new _.ph("IL Attach cache exceeded limit"))}r=exK(y,
C);WQ.has(r)?reY(y,C):zxY.set(r,!0)}}k=k.filter(function(D){D.csn!==C?(D.csn=C,D=!0):D=!1;return D});
y={csn:C,parentVe:y.getAsJson(),childVes:_.pe(k,function(D){return D.getAsJson()})};
C==="UNDEFINED_CSN"?x3("visualElementAttached",z,y):I?l2("visualElementAttached",y,I,z):_.b2("visualElementAttached",y,z)};
wKW=function(I,C,y,k,F){iyz(I,C,y,F)};
iyz=function(I,C,y,k){nYm(y,C);var F=vQ({cttAuthInfo:Kq(C)||void 0},C);y={csn:C,ve:y.getAsJson(),eventType:1};k&&(y.clientData=k);C==="UNDEFINED_CSN"?x3("visualElementShown",F,y):I?l2("visualElementShown",y,I,F):_.b2("visualElementShown",y,F)};
Ppt=function(I,C,y,k){nYm(y,C);var F=vQ({cttAuthInfo:Kq(C)||void 0},C);y={csn:C,ve:y.getAsJson(),eventType:4};k&&(y.clientData=k);C==="UNDEFINED_CSN"?x3("visualElementShown",F,y):I?l2("visualElementShown",y,I,F):_.b2("visualElementShown",y,F)};
LIm=function(I,C,y,k,F){var z=(k=k===void 0?!1:k)?16:8;k=vQ({cttAuthInfo:Kq(C)||void 0,endOfSequence:k},C);y={csn:C,ve:y.getAsJson(),eventType:z};F&&(y.clientData=F);C==="UNDEFINED_CSN"?x3("visualElementHidden",k,y):I?l2("visualElementHidden",y,I,k):_.b2("visualElementHidden",y,k)};
pKH=function(I,C,y,k,F){DCO(I,C,y,void 0,k,F)};
DCO=function(I,C,y,k,F){nYm(y,C);k=k||"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK";var z=vQ({cttAuthInfo:Kq(C)||void 0},C);y={csn:C,ve:y.getAsJson(),gestureType:k};F&&(y.clientData=F);C==="UNDEFINED_CSN"?x3("visualElementGestured",z,y):I?l2("visualElementGestured",y,I,z):_.b2("visualElementGestured",y,z)};
QrO=function(I,C,y,k){var F=vQ({cttAuthInfo:Kq(C)||void 0},C);y={csn:C,ve:y.getAsJson(),clientData:k};C==="UNDEFINED_CSN"?x3("visualElementStateChanged",F,y):I?l2("visualElementStateChanged",y,I,F):_.b2("visualElementStateChanged",y,F)};
NrO=function(){var I=III(16);for(var C=[],y=0;y<I.length;y++)C.push("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(I[y]&63));return C.join("")};
x3=function(I,C,y){VEz.push({payloadName:I,payload:y,jspbPayload:void 0,options:C});jrz||(jrz=FjW())};
o9W=function(I){if(VEz){for(var C=_.T(VEz),y=C.next();!y.done;y=C.next())y=y.value,y.payload&&(y.payload.csn=I.csn,_.b2(y.payloadName,y.payload,y.options));VEz.length=0}jrz=0};
exK=function(I,C){return""+I.getAsJson().veType+I.getAsJson().veCounter+C};
nYm=function(I,C){if(_.V("no_client_ve_attach_unless_shown")){var y=exK(I,C);uZI.set(y,!0);reY(I,C)}};
reY=function(I,C){I=exK(I,C);WQ.has(I)&&(C=WQ.get(I)||[],d9(C[0],C[1],C[2],C[3],!0),WQ.delete(I))};
vQ=function(I,C){_.V("log_sequence_info_on_gel_web")&&(I.sequenceGroup=C);return I};
_.q1=function(I,C,y){_.W5(d9)(void 0,I,C,y)};
_.mM=function(I,C){_.W5(wKW)(void 0,I,C,void 0,void 0,void 0)};
_.Z0=function(I,C,y){_.W5(function(){_.mn(C,function(k){Ppt(void 0,I,k,y)})})()};
_.BQ=function(I,C,y,k){_.W5(function(){_.mn(C,function(F){LIm(void 0,I,F,y,k)})})()};
_.EN=function(I,C,y){_.W5(pKH)(void 0,I,C,y,void 0)};
_.h7=function(I,C,y,k){_.W5(DCO)(void 0,I,C,y,k,void 0)};
_.UN=function(I,C,y){_.W5(QrO)(void 0,I,C,y,void 0)};
t7=function(I){return HQ.get(I)};
l9z=function(I,C){HQ.set(I,C)};
XKz=function(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,function(I){return(+I^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+I/4).toString(16)})};
YIt=function(I,C){C=C===void 0?{}:C;if(J7&&J7.sample(I,C)){var y=$CX++,k,F;I=new RxW(I,C,performance.now(),y,bys,(F=(k=ON)==null?void 0:k.traceId)!=null?F:y);if(ON){var z;(z=ON).children||(z.children=[]);ON.children.push(I)}y=_.T(J7.spanProcessors);for(k=y.next();!k.done;k=y.next())z=F=void 0,(z=(F=k.value).onSpanStart)==null||z.call(F,I);return ON=I}};
GvI=function(I){var C;return(C=J7)==null?void 0:C.sample(I,void 0)};
f9X=function(I){bys=XKz();J7=I};
SIs=function(I,C,y){if(!I)return C(y);var k=void 0;try{return C(y)}catch(F){throw k="error",F;}finally{I==null||I.close(k)}};
KIt=function(I,C){var y=Object.keys(I);I=new _.ph("[Command Handler] "+C,{filteredCommandNames:y,originalCommand:I});_.GB(I)};
Ae9=function(I,C){KIt(I,C+" was called but not set")};
gYs=function(I){return function(){return new I}};
at=function(I){return function(){return _.N().resolve(I)}};
vYW=function(I,C){var y=_.l(I,_.WH);if(y&&(y=C[y.signal]))return y();I=_.T(Object.keys(I));for(y=I.next();!y.done;y=I.next())if(y=y.value,C[y]&&(y=C[y]))return y()};
M1=function(I,C,y,k){return{browseEndpoint:{browseId:I},commandMetadata:{webCommandMetadata:{url:C,rootVe:y,webPageType:k===void 0?"WEB_PAGE_TYPE_BROWSE":k}}}};
WIm=function(I,C,y){var k=C=C===void 0?0:C;y=y===void 0?0:y;var F=y-k;return _.IQ(I,"PPSV",void 0,void 0,(F>600?0:F<60||y<=0||k/y>.9)?0:C)};
_.IQ=function(I,C,y,k,F){var z="/watch?v="+I;I={videoId:I};C&&(I.playlistId=C,z+="&list="+C);k&&(z+="&pp="+k);F&&(I.startTimeSeconds=F,z+="&t="+F+"s");C={watchEndpoint:I,commandMetadata:{webCommandMetadata:{url:z,rootVe:3832,webPageType:"WEB_PAGE_TYPE_WATCH"}}};y&&(C.clickTrackingParams=y);k&&(_.l(C,_.H$).playerParams=k);return C};
dCm=function(I){return{browseEndpoint:{browseId:"VL"+I},commandMetadata:{webCommandMetadata:{url:"/playlist?list="+I,rootVe:5754,webPageType:"WEB_PAGE_TYPE_PLAYLIST"}}}};
xCK=function(I){if(I){var C;if(I){var y=(C=_.l(I.commandMetadata,_.It))==null?void 0:C.url;C=!(!y||y==="/service_ajax")}else C=!1;if(C)return I;var k;if(I=(k=_.l(I,_.r9))==null?void 0:k.commands)for(k=_.T(I),I=k.next();!I.done;I=k.next())if(I=xCK(I.value))return I}};
_.Cx=function(I){return{runs:[{text:I}]}};
qIF=function(I,C){return I&&C?{runs:[{text:I,navigationEndpoint:C}]}:void 0};
se=function(I){return I?_.Cx(I):void 0};
_.oQ=function(I){return I?{simpleText:I}:void 0};
_.yE=function(I){var C=I.type;I=I.payload;C={type:C};I!==void 0&&(C.payload=I);return C};
mCz=function(I,C,y){for(var k=Object.assign({},I),F=_.T(Object.keys(C)),z=F.next();!z.done;z=F.next()){z=z.value;var c=I[z],r=C[z];if(r===void 0)delete k[z];else if(c===void 0)k[z]=r;else if(Array.isArray(r)&&Array.isArray(c))k[z]=y?[].concat(_.Py(c),_.Py(r)):r;else if(!Array.isArray(r)&&_.sw(r)&&!Array.isArray(c)&&_.sw(c))k[z]=mCz(c,r,y);else if(typeof r===typeof c)k[z]=r;else return C=new _.ph("Attempted to merge fields of differing types.",{name:"DeepMergeError",key:z,originalValue:c,updateValue:r}),
_.GB(C),I}return k};
EYt=function(I){if(!I.length)return"";try{if(ZyY)return ZyY.decode(I);if("FetchInternal"in window)return FetchInternal.decodeFromUTF8(I)}catch(c){}for(var C=0,y=[],k=I.length;C<k;){for(var F=0;F<1024&&C<k;){var z=I[C++];if(z<128)BrO[F++]=z;else{if(z<224)z=(z&31)<<6|I[C++]&63;else if(z<240)z=(z&15)<<12|(I[C++]&63)<<6|I[C++]&63;else{if(F+1===1024){--C;break}z=(z&7)<<18|(I[C++]&63)<<12|(I[C++]&63)<<6|I[C++]&63;z-=65536;BrO[F++]=55296|z>>10;z=56320|z&1023}BrO[F++]=z}}z=String.fromCharCode.apply(String,
BrO);F<1024&&(z=z.substring(0,F));y.push(z)}return y.join("")};
UC9=function(I,C){var y;if((y=hxF)==null?0:y.encodeInto)return C=hxF.encodeInto(I,C),C.read<I.length?I.length*4:C.written;for(var k=y=0;k<I.length;k++){var F=I.charCodeAt(k);F<128?C[y++]=F:(F<2048?C[y++]=F>>6|192:((F&64512)===55296&&k+1<I.length&&(I.charCodeAt(k+1)&64512)===56320?(F=65536+((F&1023)<<10)+(I.charCodeAt(++k)&1023),C[y++]=F>>18|240,C[y++]=F>>12&63|128):C[y++]=F>>12|224,C[y++]=F>>6&63|128),C[y++]=F&63|128)}return y};
HyI=function(I,C){I=new Uint8Array(I);C&&I.set(C);return I};
_.Fy=function(I){I=new tEK(new Jet([_.T0(decodeURIComponent(I))]));if(Oys(I,2)){var C=k9(I);var y=I.pos;y=I.arrayView.getDataView(y===void 0?0:y,C===void 0?-1:C);y=new Uint8Array(y.buffer,y.byteOffset,y.byteLength);I.pos+=C;C=y}else C=void 0;C=C?EYt(C):void 0;I=Oys(I,4)?k9(I):void 0;y=a9H[I];if(typeof y==="undefined")throw I=new _.ph("Failed to recognize field number",{name:"EntityKeyHelperError",fieldNumber:I}),_.GB(I),I;return{entityTypeFieldNumber:I,entityType:y,entityId:C}};
_.TL=function(I,C,y){y=y===void 0?0:y;var k=new MEF;if(hxF)I=hxF.encode(I);else{var F=new Uint8Array(Math.ceil(I.length*1.2)),z=UC9(I,F);F.length<z&&(F=new Uint8Array(z),z=UC9(I,F));F.length>z&&(F=F.subarray(0,z));I=F}I!==void 0&&(u6(k,18),F=I.length,u6(k,F),zL(k,F),k.buf.set(I,k.pos),k.pos+=F);I=IQt[C];if(typeof I==="undefined")throw y=new _.ph("Failed to recognize entity type",{name:"EntityKeyHelperError",entityType:C}),_.GB(y),y;I!==void 0&&(u6(k,32),u6(k,I));u6(k,40);u6(k,1);C=new Uint8Array(k.buf.buffer,
k.buf.byteOffset,k.pos);return encodeURIComponent(_.HR(C,y))};
Cb9=function(I){I=I.key||I.id;if(!I)throw Error("xf");return I};
o1W=function(I,C){I=I===void 0?{}:I;return snm(I,C)};
ypI=function(I,C,y,k){if(k===void 0)return k=Object.assign({},I[C]||{}),y=(delete k[y],k),k={},Object.assign({},I,(k[C]=y,k));var F={},z={};return Object.assign({},I,(z[C]=Object.assign({},I[C],(F[y]=k,F)),z))};
kJz=function(I,C,y,k,F){var z=I[C];if(z==null||!z[y])return I;k=mCz(z[y],k,F==="REPEATED_FIELDS_MERGE_OPTION_APPEND");F={};z={};return Object.assign({},I,(z[C]=Object.assign({},I[C],(F[y]=k,F)),z))};
_.cg=function(I,C,y){return I[C]?I[C][y]||null:null};
uCY=function(){if(Fam)return Fam();var I={};Fam=tY("PersistentEntityStoreDb",{objectStores:(I.EntityStore={addedAtVersion:1},I.EntityAssociationStore={addedAtVersion:2},I),shared:!1,upgrade:function(C,y){y(1)&&vF(gI(C,"EntityStore",{keyPath:"key"}),"entityType","entityType");y(2)&&(C=gI(C,"EntityAssociationStore",{keyPath:["parentEntityKey","childEntityKey"]}),vF(C,"byParentEntityKey","parentEntityKey"),vF(C,"byChildEntityKey","childEntityKey"))},
version:3});return Fam()};
zXO=function(I){return _.qS(uCY(),I)};
ed=function(I){return window.Int32Array?new Int32Array(I):Array(I)};
cp9=function(I){return _.qS(ToX(),I)};
eXs=function(I){return new ri("WRONG_DATA_TYPE",{encoderVersion:I})};
rp9=function(I){return I instanceof Error?new ri("UNKNOWN_ENCODE_ERROR",{originalMessage:I.message}):new ri("UNKNOWN_ENCODE_ERROR")};
i6O=function(I){return I instanceof Error?new ri("UNKNOWN_DECODE_ERROR",{originalMessage:I.message}):new ri("UNKNOWN_DECODE_ERROR")};
wCX=function(I,C){I=I instanceof ri?I:C(I);_.GB(I);throw I;};
n1s=function(I){I=(new TextEncoder).encode(I).subarray(0,16);var C=new Uint8Array(16);C.set(I);return C};
LaK=function(I){var C=PbI[I];if(C)return C;_.SN(new _.ph("Entity model not found.",{entityType:I}))};
_.i6=function(){D7z||(D7z=pCI());return D7z};
pCI=function(){var I,C,y;return _.e(function(k){if(k.nextAddress==1)return _.aM(k,2),_.n(k,_.HN(),4);if(k.nextAddress!=2){I=k.yieldResult;if(!I||!_.DJ()||typeof _.sF.BroadcastChannel==="undefined")return k.return();C=new QnO;return k.return(new wi(I,C))}y=_.sj(k);y instanceof Error&&_.GB(y);return k.return()})};
_.nx=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1){y=I.mutations;if(!y||y.length<=0)return k.return();C&&C.dispatch(_.yE({type:"ENTITY_LOADED",payload:y}));return _.n(k,Nom(y),2)}y.length=0;_.oI(k)})};
Nom=function(I){var C;return _.e(function(y){return y.nextAddress==1?_.n(y,_.i6(),2):(C=y.yieldResult)?_.n(y,_.Pg(C,"readwrite",function(k){for(var F={},z=_.T(I),c=z.next(),r={};!c.done;r={mutation$jscomp$4:void 0,mutationEntityType$jscomp$3:void 0},c=z.next())r.mutation$jscomp$4=c.value,r.mutation$jscomp$4.entityKey&&V_z(r.mutation$jscomp$4)&&(r.mutationEntityType$jscomp$3=(0,_.Le.getAnyKey)(r.mutation$jscomp$4.payload),c=void 0,r.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_REPLACE"&&(c=function(w){return function(){return _.jnH(k,
w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(r)),r.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_DELETE"&&(c=function(w){return function(){return lQO(k,w.mutation$jscomp$4.entityKey)}}(r)),r.mutation$jscomp$4.type==="ENTITY_MUTATION_TYPE_UPDATE"&&(c=function(w){return function(){return XCY(k,w.mutation$jscomp$4.entityKey,w.mutation$jscomp$4.payload[w.mutationEntityType$jscomp$3],w.mutationEntityType$jscomp$3)}}(r)),c&&(F[r.mutation$jscomp$4.entityKey]=
F[r.mutation$jscomp$4.entityKey]?F[r.mutation$jscomp$4.entityKey].then(c):c()));
return AY.all(Object.values(F))}),0):y.return()})};
V_z=function(I){var C;I=(C=I.options)==null?void 0:C.persistenceOption;return I==="ENTITY_PERSISTENCE_OPTION_PERSIST"||I==="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST"};
b6s=function(I,C){var y,k;_.e(function(F){if(F.nextAddress==1)return _.n(F,_.i6(),2);if(F.nextAddress!=3)return(y=F.yieldResult)?_.n(F,_.Pg(y,"readonly",function(z){var c={},r=Object.keys(C).map(function(w){var L=C[w]?[].concat(_.Py(C[w])):[];return $7z(z,w,L,c)});
return AY.all(r).then(function(){return c})}),3):F.return();
k=F.yieldResult;Object.keys(k).length>0&&I.dispatch(RXH(k));_.oI(F)})};
$7z=function(I,C,y,k){return Lx(I,C,y).then(function(F){k[C]=YVY(y,F)})};
YVY=function(I,C){if(C.length!==I.length)throw Error("Af");return C.reduce(function(y,k,F){y[I[F]]=k;return y},{})};
SVt=function(I){var C=I.filter(function(F){var z;return(F==null?void 0:(z=F.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_COMPLETE"}).length,y=I.filter(function(F){var z;
return(F==null?void 0:(z=F.transferEntity)==null?void 0:z.transferState)==="TRANSFER_STATE_FAILED"}).length,k=I.filter(function(F){var z;
return(F==null?void 0:(z=F.transferEntity)==null?void 0:z.transferState)&&GJz.includes(F.transferEntity.transferState)});
if(!(C||k!=null&&k.length))return 0;C=_.fQO(k)+C;I=I.length-y;return I===0?0:Math.round(C*100/I)/100};
_.fQO=function(I){var C=[];C=C.concat.apply(C,_.Py(I.filter(function(z){return z.streamEntity}).map(function(z){var c=Object.assign({},z.streamEntity),r,w=(r=z.transferEntity)==null?void 0:r.transferState;
c.streamsProgress=c.streamsProgress||[];c.streamsProgress=c.streamsProgress.map(function(L){var D=Object.assign({},L);D.numBytesDownloaded=w==="TRANSFER_STATE_COMPLETE"?L.numTotalBytes:L.numBytesDownloaded;return D});
return c}).map(function(z){return z.streamsProgress})));
var y=I=0;C=_.T(C);for(var k=C.next();!k.done;k=C.next()){var F=k.value;k=Number(F.numBytesDownloaded);F=Number(F.numTotalBytes);y+=isNaN(k)?0:k;I+=isNaN(F)?0:F}return I===0?0:Math.round(y*100/I)/100};
Kaz=function(I){if(!I||!I.expirationTimestamp||!I.action)return!1;var C=(0,_.JY)()/1E3;return Number(I.expirationTimestamp)>=C};
Dk=function(I){return I&&I.expirationTimestamp&&I.action?Kaz(I)&&I.action==="OFFLINE_VIDEO_POLICY_ACTION_OK":!1};
_.px=function(I){return["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"].includes(I||"TRANSFER_STATE_UNKNOWN")};
ApW=function(I){var C=new MEF;if(I!==void 0){var y=Math.ceil(Math.log2(I.length*4+2)/7);y=y===void 0?2:y;u6(C,10);C.submessagePosStack.push(C.pos);C.submessagePosStack.push(y);C.pos+=y;zL(C,I.length*1.2);y=UC9(I,C.buf.subarray(C.pos));C.pos+y>C.buf.length&&(zL(C,y),y=UC9(I,C.buf.subarray(C.pos)));C.pos+=y;I=C.submessagePosStack.pop();y=C.submessagePosStack.pop();for(var k=C.pos-y-I;I--;){var F=I?128:0;C.view.setUint8(y++,k&127|F);k>>=7}}C=new Uint8Array(C.buf.buffer,C.buf.byteOffset,C.pos);return(new TextDecoder("utf-8")).decode(C)};
_.QE=function(I){var C=0;I=_.T(I);for(var y=I.next(),k={};!y.done;k={transferState$jscomp$3:void 0},y=I.next()){var F=y.value,z=void 0;y=(z=F.streamEntity)!=null?z:{};z=void 0;k.transferState$jscomp$3=(z=F.transferEntity)==null?void 0:z.transferState;z=F=void 0;((F=y)==null?0:(z=F.streamsProgress)==null?0:z.length)&&y.streamsProgress.forEach(function(c){return function(r){r=Number(c.transferState$jscomp$3==="TRANSFER_STATE_COMPLETE"?r.numTotalBytes:r.numBytesDownloaded);isFinite(r)&&(C+=r)}}(k))}return C};
g1t=function(I){return I.some(function(C){var y;if(!(C==null?0:(y=C.transferEntity)==null?0:y.transferState)){var k;return!(C==null?0:(k=C.policyEntity)==null?0:k.action)||C.policyEntity.action==="OFFLINE_VIDEO_POLICY_ACTION_OK"}return GJz.includes(C.transferEntity.transferState)})};
v1Y=function(I,C){if(!C)return!1;if(_.V("of_pb_en_po_ks"))return!0;var y;I=(y=_.cg(I,"offlineVideoPolicy",_.TL(C,"offlineVideoPolicy")))!=null?y:void 0;return!!I&&Dk(I)};
_.d7K=function(I){var C=["TRANSFER_STATE_COMPLETE"];C=C===void 0?WaF:C;return I.filter(function(y){var k,F;return C.includes((F=(k=y.transferEntity)==null?void 0:k.transferState)!=null?F:"TRANSFER_STATE_UNKNOWN")})};
x79=function(I,C){if(C){var y,k=(y=_.cg(I,"playbackData",_.TL(C,"playbackData")))!=null?y:null,F;y=(F=_.cg(I,"transfer",_.TL(C,"transfer")))!=null?F:null;var z;F=(z=_.cg(I,"offlineVideoStreams",_.TL(C,"offlineVideoStreams")))!=null?z:null;var c;I=(c=_.cg(I,"offlineVideoPolicy",_.TL(C,"offlineVideoPolicy")))!=null?c:null;if(k||y||F||I)return{playbackDataEntity:k,transferEntity:y,streamEntity:F,policyEntity:I}}};
_.Nk=function(I){var C=I.playbackData;if(!C)return[];var y=[];C=_.T(Object.keys(C));for(var k=C.next();!k.done;k=C.next()){var F=k.value;if(!qVs(I,_.Fy(F).entityId)&&(k=x79(I,_.Fy(F).entityId))){var z=void 0,c=void 0;F=(c=Number((z=_.cg(I,"playbackData",F))==null?void 0:z.streamDownloadTimestampSeconds))!=null?c:(0,_.JY)();y.push({entity:k,streamDownloadTimestamp:F})}}return y.sort(function(r,w){var L=r.streamDownloadTimestamp,D=w.streamDownloadTimestamp;return D===L?r.entity.streamEntity&&!w.entity.streamEntity?
1:-1:D-L}).map(function(r){return r.entity})};
m7m=function(I){return _.d7K(_.Nk(I))};
_.Z6W=function(I){return _.Nk(I).filter(function(C){var y;if(((y=C.policyEntity)==null?0:y.action)&&C.policyEntity.action!=="OFFLINE_VIDEO_POLICY_ACTION_OK")return!1;var k;if((k=C.transferEntity)==null?0:k.transferState){var F;return GJz.includes((F=C.transferEntity)==null?void 0:F.transferState)}return!0})};
qVs=function(I,C){var y;return((y=_.cg(I,"downloadStatusEntity",_.TL(C,"downloadStatusEntity")))==null?void 0:y.downloadState)==="DOWNLOAD_STATE_USER_DELETED"?!0:!1};
Bo9=function(I){var C;if(I==null?0:(C=I.playbackDataEntity)==null?0:C.key)return _.Fy(I.playbackDataEntity.key).entityId;var y;if(I==null?0:(y=I.transferEntity)==null?0:y.key)return _.Fy(I.transferEntity.key).entityId;var k;if(I==null?0:(k=I.streamEntity)==null?0:k.key)return _.Fy(I.streamEntity.key).entityId;var F;if(I==null?0:(F=I.policyEntity)==null?0:F.key)return _.Fy(I.policyEntity.key).entityId};
hXF=function(I){var C=new Set,y;I=(y=I.mainDownloadsListEntity)==null?void 0:y[E1W];var k;if(!(I==null?0:(k=I.downloads)==null?0:k.length))return C;var F;I==null||(F=I.downloads)==null||F.forEach(function(z){(z==null?0:z.videoItem)&&C.add(z.videoItem)});
return C};
VE=function(I,C){if(C){var y=_.cg(I,"mainVideoEntity",_.TL(C,"mainVideoEntity")),k=_.cg(I,"downloadStatusEntity",_.TL(C,"downloadStatusEntity")),F=_.cg(I,"ytMainChannelEntity",_.TL(C,"ytMainChannelEntity")),z={playbackDataEntity:null,transferEntity:null,streamEntity:null,policyEntity:null};I=x79(I,C);k=(k==null?void 0:k.downloadState)==="DOWNLOAD_STATE_PENDING_DOWNLOAD"||!_.V("woffle_render_failed_download_state_ks")&&(k==null?void 0:k.downloadState)==="DOWNLOAD_STATE_FAILED";!I&&k&&(I=z);if(I&&y&&
F)return Object.assign({},{videoEntity:y,channelEntity:F},I)}};
H69=function(I,C){return U7Y(I,C)==="TRANSFER_STATE_COMPLETE"&&v1Y(I,C)};
t_O=function(I,C){if(!C)return!1;var y;I=(y=_.cg(I,"playbackData",_.TL(C,"playbackData")))!=null?y:void 0;return!!I&&!!I.playerResponseJson};
U7Y=function(I,C){if(!C)return"TRANSFER_STATE_UNKNOWN";var y=_.cg(I,"transfer",_.TL(C,"transfer"));if(y){var k;return(k=y.transferState)!=null?k:"TRANSFER_STATE_UNKNOWN"}y=_.cg(I,"offlineOrchestrationActionWrapperEntity",_.TL(C,"offlineOrchestrationActionWrapperEntity"));I=_.cg(I,"mainVideoEntity",_.TL(C,"mainVideoEntity"));return y||I?"TRANSFER_STATE_TRANSFER_IN_QUEUE":"TRANSFER_STATE_UNKNOWN"};
JpI=function(I,C){if(!C)return"TRANSFER_STATE_UNKNOWN";if(I=_.cg(I,"transfer",_.TL(C,"transfer"))){var y;return(y=I.transferState)!=null?y:"TRANSFER_STATE_UNKNOWN"}return"TRANSFER_STATE_UNKNOWN"};
O6K=function(I,C){return C&&(I=_.cg(I,"videoPlaybackPositionEntity",_.TL(C,"videoPlaybackPositionEntity")),I==null?0:I.lastPlaybackPositionSeconds)?Number(I.lastPlaybackPositionSeconds):0};
M_F=function(I,C){return aQY(I).some(function(y){var k;return(y==null?void 0:(k=y.mainPlaylistEntity)==null?void 0:k.playlistId)===C})};
CuF=function(I,C,y){var k=IsH(I,C);if(!k.length)return[];C=[];k=_.T(k);for(var F=k.next();!F.done;F=k.next()){F=F.value;var z=VE(I,F);y&&U7Y(I,F)!=="TRANSFER_STATE_COMPLETE"||z&&C.push(z)}return C};
IsH=function(I,C){if(!C)return[];var y=_.TL(C,"mainPlaylistEntity"),k;C=(k=I.mainPlaylistEntity)==null?void 0:k[y];k=[];if(C==null||!C.videos)return k;C=_.T(C.videos);for(y=C.next();!y.done;y=C.next()){y=y.value;var F=void 0,z=void 0,c=void 0,r=(F=I)==null?void 0:(z=F.mainPlaylistVideoEntity)==null?void 0:(c=z[y])==null?void 0:c.video;r&&(y=_.Fy(r).entityId)&&k.push(y)}return k};
siH=function(I,C){if(C){var y=_.cg(I,"mainPlaylistEntity",_.TL(C,"mainPlaylistEntity")),k=_.cg(I,"mainPlaylistDownloadStateEntity",_.TL(C,"mainPlaylistDownloadStateEntity"));I=_.cg(I,"ytMainChannelEntity",_.TL(C,"ytMainChannelEntity"));if(k&&y)return Object.assign({},{mainPlaylistEntity:y,mainPlaylistDownloadStateEntity:k},!!I&&{channelEntity:I})}};
aQY=function(I){return orH(I).sort(function(C,y){return y.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedPlaylistEntities})};
orH=function(I){var C=I.mainPlaylistDownloadStateEntity,y=[];if(!C)return y;for(var k=_.T(Object.keys(C)),F=k.next();!F.done;F=k.next()){var z=F.value;F=siH(I,_.Fy(z).entityId);var c=void 0;z=Number((c=C[z])==null?void 0:c.addedTimestampMillis);c=isNaN(z)?(0,_.JY)():z;F!==void 0&&y.push({downloadedPlaylistEntities:F,addedTimestampMillis:c})}return y};
ywY=function(I){var C,y=(C=I.mainPlaylistVideoEntity)!=null?C:{};return new Set(aQY(I).reduce(function(k,F){k=k===void 0?[]:k;var z,c;F==null||(z=F.mainPlaylistEntity)==null||(c=z.videos)==null||c.forEach(function(r){var w;(r=(w=y[r])==null?void 0:w.video)&&k.push(r)});
return k},[]))};
grm=function(I){return"downloadedMusicPlaylistEntities"in I};
vrY=function(I){return"mainPlaylistEntity"in I&&"mainPlaylistDownloadStateEntity"in I};
WqK=function(I){return"videoEntity"in I&&"channelEntity"in I};
duK=function(I){var C=I.musicPlaylistDownloadMetadataEntity,y=[];if(!C)return y;for(var k=_.T(Object.keys(C)),F=k.next();!F.done;F=k.next()){F=F.value;a:{var z=I,c=_.Fy(F).entityId;if(c){var r=_.cg(z,"musicPlaylist",_.TL(c,"musicPlaylist"));z=_.cg(z,"musicPlaylistDownloadMetadataEntity",_.TL(c,"musicPlaylistDownloadMetadataEntity"));if(r&&z){r={musicPlaylistEntity:r,musicPlaylistDownloadStateEntity:z};break a}}r=void 0}z=void 0;F=Number((z=C[F])==null?void 0:z.addedTimestampMillis);F=isNaN(F)?(0,_.JY)():
F;r!==void 0&&y.push({downloadedMusicPlaylistEntities:r,addedTimestampMillis:F})}return y};
xuz=function(I){var C=new Set;I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,"musicPlaylistEntity"in y&&"musicPlaylistDownloadStateEntity"in y){y=_.T(y.musicPlaylistEntity.tracks);for(var k=y.next();!k.done;k=y.next())C.add(k.value)}return C};
qJz=function(I,C){if(C){var y=_.cg(I,"musicTrack",_.TL(C,"musicTrack")),k=_.cg(I,"musicArtist",_.TL(C,"musicArtist"))||{};if((I=x79(I,C))&&y&&k)return Object.assign({},{musicTrackEntity:y,musicArtistEntity:k},I)}};
mum=function(I){var C=I.musicTrackDownloadMetadataEntity,y=[];if(!C)return[];C=_.T(Object.keys(C));for(var k=C.next();!k.done;k=C.next()){var F=k.value;k=qJz(I,_.Fy(F).entityId);var z=void 0;F=Number((z=_.cg(I,"musicTrackDownloadMetadataEntity",F))==null?void 0:z.addedTimestampMillis);z=isNaN(F)?(0,_.JY)():F;k!==void 0&&y.push({downloadedMusicEntities:k,addedTimestampMillis:z})}return y};
ErX=function(I,C){if(!C)return[];if(Object.values(ZVX).includes(C))return BkF(I,C);C=_.TL(C,"musicPlaylist");var y;I=(y=I.musicPlaylist)==null?void 0:y[C];y=[];if(I==null||!I.tracks)return y;I=_.T(I.tracks);for(C=I.next();!C.done;C=I.next())(C=_.Fy(C.value).entityId)&&y.push(C);return y};
BkF=function(I,C){var y=new Set,k=duK(I).map(function(z){return z.downloadedMusicPlaylistEntities});
k=xuz(k);k=_.T(k);for(var F=k.next();!F.done;F=k.next())(F=_.Fy(F.value).entityId)&&y.add(F);return htX(I).downloadedMusicEntities.filter(function(z){var c;if((c=z.musicTrackEntity)!=null&&c.videoId){z=z.musicTrackEntity;if(c=C==="PPOM"?!0:!y.has(z.videoId))b:switch(z=z.musicVideoType,C){case "PPSE":c=z==="MUSIC_VIDEO_TYPE_PODCAST_EPISODE";break b;default:c=z!=="MUSIC_VIDEO_TYPE_PODCAST_EPISODE"}z=c}else z=!1;return z}).map(function(z){var c;
return(c=z.musicTrackEntity)==null?void 0:c.videoId})};
htX=function(I){var C=mum(I).sort(function(y,k){return k.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:grm(y)?y.downloadedMusicPlaylistEntities:{}});
I=duK(I).sort(function(y,k){return k.addedTimestampMillis-y.addedTimestampMillis}).map(function(y){return"downloadedMusicEntities"in y?y.downloadedMusicEntities:grm(y)?y.downloadedMusicPlaylistEntities:{}});
return{downloadedMusicEntities:C,downloadedMusicPlaylistEntities:I}};
HVK=function(I,C){C=_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?ErX(I,C):IsH(I,C);if(!C.length)return"TRANSFER_STATE_UNKNOWN";C=C.map(function(y){return JpI(I,y)});
return UuO(C)};
UuO=function(I){var C=new Set(I);if(C.has("TRANSFER_STATE_FAILED")&&C.size===1)return"TRANSFER_STATE_FAILED";C.delete("TRANSFER_STATE_FAILED");if(C.has("TRANSFER_STATE_UNKNOWN")&&C.size===1)return"TRANSFER_STATE_PRE_TRANSFER";C.delete("TRANSFER_STATE_UNKNOWN");if(C.has("TRANSFER_STATE_PRE_TRANSFER")&&C.size===1||C.size===0)return"TRANSFER_STATE_PRE_TRANSFER";I=C.has("TRANSFER_STATE_TRANSFERRING");C=C.has("TRANSFER_STATE_TRANSFER_IN_QUEUE");return I||C?"TRANSFER_STATE_TRANSFERRING":"TRANSFER_STATE_COMPLETE"};
jd=function(I){var C=I.mainVideoDownloadStateEntity,y=[];if(!C)return[];C=_.T(Object.keys(C));for(var k=C.next();!k.done;k=C.next()){var F=k.value;if(!qVs(I,_.Fy(F).entityId)){k=VE(I,_.Fy(F).entityId);var z=void 0,c=void 0;F=(c=Number((z=_.cg(I,"mainVideoDownloadStateEntity",F))==null?void 0:z.addedTimestampMillis))!=null?c:(0,_.JY)();k!==void 0&&y.push({downloadedVideoEntities:k,addedTimestampMillis:F})}}return y};
tcX=function(I){return jd(I).sort(function(C,y){return y.addedTimestampMillis-C.addedTimestampMillis}).map(function(C){return C.downloadedVideoEntities})};
_.OVK=function(I){var C=ywY(I),y=_.l6(I),k=hXF(I),F=jd(I).filter(function(c){var r,w;if((c==null?void 0:(r=c.downloadedVideoEntities)==null?void 0:(w=r.transferEntity)==null?void 0:w.transferState)!=="TRANSFER_STATE_COMPLETE")return!1;var L,D;c=c==null?void 0:(L=c.downloadedVideoEntities)==null?void 0:(D=L.videoEntity)==null?void 0:D.key;return _.V("kevlar_use_library_entity")?c&&(k.has(c)||y[c]):c&&!C.has(c)}),z=orH(I).filter(function(c){return HVK(I,c.downloadedPlaylistEntities.mainPlaylistEntity.playlistId)===
"TRANSFER_STATE_COMPLETE"});
return[].concat(_.Py(F),_.Py(z)).sort(function(c,r){return r.addedTimestampMillis-c.addedTimestampMillis}).map(function(c){return Jwz(c)})};
ass=function(I,C){if(C&&v1Y(I,C)){var y,k,F=(k=(y=_.cg(I,"playbackData",_.TL(C,"playbackData")))!=null?y:void 0)==null?void 0:k.playerResponseJson;if(F){try{var z=JSON.parse(F);var c=_.cg(I,"transfer",_.TL(C,"transfer")),r=O6K(I,C);r&&(z=Object.assign({},z,{playerConfig:Object.assign({},z.playerConfig,{playbackStartConfig:{startPosition:{streamTimeMillis:""+r*1E3}}})}));z.cotn=c==null?void 0:c.cotn}catch(w){}return z}}};
_.CvK=function(I){var C,y,k;I=(k=(y=((C=I.downloadsPageViewConfigurationEntity)!=null?C:{})[Mcm])==null?void 0:y.smartDownloadsOptInBannerVisibility)!=null?k:{};var F;return(F=_.l(I,INY))!=null?F:{}};
_.l6=function(I){var C,y,k;I=(k=(y=((C=I.mainDownloadsListEntity)!=null?C:{})[_.s$z])==null?void 0:y.downloads)!=null?k:[];C={};y=_.T(I);for(k=y.next();!k.done;k=y.next())I=void 0,C[(I=k.value.videoItem)!=null?I:""]=!0;return C};
ofY=function(I){var C=_.l6(I);if(Object.keys(C).length===0)return!1;var y=I.mainVideoEntity;if(!y)return!0;y=_.T(Object.keys(y));for(var k=y.next();!k.done;k=y.next()){k=k.value;var F=_.Fy(k).entityId;if(C[k]&&!qVs(I,F))return!1}return!0};
_.Xy=function(I){var C=_.l6(I);return jd(I).sort(function(y,k){return y.addedTimestampMillis-k.addedTimestampMillis}).map(function(y){return y.downloadedVideoEntities}).filter(function(y){var k;
return(y=y==null?void 0:(k=y.videoEntity)==null?void 0:k.key)&&!!C[y]})};
Jwz=function(I){return"downloadedVideoEntities"in I?I.downloadedVideoEntities:"downloadedPlaylistEntities"in I?I.downloadedPlaylistEntities:{}};
yo9=function(I){var C=_.l6(I),y=ywY(I),k=jd(I).filter(function(F){var z,c;return(F=F==null?void 0:(z=F.downloadedVideoEntities)==null?void 0:(c=z.videoEntity)==null?void 0:c.key)&&!C[F]&&!y.has(F)});
I=orH(I);return[].concat(_.Py(k),_.Py(I)).sort(function(F,z){return z.addedTimestampMillis-F.addedTimestampMillis}).map(function(F){return Jwz(F)})};
_.$9=function(I){if(!_.V("kevlar_use_library_entity"))return yo9(I);var C=jd(I).filter(function(k){var F,z;if(F=k=k==null?void 0:(F=k.downloadedVideoEntities)==null?void 0:(z=F.videoEntity)==null?void 0:z.key){var c,r,w;F=((r=(c=I.mainDownloadsListEntity)==null?void 0:c[E1W])==null?0:(w=r.downloads)==null?0:w.length)?hXF(I).has(k):!1}return F}),y=orH(I);
return[].concat(_.Py(C),_.Py(y)).sort(function(k,F){return F.addedTimestampMillis-k.addedTimestampMillis}).map(function(k){return Jwz(k)})};
kXs=function(I){var C=_.l6(I),y=ywY(I);return tcX(I).filter(function(k){var F;return(k=k==null?void 0:(F=k.videoEntity)==null?void 0:F.key)&&!C[k]&&!y.has(k)})};
F_I=function(I){if(!_.V("kevlar_use_library_entity"))return kXs(I);var C=_.l6(I),y=hXF(I);return tcX(I).filter(function(k){var F;return(k=k==null?void 0:(F=k.videoEntity)==null?void 0:F.key)&&!C[k]&&y.has(k)})};
uHm=function(I,C){C=_.TL(C,"settingEntity");var y,k,F;return!!((F=(k=((y=I.settingEntity)!=null?y:{})[C])==null?void 0:k.settingOptionValue)!=null?F:{}).boolValue};
_.RQ=function(I){var C=_.Xy(I);if(g1t(C))return 0;var y=[];C=_.T(C);for(var k=C.next();!k.done;k=C.next()){k=k.value;var F=void 0,z=void 0;if((F=k)==null?0:(z=F.videoEntity)==null?0:z.key)F=_.Fy(k.videoEntity.key).entityId,k=I,F=_.TL(F,"mainVideoDownloadStateEntity"),k=_.cg(k,"mainVideoDownloadStateEntity",F),(k=Number(k==null?void 0:k.addedTimestampMillis))&&y.push(k)}return Math.max.apply(Math,_.Py(y))};
_.b6=function(I){return I.ui.richGridMiniMode};
_.Y9=function(I){return I.ui.richGridItemsPerRow};
_.zSz=function(I){return I.ui.richGridSlimItemsPerRow};
_.TOF=function(I){return I.ui.guideIsExpanded};
_.GL=function(I){return I.ui.miniplayerIsActive};
_.cos=function(I){return I.ui.singleOptionSurveyIsActive};
_.fx=function(I){return I.ui.currentPageType==="WEB_PAGE_TYPE_WATCH"};
_.eSW=function(I){return I.ui.currentPageType==="WEB_PAGE_TYPE_SHORTS"};
_.roH=function(I){return I.ui.inlinePreviewIsActive};
_.iZK=function(I){return I.ui.inlinePreviewIsEnabled};
_.w3z=function(I){return I.ui.miniplayerPlaybackState};
nfK=function(I){return I.ui.isOnline};
_.Pvm=function(I){return I.ui.frostedGlassMode};
_.Kx=function(I,C){return U7Y(I.entities,C)};
_.AS=function(I,C){return HVK(I.entities,C)};
L_z=function(I,C){var y;if(C){var k;I=(k=_.cg(I.entities,"offlineVideoPolicy",_.TL(C,"offlineVideoPolicy")))==null?void 0:k.action}else I=void 0;return(y=I)!=null?y:"OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN"};
DDs=function(I,C){var y;C?(I=_.cg(I.entities,"offlineVideoPolicy",_.TL(C,"offlineVideoPolicy")),I=Number(I==null?void 0:I.expirationTimestamp)):I=void 0;return(y=I)!=null?y:0};
_.p3m=function(I){return _.Nk(I.entities).length};
Q$z=function(I,C){return VE(I.entities,C)};
NOz=function(I,C){return siH(I.entities,C)};
gi=function(I,C){return(I=VE(I.entities,C))?_.fQO([I]):0};
_.VVO=function(I,C){var y=_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX";if(y){var k=I.entities;var F=ErX(k,C);if(F.length){var z=[];F=_.T(F);for(var c=F.next();!c.done;c=F.next())(c=qJz(k,c.value))&&z.push(c);k=z}else k=[]}else k=CuF(I.entities,C);var r;if(y){var w=I.entities;C?(C=_.TL(C,"musicPlaylist"),w=(r=w.musicPlaylist)==null?void 0:r[C],r=w!=null&&w.tracks?w.tracks.length:0):r=0}else r=I.entities,C?(C=_.TL(C,"mainPlaylistEntity"),r=(w=r.mainPlaylistEntity)==null?void 0:w[C],r=r!=null&&r.videos?
r.videos.length:0):r=0;return k.length!==r?0:k?SVt(k):0};
_.j$K=function(I){return I.download.isLeaderTab};
_.lNK=function(I,C,y){if(!C&&y){var k=I.entities;if(y){var F=ApW(y),z,c;C=(c=(z=_.cg(k,"offlineabilityEntity",_.TL(F,"offlineabilityEntity")))==null?void 0:z.addToOfflineButtonState)!=null?c:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"}else C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"}else z=I.entities,C?(c=ApW(C),C=(F=(k=_.cg(z,"offlineabilityEntity",_.TL(c,"offlineabilityEntity")))==null?void 0:k.addToOfflineButtonState)!=null?F:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"):C="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";
return C};
X3Y=function(I,C){I=I.entities;if(C){C=ApW(C);var y,k;C=(k=(y=_.cg(I,"offlineabilityEntity",_.TL(C,"offlineabilityEntity")))==null?void 0:y.addToOfflineButtonState)!=null?k:"ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN"}else C="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";return C};
_.$Dt=function(I){var C=I.entities;I=nfK(I);var y=uHm(C,"SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED");if(!_.V("kevlar_modern_downloads_page")&&y)var k=!1;else{var F,z;C=(z=(F=((k=C.downloadsPageViewConfigurationEntity)!=null?k:{})[Mcm])==null?void 0:F.smartDownloadsOptInBannerVisibility)!=null?z:{};k=I?!!C.visibleWithConnection:!!C.visibleWithoutConnection}return k};
_.RSm=function(I){return uHm(I.entities,"SMART_DOWNLOADS_ENABLED")};
_.bZF=function(I){return ofY(I.entities)};
Y2Y=function(I){return _.Xy(I.entities).every(function(C){var y;return(C==null?void 0:(y=C.transferEntity)==null?void 0:y.transferState)&&!GJz.includes(C.transferEntity.transferState)})};
_.GXI=function(I,C){return qVs(I.entities,C)};
fNz=function(I,C){if(C){var y,k;I=(k=(y=_.cg(I.entities,"downloadStatusEntity",_.TL(C,"downloadStatusEntity")))==null?void 0:y.downloadState)!=null?k:"DOWNLOAD_STATE_UNKNOWN"}else I="DOWNLOAD_STATE_UNKNOWN";return I};
vg=function(I,C){return O6K(I.entities,C)};
gfs=function(I){I=_.S2I(I);var C=I.hours===void 0?0:I.hours,y=I.minutes===void 0?0:I.minutes,k=I.seconds===void 0?0:I.seconds,F=C>0;I=[];F&&(C=_.K_z(C),I.push(C));C=F;C=C===void 0?!1:C;y=(["af","be","lt"].includes(_.Wg)||C)&&y<10?Ao9().format(y):(new Intl.NumberFormat("en-u-nu-latn")).format(y);I.push(y);y=Ao9().format(k);I.push(y);y=":";"da fi id si sr sr-Latn".split(" ").includes(_.Wg)&&(y=".");return I.join(y)};
_.S2I=function(I){var C=I.hours||0,y=I.minutes||0,k=I.seconds||0;C=k+y*60+C*3600+(I.days||0)*86400+(I.weeks||0)*604800+(I.months||0)*2629800+(I.years||0)*31557600;if(C<=0)return{hours:0,minutes:0,seconds:0};I=C;C=Math.floor(I/3600);I%=3600;y=Math.floor(I/60);k=Math.floor(I%60);return{hours:C,minutes:y,seconds:k}};
_.K_z=function(I){I=(new Intl.NumberFormat("en-u-nu-latn")).format(I);var C=["fr"],y="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(_.Wg)?I.replace(",","\u00a0"):C.includes(_.Wg)?I.replace(",","\u202f"):y.includes(_.Wg)?I.replace(",","."):I};
Ao9=function(){return new Intl.NumberFormat("en-u-nu-latn",{minimumIntegerDigits:2})};
vf9=function(I){try{return(new _.di(5)).format(I)}catch(C){}};
x9=function(I){return{thumbnailOverlayDownloadingRenderer:{state:I}}};
W_m=function(I){if(I=vf9(I))return{thumbnailOverlaySidePanelRenderer:{text:_.Cx(I),icon:{iconType:"PLAYLISTS"}}}};
dDI=function(){var I=_.PQ("PLAY_ALL",void 0,"Play all");return{thumbnailOverlayHoverTextRenderer:{text:_.Cx(I),icon:{iconType:"PLAY_ALL"}}}};
xDs=function(I){I=_.qk(I,2);return _.Wg!=="ru"&&_.Wg!=="es_419"&&_.Wg!=="es-419"&&_.Wg!=="es"&&_.Wg!=="es_US"&&_.Wg!=="es-US"&&_.Wg!=="fr"&&_.Wg!=="pl"&&_.Wg!=="it"&&_.Wg!=="nl"&&_.Wg!=="uk"&&_.Wg!=="fr_CA"&&_.Wg!=="fr-CA"||I===""?I:I[0].toLocaleUpperCase()+I.substring(1)};
mDO=function(I){return function(C){var y=I(),k=_.qk(C,y.dateFormat);C=_.qk(C,y.timeFormat);var F=q2m.DATETIMEFORMATS[y.joinerStyle];F=F.replace(/'(?!')/g,"");F=F.replace("{0}",C);F=F.replace("{1}",k);return y.capitalize(F)}};
ZZH=function(I){return I?typeof I.seconds==="string"&&(I.nanos===void 0||typeof I.nanos==="number"):!1};
BOH=function(I){return new Date(Number(I.seconds)*1E3+(I.nanos||0)*1E-6)};
_.qk=function(I,C){if(typeof I.getTime==="function")I={date:I};else if(ZZH(I))I={date:BOH(I)};else if(typeof ZZH(I.timestamp)&&typeof I.i18nInternalSecondsEastOfUtc==="number")I={date:BOH(I.timestamp),timeZone:mj(-I.i18nInternalSecondsEastOfUtc/60)};else throw Error("Bf`"+JSON.stringify(I));var y=I;I=y.date;y=y.timeZone;C=EfF(C).format(I,y);_.Wg==="zh-TW"&&(I=y?Number(EfF("H").format(I,y)):I.getHours(),C=I<5?C.replace("\u4e0a\u5348","\u51cc\u6668"):I<8?C.replace("\u4e0a\u5348","\u65e9\u4e0a"):I<12?
C.replace("\u4e0a\u5348","\u4e0a\u5348"):I<13?C.replace("\u4e0b\u5348","\u4e2d\u5348"):I<19?C.replace("\u4e0b\u5348","\u4e0b\u5348"):C.replace("\u4e0b\u5348","\u665a\u4e0a"));return C};
EfF=function(I){if(hSt.has(I))return hSt.get(I);var C=UDz(I);C=HZO(C);tVm!==!0&&(tVm=!0);Jot=!0;Jot=!1;C=new Zk(C,q2m);hSt.set(I,C);return C};
UDz=function(I){return(new Zk(I,q2m)).patternParts_.map(function(C){return C.type===0?"'"+C.text+"'":C.text}).join("")};
HZO=function(I){return _.Wg==="en"||_.Wg==="es_US"||_.Wg==="es-US"?I:I.replace(/(?:a\s?)?([hK]+)([:.]mm)(?:\s?a)?/g,function(C,y,k){return"H".repeat(y.length)+k})};
yJY=function(I,C){OZW||(_.Bg=_.aNs,OZW=new MVO);var y=OZW;a:if(I=I4Y(I),C=I4Y(C||new Date),I>C)y=I.getTime()-C.getTime()>6048E5?_.qk(I,1):C_t(I);else{for(var k=0;sVs(I,12*(k+1))<C;)++k;if(k>0)y=y.format(-k,0);else{for(k=0;sVs(I,k+1)<C;)++k;if(k>0)y=y.format(-k,2);else{I=C.getTime()-I.getTime();C=_.T(oUW);for(k=C.next();!k.done;k=C.next()){k=k.value;var F=k.unit,z=Math.floor(I/k.unitDuration);if(z>=(k.threshold===void 0?1:k.threshold)){y=y.format(-z,F);break a}}y=y.format(-0,7)}}}return y};
I4Y=function(I){if(typeof I.getTime==="function")return I;if(ZZH(I))return BOH(I);throw Error("Cf`"+JSON.stringify(I));};
sVs=function(I,C){for(var y=0,k;;++y)if(k=new Date(I.getFullYear(),I.getMonth()+C,I.getDate()-y,I.getHours(),I.getMinutes(),I.getSeconds()),k.getMonth()===(I.getMonth()+C)%12)return k};
_.Ee=function(I){return{runs:[{text:I}]}};
_.hS=function(I){if(I&&I.simpleText)return I.simpleText;var C="";if(I&&I.runs)for(var y=0;y<I.runs.length;y++)I.runs[y].text&&(C+=I.runs[y].text);return C};
FyO=function(I,C,y,k){return I.videoEntity&&!I.policyEntity&&y!=="DOWNLOAD_STATE_FAILED"?[x9("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:Dk(I.policyEntity)&&C!=="TRANSFER_STATE_FAILED"&&C!=="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"?C==="TRANSFER_STATE_PAUSED_BY_USER"?[x9("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER")]:_.px(C)?[x9("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")]:I.videoEntity.lengthSeconds?kkF(I.videoEntity.lengthSeconds,k):[]:
[x9("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED")]};
kkF=function(I,C){var y=[{thumbnailOverlayTimeStatusRenderer:{text:_.Cx(gfs({seconds:I})),style:"DEFAULT"}}];C&&(I=C<=0||I<=0?0:C>=I?100:Math.ceil(C*100/I),I>0&&y.push({thumbnailOverlayResumePlaybackRenderer:{percentDurationWatched:I}}));return y};
uVH=function(I,C,y,k,F){if(C==="TRANSFER_STATE_UNKNOWN"||!I)return{};if(_.px(C)||C==="TRANSFER_STATE_PRE_TRANSFER")var z=[x9("THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING")];else{var c,r;if(C==="TRANSFER_STATE_COMPLETE"&&((c=I.mainPlaylistEntity)==null?0:(r=c.videos)==null?0:r.length)){if(_.V("web_modern_collections_v2")){var w;var L=(z=I.mainPlaylistEntity)==null?void 0:(w=z.videos)==null?void 0:w.length;z=(z=vf9(L))?{thumbnailOverlayBottomPanelRenderer:{text:_.Cx(z),icon:{iconType:"PLAYLISTS"}}}:
void 0}else{var D;z=W_m((L=I.mainPlaylistEntity)==null?void 0:(D=L.videos)==null?void 0:D.length)}var p;z=[dDI(),Object.assign({},(p=z)!=null?p:{})]}else z=[]}p=z;a:if(C==="TRANSFER_STATE_PRE_TRANSFER")y=se(_.PQ("PREPARING_TO_DOWNLOAD",void 0,"Preparing to download..."));else if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE")y=se(_.PQ("WAITING_TO_DOWNLOAD"));else if(_.px(C))y=Math.floor(y*100).toString(),y=se(_.PQ("DOWNLOADING_PERCENT",{percent:y},"Downloading... "+y+"%"));else{if(k&&(_.V("playlist_is_offline_selector_killswitch")&&
(F=_.N().resolve(_.mx).isNetworkAvailable()),F)){y=qIF(_.PQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),dCm(k));break a}y=void 0}C=C==="TRANSFER_STATE_COMPLETE"?[{metadataBadgeRenderer:{label:_.PQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]:[];return Object.assign({},p.length?{thumbnailOverlays:p}:{},y?{viewPlaylistText:y}:{viewPlaylistText:_.Ee("")},C.length?{badges:C}:{})};
zfX=function(I,C,y,k,F,z){if(C==="TRANSFER_STATE_UNKNOWN"||!I)return{};if(k==="DOWNLOAD_STATE_USER_DELETED")return{shortViewCountText:void 0,publishedTimeText:void 0,badges:void 0,thumbnailOverlays:void 0};var c=FyO(I,C,k);if(I.videoEntity&&!I.policyEntity&&k!=="DOWNLOAD_STATE_FAILED"){var r=_.PQ("WAITING_TO_DOWNLOAD");if(r)return{shortViewCountText:_.Ee(r),publishedTimeText:void 0,thumbnailOverlays:c}}if(!Dk(I.policyEntity)){z=I.policyEntity&&!Kaz(I.policyEntity)?_.PQ("DOWNLOAD_EXPIRED",{},"Download expired"):
_.PQ("TRANSFER_FAILED",{},"Download failed");var w;if((w=I.policyEntity)==null?0:w.shortMessageForDisabledAction)z=I.policyEntity.shortMessageForDisabledAction;return{shortViewCountText:se(z),publishedTimeText:void 0,thumbnailOverlays:c}}if(C==="TRANSFER_STATE_PAUSED_BY_USER")return{shortViewCountText:_.Ee(_.PQ("DOWNLOAD_PAUSED",{},"Download paused")),publishedTimeText:void 0,thumbnailOverlays:c};if(C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH")return{shortViewCountText:_.Ee(_.PQ("TRANSFER_FAILED",
{},"Download failed")),publishedTimeText:void 0,thumbnailOverlays:c};if(C==="TRANSFER_STATE_TRANSFER_IN_QUEUE"&&(w=_.PQ("WAITING_TO_DOWNLOAD"),k==="DOWNLOAD_STATE_PAUSED"&&(w=_.PQ("DOWNLOAD_PAUSED",{},"Download paused")),w))return{shortViewCountText:_.Ee(w),publishedTimeText:void 0,thumbnailOverlays:c};if(_.px(C))return I=Math.floor(y*100).toString(),{shortViewCountText:_.Ee(_.PQ("DOWNLOADING_PERCENT",{percent:I},"Downloading... "+I+"%")),publishedTimeText:void 0,thumbnailOverlays:c};C=void 0;I.videoEntity.publishedTimestampMillis&&
(C=new Date,F&&(C=new Date(F)),C=se(yJY(new Date(Number(I.videoEntity.publishedTimestampMillis)),C)));F=[];_.V("kevlar_woffle_badge_killswitch")||(F=[{metadataBadgeRenderer:{label:_.PQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]);var L;I=se((L=I.videoEntity.localizedStrings)==null?void 0:L.viewCount);return Object.assign({},z?{shortViewCountText:void 0}:{shortViewCountText:I},z?{}:{publishedTimeText:C},{badges:F,thumbnailOverlays:c})};
cJs=function(I,C){I=I===void 0?Tfm:I;switch(C.type){case "SET_COLLAB_INVITE_LINK":return{playlistId:C.payload.playlistId,inviteLinkURL:C.payload.inviteLinkUrl};default:return I}};
rJI=function(I,C){I=I===void 0?efX:I;switch(C.type){case "SET_CURRENT_FORM_ID":return C=C.payload.formId,I.currentFormId===C?I:{currentFormId:C,commandsMap:{}};case "SET_COMMAND_FOR_GROUP_ID":var y=C.payload;C=y.groupId;y=y.command;if(I.currentFormId){var k=Object.assign({},I.commandsMap);k[C]=y;I=Object.assign({},I,{commandsMap:k})}return I;case "RESET_COMMAND_MAP":return Object.assign({},I,{commandsMap:{}});default:return I}};
wk9=function(I,C){I=I===void 0?iuI:I;switch(C.type){case "SET_GUIDE_IS_EXPANDED":return Object.assign({},I,{guideIsExpanded:C.payload});case "SET_SCROLL_AT_TOP":return Object.assign({},I,{scrollAtTop:C.payload});case "SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT":return Object.assign({},I,{guideIsVisibleButNotPersistent:C.payload});case "SET_MINIPLAYER_IS_ACTIVE":return Object.assign({},I,{miniplayerIsActive:C.payload});case "SET_SINGLE_OPTION_SURVEY_IS_ACTIVE":return Object.assign({},I,{singleOptionSurveyIsActive:C.payload});
case "SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX":return Object.assign({},I,{slimlineSurveyRatingSelectedIndex:C.payload});case "SET_RICH_GRID_MINI_MODE":return Object.assign({},I,{richGridMiniMode:C.payload});case "SET_RICH_GRID_ITEMS_PER_ROW":return Object.assign({},I,{richGridItemsPerRow:C.payload});case "SET_RICH_GRID_SLIM_ITEMS_PER_ROW":return Object.assign({},I,{richGridSlimItemsPerRow:C.payload});case "SET_RICH_GRID_CONTAINER_WIDTH":return Object.assign({},I,{richGridContainerWidth:C.payload});
case "SET_RICH_GRID_STYLE":return Object.assign({},I,{richGridStyle:C.payload});case "SET_CURRENT_PAGE_TYPE":return Object.assign({},I,{currentPageType:C.payload});case "SET_INLINE_PREVIEW_IS_ACTIVE":return Object.assign({},I,{inlinePreviewIsActive:C.payload});case "SET_INLINE_PREVIEW_IS_ENABLED":return Object.assign({},I,{inlinePreviewIsEnabled:C.payload});case "SET_DARK_MODE_IS_ENABLED":return Object.assign({},I,{darkModeIsEnabled:C.payload});case "SET_MINIPLAYER_PLAYBACK_STATE":return Object.assign({},
I,{miniplayerPlaybackState:C.payload});case "SET_TAB_GESTURES_IS_ACTIVE":return Object.assign({},I,{tabGesturesIsActive:C.payload});case "SET_ONLINE_STATUS":return Object.assign({},I,{isOnline:C.payload});case "SET_CHIP_BAR_IS_STICKY":return Object.assign({},I,{chipBarIsSticky:C.payload});case "SET_FROSTED_GLASS_MODE":return Object.assign({},I,{frostedGlassMode:C.payload});default:return I}};
P_X=function(I,C){I=I===void 0?nUF:I;switch(C.type){case "SET_TRANSCRIPTION_STATE":return Object.assign({},I,{transcription:C.payload});case "SET_OVERLAY_STATE":return Object.assign({},I,{overlay:C.payload});case "RESET_VOICE_SEARCH_STATE":return{};default:return I}};
$Xt=function(){return iG(Object.assign({},{continuation:LyX,entities:o1W,download:DXz,reportChannelAbuse:pkO,share:QVO,talkToRecs:NfX,ui:wk9,voiceSearch:P_X,watch:VoY,ypc:jVt,shorts:l4W,radioButtonGroup:rJI,collabInviteLink:cJs},XkI))};
Y7z=function(){return _.V("web_player_entities_middleware")?new Ue($Xt(),[Rfm,buW]):new Ue($Xt(),[Rfm])};
_.Hg=function(){Gkz||(Gkz=Y7z());return Gkz};
f4z=function(I,C,y){if(I.length)return{titleText:_.Cx(C!=null?C:_.PQ("DOWNLOADS",void 0,"Downloads")),contents:I.map(function(k){var F=k.videoEntity;k={videoId:F.videoId,title:se(F.title),shortBylineText:se(k.channelEntity.title),thumbnail:F.thumbnail};var z=F.videoId?vg(_.Hg().getState(),F.videoId):0;F.videoId&&y?k.navigationEndpoint=_.IQ(F.videoId,y,void 0,void 0,z):F.videoId&&(k.navigationEndpoint=WIm(F.videoId,z,F.lengthSeconds));F.lengthSeconds&&(k.thumbnailOverlays=kkF(F.lengthSeconds,z));return{playlistPanelVideoRenderer:k}}),
totalVideos:I.length}};
S7W=function(I){return(I=(0,_.Le.getValueByKeys)(I,"playlistId"))?{playlistId:I}:null};
KyH=function(){return{}};
AJX=function(I,C){return new _.eN(function(y,k){I.then(function(F){if(F){if(F=C(F))return y(F);k()}},k)})};
gUH=function(I){var C,y,k,F=(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.autoplay)==null?void 0:k.autoplay,z,c,r;C=(z=I.contents)==null?void 0:(c=z.twoColumnWatchNextResults)==null?void 0:(r=c.playlist)==null?void 0:r.playlist;return F&&C&&C.playlistId?{rawResponse:I,autoplayRenderer:F,playlistPanelRenderer:C,playlistId:C.playlistId}:null};
WyW=function(I){var C=C===void 0?"UNKNOWN_INTERFACE":C;if(I.length===1)return I[0];var y=vUt[C];if(y){y=new RegExp(y);for(var k=_.T(I),F=k.next();!F.done;F=k.next())if(F=F.value,y.exec(F))return F}var z=[];Object.entries(vUt).forEach(function(c){var r=_.T(c);c=r.next().value;r=r.next().value;C!==c&&z.push(r)});
y=new RegExp(z.join("|"));I.sort(function(c,r){return c.length-r.length});
k=_.T(I);for(F=k.next();!F.done;F=k.next())if(F=F.value,!y.exec(F))return F;return I[0]};
_.tS=function(I){return"/youtubei/v1/"+WyW(I)};
_.JS=function(I){return{openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:I}}}}};
_.Oe=function(I){return _.JS(_.Ee(I))};
dXm=function(I,C){var y={mode:"NORMAL"};I&&(y.autoplayVideo=I.navigationEndpoint,y.nextButtonVideo=I.navigationEndpoint);C&&(y.previousButtonVideo=C.navigationEndpoint);return y};
mXI=function(I,C,y){if(!y||!y.sets)return{sets:[dXm(I,C)]};var k=y.sets.find(function(c){return c.mode==="NORMAL"}),F=(0,_.Le.unsafeClone)(y);
if(!k)return F.sets.push(dXm(I,C)),F;if(!I)return y;k=_.Le.getValueByKeys.apply(null,[k].concat(_.Py(xXm)));var z=_.Le.getValueByKeys.apply(null,[I].concat(_.Py(q7I)));if(k===z)return y;F.sets=F.sets.filter(function(c){return c.mode!=="NORMAL"});
F.sets.push(dXm(I,C));return F};
Zu9=function(I){return!!I.playlistPanelVideoRenderer&&!I.playlistPanelVideoRenderer.unplayableText};
Bfz=function(I){return!!I.playlistPanelVideoRenderer&&!!I.playlistPanelVideoRenderer.title};
EUY=function(I,C){if(C.contents&&!(I>=C.contents.length)&&(I=C.contents.slice(I).find(Zu9)))return I.playlistPanelVideoRenderer};
hfm=function(I,C){if(C.contents)return(C=C.contents.find(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===I}))?C.playlistPanelVideoRenderer:void 0};
UXs=function(I,C){return C.contents?C.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId===I}):-1};
HuI=function(I,C){return C.contents?C.contents.findIndex(function(y){return!!y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.playlistSetVideoId===I}):-1};
tos=function(I,C){I.contents&&C!==-1&&I.contents.splice(C,1).length===1&&I.totalVideos!==void 0&&(--I.totalVideos,delete I.videoCountText)};
_.JJt=function(I){var C=[];if(!I||!I.contents)return C;I=_.T(I.contents);for(var y=I.next();!y.done;y=I.next())y=y.value,y.playlistPanelVideoRenderer&&y.playlistPanelVideoRenderer.videoId&&C.push(y.playlistPanelVideoRenderer.videoId);return C};
_.OuH=function(I){if(I&&I.contents)return(I=I.contents.find(function(C){return!!C.playlistPanelVideoRenderer&&!!C.playlistPanelVideoRenderer.selected})||I.contents[I.currentIndex])?I.playlistPanelVideoRenderer:void 0};
a4W=function(I,C,y,k,F,z,c){F=F===void 0?!1:F;z=z===void 0?!1:z;c=c===void 0?!1:c;if(I.contents&&I.contents.length!==0){k&&(I.contents=I.contents.filter(k));k=I.contents.length;for(var r=0;r<k;r++){var w=I.contents[r].playlistPanelVideoRenderer;w&&(r===C?(z&&delete w.menu,w.indexText=_.Ee("\u25b6")):F||I.isInfinite||w.indexText===void 0?delete w.indexText:w.indexText=_.Ee((r+1+y).toString()))}I.currentIndex=C+y;c&&(delete I.videoCountText,I.totalVideos=k)}};
CaI=function(I){I=Mom(I,!0);if(I){var C=I.length;var y=-77%C;y<0&&(y=C+y);I=I.slice(C-y)+I.slice(0,C-y)}else I="";y="";for(C=0;C<I.length&&I[C]!==ILz;C++)y+=I[C];return y};
sAt=function(I,C){var y=document.body;C=C===void 0?function(r){return r}:C;
var k,F=null;I=_.T(I);for(k=I.next();!k.done;k=I.next()){var z=k.value;k=document.createElement("div");F||(F=k);var c=z[0];z=z[1];c&&(k.id=C(c));if(z)for(c=_.T(z),z=c.next();!z.done;z=c.next())k.classList.add(C(z.value));y.appendChild(k);y=k}return[F,y]};
oyO=function(I,C){for(var y="",k=0;k<C;k++)y+=I.charAt(Math.floor(Math.random()*I.length));return y};
aQ=function(I){return oyO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_",I)};
Mk=function(I){return oyO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",I)};
I_=function(I){return oyO("0123456789",I)};
Cp=function(){var I=performance.now(),C=new Date;var y="2."+C.getFullYear()+String(C.getMonth()+1).padStart(2,"0")+String(C.getDate()).padStart(2,"0");for(var k,F=Math.floor(Math.random()*11)+15,z=[],c=0;c<F;c++)z.push(Math.floor(Math.random()*26476865)+24547720);k=z.join(",");var r=aQ(10),w=aQ(100),L=aQ(102),D=aQ(106),p=aQ(108),Q=aQ(11),X=aQ(1140),b=aQ(123),S=aQ(14),A=aQ(16),x=aQ(1900),B=aQ(23),t=aQ(26),U=aQ(34),yW=aQ(397),a=aQ(44),cs=aQ(5),XO=aQ(72),Rm=aQ(74),$z=aQ(75),hX=aQ(88),vs=aQ(91),mY="rr5---sn-5hne6nsr rr1---sn-q4flrnlz rr3---sn-t0a7ln7d rr4---sn-ntqe6nes rr4---sn-npoe7ns6 rr5---sn-5hne6nsd rr1---sn-q4flrnss rr4---sn-q4fl6nss rr2---sn-q4fl6nsk rr2---sn-q4fl6nde rr2---sn-q4fl6n66 rr5---sn-ntqe6nee rr4---sn-q4flrnle rr4---sn-q4fl6nzy rr3---sn-q4flrnl6 rr2---sn-5hnednsz rr5---sn-5hneknes rr3---sn-q4fl6nss rr1---sn-q4fl6nsk rr1---sn-hgn7ynek".split(" ");
var Bs=mY[Math.floor(Math.random()*mY.length)];var n5=(new Date("2010-01-01")).getTime();var sH=(new Date(n5+Math.random()*((new Date).getTime()-n5))).toISOString().split("T")[0];for(var Zt,Qd=[],OF=0;OF<4;OF++)Qd.push(Math.floor(Math.random()*100));Zt=Qd.join(".");var Rw=Number(I_(5)),ku=Number(I_(6)),xK=Number(I_(7)),yf=Number(I_(9)),uK=I_(1),oL=I_(10),Uw=I_(16),TR=I_(19),G0=I_(2),hc=I_(20),wS=I_(21),Ws=I_(3),i8=I_(4),l8=I_(5),bj=I_(6),K5=I_(7),ZS=I_(8),RJ=I_(9);var yk=oyO("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789-_/+",
27352);var D8=[Mk(5),Mk(5),Mk(5)].join("%2C"),qL=[I_(3),I_(5),I_(5)].join("%2C"),kB=Mk(0),K1=Mk(1),eX=Mk(10),Tu=Mk(108),kb=Mk(11),wX=Mk(12),c5=Mk(13),xV=Mk(14),kV=Mk(15),yX=Mk(16),M$=Mk(17),p9=Mk(18),SI=Mk(19),xz=Mk(2),L5=Mk(20),yY=Mk(22),b7=Mk(23),ry=Mk(24),p5=Mk(266),Pm=Mk(3),L8=Mk(30),wR=Mk(34),z0=Mk(35),Pn=Mk(36),jy=Mk(4),K2=Mk(40),w4=Mk(43),Fj=Mk(47),dU=Mk(5),EF=Mk(6),FR=Mk(7),Nj=Mk(75),ca=Mk(8),n1=Mk(80),lI=Mk(9),YG="https://www."+Mk(12)+".com",Vv={},jk={},Vs={},dKI={},jv={},Ec={},hV={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:k}]},{service:"CSI",params:[{key:"yt_ad",value:"1"},{key:"c",value:"WEB"},{key:"cver",value:y},{key:"yt_li",value:"1"},{key:"GetPlayer_rid",value:"0x"+Mk(16).toLowerCase()}]},{service:"GUIDED_HELP",params:[{key:"logged_in",
value:"1"}]},{service:"ECATCHER",params:[{key:"client.version",value:y},{key:"client.name",value:"WEB"},{key:"client.fexp",value:k}]}],maxAgeSeconds:0,mainAppWebResponseContext:{datasyncId:wS+"||",loggedOut:!1,trackingParam:"kx_fmPxh"+Mk(73)},webResponseContextExtensionData:{hasDecorated:!0}},playabilityStatus:{status:"OK",playableInEmbed:!0,offlineability:{buttonRenderer:{serviceEndpoint:{clickTrackingParams:K2,ypcGetOfflineUpsellEndpoint:{params:n1}},trackingParams:z0+"="}},miniplayer:{miniplayerRenderer:{playbackMode:"PLAYBACK_MODE_ALLOW"}},
contextParams:"Q0FFU0FnZ0M="},streamingData:{expiresInSeconds:"21540",formats:[{itag:18,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=18&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&cnr="+G0+"&ratebypass=yes&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&c=WEB&txp="+K5+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+
p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.42001E, mp4a.40.2"',bitrate:ku,width:640,height:360,lastModified:Uw,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:K5,audioSampleRate:"44100",audioChannels:2},{itag:22,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=22&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+
D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&cnr="+G0+"&ratebypass=yes&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&c=WEB&txp="+K5+"&n="+A+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Ccnr%2Cratebypass%2Cdur%2Clmt&sig="+Tu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.64001F, mp4a.40.2"',bitrate:ku,width:1280,
height:720,lastModified:Uw,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:K5,audioSampleRate:"44100",audioChannels:2}],adaptiveFormats:[{itag:137,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+D8+"&ms="+
D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.640028"',bitrate:xK,width:1920,height:1080,
initRange:{start:"0",end:"740"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xK,approxDurationMs:K5},{itag:248,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+D8+"&ms="+D8+"&mv="+
K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:xK,width:1920,height:1080,initRange:{start:"0",
end:"220"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:399,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.08M.08"',bitrate:xK,
width:1920,height:1080,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd1080",fps:30,qualityLabel:"1080p",projectionType:"RECTANGULAR",averageBitrate:xK,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:136,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:xK,
width:1280,height:720,initRange:{start:"0",end:"738"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ku,approxDurationMs:K5},{itag:247,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+
D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:xK,width:1280,
height:720,initRange:{start:"0",end:"219"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:398,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+RJ+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.05M.08"',bitrate:xK,
width:1280,height:720,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:RJ,quality:"hd720",fps:30,qualityLabel:"720p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:135,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401f"',bitrate:ku,
width:854,height:480,initRange:{start:"0",end:"738"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ku,approxDurationMs:K5},{itag:244,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+
D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+Tu+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:ku,width:854,
height:480,initRange:{start:"0",end:"219"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:397,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.04M.08"',bitrate:ku,
width:854,height:480,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"large",fps:30,qualityLabel:"480p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:134,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d401e"',bitrate:ku,
width:640,height:360,initRange:{start:"0",end:"738"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ku,highReplication:!0,approxDurationMs:K5},{itag:243,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:ku,
width:640,height:360,initRange:{start:"0",end:"219"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:396,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.01M.08"',bitrate:ku,
width:640,height:360,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"medium",fps:30,qualityLabel:"360p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:133,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d4015"',bitrate:ku,
width:426,height:240,initRange:{start:"0",end:"738"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ku,approxDurationMs:K5},{itag:242,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+
D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:ku,width:426,
height:240,initRange:{start:"0",end:"218"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:395,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:ku,
width:426,height:240,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"small",fps:30,qualityLabel:"240p",projectionType:"RECTANGULAR",averageBitrate:ku,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:160,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="avc1.4d400c"',bitrate:ku,
width:256,height:144,initRange:{start:"0",end:"737"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,approxDurationMs:K5},{itag:278,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+qL+"&mn="+
D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+p+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/webm; codecs="vp9"',bitrate:ku,width:256,
height:144,initRange:{start:"0",end:"218"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:394,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&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="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=video%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'video/mp4; codecs="av01.0.00M.08"',bitrate:Rw,
width:256,height:144,initRange:{start:"0",end:"699"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"tiny",fps:30,qualityLabel:"144p",projectionType:"RECTANGULAR",averageBitrate:Rw,colorInfo:{primaries:"COLOR_PRIMARIES_BT709",transferCharacteristics:"COLOR_TRANSFER_CHARACTERISTICS_BT709",matrixCoefficients:"COLOR_MATRIX_COEFFICIENTS_BT709"},approxDurationMs:K5},{itag:140,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=140&source=youtube&requiressl=yes&mh=X6&mm="+
qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=audio%2Fmp4&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/mp4; codecs="mp4a.40.2"',bitrate:ku,
initRange:{start:"0",end:"631"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ku,highReplication:!0,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:K5,audioSampleRate:"44100",audioChannels:2,loudnessDb:-3.7800007},{itag:249,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=249&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+
G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=audio%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+K5+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:Rw,initRange:{start:"0",end:"265"},indexRange:{start:Ws,
end:i8},lastModified:Uw,contentLength:K5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rw,audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:K5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:250,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=250&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=audio%2Fwebm&ns="+
ry+"&gir="+Pm+"&clen="+K5+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+D+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:Rw,initRange:{start:"0",end:"265"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:K5,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:Rw,
audioQuality:"AUDIO_QUALITY_LOW",approxDurationMs:K5,audioSampleRate:"48000",audioChannels:2,loudnessDb:-3.7800007},{itag:251,url:"https://"+Bs+".googlevideo.com/videoplayback?expire="+oL+"&ei="+B+"&ip="+Zt+"&id=o-AF"+w4+"&itag=251&source=youtube&requiressl=yes&mh=X6&mm="+qL+"&mn="+D8+"&ms="+D8+"&mv="+K1+"&mvi="+uK+"&pl="+G0+"&initcwndbps="+K5+"&siu="+uK+"&spc="+a+"&vprv="+uK+"&svpuc="+uK+"&mime=audio%2Fwebm&ns="+ry+"&gir="+Pm+"&clen="+ZS+"&dur="+ZS+"&lmt="+Uw+"&mt="+oL+"&fvip=3&keepalive="+Pm+"&c=WEB&txp="+
K5+"&n="+yX+"&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Csiu%2Cspc%2Cvprv%2Csvpuc%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&sig="+w+"&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig="+p,mimeType:'audio/webm; codecs="opus"',bitrate:ku,initRange:{start:"0",end:"265"},indexRange:{start:Ws,end:i8},lastModified:Uw,contentLength:ZS,quality:"tiny",projectionType:"RECTANGULAR",averageBitrate:ku,audioQuality:"AUDIO_QUALITY_MEDIUM",approxDurationMs:K5,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="+RJ+"&docid="+Q+"&ei="+B+"&feature="+r+"&fexp="+kB+"&ns="+xz+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K1+"&el="+eX+"&len="+i8+"&of="+yY+
"&uga="+G0+"&vm="+p5},videostatsDelayplayUrl:{baseUrl:"https://s.youtube.com/api/stats/delayplay?cl="+RJ+"&docid="+Q+"&ei="+B+"&feature="+r+"&fexp="+kB+"&ns="+xz+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K1+"&el="+eX+"&len="+i8+"&of="+yY+"&uga="+G0+"&vm="+p5},videostatsWatchtimeUrl:{baseUrl:"https://s.youtube.com/api/stats/watchtime?cl="+RJ+"&docid="+Q+"&ei="+B+"&feature="+r+"&fexp="+kB+"&ns="+xz+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+
K1+"&el="+eX+"&len="+i8+"&of="+yY+"&uga="+G0+"&vm="+p5},ptrackingUrl:{baseUrl:"https://www.youtube.com/ptracking?ei="+B+"&m="+hX+"&oid="+yY+"&plid="+A+"&pltype="+FR+"&ptchn="+yY+"&ptk="+S+"&video_id="+Q},qoeUrl:{baseUrl:"https://s.youtube.com/api/stats/qoe?cl="+RJ+"&docid="+Q+"&ei="+B+"&event="+xV+"&feature="+r+"&fexp="+kB+"&ns="+xz+"&plid="+A+"&referrer=https%3A%2F%2Fwww.youtube.com%2F&sdetail=p%3A%2F&sourceid="+K1},atrUrl:{baseUrl:"https://s.youtube.com/api/stats/atr?docid="+Q+"&ei="+B+"&feature="+
r+"&len="+i8+"&ns="+xz+"&plid="+A+"&ver="+uK,elapsedMediaTimeSeconds:5},videostatsScheduledFlushWalltimeSeconds:[10,20,30],videostatsDefaultFlushIntervalSeconds:40},captions:{playerCaptionsTracklistRenderer:{captionTracks:[{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+Pm+"&opi="+RJ+"&xoaf="+uK+"&hl="+xz+"&ip="+Zt+"&ipbits="+uK+"&expire="+oL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Zt+"&key="+Pm+"&lang="+cs,name:{simpleText:wX},vssId:".en-US",languageCode:"en-US",isTranslatable:!0,
trackName:""},{baseUrl:"https://www.youtube.com/api/timedtext?v="+Q+"&caps="+Pm+"&opi="+RJ+"&xoaf="+uK+"&hl="+xz+"&ip="+Zt+"&ipbits="+uK+"&expire="+oL+"&sparams=ip,ipbits,expire,v,caps,opi,xoaf&signature="+Zt+"&key="+Pm+"&kind="+Pm+"&lang="+xz,name:{simpleText:M$},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:kb,title:kb,lengthSeconds:"1155",keywords:[lI,lI,lI,yX],
channelId:ry,isOwnerViewing:!1,shortDescription:kb,isCrawlable:!0,thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+wR,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+wR,width:196,height:110},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1920,height:1080}]},allowRatings:!0,viewCount:K5,author:c5,isPrivate:!1,isUnpluggedCorpus:!1,isLiveContent:!1},annotations:[{playerAnnotationsExpandedRenderer:{featuredChannel:{startTimeMs:"0",endTimeMs:K5,watermark:{thumbnails:[{url:"https://i.ytimg.com/an/"+yY+"/featured_channel.jpg?v="+ca,width:40,height:40}]},trackingParams:z0+"=",navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"/channel/"+ry,webPageType:"WEB_PAGE_TYPE_CHANNEL",
rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ry}},channelName:c5,subscribeButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:p9}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ry,showPreferences:!1,subscribedButtonText:{runs:[{text:M$}]},unsubscribedButtonText:{runs:[{text:SI}]},trackingParams:z0+"=",unsubscribeButtonText:{runs:[{text:eX}]},serviceEndpoints:[{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},
subscribeEndpoint:{channelIds:[ry],params:ca}},{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:K2,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:z0+"=",dialogMessages:[{runs:[{text:M$},{text:L5},{text:M$}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:dU}]},serviceEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,
apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ry],params:ca}},accessibility:{label:L5},trackingParams:z0+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:eX}]},accessibility:{label:dU},trackingParams:z0+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:wX}},unsubscribeAccessibility:{accessibilityData:{label:M$}}}}},allowSwipeDismiss:!0,annotationId:"632ce843-0000-20d6-ace4-3c286d423086"}}],
playerConfig:{audioConfig:{loudnessDb:-3.7800007,perceptualLoudnessDb:-17.78,enablePerFormatLoudness:!0},streamSelectionConfig:{maxBitrate:ZS},mediaCommonConfig:{dynamicReadaheadConfig:{maxReadAheadMediaTimeMs:12E4,minReadAheadMediaTimeMs:15E3,readAheadGrowthRateMs:1E3}},webPlayerConfig:{useCobaltTvosDash:!0,webPlayerActionsPorting:{getSharePanelCommand:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/share/get_web_player_share_panel"}},webPlayerShareEntityServiceEndpoint:{serializedShareEntity:"CgtndjNsdkt5X1dENA%3D%3D"}},
subscribeCommand:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ry],params:ca}},unsubscribeCommand:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ry],params:ca}},addToWatchLaterCommand:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},
playlistEditEndpoint:{playlistId:"WL",actions:[{addedVideoId:kb,action:"ACTION_ADD_VIDEO"}]}},removeFromWatchLaterCommand:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/browse/edit_playlist"}},playlistEditEndpoint:{playlistId:"WL",actions:[{action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID",removedVideoId:kb}]}}}}},storyboards:{playerStoryboardSpecRenderer:{spec:"https://i.ytimg.com/sb/"+Q+"/storyboard3_L$L/$N.jpg?sqp=-oaymwE"+Pn+"G",recommendedLevel:2}},microformat:{playerMicroformatRenderer:{thumbnail:{thumbnails:[{url:"https://i.ytimg.com/vi/"+
Q+"/maxresdefault.jpg",width:1280,height:720}]},embed:{iframeUrl:"https://www.youtube.com/embed/"+kb,width:1280,height:720},title:{simpleText:xV},description:{simpleText:FR},lengthSeconds:"1156",ownerProfileUrl:"http://www.youtube.com/@"+eX,externalChannelId:ry,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:K5,category:"Travel & Events",publishDate:sH,ownerChannelName:c5,uploadDate:sH}},cards:{cardCollectionRenderer:{cards:[{cardRenderer:{teaser:{simpleCardTeaserRenderer:{message:{simpleText:SI},trackingParams:z0+"=",prominent:!0,logVisibilityUpdates:!0,onTapCommand:{clickTrackingParams:K2,changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-error-corrections",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}}}},cueRanges:[{startCardActiveMs:"0",
endCardActiveMs:"5000",teaserDurationMs:"6000",iconAfterTeaserMs:"5000"}],trackingParams:z0+"="}}],headerText:{simpleText:eX},icon:{infoCardIconRenderer:{trackingParams:z0+"="}},closeButton:{infoCardIconRenderer:{trackingParams:z0+"="}},trackingParams:z0+"=",allowTeaserDismiss:!0,logIconVisibilityUpdates:!0}},trackingParams:z0+"=",attestation:{playerAttestationRenderer:{challenge:"a=6&a2=1&b=fTFKUEAUxxmXFgD-AByAUN6WwsY&c=1696917232&d=1&e="+kb+"&c1a=1&c6a=1&c6b=1&x4=1&hh=mbNf63Xfb0v-wi6-05i_8N3EUGCwK7F0b4rqZoUv9mY",
botguardData:{program:yk,interpreterSafeUrl:(Vv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="//www.google.com/js/th/"+L8+".js",Vv),serverEnvironment:1}}},videoQualityPromoSupportedRenderers:{videoQualityPromoRenderer:{triggerCriteria:{connectionWhitelist:["WIFI"],joinLatencySeconds:15,rebufferTimeSeconds:10,watchTimeWindowSeconds:180,refractorySeconds:2592E3},text:{runs:[{text:kb},{text:ca,bold:!0}]},endpoint:{clickTrackingParams:K2,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:z0+"=",snackbar:{notificationActionRenderer:{responseText:{runs:[{text:c5}]},actionButton:{buttonRenderer:{text:{runs:[{text:p9}]},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.google.com/get/videoqualityreport/?v="+Q,webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.google.com/get/videoqualityreport/?v="+
Q,target:"TARGET_NEW_WINDOW"}},trackingParams:z0+"="}},trackingParams:z0+"="}}}},endscreen:{endscreenRenderer:{elements:[{endscreenElementRenderer:{style:"CHANNEL",image:{thumbnails:[{url:"https://yt3.ggpht.com/"+XO+"=s250-c-k-c0x00ffffff-no-rj",width:250,height:250},{url:"https://yt3.ggpht.com/"+XO+"=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:K5,endMs:K5,title:{accessibility:{accessibilityData:{label:EF}},simpleText:wX},metadata:{simpleText:dU},callToAction:{simpleText:c5},dismiss:{simpleText:EF},endpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"/channel/"+ry,webPageType:"WEB_PAGE_TYPE_CHANNEL",rootVe:3611,apiUrl:"/youtubei/v1/browse"}},browseEndpoint:{browseId:ry}},hovercardButton:{subscribeButtonRenderer:{buttonText:{runs:[{text:lI}]},subscribed:!1,enabled:!0,type:"FREE",channelId:ry,showPreferences:!1,
subscribedButtonText:{runs:[{text:dU}]},unsubscribedButtonText:{runs:[{text:jy}]},trackingParams:z0+"=",unsubscribeButtonText:{runs:[{text:yX}]},serviceEndpoints:[{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/subscribe"}},subscribeEndpoint:{channelIds:[ry],params:ca}},{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0}},signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{clickTrackingParams:K2,openPopupAction:{popup:{confirmDialogRenderer:{trackingParams:z0+
"=",dialogMessages:[{runs:[{text:M$},{text:L5},{text:xV}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:lI}]},serviceEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{sendPost:!0,apiUrl:"/youtubei/v1/subscription/unsubscribe"}},unsubscribeEndpoint:{channelIds:[ry],params:ca}},accessibility:{label:M$},trackingParams:z0+"="}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",isDisabled:!1,text:{runs:[{text:yX}]},
accessibility:{label:dU},trackingParams:z0+"="}},primaryIsCancel:!1}},popupType:"DIALOG"}}]}}],subscribeAccessibility:{accessibilityData:{label:ca}},unsubscribeAccessibility:{accessibilityData:{label:p9}}}},trackingParams:z0+"=",isSubscribe:!0,id:hc}},{endscreenElementRenderer:{style:"VIDEO",image:{thumbnails:[{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+U,width:168,height:94},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+wR,width:196,height:110},
{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+U,width:246,height:138},{url:"https://i.ytimg.com/vi/"+Q+"/hqdefault.jpg?sqp=-oaymwE"+Pn+"G&rs="+U,width:336,height:188},{url:"https://i.ytimg.com/vi/"+Q+"/maxresdefault.jpg",width:1920,height:1080}]},left:.654386,width:.322807,top:.32769307,aspectRatio:1.7777778,startMs:K5,endMs:K5,title:{accessibility:{accessibilityData:{label:wX}},simpleText:jy},metadata:{simpleText:kb},endpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"/watch?v="+
kb,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832},interactionLoggingCommandMetadata:{loggingExpectations:{screenCreatedLoggingExpectations:{expectedParentScreens:[{screenVeType:3832}]}}}},watchEndpoint:{videoId:kb,watchEndpointSupportedOnesieConfig:{html5PlaybackOnesieConfig:{commonConfig:{url:"https://"+Bs+".googlevideo.com/videoplayback?source=youtube&oeis="+uK+"&c=WEB&oad="+i8+"&ovd="+i8+"&oaad="+l8+"&oavd="+l8+"&ocs="+Ws+"&oewis="+uK+"&oputc="+uK+"&ofpcc="+uK+"&siu="+uK+"&msp="+uK+"&odepv="+uK+
"&id=o-AF"+w4+"&ip="+Zt+"&initcwndbps="+K5+"&mt="+oL+"&oweuc="+kB}}}}},trackingParams:z0+"=",id:hc,thumbnailOverlays:[{thumbnailOverlayTimeStatusRenderer:{text:{accessibility:{accessibilityData:{label:jy}},simpleText:xV},style:"DEFAULT"}}]}}],startMs:K5,trackingParams:z0+"="}},adPlacements:[{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_START",adTimeOffset:{offsetStartMilliseconds:uK,offsetEndMilliseconds:l8},hideCueRangeMarker:!0}},renderer:{linearAdSequenceRenderer:{linearAds:[{instreamVideoAdRenderer:{skipOffsetMilliseconds:5E3,
pings:{impressionPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackimp/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";ord="+oL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+Ws+";dc_sk="+uK+";dc_ctype="+G0+";dc_ref=http://www.youtube.com/video/"+kb+";dc_pubid="+uK+";dc_btype=23?gclid="+vs+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+
X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+uK+"&ns="+uK+"&event="+uK+"&device="+uK+"&content_v="+Q+"&el="+eX+"&ei="+B+"&devicever="+y+"&bti="+K5+"&format="+bj+"&break_type="+uK+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+uK+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Zt+"&slot_pos="+uK+"&slot_len="+uK+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+qL+"&ad_len="+l8+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+
kb+"&aqi="+B+"&ad_rmp="+uK+"&sli="+uK}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+
";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+
"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&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"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&ctype="+Ws+"&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"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_engaged_view&ctype="+Ws+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";?",offsetMilliseconds:15E3}],clickthroughPings:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+TR+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}],fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&dc_pubid="+uK+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+uK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&avm="+uK+"&dc_pubid="+uK+"&dc_exteid="+
hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&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="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+
L+"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+uK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&dc_pubid="+uK+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:K2,
commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+
Ws+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:z0+"="},trackingParams:z0+
"=",templatedCountdown:{templatedAdText:{text:M$,isTemplated:!0,trackingParams:z0+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:SI,isTemplated:!1,trackingParams:z0+"="},trackingParams:z0+"="}},trackingParams:z0+"=",skipOffsetMilliseconds:5E3}},trackingParams:z0+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:c5},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:p9,isTemplated:!1,trackingParams:z0+"="},trackingParams:z0+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:M$,isTemplated:!0,trackingParams:z0+"="}},trackingParams:z0+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:K2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jk.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+xz+"&origin=www.youtube.com&ata_theme="+jy,jk),trackingParams:z0+"="}},popupType:"DIALOG"}},icon:{iconType:"INFO_OUTLINE"},trackingParams:z0+"="}},hoverText:{runs:[{text:SI}]},trackingParams:z0+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Fj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:z0+"="},headline:{text:jy,isTemplated:!1,trackingParams:z0+"="},description:{text:xV,
trackingParams:z0+"="},actionButton:{buttonRenderer:{text:{simpleText:yX},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"="}},startMs:uK,trackingParams:z0+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:M$},elementId:xV}},elementId:eX,trackingParams:z0+"=",legacyInfoCardVastExtension:wX,sodarExtensionData:{siub:L5,bgub:EF,scs:ca,bgp:lI},externalVideoId:kb,adLayoutLoggingData:{serializedAdServingDataEntry:dU},layoutId:"ZI7I3u4qvI4LVKlq"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Fj+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:z0+"="},
headline:{text:FR,isTemplated:!1,trackingParams:z0+"="},description:{text:FR,isTemplated:!1,trackingParams:z0+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:M$},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+
hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+
uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:z0+"="}},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+
RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"},{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:z0+"="},abandonCommands:{commands:[{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&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="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+
uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:K2,commandExecutorCommand:{commands:[{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},skipButton:{skipButtonRenderer:{message:{text:dU,isTemplated:!1,trackingParams:z0+
"="},trackingParams:z0+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:dU},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+K5+";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="+RJ+";dc_trk_cid="+RJ+";ord="+oL+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+Ws+";dc_sk="+uK+";dc_ctype="+G0+";dc_ref=http://www.youtube.com/video/"+kb+";dc_pubid="+uK+";dc_btype=23?gclid="+vs+"&ase=2",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},
{baseUrl:"https://www.youtube.com/pagead/adview?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&ad_cpn=[AD_CPN]&lact=[LACT]"},{baseUrl:"https://www.youtube.com/api/stats/ads?ver="+uK+"&ns="+uK+"&event="+uK+"&device="+uK+"&content_v="+Q+"&el="+eX+"&ei="+B+"&devicever="+y+"&bti="+K5+"&format="+bj+"&break_type="+uK+"&conn=[CONN]&cpn=[CPN]&lact=[LACT]&m_pos="+uK+"&mt=[MT]&p_h=[P_H]&p_w=[P_W]&rwt=[RWT]&sdkv="+Zt+"&slot_pos="+uK+"&slot_len="+uK+"&vis=[VIS]&vol=[VOL]&wt=[WT]&ad_cpn=[AD_CPN]&ad_id="+
qL+"&ad_len="+l8+"&ad_mt=[AD_MT]&ad_sys=YT%3AAdSense-Viral%2CAdSense-Viral&ad_v="+kb+"&aqi="+B+"&ad_rmp="+uK+"&sli="+uK}],errorPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=videoplayfailed[ERRORCODE]"}],mutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=admute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],unmutePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=adunmute&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],
pausePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=adpause&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],rewindPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+
t+"&label=adrewind&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],resumePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=adresume&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],closePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=adclose&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],
progressPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&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"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&ctype="+Ws+"&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"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_engaged_view&ctype="+Ws+"&ms=[CLICK_MS]",offsetMilliseconds:15E3,attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";?",offsetMilliseconds:15E3}],
fullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=adfullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewViewablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+
EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&dc_pubid="+uK+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],endFullscreenPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=vast_exit_fullscreen&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"}],activeViewMeasurablePings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+
"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avm="+uK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&avm="+uK+"&dc_pubid="+uK+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],abandonPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&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="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewFullyViewableAudibleHalfDurationPings:[{baseUrl:"https://www.youtube.com/pcs/activeview?xai="+L+"&sig="+b7+"&ad_cpn=[AD_CPN]&id="+EF+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]&avgm="+uK},{baseUrl:"https://pagead2.googlesyndication.com/activeview_ext?id="+EF+"&dc_pubid="+uK+"&dc_exteid="+hc+"&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]?"}],
startPings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],firstQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],secondQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+
uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],thirdQuartilePings:[{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+bj+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],completePings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=videoplaytime100&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},
{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],activeViewTracking:{trafficType:"ACTIVE_VIEW_TRAFFIC_TYPE_VIDEO"}},clickthroughEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+
Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&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/"+Q+"/mqdefault.jpg",width:320,height:180}]},trackingParams:z0+"="},trackingParams:z0+"=",templatedCountdown:{templatedAdText:{text:FR,isTemplated:!0,trackingParams:z0+"="}},durationMilliseconds:5E3}},skippableRenderer:{skipButtonRenderer:{message:{text:wX,isTemplated:!1,trackingParams:z0+"="},trackingParams:z0+"="}},
trackingParams:z0+"=",skipOffsetMilliseconds:5E3}},trackingParams:z0+"=",visitAdvertiserRenderer:{buttonRenderer:{style:"STYLE_UNKNOWN",text:{simpleText:FR},icon:{iconType:"OPEN_IN_NEW"},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"="}},adBadgeRenderer:{simpleAdBadgeRenderer:{text:{text:kV,isTemplated:!1,trackingParams:z0+"="},trackingParams:z0+"="}},adDurationRemaining:{adDurationRemainingRenderer:{templatedCountdown:{templatedAdText:{text:SI,
isTemplated:!0,trackingParams:z0+"="}},trackingParams:z0+"="}},adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,serviceEndpoint:{clickTrackingParams:K2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Vs.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+xz+"&origin=www.youtube.com&ata_theme="+jy,Vs),trackingParams:z0+"="}},popupType:"DIALOG"}},
icon:{iconType:"INFO_OUTLINE"},trackingParams:z0+"="}},hoverText:{runs:[{text:dU}]},trackingParams:z0+"="}},flyoutCtaRenderer:{flyoutCtaRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rm+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:z0+"="},headline:{text:c5,isTemplated:!1,trackingParams:z0+"="},description:{text:wX,trackingParams:z0+"="},actionButton:{buttonRenderer:{text:{simpleText:p9},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"="}},startMs:uK,trackingParams:z0+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:c5},elementId:FR}},elementId:jy,trackingParams:z0+"=",legacyInfoCardVastExtension:jy,sodarExtensionData:{siub:c5,bgub:wX,scs:xV,bgp:EF},externalVideoId:kb,adLayoutLoggingData:{serializedAdServingDataEntry:lI},layoutId:"OTH1kH5dWmSpUnNw"}},{adActionInterstitialRenderer:{image:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rm+"=s176-c-k-c0x00ffffff-no-rj"}]},trackingParams:z0+"="},headline:{text:kb,
isTemplated:!1,trackingParams:z0+"="},description:{text:kV,isTemplated:!1,trackingParams:z0+"="},actionButton:{buttonRenderer:{style:"STYLE_PRIMARY",text:{simpleText:ca},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",
rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"="}},durationMilliseconds:7E3,countdownRenderer:{timedPieCountdownRenderer:{trackingParams:z0+"="}},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+
X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=video_card_endcap_action_headline_click"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+
uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"=",backgroundImage:{thumbnail:{thumbnails:[{url:""}]},trackingParams:z0+"="},abandonCommands:{commands:[{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&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="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+G0+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],pingingEndpoint:{hack:!0}}]},adRendererCommands:{impressionCommand:{clickTrackingParams:K2,commandExecutorCommand:{commands:[{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=video_card_endcap_impression"}],pingingEndpoint:{hack:!0}}]}}},
skipButton:{skipButtonRenderer:{message:{text:kb,isTemplated:!1,trackingParams:z0+"="},trackingParams:z0+"="}},adLayoutLoggingData:{serializedAdServingDataEntry:eX},skipPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=videoskipped&ad_mt=[AD_MT]&acvw=[VIEWABILITY]&gv=[GOOGLE_VIEWABILITY]"},{baseUrl:"https://ade.googlesyndication.com/ddm/activity_ext/dc_pubid="+uK+";dc_exteid="+hc+";met="+uK+";ecn"+uK+"="+uK+";etm1="+uK+";eid1="+
K5+";acvw=[VIEWABILITY];gv=[GOOGLE_VIEWABILITY]?"}],layoutId:"x0nw3inGkAJNdtYU"}}],adLayoutMetadata:{layoutId:"kaF8SbSZynKvp81K",layoutType:"LAYOUT_TYPE_COMPOSITE_PLAYER_BYTES",adLayoutLoggingData:{serializedAdServingDataEntry:yX}}}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:l8,offsetEndMilliseconds:bj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",
getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+G0+"&token=ALHj"+yW+"&index="+uK+"&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="+y+"&m_pos_ms="+l8}},adSlotLoggingData:{serializedSlotAdServingDataEntry:M$}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",
adTimeOffset:{offsetStartMilliseconds:bj,offsetEndMilliseconds:bj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Ws+"&token=ALHj"+yW+"&index="+uK+"&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="+
y+"&m_pos_ms="+bj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bj,offsetEndMilliseconds:bj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Ws+"&token=ALHj"+yW+"&index="+uK+"&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="+
y+"&m_pos_ms="+bj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:ca}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bj,offsetEndMilliseconds:bj},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Ws+"&token=ALHj"+yW+"&index="+uK+"&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="+
y+"&m_pos_ms="+bj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_MILLISECONDS",adTimeOffset:{offsetStartMilliseconds:bj,offsetEndMilliseconds:G0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+Ws+"&token=ALHj"+yW+"&index="+uK+"&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="+
y+"&m_pos_ms="+bj}},adSlotLoggingData:{serializedSlotAdServingDataEntry:kb}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_END",adTimeOffset:{offsetStartMilliseconds:G0,offsetEndMilliseconds:G0},hideCueRangeMarker:!0}},renderer:{adBreakServiceRenderer:{prefetchMilliseconds:"10000",getAdBreakUrl:"https://www.youtube.com/get_midroll_info?ei="+B+"&m_pos="+G0+"&token=ALHj"+yW+"&index="+uK+"&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="+
y+"&m_pos_ms="+G0}},adSlotLoggingData:{serializedSlotAdServingDataEntry:eX}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:L5,isTemplated:!1,trackingParams:z0+"="},description:{text:wX,isTemplated:!1,trackingParams:z0+"="},actionButton:{buttonRenderer:{text:{simpleText:wX},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+
RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",
webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Fj+"=s88-c-k-c0x00ffffff-no-rj",width:48,
height:48}]},trackingParams:z0+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$z+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:z0+"="},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+
";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:K2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(dKI.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue=
"https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+xz+"&origin=www.youtube.com&ata_theme="+jy,dKI),trackingParams:z0+"="}},popupType:"DIALOG"}},trackingParams:z0+"="}},hoverText:{runs:[{text:EF}]},trackingParams:z0+"="}},adVideoId:kb,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:FR},associatedCompositePlayerBytesLayoutId:yX}},
adSlotLoggingData:{serializedSlotAdServingDataEntry:jy}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:lI,isTemplated:!1,trackingParams:z0+"="},description:{text:ca,isTemplated:!1,trackingParams:z0+"="},actionButton:{buttonRenderer:{text:{simpleText:xV},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+
b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Rm+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:z0+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+Nj+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:z0+"="},navigationEndpoint:{clickTrackingParams:K2,commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+
uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+
"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:K2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(jv.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+xz+"&origin=www.youtube.com&ata_theme="+jy,jv),trackingParams:z0+"="}},popupType:"DIALOG"}},trackingParams:z0+"="}},
hoverText:{runs:[{text:EF}]},trackingParams:z0+"="}},adVideoId:kb,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+kb+"&cid="+t+"&label=video_companion_impression_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:M$},associatedCompositePlayerBytesLayoutId:yX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:xV}}},{adPlacementRenderer:{config:{adPlacementConfig:{kind:"AD_PLACEMENT_KIND_SELF_START"}},renderer:{actionCompanionAdRenderer:{headline:{text:FR,
isTemplated:!1,trackingParams:z0+"="},description:{text:FR,isTemplated:!1,trackingParams:z0+"="},actionButton:{buttonRenderer:{text:{simpleText:jy},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+
G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+
U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},trackingParams:z0+"="}},iconImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/ytc/"+Fj+"=s88-c-k-c0x00ffffff-no-rj",width:48,height:48}]},trackingParams:z0+"="},bannerImage:{thumbnail:{thumbnails:[{url:"https://yt3.ggpht.com/"+$z+"=w1060-fcrop64=1,00005a57ffffa5a8-k-c0xffffffff-no-nd-rj",width:384,height:80}]},trackingParams:z0+
"="},navigationEndpoint:{clickTrackingParams:K2,loggingUrls:[{baseUrl:"https://ad.doubleclick.net/ddm/trackclk/N444803.2428500DBMSITEID/B30029229.368252041;dc_trk_aid="+RJ+";dc_trk_cid="+RJ+";dc_dbm_token="+p+";dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;tfua=;ltd=;dc_tdv="+uK+";ord="+RJ+";dc_rui="+uK+";dc_exteid="+hc+";dc_av="+uK+";dc_sk="+uK+";dc_ctype="+G0+";dc_pubid="+uK+";dc_btype=3?gclid="+vs+"&ase=2"}],commandMetadata:{webCommandMetadata:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+
X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",webPageType:"WEB_PAGE_TYPE_UNKNOWN",rootVe:83769}},urlEndpoint:{url:"https://www.googleadservices.com/pagead/aclk?sa=L&ai=C"+X+"____________"+b+"AxAA&ase=2&num="+uK+"&cid="+t+"&ad_cpn=%5BAD_CPN%5D&sig="+U+"&adurl="+YG+"&label=video_click_to_advertiser_site&ctype="+Ws+"&ms=[CLICK_MS]",target:"TARGET_NEW_WINDOW",attributionSrcMode:"ATTRIBUTION_SRC_MODE_LABEL_CHROME"}},
trackingParams:z0+"=",adInfoRenderer:{adHoverTextButtonRenderer:{button:{buttonRenderer:{style:"STYLE_UNKNOWN",size:"SIZE_DEFAULT",isDisabled:!1,icon:{iconType:"INFO_OUTLINE"},navigationEndpoint:{clickTrackingParams:K2,openPopupAction:{popup:{aboutThisAdRenderer:{url:(Ec.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="https://www.youtube.com/aboutthisad?pf=web&source=youtube&reasons=A"+x+"&hl="+xz+"&origin=www.youtube.com&ata_theme="+jy,Ec),trackingParams:z0+"="}},popupType:"DIALOG"}},trackingParams:z0+
"="}},hoverText:{runs:[{text:jy}]},trackingParams:z0+"="}},adVideoId:kb,impressionPings:[{baseUrl:"https://www.youtube.com/pagead/interaction/?ai=C"+X+"____________"+b+"AxAA&sigh="+Q+"&cid="+t+"&label=video_companion_reshow_tracking"}],adLayoutLoggingData:{serializedAdServingDataEntry:kV},isContentVideoCompanion:!0,associatedCompositePlayerBytesLayoutId:yX}},adSlotLoggingData:{serializedSlotAdServingDataEntry:EF}}}],adBreakHeartbeatParams:"Q0FBJTNE",frameworkUpdates:{entityBatchUpdate:{mutations:[{entityKey:L8,
type:"ENTITY_MUTATION_TYPE_REPLACE",payload:{offlineabilityEntity:{key:L8,command:{innertubeCommand:{clickTrackingParams:K2,ypcGetOfflineUpsellEndpoint:{params:n1}}},addToOfflineButtonState:"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED",contentCheckOk:!1,racyCheckOk:!1,loggingDirectives:{trackingParams:z0+"=",visibility:{types:"4"},enableDisplayloggerExperiment:!0}}}}],timestamp:{seconds:oL,nanos:yf}}}},e4F=JSON.stringify(hV),Uc=performance.now()-I;return{objectRepresentation:hV,jsonRepresentation:e4F,generationTime:Uc}};
ysK=function(I,C){if(I===C)return!0;if(!I||!C||typeof I!==typeof C)return!1;if(I instanceof Array&&C instanceof Array){if(I.length!==C.length)return!1;for(var y=0;y<I.length;y++)if(!ysK(I[y],C[y]))return!1;return!0}if(typeof I==="object"&&typeof C==="object"&&I&&C){for(y in I)if(!(y in C&&ysK(I[y],C[y])))return!1;for(var k in C)if(!(k in I))return!1;return!0}return!1};
_.o_=function(){if(!sq){sq=new FB(new kZW);var I=_.s8("client_streamz_web_flush_count",-1);I!==-1&&(sq.invocationLimit=I)}return sq};
y0=function(I,C,y,k){if(I===C)return!0;if(Array.isArray(I)&&Array.isArray(C)){if(I.length!==C.length)return!1;for(var F=0;F<I.length;F++)if(!y0(I[F],C[F],y,k))return!1;return!0}if(I instanceof Set||C instanceof Set){if(I instanceof Set&&C instanceof Set){if(I.size!==C.size)return!1;k=_.T(I.values());for(F=k.next();!F.done;F=k.next())if(!C.has(F.value))return!1;return!0}return!1}if(I instanceof Function){if(k)return!0;I.name===""&&_.GB(Error("Gf"),"ERROR");return!1}if(I instanceof Date&&C instanceof
Date)return I.getTime()===C.getTime();if(I instanceof Object&&C instanceof Object){if(FtO(I)&&FtO(C))try{return I.equals(C)}catch(c){_.GB(Error("Hf`"+c),"ERROR")}F=Object.getOwnPropertyNames(I).filter(function(c){return y?I[c]!==void 0:!0});
var z=Object.getOwnPropertyNames(C).filter(function(c){return y?C[c]!==void 0:!0});
if(F.length!==z.length)return!1;F=_.T(F);for(z=F.next();!z.done;z=F.next())if(z=z.value,!y0(I[z],C[z],y,k))return!1;return!0}return!1};
FtO=function(I){I=Object.getPrototypeOf(I).equals;return I instanceof Function&&I.length===1};
Tx9=function(){return _.e(function(I){if(I.nextAddress==1)return ukO!==2?I.jumpTo(2):_.n(I,zim(),3);I.nextAddress!=2&&(ukO=I.yieldResult);return I.return(ukO)})};
rsF=function(){return _.e(function(I){if(I.nextAddress==1)return _.V("ab_pl_man")?csH!==2?I.jumpTo(2):_.n(I,ei9(),3):I.return(1);I.nextAddress!=2&&(csH=I.yieldResult);return I.return(csH)})};
nyF=function(){return _.e(function(I){if(I.nextAddress==1)return _.V("ab_fk_sk_cl")?i0I!==2?I.jumpTo(2):_.n(I,w7H(),3):I.return(1);I.nextAddress!=2&&(i0I=I.yieldResult);return I.return(i0I)})};
D8z=function(){return _.e(function(I){if(I.nextAddress==1)return _.V("ab_det_apb_b")?PaK!==2?I.jumpTo(2):_.n(I,LtF(),3):I.return(1);I.nextAddress!=2&&(PaK=I.yieldResult);return I.return(PaK)})};
NxK=function(){var I;return _.e(function(C){if(C.nextAddress==1)return _.n(C,Promise.all([Tx9(),D8z(),rsF(),nyF()]),2);if(C.nextAddress!=3)return p7z()?C.return(!0):_.n(C,QAI(),3);I=C.yieldResult;return C.return(I===0)})};
p7z=function(){var I=new V9X;kk(I,jAY(),"j.s_");kk(I,ukO,"f.i_");kk(I,PaK,"a.b_");kk(I,csH,"p.m_");kk(I,i0I,"i.f_");lLO===2&&(lLO=X7Y(sAt($8K)));kk(I,lLO,"e.h_");_.V("ks_det_gpbl")||kk(I,RiI(),"p.i_");_.V("ks_get_o_pp")||kk(I,b0K(),"g.o_");_.V("ab_deg_unex_thr")||kk(I,YtH(),"a.o_");kk(I,GZK,"s.t_");_.V("ab_det_sc_inj_enf")&&kk(I,fLm(),"s.i_");kk(I,Stm,"d.p_");_.V("ab_det_pp_ov")&&kk(I,KtK(AsI),"o.p_");kk(I,gyt()===0?0:vym(),"o.a_");return _.V("debug_sk_em_precheck")?!0:I.iOV};
d8X=function(){var I=[].concat(_.Py(WtH));try{var C=Cp();I.push({jsonRepresentation:C.jsonRepresentation,objectRepresentation:C.objectRepresentation})}catch(y){I=[].concat(_.Py(WtH))}return I};
x8W=function(){var I=["adPlacements","adSlots"];try{return I.filter(function(){return!0}).length!==I.length?0:1}catch(C){return 0}};
b0K=function(){if(x8W()===0)return 0;var I=Cp(),C=I.objectRepresentation,y=(0,_.Le.unsafeClone)(C),k=[];if(C&&typeof C==="object")for(var F in C)k.push(F);else return 4;I=I.objectRepresentation.adPlacements;if(!(I&&I.length>0))return 4;try{if(!ysK(k,Object.getOwnPropertyNames(C)))return 0}catch(z){return 0}return ysK(y,C)?1:0};
KtK=function(I){var C=Object.getOwnPropertyNames(Object.prototype);I=_.T(I);for(var y=I.next();!y.done;y=I.next()){y=Mom(y.value);for(var k=_.T(C),F=k.next();!F.done;F=k.next())if(y===F.value)return 0}return 1};
qtI=function(I){var C=CaI(I[1]);if(I[0]===null)return C;I=I[0];for(var y={},k=0;k<I.length;k++){var F=CaI(I[k]);if(k===0)y[F]=C;else{var z={};z[F]=y;y=z}}return y};
gyt=function(){for(var I=_.Fl,C=0;C<I.length;C++){var y=qtI(I[C]),k=[];k.push(y);if(k.length===0)return 0}return 1};
vym=function(){for(var I=_.Fl,C={},y=0;y<I.length;C={fjI:void 0},y++){var k=[qtI(I[y])];C.fjI=[];k.forEach(function(F){return function(z){F.fjI[F.fjI.length]=z}}(C));
if(C.fjI.length===0)return 0}return 1};
jAY=function(){for(var I=_.T(d8X()),C=I.next();!C.done;C=I.next()){var y=C.value;C=y.jsonRepresentation;y=y.objectRepresentation;try{var k=JSON.parse(C);if(!y0(k,y,!1,!1))return 0}catch(F){return 0}}return 1};
fLm=function(){try{var I=_.yS("ab_det_sc_inj_val");I.length===1&&I[0]===""&&(I=['json=JSON.parse(text);for(k of["playerAds","adPlacements","adSlots"])']);for(var C=document.querySelectorAll("script"),y=_.T(C),k=y.next();!k.done;k=y.next())for(var F=k.value,z=_.T(I),c=z.next();!c.done;c=z.next()){var r=c.value;C=void 0;if((C=F.textContent)==null?0:C.includes(r))return 0}}catch(w){return 4}return 1};
QAI=function(){var I,C,y,k,F,z,c;return _.e(function(r){switch(r.nextAddress){case 1:_.aM(r,2),I=_.T(WtH),C=I.next();case 4:if(C.done)return r.return(1);k=y=C.value;F=k.jsonRepresentation;z=k.objectRepresentation;return _.n(r,(new Response(F,{status:200})).json(),7);case 7:c=r.yieldResult;if(!y0(c,z,!1,!1))return r.return(0);C=I.next();r.jumpTo(4);break;case 2:return _.sj(r),r.return(4)}})};
YtH=function(){try{btoa("abc")}catch(I){return 0}return 1};
zim=function(){var I,C,y,k,F,z,c,r,w,L,D;return _.e(function(p){switch(p.nextAddress){case 1:_.aM(p,2),I=_.T(d8X()),C=I.next();case 4:if(C.done)return p.return(1);k=y=C.value;F=k.jsonRepresentation;z=k.objectRepresentation;c=btoa(F);r="data:application/json;base64,"+c;w=new Request(r);Object.defineProperty(w,"url",{get:function(){return"https://www.youtube.com/youtubei/v1/player?key=AIzaSyAO_FJ2SlqU8Q4STEHLGCilw_Y9_11qcW8&prettyPrint=false"}});
Object.defineProperty(w,"method",{get:function(){return"POST"}});
Object.defineProperty(w,"bodyUsed",{get:function(){return!0}});
Object.defineProperty(w,"mode",{get:function(){return"same-origin"}});
Object.defineProperty(w,"body",{get:function(){return new ReadableStream}});
return _.n(p,fetch(w),7);case 7:return L=p.yieldResult,_.n(p,L.json(),8);case 8:D=p.yieldResult;if(!y0(D,z,!1,!1))return p.return(0);C=I.next();p.jumpTo(4);break;case 2:return _.sj(p),p.return(4)}})};
X7Y=function(I){var C=_.T(I);I=C.next().value;C=C.next().value;try{var y=document.createElement("div");document.body.appendChild(y);var k=getComputedStyle(y).display;document.body.removeChild(y);if(k==="none")return 4;var F=getComputedStyle(C).display==="none"?0:1;document.body.removeChild(I);return F}catch(z){return 4}};
w7H=function(){var I,C,y;return _.e(function(k){I=new _.ug;C=document.createElement("button");C.classList.add("ytp-ad-skip-button");C.style.opacity="0";C.style.height="0px";C.style.width="0px";C.style.padding="0px";C.style.border="none";y=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.onclick=function(){I.resolve(0);y()};
document.body.appendChild(C);setTimeout(function(){y();I.resolve(1)},50);
return k.return(I.promise)})};
ei9=function(){var I,C,y,k,F,z,c;return _.e(function(r){I=new _.ug;C=document.createElement("ytd-player");try{document.body.prepend(C)}catch(w){return r.return(4)}y=function(){C.parentElement&&C.parentElement.removeChild(C)};
C.getElementsByTagName("div").length>0?k=C.getElementsByTagName("div")[0]:(k=document.createElement("div"),C.appendChild(k));F=document.createElement("div");k.appendChild(F);z=document.createElement("video");c=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"});z.src=_.zK(_.ii(c));z.ontimeupdate=function(){y();I.resolve(0)};
F.appendChild(z);z.classList.add("html5-main-video");setTimeout(function(){F.classList.add("ad-interrupting")},200);
setTimeout(function(){y();I.resolve(1)},5E3);
return r.return(I.promise)})};
m89=function(I,C){var y,k;return _.e(function(F){switch(F.nextAddress){case 1:y=[],k=0;case 2:if(!(k<3)){F.jumpTo(4);break}return _.n(F,fetch(I,{cache:"no-store",method:C}).then(function(z){y.push(z.status)}).catch(function(){y.push(-1)}),3);
case 3:k++;F.jumpTo(2);break;case 4:return F.return(y)}})};
Z0F=function(I){return I.domainLookupStart===0&&I.domainLookupEnd===0&&I.connectStart===0&&I.connectEnd===0};
BxI=function(I,C,y){y=y===void 0?"GET":y;var k,F,z,c,r,w,L,D,p,Q;return _.e(function(X){if(X.nextAddress==1)return _.n(X,Promise.all([m89(I,y),m89(C,y)]),2);k=X.yieldResult;F=_.T(k);z=F.next().value;c=F.next().value;r=z;w=c;if(Math.min.apply(Math,_.Py(w))!==Math.max.apply(Math,_.Py(w))||Math.min.apply(Math,_.Py(r))!==Math.max.apply(Math,_.Py(r)))return X.return(2);if(Math.min.apply(Math,_.Py(w))===Math.min.apply(Math,_.Py(r)))return X.return(1);D=(L=performance.getEntriesByName(I))==null?void 0:L[0];
Q=(p=performance.getEntriesByName(C))==null?void 0:p[0];return D&&Q?Z0F(Q)?X.return(1):Z0F(D)?X.return(0):X.return(1):X.return(2)})};
LtF=function(){var I;return _.e(function(C){var y=[];var k;var F,z,c;(F=k=(F=Cp().objectRepresentation.streamingData)==null?void 0:(z=F.formats)==null?void 0:(c=z[0])==null?void 0:c.url)&&F&&!k.match(/&pfa=|yt_premiere_broadcast|yt_live_broadcast/)?(F=F.replace("initcwndbps","ctier=L&initcwndbps"),k={testUrl:F,baseUrl:k,method:"GET"}):k=void 0;k&&y.push(k);_.V("ab_net_tp_e")&&y.push({testUrl:_.sF.location.origin+"/ad_companion",baseUrl:_.sF.location.origin+"/generate_204",method:"OPTIONS"});if(_.V("ad_net_pb_ab")){var r;
b:{k=/api\/stats\/ads/;var w,L,D,p;F=(r=Cp().objectRepresentation.adPlacements)==null?void 0:(w=r[0])==null?void 0:(L=w.adPlacementRenderer)==null?void 0:(D=L.renderer)==null?void 0:(p=D.linearAdSequenceRenderer)==null?void 0:p.linearAds;if(F!=null&&F.length&&(r=_.l(F[0],Eyz))&&(r=r.pings,r!=null&&r.impressionPings))for(w=[].concat(_.Py(r.impressionPings)),r.progressPings&&(w=[].concat(_.Py(w),_.Py(r.progressPings))),r=_.T(w),w=r.next();!w.done;w=r.next())if(w=w.value,w.baseUrl&&k.test(w.baseUrl)){r=
w.baseUrl.replace("https://www.youtube.com","");break b}r=void 0}r&&y.push({testUrl:_.sF.location.origin+r,baseUrl:_.sF.location.origin+"/feed/download",method:"GET"})}if(_.V("ad_net_pb_pbp")){var Q;b:{r=/api\/stats\/qoe/;if(w=Cp().objectRepresentation.playbackTracking){L=[];L.push(w==null?void 0:(Q=w.videostatsPlaybackUrl)==null?void 0:Q.baseUrl);var X;L.push(w==null?void 0:(X=w.videostatsDelayplayUrl)==null?void 0:X.baseUrl);var b;L.push(w==null?void 0:(b=w.videostatsWatchtimeUrl)==null?void 0:
b.baseUrl);var S;L.push(w==null?void 0:(S=w.ptrackingUrl)==null?void 0:S.baseUrl);var A;L.push(w==null?void 0:(A=w.qoeUrl)==null?void 0:A.baseUrl);var x;L.push(w==null?void 0:(x=w.atrUrl)==null?void 0:x.baseUrl);Q=_.T(L);for(X=Q.next();!X.done;X=Q.next())if((X=X.value)&&r.test(X)){Q=X.replace("https://www.youtube.com","").replace("https://s.youtube.com","");break b}}Q=void 0}Q&&y.push({testUrl:_.sF.location.origin+Q,baseUrl:_.sF.location.origin+"/feed/download",method:"GET"})}y=y.length!==0?y[Math.floor(Math.random()*
y.length)]:void 0;return(I=y)?C.return(BxI(I.testUrl,I.baseUrl,I.method)):C.return(4)})};
RiI=function(){if(_.sF.t3t===void 0||_.sF.t3t===null||typeof _.sF.t3t!=="function")return 2;try{return _.sF.t3t()===!0?0:1}catch(I){return 0}};
hiH=function(I){switch(I){case 2:return 0;case 1:return 2;case 0:return 3;case 4:case 3:return 1;default:_.C8(I,"unknown result type")}};
_.U8s=function(I,C){var y=Number(_.Aq("CATSTAT",0));if(C.zVV===void 0)return y;C=C.zVV;I=hiH(I);return y&~(3<<C)|I<<C};
H0X=function(I){var C,y;if((I=(C=I.auxiliaryUi)==null?void 0:(y=C.messageRenderers)==null?void 0:y.bkaEnforcementMessageViewModel)&&I.displayType==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER")return I};
JsW=function(){for(var I=_.T(Object.values(_.t9O)),C=I.next();!C.done;C=I.next())C=C.value,C.isAsync&&C.zVV&&_.KH("CATSTAT",_.U8s(2,C))};
_.ef=function(I,C){I=_.z8("FLOW_EVENT_NAMESPACE_ADBLOCK_ENFORCEMENT",I);(C===void 0?0:C)?_.O0X(I,"FLOW_TYPE_ADBLOCK_ENFORCEMENT"):_.T8(_.cD(),I,"FLOW_TYPE_ADBLOCK_ENFORCEMENT")};
M9I=function(){if(!aLY){if(Polymer.Base){var I=Polymer.Base.createdCallback;Polymer.Base.createdCallback=function(){try{I.apply(this,arguments)}catch(p){_.v5(p)}};
var C=Polymer.Base.attachedCallback;Polymer.Base.attachedCallback=function(){try{C.apply(this,arguments)}catch(p){_.v5(p)}};
var y=Polymer.Base.detachedCallback;Polymer.Base.detachedCallback=function(){try{y.apply(this,arguments)}catch(p){_.v5(p)}};
var k=Polymer.Base.attributeChangedCallback;Polymer.Base.attributeChangedCallback=function(){try{k.apply(this,arguments)}catch(p){_.v5(p)}};
var F=Polymer.Base._listen,z=new WeakMap;Polymer.Base._listen=function(p,Q,X){var b=function(){try{X.apply(this,arguments)}catch(S){_.v5(S)}};
z.set(X,b);F.call(this,p,Q,b)};
var c=Polymer.Base._unlisten;Polymer.Base._unlisten=function(p,Q,X){c.call(this,p,Q,z.get(X))}}if(Polymer.Async){var r=Polymer.Async,w=r._atEndOfMicrotask;
r._atEndOfMicrotask=function(){try{w.apply(r,arguments)}catch(p){_.v5(p)}}}if(Polymer.RenderStatus){var L=Polymer.RenderStatus,D=L.afterNextRender;
L.afterNextRender=function(p,Q,X){D.call(L,p,function(){try{Q.apply(this,arguments)}catch(b){_.v5(b)}},X)}}aLY=!0}};
_.CeI=function(I){var C=I?_.Tl(I):"";if(C){if(C.indexOf("/channel/UCrpQ4p1Ql_hG8rKXIKM1MOQ")===0)return"fashion";if(C.indexOf("/channel/UC4R8DWoMoI7CAwX8_LjQHig")===0)return"live";if(C.indexOf("/channel/UCEgdi0XIXXZ-qJOFPf4JSKw")===0)return"sports";if(C.indexOf("/channel/UCYfdidRxbB8Qhf0Nx7ioOYw")===0)return"news";if(C.indexOf("/channel/UCtFRv9O2AHqOZjjynzrv-xg")===0)return"learning";if(C.indexOf("/channel/UC-9-kyTW8ZkZNDHQJ6FgpwQ")===0)return"music";C=C.toLowerCase();if(C==="/")return"home";if(C===
"/channel_memberships")return"channel-memberships-shopfront";if(C.indexOf("/feed/trending")===0)return"trending";if(C.indexOf("/feed/explore")===0)return"explore";if(C.indexOf("/live")===0)return"live";if(C.indexOf("/results")===0)return"search";if(C.indexOf("/sports")===0)return"sports";if(C.indexOf("/fashion")===0||C.indexOf("/feed/fashion_destination")===0)return"fashion";if(/^\/(news)|(feed\/news_destination)|(@news)(\/.*)?$/.test(C))return"news";if(/^\/(learning)|(@learning)(\/.*)?$/.test(C))return"learning";
if(C.indexOf("/channel/")===0||C.indexOf("/user/")===0||C.indexOf("/gaming")===0||C.indexOf("/post/")===0)return"channel";if(Ib9(I))return"show";if(C==="/playlist"||C.indexOf("/playlist/")===0||C==="/view_play_list"||C.indexOf("/view_play_list/")===0||C.indexOf("/show/")===0)return"playlist";if(C==="/feed/history"||C.indexOf("/feed/history/")===0)return"history";if(C==="/new")return"labs";if(C==="/feed/subscriptions")return"subscriptions";if(C.indexOf("/feed/subscriptions/")===0)return"filteredsubscriptions";
if(C==="/history_controls")return"standalone";if(C.indexOf("/account")===0||C==="/gaia_link")return"WEB_PAGE_TYPE_SETTINGS";if(C.indexOf("/paid_memberships")===0||C.indexOf("/refund")===0||C.indexOf("/purchases")===0||C.indexOf("/feed/purchases")===0)return"memberships-and-purchases";if(C.indexOf("/product")===0)return"yts-products";if(C.indexOf("/premium")===0||C.indexOf("/musicpremium")===0)return C.indexOf("/premium/offers")===0||C.indexOf("/musicpremium/offers")===0?"ypc-offers":"red";if(C===
"/cart/checkout"||C==="/cart")return"ypc-checkout";if(C.indexOf("/feed/downloads")===0||C.indexOf("/redeem")===0||C.indexOf("/reporthistory")===0)return"browse";if(C.indexOf("/hashtag")===0)return"hashtag-landing-page";if(C.indexOf("/handle")===0)return"handle";if(C.indexOf("/source")===0)return"audio-pivot";if(C.search(RegExp("^/playables/(?!saved)."))===0)return"mini_app";if(C.indexOf("/playables")===0)return"playables";if(C.indexOf("/create/live/join")===0)return"open-in-app";if(C.indexOf("/shorts")===
0)return"shorts";if(C.indexOf("/feed/channels")===0)return"subscriptions-channels";(C=I?_.Tl(I):"")&&C.indexOf("/watch")===0&&_.V("web_watch_enable_learning_journey")?(I=_.B5(I),I=!!I.list&&I.list.indexOf("LJPP")===0):I=!1;if(I)return"learning-journey-watch"}};
Ib9=function(I){var C=I?_.Tl(I):"";if(!C)return!1;C=C.toLowerCase();return C.indexOf("/show/")===0||C.indexOf("/playlist")===0&&(I=_.B5(I),I.list&&I.list.indexOf("EL")===0)?!0:!1};
wU=function(I){var C="unknown",y;var k=((y=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:y.webPageType)||"";k?(y=k.toLowerCase(),y.startsWith("web_page_type_")&&(y=y.slice(14))):y=k;y&&sWI[y.toUpperCase()]?C=sWI[y.toUpperCase()]:_.l(I,_.rU)||_.l(I,opI)?C="browse":_.l(I,_.ig)?C="search":_.l(I,_.H$)&&(C="watch");C==="unknown"&&_.SN(Error("Jf`"+JSON.stringify({clickTrackingParams:I==null?void 0:I.clickTrackingParams,commandMetadata:I==null?void 0:I.commandMetadata,allEndpointKeys:Object.keys(I||
[])})));return C};
_.np=function(I){if(!_.ymz||I)_.ymz=_.kF();return _.ymz};
_.kdI=function(I){return!!_.l(I,_.H$)||!!_.l(I,_.PD)&&_.V("kevlar_enable_shorts_prefetch")};
_.FkW=function(I,C){I=_.l(I,_.H$)||_.l(I,_.PD);return"v"+I.videoId+(I.playlistId?"-pl"+I.playlistId:"")+(C?"-an1":"")+(I.params?"-pr"+I.params:"")};
zvz=function(I){var C=_.s8("web_pbj_log_warning_rate",0);C=C>0&&Math.random()<C;if(!_.l(I,_.PD))return C&&_.SN(Error("Mf")),!1;var y;return _.V("shorts_controller_retrieve_seedless_sequence_v2")&&((y=_.l(I,_.PD))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?!0:uNI(I)?!0:(C&&_.SN(Error("Nf")),!1)};
uNI=function(I){var C=(_.l(I,_.H$)||_.l(I,_.PD)).videoId;if(!C||!T3O.test(C))return!1;var y;return(I=(y=_.l(I.commandMetadata,_.It))==null?void 0:y.url)&&(I.includes(C)||I.startsWith("/clip"))?!0:!1};
_.ev9=function(){var I=_.pA();return I.getFlag(192)?I.getFlag(190):!(_.V("web_watch_cinematics_disabled_by_default")||_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&cmI())};
_.Lp=function(I,C,y){var k={};k.currentUrl=C;k.vis=I.vis!==void 0?I.vis:0;k.splay=!1;C=_.pA();k.autoCaptionsDefaultOn=C.getFlag(66);C.getFlag(141)?C.getFlag(140)?k.autonavState="STATE_OFF":k.autonavState="STATE_ON":k.autonavState="STATE_NONE";k.html5Preference="HTML5_PREF_WANTS";isNaN(_.Aq("STS"))||(k.signatureTimestamp=_.Aq("STS"));I.autonav&&(k.autoplay=!0,k.autonav=!0);I.mutedAutoplay&&(k.autoplay=!0,k.mutedAutoplay=!0);I.inlinePlayback&&(k.autoplay=!0,k.autonav=!1,k.isInlineUnmutedPlayback=!!I.inlineUnmuted);
k.referer=y;k.lactMilliseconds=I.lact!==void 0?I.lact.toString():"-1";_.V("enable_unknown_lact_fix_on_html5")&&k.lactMilliseconds==="-1"&&_.SN(new _.ph("Unknown LACT is set in playbackContext.",{"lact in tempData":I.lact||"undefined",autonav:I.autonav||"undefined"}));I={};C.getFlag(194)&&(I.hasShownAmbientMode=!0);C.getFlag(192)&&(I.hasToggledOffAmbientMode=!0);_.ev9()&&(I.watchAmbientModeEnabled=!0);k.watchAmbientModeContext=I;return k};
rmm=function(I){var C={},y=I.pbis||0;y&&(C.playbackBeginsInSeconds=y);I.prefetch_reason&&I.prefetch_reason==="hc_pbis"&&(C.prefetchReason="PREFETCH_REASON_HINT_CONFIG_PLAYBACK_BEGINS_IN_SECONDS");return C};
_.iXY=function(I){var C=new DW(_.Aq("ONE_PICK_URL",""));C.urlParamMap_.set("hostId",I);(I=_.Aq("GAPI_LOCALE"))&&C.urlParamMap_.set("hl",I);(I=_.Aq("SESSION_INDEX"))&&C.urlParamMap_.set("authuser",I);(I=_.Aq("DELEGATED_SESSION_ID"))&&C.urlParamMap_.set("groupId",I);return C};
npz=function(){var I=_.N(),C=I.resolve(_.pp);I=I.resolve(_.Q0);return new wAz(C,I)};
Lkm=function(I){if(window.IntersectionObserver)return new Pem(I,400);throw new TypeError("Wf");};
pA9=function(){var I=Hammer.TouchAction,C=I.prototype.preventDefaults;I.prototype.preventDefaults=function(y){var k=this.actions.indexOf("pan-down")>-1;if(!k)return C.call(this,y);if(!DFK){var F=y.srcEvent;y=y.direction;var z;if((z=this.manager)==null?0:z.session.prevented)F.preventDefault();else if(k&&y&Hammer.DIRECTION_DOWN)return this.preventSrc(F)}}};
QWm=function(I){if(!I||I.size===0)return Hammer.DIRECTION_ALL;if(I.size===2){if(I.has("up")&&I.has("down"))return Hammer.DIRECTION_VERTICAL;if(I.has("right")&&I.has("left"))return Hammer.DIRECTION_HORIZONTAL}if(I.size===1){if(I.has("up"))return Hammer.DIRECTION_UP;if(I.has("down"))return Hammer.DIRECTION_DOWN;if(I.has("right"))return Hammer.DIRECTION_RIGHT;if(I.has("left"))return Hammer.DIRECTION_LEFT}return Hammer.DIRECTION_ALL};
_.VDm=function(){return N3m?Promise.resolve(N3m):new Promise(function(I,C){var y=self.indexedDB.open("swpushnotificationsdb");y.onerror=C;y.onsuccess=function(){var k=y.result;if(k.objectStoreNames.contains("swpushnotificationsstore"))N3m=k,I(N3m);else return self.indexedDB.deleteDatabase("swpushnotificationsdb"),_.VDm()};
y.onupgradeneeded=jWY})};
jWY=function(I){I=I.target.result;I.objectStoreNames.contains("swpushnotificationsstore")&&I.deleteObjectStore("swpushnotificationsstore");I.createObjectStore("swpushnotificationsstore",{keyPath:"key"})};
XAm=function(I){var C=lbY(),y;return _.e(function(k){switch(k.nextAddress){case 1:return _.aM(k,2),_.n(k,I.match(C,{cacheName:"yt-appshell-assets"}),4);case 4:y=k.yieldResult;_.dC(k,3);break;case 2:_.sj(k);case 3:return k.return(y)}})};
lbY=function(){var I=typeof ServiceWorkerGlobalScope!=="undefined"&&self instanceof ServiceWorkerGlobalScope?$Fz.registration.scope:Rvs;I.endsWith("/")&&(I=I.slice(0,-1));return I+"/app_shell_home"};
bX9=function(I){I.map(function(C){return C.source}).join("|")};
_.YPm=function(I){return _.e(function(C){return C.return(XAm(I))})};
Gds=function(){var I=window.caches,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,_.YPm(I),2);C=y.yieldResult;return y.return(!!C)})};
Wk9=function(){_.e(function(I){if(I.nextAddress==1){if(fbF)return I.jumpTo(0);fbF=!0;if(_.V("enable_system_health_primes_monitoring"))return _.uX(SPm,3E4),KkX(),I.return();if(!(Math.random()<_.s8("web_system_health_fraction")))return I.jumpTo(0);Am9={heightPixels:screen.height,widthPixels:screen.width};Nc&&!isNaN(Nc.jsHeapSizeLimit)&&(Am9.memoryTotalKbytes=String(Math.round(Nc.jsHeapSizeLimit/1E3)));window.devicePixelRatio&&(Am9.devicePixelRatio=window.devicePixelRatio);return _.n(I,gpF(),4)}_.uX(SPm,
3E4);return _.n(I,vpW(),0)})};
gpF=function(){return _.e(function(I){if(I.nextAddress==1)return V0.intersectionObserverPresent="IntersectionObserver"in window,V0.serviceWorkerPresent="serviceWorker"in navigator,V0.webSharePresent="share"in navigator,V0.fullScreenApiPresent="exitFullscreen"in document||"webkitExitFullscreen"in document,V0.cacheStoragePresent="caches"in window,V0.storageEstimatePresent="storage"in navigator&&"estimate"in navigator.storage,V0.storagePersistPresent="storage"in navigator&&"persist"in navigator.storage,
V0.webkitTemporaryStoragePresent="webkitTemporaryStorage"in jf&&jf.webkitTemporaryStorage&&"queryUsageAndQuota"in jf.webkitTemporaryStorage,V0.promiseRejectionEventPresent=typeof PromiseRejectionEvent!=="undefined",_.n(I,fCF(),2);V0.indexedDbPresent=I.yieldResult;V0.subtleCryptoPresent="crypto"in window&&"subtle"in window.crypto&&"importKey"in window.crypto.subtle;V0.broadcastChannelPresent="BroadcastChannel"in window;V0.webLocksApiPresent="locks"in navigator;window.matchMedia&&window.matchMedia("(color-gamut)").matches&&
(V0.supportsP3Color=window.matchMedia("(color-gamut: p3)").matches,V0.supportsRec2020Color=window.matchMedia("(color-gamut: rec2020)").matches);_.oI(I)})};
SPm=function(){var I=9E4+Math.random()*2E3;_.Ci()>I||(_.V("enable_system_health_primes_monitoring")?KkX():vpW())};
vpW=function(){var I;return _.e(function(C){if(C.nextAddress==1)return _.n(C,dFW(),2);I=C.yieldResult;_.b2("systemHealthCaptured",I);_.oI(C)})};
KkX=function(){var I={metric:{}},C=xFK();C.networkEvents.length&&(I.metric.networkEvents=qPz(C));_.b2("systemHealthCaptured",I)};
dFW=function(){var I,C,y,k,F,z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:I={viewportHeightPixels:Math.max(document.documentElement?document.documentElement.clientHeight||0:0,window.innerHeight||0),viewportWidthPixels:Math.max(document.documentElement?document.documentElement.clientWidth||0:0,window.innerWidth||0)};C=window.screen;_.V("enable_is_extended_monitoring")&&C&&"isExtended"in C&&(I.isExtended=!!C.isExtended);y={metric:{staticContext:Am9,dynamicContext:I,webMetric:mFH,webApiSupport:V0}};
if(k=_.Si())y.csn=k;Nc&&(y.metric.webMetric.currentHeapKbytes=Math.round(Nc.usedJSHeapSize/1E3));window.matchMedia&&(y.metric.dynamicContext.hasHoverSupport=window.matchMedia("(any-hover: hover)").matches,y.metric.dynamicContext.hasFinePointer=window.matchMedia("(any-pointer: fine)").matches,y.metric.dynamicContext.hasCoarsePointer=window.matchMedia("(any-pointer: coarse)").matches);if(!("getBattery"in jf&&typeof jf.getBattery==="function")){D.jumpTo(2);break}return _.n(D,jf.getBattery(),3);case 3:if(F=
D.yieldResult)y.metric.dynamicContext.chargingStatus=F.charging?"CHARGING_AC":"CHARGING_INACTIVE";case 2:"onLine"in navigator&&(y.metric.dynamicContext.networkCoarseState=navigator.onLine?0:2);if(V0.storageEstimatePresent)return _.n(D,navigator.storage.estimate(),8);if(!V0.webkitTemporaryStoragePresent){D.jumpTo(5);break}return _.n(D,ZXO(),7);case 7:z=D.yieldResult;D.jumpTo(5);break;case 8:z=D.yieldResult;case 5:return y.metric.dynamicContext.deviceStorageQuotaMbytes=((c=z)==null?0:c.quota)?String(Math.round(z.quota/
1048576/10)*10):"-1",y.metric.dynamicContext.deviceStorageUsageMbytes=((r=z)==null?0:r.usage)?String(Math.round(z.usage/1048576/10)*10):"-1",w=y.metric.dynamicContext,_.n(D,Gds(),9);case 9:return w.hasAppShell=D.yieldResult,L=xFK(),L.networkEvents.length&&(y.metric.networkEvents=qPz(L)),D.return(y)}})};
ZXO=function(){return new Promise(function(I){var C;V0.webkitTemporaryStoragePresent&&(C=jf.webkitTemporaryStorage)!=null&&C.queryUsageAndQuota?jf.webkitTemporaryStorage.queryUsageAndQuota(function(y,k){I({usage:y,quota:k})}):I(void 0)})};
_.lg=function(I){I&=16777215;I=[(I&16711680)>>16,(I&65280)>>8,I&255];return B3K(I[0],I[1],I[2])};
_.Xl=function(I){I=[(I&16711680)>>>16,(I&65280)>>>8,I&255,(I&4278190080)>>>24];var C=_.Epm(I,function(y){return y==(y&255)});
I[3]=(I[3]/255).toFixed(3);if(!C)throw Error("Xf`"+I.join(","));return"rgba("+I.join(",")+")"};
_.hvH=function(I){return[(I&16711680)>>>16,(I&65280)>>>8,I&255]};
_.UFO=function(I){I=I.map(function(C){C/=255;return C<=.03928?C/12.92:Math.pow((C+.05)/1.05,2.4)});
return I[0]*.2126+I[1]*.7152+I[2]*.0722};
$k=function(I,C){I=_.hvH(I);return"rgba("+I[0]+", "+I[1]+", "+I[2]+", "+C+")"};
_.HXz=function(){try{return!!self.localStorage}catch(I){return!1}};
abY=function(){if(tDm())_.SN(Error("Yf"));else{var I=document.createElement("iframe");I.style.display="none";var C=C===void 0?window.location.href:C;var y=_.YV(_.Aq("PERSIST_IDENTITY_IFRAME_URL"));C=y?y:(new URL(C)).host.indexOf("studio")===0?_.tM(JmK,"persist_identity"):_.tM(OXz,"persist_identity");_.nGY(I,1,C);I.id="persist_identity";var k;(k=document.body)==null||k.appendChild(I)}};
tDm=function(){var I=MDW;I||(I=document.querySelector("#persist_identity"));return I};
IyF=function(){var I=!1;try{I=!!window.sessionStorage.getItem("session_logininfo")}catch(C){I=!0}return(_.Aq("INNERTUBE_CLIENT_NAME")==="WEB"||_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR")&&I};
CZO=function(I,C){if(!IyF())return!1;C||(C=_.Aq("LOGIN_INFO"));return C?(I.session_logininfo=C,!0):!1};
oxO=function(I,C){I=I===void 0?!1:I;if((C===void 0||!C)&&ssm!=="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN")if(window.sessionStorage.getItem("from_switch_account"))window.sessionStorage.removeItem("from_switch_account");else if(_.g5("LOG_STICKINESS",!1)){C=_.Si();var y=_.fq(),k={identityStickinessData:{initialState:ssm}};C&&y&&_.UN(C,y,k)}if(C=tDm())if(y=C.src?(new URL(C.src)).origin:"*",I){var F;(F=C.contentWindow)==null||F.postMessage({action:"clear"},y)}else if(!(Number(window.sessionStorage.getItem("stickiness_reload"))>=
2)&&(I=window.sessionStorage.getItem("session_logininfo"))){var z;(z=C.contentWindow)==null||z.postMessage({loginInfo:I},y)}};
_.R_=function(I){I=I===void 0?!0:I;try{window.sessionStorage.removeItem("stickiness_reload"),window.sessionStorage.removeItem("session_logininfo"),_.KH("LOGIN_INFO",""),I&&window.sessionStorage.setItem("from_switch_account","1"),oxO(!0,I)}catch(C){}};
yxO=function(I){I&&(I.startsWith("https://accounts.google.com/AddSession")?_.R_():I.startsWith("https://accounts.google.com/ServiceLogin")?_.R_():I.startsWith("https://myaccount.google.com")&&_.dQ(I).getPath().endsWith("/youtubeoptions")&&_.R_())};
bg=function(I,C){yxO(I);if(_.g5("LOGGED_IN",!0)&&IyF()){var y=IAO(I);y==null&&(y={});CZO(y,C)&&_.aC(I,y)}};
kWt=function(){function I(C){for(C=C.target;C&&C.nodeName!=="A";)if(C=C.parentNode,!(C&&C instanceof HTMLElement))return;if(C&&!C.hasAttribute("download")&&C.getAttribute("rel")!=="external"&&C.href)return C.href}
document.addEventListener("mousedown",function(C){C.button!==0&&(C=I(C))&&bg(C)});
document.addEventListener("click",function(C){(C=I(C))&&bg(C)})};
zrO=function(){var I=new FBI;try{if(_.g5("LOGGED_IN",!0)){try{window.sessionStorage.setItem("canUseSessionStorage","true"),window.sessionStorage.removeItem("canUseSessionStorage")}catch(r){I.increment(5,!1);return}if(_.Aq("LOGIN_INFO")){var C=uwm?uwm:window.location;_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"&&abY();var y=IAO(C.href);y==null&&(y={});var k=y.session_logininfo,F=Number(window.sessionStorage.getItem("stickiness_reload")),z=k===_.Aq("LOGIN_INFO");if(!window.sessionStorage.getItem("session_logininfo")||
F>=2||z)F>=2?I.increment(2,z):z?I.increment(7,z):window.sessionStorage.getItem("session_logininfo")||(I.increment(3,z),ssm="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_NEW_TAB"),window.sessionStorage.setItem("session_logininfo",_.Aq("LOGIN_INFO")),window.sessionStorage.removeItem("stickiness_reload");else if(window.sessionStorage.getItem("session_logininfo"))if(_.Aq("LOGIN_INFO")===window.sessionStorage.getItem("session_logininfo"))I.increment(4,z),window.sessionStorage.removeItem("stickiness_reload");
else if(F<2){window.sessionStorage.setItem("stickiness_reload",String(F+1));var c=C.href;c=_.MJ(c,"sttick");bg(c,window.sessionStorage.getItem("session_logininfo"));c=_.E3(c,{sttick:F});I.increment(F,z);_.Wn(C,c)}}else I.increment(6,!1)}else _.R_(!1)}catch(r){}};
_.Yk=function(I,C,y,k,F){C=C===void 0?{}:C;y=y===void 0?"":y;k=k===void 0?window:k;I=_.hq(I,C);bg(I);y=_.ra(I+y,F);_.Wn(k.location,y)};
Tnz=function(I){if(I.urlEndpoint){if(I=_.B5(I.urlEndpoint.url),I.adurl)return O3(I.adurl)}else if(I.watchEndpoint)return"//www.youtube.com/watch?v="+I.watchEndpoint.videoId;return null};
cxm=function(I){if(!I||!I.reportingPings)return null;var C={};I.reportingPings.forEach(function(y){y.pingType in C?C[y.pingType].push(y.url):C[y.pingType]=[y.url]});
return{adpings:FoK(C)}};
_.fp=function(I){I=I===void 0?!1:I;var C=_.pA(),y="USER_INTERFACE_THEME_LIGHT";C.getFlag(165)?y="USER_INTERFACE_THEME_DARK":C.getFlag(174)?y="USER_INTERFACE_THEME_LIGHT":_.G8()&&(y="USER_INTERFACE_THEME_DARK");return I?y:ert()||y};
_.rxz=function(){return!_.V("kevlar_legacy_browsers")&&window.matchMedia&&window.matchMedia("(prefers-color-scheme)").matches};
_.G8=function(){return _.rxz()&&window.matchMedia("(prefers-color-scheme: dark)").matches};
_.Sf=function(){var I=_.pA();return _.rxz()&&!I.getFlag(165)&&!I.getFlag(174)};
ert=function(){var I=I===void 0?window.location.href:I;if(_.V("kevlar_disable_theme_param"))return null;var C=_.Tl(I);if(_.iNK(C))return"USER_INTERFACE_THEME_DARK";try{var y=_.B5(I).theme;return wwY.get(y)||null}catch(k){}return null};
_.iNK=function(I){return _.V("enable_dark_theme_only_on_shorts")?!(I==null||!I.startsWith("/shorts/")):!1};
_.LBI=function(I,C,y,k,F){C=C===void 0?!1:C;y=y===void 0?!1:y;var z=_.Aq("INNERTUBE_CONTEXT");if(!z)return _.GB(Error("bg")),{};z=(0,_.Le.unsafeClone)(z);_.V("web_no_tracking_params_in_shell_killswitch")||delete z.clickTracking;z.client||(z.client={});var c=z.client;c.clientName==="MWEB"&&c.clientFormFactor!=="AUTOMOTIVE_FORM_FACTOR"&&(c.clientFormFactor=_.Aq("IS_TABLET")?"LARGE_FORM_FACTOR":"SMALL_FORM_FACTOR");c.screenWidthPoints=window.innerWidth;c.screenHeightPoints=window.innerHeight;c.screenPixelDensity=
Math.round(window.devicePixelRatio||1);c.screenDensityFloat=window.devicePixelRatio||1;c.utcOffsetMinutes=-Math.floor((new Date).getTimezoneOffset());c.userInterfaceTheme=_.fp();if(!C){var r=_.Msm();r&&(c.connectionType=r);_.V("web_log_effective_connection_type")&&(r=CGI())&&(z.client.effectiveConnectionType=r)}var w;if(_.V("web_log_memory_total_kbytes")&&((w=_.sF.navigator)==null?0:w.deviceMemory)){var L;w=(L=_.sF.navigator)==null?void 0:L.deviceMemory;z.client.memoryTotalKbytes=""+w*1E6}C&&k&&!_.V("web_it_context_set_original_url_ks")&&
(c.originalUrl=nxz(_.sF.location.href,k).toString());_.V("web_gcf_hashes_innertube")&&(r=r7O())&&(L=r.coldConfigData,w=r.coldHashData,r=r.hotHashData,z.client.configInfo=z.client.configInfo||{},L&&(z.client.configInfo.coldConfigData=L),w&&(z.client.configInfo.coldHashData=w),r&&(z.client.configInfo.hotHashData=r));L=_.B5(_.sF.location.href);!_.V("web_populate_internal_geo_killswitch")&&L.internalcountrycode&&(c.internalGeo=L.internalcountrycode);!_.V("web_populate_client_screen_killswitch")&&F&&(c.clientScreen=
F);c.clientName==="MWEB"||c.clientName==="WEB"?(c.mainAppWebInfo={graftUrl:k||_.sF.location.href},_.V("kevlar_woffle")&&_.Kp.instance&&(k=_.Kp.instance,c.mainAppWebInfo.pwaInstallabilityStatus=!k.appInstalledEventFired&&k.deferredInstallPrompt?"PWA_INSTALLABILITY_STATUS_CAN_BE_INSTALLED":"PWA_INSTALLABILITY_STATUS_UNKNOWN"),c.mainAppWebInfo.webDisplayMode=y7X(),c.mainAppWebInfo.isWebNativeShareAvailable=navigator&&navigator.share!==void 0):c.clientName==="TVHTML5"&&(!_.V("web_lr_app_quality_killswitch")&&
(k=_.Aq("LIVING_ROOM_APP_QUALITY"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{appQuality:k})),k=_.Aq("LIVING_ROOM_CERTIFICATION_SCOPE"))&&(c.tvAppInfo=Object.assign(c.tvAppInfo||{},{certificationScope:k}));!_.V("web_populate_time_zone_itc_killswitch")&&(k=O7t())&&(c.timeZone=k);(k=DsW())?c.experimentsToken=k:delete c.experimentsToken;c=p1z();k=_.PZO();k=(0,_.Le.getValues)(k.tokenJars);z.request=Object.assign({},z.request,{internalExperimentFlags:c,consistencyTokenJars:k});!_.V("web_prequest_context_killswitch")&&
(c=_.Aq("INNERTUBE_CONTEXT_PREQUEST_CONTEXT"))&&(z.request.externalPrequestContext=c);k=_.pA();c=k.getFlag(58);k=k.get("gsml","");z.user=Object.assign({},z.user);c&&(z.user.enableSafetyMode=c);k&&(z.user.lockedSafetyMode=!0);_.V("warm_op_csn_cleanup")?y&&(C=_.Si())&&(z.clientScreenNonce=C):!C&&(C=_.Si())&&(z.clientScreenNonce=C);I&&(z.clickTracking={clickTrackingParams:I});if(I=_.d5("yt.mdx.remote.remoteClient_"))z.remoteClient=I;_.AG.getInstance().setLocationOnInnerTubeContext(z);try{var D=Yom(),
p=D.bid;delete D.bid;z.adSignalsInfo={params:[],bid:p};for(var Q=_.T(Object.entries(D)),X=Q.next();!X.done;X=Q.next()){var b=_.T(X.value),S=b.next().value,A=b.next().value;D=S;p=A;I=void 0;(I=z.adSignalsInfo.params)==null||I.push({key:D,value:""+p})}var x,B;if(((x=z.client)==null?void 0:x.clientName)==="TVHTML5"||((B=z.client)==null?void 0:B.clientName)==="TVHTML5_UNPLUGGED"){var t=_.Aq("INNERTUBE_CONTEXT");t.adSignalsInfo&&(z.adSignalsInfo.advertisingId=t.adSignalsInfo.advertisingId,z.adSignalsInfo.advertisingIdSignalType=
"DEVICE_ID_TYPE_CONNECTED_TV_IFA",z.adSignalsInfo.limitAdTracking=t.adSignalsInfo.limitAdTracking)}}catch(U){_.GB(U)}return z};
_.gU=function(){return{isShellLoad:_.g5("IS_SHELL_LOAD",!1)}};
pwm=function(){navigator.serviceWorker.getRegistrations().then(function(I){I.forEach(DfY)})};
DfY=function(I){I&&_.QsY(NnX,I.scope)};
_.QsY=function(I,C){C={scope:C||_.oD("service_worker_scope")||"/"};return navigator.serviceWorker.register(_.sC(I),C)};
vD=function(I,C,y,k){if(C&&C.serializedYpcCujLoggingParams){if(y){var F={};F.transactionErrorType=y;k&&(F.errorMessage=k);C.ypcCujLoggingClientPayload={ypcAcquisitionCujLoggingClientPayload:{ypcAcquisitionDebugLoggingParams:F}}}y={};y.ypcCujContext=C;I=_.z8("FLOW_EVENT_NAMESPACE_YPC_ACQUISITION",I,y);_.T8(_.cD(),I,"FLOW_TYPE_YPC_ACQUISITION")}};
_.VHK=function(I,C,y,k){var F={};F.serializedTransactionFlowLoggingParams=C;y&&(F.errorType=y);k&&(F.errorMessage=k);_.b2(I,F);_.Yo()};
_.jss=function(I){I&&_.VHK("transactionFlowStarted",I)};
_.lyz=function(I){I&&_.VHK("transactionFlowCancelled",I)};
_.WD=function(I,C,y){C&&_.VHK("transactionFlowFailed",C,I,y)};
_.xk=function(){this.megabloxUrl_=null};
_.qc=function(I){try{var C=XwI==null?void 0:XwI.composedPath(I)}catch(y){C=I.composedPath?I.composedPath():[]}return C&&C.length>0?C:I.composedPath?I.composedPath():[]};
_.m0=function(I){return _.qc(I)[0]};
_.ZW=function(I){if(!(I instanceof Element))return null;I=I.classList?Array.from(I.classList):void 0;if(!I)return null;var C=I.indexOf("style-scope");return C>-1&&C+1<I.length?I[C+1]:null};
BD=function(I){if(!(I instanceof HTMLElement))return null;var C=I&&(I.$$||I.polymerController)?I.tagName.toLowerCase():null;return C?C:_.ZW(I)};
$fX=function(I,C){return I.replace(/[^a-z]*[^\s]+/g,function(y){return y+".style-scope."+C})};
RrX=function(I,C){return C?I.split(",").map(function(y){return $fX(y.trim(),C)}).join(", "):I};
_.Eq=function(I){var C,y,k,F;return(F=(k=(y=(C=I.root)!=null?C:I.shadowRoot)!=null?y:I.__shady_native_shadowRoot)!=null?k:I.__shady_shadowRoot)!=null?F:I};
hG=function(I){return I instanceof ShadowRoot?ShadowRoot:I instanceof DocumentFragment?DocumentFragment:I instanceof Document?Document:HTMLElement};
bNI=function(I){var C,y,k;return(k=(y=(C=I.parentElement)!=null?C:I.__shady_native_parentElement)!=null?y:I.__shady_parentElement)!=null?k:null};
Y_H=function(I){var C,y,k;return(k=(y=(C=I.parentNode)!=null?C:I.__shady_native_parentNode)!=null?y:I.__shady_parentNode)!=null?k:null};
GWI=function(I){var C,y,k;return(k=(y=(C=I.__shady_parentNode)!=null?C:I.__shady_native_parentNode)!=null?y:I.parentNode)!=null?k:null};
fyI=function(I){var C,y;return(y=(C=Y_H(I))!=null?C:I.host)!=null?y:null};
S_s=function(I){var C,y,k;return(k=(y=(C=I.nextSibling)!=null?C:I.__shady_native_nextSibling)!=null?y:I.__shady_nextSibling)!=null?k:null};
KBm=function(I){var C,y,k;return(k=(y=(C=I.previousSibling)!=null?C:I.__shady_native_previousSibling)!=null?y:I.__shady_previousSibling)!=null?k:null};
AxI=function(I){var C,y,k;return(k=(y=(C=I.nextElementSibling)!=null?C:I.__shady_native_nextElementSibling)!=null?y:I.__shady_nextElementSibling)!=null?k:null};
gx9=function(I){var C,y,k;return(k=(y=(C=I.previousElementSibling)!=null?C:I.__shady_native_previousElementSibling)!=null?y:I.__shady_previousElementSibling)!=null?k:null};
vxK=function(I){var C,y,k;return new Set([].concat(_.Py((C=I.children)!=null?C:[]),_.Py((y=I.__shady_native_children)!=null?y:[]),_.Py((k=I.__shady_children)!=null?k:[])))};
WBW=function(I){var C,y,k;return new Set([].concat(_.Py((C=I.childNodes)!=null?C:[]),_.Py((y=I.__shady_native_childNodes)!=null?y:[]),_.Py((k=I.__shady_childNodes)!=null?k:[])))};
dfz=function(I){if(!I)return null;var C=_.ZW(I);if(!C){var y;return(y=Node.prototype.getRootNode)==null?void 0:y.call(I)}C=C.toUpperCase();for(I=bNI(I);I&&I.tagName!==C;)I=bNI(I);return I?_.Eq(I):null};
xfY=function(I){for(;I&&!(I instanceof HTMLElement);)I=fyI(I);return I};
q_z=function(I){var C=xfY(I);return I===C?_.ZW(I):C?BD(C):null};
mfY=function(I){return(I=xfY(I))?BD(I):null};
ZNI=function(I){if(I instanceof Comment)return!1;if(I instanceof Text){var C,y;if(((y=(C=I.textContent)==null?void 0:C.trim())!=null?y:"")==="")return!1}return!0};
Uq=function(I,C,y){var k=C(I);for(y=y===void 0?mfY(I):y;k&&(q_z(k)!==y||!ZNI(k));)I=k,k=C(I);return k};
Bnz=function(I,C,y){if(!C)return null;I=mfY(I);return q_z(C)===I&&ZNI(C)?C:Uq(C,y,I)};
ExX=function(I){return Uq(I,GWI,_.ZW(I))};
hrz=function(I){return Uq(I,AxI)};
Ufs=function(I){return Uq(I,S_s)};
HNs=function(I){return Uq(I,gx9)};
tHO=function(I){return Uq(I,KBm)};
JxI=function(I){return Bnz(I,I.firstChild||I.__shady_native_firstChild||I.__shady_firstChild||null,S_s)};
ONI=function(I){var C,y,k;var F=(k=(y=(C=I.firstElementChild)!=null?C:I.__shady_native_firstElementChild)!=null?y:I.__shady_firstElementChild)!=null?k:null;return Bnz(I,F,AxI)};
ays=function(I){var C,y,k;var F=(k=(y=(C=I.lastChild)!=null?C:I.__shady_native_lastChild)!=null?y:I.__shady_lastChild)!=null?k:null;return Bnz(I,F,KBm)};
MHs=function(I){var C,y,k;var F=(k=(y=(C=I.lastElementChild)!=null?C:I.__shady_native_lastElementChild)!=null?y:I.__shady_lastElementChild)!=null?k:null;return Bnz(I,F,gx9)};
Igt=function(I){var C=mfY(I);return Array.from(WBW(I)).filter(function(y){return q_z(y)===C})};
CFs=function(I){var C=BD(I);return Array.from(vxK(I)).filter(function(y){return _.ZW(y)===C})};
_.HD=function(I,C,y){if(I instanceof HTMLElement&&_.ZW(I)===y){var k=Array.from(I.classList).indexOf("style-scope");if(k===-1)I.classList.add("style-scope"),I.classList.add(C);else if(!(k+1>=I.classList.length)){k=I.classList[k+1];var F,z;I==null||(F=I.classList)==null||(z=F.replace)==null||z.call(F,k,C)}}if(I instanceof HTMLElement||I instanceof DocumentFragment)for(F=_.T(vxK(I)),z=F.next();!z.done;z=F.next())_.HD(z.value,C,y);return I};
tG=function(I,C){if(I instanceof HTMLElement&&_.ZW(I)===C){var y=Array.from(I.classList).indexOf("style-scope");y===-1||y+1>=I.classList.length||I.classList.remove("style-scope",I.classList[y+1])}if(I instanceof HTMLElement||I instanceof DocumentFragment){y=_.T(I.children);for(var k=y.next();!k.done;k=y.next())tG(k.value,C)}return I};
_.s5I=function(I,C){return hG(I).prototype.appendChild.call(I,C)};
olF=function(I,C){if(I===C)return!0;I=WBW(I);return Array.from(I).some(function(y){return olF(y,C)})};
_.f=function(I,C){if(I instanceof JG)return I;(C==null?0:C.ignoreOwnerDocument)&&!Object.getOwnPropertyDescriptor(I,"ownerDocument")&&Object.defineProperty(I,"ownerDocument",{get:function(){return window.document}});
return new JG(I)};
khY=function(){var I=JG.prototype,C=[].concat(_.Py(y4z?[]:["getRootNode"]),["setAttribute","removeAttribute"]);C=_.T(C);for(var y=C.next(),k={};!y.done;k={method$jscomp$49:void 0},y=C.next())k.method$jscomp$49=y.value,I[k.method$jscomp$49]=function(F){return function(){return this.host[F.method$jscomp$49].apply(this.host,arguments)}}(k)};
upz=function(){var I=JG.prototype,C=[].concat(_.Py(y4z?[]:"cloneNode contains appendChild insertBefore removeChild replaceChild".split(" ")),_.Py(FsO?[]:["querySelector","querySelectorAll"]));C=_.T(C);for(var y=C.next(),k={};!y.done;k={method$jscomp$50:void 0},y=C.next())k.method$jscomp$50=y.value,I[k.method$jscomp$50]=function(F){return function(){return this.root[F.method$jscomp$50].apply(this.root,arguments)}}(k)};
c4I=function(){var I=JG.prototype,C=[].concat(_.Py(zAz?[]:["nextSibling","previousSibling","nextElementSibling","previousElementSibling"]),_.Py(TpI?[]:["parentNode"]));C=_.T(C);for(var y=C.next(),k={};!y.done;k={prop$jscomp$62:void 0},y=C.next())k.prop$jscomp$62=y.value,Object.defineProperty(I,k.prop$jscomp$62,{get:function(F){return function(){return this.host[F.prop$jscomp$62]}}(k),
configurable:!0})};
iDY=function(){var I=JG.prototype,C=["activeElement"].concat(_.Py(zAz?[]:["firstChild","firstElementChild","lastElementChild","childNodes"]),_.Py(eAs?[]:["children"]),_.Py(r4z?[]:["lastChild"]));C=_.T(C);for(var y=C.next(),k={};!y.done;k={prop$jscomp$63:void 0},y=C.next())k.prop$jscomp$63=y.value,Object.defineProperty(I,k.prop$jscomp$63,{get:function(F){return function(){return this.root[F.prop$jscomp$63]}}(k),
configurable:!0})};
wrY=function(){for(var I=JG.prototype,C=_.T(["innerHTML","textContent"]),y=C.next(),k={};!y.done;k={prop$jscomp$64:void 0},y=C.next())k.prop$jscomp$64=y.value,Object.defineProperty(I,k.prop$jscomp$64,{get:function(F){return function(){return this.root[F.prop$jscomp$64]}}(k),
set:function(F){return function(z){this.root[F.prop$jscomp$64]=z}}(k),
configurable:!0})};
nlt=function(I){var C=JG.prototype;I=_.T(Object.entries(I));for(var y=I.next(),k={};!y.done;k={fn$jscomp$357:void 0},y=I.next()){var F=_.T(y.value);y=F.next().value;F=F.next().value;k.fn$jscomp$357=F;C[y]=function(z){return function(){return z.fn$jscomp$357.apply(null,[this.host.node||this.host].concat(_.Py(arguments)))}}(k)}};
LsO=function(){for(var I=JG.prototype,C=_.T(Object.entries(PFO)),y=C.next(),k={};!y.done;k={fn$jscomp$358:void 0},y=C.next()){var F=_.T(y.value);y=F.next().value;F=F.next().value;k.fn$jscomp$358=F;Object.defineProperty(I,y,{get:function(z){return function(){return z.fn$jscomp$358.apply(null,[this.host.node||this.host].concat(_.Py(arguments)))}}(k),
configurable:!0})}};
_.Oq=function(I){return I instanceof DVz||I instanceof Document?I:new DVz(I)};
prI=function(){for(var I=DVz.prototype,C=_.T("setAttribute removeAttribute cloneNode contains appendChild insertBefore getRootNode removeChild replaceChild querySelector querySelectorAll".split(" ")),y=C.next(),k={};!y.done;k={method$jscomp$51:void 0},y=C.next())k.method$jscomp$51=y.value,I[k.method$jscomp$51]=function(F){return function(){return HTMLElement.prototype[F.method$jscomp$51].call.apply(HTMLElement.prototype[F.method$jscomp$51],[this.node].concat(_.Py(arguments)))}}(k)};
Q5H=function(){for(var I=DVz.prototype,C=_.T("firstChild lastChild firstElementChild lastElementChild childNodes children parentNode nextSibling previousSibling nextElementSibling previousElementSibling classList innerHTML textContent".split(" ")),y=C.next(),k={};!y.done;k={prop$jscomp$65:void 0},y=C.next())k.prop$jscomp$65=y.value,Object.defineProperty(I,k.prop$jscomp$65,{get:function(F){return function(){var z;return(z=this.node["__shady_native_"+F.prop$jscomp$65])!=null?z:this.node[F.prop$jscomp$65]}}(k),
configurable:!0})};
_.a_=function(I,C,y){y===void 0&&(y=!I.classList.contains(C));y?I.classList.add(C):I.classList.remove(C)};
_.Mc=function(I,C,y){y===void 0&&(y=!I.hasAttribute(C));if(C==="class")throw Error("fg");y?_.Oq(I).setAttribute(C,""):_.Oq(I).removeAttribute(C)};
NpW=function(I){return(I.localName!=="slot"?[]:(0,_.IH)(I).assignedNodes({flatten:!0})).filter(function(C){return C.nodeType===Node.ELEMENT_NODE})};
_.VJz=function(I){return(I=_.f(I).querySelector("slot"))&&I.localName==="slot"?NpW(I):[]};
_.CK=function(I,C){window.ShadyCSS&&window.ShadyCSS.styleSubtree(I,C)};
j5z=function(I,C){var y=C.bind(I);return function(k){y(k,k.detail)}};
_.sb=function(I,C){var y=lgI.get(I);y||(y=new WeakMap,lgI.set(I,y));if(y.has(C))return y.get(C);if(_.V("web_fi_listen_disable_bound_fn_helper")){var k=C.bind(I);I=function(F){k(F,F==null?void 0:F.detail)}}else I=j5z(I,C);
y.set(C,I);return I};
RAY=function(I,C){Xrm(I);I.created[$Vm].push(C)};
Xrm=function(I){if(!I.created||!I.created[$Vm]){var C=I.created,y=C?[C]:[];I.created=function(){for(var k=_.T(y),F=k.next();!F.done;F=k.next())F.value.apply(this)};
I.created[$Vm]=y}};
bDm=function(I){return function(){var C=_.wa.apply(0,arguments);return function(y,k,F){I.apply(null,_.Py(C))(y,k,F)}}};
YQW=function(){return function(){var I=_.wa.apply(0,arguments);return function(C,y,k){LeI.apply(null,_.Py(I))(C,y,k)}}};
_.g=function(I){return YQW()(I)};
_.v=function(){return bDm(NAz).apply(null,_.Py(_.wa.apply(0,arguments)))};
_.km=function(I){return _.V("pbcm_fi_listen_decorators")?Ghz(I):bDm(pJI)(I)};
Ghz=function(I){return function(C,y){RAY(C,function(){var k=this[y],F=_.V("web_fi_listen_disable_bound_fn_helper")?function(z){k(z,z.detail)}.bind(this):j5z(this,k);
fgs.has(I)?bf(this.hostElement,I,F):this.hostElement.addEventListener(I,F)})}};
_.FI=function(){return bDm(Q7z).apply(null,_.Py(_.wa.apply(0,arguments)))};
_.d=function(I){I=I===void 0?{}:I;return bDm(DdY)(I)};
_.uT=function(I){if(I.hostElement&&I!==I.hostElement){var C=_.lG(I.hostElement);C=I.renderIdom?C:C.shadowRoot}C||(I=I.root,C=I instanceof Node?_.lG(I):null);return C};
_.z$=function(I){return SQm?KsI(I):function(C,y){Object.defineProperty(C,y,{get:function(){var k;return(k=_.uT(this))==null?void 0:k.querySelector(I)},
enumerable:!0,configurable:!0})}};
KsI=function(I){return function(C,y){Object.defineProperty(C,y,{get:function(){var k,F=(k=_.f(this.hostElement))==null?void 0:k.querySelector(I);if(F)return F;var z;k=(z=this.is)!=null?z:"yt-undefined-target";A4K!=null||(A4K=Date.now());(d8(k)+A4K)%100>_.s8("pbcm_fi_query_decorators_fallback_logging_pct")||(glO!=null||(glO=new vlH),WsY.has(k)||(WsY.add(k),glO.increment(k)));var c;return(c=_.uT(this))==null?void 0:c.querySelector(I)},
enumerable:!0,configurable:!0})}};
_.T$=function(I){return SQm?dVY(I):function(C,y){Object.defineProperty(C,y,{get:function(){var k;return(k=_.uT(this))==null?void 0:k.querySelectorAll(I)},
enumerable:!0,configurable:!0})}};
dVY=function(I){return function(C,y){Object.defineProperty(C,y,{get:function(){var k,F=(k=_.f(this.hostElement))==null?void 0:k.querySelectorAll(I);if(F==null?0:F.length)return F;var z;return(z=_.uT(this))==null?void 0:z.querySelectorAll(I)},
enumerable:!0,configurable:!0})}};
xVX=function(I){return function(C){if(![_.tn,_.q].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("gg");TAt(Object.assign({},typeof I!=="string"?I:{is:I,notifyObserversOnUndefined:!0},{disableInheritanceCheck:!0,disableEnforceFastDefaultValuesCheck:!0}))(C)}};
_.eA=function(){var I=I===void 0?{}:I;return function(C){if(![Jn,_.cO].includes(Object.getPrototypeOf(C.prototype).constructor))throw Error("hg");cuK(Object.assign({},I,{disableInheritanceCheck:!0}))(C)}};
mVY=function(I,C){qQW[I]!=null||(qQW[I]=new Set);qQW[I].add(C)};
_.rW=function(){var I=_.FI.apply(null,_.Py(_.wa.apply(0,arguments)));return function(C,y){mVY(C.is,y);I(C,y)}};
nK=function(I,C,y){if(iT(I)&&!ZDm.has(C)){C=C.replace(/^JSC\$[\d]+_/,"");C=C.replace(/\.\d+(\.|$)/g,function(z,c){return".#"+c});
wW[I]!=null||(wW[I]={});var k,F;(k=wW[I])[F=C]!=null||(k[F]=new Set);wW[I][C].has(y)||(wW[I][C].add(y),_.b2("polymerPropertyAccessEvent",{componentName:I,propertyName:C,accessType:y}))}};
Bp9=function(){return _.V("polymer_property_access_logging_debug")||_.V("polymer_enable_property_access_logging")};
iT=function(I){if(_.V("polymer_property_access_logging_debug"))return!0;if(!_.V("polymer_enable_property_access_logging"))return!1;ElX||(ElX=Date.now());return(d8(I)+ElX)%100<_.s8("polymer_property_access_logging_percent")};
hAz=function(I,C){return iT(C)&&I.hostElement.loggingStatus?new Proxy(I,{get:function(y,k,F){if(y.hostElement.loggingStatus.bypassProxyController)return y[k];y.hostElement.loggingStatus.isExternalGet=!0;var z=y[k];y.hostElement.loggingStatus.isExternalGet=!1;if(z instanceof Function)return function(){var c=_.wa.apply(0,arguments);try{return y.hostElement.loggingStatus.currentExternalCall=k,nK(C,k,"PROPERTY_ACCESS_CALL_EXTERNAL_CONTROLLER"),z.apply(this===F?y:this,c)}finally{y.hostElement.loggingStatus.currentExternalCall=
void 0}};
nK(C,k,"PROPERTY_ACCESS_GET_EXTERNAL_CONTROLLER");return z},
set:function(y,k,F){if(y.hostElement.loggingStatus.bypassProxyController)return y[k]=F,!0;y.hostElement.loggingStatus.isRendererStamper?nK(C,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE"):y.hostElement.loggingStatus.isDeclarativeExternal||nK(C,k,"PROPERTY_ACCESS_SET_EXTERNAL_CONTROLLER_IMPERATIVE");try{y.hostElement.loggingStatus.currentExternalSet=k,y[k]=F}finally{y.hostElement.loggingStatus.currentExternalSet=void 0}return!0}}):I};
UVm=function(I,C){I&&I.loggingStatus&&!I.loggingStatus.isDeclarativeExternal&&!I.loggingStatus.isExternalGet&&I.loggingStatus.currentExternalSet!==C&&nK(I.tagName.toLowerCase(),C,"PROPERTY_ACCESS_GET_INTERNAL")};
PO=function(I,C,y){I&&(y||I.loggingStatus&&!I.loggingStatus.isInitializing&&!I.loggingStatus.isDefiningPropertyAccessor&&I.loggingStatus.currentExternalSet!==C)&&nK(I.tagName.toLowerCase(),C,"PROPERTY_ACCESS_SET_INTERNAL")};
HDO=function(){return{_definePropertyAccessor:function(I,C){var y=this,k=y.hostElement.loggingStatus;k&&(k.isDefiningPropertyAccessor=!0);var F=y[I];F!==void 0&&(y.__data?y._setPendingProperty(I,F):(y.__dataProto!=null||(y.__dataProto={}),y.__dataProto[I]=F));k&&(k.isDefiningPropertyAccessor=!1);Object.defineProperty(this,I,{get:function(){UVm(y.hostElement,I);return this.__data[I]},
set:function(z){C||this._setPendingProperty(I,z,!0)&&this._invalidateProperties()}})},
created:function(){var I=this._setPendingProperty.bind(this);this._setPendingProperty=function(C,y,k){PO(this.hostElement,C);return I.apply(this,[C,y,k])}}}};
tJY=function(I){Bp9()&&_.g(LK.prototype)(I.prototype,"__templateBindingLoggingBehavior")};
J4H=function(I,C){if(C.resolvedFactories.length!==I.resolvedFactories.length)return!0;C=_.T(C.resolvedFactories.entries());for(var y=C.next();!y.done;y=C.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;if(k.providerClass){if(k.providerClass!==I.resolvedFactories[y].providerClass)return!0}else if(k.providerValue){if(k.providerValue!==I.resolvedFactories[y].providerValue)return!0}else if(k.factory!==I.resolvedFactories[y].factory)return!0}return!1};
ODK=function(I,C){I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.constructor===Array)ODK(y,C);else{var k=C;k.has(y)||(y.inject&&k.add(y),y.behaviors&&ODK(y.behaviors,k))}};
DB=function(I,C){var y=I[C];I[C]=function(){var k=_.wa.apply(0,arguments);this.initializeInjection&&this.initializeInjection();if(y)return y.apply(this,k)}};
Cnz=function(){_.pK.Class=function(y,k){y=agz(y,k);DB(y.prototype,"created");return y};
DB(QG.prototype,"_initializeProperties");DB(_.NH.prototype,"_initializeProperties");if(MJz)DB(IhY,"created");else{var I=function(){DB(customElements.get("tp-yt-iron-list").prototype,"_initializeProperties")};
if(customElements.get("tp-yt-iron-list"))I();else{var C=customElements.define;customElements.define=function(y,k,F){C.call(customElements,y,k,F);y==="tp-yt-iron-list"&&(I(),customElements.define=C)}}}};
oTW=function(I,C){I.prototype.behaviors=I.prototype.behaviors||[];I.prototype.behaviors.unshift(sum.InjectBehavior);I.prototype.provide=C};
_.lT=function(I){return function(C){if(!I.disableElementRegistration){I.noInjection||oTW(C,I.providers);var y=C.prototype;y.__templateHelpers||LeI(VG.prototype)(y,"__templateHelpers");y=I.is;y2I||(y2I=Date.now());(d8(y)+y2I)%100<_.s8("polymer_log_prop_change_observer_percent")&&LeI(jA.prototype)(C.prototype,"__propertyObserverObserver");C.prototype.behaviors=C.prototype.behaviors||[];C.prototype.behaviors.unshift(_.kfF.YtHostElementBehavior);tJY(C);xVX({is:I.is,notifyObserversOnUndefined:I.notifyObserversOnUndefined!==
!1,fastInit:I.fastInit,template:I.template,disableEnforceFastDefaultValuesCheck:!0})(C)}}};
_.m=function(I){return _.lT({is:I.is,template:I.template,disableElementRegistration:I.disableElementRegistration,cssBuildOptOut:I.cssBuildOptOut,notifyObserversOnUndefined:!1,noInjection:!0})};
zqF=function(I,C){if(FlK){I=new I;for(var y=_.T(Object.getOwnPropertyNames(I)),k=y.next();!k.done;k=y.next())k=k.value,C[k]=I[k];for(y=C;y&&y!==Object.prototype;y=Object.getPrototypeOf(y)){k=_.T(Object.getOwnPropertyNames(y));for(var F=k.next();!F.done;F=k.next())F=F.value,I.hasOwnProperty(F)||Object.defineProperty(I,F,usY(C,F))}}else I.apply(C)};
usY=function(I,C){return{get:function(){var y=I[C];return y instanceof Function?y.bind(I):y},
set:function(y){I[C]=y}}};
c2I=function(I,C){for(var y=I._noAccessors,k=_.T(Object.getOwnPropertyNames(I)),F=k.next();!F.done;F=k.next())if(F=F.value,!TFH.has(F))if(y)C[F]=I[F];else{var z=Object.getOwnPropertyDescriptor(I,F);z&&(z.configurable=!0,Object.defineProperty(C,F,z))}};
eqt=function(I,C,y){return function(k){if(y){var F=y();k.model=F}if(I[C])I[C](k,k.detail)}};
XI=function(I){var C=[];if(typeof I==="string")I.length>0&&C.push.apply(C,_.Py(I.split(".")));else{I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,typeof y==="string"?C.push.apply(C,_.Py(y.split("."))):C.push(y)}return C};
$m=function(I,C){if(C[C.length-1]!=="*"&&C[C.length-1]!=="splices"){for(var y=0;y<C.length;y++){if(!I)return;I=I[C[y]]}return I}};
r2K=function(I,C){if(I.length>C.length)return!1;for(var y=0;y<I.length;y++)if(I[y]!==C[y])return!1;return!0};
wxs=function(I,C,y){if(C.type==="compute"){var k=C.getter.bind(y);var F=C.args}else k=function(){return y[C.method.methodName].apply(y,_.Py(_.wa.apply(0,arguments)))},F=C.method.args;
izY(I,C.propertyKey,k,F,C.value)};
Pnt=function(I,C){if(C.readOnly){var y=Object.getOwnPropertyDescriptor(I.model,C.propertyKey);Object.defineProperty(I.model,C.propertyKey,{get:y.get,set:function(){}});
I.model[nTF(C.propertyKey)]=y.set}};
Llz=function(I,C,y){if(y){var k=C.propertyKey,F=C.selector;C=[{type:"path",path:"reduxPropertiesRecomputeTrigger"}].concat(_.Py(C.selectorArgs.map(function(z){return{type:"path",path:z}})));
izY(I,k,function(z){var c=_.wa.apply(1,arguments);return F.apply(null,[y.getState()].concat(_.Py(c)))},C)}};
pxz=function(I,C,y){var k=_.nq(C.propertyKey)+"-changed";Drs(I,function(F){var z={value:F.value,queueProperty:!0};F.path.split(".").length>1&&(z.path=F.path);y.dispatchEvent(new CustomEvent(k,{detail:z}))},[{type:"wildcard",
path:C.propertyKey}])};
QuW=function(I,C,y){Drs(I,function(){y[C.method.methodName].apply(y,_.Py(_.wa.apply(0,arguments)))},C.method.args)};
nTF=function(I){return"_set"+(I.charAt(0).toUpperCase()+I.slice(1))};
NFI=function(){var I,C=RF(function(y){I=y},!1);
return[I,C]};
$rm=function(I){I=I.trim().replace(V4z,",").replace(juY,"$1");var C=I[0];C==="-"&&(C=I[1]);if(C>="0"&&C<="9")return{type:"literal",value:Number(I)};if(C==="'"||C==='"')return{type:"literal",value:I.slice(1,-1)};if(C=I.match(lhH)){C=C[1];var y=Xx9[C];if(y)return{type:y,path:I.slice(0,-(C.length+1))}}return{type:"path",path:I}};
GfI=function(I){var C=I.match(Rqz);if(C)return I={methodName:C[1],args:bz9},C[2].trim()&&(C=C[2].replace(YAt,"&comma;").split(","),I.args=C.map($rm)),I};
fhs=function(I,C,y){C=_.nq(C);var k=L7;k&&(y=k(y,C,"attribute",I));RH(I,y,C)};
RH=function(I,C,y){C=SAt(C);C===void 0?I.removeAttribute(y):I.setAttribute(y,C)};
SAt=function(I){switch(typeof I){case "object":if(I instanceof Date)return I.toString();if(I){var C=window.trustedTypes?window.trustedTypes.isHTML(I)||window.trustedTypes.isScript(I)||window.trustedTypes.isScriptURL(I):void 0;if(C)return I;try{return JSON.stringify(I)}catch(y){_.SN(Error("Dg`"+I))}}break;case "boolean":return I?"":void 0;default:return I!==null&&I!==void 0?I.toString():void 0}};
KlX=function(I){if(I===void 0)throw Error("Eg");return I};
drm=function(I,C,y,k){var F=A2H(k);if(F.length){k=y;var z="property";gTm.test(y)?z="attribute":y[y.length-1]==="$"&&(y=y.slice(0,-1),z="attribute");var c=vTs(F);c&&z==="attribute"&&(y==="class"&&I.hasAttribute("class")&&(c+=" "+I.getAttribute(y)),RH(I,c,y));z==="attribute"&&k==="disable-upgrade$"&&I.setAttribute("disable-upgrade","");I.localName==="input"&&k==="value"&&I.setAttribute("value","");I.removeAttribute(k);z==="property"&&(y=_.P$(y));C=KlX(C);Wl9(C,z,y,F);return!0}return y.slice(0,3)===
"on-"?(I.removeAttribute(y),(z=C).events!=null||(z.events=[]),C.events.push({name:y.slice(3),value:k}),!0):y==="id"?(C.id=k,!0):!1};
A2H=function(I){for(var C=[],y=0,k;(k=xr9.exec(I))!==null;){k.index>y&&C.push({type:"literal",value:I.slice(y,k.index)});var F=k[1][0];y=!!k[2];k=k[3].trim();if(F==="{")throw Error("Fg");(F=GfI(k))?C.push({type:"method",negate:y,signature:F}):C.push({type:"path",negate:y,path:k});y=xr9.lastIndex}y&&y<I.length&&(I=I.substring(y))&&C.push({type:"literal",value:I});return C};
vTs=function(I){for(var C="",y=0;y<I.length;y++){var k=I[y];k.type==="literal"&&(C+=k.value)}return C};
Wl9=function(I,C,y,k){I.bindings!=null||(I.bindings=[]);I.bindings.push({kind:C,target:y,parts:k})};
ETW=function(I,C,y){var k=!1;if(I.localName==="template"){k=y;var F=C.stripWhitespace;F=qA9(I,F===void 0?!1:F);var z=I.content.ownerDocument.createDocumentFragment();F.content=z;z.appendChild(I.content);k&&(k.templateInfo=F);k=!0}else I.localName==="slot"&&(C.hasInsertionPoint=!0);if(I.firstChild&&(F=y,I.localName!=="script"&&I.localName!=="style")){z=0;for(var c=I.firstChild;c;){var r=c;if(r.localName==="template"){var w=r.getAttribute("is");if((c=w==="dom-if")||w==="dom-repeat"){r.removeAttribute("is");
w=r.ownerDocument.createElement("ps-"+w);r.parentNode.replaceChild(w,r);w.appendChild(r);var L=Array.from(r.attributes);L=_.T(L);for(var D=L.next();!D.done;D=L.next())D=D.value,c?mrW.has(D.name)&&RH(w,D.value,D.name):Zzz.has(D.name)?RH(w,D.value,D.name):BF9.has(D.name),r.removeAttribute(D.name);c=w}else c=r}if(c.nodeType===Node.TEXT_NODE){r=void 0;w=I;for(L=c;((r=L.nextSibling)==null?void 0:r.nodeType)===Node.TEXT_NODE;)D=void 0,(D=L).textContent!=null||(D.textContent=""),L.nextSibling.textContent&&
(L.textContent+=L.nextSibling.textContent),w.removeChild(L.nextSibling);if(C.stripWhitespace&&c.textContent&&!c.textContent.trim()){I.removeChild(c);c=c.nextSibling;continue}}ETW(c,C,{parentIndex:z,parentInfo:F});c.parentNode&&z++;c=c.nextSibling}}var p;if((p=I.hasAttributes)==null?0:p.call(I)){p=y=KlX(y);F=!1;z=Array.from(I.attributes);z=_.T(z);for(r=z.next();!r.done;r=z.next())r=r.value,F=drm(I,p,r.name,r.value)||F;k=F||k}I.nodeType===Node.TEXT_NODE&&(p=A2H(I.textContent),p.length&&(I.textContent=
vTs(p)||" ",y=KlX(y),Wl9(y,"text","textContent",p),k=!0));y&&k&&(y.infoIndex=C.nodeInfoList.push(y)-1)};
qA9=function(I,C){C={nodeInfoList:[],stripWhitespace:(C===void 0?!1:C)||I.hasAttribute("strip-whitespace")};ETW(I.content,C);return C};
hqO=function(I){Object.assign(I,{_disposeEffects:void 0,_signalProps:void 0,_signalValues:void 0})};
UrF=function(I,C){for(;I;){var y=I.signals[C];if(y)return y;I=I.parentScope}};
t4m=function(I,C,y,k){C.signalCache!=null||(C.signalCache={});var F=C.signalCache[y];if(!F){var z=y.split("."),c=UrF(k,z[0]);if((c==null?void 0:c.type)==="signal")F=function(){var Q=c.type==="mutable"?c.signal.getWithPath([]):c.getter();return{rootWasDefined:Q!==void 0,value:$m(Q,z.slice(1))}};
else if((c==null?void 0:c.type)==="mutable"){var r=c.signal,w=c.signal.getPathMutationSignal(z.slice(1));F=function(){var Q=Y4(I.owner,function(){return r.getWithPath([])}),X,b=(X=w())==null?void 0:X.value;
return{rootWasDefined:Q!==void 0,value:b}}}else{var L,D;
k=_.V("web_polysi_immutable_root_fix_killswitch")?!((L=I.options)==null?0:(D=L.immutableProps)==null?0:D.has(z[0])):!HzX(I,z[0]);if(z.length>1&&k){var p=I.getPathMutationSignal(z);F=function(){var Q=Y4(I.owner,function(){return I.getWithPath([z[0]])}),X,b=(X=p())==null?void 0:X.value;
return{rootWasDefined:Q!==void 0,value:b}}}else F=function(){var Q=I.getWithPath(z);
return{rootWasDefined:Q!==void 0,value:Q}}}C.signalCache[y]=F}return F()};
OzX=function(I,C,y,k,F,z){C=C.parts.map(function(r,w){if(r.type==="literal"){y.partWasDefined!=null||(y.partWasDefined=[]);var L;(L=y.partWasDefined)[w]||(L[w]=r.value!==void 0);return r.value}var D;if(r.type==="method"){var p,Q=(p=(D=y.partWasDefined)==null?void 0:D[w])!=null?p:!1;Q||(Q=r.signature.args.every(function(S){return S.type==="literal"}));
var X=!1,b=!0;D=r.signature.args.map(function(S){if(S.type==="literal")return S.value;if(S.type!=="path")throw Error("Gg`"+S.type);var A=t4m(I,y,S.path,F);S=A.value;A=A.rootWasDefined;X||(X=A);b&&(b=A);return S});
Q||(Q=z===1?b:X);y.partWasDefined!=null||(y.partWasDefined={});y.partWasDefined[w]=Q;if(!Q)return;D=(w=t4m(I,y,r.signature.methodName,F).value)&&typeof w==="function"?w.apply(k,D):void 0}else p=t4m(I,y,r.path,F),D=p.value,y.partWasDefined!=null||(y.partWasDefined={}),(Q=y.partWasDefined)[w]||(Q[w]=D!==void 0||p.rootWasDefined);r.negate&&(D=!D);return D});
if(C.length===1){var c;return((c=y.partWasDefined)==null?0:c[0])?C[0]:J2F}return C.join("")};
ahz=function(I){return typeof I==="object"&&!!I&&"notifyPath"in I&&"canNotifyPath"in I};
M4Y=function(I){return typeof I==="object"&&!!I&&"notifyPath"in I};
IwK=function(I){return"polymerController"in I};
C1s=function(I,C){C=""+XI(C)[0];if(ahz(I))return I.canNotifyPath(C);if(IwK(I)&&ahz(I.polymerController))return I.polymerController.canNotifyPath(C);if(M4Y(I)){var y;return!((y=I.properties)==null||!y[C])}if(IwK(I)&&M4Y(I.polymerController)){var k;return!((k=I.polymerController.properties)==null||!k[C])}return!1};
s9m=function(I,C,y){ahz(I)||M4Y(I)?I.notifyPath(C,y):IwK(I)&&(ahz(I.polymerController)||M4Y(I.polymerController))&&I.polymerController.notifyPath(C,y)};
yD9=function(I,C,y){if(y!==J2F){I.kind==="attribute"||I.target!=="textContent"&&(I.target!=="value"||C.localName!=="input"&&C.localName!=="textarea")||(y=y===void 0?"":y);var k,F=(k=oZO.Polymer)==null?void 0:k.sanitizeDOMValue;F&&(y=F(y,I.target,I.kind,C));if(I.kind==="attribute"){I=I.target;if(I==="class"||I==="name"||I==="slot")C=(0,_.IH)(C);RH(C,y,I)}else if(I=I.target,y!==C[I]||typeof y==="object")C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!0,nK(C.localName,I,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE")),
C[I]=y,C.loggingStatus&&(C.loggingStatus.isDeclarativeExternal=!1)}};
k7H=function(I,C,y,k,F){var z=C.parts[0];if(C.parts.length!==1||z.type!=="path"||!C1s(y,C.target))return!1;var c=_.T(z.path.split(".")),r=c.next().value,w=B2(c);if(!_.V("web_polysi_immutable_root_fix_killswitch")&&HzX(I,r))return!1;c=UrF(F,r);if((c==null?void 0:c.type)==="signal")return!1;k.signalCache!=null||(k.signalCache={});F=k.signalCache[z.path];var L;F=(L=F)==null?void 0:L().value;if((F==null?void 0:F.path)!==void 0){k=XI(F.path);var D=XI(z.path);k=[C.target].concat(_.Py(k.slice(D.length-1)));
s9m(y,k,z.negate?!F.value:F.value);return!0}var p;c?p=c.signal:p=bT(I,r);var Q=p.getChangeRecordSignal(w),X=!1;F=function(){if(!X){var S=Y4(I.owner,function(){return p.getWithPath([])});
X||(X=S!==void 0)}return{value:Q(),rootWasDefined:X}};
k.signalCache[z.path]=F;k.partWasDefined!=null||(k.partWasDefined={});r=F();(D=k.partWasDefined)[0]||(D[0]=r.rootWasDefined);var b=Y4(I.owner,function(){return p.getWithPath(w)});
k.partWasDefined[0]&&Y4(I.owner,function(){return void yD9(C,y,z.negate?!b:b)});
return!0};
FQI=function(I,C,y,k,F,z,c){if(!k7H(I,C,y,k,z)){var r=OzX(I,C,k,F,z,c);Y4(I.owner,function(){return void yD9(C,y,r)})}};
ubX=function(I,C,y,k,F,z,c){y=_.T(y);for(var r=y.next(),w={};!r.done;w={infoIndex:void 0},r=y.next()){r=r.value;var L=r.bindings;w.infoIndex=r.infoIndex;r=r.parentInfo;if(L){L=_.T(L);for(var D=L.next(),p={};!D.done;p={b$jscomp$254:void 0,bindingCtx$jscomp$4:void 0},D=L.next()){p.b$jscomp$254=D.value;if(w.infoIndex===void 0)throw Error("Hg");p.bindingCtx$jscomp$4={};I.effect(function(Q,X){return function(){F&&!F()||FQI(I,Q.b$jscomp$254,C[X.infoIndex],Q.bindingCtx$jscomp$4,k,z,c)}}(p,w))}}r&&ubX(I,
C,[r],k,F,z,c)}};
zWt=function(I,C){I=(C.parentInfo?zWt(I,C.parentInfo):I).firstChild;for(var y=0;I;I=I.nextSibling)if(C.parentIndex===y++)return I;throw Error("Ig");};
cDF=function(I,C,y,k){I=document.importNode(I.content,!0);I.__noInsertionPoint=!(k==null?0:k.hasInsertionPoint);for(var F=Array(C.length),z={},c=0;c<C.length;c++){var r=C[c],w=zWt(I,r);F[c]=w;r.id&&(z[r.id]=w);if(r.templateInfo){var L=w.parentElement;L&&(L.templateInfo=r.templateInfo,L.parentSignalProxy=y,L.eventListenerHost=k.eventListenerHost,L.stampingEnabled=k.enabledSignal,L.parentScope=k.scope)}L=void 0;if((L=r.events)==null?0:L.length)for(L=0;L<r.events.length;L++){var D=r.events[L];TPI(k.eventListenerHost,
w,D.name,D.value,k.getModel)}}ubX(y,F,C,k.thisCtx,k.enabledSignal,k.scope,k.methodInvocationRequirement);return{root:I,nodes:F,nodesById:z}};
rDs=function(I,C){I=I();var y;(y=eWF.ShadyCSS)==null||y.prepareTemplate(I,C);C=qA9(I);return{template:I,nodeInfoList:C.nodeInfoList,hasInsertionPoint:C.hasInsertionPoint}};
nZO=function(){iom=!1;for(var I=Ym.length,C=0;C<I;C++){var y=Ym[C];if(y)try{y()}catch(k){Promise.resolve().then(function(){throw k;})}}Ym.splice(0,I);
weI+=I};
peI=function(I){iom||(iom=!0,P1K.textContent=(LQz++).toString());Ym.push(I);return DGY++};
_.SA=function(I,C,y){G$++;I=C?new Q9I(G$,I,C,y):new NPz(G$,I);fK.set(G$,I);return G$};
Vv9=function(I){(I=fK.get(I))&&I.cancel()};
lws=function(I,C){I=j9m.get(I);return I?(C=I.get(C))?C:null:null};
_.KK=function(I,C,y,k){var F=lws(I,C);if(!F){F=new XeW;var z=j9m.get(I);z||(z=new Map,j9m.set(I,z));z.set(C,F)}I=y.bind(I);F.run(I,k,void 0)};
_.$Gt=function(I,C){var y;(y=lws(I,C))==null||y.cancel()};
RWH=function(I){var C;(C=lws(I,"doRender"))==null||C.flush()};
AL=function(I){var C;return(C=I.hostElement)!=null?C:I};
boO=function(I){var C=I.indexOf(".");return C===-1?I:I.slice(0,C)};
YpF=function(I,C,y,k,F,z){z=(F=(k=z?boO(C):C)?C:null)?I.get(F):I.__data[C];F&&z===void 0&&(z=y[C]);_.k3(I.hostElement,OW9(k)+"-changed",{value:z,queueProperty:!0,path:F!=null?F:void 0},{bubbles:!1,composed:!1})};
G7I=function(I,C){I.__isReflecting=!0;fhs(I.hostElement,C,I.__data[C]);I.__isReflecting=!1};
fwW=function(I){if(I._onIronRequestResizeNotifications){var C=I._onIronRequestResizeNotifications.bind(I);I._onIronRequestResizeNotifications=function(y){_.m0(y)!==I.hostElement&&C(y)}}I._ariaActiveAttributeChanged&&(I._ariaActiveAttributeChanged=I._ariaActiveAttributeChanged.bind(I.hostElement));
I._activeChanged&&(I._activeChanged=function(y){I.toggles?RH(I.hostElement,y?"true":"false",I.ariaActiveAttribute):I.hostElement.removeAttribute(I.ariaActiveAttribute);I._changedButtonState()});
I._asyncClick&&(I._asyncClick=function(){_.SA(function(){I.hostElement.click()},1)});
!I.keyEventTarget||I.keyEventTarget instanceof EventTarget||(I.keyEventTarget=AL(I.keyEventTarget));I._disabledChanged&&(I._disabledChanged=I._disabledChanged.bind(I.hostElement));I._observeItems&&(I._observeItems=function(y){var k=AL(y);return _.lG(k).observeNodes(function(F){I._updateItems();I._updateSelected();_.k3(k,"iron-items-changed",F,{bubbles:!1,cancelable:!1})})});
I._updateItems&&I._updateItems===_.gW._updateItems&&(I._updateItems=function(){var y=_.lG(I.hostElement).queryDistributedElements(I.selectable||"*");y=Array.prototype.filter.call(y,I._bindFilterItem);I._setItems(y)});
I._computeKeyboardClass&&(I._computeKeyboardClass=function(y){_.a_(I.hostElement,"keyboard-focus",y)});
I.ensureRipple&&(I.ensureRipple=function(y){if(I.hasRipple&&!I.hasRipple()){if(!I._createRipple)return;I._ripple=I._createRipple();I._ripple.noink=I.noink;var k=I._rippleContainer||I.hostElement;k&&_.f(k).appendChild(I._ripple)}var F;if(y&&((F=I._ripple)==null?0:F.uiDownAction)){k=_.f(I._rippleContainer||I.hostElement);var z;F=(z=y.composedPath())==null?void 0:z[0];k.contains(F)&&I._ripple.uiDownAction(y)}});
I._updateMultiselectable&&(I._updateMultiselectable=function(y){y?I.hostElement.setAttribute("aria-multiselectable","true"):I.hostElement.removeAttribute("aria-multiselectable")})};
SpW=function(I,C,y){y=_.T(y);for(var k=y.next();!k.done;k=y.next())zqF(k.value.constructor,I);zqF(C.constructor,I)};
ADm=function(I,C){I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.type==="signal"){var k=y.propertyKey;if(C.hasOwnProperty(k)&&C[k]!=null&&y.attributeType===Object){a:{k=C[k].constructor;for(var F=_.T(KQz),z=F.next();!z.done;z=F.next())if(z=z.value,k===z){k=z;break a}k=Object}y.attributeType=k}}};
gZH=function(){};
vZm=function(I){var C;return(C=I.hostElement)!=null?C:I};
WQt=function(){throw Error("Mg");};
dG9=function(I,C){I.constructor.prototype.useSignals=!0;var y=new I.constructor;SpW(y,I,C.behaviors);ADm(C.reactiveSchemas,y);y={};for(var k=_.T(C.reactiveSchemas),F=k.next();!F.done;F=k.next())F=F.value,F.type==="signal"&&(y[F.propertyKey]=F.attributeType);var z={copyPropertiesToProto:WQt,didRegister:!1,typesForSignals:y},c=["disable-upgrade"].concat(_.Py(C.observedAttributes)),r=function(w){vO.call(this,I,C,z,w)};
_.R(r,vO);_.H1.Object.defineProperties(r,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
z.copyPropertiesToProto=function(){for(var w=0;w<C.behaviors.length;w++)c2I(C.behaviors[w],r.prototype);c2I(I,r.prototype)};
C.legacyOptimizations||z.copyPropertiesToProto();r.prototype.is=I.is;return r};
xGW=function(I,C){if(Object.getPrototypeOf(C.prototype).constructor!==_.q)throw Error("Ng");C.prototype.is=I.is;return dG9(C.prototype,I)};
qpm=function(I){return I.type==="compute"||I.type==="computeWithMethod"};
mGs=function(I){for(var C=I.reactiveSchemas.filter(qpm),y=new Map,k=new Map,F=new Map,z=_.T(C),c=z.next();!c.done;c=z.next())c=c.value,y.set(c.propertyKey,c),k.set(c.propertyKey,[]),F.set(c.propertyKey,0);z=0;C=_.T(C);for(c=C.next();!c.done;c=C.next()){c=c.value;for(var r=_.T(c.type==="computeWithMethod"?c.method.args:c.args),w=r.next();!w.done;w=r.next())w=w.value,w.type!=="literal"&&(w=w.path.split(".")[0],k.has(w)&&(k.get(w).push(c.propertyKey),F.set(c.propertyKey,F.get(c.propertyKey)+1),z++))}c=
[].concat(_.Py(k.keys())).filter(function(L){return F.get(L)===0});
for(C=[];c.length;)for(r=c.shift(),C.push(y.get(r)),r=_.T(k.get(r)),w=r.next();!w.done;w=r.next())w=w.value,F.set(w,F.get(w)-1),z--,F.get(w)===0&&c.push(w);y=I.reactiveSchemas.filter(function(L){return!qpm(L)});
I.reactiveSchemas=[].concat(_.Py(y),_.Py(C))};
ZoO=function(I,C){if(C.properties)for(var y=_.T(Object.entries(C.properties)),k=y.next();!k.done;k=y.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;I.properties[k]=typeof F==="function"?{type:F}:F}C.observers&&I.observers.push.apply(I.observers,_.Py(C.observers));C.disabledPolySiReactions&&I.disabledPolySiReactions.push.apply(I.disabledPolySiReactions,_.Py(C.disabledPolySiReactions))};
BPY=function(I,C){for(var y=C.length-1;y>=0;y--){var k=C[y];Array.isArray(k)?BPY(I,k):I.indexOf(k)<0&&I.unshift(k)}};
EZW=function(I,C){I.reactiveSchemas=I.reactiveSchemas.filter(function(y){return y.type==="observe"&&C.includes(y.method.methodName)||qpm(y)&&C.includes(y.propertyKey)?!1:!0})};
UGm=function(I,C){var y=C.prototype,k,F,z={is:I.is,reactiveSchemas:[],observedAttributes:[],behaviors:[sum.InjectBehavior,VG.prototype],disableElementRegistration:I.disableElementRegistration,provide:(k=I.providers)!=null?k:[],reactivityMode:I.reactivityMode,signalProperties:(F=y.signalProperties)!=null?F:[]};"template"in C?z.templateGetter=function(){return C.template}:I.getTemplate&&(z.templateGetter=I.getTemplate);
y.behaviors&&BPY(z.behaviors,y.behaviors);hWI(z,C);return z};
hWI=function(I,C){for(var y=C.prototype,k={properties:{},observers:[],disabledPolySiReactions:[]},F=_.T(I.behaviors),z=F.next();!z.done;z=F.next())ZoO(k,z.value);ZoO(k,y);if(I.signalProperties)for(y=_.T(I.signalProperties),F=y.next();!F.done;F=y.next())delete k.properties[F.value];y=_.T(Object.entries(k.properties));for(F=y.next();!F.done;F=y.next()){z=_.T(F.value);F=z.next().value;z=z.next().value;var c=void 0;if((c=I.signalProperties)==null||!c.includes(F)){c=void 0;var r=I,w=z.type;if(!w)if(window.Reflect!==
void 0&&window.Reflect.getMetadata!==void 0)a:{w=Reflect.getMetadata("design:type",C,F);for(var L=_.T(HoY),D=L.next();!D.done;D=L.next())if(D=D.value,w===D){w=D;break a}w=Object}else w=String;z.computed||z.selector||(r.reactiveSchemas.push({type:"signal",propertyKey:F,value:z.value,attributeType:w,readOnly:z.readOnly}),r.observedAttributes.push(_.nq(F)));z.reflectToAttribute&&r.reactiveSchemas.push({type:"reflect",propertyKey:F});if(z.computed){w=GfI(z.computed);if(!w)throw Error("Og");r.reactiveSchemas.push({type:"computeWithMethod",
propertyKey:F,method:w,value:z.value})}z.observer&&r.reactiveSchemas.push({type:"observe",method:{methodName:z.observer,args:[{type:"path",path:F}]}});z.notify&&r.reactiveSchemas.push({type:"notify",propertyKey:F});z.selector&&r.reactiveSchemas.push({type:"redux",propertyKey:F,selector:z.selector,selectorArgs:(c=z.selectorArgs)!=null?c:[]})}}tvX&&mGs(I);C=_.T(k.observers);for(F=C.next();!F.done;F=C.next())y=I,F=F.value,(z=GfI(F))?y.reactiveSchemas.push({type:"observe",method:z}):console.log('Warning: unable to parse observe declaration: "'+
F+'"');EZW(I,k.disabledPolySiReactions)};
JDI=function(I,C){for(var y=0;y<C.length;y++){var k=C[y],F=void 0;(F=k).showHideApi!=null||(F.showHideApi={});F=void 0;!!I!==!((F=k.showHideApi)==null||!F.hideTemplateChildren)&&(k.nodeType===Node.TEXT_NODE?I?(k.showHideApi.polymerTextContent=k.textContent,k.textContent=""):(F=void 0,k.textContent=(F=k.showHideApi.polymerTextContent)!=null?F:null):k instanceof Element&&k.localName==="slot"?I?(k.showHideApi.polymerReplaced=document.createComment("hidden-slot"),(0,_.IH)((0,_.IH)(k).parentNode).replaceChild(k.showHideApi.polymerReplaced,
k)):(F=k.showHideApi.polymerReplaced)&&(0,_.IH)((0,_.IH)(F).parentNode).replaceChild(k,F):k instanceof HTMLElement&&k.style&&(I?(k.showHideApi.polymerDisplay=k.style.display,k.style.display="none"):k.style.display=k.showHideApi.polymerDisplay));k.showHideApi.hideTemplateChildren=I;k.showHideChildren&&k.showHideChildren(I)}};
awY=function(){if(!Oom){var I=document.createElement("style");I.innerText="ps-dom-if,ps-dom-repeat{display:none;}";document.head.appendChild(I);Oom=!0}};
MvY=function(I,C){return Y4(I,function(){for(var y={},k=C,F=new Set;k;){for(var z=_.T(Object.entries(k.signals)),c=z.next();!c.done;c=z.next()){var r=_.T(c.value);c=r.next().value;r=r.next().value;F.has(c)||(F.add(c),y[c]=r.type==="mutable"?r.signal.getWithPath([]):r.getter())}k=k.parentScope}return y})};
WO=function(){return _.V("disable_hidden_dom_if_using_stamper")||_.V("creator_disable_hidden_dom_if_using_stamper")};
I1X=function(){var I=!1,C=_.T(_.c4(!0,void 0,"UQbJQc")),y=C.next().value,k=C.next().value;return[function(){return I?!1:y()},
function(){I=!0;k(!1)}]};
C9K=function(I,C){var y=_.dW().getState();return C?I.apply(null,[y].concat(_.Py(C))):I(y)};
yCO=function(){if(sOm)return sOm;var I=_.T(_.c4(0,void 0,"Nl6eIe")),C=I.next().value;I.next();var y=I.next().value;_.dW().subscribe(function(){oOK(y)});
return sOm=C};
oOK=function(I){_.V("delay_redux_signal_update_killswitch")?I(function(C){return C+1}):koH||(koH=!0,Promise.resolve().then(function(){I(function(C){return C+1});
koH=!1}))};
_.dW=function(){return FDI.getAppStore()};
xm=function(I,C){return FDI.getSelectFn()(I,C)};
_.qH=function(I){FDI.getDispatchFn()(I)};
um9=function(I,C){var y={},k;for(k in I)y[k]=C(I[k],k);return y};
_.mh=function(I,C){return function(){var y;return(y=_.b0(I))!=null?y:C}};
_.ZB=function(I,C){var y=Object.assign({},I),k;for(k in C)C.hasOwnProperty(k)&&(y[k]=_.mh(I[k],C[k]));return y};
z2m=function(I,C,y){I instanceof Element&&(y.debugName||(y.debugName="<"+I.tagName.toLowerCase()+(I.tagName.includes("-")?">":"."+I.className+">")),_.V("ytwiz_enable_debug_component_props")&&(I.debugProps||(I.debugProps=um9(C,function(k){return function(){return k()}}))))};
_.BO=function(I,C){var y=function(k){var F={stack:[],error:void 0,hasError:!1};try{var z=T2H={};var c=cCY(F,YIt("component()")),r;if(((r=y)==null?0:r.idomCompat)&&k.renderedFromIdom){c==null||c.attr("idomCompat",!0);var w,L=typeof y.idomCompat==="object"?(w=y)==null?void 0:w.idomCompat.callbacks:{},D=_.T(e2K(k,L,y.debugName)),p=D.next().value;D.next();var Q=D.next().value,X=rCY(I,p);z.privateValue=X;T2H=void 0;z2m(X,p,y);c==null||c.attr("debugName",y.debugName);var b=xym(X),S=Array.isArray(b)?b[0]:
b;S[kS]||(S[kS]={});S[kS].updateSignalsFromIdomProps=Q;return X}var A=um9(k,icH);var x=rCY(I,A);z.privateValue=x;T2H=void 0;z2m(x,A,y);c==null||c.attr("debugName",y.debugName);return x}catch(B){F.error=B,F.hasError=!0}finally{woH(F)}};
y.debugName=C===void 0?"":C;return y};
rCY=function(I,C){I=I(C);return eR(I)};
nOm=function(I,C){I[C]||(I=new _.ph("IDOM interop setter undefined. Key:",C),_.GB(I))};
icH=function(I,C){return C==="children"||C==="ref"||typeof I==="function"||I===void 0?I:function(){return _.b0(I)}};
e2K=function(I,C,y){var k={},F={},z={},c={},r;for(r in I){c={key$jscomp$886:c.key$jscomp$886};c.key$jscomp$886=r;var w=I[c.key$jscomp$886];if(c.key$jscomp$886==="children"||c.key$jscomp$886==="ref")k[c.key$jscomp$886]=w;else if(typeof w==="function")c.key$jscomp$886 in C||w.length>0?(z[c.key$jscomp$886]=w,k[c.key$jscomp$886]=function(D){return function(){return z[D.key$jscomp$886].apply(z,_.Py(_.wa.apply(0,arguments)))}}(c)):k[c.key$jscomp$886]=w;
else if(!(I[c.key$jscomp$886]===void 0&&c.key$jscomp$886 in C)){var L=_.T(_.c4(I[c.key$jscomp$886],{debugName:"__cwis:"+y+":"+c.key$jscomp$886},"cEBU8c"));w=L.next().value;L=L.next().value;k[c.key$jscomp$886]=w;F[c.key$jscomp$886]=L}}return[k,F,function(D){var p={},Q;for(Q in D)p={key$jscomp$887:p.key$jscomp$887,val$jscomp$116:void 0},p.key$jscomp$887=Q,p.val$jscomp$116=D[p.key$jscomp$887],p.key$jscomp$887!=="children"&&p.key$jscomp$887!=="ref"&&(typeof p.val$jscomp$116==="function"?p.key$jscomp$887 in
C?z[p.key$jscomp$887]=p.val$jscomp$116:p.val$jscomp$116.length>0&&(z[p.key$jscomp$887]=p.val$jscomp$116,_.SN(new _.ph("Callback detected that was not set in the idomCompat callbacks map. Key:",p.key$jscomp$887))):p.key$jscomp$887 in C&&p.val$jscomp$116===void 0||(nOm(F,p.key$jscomp$887),Df(function(X){return function(){F[X.key$jscomp$887](X.val$jscomp$116)}}(p))))}]};
Doz=function(I,C,y){var k=kb9(I.prototype,P9I,I.prototype.behaviors);k.prototype.is=C;k.prototype.localName=C;y&&LDs(k,y);return function(F){F&&(k.prototype.hostElement=F);var z=new k;z.root=z;z.hostElement=F;return z}};
LDs=function(I,C){var y;Object.defineProperty(I.prototype,"_template",{get:function(){y===void 0&&(y=C());return y},
set:function(k){y=k},
configurable:!0,enumerable:!0})};
jOX=function(I,C,y,k){function F(){if(!X){for(var b=new Set,S=_.T(D),A=S.next();!A.done;A=S.next()){A=A.value;for(var x=_.T(Object.getOwnPropertyNames(A)),B=x.next();!B.done;B=x.next()){B=B.value;var t=void 0,U=(t=Object.getOwnPropertyDescriptor(A,B))==null?void 0:t.value;U&&U instanceof Function&&!Eb(B)&&b.add(B)}}S=_.T(Object.entries(Object.getOwnPropertyDescriptors(I.prototype)));for(A=S.next();!A.done;A=S.next())x=_.T(A.value),A=x.next().value,x=x.next().value,x.value instanceof Function&&!Eb(A)&&
b.add(A);X=b}return X}
poz(I,C,k==null?void 0:k.providers);FeK(I.prototype,I,!0);var z=Doz(I,C,y),c,r=(c=I.prototype.properties)!=null?c:{},w,L,D=(L=(w=I.prototype.behaviors)==null?void 0:w.flat(Infinity))!=null?L:[];y=_.T(D);for(c=y.next();!c.done;c=y.next())r=Object.assign({},c.value.properties,r);var p=[].concat(_.Py(QOK),_.Py(Object.keys(r).map(function(b){return _.nq(b)}))),Q=!1,X;
return{ctor:function(b,S){var A=z(b),x,B;b=[].concat(_.Py((x=k==null?void 0:k.allowedProps)!=null?x:[]),_.Py((B=k==null?void 0:k.allowedPropsFromBehaviors)!=null?B:[]));A.allowedProps=b.length>0?b:void 0;x={};B=_.T(p);for(b=B.next();!b.done;b=B.next())b=b.value,x[b]=_.P$(b);A.__dataAttributes=x;var t=A.ready.bind(A);A.ready=function(){S.beforeReady();t();if(iT(C)&&!Q){var U=A.__templateInfo;if(U==null?0:U.hostProps){U=_.T(Object.keys(U.hostProps));for(var yW=U.next();!yW.done;yW=U.next())nK(C,yW.value,
"PROPERTY_ACCESS_GET_INTERNAL")}Q=!0}};
A._overrideLegacyUndefined=!0;return A},
props:r,observedAttributes:p,getInitialMethods:F,getPropsToForwardBeforeRegister:function(){for(var b=[],S=new Set,A=_.T(Object.keys(r)),x=A.next();!x.done;x=A.next())x=x.value,b.push([x,r[x].readOnly]),S.add(x);A=F();x=_.T(Object.keys(Object.getOwnPropertyDescriptors(I.prototype)));for(var B=x.next();!B.done;B=x.next())B=B.value,!N2Y(B)||A.has(B)||S.has(B)||(b.push([B,!1]),S.add(B));S=_.T(VWK);for(A=S.next();!A.done;A=S.next())b.push([A.value,!0]);return b},
getPropsToForwardBeforeReady:function(b){for(var S=[],A=_.T(Object.entries(b)),x=A.next();!x.done;x=A.next()){var B=_.T(x.value);x=B.next().value;B=B.next().value;if(N2Y(x)&&!(B instanceof Function)&&(S.push([x,!1]),iT(C))){var t=B=void 0;(t=(B=b)._createPropertyAccessor)==null||t.call(B,x)}}return S},
shouldForwardProp:N2Y,shouldLog:iT}};
poz=function(I,C,y){oTW(I,y);I.prototype.behaviors.unshift(l1z);if(Bp9()){if(iT(C)){var k;(k=I.prototype).behaviors!=null||(k.behaviors=[]);I.prototype.behaviors.unshift(HDO())}tJY(I)}_.g(VG.prototype)(I.prototype,"__templateHelpers")};
Eb=function(I){return XoI.has(I)||I.startsWith("__compute__")};
N2Y=function(I){return!Eb(I)&&!I.startsWith("_")&&!I.endsWith("_")};
Gom=function(I,C){function y(){var Q=w();Q=_.T(Q);for(var X=Q.next();!X.done;X=Q.next()){var b=_.T(X.value);X=b.next().value;b=b.next().value;$o9(p.prototype,X,b)}k=!0}
var k=!1,F=I.ctor,z=I.getInitialMethods,c=I.observedAttributes,r=I.getPropsToForwardBeforeReady,w=I.getPropsToForwardBeforeRegister,L=I.shouldForwardProp,D=I.shouldLog,p=function(){var Q=HTMLElement.call(this)||this;Q.didForwardDynamicProps=!1;Q.loggingStatus={};k||y();Q.inst=F(Q,{beforeReady:function(){Q.didForwardDynamicProps||(Q.forwardDynamicProps(),Q.didForwardDynamicProps=!0)}});
Q.controllerProxy=hAz(Q.inst,C);Q.forwardMethods();return Q};
_.R(p,HTMLElement);p.prototype.forwardMethods=function(){for(var Q=this,X=_.T(this.inst.getExtraMethodsToForward()),b=X.next(),S={};!b.done;S={method$jscomp$61:void 0},b=X.next()){var A=_.T(b.value);b=A.next().value;A=A.next().value;S.method$jscomp$61=A;this[b]=function(x){return function(){return x.method$jscomp$61.call.apply(x.method$jscomp$61,[Q.inst].concat(_.Py(_.wa.apply(0,arguments))))}}(S)}X=_.T(z());
for(S=X.next();!S.done;S=X.next())S=S.value,L(S)&&R2F(this,S),D(C)&&!Eb(S)&&bcY(this.inst,S)};
p.prototype.forwardDynamicProps=function(){var Q=r(this.inst);Q=_.T(Q);for(var X=Q.next();!X.done;X=Q.next()){var b=_.T(X.value);X=b.next().value;b=b.next().value;$o9(this,X,b);D(C)&&!Eb(X)&&YlF(this.inst,X)}};
p.prototype.connectedCallback=function(){this.inst.connectedCallback();this.inst.isConnected=!0};
p.prototype.disconnectedCallback=function(){this.inst.disconnectedCallback();this.inst.isConnected=!1};
p.prototype.attributeChangedCallback=function(Q,X,b){this.inst.attributeChangedCallbackWrapper(Q,X,b)};
_.H1.Object.defineProperties(p.prototype,{is:{configurable:!0,enumerable:!0,get:function(){return C}},
polymerController:{configurable:!0,enumerable:!0,get:function(){return this.controllerProxy}}});
_.H1.Object.defineProperties(p,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return c}}});
customElements.define(C,p)};
$o9=function(I,C,y){I.hasOwnProperty(C)||Object.defineProperty(I,C,{get:function(){var k,F=((k=I.is)!=null?k:I.tagName).toLowerCase();if(this.polymerController)return this.loggingStatus.isDeclarativeExternal||nK(F,C,"PROPERTY_ACCESS_GET_EXTERNAL"),this.loggingStatus.isExternalGet=!0,this.loggingStatus.bypassProxyController=!0,k=this.polymerController[C],this.loggingStatus.isExternalGet=!1,this.loggingStatus.bypassProxyController=!1,k},
set:function(k){if(!y){var F,z=((F=I.is)!=null?F:I.tagName).toLowerCase();this.polymerController&&(this.loggingStatus.isDeclarativeExternal||nK(z,C,"PROPERTY_ACCESS_SET_EXTERNAL_IMPERATIVE"),this.loggingStatus.currentExternalSet=C,this.loggingStatus.bypassProxyController=!0,this.polymerController[C]!==k&&(F={},this.polymerController.setProperties((F[C]=k,F)),this.loggingStatus.currentExternalSet=void 0,this.loggingStatus.bypassProxyController=!1))}}})};
R2F=function(I,C,y){var k=I.polymerController;I[C]=function(){var F=_.wa.apply(0,arguments);I.loggingStatus.currentExternalCall=C;I.loggingStatus.bypassProxyController=!0;var z,c=((z=I.is)!=null?z:I.tagName).toLowerCase();nK(c,C,"PROPERTY_ACCESS_CALL_EXTERNAL");var r;z=(r=y!=null?y:k[C])==null?void 0:r.call.apply(r,[k].concat(_.Py(F)));I.loggingStatus.currentExternalCall=void 0;I.loggingStatus.bypassProxyController=!1;return z}};
bcY=function(I,C){var y=I.hostElement,k=I[C];I[C]=function(){var F=_.wa.apply(0,arguments);if(y.loggingStatus.currentExternalCall!==C){var z,c=((z=y.is)!=null?z:y.tagName).toLowerCase();nK(c,C,"PROPERTY_ACCESS_CALL_INTERNAL")}return k==null?void 0:k.apply(I,F)}};
YlF=function(I,C){var y=Object.getOwnPropertyDescriptor(I,C);y&&!y.get&&Object.defineProperty(I,C,{get:function(){UVm(I.hostElement,C);return y.value},
set:function(k){PO(I.hostElement,C);y.value=k}})};
f1Y=function(I){return _.V("poly_si_dom_repeat_detached_fix_killswitch")||I.tagName!=="PS-DOM-REPEAT"?I.tagName==="DOM-REPEAT":!0};
KDt=function(I,C){var y=Slm(I);I instanceof Element&&y.unshift(I);I=_.T(y.filter(f1Y));for(var k=I.next();!k.done;k=I.next()){k=_.T(k.value.__instances);for(var F=k.next();!F.done;F=k.next())if(F=F.value,F.root){F=Array.from(F.root.children);F=_.T(F);for(var z=F.next();!z.done;z=F.next())y.push.apply(y,_.Py(KDt(z.value,C)))}}return y.filter(function(c){return c.usePatchedLifecycles&&c.lifecycleIsConnected===C})};
Slm=function(I){var C=null;I instanceof Element?C=Element.prototype.querySelectorAll:I instanceof DocumentFragment&&(C=DocumentFragment.prototype.querySelectorAll);return C?Array.from(C.call(I,"*")):[]};
hL=function(I){TO(function(){for(var C=_.T(KDt(I,!1)),y=C.next();!y.done;y=C.next()){y=y.value;y.lifecycleIsConnected=!0;try{var k=void 0,F=void 0,z=void 0,c=void 0;(k=(c=y.polymerController)!=null?c:y)==null||(z=(F=k).connectedCallback)==null||z.call(F)}catch(r){_.GB(r)}}})};
Ub=function(I){TO(function(){for(var C=_.T(KDt(I,!0)),y=C.next();!y.done;y=C.next()){y=y.value;y.lifecycleIsConnected=!1;try{var k=void 0,F=void 0,z=void 0,c=void 0;(k=(c=y.polymerController)!=null?c:y)==null||(z=(F=k).disconnectedCallback)==null||z.call(F)}catch(r){_.GB(r)}}})};
qlO=function(){if(!ACI){ACI=!0;var I=[Node];HO&&I.push(HO.Wrapper);var C=Node.prototype.insertBefore,y=Node.prototype.removeChild;I=_.T(I);for(var k=I.next(),F={};!k.done;F={nativeInsertBefore:void 0,nativeAppendChild:void 0,nativeRemoveChild:void 0,nativeReplaceChild:void 0},k=I.next())k=k.value,F.nativeInsertBefore=k.prototype.insertBefore,k.prototype.insertBefore=function(c){return function(r,w){if(r instanceof DocumentFragment){var L=Array.from(r.children);r=c.nativeInsertBefore.call(this,r,w);
if(this.isConnected&&c.nativeInsertBefore===C)for(w=_.T(L),L=w.next();!L.done;L=w.next())hL(L.value);return r}L=r instanceof Element&&r.isConnected;w=c.nativeInsertBefore.call(this,r,w);L&&Ub(r);this.isConnected&&hL(r);return w}}(F),F.nativeAppendChild=k.prototype.appendChild,k.prototype.appendChild=function(c){return function(r){if(r instanceof DocumentFragment){var w=Array.from(r.children);
r=c.nativeAppendChild.call(this,r);if(this.isConnected){w=_.T(w);for(var L=w.next();!L.done;L=w.next())hL(L.value)}return r}w=r instanceof Element&&r.isConnected;L=c.nativeAppendChild.call(this,r);w&&Ub(r);this.isConnected&&hL(r);return L}}(F),F.nativeRemoveChild=k.prototype.removeChild,k.prototype.removeChild=function(c){return function(r){var w=r instanceof Element&&r.isConnected,L=c.nativeRemoveChild.call(this,r);
w&&y===c.nativeRemoveChild&&Ub(r);return L}}(F),F.nativeReplaceChild=k.prototype.replaceChild,k.prototype.replaceChild=function(c){return function(r,w){if(r instanceof DocumentFragment){var L=Array.from(r.children);
r=c.nativeReplaceChild.call(this,r,w);if(this.isConnected)for(Ub(w),w=_.T(L),L=w.next();!L.done;L=w.next())hL(L.value);return r}L=r instanceof Element&&r.isConnected;var D=this.isConnected,p=c.nativeReplaceChild.call(this,r,w);D&&Ub(w);L&&Ub(r);D&&hL(r);return p}}(F);
I=[Element];HO&&I.push(HO.Wrapper);I=_.T(I);k=I.next();for(F={};!k.done;F={nativeReplaceWith:void 0,nativeRemove:void 0,nativeInsertAdjacentElement:void 0,nativeSetAttribute:void 0,nativeRemoveAttribute:void 0,nativeToggleAttribute:void 0},k=I.next())k=k.value,k.prototype.before=gOm(k.prototype.before),k.prototype.after=gOm(k.prototype.after),F.nativeReplaceWith=k.prototype.replaceWith,k.prototype.replaceWith=function(c){return function(){var r=_.wa.apply(0,arguments),w=_.T(vOz(r)),L=w.next().value,
D=w.next().value;w=this.isConnected;c.nativeReplaceWith.apply(this,r);r=_.T(D);for(D=r.next();!D.done;D=r.next())Ub(D.value);if(w)for(Ub(this),L=_.T(L),w=L.next();!w.done;w=L.next())w=w.value,w instanceof Element&&hL(w)}}(F),F.nativeRemove=k.prototype.remove,k.prototype.remove=function(c){return function(){var r=this.isConnected;
c.nativeRemove.call(this);r&&Ub(this)}}(F),F.nativeInsertAdjacentElement=k.prototype.insertAdjacentElement,k.prototype.insertAdjacentElement=function(c){return function(r,w){var L=w.isConnected;
r=c.nativeInsertAdjacentElement.call(this,r,w);L&&Ub(w);r.isConnected&&hL(r);return r}}(F),F.nativeSetAttribute=k.prototype.setAttribute,k.prototype.setAttribute=function(c){return function(r,w){var L=WDm(this);
if(!L.usePatchedLifecycles)return c.nativeSetAttribute.call(this,r,w);var D=this.getAttribute(r);c.nativeSetAttribute.call(this,r,w);w=this.getAttribute(r);doI(L,r,D,w)}}(F),F.nativeRemoveAttribute=k.prototype.removeAttribute,k.prototype.removeAttribute=function(c){return function(r){var w=WDm(this);
if(!w.usePatchedLifecycles)return c.nativeRemoveAttribute.call(this,r);var L=this.getAttribute(r);c.nativeRemoveAttribute.call(this,r);L!==null&&doI(w,r,L,null)}}(F),F.nativeToggleAttribute=k.prototype.toggleAttribute,k.prototype.toggleAttribute=function(c){return function(r,w){var L=WDm(this);
if(!this.usePatchedLifecycles)return c.nativeToggleAttribute.call(this,r,w);var D=this.getAttribute(r),p=D!==null;w=c.nativeToggleAttribute.call(this,r,w);w!==p&&doI(L,r,D,w?"":null);return w}}(F);
I=[Document,DocumentFragment,Element,ShadowRoot];HO&&I.push(HO.Wrapper);I=_.T(I);for(F=I.next();!F.done;F=I.next())F=F.value,F.prototype.prepend=gOm(F.prototype.prepend),F.prototype.append=gOm(F.prototype.append);(HO==null?void 0:HO.noPatch)===!0&&xoY();document.readyState==="complete"?hL(document.body):document.addEventListener("readystatechange",function(){document.readyState==="complete"&&hL(document.body)});
var z=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"innerText");z&&z.get&&z.set&&Object.defineProperty(HTMLElement.prototype,"innerText",{enumerable:z.enumerable,configurable:!0,get:z.get,set:function(c){c||Ub(this);z.set.call(this,c);return c}})}};
gOm=function(I){return function(){var C=_.wa.apply(0,arguments),y=_.T(vOz(C)),k=y.next().value;y=y.next().value;I.apply(this,C);C=_.T(y);for(y=C.next();!y.done;y=C.next())Ub(y.value);if(this.isConnected)for(k=_.T(k),C=k.next();!C.done;C=k.next())C=C.value,C instanceof Element&&hL(C)}};
xoY=function(){for(var I=_.T(mom),C=I.next();!C.done;C=I.next()){C=C.value.prototype;for(var y=_.T(ZcH),k=y.next();!k.done;k=y.next()){k=k.value;var F=Object.getOwnPropertyDescriptor(C,k);F&&Object.defineProperty(C,"__shady_native_"+k,F)}}};
doI=function(I,C,y,k){var F,z;if((F=I.polymerController)==null?0:(z=F.observedAttributes)==null?0:z.includes(C))if(I=I.polymerController,I.attributeChangedCallbackWrapper)I.attributeChangedCallbackWrapper.call(I,C,y,k);else{var c;(c=I.attributeChangedCallback)==null||c.call(I,C,y,k)}};
vOz=function(I){var C=[],y=[];I=_.T(I);for(var k=I.next();!k.done;k=I.next())k=k.value,k instanceof Element&&k.isConnected&&y.push(k),k instanceof DocumentFragment?C.push.apply(C,_.Py(Array.from(k.children))):C.push(k);return[C,y]};
WDm=function(I){return!(I instanceof Element)&&I.node instanceof Element?I.node:I};
B2W=function(I,C){var y=C?["children"].concat(_.Py(C)):["children"];C=[];y=_.T(y);for(var k=y.next();!k.done;k=y.next()){var F=k.value;if(I.hasOwnProperty(F)){k=I[F];k=typeof k==="function"?k():k;k=eR(Array.isArray(k)?k:[k]).flat();if(F!=="children"){F=OW9(F);for(var z=_.T(k),c=z.next();!c.done;c=z.next())c=c.value,c instanceof Element&&c.setAttribute("slot",F)}C.push(k)}}C.length===0?I=[]:(I=eR(_.P("div",null,C)),I=Array.from(I.childNodes));return I};
h2Y=function(I,C,y){var k={};_.X$(function(){var F={},z;for(z in C)if(C.hasOwnProperty(z)){var c=void 0,r=void 0;if(!(((c=y.slotProps)==null?0:c.includes(z))||z==="children"||((r=y.callbackProps)==null?0:r.includes(z))||z==="ref")&&(c=_.b0(C[z]),k[z]!==c)){k[z]=c;r=void 0;var w=(r=I.hostElement)!=null?r:I;EOO.has(z)&&(w[z]=c);F[z]=c}}Df(function(){if(I.setProperties)I.setProperties(F);else for(var L=_.T(Object.entries(F)),D=L.next();!D.done;D=L.next()){var p=_.T(D.value);D=p.next().value;p=p.next().value;
I[D]=p}})})};
Hc9=function(I,C,y,k){var F=B2W(y,k.slotProps),z=_.V("web_wcw_disable_slot_host_shady_dom_wrap")?I:(0,_.IH)(I);F=_.T(F);for(var c=F.next();!c.done;c=F.next())z.appendChild(c.value);h2Y(C,y,k);k=_.T(k.callbackProps||[]);F=k.next();for(z={};!F.done;z={kebabEventName:void 0,eventListener:void 0},F=k.next())c=F=F.value,String(F).substring(0,2)==="on"&&y[c]?(z.kebabEventName=OW9(String(F).substring(2)),z.eventListener=y[c],I.addEventListener(z.kebabEventName,z.eventListener),_.$4(function(D){return function(){I.removeEventListener(D.kebabEventName,
D.eventListener)}}(z))):C[c]=y[c];
if(y.ref){y=_.T(Uoz(y.ref));var r=y.next().value,w=y.next().value,L=C.attached.bind(C);C.attached=function(){r(I);L()};
_.$4(function(){w()})}};
Uoz=function(I){if(typeof I==="function"){var C;return[function(y){C=I(y)},
function(){var y;(y=C)==null||y()}]}if(!I.onRender||!I.onUnmount)throw Error("Sg");
return[I.onRender,I.onUnmount]};
a1I=function(I,C,y,k,F){k=k===void 0?{}:k;var z=tWF,c=!1;z?(c=!0,tWF=void 0):(JCO=C,z=document.createElement(C),JCO=void 0);var r=z;r.usePatchedLifecycles=!0;r.lifecycleIsConnected=!1;z.loggingStatus={};var w=OcI(I,C,z,k,F);_.$4(function(){r.lifecycleIsConnected&&(r.lifecycleIsConnected=!1,w.disconnectedCallback())});
c||Hc9(z,w,y,k);return z};
OcI=function(I,C,y,k,F){F=F===void 0?jOX:F;MWF[C]!=null||(MWF[C]=F(I,C,k==null?void 0:k.getTemplate,k));var z=MWF[C],c=z.ctor;F=z.getInitialMethods;var r=z.getPropsToForwardBeforeReady;I=z.getPropsToForwardBeforeRegister;k=z.shouldForwardProp;var w=z.observedAttributes,L=z.shouldLog,D=c(y,{beforeReady:function(){var p=D;p._takeAttributes?p._takeAttributes():p.setPropertiesFromInitialAttributeValues&&p.setPropertiesFromInitialAttributeValues();p=_.T(r(y.polymerController));for(var Q=p.next();!Q.done;Q=
p.next()){var X=_.T(Q.value);Q=X.next().value;X=X.next().value;$o9(y,Q,X);L(C)&&!Eb(Q)&&YlF(y.polymerController,Q)}y.polymerController=hAz(D,C)}});
y.polymerController=D;y.polymerController.observedAttributes=w;z=_.T(D.getExtraMethodsToForward());for(c=z.next();!c.done;c=z.next())w=_.T(c.value),c=w.next().value,w=w.next().value,R2F(y,c,w);F=_.T(F());for(z=F.next();!z.done;z=F.next())z=z.value,k(z)&&R2F(y,z),L(C)&&!Eb(z)&&bcY(D,z);I=_.T(I());for(k=I.next();!k.done;k=I.next())F=_.T(k.value),k=F.next().value,F=F.next().value,$o9(y,k,F);return D};
CVs=function(I,C){return tL===C?(I.isInert=!0,tL="",!0):IGF===C?(I.isInert=!0,IGF="",!0):!1};
sKX=function(I){var C=JL;JL=I;return C};
y8F=function(I){if(Ob.has(I))IGF=I;else if(aH.has(I)&&JL&&oWz(JL)===I){var C;(C=JL)._numRenders!=null||(C._numRenders=0);JL._numRenders++;if(JL._numRenders>1)throw Error("Tg");return JL}};
krs=function(I){Ob.has(oWz(I))?IGF=oWz(I):aH.has(oWz(I))&&JL!==I&&(I._isInert=!0)};
oWz=function(I){var C;return(C=I==null?void 0:I.tagName.toLowerCase())!=null?C:""};
FT9=function(I,C){if(I.componentType===NT)throw Error("Ug");aH.add(C);var y=function(){var k=HTMLElement.call(this)||this;k.is=C;if(JCO===C)return k.isInert=!0,k;k.createElement();return k};
_.R(y,HTMLElement);y.prototype.createElement=function(){if(!this.isInert){tWF=this;var k=_.T(zVz(function(){return _.P(I,null)})).next().value;
tWF=void 0;hqO(this);return k}};
customElements.define(C,y)};
zcm=function(I,C,y,k,F){I.prototype.is=C;(k==null?0:k.useSink)?uEF(I,C,y,k,F):(y=jOX(I,C,y,k),Gom(y,C));return I};
uEF=function(I,C,y,k,F){qlO();var z=_.BO(function(c){return a1I(I,C,c,Object.assign({},k,{getTemplate:y}),F)},"a");
FT9(z,C);return z};
c8Y=function(I){return!T_m.has(I)};
iss=function(I,C,y,k){function F(){if(!p){for(var Q=new Set(ecW),X=_.T(z.behaviors),b=X.next();!b.done;b=X.next()){b=b.value;for(var S=_.T(Object.getOwnPropertyNames(b)),A=S.next();!A.done;A=S.next()){A=A.value;var x=void 0,B=(x=Object.getOwnPropertyDescriptor(b,A))==null?void 0:x.value;B&&B instanceof Function&&Q.add(A)}}X=_.T(Object.entries(Object.getOwnPropertyDescriptors(I.prototype)));for(b=X.next();!b.done;b=X.next())S=_.T(b.value),b=S.next().value,S=S.next().value,S.value instanceof Function&&
Q.add(b);p=Q}return p}
var z=UGm({is:C,disableElementRegistration:!1,getTemplate:y,providers:k==null?void 0:k.providers,reactivityMode:k==null?void 0:k.reactivityMode},I);if((k==null?0:k.allowedProps)||(k==null?0:k.allowedPropsFromBehaviors)){var c,r;z.allowedProps=[].concat(_.Py((c=k.allowedProps)!=null?c:[]),_.Py((r=k.allowedPropsFromBehaviors)!=null?r:[]))}var w=xGW(z,I);C=w.observedAttributes;var L={};y=_.T(z.reactiveSchemas);for(k=y.next();!k.done;k=y.next())if(k=k.value,k.type==="signal")L[k.propertyKey]={readOnly:k.readOnly},
k.readOnly&&(L[nTF(k.propertyKey)]={readOnly:!0});else if(k.type==="compute"||k.type==="computeWithMethod"||k.type==="redux")L[k.propertyKey]={readOnly:!0};var D=z.reactiveSchemas.length,p;return{ctor:function(Q,X){Q=new w(Q);Q.beforeReady=X.beforeReady;return Q},
props:L,observedAttributes:C,getInitialMethods:F,getPropsToForwardBeforeRegister:function(){for(var Q=[],X=new Set,b=_.T(r89),S=b.next();!S.done;S=b.next())S=S.value,Q.push([S,S!=="observers"&&S!=="properties"]),X.add(S);b=_.T(Object.keys(L));for(S=b.next();!S.done;S=b.next())S=S.value,Q.push([S,L[S].readOnly]),X.add(S);b=F();S=_.T(Object.keys(Object.getOwnPropertyDescriptors(I.prototype)));for(var A=S.next();!A.done;A=S.next())A=A.value,!c8Y(A)||b.has(A)||X.has(A)||(Q.push([A,!1]),X.add(A));Q.push(["allowedProps",
!0]);return Q},
getPropsToForwardBeforeReady:function(Q){var X=[];Q=_.T(Object.keys(Q));for(var b=Q.next();!b.done;b=Q.next()){b=b.value;var S=F();c8Y(b)&&!S.has(b)&&X.push([b,!1])}Q=_.T(z.reactiveSchemas.slice(D));for(b=Q.next();!b.done;b=Q.next())b=b.value,b.type!=="compute"&&b.type!=="computeWithMethod"&&b.type!=="redux"&&b.type!=="signal"||X.push([b.propertyKey,b.type==="signal"?b.readOnly:!0]);return X},
shouldForwardProp:c8Y,shouldLog:iT}};
_.Z=function(I,C,y,k){var F,z,c=(z=(F=k)==null?void 0:F.mode)!=null?z:0;k!=null||(k={});var r;(r=k).reactivityMode!=null||(r.reactivityMode=0);c===1&&_.yS("creator_poly_si_disable_list").includes(C)&&(c=2);return c===1?zcm(I,C,y,Object.assign({},k,{useSink:!0}),iss):zcm(I,C,y,Object.assign({},k,{useSink:c===2}))};
_.MH=function(){return function(I,C,y,k){var F,z,c=(z=(F=k)==null?void 0:F.mode)!=null?z:2;k!=null||(k={});var r;(r=k).reactivityMode!=null||(r.reactivityMode=0);if(c===0)throw Error("Vg`"+c);return uEF(I,C,y,k,c===1?iss:void 0)}};
_.Ij=function(I){return _.V("creator_poly_si_killswitch")?!1:_.V("force_all_poly_si_batches")&&(I==="poly_si_all_on_test_check"||I==="creator_poly_si_batch_050"?0:I)||document.documentElement.hasAttribute("use-signals")?!0:!I||_.V(I+"_holdback_enabled")&&_.V("kevlar_polysi_holdback")?!1:_.V(I)};
Cv=function(I){return I?I.icon?I.icon.iconType.toLowerCase():I.customThumbnail?"member":"":""};
wqK=function(I){if(!I)return"";I=_.T(I);for(var C=I.next();!C.done;C=I.next())if((C=C.value)&&C.liveChatAuthorBadgeRenderer&&(C=Cv(C.liveChatAuthorBadgeRenderer))&&C!=="verified")return C;return""};
nWz=function(I,C){if(!I)return null;var y;return((y=I.find(function(k){return k&&k.liveChatAuthorBadgeRenderer?Cv(k.liveChatAuthorBadgeRenderer)===C:!1}))==null?void 0:y.liveChatAuthorBadgeRenderer)||null};
_.N_O=function(I){var C=getComputedStyle(document.querySelector("yt-live-chat-renderer")).backgroundColor;I=PVF(I);C=PVF(C);var y=LTI(I.hex);C=LTI(C.hex);var k=C[0]/255;var F=C[1]/255,z=C[2]/255,c=Math.max(k,F,z),r=Math.min(k,F,z),w=0,L=0,D=.5*(c+r);c!=r&&(c==k?w=60*(F-z)/(c-r):c==F?w=60*(z-k)/(c-r)+120:c==z&&(w=60*(k-F)/(c-r)+240),L=0<D&&D<=.5?(c-r)/(2*D):(c-r)/(2-2*D));k=[Math.round(w+360)%360,L,D];y=D5I(y,C);for(I=pq9(I.hex);y<4.5;){I=k[2]>=.5?I.darker((4.5-y)/2):I.brighter((4.5-y)/2);y=I.toString();
F=QKK(y);if(!F.length)throw Error("Rd`"+y);y=F;y=D5I(y,C)}return I.hex()};
D5I=function(I,C){I=_.UFO(I);C=_.UFO(C);return(Math.max(I,C)+.05)/(Math.min(I,C)+.05)};
_.s5=function(I){return"#"+("000000"+(I&16777215).toString(16)).slice(-6)};
_.Vnz=function(I){for(var C=0,y=0;y<I.length;y++)C=I.charCodeAt(y)+((C<<5)-C);I="#";for(y=0;y<3;y++)I+=("00"+(C>>y*8&255).toString(16)).slice(-2);return I};
jKt=function(I){I=(I||"").split(":");I.length===1&&I.unshift("yt-icons");I[1]=I[1].toLowerCase();return I};
YEW=function(I,C){var y=(C=C===void 0?!1:C)?lGF:Xqz,k=C?$5H:RcX;I.getIconNames().forEach(function(F){F=C?F:F.substring(F.indexOf(":")+1);I.name==="yt-icons"?bs9.add(F):F.includes("-filled")?y.add(F):k.add(F)})};
oj=function(I,C,y,k){y=y===void 0?!1:y;k=k===void 0?!1:k;var F,z,c;return _.e(function(r){if(r.nextAddress==1)return _.n(r,Grt,2);if(k)return r.return(bs9.has(I));F=y?lGF:Xqz;z=y?$5H:RcX;return C?(c=I.includes("-filled")?I:I.concat("-filled"),r.return(F.has(c))):r.return(z.has(I))})};
_.KTz=function(I){if(fGY(I))return I;var C=I=I.toLowerCase();(I=SEF.get(I))&&(C=I);return C};
_.y5=function(I){if(fGY(I))return I.toString();var C=A8I.get(I);if(C)return C;C=I.toLowerCase();var y="yt-icons",k=C.replace(/_/g,"-");switch(I){case "MY_CHANNEL":C="account_circle";break;case "ADD_TO_LIBRARY":C="add";break;case "ALERT_WARN_RED":C="warning";break;case "ARTIST":case "ARTIST_ANALYTICS":C="person_music";break;case "BLOCK_USER":C="block";break;case "CAPTIONS":C="closed_caption";break;case "CLOSED_CAPTION":y="av";C="closed-caption";break;case "COLLECTION":y="maps";C="layers";break;case "CONTACT":y=
"icons";C="business";break;case "CREATOR_STUDIO_ERROR_ON_LOAD":case "CREATOR_STUDIO_ERROR_ON_LOAD_V2":case "CREATOR_STUDIO_NO_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS":case "CREATOR_STUDIO_NO_HELD_COMMENTS_V2":case "CREATOR_STUDIO_NO_SEARCH_MATCH":case "CREATOR_STUDIO_NO_SEARCH_MATCH_V2":y="ytcp-icons";C=k.split("creator-studio-")[1];break;case "DISMISSAL":C="close";break;case "DO_NOT_DISTURB":C="block";break;case "DOGFOOD":y="icons";C="pets";break;case "DRAFT":C="paper_corner_folded";break;
case "EMPTY_LIKE":C="like_outline";break;case "EXIT_APP":C="exit_to_app";break;case "EXPAND_MORE":case "EXPAND_LESS":C=k;break;case "GAMES":y="ytg";C="my-games";break;case "GO_TO_PAGE":C="arrow-forward";break;case "GROUP":y="social";break;case "HIDE":C="not_interested";break;case "INPUT_COMPONENT":y="icons";C="settings-input-component";break;case "KIDS_BLOCK":C="block";break;case "MEMBERSHIP_LIMITED_PRE_PURCHASE":case "MEMBERSHIP_OFFER":y="ytg";C="membership-pre-purchase";break;case "MEMBERSHIP_LIMITED_POST_PURCHASE":y=
"ytg";C="membership-post-purchase";break;case "MULTIVIEW":C="screen_multi_view";break;case "MY_LOCATION":y="maps";C=k;break;case "NOTIFICATIONS_INBOX":C="NOTIFICATIONS";break;case "NEXT":C="chevron_right";break;case "OFFLINE":C="power-settings-new";break;case "PAUSE":y="miniplayer";break;case "PAYMENT":y="icons";break;case "PHONE_DOWNLOAD":C="phone_download";break;case "PREMIUM_STANDALONE":y="yt-logos";C="premium_standalone";break;case "PREMIUM_STANDALONE_CAIRO":y="yt-logos";C="premium_standalone_cairo";
break;case "QUESTION_ANSWER":C="question_answer";break;case "REDEEM":y="icons";C="redeem";break;case "REMOVE":case "REMOVE_FROM_HISTORY":case "REMOVE_FROM_PLAYLIST":C="remove-circle-outline";break;case "SAVE_PLAYLIST":case "LIBRARY_ADD":C="library_add";break;case "SCHOOL":y="yt-sys-icons";C="creator_academy";break;case "SETTINGS_LIGHT":C="settings_applications";break;case "SETTINGS_MATERIAL":C="settings";break;case "SEARCH_HISTORY":C="watch_history";break;case "SHOPPING_BAG":C="bag";break;case "SOCIAL":case "PEOPLE":y=
"yt-icons";C="people";break;case "STAFF_PICK":y="ytg";C="spotlight";break;case "START_DVR":C="add";break;case "STOP_DVR":y="av";C="stop";break;case "TAB_LIKED":C="like";break;case "TAB_INBOX":C="mail";break;case "TERMS_OF_SERVICE":y="icons";C="description";break;case "TRENDING":C="fire";break;case "UNBLOCK_USER":C="remove";break;case "UNPLUGGED_DARK_THEME":y="image";C="brightness-3";break;case "UNPLUGGED_LIVE_GUIDE":case "LIVE":C="live";break;case "UNPLUGGED_SPORTS":y="ytu";C="visibility-off";break;
case "VIDEOS":y="av";C="play-circle-filled";break;case "YOUTUBE":y="yt-logos";C="lozenge";break;case "YOUTUBE_RED_LOGO":case "YOUTUBE_PREMIUM_LOGO":y="yt-logos-ext";C="yt-logo-red-updated";break;case "YOUTUBE_LOGO":y="yt-logos-ext";C="yt-logo-updated";break;case "OFFLINE_NO_CONTENT":y="offline-no-content";break;case "SHORTS_COMMENT":case "SHORTS_DISLIKE":case "SHORTS_LIKE":case "SHORTS_SHARE":y="shorts";C=k;break;case "OUTLINE_YOUTUBE_IMPROVE_TV":y="yt-sys-icons";C="youtube_improve_tv";break;case "OUTLINE_BAG":y=
"yt-sys-icons";C="bag";break;case "QUEUE_PLAY_LAST":y="yt-sys-icons";C="list_queue_last";break;case "SLASH_CIRCLE_LEFT":C="slash_circle_left";break;case "SPEED_1_POINT_2X":C="1_point_2x";break;case "SPEED_1_POINT_5X":C="1_point_5x";break;case "SPEED_1_POINT_8X":C="1_point_8x";break;case "SPEED_POINT_2X":C="point_2x";break;case "SPEED_POINT_5X":C="point_5x";break;case "SPEED_POINT_8X":C="point_8x";break;case "SPEED_1X":C="1x";break;case "SPEED_2X":C="2x";break;case "OUTLINE_CLOCK_HALF_CIRCLE":y="yt-sys-icons";
C="clock_half_circle";break;case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16":case "YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16":y="yt-sys-icons";C="youtube_shorts_no_triangle-filled";break;case "PLAYABLES_LOGO":y="yt-sys-icons",C="tic_tac_toe"}C=y+":"+C;A8I.set(I,C);return C};
fGY=function(I){var C;_.V("kevlar_use_wil_icons")?C=!!_.N().resolve(_.k$).resolveIcon({iconName:I.toString()}):C=!1;return C};
_.uU=function(I,C,y,k){y=y===void 0?{}:y;k=k===void 0?!1:k;y===null&&(y={});var F=_.yS("kevlar_command_handler_command_banlist");F=_.T(F);for(var z=F.next();!z.done;z=F.next())if(z=I?I.hasOwnProperty(z.value):void 0,z)return!1;F=_.l(I.commandMetadata,_.It);return k&&F!=null&&F.url?!1:!C.disableCommandHandlerOverride&&_.FW.instance?(k=_.FW.instance,y.form||(y.form={element:C}),y.form.element||(y.form.element=C),!y.clickedVisualElement&&C.visualElement&&(y.clickedVisualElement=C.visualElement),k.resolveCommand(I,
y),!0):!1};
gW9=function(I,C){I=zp(I);for(var y=_.T(I.visibilityMonitorKeys||[]),k=y.next();!k.done;k=y.next())C.unobserveByKey(k.value);I.visibilityMonitorKeys=void 0};
x5H=function(I,C){if(_.Si()){if(_.V("kevlar_vimio_use_shared_monitor"))vWt(I,C.data);else if(!vWt(I,C.data))return;var y=C.data,k=WTO(y);if(_.V("enable_client_ve_spec_logging"))gW9(I,C.observer);else{var F=zp(I);F.trackedParams&&F.trackedParams!==k&&gW9(I,C.observer)}F=zp(I);!y||F.data&&F.data===y||(F.data=y);d5F(I,C);F.trackedParams=k}};
d5F=function(I,C){var y=C.observer;if(!y&&_.V("web_skip_missing_vimio_observer")){var k,F;_.SN(new _.ph("VisibilityObserver is not defined.",I.tagName,I.trackedParams,(k=C.data)==null?void 0:k.trackingParams,(F=C.data)==null?void 0:F.loggingDirectives))}else{var z=C.layer,c=C.visibilityCallback||function(){},r=C.prescanCallback,w=zp(I);
k=[];C.showOption&&k.push(y.observe(I,function(){C.skipLogging&&C.skipLogging()||_.Tp().reportShown(w,void 0,z);c(!0)},C.showOption));
C.hideOption&&k.push(y.observe(I,function(){_.Tp().reportHidden(w,void 0,z);c(!1)},C.hideOption));
C.prescanOption&&r&&k.push(y.observe(I,function(){r()},C.prescanOption));
w.visibilityMonitorKeys=k}};
vWt=function(I,C){I=zp(I);if(I.visualElement&&!C)return!0;if(!C)return!1;var y=!1;if(_.V("enable_client_ve_spec_logging")){var k,F;y=!!((k=C.loggingDirectives)==null?0:(F=k.clientVeSpec)==null?0:F.uiType)}k=WTO(C);if(!k&&!y)return!1;_.V("mweb_component_visibility_logging")&&(I.veContainer||(I.veContainer={}),I.veContainer.trackingParams=k);if(I.trackedParams&&I.trackedParams===k)return!1;var z;if(_.V("enable_client_ve_spec_logging")&&((z=I.visualElement)==null?0:z.isClientVe())){var c;z=(c=I.visualElement)==
null?void 0:c.getAsJspb();var r,w,L,D;if(_.ti(z,2)===((r=C.loggingDirectives)==null?void 0:(w=r.clientVeSpec)==null?void 0:w.uiType)&&_.ti(z,3,-1)===((L=C.loggingDirectives)==null?void 0:(D=L.clientVeSpec)==null?void 0:D.elementIndex))return!1}if(_.V("enable_client_ve_spec_logging")){var p,Q;!I.visualElement&&((p=C.loggingDirectives)==null?0:(Q=p.clientVeSpec)==null?0:Q.uiType)&&(r=C.loggingDirectives.clientVeSpec,C=r.uiType,c=r.elementIndex,r=r.clientYoutubeData,I.visualElement=_.c9(_.e2(),{veType:C,
elementIndex:c,clientYouTubeData:r}))}return!0};
WTO=function(I){if(I==null?0:I.rendererContext){var C=_.l(I.rendererContext,_.qEK);if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams}return(I==null?0:I.loggingDirectives)?I.loggingDirectives.trackingParams:I==null?void 0:I.trackingParams};
zp=function(I){var C;return(C=I.polymerController)!=null?C:I};
EWs=function(I){_.Tp();if(_.W5(rY().JSC$10335_elementShouldLogGesture).bind(rY())(I,4)){m5W(I);var C=ZsH(I);B_m.set(I,C)}};
m5W=function(I){B_m.has(I)&&(B_m.get(I).cancel("untrack hover element"),B_m.delete(I))};
ZsH=function(I){var C,y=[],k=!1,F=new _.eN(function(z,c){iU(I,"mouseenter",_.W5(function(){var r,w,L;return _.e(function(D){if(D.nextAddress==1)return C=(0,_.JY)(),r=hcI(I),y.push(r),w=U5s(I,function(){k=!0;c(Error("Wg"))}),_.n(D,r,2);
if(D.nextAddress!=3)return w&&wY(w),L=HsO(I),y.push(L),_.n(D,L,3);z();_.oI(D)})}))});
F.then(function(){var z=(0,_.JY)()-C;z=Math.round(z);if(!(500>z||6E5<=z)){var c=I.getScreenLayer?I.getScreenLayer():void 0;c=_.Si(c)||"";var r=tnH(_.Tp(),I);_.h7(c,I.visualElement?I.visualElement:_.nv(r),"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{hoverData:{durationHoveredMs:z}})}EWs(I)},function(){P9&&(P9(),P9=null);
k&&(m5W(I),EWs(I))});
return F};
hcI=function(I){var C;return(new _.eN(function(y,k){P9=function(){k(Error("Xg"))};
C=_.b$.debounce(_.W5(function(){wY(F);y()}),1,100);
var F=_.Lv(I,"mousemove",C)})).thenCatch(function(){var y=_.b$.cancelDebouncedJobMap.get(C);
y&&_.b$.cancelJob(y)})};
HsO=function(I){var C;return(new _.eN(function(y,k){P9=function(){k(Error("Yg"))};
C=iU(I,"mouseleave",_.W5(function(){y()}))})).thenCatch(function(){wY(C)})};
U5s=function(I,C){return iU(I,"mouseleave",_.W5(C))};
OsX=function(I){J8W&&_.D_.cancel(J8W);J8W=_.D_.run(function(){_.k3(I,"yt-visibility-refresh");J8W=0})};
aGt=function(I){I=Number(I);return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
IlW=function(I){if(!I)return!1;if(_.l(I,_.MnO))return!0;var C;if(I=(C=_.l(I,_.r9))==null?void 0:C.commands)for(C=_.T(I),I=C.next();!I.done;I=C.next())if(_.l(I.value,_.MnO))return!0;return!1};
Cmz=function(I){var C=!0;C=C===void 0?!0:C;if(!I.useSignals&&!I.experimentalPropertiesChanged||_.V("experimental_templating_behavior_nopatch_killswitch")){var y=I._propertiesChanged;I._propertiesChanged=function(k,F,z){C?I.debounceRender():I.doRender();y&&y.call(I,k,F,z)}}};
s6z=function(I,C){if(I.useSignals||I.experimentalPropertiesChanged)if(_.V("experimental_templating_behavior_nopatch_killswitch"))I.experimentalPropertiesChanged=function(){};
else return;var y=new Set,k=[I].concat(_.Py(I.behaviors));k=_.T(k);for(var F=k.next();!F.done;F=k.next()){F=F.value;for(var z in F.properties)y.has(z)||(I._addPropertyEffect(z,"function",C),y.add(z))}};
o8K=function(){var I=Polymer.Element,C=I._prepareTemplate;I._prepareTemplate=function(){C.call(this);var y=this.prototype;if(y.experimentalTemplatingInUse&&y.experimentalTemplatingInUse()&&y.switchTemplateAtRegistration&&this.template!==void 0)if(typeof this.template==="string")_.GB(Error("Zg"));else{y=this.template.content.childNodes;for(var k=y.length-1;k>=0;k--){var F=y[k];F.nodeName!=="STYLE"&&F.nodeName!=="LINK"&&F.nodeName!=="SCRIPT"&&F.nodeName!=="#comment"&&F.remove()}}}};
yvY=function(I){var C=!0;C=C===void 0?!0:C;o8K();var y=I.ready;I.ready=function(){this._template=null;y.call(this)};
s6z(I,C?I.debounceRender:I.doRender)};
FFz=function(I,C,y){if(y===null||y===void 0)return y;var k=IvO(I.tagName.toLowerCase(),C,function(){throw Error("Pb");});
if(k===null)return y;k=kPH[k];var F;if((F=k.isUnwrappable)==null?0:F.call(k,y)){if(k.unwrap)return k.unwrap(y);throw Error("bh");}return k.filterString?k.filterString(I.tagName,C,String(y)):y};
uPH=function(I,C,y){var k=C[C.length-1]!=="$",F=FFz(I,C,y);if(k)if(typeof F==="function"&&C.startsWith("reactiveon")&&C===C.toLowerCase()){var z=tk;czK(I,C.slice(8),function(c){Y4(z,function(){F(c)})})}else I[C]=F;
else y=F==null?null:String(F),TIO(I,C.slice(0,-1),y)};
pv=function(I){zGs.length===0&&requestAnimationFrame(function(){setTimeout(function(){var C=zGs.slice();zGs.length=0;C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;try{y()}catch(k){_.mr(k)}}})});
zGs.push(I)};
T7I=function(I){if(I){var C=I.component;if(C){var y;C==null||(y=C.events)==null||y.publish("DISCONNECTED");var k;C==null||(k=C.onDisconnected)==null||k.call(C)}var F,z;(F=I.__spec)==null||(z=F.didUnmount)==null||z.call(F);for(C=0;C<I.childNodes.length;C++)T7I(I.childNodes[C])}};
Nx=function(I,C,y){var k=C&&C.key,F=mC;F[0]=I;F[1]=k;F[2]=void 0;for(var z in C)C.hasOwnProperty(z)&&(I=C[z],k=Zf,k.push(z),k.push(I));C=mC;a:{if(z=mC[2])for(I=0;I<z.length;I+=2)if(z[I]==="nonce"){z=z[I+1];break a}z=""}z=jeK(C[0],C[1],z);I=K$(z);k=C[2];if(!I.staticsApplied&&(I.staticsApplied=!0,k&&k.length))if((F=I._attrsArr)&&F.length){for(F=0;F<k.length;F+=2)Q5[k[F]]=F+1;F=I._attrsArr||(I._attrsArr=z19(0));for(var c=0,r=0;r<F.length;r+=2){var w=F[r],L=F[r+1],D=Q5[w];D?k[D]===L&&delete Q5[w]:(F[c]=
w,F[c+1]=L,c+=2)}f$(F,c);for(var p in Q5)nVH(z,p,k[Q5[p]],t3),delete Q5[p]}else for(p=0;p<k.length;p+=2)nVH(z,k[p],k[p+1],t3);GDI(z,I,t3);f$(C,0);y&&y(Af);lvF()};
cvO=function(I){var C=I.toString().toLowerCase();return function(y,k){Nx(C,y,k)}};
_.V5=function(I,C,y){y===void 0?delete I[C.name]:I[C.name]=y};
_.j2=function(I){var C={androidIncludeFontPadding:!1},y=0,k=[],F=[],z=[];if(I.simpleText)return C.content=I.simpleText,C;if(I.runs===void 0)return C.content="",C;I=_.T(I.runs);for(var c=I.next();!c.done;c=I.next()){c=c.value;var r=c.text,w=void 0,L=(w=r)==null?void 0:w.length;if(r&&L){k.push(r);if(c.bold||c.italics||c.strikethrough||c.underline||c.textColor!=null&&c.textColor!==0||c.deemphasize){r=F;w=r.push;var D={startIndex:y,length:L};c.bold&&(D.weightLabel="FONT_WEIGHT_MEDIUM");c.italics&&(D.italic=
!0);c.strikethrough&&(D.strikethrough="LINE_STYLE_SINGLE");c.underline&&(D.underline="LINE_STYLE_SINGLE");c.textColor!=null&&c.textColor!==0?document.documentElement.hasAttribute("dark")?D.fontColor=c.darkModeTextColor||c.textColor:D.fontColor=c.textColor:c.deemphasize&&(document.documentElement.hasAttribute("dark")?D.fontColor=parseInt("ff"+eGK("#aaa").substring(1),16):D.fontColor=parseInt("ff"+eGK("#606060").substring(1),16));w.call(r,D)}c.navigationEndpoint&&(r=z,w=r.push,D={startIndex:y,length:L,
onTap:{innertubeCommand:c.navigationEndpoint}},c.loggingDirectives&&_.V5(D,rvO,c.loggingDirectives),w.call(r,D));y+=L}}C.content=k.join("");C.styleRuns=F.length?F:void 0;C.commandRuns=z.length?z:void 0;return C};
wWW=function(I){if(I==null||!I.runs)return!0;I=_.T(I.runs);for(var C=I.next();!C.done;C=I.next())if(C=C.value,C.bracket||C.errorUnderline||C.deemphasize||_.l(C,lU)||_.l(C,id9))return!1;return!0};
n8z=function(I,C){return function(y){var k=C.unit;if(k!==y)throw Error("eh`"+I+"`"+k+"`"+y);return C}};
XW=function(I){if(!((I==null?0:I.value)&&(I==null?0:I.unit)))return"";switch(I.unit){case "DIMENSION_UNIT_FRACTION":var C="%";break;default:C="px"}I=I.value;C==="%"&&(I*=100);return""+I+C};
PmI=function(I){try{return I()}catch(C){_.SN(C)}};
_.Rj=function(I){var C=_.l(I,_.$$);if(C)return C;if((C=_.l(I,LFz))&&C.commands)return DeI(C.commands);if((C=_.l(I,pWm))&&C.commands)return DeI(C.commands);if((I=_.l(I,Q6Y))&&I.identifier&&I.command&&(N7Y||(N7Y=[]),!N7Y.includes(I.identifier)))return N7Y.push(I.identifier),_.l(I.command,_.$$)};
DeI=function(I){if(I.length!==0){var C=[];I=_.T(I);for(var y=I.next();!y.done;y=I.next())(y=_.Rj(y.value))&&C.push(y);return{commandExecutorCommand:{commands:C}}}};
_.Y$=function(I){var C=I.defaultTarget,y=I.elementConfig,k=I.elementsCommand,F=I.skipOnClick,z=I.forceNewState,c=I.additionalCommandArgs,r=I.innertubeCommand||_.Rj(k);if(r){I={};var w=VaK(r);k=w.navigatingCommand;w=w.href;k&&w?(I.href$=w,j6K(I,k,w,C),_.V("web_atagconfig_pointerdown")&&llH(I,k),z&&(I["force-new-state$"]=!0)):(I.role$="button",I.href$="javascript:void(0);");_.l(r,XWW)&&(I["aria-haspopup$"]=!0);F||(I.onclick=function(L){if($eI(L)){var D=Object.assign({},{form:{element:L.target,event:L}},
c);L.preventDefault();_.bU(r,D)}});
return Object.assign({},y,I)}};
RGI=function(I){if(I.length){if(I.length===1)return I[0];var C={};_.V5(C,_.r9,{commands:I});return C}};
bdW=function(I){return I&&I.href$!=="javascript:void(0);"};
VaK=function(I){var C,y=((C=_.l(I,_.r9))==null?void 0:C.commands)||[I];I=_.T(y);for(C=I.next();!C.done;C=I.next()){C=C.value;var k=void 0,F=void 0;y=(F=_.l((k=C)==null?void 0:k.commandMetadata,_.It))==null?void 0:F.url;_.V("web_remove_web_navigation_endpoint_data")||(k=void 0,y=y||((k=_.l(C,YRF))==null?void 0:k.url));if(y&&y!=="/service_ajax"){if(k=cn(y,GPm))return I=_.zK(k),{navigatingCommand:C,href:I};_.SN(new _.ph("AttributedString URL could not be sanitized",y))}}return{}};
$eI=function(I){return I.button!==void 0?I.button===0&&!(I.shiftKey||I.altKey||I.metaKey||I.ctrlKey):!(I.shiftKey||I.altKey||I.metaKey||I.ctrlKey)};
j6K=function(I,C,y,k){y=!Jq(y);var F,z,c;if((F=_.l(C,_.rU))!=null&&F.nofollow||(z=_.l(C,_.H$))!=null&&z.nofollow||(c=_.l(C,_.xo))!=null&&c.nofollow||y)I.rel$="nofollow";var r;C=((r=_.l(C,_.xo))==null?void 0:r.target)==="TARGET_NEW_WINDOW"?"_blank":k===void 0?"":k;I.target$=C};
llH=function(I,C){C.clickTrackingParams&&(I.params={itct:C.clickTrackingParams});I.onpointerdown=function(y){flW(y)};
I._data=C};
SR9=function(I){(I.loggingUrls||[]).forEach(function(C){qy(C.baseUrl,C.attributionSrcMode)})};
KFH=function(I){I.currentTarget._data&&SR9(I.currentTarget._data)};
flW=function(I){var C=I.currentTarget;I=PmI(function(){return C.href});
var y=C.params;I&&_.aC(I,y||{},8,!0)};
AvW=function(I,C){if(C=_.l(C,_.xo))(C==null?void 0:C.target)==="TARGET_NEW_WINDOW"&&(I.target="_blank"),C.nofollow&&(I.rel="nofollow")};
g8I=function(I){I=_.l(I==null?void 0:I.commandMetadata,_.It);return(I==null?0:I.url)?I.url:null};
_.Gp=function(I,C){(I=_.Rj(I))&&_.bU(I,C)};
_.bU=function(I,C){Pfz(function(y){C?y.resolveCommand(I,C):y.resolveCommand(I)})};
xeH=function(I,C){var y=["yt-core-attributed-string__link"];C!=null&&C.noLinkColor||((C==null?0:C.isOverlay)?y.push("yt-core-attributed-string__link--overlay-call-to-action-color"):y.push("yt-core-attributed-string__link--call-to-action-color"),(C==null?0:C.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color"));y={className:y.join(" "),tabindex$:"0"};var k=I.onTap||I.onLongPress;if(!k)return y;var F=v8s(I);F&&(y["aria-label$"]=F);C=_.Y$({elementsCommand:k,elementConfig:y,skipOnClick:!(C==
null||!C.skipOnClick),forceNewState:!0});I.onLongPress&&(k=new WFY(function(){var z=_.Rj(I.onLongPress);z&&_.N().resolve(_.ID).resolveCommand(z)}),C&&deK(k,C));
return C||y};
v8s=function(I){var C,y;return(C=I.onTapOptions)==null?void 0:(y=C.accessibilityInfo)==null?void 0:y.accessibilityLabel};
qRH=function(I){var C=I;I<=16777215&&(C+=parseInt("ff000000",16));return _.Xl(C)};
meI=function(I){var C=I.isDarkTheme;var y=I.extension;I=I.runColor;var k=void 0;if(y=y==null?void 0:y.colorMap){C=C?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";y=_.T(y);for(var F=y.next();!F.done;F=y.next())if(F=F.value,C===F.key){k=F.value;break}}k==null&&I&&(k=I);if(k)return qRH(k)};
fv=function(I){var C=I.config;var y=I.image;var k=I.imageConfig;var F=I.imageWrapperConfig;var z=I.run;var c=I.tag;var r=I.textLength;var w=I.startIndex===void 0?0:I.startIndex;I=I.length;w===void 0&&(w=0);z={run:z,startIndex:w,endIndex:I!==void 0?w+I:r,tag:c};y&&(z.image=y);k&&(z.imageConfig=k);F&&(z.imageWrapperConfig=F);C&&(z.config=C);return z};
B7I=function(I,C){var y=[];y.push("yt-core-attributed-string");(C==null?0:C.className)&&y.push(C==null?void 0:C.className);(C==null?0:C.ellipsisTruncate)?y.push("yt-core-attributed-string--ellipsis-truncate"):(C==null?0:C.noWrap)?y.push("yt-core-attributed-string--white-space-no-wrap"):(C==null?0:C.noPreWrap)||y.push("yt-core-attributed-string--white-space-pre-wrap");(C==null?0:C.linkInheritColor)&&y.push("yt-core-attributed-string--link-inherit-color");I.alignment&&y.push(ZdH(I.alignment));I.lineBreakMode&&
y.push("yt-core-attributed-string--word-wrapping");return y.join(" ")};
E8I=function(I){if(I.weight)return I.weight;switch(I.weightLabel){case "FONT_WEIGHT_THIN":return 100;case "FONT_WEIGHT_EXTRA_LIGHT":return 200;case "FONT_WEIGHT_LIGHT":return 300;case "FONT_WEIGHT_MEDIUM":return 500;case "FONT_WEIGHT_SEMI_BOLD":return 600;case "FONT_WEIGHT_BOLD":return 700;case "FONT_WEIGHT_EXTRA_BOLD":return 800;case "FONT_WEIGHT_BLACK":return 900;default:return 400}};
hGF=function(I){switch(I){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"}};
ZdH=function(I){switch(I){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"}};
HdK=function(I,C,y){var k=C;I.content&&y&&(y=I.content.indexOf("\n"),y!==-1&&(k=Math.min(C,y)));if(!I.content||I.content.length<=k)C=I;else if(I.attachmentRuns||I.commandRuns||I.decorationRuns||I.styleRuns||I.paragraphStyleRuns){C=S2(I.content,k);y=k;var F=I.attachmentRuns;if(F){var z=[];F=_.T(F);for(var c=F.next();!c.done;c=F.next())c=Object.assign({},c.value),c.startIndex===void 0||c.startIndex>=y||(c.length||(c.length=0),c.length+c.startIndex>y&&(c.length=y-c.startIndex),z.push(c));y=z}else y=
void 0;z=UeW(k,I.commandRuns);F=k;var r=I.decorationRuns;if(r){c=[];r=_.T(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var L=_.l(w.textDecorator,Kv);if(L&&L.startIndex!==void 0&&!(L.startIndex>=F)){w=Object.assign({},w,{textDecorator:{highlightTextDecorator:Object.assign({},L)}});L=_.l(w.textDecorator,Kv);if(!L.length||L.length+L.startIndex>F)L.length=F-L.startIndex;c.push(w)}}F=c}else F=void 0;c=UeW(k,I.styleRuns);if(r=I.paragraphStyleRuns)for(I=[],r=_.T(r),w=r.next();!w.done;w=r.next()){var D=
w.value;w=Object.assign({},D);if(!(w.startIndex===void 0||w.startIndex>=k)){if(!w.length||w.length+w.startIndex>k)w.length=k-w.startIndex;L=[];var p=void 0,Q=void 0;if((p=D)==null?0:(Q=p.listGroup)==null?0:Q.listItems)for(D=_.T(D.listGroup.listItems),p=D.next();!p.done;p=D.next())if(p=Object.assign({},p.value),!(p.startIndex===void 0||p.startIndex>=k)){if(!p.length||p.length+p.startIndex>k)p.length=k-p.startIndex;L.push(p)}L.length>0&&(w.listGroup||(w.listGroup={}),w.listGroup=Object.assign({},w.listGroup,
{listItems:L}));I.push(w)}}else I=void 0;C={content:C,attachmentRuns:y,commandRuns:z,decorationRuns:F,styleRuns:c,paragraphStyleRuns:I}}else C=Object.assign({},I,{content:S2(I.content,k)});return C};
UeW=function(I,C){if(C){var y=[];C=_.T(C);for(var k=C.next();!k.done;k=C.next())if(k=Object.assign({},k.value),!(k.startIndex===void 0||k.startIndex>=I)){if(!k.length||k.length+k.startIndex>I)k.length=I-k.startIndex;y.push(k)}return y}};
S2=function(I,C){var y=C,k;if(k=y>0)k=I.charCodeAt(y-1),k=k>=55296&&k<=56319;k&&(y=I.charCodeAt(y),k=y>=56320&&y<=57343);k&&--C;return I.substring(0,C)};
alK=function(I,C,y){y=y===void 0?tam:y;if(I){var k=_.N().resolve(Os);k||_.V("mweb_no_observer_killswitch")?x5H(I,{data:C,observer:k,visibilityCallback:y,hideOption:Jvs,showOption:Odt,layer:I.layer}):_.SN(new _.ph("Warning: monitorVisibility called with null observer",I.tagName,C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams))}else _.SN(new _.ph("Warning: monitorVisibility called with null element",C==null?void 0:C.loggingDirectives,C==null?void 0:C.trackingParams,C==null?void 0:
C.rendererContext))};
kVO=function(I,C){var y=[],k=I.content.length,F,z=(F=_.N().resolve(_.aU(_.AE)))==null?void 0:F();if(I.paragraphStyleRuns){F=_.T(I.paragraphStyleRuns);for(var c=F.next();!c.done;c=F.next()){var r=y.push,w=r.apply;var L=void 0;c=c.value;if((L=c.listGroup)!=null&&L.listItems){L=[];b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var D="ul";break b;default:D="span"}L.push(fv({run:c,textLength:k,tag:D,config:{className:"yt-core-attributed-string__list-group"},startIndex:c.startIndex,length:c.length}));
D=_.T(c.listGroup.listItems);for(var p=D.next();!p.done;p=D.next()){p=p.value;b:switch(c.listGroup.listType){case "LIST_TYPE_BULLET":var Q="li";break b;default:Q="span"}L.push(fv({run:c,textLength:k,tag:Q,startIndex:p.startIndex,length:p.length}))}c=L}else c=[];w.call(r,y,_.Py(c))}}if(I.styleRuns&&(C==null||!C.noStyleRuns))for(F=_.T(I.styleRuns),r=F.next();!r.done;r=F.next()){r=r.value;w=meI({extension:_.l(r.styleRunExtensions,MaF),isDarkTheme:z===void 0?!1:z,runColor:r.fontColor});L=[];w&&L.push("yt-core-attributed-string--link-inherit-color");
r.italic&&L.push("yt-core-attributed-string--italicized");r.underline&&r.strikethrough?L.push("yt-core-attributed-string--underline-strikethrough",hGF(r.underline)):r.underline?L.push("yt-core-attributed-string--underlined",hGF(r.underline)):r.strikethrough&&L.push("yt-core-attributed-string--strikethrough",hGF(r.strikethrough));if(r.baselineOffset){a:switch(r.baselineOffset){case "BASELINE_OFFSET_SUBSCRIPT":c="yt-core-attributed-string--baseline-offset-subscript";break a;case "BASELINE_OFFSET_SUPERSCRIPT":c=
"yt-core-attributed-string--baseline-offset-superscript";break a;default:c="yt-core-attributed-string--baseline-offset-unknown"}L.push(c)}c=L.join(" ");L=r;D={};if(L.weight||L.weightLabel)D.fontWeight=E8I(L).toString();w&&(D.color=w);y.push(fv({run:r,textLength:k,tag:"span",config:{className:c,style:D},startIndex:r.startIndex,length:r.length}))}if(I.decorationRuns)for(F=_.T(I.decorationRuns),r=F.next();!r.done;r=F.next())r=r.value,w={},r.textDecorator&&(D=r.textDecorator,c=z===void 0?!1:z,p=[],L=
_.l(D,Kv),D=_.l(D,I$F),L?(D=p,p=D.concat,Q=[],(c=meI({extension:_.l(L.highlightTextDecoratorExtensions,CCm),isDarkTheme:c,runColor:L.backgroundColor}))&&Q.push("background-color: "+c+";"),L.backgroundCornerRadius!==void 0&&Q.push("border-radius: "+L.backgroundCornerRadius+"px;"),L.leftPadding!==void 0&&Q.push("padding-left: "+L.leftPadding+"px;"),L.rightPadding!==void 0&&Q.push("padding-right: "+L.rightPadding+"px;"),L.topPadding!==void 0&&Q.push("padding-top: "+L.topPadding+"px;"),L.bottomPadding!==
void 0&&Q.push("padding-bottom: "+L.bottomPadding+"px;"),p=p.call(D,Q)):D&&(L=p,p=L.concat,c=c?"#2ba640":"#107516",c=D.color?qRH(D.color):c,c=["padding: 2px;","border-top: solid "+c+" 2px;","border-bottom: solid "+c+" 2px;","background: linear-gradient(135deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px),\n      linear-gradient(315deg, "+c+" 3px, rgba(0, 0, 0, 0) 3px);"],p=p.call(L,c)),c=p.join(" "),w.style$=c,c=r.textDecorator,L=[],D=_.l(c,I$F),_.l(c,Kv)?L.push("yt-core-attributed-string--highlight-text-decorator"):
D&&L.push("yt-core-attributed-string--bracket-text-decorator"),c=L.join(" "),w.className=c,w.dir="auto"),c=_.l(r.textDecorator,Kv),L=_.l(r.textDecorator,I$F),D=_.l(r.textDecorator,Kv),p=_.l(r.textDecorator,I$F),y.push(fv({run:r,textLength:k,tag:"span",config:w,startIndex:(c==null?void 0:c.startIndex)||(L==null?void 0:L.startIndex)||0,length:(D==null?void 0:D.length)||(p==null?void 0:p.length)||0}));if(I.commandRuns&&(C==null||!C.noEndpoints))for(z=_.T(I.commandRuns),F=z.next();!F.done;F=z.next())F=
F.value,r=xeH(F,C),y.push(fv({run:F,textLength:k,tag:"a",config:r,startIndex:F.startIndex,length:F.length}));if(I.attachmentRuns)for(I=_.T(I.attachmentRuns),z=I.next();!z.done;z=I.next()){z=z.value;w=r=void 0;F={className:"yt-core-attributed-string--inline-block-mod"};if((w=z.element)==null?0:w.properties){w=(r=z.element)==null?void 0:r.properties;r=[];w=_.l(w,sbH);if(w==null?0:w.margin)w=w.margin,w.left&&r.push("margin-left: "+XW(w.left)+";"),w.right&&r.push("margin-right: "+XW(w.right)+";"),w.top&&
r.push("margin-top: "+XW(w.top)+";"),w.bottom&&r.push("margin-bottom: "+XW(w.bottom)+";");r=r.length!==0?r.join(" "):void 0;F.style$=r}c=void 0;r={alt:"",preserveHeight:!0,preserveWidth:!0};w=["yt-core-attributed-string__image-element"];if(z.alignment){a:switch(z.alignment){case "ALIGNMENT_BASELINE":L="yt-core-attributed-string__image-element--image-alignment-baseline";break a;case "ALIGNMENT_VERTICAL_CENTER":L="yt-core-attributed-string__image-element--image-alignment-vertical-center";break a;default:L=
"yt-core-attributed-string__image-element--image-alignment-bottom"}w.push(L)}if((c=z.element)==null?0:c.properties)c=[],L=_.l(z.element.properties,sbH),(L==null?0:L.height)&&c.push("height: "+XW(L.height)+";"),(L==null?0:L.width)&&c.push("width: "+XW(L.width)+";"),c=c.length!==0?c.join(" "):void 0,r.style$=c,L=void 0,c=((L=_.l(z.element.properties,oR9))==null?void 0:L.label)||"",r.alt=c;r.className=w.join(" ");w=void 0;D=L=void 0;c=((D=z.element)==null?0:D.type)?(L=_.l(z.element.type,yKm))==null?
void 0:L.image:void 0;y.push(fv({run:z,textLength:k,tag:"img",image:c,imageConfig:r,imageWrapperConfig:F,startIndex:z.startIndex,length:(w=z.length)!=null?w:0}))}if(C==null?0:C.headerRuns)for(C=_.T(C.headerRuns),I=C.next();!I.done;I=C.next())if(I=I.value,I.headerMapping&&["ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2","ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3"].includes(I.headerMapping)){a:{switch(I.headerMapping){case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_1":z=
"yt-core-attributed-string--heading-1";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_2":z="yt-core-attributed-string--heading-2";break a;case "ATTRIBUTED_STRING_HEADER_MAPPING_HEADING_3":z="yt-core-attributed-string--heading-3";break a}z=void 0}y.push(fv({run:I,textLength:k,tag:"span",config:z?{className:z}:void 0,startIndex:I.startIndex,length:I.length}))}return y};
_.gY=function(I){return(I==null?void 0:I.content)!==void 0};
FbI=function(I){return _.gY(I)?I:_.j2(I)};
u3K=function(I){return I.image!==void 0&&I.imageConfig!==void 0};
z7I=function(I,C){if(C==null?0:C.userInput)for(I=_.T(I),C=I.next();!C.done;C=I.next())if(C=C.value,C.tag!=="a"&&C.tag!=="li"){var y=void 0;(y=C).config||(y.config={});C.config.dir=C.tag==="ul"?_.N().resolve(_.v9):"auto"}};
TBK=function(I){return function(C){var y=I.run;(y.onTap!==void 0||y.onLongPress!==void 0)&&_.l(y,rvO)&&alK(C,{loggingDirectives:_.l(y,rvO)})}};
cKm=function(I){return function(C){for(var y in I)(t3[y]||t3[SX["default"]])(C,y,I[y])}};
wLI=function(I,C){e7I(C);var y={data:null,start:0,end:I.length,parts:[]};C=_.T(C);for(var k=C.next();!k.done;k=C.next())k=k.value,rKH(y,k.startIndex,k.endIndex,k);iJm(I,y);return y};
rKH=function(I,C,y,k){for(var F=_.T(I.parts),z=F.next();!z.done;z=F.next()){z=z.value;if(typeof z==="string")throw Error("gh");if(z.start<=C&&y<=z.end){rKH(z,C,y,k);return}}I.parts.push({data:k,parts:[],start:C,end:y})};
iJm=function(I,C){for(var y=C.parts.length;y>=0;y--){var k=C.parts[y],F=C.parts[y-1],z=y===C.parts.length?C.end:k.start;F=y===0?C.start:F.end;z!==F&&C.parts.splice(y,0,I.slice(F,z));k&&iJm(I,k)}};
e7I=function(I){I.sort(function(C,y){if(C.startIndex<y.startIndex)return-1;if(y.startIndex<C.startIndex)return 1;C=C.endIndex-C.startIndex;y=y.endIndex-y.startIndex;return C>y?-1:y>C?1:0})};
_.nR9=function(I){var C=I.thumbnails;if(C){I={sources:[]};C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k={};k.url=y.url;k.width=y.width;k.height=y.height;I.sources.push(k)}return I}};
PCz=function(I,C,y,k){if(!C)return I.length>=1?I[I.length-1]:null;if(k)for(var F=_.T(I),z=F.next();!z.done;z=F.next()){z=z.value;var c=void 0,r=(c=z.url)==null?void 0:c.indexOf(k);if(r!==void 0&&r>=0)return z}k=_.T(I);for(F=k.next();!F.done;F=k.next())if(F=F.value,F.width&&F.height&&(y&&F.width>=C||!y&&F.height>=C))return F;for(C=I.length-1;C>=0;C--)if(y&&I[C].width||!y&&I[C].height)return I[C];return I[0]};
_.LbF=function(I){var C;return(I=(C=I.sources)==null?void 0:C[0])?I.width/I.height:0};
Dnm=function(I){if(I.sources){I=_.T(I.sources);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=void 0;if((y=C.clientResource)==null?0:y.imageName)return C}}};
pLW=function(I){var C;if((C=I.clientResource)!=null&&C.imageColor)return _.Xl(I.clientResource.imageColor)};
_.NBO=function(I,C,y,k,F,z,c){if(!C||C.length===0||C[0].clientResource)return null;if(y&&C[0].url)return C[0].url;k===void 0&&(k=!0);if(k){var r;I=QbF*(F||(I==null?void 0:(r=I.getBoundingClientRect())==null?void 0:r.width)||0)}else{var w;I=QbF*(z||(I==null?void 0:(w=I.getBoundingClientRect())==null?void 0:w.height)||0)}C=PCz(C,I,k,c);return(C==null?0:C.url)?C.url:(C==null?0:C.imageData)?C.imageData:null};
Vm9=function(I,C,y){y=y?[y]:[];I.opacity&&y.push("opacity: "+I.opacity+";");C&&I.placeholderColor?(I=_.Xl(I.placeholderColor),y.push("background-color: "+I+";")):y.push("background-color: transparent;");return y.join(" ")};
jbz=function(I,C,y,k,F){var z=["yt-core-image"];C&&z.push(C);y||z.push("yt-core-image--fill-parent-height");k||z.push("yt-core-image--fill-parent-width");switch(I.contentMode){case "CONTENT_MODE_SCALE_ASPECT_FIT":z.push("yt-core-image--content-mode-scale-aspect-fit");break;case "CONTENT_MODE_SCALE_ASPECT_FILL":z.push("yt-core-image--content-mode-scale-aspect-fill");break;case "CONTENT_MODE_CENTER":z.push("yt-core-image--content-mode-center");break;default:z.push("yt-core-image--content-mode-scale-to-fill")}I.flipForRtlLayout&&
z.push("yt-core-image--flip-rtl");switch(F){case "TOP_START":var c;z.push(((c=document.body)==null?void 0:c.getAttribute("dir"))==="rtl"?"yt-core-image--object-position-top-right":"yt-core-image--object-position-top-left")}return z.join(" ")};
XLY=function(I){var C;if(I==null?0:(C=I.clientResource)==null?0:C.imageName){var y;I=(y=I.clientResource)==null?void 0:y.imageName;a:{switch(I){case "yt_premium_wordmark_header_light":case "yt_premium_wordmark_header_dark":y="yt-logos-ext:yt-logo-red-updated";break a;case "yt_wordmark_header_light":case "yt_wordmark_header_dark":y="yt-logos-ext:yt-logo-updated";break a}y=void 0}return y||l$I.get(I)||I}};
W9=function(I){return _.V("mweb_wiz_skip_render")?$nI(I):R7I(I)};
$nI=function(I){return function(C){var y=jeK("wink-root");qT();lvF();mxW(y,_.P(I,C))}};
R7I=function(I){var C=C===void 0?!1:C;return function(y){if(!C||!_.V("mweb_skip_keto_to_c3_if_no_data")||y.data!==void 0){var k=MT(!1);try{var F=y.children;_.V("mweb_render_outside_patch_killswitch")||Af?F?HH(_.P(I,y,F)):HH(_.P(I,y)):_.SN(new _.ph("ketoToC3 called outside of a patch",{tagName:I.TAG_NAME}))}finally{MT(k)}}}};
bJW=function(){return window.matchMedia&&window.matchMedia("(orientation: landscape)").matches};
GVz=function(I,C){I.onViewportEntered=C;Y$m.observe(I)};
f$H=function(){var I={rootMargin:"10%",threshold:.01};_.V("mweb_enable_set_io_root_to_null_safari")?I.root=null:_.V("mweb_enable_set_io_root_to_body_safari")&&(I.root=document.body);return new IntersectionObserver(function(C,y){C.filter(function(k){return k.intersectionRect.height>0}).forEach(function(k){k=k.target;
if(!_.V("mweb_enable_only_update_image_when_connected")||k.isConnected!==!1){var F;(F=k.onViewportEntered)==null||F.call(k);y.unobserve(k)}})},I)};
S$O=function(I,C,y,k,F){function z(){if(k){var r=k.loadedClass,w=k.notifyOnUnloaded;r&&_.dY(I,r);w&&I.dispatchEvent(new Event("image-unloaded",{bubbles:!0,composed:!0}))}}
function c(){var r=y(C,I);r&&I.getAttribute("src")!==r&&(_.V("mweb_enable_only_update_image_when_connected")&&I.isConnected===!1||r===I.src||(I.src=r),z())}
F=F===void 0?!0:F;I.removeAttribute("src");z();C&&(F?GVz(I,c):c())};
KbF=function(I,C){for(var y in C)y==="className"?I.className=C[y]:(t3[y]||t3[SX.default])(I,y,C[y])};
AKH=function(I,C,y,k){W9(_.x$)({contentMode:C.contentMode,loadedClass:C.loadedClass,isPreloaded:C.isPreloaded,notifyOnLoaded:C.notifyOnLoaded,notifyOnUnloaded:C.notifyOnUnloaded,preferredThumbnail:C.preferredThumbnail,preserveHeight:C.preserveHeight,preserveWidth:C.preserveWidth,objectPosition:C.objectPosition,targetWidth:C.targetWidth,targetHeight:C.targetHeight,shouldShowPlaceholder:C.shouldShowPlaceholder,useWidth:C.useWidth,alt:C.alt,className:C.className,onerror:C.onerror,onload:C.onload,style$:C.style$,
color:C.color,width:C.width,height:C.height,"aria-hidden$":C["aria-hidden$"],draggable:C.draggable,"data-disabled$":C["data-disabled$"],data:I,callback:y,renderLazy:k===void 0?!0:k,hideOn404:!1})};
vRF=function(I,C,y){y=y===void 0?!1:y;var k=I.sources!==void 0?I:_.nR9(I);if(k){var F=C.onload;C.onload=function(w){var L=w.target;y&&L.naturalWidth===120||_.qx(L,"yt-core-image--loaded");C.notifyOnLoaded&&L.dispatchEvent(new Event("image-loaded",{bubbles:!0,composed:!0}));F==null||F(w)};
C.targetWidth&&C.preserveWidth&&(C.width=C.targetWidth);C.targetHeight&&C.preserveHeight&&(C.height=C.targetHeight);var z=Dnm(k),c=z&&XLY(z);if(c)return(I=pLW(z))&&(C.color=I),{type:"icon",iconName:c,config:Object.assign({},C,C.alt?{}:{"aria-hidden$":"true"},{"aria-label$":C.alt,role:"img"})};if(I.sources===void 0){C.alt=I.accessibility&&I.accessibility.accessibilityData&&I.accessibility.accessibilityData.label||C.alt;C.style$=Vm9(I,C.shouldShowPlaceholder,C.style$);var r;C.isPreloaded=!((r=_.l(I,
gRI))==null||!r.isPreloaded)}C.contentMode&&!k.contentMode&&(k.contentMode=C.contentMode);C.className=jbz(k,C.className,C.preserveHeight,C.preserveWidth,C.objectPosition);C.loadedClass="yt-core-image--loaded";return{type:"image",image:k,config:C}}};
_.Wbm=function(){var I=_.wa.apply(0,arguments);return _.h3(function(C){var y=I.map(function(k){return k(C)});
return function(){return void y.forEach(function(k){return void(k==null?void 0:k())})}})};
dnY=function(I,C){var y=C==null?void 0:C.initial;return _.P4(function(){_.b0(!0);return y=I(y)},{equals:C==null?void 0:C.isEqual},"rSlKsc")};
xnW=function(I,C){if(I===C)return!0;if(I===void 0||C===void 0)return!1;var y,k,F,z,c,r,w,L;return I.content===C.content&&((y=I.styleRuns)==null?void 0:y.length)===((k=C.styleRuns)==null?void 0:k.length)&&((F=I.commandRuns)==null?void 0:F.length)===((z=C.commandRuns)==null?void 0:z.length)&&((c=I.attachmentRuns)==null?void 0:c.length)===((r=C.attachmentRuns)==null?void 0:r.length)&&((w=I.decorationRuns)==null?void 0:w.length)===((L=C.decorationRuns)==null?void 0:L.length)};
ZJz=function(I,C){if(I){var y=FbI(I);if(y!=null&&y.content)if(_.V("attr_string_reactive"))W9(q$z)({text:I,config:C});else{var k=!(C==null||!C.ariaLabel)||!(y.commandRuns&&y.commandRuns.length!==0||y.paragraphStyleRuns&&y.paragraphStyleRuns.length!==0);I=k?C==null?void 0:C.ariaLabel:null;k=k?"text":null;Nx("span",{className:B7I(y,C),dir$:(C==null?0:C.userInput)?"auto":void 0,"aria-label$":I,role$:k},function(){if(y.styleRuns||y.commandRuns||y.attachmentRuns||y.decorationRuns){var F=kVO(y,C);z7I(F,
C);F=wLI(y.content,F);F=_.T(F.parts);for(var z=F.next();!z.done;z=F.next())mnO(z.value)}else tf(y.content)})}}};
mnO=function(I){typeof I==="string"?tf(I):u3K(I.data)?Nx("span",I.data.imageWrapperConfig,function(){AKH(I.data.image,I.data.imageConfig)}):Nx(I.data.tag,I.data.config,function(C){TBK(I.data)(C);
C=_.T(I.parts);for(var y=C.next();!y.done;y=C.next())mnO(y.value)})};
ERY=function(I){return I.parts.map(BB9)};
BB9=function(I){if(typeof I==="string")return I;I=u3K(I.data)?_.P("span",{el:_.Wbm(cKm(I.data.imageWrapperConfig))},_.P(_.x$,Object.assign({},{data:I.data.image},I.data.imageConfig))):_.P(I.data.tag,{el:_.Wbm(TBK(I.data),cKm(I.data.config))},I.parts.map(BB9));return eR(I)};
h7z=function(I,C){return I===C?!0:I===void 0||C===void 0?!1:I.noStyleRuns===C.noStyleRuns&&I.noLinkColor===C.noLinkColor&&I.noEndpoints===C.noEndpoints&&I.headerRuns===C.headerRuns&&I.isOverlay===C.isOverlay&&I.linkInheritColor===C.linkInheritColor&&I.userInput===C.userInput};
UnO=function(I){return function(){var C,y,k,F,z,c,r,w,L,D,p,Q,X,b;return{ariaLabel:(C=I.ariaLabel)==null?void 0:C.call(I),className:(y=I.className)==null?void 0:y.call(I),ellipsisTruncate:(k=I.ellipsisTruncate)==null?void 0:k.call(I),isOverlay:(F=I.isOverlay)==null?void 0:F.call(I),linkInheritColor:(z=I.linkInheritColor)==null?void 0:z.call(I),noEndpoints:(c=I.noEndpoints)==null?void 0:c.call(I),noStyleRuns:(r=I.noStyleRuns)==null?void 0:r.call(I),noLinkColor:(w=I.noLinkColor)==null?void 0:w.call(I),
noPreWrap:(L=I.noPreWrap)==null?void 0:L.call(I),noWrap:(D=I.noWrap)==null?void 0:D.call(I),skipOnClick:(p=I.skipOnClick)==null?void 0:p.call(I),stopPropagation:(Q=I.stopPropagation)==null?void 0:Q.call(I),userInput:(X=I.userInput)==null?void 0:X.call(I),headerRuns:(b=I.headerRuns)==null?void 0:b.call(I)}}};
HJs=function(I){return I.value===""||I.value==="true"?!0:I.value==="false"?!1:isNaN(Number(I.value))?I.value:Number(I.value)};
md=function(I,C){I=new tmm(I,C);_.GB(I);throw I;};
JKW=function(I,C,y){var k=sKX(I);I._numRenders=0;try{var F=zVz(function(){return _.P(C,Object.assign({},y))})}catch(c){var z=function(r){r.args||(r.args=[]);
r.args.push("Error in web component wrapper");r.args.push(I.tagName.toLowerCase());return r};
_.fi(c instanceof Error?z(c):new tmm("Wiz rendering error",I.tagName.toLowerCase()));throw c;}finally{sKX(k)}return F};
_.B9=function(I,C,y){function k(D){var p={};D=_.T(D);for(var Q=D.next();!Q.done;Q=D.next()){Q=Q.value;var X=void 0,b=void 0,S=void 0,A=_.P$((S=(b=(X=Q).getAttribute)==null?void 0:b.call(X,"slot"))!=null?S:"children");if(X=p[A])X.push(Q);else if(A in z||A==="children")p[A]=[Q]}if(OJz)for(D=_.T(Object.keys(p)),A=D.next(),Q={};!A.done;Q={content$jscomp$55:void 0},A=D.next())A=A.value,A!=="children"&&(Q.content$jscomp$55=p[A],p[A]=function(x){return function(){return x.content$jscomp$55}}(Q));
return p}
y=y===void 0?{}:y;I.componentType!==NT||md("Components must be marked reactive to be used from web component wrapper.",C);Ob.has(C)&&md("Do not register a Wiz component to be rendered with boththe deprecated wrapper and the signals based wrapper.",C);var F,z=(F=y.props)!=null?F:{};aH.add(C);var c=a$z();F=function(){var D=c.apply(this,arguments)||this;D.rawProps={};D.queuingRender=!1;D.dispose=function(){};
D.isWebComponentWrapper=!0;D.isReparenting=!1;D.hasAttached=!1;return D};
_.R(F,c);F.prototype.render=function(){this.hasAttached=!0;for(var D=_.T([].concat(_.Py(this.attributes))),p=D.next();!p.done;p=D.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name);D=Object.assign({},this.componentProps,this.slotProps);p=_.T(JKW(this,I,D));D=p.next().value;p=p.next().value;!(D[0]instanceof Element)||D.length>1?md("Wrapped Wiz components must return a single root element.",C):(D=D[0].tagName.toLowerCase(),D!==C&&md("Wrapped Wiz components must have the same host tag name as the web component. Expected tag '"+
(D+" !== '"+C),C),this.dispose=p)};
F.prototype.setUpProps=function(){for(var D=this.rawProps,p=this.attributes,Q=_.T(Object.keys(z)),X=Q.next();!X.done;X=Q.next()){X=X.value;var b=void 0;((b=this)==null?0:b[X])&&this[X]!==Mmm&&D[X]===void 0&&(D[X]=this[X],(b=Object.getOwnPropertyDescriptor(this.constructor.prototype,X))&&Object.defineProperty(this,X,b))}Q=_.T(p);for(X=Q.next();!X.done;X=Q.next()){b=X.value;X=_.P$(b.name);var S=X==="class"&&!p.getNamedItem("class-name");if(X in z||S)b=HJs(b),X!=="class"||D.className?D[X]=b:D.className=
b}p={};for(var A in z)z[A]===_.Z_||OJz&&z[A]===IrI||(D[A]instanceof Function&&md("Function props must be configured as STATIC, not SIGNAL.",C),X=_.T(_.c4(D[A],void 0,"uFSkac")),Q=X.next().value,X=X.next().value,p[A]=X,D[A]=Q);D=_.T([D,p]);this.componentProps=D.next().value;this.setters=D.next().value;this.slotProps=k(this.childNodes)};
F.prototype.connectedCallback=function(){tL===C&&(this._isInert=!0);this._isInert||(this.isReparenting?this.isReparenting=!1:(this.queuingRender="data"in z&&!this.rawProps.data&&!this.getAttribute("data"),this.hasAttached||this.queuingRender||this.setUpProps(),this.queuingRender&&!this.hasAttached||this.render()))};
F.prototype.disconnectedCallback=function(){if(!this._isInert){var D;a:{if(_.CtW)for(D=this;D;){if(_.sfz.has(D)){D=!0;break a}D=D.parentElement}D=!1}if(D)this.isReparenting=!0;else{this.dispose();if(!this.queuingRender){D=_.T([].concat(_.Py(this.attributes)));for(var p=D.next();!p.done;p=D.next())p=p.value,p.name!=="slot"&&this.removeAttribute(p.name)}this.innerText="";hqO(this)}}};
F.prototype._setPendingPropertyOrPath=function(){};
F.prototype.notifyPath=function(){};
_.H1.Object.defineProperties(F.prototype,{__isPropertyEffectsClient:{configurable:!0,enumerable:!0,get:function(){return!1}},
__dataHasAccessor:{configurable:!0,enumerable:!0,get:function(){}}});
for(var r=_.T(Object.keys(z)),w=r.next(),L={};!w.done;L={prop$jscomp$103:void 0},w=r.next())L.prop$jscomp$103=w.value,w=void 0,((w=y.legacyPolymer)==null?0:w.forwardHostProps)&&EOO.has(L.prop$jscomp$103)||Object.defineProperty(F.prototype,L.prop$jscomp$103,{set:function(D){return function(p){var Q=this;this._isInert||(this.setters?Df(function(){var X,b;return void((b=(X=Q.setters)[D.prop$jscomp$103])==null?void 0:b.call(X,p))}):(this.rawProps[D.prop$jscomp$103]=p,this.queuingRender&&D.prop$jscomp$103===
"data"&&p!=null&&(this.queuingRender=!1,this.setUpProps(),this.render())))}}(L),
get:ohI.has(L.prop$jscomp$103)?void 0:function(){return Mmm}});
customElements.define(C,F)};
_.yyK=function(I,C){return(I=_.E5(I,C))?_.zK(_.ra(I)):null};
_.hE=function(I){if(I=_.E5(I,Number.MAX_VALUE,void 0,"width"))return _.ra(I)};
_.E5=function(I,C,y,k){k=k===void 0?"width":k;if(!I||!I.length)return null;if(_.V("kevlar_tuner_should_always_use_device_pixel_ratio")){var F=window.devicePixelRatio;_.V("kevlar_tuner_should_clamp_device_pixel_ratio")?F=Math.min(F,_.s8("kevlar_tuner_clamp_device_pixel_ratio")):_.V("kevlar_tuner_should_use_thumbnail_factor")&&(F=_.s8("kevlar_tuner_thumbnail_factor"));k4z=F}else k4z||(k4z=window.devicePixelRatio);F=k4z;_.V("kevlar_tuner_should_always_use_device_pixel_ratio")?C*=F:F>1&&(C*=F);if(_.V("kevlar_tuner_min_thumbnail_quality"))return I[0].url||
null;F=I.length;if(_.V("kevlar_tuner_max_thumbnail_quality"))return I[F-1].url||null;if(y)for(var z=0;z<F;z++)if(I[z].url.indexOf(y)>=0)return I[z].url||null;for(y=0;y<F;y++)if(I[y][k]>=C)return I[y].url||null;for(C=F-1;C>0;C--)if(I[C][k])return I[C].url||null;return I[0].url||null};
zOF=function(){U5.size?setTimeout(function(){H9(F9I)},0):uQO=0};
F9I=function(){var I=(0,_.JY)(),C=null,y=!1;U5.forEach(function(F){F.loaded=!0;F.loadTime=I;F.pendingPaint=!1;var z=TcX.get(F);z&&z.resolve(I);C=F;y||!F.ftlEligible&&F.tagName!=="YT-THUMBNAIL-VIEW-MODEL"||(y=!0)});
var k;((k=C)==null?0:k.markDirty)&&C.markDirty();U5.clear();uQO=0;y&&cys(I)};
eOH=function(I){U5.add(I);I.pendingPaint=!0;uQO||(uQO=_.tE(_.b$,zOF))};
rym=function(I){I.loaded=!1;I.loadTime=Infinity;var C=TcX.get(I);C&&(C.reject(Error("mh")),TcX.delete(I));I.pendingPaint&&(U5.delete(I),I.pendingPaint=!1)};
_.iOt=function(I){var C=I.indexOf(":");return C===-1?{originalName:I}:{originalName:I.substring(0,C),datasyncId:I.substring(C+1)}};
_.nhI=function(){return _.e(function(I){if(wTK!==void 0)return I.return(wTK);wTK=new Promise(function(C){var y;return _.e(function(k){switch(k.nextAddress){case 1:return _.aM(k,2),_.n(k,_.JE.open("test-only"),4);case 4:return _.n(k,_.JE.delete("test-only"),5);case 5:_.dC(k,3);break;case 2:if(y=_.sj(k),y instanceof Error&&y.name==="SecurityError")return C(!1),k.return();case 3:C("caches"in window),_.oI(k)}})});
return I.return(wTK)})};
DPt=function(){return _.e(function(I){if(I.nextAddress==1)return _.n(I,_.nhI(),2);if(!I.yieldResult)return I.return(void 0);PtY||(PtY=new L9K);return I.return(PtY)})};
pTO=function(I){var C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return _.n(z,DPt(),2);case 2:C=z.yieldResult;if(!C)throw Error("oh");return _.n(z,C.open("yt-player-local-img"),3);case 3:return y=z.yieldResult,_.n(z,y.match(I),4);case 4:k=z.yieldResult;if(!k)throw Error("ph");return _.n(z,k.blob(),5);case 5:return F=z.yieldResult,z.return(F)}})};
Qft=function(I,C){for(var y in I)if(I.hasOwnProperty(y)&&C[y])return y;return null};
Ncm=function(I){return"stamp"+I.replace("-","_")+"_"};
VKH=function(I){var C=I.match(/\[\[([\w\.]+)\]\]/);if(C&&C.length>1)return C[1];_.GB(Error("rh`"+I));return null};
jfF=function(I){return I===void 0?_.g5("REUSE_COMPONENTS",!1):I||!1};
$PH=function(I,C,y){y&&(C.is?(lrz.has(C)&&(I=lrz.get(C),y=I.listener,delete C[I.property],y.type==="element"&&C.removeEventListener(y.eventName,y.handler),lrz.delete(C)),XTz(C)):C.__proto__==HTMLElement.prototype&&(C=new _.ph("Rendererstamper removed a non custom element","Stamper: "+I+" element: "+(C&&C.nodeName)),_.SN(C)))};
ROt=function(I,C,y,k){var F=C.node?C.node:C;_.f(y).parentNode===F&&(C.removeChild(y),$PH(I,y,k));if(I=O5.get(y))O5.delete(y),_.b$.cancelJob(I);y.hidden=!1};
bOm=function(I,C,y,k){if(C&&C.children&&(y=C.children[y]))if(_.g5("DEFERRED_DETACH"))for(;y&&!O5.has(y);){var F=I,z=C,c=y,r=k;c.hidden=!0;F=_.NU(_.b$,ROt.bind(null,F,z,c,r),0);O5.set(c,F);y=y.nextElementSibling}else for(;(c=C.lastElementChild)&&(C.removeChild(c),$PH(I,c,k),c!=y););};
YSI=function(I){var C=_.Es();_.RU(function(){for(var y=_.T(I.slotContent),k=y.next();!k.done;k=y.next())C.value.appendChild(k.value)});
return _.P("__slot-el",{el:C,skip:!0})};
_.aj=function(I,C,y){y=y===void 0?G4Y:y;Ob.add(C);var k;(k=y).propNames!=null||(k.propNames=[]);var F=new Set(y.propNames),z=a$z();k=function(){var L=z.call(this)||this;L.props={};L.isUpdating=!1;L.hasAttached=!1;L.isInert=!1;L.updateQueued=!1;L.initialClasses=[];CVs(L,C);return L};
_.R(k,z);k.prototype.forwardKebabCaseProp=function(L,D){L=_.P$(L);if(F.has(L)||L==="children")this.props[L]=D};
k.prototype.afterFirstPatch=function(){this.isUpdating=!0;for(var L=_.T(this.initialClasses),D=L.next();!D.done;D=L.next())(D=D.value)&&this.classList.add(D);this.initialClasses.length>0&&(this.initialClasses.length=0);this.isUpdating=!1};
k.prototype.handleSlottedContent=function(){for(var L=new Map,D=_.T(this.children),p=D.next();!p.done;p=D.next()){p=p.value;var Q=void 0,X=(Q=p.getAttribute("slot"))!=null?Q:"children";(Q=L.get(X))?Q.push(p):L.set(X,[p]);if(!p.getAttribute("key")){var b=void 0,S=void 0;p.setAttribute("key",X+"_"+((S=(b=Q)==null?void 0:b.length)!=null?S:0))}}L=_.T(L);for(D=L.next();!D.done;D=L.next())p=_.T(D.value),D=p.next().value,p=p.next().value,this.forwardKebabCaseProp(D,_.P(YSI,{slotContent:p}))};
k.prototype.connectedCallback=function(){var L=this;if(!CVs(this,C)&&!this.isInert)if(this.hasAttached)this.enqueueUpdate();else{for(var D=_.T(this.attributes),p=D.next();!p.done;p=D.next())p=p.value,this.forwardKebabCaseProp(p.name,HJs(p));this.handleSlottedContent();y.synchronous?(this.update(),this.afterFirstPatch()):this.enqueueUpdate().then(function(){L.afterFirstPatch()});
this.hasAttached=!0}};
k.prototype.attributeChangedCallback=function(L,D,p){this.isInert||this.isUpdating||this.isConnected||L!=="class"||this.initialClasses.push.apply(this.initialClasses,_.Py(p.split(" ")))};
k.prototype.disconnectedCallback=function(){lis(this)};
k.prototype.update=function(){if(!this.isInert){this.isUpdating=!0;try{var L,D;mxW(this,_.P(I,Object.assign({},this.props,{idomKey:(D=(L=this.__incrementalDOMData)==null?void 0:L.key)!=null?D:C})),!0)}catch(Q){var p=Q instanceof Error?Q:new _.ph("Wiz rendering error");p.args||(p.args=[]);p.args.push("Error in deprecated web component wrapper");p.args.push(C.toLowerCase());_.GB(p);throw Q;}finally{this.updateQueued=this.isUpdating=!1}}};
k.prototype.enqueueUpdate=function(){var L=this;return _.e(function(D){if(y.synchronous)return L.update(),D.return();if(L.updateQueued)return D.return();L.updateQueued=!0;return D.return(Promise.resolve().then(function(){L.update()}))})};
k.prototype.notifyPath=function(){y.enableUnsafeRenderOnNotifyPath&&this.enqueueUpdate()};
_.H1.Object.defineProperties(k,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["class"]}}});
for(var c=_.T(y.propNames),r=c.next(),w={};!r.done;w={prop$jscomp$105:void 0},r=c.next())w.prop$jscomp$105=r.value,Object.defineProperty(k.prototype,w.prop$jscomp$105,{set:function(L){return function(D){this.isInert||D===this.props[L.prop$jscomp$105]||(this.props[L.prop$jscomp$105]=D,this.hasAttached&&!this.isUpdating&&this.enqueueUpdate())}}(w)});
customElements.define(C,k)};
_.frm=function(I,C){return _.cg(I.entities,"markersEngagementPanelSyncEntity",C)};
SSO=function(I,C){return _.cg(I.entities,"fantasyWinProbabilityEntity",C)};
K9H=function(I,C){return _.cg(I.entities,"fantasyTeamEntity",C)};
Ays=function(I,C){return _.cg(I.entities,"fantasyPlayerEntity",C)};
ghs=function(I,C){return _.cg(I.entities,"booleanEntity",C)};
vhI=function(I,C){return _.cg(I.entities,"qrCodeEntity",C)};
W9s=function(I){return _.cg(I.entities,"likeButtonAnimationEntity","EhxsaWtlX2J1dHRvbl9hbmltYXRpb25fZW50aXR5ILcEKAE%3D")};
dPK=function(){if(Mx)return Mx;if(window.lottie)return Mx=Promise.resolve(window.lottie);var I=_.YV(_.Aq("LOTTIE_URL"));return I?Mx=new Promise(function(C,y){var k=document.createElement("script");k.addEventListener("load",function(){C(lottie)});
k.addEventListener("error",function(F){var z="Lottie library failed to load.";F?F.message&&(z+=" Original description: "+F.message,_.Ki(F,z)):F=Error(z);_.SN(F);y(F)});
k.setAttribute("async","");_.fa(k,I);document.head.appendChild(k)}):Promise.reject(Error("sh"))};
xPz=function(){return Mx?Mx:dPK()};
qSF=function(){var I=W9s(_.Hg().getState());if(I&&I.animationStyle)switch(I.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":return I8.get("LIKE_VALENTINES25_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":return I8.get("LIKE_VALENTINES25_BROKEN_HEART");case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":return I8.get("LIKE_YOUTUBE_20TH_BIRTHDAY")}};
mPz=function(I){if(I)switch(I){case "yt-icons:like":case "LIKE":case "LIKE_SELECTED":if(_.V("kevlar_use_wil_icons"))return(I=qSF())?I:I8.get("LIKE")}};
ZOt=function(I){var C=mPz(I);if(C)return C;switch(I){case "FACE_FILLED_HAPPY":case "FACE_OUTLINED_HAPPY":return I8.get("FACE_HAPPY");case "FACE_FILLED_MEH":case "FACE_OUTLINED_MEH":return I8.get("FACE_MEH");case "FACE_FILLED_SAD":case "FACE_OUTLINED_SAD":return I8.get("FACE_SAD");case "FACE_FILLED_UNHAPPY":case "FACE_OUTLINED_UNHAPPY":return I8.get("FACE_UNHAPPY");case "FACE_FILLED_VERY_HAPPY":case "FACE_OUTLINED_VERY_HAPPY":return I8.get("FACE_VERY_HAPPY");case "NOTIFICATIONS_NONE":return I8.get("NOTIFICATION_BELL")}};
Ehm=function(I,C){if(!I||Bct)C=!1;else{if(I.closest){var y=!!mPz(C);y=_.Aq("ID_TOKEN")&&y?!!I.closest("segmented-like-dislike-button-view-model"):!1}else y=!1;if(!y)if(I.closest)if(y=!_.Aq("ID_TOKEN"),I=I.closest("ytd-subscription-notification-toggle-button-renderer-next"),y||!I)y=!1;else{var k;y=((k=I.data)==null?void 0:k.targetId)==="notification-bell"&&C!=="EXPAND_MORE"}else y=!1;C=y}return C};
hO9=function(I){var C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.aM(k,2),_.n(k,fetch(I),4);case 4:return C=k.yieldResult,_.n(k,C.json(),5);case 5:return k.return(k.yieldResult);case 2:y=_.sj(k),_.SN(y),_.oI(k)}})};
UPs=function(I,C){var y,k,F;return _.e(function(z){if(z.nextAddress==1)return(y=C?I.pathDarkTheme:I.path)?_.n(z,Promise.all([hO9(y),dPK()]),2):z.return();k=z.yieldResult;F=k[0];CE.set(y,F);_.oI(z)})};
_.sZ=function(){var I=_.wa.apply(0,arguments);return function(){for(var C="",y=_.T(I),k=y.next();!k.done;k=y.next())if(k=k.value,typeof k==="function"&&(k=k()),k)if(typeof k==="string")C+=" "+k;else for(var F in k)if(k.hasOwnProperty(F)){var z=k[F];typeof z==="function"&&(z=z());z&&(C+=" "+F)}C=C.trim()||void 0;return _.b0(C)}};
_.o8=function(I){var C;var y=I.data;var k=I.className;var F=I.animationName;var z=I.animationRef;var c=(C=I.elRefForInterop)||_.Es(),r;_.$4(function(){var D;return void((D=r)==null?void 0:D.destroy())});
var w;_.l0(function(){var D=_.b0(F);if(D!==w){w=D;var p=Object.assign({},{animationName:D,animationRef:_.b0(z)},_.b0(y));try{_.N().resolve(HOH)().then(function(b){var S;(S=r)==null||S.destroy();S=p.animationRef;var A=p.listeners;b=b.loadAnimation(Object.assign({},{container:c.value},p.animationConfig));S&&(S.lottieEl=b);if(A)for(S=_.T(Object.entries(A)),A=S.next();!A.done;A=S.next()){var x=_.T(A.value);A=x.next().value;(x=x.next().value)&&b.addEventListener(A,x)}r=b})}catch(b){D=b;
var Q="LottieComponent error.";D.message&&(Q+=" Original description: "+D.message);_.Ki(D,Q);_.SN(D);var X;((X=p.listeners)==null?0:X.error)&&p.listeners.error(D)}}});
var L=_.sZ("ytLottieComponentHost",k);return _.P(GBI,{cond:function(){return!C},
then:function(){return _.P("lottie-component",{class:L,el:c})}})};
tKm=function(I){var C=_.Es(),y=_.T(aim(I.data.animationConfig.name||"",I.className)),k=y.next().value;y=y.next().value;var F=YS(function(){return I.data.animationRef});
$S(function(){I.data.animationRef&&(I.data.animationRef.lottieEl=F==null?void 0:F.lottieEl)},[I.data.animationRef]);
return _.P("lottie-component",{skip:!0,class:_.sZ(y,"ytLottieComponentHost"),el:C},_.P(_.o8,{data:I.data,animationRef:F,animationName:k,elRefForInterop:C}))};
OO9=function(I,C,y,k){function F(c,r){if(C.value===r&&I!=null&&I.value){for(;I.value.firstChild;)I.value.removeChild(I.value.firstChild);I.value.classList.add("yt-spec-icon-shape");c(I.value,k)}}
y=_.Jyz(_.N().resolve(_.k$),y);if(typeof y==="function")C.value=null,F(y,null);else{var z=new _.eN(y.then,y);C.value=z;z.then(function(c){F(c,z)})}};
MKW=function(I,C){var y=document.createElement("div"),k=_.lh(y,function(){return _.P(_.Dx,{cond:I,then:function(F){return _.P(arK,{data:F,options:C})}})});
return[y,k]};
_.yc=function(){for(var I=[],C=_.T(_.wa.apply(0,arguments)),y=C.next();!y.done;y=C.next())if(y=y.value)if(typeof y==="string")I.push(y);else{y=_.T(Object.entries(y));for(var k=y.next();!k.done;k=y.next()){var F=_.T(k.value);k=F.next().value;(F=F.next().value)&&I.push(k)}}return I.join(" ")};
ov9=function(I){var C=_.Es(),y=Gu(),k=J$(I.character)||J$(I.previousCharacter);jR(function(){if(I.marginMultiplier){var F;(F=y.value)==null||F.cancel();k?(F=I.previousCharacter?Number(I.previousCharacter)+10:I.rollUp?0:30,I.shouldAnimate||(F-=I5z(I,F))):(F=I.rollUp?0:2,I.shouldAnimate||(F-=I.rollUp?-1:1));C.value.style.marginTop="-"+F*I.marginMultiplier+"px";I.shouldAnimate?y.value=CHO(C.value,I,F,k):C.value.style.display=I.character?"":"none"}});
return _.P("animated-rolling-character",{el:C,class:"animated-rolling-character-wiz"},_.H2(k,function(){for(var F=[],z=1;z<30;z++)F.push(_.P("div",null,z%10));return _.P(_.aF,null,_.P("div",null,"\u00a0"),F,_.P("div",null,"\u00a0"))},function(){return sPz(I.character)}))};
sPz=function(I){return _.P(_.aF,null,_.P("div",null,"\u00a0"),_.P(_.aF,null,_.H2(!I||_.eI(I),function(){return _.P("div",null,"\u00a0")},function(){return _.P("div",null,I)})),_.P("div",null,"\u00a0"))};
CHO=function(I,C,y,k){y=new Animation(new KeyframeEffect(I,[{transform:"translateY(0px)"},{transform:"translateY("+(k?I5z(C,y):C.rollUp?-1:1)*C.marginMultiplier+"px)"}],y59),document.timeline);C.character?(I.style.display="",y.onfinish=null):y.onfinish=function(){I.style.display="none"};
y.play();return y};
I5z=function(I,C){var y=Number(I.character)+10;if(I.previousCharacter)if(I.character){var k=Number(I.character),F=Number(I.previousCharacter);I=I.rollUp?F<k?y:y+10:F<k?y-10:y}else I=I.rollUp?30:0;else I=I.character==="0"?y:I.rollUp?y-10:y+10;return C-I};
_.ks=function(I,C){return function(y){var k={},F;for(F in y){var z=void 0,c=void 0;((z=C)==null?0:(c=z.callbacks)==null?0:c[F])||(k[F]=y[F])}return _.P(uUz,null,function(){for(var r in k)y[r]=_.b0(k[r]);y.disableReactiveLogging=!0;return _.P(I,Object.assign({},y))})}};
_.FU=function(I){var C=Gu(),y=Gu();$S(function(){C.value=I.numberText;y.value=I.numberValue},[I.numberText]);
var k=I.fontSizeMultiplier?I.heightPx*I.fontSizeMultiplier:I.heightPx,F=bh(function(){if(I.numberText){var c=I.numberText;var r=I.forceRollUp||!y.value||!I.numberValue||y.value<I.numberValue;var w=!!I.shouldAnimate,L=C.value,D=[],p=0,Q=0,X=(L?L.replace(/\D/g,"").length:0)-(c?c.replace(/\D/g,"").length:0);L=L?L.split(/(\d)/).filter(Boolean):[];for(c=c.split(/(\d)/).filter(Boolean);X<0;){var b=c[Q];D.push({character:b,rollUp:r,marginMultiplier:k,shouldAnimate:w});Q++;J$(b)&&X++}for(;p<X;)b=L[p],D.push({previousCharacter:b,
rollUp:r,marginMultiplier:k,shouldAnimate:w}),p++,J$(b)||X++;for(;Q<c.length;)X=c[Q],b=L[p],J$(X)===J$(b)?(Q++,p++):J$(X)?(p++,X=void 0):J$(b)&&(Q++,b=void 0),D.push({character:X,previousCharacter:b,rollUp:r,marginMultiplier:k,shouldAnimate:w});r=D}else r=[];return r},[I.numberText]),z=I.numberText?["height: "+k+"px;",
"line-height: "+I.heightPx+"px;"].join(" "):"";return _.P("yt-animated-rolling-number",{class:"animated-rolling-number-wiz",style:z,dir:"ltr","aria-hidden":"true"},F.map(function(c){return _.P(ov9,Object.assign({},c))}))};
kiF=function(I){var C=I.nodeName;if(I.id)return C+="#"+I.id;if(I.classList)for(var y=_.T(I.classList),k=y.next();!k.done;k=y.next())C+="."+k.value;I.parentElement&&(C=kiF(I.parentElement)+" > "+C);return C};
F1F=function(I){return function(C){var y=YIt("event",{type:C.type});y&&C.target&&y.attr("nodepath",kiF(C.target));return SIs(y,I,C)}};
_.uk=function(I){I&&GvI("event")&&(I=F1F(I));return AEz(function(C){var y,k=(y=I)==null?void 0:y(C);return typeof k==="boolean"?k:!0})};
zN=function(I){return function(){return I()?I():void 0}};
uaI=function(I){return new KeyframeEffect(I,[{offset:0,opacity:.1,easing:"cubic-bezier(0.05, 0.00, 0.00, 1.00)"},{offset:1,opacity:0}],{duration:400})};
z5z=function(I){return new KeyframeEffect(I,[{offset:0,opacity:.2,easing:"cubic-bezier(0.20, 0.00, 0.60, 1.00)"},{offset:1,opacity:0}],{duration:400})};
TLF=function(I){var C=_.T(_.c4(I,void 0,"Clci1e")),y=C.next().value,k=C.next().value;y.current=I;return[y,function(F){return void k(y.current=F)}]};
_.TN=function(I){var C=dnY(function(){return TLF(I())},{isEqual:function(y,k){return y[0].current===k[0].current}});
return[function(){return C()[0]()},
function(y){return void C()[1](y)}]};
_.cP=function(I){return function(){var C="",y;for(y in I){for(var k=I[y];typeof k==="function";)k=k();k!==void 0&&k!==null&&(C+="; "+y+": "+k)}return C.length>0?_.b0(C.slice(2)):_.b0()}};
c5s=function(I){switch(I){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"}};
i_I=function(I,C,y,k,F,z){var c=e5m(I),r=c.disabled,w=c.iconPosition,L=c.style,D=c.focused,p=function(){return!!b()&&w()==="icon-only"},Q=function(){return!!b()&&w()==="icon-only-40"},X=function(){return!!b()&&w()==="icon-with-label"},b=function(){return!!C||!(k==null||!k())};
return{type:function(){return L()==="call-to-action-inverse"?"text":L()==="overlay-dark"&&I().type!=="filled"&&I().type!=="tonal"?"tonal":I().type},
shouldFocus:function(){return(D()||(z==null?void 0:z()))&&!r()},
hasIconLeading:function(){return!!b()&&w()==="leading"},
hasIconTrailing:function(){return!!b()&&w()==="trailing"},
hasIconLeadingTrailing:function(){return!!b()&&!!(y||F!=null&&F())&&w()==="leading-trailing"},
hasIconOnly:p,hasIconOnly40:Q,hasIconWithLabel:X,iconButton:function(){return p()||Q()||X()},
visiblyDisabled:function(){return(r()?"disabled":I().state)==="disabled"||r()},
overrideSmallSizeIcon:function(){return r5K(I(),b())},
iconToRender:C?C:function(){return _.P(_.ez,{icon:k,size:function(){return rh(I(),!0)},
active:function(){return I().toggled}})},
secondaryIconToRender:y?y:function(){return _.P(_.ez,{icon:F,size:function(){return rh(I(),!0)},
active:function(){return I().toggled}})}}};
e5m=function(I){return{size:function(){return I().size},
style:function(){return I().style},
focused:function(){return I().focused},
disabled:function(){return I().disabled},
onTap:function(C){var y,k;return(k=(y=I()).onTap)==null?void 0:k.call(y,C)},
alignByText:function(){return I().alignByText},
aTagConfig:function(){return I().aTagConfig},
customColors:function(){return I().customColors},
segmentedPosition:function(){return I().segmentedPosition},
toggled:function(){return I().toggled},
toggleable:function(){return I().toggleable},
accessibilityLabel:function(){return I().accessibilityLabel},
onToggle:function(C){var y,k;return(k=(y=I()).onToggle)==null?void 0:k.call(y,C)},
iconPosition:function(){return I().iconPosition},
oneOffCustomTextWrap:function(){return I().oneOffCustomTextWrap},
disableTextEllipsis:function(){return I().disableTextEllipsis},
disableBackdropFilter:function(){return I().disableBackdropFilter},
tooltipText:function(){return I().tooltipText},
ariaHidden:function(){return I().ariaHidden},
tabIndex:function(){return I().tabIndex},
buttonText:function(){return I().buttonText},
formattedButtonText:function(){return I().formattedButtonText},
animatedTextProps:function(){return I().animatedTextProps}}};
wbY=function(I){return I.style==="overlay-dark"?4:I.style==="overlay"?I.type==="filled"?4:3:I.type==="filled"||I.style==="call-to-action-inverse"||I.style==="mono-inverse"?2:1};
r5K=function(I,C){C=(I.iconPosition==="icon-only"||I.iconPosition==="icon-only-40"||I.iconPosition==="icon-with-label")&&C;return!I.segmentedPosition&&C&&I.size==="S"};
nvz=function(){return!_.V("web_disable_backdrop_filter")};
rh=function(I,C){switch(I.size){case "XS":return 16;case "S":return r5K(I,C)?24:16;default:return 24}};
PHW=function(I){switch(I){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"}};
L1I=function(I){switch(I){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"}};
DRs=function(I){switch(I){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"}};
pbm=function(I){if(I.style==="overlay-dark"&&I.type==="tonal")return"drop-shadow(0px 1px 4px rgba(0, 0, 0, 0.3))"};
QPY=function(I){if(!I)return{};var C=I.color,y=I.backgroundColor;I=I.borderColor;var k="";C&&(k+="color: "+C+";");y&&(k+="background-color: "+y+";");I&&(k+="border-color: "+I+";");return{style:k}};
NL9=function(I,C){if(!tk){var y;OhH(function(){return y=kNW(I,C)});
return y}return kNW(I,C)};
V$W=function(){var I=D$H(tk||void 0,s8H);return I===OB||(I==null?void 0:I.name)==="\u0275NotFound"?void 0:I};
XbO=function(I){var C=I.data;var y=I.icon;var k=I.secondaryIcon;var F=I.iconName;var z=I.secondaryIconName;V$W();var c=C.size;I=C.style;var r=C.focused,w=C.disabled,L=C.onTap,D=C.alignByText,p=C.aTagConfig,Q=C.customColors,X=C.segmentedPosition,b=C.toggled,S=C.toggleable,A=C.accessibilityLabel,x=C.onToggle,B=C.iconPosition,t=C.oneOffCustomTextWrap,U=C.disableTextEllipsis,yW=C.disableBackdropFilter,a=C.tooltipText,cs=C.ariaHidden,XO=C.tabIndex,Rm=!!y||!!F,$z=y,hX=k;if(F){var vs=rh(C,!0);$z=function(){return _.P(_.ez,
{icon:F,size:vs,active:C.toggled})}}if(z){var mY=rh(C,!0);
hX=function(){return _.P(_.ez,{icon:z,size:mY,active:C.toggled})}}var Bs=C.state;
y=C.type;I==="call-to-action-inverse"&&(y="text");I==="overlay-dark"&&y!=="filled"&&y!=="tonal"&&(y="tonal");var n5=Rm&&B==="leading",sH=Rm&&B==="trailing",Zt=Rm&&(!!k||!!z)&&B==="leading-trailing";k=Rm&&B==="icon-only";var Qd=Rm&&B==="icon-only-40";B=Rm&&B==="icon-with-label";var OF=k||Qd||B;w&&(Bs="disabled");var Rw=Bs==="disabled"||w;Rm=r5K(C,Rm);Bs={};var ku=_.yc((Bs["yt-spec-button-shape-next"]=!0,Bs[PHW(y)]=!0,Bs[L1I(I)]=!Rw,Bs["yt-spec-button-shape-next--disabled"]=!!Rw,Bs[DRs(c)]=!0,Bs["yt-spec-button-shape-next--focused"]=
!!r&&!w,Bs["yt-spec-button-shape-next--icon-trailing"]=sH,Bs["yt-spec-button-shape-next--icon-leading"]=n5,Bs["yt-spec-button-shape-next--icon-leading-trailing"]=Zt,Bs["yt-spec-button-shape-next--icon-button"]=k||B,Bs["yt-spec-button-shape-next--icon-only-default"]=Qd,Bs["yt-spec-button-shape-next--align-by-text"]=!!D,Bs["yt-spec-button-shape-next--segmented-start"]=X==="start",Bs["yt-spec-button-shape-next--segmented-end"]=X==="end",Bs["yt-spec-button-shape-next--override-small-size-icon"]=Rm,Bs["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!t,Bs["yt-spec-button-shape-next--disable-text-ellipsis"]=!!U,Bs["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!yW&&nvz(),Bs)),xK=_.uk(function(yf){L==null||L(yf);S&&(x==null||x(yf))});
c=function(){return p?_.P(_.ik,{aTagConfig:p,disabled:w,className:ku,style:QPY(Q).style,title:a!=null?a:"",ariaLabel:A,ariaCurrent:S&&b},_.P(_.aF,null,jPm(C,n5,Zt,sH,OF,$z,hX))):_.P("button",{"on:click":xK,class:ku,title:a!=null?a:"",style:w&&p?"pointer-events:none":QPY(Q).style,disabled:w,"aria-pressed":S?!!b:void 0,"aria-label":A?A:void 0,"aria-disabled":Rw,"aria-hidden":cs,tabindex:XO},_.P(_.aF,null,jPm(C,n5,Zt,sH,OF,$z,hX)))};
r={};I=(r["yt-spec-button-shape-with-label"]=!0,r["yt-spec-button-shape-with-label--is-overlay"]=I==="overlay"||I==="overlay-dark",r);return _.P("yt-button-shape",{class:"yt-spec-button-shape-next__button-shape-wiz-class"},B?_.P("label",{class:_.yc(I)},c(),_.P("div",{class:"yt-spec-button-shape-with-label__label","aria-hidden":!0},l5I(C))):c())};
l5I=function(I){var C=I.formattedButtonText,y=I.animatedTextProps,k=I.buttonText,F=I.oneOffCustomTextWrap;I=I.iconPosition;return y?_.P(_.FU,{numberText:y.numberText,numberValue:y.numberValue,heightPx:y.heightPx,fontSizeMultiplier:y.fontSizeMultiplier,shouldAnimate:y.shouldAnimate,forceRollUp:y.forceRollUp}):C?(y=I==="icon-with-label"||F,_.P(_.wh,{text:Object.assign({},C,y?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),noLinkColor:!0,noWrap:!y})):k};
jPm=function(I,C,y,k,F,z,c){return _.P(_.aF,null,_.H2(z&&(C||y||F),function(){return _.P(_.aF,null,_.P("div",{class:"yt-spec-button-shape-next__icon","aria-hidden":"true"},z==null?void 0:z()))}),_.H2((I.buttonText||I.formattedButtonText||I.animatedTextProps)&&!F,function(){return _.P(_.aF,null,_.P("div",{class:"yt-spec-button-shape-next__button-text-content"},l5I(I)))}),_.H2(k,function(){return _.P(_.aF,null,_.P("div",{class:"yt-spec-button-shape-next__icon"},z==null?void 0:z()))}),_.H2(y,function(){return _.P(_.aF,
null,_.P("div",{class:"yt-spec-button-shape-next__secondary-icon"},c==null?void 0:c()))}),_.H2(!I.disabled&&!0,function(){return _.P(_.nE,{model:{color:wbY(I)}})}))};
$RX=function(I,C,y){W9(XbO)({data:I,icon:C?function(){return _.P(Us,null,C)}:void 0,
secondaryIcon:y?function(){return _.P(Us,null,y)}:void 0})};
Gim=function(I,C,y){var k=I.buttonText,F=I.formattedButtonText,z=I.formattedButtonTextLegacy,c=I.animatedTextProps,r=I.style,w=I.size,L=I.focused,D=I.disabled,p=I.onTap,Q=I.alignByText,X=I.aTagConfig,b=I.customColors,S=I.segmentedPosition,A=I.toggled,x=I.toggleable,B=I.accessibilityLabel,t=I.onToggle,U=I.iconPosition,yW=I.oneOffCustomTextWrap,a=I.disableTextEllipsis,cs=I.disableBackdropFilter,XO=I.tooltipText,Rm=I.ariaHidden,$z=I.tabIndex,hX=I.state,vs=I.type;r==="call-to-action-inverse"&&(vs="text");
r==="overlay-dark"&&vs!=="filled"&&vs!=="tonal"&&(vs="tonal");var mY=!!C&&U==="leading",Bs=!!C&&U==="trailing",n5=!!C&&!!y&&U==="leading-trailing",sH=!!C&&U==="icon-only",Zt=!!C&&U==="icon-only-40",Qd=!!C&&U==="icon-with-label",OF=sH||Zt||Qd;D&&(hX="disabled");var Rw=hX==="disabled"||D;hX=r5K(I,!!C);var ku={},xK=(ku["yt-spec-button-shape-next"]=!0,ku[PHW(vs)]=!0,ku[L1I(r)]=!Rw,ku["yt-spec-button-shape-next--disabled"]=!!Rw,ku[DRs(w)]=!0,ku["yt-spec-button-shape-next--focused"]=!!L&&!D,ku["yt-spec-button-shape-next--icon-trailing"]=
Bs,ku["yt-spec-button-shape-next--icon-leading"]=mY,ku["yt-spec-button-shape-next--icon-leading-trailing"]=n5,ku["yt-spec-button-shape-next--icon-button"]=sH||Qd,ku["yt-spec-button-shape-next--icon-only-default"]=Zt,ku["yt-spec-button-shape-next--align-by-text"]=!!Q,ku["yt-spec-button-shape-next--segmented-start"]=S==="start",ku["yt-spec-button-shape-next--segmented-end"]=S==="end",ku["yt-spec-button-shape-next--override-small-size-icon"]=hX,ku["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=
!!yW,ku["yt-spec-button-shape-next--disable-text-ellipsis"]=!!a,ku["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=!cs&&nvz(),ku),yf=function(){if(c)W9(_.FU)(c);else if(z)z(U==="icon-with-label"||yW?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",textAlignment:"TEXT_ALIGNMENT_CENTER"}:{});else if(F){var hc=U==="icon-with-label"||yW;ZJz(Object.assign({},F,hc?{lineBreakMode:"LINE_BREAK_MODE_BY_WORD_WRAPPING",alignment:"TEXT_ALIGNMENT_CENTER"}:{}),{noLinkColor:!0,noWrap:!hc})}else k&&
tf(k)},uK=function(hc){p==null||p(hc);
x&&(t==null||t(hc))},oL=X?R5W:b_m,Uw=X?"aria-current$":"aria-pressed$",TR=function(){C&&(mY||n5||OF)&&function(){PP({className:"yt-spec-button-shape-next__icon",
"aria-hidden$":!0},function(){C()})}();
(k||F||z||c)&&!OF&&function(){PP({className:"yt-spec-button-shape-next__button-text-content"},function(){yf()})}();
Bs&&function(){PP({className:"yt-spec-button-shape-next__icon"},function(){C()})}();
n5&&function(){PP({className:"yt-spec-button-shape-next__secondary-icon"},function(){y()})}();
D||W9(_.nE)({model:{color:wbY(I)}})},G0=function(){var hc={};
oL(Object.assign({},(hc.className=_.yc(xK),hc.onclick=X?void 0:uK,hc.disabled=D,hc["aria-disabled$"]=Rw,hc.style=D&&X?"pointer-events:none":void 0,hc[Uw]=x?!!A:void 0,hc["aria-label$"]=B,hc.title$=XO!=null?XO:"",hc["aria-hidden$"]=Rm,hc.tabindex$=$z,hc),X,QPY(b)),function(){TR()})};
Qd?(w={},r=(w["yt-spec-button-shape-with-label"]=!0,w["yt-spec-button-shape-with-label--is-overlay"]=r==="overlay"||r==="overlay-dark",w),YKW({className:_.yc(r)},function(){G0();PP({"aria-hidden$":!0,className:"yt-spec-button-shape-with-label__label"},yf)})):G0()};
f5K=function(I,C,y){_.V("web_wiz_button_shape")?$RX(I,C,y):Gim(I,C,y)};
LE=function(I,C){_.bU(I,Object.assign({},C,{forceClickLogging:!0}))};
SKm=function(I,C,y,k){var F=void 0;return function(z){var c=_.Rj(y?I==null?void 0:I.onDisabledTap:I==null?void 0:I.onTap);if(c){var r;F=(r=F)!=null?r:C==null?void 0:C.value;if(c)if(_.V("web_button_vm_click_client_ve_killswitch"))LE(c,Object.assign({},{form:{element:F,event:z}},void 0));else{var w;r=c==null?void 0:c.clickTrackingParams;var L,D=I==null?void 0:(w=I.loggingDirectives)==null?void 0:(L=w.clientVeSpec)==null?void 0:L.uiType;w=D&&!r?_.Dn(D):void 0;LE(c,Object.assign({},{form:{element:F,event:z}},
{clickedVisualElement:w}))}}k&&k(z)}};
K1I=function(I){switch(I){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"}};
A5K=function(I){switch(I){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"}};
gvF=function(I){switch(I){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"}};
vvX=function(I){switch(I){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"}};
W1X=function(I,C){return _.cg(I.entities,"engagementToolbarStateEntityPayload",C)};
xRY=function(I){(I=_.nv(I))&&_.dRW(I)};
_.dRW=function(I){var C=_.Si();C&&_.mM(C,I)};
qKF=function(I,C,y){_.Fe(I,"yt-open-popup-action",[C,y||I])};
mRH=function(I,C){var y=_.fH(I,"endpoint"),k=_.fH(I,"action");return(y=k?k:y)&&C&&(y=C.navigationEndpointPopupMap[y])&&(I=_.d5(y,I),(y=_.fH(I,"renderer"))&&C.supportedPopups.hasOwnProperty(y))?{openPopupAction:{popupType:C.popupTypeMap[y],popup:I}}:null};
Z_m=function(I,C,y,k){if(k){var F;y=y==null?void 0:(F=y.data)==null?void 0:F.contents;(F=y instanceof Array&&y.length?y[0]:y)&&(y=_.fH(F,"renderer"))&&k.supportedPopups.hasOwnProperty(y)&&(C.stopPropagation(),qKF(I,{openPopupAction:{popupType:k.popupTypeMap[y],popup:F}}))}};
h5W=function(I,C,y,k){k=k===void 0?!1:k;var F=BLs(C);if(F){F.href&&bg(F.href);var z=C.button;z=z!==void 0?z===0&&!pE(C):!pE(C);F.data&&z&&Evm(I,F,C,y,k)}};
Evm=function(I,C,y,k,F){F=F===void 0?!1:F;var z=_.s8("pbj_navigate_limit",-1)===0;URs(C);_.N().resolve(_.aU(dT));var c=C.data;if(Object.keys(c).length!==0)if(!_.V("unplugged_web_disable_actions_for_cec_endpoint")&&_.l(c,_.r9))_.V("endpoint_behavior_command_executor_fix_killswitch")||(y.preventDefault(),y.stopPropagation()),_.cQ(I,[c],I);else if(k=mRH(c,k))c.loggingUrls&&c.loggingUrls.forEach(function(w){w.baseUrl&&_.dI(w.baseUrl)}),y.preventDefault(),y.stopPropagation(),qKF(I,k,C);
else{var r=H_I(0,C.data,y);if(I=C.getForm)I=I(),r.tempData=r.tempData||{},r.tempData=Object.assign({},r.tempData,I);I=_.qc(y);if(k=I.find(function(w){return!!w.visualElement}))r.createScreenConfig=r.createScreenConfig||{},r.createScreenConfig.clickedVisualElement=k.visualElement;
if(!z)if(y.preventDefault(),y.stopPropagation(),_.l(c,_.t$I)&&!F&&_.FW.instance)_.FW.instance.resolveCommand(c,r);else if(_.V("kevlar_command_handler_formatted_string")&&!F&&_.FW.instance&&J5I(c))F=I.find(function(w){return!!w.is})||y.target,y={form:Object.assign({},r,{event:y,
element:F,originatingNode:C})},_.FW.instance.resolveCommand(c,y);else{c=_.qc(y);y=[];for(F=0;F<c.length;F++)(z=c[F].is)&&y.push(z);DxY({parents:y.join(","),text:C.innerText},function(){_.k3(C,"yt-navigate",r)})}}};
O_H=function(I){if(I=BLs(I))URs(I),yxO(I.href)};
BLs=function(I){I=_.qc(I);for(var C,y=0;y<I.length;y++)if(C=I[y],C.tagName==="A"&&C.classList.contains("yt-simple-endpoint")){if(!C.data)break;return C}return null};
pE=function(I){return I.shiftKey||I.altKey||I.metaKey||I.ctrlKey};
a5H=function(I,C){var y={itct:C.clickTrackingParams};_.V("kevlar_client_side_screens")&&(!_.l(C,_.PD)||_.V("kevlar_exclude_endpoint_killswitch"))&&(y.endpoint=JSON.stringify(C));_.V("enable_unknown_lact_fix_on_html5")&&_.N().resolve(_.aU(_.Qc))&&(y.lact=_.Ci());CZO(y);_.aC(I,y)};
URs=function(I){I.href&&Object.keys(I.data).length!==0&&a5H(I.href,I.data)};
J5I=function(I){for(var C=_.T(M$s),y=C.next();!y.done;y=C.next())if(I[y.value])return!1;return!0};
_.N3=function(I,C){if(C){var y={};IjX.forEach(function(k){k=CqO(C,k,"--yt-lightsource-");Object.assign(y,k)});
sSF.forEach(function(k){k=CqO(C,k,"--yt-basic-");Object.assign(y,k)});
_.CK(I,y)}};
CqO=function(I,C,y){var k={};k[y+_.nq(C)]=I&&I[C]?_.Xl(I[C]):"";return k};
_.jz=function(I,C,y){Vc[I]||(Vc[I]={});Vc[I][C]=y};
_.lk=function(I){Vc[I]||(Vc[I]={});return Vc[I]};
oIK=function(I){if(!I)return{};var C=I.foregroundTitleColor,y=I.backgroundColor;I=I.borderColor;var k="text";I?k="outline":y&&(k="filled");return{type:k,customColors:{color:C?_.Xl(C):void 0,backgroundColor:y?_.Xl(y):void 0,borderColor:I?_.Xl(I):void 0}}};
zZW=function(I){var C=I.renderer;var y=I.element;var k=I.commandController;var F=I.onTapCallback;var z=I.skipCommandHandling;var c=I.overrides;var r=I.forceIcon;var w=I.forceModernIconButton;var L=I.forceDisabled;var D=I.isSubscribe===void 0?!1:I.isSubscribe;var p=I.isPressed===void 0?!1:I.isPressed;var Q=I.useButtonSize===void 0?!1:I.useButtonSize;I=ygF(C);D&&(I.style="mono",I.type="filled");r=!C.icon||!r&&C.text?C.icon?C.iconPosition==="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT"?"trailing":"leading":
void 0:w?"icon-only":"icon-only-40";r==="icon-only-40"&&(I.type="text");var X;w=Object;D=w.assign;Q=knH(C,Q);p=!!C.isSelected||!_.V("web_propagate_is_pressed_killswitch")&&!!p;var b=C.isSelected!==void 0;L=L===void 0?C.isDisabled:L;var S=C.text?_.j2(C.text):void 0;var A,x,B,t=((A=C.accessibilityData)==null?void 0:(x=A.accessibilityData)==null?void 0:x.label)||((B=C.accessibility)==null?void 0:B.label);A=t?t:_.hS(C.text);y=F8I(C,y,k,F,z);k=u09(C);k!=null&&k.length?(k=_.Y$({innertubeCommand:RGI(k),
forceNewState:!0}),k=bdW(k)?k:void 0):k=void 0;return D.call(w,{},I,Q,{iconPosition:r},c,{focused:!1,toggled:p,toggleable:b,disabled:L,formattedButtonText:S,accessibilityLabel:A,onTap:y,aTagConfig:k},oIK((X=C.colorData)==null?void 0:X.basicColorPaletteData),{oneOffCustomTextWrap:C.oneOffCustomTextWrap})};
F8I=function(I,C,y,k,F){return function(z){var c=u09(I);k(c,z);if(!F){c=_.T(c);for(var r=c.next();!r.done;r=c.next())LE(r.value,{form:{element:C,event:z},commandController:y})}}};
u09=function(I){var C=[];I.command&&C.push(I.command);I.serviceEndpoint&&C.push(I.serviceEndpoint);I.navigationEndpoint&&C.push(I.navigationEndpoint);return C};
knH=function(I,C){if(C)switch(I.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(I.style){case "STYLE_COMPACT_GRAY":return{size:"S"};default:return{size:"M"}}};
ygF=function(I){switch(I.style){case "STYLE_VISIBLY_DISABLED":return{style:"call-to-action",type:"text",state:"disabled"};case "STYLE_PRIMARY":case "STYLE_PAYMENT":case "STYLE_CALL_TO_ACTION_FILLED":return{style:"call-to-action",type:"filled",state:"active"};case "STYLE_OUTLINE":case "STYLE_SUGGESTIVE":case "STYLE_SUGGESTED_ACTION":return{style:"call-to-action",type:"outline",state:"active"};case "STYLE_BLUE_TEXT":case "STYLE_ALERT_INFO":return{style:"call-to-action",type:"text",state:"active"};case "STYLE_OVERLAY":return{style:"overlay",
type:"filled",state:"active"};case "STYLE_WHITE_WITH_BORDER":return{style:"overlay",type:"outline",state:"active"};case "STYLE_LIGHT_TEXT":return{style:"overlay",type:"text",state:"active"};case "STYLE_MONO_FILLED_OVERLAY":return{style:"overlay",type:"filled",state:"active"};case "STYLE_MONO_TONAL_OVERLAY":case "STYLE_DARK_ON_BLACK":return{style:"overlay",type:"tonal",state:"active"};case "STYLE_OVERLAY_PROTECTED":return{style:"overlay-dark",type:"tonal",state:"active"};case "STYLE_MONO_FILLED":case "STYLE_DESTRUCTIVE":return{style:"mono",
type:"filled",state:"active"};case "STYLE_DEFAULT":case "STYLE_COMPACT_GRAY":case "STYLE_MONO_TONAL":return{style:"mono",type:"tonal",state:"active"};case "STYLE_INACTIVE_OUTLINE":case "STYLE_MONO_OUTLINE":return{style:"mono",type:"outline",state:"active"};case "STYLE_BLUE_TEXT_WITH_INVERSE_THEME":return{style:"call-to-action-inverse",type:"text",state:"active"};case "STYLE_BRAND_GRADIENT":return{style:"brand-gradient",type:"filled",state:"active"};case "STYLE_GENERATIVE_GRADIENT":return{style:"gen-ai-gradient",
type:"filled",state:"active"};default:return{style:"mono",type:"text",state:"active"}}};
_.XU=function(I){return _.P4(function(){yCO()();return xm(I)},void 0,"Icv7j")};
$s=function(I,C){return _.cg(I.entities,"likeStatusEntity",C)};
TzH=function(I,C){return _.cg(I.entities,"likeCountEntity",C)};
_.cgO=function(I,C){return _.cg(I.entities,"stringEntity",C)};
eZ9=function(I,C){if(!I)return!1;var y,k=(y=_.l(I,_.w9))==null?void 0:y.signal;if(k&&C.signalEndpointMap)return!!C.signalEndpointMap[k];var F;if((y=(F=_.l(I,_.R8))==null?void 0:F.request)&&C.continuationEndpointMap)return!!C.continuationEndpointMap[y];for(var z in I)if(C.commandEndpointMap[z])return!0;return!1};
rgI=function(I,C){if(C.streamingEndpointMap)for(var y in I)if(C.streamingEndpointMap[y]&&(I=C.streamingEndpointMap[y]))return I()};
ifm=function(I,C){var y,k=(y=_.l(I,_.w9))==null?void 0:y.signal;if(k&&C.signalEndpointMap&&(y=C.signalEndpointMap[k]))return y();var F;if((y=(F=_.l(I,_.R8))==null?void 0:F.request)&&C.continuationEndpointMap&&(F=C.continuationEndpointMap[y]))return F();for(var z in I)if(C.commandEndpointMap[z]&&(I=C.commandEndpointMap[z]))return I()};
wEm=function(I){var C={"Content-Type":"application/json"};_.Aq("EOM_VISITOR_DATA")?C["X-Goog-EOM-Visitor-Id"]=_.Aq("EOM_VISITOR_DATA"):_.Aq("VISITOR_DATA")&&(C["X-Goog-Visitor-Id"]=_.Aq("VISITOR_DATA"));C["X-Youtube-Bootstrap-Logged-In"]=_.Aq("LOGGED_IN",!1);_.Aq("DEBUG_SETTINGS_METADATA")&&(C["X-Debug-Settings-Metadata"]=_.Aq("DEBUG_SETTINGS_METADATA"));I!=="cors"&&((I=_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME"))&&(C["X-Youtube-Client-Name"]=I),(I=_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION"))&&(C["X-Youtube-Client-Version"]=
I),(I=_.Aq("CHROME_CONNECTED_HEADER"))&&(C["X-Youtube-Chrome-Connected"]=I),(I=_.Aq("DOMAIN_ADMIN_STATE"))&&(C["X-Youtube-Domain-Admin-State"]=I),_.g5("ENABLE_LAVA_HEADER_ON_IT_EXPANSION")&&(I=_.Aq("SERIALIZED_LAVA_DEVICE_CONTEXT"))&&(C["X-YouTube-Lava-Device-Context"]=I));return C};
nII=function(I,C){C.watchNextResponse||C.reelItemWatchResponse?C.watchNextResponse?I.content=C.watchNextResponse:I.content=C.reelItemWatchResponse:C.playerResponse?I.player=C.playerResponse:C.reelWatchSequenceResponse&&(I.reelSequence=C.reelWatchSequenceResponse)};
bk=function(I){return function(){return new I}};
Ys=function(I){var C=_.N();return function(){return C.resolve(I)}};
_.GN=function(I){if(!I)return null;for(var C=[],y=0;y<I.textSegments.length;y++){var k=I.textSegments[y];k.text?C.push(k):k.emojiId&&C.push({emoji_id:k.emojiId})}return{text_segments:C}};
QSK=function(I,C,y,k,F,z,c){z=z===void 0?[]:z;var r=new _.fE;r.endpoint=y;if(!y)return _.fi(new _.ph("handle undefined endpoint",C.tagName)),r;var w=RsK(y);w.length&&(_.cQ(I,w,C,k),r.actions=w);y.loggingUrls&&y.loggingUrls.forEach(function(D){D.baseUrl&&qy(D.baseUrl,D.attributionSrcMode)});
w=!_.V("web_skip_impression_click_killswitch")&&k&&k.impression;if(y.clickTrackingParams&&!PqO(y)&&!L8z(C)&&!w&&(w=_.e2(),!_.Sz(w,C))){var L=C.getScreenLayer&&C.getScreenLayer();L?w.clickCommand(y,null,L):w.clickCommand(y,null)}w=!1;for(L=0;L<z.length;L++)if((0,z[L])(C,y,k)){w=!0;break}!w&&DIt(y)&&(r.ajaxPromise=pEm(I,C,y,k,F,c));return r};
L8z=function(I){var C;return(I=(C=I.data)==null?void 0:C.navigationEndpoint)&&!!I.clickTrackingParams};
PqO=function(I){var C=_.l(I,_.w9);if(C&&(C=C.signal)&&NzH.indexOf(C)>=0)return!0;for(var y in I)if(VuI.indexOf(y)>=0)return!0;return!1};
DIt=function(I){var C;if(((C=_.l(I,_.w9))==null?void 0:C.signal)==="CLIENT_SIGNAL")return!1;for(var y in I)if(jSs.indexOf(y)>=0)return!1;I=Object.keys(I);return I.length===1&&I[0]==="loggingUrls"?!1:!0};
fjO=function(I,C,y,k,F,z,c){var r=_.KE.instance;if(r&&_.AU(r,k))var w=_.gh(r,k,F).then(function(D){return(D==null?0:D.data)?D:{data:D}});
else w=I.requestDataForServiceEndpoint(k,F),_.l(k,ljO)||_.l(k,XEI)||_.l(k,_.$Im)||_.l(k,RZO)||_.SN(new _.ph("No RequestBuilder for endpoint",k));var L=_.vP();L.promise.thenCatch(function(){var D=_.fH(k,"action")||_.fH(k,"command")||_.fH(k,"endpoint");D&&(D=k[D],D.hasOwnProperty("onFailureAction")?_.cQ(C,[D.onFailureAction],y):D.hasOwnProperty("onFailureCommand")&&_.cQ(C,D.onFailureCommand,y));w.cancel("Resolver promise rejected")});
w.then(function(D){if(D){var p=D.error;if(p){if(z&&z.onServerError)z.onServerError(k,D);L.reject(new _.ph("Response error",k,p))}else if(D=D.data)if(p=D.error){if(z&&z.onServerError)z.onServerError(k,D);L.reject(new _.ph("Returned error",k,p))}else{bfK(C,y,D,k);YMK(D);if(p=$xO(D))for(var Q=_.T(p),X=Q.next();!X.done;X=Q.next()){X=X.value;var b=_.N().resolve(_.aU(GnF))||WP;if(!_.KE.instance||!b.some(function(A){return!!_.l(k,A)})||_.V("kevlar_response_processor_allowlist_killswitch")){var S=b=void 0;
((S=_.l((b=X)==null?void 0:b.commandMetadata,_.It))==null?0:S.sendPost)?_.Tg(C,[X]):_.cQ(C,[X],y)}}(Q=_.l(D==null?void 0:D.frameworkUpdates,dh))&&c&&c(Q);if(z&&z.onSuccess)z.onSuccess(k,D);L.resolve(new _.xs(D,p))}}else L.reject(new _.ph("Invalid service endpoint provided",k))},function(D){L.reject(D)});
return L.promise};
YMK=function(I){var C;(I=(C=_.l(I==null?void 0:I.onResponseReceivedCommand,_.SMY))==null?void 0:C.continuationItems)&&(I==null?void 0:I.length)===1&&_.l(I[0],K8F)&&_.Sr("so_r",void 0,"search_overview_answer")};
pEm=function(I,C,y,k,F,z){var c;return(c=C.getNetworkManager&&C.getNetworkManager()?C.getNetworkManager():_.N().resolve(_.aU(_.pp)))?fjO(c,I,C,y,k,F,z):_.mr("No network manager.")};
bfK=function(I,C,y,k){if(y=y.trackingParams||y.loggingDirectives&&y.loggingDirectives.trackingParams){var F;(_.l(k,Agm)||_.l(k,gIz)||_.l(k,vII))&&k.clickTrackingParams?F=_.nv(k.clickTrackingParams):_.V("web_graft_to_parent_command")&&k.clickTrackingParams&&(F=_.nv(k.clickTrackingParams));var z;k=(z=C.getScreenLayer)==null?void 0:z.call(C);C=_.e2().graftServerVe(y,F,k);_.uW(I,"yt-store-grafted-ve-action",[C])}};
_.W8H=function(I){var C=new Image;return new _.eN(function(y,k){C.addEventListener("load",function(){y()});
C.addEventListener("error",function(){k()});
C.src=I})};
dIK=function(I){return!!I};
xIs=function(I){return!!I};
qMm=function(I,C,y){var k=I.rowIndex;k!==void 0&&_.uW(I.hostElement,"yt-section-reactive-dismissal",[k,C,y])};
_.q3=function(I,C,y){I=_.T(I);for(var k=I.next();!k.done;k=I.next()){k=k.value;if(k===C)break;for(var F=_.T(y),z=F.next();!z.done;z=F.next())if(z=z.value,k.tagName===z||!_.V("web_event_button_role_check_killswitch")&&k.role==="button"&&z==="BUTTON")return!0}return!1};
_.m4=function(I,C,y){I=_.T(I);for(var k=I.next();!k.done;k=I.next()){k=k.value;if(k===C)break;for(var F=_.T(y),z=F.next();!z.done;z=F.next())if(k.id===z.value)return!0}return!1};
Zn=function(I,C){if(!I&&!C)return"medium";I=Math.max(I||0,C||0);return I>=256?"large":I>=96?"medium":"small"};
mII=function(I){switch(I){case 1:return 2/3;case 4:return.5625;case 3:return 1;default:return 16/9}};
_.hU=function(){var I=_.N().resolve(_.aU(_.BP));return I?(I=I.getCurrentPage())?_.EZ(I):null:null};
_.UZ=function(){var I=_.hU();if(!I){var C=_.N().resolve(_.aU(_.BP)),y=C?typeof C:"no page manager";C=C?C.getCurrentPage():null;y=new _.ph("Player is missing when requested.",y,C?C.tagName:"no page");_.GB(y)}return I};
_.EZ=function(I){return I&&I.getPlayer?I.getPlayer():null};
ZfF=function(I,C){I={args:{raw_player_response:I}};C&&(I.args=Object.assign({},I.args,C));return I};
BzX=function(I){if(I.args){if(I.args.raw_player_response)return I.args.raw_player_response;if(I.args.player_response)return JSON.parse(I.args.player_response)}};
_.EIF=function(I,C){var y={url:"/watch?v="+I.videoId,webPageType:"WEB_PAGE_TYPE_WATCH",rootVe:3832};I.playlistId&&(y.url+="&list="+I.playlistId);I.playerParams&&(y.url+="&pp="+I.playerParams);I={watchEndpoint:I,commandMetadata:{webCommandMetadata:y}};C&&(I.clickTrackingParams=C);return I};
UIs=function(){return hZH||!!_.d5("yt.player.Application")};
tut=function(){return HfK||!!document.querySelector("link#player-css")};
Of9=function(){function I(){hZH=!0;JgF.resolve()}
var C,y;return _.e(function(k){JgF||(JgF=new _.ug,UIs()?I():(C=document.createElement("script"),C.addEventListener("load",I),y=_.Qo(_.Aq("PLAYER_JS_URL")),_.fa(C,y),document.head.appendChild(C)));return k.return(JgF.promise)})};
Mum=function(){function I(){HfK=!0;ajm.resolve()}
if(!ajm)if(ajm=new _.ug,tut())I();else{var C=document.createElement("link");C.id="player-css";C.addEventListener("load",I);var y=_.Qo(_.Aq("PLAYER_CSS_URL"));_.A_(C,y,"stylesheet");document.head.appendChild(C)}return ajm.promise};
Imz=function(){return UIs()&&tut()?Promise.resolve([]):Promise.all([Of9(),Mum()])};
Clt=function(I,C,y){var k={args:{}};I&&(k.args.raw_player_response=I);C&&(k.args.raw_watch_next_response=C);y&&(k.args=Object.assign({},k.args,y));return k};
kwF=function(I,C,y){var k=!1;k=k===void 0?!0:k;I=typeof I==="string"?_.HP(document,I):I;var F=sGX+"_"+_.ow(I),z=owW[F];if(z&&k)return yQt(C,y)?z.api.loadVideoByPlayerVars(C.args||null):z.loadNewVideoConfig(C),z.api;z=new tU(I,F,C,y,void 0);owW[F]=z;z.addOnDisposeCallback(function(){delete owW[z.getId()]});
return z.api};
yQt=function(I,C){return C&&C.serializedExperimentFlags?C.serializedExperimentFlags.includes("web_player_remove_playerproxy=true"):I&&I.args&&I.args.fflags?I.args.fflags.includes("web_player_remove_playerproxy=true"):!1};
Ffm=function(){var I=new _.ug;I.resolved=!1;var C=I.resolve;I.resolve=function(y){I.resolved=!0;C(y)};
return I};
zHX=function(I){var C={};u6Y().install((C.document_disposed={callback:I},C))};
JU=function(I,C){if(!I&&Math.random()<=_.s8("kevlar_unified_player_logging_threshold")){I=Error("uh`"+(C?C:"Unspecified error"));if(_.V("kevlar_unified_player_throw_errors"))throw I;_.SN(I)}};
_.Tjm=function(){var I=_.d5("ytDebugData.callbacks");I||(I={},_.U8("ytDebugData.callbacks",I));return I};
eHO=function(I,C){var y=_.Tjm();if(_.V("web_dd_iu")||cQO.includes(I))y[I]=C};
rQI=function(){return _.e(function(I){return I.return({isLeader:_.j$K(_.Hg().getState()),c:_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME"),cver:_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION")})})};
irI=function(){var I;_.e(function(C){if(C.nextAddress==1)return eHO("APP_STATE",rQI),_.n(C,_.N().resolve(_.OZ),2);I=C.yieldResult;eHO("PI",function(){return _.e(function(y){return y.return(I.getVideoStats())})});
_.oI(C)})};
wZm=function(I){var C=_.Oh(_.ZC(_.sF.location.href));I=_.Oh(_.ZC(I));return _.V("kevlar_clear_non_displayable_url_params")?C==a8(I):a8(C)==a8(I)};
a8=function(I){var C=_.nwH(I);I=I.slice(0);var y=["frags"];_.V("kevlar_hide_pp_url_param")&&y.push("pp");_.V("kevlar_hide_time_continue_url_param")&&y.push("time_continue");y=_.T(y);for(var k=y.next();!k.done;k=y.next())k=k.value,I=_.MJ(_.Oh(I),k);return _.Oh(I)+(C?"#"+C:"")};
M3=function(I,C){C=Number(C)*1E3;var y=Math.round((0,_.JY)()),k=y.toString();I={innertubeResponse:I,serverDateTimestampMs:k,lastModifiedTimestampMs:k,expireTimestampMs:(y+C).toString()};if(C=_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME"))I.clientName=C;return I};
LfK=function(){return window&&window.performance&&window.performance.now?window.performance.now():Date&&Date.now?Date.now():++PlI};
_.D6K=function(){var I=_.fq(),C=_.Si();C&&I&&_.BQ(C,[I],!0)};
QGs=function(I){return I&&pZF.some(function(C){return I.includes(C)})};
$6O=function(I){var C=_.l(I,_.xo);if(!C)return!1;var y=C.url,k=C.attributionSrcMode==="ATTRIBUTION_SRC_MODE_LABEL_CHROME";if(!y)return _.GB(Error("zh")),!1;if(C.target==="TARGET_NEW_WINDOW"){var F={};_.V("resolve_url_parent_tracking_params")&&(!_.H5(y)||tq(window.location.href,y))&&(F={endpoint:I,itct:I.clickTrackingParams});CZO(F);I=null;try{if(k){a:{var z=y,c=F;k=k===void 0?!1:k;c&&_.aC(z,c);var r=_.ra(z),w=_.zK(r);z!=w&&_.xS(Error("Zf`"+z));z=w;try{if(k){w=z;w=zMz(w);bg(w);I=_.XG(window,w,"_blank",
"attributionsrc");break a}}catch(Q){_.v5(Q)}bg(z);I=_.XG(window,r,"_blank")}Nj9(_.N().resolve(VSO),I,y);return!0}}catch(Q){_.GB(Q)}_.aC(y,F);F={target:"_blank",noopener:_.V("set_window_noopener_ks")&&!C.allowOpener};C=window;r=ui(y)?y:_.ra(typeof y.href!="undefined"?y.href:String(y));I=self.crossOriginIsolated!==void 0;z="strict-origin-when-cross-origin";window.Request&&(z=(new Request("/")).referrerPolicy);w=F.noreferrer;if(I&&w&&z==="unsafe-url")throw Error("pe");z=w&&!I;w=F.target||y.target;k=
[];c=[];var L=!1;for(p in F){var D=F[p];switch(p){case "width":case "height":case "top":case "left":k.push(p+"="+D);break;case "target":break;case "noopener":case "noreferrer":D?c.push(p):(L=!0,c.push(p+"=false"));break;case "attributionsrc":k.push(p+(D?"="+D:""));break;default:k.push(p+"="+(D?1:0))}}var p=w!==void 0&&!["_blank","_self","_top","_parent",""].includes(w);p=jI()&&p;jGs&&I&&k.length===0&&c.length>0&&!p&&!L?(c.length===2&&(c=["noreferrer"]),_.XG(C,r,w,c[0]),I=lmI()):(p=k.join(","),_.f9()&&
C.navigator&&C.navigator.standalone&&w&&w!="_self"?(p=_.c2("A"),pa(p,r),p.target=w,z&&(p.rel="noreferrer"),((F=F.attributionsrc)||F==="")&&p.setAttribute("attributionsrc",F),F=document.createEvent("MouseEvent"),F.initMouseEvent("click",!0,!0,C,1),p.dispatchEvent(F),p=lmI()):z?(p=_.XG(C,"",w,p),C=_.zK(r),p&&(p.opener=null,C===""&&(C="javascript:''"),C='<meta name="referrer" content="no-referrer"><meta http-equiv="refresh" content="0; url='+IY(C)+'">',C=NM(C),(F=p.document)&&F.write&&(F.write(Vp(C)),
F.close()))):((p=_.XG(C,r,w,p))&&F.noopener&&(p.opener=null),p&&F.noreferrer&&(p.opener=null)),I=p);Nj9(_.N().resolve(VSO),I,y);return!0}p=_.Tl(y);p=QGs(p)||y==="https://studio.youtube.com/";C=!(!_.H5(y)||tq(window.location.href,y));F=y.indexOf("disable_polymer=1")>=0;if(C||F||p)bg(y),Y3(),_.Yk(y,void 0,void 0,window.top,XZK);else return _.SN(new _.ph("UrlEndpoint should not be used for same origin navigations. Use a better typed command instead",I)),!1;return!0};
_.YOK=function(I,C){C=C===void 0?0:C;if(!(_.l(I,RHX)||_.l(I,brm)||_.l(I,_.xo)&&_.l(I,_.xo).url))return!1;var y,k=(y=_.l(I,_.xo))==null?void 0:y.url;y=k?{externalLinkData:{url:k}}:null;return _.e2().clickCommand(I,y,C)};
_.CM=function(I,C){return _.cg(I.entities,"subscriptionStateEntity",C)};
GwI=function(I,C){return _.cg(I.entities,"subscriptionNotificationStateEntity",C)};
fmK=function(I,C){return _.cg(I.entities,"upcomingEventReminderStateEntity",C)};
SOz=function(I,C){return _.cg(I.entities,"engagementToolbarSurfaceEntityPayload",C)};
Kfm=function(I,C){return _.cg(I.entities,"triStateButtonStateEntityPayload",C)};
AQX=function(I,C){return _.cg(I.entities,"commerceCartCheckoutButtonEntity",C)};
_.gwI=function(I,C){return _.cg(I.entities,"playlistLoopStateEntity",C)};
vwm=function(I,C){return _.cg(I.entities,"commandEntity",C)};
d6H=function(I,C,y,k,F){F=F===void 0?{}:F;return function(z){var c,r;var w=((c=I.loggingDirectives)==null?0:(r=c.clientVeSpec)==null?0:r.uiType)?_.Dn(I.loggingDirectives.clientVeSpec.uiType):void 0;F.clickedVisualElement||(F.clickedVisualElement=w);w=WfY(I,C);y(w,z);w=_.T(w);for(c=w.next();!c.done;c=w.next()){c=c.value;r=k;var L=z,D=F;D.form?D.form.event=L:D.form={element:r,event:L};LE(c,D)}}};
WfY=function(I,C){var y=[];C?(I.toggledCommand&&y.push(I.toggledCommand),I.toggledServiceEndpoint&&y.push(I.toggledServiceEndpoint)):(I.defaultCommand&&y.push(I.defaultCommand),I.defaultServiceEndpoint&&y.push(I.defaultServiceEndpoint),I.defaultNavigationEndpoint&&y.push(I.defaultNavigationEndpoint));return y};
x6F=function(I,C){var y=I.toggledStyle||I.style,k;switch((k=C?y:I.style)==null?void 0:k.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"}}};
qOz=function(I,C){C=C.uniqueId+"-border";var y,k;var F=(k=(y=_.N().resolve(_.aU(_.AE)))==null?void 0:y())!=null?k:!1;return{animationRef:I,animationConfig:{name:C,autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/smartimations/smartimation_border_"+(F?"dark":"light")+"_v2.json"}}};
_.sG=function(){return _.e(function(I){return I.nextAddress==1?_.n(I,_.N().resolve(_.OZ),2):I.return(_.N().resolve(m6F)())})};
_.oY=function(){return _.N().resolve(m6F)()};
_.yg=function(){return YS(function(){return{lottieEl:void 0}})};
ZrY=function(I,C){return I.startsWith(C.uniqueId)};
BjI=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,_.sG(),2);C=k.yieldResult;if((y=C)==null||!y.addEventListener)return kA(),k.return();C.addEventListener("onCueRangeEnter",I);_.oI(k)})};
EwI=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,_.sG(),2);C=k.yieldResult;if((y=C)==null||!y.removeEventListener)return kA(),k.return();C.removeEventListener("onCueRangeEnter",I);_.oI(k)})};
hHY=function(I){var C,y,k,F,z;_.e(function(c){if(c.nextAddress==1)return _.n(c,_.sG(),2);C=c.yieldResult;if((y=C)==null||!y.addCueRange)return kA(),c.return();k=_.T(I.timings);for(F=k.next();!F.done;F=k.next())z=F.value,C.addCueRange(I.uniqueId+"-"+z,z/1E3,(z+100)/1E3);_.oI(c)})};
U6m=function(I){var C,y,k,F,z;_.e(function(c){if(c.nextAddress==1)return _.n(c,_.sG(),2);C=c.yieldResult;if((y=C)==null||!y.removeCueRange)return kA(),c.return();k=_.T(I.timings);for(F=k.next();!F.done;F=k.next())z=F.value,C.removeCueRange(I.uniqueId+"-"+z);_.oI(c)})};
HrW=function(){var I,C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.sG(),2);I=k.yieldResult;if((C=I)==null||!C.getPlayerState)return kA(),k.return();y=I.getPlayerState();return k.return(y===2)})};
kA=function(){_.SN(new _.ph("Smartimation player does not exist or is corrupted"))};
amH=function(I){var C=tSz;JQt.push(I);OrK||(C(function(){for(var y=_.T(JQt),k=y.next();!k.done;k=y.next())k=k.value,k();JQt.length=0;OrK=!1}),OrK=!0)};
tSz=function(I){Promise.resolve().then(I)};
Fi=function(I){I=_.T(Inm(I));var C=I.next().value,y=I.next().value,k=!1;_.RU(function(){return function(){k=!0}});
return[C,function(F){amH(function(){k&&!_.V("cow_prevent_state_setter_after_cleanup_killswitch")||y(F)})}]};
I6s=function(I){function C(L){var D;return _.e(function(p){if(p.nextAddress==1)return(D=!ZrY(L,k)||!k.enabled)?p.jumpTo(2):_.n(p,HrW(),3);p.nextAddress!=2&&(D=p.yieldResult);if(D)return p.return();y();setTimeout(function(){w(!1)},1500);
_.oI(p)})}
function y(){setTimeout(function(){w(!0);var L;(L=z.lottieEl)==null||L.goToAndPlay(0)},150)}
var k=I.settings;var F=I.className;I=I.children;var z=_.yg(),c=_.T(Fi(!1)),r=c.next().value,w=c.next().value;k||(k={uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]},_.SN(new _.ph("Smartimation Settings is undefined")));$S(function(){if(k.experimentEnabled)return k.enabled?BjI(C):(w(!1),EwI(C)),function(){EwI(C)}},[k.enabled,
k.experimentEnabled]);$S(function(){if(k.experimentEnabled)return hHY(k),function(){U6m(k)}},[k.timings.join("")]);
return _.P("yt-smartimation",{class:_.sZ(F,MSm(r,k))},_.H2(k.experimentEnabled,function(){return _.P("div",{class:"smartimation__border"},_.P(tKm,{className:"smartimation__border-gradient",data:qOz(z,k)}))}),_.P("div",{class:"smartimation__content"},I))};
MSm=function(I,C){var y=["smartimation"];C.experimentEnabled&&y.push("smartimation--experiment-enabled");I&&y.push("smartimation--active-border");try{var k;var F=(k=window.CSS)!=null&&k.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(z){_.SN(new _.ph("Smartimation CSS.supports threw an error")),F=!1}F&&y.push("smartimation--enable-masking");
return y.join(" ")};
CNK=function(){try{var I;return(I=window.CSS)!=null&&I.supports?window.CSS.supports("-webkit-mask","linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0)")&&(window.CSS.supports("-webkit-mask-composite","xor")||window.CSS.supports("mask-composite","exclude")):!1}catch(C){return _.SN(new _.ph("Smartimation CSS.supports threw an error")),!1}};
zKI=function(I,C,y,k,F){var z=I.playlistId?s49:oDI;C=C();y=y();F=!!I.videoId&&F()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED";if(_.px(C))return y1O({data:I,actionType:z,disabled:F},y);if(I.videoId&&k())return kcO({data:I,actionType:z,disabled:F});switch(C){case "TRANSFER_STATE_UNKNOWN":return kcO({data:I,actionType:z,disabled:F});case "TRANSFER_STATE_FAILED":return I.videoId?FGK({data:I,actionType:z,disabled:F}):uMs({data:I,actionType:z,disabled:F});case "TRANSFER_STATE_COMPLETE":return uMs({data:I,
actionType:z,disabled:F});case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":return y1O({data:I,actionType:z,disabled:F},y);case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return I.videoId?FGK({data:I,actionType:z,disabled:F}):kcO({data:I,actionType:z,disabled:F});default:return kcO({data:I,actionType:z,disabled:F})}};
TgX=function(I,C){var y=I.onTapCommand,k=_.Rj(y);if(I.videoId&&_.l(k,_.uY))return _.l(k,_.uY).action=C,y;I.playlistId&&_.l(k,_.zU)&&(_.l(k,_.zU).action=C);return y};
kcO=function(I){var C=I.data;var y=I.actionType;I=I.disabled;return{text:c1m,iconType:"OFFLINE_DOWNLOAD",onTap:TgX(C,y.ACTION_ADD),disabled:I}};
y1O=function(I,C){var y=I.data;var k=I.actionType;I=I.disabled;var F="OFFLINE_DOWNLOAD";C>=0&&C<=.1?F="OFFLINE_DOWNLOADING_ZERO":C>.1&&C<=.3?F="OFFLINE_DOWNLOADING_TWENTY":C>.3&&C<=.5?F="OFFLINE_DOWNLOADING_FORTY":C>.5&&C<=.7?F="OFFLINE_DOWNLOADING_SIXTY":C>.7&&C<1?F="OFFLINE_DOWNLOADING_EIGHTY":C===1&&(F="OFFLINE_PIN");return{text:eKm,iconType:F,onTap:TgX(y,k.ACTION_REMOVE_WITH_PROMPT),disabled:I}};
uMs=function(I){var C=I.data;var y=I.actionType;I=I.disabled;return{text:r1H,iconType:"OFFLINE_PIN",onTap:TgX(C,y.ACTION_REMOVE_WITH_PROMPT),disabled:I}};
FGK=function(I){var C=I.data;var y=I.actionType;I=I.disabled;return{text:iPY,iconType:"OFFLINE_DOWNLOAD",onTap:TgX(C,y.ACTION_RETRY),disabled:I}};
wGt=function(){var I=_.T(Fi(!1)),C=I.next().value,y=I.next().value;return function(){y(!C)}};
nDW=function(I){return YS(function(){return{value:I}})};
PNI=function(I,C){var y=nDW(I),k=nDW(C);$S(function(){y.value=I},[I]);
$S(function(){k.value=C},C&&C.length>=1?C:[void 0]);
var F=YS(function(){return{value:void 0}});
if(I!==y.value||k.value!==C||F.value===void 0)F.value=xm(I,C);var z=wGt();_.RU(function(){function c(){var w=xm(y.value,C);w!==F.value&&(F.value=w,z())}
var r=_.dW().subscribe(c);c();return r});
return F.value};
_.TU=function(I,C){return PNI(I,[C])};
_.cj=function(I,C){var y=yCO();return _.P4(function(){y();return xm(I,[_.b0(C)||""])},void 0,"HaeHEc")};
LGt=function(I){var C=_.cj(_.Kx,function(){return I().videoId}),y=_.cj(_.AS,function(){return I().playlistId});
return function(){return I().videoId?C:I().playlistId?y:_.T(_.c4("TRANSFER_STATE_UNKNOWN",void 0,"Qibycf")).next().value}};
DQm=function(I){var C=_.cj(gi,function(){return I().videoId}),y=_.cj(_.VVO,function(){return I().playlistId});
return function(){return I().videoId?C:I().playlistId?y:_.T(_.c4(0,void 0,"K4tgOc")).next().value}};
pGt=function(I){var C=_.cj(_.GXI,function(){return I().videoId});
return function(){return I().videoId?C:_.T(_.c4(!1,void 0,"Oaxwcf")).next().value}};
Q4H=function(I){var C=_.cj(X3Y,function(){return I().videoId});
return function(){return I().videoId?C:_.T(_.c4("ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN",void 0,"MsSpJc")).next().value}};
NgF=function(){return{}};
l6m=function(I){var C=I.backgroundLottieRef;var y=I.foregroundLottieRef;var k=I.children;var F=I.wrapperClass;I=I.disableAnimation;I=(_.V("web_animated_actions")||_.V("web_animated_actions_v2"))&&!I;return _.P("yt-animated-action",{class:_.sZ("animated-action__container",F)},_.P("div",{class:"animated-action__content-with-background"},_.H2(I,function(){return _.P(V8Y,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:{animationRef:C,animationConfig:{name:"animated-actions-background",
autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+(j4s()?"dark":"light")+"_v5.json"}}})}),k),_.H2(I,function(){return _.P(V8Y,{lottiePlayerProps:{animationRef:y,
animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(j4s()?"dark":"light")+"_v4.json"}}})}))};
V8Y=function(I){var C=I.wrapperClass;var y=I.lottieClass;I=I.lottiePlayerProps;return _.P("div",{class:_.yc("animated-action__lottie",C),"aria-hidden":"true"},_.P(tKm,{className:y,data:I}))};
j4s=function(){var I,C;return(C=(I=_.N().resolve(_.aU(_.AE)))==null?void 0:I())!=null?C:!1};
XGI=function(){var I,C;return(C=(I=_.N().resolve(_.aU(_.AE)))==null?void 0:I())!=null?C:!1};
RKF=function(I,C){I=I===void 0?$QK:I;switch(C.type){case "SET_IS_BOTTOM_SHEET_OPEN_STATE":return Object.assign({},I,{isOpen:C.payload});default:return I}};
YWm=function(I,C){I=I===void 0?bPY:I;switch(C.type){case "SET_CINEMATIC_SETTING_STATE":return Object.assign({},I,{isAllowed:C.payload});default:return I}};
f6O=function(I,C){I=I===void 0?Gcm:I;switch(C.type){case "SET_ERROR_MESSAGE_CREATE_PLAYLIST_STATE":return Object.assign({},I,{errorMessage:C.payload});case "SET_TITLE_CREATE_PLAYLIST_STATE":return Object.assign({},I,{title:C.payload});case "SET_PRIVACY_CREATE_PLAYLIST_STATE":return Object.assign({},I,{privacy:C.payload});case "SET_IS_DISABLED_CREATE_PLAYLIST_STATE":return Object.assign({},I,{isDisabled:C.payload});default:return I}};
KG9=function(I,C){I=I===void 0?SWO:I;switch(C.type){case "SET_IS_DRAWER_LAYOUT_OPEN_STATE":return Object.assign({},I,{isOpen:C.payload});default:return I}};
gDK=function(I,C){I=I===void 0?A1t:I;switch(C.type){case "SET_IS_FULLSCREEN_STATE":return Object.assign({},I,{isFullscreen:C.payload});case "SET_NAVIGATION_BUTTON":var y=C.payload.targetId,k=Object.assign({},I.navigationButtons);k[y]=C.payload.button;return Object.assign({},I,{navigationButtons:k});case "SET_TOP_PANEL_ID_STATE":return Object.assign({},I,{topPanelId:C.payload});case "SET_SECONDARY_HEADER":return y=C.payload.panelId,k=Object.assign({},I.secondaryHeader),k[y]=C.payload.secondaryHeader,
Object.assign({},I,{secondaryHeader:k});default:return I}};
xQF=function(){return iG(Object.assign({},{entities:o1W,voiceSearch:P_X,engagementPanel:gDK,bottomSheet:RKF,cinematicSetting:YWm,shorts:l4W,drawerLayout:KG9,createPlaylist:f6O,locationCollection:vDt,reportChannel:WGX,reportForm:dQs},XkI))};
qWI=function(I,C){return"https://www.gstatic.com/youtube/img/lottie/"+I+"/"+C+".json"};
mQY=function(I){return{lottiePlayerProps:{animationConfig:{name:I.name,path:qWI("custom_animated_like_icon",I.path),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:I.totalFrames,lazyLoad:!0}};
ZPW=function(I,C){_.b$.addLowPriorityJob(function(){var y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return _.aM(z,2),_.n(z,dPK(),4);case 4:return _.n(z,fetch(I),5);case 5:return y=z.yieldResult,_.n(z,y.json(),6);case 6:k=z.yieldResult;CE.set(I,k);requestAnimationFrame(function(){C(k)});
_.dC(z,0);break;case 2:F=_.sj(z),_.SN(F),_.oI(z)}})})};
BgH=function(I){var C={animationConfig:{},listeners:{}},y=function(){I(!0)};
C.listeners.data_failed=y;C.listeners.error=y;C.listeners.data_ready=function(){I(!1)};
return C};
ej=function(I){var C=I.model;var y=I.subscribed;var k=I.isOverlay;var F=I.element;var z=I.commandController;var c=I.notificationState;if(y){var r,w;var L=(C==null?void 0:(r=C.buttonStyle)==null?void 0:r.subscribedStateStyle)==="SUBSCRIBE_BUTTON_VIEW_MODEL_SUBSCRIBED_STATE_STYLE_DROPDOWN_COMPACT"?void 0:C==null?void 0:(w=C.unsubscribeButtonContent)==null?void 0:w.buttonText}else{var D;L=C==null?void 0:(D=C.subscribeButtonContent)==null?void 0:D.buttonText}a:{var p;switch(C==null?void 0:(p=C.buttonStyle)==
null?void 0:p.buttonSize){case "SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_XSMALL":r="S";break a;default:r="M"}}a:if(k)k="overlay";else switch(C.backgroundStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_FULLSCREEN_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY":case "SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_IMMERSIVE_OVERLAY_RED":k="overlay";break a;default:k="mono"}a:if(y)var Q="tonal";else switch((Q=C.buttonStyle)==
null?void 0:Q.unsubscribedStateStyle){case "SUBSCRIBE_BUTTON_VIEW_MODEL_UNSUBSCRIBED_STATE_STYLE_SECONDARY":Q="tonal";break a;default:Q="filled"}return{style:k,type:Q,state:C.disableSubscribeButton?"disabled":"active",size:r,focused:I.focused,toggled:y,accessibilityLabel:EDW(C,y,c),buttonText:L,iconPosition:C.disableNotificationBell?"none":"leading-trailing",onTap:hKH(C,y,F,z),disableTextEllipsis:!!I.disableTextEllipsis}};
hKH=function(I,C,y,k){return function(F){if(C){var z;var c=I.disableNotificationBell?_.Rj(I==null?void 0:(z=I.unsubscribeButtonContent)==null?void 0:z.onTapCommand):_.Rj(I==null?void 0:I.onShowSubscriptionOptions)}else{var r;c=_.Rj(I==null?void 0:(r=I.subscribeButtonContent)==null?void 0:r.onTapCommand)}c&&LE(c,{form:{element:y},commandController:k});F.stopPropagation()}};
EDW=function(I,C,y){if(C){if(I==null?0:I.disableNotificationBell){var k;return I==null?void 0:(k=I.unsubscribeButtonContent)==null?void 0:k.accessibilityText}switch(y){case "SUBSCRIPTION_NOTIFICATION_STATE_OCCASIONAL":var F;return I==null?void 0:(F=I.bellAccessibilityData)==null?void 0:F.occasionalLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":var z;return I==null?void 0:(z=I.bellAccessibilityData)==null?void 0:z.allLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":var c;return I==null?void 0:(c=
I.bellAccessibilityData)==null?void 0:c.offLabel;case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":var r;return I==null?void 0:(r=I.bellAccessibilityData)==null?void 0:r.disabledLabel;default:var w;return I==null?void 0:(w=I.unsubscribeButtonContent)==null?void 0:w.accessibilityText}}else{var L;return I==null?void 0:(L=I.subscribeButtonContent)==null?void 0:L.accessibilityText}};
rJ=function(I){if(!I)return null;switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":I="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":I="NOTIFICATIONS_OFF";break;default:I="NOTIFICATIONS_NONE"}return I};
UQz=function(I,C,y){y.subscribed!==C&&((y=y.key)&&_.qH(_.wJ("subscriptionStateEntity",y,{key:y,subscribed:C})),I.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:C})),C||_.Fe(I,"yt-unsubscribe-action"))};
t8O=function(I){I=_.l(_.Rj(I),_.nM);var C,y,k,F;return(F=_.l(I==null?void 0:(C=I.panelLoadingStrategy)==null?void 0:(y=C.inlineContent)==null?void 0:(k=y.sheetViewModel)==null?void 0:k.content,HPI))==null?void 0:F.listItems};
J1s=function(I,C){if(I.onShowSubscriptionOptions&&C&&(I=t8O(I.onShowSubscriptionOptions),I!=null&&I.length)){var y=rJ(C);I.forEach(function(k){k=_.l(k,_.Pj);var F,z,c,r,w=k==null?void 0:(F=k.leadingImage)==null?void 0:(z=F.sources)==null?void 0:(c=z[0])==null?void 0:(r=c.clientResource)==null?void 0:r.imageName;k&&w&&(k.isSelected=w===y)})}};
OPz=function(I,C,y,k){C&&y?I.style.width=y+"px":!C&&k&&(I.style.width=k+"px")};
a6F=function(I,C,y){var k;(k=I.lottieEl)==null||k.goToAndPlay(0);var F;(F=C.lottieEl)==null||F.goToAndPlay(0);_.LM(_.b$,function(){var z;(z=y.lottieEl)==null||z.goToAndPlay(0)},300)};
oNz=function(I){var C=_.Es(),y=_.Es(),k=_.Es(),F=_.yg(),z=_.yg(),c=_.yg(),r=_.N().resolve(M8F),w,L=(w=_.TU(_.CM,I.data.stateEntityStoreKey))!=null?w:void 0,D,p,Q,X=(Q=_.TU(GwI,(p=(D=I.data.notificationStateEntityStoreKeys)==null?void 0:D.subsNotificationStateKey)!=null?p:""))!=null?Q:void 0;w=!!I.data.disableNotificationBell;var b=!I.data.enableSubscribeButtonPostClickAnimation;D=_.T(Fi(0));var S=D.next().value,A=D.next().value;D=_.T(Fi(0));var x=D.next().value,B=D.next().value;D=_.T(Fi(!1));var t=
D.next().value,U=D.next().value;D=_.T(Fi(!1));var yW=D.next().value,a=D.next().value,cs=Gu(!1),XO=Gu("");D=_.T(Fi(!1));var Rm=D.next().value,$z=D.next().value,hX=function(){a(!0);_.LM(_.b$,function(){a(!1)},1500)};
$S(function(){yW&&!b&&L&&a6F(F,z,c)},[yW]);
$S(function(){!b&&L&&(I.animateWidth&&OPz(C.value,!!L.subscribed,S,x),L.subscribed&&L.key===XO.value&&hX(),L.key&&(XO.value=L.key))},[L==null?void 0:L.subscribed,
L==null?void 0:L.key]);var vs=bh(function(){var Rw=I.data,ku=!(L==null||!L.subscribed),xK=!!I.isOverlay,yf=t?C.value:void 0,uK=X==null?void 0:X.state;J1s(Rw,uK);return ej({model:Rw,subscribed:ku,isOverlay:xK,element:yf,notificationState:uK,disableTextEllipsis:!0,focused:Rm})},[I.data,
L,X,Rm,I.isOverlay,t]),mY=function(){var Rw=_.N().resolve(_.aU(_.Du));Rw&&$z(Rw.isKeyBoardInUse())},Bs=function(){$z(!1)};
WdX(C,function(Rw){n5();L&&(Rw.detail.endpoint.subscribeEndpoint||Rw.detail.endpoint.unsubscribeEndpoint)&&UQz(C.value,!L.subscribed,L)});
_.BH("yt-player-subscribe",function(Rw){L&&Rw===I.data.channelId&&UQz(C.value,!0,L)});
_.BH("yt-player-unsubscribe",function(Rw){L&&Rw===I.data.channelId&&UQz(C.value,!1,L)});
_.BH("yt-update-subscribe-button-action",function(Rw){Rw=_.l(Rw,IT9);L&&Rw&&Rw.channelId===I.data.channelId&&UQz(C.value,!!Rw.subscribed,L)});
_.RU(function(){C.value&&(C.value.addEventListener("focusin",mY),C.value.addEventListener("focusout",Bs));_.NU(_.b$,function(){n5()});
U(!0);return function(){C.value&&(C.value.removeEventListener("focusin",mY),C.value.removeEventListener("focusout",Bs))}});
var n5=function(){if(!b&&I.animateWidth&&(y==null?0:y.value)&&(k==null?0:k.value)&&!cs.value){var Rw=_.T((L==null?0:L.subscribed)?[y,k]:[k,y]),ku=Rw.next().value;Rw=Rw.next().value;ku=Math.ceil(ku.value.getBoundingClientRect().width);Rw=Math.ceil(Rw.value.getBoundingClientRect().width);A(ku);B(Rw);OPz(C.value,!(L==null||!L.subscribed),ku,Rw);cs.value=!0}},sH=function(){var Rw=rJ(X==null?void 0:X.state);
return b||Rw!=="NOTIFICATIONS_NONE"?function(){return r(Rw)}:function(){W9(Cys)({animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:c})}};
D=function(){var Rw=rJ(X==null?void 0:X.state);return b||Rw!=="NOTIFICATIONS_NONE"?function(){return _.P(_.ez,{icon:Rw!=null?Rw:void 0})}:function(){return _.P(Cys,{animatedIconType:"NOTIFICATION_BELL",
active:!1,animationRef:c})}};
var Zt=!(L==null||!L.subscribed)&&!w&&!(X==null||!X.state),Qd=!(L==null?0:L.subscribed),OF=Qd&&!w&&!(X==null||!X.state);w={};p={};return _.P("yt-subscribe-button-view-model",{class:_.yc("yt-subscribe-button-view-model-wiz",(w["yt-subscribe-button-view-model-wiz__can-animate-width"]=!(L==null||!L.subscribed)&&I.animateWidth&&yW,w["yt-subscribe-button-view-model-wiz--hidden"]=!(L==null?0:L.subscribed)&&I.data.hideWhenUnsubscribed,w)),el:C},_.P(s39,{backgroundLottieRef:F,foregroundLottieRef:z,wrapperClass:_.yc("yt-subscribe-button-view-model-wiz__animated-action-wrapper",
(p["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=I.animateWidth&&yW,p["yt-subscribe-button-view-model-wiz__static-width"]=!I.animateWidth,p)),disableAnimation:b},_.P("div",{el:y,class:_.yc("yt-subscribe-button-view-model-wiz__container"),idomKey:I.data.channelId},_.V("web_wiz_button_shape")?_.P(XbO,{data:vs,icon:Zt?D():void 0,secondaryIcon:Zt?function(){return _.P(_.ez,{icon:"EXPAND"})}:void 0}):_.P(Us,null,function(){f5K(vs,Zt?sH():void 0,Zt?function(){return r("EXPAND")}:
void 0)}))),_.P("div",{el:k,
class:"yt-subscribe-button-view-model-wiz__invisible"},!I.animateWidth||b||cs.value?null:_.V("web_wiz_button_shape")?_.P(XbO,{data:ej({model:I.data,subscribed:Qd,isOverlay:!!I.isOverlay,element:C.value,disableTextEllipsis:!0}),icon:OF?function(){var Rw;return _.P(_.ez,{icon:(Rw=rJ(X==null?void 0:X.state))!=null?Rw:void 0})}:void 0,
secondaryIcon:OF?function(){return _.P(_.ez,{icon:"EXPAND"})}:void 0}):_.P(Us,null,function(){f5K(ej({model:I.data,
subscribed:Qd,isOverlay:!!I.isOverlay,element:C.value,disableTextEllipsis:!0}),OF?function(){return r(rJ(X==null?void 0:X.state))}:function(){},OF?function(){return r("EXPAND")}:void 0)})))};
y6s=function(I){if(I){switch(I){case "SUBSCRIPTION_NOTIFICATION_STATE_ALL":I="NOTIFICATIONS_ACTIVE";break;case "SUBSCRIPTION_NOTIFICATION_STATE_OFF":case "SUBSCRIPTION_NOTIFICATION_STATE_DISABLED":I="NOTIFICATIONS_OFF";break;default:I="NOTIFICATIONS_NONE"}return I}};
kSW=function(I,C,y){y.subscribed!==C&&((y=y.key)&&_.qH(_.wJ("subscriptionStateEntity",y,{key:y,subscribed:C})),I.dispatchEvent(new CustomEvent("yt-subscription-changed",{bubbles:!0,detail:C})),C||_.Fe(I,"yt-unsubscribe-action"))};
FmY=function(I){I=_.l(_.Rj(I),_.nM);var C,y,k,F;return(F=_.l(I==null?void 0:(C=I.panelLoadingStrategy)==null?void 0:(y=C.inlineContent)==null?void 0:(k=y.sheetViewModel)==null?void 0:k.content,HPI))==null?void 0:F.listItems};
urW=function(I,C){if(I.onShowSubscriptionOptions&&C&&(I=FmY(I.onShowSubscriptionOptions),I!=null&&I.length)){var y=y6s(C);I.forEach(function(k){k=_.l(k,_.Pj);var F,z,c,r,w=k==null?void 0:(F=k.leadingImage)==null?void 0:(z=F.sources)==null?void 0:(c=z[0])==null?void 0:(r=c.clientResource)==null?void 0:r.imageName;k&&w&&(k.isSelected=w===y)})}};
zn9=function(I,C,y,k){C&&y?I.style.width=y+"px":!C&&k&&(I.style.width=k+"px")};
TMm=function(I,C,y){var k;(k=I.lottieEl)==null||k.goToAndPlay(0);var F;(F=C.lottieEl)==null||F.goToAndPlay(0);_.LM(_.b$,function(){var z;(z=y.lottieEl)==null||z.goToAndPlay(0)},300)};
pM=function(){return _.N().resolve(_.aU(c6s))||{}};
enX=function(I){return typeof I==="function"};
_.Qg=function(I){Object.keys(I);var C=function(y,k){var F=C.mapping||I;if(!y)return _.P(_.aF,null);if(Array.isArray(y)&&(y=r6F(F,C,y),Array.isArray(y))){if(!y.length)return _.P(_.aF,null);if(y.length>1){for(var z=!1,c=!1,r=[],w={},L=0;L<y.length;w={data$jscomp$1829:void 0},L++)if(w.data$jscomp$1829=y[L],w.data$jscomp$1829){var D=iCH(w.data$jscomp$1829,F),p=D.mappingEntry;D=D.rendererName;p&&D&&(p&&(!enX(p)&&wXm(p)&&(c=!0),!enX(p)&&p.asyncId||(z=!0)),r.push(nNz(w.data$jscomp$1829,p,D,C,k)))}return c&&
!z?_.P(_.aF,null,Pym()):_.P(_.aF,null,r)}y=y[0]}if(!y)return _.P(_.aF,null);y=r6F(F,C,[y])[0];if(!y)return _.P(_.aF,null);z=iCH(y,F);F=z.mappingEntry;z=z.rendererName;return F&&z?_.P(_.aF,null,nNz(y,F,z,C,k)):_.P(_.aF,null)};
C.mapping=I;return C};
_.Lmm=function(I){var C=void 0,y;for(y in I)if(I.hasOwnProperty(y)){C=y;break}return C};
r6F=function(I,C,y){var k,F=(k=pM().preProcessOptions)==null?void 0:k.idomOptions;if(!F)return y;pM();return F.preProcessPropsIdom(I,y,C.triggerRerender)};
iCH=function(I,C){return(I=_.Lmm(I))?{mappingEntry:C[I],rendererName:I}:{mappingEntry:void 0,rendererName:void 0}};
nNz=function(I,C,y,k,F){if(!C)return _.P(_.aF,null);var z={};F&&F[y]&&(z=Object.assign({},F[y]));I[y]!==void 0&&(z.data=I[y]);if(enX(C))return C.debugName||(C.debugName=y),_.P(C,z);C.asyncId&&(k.pendingIdsMap=k.pendingIdsMap||{},k.pendingIdsMap[y]=C.asyncId);return C.templateFn?C.templateFn(z):wXm(C)?Pym():_.P(_.aF,null)};
wXm=function(I){var C;return(C=I.showPlaceholder)!=null?C:pM().defaultShowPlaceholder};
Pym=function(){var I=pM().placeholder;return I()};
DwI=function(I,C){C=C===void 0?{shouldPersist:!0}:C;return{useUpdatableData:function(y,k){var F=[],z=_.T(_.TN(function(){var L=y();if(k!=null&&k.length&&F){var D=F.length>0;for(var p=!1,Q=0;Q<k.length;Q++){var X=k[Q]();D&&X!==F[Q]&&(p=!0);F[Q]=X}D=p}else D=!1;if(D)_.Nl.remove(w());else if(D=_.Nl.get(w()))return D;return L})),c=z.next().value,r=z.next().value,w=_.P4(function(){return I(y())},void 0,"VFraLb");
_.l0(function(){if(w()!=null){Vg.set(w(),[c,r,!1]);var L=w();_.$4(function(){Vg.delete(L)})}});
return[c,function(L){r(L);C.shouldPersist&&_.Nl.set(w(),L)}]},
getData:function(y){var k;return(k=Vg.get(I(y)))==null?void 0:k[0]()},
updateData:function(y,k){y=I(y);var F=Vg.get(y);if(!F)return!1;var z=_.T(F);F=z.next().value;z=z.next().value;k=k(F());z(k);C.shouldPersist&&_.Nl.set(y,k);return!0},
useUpdatableDataIdom:function(y,k){var F=I(y),z=_.Nl.get(F),c=_.T(Fi(z!=null?z:y)),r=c.next().value,w=c.next().value,L=Gu(z!=null?z:y);$S(function(){if(F!=null)return Vg.set(F,[function(){return L.value},
function(D){w(D);L.value=D},
Vg.has(F)]),_.b$.addJob(function(){_.jj(_.b$,function(){var D=Vg.get(F);D&&(D[2]=!1)},0)},8),function(){var D;
((D=Vg.get(F))==null?0:D[2])||Vg.delete(F)}},[F]);
$S(function(){r!==y&&(w(y),L.value=y)},k?[].concat(_.Py(k),[F]):[F]);
return[r,w]}}};
pXH=function(I){var C=_.T(_.c4(!0,void 0,"bKtO6d")),y=C.next().value;C.next();return function(){var k=eR(I.children());return _.P(_.Dx,{cond:y,then:function(){return k},
else:I.fallback})}()};
_.lY=function(I){var C=Q3t(I),y=C.data,k=C.mapping,F=C.wrapper;C=C.pendingFallback;var z=function(){return NMI(_.b0(y))},c=function(){var r=z(),w=[];
r=_.T(r);for(var L=r.next();!L.done;L=r.next()){var D=void 0;L=L.value;var p=void 0;for(D in L)if(!(!L).hasOwnProperty(D)){p=D;break}(D=p)&&w.push(D)}return w};
return I.data?_.P(pXH,{fallback:C},function(){return _.P(_.pH,{each:c},function(r,w){var L=F?function(p){return F(function(){return k[r](p,w)},D,w)}:function(p){return k[r](p,w)};
L.debugName||(L.debugName=String(r));if(!k[String(r)])return document.createComment("");var D=VTm(z,r,w);return _.P(L,{data:D})})}):_.P(_.aF,null)};
Q3t=function(I){var C=I.targetId||j3H(I.children);if(!I.data||!C||_.V("mweb_new_replaceables_killswitch"))return Object.assign({},I,{mapping:I.children,wrapper:void 0});var y="stamper-"+lTW++,k=function(){var r;return(r=_.b0(I.targetId))!=null?r:y};
C=_.T(XXO(function(){var r=NMI(I.data());r.targetId=k;return r})).next().value;
var F=Object.assign({},pM().replaceableMapping,I.children);if(I.replacementWrapper){var z=F.notificationTextRenderer,c=F.notificationMultiActionRenderer;z&&(F.notificationTextRenderer=function(r,w){return I.replacementWrapper(z({data:r.data},w))});
c&&(F.notificationMultiActionRenderer=function(r,w){return I.replacementWrapper(c({data:r.data},w))})}return Object.assign({},I,{data:C,
mapping:F,wrapper:function(r,w,L){return NL9({targetId:k,stamperIndex:L},r)}})};
VTm=function(I,C,y){var k;return _.P4(function(){var F=I()[y()];if(F)k=F[C];else return _.SN(new _.ph("Stamper failed to find "+String(C)+" at index "+y()+" of data array of length "+(I().length+" (b/365643359). Did you access a signal after a component has been cleaned up?"))),k;return F[C]},void 0,"DHuMIe")};
j3H=function(I){I=_.T(Object.keys(I));for(var C=I.next();!C.done;C=I.next())if(C=C.value,$wW.includes(C)||RnX.includes(C)||bCz.includes(C))return!0;return!1};
NMI=function(I){return I?Array.isArray(I)?I:[I]:[]};
YkY=function(I){I=_.l(I,_.Xi);return(I==null?void 0:I.iconName)&&!(I==null?0:I.title)};
Sk9=function(I,C,y){var k;return _.P(_.aF,null,I==null?void 0:(k=I.actions)==null?void 0:k.map(function(F){return _.P("div",{class:function(){var z={"yt-flexible-actions-view-model-wiz__action":!0};z["yt-flexible-actions-view-model-wiz__action--row-action"]=C;z["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1;if(YkY(F))var c=!0;else if(c=_.l(F,_.$A),(c==null?0:c.isToggled)&&YkY(c==null?void 0:c.toggledButtonViewModel)||(c==null||!c.isToggled)&&YkY(c==null?void 0:c.defaultButtonViewModel))c=
!0;else{var r;c=((r=_.l(F,GSF))==null?0:r.playlistId)?!0:!1}z=(z["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=c,z["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=y,z);return _.yc(z)}},fT9([F],{subscribeButtonViewModel:{isOverlay:!1,
animateWidth:!C}}))}))};
Kmt=function(I){var C=I.layout===1,y,k=((y=I.data)==null?void 0:y.style)==="FLEXIBLE_ACTIONS_STYLE_SCROLLING";y={};k=(y["yt-flexible-actions-view-model-wiz"]=!0,y["yt-flexible-actions-view-model-wiz--inline"]=!C,y["yt-flexible-actions-view-model-wiz--scrollable"]=k,y);var F,z;return _.P("yt-flexible-actions-view-model",{class:_.yc(I.className,k)},(F=I.data)==null?void 0:(z=F.actionsRows)==null?void 0:z.map(function(c){if(C){var r;return _.P("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},
Sk9(c,C,!((r=I.data)==null||!r.respectActionIntrinsicWidth)))}return Sk9(c,C,!1)}))};
A6W=function(I){return!(I==null||!I.iconName||(I==null?0:I.title))};
gNH=function(I){var C=_.l(I.data.toggleButtonViewModel,_.$A),y,k=(y=I.data.dislikeEntityKey)!=null?y:"",F=_.TU($s,k);C=Object.assign({},C,{isToggled:F?F.likeStatus==="DISLIKE":C.isToggled});return _.P("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.P(_.RY,{data:C,buttonShapeOverrides:I.buttonShapeOverrideables,onToggle:function(z){F&&z!==(F.likeStatus==="DISLIKE")&&F.key&&_.qH(_.bY("likeStatusEntity",F.key,{likeStatus:z?"DISLIKE":"INDIFFERENT",hadUserInteraction:z}))}}))};
WmY=function(I){var C=_.V("web_supports_animations_api"),y=_.l(I.data.toggleButtonViewModel,_.$A),k,F,z,c,r=_.T(Fi({numberText:(c=(k=I.likeCountEntity)==null?void 0:(F=k.likeCountIfIndifferent)==null?void 0:F.content)!=null?c:"",numberValue:Number((z=I.likeCountEntity)==null?void 0:z.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!1})),w=r.next().value,L=r.next().value,D,p,Q,X;k=_.T(Fi({numberText:(X=(D=I.likeCountEntity)==null?void 0:(p=D.likeCountIfLiked)==null?void 0:p.content)!=null?
X:"",numberValue:Number((Q=I.likeCountEntity)==null?void 0:Q.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!1}));D=k.next().value;var b=k.next().value;p=_.T(Fi(void 0));var S=p.next().value,A=p.next().value,x;p=(x=I.data.likeStatusEntityKey)!=null?x:"";var B,t;x=(t=(B=I.likeCountEntity)==null?void 0:B.key)!=null?t:"";var U=_.TU($s,p),yW=_.TU(TzH,x);B=bh(function(){return(U==null?void 0:U.likeStatus)==="LIKE"},[U]);
$S(function(){var a,cs=yW&&((a=yW.likeCountIfIndifferent)==null?void 0:a.content)!==w.numberText;if(!S&&cs){var XO,Rm;L({numberText:(Rm=yW==null?void 0:(XO=yW.likeCountIfIndifferent)==null?void 0:XO.content)!=null?Rm:"",numberValue:Number(yW==null?void 0:yW.likeCountIfIndifferentNumber),heightPx:36,shouldAnimate:!0});var $z,hX;b({numberText:(hX=yW==null?void 0:($z=yW.likeCountIfLiked)==null?void 0:$z.content)!=null?hX:"",numberValue:Number(yW==null?void 0:yW.likeCountIfLikedNumber),heightPx:36,shouldAnimate:!0})}},
[yW]);
y=Object.assign({},y,{isToggled:B});C=C&&I.likeCountEntity;return _.P("like-button-view-model",{class:"ytLikeButtonViewModelHost"},_.P(_.RY,{data:y,buttonShapeOverrides:I.buttonShapeOverrideables,animatedTextPropsDefault:C?w:void 0,animatedTextPropsToggled:C?D:void 0,onToggle:function(a){vN9(a,U,S,A)},
style:function(){return I.disableIconAnimation?void 0:{animateIcon:"true"}}}))};
vN9=function(I,C,y,k){y&&_.b$.cancelJob(y);y=_.b$.addLowPriorityJob(function(){k(void 0)},5E3);
k(y);C&&I!==(C.likeStatus==="LIKE")&&C.key&&_.qH(_.wJ("likeStatusEntity",C.key,{key:C.key,likeStatus:I?"LIKE":"INDIFFERENT",hadUserInteraction:I}))};
ZCF=function(I){var C,y=_.l((C=I.data)==null?void 0:C.likeButtonViewModel,dw9),k;C=_.l((k=I.data)==null?void 0:k.dislikeButtonViewModel,xwz);var F,z=(F=_.TU($s,(y==null?void 0:y.likeStatusEntityKey)||""))!=null?F:y==null?void 0:y.likeStatusEntity;k=bh(function(){var c=I.data,r;c=(c==null?void 0:(r=c.timedAnimationData)==null?void 0:r.animationTiming)||[];return{uniqueId:"like-dislike",timings:c,enabled:(z==null?void 0:z.likeStatus)==="INDIFFERENT"&&c.length>0,experimentEnabled:c.length>0}},[I.data,
z]);return _.P("segmented-like-dislike-button-view-model",{class:_.yc(I.className,"ytSegmentedLikeDislikeButtonViewModelHost"),"button-renderer":!0},_.P(_.qkH,{settings:k},_.P("div",{class:"ytSegmentedLikeDislikeButtonViewModelSegmentedButtonsWrapper"},y?_.P(WmY,{data:y,likeCountEntity:I.data.likeCountEntity,buttonShapeOverrideables:{segmentedPosition:"start"}}):null,C?_.P(mwH,{data:C,buttonShapeOverrideables:{iconPosition:"icon-only",segmentedPosition:"end"}}):null)))};
BMs=function(I,C){var y=t7(I)||{layerNode:C};y.layerNode=C;l9z(I,y);I.getScreenLayer=function(){return YA(y.layerNode)}};
ENK=function(I){var C;I=I.parentNode;for(var y;I&&((C=t7(I))==null||!C.isRenderer)&&!((y=I.polymerController)!=null?y:I).isRenderer_;)I=I.parentNode||I.host;if(C=I)return t7(C)};
hnI=function(I){if(I){HQ.delete(I);var C=_.N().resolve(Os);gW9(I,C)}};
HCz=function(I,C,y){if(y===void 0?0:y){if(y=I.getAttribute("client-ve-type"),C.data&&!C.disableReactiveLogging||y)_.X$(function(){UwI(I,_.b0(C.data))}),_.$4(function(){return void hnI(I)})}else typeof C.data!=="function"&&UwI(I,C.data)};
UwI=function(I,C){tTF++;J6H(I,C)&&_.b$.addJob(function(){_.jj(_.b$,function(){if(J6H(I,C)&&I.ownerDocument.documentElement===document.documentElement&&I){var y;if(I.getAttribute("layer")){var k=y=Number(I.getAttribute("layer")),F=t7(I);F?F.layerNode.layer=k:BMs(I,new OCm(k));(k=ENK(I))&&(F=t7(I))!=null&&(F.layerNode.parent=k.layerNode)}else if(y=t7(I))y=YA(y.layerNode);else{y=YA;k=new OCm;if(F=ENK(I))k.parent=F.layerNode;BMs(I,k);y=y(k)}y!=null||(y=0);k=I.getAttribute("client-ve-type");F=Number(k);
var z=!1;k=!1;var c=t7(I),r;if((r=c)&&!(r=c[GU]!==C)&&(r=F)){var w;r=((w=HQ.get(I))==null?void 0:w.clientVeType)===void 0}r&&(c[GU]=C,z=k=c.isRenderer=!0);HQ.has(I)&&(HQ.get(I).clientVeType=F);I.visualElement&&(k=!0);(w=C==null?void 0:C.loggingDirectives)&&w.clientVeSpec&&(c=aTz(_.Tp(),I),w=_.MTK(_.e2(),w,c||void 0,y))&&(I.visualElement=w);!I.visualElement&&F&&z&&(I.veType=F,w=void 0,_.V("wiz_next_client_ve_parent_fix")&&(w=aTz(_.Tp(),I)),w=_.c9(_.e2(),I,w,y),I.visualElement=w);k&&(w=_.N().resolve(Os),
x5H(I,{data:C,observer:w,layer:y,showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}}))}},0)},8)};
J6H=function(I,C){return(C==null?0:C.trackingParams)||(C==null?0:C.loggingDirectives)||_.l(C==null?void 0:C.rendererContext,_.qEK)||I.getAttribute("client-ve-type")?!0:!1};
CJX=function(I){return _.V("cow_logging_in_component_wrapper")?function(C){HCz(C,I,!0)}:IcX};
IcX=function(){};
_.sgF=function(I,C){return _.cg(I.entities,"accountLinkStatusEntity",C)};
oLm=function(I,C){return _.cg(I.entities,"hatsSurveyEntity",C)};
yrO=function(I,C){return _.cg(I.entities,"hatsSurveyStateEntity",C)};
kFF=function(I,C){return _.cg(I.entities,"quantityIncrementerEntity",C)};
crO=function(I){var C=I.data;var y=I.className===void 0?"":I.className;var k=I.setMinWidth;I=I.forceIconOnly;var F=_.Es(CJX({data:C}));k=k?"ytwAccountLinkButtonViewModelHostMinWidth":"";var z=_.cj(_.sgF,function(){var p;return(p=_.b0(C).accountLinkStatusEntityKey)!=null?p:""}),c=_.cj(_.sgF,function(){var p;
return(p=_.b0(C).accountLinkStatusSecondaryEntityKey)!=null?p:""}),r=function(){if(!_.V("web_account_link_secondary_killswitch")){var p,Q;
return((p=z())==null?void 0:p.linked)||((Q=c())==null?void 0:Q.linked)}var X;return(X=z())==null?void 0:X.linked};
_.l0(function(){var p=z();if(p){var Q=F5X(new utz,z_9(new TZW,!!p.linked));_.sG().then(function(X){X&&(X.setAccountLinkState(_.HR(Q.JSC$9942_serializeBinary(),4)),X.updateAccountLinkingConfig(!!p.linked))})}});
var w=function(){return _.l(_.b0(C).toggleButtonViewModel,_.$A)};
_.BH("yt-signal-action-show-account-link-dialog",function(){if(w()){var p=r()?w().toggledButtonViewModel:w().defaultButtonViewModel;p=_.l(p,_.Xi);var Q;if((Q=z())==null?0:Q.isWarning){Q=_.l(_.b0(C).warningButtonViewModel,_.Xi);if(!Q){_.xS(Error("Ah"));return}p=Q}var X;(Q=_.Rj((X=p)==null?void 0:X.onTap))&&_.iW([Q],F.value)}else _.xS(Error("Bh"))});
var L=function(){var p=w();return Object.assign({},p,{isToggled:r()})},D=I?{iconPosition:"icon-only"}:{};
return _.P("account-link-button-view-model",{class:_.sZ("ytwAccountLinkButtonViewModelHost",function(){return _.b0(y)},k),
el:F,"button-renderer":!0},_.P("div",null,_.P(_.Dx,{cond:function(){var p;if((p=z())==null?0:p.isWarning)return(p=_.l(_.b0(C).warningButtonViewModel,_.Xi))||_.xS(Error("Ah")),p},
then:function(p){return _.P(_.fM,{data:p,buttonOverrides:D})},
else:function(){return _.P(_.RY,{data:L,buttonShapeOverrides:D})}})))};
e_F=function(I){switch(I){case "BADGE_STYLE_TYPE_MEMBERS_ONLY":return 8;case "BADGE_STYLE_TYPE_PREMIUM":return 5;case "BADGE_STYLE_TYPE_SIMPLE":return 0;case "BADGE_STYLE_TYPE_AD":return 2;default:return 0}};
rrs=function(I){switch(I){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}};
i4I=function(I){switch(I){case 2:return"badge-shape-wiz--ad";case 1:return"badge-shape-wiz--media";case 3:return"badge-shape-wiz--promoted";case 4:return"badge-shape-wiz--timely";case 5:return"badge-shape-wiz--premium";case 6:return"badge-shape-wiz--sale";case 7:return"badge-shape-wiz--membership";case 8:return"badge-shape-wiz--commerce";case 10:return"badge-shape-wiz--live";case 11:return"badge-shape-wiz--status-new";case 12:return"badge-shape-wiz--status-complete";case 13:return"badge-shape-wiz--status-warning";
case 14:return"badge-shape-wiz--status-error";case 15:return"badge-shape-wiz--status-default";case 16:return"badge-shape-wiz--thumbnail-default";case 17:return"badge-shape-wiz--thumbnail-live";case 18:return"badge-shape-wiz--thumbnail-special";default:return"badge-shape-wiz--default"}};
_.nLX=function(I){var C=_.s8("web_generic_client_event_wait_period ",0);C||(C=3E5);var y=wUm.get(I);!_.V("enable_web_client_experiment_event_timeout_killswitch")&&y&&(0,_.JY)()-y<C||(wUm.set(I,(0,_.JY)()),_.b2("genericClientExperimentEvent",{eventType:I}))};
DWI=function(I){var C=I.data;var y=I.children;var k=PJm(C),F=(C==null?0:C.thumbnailSize)?C.thumbnailSize:"medium";I=!(C==null||!C.doubleStack);var z=!(C==null||!C.experimentEnabled),c={},r=(c["collections-stack-wiz__collection-stack1"]=!0,c[L5Y(F)]=!0,c);if(C==null?0:C.customClassName1stStack)r[C.customClassName1stStack]=!0;F={};var w=(F["collections-stack-wiz__collection-stack2"]=I,F["collections-stack-wiz__collection-stack2--responsive-mode"]=C==null?void 0:C.enableResponsiveMode,F);if(C==null?
0:C.customClassName2ndStack)w[C.customClassName2ndStack]=!0;return _.P("yt-collections-stack",{class:"collections-stack-wiz",hidden:!z},_.H2(C,function(){return _.P("div",null,_.H2(C.doubleStack,function(){return _.P("div",{class:_.yc(w),style:"background-color:"+k})}),_.P("div",{class:_.yc(r),
style:"background-color:"+k}),y)}))};
L5Y=function(I){switch(I){case "small":return"collections-stack-wiz__collection-stack1--small";case "medium":return"collections-stack-wiz__collection-stack1--medium";case "large":return"collections-stack-wiz__collection-stack1--large";default:return""}};
PJm=function(I){if(!I)return"";var C,y=(C=_.N().resolve(_.aU(_.AE)))==null?void 0:C(),k;if(!y&&((k=I.vibrantColorPalette)==null?0:k.iconInactiveColor))return $k(I.vibrantColorPalette.iconInactiveColor,"1");var F;return y&&((F=I.darkColorPalette)==null?0:F.iconInactiveColor)?$k(I.darkColorPalette.iconInactiveColor,"1"):I.color?$k(I.color,"1"):I.sampledThumbnailColor?(I=I.sampledThumbnailColor,"rgba("+I.red+","+I.green+","+I.blue+");"):""};
_.Sj=function(I,C){if(!I.includes("DATE_PLACEHOLDER"))return I;var y=new Date(0);y.setUTCSeconds(C);return I.replace("DATE_PLACEHOLDER",pUW(y))};
_.KM=function(I){I=_.Qgz(I);return _.V("web_watch_enable_single_column_grid_view")?I:!1};
_.Qgz=function(I){return I.watch.isWatchNarrowWidth};
NZX=function(I,C,y){return function(k){var F=I.command;F&&(LE(F,{form:{element:y}}),C([F],k))}};
jgO=function(I,C,y,k,F){return function(z){var c=VxI(I,y);c&&LE(c,{form:{element:k},commandController:F});C&&C.stopPropagation&&z.stopPropagation()}};
VxI=function(I,C){if(I.signInEndpoint&&!_.V("web_subscribe_sign_in_endpoint_killswitch"))return I.signInEndpoint;if(C){if(I.serviceEndpoints)return I.serviceEndpoints[1];if(I.onUnsubscribeEndpoints)return I.onUnsubscribeEndpoints[0]}else{if(I.serviceEndpoints)return I.serviceEndpoints[0];if(I.onSubscribeEndpoints)return I.onSubscribeEndpoints[0]}};
lcH=function(I,C){var y,k,F,z;C=C&&((y=I.unsubscribeAccessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)||((F=I.subscribeAccessibility)==null?void 0:(z=F.accessibilityData)==null?void 0:z.label);return I.longSubscriberCountText?[C,_.hS(I.longSubscriberCountText)].filter(function(c){return c}).join(" "):C};
A9=function(I,C){return C||(I==null?0:I.isChannelDelegate)?"disabled":"active"};
XUY=function(I,C){var y;switch((y=I.style)==null?void 0:y.styleType){case "COMPACT_GRAY":return{style:"mono",type:"tonal",state:A9(I)};case "MEDIUM_GRAY":return{style:"mono",type:"tonal",state:A9(I)};case "VISIBLY_DISABLED":return{style:"mono",type:"text",state:A9(I,!0)};case "OVERLAY":return C?{style:"overlay",type:"tonal",state:A9(I)}:{style:"overlay",type:"filled",state:A9(I)};default:return C?{style:"mono",type:"tonal",state:A9(I)}:{style:"mono",type:"filled",state:A9(I)}}};
$Wt=function(I,C){var y=I.map(function(k){return k.toString()});
return _.uk(function(k){if(y.includes(k.key)){C&&k.preventDefault();var F;(F=k.currentTarget)==null||F.click()}})};
_.gJ=function(){return $Wt(["Enter"])};
_.R_m=function(){return $Wt(["Enter"," "],!0)};
_.vj=function(I){if(I.composedPath)return I.composedPath();if(!I.__composedPath){for(var C=[],y=I.target;y;)C.push(y),y=y.parentNode;C.push(window);I.__composedPath=C}return I.__composedPath};
_.b49=function(I,C,y){I=_.T(I);for(var k=I.next();!k.done;k=I.next()){k=k.value;if(k===C)break;for(var F=_.T(y),z=F.next();!z.done;z=F.next())if(z=z.value,k.tagName===z||k.role==="button"&&z==="BUTTON")return!0}return!1};
GFm=function(I,C){var y,k=(y=C.observer)!=null?y:_.N().resolve(Os);if(I){y=YgW(I);var F=[];C.showOption&&F.push(k.observe(I,function(){C.visibilityCallback(!0)},C.showOption));
C.hideOption&&F.push(k.observe(I,function(){C.visibilityCallback(!1)},C.hideOption));
C.prescanOption&&C.prescanCallback&&F.push(k.observe(I,function(){C.prescanCallback()},C.prescanOption));
var z;y.visibilityMonitorKeys=((z=y.visibilityMonitorKeys)!=null?z:[]).concat(F)}};
YgW=function(I){var C;return(C=I.polymerController)!=null?C:I};
_.dJ=function(I){return!!_.Wj(I)};
_.xA=function(I,C){var y=V$W();$S(function(){var k=I.value;if(k)return fc9(k,C),Sgz(k,C,void 0,void 0,void 0,y)},[C])};
_.ql=function(I,C,y,k,F,z){var c=V$W();_.l0(function(){var r=I.value;r&&(fc9(r,C(),z),r=Sgz(r,C(),y,k,F,c),_.$4(r))})};
fc9=function(I,C,y){var k=K5I(C),F=ArI(C);C=k&&gLs;var z=F&&vLY;(k||F)&&GFm(I,{visibilityCallback:function(c){var r=_.N().resolve(_.ID);c&&k?r.resolveCommand(k,{form:{element:y?I:void 0},disableClickTracking:!0}):!c&&F&&r.resolveCommand(F,{form:{element:y?I:void 0},disableClickTracking:!0})},
showOption:C,hideOption:z})};
Sgz=function(I,C,y,k,F,z){var c=new Map;if(C=_.Wj(C)){var r;I=(k==null?void 0:(r=k.onTap)==null?void 0:r.value)||I;y=W5t(C,I,y==null?void 0:y.onTap,F,z);I.addEventListener("click",y);c.set("click",y)}return function(){for(var w=_.T(c),L=w.next();!L.done;L=w.next()){var D=_.T(L.value);L=D.next().value;D=D.next().value;I.removeEventListener(L,D)}}};
_.Wj=function(I){var C;return(I=(C=_.l(I,dWm))==null?void 0:C.onTap)&&_.Rj(I)};
K5I=function(I){var C;return(I=(C=_.l(I,dWm))==null?void 0:C.onVisible)&&_.Rj(I)};
ArI=function(I){var C;return(I=(C=_.l(I,dWm))==null?void 0:C.onHidden)&&_.Rj(I)};
W5t=function(I,C,y,k,F){var z=function(r){_.N().resolve(_.ID).resolveCommand(I,r)},c=function(r){k&&_.b49(_.vj(r),C,k)||z(r.target?{form:{element:r.target,
sourceData:I,mutationContext:F}}:void 0)};
y&&(c=function(r){y(r,z)});
return c};
xWz=function(I){var C=I.data;var y=I.className;I=I.alwaysShow;var k=_.Es();_.xA(k,C.rendererContext);a:switch(C.style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var F="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:F="ytThumbnailHoverOverlayViewModelStyleCover"}F=_.yc("ytThumbnailHoverOverlayViewModelScrim",F);var z,c=(z=_.l(C==null?void 0:C.rendererContext,_.mO))==null?void 0:z.label,r=_.Wj(C.rendererContext)!==void 0;z=r?"button":void 0;r=r?0:void 0;var w=_.R_m(),L={};return _.P("thumbnail-hover-overlay-view-model",
{el:k,class:_.yc("ytThumbnailHoverOverlayViewModelHost",y,(L.ytThumbnailHoverOverlayViewModelHostForceHover=I,L)),"aria-label":c,role:z,tabindex:r,"on:keypress":w},_.P("div",{class:F},C.icon?_.P(_.x$,{data:C.icon,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"}):null,C.text?_.P(_.wh,{text:C.text,className:"ytThumbnailHoverOverlayViewModelText"}):null))};
qgF=function(I){switch(I){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}};
mWW=function(I){switch(I){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""}};
Z4K=function(I){switch(I){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""}};
BZO=function(I){switch(I){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}};
ELO=function(I){return I==="medium"||I==="48"||I==="large"||I==="extra-large"||I==="extra-extra-large"||I==="giant"};
h_K=function(I){return!!((I==null?0:I.includes(3))||(I==null?0:I.includes(5)))};
H49=function(I){return{size:UWO(I.data.avatarImageSize),onTap:I.onTap,decorations:I.decorations||[],badgeText:I.badgeText,accessibilityText:I.accessibilityText,avatarButtonCustomClassName:I.avatarButtonCustomClassName}};
UWO=function(I){switch(I){case "AVATAR_SIZE_XXS":return"tiny";case "AVATAR_SIZE_XS":return"extra-small";case "AVATAR_SIZE_S":return"small";case "AVATAR_SIZE_M":return"medium";case "AVATAR_SIZE_L":return"large";case "AVATAR_SIZE_XL":return"extra-large";case "AVATAR_SIZE_XXL":return"extra-extra-large";case "AVATAR_SIZE_XXXL":return"giant";case "AVATAR_SIZE_RESPONSIVE":return"responsive";case "AVATAR_SIZE_48":return"48";default:return"medium"}};
txW=function(I){function C(){y.endpoint&&_.Gp(y.endpoint)}
var y=I.data;var k=I.decorations;var F=I.avatarButtonCustomClassName;I=I.isOverlay;return _.P("avatar-view-model",null,y.image?_.P(Zu,{data:H49({data:y,onTap:y.endpoint?C:void 0,decorations:k,badgeText:void 0,accessibilityText:y.accessibilityText,avatarButtonCustomClassName:F}),image:y.image,iconType:"RADAR_LIVE",overlays:function(){return _.P(Bj,{data:y})},
isOverlay:I}):null)};
O4m=function(I){var C=I.data;var y=I.avatar;var k=I.onTap;var F=I.element;I=I.commandController;k=k?JrF(k,F,I):void 0;F=[];C.liveData&&F.push(0);var z;I=(z=C.liveData)==null?void 0:z.liveBadgeText;var c;z=(c=_.l(C.rendererContext,_.mO))==null?void 0:c.label;return H49({data:y,onTap:k,decorations:F,badgeText:I,accessibilityText:z?z:C.a11yLabel})};
JrF=function(I,C,y){return function(){LE(I,{form:{element:C},commandController:y})}};
acm=function(I,C,y,k){return C?O4m({data:I,avatar:C,onTap:y,element:k}):{size:"medium"}};
MxY=function(I){var C=I.data;I=I.className;var y=_.h3(),k=_.l(C.avatar,_.EG),F=_.Wj(C.rendererContext),z,c=acm(C,k,F,(z=y.value)!=null?z:void 0);return _.P("yt-decorated-avatar-view-model",{class:_.yc("yt-decorated-avatar-view-model-wiz",I),el:y},_.H2(k==null?void 0:k.image,function(){var r,w,L;return _.P(Zu,{data:c,image:k.image,iconType:"RADAR_LIVE",overlays:function(){return _.P(Bj,{data:k})},
idomKey:k==null?void 0:(r=k.image)==null?void 0:(w=r.sources)==null?void 0:(L=w.at(0))==null?void 0:L.url})}))};
IVF=function(I){switch(I){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
C5H=function(I){switch(I){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
sTI=function(I){var C=0;I.avatars&&(C+=I.avatars.length);I.decoratedText&&(C+=1);return C};
yFs=function(I){var C=I.data,y=C.avatars,k=C.text,F=C.rendererContext,z=C.decoratedText,c=(C=_.Es())&&_.dJ(F);_.xA(C,F);var r=sTI(I.data)>1,w,L=y&&y.length>0?IVF((w=_.l(y[0],_.EG))==null?void 0:w.avatarImageSize):0,D,p=y&&y.length>0?(D=_.l(y[0],_.EG))==null?void 0:D.avatarImageSize:"AVATAR_SIZE_UNKNOWN",Q,X;w={};return _.P("yt-avatar-stack-view-model",{el:C,class:_.yc("yt-avatar-stack-view-model-wiz",I.className,(w["yt-avatar-stack-view-model-wiz--tappable"]=c,w["yt-avatar-stack-view-model-wiz--is-overlay"]=
I.isOverlay,w["yt-avatar-stack-view-model-wiz--medium-text"]=I.useMediumText,w)),tabindex:c?0:void 0,role:c?"link":void 0,"aria-label":(X=(Q=_.l(F,_.mO))==null?void 0:Q.label)!=null?X:""},_.H2(y&&!I.hideAvatar,function(){return _.P("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.H2(z,function(){var b={};return _.P("div",{class:_.yc("yt-avatar-stack-view-model-wiz__text-container",(b["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS",
b["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=I.isOverlay&&(p==="AVATAR_SIZE_XXS"||p==="AVATAR_SIZE_XS"),b)),style:"width: "+L+"px; height: "+L+"px"},_.P(_.wh,{text:z,className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}),y.slice().reverse().map(function(b){return _.P("div",{class:C5H(p)},o0X(b,{avatarViewModel:{decorations:I.decorations?I.decorations:r?[3]:[],
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:I.isOverlay}}))}))}),_.H2(k,function(){return _.P(_.wh,{text:k,
className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}))};
kYW=function(I){switch(I){case "AVATAR_SIZE_XXS":return 16;case "AVATAR_SIZE_XS":return 24;case "AVATAR_SIZE_S":return 32;case "AVATAR_SIZE_M":return 36;case "AVATAR_SIZE_48":return 48;case "AVATAR_SIZE_L":return 56;case "AVATAR_SIZE_XL":return 72;case "AVATAR_SIZE_XXL":return 120;case "AVATAR_SIZE_XXXL":return 160;default:return 0}};
F6O=function(I){switch(I){case "AVATAR_SIZE_XS":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-small";case "AVATAR_SIZE_S":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-small";case "AVATAR_SIZE_M":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-medium";case "AVATAR_SIZE_48":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-48";case "AVATAR_SIZE_L":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-large";case "AVATAR_SIZE_XL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-large";
case "AVATAR_SIZE_XXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-extra-extra-large";case "AVATAR_SIZE_XXXL":return"yt-avatar-stack-view-model-wiz__avatar--avatar-size-giant";default:return""}};
uYK=function(I){switch(I){case "small":return"ytThumbnailOverlayAvatarStackViewModelavatarStackSmall";case "medium":return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium";case "large":return"ytThumbnailOverlayAvatarStackViewModelavatarStackLarge";default:return"ytThumbnailOverlayAvatarStackViewModelavatarStackMedium"}};
zPI=function(I){var C=I.data;return _.P("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:I.hidden===void 0?!1:I.hidden},_.P(_.wh,{text:C.title,className:"yt-thumbnail-overlay-title-view-model__title"}),C.subtitle?_.P(_.wh,{text:C.subtitle,className:"yt-thumbnail-overlay-title-view-model__subtitle"}):null)};
Twz=function(I){switch(I){case "small":return"yt-thumbnail-overlay-badge-view-model-wiz--small";case "medium":return"yt-thumbnail-overlay-badge-view-model-wiz--medium";case "large":return"yt-thumbnail-overlay-badge-view-model-wiz--large";default:return"yt-thumbnail-overlay-badge-view-model-wiz--medium"}};
cFs=function(I){var C=I.data;I=I.hidden===void 0?!1:I.hidden;var y={};I={class:_.yc("yt-page-indicator-view-model",(y["yt-page-indicator-view-model__indicator--hidden"]=!C.indicatorCount,y)),hidden:I};if(C.indicatorCount){y=[];for(var k=0;k<C.indicatorCount;k++){var F={};F=_.yc("yt-page-indicator-view-model__indicator",(F["yt-page-indicator-view-model__indicator--selected"]=C.selectedIndex===k,F));y.push(_.P("div",{class:F}))}C=_.P(_.aF,null,y)}else C=_.P(_.aF,null);return _.P("yt-page-indicator-view-model",
I,C)};
rF9=function(I){I&&(ePz(I)?delete I.inlinePlayerData:"inlinePlaybackEndpoint"in I&&delete I.inlinePlaybackEndpoint)};
itK=function(I){if("accessibilityText"in I)return I.accessibilityText||"";if("title"in I){var C,y,k;return((C=I.title)==null?void 0:(y=C.accessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)||""}if("accessibility"in I){var F,z;return((F=I.accessibility)==null?void 0:(z=F.accessibilityData)==null?void 0:z.label)||""}return""};
ePz=function(I){return"inlinePlayerData"in I};
h9=function(I){return new w8m(I)};
_.n0K=function(I,C,y,k,F,z){var c=function(L){L.preventDefault()},r=function(){var L=I.value;
if(L)return(L._data=C)?(L.addEventListener("touchstart",flW,{passive:!0}),L.addEventListener("click",KFH),C.clickTrackingParams&&(L.params={itct:C.clickTrackingParams}),AvW(L,C),pa(L,g8I(C)||"")):L.addEventListener("click",c),function(){C?(L.removeEventListener("touchstart",flW,{passive:!0}),L.removeEventListener("click",KFH)):L.removeEventListener("click",c)}},w=function(){var L=I.value;
if(L){var D=_.Y$({innertubeCommand:C,elementsCommand:y,forceNewState:k,stopPropagation:z});if(D)return L._data=D._data,D["aria-haspopup$"]&&L.setAttribute("aria-haspopup",D["aria-haspopup$"].toString()),D["force-new-state$"]&&L.setAttribute("force-new-state",D["force-new-state$"].toString()),D.href$&&pa(L,D.href$),D.rel$&&(L.rel=D.rel$),D.role$&&L.setAttribute("role",D.role$),D.target$&&(L.target=D.target$),L.params=D.params,D.onclick&&L.addEventListener("click",D.onclick),D.onpointerdown&&L.addEventListener("onpointerdown",
D.onpointerdown),function(){D.onclick&&L.removeEventListener("click",D.onclick);D.onpointerdown&&L.removeEventListener("onpointerdown",D.onpointerdown)}}};
$S(F?w:r,[C,y])};
P5K=function(I){var C=I.children;var y=I.className;var k=I.dir;var F=I.style;var z=I.role;var c=I.ariaSelected;var r=I.ariaLabel;var w=I.ariaHidden;var L=I.ariaLabelledby;var D=I.ariaDescribedby;var p=I.command;var Q=I.elementsCommand;var X=I.forceNewState;var b=I.isPlaceholder;var S=I.tabIdentifier;var A=I.target;var x=I.tabIndex;var B=I.useATagConfig;var t=I.stopPropagation;I=_.Es();_.n0K(I,p,Q,X,B,t);Q=_.uk(function(){return t===!1});
return _.P("a",{el:I,"on:click":Q,class:y,style:F,dir:k,role:z?z:p?void 0:"group","aria-hidden":w?!0:void 0,"aria-label":r,"aria-labelledby":L,"aria-describedby":D,"aria-selected":c,tabindex:x!==void 0?x:void 0,target:A,"tab-identifier":S,"force-new-state":X?!0:void 0,"is-placeholder":b?!0:void 0},C)};
DAt=function(I){var C=I.data;I=_.uk(function(){var F=_.l(C.onTap,_.$$);F&&_.N().resolve(_.ID).resolveCommand(F);return!1});
var y={sources:[{url:C.thumbnailUrl,width:120,height:90}]},k=C.rating&&C.ratingA11yLabel&&C.reviewsCount&&C.reviewsCountA11yLabel;return _.P("place-data-view-model",null,C.placeName&&C.placeCategory?_.P("div",{class:"yt-spec-place-data-view-model-shape","on:click":I},_.P(_.x$,{data:y,alt:"",targetWidth:120,targetHeight:90,className:"yt-spec-place-data-view-model-shape__thumbnail "+L6m}),_.P(P5K,{className:"yt-spec-place-data-view-model-shape__place-link",command:_.l(C.onTap,_.$$),forceNewState:!0,
useATagConfig:!0},_.P("h3",{class:"yt-spec-place-data-view-model-shape__name",title:C.placeName},C.placeName)),_.P("div",{class:"yt-spec-place-data-view-model-shape__metadata"},k?_.P("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"},_.P("span",{class:"score",title:C.ratingA11yLabel},C.rating),_.P("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-star-icon"},_.P(_.ez,{icon:"STAR",active:!0,style:"width: 14px; height: 14px; color: #fabb05"})),
_.P("span",{class:"yt-spec-place-data-view-model-shape__metadata-row-reviews",title:C.reviewsCountA11yLabel},C.reviewsCount)):_.P("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-ratings"}),_.P("div",{class:"yt-spec-place-data-view-model-shape__metadata-row yt-spec-place-data-view-model-shape__metadata-row-categories"},_.P("span",{class:"category",title:C.placeCategory},C.placeCategory)))):null)};
p8F=function(I){return function(C){I&&(I.thumbnailElRef=C.thumbnailElRef,I.thumbnail=C.thumbnail,I.thumbnailOverlays=C.thumbnailOverlays,I.thumbnailSize=C.thumbnailSize)}};
QTO=function(I){var C;return(C=I.sharedUi)==null?void 0:C.animatedThumbnailEnabled};
NwW=function(I){var C;return(C=I.sharedUi)==null?void 0:C.inlinePreviewEnabled};
_.VMK=function(I){var C;return(C=I.sharedUi)==null?void 0:C.currentPageSubType};
jTY=function(){return _.P("div",{class:"yt-pinking"},_.P("svg",{class:"yt-pinking__pinking-left"},_.P("defs",null,_.P("pattern",{id:"left-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.P("polygon",{class:"yt-pinking__pinking",points:"0,0 4,4 0,8"}))),_.P("rect",{fill:"url(#left-pattern)",width:"4",height:"100%"})),_.P("svg",{class:"yt-pinking__pinking-right"},_.P("defs",null,_.P("pattern",{id:"right-pattern",width:"4",height:"8",patternUnits:"userSpaceOnUse"},_.P("polygon",{class:"yt-pinking__pinking",
points:"4,0 0,4 4,8"}))),_.P("rect",{fill:"url(#right-pattern)",width:"4",height:"100%"})))};
lVF=function(I){switch(I){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
GYt=function(I){var C=[],y=I.data,k=Zn(I.width,I.height),F=_.N().resolve(_.aU(X8z)),z=_.Es(function(){C.push("elRef.value set")});
_.RU(function(){C.push("onInit");return function(){C.push("onCleanup")}});
_.RU(function(){var A;(A=I.playbackRef)==null||A.call(I,{thumbnailElRef:z,thumbnail:y.image,thumbnailOverlays:y.overlays,thumbnailSize:k})});
var c=PNI(QTO),r,w=(r=I.aspectRatio)!=null?r:0,L=(r=(y.image?_.LbF(y.image):w)<=1&&w===0)?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL",D=function(){z.value||_.SN(new _.ph("Thumbnail elRef.value is null",C.join("\n")));F&&z.value&&F(z.value)},p={};
a:{if(!I.disableRounding&&!I.isClip)switch(k){case "large":var Q="yt-thumbnail-view-model--large";break a;case "small":Q="yt-thumbnail-view-model--small";break a;default:Q="yt-thumbnail-view-model--medium";break a}Q=void 0}w=_.yc("yt-thumbnail-view-model",I.className,lVF(w),Q,(p["yt-thumbnail-view-model--cinematic"]=r,p));p=void 0;var X,b;(Q=r?(X=I.data)==null?void 0:(b=X.backgroundColor)==null?void 0:b.lightTheme:void 0)&&(p="background-color:"+$k(Q,"1")+";");var S;X=I.hovered&&k!=="large"&&((S=
y.overlays)==null?void 0:S.some(function(A){return _.l(A,$A9)}));
return _.P("yt-thumbnail-view-model",{class:w,style:p,el:z},_.H2(r,function(){return _.P("div",{class:"yt-thumbnail-view-model__blurred-image"},_.P(_.x$,{data:y.image,alt:"",contentMode:L,targetWidth:I.width,onload:D}))}),_.P("div",{class:"yt-thumbnail-view-model__image"},_.P(_.x$,{data:y.image,
alt:"",contentMode:L,targetWidth:I.width,onload:D}),null),_.H2(!X,function(){return RPX(y.overlays,{thumbnailOverlayBadgeViewModel:{thumbnailSize:k,isClip:I.isClip},thumbnailOverlayButtonViewModel:{lockupExperiments:I.lockupExperiments}})}),_.H2(I.hovered,function(){return btY(y.overlays,{thumbnailHoverOverlayViewModel:{alwaysShow:!0}})}),_.H2(I.hovered&&c,function(){return Yzz(y.overlays)}),_.H2(I.isClip,function(){return jTY()}))};
fVm=function(I){switch(I){case 1:return"yt-thumbnail-view-model--aspect-ratio-2-by-3";case 4:return"yt-thumbnail-view-model--shorts-aspect-ratio-9-by-16";case 3:return"yt-thumbnail-view-model--aspect-ratio-1-by-1";default:return"yt-thumbnail-view-model--aspect-ratio-16-by-9"}};
v0t=function(I){var C=_.T(Fi(-1)),y=C.next().value,k=C.next().value,F=YS(function(){return new Szm(k)});
_.RU(function(){K6O(F,I.data.thumbnails.length);return function(){AFs(F)}});
var z;return _.P("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},(z=I.data.thumbnails)==null?void 0:z.map(function(c,r){var w=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];!I.data.primaryThumbnail&&r===0&&w.push("yt-collection-thumbnail-slideshow--first-slide");r<=y&&w.push("yt-collection-thumbnail-slideshow--show-slide");r=w.join(" ");return _.P("div",{class:r},g0O(c,{thumbnailViewModel:{disableRounding:I.disableRounding}}))}))};
dAO=function(I){var C=_.T(Fi(!1)),y=C.next().value,k=C.next().value;_.RU(function(){if(I){var F=_.N().resolve(_.aU(W69));if(F){var z={triggeringElement:I,onDwellTriggeredFn:function(){k(!0)},
onDwellEndFn:function(){k(!1)}};
F.registerElement(z);return function(){F.unregisterElement(z)}}}});
return y};
xAX=function(I){var C=_.T(_.c4(!1,void 0,"RIOonf")),y=C.next().value,k=C.next().value;_.RU(function(){var F=I==null?void 0:I();if(F){var z=_.N().resolve(_.aU(W69));if(z){var c={triggeringElement:F,onDwellTriggeredFn:function(){k(!0)},
onDwellEndFn:function(){k(!1)}};
z.registerElement(c);_.$4(function(){z.unregisterElement(c)})}}});
return y};
Zts=function(I){var C,y=(C=_.N().resolve(_.aU(_.AE)))==null?void 0:C(),k=dAO(I.triggeringElement),F=!!I.data.primaryThumbnail,z=function(){var r;return _.P("div",null,qzO(I.data.primaryThumbnail,{thumbnailViewModel:{width:I.width,height:I.height,aspectRatio:I.aspectRatio,disableRounding:I.disableRounding,className:F?"yt-collection-thumbnail-view-model--has-stacks":void 0,hovered:I.hovered,playbackRef:I.playbackRef}}),_.H2(k&&((r=I.data.thumbnails)==null?void 0:r.length),function(){return _.P("div",
{class:"yt-collection-thumbnail-view-model__slideshow"},_.P(mAY,{data:I.data,disableRounding:!F}))}))};
C=I.data.stackColor;var c={experimentEnabled:F,thumbnailSize:Zn(I.width,I.height),doubleStack:I.doubleStack,color:y?C==null?void 0:C.darkTheme:C==null?void 0:C.lightTheme,enableResponsiveMode:!1};return _.P("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.H2(F,function(){return _.P(DWI,{data:c},z())}),_.H2(!F,z))};
Bwm=function(I,C,y){y?y(C):_.Gp(C,I.target?{form:{element:I.target}}:void 0)};
_.UG=function(I,C,y,k){_.l0(function(){var F=I.value;if(F){var z=new Map,c,r=(c=C())==null?void 0:c.onTap;r&&(c=function(w){a:{var L=w.composedPath();L=_.T(L);for(var D=L.next();!D.done;D=L.next()){D=D.value;if(D===F)break;if(D.className.indexOf("HostIsClickableAdComponent")>=0||D.tagName==="A".toString()||D.tagName==="BUTTON".toString()){L=!0;break a}}L=!1}L||(_.V("enable_square_image_components_ui_web_with_float_button")?_.k3(I.value,"yt-navigate",{endpoint:_.Rj(r)}):Bwm(w,r,y))},(k==null?0:k())||
_.V("enable_web_home_top_landscape_image_layout_level_click")?(F.addEventListener("tap",c),z.set("tap",c)):(F.addEventListener("click",c),z.set("click",c)));
_.$4(function(){for(var w=_.T(z),L=w.next();!L.done;L=w.next()){var D=_.T(L.value);L=D.next().value;D=D.next().value;F.removeEventListener(L,D)}})}})};
E0O=function(I,C){var y,k=(y=I.interaction)==null?void 0:y.onTap;if(I=_.Y$({elementsCommand:k,forceNewState:!0,skipOnClick:!0}))return I.onclick=function(F){$eI(F)&&(F.preventDefault(),k&&Bwm(F,k,C))},bdW(I)?I:void 0};
hPW=function(I){switch(I){case "AD_BUTTON_SIZE_COMPACT":return"S";case "AD_BUTTON_SIZE_DEFAULT":return"M";case "AD_BUTTON_SIZE_LARGE":return"L";default:return"M"}};
UAO=function(I){switch(I){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"}};
HtI=function(I){switch(I){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"}};
_.tMO=function(I){return _.V("rich_grid_enable_dynamic_offset")&&I?Math.max(Math.round((I-_.s8("rich_grid_dynamic_offset_anchor_width",1300))/100*_.s8("rich_grid_dynamic_offset_offset_per_100",10)),_.s8("rich_grid_dynamic_offset_lower_bound",-60)):0};
JFs=function(I,C){switch(C){case 4:return 16;case 1:return I<528?16:I<1024?32:48;case 2:return(I>=528?16:8)/2;case 3:return(I<528?16:I<1024?32:48)+(I>=528?16:8)/2;default:return 0}};
Otz=function(I){var C=I.originalContainerWidth;var y=I.sizing;var k=I.standardUnit;if(I.isCompactList&&C<528)return 1;switch(y){case "STANDARD":return k;case "COMPACT":return k+1;case "EXTRA_COMPACT":return _.V("web_responsive_extra_compact_2x")?k*2:_.V("web_responsive_current")?k===1?2:k%2===0?k/2*3:k+2:k<4?k*2:Math.ceil(k*3/2);case "MINI":return k>1?k*2:3;default:return k}};
MMH=function(I){var C=I.containerWidth;var y=I.peek;var k=I.gutter;var F=I.numItems;I=I.ignoreMaxWidthLimit;C=y?Math.max((C-y-k*F)/F,0):Math.max((C-k*(F-1))/F,0);return I?C:Math.min(C,aVm)};
_.Hj=function(I){var C=I.containerWidth;var y=I.hasPeek;var k=I.sizing;var F=I.marginSettings;var z=I.isCompactList;var c=I.enableFullBleedForSingleCol;var r=I.standardUnitMinWidth;k=k||"STANDARD";y=!!y;I=C>=528?16:8;var w=y?C>=528?48:24:0;F=JFs(C,F);var L=Math.max(C-F*2,0);r=_.V("kevlar_disable_min_width_override")?void 0:r;r=Math.min(Math.max(Math.floor((L-w+I)/((r!=null?r:IXt)+_.tMO(C)+I)),1),6);var D=(c=!!c&&r===1)||r===1&&k!=="STANDARD";y=y||D?L:Math.min(L,(aVm+I)*r-I);k=Otz({originalContainerWidth:C,
sizing:k,standardUnit:r,isCompactList:z});return{itemWidth:MMH({containerWidth:y,peek:w,gutter:I,numItems:k,ignoreMaxWidthLimit:D}),gutter:I,maxContainerWidth:y,numItems:k,margin:c?0:F,contentMargin:JFs(C,1),typographyBump:MMH({containerWidth:y,peek:w,gutter:I,numItems:r,ignoreMaxWidthLimit:D})>400&&!(z&&C<528),standardUnit:r}};
CSW=function(I){switch(I){case "RESPONSIVE_SIZE_COMPACT":return"COMPACT";case "RESPONSIVE_SIZE_EXTRA_COMPACT":return"EXTRA_COMPACT";case "RESPONSIVE_SIZE_TINY":return"MINI";default:return"STANDARD"}};
_.sXF=function(I){if(I){var C;if((C=I.responsiveContainerConfiguration)==null?0:C.responsiveSize)return CSW(I.responsiveContainerConfiguration.responsiveSize);if(I.layoutSizing)switch(I.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"}}};
oQz=function(I){if(I.fullbleed)return 1;switch(I.containerType){case "CONTAINER_TYPE_VERTICAL_LIST":return 3;case "CONTAINER_TYPE_GRID":return 2;case "CONTAINER_TYPE_HORIZONTAL_LIST":return 4;default:return 3}};
uA9=function(I,C,y,k,F,z,c,r){a:switch(I){case 4:z=!!(z&&z<100);break a;default:z=!1}a:switch(I){case 3:case 4:var w=k==="LOCKUP_CONTENT_TYPE_CHANNEL"||k==="LOCKUP_CONTENT_TYPE_SOURCE";break a;default:w=!1}a:switch(I){case 5:var L=!0;break a;case 4:L=!1;break a;default:L=!1}a:if(I===4&&k==="LOCKUP_CONTENT_TYPE_SOURCE")var D=1;else switch(I){case 3:D=1;break a;default:D=0}return{isOverlay:L,isCard:yHH(k,c),sizing:C!=null?C:"STANDARD",typographyBump:y!=null?y:!1,isTiny:z,isCentered:w,isCollection:k1X(k),
arrangement:D,addMarginForFullbleed:I===1&&k!=="LOCKUP_CONTENT_TYPE_VIDEO",fullbleed:I===1&&k==="LOCKUP_CONTENT_TYPE_VIDEO",aspectRatio:FHF(k,F,r),disableRounding:I===5||yHH(k,c)||I===1&&k==="LOCKUP_CONTENT_TYPE_VIDEO",collectionStackNumber:k1X(k)?2:0,useLegacyTypography:!(r==null||!r.useLegacyTypography),useRichGridLegacyTypography:!(r==null||!r.useRichGridLegacyTypography)}};
k1X=function(I){switch(I){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}};
yHH=function(I,C){if(C&&I==="LOCKUP_CONTENT_TYPE_VIDEO")return!0;switch(I){case "LOCKUP_CONTENT_TYPE_SOURCE":return!0;default:return!1}};
FHF=function(I,C,y){if(C&&(y==null||!y.alwaysRespectPodcastShowAspectRatio||I!=="LOCKUP_CONTENT_TYPE_PODCAST"))return 0;switch(I){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}};
zDs=function(I){switch(I){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"}};
eDI=function(I,C,y){a:switch(I.badgeStyle){case "BADGE_OVERLAY":var k=!0;break a;default:k=!1}return{type:C?16:TKF(I.badgeStyle),brNzRatingBadgeType:cHW(I.badgeStyle),text:I.badgeText,icon:I.iconName,isOverlay:k,modern:y||_.V("web_modern_badge_view_model")}};
TKF=function(I){switch(I){case "BADGE_COMMERCE":case "BADGE_MEMBERS_ONLY":return 8;case "BADGE_STATUS_NEW":return 11;case "BADGE_PREMIUM":return 5;default:return 0}};
cHW=function(I){switch(I){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}};
iRs=function(I){var C=I.data?eDI(I.data,!!I.workaroundShortsIsThumbnailBadge,I.modern):void 0;return _.P("yt-badge-view-model",{class:_.yc("yt-badge-view-model-wiz",I.class)},_.H2(C==null?void 0:C.brNzRatingBadgeType,function(){return _.P(rHX,{data:C})}),_.H2(C&&!C.brNzRatingBadgeType,function(){return _.P(_.t9,{data:C})}))};
_.J9=function(I){if(I){var C;return((C=_.N().resolve(_.aU(_.AE)))==null?0:C())?I.darkThemeImage:I.image}};
PSz=function(I,C,y,k,F,z){if(!y)return F&&z&&C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_EXPLICIT_SIZING"?"width: "+F+"px; height: "+z+"px;":"";F=y.size;y=y.allowFullWidth;if(C==="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"&&y)return"width: 100%;";if(F===void 0)return"";switch(I){case "CONTENT_PREVIEW_IMAGE_STYLE_SQUARE":case "CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE":return"width: "+F+"px; height: "+F+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3":return"width: "+F+"px; height: "+1/whI*
F+"px;";case "CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9":return"width: "+F*nQF+"px; height: "+F+"px;";default:return(k==null?0:k.height)&&(k==null?0:k.width)?k.width/k.height>1?"max-width: "+F*nQF+"px;":"max-width: "+F+"px;":"max-width: "+F+"px;"}};
LHH=function(I){var C;return I&&((C=_.J9(I.themedImage))!=null?C:I.image)};
DNt=function(I){var C;return I==null?void 0:(C=I.sources)==null?void 0:C[0]};
QXY=function(I,C){var y,k;return!!((I==null?0:(y=I.byline)==null?0:y.hideAvatar)&&((k=_.l(C,ph9))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
NKK=function(I,C){var y,k;return!!((I==null?0:(y=I.byline)==null?0:y.addPadding)&&((k=_.l(C,ph9))==null?void 0:k.contentType)==="METADATA_ROW_CONTENT_TYPE_BYLINE")};
VbO=function(I,C,y,k){var F={},z=(F["yt-content-metadata-view-model-wiz__delimiter"]=!0,F["yt-content-metadata-view-model-wiz__delimiter--standalone"]=k,F);return _.H2(C-1>y,function(){return _.P("span",{class:_.yc(z),"aria-hidden":!0},I)})};
lXH=function(I,C){return _.P(_.wh,{text:I.text,linkInheritColor:!0,className:jXm(C),userInput:!0})};
$NW=function(I){var C=I.metadataPart;var y=I.isOverlay;var k=I.useMediumText;var F=I.hideAvatar;var z=1;C.maxLines!==void 0&&(z=C.maxLines);return _.P(_.aF,null,_.H2(C.avatarStack,function(){return XhY(C.avatarStack,{avatarStackViewModel:{isOverlay:y,useMediumText:k,hideAvatar:F}})}),_.H2(C.text,function(){var c=z;
return _.P(_.aF,null,C.tooltip?_.P("span",{title:C.tooltip,role:"tooltip"},lXH(C,c)):lXH(C,c))}))};
jXm=function(I){switch(I){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
RDW=function(I){var C=I.metadataRow;var y=I.isInline;var k=I.delimiter;var F=I.isOverlay;var z=I.useMediumText;var c=I.extensions;var r=QXY(c==null?void 0:c.lockupMetadata,C);I=NKK(c==null?void 0:c.lockupMetadata,C);c=!!((c==null?0:c.lockupMetadata)&&C.badges);var w={};I=(w["yt-content-metadata-view-model-wiz__metadata-row"]=!0,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=y,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=I,w["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=
c,w);var L,D;return _.P("div",{class:_.yc(I)},(L=C.badges)==null?void 0:L.map(function(p){return _.P("div",{class:"yt-content-metadata-view-model-wiz__badge"},XhY(p))}),(D=C.metadataParts)==null?void 0:D.map(function(p,Q){return _.P(_.aF,null,$NW({metadataPart:p,
isOverlay:F,useMediumText:z,hideAvatar:r}),VbO(k,C.metadataParts.length,Q,!1))}),_.H2(C.isSpacerRow&&!y,function(){return _.P("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}))};
bRF=function(I){var C=I.className;var y=I.data;var k=I.layout===void 0?0:I.layout;var F=I.isOverlay===void 0?!1:I.isOverlay;var z=I.useMediumText;var c=I.extensions;I=_.Es();var r=k===0;k={};k=(k["yt-content-metadata-view-model-wiz"]=!0,k["yt-content-metadata-view-model-wiz--inline"]=r,k["yt-content-metadata-view-model-wiz--tappable"]=_.dJ(y.rendererContext),k["yt-content-metadata-view-model-wiz--medium-text"]=z,k);_.xA(I,y.rendererContext);return _.P("yt-content-metadata-view-model",{class:_.yc(C,
k),el:I},_.H2(y.metadataRows,function(){return y.metadataRows.map(function(w,L){return _.P(_.aF,null,RDW({metadataRow:w,isInline:r,delimiter:y.delimiter,isOverlay:F,useMediumText:z,extensions:c}),_.H2(r&&!w.isSpacerRow,function(){return VbO(y.delimiter,y.metadataRows.length,L,!0)}))})}))};
Y6z=function(I){switch(I){case 0:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-0";case 1:return"yt-content-metadata-view-model-wiz__metadata-text";case 2:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-2";case 3:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-3";default:return"yt-content-metadata-view-model-wiz__metadata-text-max-lines-4"}};
G1Y=function(I){if(I==null?0:I.isOverlay)return"yt-lockup-metadata-view-model-wiz--overlay";switch(I==null?void 0:I.arrangement){case 1:return"yt-lockup-metadata-view-model-wiz--horizontal";default:return"yt-lockup-metadata-view-model-wiz--vertical"}};
fXz=function(I){if(I==null?0:I.isTiny)return"yt-lockup-metadata-view-model-wiz--tiny";switch(I==null?void 0:I.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":return"yt-lockup-metadata-view-model-wiz--compact";default:return"yt-lockup-metadata-view-model-wiz--standard"}};
KHY=function(I){var C,y,k,F,z,c,r={},w=_.yc(G1Y(I.lockupStyle),fXz(I.lockupStyle),(r["yt-lockup-metadata-view-model-wiz"]=!0,r["yt-lockup-metadata-view-model-wiz--overlay"]=(C=I.lockupStyle)==null?void 0:C.isOverlay,r["yt-lockup-metadata-view-model-wiz--card"]=(y=I.lockupStyle)==null?void 0:y.isCard,r["yt-lockup-metadata-view-model-wiz--centered"]=(k=I.lockupStyle)==null?void 0:k.isCentered,r["yt-lockup-metadata-view-model-wiz--typography-bump"]=(F=I.lockupStyle)==null?void 0:F.typographyBump,r["yt-lockup-metadata-view-model-wiz--legacy-typography"]=
(z=I.lockupStyle)==null?void 0:z.useLegacyTypography,r["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=(c=I.lockupStyle)==null?void 0:c.useRichGridLegacyTypography,r)),L,D,p,Q,X,b;return _.P("yt-lockup-metadata-view-model",{class:w},_.H2(I.data.image,function(){return _.P("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},S6I(I.data.image))}),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.P("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:(L=I.data.title)==null?void 0:L.content},_.H2(I.data.title,function(){return _.P(_.ik,{command:I.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:I.lockupAccessibilityLabel},_.P(_.wh,{text:I.data.title}))})),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},S6I(I.data.metadata,{contentMetadataViewModel:{layout:1,
useMediumText:((D=I.lockupStyle)==null?void 0:D.typographyBump)||((p=I.lockupStyle)==null?void 0:p.useRichGridLegacyTypography),extensions:{lockupMetadata:{byline:{hideAvatar:((Q=I.lockupStyle)==null?void 0:Q.arrangement)===0,addPadding:((X=I.lockupStyle)==null?void 0:X.arrangement)===1}}}}})),_.H2(I.data.attribution,function(){return _.P("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},S6I(I.data.attribution,{attributionViewModel:{useSmallLayout:!0}}))})),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},
S6I(I.data.menuButton,((b=I.lockupStyle)==null?0:b.isOverlay)?{buttonViewModel:{buttonOverrides:{style:"overlay"}}}:void 0)))};
AHY=function(I){switch(I.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"}}};
gQF=function(I){var C=_.VMK(_.dW().getState())||"";return I?I+C:""};
vQm=function(I){switch(I){case 1:return"ytDismissibleItemAspectRatio2By3";case 2:return"ytDismissibleItemAspectRatio3By4";case 4:return"ytDismissibleItemShortsAspectRatio9By16";case 3:return"ytDismissibleItemAspectRatio1By1";case 0:return"ytDismissibleItemAspectRatio16By9"}};
dNO=function(I){var C=_.T(_.c4(void 0,void 0,"BIquNb")),y=C.next().value,k=C.next().value,F=_.T(_.c4(void 0,void 0,"eR0GH"));C=F.next().value;var z=F.next().value,c=_.T(_.c4(void 0,void 0,"UmkP0"));F=c.next().value;var r=c.next().value;c=_.uk(function(D){if(WHY(_.vj(D)))return!1;k(D);z(void 0);r(void 0);return!0});
var w=_.uk(function(D){I==null||I(D);if(WHY(_.vj(D)))return!1;z(D);k(void 0);r(void 0);return!0}),L=_.uk(function(D){WHY(_.vj(D))||(r(D),z(void 0),k(void 0))});
return{touchFeedbackEvents:{pointerUpEvent:y,pointerDownEvent:C,pointerLeaveEvent:F},touchFeedbackOnPointerUp:c,touchFeedbackOnPointerDown:w,touchFeedbackOnPointerLeave:L}};
WHY=function(I){var C=["BUTTON".toString()];I=_.T(I);for(var y=I.next();!y.done;y=I.next()){y=y.value;for(var k=_.T(C),F=k.next();!F.done;F=k.next())if(y.tagName===F.value)return!0}return!1};
xN9=function(I){switch(I){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"}};
q6K=function(I){var C;return HdK(I,((C=I.content)==null?void 0:C.length)||0,!0)};
mNH=function(I){var C=q6K(I),y,k;return(((y=I.content)==null?void 0:y.length)||0)>(((k=C.content)==null?void 0:k.length)||0)};
ZRK=function(I){var C=I.isTruncated;var y=I.isAbsoluteButton;var k=I.lineHeight;var F=I.contentRef.value,z=I.placeholderTruncationTextRef.value,c=I.truncationTextRef.value;I=I.appDirection==="rtl";if(F&&z){var r=z.offsetLeft;I&&(r=F.offsetWidth-z.offsetWidth-z.offsetLeft);if(C){C=z.offsetWidth;z=F.offsetWidth;var w=y?z-C-70:r-70;k="linear-gradient(\n      to top, transparent 0%,\n      transparent "+k+"px,\n      #000 "+k+"px,\n      #000 100%), linear-gradient(\n      to "+((I?"left":"right")+",\n      #000 0px,\n      #000 "+
w+"px,\n      transparent "+(y?z-C:w+70)+"px)");F.style.setProperty("-webkit-mask-image",k);F.style.setProperty("mask-image",k)}else F.style.setProperty("-webkit-mask-image",""),F.style.setProperty("mask-image","");y?I?(c.style.setProperty("left","0"),c.style.setProperty("right","unset")):(c.style.setProperty("left",""),c.style.setProperty("right","0")):I?(c.style.setProperty("left","unset"),c.style.setProperty("right",r+"px")):(c.style.setProperty("left",r+"px"),c.style.setProperty("right","unset"))}};
BKm=function(I,C,y,k,F){var z=_.Es(),c=_.Es(),r=_.Es(),w=q6K(I),L=_.N().resolve(_.v9),D=_.T(Fi(mNH(I))),p=D.next().value,Q=D.next().value,X=Gu(null);$S(function(){function b(){if(z.value&&c.value&&r.value){var x=z.value;x.scrollHeight-x.offsetHeight>1?(Q(!0),k||ZRK({isTruncated:!0,isAbsoluteButton:!0,lineHeight:y,contentRef:z,placeholderTruncationTextRef:c,truncationTextRef:r,appDirection:L})):(x=mNH(I),Q(x),k||ZRK({isTruncated:x,isAbsoluteButton:!1,lineHeight:y,contentRef:z,placeholderTruncationTextRef:c,
truncationTextRef:r,appDirection:L}))}}
var S,A;(S=X.value)==null||(A=S.stop)==null||A.call(S);S=new _.OG(b,17);b();X.value=S},[I.content,
C,y,L,k,F]);_.RU(function(){var b=function(){var A,x;(A=X.value)==null||(x=A.fire)==null||x.call(A)};
if(window.ResizeObserver){var S=new ResizeObserver(b);S.observe(z.value);return function(){var A,x;(A=X.value)==null||(x=A.stop)==null||x.call(A);S.disconnect()}}window.addEventListener("resize",b);
return function(){var A,x;(A=X.value)==null||(x=A.stop)==null||x.call(A);window.removeEventListener("resize",b)}});
return{isTruncated:p,displayText:w,contentRef:z,placeholderTruncationTextRef:c,truncationTextRef:r}};
EQm=function(I){return _.P("button",{"aria-disabled":!0,disabled:!0,class:I.className,el:I.elRef,style:"line-height: "+I.lineHeight+"px;"},_.P(_.wh,{text:I.text}))};
hDt=function(I){var C=I.text;var y=I.alwaysShowTruncationText;var k=I.truncationText;var F=I.onExpandClick;var z=I.lineHeight===void 0?16:I.lineHeight;var c=I.maxLines===void 0?2:I.maxLines;var r=I.disableTextMask===void 0?!1:I.disableTextMask;var w=I.isOverlay===void 0?!1:I.isOverlay;var L=I.accessibilityLabel===void 0?"":I.accessibilityLabel;var D=I.useMediumText===void 0?!1:I.useMediumText;I=_.uk(function(){return void(F==null?void 0:F())});
var p=BKm(C,c,z,r,D),Q=p.isTruncated;C=p.displayText;var X=p.contentRef,b=p.placeholderTruncationTextRef;p=p.truncationTextRef;var S={};y=_.yc((S["truncated-text-wiz__absolute-button"]=!r,S["truncated-text-wiz__bottom-button"]=r,S["truncated-text-wiz--hidden"]=!(y||Q),S));r={};w=_.yc((r["truncated-text-wiz"]=!0,r["truncated-text-wiz--overlay"]=w,r["truncated-text-wiz--medium-text"]=D,r));return _.P("truncated-text",{class:w,"on:click":I,style:"line-height: "+z+"px;"},_.P("truncated-text-content",
{class:"truncated-text-wiz__truncated-text-content",el:X,style:"max-height: "+c*z+"px;"},_.P(_.wh,{text:C}),_.P(EQm,{text:k,lineHeight:z,elRef:b,className:"truncated-text-wiz__inline-button"})),_.P("button",{"aria-label":L,class:y,el:p,style:"line-height: "+z+"px;"},_.P(_.wh,{text:k})))};
UNO=function(I){return{content:I!=null?I:""}};
JHH=function(I){var C=I.data;var y;I={class:I.className};a:switch(C.orientation){case "VIDEO_ATTRIBUTE_ORIENTATION_VERTICAL":var k="yt-video-attribute-view-model--vertical";break a;default:k="yt-video-attribute-view-model--horizontal"}a:switch(C.imageSize){case "VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL":var F="yt-video-attribute-view-model--image-small";break a;default:F="yt-video-attribute-view-model--image-large"}a:switch(C.imageStyle){case "VIDEO_ATTRIBUTE_IMAGE_STYLE_SQUARE":var z="yt-video-attribute-view-model--image-square";
break a;case "VIDEO_ATTRIBUTE_IMAGE_STYLE_AVATAR":z="yt-video-attribute-view-model--image-avatar";break a;default:z=""}a:switch(C.metadataStyle){case "VIDEO_ATTRIBUTE_METADATA_STYLE_HEADER":var c="yt-video-attribute-view-model--metadata-header";break a;default:c=""}a:switch(C.containerStyle){case "VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD":var r="yt-video-attribute-view-model--container-card";break a;default:r=""}var w=_.Rj(C.onTap)||_.Wj(C.rendererContext)?"yt-video-attribute-view-model--clickable":"";
k=["yt-video-attribute-view-model",k,F,z,c,r,w].join(" ");if(C.containerStyle!=="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD")var L="";else F=C.lightColorPalette,z=C.darkColorPalette,c=((L=_.N().resolve(_.aU(_.AE)))==null?0:L())&&z?z:F,L=(L=c==null?void 0:c.section2Color)?_.Xl(L):"";return _.P("yt-video-attribute-view-model",I,_.P("div",{class:k,style:_.cP({"background-color":L})},_.P(P5K,{className:"yt-video-attribute-view-model__link-container",useATagConfig:!0,stopPropagation:!1,command:(y=_.Rj(C.onTap))!=
null?y:_.Wj(C.rendererContext),role:"group",forceNewState:!0},C.heroText||C.image?_.P(HRH,{data:C}):null,_.P(tbs,{data:C,sizeSmall:C.imageSize==="VIDEO_ATTRIBUTE_IMAGE_SIZE_SMALL"}))))};
ORI=function(I){return{iconPosition:"icon-only",state:"active",style:"overlay",type:"text",size:"S",accessibilityLabel:I.overflowMenuA11yLabel,onTap:function(C){C.preventDefault();C.stopPropagation();if(I.overflowMenuOnTap){var y=_.Y$({elementsCommand:I.overflowMenuOnTap,forceNewState:!0});if(y==null?0:y.onclick)y.onclick(C)}}}};
HRH=function(I){I=I.data;var C,y=((C=_.N().resolve(_.aU(_.AE)))==null?0:C())&&I.darkThemeImage?I.darkThemeImage:I.image;C=ORI(I);return _.P("div",{class:"yt-video-attribute-view-model__hero-section"},y?_.P(_.x$,{data:y,className:"yt-video-attribute-view-model__hero-image",alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}):I.heroText?_.P("div",{class:"yt-video-attribute-view-model__hero-text-wrapper"},_.P("span",{class:"yt-video-attribute-view-model__hero-text"},I.heroText)):null,I.overflowMenuOnTap?
_.P("div",{class:"yt-video-attribute-view-model__overflow-menu"},_.P(aY,{data:C,iconName:"MORE_VERT"})):null)};
tbs=function(I){var C=I.data;var y=C.containerStyle==="VIDEO_ATTRIBUTE_CONTAINER_STYLE_CARD",k={};I={class:_.yc("yt-video-attribute-view-model__metadata",(k["yt-video-attribute-view-model--small-font"]=I.sizeSmall,k)),role:"link"};k=_.P("h1",{class:"yt-video-attribute-view-model__title"},C.title);y=C.subtitle?_.P("h4",{class:"yt-video-attribute-view-model__subtitle"},y?_.P(hDt,{text:UNO(C.subtitle),truncationText:UNO(C.subtitleTruncationText),maxLines:2}):_.P("span",null,C.subtitle)):null;if(C.secondarySubtitle){var F=
C.secondarySubtitle;if(F!=null&&F.attachmentRuns){for(var z=[],c=_.T(F.attachmentRuns),r=c.next();!r.done;r=c.next())r=r.value,r.element&&z.push(Object.assign({},r,{element:Object.assign({},r.element,{properties:{layoutProperties:{height:{unit:"DIMENSION_UNIT_POINT",value:15},width:{unit:"DIMENSION_UNIT_POINT",value:15}}}})}));F=Object.assign({},F,{attachmentRuns:z})}F=_.P("span",{class:"yt-video-attribute-view-model__secondary-subtitle"},_.P(_.wh,{text:F}))}else F=null;return _.P("div",I,k,y,F,C.buttonViewModel?
aXm(C.buttonViewModel,{buttonViewModel:{className:"yt-video-attribute-view-model__button"}}):null)};
I2s=function(I){var C={};C=_.yc("video-summary-content-view-model-wiz",I.className,(C["video-summary-content-view-model-wiz--is-search"]=!!I.isSearch,C));var y=_.l(I.data.likeButtonViewModel,dw9),k=_.l(I.data.dislikeButtonViewModel,xwz),F=bh(function(){var z=[],c,r=(c=I.data)==null?void 0:c.paragraphs;if(r==null||!r.length)return[];for(c=0;c<r.length;c++){var w=_.l(r[c],MbI),L=void 0;c>0&&(L=_.l(r[c-1],MbI));L&&!!L.marker===!!w.marker?z[z.length-1].paragraphs.push(w):z.push({isList:!!w.marker,paragraphs:[w]})}return z},
[I.data]);
return _.P("video-summary-content-view-model",{class:C},F.map(function(z){return z.isList?_.P("ul",{class:"video-summary-content-view-model-wiz__list"},z.paragraphs.map(function(c){return _.P("li",{class:"video-summary-content-view-model-wiz__list-item"},_.P(_.wh,{text:c.text}))})):z.paragraphs.map(function(c){return _.P("p",{class:"video-summary-content-view-model-wiz__paragraph"},_.P(_.wh,{text:c.text}))})}),_.H2(!!y&&!!k,function(){return _.P("div",{class:"video-summary-content-view-model-wiz__bottomButtonsContainer"},
_.P("div",{class:"video-summary-content-view-model-wiz__likeButton"},_.P(WmY,{data:y,
disableIconAnimation:!0})),_.P(mwH,{data:k}))}))};
_.Ml=function(I,C,y,k,F){k=k===void 0?{}:k;if(!F||Math.random()<5E-4){C=C||null;y=y||null;I=I instanceof Error?I:new _.ph(I);if(I.args)for(var z=_.T(I.args),c=z.next();!c.done;c=z.next())c=c.value,c instanceof Object&&(k=Object.assign({},c,k));k.category="H5 Ads Control Flow";C&&(k.slot=C?"slot:  "+C.slotType:"");y&&(k.layout=y?"layout:  "+y.layoutType:"",k.layoutId=y.layoutId);F&&(k.known_error_aggressively_sampled=!0);I.args=[k];_.SN(I)}};
_.CoX=function(I,C){_.Fe(I,"yt-open-popup-action",[_.JS(C),I])};
oJI=function(I){if(!I)return"";if(saX[I])return saX[I];Ic||(Ic=_.c2("A"));Ic.href!==I&&pa(Ic,I);var C=Ic.pathname;saX[I]=C.startsWith("/")?C:"/"+C;return saX[I]};
yBW=function(){var I=oJI(window.location.href);if(I==="/")return"home";if(I.startsWith("/results"))return"search";if(I.startsWith("/watch"))return"watch";if(I.startsWith("/shorts"))return"shorts";if(I.startsWith("/hashtag"))return"hashtag";if(I.startsWith("/create_channel"))return"create_channel";if(I.startsWith("/@")||I.startsWith("/user/")||I.startsWith("/channel/"))return"channel";if(I.startsWith("/experiments"))return"experiments";if(I.startsWith("/sponsor_channel"))return"sponsorship";if(I.startsWith("/select_site"))return"settings";
if(I.startsWith("/locate"))return"locate";if(I.startsWith("/redeem"))return"redeem";if(I.startsWith("/musicpremium")||I.startsWith("/premium")||I.startsWith("/red"))return"premium";if(I.startsWith("/paid_memberships"))return"paid_memberships";if(I.startsWith("/oops"))return"oops";if(I.startsWith("/clip"))return"clip";var C;return(Cn==null?void 0:(C=Cn.response)==null?void 0:C.page)==="404"?"404":I.startsWith("/feed/history")?"history":I.startsWith("/feed/library")?"library":I.startsWith("/feed/subscriptions")?
"subscriptions":I.startsWith("/feed/trending")?"trending":I.startsWith("/feed/news_destination")?"news":I.startsWith("/playlist")?"playlist":I.startsWith("/minor_moment")?"minor_moment":I.startsWith("/playable/")||I.match("^/playables/(?!saved).")?"mini_app":I.startsWith("/playables")?"playables":I.startsWith("/create/live/join")?"open_in_app":I.startsWith("/feed/explore")?"explore":"browse"};
_.zNI=function(){var I=Cn==null?void 0:Cn.response,C=I==null?void 0:I.endpoint;if(!C)return(I==null?void 0:I.page)==="watch"?"watch":yBW();var y;I=(y=_.l(C==null?void 0:C.commandMetadata,_.It))==null?void 0:y.webPageType;y=!1;if(I&&!kmW.includes(I))switch(I){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 k;return((k=_.l(C==null?void 0:C.commandMetadata,_.It))==null?0:k.url)&&oJI(_.l(C.commandMetadata,_.It).url).startsWith("/clip")?"clip":"watch";case "WEB_PAGE_TYPE_BROWSE":var F;return(C=(F=_.l(C,_.rU))==null?void 0:F.browseId)?FWs[C]||"browse":"browse";default:y=!0}if(_.l(C,_.sd)||_.l(C,uFz))return"sponsorship";F=oJI(window.location.href);if(F.startsWith("/experiments"))return"experiments";if(F.startsWith("/create_channel"))return"create_channel";
if(_.l(C,_.xo)&&F.startsWith("/shorts"))return"shorts";if(_.l(C,_.xo)&&F.startsWith("/watch"))return"watch";y&&(C=new _.ph("Unsupported mWeb page type",{pathname:F,webPageType:I}),_.GB(C));return"browse"};
nJX=function(I){var C=I.data;var y=I.inlineMetadata;var k=I.aspectRatio;var F=I.scrimStyle;var z=I.useDefaultStyle;var c=I.className;var r=Gu(new TDt);I=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";I=z?I==="SHORTS_LOCKUP_STYLE_SLIM":C.style==="SHORTS_LOCKUP_STYLE_SLIM";y=y||I||!1;F=F!==void 0?F:1;var w=_.Es(function(A){r.value&&(r.value.hostElement=A,S())});
_.a0(w,{visibilityCallback:function(A){A&&C.onFirstVisible&&_.Gp(C.onFirstVisible)},
showOption:{calledOnce:!0,state:"visible"}});c=_.yc("shortsLockupViewModelHost",c);var L=_.Y$({elementsCommand:C.onTap}),D=_.Es();_.n0K(D,_.Rj(C.onTap));var p=_.uk(function(A){if(L==null?0:L.onclick)L.onclick(A);return!1}),Q=_.Es(),X=[];
X.push("shortsLockupViewModelHostThumbnailContainer");k===1?X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree"):k===2&&X.push("shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour");I||X.push("shortsLockupViewModelHostThumbnailContainerRounded");_.V("web_shorts_2_by_3_lockups_study")||_.V("desktop_search_enable_two_by_three_shorts_aspect_ratio")||X.push("shortsLockupViewModelHostThumbnailContainerCustomDimensions");var b,S=function(){if(r.value){var A;(A=b)==null||
oc(A);A=r.value;var x;A.hostElement&&((x=A.data)==null?0:x.inlinePlayerData)&&(b=h9({mediaRenderer:A,lockupElement:A.hostElement,thumbnailElement:Q.value,videoPreviewOpts:cBz}))}};
$S(function(){r.value&&(r.value.data=C,S())},[C]);
return _.P("ytm-shorts-lockup-view-model",{el:w,class:c},_.P("a",{el:D,"on:click":p,class:"shortsLockupViewModelHostEndpoint reel-item-endpoint ","aria-hidden":!y,tabindex:y?0:-1},_.P("div",{el:Q,class:X.join(" ")},_.H2(C.thumbnail,function(){return _.P(_.aF,null,_.P(_.x$,{data:C.thumbnail,alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),null)})),y?_.P(eN9,{data:C,
scrimStyle:F,useDefaultStyle:z}):null,rBH(C.badge,{badgeViewModel:{class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0}})),y&&C.menuOnTap?_.P(iks,{data:C,inlineMetadata:y}):null,y?null:_.P(w69,{useDefaultStyle:z,data:C}))};
eN9=function(I){var C=I.data;var y=I.scrimStyle;var k=I.useDefaultStyle;var F=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";I=k&&_.V("web_hide_primary_text_for_pivot_panel");var z={};k=_.yc("shortsLockupViewModelHostInlineMetadata",(z.shortsLockupViewModelHostMetadataRounded=!(k?F==="SHORTS_LOCKUP_STYLE_SLIM":C.style==="SHORTS_LOCKUP_STYLE_SLIM"),z.shortsLockupViewModelHostInlineMetadataShortScrim=y===3&&!_.V("enable_shorts_lockup_new_scrim"),
z.shortsLockupViewModelHostInlineMetadataShortScrimNew=y===3&&_.V("enable_shorts_lockup_new_scrim"),z.shortsLockupViewModelHostInlineMetadataMediumScrim=y===2||y===4,z.shortsLockupViewModelHostShowOverPlayer=!0,z));var c,r;F={};return _.P("div",{class:k+" image-overlay-text"},_.P("h3",{class:_.sZ("shortsLockupViewModelHostMetadataTitle",(F.shortsLockupViewModelHostMetadataTitleTextShadow=y===4,F)),"aria-label":C.accessibilityText},_.H2(((c=C.overlayMetadata)==null?void 0:c.primaryText)&&!I,function(){return _.P(_.wh,
{text:C.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})})),((r=C.overlayMetadata)==null?0:r.secondaryText)?_.P(PoO,{data:C,
scrimStyle:y}):null)};
w69=function(I){var C=I.data;var y=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM";I=(I.useDefaultStyle?y==="SHORTS_LOCKUP_STYLE_SLIM":C.style==="SHORTS_LOCKUP_STYLE_SLIM")?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded";var k=_.Y$({elementsCommand:C.onTap});y=_.Es();_.n0K(y,_.Rj(C.onTap));var F=_.uk(function(p){if(k==null?0:k.onclick)k.onclick(p);return!1}),z,c,
r,w,L,D={};
return _.P("div",{class:I+" image-overlay-text","on:click":F},_.P("h3",{class:_.sZ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(D.shortsLockupViewModelHostOutsideMetadataMissingTitle=!((z=C.overlayMetadata)==null?0:(c=z.primaryText)==null?0:c.content),D)),"aria-label":C.accessibilityText},_.P("a",{el:y,"on:click":F,class:"shortsLockupViewModelHostEndpoint shortsLockupViewModelHostOutsideMetadataEndpoint",title:(r=C.overlayMetadata)==null?void 0:(w=r.primaryText)==
null?void 0:w.content},_.H2(C.overlayMetadata,function(){return _.P(_.wh,{text:C.overlayMetadata.primaryText,noEndpoints:!0,noStyleRuns:!0})}))),((L=C.overlayMetadata)==null?0:L.secondaryText)?_.P(PoO,{data:C,
className:"shortsLockupViewModelHostOutsideMetadataSubhead"}):null,C.menuOnTap?_.P(iks,{data:C,inlineMetadata:!1}):null)};
PoO=function(I){var C=I.data;var y=I.scrimStyle;I=I.className;var k,F={};return _.P("div",{class:_.sZ((F.shortsLockupViewModelHostMetadataSubhead=y!==4,F.shortsLockupViewModelHostMetadataSubheadNew=_.V("enable_shorts_lockup_new_scrim"),F.shortsLockupViewModelHostMetadataSubheadTextShadow=y===4,F),I),"aria-hidden":"true"},_.P(_.wh,{text:(k=C.overlayMetadata)==null?void 0:k.secondaryText,noStyleRuns:!0}))};
iks=function(I){var C={};C=_.yc((C.shortsLockupViewModelHostInlineMetadataMenu=I.inlineMetadata,C.shortsLockupViewModelHostOutsideMetadataMenu=!I.inlineMetadata,C.shortsLockupViewModelHostShowOverPlayer=!0,C));return _.P("div",{class:C},_.P(aY,{data:{style:I.inlineMetadata?"overlay":"mono",accessibilityLabel:I.data.menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(y){y.preventDefault();y.stopPropagation();var k=_.Y$({elementsCommand:I.data.menuOnTap,forceNewState:!0});
if(k==null?0:k.onclick)k.onclick(y)}},
iconName:"MORE_VERT"}))};
ym=function(I,C,y,k){return I&&C?I!==y||C!==k?(_.Ml(Error("Hh"),void 0,void 0,{"stored-slot":I,"stored-layout":C,"latest-slot":y,"latest-layout":k}),!1):!0:!1};
LWz=function(I,C,y){return I({targetId:C},function(k){return y.slot==="RELOAD_CONTINUATION_SLOT_HEADER"?Object.assign({},k,{header:y.continuationItems?y.continuationItems[0]:void 0}):Object.assign({},k,{contents:y.continuationItems?y.continuationItems:[]})})};
DZm=function(I,C,y,k){if(C=C.trackingParams){var F,z=(F=y.getScreenLayer)==null?void 0:F.call(y);y=_.Si(z);F=_.fq(z);if(y&&F){var c=_.nv(C);_.V("combine_ve_grafts")?I.graftServerVe(C,F,z):_.q1(y,F,c);k==null||k(c)}}};
QaK=function(I){var C;return((C=p6m.get(I))==null?void 0:C.successEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"};
jat=function(I,C){var y={type:C.slotType,controlFlowManagerLayer:NDY.get(C.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};C.slotEntryTrigger&&(y.entryTriggerType=C.slotEntryTrigger.triggerType);C.slotPhysicalPosition!==1&&(y.slotPhysicalPosition=C.slotPhysicalPosition);if(I){y.debugData={slotId:C.slotId};if(I=C.slotEntryTrigger)y.debugData.slotEntryTriggerData=V5O(I);I=C.slotFulfillmentTriggers;y.debugData.fulfillmentTriggerData=[];I=_.T(I);for(var k=I.next();!k.done;k=I.next())y.debugData.fulfillmentTriggerData.push(V5O(k.value));
C=C.slotExpirationTriggers;y.debugData.expirationTriggerData=[];C=_.T(C);for(I=C.next();!I.done;I=C.next())y.debugData.expirationTriggerData.push(V5O(I.value))}return y};
V5O=function(I,C){var y={type:I.triggerType};C!=null&&(y.category=C);I.triggeringSlotId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedSlotId=I.triggeringSlotId);I.triggeringLayoutId!=null&&(y.triggerSourceData||(y.triggerSourceData={}),y.triggerSourceData.associatedLayoutId=I.triggeringLayoutId);return y};
l2W=function(I,C,y,k){C={opportunityType:C};I&&(k||y)&&(k=_.pe(k||[],function(F){return jat(I,F)}),C.debugData=Object.assign({},y&&y.length>0?{associatedSlotId:y}:{},k.length>0?{slots:k}:{}));
return C};
X6m=function(I){return kX(I.opportunityAdapterMap).concat(kX(I.triggerAdapterMap)).concat(kX(I.fulfillmentAdapterFactoryMap)).concat(kX(I.slotAdapterFactoryMap)).concat(kX(I.layoutRenderingAdapterFactoryMap))};
kX=function(I){var C=[];I=_.T(I.values());for(var y=I.next();!y.done;y=I.next())y=y.value,y.isAdsControlFlowEventListener&&C.push(y);return C};
us=function(I){var C=I.slotId,y=I.slotType,k=I.slotPhysicalPosition;return C===void 0?new FS("Cannot construct a slot due to the missing id.",{adSlotMetadata:I}):y===void 0?new FS("Cannot construct a slot due to the missing type.",{adSlotMetadata:I}):k===void 0?new FS("Cannot construct a slot due to the missing physical position.",{adSlotMetadata:I}):{slotId:C,slotType:y,slotPhysicalPosition:k,managerLayer:"external",adSlotLoggingData:I.adSlotLoggingData,slotEntryTrigger:void 0,slotFulfillmentTriggers:[],
slotExpirationTriggers:[],clientMetadata:new $Zm}};
RNI=function(I){var C=I.layoutId,y=I.layoutType;return C===void 0?new zx("Cannot construct a layout due to the missing id.",{adLayoutMetadata:I}):y===void 0?new zx("Cannot construct a layout due to the missing type.",{adLayoutMetadata:I}):{layoutId:C,layoutType:y,managerLayer:"external",adLayoutLoggingData:I.adLayoutLoggingData,trackingPings:new Map,layoutExitNormalTriggers:[],layoutExitSkipTriggers:[],layoutExitMuteTriggers:[],layoutExitUserInputSubmittedTriggers:[],layoutExitUserCancelledTriggers:[],
clientMetadata:new $Zm,interactionLoggingAdsClientData:{}}};
bkX=function(I){if((I=I.value)&&I.querySelector("img")){var C=I.querySelector("img");C.addEventListener("error",function(){pTO(C.src).then(function(y){(y=_.ii(y).toString())?C.src=y:C.removeAttribute("src")}).catch(function(){C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="})})}};
cp=function(I,C){if(C&&(YfX(C.viewableCommand)||YfX(C.endOfSessionCommand))){I=I.value;var y=GmW(C==null?void 0:C.viewableCommand);C=GmW(C==null?void 0:C.endOfSessionCommand);if(!Tx){var k=_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);Tx=new f2W((k==null?void 0:k.length)===2?k[1]:null)}SfW(Tx,I);KWI(Tx,I,y,C)}};
eL=function(I){Tx&&SfW(Tx,I.value)};
YfX=function(I){I=_.Rj(I);return!(I==null||!I.loggingUrls)&&I.loggingUrls.length>0};
GmW=function(I){if(!I)return[];var C=[],y,k;((k=(y=_.Rj(I))==null?void 0:y.loggingUrls)!=null?k:[]).forEach(function(F){F.baseUrl&&C.push(F.baseUrl)});
return C};
ABI=function(I){return I.shorts.isDesktopSmallWidth};
_.gJt=function(I){return I.shorts.isWatchWhileMode};
_.rl=function(I){return I.shorts.isFullscreen};
_.is=function(I){return I.shorts.isShortsPipActive};
WWH=function(I){var C,y;if(I=(C=_.l(I.reelsAdCardButtoned,vJm))==null?void 0:(y=C.animatedRenderingConfig)==null?void 0:y.easeOutSeconds)return I+"s"};
xZW=function(I,C,y){return _.e(function(k){return k.return(new Promise(function(F){var z=new Image;z.onload=function(){F(new dZt(I,C,y,z.naturalWidth,z.naturalHeight))};
z.src=y.toString()}))})};
qfY=function(I,C){return Math.round(I/1E-5)===Math.round(C/1E-5)};
mZI=function(I,C){return Math.round(I/1E-5)===Math.round(C/1E-5)};
ZkI=function(I,C){return I.year===C.year&&I.month===C.month&&I.day===C.day};
BDW=function(I,C){return I.year!==C.year?I.year<C.year:I.month!==C.month?I.month<C.month:I.day<C.day};
hN9=function(I){return I.day===EJm(I.year,I.month)?I.month===11?{year:I.year+1,month:0,day:1}:{year:I.year,month:I.month+1,day:1}:{year:I.year,month:I.month,day:I.day+1}};
UZm=function(){var I=new Date,C={year:I.getFullYear(),month:I.getMonth(),day:I.getDate()};return{start:C,end:{year:I.getFullYear()+2,month:I.getMonth(),day:I.getDate()},selectedDate:hN9(C)}};
Hkm=function(I){return(new Zk(2)).format(new Date(I.year,I.month,I.day))};
t5z=function(I){return{year:I.getFullYear(),month:I.getMonth(),day:I.getDate()}};
JB9=function(I,C){I=(I+(Number(C.utcOffsetSec)+(new Date(I*1E3)).getTimezoneOffset()*60))*1E3;C=t5z(new Date(I));return{date:C,secondsSinceMidnight:Math.floor((I-(new Date(C.year,C.month,C.day)).getTime())/1E3)}};
OkI=function(I,C){C=C.months.findIndex(function(y){return y.year===I.year&&y.month===I.month});
return C>=0?C:void 0};
a2z=function(I){if(!I)return!1;try{if(I.host&&I.host.tagName==="YT-FORMATTED-STRING"&&I.host.id==="contenteditable-textarea"||I.nodeType===Node.ELEMENT_NODE&&I.tagName==="YTD-COMMENTBOX")return!0}catch(C){return!1}return a2z(I.parentNode)};
wl=function(I){return I?!(I.tagName!=="A"||!I.href||!I.classList.contains("yt-simple-endpoint")):!1};
M5z=function(I){return I?I.tagName==="IMG"&&I.classList.contains("emoji"):!1};
IqW=function(I,C,y){if(!I)return null;var k=wl(I);if(k&&y)return C=I.pathname.substring(I.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(k&&!y)return document.createTextNode("");if(M5z(I))return y=I.alt,I=I.dataset.emojiId,!I&&C&&(C=_.nn(C,y))&&C.isCustomEmoji&&(I=C.emojiId),I?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+I+">"):document.createTextNode(y);k=I.cloneNode(!1);for(var F=0;F<I.childNodes.length;++F){var z=IqW(I.childNodes[F],C,y);z&&k.appendChild(z)}return k};
Pp=function(I){return I?wl(I)?I:Pp(I.lastChild):null};
CwI=function(I){return I?wl(I)?I:CwI(I.firstChild):null};
skF=function(I){if(!I)return null;for(var C=I.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=Pp(C))?I=C:I=(I=I.parentNode)?Pp(I.previousElementSibling):null;return I};
oPW=function(I){if(!I)return null;for(var C=I.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=CwI(C))?C:oPW(I.parentNode)};
yV9=function(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();if(!a2z(y.parentNode))return null;C=C.JSC$9128_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var k=_.$F(y,wl);if(k){if(I&&C===0||!I&&C===y.length)return k}else{if(I&&C===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.DZ(y.nextElementSibling,"display")==="block"?null:CwI(y.nextElementSibling);if(!I&&C===0)return y?Pp(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(I){if(0<=C&&C<y.childNodes.length)return CwI(y.childNodes[C])}else if(0<
C&&C<=y.childNodes.length)return Pp(y.childNodes[C-1]);return null};
kjm=function(I,C,y){if(!I)return null;if(I.nodeType===Node.TEXT_NODE)if(y){var k=skF(I);if(k&&!/^\s+\S/.test(I.wholeText.substr(0,C)))return k}else if((k=oPW(I))&&!/\S\s+/.test(I.wholeText.substr(C,I.wholeText.length)))return k;return I.nodeType===Node.ELEMENT_NODE?y?skF(I.childNodes[C]):oPW(I.childNodes[C]):kjm(I.parentNode,C,y)};
FSz=function(I){if(I.hasChildNodes())switch(I.tagName){case "DIV":case "A":case "SPAN":var C="";for(I=I.firstChild;I;I=I.nextSibling)C+=FSz(I);return C;default:return""}else switch(I.nodeType){case 3:return I.textContent;default:return""}};
pn=function(I,C){return I.year===C.year&&I.month===C.month&&I.day===C.day};
Qm=function(I,C){return I.year!==C.year?I.year<C.year:I.month!==C.month?I.month<C.month:I.day<C.day};
uzK=function(I){return{year:I.getFullYear(),month:I.getMonth(),day:I.getDate()}};
zaX=function(I){var C=xDs;C=C===void 0?xDs:C;C(new Date(I.year,I.month,I.day))};
NE=function(I){return uzK(new Date(Number(I.seconds)*1E3))};
T6t=function(I){return I.year!==void 0&&I.month!==void 0&&I.day!==void 0};
cVH=function(I){return I.start!==void 0&&I.end!==void 0};
eaI=function(I){return cVH(I)?I.start:I};
rVF=function(I){return cVH(I)?I.end:void 0};
wBK=function(I,C){for(var y=[],k=new Date(I.start.year,I.start.month);k.getFullYear()<I.end.year||k.getFullYear()===I.end.year&&k.getMonth()<=I.end.month;){var F=y,z=F.push,c=k.getFullYear(),r=k.getMonth(),w=I,L=C,D=void 0,p=[],Q=Object.freeze({extraCssClass:"invisible"}),X=new Date(c,r),b=uzK(X);X=X.getDay();for(var S=uzK(new Date);b.month===r;){X!==iGW&&D||(D=Array.from({length:7}).fill(Q),p.push(D));var A={date:{year:c,month:r,day:b.day},extraCssClass:"",debugClass:""};A.extraCssClass=L(A.date,
b,S,w).trim();D[(X-iGW+7)%7]=A;b=b.day===EJm(b.year,b.month)?b.month===11?{year:b.year+1,month:0,day:1}:{year:b.year,month:b.month+1,day:1}:{year:b.year,month:b.month,day:b.day+1};X=(X+1)%7}z.call(F,{weeks:p,monthLabel:Vm.SHORTMONTHS[r]+" "+c,year:c,month:r,monthLabelExtraCssClass:p[0][2]===Q?"shift-down-label":""});k.setMonth(k.getMonth()+1)}return y};
nPI=function(I,C){C=C.months.findIndex(function(y){return y.year===I.year&&y.month===I.month});
return C>=0?C:void 0};
LSt=function(I,C){a:{var y=y===void 0?[2,3]:y;y=_.T(y);for(var k=y.next();!k.done;k=y.next()){var F=new Date;if((new PwK(k.value)).parse(C,F,{validate:!0})){F.setHours(0,0,0,0);C=F;break a}}C=null}if(!C)return{isValid:!1,value:void 0};C=uzK(C);y=I.end;return Qm(C,I.start)||Qm(y,C)?{isValid:!1,value:void 0}:{isValid:!0,value:C}};
V6H=function(I){var C=DvX;C=C===void 0?pBK:C;var y=I.columnsToShow||[],k=QkI(I.columnDimensions,I.columnsToShow,I.leftFloatingColumns,C);return y.map(function(F,z){var c=I.columns[F];if(c===void 0)throw Error("Nh");var r=k?k[z]:"";var w=I.getCustomTooltip?I.getCustomTooltip(F,c.headerTooltipParagraphs):c.headerTooltipParagraphs;var L=N6F(I,F);return{type:F,index:z,style:r,classes:L,headerName:c.headerName||"",headerIcon:c.headerIcon,headerTooltipParagraphs:w||[],headerTooltipHelpContext:c.headerTooltipHelpContext,
sortOrders:c.sortOrders||[],selectionState:c.isSelectionCheckbox?I.selectionState:void 0}})};
N6F=function(I,C){var y=["DEFAULTS","FLOATING","RIGHT_ALIGN","SORTING"],k=I.columns[C];if(k===void 0)return"";var F=y.includes("DEFAULTS")&&k.cssClass?[k.cssClass]:[];if(y.includes("SORTING")){k.sortOrders&&k.sortOrders.length&&F.push("sortable");if(I.sorting&&I.sorting.columnType===C)a:switch(I.sorting.sortOrder){case "ASCENDING":case "DESCENDING":var z="column-sorted";break a;default:z=""}else z="";z&&F.push(z)}y.includes("FLOATING")&&(C=I.columnsToShow.indexOf(C),I.leftFloatingColumns&&C<I.leftFloatingColumns&&
F.push("floating-column"),I.leftFloatingColumns&&C===I.leftFloatingColumns-1&&F.push("last-floating-column"));y.includes("RIGHT_ALIGN")&&k.rightAlignHeader&&F.push("right-align");return F.filter(function(c){return c}).join(" ")};
QkI=function(I,C,y,k){y=y===void 0?0:y;k=k===void 0?pBK:k;if(I){var F=[],z=0;jkO(I,C,k).forEach(function(c,r){var w="min-width:"+c.minWidth+"px;padding-left:"+c.paddingLeft+"px;padding-right:"+c.paddingRight+"px;flex:"+c.flexGrow+" 0 "+c.minWidth+"px;";c.maxWidth!==Infinity&&(w=[w,"max-width:"+c.maxWidth+"px;"].join(""));z>0&&r<y&&(w=[w,"left:"+z+"px;"].join(""));F.push(w);z+=c.minWidth+c.paddingLeft+c.paddingRight});
return F}};
jkO=function(I,C,y){y=y===void 0?pBK:y;return C.map(function(k,F){k=I&&I[k]||{};var z=F===0?y.paddingLeftFirstColumn:y.padding;k.paddingLeft!==void 0&&(z=k.paddingLeft);F=F===C.length-1?y.paddingRightLastColumn:y.padding;k.paddingRight!==void 0&&(F=k.paddingRight);return{paddingLeft:z,paddingRight:F,minWidth:k.minWidth!==void 0?k.minWidth:y.minWidth,maxWidth:k.maxWidth!==void 0?k.maxWidth:y.maxWidth,flexGrow:k.flexGrow!==void 0?k.flexGrow:y.flexGrow}})};
lq9=function(I){var C=I.reduce(function(k,F){var z=F.columnId,c={};F.headerText&&(c.headerName=_.hS(F.headerText));F.rightAlignHeader&&(c.rightAlignHeader=F.rightAlignHeader);var r;if((r=F.headerIcon)==null?0:r.iconType)c.headerIcon=_.y5(F.headerIcon.iconType);k[z]=c;return k},{}),y=I.filter(function(k){return!k.hideColumn}).map(function(k){return k.columnId});
I=I.filter(function(k){return!!k.dimensions}).reduce(function(k,F){k[F.columnId]=F.dimensions;
return k},{});
return{columns:C,columnsToShow:y,columnDimensions:I}};
_.XBF=function(I){return I?I.simpleText?I.simpleText:I.runs?I.runs.map(function(C){return C.text}).join(""):"":""};
Gjt=function(I){var C=I.data;var y=I.onTap;var k=I.isSelected;var F=I.onFocusIn;if(!C)return{};I=$vt(C);k===void 0&&(k=C==null?void 0:C.isSelected);var z;return{text:RaY(C,I),startIcon:(z=C.icon)==null?void 0:z.iconType,state:k?0:2,type:0,onTap:bGm(C,y),accessibilityLabel:Yct(C,I),onFocusIn:function(){return F==null?void 0:F()}}};
RaY=function(I,C){if(!C)return I.text?_.XBF(I.text):void 0};
bGm=function(I,C){return function(y){C==null||C(y,I)}};
$vt=function(I){I=I.style&&I.style.styleType;return!fqF&&I==="STYLE_EXPLORE_LAUNCHER_CHIP"};
Yct=function(I,C){if(C){var y,k,F;return(F=(y=I.accessibilityData)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)!=null?F:RaY(I,!1)}};
jL=function(I){return{signalAction:{signal:I}}};
AVI=function(){return _.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"?Sc9:_.KSt};
gPK=function(I,C){I=I===void 0?"SOFT_RELOAD_PAGE":I;C=C===void 0?49504:C;return{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:C}},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:I}}]}}}};
vPW=function(){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Cx(_.PQ("GO_TO_DOWNLOADS",void 0,"Go to downloads")),loggingDirectives:{clientVeSpec:{uiType:49503}},navigationEndpoint:AVI()}};
WSm=function(){return{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("VIEW_DOWNLOADS",void 0,"View")),loggingDirectives:{clientVeSpec:{uiType:98970}},navigationEndpoint:AVI()}};
dvz=function(I,C){var y=_.Cx(_.PQ("CONNECT_TO_THE_INTERNET",void 0,"Connect to the internet")),k=_.Cx(_.PQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),F={style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:_.Cx(_.PQ("RETRY",void 0,"Retry")),loggingDirectives:{clientVeSpec:{uiType:49504}}};F.serviceEndpoint=I?I:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[jL("SOFT_RELOAD_PAGE")]}};return{title:y,bodyText:k,icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{reloadPageButtonRenderer:F},
style:{value:C!=null?C:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}};
qcI=function(I){I=I===void 0?{}:I;return{title:_.Cx(I.localizedZeroStateTitleText===void 0?"":I.localizedZeroStateTitleText),bodyText:_.Cx(I.localizedZeroStateMessage===void 0?"":I.localizedZeroStateMessage),ctaButton:{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cx(I.localizedZeroStateButtonText===void 0?"":I.localizedZeroStateButtonText),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",
boolValue:!0}},loggingDirectives:{clientVeSpec:{uiType:127983}}}},thumbnail:{thumbnails:[xvI]},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:127982}}}};
_.B6O=function(I,C,y,k,F,z,c,r){k=k===void 0?!1:k;F=F===void 0?!1:F;z=z===void 0?0:z;c=c===void 0?-Infinity:c;r=r===void 0?!1:r;var w=[],L=_.Cx(_.PQ("SMART_DOWNLOADS",void 0,"Smart downloads"));c=_.Cx(mvW(z,c,I.length));z=void 0;k?z=I.length>0?ZGs(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS",_.V("kevlar_manual_downloads_above"),L,c):r?{alertBannerViewModel:{heading:{content:y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText},body:{content:y.localizedPromptMessage===
void 0?"":y.localizedPromptMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.PQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now"),accessibilityText:_.PQ("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:_.s$z}]}}}}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:129729}}}}}}:{backgroundPromoRenderer:{bodyText:_.Cx(_.PQ("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"}}}:F&&(z={alertBannerViewModel:{heading:{content:y.localizedOptInBannerTitleText===void 0?"":y.localizedOptInBannerTitleText},body:{content:y.localizedOptInMessage===
void 0?"":y.localizedOptInMessage},type:"ALERT_BANNER_TYPE_INFORMATIONAL",hideIcon:!0,actionButton:{buttonViewModel:{title:_.PQ("TURN_ON",void 0,"Turn on"),accessibilityText:_.PQ("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}}}}}});y=_.Cx(_.PQ("YOUR_DOWNLOADS",void 0,"Your downloads"));F=void 0;C.length>0?(F=void 0,_.V("kevlar_display_downloads_numbers")&&(F=_.Cx(_.LA("VIDEO_COUNT",C.length))),F=ZGs(C,"RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS",!0,y,F)):k||I.length||(F={backgroundPromoRenderer:{bodyText:_.Cx(_.PQ("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}}}});z&&!_.V("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:z,loggingDirectives:{clientVeSpec:{uiType:139572}}}});F&&w.push({richSectionRenderer:{content:F,loggingDirectives:{clientVeSpec:{uiType:51721}}}});z&&_.V("kevlar_manual_downloads_above")&&w.push({richSectionRenderer:{content:z,loggingDirectives:{clientVeSpec:{uiType:139572}}}});(C.length>0||k&&I.length>0)&&w.push({richSectionRenderer:{content:{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Cx(_.PQ("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:w}};
_.haF=function(I){return EPm(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE")};
_.Uvz=function(I){return EPm(I,"RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE")};
EPm=function(I,C){var y=[];I=ZGs(I,C,!0);y.push({richSectionRenderer:{content:I}});return{contents:y}};
ZGs=function(I,C,y,k,F){y=y===void 0?!1:y;I={isExpanded:y,contents:ls(I),entitySelectorType:C};k&&(I.title=k);F&&(I.subtitle=F);y||(_.V("kevlar_smart_downloads_show_more_button")?(I.showMoreButton={buttonRenderer:{accessibility:{label:_.PQ("SHOW_MORE",void 0,"Show more")},icon:{iconType:"EXPAND"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",loggingDirectives:{clientVeSpec:{uiType:192921}},text:_.Cx(_.PQ("SHOW_MORE",void 0,"Show more"))}},I.showLessButton={buttonRenderer:{accessibility:{label:_.PQ("SHOW_LESS",
void 0,"Show less")},icon:{iconType:"COLLAPSE"},style:"STYLE_OPACITY",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("SHOW_LESS",void 0,"Show less"))}}):(I.previousButton={buttonViewModel:{iconName:"CHEVRON_LEFT",accessibilityText:_.PQ("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}}}},I.nextButton={buttonViewModel:{iconName:"CHEVRON_RIGHT",
accessibilityText:_.PQ("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}}}},I.menu={menuRenderer:{topLevelButtons:[{buttonViewModel:{title:_.PQ("VIEW_ALL",void 0,"View all"),accessibilityText:_.PQ("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:M1("FEsmart_downloads","/feed/smart_downloads",248381)}}}]}}));return{richShelfRenderer:I}};
ls=function(I){var C=[];I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,WqK(y)){var k=C,F=k.push;var z=void 0;if(y==null?0:(z=y.videoEntity)==null?0:z.videoId){z=vg(_.Hg().getState(),y.videoEntity.videoId);var c=_.Hg().getState();var r=_.TL(y.videoEntity.videoId,"mainVideoEntity");c=!!_.l6(c.entities)[r];c={videoId:y.videoEntity.videoId,title:se(y.videoEntity.title),shortBylineText:se(y.channelEntity.title),thumbnail:y.videoEntity.thumbnail,loggingDirectives:{clientVeSpec:{uiType:c&&_.V("kevlar_modern_downloads_page")?
129218:42356}},navigationEndpoint:WIm(y.videoEntity.videoId,z,y.videoEntity.lengthSeconds),badges:[{metadataBadgeRenderer:{label:_.PQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};y.videoEntity.lengthSeconds&&(c.thumbnailOverlays=kkF(y.videoEntity.lengthSeconds,z));c.isWatched=z>0;_.V("kevlar_modern_downloads_page")&&(c.menu={menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:y.videoEntity.videoId}}}}],accessibility:{accessibilityData:{label:_.PQ("VIDEO_ACTION_MENU",
void 0,"Action menu")}}}},c.badges=void 0);y=c}else y={};F.call(k,{richItemRenderer:{content:{videoRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"}})}else if(vrY(y)){k=C;F=k.push;var w=r=z=void 0,L=void 0,D=void 0,p=void 0,Q=void 0,X=void 0,b=void 0,S=void 0,A=void 0,x=void 0;c=y.mainPlaylistEntity.playlistId;var B=y==null?void 0:(x=y.mainPlaylistEntity)==null?void 0:(A=x.thumbnailStyleData)==null?void 0:(S=A[0])==null?void 0:(b=S.value)==null?void 0:(X=b.collageThumbnail)==
null?void 0:X.coverThumbnail;if(c&&B){X=dCm(c);!_.V("enable_offline_playlist_page")&&(y==null?0:(Q=y.mainPlaylistEntity)==null?0:Q.videos)&&(Q=y==null?void 0:(p=y.mainPlaylistEntity)==null?void 0:(D=p.videos)==null?void 0:D[0],D=_.Fy(Q).entityId,D=JSON.parse(D).videoId,D!==void 0&&(p=vg(_.Hg().getState(),D),X=_.IQ(D,c,void 0,void 0,p)));D=[];if(y==null?0:(L=y.mainPlaylistEntity)==null?0:(w=L.videos)==null?0:w.length)D=[dDI(),Object.assign({},(r=W_m(y==null?void 0:y.mainPlaylistEntity.videos.length))!=
null?r:{})];y={playlistId:c,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:B}},navigationEndpoint:X,loggingDirectives:{clientVeSpec:{uiType:42357}},thumbnailOverlays:D,title:se(y.mainPlaylistEntity.title),shortBylineText:se(y==null?void 0:(z=y.channelEntity)==null?void 0:z.title),badges:[{metadataBadgeRenderer:{label:_.PQ("DOWNLOADED",void 0,"Downloaded"),style:"BADGE_STYLE_TYPE_SIMPLE"}}]};_.V("kevlar_modern_downloads_page")&&(y.menu={menuRenderer:{items:[{menuServiceItemRenderer:{text:HG9,
icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:c,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.PQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},y.badges=void 0)}else y=void 0;F.call(k,{richItemRenderer:{content:{playlistRenderer:y},entitySelectorType:"RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST"}})}return C};
mvW=function(I,C,y){I=I?t6m(I):"";C!==void 0&&isFinite(C)?C===0?C=_.PQ("UPDATING",void 0,"Updating..."):(C=yJY(new Date(C),new Date),C=_.PQ("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var k="";I&&C&&(k=" \u2022 ");if(y&&_.V("kevlar_display_downloads_numbers")){y=_.LA("VIDEO_COUNT",y);if(I||C)k=" \u2022 ";return y+k+I+k+C}return I+k+C};
JVF=function(I){return aQY(I.entities).length};
_.OGK=function(I,C){var y=CSW(I.responsiveSize),k;I=!((k=I.responsiveMap)==null||!k.some(function(F){return F.containerSize==="CONTAINER_SIZE_NARROW"&&F.containerType==="CONTAINER_TYPE_VERTICAL_LIST"}));
return{marginSettings:2,containerWidth:C,sizing:y,enableFullBleedForSingleCol:!1,isCompactList:y==="COMPACT"&&I}};
aqz=function(I,C){return _.cg(I.entities,"votingEntity",C)};
M6I=function(I){if(I){var C;return((C=_.N().resolve(_.aU(_.AE)))==null?0:C())?I.darkTheme:I.lightTheme}};
IKz=function(I,C,y){return _.P(_.aF,null,nSH(y,[[0,function(){return _.P("h2",{class:C},I)}],
[1,function(){return _.P("h3",{class:C},I)}],
[2,function(){return _.P("h4",{class:C},I)}]],function(){return _.P("h2",{class:C},I)}))};
CdW=function(I){var C=["shelf-header-layout-wiz"];I.disableHorizontalPadding&&C.push("shelf-header-layout-wiz--disable-horizontal-padding");I.disableVerticalPadding&&C.push("shelf-header-layout-wiz--disable-vertical-padding");I.useResponsiveLayout&&(C.push("shelf-header-layout-wiz--responsive"),I.forceSmallLayout&&C.push("shelf-header-layout-wiz--narrow"));I.isOverlay&&C.push("shelf-header-layout-wiz--is-overlay");I.onClick&&C.push("shelf-header-layout-wiz--tappable");var y=["shelf-header-layout-wiz__title"];
I.forceSmallLayout&&y.push("shelf-header-layout-wiz__title--small-title");var k=["shelf-header-layout-wiz__leading-image"];I.circularImage&&k.push("shelf-header-layout-wiz__leading-image--circular-image");var F=_.uk(function(z){var c;(c=I.onClick)==null||c.call(I,z)});
return _.P("yt-shelf-header-layout",{class:C.join(" "),"on:click":F,tabindex:I.onClick?0:void 0},I.leadingIcon?_.P("div",{class:"shelf-header-layout-wiz__leading-icon"},_.P(_.ez,{icon:I.leadingIcon})):I.leadingImage?_.P("div",{class:k.join(" ")},I.leadingImage()):_.P(_.aF,null),_.P("div",{class:"shelf-header-layout-wiz__label-container"},I.superlabel?_.P("div",{class:"shelf-header-layout-wiz__superlabel"},I.superlabel()):_.P(_.aF,null),_.P("div",{class:"shelf-header-layout-wiz__title-row"},IKz(I.title(),
y.join(" "),I.tagLevel),_.H2(I.detail,function(){return _.P("div",{class:"shelf-header-layout-wiz__detail"},I.detail())})),I.sublabel?_.P("div",{class:"shelf-header-layout-wiz__sublabel"},I.sublabel()):_.P(_.aF,null)),I.trailingActions?_.P("div",{class:"shelf-header-layout-wiz__trailing-actions"},I.trailingActions()):_.P(_.aF,null))};
syH=function(I){var C=_.l(I==null?void 0:I.avatar,_.EG),y,k=(y=I==null?void 0:I.image)!=null?y:_.J9(I==null?void 0:I.themedImage);return _.P(_.aF,null,_.H2(k,function(){return _.P(_.x$,{data:k,alt:"",preserveWidth:!0,preserveHeight:!0})}),_.H2(C,function(){return _.P(_.XS,{data:C})}))};
kHH=function(I){var C=_.l(I.bottomBadge,oiK),y=C&&I.sublabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.P(_.aF,null,_.H2(C,function(){return C&&_.P(yRt,{data:C,class:y})}),_.H2(I.sublabel,function(){return _.P(_.wh,{text:I.sublabel})}))};
FJF=function(I){var C=_.l(I.topBadge,oiK),y=C&&I.superlabel?"ytSectionHeaderViewModelBadgeWithLabel":void 0;return _.P(_.aF,null,_.H2(C,function(){return C&&_.P(yRt,{data:C,class:y})}),_.H2(I.superlabel,function(){return _.P(_.wh,{text:I.superlabel})}))};
zuK=function(I){var C=I.data;var y=I.disableHorizontalPadding;var k=I.disableVerticalPadding;var F=I.forceSmallLayout;var z=I.useResponsiveLayout;I=I.isOverlay;var c=C.sublabel||C.bottomBadge,r=C.superlabel||C.topBadge,w=_.dJ(C.rendererContext);y={title:function(){return _.P(_.wh,{text:C.headline})},
sublabel:c&&function(){return kHH(C)},
superlabel:r&&function(){return FJF(C)},
leadingImage:C.leadingAccessory&&function(){return syH(C.leadingAccessory)},
trailingActions:C.trailingActions&&function(){return _.P(_.aF,null,uuI(C.trailingActions))},
disableHorizontalPadding:y,disableVerticalPadding:k,forceSmallLayout:F,useResponsiveLayout:z,isOverlay:I,onClick:w?function(L){var D=_.Wj(C.rendererContext);D&&_.bU(D,{form:{element:L.target,event:L}})}:void 0};
k=(k=M6I(C==null?void 0:C.backgroundColor))?"background-color: "+_.Xl(k)+";":void 0;return _.P("yt-section-header-view-model",{class:"ytSectionHeaderViewModelHost",style:k},_.P(CdW,Object.assign({},y)))};
TEz=function(I,C){if(I.simpleText)return Object.assign({},I,{simpleText:S2(I.simpleText,C)});if(!I.runs)return I;for(var y=Object.assign({},I,{runs:[]}),k=0,F=_.T(I.runs),z=F.next();!z.done;z=F.next())if(z=z.value,z.text)if(k+z.text.length<=C)y.runs.push(z),k+=z.text.length;else return y.runs.push(Object.assign({},z,{text:S2(z.text,C-k)})),y;return I};
cRI=function(I,C){return _.cg(I.entities,"chipBarStateEntity",C)};
euz=function(I,C){return _.cg(I.entities,"chipEntity",C)};
iTK=function(I,C,y,k){return function(){var F=rRX.has(I.displayType)&&I.selected,z=F&&I.deselectCommand?I.deselectCommand:I.tapCommand;!z||F&&k||_.Gp(z,{form:{element:C==null?void 0:C.value}});y==null||y()}};
w_m=function(I,C){return{triggeringElement:I,onDwellTriggeredFn:function(){var y={triggeringElement:I,loadVideoPreviewEventData:C},k=document.querySelector(".video-preview");k&&k.dispatchEvent(new CustomEvent("yt-load-video-preview",{detail:y}))},
onDwellEndFn:function(){var y=document.querySelector(".video-preview");y&&y.dispatchEvent(new CustomEvent("yt-end-video-preview"))}}};
ni9=function(I,C){var y=_.N().resolve(_.aU(W69)),k=function(){var F=C();return y&&F?w_m(I.value,F):null};
_.l0(function(){var F=k();y&&F&&Promise.resolve().then(function(){y.registerElement(F)});
_.$4(function(){y&&F&&Promise.resolve().then(function(){y.unregisterElement(F)})})})};
LJm=function(I){var C=I.dataset.resizeObserverId;if(C)return C;C=""+Pds++;return I.dataset.resizeObserverId=C};
D_F=function(I,C){var y=LJm(I);$X.has(y)||$X.set(y,new Set);$X.get(y).add(C);Rc.has(y)&&C(Object.assign({},{target:I},Rc.get(y)))};
p_H=function(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=LJm(C.target),k=Object.assign({},{target:C.target},Rc.get(y));if(k!=null&&k.contentRect?k.contentRect.width!==C.contentRect.width||k.contentRect.height!==C.contentRect.height:1)for(Rc.set(y,{borderBoxSize:C.borderBoxSize,contentBoxSize:C.contentBoxSize,contentRect:C.contentRect,devicePixelContentBoxSize:C.devicePixelContentBoxSize}),y=_.T($X.get(y)||[]),k=y.next();!k.done;k=y.next())k=k.value,k(C)}};
NEH=function(){return bs?bs:bs=new QyI(p_H)};
V0I=function(I,C){var y=LJm(I);$X.has(y)&&($X.get(y).delete(C),$X.get(y).size===0&&($X.delete(y),Rc.delete(y),bs.unobserve(I),delete I.dataset.resizeObserverId));$X.size===0&&bs&&(bs.disconnect(),bs=void 0)};
lKH=function(I,C){var y=_.N().resolve(Os);return jyI.map(function(k){return y.observe(I,C,k)})};
X_Y=function(I){var C=_.N().resolve(Os);I.forEach(function(y){C.unobserveByKey(y)})};
_.bTF=function(I,C){var y=Object.assign({},$_m,C);C=_.T(V7Y());var k=C.next().value,F=C.next().value,z=function(c){var r=c.contentRect.height;if((c=c.contentRect.width)||r||y.canHaveZeroSize)k.width()===c&&k.height()===r||F(k,{height:r,width:c})};
_.RU(function(){var c=I instanceof HTMLElement?I:I.value,r=Ru9(z,y.throttleMs),w=[];y.useVisibilityObserver&&(w=lKH(c,function(L,D){requestAnimationFrame(function(){D==="visible"?(D_F(c,r),NEH().observe(c)):V0I(c,r)})}));
w.length||(D_F(c,r),NEH().observe(c));_.$4(function(){w.length&&(X_Y(w),w.length=0);V0I(c,r)})});
return k};
GH9=function(I){var C=I.data;var y=I.callback;var k=I.enableSingleChipSelection;var F=I.disableChipsScrollAnimation;var z=_.Es();I={};I=_.T(Fi(C.autoselectedChipIndex!=null?(I[C.autoselectedChipIndex]=!0,I):{}));var c=I.next().value,r=I.next().value,w=function(){var U=z.value;return U==null||U.scrollLeft-1<=0},L=function(){var U=z.value;
return U==null?!1:U.scrollLeft+1>=(U==null?NaN:U.scrollWidth)-(U==null?NaN:U.clientWidth)};
I=_.T(Fi(w()));var D=I.next().value,p=I.next().value;I=_.T(Fi(L()));var Q=I.next().value,X=I.next().value;I=C.isHorizontallyScrollable;var b=function(U){z.value!=null&&(_.Aq("HTML_DIR")==="rtl"&&(U=-U),z.value.scrollBy({left:U,behavior:F?"instant":"smooth"}))},S=function(){b(-320)},A=function(){b(320)},x=_.uk(function(){var U=w(),yW=L();
U!==D&&p(U);yW!==Q&&X(yW)}),B={},t={};
return _.P("chips-shelf-view-model",{class:"ytChipsShelfViewModelHost"},(C==null?void 0:C.title)&&_.P("h2",{class:"ytChipsShelfViewModelChipsShelfTitle"},C.title),_.P("div",{class:"ytChipsShelfViewModelChipsShelfContent"},_.H2(C.previousButton!=null,function(){var U={};return _.P("div",{class:_.yc("ytChipsShelfViewModelLeftArrowContainer",(U.ytChipsShelfViewModelLeftArrowContainerIsHidden=D,U))},Yyz(C.previousButton,{buttonViewModel:{className:"ytChipsShelfViewModelLeftArrow",onClick:S}}))}),_.P("div",
{el:z,
"on:scroll":x,class:_.yc("ytChipsShelfViewModelChipsScrollContainer",(B.ytChipsShelfViewModelChipsScrollContainerIsHorizontallyScrollable=!!I,B))},_.P("div",{class:_.yc("ytChipsShelfViewModelChipsContainer",(t.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollable=!!I,t.ytChipsShelfViewModelChipsContainerIsHorizontallyScrollableFeaturePhone=!!I&&!1,t))},(C.contents||[]).map(function(U,yW){return _.P("div",{class:"ytChipsShelfViewModelChipWrapper"},Yyz(U,{chipViewModel:{callback:function(a,cs){if(k){var XO=
{};r((XO[yW]=cs,XO))}else XO={},r(Object.assign({},c,(XO[yW]=cs,XO)));y==null||y(a,cs,yW)},
disableDeselection:k,selected:!!c[yW]}}))}))),_.H2(C.nextButton!=null,function(){var U={};
return _.P("div",{class:_.yc("ytChipsShelfViewModelRightArrowContainer",(U.ytChipsShelfViewModelRightArrowContainerIsHidden=Q,U))},Yyz(C.nextButton,{buttonViewModel:{className:"ytChipsShelfViewModelRightArrow",onClick:A}}))})))};
fKz=function(){return fqF&&document.body.hasAttribute("spatial-navigation-enabled")&&document.body.getAttribute("spatial-navigation-enabled")==="true"};
SyH=function(I,C){if(!((C==null?0:C.entitySelectorType)&&(C==null?0:C.entityKey)))return{};switch(C.entitySelectorType){case "LIST_ITEM_VIEW_MODEL_ENTITY_SELECTOR_TYPE_CAPTION_LANGUAGE_SELECTION_TEXT":return I=_.cgO(I,C.entityKey),I=I==null?void 0:I.value,C=!1,I==="CAPTIONS_UNAVAILABLE"&&(C=!0,I=""),Object.assign({},!!I&&{selectionText:{content:I}},{isSelected:!!I},!!I&&{leadingImage:{sources:[{clientResource:{imageName:"CLOSED_CAPTION_SELECTED"}}]}},{isDisabled:C});default:return{}}};
ARm=function(I,C,y,k,F){I=C?I.switchOffCommand:I.switchOnCommand;if(k&&F)KJK(I,y,F);else{var z,c;(z=_.Y$({elementsCommand:I}))==null||(c=z.onclick)==null||c.call(z,y)}};
KJK=function(I,C,y){I=_.Y$({elementsCommand:I,additionalCommandArgs:{commandController:{onSuccess:function(){y(!1)},
onServerError:function(){y(!1)}}}});
if(I==null?0:I.onclick)I.onclick(C),y(!0)};
viH=function(I){if(I)return _.l(I,gi9)};
WJY=function(I){I=I.selectElementClass;var C={};I=_.yc("checkbox-shape-wiz__checkbox",I,(C["checkbox-shape-wiz__checkbox--checkbox-default-style"]=!I,C));return _.P("div",{class:I,"aria-hidden":"true"},_.P(_.ez,{icon:_.V("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.P(_.ez,{icon:_.V("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))};
d_m=function(I){var C=I.name;var y=I.onChange;var k=I.onClick;var F=I.checked===void 0?!1:I.checked;var z=I.labelRenderable;var c=I.hasLeadingLabel;var r=I.labelClass;var w=I.isCompact;var L=I.selectElementClass;var D=I.disableHorizontalPadding;I="checkbox"+_.YX(_.Gx);var p=_.Es(),Q=_.uk(function(S){k==null||k(S);return!1}),X=_.uk(function(S){p.value.checked=F;
y==null||y(S);return!1}),b={};
r=_.yc("checkbox-shape-wiz",r,(b["checkbox-shape-wiz--compact"]=!!w,b["checkbox-shape-wiz--disable-horizontal-padding"]=!!D,b));return _.P("checkbox-shape",null,_.P("label",{class:r},_.P("input",{el:p,class:"checkbox-shape-wiz__input",id:I,checked:F,name:C,type:"checkbox","on:change":X,"on:click":Q}),_.H2(!c,function(){return WJY({isLeading:!0,selectElementClass:L})}),_.H2(z,function(){return _.P("div",{class:"checkbox-shape-wiz__label"},z==null?void 0:z())}),_.H2(c,function(){return WJY({isLeading:!1,
selectElementClass:L})})))};
x_m=function(I){var C=I.useCheckIcon===void 0?!1:I.useCheckIcon;var y=I.selectElementClass;I=C?"CHECK":"CIRCLE";var k="",F=_.V("radio_shape_filled_icon_manual_setting_killswitch");F&&(k=C?"CHECK":"CIRCLE_FILLED");var z={};y=_.yc("radio-shape-wiz__radio",y,(z["radio-shape-wiz__radio--check-icon"]=!!C,z["radio-shape-wiz__radio--radio-default-style"]=!y,z));return F?_.P("div",{class:y,"aria-hidden":"true"},_.P(_.ez,{icon:I}),_.P(_.ez,{icon:k,active:!C})):_.P("div",{class:y,"aria-hidden":"true"},_.P(_.ez,
{icon:I}),_.P(_.ez,{icon:I,active:!C}))};
qyW=function(I){function C(){var U;((U=_.N().resolve(_.aU(_.Du)))==null?0:U.isKeyBoardInUse())&&A.value.classList.add("radio-shape-wiz__label-container--keyboard-focused")}
function y(){A.value.classList.remove("radio-shape-wiz__label-container--keyboard-focused")}
var k=I.name;var F=I.onChange;var z=I.onClick;var c=I.checked===void 0?!1:I.checked;var r=I.labelRenderable;var w=I.useCheckIcon;var L=I.hasLeadingLabel;var D=I.labelClass;var p=I.isCompact;var Q=I.selectElementClass;var X=I.ariaLabel;var b=I.className;I=YS(function(){return"radio"+_.YX(_.Gx)});
var S=_.Es(),A=_.Es(),x=_.uk(function(U){S.value.checked=c;F==null||F(U);return!1}),B=_.uk(function(U){z==null||z(U);
return!1}),t=["radio-shape-wiz"];
b&&t.push(b);b={};D=_.yc("radio-shape-wiz__label-container",D,(b["radio-shape-wiz--compact"]=!!p,b));jR(function(){document.activeElement===S.value&&C()});
_.RU(function(){var U=S.value;U.addEventListener("focusin",C);U.addEventListener("focusout",y);return function(){U.removeEventListener("focusin",C);U.removeEventListener("focusout",y)}});
return _.P("radio-shape",{class:t.join(" ")},_.P("input",{el:S,class:"radio-shape-wiz__input",id:I,"prop:checked":c,name:k,type:"radio","on:change":x,"on:click":B,"aria-label":X}),_.P("label",{class:D,for:I,el:A},_.H2(!L,function(){return x_m({checked:c,useCheckIcon:w,isLeading:!0,selectElementClass:Q})}),_.H2(r,function(){return _.P("div",{class:"radio-shape-wiz__label",
"aria-hidden":X?"true":"false"},r==null?void 0:r())}),_.H2(L,function(){return x_m({checked:c,
useCheckIcon:w,isLeading:!1,selectElementClass:Q})})))};
m_X=function(I,C){return!!(C&&(I.leadingImage||I.leadingAccessory)||!C&&(I.trailingImage||I.trailingButton||I.trailingButtons||I.selectionText))};
Eis=function(I){var C=I.data;var y=I.isLeading;var k=I.hideSelectionTextChevron;if(m_X(C,y)){var F=_.yc("yt-list-item-view-model-wiz__button-container");I={};var z=_.yc("yt-list-item-view-model-wiz__image-container",(I["yt-list-item-view-model-wiz__leading"]=y,I["yt-list-item-view-model-wiz__trailing"]=!y,I)),c=y?C.leadingImage:C.trailingImage,r=_.yc("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");I={};var w=_.yc("yt-list-item-view-model-wiz__accessory",(I["yt-list-item-view-model-wiz__leading"]=
y,I["yt-list-item-view-model-wiz__trailing"]=!y,I)),L=!!C.selectionText,D=ZTI(C.listItemIconAfterSelectionText);return function(){var p;return _.P(_.aF,null,_.H2(c,function(){return _.P("div",{class:z,"aria-hidden":"true"},_.P(_.x$,{data:c,alt:"",preserveWidth:!0,preserveHeight:!0,className:r}))}),_.H2(y&&C.leadingAccessory,function(){return _.P("div",{class:z},BEI(C.leadingAccessory,{avatarViewModel:{avatarButtonCustomClassName:r}}))}),_.H2(!y&&C.trailingButton,function(){return _.P("div",{class:F},
BEI(C.trailingButton,{buttonViewModel:{className:w}}))}),_.H2(!y&&((p=C.trailingButtons)==null?void 0:p.buttons),function(){var Q;
return _.P("div",{class:F},BEI((Q=C.trailingButtons)==null?void 0:Q.buttons,{buttonViewModel:{className:w},accountLinkButtonViewModel:{className:w},switchButtonViewModel:{className:w},subscribeButtonViewModel:{isOverlay:!1,animateWidth:!1},toggleButtonViewModel:{className:w}}))}),_.H2(!y&&L,function(){return _.P(_.aF,null,_.P(_.wh,{text:C.selectionText,
className:_.yc("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.H2(!k,function(){return _.P(_.ez,{icon:D,className:"yt-list-item-view-model-wiz__chevron-icon"})}))}))}}};
ZTI=function(I){switch(I){case "LIST_ITEM_ICON_AFTER_SELECTION_TEXT_EXPAND_MORE":return"expand_more";default:return"chevron_right"}};
huF=function(I){return I.title||I.subtitle?function(){return _.P("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.P("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.H2(I.title,function(){return _.P(_.wh,{text:I.title,className:"yt-list-item-view-model-wiz__title"})})),_.H2(I.subtitle,function(){return _.P(_.wh,{text:I.subtitle,
className:"yt-list-item-view-model-wiz__subtitle"})}))}:function(){return _.P(_.aF,null)}};
t0Y=function(I){function C(){var hX;((hX=_.N().resolve(_.aU(_.Du)))==null?0:hX.isKeyBoardInUse())&&yW.value.classList.add("yt-list-item-view-model-wiz--keyboard-focused")}
function y(){yW.value.classList.remove("yt-list-item-view-model-wiz--keyboard-focused")}
var k=I.data;var F=I.isMenuItem;var z=I.isCompact;var c=I.onTap;var r=I.trailingAccessory;var w=I.hideSelectionTextChevron;var L=I.disabled;var D=I.inPopup;var p=I.disableHorizontalPadding;var Q=I.isOverlay;I=PNI(function(hX){return SyH(hX,k)});
var X=_.V("enable_web_shorts_captions_language_command")?Object.assign({},k,I):k;I=!(X.isSelected===void 0||!X.selectionStyle||X.selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED");var b=(_.dJ(X.rendererContext)||c)&&!I,S=_.dJ(X.rendererContext)||I;L=!!X.isDisabled||!!L;var A={};Q=_.yc("yt-list-item-view-model-wiz",(A["yt-list-item-view-model-wiz--is-overlay"]=!!Q,A));A={};var x=_.yc("yt-list-item-view-model-wiz__label",(A["yt-list-item-view-model-wiz__container"]=!I,A["yt-list-item-view-model-wiz__container--disabled"]=
L,A["yt-list-item-view-model-wiz__container--has-subtitle"]=!!X.subtitle,A["yt-list-item-view-model-wiz__container--compact"]=!!z,A["yt-list-item-view-model-wiz__container--tappable"]=b,A["yt-list-item-view-model-wiz__container--in-popup"]=!!D,A));L={};L=_.yc("yt-list-item-view-model-wiz__container",(L["yt-list-item-view-model-wiz__container--tappable"]=S,L["yt-list-item-view-model-wiz__container--compact"]=!!z,L["yt-list-item-view-model-wiz__container--in-popup"]=!!D,L["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=
!!p,L));A=X.leadingImage||X.leadingAccessory;var B=_.yc("yt-list-item-view-model-wiz__image-container",A?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"),t=_.V("apply_button_role_to_list_item");D=_.Es();var U=_.Es(),yW=t?U:D,a=function(){var hX,vs,mY;return _.P(_.aF,null,(hX=Eis({data:X,isLeading:!0,hideSelectionTextChevron:!!w}))==null?void 0:hX(),(vs=huF(X))==null?void 0:vs(),r?_.P("div",{class:"yt-list-item-view-model-wiz__trailing"},r()):(mY=Eis({data:X,isLeading:!1,
hideSelectionTextChevron:!!w}))==null?void 0:mY())},cs=function(){return t?_.P("div",{class:x,
el:U,role:S||b?"button":void 0,tabindex:c||b?0:void 0,"on:keydown":$z,"on:click":Rm},a()):_.P("div",{class:x,el:U},a())},XO={labelRenderable:cs,
isCompact:z,checked:X.isSelected,hasLeadingLabel:!!A,labelClass:L,selectElementClass:B,disableHorizontalPadding:!!p};_.xA(D,X.rendererContext);var Rm=_.uk(function(hX){return void(c==null?void 0:c(hX))}),$z=_.gJ();
_.RU(function(){b&&(yW.value.addEventListener("focusin",C),yW.value.addEventListener("focusout",y));return function(){yW.value&&b&&(yW.value.removeEventListener("focusin",C),yW.value.removeEventListener("focusout",y))}});
z=_.uk(function(){return!1});
return _.P("yt-list-item-view-model",{el:D,class:Q,role:F?"menuitem":"listitem",tabindex:t?void 0:c||b?0:void 0,"on:keydown":t?z:$z,"on:click":t?z:Rm},_.H2(I,function(){return nSH(X.selectionStyle,[["LIST_ITEM_SELECTION_STYLE_CHECKBOX",function(){return _.P(U_K,Object.assign({},XO))}],
["LIST_ITEM_SELECTION_STYLE_RADIO",function(){return _.P(HTs,Object.assign({},XO))}],
["LIST_ITEM_SELECTION_STYLE_DEFAULT",function(){return _.P(HTs,Object.assign({},XO,{useCheckIcon:!0}))}]],function(){return cs()})},function(){return cs()}))};
IEm=function(I,C,y){if(C)return[JRt];switch(I){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_COMPLETE":return[fn];case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFERRING":return y?[fn]:[OTI,fn];case "TRANSFER_STATE_PAUSED_BY_USER":return[aKI,fn];case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":return[M0t,fn];default:return[JRt]}};
CrI=function(I,C,y,k){return IEm(I,C,k).map(function(F){var z=F.text,c=F.iconType,r=F.videoAction;F=F.playlistAction;z=z?{content:z}:void 0;c=c&&{sources:[{clientResource:{imageName:c}}]};var w=(0,_.Le.unsafeClone)(y);if(w){var L=_.l(w,_.uY),D=_.l(w,_.zU);L&&r?L.action=r:D&&F&&(D.action=F)}return{title:z,leadingImage:c,rendererContext:w&&{commandContext:{onTap:{innertubeCommand:w}}}}})};
sxH=function(I){I=_.Wj(I.rendererContext);var C;return(C=_.l(I,_.zU))==null?void 0:C.playlistId};
onH=function(I){var C;return(C=I.listItems)==null?void 0:C.some(function(y){var k;return _.dJ((k=_.l(y,_.Pj))==null?void 0:k.rendererContext)})};
kQF=function(I){var C=I.data;var y=I.isCompact;var k=I.hideSelectionTextChevron;var F=I.inPopup;I=I.isOverlay;var z=onH(C)&&F,c={};return _.P("yt-list-view-model",{class:_.yc("yt-list-view-model-wiz",(c["yt-list-view-model-wiz--kaios-spat-nav"]=fKz(),c)),role:z?"menu":"list"},ybF(C.listItems,{listItemViewModel:{isMenuItem:z,isCompact:y,hideSelectionTextChevron:k,inPopup:F,isOverlay:I},downloadListItemViewModel:{isMenuItem:z,isCompact:y,inPopup:F}}))};
SL=function(I){var C=_.N().resolve(_.aU(_.AE));return C!=null&&C()?I.darkThemeColorPalette:I.lightThemeColorPalette};
Aa=function(I){return{primaryTextColor:Kn(I,0),secondaryTextColor:Kn(I,1),optionColor:Kn(I,2),backgroundColor:Kn(I,3),videoBackgroundColor:Kn(I,4)}};
Kn=function(I,C){if(I){switch(C){case 0:I=I.primaryTitleColor;break;case 1:I=I.secondaryTitleColor;break;case 2:I=I.surgeColor;break;case 3:I=I.section2Color;break;case 4:I=I.section3Color;break;default:return}if(I)return _.lg(I)}};
F3I=function(I){return I?_.Xl(I):""};
uXI=function(I){return(I==null?void 0:I.contentType)==="LOCKUP_CONTENT_TYPE_SOURCE"?64:void 0};
zeK=function(I,C){var y;return"linear-gradient(to bottom, "+((y=C==null?void 0:C.map(function(k){var F=I?k.darkThemeColor:k.lightThemeColor;return F?_.Xl(F)+" "+((k==null?void 0:k.startLocation)||0)*100+"%":"transparent"}))==null?void 0:y.join(", "))+")"};
T$I=function(I){var C=I.className;var y=I.data;var k=I.isOverlay;var F=I.maxLinesOverride;var z=I.useMediumText;I=_.Es();var c=y.description,r=y.alwaysShowTruncationText,w=y.truncationText,L=y.maxLines,D,p=!((D=_.l(y.rendererContext,dWm))==null||!D.onTap),Q,X,b=(X=(Q=_.l(y.rendererContext,_.mO))==null?void 0:Q.label)!=null?X:"";D=_.T(Fi(!1));var S=D.next().value,A=D.next().value;_.xA(I,y.rendererContext);D=_.uk(function(){y.expandOnTap&&A(!S);return!1});
Q={};return _.P("yt-description-preview-view-model",{el:I,class:_.yc("yt-description-preview-view-model-wiz",C,(Q["yt-description-preview-view-model-wiz--clickable"]=p,Q["yt-description-preview-view-model-wiz--is-overlay"]=k,Q)),"on:click":D},_.H2(c,function(){var x={};return S?_.P("div",{class:_.yc("yt-description-preview-view-model-wiz__description",(x["yt-description-preview-view-model-wiz__description--medium-text"]=z,x))},_.P(_.wh,{text:c})):_.P(hDt,{text:c,alwaysShowTruncationText:r,truncationText:w,
maxLines:F!=null?F:L,isOverlay:k,accessibilityLabel:b,useMediumText:z})}))};
rbz=function(I,C,y,k,F){var z=!I.metadata;var c=C?_.l(I.heroImage,cbs):_.l(I.animatedImage||I.image,cbs);if(!c)return{size:0};I=c.style;var r=c.layoutMode;c=DNt(LHH(c));if(C)C=eem(y,I,r,c,F);else a:if(z)C=y===1?{size:48}:{size:72};else switch(y){case 1:C={size:72};break a;case 2:C={size:120};break a;default:C=k<4?{size:120}:{size:160}}return C};
eem=function(I,C,y,k,F){if(!((k==null?0:k.height)&&(k==null?0:k.width)))return{size:0};var z=k.width;k=k.height;if(F)return C==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"&&z>k?{size:312/nQF}:C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"?{size:160}:{size:312};if(!(y!=="CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"||I!==1&&I!==2||C!=="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"&&C!=="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"&&C!==
"CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"))return{allowFullWidth:!0};if(C==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||C==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"||k===z)switch(I){case 1:return{size:208};case 2:case 3:return{size:240};default:return{size:360}}if(C==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||k>z)switch(I){case 1:case 3:return{size:240*whI};default:return{size:360*whI}}switch(I){case 1:case 2:return{size:1/nQF*(window.innerWidth-32)};case 3:return{size:160};
default:return{size:240}}};
_.iU9=function(I){if(!("matchMedia"in window))return _.xS(Error("Oh")),function(){return!1};
var C=window.matchMedia(I);I=_.T(_.c4(C.matches,void 0,"jLJc8e"));var y=I.next().value,k=I.next().value,F=function(z){k(z.matches)};
C.addEventListener?(C.addEventListener("change",F),_.$4(function(){C.removeEventListener("change",F)})):C.addListener&&(C.addListener(F),_.$4(function(){C.removeListener(F)}));
return y};
wIt=function(I){return I==="IMAGE_BANNER_STYLE_INSET"||I==="IMAGE_BANNER_STYLE_UNKNOWN"};
nnt=function(){var I=_.V("web_enable_sink_page_header_view_model"),C=I?_.c4:Fi;if(!("matchMedia"in window))return _.xS(Error("Oh")),0;var y=YS(function(){return window.matchMedia("(max-width: 527.9px)")}),k=YS(function(){return window.matchMedia("(min-width: 528px) and (max-width: 839.9px)")}),F=YS(function(){return window.matchMedia("(min-width: 840px) and (max-width: 1023.9px)")}),z=YS(function(){return window.matchMedia("(min-width: 1024px)")}),c=_.T(C(y.matches)),r=c.next().value,w=c.next().value;
c=_.T(C(k.matches));var L=c.next().value,D=c.next().value;c=_.T(C(F.matches));var p=c.next().value,Q=c.next().value;C=_.T(C(z.matches));var X=C.next().value,b=C.next().value,S=YS(function(){return function(t){w(t.matches)}}),A=YS(function(){return function(t){D(t.matches)}}),x=YS(function(){return function(t){Q(t.matches)}}),B=YS(function(){return function(t){b(t.matches)}});
_.RU(function(){y.addEventListener?(y.addEventListener("change",S),k.addEventListener("change",A),F.addEventListener("change",x),z.addEventListener("change",B)):y.addListener&&(y.addListener(S),k.addListener(A),F.addListener(x),z.addListener(B));var t=function(){y.removeEventListener?(y.removeEventListener("change",S),k.removeEventListener("change",A),F.removeEventListener("change",x),z.removeEventListener("change",B)):y.removeListener&&(y.removeListener(S),k.removeListener(A),F.removeListener(x),
z.removeListener(B))};
if(I)_.$4(t);else return t});
return I?function(){return r()?1:L()?2:p()?3:X()?4:0}:r?1:L?2:p?3:X?4:0};
PrX=function(I){var C=0;I=_.T([I.title,I.metadata,I.actions,I.description,I.attribution]);for(var y=I.next();!y.done;y=I.next())y.value&&C++;return C};
DBz=function(I,C,y){var k=I.image,F=_.l(k,L3K),z=F==null?void 0:F.avatar,c=_.l(z,_.EG);if(k&&z&&c){switch(C){case 1:c.avatarImageSize="AVATAR_SIZE_XL";break;case 2:c.avatarImageSize="AVATAR_SIZE_XXL";break;default:y<4?c.avatarImageSize="AVATAR_SIZE_XXL":c.avatarImageSize="AVATAR_SIZE_XXXL"}_.V("web_enable_sink_page_header_view_model")&&(_.V5(z,_.EG,Object.assign({},c)),F.avatar=Object.assign({},z),_.V5(k,L3K,Object.assign({},F)),I.image=Object.assign({},k))}};
pIz=function(I){return I===1||I===2?1:0};
Qxm=function(I,C){return I?_.P("div",{class:"page-header-view-model-wiz__scroll-container"},C()):C()};
Vpm=function(I){var C=I.data;var y=I.noPadding;var k=I.enableBanner;var F=I.cinematicContainerTopbarOffset;var z=I.allowCinematicContainerOverflow;var c=I.displayAsSidebar;var r=I.displayAsPanel;I=PrX(C);var w=!!C.heroImage,L=!!C.image||!!C.animatedImage,D=!!C.background,p=c||r?1:nnt(),Q=p===1,X=p===2,b=Q||X,S=p===4,A=rbz(C,w,p,I,c),x={};y=_.yc((x["page-header-view-model-wiz"]=!0,x["page-header-view-model-wiz--no-padding"]=!!y,x["page-header-view-model-wiz--small-top-padding"]=Q&&!C.actions||X&&!(L||
w),x["page-header-view-model-wiz--small-bottom-padding"]=b&&!C.actions,x["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=!z,x["page-header-view-model-wiz--display-as-sidebar"]=c,x["page-header-view-model-wiz--display-as-panel"]=r,x));z={};var B=_.yc((z["page-header-view-model-wiz__page-header-headline"]=!0,z["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=A.allowFullWidth,z)),t=b&&!A.allowFullWidth;r=(z=Q&&(w||L)&&I>0)&&r;X={};r=(X["page-header-view-model-wiz__page-header-title"]=
!0,X["page-header-view-model-wiz__page-header-title--page-header-title-large"]=!z,X["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=z&&!r,X["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=r,X["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=D,X);z={};z=(z["page-header-view-model-wiz__page-header-headline-image"]=!0,z["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=
w&&b,z);var U;X={};var yW=(X["page-header-view-model-wiz__page-header-banner-container"]=k,X["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=k&&((U=_.l(C.banner,_.N$F))==null?void 0:U.style)==="IMAGE_BANNER_STYLE_FULL_BLEED",X);U={};U=(U["page-header-view-model-wiz__page-header-content-metadata"]=!0,U["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=D,U);X={};X=(X["page-header-view-model-wiz__page-header-flexible-actions"]=!0,
X["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=!!C.metadata||b,X["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=!b,X);x={};x=(x["page-header-view-model-wiz__page-header-attribution"]=!0,x["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=D,x);var a={descriptionPreviewViewModel:{className:"page-header-view-model-wiz__page-header-description",isOverlay:D,
maxLinesOverride:Q?void 0:1,useMediumText:S},dynamicTextViewModel:{className:_.yc(r)},contentPreviewImageViewModel:{className:_.yc(z),imageSizeConfig:A},contentMetadataViewModel:{layout:Q?1:0,className:_.yc(U),isOverlay:D,useMediumText:S},flexibleActionsViewModel:{layout:pIz(p),className:_.yc(X)},attributionViewModel:{className:_.yc(x),useMediumText:S},decoratedAvatarViewModel:{className:_.yc(z)},cinematicContainerViewModel:{topbarOffset:F},flexibleContainer:{isOverlay:D}};L&&DBz(C,p,I);return _.P("yt-page-header-view-model",
{class:y},_.H2(D,function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-background"},gl(C.background,a))}),Qxm(!!c,function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-content"},_.H2(k&&(C==null?void 0:C.banner),function(){return _.P("div",{class:_.yc(yW)},gl(C==null?void 0:C.banner,a))}),_.P("div",{class:B},_.H2(L,function(){return gl((C==null?void 0:C.animatedImage)||(C==null?void 0:C.image),a)}),_.H2(w&&!t,function(){return gl(C==null?void 0:C.heroImage,
a)}),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H2(w&&t,function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},gl(C==null?void 0:C.heroImage,a))}),_.H2(C==null?void 0:C.title,function(){return gl(C==null?void 0:C.title,a)}),_.H2(C.metadata,function(){return gl(C.metadata,a)}),_.H2(C.description&&!Q,function(){return gl(C.description,a)}),_.H2(C.attribution&&!b,function(){return gl(C.attribution,a)}),_.H2(C.actions&&
!b,function(){return gl(C.actions,a)}))),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H2(C.description&&Q,function(){return gl(C.description,a)}),_.H2(C.attribution&&b,function(){return gl(C.attribution,a)}),_.H2(C.actions&&b,function(){return gl(C.actions,a)})),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.H2(C.bottomMetadataFlexibleContainer,function(){return gl(C.bottomMetadataFlexibleContainer,a)})))}))};
lEI=function(I){var C,y=((C=_.N().resolve(_.aU(_.AE)))==null?0:C())&&I.data.darkThemeImage?I.data.darkThemeImage:I.data.image;C=_.P("div",{class:"ytwSearchFrictionViewModelHostImageAndMenuWrapper"},_.P("div",{class:"ytwSearchFrictionViewModelHostImageContainer"},y?_.P(_.x$,{data:y,alt:"",className:"ytwSearchFrictionViewModelHostImage"}):null),jxY(I.data.overflowMenuButton,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostMenuButton"}}));y=_.P(_.wh,{text:I.data.title,className:"ytwSearchFrictionViewModelHostTitle"});
var k=I.data;if(k.bodyText){var F=[];k=_.T(k.bodyText);for(var z=k.next();!z.done;z=k.next())F.push(_.P(_.wh,{text:z.value,className:"ytwSearchFrictionViewModelHostBodyText"}))}else F=_.P(_.aF,null);return _.P("ytw-search-friction-view-model",{class:"ytwSearchFrictionViewModelHost"},C,y,F,jxY(I.data.actions,{buttonViewModel:{className:"ytwSearchFrictionViewModelHostButton"}}),_.P(_.wh,{text:I.data.disclaimer,className:"ytwSearchFrictionViewModelHostDisclaimer"}),_.P(_.wh,{text:I.data.attribution,
className:"ytwSearchFrictionViewModelHostAttribution"}))};
$BX=function(I){I=(new XIs).parse(I);return(new ei).render(I).replace(/\b(?:\d{1,2}:)?(?:\d{1,2}:)\d{1,2}\b/g,function(C){var y=C.split(":").map(Number),k=0,F=0;if(y.length===3)y=_.T(y),k=y.next().value,F=y.next().value,y=y.next().value;else if(y.length===2)y=_.T(y),F=y.next().value,y=y.next().value;else if(y.length===1)y=_.T(y).next().value;else throw Error("Ph");return'<span class="ytwMarkdownDivTimestamp" data-time="'+(k*3600+F*60+y)+'" role="button">'+C+"</span>"})};
ReO=function(I){I=_.T(I.getElementsByClassName("ytwMarkdownDivTimestamp"));for(var C=I.next(),y={};!C.done;y={clickHandler$jscomp$4:void 0},C=I.next()){C=C.value;y.clickHandler$jscomp$4=function(F){F=Number(F.target.getAttribute("data-time"));if(isNaN(F))throw Error("Qh");var z=document.querySelector("video");z&&(z.currentTime=F)};
var k=function(F){return function(z){z.key!=="Enter"&&z.key!=="Space"||(0,F.clickHandler$jscomp$4)(z)}}(y);
C.setAttribute("tabindex","0");C.removeEventListener("click",y.clickHandler$jscomp$4);C.removeEventListener("keydown",k);C.addEventListener("click",y.clickHandler$jscomp$4);C.addEventListener("keydown",k)}};
bUI=function(){return _.P("overview-answer-ghost-card",{class:"ytwOverviewAnswerGhostCardHost"},_.P(vp,{percentWidth:100}),_.P(vp,{animationDelay:200}),_.P(vp,{animationDelay:400}),_.P(vp,{animationDelay:600}),_.P(vp,{animationDelay:800,percentWidth:60}),_.P("div",{class:"ytwOverviewAnswerGhostCardLineBreak"}),_.P(vp,{percentWidth:100}),_.P(vp,{animationDelay:200}),_.P(vp,{animationDelay:400}),_.P(vp,{animationDelay:600,percentWidth:50}))};
vp=function(I){return _.P("div",{class:"ytwOverviewAnswerGhostCardGhostLine",style:"max-width:"+(I.percentWidth===void 0?100:I.percentWidth)+"%"},_.P("div",{class:"ytwOverviewAnswerGhostCardSlider",style:"animation-delay:"+(I.animationDelay===void 0?0:I.animationDelay)+"ms"}))};
YTI=function(){var I=_.T(_.c4(function(){return""},void 0,"v2wS5e")),C=I.next().value;
return[function(){return C()()},
I.next().value]};
fEY=function(I){I=I===void 0?{}:I;return{title:_.Cx(I.localizedOptInBannerTitleText===void 0?"":I.localizedOptInBannerTitleText),titleLength:19,subtitle:_.Cx(I.localizedOptInMessage===void 0?"":I.localizedOptInMessage),primaryButton:{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cx(_.PQ("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:_.Cx(_.PQ("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:[GQI]},
loggingDirectives:{clientVeSpec:{uiType:127982}}}};
STH=function(I,C){I=I?t6m(I):"";C!==void 0&&isFinite(C)?C===0?C=_.PQ("UPDATING",void 0,"Updating..."):(C=yJY(new Date(C),new Date),C=_.PQ("UPDATED_TIME",{relative_time:C},"Updated "+C)):C="";var y="";I&&C&&(y=" \u2022 ");return _.Cx(I+y+C)};
gns=function(I,C,y,k,F,z){C=C===void 0?0:C;var c=K3I[C],r=c.title,w=c.iconType,L=c.topButtonRenderer,D=c.sectionClientVE;c=c.videoClientVE;var p;if(C!==1||I.length){y=[];I=_.T(I);for(k=I.next();!k.done;k=I.next()){var Q=k.value;if(WqK(Q))y.push({downloadedVideoGridVideoRenderer:{renderer:{gridVideoRenderer:{videoId:Q.videoEntity.videoId,title:se(Q.videoEntity.title),shortBylineText:se(Q.channelEntity.title),thumbnail:Q.videoEntity.thumbnail,menu:{menuRenderer:{items:[{menuServiceItemDownloadRenderer:{serviceEndpoint:{offlineVideoEndpoint:{videoId:Q.videoEntity.videoId}}}}],
accessibility:{accessibilityData:{label:_.PQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}}}});else if(vrY(Q)){k=y;var X=k.push;var b=void 0,S=void 0,A=void 0,x=void 0,B=void 0,t=void 0,U=void 0,yW=void 0,a=Q.mainPlaylistEntity.playlistId,cs=Q==null?void 0:(yW=Q.mainPlaylistEntity)==null?void 0:(U=yW.thumbnailStyleData)==null?void 0:(t=U[0])==null?void 0:(B=t.value)==null?void 0:(x=B.collageThumbnail)==null?void 0:x.coverThumbnail;x=dCm(a);if(!_.V("enable_offline_playlist_page")&&
(Q==null?0:(A=Q.mainPlaylistEntity)==null?0:A.videos)){b:{A=Q==null?void 0:(S=Q.mainPlaylistEntity)==null?void 0:S.videos;S=_.Hg().getState().entities;if(A!=null&&A.length&&S)for(A=_.T(A),B=A.next();!B.done;B=A.next())if(B=_.Fy(B.value).entityId,(B=JSON.parse(B).videoId)&&JpI(S,B)==="TRANSFER_STATE_COMPLETE"){S=B;break b}S=""}S!==void 0&&(x=vg(_.Hg().getState(),S),x=_.IQ(S,a,void 0,void 0,x))}S=qIF(_.PQ("VIEW_FULL_PLAYLIST",void 0,"View full playlist"),dCm(a));Q=a&&cs&&S?{playlistId:a,navigationEndpoint:x,
viewPlaylistText:S,thumbnailRenderer:{playlistVideoThumbnailRenderer:{thumbnail:cs}},title:se(Q.mainPlaylistEntity.title),shortBylineText:se(Q==null?void 0:(b=Q.channelEntity)==null?void 0:b.title),menu:{menuRenderer:{items:[{menuServiceItemRenderer:{text:AbY,icon:{iconType:"DELETE"},serviceEndpoint:{offlinePlaylistEndpoint:{playlistId:a,action:"ACTION_REMOVE_WITH_PROMPT"}}}}],accessibility:{accessibilityData:{label:_.PQ("VIDEO_ACTION_MENU",void 0,"Action menu")}}}},loggingDirectives:{clientVeSpec:{uiType:c}}}:
void 0;X.call(k,{gridPlaylistRenderer:Q})}}c={gridRenderer:{items:y}};C===1&&(p=STH(F,z))}else if(k){var XO=_.Cx((X=y==null?void 0:y.localizedPromptMessage)!=null?X:"");c={horizontalListRenderer:{items:[{toggleButtonRenderer:{style:{styleType:"STYLE_PRIMARY"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cx(_.PQ("UPDATE_SMART_DOWNLOADS_NOW",void 0,"Update now")),isDisabled:!1,defaultServiceEndpoint:{offlineOrchestrationActionCommand:{actions:[{actionType:"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH",
entityKey:_.s$z}]}},loggingDirectives:{clientVeSpec:{uiType:129730}}}},{toggleButtonRenderer:{style:{styleType:"STYLE_BLUE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},defaultText:_.Cx(_.PQ("TURN_OFF",void 0,"Turn off")),isDisabled:!1,defaultServiceEndpoint:{updateLocalAppSettingCommand:{settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:!1}},loggingDirectives:{clientVeSpec:{uiType:129731}}}}],loggingDirectives:{clientVeSpec:{uiType:129729}}}};p=STH(F,z)}else XO=_.Cx(_.PQ("WAITING_TO_DOWNLOAD",void 0,"Waiting to download...")),
c={};return{contents:[{shelfRenderer:{title:r,titleAnnotation:p,icon:{iconType:w},subtitle:XO,content:c,menu:{menuRenderer:{topLevelButtons:[{buttonRenderer:L}]}}}}],loggingDirectives:{clientVeSpec:{uiType:D}}}};
vnm=function(I,C,y,k,F,z,c,r){y=y===void 0?{}:y;k=k===void 0?!1:k;F=F===void 0?!1:F;z=z===void 0?!1:z;c=c===void 0?0:c;r=r===void 0?-Infinity:r;if(!C.length&&!I.length&&!k)return F?[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:qcI(y)}]}}]:[{itemSectionRenderer:{contents:[{backgroundPromoRenderer:{title:_.Cx(_.PQ("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 w=[];I.length&&w.push(gns(I,0));k?w.push(gns(C,1,y,z,c,r)):F&&w.push({contents:[{statementBannerRenderer:fEY(y)}]});(k&&C.length||I.length)&&w.push({contents:[{messageRenderer:{subtext:{messageSubtextRenderer:{text:_.Cx(_.PQ("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 w.map(function(L){return{itemSectionRenderer:L}})};
Wp=function(I,C){if(typeof I!=="object")return null;I=_.T(Object.entries(I));for(var y=I.next();!y.done;y=I.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;if(y===C)return y;if(k=Wp(k,C))return y+"."+k}return null};
dl=function(I){var C=I.content;return(I=I.styleRuns)&&C?{runs:I.map(function(y){var k={text:C.slice(y.startIndex,y.startIndex+y.length)};y.fontColor&&(k.textColor=y.fontColor);return k})}:{simpleText:C}};
xBO=function(I,C,y,k){var F=W3s;k&&(I.quantity=k);if(!I.quantity||!I.maxQuantity)return{};k=I.minusButton;var z=I.plusButton,c,r,w,L;return{value:I.quantity,maxValue:I.maxQuantity,onChangeCallback:function(D){F(I,D)},
minusLabel:(c=_.l(k,dBO))==null?void 0:c.label,minimumReachedLabel:(r=_.l(k,dBO))==null?void 0:r.limitReachedLabel,plusLabel:(w=_.l(z,dBO))==null?void 0:w.label,maximumReachedLabel:(L=_.l(z,dBO))==null?void 0:L.limitReachedLabel,disabled:C,onRemoveCommand:y}};
W3s=function(I,C){var y=I.quantityIncrementerEntityKey;if(y){var k={};k.quantity=C;_.qH(_.bY("quantityIncrementerEntity",y,k));I.onChangeCommand&&_.Gp(I.onChangeCommand)}};
qTY=function(I){return _.V("kevlar_comments_clone_data_killswitch")?I:_.Le.unsafeClone(I)};
B$K=function(I,C){(I=mBI(I))&&(C?ZUH.push({command:I,sourceData:{},commandContext:void 0}):_.N().resolve(_.ID).resolveCommand(I))};
mBI=function(I){return _.l(I,_.$$)};
Enz=function(){var I=window.performance.timeOrigin+window.performance.now(),C=(new _.xX).setSeconds(I/1E9);return _.n2(C,2,_.PR(I%1E9),0)};
qE=function(I,C){var y=_.l(_.l(I,_.$$),hem);y&&(C&&(y.serializedAdditionalMetadata=_.HR(C)),B$K(I,!0))};
UBI=function(I){switch(I){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"}};
HUX=function(){return!!_.Aq("ID_TOKEN")};
OUO=function(I){return I instanceof Error&&I.cause instanceof tpI&&I.cause.rpcErrorCode!==void 0?!JbK.includes(I.cause.rpcErrorCode):!0};
Mpm=function(){return _.hq(aEF,{authuser:""+(_.Aq("SESSION_INDEX")||0)})};
m2=function(I,C,y,k){y=y===void 0?"MINI_APP_SDK_API_UNSPECIFIED":y;k=k===void 0?"":k;var F=new _.ph;y={source:"MINI_APP_ERROR_SOURCE_PLAYABLE_CONTAINER",sdkVersion:k,sdkApi:y};I instanceof Error&&(F.message=I.message,F.name=I.name,I.cause instanceof tpI&&I.cause.rpcErrorCode!==void 0&&(y.rpcErrorCode=I.cause.rpcErrorCode));var z;(z=C.onError)==null||z.call(C,{loggingError:F,metadata:y})};
CPF=function(I,C,y,k){switch(I){case "MINI_APP_SOURCE_GAMESNACKS":return new ZZ(C,y,k);default:return new IPz(C,y,k)}};
soI=function(I){switch(I){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"}};
oEX=function(I){switch(I){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"}};
yOs=function(I){switch(I){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"}};
kCK=function(){return Math.floor(Math.random()*4)+1};
FEs=function(I,C,y,k){I=_.T(Object.entries(I));for(var F=I.next(),z={};!F.done;z={message$jscomp$956:void 0},F=I.next()){var c=_.T(F.value);F=c.next().value;c=c.next().value;z.message$jscomp$956=c;C.push(setTimeout(function(r){return function(){k(!1);y(r.message$jscomp$956.text)}}(z),z.message$jscomp$956.delayMs));
Number(F)>0&&C.push(setTimeout(function(){k(!0)},z.message$jscomp$956.delayMs-400))}};
u_9=function(I,C){var y=y===void 0?tam:y;_.V("mweb_fix_monitor_visibility_after_render")?I&&pv(function(){alK(I,C,y)}):pv(function(){alK(I,C,y)})};
e6z=function(I){z6F||(z6F=TvK(new _.di(1,void 0,void 0,cOF),0));var C=z6F.format(Math.floor(I));C=_.Wg==="be"||_.Wg==="bg"||_.Wg==="es"||_.Wg==="et"||_.Wg==="hu"||_.Wg==="ka"||_.Wg==="lv"||_.Wg==="pl"||_.Wg==="pt-PT"||_.Wg==="sq"?C.replace(new RegExp("^(\\d)"+cOF.GROUP_SEP.replace(".","\\.")+"(\\d+("+cOF.DECIMAL_SEP.replace(".","\\.")+"\\d+)?\\D*)$"),"$1$2"):C;return I>=1E3&&I<=9999&&C[1]==="."&&(_.Wg==="sl"||_.Wg==="it")?C.replace(".",""):C};
rOO=function(I,C){Nx("ytd-button-renderer",{data:I,className:C?C.className:"",overrides:C==null?void 0:C.buttonOverrides},qT)};
nEF=function(I,C,y,k){if(I)return k=k||I.likeStatus,C?{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:k==="LIKE",isDisabled:!I.likesAllowed,defaultIcon:{iconType:y},defaultText:k==="LIKE"?I.likeCountWithUnlikeText:I.likeCountText,toggledText:k==="LIKE"?I.likeCountText:I.likeCountWithLikeText,defaultNavigationEndpoint:i3s(I,"LIKE"),defaultServiceEndpoint:wtI(I,"LIKE"),toggledServiceEndpoint:wtI(I,"INDIFFERENT"),defaultTooltip:_.hS(I.likeCountTooltipText),toggledTooltip:_.hS(I.likeCountTooltipText),
targetId:I.targetId}:{style:{styleType:"STYLE_TEXT"},toggledStyle:{styleType:"STYLE_DEFAULT_ACTIVE"},isToggled:k==="DISLIKE",isDisabled:!I.likesAllowed,defaultIcon:{iconType:y},defaultText:k==="DISLIKE"?I.dislikeCountWithUndislikeText:I.dislikeCountText,toggledText:k==="DISLIKE"?I.dislikeCountText:I.dislikeCountWithDislikeText,defaultNavigationEndpoint:i3s(I,"DISLIKE"),defaultServiceEndpoint:wtI(I,"DISLIKE"),toggledServiceEndpoint:wtI(I,"INDIFFERENT"),defaultTooltip:_.hS(I.dislikeCountTooltipText),
toggledTooltip:_.hS(I.dislikeCountTooltipText)}};
i3s=function(I,C){if(C==="LIKE")return I.likeCommand;if(C==="DISLIKE")return I.dislikeNavigationEndpoint};
wtI=function(I,C){var y;return(y=I.serviceEndpoints)==null?void 0:y.find(function(k){var F;return((F=_.l(k,_.Bp))==null?void 0:F.status)===C})};
PPt=function(I,C){C=C===void 0?{}:C;if(I){var y=!!C.activeState,k=C.iconSize,F=C.className,z=C["aria-hidden$"],c=C["aria-label$"],r=C.role;C=C.style$+";width: "+((C.width||k)+"px;height: ")+((C.height||k)+"px;color: ")+(C.color+";");I={icon:I};y!==void 0&&(I.active=y);k!==void 0&&(I.size=k);C!==void 0&&(I.style=C);F!==void 0&&(I.className=F);z!==void 0&&(I.ariaHidden=z);c!==void 0&&(I.ariaLabel=c);r!==void 0&&(I.role=r);Nx("yt-icon",I,qT)}};
_.ptz=function(I,C,y){return window.spf&&!_.V("web_disable_spfjs_client")?LEH(I,C,y):D4X(I,C)};
LEH=function(I,C,y){var k=null,F=(new _.eN(function(z,c){var r={};if(C){r.method=C.method;var w=C.postParams||{};SoY(I,C)&&(w[_.Aq("XSRF_FIELD_NAME")]=_.Aq("XSRF_TOKEN"));r.postData=_.e7(w);C.type&&(r.type=C.type);w=C.headers}r.headers=$sm(I,w);_.V("debug_forward_web_query_parameters")&&(I=_.G2t(I,window.location.search));r.experimental_headers=r.headers;r.onError=function(L){L.err&&L.xhr&&(L.err.params={url:L.xhr.responseURL,response:L.xhr.responseText.substr(0,64)});c(L.err)};
r.onPartDone=function(L){y&&y.call(null,L.part)};
r.onDone=function(L){var D=Qom(L.response,"xsrf_token");tq(window.location.href,I)&&D&&_.KH("XSRF_TOKEN",D);if(D=Qom(L.response,"service_worker_killswitch"))_.KH("SERVICE_WORKER_KILLSWITCH",D),pwm();z(L.response)};
k=spf.request(I,r)})).then(Nvt);
F.thenCatch(function(z){var c=z instanceof _.qJ,r=z&&z.hasOwnProperty("params")&&z.params.response?z.params.response:"";z instanceof Error&&(r?c?LdK(z):r===')]}\'\n{"reload":"now"}'?LdK(z):(Vqm(z,I,r),joX(z,r)?_.SN(z):_.GB(z)):LdK(z));k&&k.abort()});
return F};
Nvt=function(I){if(I.type==="multipart"){var C=I.timing;I=I.parts.reduce(function(y,k){Object.assign(y,k);return y},{});
I.timing=I.timing||{};Object.assign(I.timing,C);I.type="reduced"}return I};
D4X=function(I,C){C=C===void 0?{}:C;var y=null,k=new _.eN(function(F,z){C.onFinish=function(c){if(c.readyState===XMLHttpRequest.DONE)if(c.status===200){if(c.responseType!=="json"){var r=c.response;r.substring(0,5)===")]}'\n"&&(r=r.substring(5));try{var w=JSON.parse(r)}catch(L){w=L}}else w=c.response;w instanceof Error?z(w):(r=Qom(w,"xsrf_token"),tq(window.location.href,I)&&r&&_.KH("XSRF_TOKEN",r),c=c.responseURL,window.performance&&window.performance.getEntriesByName?(r=window.performance.getEntriesByName(c).pop())?
c={responseStart:(0,_.JY)()-(r.responseEnd-r.responseStart)}:(Math.random()<.01&&(r=Error("bi"),r.params=c,_.SN(r)),c={responseStart:-1}):c={responseStart:0},w.timing=w.timing||{},Object.assign(w.timing,c),F(w))}else z(Error("ai`"+c.status))};
(y=_.cN(I,C))||z(Error("ai`"+y.status))});
k.thenCatch(function(F){F instanceof Error&&(Vqm(F,I),joX(F)&&(F.level="WARNING"))});
_.V("cancel_pending_navs")&&k.thenCatch(function(){y.abort()});
return k};
Qom=function(I,C){var y=I[C],k=I.parts;I.type==="multipart"&&k&&(y=(I=k.find(function(F){return C in F}))&&I[C]);
return y};
Vqm=function(I,C,y){var k=I.message||"";C={original:k,url:C};if(y)if(k=k.match(/position:?\s*(\d+)/)){k=k&&Number(k[1])?Number(k[1]):0;var F=Math.max(k-25,0);C.position=k;C.response=y.substring(F,k+25)}else C.response=y.substring(0,50);_.Ki(I,C);try{I.message="JSON parse error"}catch(z){}};
joX=function(I,C){I=I.message||"";I=!!(I.indexOf("<")>=0||I.indexOf("end of ")>=0||I.indexOf("Unterminated string")>=0||I.indexOf("Unexpected EOF"));if(!I&&C)for(var y=C.length,k=!1,F=0;F<y;F++)if(k&&C[F]==="\\")F++;else if(C[F]==='"')k=!k;else if(C[F]==="<"&&!k){I=!0;break}return I};
lPm=function(){return document.documentElement.hasAttribute("dark")};
_.XtI=function(I,C){if(I!=="GFEEDBACK"&&I!=="GUIDED_HELP")_.v5(Error("ci`"+I));else{var y=_.N().resolve(_.aU(_.BP));if(y&&(y=y.getCurrentPage())&&y.getServiceTrackingParams&&(y=y.getServiceTrackingParams()))for(var k=0,F;F=y[k++];)if(F.service===I){if(I=F.params)for(y=0;k=I[y++];)C[k.key]=k.value;break}}};
_.$4z=function(I){var C=_.hU();C&&(C=C.getPlayer())&&(C.pauseVideo(),I.playback_id=C.getVideoData().cpn,I.eid=C.getVideoData().eventId,Object.assign(I,C.getFeedbackProductData()))};
R6K=function(){var I={abuseLink:"https://support.google.com/youtube/bin/answer.py?answer=140536",customZIndex:"2000000005",allowNonLoggedInFeedback:!0};_.Aq("GOOGLE_FEEDBACK_FORCE_ANONYMOUS")&&(I.enableAnonymousFeedback=!0);_.Aq("SESSION_INDEX")&&(I.authuser=String(_.Aq("SESSION_INDEX")));_.V("enable_pageid_for_feedback")&&_.Aq("DELEGATED_SESSION_ID")&&(I.pageId=String(_.Aq("DELEGATED_SESSION_ID")));return I};
_.Ed=function(I){_.V("enable_ypc_spinners")&&_.Fe(I,"yt-open-popup-action",[{openPopupAction:{popupType:"FULLSCREEN_OVERLAY",properties:{noCancelOnOutsideClick:!0,noAutoFocus:!0},popup:{loadingRenderer:{hack:!0}}}},I])};
_.ta=function(I){_.V("enable_ypc_spinners")&&_.Fe(I,"yt-close-popup-action",["yt-loading-renderer"])};
b3m=function(I){return new Promise(function(C,y){_.bU({verifyCommand:{recaptchaToken:I.recaptchaResponse}},{commandController:{onSuccess:function(k,F){F||y("ChallengeService did not return a response.");var z;C({challengeCompleted:(z=F.verified)!=null?z:!1})},
onServerError:function(k,F){y(F)}}})})};
YxH=function(I,C,y,k){C({recaptchaResponse:k}).then(function(F){F.challengeCompleted?_.PN()?(y(3),_.N().resolve(_.ID).resolveCommand({signalAction:{signal:"RELOAD_PAGE"}},{form:{element:I}})):y(2):y(4)},function(){y(4)})};
GCz=function(I,C,y){_.W$("https://www.google.com/recaptcha/api.js?trustedtypes=true&hl="+_.Aq("HL"),function(){var k;(k=window.grecaptcha)==null||k.ready(function(){var F=window.grecaptcha;F?(y(F.render(I,{sitekey:"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog",callback:YxH.bind(null,I,b3m,C)})),C(1)):C(4)})})};
fPm=function(I,C){return function(){switch(C()){case 0:return I().captchaLoadingMessage;case 1:return I().challengeReason;case 3:return I().captchaSuccessfulMessage;case 2:return I().captchaCookieSetFailureMessage;case 4:return I().captchaFailedMessage;default:return I().challengeReason}}()};
_.Ja=function(){if(!Sxz){var I=document.querySelector("#player.skeleton");I&&(_.ey(I),Sxz=!0)}};
_.AOm=function(){return KEO=p7z()};
WEz=function(){return _.e(function(I){return gEF!==void 0?I.return():_.n(I,vEO(),0)})};
vEO=function(){return _.e(function(I){if(I.nextAddress==1)return _.n(I,NxK(),2);KEO=I.yieldResult;gEF=_.b$.addLowPriorityJob(vEO,5E3);_.oI(I)})};
Bv9=function(I){var C=C===void 0?d4O:C;var y,k,F=(y=I.responseContext)==null?void 0:(k=y.mainAppWebResponseContext)==null?void 0:k.trackingParam;if(!F){C.increment("MISSING");var z,c,r,w,L,D;_.SN(new _.ph("282054944_a",{fxw:!!((z=I.responseContext)==null?0:(c=z.mainAppWebResponseContext)==null?0:c.loggedOut),pSH:((r=I.responseContext)==null?void 0:r.mainAppWebResponseContext)===void 0,xYm:I.responseContext===void 0,pJm:(w=I.playabilityStatus)==null?void 0:w.contextParams,k0y:(((L=I.streamingData)==
null?void 0:L.formats)||[]).length>0,fuA:(((D=I.streamingData)==null?void 0:D.adaptiveFormats)||[]).length>0,os:!!I.offlineState,cotn:I.cotn}));return 2}y="";try{y=x4W(F)}catch(X){return C.increment("C_ERROR"),_.GB(X),2}try{var p=_.qxO(y);var Q=m4s(p)}catch(X){return C.increment("P_ERROR"),_.GB(X),2}Q=_.U1(Q,Z3X,1,_.Hi());F=[];Q=_.T(Q);for(p=Q.next();!p.done;p=Q.next())k=p.value,p=k.getPath(),y=(0,_.Le.getValueByKeys)(I,p.split(".")),y=String(y===void 0||y===null?"":y),k=k.getValue()||"",z=/[+\-\/_]/g,
y.replace(z,"")!==k.replace(z,"")&&(C.increment("MISMATCH"),_.V("ab_mis_log_err")&&(y=new _.ph("282054944_p",{aXx:p,g:String(y),e:String(k)}),_.GB(y)),["auxiliaryUi.messageRenderers.enforcementMessageViewModel.displayType"].includes(p)||(p.match(/enforcementMessageViewModel/i)?F.push(3):F.push(2)));if(F.length>0)return Math.max.apply(Math,_.Py(F));C.increment("SUCCESS");return 1};
U4K=function(I){var C=new Od;if(I.interpreterJavascript){var y=_.zdI(I.interpreterJavascript);y=Yb(y).toString();var k=new EEs;_.zT(k,6,y);_.JT(C,1,k,dS)}else I.interpreterUrl&&(y=_.YV(I.interpreterUrl),y=_.sC(y).toString(),k=new _.h6K,_.zT(k,4,y),_.JT(C,2,k,dS));I.interpreterHash&&_.ac(C,3,I.interpreterHash,dS);I.program&&_.ac(C,4,I.program,dS);I.globalName&&_.ac(C,5,I.globalName,dS);I.clientExperimentsStateBlob&&_.ac(C,7,I.clientExperimentsStateBlob,dS);return C};
ME=function(I){var C={};I=_.T(I.split("&"));for(var y=I.next();!y.done;y=I.next())y=y.value.split("="),y.length===2&&(C[y[0]]=y[1]);return C};
H3m=function(I){return Number(I.t)||7200};
lDK=function(){if(_.V("bg_st_hr"))return"havuokmhhs-0";var I,C=((I=performance)==null?void 0:I.timeOrigin)||0;return"havuokmhhs-"+Math.floor(C)};
tq9=function(){return new Promise(function(I){var C=window.top;C.ntpevasrs!==void 0?I(new I7(C.ntpevasrs)):(C.ntpqfbel===void 0&&(C.ntpqfbel=[]),C.ntpqfbel.push(function(y){I(new I7(y))}))})};
JOF=function(I){var C=I.k3O.bind(I);_.U8("yt.aba.att",C);I=I.kxb.bind(I);_.U8("yt.aba.att2",I)};
aPX=function(I){switch(_.Tl(I.input)){case _.tS(O3m):var C={};return C.encryptedVideoId=I.innerTubeRequest.externalVideoId,C}return{}};
IOF=function(I){switch(_.Tl(I.input)){case _.tS(O3m):if(_.V("enable_att_for_transcript_request_on_web_client"))return"ENGAGEMENT_TYPE_VIDEO_TRANSCRIPT_REQUEST";break;case _.tS(CI):if(_.V("PremiumClientSharedConfig__enable_att_for_get_premium_on_web_client")&&I.innerTubeRequest.browseId==="SPunlimited")return"ENGAGEMENT_TYPE_YPC_GET_PREMIUM_PAGE";break;case _.tS(Mqm):var C,y;if(_.V("PremiumClientSharedConfig__enable_att_for_get_download_action_on_web_client")&&((y=_.l((C=I.config)==null?void 0:C.command,
Agm))==null?0:y.requiresAttestationResponse))return"ENGAGEMENT_TYPE_YPC_GET_DOWNLOAD_ACTION"}return null};
_.svz=function(I){var C;if(I.playlistVideoRenderer&&((C=I.playlistVideoRenderer)==null?0:C.engagementBar))return CcO(I.playlistVideoRenderer.engagementBar);if(_.l(I,sn)){var y;if(I=(y=_.l(I,sn))==null?void 0:y.engagementBar)return CcO(I)}return""};
CcO=function(I){if(!I)return"";I=_.l(I,_.oe9);if(I==null||!I.actions)return"";I=_.T(I.actions);for(I=I.next();!I.done;I=I.next()){I=_.l(I.value,_.ydI);var C=void 0;if((C=I)==null||!C.itemId)break;return I.itemId}return""};
_.kaX=function(I){var C;if(I.playlistVideoRenderer&&((C=I.playlistVideoRenderer)==null?0:C.videoId))return I.playlistVideoRenderer.videoId;if(_.l(I,sn)){var y,k;if(I=(y=_.l(I,sn))==null?void 0:(k=y.playlistItemData)==null?void 0:k.videoId)return I}return""};
_.FKm=function(I){var C;if(I.playlistVideoRenderer&&((C=I.playlistVideoRenderer)==null?0:C.voteCount))return I.playlistVideoRenderer.voteCount;if(_.l(I,sn)){var y,k;if(I=(y=_.l(I,sn))==null?void 0:(k=y.playlistItemData)==null?void 0:k.voteCount)return I}return 0};
_.o7=function(I,C){return _.cg(I.entities,"flowStateEntity",C)};
zIz=function(I,C,y,k){var F=void 0;I=_.T(I[C.iconName]||[]);for(var z=I.next();!z.done;z=I.next()){z=z.value;var c=C.iconSize;var r=C.iconStyle;c=!c||c===z[2];var w=ufm[z[0]];k&&k!==z[1]||!c||r&&r!==w?r=!1:F?(r=ufm[z[0]],r=!!C.iconStyle||r==="youtube_outline",c=F.version<=z[1],r=(!!C.iconSize||z[2]===24)&&r&&c):r=!0;r&&(F={name:C.iconName,style:ufm[z[0]],size:z[2],version:z[1],allowMirroring:!!z[3],url:y(C.iconName,z)})}return F};
TmH=function(I,C,y,k){return I+(""+ufm[y[0]]+((k===void 0?0:k)?"_experimental":"")+"/"+C+"/v"+y[1]+"/")+(y[2]+"px.svg")};
yV=function(I){return _.V("web_bookmark_playlist_save_icon")?"bookmark":I};
cdK=function(I,C){return TmH("https://fonts.gstatic.com/s/i/",I,C)};
eI9=function(I,C){return TmH("https://fonts.gstatic.com/s/i/",I,C,!0)};
rdH=function(I,C){return TmH("https://www.gstatic.com/youtube/img/icons/web/",I,C)};
iSX=function(I){var C=I.enabled;var y=I.itemPlaybackModel;var k=I.thumbnailElRef;var F=I.containerElRef;var z=I.options;var c;_.l0(function(){var r=F==null?void 0:F.value;var w,L=(w=k())==null?void 0:w.value;w=y();var D=z();if(C&&w&&r&&L&&(D==null?0:D.thumbnail)){var p,Q;r={mediaRenderer:{data:w,hostElement:r},lockupElement:r,thumbnailElement:L,videoPreviewOpts:{videoPreviewData:{inlinePlaybackEndpoint:_.Rj((p=w.inlinePlayerData)==null?void 0:p.onVisible),navigationEndpoint:_.Rj((Q=w.inlinePlayerData)==
null?void 0:Q.onSelect),thumbnail:D.thumbnail,thumbnailOverlays:D.thumbnailOverlays||[],accessibilityText:D.accessibilityText||""},thumbnailSize:D.thumbnailSize,enableRounding:D.enableRounding}}}else r=void 0;if(p=r){var X;(X=c)==null||oc(X);c=h9(p)}});
_.$4(function(){var r;(r=c)==null||oc(r)})};
wcm=function(I){I=atob(I);for(var C=[],y=0;y<I.length;y++)C.push(I.charCodeAt(y));return new Blob([new Uint8Array(C)],{type:"image/png"})};
PcH=function(I,C,y,k){k=k===void 0?"INSERTION_POSITION_UNSPECIFIED":k;return I({targetId:C},function(F){var z,c=(z=F.contents)!=null?z:[];z=y!=null?y:[];var r=neY(c);switch(k){case "INSERTION_POSITION_UNSPECIFIED":return Object.assign({},F,{contents:[].concat(_.Py(c.slice(0,r)),_.Py(z),_.Py(c.slice(r+1)))});case "INSERTION_POSITION_FIRST":return Object.assign({},F,{contents:[].concat(_.Py(z),_.Py(c))});case "INSERTION_POSITION_LAST":return Object.assign({},F,{contents:[].concat(_.Py(c),_.Py(z))});
default:return F}})};
Dgm=function(I,C,y,k,F){F=F===void 0?"RELATIVE_INSERTION_POSITION_AFTER":F;return I({targetId:C},function(z){var c,r=(c=z.contents)!=null?c:[];c=LKI(r,y);if(c<0)return z;c=F==="RELATIVE_INSERTION_POSITION_BEFORE"?c:c+1;return Object.assign({},z,{contents:[].concat(_.Py(r.slice(0,c)),_.Py(k),_.Py(r.slice(c)))})})};
neY=function(I){var C=I.findIndex(function(y){return _.l(y,_.kH)});
return C>=0?C:I.length};
LKI=function(I,C){return I.map(function(y){return _.l(y,_.pcH)}).findIndex(function(y){return(y==null?void 0:y.targetId)===C})};
Nm9=function(I,C,y){return I({targetId:C},function(k){var F,z=(F=k.contents)!=null?F:[];return Object.assign({},k,{contents:QvX(z,y)})})};
QvX=function(I,C){return I.filter(function(y){var k=C.includes;a:{y=_.T(Object.values(y));for(var F=y.next();!F.done;F=y.next())if((F=F.value)&&F.targetId){y=F.targetId;break a}y=""}return!k.call(C,y||"")})};
_.VCz=function(I,C){return{engagementPanelSectionListRenderer:{panelIdentifier:I,identifier:C,visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",content:{contentLoadingRenderer:{useSpinner:!0}}}}};
jvm=function(I){return I.getOption("captions","tracklist",{includeAsr:!0})};
lOm=function(I){var C=jvm(I);if(C==null?0:C.length)return C;I.loadModule("captions");return jvm(I)};
Xcm=function(I,C,y){if(I.getVideoData){var k,F=(k=lOm(I))==null?void 0:k.find(function(z){return z.languageCode===y});
k=_.TL("/youtube/app/player_caption_language_entity_key","stringEntity",2);C.dispatch(_.wJ("stringEntity",k,{key:k,value:(F==null?void 0:F.displayName)||""}));F?I.setOption("captions","track",F):(I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{}))}};
$gm=function(I){return I.getOption("captions","tracklist",{includeAsr:!0})};
RIm=function(I){return I.getOption("captions","tracklist",{includeAsr:!0})};
bSY=function(I){var C=RIm(I);if(C==null?0:C.length)return C;I.loadModule("captions");return RIm(I)};
Y4m=function(I){var C=I.getOption("captions","track");if(C)return C;I.loadModule("captions");return I.getOption("captions","track")};
GaI=function(I){var C=bSY(I);if(C!=null&&C.length){var y=Y4m(I);return{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:_.PQ("PLAYER_CAPTION_OFF",void 0,"Off")},isSelected:!(y==null?0:y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:""}}]}}}}}}}].concat(_.Py(C.map(function(k){return{listItemViewModel:{title:{content:k.displayName},
isSelected:k.languageCode===(y==null?void 0:y.languageCode),selectionStyle:"LIST_ITEM_SELECTION_STYLE_DEFAULT",rendererContext:{commandContext:{onTap:{innertubeCommand:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{captionLanguageSelectActionCommand:{languageCode:k.languageCode}}]}}}}}}}})))}}}}}}}}};
AdI=function(I){return new Promise(function(C,y){if(I===void 0)_.GB(Error("Di"),"ERROR"),y(Error("Di"));else{y=new _.fOz;var k=_.S4m();y=y.init();var F=_.KK9(_.Aq("YPC_MB_URL"),!0);Promise.all([y,F]).then(function(){var z=payments.business.integration.ClientTokenFactory.createClientToken(I,k);C(z)})}})};
WKF=function(I,C,y,k,F,z,c){var r=_.vP();y=y.replace(/-/g,"+").replace(/_/g,"/");var w=_.pA().get("hl"),L=_.Fv(_.xk),D=C==null?void 0:C.element;D&&_.Ed(D);geO(C,!0);_.vez(L,y,r.resolve,function(){D&&_.ta(D)},function(p){D&&_.ta(D);
r.reject(p)},w,k?function(p){k&&_.gh(I,k,{backend_analytics:p})}:void 0,r.resolve,F,z,c);
return r.promise};
geO=function(I,C){!(I=I==null?void 0:I.element)||I.tagName!=="YT-BUTTON-RENDERER"&&I.tagName!=="YTD-BUTTON-RENDERER"||(I.disabled=C)};
dgF=function(){var I=_.PQ("DOWNLOADED",void 0,"Downloaded");return{popup:{notificationActionRenderer:{responseText:_.Cx(I),actionButton:{buttonRenderer:WSm()}}},popupType:"TOAST"}};
xgs=function(){var I=_.PQ("UNAVAILABLE_OFFLINE",void 0,"Unavailable offline");return{popup:{notificationActionRenderer:{responseText:_.Cx(I),loggingDirectives:{clientVeSpec:{uiType:135356}}}},popupType:"TOAST"}};
q4H=function(I){return{itemSectionRenderer:{contents:[{backgroundPromoRenderer:I}]}}};
uz=function(I,C,y,k){var F;return _.e(function(z){if(z.nextAddress==1)return _.aM(z,2),_.n(z,I,4);if(z.nextAddress!=2)return(F=_.Nk(C.getState().entities).length>0)?z.return({title:_.Cx(_.PQ("YOU_ARE_OFFLINE",void 0,"You are offline")),bodyText:_.Cx(_.PQ("CHECK_CONNECTION_OR_DOWNLOADS",void 0,"Please check your connection or watch your downloaded videos.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:vPW()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:22233}}}):
z.return(dvz(y,k));_.sj(z);return z.return(dvz(y,k))})};
mgO=function(I,C){return C?C==="PPSV"||M_F(I,C):!1};
ZSI=function(I){I.responseContext||(I.responseContext={});I.responseContext.maxAgeSeconds=0;return I};
Tb=function(I){var C;return _.e(function(y){return y.nextAddress==1?_.n(y,BmW(I,"service:topbar:fallback"),2):(C=y.yieldResult)&&_.zb(C)?y.return(ZSI(_.zb(C))):y.return()})};
EeX=function(I){var C;return _.e(function(y){return y.nextAddress==1?_.n(y,BmW(I,"service:downloads_settings:fallback"),2):(C=y.yieldResult)&&_.zb(C)?y.return(C):y.return()})};
BmW=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return I?_.n(k,I.get(C),2):k.return();y=k.yieldResult;return!y||!_.zb(y)||!isNaN(Number(y.data.expireTimestampMs))&&y.isExpired()?k.return():k.return(y)})};
hIK=function(I){var C=_.N().resolve(cJ).getState().entities;return I.playlistId?mgO(C,I.playlistId):!1};
Ugz=function(I,C){var y;if(C==null?0:(y=C.requestTemplate)==null?0:y.panelId)I.panelId=C.requestTemplate.panelId;var k;if(C==null?0:(k=C.requestTemplate)==null?0:k.params)I.params=C.requestTemplate.params};
tCO=function(){if(HSm)return HSm();var I=!_.V("idb_response_store_auth_killswitch"),C={};HSm=tY("yt-it-response-store",{objectStores:(C.ResponseStore={addedAtVersion:1},C),shared:!I,upgrade:function(y,k){k(1)&&(y=gI(y,"ResponseStore",{keyPath:["key","clientName"]}),vF(y,"byExpiration","expireTimestampMs"),vF(y,"byInterface","clientName"))},
version:1});return HSm()};
JdI=function(I){return _.qS(tCO(),I)};
aOt=function(I,C){var y;return _.e(function(k){return k.nextAddress==1?_.n(k,_.HN(),2):(y=k.yieldResult)?k.return(new OSF(I,C,y)):k.return()})};
MCI=function(I){var C=Object.keys(I)[0];if(C)return I.screenExit&&(C=C+";"+I.screenExit.screen),C};
Ipm=function(I){var C=new Map;I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,y!=null&&(C.has(y.taskType)||C.set(y.taskType,[]),C.get(y.taskType).push(y));return C};
CMK=function(I){return!isNaN(I)&&I>0};
sZK=function(I){I=[].concat(_.Py(I)).sort(function(y,k){return y-k});
var C=Math.floor(I.length/2);return I.length%2?I[C]:(I[C-1]+I[C])/2};
yWm=function(){o_O||(Object.assign(su,{handleError:function(I,C){var y={errorSeverity:C.errorSeverity.toString(),wizFeatureFlags:Object.entries(C.featureFlags).join("\n")};MAm(C,y);C=C.errorSeverity;C===3?_.GB(I,"ERROR",void 0,void 0,void 0,y):C===2&&_.GB(I,"WARNING",void 0,void 0,void 0,y);_.V("cow_if_errors_in_popup")&&C===3&&I.message.indexOf("<If>")!==-1&&window.alert(I.message)},
enableComponentStacksInErrorMessages:!1}),o_O=!0)};
ucm=function(I,C){_.U8("yt.logging.errors.log",_.GB);I_F();k3H(uWH(),C);window.onerror=I;_.V("wiz_next_error_handler_killswitch")||yWm();FpO=CUz;window.addEventListener("unhandledrejection",function(y){if(y.reason instanceof Error){var k=y.reason;_.Ki(k,{source:"unhandledrejection"});k.name==="AbortError"&&(k.level="WARNING")}CUz(y.reason);y.preventDefault()})};
_.zRz=function(I){return I.a11y.ephemeralAction||null};
_.TGO=function(I){var C,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO,Rm,$z,hX,vs,mY,Bs,n5,sH,Zt,Qd,OF,Rw,ku,xK,yf,uK;return _.e(function(oL){if(oL.nextAddress==1)return _.n(oL,_.Pg(I,{mode:"readonly",enableRetries:!0},function(Uw){return Lx(Uw,"playbackData").then(function(TR){var G0=TR.map(function(i8){return i8.transfer}).filter(function(i8){return!!i8}),hc=TR.map(function(i8){return i8.offlineVideoPolicy}).filter(function(i8){return!!i8}),wS=TR.filter(function(i8){return!!i8.key}).map(function(i8){return _.TL(_.Fy(i8.key).entityId,
"downloadStatusEntity")});
G0=Lx(Uw,"transfer",G0);hc=Lx(Uw,"offlineVideoPolicy",hc);wS=Lx(Uw,"downloadStatusEntity",wS);var Ws=G0.then(function(i8){i8=i8.reduce(function(l8,bj){(bj==null?0:bj.offlineVideoStreams)&&l8.push.apply(l8,_.Py(bj.offlineVideoStreams));return l8},[]).filter(function(l8){return!!l8});
return Lx(Uw,"offlineVideoStreams",i8)});
return AY.all([G0,hc,Ws,wS]).then(function(i8){var l8=_.T(i8);i8=l8.next().value;var bj=l8.next().value;var K5=l8.next().value;l8=l8.next().value;return[TR,i8,bj,K5,l8]})})}),2);
if(oL.nextAddress!=3)return C=oL.yieldResult,_.n(oL,_.Pg(I,{mode:"readonly",enableRetries:!0},function(Uw){return Lx(Uw,"mainDownloadsListEntity").then(function(TR){var G0,hc;return(hc=(G0=TR[0])==null?void 0:G0.downloads)!=null?hc:[]})}),3);
y=oL.yieldResult;k=_.T(C);F=k.next().value;z=k.next().value;c=k.next().value;r=k.next().value;w=k.next().value;L=F;D=z;p=c;Q=r;X=w;b={};S={};A={};x={};B={};t=[];U=_.T(D);for(yW=U.next();!yW.done;yW=U.next())(a=yW.value)&&(b[a.key]=a);cs=_.T(p);for(XO=cs.next();!XO.done;XO=cs.next())(Rm=XO.value)&&(S[Rm.key]=Rm);$z=_.T(X);for(hX=$z.next();!hX.done;hX=$z.next())(vs=hX.value)&&(A[vs.key]=vs);mY=_.T(Q);for(Bs=mY.next();!Bs.done;Bs=mY.next())(n5=Bs.value)&&(x[n5.key]=n5);sH=_.T(y);for(Zt=sH.next();!Zt.done;Zt=
sH.next())Qd=Zt.value,OF=void 0,B[(OF=Qd.videoItem)!=null?OF:""]=!0,Qd.videoItem&&(ku=Rw=void 0,xK=(ku=(Rw=_.Fy(Qd.videoItem))==null?void 0:Rw.entityId)!=null?ku:"",t.push({externalVideoId:xK}));yf=L.filter(function(Uw){if(!Uw||!Uw.key||!Uw.offlineVideoPolicy)return!1;Uw=_.Fy(Uw.key).entityId;Uw=_.TL(Uw,"downloadStatusEntity");var TR;return!(Uw&&((TR=A[Uw])==null?void 0:TR.downloadState)==="DOWNLOAD_STATE_USER_DELETED")});
uK=yf.map(function(Uw){var TR=b[Uw.transfer],G0=[];if(TR==null?0:TR.offlineVideoStreams)for(var hc=_.T(TR.offlineVideoStreams),wS=hc.next();!wS.done;wS=hc.next())(wS=x[wS.value])&&G0.push(wS);hc=S[Uw.offlineVideoPolicy];wS=B;var Ws=Uw==null?void 0:Uw.playerResponseTimestamp,i8=_.Fy(hc.key).entityId;Uw=_.TL(i8,"mainVideoEntity");if(hc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"){var l8="OFFLINE_VIDEO_STATE_DISABLED";hc.expirationTimestamp&&Number(hc.expirationTimestamp)<Date.now()/1E3&&(l8="OFFLINE_VIDEO_STATE_EXPIRED")}else if(hc.action===
"OFFLINE_VIDEO_POLICY_ACTION_DOWNLOAD_FAILED")l8="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";else{switch(TR==null?void 0:TR.transferState){case "TRANSFER_STATE_TRANSFER_IN_QUEUE":l8="OFFLINE_VIDEO_STATE_PENDING";break;case "TRANSFER_STATE_TRANSFERRING":l8="OFFLINE_VIDEO_STATE_TRANSFERRING";break;case "TRANSFER_STATE_PAUSED_BY_USER":l8="OFFLINE_VIDEO_STATE_PAUSED_TRANSFER";break;case "TRANSFER_STATE_FAILED":l8="OFFLINE_VIDEO_STATE_OFFLINE_FAILED";break;case "TRANSFER_STATE_COMPLETE":l8="OFFLINE_VIDEO_STATE_PLAYABLE";
break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":l8="OFFLINE_VIDEO_STATE_STREAMS_OUT_OF_DATE";break;default:l8="OFFLINE_VIDEO_STATE_UNKNOWN"}if(l8==="OFFLINE_VIDEO_STATE_OFFLINE_FAILED")switch(TR==null?void 0:TR.failureReason){case "TRANSFER_FAILURE_REASON_EXTERNAL_FILESYSTEM_WRITE":case "TRANSFER_FAILURE_REASON_FILESYSTEM_WRITE":l8="OFFLINE_VIDEO_STATE_OUT_OF_STORAGE_ERROR";break;case "TRANSFER_FAILURE_REASON_STREAM_MISSING":l8="OFFLINE_VIDEO_STATE_STREAMS_MISSING";break;case "TRANSFER_FAILURE_REASON_NETWORK":case "TRANSFER_FAILURE_REASON_NETWORK_LOST":l8=
"OFFLINE_VIDEO_STATE_NETWORK_ERROR"}}i8={id:i8,videoState:l8};if(TR==null?0:TR.cotn)i8.cotn=TR.cotn;if(TR==null?0:TR.maximumDownloadQuality)i8.selectedVideoQuality=TR==null?void 0:TR.maximumDownloadQuality;if(TR==null?0:TR.lastProgressTimeMs)i8.lastProgressTimeMs=TR.lastProgressTimeMs;Ws&&(i8.playerResponseSavedTimeMs=String(Number(Ws)*1E3));TR=String;Ws=0;G0=_.T(G0);for(l8=G0.next();!l8.done;l8=G0.next())if(l8=l8.value,l8.streamsProgress){l8=_.T(l8.streamsProgress);for(var bj=l8.next();!bj.done;bj=
l8.next()){var K5=void 0;Ws+=Number((K5=bj.value.numBytesDownloaded)!=null?K5:0)}}i8.downloadedBytes=TR(Ws);i8.selectedOfflineMode=wS[Uw]?"OFFLINE_MODE_TYPE_AUTO_OFFLINE":"OFFLINE_NOW";hc.action==="OFFLINE_VIDEO_POLICY_ACTION_DISABLE"&&(i8.offlinePlaybackDisabledReason=hc.offlinePlaybackDisabledReason);return i8});
return oL.return({offlineVideos:uK,additionalOfflineClientState:{mainAppAdditionalOfflineClientState:{smartDownloadVideos:t}}})})};
cWW=function(){var I;return _.e(function(C){return C.nextAddress==1?_.n(C,_.i6(),2):(I=C.yieldResult)?C.return(_.TGO(I)):C.return({state:"PES Unavailable"})})};
iBY=function(){var I,C,y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,_.i6(),2);if(F.nextAddress!=3)return(I=F.yieldResult)?_.n(F,eRs(I),3):F.return({state:"PES Unavailable"});C=F.yieldResult;y={};k=C.reduce(function(z,c){z[c.key]=c;return z},y);
return F.return(rWY(k))})};
rWY=function(I){for(var C={},y=[],k=_.T(Object.keys(I)),F=k.next();!F.done;F=k.next()){var z=F.value;F=I[z];var c=void 0;if(((c=F)==null?void 0:c.entityType)==="mainVideoEntity"){delete I[z];var r=F.data;F={};if(r){var w=void 0;c=(w=r.videoId)!=null?w:"vid-"+z;z=I;F.video=r;delete F.video.formattedDescription;delete F.video.thumbnail;r.owner&&(w=z[r.owner],w==null?0:w.data)&&(delete z[w.key],F.video.owner=w.data,delete F.video.owner.avatar);if(r=r.downloadState)if(w=z[r],w==null?0:w.data)if(delete z[r],
r=w.data.playbackData)if(w=z[r],w!=null&&w.data){delete z[r];r=w.data;delete r.playerResponseJson;F.playbackData=r;if(r.transfer&&(w=z[r.transfer],w==null?0:w.data)){delete z[w.key];var L=w.data;F.transfer=L;w=[];L=_.T(L.offlineVideoStreams||[]);for(var D=L.next();!D.done;D=L.next())if(D=z[D.value])delete z[D.key],w.push(D.data);w&&(F.streams=w)}(r=r.offlineVideoPolicy)&&(r=z[r])&&r.data&&(delete z[r.key],F.offlineVideoPolicy=r.data)}C[c]=F}}else F&&F.entityType==="offlineOrchestrationActionWrapperEntity"&&
F.data&&(delete I[F.key],c=F.data,z=void 0,y.push({id:c.rootActionId,type:((z=c.actionProto)==null?void 0:z.actionType)||"",entity:F}))}C.wrapperEntities=y;Object.keys(I).length>0&&(C.unknownKeys=I);return C};
wYs=function(){var I,C,y,k,F,z,c,r,w;return _.e(function(L){if(L.nextAddress==1)return I=!!(new _.Kw("")).expiringStorage_,k=!!((C=_.sF.crypto)==null?0:(y=C.subtle)==null?0:y.importKey),F=!!_.sF.BroadcastChannel,z=!!_.sF.navigator.locks,_.n(L,fCF(),2);c=L.yieldResult;r=I&&k&&F&&z&&c;w={isSupported:r};if(r)return L.return(w);w.missingBrowserFeatures=[];c||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_INDEXED_DB");I||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_LOCALSTORAGE");
k||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_CRYPTO_EXTENSION");F||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_BROADCAST_CHANNEL");z||w.missingBrowserFeatures.push("OFFLINE_WEB_CLIENT_BROWSER_FEATURE_WEB_LOCKS_API");return L.return(w)})};
n_W=function(){var I;return!((I=et?et:null)==null||!I.window)};
_.LpW=function(I){if(_.bK()&&_.cXm("Chromium")>=120){var C=_.PMW().mediaSession;try{C.setActionHandler("enterpictureinpicture",function(){I()})}catch(y){}}};
DaH=function(I){for(var C=[],y=_.T(document.styleSheets),k=y.next(),F={};!k.done;F={node$jscomp$724:void 0},k=y.next())F.node$jscomp$724=k.value.ownerNode,F.node$jscomp$724&&(F.node$jscomp$724 instanceof HTMLStyleElement||F.node$jscomp$724 instanceof HTMLLinkElement)&&C.push(new Promise(function(z){return function(c){var r=z.node$jscomp$724.cloneNode(!0);r.onload=function(){c()};
r.onerror=function(){_.SN(Error("fj"));c()};
I.document.head.appendChild(r)}}(F)));
return Promise.all(C)};
bBK=function(I){var C=[_.Uj(pYs),_.Uj(QZO),_.Uj(NGF)];VhI(window.document.documentElement,I.document.documentElement,[_.Uj(jZW),_.Uj(lpz),_.Uj(XYO),_.Uj($aH),_.Uj(RRH)]);VhI(window.document.body,I.document.body,C)};
VhI=function(I,C,y){I=_.T(I.attributes);for(var k=I.next();!k.done;k=I.next())if(k=k.value)try{_.Ka(y,C,k.name,k.value)}catch(F){}};
G3m=function(I,C){I=new _.rA(I.document.documentElement);I.start(YiW,C);return I};
fpX=function(I){var C=I.document.documentElement;C.addEventListener("click",function(y){h5W(C,y)});
C.addEventListener("touchstart",function(y){O_H(y)});
C.addEventListener("mousedown",function(y){O_H(y)})};
KpX=function(I,C,y,k){k=k===void 0?!1:k;C=new SiO(C||I,y||I);return{x:I.x+((k===void 0?0:k)?C.lengthX*-1:C.lengthX)*.2,y:I.y+((k===void 0?0:k)?C.lengthY*-1:C.lengthY)*.2}};
AWO=function(I){if(!I)return!1;var C=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",y,k,F,z=(F=(y=I.errorScreen)==null?void 0:y.playerLegacyDesktopYpcTrailerRenderer)!=null?F:(k=I.errorScreen)==null?void 0:k.ypcTrailerRenderer;return!!C||!!z};
_.g_O=function(I,C){if(!I)return!1;var y,k=(y=I.errorScreen)==null?void 0:y.playerLegacyDesktopYpcOfferRenderer,F;C=!!(C==null?0:(F=C.playerOverlayRenderer)==null?0:F.gatedActionsOverlayRenderer);return!!AWO(I)||!!k||!!C};
v_t=function(I){return I.includes("gclid")||I.includes("gad_source")};
da9=function(I){var C=[],y=0;return{push:function(k){C[y]=k;y=(y+1)%I},
iterate:function(){return function F(){var z,c,r;return _.WpK(F,function(w){switch(w.nextAddress){case 1:_.II(w,2),z=C.length,c=0;case 4:if(!(c<z)){w.jumpTo(2);break}r=y+c;return _.n(w,C[r%z],7);case 7:c++;w.jumpTo(4);break;case 2:_.MM(w),_.C1(w,0)}})}()}}};
qiK=function(){var I=_.s8("web_max_tracing_events",0);_.V("web_enable_tracing")&&I>0&&xaX(I)};
xaX=function(I){var C=da9(I);f9X({sample:function(y,k){return y==="event"?!maI.has(k==null?void 0:k.type):!1},
spanProcessors:[{onSpanStart:function(y){C.push(y)}}]});
rEY.subscribe("handleError",function(y){Object.assign(y.params,{breadcrumbs:JSON.stringify(Array.from(C.iterate()))})})};
ZBW=function(I){return new Promise(function(C){window.setTimeout(C,I)})};
BGm=function(I){var C={bicf:function(z){I.ygA=z},
blc:function(){return I.getLatestChallengeResponse()},
bcr:function(z){I.vIs.push(z)}},y=window.top;
y.ntpevasrs=C;if(y.ntpqfbel!==void 0)for(var k=_.T(y.ntpqfbel),F=k.next();!F.done;F=k.next())F=F.value,F(C);y.ntpqfbel=void 0};
E_I=function(I){return _.e(function(C){if(C.nextAddress==1)return _.aM(C,2),_.n(C,I.vSi(),4);if(C.nextAddress!=2)return _.dC(C,0);_.sj(C);_.oI(C)})};
hRW=function(I){var C,y;(C=I.ytcsi)==null||(y=C.tick)==null||y.call(C,"pot_ist")};
UaO=function(I){if(I instanceof Error){var C=_.d5("yt.logging.errors.log");C&&C(I,"WARNING")}};
HBF=function(I){try{var C=JSON.parse(I);if(C.bgChallenge)return C}catch(y){}};
JWz=function(){var I=window,C={networkStatusManagerPromise:_.N().resolve(new ndm(_.mx)),initialChallengeSli:_.V("wpo_att_sli")?new _.N1I("SLI_NAME_YOUTUBE_WEB_INITIAL_ATTESTATION_CHALLENGE","",3E3,"TIMEOUT"):void 0};I=I===void 0?window:I;var y=I.ytAtR,k;C==null||(k=C.initialChallengeSli)==null||_.iz(k);if(y){if(y=HBF(y)){var F;C==null||(F=C.initialChallengeSli)==null||_.wA(F,"SUCCESS");thm(y,C)}I.ytAtR=void 0}else I.ytAtRC=function(z){if(z=HBF(z)){var c;C==null||(c=C.initialChallengeSli)==null||_.wA(c,
"SUCCESS");thm(z,C);I.ytAtRC=void 0}}};
Mhm=function(){if(OBm)return OBm;try{var I=_.c2("IFRAME");_.jO(I,_.tM(apK));I.sandbox.add("allow-same-origin");I.style.display="none";document.body.appendChild(I);return OBm=I}catch(C){I=new _.ph("Failed to create sandbox iframe"),_.GB(I)}};
Iaz=function(I){var C,y;return(y=I==null?void 0:(C=I.contentWindow)==null?void 0:C.fetch)!=null?y:window.fetch};
CDH=function(I){var C,y;return(y=I==null?void 0:(C=I.contentWindow)==null?void 0:C.JSON.parse)!=null?y:JSON.parse};
sBK=function(I){var C,y;return(y=I==null?void 0:(C=I.contentWindow)==null?void 0:C.Request)!=null?y:window.Request};
ktI=function(){if(lW9()==="hidden")var I="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND";else lW9()==="visible"&&(I="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND",oa9=null);I&&yIH(I)};
yIH=function(I){if(I==="FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND"||I==="FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND"){if(F$K===I)return;F$K=I}var C=9E4+Math.random()*2E3;if(I!=="FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"||!(_.Ci()>C)&&lW9()==="visible"){C=-1;oa9&&(C=Math.round((0,_.JY)()-oa9));var y=String;var k=_.d5("_fact",window);k=k==null||k==-1?-1:Math.max(Date.now()-k,0);_.b2("foregroundHeartbeat",{firstActivityMs:y(k),clientDocumentNonce:CRX,index:String(uxm),lastEventDeltaMs:String(C),trigger:I});
_.U8("_fact",-1,window);uxm++;oa9=(0,_.JY)()}};
_.zUO=function(){try{return!!self.sessionStorage}catch(I){return!1}};
TVO=function(){var I=navigator;return new Promise(function(C,y){var k;(k=I.webkitTemporaryStorage)!=null&&k.queryUsageAndQuota?I.webkitTemporaryStorage.queryUsageAndQuota(function(F,z){C({usage:F,quota:z})},function(F){y(F)}):y(Error("nj"))})};
cIW=function(I,C,y){I.componentType!==NT&&y instanceof HTMLElement&&C&&!_.V("cow_logging_in_component_wrapper")&&HCz(y,C,!0)};
eUI=function(I,C,y){C=C===void 0?{}:C;var k,F=(k=_.l(I.commandMetadata,_.It))==null?void 0:k.url;k=C.form||{};!y||k.element||k.skipDefaultElement||(C.form=C.form||{},C.form.element=y);if(F&&F!=="/service_ajax")return{type:0,command:I,form:C.form};if(_.V("kevlar_service_command_check")){if(_.AU(_.N().resolve(_.Q0),I))return Object.assign({},{type:1,command:I},C)}else{var z;if((z=_.l(I.commandMetadata,_.It))==null?0:z.apiUrl)return Object.assign({},{type:1,command:I},C)}return{type:2,command:I,form:C.form}};
rIt=function(I){if(I.form){var C=I.form,y=Object.assign({},C);C=C.element;y=(delete y.element,y);if(C)return[_.Tg(C,[I.command,y,I.commandController])]}return[]};
imH=function(I){if(I.form){var C=I.form,y=Object.assign({},C);C=C.element;y=(delete y.element,y);C&&_.cQ(C,[I.command],C,y)}};
naW=function(I,C,y){var k=new wdt(I,C),F=new nI(I,C,y);I={"/youtubei/v1/browse":new PJ(I,C,y),"/youtubei/v1/player":k,"/youtubei/v1/navigation/resolve_url":new LI,"/youtubei/v1/next":F,"/youtubei/v1/guide":new DH(y),"/youtubei/v1/search":new pI(I,C,y),"/youtubei/v1/reel/reel_item_watch":new QV(I,C,y),"/youtubei/v1/get_watch":new Nd(k,F)};I["/youtubei/v1/account/account_menu"]=new VV;I["/youtubei/v1/notification/get_notification_menu"]=new jt;return I};
Xv=function(){var I=_.N().resolve(lz);return Promise.resolve(PDz(I,_.sF.location.href,{},document.referrer,function(){return 0},function(){return!1}))};
L$z=function(I){return I&&(I=_.$H(_.nwH(I)))?(new URLSearchParams(I)).get("service"):null};
YH=function(I,C){_.tE(_.R7(),function(){_.Sr("adl")});
_.N().resolve(DOz)(C);I=I.root;I.loadData&&I.loadData(C);(C==null?0:C.response)?_.wA(lII(),"SUCCESS"):_.SN(new _.ph("Lifecycle: No response in data",_.g5("IS_SHELL_LOAD"),C?C.page:"NO_PAGE",C?C.endpoint:"NO_ENDPOINT"));I.polymerController.$["page-manager"].lazyPrepareCriticalPages((C==null?void 0:C.page)||"",C.endpoint);var y,k;((k=_.l(C==null?void 0:(y=C.endpoint)==null?void 0:y.commandMetadata,_.It))==null?0:k.webPageType)&&_.Hg().dispatch(_.bz(_.l(C.endpoint.commandMetadata,_.It).webPageType))};
pdF=function(){var I,C;return _.e(function(y){switch(y.nextAddress){case 1:I=window;if(!I.getDataPromise){y.jumpTo(2);break}_.aM(y,3);return _.n(y,I.getDataPromise(),5);case 5:return y.return(y.yieldResult);case 3:return _.sj(y),_.n(y,Xv(),6);case 6:return y.return(y.yieldResult);case 2:if(I.getInitialData)return C=I.getInitialData(),I.getInitialData=void 0,y.return(C);throw Error("pj`"+_.sF.location.href);}})};
NVt=function(){_.KH("CSI_SERVICE_NAME","youtube");_.Gg({loadType:"cold"});_.V("kevlar_log_lcp")&&QBH(function(I){_.Sr("lcp",I.value)})};
V3W=function(){var I=_.v2(document.location.href,"enable");I&&I.indexOf("scraper")>-1&&_.KH("ADD_SCRAPER_ATTRIBUTES",!0)};
RUX=function(I){var C=I.root;I=[jBX,laY,_.Gb];_.V("web_feedback_endpoint_autolog_allowlist_killswitch")&&I.push(_.fI,Xdz);$Os(function(y,k){return eUI(y,k,C)},function(y){if(!y.command)return[];
var k;((k=y.form)==null?0:k.element)?y.form.element.dispatchEvent(new CustomEvent("yt-navigate",{bubbles:!0,composed:!0,detail:Object.assign({},y.form,{endpoint:y.command})})):C.handleNavigate(y);return[]},I);
_.N().addProvider({provide:_.ID,useValue:_.FW.instance})};
YDs=function(){var I={},C={},y;for(y in bmO){var k=_.T(_.c4(bmO[y],void 0,"UAX5pb"));I[y]=k.next().value;C[y]=k.next().value}return[I,function(F){for(var z in F){var c=void 0;(c=C[z])==null||c(F[z])}}]};
_.SDY=function(I,C){var y=_.Le.getValueByKeys(I,"contents","twoColumnWatchNextResults","results","results","contents"),k=_.Le.getValueByKeys(I,"contents","twoColumnWatchNextResults","playlist","playlist")||null,F=null,z=null;if(k)F=_.Le.getValueByKeys(k,"titleText"),z=_.Le.unsafeClone(_.Le.getValueByKeys(k,"longBylineText")),y="",z&&(y=_.hS(z)),z=_.Ee(y);else if(y){y=_.T(y);for(var c=y.next();!c.done;c=y.next())c=c.value,c.videoPrimaryInfoRenderer&&(F=_.Le.getValueByKeys.apply(_.Le,[c].concat(_.Py(Gtz)))),
c.videoSecondaryInfoRenderer&&(z=_.Le.getValueByKeys.apply(_.Le,[c].concat(_.Py(faX))))}else _.xS(Error("uj"));var r;I.currentVideoEndpoint?r=I.currentVideoEndpoint:_.xS(Error("vj"));var w;C&&(w=_.Le.getValueByKeys(C,"playabilityStatus","miniplayer","miniplayerRenderer"));I={miniplayerTitle:F,miniplayerSubtitle:z,watchEndpoint:r,playlistData:k};w&&(I.miniplayerRenderer=w);return I};
K$W=function(I){if(I)return _.j2(I)};
_.AIm=function(){return{isFullscreen:function(){throw Error("wj");},
toggleFullscreen:function(){throw Error("xj");},
exitFullscreen:function(){throw Error("yj");},
isAutonavEnabled:function(){throw Error("zj");},
setAutonavEnabled:function(){throw Error("Aj");},
isAutoplaySetExplicitly:function(){throw Error("Bj");}}};
gaz=function(I){return I.videoDuration?I.numTaps>1&&I.tapDirection!==0?_.St(I.draggedTime/I.videoDuration,0,1):_.St((I.playedTime||0)/I.videoDuration,0,1):0};
vaz=function(I){return I.videoDuration?I.isDragging||I.numTaps>1&&I.tapDirection!==0?_.St(I.draggedTime/I.videoDuration,0,1):_.St((I.playedTime||0)/I.videoDuration,0,1):0};
dOW=function(I){var C,y,k;return _.l(I==null?void 0:(C=I.markersMap)==null?void 0:(y=C.find(function(F){return F.key==="HEATSEEKER"}))==null?void 0:(k=y.value)==null?void 0:k.heatmap,W$W)};
xOX=function(I){var C,y;return(y=(C=dOW(I))==null?void 0:C.heatMarkersDecorations)!=null?y:[]};
qDY=function(I){if(_.V("mweb_supported_chapters_killswitch"))return!0;var C;return!!(I==null?0:(C=I.markersMap)==null?0:C.find(function(y){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(y.key)}))};
_.mO9=function(I){var C=Object,y=C.assign,k;I={isDragging:!1,draggedTime:0,isHovering:!1,hoveredTime:0,percentLoaded:0,playerState:(k=I==null?void 0:I.getPlayerState())!=null?k:-1,videoDuration:0,playedTime:0,wasPlaying:!1};return y.call(C,{},{isLive:!1,isPlaylist:!1,playerType:1,isProbablyAScreenreaderUser:!1,videoId:void 0,captionsEnabled:!1,captionsAvailable:!1,volume:0,volumeMuted:!0,draggedYDistance:0,isLooping:!1,isLongPressSpeedup:!1},{enabledFullscreenControlsGesture:!1,expandedFullscreenControls:!1,
isFullscreen:!1,numTaps:0,tapDirection:0},{autonavCanceled:!1,autonavEnabled:!1,autonavPaused:!1,autonavCountdown:0,showAutonavMessage:!1},I,{playbackRate:1},{controlsVisible:!1,shouldWaitToHideControls:!1,isOverlayHidden:!1},{fineScrubbingActiveState:"off",storyboardInterval:0,filmStripXDistance:0,fineScrubbingEnteredTime:0})};
ZmO=function(I){return function(C){var y=I(),k,F=(k=y.playerApi)==null?void 0:k.getPlayerState();C&&C!==y.playerState&&(C===1||C===2)&&y.setState({playerState:F})}};
Ea9=function(I){return function(C){var y=I(),k=y.playerApi;k&&(C==null?void 0:C.type)==="newdata"&&(BVI&&(clearTimeout(BVI),BVI=void 0),_.V("web_shorts_use_progress_state_for_gapless")?(C=k==null?void 0:k.getProgressState(C==null?void 0:C.playertype),C=C.seekableEnd-C.seekableStart):C=k==null?void 0:k.getDuration(C==null?void 0:C.playertype),y.setState({playedTime:0,videoDuration:C}))}};
hUz=function(I){return function(C){var y=I(),k=y.playerApi;if(k){var F=k.getPresentingPlayerType();_.V("web_shorts_use_progress_state_for_gapless")?(k=k.getProgressState(F),k=k.seekableEnd-k.seekableStart):k=k.getDuration(F);y.setState({playedTime:C,videoDuration:k})}}};
t3m=function(I){var C=I.element;var y=I.veType;var k=I.storedVisualElement===void 0?null:I.storedVisualElement;var F=I.elementIndex===void 0?0:I.elementIndex;I=I.clientYouTubeData;var z=_.Si();z!==UOX&&(HmY.clear(),UOX=z);if(C.visualElement&&HmY.has(C.visualElement))return null;if(k&&HmY.has(k))return C.visualElement=k,null;y=_.c9(_.e2(),{veType:y,elementIndex:F,clientYouTubeData:I});if(!y)return null;C.visualElement=y;HmY.add(y);return y};
_.KI=function(I,C,y,k){y=y===void 0?null:y;k=k===void 0?tam:k;var F=F===void 0?null:F;pv(function(){if(C){y instanceof Function&&(y=y());var z=t3m({element:C,veType:I,storedVisualElement:y,clientYouTubeData:void 0});z&&(alK(C,F),k(z))}})};
Omz=function(I){_.KI(112394,I,function(){return JII},function(C){JII=C})};
IFF=function(I,C){if(!I)return[];var y,k,F;I=((y=I.markersMap)==null?void 0:(k=y.find(function(z){return["DESCRIPTION_CHAPTERS","AUTO_CHAPTERS"].includes(z.key)}))==null?void 0:(F=k.value)==null?void 0:F.chapters)||[];
!aaK(I)||(C==null?0:C.ignoreStub)||(I=[M3K()].concat(_.Py(I)));return I};
M3K=function(){return{chapterRenderer:{timeRangeStartMillis:0}}};
aaK=function(I){if(I.length===0)return!1;var C;return((C=_.l(I[0],Au))==null?void 0:C.timeRangeStartMillis)!==0};
gA=function(I){return I?I.timeRangeStartMillis||0:0};
sqI=function(I,C){if(I.isDragging&&C)return I=CQm(I,C),I===-1?M3K():IFF(C)[I]};
CQm=function(I,C){return I.isDragging&&C?IFF(C,{ignoreStub:!0}).findIndex(function(y,k,F){y=o7O(I);return yNI(y,F,k).scrubberHovering}):-1};
o7O=function(I){return Object.assign({},I,{videoDuration:I.videoDuration*1E3,playedTime:I.playedTime*1E3,draggedTime:I.draggedTime*1E3})};
yNI=function(I,C,y){var k=gA(_.l(C[y],Au));C=gA(_.l(C[y+1],Au))||I.videoDuration;y=I.isDragging;var F;if(F=I.isDragging)F=I.draggedTime,F=F!==null&&F>=k&&F<C;var z=I.playedTime;return z!==null&&z>=k&&z<C?{videoPosition:"active",isScrubbing:y,scrubberHovering:F}:I.playedTime<k?{videoPosition:"pending",isScrubbing:y,scrubberHovering:F}:{videoPosition:"seen",isScrubbing:y,scrubberHovering:F}};
kzX=function(I,C){return I.videoPosition==="seen"||(C===void 0?0:C)>0};
FVI=function(I,C,y){C=I/C.storyboardInterval;var k=IFF(y);if(!k.length)return-C*72;y=0;k=_.T(k);for(var F=k.next();!F.done;F=k.next())if(gA(_.l(F.value,Au))/1E3<I)y++;else break;return-(C*72)-y*56};
uDK=function(I){return I?I.width/I.columns:0};
zgz=function(I){return I.isHovering?I.hoveredTime:I.draggedTime};
Tqs=function(I,C){I=I.draggedTime*1E3;return I>=C.visibleTimeRangeStartMillis&&I<=C.visibleTimeRangeEndMillis};
_.cNI=function(I){if(I===void 0||Number.isNaN(I))return"--:--";var C=Math.abs(Math.floor(I)),y=Math.floor(C/86400),k=Math.floor(C%86400/3600),F=Math.floor(C%3600/60);C=Math.floor(C%60);var z="";y>0&&(z+=y+":",k<10&&(z+="0"));if(y>0||k>0)z+=k+":",F<10&&(z+="0");z+=F+":";C<10&&(z+="0");z+=C;return I>=0?z:"-"+z};
egt=function(I,C){return function(){var y=zgz(I());var k=C();var F=I().playerApi;if(F&&F.getNumberOfStoryboardLevels()!==0){var z=F.getStoryboardFrameIndex(y,1);z!==-1?k=F.getStoryboardFrame(z,1):(y=F.getStoryboardFrameIndex(y,0),F=F.getStoryboardFrame(y,0),k&&F&&(F.height*=3,F.width*=3),k=F)}else k=null;if(!k)return null;C()&&(k.width=90*k.columns,k.height=160*k.rows);return k}};
_.vJ=function(I){if(!I||I.getVideoData)return I};
rNK=function(){var I;return{playerApi:(I=_.oY())!=null?I:void 0}};
_.LVO=function(I){function C(a){a!==0||p?a>50&&(p||!X)?(Q(!1),b(!0)):a<=50&&(p||X)&&(Q(!1),b(!1)):Q(!0)}
function y(){var a;return _.e(function(cs){if(cs.nextAddress==1)return _.n(cs,_.sG(),2);(a=cs.yieldResult)&&(a.isMuted()?Q(!0):Q(!1));_.oI(cs)})}
var k=I.noSlider;var F=I.orientation;I=_.Es();var z=_.Es(),c=_.h3(),r=_.T(Fi(!1)),w=r.next().value,L=r.next().value,D=_.T(Fi(!1));r=D.next().value;D=D.next().value;var p=r,Q=D;D=_.T(Fi(!0));r=D.next().value;D=D.next().value;var X=r,b=D;r=F==="vertical_down";_.RU(function(){function a(){L(!0)}
function cs(){L(!1)}
k?(y(),C(p?0:100)):c&&c.value&&(c.value.addEventListener("focus",a),c.value.addEventListener("focusout",cs),iYs(c.value).then(function(){C(Number(wuK(c.value)))}));
z&&z.value&&(z.value.addEventListener("focus",a),z.value.addEventListener("focusout",cs));return function(){var XO;c==null||(XO=c.value)==null||XO.removeEventListener("focus",a);var Rm;c==null||(Rm=c.value)==null||Rm.removeEventListener("focusout",cs);z.value.removeEventListener("focus",a);z.value.removeEventListener("focusout",cs)}});
var S=_.uk(function(){if(c&&c.value){var a=Number(wuK(c.value));n7Y(a);c.value.style.setProperty("--gradient-percent",a+"%");C(a)}return!1});
D={};D=(D.ytdDesktopShortsVolumeControlsHost=!0,D.ytdDesktopShortsVolumeControlsHostVertical=r,D.ytdDesktopShortsVolumeControlsHostExpanded=w,D);var A={},x=(A.ytdDesktopShortsVolumeControlsSliderContainer=!0,A.ytdDesktopShortsVolumeControlsSliderContainerExpanded=w,A.ytdDesktopShortsVolumeControlsSliderContainerVertical=r,A.ytdDesktopShortsVolumeControlsSliderContainerVerticalDown=F==="vertical_down",A.ytdDesktopShortsVolumeControlsSliderContainerVerticalExpanded=w&&r,A);F={};var B=(F.ytdDesktopShortsVolumeControlsBackgroundScrim=
!0,F.ytdDesktopShortsVolumeControlsBackgroundScrimExpanded=k?!1:w,F);w={};w=(w.ytdDesktopShortsVolumeControlsMuteIconButtonContainer=r,w);F=_.uk(function(){L(!0)});
A=_.uk(function(){L(!1)});
var t=_.uk(function(){if(c&&c.value||k)PQH(c.value,p,k),Q(!p);return!1}),U=_.V("web_shorts_keyboard_enable_mute_shortcut")?p?_.PQ("PLAYER_LABEL_UNMUTE",void 0,"Unmute (m)"):_.PQ("PLAYER_LABEL_MUTE",void 0,"Mute (m)"):p?_.PQ("UNMUTE_VOLUME",void 0,"Unmute"):_.PQ("MUTE_VOLUME",void 0,"Mute"),yW={sources:[{clientResource:{imageName:p?"VOLUME_OFF_FILLED":X?"VOLUME_UP_FILLED":"VOLUME_DOWN_FILLED"}}]};
return _.P("desktop-shorts-volume-controls",{"on:pointerleave":A,class:_.yc(D),el:I},_.H2(!r,function(){return _.P("div",{class:_.yc(B)})}),_.P("div",{class:_.yc(w)},_.P("button",{"aria-label":U,
title:U,el:z,"on:click":t,"on:pointerenter":F,class:"ytdDesktopShortsVolumeControlsMuteIconButton"},yW?_.P(_.x$,{data:yW,alt:U,className:"ytdDesktopShortsVolumeControlsMuteIcon"}):null)),_.H2(!k,function(){return _.P("div",{class:_.yc(x)},_.P("input",{"aria-label":_.PQ("VOLUME"),title:_.PQ("VOLUME"),el:c,"on:input":S,type:"range",class:"ytdDesktopShortsVolumeControlsNativeSlider",id:"volume-input"}))}))};
iYs=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.sG(),2);C=k.yieldResult;y=50;C&&(y=C.getVolume(),C.isMuted()?D0H(I,0):D0H(I,y));_.oI(k)})};
n7Y=function(I){var C;_.e(function(y){if(y.nextAddress==1)return _.n(y,_.sG(),2);if(C=y.yieldResult)C.unMute(!0),C.setVolume(I,!0);_.oI(y)})};
D0H=function(I,C){I&&(I.value=""+C,I.style.setProperty("--gradient-percent",C+"%"))};
wuK=function(I){var C;return(C=I==null?void 0:I.value)!=null?C:0};
PQH=function(I,C,y){var k;_.e(function(F){if(F.nextAddress==1)return _.n(F,_.sG(),2);k=F.yieldResult;C&&k?(k.unMute(!0),!y&&I&&D0H(I,k.getVolume())):k&&(k.mute(!0),!y&&I&&D0H(I,0));_.oI(F)})};
puW=function(){var I;_.e(function(C){if(C.nextAddress==1)return _.n(C,_.sG(),2);I=C.yieldResult;if(!I)return C.return();I.isMuted()?I.unMute(!0):I.mute(!0);_.oI(C)})};
Qqm=function(I){var C=_.N().resolve(_.WJ).getPlayerElement();C&&I&&(I===1?C.pause():C.play())};
Nqm=function(I){_.uW(I,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_PREV"])};
Vwm=function(I){_.uW(I,"yt-miniplayer-navigate-shorts",["REEL_NAVIGATION_DESTINATION_NEXT"])};
lFW=function(I){return _.lh(I.document.body,function(){return _.P(jqs,null)})};
XuW=function(){var I=window.performance.getEntriesByType("navigation");return I?I.map(function(C){return C.type}).includes("reload"):!1};
KVW=function(){dA(dA(dA(dA(dA(dA(dA(_.N().resolve(_.xH),_.$0I),_.RgI),_.bYH),_.Y9Y),_.GzO),_.fFz),_.S9I)};
ANm=function(I,C){C=C===void 0?!1:C;var y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return C||!_.V("kevlar_shorts_seedless_retry_initial_load")||(y=window,k=!(!y.getDataPromise&&!y.getInitialData),k)?_.n(c,pdF(),2):(setTimeout(ANm.bind(window,I,!0),1E3),c.return());if(c.nextAddress!=3)return F=c.yieldResult,_.n(c,g7K(F),3);z=c.yieldResult;YH(I,z);_.oI(c)})};
g7K=function(I){var C;if((C=I.response)==null||!C.replacementEndpoint)return _.er(I);C=_.N().resolve(lz);I=I.response;_.l(I.replacementEndpoint,_.PD)&&I.sequenceContinuation&&(_.l(I.replacementEndpoint,_.PD).sequenceParams=I.sequenceContinuation);return qd(C,I.replacementEndpoint,{},_.sF.location.href,"shorts",function(){},function(){return!1})};
v7I=function(I){var C=_.Hg(),y,k=_.l((y=I.response)==null?void 0:y.frameworkUpdates,dh),F;y=_.l((F=I.playerResponse)==null?void 0:F.frameworkUpdates,dh);var z;I=_.l((z=I.reelWatchSequenceResponse)==null?void 0:z.frameworkUpdates,dh);k&&_.nx(k,C);y&&_.nx(y,C);I&&_.nx(I,C)};
WVH=function(I){var C;_.V("enable_redirect_linking_for_desktop_web_client")&&((C=window.location.hash)==null?0:C.includes("redirect_state"))&&I.url&&(I.url=I.url.toString()+window.location.hash)};
q9t=function(I){var C=_.N(),y=C.resolve(lz);C=C.resolve(_.d0I);I.endpoint&&(y=x0m(y,I.endpoint),y.content&&I.response&&_.me(C,I.response,y.content),y.player&&I.playerResponse&&_.me(C,I.playerResponse,y.player),y.reelSequence&&I.reelWatchSequenceResponse&&_.me(C,I.reelWatchSequenceResponse,y.reelSequence))};
ZH=function(I,C){v7I(C);var y;(C==null?0:C.url)&&((y=window.location.hash)==null?0:y.includes("redirect_state"))&&(WVH(C),(y=L$z(C.url))&&_.Fe(I.root,"yt-initialize-third-party",[y,C]));q9t(C);y=_.N();var k=y.resolve(m0m);C.playerResponse&&y.resolve(ZYm).handleResponse(C.playerResponse);if(C.playerResponse){y=void 0;if(_.V("ab_v_vid_sig")&&C.endpoint){var F,z=(F=_.l(C.endpoint,_.H$))!=null?F:_.l(C.endpoint,_.PD);z&&(y=z.videoId)}BqH(k,C.playerResponse,y)}C.playerResponse&&H0X(C.playerResponse)&&_.V("web_enable_ab_rsp_cl")?
WEz().then(function(){E7m(k,C.playerResponse);YH(I,C)}):YH(I,C)};
U0s=function(I){if(I=I.root.data){var C=_.N().resolve(hgY);I.endpoint&&(I.response&&C.handleResponse(I.response,void 0,document.querySelector("ytd-app")),I.playerResponse&&C.handleResponse(I.playerResponse),I.reelWatchSequenceResponse&&C.handleResponse(I.reelWatchSequenceResponse))}};
HYK=function(I){var C,y,k,F,z,c;return _.e(function(r){switch(r.nextAddress){case 1:C=window;if(!C.getDataPromise){r.jumpTo(2);break}_.aM(r,3);return _.n(r,C.getDataPromise(),5);case 5:y=r.yieldResult;ZH(I,y);_.dC(r,4);break;case 3:return _.sj(r),_.n(r,Xv(),6);case 6:k=r.yieldResult,YH(I,k);case 4:return r.return();case 2:if(!_.V("sw_nav_preload_pbj")){r.jumpTo(7);break}C.fetchInitialData=function(){var w;return _.e(function(L){if(L.nextAddress==1)return _.n(L,Xv(),2);w=L.yieldResult;YH(I,w);_.oI(L)})};
if(C.getInitialData){C.loadInitialData=function(w){ZH(I,w)};
F=C.getInitialData();C.getInitialData=void 0;ZH(I,F);r.jumpTo(8);break}C.fetchInitialData=void 0;return _.n(r,Xv(),9);case 9:z=r.yieldResult,YH(I,z);case 8:return r.return();case 7:C.getInitialData?(c=C.getInitialData(),C.getInitialData=void 0,ZH(I,c)):C.loadInitialData=function(w){ZH(I,w)},_.oI(r)}})};
twm=function(I){var C=0;return function(){return C<I.length?{done:!1,value:I[C++]}:{done:!0}}};
JNK=typeof Object.defineProperties=="function"?Object.defineProperty:function(I,C,y){if(I==Array.prototype||I==Object.prototype)return I;I[C]=y.value;return I};
OYW=function(I){I=["object"==typeof globalThis&&globalThis,I,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof global&&global];for(var C=0;C<I.length;++C){var y=I[C];if(y&&y.Math==Math)return y}throw Error("a");};
_.H1=OYW(this);BJ=function(I,C){if(C)a:{var y=_.H1;I=I.split(".");for(var k=0;k<I.length-1;k++){var F=I[k];if(!(F in y))break a;y=y[F]}I=I[I.length-1];k=y[I];C=C(k);C!=k&&C!=null&&JNK(y,I,{configurable:!0,writable:!0,value:C})}};
BJ("Symbol",function(I){if(I)return I;var C=function(z,c){this.$jscomp$symbol$id_=z;JNK(this,"description",{configurable:!0,writable:!0,value:c})};
C.prototype.toString=function(){return this.$jscomp$symbol$id_};
var y="jscomp_symbol_"+(Math.random()*1E9>>>0)+"_",k=0,F=function(z){if(this instanceof F)throw new TypeError("b");return new C(y+(z||"")+"_"+k++,z)};
return F});
BJ("Symbol.iterator",function(I){if(I)return I;I=Symbol("c");for(var C="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),y=0;y<C.length;y++){var k=_.H1[C[y]];typeof k==="function"&&typeof k.prototype[I]!="function"&&JNK(k.prototype,I,{configurable:!0,writable:!0,value:function(){return aFI(twm(this))}})}return I});
BJ("Symbol.asyncIterator",function(I){return I?I:Symbol("d")});
var aFI=function(I){I={next:I};I[Symbol.iterator]=function(){return this};
return I},MwO=typeof Object.create=="function"?Object.create:function(I){var C=function(){};
C.prototype=I;return new C},I3H=function(){function I(){function y(){}
new y;Reflect.construct(y,[],function(){});
return new y instanceof y}
if(typeof Reflect!="undefined"&&Reflect.construct){if(I())return Reflect.construct;var C=Reflect.construct;return function(y,k,F){y=C(y,k);F&&Reflect.setPrototypeOf(y,F.prototype);return y}}return function(y,k,F){F===void 0&&(F=y);
F=MwO(F.prototype||Object.prototype);return Function.prototype.apply.call(y,F,k)||F}}(),COW;
if(typeof Object.setPrototypeOf=="function")COW=Object.setPrototypeOf;else{var s2F;a:{var o2W={a:!0},ytO={};try{ytO.__proto__=o2W;s2F=ytO.a;break a}catch(I){}s2F=!1}COW=s2F?function(I,C){I.__proto__=C;if(I.__proto__!==C)throw new TypeError("e`"+I);return I}:null}En=COW;
_.R=function(I,C){I.prototype=MwO(C.prototype);I.prototype.constructor=I;if(En)En(I,C);else for(var y in C)if(y!="prototype")if(Object.defineProperties){var k=Object.getOwnPropertyDescriptor(C,y);k&&Object.defineProperty(I,y,k)}else I[y]=C[y];I.superClass_=C.prototype};
_.T=function(I){var C=typeof Symbol!="undefined"&&Symbol.iterator&&I[Symbol.iterator];if(C)return C.call(I);if(typeof I.length=="number")return{next:twm(I)};throw Error("f`"+String(I));};
B2=function(I){for(var C,y=[];!(C=I.next()).done;)y.push(C.value);return y};
_.Py=function(I){return I instanceof Array?I:B2(_.T(I))};
_.hu=function(I){return ksz(I,I)};
ksz=function(I,C){I.raw=C;Object.freeze&&(Object.freeze(I),Object.freeze(C));return I};
Un=function(I,C){return Object.prototype.hasOwnProperty.call(I,C)};
FiW=typeof Object.assign=="function"?Object.assign:function(I,C){for(var y=1;y<arguments.length;y++){var k=arguments[y];if(k)for(var F in k)Un(k,F)&&(I[F]=k[F])}return I};
BJ("Object.assign",function(I){return I||FiW});
var uKX=function(){this.isRunning_=!1;this.yieldAllIterator_=null;this.yieldResult=void 0;this.nextAddress=1;this.finallyAddress_=this.catchAddress_=0;this.finallyContexts_=this.abruptCompletion_=null},zLs=function(I){if(I.isRunning_)throw new TypeError("h");
I.isRunning_=!0};
uKX.prototype.JSC$6608_next_=function(I){this.yieldResult=I};
var TNm=function(I,C){I.abruptCompletion_={exception:C,isException:!0};I.nextAddress=I.catchAddress_||I.finallyAddress_};
uKX.prototype.return=function(I){this.abruptCompletion_={return:I};this.nextAddress=this.finallyAddress_};
_.n=function(I,C,y){I.nextAddress=y;return{value:C}};
uKX.prototype.jumpTo=function(I){this.nextAddress=I};
_.oI=function(I){I.nextAddress=0};
_.aM=function(I,C,y){I.catchAddress_=C;y!=void 0&&(I.finallyAddress_=y)};
_.II=function(I,C){I.catchAddress_=0;I.finallyAddress_=C||0};
_.dC=function(I,C,y){I.nextAddress=C;I.catchAddress_=y||0};
_.sj=function(I,C){I.catchAddress_=C||0;C=I.abruptCompletion_.exception;I.abruptCompletion_=null;return C};
_.MM=function(I,C,y,k){k?I.finallyContexts_[k]=I.abruptCompletion_:I.finallyContexts_=[I.abruptCompletion_];I.catchAddress_=C||0;I.finallyAddress_=y||0};
_.C1=function(I,C,y){y=I.finallyContexts_.splice(y||0)[0];(y=I.abruptCompletion_=I.abruptCompletion_||y)?y.isException?I.nextAddress=I.catchAddress_||I.finallyAddress_:y.jumpTo!=void 0&&I.finallyAddress_<y.jumpTo?(I.nextAddress=y.jumpTo,I.abruptCompletion_=null):I.nextAddress=I.finallyAddress_:I.nextAddress=C};
cts=function(I){this.JSC$6613_context_=new uKX;this.program_=I};
rtI=function(I,C){zLs(I.JSC$6613_context_);var y=I.JSC$6613_context_.yieldAllIterator_;if(y)return eLO(I,"return"in y?y["return"]:function(k){return{value:k,done:!0}},C,I.JSC$6613_context_.return);
I.JSC$6613_context_.return(C);return HJ(I)};
eLO=function(I,C,y,k){try{var F=C.call(I.JSC$6613_context_.yieldAllIterator_,y);if(!(F instanceof Object))throw new TypeError("g`"+F);if(!F.done)return I.JSC$6613_context_.isRunning_=!1,F;var z=F.value}catch(c){return I.JSC$6613_context_.yieldAllIterator_=null,TNm(I.JSC$6613_context_,c),HJ(I)}I.JSC$6613_context_.yieldAllIterator_=null;k.call(I.JSC$6613_context_,z);return HJ(I)};
HJ=function(I){for(;I.JSC$6613_context_.nextAddress;)try{var C=I.program_(I.JSC$6613_context_);if(C)return I.JSC$6613_context_.isRunning_=!1,{value:C.value,done:!1}}catch(y){I.JSC$6613_context_.yieldResult=void 0,TNm(I.JSC$6613_context_,y)}I.JSC$6613_context_.isRunning_=!1;if(I.JSC$6613_context_.abruptCompletion_){C=I.JSC$6613_context_.abruptCompletion_;I.JSC$6613_context_.abruptCompletion_=null;if(C.isException)throw C.exception;return{value:C.return,done:!0}}return{value:void 0,done:!0}};
ig9=function(I){this.next=function(C){zLs(I.JSC$6613_context_);I.JSC$6613_context_.yieldAllIterator_?C=eLO(I,I.JSC$6613_context_.yieldAllIterator_.next,C,I.JSC$6613_context_.JSC$6608_next_):(I.JSC$6613_context_.JSC$6608_next_(C),C=HJ(I));return C};
this.throw=function(C){zLs(I.JSC$6613_context_);I.JSC$6613_context_.yieldAllIterator_?C=eLO(I,I.JSC$6613_context_.yieldAllIterator_["throw"],C,I.JSC$6613_context_.JSC$6608_next_):(TNm(I.JSC$6613_context_,C),C=HJ(I));return C};
this.return=function(C){return rtI(I,C)};
this[Symbol.iterator]=function(){return this}};
_.WpK=function(I,C){C=new ig9(new cts(C));En&&I.prototype&&En(C,I.prototype);return C};
wMY=function(I){function C(k){return I.next(k)}
function y(k){return I.throw(k)}
return new Promise(function(k,F){function z(c){c.done?k(c.value):Promise.resolve(c.value).then(C,y).then(z,F)}
z(I.next())})};
_.e=function(I){return wMY(new ig9(new cts(I)))};
qmW=function(I){this[Symbol.asyncIterator]=function(){return this};
this[Symbol.iterator]=function(){return I};
this.next=function(C){return Promise.resolve(I.next(C))};
this["throw"]=function(C){return new Promise(function(y,k){var F=I["throw"];F!==void 0?y(F.call(I,C)):(y=I["return"],y!==void 0&&y.call(I),k(new TypeError("i")))})};
I["return"]!==void 0&&(this["return"]=function(C){return Promise.resolve(I["return"](C))})};
_.wa=function(){for(var I=Number(this),C=[],y=I;y<arguments.length;y++)C[y-I]=arguments[y];return C};
BJ("globalThis",function(I){return I||_.H1});
BJ("Reflect",function(I){return I?I:{}});
BJ("Reflect.construct",function(){return I3H});
BJ("Reflect.setPrototypeOf",function(I){return I?I:En?function(C,y){try{return En(C,y),!0}catch(k){return!1}}:null});
BJ("Promise",function(I){function C(){this.batch_=null}
function y(c){return c instanceof F?c:new F(function(r){r(c)})}
if(I&&(typeof _.H1.PromiseRejectionEvent!=="undefined"||!_.H1.Promise||_.H1.Promise.toString().indexOf("[native code]")===-1))return I;C.prototype.asyncExecute=function(c){if(this.batch_==null){this.batch_=[];var r=this;this.asyncExecuteFunction(function(){r.executeBatch_()})}this.batch_.push(c)};
var k=_.H1.setTimeout;C.prototype.asyncExecuteFunction=function(c){k(c,0)};
C.prototype.executeBatch_=function(){for(;this.batch_&&this.batch_.length;){var c=this.batch_;this.batch_=[];for(var r=0;r<c.length;++r){var w=c[r];c[r]=null;try{w()}catch(L){this.asyncThrow_(L)}}}this.batch_=null};
C.prototype.asyncThrow_=function(c){this.asyncExecuteFunction(function(){throw c;})};
var F=function(c){this.state_=0;this.result_=void 0;this.onSettledCallbacks_=[];this.isRejectionHandled_=!1;var r=this.createResolveAndReject_();try{c(r.resolve,r.reject)}catch(w){r.reject(w)}};
F.prototype.createResolveAndReject_=function(){function c(L){return function(D){w||(w=!0,L.call(r,D))}}
var r=this,w=!1;return{resolve:c(this.resolveTo_),reject:c(this.JSC$6629_reject_)}};
F.prototype.resolveTo_=function(c){if(c===this)this.JSC$6629_reject_(new TypeError("j"));else if(c instanceof F)this.settleSameAsPromise_(c);else{a:switch(typeof c){case "object":var r=c!=null;break a;case "function":r=!0;break a;default:r=!1}r?this.resolveToNonPromiseObj_(c):this.fulfill_(c)}};
F.prototype.resolveToNonPromiseObj_=function(c){var r=void 0;try{r=c.then}catch(w){this.JSC$6629_reject_(w);return}typeof r=="function"?this.settleSameAsThenable_(r,c):this.fulfill_(c)};
F.prototype.JSC$6629_reject_=function(c){this.settle_(2,c)};
F.prototype.fulfill_=function(c){this.settle_(1,c)};
F.prototype.settle_=function(c,r){if(this.state_!=0)throw Error("k`"+c+"`"+r+"`"+this.state_);this.state_=c;this.result_=r;this.state_===2&&this.scheduleUnhandledRejectionCheck_();this.executeOnSettledCallbacks_()};
F.prototype.scheduleUnhandledRejectionCheck_=function(){var c=this;k(function(){if(c.notifyUnhandledRejection_()){var r=_.H1.console;typeof r!=="undefined"&&r.error(c.result_)}},1)};
F.prototype.notifyUnhandledRejection_=function(){if(this.isRejectionHandled_)return!1;var c=_.H1.CustomEvent,r=_.H1.Event,w=_.H1.dispatchEvent;if(typeof w==="undefined")return!0;typeof c==="function"?c=new c("unhandledrejection",{cancelable:!0}):typeof r==="function"?c=new r("unhandledrejection",{cancelable:!0}):(c=_.H1.document.createEvent("CustomEvent"),c.initCustomEvent("unhandledrejection",!1,!0,c));c.promise=this;c.reason=this.result_;return w(c)};
F.prototype.executeOnSettledCallbacks_=function(){if(this.onSettledCallbacks_!=null){for(var c=0;c<this.onSettledCallbacks_.length;++c)z.asyncExecute(this.onSettledCallbacks_[c]);this.onSettledCallbacks_=null}};
var z=new C;F.prototype.settleSameAsPromise_=function(c){var r=this.createResolveAndReject_();c.callWhenSettled_(r.resolve,r.reject)};
F.prototype.settleSameAsThenable_=function(c,r){var w=this.createResolveAndReject_();try{c.call(r,w.resolve,w.reject)}catch(L){w.reject(L)}};
F.prototype.then=function(c,r){function w(Q,X){return typeof Q=="function"?function(b){try{L(Q(b))}catch(S){D(S)}}:X}
var L,D,p=new F(function(Q,X){L=Q;D=X});
this.callWhenSettled_(w(c,L),w(r,D));return p};
F.prototype.catch=function(c){return this.then(void 0,c)};
F.prototype.callWhenSettled_=function(c,r){function w(){switch(L.state_){case 1:c(L.result_);break;case 2:r(L.result_);break;default:throw Error("l`"+L.state_);}}
var L=this;this.onSettledCallbacks_==null?z.asyncExecute(w):this.onSettledCallbacks_.push(w);this.isRejectionHandled_=!0};
F.resolve=y;F.reject=function(c){return new F(function(r,w){w(c)})};
F.race=function(c){return new F(function(r,w){for(var L=_.T(c),D=L.next();!D.done;D=L.next())y(D.value).callWhenSettled_(r,w)})};
F.all=function(c){var r=_.T(c),w=r.next();return w.done?y([]):new F(function(L,D){function p(b){return function(S){Q[b]=S;X--;X==0&&L(Q)}}
var Q=[],X=0;do Q.push(void 0),X++,y(w.value).callWhenSettled_(p(Q.length-1),D),w=r.next();while(!w.done)})};
return F});
var tu=function(I,C,y){if(I==null)throw new TypeError("m`"+y);if(C instanceof RegExp)throw new TypeError("n`"+y);return I+""};
BJ("String.prototype.startsWith",function(I){return I?I:function(C,y){var k=tu(this,C,"startsWith"),F=k.length,z=C.length;y=Math.max(0,Math.min(y|0,k.length));for(var c=0;c<z&&y<F;)if(k[y++]!=C[c++])return!1;return c>=z}});
BJ("Object.setPrototypeOf",function(I){return I||En});
BJ("Symbol.dispose",function(I){return I?I:Symbol("o")});
BJ("SuppressedError",function(I){function C(y,k,F){if(!(this instanceof C))return new C(y,k,F);F=Error(F);"stack"in F&&(this.stack=F.stack);this.message=F.message;this.error=y;this.suppressed=k}
if(I)return I;_.R(C,Error);C.prototype.name="SuppressedError";return C});
var n2F=function(I,C,y){I instanceof String&&(I=String(I));for(var k=I.length,F=0;F<k;F++){var z=I[F];if(C.call(y,z,F,I))return{i:F,v:z}}return{i:-1,v:void 0}};
BJ("Array.prototype.find",function(I){return I?I:function(C,y){return n2F(this,C,y).v}});
BJ("WeakMap",function(I){function C(){}
function y(w){var L=typeof w;return L==="object"&&w!==null||L==="function"}
function k(w){if(!Un(w,z)){var L=new C;JNK(w,z,{value:L})}}
function F(w){var L=Object[w];L&&(Object[w]=function(D){if(D instanceof C)return D;Object.isExtensible(D)&&k(D);return L(D)})}
if(function(){if(!I||!Object.seal)return!1;try{var w=Object.seal({}),L=Object.seal({}),D=new I([[w,2],[L,3]]);if(D.get(w)!=2||D.get(L)!=3)return!1;D.delete(w);D.set(L,4);return!D.has(w)&&D.get(L)==4}catch(p){return!1}}())return I;
var z="$jscomp_hidden_"+Math.random();F("freeze");F("preventExtensions");F("seal");var c=0,r=function(w){this.JSC$6636_id_=(c+=Math.random()+1).toString();if(w){w=_.T(w);for(var L;!(L=w.next()).done;)L=L.value,this.set(L[0],L[1])}};
r.prototype.set=function(w,L){if(!y(w))throw Error("p");k(w);if(!Un(w,z))throw Error("q`"+w);w[z][this.JSC$6636_id_]=L;return this};
r.prototype.get=function(w){return y(w)&&Un(w,z)?w[z][this.JSC$6636_id_]:void 0};
r.prototype.has=function(w){return y(w)&&Un(w,z)&&Un(w[z],this.JSC$6636_id_)};
r.prototype.delete=function(w){return y(w)&&Un(w,z)&&Un(w[z],this.JSC$6636_id_)?delete w[z][this.JSC$6636_id_]:!1};
return r});
BJ("Map",function(I){if(function(){if(!I||typeof I!="function"||!I.prototype.entries||typeof Object.seal!="function")return!1;try{var r=Object.seal({x:4}),w=new I(_.T([[r,"s"]]));if(w.get(r)!="s"||w.size!=1||w.get({x:4})||w.set({x:4},"t")!=w||w.size!=2)return!1;var L=w.entries(),D=L.next();if(D.done||D.value[0]!=r||D.value[1]!="s")return!1;D=L.next();return D.done||D.value[0].x!=4||D.value[1]!="t"||!L.next().done?!1:!0}catch(p){return!1}}())return I;
var C=new WeakMap,y=function(r){this[0]={};this[1]=z();this.size=0;if(r){r=_.T(r);for(var w;!(w=r.next()).done;)w=w.value,this.set(w[0],w[1])}};
y.prototype.set=function(r,w){r=r===0?0:r;var L=k(this,r);L.list||(L.list=this[0][L.id]=[]);L.entry?L.entry.value=w:(L.entry={next:this[1],previous:this[1].previous,head:this[1],key:r,value:w},L.list.push(L.entry),this[1].previous.next=L.entry,this[1].previous=L.entry,this.size++);return this};
y.prototype.delete=function(r){r=k(this,r);return r.entry&&r.list?(r.list.splice(r.index,1),r.list.length||delete this[0][r.id],r.entry.previous.next=r.entry.next,r.entry.next.previous=r.entry.previous,r.entry.head=null,this.size--,!0):!1};
y.prototype.clear=function(){this[0]={};this[1]=this[1].previous=z();this.size=0};
y.prototype.has=function(r){return!!k(this,r).entry};
y.prototype.get=function(r){return(r=k(this,r).entry)&&r.value};
y.prototype.entries=function(){return F(this,function(r){return[r.key,r.value]})};
y.prototype.keys=function(){return F(this,function(r){return r.key})};
y.prototype.values=function(){return F(this,function(r){return r.value})};
y.prototype.forEach=function(r,w){for(var L=this.entries(),D;!(D=L.next()).done;)D=D.value,r.call(w,D[1],D[0],this)};
y.prototype[Symbol.iterator]=y.prototype.entries;var k=function(r,w){var L=w&&typeof w;L=="object"||L=="function"?C.has(w)?L=C.get(w):(L=""+ ++c,C.set(w,L)):L="p_"+w;var D=r[0][L];if(D&&Un(r[0],L))for(r=0;r<D.length;r++){var p=D[r];if(w!==w&&p.key!==p.key||w===p.key)return{id:L,list:D,index:r,entry:p}}return{id:L,list:D,index:-1,entry:void 0}},F=function(r,w){var L=r[1];
return aFI(function(){if(L){for(;L.head!=r[1];)L=L.previous;for(;L.next!=L.head;)return L=L.next,{done:!1,value:w(L)};L=null}return{done:!0,value:void 0}})},z=function(){var r={};
return r.previous=r.next=r.head=r},c=0;
return y});
BJ("Set",function(I){if(function(){if(!I||typeof I!="function"||!I.prototype.entries||typeof Object.seal!="function")return!1;try{var y=Object.seal({x:4}),k=new I(_.T([y]));if(!k.has(y)||k.size!=1||k.add(y)!=k||k.size!=1||k.add({x:4})!=k||k.size!=2)return!1;var F=k.entries(),z=F.next();if(z.done||z.value[0]!=y||z.value[1]!=y)return!1;z=F.next();return z.done||z.value[0]==y||z.value[0].x!=4||z.value[1]!=z.value[0]?!1:F.next().done}catch(c){return!1}}())return I;
var C=function(y){this.JSC$6650_map_=new Map;if(y){y=_.T(y);for(var k;!(k=y.next()).done;)this.add(k.value)}this.size=this.JSC$6650_map_.size};
C.prototype.add=function(y){y=y===0?0:y;this.JSC$6650_map_.set(y,y);this.size=this.JSC$6650_map_.size;return this};
C.prototype.delete=function(y){y=this.JSC$6650_map_.delete(y);this.size=this.JSC$6650_map_.size;return y};
C.prototype.clear=function(){this.JSC$6650_map_.clear();this.size=0};
C.prototype.has=function(y){return this.JSC$6650_map_.has(y)};
C.prototype.entries=function(){return this.JSC$6650_map_.entries()};
C.prototype.values=function(){return this.JSC$6650_map_.values()};
C.prototype.keys=C.prototype.values;C.prototype[Symbol.iterator]=C.prototype.values;C.prototype.forEach=function(y,k){var F=this;this.JSC$6650_map_.forEach(function(z){return y.call(k,z,z,F)})};
return C});
BJ("Math.log2",function(I){return I?I:function(C){return Math.log(C)/Math.LN2}});
BJ("Object.values",function(I){return I?I:function(C){var y=[],k;for(k in C)Un(C,k)&&y.push(C[k]);return y}});
BJ("Object.is",function(I){return I?I:function(C,y){return C===y?C!==0||1/C===1/y:C!==C&&y!==y}});
BJ("Array.prototype.includes",function(I){return I?I:function(C,y){var k=this;k instanceof String&&(k=String(k));var F=k.length;y=y||0;for(y<0&&(y=Math.max(y+F,0));y<F;y++){var z=k[y];if(z===C||Object.is(z,C))return!0}return!1}});
BJ("String.prototype.includes",function(I){return I?I:function(C,y){return tu(this,C,"includes").indexOf(C,y||0)!==-1}});
BJ("Array.from",function(I){return I?I:function(C,y,k){y=y!=null?y:function(r){return r};
var F=[],z=typeof Symbol!="undefined"&&Symbol.iterator&&C[Symbol.iterator];if(typeof z=="function"){C=z.call(C);for(var c=0;!(z=C.next()).done;)F.push(y.call(k,z.value,c++))}else for(z=C.length,c=0;c<z;c++)F.push(y.call(k,C[c],c));return F}});
BJ("Object.entries",function(I){return I?I:function(C){var y=[],k;for(k in C)Un(C,k)&&y.push([k,C[k]]);return y}});
BJ("Number.isFinite",function(I){return I?I:function(C){return typeof C!=="number"?!1:!isNaN(C)&&C!==Infinity&&C!==-Infinity}});
BJ("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991});
BJ("Number.MIN_SAFE_INTEGER",function(){return-9007199254740991});
BJ("Number.isInteger",function(I){return I?I:function(C){return Number.isFinite(C)?C===Math.floor(C):!1}});
BJ("Number.isSafeInteger",function(I){return I?I:function(C){return Number.isInteger(C)&&Math.abs(C)<=Number.MAX_SAFE_INTEGER}});
BJ("String.prototype.endsWith",function(I){return I?I:function(C,y){var k=tu(this,C,"endsWith");y===void 0&&(y=k.length);y=Math.max(0,Math.min(y|0,k.length));for(var F=C.length;F>0&&y>0;)if(k[--y]!=C[--F])return!1;return F<=0}});
var PO9=function(I,C){I instanceof String&&(I+="");var y=0,k=!1,F={next:function(){if(!k&&y<I.length){var z=y++;return{value:C(z,I[z]),done:!1}}k=!0;return{done:!0,value:void 0}}};
F[Symbol.iterator]=function(){return F};
return F};
BJ("Array.prototype.entries",function(I){return I?I:function(){return PO9(this,function(C,y){return[C,y]})}});
BJ("Math.imul",function(I){return I?I:function(C,y){C=Number(C);y=Number(y);var k=C&65535,F=y&65535;return k*F+((C>>>16&65535)*F+k*(y>>>16&65535)<<16>>>0)|0}});
BJ("Math.trunc",function(I){return I?I:function(C){C=Number(C);if(isNaN(C)||C===Infinity||C===-Infinity||C===0)return C;var y=Math.floor(Math.abs(C));return C<0?-y:y}});
BJ("Number.isNaN",function(I){return I?I:function(C){return typeof C==="number"&&isNaN(C)}});
BJ("Array.prototype.keys",function(I){return I?I:function(){return PO9(this,function(C){return C})}});
BJ("Array.prototype.values",function(I){return I?I:function(){return PO9(this,function(C,y){return y})}});
BJ("Array.prototype.fill",function(I){return I?I:function(C,y,k){var F=this.length||0;y<0&&(y=Math.max(0,F+y));if(k==null||k>F)k=F;k=Number(k);k<0&&(k=Math.max(0,F+k));for(y=Number(y||0);y<k;y++)this[y]=C;return this}});
var Ju=function(I){return I?I:Array.prototype.fill};
BJ("Int8Array.prototype.fill",Ju);BJ("Uint8Array.prototype.fill",Ju);BJ("Uint8ClampedArray.prototype.fill",Ju);BJ("Int16Array.prototype.fill",Ju);BJ("Uint16Array.prototype.fill",Ju);BJ("Int32Array.prototype.fill",Ju);BJ("Uint32Array.prototype.fill",Ju);BJ("Float32Array.prototype.fill",Ju);BJ("Float64Array.prototype.fill",Ju);
BJ("Object.fromEntries",function(I){return I?I:function(C){var y={};if(!(Symbol.iterator in C))throw new TypeError("r`"+C);C=C[Symbol.iterator].call(C);for(var k=C.next();!k.done;k=C.next()){k=k.value;if(Object(k)!==k)throw new TypeError("s");y[k[0]]=k[1]}return y}});
BJ("String.prototype.replaceAll",function(I){return I?I:function(C,y){if(C instanceof RegExp&&!C.global)throw new TypeError("t");return C instanceof RegExp?this.replace(C,y):this.replace(new RegExp(String(C).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08"),"g"),y)}});
BJ("Object.getOwnPropertySymbols",function(I){return I?I:function(){return[]}});
BJ("String.prototype.repeat",function(I){return I?I:function(C){var y=tu(this,null,"repeat");if(C<0||C>1342177279)throw new RangeError("u");C|=0;for(var k="";C;)if(C&1&&(k+=y),C>>>=1)y+=y;return k}});
BJ("Array.prototype.findIndex",function(I){return I?I:function(C,y){return n2F(this,C,y).i}});
BJ("Array.prototype.flatMap",function(I){return I?I:function(C,y){var k=[];Array.prototype.forEach.call(this,function(F,z){F=C.call(y,F,z,this);Array.isArray(F)?k.push.apply(k,F):k.push(F)});
return k}});
BJ("String.prototype.codePointAt",function(I){return I?I:function(C){var y=tu(this,null,"codePointAt"),k=y.length;C=Number(C)||0;if(C>=0&&C<k){C|=0;var F=y.charCodeAt(C);if(F<55296||F>56319||C+1===k)return F;C=y.charCodeAt(C+1);return C<56320||C>57343?F:(F-55296)*1024+C+9216}}});
BJ("String.fromCodePoint",function(I){return I?I:function(C){for(var y="",k=0;k<arguments.length;k++){var F=Number(arguments[k]);if(F<0||F>1114111||F!==Math.floor(F))throw new RangeError("v`"+F);F<=65535?y+=String.fromCharCode(F):(F-=65536,y+=String.fromCharCode(F>>>10&1023|55296),y+=String.fromCharCode(F&1023|56320))}return y}});
BJ("String.prototype.padStart",function(I){return I?I:function(C,y){var k=tu(this,null,"padStart");C-=k.length;y=y!==void 0?String(y):" ";return(C>0&&y?y.repeat(Math.ceil(C/y.length)).substring(0,C):"")+k}});
BJ("Promise.prototype.finally",function(I){return I?I:function(C){return this.then(function(y){return Promise.resolve(C()).then(function(){return y})},function(y){return Promise.resolve(C()).then(function(){throw y;
})})}});
BJ("Object.hasOwn",function(I){return I?I:function(C,y){return Object.prototype.hasOwnProperty.call(C,y)}});
var LiI=function(I){I=Math.trunc(I)||0;I<0&&(I+=this.length);if(!(I<0||I>=this.length))return this[I]};
BJ("Array.prototype.at",function(I){return I?I:LiI});
var On=function(I){return I?I:LiI};
BJ("Int8Array.prototype.at",On);BJ("Uint8Array.prototype.at",On);BJ("Uint8ClampedArray.prototype.at",On);BJ("Int16Array.prototype.at",On);BJ("Uint16Array.prototype.at",On);BJ("Int32Array.prototype.at",On);BJ("Uint32Array.prototype.at",On);BJ("Float32Array.prototype.at",On);BJ("Float64Array.prototype.at",On);BJ("String.prototype.at",function(I){return I?I:LiI});
BJ("Math.sign",function(I){return I?I:function(C){C=Number(C);return C===0||isNaN(C)?C:C>0?1:-1}});
BJ("Array.prototype.flat",function(I){return I?I:function(C){C=C===void 0?1:C;var y=[];Array.prototype.forEach.call(this,function(k){Array.isArray(k)&&C>0?(k=Array.prototype.flat.call(k,C-1),y.push.apply(y,k)):y.push(k)});
return y}});
BJ("String.raw",function(I){return I?I:function(C,y){if(C==null)throw new TypeError("w");for(var k=C.raw,F=k.length,z="",c=0;c<F;++c)z+=k[c],c+1<F&&c+1<arguments.length&&(z+=String(arguments[c+1]));return z}});
BJ("Reflect.ownKeys",function(I){return I?I:function(C){var y=[],k=Object.getOwnPropertyNames(C);C=Object.getOwnPropertySymbols(C);for(var F=0;F<k.length;F++)(k[F].substring(0,14)=="jscomp_symbol_"?C:y).push(k[F]);return y.concat(C)}});
BJ("Object.getOwnPropertyDescriptors",function(I){return I?I:function(C){for(var y={},k=Reflect.ownKeys(C),F=0;F<k.length;F++)y[k[F]]=Object.getOwnPropertyDescriptor(C,k[F]);return y}});
BJ("WeakSet",function(I){if(function(){if(!I||!Object.seal)return!1;try{var y=Object.seal({}),k=Object.seal({}),F=new I([y]);if(!F.has(y)||F.has(k))return!1;F.delete(y);F.add(k);return!F.has(y)&&F.has(k)}catch(z){return!1}}())return I;
var C=function(y){this.JSC$6656_map_=new WeakMap;if(y){y=_.T(y);for(var k;!(k=y.next()).done;)this.add(k.value)}};
C.prototype.add=function(y){this.JSC$6656_map_.set(y,!0);return this};
C.prototype.has=function(y){return this.JSC$6656_map_.has(y)};
C.prototype.delete=function(y){return this.JSC$6656_map_.delete(y)};
return C});
BJ("Promise.allSettled",function(I){function C(k){return{status:"fulfilled",value:k}}
function y(k){return{status:"rejected",reason:k}}
return I?I:function(k){var F=this;k=Array.from(k,function(z){return F.resolve(z).then(C,y)});
return F.all(k)}});
BJ("Number.parseInt",function(I){return I||parseInt});
_._DumpException=window._DumpException||function(I){throw I;};
window._DumpException=_._DumpException;var Dtm,pMK,a7,Md,Q2X,NNF,VUY,j2s,qK,l3z;Dtm=Dtm||{};_.sF=this||self;_.U8=function(I,C,y){I=I.split(".");y=y||_.sF;for(var k;I.length&&(k=I.shift());)I.length||C===void 0?y[k]&&y[k]!==Object.prototype[k]?y=y[k]:y=y[k]={}:y[k]=C};
pMK=function(I){var C=_.d5("WIZ_global_data.oxN3nb");I=C&&C[I];return I!=null?I:!1};
a7=_.sF._F_toggles||[];Md=function(){};
Md.get=function(){return null};
_.d5=function(I,C){I=I.split(".");C=C||_.sF;for(var y=0;y<I.length;y++)if(C=C[I[y]],C==null)return null;return C};
_.Ih=function(I){I.instance_=void 0;I.getInstance=function(){return I.instance_?I.instance_:I.instance_=new I}};
_.zM=function(I){var C=typeof I;return C!="object"?C:I?Array.isArray(I)?"array":C:"null"};
_.Mz=function(I){var C=_.zM(I);return C=="array"||C=="object"&&typeof I.length=="number"};
_.sw=function(I){var C=typeof I;return C=="object"&&I!=null||C=="function"};
_.ow=function(I){return Object.prototype.hasOwnProperty.call(I,Q2X)&&I[Q2X]||(I[Q2X]=++NNF)};
Q2X="closure_uid_"+(Math.random()*1E9>>>0);NNF=0;VUY=function(I,C,y){return I.call.apply(I.bind,arguments)};
j2s=function(I,C,y){if(!I)throw Error();if(arguments.length>2){var k=Array.prototype.slice.call(arguments,2);return function(){var F=Array.prototype.slice.call(arguments);Array.prototype.unshift.apply(F,k);return I.apply(C,F)}}return function(){return I.apply(C,arguments)}};
_.DD=function(I,C,y){_.DD=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?VUY:j2s;return _.DD.apply(null,arguments)};
_.D0=function(I,C){var y=Array.prototype.slice.call(arguments,1);return function(){var k=y.slice();k.push.apply(k,arguments);return I.apply(this,k)}};
_.CF=function(){return Date.now()};
qK=function(I){return I};
_.s0=function(I,C){function y(){}
y.prototype=C.prototype;I.superClass_=C.prototype;I.prototype=new y;I.prototype.constructor=I;I.base=function(k,F,z){for(var c=Array(arguments.length-2),r=2;r<arguments.length;r++)c[r-2]=arguments[r];return C.prototype[F].apply(k,c)}};
l3z=function(I){return I};var cCY,woH;_.E=function(I,C,y,k){var F=arguments.length,z=F<3?C:k===null?k=Object.getOwnPropertyDescriptor(C,y):k,c;if(Reflect&&typeof Reflect==="object"&&typeof Reflect.decorate==="function")z=Reflect.decorate(I,C,y,k);else for(var r=I.length-1;r>=0;r--)if(c=I[r])z=(F<3?c(z):F>3?c(C,y,z):c(C,y))||z;return F>3&&z&&Object.defineProperty(C,y,z),z};
_.h=function(I,C){if(Reflect&&typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(I,C)};
cCY=function(I,C){if(C!==null&&C!==void 0){if(typeof C!=="object"&&typeof C!=="function")throw new TypeError("x");if(y===void 0){if(!Symbol.dispose)throw new TypeError("z");var y=C[Symbol.dispose]}if(typeof y!=="function")throw new TypeError("A");I.stack.push({value:C,dispose:y,async:!1})}return C};
woH=function(I){function C(z){I.error=I.hasError?new SuppressedError(z,I.error,"An error was suppressed during disposal."):z;I.hasError=!0}
function y(){for(;k=I.stack.pop();)try{if(!k.async&&F===1)return F=0,I.stack.push(k),Promise.resolve().then(y);if(k.dispose){var z=k.dispose.call(k.value);if(k.async)return F|=2,Promise.resolve(z).then(y,function(c){C(c);return y()})}else F|=1}catch(c){C(c)}if(F===1)return I.hasError?Promise.reject(I.error):Promise.resolve();
if(I.hasError)throw I.error;}
var k,F=0;y()};_.s0(_.Im,Error);_.Im.prototype.name="CustomError";var XMX;var $tm=void 0,RL9,bgz=typeof TextDecoder!=="undefined",ozm,smK=typeof String.prototype.isWellFormed==="function",CKI=typeof TextEncoder!=="undefined";var YYH;_.nL=function(I){for(var C=[],y=0,k=0;k<I.length;k++){var F=I.charCodeAt(k);F<128?C[y++]=F:(F<2048?C[y++]=F>>6|192:((F&64512)==55296&&k+1<I.length&&(I.charCodeAt(k+1)&64512)==56320?(F=65536+((F&1023)<<10)+(I.charCodeAt(++k)&1023),C[y++]=F>>18|240,C[y++]=F>>12&63|128):C[y++]=F>>12|224,C[y++]=F>>6&63|128),C[y++]=F&63|128)}return C};
YYH=function(I){for(var C=[],y=0,k=0;y<I.length;){var F=I[y++];if(F<128)C[k++]=String.fromCharCode(F);else if(F>191&&F<224){var z=I[y++];C[k++]=String.fromCharCode((F&31)<<6|z&63)}else if(F>239&&F<365){z=I[y++];var c=I[y++],r=I[y++];F=((F&7)<<18|(z&63)<<12|(c&63)<<6|r&63)-65536;C[k++]=String.fromCharCode(55296+(F>>10));C[k++]=String.fromCharCode(56320+(F&1023))}else z=I[y++],c=I[y++],C[k++]=String.fromCharCode((F&15)<<12|(z&63)<<6|c&63)}return C.join("")};var GsI,f3F,SYF,KiW,Atm,g2W,v2m;_.oh=String.prototype.trim?function(I){return I.trim()}:function(I){return/^[\s\xa0]*([\s\S]*?)[\s\xa0]*$/.exec(I)[1]};
GsI=/&/g;f3F=/</g;SYF=/>/g;KiW=/"/g;Atm=/'/g;g2W=/\x00/g;v2m=/[\x00&<>"']/;var Wis=!!(a7[0]&4096),dtt=!!(a7[0]&8192),xtm=!!(a7[0]&2),qYY=!!(a7[0]&4),mtK=!!(a7[0]&16);var n9=Wis?dtt:pMK(610401301),Zgm=Wis?xtm:pMK(513659523),BNI=Wis?qYY:pMK(568333945),jGs=Wis?mtK:pMK(1331761403);var Ps,E2I=_.sF.navigator;Ps=E2I?E2I.userAgentData||null:null;var hz;_.dH=function(I,C){return Array.prototype.indexOf.call(I,C,void 0)};
_.mn=function(I,C,y){Array.prototype.forEach.call(I,C,y)};
_.yv=function(I,C,y){return Array.prototype.filter.call(I,C,y)};
_.pe=function(I,C,y){return Array.prototype.map.call(I,C,y)};
hz=function(I,C,y){return Array.prototype.some.call(I,C,y)};
_.Epm=function(I,C,y){return Array.prototype.every.call(I,C,y)};var kC=function(I){kC[" "](I);return I},jl;
kC[" "]=function(){};
jl=function(I,C){try{return kC(I[C]),!0}catch(y){}return!1};
_.iHX=function(I,C,y,k){k=k?k(C):C;return Object.prototype.hasOwnProperty.call(I,k)?I[k]:I[k]=y(C)};var hLs,E8,Utm,Hgs,JtW,Ogz,Ejs,a3F,MUz,IUF,fqF,spI,ocI,zoI;_.PMW=function(){return _.sF.navigator||null};
hLs=VW();_.F8=kI9();E8=QW("Edge");Utm=E8||_.F8;_.u4=QW("Gecko")&&!(_.iK(_.wH(),"WebKit")&&!QW("Edge"))&&!(QW("Trident")||QW("MSIE"))&&!QW("Edge");_.z6=_.iK(_.wH(),"WebKit")&&!QW("Edge");Hgs=_.z6&&QW("Mobile");_.tUO=_.i9K();JtW=_.wsX();Ogz=(GI()?Ps.platform==="Linux":QW("Linux"))||_.nzI();Ejs=_.emY();a3F=rXm();MUz=QW("iPad");IUF=QW("iPod");_.Cxm=_.f9();fqF=_.iK(_.wH(),"KaiOS");spI=function(){var I=_.sF.document;return I?I.documentMode:void 0};
a:{var ylX="",kyI=function(){var I=_.wH();if(_.u4)return/rv:([^\);]+)(\)|;)/.exec(I);if(E8)return/Edge\/([\d\.]+)/.exec(I);if(_.F8)return/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/.exec(I);if(_.z6)return/WebKit\/(\S+)/.exec(I);if(hLs)return/(?:Version)[ \/]?(\S+)/.exec(I)}();
kyI&&(ylX=kyI?kyI[1]:"");if(_.F8){var FvK=spI();if(FvK!=null&&FvK>parseFloat(ylX)){ocI=String(FvK);break a}}ocI=ylX}_.u79=ocI;if(_.sF.document&&_.F8){var TtX=spI();zoI=TtX?TtX:parseInt(_.u79,10)||void 0}else zoI=void 0;_.clW=zoI;var T8O,c$9,eot;_.T6=jI();T8O=rXm()||QW("iPod");c$9=QW("iPad");eot=_.uOz();_.cv=_.bK();_.S7=_.Yz()&&!_.f9();var rlz,ek,ilX,Baz,wSI,Mom,PxY,ncW;rlz={};ek=null;ilX=_.u4||_.z6;Baz=ilX||typeof _.sF.btoa=="function";wSI=ilX||!_.S7&&typeof _.sF.atob=="function";_.HR=function(I,C){C===void 0&&(C=0);ncW();C=rlz[C];for(var y=Array(Math.floor(I.length/3)),k=C[64]||"",F=0,z=0;F<I.length-2;F+=3){var c=I[F],r=I[F+1],w=I[F+2],L=C[c>>2];c=C[(c&3)<<4|r>>4];r=C[(r&15)<<2|w>>6];w=C[w&63];y[z++]=L+c+r+w}L=0;w=k;switch(I.length-F){case 2:L=I[F+1],w=C[(L&15)<<2]||k;case 1:I=I[F],y[z]=C[I>>2]+C[(I&3)<<4|L>>4]+w+k}return y.join("")};
Mom=function(I,C){if(wSI&&!C)return _.sF.atob(I);var y="";PxY(I,function(k){y+=String.fromCharCode(k)});
return y};
_.qxO=function(I){var C=[];PxY(I,function(y){C.push(y)});
return C};
_.T0=function(I){var C=I.length,y=C*3/4;y%3?y=Math.floor(y):_.rH("=.",I[C-1])&&(y=_.rH("=.",I[C-2])?y-2:y-1);var k=new Uint8Array(y),F=0;PxY(I,function(z){k[F++]=z});
return F!==y?k.subarray(0,F):k};
PxY=function(I,C){function y(w){for(;k<I.length;){var L=I.charAt(k++),D=ek[L];if(D!=null)return D;if(!_.eI(L))throw Error("E`"+L);}return w}
ncW();for(var k=0;;){var F=y(-1),z=y(0),c=y(64),r=y(64);if(r===64&&F===-1)break;C(F<<2|z>>4);c!=64&&(C(z<<4&240|c>>2),r!=64&&C(c<<6&192|r))}};
ncW=function(){if(!ek){ek={};for(var I="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),C=["+/=","+/","-_=","-_.","-_"],y=0;y<5;y++){var k=I.concat(C[y].split(""));rlz[y]=k;for(var F=0;F<k.length;F++){var z=k[F];ek[z]===void 0&&(ek[z]=F)}}}};var gzm=typeof Uint8Array!=="undefined",$zz=!_.F8&&typeof btoa==="function",RmW=/[-_.]/g,ltI={"-":"+",_:"/",".":"="},Ac={};var Se,DpI;Se=function(I,C){if(C!==Ac)throw Error("G");this.JSC$6687_value_=I;if(I!=null&&I.length===0)throw Error("F");};
_.gS=function(){return Lvm||(Lvm=new Se(null,Ac))};
DpI=function(I){return new Uint8Array(jF(I)||0)};
Se.prototype.isEmpty=function(){return this.JSC$6687_value_==null};
Se.prototype.sizeBytes=function(){var I=jF(this);return I?I.length:0};
var jF=function(I){if(Ac!==Ac)throw Error("G");var C=I.JSC$6687_value_;C=C==null||gzm&&C!=null&&C instanceof Uint8Array?C:typeof C==="string"?b9z(C):null;return C==null?C:I.JSC$6687_value_=C},Lvm;var GIm=void 0;var Nq=typeof Symbol==="function"&&typeof Symbol()==="symbol",pSY=DY("jas",void 0,!0),WR=DY(void 0,"0di"),p2=DY(void 0,"1oa"),mL=DY(void 0,Symbol()),jwW=DY(void 0,"0ub"),WPm=DY(void 0,"0ubs"),fSt=DY(void 0,"0ubsb"),Z5m=DY(void 0,"0actk"),gy=DY("m_m","messagePrototypeMarker",!0),gum=DY(void 0,"vps"),Xm9=DY();var SFt,fts,kG,QpI;SFt={internalArrayState:{value:0,configurable:!0,writable:!0,enumerable:!1}};fts=Object.defineProperties;_.Vd=Nq?pSY:"internalArrayState";QpI=[];Xq(QpI,7);kG=Object.freeze(QpI);var vR={},Yu={},Ntm=function(I,C,y){this.iterable=I;this.mapper=C;this.thisArg=y};
Ntm.prototype.next=function(){var I=this.iterable.next();I.done||(I.value=this.mapper.call(this.thisArg,I.value));return I};
Ntm.prototype[Symbol.iterator]=function(){return this};
var VQs=Object.freeze({}),dS={};_.jpX=qq(function(I){return I!==null&&I!==void 0});var qFz=qq(function(I){return typeof I==="number"}),xzH=qq(function(I){return typeof I==="string"}),mzI=qq(function(I){return typeof I==="boolean"}),lUH=qq(function(I){return I!=null&&typeof I==="object"&&typeof I.then==="function"}),E4I=qq(function(I){return typeof I==="function"}),B5Y=qq(function(I){return!!I&&(typeof I==="object"||typeof I==="function")});var mP=typeof _.sF.BigInt==="function"&&typeof _.sF.BigInt(0)==="bigint";var RoY,XSO,bls,$pK;_.UH=qq(function(I){return mP?I>=XSO&&I<=$pK:I[0]==="-"?Z9Y(I,RoY):Z9Y(I,bls)});
RoY=Number.MIN_SAFE_INTEGER.toString();XSO=mP?BigInt(Number.MIN_SAFE_INTEGER):void 0;bls=Number.MAX_SAFE_INTEGER.toString();$pK=mP?BigInt(Number.MAX_SAFE_INTEGER):void 0;var YXm=typeof Uint8Array.prototype.slice==="function",Ew=0,Hm=0,mz;var NK,lj,TM,$K,JXY;NK=typeof BigInt==="function"?BigInt.asIntN:void 0;_.f8=typeof BigInt==="function"?BigInt.asUintN:void 0;lj=Number.isSafeInteger;TM=Number.isFinite;$K=Math.trunc;JXY=/^-?([1-9][0-9]*|0)(\.[0-9]+)?$/;var vum={};var NSm={},Gy9=function(){try{var I=function(){return I3H(Map,[],this.constructor)};
_.R(I,Map);kC(new I);return!1}catch(C){return!0}}(),rd=function(){this.JSC$6715_map_=new Map};
_.u=rd.prototype;_.u.get=function(I){return this.JSC$6715_map_.get(I)};
_.u.set=function(I,C){this.JSC$6715_map_.set(I,C);this.size=this.JSC$6715_map_.size;return this};
_.u.delete=function(I){I=this.JSC$6715_map_.delete(I);this.size=this.JSC$6715_map_.size;return I};
_.u.clear=function(){this.JSC$6715_map_.clear();this.size=this.JSC$6715_map_.size};
_.u.has=function(I){return this.JSC$6715_map_.has(I)};
_.u.entries=function(){return this.JSC$6715_map_.entries()};
_.u.keys=function(){return this.JSC$6715_map_.keys()};
_.u.values=function(){return this.JSC$6715_map_.values()};
_.u.forEach=function(I,C){return this.JSC$6715_map_.forEach(I,C)};
rd.prototype[Symbol.iterator]=function(){return this.entries()};
var tP=function(){if(Gy9)return Object.setPrototypeOf(rd.prototype,Map.prototype),Object.defineProperties(rd.prototype,{size:{value:0,configurable:!0,enumerable:!0,writable:!0}}),rd;var I=function(){return I3H(Map,[],this.constructor)};
_.R(I,Map);return I}(),dy=function(I,C,y,k){y=y===void 0?P8F:y;
k=k===void 0?P8F:k;var F=tP.call(this)||this;F.arrayState=I[_.Vd]|0;F.valueCtor=C;F.keyToApi=y;F.valueToApi=F.valueCtor?Dqm:k;for(var z=0;z<I.length;z++){var c=I[z],r=y(c[0],!1,!0),w=c[1];C?w===void 0&&(w=null):w=k(c[1],!1,!0,void 0,void 0,F.arrayState);tP.prototype.set.call(F,r,w)}return F};
_.R(dy,tP);var fUI=function(I){if(I.arrayState&2)throw Error("K");};
_.u=dy.prototype;_.u.clear=function(){fUI(this);tP.prototype.clear.call(this)};
_.u.delete=function(I){fUI(this);return tP.prototype.delete.call(this,this.keyToApi(I,!0,!1))};
_.u.entries=function(){if(this.valueCtor){var I=tP.prototype.keys.call(this);I=new Ntm(I,pmO,this)}else I=tP.prototype.entries.call(this);return I};
_.u.values=function(){if(this.valueCtor){var I=tP.prototype.keys.call(this);I=new Ntm(I,dy.prototype.get,this)}else I=tP.prototype.values.call(this);return I};
_.u.forEach=function(I,C){this.valueCtor?tP.prototype.forEach.call(this,function(y,k,F){I.call(C,F.get(k),k,F)}):tP.prototype.forEach.call(this,I,C)};
_.u.set=function(I,C){fUI(this);I=this.keyToApi(I,!0,!1);return I==null?this:C==null?(tP.prototype.delete.call(this,I),this):tP.prototype.set.call(this,I,this.valueToApi(C,!0,!0,this.valueCtor,!1,this.arrayState))};
_.u.has=function(I){return tP.prototype.has.call(this,this.keyToApi(I,!1,!1))};
_.u.get=function(I){I=this.keyToApi(I,!1,!1);var C=tP.prototype.get.call(this,I);if(C!==void 0){var y=this.valueCtor;return y?(y=this.valueToApi(C,!1,!0,y,this.callToMutableOnAccess,this.arrayState),y!==C&&tP.prototype.set.call(this,I,y),y):C}};
dy.prototype[Symbol.iterator]=function(){return this.entries()};
dy.prototype.toJSON=void 0;var Qwz;var G0W=function(){},EH=function(I,C){for(var y in I)!isNaN(y)&&C(I,+y,I[y])},fYO=function(I){var C=new G0W;
EH(I,function(y,k,F){C[k]=IL(F)});
C.reviveUnknownFields=I.reviveUnknownFields;return C},$qI={reviveIntoImmutable:!0};var Ywz;var dq9,xqX;var SXF,eF,rT,Li,KvK,Qv,ni,Als,gc9,$C,vcY,Rh,G6,fF;SXF=_.Bm(0);_.i4={};_.wd=function(I,C,y,k,F){C=eF(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,C,y,F);if(C!==null||k&&I.noLegacyNull!==Yu)return C};
eF=function(I,C,y,k){if(C===-1)return null;var F=C+(y?0:-1),z=I.length-1;if(!(z<1+(y?0:-1))){if(F>=z){var c=I[z];if(c!=null&&typeof c==="object"&&c.constructor===Object){y=c[C];var r=!0}else if(F===z)y=c;else return}else y=I[F];if(k&&y!=null){k=k(y);if(k==null)return k;if(!Object.is(k,y))return r?c[C]=k:I[F]=k,k}return y}};
_.Cw=function(I,C,y,k){sm(I);var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;oJ(F,F[_.Vd]|0,C,y,k);return I};
_.nF=function(I,C,y){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Qf(I,I[_.Vd]|0,C,y)!==void 0};
_.Pv=function(I,C,y,k){var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Qf(F,F[_.Vd]|0,C,Li(I,k,y))!==void 0};
_.Hi=function(I){return I===VQs?2:4};
_.LF=function(I,C){I=_.wd(I,C,void 0,void 0,JcI);return I==null?_.gS():I};
rT=function(I,C,y,k){sm(I);var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=F[_.Vd]|0;if(k==null){var c=aYK(F);if(MeI(c,F,z,y)===C)c.set(y,0);else return I}else z=ISz(F,z,y,C);oJ(F,z,C,k);return I};
_.Dz=function(I,C,y,k){var F=I[_.Vd]|0,z=xu(F);F=ISz(I,F,y,C,z);oJ(I,F,C,k,z)};
Li=function(I,C,y){return _.pF(I,C)===y?y:-1};
_.pF=function(I,C){I=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return MeI(aYK(I),I,void 0,C,void 0)};
KvK=function(I,C,y){var k=I[_.Vd]|0,F=xu(k),z=eF(I,y,F);if(z!=null&&z[gy]===vR){if(!f5(z))return C2(z),z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;var c=z.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows}else Array.isArray(z)&&(c=z);if(c){var r=c[_.Vd]|0;r&2&&(c=IJ(c,r))}c=aL(c,C,!0);c!==z&&oJ(I,k,y,c,F);return c};
_.MS=function(I,C,y,k){var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=F[_.Vd]|0;C=Qf(F,z,C,y,k);if(C==null)return C;z=F[_.Vd]|0;if(!f5(I,z)){var c=LPs(C);c!==C&&(C2(I)&&(F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,z=F[_.Vd]|0),C=c,oJ(F,z,y,C,k))}return C};
_.U1=function(I,C,y,k){var F=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return Cjz(I,F,F[_.Vd]|0,C,y,k,!1,!0)};
_.JT=function(I,C,y,k){y=sLI(y);_.Cw(I,C,y,k);return I};
_.Om=function(I,C,y,k){k=sLI(k);rT(I,C,y,k);return I};
Qv=function(I,C,y){sm(I);var k=I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,F=k[_.Vd]|0;if(y==null)return oJ(k,F,C),I;for(var z=y===kG?7:y[_.Vd]|0,c=z,r=zR(z),w=r||Object.isFrozen(y),L=!0,D=!0,p=0;p<y.length;p++){var Q=y[p];r||(Q=f5(Q),L&&(L=!Q),D&&(D=Q))}r||(z=L?13:5,z=D?z&-4097:z|4096);w&&z===c||(y=IL(y),c=0,z=FL(z,F));z!==c&&Xq(y,z);oJ(k,F,C,y);return I};
ni=function(I,C,y,k){yPW(I,C,y,k);return I};
Als=function(I,C,y){yPW(I,C,Nm,void 0,y,1,!0);return I};
_.l4=function(I,C,y){I=_.wd(I,C,void 0,y);I!=null&&(typeof I==="bigint"?(0,_.UH)(I)?I=Number(I):(I=NK(64,I),I=(0,_.UH)(I)?Number(I):String(I)):I=_.cR(I)?typeof I==="number"?VY(I):QY(I):void 0);return I};
_.X8=function(I,C){var y=y===void 0?!1:y;var k;return(k=_.tI9(_.wd(I,C)))!=null?k:y};
_.ti=function(I,C,y){y=y===void 0?0:y;var k;return(k=_.DS(_.wd(I,C)))!=null?k:y};
gc9=function(I,C){var y=y===void 0?0:y;I=_.p8(_.wd(I,C));return I!=null?I:y};
$C=function(I,C,y){y=y===void 0?SXF:y;I=_.wd(I,C);C=typeof I;I=I==null?I:C==="bigint"?_.Bm(NK(64,I)):_.cR(I)?C==="string"?MIK(I):IYX(I):void 0;return I!=null?I:y};
vcY=function(I){var C=C===void 0?SXF:C;I=_.wd(I,23);var y=typeof I;I=I==null?I:y==="bigint"?_.Bm((0,_.f8)(64,I)):_.cR(I)?y==="string"?_.TSF(I):_.zbH(I):void 0;return I!=null?I:C};
Rh=function(I,C){var y=y===void 0?0:y;var k;return(k=_.wd(I,C,void 0,void 0,_.uj))!=null?k:y};
_.b4=function(I,C,y,k){y=y===void 0?"":y;var F;return(F=_.AP(_.wd(I,C,k)))!=null?F:y};
_.YC=function(I,C){var y=y===void 0?0:y;var k;return(k=_.ij(_.wd(I,C)))!=null?k:y};
G6=function(I,C){var y=y===void 0?"0":y;I=ccs(_.wd(I,C),!0);return I!=null?I:y};
fF=function(I,C,y){return _.b4(I,Li(I,y,C))};
_.Sk=function(I,C,y,k){return _.MS(I,C,Li(I,k,y),void 0)};
_.Te=function(I,C){return _.AP(_.wd(I,C,void 0,_.i4))};
_.Mb=function(I,C,y){return _.Cw(I,C,H9m(y))};
_.bG=function(I,C,y){return _.n2(I,C,H9m(y),!1)};
_.KF=function(I,C,y){return _.Cw(I,C,_.PR(y))};
_.pi=function(I,C,y){return _.Cw(I,C,jB(y))};
_.zT=function(I,C,y){return _.Cw(I,C,K8(y))};
_.ac=function(I,C,y,k){return _.n2(I,C,K8(y),"",k)};
_.Ie=function(I,C,y){return _.Cw(I,C,y==null?y:_.eB(y))};
_.A0=function(I,C,y){return _.n2(I,C,y==null?y:_.eB(y),0)};var Vf=function(I,C,y){this.buffer=I;if(y&&!C)throw Error();this.JSC$6727_isImmutable=C};var WvH=function(I,C,y,k){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.init(I,C,y,k)},gd,xpF,qXY,ZlX,jLW;
_.u=WvH.prototype;_.u.init=function(I,C,y,k){var F=k===void 0?{}:k;k=F.aliasBytesFields===void 0?!1:F.aliasBytesFields;F=F.treatNewDataAsImmutable===void 0?!1:F.treatNewDataAsImmutable;this.aliasBytesFields=k;this.treatNewDataAsImmutable=F;I&&(I=kMm(I,this.treatNewDataAsImmutable),this.bytes_=I.buffer,this.bytesAreImmutable_=I.JSC$6727_isImmutable,this.JSC$6730_start_=C||0,this.end_=y!==void 0?this.JSC$6730_start_+y:this.bytes_.length,this.cursor_=this.JSC$6730_start_)};
_.u.free=function(){this.clear();dpW.length<100&&dpW.push(this)};
_.u.clear=function(){this.bytes_=null;this.bytesAreImmutable_=!1;this.cursor_=this.end_=this.JSC$6730_start_=0;this.aliasBytesFields=!1};
_.u.reset=function(){this.cursor_=this.JSC$6730_start_};
_.u.atEnd=function(){return this.cursor_==this.end_};
_.vv=function(I,C){var y=0,k=0,F=0,z=I.bytes_,c=I.cursor_;do{var r=z[c++];y|=(r&127)<<F;F+=7}while(F<32&&r&128);F>32&&(k|=(r&127)>>4);for(F=3;F<32&&r&128;F+=7)r=z[c++],k|=(r&127)<<F;gd(I,c);if(r<128)return C(y>>>0,k>>>0);throw Error("X");};
gd=function(I,C){I.cursor_=C;if(C>I.end_)throw Error("Y`"+C+"`"+I.end_);};
_.Wv=function(I){var C=I.bytes_,y=I.cursor_,k=C[y++],F=k&127;if(k&128&&(k=C[y++],F|=(k&127)<<7,k&128&&(k=C[y++],F|=(k&127)<<14,k&128&&(k=C[y++],F|=(k&127)<<21,k&128&&(k=C[y++],F|=k<<28,k&128&&C[y++]&128&&C[y++]&128&&C[y++]&128&&C[y++]&128&&C[y++]&128)))))throw Error("X");gd(I,y);return F};
_.dd=function(I){var C=I.bytes_,y=I.cursor_,k=C[y],F=C[y+1],z=C[y+2];C=C[y+3];gd(I,I.cursor_+4);return(k<<0|F<<8|z<<16|C<<24)>>>0};
xpF=function(I){var C=_.dd(I);I=_.dd(I);return hmY(C,I)};
qXY=function(I){var C=_.dd(I),y=_.dd(I);I=(y>>31)*2+1;var k=y>>>20&2047;C=4294967296*(y&1048575)+C;return k==2047?C?NaN:I*Infinity:k==0?I*4.9E-324*C:I*Math.pow(2,k-1075)*(C+4503599627370496)};
_.mpW=function(I){for(var C=0,y=I.cursor_,k=y+10,F=I.bytes_;y<k;){var z=F[y++];C|=z;if((z&128)===0)return gd(I,y),!!(C&127)}throw Error("X");};
ZlX=function(I,C){if(C<0)throw Error("Z`"+C);var y=I.cursor_,k=y+C;if(k>I.end_)throw Error("Y`"+(I.end_-y)+"`"+C);I.cursor_=k;return y};
jLW=function(I,C){if(C==0)return _.gS();var y=ZlX(I,C);I.aliasBytesFields&&I.bytesAreImmutable_?y=I.bytes_.subarray(y,y+C):(I=I.bytes_,C=y+C,y=y===C?new Uint8Array(0):YXm?I.slice(y,C):new Uint8Array(I.subarray(y,C)));return y.length==0?_.gS():new Se(y,Ac)};
WvH.prototype.getDataView=function(){var I=this.dataView_;I||(I=this.bytes_,I=this.dataView_=new DataView(I.buffer,I.byteOffset,I.byteLength));return I};
var dpW=[];var Ecm=function(I,C,y,k){if(dpW.length){var F=dpW.pop();F.init(I,C,y,k);I=F}else I=new WvH(I,C,y,k);this.decoder_=I;this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1;Btz(this,k)},Btz=function(I,C){C=C===void 0?{}:C;
I.discardUnknownFields=C.discardUnknownFields===void 0?!1:C.discardUnknownFields},$Kz=function(I,C,y,k){if(hoI.length){var F=hoI.pop();
Btz(F,k);F.decoder_.init(I,C,y,k);return F}return new Ecm(I,C,y,k)},Nyt,SF,Ups,hoI;
Ecm.prototype.free=function(){this.decoder_.clear();this.nextWireType_=this.nextField_=-1;hoI.length<100&&hoI.push(this)};
Ecm.prototype.reset=function(){this.decoder_.reset();this.fieldCursor_=this.decoder_.cursor_;this.nextWireType_=this.nextField_=-1};
Nyt=function(I){if(I.decoder_.atEnd())return!1;I.fieldCursor_=I.decoder_.cursor_;var C=_.Wv(I.decoder_)>>>0,y=C>>>3;C&=7;if(!(C>=0&&C<=5))throw Error("T`"+C+"`"+I.fieldCursor_);if(y<1)throw Error("U`"+y+"`"+I.fieldCursor_);I.nextField_=y;I.nextWireType_=C;return!0};
SF=function(I){switch(I.nextWireType_){case 0:I.nextWireType_!=0?SF(I):_.mpW(I.decoder_);break;case 1:I=I.decoder_;gd(I,I.cursor_+8);break;case 2:if(I.nextWireType_!=2)SF(I);else{var C=_.Wv(I.decoder_)>>>0;I=I.decoder_;gd(I,I.cursor_+C)}break;case 5:I=I.decoder_;gd(I,I.cursor_+4);break;case 3:C=I.nextField_;do{if(!Nyt(I))throw Error("V");if(I.nextWireType_==4){if(I.nextField_!=C)throw Error("W");break}SF(I)}while(1);break;default:throw Error("T`"+I.nextWireType_+"`"+I.fieldCursor_);}};
Ups=function(I,C,y){var k=I.decoder_.end_,F=_.Wv(I.decoder_)>>>0,z=I.decoder_.cursor_+F,c=z-k;c<=0&&(I.decoder_.end_=z,y(C,I,void 0,void 0,void 0),c=z-I.decoder_.cursor_);if(c)throw Error("S`"+F+"`"+(F-c));I.decoder_.cursor_=z;I.decoder_.end_=k};
_.Hlm=function(I){var C=_.Wv(I.decoder_)>>>0;I=I.decoder_;var y=ZlX(I,C);I=I.bytes_;if(bgz){var k=I,F;(F=RL9)||(F=RL9=new TextDecoder("utf-8",{fatal:!0}));C=y+C;k=y===0&&C===k.length?k:k.subarray(y,C);try{var z=F.decode(k)}catch(L){if($tm===void 0){try{F.decode(new Uint8Array([128]))}catch(D){}try{F.decode(new Uint8Array([97])),$tm=!0}catch(D){$tm=!1}}!$tm&&(RL9=void 0);throw L;}}else{z=y;C=z+C;y=[];for(var c=null,r,w;z<C;)r=I[z++],r<128?y.push(r):r<224?z>=C?C9():(w=I[z++],r<194||(w&192)!==128?(z--,
C9()):y.push((r&31)<<6|w&63)):r<240?z>=C-1?C9():(w=I[z++],(w&192)!==128||r===224&&w<160||r===237&&w>=160||((F=I[z++])&192)!==128?(z--,C9()):y.push((r&15)<<12|(w&63)<<6|F&63)):r<=244?z>=C-2?C9():(w=I[z++],(w&192)!==128||(r<<28)+(w-144)>>30!==0||((F=I[z++])&192)!==128||((k=I[z++])&192)!==128?(z--,C9()):(r=(r&7)<<18|(w&63)<<12|(F&63)<<6|k&63,r-=65536,y.push((r>>10&1023)+55296,(r&1023)+56320))):C9(),y.length>=8192&&(c=Itz(c,y),y.length=0);z=Itz(c,y)}return z};
_.tQX=function(I){var C=_.Wv(I.decoder_)>>>0;return jLW(I.decoder_,C)};
_.Jlm=function(I,C,y){var k=_.Wv(I.decoder_)>>>0;for(k=I.decoder_.cursor_+k;I.decoder_.cursor_<k;)y.push(C(I.decoder_))};
hoI=[];_.GR=function(I,C,y){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,C,y)};
_.GR.prototype.toJSON=function(){return JP(this)};
_.GR.prototype.serialize=function(I){return JSON.stringify(JP(this,I))};
var MBF=function(I,C){if(C==null||C=="")return new I;C=JSON.parse(C);if(!Array.isArray(C))throw Error("$");return new I(AXK(C))};
_.GR.prototype.getExtension=function(I){lYO(this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,I.fieldIndex);RbK(this,I.fieldIndex);return I.ctor?I.isRepeated?I.getExtensionFn(this,I.ctor,I.fieldIndex,_.Hi(),I.JSC$6740_hasMessageId):I.getExtensionFn(this,I.ctor,I.fieldIndex,I.JSC$6740_hasMessageId):I.isRepeated?I.getExtensionFn(this,I.fieldIndex,_.Hi(),I.JSC$6740_hasMessageId):I.getExtensionFn(this,I.fieldIndex,I.defaultValue,I.JSC$6740_hasMessageId)};
_.GR.prototype.clone=function(){var I=this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;return new this.constructor(IJ(I,I[_.Vd]|0,!1))};
_.GR.prototype[gy]=vR;_.GR.prototype.toString=function(){return this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows.toString()};var Olm=function(I,C){this.JSC$6742_lo=I>>>0;this.JSC$6742_hi=C>>>0},MQF=function(I){if(!I)return aUm||(aUm=new Olm(0,0));
if(!/^\d+$/.test(I))return null;Mq(I);return new Olm(Ew,Hm)},aUm,WLH=function(I,C){this.JSC$6744_lo=I>>>0;
this.JSC$6744_hi=C>>>0},gK9=function(I){if(!I)return IMz||(IMz=new WLH(0,0));
if(!/^-?\d+$/.test(I))return null;Mq(I);return new WLH(Ew,Hm)},IMz;var CEm=function(){this.JSC$6746_buffer_=[]},vKI,slz;
CEm.prototype.length=function(){return this.JSC$6746_buffer_.length};
CEm.prototype.end=function(){var I=this.JSC$6746_buffer_;this.JSC$6746_buffer_=[];return I};
vKI=function(I,C,y){for(;y>0||C>127;)I.JSC$6746_buffer_.push(C&127|128),C=(C>>>7|y<<25)>>>0,y>>>=7;I.JSC$6746_buffer_.push(C)};
slz=function(I,C){for(;C>127;)I.JSC$6746_buffer_.push(C&127|128),C>>>=7;I.JSC$6746_buffer_.push(C)};
_.xKt=function(I,C){if(C>=0)slz(I,C);else{for(var y=0;y<9;y++)I.JSC$6746_buffer_.push(C&127|128),C>>=7;I.JSC$6746_buffer_.push(1)}};
_.Z8=function(I,C){I.JSC$6746_buffer_.push(C>>>0&255);I.JSC$6746_buffer_.push(C>>>8&255);I.JSC$6746_buffer_.push(C>>>16&255);I.JSC$6746_buffer_.push(C>>>24&255)};var oMO,Wa,mKm,EKm;oMO=function(){this.blocks_=[];this.totalLength_=0;this.encoder_=new CEm};
Wa=function(I,C){C.length!==0&&(I.blocks_.push(C),I.totalLength_+=C.length)};
_.TyF=function(I,C){_.qj(I,C,2);C=I.encoder_.end();Wa(I,C);C.push(I.totalLength_);return C};
_.cPI=function(I,C){var y=C.pop();for(y=I.totalLength_+I.encoder_.length()-y;y>127;)C.push(y&127|128),y>>>=7,I.totalLength_++;C.push(y);I.totalLength_++};
_.qj=function(I,C,y){slz(I.encoder_,C*8+y)};
mKm=function(I,C,y){if(y!=null){switch(typeof y){case "string":MQF(y)}_.qj(I,C,1);switch(typeof y){case "number":I=I.encoder_;BHO(y);_.Z8(I,Ew);_.Z8(I,Hm);break;case "bigint":y=BigInt.asUintN(64,y);y=new Olm(Number(y&BigInt(4294967295)),Number(y>>BigInt(32)));I=I.encoder_;C=y.JSC$6742_hi;_.Z8(I,y.JSC$6742_lo);_.Z8(I,C);break;default:y=MQF(y),I=I.encoder_,C=y.JSC$6742_hi,_.Z8(I,y.JSC$6742_lo),_.Z8(I,C)}}};
EKm=function(I,C,y){_.qj(I,C,2);slz(I.encoder_,y.length);Wa(I,I.encoder_.end());Wa(I,y)};var FLI,FNK,zpX;FLI=_.l7();_.yAt=_.l7();_.kqm=_.l7();FNK=_.l7();_.xC=_.l7();_.u59=_.l7();zpX=_.l7();_.Tut=_.l7();_.cAI=_.l7();var XL=function(I,C,y){this.$$binaryReaderFn=I;this.$$binaryWriterFn=C;I=qK(FLI);this.$$isMsg=!!I&&y===I||!1},wRm=uRH(function(I,C,y,k,F){if(I.nextWireType_!==2)return!1;
Ups(I,KvK(C,k,y),F);return!0},eYz),nKz=uRH(function(I,C,y,k,F){if(I.nextWireType_!==2)return!1;
Ups(I,KvK(C,k,y),F);return!0},eYz),gR=Symbol(),f2=Symbol(),QLX=Symbol(),b8I=Symbol(),lSX=Symbol(),rPO,i8I;var JPm,eps,rAI,ijm,w0I,nMF,PE9,LNm,DhK,p0I,QlF,VYK,jl9,X09,$hO;JPm=function(I,C){var y=new oMO;YHz(I.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,y,$G(gR,AT,va,C));Wa(y,y.encoder_.end());I=new Uint8Array(y.totalLength_);C=y.blocks_;for(var k=C.length,F=0,z=0;z<k;z++){var c=C[z];I.set(c,F);F+=c.length}y.blocks_=[I];return I};
eps=_.dR(function(I,C,y){if(I.nextWireType_!==1)return!1;_.xG(C,y,qXY(I.decoder_));return!0},APz,zpX);
rAI=_.dR(function(I,C,y,k){if(I.nextWireType_!==1)return!1;_.Dz(C,y,k,qXY(I.decoder_));return!0},APz,zpX);
ijm=_.dR(function(I,C,y,k){if(I.nextWireType_!==5)return!1;var F=_.dd(I.decoder_);I=(F>>31)*2+1;var z=F>>>23&255;F&=8388607;_.Dz(C,y,k,z==255?F?NaN:I*Infinity:z==0?I*1.401298464324817E-45*F:I*Math.pow(2,z-150)*(F+8388608));return!0},function(I,C,y){C=_.uj(C);
C!=null&&(_.qj(I,y,5),I=I.encoder_,y=mz||(mz=new DataView(new ArrayBuffer(8))),y.setFloat32(0,+C,!0),Hm=0,Ew=y.getUint32(0,!0),_.Z8(I,Ew))},_.l7());
_.qm=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;_.xG(C,y,_.vv(I.decoder_,Ow));return!0},_.Em,_.xC);
w0I=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;I=_.vv(I.decoder_,Ow);_.xG(C,y,I===0?void 0:I);return!0},_.Em,_.xC);
nMF=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.vv(I.decoder_,Ow));return!0},_.Em,_.xC);
_.mA=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;_.xG(C,y,_.Wv(I.decoder_));return!0},qHt,FNK);
PE9=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;I=_.Wv(I.decoder_);_.xG(C,y,I===0?void 0:I);return!0},qHt,FNK);
LNm=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.Wv(I.decoder_));return!0},qHt,FNK);
DhK=_.dR(function(I,C,y){if(I.nextWireType_!==1)return!1;_.xG(C,y,xpF(I.decoder_));return!0},_.Z8t,_.u59);
p0I=_.KLs(function(I,C,y){if(I.nextWireType_!==1&&I.nextWireType_!==2)return!1;C=_.L2(C,C[_.Vd]|0,y);I.nextWireType_==2?_.Jlm(I,xpF,C):C.push(xpF(I.decoder_));return!0},function(I,C,y){C=_.SHz(rcz,C,!1);
if(C!=null)for(var k=0;k<C.length;k++)mKm(I,y,C[k])},_.u59);
_.Bv=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;_.xG(C,y,_.mpW(I.decoder_));return!0},_.ByX,_.yAt);
QlF=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.mpW(I.decoder_));return!0},_.ByX,_.yAt);
_.E0=_.dR(function(I,C,y){if(I.nextWireType_!==2)return!1;_.xG(C,y,_.Hlm(I));return!0},_.hYs,_.kqm);
_.Num=_.dR(function(I,C,y,k){if(I.nextWireType_!==2)return!1;_.Dz(C,y,k,_.Hlm(I));return!0},_.hYs,_.kqm);
VYK=_.KLs(function(I,C,y){if(I.nextWireType_!==2)return!1;I=_.Hlm(I);_.L2(C,C[_.Vd]|0,y).push(I);return!0},function(I,C,y){C=_.SHz(_.AP,C,!0);
if(C!=null)for(var k=0;k<C.length;k++){var F=I,z=y,c=C[k];c!=null&&EKm(F,z,yXm(c))}},_.kqm);
jl9=void 0;jl9=jl9===void 0?FLI:jl9;_.h0=new XL(function(I,C,y,k,F){if(I.nextWireType_!==2)return!1;k=aL(void 0,k,!0);_.L2(C,C[_.Vd]|0,y).push(k);Ups(I,k,F);return!0},function(I,C,y,k,F){if(Array.isArray(C))for(var z=0;z<C.length;z++)UKK(I,C[z],y,k,F)},jl9);
_.U0=uRH(function(I,C,y,k,F,z){if(I.nextWireType_!==2)return!1;var c=C[_.Vd]|0;ISz(C,c,z,y,xu(c));C=KvK(C,k,y);Ups(I,C,F);return!0},UKK);
_.lMI=_.dR(function(I,C,y){if(I.nextWireType_!==2)return!1;_.xG(C,y,_.tQX(I));return!0},_.H8H,_.Tut);
X09=_.dR(function(I,C,y,k){if(I.nextWireType_!==2)return!1;_.Dz(C,y,k,_.tQX(I));return!0},_.H8H,_.Tut);
$hO=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.Wv(I.decoder_)>>>0);return!0},function(I,C,y){C=_.p8(C);
C!=null&&C!=null&&(_.qj(I,y,0),slz(I.encoder_,C))},_.l7());
_.Hv=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;_.xG(C,y,_.Wv(I.decoder_));return!0},_.tBH,_.cAI);var YaI=function(){var I=RpI,C=bjH;this.fieldIndex=175237375;this.ctor=C;this.isRepeated=0;this.getExtensionFn=_.MS;this.defaultValue=void 0;this.JSC$6740_hasMessageId=I.messageId!=null?dS:void 0};
YaI.prototype.register=function(){kC(this)};var Gqm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Gqm,_.GR);var fMt=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(fMt,_.GR);var sJO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(sJO,_.GR);var Sam=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Sam,_.GR);var KN9=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(KN9,_.GR);var AAY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(AAY,_.GR);var gMK=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(gMK,_.GR);gMK.prototype.getData=function(){return _.LF(this,2)};var vMY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(vMY,_.GR);var WNI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(WNI,_.GR);WNI.prototype.getStyle=function(){return _.MS(this,Gqm,1)};var tT=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(tT,_.GR);tT.prototype.getPayloadCase=function(){return _.pF(this,aJ)};
tT.prototype.getStyle=function(){return _.Sk(this,WNI,6,aJ)};
var dhs=function(){var I=new tT,C=new KN9;return _.Om(I,7,aJ,C)},xhI=function(){var I=new tT,C=new AAY;
return _.Om(I,8,aJ,C)},aJ=[1,
2,3,4,5,6,7,8];var qaI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(qaI,_.GR);var mhF=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(mhF,_.GR);var ZjO=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(ZjO,_.GR);var BuW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(BuW,_.GR);var EMm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EMm,_.GR);var hpY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(hpY,_.GR);var UhW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(UhW,_.GR);var HjX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(HjX,_.GR);HjX.prototype.getData=function(){return _.LF(this,2)};var tYX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(tYX,_.GR);var C7m=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(C7m,_.GR);C7m.prototype.getPayloadCase=function(){return _.pF(this,t0)};
var t0=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15];var J0=function(I,C){I=Error.call(this,I);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.code=C===void 0?2:C};
_.R(J0,Error);var JAF=Promise;var OjX=function(I){this.channelPromise=I};
OjX.prototype.send=function(I,C,y){this.channelPromise.then(function(k){k.send(I,C,y)})};var aMI=function(I,C){this.data=I;this.channel=C};
aMI.prototype.reply=function(I,C,y){this.channel.send(I,C,y)};var MYm=function(I){this.JSC$6818_port_=I};
MYm.prototype.send=function(I,C,y){y=y===void 0?[]:y;var k=new MessageChannel;Itq(k.port1,C);this.JSC$6818_port_.postMessage(I,[k.port2].concat(y))};
var CKe=function(I,C){Itq(I,C);return new MYm(I)},Itq=function(I,C){C&&(I.onmessage=function(y){C(new aMI(y.data,CKe(y.ports[0])))})};var sm8=function(I){this.verifier_=I},ozb=function(I){var C=Object.create(null);
(typeof I==="string"?[I]:I).forEach(function(y){if(y==="null")throw Error("ba");C[y]=!0});
return function(y){return C[y]===!0}};_.yXb=function(){if(!_.sF.addEventListener||!Object.defineProperty)return!1;var I=!1,C=Object.defineProperty({},"passive",{get:function(){I=!0}});
try{var y=function(){};
_.sF.addEventListener("test",y,C);_.sF.removeEventListener("test",y,C)}catch(k){}return I}();var kI5;_.O0=function(I){var C=I.destination;var y=I.iframe;var k=I.origin;var F=I.channelName===void 0?"ZNWN1d":I.channelName;var z=I.onMessage===void 0?void 0:I.onMessage;I=I.onEstablished===void 0?void 0:I.onEstablished;return kI5({destination:C,getSource:function(){return y.contentWindow},
originVerifier:k instanceof sm8?k:typeof k==="function"?new sm8(k):new sm8(ozb(k)),channelName:F,onMessage:z,onEstablished:I})};
kI5=function(I){var C=I.destination;var y=I.getSource;var k=I.originVerifier;var F=I.token===void 0?void 0:I.token;var z=I.channelName;var c=I.onMessage===void 0?void 0:I.onMessage;var r=I.onEstablished===void 0?void 0:I.onEstablished;return new OjX(new JAF(function(w,L){var D=function(p){p.source&&p.source===y()&&k.verifier_(p.origin)&&(p.data.n||p.data)===z&&(C.removeEventListener("message",D,!1),F&&p.data.t!==F?L(Error("ca`"+z+"`"+F+"`"+p.data.t)):(w(CKe(p.ports[0],c)),r&&r(p)))};
C.addEventListener("message",D,!1)}))};var FYw=function(I){try{I()}catch(C){om(C)}};var zmS=function(I){var C=this;var y=I.getMessageType;var k=I.onUnregisteredMessage===void 0?function(){}:I.onUnregisteredMessage;
var F=I.onBeforeRegisteredMessage===void 0?function(){}:I.onBeforeRegisteredMessage;
I=I.onAfterRegisteredMessage===void 0?function(){}:I.onAfterRegisteredMessage;
this.registry_=new Map;this.getMessageType_=y;this.onUnregisteredMessage_=k;this.onBeforeRegisteredMessage_=F;this.onAfterRegisteredMessage_=I;this.onMessage=function(z){return uOu(C,z)}};
zmS.prototype.register=function(I,C){this.registry_.set(I,C);return this};
var uOu=function(I,C){var y=I.getMessageType_(C.data),k=I.registry_.get(y);k?(FYw(function(){return I.onBeforeRegisteredMessage_(C,y)}),FYw(function(){return k(C)}),FYw(function(){return I.onAfterRegisteredMessage_(C,y)})):FYw(function(){return I.onUnregisteredMessage_(C,y)})};var THY=function(I){this.JSC$6835_channel_=I},emP,rXw;
THY.prototype.send=function(I,C,y){this.JSC$6835_channel_.send(JP(I),C,y)};
_.cXw=function(I,C){return function(y){var k=new I(y.data);return C(new aMI(k,y.channel))}};
emP=function(I){return function(C){return I(new aMI(C.data,new THY(C.channel)))}};
rXw=function(I,C){return emP(_.cXw(I,C))};var i98=function(I,C,y,k){this.registry=I;this.delegate=C;this.receiveMessageConstructor=y;this.createInitMessage=k;this.initialised=!1;this.registry.register.bind(this.registry);this.features=new Set},I8W=function(I){var C=new zmS({getMessageType:I.getPayloadCase});
return new i98(C,new THY(_.O0({iframe:I.child,destination:window,origin:I.origin,channelName:I.channelName,onMessage:rXw(I.receiveMessageConstructor,C.onMessage)})),I.receiveMessageConstructor,I.createInitMessage)},wsc=function(I,C){I.createInitMessage=C};
i98.prototype.send=function(I){if(!this.initialised)throw new J0("Attempted to send a message before initialisation.");this.delegate.send(I)};
var nz0=function(I,C){return _.e(function(y){if(!I.initialised)throw new J0("Attempted to send a message before initialisation.");return y.return(new Promise(function(k){I.delegate.send(C,rXw(I.receiveMessageConstructor,k))}))})};
i98.prototype.init=function(){var I=this;return _.e(function(C){if(I.initialised)throw new J0("Attempted to initialise twice. The SDK can only be initialised once.");if(I.createInitMessage!==void 0){var y=I.delegate,k=y.send,F=I.createInitMessage;var z=new fMt;var c=[].concat(_.Py(I.features));z=_.i7(z,1,c,_.eB);k.call(y,F.call(I,z))}I.initialised=!0;_.oI(C)})};
var ah=function(I,C){if(I.initialised)throw new J0('Attempted to set up API "'+C+'" after initialisation. All APIs must be set up before initialising the SDK.');I.features.add(C);return I.registry};
_.H1.Object.defineProperties(i98.prototype,{isInitialised:{configurable:!0,enumerable:!0,get:function(){return this.initialised}}});var PKu=function(I){this.channel=I;this.registered=!1};
PKu.prototype.update=function(I){if(this.channel.isInitialised){if(!this.registered)throw new J0("Using unregistered Audio Feature. Please call audio.update() before init() to indicate usage of the Audio Api.");var C=new tT;var y=new Sam;y=_.Mb(y,1,I);C=_.Om(C,2,aJ,y);this.channel.send(C)}else this.register();this.JSC$6849_audioEnabled=I};
PKu.prototype.register=function(){ah(this.channel,1);this.registered=!0};
PKu.prototype.isAudioEnabled=function(){return this.JSC$6849_audioEnabled};var LYu=function(I){this.channel=I};
_.u=LYu.prototype;_.u.onFirstFrameReady=function(I){ah(this.channel,2).register(11,function(C){C=_.Sk(C.data,qaI,11,t0);if(!C)throw new J0("Unexpectedly nonexistent GameFirstFrameReadyEvent");I(_.b4(C,1))})};
_.u.onReady=function(I){ah(this.channel,2).register(4,function(C){C=_.Sk(C.data,ZjO,4,t0);if(!C)throw new J0("Unexpectedly nonexistent GameReadyEvent");I(_.b4(C,1))})};
_.u.onLevelComplete=function(I){ah(this.channel,2).register(5,function(C){C=_.Sk(C.data,BuW,5,t0);if(!C)throw new J0("Unexpectedly nonexistent LevelCompleteEvent");I(_.b4(C,1),_.ti(C,2))})};
_.u.onGameOver=function(I){ah(this.channel,2).register(6,function(C){C=_.Sk(C.data,mhF,6,t0);if(!C)throw new J0("Unexpectedly nonexistent GameOverEvent");I(_.b4(C,1))})};
_.u.pause=function(){var I=this;if(!this.channel.isInitialised)return ah(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new J0("Using unregistered Game Feature: pause.");var C=dhs();return new Promise(function(y){return _.e(function(k){if(k.nextAddress==1)return _.n(k,nz0(I.channel,C),2);y();_.oI(k)})})};
_.u.resume=function(){var I=this;if(!this.channel.isInitialised)return ah(this.channel,2),Promise.resolve();if(!this.channel.features.has(2))throw new J0("Using unregistered Game Feature: resume.");var C=xhI();return new Promise(function(y){return _.e(function(k){if(k.nextAddress==1)return _.n(k,nz0(I.channel,C),2);y();_.oI(k)})})};var DzY=function(I){this.channel=I};
DzY.prototype.onReady=function(I){ah(this.channel,5).register(8,function(C){if(!_.Sk(C.data,EMm,8,t0))throw new J0("Unexpectedly nonexistent PageReadyEvent");I()})};var psS=function(I){this.channel=I};
psS.prototype.onChange=function(I){ah(this.channel,3).register(7,function(C){C=_.Sk(C.data,hpY,7,t0);if(!C)throw new J0("Unexpectedly nonexistent ScoreEvent");I(_.b4(C,1),_.ti(C,2))})};var Qmb={load:function(){throw new J0("Storage used, but storage.onLoad() listener not set!");},
save:function(){throw new J0("Storage used, but storage.onSave() listener not set!");}},NHw=function(I){this.channel=I;
this.saveRegistered=this.loadRegistered=this.initialSetupDone=!1},VId=function(I){ah(I.channel,4).register(2,Qmb.load).register(3,Qmb.save);
I.initialSetupDone=!0};
NHw.prototype.onLoad=function(I){this.initialSetupDone||VId(this);this.loadRegistered||(this.loadRegistered=!0,ah(this.channel,4).register(2,function(C){var y,k,F;return _.e(function(z){if(z.nextAddress==1){y=_.Sk(C.data,UhW,2,t0);if(!y)throw new J0("Unexpectedly nonexistent StorageLoad");k=_.b4(y,1);return _.n(z,I(k),2)}F=z.yieldResult;var c=C.reply,r=new tT;var w=new gMK;w=_.zT(w,1,k);w=_.Cw(w,2,_.vm(F,!1));r=_.Om(r,3,aJ,w);c.call(C,r);_.oI(z)})}))};
NHw.prototype.onSave=function(I){this.initialSetupDone||VId(this);this.saveRegistered||(this.saveRegistered=!0,ah(this.channel,4).register(3,function(C){var y,k,F;return _.e(function(z){if(z.nextAddress==1){y=_.Sk(C.data,HjX,3,t0);if(!y)throw new J0("Unexpectedly nonexistent StorageSave");k=_.b4(y,1);F=DpI(y.getData());return _.n(z,I(k,F),2)}var c=C.reply,r=new tT;var w=new vMY;w=_.zT(w,1,k);r=_.Om(r,4,aJ,w);c.call(C,r);_.oI(z)})}))};var jmq=function(I){this.channel=I};
jmq.prototype.update=function(I){if(!this.channel.features.has(6))throw new J0("Using unregistered Style Feature. Please call style.register() before init() to indicate usage of the Style Api.");var C=new tT,y=new WNI;I=_.JT(y,1,I);C=_.Om(C,6,aJ,I);this.channel.send(C)};
jmq.prototype.register=function(){ah(this.channel,6)};var lt0=function(I){this.channel=I;this.userActivityLoggingIntervalMs=0};
lt0.prototype.onUserActivity=function(I,C){this.userActivityLoggingIntervalMs=C;ah(this.channel,7).register(9,function(y){if(!_.Sk(y.data,tYX,9,t0))throw new J0("Unexpectedly nonexistent ClickEvent");I()})};var Xsq=function(I){var C=this;this.channel=I;this.init=this.channel.init.bind(this.channel);this.page=new DzY(this.channel);this.game=new LYu(this.channel);this.audio=new PKu(this.channel);this.score=new psS(this.channel);this.storage=new NHw(this.channel);this.style=new jmq(this.channel);this.userActivity=new lt0(this.channel);wsc(this.channel,function(y){var k=new sJO;y=_.JT(k,1,y);y=_.KF(y,3,C.userActivity.userActivityLoggingIntervalMs);k=C.audio.isAudioEnabled();k!==void 0&&_.Mb(y,2,k);k=new tT;
return _.Om(k,5,aJ,y)})};var $zu=function(){this.timedFunctionContext=0};
$zu.prototype.timeExecution=function(I,C){var y=this;return function(){var k=_.wa.apply(0,arguments);y.timedFunctionContext=I;return C.apply(null,_.Py(k))}};var Rmd=function(){var I={};this.priorityTasks=(I[3]=[],I[2]=[],I[1]=[],I);this.isFlushing=!1},IE=function(I,C,y){var k=b9u(I,y);
I.priorityTasks[y].push(C);k&&I.priorityTasks[y].length===1&&I.flush()},b9u=function(I,C){return Object.keys(I.priorityTasks).map(function(y){return Number(y)}).filter(function(y){return!isNaN(y)&&y>C}).every(function(y){return I.priorityTasks[y].length===0})};
Rmd.prototype.flush=function(){if(!this.isFlushing){this.isFlushing=!0;try{for(;Object.values(this.priorityTasks).some(function(I){return I.length>0});)YFe(this,3),YFe(this,2),YFe(this,1)}catch(I){throw Object.values(this.priorityTasks).forEach(function(C){return void C.splice(0,C.length)}),I;
}finally{this.isFlushing=!1}}};
var YFe=function(I,C){for(;b9u(I,C)&&I.priorityTasks[C].length>0;)I.priorityTasks[C][0](),I.priorityTasks[C].shift()};
_.H1.Object.defineProperties(Rmd.prototype,{running:{configurable:!0,enumerable:!0,get:function(){return Object.values(this.priorityTasks).some(function(I){return I.length>0})}}});var zTW={};var GIw=globalThis.trustedTypes,yTz=GIw,FzH;var IM=function(I){this.privateDoNotAccessOrElseWrappedResourceUrl=I};
IM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedResourceUrl+""};var ftm=_.hu([""]),SFY=ksz(["\x00"],["\\0"]),KY8=ksz(["\n"],["\\n"]),AX8=ksz(["\x00"],["\\u0000"]);oM(function(I){return I(ftm)})||oM(function(I){return I(SFY)})||oM(function(I){return I(KY8)})||oM(function(I){return I(AX8)});var eO;_.yp=function(I,C){this.privateDoNotAccessOrElseWrappedUrl=C};
_.yp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedUrl};
_.gzb=FG("about:blank");eO=FG("about:invalid#zClosurez");var TR9=function(I){this.isValid=I},vz8=new TR9(function(I){return/^[^:]*([/?#]|$)/.test(I)}),WYq=TK("data"),dzc=TK("http"),xzS=TK("https"),qFq=TK("ftp"),mz0=TK("mailto"),Z9P=TK("intent"),BHq=TK("vnd.youtube"),cTz=[WYq,
dzc,xzS,mz0,qFq,vz8],eTO=Mj(function(){return typeof URL==="function"}),Ezc=["data:",
"http:","https:","mailto:","ftp:"],i2O=/^\s*(?!javascript:)(?:[\w+.-]+:|[^:/?#]*(?:[/?#]|$))/i;var Qp=function(I){this.privateDoNotAccessOrElseWrappedHtml=I};
Qp.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedHtml+""};
var cqK=Mj(function(){return new Qp(GIw?GIw.emptyHTML:"")});var hmP={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"},li=function(I,C){var y=Error.call(this,I+" cannot be used with intent "+hmP[C]);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.type=I;this.intent=C;this.name="TypeCannotBeUsedWithIframeIntentError"};
_.R(li,Error);_.RM=function(I){this.privateDoNotAccessOrElseWrappedScript=I};
_.RM.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedScript+""};var Lzz=function(I){this.privateDoNotAccessOrElseWrappedAttributePrefix=I};
Lzz.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedAttributePrefix};var Djz="alternate author bookmark canonical cite help icon license modulepreload next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" ");var Fds=function(I){var C=_.d5("window.location.href");I==null&&(I='Unknown Error of type "null/undefined"');if(typeof I==="string")return{message:I,name:"Unknown error",lineNumber:"Not available",fileName:C,stack:"Not available"};var y=!1;try{var k=I.lineNumber||I.line||"Not available"}catch(c){k="Not available",y=!0}try{var F=I.fileName||I.filename||I.sourceURL||_.sF.$googDebugFname||C}catch(c){F="Not available",y=!0}C=Uz8(I);if(!(!y&&I.lineNumber&&I.fileName&&I.stack&&I.message&&I.name)){y=I.message;
if(y==null){if(I.constructor&&I.constructor instanceof Function){if(I.constructor.name)y=I.constructor.name;else if(y=I.constructor,Mm[y])y=Mm[y];else{y=String(y);if(!Mm[y]){var z=/function\s+([^\(]+)/m.exec(y);Mm[y]=z?z[1]:"[Anonymous]"}y=Mm[y]}y='Unknown Error of type "'+y+'"'}else y="Unknown Error of unknown type";typeof I.toString==="function"&&Object.prototype.toString!==I.toString&&(y+=": "+I.toString())}return{message:y,name:I.name||"UnknownError",lineNumber:k,fileName:F,stack:C||"Not available"}}return{message:I.message,
name:I.name,lineNumber:I.lineNumber,fileName:I.fileName,stack:C}},Uz8=function(I,C){C||(C={});
C[H9w(I)]=!0;var y=I.stack||"",k=I.cause;k&&!C[H9w(k)]&&(y+="\nCaused by: ",k.stack&&k.stack.indexOf(k.toString())==0||(y+=typeof k==="string"?k:k.message+"\n"),y+=Uz8(k,C));I=I.errors;if(Array.isArray(I)){k=1;var F;for(F=0;F<I.length&&!(k>4);F++)C[H9w(I[F])]||(y+="\nInner error "+k++ +": ",I[F].stack&&I[F].stack.indexOf(I[F].toString())==0||(y+=typeof I[F]==="string"?I[F]:I[F].message+"\n"),y+=Uz8(I[F],C));F<I.length&&(y+="\n... "+(I.length-F)+" more inner errors")}return y},H9w=function(I){var C=
"";
typeof I.toString==="function"&&(C=""+I);return C+I.stack},Mm={};var tI5,O3,IY,O9d,at5,JXP,W2,d8,IYc;tI5=function(I,C){for(var y=I.split("%s"),k="",F=Array.prototype.slice.call(arguments,1);F.length&&y.length>1;)k+=y.shift()+F.shift();return k+y.join("%s")};
_.q$=function(I){return encodeURIComponent(String(I))};
O3=function(I){return decodeURIComponent(I.replace(/\+/g," "))};
IY=function(I){v2m.test(I)&&(I.indexOf("&")!=-1&&(I=I.replace(GsI,"&amp;")),I.indexOf("<")!=-1&&(I=I.replace(f3F,"&lt;")),I.indexOf(">")!=-1&&(I=I.replace(SYF,"&gt;")),I.indexOf('"')!=-1&&(I=I.replace(KiW,"&quot;")),I.indexOf("'")!=-1&&(I=I.replace(Atm,"&#39;")),I.indexOf("\x00")!=-1&&(I=I.replace(g2W,"&#0;")));return I};
O9d=function(I){var C={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"'};var y=_.sF.document.createElement("div");return I.replace(JXP,function(k,F){var z=C[k];if(z)return z;F.charAt(0)=="#"&&(F=Number("0"+F.slice(1)),isNaN(F)||(z=String.fromCharCode(F)));z||(_.SO(y,NM(k+" ")),z=y.firstChild.nodeValue.slice(0,-1));return C[k]=z})};
at5=function(I){return I.replace(/&([^;]+);/g,function(C,y){switch(y){case "amp":return"&";case "lt":return"<";case "gt":return">";case "quot":return'"';default:return y.charAt(0)!="#"||(y=Number("0"+y.slice(1)),isNaN(y))?C:String.fromCharCode(y)}})};
JXP=/&([^;\s<&]+);?/g;_.G6z=function(I){return String(I).replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1").replace(/\x08/g,"\\x08")};
_.MI8=String.prototype.repeat?function(I,C){return I.repeat(C)}:function(I,C){return Array(C+1).join(I)};
_.Id=function(I,C){if(!Number.isFinite(I))return String(I);I=String(I);var y=I.indexOf(".");y===-1&&(y=I.length);var k=I[0]==="-"?"-":"";k&&(I=I.substring(1));return k+(0,_.MI8)("0",Math.max(0,C-y))+I};
W2=function(){return Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^_.CF()).toString(36)};
d8=function(I){for(var C=0,y=0;y<I.length;++y)C=31*C+I.charCodeAt(y)>>>0;return C};
_.P$=function(I){return String(I).replace(/\-([a-z])/g,function(C,y){return y.toUpperCase()})};
_.nq=function(I){return String(I).replace(/([A-Z])/g,"-$1").toLowerCase()};
IYc=function(I){return I.replace(RegExp("(^|[\\s]+)([a-z])","g"),function(C,y,k){return y+k.toUpperCase()})};var C80=function(){this.names=new Map};
C80.prototype.getName=function(I){var C=this.names.get(I);if(C)return C;var y;C=(y=I.description)!=null?y:W2();this.names.set(I,C);return C};var swq=function(I){var C=Error.call(this,I?I.length+" errors occurred during unsubscription:\n"+I.map(function(y,k){return k+1+") "+y.toString()}).join("\n  "):"");
this.message=C.message;"stack"in C&&(this.stack=C.stack);this.errors=I;Object.setPrototypeOf(this,this.constructor.prototype);this.name="UnsubscriptionError"};
_.R(swq,Error);var m7=function(I){this.initialTeardown=I;this.closed=!1;this._teardowns=this._parentage=null};
_.u=m7.prototype;
_.u.unsubscribe=function(){if(!this.closed){this.closed=!0;var I=this._parentage;if(Array.isArray(I))for(var C=_.T(I),y=C.next();!y.done;y=C.next())y.value.remove(this);else I==null||I.remove(this);C=this.initialTeardown;if(qM(C))try{C()}catch(z){var k=z instanceof swq?z.errors:[z]}var F=this._teardowns;if(F)for(this._teardowns=null,C=_.T(F),y=C.next();!y.done;y=C.next()){y=y.value;try{qM(y)?y():y.unsubscribe()}catch(z){y=void 0,k=(y=k)!=null?y:[],z instanceof swq?k=[].concat(_.Py(k),_.Py(z.errors)):
k.push(z)}}if(k)throw new swq(k);}};
_.u.add=function(I){if(I&&I!==this)if(this.closed)qM(I)?I():I.unsubscribe();else{if(I instanceof m7){if(I.closed||I._hasParent(this))return;I._addParent(this)}var C;(this._teardowns=(C=this._teardowns)!=null?C:[]).push(I)}};
_.u._hasParent=function(I){var C=this._parentage;return C===I||Array.isArray(C)&&C.includes(I)};
_.u._addParent=function(I){var C=this._parentage;this._parentage=Array.isArray(C)?(C.push(I),C):C?[C,I]:I};
_.u._removeParent=function(I){var C=this._parentage;C===I?this._parentage=null:Array.isArray(C)&&da(C,I)};
_.u.remove=function(I){var C=this._teardowns;C&&da(C,I);I instanceof m7&&I._removeParent(this)};
var ouu=new m7;ouu.closed=!0;m7.JSC$6945_EMPTY=ouu;var VFY=function(){setTimeout.apply(null,_.Py(_.wa.apply(0,arguments)))};var CQ=function(I){m7.call(this);this.JSC$6950_isStopped=!1;this.destination=I instanceof CQ?I:new sr(!I||qM(I)?{next:I!=null?I:void 0}:I);NRt(I)&&I.add(this)};
_.R(CQ,m7);CQ.JSC$6945_EMPTY=m7.JSC$6945_EMPTY;CQ.create=function(I,C,y){return new od(I,C,y)};
_.u=CQ.prototype;_.u.next=function(I){this.JSC$6950_isStopped||this._next(I)};
_.u.error=function(I){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._error(I))};
_.u.complete=function(){this.JSC$6950_isStopped||(this.JSC$6950_isStopped=!0,this._complete())};
_.u.unsubscribe=function(){this.closed||(this.JSC$6950_isStopped=!0,m7.prototype.unsubscribe.call(this))};
_.u._next=function(I){this.destination.next(I)};
_.u._error=function(I){this.destination.error(I);this.unsubscribe()};
_.u._complete=function(){this.destination.complete();this.unsubscribe()};
var sr=function(I){this.partialObserver=I};
sr.prototype.next=function(I){var C=this.partialObserver;if(C.next)try{C.next(I)}catch(y){Bn(y)}};
sr.prototype.error=function(I){var C=this.partialObserver;if(C.error)try{C.error(I)}catch(y){Bn(y)}else Bn(I)};
sr.prototype.complete=function(){var I=this.partialObserver;if(I.complete)try{I.complete()}catch(C){Bn(C)}};
var od=function(I,C,y){CQ.call(this);var k;qM(I)||!I?k={next:I!=null?I:void 0,error:C!=null?C:void 0,complete:y!=null?y:void 0}:k=I;this.destination=new sr(k)};
_.R(od,CQ);od.JSC$6945_EMPTY=CQ.JSC$6945_EMPTY;od.create=CQ.create;var t_=typeof Symbol==="function"&&Symbol.observable||"@@observable";var UC=function(I){I&&(this._subscribe=I)};
_.u=UC.prototype;_.u.lift=function(I){var C=new UC;C.source=this;C.operator=I;return C};
_.u.subscribe=function(I,C,y){I=I&&I instanceof CQ||I&&qM(I.next)&&qM(I.error)&&qM(I.complete)&&NRt(I)?I:new od(I,C,y);C=this.operator;y=this.source;I.add(C?C.call(I,y):y?this._subscribe(I):this._trySubscribe(I));return I};
_.u._trySubscribe=function(I){try{return this._subscribe(I)}catch(C){I.error(C)}};
_.u.forEach=function(I,C){var y=this;C=l89(C);return new C(function(k,F){var z=y.subscribe(function(c){try{I(c)}catch(r){F(r),z==null||z.unsubscribe()}},F,k)})};
_.u._subscribe=function(I){var C;return(C=this.source)==null?void 0:C.subscribe(I)};
UC.prototype[t_]=function(){return this};
UC.prototype.pipe=function(){var I=_.wa.apply(0,arguments);return I.length?jJs(I)(this):this};
UC.create=function(I){return new UC(I)};var ycu=function(){var I=Error.call(this,"object unsubscribed");this.message=I.message;"stack"in I&&(this.stack=I.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="ObjectUnsubscribedError"};
_.R(ycu,Error);var Oj=function(){this.observers=[];this.hasError=this.JSC$6966_isStopped=this.closed=!1;this.thrownError=null};
_.R(Oj,UC);_.u=Oj.prototype;_.u.lift=function(I){var C=new yx(this,this);C.operator=I;return C};
_.u._throwIfClosed=function(){if(this.closed)throw new ycu;};
_.u.next=function(I){this._throwIfClosed();if(!this.JSC$6966_isStopped){var C=this.observers.slice();C=_.T(C);for(var y=C.next();!y.done;y=C.next())y.value.next(I)}};
_.u.error=function(I){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.hasError=this.JSC$6966_isStopped=!0;this.thrownError=I;for(var C=this.observers;C.length;)C.shift().error(I)}};
_.u.complete=function(){this._throwIfClosed();if(!this.JSC$6966_isStopped){this.JSC$6966_isStopped=!0;for(var I=this.observers;I.length;)I.shift().complete()}};
_.u.unsubscribe=function(){this.JSC$6966_isStopped=this.closed=!0;this.observers=null};
_.u._trySubscribe=function(I){this._throwIfClosed();return UC.prototype._trySubscribe.call(this,I)};
_.u._subscribe=function(I){this._throwIfClosed();this._checkFinalizedStatuses(I);return this._innerSubscribe(I)};
_.u._innerSubscribe=function(I){var C=this,y=this.JSC$6966_isStopped,k=this.observers;return this.hasError||y?m7.JSC$6945_EMPTY:(k.push(I),new m7(function(){return da(C.observers,I)}))};
_.u._checkFinalizedStatuses=function(I){var C=this.thrownError,y=this.JSC$6966_isStopped;this.hasError?I.error(C):y&&I.complete()};
Oj.create=function(I,C){return new yx(I,C)};
var yx=function(I,C){Oj.call(this);this.destination=I;this.source=C};
_.R(yx,Oj);yx.create=Oj.create;yx.prototype.next=function(I){var C,y;(C=this.destination)==null||(y=C.next)==null||y.call(C,I)};
yx.prototype.error=function(I){var C,y;(C=this.destination)==null||(y=C.error)==null||y.call(C,I)};
yx.prototype.complete=function(){var I,C;(I=this.destination)==null||(C=I.complete)==null||C.call(I)};
yx.prototype._subscribe=function(I){var C,y;return(y=(C=this.source)==null?void 0:C.subscribe(I))!=null?y:m7.JSC$6945_EMPTY};var GT=function(I){Oj.call(this);this._value=I};
_.R(GT,Oj);GT.create=Oj.create;GT.prototype._subscribe=function(I){var C=Oj.prototype._subscribe.call(this,I);!C.closed&&I.next(this._value);return C};
GT.prototype.getValue=function(){var I=this.thrownError,C=this._value;if(this.hasError)throw I;this._throwIfClosed();return C};
GT.prototype.next=function(I){Oj.prototype.next.call(this,this._value=I)};
_.H1.Object.defineProperties(GT.prototype,{value:{configurable:!0,enumerable:!0,get:function(){return this.getValue()}}});var VX=new UC(function(I){return I.complete()});var Hn=typeof Symbol==="function"&&Symbol.iterator?Symbol.iterator:"@@iterator";var Smm=function(I){return I&&typeof I.length==="number"&&typeof I!=="function"};var k0d={now:function(){return(k0d.delegate||Date).now()},
delegate:void 0};var d4=function(I,C,y){I=I===void 0?Infinity:I;C=C===void 0?Infinity:C;y=y===void 0?k0d:y;Oj.call(this);this.JSC$6988_bufferSize=I;this.windowTime=C;this.timestampProvider=y;this.buffer=[];this.infiniteTimeWindow=!0;this.infiniteTimeWindow=C===Infinity;this.JSC$6988_bufferSize=Math.max(1,I);this.windowTime=Math.max(1,C)};
_.R(d4,Oj);d4.create=Oj.create;d4.prototype.next=function(I){var C=this.buffer,y=this.infiniteTimeWindow,k=this.timestampProvider,F=this.windowTime;this.JSC$6966_isStopped||(C.push(I),!y&&C.push(k.now()+F));FPm(this);Oj.prototype.next.call(this,I)};
d4.prototype._subscribe=function(I){this._throwIfClosed();FPm(this);for(var C=this._innerSubscribe(I),y=this.infiniteTimeWindow,k=this.buffer.slice(),F=0;F<k.length&&!I.closed;F+=y?1:2)I.next(k[F]);this._checkFinalizedStatuses(I);return C};
var FPm=function(I){var C=I.JSC$6988_bufferSize,y=I.timestampProvider,k=I.buffer;I=I.infiniteTimeWindow;var F=(I?1:2)*C;C<Infinity&&F<k.length&&k.splice(0,k.length-F);if(!I){C=y.now();y=0;for(I=1;I<k.length&&k[I]<=C;I+=2)y=I;y&&k.splice(0,y+1)}};var zbS=function(I,C){C=C===void 0?uq5:C;this.schedulerActionCtor=I;this.now=C};
zbS.prototype.schedule=function(I,C,y){C=C===void 0?0:C;return(new this.schedulerActionCtor(this,I)).schedule(y,C)};
var uq5=k0d.now;var jMO=function(){var I=Error.call(this,"no elements in sequence");this.message=I.message;"stack"in I&&(this.stack=I.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="EmptyError"};
_.R(jMO,Error);var e1=function(I,C,y,k,F){CQ.call(this,I);this.onUnsubscribe=F;C&&(this._next=function(z){try{C(z)}catch(c){this.destination.error(c)}});
y&&(this._error=function(z){try{y(z)}catch(c){this.destination.error(c)}this.unsubscribe()});
k&&(this._complete=function(){try{k()}catch(z){this.destination.error(z)}this.unsubscribe()})};
_.R(e1,CQ);e1.JSC$6945_EMPTY=CQ.JSC$6945_EMPTY;e1.create=CQ.create;e1.prototype.unsubscribe=function(){var I;this.closed||(I=this.onUnsubscribe)!=null&&I.call(this);CQ.prototype.unsubscribe.call(this)};var vy=function(I,C){this.source=I;this.subjectFactory=C;this._subject=null;this._refCount=0;this._connection=null};
_.R(vy,UC);vy.create=UC.create;vy.prototype._subscribe=function(I){return TSw(this).subscribe(I)};
var TSw=function(I){var C=I._subject;if(!C||C.JSC$6966_isStopped)I._subject=I.subjectFactory();return I._subject};
vy.prototype._teardown=function(){this._refCount=0;var I=this._connection;this._subject=this._connection=null;I==null||I.unsubscribe()};
vy.prototype.connect=function(){var I=this,C=this._connection;if(!C){C=this._connection=new m7;var y=TSw(this);C.add(this.source.subscribe(new e1(y,void 0,function(k){I._teardown();y.error(k)},function(){I._teardown();
y.complete()},function(){return I._teardown()})));
C.closed&&(this._connection=null,C=m7.JSC$6945_EMPTY)}return C};var EGm=Array.isArray;var UjF=Array.isArray,ccm=Object,H2H=ccm.getPrototypeOf,tFK=ccm.prototype,JTK=ccm.keys;var DR=function(I,C,y){CQ.call(this,I);this._next=C;this.shouldComplete=y};
_.R(DR,CQ);DR.JSC$6945_EMPTY=CQ.JSC$6945_EMPTY;DR.create=CQ.create;DR.prototype._complete=function(){this.shouldComplete()?CQ.prototype._complete.call(this):this.unsubscribe()};var y_H=["addListener","removeListener"],obK=["addEventListener","removeEventListener"],F7z=["on","off"];var kg=function(){m7.call(this)};
_.R(kg,m7);kg.JSC$6945_EMPTY=m7.JSC$6945_EMPTY;kg.prototype.schedule=function(){return this};var ebS=function(I,C){return setInterval.apply(null,[I,C].concat(_.Py(_.wa.apply(2,arguments))))};var Fh=function(I,C){m7.call(this);this.scheduler=I;this.work=C;this.pending=!1};
_.R(Fh,kg);Fh.JSC$6945_EMPTY=kg.JSC$6945_EMPTY;Fh.prototype.schedule=function(I,C){C=C===void 0?0:C;if(this.closed)return this;this.state=I;I=this.id;var y=this.scheduler;I!=null&&(this.id=rcu(this,I,C));this.pending=!0;this.delay=C;this.id=this.id||this.requestAsyncId(y,this.id,C);return this};
Fh.prototype.requestAsyncId=function(I,C,y){y=y===void 0?0:y;return ebS(I.flush.bind(I,this),y)};
var rcu=function(I,C,y){y=y===void 0?0:y;if(y!=null&&I.delay===y&&I.pending===!1)return C;clearInterval(C)};
Fh.prototype.execute=function(I,C){if(this.closed)return Error("la");this.pending=!1;if(I=this._execute(I,C))return I;this.pending===!1&&this.id!=null&&(this.id=rcu(this,this.id,null))};
Fh.prototype._execute=function(I){var C=!1;try{this.work(I)}catch(k){C=!0;var y=!!k&&k||Error(k)}if(C)return this.unsubscribe(),y};
Fh.prototype.unsubscribe=function(){if(!this.closed){var I=this.id,C=this.scheduler.actions;this.work=this.state=this.scheduler=null;this.pending=!1;da(C,this);I!=null&&(this.id=rcu(this,I,null));this.delay=null;kg.prototype.unsubscribe.call(this)}};var i5q=function(I,C){C=C===void 0?uq5:C;zbS.call(this,I,C);this.actions=[];this.active=!1;this.scheduled=void 0};
_.R(i5q,zbS);i5q.prototype.flush=function(I){var C=this.actions;if(this.active)C.push(I);else{var y;this.active=!0;do if(y=I.execute(I.state,I.delay))break;while(I=C.shift());this.active=!1;if(y){for(;I=C.shift();)I.unsubscribe();throw y;}}};var i3=new UC(Zd);var uGI=Array.isArray;var uB=function(I,C){Fh.call(this,I,C);this.scheduler=I;this.work=C};
_.R(uB,Fh);uB.JSC$6945_EMPTY=Fh.JSC$6945_EMPTY;uB.prototype.schedule=function(I,C){C=C===void 0?0:C;if(C>0)return Fh.prototype.schedule.call(this,I,C);this.delay=C;this.state=I;this.scheduler.flush(this);return this};
uB.prototype.execute=function(I,C){return C>0||this.closed?Fh.prototype.execute.call(this,I,C):this._execute(I,C)};
uB.prototype.requestAsyncId=function(I,C,y){y=y===void 0?0:y;return y!=null&&y>0||y==null&&this.delay>0?Fh.prototype.requestAsyncId.call(this,I,C,y):I.flush(this)};var wmS=function(){i5q.apply(this,arguments)};
_.R(wmS,i5q);var Z2F=new wmS(uB);var nuY=function(){this.performanceMonitor=new $zu;this.queue=new Rmd;this.internalSymbol=Symbol();this.debugNames=new C80};
nuY.prototype.getOnBackgrounded=function(){return i3};
_.H1.Object.defineProperties(nuY.prototype,{symbol:{configurable:!0,enumerable:!0,get:function(){return this.internalSymbol}}});var zE=function(I,C){C=Error.call(this,C?I+": "+C:String(I));this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=I;this.__proto__=zE.prototype;this.name=String(I)};
_.R(zE,Error);var ne=function(I){zE.call(this,1E3,'sfr:"'+I+'"');this.measurementStrategyFailureReason=I;this.__proto__=ne.prototype};
_.R(ne,zE);var Pi=function(){zE.call(this,1003);this.__proto__=Pi.prototype};
_.R(Pi,zE);var TE=function(){zE.call(this,1009);this.__proto__=TE.prototype};
_.R(TE,zE);var P8w=function(){zE.call(this,1011);this.__proto__=P8w.prototype};
_.R(P8w,zE);var LPm=function(){zE.call(this,1007);this.__proto__=Pi.prototype};
_.R(LPm,zE);var TT=function(I){zE.call(this,1004,String(I));this.inputObservableIndex=I;this.__proto__=TT.prototype};
_.R(TT,zE);var AMK=function(I){zE.call(this,1010,I);this.__proto__=ci.prototype};
_.R(AMK,zE);var ci=function(I){zE.call(this,1005,I);this.__proto__=ci.prototype};
_.R(ci,zE);var Dqw=function(I){var C=_.wa.apply(1,arguments),y=this;this.orderedFactories=[];this.orderedFactories.push(I);C.forEach(function(k){y.orderedFactories.push(k)})};
Dqw.prototype.isSupported=function(I){return this.orderedFactories.some(function(C){return C.isSupported(I)})};
Dqw.prototype.makeBeacon=function(I,C){for(var y=0;y<this.orderedFactories.length;y++)if(this.orderedFactories[y].isSupported(C))return this.orderedFactories[y].makeBeacon(I,C);throw new TE;};var pis=Symbol("ma"),pmq=Symbol("na"),RI=function(I,C){this.value=I;this.timeline=C},$5=function(I,C){if(C.timeline!==I.timeline)throw new LPm;
return I.value-C.value};
_.u=RI.prototype;_.u.equals=function(I){return $5(this,I)===0};
_.u.maximum=function(I){if(I.timeline!==this.timeline)throw new LPm;return this.value>=I.value?this:I};
_.u.round=function(){return new RI(Math.round(this.value),this.timeline)};
_.u.add=function(I){return new RI(this.value+I,this.timeline)};
_.u.toString=function(){return String(this.value)};var cz=function(I,C){this.context=I;this.JSC$7072_pinger=C};
cz.prototype.isSupported=function(I){return this.JSC$7072_pinger.isSupported(I)};
cz.prototype.makeBeacon=function(I,C){if(!this.isSupported(C))throw new TE;return new eZ(this.context,this.JSC$7072_pinger,C!=null?C:void 0,I)};
var eZ=function(I,C,y,k){var F=this;this.JSC$7078_pinger=C;this.properties=y;this.url=k;this.internalIsPending=!0;this.customHeaders=new Map;this.body=void 0;var z;this.method=(z=y==null?void 0:y.beaconMethod)!=null?z:"GET";this.backgroundedSubscription=I.getOnBackgrounded().subscribe(function(){F.sendNow()})};
eZ.prototype.deactivate=function(){this.internalIsPending=!1};
eZ.prototype.sendNow=function(){if(this.internalIsPending)if(this.backgroundedSubscription.unsubscribe(),this.JSC$7078_pinger.isSupported(this.properties))try{if(this.customHeaders.size>0||this.body!==void 0){var I,C;this.JSC$7078_pinger.pingWithHeadersAndBody((I=this.properties)!=null?I:{},this.customHeaders,(C=this.body)!=null?C:"",this.url)}else this.JSC$7078_pinger.ping(this.url);this.internalIsPending=!1}catch(y){}else this.internalIsPending=!1};
eZ.prototype.setHeader=function(I){this.customHeaders.set(I,void 0)};
_.H1.Object.defineProperties(eZ.prototype,{isPending:{configurable:!0,enumerable:!0,get:function(){return this.internalIsPending}}});var NSb=function(){for(var I=_.T(_.wa.apply(0,arguments)),C=I.next();!C.done;C=I.next())if(C=C.value,C.available()){this.timeProvider=C;return}this.timeProvider=new Qwq};
_.u=NSb.prototype;_.u.available=function(){return this.timeProvider.available()};
_.u.now=function(){return this.timeProvider.now()};
_.u.setTimeout=function(I,C){return this.timeProvider.setTimeout(I,C)};
_.u.clearTimeout=function(I){this.timeProvider.clearTimeout(I)};
_.u.interval=function(I,C){var y=this.intervalObservable(I).subscribe(C);return function(){return void y.unsubscribe()}};
_.u.intervalObservable=function(I){return this.timeProvider.intervalObservable(I)};
_.H1.Object.defineProperties(NSb.prototype,{timeline:{configurable:!0,enumerable:!0,get:function(){return this.timeProvider.timeline}}});
var Qwq=function(){this.timeline=Symbol()};
_.u=Qwq.prototype;_.u.available=function(){return!1};
_.u.now=function(){return new RI(0,this.timeline)};
_.u.setTimeout=function(){return 0};
_.u.clearTimeout=function(){};
_.u.interval=function(){return function(){}};
_.u.intervalObservable=function(){return i3};var rs=function(I,C){this.intrinsicFunctionNamespace=I;this.performanceMonitor=C};
_.u=rs.prototype;_.u.setTimeout=function(I,C){return this.intrinsicFunctionNamespace.setTimeout(this.performanceMonitor.timeExecution(734,I),C)};
_.u.clearTimeout=function(I){this.intrinsicFunctionNamespace.clearTimeout(I)};
_.u.interval=function(I,C){var y=this.intervalObservable(I).subscribe(C);return function(){return void y.unsubscribe()}};
_.u.intervalObservable=function(I){var C=this;return new UC(function(y){var k=0,F=C.intrinsicFunctionNamespace.setInterval(function(){y.next(k++)},I);
return function(){C.intrinsicFunctionNamespace.clearInterval(F)}})};
_.u.available=function(){return!!this.intrinsicFunctionNamespace.clearTimeout&&"setTimeout"in this.intrinsicFunctionNamespace&&"setInterval"in this.intrinsicFunctionNamespace&&!!this.intrinsicFunctionNamespace.clearInterval};var Vew=function(I,C){rs.call(this,I,C);this.timeline=pmq};
_.R(Vew,rs);Vew.prototype.now=function(){return new RI(this.intrinsicFunctionNamespace.Date.now(),this.timeline)};
Vew.prototype.available=function(){return!!this.intrinsicFunctionNamespace.Date&&!!this.intrinsicFunctionNamespace.Date.now&&rs.prototype.available.call(this)};var jwd=function(I,C){rs.call(this,I,C);this.timeline=pis};
_.R(jwd,rs);jwd.prototype.now=function(){return new RI(this.intrinsicFunctionNamespace.performance.now(),this.timeline)};
jwd.prototype.available=function(){return!!this.intrinsicFunctionNamespace.performance&&!!this.intrinsicFunctionNamespace.performance.now&&rs.prototype.available.call(this)};var Xm5=function(I){this.context=I;if(lYq===void 0)a:{var C,y,k=(C=I.global)==null?void 0:(y=C.document)==null?void 0:y.createElement("meta");if(k)try{k.httpEquiv="origin-trial";k.content="AxjhRadLCARYRJawRjMjq4U8V8okQvSnrBIJWdMajuEkN3/DfVAcLcFhMVrUWnOXagwlI8dQD84FwJDGj9ohqAYAAABveyJvcmlnaW4iOiJodHRwczovL2dvb2dsZWFkc2VydmljZXMuY29tOjQ0MyIsImZlYXR1cmUiOiJGZXRjaExhdGVyQVBJIiwiZXhwaXJ5IjoxNzI1NDA3OTk5LCJpc1RoaXJkUGFydHkiOnRydWV9";I.global.document.head.append(k);lYq=k;break a}catch(F){}lYq=void 0}},
lYq;
Xm5.prototype.isSupported=function(I){return L7X(this.context)!==void 0&&!(I==null||!I.endOfSession)&&!iB(this.context)&&!(I==null?0:I.attributionEnabled)&&!(I==null?0:I.customHeaders)&&!(I==null?0:I.customBody)};
Xm5.prototype.makeBeacon=function(I,C){if(!this.isSupported(C))throw new TE;return new ws(this.context,I,C)};
var ws=function(I,C,y){this.context=I;this.properties=y;this.JSC$7105_urlWithoutToken=C;var k;this.beaconMethod=(k=y==null?void 0:y.beaconMethod)!=null?k:"GET";I=L7X(this.context);if(I===void 0)throw Error();this.fetchLater=I;$qe(this,Rb8(this))},$qe=function(I,C){I.beaconResult&&I.beaconResult.activated||(I.beaconAbort=new AbortController,I.beaconResult=I.fetchLater(C,{method:I.beaconMethod,
cache:"no-cache",mode:"no-cors",signal:I.beaconAbort.signal,activateAfter:96E4}))},Rb8=function(I){I=I.JSC$7105_urlWithoutToken;
return(I.slice(-1)[0]==="&"?I:I+"&")+"flapi=1"};
ws.prototype.deactivate=function(){this.beaconResult&&!this.beaconResult.activated&&this.beaconAbort&&(this.beaconAbort.abort(),this.beaconResult=void 0)};
ws.prototype.sendNow=function(){};
ws.prototype.setHeader=function(){};
_.H1.Object.defineProperties(ws.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7105_urlWithoutToken},
set:function(I){this.JSC$7105_urlWithoutToken=I;I=Rb8(this);this.beaconResult&&this.beaconResult.activated||!this.beaconAbort||(this.beaconAbort.abort(),this.beaconResult=void 0);$qe(this,I)}},
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 b55=function(I){this.context=I};
b55.prototype.isSupported=function(){return!iB(this.context)&&!!this.context.global.fetch};
b55.prototype.ping=function(){var I=this;return j1.apply(null,_.Py(_.wa.apply(0,arguments).map(function(C){return OC(I.context.global.fetch(C,{method:"GET",cache:"no-cache",keepalive:!0,mode:"no-cors"})).pipe(iI(function(y){return y.status===200}))}))).pipe(ldI(function(C){return C}),$MI())};
b55.prototype.pingWithHeadersAndBody=function(I,C,y){for(var k=_.wa.apply(3,arguments),F=this,z=new Headers,c=_.T(C.entries()),r=c.next();!r.done;r=c.next()){var w=_.T(r.value);r=w.next().value;w=w.next().value;z.set(r,w)}var L,D=(L=I.keepAlive)!=null?L:!1;j1.apply(null,_.Py(k.map(function(p){return OC(F.context.global.fetch(p,Object.assign({},{method:String(I.beaconMethod),cache:"no-cache"},D?{keepalive:!0}:{},{mode:"no-cors",headers:z,body:y}))).pipe(iI(function(Q){return Q.status===200}))}))).pipe(ldI(function(p){return p}),
$MI())};var Ywq,Ru9;_.nQ=function(){};
_.gH=function(I){return I};
Ywq=function(I){var C=C||0;return function(){return I.apply(this,Array.prototype.slice.call(arguments,0,C))}};
_.Pz=function(I){var C=!1,y;return function(){C||(y=I(),C=!0);return y}};
_.LQ=function(I,C){var y=0;return function(k){_.sF.clearTimeout(y);var F=arguments;y=_.sF.setTimeout(function(){I.apply(void 0,F)},C)}};
Ru9=function(I,C){var y=0,k=!1,F=[],z=function(){y=0;k&&(k=!1,c())},c=function(){y=_.sF.setTimeout(z,C);
var r=F;F=[];I.apply(void 0,r)};
return function(r){F=arguments;y?k=!0:c()}};var fYq=function(){return n9&&Ps?Ps.mobile:!G0d()&&(QW("iPod")||QW("iPhone")||QW("Android")||QW("IEMobile"))},G0d=function(){return n9&&Ps?!Ps.mobile&&(QW("iPad")||QW("Android")||QW("Silk")):QW("iPad")||QW("Android")&&!QW("Mobile")||QW("Silk")};var Swq;_.Le={};Swq="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");_.Le.add=function(I,C,y){if(I!==null&&C in I)throw Error("pa`"+C);I[C]=y};
_.Le.clear=function(I){for(var C in I)delete I[C]};
_.Le.clone=function(I){var C={},y;for(y in I)C[y]=I[y];return C};
_.Le.contains=function(I,C){return YCF(I,C)};
_.Le.containsKey=function(I,C){return I!==null&&C in I};
_.Le.containsValue=YCF;_.Le.create=SCI;_.Le.createImmutableView=function(I){var C=I;Object.isFrozen&&!Object.isFrozen(I)&&(C=Object.create(I),Object.freeze(C));return C};
_.Le.createSet=K7z;_.Le.equals=function(I,C){for(var y in I)if(!(y in C)||I[y]!==C[y])return!1;for(var k in C)if(!(k in I))return!1;return!0};
_.Le.every=function(I,C,y){for(var k in I)if(!C.call(y,I[k],k,I))return!1;return!0};
_.Le.extend=function(I,C){for(var y,k,F=1;F<arguments.length;F++){k=arguments[F];for(y in k)I[y]=k[y];for(var z=0;z<Swq.length;z++)y=Swq[z],Object.prototype.hasOwnProperty.call(k,y)&&(I[y]=k[y])}};
_.Le.filter=function(I,C,y){var k={},F;for(F in I)C.call(y,I[F],F,I)&&(k[F]=I[F]);return k};
_.Le.findKey=GK9;_.Le.findValue=function(I,C,y){return(C=GK9(I,C,y))&&I[C]};
_.Le.forEach=function(I,C,y){for(var k in I)C.call(y,I[k],k,I)};
_.Le.get=function(I,C,y){return I!==null&&C in I?I[C]:y};
_.Le.getAllPropertyNames=function(I,C,y){if(!I)return[];if(!Object.getOwnPropertyNames||!Object.getPrototypeOf)return baY(I);for(var k={};I&&(I!==Object.prototype||C)&&(I!==Function.prototype||y);){for(var F=Object.getOwnPropertyNames(I),z=0;z<F.length;z++)k[F[z]]=!0;I=Object.getPrototypeOf(I)}return baY(k)};
_.Le.getAnyKey=function(I){for(var C in I)return C};
_.Le.getAnyValue=function(I){for(var C in I)return I[C]};
_.Le.getCount=function(I){var C=0,y;for(y in I)C++;return C};
_.Le.getKeys=baY;_.Le.getSuperClass=function(I){return(I=Object.getPrototypeOf(I.prototype))&&I.constructor};
_.Le.getValueByKeys=function(I,C){var y=_.Mz(C),k=y?C:arguments;for(y=y?0:1;y<k.length;y++){if(I==null)return;I=I[k[y]]}return I};
_.Le.getValues=function(I){var C=[],y=0,k;for(k in I)C[y++]=I[k];return C};
_.Le.isEmpty=function(I){for(var C in I)return!1;return!0};
_.Le.isImmutableView=function(I){return!!Object.isFrozen&&Object.isFrozen(I)};
_.Le.map=function(I,C,y){var k={},F;for(F in I)k[F]=C.call(y,I[F],F,I);return k};
_.Le.remove=function(I,C){var y;(y=C in I)&&delete I[C];return y};
_.Le.set=function(I,C,y){I[C]=y};
_.Le.setIfUndefined=function(I,C,y){return C in I?I[C]:I[C]=y};
_.Le.setWithReturnValueIfNotSet=function(I,C,y){if(C in I)return I[C];y=y();return I[C]=y};
_.Le.some=function(I,C,y){for(var k in I)if(C.call(y,I[k],k,I))return!0;return!1};
_.Le.transpose=function(I){var C={},y;for(y in I)C[I[y]]=y;return C};
_.Le.unsafeClone=fdI;var De=function(I,C,y,k,F){this.allowedElements=I;this.elementPolicies=C;this.allowedGlobalAttributes=y;this.globalAttributePolicies=k;this.globallyAllowedAttributePrefixes=F},KPw=function(I,C,y){y=I.elementPolicies.get(y);
return(y==null?0:y.has(C))?y.get(C):I.allowedGlobalAttributes.has(C)?{policyAction:1}:(y=I.globalAttributePolicies.get(C))?y:I.globallyAllowedAttributePrefixes&&[].concat(_.Py(I.globallyAllowedAttributePrefixes)).some(function(k){return C.indexOf(k)===0})?{policyAction:1}:{policyAction:0}};var Acm="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(" "),
guw=[["A",new Map([["href",{policyAction:2}]])],["AREA",new Map([["href",{policyAction:2}]])],["LINK",new Map([["href",{policyAction:5,conditions:new Map([["rel",new Set("alternate author bookmark canonical cite help icon license next prefetch dns-prefetch prerender preconnect preload prev search subresource".split(" "))]])}]])],["SOURCE",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["IMG",new Map([["src",{policyAction:5}],["srcset",{policyAction:6}]])],["VIDEO",new Map([["src",
{policyAction:5}]])],["AUDIO",new Map([["src",{policyAction:5}]])]],vub="title aria-atomic aria-autocomplete aria-busy aria-checked aria-current aria-disabled aria-dropeffect aria-expanded aria-haspopup aria-hidden aria-invalid aria-label aria-level aria-live aria-multiline aria-multiselectable aria-orientation aria-posinset aria-pressed aria-readonly aria-relevant aria-required aria-selected aria-setsize aria-sort aria-valuemax aria-valuemin aria-valuenow aria-valuetext alt align autocapitalize autocomplete autocorrect autofocus autoplay bgcolor border cellpadding cellspacing checked cite color cols colspan controls controlslist crossorigin datetime disabled download draggable enctype face formenctype frameborder height hreflang hidden ismap label lang loop max maxlength media minlength min multiple muted nonce open playsinline placeholder poster preload rel required reversed role rows rowspan selected shape size sizes slot span spellcheck start step summary translate type valign value width wrap itemscope itemtype itemid itemprop itemref".split(" "),
WPw=[["dir",{policyAction:3,conditions:Mj(function(){return new Map([["dir",new Set(["auto","ltr","rtl"])]])})}],
["async",{policyAction:3,conditions:Mj(function(){return new Map([["async",new Set(["async"])]])})}],
["loading",{policyAction:3,conditions:Mj(function(){return new Map([["loading",new Set(["eager","lazy"])]])})}],
["target",{policyAction:3,conditions:Mj(function(){return new Map([["target",new Set(["_self","_blank"])]])})}]],dq5=new De(new Set(Acm),new Map(guw),new Set(vub),new Map(WPw)),xqc=new De(new Set(Acm.concat(["BUTTON",
"INPUT"])),new Map(guw),new Set(Mj(function(){return vub.concat(["class","id","name"])})),new Map(Mj(function(){return WPw.concat([["style",
{policyAction:1}]])})));var qw5,mqu,BSY;qw5=function(I,C,y,k){this.JSC$7165_sanitizerTable=I;this.styleElementSanitizer=C;this.styleAttributeSanitizer=y;this.JSC$7165_resourceUrlPolicy=k;this.changes=[]};
_.Z5w=function(I,C){var y=document.implementation.createHTMLDocument("");I=mqu(I,C,y);y=y.body;y.appendChild(I);y=(new XMLSerializer).serializeToString(y);y=y.slice(y.indexOf(">")+1,y.lastIndexOf("</"));return NM(y)};
mqu=function(I,C,y){C=gbI(C,y);C=document.createTreeWalker(C,5,function(r){if(r.nodeType===3)r=1;else if(W7I(r))if(r=vbX(r),r===null)r=2;else{var w=I.JSC$7165_sanitizerTable;r=r!=="FORM"&&(w.allowedElements.has(r)||w.elementPolicies.has(r))?1:2}else r=2;return r});
for(var k=C.nextNode(),F=y.createDocumentFragment(),z=F;k!==null;){var c=void 0;if(k.nodeType===3)I.styleElementSanitizer&&z.nodeName==="STYLE"?(k=I.styleElementSanitizer(k.data),c=I.createTextNode(k)):c=I.createTextNode(k.data);else if(W7I(k))c=BSY(I,k,y);else throw Error("da");z.appendChild(c);if(k=C.firstChild())z=c;else for(;!(k=C.nextSibling())&&(k=C.parentNode());)z=z.parentNode}return F};
qw5.prototype.createTextNode=function(I){return document.createTextNode(I)};
BSY=function(I,C,y){var k,F=vbX(C);y=y.createElement(F);C=C.attributes;for(var z=_.T(C),c=z.next();!c.done;c=z.next()){var r=c.value;c=r.name;r=r.value;var w=KPw(I.JSC$7165_sanitizerTable,c,F);a:{if(k=w.conditions){k=_.T(k);for(var L=k.next();!L.done;L=k.next()){var D=_.T(L.value);L=D.next().value;D=D.next().value;var p=void 0;if((L=(p=C.getNamedItem(L))==null?void 0:p.value)&&!D.has(L)){k=!1;break a}}}k=!0}if(k)switch(w.policyAction){case 1:Hy(y,c,r);break;case 2:w=_.rTW(r);r=w!==void 0&&Ezc.indexOf(w.toLowerCase())!==
-1?r:"about:invalid#zClosurez";Hy(y,c,r);break;case 3:Hy(y,c,r.toLowerCase());break;case 4:I.styleAttributeSanitizer?(r=I.styleAttributeSanitizer(r),Hy(y,c,r)):Hy(y,c,r);break;case 5:I.JSC$7165_resourceUrlPolicy?(w={type:2,attributeName:c,elementName:F},r=A_H(r),(r=I.JSC$7165_resourceUrlPolicy(r,w))&&Hy(y,c,r.toString())):Hy(y,c,r);break;case 6:if(I.JSC$7165_resourceUrlPolicy){w={type:2,attributeName:c,elementName:F};k=[];r=_.T(r.split(","));for(L=r.next();!L.done;L=r.next())D=_.T(L.value.trim().split(/\s+/,
2)),L=D.next().value,D=D.next().value,k.push({url:L,descriptor:D});r={parts:[]};k=_.T(k);for(L=k.next();!L.done;L=k.next())L=L.value,D=A_H(L.url),(D=I.JSC$7165_resourceUrlPolicy(D,w))&&r.parts.push({url:D.toString(),descriptor:L.descriptor});Hy(y,c,dM9(r))}else Hy(y,c,r)}}return y};
_.Eu5=Mj(function(){return new qw5(dq5)});
_.hbd=Mj(function(){return new qw5(xqc)});var Uqc=function(){this.calledBuild=!1;this.JSC$7177_sanitizerTable=dq5},H58=function(){Uqc.apply(this,arguments)};
_.R(H58,Uqc);H58.prototype.build=function(){if(this.calledBuild)throw Error("ra");this.calledBuild=!0;return new qw5(this.JSC$7177_sanitizerTable,void 0,void 0,this.JSC$7177_resourceUrlPolicy)};var tem=/[^#]*/;var xF=function(I){try{return!!I&&I.location.href!=null&&jl(I,"foo")}catch(C){return!1}},O55=function(I){var C=Jc0;
if(C)for(var y in C)Object.prototype.hasOwnProperty.call(C,y)&&I(C[y],y,C)},aY8=function(){var I=[];
O55(function(C){I.push(C)});
return I},Jc0={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"},Mee=_.Pz(function(){return aY8()}),Cju=function(){var I=ISu("IFRAME"),
C={};
_.mn(Mee(),function(y){I.sandbox&&I.sandbox.supports&&I.sandbox.supports(y)&&(C[y]=!0)});
return C},ISu=function(I,C){C=C===void 0?document:C;
return C.createElement(String(I).toLowerCase())};var pQ=function(I){this.context=I};
pQ.prototype.isSupported=function(I){return(I==null?0:I.attributionEnabled)||(I==null?void 0:I.beaconMethod)==="POST"||(I==null?0:I.customHeaders)||(I==null?0:I.customBody)||(I==null?0:I.keepAlive)?!1:!iB(this.context)};
pQ.prototype.ping=function(){var I=this;return zA(_.wa.apply(0,arguments).map(function(C){try{var y=I.context.global,k=!1;k=k===void 0?!1:k;y.google_image_requests||(y.google_image_requests=[]);var F=ISu("IMG",y.document);k&&(F.attributionSrc="");F.src=C;y.google_image_requests.push(F);return!0}catch(z){return!1}}).every(function(C){return C}))};
pQ.prototype.pingWithHeadersAndBody=function(I,C,y){this.ping.apply(this,_.Py(_.wa.apply(3,arguments)))};var sL0=function(I){this.context=I};
sL0.prototype.isSupported=function(I){return oKq&&!iB(this.context)&&qCH(this.context)!==void 0&&!(I==null?0:I.attributionEnabled)&&(I==null?void 0:I.beaconMethod)!=="POST"&&!(I==null?0:I.customHeaders)&&!(I==null?0:I.customBody)};
sL0.prototype.makeBeacon=function(I,C){if(!this.isSupported(C))throw new TE;return new Qx(this.context,I)};
var oKq=!1,Qx=function(I,C){this.context=I;this.JSC$7199_urlWithoutToken=C;I=qCH(this.context);if(I===void 0)throw Error();this.wrappedBeacon=new I(yPd(this),{})},yPd=function(I){I=I.JSC$7199_urlWithoutToken;
return(I.slice(-1)[0]==="&"?I:I+"&")+"pbapi=1"};
Qx.prototype.deactivate=function(){this.wrappedBeacon.deactivate()};
Qx.prototype.sendNow=function(){this.wrappedBeacon.sendNow()};
Qx.prototype.setHeader=function(){};
_.H1.Object.defineProperties(Qx.prototype,{url:{configurable:!0,enumerable:!0,get:function(){return this.JSC$7199_urlWithoutToken},
set:function(I){this.JSC$7199_urlWithoutToken=I;this.wrappedBeacon.setURL(yPd(this))}},
method:{configurable:!0,enumerable:!0,get:function(){return"GET"},
set:function(I){if(I!=="GET")throw new TE;}},
isPending:{configurable:!0,enumerable:!0,get:function(){return this.wrappedBeacon.pending}}});var kMb=function(I){this.context=I};
kMb.prototype.isSupported=function(I){if((I==null?0:I.attributionEnabled)||(I==null?void 0:I.beaconMethod)==="GET"||(I==null?0:I.customHeaders)||(I==null?0:I.customBody)||(I==null?0:I.keepAlive))return!1;var C;return!iB(this.context)&&((C=this.context.global.navigator)==null?void 0:C.sendBeacon)!==void 0};
kMb.prototype.ping=function(){var I=this;return zA(_.wa.apply(0,arguments).map(function(C){var y;return(y=I.context.global.navigator)==null?void 0:y.sendBeacon(C)}).every(function(C){return C}))};
kMb.prototype.pingWithHeadersAndBody=function(I,C,y){this.ping.apply(this,_.Py(_.wa.apply(3,arguments)))};var Ce=function(I){this.value=I},vi=function(I,C){return zA(I.value).pipe(ML(C))},mw=new Ce(!1),PAm=new Ce(!0);var RE=function(I){this.value=I;this.releasedSubject=new Oj};
RE.prototype.release=function(){this.releasedSubject.next();this.releasedSubject.complete();this.value=void 0};
_.H1.Object.defineProperties(RE.prototype,{ref:{configurable:!0,enumerable:!0,get:function(){return this.value}},
JSC$7212_released:{configurable:!0,enumerable:!0,get:function(){return this.releasedSubject}}});var IRt=["FRAME","IMG","IFRAME"],HaK=/^[01](px)?$/,MOz=function(){this.pendingImagesBlockLoad=this.crossDomainLoadedDefault=!1},adt=function(){var I=new MOz;
I.crossDomainLoadedDefault=!0;I.pendingImagesBlockLoad=!0;return I};var FLe=function(I,C){var y=u4I(I);if(y)if(y.onCreativeLoad)y.onCreativeLoad(C);else{var k=C?[C]:[],F=function(z){for(var c=0;c<k.length;++c)try{k[c](1,z)}catch(r){}k={push:function(r){r(1,z)}}};
y.onCreativeLoad=function(z){k.push(z)};
y.setAttribute("data-creative-load-listener","");y.addEventListener("creativeLoad",function(z){F(z.detail)});
_.sF.addEventListener("message",function(z){FgI(y,F,z)})}};var NY=function(I,C){var y=this;this.global=I;this.parentContext=C;this.JSC$7223_onVisibilityChange=this.document?j1(zA(!0),NL(this.document,"visibilitychange")).pipe(bI(this.parentContext.performanceMonitor,748),iI(function(){return y.getVisibilityState()}),AM()):zA("visible");
this.document?NL(this.document,"DOMContentLoaded").pipe(bI(this.parentContext.performanceMonitor,739),S1(1)):zA(hEY("DOMContentLoaded"))},nqm=function(I){return I.document!==null&&I.document.visibilityState!==void 0};
NY.prototype.getVisibilityState=function(){return this.document?this.document.visibilityState:"visible"};
NY.prototype.querySelector=function(I){return this.document?this.document.querySelector(I):null};
NY.prototype.querySelectorAll=function(I){return this.document?_.tX(this.document.querySelectorAll(I)):[]};
NY.prototype.elementFromPoint=function(I,C){if(!this.document||this.document===null||typeof this.document.elementFromPoint!=="function")return null;I=this.document.elementFromPoint(I,C);return I===null?null:new RE(I)};
var ykH=function(I,C,y){y=y===void 0?!1:y;if(C.ref===void 0||!I.document)return zA(C).pipe(bI(I.parentContext.performanceMonitor,749));var k=new d4(1),F=function(){k.next(C)};
y||FLe(C.ref,F);CIs(C.ref,F);return k.pipe(bI(I.parentContext.performanceMonitor,749),S1(1))};
_.H1.Object.defineProperties(NY.prototype,{document:{configurable:!0,enumerable:!0,get:function(){return jl(this.global,"document")?this.global.document||null:null}}});var zkI=_.hu(["https://www.googleadservices.com/pagead/managed/js/activeview/","/reach_worklet.html"]),T4z=_.hu(["./reach_worklet.js"]),cMt=_.hu(["./reach_worklet.js"]),uRS=_.hu(["./reach_worklet.html"]),zYc=_.hu(["./reach_worklet.js"]),Tyw=_.hu(["./reach_worklet.js"]);_.tM(uRS);_.tM(zYc);_.tM(Tyw);var fe={left:0,top:0,width:0,height:0};var cP0,eYq,rPq,i8e,tq,nKq,Pje,LLu,QLc,NyY,VBd;cP0=function(I,C,y,k,F,z,c){var r="";I&&(r+=I+":");y&&(r+="//",C&&(r+=C+"@"),r+=y,k&&(r+=":"+k));F&&(r+=F);z&&(r+="?"+z);c&&(r+="#"+c);return r};
eYq=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");_.U3=function(I){return I.match(eYq)};
_.$H=function(I,C){return I?C?decodeURI(I):decodeURIComponent(I):I};
rPq=function(I){I=_.U3(I)[1]||null;!I&&_.sF.self&&_.sF.self.location&&(I=_.sF.self.location.protocol.slice(0,-1));return I?I.toLowerCase():""};
_.H5=function(I){return _.$H(_.U3(I)[3]||null,!0)};
_.Tl=function(I){return _.$H(_.U3(I)[5]||null,!0)};
_.nwH=function(I){var C=I.indexOf("#");return C<0?null:I.slice(C+1)};
i8e=function(I){I=_.U3(I);return cP0(I[1],I[2],I[3],I[4])};
_.wRb=function(I){I=_.U3(I);return cP0(I[1],null,I[3],I[4])};
_.ZC=function(I){I=_.U3(I);return cP0(null,null,null,null,I[5],I[6],I[7])};
_.Oh=function(I){var C=I.indexOf("#");return C<0?I:I.slice(0,C)};
tq=function(I,C){I=_.U3(I);C=_.U3(C);return I[3]==C[3]&&I[1]==C[1]&&I[4]==C[4]};
nKq=function(I,C){if(I){I=I.split("&");for(var y=0;y<I.length;y++){var k=I[y].indexOf("="),F=null;if(k>=0){var z=I[y].substring(0,k);F=I[y].substring(k+1)}else z=I[y];C(z,F?O3(F):"")}}};
Pje=function(I){var C=I.indexOf("#");C<0&&(C=I.length);var y=I.indexOf("?");if(y<0||y>C){y=C;var k=""}else k=I.substring(y+1,C);return[I.slice(0,y),k,I.slice(C)]};
LLu=function(I,C){return C?I?I+"&"+C:C:I};
_.DKd=function(I,C){if(!C)return I;I=Pje(I);I[1]=LLu(I[1],C);return I[0]+(I[1]?"?"+I[1]:"")+I[2]};
_.pR5=function(I,C,y){if(Array.isArray(C))for(var k=0;k<C.length;k++)_.pR5(I,String(C[k]),y);else C!=null&&y.push(I+(C===""?"":"="+_.q$(C)))};
_.e7=function(I){var C=[],y;for(y in I)_.pR5(y,I[y],C);return C.join("&")};
_.hq=function(I,C){C=_.e7(C);return _.DKd(I,C)};
_.Vx=function(I,C,y){y=y!=null?"="+_.q$(y):"";return _.DKd(I,C+y)};
QLc=function(I,C,y,k){for(var F=y.length;(C=I.indexOf(y,C))>=0&&C<k;){var z=I.charCodeAt(C-1);if(z==38||z==63)if(z=I.charCodeAt(C+F),!z||z==61||z==38||z==35)return C;C+=F+1}return-1};
NyY=/#|$/;_.v2=function(I,C){var y=I.search(NyY),k=QLc(I,0,C,y);if(k<0)return null;var F=I.indexOf("&",k);if(F<0||F>y)F=y;k+=C.length+1;return O3(I.slice(k,F!==-1?F:0))};
VBd=/[?&]($|#)/;_.MJ=function(I,C){for(var y=I.search(NyY),k=0,F,z=[];(F=QLc(I,k,C,y))>=0;)z.push(I.substring(k,F)),k=Math.min(I.indexOf("&",F)+1||y,y);z.push(I.slice(k));return z.join("").replace(VBd,"$1")};
_.gT=function(I,C,y){return _.Vx(_.MJ(I,C),C,y)};
_.jLd=function(I){var C=Pje(window.location.href),y=C[1],k=[];y&&y.split("&").forEach(function(F){var z=F.indexOf("=");z=z>=0?F.slice(0,z):F;I.hasOwnProperty(z)||k.push(F)});
C[1]=LLu(k.join("&"),_.e7(I));return C[0]+(C[1]?"?"+C[1]:"")+C[2]};var jZ;_.St=function(I,C,y){return Math.min(Math.max(I,C),y)};
jZ=function(I,C,y){return I+y*(C-I)};_.Q6=function(I,C){this.x=I!==void 0?I:0;this.y=C!==void 0?C:0};
_.u=_.Q6.prototype;_.u.clone=function(){return new _.Q6(this.x,this.y)};
_.u.equals=function(I){return I instanceof _.Q6&&(this==I?!0:this&&I?this.x==I.x&&this.y==I.y:!1)};
_.u.ceil=function(){this.x=Math.ceil(this.x);this.y=Math.ceil(this.y);return this};
_.u.floor=function(){this.x=Math.floor(this.x);this.y=Math.floor(this.y);return this};
_.u.round=function(){this.x=Math.round(this.x);this.y=Math.round(this.y);return this};
_.u.translate=function(I,C){I instanceof _.Q6?(this.x+=I.x,this.y+=I.y):(this.x+=Number(I),typeof C==="number"&&(this.y+=C));return this};
_.u.scale=function(I,C){this.x*=I;this.y*=typeof C==="number"?C:I;return this};_.y6=function(I,C){this.width=I;this.height=C};
_.u=_.y6.prototype;_.u.clone=function(){return new _.y6(this.width,this.height)};
_.u.area=function(){return this.width*this.height};
_.u.aspectRatio=function(){return this.width/this.height};
_.u.isEmpty=function(){return!this.area()};
_.u.ceil=function(){this.width=Math.ceil(this.width);this.height=Math.ceil(this.height);return this};
_.u.floor=function(){this.width=Math.floor(this.width);this.height=Math.floor(this.height);return this};
_.u.round=function(){this.width=Math.round(this.width);this.height=Math.round(this.height);return this};
_.u.scale=function(I,C){this.width*=I;this.height*=typeof C==="number"?C:I;return this};var A3=function(I,C){this.stringConstValueWithSecurityContract__googStringSecurityPrivate_=I===TYX&&C||"";this.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_=lSc};
A3.prototype.toString=function(){return this.stringConstValueWithSecurityContract__googStringSecurityPrivate_};
var XRP=function(I){return I instanceof A3&&I.constructor===A3&&I.STRING_CONST_TYPE_MARKER__GOOG_STRING_SECURITY_PRIVATE_===lSc?I.stringConstValueWithSecurityContract__googStringSecurityPrivate_:"type_error:Const"},lSc={},TYX={};
new A3(TYX,"");var u3,rQ,Xh,$Ku,YHq,b80,Nb,fSY,KLm,SHq,Yg,APu,mKb,qHY,xKY,Z8Y,Byc,EKw,hYm,RMI,UK8,tBS,JPb,H8S,lB;u3=function(I){return I?new lB(_.V6(I)):XMX||(XMX=new lB)};
_.HP=function(I,C){return typeof C==="string"?I.getElementById(C):C};
rQ=function(I,C){return(C||document).getElementsByTagName(String(I))};
_.RYw=function(I){return $Ku("yt-formatted-string","paper-input-input",I)};
Xh=function(I,C,y,k){I=k||I;return(C=C&&C!="*"?String(C).toUpperCase():"")||y?I.querySelectorAll(C+(y?"."+y:"")):I.getElementsByTagName("*")};
$Ku=function(I,C,y){var k=document,F=I&&I!="*"?String(I).toUpperCase():"";return F||C?(y||k).querySelector(F+(C?"."+C:"")):Xh(k,I,C,y)[0]||null};
YHq=function(I,C){_.Le.forEach(C,function(y,k){k=="style"?I.style.cssText=y:k=="class"?I.className=y:k=="for"?I.htmlFor=y:b80.hasOwnProperty(k)?I.setAttribute(b80[k],y):_.FO(k,"aria-")||_.FO(k,"data-")?I.setAttribute(k,y):I[k]=y})};
b80={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"};_.kF=function(I){I=(I||window).document;I=I.compatMode=="CSS1Compat"?I.documentElement:I.body;return new _.y6(I.clientWidth,I.clientHeight)};
_.GM5=function(I){var C=_.$g(I);I=I.defaultView;return new _.Q6(I.pageXOffset||C.scrollLeft,I.pageYOffset||C.scrollTop)};
_.$g=function(I){return I.scrollingElement?I.scrollingElement:_.z6||I.compatMode!="CSS1Compat"?I.body||I.documentElement:I.documentElement};
Nb=function(I){return I?I.defaultView:window};
_.Rd=function(I,C,y){return fSY(document,arguments)};
fSY=function(I,C){var y=C[1],k=SHq(I,String(C[0]));y&&(typeof y==="string"?k.className=y:Array.isArray(y)?k.className=y.join(" "):YHq(k,y));C.length>2&&KLm(I,k,C,2);return k};
KLm=function(I,C,y,k){function F(r){r&&C.appendChild(typeof r==="string"?I.createTextNode(r):r)}
for(;k<y.length;k++){var z=y[k];if(!_.Mz(z)||_.sw(z)&&z.nodeType>0)F(z);else{a:{if(z&&typeof z.length=="number"){if(_.sw(z)){var c=typeof z.item=="function"||typeof z.item=="string";break a}if(typeof z==="function"){c=typeof z.item=="function";break a}}c=!1}_.mn(c?_.tX(z):z,F)}}};
_.c2=function(I){return SHq(document,I)};
SHq=function(I,C){C=String(C);I.contentType==="application/xhtml+xml"&&(C=C.toLowerCase());return I.createElement(C)};
_.bB=function(){return document.createTextNode("\n")};
Yg=function(I){if(I.nodeType!=1)return!1;switch(I.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};
APu=function(I,C){KLm(_.V6(I),I,arguments,1)};
_.GE=function(I){for(var C;C=I.firstChild;)I.removeChild(C)};
_.fQ=function(I,C){C.parentNode&&C.parentNode.insertBefore(I,C)};
_.SZ=function(I,C){C.parentNode&&C.parentNode.insertBefore(I,C.nextSibling)};
_.ey=function(I){return I&&I.parentNode?I.parentNode.removeChild(I):null};
_.gK5=function(I,C){var y=C.parentNode;y&&y.replaceChild(I,C)};
_.vK0=function(I){var C,y=I.parentNode;if(y&&y.nodeType!=11)if(I.removeNode)I.removeNode(!1);else{for(;C=I.firstChild;)y.insertBefore(C,I);_.ey(I)}};
_.KQ=function(I){return I.children!=void 0?I.children:Array.prototype.filter.call(I.childNodes,function(C){return C.nodeType==1})};
_.dK0=function(I){return I.nextElementSibling!==void 0?I.nextElementSibling:_.WLS(I.nextSibling,!0)};
_.WLS=function(I,C){for(;I&&I.nodeType!=1;)I=C?I.nextSibling:I.previousSibling;return I};
_.tz=function(I){return _.sw(I)&&I.nodeType==1};
_.gQ=function(I,C){if(!I||!C)return!1;if(I.contains&&C.nodeType==1)return I==C||I.contains(C);if(typeof I.compareDocumentPosition!="undefined")return I==C||!!(I.compareDocumentPosition(C)&16);for(;C&&I!=C;)C=C.parentNode;return C==I};
mKb=function(I,C){if(I==C)return 0;if(I.compareDocumentPosition)return I.compareDocumentPosition(C)&2?1:-1;if("sourceIndex"in I||I.parentNode&&"sourceIndex"in I.parentNode){var y=I.nodeType==1,k=C.nodeType==1;if(y&&k)return I.sourceIndex-C.sourceIndex;var F=I.parentNode,z=C.parentNode;return F==z?xKY(I,C):!y&&_.gQ(F,C)?-1*qHY(I,C):!k&&_.gQ(z,I)?qHY(C,I):(y?I.sourceIndex:F.sourceIndex)-(k?C.sourceIndex:z.sourceIndex)}k=_.V6(I);y=k.createRange();y.selectNode(I);y.collapse(!0);I=k.createRange();I.selectNode(C);
I.collapse(!0);return y.compareBoundaryPoints(_.sF.Range.START_TO_END,I)};
qHY=function(I,C){var y=I.parentNode;if(y==C)return-1;for(;C.parentNode!=y;)C=C.parentNode;return xKY(C,I)};
xKY=function(I,C){for(;C=C.previousSibling;)if(C==I)return-1;return 1};
Z8Y=function(I){var C,y=arguments.length;if(!y)return null;if(y==1)return arguments[0];var k=[],F=Infinity;for(C=0;C<y;C++){for(var z=[],c=arguments[C];c;)z.unshift(c),c=c.parentNode;k.push(z);F=Math.min(F,z.length)}z=null;for(C=0;C<F;C++){c=k[0][C];for(var r=1;r<y;r++)if(c!=k[r][C])return z;z=c}return z};
_.V6=function(I){return I.nodeType==9?I:I.ownerDocument||I.document};
Byc=function(I){return I.contentDocument||I.contentWindow.document};
_.Ah=function(I,C){if("textContent"in I)I.textContent=C;else if(I.nodeType==3)I.data=String(C);else if(I.firstChild&&I.firstChild.nodeType==3){for(;I.lastChild!=I.firstChild;)I.removeChild(I.lastChild);I.firstChild.data=String(C)}else _.GE(I),I.appendChild(_.V6(I).createTextNode(String(C)))};
EKw={SCRIPT:1,STYLE:1,HEAD:1,IFRAME:1,OBJECT:1};hYm={IMG:" ",BR:"\n"};RMI=function(I){var C;I.tagName=="A"&&I.hasAttribute("href")||I.tagName=="INPUT"||I.tagName=="TEXTAREA"||I.tagName=="SELECT"||I.tagName=="BUTTON"?C=!I.disabled&&(!I.hasAttribute("tabindex")||UK8(I)):C=I.hasAttribute("tabindex")&&UK8(I);return C};
UK8=function(I){I=I.tabIndex;return typeof I==="number"&&I>=0&&I<32768};
tBS=function(I){var C=[];H8S(I,C,!0);I=C.join("");I=I.replace(/ \xAD /g," ").replace(/\xAD/g,"");I=I.replace(/\u200B/g,"");I=I.replace(/ +/g," ");I!=" "&&(I=I.replace(/^\s*/,""));return I};
JPb=function(I){var C=[];H8S(I,C,!1);return C.join("")};
H8S=function(I,C,y){if(!(I.nodeName in EKw))if(I.nodeType==3)y?C.push(String(I.nodeValue).replace(/(\r\n|\r|\n)/g,"")):C.push(I.nodeValue);else if(I.nodeName in hYm)C.push(hYm[I.nodeName]);else for(I=I.firstChild;I;)H8S(I,C,y),I=I.nextSibling};
_.O8b=function(I,C,y){if(!C&&!y)return null;var k=C?String(C).toUpperCase():null;return _.$F(I,function(F){return(!k||F.nodeName==k)&&(!y||typeof F.className==="string"&&_.qz(F.className.split(/\s+/),y))},!0)};
_.$F=function(I,C,y){I&&!y&&(I=I.parentNode);for(y=0;I;){if(C(I))return I;I=I.parentNode;y++}return null};
lB=function(I){this.JSC$7241_document_=I||_.sF.document||document};
_.u=lB.prototype;_.u.getElement=function(I){return _.HP(this.JSC$7241_document_,I)};
_.u.$=lB.prototype.getElement;_.u.getElementsByTagName=function(I,C){return(C||this.JSC$7241_document_).getElementsByTagName(String(I))};
_.u.getElementsByTagNameAndClass=function(I,C,y){return Xh(this.JSC$7241_document_,I,C,y)};
_.u.$$=lB.prototype.getElementsByTagNameAndClass;_.u.setProperties=YHq;_.u.JSC$7243_createDom=function(I,C,y){return fSY(this.JSC$7241_document_,arguments)};
_.u.createElement=function(I){return SHq(this.JSC$7241_document_,I)};
_.u.createTextNode=function(I){return this.JSC$7241_document_.createTextNode(String(I))};
_.u.getWindow=function(){return this.JSC$7241_document_.defaultView};
var FJ=function(I){return _.GM5(I.JSC$7241_document_)};
_.u=lB.prototype;_.u.appendChild=function(I,C){I.appendChild(C)};
_.u.append=APu;_.u.canHaveChildren=Yg;_.u.removeNode=_.ey;_.u.getChildren=_.KQ;_.u.contains=_.gQ;_.u=oE.prototype;_.u.getWidth=function(){return this.right-this.left};
_.u.getHeight=function(){return this.bottom-this.top};
_.u.clone=function(){return new oE(this.top,this.right,this.bottom,this.left)};
_.u.contains=function(I){return this&&I?I instanceof oE?I.left>=this.left&&I.right<=this.right&&I.top>=this.top&&I.bottom<=this.bottom:I.x>=this.left&&I.x<=this.right&&I.y>=this.top&&I.y<=this.bottom:!1};
_.u.expand=function(I,C,y,k){_.sw(I)?(this.top-=I.top,this.right+=I.right,this.bottom+=I.bottom,this.left-=I.left):(this.top-=I,this.right+=Number(C),this.bottom+=Number(y),this.left-=Number(k));return this};
_.u.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};
_.u.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};
_.u.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};
_.u.translate=function(I,C){I instanceof _.Q6?(this.left+=I.x,this.right+=I.x,this.top+=I.y,this.bottom+=I.y):(this.left+=I,this.right+=I,typeof C==="number"&&(this.top+=C,this.bottom+=C));return this};
_.u.scale=function(I,C){C=typeof C==="number"?C:I;this.left*=I;this.right*=I;this.top*=C;this.bottom*=C;return this};var GAY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(GAY,_.GR);GAY.prototype.getVersion=function(){return _.b4(this,2)};var Yjs=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Yjs,_.GR);var jIW=function(I,C){return _.zT(I,2,C)},b1I=function(I,C){return _.zT(I,3,C)};
Yjs.prototype.getModel=function(){return _.b4(this,4)};
var XyI=function(I,C){return _.zT(I,4,C)},V1I=function(I,C){return _.zT(I,5,C)},Rks=function(I,C){return _.zT(I,9,C)},N4O=function(I,C){return Qv(I,10,C)},QIY=function(I,C){return _.Mb(I,11,C)},lRm=function(I,C){return _.zT(I,1,C)},$Lm=function(I,C){return _.Mb(I,7,C)};var DLI="platform platformVersion architecture model uaFullVersion bitness fullVersionList wow64".split(" ");var qb=function(I,C,y,k){I=I===void 0?window:I;C=C===void 0?null:C;y=y===void 0?new $zu:y;k=k===void 0?ek9():k;nuY.call(this);var F=this;this.global=I;this.debugChannel=C;this.performanceMonitor=y;this.onPageHide=QX(function(){return NL(F.global,"pagehide")}).pipe(bI(this.performanceMonitor,941));
this.onLoad=QX(function(){return NL(F.global,"load")}).pipe(bI(this.performanceMonitor,738),S1(1));
this.onResize=QX(function(){return NL(F.global,"resize")}).pipe(bI(this.performanceMonitor,741));
this.onMessage=QX(function(){return NL(F.global,"message")}).pipe(bI(this.performanceMonitor,740));
this.document=new NY(this.global,this);this.timeProvider=new NSb(new jwd(this.intrinsicFunctionNamespace,this.performanceMonitor),new Vew(this.intrinsicFunctionNamespace,this.performanceMonitor));this.beaconFactory=new Dqw(new Xm5(this),new sL0(this),new cz(this,new b55(this)),new cz(this,new kMb(this)),new cz(this,new pQ(this)))};
_.R(qb,nuY);var iB=function(I){var C=I.global;return!!I.global.HTMLFencedFrameElement&&!!C.fence&&typeof C.fence.reportEvent==="function"};
_.u=qb.prototype;_.u.reportFencedFrameEvent=function(I){iB(this)&&this.global.fence.reportEvent(I)};
_.u.getOnBackgrounded=function(){return this.onPageHide.pipe(bI(this.performanceMonitor,942),ML(this.queue),iI(function(){}))};
_.u.postMessage=function(I,C,y){y=y===void 0?[]:y;this.global.postMessage(I,C,y)};
_.u.getWidth=function(){return xF(this.global)?this.global.width:0};
_.u.getHeight=function(){return xF(this.global)?this.global.height:0};
_.u.isMobile=function(){return G0d()||fYq()};
var b3=function(I,C){try{var y=n5W(C,I.global,I.isMobile());return{left:y.left,top:y.top,width:y.getWidth(),height:y.getHeight()}}catch(k){return fe}};
qb.prototype.validate=function(){var I=this.beaconFactory.isSupported()||iB(this);return this.global&&this.timeProvider.available()&&I};
var ZaH=function(I){return(I=SjI(I.global))?OC(I):null};
_.H1.Object.defineProperties(qb.prototype,{sharedStorage:{configurable:!0,enumerable:!0,get:function(){try{return this.global.sharedStorage}catch(I){}}},
intrinsicFunctionNamespace:{configurable:!0,enumerable:!0,get:function(){return window}},
inCrossDomainIframe:{configurable:!0,enumerable:!0,get:function(){return!xF(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}}});_.aSb=!_.F8&&!_.Yz();var Lc9=function(I){return I};var p2W=function(I){return I.pipe(X4(function(C){var y=C.endOfSessionReason;var k;return((k=C.viewable)==null?void 0:k.extrapolateToNow().value)||y!=void 0}),S1(1),GA())};var dLX=function(){this.startTime=Math.floor(Date.now()/1E3-1704067200);this.sequenceNumber=0},xL9=function(I){var C=I.sequenceNumber.toString(10).padStart(2,"0");
C=""+I.startTime+C;I.sequenceNumber<99&&I.sequenceNumber++;return C};var w2z=h_(Ej(function(I){return I.endOfSessionReason===void 0}),iI(function(I){return Object.assign({},I,{timestamps:el(I)})}),X4(function(I){var C=I.viewable;
I=I.timestamps;var y;return(y=C==null?void 0:C.extrapolateUsingTimestampMap(I).value)!=null?y:!1}),iI(function(I){var C=I.beaconFactory;
var y=I.timestampedExposureHistory;var k=I.timeOnScreen;var F=I.binaryContext;I=I.timestamps;if(C===void 0||y===void 0||k===void 0||F===void 0)return!1;if(k.extrapolateUsingTimestampMap(I).value.every(function(z){return z>=0}))return!0;
y=y.map(function(z){return z.timestamp+":"+z.value}).join(",");
k=r0({bin:F,tos:k},I);C.makeBeacon("https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=dv&"+k+("&eh="+y)).sendNow();return!0}),Ej(function(I){return!I}),GA());var mLz=function(I){return{id:I.pingId,mcvt:I.maxConsecutiveViewTime,p:I.creativePosition,asp:I.adSpeedPosition,tm:I.totalMeasurementTime,tu:I.totalUnviewedTime,mtos:I.maxTimeOnScreen,tos:I.timeOnScreen,v:I.binaryVersion,bin:I.binaryContext,avms:I.measurementStrategy,bs:I.browserSize,mc:I.maximumExposure,"if":I.crossDomainIframeState,vu:I.delayedImpressionJsState,app:I.inApp,mse:I.mraidError,mtop:I.mraidSituation,itpl:I.injectedTemplateId,adk:I.adKey,exk:I.awbidKey,rs:I.requestSource,la:I.isLargeAd,
cr:I.isContentRecommendationAd,uach:I.userAgentClientHints,vs:I.viewState,r:I.reasonCode,pay:I.hasCpmavUrl,co:I.clientPingOrderCounter,rst:I.adRenderStartTime,rpt:I.adRenderPeriodTime,isd:I.initialScrollDepth,lsd:I.loadedScrollDepth,context:I.errorContext,msg:I.errorMessage,stack:I.errorStack,name:I.errorName,ec:I.hasElementChanged,sfr:I.strategyFailureReasons,met:I.creativeSearchResult,wmsd:I.webMeasurementStartDiagnostic,pv:I.pageVisible,epv:I.eosPageVisible,pbe:I.inStatefulBeaconExperiment,fle:I.inFetchLaterBeaconExperiment,
vae:I.inViewableAttributionExperiment,spb:I.supportsPendingBeacon,sfl:I.supportsFetchLater,ffslot:I.isFencedFrameSlotTurtlex,reach:I.sharedStorageReachMode,io2:I.v2VisibilityBitVector,rxdbg:I.rxDebugger,omida:I.omidAppId,omidp:I.omidPartner,omidpv:I.omidPartnerVersion,omidor:I.omidOcclusionReasons,omidv:I.omidVersion,omids:I.omidSessionType,omidam:I.omidAccessMode,omidct:I.omidCreativeType,omidia:I.omidInApp,omiddc:I.omidDeviceCategory,omidlat:I.omidLastActivity,omiddit:I.omidDeviceIdleTime,qid:I.errorEscapedQueryId}};var D9F=function(I){var C=[];return I.pipe(iI(function(y){var k=y.beaconFactory,F=y.fetchBeaconFactory,z=y.timeOnScreen,c=y.timeOnScreenUrlPrefixes,r=y.payloadMapper,w=y.timeOnScreenPingId,L=y.timeOnScreenReason,D=y.urlSerializer,p=y.viewable,Q=y.hasImpressionFired,X=y.inStatefulBeaconExperiment,b=y.supportsPendingBeacon,S=y.supportsFetchLater,A=y.turtlexReportEventData;if(!y.geometryMeasurable||!Q||y.maxTimeOnScreen===void 0||z===void 0||c===void 0||r===void 0||w===void 0||D===void 0||k===void 0)return!1;
if(y.isTurtlex){if(L===void 0)return!1;c=y.reportFencedFrameEvent;if(!c)return!1;c({eventType:"active-view-time-on-screen",eventData:A!=null?A:"",destination:["buyer"]});return!0}if(!(X||S||L))return!1;A=el(y);var x;p=(x=p==null?void 0:p.extrapolateUsingTimestampMap(A).value)!=null?x:!1;x=D(Object.assign({},y,{pingId:w,viewState:p?4:3,reasonCode:L!=null?L:"u",payloadMapper:r,urlPrefixes:c}),A);if(X){for(;C.length>c.length;)y=void 0,(y=C.shift())==null||y.deactivate();x.forEach(function(t,U){U>=C.length?
C.push(k.makeBeacon(t)):C[U].url=t});
return b&&F&&L!==void 0?(x.forEach(function(t){F.makeBeacon(t).sendNow()}),!0):L!==void 0}if(b&&F&&L!==void 0)return x.forEach(function(t){F.makeBeacon(t).sendNow()}),!0;
if(S&&F){for(;C.length>c.length;)b=void 0,(b=C.shift())==null||b.deactivate();var B=D(Object.assign({},y,{pingId:w,viewState:p?4:3,reasonCode:L!=null?L:"u",payloadMapper:r,urlPrefixes:["https://pagead2.googlesyndication.com/pagead/gen_204?id=av-js&type=fetch&later&lidartos"]}),A)[0];x.forEach(function(t,U){U>=C.length?C.push(k.makeBeacon(B,{endOfSession:!0})):C[U].url=B});
return L!==void 0?(x.forEach(function(t){F.makeBeacon(t).sendNow()}),!0):L!==void 0}return L!==void 0?(x.forEach(function(t){k.makeBeacon(t).sendNow()}),!0):!1}),Ej(function(y){return!y}),GA())};var Q1F=h_(X4(function(I){return I.immediateUrlPrefixes!==void 0&&I.payloadMapper!==void 0&&I.urlSerializer!==void 0&&I.inferredPingId!==void 0&&I.beaconFactory!==void 0}),X4(function(I){return JMz(I)!==null}),H1m(function(I){return I.activeViewUnmeasurableEvent},function(I){return I.emit}),iI(function(I){if(I.isTurtlex){var C=I.reportFencedFrameEvent;
if(C){var y;C({eventType:"active-view-unmeasurable",eventData:(y=I.turtlexReportEventData)!=null?y:"",destination:["buyer"]})}}else{y=void 0;var k=JMz(I);if(k==="x"){var F,z=(F=I.geometricMeasurementErrors)!=null?F:I.contextValidationErrors;z&&(C=z.stack,y=z.message)}I.urlSerializer(Object.assign({},I,{urlPrefixes:I.immediateUrlPrefixes,payloadMapper:I.payloadMapper,pingId:I.inferredPingId,viewState:2,reasonCode:k,errorMessage:y,errorStack:C}),el(I)).forEach(function(c){I.beaconFactory.makeBeacon(c).sendNow()})}}),
S1(1),GA());var O1X=/(?:\[|%5B)([a-zA-Z0-9_]+)(?:\]|%5D)/g;var iLK=h_(X4(function(I){return I.payloadMapper!==void 0&&I.immediateUrlPrefixes!==void 0&&I.urlSerializer!==void 0&&I.inferredPingId!==void 0&&I.beaconFactory!==void 0}),iI(function(I){return Object.assign({},I,{timestamps:el(I)})}),X4(function(I){var C=I.viewable;
var y=I.hasImpressionFired;I=I.timestamps;var k;return!!y&&((k=C==null?void 0:C.extrapolateUsingTimestampMap(I).value)!=null?k:!1)}),H1m(function(I){return I.activeViewViewableEvent},function(I){return I.emit}),iI(function(I){var C=I.beaconFactory,y=I.turtlexReportEventData;
if(I.isTurtlex){var k=I.reportFencedFrameEvent;if(!k)return!1;k({eventType:"active-view-viewable",eventData:y!=null?y:"",destination:["buyer"]});return!0}y=I.urlSerializer(Object.assign({},I,{urlPrefixes:I.immediateUrlPrefixes,payloadMapper:I.payloadMapper,pingId:I.inferredPingId,viewState:4,reasonCode:"v"}),I.timestamps);(k=I.cpmavUrls)&&k.length>0&&I.viewUrlSerializer&&I.viewUrlSerializer(k,I).forEach(function(F){C.makeBeacon(F).sendNow()});
(k=I.viewableRelayUrls)&&k.length>0&&I.viewUrlSerializer&&I.viewUrlSerializer(k,I).forEach(function(F){C.makeBeacon(F).sendNow()});
y.forEach(function(F){C.makeBeacon(F,{attributionEnabled:I.isViewableAttributionEnabled}).sendNow()});
return!0}),Ej(function(I){return!I}),GA());var dbY=iI(function(I){return[I.value.topWindowViewportExternalGeometry.width,I.value.topWindowViewportExternalGeometry.height]});var YF=function(I,C){this.callback=I;this.options=C;this.intersectionObserverV2=this.intersectionObserverV1=null},N0Y=function(I,C){C?I.intersectionObserverV2||(C=Object.assign({},I.options,{delay:100,
trackVisibility:!0}),I.intersectionObserverV2=new IntersectionObserver(I.callback,C)):I.intersectionObserverV1||(I.intersectionObserverV1=new IntersectionObserver(I.callback,I.options))},MBw=function(I,C){I=C?I.intersectionObserverV2:I.intersectionObserverV1;
if(!I)throw new P8w;return I};
YF.prototype.observe=function(I,C){MBw(this,I).observe(C)};
YF.prototype.unobserve=function(I,C){MBw(this,I).unobserve(C)};
YF.prototype.disconnect=function(I){MBw(this,I).disconnect()};
YF.prototype.takeRecords=function(I){return MBw(this,I).takeRecords()};var XJ={viewportGeometrySourceName:"ns",exposedViewportLocalGeometry:fe,topWindowViewportExternalGeometry:fe,measurementRequests:new Oj,elementGeometrySourceName:"ns",elementGeometry:fe,intersectionGeometry:fe,viewportLocalAppOffset:{x:0,y:0}};var gs=function(I,C,y,k){this.left=I;this.top=C;this.width=y;this.height=k};
_.u=gs.prototype;_.u.clone=function(){return new gs(this.left,this.top,this.width,this.height)};
_.u.boundingRect=function(I){var C=Math.max(this.left+this.width,I.left+I.width),y=Math.max(this.top+this.height,I.top+I.height);this.left=Math.min(this.left,I.left);this.top=Math.min(this.top,I.top);this.width=C-this.left;this.height=y-this.top};
_.u.contains=function(I){return I instanceof _.Q6?I.x>=this.left&&I.x<=this.left+this.width&&I.y>=this.top&&I.y<=this.top+this.height:this.left<=I.left&&this.left+this.width>=I.left+I.width&&this.top<=I.top&&this.top+this.height>=I.top+I.height};
_.u.distance=function(I){var C=I.x<this.left?this.left-I.x:Math.max(I.x-(this.left+this.width),0);I=I.y<this.top?this.top-I.y:Math.max(I.y-(this.top+this.height),0);return Math.sqrt(C*C+I*I)};
_.u.getSize=function(){return new _.y6(this.width,this.height)};
_.u.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};
_.u.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};
_.u.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};
_.u.translate=function(I,C){I instanceof _.Q6?(this.left+=I.x,this.top+=I.y):(this.left+=I,typeof C==="number"&&(this.top+=C));return this};
_.u.scale=function(I,C){C=typeof C==="number"?C:I;this.left*=I;this.width*=I;this.top*=C;this.height*=C;return this};var C7b,ds,zCF,Wz,kRP,yTu,FzS,Vtz,uLu,TR5;_.vz=function(I,C,y){if(typeof C==="string")(C=_.I8d(I,C))&&(I.style[C]=y);else for(var k in C){y=I;var F=C[k],z=_.I8d(y,k);z&&(y.style[z]=F)}};
C7b={};_.I8d=function(I,C){var y=C7b[C];if(!y){var k=_.P$(C);y=k;I.style[k]===void 0&&(k=(_.z6?"Webkit":_.u4?"Moz":null)+IYc(k),I.style[k]!==void 0&&(y=k));C7b[C]=y}return y};
_.DZ=function(I,C){var y=_.V6(I);return y.defaultView&&y.defaultView.getComputedStyle&&(I=y.defaultView.getComputedStyle(I,null))?I[C]||I.getPropertyValue(C)||"":""};
_.Ak=function(I,C){return _.DZ(I,C)||(I.currentStyle?I.currentStyle[C]:null)||I.style&&I.style[C]};
_.sJq=function(I){return _.Ak(I,"position")};
ds=function(I,C,y){if(C instanceof _.Q6){var k=C.x;C=C.y}else k=C,C=y;I.style.left=Wz(k,!1);I.style.top=Wz(C,!1)};
zCF=function(I){try{return I.getBoundingClientRect()}catch(C){return{left:0,top:0,right:0,bottom:0}}};
_.l3=function(I){var C=_.V6(I),y=new _.Q6(0,0);if(I==(C?_.V6(C):document).documentElement)return y;I=zCF(I);C=FJ(u3(C));y.x=I.left+C.x;y.y=I.top+C.y;return y};
_.oGw=function(I,C,y){if(C instanceof _.y6)y=C.height,C=C.width;else if(y==void 0)throw Error("sa");I.style.width=Wz(C,!0);I.style.height=Wz(y,!0)};
Wz=function(I,C){typeof I=="number"&&(I=(C?Math.round(I):I)+"px");return I};
kRP=function(I){return yTu(I)};
yTu=function(I){var C=FzS;if(_.Ak(I,"display")!="none")return C(I);var y=I.style,k=y.display,F=y.visibility,z=y.position;y.visibility="hidden";y.position="absolute";y.display="inline";I=C(I);y.display=k;y.position=z;y.visibility=F;return I};
FzS=function(I){var C=I.offsetWidth,y=I.offsetHeight,k=_.z6&&!C&&!y;return(C===void 0||k)&&I.getBoundingClientRect?(I=zCF(I),new _.y6(I.right-I.left,I.bottom-I.top)):new _.y6(C,y)};
Vtz=function(I){var C=_.l3(I);I=yTu(I);return new gs(C.x,C.y,I.width,I.height)};
uLu=function(I,C){I=I.style;"opacity"in I?I.opacity=C:"MozOpacity"in I?I.MozOpacity=C:"filter"in I&&(I.filter=C===""?"":"alpha(opacity="+Number(C)*100+")")};
_.mc=function(I,C){I.style.display=C?"":"none"};
_.zTd=function(I){return"rtl"==_.Ak(I,"direction")};
TR5=function(I){var C=_.DZ(I,"marginLeft"),y=_.DZ(I,"marginRight"),k=_.DZ(I,"marginTop");I=_.DZ(I,"marginBottom");return new oE(parseFloat(k),parseFloat(y),parseFloat(I),parseFloat(C))};
_.cTu=function(I){var C=_.DZ(I,"borderLeftWidth"),y=_.DZ(I,"borderRightWidth"),k=_.DZ(I,"borderTopWidth");I=_.DZ(I,"borderBottomWidth");return new oE(parseFloat(k),parseFloat(y),parseFloat(I),parseFloat(C))};var eTq=function(I){return I.intersectionGeometry.width*I.intersectionGeometry.height/(I.elementGeometry.width*I.elementGeometry.height)},RCI=Sl(h_(iI(function(I){var C;
return(C=I.exposureOverride)!=null?C:eTq(I)}),iI(function(I){return isFinite(I)?I:0}))),AiH=Sl(h_(iI(function(I){var C;
return(C=I.exposureOverride)!=null?C:eTq(I)}),iI(function(I){return isFinite(I)?I:-1})));var xg=function(I,C){this.a=I;this.b=C;if(I.clock.timeline!==C.clock.timeline)throw Error();};
xg.prototype.equivalentTo=function(I){return I instanceof xg?this.a.equivalentTo(I.a)&&this.b.equivalentTo(I.b):!1};
xg.prototype.extrapolateToTime=function(I){var C=this.a.extrapolateToTime(I).value,y=this.b.extrapolateToTime(I).value;return{timestamp:I,value:[C,y]}};
_.H1.Object.defineProperties(xg.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 I=this.a.lastMeasurement.timestamp.maximum(this.b.lastMeasurement.timestamp),C=this.a.lastMeasurement.timestamp.equals(I)?this.a.lastMeasurement.value:this.a.extrapolateToTime(I).value,y=this.b.lastMeasurement.timestamp.equals(I)?this.b.lastMeasurement.value:this.b.extrapolateToTime(I).value;return{timestamp:I,value:[C,y]}}}});var qY=function(I,C){this.input=I;this.mapFunction=C;this.lastMeasurement={timestamp:this.input.lastMeasurement.timestamp,value:this.mapFunction(this.input.lastMeasurement.value)}};
qY.prototype.equivalentTo=function(I){return I instanceof qY?this.input.equivalentTo(I.input)&&this.mapFunction===I.mapFunction:!1};
qY.prototype.extrapolateToTime=function(I){I=this.input.extrapolateToTime(I);return{timestamp:I.timestamp,value:this.mapFunction(I.value)}};
_.H1.Object.defineProperties(qY.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return this.input.active}},
clock:{configurable:!0,enumerable:!0,get:function(){return this.input.clock}}});var mR=function(){};
mR.prototype.extrapolateToNow=function(){return this.extrapolateToTime(this.clock.now())};
mR.prototype.extrapolateUsingTimestampMap=function(I){var C=this.clock.timeline,y,k=(y=I.get(C))!=null?y:this.clock.now();I.set(C,k);return this.extrapolateToTime(k)};
mR.prototype.map=function(I){return new rTd(this,I)};
mR.prototype.joinWith=function(I){return new i2q(this,I)};
var i2q=function(){xg.apply(this,arguments);this.map=mR.prototype.map;this.joinWith=mR.prototype.joinWith;this.extrapolateToNow=mR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mR.prototype.extrapolateUsingTimestampMap};
_.R(i2q,xg);var rTd=function(){qY.apply(this,arguments);this.map=mR.prototype.map;this.joinWith=mR.prototype.joinWith;this.extrapolateToNow=mR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mR.prototype.extrapolateUsingTimestampMap};
_.R(rTd,qY);var Ai=function(I,C){this.lastMeasurement=C;this.extrapolateToNow=mR.prototype.extrapolateToNow;this.extrapolateUsingTimestampMap=mR.prototype.extrapolateUsingTimestampMap;this.map=mR.prototype.map;this.joinWith=mR.prototype.joinWith;this.clock=I};
Ai.prototype.equivalentTo=function(I){return I.active};
Ai.prototype.extrapolateToTime=function(){return this.lastMeasurement};
_.H1.Object.defineProperties(Ai.prototype,{active:{configurable:!0,enumerable:!0,get:function(){return!1}}});var Wwt=iI(function(I){if(I.value.viewportGeometrySourceName==="omid"){if(I.value.elementGeometrySourceName==="nio")return"omio";if(I.value.elementGeometrySourceName==="geo")return"omgeo"}return I.value.elementGeometrySourceName==="geo"||I.value.elementGeometrySourceName==="nio"?I.value.viewportGeometrySourceName:I.value.elementGeometrySourceName});var loW=h_(X4(function(I){return!isNaN(I)}),mg(function(I,C){return isNaN(I)?C:Math.min(I,C)},NaN),AM());var beH=Sl(h_(iI(function(I){return I.intersectionGeometry.width*I.intersectionGeometry.height/(I.exposedViewportLocalGeometry.width*I.exposedViewportLocalGeometry.height)}),iI(function(I){return isFinite(I)?Math.min(1,I):0})));var vFm=h_(Sl(iI(function(I){I=I.exposureOverride?I.elementGeometry.width*I.elementGeometry.height*I.exposureOverride/(I.topWindowViewportExternalGeometry.width*I.topWindowViewportExternalGeometry.height):I.intersectionGeometry.width*I.intersectionGeometry.height/(I.topWindowViewportExternalGeometry.width*I.topWindowViewportExternalGeometry.height);return isFinite(I)?I:0})));var q1I=function(I,C){var y=this;this.timeProvider=I;this.measurementRequestObserver=this.lastMeasurementRequest=null;this.requestSubscription=C.pipe(AM()).subscribe(function(k){d0(y);y.measurementRequestObserver=k})},ZeF=function(I,C){d0(I);
I.lastMeasurementRequest=I.timeProvider.setTimeout(function(){var y;return void((y=I.measurementRequestObserver)==null?void 0:y.next())},C)},d0=function(I){I.lastMeasurementRequest!==null&&I.timeProvider.clearTimeout(I.lastMeasurementRequest);
I.lastMeasurementRequest=null};
q1I.prototype.dispose=function(){d0(this);this.requestSubscription.unsubscribe();this.measurementRequestObserver=null};var waP=function(){};var ckW=function(I,C){this.context=I;this.strategies=C};
_.R(ckW,waP);ckW.prototype.buildGeometrySource=function(I,C){var y=this.strategies.map(function(z){return z.buildGeometrySource(I,C)}),k=HeI(y.map(function(z){return z.geometrySource})),F=k.capturedErrors.pipe(nGP());
return{geometrySource:k.chain.pipe(ML(this.context.queue)),additionalOutputs:Object.assign.apply(Object,[{strategyFailureReasons:F,strategyErrors:k.capturedErrors}].concat(_.Py(y.map(function(z){return z.additionalOutputs}))))}};
var nGP=function(){return mg(function(I,C){C instanceof ne?I.push(C.measurementStrategyFailureReason):I.push(-1);return I},[])};var rkW=function(I,C){this.context=I;this.poller=C};
_.R(rkW,waP);rkW.prototype.buildGeometrySource=function(I,C){var y=tlt(Oez(this.context,this.poller),ciI(this.context,C.requestSource));return{geometrySource:UbY(I.measurableCreative.pipe(y),C.inApp),additionalOutputs:{}}};var e3H=function(I,C,y){y=y===void 0?P3t(I,C):y;this.context=I;this.intersectionObserverStrategy=y};
_.R(e3H,waP);e3H.prototype.buildGeometrySource=function(I,C){var y=this.intersectionObserverStrategy(C.useV2);return{geometrySource:UbY(I.measurableCreative.pipe(y,Lws(this.context)),C.inApp),additionalOutputs:{}}};var P7w=function(I,C,y){var k=k===void 0?Symbol():k;this.element=I;this.immediateUrls=C;this.timeOnScreenUrls=y;this.symbol=k};var Wi=Object.freeze({timeThresholdMs:1E3,exposureThreshold:.5,largeAdExposureThreshold:.3}),s1H=Object.freeze([1,.75,Wi.exposureThreshold,Wi.largeAdExposureThreshold,0]);var f2W=function(I){var C=C===void 0?36E5:C;var y=y===void 0?!0:y;this.creatives=new Oj;this.elementsToUnregister=new Oj;this.elementMap=new Map;var k=new qb(window,null);k.beaconFactory=new cz(k,new pQ(k));TQm(k,this.creatives,this.elementsToUnregister,I,C,y).subscribe()},KWI=function(I,C,y,k){if(!I.elementMap.has(C)){var F=new RE(C);
I.elementMap.set(C,F);I.creatives.next(new P7w(F,y,k))}},SfW=function(I,C){I.elementsToUnregister.next(C);
var y=I.elementMap.get(C);y!==void 0&&(y.release(),I.elementMap.delete(C))};var okz=function(I){var C=I.url;I=I.uaDataValues;this.JSC$7352_url_=C;this.uaDataValues_=I;this.suid_=(new Date).getTime()-17040672E5},yGm=function(I){I=I.uaDataValues_;
if(!I)return"";var C=Zo("uap",I.platform)+Zo("uapv",I.platformVersion)+Zo("uafv",I.uaFullVersion)+Zo("uaa",I.architecture)+Zo("uam",I.model)+Zo("uab",I.bitness);I.fullVersionList&&(C+="&uafvl="+encodeURIComponent(I.fullVersionList.map(function(y){return encodeURIComponent(y.brand)+";"+encodeURIComponent(y.version)}).join("|")));
I.wow64!=null&&(C+="&uaw="+Number(I.wow64));return C.slice(1)};var Ze=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Ze,_.GR);Ze.prototype.getId=function(){return _.b4(this,1)};
Ze.prototype.setId=function(I){return _.ac(this,1,I)};var Bz=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Bz,_.GR);Bz.prototype.getSeconds=function(){return $C(this,1)};
Bz.prototype.setSeconds=function(I){return _.n2(this,1,jB(I),"0")};_.xX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(_.xX,_.GR);_.xX.prototype.getSeconds=function(){return $C(this,1)};
_.xX.prototype.setSeconds=function(I){return _.n2(this,1,jB(I),"0")};
_.Lzq=function(I){var C=Number(G6(I,1));I=_.ti(I,2);return new Date(C*1E3+I/1E6)};var Er=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Er,_.GR);Er.prototype.getUrl=function(){return _.b4(this,1)};
Er.prototype.setUrl=function(I){return _.ac(this,1,I)};
Er.prototype.getHeight=function(){return _.ti(this,2)};
Er.prototype.getWidth=function(){return _.ti(this,3)};var hh=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(hh,_.GR);hh.prototype.getAspectRatio=function(){return Rh(this,1)};
hh.prototype.setAspectRatio=function(I){return _.n2(this,1,_.kK(I),0)};
hh.prototype.getDuration=function(){return _.MS(this,Bz,2)};var Dju=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Dju,_.GR);var pab=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(pab,_.GR);var QJw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(QJw,_.GR);var NRY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(NRY,_.GR);var VFP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(VFP,_.GR);var jJm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(jJm,_.GR);var l85=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(l85,_.GR);var XaP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(XaP,_.GR);var $jm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R($jm,_.GR);var Ur=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Ur,_.GR);var Hz=[2,4,5,6,7];var RTq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(RTq,_.GR);var Nm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Nm,_.GR);_.u=Nm.prototype;_.u.getId=function(){return _.MS(this,Ze,1)};
_.u.setId=function(I){return _.JT(this,1,I)};
_.u.getName=function(){return _.b4(this,2)};
_.u.setDescription=function(I){return _.ac(this,3,I)};
_.u.getUrl=function(){return _.b4(this,8)};
_.u.setUrl=function(I){return _.ac(this,8,I)};
var th=function(I){return _.U1(I,Er,10,_.Hi())};
Nm.prototype.getOwner=function(I){var C=_.u7(this,40,_.AP,3,!0);Wm(C,I);return C[I]};
Nm.prototype.getVersion=function(){return $C(this,45)};
var Jh=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Jh,_.GR);_.b2c=[0,w0I,PE9];_.Ymw=[0,w0I,PE9];var GRw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(GRw,_.GR);var Or=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Or,_.GR);Or.prototype.getStatus=function(){return _.YC(this,1)};
Or.prototype.removeItem=function(I){return Als(this,2,I)};var f8w=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(f8w,_.GR);f8w.prototype.getName=function(){return _.b4(this,8)};var ad=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(ad,_.GR);ad.prototype.getCommand=function(){return _.YC(this,1)};
ad.prototype.getSource=function(){return _.MS(this,f8w,2)};
ad.prototype.setVisible=function(I){return _.bG(this,5,I)};
ad.prototype.removeItem=function(I){return Als(this,7,I)};var Smb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Smb,_.GR);Smb.prototype.getCommand=function(){return _.YC(this,1)};
Smb.prototype.removeItem=function(I){return Als(this,4,I)};
var Kzw=_.Ha(Smb);var MY=function(I,C,y){y=y===void 0?Error():y;var k=Error.call(this);this.message=k.message;"stack"in k&&(this.stack=k.stack);this.code=I;C+=":";y instanceof Error?(this.message=C+y.message,this.stack=y.stack||""):(this.message=C+String(y),this.stack="");Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(MY,Error);_.LL=function(){this.JSC$7410_disposed_=this.JSC$7410_disposed_;this.onDisposeCallbacks_=this.onDisposeCallbacks_};
_.LL.prototype.JSC$7410_disposed_=!1;_.LL.prototype.isDisposed=function(){return this.JSC$7410_disposed_};
_.LL.prototype.dispose=function(){this.JSC$7410_disposed_||(this.JSC$7410_disposed_=!0,this.disposeInternal())};
_.LL.prototype[Symbol.dispose]=function(){this.dispose()};
_.kq=function(I,C){I.addOnDisposeCallback(_.D0(_.Bi,C))};
_.LL.prototype.addOnDisposeCallback=function(I,C){this.JSC$7410_disposed_?C!==void 0?I.call(C):I():(this.onDisposeCallbacks_||(this.onDisposeCallbacks_=[]),C&&(I=I.bind(C)),this.onDisposeCallbacks_.push(I))};
_.LL.prototype.disposeInternal=function(){if(this.onDisposeCallbacks_)for(;this.onDisposeCallbacks_.length;)this.onDisposeCallbacks_.shift()()};var Iz=function(I){_.LL.call(this);this.wpc=I};
_.R(Iz,_.LL);Iz.prototype.vSi=function(){return this.wpc.f()};
Iz.prototype.jOg=function(I){return this.wpc.c(I)};
Iz.prototype.cA=function(I){return this.wpc.m($9W(I))};
Iz.prototype.cE=function(I){return this.wpc.mws($9W(I))};
var hi=function(I){_.LL.call(this);var C=this;this.uQ=I;this.gt0="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.kms=void 0;this.dNI=this.uQ.p;this.oeq=this.k64.bind(this);this.addOnDisposeCallback(function(){return void ATm(C)})};
_.R(hi,_.LL);var gGS=function(I){var C;return _.e(function(y){if(y.nextAddress==1){if(!I.uQ.wpc)throw new MY(30,"NWA");return I.aIb?y.return(I.aIb):_.n(y,I.uQ.wpc(),2)}C=y.yieldResult;I.aIb=new Iz(C);return y.return(I.aIb)})};
hi.prototype.snapshot=function(I){return this.uQ.s(Object.assign({},I.tY&&{c:I.tY},I.gbN&&{s:I.gbN},I.rhA!==void 0&&{p:I.rhA}))};
hi.prototype.k64=function(I){this.uQ.e(I)};
hi.prototype.y2B=function(I,C){return this.uQ.c(I,C,!1)};
var ATm=function(I){I.kms!==void 0&&(I.gt0.forEach(function(C){var y;(y=I.kms)==null||y.removeEventListener(C,I.oeq)}),I.kms=void 0)};
hi.prototype.qWN=function(){return this.uQ.l()};var vGe,CW=function(){_.LL.apply(this,arguments);this.nSz=1;this[vGe]=this.dispose};
_.R(CW,_.LL);CW.prototype.share=function(){if(this.isDisposed())throw Error("ta");this.nSz++;return this};
CW.prototype.dispose=function(){--this.nSz||_.LL.prototype.dispose.call(this)};
vGe=Symbol.dispose;var U9Y=function(I){this.h8p=I;I.addNewEventMetric("/client_streamz/bg/frs",_.aE("mk"))};
U9Y.prototype.record=function(I,C){this.h8p.record("/client_streamz/bg/frs",I,C)};
var OL9=function(I){this.bwk=I;I.addNewEventMetric("/client_streamz/bg/wrl",_.aE("mn"),O1("ac"),O1("sc"),_.aE("rk"),_.aE("mk"))};
OL9.prototype.record=function(I,C,y,k,F,z){this.bwk.record("/client_streamz/bg/wrl",I,C,y,k,F,z)};
var tyz=function(I){this.e8P=I;I.addNewCounter("/client_streamz/bg/ec",_.aE("en"),_.aE("mk"))};
tyz.prototype.increment=function(I,C){this.e8P.JSC$7659_incrementCounter("/client_streamz/bg/ec",I,C)};
var Jkm=function(I){this.ack=I;I.addNewEventMetric("/client_streamz/bg/el",_.aE("en"),_.aE("mk"))};
Jkm.prototype.record=function(I,C,y){this.ack.record("/client_streamz/bg/el",I,C,y)};
var HLF=function(I){this.rhp=I;I.addNewCounter("/client_streamz/bg/cec",O1("ec"),_.aE("mk"))};
HLF.prototype.increment=function(I,C){this.rhp.JSC$7659_incrementCounter("/client_streamz/bg/cec",I,C)};
var aDI=function(I){this.qCG=I;I.addNewCounter("/client_streamz/bg/po/csc",O1("cs"),_.aE("mk"))};
aDI.prototype.increment=function(I,C){this.qCG.JSC$7659_incrementCounter("/client_streamz/bg/po/csc",I,C)};
var MyK=function(I){this.yhd=I;I.addNewCounter("/client_streamz/bg/po/ctav",_.aE("av"),_.aE("mk"))};
MyK.prototype.increment=function(I,C){this.yhd.JSC$7659_incrementCounter("/client_streamz/bg/po/ctav",I,C)};
var IfI=function(I){this.wUp=I;I.addNewCounter("/client_streamz/bg/po/cwsc",_.aE("su"),_.aE("mk"))};
IfI.prototype.increment=function(I,C){this.wUp.JSC$7659_incrementCounter("/client_streamz/bg/po/cwsc",I,C)};var zzX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(zzX,_.GR);var u$H=function(I,C){return _.i7(I,3,C,O9W)};var Wz0=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Wz0,_.GR);var djS=[1,2,3];var xjd=[0,djS,_.Num,LNm,QlF];var qmd=[0,_.h0,[0,eps,_.qm]];var mj5=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(mj5,_.GR);var Z2w=[1,2,3];var BRq=[0,Z2w,nMF,rAI,_.U0,qmd];var EGw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EGw,_.GR);var hTP=[0,_.h0,xjd,BRq];var Ujw=[0,[1,2,3],_.U0,[0,_.E0,-1,_.Bv],_.U0,[0,_.E0,-1,_.mA,_.Bv],_.U0,[0,_.E0]];var H2S=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(H2S,_.GR);H2S.prototype.JSC$7479_serializeBinary=O8m([0,_.E0,Ujw,VYK,_.h0,hTP,DhK,p0I]);var tF8=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(tF8,_.GR);var a8u=function(I){var C=new H2S;C=_.zT(C,1,I.JSC$7595_metricName);var y=JT8(I);C=_.i7(C,3,y,_.SB);y=[];for(var k=[],F=_.T(I.cellMap.keys()),z=F.next();!z.done;z=F.next())k.push(z.value.split(","));for(F=0;F<k.length;F++){z=k[F];for(var c=I.cellType,r=I.getCells(z)||[],w=[],L=0;L<r.length;L++){var D=r[L],p=D&&D.cellValue;D=new mj5;switch(c){case 3:p=Number(p);Number.isFinite(p)&&rT(D,1,Z2w,jB(p));break;case 2:rT(D,2,Z2w,_.kK(Number(p)))}w.push(D)}c=w;for(r=0;r<c.length;r++){w=c[r];L=new EGw;w=_.JT(L,
2,w);L=[];D=O25(I);for(p=0;p<D.length;p++){var Q=D[p],X=z[p],b=new Wz0;switch(Q){case 3:rT(b,1,djS,K8(String(X)));break;case 2:Q=Number(X);Number.isFinite(Q)&&rT(b,2,djS,_.PR(Q));break;case 1:rT(b,3,djS,H9m(X==="true"))}L.push(b)}Qv(w,1,L);y.push(w)}}Qv(C,4,y);return C};var MF8=function(I){if(!I)return"";if(/^about:(?:blank|srcdoc)$/.test(I))return window.origin||"";I.indexOf("blob:")===0&&(I=I.substring(5));I=I.split("#")[0].split("?")[0];I=I.toLowerCase();I.indexOf("//")==0&&(I=window.location.protocol+I);/^[\w\-]*:\/\//.test(I)||(I=window.location.href);var C=I.substring(I.indexOf("://")+3),y=C.indexOf("/");y!=-1&&(C=C.substring(0,y));y=I.substring(0,I.indexOf("://"));if(!y)throw Error("ua`"+I);if(y!=="http"&&y!=="https"&&y!=="chrome-extension"&&y!=="moz-extension"&&
y!=="file"&&y!=="android-app"&&y!=="chrome-search"&&y!=="chrome-untrusted"&&y!=="chrome"&&y!=="app"&&y!=="devtools")throw Error("va`"+y);I="";var k=C.indexOf(":");if(k!=-1){var F=C.substring(k+1);C=C.substring(0,k);if(y==="http"&&F!=="80"||y==="https"&&F!=="443")I=":"+F}return y+"://"+C+I};var Ci0=function(I,C,y){var k=String(_.sF.location.href);return k&&I&&C?[C,Idu(MF8(k),I,y||null)].join(" "):null},Idu=function(I,C,y){var k=[],F=[];
if((Array.isArray(y)?2:1)==1)return F=[C,I],_.mn(k,function(r){F.push(r)}),sMu(F.join(" "));
var z=[],c=[];_.mn(y,function(r){c.push(r.key);z.push(r.value)});
y=Math.floor((new Date).getTime()/1E3);F=z.length==0?[y,C,I]:[z.join(":"),y,C,I];_.mn(k,function(r){F.push(r)});
I=sMu(F.join(" "));I=[y,I];c.length==0||I.push(c.join(""));return I.join("_")},sMu=function(I){var C=Akm();
C.update(I);return C.digestString().toLowerCase()};var sv=function(I){this.JSC$7490_document_=I||{cookie:""}},ob8;
_.u=sv.prototype;_.u.isEnabled=function(){if(!_.sF.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};
_.u.set=function(I,C,y){var k=!1;if(typeof y==="object"){var F=y.sameSite;k=y.secure||!1;var z=y.domain||void 0;var c=y.path||void 0;var r=y.maxAge}if(/[;=\s]/.test(I))throw Error("wa`"+I);if(/[;\r\n]/.test(C))throw Error("xa`"+C);r===void 0&&(r=-1);y=z?";domain="+z:"";c=c?";path="+c:"";k=k?";secure":"";r=r<0?"":r==0?";expires="+(new Date(1970,1,1)).toUTCString():";expires="+(new Date(Date.now()+r*1E3)).toUTCString();this.JSC$7490_document_.cookie=I+"="+C+y+c+r+k+(F!=null?";samesite="+F:"")};
_.u.get=function(I,C){for(var y=I+"=",k=(this.JSC$7490_document_.cookie||"").split(";"),F=0,z;F<k.length;F++){z=_.oh(k[F]);if(z.lastIndexOf(y,0)==0)return z.slice(y.length);if(z==I)return""}return C};
_.u.remove=function(I,C,y){var k=this.containsKey(I);this.set(I,"",{maxAge:0,path:C,domain:y});return k};
_.u.getKeys=function(){return ob8(this).keys};
_.u.getValues=function(){return ob8(this).values};
_.u.isEmpty=function(){return!this.JSC$7490_document_.cookie};
_.u.getCount=function(){return this.JSC$7490_document_.cookie?(this.JSC$7490_document_.cookie||"").split(";").length:0};
_.u.containsKey=function(I){return this.get(I)!==void 0};
_.u.containsValue=function(I){for(var C=ob8(this).values,y=0;y<C.length;y++)if(C[y]==I)return!0;return!1};
_.u.clear=function(){for(var I=ob8(this).keys,C=I.length-1;C>=0;C--)this.remove(I[C])};
ob8=function(I){I=(I.JSC$7490_document_.cookie||"").split(";");for(var C=[],y=[],k,F,z=0;z<I.length;z++)F=_.oh(I[z]),k=F.indexOf("="),k==-1?(C.push(""),y.push(F)):(C.push(F.substring(0,k)),y.push(F.substring(k+1)));return{keys:C,values:y}};
_.wC=new sv(typeof document=="undefined"?null:document);var B1z=function(){var I=_.sF.__SAPISID||_.sF.__APISID||_.sF.__3PSAPISID||_.sF.__1PSAPISID||_.sF.__OVERRIDE_SID;if(I)return!0;typeof document!=="undefined"&&(I=new sv(document),I=I.get("SAPISID")||I.get("APISID")||I.get("__Secure-3PAPISID")||I.get("__Secure-1PAPISID"));return!!I},y_S=function(I,C,y,k){(I=_.sF[I])||typeof document==="undefined"||(I=(new sv(document)).get(C));
return I?Ci0(I,y,k):null},fkF=function(I){var C=MF8(String(_.sF.location.href)),y=[];
if(B1z()){C=C.indexOf("https:")==0||C.indexOf("chrome-extension:")==0||C.indexOf("chrome-untrusted://new-tab-page")==0||C.indexOf("moz-extension:")==0;var k=C?_.sF.__SAPISID:_.sF.__APISID;k||typeof document==="undefined"||(k=new sv(document),k=k.get(C?"SAPISID":"APISID")||k.get("__Secure-3PAPISID"));(k=k?Ci0(k,C?"SAPISIDHASH":"APISIDHASH",I):null)&&y.push(k);C&&((C=y_S("__1PSAPISID","__Secure-1PAPISID","SAPISID1PHASH",I))&&y.push(C),(I=y_S("__3PSAPISID","__Secure-3PAPISID","SAPISID3PHASH",I))&&y.push(I))}return y.length==
0?null:y.join(" ")};var kK8=function(){this.minSize=1024};
kK8.prototype.compress=function(I){var C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return C=new CompressionStream("gzip"),y=(new Response(C.readable)).arrayBuffer(),k=C.writable.getWriter(),_.n(z,k.write((new TextEncoder).encode(I)),2);case 2:return _.n(z,k.close(),3);case 3:return F=Uint8Array,_.n(z,y,4);case 4:return z.return(new F(z.yieldResult))}})};
kK8.prototype.isSupported=function(I){return I<this.minSize?!1:typeof CompressionStream!=="undefined"};var F7q=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(F7q,_.GR);var oz=function(I,C){this.intervalMs=I;this.callback=C;this.enabled=!1;this.nowFn=function(){return _.CF()};
this.lastTimeMs=this.nowFn()};
oz.prototype.setInterval=function(I){this.intervalMs=I;this.timer&&this.enabled?(this.stop(),this.start()):this.timer&&this.stop()};
oz.prototype.start=function(){var I=this;this.enabled=!0;this.timer||(this.timer=setTimeout(function(){I.tick()},this.intervalMs),this.lastTimeMs=this.nowFn())};
oz.prototype.stop=function(){this.enabled=!1;this.timer&&(clearTimeout(this.timer),this.timer=void 0)};
oz.prototype.tick=function(){var I=this;if(this.enabled){var C=Math.max(this.nowFn()-this.lastTimeMs,0);C<this.intervalMs*.8?this.timer=setTimeout(function(){I.tick()},this.intervalMs-C):(this.timer&&(clearTimeout(this.timer),this.timer=void 0),this.callback(),this.enabled&&(this.stop(),this.start()))}else this.timer=void 0};var uG0=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(uG0,_.GR);var zE0=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(zE0,_.GR);var Ta8=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Ta8,_.GR);Ta8.prototype.getTransmissionType=function(){return _.YC(this,1)};var d99=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(d99,_.GR);d99.prototype.getVersion=function(){return _.b4(this,2)};var yZ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(yZ,_.GR);var WcH=function(I){Qv(I1,1,I)};
yZ.prototype.getModel=function(){return _.b4(this,6)};
var c_m=_.Ha(yZ);var eEq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(eEq,_.GR);var gqs=["platform","platformVersion","architecture","model","uaFullVersion"],I1=new yZ,vq9=null;var r_d=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(r_d,_.GR);var iaS=function(I){return _.Ie(I,1,1)};var wnu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,4)};
_.R(wnu,_.GR);_.kj=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,36)};
_.R(_.kj,_.GR);_.kj.prototype.getExperimentIds=function(){return _.MS(this,F7q,16)};var nb8=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,19)};
_.R(nb8,_.GR);nb8.prototype.setLogSource=function(I){return _.Ie(this,2,I)};
nb8.prototype.setScheduler=function(I){return _.Ie(this,10,I)};var L7c=function(I,C){this.isServiceWorkerScope=C=C===void 0?!1:C;this.uach=this.locale=null;this.transmissionType=0;this.isFinal=!1;this.logRequest=new nb8;Number.isInteger(I)&&this.logRequest.setLogSource(I);C||(this.locale=document.documentElement.getAttribute("lang"));PiY(this,new r_d)};
L7c.prototype.setLogSource=function(I){this.logRequest.setLogSource(I);return this};
var PiY=function(I,C){_.JT(I.logRequest,1,C);_.YC(C,1)||iaS(C);I.isServiceWorkerScope||(C=Fn(I),_.b4(C,5)||_.zT(C,5,I.locale));I.uach&&(C=Fn(I),_.MS(C,yZ,9)||_.JT(C,9,I.uach))},DMS=function(I,C){I.transmissionType=C},pn8=function(I){var C=C===void 0?gqs:C;
var y=I.isServiceWorkerScope?void 0:Nb();y?x9W(y,C).then(function(k){I.uach=c_m(k!=null?k:"[]");k=Fn(I);_.JT(k,9,I.uach);return!0}).catch(function(){return!1}):Promise.resolve(!1)},Fn=function(I){I=_.MS(I.logRequest,r_d,1);
var C=_.MS(I,eEq,11);C||(C=new eEq,_.JT(I,11,C));return C};
L7c.prototype.build=function(I,C,y,k,F,z){C=C===void 0?0:C;y=y===void 0?0:y;k=k===void 0?null:k;F=F===void 0?0:F;z=z===void 0?0:z;if(!this.isServiceWorkerScope){var c=Fn(this);var r=new Ta8;r=_.Ie(r,1,this.transmissionType);r=_.Mb(r,2,this.isFinal);y=_.KF(r,3,y>0?y:void 0);y=_.KF(y,4,F>0?F:void 0);y=_.KF(y,5,z>0?z:void 0);F=y.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;z=F[_.Vd]|0;y=f5(y,z)?y:new y.constructor(IJ(F,z,!0));_.JT(c,10,y)}c=this.logRequest.clone();y=Date.now().toString();c=
_.Cw(c,4,jB(y));I=I.slice();I=Qv(c,3,I);k&&(c=new uG0,k=_.KF(c,13,k),c=new zE0,k=_.JT(c,2,k),c=new wnu,k=_.JT(c,1,k),k=_.Ie(k,2,9),_.JT(I,18,k));C&&_.pi(I,14,C);return I};CL.prototype.currBackoffCount_=0;CL.prototype.reset=function(){this.currBaseValue_=this.currValue_=this.initialValue_;this.currBackoffCount_=0};
CL.prototype.getValue=function(){return this.currValue_};
var QMe=function(I){I.currBaseValue_=Math.min(I.maxValue_,I.currBaseValue_*I.backoffFactor_);I.currValue_=Math.min(I.maxValue_,I.currBaseValue_+(I.randomFactor_?Math.round(I.randomFactor_*(Math.random()-.5)*2*I.currBaseValue_):0));I.currBackoffCount_++};var RpI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,8)};
_.R(RpI,_.GR);var Na0=_.Ha(RpI);var bjH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(bjH,_.GR);var uR;uR=new YaI;var z9=function(I){_.LL.call(this);var C=this;this.componentId="";this.pendingEvents=[];this.lastFailedAuth="";this.pageId=null;this.noFlushUntilMs=this.startWaitingMs=-1;this.JSC$7568_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$7568_sendBeaconApiEnabled=!1;this.logSource=I.logSource;this.getAuthHeaderValue=
I.getAuthHeaderValue||function(){};
this.logRequestBuilder=new L7c(I.logSource,I.isServiceWorkerScope);this.network=I.network||null;this.productID=I.productID||null;this.clearcutUrl=I.urlOverride||null;this.sessionIndex=I.sessionIndex||null;this.disableAutomaticFlush=I.disableAutomaticFlush||!1;this.logger=null;this.withCredentials=!I.disableWithCredentials;this.isServiceWorkerScope=I.isServiceWorkerScope||!1;this.isSendBeaconSupported=!this.isServiceWorkerScope&&!!Nb()&&!!Nb().navigator&&Nb().navigator.sendBeacon!==void 0;this.isBrowserSupported=
typeof URLSearchParams!=="undefined"&&!!(new URL(VOS())).searchParams&&!!(new URL(VOS())).searchParams.set;var y=iaS(new r_d);PiY(this.logRequestBuilder,y);this.flushBackoff=new CL(1E4,3E5,.1);I=jMq(this,I.backgroundJobDeferrer);this.JSC$7568_flushTimer=new oz(this.flushBackoff.getValue(),I);this.backupTimer=new oz(6E5,I);this.disableAutomaticFlush||this.backupTimer.start();this.isServiceWorkerScope||(document.addEventListener("visibilitychange",function(){if(document.visibilityState==="hidden"){ld0(C);
var k;(k=C.metalogService)==null||k.flush()}}),document.addEventListener("pagehide",function(){ld0(C);
var k;(k=C.metalogService)==null||k.flush()}))};
_.R(z9,_.LL);var jMq=function(I,C){return I.isBrowserSupported?C?function(){C().then(function(){I.flush()})}:function(){I.flush()}:function(){}};
z9.prototype.disposeInternal=function(){ld0(this);this.JSC$7568_flushTimer.stop();this.backupTimer.stop();_.LL.prototype.disposeInternal.call(this)};
var Xnw=function(I){I.clearcutUrl||(I.clearcutUrl=VOS());try{return(new URL(I.clearcutUrl)).toString()}catch(C){return(new URL(I.clearcutUrl,Nb().location.origin)).toString()}};
z9.prototype.dispatch=function(I){if(I instanceof _.kj)this.log(I);else try{var C=new _.kj,y=I.serialize();var k=_.zT(C,8,y);this.log(k)}catch(F){T9(this,4,1)}};
var T9=function(I,C,y){I.metalogService&&I.metalogService.increment(C,y)};
z9.prototype.log=function(I){T9(this,2,1);if(this.isBrowserSupported){I=I.clone();var C=this.sequencePosition++;I=_.pi(I,21,C);this.componentId&&_.zT(I,26,this.componentId);C=I;if(ccs(_.wd(C,1))==null){var y=Date.now();y=Number.isFinite(y)?y.toString():"0";_.Cw(C,1,jB(y))}_.l4(C,15)!=null||_.pi(C,15,(new Date).getTimezoneOffset()*60);this.experimentIds&&(y=this.experimentIds.clone(),_.JT(C,16,y));T9(this,1,1);C=this.pendingEvents.length-1E3+1;C>0&&(this.pendingEvents.splice(0,C),this.numLogsDroppedSinceLastFlush+=
C,T9(this,3,C));this.pendingEvents.push(I);this.disableAutomaticFlush||this.JSC$7568_flushTimer.enabled||this.JSC$7568_flushTimer.start()}};
z9.prototype.flush=function(I,C){var y=this;if(this.pendingEvents.length===0)I&&I();else if(this.JSC$7568_sendBeaconApiEnabled&&this.isSendBeaconSupported)this.logRequestBuilder.transmissionType=3,$M0(this);else{var k=Date.now();if(this.noFlushUntilMs>k&&this.startWaitingMs<k)C&&C("throttled");else{this.network&&(typeof this.network.getTransmissionType==="function"?DMS(this.logRequestBuilder,this.network.getTransmissionType()):this.logRequestBuilder.transmissionType=0);var F=this.pendingEvents.length,
z=this.logRequestBuilder.build(this.pendingEvents,this.numLogsDroppedSinceLastFlush,this.numRetriesSinceLastSuccessfulFlush,this.productID,this.persistedLogRecoveredCount,this.persistedLogExpiredCount),c=this.getAuthHeaderValue();if(c&&this.lastFailedAuth===c)C&&C("stale-auth-token");else{this.pendingEvents=[];this.JSC$7568_flushTimer.enabled&&this.JSC$7568_flushTimer.stop();this.numLogsDroppedSinceLastFlush=0;k=z.serialize();var r;this.JSC$7568_compressor&&this.JSC$7568_compressor.isSupported(k.length)&&
(r=this.JSC$7568_compressor.compress(k));var w=REc(this,k,c),L=function(Q){y.flushBackoff.reset();y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue());if(Q){var X=null;try{var b=JSON.stringify(JSON.parse(Q.replace(")]}'\n","")));X=Na0(b)}catch(S){}X&&(Q=Number($C(X,1,_.Bm("-1"))),Q>0&&(y.startWaitingMs=Date.now(),y.noFlushUntilMs=y.startWaitingMs+Q),lYO(X.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows,uR.fieldIndex),RbK(X,uR.fieldIndex),X=uR.ctor?uR.getExtensionFn(X,uR.ctor,uR.fieldIndex,
uR.JSC$6740_hasMessageId):uR.getExtensionFn(X,uR.fieldIndex,null,uR.JSC$6740_hasMessageId),X=X===null?void 0:X)&&(X=_.ti(X,1,-1),X!==-1&&(y.flushBackoff=new CL(X<1?1:X,3E5,.1),y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue())))}I&&I();y.numRetriesSinceLastSuccessfulFlush=0},D=function(Q,X){var b=_.U1(z,_.kj,3,_.Hi());
var S=Number($C(z,14));QMe(y.flushBackoff);y.JSC$7568_flushTimer.setInterval(y.flushBackoff.getValue());Q===401&&c&&(y.lastFailedAuth=c);S&&(y.numLogsDroppedSinceLastFlush+=S);X===void 0&&(X=y.isRetryable(Q));X&&(y.pendingEvents=b.concat(y.pendingEvents),y.disableAutomaticFlush||y.JSC$7568_flushTimer.enabled||y.JSC$7568_flushTimer.start());T9(y,7,1);C&&C("net-send-failed",Q);++y.numRetriesSinceLastSuccessfulFlush},p=function(){y.network&&y.network.send(w,L,D)};
r?r.then(function(Q){T9(y,5,F);w.requestHeaders["Content-Encoding"]="gzip";w.requestHeaders["Content-Type"]="application/binary";w.body=Q;w.bodyType=2;p()},function(){T9(y,6,F);
p()}):p()}}}};
var REc=function(I,C,y){y=y===void 0?null:y;var k=k===void 0?I.withCredentials:k;var F={},z=new URL(Xnw(I));y&&(F.Authorization=y);I.sessionIndex&&(F["X-Goog-AuthUser"]=I.sessionIndex,z.searchParams.set("authuser",I.sessionIndex));I.pageId&&(Object.defineProperty(F,"X-Goog-PageId",{value:I.pageId}),z.searchParams.set("pageId",I.pageId));return{url:z.toString(),body:C,bodyType:1,requestHeaders:F,requestType:"POST",withCredentials:k,timeoutMillis:I.timeoutMillis}},ld0=function(I){I.logRequestBuilder.isFinal=
!0;
I.flush();I.logRequestBuilder.isFinal=!1},$M0=function(I){baP(I,function(C,y){C=new URL(C);
C.searchParams.set("format","json");var k=!1;try{k=Nb().navigator.sendBeacon(C.toString(),y.serialize())}catch(F){}k||(I.isSendBeaconSupported=!1);return k})},baP=function(I,C){if(I.pendingEvents.length!==0){var y=new URL(Xnw(I));
y.searchParams.delete("format");var k=I.getAuthHeaderValue();k&&y.searchParams.set("auth",k);y.searchParams.set("authuser",I.sessionIndex||"0");for(k=0;k<10&&I.pendingEvents.length;++k){var F=I.pendingEvents.slice(0,32),z=I.logRequestBuilder.build(F,I.numLogsDroppedSinceLastFlush,I.numRetriesSinceLastSuccessfulFlush,I.productID,I.persistedLogRecoveredCount,I.persistedLogExpiredCount);if(!C(y.toString(),z)){++I.numRetriesSinceLastSuccessfulFlush;break}I.numLogsDroppedSinceLastFlush=0;I.numRetriesSinceLastSuccessfulFlush=
0;I.persistedLogRecoveredCount=0;I.persistedLogExpiredCount=0;I.pendingEvents=I.pendingEvents.slice(F.length)}I.JSC$7568_flushTimer.enabled&&I.JSC$7568_flushTimer.stop()}};
z9.prototype.isRetryable=function(I){return 500<=I&&I<600||I===401||I===0};
var VOS=function(){return"https://play.google.com/log?format=json&hasfast=true"};var YCw=function(){this.abortSupported=typeof AbortController!=="undefined"};
YCw.prototype.send=function(I,C,y){var k=this,F,z,c,r,w,L,D,p,Q,X;return _.e(function(b){switch(b.nextAddress){case 1:return z=(F=k.abortSupported?new AbortController:void 0)?setTimeout(function(){F.abort()},I.timeoutMillis):void 0,_.aM(b,2,3),c=Object.assign({},{method:I.requestType,
headers:Object.assign({},I.requestHeaders)},I.body&&{body:I.body},I.withCredentials&&{credentials:"include"},{signal:I.timeoutMillis&&F?F.signal:null}),_.n(b,fetch(I.url,c),5);case 5:r=b.yieldResult;if(r.status!==200){(w=y)==null||w(r.status);b.jumpTo(3);break}if((L=C)==null){b.jumpTo(7);break}return _.n(b,r.text(),8);case 8:L(b.yieldResult);case 7:case 3:_.MM(b);clearTimeout(z);_.C1(b,0);break;case 2:D=_.sj(b);switch((p=D)==null?void 0:p.name){case "AbortError":(Q=y)==null||Q(408);break;default:(X=
y)==null||X(400)}b.jumpTo(3)}})};
YCw.prototype.getTransmissionType=function(){return 4};_.yo=function(I,C){C=C===void 0?"0":C;_.LL.call(this);this.logSource=I;this.sessionIndex=C;this.destinationUrl="https://play.google.com/log?format=json&hasfast=true";this.buildLabel=null;this.serviceWorkerScopeEnabled=!1;this.network=null;this.componentId="";this.JSC$7586_clearExperimentIds=this.productID=null;this.JSC$7586_sendBeaconApiEnabled=!1;this.pageId=null};
_.R(_.yo,_.LL);var yf9=function(I,C){I.buildLabel=C;return I},o4Y=function(I,C){I.network=C;
return I},FCz=function(I,C){I.JSC$7586_clearExperimentIds=C},sFm=function(I){I.JSC$7586_sendBeaconApiEnabled=!0;
return I};
_.yo.prototype.disableWithCredentials=function(){this.withCredentialsDisabled=!0;return this};
_.yo.prototype.build=function(){this.network||(this.network=new YCw);var I=new z9({logSource:this.logSource,getAuthHeaderValue:this.getAuthHeaderValue?this.getAuthHeaderValue:fkF,sessionIndex:this.sessionIndex,urlOverride:this.destinationUrl,isServiceWorkerScope:this.serviceWorkerScopeEnabled,disableAutomaticFlush:!1,disableWithCredentials:this.withCredentialsDisabled,backgroundJobDeferrer:this.backgroundJobDeferrer,network:this.network});_.kq(this,I);if(this.buildLabel){var C=this.buildLabel,y=Fn(I.logRequestBuilder);
_.zT(y,7,C)}I.JSC$7568_compressor=new kK8;this.componentId&&(I.componentId=this.componentId);this.productID&&(I.productID=this.productID);this.pageId&&(I.pageId=this.pageId);this.JSC$7586_clearExperimentIds&&((y=this.JSC$7586_clearExperimentIds)?(I.experimentIds||(I.experimentIds=new F7q),C=I.experimentIds,y=y.serialize(),_.zT(C,4,y)):I.experimentIds&&_.Cw(I.experimentIds,4));this.JSC$7586_sendBeaconApiEnabled&&(I.JSC$7568_sendBeaconApiEnabled=I.isSendBeaconSupported);pn8(I.logRequestBuilder);this.network.setLogSource&&
this.network.setLogSource(this.logSource);this.network.setTransportReferenceAndAttemptFlush&&this.network.setTransportReferenceAndAttemptFlush(I);return I};var TeI=function(I,C,y,k,F,z,c){I=I===void 0?-1:I;C=C===void 0?"":C;y=y===void 0?"":y;k=k===void 0?!1:k;F=F===void 0?"":F;_.LL.call(this);this.logSource=I;this.componentId=C;z?C=z:(I=new _.yo(I,"0"),I.componentId=C,_.kq(this,I),y!==""&&(I.destinationUrl=y),k&&(I.serviceWorkerScopeEnabled=!0),F&&yf9(I,F),c&&o4Y(I,c),C=I.build());this.JSC$7590_transport=C};
_.R(TeI,_.LL);TeI.prototype.flush=function(I){I=I||[];if(I.length){for(var C=new tF8,y=[],k=0;k<I.length;k++){var F=I[k],z=a8u(F);y.push(z);F.clear()}Qv(C,1,y);this.JSC$7590_transport.dispatch(C);this.JSC$7590_transport.flush()}};var GK5=function(I){this.cellValue=I};var cf=function(I,C,y){this.JSC$7595_metricName=I;this.cellType=C;this.fields=y||[];this.cellMap=new Map},O25=function(I){return I.fields.map(function(C){return C.fieldType})},JT8=function(I){return I.fields.map(function(C){return C.fieldName})};
_.u=cf.prototype;_.u.addCell=function(I){var C=_.wa.apply(1,arguments),y=this.getCells(C);y?y.push(new GK5(I)):this.JSC$7595_setCell(I,C)};
_.u.JSC$7595_setCell=function(I){var C=this.JSC$7595_getKey(_.wa.apply(1,arguments));this.cellMap.set(C,[new GK5(I)])};
_.u.getCells=function(){var I=this.JSC$7595_getKey(_.wa.apply(0,arguments));return this.cellMap.has(I)?this.cellMap.get(I):void 0};
_.u.getCell=function(){var I=this.getCells(_.wa.apply(0,arguments));return I&&I.length?I[0]:void 0};
_.u.clear=function(){this.cellMap.clear()};
_.u.JSC$7595_getKey=function(){var I=_.wa.apply(0,arguments);return I?I.join(","):"key"};var fd0=function(I,C){cf.call(this,I,3,C)};
_.R(fd0,cf);fd0.prototype.JSC$7598_incrementCounterBy=function(I){var C=_.wa.apply(1,arguments),y=0,k=this.getCell(C);k&&(y=k.cellValue);this.JSC$7595_setCell(y+I,C)};var SCe=function(I,C){cf.call(this,I,2,C)};
_.R(SCe,cf);SCe.prototype.record=function(I){this.addCell(I,_.wa.apply(1,arguments))};_.eg=function(I){this.id=I};
_.eg.prototype.toString=function(){return this.id};_.r1=function(I,C){this.type=I instanceof _.eg?String(I):I;this.currentTarget=this.target=C;this.defaultPrevented=this.propagationStopped_=!1};
_.r1.prototype.stopPropagation=function(){this.propagationStopped_=!0};
_.r1.prototype.preventDefault=function(){this.defaultPrevented=!0};_.iR=function(I,C){_.r1.call(this,I?I.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;I&&this.init(I,C)};
_.s0(_.iR,_.r1);
_.iR.prototype.init=function(I,C){var y=this.type=I.type,k=I.changedTouches&&I.changedTouches.length?I.changedTouches[0]:null;this.target=I.target||I.srcElement;this.currentTarget=C;C=I.relatedTarget;C||(y=="mouseover"?C=I.fromElement:y=="mouseout"&&(C=I.toElement));this.relatedTarget=C;k?(this.clientX=k.clientX!==void 0?k.clientX:k.pageX,this.clientY=k.clientY!==void 0?k.clientY:k.pageY,this.screenX=k.screenX||0,this.screenY=k.screenY||0):(this.offsetX=_.z6||I.offsetX!==void 0?I.offsetX:I.layerX,
this.offsetY=_.z6||I.offsetY!==void 0?I.offsetY:I.layerY,this.clientX=I.clientX!==void 0?I.clientX:I.pageX,this.clientY=I.clientY!==void 0?I.clientY:I.pageY,this.screenX=I.screenX||0,this.screenY=I.screenY||0);this.button=I.button;this.keyCode=I.keyCode||0;this.key=I.key||"";this.charCode=I.charCode||(y=="keypress"?I.keyCode:0);this.ctrlKey=I.ctrlKey;this.altKey=I.altKey;this.shiftKey=I.shiftKey;this.metaKey=I.metaKey;this.pointerId=I.pointerId||0;this.pointerType=I.pointerType;this.state=I.state;
this.timeStamp=I.timeStamp;this.event_=I;I.defaultPrevented&&_.iR.superClass_.preventDefault.call(this)};
_.iR.prototype.stopPropagation=function(){_.iR.superClass_.stopPropagation.call(this);this.event_.stopPropagation?this.event_.stopPropagation():this.event_.cancelBubble=!0};
_.iR.prototype.preventDefault=function(){_.iR.superClass_.preventDefault.call(this);var I=this.event_;I.preventDefault?I.preventDefault():I.returnValue=!1};var K7q="closure_listenable_"+(Math.random()*1E6|0),w1=function(I){return!(!I||!I[K7q])};var A_S=0;var gbe=function(I,C,y,k,F){this.listener=I;this.proxy=null;this.src=C;this.type=y;this.capture=!!k;this.handler=F;this.key=++A_S;this.removed=this.callOnce=!1},vbc=function(I){I.removed=!0;
I.listener=null;I.proxy=null;I.src=null;I.handler=null};sB.prototype.add=function(I,C,y,k,F){var z=I.toString();I=this.listeners[z];I||(I=this.listeners[z]=[],this.typeCount_++);var c=W7e(I,C,k,F);c>-1?(C=I[c],y||(C.callOnce=!1)):(C=new gbe(C,this.src,z,!!k,F),C.callOnce=y,I.push(C));return C};
sB.prototype.remove=function(I,C,y,k){I=I.toString();if(!(I in this.listeners))return!1;var F=this.listeners[I];C=W7e(F,C,y,k);return C>-1?(vbc(F[C]),_.UF(F,C),F.length==0&&(delete this.listeners[I],this.typeCount_--),!0):!1};
var dM5=function(I,C){var y=C.type;if(!(y in I.listeners))return!1;var k=_.Hs(I.listeners[y],C);k&&(vbc(C),I.listeners[y].length==0&&(delete I.listeners[y],I.typeCount_--));return k};
sB.prototype.removeAll=function(I){I=I&&I.toString();var C=0,y;for(y in this.listeners)if(!I||y==I){for(var k=this.listeners[y],F=0;F<k.length;F++)++C,vbc(k[F]);delete this.listeners[y];this.typeCount_--}return C};
sB.prototype.getListener=function(I,C,y,k){I=this.listeners[I.toString()];var F=-1;I&&(F=W7e(I,C,y,k));return F>-1?I[F]:null};
sB.prototype.hasListener=function(I,C){var y=I!==void 0,k=y?I.toString():"",F=C!==void 0;return _.Le.some(this.listeners,function(z){for(var c=0;c<z.length;++c)if(!(y&&z[c].type!=k||F&&z[c].capture!=C))return!0;return!1})};
var W7e=function(I,C,y,k){for(var F=0;F<I.length;++F){var z=I[F];if(!z.removed&&z.listener==C&&z.capture==!!y&&z.handler==k)return F}return-1};var xMe,qCS,mMc,Baq,Ebu,iU,wY,Ha8,hEP,UMw,nW,tOm,ZaS;xMe="closure_lm_"+(Math.random()*1E6|0);qCS={};mMc=0;_.Lv=function(I,C,y,k,F){if(k&&k.once)return iU(I,C,y,k,F);if(Array.isArray(C)){for(var z=0;z<C.length;z++)_.Lv(I,C[z],y,k,F);return null}y=ZaS(y);return w1(I)?I.listen(C,y,_.sw(k)?!!k.capture:!!k,F):Baq(I,C,y,!1,k,F)};
Baq=function(I,C,y,k,F,z){if(!C)throw Error("za");var c=_.sw(F)?!!F.capture:!!F,r=nW(I);r||(I[xMe]=r=new sB(I));y=r.add(C,y,k,c,z);if(y.proxy)return y;k=Ebu();y.proxy=k;k.src=I;k.listener=y;if(I.addEventListener)_.yXb||(F=c),F===void 0&&(F=!1),I.addEventListener(C.toString(),k,F);else if(I.attachEvent)I.attachEvent(hEP(C.toString()),k);else if(I.addListener&&I.removeListener)I.addListener(k);else throw Error("Aa");mMc++;return y};
Ebu=function(){var I=UMw,C=function(y){return I.call(C.src,C.listener,y)};
return C};
iU=function(I,C,y,k,F){if(Array.isArray(C)){for(var z=0;z<C.length;z++)iU(I,C[z],y,k,F);return null}y=ZaS(y);return w1(I)?I.listenOnce(C,y,_.sw(k)?!!k.capture:!!k,F):Baq(I,C,y,!0,k,F)};
_.Pf=function(I,C,y,k,F){if(Array.isArray(C))for(var z=0;z<C.length;z++)_.Pf(I,C[z],y,k,F);else k=_.sw(k)?!!k.capture:!!k,y=ZaS(y),w1(I)?I.unlisten(C,y,k,F):I&&(I=nW(I))&&(C=I.getListener(C,y,k,F))&&wY(C)};
wY=function(I){if(typeof I==="number"||!I||I.removed)return!1;var C=I.src;if(w1(C))return dM5(C.eventTargetListeners_,I);var y=I.type,k=I.proxy;C.removeEventListener?C.removeEventListener(y,k,I.capture):C.detachEvent?C.detachEvent(hEP(y),k):C.addListener&&C.removeListener&&C.removeListener(k);mMc--;(y=nW(C))?(dM5(y,I),y.typeCount_==0&&(y.src=null,C[xMe]=null)):vbc(I);return!0};
Ha8=function(I,C,y,k,F){y=ZaS(y);k=!!k;return w1(I)?I.getListener(C,y,k,F):I?(I=nW(I))?I.getListener(C,y,k,F):null:null};
hEP=function(I){return I in qCS?qCS[I]:qCS[I]="on"+I};
UMw=function(I,C){if(I.removed)I=!0;else{C=new _.iR(C,this);var y=I.listener,k=I.handler||I.src;I.callOnce&&wY(I);I=y.call(k,C)}return I};
nW=function(I){I=I[xMe];return I instanceof sB?I:null};
tOm="__closure_events_fn_"+(Math.random()*1E9>>>0);ZaS=function(I){if(typeof I==="function")return I;I[tOm]||(I[tOm]=function(C){return I.handleEvent(C)});
return I[tOm]};_.LW=function(){_.LL.call(this);this.eventTargetListeners_=new sB(this);this.actualEventTarget_=this;this.parentEventTarget_=null};
_.s0(_.LW,_.LL);_.LW.prototype[K7q]=!0;_.u=_.LW.prototype;_.u.setParentEventTarget=function(I){this.parentEventTarget_=I};
_.u.addEventListener=function(I,C,y,k){_.Lv(this,I,C,y,k)};
_.u.removeEventListener=function(I,C,y,k){_.Pf(this,I,C,y,k)};
_.u.dispatchEvent=function(I){var C,y=this.parentEventTarget_;if(y)for(C=[];y;y=y.parentEventTarget_)C.push(y);y=this.actualEventTarget_;var k=I.type||I;if(typeof I==="string")I=new _.r1(I,y);else if(I instanceof _.r1)I.target=I.target||y;else{var F=I;I=new _.r1(k,y);_.Le.extend(I,F)}F=!0;var z;if(C)for(z=C.length-1;!I.propagationStopped_&&z>=0;z--){var c=I.currentTarget=C[z];F=J_u(c,k,!0,I)&&F}I.propagationStopped_||(c=I.currentTarget=y,F=J_u(c,k,!0,I)&&F,I.propagationStopped_||(F=J_u(c,k,!1,I)&&
F));if(C)for(z=0;!I.propagationStopped_&&z<C.length;z++)c=I.currentTarget=C[z],F=J_u(c,k,!1,I)&&F;return F};
_.u.disposeInternal=function(){_.LW.superClass_.disposeInternal.call(this);this.removeAllListeners();this.parentEventTarget_=null};
_.u.listen=function(I,C,y,k){return this.eventTargetListeners_.add(String(I),C,!1,y,k)};
_.u.listenOnce=function(I,C,y,k){return this.eventTargetListeners_.add(String(I),C,!0,y,k)};
_.u.unlisten=function(I,C,y,k){return this.eventTargetListeners_.remove(String(I),C,y,k)};
_.u.removeAllListeners=function(I){return this.eventTargetListeners_?this.eventTargetListeners_.removeAll(I):0};
var J_u=function(I,C,y,k){C=I.eventTargetListeners_.listeners[String(C)];if(!C)return!0;C=C.concat();for(var F=!0,z=0;z<C.length;++z){var c=C[z];if(c&&!c.removed&&c.capture==y){var r=c.listener,w=c.handler||c.src;c.callOnce&&dM5(I.eventTargetListeners_,c);F=r.call(w,k)!==!1&&F}}return F&&!k.defaultPrevented};
_.LW.prototype.getListener=function(I,C,y,k){return this.eventTargetListeners_.getListener(String(I),C,y,k)};
_.LW.prototype.hasListener=function(I,C){return this.eventTargetListeners_.hasListener(I!==void 0?String(I):void 0,C)};var DI=typeof AsyncContext!=="undefined"&&typeof AsyncContext.Snapshot==="function"?function(I){return I&&AsyncContext.Snapshot.wrap(I)}:function(I){return I};var Oa5=function(I,C){this.create_=I;this.reset_=C;this.occupants_=0;this.JSC$7630_head_=null};
Oa5.prototype.get=function(){if(this.occupants_>0){this.occupants_--;var I=this.JSC$7630_head_;this.JSC$7630_head_=I.next;I.next=null}else I=this.create_();return I};
Oa5.prototype.put=function(I){this.reset_(I);this.occupants_<100&&(this.occupants_++,I.next=this.JSC$7630_head_,this.JSC$7630_head_=I)};var adY=function(){this.workTail_=this.workHead_=null};
adY.prototype.add=function(I,C){var y=m9K.get();y.set(I,C);this.workTail_?this.workTail_.next=y:this.workHead_=y;this.workTail_=y};
adY.prototype.remove=function(){var I=null;this.workHead_&&(I=this.workHead_,this.workHead_=this.workHead_.next,this.workHead_||(this.workTail_=null),I.next=null);return I};
var m9K=new Oa5(function(){return new MOq},function(I){return I.reset()}),MOq=function(){this.next=this.scope=this.fn=null};
MOq.prototype.set=function(I,C){this.fn=I;this.scope=C;this.next=null};
MOq.prototype.reset=function(){this.next=this.scope=this.fn=null};var IRY,ZLH,qBX,CIm;ZLH=!1;qBX=new adY;_.pW=function(I,C){IRY||CIm();ZLH||(IRY(),ZLH=!0);qBX.add(I,C)};
CIm=function(){var I=Promise.resolve(void 0);IRY=function(){I.then(BQF)}};var sIb=function(I){I.prototype.$goog_Thenable=!0},o5w=function(I){if(!I)return!1;
try{return!!I.$goog_Thenable}catch(C){return!1}};var yMP,kAS,Fg0,zke,T4u,cMY,wyq,Lgw,N4q,py5,FpO;_.eN=function(I,C){this.state_=0;this.result_=void 0;this.callbackEntriesTail_=this.callbackEntries_=this.parent_=null;this.hadUnhandledRejection_=this.executing_=!1;if(I!=_.nQ)try{var y=this;I.call(C,function(k){y.resolve_(2,k)},function(k){y.resolve_(3,k)})}catch(k){this.resolve_(3,k)}};
yMP=function(){this.next=this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
yMP.prototype.reset=function(){this.context=this.JSC$7641_onRejected=this.JSC$7641_onFulfilled=this.child=null;this.always=!1};
kAS=new Oa5(function(){return new yMP},function(I){I.reset()});
Fg0=function(I,C,y){var k=kAS.get();k.JSC$7641_onFulfilled=I;k.JSC$7641_onRejected=C;k.context=y;return k};
_.er=function(I){if(I instanceof _.eN)return I;var C=new _.eN(_.nQ);C.resolve_(2,I);return C};
_.mr=function(I){return new _.eN(function(C,y){y(I)})};
zke=function(I,C,y){u40(I,C,y,null)||_.pW(_.D0(C,I))};
_.QZ=function(I){return new _.eN(function(C,y){var k=I.length,F=[];if(k)for(var z=function(L,D){k--;F[L]=D;k==0&&C(F)},c=function(L){y(L)},r,w=0;w<I.length;w++)r=I[w],zke(r,_.D0(z,w),c);
else C(F)})};
T4u=function(I){return new _.eN(function(C){var y=I.length,k=[];if(y)for(var F=function(r,w,L){y--;k[r]=w?{fulfilled:!0,value:L}:{fulfilled:!1,reason:L};y==0&&C(k)},z,c=0;c<I.length;c++)z=I[c],zke(z,_.D0(F,c,!0),_.D0(F,c,!1));
else C(k)})};
cMY=function(I){return new _.eN(function(C,y){var k=I.length,F=[];if(k)for(var z=function(L){C(L)},c=function(L,D){k--;
F[L]=D;k==0&&y(F)},r,w=0;w<I.length;w++)r=I[w],zke(r,z,_.D0(c,w));
else C(void 0)})};
_.vP=function(){var I,C,y=new _.eN(function(k,F){I=k;C=F});
return new ek5(y,I,C)};
_.eN.prototype.then=function(I,C,y){return rMY(this,DI(typeof I==="function"?I:null),DI(typeof C==="function"?C:null),y)};
sIb(_.eN);wyq=function(I,C,y,k){i1c(I,Fg0(C||_.nQ,y||null,k))};
_.N2=function(I,C){C=DI(C);C=Fg0(C,C);C.always=!0;i1c(I,C);return I};
_.eN.prototype.finally=function(I){var C=this;I=DI(I);return new Promise(function(y,k){wyq(C,function(F){I();y(F)},function(F){I();
k(F)})})};
_.eN.prototype.thenCatch=function(I,C){return rMY(this,null,DI(I),C)};
_.eN.prototype.catch=_.eN.prototype.thenCatch;_.eN.prototype.cancel=function(I){if(this.state_==0){var C=new _.qJ(I);_.pW(function(){n5d(this,C)},this)}};
var n5d=function(I,C){if(I.state_==0)if(I.parent_){var y=I.parent_;if(y.callbackEntries_){for(var k=0,F=null,z=null,c=y.callbackEntries_;c&&(c.always||(k++,c.child==I&&(F=c),!(F&&k>1)));c=c.next)F||(z=c);F&&(y.state_==0&&k==1?n5d(y,C):(z?(k=z,k.next==y.callbackEntriesTail_&&(y.callbackEntriesTail_=k),k.next=k.next.next):PIw(y),Lgw(y,F,3,C)))}I.parent_=null}else I.resolve_(3,C)},i1c=function(I,C){I.callbackEntries_||I.state_!=2&&I.state_!=3||DL0(I);
I.callbackEntriesTail_?I.callbackEntriesTail_.next=C:I.callbackEntries_=C;I.callbackEntriesTail_=C},rMY=function(I,C,y,k){var F=Fg0(null,null,null);
F.child=new _.eN(function(z,c){F.JSC$7641_onFulfilled=C?function(r){try{var w=C.call(k,r);z(w)}catch(L){c(L)}}:z;
F.JSC$7641_onRejected=y?function(r){try{var w=y.call(k,r);w===void 0&&r instanceof _.qJ?c(r):z(w)}catch(L){c(L)}}:c});
F.child.parent_=I;i1c(I,F);return F.child};
_.eN.prototype.unblockAndFulfill_=function(I){this.state_=0;this.resolve_(2,I)};
_.eN.prototype.unblockAndReject_=function(I){this.state_=0;this.resolve_(3,I)};
_.eN.prototype.resolve_=function(I,C){this.state_==0&&(this===C&&(I=3,C=new TypeError("Ba")),this.state_=1,u40(C,this.unblockAndFulfill_,this.unblockAndReject_,this)||(this.result_=C,this.state_=I,this.parent_=null,DL0(this),I!=3||C instanceof _.qJ||py5(this,C)))};
var u40=function(I,C,y,k){if(I instanceof _.eN)return wyq(I,C,y,k),!0;if(o5w(I))return I.then(C,y,k),!0;if(_.sw(I))try{var F=I.then;if(typeof F==="function")return QIP(I,F,C,y,k),!0}catch(z){return y.call(k,z),!0}return!1},QIP=function(I,C,y,k,F){var z=!1,c=function(w){z||(z=!0,y.call(F,w))},r=function(w){z||(z=!0,k.call(F,w))};
try{C.call(I,c,r)}catch(w){r(w)}},DL0=function(I){I.executing_||(I.executing_=!0,_.pW(I.executeCallbacks_,I))},PIw=function(I){var C=null;
I.callbackEntries_&&(C=I.callbackEntries_,I.callbackEntries_=C.next,C.next=null);I.callbackEntries_||(I.callbackEntriesTail_=null);return C};
_.eN.prototype.executeCallbacks_=function(){for(var I;I=PIw(this);)Lgw(this,I,this.state_,this.result_);this.executing_=!1};
Lgw=function(I,C,y,k){if(y==3&&C.JSC$7641_onRejected&&!C.always)for(;I&&I.hadUnhandledRejection_;I=I.parent_)I.hadUnhandledRejection_=!1;if(C.child)C.child.parent_=null,N4q(C,y,k);else try{C.always?C.JSC$7641_onFulfilled.call(C.context):N4q(C,y,k)}catch(F){FpO.call(null,F)}kAS.put(C)};
N4q=function(I,C,y){C==2?I.JSC$7641_onFulfilled.call(I.context,y):I.JSC$7641_onRejected&&I.JSC$7641_onRejected.call(I.context,y)};
py5=function(I,C){I.hadUnhandledRejection_=!0;_.pW(function(){I.hadUnhandledRejection_&&FpO.call(null,C)})};
FpO=om;_.qJ=function(I){_.Im.call(this,I)};
_.s0(_.qJ,_.Im);_.qJ.prototype.name="cancel";var ek5=function(I,C,y){this.promise=I;this.resolve=C;this.reject=y};var VZ;_.IC=function(I,C){_.LW.call(this);this.JSC$7653_interval_=I||1;this.timerObject_=C||_.sF;this.boundTick_=(0,_.DD)(this.tick_,this);this.last_=_.CF()};
_.s0(_.IC,_.LW);_.u=_.IC.prototype;_.u.enabled=!1;_.u.JSC$7655_timer_=null;_.u.setInterval=function(I){this.JSC$7653_interval_=I;this.JSC$7655_timer_&&this.enabled?(this.stop(),this.start()):this.JSC$7655_timer_&&this.stop()};
_.u.tick_=function(){if(this.enabled){var I=_.CF()-this.last_;I>0&&I<this.JSC$7653_interval_*.8?this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_-I):(this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null),this.dispatchEvent("tick"),this.enabled&&(this.stop(),this.start()))}};
_.u.start=function(){this.enabled=!0;this.JSC$7655_timer_||(this.JSC$7655_timer_=this.timerObject_.setTimeout(this.boundTick_,this.JSC$7653_interval_),this.last_=_.CF())};
_.u.stop=function(){this.enabled=!1;this.JSC$7655_timer_&&(this.timerObject_.clearTimeout(this.JSC$7655_timer_),this.JSC$7655_timer_=null)};
_.u.disposeInternal=function(){_.IC.superClass_.disposeInternal.call(this);this.stop();delete this.timerObject_};
VZ=function(I,C,y){if(typeof I==="function")y&&(I=(0,_.DD)(I,y));else if(I&&typeof I.handleEvent=="function")I=(0,_.DD)(I.handleEvent,I);else throw Error("Ca");return Number(C)>2147483647?-1:_.sF.setTimeout(I,C||0)};
_.V1e=function(I){var C=null;return(new _.eN(function(y,k){C=VZ(function(){y(void 0)},I);
C==-1&&k(Error("Da"))})).thenCatch(function(y){_.sF.clearTimeout(C);
throw y;})};var FB=function(I){_.LL.call(this);this.streamzLogger=I;this.invocationCount=0;this.invocationLimit=100;this.shouldSendIsolatedPayload=!1;this.metricMap=new Map;this.disabledMetrics=new Set;this.flushInterval=3E4;this.JSC$7659_flushTimer=new _.IC(this.flushInterval);this.JSC$7659_flushTimer.listen("tick",this.snapshotAndFlush,!1,this);_.kq(this,this.JSC$7659_flushTimer)};
_.R(FB,_.LL);FB.prototype.sendIsolatedPayload=function(I){this.shouldSendIsolatedPayload=I;this.invocationLimit=1};
var jId=function(I){I.JSC$7659_flushTimer.enabled||I.JSC$7659_flushTimer.start();I.invocationCount++;I.invocationCount>=I.invocationLimit&&I.snapshotAndFlush()};
FB.prototype.snapshotAndFlush=function(){var I=this.metricMap.values();I=[].concat(_.Py(I)).filter(function(C){return C.cellMap.size});
I.length&&this.streamzLogger.flush(I,this.shouldSendIsolatedPayload);lRw(I);this.invocationCount=0;this.JSC$7659_flushTimer.enabled&&this.JSC$7659_flushTimer.stop()};
FB.prototype.addNewCounter=function(I){var C=_.wa.apply(1,arguments);this.metricMap.has(I)||this.metricMap.set(I,new fd0(I,C))};
FB.prototype.addNewEventMetric=function(I){var C=_.wa.apply(1,arguments);this.metricMap.has(I)||this.metricMap.set(I,new SCe(I,C))};
var Xye=function(I,C){return I.disabledMetrics.has(C)?void 0:I.metricMap.get(C)};
FB.prototype.JSC$7659_incrementCounter=function(I){this.JSC$7659_incrementCounterBy(I,1,_.wa.apply(1,arguments))};
FB.prototype.JSC$7659_incrementCounterBy=function(I,C){var y=_.wa.apply(2,arguments),k=Xye(this,I);k&&k instanceof fd0&&(k.JSC$7598_incrementCounterBy(C,y),jId(this))};
FB.prototype.record=function(I,C){var y=_.wa.apply(2,arguments),k=Xye(this,I);k&&k instanceof SCe&&(k.record(C,y),jId(this))};
var lRw=function(I){for(var C=0;C<I.length;C++)I[C].clear()};_.jg=function(I,C,y){y=y===void 0?{}:y;C=Error.call(this,C);this.message=C.message;"stack"in C&&(this.stack=C.stack);this.code=I;this.metadata=y;this.name="RpcError";Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.jg,Error);_.jg.prototype.toString=function(){var I="RpcError("+(EqO(this.code)||String(this.code))+")";this.message&&(I+=": "+this.message);return I};_.$Lw=_.sF.JSON.parse;_.lR=_.sF.JSON.stringify;_.RC=_.sF.JSON.parse;_.Rkm=function(I){switch(I){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 b10=function(I){switch(I){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:return!0;default:return!1}};var Yjm,GAP=function(){};
_.s0(GAP,_.h3W);GAP.prototype.createInstance=function(){return new XMLHttpRequest};
Yjm=new GAP;_.Xn=function(I){_.LW.call(this);this.headers=new Map;this.JSC$7668_xmlHttpFactory_=I||null;this.JSC$7668_active_=!1;this.JSC$7668_xhr_=null;this.JSC$7668_lastUri_="";this.JSC$7668_lastErrorCode_=0;this.JSC$7668_lastError_="";this.inAbort_=this.inOpen_=this.inSend_=this.errorDispatched_=!1;this.timeoutInterval_=0;this.JSC$7668_timeoutId_=null;this.responseType_="";this.JSC$7668_withCredentials_=!1};
_.s0(_.Xn,_.LW);var fRu=/^https?$/i,Sje=["POST","PUT"],Kg8=[],Bs9=function(I,C,y,k,F,z,c){var r=new _.Xn;Kg8.push(r);C&&r.listen("complete",C);r.listenOnce("ready",r.cleanupSend_);z&&(r.timeoutInterval_=Math.max(0,z));c&&(r.JSC$7668_withCredentials_=c);r.send(I,y,k,F)};
_.Xn.prototype.cleanupSend_=function(){this.dispose();_.Hs(Kg8,this)};
_.Xn.prototype.send=function(I,C,y,k){if(this.JSC$7668_xhr_)throw Error("Ea`"+this.JSC$7668_lastUri_+"`"+I);C=C?C.toUpperCase():"GET";this.JSC$7668_lastUri_=I;this.JSC$7668_lastError_="";this.JSC$7668_lastErrorCode_=0;this.errorDispatched_=!1;this.JSC$7668_active_=!0;this.JSC$7668_xhr_=this.createXhr();this.JSC$7668_xhr_.onreadystatechange=DI((0,_.DD)(this.onReadyStateChange_,this));try{this.inOpen_=!0,this.JSC$7668_xhr_.open(C,String(I),!0),this.inOpen_=!1}catch(c){AM8(this,c);return}I=y||"";y=new Map(this.headers);
if(k)if(Object.getPrototypeOf(k)===Object.prototype)for(var F in k)y.set(F,k[F]);else if(typeof k.keys==="function"&&typeof k.get==="function"){F=_.T(k.keys());for(var z=F.next();!z.done;z=F.next())z=z.value,y.set(z,k.get(z))}else throw Error("Fa`"+String(k));k=Array.from(y.keys()).find(function(c){return"content-type"==c.toLowerCase()});
F=_.sF.FormData&&I instanceof _.sF.FormData;!_.qz(Sje,C)||k||F||y.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");C=_.T(y);for(k=C.next();!k.done;k=C.next())y=_.T(k.value),k=y.next().value,y=y.next().value,this.JSC$7668_xhr_.setRequestHeader(k,y);this.responseType_&&(this.JSC$7668_xhr_.responseType=this.responseType_);"withCredentials"in this.JSC$7668_xhr_&&this.JSC$7668_xhr_.withCredentials!==this.JSC$7668_withCredentials_&&(this.JSC$7668_xhr_.withCredentials=this.JSC$7668_withCredentials_);
try{this.JSC$7668_timeoutId_&&(clearTimeout(this.JSC$7668_timeoutId_),this.JSC$7668_timeoutId_=null),this.timeoutInterval_>0&&(this.JSC$7668_timeoutId_=setTimeout(this.timeout_.bind(this),this.timeoutInterval_)),this.inSend_=!0,this.JSC$7668_xhr_.send(I),this.inSend_=!1}catch(c){AM8(this,c)}};
_.Xn.prototype.createXhr=function(){return this.JSC$7668_xmlHttpFactory_?this.JSC$7668_xmlHttpFactory_.createInstance():Yjm.createInstance()};
_.Xn.prototype.timeout_=function(){typeof Dtm!="undefined"&&this.JSC$7668_xhr_&&(this.JSC$7668_lastError_="Timed out after "+this.timeoutInterval_+"ms, aborting",this.JSC$7668_lastErrorCode_=8,this.dispatchEvent("timeout"),this.abort(8))};
var AM8=function(I,C){I.JSC$7668_active_=!1;I.JSC$7668_xhr_&&(I.inAbort_=!0,I.JSC$7668_xhr_.abort(),I.inAbort_=!1);I.JSC$7668_lastError_=C;I.JSC$7668_lastErrorCode_=5;g5q(I);v5q(I)},g5q=function(I){I.errorDispatched_||(I.errorDispatched_=!0,I.dispatchEvent("complete"),I.dispatchEvent("error"))};
_.Xn.prototype.abort=function(I){this.JSC$7668_xhr_&&this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1,this.JSC$7668_lastErrorCode_=I||7,this.dispatchEvent("complete"),this.dispatchEvent("abort"),v5q(this))};
_.Xn.prototype.disposeInternal=function(){this.JSC$7668_xhr_&&(this.JSC$7668_active_&&(this.JSC$7668_active_=!1,this.inAbort_=!0,this.JSC$7668_xhr_.abort(),this.inAbort_=!1),v5q(this,!0));_.Xn.superClass_.disposeInternal.call(this)};
_.Xn.prototype.onReadyStateChange_=function(){if(!this.isDisposed())if(this.inOpen_||this.inSend_||this.inAbort_)Wgu(this);else this.onReadyStateChangeEntryPoint_()};
_.Xn.prototype.onReadyStateChangeEntryPoint_=function(){Wgu(this)};
var Wgu=function(I){if(I.JSC$7668_active_&&typeof Dtm!="undefined")if(I.inSend_&&_.Rz(I)==4)setTimeout(I.onReadyStateChange_.bind(I),0);else if(I.dispatchEvent("readystatechange"),I.isComplete()){I.JSC$7668_active_=!1;try{if(I.isSuccess())I.dispatchEvent("complete"),I.dispatchEvent("success");else{I.JSC$7668_lastErrorCode_=6;try{var C=_.Rz(I)>2?I.JSC$7668_xhr_.statusText:""}catch(y){C=""}I.JSC$7668_lastError_=C+" ["+I.getStatus()+"]";g5q(I)}}finally{v5q(I)}}},v5q=function(I,C){if(I.JSC$7668_xhr_){I.JSC$7668_timeoutId_&&
(clearTimeout(I.JSC$7668_timeoutId_),I.JSC$7668_timeoutId_=null);
var y=I.JSC$7668_xhr_;I.JSC$7668_xhr_=null;C||I.dispatchEvent("ready");try{y.onreadystatechange=null}catch(k){}}};
_.Xn.prototype.isActive=function(){return!!this.JSC$7668_xhr_};
_.Xn.prototype.isComplete=function(){return _.Rz(this)==4};
_.Xn.prototype.isSuccess=function(){var I=this.getStatus(),C;if(!(C=b10(I))){if(I=I===0)I=rPq(String(this.JSC$7668_lastUri_)),I=!fRu.test(I);C=I}return C};
_.Rz=function(I){return I.JSC$7668_xhr_?I.JSC$7668_xhr_.readyState:0};
_.u=_.Xn.prototype;_.u.getStatus=function(){try{return _.Rz(this)>2?this.JSC$7668_xhr_.status:-1}catch(I){return-1}};
_.u.getResponseText=function(){try{return this.JSC$7668_xhr_?this.JSC$7668_xhr_.responseText:""}catch(I){return""}};
_.u.getResponse=function(){try{if(!this.JSC$7668_xhr_)return null;if("response"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.response;switch(this.responseType_){case "":case "text":return this.JSC$7668_xhr_.responseText;case "arraybuffer":if("mozResponseArrayBuffer"in this.JSC$7668_xhr_)return this.JSC$7668_xhr_.mozResponseArrayBuffer}return null}catch(I){return null}};
_.u.getAllResponseHeaders=function(){return this.JSC$7668_xhr_&&_.Rz(this)>=2?this.JSC$7668_xhr_.getAllResponseHeaders()||"":""};
_.u.getLastError=function(){return typeof this.JSC$7668_lastError_==="string"?this.JSC$7668_lastError_:String(this.JSC$7668_lastError_)};var kOz=function(){};
kOz.prototype.send=function(I,C,y){C=C===void 0?function(){}:C;
y=y===void 0?function(){}:y;
Bs9(I.url,function(k){k=k.target;k.isSuccess()?C(k.getResponseText()):y(k.getStatus())},I.requestType,I.body,I.requestHeaders,I.timeoutMillis,I.withCredentials)};
kOz.prototype.getTransmissionType=function(){return 1};var dLc=function(I,C){this.logger=I;this.event=C;this.startTime=uA()};
dLc.prototype.done=function(){this.logger.gW(this.event,uA()-this.startTime)};
var bR=function(){CW.apply(this,arguments);this.TEST_ONLY={getExperimentIds:function(){return[]}}};
_.R(bR,CW);var Yj=function(I,C,y){var k=uA();C=C();I.gW(y,uA()-k);return C},ezF=function(){bR.apply(this,arguments)};
_.R(ezF,bR);_.u=ezF.prototype;_.u.ufM=function(){};
_.u.jd=function(){};
_.u.gW=function(){};
_.u.logError=function(){};
_.u.iC=function(){};
_.u.sQM=function(){};
_.u.fk4=function(){};
_.u.vj4=function(){};
_.u.nzB=function(){};
var xL5=function(I){bR.call(this);var C=this;this.logger=I;this.TEST_ONLY={m84:function(){return C.logger},
getExperimentIds:function(){return C.logger.TEST_ONLY.getExperimentIds()}};
this.addOnDisposeCallback(function(){return void C.logger.dispose()})};
_.R(xL5,bR);_.u=xL5.prototype;_.u.update=function(I){this.logger.dispose();this.logger=I};
_.u.jd=function(I){this.logger.jd(I)};
_.u.gW=function(I,C){this.logger.gW(I,C)};
_.u.logError=function(I){this.logger.logError(I)};
_.u.iC=function(){this.logger.iC()};
_.u.sQM=function(I){this.logger.sQM(I)};
_.u.fk4=function(I){this.logger.fk4(I)};
_.u.vj4=function(I){this.logger.vj4(I)};
_.u.nzB=function(I){this.logger.nzB(I)};
_.u.ufM=function(I){this.logger.ufM(I)};
var qjq=function(I,C){_.LL.call(this);var y=this;this.callback=I;this.s7G=C;this.mot=-C;this.addOnDisposeCallback(function(){return void clearTimeout(y.timer)})};
_.R(qjq,_.LL);var mLu=function(I){if(I.timer===void 0){var C=Math.max(0,I.mot+I.s7G-uA());I.timer=setTimeout(function(){try{I.callback()}finally{I.mot=uA(),I.timer=void 0}},C)}},Z1d=function(I,C){bR.call(this);
this.metrics=I;this.sC=C};
_.R(Z1d,bR);_.u=Z1d.prototype;_.u.ufM=function(I){this.metrics.diM.record(I,this.sC)};
_.u.jd=function(I){this.metrics.eventCount.increment(I,this.sC)};
_.u.gW=function(I,C){this.metrics.gYa.record(C,I,this.sC)};
_.u.logError=function(I){this.metrics.errorCount.increment(I,this.sC)};
_.u.sQM=function(I){this.metrics.hS9.increment(I,this.sC)};
_.u.fk4=function(I){this.metrics.eEx.increment(I,this.sC)};
_.u.vj4=function(I){this.metrics.xPs.increment(I,this.sC)};
var ze=function(I,C){C=C===void 0?[]:C;var y={sC:I.sC||"_",ftb:I.ftb||[],kVI:I.kVI|0,destinationUrl:I.destinationUrl,mvq:I.mvq||function(){},
paM:I.paM||function(z,c){return cfm(z,c,y.mvq,y.destinationUrl)}},k=y.paM("49",y.ftb.concat(C));
Z1d.call(this,C0K(k),y.sC);var F=this;this.TEST_ONLY={getExperimentIds:function(){return F.options.ftb.concat(F.dNd).sort(function(z,c){return z-c})}};
this.options=y;this.service=k;this.zG6=!I.paM;this.flushDebouncer=new qjq(function(){return void F.service.snapshotAndFlush()},y.kVI);
this.addOnDisposeCallback(function(){F.flushDebouncer.dispose();F.zG6&&F.service.dispose()});
(this.dNd=C.slice()).sort(_.Fq)};
_.R(ze,Z1d);ze.prototype.nzB=function(I){var C=this;I=I.slice();I.sort(_.Fq);_.u8(I,this.dNd)||(this.flushDebouncer.dispose(),this.zG6&&this.service.dispose(),this.service=this.options.paM("49",this.options.ftb.concat(I)),this.flushDebouncer=new qjq(function(){return void C.service.snapshotAndFlush()},this.options.kVI),this.metrics=C0K(this.service),this.dNd=I)};
ze.prototype.iC=function(){mLu(this.flushDebouncer)};var EEs=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EEs,_.GR);_.h6K=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(_.h6K,_.GR);var Od=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,0,Od.messageId)};
_.R(Od,_.GR);var B4e=_.aSm(Od);Od.messageId="bfkj";var Gez=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Gez,_.GR);var E5e=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(E5e,_.GR);var hku=_.Ha(E5e);_.ug=function(){var I=this;this.promise=new Promise(function(C,y){I.resolve=C;I.reject=y})};_.G9=function(I){_.LL.call(this);var C=this;this.tlY=Math.floor(Math.random()*200);this.dfF=new E5e;if("challenge"in I&&B4e(I.challenge)){var y=_.b4(I.challenge,4,void 0,dS);var k=_.b4(I.challenge,5,void 0,dS);_.b4(I.challenge,7,void 0,dS)&&(this.dfF=hku(_.b4(I.challenge,7,void 0,dS)))}else y=I.program,k=I.globalName;this.addOnDisposeCallback(function(){var b,S,A;return _.e(function(x){if(x.nextAddress==1)return _.n(x,C.rMY,2);b=x.yieldResult;S=b.b4X;(A=S)==null||A();_.oI(x)})});
this.logger=rfK(I.zr||{},this.dfF,I.exb);_.kq(this,this.logger);var F=new _.ug;this.rMY=F.promise;this.logger.jd("t");var z=this.logger.share(),c=new dLc(z,"t"),r=function(b,S,A,x){if(!C.logger.isDisposed()){var B="k";S?B="h":A&&(B="u");B!=="k"?x!==0&&(C.logger.jd(B),C.logger.gW(B,b)):C.tlY<=0?(C.logger.jd(B),C.logger.gW(B,b),C.tlY=Math.floor(Math.random()*200)):C.tlY--}},w=function(b,S,A,x){Promise.resolve().then(function(){c.done();
z.iC();z.dispose();F.resolve({yzH:b,b4X:S,zye:A,zWe:x})})};
if(!_.sF[k])throw this.logger.logError(25),Error("Ga");if(!_.sF[k].a)throw this.logger.logError(26),Error("Ha");try{var L=_.sF[k].a;k=[];for(var D=[],p=fDF(this.dfF),Q=0;Q<p.length;Q++)k.push(p[Q]),D.push(1);var X=SBz(this.dfF);for(p=0;p<X.length;p++)k.push(X[p]),D.push(2);this.cWS=_.T(L(y,w,!0,I.nyP,r,[k,D],_.b4(this.dfF,5))).next().value;this.dNI=F.promise.then(function(){})}catch(b){throw this.logger.logError(28),b;
}};
_.R(_.G9,_.LL);_.G9.prototype.snapshot=function(I){if(this.isDisposed())throw Error("Ia");this.logger.jd("n");var C=this.logger.share();return this.rMY.then(function(y){var k=y.yzH;return new Promise(function(F){var z=new dLc(C,"n");k(function(c){z.done();C.ufM(c.length);C.iC();C.dispose();F(c)},[I.tY,
I.gbN,I.bv0,I.rhA])})})};
_.ULu=function(I,C){if(I.isDisposed())throw Error("Ia");I.logger.jd("n");var y=Yj(I.logger,function(){return I.cWS([C.tY,C.gbN,C.bv0,C.rhA])},"n");
I.logger.ufM(y.length);I.logger.iC();return y};
_.G9.prototype.k64=function(I){this.rMY.then(function(C){var y;(y=C.zye)==null||y(I)})};
_.G9.prototype.y2B=function(I,C){return this.rMY.then(function(y){var k;return(k=y.zWe)==null?void 0:k(I,C,!1)})};
_.G9.prototype.qWN=function(){return this.logger.share()};var H1w=function(){this.fLA={};this.zNs=null},t1e=function(){H1w.instance||(H1w.instance=new H1w);
return H1w.instance},O1c=function(I,C){return JMu(I,_.MS(C,EEs,1,dS),_.MS(C,_.h6K,2,dS),_.b4(C,3,void 0,dS))},JMu=function(I,C,y,k){if(!C&&!y)return Promise.resolve();
if(!k)return KCt(C,y);var F;(F=I.fLA)[k]||(F[k]=new Promise(function(z,c){KCt(C,y).then(function(){I.zNs=k;z()},function(r){delete I.fLA[k];
c(r)})}));
return I.fLA[k]};var aRP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(aRP,_.GR);var M10=function(I,C){return _.ac(I,1,C)},Io0=function(I,C){return _.ac(I,2,C)};var fW=function(I){_.LL.call(this);var C=this;this.options=I;this.nPN=new _.ug;this.dNI=this.nPN.promise;this.uGB=new _.ug;this.b7N=1;this.s4i=new _.ug;this.nvF=[];this.tjN=I.tjN||function(){};
this.logger=new xL5(rfK(I.zr||{}));C3S(this,I.bz,I.yML,I.i6w,I.eJw,Object.assign({},sEm,I.iJb||{}));this.addOnDisposeCallback(function(){return void oFm(C)})};
_.R(fW,_.LL);fW.prototype.snapshot=function(I){var C=this;return _.e(function(y){switch(y.nextAddress){case 1:if(C.isDisposed())throw Error("Ia");if(C.sK||C.l7z){y.jumpTo(2);break}return _.n(y,C.uGB.promise,2);case 2:if(!C.sK){y.jumpTo(4);break}return _.n(y,C.sK.snapshot(I),5);case 5:return y.return(y.yieldResult);case 4:throw C.l7z;}})};
var yi5=function(I){var C;return _.e(function(y){if(I.isDisposed())throw Error("Ia");(C=I.hV)!=null&&(C.endTimeMs=0,C.resolver(1));return _.n(y,I.s4i.promise,0)})},oFm=function(I){I.l7z=Error("Ka");
I.uGB.resolve();KcO(I.nPN.promise);I.nPN.reject(Error("Ka"));I.logger.dispose();Promise.all(I.nvF).then(function(){var y;return _.e(function(k){(y=I.sK)==null||y.dispose();I.sK=void 0;_.oI(k)})});
I.nvF=[];var C;(C=I.hV)!=null&&(C.endTimeMs=0,C.resolver(1));KcO(I.s4i.promise);I.s4i.reject(Error("Ka"))};
fW.prototype.k64=function(I){var C,y;(C=this.sK)==null||(y=C.k64)==null||y.call(C,I)};
fW.prototype.y2B=function(I,C){var y,k,F;return(F=(y=this.sK)==null?void 0:(k=y.y2B)==null?void 0:k.call(y,I,C))!=null?F:Promise.resolve()};
var kT0=function(I,C){var y=I.tjN;I.tjN=function(){y();C()}},Fwe=function(I,C){I.isDisposed()||(I.sK=C,I.logger.update(C.qWN()),I.uGB.resolve(),I.nPN.resolve(void 0),I.tjN())};
fW.prototype.handleError=function(I){if(!this.isDisposed()){this.l7z=I;this.uGB.resolve();var C,y;(y=(C=this.options).lzH)==null||y.call(C,I)}};
var uJS=function(I,C){C&&(Promise.all(I.nvF).then(function(){return void C.dispose()}),I.nvF=[])},Sg=function(I,C){I.b7N=C;
var y,k;(k=(y=I.options).y2m)==null||k.call(y,C)},zCw=function(I){I.isDisposed()||(I.s4i.resolve(),I.s4i=new _.ug)},C3S=function(I,C,y,k,F,z){k=k===void 0?t1e():k;
F=F===void 0?Promise.resolve(void 0):F;var c,r,w,L,D,p,Q,X,b,S,A,x;_.e(function(B){switch(B.nextAddress){case 1:return _.n(B,0,3);case 3:r=null;if(!c){B.jumpTo(6);break}Sg(I,7);_.aM(B,7);return _.n(B,iA(c.snapshot({}),z.kLk,function(){return Promise.resolve("E:CTO")}),9);
case 9:r=B.yieldResult;_.dC(B,6);break;case 7:_.sj(B),r="E:UCE";case 6:w=void 0,L=c?z.fFx:z.k2P,D=new CL(L,z.vY0,z.ssk,z.dUG),p=1;case 10:if(!(p<=z.maxAttempts)){B.jumpTo(12);break}if(p===1){B.jumpTo(13);break}Sg(I,0);I.hV=new T0e(D.getValue(),z.eNq,z.f7Q);return _.n(B,I.hV.promise,14);case 14:Q=B.yieldResult,I.hV=void 0,Q===1?(p=1,D.reset()):QMe(D);case 13:_.aM(B,15);X=void 0;if(y){X=y;B.jumpTo(17);break}Sg(I,5);b=k.zNs;return _.n(B,iA(cie(C,b,r),z.vX0,function(){return Promise.reject(Error("La"))}),
18);
case 18:X=B.yieldResult;case 17:return Sg(I,3),_.n(B,iA(O1c(k,X),z.kJx,function(){return Promise.reject(Error("Ma"))}),19);
case 19:return Sg(I,8),_.n(B,F,20);case 20:return S=new _.G9({challenge:X,zr:I.options.zr,nyP:I.options.nyP}),_.n(B,iA(S.dNI,z.tM0,function(){return Promise.reject(Error("Na"))}),21);
case 21:w=S;B.jumpTo(12);break;case 15:A=_.sj(B),I.handleError(A),zCw(I);case 11:p++;B.jumpTo(10);break;case 12:if(I.isDisposed()){B.jumpTo(5);break}w&&(y=void 0,uJS(I,c),c=w,Fwe(I,w),zCw(I));Sg(I,2);I.hV=new T0e(z.dRs,z.eNq,z.f7Q);return _.n(B,I.hV.promise,22);case 22:I.hV=void 0;if(I.isDisposed()){B.jumpTo(5);break}B.jumpTo(3);break;case 5:(x=c)==null||x.dispose(),_.oI(B)}})};
fW.prototype.qWN=function(){return this.logger.share()};
var sEm={dRs:432E5,eNq:3E5,f7Q:10,kLk:1E4,vX0:3E4,kJx:3E4,tM0:6E4,k2P:1E3,fFx:6E4,vY0:6E5,ssk:.25,dUG:2,maxAttempts:10},T0e=function(I,C,y){var k=this;this.endTimeMs=Date.now()+I;this.promise=new Promise(function(z){k.resolver=z});
var F=function(){var z=k.endTimeMs-Date.now();z<=y?k.resolver(0):setTimeout(F,Math.min(z,C))};
F()};var eCe,v4K=(eCe=Math.imul)!=null?eCe:function(I,C){return I*C|0},wQ=[196,
200,224,18],KW=function(I,C,y){y=y===void 0?[]:y;this.maxItems=I;this.yX=C===void 0?0:C;this.kp=y},ri0=function(I){var C=globalThis.sessionStorage.getItem("iU5q-!O9@$");
if(!C)return new KW(I);var y=C.split(",");if(y.length<2)return globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KW(I);C=y.slice(1);C.length===1&&C[0]===""&&(C=[]);y=Number(y[0]);return isNaN(y)||y<0||y>C.length?(globalThis.sessionStorage.removeItem("iU5q-!O9@$"),new KW(I)):new KW(I,y,C)};
KW.prototype.serialize=function(){return String(this.yX)+","+this.kp.join()};
KW.prototype.insert=function(I,C){var y=void 0;if(this.kp[this.yX]!==I){var k=this.kp.indexOf(I);k!==-1?(this.kp.splice(k,1),k<this.yX&&this.yX--,this.kp.splice(this.yX,0,I)):(y=this.kp[this.yX],this.kp[this.yX]=I)}this.yX=(this.yX+1)%this.maxItems;I=AfY("iU5q-!O9@$",this.serialize());y&&I&&C(y);return I};
var ieq=function(I,C){this.logger=C;try{var y=globalThis.sessionStorage&&!!globalThis.sessionStorage.getItem&&!!globalThis.sessionStorage.setItem&&!!globalThis.sessionStorage.removeItem}catch(k){y=!1}y&&(this.index=ri0(I))},wiu=function(I,C,y,k,F){var z=I.index?Yj(I.logger,function(){return quW(I.index,dTK(C),y,k,F)},"W"):"u";
I.logger.vj4(z)},nFP=function(I,C,y){var k=_.T(I.index?Yj(I.logger,function(){return mTm(dTK(C),y)},"R"):["u"]),F=k.next().value;
k=k.next().value;I.logger.fk4(F);return k};var P3Y={toString:function(I){var C=[],y=0;I-=-2147483648;C[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ".charAt(I%52);for(I=Math.floor(I/52);I>0;)C[y++]="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789".charAt(I%62),I=Math.floor(I/62);return C.join("")}};var pim=function(I){I=Lwm(I);for(var C=2654435769,y=2654435769,k=314159265,F=I.length,z=F,c=0,r=function(){C-=y;C-=k;C^=k>>>13;y-=k;y-=C;y^=C<<8;k-=C;k-=y;k^=y>>>13;C-=y;C-=k;C^=k>>>12;y-=k;y-=C;y^=C<<16;k-=C;k-=y;k^=y>>>5;C-=y;C-=k;C^=k>>>3;y-=k;y-=C;y^=C<<10;k-=C;k-=y;k^=y>>>15};z>=12;z-=12,c+=12)C+=Dbd(I,c),y+=Dbd(I,c+4),k+=Dbd(I,c+8),r();
k+=F;switch(z){case 11:k+=I[c+10]<<24;case 10:k+=I[c+9]<<16;case 9:k+=I[c+8]<<8;case 8:y+=I[c+7]<<24;case 7:y+=I[c+6]<<16;case 6:y+=I[c+5]<<8;case 5:y+=I[c+4];case 4:C+=I[c+3]<<24;case 3:C+=I[c+2]<<16;case 2:C+=I[c+1]<<8;case 1:C+=I[c]}r();return P3Y.toString(k)},Lwm=function(I){for(var C=[],y=0;y<I.length;y++)C.push(I.charCodeAt(y));
return C},Dbd=function(I,C){return I[C]+(I[C+1]<<8)+(I[C+2]<<16)+(I[C+3]<<24)};var QEw,AZ=function(I){_.LL.call(this);this.logger=I;this.vci=new _.ug;this[QEw]=this.dispose};
_.R(AZ,_.LL);var N0P=function(I,C){var y=setTimeout(function(){I.vci.resolve()},C);
I.addOnDisposeCallback(function(){return void clearTimeout(y)})};
AZ.prototype.cE=function(I,C){var y=this.cA(I);C==null||C(y);return Yj(this.logger,function(){return _.HR(y,2)},this.e6V)};
var Vle=function(I,C,y,k){return Yj(I.logger,function(){return y?I.cE(C,k):I.cA(C,k)},I.jQ)};
QEw=Symbol.dispose;var jE5=function(I,C,y,k){AZ.call(this,I);this.mdP=C;this.lNQ=y;this.jQ="m";this.e6V="x";this.gMQ=0;N0P(this,k)};
_.R(jE5,AZ);jE5.prototype.cA=function(I,C){var y=this;this.logger.jd(this.jQ);++this.gMQ>=this.lNQ&&this.vci.resolve();var k=I();I=Yj(this.logger,function(){return y.mdP(k)},"C");
if(I===void 0)throw new MY(17,"YNJ:Undefined");if(!(I instanceof Uint8Array))throw new MY(18,"ODM:Invalid");C==null||C(I);return I};
var lod=function(I,C,y){AZ.call(this,I);this.dnL=C;this.jQ="f";this.e6V="z";N0P(this,y)};
_.R(lod,AZ);lod.prototype.cA=function(){return this.dnL};
var Xic=function(I,C,y){AZ.call(this,I);this.ebG=C;this.jQ="w";this.e6V="z";N0P(this,y)};
_.R(Xic,AZ);Xic.prototype.cA=function(){var I=this;return Yj(this.logger,function(){return _.T0(I.ebG)},"d")};
Xic.prototype.cE=function(){return this.ebG};
var $bm=function(I,C){AZ.call(this,I);this.error=C;this.jQ="e";this.e6V="y"};
_.R($bm,AZ);var RCe=function(I,C){var y=(C(I.error.message)+":"+C(I.error.stack)).substring(0,2048);C=y.length+1;y=Z$X(y);var k=new Uint8Array(4+y.length);k.set([42,C&127|128,C>>7,I.error.code]);k.set(y,4);return k};
$bm.prototype.cA=function(){if(this.mHV)return this.mHV;this.mHV=RCe(this,function(I){return"_"+pim(I)});
return RCe(this,function(I){return I})};
var beS=function(I,C,y){AZ.call(this,I);this.fHH=C;this.clientState=y;this.jQ="S";this.e6V="q"};
_.R(beS,AZ);beS.prototype.cA=function(){var I=Math.floor(Date.now()/1E3),C=[Math.random()*255,Math.random()*255],y=C.concat([this.fHH&255,this.clientState],[I>>24&255,I>>16&255,I>>8&255,I&255]);I=new Uint8Array(2+y.length);I[0]=34;I[1]=y.length;I.set(y,2);y=I.subarray(2);for(var k=C=C.length;k<y.length;++k)y[k]^=y[k%C];this.logger.sQM(this.clientState);return I};var Y1e={unI:3E4,f7e:2E4},g1=function(I){_.LL.call(this);var C=this;this.owq=new _.ug;this.z0V=0;this.eb=void 0;this.state=2;this.uQ=I.uQ;this.bz=I.bz;this.iJb=Object.assign({},Y1e,I.iJb||{});this.logger=I.uQ.qWN();var y;this.onError=(y=I.onError)!=null?y:function(){};
this.pFg=I.pFg||!1;if(GTP(I)){var k=this.uQ;this.dFs=function(){return yi5(k).catch(function(c){c=C.reportError(new MY(C.av?20:32,"TRG:Disposed",c));C.eb=c;var r;(r=C.av)==null||r.dispose();C.av=void 0;C.owq.reject(c)})};
kT0(k,function(){return void foc(C)});
k.b7N===2&&foc(this)}else this.dFs=I.b9A,foc(this);var F=this.logger.share();F.jd("o");var z=new dLc(F,"o");this.owq.promise.then(function(){z.done();F.iC();F.dispose()},function(){return void F.dispose()});
this.addOnDisposeCallback(function(){C.av?(C.av.dispose(),C.av=void 0):C.eb?C.logger.iC():(C.eb=C.reportError(new MY(32,"TNP:Disposed")),C.logger.iC(),C.owq.reject(C.eb))});
_.kq(this,this.logger)};
_.R(g1,_.LL);g1.prototype.vSi=function(){return this.owq.promise};
var S1b=function(I,C){if(!(C instanceof MY))if(C instanceof _.jg){var y=Error(C.toString());y.stack=C.stack;C=new MY(11,"EBH:Error",y)}else C=new MY(12,"BSO:Unknown",C);return I.reportError(C)},foc=function(I){var C,y,k,F,z,c,r,w,L,D,p,Q,X,b,S;
return _.e(function(A){switch(A.nextAddress){case 1:C=void 0;I.z0V++;y=new _.ug;I.uQ instanceof fW&&I.uQ.nvF.push(y.promise);if(!I.pFg){A.jumpTo(2);break}k=new _.ug;setTimeout(function(){return void k.resolve()});
return _.n(A,k.promise,2);case 2:return F=I.logger.share(),_.aM(A,4,5),I.state=5,z={},c=[],_.n(A,iA(I.uQ.snapshot({tY:z,bv0:c}),I.iJb.f7e,function(){return Promise.reject(new MY(15,"MDA:Timeout"))}),7);
case 7:r=A.yieldResult;if(I.isDisposed())throw new MY(I.av?20:32,"MDA:Disposed");w=c[0];I.state=6;return _.n(A,iA(Kww(I.bz,r),I.iJb.unI,function(){return Promise.reject(new MY(10,"BWB:Timeout"))}),8);
case 8:L=A.yieldResult;if(I.isDisposed())throw new MY(I.av?20:32,"BWB:Disposed");I.state=7;C=Yj(F,function(){var B=AiS(I,L,y,w);B.vci.promise.then(function(){return void I.dFs()});
return B},"i");
case 5:_.MM(A);F.dispose();_.C1(A,6);break;case 4:D=_.sj(A);(p=C)==null||p.dispose();if(!I.eb){Q=S1b(I,D);y.resolve();var x;if(x=I.uQ instanceof fW&&I.z0V<2)a:if(D instanceof MY)x=D.code!==32&&D.code!==20&&D.code!==10;else{if(D instanceof _.jg)switch(D.code){case 2:case 13:case 14:case 4:break;default:x=!1;break a}x=!0}if(x)return X=(1+Math.random()*.25)*(I.av?6E4:1E3),b=setTimeout(function(){return void I.dFs()},X),I.addOnDisposeCallback(function(){return void clearTimeout(b)}),A.return();
I.eb=Q}F.logError(I.av?13:14);I.owq.reject(I.eb);return A.return();case 6:I.state=8,I.z0V=0,(S=I.av)==null||S.dispose(),I.av=C,I.owq.resolve(),_.oI(A)}})},AiS=function(I,C,y,k){var F=gc9(C,2)*1E3;
if(F<=0)throw new MY(31,"TTM:Invalid");if(_.b4(C,4))return new Xic(I.logger,_.b4(C,4),F);if(!gc9(C,3))return new lod(I.logger,DpI(_.LF(C,1)),F);if(!k)throw new MY(4,"PMD:Undefined");k=k(DpI(_.LF(C,1)));if(!(k instanceof Function))throw new MY(16,"APF:Failed");I.jEq=Math.floor((Date.now()+F)/1E3);I=new jE5(I.logger,k,gc9(C,3),F);I.addOnDisposeCallback(function(){return void y.resolve()});
return I};
g1.prototype.cA=function(I){return gFY(this,Object.assign({},I),!1)};
g1.prototype.cE=function(I){return gFY(this,Object.assign({},I),!0)};
g1.prototype.jOg=function(I){if(I>150)return!1;try{return this.cache=new ieq(I,this.logger),!0}catch(C){return this.reportError(new MY(22,"GBJ:init",C)),!1}};
g1.prototype.reportError=function(I){this.logger.logError(I.code);this.onError(I);return I};
var vFb=function(I,C){C=C instanceof MY?C:new MY(5,"TVD:error",C);return I.reportError(C)},gFY=function(I,C,y){try{if(I.isDisposed())throw new MY(21,"BNT:disposed");
if(!I.av&&I.eb)throw I.eb;var k,F;return(F=(k=WwY(I,C,y))!=null?k:dbP(I,C,y))!=null?F:xbd(I,C,y)}catch(z){if(!C.emi)throw vFb(I,z);return q1e(I,y,z)}},WwY=function(I,C,y){var k;
return(k=I.av)==null?void 0:Vle(k,function(){return mbb(I,C)},y,function(F){var z;
if(I.av instanceof jE5&&((z=C.hs)==null?0:z.cqQ))try{var c;(c=I.cache)==null||wiu(c,mbb(I,C),F,C.hs.nE4,I.jEq-120)}catch(r){I.reportError(new MY(24,"ELX:write",r))}})},dbP=function(I,C,y){var k;
if((k=C.hs)!=null&&k.vYs)try{var F,z=(F=I.cache)==null?void 0:nFP(F,mbb(I,C),C.hs.nE4);return z?y?Yj(I.logger,function(){return _.HR(z,2)},"a"):z:void 0}catch(c){I.reportError(new MY(23,"RXO:read",c))}},xbd=function(I,C,y){var k={stack:[],
error:void 0,hasError:!1};try{if(!C.bCN)throw new MY(29,"SDF:notready");return Vle(cCY(k,new beS(I.logger,0,I.state)),function(){return mbb(I,C)},y)}catch(F){k.error=F,k.hasError=!0}finally{woH(k)}},q1e=function(I,C,y){var k={stack:[],
error:void 0,hasError:!1};try{var F=vFb(I,y);return Vle(cCY(k,new $bm(I.logger,F)),function(){return[]},C)}catch(z){k.error=z,k.hasError=!0}finally{woH(k)}},mbb=function(I,C){return C.bnF?C.bnF:C.tY?Yj(I.logger,function(){return C.bnF=Z$X(C.tY)},"c"):[]},GTP=function(I){return qq(function(C){if(!B5Y(C))return!1;
for(var y=_.T(Object.entries(I)),k=y.next();!k.done;k=y.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;if(!(k in C)){if(F.isOptionalGuard_doNotManuallySetPrettyPlease===!0)continue;return!1}if(!F(C[k]))return!1}return!0})}({uQ:function(I){return qq(function(C){return C instanceof I})}(fW)},"");var Zew=function(){var I=_.o_();this.JSC$7783_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",Ji("cookie_enabled"),Ji("cookie_3p_enabled"),_.aE("browser"))};
Zew.prototype.increment=function(I,C,y){this.JSC$7783_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/debug/browser_cookie_setting",I,C,y)};
var FBI=function(){var I=_.o_();this.JSC$7807_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/stickiness/reload",O1("tick"),Ji("from_st_cookie"))};
FBI.prototype.increment=function(I,C){this.JSC$7807_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/stickiness/reload",I,C)};
var B0d=function(){var I=_.o_();this.JSC$7813_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",_.aE("status"))};
B0d.prototype.increment=function(I){this.JSC$7813_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/high_frequency_cookie_rotation",I)};
var EF0=function(){var I=_.o_();this.JSC$7816_streamzService=I;I.addNewCounter("/client_streamz/youtube/ads/desktop_masthead",_.aE("stage"),Ji("is_using_ytd_player"),Ji("has_expandable_tiles"))};
EF0.prototype.increment=function(I,C,y){this.JSC$7816_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/ads/desktop_masthead",I,C,y)};
var hC8=function(){var I=_.o_();this.JSC$7819_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/response_signature",_.aE("check_status"))};
hC8.prototype.increment=function(I){this.JSC$7819_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/response_signature",I)};
var UbP=function(){var I=_.o_();this.JSC$7822_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/e_sig_log",_.aE("sig"),O1("de"))};
UbP.prototype.increment=function(I,C){this.JSC$7822_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_log",I,C)};
var Hee=function(){var I=_.o_();this.JSC$7825_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/e_sig_en",_.aE("sig"),O1("de"))};
Hee.prototype.increment=function(I,C){this.JSC$7825_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/e_sig_en",I,C)};
_.tlY=function(){var I=_.o_();this.JSC$7828_streamzService=I;I.addNewCounter("/client_streamz/youtube/web/enforcement_intent",_.aE("action"))};
_.tlY.prototype.increment=function(I){this.JSC$7828_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web/enforcement_intent",I)};var vlH=function(){var I=_.o_();this.JSC$7831_streamzService=I;I.addNewCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",_.aE("tagname"))};
vlH.prototype.increment=function(I){this.JSC$7831_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/web_creator/polymer_template_query_fallback_events",I)};var vf=window;var Jim=(new Date).getTime();var Oeq=function(I){this.servicePromise_=I;I.then((0,_.DD)(function(){},this),function(){},this)},aoe=function(I,C,y){I.servicePromise_.then(function(k){var F=k[C];
if(!F)throw Error("Oa`"+C);return F.apply(k,y)})},CA0=function(I,C,y){for(var k=Array(arguments.length-2),F=2;F<arguments.length;F++)k[F-2]=arguments[F];
F=Mlq(I,C).then(function(z){return z.apply(null,k)},function(z){z=Error("Pa`"+C+"`"+I,{cause:z});
delete IDq[C];return _.mr(z)});
return new Oeq(F)},IDq={},Mlq=function(I,C){var y=IDq[C];
if(y)return y;y=(y=_.d5(C))?_.er(y):(new _.eN(function(k,F){var z=(new lB(document)).createElement("SCRIPT");z.async=!0;_.fa(z,_.Ca(XRP(I)));z.onload=z.onreadystatechange=function(){z.readyState&&z.readyState!="loaded"&&z.readyState!="complete"||k()};
z.onerror=function(c){F(Error("Qa`"+C+"`"+I,{cause:c}))};
(document.head||document.getElementsByTagName("head")[0]).appendChild(z)})).then(function(){var k=_.d5(C);
if(!k)throw Error("Ra`"+C+"`"+I);return k});
return IDq[C]=y};var s1S={GOOGLE:"https://www.google.com",SUPPORT:"https://support.google.com",PLAY:"https://play.google.com"},ykS=function(){var I=this;this.rsaForList=[];this.rsaForPromises=[];this.initialize=BeY(function(){return _.e(function(C){if(C.nextAddress==1)return typeof document==="undefined"||document.requestStorageAccessFor===void 0||navigator.permissions===void 0||navigator.permissions.query===void 0||location.hostname.match(".+\\.google\\.com$")?C.return(Promise.resolve()):_.n(C,oqY(I),2);I.rsaForList.length>
0&&document.addEventListener("click",I.requestAccessForHelpPanel);_.oI(C)})});
this.requestAccessForHelpPanel=function(){if(!(I.rsaForPromises.length>0)){for(var C=_.T(I.rsaForList),y=C.next();!y.done;y=C.next()){y=y.value;try{I.rsaForPromises.push(document.requestStorageAccessFor(y))}catch(k){}}Promise.all(I.rsaForPromises).then(function(){}).catch(function(){}).finally(function(){I.reset()})}}};
ykS.prototype.reset=function(){document.removeEventListener("click",this.requestAccessForHelpPanel)};
var oqY=function(I){var C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:C=_.T(Object.values(s1S)),y=C.next();case 2:if(y.done){z.jumpTo(0);break}k=y.value;_.aM(z,5);return _.n(z,navigator.permissions.query({name:"top-level-storage-access",requestedOrigin:k}),7);case 7:F=z.yieldResult;F.state!=="granted"&&I.rsaForList.push(k);_.dC(z,3);break;case 5:_.sj(z);z.jumpTo(0);break;case 3:y=C.next(),z.jumpTo(2)}})};(new ykS).initialize();var ke8=function(I){this.JSC$7845_loader_=I};
ke8.prototype.startHelp=function(I){aoe(this.JSC$7845_loader_,"startHelp",arguments)};
ke8.prototype.JSC$7847_loadChatSupport=function(I){aoe(this.JSC$7845_loader_,"loadChatSupport",arguments)};
var uBc=function(I,C){C=C||{};I=CA0(Fc0,"help.service.Lazy.create",I,{apiKey:C.apiKey||C.apiKey,asxUiUri:C.asxUiUri||C.asxUiUri,environment:C.environment||C.environment,flow:C.flow||C.flow,frdProductData:C.frdProductData||C.frdProductData,frdProductDataSerializedJspb:C.frdProductDataSerializedJspb||C.frdProductDataSerializedJspb,helpCenterPath:C.helpCenterPath||C.helpCenterPath,locale:C.locale||C.locale||"en-US".replace(/-/g,"_"),nonce:C.nonce||C.nonce,productData:C.productData||C.productData,receiverUri:C.receiverUri||
C.receiverUri,renderApiUri:C.renderApiUri||C.renderApiUri,theme:C.theme||C.theme,window:C.window||C.window});return new ke8(I)},Fc0=new A3(TYX,"https://www.gstatic.com/feedback/js/help/prod/service/lazy.min.js");var z35=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(z35,_.GR);var TQb=_.Ha(z35);new Uint8Array([]);_.ckd=new function(I,C,y,k){this.configType=I;this.flagName=y;this.defaultValue=k;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 rkd=function(){this.retriever=_.N().resolve(e3S)};P2(Node);P2(Element);var iL8=P2(HTMLElement);P2(SVGElement);var w2u,nqb,xj,PAb;w2u=function(I){return typeof I.className=="string"?I.className:I.getAttribute&&I.getAttribute("class")||""};
nqb=function(I){return I.classList?I.classList:w2u(I).match(/\S+/g)||[]};
_.Wf=function(I,C){typeof I.className=="string"?I.className=C:I.setAttribute&&I.setAttribute("class",C)};
_.d1=function(I,C){return I.classList?I.classList.contains(C):_.qz(nqb(I),C)};
_.qx=function(I,C){if(I.classList)I.classList.add(C);else if(!_.d1(I,C)){var y=w2u(I);_.Wf(I,y+(y.length>0?" "+C:C))}};
xj=function(I,C){if(I.classList)Array.prototype.forEach.call(C,function(F){_.qx(I,F)});
else{var y={};Array.prototype.forEach.call(nqb(I),function(F){y[F]=!0});
Array.prototype.forEach.call(C,function(F){y[F]=!0});
C="";for(var k in y)C+=C.length>0?" "+k:k;_.Wf(I,C)}};
_.dY=function(I,C){I.classList?I.classList.remove(C):_.d1(I,C)&&_.Wf(I,Array.prototype.filter.call(nqb(I),function(y){return y!=C}).join(" "))};
PAb=function(I,C){I.classList?Array.prototype.forEach.call(C,function(y){_.dY(I,y)}):_.Wf(I,Array.prototype.filter.call(nqb(I),function(y){return!_.qz(C,y)}).join(" "))};var Lc5=function(I){this.logger=this.previouslyFocusedElement=this.focusChangeHandler=null;this.document=I.document},Q1w=function(I,C){D9w(I);
var y=document.createElement("div"),k;(k=C.parentNode)==null||k.insertBefore(y,C);y.tabIndex=0;y.id="fc-focus-trap-pre-div";y=document.createElement("div");var F;(F=C.parentNode)==null||F.insertBefore(y,C.nextSibling);y.tabIndex=0;y.id="fc-focus-trap-post-div";var z=p2d(I,C),c=p2d(I,C,!0);z&&c&&(I.focusChangeHandler=function(){var r=I.document.activeElement;if(r)if(_.gQ(C,r))I.previouslyFocusedElement=r;else if(r===I.document.activeElement)switch(I.previouslyFocusedElement){case z:c.focus();I.previouslyFocusedElement=
c;break;default:z.focus(),I.previouslyFocusedElement=z}},I.document.addEventListener("focus",I.focusChangeHandler,!0),I.document.addEventListener("focusin",I.focusChangeHandler))},D9w=function(I){I.focusChangeHandler&&(document.removeEventListener("focus",I.focusChangeHandler,!0),document.removeEventListener("focusin",I.focusChangeHandler),I.focusChangeHandler=null);
var C;(C=document.getElementById("fc-focus-trap-pre-div"))==null||C.remove();var y;(y=document.getElementById("fc-focus-trap-post-div"))==null||y.remove()},NQc=function(I,C,y,k,F){y=y===void 0?!0:y;
var z;F=(z=F===void 0?null:F)!=null?z:p2d(I,C,k===void 0?!1:k);F!==null&&(F.focus(),y&&Q1w(I,C))};
Lc5.prototype.disableButton=function(I,C){C=C===void 0?null:C;I.disabled=!0;C&&_.qx(I,C)};
var p2d=function(I,C,y){y=y===void 0?!1:y;if(RMI(C)&&!y)return C;var k=y?[].slice.call(C.children,0).reverse():C.children;k=_.T(k);for(var F=k.next();!F.done;F=k.next())if(F=F.value,iL8(F)&&(F=p2d(I,F,y)))return F;return RMI(C)&&y?C:null};var Vye=function(I){this.originalBodyOverflow="";this.JSC$7873_domHelper=u3(I)};_.s0(_.pL,_.LL);_.u=_.pL.prototype;_.u.JSC$7876_id_=0;_.u.disposeInternal=function(){_.pL.superClass_.disposeInternal.call(this);this.stop();delete this.JSC$7874_listener_;delete this.handler_};
_.u.start=function(I){this.stop();this.JSC$7876_id_=VZ(this.callback_,I!==void 0?I:this.JSC$7874_interval_)};
_.u.stop=function(){this.isActive()&&_.sF.clearTimeout(this.JSC$7876_id_);this.JSC$7876_id_=0};
_.u.fire=function(){this.stop();this.JSC$7876_doAction_()};
_.u.isActive=function(){return this.JSC$7876_id_!=0};
_.u.JSC$7876_doAction_=function(){this.JSC$7876_id_=0;this.JSC$7874_listener_&&this.JSC$7874_listener_.call(this.handler_)};_.Cq=function(I){_.LL.call(this);this.handler_=I;this.JSC$7877_keys_={}};
_.s0(_.Cq,_.LL);var j1c=[];_.Cq.prototype.listen=function(I,C,y,k){Array.isArray(C)||(C&&(j1c[0]=C.toString()),C=j1c);for(var F=0;F<C.length;F++){var z=_.Lv(I,C[F],y||this.handleEvent,k||!1,this.handler_||this);if(!z)break;this.JSC$7877_keys_[z.key]=z}return this};
_.Cq.prototype.listenOnce=function(I,C,y,k){return lD8(this,I,C,y,k)};
var lD8=function(I,C,y,k,F,z){if(Array.isArray(y))for(var c=0;c<y.length;c++)lD8(I,C,y[c],k,F,z);else{C=iU(C,y,k||I.handleEvent,F,z||I.handler_||I);if(!C)return I;I.JSC$7877_keys_[C.key]=C}return I};
_.Cq.prototype.unlisten=function(I,C,y,k,F){if(Array.isArray(C))for(var z=0;z<C.length;z++)this.unlisten(I,C[z],y,k,F);else if(I=Ha8(I,C,y||this.handleEvent,_.sw(k)?!!k.capture:!!k,F||this.handler_||this))wY(I),delete this.JSC$7877_keys_[I.key];return this};
_.Cq.prototype.removeAll=function(){_.Le.forEach(this.JSC$7877_keys_,function(I,C){this.JSC$7877_keys_.hasOwnProperty(C)&&wY(I)},this);
this.JSC$7877_keys_={}};
_.Cq.prototype.disposeInternal=function(){_.Cq.superClass_.disposeInternal.call(this);this.removeAll()};
_.Cq.prototype.handleEvent=function(){throw Error("Sa");};var q2=function(){_.LL.call(this);this.services_={}};
_.s0(q2,_.LL);_.u=q2.prototype;_.u.logger=null;_.u.connect=function(I){I&&I()};
_.u.isConnected=function(){return!0};
_.u.registerService=function(I,C,y){this.services_[I]={callback:C,objectPayload:!!y}};
_.u.getService=function(I,C){var y=this.services_[I];return y?y:this.defaultService_?{callback:_.D0(this.defaultService_,I),objectPayload:_.sw(C)}:null};
var X2S=function(I,C){if(C&&typeof I==="string")try{return JSON.parse(I)}catch(y){return null}else if(!C&&typeof I!=="string")return(0,_.lR)(I);return I};
q2.prototype.disposeInternal=function(){q2.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 mu=function(I,C){this.sequence_=[];this.onCancelFunction_=I;this.defaultScope_=C||null;this.hadError_=this.fired_=!1;this.result_=void 0;this.silentlyCanceled_=this.blocking_=this.blocked_=!1;this.unhandledErrorId_=0;this.parent_=null;this.branches_=0};
mu.prototype.cancel=function(I){if(this.fired_)this.result_ instanceof mu&&this.result_.cancel();else{if(this.parent_){var C=this.parent_;delete this.parent_;I?C.cancel(I):(C.branches_--,C.branches_<=0&&C.cancel())}this.onCancelFunction_?this.onCancelFunction_.call(this.defaultScope_,this):this.silentlyCanceled_=!0;this.fired_||this.errback(new ZI(this))}};
mu.prototype.continue_=function(I,C){this.blocked_=!1;$9d(this,I,C)};
var $9d=function(I,C,y){I.fired_=!0;I.result_=y;I.hadError_=!C;R30(I)},YBq=function(I){if(I.fired_){if(!I.silentlyCanceled_)throw new bLP(I);
I.silentlyCanceled_=!1}};
mu.prototype.callback=function(I){YBq(this);$9d(this,!0,I)};
mu.prototype.errback=function(I){YBq(this);$9d(this,!1,I)};
var Geu=function(I,C,y){Bf(I,C,null,y)};
mu.prototype.finally=function(I){var C=this;return new Promise(function(y,k){Bf(C,function(F){I();y(F)},function(F){I();
k(F)})})};
var Bf=function(I,C,y,k){var F=I.fired_;F||(C===y?C=y=DI(C):(C=DI(C),y=DI(y)));I.sequence_.push([C,y,k]);F&&R30(I)};
mu.prototype.then=function(I,C,y){var k,F,z=new _.eN(function(c,r){F=c;k=r});
Bf(this,F,function(c){c instanceof ZI?z.cancel():k(c);return fDw},this);
return z.then(I,C,y)};
sIb(mu);var SBu=function(I,C){C instanceof mu?Geu(I,(0,_.DD)(C.branch,C)):Geu(I,function(){return C})};
mu.prototype.branch=function(I){var C=new mu;Bf(this,C.callback,C.errback,C);I&&(C.parent_=this,this.branches_++);return C};
mu.prototype.isError=function(I){return I instanceof Error};
var Kcq=function(I){return hz(I.sequence_,function(C){return typeof C[1]==="function"})},fDw={},R30=function(I){if(I.unhandledErrorId_&&I.fired_&&Kcq(I)){var C=I.unhandledErrorId_,y=Akb[C];
y&&(_.sF.clearTimeout(y.JSC$7894_id_),delete Akb[C]);I.unhandledErrorId_=0}I.parent_&&(I.parent_.branches_--,delete I.parent_);C=I.result_;for(var k=y=!1;I.sequence_.length&&!I.blocked_;){var F=I.sequence_.shift(),z=F[0],c=F[1];F=F[2];if(z=I.hadError_?c:z)try{var r=z.call(F||I.defaultScope_,C);r===fDw&&(r=void 0);r!==void 0&&(I.hadError_=I.hadError_&&(r==C||I.isError(r)),I.result_=C=r);if(o5w(C)||typeof _.sF.Promise==="function"&&C instanceof _.sF.Promise)k=!0,I.blocked_=!0}catch(w){C=w,I.hadError_=
!0,Kcq(I)||(y=!0)}}I.result_=C;k&&(r=(0,_.DD)(I.continue_,I,!0),k=(0,_.DD)(I.continue_,I,!1),C instanceof mu?(Bf(C,r,k),C.blocking_=!0):C.then(r,k));y&&(C=new gqm(C),Akb[C.JSC$7894_id_]=C,I.unhandledErrorId_=C.JSC$7894_id_)},bLP=function(){_.Im.call(this)};
_.s0(bLP,_.Im);bLP.prototype.message="Deferred has already fired";bLP.prototype.name="AlreadyCalledError";var ZI=function(){_.Im.call(this)};
_.s0(ZI,_.Im);ZI.prototype.message="Deferred was canceled";ZI.prototype.name="CanceledError";var gqm=function(I){this.JSC$7894_id_=_.sF.setTimeout((0,_.DD)(this.throwError,this),0);this.JSC$7894_error_=I};
gqm.prototype.throwError=function(){delete Akb[this.JSC$7894_id_];throw this.JSC$7894_error_;};
var Akb={};var vq5={1:"NativeMessagingTransport"},WcS=["pu","lru","pru","lpu","ppu"],x9d=function(){for(var I=10,C=d95,y=C.length,k="";I-- >0;)k+=C.charAt(Math.floor(Math.random()*y));return k},d95="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";var Ev=function(I){_.LL.call(this);this.JSC$7897_domHelper_=I||u3()};
_.s0(Ev,_.LL);Ev.prototype.transportType=0;Ev.prototype.getWindow=function(){return this.JSC$7897_domHelper_.getWindow()};
Ev.prototype.getName=function(){return vq5[String(this.transportType)]||""};var hZ=function(I,C,y,k,F){Ev.call(this,y);this.JSC$7900_channel_=I;this.protocolVersion_=F||2;this.peerHostname_=C||"*";this.JSC$7900_eventHandler_=new _.Cq(this);this.maybeAttemptToConnectTimer_=new _.IC(100,this.getWindow());this.oneSidedHandshake_=!!k;this.setupAckReceived_=new mu;this.setupAckSent_=new mu;this.JSC$7900_connected_=new mu;this.endpointId_=x9d();this.peerEndpointId_=null;this.oneSidedHandshake_?qBc(this.JSC$7900_channel_)==1?SBu(this.JSC$7900_connected_,this.setupAckReceived_):
SBu(this.JSC$7900_connected_,this.setupAckSent_):(SBu(this.JSC$7900_connected_,this.setupAckReceived_),this.protocolVersion_==2&&SBu(this.JSC$7900_connected_,this.setupAckSent_));Geu(this.JSC$7900_connected_,this.notifyConnected_,this);this.JSC$7900_connected_.callback(!0);this.JSC$7900_eventHandler_.listen(this.maybeAttemptToConnectTimer_,"tick",this.maybeAttemptToConnect_)};
_.s0(hZ,Ev);hZ.prototype.peerProtocolVersion_=null;hZ.prototype.initialized_=!1;hZ.prototype.transportType=1;var m98={};hZ.prototype.sendTimerId_=0;
var Eqq=function(I){var C=I.event_.data;if(typeof C!=="string")return!1;var y=C.indexOf("|"),k=C.indexOf(":");if(y==-1||k==-1)return!1;var F=C.substring(0,y);y=C.substring(y+1,k);C=C.substring(k+1);if(k=Uv[F])return k.xpcDeliver(y,C,I.event_.origin),!0;k=ZLS(C)[0];for(var z in Uv){var c=Uv[z];if(qBc(c)==1&&!c.isConnected()&&y=="tp"&&(k=="SETUP"||k=="SETUP_NTPV2")&&BQw(c,I.event_.origin))return delete Uv[c.name],c.name=F,Uv[F]=c,c.xpcDeliver(y,C),!0}return!1},h3d=function(I){I.protocolVersion_!=2||
I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=2||I.send("tp","SETUP_NTPV2,"+I.endpointId_);
I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=1||I.send("tp","SETUP")},U9P=function(I,C){if(I.protocolVersion_!=2||I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=2||C!=2){if(I.peerProtocolVersion_!=null&&I.peerProtocolVersion_!=1||C!=1)return;
I.send("tp","SETUP_ACK")}else I.send("tp","SETUP_ACK_NTPV2");I.setupAckSent_.fired_||I.setupAckSent_.callback(!0)},HLw=function(I,C){C>I.peerProtocolVersion_&&(I.peerProtocolVersion_=C);
I.peerProtocolVersion_==1&&(I.setupAckSent_.fired_||I.oneSidedHandshake_||I.setupAckSent_.callback(!0),I.peerEndpointId_=null)};
_.u=hZ.prototype;_.u.connect=function(){var I=this.getWindow(),C=_.ow(I),y=m98[C];typeof y!=="number"&&(y=0);y==0&&_.Lv(I.postMessage?I:I.document,"message",Eqq,!1,hZ);m98[C]=y+1;this.initialized_=!0;this.maybeAttemptToConnect_()};
_.u.maybeAttemptToConnect_=function(){var I=qBc(this.JSC$7900_channel_)==0;this.oneSidedHandshake_&&I||this.JSC$7900_channel_.isConnected()||this.isDisposed()?this.maybeAttemptToConnectTimer_.stop():(this.maybeAttemptToConnectTimer_.start(),h3d(this))};
_.u.send=function(I,C){var y=this.JSC$7900_channel_.peerWindowObject_;y&&(this.send=function(k,F){var z=this,c=this.JSC$7900_channel_.name;this.sendTimerId_=VZ(function(){z.sendTimerId_=0;try{var r=y.postMessage?y:y.document;r.postMessage&&r.postMessage(c+"|"+k+":"+F,z.peerHostname_)}catch(w){}},0)},this.send(I,C))};
_.u.notifyConnected_=function(){var I=this.JSC$7900_channel_,C=this.protocolVersion_==1||this.peerProtocolVersion_==1?200:void 0;I.isConnected()||I.connectionDelay_&&I.connectionDelay_.isActive()||(I.state_=2,_.Bi(I.connectionDelay_),C!==void 0?(I.connectionDelay_=new _.pL(I.connectCb_,C),I.connectionDelay_.start()):(I.connectionDelay_=null,I.connectCb_()))};
_.u.disposeInternal=function(){if(this.initialized_){var I=this.getWindow(),C=_.ow(I),y=m98[C];m98[C]=y-1;y==1&&_.Pf(I.postMessage?I:I.document,"message",Eqq,!1,hZ)}this.sendTimerId_&&(_.sF.clearTimeout(this.sendTimerId_),this.sendTimerId_=0);_.Bi(this.JSC$7900_eventHandler_);delete this.JSC$7900_eventHandler_;_.Bi(this.maybeAttemptToConnectTimer_);delete this.maybeAttemptToConnectTimer_;this.setupAckReceived_.cancel();delete this.setupAckReceived_;this.setupAckSent_.cancel();delete this.setupAckSent_;
this.JSC$7900_connected_.cancel();delete this.JSC$7900_connected_;delete this.send;hZ.superClass_.disposeInternal.call(this)};
var ZLS=function(I){I=I.split(",");I[1]=I[1]||null;return I};_.Hf=function(I){if(I.getValues&&typeof I.getValues=="function")return I.getValues();if(typeof Map!=="undefined"&&I instanceof Map||typeof Set!=="undefined"&&I instanceof Set)return Array.from(I.values());if(typeof I==="string")return I.split("");if(_.Mz(I)){for(var C=[],y=I.length,k=0;k<y;k++)C.push(I[k]);return C}return _.Le.getValues(I)};
_.tyu=function(I){if(I.getKeys&&typeof I.getKeys=="function")return I.getKeys();if(!I.getValues||typeof I.getValues!="function"){if(typeof Map!=="undefined"&&I instanceof Map)return Array.from(I.keys());if(!(typeof Set!=="undefined"&&I instanceof Set)){if(_.Mz(I)||typeof I==="string"){var C=[];I=I.length;for(var y=0;y<I;y++)C.push(y);return C}return _.Le.getKeys(I)}}};
_.Jkw=function(I,C,y){if(I.forEach&&typeof I.forEach=="function")I.forEach(C,y);else if(_.Mz(I)||typeof I==="string")Array.prototype.forEach.call(I,C,y);else for(var k=_.tyu(I),F=_.Hf(I),z=F.length,c=0;c<z;c++)C.call(y,F[c],k&&k[c],I)};var nxz,Cb,oN,o4P,OL5,My8,aDe,sFb,Ife;
_.t$=function(I,C){this.JSC$7905_domain_=this.userInfo_=this.scheme_="";this.JSC$7905_port_=null;this.fragment_=this.JSC$7905_path_="";this.JSC$7905_ignoreCase_=!1;var y;I instanceof _.t$?(this.JSC$7905_ignoreCase_=C!==void 0?C:I.JSC$7905_ignoreCase_,_.tZ(this,I.scheme_),this.userInfo_=I.userInfo_,_.JZ(this,I.JSC$7905_domain_),_.Ov(this,I.JSC$7905_port_),_.az(this,I.getPath()),_.M2(this,I.JSC$7905_queryData_.clone()),_.IN(this,I.fragment_)):I&&(y=_.U3(String(I)))?(this.JSC$7905_ignoreCase_=!!C,_.tZ(this,
y[1]||"",!0),this.userInfo_=Cb(y[2]||""),_.JZ(this,y[3]||"",!0),_.Ov(this,y[4]),_.az(this,y[5]||"",!0),_.M2(this,y[6]||"",!0),_.IN(this,y[7]||"",!0)):(this.JSC$7905_ignoreCase_=!!C,this.JSC$7905_queryData_=new _.sU(null,this.JSC$7905_ignoreCase_))};
_.t$.prototype.toString=function(){var I=[],C=this.scheme_;C&&I.push(oN(C,OL5,!0),":");var y=this.JSC$7905_domain_;if(y||C=="file")I.push("//"),(C=this.userInfo_)&&I.push(oN(C,OL5,!0),"@"),I.push(_.q$(y).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),y=this.JSC$7905_port_,y!=null&&I.push(":",String(y));if(y=this.getPath())this.JSC$7905_domain_&&y.charAt(0)!="/"&&I.push("/"),I.push(oN(y,y.charAt(0)=="/"?aDe:My8,!0));(y=this.JSC$7905_queryData_.toString())&&I.push("?",y);(y=this.fragment_)&&I.push("#",oN(y,
Ife));return I.join("")};
_.t$.prototype.resolve=function(I){var C=this.clone(),y=!!I.scheme_;y?_.tZ(C,I.scheme_):y=!!I.userInfo_;y?C.userInfo_=I.userInfo_:y=!!I.JSC$7905_domain_;y?_.JZ(C,I.JSC$7905_domain_):y=I.JSC$7905_port_!=null;var k=I.getPath();if(y)_.Ov(C,I.JSC$7905_port_);else if(y=!!I.JSC$7905_path_){if(k.charAt(0)!="/")if(this.JSC$7905_domain_&&!this.JSC$7905_path_)k="/"+k;else{var F=C.getPath().lastIndexOf("/");F!=-1&&(k=C.getPath().slice(0,F+1)+k)}F=k;if(F==".."||F==".")k="";else if(_.rH(F,"./")||_.rH(F,"/.")){k=
_.FO(F,"/");F=F.split("/");for(var z=[],c=0;c<F.length;){var r=F[c++];r=="."?k&&c==F.length&&z.push(""):r==".."?((z.length>1||z.length==1&&z[0]!="")&&z.pop(),k&&c==F.length&&z.push("")):(z.push(r),k=!0)}k=z.join("/")}else k=F}y?_.az(C,k):y=I.JSC$7905_queryData_.toString()!=="";y?_.M2(C,I.JSC$7905_queryData_.clone()):y=!!I.fragment_;y&&_.IN(C,I.fragment_);return C};
_.t$.prototype.clone=function(){return new _.t$(this)};
_.tZ=function(I,C,y){I.scheme_=y?Cb(C,!0):C;I.scheme_&&(I.scheme_=I.scheme_.replace(/:$/,""));return I};
_.JZ=function(I,C,y){I.JSC$7905_domain_=y?Cb(C,!0):C;return I};
_.Ov=function(I,C){if(C){C=Number(C);if(isNaN(C)||C<0)throw Error("Ta`"+C);I.JSC$7905_port_=C}else I.JSC$7905_port_=null;return I};
_.t$.prototype.getPath=function(){return this.JSC$7905_path_};
_.az=function(I,C,y){I.JSC$7905_path_=y?Cb(C,!0):C;return I};
_.M2=function(I,C,y){C instanceof _.sU?(I.JSC$7905_queryData_=C,C08(I.JSC$7905_queryData_,I.JSC$7905_ignoreCase_)):(y||(C=oN(C,sFb)),I.JSC$7905_queryData_=new _.sU(C,I.JSC$7905_ignoreCase_));return I};
_.q9=function(I,C,y){I.JSC$7905_queryData_.set(C,y);return I};
_.xq=function(I,C){return I.JSC$7905_queryData_.get(C)};
_.IN=function(I,C,y){I.fragment_=y?Cb(C):C;return I};
_.ya=function(I){_.q9(I,"zx",W2());return I};
_.dQ=function(I,C){return I instanceof _.t$?I.clone():new _.t$(I,C)};
nxz=function(I,C){I instanceof _.t$||(I=_.dQ(I));C instanceof _.t$||(C=_.dQ(C));return I.resolve(C)};
Cb=function(I,C){return I?C?decodeURI(I.replace(/%25/g,"%2525")):decodeURIComponent(I):""};
oN=function(I,C,y){return typeof I==="string"?(I=encodeURI(I).replace(C,o4P),y&&(I=I.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),I):null};
o4P=function(I){I=I.charCodeAt(0);return"%"+(I>>4&15).toString(16)+(I&15).toString(16)};
OL5=/[#\/\?@]/g;My8=/[#\?:]/g;aDe=/[#\?]/g;sFb=/[#\?@]/g;Ife=/#/g;_.sU=function(I,C){this.count_=this.keyMap_=null;this.encodedQuery_=I||null;this.JSC$7906_ignoreCase_=!!C};
_.k6=function(I){I.keyMap_||(I.keyMap_=new Map,I.count_=0,I.encodedQuery_&&nKq(I.encodedQuery_,function(C,y){I.add(O3(C),y)}))};
_.u=_.sU.prototype;_.u.getCount=function(){_.k6(this);return this.count_};
_.u.add=function(I,C){_.k6(this);this.encodedQuery_=null;I=Fg(this,I);var y=this.keyMap_.get(I);y||this.keyMap_.set(I,y=[]);y.push(C);this.count_+=1;return this};
_.u.remove=function(I){_.k6(this);I=Fg(this,I);return this.keyMap_.has(I)?(this.encodedQuery_=null,this.count_-=this.keyMap_.get(I).length,this.keyMap_.delete(I)):!1};
_.u.clear=function(){this.keyMap_=this.encodedQuery_=null;this.count_=0};
_.u.isEmpty=function(){_.k6(this);return this.count_==0};
_.u.containsKey=function(I){_.k6(this);I=Fg(this,I);return this.keyMap_.has(I)};
_.u.containsValue=function(I){var C=this.getValues();return _.qz(C,I)};
_.u.forEach=function(I,C){_.k6(this);this.keyMap_.forEach(function(y,k){y.forEach(function(F){I.call(C,F,k,this)},this)},this)};
_.u.getKeys=function(){_.k6(this);for(var I=Array.from(this.keyMap_.values()),C=Array.from(this.keyMap_.keys()),y=[],k=0;k<C.length;k++)for(var F=I[k],z=0;z<F.length;z++)y.push(C[k]);return y};
_.u.getValues=function(I){_.k6(this);var C=[];if(typeof I==="string")this.containsKey(I)&&(C=C.concat(this.keyMap_.get(Fg(this,I))));else{I=Array.from(this.keyMap_.values());for(var y=0;y<I.length;y++)C=C.concat(I[y])}return C};
_.u.set=function(I,C){_.k6(this);this.encodedQuery_=null;I=Fg(this,I);this.containsKey(I)&&(this.count_-=this.keyMap_.get(I).length);this.keyMap_.set(I,[C]);this.count_+=1;return this};
_.u.get=function(I,C){if(!I)return C;I=this.getValues(I);return I.length>0?String(I[0]):C};
_.yf5=function(I,C,y){I.remove(C);y.length>0&&(I.encodedQuery_=null,I.keyMap_.set(Fg(I,C),_.tX(y)),I.count_+=y.length)};
_.sU.prototype.toString=function(){if(this.encodedQuery_)return this.encodedQuery_;if(!this.keyMap_)return"";for(var I=[],C=Array.from(this.keyMap_.keys()),y=0;y<C.length;y++){var k=C[y],F=_.q$(k);k=this.getValues(k);for(var z=0;z<k.length;z++){var c=F;k[z]!==""&&(c+="="+_.q$(k[z]));I.push(c)}}return this.encodedQuery_=I.join("&")};
_.sU.prototype.clone=function(){var I=new _.sU;I.encodedQuery_=this.encodedQuery_;this.keyMap_&&(I.keyMap_=new Map(this.keyMap_),I.count_=this.count_);return I};
var Fg=function(I,C){C=String(C);I.JSC$7906_ignoreCase_&&(C=C.toLowerCase());return C},C08=function(I,C){C&&!I.JSC$7906_ignoreCase_&&(_.k6(I),I.encodedQuery_=null,I.keyMap_.forEach(function(y,k){var F=k.toLowerCase();
k!=F&&(this.remove(k),_.yf5(this,F,y))},I));
I.JSC$7906_ignoreCase_=C};
_.sU.prototype.extend=function(I){for(var C=0;C<arguments.length;C++)_.Jkw(arguments[C],function(y,k){this.add(k,y)},this)};var uL=function(I,C){q2.call(this);for(var y=0,k;k=WcS[y];y++)if(k in I&&!/^https?:\/\//.test(I[k]))throw Error("Va`"+I[k]+"`"+k);this.cfg_=I;this.name=this.cfg_.cn||x9d();this.JSC$7901_domHelper_=C||u3();this.deferredDeliveries_=[];this.peerLoadHandler_=new _.Cq(this);I.lpu=I.lpu||i8e(this.JSC$7901_domHelper_.getWindow().location.href)+"/robots.txt";I.ppu=I.ppu||i8e(I.pu||"")+"/robots.txt";Uv[this.name]=this;Ha8(window,"unload",kOq)||iU(window,"unload",kOq)};
_.s0(uL,q2);var FCq=RegExp("^%*tp$"),u$S=RegExp("^%+tp$");_.u=uL.prototype;_.u.connectionDelay_=null;_.u.peerWindowDeferred_=null;_.u.transport_=null;_.u.state_=1;_.u.isConnected=function(){return this.state_==2};
_.u.peerWindowObject_=null;_.u.iframeElement_=null;_.u.connect=function(I){this.connectCb_=I||_.nQ;this.state_==3&&(this.state_=1);this.peerWindowDeferred_?Geu(this.peerWindowDeferred_,this.continueConnection_):this.continueConnection_()};
_.u.continueConnection_=function(){this.peerWindowDeferred_=null;this.cfg_.ifrid&&(this.iframeElement_=this.JSC$7901_domHelper_.getElement(this.cfg_.ifrid));if(this.iframeElement_){var I=this.iframeElement_.contentWindow;I||(I=window.frames[this.cfg_.ifrid]);this.peerWindowObject_=I}if(!this.peerWindowObject_){if(window==window.top)throw Error("Xa");this.peerWindowObject_=window.parent}if(!this.transport_){this.cfg_.tp||(this.cfg_.tp=typeof document.postMessage==="function"||typeof window.postMessage===
"function"?1:0);if(typeof this.cfg_.tp==="function")this.transport_=new this.cfg_.tp(this,this.JSC$7901_domHelper_);else switch(this.cfg_.tp){case 1:this.transport_=new hZ(this,this.cfg_.ph,this.JSC$7901_domHelper_,!!this.cfg_.osh,this.cfg_.nativeProtocolVersion||2)}if(!this.transport_)throw Error("Wa");}for(this.transport_.connect();this.deferredDeliveries_.length>0;)this.deferredDeliveries_.shift()()};
_.u.close=function(){this.peerWindowDeferred_&&(this.peerWindowDeferred_.cancel(),this.peerWindowDeferred_=null);this.deferredDeliveries_.length=0;this.peerLoadHandler_.removeAll();this.state_=3;_.Bi(this.transport_);this.connectCb_=this.transport_=null;_.Bi(this.connectionDelay_);this.connectionDelay_=null};
_.u.send=function(I,C){if(this.isConnected()){try{var y=!!this.peerWindowObject_&&!this.peerWindowObject_.closed}catch(F){y=!1}if(y){_.sw(C)&&(C=(0,_.lR)(C));y=this.transport_;var k=y.send;FCq.test(I)&&(I="%"+I);I=I.replace(/[%:|]/g,encodeURIComponent);k.call(y,I,C)}else this.close()}};
_.u.xpcDeliver=function(I,C,y){if(this.peerWindowDeferred_)this.deferredDeliveries_.push((0,_.DD)(this.xpcDeliver,this,I,C,y));else if(BQw(this,y)&&!this.isDisposed()&&this.state_!=3)if(I&&I!="tp")this.isConnected()&&(I=I.replace(/%[0-9a-f]{2}/gi,decodeURIComponent),I=u$S.test(I)?I.substring(1):I,I=this.getService(I,C))&&(C=X2S(C,I.objectPayload),C!=null&&I.callback(C));else switch(I=this.transport_,y=ZLS(C),C=y[1],y[0]){case "SETUP_ACK":HLw(I,1);I.setupAckReceived_.fired_||I.setupAckReceived_.callback(!0);
break;case "SETUP_ACK_NTPV2":I.protocolVersion_==2&&(HLw(I,2),I.setupAckReceived_.fired_||I.setupAckReceived_.callback(!0));break;case "SETUP":HLw(I,1);U9P(I,1);break;case "SETUP_NTPV2":I.protocolVersion_==2&&(y=I.peerProtocolVersion_,HLw(I,2),U9P(I,2),y!=1&&I.peerEndpointId_==null||I.peerEndpointId_==C||h3d(I),I.peerEndpointId_=C)}};
var qBc=function(I){var C=I.cfg_.role;return typeof C==="number"?C:window.parent==I.peerWindowObject_?1:0},BQw=function(I,C){var y=I.cfg_.ph;
return _.eI(C==null?"":String(C))||_.eI(y==null?"":String(y))||C==I.cfg_.ph};
uL.prototype.disposeInternal=function(){this.close();this.iframeElement_=this.peerWindowObject_=null;delete Uv[this.name];_.Bi(this.peerLoadHandler_);delete this.peerLoadHandler_;uL.superClass_.disposeInternal.call(this)};
var kOq=function(){for(var I in Uv)_.Bi(Uv[I])},Uv={};var Te0=function(I,C){this.JSC$7915_win=I;this.allowAdsHttpEndpoint=C;this.wallElement=this.allowAdsCrossPageChannel=this.allowAdsPopup=null;this.JSC$7915_domHelper=u3(I);this.scrollManager=new Vye(I);this.accessibilityManager=new Lc5(I);zzc(this)},zzc=function(I){var C=function(){I.allowAdsPopup&&I.allowAdsPopup.style.setProperty("display","none","important");
I.wallElement.style.setProperty("display","","important");D9w(I.accessibilityManager);NQc(I.accessibilityManager,I.wallElement.querySelector(".fc-dialog-container"),!1,!1,I.wallElement.querySelector(".fc-button-whitelist"));var F=I.scrollManager;F.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=F.originalBodyOverflow};
I.allowAdsPopup=I.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-root"});I.allowAdsPopup.style.setProperty("display","none","important");I.JSC$7915_domHelper.appendChild(I.JSC$7915_domHelper.JSC$7241_document_.body,I.allowAdsPopup);var y=I.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-dialog-overlay"});I.JSC$7915_domHelper.appendChild(I.allowAdsPopup,y);var k=I.JSC$7915_domHelper.JSC$7243_createDom("DIV",{"class":"fc-whitelist-dialog-wrapper",onclick:C});I.JSC$7915_domHelper.appendChild(I.allowAdsPopup,
k);y=I.JSC$7915_domHelper.JSC$7243_createDom("IFRAME");y.className="fc-whitelist-dialog";y.frameBorder="0";y.id="fc-whitelist-iframe";y.tabIndex="0";_.jO(y,I.allowAdsHttpEndpoint);I.JSC$7915_domHelper.appendChild(k,y);k={};k.pu=_.sC(I.allowAdsHttpEndpoint).toString();k.tp=1;k.cn="fc-whitelist-channel";k.ifrid=y.id;k.osh=!0;I.allowAdsCrossPageChannel=new uL(k);I.allowAdsCrossPageChannel.registerService("close",C);I.allowAdsCrossPageChannel.registerService("refresh",function(){I.JSC$7915_win.location.reload()});
I.allowAdsCrossPageChannel.registerService("resize",function(F){if(F){var z=I.allowAdsPopup.querySelector(".fc-whitelist-dialog");F.width&&z.style.setProperty("width",F.width,"important");F.height&&z.style.setProperty("height",F.height,"important")}},!0);
I.allowAdsCrossPageChannel.connect()};
Te0.prototype.tearDown=function(){this.allowAdsPopup&&(this.JSC$7915_domHelper.removeNode(this.allowAdsPopup),this.allowAdsPopup=null);this.allowAdsCrossPageChannel&&this.allowAdsCrossPageChannel.close()};/*
 gapi.loader.OBJECT_CREATE_TEST_OVERRIDE &&*/
var zG=window,TG=document,cfw=zG.location,ezw=function(){},rf8=/\[native code\]/,cl=function(I,C,y){return I[C]=I[C]||y},i$P=function(I){I=I.sort();
for(var C=[],y=void 0,k=0;k<I.length;k++){var F=I[k];F!=y&&C.push(F);y=F}return C},eG=function(){var I;
if((I=Object.create)&&rf8.test(I))I=I(null);else{I={};for(var C in I)I[C]=void 0}return I},rb=cl(zG,"gapi",{});var iL={};iL=cl(zG,"___jsl",eG());cl(iL,"I",0);cl(iL,"hel",10);var w4S=function(){var I=cfw.href;if(iL.dpo)var C=iL.h;else{C=iL.h;var y=RegExp("([#].*&|[#])jsh=([^&#]*)","g"),k=RegExp("([?#].*&|[?#])jsh=([^&#]*)","g");if(I=I&&(y.exec(I)||k.exec(I)))try{C=decodeURIComponent(I[2])}catch(F){}}return C},n45=function(I){var C=cl(iL,"PQ",[]);
iL.PQ=[];var y=C.length;if(y===0)I();else for(var k=0,F=function(){++k===y&&I()},z=0;z<y;z++)C[z](F)},P05=function(I){return cl(cl(iL,"H",eG()),I,eG())};var wb=function(I){this.JSC$7917_obj_=I};
wb.prototype.value=function(){return this.JSC$7917_obj_};
wb.prototype.getWidth=function(){return this.JSC$7917_obj_.width};
wb.prototype.getHeight=function(){return this.JSC$7917_obj_.height};
wb.prototype.getStyle=function(){return this.JSC$7917_obj_.style};var LCw=function(I){this.JSC$7920_obj_=I||{}};
_.u=LCw.prototype;_.u.value=function(){return this.JSC$7920_obj_};
_.u.setUrl=function(I){this.JSC$7920_obj_.url=I;return this};
_.u.getUrl=function(){return this.JSC$7920_obj_.url};
_.u.getStyle=function(){return this.JSC$7920_obj_.style};
_.u.setId=function(I){this.JSC$7920_obj_.id=I;return this};
_.u.getId=function(){return this.JSC$7920_obj_.id};
_.u.getContext=function(){return this.JSC$7920_obj_.context};
var DTu=function(I){I.JSC$7920_obj_.attributes=I.JSC$7920_obj_.attributes||{};return new wb(I.JSC$7920_obj_.attributes)};var p4c=function(){LCw.apply(this,arguments)};
_.R(p4c,LCw);var QFw=cl(iL,"perf",eG());cl(QFw,"g",eG());var Neu=cl(QFw,"i",eG());cl(QFw,"r",[]);eG();eG();var jFb=function(I,C,y){C&&C.length>0&&(C=VXu(C),y&&y.length>0&&(C+="___"+VXu(y)),C.length>28&&(C=C.substr(0,28)+(C.length-28)),y=C,C=cl(Neu,"_p",eG()),cl(C,y,eG())[I]=(new Date).getTime(),C=QFw.r,typeof C==="function"?C(I,"_p",y):C.push([I,"_p",y]))},VXu=function(I){return I.join("__").replace(/\./g,"_").replace(/\-/g,"_").replace(/,/g,"_")};var lfu=eG(),X4m=[],Pl=function(I){throw Error("Ya`"+I);};
X4m.push(["jsl",function(I){for(var C in I)if(Object.prototype.hasOwnProperty.call(I,C)){var y=I[C];typeof y=="object"?iL[C]=cl(iL,C,[]).concat(y):cl(iL,C,y)}if(C=I.u)I=cl(iL,"us",[]),I.push(C),(C=/^https:(.*)$/.exec(C))&&I.push("http:"+C[1])}]);
var $T0=/^(\/[a-zA-Z0-9_\-]+)+$/,Rzw=[/\/amp\//,/\/amp$/,/^\/amp$/],b$w=/^[a-zA-Z0-9\-_\.,!]+$/,Yuq=/^gapi\.loaded_[0-9]+$/,GO0=/^[a-zA-Z0-9,._-]+$/,AfP=function(I,C,y,k,F){var z=I.split(";"),c=z.shift(),r=lfu[c],w=null;r?w=r(z,C,y,k):Pl("no hint processor for: "+c);w||Pl("failed to generate load url");C=w;y=C.match(ffe);(k=C.match(Su8))&&k.length===1&&KCY.test(C)&&y&&y.length===1||Pl("failed sanity: "+I);try{I="?";if(F&&F.length>0){yd(F);var L=F.join(",");w=w+"?le="+L;I="&"}if(iL.rol){var D=iL.ol;
D&&D.length&&(w=""+w+I+"ol="+D.length)}}catch(p){}return w},WCY=function(I,C,y,k){I=g4d(I);
Yuq.test(y)||Pl("invalid_callback");C=v48(C);k=k&&k.length?v48(k):null;var F=function(z){return encodeURIComponent(z).replace(/%2C/g,",")};
return[encodeURIComponent(I.pathPrefix).replace(/%2C/g,",").replace(/%2F/g,"/"),"/k=",F(I.version),"/m=",F(C),k?"/exm="+F(k):"","/rt=j/sv=1/d=1/ed=1",I.activeMods?"/am="+F(I.activeMods):"",I.resourceSig?"/rs="+F(I.resourceSig):"",I.zcms?"/t="+F(I.zcms):"","/cb=",F(y)].join("")},g4d=function(I){I.charAt(0)!=="/"&&Pl("relative path");
for(var C=I.substring(1).split("/"),y=[];C.length;){I=C.shift();if(!I.length||I.indexOf(".")==0)Pl("empty/relative directory");else if(I.indexOf("=")>0){C.unshift(I);break}y.push(I)}I={};for(var k=0,F=C.length;k<F;++k){var z=C[k].split("="),c=decodeURIComponent(z[0]),r=decodeURIComponent(z[1]);z.length==2&&c&&r&&(I[c]=I[c]||r)}C="/"+y.join("/");$T0.test(C)||Pl("invalid_prefix");y=0;for(k=Rzw.length;y<k;++y)Rzw[y].test(C)&&Pl("invalid_prefix");y=dT8(I,"k",!0);k=dT8(I,"am");F=dT8(I,"rs");I=dT8(I,"t");
return{pathPrefix:C,version:y,activeMods:k,resourceSig:F,zcms:I}},v48=function(I){for(var C=[],y=0,k=I.length;y<k;++y){var F=I[y].replace(/\./g,"_").replace(/-/g,"_");
GO0.test(F)&&C.push(F)}return C.join(",")},dT8=function(I,C,y){I=I[C];
!I&&y&&Pl("missing: "+C);if(I){if(b$w.test(I))return I;Pl("invalid: "+C)}return null},KCY=/^https?:\/\/[a-z0-9_.-]+\.google(rs)?\.com(:\d+)?\/[a-zA-Z0-9_.,!=\-\/]+$/,Su8=/\/cb=/g,ffe=/\/\//g;
lfu.m=function(I,C,y,k){(I=I[0])||Pl("missing_hint");return"https://apis.google.com"+WCY(I,C,y,k)};
var xTS=decodeURI("%73cript"),qud=/^[-+_0-9\/A-Za-z]+={0,2}$/,mTw=function(I,C){for(var y=[],k=0;k<I.length;++k){var F=I[k],z;if(z=F){a:{for(z=0;z<C.length;z++)if(C[z]===F)break a;z=-1}z=z<0}z&&y.push(F)}return y},Z$c=function(){var I=iL.nonce;
return I!==void 0?I&&I===String(I)&&I.match(qud)?I:iL.nonce=null:TG.querySelector?(I=TG.querySelector("script[nonce]"))?(I=I.nonce||I.getAttribute("nonce")||"",I&&I===String(I)&&I.match(qud)?iL.nonce=I:iL.nonce=null):null:null},hzd=function(I){if(TG.readyState!="loading")BeP(I);
else{var C=Z$c(),y="";C!==null&&(y=' nonce="'+C+'"');I="<"+xTS+' src="'+encodeURI(I)+'"'+y+"></"+xTS+">";TG.write(E40?E40.createHTML(I):I)}},BeP=function(I){var C=TG.createElement(xTS);
C.setAttribute("src",E40?E40.createScriptURL(I):I);I=Z$c();I!==null&&C.setAttribute("nonce",I);C.async="true";(I=TG.getElementsByTagName(xTS)[0])?I.parentNode.insertBefore(C,I):(TG.head||TG.body||TG.documentElement).appendChild(C)},H$q=function(I,C,y){UTw(function(){var k=C===w4S()?cl(rb,"_",eG()):eG();
k=cl(P05(C),"_",k);I(k)},y)},ugm=function(I,C){var y=C||{};
typeof C=="function"&&(y={},y.callback=C);var k=(C=y)&&C._c;if(k)for(var F=0;F<X4m.length;F++){var z=X4m[F][0],c=X4m[F][1];c&&Object.prototype.hasOwnProperty.call(k,z)&&c(k[z],I,C)}C=[];I?C=I.split(":"):y.features&&(C=y.features);if(!(I=y.h)&&(I=w4S(),!I))throw Error("Za");tXe(C||[],y,I)},tXe=function(I,C,y){I=i$P(I)||[];
var k=C.callback,F=C.config,z=C.timeout,c=C.ontimeout,r=C.onerror,w=void 0;typeof r=="function"&&(w=r);var L=null,D=!1;if(z&&!c||!z&&c)throw"Timeout requires both the timeout parameter and ontimeout parameter to be set";r=cl(P05(y),"r",[]).sort();var p=cl(P05(y),"L",[]).sort(),Q=iL.le||[],X=[].concat(r),b=function(t,U){if(D)return 0;zG.clearTimeout(L);p.push.apply(p,S);var yW=((rb||{}).config||{}).update;yW?yW(F):F&&cl(iL,"cu",[]).push(F);if(U){jFb("me0",t,X);try{H$q(U,y,w)}finally{jFb("me1",t,X)}}return 1};
z>0&&(L=zG.setTimeout(function(){D=!0;c()},z));
var S=mTw(I,p);if(S.length){S=mTw(I,r);var A=cl(iL,"CP",[]),x=A.length;A[x]=function(t){if(!t)return 0;jFb("ml1",S,X);var U=function(a){A[x]=null;b(S,t)&&n45(function(){k&&k();a()})},yW=function(){var a=A[x+1];
a&&a()};
x>0&&A[x-1]?A[x]=function(){U(yW)}:U(yW)};
if(S.length){var B="loaded_"+iL.I++;rb[B]=function(t){A[x](t);rb[B]=null};
I=AfP(y,S,"gapi."+B,r,Q);r.push.apply(r,S);jFb("ml0",S,X);C.sync||zG.___gapisync?hzd(I):BeP(I)}else A[x](ezw)}else b(S)&&k&&k()},Jf0;
var O$q=null,af5=_.sF.trustedTypes;if(af5&&af5.createPolicy){try{O$q=af5.createPolicy("goog#gapi",{createHTML:l3z,createScript:l3z,createScriptURL:l3z})}catch(I){_.sF.console&&_.sF.console.error(I.message)}Jf0=O$q}else Jf0=O$q;var E40=Jf0,UTw=function(I,C){if(iL.hee&&iL.hel>0)try{return I()}catch(y){C&&C(y),iL.hel--,ugm("debug_error",function(){try{window.___jsl.hefn(y)}catch(k){throw y;}})}else try{return I()}catch(y){throw C&&C(y),y;
}},MXP=rb.load;
MXP&&cl(iL,"ol",[]).push(MXP);rb.load=function(I,C){return UTw(function(){return ugm(I,C)})};var Vo;var Ixu=function(I,C){this.serviceId_=I;this.moduleId_=C||null};
Ixu.prototype.toString=function(){return this.serviceId_};
Ixu.prototype.getModuleId=function(){return this.moduleId_};var BT9=new Ixu("MpJwZc","MpJwZc");var hj9=new _.eg("a"),Eoz=function(I,C,y){_.r1.call(this,I,C);this.node=C;this.kind=y};
_.R(Eoz,_.r1);var ChY=function(){this.JSC$7933_keys_={};this.urlPrefix_="";this.JSC$7933_queryData_={}};
ChY.prototype.toString=function(){var I=this.urlPrefix_+sUP(this),C=_.e7(this.JSC$7933_queryData_),y="";C!=""&&(y="?"+C);return I+y};
var oSq=function(I){I=Lb(I,"md");return!!I&&I!=="0"},sUP=function(I){var C=[],y=(0,_.DD)(function(k){this.JSC$7933_keys_[k]!==void 0&&C.push(k+"="+this.JSC$7933_keys_[k])},I);
oSq(I)?(y("md"),y("k"),y("ck"),y("am"),y("rs"),y("gssmodulesetproto"),y("slk"),y("dti")):(y("sdch"),y("k"),y("ck"),y("am"),y("rt"),"d"in I.JSC$7933_keys_||DA(I,"d","0"),y("d"),y("exm"),y("excm"),(I.JSC$7933_keys_.excm||I.JSC$7933_keys_.exm)&&C.push("ed=1"),y("im"),y("dg"),y("sm"),Lb(I,"br")!="1"&&Lb(I,"br")!="0"||y("br"),y("br-d"),Lb(I,"rb")=="1"&&y("rb"),Lb(I,"zs")!=="0"&&y("zs"),yqY(I)!==""&&y("wt"),y("gssmodulesetproto"),y("ujg"),y("sp"),y("rs"),y("cb"),y("ee"),y("slk"),y("dti"),y("m"));return C.join("/")},
Lb=function(I,C){return I.JSC$7933_keys_[C]?I.JSC$7933_keys_[C]:null},DA=function(I,C,y){y?I.JSC$7933_keys_[C]=y:delete I.JSC$7933_keys_[C]},ku8=function(I,C){I.urlPrefix_=C},Fnm=function(I,C){C&&C.length>0?(C.sort(),DA(I,"exm",C.join(","))):DA(I,"exm",null)},u2m=function(I,C){C&&C.length>0?(C.sort(),DA(I,"excm",C.join(","))):DA(I,"excm",null)},z8u=function(I){return(I=Lb(I,"m"))?I.split(","):[]},yqY=function(I){switch(Lb(I,"wt")){case "0":return"0";
case "1":return"1";case "2":return"2";default:return""}},T5d=function(I,C){var y=Object.keys(C).filter(function(k){return!!Object.keys(C[k]).length}).map(function(k){var F=Object.keys(C[k]);
F.length>1&&F.sort();return k+":"+F.join(",")});
y.sort();DA(I,"ee",y.join(";"))},Aqt=function(I){var C=Lb(I,"ee");
if(!C)return{};I={};C=_.T(C.split(";"));for(var y=C.next();!y.done;y=C.next()){var k=_.T(y.value.split(":"));y=k.next().value;k=k.next().value;I[y]={};k=_.T(k.split(","));for(var F=k.next();!F.done;F=k.next())I[y][F.value]=!0}return I},cq8=function(I){delete I.JSC$7933_keys_.m;
delete I.JSC$7933_keys_.exm;delete I.JSC$7933_keys_.ed};
ChY.prototype.clone=function(){return C$(this.toString())};
var C$=function(I,C){C=C===void 0?!0:C;var y=e8w(I),k=new ChY,F=_.U3(y)[5];_.Le.forEach(rqm,function(c){var r=F.match("/"+c+"=([^/]+)");r&&DA(k,c,r[1])});
var z="";z=I.indexOf("_/ss/")!=-1?"_/ss/":"_/js/";ku8(k,I.substr(0,I.indexOf(z)+z.length));if(!C)return k;(I=_.U3(y)[6]||null)&&nKq(I,function(c,r){k.JSC$7933_queryData_[c]=r});
return k},fxO=function(I){I=_.Tl(e8w(I));
return I===null?!1:RegExp("(/_/js/)|(/_/ss/)","g").test(I)?/\/k=/.test(I):!1},e8w=function(I){return I.startsWith("https://uberproxy-pen-redirect.corp.google.com/uberproxy/pen?url=")?I.substr(65):I},rqm={ROW_KEY:"k",
CSS_ROW_KEY:"ck",MODULES:"m",EXCLUDED_MODULES:"exm",EXCLUDED_CSS_MODULES:"excm",ACTIVE_MODS:"am",MASKED_MODS:"mm",RESPONSE_TYPE:"rt",INCLUDE_DEPS:"d",EXCLUDED_DEPS:"ed",SPEC_VERSION:"sv",DEOBFUSCATION_VERSION:"deob",CALLBACK:"cb",SIGNATURE:"rs",SDCH:"sdch",INSERT_MARKERS:"im",DEPENDENCY_GRAPH:"dg",ENABLE_BROTLI_ENCODING:"br",ENABLE_BROTLI_DICTIONARY_ENCODING:"br-d",ENABLE_RBROTLI_ENCODING:"rb",ZSTD_LEVEL:"zs",WRAP_IN_TRY:"wt",EXTRA_EDGES:"ee",SOURCE_MAP:"sm",METADATA:"md",GSS_MODULE_SET_PROTO:"gssmodulesetproto",
USE_JS_GRAPH_FOR_COMBINED_REQUESTS:"ujg",USE_INSTALL_CSS_PROTO:"sp",INCLUDE_COMPILE_HINTS_COMMENT:"ichc",SIDELOADING_ROWKEY:"slk",DISABLE_TOGGLES_INIT:"dti"},iHc=RegExp("^loaded_(g|h)?[_\\d]+$");_.pb=function(I){this.JSC$7945_id_=I;this.opts={}};
_.pb.prototype.JSC$7947_setLabel=function(I){this.label_=I||void 0;return this};
_.pb.prototype.addUploadMetadata=function(I,C){var y=this.opts.data||{};y[I]=C;this.opts.data=y;return this};
var w5P=function(I){var C=_.Le.filter(I.opts,function(y){return y!==null});
C=_.Le.isEmpty(C)?null:C;I=[I.JSC$7945_id_,I.label_,C];C=LYz(I);return I=I.slice(0,C+1)};
_.pb.prototype.toString=function(){var I=w5P(this);return"("+_.pe(I,function(C){return JSON.stringify(C)}).join(",")+")"};
_.pb.prototype.getId=function(){return this.JSC$7945_id_};
_.pb.prototype.getOptions=function(){return _.Le.clone(this.opts)};var Qa=function(){_.pb.call(this,"image-search")};
_.R(Qa,_.pb);Qa.prototype.setSize=function(I){this.opts.imgsz=I;return this};
Qa.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
Qa.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};var Ni=function(){_.pb.call(this,"maps")};
_.R(Ni,_.pb);Ni.prototype.setZoom=function(I){this.opts.zoom=I;return this};
Ni.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
Ni.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};_.Va=function(){_.pb.call(this,"photos")};
_.R(_.Va,_.pb);_.Va.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
_.Va.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};var jG=function(){_.pb.call(this,"url")};
_.R(jG,_.pb);var nSS=function(){var I=new jG;I.opts.type="video";I.opts.site="youtube.com";return I};
jG.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
jG.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};var lL=function(){_.pb.call(this,"video-search")};
_.R(lL,_.pb);var Phd=function(){var I=new lL;I.opts.site="youtube.com";return I};
lL.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
lL.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};var Lnq=function(){_.pb.call(this,"web")};
_.R(Lnq,_.pb);Lnq.prototype.JSC$7947_setLabel=function(I){_.pb.prototype.JSC$7947_setLabel.call(this,I);return this};
Lnq.prototype.addUploadMetadata=function(I,C){_.pb.prototype.addUploadMetadata.call(this,I,C);return this};var Xg=function(){this.items_=[];this.opts={}},D$S=function(I){switch(I){case "image-search":return new Qa;
case "maps":return new Ni;case "photos":return new _.Va;case "url":return new jG;case "video-search":return new lL;case "web":return new Lnq}return new _.pb(I)};
Xg.prototype.addView=function(I){this.items_.push(typeof I==="string"?D$S(I):I);return this};
var p5w=function(I){return"("+_.pe(I.items_,function(C){return C.toString()}).join(",")+")"};
Xg.prototype.toString=function(){return p5w(this)};
Xg.prototype.getViews=function(I,C){C=C===void 0?[]:C;for(var y=this.items_,k=0;k<y.length;k++){var F=y[k];F instanceof Xg?F.getViews(I,C):F.getId()==I&&C.push(F)}return C};
Xg.prototype.getOptions=function(){return _.Le.clone(this.opts)};var fL=function(I){this.basePickerUrl_=I||"https://docs.google.com/picker";this.nav_=new Xg};
fL.prototype.nav_=null;fL.prototype.addView=function(I){this.nav_.addView(I);return this};
fL.prototype.getBaseUrl=function(){return this.basePickerUrl_};
fL.prototype.getViews=function(I){return this.nav_.getViews(I)};
_.QUm=function(I,C){I.callback_=C;return I};var N5w=new Map;N5w.set("application/vnd.google-apps.document","application/vnd.google-gsuite.document-blob");N5w.set("application/vnd.google-apps.spreadsheet","application/vnd.google-gsuite.spreadsheet-blob");N5w.set("application/vnd.google-apps.presentation","application/vnd.google-gsuite.presentation-blob");var VRd=new Set;VRd.add("application/vnd.google-apps.kix");VRd.add("application/vnd.google-apps.ritz");VRd.add("application/vnd.google-apps.punch");var AqY=function(I,C,y){var k=y&&_.b4(y,1);y=jUe(y);var F=I[0].getId();switch(_.YC(F,2)){case 13:return lxd(I,C,k,y);case 3:return X5q(I,C,k,y);case 10:return $$u(I,C,k,y);case 27:return $$u(I,C,k,y);case 12:return R8w(I,C);case 2:return bHc(I,C,k,y);case 5:return Y3w(I,C,k,y);case 9:return Gum(I,C,k,y);case 6:return fxq(I,C,k,y);case 25:return S3Y(I,C,k,y);case 1:return _.nF(I[0],Dju,26)?Kn5(I,C,k,y):$$u(I,C,k,y);default:return{}}},fxq=function(I,C,y,k){I=I.map(function(F){return{id:F.getId().getId(),
serviceId:"youtube",name:F.getName(),description:_.b4(F,3),type:$6(F),lastEditedUtc:_.Lzq(_.MS(F,_.xX,16)).getTime(),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:F.getUrl(),embedUrl:_.b4(F,13),thumbnails:RN(th(F))}});
return{action:C,docs:I,viewToken:k,view:y||"youtube",v2Translated:!0}},bHc=function(I,C,y,k){var F=I.map(function(z){var c=z.getId().getId(),r=_.b4(z,7),w=z.getName(),L=$6(z),D=_.Lzq(_.MS(z,_.xX,12)).getTime(),p=z.getUrl(),Q=Number(vcY(z)),X=_.b4(z,3),b=_.b4(z,11),S=RN(th(z));
var A=_.MS(z,Jh,21);A=_.X8(A,1);var x=_.MS(z,Jh,21);x=_.b4(x,10);var B=_.b4(z,13);var t=_.MS(z,Jh,21);t=_.X8(t,9);var U=_.MS(z,Jh,21);U=_.b4(U,11);c={id:c,serviceId:"docs",mimeType:r,name:w,type:L,lastEditedUtc:D,url:p,sizeBytes:Q,description:X,iconUrl:b,thumbnails:S,isShared:A,downloadUrl:x,embedUrl:B,copyable:t,resourceKey:U};r=_.MS(z,Jh,21);_.X8(r,12)&&(c.uploadState="success",c.isNew=!0);r=_.MS(z,Jh,21);_.nF(r,hh,3)&&(z=_.MS(z,Jh,21),z=_.MS(z,hh,3),_.nF(z,Bz,2)&&(r=bA(z.getDuration().getSeconds()),
w=z.getDuration(),w=_.ti(w,2),c.duration=r+w/1E9),c.aspectRatio=z.getAspectRatio());return c});
return{action:C,docs:F,viewToken:k,view:y||"all",extraUserInputs:gSw(I),v2Translated:!0}},Y3w=function(I,C,y,k){I=I.map(function(F){var z=_.MS(F,RTq,15);
z=_.MS(z,Er,1);ni(F,10,Er,z);return{id:F.getId().getId(),serviceId:"web",mimeType:_.b4(F,7),name:F.getName(),type:$6(F),url:F.getUrl(),description:_.b4(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(F))}});
return{action:C,docs:I,viewToken:k,view:y||"image-search",v2Translated:!0}},Gum=function(I,C,y,k){I=I.map(function(F){return{serviceId:"url",
name:th(F)[0].getUrl().split("/").pop(),type:$6(F),mimeType:_.b4(F,7),url:F.getUrl(),description:_.b4(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(F))}});
return{action:C,docs:I,viewToken:k,view:y||"url",v2Translated:!0}},Kn5=function(I,C,y,k){I=I.map(function(F){return{id:F.getId().getId(),
serviceId:"picasa",name:F.getName(),type:$6(F),description:_.b4(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(F))}});
return{action:C,docs:I,viewToken:k,view:y||"webcam",v2Translated:!0}},$$u=function(I,C,y,k){return{action:C,
docs:I.map(vS5),viewToken:k,view:Wnw(y||"upload",I),extraUserInputs:gSw(I),v2Translated:!0}},Wnw=function(I,C){return C.some(function(y){var k;
return((k=_.MS(y,Ur,30))==null?void 0:_.YC(k,3))===9})?I+"/gmailphotos":I},X5q=function(I,C,y,k){var F=I.map(function(z){var c={id:z.getId().getId(),
serviceId:"picasa",mimeType:_.b4(z,7),name:z.getName(),type:$6(z),lastEditedUtc:_.Lzq(_.MS(z,_.xX,12)).getTime(),url:z.getUrl(),sizeBytes:Number(vcY(z)),description:_.b4(z,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(z)),mediaKey:z.getId().getId(),parentId:_.b4(z,4)},r,w=(r=_.MS(z,NRY,18))==null?void 0:_.MS(r,QJw,3);w&&(c.latitude=Rh(w,1),c.longitude=Rh(w,2));var L;z=(L=_.MS(z,NRY,18))==null?void 0:$C(L,6);L=z!=null?bA(z):void 0;L&&(c.version=
L);return c});
return{action:C,docs:F,viewToken:k,view:y||"photos",extraUserInputs:gSw(I),v2Translated:!0}},lxd=function(I,C,y,k){I=I.map(function(F){return{id:F.getId().getId(),
serviceId:"et",name:th(F)[0].getUrl().split("/").pop(),description:_.b4(F,3),type:"et",iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(F),"etjpg")}});
return{action:C,docs:I,viewToken:k,view:y||"et",v2Translated:!0}},S3Y=function(I,C,y,k){I=I.map(function(F){var z=F.getId().getId(),c=k["2"];
return{id:z,serviceId:c.type!=="gmail_themes"&&c.parent==="6226252643674576769"?"picasa":"static_themes",name:F.getName(),mimeType:_.b4(F,7),type:$6(F),description:_.b4(F,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",url:F.getUrl(),embedUrl:F.getUrl(),thumbnails:RN(th(F))}});
return{action:C,docs:I,viewToken:k,view:y||"photos",v2Translated:!0}},R8w=function(I,C){I=I.map(function(y){var k=_.MS(y,pab,27);
k=_.u7(k,1,_.AP,_.Hi())[0];return{id:y.getId().getId(),serviceId:"contacts",mimeType:_.b4(y,7),name:y.getName(),description:_.b4(y,3),url:"mailto:"+k,thumbnail:[{url:_.b4(y,11)}],email:k}});
return{action:C,docs:I,view:"contacts",v2Translated:!0}},jUe=function(I){if(!I)return{};
var C=_.b4(I,3);C=C&&JSON.parse(C)||{};return{0:_.b4(I,1),1:_.b4(I,2),2:C}},RN=function(I,C){C=C===void 0?"":C;
if(!I.length)return null;C=="etjpg"&&(I=I.filter(function(y){return y.getUrl().includes("w1200-h300")}));
return I.map(function(y){return{url:y.getUrl(),height:y.getHeight(),width:y.getWidth(),type:C}})},gSw=function(I){return{isAttachment:I.some(function(C){return _.X8(C,31)})}},vS5=function(I){var C,y={id:(C=I.getId())==null?void 0:C.getId(),
serviceId:d$P(I),mimeType:_.b4(I,7),name:I.getName(),type:$6(I),sizeBytes:Number(vcY(I)),description:_.b4(I,3),iconUrl:"https://ssl.gstatic.com/docs/doclist/images/icon_10_generic_list.png",thumbnails:RN(th(I)),isNew:!0};if(C=_.MS(I,Ur,30)){y.dataUrl=_.b4(C,1)||null;a:{var k=_.MS(I,Ur,30);switch(_.YC(k,3)){case 9:k=_.Sk(k,XaP,2,Hz);k={remoteRefs:k&&_.b4(k,1)};break a;case 10:case 15:k=_.Sk(k,l85,4,Hz);var F=th(I);k={photo_id:k&&_.b4(k,1),media_key:I.getId().getId(),media_type:_.YC(I,6)===1?1:2,image_url:F&&
F[0].getUrl(),width:F&&String(F[0].getWidth()),height:F&&String(F[0].getHeight())};break a}k=null}y.uploadMetadata=k;y.uploadId=_.b4(C,9)||null;y.uploadState=x$m(C)||null}(k=C&&_.Sk(C,l85,4,Hz))&&(y.id=_.b4(k,1));(k=C&&_.Sk(C,$jm,5,Hz))&&(y.contentId=_.b4(k,1));(k=C&&_.Sk(C,VFP,7,Hz))&&(y.contentId=_.b4(k,1));(k=C&&_.Sk(C,jJm,6,Hz))&&(y.contentId=_.b4(k,1));(C==null?void 0:_.YC(C,3))===1&&(y.mediaKey=I.getId().getId());return y},d$P=function(I){var C;
switch(((C=_.MS(I,Ur,30))==null?void 0:_.YC(C,3))||0){case 1:return"picasa";case 2:case 3:case 4:case 8:case 12:return"photo";case 10:case 15:return"dragonflyphotos";case 11:return"mapspro";case 13:return"books";case 14:return"cultural"}return null},$6=function(I){switch(_.YC(I,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 _.b4(I,7).startsWith("application/vnd.google-apps.")?"document":"file";default:return"file"}},x$m=function(I){switch(I==null?void 0:_.YC(I,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 B5P,q3m,m$P,ZH0;_.bL=function(I,C){var y=C||{};C=y.document||document;var k=_.sC(I).toString(),F=(new lB(C)).createElement("SCRIPT"),z={script_:F,timeout_:void 0},c=new mu(q3m,z),r=null,w=y.timeout!=null?y.timeout:5E3;w>0&&(r=window.setTimeout(function(){m$P(F,!0);c.errback(new ZH0(1,"Timeout reached for loading script "+k))},w),z.timeout_=r);
F.onload=F.onreadystatechange=function(){F.readyState&&F.readyState!="loaded"&&F.readyState!="complete"||(m$P(F,y.cleanupWhenDone||!1,r),c.callback(null))};
F.onerror=function(){m$P(F,!0,r);c.errback(new ZH0(0,"Error while loading script "+k))};
z=y.attributes||{};_.Le.extend(z,{type:"text/javascript",charset:"UTF-8"});YHq(F,z);_.fa(F,I);B5P(C).appendChild(F);return c};
B5P=function(I){var C=rQ("HEAD",I);return C&&C.length!==0?C[0]:I.documentElement};
q3m=function(){if(this&&this.script_){var I=this.script_;I&&I.tagName=="SCRIPT"&&m$P(I,!0,this.timeout_)}};
m$P=function(I,C,y){y!=null&&_.sF.clearTimeout(y);I.onload=function(){};
I.onerror=function(){};
I.onreadystatechange=function(){};
C&&window.setTimeout(function(){_.ey(I)},0)};
ZH0=function(I,C){var y="Jsloader error (code #"+I+")";C&&(y+=": "+C);_.Im.call(this,y);this.code=I};
_.s0(ZH0,_.Im);var ESd=_.hu(["https://apis.google.com/js/api.js"]),h8b=_.tM(ESd),Jqm=function(I,C){var y=!1,k=U$e(I,C).then(function(z){y=!0;return z}),F=_.V1e(5E3).then(function(){return y?U$e(I,C):HH0(C).then(function(z){return tR0(z,I)})});
return cMY([k,F])},U$e=function(I,C){return OHw(C).then(function(y){return tR0(y,I)})},tR0=function(I,C){var y=_.FO(C,"gapi.")?C.slice(5):C;
return I[y]?_.er(I[y]):new _.eN(function(k,F){var z=VZ(function(){F(Error("bb"))},3E4);
I.load(C,{callback:function(){_.sF.clearTimeout(z);k(I[y])},
onerror:function(c){_.sF.clearTimeout(z);F(c)}})})},OHw=function(I){return I.gapi&&I.gapi.load?_.er(I.gapi):HH0(I)},HH0=function(I){return _.bL(h8b,{document:I.document}).then(function(){return I.gapi})},axd=function(){};
axd.prototype.load=function(I,C){C=C===void 0?window:C;var y=Date.now();return Jqm(I,C).then(function(k){var F=Date.now();return{library:k,loadStartMs:y,loadEndMs:F}},function(k){throw k instanceof Error?k:Error(String(k));
})};var Fns=function(){_.LL.call(this);this.gapiLoader_=new axd;this.origin_=null;this.gapiPickerIframeResolver_=_.vP();this.gapiIframesResolver_=_.vP();this.gapiIframesResolver_.promise.then(null,function(){});
this.gapiPickerIframeResolver_.promise.then(null,function(){});
this.hostMessageHandlerInternal_={}};
_.R(Fns,_.LL);var MR5=function(I,C){var y=_.d5("gapi.iframes",C);return y?(I=Date.now(),_.er({library:y,loadStartMs:I,loadEndMs:I})):I.gapiLoader_.load("gapi.iframes",C)},IJe=function(I,C,y,k,F,z){var c=!1;
c=c===void 0?!1:c;MR5(I,Nb(C.ownerDocument)).then(function(r){var w=r.library;I.gapiIframesResolver_.resolve(w);r=I.gapiPickerIframeResolver_;var L=r.resolve,D=c;D=D===void 0?!1:D;var p={};p["host-message-handler"]=y;I.hostMessageHandlerInternal_=p;var Q=_.dQ(k);Q=_.dQ(Q);Q=_.Ov(_.JZ(_.tZ(new _.t$,Q.scheme_),Q.JSC$7905_domain_),Q.JSC$7905_port_).toString();I.origin_=Q;Q=(new p4c).setUrl(k);Q.JSC$7920_obj_.where=C;Q.JSC$7920_obj_.allowPost=D;Q.JSC$7920_obj_.messageHandlers=p;D=_.d5("makeWhiteListIframesFilter",
w)([I.origin_]);Q.JSC$7920_obj_.messageHandlersFilter=D;F!=null&&Q.setId(F);z!=null&&(Q.JSC$7920_obj_.rpctoken=z);D=DTu(Q);D.JSC$7917_obj_.style={display:"block","min-width":"100%",width:"1px"};D.JSC$7917_obj_.height="100%";DTu(Q).value().allow="camera 'src' "+I.origin_;w=w.getContext().openChild(Q.value());L.call(r,w)},function(r){I.gapiIframesResolver_.reject(r);
I.gapiPickerIframeResolver_.reject(r)});
return I.gapiPickerIframeResolver_.promise},CXq=function(I,C){return _.QZ([I.gapiIframesResolver_.promise,
I.gapiPickerIframeResolver_.promise]).then(function(y){var k=_.T(y);y=k.next().value;return(k=k.next().value)?k.send("picker-message-handler",C,void 0,_.d5("makeWhiteListIframesFilter",y)([I.origin_])):_.mr(Error("cb"))})};
Fns.prototype.disposeInternal=function(){sDc(this);_.LL.prototype.disposeInternal.call(this)};
var sDc=function(I){I.gapiPickerIframeResolver_.promise.then(function(C){C&&(C.unregister("host-message-handler"),delete I.hostMessageHandlerInternal_["host-message-handler"])})};var ot5=function(){this.JSC$8007_nextId=0};var kl0=function(I,C){switch(I.action){case "select-contacts":I=yYY(I.contacts);break;case "visibility":I=I.visible;var y=new ad;I=_.A0(y,1,7).setVisible(I);y={};y["iframe-command"]=I.serialize();I=y;break;default:I=null}return I?CXq(C,I):_.er()},yYY=function(I){if(!I||I.length==0)return null;
var C=new ad;_.A0(C,1,11);var y=new ot5;I.forEach(function(k){if(k.email){var F=new Nm;F=_.ac(F,2,k.name?k.name:k.email);var z=new pab;k=_.oKz(z,1,_.SB,k.email,_.AP);k=_.JT(F,27,k);F=k.setId;z=(new Ze).setId(":"+(y.JSC$8007_nextId++).toString(36));z=_.A0(z,2,12);k=F.call(k,z)}else k=null;k&&ni(C,7,Nm,k)});
I={};I["iframe-command"]=C.serialize();return I};_.FZY=function(){if(JtW){var I=/Windows NT ([0-9.]+)/;return(I=I.exec(_.wH()))?I[1]:"0"}return _.tUO?(I=/1[0|1][_.][0-9_.]+/,(I=I.exec(_.wH()))?I[0].replace(/_/g,"."):"10"):Ejs?(I=/Android\s+([^\);]+)(\)|;)/,(I=I.exec(_.wH()))?I[1]:""):a3F||MUz||IUF?(I=/(?:iPhone|CPU)\s+OS\s+(\S+)/,(I=I.exec(_.wH()))?I[1].replace(/_/g,"."):""):""}();var Y6;Y6=function(I){return(I=I.exec(_.wH()))?I[1]:""};
_.uTc=function(){if(_.T6)return Y6(/Firefox\/([0-9.]+)/);if(_.F8||E8||hLs)return _.u79;if(_.cv){if(_.f9()||_.i9K()){var I=Y6(/CriOS\/([0-9.]+)/);if(I)return I}return Y6(/Chrome\/([0-9.]+)/)}if(_.S7&&!_.f9())return Y6(/Version\/([0-9.]+)/);if(T8O||c$9){if(I=/Version\/(\S+).*Mobile\/(\S+)/.exec(_.wH()))return I[1]+"."+I[2]}else if(eot)return(I=Y6(/Android\s+([0-9.]+)/))?I:Y6(/Version\/([0-9.]+)/);return""}();var zwb=function(){};
_.Ih(zwb);zwb.prototype.nextId_=0;_.YX=function(I){return":"+(I.nextId_++).toString(36)};var GG=function(I){_.LW.call(this);this.JSC$8015_dom_=I||u3();this.JSC$8015_id_=null;this.inDocument_=!1;this.JSC$8015_element_=null;this.googUiComponentHandler_=void 0;this.childIndex_=this.children_=this.parent_=this.model_=null;this.wasDecorated_=!1};
_.s0(GG,_.LW);GG.prototype.idGenerator_=zwb.getInstance();GG.prototype.getId=function(){return this.JSC$8015_id_||(this.JSC$8015_id_=_.YX(this.idGenerator_))};
GG.prototype.setId=function(I){this.parent_&&this.parent_.childIndex_&&(_.Le.remove(this.parent_.childIndex_,this.JSC$8015_id_),_.Le.add(this.parent_.childIndex_,I,this));this.JSC$8015_id_=I};
GG.prototype.getElement=function(){return this.JSC$8015_element_};
var fb=function(I){I.googUiComponentHandler_||(I.googUiComponentHandler_=new _.Cq(I));return I.googUiComponentHandler_},TCS=function(I,C){if(I==C)throw Error("db");
var y;if(y=C&&I.parent_&&I.JSC$8015_id_){y=I.parent_;var k=I.JSC$8015_id_;y=y.childIndex_&&k?_.Le.get(y.childIndex_,k)||null:null}if(y&&I.parent_!=C)throw Error("db");I.parent_=C;GG.superClass_.setParentEventTarget.call(I,C)};
GG.prototype.setParentEventTarget=function(I){if(this.parent_&&this.parent_!=I)throw Error("eb");GG.superClass_.setParentEventTarget.call(this,I)};
GG.prototype.JSC$8017_createDom=function(){this.JSC$8015_element_=this.JSC$8015_dom_.createElement("DIV")};
GG.prototype.render=function(I){cYq(this,I)};
var cYq=function(I,C,y){if(I.inDocument_)throw Error("fb");I.JSC$8015_element_||I.JSC$8017_createDom();C?C.insertBefore(I.JSC$8015_element_,y||null):I.JSC$8015_dom_.JSC$7241_document_.body.appendChild(I.JSC$8015_element_);I.parent_&&!I.parent_.inDocument_||I.enterDocument()};
_.u=GG.prototype;_.u.decorate=function(I){if(this.inDocument_)throw Error("fb");if(I&&this.canDecorate(I)){this.wasDecorated_=!0;var C=_.V6(I);this.JSC$8015_dom_&&this.JSC$8015_dom_.JSC$7241_document_==C||(this.JSC$8015_dom_=u3(I));this.decorateInternal(I);this.enterDocument()}else throw Error("gb");};
_.u.canDecorate=function(){return!0};
_.u.decorateInternal=function(I){this.JSC$8015_element_=I};
_.u.enterDocument=function(){this.inDocument_=!0;ew5(this,function(I){!I.inDocument_&&I.getElement()&&I.enterDocument()})};
_.u.exitDocument=function(){ew5(this,function(I){I.inDocument_&&I.exitDocument()});
this.googUiComponentHandler_&&this.googUiComponentHandler_.removeAll();this.inDocument_=!1};
_.u.disposeInternal=function(){this.inDocument_&&this.exitDocument();this.googUiComponentHandler_&&(this.googUiComponentHandler_.dispose(),delete this.googUiComponentHandler_);ew5(this,function(I){I.dispose()});
!this.wasDecorated_&&this.JSC$8015_element_&&_.ey(this.JSC$8015_element_);this.parent_=this.model_=this.JSC$8015_element_=this.childIndex_=this.children_=null;GG.superClass_.disposeInternal.call(this)};
_.u.getModel=function(){return this.model_};
_.u.addChild=function(I,C){var y=this.children_?this.children_.length:0;if(I.inDocument_&&(C||!this.inDocument_))throw Error("fb");if(y<0||y>(this.children_?this.children_.length:0))throw Error("hb");this.childIndex_&&this.children_||(this.childIndex_={},this.children_=[]);I.parent_==this?(_.Le.set(this.childIndex_,I.getId(),I),_.Hs(this.children_,I)):_.Le.add(this.childIndex_,I.getId(),I);TCS(I,this);_.Qmm(this.children_,y,0,I);I.inDocument_&&this.inDocument_&&I.parent_==this?(C=this.getContentElement(),
(C.childNodes[y]||null)!=I.getElement()&&(I.getElement().parentElement==C&&C.removeChild(I.getElement()),y=C.childNodes[y]||null,C.insertBefore(I.getElement(),y))):C?(this.JSC$8015_element_||this.JSC$8017_createDom(),y=this.children_?this.children_[y+1]||null:null,cYq(I,this.getContentElement(),y?y.JSC$8015_element_:null)):this.inDocument_&&!I.inDocument_&&I.JSC$8015_element_&&I.JSC$8015_element_.parentNode&&I.JSC$8015_element_.parentNode.nodeType==1&&I.enterDocument()};
_.u.getContentElement=function(){return this.JSC$8015_element_};
var ew5=function(I,C){I.children_&&I.children_.forEach(C,void 0)};
GG.prototype.removeChild=function(I,C){if(I){var y=typeof I==="string"?I:I.getId();I=this.childIndex_&&y?_.Le.get(this.childIndex_,y)||null:null;y&&I&&(_.Le.remove(this.childIndex_,y),_.Hs(this.children_,I),C&&(I.exitDocument(),I.JSC$8015_element_&&_.ey(I.JSC$8015_element_)),TCS(I,null))}if(!I)throw Error("ib");return I};_.s0(af9,Yq);_.s0(MXY,Yq);var rYS;var ihw=function(I,C){C?I.setAttribute("role",C):I.removeAttribute("role")},SG=function(I,C,y){Array.isArray(y)&&(y=y.join(" "));
var k="aria-"+C;y===""||y==void 0?(rYS||(y={},rYS=(y.atomic=!1,y.autocomplete="none",y.dropeffect="none",y.haspopup=!1,y.live="off",y.multiline=!1,y.multiselectable=!1,y.orientation="vertical",y.readonly=!1,y.relevant="additions text",y.required=!1,y.sort="none",y.busy=!1,y.disabled=!1,y.hidden=!1,y.invalid="false",y)),y=rYS,C in y?I.setAttribute(k,y[C]):I.removeAttribute(k)):I.setAttribute(k,y)};var wNu;_.Kb=function(I,C,y){_.LW.call(this);this.target=I;this.handle=C||I;this.limits=y||new gs(NaN,NaN,NaN,NaN);this.JSC$8020_document_=_.V6(I);this.JSC$8020_eventHandler_=new _.Cq(this);_.kq(this,this.JSC$8020_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;_.Lv(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.useSetCapture_=wNu};
_.s0(_.Kb,_.LW);wNu=_.sF.document&&_.sF.document.documentElement&&!!_.sF.document.documentElement.setCapture&&!!_.sF.document.releaseCapture;_.ntu=function(I,C){I.hysteresisDistanceSquared_=Math.pow(C,2)};
_.u=_.Kb.prototype;_.u.getEnabled=function(){return this.enabled_};
_.u.setEnabled=function(I){this.enabled_=I};
_.u.disposeInternal=function(){_.Kb.superClass_.disposeInternal.call(this);_.Pf(this.handle,["touchstart","mousedown"],this.startDrag,!1,this);this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.handle=this.target=null};
_.u.startDrag=function(I){var C=I.type=="mousedown";if(!this.enabled_||this.dragging_||C&&(I.event_.button!=0||_.tUO&&I.ctrlKey))this.dispatchEvent("earlycancel");else{if(this.hysteresisDistanceSquared_==0)if(this.dispatchEvent(new Aj("start",this,I.clientX,I.clientY,I)))this.dragging_=!0,C&&I.preventDefault();else return;else C&&I.preventDefault();C=this.JSC$8020_document_;var y=C.documentElement,k=!this.useSetCapture_;this.JSC$8020_eventHandler_.listen(C,["touchmove","mousemove"],this.handleMove_,
{capture:k,passive:!1});this.JSC$8020_eventHandler_.listen(C,["touchend","mouseup"],this.endDrag,k);this.useSetCapture_?(y.setCapture(!1),this.JSC$8020_eventHandler_.listen(y,"losecapture",this.endDrag)):this.JSC$8020_eventHandler_.listen(Nb(C),"blur",this.endDrag);this.scrollTarget_&&this.JSC$8020_eventHandler_.listen(this.scrollTarget_,"scroll",this.onScroll_,k);this.clientX=this.startX=I.clientX;this.clientY=this.startY=I.clientY;this.screenX=I.screenX;this.screenY=I.screenY;this.deltaX=this.target.offsetLeft;
this.deltaY=this.target.offsetTop;this.pageScroll=FJ(u3(this.JSC$8020_document_))}};
_.u.endDrag=function(I,C){this.JSC$8020_eventHandler_.removeAll();this.useSetCapture_&&this.JSC$8020_document_.releaseCapture();this.dragging_?(this.dragging_=!1,this.dispatchEvent(new Aj("end",this,I.clientX,I.clientY,I,PXw(this,this.deltaX),LZ0(this,this.deltaY),C||I.type=="touchcancel"))):this.dispatchEvent("earlycancel")};
_.u.handleMove_=function(I){if(this.enabled_){var C=I.clientX-this.clientX,y=I.clientY-this.clientY;this.clientX=I.clientX;this.clientY=I.clientY;this.screenX=I.screenX;this.screenY=I.screenY;if(!this.dragging_){var k=this.startX-this.clientX,F=this.startY-this.clientY;if(k*k+F*F>this.hysteresisDistanceSquared_)if(this.dispatchEvent(new Aj("start",this,I.clientX,I.clientY,I)))this.dragging_=!0;else{this.isDisposed()||this.endDrag(I);return}}y=DSq(this,C,y);C=y.x;y=y.y;this.dragging_&&this.dispatchEvent(new Aj("beforedrag",
this,I.clientX,I.clientY,I,C,y))&&(pN5(this,I,C,y),I.preventDefault())}};
var DSq=function(I,C,y){var k=FJ(u3(I.JSC$8020_document_));C+=k.x-I.pageScroll.x;y+=k.y-I.pageScroll.y;I.pageScroll=k;I.deltaX+=C;I.deltaY+=y;return new _.Q6(PXw(I,I.deltaX),LZ0(I,I.deltaY))};
_.Kb.prototype.onScroll_=function(I){var C=DSq(this,0,0);I.clientX=this.clientX;I.clientY=this.clientY;pN5(this,I,C.x,C.y)};
var pN5=function(I,C,y,k){I.target.style.left=y+"px";I.target.style.top=k+"px";I.dispatchEvent(new Aj("drag",I,C.clientX,C.clientY,C,y,k))},PXw=function(I,C){var y=I.limits;
I=isNaN(y.left)?null:y.left;y=isNaN(y.width)?0:y.width;return Math.min(I!=null?I+y:Infinity,Math.max(I!=null?I:-Infinity,C))},LZ0=function(I,C){var y=I.limits;
I=isNaN(y.top)?null:y.top;y=isNaN(y.height)?0:y.height;return Math.min(I!=null?I+y:Infinity,Math.max(I!=null?I:-Infinity,C))};
_.Kb.prototype.isDragging=function(){return this.dragging_};
var Aj=function(I,C,y,k,F,z,c){_.r1.call(this,I);this.clientX=y;this.clientY=k;this.browserEvent=F;this.left=z!==void 0?z:C.deltaX;this.top=c!==void 0?c:C.deltaY};
_.s0(Aj,_.r1);var gb=function(I){this.JSC$8027_map_=new Map;var C=arguments.length;if(C>1){if(C%2)throw Error("oa");for(var y=0;y<C;y+=2)this.set(arguments[y],arguments[y+1])}else I&&this.addAll(I)};
_.u=gb.prototype;_.u.getCount=function(){return this.JSC$8027_map_.size};
_.u.getValues=function(){return Array.from(this.JSC$8027_map_.values())};
_.u.getKeys=function(){return Array.from(this.JSC$8027_map_.keys())};
_.u.containsKey=function(I){return this.JSC$8027_map_.has(I)};
_.u.containsValue=function(I){return this.getValues().some(function(C){return C==I})};
_.u.equals=function(I,C){var y=this;C=C===void 0?function(k,F){return k===F}:C;
return this===I?!0:this.JSC$8027_map_.size!=I.getCount()?!1:this.getKeys().every(function(k){return C(y.JSC$8027_map_.get(k),I.get(k))})};
_.u.isEmpty=function(){return this.JSC$8027_map_.size==0};
_.u.clear=function(){this.JSC$8027_map_.clear()};
_.u.remove=function(I){return this.JSC$8027_map_.delete(I)};
_.u.get=function(I,C){return this.JSC$8027_map_.has(I)?this.JSC$8027_map_.get(I):C};
_.u.set=function(I,C){this.JSC$8027_map_.set(I,C);return this};
_.u.addAll=function(I){if(I instanceof gb){I=_.T(I.JSC$8027_map_);for(var C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;this.JSC$8027_map_.set(C,y)}}else if(I)for(I=_.T(Object.entries(I)),C=I.next();!C.done;C=I.next())y=_.T(C.value),C=y.next().value,y=y.next().value,this.JSC$8027_map_.set(C,y)};
_.u.forEach=function(I,C){var y=this;C=C===void 0?this:C;this.JSC$8027_map_.forEach(function(k,F){return I.call(C,k,F,y)})};
_.u.clone=function(){return new gb(this)};(function(){for(var I=["ms","moz","webkit","o"],C,y=0;C=I[y]&&!_.sF.requestAnimationFrame;++y)_.sF.requestAnimationFrame=_.sF[C+"RequestAnimationFrame"],_.sF.cancelAnimationFrame=_.sF[C+"CancelAnimationFrame"]||_.sF[C+"CancelRequestAnimationFrame"];if(!_.sF.requestAnimationFrame){var k=0;_.sF.requestAnimationFrame=function(F){var z=(new Date).getTime(),c=Math.max(0,16-(z-k));k=z+c;return _.sF.setTimeout(function(){F(z+c)},c)};
_.sF.cancelAnimationFrame||(_.sF.cancelAnimationFrame=function(F){clearTimeout(F)})}})();
var QDP=[[],[]],NC5=0,V7P=!1,jDu=0,XNc=function(I,C){var y=jDu++,k={measureTask:{id:y,fn:I.measure,context:C},mutateTask:{id:y,fn:I.mutate,context:C},state:{},args:void 0,isScheduled:!1};return function(){arguments.length>0?(k.args||(k.args=[]),k.args.length=0,k.args.push.apply(k.args,arguments),k.args.push(k.state)):k.args&&k.args.length!=0?(k.args[0]=k.state,k.args.length=1):k.args=[k.state];k.isScheduled||(k.isScheduled=!0,QDP[NC5].push(k));V7P||(V7P=!0,window.requestAnimationFrame(lJu))}},lJu=
function(){V7P=!1;
var I=QDP[NC5],C=I.length;NC5=(NC5+1)%2;for(var y,k=0;k<C;++k){y=I[k];var F=y.measureTask;y.isScheduled=!1;F.fn&&F.fn.apply(F.context,y.args)}for(k=0;k<C;++k)y=I[k],F=y.mutateTask,y.isScheduled=!1,F.fn&&F.fn.apply(F.context,y.args),y.state={};I.length=0};var $Sw=_.hu(["about:blank"]),Rwq=_.hu(["javascript:undefined"]),bhY=_.tM($Sw);_.sC(bhY);var Y8u=_.tM(Rwq);_.sC(Y8u);var vl=function(I){_.LW.call(this);this.JSC$8033_element_=I;this.listenKeyIn_=_.Lv(this.JSC$8033_element_,"focus",this,!0);this.listenKeyOut_=_.Lv(this.JSC$8033_element_,"blur",this,!0)};
_.s0(vl,_.LW);vl.prototype.handleEvent=function(I){var C=new _.iR(I.event_);C.type=I.type=="focusin"||I.type=="focus"?"focusin":"focusout";this.dispatchEvent(C)};
vl.prototype.disposeInternal=function(){vl.superClass_.disposeInternal.call(this);wY(this.listenKeyIn_);wY(this.listenKeyOut_);delete this.JSC$8033_element_};var Gl5=function(I,C){this.JSC$8036_element_=I;this.JSC$8036_dom_=C};var Wl=function(I,C){GG.call(this,C);this.useIframeMask_=!!I;this.lastFocus_=null;this.resizeBackgroundTask_=XNc({mutate:this.resizeBackground_},this);XNc({mutate:this.updateModalAndBackground_},this)};
_.s0(Wl,GG);_.u=Wl.prototype;_.u.focusHandler_=null;_.u.visible_=!1;_.u.bgEl_=null;_.u.bgIframeEl_=null;_.u.tabCatcherElement_=null;_.u.backwardTabWrapInProgress_=!1;_.u.getCssClass=function(){return"goog-modalpopup"};
_.u.getBackgroundElement=function(){return this.bgEl_};
_.u.JSC$8017_createDom=function(){Wl.superClass_.JSC$8017_createDom.call(this);var I=this.getElement(),C=_.oh(this.getCssClass()).split(" ");xj(I,C);I.tabIndex=0;_.mc(I,!1);fJe(this);S8q(this)};
var fJe=function(I){if(I.useIframeMask_&&!I.bgIframeEl_){var C=I.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{frameborder:0,style:"border:0;vertical-align:bottom;"});_.jO(C,bhY);I.bgIframeEl_=C;I.bgIframeEl_.className=I.getCssClass()+"-bg";_.mc(I.bgIframeEl_,!1);uLu(I.bgIframeEl_,0)}I.bgEl_||(I.bgEl_=I.JSC$8015_dom_.JSC$7243_createDom("DIV",I.getCssClass()+"-bg"),_.mc(I.bgEl_,!1))},S8q=function(I){I.tabCatcherElement_||(I.tabCatcherElement_=I.JSC$8015_dom_.createElement("SPAN"),_.mc(I.tabCatcherElement_,
!1),I.tabCatcherElement_.tabIndex=0,I.tabCatcherElement_.style.position="absolute")};
_.u=Wl.prototype;_.u.resetBackwardTabWrap_=function(){this.backwardTabWrapInProgress_=!1};
_.u.canDecorate=function(I){return!!I&&I.tagName=="DIV"};
_.u.decorateInternal=function(I){Wl.superClass_.decorateInternal.call(this,I);I=_.oh(this.getCssClass()).split(" ");xj(this.getElement(),I);fJe(this);S8q(this);this.getElement().tabIndex=0;_.mc(this.getElement(),!1)};
_.u.enterDocument=function(){this.bgIframeEl_&&_.fQ(this.bgIframeEl_,this.getElement());_.fQ(this.bgEl_,this.getElement());Wl.superClass_.enterDocument.call(this);_.SZ(this.tabCatcherElement_,this.getElement());this.focusHandler_=new vl(this.JSC$8015_dom_.JSC$7241_document_);fb(this).listen(this.focusHandler_,"focusin",this.onFocus);KZw(this,!1)};
_.u.exitDocument=function(){this.isVisible()&&this.setVisible(!1);_.Bi(this.focusHandler_);Wl.superClass_.exitDocument.call(this);_.ey(this.bgIframeEl_);_.ey(this.bgEl_);_.ey(this.tabCatcherElement_)};
_.u.setVisible=function(I){if(I!=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_&&KZw(this,I),I){if(this.dispatchEvent("beforeshow")){try{this.lastFocus_=this.JSC$8015_dom_.JSC$7241_document_.activeElement}catch(F){}this.updateModalAndBackground_();fb(this).listen(this.JSC$8015_dom_.getWindow(),
"resize",this.resizeBackground_).listen(this.JSC$8015_dom_.getWindow(),"orientationchange",this.resizeBackgroundTask_);AY8(this,!0);this.focus();this.visible_=!0;if(this.popupShowTransition_&&this.bgShowTransition_)iU(this.popupShowTransition_,"end",this.onShow,!1,this),this.bgShowTransition_.play(),this.popupShowTransition_.play();else this.onShow()}}else if(this.dispatchEvent("beforehide")){fb(this).unlisten(this.JSC$8015_dom_.getWindow(),"resize",this.resizeBackground_).unlisten(this.JSC$8015_dom_.getWindow(),
"orientationchange",this.resizeBackgroundTask_);this.visible_=!1;if(this.popupHideTransition_&&this.bgHideTransition_)iU(this.popupHideTransition_,"end",this.onHide,!1,this),this.bgHideTransition_.play(),this.popupHideTransition_.play();else this.onHide();a:{try{var C=this.JSC$8015_dom_,y=C.JSC$7241_document_.body,k=C.JSC$7241_document_.activeElement||y;if(!this.lastFocus_||this.lastFocus_==y){this.lastFocus_=null;break a}(k==y||C.contains(this.getElement(),k))&&this.lastFocus_.focus()}catch(F){}this.lastFocus_=
null}}};
var KZw=function(I,C){I.modalAriaVisibilityHelper_||(I.modalAriaVisibilityHelper_=new Gl5(I.JSC$8015_element_,I.JSC$8015_dom_));I=I.modalAriaVisibilityHelper_;if(C){I.hiddenElements_||(I.hiddenElements_=[]);C=I.JSC$8036_dom_.getChildren(I.JSC$8036_dom_.JSC$7241_document_.body);for(var y=0;y<C.length;y++){var k=C[y],F;if(F=k!=I.JSC$8036_element_)F=k.getAttribute("aria-hidden"),F=!(F==null||F==void 0?0:String(F));F&&(SG(k,"hidden",!0),I.hiddenElements_.push(k))}}else if(I.hiddenElements_){for(C=0;C<
I.hiddenElements_.length;C++)I.hiddenElements_[C].removeAttribute("aria-hidden");I.hiddenElements_=null}};
Wl.prototype.updateModalAndBackground_=function(){this.resizeBackground_();this.reposition()};
var AY8=function(I,C){I.bgIframeEl_&&_.mc(I.bgIframeEl_,C);I.bgEl_&&_.mc(I.bgEl_,C);_.mc(I.getElement(),C);_.mc(I.tabCatcherElement_,C)};
_.u=Wl.prototype;_.u.onShow=function(){this.dispatchEvent("show")};
_.u.onHide=function(){AY8(this,!1);this.dispatchEvent("hide")};
_.u.isVisible=function(){return this.visible_};
_.u.focus=function(){this.focusElement_()};
_.u.resizeBackground_=function(){this.bgIframeEl_&&_.mc(this.bgIframeEl_,!1);this.bgEl_&&_.mc(this.bgEl_,!1);var I=this.JSC$8015_dom_.JSC$7241_document_;var C=_.kF(Nb(this.JSC$8015_dom_.JSC$7241_document_)||window);var y=Math.max(C.width,Math.max(I.body.scrollWidth,I.documentElement.scrollWidth));I=Math.max(C.height,Math.max(I.body.scrollHeight,I.documentElement.scrollHeight));this.bgIframeEl_&&(_.mc(this.bgIframeEl_,!0),_.oGw(this.bgIframeEl_,y,I));this.bgEl_&&(_.mc(this.bgEl_,!0),_.oGw(this.bgEl_,
y,I))};
_.u.reposition=function(){var I;if(_.sJq(this.getElement())=="fixed")var C=I=0;else C=FJ(this.JSC$8015_dom_),I=C.x,C=C.y;var y=kRP(this.getElement());var k=_.kF(Nb(this.JSC$8015_dom_.JSC$7241_document_)||window);I=Math.max(I+k.width/2-y.width/2,0);C=Math.max(C+k.height/2-y.height/2,0);ds(this.getElement(),I,C);ds(this.tabCatcherElement_,I,C)};
_.u.onFocus=function(I){this.backwardTabWrapInProgress_?this.resetBackwardTabWrap_():I.target==this.tabCatcherElement_&&VZ(this.focusElement_,0,this)};
_.u.focusElement_=function(){try{this.getElement().focus()}catch(I){}};
_.u.disposeInternal=function(){_.Bi(this.popupShowTransition_);this.popupShowTransition_=null;_.Bi(this.popupHideTransition_);this.popupHideTransition_=null;_.Bi(this.bgShowTransition_);this.bgShowTransition_=null;_.Bi(this.bgHideTransition_);this.bgHideTransition_=null;Wl.superClass_.disposeInternal.call(this)};var Ge=function(I,C,y){Wl.call(this,C,y);this.JSC$8046_class_=I||"modal-dialog";this.buttons_=(new db).addButton(gtd,!0).addButton(vtw,!1,!0)};
_.s0(Ge,Wl);_.u=Ge.prototype;_.u.escapeToCancel_=!0;_.u.hasTitleCloseButton_=!0;_.u.modal_=!0;_.u.draggable_=!0;_.u.backgroundElementOpacity_=.5;_.u.title_="";_.u.JSC$8048_dragger_=null;_.u.JSC$8048_disposeOnHide_=!1;_.u.titleEl_=null;_.u.titleTextEl_=null;_.u.titleTextId_=null;_.u.titleCloseEl_=null;_.u.contentEl_=null;_.u.buttonEl_=null;_.u.getCssClass=function(){return this.JSC$8046_class_};
_.u.setTitle=function(I){this.title_=I;this.titleTextEl_&&_.Ah(this.titleTextEl_,I)};
_.u.getTitle=function(){return this.title_};
_.u.getContent=function(){return""};
_.u.getContentElement=function(){this.getElement()||this.render();return this.contentEl_};
var WZb=function(I){I.getElement()||I.render();return I.getElement()};
Ge.prototype.getBackgroundElement=function(){this.getElement()||this.render();return Ge.superClass_.getBackgroundElement.call(this)};
var dS5=function(I,C){I.backgroundElementOpacity_=C;I.getElement()&&(C=I.getBackgroundElement())&&uLu(C,I.backgroundElementOpacity_)};
Ge.prototype.setDraggable=function(I){this.draggable_=I;xSe(this,I&&this.inDocument_)};
Ge.prototype.JSC$8048_handleDrag=function(){};
var xSe=function(I,C){var y=_.oh(I.JSC$8046_class_+"-title-draggable").split(" ");I.getElement()&&(C?xj(I.titleEl_,y):PAb(I.titleEl_,y));C&&!I.JSC$8048_dragger_?(C=new _.Kb(I.getElement(),I.titleEl_),I.JSC$8048_dragger_=C,xj(I.titleEl_,y),_.Lv(I.JSC$8048_dragger_,"start",I.setDraggerLimits_,!1,I),_.Lv(I.JSC$8048_dragger_,"drag",I.JSC$8048_handleDrag,!1,I)):!C&&I.JSC$8048_dragger_&&(I.JSC$8048_dragger_.dispose(),I.JSC$8048_dragger_=null)};
_.u=Ge.prototype;
_.u.JSC$8017_createDom=function(){Ge.superClass_.JSC$8017_createDom.call(this);var I=this.getElement(),C=this.JSC$8015_dom_;this.titleTextId_=this.getId();var y=this.getId()+".contentEl";this.titleEl_=C.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-title",this.titleTextEl_=C.JSC$7243_createDom("SPAN",{className:this.JSC$8046_class_+"-title-text",id:this.titleTextId_},this.title_),this.titleCloseEl_=C.JSC$7243_createDom("SPAN",this.JSC$8046_class_+"-title-close"));APu(I,this.titleEl_,this.contentEl_=
C.JSC$7243_createDom("DIV",{className:this.JSC$8046_class_+"-content",id:y}),this.buttonEl_=C.JSC$7243_createDom("DIV",this.JSC$8046_class_+"-buttons"));ihw(this.titleTextEl_,"heading");ihw(this.titleCloseEl_,"button");this.titleCloseEl_.tabIndex=0;SG(this.titleCloseEl_,"label","Close");ihw(I,"dialog");SG(I,"labelledby",this.titleTextId_||"");_.mc(this.titleCloseEl_,this.hasTitleCloseButton_);this.buttons_&&(I=this.buttons_,I.JSC$8049_element_=this.buttonEl_,I.render());_.mc(this.buttonEl_,!!this.buttons_);
dS5(this,this.backgroundElementOpacity_)};
_.u.decorateInternal=function(I){Ge.superClass_.decorateInternal.call(this,I);I=this.getElement();var C=this.JSC$8046_class_+"-content";this.contentEl_=Xh(document,null,C,I)[0];this.contentEl_||(this.contentEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",C),I.appendChild(this.contentEl_));C=this.JSC$8046_class_+"-title";var y=this.JSC$8046_class_+"-title-text",k=this.JSC$8046_class_+"-title-close";(this.titleEl_=Xh(document,null,C,I)[0])?(this.titleTextEl_=Xh(document,null,y,this.titleEl_)[0],this.titleCloseEl_=
Xh(document,null,k,this.titleEl_)[0]):(this.titleEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",C),I.insertBefore(this.titleEl_,this.contentEl_));this.titleTextEl_?(this.title_=tBS(this.titleTextEl_),this.titleTextEl_.id||(this.titleTextEl_.id=this.getId())):(this.titleTextEl_=_.Rd("SPAN",{className:y,id:this.getId()}),this.titleEl_.appendChild(this.titleTextEl_));this.titleTextId_=this.titleTextEl_.id;SG(I,"labelledby",this.titleTextId_||"");this.titleCloseEl_||(this.titleCloseEl_=this.JSC$8015_dom_.JSC$7243_createDom("SPAN",
k),this.titleEl_.appendChild(this.titleCloseEl_));_.mc(this.titleCloseEl_,this.hasTitleCloseButton_);C=this.JSC$8046_class_+"-buttons";(this.buttonEl_=Xh(document,null,C,I)[0])?(this.buttons_=new db(this.JSC$8015_dom_),this.buttons_.decorate(this.buttonEl_)):(this.buttonEl_=this.JSC$8015_dom_.JSC$7243_createDom("DIV",C),I.appendChild(this.buttonEl_),this.buttons_&&(I=this.buttons_,I.JSC$8049_element_=this.buttonEl_,I.render()),_.mc(this.buttonEl_,!!this.buttons_));dS5(this,this.backgroundElementOpacity_)};
_.u.enterDocument=function(){Ge.superClass_.enterDocument.call(this);fb(this).listen(this.getElement(),"keydown",this.onKey_).listen(this.getElement(),"keypress",this.onKey_);fb(this).listen(this.buttonEl_,"click",this.onButtonClick_);xSe(this,this.draggable_);fb(this).listen(this.titleCloseEl_,"click",this.onTitleCloseClick_);var I=this.getElement();ihw(I,"dialog");this.titleTextEl_.id!==""&&SG(I,"labelledby",this.titleTextEl_.id);if(!this.modal_){this.modal_=!1;if(this.inDocument_){I=this.JSC$8015_dom_;
var C=this.getBackgroundElement();I.removeNode(this.bgIframeEl_);I.removeNode(C)}this.isVisible()&&KZw(this,!1)}};
_.u.exitDocument=function(){this.isVisible()&&this.setVisible(!1);xSe(this,!1);Ge.superClass_.exitDocument.call(this)};
_.u.setVisible=function(I){I!=this.isVisible()&&(this.inDocument_||this.render(),Ge.superClass_.setVisible.call(this,I))};
_.u.onShow=function(){Ge.superClass_.onShow.call(this);this.dispatchEvent("aftershow")};
_.u.onHide=function(){Ge.superClass_.onHide.call(this);this.dispatchEvent("afterhide");this.JSC$8048_disposeOnHide_&&this.dispose()};
_.u.setDraggerLimits_=function(){var I=this.JSC$8015_dom_.JSC$7241_document_,C=_.kF(Nb(I)||window),y=Math.max(I.body.scrollWidth,C.width);I=Math.max(I.body.scrollHeight,C.height);var k=kRP(this.getElement());_.sJq(this.getElement())=="fixed"?this.JSC$8048_dragger_.limits=new gs(0,0,Math.max(0,C.width-k.width),Math.max(0,C.height-k.height)):this.JSC$8048_dragger_.limits=new gs(0,0,y-k.width,I-k.height)};
_.u.onTitleCloseClick_=function(){q8w(this)};
var q8w=function(I){if(I.hasTitleCloseButton_){var C=I.buttons_,y=C&&C.cancelButton_;y?(C=C.get(y),I.dispatchEvent(new x6(y,C))&&I.setVisible(!1)):I.setVisible(!1)}},mSq=function(I){I.hasTitleCloseButton_=!1;
I.titleCloseEl_&&_.mc(I.titleCloseEl_,I.hasTitleCloseButton_)};
Ge.prototype.disposeInternal=function(){this.buttonEl_=this.titleCloseEl_=null;Ge.superClass_.disposeInternal.call(this)};
Ge.prototype.onButtonClick_=function(I){a:{for(I=I.target;I!=null&&I!=this.buttonEl_;){if(I.tagName=="BUTTON")break a;I=I.parentNode}I=null}if(I&&!I.disabled){I=I.name;var C=this.buttons_.get(I);this.dispatchEvent(new x6(I,C))&&this.setVisible(!1)}};
Ge.prototype.onKey_=function(I){var C=!1,y=!1,k=this.buttons_,F=I.target;if(I.type=="keydown")if(this.escapeToCancel_&&I.keyCode==27){var z=k&&k.cancelButton_;F=F.tagName=="SELECT"&&!F.disabled;z&&!F?(y=!0,C=k.get(z),C=this.dispatchEvent(new x6(z,C))):F||(C=!0)}else{if(I.keyCode==9&&I.shiftKey&&F==this.getElement()){this.backwardTabWrapInProgress_=!0;try{this.tabCatcherElement_.focus()}catch(D){}VZ(this.resetBackwardTabWrap_,0,this)}}else if(I.keyCode==13){if(F.tagName=="BUTTON"&&!F.disabled)z=F.name;
else if(F==this.titleCloseEl_)q8w(this);else if(k){var c=k.defaultButton_,r;if(r=c)a:{r=rQ("BUTTON",k.JSC$8049_element_);for(var w,L=0;w=r[L];L++)if(w.name==c||w.id==c){r=w;break a}r=null}F=(F.tagName=="TEXTAREA"||F.tagName=="SELECT"||F.tagName=="A")&&!F.disabled;!r||r.disabled||F||(z=c)}z&&k&&(y=!0,C=this.dispatchEvent(new x6(z,String(k.get(z)))))}else F!=this.titleCloseEl_||I.keyCode!=32&&I.key!=" "||q8w(this);if(C||y)I.stopPropagation(),I.preventDefault();C&&this.setVisible(!1)};
var x6=function(I,C){this.type="dialogselect";this.key=I;this.caption=C};
_.s0(x6,_.r1);var db=function(I){gb.call(this);I||u3();this.cancelButton_=this.JSC$8049_element_=this.defaultButton_=null};
_.s0(db,gb);_.u=db.prototype;_.u.clear=function(){gb.prototype.clear.call(this);this.defaultButton_=this.cancelButton_=null};
_.u.set=function(I,C,y,k){gb.prototype.set.call(this,I,C);y&&(this.defaultButton_=I);k&&(this.cancelButton_=I);return this};
_.u.addButton=function(I,C,y){return this.set(I.key,I.caption,C,y)};
_.u.render=function(){if(this.JSC$8049_element_){_.SO(this.JSC$8049_element_,cqK);var I=u3(this.JSC$8049_element_);this.forEach(function(C,y){C=I.JSC$7243_createDom("BUTTON",{name:y},C);y==this.defaultButton_&&(C.className="goog-buttonset-default");this.JSC$8049_element_.appendChild(C)},this)}};
_.u.decorate=function(I){if(I&&I.nodeType==1){this.JSC$8049_element_=I;I=rQ("BUTTON",this.JSC$8049_element_);for(var C,y,k,F=0;C=I[F];F++)if(y=C.name||C.id,k=tBS(C)||C.value,y){var z=F==0;this.set(y,k,z,C.name=="cancel");z&&_.qx(C,"goog-buttonset-default")}}};
_.u.getElement=function(){return this.JSC$8049_element_};
var gtd={key:"ok",caption:"OK"},vtw={key:"cancel",caption:"Cancel"},Zh5={key:"yes",caption:"Yes"},BCY={key:"no",caption:"No"},Etd={key:"save",caption:"Save"},hww={key:"continue",caption:"Continue"};typeof document!="undefined"&&((new db).addButton(gtd,!0,!0),(new db).addButton(gtd,!0).addButton(vtw,!1,!0),(new db).addButton(Zh5,!0).addButton(BCY,!1,!0),(new db).addButton(Zh5).addButton(BCY,!0).addButton(vtw,!1,!0),(new db).addButton(hww).addButton(Etd).addButton(vtw,!0,!0));_.s0(Ixz,Ge);_.s0(Cht,fL);var USq=_.hu(["//www-onepick-opensocial.googleusercontent.com/gadgets/js/rpc.js?c=1&container=onepick"]),Hhw=_.hu(["//apis.google.com/js/rpc.js"]),T5W=_.tM(USq),z8z=_.tM(Hhw),Sy=null;var KL=function(I,C){_.LW.call(this);this.JSC$8058_element_=I;I=_.tz(this.JSC$8058_element_)?this.JSC$8058_element_:this.JSC$8058_element_?this.JSC$8058_element_.body:null;this.isRtl_=!!I&&_.zTd(I);this.listenKey_=_.Lv(this.JSC$8058_element_,_.u4?"DOMMouseScroll":"mousewheel",this,C)};
_.s0(KL,_.LW);KL.prototype.handleEvent=function(I){var C=0,y=0,k=I.event_;k.type=="mousewheel"?(I=t7P(-k.wheelDelta),k.wheelDeltaX!==void 0?(C=t7P(-k.wheelDeltaX),y=t7P(-k.wheelDeltaY)):y=I):(I=k.detail,I>100?I=3:I<-100&&(I=-3),k.axis!==void 0&&k.axis===k.HORIZONTAL_AXIS?C=I:y=I);typeof this.maxDeltaX_==="number"&&(C=_.St(C,-this.maxDeltaX_,this.maxDeltaX_));typeof this.maxDeltaY_==="number"&&(y=_.St(y,-this.maxDeltaY_,this.maxDeltaY_));this.isRtl_&&(C=-C);C=new JY0(I,k,C,y);this.dispatchEvent(C)};
var t7P=function(I){return _.z6&&(_.tUO||Ogz)&&I%40!=0?I:I/40};
KL.prototype.disposeInternal=function(){KL.superClass_.disposeInternal.call(this);wY(this.listenKey_);this.listenKey_=null};
var JY0=function(I,C,y,k){_.iR.call(this,C);this.type="mousewheel";this.detail=I;this.deltaX=y;this.deltaY=k};
_.s0(JY0,_.iR);_.Fv=function(I){var C="instance_";if(I.instance_&&I.hasOwnProperty(C))return I.instance_;C=new I;return I.instance_=C};var u2s;var OhS=_.hu(["https://about:blank"]),aJw=_.hu(['javascript:""']),M75=_.hu(["about:blank"]);_.s0(ZD,Ixz);_.u=ZD.prototype;_.u.JSC$8066_url_="";_.u.JSC$8066_iframe_=null;_.u.iframeLoaded_=!1;_.u.loadedFired_=!1;_.u.callback_=function(){};
_.u.enterDocument=function(){ZD.superClass_.enterDocument.call(this);kuK(this.getBackgroundElement(),fb(this))};
_.u.render=function(I){var C=this;ZD.superClass_.render.call(this,I);this.useGapi_?MR5(this.iframeManager_,window).then(function(){return Ivq(C)}).then(null,function(){C.callback_({action:"error"})}):C$w(this)};
var Ivq=function(I){var C=I.JSC$8015_dom_.JSC$7243_createDom("div",["picker-dialog-content","picker-frame"]);_.mc(C,!1);I.getContentElement().appendChild(C);return IJe(I.iframeManager_,C,function(y){var k=Kzw(y["iframe-command"]);switch(k.getCommand()){case 1:y=I.callback_;k=_.MS(k,Or,2);var F="";switch(k.getStatus()){case 2:F="cancel";break;case 1:F="picked";break;case 3:F="error"}var z=_.U1(k,Nm,2,_.Hi(VQs));k=z.length===0?{action:F}:AqY(z,F,_.MS(k,GRw,7));y.call(I,k);I.setVisible(!1);break;case 4:mSq(I);
I.callback_({action:"loaded"});break;case 7:case 8:y=I.callback_;a:{F=k.getCommand();z=_.MS(k,Or,2);switch(F){case 7:F="uploadScheduled";break;case 8:F="uploadStateChange";break;default:k={};break a}k=_.U1(z,Nm,2,_.Hi(VQs));if(k.length===0)k={action:F};else{var c=_.MS(z,GRw,7);z=c&&_.b4(c,1);c=jUe(c);k=$$u(k,F,z,c)}}y.call(I,k)}},I.JSC$8066_url_,I.targetId_,I.rpcToken_).then(function(y){I.JSC$8066_iframe_=y.getIframeEl();
seY(I);_.mc(I.JSC$8066_iframe_.parentElement,!0);_.qx(I.getElement(),"picker-dialog");oVu(I);return y})},C$w=function(I){I.JSC$8066_iframe_=I.JSC$8015_dom_.JSC$7243_createDom("IFRAME",{id:I.targetId_,
name:I.targetId_,"class":"picker-frame",frameBorder:"0",allow:"camera"});_.jO(I.JSC$8066_iframe_,yz0(I));_.qx(I.getElement(),"picker-dialog");I.getContentElement().appendChild(I.JSC$8066_iframe_);fb(I).listen(I.JSC$8066_iframe_,"load",function(){return void seY(I)});
I.JSC$8066_iframe_.src=I.JSC$8066_url_;oVu(I)},FxY=function(I){kDq(I,(0,_.DD)(function(C){C.setAuthToken(this.targetId_,this.rpcToken_)},I))},oVu=function(I){var C=_.xq(_.dQ(I.JSC$8066_url_),"title");
C&&I.setTitle(C)},yz0=function(I){return _.cXm("Internet Explorer")>=7&&_.FO(I.JSC$8066_url_,"https")?_.tM(OhS):_.F8?_.tM(aJw):_.tM(M75)},seY=function(I){FxY(I);
I.iframeLoaded_=!0;I.JSC$8066_iframe_.tabIndex=0;I.isVisible()&&I.focus()};
ZD.prototype.handleKeydown_=function(I){I.keyCode==27&&(this.setVisible(!1),this.callback_({action:"cancel"}),I.stopPropagation(),I.preventDefault())};
var kDq=function(I,C){var y=I.JSC$8064_gadgetsDomHelper_;oSO(function(){C(y.getWindow().gadgets.rpc)},y)};
ZD.prototype.setUrl=function(I){I=_.q9(new _.t$(I),"rpcService",this.targetId_);_.q9(I,"rpctoken",this.rpcToken_);_.IN(I,"rpctoken="+this.rpcToken_);_.tZ(I,"https");this.JSC$8066_url_=I.toString();this.JSC$8066_iframe_&&(this.JSC$8066_iframe_.src=this.JSC$8066_url_)};
var uj8=function(I,C){I.callback_=C;kDq(I,(0,_.DD)(function(y){y.register(this.targetId_,(0,_.DD)(this.handlePickerAction_,this))},I))};
ZD.prototype.handlePickerAction_=function(I){var C=I.action;C=="loaded"&&(this.loadedFired_=!0,z15(this,new MXY(this.isVisible())),TIq(this),mSq(this),fb(this).unlisten(this.JSC$8015_dom_.getWindow(),"keydown",this.handleKeydown_),this.JSC$8066_iframe_.tabIndex=0);C!="picked"&&C!="cancel"||this.setVisible(!1);this.callback_(I)};
var TIq=function(I){I.JSC$8066_appId_&&z15(I,new af9(I.JSC$8066_appId_,window.location.protocol+"//"+window.location.host))};
ZD.prototype.setRelayUrl=function(I){kDq(this,(0,_.DD)(function(C){C.setRelayUrl(this.targetId_,I)},this))};
var z15=function(I,C){I.useGapi_&&kl0(C,I.iframeManager_).then(null,function(){I.callback_({action:"error"})});
kDq(I,(0,_.DD)(function(y){y.call(this.targetId_,"picker",null,C)},I))};
ZD.prototype.resizePicker_=function(){var I=Nb(this.JSC$8015_dom_.JSC$7241_document_)||window;if(_.xq(_.dQ(this.JSC$8066_url_),"ignoreLimits")=="true")I=new _.y6(this.preferredDialogWidth_,this.preferredDialogHeight_);else if(_.xq(_.dQ(this.JSC$8066_url_),"shadeDialog")=="true"){var C=WZb(this);C=TR5(C);var y=_.kF(I);I=y.width-80;y=y.height-40;C&&(I-=C.left?C.left:0,I-=C.right?C.right:0,y-=C.top?C.top:0,y-=C.bottom?C.bottom:0);I=new _.y6(I>0?I:0,y>0?y:0)}else(C=this.preferredDialogWidth_)?(C=Math.max(320,
Math.min(1051,C)),(y=this.preferredDialogHeight_)||(y=_.kF(I).height*.85),y=Math.max(480,Math.min(650,y))):(C=_.kF(I),y=C.width*.618,y=y<C.height?Math.round(Math.max(480,Math.min(650,y*.85))):Math.round(Math.max(480,Math.min(650,C.height*.85))),C=Math.round(y/.618)),I=_.kF(I),C=Math.min(C,Math.max(I.width,320)),y=Math.min(y,Math.max(I.height,480)),I=new _.y6(C,y);_.oGw(this.getContentElement(),I);this.reposition()};
ZD.prototype.reposition=function(){if(_.xq(_.dQ(this.JSC$8066_url_),"shadeDialog")=="true"){var I=kRP(this.getElement()),C=_.kF(this.JSC$8015_dom_.getWindow());I=Math.floor(C.width/2-I.width/2);C=WZb(this);if(C=TR5(C)){var y=C.left?C.left:0;y+=C.right?C.right:0;I=Math.floor(I-y/2)}I=I>0?I:0;C=FJ(this.JSC$8015_dom_).y;ds(this.getElement(),I,C)}else ZD.superClass_.reposition.call(this)};
ZD.prototype.setVisible=function(I){if(I!=this.isVisible()&&this.autoSizeDialog_){var C=this.JSC$8015_dom_.getWindow();I?(this.resizePicker_(),fb(this).listen(C,"resize",this.resizePicker_),this.iframeLoaded_||fb(this).listen(C,"keydown",this.handleKeydown_)):(fb(this).unlisten(C,"resize",this.resizePicker_),this.iframeLoaded_||fb(this).unlisten(C,"keydown",this.handleKeydown_))}ZD.superClass_.setVisible.call(this,I);z15(this,new MXY(I))};
ZD.prototype.focus=function(){ZD.superClass_.focus.call(this);if(this.JSC$8066_iframe_&&this.iframeLoaded_&&this.loadedFired_)try{this.JSC$8066_iframe_.focus()}catch(I){}};var DW=function(I,C){C=C===void 0?ZD:C;fL.call(this,I);this.pickerConstructor=C;this.urlParamMap_=new Map;this.urlParamMap_.set("protocol","gadgets");(I=window.location.origin)||(I=window.location.protocol+"//"+window.location.host);I&&this.urlParamMap_.set("origin",I);this.postProcessors_=[]};
_.R(DW,Cht);DW.prototype.JSC$8071_disposeOnHide_=!1;
DW.prototype.build=function(){this.JSC$7972_appId_&&this.urlParamMap_.has("oauth_token")&&this.urlParamMap_.set("appId",this.JSC$7972_appId_);this.getRelayUrl()||this.setRelayUrl(_.az(_.IN(_.M2(_.dQ(window.location.href)),""),"/favicon.ico").toString());this.urlParamMap_.set("ifls",Date.now());if(this.urlParamMap_.get("minimal"))throw Error("jb");var I=new this.pickerConstructor(cz8(this).toString(),!0,null,this.dialogWidth_,this.dialogHeight_,"",void 0,!1,!1);I.JSC$8048_disposeOnHide_=this.JSC$8071_disposeOnHide_;
I.JSC$8066_appId_=this.JSC$7972_appId_;I.loadedFired_&&TIq(I);uj8(I,this.callback_);return I};
var e1w=function(I){I.urlParamMap_.set("multiselectEnabled","true");return I};
DW.prototype.getHeight=function(){return this.dialogHeight_};
DW.prototype.getRelayUrl=function(){return this.urlParamMap_.get("parent")};
DW.prototype.getTitle=function(){return this.urlParamMap_.get("title")};
DW.prototype.getWidth=function(){return this.dialogWidth_};
var rzw=function(I){I.JSC$8071_disposeOnHide_=void 0;return I};
DW.prototype.setRelayUrl=function(I){this.urlParamMap_.set("parent",I);return this};
var iwP=function(I,C){I.urlParamMap_.set("selectButtonLabel",C);return I};
DW.prototype.setSize=function(I,C){this.dialogWidth_=I;this.dialogHeight_=C;return this};
DW.prototype.setTitle=function(I){this.urlParamMap_.set("title",I);return this};
var cz8=function(I){I.postProcessors_.length&&I.urlParamMap_.set("pp",JSON.stringify(I.postProcessors_));I.urlParamMap_.set("nav",p5w(I.nav_));var C=new _.t$(I.getBaseUrl());I.urlParamMap_.forEach(function(y,k){_.q9(C,k,y)});
return C};var P$w=function(I,C){I.name!==void 0?(this.name=I.name,this.code=wFm[I.name]):(this.code=I=I.code,this.name=nVS(I));_.Im.call(this,tI5("%s %s",this.name,C))};
_.s0(P$w,_.Im);var nVS=function(I){var C=_.Le.findKey(wFm,function(y){return I==y});
if(C===void 0)throw Error("lb`"+I);return C},qi={},wFm=(qi.AbortError=3,qi.EncodingError=5,qi.InvalidModificationError=9,qi.InvalidStateError=7,qi.NotFoundError=1,qi.NotReadableError=4,qi.NoModificationAllowedError=6,qi.PathExistsError=12,qi.QuotaExceededError=10,qi.SecurityError=2,qi.SyntaxError=8,qi.TypeMismatchError=11,qi);var Lxq=function(I,C){_.r1.call(this,I.type,C);this.event_=I};
_.s0(Lxq,_.r1);var Dyc=function(I,C,y){y===void 0&&(y=I.size);return I.slice?I.slice(C,y):null};var rqs=new WeakMap,e8F=function(I,C){I=[I];for(var y=C.length-1;y>=0;--y)I.push(typeof C[y],C[y]);return I.join("\v")};_.w5Y(function(){if(!_.sF.Blob)return!1;var I=new Uint8Array(100);try{var C=new Blob([I])}catch(y){return!1}return C.size!=100?!1:!0});
var pFc=_.w5Y(function(){if(!_.sF.Blob)return!1;var I=new Uint8Array(100);try{var C=new Blob([I])}catch(y){return!1}return Dyc(C,0,1)===null?!1:!0});_.sF.U3bHHf!=null||(_.sF.U3bHHf=0);_.sF.U3bHHf++;var PhW={};var tk=void 0;var OB=Symbol("tb");var bHX=a1("WizInjectionContext_Dispatcher");var jUI=a1("WizInjectionContext_RootElement");var X5O=a1("WizInjectionContext_AppContext"),lxW=a1("WizInjectionContext_ModelRootElement"),$$z=a1("WizInjectionContext_RendererData"),R8m=a1("WizInjectionContext_InjectingConstructor"),VRW=a1("WizInjectionContext_AsyncDeps"),Y3m={};var Kn9=!1;var Qeq=Symbol("wb"),Rwz=Symbol("xb"),fJI=Symbol("yb"),Y8z=Symbol("zb"),dS9=qq(function(I){return B5Y(I)&&Qeq in I});var WnF={enableAttributeSanitization:!0,enableComponentStacksInErrorMessages:!0,enableContextPerComponent:Zgm,enableLazyTsx:BNI,enablePerformanceTiming:!1,alwaysTrackContexts:!1,enableClientOnlyWizVeLogging:!0,disableSoyJsRenderEvents:!1};var su=Object.assign({},{attributes:{},handleError:function(I){throw I;}},WnF);var ESW=Symbol("Ab"),mX={},m$Y=(mX[ESW]=!0,mX.debugName="[component]",mX.getComponentStack=function(){for(var I=[],C=this;C;)h8m(C)&&I.push(C.debugName),C=C.parent;return I},mX.registerSignal=function(){},mX.registerEffect=function(){},mX);var oF=null,k4=!1,axW=1,zO=Symbol("Bb"),n$={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:function(){return!1},
producerRecomputeValue:function(){},
consumerMarkedDirty:function(){},
consumerOnSignalRead:function(){}};var ZA=Symbol("Cb"),Bl=Symbol("Db"),u0=Symbol("Eb"),FZt=Object.assign({},n$,{value:ZA,dirty:!0,error:null,equal:U$I,kind:"computed",producerMustRecompute:function(I){return I.value===ZA||I.value===Bl},
producerRecomputeValue:function(I){if(I.value===Bl)throw Error("da");var C=I.value;I.value=Bl;var y=ot9(I),k=!1;try{var F=I.computation();yM(null);k=C!==ZA&&C!==u0&&F!==u0&&I.equal(C,F)}catch(z){F=u0,I.error=z}finally{yYt(I,y)}k?I.value=C:(I.value=F,I.version++)}});var ew9=function(){throw Error();};var ihm=null,zwm=Object.assign({},n$,{equal:U$I,value:void 0,kind:"signal"});Object.assign({},n$,{value:ZA,dirty:!0,error:null,equal:U$I,kind:"linkedSignal",producerMustRecompute:function(I){return I.value===ZA||I.value===Bl},
producerRecomputeValue:function(I){if(I.value===Bl)throw Error("da");var C=I.value;I.value=Bl;var y=ot9(I);try{var k=I.source();var F=I.computation(k,C===ZA||C===u0?void 0:{source:I.sourceValue,value:C});I.sourceValue=k}catch(z){F=u0,I.error=z}finally{yYt(I,y)}C!==ZA&&F!==u0&&I.equal(C,F)?I.value=C:(I.value=F,I.version++)}});Object.assign({},n$,{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:function(I){I.schedule!==null&&I.schedule(I.ref)},
hasRun:!1,cleanupFn:function(){}});var ntz=Symbol("Fb"),re=Symbol("Gb");var i0=Array.isArray;var lJz;var NId={},$Sm=jDz(Object.assign({},{consumerAllowSignalWrites:!0},NId)),r5=jDz(Object.assign({},{consumerAllowSignalWrites:!0},NId));var p$=0,EU=function(){this.queue=new Set};
EU.prototype.remove=function(I){this.queue.delete(I)};
EU.prototype.clear=function(){this.queue.clear()};
var VPe=function(){EU.apply(this,arguments)};
_.R(VPe,EU);VPe.prototype.schedule=function(I){this.queue.add(I)};
VPe.prototype.flush=function(){if(this.queue.size)for(var I=_.T(this.queue),C=I.next();!C.done;C=I.next()){C=C.value;this.queue.delete(C);try{C.run()}catch(y){je8(y)}}};
var lvw=new VPe,hj=function(){EU.apply(this,arguments)};
_.R(hj,EU);var XF5=function(){hj.apply(this,arguments)};
_.R(XF5,hj);XF5.prototype.schedule=function(I){I.hasRun?this.queue.add(I):I.run()};
XF5.prototype.flush=function(){if(this.queue.size){var I=this.queue;this.queue=new Set;xSI(I)}};
var bht=new XF5,$yP=function(){hj.apply(this,arguments)};
_.R($yP,hj);$yP.prototype.schedule=function(I){var C=this;return _.e(function(y){if(y.nextAddress==1)return I.hasRun?y.jumpTo(2):_.n(y,Promise.resolve(),3);if(y.nextAddress!=2)return I.run(),y.return();C.queue.add(I);_.oI(y)})};
$yP.prototype.flush=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1){if(!I.queue.size)return y.return();C=I.queue;I.queue=new Set;return _.n(y,Promise.resolve(),2)}xSI(C);_.oI(y)})};
var S8z=new $yP,R1m=function(){hj.apply(this,arguments)};
_.R(R1m,hj);R1m.prototype.schedule=function(I){this.queue.add(I)};
R1m.prototype.flush=function(){if(this.queue.size){var I=this.queue;this.queue=new Set;xSI(I)}};
var Gl9=new R1m,vtm=[bht,lvw,Gl9,S8z],bww=[bht,Gl9,S8z],AYK=[];ihm=function(){WZm();for(var I=_.T(AYK),C=I.next();!C.done;C=I.next())C=C.value,C()};
var je8=om;var NT=Symbol("Lb");var QM=null,BCt,EtW=null,hwF;var UU={},YLd=Object.assign({},n$,(UU[Qeq]=!0,UU.effectType=Rwz,UU.isResettableContext=!0,UU.producerNode=void 0,UU.hasRun=!1,UU.effectFn=null,UU.consumerIsAlwaysLive=!0,UU.consumerAllowSignalWrites=!0,UU.consumerMarkedDirty=KZF,UU.run=function(){if(this.effectFn!==null&&!this.isDisposed){if(k4)throw Error("Mb");this.dirty=!1;if(!this.hasRun||MR9(this)){this.hasRun=!0;N5m(this);var I=Jk(this),C=ot9(this);x$s("effectRun",this.debugName);try{jX(this.effectFn,{stack:this.componentStack})}finally{q3s("effectRun",
this.debugName),yYt(this,C),Jk(I)}}}},UU.componentStack=void 0,UU.debugName="[effect]",UU[Symbol.dispose]=function(){HHI(this);
if(F$(this))for(var I=0;I<this.producerNode.length;I++)tRI(this.producerNode[I],this.producerIndexOfThis[I]);this.producerNode.length=this.producerLastReadVersion.length=this.producerIndexOfThis.length=0;this.liveConsumerNode&&(this.liveConsumerNode.length=this.liveConsumerIndexOfThis.length=0);I=_.T(bww);for(var C=I.next();!C.done;C=I.next())C.value.remove(this);M9(this)},UU));var HhF=Object.assign({},YLd,{effectType:fJI});var t7Y=Object.assign({},YLd,{effectType:Rwz});var JYI=Symbol("Nb");var fvX=new Set("allowfullscreen async autofocus autoplay checked controls default defer disabled formnovalidate hidden ismap itemscope jsshadow jsslot loop multiple muted novalidate open playsinline readonly required reversed scoped seamless selected spellcheck sortable typemustmatch".split(" "));var Ou=Symbol("Ob");var zu=function(){},LH=function(I){this.props=I;
this.__unmounted=!1};
LH.prototype.didPatch=function(){};
LH.prototype.didMount=function(){};
LH.prototype.didUnmount=function(){};
LH.prototype.didUpdate=function(){};var M79={align:1,alt:1,"aria-activedescendant":10,"aria-atomic":1,"aria-autocomplete":1,"aria-busy":1,"aria-checked":1,"aria-controls":10,"aria-current":1,"aria-describedby":10,"aria-disabled":1,"aria-dropeffect":1,"aria-expanded":1,"aria-haspopup":1,"aria-hidden":1,"aria-invalid":1,"aria-label":1,"aria-labelledby":10,"aria-level":1,"aria-live":1,"aria-multiline":1,"aria-multiselectable":1,"aria-orientation":1,"aria-owns":10,"aria-posinset":1,"aria-pressed":1,"aria-readonly":1,"aria-relevant":1,"aria-required":1,
"aria-selected":1,"aria-setsize":1,"aria-sort":1,"aria-valuemax":1,"aria-valuemin":1,"aria-valuenow":1,"aria-valuetext":1,async:8,autocapitalize:1,autocomplete:1,autocorrect:1,autofocus:1,autoplay:1,bgcolor:1,border:1,cellpadding:1,cellspacing:1,checked:1,cite:1,"class":1,color:1,cols:1,colspan:1,contenteditable:1,controls:1,controlslist:1,crossorigin:1,datetime:1,dir:8,disabled:1,download:1,draggable:1,enctype:1,face:1,"for":10,formenctype:1,frameborder:1,height:1,hidden:1,href:4,hreflang:1,id:10,
ismap:1,itemid:1,itemprop:1,itemref:1,itemscope:1,itemtype:1,label:1,lang:1,list:10,loading:8,loop:1,max:1,maxlength:1,media:1,min:1,minlength:1,multiple:1,muted:1,name:10,nonce:1,open:1,placeholder:1,playsinline:1,poster:1,preload:1,rel:1,required:1,reversed:1,role:1,rows:1,rowspan:1,selected:1,shape:1,size:1,sizes:1,slot:1,span:1,spellcheck:1,src:4,srcset:12,start:1,step:1,style:5,summary:1,tabindex:1,target:8,title:1,translate:1,type:1,valign:1,value:1,width:1,wrap:1},aJF={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}]}},VkF={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},set=[{auto:!0,ltr:!0,rtl:!0},{async:!0},{eager:!0,lazy:!0},{_self:!0,_blank:!0}],C$F={"*":{async:1,dir:0,loading:2,target:3}};var GD0=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,Hl={},yzI=(Hl[1]=null,Hl[2]=function(I,C){return C instanceof Qp?Vp(C):eO.toString()},Hl[3]=function(I,C){return ui(C)?_.zK(C):GD0.test(String(C))?String(C):eO.toString()},Hl[4]=function(I,C){return C instanceof IM?_.sC(C):eO.toString()},Hl[5]=function(I,C){return String(C)},Hl[7]=null,Hl[8]=null,Hl[10]=null,Hl);var E$m=Symbol("Rb");var t6m=function(I){var C=fvc,y=I,k="",F="",z=1;I<0&&(I=-I);if(I===Infinity)I=(Infinity*Math.sign(y)).toString();else{for(var c=0;c<SLd.length;c++){var r=SLd[c];z=C[r];if(I>=z||z<=1&&I>.1*z){k=r;break}}k?(k+="B",F=" "):z=1;I=Math.round(y/z*10)/10+F+k}return I},SLd="Y Z E P T G M K  m u n".split(" "),fvc={"":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};_.Kxe=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 oU={};RegExp.prototype.hasOwnProperty("sticky");var AzY=function(I){I=String(I);for(var C=function(k,F,z){for(var c=Math.min(F.length-z,k.length),r=0;r<c;r++){var w=F[z+r];if(k[r]!==("A"<=w&&w<="Z"?w.toLowerCase():w))return!1}return!0},y=0;(y=I.indexOf("<",y))!=-1;){if(C("\x3c/script",I,y)||C("\x3c!--",I,y))return"zSoyz";
y+=1}return I};var SX={default:"__default"};var e1m=Object.prototype.hasOwnProperty;ujK.prototype=Object.create(null);var t3=wFs();var hf=null;var XF9=function(I){this.created=[];this.deleted=[];this.node=I};var $yY=typeof Node!=="undefined"&&Node.prototype.getRootNode||function(){for(var I=this,C=I;I;)C=I,I=I.parentNode;return C};var P$m=function(I,C){this._attrsArr=null;this.staticsApplied=!1;this.nameOrCtor=I;this.key=C;this.text=void 0};var v4=null,W4=null,Af=null,x4=null,NIW=[],Qez=DyX,mC=[],Zf=[],BYz=function(I){return R1s(function(C,y,k){Af=W4=C;W4=null;y(k);pFX(null);W4=Af;Af=Af.parentNode;return C},I)}(),ZvO=function(I){return R1s(function(C,y,k){var F={nextSibling:C};
W4=F;y(k);Af&&pFX(C.nextSibling);return F===W4?null:W4},I)}();var Uu=[],YLW=0;var H4=new ujK;var Q5=new ujK;var AzP=wFs(),KxI=AzP[SX.default],gVO=AzP.style,SLW=["focusin","focusout"];var LUH=function(){},FUW=function(){},VNs=function(){},pHH=function(){};var Jf=Symbol("Yb");var ZwI,mym=qLF;var kS=Symbol("Zb");var IiI={};var NT9=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(" ")),
Q0Y=new Set(["a","font","script","style","title"]);var w5={afterOpen:function(){},
onElementDeleted:function(){},
beforeVisit:function(){},
beforeRender:function(){},
afterRender:function(){},
didMount:function(){},
didPatch:function(){},
didUnmount:function(){},
didUpdate:function(){}};var nH=null,P5=function(I,C){LH.call(this,I);var y=this;this.functionComponent=C;this.hooks=[];this.hookCounter=0;this.disposeEffects=RF(function(k){y.effectContext=k;_.$4(function(){c3O(y,y.el)})},su.alwaysTrackContexts||!!tk)};
_.R(P5,LH);P5.prototype.render=function(I){var C=nH;nH=this;this.hookCounter=0;var y=yM(r5),k=Jk(this.effectContext);try{return x$s("render",this.componentName),this.functionComponent(I)}finally{q3s("render",this.componentName),Jk(k),yM(y),nH=C}};
_.H1.Object.defineProperties(P5.prototype,{componentName:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.functionComponent.debugName)!=null?I:this.functionComponent.name)!=null?C:"[component]"}}});var j0K=Symbol("mc"),noH=function(I,C,y){this.kind=I;this.props=C;this.children=y};
_.R(noH,zu);noH.prototype.render=function(){return wHm(this.kind,this.props,this.children)};
noH.prototype.getChildren=function(){return this.children};var XHF=[];ew9=function(I){throw Error("sb`"+I.debugName);};
(function(){var I=hf;hf=function(C){I==null||I(C);$Um(C)}})();var gVq=void 0,vVu={},Wxq=new WeakMap,RjI={getComponent:function(I){if(I.hasAttribute("ng-version"))return vVu;if(!I.__wizComponent)return null;I=I.__wizComponent;Wxq.set(I.propsAndState,I);return I.propsAndState},
getDirectiveMetadata:function(I){if(I===vVu)return{framework:"wiz",name:"<Root>",props:{}};I=Wxq.get(I);if(!I)throw Error("nc");return{framework:"wiz",name:I.name,props:Object.fromEntries(Object.keys(I.props).map(function(C){return[C,C]}))}},
"\u0275setProfiler":function(I){var C;(C=gVq)==null||C();gVq=gtW(function(){I(2)})},
isSignal:function(I){return typeof I==="function"&&I[zO]!==void 0}};var Ysm={nonNullableCondIsNull:function(){return Error("rc")}};_.P.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE!=null||(_.P.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE={});_.P.GOAT_INTERNALS_DO_NOT_USE_OR_ELSE.isGoatEnabled=function(){return!1};var goO=function(){this.map=new Map};
goO.prototype.push=function(I,C){var y=this.map;y.has(I)&&(this.multi||(this.multi=new Map),this.multi.set(C,y.get(I)));y.set(I,C)};
goO.prototype.pop=function(I){var C=this.map,y=C.get(I),k;y!==void 0&&((k=this.multi)==null?0:k.has(y))?(C.set(I,this.multi.get(y)),this.multi.delete(y)):C.delete(I);return y};var qsI={LOG_NULL_EL_REF_VALUE:function(){return Error("sc")},
OUT_OF_ORDER_HOOK_CALL:function(I){return Error("tc`"+I)},
PRIMITIVE_INVALID_HOOK_CALL:function(){return Error("uc")},
RETURNING_CLEANUP_FUNCTION_FROM_ONINIT:function(){return Error("vc")},
SIGNAL_INVALID_HOOK_CALL:function(){return Error("wc")},
USE_ELEMENT_UNEXPECTED_ELEMENT:function(I,C){return Error("xc`"+I+"`"+C)},
USE_ELEMENT_MULTIPLE_ASSIGNMENTS:function(I){return Error("yc`"+I)},
USE_ELEMENT_NOT_ASSIGNED:function(I){return Error("zc`"+String(I))}};ZwI=P29;var HiF=Symbol("Ac");zjt({beforeRender:function(I){var C=Jk(I.effectContext);try{var y;((y=I.__syncEffects)==null?0:y.length)&&J3X(I.__syncEffects)}finally{Jk(C)}},
didPatch:function(I){var C=Jk(I.effectContext);try{var y;((y=I.__syncEffects)==null?0:y.length)&&J3X(I.__syncEffects)}finally{Jk(C)}},
didUnmount:function(I){var C;((C=I.hooks)==null?0:C.length)&&I.hooks.forEach(tNW)}});var dyq,xyw,qLw;dyq=_.sF.window;_.SR=(dyq==null?void 0:(xyw=dyq.yt)==null?void 0:xyw.config_)||(dyq==null?void 0:(qLw=dyq.ytcfg)==null?void 0:qLw.data_)||{};_.U8("yt.config_",_.SR);var myb={},I7z=[];_.ph=function(I){var C=_.wa.apply(1,arguments);var y=Error.call(this,I);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.args=[].concat(_.Py(C));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(_.ph,Error);var FXz=function(I,C,y){this.actionName=I;this.optionalAction=C===void 0?!1:C;this.args=y===void 0?null:y;this.returnValue=[]};_.J=function(I){this.name=I};_.WH=new _.J("signalAction");var e0m=/^[\w.]*$/,k2F={q:!0,search_query:!0},ynH=String(ods);var tj;tj=Symbol("Bc");_.Jj=function(I){this.name=I};
_.Jj.prototype.toString=function(){return"InjectionToken("+this.name+")"};
var rnF=function(I){this.key=I},ndm=function(I){this.deferredKey=I},w1Y=function(){var I=this;
this.providers=new Map;this.JSC$8291_deferred=new Map;this.cachedValues=new Map;this.TEST_ONLY={getInjectionSnapshot:function(){return new Map(I.providers)}}};
w1Y.prototype.addProvider=function(I){this.providers.set(I.provide,I);var C=this.JSC$8291_deferred.get(I.provide);if(C)try{C.resolver(this.resolve(I.provide))}catch(y){C.rejector(y)}};
w1Y.prototype.resolve=function(I){return I instanceof ndm?Zw0(this,I):I instanceof rnF?BId(this,I.key,[],!0):BId(this,I,[])};
var Zw0=function(I,C){C=C.deferredKey;if(I.JSC$8291_deferred.has(C))return I.JSC$8291_deferred.get(C).promise;var y={};y.promise=new Promise(function(k,F){y.resolver=k;y.rejector=F});
I.JSC$8291_deferred.set(C,y);return y.promise},BId=function(I,C,y,k){k=k===void 0?!1:k;
if(y.indexOf(C)>-1)throw Error("Cc`"+C);if(I.cachedValues.has(C))return I.cachedValues.get(C);if(!I.providers.has(C)){if(k)return;throw Error("Dc`"+C);}k=I.providers.get(C);y.push(C);if(k.useValue!==void 0)var F=k.useValue;else if(k.useFactory)F=k[tj]?EV0(I,k[tj],y):[],F=k.useFactory.apply(k,_.Py(F));else if(k.useClass){F=k.useClass;var z=F[tj]?EV0(I,F[tj],y):[];F=new (Function.prototype.bind.apply(F,[null].concat(_.Py(z))))}else throw Error("Ec`"+C);y.pop();k.skipCache||I.cachedValues.set(C,F);return F},
EV0=function(I,C,y){return C?C.map(function(k){return k instanceof rnF?BId(I,k.key,y,!0):BId(I,k,y)}):[]};var i7m;var dT=new _.Jj("ENDPOINT_HANDLER_TOKEN");_.xo=new _.J("urlEndpoint");var h18=function(){this.data=[];this.cachedPackedInt52=-1};
h18.prototype.set=function(I,C){C=C===void 0?!0:C;0<=I&&I<52&&Number.isInteger(I)&&this.data[I]!==C&&(this.data[I]=C,this.cachedPackedInt52=-1)};
h18.prototype.get=function(I){return!!this.data[I]};
var Uy0=function(I){I.cachedPackedInt52===-1&&(I.cachedPackedInt52=I.data.reduce(function(C,y,k){return C+(y?Math.pow(2,k):0)},0));
return I.cachedPackedInt52};var Yom=function(I){var C=Hw0;I=I===void 0?_.d5("yt.ads.biscotti.lastId_")||"":I;var y=Object,k=y.assign,F={};F.dt=Jim;F.flash="0";a:{try{var z=C.JSC$8297_win_.top.location.href}catch(XO){z=2;break a}z=z?z===C.doc_.location.href?0:1:2}F=(F.frm=z,F);try{F.u_tz=-(new Date).getTimezoneOffset();var c=c===void 0?vf:c;try{var r=c.history.length}catch(XO){r=0}F.u_his=r;var w;F.u_h=(w=vf.screen)==null?void 0:w.height;var L;F.u_w=(L=vf.screen)==null?void 0:L.width;var D;F.u_ah=(D=vf.screen)==null?void 0:D.availHeight;
var p;F.u_aw=(p=vf.screen)==null?void 0:p.availWidth;var Q;F.u_cd=(Q=vf.screen)==null?void 0:Q.colorDepth}catch(XO){}r=C.JSC$8297_win_;try{var X=r.screenX;var b=r.screenY}catch(XO){}try{var S=r.outerWidth;var A=r.outerHeight}catch(XO){}try{var x=r.innerWidth;var B=r.innerHeight}catch(XO){}try{var t=r.screenLeft;var U=r.screenTop}catch(XO){}try{x=r.innerWidth,B=r.innerHeight}catch(XO){}try{var yW=r.screen.availWidth;var a=r.screen.availTop}catch(XO){}X=[t,U,X,b,yW,a,S,A,x,B];b=wyO(!1,C.JSC$8297_win_.top);
S={};var cs=cs===void 0?_.sF:cs;A=new h18;"SVGElement"in cs&&"createElementNS"in cs.document&&A.set(0);x=Cju();x["allow-top-navigation-by-user-activation"]&&A.set(1);x["allow-popups-to-escape-sandbox"]&&A.set(2);cs.crypto&&cs.crypto.subtle&&A.set(3);"TextDecoder"in cs&&"TextEncoder"in cs&&A.set(4);cs=Uy0(A);C=(S.bc=cs,S.bih=b.height,S.biw=b.width,S.brdim=X.join(),S.vis=aoI(C.doc_),S.wgl=!!vf.WebGLRenderingContext,S);y=k.call(y,F,C);y.ca_type="image";I&&(y.bid=I);return y},Hw0=new function(){var I=
window.document;
this.JSC$8297_win_=window;this.doc_=I};
_.U8("yt.ads_.signals_.getAdSignalsString",function(I){return FoK(Yom(I))});_.CF();navigator.userAgent.indexOf(" (CrKey ");var QRm="XMLHttpRequest"in _.sF?function(){return new XMLHttpRequest}:null;var tPe="client_dev_domain client_dev_expflag client_dev_regex_map client_dev_root_url client_rollout_override expflag forcedCapability jsfeat jsmode mods".split(" "),Jzw=[].concat(_.Py(tPe),["client_dev_set_cookie"]);var b7z={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"},jRs="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(_.Py(tPe)),dsW=!1,X1z=_.G2t,gd9=R0z;var zst=[{messageFn:function(I){return"Cannot read property '"+I.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(I){return"Cannot call '"+I.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(I){return I.key+" is not defined"},
patternsForType:{ReferenceError:[{regexp:/(.*) is not defined/,groups:["key"]},{regexp:/Can't find variable: (.*)/,groups:["key"]}]}}];var OwS={messageWeights:[],callbackWeights:[{callback:Z7I,weight:500}]};var avm=function(){this.callbackWeights=[];this.messageWeights=[]},MPw,uWH=function(){if(!MPw){var I=MPw=new avm;
I.messageWeights.length=0;I.callbackWeights.length=0;k3H(I,OwS)}return MPw},k3H=function(I,C){C.messageWeights&&I.messageWeights.push.apply(I.messageWeights,C.messageWeights);
C.callbackWeights&&I.callbackWeights.push.apply(I.callbackWeights,C.callbackWeights)};_.s0(_.rC,_.LL);_.rC.prototype.subscribe=function(I,C,y){var k=this.topics_[I];k||(k=this.topics_[I]=[]);var F=this.JSC$8321_key_;this.subscriptions_[F]=I;this.subscriptions_[F+1]=C;this.subscriptions_[F+2]=y;this.JSC$8321_key_=F+3;k.push(F);return F};
var Ii0=function(I){var C=rEY,y=!1,k=C.subscribe("handleError",function(F){y||(y=!0,this.unsubscribeByKey(k),I.apply(void 0,arguments))},C)};
_.rC.prototype.unsubscribe=function(I,C,y){if(I=this.topics_[I]){var k=this.subscriptions_;if(I=I.find(function(F){return k[F+1]==C&&k[F+2]==y}))return this.unsubscribeByKey(I)}return!1};
_.rC.prototype.unsubscribeByKey=function(I){var C=this.subscriptions_[I];if(C){var y=this.topics_[C];this.publishDepth_!=0?(this.pendingKeys_.push(I),this.subscriptions_[I+1]=function(){}):(y&&_.Hs(y,I),delete this.subscriptions_[I],delete this.subscriptions_[I+1],delete this.subscriptions_[I+2])}return!!C};
_.rC.prototype.publish=function(I,C){var y=this.topics_[I];if(y){var k=Array(arguments.length-1),F=arguments.length,z;for(z=1;z<F;z++)k[z-1]=arguments[z];if(this.async_)for(z=0;z<y.length;z++)F=y[z],C2Y(this.subscriptions_[F+1],this.subscriptions_[F+2],k);else{this.publishDepth_++;try{for(z=0,F=y.length;z<F&&!this.isDisposed();z++){var c=y[z];this.subscriptions_[c+1].apply(this.subscriptions_[c+2],k)}}finally{if(this.publishDepth_--,this.pendingKeys_.length>0&&this.publishDepth_==0)for(;y=this.pendingKeys_.pop();)this.unsubscribeByKey(y)}}return z!=
0}return!1};
var C2Y=function(I,C,y){_.pW(function(){I.apply(C,y)})};
_.rC.prototype.clear=function(I){if(I){var C=this.topics_[I];C&&(C.forEach(this.unsubscribeByKey,this),delete this.topics_[I])}else this.subscriptions_.length=0,this.topics_={}};
_.rC.prototype.getCount=function(I){if(I){var C=this.topics_[I];return C?C.length:0}I=0;for(C in this.topics_)I+=this.getCount(C);return I};
_.rC.prototype.disposeInternal=function(){_.rC.superClass_.disposeInternal.call(this);this.clear();this.pendingKeys_.length=0};var rEY=new _.rC;var sL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(sL,_.GR);sL.prototype.getColdHashData=function(){return _.b4(this,3)};
sL.prototype.getHotHashData=function(){return _.b4(this,5)};
sL.prototype.setHotHashData=function(I){return _.zT(this,5,I)};var o3I=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(o3I,_.GR);var fBI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(fBI,_.GR);_.u=fBI.prototype;_.u.getDeviceId=function(){return _.b4(this,6)};
_.u.getExperimentIds=function(I){var C=_.u7(this,9,_.DS,3,!0);Wm(C,I);return C[I]};
_.u.getPlayerType=function(){return _.YC(this,36)};
_.u.setHomeGroupInfo=function(I){return _.JT(this,81,I)};
_.u.clearLocationPlayabilityToken=function(){return _.Cw(this,89)};var wT=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(wT,_.GR);wT.prototype.setKey=function(I){return _.zT(this,1,I)};
wT.prototype.getValue=function(){return fF(this,2,Khz)};
var Khz=[2,3,4,5,6];var s0S=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(s0S,_.GR);s0S.prototype.setTrackingParams=function(I){return _.Cw(this,1,_.vm(I,!1))};var Sbt=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Sbt,_.GR);var FMF=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(FMF,_.GR);FMF.prototype.getExperimentIds=function(I){var C=_.u7(this,5,_.p8,3,!0);Wm(C,I);return C[I]};var Di=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Di,_.GR);Di.prototype.getToken=function(){return _.Te(this,2)};
Di.prototype.setToken=function(I){return _.zT(this,2,I)};var PH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(PH,_.GR);PH.prototype.setSafetyMode=function(I){return _.Ie(this,5,I)};var i2=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(i2,_.GR);i2.prototype.setClient=function(I){return _.JT(this,1,I)};var kgI={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 y7X;_.Kp=function(){var I=this;this.deferredInstallPrompt=void 0;this.appInstalledEventFired=!1;_.sF.addEventListener("beforeinstallprompt",function(C){C.preventDefault();I.deferredInstallPrompt=C});
_.sF.addEventListener("appinstalled",function(){I.appInstalledEventFired=!0},{once:!0})};
y7X=function(){if(!_.sF.matchMedia)return"WEB_DISPLAY_MODE_UNKNOWN";try{return _.sF.matchMedia("(display-mode: standalone)").matches?"WEB_DISPLAY_MODE_STANDALONE":_.sF.matchMedia("(display-mode: minimal-ui)").matches?"WEB_DISPLAY_MODE_MINIMAL_UI":_.sF.matchMedia("(display-mode: fullscreen)").matches?"WEB_DISPLAY_MODE_FULLSCREEN":_.sF.matchMedia("(display-mode: browser)").matches?"WEB_DISPLAY_MODE_BROWSER":"WEB_DISPLAY_MODE_UNKNOWN"}catch(I){return"WEB_DISPLAY_MODE_UNKNOWN"}};var T9F=function(){this.syncHeaders=!0},c7H=function(I){var C={},y=[];
"USER_SESSION_ID"in _.SR&&y.push({key:"u",value:_.Aq("USER_SESSION_ID")});if(y=fkF(y))C.Authorization=y,y=I=I==null?void 0:I.sessionIndex,y===void 0&&(y=Number(_.Aq("SESSION_INDEX",0)),y=isNaN(y)?0:y),_.V("voice_search_auth_header_removal")||(C["X-Goog-AuthUser"]=y.toString()),"INNERTUBE_HOST_OVERRIDE"in _.SR||(C["X-Origin"]=window.location.origin),I===void 0&&"DELEGATED_SESSION_ID"in _.SR&&(C["X-Goog-PageId"]=_.Aq("DELEGATED_SESSION_ID"));return C};var oo8={identityType:"UNAUTHENTICATED_IDENTITY_TYPE_UNKNOWN"};var OU=_.d5("ytglobal.prefsUserPrefsPrefs_")||{},y3S;_.U8("ytglobal.prefsUserPrefsPrefs_",OU);_.aN=function(){this.cookieName=_.Aq("ALT_PREF_COOKIE_NAME","PREF");this.cookieDomain=_.Aq("ALT_PREF_COOKIE_DOMAIN","youtube.com");var I=_.wC.get(this.cookieName,void 0);I&&this.parse(I)};
_.pA=function(){y3S||(y3S=new _.aN);return y3S};
_.aN.prototype.get=function(I,C){kBq(I);FUd(I);I=OU[I]!==void 0?OU[I].toString():null;return I!=null?I:C?C:""};
_.aN.prototype.set=function(I,C){kBq(I);FUd(I);if(C==null)throw Error("Hc");OU[I]=C.toString()};
_.aN.prototype.getFlag=function(I){return!!((u9e("f"+(Math.floor(I/31)+1))||0)&1<<I%31)};
_.Qw=function(I,C,y){I="f"+(Math.floor(C/31)+1);C=1<<C%31;var k=u9e(I)||0;k=y?k|C:k&~C;k===0?delete OU[I]:(y=k.toString(16),OU[I]=y.toString())};
_.aN.prototype.remove=function(I){kBq(I);FUd(I);delete OU[I]};
_.aN.prototype.save=function(){var I=!0;_.V("web_secure_pref_cookie_killswitch")&&(I=!1);_.nh(this.cookieName,this.dump(),63072E3,this.cookieDomain,I)};
_.aN.prototype.clear=function(){_.Le.clear(OU)};
_.aN.prototype.dump=function(){var I=[],C;for(C in OU)OU.hasOwnProperty(C)&&I.push(C+"="+encodeURIComponent(String(OU[C])));return I.join("&")};
var FUd=function(I){if(/^f([1-9][0-9]*)$/.test(I))throw Error("Ic`"+I);},kBq=function(I){if(!/^\w+$/.test(I))throw Error("Jc`"+I);
},u9e=function(I){I=OU[I]!==void 0?OU[I].toString():null;
return I!=null&&/^[A-Fa-f0-9]+$/.test(I)?parseInt(I,16):null};
_.aN.prototype.parse=function(I){I=decodeURIComponent(I).split("&");for(var C=0;C<I.length;C++){var y=I[C].split("="),k=y[0];(y=y[1])&&(OU[k]=y.toString())}};var a79={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"},uem={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},zQY={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},ICO={"slow-2g":"EFFECTIVE_CONNECTION_TYPE_SLOW_2G","2g":"EFFECTIVE_CONNECTION_TYPE_2G","3g":"EFFECTIVE_CONNECTION_TYPE_3G","4g":"EFFECTIVE_CONNECTION_TYPE_4G"};var H9;_.Mi=function(){this.cancelDebouncedJobMap=new WeakMap;this.cancelThrottledJobMap=new WeakMap};
_.NU=function(I,C,y){return I.addJob(C,0,y)};
_.Mi.prototype.addLowPriorityJob=function(I,C){return this.addJob(I,1,C)};
_.LM=function(I,C,y){return I.addJob(C,2,y)};
_.jj=function(I,C,y){return I.addJob(C,3,y)};
_.tE=function(I,C,y){return I.addJob(C,4,y)};
H9=function(I){var C=_.d5("yt.scheduler.instance.addImmediateJob");C?C(I):I()};
_.Mi.prototype.debounce=function(I,C,y){var k=this,F=0,z=function(){F&&k.cancelJob(F);F=k.addJob(I,C,y);k.cancelDebouncedJobMap.set(z,F)};
return z};
_.Mi.prototype.cancelThrottle=function(I){(I=this.cancelThrottledJobMap.get(I))&&I()};var Ir=function(){_.Mi.apply(this,arguments)};
_.R(Ir,_.Mi);_.R7=function(){Ir.instance||(Ir.instance=new Ir);return Ir.instance};
Ir.prototype.addJob=function(I,C,y){y!==void 0&&Number.isNaN(Number(y))&&(y=void 0);var k=_.d5("yt.scheduler.instance.addJob");return k?k(I,C,y):y===void 0?(I(),NaN):_.FT(I,y||0)};
Ir.prototype.cancelJob=function(I){if(I===void 0||!Number.isNaN(Number(I))){var C=_.d5("yt.scheduler.instance.cancelJob");C?C(I):_.zl(I)}};
Ir.prototype.start=function(){var I=_.d5("yt.scheduler.instance.start");I&&I()};
Ir.prototype.pause=function(){var I=_.d5("yt.scheduler.instance.pause");I&&I()};
_.b$=_.R7();_.QS.prototype.set=function(I,C){C===void 0?this.mechanism.remove(I):this.mechanism.set(I,(0,_.lR)(C))};
_.QS.prototype.get=function(I){try{var C=this.mechanism.get(I)}catch(y){return}if(C!==null)try{return JSON.parse(C)}catch(y){throw"Storage: Invalid value was encountered";}};
_.QS.prototype.remove=function(I){this.mechanism.remove(I)};var Cy=function(I){this.mechanism=I};
_.s0(Cy,_.QS);var zjY=function(I){this.data=I},TTS=function(I){return I===void 0||I instanceof zjY?I:new zjY(I)};
Cy.prototype.set=function(I,C){Cy.superClass_.set.call(this,I,TTS(C))};
Cy.prototype.getWrapper=function(I){I=Cy.superClass_.get.call(this,I);if(I===void 0||I instanceof Object)return I;throw"Storage: Invalid value was encountered";};
Cy.prototype.get=function(I){if(I=this.getWrapper(I)){if(I=I.data,I===void 0)throw"Storage: Invalid value was encountered";}else I=void 0;return I};_.s0(NS,Cy);_.c3q=function(I){var C=I.creation;I=I.expiration;return!!I&&I<_.CF()||!!C&&C>_.CF()};
NS.prototype.set=function(I,C,y){if(C=TTS(C)){if(y){if(y<_.CF()){NS.prototype.remove.call(this,I);return}C.expiration=y}C.creation=_.CF()}NS.superClass_.set.call(this,I,C)};
NS.prototype.getWrapper=function(I,C){var y=NS.superClass_.getWrapper.call(this,I);if(y)if(!C&&_.c3q(y))NS.prototype.remove.call(this,I);else return y};var sI=function(){};
sI.prototype.next=function(){return or};
var or={done:!0,value:void 0},ye=function(I){return{value:I,done:!1}};
sI.prototype.__iterator__=function(){return this};
_.ejw=function(I){if(I instanceof sI)return I;if(typeof I.__iterator__=="function")return I.__iterator__(!1);if(_.Mz(I)){var C=0,y=new sI;y.next=function(){for(;;){if(C>=I.length)return or;if(C in I)return ye(I[C++]);C++}};
return y}throw Error("Kc");};var r3m=function(I){if(I instanceof kY||I instanceof FZ||I instanceof up)return I;if(typeof I.next=="function")return new kY(function(){return I});
if(typeof I[Symbol.iterator]=="function")return new kY(function(){return I[Symbol.iterator]()});
if(typeof I.__iterator__=="function")return new kY(function(){return I.__iterator__()});
throw Error("Lc");},kY=function(I){this.func_=I};
kY.prototype.__iterator__=function(){return new FZ(this.func_())};
kY.prototype[Symbol.iterator]=function(){return new up(this.func_())};
kY.prototype.toEs6=function(){return new up(this.func_())};
var FZ=function(I){this.JSC$8405_iter_=I};
_.R(FZ,sI);FZ.prototype.next=function(){return this.JSC$8405_iter_.next()};
FZ.prototype[Symbol.iterator]=function(){return new up(this.JSC$8405_iter_)};
FZ.prototype.toEs6=function(){return new up(this.JSC$8405_iter_)};
var up=function(I){kY.call(this,function(){return I});
this.JSC$8408_iter_=I};
_.R(up,kY);up.prototype.next=function(){return this.JSC$8408_iter_.next()};var ii8=function(){};var zv=function(){};
_.s0(zv,ii8);zv.prototype.getCount=function(){for(var I=0,C=_.T(this),y=C.next();!y.done;y=C.next())I++;return I};
zv.prototype[Symbol.iterator]=function(){return r3m(this.__iterator__(!0)).toEs6()};
zv.prototype.clear=function(){var I=Array.from(this);I=_.T(I);for(var C=I.next();!C.done;C=I.next())this.remove(C.value)};_.s0(VS,zv);_.u=VS.prototype;_.u.isAvailable=function(){if(this.cachedIsStorageAvailable_===null){var I=this.storage_;if(I)try{I.setItem("__sak","1");I.removeItem("__sak");var C=!0}catch(y){C=y instanceof DOMException&&(y.name==="QuotaExceededError"||y.code===22||y.code===1014||y.name==="NS_ERROR_DOM_QUOTA_REACHED")&&I&&I.length!==0}else C=!1;this.cachedIsStorageAvailable_=C}return this.cachedIsStorageAvailable_};
_.u.set=function(I,C){Tv(this);try{this.storage_.setItem(I,C)}catch(y){if(this.storage_.length==0)throw"Storage mechanism: Storage disabled";throw"Storage mechanism: Quota exceeded";}};
_.u.get=function(I){Tv(this);I=this.storage_.getItem(I);if(typeof I!=="string"&&I!==null)throw"Storage mechanism: Invalid value was encountered";return I};
_.u.remove=function(I){Tv(this);this.storage_.removeItem(I)};
_.u.getCount=function(){Tv(this);return this.storage_.length};
_.u.__iterator__=function(I){Tv(this);var C=0,y=this.storage_,k=new sI;k.next=function(){if(C>=y.length)return or;var F=y.key(C++);if(I)return ye(F);F=y.getItem(F);if(typeof F!=="string")throw"Storage mechanism: Invalid value was encountered";return ye(F)};
return k};
_.u.clear=function(){Tv(this);this.storage_.clear()};
_.u.key=function(I){Tv(this);return this.storage_.key(I)};
var Tv=function(I){if(I.storage_==null)throw Error("Mc");I.isAvailable()||om(Error("Mc"))};_.s0(sCO,VS);_.s0(oBH,VS);_.s0(j7,zv);j7.prototype.set=function(I,C){this.mechanism_.set(this.JSC$8423_prefix_+I,C)};
j7.prototype.get=function(I){return this.mechanism_.get(this.JSC$8423_prefix_+I)};
j7.prototype.remove=function(I){this.mechanism_.remove(this.JSC$8423_prefix_+I)};
j7.prototype.__iterator__=function(I){var C=this.mechanism_[Symbol.iterator](),y=this,k=new sI;k.next=function(){var F=C.next();if(F.done)return F;for(F=F.value;F.slice(0,y.JSC$8423_prefix_.length)!=y.JSC$8423_prefix_;){F=C.next();if(F.done)return F;F=F.value}return ye(I?F.slice(y.JSC$8423_prefix_.length):y.mechanism_.get(F))};
return k};_.Kw=function(I){this.expiringStorage_=(I=_.y$W(I))?new NS(I):null;this.JSC$8427_domain_=document.domain||window.location.hostname};
_.Kw.prototype.set=function(I,C,y,k){y=y||31104E3;this.remove(I);if(this.expiringStorage_)try{this.expiringStorage_.set(I,C,Date.now()+y*1E3);return}catch(z){}var F="";if(k)try{F=escape((0,_.lR)(C))}catch(z){return}else F=escape(C);_.nh(I,F,y,this.JSC$8427_domain_)};
_.Kw.prototype.get=function(I,C){var y=void 0,k=!this.expiringStorage_;if(!k)try{y=this.expiringStorage_.get(I)}catch(F){k=!0}if(k&&(y=_.wC.get(I,void 0))&&(y=unescape(y),C))try{y=JSON.parse(y)}catch(F){this.remove(I),y=void 0}return y};
_.Kw.prototype.remove=function(I){this.expiringStorage_&&this.expiringStorage_.remove(I);_.tsm(I,"/",this.JSC$8427_domain_)};
_.Kw.prototype.getCreationTime=function(I){return this.expiringStorage_&&(I=(this.expiringStorage_.getWrapper(I)||{}).creation,typeof I==="number")?I:null};var Frm=function(){var I;return function(){I||(I=new _.Kw("ytidb"));return I}}();var zyt;_.XT=[];zyt=!1;var RyX=T8O||c$9;var cK={},wHw=(cK.AUTH_INVALID="No user identifier specified.",cK.EXPLICIT_ABORT="Transaction was explicitly aborted.",cK.IDB_NOT_SUPPORTED="IndexedDB is not supported.",cK.MISSING_INDEX="Index not created.",cK.MISSING_OBJECT_STORES="Object stores not created.",cK.DB_DELETED_BY_MISSING_OBJECT_STORES="Database is deleted because expected object stores were not created.",cK.DB_REOPENED_BY_MISSING_OBJECT_STORES="Database is reopened because expected object stores were not created.",cK.UNKNOWN_ABORT=
"Transaction was aborted for unknown reasons.",cK.QUOTA_EXCEEDED="The current transaction exceeded its quota limitations.",cK.QUOTA_MAYBE_EXCEEDED="The current transaction may have failed because of exceeding quota limitations.",cK.EXECUTE_TRANSACTION_ON_CLOSED_DB="Can't start a transaction on a closed database",cK.INCOMPATIBLE_DB_VERSION="The binary is incompatible with the database version",cK),eE={},noS=(eE.AUTH_INVALID="ERROR",eE.EXECUTE_TRANSACTION_ON_CLOSED_DB="WARNING",eE.EXPLICIT_ABORT="IGNORED",
eE.IDB_NOT_SUPPORTED="ERROR",eE.MISSING_INDEX="WARNING",eE.MISSING_OBJECT_STORES="ERROR",eE.DB_DELETED_BY_MISSING_OBJECT_STORES="WARNING",eE.DB_REOPENED_BY_MISSING_OBJECT_STORES="WARNING",eE.QUOTA_EXCEEDED="WARNING",eE.QUOTA_MAYBE_EXCEEDED="WARNING",eE.UNKNOWN_ABORT="WARNING",eE.INCOMPATIBLE_DB_VERSION="WARNING",eE),rr={},P25=(rr.AUTH_INVALID=!1,rr.EXECUTE_TRANSACTION_ON_CLOSED_DB=!1,rr.EXPLICIT_ABORT=!1,rr.IDB_NOT_SUPPORTED=!1,rr.MISSING_INDEX=!1,rr.MISSING_OBJECT_STORES=!1,rr.DB_DELETED_BY_MISSING_OBJECT_STORES=
!1,rr.DB_REOPENED_BY_MISSING_OBJECT_STORES=!1,rr.QUOTA_EXCEEDED=!1,rr.QUOTA_MAYBE_EXCEEDED=!0,rr.UNKNOWN_ABORT=!0,rr.INCOMPATIBLE_DB_VERSION=!1,rr),fh=function(I,C,y,k,F){C=C===void 0?{}:C;y=y===void 0?wHw[I]:y;k=k===void 0?noS[I]:k;F=F===void 0?P25[I]:F;_.ph.call(this,y,Object.assign({},{name:"YtIdbKnownError",isSw:self.document===void 0,isIframe:self!==self.top,type:I},C));this.type=I;this.message=y;this.level=k;this.retryable=F;Object.setPrototypeOf(this,fh.prototype)};
_.R(fh,_.ph);var LUS=function(I,C){fh.call(this,"MISSING_OBJECT_STORES",{expectedObjectStores:C,foundObjectStores:I},wHw.MISSING_OBJECT_STORES);Object.setPrototypeOf(this,LUS.prototype)};
_.R(LUS,fh);var r$K=function(I,C){var y=Error.call(this);this.message=y.message;"stack"in y&&(this.stack=y.stack);this.index=I;this.objectStore=C;Object.setPrototypeOf(this,r$K.prototype)};
_.R(r$K,Error);var iq9=["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 gC=function(I){this.executor=I},AY=function(I){var C=this;
this.state={status:"PENDING"};this.JSC$8455_onFulfilled=[];this.JSC$8455_onRejected=[];I=I.executor;var y=function(F){if(C.state.status==="PENDING"){C.state={status:"FULFILLED",value:F};F=_.T(C.JSC$8455_onFulfilled);for(var z=F.next();!z.done;z=F.next())z=z.value,z()}},k=function(F){if(C.state.status==="PENDING"){C.state={status:"REJECTED",
reason:F};F=_.T(C.JSC$8455_onRejected);for(var z=F.next();!z.done;z=F.next())z=z.value,z()}};
try{I(y,k)}catch(F){k(F)}};
AY.all=function(I){return new AY(new gC(function(C,y){var k=[],F=I.length;F===0&&C(k);for(var z={i$jscomp$504:0};z.i$jscomp$504<I.length;z={i$jscomp$504:z.i$jscomp$504},++z.i$jscomp$504)AY.resolve(I[z.i$jscomp$504]).then(function(c){return function(r){k[c.i$jscomp$504]=r;F--;F===0&&C(k)}}(z)).catch(function(c){y(c)})}))};
AY.resolve=function(I){return new AY(new gC(function(C,y){I instanceof AY?I.then(C,y):C(I)}))};
AY.reject=function(I){return new AY(new gC(function(C,y){y(I)}))};
AY.prototype.then=function(I,C){var y=this,k=I!=null?I:PGK,F=C!=null?C:nBm;return new AY(new gC(function(z,c){y.state.status==="PENDING"?(y.JSC$8455_onFulfilled.push(function(){DUc(y,y,k,z,c)}),y.JSC$8455_onRejected.push(function(){pHS(y,y,F,z,c)})):y.state.status==="FULFILLED"?DUc(y,y,k,z,c):y.state.status==="REJECTED"&&pHS(y,y,F,z,c)}))};
AY.prototype.catch=function(I){return this.then(void 0,I)};
var DUc=function(I,C,y,k,F){try{if(I.state.status!=="FULFILLED")throw Error("Pc");var z=y(I.state.value);z instanceof AY?Q0P(I,C,z,k,F):k(z)}catch(c){F(c)}},pHS=function(I,C,y,k,F){try{if(I.state.status!=="REJECTED")throw Error("Qc");
var z=y(I.state.reason);z instanceof AY?Q0P(I,C,z,k,F):k(z)}catch(c){F(c)}},Q0P=function(I,C,y,k,F){C===y?F(new TypeError("Rc")):y.then(function(z){z instanceof AY?Q0P(I,C,z,k,F):k(z)},function(z){F(z)})};var ip;ip=window;_.JY=ip.ytcsi&&ip.ytcsi.now?ip.ytcsi.now:ip.performance&&ip.performance.timing&&ip.performance.now&&ip.performance.timing.navigationStart?function(){return ip.performance.timing.navigationStart+ip.performance.now()}:function(){return(new Date).getTime()};var WN=function(I,C){this.JSC$8467_wrapped=I;this.options=C;this.transactionCount=0;this.startedMs=Math.round((0,_.JY)());this.hasUnknownAbortedTransaction=!1},j08,lim,PK,Rje;
WN.prototype.add=function(I,C,y){return _.mZ(this,[I],{mode:"readwrite",enableRetries:!0},function(k){return k.objectStore(I).add(C,y)})};
WN.prototype.clear=function(I){return _.mZ(this,[I],{mode:"readwrite",enableRetries:!0},function(C){return C.objectStore(I).clear()})};
WN.prototype.close=function(){this.JSC$8467_wrapped.close();var I;((I=this.options)==null?0:I.closed)&&this.options.closed()};
WN.prototype.count=function(I,C){return _.mZ(this,[I],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(I).count(C)})};
var gI=function(I,C,y){I=I.JSC$8467_wrapped.createObjectStore(C,y);return new wr(I)};
WN.prototype.delete=function(I,C){return _.mZ(this,[I],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore(I).delete(C)})};
var NT5=function(I,C){return _.mZ(I,["ResponseStore"],{mode:"readwrite",enableRetries:!0},function(y){return y.objectStore("ResponseStore").index("byInterface").delete(C)})};
WN.prototype.get=function(I,C){return _.mZ(this,[I],{mode:"readonly",enableRetries:!0},function(y){return y.objectStore(I).get(C)})};
WN.prototype.getAll=function(I,C,y){return _.mZ(this,[I],{mode:"readonly",enableRetries:!0},function(k){return k.objectStore(I).getAll(C,y)})};
WN.prototype.put=function(I,C,y){return _.mZ(this,[I],{mode:"readwrite",enableRetries:!0},function(k){return k.objectStore(I).put(C,y)})};
WN.prototype.objectStoreNames=function(){return Array.from(this.JSC$8467_wrapped.objectStoreNames)};
_.mZ=function(I,C,y,k){var F,z,c,r,w,L,D,p,Q,X,b,S;return _.e(function(A){switch(A.nextAddress){case 1:var x={mode:"readonly",enableRetries:!1,tag:"IDB_TRANSACTION_TAG_UNKNOWN"};typeof y==="string"?x.mode=y:Object.assign(x,y);F=x;I.transactionCount++;z=F.enableRetries?3:1;c=0;case 2:if(r){A.jumpTo(4);break}c++;w=Math.round((0,_.JY)());_.aM(A,5);L=I.JSC$8467_wrapped.transaction(C,F.mode);x=new QCz(L);x=VNm(x,k);return _.n(A,x,7);case 7:return D=A.yieldResult,p=Math.round((0,_.JY)()),j08(I,w,p,c,void 0,
C.join(),F),A.return(D);case 5:Q=_.sj(A);X=Math.round((0,_.JY)());b=w$I(Q,I.JSC$8467_wrapped.name,C.join(),I.JSC$8467_wrapped.version);if((S=b instanceof fh&&!b.retryable)||c>=z)j08(I,w,X,c,b,C.join(),F),r=b;A.jumpTo(2);break;case 4:return A.return(Promise.reject(r))}})};
j08=function(I,C,y,k,F,z,c){C=y-C;F?(F instanceof fh&&(F.type==="QUOTA_EXCEEDED"||F.type==="QUOTA_MAYBE_EXCEEDED")&&RD("QUOTA_EXCEEDED",{dbName:Yt(I.JSC$8467_wrapped.name),objectStoreNames:z,transactionCount:I.transactionCount,transactionMode:c.mode}),F instanceof fh&&F.type==="UNKNOWN_ABORT"&&(y-=I.startedMs,y<0&&y>=2147483648&&(y=0),RD("TRANSACTION_UNEXPECTEDLY_ABORTED",{objectStoreNames:z,transactionDuration:C,transactionCount:I.transactionCount,dbDuration:y}),I.hasUnknownAbortedTransaction=!0),
lim(I,!1,k,z,C,c.tag),_.$t(F)):lim(I,!0,k,z,C,c.tag)};
lim=function(I,C,y,k,F,z){RD("TRANSACTION_ENDED",{objectStoreNames:k,connectionHasUnknownAbortedTransaction:I.hasUnknownAbortedTransaction,duration:F,isSuccessful:C,tryCount:y,tag:z===void 0?"IDB_TRANSACTION_TAG_UNKNOWN":z})};
WN.prototype.getVersion=function(){return this.JSC$8467_wrapped.version};
WN.prototype.getName=function(){return this.JSC$8467_wrapped.name};
var wr=function(I){this.JSC$8482_wrapped=I};
wr.prototype.add=function(I,C){return vN(this.JSC$8482_wrapped.add(I,C))};
wr.prototype.autoIncrement=function(){return this.JSC$8482_wrapped.autoIncrement};
wr.prototype.clear=function(){return vN(this.JSC$8482_wrapped.clear()).then(function(){})};
var vF=function(I,C,y){I.JSC$8482_wrapped.createIndex(C,y,{unique:!1})};
wr.prototype.count=function(I){return vN(this.JSC$8482_wrapped.count(I))};
var XHw=function(I,C){return BN(I,{query:C},function(y){return y.delete().then(function(){return y.continue()})}).then(function(){})};
wr.prototype.delete=function(I){return I instanceof IDBKeyRange?XHw(this,I):vN(this.JSC$8482_wrapped.delete(I))};
wr.prototype.get=function(I){return vN(this.JSC$8482_wrapped.get(I))};
wr.prototype.getAll=function(I,C){return"getAll"in IDBObjectStore.prototype?vN(this.JSC$8482_wrapped.getAll(I,C)):$Ub(this,I,C)};
var $Ub=function(I,C,y){var k=[];return BN(I,{query:C},function(F){if(!(y!==void 0&&k.length>=y))return k.push(F.getValue()),F.continue()}).then(function(){return k})};
wr.prototype.index=function(I){try{return new ny(this.JSC$8482_wrapped.index(I))}catch(C){if(C instanceof Error&&C.name==="NotFoundError")throw new r$K(I,this.JSC$8482_wrapped.name);throw C;}};
wr.prototype.getName=function(){return this.JSC$8482_wrapped.name};
wr.prototype.keyPath=function(){return this.JSC$8482_wrapped.keyPath};
wr.prototype.put=function(I,C){return vN(this.JSC$8482_wrapped.put(I,C))};
var BN=function(I,C,y){I=I.JSC$8482_wrapped.openCursor(C.query,C.direction);return Rje(I).then(function(k){return p$I(k,y)})},QCz=function(I){var C=this;
this.JSC$8490_wrapped=I;this.objectStoreCache=new Map;this.JSC$8490_aborted=!1;this.done=new Promise(function(y,k){C.JSC$8490_wrapped.addEventListener("complete",function(){y()});
C.JSC$8490_wrapped.addEventListener("error",function(F){F.currentTarget===F.target&&k(C.JSC$8490_wrapped.error)});
C.JSC$8490_wrapped.addEventListener("abort",function(){var F=C.JSC$8490_wrapped.error;if(F)k(F);else if(!C.JSC$8490_aborted){F=fh;for(var z=C.JSC$8490_wrapped.objectStoreNames,c=[],r=0;r<z.length;r++){var w=z.item(r);if(w===null)throw Error("Sc");c.push(w)}F=new F("UNKNOWN_ABORT",{objectStoreNames:c.join(),dbName:C.JSC$8490_wrapped.db.name,mode:C.JSC$8490_wrapped.mode});k(F)}})})},VNm=function(I,C){var y=new Promise(function(k,F){try{C(I).then(function(z){k(z)}).catch(F)}catch(z){F(z),I.abort()}});
return Promise.all([y,I.done]).then(function(k){return _.T(k).next().value})};
QCz.prototype.abort=function(){this.JSC$8490_wrapped.abort();this.JSC$8490_aborted=!0;throw new fh("EXPLICIT_ABORT");};
QCz.prototype.objectStore=function(I){I=this.JSC$8490_wrapped.objectStore(I);var C=this.objectStoreCache.get(I);C||(C=new wr(I),this.objectStoreCache.set(I,C));return C};
var ny=function(I){this.JSC$8492_wrapped=I};
ny.prototype.count=function(I){return vN(this.JSC$8492_wrapped.count(I))};
ny.prototype.delete=function(I){return _.O8(this,{query:I},function(C){return C.delete().then(function(){return C.continue()})})};
ny.prototype.get=function(I){return vN(this.JSC$8492_wrapped.get(I))};
ny.prototype.getAll=function(I,C){return"getAll"in IDBIndex.prototype?vN(this.JSC$8492_wrapped.getAll(I,C)):bie(this,I,C)};
var bie=function(I,C,y){var k=[];return _.O8(I,{query:C},function(F){if(!(y!==void 0&&k.length>=y))return k.push(F.getValue()),F.continue()}).then(function(){return k})};
ny.prototype.keyPath=function(){return this.JSC$8492_wrapped.keyPath};
ny.prototype.unique=function(){return this.JSC$8492_wrapped.unique};
_.O8=function(I,C,y){I=I.JSC$8492_wrapped.openCursor(C.query===void 0?null:C.query,C.direction===void 0?"next":C.direction);return Rje(I).then(function(k){return p$I(k,y)})};
PK=function(I,C){this.request=I;this.cursor=C};
Rje=function(I){return vN(I).then(function(C){return C?new PK(I,C):null})};
PK.prototype.continue=function(I){this.cursor.continue(I);return Rje(this.request)};
PK.prototype.delete=function(){return vN(this.cursor.delete()).then(function(){})};
PK.prototype.getValue=function(){return this.cursor.value};
PK.prototype.update=function(I){return vN(this.cursor.update(I))};var Ly=function(I,C){this.name=I;this.options=C;this.isCompatible=!0;this.timesReopenedToFixMissingObjectStore=this.timesDeletedToFixMissingObjectStore=0},Ysb;
Ly.prototype.openDb=function(I,C,y){y=y===void 0?{}:y;return ViI(I,C,y)};
Ly.prototype.delete=function(I){I=I===void 0?{}:I;return _.xt(this.name,I)};
Ysb=function(I,C){return new fh("INCOMPATIBLE_DB_VERSION",{dbName:I.name,oldVersion:I.options.version,newVersion:C})};
_.qS=function(I,C){if(!C)throw Kh("openWithToken",Yt(I.name));return I.open()};
Ly.prototype.open=function(){var I=this;if(!this.isCompatible)throw Ysb(this);if(this.connectionPromise)return this.connectionPromise;var C,y=function(){I.connectionPromise===C&&(I.connectionPromise=void 0)},k={blocking:function(z){z.close()},
closed:y,terminated:y,upgrade:this.options.upgrade},F=function(){var z,c,r,w,L,D,p,Q,X,b;return _.e(function(S){switch(S.nextAddress){case 1:return c=(z=Error().stack)!=null?z:"",_.aM(S,2),_.n(S,I.openDb(I.name,I.options.version,k),4);case 4:for(var A=r=S.yieldResult,x=I.options,B=[],t=_.T(Object.keys(x.objectStores)),U=t.next();!U.done;U=t.next()){U=U.value;var yW=x.objectStores[U],a=yW.removedAtVersion===void 0?Number.MAX_VALUE:yW.removedAtVersion;!(A.JSC$8467_wrapped.version>=yW.addedAtVersion)||
A.JSC$8467_wrapped.version>=a||A.JSC$8467_wrapped.objectStoreNames.contains(U)||B.push(U)}w=B;if(w.length===0){S.jumpTo(5);break}L=Object.keys(I.options.objectStores);D=r.objectStoreNames();if(I.timesReopenedToFixMissingObjectStore<_.s8("ytidb_reopen_db_retries",0))return I.timesReopenedToFixMissingObjectStore++,r.close(),_.$t(new fh("DB_REOPENED_BY_MISSING_OBJECT_STORES",{dbName:I.name,expectedObjectStores:L,foundObjectStores:D})),S.return(F());if(!(I.timesDeletedToFixMissingObjectStore<_.s8("ytidb_remake_db_retries",
1))){S.jumpTo(6);break}I.timesDeletedToFixMissingObjectStore++;return _.n(S,I.delete(),7);case 7:return _.$t(new fh("DB_DELETED_BY_MISSING_OBJECT_STORES",{dbName:I.name,expectedObjectStores:L,foundObjectStores:D})),S.return(F());case 6:throw new LUS(D,L);case 5:return S.return(r);case 2:p=_.sj(S);if(p instanceof DOMException?p.name!=="VersionError":"DOMError"in self&&p instanceof DOMError?p.name!=="VersionError":!(p instanceof Object&&"message"in p)||p.message!=="An attempt was made to open a database using a lower version than the existing version."){S.jumpTo(8);
break}return _.n(S,I.openDb(I.name,void 0,Object.assign({},k,{upgrade:void 0})),9);case 9:Q=S.yieldResult;X=Q.getVersion();if(I.options.version!==void 0&&X>I.options.version+1)throw Q.close(),I.isCompatible=!1,Ysb(I,X);return S.return(Q);case 8:throw y(),p instanceof Error&&!_.V("ytidb_async_stack_killswitch")&&(p.stack=p.stack+"\n"+c.substring(c.indexOf("\n")+1)),w$I(p,I.name,"",(b=I.options.version)!=null?b:-1);}})};
return this.connectionPromise=C=F()};var jCO=new Ly("YtIdbMeta",{objectStores:{databases:{addedAtVersion:1}},upgrade:function(I,C){C(1)&&gI(I,"databases",{keyPath:"actualName"})}});var G5O,bqI=new function(){}(new function(){});new _.ug;var GB0=function(I,C){Ly.call(this,I,C);this.options=C;bX(I)};
_.R(GB0,Ly);var qhY=function(I,C){var y;return function(){y||(y=new GB0(I,C));return y}};
GB0.prototype.openDb=function(I,C,y){y=y===void 0?{}:y;return(this.options.shared?gBH:A$z)(I,C,Object.assign({},y))};
GB0.prototype.delete=function(I){I=I===void 0?{}:I;return(this.options.shared?xJI:vBz)(this.name,I)};var fi8={},mJI=tY("ytGcfConfig",{objectStores:(fi8.coldConfigStore={addedAtVersion:1},fi8.hotConfigStore={addedAtVersion:1},fi8),shared:!1,upgrade:function(I,C){C(1)&&(vF(gI(I,"hotConfigStore",{keyPath:"key",autoIncrement:!0}),"hotTimestampIndex","timestamp"),vF(gI(I,"coldConfigStore",{keyPath:"key",autoIncrement:!0}),"coldTimestampIndex","timestamp"))},
version:1});var Ssm=function(){_.LL.call(this);this.localHotConfigJobQueue=[];this.sharedHotConfigJobQueue=[];var I=_.d5("yt.gcf.config.hotUpdateCallbacks");I?(this.localHotConfigJobQueue=[].concat(_.Py(I)),this.sharedHotConfigJobQueue=I):(this.sharedHotConfigJobQueue=[],_.U8("yt.gcf.config.hotUpdateCallbacks",this.sharedHotConfigJobQueue))};
_.R(Ssm,_.LL);Ssm.prototype.disposeInternal=function(){for(var I=_.T(this.localHotConfigJobQueue),C=I.next();!C.done;C=I.next()){var y=this.sharedHotConfigJobQueue;C=y.indexOf(C.value);C>=0&&y.splice(C,1)}this.localHotConfigJobQueue.length=0;_.LL.prototype.disposeInternal.call(this)};var VB=function(){var I=this;this.isConfigDbInitialized=!1;this.debounceTimer=this.initJob=0;this.configUpdateService=new Ssm;this.TEST_ONLY={initializeConfigDb:function(){I.isConfigDbInitialized=!0},
getColdConfigGroup:function(){return I.coldGlobalConfigGroup},
setHotConfigGroup:function(C){KUw(I,C)},
setHotHashData:function(C){I.setHotHashData(C)},
setColdConfigGroup:function(C){A3d(I,C)},
getColdHashData:function(){return I.coldHashData},
getHotHashData:function(){return I.hotHashData},
getHotConfigGroup:function(){return I.hotGlobalConfigGroup},
getExportedColdConfigGroup:function(){return goq()},
getExportedHotConfigGroup:function(){return D9()},
getExportedColdHashData:function(){return _.d5("yt.gcf.config.coldHashData")},
getExportedHotHashData:function(){return _.d5("yt.gcf.config.hotHashData")},
triggerScheduleConfigs:function(){vod(I)},
resetInstance:function(){I.setHotHashData(void 0);WUm(I);delete VB.instance},
setDebounceTimer:function(C){I.debounceTimer=C},
getDebounceTimer:function(){return I.debounceTimer}}},dUS=function(){if(!VB.instance){var I=new VB;
VB.instance=I}return VB.instance},mUw=function(I){var C;
_.e(function(y){if(y.nextAddress==1)return _.V("start_client_gcf")||_.V("delete_gcf_config_db")?_.V("start_client_gcf")?_.n(y,_.HN(),3):y.jumpTo(2):y.return();y.nextAddress!=2&&((C=y.yieldResult)&&_.DJ()&&!_.V("delete_gcf_config_db")?(I.isConfigDbInitialized=!0,vod(I)):(xUd(I),qse(I)));return _.V("delete_gcf_config_db")?_.n(y,HqO(),0):y.jumpTo(0)})},JLF=function(){var I;
return(I=D9())!=null?I:_.Aq("RAW_HOT_CONFIG_GROUP")},Zi8=function(I){var C,y,k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:if(I.hotGlobalConfigGroup)return r.return(D9());if(!I.isConfigDbInitialized)return C=Kh("getHotConfig IDB not initialized"),_.xS(C),r.return(Promise.reject(C));y=hY();k=_.Aq("TIME_CREATED_MS");if(!y){F=Kh("getHotConfig token error");_.xS(F);r.jumpTo(2);break}return _.n(r,UJz(y),3);case 3:if((z=r.yieldResult)&&z.timestamp>k)return KUw(I,z.config),I.setHotHashData(z.hashData),r.return(D9());case 2:qse(I);if(!(y&&I.hotGlobalConfigGroup&&I.hotHashData)){r.jumpTo(4);
break}return _.n(r,B8z(I.hotGlobalConfigGroup,I.hotHashData,y,k),4);case 4:return I.hotGlobalConfigGroup?r.return(D9()):(c=new _.ph("Config not available in ytConfig"),_.xS(c),r.return(Promise.reject(c)))}})},Eoq=function(I){var C,y,k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:if(I.coldGlobalConfigGroup)return r.return(goq());if(!I.isConfigDbInitialized)return C=Kh("getColdConfig IDB not initialized"),_.xS(C),r.return(Promise.reject(C));y=hY();k=_.Aq("TIME_CREATED_MS");if(!y){F=Kh("getColdConfig");_.xS(F);r.jumpTo(2);break}return _.n(r,hyX(y),3);case 3:if((z=r.yieldResult)&&z.timestamp>k)return A3d(I,z.config),BT5(I,z.configData),WUm(I,z.hashData),r.return(goq());case 2:xUd(I);if(!(y&&I.coldGlobalConfigGroup&&I.coldHashData&&
I.configData)){r.jumpTo(4);break}return _.n(r,EBm(I.coldGlobalConfigGroup,I.coldHashData,I.configData,y,k),4);case 4:return I.coldGlobalConfigGroup?r.return(goq()):(c=new _.ph("Config not available in ytConfig"),_.xS(c),r.return(Promise.reject(c)))}})},vod=function(I){if(!I.hotGlobalConfigGroup||!I.coldGlobalConfigGroup){if(!hY()){var C=Kh("scheduleGetConfigs");
_.xS(C)}I.initJob||(I.initJob=_.b$.addLowPriorityJob(function(){return _.e(function(y){switch(y.nextAddress){case 1:return _.aM(y,2),_.n(y,Zi8(I),4);case 4:_.dC(y,3);break;case 2:_.sj(y);case 3:return _.aM(y,5),_.n(y,Eoq(I),7);case 7:_.dC(y,6);break;case 5:_.sj(y);case 6:I.initJob&&(I.initJob=0),_.oI(y)}})},100))}},EmK=function(I,C,y){var k,F,z;
return _.e(function(c){switch(c.nextAddress){case 1:if(!_.V("start_client_gcf")){c.jumpTo(0);break}y&&KUw(I,y);I.setHotHashData(C);k=hY();if(!k){c.jumpTo(3);break}if(y){c.jumpTo(4);break}return _.n(c,UJz(k),5);case 5:F=c.yieldResult,y=(z=F)==null?void 0:z.config;case 4:return _.n(c,B8z(y,C,k),3);case 3:if(y)for(var r=y,w=_.T(I.configUpdateService.sharedHotConfigJobQueue),L=w.next();!L.done;L=w.next())L=L.value,L(r);_.oI(c)}})},hlX=function(I,C,y){var k,F,z,c;
return _.e(function(r){if(r.nextAddress==1){if(!_.V("start_client_gcf"))return r.jumpTo(0);WUm(I,C);return(k=hY())?y?r.jumpTo(4):_.n(r,hyX(k),5):r.jumpTo(0)}r.nextAddress!=4&&(F=r.yieldResult,y=(z=F)==null?void 0:z.config);if(!y)return r.jumpTo(0);c=y.configData;return _.n(r,EBm(y,C,c,k),0)})},r7O=function(){var I=dUS(),C=(0,_.JY)()-I.debounceTimer;
if(!(I.debounceTimer!==0&&C<_.s8("send_config_hash_timer"))){C=_.d5("yt.gcf.config.coldConfigData");var y=_.d5("yt.gcf.config.hotHashData"),k=_.d5("yt.gcf.config.coldHashData");C&&y&&k&&(I.debounceTimer=(0,_.JY)());return{coldConfigData:C,hotHashData:y,coldHashData:k}}},xUd=function(I){A3d(I,_.Aq("RAW_COLD_CONFIG_GROUP"));
WUm(I,_.Aq("SERIALIZED_COLD_HASH_DATA"));var C;BT5(I,(C=I.coldGlobalConfigGroup)==null?void 0:C.configData)},qse=function(I){KUw(I,_.Aq("RAW_HOT_CONFIG_GROUP"));
I.setHotHashData(_.Aq("SERIALIZED_HOT_HASH_DATA"))},KUw=function(I,C){I.hotGlobalConfigGroup=C;
_.U8("yt.gcf.config.hotConfigGroup",I.hotGlobalConfigGroup||null)},A3d=function(I,C){I.coldGlobalConfigGroup=C;
_.U8("yt.gcf.config.coldConfigGroup",I.coldGlobalConfigGroup||null)};
VB.prototype.setHotHashData=function(I){this.hotHashData=I;_.U8("yt.gcf.config.hotHashData",this.hotHashData||null)};
var WUm=function(I,C){I.coldHashData=C;_.U8("yt.gcf.config.coldHashData",I.coldHashData||null)},BT5=function(I,C){I.configData=C;
_.U8("yt.gcf.config.coldConfigData",I.configData||null)},D9=function(){return _.d5("yt.gcf.config.hotConfigGroup")},goq=function(){return _.d5("yt.gcf.config.coldConfigGroup")};var cF={},hj5=typeof Uint8Array!=="undefined"&&typeof Uint16Array!=="undefined"&&typeof Int32Array!=="undefined";cF.assign=function(I){for(var C=Array.prototype.slice.call(arguments,1);C.length;){var y=C.shift();if(y){if(typeof y!=="object")throw new TypeError("Vc`"+y);for(var k in y)Object.prototype.hasOwnProperty.call(y,k)&&(I[k]=y[k])}}return I};
cF.shrinkBuf=function(I,C){if(I.length===C)return I;if(I.subarray)return I.subarray(0,C);I.length=C;return I};
var UU0={arraySet:function(I,C,y,k,F){if(C.subarray&&I.subarray)I.set(C.subarray(y,y+k),F);else for(var z=0;z<k;z++)I[F+z]=C[y+z]},
flattenChunks:function(I){var C,y;var k=y=0;for(C=I.length;k<C;k++)y+=I[k].length;var F=new Uint8Array(y);k=y=0;for(C=I.length;k<C;k++){var z=I[k];F.set(z,y);y+=z.length}return F}},Hiw={arraySet:function(I,C,y,k,F){for(var z=0;z<k;z++)I[F+z]=C[y+z]},
flattenChunks:function(I){return[].concat.apply([],I)}};
cF.setTyped=function(){hj5?(cF.Buf8=Uint8Array,cF.Buf16=Uint16Array,cF.Buf32=Int32Array,cF.assign(cF,UU0)):(cF.Buf8=Array,cF.Buf16=Array,cF.Buf32=Array,cF.assign(cF,Hiw))};
cF.setTyped();var tNd=!0;try{new Uint8Array(1)}catch(I){tNd=!1}
var U1z=function(I){var C,y,k=I.length,F=0;for(C=0;C<k;C++){var z=I.charCodeAt(C);if((z&64512)===55296&&C+1<k){var c=I.charCodeAt(C+1);(c&64512)===56320&&(z=65536+(z-55296<<10)+(c-56320),C++)}F+=z<128?1:z<2048?2:z<65536?3:4}var r=new cF.Buf8(F);for(C=y=0;y<F;C++)z=I.charCodeAt(C),(z&64512)===55296&&C+1<k&&(c=I.charCodeAt(C+1),(c&64512)===56320&&(z=65536+(z-55296<<10)+(c-56320),C++)),z<128?r[y++]=z:(z<2048?r[y++]=192|z>>>6:(z<65536?r[y++]=224|z>>>12:(r[y++]=240|z>>>18,r[y++]=128|z>>>12&63),r[y++]=
128|z>>>6&63),r[y++]=128|z&63);return r};var KMF={};KMF=function(I,C,y,k){var F=I&65535|0;I=I>>>16&65535|0;for(var z;y!==0;){z=y>2E3?2E3:y;y-=z;do F=F+C[k++]|0,I=I+F|0;while(--z);F%=65521;I%=65521}return F|I<<16|0};for(var jP={},py,J3c=[],Oi8=0;Oi8<256;Oi8++){py=Oi8;for(var aib=0;aib<8;aib++)py=py&1?3988292384^py>>>1:py>>>1;J3c[Oi8]=py}jP=function(I,C,y,k){y=k+y;for(I^=-1;k<y;k++)I=I>>>8^J3c[(I^C[k])&255];return I^-1};var wI={};wI={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 VrY=[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],l0O=[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],hQK=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],f0m=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Dv=Array(576);oe(Dv);var pw=Array(60);oe(pw);var rI=Array(512);oe(rI);var eP=Array(256);oe(eP);var jtz=Array(29);oe(jtz);var XQK=Array(30);oe(XQK);var ZAO,B9I,E39,m1I=!1;var Re;
Re=[new $V(0,0,0,0,function(I,C){var y=65535;for(y>I.pending_buf_size-5&&(y=I.pending_buf_size-5);;){if(I.lookahead<=1){l$(I);if(I.lookahead===0&&C===0)return 1;if(I.lookahead===0)break}I.strstart+=I.lookahead;I.lookahead=0;var k=I.block_start+y;if(I.strstart===0||I.strstart>=k)if(I.lookahead=I.strstart-k,I.strstart=k,Qq(I,!1),I.strm.avail_out===0)return 1;if(I.strstart-I.block_start>=I.w_size-262&&(Qq(I,!1),I.strm.avail_out===0))return 1}I.insert=0;if(C===4)return Qq(I,!0),I.strm.avail_out===0?3:
4;I.strstart>I.block_start&&Qq(I,!1);return 1}),
new $V(4,4,8,4,A7K),new $V(4,5,16,8,A7K),new $V(4,6,32,32,A7K),new $V(4,4,16,16,Xj),new $V(8,16,32,32,Xj),new $V(8,16,128,128,Xj),new $V(8,32,128,256,Xj),new $V(32,128,258,1024,Xj),new $V(32,258,258,4096,Xj)];var qNs={};qNs=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 HA9=Object.prototype.toString;
x1I.prototype.push=function(I,C){var y=this.strm,k=this.options.chunkSize;if(this.ended)return!1;var F=C===~~C?C:C===!0?4:0;typeof I==="string"?y.input=U1z(I):HA9.call(I)==="[object ArrayBuffer]"?y.input=new Uint8Array(I):y.input=I;y.next_in=0;y.avail_in=y.input.length;do{y.avail_out===0&&(y.output=new cF.Buf8(k),y.next_out=0,y.avail_out=k);I=d1z(y,F);if(I!==1&&I!==0)return MNq(this,I),this.ended=!0,!1;if(y.avail_out===0||y.avail_in===0&&(F===4||F===2))if(this.options.to==="string"){var z=cF.shrinkBuf(y.output,
y.next_out);C=z;z=z.length;if(z<65537&&(C.subarray&&tNd||!C.subarray))C=String.fromCharCode.apply(null,cF.shrinkBuf(C,z));else{for(var c="",r=0;r<z;r++)c+=String.fromCharCode(C[r]);C=c}this.chunks.push(C)}else C=cF.shrinkBuf(y.output,y.next_out),this.chunks.push(C)}while((y.avail_in>0||y.avail_out===0)&&I!==1);if(F===4)return(y=this.strm)&&y.state?(k=y.state.status,k!==42&&k!==69&&k!==73&&k!==91&&k!==103&&k!==113&&k!==666?I=nw(y,-2):(y.state=null,I=k===113?nw(y,-3):0)):I=-2,MNq(this,I),this.ended=
!0,I===0;F===2&&(MNq(this,0),y.avail_out=0);return!0};
var MNq=function(I,C){C===0&&(I.result=I.options.to==="string"?I.chunks.join(""):cF.flattenChunks(I.chunks));I.chunks=[];I.err=C;I.msg=I.strm.msg};var I7u=typeof TextEncoder!=="undefined"?new TextEncoder:null,jQI=I7u?function(I){return I7u.encode(I)}:function(I){I=_.nL(I);
for(var C=new Uint8Array(I.length),y=0;y<C.length;y++)C[y]=I[y];return C};var Cpm={next:"wn_s",browse:"br_s",search:"sr_s",reel:"r_wrs",player:"ps_s"},oYm={next:"wn_r",browse:"br_r",search:"sr_r",reel:"r_wrr",player:"ps_r"};var Qe=function(I,C){this.version=I;this.args=C};
Qe.prototype.serialize=function(){return{version:this.version,args:this.args}};var Mrz=function(I,C){this.topic=I;this.dataClass=C};
Mrz.prototype.toString=function(){return this.topic};var CfY=_.d5("ytPubsub2Pubsub2Instance")||new _.rC;_.rC.prototype.subscribe=_.rC.prototype.subscribe;_.rC.prototype.unsubscribeByKey=_.rC.prototype.unsubscribeByKey;_.rC.prototype.publish=_.rC.prototype.publish;_.rC.prototype.clear=_.rC.prototype.clear;_.U8("ytPubsub2Pubsub2Instance",CfY);var a0F=_.d5("ytPubsub2Pubsub2SubscribedKeys")||{};_.U8("ytPubsub2Pubsub2SubscribedKeys",a0F);var C6I=_.d5("ytPubsub2Pubsub2TopicToKeys")||{};_.U8("ytPubsub2Pubsub2TopicToKeys",C6I);
var Ikz=_.d5("ytPubsub2Pubsub2IsAsync")||{};_.U8("ytPubsub2Pubsub2IsAsync",Ikz);_.U8("ytPubsub2Pubsub2SkipSubKey",null);var edY=void 0,Tiz=void 0;var pgm=_.s8("max_body_size_to_compress",5E5),QQX=_.s8("min_body_size_to_compress",500),GD=!0,$kI=0,fw=0,XgO=_.s8("compression_performance_threshold_lr",250),RdI=_.s8("slow_compressions_before_abandon_count",4),wgm=!1,n9F=new Map,Vd9=1,NiY=!0;_.s0(SP,GL9);SP.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 sRe=function(I,C,y){y||(y=0);var k=I.W_;if(typeof C==="string")for(var F=0;F<16;F++)k[F]=C.charCodeAt(y)<<24|C.charCodeAt(y+1)<<16|C.charCodeAt(y+2)<<8|C.charCodeAt(y+3),y+=4;else for(F=0;F<16;F++)k[F]=C[y]<<24|C[y+1]<<16|C[y+2]<<8|C[y+3],y+=4;for(C=16;C<80;C++)y=k[C-3]^k[C-8]^k[C-14]^k[C-16],k[C]=(y<<1|y>>>31)&4294967295;C=I.chain_[0];y=I.chain_[1];F=I.chain_[2];for(var z=I.chain_[3],c=I.chain_[4],r,w,L=0;L<80;L++)L<40?L<20?(r=z^y&(F^z),w=1518500249):(r=y^F^z,w=1859775393):L<60?(r=y&F|z&(y|F),
w=2400959708):(r=y^F^z,w=3395469782),r=(C<<5|C>>>27)+r+c+w+k[L]&4294967295,c=z,z=F,F=(y<<30|y>>>2)&4294967295,y=C,C=r;I.chain_[0]=I.chain_[0]+C&4294967295;I.chain_[1]=I.chain_[1]+y&4294967295;I.chain_[2]=I.chain_[2]+F&4294967295;I.chain_[3]=I.chain_[3]+z&4294967295;I.chain_[4]=I.chain_[4]+c&4294967295};
SP.prototype.update=function(I,C){if(I!=null){C===void 0&&(C=I.length);for(var y=C-this.blockSize,k=0,F=this.buf_,z=this.inbuf_;k<C;){if(z==0)for(;k<=y;)sRe(this,I,k),k+=this.blockSize;if(typeof I==="string")for(;k<C;){if(F[z]=I.charCodeAt(k),++z,++k,z==this.blockSize){sRe(this,F);z=0;break}}else for(;k<C;)if(F[z]=I[k],++z,++k,z==this.blockSize){sRe(this,F);z=0;break}}this.inbuf_=z;this.total_+=C}};
SP.prototype.digest=function(){var I=[],C=this.total_*8;this.inbuf_<56?this.update(this.pad_,56-this.inbuf_):this.update(this.pad_,this.blockSize-(this.inbuf_-56));for(var y=this.blockSize-1;y>=56;y--)this.buf_[y]=C&255,C/=256;sRe(this,this.buf_);for(y=C=0;y<5;y++)for(var k=24;k>=0;k-=8)I[C]=this.chain_[y]>>k&255,++C;return I};var ASK;var Ve=function(I){var C=this;this.bypassDbTokenDependency=this.initialized=!1;this.potentialEsfErrorCounter=this.intervalJob=0;this.handleError=function(){};
this.handleWarning=function(){};
this.now=Date.now;this.disableYtIdbTransactions=!1;this.TEST_ONLY={setDbToken:function(D){C.databaseToken=D},
triggerThrottle:function(){C.throttledSend()},
cancelThrottle:function(){C.cancelThrottledSend()},
immediateSend:function(D){return _.e(function(p){return _.n(p,C.immediateSend(D),0)})},
requestWithinAgeLimit:function(D,p){return C.requestWithinAgeLimit(D,p)},
retryQueuedRequests:function(){C.retryQueuedRequests()}};
var y;this.throttleTimeout=(y=I.throttleTimeout)!=null?y:100;var k;this.retryMaxAttempts=(k=I.retryMaxAttempts)!=null?k:1;var F;this.requestAgeLimitMs=(F=I.requestAgeLimitMs)!=null?F:2592E6;var z;this.queuedRequestAgeLimitMs=(z=I.queuedRequestAgeLimitMs)!=null?z:12E4;var c;this.retryDelayMs=(c=I.retryDelayMs)!=null?c:5E3;var r;this.databaseToken=(r=I.databaseToken)!=null?r:void 0;this.enableCleaning=!!I.enableCleaning;var w;this.cleaningRate=(w=I.cleaningRate)!=null?w:.1;var L;this.potentialEsfErrorLimit=
(L=I.potentialEsfErrorLimit)!=null?L:10;I.handleError&&(this.handleError=I.handleError);I.handleWarning&&(this.handleWarning=I.handleWarning);I.disableYtIdbTransactions&&(this.disableYtIdbTransactions=I.disableYtIdbTransactions);I.bypassDbTokenDependency&&(this.bypassDbTokenDependency=I.bypassDbTokenDependency);this.getBooleanFlag=I.getBooleanFlag;this.jobManager=I.jobManager;this.logsStore=I.logsStore;this.networkManager=I.networkManager;this.sendFn=I.sendFn;this.onlineEvent=I.onlineEvent;this.offlineEvent=
I.offlineEvent;NC(this)&&(!this.getBooleanFlag||this.getBooleanFlag("networkless_logging"))&&odm(this)},odm=function(I){NC(I)&&!I.disableYtIdbTransactions&&(I.initialized=!0,I.enableCleaning&&Math.random()<=I.cleaningRate&&I.logsStore.cleanLogsStore(I.databaseToken),I.retryQueuedRequests(),I.networkManager.isNetworkAvailable()&&I.throttledSend(),I.networkManager.listen(I.onlineEvent,I.throttledSend.bind(I)),I.networkManager.listen(I.offlineEvent,I.cancelThrottledSend.bind(I)))};
_.u=Ve.prototype;_.u.writeThenSend=function(I,C){var y=this;C=C===void 0?{}:C;if(NC(this)&&this.initialized){var k={url:I,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.logsStore.set(k,this.databaseToken).then(function(F){k.id=F;y.networkManager.isNetworkAvailable()&&y.immediateSend(k)}).catch(function(F){y.immediateSend(k);
ynS(y,F)})}else this.sendFn(I,C)};
_.u.sendThenWrite=function(I,C,y){var k=this;C=C===void 0?{}:C;if(NC(this)&&this.initialized){var F={url:I,options:C,timestamp:this.now(),status:"NEW",sendCount:0};this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&(F.skipRetry=y);if(this.networkManager.isNetworkAvailable()||this.getBooleanFlag&&this.getBooleanFlag("nwl_aggressive_send_then_write")&&!F.skipRetry){if(!F.skipRetry){var z=C.onError?C.onError:function(){};
C.onError=function(c,r){return _.e(function(w){if(w.nextAddress==1)return _.n(w,k.logsStore.set(F,k.databaseToken).catch(function(L){ynS(k,L)}),2);
z(c,r);_.oI(w)})}}this.sendFn(I,C,F.skipRetry)}else this.logsStore.set(F,this.databaseToken).catch(function(c){k.sendFn(I,C,F.skipRetry);
ynS(k,c)})}else this.sendFn(I,C,this.getBooleanFlag&&this.getBooleanFlag("nwl_skip_retry")&&y)};
_.u.sendAndWrite=function(I,C){var y=this;C=C===void 0?{}:C;if(NC(this)&&this.initialized){var k={url:I,options:C,timestamp:this.now(),status:"NEW",sendCount:0},F=!1,z=C.onSuccess?C.onSuccess:function(){};
k.options.onSuccess=function(c,r){k.id!==void 0?y.logsStore.deleteRequest(k.id,y.databaseToken):F=!0;y.networkManager.networkStatusHint&&y.getBooleanFlag&&y.getBooleanFlag("vss_network_hint")&&y.networkManager.networkStatusHint(!0);z(c,r)};
this.sendFn(k.url,k.options,void 0,!0);this.logsStore.set(k,this.databaseToken).then(function(c){k.id=c;F&&y.logsStore.deleteRequest(k.id,y.databaseToken)}).catch(function(c){ynS(y,c)})}else this.sendFn(I,C,void 0,!0)};
_.u.throttledSend=function(){var I=this;if(!NC(this))throw Error("Yc");this.intervalJob||(this.intervalJob=this.jobManager.addLowPriorityJob(function(){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.logsStore.getMostRecentByStatus("NEW",I.databaseToken),2);if(y.nextAddress!=3)return C=y.yieldResult,C?_.n(y,I.immediateSend(C),3):(I.cancelThrottledSend(),y.return());I.intervalJob&&(I.intervalJob=0,I.throttledSend());_.oI(y)})},this.throttleTimeout))};
_.u.cancelThrottledSend=function(){this.jobManager.cancelJob(this.intervalJob);this.intervalJob=0};
_.u.immediateSend=function(I){var C=this,y;return _.e(function(k){switch(k.nextAddress){case 1:if(!NC(C))throw Error("Zc");if(I.id===void 0){k.jumpTo(2);break}return _.n(k,C.logsStore.markAsQueued(I.id,C.databaseToken),3);case 3:(y=k.yieldResult)||C.handleWarning(Error("$c"));case 2:if(C.requestWithinAgeLimit(I,C.requestAgeLimitMs)){k.jumpTo(4);break}C.handleWarning(Error("ad"));if(I.id===void 0){k.jumpTo(5);break}return _.n(k,C.logsStore.deleteRequest(I.id,C.databaseToken),5);case 5:return k.return();
case 4:I.skipRetry||(I=k2w(C,I));if(!I){k.jumpTo(0);break}if(!I.skipRetry||I.id===void 0){k.jumpTo(8);break}return _.n(k,C.logsStore.deleteRequest(I.id,C.databaseToken),8);case 8:C.sendFn(I.url,I.options,!!I.skipRetry),_.oI(k)}})};
var k2w=function(I,C){if(!NC(I))throw Error("bd");var y=C.options.onError?C.options.onError:function(){};
C.options.onError=function(F,z){var c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:c=xk9(z);(r=qez(z))&&I.getBooleanFlag&&I.getBooleanFlag("web_enable_error_204")&&I.handleError(Error("cd"),C.url,z);if(!(I.getBooleanFlag&&I.getBooleanFlag("nwl_consider_error_code")&&c||I.getBooleanFlag&&!I.getBooleanFlag("nwl_consider_error_code")&&I.potentialEsfErrorCounter<=I.potentialEsfErrorLimit)){D.jumpTo(2);break}if(!I.networkManager.sendNetworkCheckRequest){D.jumpTo(3);break}return _.n(D,I.networkManager.sendNetworkCheckRequest(),
3);case 3:if(I.networkManager.isNetworkAvailable()){D.jumpTo(2);break}y(F,z);if(!I.getBooleanFlag||!I.getBooleanFlag("nwl_consider_error_code")||((w=C)==null?void 0:w.id)===void 0){D.jumpTo(6);break}return _.n(D,I.logsStore.resetRequest(C.id,I.databaseToken,!1),6);case 6:return D.return();case 2:if(I.getBooleanFlag&&I.getBooleanFlag("nwl_consider_error_code")&&!c&&I.potentialEsfErrorCounter>I.potentialEsfErrorLimit)return D.return();I.potentialEsfErrorCounter++;if(((L=C)==null?void 0:L.id)===void 0){D.jumpTo(8);
break}return C.sendCount<I.retryMaxAttempts?_.n(D,I.logsStore.resetRequest(C.id,I.databaseToken,!0,r?!1:void 0),12):_.n(D,I.logsStore.deleteRequest(C.id,I.databaseToken),8);case 12:I.jobManager.addLowPriorityJob(function(){I.networkManager.isNetworkAvailable()&&I.throttledSend()},I.retryDelayMs);
case 8:y(F,z),_.oI(D)}})};
var k=C.options.onSuccess?C.options.onSuccess:function(){};
C.options.onSuccess=function(F,z){var c;return _.e(function(r){if(r.nextAddress==1)return((c=C)==null?void 0:c.id)===void 0?r.jumpTo(2):_.n(r,I.logsStore.deleteRequest(C.id,I.databaseToken),2);I.networkManager.networkStatusHint&&I.getBooleanFlag&&I.getBooleanFlag("vss_network_hint")&&I.networkManager.networkStatusHint(!0);k(F,z);_.oI(r)})};
return C};
Ve.prototype.requestWithinAgeLimit=function(I,C){I=I.timestamp;return this.now()-I>=C?!1:!0};
Ve.prototype.retryQueuedRequests=function(){var I=this;if(!NC(this))throw Error("dd");this.logsStore.getMostRecentByStatus("QUEUED",this.databaseToken).then(function(C){C&&!I.requestWithinAgeLimit(C,I.queuedRequestAgeLimitMs)?I.jobManager.addLowPriorityJob(function(){return _.e(function(y){if(y.nextAddress==1)return C.id===void 0?y.jumpTo(2):_.n(y,I.logsStore.resetRequest(C.id,I.databaseToken),2);I.retryQueuedRequests();_.oI(y)})}):I.networkManager.isNetworkAvailable()&&I.throttledSend()})};
var ynS=function(I,C){I.writeError&&!I.networkManager.isNetworkAvailable()?I.writeError(C):I.handleError(C)},NC=function(I){return!!I.databaseToken||I.bypassDbTokenDependency};var mkO;var tAm={accountStateChangeSignedIn:23,accountStateChangeSignedOut:24,delayedEventMetricCaptured:11,latencyActionBaselined:6,latencyActionInfo:7,latencyActionTicked:5,offlineTransferStatusChanged:2,offlineImageDownload:335,playbackStartStateChanged:9,systemHealthCaptured:3,mangoOnboardingCompleted:10,mangoPushNotificationReceived:230,mangoUnforkDbMigrationError:121,mangoUnforkDbMigrationSummary:122,mangoUnforkDbMigrationPreunforkDbVersionNumber:133,mangoUnforkDbMigrationPhoneMetadata:134,mangoUnforkDbMigrationPhoneStorage:135,
mangoUnforkDbMigrationStep:142,mangoAsyncApiMigrationEvent:223,mangoDownloadVideoResult:224,mangoHomepageVideoCount:279,mangoHomeV3State:295,mangoImageClientCacheHitEvent:273,sdCardStatusChanged:98,framesDropped:12,thumbnailHovered:13,deviceRetentionInfoCaptured:14,thumbnailLoaded:15,backToAppEvent:318,streamingStatsCaptured:17,offlineVideoShared:19,appCrashed:20,youThere:21,offlineStateSnapshot:22,mdxSessionStarted:25,mdxSessionConnected:26,mdxSessionDisconnected:27,bedrockResourceConsumptionSnapshot:28,
nextGenWatchWatchSwiped:29,kidsAccountsSnapshot:30,zeroStepChannelCreated:31,tvhtml5SearchCompleted:32,offlineSharePairing:34,offlineShareUnlock:35,mdxRouteDistributionSnapshot:36,bedrockRepetitiveActionTimed:37,unpluggedDegradationInfo:229,uploadMp4HeaderMoved:38,uploadVideoTranscoded:39,uploadProcessorStarted:46,uploadProcessorEnded:47,uploadProcessorReady:94,uploadProcessorRequirementPending:95,uploadProcessorInterrupted:96,uploadFrontendEvent:241,assetPackDownloadStarted:41,assetPackDownloaded:42,
assetPackApplied:43,assetPackDeleted:44,appInstallAttributionEvent:459,playbackSessionStopped:45,adBlockerMessagingShown:48,distributionChannelCaptured:49,dataPlanCpidRequested:51,detailedNetworkTypeCaptured:52,sendStateUpdated:53,receiveStateUpdated:54,sendDebugStateUpdated:55,receiveDebugStateUpdated:56,kidsErrored:57,mdxMsnSessionStatsFinished:58,appSettingsCaptured:59,mdxWebSocketServerHttpError:60,mdxWebSocketServer:61,startupCrashesDetected:62,coldStartInfo:435,offlinePlaybackStarted:63,liveChatMessageSent:225,
liveChatUserPresent:434,liveChatBeingModerated:457,liveCreationCameraUpdated:64,liveCreationEncodingCaptured:65,liveCreationError:66,liveCreationHealthUpdated:67,liveCreationVideoEffectsCaptured:68,liveCreationStageOccured:75,liveCreationBroadcastScheduled:123,liveCreationArchiveReplacement:149,liveCreationCostreamingConnection:421,liveCreationStreamWebrtcStats:288,mdxSessionRecoveryStarted:69,mdxSessionRecoveryCompleted:70,mdxSessionRecoveryStopped:71,visualElementShown:72,visualElementHidden:73,
visualElementGestured:78,visualElementStateChanged:208,screenCreated:156,playbackAssociated:202,visualElementAttached:215,playbackContextEvent:214,cloudCastingPlaybackStarted:74,webPlayerApiCalled:76,tvhtml5AccountDialogOpened:79,foregroundHeartbeat:80,foregroundHeartbeatScreenAssociated:111,kidsOfflineSnapshot:81,mdxEncryptionSessionStatsFinished:82,playerRequestCompleted:83,liteSchedulerStatistics:84,mdxSignIn:85,spacecastMetadataLookupRequested:86,spacecastBatchLookupRequested:87,spacecastSummaryRequested:88,
spacecastPlayback:89,spacecastDiscovery:90,tvhtml5LaunchUrlComponentChanged:91,mdxBackgroundPlaybackRequestCompleted:92,mdxBrokenAdditionalDataDeviceDetected:93,tvhtml5LocalStorage:97,tvhtml5DeviceStorageStatus:147,autoCaptionsAvailable:99,playbackScrubbingEvent:339,flexyState:100,interfaceOrientationCaptured:101,mainAppBrowseFragmentCache:102,offlineCacheVerificationFailure:103,offlinePlaybackExceptionDigest:217,vrCopresenceStats:104,vrCopresenceSyncStats:130,vrCopresenceCommsStats:137,vrCopresencePartyStats:153,
vrCopresenceEmojiStats:213,vrCopresenceEvent:141,vrCopresenceFlowTransitEvent:160,vrCowatchPartyEvent:492,vrCowatchUserStartOrJoinEvent:504,vrPlaybackEvent:345,kidsAgeGateTracking:105,offlineDelayAllowedTracking:106,mainAppAutoOfflineState:107,videoAsThumbnailDownload:108,videoAsThumbnailPlayback:109,liteShowMore:110,renderingError:118,kidsProfilePinGateTracking:119,abrTrajectory:124,scrollEvent:125,streamzIncremented:126,kidsProfileSwitcherTracking:127,kidsProfileCreationTracking:129,buyFlowStarted:136,
mbsConnectionInitiated:138,mbsPlaybackInitiated:139,mbsLoadChildren:140,liteProfileFetcher:144,mdxRemoteTransaction:146,reelPlaybackError:148,reachabilityDetectionEvent:150,mobilePlaybackEvent:151,courtsidePlayerStateChanged:152,musicPersistentCacheChecked:154,musicPersistentCacheCleared:155,playbackInterrupted:157,playbackInterruptionResolved:158,fixFopFlow:159,anrDetection:161,backstagePostCreationFlowEnded:162,clientError:163,gamingAccountLinkStatusChanged:164,liteHousewarming:165,buyFlowEvent:167,
kidsParentalGateTracking:168,kidsSignedOutSettingsStatus:437,kidsSignedOutPauseHistoryFixStatus:438,tvhtml5WatchdogViolation:444,ypcUpgradeFlow:169,yongleStudy:170,ypcUpdateFlowStarted:171,ypcUpdateFlowCancelled:172,ypcUpdateFlowSucceeded:173,ypcUpdateFlowFailed:174,liteGrowthkitPromo:175,paymentFlowStarted:341,transactionFlowShowPaymentDialog:405,transactionFlowStarted:176,transactionFlowSecondaryDeviceStarted:222,transactionFlowSecondaryDeviceSignedOutStarted:383,transactionFlowCancelled:177,transactionFlowPaymentCallBackReceived:387,
transactionFlowPaymentSubmitted:460,transactionFlowPaymentSucceeded:329,transactionFlowSucceeded:178,transactionFlowFailed:179,transactionFlowPlayBillingConnectionStartEvent:428,transactionFlowSecondaryDeviceSuccess:458,transactionFlowErrorEvent:411,liteVideoQualityChanged:180,watchBreakEnablementSettingEvent:181,watchBreakFrequencySettingEvent:182,videoEffectsCameraPerformanceMetrics:183,adNotify:184,startupTelemetry:185,playbackOfflineFallbackUsed:186,outOfMemory:187,ypcPauseFlowStarted:188,ypcPauseFlowCancelled:189,
ypcPauseFlowSucceeded:190,ypcPauseFlowFailed:191,uploadFileSelected:192,ypcResumeFlowStarted:193,ypcResumeFlowCancelled:194,ypcResumeFlowSucceeded:195,ypcResumeFlowFailed:196,adsClientStateChange:197,ypcCancelFlowStarted:198,ypcCancelFlowCancelled:199,ypcCancelFlowSucceeded:200,ypcCancelFlowFailed:201,ypcCancelFlowGoToPaymentProcessor:402,ypcDeactivateFlowStarted:320,ypcRedeemFlowStarted:203,ypcRedeemFlowCancelled:204,ypcRedeemFlowSucceeded:205,ypcRedeemFlowFailed:206,ypcFamilyCreateFlowStarted:258,
ypcFamilyCreateFlowCancelled:259,ypcFamilyCreateFlowSucceeded:260,ypcFamilyCreateFlowFailed:261,ypcFamilyManageFlowStarted:262,ypcFamilyManageFlowCancelled:263,ypcFamilyManageFlowSucceeded:264,ypcFamilyManageFlowFailed:265,restoreContextEvent:207,embedsAdEvent:327,autoplayTriggered:209,clientDataErrorEvent:210,experimentalVssValidation:211,tvhtml5TriggeredEvent:212,tvhtml5FrameworksFieldTrialResult:216,tvhtml5FrameworksFieldTrialStart:220,musicOfflinePreferences:218,watchTimeSegment:219,appWidthLayoutError:221,
accountRegistryChange:226,userMentionAutoCompleteBoxEvent:227,downloadRecommendationEnablementSettingEvent:228,musicPlaybackContentModeChangeEvent:231,offlineDbOpenCompleted:232,kidsFlowEvent:233,kidsFlowCorpusSelectedEvent:234,videoEffectsEvent:235,unpluggedOpsEogAnalyticsEvent:236,playbackAudioRouteEvent:237,interactionLoggingDebugModeError:238,offlineYtbRefreshed:239,kidsFlowError:240,musicAutoplayOnLaunchAttempted:242,deviceContextActivityEvent:243,deviceContextEvent:244,templateResolutionException:245,
musicSideloadedPlaylistServiceCalled:246,embedsStorageAccessNotChecked:247,embedsHasStorageAccessResult:248,embedsItpPlayedOnReload:249,embedsRequestStorageAccessResult:250,embedsShouldRequestStorageAccessResult:251,embedsRequestStorageAccessState:256,embedsRequestStorageAccessFailedState:257,embedsItpWatchLaterResult:266,searchSuggestDecodingPayloadFailure:252,siriShortcutActivated:253,tvhtml5KeyboardPerformance:254,latencyActionSpan:255,elementsLog:267,ytbFileOpened:268,tfliteModelError:269,apiTest:270,
yongleUsbSetup:271,touStrikeInterstitialEvent:272,liteStreamToSave:274,appBundleClientEvent:275,ytbFileCreationFailed:276,adNotifyFailure:278,ytbTransferFailed:280,blockingRequestFailed:281,liteAccountSelector:282,liteAccountUiCallbacks:283,dummyPayload:284,browseResponseValidationEvent:285,entitiesError:286,musicIosBackgroundFetch:287,mdxNotificationEvent:289,layersValidationError:290,musicPwaInstalled:291,liteAccountCleanup:292,html5PlayerHealthEvent:293,watchRestoreAttempt:294,liteAccountSignIn:296,
notaireEvent:298,kidsVoiceSearchEvent:299,adNotifyFilled:300,delayedEventDropped:301,analyticsSearchEvent:302,systemDarkThemeOptOutEvent:303,flowEvent:304,networkConnectivityBaselineEvent:305,ytbFileImported:306,downloadStreamUrlExpired:307,directSignInEvent:308,lyricImpressionEvent:309,accessibilityStateEvent:310,tokenRefreshEvent:311,genericAttestationExecution:312,tvhtml5VideoSeek:313,unpluggedAutoPause:314,scrubbingEvent:315,bedtimeReminderEvent:317,tvhtml5UnexpectedRestart:319,tvhtml5StabilityTraceEvent:478,
tvhtml5OperationHealth:467,tvhtml5WatchKeyEvent:321,voiceLanguageChanged:322,tvhtml5LiveChatStatus:323,parentToolsCorpusSelectedEvent:324,offerAdsEnrollmentInitiated:325,networkQualityIntervalEvent:326,deviceStartupMetrics:328,heartbeatActionPlayerTransitioned:330,tvhtml5Lifecycle:331,heartbeatActionPlayerHalted:332,adaptiveInlineMutedSettingEvent:333,mainAppLibraryLoadingState:334,thirdPartyLogMonitoringEvent:336,appShellAssetLoadReport:337,tvhtml5AndroidAttestation:338,tvhtml5StartupSoundEvent:340,
iosBackgroundRefreshTask:342,iosBackgroundProcessingTask:343,sliEventBatch:344,postImpressionEvent:346,musicSideloadedPlaylistExport:347,idbUnexpectedlyClosed:348,voiceSearchEvent:349,mdxSessionCastEvent:350,idbQuotaExceeded:351,idbTransactionEnded:352,idbTransactionAborted:353,tvhtml5KeyboardLogging:354,idbIsSupportedCompleted:355,creatorStudioMobileEvent:356,idbDataCorrupted:357,parentToolsAppChosenEvent:358,webViewBottomSheetResized:359,activeStateControllerScrollPerformanceSummary:360,navigatorValidation:361,
mdxSessionHeartbeat:362,clientHintsPolyfillDiagnostics:363,clientHintsPolyfillEvent:364,proofOfOriginTokenError:365,kidsAddedAccountSummary:366,musicWearableDevice:367,ypcRefundFlowEvent:368,tvhtml5PlaybackMeasurementEvent:369,tvhtml5WatermarkMeasurementEvent:370,clientExpGcfPropagationEvent:371,mainAppReferrerIntent:372,leaderLockEnded:373,leaderLockAcquired:374,googleHatsEvent:375,persistentLensLaunchEvent:376,parentToolsChildWelcomeChosenEvent:378,browseThumbnailPreloadEvent:379,finalPayload:380,
mdxDialAdditionalDataUpdateEvent:381,webOrchestrationTaskLifecycleRecord:382,startupSignalEvent:384,accountError:385,gmsDeviceCheckEvent:386,accountSelectorEvent:388,accountUiCallbacks:389,mdxDialAdditionalDataProbeEvent:390,downloadsSearchIcingApiStats:391,downloadsSearchIndexUpdatedEvent:397,downloadsSearchIndexSnapshot:398,dataPushClientEvent:392,kidsCategorySelectedEvent:393,mdxDeviceManagementSnapshotEvent:394,prefetchRequested:395,prefetchableCommandExecuted:396,gelDebuggingEvent:399,webLinkTtsPlayEnd:400,
clipViewInvalid:401,persistentStorageStateChecked:403,cacheWipeoutEvent:404,playerEvent:410,sfvEffectPipelineStartedEvent:412,sfvEffectPipelinePausedEvent:429,sfvEffectPipelineEndedEvent:413,sfvEffectChosenEvent:414,sfvEffectLoadedEvent:415,sfvEffectUserInteractionEvent:465,sfvEffectFirstFrameProcessedLatencyEvent:416,sfvEffectAggregatedFramesProcessedLatencyEvent:417,sfvEffectAggregatedFramesDroppedEvent:418,sfvEffectPipelineErrorEvent:430,sfvEffectGraphFrozenEvent:419,sfvEffectGlThreadBlockedEvent:420,
mdeQosEvent:510,mdeVideoChangedEvent:442,mdePlayerPerformanceMetrics:472,mdeExporterEvent:497,genericClientExperimentEvent:423,homePreloadTaskScheduled:424,homePreloadTaskExecuted:425,homePreloadCacheHit:426,polymerPropertyChangedInObserver:427,applicationStarted:431,networkCronetRttBatch:432,networkCronetRttSummary:433,repeatChapterLoopEvent:436,seekCancellationEvent:462,lockModeTimeoutEvent:483,externalVideoShareToYoutubeAttempt:501,parentCodeEvent:502,offlineTransferStarted:4,musicOfflineMixtapePreferencesChanged:16,
mangoDailyNewVideosNotificationAttempt:40,mangoDailyNewVideosNotificationError:77,dtwsPlaybackStarted:112,dtwsTileFetchStarted:113,dtwsTileFetchCompleted:114,dtwsTileFetchStatusChanged:145,dtwsKeyframeDecoderBufferSent:115,dtwsTileUnderflowedOnNonkeyframe:116,dtwsBackfillFetchStatusChanged:143,dtwsBackfillUnderflowed:117,dtwsAdaptiveLevelChanged:128,blockingVisitorIdTimeout:277,liteSocial:18,mobileJsInvocation:297,biscottiBasedDetection:439,coWatchStateChange:440,embedsVideoDataDidChange:441,shortsFirst:443,
cruiseControlEvent:445,qoeClientLoggingContext:446,atvRecommendationJobExecuted:447,tvhtml5UserFeedback:448,producerProjectCreated:449,producerProjectOpened:450,producerProjectDeleted:451,producerProjectElementAdded:453,producerProjectElementRemoved:454,producerAppStateChange:509,producerProjectDiskInsufficientExportFailure:516,tvhtml5ShowClockEvent:455,deviceCapabilityCheckMetrics:456,youtubeClearcutEvent:461,offlineBrowseFallbackEvent:463,getCtvTokenEvent:464,startupDroppedFramesSummary:466,screenshotEvent:468,
miniAppPlayEvent:469,elementsDebugCounters:470,fontLoadEvent:471,webKillswitchReceived:473,webKillswitchExecuted:474,cameraOpenEvent:475,manualSmoothnessMeasurement:476,tvhtml5AppQualityEvent:477,polymerPropertyAccessEvent:479,miniAppSdkUsage:480,cobaltTelemetryEvent:481,crossDevicePlayback:482,channelCreatedWithObakeImage:484,channelEditedWithObakeImage:485,offlineDeleteEvent:486,crossDeviceNotificationTransfer:487,androidIntentEvent:488,unpluggedAmbientInterludesCounterfactualEvent:489,keyPlaysPlayback:490,
shortsCreationFallbackEvent:493,vssData:491,castMatch:494,miniAppPerformanceMetrics:495,userFeedbackEvent:496,kidsGuestSessionMismatch:498,musicSideloadedPlaylistMigrationEvent:499,sleepTimerSessionFinishEvent:500,watchEpPromoConflict:503,innertubeResponseCacheMetrics:505,miniAppAdEvent:506,dataPlanUpsellEvent:507,producerProjectRenamed:508,producerMediaSelectionEvent:511,embedsAutoplayStatusChanged:512,remoteConnectEvent:513,connectedSessionMisattributionEvent:514,producerProjectElementModified:515,
adsSeenClientLogging:517,producerEvent:518};var Fo8={},akH=tY("ServiceWorkerLogsDatabase",{objectStores:(Fo8.SWHealthLog={addedAtVersion:1},Fo8),shared:!0,upgrade:function(I,C){C(1)&&vF(gI(I,"SWHealthLog",{keyPath:"id",autoIncrement:!0}),"swHealthNewRequest",["interface","timestamp"])},
version:1});var F0m={},k8z=0;var cGm;var jE=function(){this.requestMap=new Map;this.anyRequestHasSucceeded=!1},Zv=function(){if(!jE.instance){var I=_.d5("yt.networkRequestMonitor.instance")||new jE;
_.U8("yt.networkRequestMonitor.instance",I);jE.instance=I}return jE.instance};
jE.prototype.requestComplete=function(I,C){C&&(this.anyRequestHasSucceeded=!0);I=this.removeParams(I);this.requestMap.get(I)||this.requestMap.set(I,C)};
jE.prototype.isEndpointCFR=function(I){I=this.removeParams(I);return(I=this.requestMap.get(I))?!1:I===!1&&this.anyRequestHasSucceeded?!0:null};
jE.prototype.removeParams=function(I){return I.split("?")[0]};
jE.prototype.removeParams=jE.prototype.removeParams;jE.prototype.isEndpointCFR=jE.prototype.isEndpointCFR;jE.prototype.requestComplete=jE.prototype.requestComplete;jE.getInstance=Zv;var lp=function(I){_.LW.call(this);var C=this;this.pollingJob=this.abortTimeoutKey=0;this.jobManager=I!=null?I:{addLowPriorityJob:function(F,z){return setTimeout(F,z)},
cancelJob:function(F){clearTimeout(F)}};
var y,k;this.isOnline=(k=(y=window.navigator)==null?void 0:y.onLine)!=null?k:!0;this.onNavigatorChange=function(){return _.e(function(F){return _.n(F,u1S(C),0)})};
window.addEventListener("offline",this.onNavigatorChange);window.addEventListener("online",this.onNavigatorChange);this.pollingJob||z0q(this)};
_.R(lp,_.LW);lp.prototype.dispose=function(){window.removeEventListener("offline",this.onNavigatorChange);window.removeEventListener("online",this.onNavigatorChange);this.jobManager.cancelJob(this.pollingJob);delete lp.instance};
lp.prototype.isNetworkAvailable=function(){return this.isOnline};
var z0q=function(I){I.pollingJob=I.jobManager.addLowPriorityJob(function(){var C;return _.e(function(y){if(y.nextAddress==1)return I.isOnline?((C=window.navigator)==null?0:C.onLine)?y.jumpTo(3):_.n(y,u1S(I),3):_.n(y,u1S(I),3);z0q(I);_.oI(y)})},3E4)},u1S=function(I,C){return I.networkRequestPromise?I.networkRequestPromise:I.networkRequestPromise=new Promise(function(y){var k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:return k=window.AbortController?new window.AbortController:void 0,z=(F=k)==null?void 0:F.signal,c=!1,_.aM(r,2,3),k&&(I.abortTimeoutKey=I.jobManager.addLowPriorityJob(function(){k.abort()},C||2E4)),_.n(r,fetch("/generate_204",{method:"HEAD",
signal:z}),5);case 5:c=!0;case 3:_.MM(r);I.networkRequestPromise=void 0;I.abortTimeoutKey&&(I.jobManager.cancelJob(I.abortTimeoutKey),I.abortTimeoutKey=0);c!==I.isOnline&&(I.isOnline=c,I.isOnline?I.dispatchEvent("networkstatus-online"):I.dispatchEvent("networkstatus-offline"));y(c);_.C1(r,0);break;case 2:_.sj(r),c=!1,r.jumpTo(3)}})})};var XZ=function(){_.LW.call(this);var I=this;this.shouldFlushErrors=!1;lp.instance||(lp.instance=new lp(_.b$));this.sharedNetworkStatusManager=lp.instance;this.sharedNetworkStatusManager.listen("networkstatus-online",function(){if(I.shouldFlushErrors&&_.V("offline_error_handling")){var C=eMH().get("errors",!0);if(C){for(var y in C)if(C[y]){var k=new _.ph(y,"sent via offline_errors");k.name=C[y].name;k.stack=C[y].stack;k.level=C[y].level;_.v5(k)}eMH().set("errors",{},2592E3,!0)}}})};
_.R(XZ,_.LW);var TXb=function(){if(!XZ.instance){var I=_.d5("yt.networkStatusManager.instance")||new XZ;_.U8("yt.networkStatusManager.instance",I);XZ.instance=I}return XZ.instance};
_.u=XZ.prototype;_.u.isNetworkAvailable=function(){return this.sharedNetworkStatusManager.isNetworkAvailable()};
_.u.networkStatusHint=function(I){this.sharedNetworkStatusManager.isOnline=I};
_.u.getWindowStatus=function(){var I=window.navigator.onLine;return I===void 0?!0:I};
_.u.enableErrorFlushing=function(){this.shouldFlushErrors=!0};
_.u.listen=function(I,C){return this.sharedNetworkStatusManager.listen(I,C)};
_.u.sendNetworkCheckRequest=function(I){I=u1S(this.sharedNetworkStatusManager,I);I.then(function(C){_.V("use_cfr_monitor")&&Zv().requestComplete("generate_204",C)});
return I};
XZ.prototype.sendNetworkCheckRequest=XZ.prototype.sendNetworkCheckRequest;XZ.prototype.listen=XZ.prototype.listen;XZ.prototype.enableErrorFlushing=XZ.prototype.enableErrorFlushing;XZ.prototype.getWindowStatus=XZ.prototype.getWindowStatus;XZ.prototype.networkStatusHint=XZ.prototype.networkStatusHint;XZ.prototype.isNetworkAvailable=XZ.prototype.isNetworkAvailable;XZ.getInstance=TXb;_.mx=function(I){I=I===void 0?{}:I;_.LW.call(this);var C=this;this.lastJobTime=this.schedulerJob=0;this.nsmInstance=TXb();var y=_.d5("yt.networkStatusManager.instance.listen").bind(this.nsmInstance);y&&(I.rateLimit?(this.rateLimit=I.rateLimit,y("networkstatus-online",function(){cnu(C,"publicytnetworkstatus-online")}),y("networkstatus-offline",function(){cnu(C,"publicytnetworkstatus-offline")})):(y("networkstatus-online",function(){C.dispatchEvent("publicytnetworkstatus-online")}),y("networkstatus-offline",
function(){C.dispatchEvent("publicytnetworkstatus-offline")})))};
_.R(_.mx,_.LW);_.mx.prototype.isNetworkAvailable=function(){var I=_.d5("yt.networkStatusManager.instance.isNetworkAvailable");return I?I.bind(this.nsmInstance)():!0};
_.mx.prototype.networkStatusHint=function(I){var C=_.d5("yt.networkStatusManager.instance.networkStatusHint").bind(this.nsmInstance);C&&C(I)};
_.mx.prototype.sendNetworkCheckRequest=function(I){var C=this,y;return _.e(function(k){y=_.d5("yt.networkStatusManager.instance.sendNetworkCheckRequest").bind(C.nsmInstance);return _.V("skip_network_check_if_cfr")&&Zv().isEndpointCFR("generate_204")?k.return(new Promise(function(F){var z;C.networkStatusHint(((z=window.navigator)==null?void 0:z.onLine)||!0);F(C.isNetworkAvailable())})):y?k.return(y(I)):k.return(!0)})};
var cnu=function(I,C){I.rateLimit?I.lastJobTime?(_.b$.cancelJob(I.schedulerJob),I.schedulerJob=_.b$.addLowPriorityJob(function(){I.lastPublicSignalSent!==C&&(I.dispatchEvent(C),I.lastPublicSignalSent=C,I.lastJobTime=(0,_.JY)())},I.rateLimit-((0,_.JY)()-I.lastJobTime))):(I.dispatchEvent(C),I.lastPublicSignalSent=C,I.lastJobTime=(0,_.JY)()):I.dispatchEvent(C)};var PgK,$Y=function(){Ve.call(this,{logsStore:{cleanLogsStore:JSH,deleteRequest:tdW,getMostRecentByStatus:hdt,markAsQueued:UkH,resetRequest:HxH,set:E9I},networkManager:_.L0X(),handleError:function(I,C,y){var k,F=y==null?void 0:(k=y.error)==null?void 0:k.code;if(F===400||F===415){var z;I=new _.ph(I.message,C,y==null?void 0:(z=y.error)==null?void 0:z.code);_.xS(I,void 0,void 0,void 0,!0)}else _.v5(I)},
handleWarning:_.xS,sendFn:wDz,now:_.JY,writeError:rGz,jobManager:_.R7(),onlineEvent:"publicytnetworkstatus-online",offlineEvent:"publicytnetworkstatus-offline",enableCleaning:!0,cleaningRate:.1,potentialEsfErrorLimit:_.s8("potential_esf_error_limit",10),getBooleanFlag:_.V,disableYtIdbTransactions:!(_.DJ()&&_.Dct())});this.initializationPromise=new _.ug;_.V("networkless_immediately_drop_all_requests")&&OxI();xJI("LogsDatabaseV2")};
_.R($Y,Ve);_.rnw=function(){var I=_.d5("yt.networklessRequestController.instance");I||(I=new $Y,_.U8("yt.networklessRequestController.instance",I),_.V("networkless_logging")&&_.HN().then(function(C){I.databaseToken=C;odm(I);I.initializationPromise.resolve();I.enableCleaning&&Math.random()<=I.cleaningRate&&I.databaseToken&&IWt(I.databaseToken);_.V("networkless_immediately_drop_sw_health_store")&&e0w(I)}));
return I};
$Y.prototype.writeThenSend=function(I,C){C||(C={});C=nkH(I,C);_.DJ()||(this.initialized=!1);Ve.prototype.writeThenSend.call(this,I,C)};
$Y.prototype.sendThenWrite=function(I,C,y){C||(C={});C=nkH(I,C);_.DJ()||(this.initialized=!1);Ve.prototype.sendThenWrite.call(this,I,C,y)};
$Y.prototype.sendAndWrite=function(I,C){C||(C={});C=nkH(I,C);_.DJ()||(this.initialized=!1);Ve.prototype.sendAndWrite.call(this,I,C)};
$Y.prototype.awaitInitialization=function(){return this.initializationPromise.promise};
var e0w=function(I){var C;_.e(function(y){if(!I.databaseToken)throw C=Kh("clearSWHealthLogsDb"),C;return y.return(Cg9(I.databaseToken).catch(function(k){I.handleError(k)}))})};_.Q_t=!1;_.pDW=_.sF.ytNetworklessLoggingInitializationOptions||{isNwlInitialized:_.Q_t};_.U8("ytNetworklessLoggingInitializationOptions",_.pDW);var R0=function(I){var C=this;this.config_=null;I?this.config_=I:tiY()&&(this.config_=_.aD());_.NU(_.b$,function(){dk9(C)},5E3)};
R0.prototype.isReady=function(){!this.config_&&tiY()&&(this.config_=_.aD());return!!this.config_};
var Wjs=function(I,C,y,k){!_.Aq("VISITOR_DATA")&&C!=="visitor_id"&&Math.random()<.01&&_.xS(new _.ph("Missing VISITOR_DATA when sending innertube request.",C,y,k));if(!I.isReady()){var F=new _.ph("innertube xhrclient not ready",C,y,k);_.v5(F);throw F;}var z={headers:k.headers||{},method:"POST",postParams:y,postBody:k.postBody,postBodyFormat:k.postBodyFormat||"JSON",onTimeout:function(){k.onTimeout()},
onFetchTimeout:k.onTimeout,onSuccess:function(p,Q){if(k.onSuccess)k.onSuccess(Q)},
onFetchSuccess:function(p){if(k.onSuccess)k.onSuccess(p)},
onError:function(p,Q){if(k.onError)k.onError(Q)},
onFetchError:function(p){if(k.onError)k.onError(p)},
timeout:k.timeout,withCredentials:!0,compress:k.compress};z.headers["Content-Type"]||(z.headers["Content-Type"]="application/json");var c="";(F=I.config_.innertubeHostOverride)&&(c=F);var r=I.config_.innertubeUseThirdPartyAuth||!1,w=_.eQW(r,c,k);Object.assign(z.headers,w);z.headers.Authorization&&!c&&r&&(z.headers["x-origin"]=window.location.origin);var L=_.E3(c+("/youtubei/"+I.config_.innertubeApiVersion+"/"+C),{alt:"json"}),D=function(p){p=p===void 0?!1:p;var Q;if(k.retry&&c!="www.youtube-nocookie.com"&&
(p||_.V("skip_ls_gel_retry")||z.headers["Content-Type"]!=="application/json"||(Q=g9X(C,y,w,r)),Q)){var X=z.onSuccess,b=z.onFetchSuccess;z.onSuccess=function(x,B){v9z(Q);X(x,B)};
y.onFetchSuccess=function(x,B){v9z(Q);b(x,B)}}try{if(p&&k.retry&&!k.networklessOptions.bypassNetworkless)z.method="POST",k.networklessOptions.writeThenSend?_.rnw().writeThenSend(L,z):_.rnw().sendAndWrite(L,z);
else if(k.compress){var S=!k.networklessOptions.writeThenSend;if(z.postBody){var A=z.postBody;typeof A!=="string"&&(A=JSON.stringify(z.postBody));lkz(L,A,z,_.cN,S)}else lkz(L,JSON.stringify(z.postParams),z,f7K,S)}else _.V("web_all_payloads_via_jspb")?_.cN(L,z):f7K(L,z)}catch(x){if(x.name==="InvalidAccessError")Q&&(v9z(Q),Q=0),_.xS(Error("ed"));else throw x;}Q&&_.NU(_.b$,function(){dk9(I)},5E3)};
_.NUI()?fCF().then(function(p){D(p)}):D(!1)};var GGK=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(GGK,_.GR);GGK.prototype.getIndex=function(){return $C(this,2)};
GGK.prototype.setIndex=function(I){return _.pi(this,2,I)};var i7w=0,j_I=_.z6?"webkit":_.u4?"moz":_.F8?"ms":hLs?"o":"";_.U8("ytDomDomGetNextId",_.d5("ytDomDomGetNextId")||function(){return++i7w});var w1P={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},OL=function(I){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(I=
I||window.event){this.event=I;for(var C in I)C in w1P||(this[C]=I[C]);this.scale=I.scale;this.rotation=I.rotation;var y=I.target||I.srcElement;y&&y.nodeType==3&&(y=y.parentNode);this.target=y;var k=I.relatedTarget;if(k)try{k=k.nodeName?k:null}catch(F){k=null}else this.type=="mouseover"?k=I.fromElement:this.type=="mouseout"&&(k=I.toElement);this.relatedTarget=k;this.clientX=I.clientX!=void 0?I.clientX:I.pageX;this.clientY=I.clientY!=void 0?I.clientY:I.pageY;this.keyCode=I.keyCode?I.keyCode:I.which;
this.charCode=I.charCode||(this.type=="keypress"?this.keyCode:0);this.altKey=I.altKey;this.ctrlKey=I.ctrlKey;this.shiftKey=I.shiftKey;this.metaKey=I.metaKey;this.pageX_=I.pageX;this.pageY_=I.pageY}}catch(F){}},ndb=function(I){if(document.body&&document.documentElement){var C=document.body.scrollTop+document.documentElement.scrollTop;
I.pageX_=I.clientX+(document.body.scrollLeft+document.documentElement.scrollLeft);I.pageY_=I.clientY+C}};
OL.prototype.preventDefault=function(){this.event&&(this.event.returnValue=!1,this.event.preventDefault&&this.event.preventDefault())};
OL.prototype.stopPropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopPropagation&&this.event.stopPropagation())};
OL.prototype.stopImmediatePropagation=function(){this.event&&(this.event.cancelBubble=!0,this.event.stopImmediatePropagation&&this.event.stopImmediatePropagation())};var Jz=_.sF.ytEventsEventsListeners||{};_.U8("ytEventsEventsListeners",Jz);var YqW=_.sF.ytEventsEventsCounter||{count:0};_.U8("ytEventsEventsCounter",YqW);var G8O=_.Pz(function(){var I=!1;try{var C=Object.defineProperty({},"capture",{get:function(){I=!0}});
window.addEventListener("test",null,C)}catch(y){}return I});_.s0(My,_.LL);My.prototype.onMouseMove_=function(I){I.pageX_===void 0&&ndb(I);var C=I.pageX_;I.pageY_===void 0&&ndb(I);this.position_=new _.Q6(C,I.pageY_)};
My.prototype.checkPosition_=function(){if(this.position_){var I=(0,_.JY)();if(this.previousTime_!=0){var C=this.previousPosition_,y=this.position_,k=C.x-y.x;C=C.y-y.y;k=Math.sqrt(k*k+C*C)/(I-this.previousTime_);this.cycles_[this.index_]=Math.abs((k-this.previousVelocity_)/this.previousVelocity_)>.5?1:0;for(y=C=0;y<4;y++)C+=this.cycles_[y]||0;C>=3&&this.callback_();this.previousVelocity_=k}this.previousTime_=I;this.previousPosition_=this.position_;this.index_=(this.index_+1)%4}};
My.prototype.disposeInternal=function(){window.clearInterval(this.timerId_);_.fWm(this.mouseListenerKey_)};var gkm={};var BWW=new _.J("rawColdConfigGroup");var ZKs=new _.J("rawHotConfigGroup");var Pfu=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Pfu,_.GR);var YUW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(YUW,_.GR);var QB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I,500)};
_.R(QB,_.GR);QB.prototype.getPayloadCase=function(){return _.pF(this,LoP)};
QB.prototype.getContext=function(){return _.MS(this,YUW,33)};
var LoP=[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];var vmX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(vmX,_.GR);var rLF=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(rLF,_.GR);rLF.prototype.setVideoId=function(I){return rT(this,1,iKI,K8(I))};
rLF.prototype.getPlaylistId=function(){return _.Te(this,Li(this,iKI,2))};
var iKI=[1,2];var G$W=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(G$W,_.GR);G$W.prototype.getContext=function(){return _.MS(this,i2,1)};
G$W.prototype.getTier=function(){return _.YC(this,7)};var Dsd,o0,yB;Dsd=_.sF.ytPubsubPubsubInstance||new _.rC;o0=_.sF.ytPubsubPubsubSubscribedKeys||{};yB=_.sF.ytPubsubPubsubTopicToKeys||{};_.vkF=_.sF.ytPubsubPubsubIsSynchronous||{};_.rC.prototype.subscribe=_.rC.prototype.subscribe;_.rC.prototype.unsubscribeByKey=_.rC.prototype.unsubscribeByKey;_.rC.prototype.publish=_.rC.prototype.publish;_.rC.prototype.clear=_.rC.prototype.clear;_.U8("ytPubsubPubsubInstance",Dsd);_.U8("ytPubsubPubsubTopicToKeys",yB);_.U8("ytPubsubPubsubIsSynchronous",_.vkF);
_.U8("ytPubsubPubsubSubscribedKeys",o0);var F9=window;var Rr=_.V("web_enable_lifecycle_monitoring")&&mcH()!==0,p1q=_.V("web_enable_lifecycle_monitoring");var NXq=function(I){var C=this;var y=y===void 0?0:y;var k=k===void 0?_.R7():k;this.JSC$8689_defaultPriority=y;this.scheduler=k;this.completedResolver=new _.ug;this.scheduledPayloads=I;for(I={i$jscomp$528:0};I.i$jscomp$528<this.scheduledPayloads.length;I={payload$jscomp$18:void 0,i$jscomp$528:I.i$jscomp$528},I.i$jscomp$528++)I.payload$jscomp$18=this.scheduledPayloads[I.i$jscomp$528],y=function(F){return function(){F.payload$jscomp$18.job();C.scheduledPayloads[F.i$jscomp$528].processed=!0;C.scheduledPayloads.every(function(z){return z.processed===
!0})&&C.completedResolver.resolve()}}(I),k=this.scheduler.addJob(y,QRb(this,I.payload$jscomp$18)),this.scheduledPayloads[I.i$jscomp$528]=Object.assign({},I.payload$jscomp$18,{job:y,
jobId:k})};
NXq.prototype.flushJobs=function(){var I=this,C=Array.from(this.scheduledPayloads.keys()).sort(function(k,F){return QRb(I,I.scheduledPayloads[F])-QRb(I,I.scheduledPayloads[k])});
C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=this.scheduledPayloads[y.value],y.jobId===void 0||y.processed||(this.scheduler.cancelJob(y.jobId),this.scheduler.addJob(y.job,10))};
NXq.prototype.cancel=function(){for(var I=_.T(this.scheduledPayloads),C=I.next();!C.done;C=I.next())C=C.value,C.jobId===void 0||C.processed||this.scheduler.cancelJob(C.jobId),C.processed=!0;this.completedResolver.resolve()};
var QRb=function(I,C){var y;return(y=C.priority)!=null?y:I.JSC$8689_defaultPriority};var bp=function(I){this.state=I;this.plugins=[];this.overridePriority=void 0;this.processPluginOptions={};Rr&&Zp9(this.state)};
bp.prototype.install=function(I){this.plugins.push(I);return this};
bp.prototype.uninstall=function(){var I=this;_.wa.apply(0,arguments).forEach(function(C){C=I.plugins.indexOf(C);C>-1&&I.plugins.splice(C,1)})};
bp.prototype.transition=function(I,C){var y=this;Rr&&BUH(this.state);var k=this.transitions.find(function(z){return Array.isArray(z.from)?z.from.find(function(c){return c===y.state&&z.to===I}):z.from===y.state&&z.to===I});
if(k){this.jobSet&&(this.jobSet.flushJobs(),this.jobSet=void 0);Vsw(this,I,C);this.state=I;Rr&&Zp9(this.state);k=k.action.bind(this);var F=this.plugins.filter(function(z){return z[I]}).map(function(z){return z[I]});
k(jRm(this,F),C)}else throw Error("fd`"+this.state+"`"+I);};
var jRm=function(I,C){var y=C.filter(function(F){return l7S(I,F)===10}),k=C.filter(function(F){return l7S(I,F)!==10});
return I.processPluginOptions.shouldWaitOnAsyncImmediate?function(){var F=_.wa.apply(0,arguments);return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.runImmediateJobsAsync.apply(I,[y].concat(_.Py(F))),2);I.setJobSetWithScheduledJobs.apply(I,[k].concat(_.Py(F)));_.oI(z)})}:function(){var F=_.wa.apply(0,arguments);
I.runImmediateJobsSync.apply(I,[y].concat(_.Py(F)));I.setJobSetWithScheduledJobs.apply(I,[k].concat(_.Py(F)))}};
bp.prototype.runImmediateJobsSync=function(I){var C=_.wa.apply(1,arguments);_.R7();for(var y=_.T(I),k=y.next(),F={};!k.done;F={lifecycle$jscomp$2:void 0},k=y.next())F.lifecycle$jscomp$2=k.value,H9(function(z){return function(){X1q(z.lifecycle$jscomp$2.name);hMz(function(){return z.lifecycle$jscomp$2.callback.apply(z.lifecycle$jscomp$2,_.Py(C))});
YY(z.lifecycle$jscomp$2.name)}}(F))};
bp.prototype.runImmediateJobsAsync=function(I){var C=_.wa.apply(1,arguments),y,k,F,z;return _.e(function(c){c.nextAddress==1&&(_.R7(),y=_.T(I),k=y.next(),F={});if(c.nextAddress!=3){if(k.done)return c.jumpTo(0);F.lifecycle$jscomp$3=k.value;F.asyncJobCompletion=void 0;z=function(r){return function(){X1q(r.lifecycle$jscomp$3.name);var w=hMz(function(){return r.lifecycle$jscomp$3.callback.apply(r.lifecycle$jscomp$3,_.Py(C))});
lUH(w)?r.asyncJobCompletion=_.V("web_lifecycle_error_handling_killswitch")?w.then(function(){YY(r.lifecycle$jscomp$3.name)}):w.then(function(){YY(r.lifecycle$jscomp$3.name)},function(L){Ek9(L);
YY(r.lifecycle$jscomp$3.name)}):YY(r.lifecycle$jscomp$3.name)}}(F);
H9(z);return F.asyncJobCompletion?_.n(c,F.asyncJobCompletion,3):c.jumpTo(3)}F={lifecycle$jscomp$3:void 0,asyncJobCompletion:void 0};k=y.next();return c.jumpTo(2)})};
bp.prototype.setJobSetWithScheduledJobs=function(I){var C=_.wa.apply(1,arguments),y=this,k=I.map(function(F){return{job:function(){X1q(F.name);hMz(function(){return F.callback.apply(F,_.Py(C))});
YY(F.name)},
priority:l7S(y,F)}});
k.length&&(this.jobSet=new NXq(k))};
var l7S=function(I,C){var y,k;return(k=(y=I.overridePriority)!=null?y:C.priority)!=null?k:0},X1q=function(I){Rr&&I&&Zp9(I)},YY=function(I){Rr&&I&&BUH(I)},Vsw=function(I,C,y){p1q&&console.groupCollapsed&&console.groupEnd&&(console.groupCollapsed("["+I.constructor.name+"] '"+I.state+"' to '"+C+"'"),console.log("with message: ",y),console.groupEnd())};
_.H1.Object.defineProperties(bp.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){return this.state}}});var $sw=function(I){bp.call(this,I===void 0?"none":I);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(){}}]},R0q;
_.R($sw,bp);$sw.prototype.runApplicationNavigationBegin=function(I,C){var y=this;this.navigationTimer=_.NU(_.b$,function(){y.currentState==="application_navigating"&&y.transition("none")},5E3);
I(C==null?void 0:C.event)};
$sw.prototype.runApplicationNavigationEnd=function(I,C){this.navigationTimer&&(_.b$.cancelJob(this.navigationTimer),this.navigationTimer=null);I(C==null?void 0:C.event)};
_.mHt=function(){R0q||(R0q=new $sw);return R0q};var qbm=[];_.U8("yt.logging.transport.getScrapedGelPayloads",function(){return qbm});var u2=function(){var I=this;this.store={};this.totalEntries=0;this.memoizedKeySequences={};this.TEST_ONLY={getEntriesCount:function(){return I.totalEntries}}};
u2.prototype.storePayload=function(I,C){I=UcX(I);this.store[I]?this.store[I].push(C):(this.memoizedKeySequences={},this.store[I]=[C]);this.totalEntries++;_.V("more_accurate_gel_parser")&&(C=new CustomEvent("TRANSPORTING_NEW_EVENT"),window.dispatchEvent(C));return I};
u2.prototype.smartExtractMatchingEntries=function(I){if(!I.keys.length)return[];for(var C=b7q(this,I.keys.splice(0,1)[0]),y=[],k=0;k<C.length;k++)this.store[C[k]]&&I.sizeLimit&&(this.store[C[k]].length<=I.sizeLimit?(y.push.apply(y,_.Py(this.store[C[k]])),delete this.store[C[k]]):y.push.apply(y,_.Py(this.store[C[k]].splice(0,I.sizeLimit))));this.totalEntries-=y.length;(I==null?0:I.sizeLimit)&&y.length<(I==null?void 0:I.sizeLimit)&&(I.sizeLimit-=y.length,y.push.apply(y,_.Py(this.smartExtractMatchingEntries(I))));
return y};
u2.prototype.extractMatchingEntries=function(I){I=b7q(this,I);for(var C=[],y=0;y<I.length;y++)this.store[I[y]]&&(C.push.apply(C,_.Py(this.store[I[y]])),delete this.store[I[y]]);this.totalEntries-=C.length;return C};
u2.prototype.getSequenceCount=function(I){I=b7q(this,I);for(var C=0,y=0;y<I.length;y++){var k=void 0;C+=((k=this.store[I[y]])==null?void 0:k.length)||0}return C};
var b7q=function(I,C){var y=UcX(C);if(I.memoizedKeySequences[y])return I.memoizedKeySequences[y];var k=Object.keys(I.store)||[];if(k.length<=1&&UcX(C)===k[0])return k;for(var F=[],z=0;z<k.length;z++){var c=k[z].split("/");if(Yow(C.auth,c[0])){var r=C.isJspb;Yow(r===void 0?"undefined":r?"true":"false",c[1])&&Yow(C.cttAuthInfo,c[2])&&(r=C.tier,r=r===void 0?"undefined":JSON.stringify(r),Yow(r,c[3])&&F.push(k[z]))}}return I.memoizedKeySequences[y]=F},Yow=function(I,C){return I===void 0||I==="undefined"?
!0:I===C};
u2.prototype.getSequenceCount=u2.prototype.getSequenceCount;u2.prototype.extractMatchingEntries=u2.prototype.extractMatchingEntries;u2.prototype.smartExtractMatchingEntries=u2.prototype.smartExtractMatchingEntries;u2.prototype.storePayload=u2.prototype.storePayload;var VAY,QHO,jHX,cH,G2Y,HKX,UHm,pOz,DH9,uIO,NWO,dHW,nmO;VAY=_.s8("initial_gel_batch_timeout",2E3);QHO=_.s8("gel_queue_timeout_max_ms",6E4);jHX=_.s8("gel_min_batch_size",5);cH=void 0;G2Y=function(){this.lastDebounceQueueFromLogTimeMs=this.queueMaxTimer=this.queueTimer=0;this.useVideoStatsEndPoint=!1};
HKX=new G2Y;UHm=new G2Y;pOz=new G2Y;DH9=new G2Y;NWO=!0;dHW=1;_.Whs=new Map;nmO=_.sF.ytLoggingTransportTokensToCttTargetIds_||{};_.U8("ytLoggingTransportTokensToCttTargetIds_",nmO);var wOs=_.sF.ytLoggingTransportTokensToJspbCttTargetIds_||{};_.U8("ytLoggingTransportTokensToJspbCttTargetIds_",wOs);var TB={};var jN=_.sF.ytLoggingGelSequenceIdObj_||{};_.U8("ytLoggingGelSequenceIdObj_",jN);var aBY=[];var cEH=new Set,o$I=0,w9W=0,ivt=0,kpz=[],yEz=[],n$m=["PhantomJS","Googlebot","TO STOP THIS SECURITY SCAN go/scan"];var bvW=function(){};
bvW.prototype.getUrl=function(I,C){C=C===void 0?!1:C;return I.hasOwnProperty("shareEndpoint")?null:_.p9K(I,null,C)};
var H_I=function(I,C,y){I={endpoint:C,actions:[]};y=(y.path?y.path[0]:y.target).icon||"";C=y.indexOf(":");C>0&&(y=y.substr(C+1));y&&I.actions.push(y);return I};var X9I=/Command$/,l_s=/Endpoint$/,NYz=new Map;var f78,SoP;f78=1;_.qU=function(){this.actionRoutingMap=new Map};
_.qU.prototype.triggerAction=function(I){var C=new FXz(I,!1,_.wa.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.qU.prototype.triggerOptionalAction=function(I){var C=new FXz(I,!0,_.wa.apply(1,arguments));this.handleAction(C);return C.returnValue};
_.Gv=function(I,C,y){C.forEach(function(k){var F=jjK(k);F&&I.triggerOptionalAction(F,k,y,void 0)})};
_.qU.prototype.handleAction=function(I){var C=this.actionRoutingMap.get(I.actionName);C&&SoP(I,C);I.optionalAction||I.returnValue.length!==0||(I=new _.ph("Unhandled action",I.actionName),_.xS(I))};
SoP=function(I,C){C.forEach(function(y){var k=null;y?k=y.apply(null,I.args):(y=Error("gd"),y.params=I.actionName,_.v5(y));I.returnValue.push(k)})};
_.mU=function(I,C,y){y||(y=f78++);for(var k=_.T(Object.keys(C)),F=k.next();!F.done;F=k.next()){F=F.value;var z=I.actionRoutingMap.get(F);z||(z=new Map,I.actionRoutingMap.set(F,z));I.registerActionHandler(y,F,C[F],z)}return y};
_.qU.prototype.registerActionHandler=function(I,C,y,k){k.set(I,_.W5(y))};
_.Zi=function(I,C,y){C=_.T(Object.keys(C));for(var k=C.next();!k.done;k=C.next())(k=I.actionRoutingMap.get(k.value))&&k.delete(y)};
_.Ih(_.qU);var f_K=function(I,C){var y=_.qU.getInstance();_.RU(function(){var k={},F=_.mU(y,(k[I]=C,k));_.$4(function(){var z={};_.Zi(y,(z[I]="",z),F)})})};var g$Y=function(I,C){_.RU(function(){var y=I.value;y?(y.addEventListener("yt-service-request-sent",C,void 0),_.$4(function(){y?y.removeEventListener("yt-service-request-sent",C,void 0):v$O(I)})):v$O(I)})};ZwI=P29;var JEI=new Set(["For","If","Match","Watch"]),Koe={},And=(Koe[SX.default]=function(){return vVz},Koe.style=function(){return vVz},Koe),gd5;
for(gd5 in And)su.attributes[gd5]=And[gd5](su.attributes[gd5]);var Os=new _.Jj("VISIBILITY_OBSERVER");var F4I={retrieve:function(I){return this.id.\u0275prov.token===I.\u0275prov.token?this.contextValue:this?D$H(this,this.id):OB}};var vd0=function(I,C,y){if(I!==Us)return!1;I=BYz(document.createElement("div"),function(){var k=MT(!1);try{y[0]()}finally{MT(k)}});
I=Array.from(I.childNodes);I.length===1&&(I=I[0]);return I};var Woq=function(I){I=I.clone();cq8(I);DA(I,"dg",null);DA(I,"d","0");Fnm(I,null);u2m(I,null);DA(I,"ichc","0");return I},dsd=!0,xsq=function(I,C,y){var k=y===void 0?{}:y;
y=k.cssRowKey===void 0?void 0:k.cssRowKey;var F=k.combinedSignature===void 0?void 0:k.combinedSignature;var z=k.extraEdges===void 0?void 0:k.extraEdges;k=k.callback===void 0?void 0:k.callback;DA(I,"m",C.join(","));z&&T5d(I,z);y&&(DA(I,"ck",y),F?DA(I,"rs",F):dsd&&(dsd=!1));if(k){if(k!=null&&!iHc.test(k))throw Error("ab`"+k);DA(I,"cb",k)}I=I.toString();_.FO(I,"/")&&(I=i8e(document.location.href)+I);return _.Ca(I)};var msm=function(I){return qou(I).then(function(C){return JSON.parse(C.responseText)})},qou=function(I){var C={},y=C.xmlHttpFactory?C.xmlHttpFactory.createInstance():Yjm.createInstance();
return(new _.eN(function(k,F){var z;try{y.open("GET",I,!0)}catch(w){F(new fy("Error opening XHR: "+w.message,I,y))}y.onreadystatechange=function(){if(y.readyState==4){_.sF.clearTimeout(z);var w;!(w=b10(y.status))&&(w=y.status===0)&&(w=rPq(I),w=!(w=="http"||w=="https"||w==""));w?k(y):F(new Z7e(y.status,I,y))}};
y.onerror=function(){F(new fy("Network error",I,y))};
if(C.headers)for(var c in C.headers){var r=C.headers[c];r!=null&&y.setRequestHeader(c,r)}C.withCredentials&&(y.withCredentials=C.withCredentials);C.responseType&&(y.responseType=C.responseType);C.mimeType&&y.overrideMimeType(C.mimeType);C.timeoutMs>0&&(z=_.sF.setTimeout(function(){y.onreadystatechange=function(){};
y.abort();F(new BX5(I,y))},C.timeoutMs));
try{y.send(null)}catch(w){y.onreadystatechange=function(){},_.sF.clearTimeout(z),F(new fy("Error sending XHR: "+w.message,I,y))}})).thenCatch(function(k){k instanceof _.qJ&&y.abort();
throw k;})},fy=function(I,C,y){_.Im.call(this,I+", url="+C);
this.url=C;this.xhr=y};
_.s0(fy,_.Im);fy.prototype.name="XhrError";var Z7e=function(I,C,y){fy.call(this,"Request Failed, status="+I,C,y);this.status=I};
_.s0(Z7e,fy);Z7e.prototype.name="XhrHttpError";var BX5=function(I,C){fy.call(this,"Request timed out",I,C)};
_.s0(BX5,fy);BX5.prototype.name="XhrTimeoutError";Md=Md||{};var SE=function(){_.LL.call(this)};
_.s0(SE,_.LL);SE.prototype.initialize=function(){};var Edc=function(I,C){this.fn_=I;this.handler_=C};
Edc.prototype.execute=function(I){this.fn_&&(this.fn_.call(this.handler_||null,I),this.fn_=this.handler_=null)};
Edc.prototype.abort=function(){this.handler_=this.fn_=null};var Ky=function(I,C){_.LL.call(this);this.deps_=I;this.JSC$8816_id_=C;this.onloadCallbacks_=[];this.JSC$8816_onErrorCallbacks_=[];this.earlyOnloadCallbacks_=[]};
_.s0(Ky,_.LL);Ky.prototype.moduleConstructor_=SE;Ky.prototype.module_=null;Ky.prototype.getId=function(){return this.JSC$8816_id_};
Ky.prototype.registerCallback=function(I,C){return h0m(this.onloadCallbacks_,I,C)};
var UsP=function(I,C){h0m(I.JSC$8816_onErrorCallbacks_,C)},h0m=function(I,C,y){C=new Edc(C,y);
I.push(C);return C};
Ky.prototype.isLoaded=function(){return!!this.module_};
Ky.prototype.onLoad=function(I){var C=new this.moduleConstructor_;C.initialize(I());this.module_=C;C=(C=!!H7d(this.earlyOnloadCallbacks_,I()))||!!H7d(this.onloadCallbacks_,I());C||(this.JSC$8816_onErrorCallbacks_.length=0);return C};
Ky.prototype.onError=function(I){(I=H7d(this.JSC$8816_onErrorCallbacks_,I))&&om(Error("md`"+I));this.earlyOnloadCallbacks_.length=0;this.onloadCallbacks_.length=0};
var H7d=function(I,C){for(var y=[],k=0;k<I.length;k++)try{I[k].execute(C)}catch(F){om(F),y.push(F)}I.length=0;return y.length?y:null};
Ky.prototype.disposeInternal=function(){Ky.superClass_.disposeInternal.call(this);_.Bi(this.module_)};var tsb,CG0,Msw,ICq,O7Y,a75,Frb,y$d,k5m;
_.gr=function(I,C,y,k,F){k=k===void 0?!1:k;F=F===void 0?!1:F;var z=z===void 0?!0:z;this.scsReferenceUrl_=C$(_.sC(I).toString(),z);this.cssRowKey_=C;this.combinedSignature_=y;this.useNegativeLoading_=k;this.requestedModuleMap_={};this.JSC$8819_moduleInfoMap_={};this.requestedModuleList_=[];this.requestedModuleListSorted_=!0;this.loadedCssModuleList_=(I=Lb(this.scsReferenceUrl_,"excm"))?I.split(","):[];this.shouldScanForCss_=F;this.useCors_=!1;this.corsMode_="anonymous";this.urlMaxLength=4043;this.insertPos=
document.head||document.documentElement;this.pendingModuleGraphUpdate_=this.lastScript_=null;this.supportsExtraEdges=!0;gSF();this.logger=null;_.Ae(this,z8u(this.scsReferenceUrl_));this.fetchPriority=void 0;this.enableFallbackFetch=!1;this.maybeSetAdditionalFields()};
tsb=function(I,C){if(C.href||C.getAttribute("data-href"))if(C=C.href||C.getAttribute("data-href"),fxO(C)&&!C$(C).urlPrefix_.endsWith("_/js/")){C=z8u(C$(C));C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,I.loadedCssModuleList_.includes(y)||I.loadedCssModuleList_.push(y)}};
_.gr.prototype.JSC$8821_loadModules=function(I,C,y){var k=y===void 0?{}:y;y=k.extraEdges;var F=k.onError;var z=k.onSuccess;k=k.forceReload;this.JSC$8819_moduleInfoMap_=C;if(!I)throw Error("nd");if(this.shouldScanForCss_){C=_.T(document.getElementsByTagName("style"));for(var c=C.next();!c.done;c=C.next())tsb(this,c.value);C=_.T(document.getElementsByTagName("link"));for(c=C.next();!c.done;c=C.next())tsb(this,c.value)}JnP(this,O7Y(this,I),y,F,z,k)};
var JnP=function(I,C,y,k,F,z){k=k===void 0?function(){}:k;
F=F===void 0?function(){}:F;
z=z===void 0?!1:z;a75(I,C,function(c,r,w){w=w===void 0?r:w;I.enableFallbackFetch&&z?I.loadWithFetch(c,r,k,F,w):I.load(c,r,k,F,w,y)},y)||k(-1)};
_.gr.prototype.loadWithFetch=function(){_.e(function(){throw Error("od");})};
_.gr.prototype.maybeSetAdditionalFields=function(){};
CG0=function(I,C,y){if(I.useNegativeLoading_){var k=I.scsReferenceUrl_;I={cssRowKey:I.cssRowKey_,combinedSignature:I.combinedSignature_,extraEdges:y,requestedModuleIds:Msw(I),requestedCssModuleIds:ICq(I)};var F=I===void 0?{}:I;I=F.requestedModuleIds===void 0?[]:F.requestedModuleIds;y=F.requestedCssModuleIds===void 0?[]:F.requestedCssModuleIds;var z=F.cssRowKey===void 0?void 0:F.cssRowKey;var c=F.combinedSignature===void 0?void 0:F.combinedSignature;var r=F.extraEdges===void 0?void 0:F.extraEdges;
F=F.callback===void 0?void 0:F.callback;k=Woq(k);DA(k,"d","1");Fnm(k,I);u2m(k,y);C=xsq(k,C,{cssRowKey:z,combinedSignature:c,extraEdges:r,callback:F})}else k=I.scsReferenceUrl_,I={cssRowKey:I.cssRowKey_,combinedSignature:I.combinedSignature_,requestedModuleIds:Msw(I),requestedCssModuleIds:ICq(I)},r=I===void 0?{}:I,I=r.requestedCssModuleIds===void 0?[]:r.requestedCssModuleIds,y=r.cssRowKey===void 0?void 0:r.cssRowKey,z=r.combinedSignature===void 0?void 0:r.combinedSignature,c=r.extraEdges===void 0?
void 0:r.extraEdges,r=r.callback===void 0?void 0:r.callback,k=Woq(k),u2m(k,I),C=xsq(k,C,{cssRowKey:y,combinedSignature:z,extraEdges:c,callback:r});return C};
_.Ae=function(I,C){for(var y=!1,k=[],F=0;F<C.length;++F){var z=C[F];I.requestedModuleMap_[z]||(I.requestedModuleMap_[z]=!0,I.requestedModuleList_.push(z),y=!0,k.push(z))}y&&(I.requestedModuleListSorted_=!1)};
_.vK=function(I,C){for(var y=[],k=0;k<C.length;++k){var F=C[k];I.requestedModuleMap_[F]&&(delete I.requestedModuleMap_[F],_.Hs(I.requestedModuleList_,F),y.push(F))}};
_.gr.prototype.load=function(I,C,y,k,F){F=F===void 0?C:F;_.sC(I);var z=this.useCors_,c=this.corsMode_,r=this.fetchPriority,w=_.c2("SCRIPT");_.fa(w,I);z&&(w.crossOrigin=c);w.async=!1;r&&w.setAttribute("fetchpriority",r);_.Ae(this,C);_.sCq(this,I,w,C,y,k,F)};
_.sCq=function(I,C,y,k,F,z,c){c=c===void 0?k:c;I.lastScript_=y;I.insertPos.insertBefore(y,I.insertPos.firstChild);_.oBS(y,k,function(){y.parentElement.removeChild(y);I.lastScript_==y&&(I.lastScript_=null);var r=new Set;k.map(function(L){return r.add(L)});
for(var w in I.JSC$8819_moduleInfoMap_)I.JSC$8819_moduleInfoMap_[w].isLoaded()&&r.add(w);Array.from(r);z()},function(r){y.parentElement.removeChild(y);
I.lastScript_==y&&(I.lastScript_=null);_.vK(I,r);I.pendingModuleGraphUpdate_?I.pendingModuleGraphUpdate_.then(function(){F(-1,C)}):F(-1,C)},c)};
_.oBS=function(I,C,y,k,F){F=F===void 0?C:F;var z=C.length,c=function(){z=0;I.onload=null;I.onerror=null;r=function(){}},r=function(){c();
var L=F.filter(function(D){return!XB().getModuleInfo(D).isLoaded()});
L.length!==0?k(L,"Response was successful but was missing module(s) "+L+"."):y()},w=function(){z--;
z==0&&r()};
C.forEach(function(L){L=XB().getModuleInfo(L);L.isLoaded()?w():(h0m(L.earlyOnloadCallbacks_,w),UsP(L,w))});
I.onload=function(){return r()};
I.onerror=function(){c();k(C)}};
Msw=function(I){I.requestedModuleListSorted_||(I.requestedModuleListSorted_=!0,I.requestedModuleList_.sort());return I.requestedModuleList_};
ICq=function(I){I=I.loadedCssModuleList_;I.sort();return I};
O7Y=function(I,C){return C.filter(function(y){return!I.requestedModuleMap_[y]})};
a75=function(I,C,y,k){if(I.pendingModuleGraphUpdate_)return I.pendingModuleGraphUpdate_.then(function(){a75(I,C,y,k)}),!0;
if(!I.useNegativeLoading_){var F=[],z=Object.assign({},I.requestedModuleMap_);y$d(I,C,function(D){F.push(D.getId())},k,function(D){return!D.isLoaded()},z);
C=F}for(z=0;z<C.length;){for(var c=C.length-z,r=z==0?C:C.slice(z,C.length),w=CG0(I,r,k),L=_.sC(w).toString();L.length>I.urlMaxLength;)if(c>1)c-=Math.ceil((L.length-I.urlMaxLength)/6),c=Math.max(c,1),r=C.slice(z,z+c),w=CG0(I,r,k),L=_.sC(w).toString();else return I.useNegativeLoading_?(I.useNegativeLoading_=!1,I.pendingModuleGraphUpdate_=k5m(I).then(function(D){Frb(I,D,k)}),a75(I,C.slice(z),y,k)):!1;
z+=c;I.useNegativeLoading_?y(w,r):y(w,r,z===C.length?C:[])}return!0};
Frb=function(I,C,y){XB().setAllModuleInfoString((C||{}).moduleGraph);y$d(I,Msw(I),function(k){_.Ae(I,[k.getId()])},y);
I.pendingModuleGraphUpdate_=null};
y$d=function(I,C,y,k,F,z){z=z===void 0?{}:z;var c=XB();C=_.T(C);for(var r=C.next();!r.done;r=C.next()){r=r.value;var w=c.getModuleInfo(r);if(!(z[r]||F&&!F(w))){z[r]=!0;var L=w.deps_||[];if(k){var D=[];k[r]&&(D=Object.keys(k[r]));L=L.concat(D)}y$d(I,L,y,k,F,z);y(w)}}};
k5m=function(I){I=I.scsReferenceUrl_.clone();cq8(I);DA(I,"dg",null);DA(I,"md","1");return msm(I.toString())};var ThX=new Uint8Array(123);var udm=[];var zyY=function(){this.JSC$7927_loader_=null};
_.u=zyY.prototype;_.u.setBatchModeEnabled=function(){};
_.u.setAllModuleInfoString=function(){};
_.u.addExtraEdge=function(){throw Error("pd");};
_.u.removeExtraEdge=function(){throw Error("qd");};
_.u.getModuleContext=function(){return null};
_.u.isActive=function(){return!1};
_.u.isUserActive=function(){return!1};
_.u.registerCallback=function(){};var WK=function(I,C,y,k){this.type=I;this.status=C;this.requestedModuleIds=y;this.url=k};
WK.prototype.toString=function(){return T8q(this)+" ("+(this.status!=void 0?this.status:"?")+")"};
var T8q=function(I){switch(I.type){case WK.JSC$8831_Type.UNAUTHORIZED:return"Unauthorized";case WK.JSC$8831_Type.CONSECUTIVE_FAILURES:return"Consecutive load failures";case WK.JSC$8831_Type.TIMEOUT:return"Timed out";case WK.JSC$8831_Type.OLD_CODE_GONE:return"Out of date module id";case WK.JSC$8831_Type.INIT_ERROR:return"Init error";default:return"Unknown failure type "+I.type}};
Md.ModuleLoadFailure=WK;Md.ModuleLoadFailure.JSC$8831_Type={UNAUTHORIZED:0,CONSECUTIVE_FAILURES:1,TIMEOUT:2,OLD_CODE_GONE:3,INIT_ERROR:4};var dr=function(){this.moduleIds_=this.JSC$7927_loader_=null;this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.requestedModuleIds_=[];this.requestedModuleIdsQueue_=[];this.userInitiatedLoadingModuleIds_=[];this.JSC$8834_extraEdges_={};this.JSC$8834_callbackMap_={};this.JSC$8834_currentlyLoadingModule_=this.baseModuleInfo_=new Ky([],"");this.lastInitialModuleId_=null;this.initialModulesLoaded_=new mu;this.batchModeEnabled_=!1;this.consecutiveFailures_=0;this.isDisposed_=
this.userLastActive_=this.lastActive_=!1};
_.s0(dr,zyY);var c$5=function(I,C){_.Im.call(this,"Error loading "+I+": "+C)};
_.s0(c$5,_.Im);dr.prototype.setBatchModeEnabled=function(I){this.batchModeEnabled_=I};
dr.prototype.setAllModuleInfoString=function(I,C){if(!(this instanceof dr))this.setAllModuleInfoString(I,C);else if(typeof I==="string"){if(I.startsWith("d$")){I=I.substring(2);for(var y=[],k=0,F=I.indexOf("/"),z=0,c=!1,r=0;;){var w=c?I.substring(z):I.substring(z,F);if(w.length===0)k++,z="sy"+k.toString(36),w=[];else{var L=w.indexOf(":");if(L<0)z=w,w=[];else if(L===w.length-1)z=w.substring(0,L),w=Array(y[r-1]);else{z=w.substring(0,L);w=w.substring(L+1).split(",");L=r;for(var D=0;D<w.length;D++)L-=
w[D].length===0?1:Number(w[D]),w[D]=y[L]}L=0;if(z.length===0)L=1;else if(z.charAt(0)==="+"||z.charAt(0)==="-")L=Number(z);L!==0&&(k+=L,z="sy"+k.toString(36))}y.push(z);eyd(this,z,w);if(c)break;z=F+1;F=I.indexOf("/",z);F===-1&&(c=!0);r++}this.moduleIds_=y}else if(I.startsWith("p$"))r$8(this,I);else{I=I.split("/");y=[];for(k=0;k<I.length;k++){r=I[k].split(":");F=r[0];c=[];if(r[1])for(c=r[1].split(","),r=0;r<c.length;r++)c[r]=y[parseInt(c[r],36)];y.push(F);eyd(this,F,c)}this.moduleIds_=y}C&&C.length?
(_.C5(this.loadingModuleIds_,C),this.lastInitialModuleId_=_.K9(C)):this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback();Object.freeze(this.moduleIds_);this.JSC$8834_currentlyLoadingModule_==this.baseModuleInfo_&&(this.JSC$8834_currentlyLoadingModule_=null,this.baseModuleInfo_.onLoad((0,_.DD)(this.getModuleContext,this))&&iq5(this,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.INIT_ERROR)),xY(this))}};
var r$8=function(I,C){var y=C.substring(2);for(C=0;C<64;C++)ThX["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charCodeAt(C)]=C;var k={buf:y,pos:0};IR(k);var F=IR(k),z=IR(k)+1;C=Array(F);var c=Array(F),r=Array(F);z=Array(z);var w=0,L=0,D=k.pos,p=k.buf.indexOf("|",k.pos);k.pos=p+1;for(p=0;p<F;p++){var Q=IR(k),X=Q&2,b=Q&1;Q>>>=2;b?(w+=Q>>>1^-(Q&1),Q="sy"+w.toString(36)):(b=D,D+=Q,Q=y.substring(b,D));C[p]=Q;X&&(z[L++]=Q)}z[L]="";k.pos++;L=F&-2;y=F&1;for(w=0;w<L;w+=2)D=cUI(k),r[w]=
D&7,r[w+1]=D>>>3&7;y&&(y=cUI(k),r[L]=y&7);k.pos++;for(L=0;L<F;L++)r[L]===7&&(r[L]=IR(k));k.pos++;for(y=L=0;y<F;y++){w=r[y];D=w===0?udm:Array(w);c[y]=D;p=L;for(X=0;X<w;X++)p-=IR(k),D[X]=z[p];z[L]===C[y]&&L++}for(k=0;k<C.length;k++)eyd(I,C[k],c[k]);I.moduleIds_=C};
_.u=dr.prototype;_.u.getModuleInfo=function(I){return this.moduleInfoMap[I]};
_.u.addExtraEdge=function(I,C){var y=this.getModuleInfo(I);y&&y.isLoaded()?this.load(C):(this.JSC$8834_extraEdges_[I]||(this.JSC$8834_extraEdges_[I]={}),this.JSC$8834_extraEdges_[I][C]=!0)};
_.u.removeExtraEdge=function(I,C){if(this.JSC$8834_extraEdges_[I]){delete this.JSC$8834_extraEdges_[I][C];for(var y in this.JSC$8834_extraEdges_[I])return;delete this.JSC$8834_extraEdges_[I]}};
_.u.isActive=function(){return this.loadingModuleIds_.length>0};
_.u.isUserActive=function(){return this.userInitiatedLoadingModuleIds_.length>0};
var xY=function(I){var C=I.lastActive_,y=I.isActive();y!=C&&(I.executeCallbacks_(y?"active":"idle"),I.lastActive_=y);C=I.isUserActive();C!=I.userLastActive_&&(I.executeCallbacks_(C?"userActive":"userIdle"),I.userLastActive_=C)},eyd=function(I,C,y){I.moduleInfoMap[C]?(I=I.moduleInfoMap[C].deps_,I!=y&&I.splice.apply(I,[0,
I.length].concat(_.Py(y)))):I.moduleInfoMap[C]=new Ky(y,C)},nBw=function(I,C,y){var k=[];
yd(C,k);C=[];for(var F={},z=0;z<k.length;z++){var c=k[z],r=I.getModuleInfo(c);if(!r)throw Error("rd`"+c);var w=new mu;F[c]=w;r.isLoaded()?w.callback(null):(w$0(I,c,r,!!y,w),I.isModuleLoading(c)||C.push(c))}C.length>0&&(I.loadingModuleIds_.length===0?I.loadModules_(C):(I.requestedModuleIdsQueue_.push(C),xY(I)));return F},w$0=function(I,C,y,k,F){y.registerCallback(F.callback,F);
UsP(y,function(z){F.errback(new c$5(C,z))});
I.isModuleLoading(C)?k&&(PG8(I,C),xY(I)):k&&PG8(I,C)};
dr.prototype.loadModules_=function(I,C,y){var k=this;C||(this.consecutiveFailures_=0);var F=LrY(this,I);this.loadingModuleIds_=F;this.requestedLoadingModuleIds_=this.batchModeEnabled_?I:_.tX(F);xY(this);if(F.length!==0){this.requestedModuleIds_.push.apply(this.requestedModuleIds_,F);if(Object.keys(this.JSC$8834_extraEdges_).length>0&&!this.JSC$7927_loader_.supportsExtraEdges)throw Error("sd");I=(0,_.DD)(this.JSC$7927_loader_.JSC$8821_loadModules,this.JSC$7927_loader_,_.tX(F),this.moduleInfoMap,{extraEdges:this.JSC$8834_extraEdges_,
forceReload:!!y,onError:function(z,c){var r=k.requestedLoadingModuleIds_;z=z!=null?z:void 0;k.consecutiveFailures_++;var w=_.tX(F);k.requestedLoadingModuleIds_=r;F.forEach(_.D0(_.Hs,k.requestedModuleIds_),k);z==401?(iq5(k,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.UNAUTHORIZED,z)),k.requestedModuleIdsQueue_.length=0):z==410?(DJw(k,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.OLD_CODE_GONE,z)),p$e(k)):k.consecutiveFailures_>=3?(DJw(k,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.CONSECUTIVE_FAILURES,
z,w,c)),p$e(k)):k.loadModules_(k.requestedLoadingModuleIds_,!0,z==8001||!1)},
onTimeout:(0,_.DD)(this.handleLoadTimeout_,this)});(C=Math.pow(this.consecutiveFailures_,2)*5E3)?_.sF.setTimeout(I,C):I()}};
var LrY=function(I,C){C=C.filter(function(F){return I.moduleInfoMap[F].isLoaded()?(_.sF.setTimeout(function(){return Error("td`"+F)},0),!1):!0});
for(var y=[],k=0;k<C.length;k++)y=y.concat(QCq(I,C[k]));yd(y);return!I.batchModeEnabled_&&y.length>1?(C=y.shift(),I.requestedModuleIdsQueue_=y.map(function(F){return[F]}).concat(I.requestedModuleIdsQueue_),[C]):y},QCq=function(I,C){var y=_.Le.createSet(I.requestedModuleIds_),k=[];
y[C]||k.push(C);C=[C];for(var F=0;F<C.length;F++)for(var z=I.getModuleInfo(C[F]).deps_,c=z.length-1;c>=0;c--){var r=z[c];I.getModuleInfo(r).isLoaded()||y[r]||(k.push(r),C.push(r))}k.reverse();yd(k);return k};
dr.prototype.JSC$8829_setLoaded=function(){if(this.JSC$8834_currentlyLoadingModule_){var I=this.JSC$8834_currentlyLoadingModule_.getId(),C=[];if(this.JSC$8834_extraEdges_[I]){for(var y=_.T(Object.keys(this.JSC$8834_extraEdges_[I])),k=y.next();!k.done;k=y.next()){k=k.value;var F=this.getModuleInfo(k);F&&!F.isLoaded()&&(this.removeExtraEdge(I,k),C.push(k))}this.loadMultiple(C)}this.isDisposed()||(this.moduleInfoMap[I].onLoad((0,_.DD)(this.getModuleContext,this))&&iq5(this,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.INIT_ERROR)),
_.Hs(this.userInitiatedLoadingModuleIds_,I),_.Hs(this.loadingModuleIds_,I),this.loadingModuleIds_.length===0&&p$e(this),this.lastInitialModuleId_&&I==this.lastInitialModuleId_&&(this.initialModulesLoaded_.fired_||this.initialModulesLoaded_.callback()),xY(this),this.JSC$8834_currentlyLoadingModule_=null)}};
dr.prototype.isModuleLoading=function(I){if(_.qz(this.loadingModuleIds_,I))return!0;for(var C=0;C<this.requestedModuleIdsQueue_.length;C++)if(_.qz(this.requestedModuleIdsQueue_[C],I))return!0;return!1};
dr.prototype.load=function(I,C){return nBw(this,[I],C)[I]};
dr.prototype.loadMultiple=function(I){return nBw(this,I)};
var PG8=function(I,C){_.qz(I.userInitiatedLoadingModuleIds_,C)||I.userInitiatedLoadingModuleIds_.push(C)};
dr.prototype.beforeLoadModuleCode=function(I){var C=this;this.JSC$8834_currentlyLoadingModule_&&this.JSC$8834_currentlyLoadingModule_.getId()==="synthetic_module_overhead"&&(this.JSC$8829_setLoaded(),delete this.moduleInfoMap.synthetic_module_overhead);this.moduleInfoMap[I]&&N8m(this,this.moduleInfoMap[I].deps_||[],function(y){y.module_=new SE;_.Hs(C.loadingModuleIds_,y.getId())},function(y){return!y.isLoaded()});
this.JSC$8834_currentlyLoadingModule_=this.getModuleInfo(I)};
dr.prototype.handleLoadTimeout_=function(){DJw(this,new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.TIMEOUT));p$e(this)};
var DJw=function(I,C){I.requestedLoadingModuleIds_.length>1?I.requestedModuleIdsQueue_=I.requestedLoadingModuleIds_.map(function(y){return[y]}).concat(I.requestedModuleIdsQueue_):iq5(I,C)},iq5=function(I,C){var y=I.requestedLoadingModuleIds_;
I.loadingModuleIds_.length=0;for(var k=[],F=0;F<I.requestedModuleIdsQueue_.length;F++){var z=I.requestedModuleIdsQueue_[F].filter(function(w){var L=QCq(this,w);return hz(y,function(D){return _.qz(L,D)})},I);
_.C5(k,z)}for(F=0;F<y.length;F++)_.Dzt(k,y[F]);for(F=0;F<k.length;F++){for(z=0;z<I.requestedModuleIdsQueue_.length;z++)_.Hs(I.requestedModuleIdsQueue_[z],k[F]);_.Hs(I.userInitiatedLoadingModuleIds_,k[F])}if(F=I.JSC$8834_callbackMap_.error)for(z=0;z<F.length;z++)for(var c=F[z],r=0;r<k.length;r++)c("error",k[r],C);for(k=0;k<y.length;k++)if(I.moduleInfoMap[y[k]])I.moduleInfoMap[y[k]].onError(C);I.requestedLoadingModuleIds_.length=0;xY(I)},p$e=function(I){for(;I.requestedModuleIdsQueue_.length;){var C=
I.requestedModuleIdsQueue_.shift().filter(function(y){return!this.getModuleInfo(y).isLoaded()},I);
if(C.length>0){I.loadModules_(C);return}}xY(I)};
dr.prototype.registerCallback=function(I,C){Array.isArray(I)||(I=[I]);for(var y=0;y<I.length;y++){var k=I[y],F=C,z=this.JSC$8834_callbackMap_;z[k]||(z[k]=[]);z[k].push(F)}};
dr.prototype.executeCallbacks_=function(I){for(var C=this.JSC$8834_callbackMap_[I],y=0;C&&y<C.length;y++)C[y](I)};
var N8m=function(I,C,y,k,F){k=k===void 0?function(){return!0}:k;
F=F===void 0?{}:F;C=_.T(C);for(var z=C.next();!z.done;z=C.next()){z=z.value;var c=I.getModuleInfo(z);!F[z]&&k(c)&&(F[z]=!0,N8m(I,c.deps_||[],y,k,F),y(c))}};
dr.prototype.dispose=function(){_.E1(_.Le.getValues(this.moduleInfoMap),this.baseModuleInfo_);this.moduleInfoMap={};this.loadingModuleIds_=[];this.requestedLoadingModuleIds_=[];this.userInitiatedLoadingModuleIds_=[];this.requestedModuleIdsQueue_=[];this.JSC$8834_callbackMap_={};this.isDisposed_=!0};
dr.prototype.isDisposed=function(){return this.isDisposed_};
_.lA=function(){return new dr};var Vi0=[5E3,2E4],jCq=function(){this.JSC$7927_loader_=null;this.JSC$8842_moduleInfoMap_=Object.create(null);this.loadingModules_=Object.create(null);this.activeLoads_=0;this.JSC$8842_queue_=[];this.JSC$8842_extraEdges_=Object.create(null);this.JSC$8842_currentlyLoadingModule_=this.getModuleInfo("{base}")};
_.R(jCq,zyY);_.u=jCq.prototype;_.u.setAllModuleInfoString=function(){this.JSC$8842_currentlyLoadingModule_&&this.JSC$8842_currentlyLoadingModule_.getId()=="{base}"&&this.JSC$8829_setLoaded()};
_.u.getModuleInfo=function(I){var C=this.JSC$8842_moduleInfoMap_[I];C||(C=new Ky([],I),this.JSC$8842_moduleInfoMap_[I]=C);return C};
_.u.addExtraEdge=function(I,C){this.getModuleInfo(I).isLoaded()?this.load(C):(this.JSC$8842_extraEdges_[I]||(this.JSC$8842_extraEdges_[I]={}),this.JSC$8842_extraEdges_[I][C]=!0)};
_.u.removeExtraEdge=function(I,C){if(this.JSC$8842_extraEdges_[I]){delete this.JSC$8842_extraEdges_[I][C];for(var y in this.JSC$8842_extraEdges_[I])return;delete this.JSC$8842_extraEdges_[I]}};
_.u.isModuleLoading=function(I){return!!this.loadingModules_[I]};
_.u.load=function(I){lCe(this,[I]);return X$u(this,I)};
_.u.loadMultiple=function(I){var C=this,y=Object.create(null),k=[];I.forEach(function(F){y[F]||(y[F]=X$u(C,F),k.push(F))});
lCe(this,k);return y};
_.u.beforeLoadModuleCode=function(I){var C;((C=this.JSC$8842_currentlyLoadingModule_)==null?void 0:C.getId())==="synthetic_module_overhead"&&this.JSC$8829_setLoaded();var y,k;$Jc(this,(k=(y=this.JSC$8842_moduleInfoMap_[I])==null?void 0:y.deps_)!=null?k:[],function(F){F.module_=new SE},function(F){return!F.isLoaded()});
this.JSC$8842_currentlyLoadingModule_=this.getModuleInfo(I)};
_.u.JSC$8829_setLoaded=function(){if(this.JSC$8842_currentlyLoadingModule_){var I=this.JSC$8842_currentlyLoadingModule_.getId(),C=[];if(this.JSC$8842_extraEdges_[I]){for(var y=_.T(Object.keys(this.JSC$8842_extraEdges_[I])),k=y.next();!k.done;k=y.next())k=k.value,this.getModuleInfo(k).isLoaded()||(this.removeExtraEdge(I,k),C.push(k));this.loadMultiple(C)}this.JSC$8842_currentlyLoadingModule_.onLoad(function(){return null});
this.JSC$8842_currentlyLoadingModule_=null;(!this.isModuleLoading(I)&&/^sy[0-9a-z]{0,4}$/.test(I)||I==="synthetic_module_overhead")&&delete this.JSC$8842_moduleInfoMap_[I];this.unsetModulesAsLoading(I)}};
_.u.setModulesAsLoading=function(){var I=this;_.wa.apply(0,arguments).forEach(function(C){I.loadingModules_[C]=!0})};
_.u.unsetModulesAsLoading=function(){var I=this;_.wa.apply(0,arguments).forEach(function(C){delete I.loadingModules_[C]})};
var X$u=function(I,C){return new _.eN(function(y,k){var F=I.getModuleInfo(C);F.isLoaded()?y(null):(F.registerCallback(function(){y(null)}),UsP(F,function(z){var c="Error loading "+C+": "+z;
z instanceof Md.ModuleLoadFailure&&z.url&&(c=c+", requested url: "+z.url.toString());k(Error(c))}))})},lCe=function(I,C){C=C.filter(function(y){return!I.isModuleLoading(y)&&!I.getModuleInfo(y).isLoaded()});
C.length>0&&(I.setModulesAsLoading.apply(I,_.Py(C)),I.JSC$8842_queue_.push(C),Ryc(I))},Ryc=function(I){for(var C={};I.activeLoads_<Infinity&&I.JSC$8842_queue_.length>0;C={finishLoad:void 0,
ids$jscomp$36:void 0,attempt$jscomp$6:void 0,load$jscomp$1:void 0})C.ids$jscomp$36=I.JSC$8842_queue_.shift().filter(function(y){return!I.getModuleInfo(y).isLoaded()}),C.ids$jscomp$36.length>0&&(I.activeLoads_++,C.finishLoad=function(y){return function(){I.activeLoads_--;
Ryc(I);y.finishLoad=function(){}}}(C),_.QZ(C.ids$jscomp$36.map(function(y){return X$u(I,y)})).then(function(y){return function(){(0,y.finishLoad)()}}(C)),C.attempt$jscomp$6=0,C.load$jscomp$1=function(y){return function(){if(Object.keys(I.JSC$8842_extraEdges_).length>0&&!I.JSC$7927_loader_.supportsExtraEdges)throw Error("sd");
I.JSC$7927_loader_.JSC$8821_loadModules(y.ids$jscomp$36,I.JSC$8842_moduleInfoMap_,{extraEdges:I.JSC$8842_extraEdges_,onError:function(k,F){var z=Vi0[y.attempt$jscomp$6++];z!==void 0?setTimeout(function(){(0,y.load$jscomp$1)()},z):(I.unsetModulesAsLoading.apply(I,_.Py(y.ids$jscomp$36)),(0,y.finishLoad)(),y.ids$jscomp$36.forEach(function(c){c=I.getModuleInfo(c);
if(!c.isLoaded())c.onError(new Md.ModuleLoadFailure(Md.ModuleLoadFailure.JSC$8831_Type.CONSECUTIVE_FAILURES,k,y.ids$jscomp$36,F))}))}})}}(C),(0,C.load$jscomp$1)())},$Jc=function(I,C,y,k,F){k=k===void 0?function(){return!0}:k;
F=F===void 0?{}:F;C=_.T(C);for(var z=C.next();!z.done;z=C.next()){z=z.value;var c=I.getModuleInfo(z);!F[z]&&k(c)&&(F[z]=!0,$Jc(I,c.deps_||[],y,k,F),y(c))}};var bqe=!/^\s*class\s*\{\s*\}\s*$/.test(function(){}.toString());var rUK=Symbol("vd");window.JSCompiler_renameProperty=function(I){return I};/*

 Copyright 2016 Google LLC
 SPDX-License-Identifier: BSD-3-Clause
*/
var Yhq=!bqe||HTMLElement.es5Shimmed||_.sF.Reflect===void 0||_.sF.customElements===void 0||_.sF.customElements.polyfillWrapFlushCallback||!1,G5q,a$z=function(){var I=HTMLElement;if(Yhq)return I;if(G5q!==void 0)return G5q;var C=_.sF.Reflect,y=function(){return C.construct(I,[],this.constructor)};
y.prototype=I.prototype;y.prototype.constructor=y;y.es5Shimmed=!0;Object.setPrototypeOf(y,I);return G5q=y},fCw=!1;Yhq||fCw||(fCw=!0,_.sF.HTMLElement=a$z());/*

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 L4s=/(url\()([^)]*)(\))/g,nsI=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Pkm,C7;var An=!window.ShadyDOM||!window.ShadyDOM.inUse,She=!(window.ShadyCSS&&!window.ShadyCSS.nativeCss),Kr0=!window.customElements.polyfillWrapFlushCallback,A$q;if(A$q=An&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype)try{var gBS=new CSSStyleSheet;gBS.replaceSync("");var vBu=document.createElement("div");vBu.attachShadow({mode:"open"});vBu.shadowRoot.adoptedStyleSheets=[gBS];A$q=vBu.shadowRoot.adoptedStyleSheets[0]===gBS}catch(I){A$q=!1}
var Wrq=A$q,dJe=window.Polymer&&window.Polymer.rootPath||pPW(document.baseURI||window.location.href),L7=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,bMH=window.Polymer&&window.Polymer.setPassiveTouchGestures||!1,dX=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,xJ0=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,K7=window.Polymer&&window.Polymer.legacyOptimizations||!1,W1=window.Polymer&&window.Polymer.legacyWarnings||!1,qhP=window.Polymer&&window.Polymer.syncInitialRender||
!1,p7=window.Polymer&&window.Polymer.legacyUndefined||!1,mJ0=window.Polymer&&window.Polymer.orderedComputed||!1,qC=window.Polymer&&window.Polymer.removeNestedTemplates||!1,mI=window.Polymer&&window.Polymer.fastDomIf||!1,Z9=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,ZqP=window.Polymer&&window.Polymer.legacyNoObservedAttributes||!1,B8q=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;var BK={},EBw={},Ns=function(){return HTMLElement.apply(this,arguments)||this};
_.R(Ns,HTMLElement);Ns.import=function(I,C){return I?(I=BK[I]||EBw[I.toLowerCase()])&&C?I.querySelector(C):I:null};
Ns.prototype.attributeChangedCallback=function(I,C,y){C!==y&&this.register()};
Ns.prototype.register=function(I){if(I=I||this.id){if(dX&&(BK[I]||EBw[I.toLowerCase()])!==void 0)throw BK[I]=EBw[I.toLowerCase()]=null,Error("wd`"+I);this.id=I;BK[I]=EBw[I.toLowerCase()]=this;this.querySelector("style")&&console.warn("dom-module %s has style outside template",this.id)}};
_.H1.Object.defineProperties(Ns.prototype,{assetpath:{configurable:!0,enumerable:!0,get:function(){if(!this.__assetpath){var I=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;I=_.so(this.getAttribute("assetpath")||"",I.baseURI);this.__assetpath=pPW(I)}return this.__assetpath}}});
_.H1.Object.defineProperties(Ns,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["id"]}}});
Ns["import"]=Ns.import;Ns.prototype.modules=BK;customElements.define("dom-module",Ns);var hyc=0,Nht=0,oR=[],UJq=0,Q8K=!1,Hqq=document.createTextNode(""),tiP,f7;(new window.MutationObserver(VzY)).observe(Hqq,{characterData:!0});_.EI={after:function(I){return{run:function(C){return window.setTimeout(C,I)},
cancel:function(C){window.clearTimeout(C)}}},
run:function(I,C){return window.setTimeout(I,C)},
cancel:function(I){window.clearTimeout(I)}};
_.D_={run:function(I){return window.requestAnimationFrame(I)},
cancel:function(I){window.cancelAnimationFrame(I)}};
tiP={run:function(I){return window.requestIdleCallback?window.requestIdleCallback(I):window.setTimeout(I,16)},
cancel:function(I){window.cancelIdleCallback?window.cancelIdleCallback(I):window.clearTimeout(I)}};
f7={run:function(I){Q8K||(Q8K=!0,Hqq.textContent=UJq++);oR.push(I);return hyc++},
cancel:function(I){var C=I-Nht;if(C>=0){if(!oR[C])throw Error("xd`"+I);oR[C]=null}}};var J$e=0,he=function(I){var C=I.__mixinApplications;C||(C=new WeakMap,I.__mixinApplications=C);var y=J$e++;return function(k){var F=k.__mixinSet;if(F&&F[y])return k;var z=C,c=z.get(k);c||(c=I(k),z.set(k,c),k=Object.create(c.__mixinSet||F||null),k[y]=!0,c.__mixinSet=k);return c}};_.P1=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?function(I){return ShadyDOM.patch(I)}:function(I){return I};var Oq8=he(function(I){var C=function(){var y=I.call(this)||this;y.__dataEnabled=!1;y.__dataReady=!1;y.__dataInvalid=!1;y.__data={};y.__dataPending=null;y.__dataOld=null;y.__dataInstanceProps=null;y.__dataCounter=0;y.__serializing=!1;y._initializeProperties();return y};
_.R(C,I);C.createProperties=function(y){var k=this.prototype,F;for(F in y)F in k||k._createPropertyAccessor(F)};
C.attributeNameForProperty=function(y){return y.toLowerCase()};
C.typeForProperty=function(){};
C.prototype._createPropertyAccessor=function(y,k){this._addPropertyToAttributeMap(y);this.hasOwnProperty("__dataHasAccessor")||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor));this.__dataHasAccessor[y]||(this.__dataHasAccessor[y]=!0,this._definePropertyAccessor(y,k))};
C.prototype._addPropertyToAttributeMap=function(y){this.hasOwnProperty("__dataAttributes")||(this.__dataAttributes=Object.assign({},this.__dataAttributes));var k=this.__dataAttributes[y];k||(k=this.constructor.attributeNameForProperty(y),this.__dataAttributes[k]=y);return k};
C.prototype._definePropertyAccessor=function(y,k){Object.defineProperty(this,y,{get:function(){return this.__data[y]},
set:k?function(){}:function(F){this._setPendingProperty(y,F,!0)&&this._invalidateProperties()}})};
C.prototype.ready=function(){this.__dataReady=!0;this._flushProperties()};
C.prototype._initializeProperties=function(){for(var y in this.__dataHasAccessor)this.hasOwnProperty(y)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[y]=this[y],delete this[y])};
C.prototype._initializeInstanceProperties=function(y){Object.assign(this,y)};
C.prototype._setProperty=function(y,k){this._setPendingProperty(y,k)&&this._invalidateProperties()};
C.prototype._getProperty=function(y){return this.__data[y]};
C.prototype._setPendingProperty=function(y,k){var F=this.__data[y],z=this._shouldPropertyChange(y,k,F);z&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),!this.__dataOld||y in this.__dataOld||(this.__dataOld[y]=F),this.__data[y]=k,this.__dataPending[y]=k);return z};
C.prototype._isPropertyPending=function(y){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(y))};
C.prototype._invalidateProperties=function(){var y=this;!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,f7.run(function(){y.__dataInvalid&&(y.__dataInvalid=!1,y._flushProperties())}))};
C.prototype._enableProperties=function(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())};
C.prototype._flushProperties=function(){this.__dataCounter++;var y=this.__data,k=this.__dataPending,F=this.__dataOld;this._shouldPropertiesChange(y,k,F)&&(this.__dataOld=this.__dataPending=null,this._propertiesChanged(y,k,F));this.__dataCounter--};
C.prototype._shouldPropertiesChange=function(y,k){return!!k};
C.prototype._propertiesChanged=function(){};
C.prototype._shouldPropertyChange=function(y,k,F){return F!==k&&(F===F||k===k)};
C.prototype.attributeChangedCallback=function(y,k,F,z){k!==F&&this._attributeToProperty(y,F);I.prototype.attributeChangedCallback&&I.prototype.attributeChangedCallback.call(this,y,k,F,z)};
C.prototype._attributeToProperty=function(y,k,F){if(!this.__serializing){var z=this.__dataAttributes;y=z&&z[y]||y;this[y]=this._deserializeValue(k,F||this.constructor.typeForProperty(y))}};
C.prototype._propertyToAttribute=function(y,k,F){this.__serializing=!0;F=arguments.length<3?this[y]:F;this._valueToNodeAttribute(this,F,k||this.constructor.attributeNameForProperty(y));this.__serializing=!1};
C.prototype._valueToNodeAttribute=function(y,k,F){k=this._serializeValue(k);if(F==="class"||F==="name"||F==="slot")y=(0,_.P1)(y);k===void 0?y.removeAttribute(F):y.setAttribute(F,k===""&&window.trustedTypes?window.trustedTypes.emptyScript:k)};
C.prototype._serializeValue=function(y){switch(typeof y){case "boolean":return y?"":void 0;default:return y!=null?y.toString():void 0}};
C.prototype._deserializeValue=function(y,k){switch(k){case Boolean:return y!==null;case Number:return Number(y);default:return y}};
return C});var aCd=0,j8z=[];var Miq=he(function(I){function C(z){z=Object.getPrototypeOf(z);return z.prototype instanceof F?z:null}
function y(z){if(!z.hasOwnProperty("__ownProperties")){var c=null;if(z.hasOwnProperty("properties")){var r=z.properties;if(r){c={};for(var w in r){var L=r[w];c[w]=typeof L==="function"?{type:L}:L}}}z.__ownProperties=c}return z.__ownProperties}
var k=Oq8(I),F=function(){return k.apply(this,arguments)||this};
_.R(F,k);F.finalize=function(){if(!this.hasOwnProperty("__finalized")){var z=C(this);z&&z.finalize();this.__finalized=!0;this._finalizeClass()}};
F._finalizeClass=function(){var z=y(this);z&&this.createProperties(z)};
F.typeForProperty=function(z){return(z=this._properties[z])&&z.type};
F.prototype._initializeProperties=function(){aCd++;this.constructor.finalize();k.prototype._initializeProperties.call(this)};
F.prototype.connectedCallback=function(){k.prototype.connectedCallback&&k.prototype.connectedCallback.call(this);this._enableProperties()};
F.prototype.disconnectedCallback=function(){k.prototype.disconnectedCallback&&k.prototype.disconnectedCallback.call(this)};
_.H1.Object.defineProperties(F,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){var z=this;if(!this.hasOwnProperty("__observedAttributes")){ln9(this.prototype);var c=this._properties;this.__observedAttributes=c?Object.keys(c).map(function(r){return z.prototype._addPropertyToAttributeMap(r)}):[]}return this.__observedAttributes}},
_properties:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("__properties")){var z=C(this);this.__properties=Object.assign({},z&&z._properties,y(this))}return this.__properties}}});
return F});var XPX={},$3K=/-[a-z]/g,RVY=/([A-Z])/g;for(var I0e={},CWc=HTMLElement.prototype;CWc;){for(var st8=Object.getOwnPropertyNames(CWc),o30=0;o30<st8.length;o30++)I0e[st8[o30]]=!0;CWc=Object.getPrototypeOf(CWc)}var y7c=window.trustedTypes?function(I){return trustedTypes.isHTML(I)||trustedTypes.isScript(I)||trustedTypes.isScriptURL(I)}:function(){return!1},kg0=he(function(I){var C=Oq8(I);
I=function(){return C.apply(this,arguments)||this};
_.R(I,C);I.createPropertiesForAttributes=function(){for(var y=this.observedAttributes,k=0;k<y.length;k++)this.prototype._createPropertyAccessor(yz(y[k]))};
I.attributeNameForProperty=function(y){return kd(y)};
I.prototype._initializeProperties=function(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null);C.prototype._initializeProperties.call(this)};
I.prototype._initializeProtoProperties=function(y){for(var k in y)this._setProperty(k,y[k])};
I.prototype._ensureAttribute=function(y,k){this.hasAttribute(y)||this._valueToNodeAttribute(this,k,y)};
I.prototype._serializeValue=function(y){switch(typeof y){case "object":if(y instanceof Date)return y.toString();if(y){if(y7c(y))return y;try{return JSON.stringify(y)}catch(k){return""}}default:return C.prototype._serializeValue.call(this,y)}};
I.prototype._deserializeValue=function(y,k){switch(k){case Object:try{var F=JSON.parse(y)}catch(z){F=y}break;case Array:try{F=JSON.parse(y)}catch(z){F=null,console.warn("Polymer::Attributes: couldn't decode Array as JSON: "+y)}break;case Date:F=isNaN(y)?String(y):Number(y);F=new Date(F);break;default:F=C.prototype._deserializeValue.call(this,y,k)}return F};
I.prototype._definePropertyAccessor=function(y,k){if(!I0e[y]){var F=this[y];F!==void 0&&(this.__data?this._setPendingProperty(y,F):(this.__dataProto?this.hasOwnProperty("__dataProto")||(this.__dataProto=Object.create(this.__dataProto)):this.__dataProto={},this.__dataProto[y]=F))}C.prototype._definePropertyAccessor.call(this,y,k)};
I.prototype._hasAccessor=function(y){return this.__dataHasAccessor&&this.__dataHasAccessor[y]};
I.prototype._isPropertyPending=function(y){return!!(this.__dataPending&&y in this.__dataPending)};
return I});var FMw={"dom-if":!0,"dom-repeat":!0},uew=!1,zQP=!1,T9w=function(){var I=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:function(C){return C}});
return function(C,y,k){y=y.getAttribute(k);I&&k.startsWith("on-")?C.setAttribute(k,I.createScript(y,k)):C.setAttribute(k,y)}}(),c7S=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C._parseTemplate=function(y,k){if(!y._templateInfo){var F=y._templateInfo={};F.nodeInfoList=[];F.nestedTemplate=!!k;F.stripWhiteSpace=k&&k.stripWhiteSpace||y.hasAttribute&&y.hasAttribute("strip-whitespace");this._parseTemplateContent(y,F,{parent:null})}return y._templateInfo};
C._parseTemplateContent=function(y,k,F){return this._parseTemplateNode(y.content,k,F)};
C._parseTemplateNode=function(y,k,F){var z=!1;y.localName!="template"||y.hasAttribute("preserve-content")?y.localName==="slot"&&(k.hasInsertionPoint=!0):z=this._parseTemplateNestedTemplate(y,k,F)||z;if(!uew){uew=!0;var c=document.createElement("textarea");c.placeholder="a";zQP=c.placeholder===c.textContent}zQP&&y.localName==="textarea"&&y.placeholder&&y.placeholder===y.textContent&&(y.textContent=null);y.firstChild&&this._parseTemplateChildNodes(y,k,F);y.hasAttributes&&y.hasAttributes()&&(z=this._parseTemplateNodeAttributes(y,
k,F)||z);return z||F.noted};
C._parseTemplateChildNodes=function(y,k,F){if(y.localName!=="script"&&y.localName!=="style")for(var z=y.firstChild,c=0,r;z;z=r){if(z.localName=="template"){var w=z.getAttribute("is");if(w&&FMw[w])for(r=z,r.removeAttribute("is"),z=r.ownerDocument.createElement(w),r.parentNode.replaceChild(z,r),z.appendChild(r);r.attributes.length;)w=r.attributes[0].name,T9w(z,r,w),r.removeAttribute(w)}r=z.nextSibling;if(z.nodeType===Node.TEXT_NODE){for(w=r;w&&w.nodeType===Node.TEXT_NODE;)z.textContent+=w.textContent,
r=w.nextSibling,y.removeChild(w),w=r;if(k.stripWhiteSpace&&!z.textContent.trim()){y.removeChild(z);continue}}w={parentIndex:c,parentInfo:F};this._parseTemplateNode(z,k,w)&&(w.infoIndex=k.nodeInfoList.push(w)-1);z.parentNode&&c++}};
C._parseTemplateNestedTemplate=function(y,k,F){k=this._parseTemplate(y,k);(k.content=y.content.ownerDocument.createDocumentFragment()).appendChild(y.content);F.templateInfo=k;return!0};
C._parseTemplateNodeAttributes=function(y,k,F){for(var z=!1,c=Array.from(y.attributes),r=c.length-1,w;w=c[r];r--)z=this._parseTemplateNodeAttribute(y,k,F,w.name,w.value)||z;return z};
C._parseTemplateNodeAttribute=function(y,k,F,z,c){return z.slice(0,3)==="on-"?(y.removeAttribute(z),F.events=F.events||[],F.events.push({name:z.slice(3),value:c}),!0):z==="id"?(F.id=c,!0):!1};
C._contentForTemplate=function(y){var k=y._templateInfo;return k&&k.content||y.content};
C.prototype._stampTemplate=function(y,k){y&&!y.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(y);k=k||this.constructor._parseTemplate(y);var F=k.nodeInfoList;y=document.importNode(k.content||y.content,!0);y.__noInsertionPoint=!k.hasInsertionPoint;var z=y.nodeList=Array(F.length);y.$={};for(var c=0,r=F.length,w=void 0;c<r&&(w=F[c]);c++){var L=z[c]=bEt(y,w);w.id&&(y.$[w.id]=L);var D=L,p=w,Q=k;p.templateInfo&&(D._templateInfo=p.templateInfo,D._parentTemplateInfo=
Q);if(w.events&&w.events.length)for(D=0,p=w.events,Q=void 0;D<p.length&&(Q=p[D]);D++)this._addMethodEventListenerToNode(L,Q.name,Q.value,this)}return y};
C.prototype._addMethodEventListenerToNode=function(y,k,F,z){F=YZt(z||y,F);this._addEventListenerToNode(y,k,F);return F};
C.prototype._addEventListenerToNode=function(y,k,F){y.addEventListener(k,F)};
C.prototype._removeEventListenerFromNode=function(y,k,F){y.removeEventListener(k,F)};
return C});var rX=0,D7=[],eQd={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},r7q=/[A-Z]/,iAw=function(I,C,y,k,F){var z=F?uf(I):I;if(C=C[z])for(z=0;z<C.length;z++){var c=C[z];if(c.info.lastRun!==rX&&(!F||gsY(I,c.trigger))){c.info.lastRun=rX;c=c.info;for(var r=y,w=k,L=0,D=r.length-1,p=-1;L<=D;){var Q=L+D>>1,X=w.get(r[Q].methodInfo)-w.get(c.methodInfo);if(X<0)L=Q+1;else if(X>0)D=Q-1;else{p=Q;break}}p<
0&&(p=D+1);r.splice(p,0,c)}}},OEH=[],wQS=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"),HK=he(function(I){var C=c7S(kg0(I));
I=function(){var y=C.call(this)||this;y.__isPropertyEffectsClient=!0;return y};
_.R(I,C);I.prototype._initializeProperties=function(){C.prototype._initializeProperties.call(this);this._registerHost();this.__dataClientsReady=!1;this.__dataLinkedPaths=this.__dataToNotify=this.__dataPendingClients=null;this.__dataHasPaths=!1;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=!1};
I.prototype._registerHost=function(){if(UI.length){var y=UI[UI.length-1];y._enqueueClient(this);this.__dataHost=y}};
I.prototype._initializeProtoProperties=function(y){this.__data=Object.create(y);this.__dataPending=Object.create(y);this.__dataOld={}};
I.prototype._initializeInstanceProperties=function(y){var k=this.__readOnly,F;for(F in y)k&&k[F]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[F]=this.__dataPending[F]=y[F])};
I.prototype._addPropertyEffect=function(y,k,F){this._createPropertyAccessor(y,k=="__readOnly");var z=AUz(this,k,!0)[y];z||(z=this[k][y]=[]);z.push(F)};
I.prototype._removePropertyEffect=function(y,k,F){y=AUz(this,k,!0)[y];F=y.indexOf(F);F>=0&&y.splice(F,1)};
I.prototype._hasPropertyEffect=function(y,k){k=this[k];return!(!k||!k[y])};
I.prototype._hasReadOnlyEffect=function(y){return this._hasPropertyEffect(y,"__readOnly")};
I.prototype._hasNotifyEffect=function(y){return this._hasPropertyEffect(y,"__notifyEffects")};
I.prototype._hasReflectEffect=function(y){return this._hasPropertyEffect(y,"__reflectEffects")};
I.prototype._hasComputedEffect=function(y){return this._hasPropertyEffect(y,"__computeEffects")};
I.prototype._setPendingPropertyOrPath=function(y,k,F,z){if(z||uf(Array.isArray(y)?y[0]:y)!==y){if(!z&&(z=es(this,y),y=K4X(this,y,k),!y||!C.prototype._shouldPropertyChange.call(this,y,k,z)))return!1;this.__dataHasPaths=!0;if(this._setPendingProperty(y,k,F)){if(F=this.__dataLinkedPaths)for(var c in F)z=F[c],z2(c,y)?(z=T2(c,z,y),this._setPendingPropertyOrPath(z,k,!0,!0)):z2(z,y)&&(z=T2(z,c,y),this._setPendingPropertyOrPath(z,k,!0,!0));return!0}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[y])return this._setPendingProperty(y,
k,F);this[y]=k}return!1};
I.prototype._setUnmanagedPropertyToNode=function(y,k,F){if(F!==y[k]||typeof F=="object")k==="className"&&(y=(0,_.P1)(y)),y[k]=F};
I.prototype._setPendingProperty=function(y,k,F){var z=this.__dataHasPaths&&F1(y);if(this._shouldPropertyChange(y,k,(z?this.__dataTemp:this.__data)[y])){this.__dataPending||(this.__dataPending={},this.__dataOld={});y in this.__dataOld||(this.__dataOld[y]=this.__data[y]);z?this.__dataTemp[y]=k:this.__data[y]=k;this.__dataPending[y]=k;if(z||this.__notifyEffects&&this.__notifyEffects[y])this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[y]=F;return!0}return!1};
I.prototype._setProperty=function(y,k){this._setPendingProperty(y,k,!0)&&this._invalidateProperties()};
I.prototype._invalidateProperties=function(){this.__dataReady&&this._flushProperties()};
I.prototype._enqueueClient=function(y){this.__dataPendingClients=this.__dataPendingClients||[];y!==this&&this.__dataPendingClients.push(y)};
I.prototype._flushClients=function(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)};
I.prototype.__enableOrFlushClients=function(){var y=this.__dataPendingClients;if(y){this.__dataPendingClients=null;for(var k=0;k<y.length;k++){var F=y[k];F.__dataEnabled?F.__dataPending&&F._flushProperties():F._enableProperties()}}};
I.prototype._readyClients=function(){this.__enableOrFlushClients()};
I.prototype.setProperties=function(y,k){for(var F in y)!k&&this.__readOnly&&this.__readOnly[F]||this._setPendingPropertyOrPath(F,y[F],!0);this._invalidateProperties()};
I.prototype.ready=function(){this._flushProperties();this.__dataClientsReady||this._flushClients();this.__dataPending&&this._flushProperties()};
I.prototype._propertiesChanged=function(y,k,F){y=this.__dataHasPaths;this.__dataHasPaths=!1;var z;if(z=this.__computeEffects)if(mJ0){rX++;var c=m3F(this),r=[],w;for(w in k)iAw(w,z,r,c,y);for(;w=r.shift();)BhO(this,"",k,F,w)&&iAw(w.methodInfo,z,r,c,y);Object.assign(F,this.__dataOld);Object.assign(k,this.__dataPending);this.__dataPending=null}else for(c=k;n7(this,z,c,F,y);)Object.assign(F,this.__dataOld),Object.assign(k,this.__dataPending),c=this.__dataPending,this.__dataPending=null;z=this.__dataToNotify;
this.__dataToNotify=null;this._propagatePropertyChanges(k,F,y);this._flushClients();n7(this,this.__reflectEffects,k,F,y);n7(this,this.__observeEffects,k,F,y);if(z){c=this.__notifyEffects;r=rX++;for(var L in z)if(z[L]){if(w=c){var D=c;w=r;var p=L,Q=k,X=F,b=y,S=!1,A=b?uf(p):p;if(D=D[A]){A=0;for(var x=D.length,B=void 0;A<x&&(B=D[A]);A++)B.info&&B.info.lastRun===w||b&&!gsY(p,B.trigger)||(B.info&&(B.info.lastRun=w),B.fn(this,p,Q,X,B.info,b,void 0),S=!0)}w=S}if(w)var t=!0;else{if(w=y)w=L,p=k,Q=uf(w),Q!==
w?(Q=kd(Q)+"-changed",W4I(this,Q,p[w],w),w=!0):w=!1;w&&(t=!0)}}var U;t&&(U=this.__dataHost)&&U._invalidateProperties&&U._invalidateProperties()}this.__dataCounter==1&&(this.__dataTemp={})};
I.prototype._propagatePropertyChanges=function(y,k,F){this.__propagateEffects&&n7(this,this.__propagateEffects,y,k,F);this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,y,k,F)};
I.prototype._runEffectsForTemplate=function(y,k,F,z){var c=this,r=function(w,L){n7(c,y.propertyEffects,w,F,L,y.nodeList);for(var D=y.firstChild;D;D=D.nextSibling)c._runEffectsForTemplate(D,w,F,L)};
y.runEffects?y.runEffects(r,k,z):r(k,z)};
I.prototype.linkPaths=function(y,k){y=c1(y);k=c1(k);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[y]=k};
I.prototype.unlinkPaths=function(y){y=c1(y);this.__dataLinkedPaths&&delete this.__dataLinkedPaths[y]};
I.prototype.notifySplices=function(y,k){var F={path:""};y=es(this,y,F);CYX(this,y,F.path,k)};
I.prototype.get=function(y,k){return es(k||this,y)};
I.prototype.set=function(y,k,F){F?K4X(F,y,k):this.__readOnly&&this.__readOnly[y]||this._setPendingPropertyOrPath(y,k,!0)&&this._invalidateProperties()};
I.prototype.push=function(y){var k=_.wa.apply(1,arguments),F={path:""},z=es(this,y,F),c=z.length,r=z.push.apply(z,_.Py(k));k.length&&Qz(this,z,F.path,c,k.length,[]);return r};
I.prototype.pop=function(y){var k={path:""};y=es(this,y,k);var F=!!y.length,z=y.pop();F&&Qz(this,y,k.path,y.length,0,[z]);return z};
I.prototype.splice=function(y,k,F){var z=_.wa.apply(3,arguments),c={path:""},r=es(this,y,c);k<0?k=r.length-Math.floor(-k):k&&(k=Math.floor(k));var w=arguments.length===2?r.splice(k):r.splice.apply(r,[k,F].concat(_.Py(z)));(z.length||w.length)&&Qz(this,r,c.path,k,z.length,w);return w};
I.prototype.shift=function(y){var k={path:""};y=es(this,y,k);var F=!!y.length,z=y.shift();F&&Qz(this,y,k.path,0,0,[z]);return z};
I.prototype.unshift=function(y){var k=_.wa.apply(1,arguments),F={path:""},z=es(this,y,F),c=z.unshift.apply(z,_.Py(k));k.length&&Qz(this,z,F.path,0,k.length,[]);return c};
I.prototype.notifyPath=function(y,k){if(arguments.length==1){var F={path:""};k=es(this,y,F);F=F.path}else F=Array.isArray(y)?c1(y):y;this._setPendingPropertyOrPath(F,k,!0,!0)&&this._invalidateProperties()};
I.prototype._createReadOnlyProperty=function(y,k){this._addPropertyEffect(y,"__readOnly");k&&(this["_set"+(y[0].toUpperCase()+y.substring(1))]=function(F){this._setProperty(y,F)})};
I.prototype._createPropertyObserver=function(y,k,F){var z={property:y,method:k,dynamicFn:!!F};this._addPropertyEffect(y,"__observeEffects",{fn:vsW,info:z,trigger:{name:y}});F&&this._addPropertyEffect(k,"__observeEffects",{fn:vsW,info:z,trigger:{name:k}})};
I.prototype._createMethodObserver=function(y,k){var F=MzX(y);if(!F)throw Error("yd`"+y);tz9(this,F,"__observeEffects",ZEt,null,k)};
I.prototype._createNotifyingProperty=function(y){this._addPropertyEffect(y,"__notifyEffects",{fn:d3W,info:{eventName:kd(y)+"-changed",property:y}})};
I.prototype._createReflectedProperty=function(y){var k=this.constructor.attributeNameForProperty(y);k[0]==="-"?console.warn("Property "+y+" cannot be reflected to attribute "+k+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(y,"__reflectEffects",{fn:x3I,info:{attrName:k}})};
I.prototype._createComputedProperty=function(y,k,F){var z=MzX(k);if(!z)throw Error("zd`"+k);k=tz9(this,z,"__computeEffects",BhO,y,F);AUz(this,"__computeInfo")[y]=k};
I.prototype._marshalArgs=function(y,k,F){for(var z=this.__data,c=[],r=0,w=y.length;r<w;r++){var L=y[r],D=L.name,p=L.structured,Q=L.wildcard,X=L.value;L.literal||(Q?(L=z2(D,k),p=Ium(z,F,L?k:D),X={path:L?k:D,value:p,base:L?es(z,D):p}):X=p?Ium(z,F,D):z[D]);if(p7&&!this._overrideLegacyUndefined&&X===void 0&&y.length>1)return D7;c[r]=X}return c};
I.addPropertyEffect=function(y,k,F){this.prototype._addPropertyEffect(y,k,F)};
I.createPropertyObserver=function(y,k,F){this.prototype._createPropertyObserver(y,k,F)};
I.createMethodObserver=function(y,k){this.prototype._createMethodObserver(y,k)};
I.createNotifyingProperty=function(y){this.prototype._createNotifyingProperty(y)};
I.createReadOnlyProperty=function(y,k){this.prototype._createReadOnlyProperty(y,k)};
I.createReflectedProperty=function(y){this.prototype._createReflectedProperty(y)};
I.createComputedProperty=function(y,k,F){this.prototype._createComputedProperty(y,k,F)};
I.bindTemplate=function(y){return this.prototype._bindTemplate(y)};
I.prototype._bindTemplate=function(y,k){var F=this.constructor._parseTemplate(y),z=this.__preBoundTemplateInfo==F;if(!z)for(var c in F.propertyEffects)this._createPropertyAccessor(c);k?(F=Object.create(F),F.wasPreBound=z,this.__templateInfo?(y=y._parentTemplateInfo||this.__templateInfo,k=y.lastChild,F.parent=y,y.lastChild=F,(F.previousSibling=k)?k.nextSibling=F:y.firstChild=F):this.__templateInfo=F):this.__preBoundTemplateInfo=F;return F};
I._addTemplatePropertyEffect=function(y,k,F){(y.hostProps=y.hostProps||{})[k]=!0;y=y.propertyEffects=y.propertyEffects||{};(y[k]=y[k]||[]).push(F)};
I.prototype._stampTemplate=function(y,k){k=k||this._bindTemplate(y,!0);UI.push(this);y=C.prototype._stampTemplate.call(this,y,k);UI.pop();k.nodeList=y.nodeList;if(!k.wasPreBound)for(var F=k.childNodes=[],z=y.firstChild;z;z=z.nextSibling)F.push(z);y.templateInfo=k;F=k.nodeList;z=k.nodeInfoList;if(z.length)for(var c=0;c<z.length;c++){var r=F[c],w=z[c].bindings;if(w)for(var L=0;L<w.length;L++){var D=w[L],p=r,Q=D;if(Q.isCompound){for(var X=p.__dataCompoundStorage||(p.__dataCompoundStorage={}),b=Q.parts,
S=Array(b.length),A=0;A<b.length;A++)S[A]=b[A].literal;b=Q.target;X[b]=S;Q.literal&&Q.kind=="property"&&(b==="className"&&(p=(0,_.P1)(p)),p[b]=Q.literal)}HEW(r,this,D)}r.__dataHost=this}this.__dataClientsReady&&(this._runEffectsForTemplate(k,this.__data,null,!1),this._flushClients());return y};
I.prototype._removeBoundDom=function(y){y=y.templateInfo;var k=y.previousSibling,F=y.nextSibling,z=y.parent;k?k.nextSibling=F:z&&(z.firstChild=F);F?F.previousSibling=k:z&&(z.lastChild=k);y.nextSibling=y.previousSibling=null;y=y.childNodes;for(k=0;k<y.length;k++)F=y[k],(0,_.P1)((0,_.P1)(F).parentNode).removeChild(F)};
I._parseTemplateNode=function(y,k,F){var z=C._parseTemplateNode.call(this,y,k,F);if(y.nodeType===Node.TEXT_NODE){var c=this._parseBindings(y.textContent,k);c&&(y.textContent=JUm(c)||" ",U39(this,k,F,"text","textContent",c),z=!0)}return z};
I._parseTemplateNodeAttribute=function(y,k,F,z,c){var r=this._parseBindings(c,k);if(r){c=z;var w="property";r7q.test(z)?w="attribute":z[z.length-1]=="$"&&(z=z.slice(0,-1),w="attribute");var L=JUm(r);L&&w=="attribute"&&(z=="class"&&y.hasAttribute("class")&&(L+=" "+y.getAttribute(z)),y.setAttribute(z,L));w=="attribute"&&c=="disable-upgrade$"&&y.setAttribute(z,"");y.localName==="input"&&c==="value"&&y.setAttribute(c,"");y.removeAttribute(c);w==="property"&&(z=yz(z));U39(this,k,F,w,z,r,L);return!0}return C._parseTemplateNodeAttribute.call(this,
y,k,F,z,c)};
I._parseTemplateNestedTemplate=function(y,k,F){var z=C._parseTemplateNestedTemplate.call(this,y,k,F),c=y.parentNode,r=F.templateInfo,w=c.localName==="dom-if",L=c.localName==="dom-repeat";qC&&(w||L)&&(c.removeChild(y),F=F.parentInfo,F.templateInfo=r,F.noted=!0,z=!1);y=r.hostProps;if(mI&&w)y&&(k.hostProps=Object.assign(k.hostProps||{},y),qC||(F.parentInfo.noted=!0));else for(var D in y)U39(this,k,F,"property","_host_"+D,[{mode:"{",source:D,dependencies:[D],hostProp:!0}]);return z};
I._parseBindings=function(y,k){for(var F=[],z=0,c;(c=wQS.exec(y))!==null;){c.index>z&&F.push({literal:y.slice(z,c.index)});z=c[1][0];var r=!!c[2];c=c[3].trim();var w=!1,L="",D=-1;z=="{"&&(D=c.indexOf("::"))>0&&(L=c.substring(D+2),c=c.substring(0,D),w=!0);D=MzX(c);var p=[];if(D){var Q=D,X=Q.args;Q=Q.methodName;for(var b=0;b<X.length;b++){var S=X[b];S.literal||p.push(S)}if((X=k.dynamicFns)&&X[Q]||D.static)p.push(Q),D.dynamicFn=!0}else p.push(c);F.push({source:c,mode:z,negate:r,customEvent:w,signature:D,
dependencies:p,event:L});z=wQS.lastIndex}z&&z<y.length&&(y=y.substring(z))&&F.push({literal:y});return F.length?F:null};
I._evaluateBinding=function(y,k,F,z,c,r){y=k.signature?ZEt(y,F,z,c,k.signature):F!=k.source?es(y,k.source):r&&F1(F)?es(y,F):y.__data[F];k.negate&&(y=!y);return y};
_.H1.Object.defineProperties(I.prototype,{PROPERTY_EFFECT_TYPES:{configurable:!0,enumerable:!0,get:function(){return eQd}}});
return I}),UI=[];var n3u=window.ShadyCSS&&window.ShadyCSS.cssBuild,te=he(function(I){function C(k,F,z,c){if(!n3u){for(var r=F.content.querySelectorAll("style"),w=kUX(F),L=FO9(z),D=F.content.firstElementChild,p=0;p<L.length;p++){var Q=L[p];Q.textContent=k._processStyleText(Q.textContent,c);F.content.insertBefore(Q,D)}for(D=L=0;D<w.length;D++)p=w[D],Q=r[L],Q!==p?(p=p.cloneNode(!0),Q.parentNode.insertBefore(p,Q)):L++,p.textContent=k._processStyleText(p.textContent,c)}window.ShadyCSS&&window.ShadyCSS.prepareTemplate(F,
z);if(B8q&&n3u&&Wrq&&(F=F.content.querySelectorAll("style"))){var X="";Array.from(F).forEach(function(b){X+=b.textContent;b.parentNode.removeChild(b)});
k._styleSheet=new CSSStyleSheet;k._styleSheet.replaceSync(X)}}
var y=Miq(HK(I));I=function(){return y.call(this)||this};
_.R(I,y);I._finalizeClass=function(){y._finalizeClass.call(this);var k;this.hasOwnProperty("__ownObservers")||(this.__ownObservers=this.hasOwnProperty("observers")?this.observers:null);(k=this.__ownObservers)&&this.createObservers(k,this._properties);this._prepareTemplate()};
I._prepareTemplate=function(){var k=this.template;k&&(typeof k==="string"?(console.error("template getter must return HTMLTemplateElement"),k=null):K7||(k=k.cloneNode(!0)));this.prototype._template=k};
I.createProperties=function(k){for(var F in k){var z=this.prototype,c=F,r=k[F],w=k;r.computed&&(r.readOnly=!0);r.computed&&(z._hasReadOnlyEffect(c)?console.warn("Cannot redefine computed property '"+c+"'."):z._createComputedProperty(c,r.computed,w));r.readOnly&&!z._hasReadOnlyEffect(c)?z._createReadOnlyProperty(c,!r.computed):r.readOnly===!1&&z._hasReadOnlyEffect(c)&&console.warn("Cannot make readOnly property '"+c+"' non-readOnly.");r.reflectToAttribute&&!z._hasReflectEffect(c)?z._createReflectedProperty(c):
r.reflectToAttribute===!1&&z._hasReflectEffect(c)&&console.warn("Cannot make reflected property '"+c+"' non-reflected.");r.notify&&!z._hasNotifyEffect(c)?z._createNotifyingProperty(c):r.notify===!1&&z._hasNotifyEffect(c)&&console.warn("Cannot make notify property '"+c+"' non-notify.");r.observer&&z._createPropertyObserver(c,r.observer,w[r.observer]);z._addPropertyToAttributeMap(c)}};
I.createObservers=function(k,F){for(var z=this.prototype,c=0;c<k.length;c++)z._createMethodObserver(k[c],F)};
I.prototype._initializeProperties=function(){this.constructor.finalize();this.constructor._finalizeTemplate(this.localName);y.prototype._initializeProperties.call(this);this.rootPath=dJe;this.importPath=this.constructor.importPath;var k=this.constructor;if(!k.hasOwnProperty("__propertyDefaults")){k.__propertyDefaults=null;var F=k._properties,z;for(z in F){var c=F[z];"value"in c&&(k.__propertyDefaults=k.__propertyDefaults||{},k.__propertyDefaults[z]=c)}}if(k=k.__propertyDefaults)for(var r in k)F=k[r],
this._canApplyPropertyDefault(r)&&(F=typeof F.value=="function"?F.value.call(this):F.value,this._hasAccessor(r)?this._setPendingProperty(r,F,!0):this[r]=F)};
I.prototype._canApplyPropertyDefault=function(k){return!this.hasOwnProperty(k)};
I._processStyleText=function(k,F){return D3t(k,F)};
I._finalizeTemplate=function(k){var F=this.prototype._template;if(F&&!F.__polymerFinalized){F.__polymerFinalized=!0;var z=this.importPath;z=z?_.so(z):"";C(this,F,k,z);this.prototype._bindTemplate(F)}};
I.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this);y.prototype.connectedCallback.call(this)};
I.prototype.ready=function(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$);y.prototype.ready.call(this)};
I.prototype._readyClients=function(){this._template&&(this.root=this._attachDom(this.root));y.prototype._readyClients.call(this)};
I.prototype._attachDom=function(k){var F=(0,_.P1)(this);if(F.attachShadow)return k?(F.shadowRoot||(F.attachShadow({mode:"open",shadyUpgradeFragment:k}),F.shadowRoot.appendChild(k),this.constructor._styleSheet&&(F.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),qhP&&window.ShadyDOM&&window.ShadyDOM.flushInitial(F.shadowRoot),F.shadowRoot):null;throw Error("Bd");};
I.prototype.updateStyles=function(k){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,k)};
I.prototype.resolveUrl=function(k,F){!F&&this.importPath&&(F=_.so(this.importPath));return _.so(k,F)};
I._parseTemplateContent=function(k,F,z){F.dynamicFns=F.dynamicFns||this._properties;return y._parseTemplateContent.call(this,k,F,z)};
I._addTemplatePropertyEffect=function(k,F,z){!W1||F in this._properties||z.info.part.signature&&z.info.part.signature.static||z.info.part.hostProp||k.nestedTemplate||console.warn("Property '"+F+"' used in template but not declared in 'properties'; attribute will not be observed.");return y._addTemplatePropertyEffect.call(this,k,F,z)};
_.H1.Object.defineProperties(I,{template:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_template")){var k=this.prototype.hasOwnProperty("_template")?this.prototype._template:void 0;typeof k==="function"&&(k=k());if(k===void 0){if(k=this.hasOwnProperty("is")){k=this.is;var F=null;if(k&&(!dX||xJ0)&&(F=Ns.import(k,"template"),dX&&!F))throw Error("Ad`"+k);k=F}k=k||Object.getPrototypeOf(this.prototype).constructor.template}this._template=k}return this._template},
set:function(k){this._template=k}},
importPath:{configurable:!0,enumerable:!0,get:function(){if(!this.hasOwnProperty("_importPath")){var k=this.importMeta;k?this._importPath=pPW(k.url):this._importPath=(k=Ns.import(this.is))&&k.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}return this._importPath}}});
return I});var PWY=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:function(I){return I}}),wjm=function(I,C){LMw(I,C);
this.value=C.reduce(function(y,k,F){return y+nAK(k)+I[F+1]},I[0]).toString()},LMw;
wjm.prototype.toString=function(){return this.value};
_.D15=function(I){var C=_.wa.apply(1,arguments);LMw(I,C);var y=document.createElement("template");C=C.reduce(function(k,F,z){if(F instanceof HTMLTemplateElement)F=F.innerHTML;else if(F instanceof wjm)F=nAK(F);else throw Error("Dd`"+F);return k+F+I[z+1]},I[0]);
PWY&&(C=PWY.createHTML(C));y.innerHTML=C;return y};
LMw=function(I,C){if(!Array.isArray(I)||!Array.isArray(I.raw)||C.length!==I.length-1)throw new TypeError("Ed");};var Je=te(HTMLElement);var pQd=he(function(I){var C=te(I);I=function(){var y=C.call(this)||this;y.__lastItems=null;y.__lastMulti=null;y.__selectedMap=null;return y};
_.R(I,C);I.prototype.__updateSelection=function(y,k){var F=k.path;F=="items"?(k=k.base||[],F=this.__lastItems,y!==this.__lastMulti&&this.clearSelection(),F&&(F=iMK(k,F),this.__applySplices(F)),this.__lastItems=k,this.__lastMulti=y):k.path=="items.splices"?this.__applySplices(k.value.indexSplices):(y=F.slice(6),k=parseInt(y,10),y.indexOf(".")<0&&y==k&&this.__deselectChangedIdx(k))};
I.prototype.__applySplices=function(y){for(var k=this,F=this.__selectedMap,z={},c=0;c<y.length;z={s$jscomp$108:void 0},c++){z.s$jscomp$108=y[c];F.forEach(function(D){return function(p,Q){p<D.s$jscomp$108.index||(p>=D.s$jscomp$108.index+D.s$jscomp$108.removed.length?F.set(Q,p+D.s$jscomp$108.addedCount-D.s$jscomp$108.removed.length):F.set(Q,-1))}}(z));
for(var r=0;r<z.s$jscomp$108.addedCount;r++){var w=z.s$jscomp$108.index+r;F.has(this.items[w])&&F.set(this.items[w],w)}}this.__updateLinks();var L=0;F.forEach(function(D,p){D<0?(k.multi?k.splice("selected",L,1):k.selected=k.selectedItem=null,F.delete(p)):L++})};
I.prototype.__updateLinks=function(){var y=this;this.__dataLinkedPaths={};if(this.multi){var k=0;this.__selectedMap.forEach(function(F){F>=0&&y.linkPaths("items."+F,"selected."+k++)})}else this.__selectedMap.forEach(function(F){y.linkPaths("selected","items."+F);
y.linkPaths("selectedItem","items."+F)})};
I.prototype.clearSelection=function(){this.__dataLinkedPaths={};this.__selectedMap=new Map;this.selected=this.multi?[]:null;this.selectedItem=null};
I.prototype.isSelected=function(y){return this.__selectedMap.has(y)};
I.prototype.isIndexSelected=function(y){return this.isSelected(this.items[y])};
I.prototype.__deselectChangedIdx=function(y){var k=this,F=this.__selectedIndexForItemIndex(y);if(F>=0){var z=0;this.__selectedMap.forEach(function(c,r){F==z++&&k.deselect(r)})}};
I.prototype.__selectedIndexForItemIndex=function(y){if(y=this.__dataLinkedPaths["items."+y])return parseInt(y.slice(9),10)};
I.prototype.deselect=function(y){var k=this.__selectedMap.get(y);if(k>=0){this.__selectedMap.delete(y);var F;this.multi&&(F=this.__selectedIndexForItemIndex(k));this.__updateLinks();this.multi?this.splice("selected",F,1):this.selected=this.selectedItem=null}};
I.prototype.deselectIndex=function(y){this.deselect(this.items[y])};
I.prototype.select=function(y){this.selectIndex(this.items.indexOf(y))};
I.prototype.selectIndex=function(y){var k=this.items[y];this.isSelected(k)?this.toggle&&this.deselectIndex(y):(this.multi||this.__selectedMap.clear(),this.__selectedMap.set(k,y),this.__updateLinks(),this.multi?this.push("selected",k):this.selected=this.selectedItem=k)};
_.H1.Object.defineProperties(I,{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 I}),Qt0=pQd(Je),OI=function(){return Qt0.apply(this,arguments)||this};
_.R(OI,Qt0);_.H1.Object.defineProperties(OI,{is:{configurable:!0,enumerable:!0,get:function(){return"array-selector"}},
template:{configurable:!0,enumerable:!0,get:function(){return null}}});
customElements.define(OI.is,OI);var N9w=window.Polymer;window.Polymer=function(I){return window.Polymer._polymerFn(I)};
N9w&&Object.assign(Polymer,N9w);Polymer._polymerFn=function(){throw Error("Fd");};/*

Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
*/
Polymer.ResolveUrl={resolveCss:D3t,resolveUrl:_.so,pathFromUrl:pPW};Polymer.DomModule=Ns;Polymer.Async={timeOut:_.EI,animationFrame:_.D_,idlePeriod:tiP,microTask:f7};Polymer.dedupingMixin=he;Polymer.wrap=_.P1;Polymer.PropertiesChanged=Oq8;Polymer.telemetry={instanceCount:aCd,incrementInstanceCount:function(){aCd++},
registrations:j8z,register:ln9,dumpRegistrations:function(){j8z.forEach(_._regLog$$module$third_party$javascript$polymer$v2$polymer$lib$utils$telemetry)}};Polymer.PropertiesMixin=Miq;Polymer.CaseMap={dashToCamelCase:yz,camelToDashCase:kd};Polymer.PropertyAccessors=kg0;Polymer.TemplateStamp=c7S;Polymer.Path={isPath:F1,root:uf,isAncestor:GNO,isDescendant:z2,translate:T2,matches:fnW,normalize:c1,split:SZF,get:es,set:K4X,isDeep:F1};Polymer.Settings={useShadow:An,useNativeCSSProperties:She,useNativeCustomElements:Kr0,get rootPath(){return dJe},setRootPath:function(I){dJe=I},
get sanitizeDOMValue(){return L7},setSanitizeDOMValue:function(I){L7=I},
get passiveTouchGestures(){return bMH},setPassiveTouchGestures:function(I){bMH=I},
get strictTemplatePolicy(){return dX},setStrictTemplatePolicy:function(I){dX=I},
get allowTemplateFromDomModule(){return xJ0},setAllowTemplateFromDomModule:function(I){xJ0=I},
get legacyOptimizations(){return K7},setLegacyOptimizations:function(I){K7=I},
get syncInitialRender(){return qhP},setSyncInitialRender:function(I){qhP=I},
get legacyUndefined(){return p7},setLegacyUndefined:function(I){p7=I},
get legacyWarnings(){return W1},setLegacyWarnings:function(I){W1=I},
get orderedComputed(){return mJ0},setOrderedComputed:function(I){mJ0=I},
get fastDomIf(){return mI},setFastDomIf:function(I){mI=I},
get removeNestedTemplates(){return qC},setRemoveNestedTemplates:function(I){qC=I},
get suppressTemplateNotifications(){return Z9},setSuppressTemplateNotifications:Z9};Polymer.rootPath!==void 0&&(dJe=Polymer.rootPath);Polymer.sanitizeDOMValue!==void 0&&(L7=Polymer.sanitizeDOMValue);Polymer.passiveTouchGestures!==void 0&&(bMH=Polymer.passiveTouchGestures);Polymer.strictTemplatePolicy!==void 0&&(dX=Polymer.strictTemplatePolicy);xJ0=Polymer.allowTemplateFromDomModule!==void 0?Polymer.allowTemplateFromDomModule:!0;Polymer.legacyOptimizations!==void 0&&(K7=Polymer.legacyOptimizations);
Polymer.syncInitialRender!==void 0&&(qhP=Polymer.syncInitialRender);Polymer.legacyUndefined!==void 0&&(p7=Polymer.legacyUndefined);Polymer.legacyWarnings!==void 0&&(W1=Polymer.legacyWarnings);Polymer.orderedComputed!==void 0&&(mJ0=Polymer.orderedComputed);Polymer.fastDomIf!==void 0&&(mI=Polymer.fastDomIf);Polymer.removeNestedTemplates!==void 0&&(qC=Polymer.removeNestedTemplates);Polymer.suppressTemplateNotifications!==void 0&&(Z9=Polymer.suppressTemplateNotifications);
Object.defineProperty(Polymer,"sanitizeDOMValue",{get:function(){return L7},
set:function(I){L7=I}});Polymer.PropertyEffects=HK;Polymer.StyleGather={stylesFromModules:y99,stylesFromModule:oA9,stylesFromTemplate:kUX,stylesFromModuleImports:FO9,cssFromModules:z4F,cssFromModule:uiW,cssFromTemplate:TJI,cssFromModuleImports:function(I){return(I=Ns.import(I))?_._cssFromModuleImports$$module$third_party$javascript$polymer$v2$polymer$lib$utils$style_gather(I):""}};Polymer.ElementMixin=te;Polymer.updateStyles=function(I){window.ShadyCSS&&window.ShadyCSS.styleDocument(I)};
Polymer.version="3.5.0";Polymer.ArraySplice={calculateSplices:iMK};Polymer.html=_.D15;Polymer.htmlLiteral=function(I){return new wjm(I,_.wa.apply(1,arguments))};Polymer.Element=Je;Polymer.ArraySelectorMixin=pQd;Polymer.ArraySelector=OI;var VrP=/(?:^|[;\s{]\s*)(--[\w-]*?)\s*:\s*(?:((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};{])+)|\{([^}]*)\}(?:(?=[;\s}])|$))/gi,jtq=/(?:^|\W+)@apply\s*\(?([^);\n]*)\)?/gi,tLK=/@media\s(.*)/;var pjs=null,DlI=window.HTMLImports&&window.HTMLImports.whenReady||null,QYm;var l0q=null,ar=null,MC=function(){this.customStyles=[];this.enqueued=!1;NJX(function(){window.ShadyCSS.flushCustomStyles&&window.ShadyCSS.flushCustomStyles()})},XQ8=function(I){!I.enqueued&&ar&&(I.enqueued=!0,NJX(ar))};
MC.prototype.addCustomStyle=function(I){I.__seenByShadyCSS||(I.__seenByShadyCSS=!0,this.customStyles.push(I),XQ8(this))};
MC.prototype.getStyleForCustomStyle=function(I){if(I.__shadyCSSCachedStyle)return I.__shadyCSSCachedStyle;var C;I.getStyle?C=I.getStyle():C=I;return C};
MC.prototype.processStyles=function(){for(var I=this.customStyles,C=0;C<I.length;C++){var y=I[C];if(!y.__shadyCSSCachedStyle){var k=this.getStyleForCustomStyle(y);k&&(k=k.__appliedElement||k,l0q&&l0q(k),y.__shadyCSSCachedStyle=k)}}return I};
MC.prototype.addCustomStyle=MC.prototype.addCustomStyle;MC.prototype.getStyleForCustomStyle=MC.prototype.getStyleForCustomStyle;MC.prototype.processStyles=MC.prototype.processStyles;Object.defineProperties(MC.prototype,{transformCallback:{get:function(){return l0q},
set:function(I){l0q=I}},
validateCallback:{get:function(){return ar},
set:function(I){var C=!1;ar||(C=!0);ar=I;C&&XQ8(this)}}});var jYt=!(window.ShadyDOM&&window.ShadyDOM.inUse),Vj9,Uo;window.ShadyCSS&&window.ShadyCSS.cssBuild!==void 0&&(Uo=window.ShadyCSS.cssBuild);var $1w=!(!window.ShadyCSS||!window.ShadyCSS.disableRuntime);window.ShadyCSS&&window.ShadyCSS.nativeCss!==void 0?Vj9=window.ShadyCSS.nativeCss:window.ShadyCSS?(lut(window.ShadyCSS),window.ShadyCSS=void 0):lut(window.WebComponents&&window.WebComponents.flags);var h9z=Vj9;var RQe=new MC;window.ShadyCSS||(window.ShadyCSS={prepareTemplate:function(){},
prepareTemplateDom:function(){},
prepareTemplateStyles:function(){},
styleSubtree:function(I,C){RQe.processStyles();PYI(I,C)},
styleElement:function(){RQe.processStyles()},
styleDocument:function(I){RQe.processStyles();PYI(document.body,I)},
getComputedStyleValue:function(I,C){return LOI(I,C)},
flushCustomStyles:function(){},
nativeCss:h9z,nativeShadow:jYt,cssBuild:Uo,disableRuntime:$1w});window.ShadyCSS.CustomStyleInterface=RQe;var bAw=window.ShadyCSS.CustomStyleInterface,In=function(){var I=HTMLElement.call(this)||this;I._style=null;bAw.addCustomStyle(I);return I};
_.R(In,HTMLElement);In.prototype.getStyle=function(){if(this._style)return this._style;var I=this.querySelector("style");if(!I)return null;this._style=I;var C=I.getAttribute("include");C&&(I.removeAttribute("include"),I.textContent=z4F(C)+I.textContent);this.ownerDocument!==window.document&&window.document.head.appendChild(this);return this._style};
In.prototype.getStyle=In.prototype.getStyle;window.customElements.define("custom-style",In);Polymer.CustomStyle=In;var C6=function(){this._timer=this._callback=this._asyncModule=null},sV,Ggb;
C6.prototype.setConfig=function(I,C){var y=this;this._asyncModule=I;this._callback=C;this._timer=this._asyncModule.run(function(){y._timer=null;sV.delete(y);y._callback()})};
C6.prototype.cancel=function(){this.isActive()&&(YNm(this),sV.delete(this))};
var YNm=function(I){I.isActive()&&(I._asyncModule.cancel(I._timer),I._timer=null)};
C6.prototype.flush=function(){this.isActive()&&(this.cancel(),this._callback())};
C6.prototype.isActive=function(){return this._timer!=null};
_.on=function(I,C,y){I instanceof C6?YNm(I):I=new C6;I.setConfig(C,y);return I};
sV=new Set;_.yP=function(I){sV.add(I)};
Ggb=function(){var I=!!sV.size;sV.forEach(function(C){try{C.flush()}catch(y){setTimeout(function(){throw y;})}});
return I};var $lW=typeof document.head.style.touchAction==="string",XjK=["mousedown","mousemove","mouseup","click"],gAz=[0,1,4,2],f0b;try{f0b=(new MouseEvent("test",{buttons:1})).buttons===1}catch(I){f0b=!1}var A9Y=f0b,R4z=!1;(function(){try{var I=Object.defineProperty({},"passive",{get:function(){R4z=!0}});
window.addEventListener("test",null,I);window.removeEventListener("test",null,I)}catch(C){}})();
var GUt=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/),fuz=[],SN8={button:!0,input:!0,keygen:!0,meter:!0,output:!0,textarea:!0,progress:!0,select:!0},HM9={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0},SGt=function(I){var C=I.sourceCapabilities;if(!C||C.firesTouchEvents)if(I.__polymerGesturesHandled={skip:!0},I.type==="click"){C=!1;for(var y=xlm(I),k=0;k<y.length;k++){if(y[k].nodeType===Node.ELEMENT_NODE)if(y[k].localName==="label")fuz.push(y[k]);
else if(SN8[y[k].localName]){var F=y[k];var z=Array.prototype.slice.call(F.labels||[]);if(!z.length){z=[];try{var c=F.getRootNode();if(F.id){var r=c.querySelectorAll("label[for = '"+F.id+"']");for(F=0;F<r.length;F++)z.push(r[F])}}catch(w){}}for(F=0;F<z.length;F++)C=C||fuz.indexOf(z[F])>-1}if(y[k]===KMw)return}C||(I.preventDefault(),I.stopPropagation())}},KMw=null,k1=null,mlz=0,ZMW=0,qGI=-1,BJ9=!1;
document.addEventListener("touchend",function(I){k1||KOs(!0);KMw=xlm(I)[0];k1=_.on(k1,_.EI.after(2500),function(){KOs();k1=KMw=null})},R4z?{passive:!0}:!1);
var xlm=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:function(I){return I.composedPath&&I.composedPath()||[]},RR={},X1=[];
EAm({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset:function(){lf(this.info)},
mousedown:function(I){if(js(I)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),y=this;WOm(this.info,function(k){js(k)||(Ss("up",C,k),lf(y.info))},function(k){js(k)&&Ss("up",C,k);
lf(y.info)});
Ss("down",C,I)}},
touchstart:function(I){Ss("down",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),I.changedTouches[0],I)},
touchend:function(I){Ss("up",_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),I.changedTouches[0],I)}});
EAm({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(I){this.moves.length>2&&this.moves.shift();this.moves.push(I)},
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;lf(this.info)},
mousedown:function(I){if(js(I)){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I),y=this,k=function(F){var z=F.clientX,c=F.clientY;h4W(y.info,z,c)&&(y.info.state=y.info.started?F.type==="mouseup"?"end":"track":"start",y.info.state==="start"&&$d("tap"),y.info.addMove({x:z,y:c}),js(F)||(y.info.state="end",lf(y.info)),C&&Ulm(y.info,C,F),y.info.started=!0)};
WOm(this.info,k,function(F){y.info.started&&k(F);lf(y.info)});
this.info.x=I.clientX;this.info.y=I.clientY}},
touchstart:function(I){I=I.changedTouches[0];this.info.x=I.clientX;this.info.y=I.clientY},
touchmove:function(I){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I=I.changedTouches[0];var y=I.clientX,k=I.clientY;h4W(this.info,y,k)&&(this.info.state==="start"&&$d("tap"),this.info.addMove({x:y,y:k}),Ulm(this.info,C,I),this.info.state="track",this.info.started=!0)},
touchend:function(I){var C=_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I);I=I.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:I.clientX,y:I.clientY}),Ulm(this.info,C,I))}});
EAm({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(I){js(I)&&(this.info.x=I.clientX,this.info.y=I.clientY)},
click:function(I){js(I)&&tjI(this.info,I)},
touchstart:function(I){I=I.changedTouches[0];this.info.x=I.clientX;this.info.y=I.clientY},
touchend:function(I){tjI(this.info,I.changedTouches[0],I)}});var A78=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C.prototype._addEventListenerToNode=function(y,k,F){bf(y,k,F)||I.prototype._addEventListenerToNode.call(this,y,k,F)};
C.prototype._removeEventListenerFromNode=function(y,k,F){Yd(y,k,F)||I.prototype._removeEventListenerFromNode.call(this,y,k,F)};
return C});var FC=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C.prototype._shouldPropertyChange=function(y,k,F){return J9I(this,y,k,F,!0)};
return C}),g3e=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C.prototype._shouldPropertyChange=function(y,k,F){return J9I(this,y,k,F,this.mutableData)};
_.H1.Object.defineProperties(C,{properties:{configurable:!0,enumerable:!0,get:function(){return{mutableData:Boolean}}}});
return C});
FC._mutablePropertyChange=J9I;var OMW=!1;var v3c=A78(g3e(HK(HTMLElement))),ub=function(){var I=v3c.call(this)||this;if(dX)throw Error("Gd");I.root=null;I.$=null;I.__children=null;return I};
_.R(ub,v3c);_.u=ub.prototype;_.u.attributeChangedCallback=function(){this.mutableData=!0};
_.u.connectedCallback=function(){auI()||(this.style.display="none");this.render()};
_.u.disconnectedCallback=function(){this.__removeChildren()};
_.u.__insertChildren=function(){(0,_.P1)((0,_.P1)(this).parentNode).insertBefore(this.root,this)};
_.u.__removeChildren=function(){if(this.__children)for(var I=0;I<this.__children.length;I++)this.root.appendChild(this.__children[I])};
_.u.render=function(){var I=this;if(!this.__children){var C=C||this.querySelector("template");if(!C){var y=new MutationObserver(function(){if(C=I.querySelector("template"))y.disconnect(),I.render();else throw Error("Hd");});
y.observe(this,{childList:!0});return}this.root=this._stampTemplate(C);this.$=this.root.$;this.__children=[];for(var k=this.root.firstChild;k;k=k.nextSibling)this.__children[this.__children.length]=k;this._enableProperties()}this.__insertChildren();this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
_.H1.Object.defineProperties(ub,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["mutable-data"]}}});
customElements.define("dom-bind",ub);Polymer.Debouncer=C6;Polymer.Gestures={gestures:RR,recognizers:X1,deepTargetFind:dls,addListener:bf,removeListener:Yd,register:EAm,setTouchAction:_.G2,prevent:$d,resetMouseCanceller:function(){k1&&k1.flush()},
findOriginalTarget:_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures,add:bf,remove:Yd};Polymer.GestureEventListeners=A78;Polymer.MutableData=FC;Polymer.OptionalMutableData=g3e;Polymer.DomBind=ub;_.zJ=function(){do{var I=window.ShadyDOM&&ShadyDOM.flush();window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush();var C=Ggb()}while(I||C)};var Mjs=null;IZI.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:IZI,writable:!0}});var z9O=HK(IZI),uS9=FC(z9O),WMm=HK(function(){}),gX=function(I){var C=WMm.call(this)||this;
C._configureProperties(I);C.root=C._stampTemplate(C.__dataHost);var y=[];C.children=y;for(var k=C.root.firstChild;k;k=k.nextSibling)y.push(k),k.__templatizeInstance=C;C.__templatizeOwner&&C.__templatizeOwner.__hideTemplateChildren__&&C._showHideChildren(!0);y=C.__templatizeOptions;(I&&y.instanceProps||!y.instanceProps)&&C._enableProperties();return C};
_.R(gX,WMm);_.u=gX.prototype;_.u._configureProperties=function(I){if(this.__templatizeOptions.forwardHostProp)for(var C in this.__hostProps)this._setPendingProperty(C,this.__dataHost["_host_"+C]);for(var y in I)this._setPendingProperty(y,I[y])};
_.u.forwardHostProp=function(I,C){this._setPendingPropertyOrPath(I,C,!1,!0)&&this.__dataHost._enqueueClient(this)};
_.u._addEventListenerToNode=function(I,C,y){var k=this;if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(I,C,function(z){z.model=k;y(z)});
else{var F=this.__dataHost.__dataHost;F&&F._addEventListenerToNode(I,C,y)}};
_.u._showHideChildren=function(I){scW(I,this.children)};
_.u._setUnmanagedPropertyToNode=function(I,C,y){I.__hideTemplateChildren__&&I.nodeType==Node.TEXT_NODE&&C=="textContent"?I.__polymerTextContent__=y:WMm.prototype._setUnmanagedPropertyToNode.call(this,I,C,y)};
_.u.dispatchEvent=function(){return!0};
_.H1.Object.defineProperties(gX.prototype,{parentModel:{configurable:!0,enumerable:!0,get:function(){var I=this.__parentModel;if(!I){var C;I=this;do I=I.__dataHost.__dataHost;while((C=I.__templatizeOptions)&&!C.parentModel);this.__parentModel=I}return I}}});
var yaW=FC(gX);var TJ=function(){var I=Je.call(this)||this;I.__renderDebouncer=null;I._lastIf=!1;I.__hideTemplateChildren__=!1;return I};
_.R(TJ,Je);_.u=TJ.prototype;_.u.__debounceRender=function(){var I=this;this.__renderDebouncer=_.on(this.__renderDebouncer,f7,function(){return I.__render()});
_.yP(this.__renderDebouncer)};
_.u.disconnectedCallback=function(){Je.prototype.disconnectedCallback.call(this);var I=(0,_.P1)(this).parentNode;I&&(I.nodeType!=Node.DOCUMENT_FRAGMENT_NODE||(0,_.P1)(I).host)||this.__teardownInstance()};
_.u.connectedCallback=function(){Je.prototype.connectedCallback.call(this);auI()||(this.style.display="none");this.if&&this.__debounceRender()};
_.u.__ensureTemplate=function(){var I=this;if(!this.__template){var C=this._templateInfo?this:(0,_.P1)(this).querySelector("template");if(!C){var y=new MutationObserver(function(){if((0,_.P1)(I).querySelector("template"))y.disconnect(),I.__render();else throw Error("Kd");});
y.observe(this,{childList:!0});return!1}this.__template=C}return!0};
_.u.__ensureInstance=function(){var I=(0,_.P1)(this).parentNode;if(this.__hasInstance()){var C=this.__getInstanceNodes();if(C&&C.length&&(0,_.P1)(this).previousSibling!==C[C.length-1])for(var y=0,k=void 0;y<C.length&&(k=C[y]);y++)(0,_.P1)(I).insertBefore(k,this)}else{if(!I||!this.__ensureTemplate())return!1;this.__createAndInsertInstance(I)}return!0};
_.u.render=function(){_.zJ()};
_.u.__render=function(){if(this.if){if(!this.__ensureInstance())return}else this.restamp&&this.__teardownInstance();this._showHideChildren();Z9&&!this.notifyDomChange||this.if==this._lastIf||(this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0})),this._lastIf=this.if)};
_.u.__hasInstance=function(){};
_.u.__getInstanceNodes=function(){};
_.u.__createAndInsertInstance=function(){};
_.u.__teardownInstance=function(){};
_.u._showHideChildren=function(){};
_.H1.Object.defineProperties(TJ,{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:TJ.prototype.__debounceRender},restamp:{type:Boolean,observer:TJ.prototype.__debounceRender},notifyDomChange:{type:Boolean}}}}});
var d1u=function(){var I=TJ.call(this)||this;I.__instance=null;I.__syncInfo=null;return I};
_.R(d1u,TJ);_.u=d1u.prototype;_.u.__hasInstance=function(){return!!this.__instance};
_.u.__getInstanceNodes=function(){return this.__instance.templateInfo.childNodes};
_.u.__createAndInsertInstance=function(I){var C=this,y=this.__dataHost||this;if(dX&&!this.__dataHost)throw Error("Id");var k=y._bindTemplate(this.__template,!0);k.runEffects=function(F,z,c){var r=C.__syncInfo;if(C.if)r&&(C.__syncInfo=null,C._showHideChildren(),z=Object.assign(r.changedProps,z)),F(z,c);else if(C.__instance)if(r||(r=C.__syncInfo={runEffects:F,changedProps:{}}),c)for(var w in z)F=uf(w),r.changedProps[F]=C.__dataHost[F];else Object.assign(r.changedProps,z)};
this.__instance=y._stampTemplate(this.__template,k);(0,_.P1)(I).insertBefore(this.__instance,this)};
_.u.__syncHostProperties=function(){var I=this.__syncInfo;I&&(this.__syncInfo=null,I.runEffects(I.changedProps,!1))};
_.u.__teardownInstance=function(){var I=this.__dataHost||this;this.__instance&&(I._removeBoundDom(this.__instance),this.__syncInfo=this.__instance=null)};
_.u._showHideChildren=function(){var I=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==I&&(this.__instance.__hidden=I,scW(I,this.__instance.templateInfo.childNodes));I||this.__syncHostProperties()};
var x1e=function(){var I=TJ.call(this)||this;I.__ctor=null;I.__instance=null;I.__invalidProps=null;return I};
_.R(x1e,TJ);_.u=x1e.prototype;_.u.__hasInstance=function(){return!!this.__instance};
_.u.__getInstanceNodes=function(){return this.__instance.children};
_.u.__createAndInsertInstance=function(I){this.__ctor||(this.__ctor=v1(this.__template,this,{mutableData:!0,forwardHostProp:function(C,y){this.__instance&&(this.if?this.__instance.forwardHostProp(C,y):(this.__invalidProps=this.__invalidProps||Object.create(null),this.__invalidProps[uf(C)]=!0))}}));
this.__instance=new this.__ctor;(0,_.P1)(I).insertBefore(this.__instance.root,this)};
_.u.__teardownInstance=function(){if(this.__instance){var I=this.__instance.children;if(I&&I.length){var C=(0,_.P1)(I[0]).parentNode;if(C){C=(0,_.P1)(C);for(var y=0,k=void 0;y<I.length&&(k=I[y]);y++)C.removeChild(k)}}this.__instance=this.__invalidProps=null}};
_.u.__syncHostProperties=function(){var I=this.__invalidProps;if(I){this.__invalidProps=null;for(var C in I)this.__instance._setPendingProperty(C,this.__dataHost[C]);this.__instance._flushProperties()}};
_.u._showHideChildren=function(){var I=this.__hideTemplateChildren__||!this.if;this.__instance&&!!this.__instance.__hidden!==I&&(this.__instance.__hidden=I,this.__instance._showHideChildren(I));I||this.__syncHostProperties()};
_.NH=mI?d1u:x1e;customElements.define(_.NH.is,_.NH);Polymer.enqueueDebouncer=_.yP;Polymer.flush=_.zJ;Polymer.Templatize={templatize:v1,modelForElement:wpt};Polymer.TemplateInstanceBase=gX;Polymer.DomIf=_.NH;var qNm=g3e(Je),QG=function(){var I=qNm.call(this)||this;I.__instances=[];I.__renderDebouncer=null;I.__itemsIdxToInstIdx={};I.__chunkCount=null;I.__renderStartTime=null;I.__itemsArrayChanged=!1;I.__shouldMeasureChunk=!1;I.__shouldContinueChunking=!1;I.__chunkingId=0;I.__sortFn=null;I.__filterFn=null;I.__observePaths=null;I.__ctor=null;I.__isDetached=!0;I.template=null;return I};
_.R(QG,qNm);_.u=QG.prototype;_.u.disconnectedCallback=function(){qNm.prototype.disconnectedCallback.call(this);this.__isDetached=!0;for(var I=0;I<this.__instances.length;I++)this.__detachInstance(I);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)};
_.u.connectedCallback=function(){qNm.prototype.connectedCallback.call(this);auI()||(this.style.display="none");if(this.__isDetached){this.__isDetached=!1;for(var I=(0,_.P1)((0,_.P1)(this).parentNode),C=0;C<this.__instances.length;C++)this.__attachInstance(C,I);this.__chunkingId&&this.__render()}};
_.u.__ensureTemplatized=function(){var I=this;if(!this.__ctor){var C=this.template=this._templateInfo?this:this.querySelector("template");if(!C){var y=new MutationObserver(function(){if(I.querySelector("template"))y.disconnect(),I.__render();else throw Error("Ld");});
y.observe(this,{childList:!0});return!1}var k={};k[this.as]=!0;k[this.indexAs]=!0;k[this.itemsIndexAs]=!0;this.__ctor=v1(C,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:k,forwardHostProp:function(F,z){for(var c=this.__instances,r=0,w=void 0;r<c.length&&(w=c[r]);r++)w.forwardHostProp(F,z)},
notifyInstanceProp:function(F,z,c){fnW(this.as,z)&&(F=F[this.itemsIndexAs],z==this.as&&(this.items[F]=c),z=T2(this.as,"items."+F,z),this.notifyPath(z,c))}})}return!0};
_.u.__getMethodHost=function(){return this.__dataHost._methodHost||this.__dataHost};
_.u.__functionFromPropertyValue=function(I){if(typeof I==="string"){var C=this.__getMethodHost();return function(){return C[I].apply(C,arguments)}}return I};
_.u.__sortChanged=function(I){this.__sortFn=this.__functionFromPropertyValue(I);this.items&&this.__debounceRender(this.__render)};
_.u.__filterChanged=function(I){this.__filterFn=this.__functionFromPropertyValue(I);this.items&&this.__debounceRender(this.__render)};
_.u.__computeFrameTime=function(I){return Math.ceil(1E3/I)};
_.u.__observeChanged=function(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")};
_.u.__handleObservedPaths=function(I){if(this.__sortFn||this.__filterFn)if(!I)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths)for(var C=this.__observePaths,y=0;y<C.length;y++)I.indexOf(C[y])===0&&this.__debounceRender(this.__render,this.delay)};
_.u.__itemsChanged=function(I){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items);this.__handleItemPath(I.path,I.value)||(I.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))};
_.u.__debounceRender=function(I,C){C=C===void 0?0:C;this.__renderDebouncer=_.on(this.__renderDebouncer,C>0?_.EI.after(C):f7,I.bind(this));_.yP(this.__renderDebouncer)};
_.u.render=function(){this.__debounceRender(this.__render);_.zJ()};
_.u.__render=function(){var I=this;if(this.__ensureTemplatized()){var C=this.items||[],y=this.__sortAndFilterItems(C),k=this.__calculateLimit(y.length);this.__updateInstances(C,k,y);this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(function(){I.__chunkingId=null;I.__continueChunking()}));
this._setRenderedItemCount(this.__instances.length);Z9&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}};
_.u.__sortAndFilterItems=function(I){for(var C=this,y=Array(I.length),k=0;k<I.length;k++)y[k]=k;this.__filterFn&&(y=y.filter(function(F,z,c){return C.__filterFn(I[F],z,c)}));
this.__sortFn&&y.sort(function(F,z){return C.__sortFn(I[F],I[z])});
return y};
_.u.__calculateLimit=function(I){var C=I,y=this.__instances.length;if(this.initialCount){var k;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(C=Math.min(I,this.initialCount),this.__chunkCount=(k=Math.max(C-y,0))||1):(k=Math.min(Math.max(I-y,0),this.__chunkCount),C=Math.min(y+k,I));this.__shouldMeasureChunk=k===this.__chunkCount;this.__shouldContinueChunking=C<I;this.__renderStartTime=performance.now()}this.__itemsArrayChanged=!1;return C};
_.u.__continueChunking=function(){if(this.__shouldMeasureChunk){var I=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this._targetFrameTime/I*this.__chunkCount)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)};
_.u.__updateInstances=function(I,C,y){var k=this.__itemsIdxToInstIdx={},F;for(F=0;F<C;F++){var z=this.__instances[F],c=y[F],r=I[c];k[c]=F;z?(z._setPendingProperty(this.as,r),z._setPendingProperty(this.indexAs,F),z._setPendingProperty(this.itemsIndexAs,c),z._flushProperties()):this.__insertInstance(r,F,c)}for(I=this.__instances.length-1;I>=F;I--)this.__detachAndRemoveInstance(I)};
_.u.__detachInstance=function(I){I=this.__instances[I];for(var C=(0,_.P1)(I.root),y=0;y<I.children.length;y++)C.appendChild(I.children[y]);return I};
_.u.__attachInstance=function(I,C){C.insertBefore(this.__instances[I].root,this)};
_.u.__detachAndRemoveInstance=function(I){this.__detachInstance(I);this.__instances.splice(I,1)};
_.u.__stampInstance=function(I,C,y){var k={};k[this.as]=I;k[this.indexAs]=C;k[this.itemsIndexAs]=y;return new this.__ctor(k)};
_.u.__insertInstance=function(I,C,y){I=this.__stampInstance(I,C,y);y=(y=this.__instances[C+1])?y.children[0]:this;(0,_.P1)((0,_.P1)(this).parentNode).insertBefore(I.root,y);return this.__instances[C]=I};
_.u._showHideChildren=function(I){for(var C=0;C<this.__instances.length;C++)this.__instances[C]._showHideChildren(I)};
_.u.__handleItemPath=function(I,C){var y=I.slice(6),k=y.indexOf(".");I=k<0?y:y.substring(0,k);if(I==parseInt(I,10)){y=k<0?"":y.substring(k+1);this.__handleObservedPaths(y);if(I=this.__instances[this.__itemsIdxToInstIdx[I]])I._setPendingPropertyOrPath(this.as+(y?"."+y:""),C,!1,!0),I._flushProperties();return!0}};
_.u.itemForElement=function(I){return(I=this.modelForElement(I))&&I[this.as]};
_.u.indexForElement=function(I){return(I=this.modelForElement(I))&&I[this.indexAs]};
_.u.modelForElement=function(I){return wpt(this.template,I)};
_.H1.Object.defineProperties(QG,{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:QG.prototype.__sortChanged},filter:{type:Function,observer:QG.prototype.__filterChanged},observe:{type:String,observer:QG.prototype.__observeChanged},delay:Number,renderedItemCount:{type:Number,notify:!Z9,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.*)"]}}});
QG.prototype._setRenderedItemCount=function(){};
customElements.define(QG.is,QG);Polymer.DomRepeat=QG;var m1e=function(I,C){var y=this;this._nativeChildrenObserver=this._shadyChildrenObserver=null;this._connected=!1;this._target=I;this.callback=C;this._effectiveNodes=[];this._observer=null;this._scheduled=!1;this._boundSchedule=function(){y._schedule()};
this.connect();this._schedule()},ZAq=function(I){var C=(0,_.P1)(I);
if(xd(I))return C.assignedNodes({flatten:!0});I=[];for(var y=0;y<C.childNodes.length;y++){var k=C.childNodes[y];xd(k)?I.push.apply(I,_.Py((0,_.P1)(k).assignedNodes({flatten:!0}))):I.push(k)}return I};
_.u=m1e.prototype;_.u.connect=function(){var I=this;xd(this._target)?this._listenSlots([this._target]):(0,_.P1)(this._target).children&&(this._listenSlots((0,_.P1)(this._target).children),window.ShadyDOM?this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,function(C){I._processMutations(C)}):(this._nativeChildrenObserver=new MutationObserver(function(C){I._processMutations(C)}),this._nativeChildrenObserver.observe(this._target,{childList:!0})));
this._connected=!0};
_.u.disconnect=function(){xd(this._target)?this._unlistenSlots([this._target]):(0,_.P1)(this._target).children&&(this._unlistenSlots((0,_.P1)(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};
_.u._schedule=function(){var I=this;this._scheduled||(this._scheduled=!0,f7.run(function(){return I.flush()}))};
_.u._processMutations=function(I){this._processSlotMutations(I);this.flush()};
_.u._processSlotMutations=function(I){if(I)for(var C=0;C<I.length;C++){var y=I[C];y.addedNodes&&this._listenSlots(y.addedNodes);y.removedNodes&&this._unlistenSlots(y.removedNodes)}};
_.u.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 I={target:this._target,addedNodes:[],removedNodes:[]},C=ZAq(this._target),y=iMK(C,this._effectiveNodes),k=0,F=void 0;k<y.length&&(F=y[k]);k++)for(var z=0,c=void 0;z<F.removed.length&&(c=F.removed[z]);z++)I.removedNodes.push(c);
k=0;for(F=void 0;k<y.length&&(F=y[k]);k++)for(z=F.index;z<F.index+F.addedCount;z++)I.addedNodes.push(C[z]);this._effectiveNodes=C;C=!1;if(I.addedNodes.length||I.removedNodes.length)C=!0,this.callback.call(this._target,I);return C};
_.u._listenSlots=function(I){for(var C=0;C<I.length;C++){var y=I[C];xd(y)&&y.addEventListener("slotchange",this._boundSchedule)}};
_.u._unlistenSlots=function(I){for(var C=0;C<I.length;C++){var y=I[C];xd(y)&&y.removeEventListener("slotchange",this._boundSchedule)}};var cC=Element.prototype,B90=cC.matches||cC.matchesSelector||cC.mozMatchesSelector||cC.msMatchesSelector||cC.oMatchesSelector||cC.webkitMatchesSelector,E35=function(I,C){return B90.call(I,C)},qs=function(I){window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.patch(I);
this.node=I},trw;
_.u=qs.prototype;_.u.observeNodes=function(I){return new m1e(this.node,I)};
_.u.unobserveNodes=function(I){I.disconnect()};
_.u.notifyObserver=function(){};
_.u.deepContains=function(I){if((0,_.P1)(this.node).contains(I))return!0;var C=I;for(I=I.ownerDocument;C&&C!==I&&C!==this.node;)C=(0,_.P1)(C).parentNode||(0,_.P1)(C).host;return C===this.node};
_.u.getOwnerRoot=function(){return(0,_.P1)(this.node).getRootNode()};
_.u.getDistributedNodes=function(){return this.node.localName==="slot"?(0,_.P1)(this.node).assignedNodes({flatten:!0}):[]};
_.u.getDestinationInsertionPoints=function(){for(var I=[],C=(0,_.P1)(this.node).assignedSlot;C;)I.push(C),C=(0,_.P1)(C).assignedSlot;return I};
_.u.importNode=function(I,C){return(0,_.P1)(this.node instanceof Document?this.node:this.node.ownerDocument).importNode(I,C)};
_.u.getEffectiveChildNodes=function(){return ZAq(this.node)};
_.u.queryDistributedElements=function(I){for(var C=this.getEffectiveChildNodes(),y=[],k=0,F=C.length,z=void 0;k<F&&(z=C[k]);k++)z.nodeType===Node.ELEMENT_NODE&&E35(z,I)&&y.push(z);return y};
_.H1.Object.defineProperties(qs.prototype,{activeElement:{configurable:!0,enumerable:!0,get:function(){var I=this.node;return I._activeElement!==void 0?I._activeElement:I.activeElement}}});
var e_=function(I){this.event=I};
_.H1.Object.defineProperties(e_.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 hQ8=qs;if(window.ShadyDOM&&window.ShadyDOM.inUse&&window.ShadyDOM.noPatch&&window.ShadyDOM.Wrapper){var U1q=window.ShadyDOM.Wrapper,HA5=function(){return U1q.apply(this,arguments)||this};
_.R(HA5,U1q);Object.getOwnPropertyNames(qs.prototype).forEach(function(I){I!="activeElement"&&I!="constructor"&&(HA5.prototype[I]=qs.prototype[I])});
Psm(HA5.prototype,["classList"]);hQ8=HA5;Object.defineProperties(e_.prototype,{localTarget:{get:function(){var I=this.event.currentTarget;I=I&&_.lG(I).getOwnerRoot();for(var C=this.path,y=0;y<C.length;y++){var k=C[y];if(_.lG(k).getOwnerRoot()===I)return k}},
configurable:!0},path:{get:function(){return window.ShadyDOM.composedPath(this.event)},
configurable:!0}})}else nXm(),Psm(qs.prototype,"parentNode firstChild lastChild nextSibling previousSibling firstElementChild lastElementChild nextElementSibling previousElementSibling childNodes children classList shadowRoot".split(" ")),L2m();trw=hQ8;_.lG=function(I){I=I||document;if(I instanceof hQ8)return I;if(I instanceof e_)return I;var C=I.__domApi;C||(I instanceof Event?C=new e_(I):C=new hQ8(I),I.__domApi=C);return C};var J7q=/:host\(:dir\((ltr|rtl)\)\)/g,OAd=/([\s\w-#\.\[\]\*]*):dir\((ltr|rtl)\)/g,a0w=/:dir\((?:ltr|rtl)\)/,Mrq=!(!window.ShadyDOM||!window.ShadyDOM.inUse),Z7=[],ro=null,mo="",Iku=he(function(I){Mrq||ro||(mo=document.documentElement.getAttribute("dir"),ro=new MutationObserver(DEK),ro.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]}));var C=kg0(I);I=function(){var y=C.call(this)||this;y.__autoDirOptOut=!1;return y};
_.R(I,C);I._processStyleText=function(y,k){y=C._processStyleText.call(this,y,k);!Mrq&&a0w.test(y)&&(y=this._replaceDirInCssText(y),this.__activateDir=!0);return y};
I._replaceDirInCssText=function(y){y=y.replace(J7q,':host([dir="$1"])');return y=y.replace(OAd,':host([dir="$2"]) $1')};
I.prototype.ready=function(){C.prototype.ready.call(this);this.__autoDirOptOut=this.hasAttribute("dir")};
I.prototype.connectedCallback=function(){C.prototype.connectedCallback&&C.prototype.connectedCallback.call(this);this.constructor.__activateDir&&(ro&&ro.takeRecords().length&&DEK(),Z7.push(this),this.__autoDirOptOut||this.setAttribute("dir",mo))};
I.prototype.disconnectedCallback=function(){C.prototype.disconnectedCallback&&C.prototype.disconnectedCallback.call(this);if(this.constructor.__activateDir){var y=Z7.indexOf(this);y>-1&&Z7.splice(y,1)}};
I.__activateDir=!1;return I});var C6e=function(I){for(;I;){var C=Object.getOwnPropertyDescriptor(I,"observedAttributes");if(C)return C.get;I=Object.getPrototypeOf(I.prototype).constructor}return function(){return[]}};
he(function(I){var C=te(I),y=C6e(C);I=function(){return C.call(this)||this};
_.R(I,C);I.prototype._initializeProperties=function(){this.hasAttribute("disable-upgrade")?this.__isUpgradeDisabled=!0:C.prototype._initializeProperties.call(this)};
I.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
I.prototype._canApplyPropertyDefault=function(k){return C.prototype._canApplyPropertyDefault.call(this,k)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(k))};
I.prototype.attributeChangedCallback=function(k,F,z,c){k=="disable-upgrade"?this.__isUpgradeDisabled&&z==null&&(C.prototype._initializeProperties.call(this),this.__isUpgradeDisabled=!1,(0,_.P1)(this).isConnected&&C.prototype.connectedCallback.call(this)):C.prototype.attributeChangedCallback.call(this,k,F,z,c)};
I.prototype.connectedCallback=function(){this.__isUpgradeDisabled||C.prototype.connectedCallback.call(this)};
I.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||C.prototype.disconnectedCallback.call(this)};
_.H1.Object.defineProperties(I,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return y.call(this).concat("disable-upgrade")}}});
return I});var B1=!1,QcI=[],Eo=[];var lZX=window.ShadyDOM,XpO=window.ShadyCSS;window.WebComponents?window.addEventListener("WebComponentsReady",R99):document.readyState==="interactive"||document.readyState==="complete"?R99():window.addEventListener("DOMContentLoaded",R99);var Gx9=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=""},bnz=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//gim,YdF=/@import[^;]*;/gim,vXW=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?(?:[;\n]|$)/gim,W2F=/(?:^[^;\-\s}]+)?--[^;{}]*?:[^{};]*?{[^}]*?}(?:[;\n]|$)?/gim,dEz=/@apply\s*\(?[^);]*\)?\s*(?:[;\n]|$)?/gim,xEF=/[^;:]*?:[^;]*?var\([^;]*\)(?:[;\n]|$)?/gim,Aaz=/^@[^\s]*keyframes/,
K2I=/\s+/g;var qdm={};var Blt=Promise.resolve();var sQb=new Set;var o9d=/;\s*/m,ySq=/^\s*(initial)|(inherit)\s*$/,kLw=/\s*!important/,Fjd=function(){this._map={}};
Fjd.prototype.set=function(I,C){I=I.trim();this._map[I]={properties:C,dependants:{}}};
Fjd.prototype.get=function(I){I=I.trim();return this._map[I]||null};
var uyq=null,ib=function(){this._measureElement=this._currentElement=null;this._map=new Fjd};
_.u=ib.prototype;_.u.detectMixin=function(I){I=jtq.test(I)||VrP.test(I);jtq.lastIndex=0;VrP.lastIndex=0;return I};
_.u.transformTemplate=function(I,C){if(I._gatheredStyle===void 0){var y=[];for(var k=I.content.querySelectorAll("style"),F=0;F<k.length;F++){var z=k[F];if(z.hasAttribute("shady-unscoped")){if(!jYt){var c=z.textContent;if(!sQb.has(c)){sQb.add(c);var r=document.createElement("style");r.setAttribute("shady-unscoped","");r.textContent=c;document.head.appendChild(r)}z.parentNode.removeChild(z)}}else y.push(z.textContent),z.parentNode.removeChild(z)}(y=y.join("").trim())?(k=document.createElement("style"),
k.textContent=y,I.content.insertBefore(k,I.content.firstChild),y=k):y=null;I._gatheredStyle=y}return(I=I._gatheredStyle)?this.JSC$9052_transformStyle(I,C):null};
_.u.JSC$9052_transformStyle=function(I,C){C=C===void 0?"":C;var y=HnH(I);this.transformRules(y,C);I.textContent=UEF(y);return y};
_.u.transformCustomStyle=function(I){var C=this,y=HnH(I);JaX(y,function(k){k.selector===":root"&&(k.selector="html");C.transformRule(k)});
I.textContent=UEF(y);return y};
_.u.transformRules=function(I,C){var y=this;this._currentElement=C;JaX(I,function(k){y.transformRule(k)});
this._currentElement=null};
_.u.transformRule=function(I){I.cssText=zde(this,I.parsedCssText,I);I.selector===":root"&&(I.selector=":host > *")};
var zde=function(I,C,y){C=C.replace(VrP,function(k,F,z,c){return I._produceCssProperties(k,F,z,c,y)});
return I._consumeCssProperties(C,y)};
_.u=ib.prototype;_.u._getInitialValueForProperty=function(I){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(I)};
_.u._fallbacksFromPreviousRules=function(I){for(var C=this,y=I;y.parent;)y=y.parent;var k={},F=!1;JaX(y,function(z){(F=F||z===I)||z.selector===I.selector&&Object.assign(k,C._cssTextToMap(z.parsedCssText))});
return k};
_.u._consumeCssProperties=function(I,C){for(var y;y=jtq.exec(I);){var k=y[0],F=y[1];y=y.index;var z=y+k.indexOf("@apply"),c=y+k.length;k=I.slice(0,z);I=I.slice(c);z=C?this._fallbacksFromPreviousRules(C):{};Object.assign(z,this._cssTextToMap(k));F=this._atApplyToCssProperties(F,z);I=k+F+I;jtq.lastIndex=y+F.length}return I};
_.u._atApplyToCssProperties=function(I,C){I=I.replace(o9d,"");var y=[],k=this._map.get(I);k||(this._map.set(I,{}),k=this._map.get(I));if(k){this._currentElement&&(k.dependants[this._currentElement]=!0);var F,z=k.properties;for(F in z){var c=C&&C[F];k=[F,": var(",I,"_-_",F];c&&k.push(",",c.replace(kLw,""));k.push(")");kLw.test(z[F])&&k.push(" !important");y.push(k.join(""))}}return y.join("; ")};
_.u._replaceInitialOrInherit=function(I,C){var y=ySq.exec(C);y&&(C=y[1]?this._getInitialValueForProperty(I):"apply-shim-inherit");return C};
_.u._cssTextToMap=function(I,C){C=C===void 0?!1:C;I=I.split(";");for(var y,k,F={},z=0;z<I.length;z++)if(y=I[z])k=y.split(":"),k.length>1&&(y=k[0].trim(),k=k.slice(1).join(":"),C&&(k=this._replaceInitialOrInherit(y,k)),F[y]=k);return F};
_.u._invalidateMixinEntry=function(I){if(uyq)for(var C in I.dependants)C!==this._currentElement&&uyq(C)};
_.u._produceCssProperties=function(I,C,y,k,F){var z=this;y&&On9(y,function(b,S){S&&z._map.get(S)&&(k="@apply "+S+";")});
if(!k)return I;var c=this._consumeCssProperties(""+k,F);F=I.slice(0,I.indexOf("--"));var r=c=this._cssTextToMap(c,!0),w=this._map.get(C),L=w&&w.properties;L?r=Object.assign(Object.create(L),c):this._map.set(C,r);var D=[],p,Q=!1;for(p in r){var X=c[p];X===void 0&&(X="initial");!L||p in L||(Q=!0);D.push(C+"_-_"+p+": "+X)}Q&&this._invalidateMixinEntry(w);w&&(w.properties=r);y&&(F=I+";"+F);return F+D.join("; ")+";"};
ib.prototype.detectMixin=ib.prototype.detectMixin;ib.prototype.transformStyle=ib.prototype.JSC$9052_transformStyle;ib.prototype.transformCustomStyle=ib.prototype.transformCustomStyle;ib.prototype.transformRules=ib.prototype.transformRules;ib.prototype.transformRule=ib.prototype.transformRule;ib.prototype.transformTemplate=ib.prototype.transformTemplate;ib.prototype._separator="_-_";Object.defineProperty(ib.prototype,"invalidCallback",{get:function(){return uyq},
set:function(I){uyq=I}});var wo=new ib,Tiu=function(){this.customStyleInterface=null;wo.invalidCallback=mEF},n6=function(I){!I.customStyleInterface&&window.ShadyCSS.CustomStyleInterface&&(I.customStyleInterface=window.ShadyCSS.CustomStyleInterface,I.customStyleInterface.transformCallback=function(C){wo.transformCustomStyle(C)},I.customStyleInterface.validateCallback=function(){requestAnimationFrame(function(){I.customStyleInterface.enqueued&&I.flushCustomStyles()})})};
_.u=Tiu.prototype;_.u.prepareTemplate=function(I,C){n6(this);aZK(I)===""&&(qdm[C]=I,C=wo.transformTemplate(I,C),I._styleAst=C)};
_.u.flushCustomStyles=function(){n6(this);if(this.customStyleInterface){var I=this.customStyleInterface.processStyles();if(this.customStyleInterface.enqueued){for(var C=0;C<I.length;C++){var y=this.customStyleInterface.getStyleForCustomStyle(I[C]);y&&wo.transformCustomStyle(y)}this.customStyleInterface.enqueued=!1}}};
_.u.styleSubtree=function(I,C){n6(this);C&&PYI(I,C);if(I.shadowRoot)for(this.styleElement(I),I=I.shadowRoot.children||I.shadowRoot.childNodes,C=0;C<I.length;C++)this.styleSubtree(I[C]);else for(I=I.children||I.childNodes,C=0;C<I.length;C++)this.styleSubtree(I[C])};
_.u.styleElement=function(I){n6(this);var C=I.localName,y;C?C.indexOf("-")>-1?y=C:y=I.getAttribute&&I.getAttribute("is")||"":y=I.is;C=qdm[y];if(!(C&&aZK(C)!==""||!C||Znz(C))){if(Znz(C)||C._applyShimValidatingVersion!==C._applyShimNextVersion)this.prepareTemplate(C,y),EXO(C);if(I=I.shadowRoot)if(I=I.querySelector("style"))I.__cssRules=C._styleAst,I.textContent=UEF(C._styleAst)}};
_.u.styleDocument=function(I){n6(this);this.styleSubtree(document.body,I)};
if(!window.ShadyCSS||!window.ShadyCSS.ScopingShim){var PC=new Tiu,cSu=window.ShadyCSS&&window.ShadyCSS.CustomStyleInterface;window.ShadyCSS={prepareTemplate:function(I,C){PC.flushCustomStyles();PC.prepareTemplate(I,C)},
prepareTemplateStyles:function(I,C,y){window.ShadyCSS.prepareTemplate(I,C,y)},
prepareTemplateDom:function(){},
styleSubtree:function(I,C){PC.flushCustomStyles();PC.styleSubtree(I,C)},
styleElement:function(I){PC.flushCustomStyles();PC.styleElement(I)},
styleDocument:function(I){PC.flushCustomStyles();PC.styleDocument(I)},
getComputedStyleValue:function(I,C){return LOI(I,C)},
flushCustomStyles:function(){PC.flushCustomStyles()},
nativeCss:h9z,nativeShadow:jYt,cssBuild:Uo,disableRuntime:$1w};cSu&&(window.ShadyCSS.CustomStyleInterface=cSu)}window.ShadyCSS.ApplyShim=wo;var edP;edP=window.ShadyCSS;_.L6=he(function(I){I=A78(te(I));var C=n3u?I:Iku(I),y=C6e(C),k={x:"pan-x",y:"pan-y",none:"none",all:"auto"};I=function(){return C.call(this)||this};
_.R(I,C);I.prototype.created=function(){};
I.prototype.__attributeReaction=function(F,z,c){(this.__dataAttributes&&this.__dataAttributes[F]||F==="disable-upgrade")&&this.attributeChangedCallback(F,z,c,null)};
I.prototype.setAttribute=function(F,z){if(ZqP&&!this._legacyForceObservedAttributes){var c=this.getAttribute(F);C.prototype.setAttribute.call(this,F,z);this.__attributeReaction(F,c,String(z))}else C.prototype.setAttribute.call(this,F,z)};
I.prototype.removeAttribute=function(F){if(ZqP&&!this._legacyForceObservedAttributes){var z=this.getAttribute(F);C.prototype.removeAttribute.call(this,F);this.__attributeReaction(F,z,null)}else C.prototype.removeAttribute.call(this,F)};
I.prototype._enableProperties=function(){this.__isUpgradeDisabled||C.prototype._enableProperties.call(this)};
I.prototype._canApplyPropertyDefault=function(F){return C.prototype._canApplyPropertyDefault.call(this,F)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(F))};
I.prototype.connectedCallback=function(){this.__needsAttributesAtConnected&&this._takeAttributes();this.__isUpgradeDisabled||(C.prototype.connectedCallback.call(this),this.isAttached=!0,this.attached())};
I.prototype.attached=function(){};
I.prototype.disconnectedCallback=function(){this.__isUpgradeDisabled||(C.prototype.disconnectedCallback.call(this),this.isAttached=!1,this.detached())};
I.prototype.detached=function(){};
I.prototype.attributeChangedCallback=function(F,z,c,r){z!==c&&(F=="disable-upgrade"?this.__isUpgradeDisabled&&c==null&&(this._initializeProperties(),this.__isUpgradeDisabled=!1,(0,_.P1)(this).isConnected&&this.connectedCallback()):(C.prototype.attributeChangedCallback.call(this,F,z,c,r),this.attributeChanged(F,z,c)))};
I.prototype.attributeChanged=function(){};
I.prototype._initializeProperties=function(){if(K7&&this.hasAttribute("disable-upgrade"))this.__isUpgradeDisabled=!0;else{var F=Object.getPrototypeOf(this);F.hasOwnProperty("__hasRegisterFinished")||(this._registered(),F.__hasRegisterFinished=!0);C.prototype._initializeProperties.call(this);this.root=this;this.created();ZqP&&!this._legacyForceObservedAttributes&&(this.hasAttributes()?this._takeAttributes():this.parentNode||(this.__needsAttributesAtConnected=!0));this._applyListeners()}};
I.prototype._takeAttributes=function(){for(var F=this.attributes,z=0,c=F.length;z<c;z++){var r=F[z];this.__attributeReaction(r.name,null,r.value)}};
I.prototype._registered=function(){};
I.prototype.ready=function(){this._ensureAttributes();C.prototype.ready.call(this)};
I.prototype._ensureAttributes=function(){};
I.prototype._applyListeners=function(){};
I.prototype.serialize=function(F){return this._serializeValue(F)};
I.prototype.deserialize=function(F,z){return this._deserializeValue(F,z)};
I.prototype.reflectPropertyToAttribute=function(F,z,c){this._propertyToAttribute(F,z,c)};
I.prototype.serializeValueToAttribute=function(F,z,c){this._valueToNodeAttribute(c||this,F,z)};
I.prototype.extend=function(F,z){if(!F||!z)return F||z;for(var c=Object.getOwnPropertyNames(z),r=0,w=void 0;r<c.length&&(w=c[r]);r++){var L=Object.getOwnPropertyDescriptor(z,w);L&&Object.defineProperty(F,w,L)}return F};
I.prototype.mixin=function(F,z){for(var c in z)F[c]=z[c];return F};
I.prototype.chainObject=function(F,z){F&&z&&F!==z&&(F.__proto__=z);return F};
I.prototype.instanceTemplate=function(F){F=this.constructor._contentForTemplate(F);return document.importNode(F,!0)};
I.prototype.fire=function(F,z,c){c=c||{};z=z===null||z===void 0?{}:z;F=new Event(F,{bubbles:c.bubbles===void 0?!0:c.bubbles,cancelable:!!c.cancelable,composed:c.composed===void 0?!0:c.composed});F.detail=z;(0,_.P1)(c.node||this).dispatchEvent(F);return F};
I.prototype.listen=function(F,z,c){F=F||this;var r=this.__boundListeners||(this.__boundListeners=new WeakMap),w=r.get(F);w||(w={},r.set(F,w));r=z+c;w[r]||(w[r]=this._addMethodEventListenerToNode(F,z,c,this))};
I.prototype.unlisten=function(F,z,c){F=F||this;var r=this.__boundListeners&&this.__boundListeners.get(F);c=z+c;var w=r&&r[c];w&&(this._removeEventListenerFromNode(F,z,w),r[c]=null)};
I.prototype.setScrollDirection=function(F,z){_.G2(z||this,k[F]||"auto")};
I.prototype.$$=function(F){return this.root.querySelector(F)};
I.prototype.distributeContent=function(){var F=_.lG(this);window.ShadyDOM&&F.shadowRoot&&ShadyDOM.flush()};
I.prototype.getEffectiveChildNodes=function(){return _.lG(this).getEffectiveChildNodes()};
I.prototype.queryDistributedElements=function(F){return _.lG(this).queryDistributedElements(F)};
I.prototype.getEffectiveChildren=function(){return this.getEffectiveChildNodes().filter(function(F){return F.nodeType===Node.ELEMENT_NODE})};
I.prototype.getEffectiveTextContent=function(){for(var F=this.getEffectiveChildNodes(),z=[],c=0,r;r=F[c];c++)r.nodeType!==Node.COMMENT_NODE&&z.push(r.textContent);return z.join("")};
I.prototype.queryEffectiveChildren=function(F){return(F=this.queryDistributedElements(F))&&F[0]};
I.prototype.queryAllEffectiveChildren=function(F){return this.queryDistributedElements(F)};
I.prototype.getContentChildNodes=function(F){return(F=this.root.querySelector(F||"slot"))?_.lG(F).getDistributedNodes():[]};
I.prototype.getContentChildren=function(F){return this.getContentChildNodes(F).filter(function(z){return z.nodeType===Node.ELEMENT_NODE})};
I.prototype.isLightDescendant=function(F){return this!==F&&(0,_.P1)(this).contains(F)&&(0,_.P1)(this).getRootNode()===(0,_.P1)(F).getRootNode()};
I.prototype.isLocalDescendant=function(F){return this.root===(0,_.P1)(F).getRootNode()};
I.prototype.scopeSubtree=function(F,z){return $E9(F,z===void 0?!1:z)};
I.prototype.getComputedStyleValue=function(F){return edP.getComputedStyleValue(this,F)};
I.prototype.debounce=function(F,z,c){this._debouncers=this._debouncers||{};return this._debouncers[F]=_.on(this._debouncers[F],c>0?_.EI.after(c):f7,z.bind(this))};
I.prototype.isDebouncerActive=function(F){this._debouncers=this._debouncers||{};F=this._debouncers[F];return!(!F||!F.isActive())};
I.prototype.flushDebouncer=function(F){this._debouncers=this._debouncers||{};(F=this._debouncers[F])&&F.flush()};
I.prototype.cancelDebouncer=function(F){this._debouncers=this._debouncers||{};(F=this._debouncers[F])&&F.cancel()};
I.prototype.async=function(F,z){return z>0?_.EI.run(F.bind(this),z):~f7.run(F.bind(this))};
I.prototype.cancelAsync=function(F){F<0?f7.cancel(~F):_.EI.cancel(F)};
I.prototype.create=function(F,z){F=document.createElement(F);if(z)if(F.setProperties)F.setProperties(z);else for(var c in z)F[c]=z[c];return F};
I.prototype.elementMatches=function(F,z){return E35(z||this,F)};
I.prototype.toggleAttribute=function(F,z){var c=this;arguments.length===3&&(c=arguments[2]);arguments.length==1&&(z=!c.hasAttribute(F));if(z)return(0,_.P1)(c).setAttribute(F,""),!0;(0,_.P1)(c).removeAttribute(F);return!1};
I.prototype.toggleClass=function(F,z,c){c=c||this;arguments.length==1&&(z=!c.classList.contains(F));z?c.classList.add(F):c.classList.remove(F)};
I.prototype.transform=function(F,z){z=z||this;z.style.webkitTransform=F;z.style.transform=F};
I.prototype.translate3d=function(F,z,c,r){this.transform("translate3d("+F+","+z+","+c+")",r||this)};
I.prototype.arrayDelete=function(F,z){if(Array.isArray(F)){if(z=F.indexOf(z),z>=0)return F.splice(z,1)}else if(z=es(this,F).indexOf(z),z>=0)return this.splice(F,z,1);return null};
I.prototype._logger=function(F,z){Array.isArray(z)&&z.length===1&&Array.isArray(z[0])&&(z=z[0]);switch(F){case "log":case "warn":case "error":console[F].apply(console,_.Py(z))}};
I.prototype._log=function(){this._logger("log",_.wa.apply(0,arguments))};
I.prototype._warn=function(){this._logger("warn",_.wa.apply(0,arguments))};
I.prototype._error=function(){this._logger("error",_.wa.apply(0,arguments))};
I.prototype._logf=function(F){return["[%s::%s]",this.is,F].concat(_.Py(_.wa.apply(1,arguments)))};
_.H1.Object.defineProperties(I.prototype,{domHost:{configurable:!0,enumerable:!0,get:function(){var F=(0,_.P1)(this).getRootNode();return F instanceof DocumentFragment?F.host:F}}});
_.H1.Object.defineProperties(I,{importMeta:{configurable:!0,enumerable:!0,get:function(){return this.prototype.importMeta}},
observedAttributes:{configurable:!0,enumerable:!0,get:function(){return ZqP&&!this.prototype._legacyForceObservedAttributes?(this.hasOwnProperty("__observedAttributes")||(this.__observedAttributes=[],ln9(this.prototype)),this.__observedAttributes):y.call(this).concat("disable-upgrade")}}});
I.prototype.is="";return I});Polymer.FlattenedNodesObserver=m1e;Polymer.DomApi=trw;Polymer.EventApi=e_;Polymer.dom=_.lG;Polymer.dom.matchesSelector=E35;Polymer.dom.flush=_.zJ;Polymer.dom.addDebouncer=_.yP;Polymer.DirMixin=Iku;Polymer.RenderStatus={beforeNextRender:_.jcX,afterNextRender:_.hn,flush:function(){for(;QcI.length||Eo.length;)ppY(QcI),ppY(Eo);B1=!1}};Polymer.LegacyElementMixin=_.L6;var rSq;rSq=FC._mutablePropertyChange;var ixS={properties:{mutableData:Boolean},_shouldPropertyChange:function(I,C,y){return rSq(this,I,C,y,this.mutableData)}};Polymer.MutableDataBehavior={_shouldPropertyChange:function(I,C,y){return rSq(this,I,C,y,!0)}};
Polymer.OptionalMutableDataBehavior=ixS;var MLI={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,listeners:!0,hostAttributes:!0},yuX={attached:!0,detached:!0,ready:!0,created:!0,beforeRegister:!0,registered:!0,attributeChanged:!0,behaviors:!0,_noAccessors:!0},oHs=Object.assign({listeners:!0,hostAttributes:!0,properties:!0,observers:!0},yuX),wgb=(0,_.L6)(HTMLElement),agz=function(I,C){I||console.warn("Polymer.Class requires `info` argument");C=C?C(wgb):wgb;C=kb9(I,C,I.behaviors);C.is=C.prototype.is=
I.is;return C};Polymer.Class=agz;Polymer.mixinBehaviors=function(I,C){return kb9({},(0,_.L6)(C),I)};
Polymer.GenerateClassFromInfo=kb9;_.pK=function(I){var C=typeof I==="function"?I:_.pK.Class(I);I._legacyForceObservedAttributes&&(C.prototype._legacyForceObservedAttributes=I._legacyForceObservedAttributes);customElements.define(C.is,C);return C};
_.pK.Class=agz;Polymer._polymerFn=_.pK;var n9w=window.onLegacyPolymerFunctionDefinedCallback;n9w&&n9w();var IhY={templatize:function(I,C){this._templatizerTemplate=I;this.ctor=v1(I,this,{mutableData:!!C,parentModel:this._parentModel,instanceProps:this._instanceProps,forwardHostProp:this._forwardHostPropV2,notifyInstanceProp:this._notifyInstancePropV2})},
stamp:function(I){return new this.ctor(I)},
modelForElement:function(I){return wpt(this._templatizerTemplate,I)}};Polymer.Templatizer=IhY;_.DQ=(0,_.L6)(HTMLElement).prototype;Polymer.Base=_.DQ;var uvm=/\bclass\b/.test(function(){}.toString());
window.PolymerFakeBaseClass=function(){};
_.tn=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(_.tn,PolymerFakeBaseClass);var Jn=function(){return PolymerFakeBaseClass.apply(this,arguments)||this};
_.R(Jn,PolymerFakeBaseClass);var zFX=Symbol("Md"),PzY=[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 P6P=P6P||{id:"third_party/javascript/node_modules/reflect_decorators/Reflect.closure.js"},Lje;(function(I){function C(U,yW,a){var cs=t.get(U);if(!cs){if(!a)return;cs=new x;t.set(U,cs)}U=cs.get(yW);if(!U){if(!a)return;U=new x;cs.set(yW,U)}return U}
function y(U,yW,a){if(k(U,yW,a))return!0;yW=Q(yW);return yW!==null?y(U,yW,a):!1}
function k(U,yW,a){yW=C(yW,a,!1);return yW===void 0?!1:!!yW.has(U)}
function F(U,yW,a){if(k(U,yW,a))return z(U,yW,a);yW=Q(yW);if(yW!==null)return F(U,yW,a)}
function z(U,yW,a){yW=C(yW,a,!1);if(yW!==void 0)return yW.get(U)}
function c(U,yW){var a=r(U,yW);U=Q(U);if(U===null)return a;var cs=c(U,yW);if(cs.length<=0)return a;if(a.length<=0)return cs;yW=new B;U=[];a=_.T(a);for(var XO=a.next();!XO.done;XO=a.next())XO=XO.value,yW.has(XO)||(yW.add(XO),U.push(XO));a=_.T(cs);for(cs=a.next();!cs.done;cs=a.next())cs=cs.value,yW.has(cs)||(yW.add(cs),U.push(cs));return U}
function r(U,yW){U=C(U,yW,!1);var a=[];U&&U.forEach(function(cs,XO){return a.push(XO)});
return a}
function w(U){return U===void 0}
function L(U){return typeof U==="object"?U!==null:typeof U==="function"}
function D(U){return typeof U==="function"}
function p(U){return typeof U==="symbol"?U:String(U)}
function Q(U){var yW=Object.getPrototypeOf(U);if(typeof U!=="function"||U===A||yW!==A)return yW;var a=Object.getPrototypeOf(U.prototype);if(a==null||a===Object.prototype)return yW;a=a.constructor;return typeof a!=="function"||a===U?yW:a}
function X(){function U(){this._keys=[];this._values=[];this._cache=yW}
var yW={};U.prototype={get size(){return this._keys.length},has:function(a){return a===this._cache?!0:this._find(a)>=0?(this._cache=a,!0):!1},
get:function(a){var cs=this._find(a);if(cs>=0)return this._cache=a,this._values[cs]},
set:function(a,cs){this.delete(a);this._keys.push(a);this._values.push(cs);this._cache=a;return this},
delete:function(a){a=this._find(a);return a>=0?(this._keys.splice(a,1),this._values.splice(a,1),this._cache=yW,!0):!1},
clear:function(){this._keys.length=0;this._values.length=0;this._cache=yW},
forEach:function(a){for(var cs=this.size,XO=0;XO<cs;++XO){var Rm=this._keys[XO],$z=this._values[XO];this._cache=Rm;a.call(this,$z,Rm,this)}},
_find:function(a){for(var cs=this._keys,XO=cs.length,Rm=0;Rm<XO;++Rm)if(cs[Rm]===a)return Rm;return-1}};
return U}
function b(){function U(){this._map=new x}
U.prototype={get size(){return this._map.length},has:function(yW){return this._map.has(yW)},
add:function(yW){this._map.set(yW,yW);return this},
delete:function(yW){return this._map.delete(yW)},
clear:function(){this._map.clear()},
forEach:function(yW,a){this._map.forEach(yW,a)}};
return U}
function S(){function U(){this._key=a()}
function yW(vs,mY){for(var Bs=0;Bs<mY;++Bs)vs[Bs]=Math.random()*255|0}
function a(){do{if(XO)var vs=XO.randomBytes(16);else typeof Uint8Array==="function"?(vs=new Uint8Array(16),typeof crypto!=="undefined"?crypto.getRandomValues(vs):yW(vs,16)):(vs=Array(16),yW(vs,16));vs[6]=vs[6]&79|64;vs[8]=vs[8]&191|128;for(var mY="",Bs=0;Bs<16;++Bs){var n5=vs[Bs];if(Bs===4||Bs===6||Bs===8)mY+="-";n5<16&&(mY+="0");mY+=n5.toString(16).toLowerCase()}vs="@@WeakMap@@"+mY}while(Rm.call($z,vs));$z[vs]=!0;return vs}
function cs(vs,mY){if(!Rm.call(vs,hX)){if(!mY)return;Object.defineProperty(vs,hX,{value:Object.create(null)})}return vs[hX]}
var XO=typeof global!=="undefined"&&typeof P6P==="object"&&typeof require==="function"&&require("crypto"),Rm=Object.prototype.hasOwnProperty,$z={},hX=a();U.prototype={has:function(vs){return(vs=cs(vs,!1))?this._key in vs:!1},
get:function(vs){if(vs=cs(vs,!1))return vs[this._key]},
set:function(vs,mY){cs(vs,!0)[this._key]=mY;return this},
delete:function(vs){return(vs=cs(vs,!1))&&this._key in vs?delete vs[this._key]:!1},
clear:function(){this._key=a()}};
return U}
var A=Object.getPrototypeOf(Function),x=typeof Map==="function"?Map:X(),B=typeof Set==="function"?Set:b(),t=new (typeof WeakMap==="function"?WeakMap:S());I.decorate=function(U,yW,a,cs){if(w(cs)){if(w(a)){if(!Array.isArray(U))throw new TypeError;if(!D(yW))throw new TypeError;for(a=U.length-1;a>=0;--a)if(cs=(0,U[a])(yW),!w(cs)){if(!D(cs))throw new TypeError;yW=cs}return yW}if(!Array.isArray(U))throw new TypeError;if(!L(yW))throw new TypeError;a=p(a);for(cs=U.length-1;cs>=0;--cs)(0,U[cs])(yW,a)}else{if(Array.isArray(U))if(L(yW)){if(w(a))throw new TypeError;
if(!L(cs))throw new TypeError;}else throw new TypeError;else throw new TypeError;a=p(a);for(var XO=U.length-1;XO>=0;--XO){var Rm=(0,U[XO])(yW,a,cs);if(!w(Rm)){if(!L(Rm))throw new TypeError;cs=Rm}}return cs}};
I.metadata=function(U,yW){return function(a,cs){if(w(cs)){if(!D(a))throw new TypeError;C(a,void 0,!0).set(U,yW)}else{if(!L(a))throw new TypeError;cs=p(cs);C(a,cs,!0).set(U,yW)}}};
I.defineMetadata=function(U,yW){var a;if(L(yW))w(a)||(a=p(a));else throw new TypeError;C(yW,a,!0).set("parameters",U)};
I.hasMetadata=function(U,yW,a){if(L(yW))w(a)||(a=p(a));else throw new TypeError;return y(U,yW,a)};
I.hasOwnMetadata=function(U,yW,a){if(L(yW))w(a)||(a=p(a));else throw new TypeError;return k(U,yW,a)};
I.getMetadata=function(U,yW,a){if(L(yW))w(a)||(a=p(a));else throw new TypeError;return F(U,yW,a)};
I.getOwnMetadata=function(U,yW,a){if(L(yW))w(a)||(a=p(a));else throw new TypeError;return z(U,yW,a)};
I.getMetadataKeys=function(U,yW){if(L(U))w(yW)||(yW=p(yW));else throw new TypeError;return c(U,yW)};
I.getOwnMetadataKeys=function(U,yW){if(L(U))w(yW)||(yW=p(yW));else throw new TypeError;return r(U,yW)};
I.deleteMetadata=function(U,yW,a){if(L(yW))w(a)||(a=p(a));else throw new TypeError;var cs=C(yW,a,!1);if(!w(cs)){if(!cs.delete(U))return!1;if(cs.size>0)return!0;U=t.get(yW);U.delete(a);if(U.size>0)return!0;t.delete(yW);return!0}};
(function(U){if(typeof U.Reflect!=="undefined"){if(U.Reflect!==I)for(var yW in I)U.Reflect[yW]=I[yW]}else U.Reflect=I})(typeof window!=="undefined"?window:typeof WorkerGlobalScope!=="undefined"?self:typeof global!=="undefined"?global:globalThis)})(Lje||(Lje={}));var $Fz=self;var Dkm=[0,_.mA,_.E0,_.mA];var pgw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(pgw,_.GR);var QQc=_.hT(pgw,[0,_.lMI,_.h0,Dkm,_.E0,_.Hv]);_.s0(_.Oo,_.LL);_.u=_.Oo.prototype;_.u.start=function(){this.stop();this.usingListeners_=!1;var I=NiP(this),C=Vd5(this);I&&!C&&this.JSC$9095_win_.mozRequestAnimationFrame?(this.JSC$9095_id_=_.Lv(this.JSC$9095_win_,"MozBeforePaint",this.callback_),this.JSC$9095_win_.mozRequestAnimationFrame(null),this.usingListeners_=!0):this.JSC$9095_id_=I&&C?I.call(this.JSC$9095_win_,this.callback_):this.JSC$9095_win_.setTimeout(Ywq(this.callback_),20)};
_.u.stop=function(){if(this.isActive()){var I=NiP(this),C=Vd5(this);I&&!C&&this.JSC$9095_win_.mozRequestAnimationFrame?wY(this.JSC$9095_id_):I&&C?C.call(this.JSC$9095_win_,this.JSC$9095_id_):this.JSC$9095_win_.clearTimeout(this.JSC$9095_id_)}this.JSC$9095_id_=null};
_.u.fire=function(){this.stop();this.JSC$9097_doAction_()};
_.u.isActive=function(){return this.JSC$9095_id_!=null};
_.u.JSC$9097_doAction_=function(){this.usingListeners_&&this.JSC$9095_id_&&wY(this.JSC$9095_id_);this.JSC$9095_id_=null;this.JSC$9095_listener_.call(this.handler_,_.CF())};
_.u.disposeInternal=function(){this.stop();_.Oo.superClass_.disposeInternal.call(this)};
var NiP=function(I){I=I.JSC$9095_win_;return I.requestAnimationFrame||I.webkitRequestAnimationFrame||I.mozRequestAnimationFrame||I.oRequestAnimationFrame||I.msRequestAnimationFrame||null},Vd5=function(I){I=I.JSC$9095_win_;
return I.cancelAnimationFrame||I.cancelRequestAnimationFrame||I.webkitCancelRequestAnimationFrame||I.mozCancelRequestAnimationFrame||I.oCancelRequestAnimationFrame||I.msCancelRequestAnimationFrame||null};_.OG=function(I,C,y){_.LL.call(this);this.JSC$9098_listener_=y!=null?I.bind(y):I;this.JSC$9098_interval_=C;this.args_=null;this.shouldFire_=!1;this.pauseCount_=0;this.JSC$9098_timer_=null};
_.R(_.OG,_.LL);_.u=_.OG.prototype;_.u.fire=function(I){this.args_=arguments;this.JSC$9098_timer_||this.pauseCount_?this.shouldFire_=!0:jQ0(this)};
_.u.stop=function(){this.JSC$9098_timer_&&(_.sF.clearTimeout(this.JSC$9098_timer_),this.JSC$9098_timer_=null,this.shouldFire_=!1,this.args_=null)};
_.u.pause=function(){this.pauseCount_++};
_.u.resume=function(){this.pauseCount_--;this.pauseCount_||!this.shouldFire_||this.JSC$9098_timer_||(this.shouldFire_=!1,jQ0(this))};
_.u.disposeInternal=function(){_.LL.prototype.disposeInternal.call(this);this.stop()};
var jQ0=function(I){I.JSC$9098_timer_=VZ(function(){I.JSC$9098_timer_=null;I.shouldFire_&&!I.pauseCount_&&(I.shouldFire_=!1,jQ0(I))},I.JSC$9098_interval_);
var C=I.args_;I.args_=null;I.JSC$9098_listener_.apply(null,C)};var lku=function(I,C){this.childIterator_=I[_.sF.Symbol.iterator]();this.mapFn_=C};
lku.prototype[Symbol.iterator]=function(){return this};
lku.prototype.next=function(){var I=this.childIterator_.next();return{value:I.done?void 0:this.mapFn_.call(void 0,I.value),done:I.done}};
var Xgq=function(I,C){return new lku(I,C)};var $k0={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 PVF=function(I){var C=Rd0(I);if(!C)throw Error("Qd`"+I);return C},Rd0=function(I){var C={};
I=String(I);var y=I.charAt(0)=="#"?I:"#"+I;if(bxP.test(y))return C.hex=eGK(y),C.type="hex",C;y=QKK(I);return y.length?(C.hex=B3K(y[0],y[1],y[2]),C.type="rgb",C):$k0&&(I=$k0[I.toLowerCase()])?(C.hex=I,C.type="named",C):null},Yec=/#(.)(.)(.)/,eGK=function(I){if(!bxP.test(I))throw Error("Sd`"+I);
I.length==4&&(I=I.replace(Yec,"#$1$1$2$2$3$3"));return I.toLowerCase()},LTI=function(I){I=eGK(I);
I=parseInt(I.slice(1),16);return[I>>16,I>>8&255,I&255]},B3K=function(I,C,y){I=Number(I);
C=Number(C);y=Number(y);if(I!=(I&255)||C!=(C&255)||y!=(y&255))throw Error("Td`"+I+"`"+C+"`"+y);C=I<<16|C<<8|y;return I<16?"#"+(16777216|C).toString(16).slice(1):"#"+C.toString(16)},bxP=/^#(?:[0-9a-f]{3}){1,2}$/i,GL5=/^(?:rgb)?\((0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2}),\s?(0|[1-9]\d{0,2})\)$/i,QKK=function(I){var C=I.match(GL5);
if(C){I=Number(C[1]);var y=Number(C[2]);C=Number(C[3]);if(I>=0&&I<=255&&y>=0&&y<=255&&C>=0&&C<=255)return[I,y,C]}return[]};var fkw={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},Vm=fkw;Vm=fkw;var EJm,SeY,Kjq;EJm=function(I,C){switch(C){case 1:return I%4!=0||I%100==0&&I%400!=0?28:29;case 5:case 8:case 10:case 3:return 30}return 31};
SeY=function(I,C,y,k,F){I=new Date(I,C,y);F=F||0;return I.valueOf()+(((k!==void 0?k:3)-F+7)%7-((I.getDay()+6)%7-F+7)%7)*864E5};
_.p6=function(I,C,y){typeof I==="number"?(this.date=Kjq(I,C||0,y||1),AS8(this,y||1)):_.sw(I)?(this.date=Kjq(I.getFullYear(),I.getMonth(),I.getDate()),AS8(this,I.getDate())):(this.date=new Date(_.CF()),I=this.date.getDate(),this.date.setHours(0),this.date.setMinutes(0),this.date.setSeconds(0),this.date.setMilliseconds(0),AS8(this,I))};
Kjq=function(I,C,y){C=new Date(I,C,y);I>=0&&I<100&&C.setFullYear(C.getFullYear()-1900);return C};
_.u=_.p6.prototype;_.u.firstDayOfWeek_=Vm.FIRSTDAYOFWEEK;_.u.firstWeekCutOffDay_=Vm.FIRSTWEEKCUTOFFDAY;_.u.clone=function(){var I=new _.p6(this.date);I.firstDayOfWeek_=this.firstDayOfWeek_;I.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return I};
_.u.getFullYear=function(){return this.date.getFullYear()};
_.u.getYear=function(){return this.getFullYear()};
_.u.getMonth=function(){return this.date.getMonth()};
_.u.getDate=function(){return this.date.getDate()};
_.u.getTime=function(){return this.date.getTime()};
_.u.getDay=function(){return this.date.getDay()};
_.u.getUTCFullYear=function(){return this.date.getUTCFullYear()};
_.u.getUTCMonth=function(){return this.date.getUTCMonth()};
_.u.getUTCDate=function(){return this.date.getUTCDate()};
_.u.getUTCDay=function(){return this.date.getDay()};
_.u.getUTCHours=function(){return this.date.getUTCHours()};
_.u.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.u.getTimezoneOffset=function(){return this.date.getTimezoneOffset()};
_.u.set=function(I){this.date=new Date(I.getFullYear(),I.getMonth(),I.getDate())};
_.u.setFullYear=function(I){this.date.setFullYear(I)};
_.u.setYear=function(I){this.setFullYear(I)};
_.u.setMonth=function(I){this.date.setMonth(I)};
_.u.setDate=function(I){this.date.setDate(I)};
_.u.setTime=function(I){this.date.setTime(I)};
_.u.setUTCFullYear=function(I){this.date.setUTCFullYear(I)};
_.u.setUTCMonth=function(I){this.date.setUTCMonth(I)};
_.u.setUTCDate=function(I){this.date.setUTCDate(I)};
_.u.add=function(I){if(I.years||I.months){var C=this.getMonth()+I.months+I.years*12,y=this.getYear()+Math.floor(C/12);C%=12;C<0&&(C+=12);var k=Math.min(EJm(y,C),this.getDate());this.setDate(1);this.setFullYear(y);this.setMonth(C);this.setDate(k)}I.days&&(y=this.getYear(),C=y>=0&&y<=99?-1900:0,I=new Date((new Date(y,this.getMonth(),this.getDate(),12)).getTime()+I.days*864E5),this.setDate(1),this.setFullYear(I.getFullYear()+C),this.setMonth(I.getMonth()),this.setDate(I.getDate()),AS8(this,I.getDate()))};
_.u.JSC$9111_toIsoString=function(I){var C=this.getFullYear(),y=C<0?"-":C>=1E4?"+":"";return[y+_.Id(Math.abs(C),y?6:4),_.Id(this.getMonth()+1,2),_.Id(this.getDate(),2)].join(I?"-":"")};
_.u.equals=function(I){return!(!I||this.getYear()!=I.getYear()||this.getMonth()!=I.getMonth()||this.getDate()!=I.getDate())};
_.u.toString=function(){return this.JSC$9111_toIsoString()};
var AS8=function(I,C){I.getDate()!=C&&I.date.setUTCHours(I.date.getUTCHours()+(I.getDate()<C?1:-1))};
_.p6.prototype.valueOf=function(){return this.date.valueOf()};var N7=function(I,C,y,k,F){this.reversed=!!C;this.node=null;this.tagType=0;this.started_=!1;this.constrained=!y;I&&QP(this,I,k);this.depth=F!=void 0?F:this.tagType||0;this.reversed&&(this.depth*=-1)};
_.s0(N7,sI);var QP=function(I,C,y,k){if(I.node=C)I.tagType=typeof y==="number"?y:I.node.nodeType!=1?0:I.reversed?-1:1;typeof k==="number"&&(I.depth=k)};
_.u=N7.prototype;_.u.JSC$9126_copyFrom=function(I){this.node=I.node;this.tagType=I.tagType;this.depth=I.depth;this.reversed=I.reversed;this.constrained=I.constrained};
_.u.clone=function(){return new N7(this.node,this.reversed,!this.constrained,this.tagType,this.depth)};
_.u.next=function(){if(this.started_){if(!this.node||this.constrained&&this.depth==0)return or;var I=this.node;var C=this.reversed?-1:1;if(this.tagType==C){var y=this.reversed?I.lastChild:I.firstChild;y?QP(this,y):QP(this,I,C*-1)}else(y=this.reversed?I.previousSibling:I.nextSibling)?QP(this,y):QP(this,I.parentNode,C*-1);this.depth+=this.tagType*(this.reversed?-1:1)}else this.started_=!0;return(I=this.node)?ye(I):or};
_.u.equals=function(I){return I.node==this.node&&(!this.node||I.tagType==this.tagType)};
_.u.splice=function(I){var C=this.node,y=this.reversed?1:-1;this.tagType==y&&(this.tagType=y*-1,this.depth+=this.tagType*(this.reversed?-1:1));this.reversed=!this.reversed;N7.prototype.next.call(this);this.reversed=!this.reversed;y=_.Mz(arguments[0])?arguments[0]:arguments;for(var k=y.length-1;k>=0;k--)_.SZ(y[k],C);_.ey(C)};var g9c=function(){},VP=function(I){for(var C=[],y=I.getTextRangeCount(),k=0;k<y;k++)C.push(I.getTextRange(k));
return C};
g9c.prototype.isReversed=function(){return!1};
g9c.prototype.getWindow=function(){return Nb(_.V6(this.JSC$9128_getStartNode()))};
var v9u=function(I,C){N7.call(this,I,C,!0)};
_.s0(v9u,N7);var j_=function(I,C,y,k,F){this.endNode_=this.startNode_=null;this.endOffset_=this.startOffset_=0;this.isReversed_=!!F;if(I){this.startNode_=I;this.startOffset_=C;this.endNode_=y;this.endOffset_=k;if(I.nodeType==1&&I.tagName!="BR")if(I=I.childNodes,C=I[C])this.startNode_=C,this.startOffset_=0;else{I.length&&(this.startNode_=_.K9(I));var z=!0}y.nodeType==1&&((this.endNode_=y.childNodes[k])?this.endOffset_=0:this.endNode_=y)}N7.call(this,this.isReversed_?this.endNode_:this.startNode_,this.isReversed_,
!0);z&&this.next()};
_.s0(j_,v9u);_.u=j_.prototype;_.u.JSC$9134_getStartNode=function(){return this.startNode_};
_.u.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)};
_.u.next=function(){return this.isLast()?or:j_.superClass_.next.call(this)};
_.u.JSC$9126_copyFrom=function(I){this.startNode_=I.startNode_;this.endNode_=I.endNode_;this.startOffset_=I.startOffset_;this.endOffset_=I.endOffset_;this.isReversed_=I.isReversed_;j_.superClass_.JSC$9126_copyFrom.call(this,I)};
_.u.clone=function(){var I=new j_(this.startNode_,this.startOffset_,this.endNode_,this.endOffset_,this.isReversed_);I.JSC$9126_copyFrom(this);return I};var Wjm=function(){};
Wjm.prototype.__iterator__=function(){return new j_(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var lb=function(I){this.range_=I};
_.s0(lb,Wjm);var dk5=function(I){var C=_.V6(I).createRange();if(I.nodeType==3)C.setStart(I,0),C.setEnd(I,I.length);else if(Yg(I)||I.nodeType==3){for(var y,k=I;(y=k.firstChild)&&(Yg(y)||y.nodeType==3);)k=y;C.setStart(k,0);for(k=I;(y=k.lastChild)&&(Yg(y)||y.nodeType==3);)k=y;C.setEnd(k,k.nodeType==1?k.childNodes.length:k.length)}else y=I.parentNode,I=Array.prototype.indexOf.call(y.childNodes,I),C.setStart(y,I),C.setEnd(y,I+1);return C},xk5=function(I,C,y,k){var F=_.V6(I).createRange();
F.setStart(I,C);F.setEnd(y,k);return F};
_.u=lb.prototype;_.u.clone=function(){return new this.constructor(this.range_.cloneRange())};
_.u.getContainer=function(){return this.range_.commonAncestorContainer};
_.u.compareBrowserRangeEndpoints=function(I,C,y){return this.range_.compareBoundaryPoints(y==1?C==1?_.sF.Range.START_TO_START:_.sF.Range.START_TO_END:C==1?_.sF.Range.END_TO_START:_.sF.Range.END_TO_END,I)};
_.u.isCollapsed=function(){return this.range_.collapsed};
_.u.select=function(I){this.selectInternal(Nb(_.V6(this.range_.startContainer)).getSelection(),I)};
_.u.selectInternal=function(I){I.removeAllRanges();I.addRange(this.range_)};
_.u.insertNode=function(I,C){var y=this.range_.cloneRange();y.collapse(C);y.insertNode(I);y.detach();return I};
_.u.collapse=function(I){this.range_.collapse(I)};_.s0(aR,lb);aR.prototype.selectInternal=function(I,C){!C||this.isCollapsed()?aR.superClass_.selectInternal.call(this,I,C):(I.collapse(this.range_.endContainer,this.range_.endOffset),I.extend(this.range_.startContainer,this.range_.startOffset))};_.s0(Ms,lb);Ms.prototype.compareBrowserRangeEndpoints=function(I,C,y){return Ms.superClass_.compareBrowserRangeEndpoints.call(this,I,C,y)};
Ms.prototype.selectInternal=function(I,C){C?I.setBaseAndExtent(this.range_.endContainer,this.range_.endOffset,this.range_.startContainer,this.range_.startOffset):I.setBaseAndExtent(this.range_.startContainer,this.range_.startOffset,this.range_.endContainer,this.range_.endOffset)};var qeq=function(I){return _.z6?new Ms(I):_.u4?new aR(I):new lb(I)};var XC=function(){this.endOffset_=this.endNode_=this.startOffset_=this.startNode_=this.browserRangeWrapper_=null;this.isReversed_=!1},mkq;
_.s0(XC,g9c);mkq=function(I,C){var y=new XC;y.browserRangeWrapper_=I;y.isReversed_=!!C;return y};
_.Zxd=function(I){I=_.z6?new Ms(dk5(I)):_.u4?new aR(dk5(I)):new lb(dk5(I));return mkq(I)};
_.$1=function(I,C,y,k){var F=new XC;F.isReversed_=BiS(I,C,y,k);if(_.tz(I)&&!Yg(I)){var z=I.parentNode;C=Array.prototype.indexOf.call(z.childNodes,I);I=z}_.tz(y)&&!Yg(y)&&(z=y.parentNode,k=Array.prototype.indexOf.call(z.childNodes,y),y=z);F.isReversed_?(F.startNode_=y,F.startOffset_=k,F.endNode_=I,F.endOffset_=C):(F.startNode_=I,F.startOffset_=C,F.endNode_=y,F.endOffset_=k);return F};
_.u=XC.prototype;_.u.clone=function(){var I=new XC;I.browserRangeWrapper_=this.browserRangeWrapper_&&this.browserRangeWrapper_.clone();I.startNode_=this.startNode_;I.startOffset_=this.startOffset_;I.endNode_=this.endNode_;I.endOffset_=this.endOffset_;I.isReversed_=this.isReversed_;return I};
_.u.JSC$9128_getType=function(){return"text"};
_.u.getBrowserRangeObject=function(){return Rn(this).range_};
_.u.getTextRangeCount=function(){return 1};
_.u.getTextRange=function(){return this};
var Rn=function(I){var C;if(!(C=I.browserRangeWrapper_)){C=I.JSC$9128_getStartNode();var y=I.JSC$9128_getStartOffset(),k=I.JSC$9128_getEndNode(),F=I.JSC$9128_getEndOffset();C=_.z6?new Ms(xk5(C,y,k,F)):_.u4?new aR(xk5(C,y,k,F)):new lb(xk5(C,y,k,F));C=I.browserRangeWrapper_=C}return C};
_.u=XC.prototype;_.u.getContainer=function(){return Rn(this).getContainer()};
_.u.JSC$9128_getStartNode=function(){return this.startNode_||(this.startNode_=Rn(this).range_.startContainer)};
_.u.JSC$9128_getStartOffset=function(){return this.startOffset_!=null?this.startOffset_:this.startOffset_=Rn(this).range_.startOffset};
_.u.JSC$9128_getEndNode=function(){return this.endNode_||(this.endNode_=Rn(this).range_.endContainer)};
_.u.JSC$9128_getEndOffset=function(){return this.endOffset_!=null?this.endOffset_:this.endOffset_=Rn(this).range_.endOffset};
_.u.isReversed=function(){return this.isReversed_};
_.u.JSC$9128_containsRange=function(I,C){if(I.JSC$9128_getType()=="text"){var y=Rn(this);I=Rn(I);C=C&&!I.isCollapsed();I=I.range_;y=C?y.compareBrowserRangeEndpoints(I,0,1)>=0&&y.compareBrowserRangeEndpoints(I,1,0)<=0:y.compareBrowserRangeEndpoints(I,0,0)>=0&&y.compareBrowserRangeEndpoints(I,1,1)<=0}else y=!1;return y};
_.u.isCollapsed=function(){return Rn(this).isCollapsed()};
_.u.JSC$9128_getText=function(){return Rn(this).range_.toString()};
_.u.__iterator__=function(){return new j_(this.JSC$9128_getStartNode(),this.JSC$9128_getStartOffset(),this.JSC$9128_getEndNode(),this.JSC$9128_getEndOffset())};
_.u.select=function(){Rn(this).select(this.isReversed_)};
_.u.JSC$9128_removeContents=function(){var I=Rn(this).range_;I.extractContents();if(I.startContainer.hasChildNodes()&&(I=I.startContainer.childNodes[I.startOffset])){var C=I.previousSibling;JPb(I)==""&&_.ey(I);C&&JPb(C)==""&&_.ey(C)}this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null};
_.u.insertNode=function(I,C){I=Rn(this).insertNode(I,C);this.startNode_=this.startOffset_=this.endNode_=this.endOffset_=null;return I};
_.u.collapse=function(I){I=this.isReversed()?!I:I;this.browserRangeWrapper_&&this.browserRangeWrapper_.collapse(I);I?(this.endNode_=this.startNode_,this.endOffset_=this.startOffset_):(this.startNode_=this.endNode_,this.startOffset_=this.endOffset_);this.isReversed_=!1};var E90=function(){};
_.s0(E90,g9c);E90.prototype.JSC$9128_containsRange=function(I,C){var y=VP(this);I=VP(I);return(C?hz:_.Epm)(I,function(k){return hz(y,function(F){return F.JSC$9128_containsRange(k,C)})})};
E90.prototype.insertNode=function(I,C){C?_.fQ(I,this.JSC$9128_getStartNode()):_.SZ(I,this.JSC$9128_getEndNode());return I};var hdY,UkS=u3().JSC$7241_document_.documentElement;hdY=UkS.requestFullscreen?"fullscreenchange":UkS.webkitRequestFullscreen?"webkitfullscreenchange":UkS.mozRequestFullScreen?"mozfullscreenchange":UkS.msRequestFullscreen?"MSFullscreenChange":"fullscreenchange";var HxS=function(){var I=u3().JSC$7241_document_;return!!(I.webkitIsFullScreen||I.mozFullScreen||I.msFullscreenElement||I.fullscreenElement)};var bb=function(){this.browserRanges_=[];this.ranges_=[];this.container_=this.sortedRanges_=null};
_.s0(bb,E90);_.u=bb.prototype;_.u.clone=function(){var I=new bb;I.browserRanges_=_.tX(this.browserRanges_);return I};
_.u.JSC$9128_getType=function(){return"mutli"};
_.u.getBrowserRangeObject=function(){return this.browserRanges_[0]};
_.u.getTextRangeCount=function(){return this.browserRanges_.length};
_.u.getTextRange=function(I){this.ranges_[I]||(this.ranges_[I]=mkq(qeq(this.browserRanges_[I])));return this.ranges_[I]};
_.u.getContainer=function(){if(!this.container_){for(var I=[],C=this.getTextRangeCount(),y=0;y<C;y++)I.push(this.getTextRange(y).getContainer());this.container_=Z8Y.apply(null,I)}return this.container_};
var Y1=function(I){I.sortedRanges_||(I.sortedRanges_=VP(I),I.sortedRanges_.sort(function(C,y){var k=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();var F=y.JSC$9128_getStartNode();y=y.JSC$9128_getStartOffset();return k==F&&C==y?0:BiS(k,C,F,y)?1:-1}));
return I.sortedRanges_};
_.u=bb.prototype;_.u.JSC$9128_getStartNode=function(){return Y1(this)[0].JSC$9128_getStartNode()};
_.u.JSC$9128_getStartOffset=function(){return Y1(this)[0].JSC$9128_getStartOffset()};
_.u.JSC$9128_getEndNode=function(){return _.K9(Y1(this)).JSC$9128_getEndNode()};
_.u.JSC$9128_getEndOffset=function(){return _.K9(Y1(this)).JSC$9128_getEndOffset()};
_.u.isCollapsed=function(){return this.browserRanges_.length==0||this.browserRanges_.length==1&&this.getTextRange(0).isCollapsed()};
_.u.JSC$9128_getText=function(){return VP(this).map(function(I){return I.JSC$9128_getText()}).join("")};
_.u.__iterator__=function(){return new GJ(this)};
_.u.select=function(){var I=this.getWindow().getSelection();I.removeAllRanges();for(var C=this.getTextRangeCount(),y=0;y<C;y++)I.addRange(this.getTextRange(y).getBrowserRangeObject())};
_.u.JSC$9128_removeContents=function(){VP(this).forEach(function(I){I.JSC$9128_removeContents()})};
_.u.collapse=function(I){if(!this.isCollapsed()){var C=I?this.getTextRange(0):this.getTextRange(this.getTextRangeCount()-1);this.ranges_=[];this.container_=this.sortedRanges_=null;C.collapse(I);this.ranges_=[C];this.sortedRanges_=[C];this.browserRanges_=[C.getBrowserRangeObject()]}};
var GJ=function(I){this.iterators_=null;this.currentIdx_=0;I&&(this.iterators_=Y1(I).map(function(C){return _.ejw(C)}));
N7.call(this,I?this.JSC$9134_getStartNode():null,!1,!0)};
_.s0(GJ,v9u);_.u=GJ.prototype;_.u.JSC$9134_getStartNode=function(){return this.iterators_[0].JSC$9134_getStartNode()};
_.u.isLast=function(){return this.iterators_[this.currentIdx_].isLast()};
_.u.next=function(){for(;this.currentIdx_<this.iterators_.length;){var I=this.iterators_[this.currentIdx_],C=I.next();if(C.done)this.currentIdx_++;else return QP(this,I.node,I.tagType,I.depth),C}return or};
_.u.JSC$9126_copyFrom=function(I){this.iterators_=_.tX(I.iterators_);GJ.superClass_.JSC$9126_copyFrom.call(this,I)};
_.u.clone=function(){var I=new GJ(null);I.JSC$9126_copyFrom(this);return I};var tdd,BiS;_.Ln=function(){var I=window.getSelection();return I&&tdd(I)};
tdd=function(I){var C=!1;if(I.createRange)try{var y=I.createRange()}catch(F){return null}else if(I.rangeCount){if(I.rangeCount>1){y=new bb;C=I.rangeCount;for(var k=0;k<C;k++)y.browserRanges_.push(I.getRangeAt(k));return y}y=I.getRangeAt(0);C=BiS(I.anchorNode,I.anchorOffset,I.focusNode,I.focusOffset)}else return null;return mkq(qeq(y),C)};
_.f6=function(I,C){return _.$1(I,C,I,C)};
_.S_=function(I,C,y,k){return _.$1(I,C,y,k)};
BiS=function(I,C,y,k){if(I==y)return k<C;var F;if(I.nodeType==1&&C)if(F=I.childNodes[C])I=F,C=0;else if(_.gQ(I,y))return!0;if(y.nodeType==1&&k)if(F=y.childNodes[k])y=F,k=0;else if(_.gQ(y,I))return!1;return(mKb(I,y)||C-k)>0};var K6=function(){_.LW.call(this);this.reader_=new FileReader;this.reader_.onloadstart=(0,_.DD)(this.dispatchProgressEvent_,this);this.reader_.onprogress=(0,_.DD)(this.dispatchProgressEvent_,this);this.reader_.onload=(0,_.DD)(this.dispatchProgressEvent_,this);this.reader_.onabort=(0,_.DD)(this.dispatchProgressEvent_,this);this.reader_.onerror=(0,_.DD)(this.dispatchProgressEvent_,this);this.reader_.onloadend=(0,_.DD)(this.dispatchProgressEvent_,this)};
_.s0(K6,_.LW);K6.prototype.abort=function(){try{this.reader_.abort()}catch(I){throw new P$w(I,"aborting read");}};
K6.prototype.getError=function(){return this.reader_.error&&new P$w(this.reader_.error,"reading file")};
K6.prototype.dispatchProgressEvent_=function(I){this.dispatchEvent(new Lxq(I,this))};
K6.prototype.disposeInternal=function(){K6.superClass_.disposeInternal.call(this);delete this.reader_};
var Ox0=function(I){var C=new K6,y=JSS(C);C.reader_.readAsArrayBuffer(I);return y},akS=function(I){var C=new K6,y=JSS(C);
C.reader_.readAsDataURL(I);return y},JSS=function(I){var C=new mu;
I.listen("loadend",_.D0(function(y,k){var F=k.reader_.result,z=k.getError();F==null||z?y.errback(z):y.callback(F);k.dispose()},C,I));
return C};var Ap=function(){_.LW.call(this);this.hysteresisDistance_=0;this.dragLists_=[];this.dragItems_=[];this.dragItemForHandle_={};this.JSC$9168_eventHandler_=new _.Cq(this);this.JSC$9168_isInitialized_=!1};
_.s0(Ap,_.LW);var Mdd=new _.eg("d"),IWY=new _.eg("beforedragstart"),Cg5=new _.eg("dragstart"),s_u=new _.eg("beforedragmove"),oku=new _.eg("dragmove"),yGw=new _.eg("beforedragend"),k8q=new _.eg("dragend"),F0b=new _.eg("e");Ap.prototype.isDragging=function(){return!!this.JSC$9168_dragger_};
var ulw=function(I,C){C.dlgGrowthDirection_=0;C.dlgDragHoverClass_=void 0;C.dlgDragPermission=0;I.dragLists_.push(C)},zMu=function(I,C){I.getHandleForDragItem_=C};
Ap.prototype.init=function(){if(!this.JSC$9168_isInitialized_){for(var I=this.dragLists_.length,C=0;C<I;C++)for(var y=_.KQ(this.dragLists_[C]),k=y.length,F=0;F<k;++F){var z=y[F],c=this.getHandleForDragItem_(z),r=_.ow(c);this.dragItemForHandle_[r]=z;this.dragItemHoverClasses_&&(this.JSC$9168_eventHandler_.listen(z,"mouseover",this.handleDragItemMouseover_),this.JSC$9168_eventHandler_.listen(z,"mouseout",this.handleDragItemMouseout_));this.dragItemHandleHoverClasses_&&(this.JSC$9168_eventHandler_.listen(c,
"mouseover",this.handleDragItemHandleMouseover_),this.JSC$9168_eventHandler_.listen(c,"mouseout",this.handleDragItemHandleMouseout_));this.dragItems_.push(z);this.JSC$9168_eventHandler_.listen(c,["mousedown","touchstart"],this.handlePotentialDragStart_)}this.JSC$9168_isInitialized_=!0}};
Ap.prototype.disposeInternal=function(){this.JSC$9168_eventHandler_.dispose();for(var I=this.dragLists_.length,C=0;C<I;C++){var y=this.dragLists_[C];y.dlgGrowthDirection_=void 0;y.dlgDragHoverClass_=void 0}this.dragLists_.length=0;this.dragItems_.length=0;this.dragItemForHandle_=null;TUe(this);Ap.superClass_.disposeInternal.call(this)};
var cGb=function(I,C){for(var y=I.dragLists_.length,k=0;k<y;k++){var F=I.dragLists_[k];F.dlgBounds_=Vtz(F)}y=I.dragItems_.length;for(k=0;k<y;k++)F=I.dragItems_[k],F!=C&&(F.dlgBounds_=Vtz(F))};
_.u=Ap.prototype;
_.u.handlePotentialDragStart_=function(I){var C=_.ow(I.currentTarget);C=this.dragItemForHandle_[C];if(C.parentElement.dlgDragPermission!=2){this.currDragItem_=C;a:{C=this.currDragItem_;for(var y=C.cloneNode(!0),k=rQ("TEXTAREA",C),F=rQ("TEXTAREA",y),z=0;z<k.length;z++)F[z].value=k[z].value;switch(C.tagName){case "TR":C=_.Rd("TABLE",null,_.Rd("TBODY",null,y));break a;case "TD":case "TH":C=_.Rd("TABLE",null,_.Rd("TBODY",null,_.Rd("TR",null,y)));break a;case "TEXTAREA":y.value=C.value;default:C=y;break a}C=
void 0}this.draggerEl_=C;this.draggerElClasses_&&xj(this.draggerEl_,this.draggerElClasses_||[]);this.draggerEl_.style.margin="0";this.draggerEl_.style.position="absolute";this.draggerEl_.style.visibility="hidden";_.V6(this.currDragItem_).body.appendChild(this.draggerEl_);y=_.l3(this.currDragItem_);C=this.draggerEl_;k=_.l3(C);if(y instanceof _.Q6){var c=y.y;y=y.x}ds(C,C.offsetLeft+(y-k.x),C.offsetTop+(Number(c)-k.y));this.JSC$9168_dragger_=new _.Kb(this.draggerEl_);_.ntu(this.JSC$9168_dragger_,this.hysteresisDistance_);
_.Lv(this.JSC$9168_dragger_,"start",this.handleDragStart_,!1,this);_.Lv(this.JSC$9168_dragger_,"end",this.handleDragEnd_,!1,this);_.Lv(this.JSC$9168_dragger_,"earlycancel",this.JSC$9170_cleanup_,!1,this);this.dispatchEvent(new go(Mdd,this,I,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_));this.JSC$9168_dragger_.startDrag(I)}};
_.u.handleDragStart_=function(I){if(this.dispatchEvent(new go(IWY,this,I.browserEvent,this.currDragItem_,null,null))){this.origList_=this.currDragItem_.parentNode;this.origNextItem_=_.dK0(this.currDragItem_);this.currHoverList_=this.origList_;this.currDragItemClasses_?xj(this.currDragItem_,this.currDragItemClasses_||[]):this.currDragItem_.style.visibility="hidden";var C=yTu(this.draggerEl_);this.draggerEl_.halfWidth=C.width/2;this.draggerEl_.halfHeight=C.height/2;C=this.draggerEl_.getBoundingClientRect();
var y=I.clientY,k=PXw(this.JSC$9168_dragger_,I.clientX);if(k>C.right){var F=this.currDragItem_.getBoundingClientRect();this.JSC$9168_dragger_.deltaX=k-(k-F.left)/F.width*C.width}y=LZ0(this.JSC$9168_dragger_,y);y>C.bottom&&(this.JSC$9168_dragger_.deltaY+=y-C.bottom);this.draggerEl_.style.visibility="";this.currDragItem_.style.display="none";cGb(this,this.currDragItem_);this.currDragItem_.style.display="";_.Lv(this.JSC$9168_dragger_,"drag",this.handleDragMove_,!1,this);this.dispatchEvent(new go(Cg5,
this,I.browserEvent,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_))}else I.preventDefault(),this.JSC$9170_cleanup_()};
_.u.handleDragMove_=function(I){var C=_.l3(this.draggerEl_);C=new _.Q6(C.x+this.draggerEl_.halfWidth,C.y+this.draggerEl_.halfHeight);a:{var y=null;if(this.currDragItem_.style.display!="none"){y=this.currDragItem_.parentNode;var k=Vtz(y);if(eMS(C,k))break a}k=this.dragLists_.length;for(var F=0;F<k;F++){var z=this.dragLists_[F];if(z!=y&&eMS(C,z.dlgBounds_)){y=z;break a}}y=null}if(y){if(y==null)throw Error("Ud");k=0;F=!1;z=void 0;switch(y.dlgGrowthDirection_){case 0:k=C.y;var c=rGu;var r=ipS;break;case 4:F=
!0;case 2:k=C.x;c=wDq;r=ipS;break;case 5:F=!0;case 3:k=C.x,c=nkS,r=Pg8}for(var w=null,L,D=_.KQ(y),p=D.length,Q=0;Q<p;Q++){var X=D[Q];if(X!=this.currDragItem_){var b=c(X.dlgBounds_);if(F){var S=L0c(X,C);z===void 0&&(z=S);r(k,b)&&(L==void 0||S<z||S==z&&(r(b,L)||b==L))&&(w=X,L=b);S<z&&(z=S)}else r(k,b)&&(L==void 0||r(b,L))&&(w=X,L=b)}}c=w!==null&&L0c(w,C)>z?null:w}else c=null;if(!this.dispatchEvent(new go(s_u,this,I,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_,C,y,c)))return!1;if(y&&y.dlgDragPermission!=
1)this.currDragItem_.parentNode==y&&_.dK0(this.currDragItem_)==c||y.insertBefore(this.currDragItem_,c),this.currDragItem_.style.display="",y.dlgDragHoverClass_&&_.qx(y,y.dlgDragHoverClass_);else for(this.currDragItem_.style.display="none",r=this.dragLists_.length,L=0;L<r;L++)k=this.dragLists_[L],k.dlgDragHoverClass_&&_.dY(k,k.dlgDragHoverClass_);y!=this.currHoverList_&&(this.currHoverList_=y,cGb(this,this.currDragItem_));this.dispatchEvent(new go(oku,this,I,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_,
C,y,c));return!1};
_.u.JSC$9170_cleanup_=function(){TUe(this);this.JSC$9168_dragger_=this.draggerEl_=this.origNextItem_=this.origList_=this.currHoverList_=this.currDragItem_=null;for(var I=this.dragLists_.length,C=0;C<I;C++)this.dragLists_[C].dlgBounds_=null;I=this.dragItems_.length;for(C=0;C<I;C++)this.dragItems_[C].dlgBounds_=null};
_.u.handleDragEnd_=function(I){if(!this.dispatchEvent(new go(yGw,this,I,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_)))return!1;TUe(this);this.dispatchEvent(new go(k8q,this,I,this.currDragItem_,this.draggerEl_,this.JSC$9168_dragger_));this.JSC$9170_cleanup_();return!0};
var TUe=function(I){_.Bi(I.JSC$9168_dragger_);var C=I.draggerEl_&&I.draggerEl_.parentElement;I.draggerEl_&&_.ey(I.draggerEl_);I.currDragItem_&&I.currDragItem_.style.display=="none"&&(I.origList_.insertBefore(I.currDragItem_,I.origNextItem_),I.currDragItem_.style.display="");I.currDragItemClasses_&&I.currDragItem_?PAb(I.currDragItem_,I.currDragItemClasses_||[]):I.currDragItem_&&(I.currDragItem_.style.visibility="");for(var y=I.dragLists_.length,k=0;k<y;k++){var F=I.dragLists_[k];F.dlgDragHoverClass_&&
_.dY(F,F.dlgDragHoverClass_)}C&&I.dispatchEvent(new go(F0b,I,null,I.currDragItem_,I.draggerEl_,I.JSC$9168_dragger_))};
_.u=Ap.prototype;_.u.getHandleForDragItem_=function(I){return I};
_.u.handleDragItemMouseover_=function(I){xj(I.currentTarget,this.dragItemHoverClasses_||[])};
_.u.handleDragItemMouseout_=function(I){PAb(I.currentTarget,this.dragItemHoverClasses_||[])};
_.u.handleDragItemHandleMouseover_=function(I){xj(I.currentTarget,this.dragItemHandleHoverClasses_||[])};
_.u.handleDragItemHandleMouseout_=function(I){PAb(I.currentTarget,this.dragItemHandleHoverClasses_||[])};
var eMS=function(I,C){return I.x>C.left&&I.x<C.left+C.width&&I.y>C.top&&I.y<C.top+C.height},L0c=function(I,C){I=I.dlgBounds_;
return Math.abs(C.y-(I.top+(I.height-1)/2))},rGu=function(I){return I.top+I.height-1},wDq=function(I){return I.left+I.width-1},nkS=function(I){return I.left||0},ipS=function(I,C){return I<C},Pg8=function(I,C){return I>C},go=function(I,C,y,k,F,z){_.r1.call(this,I);
this.event=y;this.currDragItem=k;this.draggerEl=F;this.JSC$9172_dragger=z};
_.s0(go,_.r1);_.s0(sh,_.LL);var DcY=new _.Q6(0,0);sh.prototype.JSC$9176_onTick_=function(){this.containerNode_.scrollTop+=this.scrollDelta_.y;this.containerNode_.scrollLeft+=this.scrollDelta_.x};
sh.prototype.JSC$9176_onMouseMove=function(I){var C=this.containerIsActuallyContent_?DcY:FJ(u3(this.containerNode_)),y=this.horizontalScrolling_?this.calculateScrollDelta(I.clientX+C.x,this.scrollBounds_.left,this.scrollBounds_.width):0,k=this.calculateScrollDelta(I.clientY+C.y,this.scrollBounds_.top,this.scrollBounds_.height);this.scrollDelta_.x=y;this.scrollDelta_.y=k;!(y=!y&&!k)&&(y=this.constrainScroll_)&&(y=I.clientX+C.x,I=I.clientY+C.y,C=this.containerBounds_,y=!(C.left<=y&&C.left+C.width>=
y&&C.top<=I&&C.top+C.height>=I));y?this.scrollTimer_.stop():this.scrollTimer_.enabled||this.scrollTimer_.start()};
sh.prototype.calculateScrollDelta=function(I,C,y){var k=0;I<C?k=-8:I>C+y&&(k=8);return k};
sh.prototype.disposeInternal=function(){sh.superClass_.disposeInternal.call(this);this.JSC$9174_eventHandler_.dispose();this.scrollTimer_.dispose()};var pDd={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"}}},vC=pDd;vC=pDd;var WC={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 Q_Y=function(){},mj=function(I){if(typeof I=="number"){var C=new Q_Y;
C.standardOffset_=I;var y=I;if(y==0)y="Etc/GMT";else{var k=["Etc/GMT",y<0?"-":"+"];y=Math.abs(y);k.push(Math.floor(y/60)%100);y%=60;y!=0&&k.push(":",_.Id(y,2));y=k.join("")}C.timeZoneId_=y;y=I;y==0?y="UTC":(k=["UTC",y<0?"+":"-"],y=Math.abs(y),k.push(Math.floor(y/60)%100),y%=60,y!=0&&k.push(":",y),y=k.join(""));I=NUe(I);C.tzNames_=[y,y];C.tzNamesExt_={STD_LONG_NAME_GMT:I,STD_GENERIC_LOCATION:I};C.transitions_=[];return C}C=new Q_Y;C.timeZoneId_=I.id;C.standardOffset_=-I.std_offset;C.tzNames_=I.names;
C.tzNamesExt_=I.names_ext;C.transitions_=I.transitions;return C},NUe=function(I){var C=["GMT"];
C.push(I<=0?"+":"-");I=Math.abs(I);C.push(_.Id(Math.floor(I/60)%100,2),":",_.Id(I%60,2));return C.join("")},Vfc=function(I,C){C=Date.UTC(C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate(),C.getUTCHours(),C.getUTCMinutes())/36E5;
for(var y=0;y<I.transitions_.length&&C>=I.transitions_[y];)y+=2;return y==0?0:I.transitions_[y-1]},j_e=function(I,C){I=I.standardOffset_-Vfc(I,C);
return I===-1440?0:I};var Zk=function(I,C){this.patternParts_=[];this.JSC$9187_dateTimeSymbols_=C||Vm;typeof I=="number"?lW5(this,I):XDq(this,I)},$c8=[/^'(?:[^']|'')*('|$)/,
/^(?: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]+/],x1=function(I){return I.getHours?I.getHours():0},XDq=function(I,C){for(Jot&&(C=C.replace(/\u200f/g,""));C;){for(var y=C,k=0;k<$c8.length;++k){var F=C.match($c8[k]);
if(F){var z=F[0];C=C.substring(z.length);k==0&&(z=="''"?z="'":(z=z.substring(1,F[1]=="'"?z.length-1:z.length),z=z.replace(/''/g,"'")));I.patternParts_.push({text:z,type:k});break}}if(y===C)throw Error("Vd`"+C);}};
Zk.prototype.format=function(I,C){if(!I)throw Error("Wd");var y=C?(I.getTimezoneOffset()-j_e(C,I))*6E4:0,k=y?new Date(I.getTime()+y):I,F=k;C&&k.getTimezoneOffset()!=I.getTimezoneOffset()&&(k=new Date(k.getTime()+(k.getTimezoneOffset()-I.getTimezoneOffset())*6E4),F=new Date(I.getTime()+(y+(y>0?-864E5:864E5))));y=[];for(var z=0;z<this.patternParts_.length;++z){var c=this.patternParts_[z].text;1==this.patternParts_[z].type?y.push(RM0(this,c,I,k,F,C)):y.push(c)}return y.join("")};
var lW5=function(I,C){if(C<4)var y=I.JSC$9187_dateTimeSymbols_.DATEFORMATS[C];else if(C<8)y=I.JSC$9187_dateTimeSymbols_.TIMEFORMATS[C-4];else if(C<12)y=I.JSC$9187_dateTimeSymbols_.DATETIMEFORMATS[C-8],y=y.replace("{1}",I.JSC$9187_dateTimeSymbols_.DATEFORMATS[C-8]),y=y.replace("{0}",I.JSC$9187_dateTimeSymbols_.TIMEFORMATS[C-8]);else if(C===12)y=I.JSC$9187_dateTimeSymbols_.DATEFORMATS[0].replace(/[^EMd]*yy*[^EMd]*/,"");else if(C===13)y=I.JSC$9187_dateTimeSymbols_.DATEFORMATS[2].replace(/[^EMd]*yy*[^EMd]*/,
"");else{lW5(I,10);return}XDq(I,y)},q7=function(I,C){C=String(C);
I=I.JSC$9187_dateTimeSymbols_||Vm;if(I.ZERODIGIT!==void 0&&!tVm){for(var y=[],k=0;k<C.length;k++){var F=C.charCodeAt(k);y.push(48<=F&&F<=57?String.fromCharCode(I.ZERODIGIT+F-48):C.charAt(k))}C=y.join("")}return C},tVm=!1,Jot=!1,Yqd=function(I,C,y,k){y=y.getFullYear();
y<=0&&k&&(y=1-y);return q7(I,bpb(y,C))},bpb=function(I,C){C==2&&(I%=100);
I<0&&C++;return _.Id(I,C)},ma=function(I){if(!(I.getHours&&I.getSeconds&&I.getMinutes))throw Error("Xd");
},G8q=function(I,C){ma(C);
C=x1(C);return I.JSC$9187_dateTimeSymbols_.AMPMS[C>=12&&C<24?1:0]},RM0=function(I,C,y,k,F,z){var c=C.length;
switch(C.charAt(0)){case "G":return y=k.getFullYear()>0?1:0,c>=4?I.JSC$9187_dateTimeSymbols_.ERANAMES[y]:I.JSC$9187_dateTimeSymbols_.ERAS[y];case "y":return Yqd(I,c,k,!0);case "Y":return y=(new Date(SeY(k.getFullYear(),k.getMonth(),k.getDate(),I.JSC$9187_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,I.JSC$9187_dateTimeSymbols_.FIRSTDAYOFWEEK))).getFullYear(),c==2&&(y%=100),q7(I,bpb(y,c));case "u":return Yqd(I,c,k,!1);case "M":a:switch(y=k.getMonth(),c){case 5:c=I.JSC$9187_dateTimeSymbols_.NARROWMONTHS[y];break a;
case 4:c=I.JSC$9187_dateTimeSymbols_.MONTHS[y];break a;case 3:c=I.JSC$9187_dateTimeSymbols_.SHORTMONTHS[y];break a;default:c=q7(I,_.Id(y+1,c))}return c;case "k":return ma(F),q7(I,_.Id(x1(F)||24,c));case "S":return q7(I,(F.getMilliseconds()/1E3).toFixed(Math.min(3,c)).slice(2)+(c>3?_.Id(0,c-3):""));case "E":return y=k.getDay(),c>=4?I.JSC$9187_dateTimeSymbols_.WEEKDAYS[y]:I.JSC$9187_dateTimeSymbols_.SHORTWEEKDAYS[y];case "a":return G8q(I,F);case "b":return G8q(I,F);case "B":return G8q(I,F);case "h":return ma(F),
q7(I,_.Id(x1(F)%12||12,c));case "K":return ma(F),q7(I,_.Id(x1(F)%12,c));case "H":return ma(F),q7(I,_.Id(x1(F),c));case "c":a:switch(y=k.getDay(),c){case 5:c=I.JSC$9187_dateTimeSymbols_.STANDALONENARROWWEEKDAYS[y];break a;case 4:c=I.JSC$9187_dateTimeSymbols_.STANDALONEWEEKDAYS[y];break a;case 3:c=I.JSC$9187_dateTimeSymbols_.STANDALONESHORTWEEKDAYS[y];break a;default:c=q7(I,_.Id(y,1))}return c;case "L":a:switch(y=k.getMonth(),c){case 5:c=I.JSC$9187_dateTimeSymbols_.STANDALONENARROWMONTHS[y];break a;
case 4:c=I.JSC$9187_dateTimeSymbols_.STANDALONEMONTHS[y];break a;case 3:c=I.JSC$9187_dateTimeSymbols_.STANDALONESHORTMONTHS[y];break a;default:c=q7(I,_.Id(y+1,c))}return c;case "Q":return y=Math.floor(k.getMonth()/3),c<4?I.JSC$9187_dateTimeSymbols_.SHORTQUARTERS[y]:I.JSC$9187_dateTimeSymbols_.QUARTERS[y];case "d":return q7(I,_.Id(k.getDate(),c));case "m":return ma(F),q7(I,_.Id(F.getMinutes?F.getMinutes():0,c));case "s":return ma(F),q7(I,_.Id(F.getSeconds(),c));case "v":return(z||mj(y.getTimezoneOffset())).timeZoneId_;
case "V":return I=z||mj(y.getTimezoneOffset()),c<=2?I.timeZoneId_:Vfc(I,y)>0?I.tzNamesExt_.DST_GENERIC_LOCATION!==void 0?I.tzNamesExt_.DST_GENERIC_LOCATION:I.tzNamesExt_.DST_GENERIC_LOCATION:I.tzNamesExt_.STD_GENERIC_LOCATION!==void 0?I.tzNamesExt_.STD_GENERIC_LOCATION:I.tzNamesExt_.STD_GENERIC_LOCATION;case "w":return y=SeY(F.getFullYear(),F.getMonth(),F.getDate(),I.JSC$9187_dateTimeSymbols_.FIRSTWEEKCUTOFFDAY,I.JSC$9187_dateTimeSymbols_.FIRSTDAYOFWEEK),q7(I,_.Id(Math.floor(Math.round((y-(new Date((new Date(y)).getFullYear(),
0,1)).valueOf())/864E5)/7)+1,c));case "z":return I=z||mj(y.getTimezoneOffset()),c<4?I.tzNames_[Vfc(I,y)>0?2:0]:I.tzNames_[Vfc(I,y)>0?3:1];case "Z":return C=z||mj(y.getTimezoneOffset()),c<4?(c=-j_e(C,y),I=[c<0?"-":"+"],c=Math.abs(c),I.push(_.Id(Math.floor(c/60)%100,2),_.Id(c%60,2)),c=I.join("")):c=q7(I,NUe(j_e(C,y))),c;default:return""}};var fWb=/^[ \t\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]/,Sqb=/^[\s\xA0\u1680\u180e\u2000-\u200a\u202f\u205f\u3000]+/,PwK=function(I){this.patternParts_=[];this.JSC$9196_dateTimeSymbols_=Vm;if(typeof I=="number"){I>11&&(I=10);if(I<4)var C=this.JSC$9196_dateTimeSymbols_.DATEFORMATS[I];else I<8?C=this.JSC$9196_dateTimeSymbols_.TIMEFORMATS[I-4]:(C=this.JSC$9196_dateTimeSymbols_.DATETIMEFORMATS[I-8],C=C.replace("{1}",this.JSC$9196_dateTimeSymbols_.DATEFORMATS[I-8]),C=C.replace("{0}",this.JSC$9196_dateTimeSymbols_.TIMEFORMATS[I-
8]));K0S(this,C)}else K0S(this,I)},K0S=function(I,C){for(var y=!1,k="",F=0;F<C.length;F++){var z=C.charAt(F);
if(fWb.test(z))for(k.length>0&&(I.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1}),k=""),I.patternParts_.push({text:" ",count:0,abutStart:!1,numeric:!1});F<C.length-1&&C.charAt(F+1)==" ";)F++;else if(y)z=="'"?F+1<C.length&&C.charAt(F+1)=="'"?(k+="'",F++):y=!1:k+=z;else if("GyMdkHmsSEDabBhKzZvQL".indexOf(z)>=0){k.length>0&&(I.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1}),k="");for(var c=C.charAt(F),r=F+1;r<C.length&&C.charAt(r)==c;)r++;c=r-F;c<=0?r=!1:(r="MydhHmsSDkK".indexOf(z),
r=r>0||r==0&&c<3);I.patternParts_.push({text:z,count:c,abutStart:!1,numeric:r});F+=c-1}else z=="'"?F+1<C.length&&C.charAt(F+1)=="'"?(k+="'",F++):y=!0:k+=z}k.length>0&&I.patternParts_.push({text:k,count:0,abutStart:!1,numeric:!1});C=!1;for(y=0;y<I.patternParts_.length;y++)I.patternParts_[y].numeric?!C&&y+1<I.patternParts_.length&&I.patternParts_[y+1].numeric&&(C=!0,I.patternParts_[y].abutStart=!0):C=!1};
PwK.prototype.parse=function(I,C,y){var k=!1,F=!1;y&&(k=y.predictive||!1,F=y.validate||!1);if(k)for(y=0;y<this.patternParts_.length;y++){var z=this.patternParts_[y];if(z.count>0&&("abBhHkKm".indexOf(z.text.charAt(0))<0||z.count>2||z.abutStart))throw Error("Yd`"+z.text.charAt(0));}z=new AGq;y=[0];z.dayPeriodIndex=-1;for(var c=0;c<this.patternParts_.length&&!(k&&y[0]>=I.length);c++){if(this.patternParts_[c].count==0){a:{var r=I;var w=y,L=this.patternParts_[c],D=k;if(L.text.match(fWb)!=null){if(L=w[0],
gkb(r,w),w[0]>L){r=!0;break a}}else{if(r.indexOf(L.text,w[0])==w[0]){w[0]+=L.text.length;r=!0;break a}if(D&&L.text.indexOf(r.substring(w[0]))==0){w[0]+=r.length-w[0];r=!0;break a}}r=!1}if(r)continue;return 0}if(this.patternParts_[c].abutStart){a:{w=I;L=y;D=c;var p=L[0],Q=0;for(r=D;r<this.patternParts_.length;r++){var X=this.patternParts_[r],b=X.count;if(b===0)break;if(r==D&&(b-=Q,Q++,b==0)){r=0;break a}var S=r>D&&X.numeric,A=L[0];if(!vkw(this,w,L,X,b,z,!1)||S&&L[0]-A<b)r=D-1,L[0]=p}r-=D}if(r<=0)return 0;
c+=r-1}else if(!vkw(this,I,y,this.patternParts_[c],0,z,k))return 0}a:{I=F;if(C==null)throw Error("Zd");z.era!=void 0&&z.year!=void 0&&z.era==0&&z.year>0&&(z.year=-(z.year-1));z.year!=void 0&&C.setFullYear(z.year);k=C.getDate();C.setDate(1);z.month!=void 0&&C.setMonth(z.month);z.day!=void 0?C.setDate(z.day):(F=EJm(C.getFullYear(),C.getMonth()),C.setDate(k>F?F:k));typeof C.setHours==="function"&&(z.hours==void 0&&(z.hours=C.getHours()),z.hours<12&&(z.ampm!=void 0&&z.ampm>0?z.hours+=12:z.dayPeriodName!==
void 0&&("isPm noon afternoon1 afternoon2 evening1 evening2".split(" ").includes(z.dayPeriodName)||["night1","night2"].includes(z.dayPeriodName)&&z.hours>=6)&&(z.hours+=12)),C.setHours(z.hours));typeof C.setMinutes==="function"&&z.minutes!=void 0&&C.setMinutes(z.minutes);typeof C.setSeconds==="function"&&z.seconds!=void 0&&C.setSeconds(z.seconds);typeof C.setMilliseconds==="function"&&z.milliseconds!=void 0&&C.setMilliseconds(z.milliseconds);if(I&&(z.year&&z.year!=C.getFullYear()||z.month&&z.month!=
C.getMonth()||z.day&&z.day!=C.getDate()||z.hours&&z.hours>=24||z.minutes&&z.minutes>=60||z.seconds&&z.seconds>=60||z.milliseconds&&z.milliseconds>=1E3))C=!1;else{z.tzOffset!=void 0&&C.setTime(C.getTime()+(z.tzOffset-C.getTimezoneOffset())*60*1E3);z.ambiguousYear&&(I=new Date,I.setFullYear(I.getFullYear()-80),C.getTime()<I.getTime()&&C.setFullYear(I.getFullYear()+100));if(z.dayOfWeek!=void 0)if(z.day==void 0)z=(7+z.dayOfWeek-C.getDay())%7,z>3&&(z-=7),I=C.getMonth(),C.setDate(C.getDate()+z),C.getMonth()!=
I&&C.setDate(C.getDate()+(z>0?-7:7));else if(z.dayOfWeek!=C.getDay()){C=!1;break a}C=!0}}return C?y[0]:0};
var vkw=function(I,C,y,k,F,z,c){gkb(C,y);if(k.numeric&&F>0&&y[0]+F>C.length)return!1;switch(k.text.charAt(0)){case "G":return ZQ(C,y,[I.JSC$9196_dateTimeSymbols_.ERAS],function(r){return z.era=r}),!0;
case "M":case "L":return W0Y(I,C,y,F,k,z);case "E":return ZQ(C,y,[I.JSC$9196_dateTimeSymbols_.WEEKDAYS,I.JSC$9196_dateTimeSymbols_.SHORTWEEKDAYS],function(r){return z.dayOfWeek=r});
case "B":case "b":return F=[],I=[[].concat(I.JSC$9196_dateTimeSymbols_.AMPMS)],F.push("isAm"),F.push("isPm"),C=ZQ(C,y,I,function(r){return z.dayPeriodIndex=r},c),z.dayPeriodName=F[z.dayPeriodIndex],c?C:!0;
case "a":return C=ZQ(C,y,[I.JSC$9196_dateTimeSymbols_.AMPMS],function(r){return z.ampm=r},c),c?C:!0;
case "y":return dc5(I,C,y,k,F,z);case "Q":return ZQ(C,y,[I.JSC$9196_dateTimeSymbols_.QUARTERS,I.JSC$9196_dateTimeSymbols_.SHORTQUARTERS],function(r){z.month=r*3;z.day=1});
case "d":return BC(I,C,y,k,F,function(r){z.day=r}),!0;
case "S":return xc0(I,C,y,F,z);case "h":case "K":case "H":case "k":return C=BC(I,C,y,k,F,function(r){z.hours=k.text.charAt(0)==="h"&&r===12?0:r},c),c?C:!0;
case "m":return C=BC(I,C,y,k,F,function(r){z.minutes=r},c),c?C:!0;
case "s":return BC(I,C,y,k,F,function(r){z.seconds=r}),!0;
case "z":case "Z":case "v":return qqm(I,C,y,z);default:return!1}},dc5=function(I,C,y,k,F,z){var c=y[0];
F=EV(I,C,y,F);F===null&&(F=EV(I,C,y,0,!0));if(F===null)return!1;F>=0&&y[0]-c==2&&k.count==2?(I=F,C=(new Date).getFullYear()-80,y=C%100,z.ambiguousYear=I==y,I+=Math.floor(C/100)*100+(I<y?100:0),z.year=I):z.year=F;return!0},W0Y=function(I,C,y,k,F,z){return F.numeric&&BC(I,C,y,F,k,function(c){z.month=c-1})?!0:ZQ(C,y,[I.JSC$9196_dateTimeSymbols_.MONTHS,
I.JSC$9196_dateTimeSymbols_.STANDALONEMONTHS,I.JSC$9196_dateTimeSymbols_.SHORTMONTHS,I.JSC$9196_dateTimeSymbols_.STANDALONESHORTMONTHS],function(c){z.month=c})},xc0=function(I,C,y,k,F){var z=y[0];
I=EV(I,C,y,k);if(I===null)return!1;y=y[0]-z;F.milliseconds=y<3?I*Math.pow(10,3-y):Math.round(I/Math.pow(10,y-3));return!0},qqm=function(I,C,y,k){C.indexOf("GMT",y[0])==y[0]&&(y[0]+=3);
if(y[0]>=C.length)return k.tzOffset=0,!0;var F=y[0],z=EV(I,C,y,0,!0);if(z===null)return!1;if(y[0]<C.length&&C.charAt(y[0])==":"){var c=z*60;y[0]++;z=EV(I,C,y,0);if(z===null)return!1;c+=z}else c=z,c=c<24&&y[0]-F<=3?c*60:c%100+c/100*60;k.tzOffset=-c;return!0},BC=function(I,C,y,k,F,z,c){c=c||!1;
var r=y[0];I=EV(I,C,y,F);if(I===null)return!1;if(c&&y[0]-r<k.count){if(y[0]<C.length)return!1;I*=Math.pow(10,k.count-(y[0]-r))}z(I);return!0},ZQ=function(I,C,y,k,F){F=F||!1;
for(var z,c=0;c<y.length;c++){z=C;for(var r=y[c],w=F,L=0,D=null,p=I.substring(z[0]).toLowerCase(),Q=0;Q<r.length;Q++){var X=r[Q].toLowerCase();if(w&&X.indexOf(p)==0){L=p.length;D=Q;break}r[Q].length>L&&p.indexOf(X)==0&&(L=r[Q].length,D=Q)}D!==null&&(z[0]+=L);z=D;if(z!==null)return k(z),!0}return!1},gkb=function(I,C){(I=I.substring(C[0]).match(Sqb))&&(C[0]+=I[0].length)},EV=function(I,C,y,k,F){C=k>0?C.substring(0,y[0]+k):C;
F=F||!1;if(I.JSC$9196_dateTimeSymbols_.ZERODIGIT){k=[];for(var z=y[0];z<C.length;z++){var c=C.charCodeAt(z)-I.JSC$9196_dateTimeSymbols_.ZERODIGIT;k.push(0<=c&&c<=9?String.fromCharCode(c+48):C.charAt(z))}C=k.join("")}else C=C.substring(y[0]);I=C.match(new RegExp("^"+(F?"[+-]?":"")+"\\d+"));if(!I)return null;y[0]+=I[0].length;return parseInt(I[0],10)},AGq=function(){};
AGq.prototype.ambiguousYear=!1;_.mcS={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 Zp5={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"},BUS=Zp5,Ek5=Zp5;Ek5=BUS=Zp5;var Ucc,hp,HC,TvK,UV,hMq;
_.di=function(I,C,y,k){var F;if(F=C){a:if(C&&C.length===3){for(F=0;F<3;F++){var z=C[F];if(z<"A"||z>"Z"&&z<"a"||z>"z"){F=!1;break a}}F=!0}else F=!1;F=!F}if(F)throw new TypeError("$d");this.intlCurrencyCode_=C?C.toUpperCase():null;this.currencyStyle_=y||0;this.overrideNumberFormatSymbols_=k||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_=hp(this).MINUS_SIGN;this.negativeSuffix_="";this.multiplier_=1;this.negativePercentSignExpected_=!1;this.groupingArray_=[];this.useExponentialNotation_=this.decimalSeparatorAlwaysShown_=!1;this.compactStyle_=0;if(typeof I==="number")switch(I){case 1:UV(this,hp(this).DECIMAL_PATTERN);break;case 2:UV(this,hp(this).SCIENTIFIC_PATTERN);break;case 3:UV(this,hp(this).PERCENT_PATTERN);break;case 4:I=hp(this).CURRENCY_PATTERN;C=["0"];if(y=
WC[HC(this)]){y=y[0]&7;if(y>0)for(C.push("."),k=0;k<y;k++)C.push("0");I=I.replace(/0.00/g,C.join(""))}UV(this,I);break;case 5:hMq(this,1);break;case 6:hMq(this,2);break;default:throw Error("ce");}else UV(this,I)};
Ucc=!1;hp=function(I){return I.overrideNumberFormatSymbols_||(Ucc?Ek5:BUS)};
HC=function(I){return I.intlCurrencyCode_||hp(I).DEF_CURRENCY_CODE};
TvK=function(I,C){if(C>308)throw Error("be`"+C);I.maximumFractionDigits_=C;return I};
UV=function(I,C){var y=[0];I.positivePrefix_=Hpc(I,C,y);for(var k=y[0],F=-1,z=0,c=0,r=0,w=-1,L=C.length,D=!0;y[0]<L&&D;y[0]++)switch(C.charAt(y[0])){case "#":c>0?r++:z++;w>=0&&F<0&&w++;break;case "0":if(r>0)throw Error("ie`"+C);c++;w>=0&&F<0&&w++;break;case ",":w>0&&I.groupingArray_.push(w);w=0;break;case ".":if(F>=0)throw Error("je`"+C);F=z+c+r;break;case "E":if(I.useExponentialNotation_)throw Error("ke`"+C);I.useExponentialNotation_=!0;I.minExponentDigits_=0;y[0]+1<L&&C.charAt(y[0]+1)=="+"&&(y[0]++,
I.useSignForPositiveExponent_=!0);for(;y[0]+1<L&&C.charAt(y[0]+1)=="0";)y[0]++,I.minExponentDigits_++;if(z+c<1||I.minExponentDigits_<1)throw Error("le`"+C);D=!1;break;default:y[0]--,D=!1}c==0&&z>0&&F>=0&&(c=F,c==0&&c++,r=z-c,z=c-1,c=1);if(F<0&&r>0||F>=0&&(F<z||F>z+c)||w==0)throw Error("me`"+C);r=z+c+r;I.maximumFractionDigits_=F>=0?r-F:0;F>=0&&(I.minimumFractionDigits_=z+c-F,I.minimumFractionDigits_<0&&(I.minimumFractionDigits_=0));I.minimumIntegerDigits_=(F>=0?F:r)-z;I.useExponentialNotation_&&(I.maximumIntegerDigits_=
z+I.minimumIntegerDigits_,I.maximumFractionDigits_==0&&I.minimumIntegerDigits_==0&&(I.minimumIntegerDigits_=1));I.groupingArray_.push(Math.max(0,w));I.decimalSeparatorAlwaysShown_=F==0||F==r;k=y[0]-k;I.positiveSuffix_=Hpc(I,C,y);y[0]<C.length&&C.charAt(y[0])==";"?(y[0]++,I.multiplier_!=1&&(I.negativePercentSignExpected_=!0),I.negativePrefix_=Hpc(I,C,y),y[0]+=k,I.negativeSuffix_=Hpc(I,C,y)):(I.negativePrefix_+=I.positivePrefix_,I.negativeSuffix_+=I.positiveSuffix_)};
hMq=function(I,C){I.compactStyle_=C;UV(I,hp(I).DECIMAL_PATTERN);I.minimumFractionDigits_=0;TvK(I,2);if(I.minimumFractionDigits_>0)throw Error("ae");I.significantDigits_=2};
_.di.prototype.parse=function(I,C){C=C||[0];if(this.compactStyle_!==0)throw Error("de");I=I.replace(/ |\u202f/g,"\u00a0");var y=I.indexOf(this.positivePrefix_,C[0])==C[0],k=I.indexOf(this.negativePrefix_,C[0])==C[0];y&&k&&(this.positivePrefix_.length>this.negativePrefix_.length?k=!1:this.positivePrefix_.length<this.negativePrefix_.length&&(y=!1));y?C[0]+=this.positivePrefix_.length:k&&(C[0]+=this.negativePrefix_.length);if(I.indexOf(hp(this).INFINITY,C[0])==C[0]){C[0]+=hp(this).INFINITY.length;var F=
Infinity}else{F=I;var z=!1,c=!1,r=!1,w=-1,L=1,D=hp(this).DECIMAL_SEP,p=hp(this).GROUP_SEP,Q=hp(this).EXP_SYMBOL;if(this.compactStyle_!=0)throw Error("ee");p=p.replace(/\u202f/g,"\u00a0");for(var X="";C[0]<F.length;C[0]++){var b=F.charAt(C[0]),S=tfq(this,b);if(S>=0&&S<=9)X+=S,r=!0;else if(b==D.charAt(0)){if(z||c)break;X+=".";z=!0}else if(b==p.charAt(0)&&("\u00a0"!=p.charAt(0)||C[0]+1<F.length&&tfq(this,F.charAt(C[0]+1))>=0)){if(z||c)break}else if(b==Q.charAt(0)){if(c)break;X+="E";c=!0;w=C[0]}else if(b==
"+"||b=="-"){if(r&&w!=C[0]-1)break;X+=b}else if(this.multiplier_==1&&b==hp(this).PERCENT.charAt(0)){if(L!=1)break;L=100;if(r){C[0]++;break}}else if(this.multiplier_==1&&b==hp(this).PERMILL.charAt(0)){if(L!=1)break;L=1E3;if(r){C[0]++;break}}else break}this.multiplier_!=1&&(L=this.multiplier_);F=parseFloat(X)/L}if(y){if(I.indexOf(this.positiveSuffix_,C[0])!=C[0])return NaN;C[0]+=this.positiveSuffix_.length}else if(k){if(I.indexOf(this.negativeSuffix_,C[0])!=C[0])return NaN;C[0]+=this.negativeSuffix_.length}return k?
-F:F};
_.di.prototype.format=function(I){if(this.minimumFractionDigits_>this.maximumFractionDigits_)throw Error("fe");if(isNaN(I))return hp(this).NAN;var C=[];var y=I;if(this.compactStyle_==0)y=tp;else{y=Math.abs(y);var k=JG8(this,y<=1?0:Opq(y)).divisorBase;y=JG8(this,k+Opq(aWS(this,Jp(y,-k)).intValue))}I=Jp(I,-y.divisorBase);(k=I<0||I==0&&1/I<0)?y.negative_prefix?C.push(y.negative_prefix):(C.push(y.prefix),C.push(this.negativePrefix_)):(C.push(y.prefix),C.push(this.positivePrefix_));if(isFinite(I))if(I*=
k?-1:1,I*=this.multiplier_,this.useExponentialNotation_){var F=I;if(F==0)Mfq(this,F,this.minimumIntegerDigits_,C),IBq(this,0,C);else{var z=Math.floor(Math.log(F)/Math.log(10)+2E-15);F=Jp(F,-z);var c=this.minimumIntegerDigits_;this.maximumIntegerDigits_>1&&this.maximumIntegerDigits_>this.minimumIntegerDigits_?(c=z%this.maximumIntegerDigits_,c<0&&(c=this.maximumIntegerDigits_+c),F=Jp(F,c),z-=c,c=1):this.minimumIntegerDigits_<1?(z++,F=Jp(F,-1)):(z-=this.minimumIntegerDigits_-1,F=Jp(F,this.minimumIntegerDigits_-
1));Mfq(this,F,c,C);IBq(this,z,C)}}else Mfq(this,I,this.minimumIntegerDigits_,C);else C.push(hp(this).INFINITY);k?y.negative_suffix?C.push(y.negative_suffix):(isFinite(I)&&C.push(y.suffix),C.push(this.negativeSuffix_)):(isFinite(I)&&C.push(y.suffix),C.push(this.positiveSuffix_));return C.join("")};
var aWS=function(I,C){var y=Jp(C,I.maximumFractionDigits_);I.significantDigits_>0&&(y=CTw(y,I.significantDigits_,I.maximumFractionDigits_));y=Math.round(y);if(isFinite(y)){var k=Math.floor(Jp(y,-I.maximumFractionDigits_));y=Math.floor(y-Jp(k,I.maximumFractionDigits_));if(y<0||y>=Jp(1,I.maximumFractionDigits_))k=Math.round(C),y=0}else k=C,y=0;return{intValue:k,fracValue:y}},Mfq=function(I,C,y,k){if(I.minimumFractionDigits_>I.maximumFractionDigits_)throw Error("fe");
k||(k=[]);C=aWS(I,C);var F=C.intValue,z=C.fracValue,c=I.minimumFractionDigits_>0||z>0||!1;C=I.minimumFractionDigits_;c&&(C=I.minimumFractionDigits_);for(var r="",w=F;w>1E20;)r="0"+r,w=Math.round(Jp(w,-1));r=w+r;var L=hp(I).DECIMAL_SEP;w=hp(I).ZERO_DIGIT.codePointAt(0);var D=r.length,p=0;if(F>0||y>0){for(F=D;F<y;F++)k.push(String.fromCodePoint(w));if(I.groupingArray_.length>=2)for(y=1;y<I.groupingArray_.length;y++)p+=I.groupingArray_[y];y=D-p;if(y>0){F=I.groupingArray_;p=D=0;for(var Q,X=hp(I).GROUP_SEP,
b=r.length,S=0;S<b;S++)if(k.push(String.fromCodePoint(w+Number(r.charAt(S)))),b-S>1)if(Q=F[p],S<y){var A=y-S;(Q===1||Q>0&&A%Q===1)&&k.push(X)}else p<F.length&&(S===y?p+=1:Q===S-y-D+1&&(k.push(X),D+=Q,p+=1))}else{y=r;r=I.groupingArray_;F=hp(I).GROUP_SEP;Q=y.length;X=[];for(D=r.length-1;D>=0&&Q>0;D--){p=r[D];for(b=0;b<p&&Q-b-1>=0;b++)X.push(String.fromCodePoint(w+Number(y.charAt(Q-b-1))));Q-=p;Q>0&&X.push(F)}k.push.apply(k,X.reverse())}}else c||k.push(String.fromCodePoint(w));(I.decimalSeparatorAlwaysShown_||
c)&&k.push(L);z=String(z);c=z.split("e+");c.length==2&&(z=String(CTw(parseFloat(c[0]),I.significantDigits_,1)),z=z.replace(".",""),z+=(0,_.MI8)("0",parseInt(c[1],10)-z.length+1));I.maximumFractionDigits_+1>z.length&&(z="1"+(0,_.MI8)("0",I.maximumFractionDigits_-z.length)+z);for(I=z.length;z.charAt(I-1)=="0"&&I>C+1;)I--;for(C=1;C<I;C++)k.push(String.fromCodePoint(w+Number(z.charAt(C))))},IBq=function(I,C,y){y.push(hp(I).EXP_SYMBOL);
C<0?(C=-C,y.push(hp(I).MINUS_SIGN)):I.useSignForPositiveExponent_&&y.push(hp(I).PLUS_SIGN);C=""+C;for(var k=hp(I).ZERO_DIGIT,F=C.length;F<I.minExponentDigits_;F++)y.push(k);I=k.codePointAt(0)-sHq;for(k=0;k<C.length;k++)y.push(String.fromCodePoint(I+C.codePointAt(k)))},tfq=function(I,C){C=C.codePointAt(0);
if(48<=C&&C<58)return C-48;I=hp(I).ZERO_DIGIT.codePointAt(0);return I<=C&&C<I+10?C-I:-1},sHq="0".codePointAt(0),Hpc=function(I,C,y){for(var k="",F=!1,z=C.length;y[0]<z;y[0]++){var c=C.charAt(y[0]);
if(c=="'")y[0]+1<z&&C.charAt(y[0]+1)=="'"?(y[0]++,k+="'"):F=!F;else if(F)k+=c;else switch(c){case "#":case "0":case ",":case ".":case ";":return k;case "\u00a4":if(y[0]+1<z&&C.charAt(y[0]+1)=="\u00a4")y[0]++,k+=HC(I);else switch(I.currencyStyle_){case 0:c=HC(I);k+=c in WC?WC[c][1]:c;break;case 2:c=HC(I);var r=WC[c];k+=r?c==r[1]?c:c+" "+r[1]:c;break;case 1:c=HC(I),k+=c in WC?WC[c][2]:c}break;case "%":if(!I.negativePercentSignExpected_&&I.multiplier_!=1)throw Error("ge");if(I.negativePercentSignExpected_&&
I.multiplier_!=100)throw Error("he");I.multiplier_=100;I.negativePercentSignExpected_=!1;k+=hp(I).PERCENT;break;case "\u2030":if(!I.negativePercentSignExpected_&&I.multiplier_!=1)throw Error("ge");if(I.negativePercentSignExpected_&&I.multiplier_!=1E3)throw Error("he");I.multiplier_=1E3;I.negativePercentSignExpected_=!1;k+=hp(I).PERMILL;break;default:k+=c}}return k},tp={divisorBase:0,
negative_prefix:"",negative_suffix:"",prefix:"",suffix:""},JG8=function(I,C){I=I.compactStyle_==1?vC.COMPACT_DECIMAL_SHORT_PATTERN:vC.COMPACT_DECIMAL_LONG_PATTERN;I==null&&(I=vC.COMPACT_DECIMAL_SHORT_PATTERN);if(C<3)return tp;C=Math.min(14,C);var y=I[Jp(1,C)];for(--C;!y&&C>=3;)y=I[Jp(1,C)],C--;if(!y)return tp;y=y.other;var k=I="",F=y.indexOf(";");F>=0&&(y=y.substring(0,F),F=y.substring(F+1))&&(k=/([^0]*)(0+)(.*)/.exec(F),I=k[1],k=k[3]);return y&&y!="0"?(y=/([^0]*)(0+)(.*)/.exec(y))?{divisorBase:C+
1-(y[2].length-1),negative_prefix:I,negative_suffix:k,prefix:y[1],suffix:y[3]}:tp:tp},Opq=function(I){if(!isFinite(I))return I>0?I:0;
for(var C=0;(I/=10)>=1;)C++;return C},Jp=function(I,C){if(!I||!isFinite(I)||C==0)return I;
I=String(I).split("e");return parseFloat(I[0]+"e"+(parseInt(I[1]||0,10)+C))},omb=function(I,C){return I&&isFinite(I)?Jp(Math.round(Jp(I,C)),-C):I},CTw=function(I,C,y){if(!I)return I;
C=C-Opq(I)-1;return C<-y?omb(I,-y):omb(I,C)};var yLY=function(I){return I%10==1&&I%100!=11?"one":I%10==2&&I%100!=12?"two":I%10==3&&I%100!=13?"few":"other"},k$0=yLY;
k$0=yLY;var Fhq;Fhq=function(I,C){var y=I|0;if(void 0===C){C=Math;var k=C.min,F=I+"",z=F.indexOf(".");C=k.call(C,z===-1?0:F.length-z-1,3)}k=Math.pow(10,C);I={v:C,f:(I*k|0)%k};return y==1&&I.v==0?"one":"other"};
_.Bg=Fhq;_.Bg=Fhq;var uIq,zlS,TWu,eld,rLw;_.cLq=function(I){this.JSC$9239_pattern_=I;this.parsedPattern_=this.literals_=this.initialLiterals_=null;I=BUS;var C=vC;if(uIq!==I||zlS!==C)uIq=I,zlS=C,TWu=new _.di(1);this.numberFormatter_=TWu};
uIq=null;zlS=null;TWu=null;eld=RegExp("'([{}#].*?)'","g");rLw=RegExp("''","g");
_.cLq.prototype.format=function(I){if(this.JSC$9239_pattern_){this.initialLiterals_=[];var C=iKe(this,this.JSC$9239_pattern_);this.parsedPattern_=wOm(this,C);this.JSC$9239_pattern_=null}if(this.parsedPattern_&&this.parsedPattern_.length!=0)for(this.literals_=_.tX(this.initialLiterals_),C=[],nmq(this,this.parsedPattern_,I,!1,C),I=C.join("");this.literals_.length>0;)I=I.replace(this.buildPlaceholder_(this.literals_),String(this.literals_.pop()).replace("$","$$$$"));else I="";return I};
var nmq=function(I,C,y,k,F){for(var z=0;z<C.length;z++)switch(C[z].type){case 4:F.push(C[z].value);break;case 3:var c=C[z].value;var r=I,w=F,L=y[c];L===void 0?w.push("Undefined parameter - "+c):(r.literals_.push(L),w.push(r.buildPlaceholder_(r.literals_)));break;case 2:c=C[z].value;r=I;w=y;L=k;var D=F,p=c.argumentIndex;w[p]===void 0?D.push("Undefined parameter - "+p):(p=c[w[p]],p===void 0&&(p=c.other),nmq(r,p,w,L,D));break;case 0:c=C[z].value;PT8(I,c,y,_.Bg,k,F);break;case 1:c=C[z].value,PT8(I,c,
y,k$0,k,F)}},PT8=function(I,C,y,k,F,z){var c=C.argumentIndex,r=C.argumentOffset,w=+y[c];
isNaN(w)?z.push("Undefined or invalid parameter - "+c):(r=w-r,c=C[y[c]],c===void 0&&(k=k(Math.abs(r)),c=C[k],c===void 0&&(c=C.other)),C=[],nmq(I,c,y,F,C),y=C.join(""),F?z.push(y):(I=I.numberFormatter_.format(r),z.push(y.replace(/#/g,I))))},iKe=function(I,C){var y=I.initialLiterals_,k=I.buildPlaceholder_.bind(I);
C=C.replace(rLw,function(){y.push("'");return k(y)});
return C=C.replace(eld,function(F,z){y.push(z);return k(y)})},Lh5=function(I){var C=0,y=[],k=[],F=/[{}]/g;
F.lastIndex=0;for(var z;z=F.exec(I);){var c=z.index;z[0]=="}"?(y.pop(),y.length==0&&(z={type:1},z.value=I.substring(C,c),k.push(z),C=c+1)):(y.length==0&&(C=I.substring(C,c),C!=""&&k.push({type:0,value:C}),C=c+1),y.push("{"))}I=I.substring(C);I!=""&&k.push({type:0,value:I});return k},DH5=/^\s*(\w+)\s*,\s*plural\s*,(?:\s*offset:(\d+))?/,pOq=/^\s*(\w+)\s*,\s*selectordinal\s*,/,QHq=/^\s*(\w+)\s*,\s*select\s*,/,wOm=function(I,C){var y=[];
C=Lh5(C);for(var k=0;k<C.length;k++){var F={};if(0==C[k].type)F.type=4,F.value=C[k].value;else if(1==C[k].type){var z=C[k].value;switch(DH5.test(z)?0:pOq.test(z)?1:QHq.test(z)?2:/^\s*\w+\s*/.test(z)?3:5){case 2:F.type=2;F.value=NWq(I,C[k].value);break;case 0:F.type=0;F.value=VAP(I,C[k].value);break;case 1:F.type=1;F.value=jHc(I,C[k].value);break;case 3:F.type=3,F.value=C[k].value}}y.push(F)}return y},NWq=function(I,C){var y="";
C=C.replace(QHq,function(r,w){y=w;return""});
var k={};k.argumentIndex=y;C=Lh5(C);for(var F=0;F<C.length;){var z=C[F].value;F++;var c=void 0;1==C[F].type&&(c=wOm(I,C[F].value));k[z.replace(/\s/g,"")]=c;F++}return k},VAP=function(I,C){var y="",k=0;
C=C.replace(DH5,function(w,L,D){y=L;D&&(k=parseInt(D,10));return""});
var F={};F.argumentIndex=y;F.argumentOffset=k;C=Lh5(C);for(var z=0;z<C.length;){var c=C[z].value;z++;var r=void 0;1==C[z].type&&(r=wOm(I,C[z].value));F[c.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=r;z++}return F},jHc=function(I,C){var y="";
C=C.replace(pOq,function(r,w){y=w;return""});
var k={};k.argumentIndex=y;k.argumentOffset=0;C=Lh5(C);for(var F=0;F<C.length;){var z=C[F].value;F++;var c=void 0;1==C[F].type&&(c=wOm(I,C[F].value));k[z.replace(/\s*(?:=)?(\w+)\s*/,"$1")]=c;F++}return k};
_.cLq.prototype.buildPlaceholder_=function(I){return"\ufddf_"+(I.length-1).toString(10)+"_"};var lBS;
lBS={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 MVO=function(){this.rdtfSymbols_=XO0||lBS;this.alwaysNumeric_=this.alwaysNumeric_=!0;this.style_=0};
MVO.prototype.format=function(I,C){a:{C=$H5(this,C);switch(this.style_){case 2:if(C.NARROW!=void 0){C=C.NARROW;break a}case 1:if(C.SHORT!=void 0){C=C.SHORT;break a}default:C=C.LONG;break a}C=void 0}if(!this.alwaysNumeric_&&C&&C.R&&C.R[""+I])I=C.R[""+I];else if(C){var y=Math.abs(I);I=(new _.cLq("{N,plural,"+(I>0||I==0&&1/I==Infinity?C.F:C.P)+"}")).format({N:y})}else I="";return I};
var $H5=function(I,C){switch(C){default:case 0:return I.rdtfSymbols_.YEAR;case 1:return I.rdtfSymbols_.QUARTER;case 2:return I.rdtfSymbols_.MONTH;case 3:return I.rdtfSymbols_.WEEK;case 4:return I.rdtfSymbols_.DAY;case 5:return I.rdtfSymbols_.HOUR;case 6:return I.rdtfSymbols_.MINUTE;case 7:return I.rdtfSymbols_.SECOND}};var Rlc=function(I,C,y,k,F,z,c,r){this.x0=I;this.y0=C;this.x1=y;this.y1=k;this.x2=F;this.y2=z;this.x3=c;this.y3=r};
Rlc.prototype.clone=function(){return new Rlc(this.x0,this.y0,this.x1,this.y1,this.x2,this.y2,this.x3,this.y3)};
Rlc.prototype.equals=function(I){return this.x0==I.x0&&this.y0==I.y0&&this.x1==I.x1&&this.y1==I.y1&&this.x2==I.x2&&this.y2==I.y2&&this.x3==I.x3&&this.y3==I.y3};
var bKm=function(I,C){if(C==0)return I.x0;if(C==1)return I.x3;var y=jZ(I.x0,I.x1,C),k=jZ(I.x1,I.x2,C);I=jZ(I.x2,I.x3,C);y=jZ(y,k,C);k=jZ(k,I,C);return jZ(y,k,C)},Ybu=function(I,C){var y=(C-I.x0)/(I.x3-I.x0);
if(y<=0)return 0;if(y>=1)return 1;for(var k=0,F=1,z=0,c=0;c<8;c++){z=bKm(I,y);var r=(bKm(I,y+1E-6)-z)/1E-6;if(Math.abs(z-C)<1E-6)return y;if(Math.abs(r)<1E-6)break;else z<C?k=y:F=y,y-=(z-C)/r}for(c=0;Math.abs(z-C)>1E-6&&c<8;c++)z<C?(k=y,y=(y+F)/2):(F=y,y=(y+k)/2),z=bKm(I,y);return y};var OV=function(){_.LW.call(this);this.JSC$9260_name_="closure_frame"+G$d++;this.iframesForDisposal_=[];fBe[this.JSC$9260_name_]=this},an;
_.s0(OV,_.LW);var fBe={},G$d=0,SbY=function(I,C){var y=u3(I);_.Jkw(C,function(k,F){Array.isArray(k)||(k=[k]);_.mn(k,function(z){z=y.JSC$7243_createDom("INPUT",{type:"hidden",name:F,value:z});I.appendChild(z)})})};
_.u=OV.prototype;_.u.JSC$9262_form_=null;_.u.JSC$9262_iframe_=null;_.u.iframeName_=null;_.u.nextIframeId_=0;_.u.JSC$9262_active_=!1;_.u.complete_=!1;_.u.success_=!1;_.u.lastContent_=null;_.u.JSC$9262_lastErrorCode_=0;_.u.iframeDisposalTimer_=null;
_.u.send=function(I,C,y,k){if(this.JSC$9262_active_)throw Error("ne");I=new _.t$(I);C=C?C.toUpperCase():"GET";y&&_.ya(I);an||(an=_.Rd("FORM"),an.acceptCharset="utf-8",y=an.style,y.position="absolute",y.visibility="hidden",y.top=y.left="-10px",y.width=y.height="10px",y.overflow="hidden",document.body.appendChild(an));this.JSC$9262_form_=an;C=="GET"&&SbY(this.JSC$9262_form_,I.JSC$7905_queryData_);k&&SbY(this.JSC$9262_form_,k);y=I.toString();y=hzW(y);k=this.JSC$9262_form_;y=_.Dd(FG(y));y!==void 0&&(k.action=
y);this.JSC$9262_form_.method=C;Khu(this);ALw(this)};
_.u.abort=function(I){if(this.JSC$9262_active_){var C=M7(this);if(C)if(w1(C))C.removeAllListeners(void 0);else if(C=nW(C)){var y=0,k;for(k in C.listeners)for(var F=C.listeners[k].concat(),z=0;z<F.length;++z)wY(F[z])&&++y}this.success_=this.JSC$9262_active_=this.complete_=!1;this.JSC$9262_lastErrorCode_=I||7;this.dispatchEvent("abort");gmu(this)}};
_.u.disposeInternal=function(){this.JSC$9262_active_&&this.abort();OV.superClass_.disposeInternal.call(this);this.JSC$9262_iframe_&&vmc(this);ALw(this);this.JSC$9262_form_=null;delete this.errorChecker_;this.lastContent_=this.JSC$9262_form_=null;this.JSC$9262_lastErrorCode_=0;delete fBe[this.JSC$9260_name_]};
_.u.isComplete=function(){return this.complete_};
_.u.isSuccess=function(){return this.success_};
_.u.isActive=function(){return this.JSC$9262_active_};
_.u.getResponseText=function(){return this.lastContent_};
_.u.getLastError=function(){return _.Rkm(this.JSC$9262_lastErrorCode_)};
var Khu=function(I){I.JSC$9262_active_=!0;I.complete_=!1;I.JSC$9262_lastErrorCode_=0;I.iframeName_=I.JSC$9260_name_+"_"+(I.nextIframeId_++).toString(36);I.JSC$9262_iframe_=u3(I.JSC$9262_form_).JSC$7243_createDom("IFRAME",{name:I.iframeName_,id:I.iframeName_});var C=I.JSC$9262_iframe_.style;C.visibility="hidden";C.width=C.height="10px";C.display="none";_.z6?C.marginTop=C.marginLeft="-10px":(C.position="absolute",C.top=C.left="-10px");u3(I.JSC$9262_form_).JSC$7241_document_.body.appendChild(I.JSC$9262_iframe_);
C=I.iframeName_+"_inner";var y=Byc(I.JSC$9262_iframe_);if(document.baseURI){var k=IY(C);k='<head><base href="'+IY(document.baseURI)+'"></head><body><iframe id="'+k+'" name="'+k+'"></iframe>';k=NM(k)}else k=IY(C),k=NM('<body><iframe id="'+k+'" name="'+k+'"></iframe>');y.write(Vp(k));_.Lv(y.getElementById(C),"load",I.onIframeLoaded_,!1,I);k=rQ("TEXTAREA",I.JSC$9262_form_);for(var F=0,z=k.length;F<z;F++){var c=k[F].value;JPb(k[F])!=c&&(_.Ah(k[F],c),k[F].value=c)}k=y.importNode(I.JSC$9262_form_,!0);k.target=
C;k.action=I.JSC$9262_form_.action;y.body.appendChild(k);F=rQ("SELECT",I.JSC$9262_form_);z=rQ("SELECT",k);c=0;for(var r=F.length;c<r;c++)for(var w=rQ("OPTION",F[c]),L=rQ("OPTION",z[c]),D=0,p=w.length;D<p;D++)L[D].selected=w[D].selected;F=rQ("INPUT",I.JSC$9262_form_);z=rQ("INPUT",k);c=0;for(r=F.length;c<r;c++)if(F[c].type=="file"&&F[c].value!=z[c].value){I.JSC$9262_form_.target=C;k=I.JSC$9262_form_;break}try{I.errorHandled_=!1,k.submit(),y.close(),_.u4&&setTimeout(I.testForFirefoxSilentError_.bind(I),
250)}catch(Q){_.Pf(y.getElementById(C),"load",I.onIframeLoaded_,!1,I),y.close(),Ii(I,2)}};
OV.prototype.onIframeLoaded_=function(){_.Pf(M7(this),"load",this.onIframeLoaded_,!1,this);try{var I=this.JSC$9262_iframe_?Byc(M7(this)):null;this.complete_=!0;this.JSC$9262_active_=!1;try{var C=I.body;this.lastContent_=C.textContent||C.innerText}catch(F){var y=1}var k;y||typeof this.errorChecker_!="function"||(k=this.errorChecker_(I))&&(y=4);y?Ii(this,y):(this.success_=!0,this.JSC$9262_lastErrorCode_=0,this.dispatchEvent("complete"),this.dispatchEvent("success"),gmu(this))}catch(F){Ii(this,1)}};
var Ii=function(I,C){I.errorHandled_||(I.success_=!1,I.JSC$9262_active_=!1,I.complete_=!0,I.JSC$9262_lastErrorCode_=C,I.dispatchEvent("complete"),I.dispatchEvent("error"),gmu(I),I.errorHandled_=!0)},gmu=function(I){vmc(I);
ALw(I);I.JSC$9262_form_=null;I.dispatchEvent("ready")},vmc=function(I){var C=I.JSC$9262_iframe_;
C&&(C.onreadystatechange=null,C.onload=null,C.onerror=null,I.iframesForDisposal_.push(C));I.iframeDisposalTimer_&&(clearTimeout(I.iframeDisposalTimer_),I.iframeDisposalTimer_=null);_.u4?I.iframeDisposalTimer_=setTimeout(I.disposeIframes_.bind(I),2E3):I.disposeIframes_();I.JSC$9262_iframe_=null;I.iframeName_=null};
OV.prototype.disposeIframes_=function(){this.iframeDisposalTimer_&&(clearTimeout(this.iframeDisposalTimer_),this.iframeDisposalTimer_=null);for(;this.iframesForDisposal_.length!=0;){var I=this.iframesForDisposal_.pop();_.ey(I)}};
var ALw=function(I){I.JSC$9262_form_&&I.JSC$9262_form_==an&&_.GE(I.JSC$9262_form_)},M7=function(I){return I.JSC$9262_iframe_?Byc(I.JSC$9262_iframe_).getElementById(I.iframeName_+"_inner"):null};
OV.prototype.testForFirefoxSilentError_=function(){if(this.JSC$9262_active_){var I=this.JSC$9262_iframe_?Byc(M7(this)):null;I&&!jl(I,"documentUri")?(_.Pf(M7(this),"load",this.onIframeLoaded_,!1,this),navigator.onLine?Ii(this,3):Ii(this,9)):setTimeout(this.testForFirefoxSilentError_.bind(this),250)}};_.CV=function(I){return I=="\r"||I=="\n"||I==" "||I=="\t"};var Whm;_.sJ=function(I){this.errorMessage_=null;this.result_=[];this.JSC$9264_buffer_="";this.stack_=[];this.JSC$9264_pos_=this.depth_=0;this.slashed_=!1;this.unicodeCount_=0;this.stringInputPattern_=/[\\"]/g;this.state_=this.streamState_=0;this.deliverMessageAsRawString_=!(!I||!I.deliverMessageAsRawString)};
Whm={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};_.sJ.prototype.isInputValid=function(){return this.streamState_!=3};
_.sJ.prototype.done=function(){return this.streamState_===2};
var oi=function(I,C,y){I.streamState_=3;I.errorMessage_="The stream is broken @"+I.JSC$9264_pos_+"/"+y+". With input:\n"+C;throw Error(I.errorMessage_);};
_.sJ.prototype.acceptsBinaryInput=function(){return!1};
_.sJ.prototype.parse=function(I){function C(){for(;Q<I.length;)if(_.CV(I[Q]))Q++,z.JSC$9264_pos_++;else break;return Q<L}
function y(){for(var b;;){b=I[Q++];if(!b)break;z.JSC$9264_pos_++;switch(z.state_){case w.INIT:b==="{"?z.state_=w.OBJECT_OPEN:b==="["?z.state_=w.ARRAY_OPEN:_.CV(b)||oi(z,I,Q);continue;case w.KEY_START:case w.OBJECT_OPEN:if(_.CV(b))continue;if(z.state_===w.KEY_START)c.push(w.KEY_END);else if(b==="}"){F("{}");z.state_=k();continue}else c.push(w.OBJECT_END);b==='"'?z.state_=w.STRING:oi(z,I,Q);continue;case w.KEY_END:case w.OBJECT_END:if(_.CV(b))continue;b===":"?(z.state_===w.OBJECT_END&&(c.push(w.OBJECT_END),
z.depth_++),z.state_=w.VALUE):b==="}"?(z.depth_--,F(),z.state_=k()):b===","?(z.state_===w.OBJECT_END&&c.push(w.OBJECT_END),z.state_=w.KEY_START):oi(z,I,Q);continue;case w.ARRAY_OPEN:case w.VALUE:if(_.CV(b))continue;if(z.state_===w.ARRAY_OPEN)if(z.depth_++,z.state_=w.VALUE,b==="]"){z.depth_--;if(z.depth_===0){z.state_=w.ARRAY_END;return}F("[]");z.state_=k();continue}else c.push(w.ARRAY_END);b==='"'?z.state_=w.STRING:b==="{"?z.state_=w.OBJECT_OPEN:b==="["?z.state_=w.ARRAY_OPEN:b==="t"?z.state_=w.TRUE1:
b==="f"?z.state_=w.FALSE1:b==="n"?z.state_=w.NULL1:b!=="-"&&("0123456789".indexOf(b)!==-1?z.state_=w.NUM_DIGIT:oi(z,I,Q));continue;case w.ARRAY_END:if(b===",")c.push(w.ARRAY_END),z.state_=w.VALUE,z.depth_===1&&(p=Q);else if(b==="]"){z.depth_--;if(z.depth_===0)return;F();z.state_=k()}else if(_.CV(b))continue;else oi(z,I,Q);continue;case w.STRING:var S=Q;a:for(;;){for(;z.unicodeCount_>0;)if(b=I[Q++],z.unicodeCount_===4?z.unicodeCount_=0:z.unicodeCount_++,!b)break a;if(b==='"'&&!z.slashed_){z.state_=
k();break}if(b==="\\"&&!z.slashed_&&(z.slashed_=!0,b=I[Q++],!b))break;if(z.slashed_)if(z.slashed_=!1,b==="u"&&(z.unicodeCount_=1),b=I[Q++])continue;else break;r.lastIndex=Q;b=r.exec(I);if(!b){Q=I.length+1;break}Q=b.index+1;b=I[b.index];if(!b)break}z.JSC$9264_pos_+=Q-S;continue;case w.TRUE1:if(!b)continue;b==="r"?z.state_=w.TRUE2:oi(z,I,Q);continue;case w.TRUE2:if(!b)continue;b==="u"?z.state_=w.TRUE3:oi(z,I,Q);continue;case w.TRUE3:if(!b)continue;b==="e"?z.state_=k():oi(z,I,Q);continue;case w.FALSE1:if(!b)continue;
b==="a"?z.state_=w.FALSE2:oi(z,I,Q);continue;case w.FALSE2:if(!b)continue;b==="l"?z.state_=w.FALSE3:oi(z,I,Q);continue;case w.FALSE3:if(!b)continue;b==="s"?z.state_=w.FALSE4:oi(z,I,Q);continue;case w.FALSE4:if(!b)continue;b==="e"?z.state_=k():oi(z,I,Q);continue;case w.NULL1:if(!b)continue;b==="u"?z.state_=w.NULL2:oi(z,I,Q);continue;case w.NULL2:if(!b)continue;b==="l"?z.state_=w.NULL3:oi(z,I,Q);continue;case w.NULL3:if(!b)continue;b==="l"?z.state_=k():oi(z,I,Q);continue;case w.NUM_DECIMAL_POINT:b===
"."?z.state_=w.NUM_DIGIT:oi(z,I,Q);continue;case w.NUM_DIGIT:if("0123456789.eE+-".indexOf(b)!==-1)continue;else Q--,z.JSC$9264_pos_--,z.state_=k();continue;default:oi(z,I,Q)}}}
function k(){var b=c.pop();return b!=null?b:w.VALUE}
function F(b){z.depth_>1||(b||(b=p===-1?z.JSC$9264_buffer_+I.substring(D,Q):I.substring(p,Q)),z.deliverMessageAsRawString_?z.result_.push(b):z.result_.push(JSON.parse(b)),p=Q)}
for(var z=this,c=z.stack_,r=z.stringInputPattern_,w=Whm,L=I.length,D=0,p=-1,Q=0;Q<L;)switch(z.streamState_){case 3:return oi(z,I,Q),null;case 2:return C()&&oi(z,I,Q),null;case 0:if(C()){var X=I[Q++];z.JSC$9264_pos_++;if(X==="["){z.streamState_=1;D=Q;z.state_=w.ARRAY_OPEN;continue}else oi(z,I,Q)}return null;case 1:return y(),z.depth_===0&&z.state_==w.ARRAY_END?(z.streamState_=2,z.JSC$9264_buffer_=I.substring(Q)):z.JSC$9264_buffer_=p===-1?z.JSC$9264_buffer_+I.substring(D):I.substring(p),z.result_.length>
0?(X=z.result_,z.result_=[],X):null}return null};_.s0(_.oC,NS);Fd.prototype.getValue=function(){return this.JSC$9272_value_};
Fd.prototype.clone=function(){return new Fd(this.JSC$9272_key_,this.JSC$9272_value_)};var yu=function(I){this.nodes_=[];if(I)a:{if(I instanceof yu){var C=I.getKeys();I=I.getValues();if(this.getCount()<=0){for(var y=this.nodes_,k=0;k<C.length;k++)y.push(new Fd(C[k],I[k]));break a}}else C=_.Le.getKeys(I),I=_.Le.getValues(I);for(y=0;y<C.length;y++)this.insert(C[y],I[y])}};
_.u=yu.prototype;_.u.insert=function(I,C){var y=this.nodes_;y.push(new Fd(I,C));I=y.length-1;C=this.nodes_;for(y=C[I];I>0;){var k=I-1>>1;if(C[k].JSC$9272_key_>y.JSC$9272_key_)C[I]=C[k],I=k;else break}C[I]=y};
_.u.remove=function(){var I=this.nodes_,C=I.length,y=I[0];if(!(C<=0)){if(C==1)I.length=0;else{I[0]=I.pop();I=0;C=this.nodes_;for(var k=C.length,F=C[I];I<k>>1;){var z=I*2+1,c=I*2+2;z=c<k&&C[c].JSC$9272_key_<C[z].JSC$9272_key_?c:z;if(C[z].JSC$9272_key_>F.JSC$9272_key_)break;C[I]=C[z];I=z}C[I]=F}return y.getValue()}};
_.u.peek=function(){var I=this.nodes_;if(I.length!=0)return I[0].getValue()};
_.u.getValues=function(){for(var I=this.nodes_,C=[],y=I.length,k=0;k<y;k++)C.push(I[k].getValue());return C};
_.u.getKeys=function(){for(var I=this.nodes_,C=[],y=I.length,k=0;k<y;k++)C.push(I[k].JSC$9272_key_);return C};
_.u.containsValue=function(I){return this.nodes_.some(function(C){return C.getValue()==I})};
_.u.containsKey=function(I){return this.nodes_.some(function(C){return C.JSC$9272_key_==I})};
_.u.clone=function(){return new yu(this)};
_.u.getCount=function(){return this.nodes_.length};
_.u.isEmpty=function(){return this.nodes_.length===0};
_.u.clear=function(){this.nodes_.length=0};_.kr=function(I,C){this.JSC$9278_map_={};this.JSC$9278_keys_=[];this.version_=this.size=0;var y=arguments.length;if(y>1){if(y%2)throw Error("oa");for(var k=0;k<y;k+=2)this.set(arguments[k],arguments[k+1])}else I&&this.addAll(I)};
_.u=_.kr.prototype;_.u.getCount=function(){return this.size};
_.u.getValues=function(){Fo(this);for(var I=[],C=0;C<this.JSC$9278_keys_.length;C++)I.push(this.JSC$9278_map_[this.JSC$9278_keys_[C]]);return I};
_.u.getKeys=function(){Fo(this);return this.JSC$9278_keys_.concat()};
_.u.containsKey=function(I){return this.has(I)};
_.u.has=function(I){return uu(this.JSC$9278_map_,I)};
_.u.containsValue=function(I){for(var C=0;C<this.JSC$9278_keys_.length;C++){var y=this.JSC$9278_keys_[C];if(uu(this.JSC$9278_map_,y)&&this.JSC$9278_map_[y]==I)return!0}return!1};
_.u.equals=function(I,C){if(this===I)return!0;if(this.size!=I.getCount())return!1;C=C||dHd;Fo(this);for(var y,k=0;y=this.JSC$9278_keys_[k];k++)if(!C(this.get(y),I.get(y)))return!1;return!0};
var dHd=function(I,C){return I===C};
_.kr.prototype.isEmpty=function(){return this.size==0};
_.kr.prototype.clear=function(){this.JSC$9278_map_={};this.version_=this.size=this.JSC$9278_keys_.length=0};
_.kr.prototype.remove=function(I){return this.delete(I)};
_.kr.prototype.delete=function(I){return uu(this.JSC$9278_map_,I)?(delete this.JSC$9278_map_[I],--this.size,this.version_++,this.JSC$9278_keys_.length>2*this.size&&Fo(this),!0):!1};
var Fo=function(I){if(I.size!=I.JSC$9278_keys_.length){for(var C=0,y=0;C<I.JSC$9278_keys_.length;){var k=I.JSC$9278_keys_[C];uu(I.JSC$9278_map_,k)&&(I.JSC$9278_keys_[y++]=k);C++}I.JSC$9278_keys_.length=y}if(I.size!=I.JSC$9278_keys_.length){C={};for(k=y=0;y<I.JSC$9278_keys_.length;){var F=I.JSC$9278_keys_[y];uu(C,F)||(I.JSC$9278_keys_[k++]=F,C[F]=1);y++}I.JSC$9278_keys_.length=k}};
_.u=_.kr.prototype;_.u.get=function(I,C){return uu(this.JSC$9278_map_,I)?this.JSC$9278_map_[I]:C};
_.u.set=function(I,C){uu(this.JSC$9278_map_,I)||(this.size+=1,this.JSC$9278_keys_.push(I),this.version_++);this.JSC$9278_map_[I]=C};
_.u.addAll=function(I){if(I instanceof _.kr)for(var C=I.getKeys(),y=0;y<C.length;y++)this.set(C[y],I.get(C[y]));else for(C in I)this.set(C,I[C])};
_.u.forEach=function(I,C){for(var y=this.getKeys(),k=0;k<y.length;k++){var F=y[k],z=this.get(F);I.call(C,z,F,this)}};
_.u.clone=function(){return new _.kr(this)};
_.u.transpose=function(){for(var I=new _.kr,C=0;C<this.JSC$9278_keys_.length;C++){var y=this.JSC$9278_keys_[C];I.set(this.JSC$9278_map_[y],y)}return I};
_.u.keys=function(){return r3m(this.__iterator__(!0)).toEs6()};
_.u.values=function(){return r3m(this.__iterator__(!1)).toEs6()};
_.u.entries=function(){var I=this;return Xgq(this.keys(),function(C){return[C,I.get(C)]})};
_.u.__iterator__=function(I){Fo(this);var C=0,y=this.version_,k=this,F=new sI;F.next=function(){if(y!=k.version_)throw Error("oe");if(C>=k.JSC$9278_keys_.length)return or;var z=k.JSC$9278_keys_[C++];return ye(I?z:k.JSC$9278_map_[z])};
return F};
var uu=function(I,C){return Object.prototype.hasOwnProperty.call(I,C)};var qbw=function(){this.JSC$9281_map_=new _.kr;this.JSC$9281_head_=new xHb("");this.JSC$9281_head_.next=this.JSC$9281_head_.prev=this.JSC$9281_head_},mHY=function(I,C){if(C=I.JSC$9281_map_.get(C))C.remove(),I.insert_(C);
return C};
_.u=qbw.prototype;_.u.get=function(I,C){return(I=mHY(this,I))?I.value:C};
_.u.set=function(I,C){var y=mHY(this,I);y?y.value=C:(y=new xHb(I,C),this.JSC$9281_map_.set(I,y),this.insert_(y))};
_.u.peek=function(){return this.JSC$9281_head_.next.value};
_.u.shift=function(){return ZKm(this,this.JSC$9281_head_.next)};
_.u.pop=function(){return ZKm(this,this.JSC$9281_head_.prev)};
_.u.remove=function(I){return(I=this.JSC$9281_map_.get(I))?(this.removeNode(I),!0):!1};
_.u.removeNode=function(I){I.remove();this.JSC$9281_map_.remove(I.key)};
_.u.getCount=function(){return this.JSC$9281_map_.getCount()};
_.u.isEmpty=function(){return this.JSC$9281_map_.isEmpty()};
_.u.getKeys=function(){return this.map(function(I,C){return C})};
_.u.getValues=function(){return this.map(function(I){return I})};
_.u.contains=function(I){return this.some(function(C){return C==I})};
_.u.containsKey=function(I){return this.JSC$9281_map_.containsKey(I)};
_.u.clear=function(){for(;this.getCount()>0;)this.removeNode(this.JSC$9281_head_.prev)};
_.u.forEach=function(I,C){for(var y=this.JSC$9281_head_.next;y!=this.JSC$9281_head_;y=y.next)I.call(C,y.value,y.key,this)};
_.u.map=function(I,C){for(var y=[],k=this.JSC$9281_head_.next;k!=this.JSC$9281_head_;k=k.next)y.push(I.call(C,k.value,k.key,this));return y};
_.u.some=function(I,C){for(var y=this.JSC$9281_head_.next;y!=this.JSC$9281_head_;y=y.next)if(I.call(C,y.value,y.key,this))return!0;return!1};
_.u.every=function(I,C){for(var y=this.JSC$9281_head_.next;y!=this.JSC$9281_head_;y=y.next)if(!I.call(C,y.value,y.key,this))return!1;return!0};
_.u.insert_=function(I){I.next=this.JSC$9281_head_.next;I.prev=this.JSC$9281_head_;this.JSC$9281_head_.next=I;for(I.next.prev=I;this.getCount()>40;)this.removeNode(this.JSC$9281_head_.prev)};
var ZKm=function(I,C){I.JSC$9281_head_!=C&&I.removeNode(C);return C.value},xHb=function(I,C){this.key=I;
this.value=C};
xHb.prototype.remove=function(){this.prev.next=this.next;this.next.prev=this.prev;delete this.prev;delete this.next};var BWd=function(){yu.apply(this,arguments)};
_.R(BWd,yu);BWd.prototype.enqueue=function(I,C){this.insert(I,C)};var Em8=function(){var I=Error();I.name="SecurityError";throw I;},lmI=function(){return{get opener(){return null},
get closed(){return!0},get location(){Em8()},get document(){Em8()},postMessage:function(){},
close:function(){},
focus:function(){}}};var j7W={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 $dz={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 hlc={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($dz).join("|");var UHb=function(){function I(r){r.substr(-1)!==";"&&(r+=";");return c(r)}
for(var C=Object.keys(hlc).sort(XJX),y=Object.keys($dz).sort(XJX),k=0,F=0;k<y.length;k++)C[F]===y[k]?(y[k]+=";?",F++):y[k]+=";";var z=new RegExp("&(?:"+y.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),c=RFm();return function(r){return String(r).replace(z,I)}}();/*

 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 HKc={};var tAw=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"),JLw=/[\\&]/,OK5=RegExp("\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","gi"),aBP=RegExp('[&<>"]',"g"),MAb=RegExp('&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});|[&<>"]',
"gi"),I_w=function(I){return I.charCodeAt(0)===92?I.charAt(1):UHb(I)},CUu=function(I){return JLw.test(I)?I.replace(OK5,I_w):I},sjP=function(I){try{var C,y="";
if(typeof F!=="string"){var k=F;var F=";/?:@&=+$,-_.!~*'()#"}typeof k==="undefined"&&(k=!0);var z,c=HKc[F];if(c)var r=c;else{c=HKc[F]=[];for(z=0;z<128;z++){var w=String.fromCharCode(z);/^[0-9a-z]$/i.test(w)?c.push(w):c.push("%"+("0"+z.toString(16).toUpperCase()).slice(-2))}for(z=0;z<F.length;z++)c[F.charCodeAt(z)]=F[z];r=c}var L=0;for(C=I.length;L<C;L++){var D=I.charCodeAt(L);if(k&&D===37&&L+2<C&&/^[0-9a-f]{2}$/i.test(I.slice(L+1,L+3)))y+=I.slice(L,L+3),L+=2;else if(D<128)y+=r[D];else if(D>=55296&&
D<=57343){if(D>=55296&&D<=56319&&L+1<C){var p=I.charCodeAt(L+1);if(p>=56320&&p<=57343){y+=encodeURIComponent(I[L]+I[L+1]);L++;continue}}y+="%EF%BF%BD"}else y+=encodeURIComponent(I[L])}return y}catch(Q){return I}},o$e=function(I){switch(I){case "&":return"&amp;";
case "<":return"&lt;";case ">":return"&gt;";case '"':return"&quot;";default:return I}},z_=function(I,C){return aBP.test(I)?C?I.replace(MAb,o$e):I.replace(aBP,o$e):I};/*

 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 T_;if(String.fromCodePoint)T_=function(I){try{return String.fromCodePoint(I)}catch(C){if(C instanceof RangeError)return String.fromCharCode(65533);throw C;}};
else{var yEu=String.fromCharCode,kpq=Math.floor;T_=function(){var I=[],C=-1,y=arguments.length;if(!y)return"";for(var k="";++C<y;){var F=Number(arguments[C]);if(!isFinite(F)||F<0||F>1114111||kpq(F)!==F)return String.fromCharCode(65533);if(F<=65535)I.push(F);else{F-=65536;var z=(F>>10)+55296;F=F%1024+56320;I.push(z,F)}if(C+1===y||I.length>16384)k+=yEu.apply(null,I),I.length=0}return k}};var Fdm=function(I){this.root=this.current=I;this.entering=!0};
Fdm.prototype.next=function(){var I=this.current,C=this.entering;if(I===null)return null;a:switch(I._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 y=!0;break a;default:y=!1}C&&y?I._firstChild?(this.current=I._firstChild,this.entering=!0):this.entering=!1:I===this.root?this.current=null:I._next===null?(this.current=
I._parent,this.entering=!1):(this.current=I._next,this.entering=!0);return{entering:C,node:I}};
var c$=function(I,C){this._type=I;this._next=this._prev=this._lastChild=this._firstChild=this._parent=null;this._sourcepos=C;this._lastLineBlank=!1;this._open=!0;this._literal=this._string_content=null;this._listData={};this._title=this._destination=this._info=null;this._isFenced=!1;this._fenceChar=null;this._fenceLength=0;this._onExit=this._onEnter=this._level=this._fenceOffset=null};
c$.prototype.appendChild=function(I){cV(I);I._parent=this;this._lastChild?(this._lastChild._next=I,I._prev=this._lastChild):this._firstChild=I;this._lastChild=I};
var cV=function(I){I._prev?I._prev._next=I._next:I._parent&&(I._parent._firstChild=I._next);I._next?I._next._prev=I._prev:I._parent&&(I._parent._lastChild=I._prev);I._parent=null;I._next=null;I._prev=null},uWS=function(I,C){cV(C);
C._next=I._next;C._next&&(C._next._prev=C);C._prev=I;I._next=C;C._parent=I._parent;C._next||(C._parent._lastChild=C)};
c$.prototype.insertBefore=function(I){cV(I);I._prev=this._prev;I._prev&&(I._prev._next=I);I._next=this;this._prev=I;I._parent=this._parent;I._prev||(I._parent._firstChild=I)};
_.H1.Object.defineProperties(c$.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(I){this._literal=I}},
destination:{configurable:!0,enumerable:!0,get:function(){return this._destination},
set:function(I){this._destination=I}},
title:{configurable:!0,enumerable:!0,get:function(){return this._title},
set:function(I){this._title=I}},
info:{configurable:!0,enumerable:!0,get:function(){return this._info},
set:function(I){this._info=I}},
level:{configurable:!0,enumerable:!0,get:function(){return this._level},
set:function(I){this._level=I}},
listType:{configurable:!0,enumerable:!0,get:function(){return this._listData.type},
set:function(I){this._listData.type=I}},
listTight:{configurable:!0,enumerable:!0,get:function(){return this._listData.tight},
set:function(I){this._listData.tight=I}},
listStart:{configurable:!0,enumerable:!0,get:function(){return this._listData.start},
set:function(I){this._listData.start=I}},
onEnter:{configurable:!0,enumerable:!0,get:function(){return this._onEnter},
set:function(I){this._onEnter=I}},
onExit:{configurable:!0,enumerable:!0,get:function(){return this._onExit},
set:function(I){this._onExit=I}}});var bII=/[ \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,
Ynm={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 zsY=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]/),
TYc=RegExp("^(?:\"(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^\"\\x00])*\"|'(\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^'\\x00])*'|\\((\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|[^)\\x00])*\\))"),cES=RegExp("^(?:[<](?:[^ <>\\t\\n\\\\\\x00]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\)*[>])"),esd=RegExp("^[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]"),rEP=RegExp("^&(?:#x[a-f0-9]{1,8}|#[0-9]{1,8}|[a-z][a-z0-9]{1,31});","i"),ivY=/`+/,w9d=/^`+/,n$b=/\.\.\./g,PUc=/--+/g,Ld8=/^<([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])?)*)>/,
DxP=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,p98=/^ *(?:\n *)?/,Qjm=/^[ \t\n\x0b\x0c\x0d]/,NYu=/[ \t\n\x0b\x0c\x0d]+/g,V28=/^\s/,jj8=/ *$/,l_m=/^ */,X9e=/^ *(?:\n|$)/,$xq=RegExp("^\\[(?:[^\\\\\\[\\]]|\\\\[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]|\\\\){0,1000}\\]"),Rs8=/^[^\n`\[\]\\!<&*_'"]+/m,ec=function(I){var C=new c$("text");C._literal=I;return C},rk=function(I){this.subject="";
this.brackets=this.delimiters=null;this.pos=0;this.refmap={};this.options=I||{}};
rk.prototype.match=function(I){I=I.exec(this.subject.slice(this.pos));if(I===null)return null;this.pos+=I.index+I[0].length;return I[0]};
rk.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1};
var iu=function(I){I.match(p98);return!0},bvd=function(I,C,y){var k=0;
var F=I.pos;if(C===39||C===34)k++,I.pos++;else for(;I.peek()===C;)k++,I.pos++;if(k===0)k=null;else{var z=F===0?"\n":I.subject.charAt(F-1);var c=I.peek();c=c===-1?"\n":T_(c);var r=V28.test(c);c=zsY.test(c);var w=V28.test(z);var L=zsY.test(z);z=!r&&!(c&&!w&&!L);r=!w&&!(L&&!r&&!c);C===95?(w=z&&(!r||L),c=r&&(!z||c)):(w=C===39||C===34?z&&!r:z,c=r);I.pos=F;k={numdelims:k,can_open:w,can_close:c}}if(!k)return!1;F=k.numdelims;c=I.pos;I.pos+=F;c=C===39?"\u2019":C===34?"\u201c":I.subject.slice(c,I.pos);c=ec(c);
y.appendChild(c);I.delimiters={cc:C,numdelims:F,origdelims:F,node:c,previous:I.delimiters,next:null,can_open:k.can_open,can_close:k.can_close};I.delimiters.previous!==null&&(I.delimiters.previous.next=I.delimiters);return!0},Y5m=function(I,C){C.previous!==null&&(C.previous.next=C.next);
C.next===null?I.delimiters=C.previous:C.next.previous=C.previous},Gp0=function(I,C){var y,k,F=[],z=!1;
F[95]=C;F[42]=C;F[39]=C;F[34]=C;for(y=I.delimiters;y!==null&&y.previous!==C;)y=y.previous;for(;y!==null;){var c=y.cc;if(y.can_close){var r=y.previous;for(k=!1;r!==null&&r!==C&&r!==F[c];){z=(y.can_open||r.can_close)&&(r.origdelims+y.origdelims)%3===0;if(r.cc===y.cc&&r.can_open&&!z){k=!0;break}r=r.previous}var w=y;if(c===42||c===95)if(k){var L=y.numdelims>=2&&r.numdelims>=2?2:1;var D=r.node;var p=y.node;r.numdelims-=L;y.numdelims-=L;D._literal=D._literal.slice(0,D._literal.length-L);p._literal=p._literal.slice(0,
p._literal.length-L);var Q=new c$(L===1?"emph":"strong");for(L=D._next;L&&L!==p;){var X=L._next;cV(L);Q.appendChild(L);L=X}uWS(D,Q);L=r;X=y;L.next!==X&&(L.next=X,X.previous=L);r.numdelims===0&&(cV(D),Y5m(I,r));y.numdelims===0&&(cV(p),r=y.next,Y5m(I,y),y=r)}else y=y.next;else c===39?(y.node._literal="\u2019",k&&(r.node._literal="\u2018"),y=y.next):c===34&&(y.node._literal="\u201d",k&&(r.node.literal="\u201c"),y=y.next);k||z||(F[c]=w.previous,w.can_open||Y5m(I,w))}else y=y.next}for(;I.delimiters!==
null&&I.delimiters!==C;)Y5m(I,I.delimiters)},f_8=function(I){I=I.match(TYc);
return I===null?null:CUu(I.substr(1,I.length-2))},S5u=function(I){var C=I.match(cES);
if(C===null){C=I.pos;for(var y=0,k;(k=I.peek())!==-1;)if(k===92)I.pos+=1,I.peek()!==-1&&(I.pos+=1);else if(k===40)I.pos+=1,y+=1;else if(k===41)if(y<1)break;else I.pos+=1,--y;else if(Qjm.exec(T_(k))!==null)break;else I.pos+=1;C=I.subject.substr(C,I.pos-C);return sjP(CUu(C))}return sjP(CUu(C.substr(1,C.length-2)))},Kdu=function(I){I=I.match($xq);
return I===null||I.length>1001?0:I.length},AEq=function(I,C,y,k){I.brackets!==null&&(I.brackets.bracketAfter=!0);
I.brackets={node:C,previous:I.brackets,previousDelimiter:I.delimiters,index:y,image:k,active:!0}},g$P=function(I,C){var y;
return(y=I.match(Rs8))?(I.options.smart?C.appendChild(ec(y.replace(n$b,"\u2026").replace(PUc,function(k){var F=0,z=0;k.length%3===0?z=k.length/3:k.length%2===0?F=k.length/2:k.length%3===2?(F=1,z=(k.length-2)/3):(F=2,z=(k.length-4)/3);k="";var c;for(c=0;c<z;c++)k+="\u2014";for(c=0;c<F;c++)k+="\u2013";return k}))):C.appendChild(ec(y)),!0):!1},v$q=function(I,C,y){I.subject=C;
I.pos=0;C=I.pos;var k=Kdu(I);if(k===0)return 0;var F=I.subject.substr(0,k);if(I.peek()===58)I.pos++;else return I.pos=C,0;iu(I);k=S5u(I);if(k===null||k.length===0)return I.pos=C,0;var z=I.pos;iu(I);var c=f_8(I);c===null&&(c="",I.pos=z);var r=!0;I.match(X9e)===null&&(c===""?r=!1:(c="",I.pos=z,r=I.match(X9e)!==null));if(!r)return I.pos=C,0;F=GbX(F);if(F==="")return I.pos=C,0;y[F]||(y[F]={destination:k,title:c});return I.pos-C},Wdc=function(I,C){var y,k=I.peek();
if(k===-1)return!1;switch(k){case 10:I.pos+=1;if((y=C._lastChild)&&y.type==="text"&&y._literal[y._literal.length-1]===" "){var F=y._literal[y._literal.length-2]===" ";y._literal=y._literal.replace(jj8,"");C.appendChild(new c$(F?"linebreak":"softbreak"))}else C.appendChild(new c$("softbreak"));I.match(l_m);y=!0;break;case 92:y=I.subject;I.pos+=1;I.peek()===10?(I.pos+=1,y=new c$("linebreak"),C.appendChild(y)):esd.test(y.charAt(I.pos))?(C.appendChild(ec(y.charAt(I.pos))),I.pos+=1):C.appendChild(ec("\\"));
y=!0;break;case 96:a:if(y=I.match(w9d),y===null)y=!1;else{F=I.pos;for(var z;(z=I.match(ivY))!==null;)if(z===y){z=new c$("code");z._literal=I.subject.slice(F,I.pos-y.length).trim().replace(NYu," ");C.appendChild(z);y=!0;break a}I.pos=F;C.appendChild(ec(y));y=!0}break;case 42:case 95:y=bvd(I,k,C);break;case 39:case 34:y=I.options.smart&&bvd(I,k,C);break;case 91:y=I.pos;I.pos+=1;F=ec("[");C.appendChild(F);AEq(I,F,y,!1);y=!0;break;case 33:y=I.pos;I.pos+=1;I.peek()===91?(I.pos+=1,F=ec("!["),C.appendChild(F),
AEq(I,F,y+1,!0)):C.appendChild(ec("!"));y=!0;break;case 93:var c,r=!1,w;I.pos+=1;var L=I.pos;F=I.brackets;if(F===null)C.appendChild(ec("]"));else if(F.active){y=F.image;var D=I.pos;I.peek()===40&&(I.pos++,iu(I)&&(z=S5u(I))!==null&&iu(I)&&(Qjm.test(I.subject.charAt(I.pos-1))&&(c=f_8(I)),1)&&iu(I)&&I.peek()===41?(I.pos+=1,r=!0):I.pos=D);if(!r){var p=I.pos,Q=Kdu(I);Q>2?w=I.subject.slice(p,p+Q):F.bracketAfter||(w=I.subject.slice(F.index,L));Q===0&&(I.pos=D);w&&(w=I.refmap[GbX(w)])&&(z=w.destination,c=
w.title,r=!0)}if(r){L=new c$(y?"image":"link");L._destination=z;L._title=c||"";for(z=F.node._next;z;)c=z._next,cV(z),L.appendChild(z),z=c;C.appendChild(L);Gp0(I,F.previousDelimiter);I.brackets=I.brackets.previous;cV(F.node);if(!y)for(F=I.brackets;F!==null;)F.image||(F.active=!1),F=F.previous}else I.brackets=I.brackets.previous,I.pos=L,C.appendChild(ec("]"))}else C.appendChild(ec("]")),I.brackets=I.brackets.previous;y=!0;break;case 60:(y=I.match(Ld8))?(y=y.slice(1,y.length-1),F=new c$("link"),F._destination=
sjP("mailto:"+y),F._title="",F.appendChild(ec(y)),C.appendChild(F),y=!0):(y=I.match(DxP))?(y=y.slice(1,y.length-1),F=new c$("link"),F._destination=sjP(y),F._title="",F.appendChild(ec(y)),C.appendChild(F),y=!0):y=!1;y||(y=I.match(tAw),y===null?y=!1:(F=new c$("html_inline"),F._literal=y,C.appendChild(F),y=!0));break;case 38:(y=I.match(rEP))?(C.appendChild(ec(UHb(y))),y=!0):y=!1;break;default:y=g$P(I,C)}y||(I.pos+=1,C.appendChild(ec(T_(k))));return!0};
rk.prototype.parseInlines=function(I){this.subject=I._string_content.trim();this.pos=0;for(this.brackets=this.delimiters=null;Wdc(this,I););I._string_content=null;Gp0(this,null)};
rk.prototype.parse=rk.prototype.parseInlines;var dxq=[/./,/^<(?: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")],xxd=[/./,/<\/(?:script|pre|style)>/i,/--\x3e/,/\?>/,/>/,/\]\]>/],q5Y=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/,mxd=/^[#`~*+_=<>0-9-\|]|\|/,Zvq=/[^ \t\f\v\r\n]/,BYq=/^[*+-]/,E$b=/^(\d{1,9})([.)])/,hsw=/^#{1,6}(?:[ \t]+|$)/,Uxd=/^`{3,}(?!.*`)|^~{3,}(?!.*~)/,HvY=/^(?:`{3,}|~{3,})(?= *$)/,t2q=/^(?:=+|-+)[ \t]*$/,JE0=/\r\n|\n|\r/,SnW=/(^\|?[^\|]+(\|[^\|]+)+\|?)|(\|.*\|)/,Kem=/(^\|?\s*:?---+:?\s*(\|\s*:?---+:?\s*)+\|?)|(^\s*\|\s*:?---+:?\s*\|$)/,Ovd={document:{continue:function(){return 0},
finalize:function(){},
canContain:function(I){return I!=="item"},
acceptsLines:!1},list:{continue:function(){return 0},
finalize:function(I,C){for(I=C._firstChild;I;){if(fHI(I)&&I._next){C._listData.tight=!1;break}for(var y=I._firstChild;y;){if(fHI(y)&&(I._next||y._next)){C._listData.tight=!1;break}y=y._next}I=I._next}},
canContain:function(I){return I==="item"},
acceptsLines:!1},block_quote:{continue:function(I){var C=I.currentLine;if(I.indented||z5(C,I.nextNonspace)!==62)return 1;wk(I);nV(I,1,!1);uG(z5(C,I.offset))&&nV(I,1,!0);return 0},
finalize:function(){},
canContain:function(I){return I!=="item"},
acceptsLines:!1},item:{continue:function(I,C){if(I.blank){if(C._firstChild==null)return 1;wk(I)}else if(I.indent>=C._listData.markerOffset+C._listData.padding)nV(I,C._listData.markerOffset+C._listData.padding,!0);else return 1;return 0},
finalize:function(){},
canContain:function(I){return I!=="item"&&!AuY(I)},
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(I,C){var y=I.currentLine,k=I.indent;if(C._isFenced){if((k=k<=3&&y.charAt(I.nextNonspace)===C._fenceChar&&y.slice(I.nextNonspace).match(HvY))&&k[0].length>=C._fenceLength)return I.finalize(C,I.lineNumber),2;for(C=C._fenceOffset;C>0&&uG(z5(y,I.offset));)nV(I,1,!0),C--}else if(k>=4)nV(I,4,!0);else if(I.blank)wk(I);else return 1;return 0},
finalize:function(I,C){if(C._isFenced){var y=C._string_content,k=y.indexOf("\n");I=y.slice(0,k);y=y.slice(k+1);C.info=CUu(I.trim());C._literal=y}else C._literal=C._string_content.replace(/(\n *)+$/,"\n");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},html_block:{continue:function(I,C){return!I.blank||C._htmlBlockType!==6&&C._htmlBlockType!==7?0:1},
finalize:function(I,C){C._literal=C._string_content.replace(/(\n *)+$/,"");C._string_content=null},
canContain:function(){return!1},
acceptsLines:!0},paragraph:{continue:function(I){return I.blank?1:0},
finalize:function(I,C){for(var y,k=!1;z5(C._string_content,0)===91&&(y=v$q(I.inlineParser,C._string_content,I.refmap));)C._string_content=C._string_content.slice(y),k=!0;k&&!Zvq.test(C._string_content)&&cV(C)},
canContain:function(){return!1},
acceptsLines:!0},table:{continue:function(I){return T5(I.currentLine)!==0?0:1},
finalize:function(){},
canContain:function(I){return I=="row"},
acceptsLines:!1},row:{continue:function(){return 1},
finalize:function(I,C){if(!C._rowIsDelimiter){I=C._isHeader?"th":"td";for(var y=C._parent._tableColumns,k=C._string_content,F=0,z="",c,r=C._sourcepos[0][0];F<k.length;){switch(k[F]){case "|":c&&(c._string_content=z.trim(),z="",c=null,y--,y<=0&&(F=k.length));break;default:if(!c){c=new c$(I,[[r,F],[r,F]]);var w=C._parent._columnAlignment,L=C._parent._tableColumns-y;w&&L<=w.length&&L>=0&&(c._alignment=w[L]);C.appendChild(c)}z+=k[F];c._sourcepos[1][1]=F}F++}c&&(c._string_content=z.trim());C._string_content=
""}},
canContain:function(I){return I!=="row"},
acceptsLines:!1}},a_d=[function(I){if(I.indented||z5(I.currentLine,I.nextNonspace)!==62)return 0;wk(I);nV(I,1,!1);uG(z5(I.currentLine,I.offset))&&nV(I,1,!0);PV(I);I.addChild("block_quote",I.nextNonspace);return 1},
function(I){var C;if(!I.indented&&(C=I.currentLine.slice(I.nextNonspace).match(hsw))){wk(I);nV(I,C[0].length,!1);PV(I);var y=I.addChild("heading",I.nextNonspace);y.level=C[0].trim().length;y._string_content=I.currentLine.slice(I.offset).replace(/^ *#+ *$/,"").replace(/ +#+ *$/,"");nV(I,I.currentLine.length-I.offset);return 2}return 0},
function(I){var C;if(!I.indented&&(C=I.currentLine.slice(I.nextNonspace).match(Uxd))){var y=C[0].length;PV(I);var k=I.addChild("code_block",I.nextNonspace);k._isFenced=!0;k._fenceLength=y;k._fenceChar=C[0][0];k._fenceOffset=I.indent;wk(I);nV(I,y,!1);return 2}return 0},
function(I,C){if(!I.indented&&z5(I.currentLine,I.nextNonspace)===60){var y=I.currentLine.slice(I.nextNonspace),k;for(k=1;k<=7;k++)if(dxq[k].test(y)&&(k<7||C.type!=="paragraph"))return PV(I),I.addChild("html_block",I.offset)._htmlBlockType=k,2}return 0},
function(I,C){var y;if(!I.indented&&C.type==="paragraph"&&(y=I.currentLine.slice(I.nextNonspace).match(t2q))){PV(I);var k=new c$("heading",C.sourcepos);k.level=y[0][0]==="="?1:2;k._string_content=C._string_content;uWS(C,k);cV(C);I.tip=k;nV(I,I.currentLine.length-I.offset,!1);return 2}return 0},
function(I){return!I.indented&&q5Y.test(I.currentLine.slice(I.nextNonspace))?(PV(I),I.addChild("thematic_break",I.nextNonspace),nV(I,I.currentLine.length-I.offset,!1),2):0},
function(I,C){var y,k;if(!(k=I.indented&&C.type!=="list")){a:{var F=C,z=I.currentLine.slice(I.nextNonspace);k={type:null,tight:!0,bulletChar:null,start:null,delimiter:null,padding:null,markerOffset:I.indent};if(y=z.match(BYq))k.type="bullet",k.bulletChar=y[0][0];else{if(!(y=z.match(E$b))||F.type==="paragraph"&&y[1]!=="1"){y=null;break a}k.type="ordered";k.start=parseInt(y[1],10);k.delimiter=y[2]}var c=z5(I.currentLine,I.nextNonspace+y[0].length);if(c!==-1&&c!==9&&c!==32||F.type==="paragraph"&&!I.currentLine.slice(I.nextNonspace+
y[0].length).match(Zvq))y=null;else{wk(I);nV(I,y[0].length,!0);F=I.column;z=I.offset;do nV(I,1,!0),c=z5(I.currentLine,I.offset);while(I.column-F<5&&uG(c));c=z5(I.currentLine,I.offset)===-1;var r=I.column-F;r>=5||r<1||c?(k.padding=y[0].length+1,I.column=F,I.offset=z,uG(z5(I.currentLine,I.offset))&&nV(I,1,!0)):k.padding=y[0].length+r;y=k}}k=!y}if(k)return 0;PV(I);(k=I.tip.type!=="list")||(C=C._listData,k=!(C.type===y.type&&C.delimiter===y.delimiter&&C.bulletChar===y.bulletChar));k&&(C=I.addChild("list",
I.nextNonspace),C._listData=y);C=I.addChild("item",I.nextNonspace);C._listData=y;return 1},
function(I){var C;return((C=I.options.shouldParseIndentAsCodeBlock)!=null?C:1)&&I.indented&&I.tip.type!=="paragraph"&&!I.blank?(nV(I,4,!0),PV(I),I.addChild("code_block",I.offset),2):0},
function(I,C){var y=T5(I.currentLine),k=T5(I.lookahead);if(y!==0&&k<0&&Math.abs(y)==Math.abs(k)&&!AuY(C.type)){PV(I);C=I.addChild("table",I.nextNonspace);C._tableRows=1;C._tableColumns=Math.abs(y);y=I.lookahead;if(Kem.test(y)){k=[];for(var F=0,z=!1,c=0,r=void 0;F<y.length;){var w=c>=3;switch(y[F]){case "-":c++;break;case "|":z&&(k.push(r),r=void 0,c=0);z=!0;break;case ":":r||w||(r="left"),!r&&w&&(r="right"),r==="left"&&w&&(r="center")}F++}y=k}else y=void 0;C._columnAlignment=y;C=I.addChild("row",
I.nextNonspace);C._isHeader=!0;nV(I,I.currentLine.length-I.offset,!1);C._string_content=I.currentLine;return 1}return 0},
function(I,C){if(C.type=="table"&&T5(I.currentLine)!==0){PV(I);var y=C;C=I.addChild("row",I.nextNonspace);T5(I.currentLine)<0?C._rowIsDelimiter=!0:y._tableRows+=1;nV(I,I.currentLine.length-I.offset,!1);C._string_content=I.currentLine;return 2}return 0}],XIs=function(){var I={shouldParseIndentAsCodeBlock:!1};
I=I===void 0?{}:I;this.lastMatchedContainer=this.doc=gH9();this.refmap={};this.lastLineLength=0;this.inlineParser=new rk(I);this.options=I;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=Ovd;this.blockStarts=a_d},M2P=function(I){I.partiallyConsumedTab&&(I.offset+=1,I.tip._string_content+=" ".repeat(4-I.column%
4));
I.tip._string_content+=I.currentLine.slice(I.offset)+"\n"};
XIs.prototype.addChild=function(I,C){for(;!this.blocks[this.tip.type].canContain(I);)this.finalize(this.tip,this.lineNumber-1);I=new c$(I,[[this.lineNumber,C+1],[0,0]]);I._string_content="";this.tip.appendChild(I);return this.tip=I};
var PV=function(I){if(!I.allClosed){for(;I.oldtip!==I.lastMatchedContainer;){var C=I.oldtip._parent;I.finalize(I.oldtip,I.lineNumber-1);I.oldtip=C}I.allClosed=!0}},nV=function(I,C,y){for(var k=I.currentLine,F,z;C>0&&(z=k[I.offset]);)z==="\t"?(F=4-I.column%4,y?(I.partiallyConsumedTab=F>C,F=F>C?C:F,I.column+=F,I.offset+=I.partiallyConsumedTab?0:1,C-=F):(I.partiallyConsumedTab=!1,I.column+=F,I.offset+=1,--C)):(I.partiallyConsumedTab=!1,I.offset+=1,I.column+=1,--C)},wk=function(I){I.offset=I.nextNonspace;
I.column=I.nextNonspaceColumn;I.partiallyConsumedTab=!1},Inw=function(I){for(var C=I.currentLine,y=I.offset,k=I.column,F;(F=C.charAt(y))!=="";)if(F===" ")y++,k++;
else if(F==="\t")y++,k+=4-k%4;else break;I.blank=F==="\n"||F==="\r"||F==="";I.nextNonspace=y;I.nextNonspaceColumn=k;I.indent=I.nextNonspaceColumn-I.column;I.indented=I.indent>=4};
XIs.prototype.finalize=function(I,C){var y=I._parent;I._open=!1;I.sourcepos[1]=[C,this.lastLineLength];this.blocks[I.type].finalize(this,I);this.tip=y};
XIs.prototype.parse=function(I){this.tip=this.doc=gH9();this.refmap={};this.column=this.offset=this.lastLineLength=this.lineNumber=0;this.lastMatchedContainer=this.doc;this.currentLine="";if(!I)return this.doc;this.options.time&&console.time("preparing input");var C=I.split(JE0),y=C.length;I.charCodeAt(I.length-1)===10&&--y;this.options.time&&console.timeEnd("preparing input");this.options.time&&console.time("block parsing");for(I=0;I<y;I++)a:{var k=void 0,F=C[I],z=C[I+1],c=!0,r=this.doc;this.oldtip=
this.tip;this.column=this.offset=0;this.partiallyConsumedTab=this.blank=!1;this.lineNumber+=1;F.indexOf("\x00")!==-1&&(F=F.replace(/\0/g,"\ufffd"));this.currentLine=F;for(this.lookahead=z;(k=r._lastChild)&&k._open;){r=k;Inw(this);switch(this.blocks[r.type].continue(this,r)){case 0:break;case 1:c=!1;break;case 2:this.lastLineLength=F.length;break a;default:throw"continue returned illegal value, must be 0, 1, or 2";}if(!c){r=r._parent;break}}this.allClosed=r===this.oldtip;this.lastMatchedContainer=
r;k=r.type!=="paragraph"&&Ovd[r.type].acceptsLines;z=this.blockStarts;for(c=z.length;!k;){Inw(this);if(!this.indented&&!mxd.test(F.slice(this.nextNonspace))){wk(this);break}for(var w=0;w<c;){var L=z[w](this,r);if(L===1){r=this.tip;break}else if(L===2){r=this.tip;k=!0;break}else w++}if(w===c){wk(this);break}}if(this.allClosed||this.blank||this.tip.type!=="paragraph"){PV(this);this.blank&&r.lastChild&&(r.lastChild._lastLineBlank=!0);k=r.type;z=this.blank&&!(k==="block_quote"||k==="code_block"&&r._isFenced||
k==="item"&&!r._firstChild&&r.sourcepos[0][0]===this.lineNumber);for(c=r;c;)c._lastLineBlank=z,c=c._parent;this.blocks[k].acceptsLines?(M2P(this),k==="html_block"&&r._htmlBlockType>=1&&r._htmlBlockType<=5&&xxd[r._htmlBlockType].test(this.currentLine.slice(this.offset))&&this.finalize(r,this.lineNumber)):this.offset<F.length&&!this.blank&&(this.addChild("paragraph",this.offset),wk(this),M2P(this))}else M2P(this);this.lastLineLength=F.length}for(;this.tip;)this.finalize(this.tip,y);this.options.time&&
console.timeEnd("block parsing");this.options.time&&console.time("inline parsing");F=new Fdm(this.doc);this.inlineParser.refmap=this.refmap;for(this.inlineParser.options=this.options;y=F.next();)C=y.node,I=C.type,y.entering||I!=="paragraph"&&I!=="heading"&&I!=="th"&&I!="td"||this.inlineParser.parse(C);this.options.time&&console.timeEnd("inline parsing");return this.doc};vHI.prototype.render=function(I){I=new Fdm(I);var C;this.buffer="";for(this.lastOut="\n";C=I.next();){var y=C.node.type;if(this[y])this[y](C.node,C.entering)}return this.buffer};
vHI.prototype.out=function(I){LV(this,I)};
var LV=function(I,C){I.buffer+=C;I.lastOut=C};
vHI.prototype.cr=function(){this.lastOut!=="\n"&&LV(this,"\n")};var Ck8=/^javascript:|vbscript:|file:|data:/i,s8S=/^data:image\/(?:png|gif|jpeg|webp)/i,osc=function(I){return Ck8.test(I)&&!s8S.test(I)};
ei.prototype=Object.create(vHI.prototype);_.u=ei.prototype;_.u.text=function(I){this.out(I.literal)};
_.u.html_inline=function(I){this.options.safe?LV(this,"\x3c!-- raw HTML omitted --\x3e"):LV(this,I.literal)};
_.u.html_block=function(I){this.cr();this.options.safe?LV(this,"\x3c!-- raw HTML omitted --\x3e"):LV(this,I.literal);this.cr()};
_.u.softbreak=function(){LV(this,this.options.softbreak)};
_.u.linebreak=function(){this.tag("br",[],!0);this.cr()};
_.u.link=function(I,C){var y=this.attrs(I);C?(this.options.safe&&osc(I.destination)||y.push(["href",z_(I.destination,!0)]),I.title&&y.push(["title",z_(I.title,!0)]),this.tag("a",y)):this.tag("/a")};
_.u.image=function(I,C){C?(this.disableTags===0&&(this.options.safe&&osc(I.destination)?LV(this,'<img src="" alt="'):LV(this,'<img src="'+z_(I.destination,!0)+'" alt="')),this.disableTags+=1):(--this.disableTags,this.disableTags===0&&(I.title&&LV(this,'" title="'+z_(I.title,!0)),LV(this,'" />')))};
_.u.emph=function(I,C){this.tag(C?"em":"/em")};
_.u.strong=function(I,C){this.tag(C?"strong":"/strong")};
_.u.paragraph=function(I,C){var y=I.parent.parent;I=this.attrs(I);y!==null&&y.type==="list"&&y.listTight||(C?(this.cr(),this.tag("p",I)):(this.tag("/p"),this.cr()))};
_.u.heading=function(I,C){var y="h"+I.level;I=this.attrs(I);C?(this.cr(),this.tag(y,I)):(this.tag("/"+y),this.cr())};
_.u.code=function(I){this.tag("code");this.out(I.literal);this.tag("/code")};
_.u.code_block=function(I){var C=I.info?I.info.split(/\s+/):[],y=this.attrs(I);C.length>0&&C[0].length>0&&y.push(["class","language-"+z_(C[0],!0)]);this.cr();this.tag("pre");this.tag("code",y);this.out(I.literal);this.tag("/code");this.tag("/pre");this.cr()};
_.u.thematic_break=function(I){I=this.attrs(I);this.cr();this.tag("hr",I,!0);this.cr()};
_.u.block_quote=function(I,C){I=this.attrs(I);C?(this.cr(),this.tag("blockquote",I)):(this.cr(),this.tag("/blockquote"));this.cr()};
_.u.list=function(I,C){var y=I.listType==="bullet"?"ul":"ol",k=this.attrs(I);C?(I=I.listStart,I!==null&&I!==1&&k.push(["start",I.toString()]),this.cr(),this.tag(y,k)):(this.cr(),this.tag("/"+y));this.cr()};
_.u.item=function(I,C){I=this.attrs(I);C?this.tag("li",I):(this.tag("/li"),this.cr())};
_.u.custom_inline=function(I,C){C&&I.onEnter?LV(this,I.onEnter):!C&&I.onExit&&LV(this,I.onExit)};
_.u.custom_block=function(I,C){this.cr();C&&I.onEnter?LV(this,I.onEnter):!C&&I.onExit&&LV(this,I.onExit);this.cr()};
_.u.table=function(I,C){I=this.attrs(I);C?(this.cr(),this.tag("table",I)):(this.tag("/table"),this.cr())};
_.u.row=function(I,C){I._rowIsDelimiter||(I=this.attrs(I),C?this.tag("tr",I):this.tag("/tr"))};
_.u.td=function(I,C){var y=this.attrs(I);I._alignment&&y.push(["align",I._alignment]);C?this.tag("td",y):this.tag("/td")};
_.u.th=function(I,C){var y=this.attrs(I);I._alignment&&y.push(["align",I._alignment]);C?this.tag("th",y):this.tag("/th")};
_.u.out=function(I){LV(this,z_(I,!1))};
_.u.tag=function(I,C,y){if(!(this.disableTags>0)){this.buffer+="<"+I;if(C&&C.length>0){I=0;for(var k;(k=C[I])!==void 0;)this.buffer+=" "+k[0]+'="'+k[1]+'"',I++}y&&(this.buffer+=" /");this.buffer+=">";this.lastOut=">"}};
_.u.attrs=function(I){var C=[];this.options.sourcepos&&(I=I.sourcepos)&&C.push(["data-sourcepos",String(I[0][0])+":"+String(I[0][1])+"-"+String(I[1][0])+":"+String(I[1][1])]);return C};
ei.prototype.text=ei.prototype.text;ei.prototype.html_inline=ei.prototype.html_inline;ei.prototype.html_block=ei.prototype.html_block;ei.prototype.softbreak=ei.prototype.softbreak;ei.prototype.linebreak=ei.prototype.linebreak;ei.prototype.link=ei.prototype.link;ei.prototype.image=ei.prototype.image;ei.prototype.emph=ei.prototype.emph;ei.prototype.strong=ei.prototype.strong;ei.prototype.paragraph=ei.prototype.paragraph;ei.prototype.heading=ei.prototype.heading;ei.prototype.code=ei.prototype.code;
ei.prototype.code_block=ei.prototype.code_block;ei.prototype.thematic_break=ei.prototype.thematic_break;ei.prototype.block_quote=ei.prototype.block_quote;ei.prototype.list=ei.prototype.list;ei.prototype.item=ei.prototype.item;ei.prototype.custom_inline=ei.prototype.custom_inline;ei.prototype.custom_block=ei.prototype.custom_block;ei.prototype.table=ei.prototype.table;ei.prototype.row=ei.prototype.row;ei.prototype.td=ei.prototype.td;ei.prototype.th=ei.prototype.th;ei.prototype.out=ei.prototype.out;
ei.prototype.tag=ei.prototype.tag;ei.prototype.attrs=ei.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 yU0,kNd,pq9;(function(){function I(K,G){return K<G?-1:K>G?1:K>=G?0:NaN}
function C(K){return function(G,W){return I(K(G),W)}}
function y(){for(var K=0,G=arguments.length,W={},H;K<G;++K){if(!(H=arguments[K]+"")||H in W)throw Error("qe`"+H);W[H]=[]}return new k(W)}
function k(K){this._=K}
function F(K,G){return K.trim().split(/^|\s+/).map(function(W){var H="",kz=W.indexOf(".");kz>=0&&(H=W.slice(kz+1),W=W.slice(0,kz));if(W&&!G.hasOwnProperty(W))throw Error("re`"+W);return{type:W,name:H}})}
function z(K,G,W){for(var H=0,kz=K.length;H<kz;++H)if(K[H].name===G){K[H]=q0M;K=K.slice(0,H).concat(K.slice(H+1));break}W!=null&&K.push({name:G,value:W});return K}
function c(K){var G=K,W=G.indexOf(":");W>=0&&(G=K.slice(0,W))!=="xmlns"&&(K=K.slice(W+1));return ha.hasOwnProperty(G)?{space:ha[G],local:K}:K}
function r(K){return function(){var G=this.ownerDocument,W=this.namespaceURI;return W==="http://www.w3.org/1999/xhtml"&&G.documentElement.namespaceURI==="http://www.w3.org/1999/xhtml"?G.createElement(K):G.createElementNS(W,K)}}
function w(K){return function(){return this.ownerDocument.createElementNS(K.space,K.local)}}
function L(K){K=c(K);return(K.local?w:r)(K)}
function D(){}
function p(K){return K==null?D:function(){return this.querySelector(K)}}
function Q(K){return Array(K.length)}
function X(K,G){this.ownerDocument=K.ownerDocument;this.namespaceURI=K.namespaceURI;this._next=null;this._parent=K;this.__data__=G}
function b(K){return function(){return K}}
function S(K,G,W,H,kz,TI){for(var L9=0,lK,am=G.length,JX=TI.length;L9<JX;++L9)(lK=G[L9])?(lK.__data__=TI[L9],H[L9]=lK):W[L9]=new X(K,TI[L9]);for(;L9<am;++L9)if(lK=G[L9])kz[L9]=lK}
function A(K,G,W,H,kz,TI,L9){var lK,am,JX={},Iw=G.length,rS=TI.length,ZY=Array(Iw),wy;for(lK=0;lK<Iw;++lK)if(am=G[lK])ZY[lK]=wy="$"+L9.call(am,am.__data__,lK,G),wy in JX?kz[lK]=am:JX[wy]=am;for(lK=0;lK<rS;++lK)wy="$"+L9.call(K,TI[lK],lK,TI),(am=JX[wy])?(H[lK]=am,am.__data__=TI[lK],JX[wy]=null):W[lK]=new X(K,TI[lK]);for(lK=0;lK<Iw;++lK)(am=G[lK])&&JX[ZY[lK]]===am&&(kz[lK]=am)}
function x(K,G){return K<G?-1:K>G?1:K>=G?0:NaN}
function B(K){return function(){this.removeAttribute(K)}}
function t(K){return function(){this.removeAttributeNS(K.space,K.local)}}
function U(K,G){return function(){this.setAttribute(K,G)}}
function yW(K,G){return function(){this.setAttributeNS(K.space,K.local,G)}}
function a(K,G){return function(){var W=G.apply(this,arguments);W==null?this.removeAttribute(K):this.setAttribute(K,W)}}
function cs(K,G){return function(){var W=G.apply(this,arguments);W==null?this.removeAttributeNS(K.space,K.local):this.setAttributeNS(K.space,K.local,W)}}
function XO(K){return function(){this.style.removeProperty(K)}}
function Rm(K,G,W){return function(){this.style.setProperty(K,G,W)}}
function $z(K,G,W){return function(){var H=G.apply(this,arguments);H==null?this.style.removeProperty(K):this.style.setProperty(K,H,W)}}
function hX(K,G){return K.style.getPropertyValue(G)||(K.ownerDocument&&K.ownerDocument.defaultView||K.document&&K||K.defaultView).getComputedStyle(K,null).getPropertyValue(G)}
function vs(K){return function(){delete this[K]}}
function mY(K,G){return function(){this[K]=G}}
function Bs(K,G){return function(){var W=G.apply(this,arguments);W==null?delete this[K]:this[K]=W}}
function n5(){this.textContent=""}
function sH(K){return function(){this.textContent=K}}
function Zt(K){return function(){var G=K.apply(this,arguments);this.textContent=G==null?"":G}}
function Qd(){this.innerHTML=""}
function OF(K){return function(){this.innerHTML=K}}
function Rw(K){return function(){var G=K.apply(this,arguments);this.innerHTML=G==null?"":G}}
function ku(){return null}
function xK(){var K=this.parentNode;K&&K.removeChild(this)}
function yf(){return this.parentNode.insertBefore(this.cloneNode(!1),this.nextSibling)}
function uK(){return this.parentNode.insertBefore(this.cloneNode(!0),this.nextSibling)}
function oL(K,G,W){K=Uw(K,G,W);return function(H){var kz=H.relatedTarget;kz&&(kz===this||kz.compareDocumentPosition(this)&8)||K.call(this,H)}}
function Uw(K,G,W){return function(){K.call(this,this.__data__,G,W)}}
function TR(K){return K.trim().split(/^|\s+/).map(function(G){var W="",H=G.indexOf(".");H>=0&&(W=G.slice(H+1),G=G.slice(0,H));return{type:G,name:W}})}
function G0(K){return function(){var G=this.__on;if(G){for(var W=0,H=-1,kz=G.length,TI;W<kz;++W)(TI=G[W],K.type&&TI.type!==K.type||TI.name!==K.name)?G[++H]=TI:this.removeEventListener(TI.type,TI.listener,TI.capture);++H?G.length=H:delete this.__on}}}
function hc(K,G,W){var H=G_S.hasOwnProperty(K.type)?oL:Uw;return function(kz,TI,L9){kz=this.__on;var lK;TI=H(G,TI,L9);if(kz){L9=0;for(var am=kz.length;L9<am;++L9)if((lK=kz[L9]).type===K.type&&lK.name===K.name){this.removeEventListener(lK.type,lK.listener,lK.capture);this.addEventListener(lK.type,lK.listener=TI,lK.capture=W);lK.value=G;return}}this.addEventListener(K.type,TI,W);lK={type:K.type,name:K.name,value:G,listener:TI,capture:W};kz?kz.push(lK):this.__on=[lK]}}
function wS(K,G,W){var H=K.ownerDocument&&K.ownerDocument.defaultView||K.document&&K||K.defaultView,kz=H.CustomEvent;typeof kz==="function"?kz=new kz(G,W):(kz=H.document.createEvent("Event"),W?(kz.initEvent(G,W.bubbles,W.cancelable),kz.detail=W.detail):kz.initEvent(G,!1,!1));K.dispatchEvent(kz)}
function Ws(K,G){return function(){return wS(this,K,G)}}
function i8(K,G){return function(){return wS(this,K,G.apply(this,arguments))}}
function l8(K,G){this._groups=K;this._parents=G}
function bj(){return new l8([[document.documentElement]],mmB)}
function K5(){this._="@"+(++ZF8).toString(36)}
function ZS(K,G,W){K.prototype=G.prototype=W;W.constructor=K}
function RJ(K,G){K=Object.create(K.prototype);for(var W in G)K[W]=G[W];return K}
function yk(){}
function D8(K){var G;K=(K+"").trim().toLowerCase();return(G=Bd8.exec(K))?(G=parseInt(G[1],16),new Tu(G>>8&15|G>>4&240,G>>4&15|G&240,(G&15)<<4|G&15,1)):(G=ECj.exec(K))?qL(parseInt(G[1],16)):(G=hBL.exec(K))?new Tu(G[1],G[2],G[3],1):(G=Umj.exec(K))?new Tu(G[1]*255/100,G[2]*255/100,G[3]*255/100,1):(G=HFR.exec(K))?kB(G[1],G[2],G[3],G[4]):(G=tkS.exec(K))?kB(G[1]*255/100,G[2]*255/100,G[3]*255/100,G[4]):(G=J0L.exec(K))?wX(G[1],G[2]/100,G[3]/100,1):(G=OFL.exec(K))?wX(G[1],G[2]/100,G[3]/100,G[4]):fsw.hasOwnProperty(K)?
qL(fsw[K]):K==="transparent"?new Tu(NaN,NaN,NaN,0):null}
function qL(K){return new Tu(K>>16&255,K>>8&255,K&255,1)}
function kB(K,G,W,H){H<=0&&(K=G=W=NaN);return new Tu(K,G,W,H)}
function K1(K){K instanceof yk||(K=D8(K));if(!K)return new Tu;K=K.rgb();return new Tu(K.r,K.g,K.b,K.opacity)}
function eX(K,G,W,H){return arguments.length===1?K1(K):new Tu(K,G,W,H==null?1:H)}
function Tu(K,G,W,H){this.r=+K;this.g=+G;this.b=+W;this.opacity=+H}
function kb(K){K=Math.max(0,Math.min(255,Math.round(K)||0));return(K<16?"0":"")+K.toString(16)}
function wX(K,G,W,H){H<=0?K=G=W=NaN:W<=0||W>=1?K=G=NaN:G<=0&&(K=NaN);return new kV(K,G,W,H)}
function c5(K){if(K instanceof kV)return new kV(K.h,K.s,K.l,K.opacity);K instanceof yk||(K=D8(K));if(!K)return new kV;if(K instanceof kV)return K;K=K.rgb();var G=K.r/255,W=K.g/255,H=K.b/255,kz=Math.min(G,W,H),TI=Math.max(G,W,H),L9=NaN,lK=TI-kz,am=(TI+kz)/2;lK?(L9=G===TI?(W-H)/lK+(W<H)*6:W===TI?(H-G)/lK+2:(G-W)/lK+4,lK/=am<.5?TI+kz:2-TI-kz,L9*=60):lK=am>0&&am<1?0:L9;return new kV(L9,lK,am,K.opacity)}
function xV(K,G,W,H){return arguments.length===1?c5(K):new kV(K,G,W,H==null?1:H)}
function kV(K,G,W,H){this.h=+K;this.s=+G;this.l=+W;this.opacity=+H}
function yX(K,G,W){return(K<60?G+(W-G)*K/60:K<180?W:K<240?G+(W-G)*(240-K)/60:G)*255}
function M$(K){if(K instanceof p9)return new p9(K.l,K.a,K.b,K.opacity);if(K instanceof p5){if(isNaN(K.h))return new p9(K.l,0,0,K.opacity);var G=K.h*SJm;return new p9(K.l,Math.cos(G)*K.c,Math.sin(G)*K.c,K.opacity)}K instanceof Tu||(K=K1(K));var W=yY(K.r),H=yY(K.g),kz=yY(K.b);G=SI(.2225045*W+.7168786*H+.0606169*kz);if(W===H&&H===kz)var TI=W=G;else TI=SI((.4360747*W+.3850649*H+.1430804*kz)/.96422),W=SI((.0139322*W+.0971045*H+.7141733*kz)/.82521);return new p9(116*G-16,500*(TI-G),200*(G-W),K.opacity)}
function p9(K,G,W,H){this.l=+K;this.a=+G;this.b=+W;this.opacity=+H}
function SI(K){return K>azL?Math.pow(K,1/3):K/KqS+Awe}
function xz(K){return K>zw?K*K*K:KqS*(K-Awe)}
function L5(K){return 255*(K<=.0031308?12.92*K:1.055*Math.pow(K,1/2.4)-.055)}
function yY(K){return(K/=255)<=.04045?K/12.92:Math.pow((K+.055)/1.055,2.4)}
function b7(K){if(K instanceof p5)return new p5(K.h,K.c,K.l,K.opacity);K instanceof p9||(K=M$(K));if(K.a===0&&K.b===0)return new p5(NaN,0,K.l,K.opacity);var G=Math.atan2(K.b,K.a)*grw;return new p5(G<0?G+360:G,Math.sqrt(K.a*K.a+K.b*K.b),K.l,K.opacity)}
function ry(K,G,W,H){return arguments.length===1?b7(K):new p5(K,G,W,H==null?1:H)}
function p5(K,G,W,H){this.h=+K;this.c=+G;this.l=+W;this.opacity=+H}
function Pm(K,G,W,H){if(arguments.length===1){var kz=K;if(kz instanceof L8)kz=new L8(kz.h,kz.s,kz.l,kz.opacity);else{kz instanceof Tu||(kz=K1(kz));var TI=kz.g/255,L9=kz.b/255,lK=(vrP*L9+kz.r/255*-1.7884503806-3.5172982438*TI)/(vrP+-1.7884503806-3.5172982438);L9-=lK;var am=(1.97294*(TI-lK)- -.29227*L9)/-.90649;L9=(TI=Math.sqrt(am*am+L9*L9)/(1.97294*lK*(1-lK)))?Math.atan2(am,L9)*grw-120:NaN;kz=new L8(L9<0?L9+360:L9,TI,lK,kz.opacity)}}else kz=new L8(K,G,W,H==null?1:H);return kz}
function L8(K,G,W,H){this.h=+K;this.s=+G;this.l=+W;this.opacity=+H}
function wR(K,G,W,H,kz){var TI=K*K,L9=TI*K;return((1-3*K+3*TI-L9)*G+(4-6*TI+3*L9)*W+(1+3*K+3*TI-3*L9)*H+L9*kz)/6}
function z0(K){return function(){return K}}
function Pn(K,G){return function(W){return K+W*G}}
function jy(K,G,W){return K=Math.pow(K,W),G=Math.pow(G,W)-K,W=1/W,function(H){return Math.pow(K+H*G,W)}}
function K2(K,G){var W=G-K;return W?Pn(K,W>180||W<-180?W-360*Math.round(W/360):W):z0(isNaN(K)?G:K)}
function w4(K){return(K=+K)===1?Fj:function(G,W){return W-G?jy(G,W,K):z0(isNaN(G)?W:G)}}
function Fj(K,G){var W=G-K;return W?Pn(K,W):z0(isNaN(K)?G:K)}
function dU(K){return function(G){var W=G.length,H=Array(W),kz=Array(W),TI=Array(W),L9;for(L9=0;L9<W;++L9){var lK=eX(G[L9]);H[L9]=lK.r||0;kz[L9]=lK.g||0;TI[L9]=lK.b||0}H=K(H);kz=K(kz);TI=K(TI);lK.opacity=1;return function(am){lK.r=H(am);lK.g=kz(am);lK.b=TI(am);return lK+""}}}
function EF(K,G){return K=+K,G-=K,function(W){return K+G*W}}
function FR(K){return function(){return K}}
function Nj(K){return function(G){return K(G)+""}}
function ca(K,G){var W=k_X.lastIndex=Fqm.lastIndex=0,H,kz,TI,L9=-1,lK=[],am=[];K+="";for(G+="";(H=k_X.exec(K))&&(kz=Fqm.exec(G));)(TI=kz.index)>W&&(TI=G.slice(W,TI),lK[L9]?lK[L9]+=TI:lK[++L9]=TI),(H=H[0])===(kz=kz[0])?lK[L9]?lK[L9]+=kz:lK[++L9]=kz:(lK[++L9]=null,am.push({i:L9,x:EF(H,kz)})),W=Fqm.lastIndex;W<G.length&&(TI=G.slice(W),lK[L9]?lK[L9]+=TI:lK[++L9]=TI);return lK.length<2?am[0]?Nj(am[0].x):FR(G):(G=am.length,function(JX){for(var Iw=0,rS;Iw<G;++Iw)lK[(rS=am[Iw]).i]=rS.x(JX);return lK.join("")})}
function n1(K,G,W,H,kz,TI){var L9,lK,am;if(L9=Math.sqrt(K*K+G*G))K/=L9,G/=L9;if(am=K*W+G*H)W-=K*am,H-=G*am;if(lK=Math.sqrt(W*W+H*H))W/=lK,H/=lK,am/=lK;K*H<G*W&&(K=-K,G=-G,am=-am,L9=-L9);return{translateX:kz,translateY:TI,rotate:Math.atan2(G,K)*Wq8,skewX:Math.atan(am)*Wq8,scaleX:L9,scaleY:lK}}
function lI(K,G,W,H){function kz(JX){return JX.length?JX.pop()+" ":""}
function TI(JX,Iw,rS,ZY,wy,Pa){JX!==rS||Iw!==ZY?(wy=wy.push("translate(",null,G,null,W),Pa.push({i:wy-4,x:EF(JX,rS)},{i:wy-2,x:EF(Iw,ZY)})):(rS||ZY)&&wy.push("translate("+rS+G+ZY+W)}
function L9(JX,Iw,rS,ZY){JX!==Iw?(JX-Iw>180?Iw+=360:Iw-JX>180&&(JX+=360),ZY.push({i:rS.push(kz(rS)+"rotate(",null,H)-2,x:EF(JX,Iw)})):Iw&&rS.push(kz(rS)+"rotate("+Iw+H)}
function lK(JX,Iw,rS,ZY){JX!==Iw?ZY.push({i:rS.push(kz(rS)+"skewX(",null,H)-2,x:EF(JX,Iw)}):Iw&&rS.push(kz(rS)+"skewX("+Iw+H)}
function am(JX,Iw,rS,ZY,wy,Pa){JX!==rS||Iw!==ZY?(wy=wy.push(kz(wy)+"scale(",null,",",null,")"),Pa.push({i:wy-4,x:EF(JX,rS)},{i:wy-2,x:EF(Iw,ZY)})):rS===1&&ZY===1||wy.push(kz(wy)+"scale("+rS+","+ZY+")")}
return function(JX,Iw){var rS=[],ZY=[];JX=K(JX);Iw=K(Iw);TI(JX.translateX,JX.translateY,Iw.translateX,Iw.translateY,rS,ZY);L9(JX.rotate,Iw.rotate,rS,ZY);lK(JX.skewX,Iw.skewX,rS,ZY);am(JX.scaleX,JX.scaleY,Iw.scaleX,Iw.scaleY,rS,ZY);JX=Iw=null;return function(wy){for(var Pa=-1,xb=ZY.length,La;++Pa<xb;)rS[(La=ZY[Pa]).i]=La.x(wy);return rS.join("")}}}
function YG(K){return function(G,W){var H=K((G=xV(G)).h,(W=xV(W)).h),kz=Fj(G.s,W.s),TI=Fj(G.l,W.l),L9=Fj(G.opacity,W.opacity);return function(lK){G.h=H(lK);G.s=kz(lK);G.l=TI(lK);G.opacity=L9(lK);return G+""}}}
function Vv(K){return function(G,W){var H=K((G=ry(G)).h,(W=ry(W)).h),kz=Fj(G.c,W.c),TI=Fj(G.l,W.l),L9=Fj(G.opacity,W.opacity);return function(lK){G.h=H(lK);G.c=kz(lK);G.l=TI(lK);G.opacity=L9(lK);return G+""}}}
function jk(K){return function H(W){function kz(TI,L9){var lK=K((TI=Pm(TI)).h,(L9=Pm(L9)).h),am=Fj(TI.s,L9.s),JX=Fj(TI.l,L9.l),Iw=Fj(TI.opacity,L9.opacity);return function(rS){TI.h=lK(rS);TI.s=am(rS);TI.l=JX(Math.pow(rS,W));TI.opacity=Iw(rS);return TI+""}}
W=+W;kz.gamma=H;return kz}(1)}
function Vs(){return d2||(du8(dKI),d2=Bt.now()+n49)}
function dKI(){d2=0}
function jv(){this._call=this._time=this._next=null}
function Ec(K,G,W){var H=new jv;H.restart(K,G,W);return H}
function hV(){d2=(P09=Bt.now())+n49;Tw=Ex=0;try{Vs();++Tw;for(var K=LCF,G;K;)(G=d2-K._time)>=0&&K._call.call(null,G),K=K._next;--Tw}finally{Tw=0;K=LCF;for(var W=Infinity;K;)if(K._call){W>K._time&&(W=K._time);var H=K;K=K._next}else G=K._next,K._next=null,K=H?H._next=G:LCF=G;hO=H;Uc(W);d2=0}}
function e4F(){var K=Bt.now(),G=K-P09;G>1E3&&(n49-=G,P09=K)}
function Uc(K){Tw||(Ex&&(Ex=clearTimeout(Ex)),K-d2>24?(K<Infinity&&(Ex=setTimeout(hV,K-Bt.now()-n49)),Ux&&(Ux=clearInterval(Ux))):(Ux||(P09=Bt.now(),Ux=setInterval(e4F,1E3)),Tw=1,du8(hV)))}
function xuq(K,G,W){var H=new jv;G=G==null?0:+G;H.restart(function(kz){H.stop();K(kz+G)},G,W);
return H}
function uos(K,G,W,H,kz,TI){var L9=K.__transition;if(!L9)K.__transition={};else if(W in L9)return;MkY(K,W,{name:G,index:H,group:kz,on:IeH,tween:CBL,time:TI.time,delay:TI.delay,duration:TI.duration,ease:TI.ease,timer:null,state:0})}
function ztK(K,G){K=nb(K,G);if(K.state>0)throw Error("se");return K}
function xO(K,G){K=nb(K,G);if(K.state>2)throw Error("te");return K}
function nb(K,G){K=K.__transition;if(!K||!(K=K[G]))throw Error("ue");return K}
function MkY(K,G,W){function H(am){var JX,Iw;if(W.state!==1)return TI();for(ZY in L9){var rS=L9[ZY];if(rS.name===W.name){if(rS.state===3)return xuq(H);rS.state===4?(rS.state=6,rS.timer.stop(),rS.on.call("interrupt",K,K.__data__,rS.index,rS.group),delete L9[ZY]):+ZY<G&&(rS.state=6,rS.timer.stop(),delete L9[ZY])}}xuq(function(){W.state===3&&(W.state=4,W.timer.restart(kz,W.delay,W.time),kz(am))});
W.state=2;W.on.call("start",K,K.__data__,W.index,W.group);if(W.state===2){W.state=3;lK=Array(Iw=W.tween.length);var ZY=0;for(JX=-1;ZY<Iw;++ZY)if(rS=W.tween[ZY].value.call(K,K.__data__,W.index,W.group))lK[++JX]=rS;lK.length=JX+1}}
function kz(am){am=am<W.duration?W.ease.call(null,am/W.duration):(W.timer.restart(TI),W.state=5,1);for(var JX=-1,Iw=lK.length;++JX<Iw;)lK[JX].call(null,am);W.state===5&&(W.on.call("end",K,K.__data__,W.index,W.group),TI())}
function TI(){W.state=6;W.timer.stop();delete L9[G];for(var am in L9)return;delete K.__transition}
var L9=K.__transition,lK;L9[G]=W;W.timer=Ec(function(am){W.state=1;W.timer.restart(H,W.delay,W.time);W.delay<=am&&H(am-W.delay)},0,W.time)}
function sdP(K,G){var W,H;return function(){var kz=xO(this,K),TI=kz.tween;if(TI!==W){H=W=TI;TI=0;for(var L9=H.length;TI<L9;++TI)if(H[TI].name===G){H=H.slice();H.splice(TI,1);break}}kz.tween=H}}
function ogK(K,G,W){var H,kz;if(typeof W!=="function")throw Error();return function(){var TI=xO(this,K),L9=TI.tween;if(L9!==H){kz=(H=L9).slice();L9={name:G,value:W};for(var lK=0,am=kz.length;lK<am;++lK)if(kz[lK].name===G){kz[lK]=L9;break}lK===am&&kz.push(L9)}TI.tween=kz}}
function TkF(K,G,W){var H=K._id;K.each(function(){var kz=xO(this,H);(kz.value||(kz.value={}))[G]=W.apply(this,arguments)});
return function(kz){return nb(kz,H).value[G]}}
function qJu(K,G){var W;return(typeof G==="number"?EF:G instanceof D8?muw:(W=D8(G))?(G=W,muw):ca)(K,G)}
function yhP(K){return function(){this.removeAttribute(K)}}
function kEP(K){return function(){this.removeAttributeNS(K.space,K.local)}}
function FRK(K,G,W){var H,kz;return function(){var TI=this.getAttribute(K);return TI===W?null:TI===H?kz:kz=G(H=TI,W)}}
function uhR(K,G,W){var H,kz;return function(){var TI=this.getAttributeNS(K.space,K.local);return TI===W?null:TI===H?kz:kz=G(H=TI,W)}}
function zhP(K,G,W){var H,kz,TI;return function(){var L9=W(this);if(L9==null)return void this.removeAttribute(K);var lK=this.getAttribute(K);return lK===L9?null:lK===H&&L9===kz?TI:TI=G(H=lK,kz=L9)}}
function Ts8(K,G,W){var H,kz,TI;return function(){var L9=W(this);if(L9==null)return void this.removeAttributeNS(K.space,K.local);var lK=this.getAttributeNS(K.space,K.local);return lK===L9?null:lK===H&&L9===kz?TI:TI=G(H=lK,kz=L9)}}
function chP(K,G){function W(){var H=this,kz=G.apply(H,arguments);return kz&&function(TI){H.setAttributeNS(K.space,K.local,kz(TI))}}
W._value=G;return W}
function ehK(K,G){function W(){var H=this,kz=G.apply(H,arguments);return kz&&function(TI){H.setAttribute(K,kz(TI))}}
W._value=G;return W}
function rhY(K,G){return function(){ztK(this,K).delay=+G.apply(this,arguments)}}
function iQK(K,G){return G=+G,function(){ztK(this,K).delay=G}}
function wzy(K,G){return function(){xO(this,K).duration=+G.apply(this,arguments)}}
function ngR(K,G){return G=+G,function(){xO(this,K).duration=G}}
function PBL(K,G){if(typeof G!=="function")throw Error();return function(){xO(this,K).ease=G}}
function LRK(K){return(K+"").trim().split(/^|\s+/).every(function(G){var W=G.indexOf(".");W>=0&&(G=G.slice(0,W));return!G||G==="start"})}
function DYy(K,G,W){var H,kz,TI=LRK(G)?ztK:xO;return function(){var L9=TI(this,K),lK=L9.on;if(lK!==H)(kz=(H=lK).copy()).on(G,W);L9.on=kz}}
function pzR(K){return function(){var G=this.parentNode,W;for(W in this.__transition)if(+W!==K)return;G&&G.removeChild(this)}}
function QdL(K,G){var W,H,kz;return function(){var TI=hX(this,K),L9=(this.style.removeProperty(K),hX(this,K));return TI===L9?null:TI===W&&L9===H?kz:kz=G(W=TI,H=L9)}}
function NsM(K){return function(){this.style.removeProperty(K)}}
function VZP(K,G,W){var H,kz;return function(){var TI=hX(this,K);return TI===W?null:TI===H?kz:kz=G(H=TI,W)}}
function jdj(K,G,W){var H,kz,TI;return function(){var L9=hX(this,K),lK=W(this);lK==null&&(lK=(this.style.removeProperty(K),hX(this,K)));return L9===lK?null:L9===H&&lK===kz?TI:TI=G(H=L9,kz=lK)}}
function leL(K,G,W){function H(){var kz=this,TI=G.apply(kz,arguments);return TI&&function(L9){kz.style.setProperty(K,TI(L9),W)}}
H._value=G;return H}
function XzR(K){return function(){this.textContent=K}}
function $YY(K){return function(){var G=K(this);this.textContent=G==null?"":G}}
function r3(K,G,W,H){this._groups=K;this._parents=G;this._name=W;this._id=H}
function cws(K){return{type:K}}
function etz(){this._x0=this._y0=this._x1=this._y1=null;this._=""}
function DTz(){}
function ZVc(K,G){var W=new DTz;if(K instanceof DTz)K.each(function(L9,lK){W.set(lK,L9)});
else if(Array.isArray(K)){var H=-1,kz=K.length,TI;if(G==null)for(;++H<kz;)W.set(H,K[H]);else for(;++H<kz;)W.set(G(TI=K[H],H,K),TI)}else if(K)for(H in K)W.set(H,K[H]);return W}
function p4X(){}
function Bkw(K){return function(G){for(var W={},H=0;H<K.length;H++)W[K[H]]=G[H]||"";return W}}
function RhY(K,G){var W=Bkw(K);return function(H,kz){return G(W(H),kz,K)}}
function bQK(K){var G=Object.create(null),W=[];K.forEach(function(H){for(var kz in H)kz in G||W.push(G[kz]=kz)});
return W}
function Erc(K){function G(L9,lK){function am(){if(Pa)return rwm;if(xb)return xb=!1,htc;var BF,hk=rS,Xe;if(L9.charCodeAt(hk)===34){for(;rS++<Iw&&L9.charCodeAt(rS)!==34||L9.charCodeAt(++rS)===34;);(BF=rS)>=Iw?Pa=!0:(Xe=L9.charCodeAt(rS++))===10?xb=!0:Xe===13&&(xb=!0,L9.charCodeAt(rS)===10&&++rS);return L9.slice(hk+1,BF-1).replace(/""/g,'"')}for(;rS<Iw;){if((Xe=L9.charCodeAt(BF=rS++))===10)xb=!0;else if(Xe===13)xb=!0,L9.charCodeAt(rS)===10&&++rS;else if(Xe!==TI)continue;return L9.slice(hk,BF)}return Pa=
!0,L9.slice(hk,Iw)}
var JX=[],Iw=L9.length,rS=0,ZY=0,wy,Pa=Iw<=0,xb=!1;L9.charCodeAt(Iw-1)===10&&--Iw;for(L9.charCodeAt(Iw-1)===13&&--Iw;(wy=am())!==rwm;){for(var La=[];wy!==htc&&wy!==rwm;)La.push(wy),wy=am();lK&&(La=lK(La,ZY++))==null||JX.push(La)}return JX}
function W(L9){return L9.map(H).join(K)}
function H(L9){return L9==null?"":kz.test(L9)?'"'+L9.replace(/"/g,'""')+'"':L9}
var kz=new RegExp('["'+K+"\n\r]"),TI=K.charCodeAt(0);return{parse:function(L9,lK){var am,JX;L9=G(L9,function(Iw,rS){if(am)return am(Iw,rS-1);JX=Iw;am=lK?RhY(Iw,lK):Bkw(Iw)});
L9.columns=JX||[];return L9},
parseRows:G,format:function(L9,lK){lK==null&&(lK=bQK(L9));return[lK.map(H).join(K)].concat(L9.map(function(am){return lK.map(function(JX){return H(am[JX])}).join(K)})).join("\n")},
formatRows:function(L9){return L9.map(W).join("\n")}}}
function Yry(K){if(!K.ok)throw Error("ve`"+K.status+"`"+K.statusText);return K.text()}
function Uuq(K){return function(G,W,H){arguments.length===2&&typeof W==="function"&&(H=W,W=void 0);return fetch(G,W).then(Yry).then(function(kz){return K(kz,H)})}}
function HV8(K,G,W,H){if(isNaN(G)||isNaN(W))return K;var kz,TI=K._root;H={data:H};var L9=K._x0,lK=K._y0,am=K._x1,JX=K._y1,Iw,rS,ZY,wy,Pa;if(!TI)return K._root=H,K;for(;TI.length;)if((ZY=G>=(Iw=(L9+am)/2))?L9=Iw:am=Iw,(wy=W>=(rS=(lK+JX)/2))?lK=rS:JX=rS,kz=TI,!(TI=TI[Pa=wy<<1|ZY]))return kz[Pa]=H,K;var xb=+K._x.call(null,TI.data);var La=+K._y.call(null,TI.data);if(G===xb&&W===La)return H.next=TI,kz?kz[Pa]=H:K._root=H,K;do kz=kz?kz[Pa]=Array(4):K._root=Array(4),(ZY=G>=(Iw=(L9+am)/2))?L9=Iw:am=Iw,(wy=
W>=(rS=(lK+JX)/2))?lK=rS:JX=rS;while((Pa=wy<<1|ZY)===(ZY=(La>=rS)<<1|xb>=Iw));return kz[ZY]=TI,kz[Pa]=H,K}
function oH(K,G,W,H,kz){this.node=K;this.x0=G;this.y0=W;this.x1=H;this.y1=kz}
function GEK(K){return K[0]}
function feM(K){return K[1]}
function iVz(K,G,W,H,kz,TI){this._x=K;this._y=G;this._x0=W;this._y0=H;this._x1=kz;this._y1=TI;this._root=void 0}
function tcc(K){for(var G={data:K.data},W=G;K=K.next;)W=W.next={data:K.data};return G}
function QFF(K,G){if((G=(K=G?K.toExponential(G-1):K.toExponential()).indexOf("e"))<0)return null;var W=K.slice(0,G);return[W.length>1?W[0]+W.slice(2):W,+K.slice(G+1)]}
function SrL(K){return K=QFF(Math.abs(K)),K?K[1]:NaN}
function KRL(K,G){return function(W,H){for(var kz=W.length,TI=[],L9=0,lK=K[0],am=0;kz>0&&lK>0;){am+lK+1>H&&(lK=Math.max(1,H-am));TI.push(W.substring(kz-=lK,kz+lK));if((am+=lK+1)>H)break;lK=K[L9=(L9+1)%K.length]}return TI.reverse().join(G)}}
function AhY(K){return function(G){return G.replace(/[0-9]/g,function(W){return K[+W]})}}
function wVs(K){return new nrm(K)}
function nrm(K){if(!(G=ggS.exec(K)))throw Error("we`"+K);var G;this.fill=G[1]||" ";this.align=G[2]||">";this.sign=G[3]||"-";this.symbol=G[4]||"";this.zero=!!G[5];this.width=G[6]&&+G[6];this.comma=!!G[7];this.precision=G[8]&&+G[8].slice(1);this.trim=!!G[9];this.type=G[10]||""}
function Jwq(K,G){G=QFF(K,G);if(!G)return K+"";K=G[0];G=G[1];return G<0?"0."+Array(-G).join("0")+K:K.length>G+1?K.slice(0,G+1)+"."+K.slice(G+1):K+Array(G-K.length+2).join("0")}
function OV8(K){return K}
function vgH(K){function G(lK){function am(Ba){var TD=Xe,YK=iY,rR,MK;if(hk==="c")YK=UB(Ba)+YK,Ba="";else{Ba=+Ba;var n8=Ba<0;Ba=UB(Math.abs(Ba),La);if(BF){var B4=Ba.length,X9=1,EL=-1;a:for(;X9<B4;++X9)switch(Ba[X9]){case ".":EL=rR=X9;break;case "0":EL===0&&(EL=X9);rR=X9;break;default:if(!+Ba[X9])break a;EL>0&&(EL=0)}Ba=EL>0?Ba.slice(0,EL)+Ba.slice(rR+1):Ba}n8&&+Ba===0&&(n8=!1);TD=(n8?rS==="("?rS:"-":rS==="-"||rS==="("?"":rS)+TD;YK=(hk==="s"?asm[8+Mcw/3]:"")+YK+(n8&&rS==="("?")":"");if(w0)for(n8=-1,
rR=Ba.length;++n8<rR;)if(MK=Ba.charCodeAt(n8),48>MK||MK>57){YK=(MK===46?kz+Ba.slice(n8+1):Ba.slice(n8))+YK;Ba=Ba.slice(0,n8);break}}xb&&!wy&&(Ba=W(Ba,Infinity));MK=TD.length+Ba.length+YK.length;n8=MK<Pa?Array(Pa-MK+1).join(JX):"";xb&&wy&&(Ba=W(n8+Ba,n8.length?Pa-YK.length:Infinity),n8="");switch(Iw){case "<":Ba=TD+Ba+YK+n8;break;case "=":Ba=TD+n8+Ba+YK;break;case "^":Ba=n8.slice(0,MK=n8.length>>1)+TD+Ba+YK+n8.slice(MK);break;default:Ba=n8+TD+Ba+YK}return TI(Ba)}
lK=wVs(lK);var JX=lK.fill,Iw=lK.align,rS=lK.sign,ZY=lK.symbol,wy=lK.zero,Pa=lK.width,xb=lK.comma,La=lK.precision,BF=lK.trim,hk=lK.type;hk==="n"?(xb=!0,hk="g"):INP[hk]||(La==null&&(La=12),BF=!0,hk="g");if(wy||JX==="0"&&Iw==="=")wy=!0,JX="0",Iw="=";var Xe=ZY==="$"?H[0]:ZY==="#"&&/[boxX]/.test(hk)?"0"+hk.toLowerCase():"",iY=ZY==="$"?H[1]:/[%p]/.test(hk)?L9:"",UB=INP[hk],w0=/[defgprs%]/.test(hk);La=La==null?6:/[gprs]/.test(hk)?Math.max(1,Math.min(21,La)):Math.max(0,Math.min(20,La));am.toString=function(){return lK+
""};
return am}
var W=K.grouping&&K.thousands?KRL(K.grouping,K.thousands):OV8,H=K.currency,kz=K.decimal,TI=K.numerals?AhY(K.numerals):OV8,L9=K.percent||"%";return{format:G,formatPrefix:function(lK,am){var JX=G((lK=wVs(lK),lK.type="f",lK));lK=Math.max(-8,Math.min(8,Math.floor(SrL(am)/3)))*3;var Iw=Math.pow(10,-lK),rS=asm[8+lK/3];return function(ZY){return JX(Iw*ZY)+rS}}}}
function Zz(){this.reset()}
function Cv8(K,G,W){var H=K.s=G+W,kz=H-G;K.t=G-(H-kz)+(W-kz)}
function Nez(K){return K>1?Ud:K<-1?-Ud:Math.asin(K)}
function WRj(){}
function s$u(K){var G=K[0];K=K[1];var W=Hp(K);return[W*Hp(G),W*Sd(G),Sd(K)]}
function ofP(K,G){return[K[1]*G[2]-K[2]*G[1],K[2]*G[0]-K[0]*G[2],K[0]*G[1]-K[1]*G[0]]}
function yo5(K){var G=VXz(K[0]*K[0]+K[1]*K[1]+K[2]*K[2]);K[0]/=G;K[1]/=G;K[2]/=G}
function dYY(){var K=[],G;return{point:function(W,H){G.push([W,H])},
lineStart:function(){K.push(G=[])},
lineEnd:WRj,rejoin:function(){K.length>1&&K.push(K.pop().concat(K.shift()))},
result:function(){var W=K;K=[];G=null;return W}}}
function jFm(K,G,W,H){this.x=K;this.z=G;this.o=W;this.e=H;this.v=!1;this.n=this.p=null}
function xYM(K,G,W,H,kz){var TI=[],L9=[];K.forEach(function(rS){if(!((ZY=rS.length-1)<=0)){var ZY,wy=rS[0],Pa=rS[ZY],xb=wy;if(ie(xb[0]-Pa[0])<1E-6&&ie(xb[1]-Pa[1])<1E-6){kz.lineStart();for(lK=0;lK<ZY;++lK)kz.point((wy=rS[lK])[0],wy[1]);kz.lineEnd()}else TI.push(ZY=new jFm(wy,rS,null,!0)),L9.push(ZY.o=new jFm(wy,null,ZY,!1)),TI.push(ZY=new jFm(Pa,rS,null,!1)),L9.push(ZY.o=new jFm(Pa,null,ZY,!0))}});
if(TI.length){L9.sort(G);kXm(TI);kXm(L9);var lK=0;for(K=L9.length;lK<K;++lK)L9[lK].e=W=!W;W=TI[0];for(var am;;){for(var JX=W,Iw=!0;JX.v;)if((JX=JX.n)===W)return;G=JX.z;kz.lineStart();do{JX.v=JX.o.v=!0;if(JX.e){if(Iw)for(lK=0,K=G.length;lK<K;++lK)kz.point((am=G[lK])[0],am[1]);else H(JX.x,JX.n.x,1,kz);JX=JX.n}else{if(Iw)for(G=JX.p.z,lK=G.length-1;lK>=0;--lK)kz.point((am=G[lK])[0],am[1]);else H(JX.x,JX.p.x,-1,kz);JX=JX.p}JX=JX.o;G=JX.z;Iw=!Iw}while(!JX.v);kz.lineEnd()}}}
function kXm(K){if(G=K.length){for(var G,W=0,H=K[0],kz;++W<G;)H.n=kz=K[W],kz.p=H,H=kz;H.n=kz=K[0];kz.p=H}}
function qrH(K){return K.length>1}
function mYH(K,G){return((K=K.x)[0]<0?K[1]-Ud-1E-6:Ud-K[1])-((G=G.x)[0]<0?G[1]-Ud-1E-6:Ud-G[1])}
function Pum(){}
function F_e(K){return function(G,W){var H=Hp(G),kz=Hp(W);H=K(H*kz);return[H*kz*Sd(G),H*Sd(W)]}}
function Ht(K){return function(G,W){var H=VXz(G*G+W*W),kz=K(H),TI=Sd(kz);kz=Hp(kz);return[uHb(G*TI,H*kz),Nez(H&&W*TI/H)]}}
function ZQ8(K){var G=0,W=K.children,H=W&&W.length;if(H)for(;--H>=0;)G+=W[H].value;else G=1;K.value=G}
function zSu(K,G){var W=new tO(K);K=+K.value&&(W.value=K.value);var H,kz=[W],TI,L9,lK,am;for(G==null&&(G=Bs8);H=kz.pop();)if(K&&(H.value=+H.data.value),(L9=G(H.data))&&(am=L9.length))for(H.children=Array(am),lK=am-1;lK>=0;--lK)kz.push(TI=H.children[lK]=new tO(L9[lK])),TI.parent=H,TI.depth=H.depth+1;return W.eachBefore(EgM)}
function Bs8(K){return K.children}
function hhM(K){K.data=K.data.data}
function EgM(K){var G=0;do K.height=G;while((K=K.parent)&&K.height<++G)}
function tO(K){this.data=K;this.depth=this.height=0;this.parent=null}
function pq(K,G,W,H){function kz(TI){return K(TI=new Date(+TI)),TI}
kz.floor=kz;kz.ceil=function(TI){return K(TI=new Date(TI-1)),G(TI,1),K(TI),TI};
kz.round=function(TI){var L9=kz(TI),lK=kz.ceil(TI);return TI-L9<lK-TI?L9:lK};
kz.offset=function(TI,L9){return G(TI=new Date(+TI),L9==null?1:Math.floor(L9)),TI};
kz.range=function(TI,L9,lK){var am=[],JX;TI=kz.ceil(TI);lK=lK==null?1:Math.floor(lK);if(!(TI<L9&&lK>0))return am;do am.push(JX=new Date(+TI)),G(TI,lK),K(TI);while(JX<TI&&TI<L9);return am};
kz.filter=function(TI){return pq(function(L9){if(L9>=L9)for(;K(L9),!TI(L9);)L9.setTime(L9-1)},function(L9,lK){if(L9>=L9)if(lK<0)for(;++lK<=0;)for(;G(L9,-1),!TI(L9););
else for(;--lK>=0;)for(;G(L9,1),!TI(L9););})};
W&&(kz.count=function(TI,L9){Lqm.setTime(+TI);DuO.setTime(+L9);K(Lqm);K(DuO);return Math.floor(W(Lqm,DuO))},kz.every=function(TI){TI=Math.floor(TI);
return isFinite(TI)&&TI>0?TI>1?kz.filter(H?function(L9){return H(L9)%TI===0}:function(L9){return kz.count(0,L9)%TI===0}):kz:null});
return kz}
function qo(K){return pq(function(G){G.setDate(G.getDate()-(G.getDay()+7-K)%7);G.setHours(0,0,0,0)},function(G,W){G.setDate(G.getDate()+W*7)},function(G,W){return(W-G-(W.getTimezoneOffset()-G.getTimezoneOffset())*6E4)/6048E5})}
function mD(K){return pq(function(G){G.setUTCDate(G.getUTCDate()-(G.getUTCDay()+7-K)%7);G.setUTCHours(0,0,0,0)},function(G,W){G.setUTCDate(G.getUTCDate()+W*7)},function(G,W){return(W-G)/6048E5})}
function UYR(K){if(0<=K.y&&K.y<100){var G=new Date(-1,K.m,K.d,K.H,K.M,K.S,K.L);G.setFullYear(K.y);return G}return new Date(K.y,K.m,K.d,K.H,K.M,K.S,K.L)}
function lfz(K){if(0<=K.y&&K.y<100){var G=new Date(Date.UTC(-1,K.m,K.d,K.H,K.M,K.S,K.L));G.setUTCFullYear(K.y);return G}return new Date(Date.UTC(K.y,K.m,K.d,K.H,K.M,K.S,K.L))}
function JO(K){return{y:K,m:0,d:1,H:0,M:0,S:0,L:0}}
function HQH(K){function G(YK,rR){return function(MK){var n8=[],B4=-1,X9=0,EL=YK.length,ih,Sc;for(MK instanceof Date||(MK=new Date(+MK));++B4<EL;)if(YK.charCodeAt(B4)===37){n8.push(YK.slice(X9,B4));(X9=TOw[ih=YK.charAt(++B4)])!=null?ih=YK.charAt(++B4):X9=ih==="e"?" ":"0";if(Sc=rR[ih])ih=Sc(MK,X9);n8.push(ih);X9=B4+1}n8.push(YK.slice(X9,B4));return n8.join("")}}
function W(YK,rR){return function(MK){var n8=JO(1900);if(H(n8,YK,MK,0)!=MK.length)return null;if("Q"in n8)return new Date(n8.Q);"p"in n8&&(n8.H=n8.H%12+n8.p*12);if("V"in n8){if(n8.V<1||n8.V>53)return null;"w"in n8||(n8.w=1);if("Z"in n8){MK=lfz(JO(n8.y));var B4=MK.getUTCDay();MK=B4>4||B4===0?pVm.ceil(MK):pVm(MK);MK=com.offset(MK,(n8.V-1)*7);n8.y=MK.getUTCFullYear();n8.m=MK.getUTCMonth();n8.d=MK.getUTCDate()+(n8.w+6)%7}else MK=rR(JO(n8.y)),B4=MK.getDay(),MK=B4>4||B4===0?Qiz.ceil(MK):Qiz(MK),MK=eSd.offset(MK,
(n8.V-1)*7),n8.y=MK.getFullYear(),n8.m=MK.getMonth(),n8.d=MK.getDate()+(n8.w+6)%7}else if("W"in n8||"U"in n8)"w"in n8||(n8.w="u"in n8?n8.u%7:"W"in n8?1:0),B4="Z"in n8?lfz(JO(n8.y)).getUTCDay():rR(JO(n8.y)).getDay(),n8.m=0,n8.d="W"in n8?(n8.w+6)%7+n8.W*7-(B4+5)%7:n8.w+n8.U*7-(B4+6)%7;return"Z"in n8?(n8.H+=n8.Z/100|0,n8.M+=n8.Z%100,lfz(n8)):rR(n8)}}
function H(YK,rR,MK,n8){for(var B4=0,X9=rR.length,EL=MK.length,ih;B4<X9;){if(n8>=EL)return-1;ih=rR.charCodeAt(B4++);if(ih===37){if(ih=rR.charAt(B4++),ih=TD[ih in TOw?rR.charAt(B4++):ih],!ih||(n8=ih(YK,MK,n8))<0)return-1}else if(ih!=MK.charCodeAt(n8++))return-1}return n8}
var kz=K.dateTime,TI=K.date,L9=K.time,lK=K.periods,am=K.days,JX=K.shortDays,Iw=K.months,rS=K.shortMonths,ZY=Ox(lK),wy=ao(lK),Pa=Ox(am),xb=ao(am),La=Ox(JX),BF=ao(JX),hk=Ox(Iw),Xe=ao(Iw),iY=Ox(rS),UB=ao(rS),w0={a:function(YK){return JX[YK.getDay()]},
A:function(YK){return am[YK.getDay()]},
b:function(YK){return rS[YK.getMonth()]},
B:function(YK){return Iw[YK.getMonth()]},
c:null,d:roS,e:roS,f:tZY,H:Jhy,I:OQL,j:aeR,L:iZ8,m:MZS,M:IIM,p:function(YK){return lK[+(YK.getHours()>=12)]},
Q:w3q,s:nf8,S:CRP,u:szL,U:ojH,V:yZR,w:k9P,W:FuY,x:null,X:null,y:unB,Y:z$L,Z:T1R,"%":Pvb},Ba={a:function(YK){return JX[YK.getUTCDay()]},
A:function(YK){return am[YK.getUTCDay()]},
b:function(YK){return rS[YK.getUTCMonth()]},
B:function(YK){return Iw[YK.getUTCMonth()]},
c:null,d:L_q,e:L_q,f:cZL,H:e$j,I:rZR,j:iWL,L:DDm,m:wfK,M:njS,p:function(YK){return lK[+(YK.getUTCHours()>=12)]},
Q:w3q,s:nf8,S:PRM,u:LuS,U:D2R,V:pfL,w:QzS,W:N1M,x:null,X:null,y:VgK,Y:jzR,Z:lIM,"%":Pvb},TD={a:function(YK,rR,MK){return(rR=La.exec(rR.slice(MK)))?(YK.w=BF[rR[0].toLowerCase()],MK+rR[0].length):-1},
A:function(YK,rR,MK){return(rR=Pa.exec(rR.slice(MK)))?(YK.w=xb[rR[0].toLowerCase()],MK+rR[0].length):-1},
b:function(YK,rR,MK){return(rR=iY.exec(rR.slice(MK)))?(YK.m=UB[rR[0].toLowerCase()],MK+rR[0].length):-1},
B:function(YK,rR,MK){return(rR=hk.exec(rR.slice(MK)))?(YK.m=Xe[rR[0].toLowerCase()],MK+rR[0].length):-1},
c:function(YK,rR,MK){return H(YK,kz,rR,MK)},
d:p3b,e:p3b,f:XfL,H:Q$u,I:Q$u,j:$2P,L:R$L,m:bWR,M:Yv8,p:function(YK,rR,MK){return(rR=ZY.exec(rR.slice(MK)))?(YK.p=wy[rR[0].toLowerCase()],MK+rR[0].length):-1},
Q:G9H,s:fI8,S:SvR,u:KuY,U:AZR,V:gjS,w:vjH,W:WuR,x:function(YK,rR,MK){return H(YK,TI,rR,MK)},
X:function(YK,rR,MK){return H(YK,L9,rR,MK)},
y:d2R,Y:x2H,Z:qvL,"%":m2K};w0.x=G(TI,w0);w0.X=G(L9,w0);w0.c=G(kz,w0);Ba.x=G(TI,Ba);Ba.X=G(L9,Ba);Ba.c=G(kz,Ba);return{format:function(YK){var rR=G(YK,w0);rR.toString=function(){return YK};
return rR},
parse:function(YK){var rR=W(YK,UYR);rR.toString=function(){return YK};
return rR},
utcFormat:function(YK){var rR=G(YK,Ba);rR.toString=function(){return YK};
return rR},
utcParse:function(YK){var rR=W(YK,lfz);rR.toString=function(){return YK};
return rR}}}
function L$(K,G,W){var H=K<0?"-":"";K=(H?-K:K)+"";var kz=K.length;return H+(kz<W?Array(W-kz+1).join(G)+K:K)}
function ZWL(K){return K.replace(B1K,"\\$&")}
function Ox(K){return new RegExp("^(?:"+K.map(ZWL).join("|")+")","i")}
function ao(K){for(var G={},W=-1,H=K.length;++W<H;)G[K[W].toLowerCase()]=W;return G}
function vjH(K,G,W){return(G=$3.exec(G.slice(W,W+1)))?(K.w=+G[0],W+G[0].length):-1}
function KuY(K,G,W){return(G=$3.exec(G.slice(W,W+1)))?(K.u=+G[0],W+G[0].length):-1}
function AZR(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.U=+G[0],W+G[0].length):-1}
function gjS(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.V=+G[0],W+G[0].length):-1}
function WuR(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.W=+G[0],W+G[0].length):-1}
function x2H(K,G,W){return(G=$3.exec(G.slice(W,W+4)))?(K.y=+G[0],W+G[0].length):-1}
function d2R(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.y=+G[0]+(+G[0]>68?1900:2E3),W+G[0].length):-1}
function qvL(K,G,W){return(G=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(G.slice(W,W+6)))?(K.Z=G[1]?0:-(G[2]+(G[3]||"00")),W+G[0].length):-1}
function bWR(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.m=G[0]-1,W+G[0].length):-1}
function p3b(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.d=+G[0],W+G[0].length):-1}
function $2P(K,G,W){return(G=$3.exec(G.slice(W,W+3)))?(K.m=0,K.d=+G[0],W+G[0].length):-1}
function Q$u(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.H=+G[0],W+G[0].length):-1}
function Yv8(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.M=+G[0],W+G[0].length):-1}
function SvR(K,G,W){return(G=$3.exec(G.slice(W,W+2)))?(K.S=+G[0],W+G[0].length):-1}
function R$L(K,G,W){return(G=$3.exec(G.slice(W,W+3)))?(K.L=+G[0],W+G[0].length):-1}
function XfL(K,G,W){return(G=$3.exec(G.slice(W,W+6)))?(K.L=Math.floor(G[0]/1E3),W+G[0].length):-1}
function m2K(K,G,W){return(K=EjR.exec(G.slice(W,W+1)))?W+K[0].length:-1}
function G9H(K,G,W){return(G=$3.exec(G.slice(W)))?(K.Q=+G[0],W+G[0].length):-1}
function fI8(K,G,W){return(G=$3.exec(G.slice(W)))?(K.Q=+G[0]*1E3,W+G[0].length):-1}
function roS(K,G){return L$(K.getDate(),G,2)}
function Jhy(K,G){return L$(K.getHours(),G,2)}
function OQL(K,G){return L$(K.getHours()%12||12,G,2)}
function aeR(K,G){return L$(1+eSd.count(cZ(K),K),G,3)}
function iZ8(K,G){return L$(K.getMilliseconds(),G,3)}
function tZY(K,G){return iZ8(K,G)+"000"}
function MZS(K,G){return L$(K.getMonth()+1,G,2)}
function IIM(K,G){return L$(K.getMinutes(),G,2)}
function CRP(K,G){return L$(K.getSeconds(),G,2)}
function szL(K){K=K.getDay();return K===0?7:K}
function ojH(K,G){return L$(h$L.count(cZ(K),K),G,2)}
function yZR(K,G){var W=K.getDay();K=W>=4||W===0?NkY(K):NkY.ceil(K);return L$(NkY.count(cZ(K),K)+(cZ(K).getDay()===4),G,2)}
function k9P(K){return K.getDay()}
function FuY(K,G){return L$(Qiz.count(cZ(K),K),G,2)}
function unB(K,G){return L$(K.getFullYear()%100,G,2)}
function z$L(K,G){return L$(K.getFullYear()%1E4,G,4)}
function T1R(K){K=K.getTimezoneOffset();return(K>0?"-":(K*=-1,"+"))+L$(K/60|0,"0",2)+L$(K%60,"0",2)}
function L_q(K,G){return L$(K.getUTCDate(),G,2)}
function e$j(K,G){return L$(K.getUTCHours(),G,2)}
function rZR(K,G){return L$(K.getUTCHours()%12||12,G,2)}
function iWL(K,G){return L$(1+com.count(eS(K),K),G,3)}
function DDm(K,G){return L$(K.getUTCMilliseconds(),G,3)}
function cZL(K,G){return DDm(K,G)+"000"}
function wfK(K,G){return L$(K.getUTCMonth()+1,G,2)}
function njS(K,G){return L$(K.getUTCMinutes(),G,2)}
function PRM(K,G){return L$(K.getUTCSeconds(),G,2)}
function LuS(K){K=K.getUTCDay();return K===0?7:K}
function D2R(K,G){return L$(U2K.count(eS(K),K),G,2)}
function pfL(K,G){var W=K.getUTCDay();K=W>=4||W===0?Vct(K):Vct.ceil(K);return L$(Vct.count(eS(K),K)+(eS(K).getUTCDay()===4),G,2)}
function QzS(K){return K.getUTCDay()}
function N1M(K,G){return L$(pVm.count(eS(K),K),G,2)}
function VgK(K,G){return L$(K.getUTCFullYear()%100,G,2)}
function jzR(K,G){return L$(K.getUTCFullYear()%1E4,G,4)}
function lIM(){return"+0000"}
function Pvb(){return"%"}
function w3q(K){return+K}
function nf8(K){return Math.floor(+K/1E3)}
function k5(K){for(var G=K.length/6|0,W=Array(G),H=0;H<G;)W[H]="#"+K.slice(H*6,++H*6);return W}
function Eu(K){return HW8(K[K.length-1])}
function X4s(K){var G=K.length;return function(W){return K[Math.max(0,Math.min(G-1,Math.floor(W*G)))]}}
function NOu(K){this._context=K}
function VVq(K){this._curve=K}
function j$8(K,G,W){var H=K._x1-K._x0;G-=K._x1;var kz=(K._y1-K._y0)/(H||G<0&&-0);K=(W-K._y1)/(G||H<0&&-0);return((kz<0?-1:1)+(K<0?-1:1))*Math.min(Math.abs(kz),Math.abs(K),.5*Math.abs((kz*G+K*H)/(H+G)))||0}
function lN8(K,G){var W=K._x1-K._x0;return W?(3*(K._y1-K._y0)/W-G)/2:G}
function jiI(K,G,W){var H=K._x0,kz=K._x1,TI=K._y1,L9=(kz-H)/3;K._context.bezierCurveTo(H+L9,K._y0+L9*G,kz-L9,TI-L9*W,kz,TI)}
function ls9(K){this._context=K}
function X3P(K){this._context=K}
function M4(K,G,W){this.k=K;this.x=G;this.y=W}
(function(K){K.length===1&&(K=C(K));return{left:function(G,W,H,kz){H==null&&(H=0);kz==null&&(kz=G.length);for(;H<kz;){var TI=H+kz>>>1;K(G[TI],W)<0?H=TI+1:kz=TI}return H},
right:function(G,W,H,kz){H==null&&(H=0);kz==null&&(kz=G.length);for(;H<kz;){var TI=H+kz>>>1;K(G[TI],W)>0?kz=TI:H=TI+1}return H}}})(I);
var q0M={value:function(){}};
k.prototype=y.prototype={constructor:k,on:function(K,G){var W=this._,H=F(K+"",W),kz,TI=-1,L9=H.length;if(arguments.length<2)for(;++TI<L9;){var lK;if(lK=kz=(K=H[TI]).type){a:{lK=W[kz];for(var am=0,JX=lK.length;am<JX;++am)if((kz=lK[am]).name===K.name){kz=kz.value;break a}kz=void 0}lK=kz}if(lK)return kz}else{if(G!=null&&typeof G!=="function")throw Error("xe`"+G);for(;++TI<L9;)if(kz=(K=H[TI]).type)W[kz]=z(W[kz],K.name,G);else if(G==null)for(kz in W)W[kz]=z(W[kz],K.name,null);return this}},
copy:function(){var K={},G=this._,W;for(W in G)K[W]=G[W].slice();return new k(K)},
call:function(K,G){if((kz=arguments.length-2)>0)for(var W=Array(kz),H=0,kz,TI;H<kz;++H)W[H]=arguments[H+2];if(!this._.hasOwnProperty(K))throw Error("re`"+K);TI=this._[K];H=0;for(kz=TI.length;H<kz;++H)TI[H].value.apply(G,W)},
apply:function(K,G,W){if(!this._.hasOwnProperty(K))throw Error("re`"+K);K=this._[K];for(var H=0,kz=K.length;H<kz;++H)K[H].value.apply(G,W)}};
var ha={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/"},$DY=function(K){return function(){return this.matches(K)}};
if(typeof document!=="undefined"){var Iv=document.documentElement;if(!Iv.matches){var tgR=Iv.webkitMatchesSelector||Iv.msMatchesSelector||Iv.mozMatchesSelector||Iv.oMatchesSelector;$DY=function(K){return function(){return tgR.call(this,K)}}}}var RSw=$DY;
X.prototype={constructor:X,appendChild:function(K){return this._parent.insertBefore(K,this._next)},
insertBefore:function(K,G){return this._parent.insertBefore(K,G)},
querySelector:function(K){return this._parent.querySelector(K)},
querySelectorAll:function(K){return this._parent.querySelectorAll(K)}};
var G_S={};typeof document!=="undefined"&&("onmouseenter"in document.documentElement||(G_S={mouseenter:"mouseover",mouseleave:"mouseout"}));var mmB=[null];l8.prototype=bj.prototype={constructor:l8,select:function(K){typeof K!=="function"&&(K=p(K));for(var G=this._groups,W=G.length,H=Array(W),kz=0;kz<W;++kz)for(var TI=G[kz],L9=TI.length,lK=H[kz]=Array(L9),am,JX,Iw=0;Iw<L9;++Iw)(am=TI[Iw])&&(JX=K.call(am,am.__data__,Iw,TI))&&("__data__"in am&&(JX.__data__=am.__data__),lK[Iw]=JX);return new l8(H,this._parents)},
filter:function(K){typeof K!=="function"&&(K=RSw(K));for(var G=this._groups,W=G.length,H=Array(W),kz=0;kz<W;++kz)for(var TI=G[kz],L9=TI.length,lK=H[kz]=[],am,JX=0;JX<L9;++JX)(am=TI[JX])&&K.call(am,am.__data__,JX,TI)&&lK.push(am);return new l8(H,this._parents)},
data:function(K,G){if(!K)return wy=Array(this.size()),JX=-1,this.each(function(hk){wy[++JX]=hk}),wy;
var W=G?A:S,H=this._parents,kz=this._groups;typeof K!=="function"&&(K=b(K));for(var TI=kz.length,L9=Array(TI),lK=Array(TI),am=Array(TI),JX=0;JX<TI;++JX){var Iw=H[JX],rS=kz[JX],ZY=rS.length,wy=K.call(Iw,Iw&&Iw.__data__,JX,H),Pa=wy.length,xb=lK[JX]=Array(Pa),La=L9[JX]=Array(Pa);ZY=am[JX]=Array(ZY);W(Iw,rS,xb,La,ZY,wy,G);rS=Iw=0;for(var BF;Iw<Pa;++Iw)if(ZY=xb[Iw]){for(Iw>=rS&&(rS=Iw+1);!(BF=La[rS])&&++rS<Pa;);ZY._next=BF||null}}L9=new l8(L9,H);L9._enter=lK;L9._exit=am;return L9},
exit:function(){return new l8(this._exit||this._groups.map(Q),this._parents)},
merge:function(K){var G=this._groups;K=K._groups;for(var W=G.length,H=Math.min(W,K.length),kz=Array(W),TI=0;TI<H;++TI)for(var L9=G[TI],lK=K[TI],am=L9.length,JX=kz[TI]=Array(am),Iw,rS=0;rS<am;++rS)if(Iw=L9[rS]||lK[rS])JX[rS]=Iw;for(;TI<W;++TI)kz[TI]=G[TI];return new l8(kz,this._parents)},
order:function(){for(var K=this._groups,G=-1,W=K.length;++G<W;)for(var H=K[G],kz=H.length-1,TI=H[kz],L9;--kz>=0;)if(L9=H[kz])TI&&TI!==L9.nextSibling&&TI.parentNode.insertBefore(L9,TI),TI=L9;return this},
sort:function(K){function G(rS,ZY){return rS&&ZY?K(rS.__data__,ZY.__data__):!rS-!ZY}
K||(K=x);for(var W=this._groups,H=W.length,kz=Array(H),TI=0;TI<H;++TI){for(var L9=W[TI],lK=L9.length,am=kz[TI]=Array(lK),JX,Iw=0;Iw<lK;++Iw)if(JX=L9[Iw])am[Iw]=JX;am.sort(G)}return(new l8(kz,this._parents)).order()},
call:function(){var K=arguments[0];arguments[0]=this;K.apply(null,arguments);return this},
nodes:function(){var K=Array(this.size()),G=-1;this.each(function(){K[++G]=this});
return K},
node:function(){for(var K=this._groups,G=0,W=K.length;G<W;++G)for(var H=K[G],kz=0,TI=H.length;kz<TI;++kz){var L9=H[kz];if(L9)return L9}return null},
size:function(){var K=0;this.each(function(){++K});
return K},
empty:function(){return!this.node()},
each:function(K){for(var G=this._groups,W=0,H=G.length;W<H;++W)for(var kz=G[W],TI=0,L9=kz.length,lK;TI<L9;++TI)(lK=kz[TI])&&K.call(lK,lK.__data__,TI,kz);return this},
attr:function(K,G){var W=c(K);if(arguments.length<2){var H=this.node();return W.local?H.getAttributeNS(W.space,W.local):H.getAttribute(W)}return this.each((G==null?W.local?t:B:typeof G==="function"?W.local?cs:a:W.local?yW:U)(W,G))},
style:function(K,G,W){return arguments.length>1?this.each((G==null?XO:typeof G==="function"?$z:Rm)(K,G,W==null?"":W)):hX(this.node(),K)},
property:function(K,G){return arguments.length>1?this.each((G==null?vs:typeof G==="function"?Bs:mY)(K,G)):this.node()[K]},
text:function(K){return arguments.length?this.each(K==null?n5:(typeof K==="function"?Zt:sH)(K)):this.node().textContent},
html:function(K){return arguments.length?this.each(K==null?Qd:(typeof K==="function"?Rw:OF)(K)):this.node().innerHTML},
append:function(K){var G=typeof K==="function"?K:L(K);return this.select(function(){return this.appendChild(G.apply(this,arguments))})},
insert:function(K,G){var W=typeof K==="function"?K:L(K),H=G==null?ku:typeof G==="function"?G:p(G);return this.select(function(){return this.insertBefore(W.apply(this,arguments),H.apply(this,arguments)||null)})},
remove:function(){return this.each(xK)},
clone:function(K){return this.select(K?uK:yf)},
datum:function(K){return arguments.length?this.property("__data__",K):this.node().__data__},
on:function(K,G,W){var H=TR(K+""),kz=H.length,TI;if(arguments.length<2){var L9=this.node().__on;if(L9)for(var lK=0,am=L9.length,JX;lK<am;++lK){var Iw=0;for(JX=L9[lK];Iw<kz;++Iw)if((TI=H[Iw]).type===JX.type&&TI.name===JX.name)return JX.value}}else{L9=G?hc:G0;W==null&&(W=!1);for(Iw=0;Iw<kz;++Iw)this.each(L9(H[Iw],G,W));return this}},
dispatch:function(K,G){return this.each((typeof G==="function"?i8:Ws)(K,G))}};
var ZF8=0;K5.prototype=function(){return new K5}.prototype={constructor:K5,
get:function(K){for(var G=this._;!(G in K);)if(!(K=K.parentNode))return;return K[G]},
set:function(K,G){return K[this._]=G},
remove:function(K){return this._ in K&&delete K[this._]},
toString:function(){return this._}};
var rj=1/.7,Bd8=/^#([0-9a-f]{3})$/,ECj=/^#([0-9a-f]{6})$/,hBL=RegExp("^rgb\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*\\)$"),Umj=RegExp("^rgb\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),HFR=RegExp("^rgba\\(\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d+)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*\\)$"),tkS=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*\\)$"),
J0L=RegExp("^hsl\\(\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*,\\s*([+-]?\\d*\\.?\\d+(?:[eE][+-]?\\d+)?)%\\s*\\)$"),OFL=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*\\)$"),fsw={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};
ZS(yk,D8,{displayable:function(){return this.rgb().displayable()},
hex:function(){return this.rgb().hex()},
toString:function(){return this.rgb()+""}});
ZS(Tu,eX,RJ(yk,{brighter:function(K){K=K==null?rj:Math.pow(rj,K);return new Tu(this.r*K,this.g*K,this.b*K,this.opacity)},
darker:function(K){K=K==null?.7:Math.pow(.7,K);return new Tu(this.r*K,this.g*K,this.b*K,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"#"+kb(this.r)+kb(this.g)+kb(this.b)},
toString:function(){var K=this.opacity;K=isNaN(K)?1:Math.max(0,Math.min(1,K));return(K===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))+(K===1?")":", "+K+")")}}));
ZS(kV,xV,RJ(yk,{brighter:function(K){K=K==null?rj:Math.pow(rj,K);return new kV(this.h,this.s,this.l*K,this.opacity)},
darker:function(K){K=K==null?.7:Math.pow(.7,K);return new kV(this.h,this.s,this.l*K,this.opacity)},
rgb:function(){var K=this.h%360+(this.h<0)*360,G=this.l,W=G+(G<.5?G:1-G)*(isNaN(K)||isNaN(this.s)?0:this.s);G=2*G-W;return new Tu(yX(K>=240?K-240:K+120,G,W),yX(K,G,W),yX(K<120?K+240:K-120,G,W),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 SJm=Math.PI/180,grw=180/Math.PI,Awe=4/29,zw=6/29,KqS=3*zw*zw,azL=zw*zw*zw;ZS(p9,function(K,G,W,H){return arguments.length===1?M$(K):new p9(K,G,W,H==null?1:H)},RJ(yk,{brighter:function(K){return new p9(this.l+18*(K==null?1:K),this.a,this.b,this.opacity)},
darker:function(K){return new p9(this.l-18*(K==null?1:K),this.a,this.b,this.opacity)},
rgb:function(){var K=(this.l+16)/116,G=isNaN(this.a)?K:K+this.a/500,W=isNaN(this.b)?K:K-this.b/200;G=.96422*xz(G);K=1*xz(K);W=.82521*xz(W);return new Tu(L5(3.1338561*G-1.6168667*K-.4906146*W),L5(-.9787684*G+1.9161415*K+.033454*W),L5(.0719453*G-.2289914*K+1.4052427*W),this.opacity)}}));
ZS(p5,ry,RJ(yk,{brighter:function(K){return new p5(this.h,this.c,this.l+18*(K==null?1:K),this.opacity)},
darker:function(K){return new p5(this.h,this.c,this.l-18*(K==null?1:K),this.opacity)},
rgb:function(){return M$(this).rgb()}}));
var vrP=1.78277*-.29227-.1347134789;ZS(L8,Pm,RJ(yk,{brighter:function(K){K=K==null?rj:Math.pow(rj,K);return new L8(this.h,this.s,this.l*K,this.opacity)},
darker:function(K){K=K==null?.7:Math.pow(.7,K);return new L8(this.h,this.s,this.l*K,this.opacity)},
rgb:function(){var K=isNaN(this.h)?0:(this.h+120)*SJm,G=+this.l,W=isNaN(this.s)?0:this.s*G*(1-G),H=Math.cos(K);K=Math.sin(K);return new Tu(255*(G+W*(-.14861*H+1.78277*K)),255*(G+W*(-.29227*H+-.90649*K)),255*(G+1.97294*H*W),this.opacity)}}));
var muw=function W(G){function H(TI,L9){var lK=kz((TI=eX(TI)).r,(L9=eX(L9)).r),am=kz(TI.g,L9.g),JX=kz(TI.b,L9.b),Iw=Fj(TI.opacity,L9.opacity);return function(rS){TI.r=lK(rS);TI.g=am(rS);TI.b=JX(rS);TI.opacity=Iw(rS);return TI+""}}
var kz=w4(G);H.gamma=W;return H}(1),HW8=dU(function(G){var W=G.length-1;
return function(H){var kz=H<=0?H=0:H>=1?(H=1,W-1):Math.floor(H*W),TI=G[kz],L9=G[kz+1];return wR((H-kz/W)*W,kz>0?G[kz-1]:2*TI-L9,TI,L9,kz<W-1?G[kz+2]:2*L9-TI)}});
dU(function(G){var W=G.length;return function(H){var kz=Math.floor(((H%=1)<0?++H:H)*W);return wR((H-kz/W)*W,G[(kz+W-1)%W],G[kz%W],G[(kz+1)%W],G[(kz+2)%W])}});
var k_X=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fqm=new RegExp(k_X.source,"g"),Wq8=180/Math.PI,XVt={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1},CS,$uO,bZw,$TI,JZy=lI(function(G){if(G==="none")return XVt;CS||(CS=document.createElement("DIV"),$uO=document.documentElement,bZw=document.defaultView);CS.style.transform=G;G=bZw.getComputedStyle($uO.appendChild(CS),null).getPropertyValue("transform");$uO.removeChild(CS);G=G.slice(7,-1).split(",");return n1(+G[0],+G[1],+G[2],+G[3],
+G[4],+G[5])},"px, ","px)","deg)"),OW8=lI(function(G){if(G==null)return XVt;
$TI||($TI=document.createElementNS("http://www.w3.org/2000/svg","g"));$TI.setAttribute("transform",G);if(!(G=$TI.transform.baseVal.consolidate()))return XVt;G=G.matrix;return n1(G.a,G.b,G.c,G.d,G.e,G.f)},", ",")",")");
YG(K2);YG(Fj);Vv(K2);Vv(Fj);jk(K2);var RtO=jk(Fj),Tw=0,Ex=0,Ux=0,LCF,hO,P09=0,d2=0,n49=0,Bt=typeof performance==="object"&&performance.now?performance:Date,du8=typeof window==="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(G){setTimeout(G,17)};
jv.prototype=Ec.prototype={constructor:jv,restart:function(G,W,H){if(typeof G!=="function")throw new TypeError("ye");H=(H==null?Vs():+H)+(W==null?0:+W);this._next||hO===this||(hO?hO._next=this:LCF=this,hO=this);this._call=G;this._time=H;Uc()},
stop:function(){this._call&&(this._call=null,this._time=Infinity,Uc())}};
var IeH=y("start","end","interrupt"),CBL=[],aIR=bj.prototype.constructor,Y2P=0,il=bj.prototype;r3.prototype=function(G){return bj().transition(G)}.prototype={constructor:r3,
select:function(G){var W=this._name,H=this._id;typeof G!=="function"&&(G=p(G));for(var kz=this._groups,TI=kz.length,L9=Array(TI),lK=0;lK<TI;++lK)for(var am=kz[lK],JX=am.length,Iw=L9[lK]=Array(JX),rS,ZY,wy=0;wy<JX;++wy)(rS=am[wy])&&(ZY=G.call(rS,rS.__data__,wy,am))&&("__data__"in rS&&(ZY.__data__=rS.__data__),Iw[wy]=ZY,uos(Iw[wy],W,H,wy,Iw,nb(rS,H)));return new r3(L9,this._parents,W,H)},
filter:function(G){typeof G!=="function"&&(G=RSw(G));for(var W=this._groups,H=W.length,kz=Array(H),TI=0;TI<H;++TI)for(var L9=W[TI],lK=L9.length,am=kz[TI]=[],JX,Iw=0;Iw<lK;++Iw)(JX=L9[Iw])&&G.call(JX,JX.__data__,Iw,L9)&&am.push(JX);return new r3(kz,this._parents,this._name,this._id)},
merge:function(G){if(G._id!==this._id)throw Error();var W=this._groups;G=G._groups;for(var H=W.length,kz=Math.min(H,G.length),TI=Array(H),L9=0;L9<kz;++L9)for(var lK=W[L9],am=G[L9],JX=lK.length,Iw=TI[L9]=Array(JX),rS,ZY=0;ZY<JX;++ZY)if(rS=lK[ZY]||am[ZY])Iw[ZY]=rS;for(;L9<H;++L9)TI[L9]=W[L9];return new r3(TI,this._parents,this._name,this._id)},
selection:function(){return new aIR(this._groups,this._parents)},
transition:function(){for(var G=this._name,W=this._id,H=++Y2P,kz=this._groups,TI=kz.length,L9=0;L9<TI;++L9)for(var lK=kz[L9],am=lK.length,JX,Iw=0;Iw<am;++Iw)if(JX=lK[Iw]){var rS=nb(JX,W);uos(JX,G,H,Iw,lK,{time:rS.time+rS.delay+rS.duration,delay:0,duration:rS.duration,ease:rS.ease})}return new r3(kz,this._parents,G,H)},
call:il.call,nodes:il.nodes,node:il.node,size:il.size,empty:il.empty,each:il.each,on:function(G,W){var H=this._id;return arguments.length<2?nb(this.node(),H).on.on(G):this.each(DYy(H,G,W))},
attr:function(G,W){var H=c(G),kz=H==="transform"?OW8:qJu;return this.attrTween(G,typeof W==="function"?(H.local?Ts8:zhP)(H,kz,TkF(this,"attr."+G,W)):W==null?(H.local?kEP:yhP)(H):(H.local?uhR:FRK)(H,kz,W+""))},
attrTween:function(G,W){var H="attr."+G;if(arguments.length<2)return(H=this.tween(H))&&H._value;if(W==null)return this.tween(H,null);if(typeof W!=="function")throw Error();var kz=c(G);return this.tween(H,(kz.local?chP:ehK)(kz,W))},
style:function(G,W,H){var kz=G==="transform"?JZy:qJu;return W==null?this.styleTween(G,QdL(G,kz)).on("end.style."+G,NsM(G)):this.styleTween(G,typeof W==="function"?jdj(G,kz,TkF(this,"style."+G,W)):VZP(G,kz,W+""),H)},
styleTween:function(G,W,H){var kz="style."+G;if(arguments.length<2)return(kz=this.tween(kz))&&kz._value;if(W==null)return this.tween(kz,null);if(typeof W!=="function")throw Error();return this.tween(kz,leL(G,W,H==null?"":H))},
text:function(G){return this.tween("text",typeof G==="function"?$YY(TkF(this,"text",G)):XzR(G==null?"":G+""))},
remove:function(){return this.on("end.remove",pzR(this._id))},
tween:function(G,W){var H=this._id;if(arguments.length<2){H=nb(this.node(),H).tween;for(var kz=0,TI=H.length,L9;kz<TI;++kz)if((L9=H[kz]).name===G)return L9.value;return null}return this.each((W==null?sdP:ogK)(H,G,W))},
delay:function(G){var W=this._id;return arguments.length?this.each((typeof G==="function"?rhY:iQK)(W,G)):nb(this.node(),W).delay},
duration:function(G){var W=this._id;return arguments.length?this.each((typeof G==="function"?wzy:ngR)(W,G)):nb(this.node(),W).duration},
ease:function(G){var W=this._id;return arguments.length?this.each(PBL(W,G)):nb(this.node(),W).ease}};
var bVz={time:null,delay:0,duration:250,ease:function(G){return((G*=2)<=1?G*G*G:(G-=2)*G*G+2)/2}};
bj.prototype.transition=function(G){var W;if(G instanceof r3){var H=G._id;G=G._name}else H=++Y2P,(W=bVz).time=Vs(),G=G==null?null:G+"";for(var kz=this._groups,TI=kz.length,L9=0;L9<TI;++L9)for(var lK=kz[L9],am=lK.length,JX,Iw=0;Iw<am;++Iw)if(JX=lK[Iw]){var rS=JX,ZY=G,wy=H,Pa=Iw,xb=lK,La;if(!(La=W))a:{La=void 0;for(var BF=H;!(La=JX.__transition)||!(La=La[BF]);)if(!(JX=JX.parentNode)){La=(bVz.time=Vs(),bVz);break a}}uos(rS,ZY,wy,Pa,xb,La)}return new r3(kz,this._parents,G,H)};
["e","w"].map(cws);["n","s"].map(cws);"n e s w nw ne se sw".split(" ").map(cws);etz.prototype=function(){return new etz}.prototype={constructor:etz,
moveTo:function(G,W){this._+="M"+(this._x0=this._x1=+G)+","+(this._y0=this._y1=+W)},
closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},
lineTo:function(G,W){this._+="L"+(this._x1=+G)+","+(this._y1=+W)},
bezierCurveTo:function(G,W,H,kz,TI,L9){this._+="C"+ +G+","+ +W+","+ +H+","+ +kz+","+(this._x1=+TI)+","+(this._y1=+L9)},
rect:function(G,W,H,kz){this._+="M"+(this._x0=this._x1=+G)+","+(this._y0=this._y1=+W)+"h"+ +H+"v"+ +kz+"h"+-H+"Z"},
toString:function(){return this._}};
DTz.prototype=ZVc.prototype={constructor:DTz,has:function(G){return" "+G in this},
get:function(G){return this[" "+G]},
set:function(G,W){this[" "+G]=W;return this},
remove:function(G){G=" "+G;return G in this&&delete this[G]},
clear:function(){for(var G in this)G[0]===" "&&delete this[G]},
keys:function(){var G=[],W;for(W in this)W[0]===" "&&G.push(W.slice(1));return G},
values:function(){var G=[],W;for(W in this)W[0]===" "&&G.push(this[W]);return G},
entries:function(){var G=[],W;for(W in this)W[0]===" "&&G.push({key:W.slice(1),value:this[W]});return G},
size:function(){var G=0,W;for(W in this)W[0]===" "&&++G;return G},
empty:function(){for(var G in this)if(G[0]===" ")return!1;return!0},
each:function(G){for(var W in this)W[0]===" "&&G(this[W],W.slice(1),this)}};
var Z1=ZVc.prototype;p4X.prototype=function(G,W){var H=new p4X;if(G instanceof p4X)G.each(function(L9){H.add(L9)});
else if(G){var kz=-1,TI=G.length;if(W==null)for(;++kz<TI;)H.add(G[kz]);else for(;++kz<TI;)H.add(W(G[kz],kz,G))}return H}.prototype={constructor:p4X,
has:Z1.has,add:function(G){this[" "+G]=G;return this},
remove:Z1.remove,clear:Z1.clear,values:Z1.keys,size:Z1.size,empty:Z1.empty,each:Z1.each};var htc={},rwm={},MgY=Erc(",").parse,IAR=Erc("\t").parse;Uuq(MgY);Uuq(IAR);var yG=function(G,W,H){W=new iVz(W==null?GEK:W,H==null?feM:H,NaN,NaN,NaN,NaN);return G==null?W:W.addAll(G)}.prototype=iVz.prototype;
yG.copy=function(){var G=new iVz(this._x,this._y,this._x0,this._y0,this._x1,this._y1),W=this._root,H,kz;if(!W)return G;if(!W.length)return G._root=tcc(W),G;for(H=[{source:W,target:G._root=Array(4)}];W=H.pop();)for(var TI=0;TI<4;++TI)if(kz=W.source[TI])kz.length?H.push({source:kz,target:W.target[TI]=Array(4)}):W.target[TI]=tcc(kz);return G};
yG.add=function(G){var W=+this._x.call(null,G),H=+this._y.call(null,G);return HV8(this.cover(W,H),W,H,G)};
yG.addAll=function(G){var W,H,kz=G.length,TI,L9,lK=Array(kz),am=Array(kz),JX=Infinity,Iw=Infinity,rS=-Infinity,ZY=-Infinity;for(H=0;H<kz;++H)isNaN(TI=+this._x.call(null,W=G[H]))||isNaN(L9=+this._y.call(null,W))||(lK[H]=TI,am[H]=L9,TI<JX&&(JX=TI),TI>rS&&(rS=TI),L9<Iw&&(Iw=L9),L9>ZY&&(ZY=L9));rS<JX&&(JX=this._x0,rS=this._x1);ZY<Iw&&(Iw=this._y0,ZY=this._y1);this.cover(JX,Iw).cover(rS,ZY);for(H=0;H<kz;++H)HV8(this,lK[H],am[H],G[H]);return this};
yG.cover=function(G,W){if(isNaN(G=+G)||isNaN(W=+W))return this;var H=this._x0,kz=this._y0,TI=this._x1,L9=this._y1;if(isNaN(H))TI=(H=Math.floor(G))+1,L9=(kz=Math.floor(W))+1;else if(H>G||G>TI||kz>W||W>L9){var lK=TI-H,am=this._root,JX;switch(JX=(W<(kz+L9)/2)<<1|G<(H+TI)/2){case 0:do{var Iw=Array(4);Iw[JX]=am;am=Iw}while(lK*=2,TI=H+lK,L9=kz+lK,G>TI||W>L9);break;case 1:do Iw=Array(4),Iw[JX]=am,am=Iw;while(lK*=2,H=TI-lK,L9=kz+lK,H>G||W>L9);break;case 2:do Iw=Array(4),Iw[JX]=am,am=Iw;while(lK*=2,TI=H+lK,
kz=L9-lK,G>TI||kz>W);break;case 3:do Iw=Array(4),Iw[JX]=am,am=Iw;while(lK*=2,H=TI-lK,kz=L9-lK,H>G||kz>W)}this._root&&this._root.length&&(this._root=am)}else return this;this._x0=H;this._y0=kz;this._x1=TI;this._y1=L9;return this};
yG.data=function(){var G=[];this.visit(function(W){if(!W.length){do G.push(W.data);while(W=W.next)}});
return G};
yG.extent=function(G){return arguments.length?this.cover(+G[0][0],+G[0][1]).cover(+G[1][0],+G[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]};
yG.find=function(G,W,H){var kz=this._x0,TI=this._y0,L9,lK,am,JX,Iw=this._x1,rS=this._y1,ZY=[],wy=this._root,Pa;wy&&ZY.push(new oH(wy,kz,TI,Iw,rS));H==null?H=Infinity:(kz=G-H,TI=W-H,Iw=G+H,rS=W+H,H*=H);for(;Pa=ZY.pop();)if(!(!(wy=Pa.node)||(L9=Pa.x0)>Iw||(lK=Pa.y0)>rS||(am=Pa.x1)<kz||(JX=Pa.y1)<TI))if(wy.length){Pa=(L9+am)/2;var xb=(lK+JX)/2;ZY.push(new oH(wy[3],Pa,xb,am,JX),new oH(wy[2],L9,xb,Pa,JX),new oH(wy[1],Pa,lK,am,xb),new oH(wy[0],L9,lK,Pa,xb));if(wy=(W>=xb)<<1|G>=Pa)Pa=ZY[ZY.length-1],ZY[ZY.length-
1]=ZY[ZY.length-1-wy],ZY[ZY.length-1-wy]=Pa}else if(Pa=G-+this._x.call(null,wy.data),xb=W-+this._y.call(null,wy.data),Pa=Pa*Pa+xb*xb,Pa<H){var La=Math.sqrt(H=Pa);kz=G-La;TI=W-La;Iw=G+La;rS=W+La;La=wy.data}return La};
yG.remove=function(G){if(isNaN(JX=+this._x.call(null,G))||isNaN(Iw=+this._y.call(null,G)))return this;var W,H=this._root,kz,TI=this._x0,L9=this._y0,lK=this._x1,am=this._y1,JX,Iw,rS,ZY,wy,Pa,xb;if(!H)return this;if(H.length)for(;;){(wy=JX>=(rS=(TI+lK)/2))?TI=rS:lK=rS;(Pa=Iw>=(ZY=(L9+am)/2))?L9=ZY:am=ZY;if(!(W=H,H=H[xb=Pa<<1|wy]))return this;if(!H.length)break;if(W[xb+1&3]||W[xb+2&3]||W[xb+3&3]){var La=W;var BF=xb}}for(;H.data!==G;)if(!(kz=H,H=H.next))return this;(G=H.next)&&delete H.next;if(kz)return G?
kz.next=G:delete kz.next,this;if(!W)return this._root=G,this;G?W[xb]=G:delete W[xb];(H=W[0]||W[1]||W[2]||W[3])&&H===(W[3]||W[2]||W[1]||W[0])&&!H.length&&(La?La[BF]=H:this._root=H);return this};
yG.removeAll=function(G){for(var W=0,H=G.length;W<H;++W)this.remove(G[W]);return this};
yG.root=function(){return this._root};
yG.size=function(){var G=0;this.visit(function(W){if(!W.length){do++G;while(W=W.next)}});
return G};
yG.visit=function(G){var W=[],H,kz=this._root,TI,L9,lK,am,JX;for(kz&&W.push(new oH(kz,this._x0,this._y0,this._x1,this._y1));H=W.pop();)if(!G(kz=H.node,L9=H.x0,lK=H.y0,am=H.x1,JX=H.y1)&&kz.length){H=(L9+am)/2;var Iw=(lK+JX)/2;(TI=kz[3])&&W.push(new oH(TI,H,Iw,am,JX));(TI=kz[2])&&W.push(new oH(TI,L9,Iw,H,JX));(TI=kz[1])&&W.push(new oH(TI,H,lK,am,Iw));(TI=kz[0])&&W.push(new oH(TI,L9,lK,H,Iw))}};
yG.visitAfter=function(G){var W=[],H=[],kz;for(this._root&&W.push(new oH(this._root,this._x0,this._y0,this._x1,this._y1));kz=W.pop();){var TI=kz.node;if(TI.length){var L9,lK=kz.x0,am=kz.y0,JX=kz.x1,Iw=kz.y1,rS=(lK+JX)/2,ZY=(am+Iw)/2;(L9=TI[0])&&W.push(new oH(L9,lK,am,rS,ZY));(L9=TI[1])&&W.push(new oH(L9,rS,am,JX,ZY));(L9=TI[2])&&W.push(new oH(L9,lK,ZY,rS,Iw));(L9=TI[3])&&W.push(new oH(L9,rS,ZY,JX,Iw))}H.push(kz)}for(;kz=H.pop();)G(kz.node,kz.x0,kz.y0,kz.x1,kz.y1);return this};
yG.x=function(G){return arguments.length?(this._x=G,this):this._x};
yG.y=function(G){return arguments.length?(this._y=G,this):this._y};
var ggS=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;wVs.prototype=nrm.prototype;nrm.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 Mcw,INP={"%":function(G,W){return(G*100).toFixed(W)},
b:function(G){return Math.round(G).toString(2)},
c:function(G){return G+""},
d:function(G){return Math.round(G).toString(10)},
e:function(G,W){return G.toExponential(W)},
f:function(G,W){return G.toFixed(W)},
g:function(G,W){return G.toPrecision(W)},
o:function(G){return Math.round(G).toString(8)},
p:function(G,W){return Jwq(G*100,W)},
r:Jwq,s:function(G,W){var H=QFF(G,W);if(!H)return G+"";var kz=H[0];H=H[1];H=H-(Mcw=Math.max(-8,Math.min(8,Math.floor(H/3)))*3)+1;var TI=kz.length;return H===TI?kz:H>TI?kz+Array(H-TI+1).join("0"):H>0?kz.slice(0,H)+"."+kz.slice(H):"0."+Array(1-H).join("0")+QFF(G,Math.max(0,W+H-1))[0]},
X:function(G){return Math.round(G).toString(16).toUpperCase()},
x:function(G){return Math.round(G).toString(16)}},asm="y z a f p n \u00b5 m  k M G T P E Z Y".split(" "),CLK;
(function(G){return CLK=vgH(G)})({decimal:".",
thousands:",",grouping:[3],currency:["$",""]});Zz.prototype={constructor:Zz,reset:function(){this.s=this.t=0},
add:function(G){Cv8(RzF,G,this.t);Cv8(this,RzF.s,this.s);this.s?this.t+=RzF.t:this.s=RzF.t},
valueOf:function(){return this.s}};
var RzF=new Zz,$o=Math.PI,Ud=$o/2,GXe=$o/4,sNR=$o*2,YJI=$o/180,ie=Math.abs,G_H=Math.atan,uHb=Math.atan2,Hp=Math.cos,Sd=Math.sin,VXz=Math.sqrt;new Zz;new Zz;new Zz;var fsF=new Zz;(function(G,W,H,kz){return function(TI){function L9(UB,w0){G(UB,w0)&&TI.point(UB,w0)}
function lK(UB,w0){wy.point(UB,w0)}
function am(){iY.point=lK;wy.lineStart()}
function JX(){iY.point=L9;wy.lineEnd()}
function Iw(UB,w0){Xe.push([UB,w0]);xb.point(UB,w0)}
function rS(){xb.lineStart();Xe=[]}
function ZY(){Iw(Xe[0][0],Xe[0][1]);xb.lineEnd();var UB=xb.clean(),w0=Pa.result(),Ba=w0.length,TD;Xe.pop();BF.push(Xe);Xe=null;if(Ba)if(UB&1){if(Ba=w0[0],(w0=Ba.length-1)>0){La||(TI.polygonStart(),La=!0);TI.lineStart();for(UB=0;UB<w0;++UB)TI.point((TD=Ba[UB])[0],TD[1]);TI.lineEnd()}}else Ba>1&&UB&2&&w0.push(w0.pop().concat(w0.shift())),hk.push(w0.filter(qrH))}
var wy=W(TI),Pa=dYY(),xb=W(Pa),La=!1,BF,hk,Xe,iY={point:L9,lineStart:am,lineEnd:JX,polygonStart:function(){iY.point=Iw;iY.lineStart=rS;iY.lineEnd=ZY;hk=[];BF=[]},
polygonEnd:function(){iY.point=L9;iY.lineStart=am;iY.lineEnd=JX;var UB=hk,w0=UB.length;var Ba=-1;for(var TD=0,YK,rR;++Ba<w0;)TD+=UB[Ba].length;for(YK=Array(TD);--w0>=0;)for(rR=UB[w0],Ba=rR.length;--Ba>=0;)YK[--TD]=rR[Ba];hk=YK;UB=BF;w0=kz[0];TD=kz[1];var MK=Sd(TD);Ba=[Sd(w0),-Hp(w0),0];rR=YK=0;fsF.reset();MK===1?TD=Ud+1E-6:MK===-1&&(TD=-Ud-1E-6);MK=0;for(var n8=UB.length;MK<n8;++MK)if(X9=(B4=UB[MK]).length){var B4,X9,EL=B4[X9-1],ih=EL[0],Sc=EL[1]/2+GXe,b$m=Sd(Sc),fNu=Hp(Sc);for(Sc=0;Sc<X9;++Sc,ih=
SJs,b$m=S20,fNu=s4,EL=YuO){var YuO=B4[Sc],SJs=YuO[0];s4=YuO[1]/2+GXe;var S20=Sd(s4),s4=Hp(s4),wj=SJs-ih,KqH=wj>=0?1:-1,AwI=KqH*wj,GOI=AwI>$o;b$m*=S20;fsF.add(uHb(b$m*KqH*Sd(AwI),fNu*s4+b$m*Hp(AwI)));YK+=GOI?wj+KqH*sNR:wj;GOI^ih>=w0^SJs>=w0&&(EL=ofP(s$u(EL),s$u(YuO)),yo5(EL),ih=ofP(Ba,EL),yo5(ih),ih=(GOI^wj>=0?-1:1)*Nez(ih[2]),TD>ih||TD===ih&&(EL[0]||EL[1]))&&(rR+=GOI^wj>=0?1:-1)}}UB=(YK<-1E-6||YK<1E-6&&fsF<-1E-6)^rR&1;hk.length?(La||(TI.polygonStart(),La=!0),xYM(hk,mYH,UB,H,TI)):UB&&(La||(TI.polygonStart(),
La=!0),TI.lineStart(),H(null,null,1,TI),TI.lineEnd());La&&(TI.polygonEnd(),La=!1);hk=BF=null},
sphere:function(){TI.polygonStart();TI.lineStart();H(null,null,1,TI);TI.lineEnd();TI.polygonEnd()}};
return iY}})(function(){return!0},function(G){var W=NaN,H=NaN,kz=NaN,TI;
return{lineStart:function(){G.lineStart();TI=1},
point:function(L9,lK){var am=L9>0?$o:-$o,JX=ie(L9-W);if(ie(JX-$o)<1E-6)G.point(W,H=(H+lK)/2>0?Ud:-Ud),G.point(kz,H),G.lineEnd(),G.lineStart(),G.point(am,H),G.point(L9,H),TI=0;else if(kz!==am&&JX>=$o){ie(W-kz)<1E-6&&(W-=kz*1E-6);ie(L9-am)<1E-6&&(L9-=am*1E-6);JX=W;var Iw=H,rS=L9,ZY,wy,Pa=Sd(JX-rS);H=ie(Pa)>1E-6?G_H((Sd(Iw)*(wy=Hp(lK))*Sd(rS)-Sd(lK)*(ZY=Hp(Iw))*Sd(JX))/(ZY*wy*Pa)):(Iw+lK)/2;G.point(kz,H);G.lineEnd();G.lineStart();G.point(am,H);TI=0}G.point(W=L9,H=lK);kz=am},
lineEnd:function(){G.lineEnd();W=H=NaN},
clean:function(){return 2-TI}}},function(G,W,H,kz){G==null?(H*=Ud,kz.point(-$o,H),kz.point(0,H),kz.point($o,H),kz.point($o,0),kz.point($o,-H),kz.point(0,-H),kz.point(-$o,-H),kz.point(-$o,0),kz.point(-$o,H)):ie(G[0]-W[0])>1E-6?(G=G[0]<W[0]?$o:-$o,H=H*G/2,kz.point(-G,H),kz.point(0,H),kz.point(G,H)):kz.point(W[0],W[1])},[-$o,
-Ud]);new Zz;new Zz;new Zz;new Zz;Pum.prototype={constructor:Pum,point:function(G,W){this.stream.point(G,W)},
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()}};
Hp(30*YJI);(function(G){return function(W){var H=new Pum,kz;for(kz in G)H[kz]=G[kz];H.stream=W;return H}})({point:function(G,W){this.stream.point(G*YJI,W*YJI)}});
F_e(function(G){return VXz(2/(1+G))}).invert=Ht(function(G){return 2*Nez(G/2)});
F_e(function(G){return(G=G>1?0:G<-1?$o:Math.acos(G))&&G/Sd(G)}).invert=Ht(function(G){return G});
VXz(3);Ht(G_H);Ht(Nez);Ht(function(G){return 2*G_H(G)});
tO.prototype=zSu.prototype={constructor:tO,count:function(){return this.eachAfter(ZQ8)},
each:function(G){var W,H=[this],kz;do{var TI=H.reverse();for(H=[];W=TI.pop();)if(G(W),W=W.children){var L9=0;for(kz=W.length;L9<kz;++L9)H.push(W[L9])}}while(H.length);return this},
eachAfter:function(G){for(var W,H=[this],kz=[],TI,L9;W=H.pop();)if(kz.push(W),W=W.children)for(TI=0,L9=W.length;TI<L9;++TI)H.push(W[TI]);for(;W=kz.pop();)G(W);return this},
eachBefore:function(G){for(var W,H=[this],kz;W=H.pop();)if(G(W),W=W.children)for(kz=W.length-1;kz>=0;--kz)H.push(W[kz]);return this},
sum:function(G){return this.eachAfter(function(W){for(var H=+G(W.data)||0,kz=W.children,TI=kz&&kz.length;--TI>=0;)H+=kz[TI].value;W.value=H})},
sort:function(G){return this.eachBefore(function(W){W.children&&W.children.sort(G)})},
path:function(G){var W=this;var H=W;var kz=G;if(H!==kz){var TI=H.ancestors(),L9=kz.ancestors(),lK=null;H=TI.pop();for(kz=L9.pop();H===kz;)lK=H,H=TI.pop(),kz=L9.pop();H=lK}for(kz=[W];W!==H;)W=W.parent,kz.push(W);for(W=kz.length;G!==H;)kz.splice(W,0,G),G=G.parent;return kz},
ancestors:function(){for(var G=this,W=[G];G=G.parent;)W.push(G);return W},
links:function(){var G=this,W=[];G.each(function(H){H!==G&&W.push({source:H.parent,target:H})});
return W},
copy:function(){return zSu(this).eachBefore(hhM)}};
(function(G,W){this._=G;this.A=this.children=this.parent=null;this.a=this;this.s=this.c=this.m=this.z=0;this.t=null;this.i=W}).prototype=Object.create(tO.prototype);
var Lqm=new Date,DuO=new Date,K_u=pq(function(){},function(G,W){G.setTime(+G+W)},function(G,W){return W-G});
K_u.every=function(G){G=Math.floor(G);return isFinite(G)&&G>0?G>1?pq(function(W){W.setTime(Math.floor(W/G)*G)},function(W,H){W.setTime(+W+H*G)},function(W,H){return(H-W)/G}):K_u:null};
pq(function(G){G.setTime(Math.floor(G/1E3)*1E3)},function(G,W){G.setTime(+G+W*1E3)},function(G,W){return(W-G)/1E3},function(G){return G.getUTCSeconds()});
pq(function(G){G.setTime(Math.floor(G/6E4)*6E4)},function(G,W){G.setTime(+G+W*6E4)},function(G,W){return(W-G)/6E4},function(G){return G.getMinutes()});
pq(function(G){var W=G.getTimezoneOffset()*6E4%36E5;W<0&&(W+=36E5);G.setTime(Math.floor((+G-W)/36E5)*36E5+W)},function(G,W){G.setTime(+G+W*36E5)},function(G,W){return(W-G)/36E5},function(G){return G.getHours()});
var eSd=pq(function(G){G.setHours(0,0,0,0)},function(G,W){G.setDate(G.getDate()+W)},function(G,W){return(W-G-(W.getTimezoneOffset()-G.getTimezoneOffset())*6E4)/864E5},function(G){return G.getDate()-1}),h$L=qo(0),Qiz=qo(1);
qo(2);qo(3);var NkY=qo(4);qo(5);qo(6);pq(function(G){G.setDate(1);G.setHours(0,0,0,0)},function(G,W){G.setMonth(G.getMonth()+W)},function(G,W){return W.getMonth()-G.getMonth()+(W.getFullYear()-G.getFullYear())*12},function(G){return G.getMonth()});
var cZ=pq(function(G){G.setMonth(0,1);G.setHours(0,0,0,0)},function(G,W){G.setFullYear(G.getFullYear()+W)},function(G,W){return W.getFullYear()-G.getFullYear()},function(G){return G.getFullYear()});
cZ.every=function(G){return isFinite(G=Math.floor(G))&&G>0?pq(function(W){W.setFullYear(Math.floor(W.getFullYear()/G)*G);W.setMonth(0,1);W.setHours(0,0,0,0)},function(W,H){W.setFullYear(W.getFullYear()+H*G)}):null};
pq(function(G){G.setUTCSeconds(0,0)},function(G,W){G.setTime(+G+W*6E4)},function(G,W){return(W-G)/6E4},function(G){return G.getUTCMinutes()});
pq(function(G){G.setUTCMinutes(0,0,0)},function(G,W){G.setTime(+G+W*36E5)},function(G,W){return(W-G)/36E5},function(G){return G.getUTCHours()});
var com=pq(function(G){G.setUTCHours(0,0,0,0)},function(G,W){G.setUTCDate(G.getUTCDate()+W)},function(G,W){return(W-G)/864E5},function(G){return G.getUTCDate()-1}),U2K=mD(0),pVm=mD(1);
mD(2);mD(3);var Vct=mD(4);mD(5);mD(6);pq(function(G){G.setUTCDate(1);G.setUTCHours(0,0,0,0)},function(G,W){G.setUTCMonth(G.getUTCMonth()+W)},function(G,W){return W.getUTCMonth()-G.getUTCMonth()+(W.getUTCFullYear()-G.getUTCFullYear())*12},function(G){return G.getUTCMonth()});
var eS=pq(function(G){G.setUTCMonth(0,1);G.setUTCHours(0,0,0,0)},function(G,W){G.setUTCFullYear(G.getUTCFullYear()+W)},function(G,W){return W.getUTCFullYear()-G.getUTCFullYear()},function(G){return G.getUTCFullYear()});
eS.every=function(G){return isFinite(G=Math.floor(G))&&G>0?pq(function(W){W.setUTCFullYear(Math.floor(W.getUTCFullYear()/G)*G);W.setUTCMonth(0,1);W.setUTCHours(0,0,0,0)},function(W,H){W.setUTCFullYear(W.getUTCFullYear()+H*G)}):null};
var TOw={"-":"",_:" ",0:"0"},$3=/^\s*\d+/,EjR=/^%/,B1K=/[\\^$*+?|[\]().{}]/g,ffI;(function(G){ffI=HQH(G);yU0=ffI.utcFormat;kNd=ffI.utcParse;return ffI})({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||yU0("%Y-%m-%dT%H:%M:%S.%LZ");+new Date("2000-01-01T00:00:00.000Z")||kNd("%Y-%m-%dT%H:%M:%S.%LZ");k5("1f77b4ff7f0e2ca02cd627289467bd8c564be377c27f7f7fbcbd2217becf");
k5("393b795254a36b6ecf9c9ede6379398ca252b5cf6bcedb9c8c6d31bd9e39e7ba52e7cb94843c39ad494ad6616be7969c7b4173a55194ce6dbdde9ed6");k5("3182bd6baed69ecae1c6dbefe6550dfd8d3cfdae6bfdd0a231a35474c476a1d99bc7e9c0756bb19e9ac8bcbddcdadaeb636363969696bdbdbdd9d9d9");k5("1f77b4aec7e8ff7f0effbb782ca02c98df8ad62728ff98969467bdc5b0d58c564bc49c94e377c2f7b6d27f7f7fc7c7c7bcbd22dbdb8d17becf9edae5");k5("7fc97fbeaed4fdc086ffff99386cb0f0027fbf5b17666666");k5("1b9e77d95f027570b3e7298a66a61ee6ab02a6761d666666");k5("a6cee31f78b4b2df8a33a02cfb9a99e31a1cfdbf6fff7f00cab2d66a3d9affff99b15928");
k5("fbb4aeb3cde3ccebc5decbe4fed9a6ffffcce5d8bdfddaecf2f2f2");k5("b3e2cdfdcdaccbd5e8f4cae4e6f5c9fff2aef1e2cccccccc");k5("e41a1c377eb84daf4a984ea3ff7f00ffff33a65628f781bf999999");k5("66c2a5fc8d628da0cbe78ac3a6d854ffd92fe5c494b3b3b3");k5("8dd3c7ffffb3bebadafb807280b1d3fdb462b3de69fccde5d9d9d9bc80bdccebc5ffed6f");var o6H=Array(3).concat("d8b365f5f5f55ab4ac","a6611adfc27d80cdc1018571","a6611adfc27df5f5f580cdc1018571","8c510ad8b365f6e8c3c7eae55ab4ac01665e","8c510ad8b365f6e8c3f5f5f5c7eae55ab4ac01665e","8c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e",
"8c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e","5430058c510abf812ddfc27df6e8c3c7eae580cdc135978f01665e003c30","5430058c510abf812ddfc27df6e8c3f5f5f5c7eae580cdc135978f01665e003c30").map(k5);Eu(o6H);var yjY=Array(3).concat("af8dc3f7f7f77fbf7b","7b3294c2a5cfa6dba0008837","7b3294c2a5cff7f7f7a6dba0008837","762a83af8dc3e7d4e8d9f0d37fbf7b1b7837","762a83af8dc3e7d4e8f7f7f7d9f0d37fbf7b1b7837","762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b7837","762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b7837",
"40004b762a839970abc2a5cfe7d4e8d9f0d3a6dba05aae611b783700441b","40004b762a839970abc2a5cfe7d4e8f7f7f7d9f0d3a6dba05aae611b783700441b").map(k5);Eu(yjY);var kGR=Array(3).concat("e9a3c9f7f7f7a1d76a","d01c8bf1b6dab8e1864dac26","d01c8bf1b6daf7f7f7b8e1864dac26","c51b7de9a3c9fde0efe6f5d0a1d76a4d9221","c51b7de9a3c9fde0eff7f7f7e6f5d0a1d76a4d9221","c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221","c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221","8e0152c51b7dde77aef1b6dafde0efe6f5d0b8e1867fbc414d9221276419",
"8e0152c51b7dde77aef1b6dafde0eff7f7f7e6f5d0b8e1867fbc414d9221276419").map(k5);Eu(kGR);var FXK=Array(3).concat("998ec3f7f7f7f1a340","5e3c99b2abd2fdb863e66101","5e3c99b2abd2f7f7f7fdb863e66101","542788998ec3d8daebfee0b6f1a340b35806","542788998ec3d8daebf7f7f7fee0b6f1a340b35806","5427888073acb2abd2d8daebfee0b6fdb863e08214b35806","5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b35806","2d004b5427888073acb2abd2d8daebfee0b6fdb863e08214b358067f3b08","2d004b5427888073acb2abd2d8daebf7f7f7fee0b6fdb863e08214b358067f3b08").map(k5);
Eu(FXK);var ugY=Array(3).concat("ef8a62f7f7f767a9cf","ca0020f4a58292c5de0571b0","ca0020f4a582f7f7f792c5de0571b0","b2182bef8a62fddbc7d1e5f067a9cf2166ac","b2182bef8a62fddbc7f7f7f7d1e5f067a9cf2166ac","b2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac","b2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac","67001fb2182bd6604df4a582fddbc7d1e5f092c5de4393c32166ac053061","67001fb2182bd6604df4a582fddbc7f7f7f7d1e5f092c5de4393c32166ac053061").map(k5);Eu(ugY);var zJM=Array(3).concat("ef8a62ffffff999999","ca0020f4a582bababa404040",
"ca0020f4a582ffffffbababa404040","b2182bef8a62fddbc7e0e0e09999994d4d4d","b2182bef8a62fddbc7ffffffe0e0e09999994d4d4d","b2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d","b2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d","67001fb2182bd6604df4a582fddbc7e0e0e0bababa8787874d4d4d1a1a1a","67001fb2182bd6604df4a582fddbc7ffffffe0e0e0bababa8787874d4d4d1a1a1a").map(k5);Eu(zJM);var TbK=Array(3).concat("fc8d59ffffbf91bfdb","d7191cfdae61abd9e92c7bb6","d7191cfdae61ffffbfabd9e92c7bb6","d73027fc8d59fee090e0f3f891bfdb4575b4",
"d73027fc8d59fee090ffffbfe0f3f891bfdb4575b4","d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4","d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4","a50026d73027f46d43fdae61fee090e0f3f8abd9e974add14575b4313695","a50026d73027f46d43fdae61fee090ffffbfe0f3f8abd9e974add14575b4313695").map(k5);Eu(TbK);var cjj=Array(3).concat("fc8d59ffffbf91cf60","d7191cfdae61a6d96a1a9641","d7191cfdae61ffffbfa6d96a1a9641","d73027fc8d59fee08bd9ef8b91cf601a9850","d73027fc8d59fee08bffffbfd9ef8b91cf601a9850","d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850",
"d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850","a50026d73027f46d43fdae61fee08bd9ef8ba6d96a66bd631a9850006837","a50026d73027f46d43fdae61fee08bffffbfd9ef8ba6d96a66bd631a9850006837").map(k5);Eu(cjj);var eJR=Array(3).concat("fc8d59ffffbf99d594","d7191cfdae61abdda42b83ba","d7191cfdae61ffffbfabdda42b83ba","d53e4ffc8d59fee08be6f59899d5943288bd","d53e4ffc8d59fee08bffffbfe6f59899d5943288bd","d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd","d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd",
"9e0142d53e4ff46d43fdae61fee08be6f598abdda466c2a53288bd5e4fa2","9e0142d53e4ff46d43fdae61fee08bffffbfe6f598abdda466c2a53288bd5e4fa2").map(k5);Eu(eJR);var rjY=Array(3).concat("e5f5f999d8c92ca25f","edf8fbb2e2e266c2a4238b45","edf8fbb2e2e266c2a42ca25f006d2c","edf8fbccece699d8c966c2a42ca25f006d2c","edf8fbccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45005824","f7fcfde5f5f9ccece699d8c966c2a441ae76238b45006d2c00441b").map(k5);Eu(rjY);var ibB=Array(3).concat("e0ecf49ebcda8856a7",
"edf8fbb3cde38c96c688419d","edf8fbb3cde38c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68856a7810f7c","edf8fbbfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d6e016b","f7fcfde0ecf4bfd3e69ebcda8c96c68c6bb188419d810f7c4d004b").map(k5);Eu(ibB);var wlY=Array(3).concat("e0f3dba8ddb543a2ca","f0f9e8bae4bc7bccc42b8cbe","f0f9e8bae4bc7bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc443a2ca0868ac","f0f9e8ccebc5a8ddb57bccc44eb3d32b8cbe08589e","f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe08589e",
"f7fcf0e0f3dbccebc5a8ddb57bccc44eb3d32b8cbe0868ac084081").map(k5);Eu(wlY);var n6R=Array(3).concat("fee8c8fdbb84e34a33","fef0d9fdcc8afc8d59d7301f","fef0d9fdcc8afc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59e34a33b30000","fef0d9fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301f990000","fff7ecfee8c8fdd49efdbb84fc8d59ef6548d7301fb300007f0000").map(k5);Eu(n6R);var PLy=Array(3).concat("ece2f0a6bddb1c9099","f6eff7bdc9e167a9cf02818a","f6eff7bdc9e167a9cf1c9099016c59","f6eff7d0d1e6a6bddb67a9cf1c9099016c59",
"f6eff7d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016450","fff7fbece2f0d0d1e6a6bddb67a9cf3690c002818a016c59014636").map(k5);Eu(PLy);var LXy=Array(3).concat("ece7f2a6bddb2b8cbe","f1eef6bdc9e174a9cf0570b0","f1eef6bdc9e174a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf2b8cbe045a8d","f1eef6d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0034e7b","fff7fbece7f2d0d1e6a6bddb74a9cf3690c00570b0045a8d023858").map(k5);Eu(LXy);var Dij=Array(3).concat("e7e1efc994c7dd1c77",
"f1eef6d7b5d8df65b0ce1256","f1eef6d7b5d8df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0dd1c77980043","f1eef6d4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125691003f","f7f4f9e7e1efd4b9dac994c7df65b0e7298ace125698004367001f").map(k5);Eu(Dij);var plK=Array(3).concat("fde0ddfa9fb5c51b8a","feebe2fbb4b9f768a1ae017e","feebe2fbb4b9f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1c51b8a7a0177","feebe2fcc5c0fa9fb5f768a1dd3497ae017e7a0177","fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a0177",
"fff7f3fde0ddfcc5c0fa9fb5f768a1dd3497ae017e7a017749006a").map(k5);Eu(plK);var QNL=Array(3).concat("edf8b17fcdbb2c7fb8","ffffcca1dab441b6c4225ea8","ffffcca1dab441b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c42c7fb8253494","ffffccc7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea80c2c84","ffffd9edf8b1c7e9b47fcdbb41b6c41d91c0225ea8253494081d58").map(k5);Eu(QNL);var NbM=Array(3).concat("f7fcb9addd8e31a354","ffffccc2e69978c679238443","ffffccc2e69978c67931a354006837","ffffccd9f0a3addd8e78c67931a354006837",
"ffffccd9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443005a32","ffffe5f7fcb9d9f0a3addd8e78c67941ab5d238443006837004529").map(k5);Eu(NbM);var VGR=Array(3).concat("fff7bcfec44fd95f0e","ffffd4fed98efe9929cc4c02","ffffd4fed98efe9929d95f0e993404","ffffd4fee391fec44ffe9929d95f0e993404","ffffd4fee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c028c2d04","ffffe5fff7bcfee391fec44ffe9929ec7014cc4c02993404662506").map(k5);Eu(VGR);var jNY=Array(3).concat("ffeda0feb24cf03b20",
"ffffb2fecc5cfd8d3ce31a1c","ffffb2fecc5cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cf03b20bd0026","ffffb2fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cb10026","ffffccffeda0fed976feb24cfd8d3cfc4e2ae31a1cbd0026800026").map(k5);Eu(jNY);var lA8=Array(3).concat("deebf79ecae13182bd","eff3ffbdd7e76baed62171b5","eff3ffbdd7e76baed63182bd08519c","eff3ffc6dbef9ecae16baed63182bd08519c","eff3ffc6dbef9ecae16baed64292c62171b5084594","f7fbffdeebf7c6dbef9ecae16baed64292c62171b5084594",
"f7fbffdeebf7c6dbef9ecae16baed64292c62171b508519c08306b").map(k5);Eu(lA8);var XlH=Array(3).concat("e5f5e0a1d99b31a354","edf8e9bae4b374c476238b45","edf8e9bae4b374c47631a354006d2c","edf8e9c7e9c0a1d99b74c47631a354006d2c","edf8e9c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45005a32","f7fcf5e5f5e0c7e9c0a1d99b74c47641ab5d238b45006d2c00441b").map(k5);Eu(XlH);var $ij=Array(3).concat("f0f0f0bdbdbd636363","f7f7f7cccccc969696525252","f7f7f7cccccc969696636363252525","f7f7f7d9d9d9bdbdbd969696636363252525",
"f7f7f7d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525","fffffff0f0f0d9d9d9bdbdbd969696737373525252252525000000").map(k5);Eu($ij);var RJL=Array(3).concat("efedf5bcbddc756bb1","f2f0f7cbc9e29e9ac86a51a3","f2f0f7cbc9e29e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8756bb154278f","f2f0f7dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a34a1486","fcfbfdefedf5dadaebbcbddc9e9ac8807dba6a51a354278f3f007d").map(k5);Eu(RJL);var bbR=Array(3).concat("fee0d2fc9272de2d26",
"fee5d9fcae91fb6a4acb181d","fee5d9fcae91fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4ade2d26a50f15","fee5d9fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181d99000d","fff5f0fee0d2fcbba1fc9272fb6a4aef3b2ccb181da50f1567000d").map(k5);Eu(bbR);var YUY=Array(3).concat("fee6cefdae6be6550d","feeddefdbe85fd8d3cd94701","feeddefdbe85fd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3ce6550da63603","feeddefdd0a2fdae6bfd8d3cf16913d948018c2d04","fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d948018c2d04",
"fff5ebfee6cefdd0a2fdae6bfd8d3cf16913d94801a636037f2704").map(k5);Eu(YUY);RtO(Pm(300,.5,0),Pm(-240,.5,1));RtO(Pm(-100,.75,.35),Pm(80,1.5,.8));RtO(Pm(260,.75,.35),Pm(80,1.5,.8));Pm();eX();X4s(k5("44015444025645045745055946075a46085c460a5d460b5e470d60470e6147106347116447136548146748166848176948186a481a6c481b6d481c6e481d6f481f70482071482173482374482475482576482677482878482979472a7a472c7a472d7b472e7c472f7d46307e46327e46337f463480453581453781453882443983443a83443b84433d84433e85423f854240864241864142874144874045884046883f47883f48893e49893e4a893e4c8a3d4d8a3d4e8a3c4f8a3c508b3b518b3b528b3a538b3a548c39558c39568c38588c38598c375a8c375b8d365c8d365d8d355e8d355f8d34608d34618d33628d33638d32648e32658e31668e31678e31688e30698e306a8e2f6b8e2f6c8e2e6d8e2e6e8e2e6f8e2d708e2d718e2c718e2c728e2c738e2b748e2b758e2a768e2a778e2a788e29798e297a8e297b8e287c8e287d8e277e8e277f8e27808e26818e26828e26828e25838e25848e25858e24868e24878e23888e23898e238a8d228b8d228c8d228d8d218e8d218f8d21908d21918c20928c20928c20938c1f948c1f958b1f968b1f978b1f988b1f998a1f9a8a1e9b8a1e9c891e9d891f9e891f9f881fa0881fa1881fa1871fa28720a38620a48621a58521a68522a78522a88423a98324aa8325ab8225ac8226ad8127ad8128ae8029af7f2ab07f2cb17e2db27d2eb37c2fb47c31b57b32b67a34b67935b77937b87838b9773aba763bbb753dbc743fbc7340bd7242be7144bf7046c06f48c16e4ac16d4cc26c4ec36b50c46a52c56954c56856c66758c7655ac8645cc8635ec96260ca6063cb5f65cb5e67cc5c69cd5b6ccd5a6ece5870cf5773d05675d05477d1537ad1517cd2507fd34e81d34d84d44b86d54989d5488bd6468ed64590d74393d74195d84098d83e9bd93c9dd93ba0da39a2da37a5db36a8db34aadc32addc30b0dd2fb2dd2db5de2bb8de29bade28bddf26c0df25c2df23c5e021c8e020cae11fcde11dd0e11cd2e21bd5e21ad8e219dae319dde318dfe318e2e418e5e419e7e419eae51aece51befe51cf1e51df4e61ef6e620f8e621fbe723fde725"));
X4s(k5("00000401000501010601010802010902020b02020d03030f03031204041405041606051806051a07061c08071e0907200a08220b09240c09260d0a290e0b2b100b2d110c2f120d31130d34140e36150e38160f3b180f3d19103f1a10421c10441d11471e114920114b21114e22115024125325125527125829115a2a115c2c115f2d11612f116331116533106734106936106b38106c390f6e3b0f703d0f713f0f72400f74420f75440f764510774710784910784a10794c117a4e117b4f127b51127c52137c54137d56147d57157e59157e5a167e5c167f5d177f5f187f601880621980641a80651a80671b80681c816a1c816b1d816d1d816e1e81701f81721f817320817521817621817822817922827b23827c23827e24828025828125818326818426818627818827818928818b29818c29818e2a81902a81912b81932b80942c80962c80982d80992d809b2e7f9c2e7f9e2f7fa02f7fa1307ea3307ea5317ea6317da8327daa337dab337cad347cae347bb0357bb2357bb3367ab5367ab73779b83779ba3878bc3978bd3977bf3a77c03a76c23b75c43c75c53c74c73d73c83e73ca3e72cc3f71cd4071cf4070d0416fd2426fd3436ed5446dd6456cd8456cd9466bdb476adc4869de4968df4a68e04c67e24d66e34e65e44f64e55064e75263e85362e95462ea5661eb5760ec5860ed5a5fee5b5eef5d5ef05f5ef1605df2625df2645cf3655cf4675cf4695cf56b5cf66c5cf66e5cf7705cf7725cf8745cf8765cf9785df9795df97b5dfa7d5efa7f5efa815ffb835ffb8560fb8761fc8961fc8a62fc8c63fc8e64fc9065fd9266fd9467fd9668fd9869fd9a6afd9b6bfe9d6cfe9f6dfea16efea36ffea571fea772fea973feaa74feac76feae77feb078feb27afeb47bfeb67cfeb77efeb97ffebb81febd82febf84fec185fec287fec488fec68afec88cfeca8dfecc8ffecd90fecf92fed194fed395fed597fed799fed89afdda9cfddc9efddea0fde0a1fde2a3fde3a5fde5a7fde7a9fde9aafdebacfcecaefceeb0fcf0b2fcf2b4fcf4b6fcf6b8fcf7b9fcf9bbfcfbbdfcfdbf"));
X4s(k5("00000401000501010601010802010a02020c02020e03021004031204031405041706041907051b08051d09061f0a07220b07240c08260d08290e092b10092d110a30120a32140b34150b37160b39180c3c190c3e1b0c411c0c431e0c451f0c48210c4a230c4c240c4f260c51280b53290b552b0b572d0b592f0a5b310a5c320a5e340a5f3609613809623909633b09643d09653e0966400a67420a68440a68450a69470b6a490b6a4a0c6b4c0c6b4d0d6c4f0d6c510e6c520e6d540f6d550f6d57106e59106e5a116e5c126e5d126e5f136e61136e62146e64156e65156e67166e69166e6a176e6c186e6d186e6f196e71196e721a6e741a6e751b6e771c6d781c6d7a1d6d7c1d6d7d1e6d7f1e6c801f6c82206c84206b85216b87216b88226a8a226a8c23698d23698f24699025689225689326679526679727669827669a28659b29649d29649f2a63a02a63a22b62a32c61a52c60a62d60a82e5fa92e5eab2f5ead305dae305cb0315bb1325ab3325ab43359b63458b73557b93556ba3655bc3754bd3853bf3952c03a51c13a50c33b4fc43c4ec63d4dc73e4cc83f4bca404acb4149cc4248ce4347cf4446d04545d24644d34743d44842d54a41d74b3fd84c3ed94d3dda4e3cdb503bdd513ade5238df5337e05536e15635e25734e35933e45a31e55c30e65d2fe75e2ee8602de9612bea632aeb6429eb6628ec6726ed6925ee6a24ef6c23ef6e21f06f20f1711ff1731df2741cf3761bf37819f47918f57b17f57d15f67e14f68013f78212f78410f8850ff8870ef8890cf98b0bf98c0af98e09fa9008fa9207fa9407fb9606fb9706fb9906fb9b06fb9d07fc9f07fca108fca309fca50afca60cfca80dfcaa0ffcac11fcae12fcb014fcb216fcb418fbb61afbb81dfbba1ffbbc21fbbe23fac026fac228fac42afac62df9c72ff9c932f9cb35f8cd37f8cf3af7d13df7d340f6d543f6d746f5d949f5db4cf4dd4ff4df53f4e156f3e35af3e55df2e661f2e865f2ea69f1ec6df1ed71f1ef75f1f179f2f27df2f482f3f586f3f68af4f88ef5f992f6fa96f8fb9af9fc9dfafda1fcffa4"));
X4s(k5("0d088710078813078916078a19068c1b068d1d068e20068f2206902406912605912805922a05932c05942e05952f059631059733059735049837049938049a3a049a3c049b3e049c3f049c41049d43039e44039e46039f48039f4903a04b03a14c02a14e02a25002a25102a35302a35502a45601a45801a45901a55b01a55c01a65e01a66001a66100a76300a76400a76600a76700a86900a86a00a86c00a86e00a86f00a87100a87201a87401a87501a87701a87801a87a02a87b02a87d03a87e03a88004a88104a78305a78405a78606a68707a68808a68a09a58b0aa58d0ba58e0ca48f0da4910ea3920fa39410a29511a19613a19814a099159f9a169f9c179e9d189d9e199da01a9ca11b9ba21d9aa31e9aa51f99a62098a72197a82296aa2395ab2494ac2694ad2793ae2892b02991b12a90b22b8fb32c8eb42e8db52f8cb6308bb7318ab83289ba3388bb3488bc3587bd3786be3885bf3984c03a83c13b82c23c81c33d80c43e7fc5407ec6417dc7427cc8437bc9447aca457acb4679cc4778cc4977cd4a76ce4b75cf4c74d04d73d14e72d24f71d35171d45270d5536fd5546ed6556dd7566cd8576bd9586ada5a6ada5b69db5c68dc5d67dd5e66de5f65de6164df6263e06363e16462e26561e26660e3685fe4695ee56a5de56b5de66c5ce76e5be76f5ae87059e97158e97257ea7457eb7556eb7655ec7754ed7953ed7a52ee7b51ef7c51ef7e50f07f4ff0804ef1814df1834cf2844bf3854bf3874af48849f48948f58b47f58c46f68d45f68f44f79044f79143f79342f89441f89540f9973ff9983ef99a3efa9b3dfa9c3cfa9e3bfb9f3afba139fba238fca338fca537fca636fca835fca934fdab33fdac33fdae32fdaf31fdb130fdb22ffdb42ffdb52efeb72dfeb82cfeba2cfebb2bfebd2afebe2afec029fdc229fdc328fdc527fdc627fdc827fdca26fdcb26fccd25fcce25fcd025fcd225fbd324fbd524fbd724fad824fada24f9dc24f9dd25f8df25f8e125f7e225f7e425f6e626f6e826f5e926f5eb27f4ed27f3ee27f3f027f2f227f1f426f1f525f0f724f0f921"));
NOu.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(G,W){G=+G;W=+W;switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(G,W):this._context.moveTo(G,W);break;case 1:this._point=2;default:this._context.lineTo(G,W)}}};
(function(G){function W(H){return new VVq(G(H))}
W._curve=G;return W})(function(G){return new NOu(G)});
VVq.prototype={lineStart:function(){this._curve.lineStart()},
lineEnd:function(){this._curve.lineEnd()},
point:function(G,W){this._curve.point(W*Math.sin(G),W*-Math.cos(G))}};
ls9.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:jiI(this,this._t0,lN8(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath();this._line=1-this._line},
point:function(G,W){var H=NaN;G=+G;W=+W;if(G!==this._x1||W!==this._y1){switch(this._point){case 0:this._point=1;this._line?this._context.lineTo(G,W):this._context.moveTo(G,W);break;case 1:this._point=2;break;case 2:this._point=3;jiI(this,lN8(this,H=j$8(this,G,W)),H);break;default:jiI(this,this._t0,H=j$8(this,G,W))}this._x0=this._x1;this._x1=G;this._y0=this._y1;this._y1=W;this._t0=H}}};
(function(G){this._context=new X3P(G)}.prototype=Object.create(ls9.prototype)).point=function(G,W){ls9.prototype.point.call(this,W,G)};
X3P.prototype={moveTo:function(G,W){this._context.moveTo(W,G)},
closePath:function(){this._context.closePath()},
lineTo:function(G,W){this._context.lineTo(W,G)},
bezierCurveTo:function(G,W,H,kz,TI,L9){this._context.bezierCurveTo(W,G,kz,H,L9,TI)}};
M4.prototype={constructor:M4,scale:function(G){return G===1?this:new M4(this.k*G,this.x,this.y)},
translate:function(G,W){return G===0&W===0?this:new M4(this.k,this.x+this.k*G,this.y+this.k*W)},
apply:function(G){return[G[0]*this.k+this.x,G[1]*this.k+this.y]},
invert:function(G){return[(G[0]-this.x)/this.k,(G[1]-this.y)/this.k]},
toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};
new M4(1,0,0);pq9=D8;ha.svg=ha.svg;ha.xhtml=ha.xhtml;ha.xlink=ha.xlink;ha.xml=ha.xml;ha.xmlns=ha.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 F40="hammer_"+(Math.random()*1E6|0),uUq=function(){var I=document||document;if(!I[F40]){var C=function(){(function(y,k,F,z){function c(p9,SI,xz){return setTimeout(Q(p9,xz),SI)}
function r(p9,SI,xz){return Array.isArray(p9)?(w(p9,xz[SI],xz),!0):!1}
function w(p9,SI,xz){var L5;if(p9)if(p9.forEach)p9.forEach(SI,xz);else if(p9.length!==z){var yY=0;for(L5=p9.length;yY<L5;yY++)SI.call(xz,p9[yY],yY,p9)}else for(yY in p9)p9.hasOwnProperty(yY)&&SI.call(xz,p9[yY],yY,p9)}
function L(p9,SI,xz){for(var L5=Object.keys(SI),yY=0,b7=L5.length;yY<b7;yY++)if(!xz||xz&&p9[L5[yY]]===z)p9[L5[yY]]=SI[L5[yY]];return p9}
function D(p9,SI){return L(p9,SI,!0)}
function p(p9,SI,xz){SI=SI.prototype;var L5=p9.prototype=Object.create(SI);L5.constructor=p9;L5._super=SI;xz&&L(L5,xz)}
function Q(p9,SI){return function(){return p9.apply(SI,arguments)}}
function X(p9,SI){return typeof p9=="function"?p9.apply(SI?SI[0]||z:z,SI):p9}
function b(p9,SI,xz){w(A(SI),function(L5){p9.addEventListener(L5,xz,!1)})}
function S(p9,SI,xz){w(A(SI),function(L5){p9.removeEventListener(L5,xz,!1)})}
function A(p9){return p9.trim().split(/\s+/g)}
function x(p9,SI,xz){if(p9.indexOf&&!xz)return p9.indexOf(SI);for(var L5=0,yY=p9.length;L5<yY;L5++)if(xz&&p9[L5][xz]==SI||!xz&&p9[L5]===SI)return L5;return-1}
function B(p9,SI,xz){for(var L5=[],yY=[],b7=0,ry=p9.length;b7<ry;b7++){var p5=SI?p9[b7][SI]:p9[b7];x(yY,p5)<0&&L5.push(p9[b7]);yY[b7]=p5}xz&&(L5=SI?L5.sort(function(Pm,L8){return Pm[SI]>L8[SI]}):L5.sort());
return L5}
function t(p9,SI){for(var xz,L5=SI[0].toUpperCase()+SI.slice(1),yY=0,b7=i8.length;yY<b7;yY++)if(xz=(xz=i8[yY])?xz+L5:SI,xz in p9)return xz;return z}
function U(p9,SI){var xz=this;this.manager=p9;this.callback=SI;this.element=p9.element;this.target=p9.options.inputTarget;this.domHandler=function(L5){X(p9.options.enable,[p9])&&xz.handler(L5)};
this.evEl&&b(this.element,this.evEl,this.domHandler);this.evTarget&&b(this.target,this.evTarget,this.domHandler);this.evWin&&b(y,this.evWin,this.domHandler)}
function yW(p9){var SI;qL?SI=mY:kB?SI=Bs:D8?SI=n5:SI=vs;return new SI(p9,a)}
function a(p9,SI,xz){var L5=xz.pointers.length,yY=xz.changedPointers.length,b7=SI&1&&L5-yY===0;xz.isFirst=!!b7;xz.isFinal=!!(SI&12&&L5-yY===0);b7&&(p9.session={});xz.eventType=SI;SI=p9.session;L5=xz.pointers;yY=L5.length;SI.firstInput||(SI.firstInput=cs(xz));yY>1&&!SI.firstMultiple?SI.firstMultiple=cs(xz):yY===1&&(SI.firstMultiple=!1);b7=SI.firstInput;var ry=(yY=SI.firstMultiple)?yY.center:b7.center,p5=xz.center=XO(L5);xz.timeStamp=ZS();xz.deltaTime=xz.timeStamp-b7.timeStamp;xz.angle=hX(ry,p5);xz.distance=
$z(ry,p5);b7=xz.center;ry=SI.offsetDelta||{};p5=SI.prevDelta||{};var Pm=SI.prevInput||{};if(xz.eventType===1||Pm.eventType===4)p5=SI.prevDelta={x:Pm.deltaX||0,y:Pm.deltaY||0},ry=SI.offsetDelta={x:b7.x,y:b7.y};xz.deltaX=p5.x+(b7.x-ry.x);xz.deltaY=p5.y+(b7.y-ry.y);xz.offsetDirection=Rm(xz.deltaX,xz.deltaY);yY?(b7=yY.pointers,b7=$z(L5[0],L5[1],eX)/$z(b7[0],b7[1],eX)):b7=1;xz.scale=b7;yY?(yY=yY.pointers,L5=hX(L5[1],L5[0],eX)-hX(yY[1],yY[0],eX)):L5=0;xz.rotation=L5;ry=SI.lastInterval||xz;L5=xz.timeStamp-
ry.timeStamp;xz.eventType!=8&&(L5>25||ry.velocity===z)?(b7=ry.deltaX-xz.deltaX,ry=ry.deltaY-xz.deltaY,p5=b7/L5||0,Pm=ry/L5||0,L5=p5,yY=Pm,p5=K5(p5)>K5(Pm)?p5:Pm,b7=Rm(b7,ry),SI.lastInterval=xz):(p5=ry.velocity,L5=ry.velocityX,yY=ry.velocityY,b7=ry.direction);xz.velocity=p5;xz.velocityX=L5;xz.velocityY=yY;xz.direction=b7;SI=p9.element;a:{for(L5=xz.srcEvent.target;L5;){if(L5==SI){L5=!0;break a}L5=L5.parentNode}L5=!1}L5&&(SI=xz.srcEvent.target);xz.target=SI;p9.emit("hammer.input",xz);p9.recognize(xz);
p9.session.prevInput=xz}
function cs(p9){for(var SI=[],xz=0;xz<p9.pointers.length;xz++)SI[xz]={clientX:bj(p9.pointers[xz].clientX),clientY:bj(p9.pointers[xz].clientY)};return{timeStamp:ZS(),pointers:SI,center:XO(SI),deltaX:p9.deltaX,deltaY:p9.deltaY}}
function XO(p9){var SI=p9.length;if(SI===1)return{x:bj(p9[0].clientX),y:bj(p9[0].clientY)};for(var xz=0,L5=0,yY=0;yY<SI;yY++)xz+=p9[yY].clientX,L5+=p9[yY].clientY;return{x:bj(xz/SI),y:bj(L5/SI)}}
function Rm(p9,SI){return p9===SI?1:K5(p9)>=K5(SI)?p9>0?2:4:SI>0?8:16}
function $z(p9,SI,xz){xz||(xz=K1);var L5=SI[xz[0]]-p9[xz[0]];p9=SI[xz[1]]-p9[xz[1]];return Math.sqrt(L5*L5+p9*p9)}
function hX(p9,SI,xz){xz||(xz=K1);return Math.atan2(SI[xz[1]]-p9[xz[1]],SI[xz[0]]-p9[xz[0]])*180/Math.PI}
function vs(){this.evEl="mousedown";this.evWin="mousemove mouseup";this.allow=!0;this.pressed=!1;U.apply(this,arguments)}
function mY(){this.evEl=c5;this.evWin=xV;U.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}
function Bs(){this.evTarget="touchstart touchmove touchend touchcancel";this.targetIds={};U.apply(this,arguments)}
function n5(){U.apply(this,arguments);var p9=Q(this.handler,this);this.touch=new Bs(this.manager,p9);this.mouse=new vs(this.manager,p9)}
function sH(p9,SI){this.manager=p9;this.set(SI)}
function Zt(p9){if(p9.indexOf("none")>-1)return"none";var SI=p9.indexOf("pan-x")>-1,xz=p9.indexOf("pan-y")>-1;return SI&&xz?"pan-x pan-y":SI||xz?SI?"pan-x":"pan-y":p9.indexOf("manipulation")>-1?"manipulation":"auto"}
function Qd(p9){this.id=RJ++;this.manager=null;this.options=D(p9||{},this.defaults);p9=this.options.enable;this.options.enable=p9===z?!0:p9;this.state=1;this.simultaneous={};this.requireFail=[]}
function OF(p9){return p9==16?"down":p9==8?"up":p9==2?"left":p9==4?"right":""}
function Rw(p9,SI){return(SI=SI.manager)?SI.get(p9):p9}
function ku(){Qd.apply(this,arguments)}
function xK(){ku.apply(this,arguments);this.pY=this.pX=null}
function yf(){ku.apply(this,arguments)}
function uK(){Qd.apply(this,arguments);this._input=this._timer=null}
function oL(){ku.apply(this,arguments)}
function Uw(){ku.apply(this,arguments)}
function TR(){Qd.apply(this,arguments);this.pCenter=this.pTime=!1;this._input=this._timer=null;this.count=0}
function G0(p9,SI){SI=SI||{};var xz=SI.recognizers;SI.recognizers=xz===z?G0.defaults.preset:xz;return new hc(p9,SI)}
function hc(p9,SI){SI=SI||{};this.options=D(SI,G0.defaults);this.options.inputTarget=this.options.inputTarget||p9;this.handlers={};this.session={};this.recognizers=[];this.element=p9;this.input=yW(this);this.touchAction=new sH(this,this.options.touchAction);wS(this,!0);w(SI.recognizers,function(xz){var L5=this.add(new xz[0](xz[1]));xz[2]&&L5.recognizeWith(xz[2]);xz[3]&&L5.requireFailure(xz[2])},this)}
function wS(p9,SI){var xz=p9.element;w(p9.options.cssProps,function(L5,yY){xz.style[t(xz.style,yY)]=SI?L5:""})}
function Ws(p9,SI){var xz=k.createEvent("Event");xz.initEvent(p9,!0,!0);xz.gesture=SI;SI.target.dispatchEvent(xz)}
var i8=" webkit moz MS ms o".split(" "),l8=k.createElement("div"),bj=Math.round,K5=Math.abs,ZS=Date.now,RJ=1,yk=/mobile|tablet|ip(ad|hone|od)|android/i,D8="ontouchstart"in y,qL=t(y,"PointerEvent")!==z,kB=D8&&yk.test(navigator.userAgent),K1=["x","y"],eX=["clientX","clientY"];U.prototype={handler:function(){},
destroy:function(){this.evEl&&S(this.element,this.evEl,this.domHandler);this.evTarget&&S(this.target,this.evTarget,this.domHandler);this.evWin&&S(y,this.evWin,this.domHandler)}};
var Tu={mousedown:1,mousemove:2,mouseup:4};p(vs,U,{handler:function(p9){var SI=Tu[p9.type];SI&1&&p9.button===0&&(this.pressed=!0);SI&2&&p9.which!==1&&(SI=4);this.pressed&&this.allow&&(SI&4&&(this.pressed=!1),this.callback(this.manager,SI,{pointers:[p9],changedPointers:[p9],pointerType:"mouse",srcEvent:p9}))}});
var kb={pointerdown:1,pointermove:2,pointerup:4,pointercancel:8,pointerout:8},wX={2:"touch",3:"pen",4:"mouse",5:"kinect"},c5="pointerdown",xV="pointermove pointerup pointercancel";y.MSPointerEvent&&(c5="MSPointerDown",xV="MSPointerMove MSPointerUp MSPointerCancel");p(mY,U,{handler:function(p9){var SI=this.store,xz=!1,L5=p9.type.toLowerCase().replace("ms","");L5=kb[L5];var yY=wX[p9.pointerType]||p9.pointerType;L5&1&&(p9.button===0||yY=="touch")?SI.push(p9):L5&12&&(xz=!0);var b7=x(SI,p9.pointerId,"pointerId");
b7<0||(SI[b7]=p9,this.callback(this.manager,L5,{pointers:SI,changedPointers:[p9],pointerType:yY,srcEvent:p9}),xz&&SI.splice(b7,1))}});
var kV={touchstart:1,touchmove:2,touchend:4,touchcancel:8};p(Bs,U,{handler:function(p9){var SI=kV[p9.type];var xz=Array.prototype.slice.call(p9.touches,0);var L5=this.targetIds;if(SI&3&&xz.length===1)L5[xz[0].identifier]=!0,L5=[xz,xz];else{var yY,b7=Array.prototype.slice.call(p9.targetTouches,0),ry=Array.prototype.slice.call(p9.changedTouches,0),p5=[];if(SI===1)for(xz=0,yY=b7.length;xz<yY;xz++)L5[b7[xz].identifier]=!0;xz=0;for(yY=ry.length;xz<yY;xz++)L5[ry[xz].identifier]&&p5.push(ry[xz]),SI&12&&
delete L5[ry[xz].identifier];L5=p5.length?[B(b7.concat(p5),"identifier",!0),p5]:void 0}L5&&this.callback(this.manager,SI,{pointers:L5[0],changedPointers:L5[1],pointerType:"touch",srcEvent:p9})}});
p(n5,U,{handler:function(p9,SI,xz){var L5=xz.pointerType=="mouse";if(xz.pointerType=="touch")this.mouse.allow=!1;else if(L5&&!this.mouse.allow)return;SI&12&&(this.mouse.allow=!0);this.callback(p9,SI,xz)},
destroy:function(){this.touch.destroy();this.mouse.destroy()}});
var yX=t(l8.style,"touchAction"),M$=yX!==z;sH.prototype={set:function(p9){p9=="compute"&&(p9=this.compute());M$&&(this.manager.element.style[yX]=p9);this.actions=p9.toLowerCase().trim()},
update:function(){this.set(this.manager.options.touchAction)},
compute:function(){var p9=[];w(this.manager.recognizers,function(SI){X(SI.options.enable,[SI])&&(p9=p9.concat(SI.getTouchAction()))});
return Zt(p9.join(" "))},
preventDefaults:function(p9){if(!M$){var SI=p9.srcEvent;p9=p9.offsetDirection;if(this.manager.session.prevented)SI.preventDefault();else{var xz=this.actions,L5=xz.indexOf("none")>-1,yY=xz.indexOf("pan-y")>-1;xz=xz.indexOf("pan-x")>-1;if(L5||yY&&xz||yY&&p9&6||xz&&p9&24)return this.preventSrc(SI)}}},
preventSrc:function(p9){this.manager.session.prevented=!0;p9.preventDefault()}};
Qd.prototype={defaults:{},set:function(p9){L(this.options,p9);this.manager&&this.manager.touchAction.update();return this},
recognizeWith:function(p9){if(r(p9,"recognizeWith",this))return this;var SI=this.simultaneous;p9=Rw(p9,this);SI[p9.id]||(SI[p9.id]=p9,p9.recognizeWith(this));return this},
dropRecognizeWith:function(p9){if(r(p9,"dropRecognizeWith",this))return this;p9=Rw(p9,this);delete this.simultaneous[p9.id];return this},
requireFailure:function(p9){if(r(p9,"requireFailure",this))return this;var SI=this.requireFail;p9=Rw(p9,this);x(SI,p9)===-1&&(SI.push(p9),p9.requireFailure(this));return this},
dropRequireFailure:function(p9){if(r(p9,"dropRequireFailure",this))return this;p9=Rw(p9,this);p9=x(this.requireFail,p9);p9>-1&&this.requireFail.splice(p9,1);return this},
hasRequireFailures:function(){return this.requireFail.length>0},
canRecognizeWith:function(p9){return!!this.simultaneous[p9.id]},
emit:function(p9){function SI(yY){xz.manager.emit(xz.options.event+(yY?L5&16?"cancel":L5&8?"end":L5&4?"move":L5&2?"start":"":""),p9)}
var xz=this,L5=this.state;L5<8&&SI(!0);SI();L5>=8&&SI(!0)},
tryEmit:function(p9){if(this.canEmit())return this.emit(p9);this.state=32},
canEmit:function(){for(var p9=0;p9<this.requireFail.length;p9++)if(!(this.requireFail[p9].state&33))return!1;return!0},
recognize:function(p9){p9=L({},p9);X(this.options.enable,[this,p9])?(this.state&56&&(this.state=1),this.state=this.process(p9),this.state&30&&this.tryEmit(p9)):(this.reset(),this.state=32)},
process:function(){},
getTouchAction:function(){},
reset:function(){}};
p(ku,Qd,{defaults:{pointers:1},attrTest:function(p9){var SI=this.options.pointers;return SI===0||p9.pointers.length===SI},
process:function(p9){var SI=this.state,xz=p9.eventType,L5=SI&6;p9=this.attrTest(p9);return L5&&(xz&8||!p9)?SI|16:L5||p9?xz&4?SI|8:SI&2?SI|4:2:32}});
p(xK,ku,{defaults:{event:"pan",threshold:10,pointers:1,direction:30},getTouchAction:function(){var p9=this.options.direction;if(p9===30)return["none"];var SI=[];p9&6&&SI.push("pan-y");p9&24&&SI.push("pan-x");return SI},
directionTest:function(p9){var SI=this.options,xz=!0,L5=p9.distance,yY=p9.direction,b7=p9.deltaX,ry=p9.deltaY;yY&SI.direction||(SI.direction&6?(yY=b7===0?1:b7<0?2:4,xz=b7!=this.pX,L5=Math.abs(p9.deltaX)):(yY=ry===0?1:ry<0?8:16,xz=ry!=this.pY,L5=Math.abs(p9.deltaY)));p9.direction=yY;return xz&&L5>SI.threshold&&yY&SI.direction},
attrTest:function(p9){return ku.prototype.attrTest.call(this,p9)&&(this.state&2||!(this.state&2)&&this.directionTest(p9))},
emit:function(p9){this.pX=p9.deltaX;this.pY=p9.deltaY;var SI=OF(p9.direction);SI&&this.manager.emit(this.options.event+SI,p9);this._super.emit.call(this,p9)}});
p(yf,ku,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(p9){return this._super.attrTest.call(this,p9)&&(Math.abs(p9.scale-1)>this.options.threshold||this.state&2)},
emit:function(p9){this._super.emit.call(this,p9);p9.scale!==1&&this.manager.emit(this.options.event+(p9.scale<1?"in":"out"),p9)}});
p(uK,Qd,{defaults:{event:"press",pointers:1,time:500,threshold:5},getTouchAction:function(){return["auto"]},
process:function(p9){var SI=this.options,xz=p9.pointers.length===SI.pointers,L5=p9.distance<SI.threshold,yY=p9.deltaTime>SI.time;this._input=p9;if(!L5||!xz||p9.eventType&12&&!yY)this.reset();else if(p9.eventType&1)this.reset(),this._timer=c(function(){this.state=8;this.tryEmit()},SI.time,this);
else if(p9.eventType&4)return 8;return 32},
reset:function(){clearTimeout(this._timer)},
emit:function(p9){this.state===8&&(p9&&p9.eventType&4?this.manager.emit(this.options.event+"up",p9):(this._input.timeStamp=ZS(),this.manager.emit(this.options.event,this._input)))}});
p(oL,ku,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return["none"]},
attrTest:function(p9){return this._super.attrTest.call(this,p9)&&(Math.abs(p9.rotation)>this.options.threshold||this.state&2)}});
p(Uw,ku,{defaults:{event:"swipe",threshold:10,velocity:.65,direction:30,pointers:1},getTouchAction:function(){return xK.prototype.getTouchAction.call(this)},
attrTest:function(p9){var SI=this.options.direction;if(SI&30)var xz=p9.velocity;else SI&6?xz=p9.velocityX:SI&24&&(xz=p9.velocityY);return this._super.attrTest.call(this,p9)&&SI&p9.direction&&K5(xz)>this.options.velocity&&p9.eventType&4},
emit:function(p9){var SI=OF(p9.direction);SI&&this.manager.emit(this.options.event+SI,p9);this.manager.emit(this.options.event,p9)}});
p(TR,Qd,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:2,posThreshold:10},getTouchAction:function(){return["manipulation"]},
process:function(p9){var SI=this.options,xz=p9.pointers.length===SI.pointers,L5=p9.distance<SI.threshold,yY=p9.deltaTime<SI.time;this.reset();if(p9.eventType&1&&this.count===0)return this.failTimeout();if(L5&&yY&&xz){if(p9.eventType!=4)return this.failTimeout();xz=this.pTime?p9.timeStamp-this.pTime<SI.interval:!0;L5=!this.pCenter||$z(this.pCenter,p9.center)<SI.posThreshold;this.pTime=p9.timeStamp;this.pCenter=p9.center;L5&&xz?this.count+=1:this.count=1;this._input=p9;if(this.count%SI.taps===0)return this.hasRequireFailures()?
(this._timer=c(function(){this.state=8;this.tryEmit()},SI.interval,this),2):8}return 32},
failTimeout:function(){this._timer=c(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))}});
G0.VERSION="2.0.2";G0.defaults={domEvents:!1,touchAction:"compute",inputTarget:null,enable:!0,preset:[[oL,{enable:!1}],[yf,{enable:!1},["rotate"]],[Uw,{direction:6}],[xK,{direction:6},["swipe"]],[TR],[TR,{event:"doubletap",taps:2},["tap"]],[uK]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};hc.prototype={set:function(p9){L(this.options,p9);return this},
stop:function(p9){this.session.stopped=p9?2:1},
recognize:function(p9){var SI=this.session;if(!SI.stopped){this.touchAction.preventDefaults(p9);var xz=this.recognizers,L5=SI.curRecognizer;if(!L5||L5&&L5.state&8)L5=SI.curRecognizer=null;for(var yY=0,b7=xz.length;yY<b7;yY++){var ry=xz[yY];SI.stopped===2||L5&&ry!=L5&&!ry.canRecognizeWith(L5)?ry.reset():ry.recognize(p9);!L5&&ry.state&14&&(L5=SI.curRecognizer=ry)}}},
get:function(p9){if(p9 instanceof Qd)return p9;for(var SI=this.recognizers,xz=0;xz<SI.length;xz++)if(SI[xz].options.event==p9)return SI[xz];return null},
add:function(p9){if(r(p9,"add",this))return this;var SI=this.get(p9.options.event);SI&&this.remove(SI);this.recognizers.push(p9);p9.manager=this;this.touchAction.update();return p9},
remove:function(p9){if(r(p9,"remove",this))return this;var SI=this.recognizers;p9=this.get(p9);SI.splice(x(SI,p9),1);this.touchAction.update();return this},
on:function(p9,SI){var xz=this.handlers;w(A(p9),function(L5){xz[L5]=xz[L5]||[];xz[L5].push(SI)});
return this},
off:function(p9,SI){var xz=this.handlers;w(A(p9),function(L5){SI?xz[L5].splice(x(xz[L5],SI),1):delete xz[L5]});
return this},
emit:function(p9,SI){this.options.domEvents&&Ws(p9,SI);var xz=this.handlers[p9]&&this.handlers[p9].slice();if(xz&&xz.length){SI.type=p9;SI.preventDefault=function(){SI.srcEvent.preventDefault()};
p9=0;for(var L5=xz.length;p9<L5;p9++)xz[p9](SI)}},
destroy:function(){this.element&&wS(this,!1);this.handlers={};this.session={};this.input.destroy();this.element=null}};
L(G0,{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:hc,Input:U,TouchAction:sH,Recognizer:Qd,AttrRecognizer:ku,Tap:TR,Pan:xK,Swipe:Uw,Pinch:yf,Rotate:oL,Press:uK,on:b,off:S,each:w,merge:D,extend:L,inherit:p,bindFn:Q,prefixed:t});
y[F]=G0})(window,document,"Hammer");
return window.Hammer}.call({});
C.DOCUMENT=I;I[F40]=C}return I[F40]};/*

 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 zVq=function(I,C){if(I.length!==C.length)return!1;for(var y=0;y<I.length;++y)if(I[y]!==C[y])return!1;return!0};if(!window.polymerSkipLoadingFontRoboto)for(var Thc=_.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"]),cU0=Thc.next();!cU0.done;cU0=Thc.next()){var eVe=cU0.value,rU8=document.createElement("link");rU8.rel="stylesheet";rU8.href=eVe;document.head.appendChild(rU8)};var ZIs,EHO,Udm,xdO,BAI,qnX,Wet,ddY;ZIs={"U+0008":"backspace","U+0009":"tab","U+001B":"esc","U+0020":"space","U+007F":"del"};EHO={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:"*"};Udm={shift:"shiftKey",ctrl:"ctrlKey",alt:"altKey",meta:"metaKey"};xdO=/[a-z0-9*]/;BAI=/U\+/;qnX=/^arrow/;Wet=/^space(bar)?/;ddY=/^escape$/;_.Ds={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(I,C){this._imperativeKeyBindings[I]=C;this._prepKeyBindings();this._resetKeyEventListeners()},
removeOwnKeyBindings:function(){this._imperativeKeyBindings={};this._prepKeyBindings();this._resetKeyEventListeners()},
keyboardEventMatchesKeys:function(I,C){C=ttF(C);for(var y=0;y<C.length;++y)if(hFW(C[y],I))return!0;return!1},
_collectKeyBindings:function(){var I=this.behaviors.map(function(C){return C.keyBindings});
I.indexOf(this.keyBindings)===-1&&I.push(this.keyBindings);return I},
_prepKeyBindings:function(){this._keyBindings={};this._collectKeyBindings().forEach(function(y){for(var k in y)this._addKeyBinding(k,y[k])},this);
for(var I in this._imperativeKeyBindings)this._addKeyBinding(I,this._imperativeKeyBindings[I]);for(var C in this._keyBindings)this._keyBindings[C].sort(function(y,k){y=y[0].hasModifiers;return y===k[0].hasModifiers?0:y?-1:1})},
_addKeyBinding:function(I,C){ttF(I).forEach(function(y){this._keyBindings[y.event]=this._keyBindings[y.event]||[];this._keyBindings[y.event].push([y,C])},this)},
_resetKeyEventListeners:function(){this._unlistenKeyEventListeners();this.isAttached&&this._listenKeyEventListeners()},
_listenKeyEventListeners:function(){this.keyEventTarget&&this._keyBindings&&Object.keys(this._keyBindings).forEach(function(I){var C=this._onKeyBindingEvent.bind(this,this._keyBindings[I]);this._boundKeyHandlers.push([this.keyEventTarget,I,C]);this.keyEventTarget.addEventListener(I,C)},this)},
_unlistenKeyEventListeners:function(){for(var I,C,y;this._boundKeyHandlers.length;)I=this._boundKeyHandlers.pop(),C=I[0],y=I[1],I=I[2],C.removeEventListener(y,I)},
_onKeyBindingEvent:function(I,C){this.stopKeyboardEventPropagation&&C.stopPropagation();if(!C.defaultPrevented)for(var y=0;y<I.length;y++){var k=I[y][0],F=I[y][1];if(hFW(k,C)&&(this._triggerKeyHandler(k,F,C),C.defaultPrevented))break}},
_triggerKeyHandler:function(I,C,y){var k=Object.create(I);k.keyboardEvent=y;I=new CustomEvent(I.event,{detail:k,cancelable:!0});this[C].call(this,I);I.defaultPrevented&&y.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
*/
_.pK({is:"iron-a11y-keys",_template:null,behaviors:[_.Ds],properties:{target:{type:Object,observer:"_targetChanged"},keys:{type:String,reflectToAttribute:!0,observer:"_keysChanged"}},attached:function(){this.target||(this.target=this.parentNode)},
_targetChanged:function(I){this.keyEventTarget=I},
_keysChanged:function(){this.removeOwnKeyBindings();this.addOwnKeyBinding(this.keys,"_fireKeysPressed")},
_fireKeysPressed:function(I){this.fire("keys-pressed",I.detail,{})}});_.pV={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(I){this._setFocused(I.type==="focus")},
_disabledChanged:function(I){this.setAttribute("aria-disabled",I?"true":"false");this.style.pointerEvents=I?"none":"";I?(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 Qu={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(I){this._detectKeyboardFocus(I);I||this._setPressed(!1)},
_detectKeyboardFocus:function(I){this._setReceivedFocusFromKeyboard(!this.pointerDown&&I)},
_userActivate:function(I){this.active!==I&&(this.active=I,this.fire("change"))},
_downHandler:function(){this._setPointerDown(!0);this._setPressed(!0);this._setReceivedFocusFromKeyboard(!1)},
_upHandler:function(){this._setPointerDown(!1);this._setPressed(!1)},
_spaceKeyDownHandler:function(I){I=I.detail.keyboardEvent;var C=_.lG(I).localTarget;this.isLightDescendant(C)||(I.preventDefault(),I.stopImmediatePropagation(),this._setPressed(!0))},
_spaceKeyUpHandler:function(I){I=_.lG(I.detail.keyboardEvent).localTarget;this.isLightDescendant(I)||(this.pressed&&this._asyncClick(),this._setPressed(!1))},
_asyncClick:function(){this.async(function(){this.click()},1)},
_pressedChanged:function(){this._changedButtonState()},
_ariaActiveAttributeChanged:function(I,C){C&&C!=I&&this.hasAttribute(C)&&this.removeAttribute(C)},
_activeChanged:function(I){this.toggles?this.setAttribute(this.ariaActiveAttribute,I?"true":"false"):this.removeAttribute(this.ariaActiveAttribute);this._changedButtonState()},
_controlStateChanged:function(){this.disabled?this._setPressed(!1):this._changedButtonState()},
_changedButtonState:function(){this._buttonStateChanged&&this._buttonStateChanged()}},iEw=[_.Ds,
Qu];_.Nu={IronButtonState:iEw,IronButtonStateImpl:Qu};_.Vu={properties:{name:{type:String},value:{notify:!0,type:String},required:{type:Boolean,value:!1}},attached:function(){},
detached:function(){}};_.jc=function(I){_.jc[" "](I);this.type=I&&I.type||"default";this.key=I&&I.key;I&&"value"in I&&(this.value=I.value)};
_.jc.prototype.byKey=function(I){this.key=I;return this.value};
_.H1.Object.defineProperties(_.jc.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var I=this.type,C=this.key;if(I&&C)return lu[I]&&lu[I][C]},
set:function(I){var C=this.type,y=this.key;C&&y&&(C=lu[C]=lu[C]||{},I==null?delete C[y]:C[y]=I)}},
list:{configurable:!0,enumerable:!0,get:function(){if(!this.type)return[];var I=lu[this.type];return I?Object.keys(I).map(function(C){return lu[this.type][C]},this):[]}}});
_.jc[" "]=function(){};
var lu={};_.pK({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(I,C,y){I=new _.jc({type:I,key:C});y!==void 0&&y!==I.value?I.value=y:this.value!==I.value&&(this.value=I.value);return I},
get list(){return this.__meta&&this.__meta.list},_selfChanged:function(I){I&&(this.value=this)},
byKey:function(I){return(new _.jc({type:this.type,key:I})).value}});var wPY;wPY=null;_.Xo={properties:{validator:{type:String},invalid:{notify:!0,reflectToAttribute:!0,type:Boolean,value:!1,observer:"_invalidChanged"}},registered:function(){wPY=new _.jc({type:"validator"})},
_invalidChanged:function(){this.invalid?this.setAttribute("aria-invalid","true"):this.removeAttribute("aria-invalid")},
get _validator(){return wPY&&wPY.byKey(this.validator)},hasValidator:function(){return this._validator!=null},
validate:function(I){this.invalid=I===void 0&&this.value!==void 0?!this._getValidity(this.value):!this._getValidity(I);return!this.invalid},
_getValidity:function(I){return this.hasValidator()?this._validator.validate(I):!0}};var ns0={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"}},Pkw=[_.Vu,
_.Xo,ns0];_.pK({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 _.jc({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(I){return this.name+":"+I},this)},
applyIcon:function(I,C){this.removeIcon(I);if(C=this._cloneIcon(C,this.rtlMirroring&&this._targetIsRTL(I))){var y=_.lG(I.root||I);y.insertBefore(C,y.childNodes[0]);return I._svgIcon=C}return null},
removeIcon:function(I){I._svgIcon&&(_.lG(I.root||I).removeChild(I._svgIcon),I._svgIcon=null)},
_targetIsRTL:function(I){this.__targetIsRTL==null&&(this.useGlobalRtlAttribute?this.__targetIsRTL=(document.body&&document.body.hasAttribute("dir")?document.body:document.documentElement).getAttribute("dir")==="rtl":(I&&I.nodeType!==Node.ELEMENT_NODE&&(I=I.host),this.__targetIsRTL=I&&window.getComputedStyle(I).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 I=Object.create(null);_.lG(this).querySelectorAll("[id]").forEach(function(C){I[C.id]=C});
return I},
_cloneIcon:function(I,C){this._icons=this._icons||this._createIconMap();return this._prepareSvgClone(this._icons[I],this.size,C)},
_prepareSvgClone:function(I,C,y){if(I){I=I.cloneNode(!0);var k=document.createElementNS("http://www.w3.org/2000/svg","svg");C=I.getAttribute("viewBox")||"0 0 "+C+" "+C;var F="pointer-events: none; display: block; width: 100%; height: 100%;";y&&I.hasAttribute("mirror-in-rtl")&&(F+="-webkit-transform:scale(-1,1);transform:scale(-1,1);transform-origin:center;");k.setAttribute("viewBox",C);k.setAttribute("preserveAspectRatio","xMidYMid meet");k.setAttribute("focusable","false");k.style&&(k.style.cssText=
F);k.appendChild(I).removeAttribute("id");return k}return null}});var L4m=function(I){this.multi=!1;this.selection=[];this.selectCallback=I};
_.u=L4m.prototype;_.u.get=function(){return this.multi?this.selection.slice():this.selection[0]};
_.u.clear=function(I){this.selection.slice().forEach(function(C){(!I||I.indexOf(C)<0)&&this.setItemSelected(C,!1)},this)};
_.u.isSelected=function(I){return this.selection.indexOf(I)>=0};
_.u.setItemSelected=function(I,C){if(I!=null&&C!==this.isSelected(I)){if(C)this.selection.push(I);else{var y=this.selection.indexOf(I);y>=0&&this.selection.splice(y,1)}this.selectCallback&&this.selectCallback(I,C)}};
_.u.select=function(I){this.multi?this.toggle(I):this.get()!==I&&(this.setItemSelected(this.get(),!1),this.setItemSelected(I,!0))};
_.u.toggle=function(I){this.setItemSelected(I,!this.isSelected(I))};_.gW={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 L4m(this._applySelection.bind(this))},
attached:function(){this._observer=this._observeItems(this);this._addListener(this.activateEvent)},
detached:function(){this._observer&&_.lG(this).unobserveNodes(this._observer);this._removeListener(this.activateEvent)},
indexOf:function(I){return this.items?this.items.indexOf(I):-1},
select:function(I){this.selected=I},
selectPrevious:function(){var I=this.items.length,C=I-1;this.selected!==void 0&&(C=(Number(this._valueToIndex(this.selected))-1+I)%I);this.selected=this._indexToValue(C)},
selectNext:function(){var I=0;this.selected!==void 0&&(I=(Number(this._valueToIndex(this.selected))+1)%this.items.length);this.selected=this._indexToValue(I)},
selectIndex:function(I){this.select(this._indexToValue(I))},
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(I){this.listen(this,I,"_activateHandler")},
_removeListener:function(I){this.unlisten(this,I,"_activateHandler")},
_activateEventChanged:function(I,C){this._removeListener(C);this._addListener(I)},
_updateItems:function(){var I=_.lG(this).queryDistributedElements(this.selectable||"*");I=Array.prototype.filter.call(I,this._bindFilterItem);this._setItems(I)},
_updateAttrForSelected:function(){this.selectedItem&&(this.selected=this._valueForItem(this.selectedItem))},
_updateSelected:function(){this._selectSelected(this.selected)},
_selectSelected:function(){if(this.items){var I=this._valueToItem(this.selected);I?this._selection.select(I):this._selection.clear();this.fallbackSelection&&this.items.length&&this._selection.get()===void 0&&(this.selected=this.fallbackSelection)}},
_filterItem:function(I){return!this._excludedLocalNames[I.localName]},
_valueToItem:function(I){return I==null?null:this.items[this._valueToIndex(I)]},
_valueToIndex:function(I){if(this.attrForSelected)for(var C=0,y;y=this.items[C];C++){if(this._valueForItem(y)==I)return C}else return Number(I)},
_indexToValue:function(I){if(this.attrForSelected){if(I=this.items[I])return this._valueForItem(I)}else return I},
_valueForItem:function(I){if(!I)return null;if(!this.attrForSelected)return I=this.indexOf(I),I===-1?null:I;var C=I[yz(this.attrForSelected)];return C!=void 0?C:I.getAttribute(this.attrForSelected)},
_applySelection:function(I,C){this.selectedClass&&this.toggleClass(this.selectedClass,C,I);this.selectedAttribute&&this.toggleAttribute.call(I,this.selectedAttribute,C);this._selectionChange();this.fire("iron-"+(C?"select":"deselect"),{item:I})},
_selectionChange:function(){this._setSelectedItem(this._selection.get())},
_observeItems:function(I){return _.lG(I).observeNodes(function(C){this._updateItems();this._updateSelected();this.fire("iron-items-changed",C,{bubbles:!1,cancelable:!1})})},
_activateHandler:function(I){I=I.target;for(var C=this.items;I&&I!=this;){var y=C.indexOf(I);if(y>=0){C=this._indexToValue(y);this._itemActivate(C,I);break}I=I.parentNode}},
_itemActivate:function(I,C){this.fire("iron-activate",{selected:I,item:C},{cancelable:!0}).defaultPrevented||this.select(I)}};var D3Y={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(I){this.multi?this._toggleSelected(I):this.selected=I},
multiChanged:function(I){this._selection.multi=I;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(I){return this._indexToValue(this.indexOf(I))},this).filter(function(I){return I!=null},this)):_.gW._updateAttrForSelected.apply(this)},
_updateSelected:function(){this.multi?this._selectMulti(this.selectedValues):this._selectSelected(this.selected)},
_selectMulti:function(I){I=I||[];I=(this._valuesToItems(I)||[]).filter(function(y){return y!==null&&y!==void 0});
this._selection.clear(I);for(var C=0;C<I.length;C++)this._selection.setItemSelected(I[C],!0);this.fallbackSelection&&!this._selection.get().length&&this._valueToItem(this.fallbackSelection)&&this.select(this.fallbackSelection)},
_selectionChange:function(){var I=this._selection.get();this.multi?(this._setSelectedItems(I),this._setSelectedItem(I.length?I[0]:null)):I!==null&&I!==void 0?(this._setSelectedItems([I]),this._setSelectedItem(I)):(this._setSelectedItems([]),this._setSelectedItem(null))},
_toggleSelected:function(I){var C=this.selectedValues.indexOf(I);C<0?this.push("selectedValues",I):this.splice("selectedValues",C,1)},
_valuesToItems:function(I){return I==null?null:I.map(function(C){return this._valueToItem(C)},this)}},pPd=[_.gW,
D3Y];var Q88;
_.$r={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(I){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null);var C=this._valueToItem(I);C&&C.hasAttribute("disabled")||(this._setFocusedItem(C),D3Y.select.apply(this,arguments))},
_resetTabindices:function(){var I=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this.items.forEach(function(C){C.setAttribute("tabindex",C===I?"0":"-1");C.setAttribute("aria-selected",this._selection.isSelected(C))},this)},
_updateMultiselectable:function(I){I?this.setAttribute("aria-multiselectable","true"):this.removeAttribute("aria-multiselectable")},
_focusWithKeyboardEvent:function(I){if(this._MODIFIER_KEYS.indexOf(I.key)===-1){this.cancelDebouncer("_clearSearchText");var C=this._searchText||"";C+=(I.key&&I.key.length==1?I.key:String.fromCharCode(I.keyCode)).toLocaleLowerCase();I=C.length;for(var y=0,k;k=this.items[y];y++)if(!k.hasAttribute("disabled")){var F=this.attrForItemTitle||"textContent";F=(k[F]||k.getAttribute(F)||"").trim();if(!(F.length<I)&&F.slice(0,I).toLocaleLowerCase()==C){this._setFocusedItem(k);break}}this._searchText=C;this.debounce("_clearSearchText",
this._clearSearchText,this._SEARCH_RESET_TIMEOUT_MS)}},
_clearSearchText:function(){this._searchText=""},
_focusPrevious:function(){for(var I=this.items.length,C=Number(this.indexOf(this.focusedItem)),y=1;y<I+1;y++){var k=this.items[(C-y+I)%I];if(!k.hasAttribute("disabled")){var F=_.lG(k).getOwnerRoot()||document;this._setFocusedItem(k);if(_.lG(F).activeElement==k)break}}},
_focusNext:function(){for(var I=this.items.length,C=Number(this.indexOf(this.focusedItem)),y=1;y<I+1;y++){var k=this.items[(C+y)%I];if(!k.hasAttribute("disabled")){var F=_.lG(k).getOwnerRoot()||document;this._setFocusedItem(k);if(_.lG(F).activeElement==k)break}}},
_applySelection:function(I,C){C?I.setAttribute("aria-selected","true"):I.setAttribute("aria-selected","false");_.gW._applySelection.apply(this,arguments)},
_focusedItemChanged:function(I,C){C&&C.setAttribute("tabindex","-1");!I||I.hasAttribute("disabled")||this.disabled||(I.setAttribute("tabindex","0"),I.focus())},
_onIronItemsChanged:function(I){I.detail.addedNodes.length&&this._resetTabindices()},
_onShiftTabDown:function(){var I=this.getAttribute("tabindex");_.$r._shiftTabPressed=!0;this._setFocusedItem(null);this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",I);_.$r._shiftTabPressed=!1},1)},
_onFocus:function(I){!_.$r._shiftTabPressed&&(I=_.lG(I).rootTarget,I===this||typeof I.tabIndex==="undefined"||this.isLightDescendant(I))&&(this._defaultFocusAsync=this.async(function(){var C=this.multi?this.selectedItems&&this.selectedItems[0]:this.selectedItem;this._setFocusedItem(null);C?this._setFocusedItem(C):this.items[0]&&this._focusNext()}))},
_onUpKey:function(I){this._focusPrevious();I.detail.keyboardEvent.preventDefault()},
_onDownKey:function(I){this._focusNext();I.detail.keyboardEvent.preventDefault()},
_onEscKey:function(){var I=this.focusedItem;I&&I.blur()},
_onKeydown:function(I){this.keyboardEventMatchesKeys(I,"up down esc")||this._focusWithKeyboardEvent(I);I.stopPropagation()},
_activateHandler:function(I){_.gW._activateHandler.call(this,I);I.stopPropagation()},
_disabledChanged:function(I){I?(this._previousTabIndex=this.hasAttribute("tabindex")?this.tabIndex:0,this.removeAttribute("tabindex")):this.hasAttribute("tabindex")||this.setAttribute("tabindex",this._previousTabIndex)},
_shiftTabPressed:!1};Q88=[pPd,_.Ds,_.$r];_.NhY={hostAttributes:{role:"menubar"},keyBindings:{left:"_onLeftKey",right:"_onRightKey"},_onUpKey:function(I){this.focusedItem&&(this.focusedItem.click(),I.detail.keyboardEvent.preventDefault())},
_onDownKey:function(I){this.focusedItem&&(this.focusedItem.click(),I.detail.keyboardEvent.preventDefault())},
get _isRTL(){return window.getComputedStyle(this).direction==="rtl"},_isSpecialKey:function(I){return I.ctrlKey||I.shiftKey||I.altKey||I.metaKey},
_onLeftKey:function(I){this._isSpecialKey(I.detail.keyboardEvent)||(this._isRTL?this._focusNext():this._focusPrevious(),I.detail.keyboardEvent.preventDefault())},
_onRightKey:function(I){this._isSpecialKey(I.detail.keyboardEvent)||(this._isRTL?this._focusPrevious():this._focusNext(),I.detail.keyboardEvent.preventDefault())},
_onKeydown:function(I){this.keyboardEventMatchesKeys(I,"up down left right esc")||this._focusWithKeyboardEvent(I)}};
_.VzP=[Q88,_.NhY];var j8u;j8u=new Set;_.Ri={properties:{_parentResizable:{type:Object,observer:"_parentResizableChanged"},_notifyingDescendant:{type:Boolean,value:!1}},listeners:{"iron-request-resize-notifications":"_onIronRequestResizeNotifications"},created:function(){this._interestedResizables=[];this._boundNotifyResize=this.notifyResize.bind(this);this._boundOnDescendantIronResize=this._onDescendantIronResize.bind(this)},
attached:function(){this._requestResizeNotifications()},
detached:function(){this._parentResizable?this._parentResizable.stopResizeNotificationsFor(this):(j8u.delete(this),window.removeEventListener("resize",this._boundNotifyResize));this._parentResizable=null},
notifyResize:function(){this.isAttached&&(this._interestedResizables.forEach(function(I){this.resizerShouldNotify(I)&&this._notifyDescendant(I)},this),this._fireResize())},
assignParentResizable:function(I){this._parentResizable&&this._parentResizable.stopResizeNotificationsFor(this);(this._parentResizable=I)&&I._interestedResizables.indexOf(this)===-1&&(I._interestedResizables.push(this),I._subscribeIronResize(this))},
stopResizeNotificationsFor:function(I){var C=this._interestedResizables.indexOf(I);C>-1&&(this._interestedResizables.splice(C,1),this._unsubscribeIronResize(I))},
_subscribeIronResize:function(I){I.addEventListener("iron-resize",this._boundOnDescendantIronResize)},
_unsubscribeIronResize:function(I){I.removeEventListener("iron-resize",this._boundOnDescendantIronResize)},
resizerShouldNotify:function(){return!0},
_onDescendantIronResize:function(I){this._notifyingDescendant?I.stopPropagation():An||this._fireResize()},
_fireResize:function(){this.fire("iron-resize",null,{node:this,bubbles:!1})},
_onIronRequestResizeNotifications:function(I){var C=_.lG(I).rootTarget;C!==this&&(C.assignParentResizable(this),this._notifyDescendant(C),I.stopPropagation())},
_parentResizableChanged:function(I){I&&window.removeEventListener("resize",this._boundNotifyResize)},
_notifyDescendant:function(I){this.isAttached&&(this._notifyingDescendant=!0,I.notifyResize(),this._notifyingDescendant=!1)},
_requestResizeNotifications:function(){if(this.isAttached)if(document.readyState==="loading"){var I=this._requestResizeNotifications.bind(this);document.addEventListener("readystatechange",function y(){document.removeEventListener("readystatechange",y);I()})}else this._findParent(),this._parentResizable?this._parentResizable._interestedResizables.forEach(function(C){C!==this&&C._findParent()},this):(j8u.forEach(function(C){C!==this&&C._findParent()},this),window.addEventListener("resize",this._boundNotifyResize),
this.notifyResize())},
_findParent:function(){this.assignParentResizable(null);this.fire("iron-request-resize-notifications",null,{node:this,bubbles:!0,cancelable:!0});this._parentResizable?j8u.delete(this):j8u.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
*/
_.ln5={properties:{scrollTarget:{type:HTMLElement,value:function(){return this._defaultScrollTarget}}},
observers:["_scrollTargetChanged(scrollTarget, isAttached)"],_shouldHaveListener:!0,_scrollTargetChanged:function(I,C){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);C&&(I==="document"?this.scrollTarget=this._doc:typeof I==="string"?this.scrollTarget=(C=this.domHost)&&C.$?C.$[I]:_.lG(this.ownerDocument).querySelector("#"+I):this._isValidScrollTarget()&&(this._oldScrollTarget=I,this._toggleScrollListener(this._shouldHaveListener,I)))},
_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(I){this.scrollTarget===this._doc?window.scrollTo(window.pageXOffset,I):this._isValidScrollTarget()&&(this.scrollTarget.scrollTop=
I)},set _scrollLeft(I){this.scrollTarget===this._doc?window.scrollTo(I,window.pageYOffset):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=I)},scroll:function(I,C){if(typeof I==="object"){var y=I.left;C=I.top}else y=I;y=y||0;C=C||0;this.scrollTarget===this._doc?window.scrollTo(y,C):this._isValidScrollTarget()&&(this.scrollTarget.scrollLeft=y,this.scrollTarget.scrollTop=C)},
get _scrollTargetWidth(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerWidth:this.scrollTarget.offsetWidth:0},get _scrollTargetHeight(){return this._isValidScrollTarget()?this.scrollTarget===this._doc?window.innerHeight:this.scrollTarget.offsetHeight:0},_isValidScrollTarget:function(){return this.scrollTarget instanceof HTMLElement},
_toggleScrollListener:function(I,C){C=C===this._doc?window:C;I?this._boundScrollHandler||(this._boundScrollHandler=this._scrollHandler.bind(this),C.addEventListener("scroll",this._boundScrollHandler)):this._boundScrollHandler&&(C.removeEventListener("scroll",this._boundScrollHandler),this._boundScrollHandler=null)},
toggleScrollListener:function(I){this._shouldHaveListener=I;this._toggleScrollListener(I,this.scrollTarget)}};_.pK({is:"iron-selector",_template:null,behaviors:[pPd]});var bu={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(I){if(I.timing)for(var C in I.timing)this.animationTiming[C]=I.timing[C];return this.animationTiming},
setPrefixedProperty:function(I,C,y){for(var k={transform:["webkitTransform"],transformOrigin:["mozTransformOrigin","webkitTransformOrigin"]}[C],F,z=0;F=k[z];z++)I.style[F]=y;I.style[C]=y},
complete:function(){}};_.pK({is:"fade-in-animation",_template:null,behaviors:[bu],configure:function(I){return this._effect=new KeyframeEffect(I.node,[{opacity:"0"},{opacity:"1"}],this.timingFromConfig(I))}});_.pK({is:"fade-out-animation",_template:null,behaviors:[bu],configure:function(I){return this._effect=new KeyframeEffect(I.node,[{opacity:"1"},{opacity:"0"}],this.timingFromConfig(I))}});var XPc=[{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(I,C){for(var y in C)I[y]=C[y]},
_cloneConfig:function(I){var C={isClone:!0};this._copyProperties(C,I);return C},
_getAnimationConfigRecursive:function(I,C,y){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 k=I?this.animationConfig[I]:this.animationConfig;Array.isArray(k)||(k=[k]);if(k)for(var F,z=0;F=k[z];z++)if(F.animatable)F.animatable._getAnimationConfigRecursive(F.type||I,C,y);else if(F.id){var c=C[F.id];
c?(c.isClone||(C[F.id]=this._cloneConfig(c),c=C[F.id]),this._copyProperties(c,F)):C[F.id]=F}else y.push(F)}},
getAnimationConfig:function(I){var C={},y=[];this._getAnimationConfigRecursive(I,C,y);for(var k in C)y.push(C[k]);return y}},
{_configureAnimations:function(I){var C=[],y=[];if(I.length>0)for(var k,F=0;k=I[F];F++){var z=document.createElement(k.name);if(z.isNeonAnimation){var c=null;z.configure||(z.configure=function(){return null});
c=z.configure(k);y.push({result:c,config:k})}else console.warn(this.is+":",k.name,"not found!")}for(I=0;I<y.length;I++){c=y[I].result;k=y[I].config;try{typeof c.cancel!="function"&&(c=document.timeline.play(c))}catch(r){c=null,console.warn("Couldnt play","(",k.name,").",r)}c&&C.push({neonAnimation:z,config:k,animation:c})}return C},
_shouldComplete:function(I){for(var C=!0,y=0;y<I.length;y++)if(I[y].animation.playState!="finished"){C=!1;break}return C},
_complete:function(I){for(var C=0;C<I.length;C++)I[C].neonAnimation.complete(I[C].config);for(C=0;C<I.length;C++)I[C].animation.cancel()},
playAnimation:function(I,C){var y=this.getAnimationConfig(I);if(y){this._active=this._active||{};this._active[I]&&(this._complete(this._active[I]),delete this._active[I]);var k=this._configureAnimations(y);if(k.length==0)this.fire("neon-animation-finish",C,{bubbles:!1});else for(this._active[I]=k,y=0;y<k.length;y++)k[y].animation.onfinish=function(){this._shouldComplete(k)&&(this._complete(k),delete this._active[I],this.fire("neon-animation-finish",C,{bubbles:!1}))}.bind(this)}},
cancelAnimation:function(){for(var I in this._active){var C=this._active[I],y;for(y in C)C[y].animation&&C[y].animation.cancel&&C[y].animation.cancel()}this._active={}}}];var r8=function(I,C){I=Error.call(this,I);this.message=I.message;"stack"in I&&(this.stack=I.stack);this.arg=C;this.name=this.constructor.name;this.constructor=r8;this.__proto__=r8.prototype};
_.R(r8,Error);var $38=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C.prototype._marshalArgs=function(y,k,F){k=I.prototype._marshalArgs.call(this,y,k,F);if(this._legacyUndefinedCheck&&k.length>1)for(F=0;F<k.length;F++)if(k[F]===void 0||y[F].wildcard&&k[F].base===void 0)throw y=y[F].name,new r8("Argument '"+y+"' is undefined.",y);return k};
C.prototype._addPropertyEffect=function(y,k,F){return I.prototype._addPropertyEffect.call(this,y,k,JuK(F,F&&F.info&&F.info.methodName))};
C._addTemplatePropertyEffect=function(y,k,F){return I._addTemplatePropertyEffect.call(this,y,k,JuK(F))};
return C}),RVP=_.pK.Class;
_.pK.Class=function(I,C){return RVP(I,function(y){return C?C($38(y)):$38(y)})};
var bEY=he(function(I){var C=$38(I);I=function(){return C.apply(this,arguments)||this};
_.R(I,C);_.H1.Object.defineProperties(I.prototype,{_legacyUndefinedCheck:{configurable:!0,enumerable:!0,get:function(){return this._methodHost&&this._methodHost._legacyUndefinedCheck}}});
return I}),YZY=v1.mixin;
v1.mixin=YZY?function(I){return bEY(YZY(I))}:bEY;
console.info("LegacyDataMixin will be applied to all legacy elements.\nSet `_legacyUndefinedCheck: true` on element class to enable.");_.Yr=_.Nu.IronButtonState;var MJz=K7;/*

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

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
*/
_.pK({_template:function(){if(SGY!==void 0)return SGY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;fuu===void 0&&(fuu=document.createElement("template"));var k=fuu;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return SGY=I},
is:"tp-yt-iron-autogrow-textarea",behaviors:[_.Xo,_.pV],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(I){this.$.textarea.selectionStart=I},set selectionEnd(I){this.$.textarea.selectionEnd=I},attached:function(){navigator.userAgent.match(/iP(?:[oa]d|hone)/)&&!navigator.userAgent.match(/OS 1[3456789]/)&&(this.$.textarea.style.marginLeft=
"-3px")},
validate:function(){var I=this.$.textarea.validity.valid;I&&(this.required&&this.value===""?I=!1:this.hasValidator()&&(I=_.Xo.validate.call(this,this.value)));this.invalid=!I;this.fire("iron-input-validate");return I},
_bindValueChanged:function(I){this.value=I},
_valueChanged:function(I){var C=this.textarea;C&&(C.value!==I&&(C.value=I||I===0?I:""),this.bindValue=I,this.$.mirror.textContent=this._valueForMirror(),this.fire("bind-value-changed",{value:this.bindValue}))},
_onInput:function(I){var C=_.lG(I).path;this.value=C?C[0].value:I.target.value},
_constrain:function(I){var C;I=I||[""];for(C=this.maxRows>0&&I.length>this.maxRows?I.slice(0,this.maxRows):I.slice(0);this.rows>0&&C.length<this.rows;)C.push("");return C.join("\n")+"\u00a0"},
_valueForMirror:function(){var I=this.textarea;if(I)return this.tokens=I&&I.value?I.value.split("\n"):[""],this._constrain(this.tokens)},
_updateCached:function(){this.$.mirror.textContent=this._constrain(this.tokens)}});var KOm;var A9P;_.pK({_template:function(){if(A9P!==void 0)return A9P;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;KOm===void 0&&(KOm=document.createElement("template"));var k=KOm;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return A9P=I},
is:"tp-yt-iron-collapse",behaviors:[_.Ri],properties:{horizontal:{type:Boolean,value:!1,observer:"_horizontalChanged"},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},transitioning:{type:Boolean,notify:!0,readOnly:!0},noAnimation:{type:Boolean},_desiredSize:{type:String,value:""}},get dimension(){return this.horizontal?"width":"height"},get _dimensionMax(){return this.horizontal?"maxWidth":"maxHeight"},get _dimensionMaxCss(){return this.horizontal?"max-width":"max-height"},hostAttributes:{role:"group",
"aria-hidden":"true"},listeners:{transitionend:"_onTransitionEnd"},toggle:function(){this.opened=!this.opened},
show:function(){this.opened=!0},
hide:function(){this.opened=!1},
updateSize:function(I,C){I=I==="auto"?"":I;C=C&&!this.noAnimation&&this.isAttached&&this._desiredSize!==I;this._desiredSize=I;this._updateTransition(!1);C&&(C=this._calcSize(),I===""&&(this.style[this._dimensionMax]="",I=this._calcSize()),this.style[this._dimensionMax]=C,this.scrollTop=this.scrollTop,this._updateTransition(!0),C=I!==C);this.style[this._dimensionMax]=I;C||this._transitionEnd()},
enableTransition:function(I){_.DQ._warn("`enableTransition()` is deprecated, use `noAnimation` instead.");this.noAnimation=!I},
_updateTransition:function(I){this.style.transitionDuration=I&&!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(I){_.lG(I).rootTarget===this&&this._transitionEnd()},
_calcSize:function(){return this.getBoundingClientRect()[this.dimension]+"px"}});var gAq;var vAd;var WOb=void 0,dlm={properties:{sizingTarget:{type:Object,value:function(){var I;return(I=this.hostElement)!=null?I: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 I,C=_.lG((I=this.hostElement)!=null?I:
this).parentNode;C&&C.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&(C=C.host);return C},get _localeHorizontalAlign(){if(this._isRTL){if(this.horizontalAlign==="right")return"left";if(this.horizontalAlign==="left")return"right"}return this.horizontalAlign},get __shouldPosition(){return(this.horizontalAlign||this.verticalAlign)&&this.positionTarget},get _isRTL(){if(typeof this._memoizedIsRTL==="undefined"){var I;this._memoizedIsRTL=window.getComputedStyle((I=this.hostElement)!=null?I:this).direction=="rtl"}return this._memoizedIsRTL},
attached:function(){this.positionTarget=this.positionTarget||this._defaultPositionTarget;if(this.autoFitOnAttach){var I;window.getComputedStyle((I=this.hostElement)!=null?I: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 I,C=window.getComputedStyle((I=this.hostElement)!=null?I:this);I=window.getComputedStyle(this.sizingTarget);var y,k,F;this._fitInfo={inlineStyle:{top:((y=this.hostElement)!=null?y:this).style.top||"",left:((k=this.hostElement)!=null?k:this).style.left||"",position:((F=this.hostElement)!=null?F:this).style.position||""},sizerInlineStyle:{maxWidth:this.sizingTarget.style.maxWidth||"",maxHeight:this.sizingTarget.style.maxHeight||"",boxSizing:this.sizingTarget.style.boxSizing||
""},positionedBy:{vertically:C.top!=="auto"?"top":C.bottom!=="auto"?"bottom":null,horizontally:C.left!=="auto"?"left":C.right!=="auto"?"right":null},sizedBy:{height:I.maxHeight!=="none",width:I.maxWidth!=="none",minWidth:parseInt(I.minWidth,10)||0,minHeight:parseInt(I.minHeight,10)||0},margin:{top:parseInt(C.marginTop,10)||0,right:parseInt(C.marginRight,10)||0,bottom:parseInt(C.marginBottom,10)||0,left:parseInt(C.marginLeft,10)||0}}}},
resetFit:function(){var I=this._fitInfo||{},C;for(C in I.sizerInlineStyle)this.sizingTarget.style[C]=I.sizerInlineStyle[C];for(C in I.inlineStyle){var y=void 0;((y=this.hostElement)!=null?y:this).style[C]=I.inlineStyle[C]}this._fitInfo=null},
refit:function(){var I=this.sizingTarget.scrollLeft,C=this.sizingTarget.scrollTop;this.resetFit();this.fit();this.sizingTarget.scrollLeft=I;this.sizingTarget.scrollTop=C},
position:function(){if(this.__shouldPosition){this._discoverInfo();window.ShadyDOM&&window.ShadyDOM.flush();var I;((I=this.hostElement)!=null?I:this).style.position="fixed";this.sizingTarget.style.boxSizing="border-box";var C;((C=this.hostElement)!=null?C:this).style.left="0px";var y;((y=this.hostElement)!=null?y:this).style.top="0px";var k,F=((k=this.hostElement)!=null?k:this).getBoundingClientRect();C=this.__getNormalizedRect(this.positionTarget);k=this.__getNormalizedRect(this.fitInto);this.avoidOuterEdge&&
(k={left:k.left+24,right:k.right-24,top:k.top+24,bottom:k.bottom-24});if(this.expandSizingTargetForScrollbars){var z=this.sizingTarget.offsetWidth;var c=this.sizingTarget.offsetHeight;var r=this.sizingTarget.clientWidth;var w=this.sizingTarget.clientHeight}I=this._fitInfo.margin;C=this.__getPosition(this._localeHorizontalAlign,this.verticalAlign,{width:F.width+I.left+I.right,height:F.height+I.top+I.bottom},F,C,k);var L=C.left+I.left,D=C.top+I.top;y=Math.min(k.right-I.right,L+F.width);var p=Math.min(k.bottom-
I.bottom,D+F.height);L=Math.max(k.left+I.left,Math.min(L,y-this._fitInfo.sizedBy.minWidth));D=Math.max(k.top+I.top,Math.min(D,p-this._fitInfo.sizedBy.minHeight));y=Math.max(y-L,this._fitInfo.sizedBy.minWidth);p=Math.max(p-D,this._fitInfo.sizedBy.minHeight);this.sizingTarget.style.maxWidth=y+"px";this.sizingTarget.style.maxHeight=p+"px";L-=F.left;F=D-F.top;var Q;((Q=this.hostElement)!=null?Q:this).style.left=L+"px";var X;((X=this.hostElement)!=null?X:this).style.top=F+"px";if(this.expandSizingTargetForScrollbars){Q=
this.sizingTarget.offsetHeight;c=Q-this.sizingTarget.clientHeight-(c-w);if(c>0){this.sizingTarget.style.maxHeight=Math.min(k.height-I.top-I.bottom,p+c)+"px";c=this.sizingTarget.offsetHeight;w=c-Q;var b;C.verticalAlign==="top"?b=F:C.verticalAlign==="middle"?b=F-w/2:C.verticalAlign==="bottom"&&(b=F-w);b=Math.max(k.top+I.top,Math.min(b,k.bottom-I.bottom-c));var S;((S=this.hostElement)!=null?S:this).style.top=b+"px"}b=this.sizingTarget.offsetWidth;z=b-this.sizingTarget.clientWidth-(z-r);if(z>0){WOb!==
void 0?r=WOb:(r=document.createElement("div"),Object.assign(r.style,{overflow:"auto",position:"fixed",left:"0px",top:"0px",maxWidth:"100px",maxHeight:"100px"}),S=document.createElement("div"),S.style.width="200px",S.style.height="200px",r.appendChild(S),document.body.appendChild(r),WOb=Math.abs(r.offsetWidth-100)>1?r.offsetWidth-r.clientWidth:0,document.body.removeChild(r),r=WOb);this.sizingTarget.style.maxWidth=Math.min(k.width-I.left-I.right,y+z-r)+"px";z=this.sizingTarget.offsetWidth+r;r=z-b;var A;
C.horizontalAlign==="left"?A=L:C.horizontalAlign==="center"?A=L-r/2:C.horizontalAlign==="right"&&(A=L-r);A=Math.max(k.left+I.left,Math.min(A,k.right-I.right-z));var x;((x=this.hostElement)!=null?x:this).style.left=A+"px"}}}},
constrain:function(){if(!this.__shouldPosition){this._discoverInfo();var I=this._fitInfo;if(!I.positionedBy.vertically){var C;((C=this.hostElement)!=null?C:this).style.position="fixed";var y;((y=this.hostElement)!=null?y:this).style.top="0px"}if(!I.positionedBy.horizontally){var k;((k=this.hostElement)!=null?k:this).style.position="fixed";var F;((F=this.hostElement)!=null?F:this).style.left="0px"}this.sizingTarget.style.boxSizing="border-box";var z;C=((z=this.hostElement)!=null?z:this).getBoundingClientRect();
I.sizedBy.height||this.__sizeDimension(C,I.positionedBy.vertically,"top","bottom","Height");I.sizedBy.width||this.__sizeDimension(C,I.positionedBy.horizontally,"left","right","Width")}},
_sizeDimension:function(I,C,y,k,F){this.__sizeDimension(I,C,y,k,F)},
__sizeDimension:function(I,C,y,k,F){var z=this._fitInfo,c=this.__getNormalizedRect(this.fitInto);c=F==="Width"?c.width:c.height;I=(C=C===k)?c-I[k]:I[y];y=z.margin[C?y:k];k="offset"+F;var r;z=((r=this.hostElement)!=null?r:this)[k]-this.sizingTarget[k];this.sizingTarget.style["max"+F]=c-y-I-z+"px"},
center:function(){if(!this.__shouldPosition){this._discoverInfo();var I=this._fitInfo.positionedBy;if(!I.vertically||!I.horizontally){var C;((C=this.hostElement)!=null?C:this).style.position="fixed";if(!I.vertically){var y;((y=this.hostElement)!=null?y:this).style.top="0px"}if(!I.horizontally){var k;((k=this.hostElement)!=null?k:this).style.left="0px"}var F;C=((F=this.hostElement)!=null?F:this).getBoundingClientRect();F=this.__getNormalizedRect(this.fitInto);if(!I.vertically){y=F.top-C.top+(F.height-
C.height)/2;var z;((z=this.hostElement)!=null?z:this).style.top=y+"px"}if(!I.horizontally){I=F.left-C.left+(F.width-C.width)/2;var c;((c=this.hostElement)!=null?c:this).style.left=I+"px"}}}},
__getNormalizedRect:function(I){return I===document.documentElement||I===window?{top:0,left:0,width:window.innerWidth,height:window.innerHeight,right:window.innerWidth,bottom:window.innerHeight}:I.getBoundingClientRect()},
__getOffscreenArea:function(I,C,y){return Math.abs(Math.min(0,I.top)+Math.min(0,y.bottom-(I.top+C.height)))*C.width+Math.abs(Math.min(0,I.left)+Math.min(0,y.right-(I.left+C.width)))*C.height},
__getPosition:function(I,C,y,k,F,z){var c=[{verticalAlign:"top",horizontalAlign:"left",top:F.top+this.verticalOffset,left:F.left+this.horizontalOffset},{verticalAlign:"top",horizontalAlign:"right",top:F.top+this.verticalOffset,left:F.right-y.width-this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"left",top:F.bottom-y.height-this.verticalOffset,left:F.left+this.horizontalOffset},{verticalAlign:"bottom",horizontalAlign:"right",top:F.bottom-y.height-this.verticalOffset,left:F.right-y.width-
this.horizontalOffset}];if(this.noOverlap){for(var r=0,w=c.length;r<w;r++){var L={},D;for(D in c[r])L[D]=c[r][D];c.push(L)}c[0].top=c[1].top+=F.height;c[2].top=c[3].top-=F.height;c[4].left=c[6].left+=F.width;c[5].left=c[7].left-=F.width}C=C==="auto"?null:C;I=I==="auto"?null:I;I&&I!=="center"||(c.push({verticalAlign:"top",horizontalAlign:"center",top:F.top+this.verticalOffset+(this.noOverlap?F.height:0),left:F.left-k.width/2+F.width/2+this.horizontalOffset}),c.push({verticalAlign:"bottom",horizontalAlign:"center",
top:F.bottom-y.height-this.verticalOffset-(this.noOverlap?F.height:0),left:F.left-k.width/2+F.width/2+this.horizontalOffset}));C&&C!=="middle"||(c.push({verticalAlign:"middle",horizontalAlign:"left",top:F.top-k.height/2+F.height/2+this.verticalOffset,left:F.left+this.horizontalOffset+(this.noOverlap?F.width:0)}),c.push({verticalAlign:"middle",horizontalAlign:"right",top:F.top-k.height/2+F.height/2+this.verticalOffset,left:F.right-y.width-this.horizontalOffset-(this.noOverlap?F.width:0)}));C==="middle"&&
I==="center"&&c.push({verticalAlign:"middle",horizontalAlign:"center",top:F.top-k.height/2+F.height/2+this.verticalOffset,left:F.left-k.width/2+F.width/2+this.horizontalOffset});for(r=0;r<c.length;r++){k=c[r];F=k.verticalAlign===C;w=k.horizontalAlign===I;if(!this.dynamicAlign&&!this.noOverlap&&F&&w){var p=k;break}L=(!C||F)&&(!I||w);if(this.dynamicAlign||L){k.offscreenArea=this.__getOffscreenArea(k,y,z);if(k.offscreenArea===0&&L){p=k;break}p=p||k;L=k.offscreenArea-p.offscreenArea;if(L<0||L===0&&(F||
w))p=k}}return p}};/*

Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at
http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
part of the polymer project is also subject to an additional IP rights grant
found at http://polymer.github.io/PATENTS.txt
SPDX-License-Identifier: BSD-3-Clause
*/
var dk,xlb,qGe;dk=Element.prototype;xlb=dk.matches||dk.matchesSelector||dk.mozMatchesSelector||dk.msMatchesSelector||dk.oMatchesSelector||dk.webkitMatchesSelector;qGe=function(){};
_.ZMd=function(I){var C=mlq,y=[];return C._collectTabbableNodes(I,y)?C._sortByTabIndex(y):y};
_.u=qGe.prototype;_.u._normalizedTabIndex=function(I){return(xlb.call(I,"input, select, textarea, button, object")?xlb.call(I,":not([disabled])"):xlb.call(I,"a[href], area[href], iframe, [tabindex], [contentEditable]"))?(I=I.getAttribute("tabindex")||0,Number(I)):-1};
_.u._collectTabbableNodes=function(I,C){if(I.nodeType!==Node.ELEMENT_NODE||!this._isVisible(I))return!1;var y=this._normalizedTabIndex(I),k=y>0;y>=0&&C.push(I);if(I.localName==="content"||I.localName==="slot")y=_.lG(I).getDistributedNodes();else{var F;y=((F=_.lG(I).shadowRoot)!=null?F:_.lG(I.root||I)).children}for(I=0;I<y.length;I++)k=this._collectTabbableNodes(y[I],C)||k;return k};
_.u._isVisible=function(I){var C=I.style;return C.visibility!=="hidden"&&C.display!=="none"?(C=window.getComputedStyle(I),C.visibility!=="hidden"&&C.display!=="none"):!1};
_.u._sortByTabIndex=function(I){var C=I.length;if(C<2)return I;var y=Math.ceil(C/2);C=this._sortByTabIndex(I.slice(0,y));I=this._sortByTabIndex(I.slice(y));return this._mergeSortByTabIndex(C,I)};
_.u._mergeSortByTabIndex=function(I,C){for(var y=[];I.length>0&&C.length>0;)this._hasLowerTabOrder(I[0],C[0])?y.push(C.shift()):y.push(I.shift());return y.concat(I,C)};
_.u._hasLowerTabOrder=function(I,C){I=Math.max(I.tabIndex,0);C=Math.max(C.tabIndex,0);return I===0||C===0?C>I:I>C};
var mlq=new qGe;var BJ5;var EAw;_.pK({_template:function(){if(EAw!==void 0)return EAw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;BJ5===void 0&&(BJ5=document.createElement("template"));var k=BJ5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return EAw=I},
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&&_.lG(document.body).appendChild(this)},
open:function(){this.opened=!0},
close:function(){this.opened=!1},
complete:function(){this.opened||this.parentNode!==document.body||_.lG(this.parentNode).removeChild(this)},
_onTransitionend:function(I){I&&I.target===this&&this.complete()},
_openedChanged:function(I){I?this.prepare():(I=window.getComputedStyle(this),I.transitionDuration!=="0s"&&I.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 xr=function(){this._overlays=[];this._minimumZ=101;this._backdropElement=null;bf(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)};
xr.prototype._bringOverlayAtIndexToFront=function(I){var C=this._overlays[I];if(C){var y=this._overlays.length-1,k=this._overlays[y];k&&this._shouldBeBehindOverlay(C,k)&&y--;if(!(I>=y)){k=Math.max(this._getZ(_.h4d(this)),this._minimumZ);for(this._getZ(C)<=k&&this._applyOverlayZ(C,k);I<y;)this._overlays[I]=this._overlays[I+1],I++;this._overlays[y]=C}}};
xr.prototype.addOverlay=function(I){var C=this._overlays.indexOf(I);if(C>=0)this._bringOverlayAtIndexToFront(C);else{C=this._overlays.length;var y=this._overlays[C-1],k=Math.max(this._getZ(y),this._minimumZ),F=this._getZ(I);y&&this._shouldBeBehindOverlay(I,y)&&(this._applyOverlayZ(y,k),C--,k=Math.max(this._getZ(this._overlays[C-1]),this._minimumZ));F<=k&&this._applyOverlayZ(I,k);this._overlays.splice(C,0,I)}this.trackBackdrop()};
xr.prototype.removeOverlay=function(I){I=this._overlays.indexOf(I);I!==-1&&(this._overlays.splice(I,1),this.trackBackdrop())};
_.h4d=function(I){return I._overlays[I._overlays.length-1]};
_.u=xr.prototype;_.u.trackBackdrop=function(){var I=this._overlayWithBackdrop();if(I||this._backdropElement)this.backdropElement.style.zIndex=this._getZ(I)-1,this.backdropElement.opened=!!I,this.backdropElement.prepare()};
_.u._overlayWithBackdrop=function(){for(var I=this._overlays.length-1;I>=0;I--)if(this._overlays[I].withBackdrop)return this._overlays[I]};
_.u._getZ=function(I){var C=this._minimumZ;if(I){var y,k,F=Number(((y=I.hostElement)!=null?y:I).style.zIndex||window.getComputedStyle((k=I.hostElement)!=null?k:I).zIndex);F===F&&(C=F)}return C};
_.u._setZ=function(I,C){var y;((y=I.hostElement)!=null?y:I).style.zIndex=C};
_.u._applyOverlayZ=function(I,C){this._setZ(I,C+2)};
_.u._overlayInPath=function(I){I=I||[];for(var C=0;C<I.length;C++){var y=void 0;if(((y=I[C].polymerController)!=null?y:I[C])._manager===this)return I[C]}};
_.u._onCaptureClick=function(I){var C=this._overlays.length-1;if(C!==-1)for(var y=_.lG(I).path,k,F;(k=this._overlays[C])&&this._overlayInPath(y)!==((F=k.hostElement)!=null?F:k);)if(k._onCaptureClick(I),k.allowClickThrough)C--;else break};
_.u._onCaptureFocus=function(I){var C=_.h4d(this);C&&C._onCaptureFocus(I)};
_.u._onCaptureKeyDown=function(I){var C=_.h4d(this);C&&(_.Ds.keyboardEventMatchesKeys(I,"esc")?C._onCaptureEsc(I):_.Ds.keyboardEventMatchesKeys(I,"tab")&&C._onCaptureTab(I))};
_.u._shouldBeBehindOverlay=function(I,C){return!I.alwaysOnTop&&C.alwaysOnTop&&!C.contains(I)};
_.H1.Object.defineProperties(xr.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 I=document.activeElement;I&&I instanceof Element!==!1||(I=document.body);for(;I.root&&_.lG(I.root).activeElement;)I=_.lG(I.root).activeElement;return I}}});
_.qu=new xr;var LRz=0,DYH=0,pzO=null,QdY=[],Xd=["wheel","mousewheel","DOMMouseScroll"],NsI;_.V("web_no_lock_on_touchstart_killswitch")&&(Xd.push("touchstart"),Xd.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;_.mq={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:_.qu},_focusedChild:{type:Object}},listeners:{"iron-resize":"_onIronResize"},observers:["__updateScrollObservers(isAttached, opened, scrollAction)"],get backdropElement(){return this._manager.backdropElement},get _focusNode(){var I;return this._focusedChild||_.lG((I=this.hostElement)!=null?I:this).querySelector("[autofocus]")||this.hostElement||this},get _focusableNodes(){var I;return _.ZMd((I=this.hostElement)!=null?I: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 I;this._observer=_.lG((I=this.hostElement)!=null?I:this).observeNodes(this._onNodesChange)},
detached:function(){if(this._observer){var I;_.lG((I=this.hostElement)!=null?I:this).unobserveNodes(this._observer)}this._observer=null;for(var C in this.__rafs)this.__rafs[C]!==null&&cancelAnimationFrame(this.__rafs[C]);this.__rafs={};this._manager.removeOverlay(this);this.__isAnimating&&(this.opened?this._finishRenderOpened():(this._applyFocus(),this._finishRenderClosed()))},
toggle:function(){this._setCanceled(!1);this.opened=!this.opened},
open:function(){this._setCanceled(!1);this.opened=!0},
close:function(){this._setCanceled(!1);this.opened=!1},
cancel:function(I){this.fire("iron-overlay-canceled",I,{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 I;((I=this.hostElement)!=null?I:this).style.outline="none";var C;((C=this.hostElement)!=null?C:this).style.display="none"}},
_openedChanged:function(I){if(I){var C;((C=this.hostElement)!=null?C:this).removeAttribute("aria-hidden")}else{var y;((y=this.hostElement)!=null?y: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 I;if(this.withBackdrop&&!((I=this.hostElement)!=null?I:this).hasAttribute("tabindex")){var C;((C=this.hostElement)!=null?C:this).setAttribute("tabindex","-1");this.__shouldRemoveTabIndex=!0}else if(this.__shouldRemoveTabIndex){var y;((y=this.hostElement)!=null?y: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 I;((I=this.hostElement)!=null?I:this).style.display="none";var C;((C=this.hostElement)!=null?C:this).style.zIndex="";this.notifyResize();this.__isAnimating=!1;this.fire("iron-overlay-closed",this.closingReason)},
_preparePositioning:function(){var I,C;((I=this.hostElement)!=null?I:this).style.transition=((C=this.hostElement)!=null?C:this).style.webkitTransition="none";var y,k;((y=this.hostElement)!=null?y:this).style.transform=((k=this.hostElement)!=null?k:this).style.webkitTransform="none";var F;((F=this.hostElement)!=null?F:this).style.display=""},
_finishPositioning:function(){var I;((I=this.hostElement)!=null?I:this).style.display="none";this.scrollTop=this.scrollTop;var C,y;((C=this.hostElement)!=null?C:this).style.transition=((y=this.hostElement)!=null?y:this).style.webkitTransition="";var k,F;((k=this.hostElement)!=null?k:this).style.transform=((F=this.hostElement)!=null?F:this).style.webkitTransform="";var z;((z=this.hostElement)!=null?z:this).style.display="";this.scrollTop=this.scrollTop},
_applyFocus:function(){if(this.opened)this.noAutoFocus||this._focusNode.focus();else{if(this.restoreFocusOnClose&&this.__restoreFocusNode){var I=this._manager.deepActiveElement,C;if(!(C=I===document.body))a:{for(;I;I=I.assignedSlot||I.parentNode||I.host)if(I===this){C=!0;break a}C=!1}C&&this.__restoreFocusNode.focus()}this.__restoreFocusNode=null;this._focusNode.blur();this._focusedChild=null}},
_onCaptureClick:function(I){this.noCancelOnOutsideClick||this.cancel(I)},
_onCaptureFocus:function(I){if(this.withBackdrop){var C=_.lG(I).path;C.indexOf(this)===-1?(I.stopPropagation(),this._applyFocus()):this._focusedChild=C[0]}},
_onCaptureEsc:function(I){this.noCancelOnEscKey||this.cancel(I)},
_onCaptureTab:function(I){if(this.withBackdrop){this.__ensureFirstLastFocusables();var C=I.shiftKey,y=C?this.__firstFocusableNode:this.__lastFocusableNode;C=C?this.__lastFocusableNode:this.__firstFocusableNode;if(y===C)y=!0;else{var k=this._manager.deepActiveElement;y=k===y||k===this}y&&(I.preventDefault(),this._focusedChild=C,this._applyFocus())}},
_onIronResize:function(){this.opened&&!this.__isAnimating&&this.__deraf("refit",this.refit)},
_onNodesChange:function(){this.opened&&!this.__isAnimating&&(this.invalidateTabbables(),this.notifyResize())},
__ensureFirstLastFocusables:function(){var I=this._focusableNodes;this.__firstFocusableNode=I[0];this.__lastFocusableNode=I[I.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(I,C){var y=this.__rafs;y[I]!==null&&cancelAnimationFrame(y[I]);y[I]=requestAnimationFrame(function(){y[I]=null;C.call(this)}.bind(this))},
__updateScrollObservers:function(I,C,y){I&&C&&this.__isValidScrollAction(y)?(y==="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),NsI=_._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()):(I=_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.indexOf(this),I!==-1&&(_._lockingElements$$module$third_party$javascript$youtube_components$tp_yt_iron_overlay_behavior$tp_yt_iron_scroll_manager.splice(I,1),NsI=_._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(An)for(var I=this;I;)I.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&I.host&&this.__rootNodes.push(I),I=I.host||I.assignedSlot||I.parentNode;this.__rootNodes.push(document)}this.__rootNodes.forEach(function(C){C.addEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this)},
__removeScrollListeners:function(){this.__rootNodes&&this.__rootNodes.forEach(function(I){I.removeEventListener("scroll",this.__onCaptureScroll,{capture:!0,passive:!0})},this);
this.isAttached||(this.__rootNodes=null)},
__isValidScrollAction:function(I){return I==="lock"||I==="refit"||I==="cancel"},
__onCaptureScroll:function(I){if(!(this.__isAnimating||_.lG(I).path.indexOf(this)>=0))switch(this.scrollAction){case "lock":this.__restoreScrollPosition();break;case "refit":this.__deraf("refit",this.refit);break;case "cancel":this.cancel(I)}},
__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)}};
_.Zs=[dlm,_.Ri,_.mq];_.pK({_template:function(){if(vAd!==void 0)return vAd;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;gAq===void 0&&(gAq=document.createElement("template"));var k=gAq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return vAd=I},
is:"tp-yt-iron-dropdown",behaviors:[_.pV,_.Ds,_.Zs,XPc],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 I=_.lG(this.$.content).getDistributedNodes(),C=0,y=I.length;C<y;C++)if(I[C].nodeType===Node.ELEMENT_NODE)return I[C]},ready:function(){this.scrollAction||(this.scrollAction=this.allowOutsideScroll?"refit":"lock");this._readied=!0},
attached:function(){this.sizingTarget&&this.sizingTarget!==this||(this.sizingTarget=this.containedElement||this)},
detached:function(){this.cancelAnimation()},
_openedChanged:function(){this.opened&&this.disabled?this.cancel():(this.cancelAnimation(),this._updateAnimationConfig(),_.mq._openedChanged.apply(this,arguments))},
_renderOpened:function(){!this.noAnimations&&this.animationConfig.open?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("open")):_.mq._renderOpened.apply(this,arguments)},
_renderClosed:function(){!this.noAnimations&&this.animationConfig.close?(this.$.contentWrapper.classList.add("animating"),this.playAnimation("close")):_.mq._renderClosed.apply(this,arguments)},
_onNeonAnimationFinish:function(){this.$.contentWrapper.classList.remove("animating");this.opened?this._finishRenderOpened():this._finishRenderClosed()},
_updateAnimationConfig:function(){for(var I=this.containedElement,C=[].concat(this.openAnimationConfig||[],this.closeAnimationConfig||[]),y=0;y<C.length;y++)C[y].node=I;this.animationConfig={open:this.openAnimationConfig,close:this.closeAnimationConfig}},
_updateOverlayPosition:function(){this.isAttached&&this.notifyResize()},
_allowOutsideScrollChanged:function(I){this._readied&&(I?this.scrollAction&&this.scrollAction!=="lock"||(this.scrollAction="refit"):this.scrollAction="lock")},
_applyFocus:function(){var I=this.focusTarget||this.containedElement;I&&this.opened&&!this.noAutoFocus?I.focus():_.mq._applyFocus.apply(this,arguments)}});var Ulw;var HM5;/*

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 tje=new _.jc({type:"iconset"});
_.pK({_template:function(){if(HM5!==void 0)return HM5;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Ulw===void 0&&(Ulw=document.createElement("template"));
var k=Ulw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return HM5=I},
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(I){I=(I||"").split(":");this._iconName=I.pop();this._iconsetName=I.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&&_.lG(this.root).removeChild(this._img),this._iconName==="")this._iconset&&this._iconset.removeIcon(this);else{if(this._iconsetName)if(this._iconset=tje.byKey(this._iconsetName)){var I=this._iconset.applyIcon(this,this._iconName,this.theme);I&&I.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,_.lG(this.root).appendChild(this._img)}});var J90;var OMd;_.pK({_template:function(){if(OMd!==void 0)return OMd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;J90===void 0&&(J90=document.createElement("template"));var k=J90;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return OMd=I},
is:"tp-yt-iron-input",behaviors:[_.Xo],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(){_.WV.requestAvailability();this._previousValidInput="";this._patternAlreadyChecked=!1},
attached:function(){this._observer=_.lG(this).observeNodes(function(){this._initSlottedInput()}.bind(this))},
detached:function(){this._observer&&(_.lG(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 I=new RegExp(this.allowedPattern);else switch(this.inputElement.type){case "number":I=/[0-9.,e-]/}return I},_bindValueChanged:function(I,C){C&&(I===void 0?C.value=null:I!==C.value&&(this.inputElement.value=I),this.autoValidate&&this.validate(),this.fire("bind-value-changed",{value:I}))},
_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(I){var C=I.keyCode==19||I.keyCode==20||I.keyCode==45||I.keyCode==46||I.keyCode==144||I.keyCode==145||I.keyCode>32&&I.keyCode<41||I.keyCode>111&&I.keyCode<124;return!(I.keyCode==8||I.keyCode==9||I.keyCode==13||I.keyCode==27)&&!(I.charCode==0&&C)},
_onKeypress:function(I){if(this.allowedPattern||this.inputElement.type==="number"){var C=this._patternRegExp;if(C&&!(I.metaKey||I.ctrlKey||I.altKey)){this._patternAlreadyChecked=!0;var y=String.fromCharCode(I.charCode);this._isPrintable(I)&&!C.test(y)&&(I.preventDefault(),this._announceInvalidCharacter("Invalid character "+y+" not entered."))}}},
_checkPatternValidity:function(){var I=this._patternRegExp;if(!I)return!0;for(var C=0;C<this.inputElement.value.length;C++)if(!I.test(this.inputElement.value[C]))return!1;return!0},
validate:function(){if(!this.inputElement)return this.invalid=!1,!0;var I=this.inputElement.checkValidity();I&&(this.required&&this.bindValue===""?I=!1:this.hasValidator()&&(I=_.Xo.validate.call(this,this.bindValue)));this.invalid=!I;this.fire("iron-input-validate");return I},
_announceInvalidCharacter:function(I){this.fire("iron-announce",{text:I})},
_computeValue:function(I){return I}});var aue;var Mjm;var IZ0=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/),Csw=IZ0&&IZ0[1]>=8;
_.pK({_template:function(){if(Mjm!==void 0)return Mjm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;aue===void 0&&(aue=document.createElement("template"));var k=aue;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Mjm=I},
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:[IhY,_.Ri,_.ln5,ixS],_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 _.lG(_.lG(this._userTemplate).parentNode)},get _maxScrollTop(){return this._estScrollHeight-
this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){var I=this._convertIndexToCompleteRow(this._virtualCount);return Math.max(0,I-this._physicalCount)},set _virtualStart(I){I=this._clamp(I,0,this._maxVirtualStart);this.grid&&(I-=I%this._itemsPerRow);this._virtualStartVal=I},get _virtualStart(){return this._virtualStartVal||0},set _physicalStart(I){I%=this._physicalCount;I<0&&(I=this._physicalCount+I);this.grid&&(I-=I%this._itemsPerRow);this._physicalStartVal=I},get _physicalStart(){return this._physicalStartVal||
0},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},set _physicalCount(I){this._physicalCountVal=I},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 I=this._firstVisibleIndexVal;if(I==null){var C=this._physicalTop+this._scrollOffset;this._firstVisibleIndexVal=
I=this._iterateItems(function(y,k){C+=this._getPhysicalSizeIncrement(y);if(C>this._scrollPosition)return this.grid?k-k%this._itemsPerRow:k;if(this.grid&&this._virtualCount-1===k)return k-k%this._itemsPerRow})||0}return I},
get lastVisibleIndex(){var I=this._lastVisibleIndexVal;if(I==null){if(this.grid)I=Math.min(this._virtualCount,this.firstVisibleIndex+this._estRowsInView*this._itemsPerRow-1);else{var C=this._physicalTop+this._scrollOffset;this._iterateItems(function(y,k){C<this._scrollBottom&&(I=k);C+=this._getPhysicalSizeIncrement(y)})}this._lastVisibleIndexVal=I}return I},
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,_.D_);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(I){this.style.webkitOverflowScrolling=I===this?"touch":"";this.style.overflowY=I===this?"auto":"";this._firstVisibleIndexVal=this._lastVisibleIndexVal=null;this._debounce("_render",this._render,_.D_)},
updateViewportBoundaries:function(){var I=window.getComputedStyle(this);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(I["padding-top"],10);this._isRTL=I.direction==="rtl";this._viewportWidth=this.$.items.offsetWidth;this._viewportHeight=this._scrollTargetHeight;this.grid&&this._updateGridMetrics()},
_scrollHandler:function(){var I=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop)),C=I-this._scrollPosition,y=C>=0;this._scrollPosition=I;this._lastVisibleIndexVal=this._firstVisibleIndexVal=null;Math.abs(C)>this._physicalSize&&this._physicalSize>0?(C-=this._scrollOffset,y=Math.round(C/this._physicalAverage)*this._itemsPerRow,this._virtualStart+=y,this._physicalStart+=y,this._physicalTop=Math.min(Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage,this._scrollPosition),this._update()):
this._physicalCount>0&&(I=this._getReusables(y),y?(this._physicalTop=I.physicalTop,this._virtualStart+=I.indexes.length,this._physicalStart+=I.indexes.length):(this._virtualStart=this._virtualStart-I.indexes.length,this._physicalStart=this._physicalStart-I.indexes.length),this._update(I.indexes,y?null:I.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),f7))},
_getReusables:function(I){var C=[],y=this._hiddenContentSize*this._ratio,k=this._virtualStart,F=this._virtualEnd,z=this._physicalCount,c=this._physicalTop+this._scrollOffset;var r=this._physicalBottom+this._scrollOffset;var w=this._scrollPosition,L=this._scrollBottom;if(I){var D=this._physicalStart;r=w-c}else D=this._physicalEnd,r-=L;for(;;){var p=this._getPhysicalSizeIncrement(D);r-=p;if(C.length>=z||r<=y)break;if(I){if(F+C.length+1>=this._virtualCount)break;if(c+p>=w-this._scrollOffset)break;C.push(D);
c+=p;D=(D+1)%z}else{if(k-C.length<=0)break;if(c+this._physicalSize-p<=L)break;C.push(D);c-=p;D=D===0?z-1:D-1}}return{indexes:C,physicalTop:c-this._scrollOffset}},
_update:function(I,C){if(!(I&&I.length===0||this._physicalCount===0)){this._manageFocus();this._assignModels(I);this._updateMetrics(I);if(C)for(;C.length;)I=C.pop(),this._physicalTop-=this._getPhysicalSizeIncrement(I);this._positionItems();this._updateScrollerSize()}},
_createPool:function(I){this._ensureTemplatized();var C,y=Array(I);for(C=0;C<I;C++){var k=this.stamp(null);y[C]=k.root.querySelector("*");this._itemsParent.appendChild(k.root)}return y},
_isClientFull:function(){return this._scrollBottom!=0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},
_increasePoolIfNeeded:function(I){I=this._clamp(this._physicalCount+I,3,this._virtualCount-this._virtualStart);I=this._convertIndexToCompleteRow(I);if(this.grid){var C=I%this._itemsPerRow;C&&I-C<=this._physicalCount&&(I+=this._itemsPerRow);I-=C}I-=this._physicalCount;C=Math.round(this._physicalCount*.5);if(!(I<0)){if(I>0){C=window.performance.now();[].push.apply(this._physicalItems,this._createPool(I));for(var y=0;y<I;y++)this._physicalSizes.push(0);this._physicalCount+=I;this._physicalStart>this._physicalEnd&&
this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=I);this._update();this._templateCost=(window.performance.now()-C)/I;C=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||C===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,C)),tiP):this._debounce("_increasePoolIfNeeded",
this._increasePoolIfNeeded.bind(this,C),f7))}},
_render:function(){if(this.isAttached&&this._isVisible)if(this._physicalCount!==0){var I=this._getReusables(!0);this._physicalTop=I.physicalTop;this._virtualStart+=I.indexes.length;this._physicalStart+=I.indexes.length;this._update(I.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 I={__key__:!0};I[this.as]=!0;I[this.indexAs]=!0;I[this.selectedAs]=!0;I.tabIndex=!0;this._instanceProps=I;this.templatize(this._userTemplate,this.mutableData)}},
_gridChanged:function(I,C){typeof C!=="undefined"&&(this.notifyResize(),_.zJ(),I&&this._updateGridMetrics())},
_itemsChanged:function(I){if(I.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,
_.D_);else if(I.path==="items.splices"){this._adjustVirtualIndex(I.value.indexSplices);this._virtualCount=this.items?this.items.length:0;if(I.value.indexSplices.some(function(y){return y.addedCount>0||y.removed.length>0})){var C=this._getActiveElement();
this.contains(C)&&C.blur()}I=I.value.indexSplices.some(function(y){return y.index+y.addedCount>=this._virtualStart&&y.index<=this._virtualEnd},this);
this._isClientFull()&&!I||this._debounce("_render",this._render,_.D_)}else I.path!=="items.length"&&this._forwardItemPath(I.path,I.value)},
_forwardItemPath:function(I,C){I=I.slice(6);var y=I.indexOf(".");y===-1&&(y=I.length);var k,F=this.modelForElement(this._offscreenFocusedItem),z=parseInt(I.substring(0,y),10);if(k=this._isIndexRendered(z)){var c=this._getPhysicalIndex(z);var r=this.modelForElement(this._physicalItems[c])}else F&&(r=F);r&&r[this.indexAs]===z&&(I=I.substring(y+1),I=this.as+(I?"."+I:""),r._setPendingPropertyOrPath(I,C,!1,!0),r._flushProperties&&r._flushProperties(),k&&(this._updateMetrics([c]),this._positionItems(),
this._updateScrollerSize()))},
_adjustVirtualIndex:function(I){I.forEach(function(C){C.removed.forEach(this._removeItem,this);C.index<this._virtualStart&&(C=Math.max(C.addedCount-C.removed.length,C.index-this._virtualStart),this._virtualStart+=C,this._focusedVirtualIndex>=0&&(this._focusedVirtualIndex+=C))},this)},
_removeItem:function(I){this.$.selector.deselect(I);this._focusedItem&&this.modelForElement(this._focusedItem)[this.as]===I&&this._removeFocusedItem()},
_iterateItems:function(I,C){var y,k;if(arguments.length===2&&C)for(k=0;k<C.length;k++){var F=C[k];var z=this._computeVidx(F);if((y=I.call(this,F,z))!=null)return y}else{F=this._physicalStart;for(z=this._virtualStart;F<this._physicalCount;F++,z++)if((y=I.call(this,F,z))!=null)return y;for(F=0;F<this._physicalStart;F++,z++)if((y=I.call(this,F,z))!=null)return y}},
_computeVidx:function(I){return I>=this._physicalStart?this._virtualStart+(I-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+I},
_assignModels:function(I){this._iterateItems(function(C,y){var k=this._physicalItems[C],F=this.items&&this.items[y];if(F!=null){var z=this.modelForElement(k);z.__key__=null;this._forwardProperty(z,this.as,F);this._forwardProperty(z,this.selectedAs,this.$.selector.isSelected(F));this._forwardProperty(z,this.indexAs,y);this._forwardProperty(z,"tabIndex",this._focusedVirtualIndex===y?0:-1);this._physicalIndexForKey[z.__key__]=C;z._flushProperties&&z._flushProperties(!0);k.removeAttribute("hidden")}else k.setAttribute("hidden",
"")},I)},
_updateMetrics:function(I){_.zJ();var C=0,y=0,k=this._physicalAverageCount,F=this._physicalAverage;this._iterateItems(function(z){y+=this._physicalSizes[z];this._physicalSizes[z]=this._physicalItems[z].offsetHeight;C+=this._physicalSizes[z];this._physicalAverageCount+=this._physicalSizes[z]?1:0},I);
this.grid?(this._updateGridMetrics(),this._physicalSize=Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight):(y=this._itemsPerRow===1?y:Math.ceil(this._physicalCount/this._itemsPerRow)*this._rowHeight,this._physicalSize=this._physicalSize+C-y,this._itemsPerRow=1);this._physicalAverageCount!==k&&(this._physicalAverage=Math.round((F*k+C)/this._physicalAverageCount))},
_updateGridMetrics:function(){this._itemWidth=this._physicalCount>0?this._physicalItems[0].getBoundingClientRect().width:200;this._rowHeight=this._physicalCount>0?this._physicalItems[0].offsetHeight:200;this._itemsPerRow=this._itemWidth?Math.floor(this._viewportWidth/this._itemWidth):this._itemsPerRow},
_positionItems:function(){this._adjustScrollPosition();var I=this._physicalTop;if(this.grid){var C=(this._viewportWidth-this._itemsPerRow*this._itemWidth)/2;this._iterateItems(function(y,k){var F=Math.floor(k%this._itemsPerRow*this._itemWidth+C);this._isRTL&&(F*=-1);this.translate3d(F+"px",I+"px",0,this._physicalItems[y]);this._shouldRenderNextRow(k)&&(I+=this._rowHeight)})}else this._iterateItems(function(y){this.translate3d(0,I+"px",0,this._physicalItems[y]);
I+=this._physicalSizes[y]})},
_getPhysicalSizeIncrement:function(I){return this.grid?this._computeVidx(I)%this._itemsPerRow!==this._itemsPerRow-1?0:this._rowHeight:this._physicalSizes[I]},
_shouldRenderNextRow:function(I){return I%this._itemsPerRow===this._itemsPerRow-1},
_adjustScrollPosition:function(){var I=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(I!==0){this._physicalTop=this._physicalTop-I;var C=this._scrollPosition;!Csw&&C>0&&this._resetScrollPosition(C-I)}},
_resetScrollPosition:function(I){this.scrollTarget&&I>=0&&(this._scrollPosition=this._scrollTop=I)},
_updateScrollerSize:function(I){this.grid?this._estScrollHeight=this._virtualRowCount*this._rowHeight:this._estScrollHeight=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;if((I=(I=(I=I||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(I){return this.scrollToIndex(this.items.indexOf(I))},
scrollToIndex:function(I){if(!(typeof I!=="number"||I<0||I>this.items.length-1)&&(_.zJ(),this._physicalCount!==0)){I=this._clamp(I,0,this._virtualCount-1);if(!this._isIndexRendered(I)||I>=this._maxVirtualStart)this._virtualStart=this.grid?I-this._itemsPerRow*2:I-1;this._manageFocus();this._assignModels();this._updateMetrics();this._physicalTop=Math.floor(this._virtualStart/this._itemsPerRow)*this._physicalAverage;for(var C=this._physicalStart,y=this._virtualStart,k=0,F=this._hiddenContentSize;y<I&&
k<=F;)k+=this._getPhysicalSizeIncrement(C),C=(C+1)%this._physicalCount,y++;this._updateScrollerSize(!0);this._positionItems();this._resetScrollPosition(this._physicalTop+this._scrollOffset+k);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)},_.D_)},
selectItem:function(I){return this.selectIndex(this.items.indexOf(I))},
selectIndex:function(I){if(!(I<0||I>=this._virtualCount)){!this.multiSelection&&this.selectedItem&&this.clearSelection();if(this._isIndexRendered(I)){var C=this.modelForElement(this._physicalItems[this._getPhysicalIndex(I)]);C&&(C[this.selectedAs]=!0);this.updateSizeForIndex(I)}this.$.selector.selectIndex(I)}},
deselectItem:function(I){return this.deselectIndex(this.items.indexOf(I))},
deselectIndex:function(I){I<0||I>=this._virtualCount||(this._isIndexRendered(I)&&(this.modelForElement(this._physicalItems[this._getPhysicalIndex(I)])[this.selectedAs]=!1,this.updateSizeForIndex(I)),this.$.selector.deselectIndex(I))},
toggleSelectionForItem:function(I){return this.toggleSelectionForIndex(this.items.indexOf(I))},
toggleSelectionForIndex:function(I){(this.$.selector.isIndexSelected?this.$.selector.isIndexSelected(I):this.$.selector.isSelected(this.items[I]))?this.deselectIndex(I):this.selectIndex(I)},
clearSelection:function(){this._iterateItems(function(I){this.modelForElement(this._physicalItems[I])[this.selectedAs]=!1});
this.$.selector.clearSelection()},
_selectionEnabledChanged:function(I){(I?this.listen:this.unlisten).call(this,this,"tap","_selectionHandler")},
_selectionHandler:function(I){var C=this.modelForElement(I.target);if(C){var y=_.lG(I).path[0];I=this._getActiveElement();var k=this._physicalItems[this._getPhysicalIndex(C[this.indexAs])];if(y.localName!=="input"&&y.localName!=="button"&&y.localName!=="select"){y=C.tabIndex;C.tabIndex=-100;var F=I?I.tabIndex:-1;C.tabIndex=y;I&&k!==I&&k.contains(I)&&F!==-100||this.toggleSelectionForItem(C[this.as])}}},
_multiSelectionChanged:function(I){this.clearSelection();this.$.selector.multi=I},
updateSizeForItem:function(I){return this.updateSizeForIndex(this.items.indexOf(I))},
updateSizeForIndex:function(I){if(!this._isIndexRendered(I))return null;this._updateMetrics([this._getPhysicalIndex(I)]);this._positionItems();return null},
_manageFocus:function(){var I=this._focusedVirtualIndex;I>=0&&I<this._virtualCount?this._isIndexRendered(I)?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(I){this._itemsPerRow=this._itemsPerRow||1;return this.grid?Math.ceil(I/this._itemsPerRow)*this._itemsPerRow:I},
_isIndexRendered:function(I){return I>=this._virtualStart&&I<=this._virtualEnd},
_isIndexVisible:function(I){return I>=this.firstVisibleIndex&&I<=this.lastVisibleIndex},
_getPhysicalIndex:function(I){return(this._physicalStart+(I-this._virtualStart))%this._physicalCount},
focusItem:function(I){this._focusPhysicalItem(I)},
_focusPhysicalItem:function(I){if(!(I<0||I>=this._virtualCount)){this._restoreFocusedItem();this._isIndexRendered(I)||this.scrollToIndex(I);var C=this._physicalItems[this._getPhysicalIndex(I)],y=this.modelForElement(C),k;y.tabIndex=-100;C.tabIndex===-100&&(k=C);k||(k=_.lG(C).querySelector('[tabindex="-100"]'));y.tabIndex=0;this._focusedVirtualIndex=I;k&&k.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 I=this._focusedPhysicalIndex;if(!(this._offscreenFocusedItem||this._focusedVirtualIndex<0)){if(!this._focusBackfillItem){var C=this.stamp(null);this._focusBackfillItem=C.root.querySelector("*");this._itemsParent.appendChild(C.root)}this._offscreenFocusedItem=this._physicalItems[I];this.modelForElement(this._offscreenFocusedItem).tabIndex=0;this._physicalItems[I]=this._focusBackfillItem;this._focusedPhysicalIndex=I;this.translate3d(0,"-10000px",0,this._offscreenFocusedItem)}},
_restoreFocusedItem:function(){if(this._offscreenFocusedItem&&!(this._focusedVirtualIndex<0)){this._assignModels();var I=this._focusedPhysicalIndex=this._getPhysicalIndex(this._focusedVirtualIndex),C=this._physicalItems[I];if(C){var y=this.modelForElement(C),k=this.modelForElement(this._offscreenFocusedItem);y[this.as]===k[this.as]?(this._focusBackfillItem=C,y.tabIndex=-1,this._physicalItems[I]=this._offscreenFocusedItem,this.translate3d(0,"-10000px",0,this._focusBackfillItem)):(this._removeFocusedItem(),
this._focusBackfillItem=null);this._offscreenFocusedItem=null}}},
_didFocus:function(I){I=this.modelForElement(I.target);var C=this.modelForElement(this._focusedItem),y=this._offscreenFocusedItem!==null,k=this._focusedVirtualIndex;I&&(C===I?this._isIndexVisible(k)||this.scrollToIndex(k):(this._restoreFocusedItem(),C&&(C.tabIndex=-1),I.tabIndex=0,this._focusedVirtualIndex=k=I[this.indexAs],this._focusedPhysicalIndex=this._getPhysicalIndex(k),this._focusedItem=this._physicalItems[this._focusedPhysicalIndex],y&&!this._offscreenFocusedItem&&this._update()))},
_keydownHandler:function(I){switch(I.keyCode){case 40:this._focusedVirtualIndex<this._virtualCount-1&&I.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&&I.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(I)}},
_clamp:function(I,C,y){return Math.min(y,Math.max(C,I))},
_debounce:function(I,C,y){this._debouncers=this._debouncers||{};this._debouncers[I]=_.on(this._debouncers[I],y,C.bind(this));_.yP(this._debouncers[I])},
_forwardProperty:function(I,C,y){I._setPendingProperty(C,y)},
_forwardHostPropV2:function(I,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).forwardHostProp(I,C)},this)},
_notifyInstancePropV2:function(I,C,y){fnW(this.as,C)&&(I=I[this.indexAs],C==this.as&&(this.items[I]=y),this.notifyPath(T2(this.as,"items."+I,C),y))},
_getStampedChildren:function(){return this._physicalItems},
_forwardInstancePath:function(I,C,y){C.indexOf(this.as+".")===0&&this.notifyPath("items."+I.__key__+"."+C.slice(this.as.length+1),y)},
_forwardParentPath:function(I,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&this.modelForElement(y).notifyPath(I,C)},this)},
_forwardParentProp:function(I,C){(this._physicalItems||[]).concat([this._offscreenFocusedItem,this._focusBackfillItem]).forEach(function(y){y&&(this.modelForElement(y)[I]=C)},this)},
_getActiveElement:function(){var I=this._itemsParent.node.domHost;return _.lG(I?I.root:document).activeElement},
_scrollTargetChanged:function(I,C){this._oldScrollTarget&&(this._toggleScrollListener(!1,this._oldScrollTarget),this._oldScrollTarget=null);if(C)if(I==="document")this.scrollTarget=this._doc;else if(typeof I==="string"){var y,k;this.scrollTarget=(C=(k=(y=this.domHost)==null?void 0:y.polymerController)!=null?k:this.domHost)&&C.$?C.$[I]:_.lG(this.ownerDocument).querySelector("#"+I)}else this._isValidScrollTarget()&&(this._oldScrollTarget=I,this._toggleScrollListener(this._shouldHaveListener,I))}});var scd;var oXq;var yad=function(I,C,y,k){I-=y;C-=k;return Math.sqrt(I*I+C*C)},kxq=window.performance&&window.performance.now?window.performance.now.bind(window.performance):Date.now;
VZX.prototype={get boundingRect(){return this.element.getBoundingClientRect()}};var jdK=function(I){I.maxRadius=0;I.mouseDownStart=0;I.mouseUpStart=0;I.xStart=0;I.yStart=0;I.xEnd=0;I.yEnd=0;I.containerMetrics=new VZX(I.element)};
leY.prototype={get recenters(){return this.element.recenters},get center(){return this.element.center},get mouseDownElapsed(){if(!this.mouseDownStart)return 0;var I=kxq()-this.mouseDownStart;this.mouseUpStart&&(I-=this.mouseUpElapsed);return I},get mouseUpElapsed(){return this.mouseUpStart?kxq()-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 I=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(I*(1-Math.pow(80,-(this.mouseInteractionSeconds/(1.1-I/300*.2))))),this.maxRadius,300)},get opacity(){return this.mouseUpStart?Math.max(0,this.initialOpacity-
this.mouseUpElapsedSeconds*this.opacityDecayVelocity):this.initialOpacity},get outerOpacity(){return Math.max(0,Math.min(this.mouseUpElapsedSeconds*.3,this.opacity))},get isOpacityFullyDecayed(){return this.opacity<.01&&this.radius>=Math.min(this.maxRadius,300)},get isRestingAtMaxRadius(){return this.opacity>=this.initialOpacity&&this.radius>=Math.min(this.maxRadius,300)},get isAnimationComplete(){return this.mouseUpStart?this.isOpacityFullyDecayed:this.isRestingAtMaxRadius},get translationFraction(){return Math.min(1,
this.radius/this.containerMetrics.size*2/Math.sqrt(2))},get xNow(){return this.xEnd?this.xStart+this.translationFraction*(this.xEnd-this.xStart):this.xStart},get yNow(){return this.yEnd?this.yStart+this.translationFraction*(this.yEnd-this.yStart):this.yStart},get isMouseDown(){return this.mouseDownStart&&!this.mouseUpStart},draw:function(){this.wave.style.opacity=this.opacity;var I=this.radius/(this.containerMetrics.size/2);var C=this.xNow-this.containerMetrics.width/2;var y=this.yNow-this.containerMetrics.height/
2;this.waveContainer.style.webkitTransform="translate("+C+"px, "+y+"px)";this.waveContainer.style.transform="translate3d("+C+"px, "+y+"px, 0)";this.wave.style.webkitTransform="scale("+I+","+I+")";this.wave.style.transform="scale3d("+I+","+I+",1)"},
downAction:function(I){var C=this.containerMetrics.width/2,y=this.containerMetrics.height/2;jdK(this);this.mouseDownStart=kxq();this.center?(this.xStart=C,this.yStart=y):(this.xStart=I?I.detail.x-this.containerMetrics.boundingRect.left:this.containerMetrics.width/2,this.yStart=I?I.detail.y-this.containerMetrics.boundingRect.top:this.containerMetrics.height/2);this.recenters&&(this.xEnd=C,this.yEnd=y);I=this.containerMetrics;C=this.xStart;y=this.yStart;this.maxRadius=Math.max(yad(C,y,0,0),yad(C,y,
I.width,0),yad(C,y,0,I.height),yad(C,y,I.width,I.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=kxq())},
remove:function(){_.lG(_.lG(this.waveContainer).parentNode).removeChild(this.waveContainer)}};
_.pK({_template:function(){if(oXq!==void 0)return oXq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;scd===void 0&&(scd=document.createElement("template"));var k=scd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return oXq=I},
is:"tp-yt-paper-ripple",behaviors:[_.Ds],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(){_.lG(this).parentNode.nodeType==11?this.keyEventTarget=_.lG(this).getOwnerRoot().host:this.keyEventTarget=_.lG(this).parentNode;var I=this.keyEventTarget;this.listen(I,"up","uiUpAction");this.listen(I,"down","uiDownAction")},
detached:function(){this.unlisten(this.keyEventTarget,"up","uiUpAction");this.unlisten(this.keyEventTarget,"down","uiDownAction");this.keyEventTarget=null;this.ripples.forEach(function(I){I.remove()});
this.ripples.length=0;this._setAnimating(!1)},
get shouldKeepAnimating(){for(var I=0;I<this.ripples.length;++I)if(!this.ripples[I].isAnimationComplete)return!0;return!1},simulatedRipple:function(){this.downAction(null);this.async(function(){this.upAction()},1)},
uiDownAction:function(I){this.noink||this.downAction(I)},
downAction:function(I){this.holdDown&&this.ripples.length>0||(this.addRipple().downAction(I),this._animating||(this._animating=!0,this.animate()))},
uiUpAction:function(I){this.noink||this.upAction(I)},
upAction:function(I){this.holdDown||(this.ripples.forEach(function(C){C.upAction(I)}),this._animating=!0,this.animate())},
onAnimationComplete:function(){for(var I=0;I<this.ripples.length;++I){var C=this.ripples[I];C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}this._animating=!1;this.$.background.style.backgroundColor="";this.fire("transitionend")},
addRipple:function(){var I=new leY(this);_.lG(this.$.waves).appendChild(I.waveContainer);this.$.background.style.backgroundColor=I.color;this.ripples.push(I);this._setAnimating(!0);return I},
removeRipple:function(I){var C=this.ripples.indexOf(I);C<0||(this.ripples.splice(C,1),I.remove(),this.ripples.length||this._setAnimating(!1))},
animate:function(){if(this._animating){var I;for(I=0;I<this.ripples.length;++I){var C=this.ripples[I];C.draw();this.$.background.style.opacity=C.outerOpacity;C.isOpacityFullyDecayed&&!C.isRestingAtMaxRadius&&this.removeRipple(C)}if(this.shouldKeepAnimating)window.requestAnimationFrame(this._boundAnimate);else this.onAnimationComplete()}},
animateRipple:function(){return this.animate()},
_onEnterKeydown:function(){this.uiDownAction();this.async(this.uiUpAction,1)},
_onSpaceKeydown:function(){this.uiDownAction()},
_onSpaceKeyup:function(){this.uiUpAction()},
_holdDownChanged:function(I,C){C!==void 0&&(I?this.downAction():this.upAction())}});var BV={properties:{noink:{type:Boolean,observer:"_noinkChanged"},_rippleContainer:{type:Object},_ripple:{type:Object}},_buttonStateChanged:function(){this.focused&&this.ensureRipple()},
_downHandler:function(I){Qu._downHandler.call(this,I);this.pressed&&this.ensureRipple(I)},
ensureRipple:function(I){if(!this.hasRipple()){this._ripple=this._createRipple();this._ripple.noink=this.noink;var C=this._rippleContainer||this.root;C&&_.lG(C).appendChild(this._ripple);if(I){C=_.lG(this._rippleContainer||this);var y=_.lG(I).rootTarget;C.deepContains(y)&&this._ripple.uiDownAction(I)}}},
getRipple:function(){this.ensureRipple();return this._ripple},
hasRipple:function(){return!!this._ripple},
_createRipple:function(){return document.createElement("tp-yt-paper-ripple")},
_noinkChanged:function(I){this.hasRipple()&&(this._ripple.noink=I)}};var F2m={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 I=1;this.disabled?I=0:this.active||this.pressed?I=4:this.receivedFocusFromKeyboard&&(I=3);this._setElevation(I)},
_computeKeyboardClass:function(I){this.toggleClass("keyboard-focus",I)},
_spaceKeyDownHandler:function(I){Qu._spaceKeyDownHandler.call(this,I);this.hasRipple()&&this.getRipple().ripples.length<1&&this._ripple.uiDownAction()},
_spaceKeyUpHandler:function(I){Qu._spaceKeyUpHandler.call(this,I);this.hasRipple()&&this._ripple.uiUpAction()}},uS5=[iEw,
_.pV,BV,F2m];_.z9q={observers:["_focusedChanged(receivedFocusFromKeyboard)"],_focusedChanged:function(I){I&&this.ensureRipple();this.hasRipple()&&(this._ripple.holdDown=I)},
_createRipple:function(){var I=BV._createRipple();I.id="ink";I.setAttribute("center","");I.classList.add("circle");return I}};
_.Tlc=[iEw,_.pV,BV,_.z9q];_.ca5=[_.Tlc,Pkw,{_checkedChanged:function(){ns0._checkedChanged.call(this);this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},
_buttonStateChanged:function(){BV._buttonStateChanged.call(this);!this.disabled&&this.isAttached&&(this.checked=this.active)}}];var e95;var rae;var inw=function(){};
_.u=inw.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._buttonStateChanged=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._createRipple=function(){};
_.u._noinkChanged=function(){};
_.u._computeKeyboardClass=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
_.u._setElevation=function(){};
inw=_.pK({_template:function(){if(rae!==void 0)return rae;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;e95===void 0&&(e95=document.createElement("template"));var k=e95;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return rae=I},
is:"tp-yt-paper-button",hostAttributes:{"style-target":"host"},behaviors:[uS5],properties:{raised:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"_calculateElevation"}},_calculateElevation:function(){this.raised?F2m._calculateElevation.apply(this):this._setElevation(0)}});var wpY;var nXw;var Psb={hostAttributes:{role:"dialog",tabindex:"-1"},properties:{modal:{type:Boolean,value:!1},modern:{type:Boolean,value:!1,reflectToAttribute:!0},__readied:{type:Boolean,value:!1}},observers:["_modalChanged(modal, __readied)"],listeners:{tap:"_onDialogTap",click:"_onDialogClickWrapped"},_onDialogTap:function(I){_.V("dialog_behavior_no_tap_killswitch")&&this._onDialogClick(I)},
_onDialogClickWrapped:function(I){_.V("dialog_behavior_no_tap_killswitch")||this._onDialogClick(I)},
ready:function(){this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick;this.__prevNoCancelOnEscKey=this.noCancelOnEscKey;this.__prevWithBackdrop=this.withBackdrop;this.__readied=!0},
_modalChanged:function(I,C){C&&(I?(this.__prevNoCancelOnOutsideClick=this.noCancelOnOutsideClick,this.__prevNoCancelOnEscKey=this.noCancelOnEscKey,this.__prevWithBackdrop=this.withBackdrop,this.withBackdrop=this.noCancelOnEscKey=this.noCancelOnOutsideClick=!0,this.setAttribute("aria-modal","true")):(this.noCancelOnOutsideClick=this.noCancelOnOutsideClick&&this.__prevNoCancelOnOutsideClick,this.noCancelOnEscKey=this.noCancelOnEscKey&&this.__prevNoCancelOnEscKey,this.withBackdrop=this.withBackdrop&&
this.__prevWithBackdrop))},
_updateClosingReasonConfirmed:function(I){this.closingReason=this.closingReason||{};this.closingReason.confirmed=I},
_onDialogClick:function(I){for(var C=_.lG(I).path,y=0,k,F=C.indexOf((k=this.hostElement)!=null?k:this);y<F;y++)if(k=C[y],k.hasAttribute&&(k.hasAttribute("dialog-dismiss")||k.hasAttribute("dialog-confirm"))){this._updateClosingReasonConfirmed(k.hasAttribute("dialog-confirm"));this.close();I.stopPropagation();break}}},L2b=[_.Zs,
Psb];var DE8=document.createElement("template");_.Y(DE8,'<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(DE8.content);var ppP=document.createElement("template");_.Y(ppP,'<custom-style><style is="custom-style"></style></custom-style>');document.head.appendChild(ppP.content);_.pK({_template:function(){if(nXw!==void 0)return nXw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;wpY===void 0&&(wpY=document.createElement("template"));var k=wpY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return nXw=I},
is:"tp-yt-paper-dialog",hostAttributes:{"style-target":"host"},behaviors:[L2b,XPc],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 Qc0;var Nlq;_.pK({_template:function(){if(Nlq!==void 0)return Nlq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Qc0===void 0&&(Qc0=document.createElement("template"));var k=Qc0;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Nlq=I},
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 I,C,y;if(((I=window.ShadyDOM)==null?void 0:I.noPatch)!==!0&&((C=window.ShadyDOM)==null?void 0:C.noPatch)!=="on-demand"||((y=this.__shady_parentNode)==null?void 0:y.nodeName)!=="#document-fragment")this.dialogElement=this.dialogElement||this.parentElement;this.dialogElement&&this.dialogElement.behaviors&&this.dialogElement.behaviors.indexOf(Psb)>=0?(this.dialogElement.sizingTarget=this.scrollTarget,this.scrollTarget.classList.remove("fit")):this.dialogElement&&this.scrollTarget.classList.add("fit")}});var VLb=_.hu(['<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>']),jcc=_.D15(VLb);jcc.setAttribute("style","display: none;");document.head.appendChild(jcc.content);var lZc;var Xpq;var $E5;var R95;_.pK({is:"tp-yt-paper-menu-grow-height-animation",_template:null,behaviors:[bu],configure:function(I){var C=I.node,y=C.getBoundingClientRect().height;return this._effect=new KeyframeEffect(C,[{height:y/2+"px"},{height:y+"px"}],this.timingFromConfig(I))}});
_.pK({is:"tp-yt-paper-menu-grow-width-animation",_template:null,behaviors:[bu],configure:function(I){var C=I.node,y=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:y/2+"px"},{width:y+"px"}],this.timingFromConfig(I))}});
_.pK({is:"tp-yt-paper-menu-shrink-width-animation",_template:null,behaviors:[bu],configure:function(I){var C=I.node,y=C.getBoundingClientRect().width;return this._effect=new KeyframeEffect(C,[{width:y+"px"},{width:y-y/20+"px"}],this.timingFromConfig(I))}});
_.pK({is:"tp-yt-paper-menu-shrink-height-animation",_template:null,behaviors:[bu],configure:function(I){var C=I.node,y=C.getBoundingClientRect().height;this.setPrefixedProperty(C,"transformOrigin","0 0");return this._effect=new KeyframeEffect(C,[{height:y+"px",transform:"translateY(0)"},{height:y/2+"px",transform:"translateY(-20px)"}],this.timingFromConfig(I))}});var EJ={ANIMATION_CUBIC_BEZIER:"cubic-bezier(.3,.95,.5,1)",MAX_ANIMATION_TIME_MS:400},bnu=function(){};
_.u=bnu.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._focusBlurHandler=function(){};
_.u._changedControlState=function(){};
_.u._setFocused=function(){};
bnu=_.pK({_template:function(){if(R95!==void 0)return R95;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;$E5===void 0&&($E5=document.createElement("template"));var k=$E5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return R95=I},
is:"tp-yt-paper-menu-button",behaviors:[_.Ds,_.pV],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:EJ.ANIMATION_CUBIC_BEZIER}},{name:"tp-yt-paper-menu-grow-height-animation",timing:{delay:100,duration:275,easing:EJ.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:EJ.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 I=_.lG(this.$.content).getDistributedNodes(),C=0,y=I.length;C<y;C++)if(I[C].nodeType===Node.ELEMENT_NODE)return I[C]},toggle:function(){this.opened?
this.close():this.open()},
open:function(){this.disabled||this.$.dropdown.open()},
close:function(){this.$.dropdown.close()},
_onIronSelect:function(){this.ignoreSelect||this.close()},
_onIronActivate:function(){this.closeOnActivate&&this.close()},
_openedChanged:function(I,C){I?(this._dropdownContent=this.contentElement,this.fire("paper-dropdown-open")):C!=null&&this.fire("paper-dropdown-close")},
_disabledChanged:function(I){_.pV._disabledChanged.apply(this,arguments);I&&this.opened&&this.close()},
__onIronOverlayCanceled:function(I){var C=this.$.trigger;_.lG(I.detail).path.indexOf(C)>-1&&I.preventDefault()}});
Object.keys(EJ).forEach(function(I){bnu[I]=EJ[I]});var Ydw=_.Nu.IronButtonState,Gx5=(0,_.L6)(HTMLElement);
_.pK({_template:function(){if(Xpq!==void 0)return Xpq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;lZc===void 0&&(lZc=document.createElement("template"));var k=lZc;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Xpq=I},
is:"tp-yt-paper-dropdown-menu-light",hostAttributes:{"style-target":"host"},behaviors:[Ydw,_.pV,BV,_.Vu,_.Xo],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(I){var C=(0,_.P1)(this);C.attachShadow({mode:"open",delegatesFocus:!0,shadyUpgradeFragment:I});C.shadowRoot.appendChild(I);return Gx5.prototype._attachDom.call(this,I)},
focus:function(){this.$["dropdown-trigger"].focus()},
attached:function(){var I=this.contentElement;I&&I.selectedItem&&this._setSelectedItem(I.selectedItem)},
get contentElement(){for(var I=_.lG(this.$.content).getDistributedNodes(),C=0,y=I.length;C<y;C++)if(I[C].nodeType===Node.ELEMENT_NODE)return I[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(I){this._setSelectedItem(I.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(I){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)===this&&this.open()},
_selectedItemChanged:function(I){var C="";I?C=I.label||I.getAttribute("label")||I.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(I,C){return C?C:I?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var I=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",I)},
_computeLabelClass:function(I,C,y){var k="label";if(I)y&&(k+=" label-is-hidden");else if(y||C)k+=" label-is-floating";return k},
_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 fZ0;var SdS;_.pK({is:"tp-yt-paper-icon-button",_template:function(){if(SdS!==void 0)return SdS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;fZ0===void 0&&(fZ0=document.createElement("template"));var k=fZ0;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return SdS=I},
hostAttributes:{role:"button",tabindex:"0","style-target":"host"},behaviors:[_.Tlc],properties:{src:{type:String},icon:{type:String},alt:{type:String,observer:"_altChanged"}},_altChanged:function(I,C){var y=this.getAttribute("aria-label");y&&C!=y||this.setAttribute("aria-label",I)}});var K2e;var Aau;_.hw=[iEw,_.pV,{hostAttributes:{role:"option",tabindex:"0"}}];_.pK({_template:function(){if(Aau!==void 0)return Aau;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;K2e===void 0&&(K2e=document.createElement("template"));var k=K2e;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Aau=I},
is:"tp-yt-paper-icon-item",hostAttributes:{"style-target":"host"},behaviors:[_.hw]});var gXe;var vXd;var W2w={attached:function(){this.fire("addon-attached")},
update:function(){}};var dEu=1,xEw=1,qdw=1,mEw=[_.pV,_.Ds,{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();!Je&&this.inputElement&&this._typesThatHaveText.indexOf(this.inputElement.type)!==-1&&(this.alwaysFloatLabel=!0)},
_appendStringWithSpace:function(I,C){I?I=I+" "+C:I=C;return I},
_onAddonAttached:function(I){I=_.lG(I).rootTarget;if(I.id)this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,I.id);else{var C="paper-input-add-on-"+xEw++;I.id=C;this._ariaDescribedBy=this._appendStringWithSpace(this._ariaDescribedBy,C)}},
validate:function(){return this.inputElement.validate()},
_focusBlurHandler:function(I){_.pV._focusBlurHandler.call(this,I);this.focused&&!this._shiftTabPressed&&this._focusableElement&&this._focusableElement.focus()},
_onShiftTabDown:function(){var I=this.getAttribute("tabindex");this._shiftTabPressed=!0;this.setAttribute("tabindex","-1");this.async(function(){this.setAttribute("tabindex",I);this._shiftTabPressed=!1},1)},
_handleAutoValidate:function(){this.autoValidate&&this.validate()},
updateValueAndPreserveCaret:function(I){try{var C=this.inputElement.selectionStart;this.value=I;this.inputElement.selectionStart=C;this.inputElement.selectionEnd=C}catch(y){this.value=I}},
_computeAlwaysFloatLabel:function(I,C){return C||I},
_updateAriaLabelledBy:function(){var I=_.lG(this.root).querySelector("label");if(I){if(I.id)var C=I.id;else C="paper-input-label-"+dEu++,I.id=C;this._ariaLabelledBy=C}else this._ariaLabelledBy=""},
_generateInputId:function(){this._inputId&&this._inputId!==""||(this._inputId="input-"+qdw++)},
_onChange:function(I){this.shadowRoot&&this.fire(I.type,{sourceEvent:I},{node:this,bubbles:I.bubbles,cancelable:I.cancelable})},
_autofocusChanged:function(){if(this.autofocus&&this._focusableElement){var I=document.activeElement;I instanceof HTMLElement&&I!==document.body&&I!==document.documentElement||this._focusableElement.focus()}}}];var Znq;var BlY;_.pK({_template:function(){if(BlY!==void 0)return BlY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Znq===void 0&&(Znq=document.createElement("template"));var k=Znq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return BlY=I},
is:"tp-yt-paper-input-char-counter",hostAttributes:{"style-target":"host"},behaviors:[W2w],properties:{_charCounterStr:{type:String,value:"0"}},update:function(I){if(I.inputElement){I.value=I.value||"";var C=I.value.toString().length.toString();I.inputElement.hasAttribute("maxlength")&&(C+="/"+I.inputElement.getAttribute("maxlength"));this._charCounterStr=C}}});var EXq;var h9u;_.pK({_template:function(){if(h9u!==void 0)return h9u;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;EXq===void 0&&(EXq=document.createElement("template"));var k=EXq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return h9u=I},
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 yz(this.attrForValue)},get _inputElement(){return _.lG(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(I){this._addons||(this._addons=[]);I=I.target;this._addons.indexOf(I)===-1&&(this._addons.push(I),this.isAttached&&this._handleValue(this._inputElement))},
_onFocus:function(){this._setFocused(!0)},
_onBlur:function(){this._setFocused(!1);this._handleValueAndAutoValidate(this._inputElement)},
_onInput:function(I){this._handleValueAndAutoValidate(I.target)},
_onValueChanged:function(I){var C=I.target;if(this.__isFirstValueUpdate&&(this.__isFirstValueUpdate=!1,C.value===void 0||C.value===""))return;this._handleValueAndAutoValidate(I.target)},
_handleValue:function(I){var C=this._inputElementValue;C||C===0||I.type==="number"&&!I.checkValidity()?this._inputHasContent=!0:this._inputHasContent=!1;this.updateAddons({inputElement:I,value:C,invalid:this.invalid})},
_handleValueAndAutoValidate:function(I){this.autoValidate&&I&&(this.invalid=!(I.validate?I.validate(this._inputElementValue):I.checkValidity()));this._handleValue(I)},
_onIronInputValidate:function(){this.invalid=this._inputElement.invalid},
_invalidChanged:function(){this._addons&&this.updateAddons({invalid:this.invalid})},
updateAddons:function(I){if(this._addons)for(var C,y=0;C=this._addons[y];y++)C.update(I)},
_computeInputContentClass:function(I,C,y,k,F){var z="input-content";I?(F&&(z+=" label-is-hidden"),k&&!this.noUnfloatedLabelError&&(z+=" is-invalid")):(I=this.querySelector("label"),C||F?(z+=" label-is-floating",this.$.labelAndInputContainer.style.position="static",k?z+=" is-invalid":y&&(z+=" label-is-highlighted")):(I&&(this.$.labelAndInputContainer.style.position="relative"),k&&!this.noUnfloatedLabelError&&(z+=" is-invalid")));y&&(z+=" focused");return z},
_computeUnderlineClass:function(I,C){var y="underline";C?y+=" is-invalid":I&&(y+=" is-highlighted");return y},
_computeAddOnContentClass:function(I,C){var y="add-on-content";C?y+=" is-invalid":I&&(y+=" is-highlighted");return y}});var UEw;var HnS;_.pK({_template:function(){if(HnS!==void 0)return HnS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;UEw===void 0&&(UEw=document.createElement("template"));var k=UEw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return HnS=I},
is:"tp-yt-paper-input-error",hostAttributes:{"style-target":"host"},behaviors:[W2w],properties:{invalid:{readOnly:!0,reflectToAttribute:!0,type:Boolean}},update:function(I){this._setInvalid(I.invalid)}});_.pK({is:"tp-yt-paper-input",_template:function(){if(vXd!==void 0)return vXd;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;gXe===void 0&&(gXe=document.createElement("template"));var k=gXe;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return vXd=I},
behaviors:[mEw,_.Vu],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 tL8;var Jac;_.pK({_template:function(){if(Jac!==void 0)return Jac;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=
I.content,y=C.insertBefore;tL8===void 0&&(tL8=document.createElement("template"));var k=tL8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Jac=I},
is:"tp-yt-paper-item",hostAttributes:{"style-target":"host"},behaviors:[_.hw]});var On5;var aZ8;_.pK({_template:function(){if(aZ8!==void 0)return aZ8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;On5===void 0&&(On5=document.createElement("template"));var k=On5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return aZ8=I},
is:"tp-yt-paper-item-body"});var ML0;var IHc;var Czm=function(){};
_.u=Czm.prototype;_.u.indexOf=function(){};
_.u.selectPrevious=function(){};
_.u.selectNext=function(){};
_.u.selectIndex=function(){};
_.u.forceSynchronousItemUpdate=function(){};
_.u._checkFallback=function(){};
_.u._addListener=function(){};
_.u._removeListener=function(){};
_.u._activateEventChanged=function(){};
_.u._updateItems=function(){};
_.u._selectSelected=function(){};
_.u._filterItem=function(){};
_.u._valueToItem=function(){};
_.u._valueToIndex=function(){};
_.u._indexToValue=function(){};
_.u._valueForItem=function(){};
_.u._observeItems=function(){};
_.u._itemActivate=function(){};
_.u.multiChanged=function(){};
_.u._updateAttrForSelected=function(){};
_.u._updateSelected=function(){};
_.u._selectMulti=function(){};
_.u._selectionChange=function(){};
_.u._toggleSelected=function(){};
_.u._valuesToItems=function(){};
_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u.select=function(){};
_.u._resetTabindices=function(){};
_.u._updateMultiselectable=function(){};
_.u._focusWithKeyboardEvent=function(){};
_.u._clearSearchText=function(){};
_.u._focusPrevious=function(){};
_.u._focusNext=function(){};
_.u._applySelection=function(){};
_.u._focusedItemChanged=function(){};
_.u._onIronItemsChanged=function(){};
_.u._onShiftTabDown=function(){};
_.u._onFocus=function(){};
_.u._onUpKey=function(){};
_.u._onDownKey=function(){};
_.u._onEscKey=function(){};
_.u._onKeydown=function(){};
_.u._activateHandler=function(){};
_.u._disabledChanged=function(){};
_.u._setSelectedItem=function(){};
_.u._setItems=function(){};
_.u._setSelectedItems=function(){};
_.u._setFocusedItem=function(){};
Czm=_.pK({_template:function(){if(IHc!==void 0)return IHc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;ML0===void 0&&(ML0=document.createElement("template"));var k=ML0;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return IHc=I},
is:"tp-yt-paper-listbox",behaviors:[Q88],hostAttributes:{role:"listbox"}});var s7S;var oHm;var yuc={properties:{active:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__activeChanged"},alt:{type:String,value:"loading",observer:"__altChanged"},__coolingDown:{type:Boolean,value:!1}},__computeContainerClasses:function(I,C){return[I||C?"active":"",C?"cooldown":""].join(" ")},
__activeChanged:function(I,C){this.__setAriaHidden(!I);this.__coolingDown=!I&&C},
__altChanged:function(I){this.setAttribute("aria-label",I||"loading")},
__setAriaHidden:function(I){I?this.setAttribute("aria-hidden","true"):this.removeAttribute("aria-hidden")},
__reset:function(){this.__coolingDown=this.active=!1}};_.pK({_template:function(){if(oHm!==void 0)return oHm;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;s7S===void 0&&(s7S=document.createElement("template"));var k=s7S;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return oHm=I},
is:"tp-yt-paper-spinner",behaviors:[yuc]});var kb5;var Fe8;_.pK({_template:function(){if(Fe8!==void 0)return Fe8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;kb5===void 0&&(kb5=document.createElement("template"));var k=kb5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return Fe8=I},
is:"tp-yt-paper-spinner-lite",behaviors:[yuc]});var uvb;var zFc;_.pK({_template:function(){if(zFc!==void 0)return zFc;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;uvb===void 0&&(uvb=document.createElement("template"));var k=uvb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return zFc=I},
is:"tp-yt-paper-tab",behaviors:[_.pV,_.Nu.IronButtonState,BV],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 I=_.lG(this).parentNode;return!!I&&!!I.noink},_updateNoink:function(){this.noink=!!this.noink||!!this._parentNoink},
_onTap:function(I){if(this.link){var C=this.queryEffectiveChildren("a");C&&I.target!==C&&C.click()}}});var TAY;var cu8;var eFe=_.hu(['<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>']),ruq=_.D15(eFe);document.head.appendChild(ruq.content);_.pK({_template:function(){if(cu8!==void 0)return cu8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;TAY===void 0&&(TAY=document.createElement("template"));var k=TAY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return cu8=I},
is:"tp-yt-paper-tabs",behaviors:[_.Ri,_.VzP],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(I){_.lG(this).querySelectorAll("tp-yt-paper-tab").forEach(I?this._setNoinkAttribute:this._removeNoinkAttribute)},
_setNoinkAttribute:function(I){I.setAttribute("noink","")},
_removeNoinkAttribute:function(I){I.removeAttribute("noink")},
_computeScrollButtonClass:function(I,C,y,k){return!C||y?"hidden":I?k?"hidden":"not-visible":""},
_computeTabsContentClass:function(I,C){var y="tabs-content";I&&(y+=" scrollable");if(!I||C)y+=" fit-container";return y},
_computeSelectionBarClass:function(I,C){var y="selection-bar";I?y+=" hidden":C&&(y+=" align-bottom");return y},
_onTabSizingChanged:function(){this.debounce("_onTabSizingChanged",function(){this._scroll();this._tabChanged(this.selectedItem)},10)},
_makeString:function(I){return""+I},
_onIronSelect:function(I){this._tabChanged(I.detail.item,this._previousTab);this._previousTab=I.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();_.$r._activateHandler.apply(this,arguments)},
_scheduleActivation:function(I,C){this._pendingActivationItem=I;this._pendingActivationTimeout=this.async(this._bindDelayedActivationHandler,C)},
_delayedActivationHandler:function(){var I=this._pendingActivationItem;this._pendingActivationTimeout=this._pendingActivationItem=void 0;I.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(I){I.target===this._pendingActivationItem&&this._cancelPendingActivation()},
get _tabContainerScrollSize(){return Math.max(0,this.$.tabsContainer.scrollWidth-this.$.tabsContainer.offsetWidth)},_scroll:function(I,C){this.scrollable&&this._affectScroll(C&&-C.ddx||0)},
_down:function(){this.async(function(){this._defaultFocusAsync&&(this.cancelAsync(this._defaultFocusAsync),this._defaultFocusAsync=null)},1)},
_affectScroll:function(I){this.$.tabsContainer.scrollLeft+=I;I=this.$.tabsContainer.scrollLeft;this._leftHidden=I===0||this.hideScrollButtons;this._rightHidden=I===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(I,C){if(I){var y=this.$.tabsContent.getBoundingClientRect(),k=y.width,F=I.getBoundingClientRect();y=F.left-y.left;this._pos={width:this._calcPercent(F.width,k),left:this._calcPercent(y,k)};if(this.noSlide||C==null)this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(this._pos.width,this._pos.left);else{var z=C.getBoundingClientRect();C=this.items.indexOf(C);I=this.items.indexOf(I);this.$.selectionBar.classList.add("expand");
I=C<I;this._isRTL&&(I=!I);I?this._positionBar(this._calcPercent(F.left+F.width-z.left,k)-5,this._left):this._positionBar(this._calcPercent(z.left+z.width-F.left,k)-5,this._calcPercent(y,k)+5);this.scrollable&&this._scrollToSelectedIfNeeded(F.width,y)}}else this.$.selectionBar.classList.remove("expand"),this.$.selectionBar.classList.remove("contract"),this._positionBar(0,0)},
_scrollToSelectedIfNeeded:function(I,C){C-=this.$.tabsContainer.scrollLeft;C<0?this.$.tabsContainer.scrollLeft+=C:(C+=I-this.$.tabsContainer.offsetWidth,C>0&&(this.$.tabsContainer.scrollLeft+=C))},
_calcPercent:function(I,C){return 100*I/C},
_positionBar:function(I,C){I=I||0;C=C||0;this._width=I;this._left=C;this.transform("translateX("+C+"%) scaleX("+I/100+")",this.$.selectionBar)},
_onBarTransitionEnd:function(){var I=this.$.selectionBar.classList;I.contains("expand")?(I.remove("expand"),I.add("contract"),this._positionBar(this._pos.width,this._pos.left)):I.contains("contract")&&I.remove("contract")}});var iI5;var wJ8;_.pK({_template:function(){if(wJ8!==void 0)return wJ8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;iI5===void 0&&(iI5=document.createElement("template"));var k=iI5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return wJ8=I},
is:"tp-yt-paper-textarea",behaviors:[mEw,_.Vu],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(I){this.$.input.textarea.selectionStart=I},get selectionEnd(){return this.$.input.textarea.selectionEnd},
set selectionEnd(I){this.$.input.textarea.selectionEnd=I},_ariaLabelledByChanged:function(I){this._focusableElement.setAttribute("aria-labelledby",I)},
_ariaDescribedByChanged:function(I){this._focusableElement.setAttribute("aria-describedby",I)},
get _focusableElement(){return this.inputElement.textarea}});var nH8;var PzP;/*

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 Lee=function(){};
_.u=Lee.prototype;_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._focusedChanged=function(){};
_.u.registered=function(){};
_.u._invalidChanged=function(){};
_.u.hasValidator=function(){};
_.u.validate=function(){};
_.u._getValidity=function(){};
_.u._requiredChanged=function(){};
_.u._valueChanged=function(){};
_.u._checkedChanged=function(){};
_.u._buttonStateChanged=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
Lee=_.pK({is:"tp-yt-paper-toggle-button",_template:function(){if(PzP!==void 0)return PzP;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;nH8===void 0&&(nH8=document.createElement("template"));var k=nH8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return PzP=I},
behaviors:[_.ca5],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");_.hn(this,function(){_.G2(this,"pan-y")})},
_ontrack:function(I){I=I.detail;I.state==="start"?this._trackStart(I):I.state==="track"?this._trackMove(I):I.state==="end"&&this._trackEnd(I)},
_trackStart:function(){this._isRtl=this.__calculateIsRtl();this._width=this.$.toggleBar.offsetWidth/2;this._trackChecked=this.checked;this.$.toggleButton.classList.add("dragging")},
_trackMove:function(I){I=I.dx;this._x=this._isRtl?Math.max(-this._width,Math.min(0,this._trackChecked?-this._width+I:I)):Math.min(this._width,Math.max(0,this._trackChecked?this._width+I:I));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 I=BV._createRipple();I.id="ink";I.setAttribute("recenters","");I.classList.add("circle","toggle-ink");return I}});var DdP;var pJ0;_.pK({_template:function(){if(pJ0!==void 0)return pJ0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;DdP===void 0&&(DdP=document.createElement("template"));var k=DdP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return pJ0=I},
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 I=_.lG(this).parentNode,C=_.lG(this).getOwnerRoot(),y;this.for?y=_.lG(C).querySelector("#"+this.for):y=I.nodeType==Node.DOCUMENT_FRAGMENT_NODE?C.host:I;return y},attached:function(){this._findTarget()},
detached:function(){this.manualMode||this._removeListeners()},
playAnimation:function(I){I==="entry"?this.show():I==="exit"&&this.hide()},
cancelAnimation:function(){this.$.tooltip.classList.add("cancel-animation")},
show:function(){if(!this._showing){if(!this.alwaysDisplay&&_.lG(this).textContent.trim()===""){for(var I=!0,C=_.lG(this).getEffectiveChildNodes(),y=0;y<C.length;y++)if(C[y].textContent.trim()!==""){I=!1;break}if(I)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 I=this.offset;this.marginTop!=14&&this.offset==14&&(I=this.marginTop);var C=this.offsetParent.getBoundingClientRect(),y=this._target.getBoundingClientRect(),k=this.getBoundingClientRect(),F=(y.width-k.width)/2,z=(y.height-k.height)/2,c=y.left-C.left,r=y.top-C.top;switch(this.position){case "top":var w=c+F;var L=r-k.height-I;break;case "bottom":w=c+F;L=r+y.height+I;break;case "left":w=c-k.width-I;L=r+z;break;case "right":w=c+y.width+
I,L=r+z}this.fitToVisibleBounds?(C.left+w+k.width>window.innerWidth?(this.style.right="0px",this.style.left="auto"):(this.style.left=Math.max(0,w)+"px",this.style.right="auto"),C.top+L+k.height>window.innerHeight?(this.style.bottom=C.height+"px",this.style.top="auto"):(this.style.top=Math.max(-C.top,L)+"px",this.style.bottom="auto")):(this.style.left=w+"px",this.style.top=L+"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(I){I!==500&&this.updateStyles({"--paper-tooltip-delay-in":I+"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(I){if(I==="entry"&&this.animationEntry!=="")return this.animationEntry;if(I==="exit"&&this.animationExit!=="")return this.animationExit;if(this.animationConfig[I]&&typeof this.animationConfig[I][0].name==="string"){if(this.animationConfig[I][0].timing&&this.animationConfig[I][0].timing.delay&&this.animationConfig[I][0].timing.delay!==0){var C=this.animationConfig[I][0].timing.delay;I==="entry"?this.updateStyles({"--paper-tooltip-delay-in":C+"ms"}):I==="exit"&&this.updateStyles({"--paper-tooltip-delay-out":C+
"ms"})}return this.animationConfig[I][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 Q7u=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Q7u,_.GR);var NAu=_.hT(Q7u,[0,_.Hv]);var UJ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(UJ,_.GR);var Vtq=[3,4],j7d=[5,6];var lHq=[0,Vtq,j7d,_.b2c,-1,_.U0,_.Ymw,-1,X09,$hO];var XJc=_.hT(UJ,lHq),$du=_.Um(lHq);var RFb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(RFb,_.GR);var bIe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(bIe,_.GR);var Ynb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Ynb,_.GR);var Gbc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Gbc,_.GR);var fH0=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(fH0,_.GR);var HV=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(HV,_.GR);HV.prototype.getSource=function(){return _.YC(this,1)};
HV.prototype.getMessage=function(){return _.b4(this,4)};
HV.prototype.getData=function(){return _.MS(this,fH0,8)};var Snd=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Snd,_.GR);var tw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(tw,_.GR);var Jw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Jw,_.GR);var OJ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(OJ,_.GR);OJ.prototype.getUrl=function(){return _.b4(this,1)};
OJ.prototype.setUrl=function(I){return _.zT(this,1,I)};
OJ.prototype.hasUrl=function(){return _.AP(_.wd(this,1))!=null};var Kew=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Kew,_.GR);var AuP=[3];var gH5=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(gH5,_.GR);var ai=function(I){var C=new gH5;return _.Ie(C,2,I)};
gH5.prototype.getLanguage=function(){return fF(this,4,Mu)};
var vH0=function(I){var C=ai(1);return _.Om(C,6,Mu,I)},Mu=[3,
4,5,6];var WeY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(WeY,_.GR);var I$=function(I){var C=new WeY;return _.Ie(C,1,I)},CZ=function(I,C){return _.Om(I,2,ddP,C)},ddP=[2,
3,4,5];var xdq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(xdq,_.GR);var s2=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(s2,_.GR);var qnc=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(qnc,_.GR);var mdw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(mdw,_.GR);var ZIm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(ZIm,_.GR);var BAe=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(BAe,_.GR);var o$=function(I){return _.MS(I,Jw,5)};var EHq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EHq,_.GR);EHq.prototype.getValue=function(){return $C(this,1)};var hFd=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(hFd,_.GR);var yK=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(yK,_.GR);yK.prototype.getMetadata=function(){return _.Sk(this,mdw,7,kf)};
yK.prototype.hasMetadata=function(){return _.Pv(this,mdw,7,kf)};
var Udw=_.aSm(yK),kf=[2,3,4,5,6,7,8,9,10,11,12,13,14,15];var FH=function(I){this.JSC$9798_name_=I;this.files_=[];this.directories_=[];this.directoryMap_={}};
FH.prototype.getName=function(){return this.JSC$9798_name_};var zX=function(I,C){this.callback_=C;this.hasError_=!1;this.unscannedDirectories_=[];this.fileOps_=this.directoryOps_=0;this.rootDirectory_=new FH("");HIP(this,I,this.rootDirectory_);uv(this)},HIP=function(I,C,y){for(var k=0;k<C.length;k++){var F=C[k];
F.isFile?(I.fileOps_++,F.file((0,_.DD)(I.handleFileSuccess_,I,y),(0,_.DD)(I.handleFileError_,I))):I.unscannedDirectories_.push(new ttw(F,y))}},uv=function(I){if(I.unscannedDirectories_.length>0&&I.directoryOps_<5&&!I.hasError_){I.directoryOps_++;
var C=I.unscannedDirectories_.shift(),y=C.entry,k=new FH(y.name);C=C.parent;C.directoryMap_[k.getName()]=k;C.directories_.push(k);y=y.createReader();y.readEntries((0,_.DD)(I.handleDirectorySuccess_,I,y,k),(0,_.DD)(I.handleDirectoryError_,I))}I.directoryOps_!=0||I.fileOps_!=0||I.unscannedDirectories_.length!=0&&!I.hasError_||I.callback_(I.rootDirectory_.files_,I.rootDirectory_.directories_,I.hasError_)};
zX.prototype.handleDirectorySuccess_=function(I,C,y){HIP(this,y,C);y.length==0?(this.directoryOps_--,uv(this)):I.readEntries((0,_.DD)(this.handleDirectorySuccess_,this,I,C),(0,_.DD)(this.handleDirectoryError_,this))};
zX.prototype.handleDirectoryError_=function(){this.hasError_=!0;this.directoryOps_--;uv(this)};
zX.prototype.handleFileSuccess_=function(I,C){I.files_.push(C);this.fileOps_--;uv(this)};
zX.prototype.handleFileError_=function(){this.hasError_=!0;this.fileOps_--;uv(this)};
var ttw=function(I,C){this.entry=I;this.parent=C};var TX=function(I){_.LW.call(this);_.Lv(I,"drop",this.onObjectsDropped_,!1,this);_.Lv(I,"dragenter",this.onFilesDragged_,!1,this);_.Lv(I,"dragover",this.onFilesDragged_,!1,this);_.Lv(I,"dragleave",this.onDragLeave_,!1,this);_.Lv(I,"dragend",this.onDragLeave_,!1,this)};
_.s0(TX,_.LW);var Ju8=function(I,C){_.r1.call(this,"f");this.files=I;this.directories=C};
_.s0(Ju8,_.r1);var OId=function(){_.r1.call(this,"h")};
_.s0(OId,_.r1);var aHe=function(){_.r1.call(this,"i")};
_.s0(aHe,_.r1);var MtY=function(){_.r1.call(this,"g")};
_.s0(MtY,_.r1);TX.prototype.onObjectsDropped_=function(I){var C=this;I.preventDefault();var y=I.event_.dataTransfer;if((I=y&&y.items)&&I.length>0&&I[0].webkitGetAsEntry){y=[];for(var k=[],F=0;F<I.length;F++){var z=I[F].webkitGetAsEntry();z?y.push(z):k.push(I[F])}new zX(y,function(c,r,w){w?C.dispatchEvent(new MtY("Error occurred while reading from the file system.")):C.dispatchEvent(new Ju8(c,r,k))})}else(I=y&&y.files)&&this.dispatchEvent(new Ju8(Array.from(I),[]))};
TX.prototype.onFilesDragged_=function(I){I.type==="dragenter"&&this.dispatchEvent(new OId);I.preventDefault()};
TX.prototype.onDragLeave_=function(){this.dispatchEvent(new aHe)};var Iz0=function(I,C){this.JSC$9821_name_=I;this.inputElement_=C};
Iz0.prototype.getName=function(){return this.JSC$9821_name_};
Iz0.prototype.getInputElement=function(){return this.inputElement_};var c3=function(I,C,y){C=C===void 0?"single_file":C;y=y===void 0?[]:y;_.LW.call(this);this.overlayTarget_=I;this.parentOverlay_=I!=null?I.parentNode:_.c2("scotty-overlay-parent");this.selectorType_=C;this.acceptTypes_=y;this.overlay_=C4w(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
_.R(c3,_.LW);
var C4w=function(I,C,y,k){var F=document.createElement("input");F.setAttribute("type","file");F.setAttribute("name","Filedata");_.Lv(F,"change",I.onFilesSelected_,!1,I);y==="multiple_file"&&(F.multiple="true");y==="single_directory"&&(F.webkitdirectory="true");k.length>0&&F.setAttribute("accept",k.join(","));F.style.position="absolute";F.style.overflow="hidden";F.style.height="0px";F.style.width="0px";F.style.opacity="0";F.setAttribute("aria-hidden","true");F.setAttribute("tabIndex",-1);if(I.overlayTarget_!=
null)return F.style.height=C.offsetHeight+"px",F.style.width=C.offsetWidth+"px",I.parentOverlay_&&(I.parentOverlay_.style.position="relative"),_.SZ(F,C),ds(F,new _.Q6(C.offsetLeft,C.offsetTop)),F;I.parentOverlay_.appendChild(F);return F};
c3.prototype.click=function(){this.overlay_.click()};
c3.prototype.onFilesSelected_=function(I){a:{try{var C=(new XMLHttpRequest).upload!==void 0;break a}catch(L){}C=!1}if(C){var y;I=Array.from((y=I.target.files)!=null?y:[]);y=[];if(this.selectorType_==="single_directory"&&(_.z6||E8||_.u4)){y=new FH("");if(File.prototype.hasOwnProperty("webkitRelativePath"))for(C=0;C<I.length;C++)for(var k=I[C],F=k.webkitRelativePath.split("/"),z=y,c=0;c<F.length;c++){var r=F[c];if(c==F.length-1){r!="."&&z.files_.push(k);break}var w=z.directoryMap_[r];w==void 0&&(r=
w=new FH(r),z.directoryMap_[r.getName()]=r,z.directories_.push(r));z=w}y=y.directories_}this.dispatchEvent(new shm(I,y,null))}else I=I.target.value,I.match(/^c:\\fakepath\\/i)&&(I=I.substring(12)),this.dispatchEvent(new shm([],[],new Iz0(I,this.overlay_)));this.parentOverlay_.removeChild(this.overlay_);this.overlay_=C4w(this,this.overlayTarget_,this.selectorType_,this.acceptTypes_)};
var shm=function(I,C){_.r1.call(this,"j");this.files=I;this.directories=C};
_.R(shm,_.r1);var oCu=function(I){this.uploadUrl_=I};var y0q=function(){_.LW.call(this)};
_.s0(y0q,_.LW);var eV=function(I){_.r1.call(this,I)};
_.s0(eV,_.r1);var rO=function(I){_.r1.call(this,I)};
_.s0(rO,_.r1);var k6w=function(I,C,y,k,F){_.LW.call(this);y=document.createElement("form");y.setAttribute("method",C);y.setAttribute("enctype","multipart/form-data");y.setAttribute("encoding","multipart/form-data");C=document.createElement("input");C.setAttribute("type","hidden");C.setAttribute("name","metadata");C.setAttribute("value",F);y.appendChild(C);y.appendChild(k);this.JSC$9838_form_=y;I=new _.t$(I);_.q9(I,"upload_protocol","multipart");this.JSC$9838_url_=I.toString();this.JSC$9838_request_=new OV;this.state_=
"Ready";this.JSC$9838_errorDescription_=null;this.JSC$9838_eventHandler_=new _.Cq(this);_.kq(this,this.JSC$9838_eventHandler_);this.JSC$9838_eventHandler_.listen(this.JSC$9838_request_,"success",this.onTransferSuccess_);this.JSC$9838_eventHandler_.listen(this.JSC$9838_request_,"error",this.onTransferError_)};
_.R(k6w,y0q);_.u=k6w.prototype;_.u.run=function(){this.state_="Transferring";var I=this.JSC$9838_request_,C=this.JSC$9838_form_;if(I.JSC$9262_active_)throw Error("ne");var y=new _.t$(this.JSC$9838_url_||C.action);I.JSC$9262_form_=C;C=I.JSC$9262_form_;y=_.Dd(y.toString());y!==void 0&&(C.action=y);Khu(I)};
_.u.getResponseCode=function(){return null};
_.u.getResponseText=function(){return this.JSC$9838_request_&&this.JSC$9838_request_.getResponseText()||null};
_.u.JSC$25655_getErrorDescription=function(){return this.JSC$9838_errorDescription_};
_.u.cancel=function(){this.JSC$9838_request_&&this.JSC$9838_request_.abort();this.state_="Cancelled";this.dispatchEvent(new eV("o"))};
_.u.pause=function(){};
_.u.onTransferSuccess_=function(){this.state_="Complete";this.dispatchEvent(new eV("l"))};
_.u.onTransferError_=function(){this.JSC$9838_errorDescription_="Transfer failed.";this.state_="Error";this.dispatchEvent(new eV("n"))};var iv=function(){_.Xn.call(this)};
_.R(iv,_.Xn);iv.prototype.createXhr=function(){var I=_.Xn.prototype.createXhr.call(this);I.upload&&(I.upload.onprogress=(0,_.DD)(this.onProgress_,this));return I};
iv.prototype.onProgress_=function(I){this.dispatchEvent(I)};var FAw=function(){this.attempt_=-1;this.delayCallId_=null;this.maxDelayMs_=6E4;this.maxAttempts_=-1},zB5=function(I,C){var y=I.attempt_+1;
if(I.maxAttempts_>0&&y>I.maxAttempts_)return!1;y==0?C():I.delayCallId_=VZ(function(){I.delayCallId_=null;C()},u80(I),I);
I.attempt_=y;return!0};
FAw.prototype.reset=function(){this.delayCallId_&&_.sF.clearTimeout(this.delayCallId_);this.attempt_=-1};
var u80=function(I){var C=250*Math.pow(2,I.attempt_);I.maxDelayMs_>=0&&(C=Math.min(C,I.maxDelayMs_));return C};var $YW=["Content-Length","Content-Type","Content-Encoding","Transfer-Encoding"];var wO=function(){_.LW.call(this);this.JSC$9848_request_=this.state_=null;this.JSC$9848_withCredentials_=!1;this.transferHandle_=null;this.offset_=this.JSC$9848_bytesTransferred_=0;this.retryIterator_=new FAw;this.retryIterator_.maxAttempts_=6;this.retryIterator_.maxDelayMs_=6E4;this.JSC$9848_errorDescription_=null;this.JSC$9848_eventHandler_=new _.Cq(this);_.kq(this,this.JSC$9848_eventHandler_);this.JSC$9848_url_=this.blob_=null;this.JSC$9848_method_=void 0;this.chunkSize_=this.JSC$9848_metadata_=
this.JSC$9848_headers_=null;this.requireUploadRequestModification_=!1;this.originalBlobSize_=0;this.detectCorruptedBlobEnabled_=!1;this.lastCommandResponseCode_=this.JSC$9848_responseText_=this.JSC$9848_responseCode_=null;this.pauseRequested_=!1;this.stateAfterUnpausing_=null};
_.s0(wO,y0q);_.u=wO.prototype;_.u.run=function(){nZ(this)};
_.u.getResponseCode=function(){return this.JSC$9848_responseCode_};
_.u.getResponseText=function(){return this.JSC$9848_responseText_};
_.u.JSC$25655_getErrorDescription=function(){return this.JSC$9848_errorDescription_};
_.u.cancel=function(){if(this.state_!="Response received"&&this.state_!="Error"){this.JSC$9848_eventHandler_.removeAll();this.JSC$9848_request_&&this.JSC$9848_request_.abort();this.retryIterator_.reset();var I=this.state_==="Paused"?this.stateAfterUnpausing_:this.state_;if(I==="Upload"||I==="Query")I=new iv,I.JSC$7668_withCredentials_=this.JSC$9848_withCredentials_,I.send(this.transferHandle_.uploadUrl_,"POST","",{"X-Goog-Upload-Command":"cancel"});this.state_="Cancel";this.JSC$9848_bytesTransferred_=
0;this.dispatchEvent(new eV("o"))}};
_.u.pause=function(){this.pauseRequested_=!0};
var nZ=function(I){var C=I.state_;I.pauseRequested_?(I.pauseRequested_=!1,I.stateAfterUnpausing_=C,I.state_="Paused"):zB5(I.retryIterator_,function(){switch(I.state_){case "Start":I.JSC$9848_request_=new iv;var y=_.Le.clone(I.JSC$9848_headers_);I.blob_.size!=null&&(y["Content-Length"]=I.blob_.size);y=Rhm(y);y["X-Goog-Upload-Protocol"]="resumable";y["X-Goog-Upload-Command"]="start";I.JSC$9848_eventHandler_.removeAll();I.JSC$9848_eventHandler_.listen(I.JSC$9848_request_,"complete",I.onStartComplete_);
I.JSC$9848_request_.JSC$7668_withCredentials_=I.JSC$9848_withCredentials_;I.JSC$9848_request_.send(I.JSC$9848_url_,I.JSC$9848_method_,I.JSC$9848_metadata_,y);I.lastCommandResponseCode_=null;I.dispatchEvent(new rO("q"));break;case "Upload":y=I.transferHandle_.uploadUrl_;var k=I.blob_.size;if(pFc()){var F=I.chunkSize_;var z=I.offset_+F>=k;k=Dyc(I.blob_,I.offset_,z?k:I.offset_+F)}else I.offset_=0,k=I.blob_,z=!0;I.JSC$9848_request_=new iv;I.JSC$9848_request_.JSC$7668_withCredentials_=I.JSC$9848_withCredentials_;
I.JSC$9848_eventHandler_.removeAll();I.JSC$9848_eventHandler_.listen(I.JSC$9848_request_,"progress",I.onUploadProgress_);F=(0,_.DD)(I.JSC$9850_onUploadComplete_,I,I.offset_+k.size,z);I.JSC$9848_eventHandler_.listen(I.JSC$9848_request_,"complete",F);I.lastCommandResponseCode_=null;I.dispatchEvent(new rO("q"));z=Object.assign({},I.JSC$9848_headers_||{},{"X-Goog-Upload-Command":"upload"+(z?", finalize":""),"X-Goog-Upload-Offset":I.offset_});I.JSC$9848_request_.send(y,"POST",k,z);break;case "Query":I.JSC$9848_request_=
new iv;I.JSC$9848_eventHandler_.removeAll();I.JSC$9848_eventHandler_.listen(I.JSC$9848_request_,"complete",I.onQueryComplete_);y=Object.assign({},I.JSC$9848_headers_||{},{"X-Goog-Upload-Command":"query"});I.JSC$9848_request_.send(I.transferHandle_.uploadUrl_,"POST","",y);I.lastCommandResponseCode_=null;I.dispatchEvent(new rO("q"));break;default:throw Error("cf");}})||P3(I,"Transfer encountered too many consecutive failures.")},P3=function(I,C){I.state_="Error";
I.JSC$9848_errorDescription_=C;I.dispatchEvent(new eV("n"))};
wO.prototype.onStartComplete_=function(I){var C=I.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new rO("r"));if(Tdd(C))c00(this,C);else if(eB5(C)){I=EB(I.target.getAllResponseHeaders());for(var y in I)_.FO(y.toLowerCase(),"x-goog-upload-header-");this.dispatchEvent(new eV("m"));y=$B(I,"X-Goog-Upload-URL");I=(I=$B(I,"X-Goog-Upload-Chunk-Granularity"))?parseInt(I,10):1;y===void 0||isNaN(I)||I<=0?P3(this,"Server returned invalid headers."):(this.chunkSize_=Math.floor(1073741824/
I)*I,this.transferHandle_=new oCu(y),this.dispatchEvent(new eV("p")),this.state_="Upload",this.retryIterator_.reset(),nZ(this))}else nZ(this)};
wO.prototype.onUploadProgress_=function(I){this.JSC$9848_bytesTransferred_=this.offset_+I.loaded;this.dispatchEvent(new eV("k"))};
wO.prototype.JSC$9850_onUploadComplete_=function(I,C,y){var k=this,F,z;return _.e(function(c){switch(c.nextAddress){case 1:F=y.target;k.lastCommandResponseCode_=F.getStatus();k.dispatchEvent(new rO("r"));if(r0u(F)||F.getStatus()==404)return k.JSC$9848_bytesTransferred_=I,c00(k,F),c.return();if(eB5(F)){c.jumpTo(2);break}if(!(z=k.detectCorruptedBlobEnabled_)){c.jumpTo(3);break}return _.n(c,iFe(k),4);case 4:z=c.yieldResult;case 3:if(z)return P3(k,"Blob has been modified or corrupted."),c.return();k.requireUploadRequestModification_=
F.getStatus()==400;k.state_="Query";nZ(k);return c.return();case 2:if(C)return P3(k,"Got a non-final success response after issuing a finalize command."),c.return();k.JSC$9848_bytesTransferred_=I;k.offset_=I;k.retryIterator_.reset();nZ(k);return c.return()}})};
wO.prototype.onQueryComplete_=function(I){var C=I.target;this.lastCommandResponseCode_=C.getStatus();this.dispatchEvent(new rO("r"));Tdd(C)?(C.getStatus()===200&&(this.JSC$9848_bytesTransferred_=this.blob_.size),c00(this,C)):eB5(C)?(I=EB(I.target.getAllResponseHeaders()),I=parseInt($B(I,"X-Goog-Upload-Size-Received"),10),isNaN(I)?P3(this,"Server did not respond with current offset."):I<this.offset_?P3(this,"Server lost bytes! Expected an offset of at least "+this.offset_+", but got an offset of "+
I+"."):this.requireUploadRequestModification_&&this.offset_===I?P3(this,"Server returned the same offset as the last failed upload attempt."):(this.requireUploadRequestModification_=!1,this.offset_<I&&this.retryIterator_.reset(),this.offset_=this.JSC$9848_bytesTransferred_=I,this.state_="Upload",nZ(this))):nZ(this)};
var c00=function(I,C){I.JSC$9848_responseCode_=C.getStatus();var y=EB(C.getAllResponseHeaders());bQz(y);I.JSC$9848_responseText_=C.getResponseText();I.state_="Response received";I.dispatchEvent(new eV("l"))},eB5=function(I){var C=I.getStatus();
I=EB(I.getAllResponseHeaders());I=$B(I,"X-Goog-Upload-Status");return C===200&&I==="active"},r0u=function(I){I=EB(I.getAllResponseHeaders());
return $B(I,"X-Goog-Upload-Status")==="final"},Tdd=function(I){if(r0u(I))return!0;
I=I.getStatus();return I>=400&&I<500},iFe=function(I){var C;
return _.e(function(y){if(y.nextAddress==1){if(!I.blob_||I.originalBlobSize_<=0)return y.return(!1);if(I.blob_.size!==I.originalBlobSize_)return y.return(!0);_.aM(y,2);if(C=Dyc(I.blob_,0,1)){var k=new K6,F=JSS(k);k.reader_.readAsBinaryString(C);y=_.n(y,F,4)}else y=y.return(!0);return y}if(y.nextAddress!=2)return y.return(I.blob_.size!==I.originalBlobSize_);_.sj(y);return y.return(!0)})};var wvq=function(I,C,y,k,F,z){_.LW.call(this);this.payload_=k;this.JSC$9851_url_=I;this.JSC$9851_method_=C;this.JSC$9851_headers_=y;this.JSC$9851_metadata_=F;this.encoding_=z||"binary";I=new _.p6;this.boundary_="uploader-"+W2()+"-"+I.JSC$9111_toIsoString();this.JSC$9851_responseText_=this.JSC$9851_responseCode_=this.transferRequest_=null;this.state_="Ready";this.JSC$9851_errorDescription_=null;this.JSC$9851_eventHandler_=new _.Cq(this);_.kq(this,this.JSC$9851_eventHandler_)};
_.R(wvq,y0q);_.u=wvq.prototype;
_.u.run=function(){var I=_.Le.clone(this.JSC$9851_headers_);this.payload_.length!=null&&(I["Content-Length"]=this.payload_.length);I=Rhm(I);I["X-Goog-Upload-Protocol"]="multipart";I["Content-Type"]="multipart/related; boundary="+this.boundary_;this.state_="Transferring";this.transferRequest_=new iv;this.JSC$9851_eventHandler_.removeAll();this.JSC$9851_eventHandler_.listen(this.transferRequest_,"progress",this.onTransferProgress_);this.JSC$9851_eventHandler_.listen(this.transferRequest_,"complete",
this.onTransferComplete_);this.transferRequest_.send(this.JSC$9851_url_,this.JSC$9851_method_,"--"+this.boundary_+'\r\nContent-Disposition: form-data; name="metadata"\r\n\r\n'+(this.JSC$9851_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",I)};
_.u.getResponseCode=function(){return this.JSC$9851_responseCode_};
_.u.getResponseText=function(){return this.JSC$9851_responseText_};
_.u.JSC$25655_getErrorDescription=function(){return this.JSC$9851_errorDescription_};
_.u.cancel=function(){this.state_!="Complete"&&this.state_!="Error"&&(this.JSC$9851_eventHandler_.removeAll(),this.transferRequest_&&this.transferRequest_.abort(),this.state_="Cancel",this.dispatchEvent(new eV("o")))};
_.u.pause=function(){};
_.u.onTransferProgress_=function(){this.dispatchEvent(new eV("k"))};
_.u.onTransferComplete_=function(I){var C=I.target.getStatus();C===void 0||C===-1?(this.JSC$9851_errorDescription_="Connection broken before response was received.",this.state_="Error",this.dispatchEvent(new eV("n"))):(this.JSC$9851_responseCode_=C,I=I.target,C=EB(I.getAllResponseHeaders()),bQz(C),this.JSC$9851_responseText_=I.getResponseText(),this.state_="Complete",this.dispatchEvent(new eV("l")))};_.nCw=function(I,C,y,k){k=k===void 0?!1:k;if(y instanceof Iz0)return new k6w(I,"POST",C,y.getInputElement(),"");if(typeof y==="string"||y instanceof String)return new wvq(I,"POST",C,y,"");var F=new wO(void 0);F.JSC$9848_url_=I;F.JSC$9848_method_="POST";F.JSC$9848_headers_=C;F.blob_=y;F.originalBlobSize_=y.size;F.JSC$9848_metadata_="";k&&(F.JSC$9848_withCredentials_=k);F.state_="Start";return F};var LZ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(LZ,_.GR);_.u=LZ.prototype;_.u.getEnableSsEngine=function(){return _.X8(this,2)};
_.u.getEnableAwr=function(){return _.X8(this,3)};
_.u.getAlohaAutoGaRollout=function(){return _.X8(this,5)};
_.u.getEnableConfigurator=function(){return _.X8(this,6)};
_.u.getEnableMweb=function(){return _.X8(this,7)};
var LAm=function(){var I=P4b();return _.bG(I,7,!0)};
LZ.prototype.getEnableCtlConsentCheckbox=function(){return _.X8(this,8)};
LZ.prototype.getEnableIframe=function(){return _.X8(this,9)};
var P4b=function(){var I=new LZ;I=_.bG(I,5,!0);I=_.bG(I,2,!0);I=_.bG(I,4,!1);I=_.bG(I,8,!0);return _.bG(I,9,!0)};
LZ.prototype.getEnableScreenshotNudge=function(){return _.X8(this,10)};
var Dmw=function(){var I=LAm();return _.bG(I,10,!0)};
LZ.prototype.getEnableWebStartupConfigEndpoint=function(){return _.X8(this,11)};
LZ.prototype.getEnableJunkNudge=function(){return _.X8(this,12)};
var hhI=function(){var I=Dmw();return _.bG(I,12,!0)};
_.u=LZ.prototype;_.u.getEnableConfiguratorLocale=function(){return _.X8(this,13)};
_.u.getEnableTinyNoPointer=function(){return _.X8(this,14)};
_.u.getEnableSupportSessionLogging=function(){return _.X8(this,15)};
_.u.getEnableFileUploadForScreenshot=function(){return _.X8(this,16)};
_.u.getEnableDirectDeflectionForSingleCategory=function(){return _.X8(this,17)};
_.u.getEnableImageSanitization=function(){return _.X8(this,18)};
_.u.getEnableAlohaBinarySplit=function(){return _.X8(this,19)};
_.u.getEnableDbFeedbackIntents=function(){return _.X8(this,20)};
_.u.getEnableMarkMandatoryFieldsWithRequired=function(){return _.X8(this,21)};
_.u.getEnableFeedbackCategoryCustomUi=function(){return _.X8(this,22)};
_.u.getEnableRealtimeCtl=function(){return _.X8(this,23)};var EgI=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EgI,_.GR);var YrH=[/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 feI="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 SrY=_.hu(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_light_binary.js"]),KRm=_.hu(["https://www.gstatic.com/uservoice/feedback/client/web/","/main_binary__",".js"]);var ggt,WRK;var pvq,Qhw;
pvq=function(I,C,y){I.timeOfStartCall=(new Date).getTime();var k=y||_.sF,F=k.document,z=I.nonce||_.$b(k.document);z&&!I.nonce&&(I.nonce=z);if(I.flow=="help"){var c=_.d5("document.location.href",k);!I.helpCenterContext&&c&&(I.helpCenterContext=c.substring(0,1200));c=!0;if(C&&JSON&&JSON.stringify){var r=JSON.stringify(C);(c=r.length<=1200)&&(I.psdJson=r)}c||(C={invalidPsd:!0})}C=[I,C,y];k.GOOGLE_FEEDBACK_START_ARGUMENTS=C;y=I.feedbackServerUri||"//www.google.com/tools/feedback";if(c=k.GOOGLE_FEEDBACK_START)c.apply(k,C);
else{k=y+"/load.js?";for(var w in I)C=I[w],C==null||_.sw(C)||(k+=encodeURIComponent(w)+"="+encodeURIComponent(C)+"&");I=u3(F).createElement("SCRIPT");z&&I.setAttribute("nonce",z);_.fa(I,_.Ca(k));F.body.appendChild(I)}};
Qhw=function(I,C,y,k){var F,z;_.e(function(c){F=y||_.sF;var r=I.serverEnvironment==="DEV",w=y||_.sF;w=I.nonce||_.$b(w.document);r={integrationKeys:{productId:I.productId,feedbackBucket:I.bucket,triggerId:I.triggerId},callbacks:{onClose:I.callback,onLoad:I.onLoadCallback},formContent:{locale:I.locale,disableScreenshot:I.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:I.abuseLink,additionalDataConsent:I.additionalDataConsent},initializationData:{isLocalServer:r,nonce:w,useNightlyRelease:r,feedbackJsUrl:void 0,feedbackCssUrl:void 0,feedbackJsUrlSerialized:void 0,feedbackCssUrlSerialized:void 0,submissionServerUri:I.feedbackServerUri,colorScheme:I.colorScheme},extraData:{productVersion:I.productVersion,authUser:I.authuser,configuratorId:I.configuratorId,customZIndex:I.customZIndex,tinyNoPointer:I.tinyNoPointer,
allowNonLoggedInFeedback:I.allowNonLoggedInFeedback,enableAnonymousFeedback:I.enableAnonymousFeedback}};C&&(w=new Map(Object.entries(C)),r.extraData.productSpecificData=w);z=r;return _.n(c,mYF(z,k,F),0)})};
_.NdP=function(I,C,y){try{if(I.flow==="help"){var k=I.helpCenterPath.replace(/^\//,"");_.XG(y||window,"https://support.google.com/"+k)}else I.flow==="submit"?pvq(I,C,y):UYO(I.productId,I.feedbackServerUri).then(function(F){F=_.MS(F,LZ,1);var z=!Hgs||(F==null?void 0:F.getEnableMweb()),c=!I.tinyNoPointer||(F==null?void 0:F.getEnableTinyNoPointer());!F||F.getAlohaAutoGaRollout()&&z&&c?Qhw(I,C,y,F):pvq(I,C,y)},function(F){F&&F.name!=="DuplicateFormError"&&pvq(I,C,y)})}catch(F){Qhw(I,C,y,null)}};
_.U8("userfeedback.api.startFeedback",_.NdP);var HQF=/https?:\/\/\S+\.\S+/,tZm=[/^https?:\/\/[0-9a-zA-Z_.-]+\.youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtube\.com(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i,/^https?:\/\/youtu\.be(?:\/[^\?#]*)?(?:\?[^#]*)?(?:#.*)?$/i],JhH=[/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtube\.com[\/]+redirect\?.*$/i,/^[https?:\/\/]*[0-9a-zA-Z_.-]*youtu.be[\/]+redirect\?.*$/i];var x4W=function(I){var C=I.split(""),y=[-263237435,15,C,function(k,F,z){var c=F.length;z.forEach(function(r,w,L){this.push(L[w]=F[(F.indexOf(r)-F.indexOf(this[w])+w+c--)%F.length])},k.split(""))},
function(k,F){k=(k%F.length+F.length)%F.length;F.splice(-k).reverse().forEach(function(z){F.unshift(z)})},
"response",function(){for(var k=64,F=[];++k-F.length-32;){switch(k){case 58:k-=14;case 91:case 92:case 93:continue;case 123:k=47;case 94:case 95:case 96:continue;case 46:k=95}F.push(String.fromCharCode(k))}return F},
null,12,1540023973,65941107,null,C,function(k,F){for(k=(k%F.length+F.length)%F.length;k--;)F.unshift(F.pop())},
695603893,function(k){for(var F=k.length;F;)k.push(k.splice(--F,1)[0])},
"'[;'[(",function(k,F){k.push(F)},
null,function(k,F,z,c,r){return F(z,c,r)},
"continuation",C,function(k,F){if(k.length!=0){F=(F%k.length+k.length)%k.length;var z=k[0];k[0]=k[F];k[F]=z}},
function(){for(var k=64,F=[];++k-F.length-32;){switch(k){case 91:k=44;continue;case 123:k=65;break;case 65:k-=18;continue;case 58:k=96;continue;case 46:k=95}F.push(String.fromCharCode(k))}return F},
'"),/]];'];y[7]=y;y[11]=y;y[18]=y;try{(((0,y[15])(y[21]),y[22])(y[11],y[9]),y[22])(y[new Date("1970-01-01T04:30:12.000+04:30")/1E3],y[1]),((0,y[22])(y[11],y[23]),y[4])(y[10],y[18]),(0,y[20])(y[21],y[14])<<(0,y[17])(y[18],y[1]),(0,y[4])(y[8],y[21]),(0,y[19])((0,y[19])((0,y[17])(y[7],y[9]),y[3],y[20],(0,y[6])(),y[2]),y[3],y[5],(0,y[15])(),y[2])}catch(k){return"aTlOUOubTO4AP____8P_"+I}return C.join("")};_.Vkw=new _.J("runAttestationCommand");var jhb=new _.J("verifyCommand");_.mO=new _.J("accessibilityContext");var lz0=new _.J("accessibilityData");var Xvb=new _.J("profileCardCommand");var brm=new _.J("signInEndpoint");var RHX=new _.J("signOutEndpoint");var RB0;_.$mY=new _.J("accountItemSectionRenderer");RB0=new _.J("accountItemRenderer");_.bFd=new _.J("saveCommandToSessionStorageAction");var Y0e=new _.J("crossAccountChannelTransferEndpoint");var XEI=new _.J("getAccountMenuEndpoint");_.$Im=new _.J("getAccountSwitcherEndpoint");var ljO=new _.J("getAccountsListEndpoint");var G6u=new _.J("getAccountsListInnertubeEndpoint");_.fzw=new _.J("addToToastAction");var S0w=new _.J("hideEnclosingAction");_.DN=new _.J("replaceEnclosingAction");_.KAq=new _.J("buttonRefreshAction");var A0d=new _.J("adsControlFlowOpportunityReceivedCommand");var gCc=new _.J("openAdAllowlistInstructionCommand");var vCP=new _.J("videoMastheadAdPrimaryVideoRenderer");var WA0=new _.J("displayAdRenderer");var Eyz=new _.J("instreamVideoAdRenderer");_.dmq=new _.J("inFeedAdLayoutRenderer");var xmu=new _.J("sequenceItemInPlayerAdLayoutRenderer");_.q00=new _.J("adSlotRenderer");var mme=new _.J("adAvatarViewModel");var ZF5=new _.J("adBadgeViewModel");var Bd5=new _.J("adButtonViewModel");var pZ=new _.J("adImageViewModel");var vJm=new _.J("reelsAdCardButtonedViewModel");var EC8=new _.J("reelsPlayerOverlayLayoutViewModel");var hBP=new _.J("showSchedulingPanelCommand");var Um8=new _.J("backstageCommentsRenderer");var HFm=new _.J("backstageImageRenderer");var tkY=new _.J("backstagePostRenderer");var J0w=new _.J("postRenderer");var OFw=new _.J("sharedPostRenderer");var azw=new _.J("createBackstagePostEndpoint");var Mkb=new _.J("getPostVideoPreviewEndpoint");var Iew=new _.J("updateBackstagePostEndpoint");var CBP=new _.J("filterChipTransformCommand");var sdc=new _.J("insertRichSectionCommand");var laY=new _.J("talkToRecsDeselectCommand");var ogu=new _.J("talkToRecsNextCommand");var jBX=new _.J("talkToRecsSelectCommand");var yhc=new _.J("talkToRecsUpdateTextCommand");_.rU=new _.J("browseEndpoint");_.kEc=new _.J("confirmDialogEndpoint");var FRq=new _.J("expandOnHoverCardRenderer");var uhq=new _.J("lumiereShelfDetailsRenderer");var zhc=new _.J("revealBusinessEmailCommand");var Ts5=new _.J("validateChannelHandleCommand");var chc=new _.J("channelCreationFormEndpoint");var ehq=new _.J("aboutChannelViewModel");var rhb=new _.J("channelThumbnailWithLinkRenderer");var iQu=new _.J("channelCreationServiceEndpoint");var wzS=new _.J("updateChannelPageSettingsEndpoint");var QK=function(I){this.delegate=I},ND=function(){QK.apply(this,arguments)};
_.R(ND,QK);_.H1.Object.defineProperties(ND.prototype,{entityMetadata:{configurable:!0,enumerable:!0,get:function(){return this.delegate.entityMetadata},
set:function(I){this.delegate.entityMetadata=I}}});var ngq=function(){ND.apply(this,arguments)};
_.R(ngq,ND);ngq.prototype.getAssociations=function(){return[]};var gRI=new _.J("webThumbnailDetailsExtensionData");var dWm=new _.J("commandContext");var PBP=new _.J("addVideoLinkAction");var LRu=new _.J("createPollAction");var DYS=new _.J("hideIdentityChipAction");var pzq=new _.J("openUpdateCommentDialogAction");var VK=new _.J("updateBackstagePollAction");var QdP=new _.J("updateCommentVoteAction");var Ns0=new _.J("commentThreadRenderer");var VZc=function(){ND.apply(this,arguments)};
_.R(VZc,ND);VZc.prototype.getAssociations=function(){return[]};_.jd8=new _.J("commentDialogRenderer");var leP=new _.J("updateCommentsSettingsEndpoint");var Xzq=new _.J("commentViewModel");var $Yd=new _.J("triStateButtonViewModel");var Rhb=new _.J("voiceReplyContainerViewModel");_.r9=new _.J("commandExecutorCommand");var lU=new _.J("emoji");var bQq=new _.J("updateCreatorChannelInnertubeCommand");_.YrS=new _.J("appendContinuationItemsAction");_.GEu=new _.J("changeEngagementPanelVisibilityAction");_.R8=new _.J("continuationCommand");var fe0=new _.J("listMutationCommand");_.jV=new _.J("openPopupAction");var SrP=new _.J("persistSubscriptionsDisplayPreferencesCommand");var qrw;_.KRw=new _.J("playlistRemoveVideosAction");_.Ahd=new _.J("updatePlaylistAction");_.ggY=new _.J("addToPlaylistCommand");_.vgw=new _.J("endPlaylistCommand");_.WR8=new _.J("recoverPlaylistCommand");_.dYb=new _.J("refreshPlaylistCommand");_.xY0=new _.J("refreshFormCommand");qrw=new _.J("openOnePickAddVideoModalCommand");_.SMY=new _.J("reloadContinuationItemsCommand");_.mYw=new _.J("scrollToEngagementPanelCommand");var ZQ5=new _.J("selectCountryCommand");var Bs5=new _.J("showReloadUiCommand");var Eg0=new _.J("undoFeedbackAction");var hh0=new _.J("updateButtonAction");var IT9=new _.J("updateSubscribeButtonAction");var UYq=new _.J("updateToggleAction");var HQw=new _.J("webNativeShareCommand");_.It=new _.J("webCommandMetadata");_.lv=new _.J("webHandleServiceEndpointExtension");var YRF=new _.J("webNavigationEndpointData");var tZb=new _.J("copyLinkCommand");var JhS=new _.J("playlistVotingRefreshPopupCommand");var OQw=new _.J("selectChipCommand");var aeq=new _.J("setCookieCommand");var MZY=new _.J("setLocalStorageCommand");var II0=new _.J("setPrefStorageEntryCommand");var yZq;_.CRc=new _.J("settingsUpdateCheckboxCommand");_.szP=new _.J("settingsUpdateTextCommand");_.ojw=new _.J("settingsUpdateOptionsCommand");yZq=new _.J("settingsUpdateSwitchCommand");_.k9c=new _.J("settingsUpdateConnectedAppRendererCommand");var Fub=new _.J("updateTextInputFormFieldRendererCommand");var une=new _.J("updateToggleButtonStateCommand");var z$P=new _.J("updateUrlParamCommand");var T1m=new _.J("webSubmitFormCommand");var cZP=new _.J("channelSwitcherPageRenderer"),e$8=new _.J("updateChannelSwitcherPageAction");_.kH=new _.J("continuationItemRenderer");_.XH=new _.J("richItemRenderer");var rZq=new _.J("richSectionRenderer");_.iWP=new _.J("richShelfRenderer");_.wfu=new _.J("metadataBadgeRenderer");_.njY=new _.J("multiPageMenuNotificationSectionRenderer");_.PR0=new _.J("playlistLoopButtonStateRenderer");var LuY=new _.J("claimLegacyYoutubeChannelEndpoint");var D2m=new _.J("getNotificationMenuEndpoint");var pfw=new _.J("getSearchInVideoCommand");_.QzY=new _.J("getTranscriptEndpoint");_.w9=new _.J("signalServiceEndpoint");var N10=new _.J("verifyAgeEndpoint");var Z3X=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Z3X,_.GR);Z3X.prototype.getPath=function(){return _.b4(this,1)};
Z3X.prototype.getValue=function(){return _.b4(this,2)};var Vgq=[0,_.E0,-1];var jzm=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(jzm,_.GR);var m4s=_.hT(jzm,[0,_.h0,Vgq]);var lI0=new _.J("dismissalEndpoint");var XfP=new _.J("elementsCommand");_.$$=new _.J("innertubeCommand");var $2c=new _.J("multipleInlinePlaybackCommand");var rvO=new _.J("loggingDirectives");var HW9={EMBEDDED_PLAYER_MODE_UNKNOWN:"EMBEDDED_PLAYER_MODE_UNKNOWN",EMBEDDED_PLAYER_MODE_DEFAULT:"EMBEDDED_PLAYER_MODE_DEFAULT",EMBEDDED_PLAYER_MODE_PFP:"EMBEDDED_PLAYER_MODE_PFP",EMBEDDED_PLAYER_MODE_PFL:"EMBEDDED_PLAYER_MODE_PFL"};var R$w=new _.J("acknowledgeChannelTouStrikeCommand");var bWm=function(){ND.apply(this,arguments)};
_.R(bWm,ND);bWm.prototype.getAssociations=function(){return[]};var Yv5=function(){ND.apply(this,arguments)};
_.R(Yv5,ND);Yv5.prototype.getAssociations=function(){return[]};var dh=new _.J("entityBatchUpdate");_.G9w=new _.J("entityUpdateCommand");var fI5=function(){ND.apply(this,arguments)};
_.R(fI5,ND);fI5.prototype.getAssociations=function(){var I=[];this.delegate.alternateChannel&&I.push(this.delegate.alternateChannel);this.delegate.alternateChannelList&&I.push.apply(I,_.Py(this.delegate.alternateChannelList));this.delegate.oneofChannelEntity&&I.push(this.delegate.oneofChannelEntity);return[].concat(_.Py(new Set(I)))};var Svm=function(){ND.apply(this,arguments)};
_.R(Svm,ND);Svm.prototype.getAssociations=function(){var I=[];this.delegate.entryCollection&&I.push(this.delegate.entryCollection);return[].concat(_.Py(new Set(I)))};
var Kud=function(){ND.apply(this,arguments)};
_.R(Kud,ND);Kud.prototype.getAssociations=function(){var I=[];this.delegate.parentPlaylist&&I.push(this.delegate.parentPlaylist);if(this.delegate.entries)for(var C=_.T(this.delegate.entries),y=C.next();!y.done;y=C.next())I.push.apply(I,_.Py((new AZm(y.value)).getAssociations()));return[].concat(_.Py(new Set(I)))};
var AZm=function(){QK.apply(this,arguments)};
_.R(AZm,QK);AZm.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);return[].concat(_.Py(new Set(I)))};var gjY=function(){ND.apply(this,arguments)};
_.R(gjY,ND);gjY.prototype.getAssociations=function(){var I=[];this.delegate.descriptionEntity&&I.push(this.delegate.descriptionEntity);this.delegate.creators&&I.push.apply(I,_.Py(this.delegate.creators));this.delegate.theBiggestFan&&I.push(this.delegate.theBiggestFan);return[].concat(_.Py(new Set(I)))};
var vjw=function(){ND.apply(this,arguments)};
_.R(vjw,ND);vjw.prototype.getAssociations=function(){return[]};var Wum=new _.J("fantasyRosterViewModel");var d2q=new _.J("addFollowUpSurveyCommand");var x2w=new _.J("getSurveyCommand");var qvw=new _.J("ratingSurveyOptionRenderer");_.fI=new _.J("feedbackEndpoint");var m2q=new _.J("reportHistoryTableCellRenderer"),ZWP=new _.J("reportHistoryTableTextCellRenderer"),B1u=new _.J("reportHistoryTableReasonCellRenderer");_.Ejm=new _.J("flagEndpoint");var h$P=new _.J("getFlowCommand");var U2q=new _.J("submitFormWithValidationFlowCommand");var HW5=function(){ND.apply(this,arguments)};
_.R(HW5,ND);HW5.prototype.getAssociations=function(){return[]};var tgq=new _.J("flowFormState");var JZS=new _.J("gameCardRenderer");var OW5=new _.J("accountLinkingStateChangedCommand");var aIm=function(){ND.apply(this,arguments)};
_.R(aIm,ND);aIm.prototype.getAssociations=function(){return[]};var Mgb=new _.J("changeMiniAppPlayStateCommand");var IAq=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(IAq,_.GR);var $f=[1,2,3];var CLq=[0,$f,QlF,_.Num,ijm];var sNm=_.hT(IAq,CLq),o6w=_.Um(CLq);var yjd=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(yjd,_.GR);var kGq=[0,_.qm,_.E0];var FXu=[0,_.E0];var ugb=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(ugb,_.GR);var zJ0=function(I,C){return _.Ie(I,3,C)};var Tbq=_.Um([0,1,kGq,_.Hv,FXu]);var cj8=new _.J("miniAppScoreChallengeViewModel");var eJq=new _.J("miniGameCardViewModel");var rjd=new _.J("teaserCardViewModel");var ibe=function(){ND.apply(this,arguments)};
_.R(ibe,ND);ibe.prototype.getAssociations=function(){return[]};_.wlb=new _.J("feedbackItemRenderer");var n6q={UNKNOWN:"UNKNOWN",MY_CHANNEL:"MY_CHANNEL",WATCH_HISTORY:"WATCH_HISTORY",WATCH_HISTORY_CAIRO:"WATCH_HISTORY_CAIRO",WATCH_LATER:"WATCH_LATER",WATCH_LATER_CAIRO:"WATCH_LATER_CAIRO",WATCH_LATER_FILLED:"WATCH_LATER_FILLED",PURCHASES:"PURCHASES",WHAT_TO_WATCH:"WHAT_TO_WATCH",SUBSCRIPTIONS:"SUBSCRIPTIONS",PLAYLISTS:"PLAYLISTS",PLAYLISTS_CAIRO:"PLAYLISTS_CAIRO",OFFLINE:"OFFLINE",OFFLINE_CLOUD:"OFFLINE_CLOUD",OFFLINE_DOWNLOAD:"OFFLINE_DOWNLOAD",OFFLINE_DOWNLOAD_CAIRO:"OFFLINE_DOWNLOAD_CAIRO",OFFLINE_DOWNLOAD_COMPLETE_FILL:"OFFLINE_DOWNLOAD_COMPLETE_FILL",
OFFLINE_DOWNLOADING_ZERO:"OFFLINE_DOWNLOADING_ZERO",OFFLINE_DOWNLOADING_TWENTY:"OFFLINE_DOWNLOADING_TWENTY",OFFLINE_DOWNLOADING_FORTY:"OFFLINE_DOWNLOADING_FORTY",OFFLINE_DOWNLOADING_SIXTY:"OFFLINE_DOWNLOADING_SIXTY",OFFLINE_DOWNLOADING_EIGHTY:"OFFLINE_DOWNLOADING_EIGHTY",OFFLINE_DOWNLOADING_SPINNER:"OFFLINE_DOWNLOADING_SPINNER",OFFLINE_MUSIC_KEY:"OFFLINE_MUSIC_KEY",OFFLINE_REMOVE:"OFFLINE_REMOVE",OFFLINE_RESUME:"OFFLINE_RESUME",OFFLINE_PAUSE:"OFFLINE_PAUSE",OFFLINE_NO_CONTENT:"OFFLINE_NO_CONTENT",
OFFLINE_NO_CONTENT_UPSIDE_DOWN:"OFFLINE_NO_CONTENT_UPSIDE_DOWN",OFFLINE_PIN:"OFFLINE_PIN",OFFLINE_COMMUTE:"OFFLINE_COMMUTE",CAPTURE:"CAPTURE",UPLOADS:"UPLOADS",SOCIAL:"SOCIAL",BROWSE_CHANNELS:"BROWSE_CHANNELS",SUBSCRIPTION_MANAGER:"SUBSCRIPTION_MANAGER",FAVORITES:"FAVORITES",INBOX:"INBOX",LIKES_PLAYLIST:"LIKES_PLAYLIST",LIKES_PLAYLIST_CAIRO:"LIKES_PLAYLIST_CAIRO",MIX:"MIX",COLLECTION:"COLLECTION",EXPAND:"EXPAND",EXPAND_CAIRO:"EXPAND_CAIRO",COLLAPSE:"COLLAPSE",COLLAPSE_CAIRO:"COLLAPSE_CAIRO",MUSIC:"MUSIC",
MUSIC_CAIRO:"MUSIC_CAIRO",NO_OFFLINE_VIDEOS:"NO_OFFLINE_VIDEOS",NO_OFFLINE_PLAYLISTS:"NO_OFFLINE_PLAYLISTS",MUSIC_PASS_BADGE:"MUSIC_PASS_BADGE",PLAYLIST_ORDER:"PLAYLIST_ORDER",SHOWS:"SHOWS",EDUCATION:"EDUCATION",TIP_JAR:"TIP_JAR",TIP_JAR_LOVE:"TIP_JAR_LOVE",NOTIFICATIONS_INBOX:"NOTIFICATIONS_INBOX",BACK:"BACK",PAID:"PAID",POPULAR:"POPULAR",EXPLORE:"EXPLORE",CREATOR_STUDIO:"CREATOR_STUDIO",EDIT:"EDIT",CANCEL:"CANCEL",CREATOR_ANALYTICS:"CREATOR_ANALYTICS",CREATOR_COMMENTS:"CREATOR_COMMENTS",CREATOR_DASHBOARD:"CREATOR_DASHBOARD",
CREATOR_VIDEO_MANAGER:"CREATOR_VIDEO_MANAGER",CREATOR_VIEWER_LINK:"CREATOR_VIEWER_LINK",CREATOR_EXTERNAL_SHORTCUT:"CREATOR_EXTERNAL_SHORTCUT",CREATOR_SETTINGS:"CREATOR_SETTINGS",CREATOR_PLAYLISTS:"CREATOR_PLAYLISTS",CREATOR_METADATA_BASIC:"CREATOR_METADATA_BASIC",CREATOR_METADATA_MONETIZATION:"CREATOR_METADATA_MONETIZATION",CREATOR_METADATA_MONETIZATION_OFF:"CREATOR_METADATA_MONETIZATION_OFF",CREATOR_METADATA_ADVANCED:"CREATOR_METADATA_ADVANCED",SETTINGS:"SETTINGS",SETTINGS_CAIRO:"SETTINGS_CAIRO",
SETTINGS_LIGHT:"SETTINGS_LIGHT",SETTINGS_MATERIAL:"SETTINGS_MATERIAL",EXPERIMENT:"EXPERIMENT",REMOVE_FROM_HISTORY:"REMOVE_FROM_HISTORY",ADD_TO_PLAYLIST:"ADD_TO_PLAYLIST",REMOVE_FROM_PLAYLIST:"REMOVE_FROM_PLAYLIST",SHARE:"SHARE",INFO:"INFO",INFO_OUTLINE:"INFO_OUTLINE",CAPTIONS:"CAPTIONS",LIKE:"LIKE",DISLIKE:"DISLIKE",LIKE_SELECTED:"LIKE_SELECTED",DISLIKE_SELECTED:"DISLIKE_SELECTED",FLAG:"FLAG",FLAG_CAIRO:"FLAG_CAIRO",FLAG_OUTLINE:"FLAG_OUTLINE",HIDE:"HIDE",UNSUBSCRIBE:"UNSUBSCRIBE",DELETE:"DELETE",
DELETE_LIGHT:"DELETE_LIGHT",DELETE_SWEEP:"DELETE_SWEEP",REMOVE:"REMOVE",OFFLINE_ADD:"OFFLINE_ADD",QUESTION_CIRCLE:"QUESTION_CIRCLE",SAVE_PLAYLIST:"SAVE_PLAYLIST",ADD_TO_WATCH_LATER:"ADD_TO_WATCH_LATER",SEARCH:"SEARCH",SEARCH_CAIRO:"SEARCH_CAIRO",SEARCH_WITH_CIRCLE:"SEARCH_WITH_CIRCLE",SEARCH_FILLED:"SEARCH_FILLED",SEARCH_BOLD:"SEARCH_BOLD",SEARCH_TAB_LARGE:"SEARCH_TAB_LARGE",VOICE_SEARCH:"VOICE_SEARCH",VOICE_SEARCH_WHITE:"VOICE_SEARCH_WHITE",VOICE_SEARCH_WITH_CIRCLE:"VOICE_SEARCH_WITH_CIRCLE",SEARCH_HISTORY:"SEARCH_HISTORY",
SIGN_IN:"SIGN_IN",VIEW_ALL:"VIEW_ALL",ADD_TO_REMOTE_QUEUE:"ADD_TO_REMOTE_QUEUE",TRASH:"TRASH",EXPLORE_DESTINATION:"EXPLORE_DESTINATION",SHORTS_DESTINATION:"SHORTS_DESTINATION",TAB_EXPLORE:"TAB_EXPLORE",TAB_HOME:"TAB_HOME",TAB_HOME_CAIRO:"TAB_HOME_CAIRO",TAB_SUBSCRIPTIONS:"TAB_SUBSCRIPTIONS",TAB_SUBSCRIPTIONS_CAIRO:"TAB_SUBSCRIPTIONS_CAIRO",TAB_TRENDING:"TAB_TRENDING",TAB_LIBRARY:"TAB_LIBRARY",TAB_MORE:"TAB_MORE",TAB_ACCOUNT:"TAB_ACCOUNT",TAB_SHARES:"TAB_SHARES",TAB_ACTIVITY:"TAB_ACTIVITY",TAB_ACTIVITY_CAIRO:"TAB_ACTIVITY_CAIRO",
TAB_INBOX:"TAB_INBOX",TAB_HISTORY:"TAB_HISTORY",TAB_LIKED:"TAB_LIKED",TAB_COLLECT:"TAB_COLLECT",TAB_LIVE:"TAB_LIVE",TAB_MUSIC_PREMIUM:"TAB_MUSIC_PREMIUM",TAB_SHORTS:"TAB_SHORTS",TAB_SHORTS_CAIRO:"TAB_SHORTS_CAIRO",TAB_SAMPLES:"TAB_SAMPLES",EMPTY_LIKE:"EMPTY_LIKE",CLOCK:"CLOCK",CLOCK_FILLED:"CLOCK_FILLED",CONVERSATION_JOIN:"CONVERSATION_JOIN",CONVERSATION_LEAVE:"CONVERSATION_LEAVE",CONVERSATION_RENAME:"CONVERSATION_RENAME",MONETIZATION_MONETIZABLE:"MONETIZATION_MONETIZABLE",MONETIZATION_MONETIZED:"MONETIZATION_MONETIZED",
MONETIZATION_NOT_MONETIZABLE:"MONETIZATION_NOT_MONETIZABLE",MONETIZATION_PENDING:"MONETIZATION_PENDING",MONETIZATION_REQUIRES_ACTION:"MONETIZATION_REQUIRES_ACTION",MONETIZATION_REVSHARED:"MONETIZATION_REVSHARED",WATCH_RELATED_MIX:"WATCH_RELATED_MIX",WATCH_RELATED_PLAYLIST:"WATCH_RELATED_PLAYLIST",HELP:"HELP",HELP_CAIRO:"HELP_CAIRO",PRIVACY_PRIVATE:"PRIVACY_PRIVATE",PRIVACY_PUBLIC:"PRIVACY_PUBLIC",PRIVACY_UNLISTED:"PRIVACY_UNLISTED",PRIVACY_SCHEDULED:"PRIVACY_SCHEDULED",PLAY_ALL:"PLAY_ALL",CREATOR_CAPTURE_LINK:"CREATOR_CAPTURE_LINK",
DISMISSAL:"DISMISSAL",CHANNELS_HOME_TAB:"CHANNELS_HOME_TAB",CHANNELS_FEED_TAB:"CHANNELS_FEED_TAB",VERY_HAPPY:"VERY_HAPPY",HAPPY:"HAPPY",MEH:"MEH",SAD:"SAD",VERY_SAD:"VERY_SAD",YOUTUBE:"YOUTUBE",YOUTUBE_LOGO:"YOUTUBE_LOGO",YOUTUBE_LOGO_LIGHT:"YOUTUBE_LOGO_LIGHT",YOUTUBE_RED_LOGO:"YOUTUBE_RED_LOGO",YOUTUBE_RED_LOGO_SHORT:"YOUTUBE_RED_LOGO_SHORT",YOUTUBE_RED_LOGO_LIGHT:"YOUTUBE_RED_LOGO_LIGHT",YOUTUBE_RED_LOGO_WHITE_TEXT:"YOUTUBE_RED_LOGO_WHITE_TEXT",YOUTUBE_PLUS_LOGO:"YOUTUBE_PLUS_LOGO",YOUTUBE_PLUS_LOGO_SHORT:"YOUTUBE_PLUS_LOGO_SHORT",
YOUTUBE_PLUS_LOGO_LIGHT:"YOUTUBE_PLUS_LOGO_LIGHT",YOUTUBE_MUSIC_LOGO_SHORT:"YOUTUBE_MUSIC_LOGO_SHORT",YOUTUBE_MUSIC_LOGO_WHITE_TEXT:"YOUTUBE_MUSIC_LOGO_WHITE_TEXT",YOUTUBE_PREMIERE_LOGO_SHORT:"YOUTUBE_PREMIERE_LOGO_SHORT",YOUTUBE_PREMIUM_LOGO:"YOUTUBE_PREMIUM_LOGO",YOUTUBE_PREMIUM_LOGO_SHORT:"YOUTUBE_PREMIUM_LOGO_SHORT",YOUTUBE_SHORTS_ARROW_UP:"YOUTUBE_SHORTS_ARROW_UP",YOUTUBE_SHORTS_ARROW_DOWN:"YOUTUBE_SHORTS_ARROW_DOWN",YOUTUBE_SHORTS_OUTLINE_16:"YOUTUBE_SHORTS_OUTLINE_16",YOUTUBE_SHORTS_OUTLINE_20:"YOUTUBE_SHORTS_OUTLINE_20",
YOUTUBE_SHORTS_OUTLINE_24:"YOUTUBE_SHORTS_OUTLINE_24",YOUTUBE_SHORTS_FILL_16:"YOUTUBE_SHORTS_FILL_16",YOUTUBE_SHORTS_FILL_20:"YOUTUBE_SHORTS_FILL_20",YOUTUBE_SHORTS_FILL_24:"YOUTUBE_SHORTS_FILL_24",YOUTUBE_SHORTS_BRAND_24:"YOUTUBE_SHORTS_BRAND_24",YOUTUBE_SHORTS_BRAND_32:"YOUTUBE_SHORTS_BRAND_32",YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21:"YOUTUBE_SHORTS_TRUNCATED_LOGO_WHITE_21",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16",YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16:"YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16",
YOUTUBE_TV:"YOUTUBE_TV",YOUTUBE_WHITE:"YOUTUBE_WHITE",YOUTUBE_KIDS:"YOUTUBE_KIDS",YOUTUBE_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_LOGO_CAIRO_PLACEHOLDER_DARK",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER",YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK:"YOUTUBE_PREMIUM_LOGO_CAIRO_PLACEHOLDER_DARK",MONETIZATION_ON:"MONETIZATION_ON",SORT_NEWEST:"SORT_NEWEST",SORT_MOST_VIEWED:"SORT_MOST_VIEWED",VIDEO_QUALITY:"VIDEO_QUALITY",
VIDEO_QUALITY_4K:"VIDEO_QUALITY_4K",VIDEO_QUALITY_4K_FILLED:"VIDEO_QUALITY_4K_FILLED",VIDEO_QUALITY_8K:"VIDEO_QUALITY_8K",VIDEO_QUALITY_SD:"VIDEO_QUALITY_SD",FEEDBACK:"FEEDBACK",FEEDBACK_CAIRO:"FEEDBACK_CAIRO",PRIVACY_INFO:"PRIVACY_INFO",SHARE_LIGHT:"SHARE_LIGHT",SHARE_ARROW:"SHARE_ARROW",SHARE_ARROW_LIGHT:"SHARE_ARROW_LIGHT",SHARE_CAIRO:"SHARE_CAIRO",IOS_SHARE:"IOS_SHARE",CREATE_PLAYLIST:"CREATE_PLAYLIST",UNLIMITED:"UNLIMITED",EMPTY_HEART:"EMPTY_HEART",FULL_HEART:"FULL_HEART",UNLIMITED_LOGO:"UNLIMITED_LOGO",
RELATED:"RELATED",PLAYING:"PLAYING",REPORT_PROBLEM:"REPORT_PROBLEM",BUG_REPORT:"BUG_REPORT",INLINE_PLAYBACK_SETTINGS:"INLINE_PLAYBACK_SETTINGS",REPLAY:"REPLAY",REFRESH:"REFRESH",REDEEM:"REDEEM",SWITCH_ACCOUNTS:"SWITCH_ACCOUNTS",SHUFFLE:"SHUFFLE",MUSIC_SHUFFLE:"MUSIC_SHUFFLE",LOOP:"LOOP",LOOP_ACTIVE:"LOOP_ACTIVE",LOOP_ONE:"LOOP_ONE",LOOP_ONE_ACTIVE:"LOOP_ONE_ACTIVE",ACCOUNT_CIRCLE:"ACCOUNT_CIRCLE",ACCOUNT_CIRCLE_CAIRO:"ACCOUNT_CIRCLE_CAIRO",ACCOUNT_BOX:"ACCOUNT_BOX",ACCOUNT_BOX_CAIRO:"ACCOUNT_BOX_CAIRO",
OPEN_IN_NEW:"OPEN_IN_NEW",OPEN_WITH:"OPEN_WITH",CAST_ICON:"CAST_ICON",CAST_OUTLINE:"CAST_OUTLINE",CAST_MOBILE:"CAST_MOBILE",DISCONNECTED_CAST_CIRCLE:"DISCONNECTED_CAST_CIRCLE",SHORTS_COMMENT:"SHORTS_COMMENT",SHORTS_DISLIKE:"SHORTS_DISLIKE",SHORTS_LIKE:"SHORTS_LIKE",SHORTS_SHARE:"SHORTS_SHARE",SHORTS_HEADER_CAMERA:"SHORTS_HEADER_CAMERA",SHORTS_HEADER_CAMERA_BOLD:"SHORTS_HEADER_CAMERA_BOLD",SHORTS_LIKE_SELECTED:"SHORTS_LIKE_SELECTED",SHORTS_DISLIKE_SELECTED:"SHORTS_DISLIKE_SELECTED",SHORTS_SAVE_OFF:"SHORTS_SAVE_OFF",
SHORTS_SAVE_ON:"SHORTS_SAVE_ON",SHORTS_SEARCH:"SHORTS_SEARCH",ADD_FRIEND:"ADD_FRIEND",ADD_MORE_FRIENDS:"ADD_MORE_FRIENDS",ACCEPT_FRIEND_INVITE:"ACCEPT_FRIEND_INVITE",DECLINE_FRIEND_INVITE:"DECLINE_FRIEND_INVITE",CANCEL_FRIEND_INVITE:"CANCEL_FRIEND_INVITE",BLOCK_USER:"BLOCK_USER",UNBLOCK_USER:"UNBLOCK_USER",VIEW_PARTICIPANTS:"VIEW_PARTICIPANTS",INVITE_TO_CONVERSATION:"INVITE_TO_CONVERSATION",LIVE:"LIVE",LIVE_CAIRO:"LIVE_CAIRO",SPECIAL:"SPECIAL",HOME:"HOME",HOME_FILLED:"HOME_FILLED",STAFF_PICK:"STAFF_PICK",
REVIEW:"REVIEW",LETS_PLAY:"LETS_PLAY",MORE_FROM_PUBLISHER:"MORE_FROM_PUBLISHER",NEWS:"NEWS",NEWS_CAIRO:"NEWS_CAIRO",TRAILER:"TRAILER",NEW_RELEASE:"NEW_RELEASE",TOURNAMENTS:"TOURNAMENTS",SPEED_RUN:"SPEED_RUN",EVENT:"EVENT",EVENT_LIGHT:"EVENT_LIGHT",TUTORIAL:"TUTORIAL",GAMES:"GAMES",RECOMMENDED:"RECOMMENDED",TRENDING_UP:"TRENDING_UP",VIDEOS:"VIDEOS",FASHION_LOGO:"FASHION_LOGO",FASHION_LOGO_CAIRO:"FASHION_LOGO_CAIRO",TERMS_OF_SERVICE:"TERMS_OF_SERVICE",CONTACT:"CONTACT",COLORED_GAMING_LOGO:"COLORED_GAMING_LOGO",
GAMING_LOGO:"GAMING_LOGO",GAMING_LOGO_CAIRO:"GAMING_LOGO_CAIRO",CHANNEL_NOTIFICATION_PREFERENCE_OFF:"CHANNEL_NOTIFICATION_PREFERENCE_OFF",CHANNEL_NOTIFICATION_PREFERENCE_ON:"CHANNEL_NOTIFICATION_PREFERENCE_ON",PLAYLIST_NOTIFICATION_PREFERENCE_OFF:"PLAYLIST_NOTIFICATION_PREFERENCE_OFF",PLAYLIST_NOTIFICATION_PREFERENCE_ON:"PLAYLIST_NOTIFICATION_PREFERENCE_ON",NOTIFICATIONS:"NOTIFICATIONS",NOTIFICATIONS_CAIRO:"NOTIFICATIONS_CAIRO",NOTIFICATIONS_OFF:"NOTIFICATIONS_OFF",NOTIFICATIONS_OFF_OUTLINE:"NOTIFICATIONS_OFF_OUTLINE",
NOTIFICATIONS_DONE_CHECKMARK:"NOTIFICATIONS_DONE_CHECKMARK",MUSIC_AUTO_OFFLINE_BADGE:"MUSIC_AUTO_OFFLINE_BADGE",MUSIC_EXPLICIT_BADGE:"MUSIC_EXPLICIT_BADGE",MUSIC_NOTIFICATIONS_SETTING:"MUSIC_NOTIFICATIONS_SETTING",NOTIFICATIONS_NONE:"NOTIFICATIONS_NONE",NOTIFICATIONS_ACTIVE:"NOTIFICATIONS_ACTIVE",NOTIFICATIONS_OCCASIONAL:"NOTIFICATIONS_OCCASIONAL",SEND:"SEND",SEND_OUTLINE:"SEND_OUTLINE",SLOW_MODE:"SLOW_MODE",SLOW_MODE_OFF:"SLOW_MODE_OFF",STORIES_ADD_BADGE:"STORIES_ADD_BADGE",SUPER_CHAT_FOR_GOOD:"SUPER_CHAT_FOR_GOOD",
MEMBERS_ONLY_MODE:"MEMBERS_ONLY_MODE",MEMBERS_ONLY_MODE_OFF:"MEMBERS_ONLY_MODE_OFF",INVITE_ONLY_MODE:"INVITE_ONLY_MODE",INVITE_ONLY_MODE_OFF:"INVITE_ONLY_MODE_OFF",EMOJI:"EMOJI",EMOJI_ACTIVITIES:"EMOJI_ACTIVITIES",EMOJI_CUSTOM:"EMOJI_CUSTOM",EMOJI_FLAGS:"EMOJI_FLAGS",EMOJI_FOOD:"EMOJI_FOOD",EMOJI_NATURE:"EMOJI_NATURE",EMOJI_OBJECTS:"EMOJI_OBJECTS",EMOJI_PEOPLE:"EMOJI_PEOPLE",EMOJI_RECENT:"EMOJI_RECENT",EMOJI_SYMBOLS:"EMOJI_SYMBOLS",EMOJI_TRAVEL:"EMOJI_TRAVEL",EMOJI_SPONSORSHIPS:"EMOJI_SPONSORSHIPS",
HEART_BOX:"HEART_BOX",MEDAL_STAR:"MEDAL_STAR",SUPERSTAR:"SUPERSTAR",TROPHY_STAR:"TROPHY_STAR",MESSAGE_BUBBLE_GEAR:"MESSAGE_BUBBLE_GEAR",MESSAGE_BUBBLE_LEFT:"MESSAGE_BUBBLE_LEFT",MESSAGE_BUBBLE_LEFT_BOOST:"MESSAGE_BUBBLE_LEFT_BOOST",MONEY_FILL:"MONEY_FILL",MONEY_FILL_JPY:"MONEY_FILL_JPY",MONEY_FILL_STORE:"MONEY_FILL_STORE",MONEY_FILL_SHOPPING_BAG:"MONEY_FILL_SHOPPING_BAG",MONEY_FILL_MORE_ARROW:"MONEY_FILL_MORE_ARROW",MONEY_HEART:"MONEY_HEART",FILL_DOLLAR_SIGN_HEART_12:"FILL_DOLLAR_SIGN_HEART_12",PURCHASE_SPONSORSHIP:"PURCHASE_SPONSORSHIP",
PURCHASE_SUPER_CHAT:"PURCHASE_SUPER_CHAT",PURCHASE_SUPER_STICKER:"PURCHASE_SUPER_STICKER",SUPER_STICKER:"SUPER_STICKER",REDEEM_SUPER_CHAT_FREEBIE:"REDEEM_SUPER_CHAT_FREEBIE",STICKER_GHOST_CARD:"STICKER_GHOST_CARD",DOLLAR_SIGN_CIRCLE:"DOLLAR_SIGN_CIRCLE",OWNER:"OWNER",MODERATOR:"MODERATOR",YOUTUBE_TEAM:"YOUTUBE_TEAM",VERIFIED:"VERIFIED",MEMBER:"MEMBER",FAB_UPLOAD:"FAB_UPLOAD",FAB_CAMERA:"FAB_CAMERA",BACKGROUND_SIGNED_OUT:"BACKGROUND_SIGNED_OUT",BACKGROUND_SUBSCRIBE:"BACKGROUND_SUBSCRIBE",BACKGROUND_SUBSCRIBE_TRANSPARENT:"BACKGROUND_SUBSCRIBE_TRANSPARENT",
ARTIST:"ARTIST",ARTIST_ANALYTICS:"ARTIST_ANALYTICS",ASSESSMENT:"ASSESSMENT",CREDIT_CARD:"CREDIT_CARD",GET_APP:"GET_APP",LIVE_CHECKLIST:"LIVE_CHECKLIST",MEMBERSHIP_PRE_PURCHASE:"MEMBERSHIP_PRE_PURCHASE",MEMBERSHIP_LIMITED_PRE_PURCHASE:"MEMBERSHIP_LIMITED_PRE_PURCHASE",MEMBERSHIP_POST_PURCHASE:"MEMBERSHIP_POST_PURCHASE",MEMBERSHIP_LIMITED_POST_PURCHASE:"MEMBERSHIP_LIMITED_POST_PURCHASE",MEMBERSHIP_OFFER:"MEMBERSHIP_OFFER",MEMBERSHIP_MANAGE:"MEMBERSHIP_MANAGE",MEMBERSHIP_CANCELED:"MEMBERSHIP_CANCELED",
MEMBERSHIP_PURCHASED:"MEMBERSHIP_PURCHASED",PHONE:"PHONE",SMS:"SMS",FAVORITE:"FAVORITE",UNFAVORITE:"UNFAVORITE",NEXT:"NEXT",REPOST:"REPOST",EXTERNAL_LINK:"EXTERNAL_LINK",LANGUAGE:"LANGUAGE",CLOSED_CAPTION:"CLOSED_CAPTION",CLOSED_CAPTION_SELECTED:"CLOSED_CAPTION_SELECTED",VIEW_LIST:"VIEW_LIST",VIEW_LIST_CAIRO:"VIEW_LIST_CAIRO",VIEW_LIST_DARK:"VIEW_LIST_DARK",VIEW_MODULE:"VIEW_MODULE",VIEW_MODULE_DARK:"VIEW_MODULE_DARK",VERTICAL_ALIGN_BOTTOM:"VERTICAL_ALIGN_BOTTOM",VERTICAL_ALIGN_TOP:"VERTICAL_ALIGN_TOP",
MUSIC_UNAVAILABLE:"MUSIC_UNAVAILABLE",NO_CONVERSATIONS:"NO_CONVERSATIONS",ALERT_WARN_RED:"ALERT_WARN_RED",ALERT_WARN_YELLOW:"ALERT_WARN_YELLOW",WARNING:"WARNING",SORT:"SORT",FILTER:"FILTER",KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_PRESCHOOL_CONTENT_AGE_PREFERENCE",KIDS_SCHOOL_CONTENT_AGE_PREFERENCE:"KIDS_SCHOOL_CONTENT_AGE_PREFERENCE",KIDS_NO_CONTENT_AGE_PREFERENCE:"KIDS_NO_CONTENT_AGE_PREFERENCE",SPACECAST:"SPACECAST",SCHOOL:"SCHOOL",ACCELERATOR:"ACCELERATOR",TRENDING:"TRENDING",TRENDING_CAIRO:"TRENDING_CAIRO",
PAUSE_FILLED:"PAUSE_FILLED",PAUSE_OUTLINED:"PAUSE_OUTLINED",PHOTO_CAMERA:"PHOTO_CAMERA",PHOTO_CAMERA_LIGHT:"PHOTO_CAMERA_LIGHT",PHOTO_CAMERA_OUTLINE:"PHOTO_CAMERA_OUTLINE",PHOTO_CAMERA_OUTLINE_LARGE:"PHOTO_CAMERA_OUTLINE_LARGE",PHOTO_LIBRARY:"PHOTO_LIBRARY",COPYRIGHT_NOTIFICATION_RED:"COPYRIGHT_NOTIFICATION_RED",COPYRIGHT_NOTIFICATION_BLUE:"COPYRIGHT_NOTIFICATION_BLUE",PLAYLIST_ADD:"PLAYLIST_ADD",PLAYLIST_ADD_CHECK:"PLAYLIST_ADD_CHECK",CHANNEL_BACK:"CHANNEL_BACK",STAR:"STAR",STAR_FILLED:"STAR_FILLED",
STAR_BORDER:"STAR_BORDER",STAR_HALF:"STAR_HALF",CLOSE:"CLOSE",CLOSE_LIGHT:"CLOSE_LIGHT",COUNTDOWN_TO_CLOSE:"COUNTDOWN_TO_CLOSE",COUNTDOWN_TO_CLOSE_DIGIT:"COUNTDOWN_TO_CLOSE_DIGIT",CHECK:"CHECK",TOPIC_EXPLORER_EXPAND_FACET:"TOPIC_EXPLORER_EXPAND_FACET",TOPIC_EXPLORER_COLLAPSE_FACET:"TOPIC_EXPLORER_COLLAPSE_FACET",CLEAR_COOKIES:"CLEAR_COOKIES",CLEAR_WATCH_HISTORY:"CLEAR_WATCH_HISTORY",CLEAR_SEARCH_HISTORY:"CLEAR_SEARCH_HISTORY",CHEVRON_RIGHT:"CHEVRON_RIGHT",CHEVRON_RIGHT_CAIRO:"CHEVRON_RIGHT_CAIRO",
CHEVRON_RIGHT_GREY:"CHEVRON_RIGHT_GREY",CHEVRON_LEFT:"CHEVRON_LEFT",SUBSCRIBE:"SUBSCRIBE",SUBSCRIBE_PLUS:"SUBSCRIBE_PLUS",GO_TO_PAGE:"GO_TO_PAGE",DO_NOT_DISTURB:"DO_NOT_DISTURB",ADD_TO_LIBRARY:"ADD_TO_LIBRARY",REMOVE_FROM_LIBRARY:"REMOVE_FROM_LIBRARY",UP_ARROW:"UP_ARROW",DOWN_ARROW:"DOWN_ARROW",DOWN_ARROW_OUTLINE:"DOWN_ARROW_OUTLINE",EMPTY_STATE_CREATE_VIDEO:"EMPTY_STATE_CREATE_VIDEO",EMPTY_STATE_ORGANIZE_CHANNEL:"EMPTY_STATE_ORGANIZE_CHANNEL",EMPTY_STATE_NO_CONTENT:"EMPTY_STATE_NO_CONTENT",EMPTY_STATE_PRIVATE_CONTENT:"EMPTY_STATE_PRIVATE_CONTENT",
BUY_DATA:"BUY_DATA",SHOPPING_CART:"SHOPPING_CART",ARROW_FLIP:"ARROW_FLIP",RESTORE:"RESTORE",ARROW_DIAGONAL:"ARROW_DIAGONAL",CONSENT_SHIELD:"CONSENT_SHIELD",COMMENT:"COMMENT",START_DVR:"START_DVR",STOP_DVR:"STOP_DVR",CHAT:"CHAT",CHAT_OFF:"CHAT_OFF",CHAT_BUBBLE:"CHAT_BUBBLE",CHAT_BUBBLE_LIGHT:"CHAT_BUBBLE_LIGHT",CHAT_BUBBLE_OFF:"CHAT_BUBBLE_OFF",CHAT_SPARK:"CHAT_SPARK",CHAT_SPONSORED:"CHAT_SPONSORED",VOICE_CHAT:"VOICE_CHAT",SPONSORSHIP_STAR:"SPONSORSHIP_STAR",SPONSORSHIPS:"SPONSORSHIPS",SPONSORSHIPS_NO_BG:"SPONSORSHIPS_NO_BG",
PLAY_ARROW:"PLAY_ARROW",PLAY_ARROW_OUTLINED:"PLAY_ARROW_OUTLINED",PLAY_ARROW_CIRCLE:"PLAY_ARROW_CIRCLE",PLAY_CIRCLE:"PLAY_CIRCLE",PLAY_ARROW_OVERLAY:"PLAY_ARROW_OVERLAY",PLAY_OUTLINED:"PLAY_OUTLINED",CHECK_CIRCLE:"CHECK_CIRCLE",CHECK_CIRCLE_BLUE:"CHECK_CIRCLE_BLUE",CHECK_CIRCLE_OUTLINE:"CHECK_CIRCLE_OUTLINE",CHECK_CIRCLE_THICK:"CHECK_CIRCLE_THICK",CHECK_CIRCLE_FILLED:"CHECK_CIRCLE_FILLED",COPY:"COPY",QUEUE_PLAY_NEXT:"QUEUE_PLAY_NEXT",QUEUE_PLAY_LAST:"QUEUE_PLAY_LAST",QUEUE_MUSIC:"QUEUE_MUSIC",CARDBOARD:"CARDBOARD",
PLANNER_REVIEW:"PLANNER_REVIEW",MORE_VERT:"MORE_VERT",MORE_VERT_BOLD:"MORE_VERT_BOLD",MORE_HORIZ_LIGHT:"MORE_HORIZ_LIGHT",MORE_HORIZ:"MORE_HORIZ",ANDROID_PHONE:"ANDROID_PHONE",ADD:"ADD",ADD_BOLD:"ADD_BOLD",ADD_SMALL:"ADD_SMALL",EXIT_APP:"EXIT_APP",IM_FEELING_LUCKY:"IM_FEELING_LUCKY",PUBLIC:"PUBLIC",MESSAGE:"MESSAGE",MOBILE_LANDSCAPE:"MOBILE_LANDSCAPE",MOBILE_PORTRAIT:"MOBILE_PORTRAIT",STAY_CURRENT_LANDSCAPE:"STAY_CURRENT_LANDSCAPE",STAY_CURRENT_PORTRAIT:"STAY_CURRENT_PORTRAIT",BUILD:"BUILD",INPUT_COMPONENT:"INPUT_COMPONENT",
DOGFOOD:"DOGFOOD",KEEP:"KEEP",KEEP_OFF:"KEEP_OFF",DASHBOARD:"DASHBOARD",SPORTS:"SPORTS",SUBTITLES:"SUBTITLES",QUESTION_ANSWER:"QUESTION_ANSWER",IMPORT_CONTACTS:"IMPORT_CONTACTS",VIDEO_CALL:"VIDEO_CALL",VIDEO_CAMERA:"VIDEO_CAMERA",VIDEO_CAMERA_DISABLED:"VIDEO_CAMERA_DISABLED",VIDEO_CAMERA_SWITCH_LIGHT:"VIDEO_CAMERA_SWITCH_LIGHT",BACK_LIGHT:"BACK_LIGHT",FILTER_EFFECT_LIGHT:"FILTER_EFFECT_LIGHT",MICROPHONE_ON:"MICROPHONE_ON",MICROPHONE_OFF:"MICROPHONE_OFF",FLASH_ON:"FLASH_ON",FLASH_OFF:"FLASH_OFF",LINK:"LINK",
LIVE_UNLISTED:"LIVE_UNLISTED",PAYMENT:"PAYMENT",ADD_CIRCLE:"ADD_CIRCLE",SMARTPHONE:"SMARTPHONE",SCREEN_LOCK_PORTRAIT:"SCREEN_LOCK_PORTRAIT",SCREEN_LOCK_LANDSCAPE:"SCREEN_LOCK_LANDSCAPE",KIDS_REPORT_AUDIO:"KIDS_REPORT_AUDIO",KIDS_REPORT_VISUALS:"KIDS_REPORT_VISUALS",KIDS_REPORT_OTHER:"KIDS_REPORT_OTHER",KIDS_BLOCK:"KIDS_BLOCK",KIDS_BLOCK_LIGHT:"KIDS_BLOCK_LIGHT",AVATAR_ANONYMOUS:"AVATAR_ANONYMOUS",AVATAR_LOGGED_OUT:"AVATAR_LOGGED_OUT",HALLOWEEN:"HALLOWEEN",UPLOAD:"UPLOAD",MY_LOCATION:"MY_LOCATION",
MUSIC_VIDEO:"MUSIC_VIDEO",PLAYLIST_PLAY:"PLAYLIST_PLAY",ALBUM:"ALBUM",LOGGED_OUT_SUBS:"LOGGED_OUT_SUBS",LOGGED_OUT_LIBRARY:"LOGGED_OUT_LIBRARY",LOGGED_OUT_ACCOUNT:"LOGGED_OUT_ACCOUNT",FUSION_V2_FSI:"FUSION_V2_FSI",PERSON:"PERSON",PERSON_ADD:"PERSON_ADD",PERSON_ACCOUNT:"PERSON_ACCOUNT",PERSON_CIRCLE:"PERSON_CIRCLE",PERSON_MINUS:"PERSON_MINUS",PERSON_RADAR:"PERSON_RADAR",PERSON_RADAR_FILLED:"PERSON_RADAR_FILLED",PERSON_SETTING:"PERSON_SETTING",MOVIES:"MOVIES",CLAPPERBOARD:"CLAPPERBOARD",CLAPPERBOARD_CAIRO:"CLAPPERBOARD_CAIRO",
MOVIES_BLUE:"MOVIES_BLUE",ROTTEN_TOMATOES_FRESH:"ROTTEN_TOMATOES_FRESH",ROTTEN_TOMATOES_SPLAT:"ROTTEN_TOMATOES_SPLAT",ROTTEN_TOMATOES_CERTIFIED:"ROTTEN_TOMATOES_CERTIFIED",WINTER:"WINTER",HOURGLASS:"HOURGLASS",REMOVE_CIRCLE:"REMOVE_CIRCLE",YOUTUBE_RED_ORIGINALS:"YOUTUBE_RED_ORIGINALS",VIDEO_YOUTUBE_RED:"VIDEO_YOUTUBE_RED",ACCESS_TIME:"ACCESS_TIME",ERROR_OUTLINE:"ERROR_OUTLINE",ERROR_WHITE:"ERROR_WHITE",ERROR_BLACK:"ERROR_BLACK",IMAGE:"IMAGE",NO_CONNECTION:"NO_CONNECTION",UNPLUGGED_LOGO:"UNPLUGGED_LOGO",
CREATE_VIDEO:"CREATE_VIDEO",CREATE_REEL_ITEM:"CREATE_REEL_ITEM",CREATE_LIVE_STREAM:"CREATE_LIVE_STREAM",CREATE_POST:"CREATE_POST",CREATION_ENTRY:"CREATION_ENTRY",CREATION_ENTRY_V2:"CREATION_ENTRY_V2",KIDS_GAMING:"KIDS_GAMING",YOUTUBE_MUSIC_BUTTON:"YOUTUBE_MUSIC_BUTTON",YOUTUBE_MUSIC_BUTTON_RED:"YOUTUBE_MUSIC_BUTTON_RED",YOUTUBE_MUSIC_BUTTON_RINGO:"YOUTUBE_MUSIC_BUTTON_RINGO",YOUTUBE_RED_ORIGINALS_BUTTON:"YOUTUBE_RED_ORIGINALS_BUTTON",YOUTUBE_RED_ORIGINALS_BUTTON_RED:"YOUTUBE_RED_ORIGINALS_BUTTON_RED",
EXIT_TO_APP:"EXIT_TO_APP",FIRST_PAGE:"FIRST_PAGE",LAST_PAGE:"LAST_PAGE",TIMER:"TIMER",TRANSFER_FINISHED:"TRANSFER_FINISHED",TRANSFER_SYNC:"TRANSFER_SYNC",TRANSLATE:"TRANSLATE",AV_TIMER:"AV_TIMER",SUBS_ZERO_STATE:"SUBS_ZERO_STATE",KEYBOARD:"KEYBOARD",KEYBOARD_OUTLINE:"KEYBOARD_OUTLINE",APP_INSTALL:"APP_INSTALL",POLL:"POLL",REDO:"REDO",BLOCK:"BLOCK",ADD_VIDEO_LINK:"ADD_VIDEO_LINK",RADIO_BUTTON_UNCHECKED:"RADIO_BUTTON_UNCHECKED",PLACE:"PLACE",PIVOT_HOME:"PIVOT_HOME",PIVOT_HOME_GREY:"PIVOT_HOME_GREY",
PIVOT_TRENDING:"PIVOT_TRENDING",PIVOT_REWIND:"PIVOT_REWIND",PIVOT_SUBSCRIPTIONS:"PIVOT_SUBSCRIPTIONS",PIVOT_SHARED:"PIVOT_SHARED",PIVOT_LIBRARY:"PIVOT_LIBRARY",PIVOT_ACCOUNT:"PIVOT_ACCOUNT",KIDS_READING:"KIDS_READING",PIVOT_PREMIER:"PIVOT_PREMIER",AUDIOTRACK:"AUDIOTRACK",STICKER_LIGHT:"STICKER_LIGHT",STICKER_EMOTICON:"STICKER_EMOTICON",STARS:"STARS",SCISSORS:"SCISSORS",MUSIC_SCISSORS:"MUSIC_SCISSORS",TAG_FACES:"TAG_FACES",GROUP:"GROUP",EMPTY_STATE_WATCH_LATER:"EMPTY_STATE_WATCH_LATER",SLOW_MOTION_VIDEO:"SLOW_MOTION_VIDEO",
ARROW_FORWARD:"ARROW_FORWARD",ARROW_BACK:"ARROW_BACK",DARK_THEME:"DARK_THEME",DARK_THEME_LARGE:"DARK_THEME_LARGE",VISIBILITY:"VISIBILITY",VISIBILITY_OFF:"VISIBILITY_OFF",MORE_LIKE_THIS:"MORE_LIKE_THIS",CAMERA_ALT:"CAMERA_ALT",ADD_PHOTO_ALTERNATE:"ADD_PHOTO_ALTERNATE",NOT_INTERESTED:"NOT_INTERESTED",APPS:"APPS",YOUTUBE_ROUND:"YOUTUBE_ROUND",OUTLINE_YOUTUBE_ROUND:"OUTLINE_YOUTUBE_ROUND",YOUTUBE_KIDS_ROUND:"YOUTUBE_KIDS_ROUND",YOUTUBE_MUSIC:"YOUTUBE_MUSIC",YOUTUBE_MUSIC_FILLED:"YOUTUBE_MUSIC_FILLED",
YOUTUBE_MUSIC_MONOCHROME:"YOUTUBE_MUSIC_MONOCHROME",YOUTUBE_MUSIC_MONOCHROME_CAIRO:"YOUTUBE_MUSIC_MONOCHROME_CAIRO",UNPLUGGED_BELL_FOLLOW_ENABLED:"UNPLUGGED_BELL_FOLLOW_ENABLED",UNPLUGGED_BELL_FOLLOW_DISABLED:"UNPLUGGED_BELL_FOLLOW_DISABLED",UNPLUGGED_SPORTS:"UNPLUGGED_SPORTS",UNPLUGGED_LIVE_GUIDE:"UNPLUGGED_LIVE_GUIDE",UNPLUGGED_LIVE_GUIDE_FILLED:"UNPLUGGED_LIVE_GUIDE_FILLED",SUBSCRIPTIONS_FILLED:"SUBSCRIPTIONS_FILLED",VISIBILITY_FILLED:"VISIBILITY_FILLED",LOCATION_FILLED:"LOCATION_FILLED",UNPLUGGED_DARK_THEME:"UNPLUGGED_DARK_THEME",
BRIGHTNESS_FIVE:"BRIGHTNESS_FIVE",BRIGHTNESS_FOUR:"BRIGHTNESS_FOUR",UNPLUGGED_NETWORKS:"UNPLUGGED_NETWORKS",UNPLUGGED_EPISODES:"UNPLUGGED_EPISODES",UNPLUGGED_MORE_TO_WATCH:"UNPLUGGED_MORE_TO_WATCH",UNPLUGGED_STORE:"UNPLUGGED_STORE",CONVERSATIONS:"CONVERSATIONS",EMPTY_SEARCH:"EMPTY_SEARCH",CHECK_BOX:"CHECK_BOX",CHECK_BOX_OUTLINE_BLANK:"CHECK_BOX_OUTLINE_BLANK",CHECK_BOX_BAR:"CHECK_BOX_BAR",SKIP_NEXT:"SKIP_NEXT",SKIP_NEXT_NEW:"SKIP_NEXT_NEW",SKIP_PREVIOUS:"SKIP_PREVIOUS",PICTURE_IN_PICTURE:"PICTURE_IN_PICTURE",
SOUND:"SOUND",AUTOPLAY:"AUTOPLAY",CONTRAST:"CONTRAST",VOLUME_MUTE:"VOLUME_MUTE",VOLUME_OFF:"VOLUME_OFF",VOLUME_UP:"VOLUME_UP",VOLUME_DOWN:"VOLUME_DOWN",MY_VIDEOS_ZERO_STATE:"MY_VIDEOS_ZERO_STATE",BACKSTAGE_ARTWORK:"BACKSTAGE_ARTWORK",LIBRARY_MUSIC:"LIBRARY_MUSIC",LIBRARY_ADD:"LIBRARY_ADD",LIBRARY_IMAGE:"LIBRARY_IMAGE",LIBRARY_REMOVE:"LIBRARY_REMOVE",LIBRARY_OUTLINE:"LIBRARY_OUTLINE",LIBRARY_SAVED:"LIBRARY_SAVED",WATCH_HISTORY_PAUSED:"WATCH_HISTORY_PAUSED",IMPROVE_YOUTUBE:"IMPROVE_YOUTUBE",TV:"TV",
TV_OFF:"TV_OFF",SAVE_ALT:"SAVE_ALT",DOWNLOADS_PAGE_EMPTY:"DOWNLOADS_PAGE_EMPTY",ACCOUNT_LINKED:"ACCOUNT_LINKED",ACCOUNT_UNLINKED:"ACCOUNT_UNLINKED",ACCOUNT_SOME_LINKED:"ACCOUNT_SOME_LINKED",CREATOR_STUDIO_NO_COMMENTS:"CREATOR_STUDIO_NO_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS:"CREATOR_STUDIO_NO_HELD_COMMENTS",CREATOR_STUDIO_NO_HELD_COMMENTS_V2:"CREATOR_STUDIO_NO_HELD_COMMENTS_V2",CREATOR_STUDIO_NO_SEARCH_MATCH:"CREATOR_STUDIO_NO_SEARCH_MATCH",CREATOR_STUDIO_NO_SEARCH_MATCH_V2:"CREATOR_STUDIO_NO_SEARCH_MATCH_V2",
CREATOR_STUDIO_ERROR_ON_LOAD:"CREATOR_STUDIO_ERROR_ON_LOAD",CREATOR_STUDIO_ERROR_ON_LOAD_V2:"CREATOR_STUDIO_ERROR_ON_LOAD_V2",VIDEO_LIBRARY_WHITE:"VIDEO_LIBRARY_WHITE",PRODUCT_SHOP:"PRODUCT_SHOP",PRODUCT_HOTEL:"PRODUCT_HOTEL",PRODUCT_FLIGHT:"PRODUCT_FLIGHT",PLAY_ARROW_BLACK:"PLAY_ARROW_BLACK",HIGHLIGHT_OFF:"HIGHLIGHT_OFF",CREATION_UPLOAD:"CREATION_UPLOAD",CREATION_UPLOAD_RED:"CREATION_UPLOAD_RED",CREATION_LIVE:"CREATION_LIVE",CREATION_POST:"CREATION_POST",GOOGLE:"GOOGLE",PAUSE:"PAUSE",PLAY_DISABLED:"PLAY_DISABLED",
INCOGNITO_CIRCLE:"INCOGNITO_CIRCLE",INCOGNITO_CAIRO:"INCOGNITO_CAIRO",CREATE:"CREATE",CREST:"CREST",EQUALIZER:"EQUALIZER",NOW_PLAYING_EQUALIZER:"NOW_PLAYING_EQUALIZER",WHATS_HOT:"WHATS_HOT",ADD_MODERATOR:"ADD_MODERATOR",REMOVE_MODERATOR:"REMOVE_MODERATOR",HELP_OUTLINE:"HELP_OUTLINE",HELP_FILLED:"HELP_FILLED",OFFICIAL_ARTIST_BADGE:"OFFICIAL_ARTIST_BADGE",DONE_ALL:"DONE_ALL",REMOVE_DONE:"REMOVE_DONE",SUPERVISOR_ACCOUNT:"SUPERVISOR_ACCOUNT",REELS_ZERO_STATE:"REELS_ZERO_STATE",SPOTLIGHT:"SPOTLIGHT",FOLDER:"FOLDER",
TUNE:"TUNE",LOCATION_PIN:"LOCATION_PIN",MAKING:"MAKING",SOCCER:"SOCCER",CURATING_MODE_COLLECTIONS:"CURATING_MODE_COLLECTIONS",APPROVED_FOR_YOU:"APPROVED_FOR_YOU",SHARED_BY_PARENTS:"SHARED_BY_PARENTS",KIDS_WATCH_IT_AGAIN:"KIDS_WATCH_IT_AGAIN",KIDS_SPORTS:"KIDS_SPORTS",PLAY_NEXT:"PLAY_NEXT",BREAKING_NEWS:"BREAKING_NEWS",BREAKING_NEWS_ALT_1:"BREAKING_NEWS_ALT_1",DRAG_HANDLE:"DRAG_HANDLE",LOCK_OPEN:"LOCK_OPEN",ACCOUNT_ADVANCED:"ACCOUNT_ADVANCED",ACCOUNT_PLAYBACK:"ACCOUNT_PLAYBACK",ACCOUNT_PRIVACY:"ACCOUNT_PRIVACY",
ACCOUNT_NOTIFICATIONS:"ACCOUNT_NOTIFICATIONS",ACCOUNT_SETTINGS:"ACCOUNT_SETTINGS",ACCOUNT_SHARING:"ACCOUNT_SHARING",CHROME_ICON:"CHROME_ICON",WATCH_PARTY:"WATCH_PARTY",ARROW_DROP_UP:"ARROW_DROP_UP",ARROW_DROP_DOWN:"ARROW_DROP_DOWN",ARROW_CHART_NEUTRAL:"ARROW_CHART_NEUTRAL",BOOKMARK:"BOOKMARK",BOOKMARK_CAIRO:"BOOKMARK_CAIRO",BOOKMARK_BORDER:"BOOKMARK_BORDER",ROTATE_LEFT:"ROTATE_LEFT",PHONE_DOWNLOAD:"PHONE_DOWNLOAD",FORUM:"FORUM",VPN_KEY:"VPN_KEY",LOCK:"LOCK",LOCK_FILLED:"LOCK_FILLED",INSERT_CHART:"INSERT_CHART",
INSERT_CHART_OUTLINED:"INSERT_CHART_OUTLINED",SHOW_MORE:"SHOW_MORE",CONTENT_CUT:"CONTENT_CUT",CONTENT_CUT_CAIRO:"CONTENT_CUT_CAIRO",CONTENT_CUT_WHITE:"CONTENT_CUT_WHITE",HEADSET:"HEADSET",YOUTUBE_AD:"YOUTUBE_AD",VOICE_REMOTE:"VOICE_REMOTE",WIFI_STATUS_BAR_ZERO:"WIFI_STATUS_BAR_ZERO",WIFI_STATUS_BAR_ONE:"WIFI_STATUS_BAR_ONE",WIFI_STATUS_BAR_THREE:"WIFI_STATUS_BAR_THREE",WIFI_STATUS_BAR_FOUR:"WIFI_STATUS_BAR_FOUR",COURSE:"COURSE",COURSE_CAIRO:"COURSE_CAIRO",COURSE_OUTLINE:"COURSE_OUTLINE",MOBILE_SCREEN_SHARE:"MOBILE_SCREEN_SHARE",
SPEAKER_NOTES:"SPEAKER_NOTES",AUTO_AWESOME:"AUTO_AWESOME",FEATURE_HIGHLIGHT:"FEATURE_HIGHLIGHT",SPONSORS_ONLY_LIVE_CHAT_MODE_ON:"SPONSORS_ONLY_LIVE_CHAT_MODE_ON",SPONSORS_ONLY_LIVE_CHAT_MODE_OFF:"SPONSORS_ONLY_LIVE_CHAT_MODE_OFF",VIDEO_YOUTUBE:"VIDEO_YOUTUBE",SYSTEM_HEADER_FOREGROUND:"SYSTEM_HEADER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND:"SYSTEM_FOOTER_FOREGROUND",SYSTEM_FOOTER_FOREGROUND_RTL:"SYSTEM_FOOTER_FOREGROUND_RTL",SYSTEM_FOOTER_BACKGROUND:"SYSTEM_FOOTER_BACKGROUND",LABS_HEADER:"LABS_HEADER",
SEARCH_LARGE:"SEARCH_LARGE",GOOGLE_LOGO:"GOOGLE_LOGO",ZOOM_IN:"ZOOM_IN",ZOOM_OUT:"ZOOM_OUT",REELS_ADD:"REELS_ADD",SHIELD:"SHIELD",SHIELD_WITH_AVATAR:"SHIELD_WITH_AVATAR",KEYBOARD_ARROW_LEFT:"KEYBOARD_ARROW_LEFT",KEYBOARD_ARROW_RIGHT:"KEYBOARD_ARROW_RIGHT",CHECK_BOX_BLUE:"CHECK_BOX_BLUE",CHECK_BOX_OUTLINE_GREY:"CHECK_BOX_OUTLINE_GREY",WORK_OFF:"WORK_OFF",BRIGHTNESS_THREE:"BRIGHTNESS_THREE",LOCATION_ON:"LOCATION_ON",LOCATION_OFF:"LOCATION_OFF",UNDO:"UNDO",LOCAL_SHIPPING:"LOCAL_SHIPPING",RESHARE:"RESHARE",
MOBILE_FRIENDLY:"MOBILE_FRIENDLY",ENTERTAINMENT:"ENTERTAINMENT",GAMING:"GAMING",HAPPENING_NOW:"HAPPENING_NOW",KIDS_HERO:"KIDS_HERO",POWER_SETTINGS_NEW:"POWER_SETTINGS_NEW",RADIO_BUTTON_CHECKED:"RADIO_BUTTON_CHECKED",CHECK_BOX_V2:"CHECK_BOX_V2",CHECK_BOX_OUTLINE_BLANK_V2:"CHECK_BOX_OUTLINE_BLANK_V2",REELS_COMMENT:"REELS_COMMENT",REELS_COMMENT_FILL:"REELS_COMMENT_FILL",KEYBOARD_ARROW_UP:"KEYBOARD_ARROW_UP",KEYBOARD_ARROW_DOWN:"KEYBOARD_ARROW_DOWN",SUBSCRIBED:"SUBSCRIBED",SUBSCRIBED_DARK_MODE:"SUBSCRIBED_DARK_MODE",
ADD_TO_QUEUE_TAIL:"ADD_TO_QUEUE_TAIL",ADD_TO_QUEUE:"ADD_TO_QUEUE",YOUTUBE_LINKED_TV:"YOUTUBE_LINKED_TV",ARROW_DOWNWARD_ALT:"ARROW_DOWNWARD_ALT",ARROW_UPWARD_ALT:"ARROW_UPWARD_ALT",TROPHY:"TROPHY",TROPHY_CAIRO:"TROPHY_CAIRO",CLOUD_UPLOAD:"CLOUD_UPLOAD",SUBDIRECTORY_ARROW_RIGHT:"SUBDIRECTORY_ARROW_RIGHT",MY_VIDEOS:"MY_VIDEOS",MY_VIDEOS_CAIRO:"MY_VIDEOS_CAIRO",LAUNCH:"LAUNCH",PERSON_OUTLINE:"PERSON_OUTLINE",VIEWS_OUTLINE:"VIEWS_OUTLINE",EXPAND_ALL:"EXPAND_ALL",FACT_CHECK:"FACT_CHECK",RED_CARD:"RED_CARD",
YELLOW_CARD:"YELLOW_CARD",CREATION_ENTRY_UPLOAD_ICON:"CREATION_ENTRY_UPLOAD_ICON",APPLAUSE:"APPLAUSE",LENS_WHITE:"LENS_WHITE",LENS_YELLOW:"LENS_YELLOW",LENS_GREEN:"LENS_GREEN",LENS_CYAN:"LENS_CYAN",LENS_MAGENTA:"LENS_MAGENTA",LENS_RED:"LENS_RED",LENS_BLACK:"LENS_BLACK",LENS_BLUE:"LENS_BLUE",PREMIUM:"PREMIUM",PREMIUM_STANDALONE:"PREMIUM_STANDALONE",PREMIUM_STANDALONE_CAIRO:"PREMIUM_STANDALONE_CAIRO",CLARIFY:"CLARIFY",SCHEDULE:"SCHEDULE",TRAVEL:"TRAVEL",SCREEN_ROTATION:"SCREEN_ROTATION",DRAFT:"DRAFT",
BACKSPACE:"BACKSPACE",LICENSE:"LICENSE",LABEL:"LABEL",SPORTS_BASEBALL:"SPORTS_BASEBALL",SPORTS_BASKETBALL:"SPORTS_BASKETBALL",SPORTS_FOOTBALL:"SPORTS_FOOTBALL",SYNC:"SYNC",SYNC_PROBLEM:"SYNC_PROBLEM",PHONELINK:"PHONELINK",PROGRESS_ACTIVITY:"PROGRESS_ACTIVITY",REELS_VIEW_STORY:"REELS_VIEW_STORY",EARTH:"EARTH",SHOW_CHART:"SHOW_CHART",PEOPLE:"PEOPLE",PEOPLE_ALT:"PEOPLE_ALT",PEOPLE_OUTLINE:"PEOPLE_OUTLINE",PEOPLE_2:"PEOPLE_2",PEOPLE_GROUP:"PEOPLE_GROUP",PEOPLE_FILLED:"PEOPLE_FILLED",DONE:"DONE",GOOGLE_PLAY_GAMES:"GOOGLE_PLAY_GAMES",
AUTOPLAY_ON:"AUTOPLAY_ON",AUTOPLAY_OFF:"AUTOPLAY_OFF",KIDS_AUTOPLAY_ON:"KIDS_AUTOPLAY_ON",KIDS_AUTOPLAY_OFF:"KIDS_AUTOPLAY_OFF",KIDS_AUTOPLAY_LOCKED_OFF:"KIDS_AUTOPLAY_LOCKED_OFF",CALENDAR:"CALENDAR",KIDS_MOVE:"KIDS_MOVE",PROGRESS_SPINNER_GREY:"PROGRESS_SPINNER_GREY",KIDS_CAMP:"KIDS_CAMP",BAR_CHART:"BAR_CHART",POLICY:"POLICY",CREATION_TAB:"CREATION_TAB",CREATION_TAB_LARGE:"CREATION_TAB_LARGE",CREATION_TAB_LARGE_CAIRO:"CREATION_TAB_LARGE_CAIRO",ADD_CIRCLE_OUTLINE:"ADD_CIRCLE_OUTLINE",REMOVE_CIRCLE_OUTLINE:"REMOVE_CIRCLE_OUTLINE",
COLLECTIONS:"COLLECTIONS",FORWARD_10:"FORWARD_10",REPLAY_10:"REPLAY_10",MUSIC_NEW_RELEASE:"MUSIC_NEW_RELEASE",PROMPTED_SIGN_IN:"PROMPTED_SIGN_IN",CAMERA_REMIX:"CAMERA_REMIX",SUBJECT:"SUBJECT",FIND_IN_PAGE:"FIND_IN_PAGE",CREATE_VIDEO_NEW:"CREATE_VIDEO_NEW",GO_LIVE:"GO_LIVE",ADD_STORY:"ADD_STORY",CREATE_POST_NEW:"CREATE_POST_NEW",FACE_VERY_UPSET:"FACE_VERY_UPSET",FACE_VERY_SAD:"FACE_VERY_SAD",FACE_SAD:"FACE_SAD",FACE_MEH:"FACE_MEH",FACE_HAPPY:"FACE_HAPPY",FACE_HAPPY_OUTLINE:"FACE_HAPPY_OUTLINE",FACE_VERY_HAPPY:"FACE_VERY_HAPPY",
FACE_FILLED_HAPPY:"FACE_FILLED_HAPPY",FACE_FILLED_UNHAPPY:"FACE_FILLED_UNHAPPY",FACE_FILLED_VERY_HAPPY:"FACE_FILLED_VERY_HAPPY",FACE_FILLED_MEH:"FACE_FILLED_MEH",FACE_FILLED_SAD:"FACE_FILLED_SAD",FACE_OUTLINED_HAPPY:"FACE_OUTLINED_HAPPY",FACE_OUTLINED_UNHAPPY:"FACE_OUTLINED_UNHAPPY",FACE_OUTLINED_VERY_HAPPY:"FACE_OUTLINED_VERY_HAPPY",FACE_OUTLINED_MEH:"FACE_OUTLINED_MEH",FACE_OUTLINED_SAD:"FACE_OUTLINED_SAD",FACE_OUTLINED_ACTIVE_HAPPY:"FACE_OUTLINED_ACTIVE_HAPPY",FACE_OUTLINED_ACTIVE_UNHAPPY:"FACE_OUTLINED_ACTIVE_UNHAPPY",
FACE_OUTLINED_ACTIVE_VERY_HAPPY:"FACE_OUTLINED_ACTIVE_VERY_HAPPY",FACE_OUTLINED_ACTIVE_MEH:"FACE_OUTLINED_ACTIVE_MEH",FACE_OUTLINED_ACTIVE_SAD:"FACE_OUTLINED_ACTIVE_SAD",OUTLINE_MUSIC_VIDEO:"OUTLINE_MUSIC_VIDEO",OUTLINE_HEADSET:"OUTLINE_HEADSET",OUTLINE_YOUTUBE_MUSIC:"OUTLINE_YOUTUBE_MUSIC",OUTLINE_YOUTUBE_IMPROVE_TV:"OUTLINE_YOUTUBE_IMPROVE_TV",OUTLINE_BAG:"OUTLINE_BAG",OUTLINE_MOBILE_DOWNLOAD:"OUTLINE_MOBILE_DOWNLOAD",HASHTAG_LANDING_PAGE_EMPTY:"HASHTAG_LANDING_PAGE_EMPTY",HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE:"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE",
HASHTAG_LANDING_PAGE_ERROR:"HASHTAG_LANDING_PAGE_ERROR",HASHTAG_LANDING_PAGE_ERROR_DARK_MODE:"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE",TRENDING_DOWN:"TRENDING_DOWN",EXPAND_MORE:"EXPAND_MORE",OUTLINE_CAMERA_20:"OUTLINE_CAMERA_20",OUTLINE_CAMERA_24:"OUTLINE_CAMERA_24",G_TRANSLATE:"G_TRANSLATE",SHOPPING_BAG:"SHOPPING_BAG",SHOPPING_BAG_CAIRO:"SHOPPING_BAG_CAIRO",CAKE:"CAKE",CAMPAIGN:"CAMPAIGN",VIDEOGAME_ASSET:"VIDEOGAME_ASSET",GIF:"GIF",INSERT_PHOTO:"INSERT_PHOTO",LOCAL_MALL:"LOCAL_MALL",COLOR_LENS:"COLOR_LENS",
LOCK_CLOCK:"LOCK_CLOCK",SYSTEM_UPDATE:"SYSTEM_UPDATE",ALL_INCLUSIVE:"ALL_INCLUSIVE",VIDEO_SETTINGS:"VIDEO_SETTINGS",WALLPAPER:"WALLPAPER",GROUPS:"GROUPS",MONEY_OFF:"MONEY_OFF",GAMEPAD:"GAMEPAD",PLAYLISTS_KIDS_RESTRICT_ACCESS:"PLAYLISTS_KIDS_RESTRICT_ACCESS",LIVE_CREATION_RESTRICT_ACCESS:"LIVE_CREATION_RESTRICT_ACCESS",LIVE_SAFEGUARD_EDUCATION:"LIVE_SAFEGUARD_EDUCATION",LIVE_COSTREAM_CREATOR_EDUCATION:"LIVE_COSTREAM_CREATOR_EDUCATION",ARTICLE:"ARTICLE",ARTICLE_ALERT:"ARTICLE_ALERT",ARTICLE_CHECK:"ARTICLE_CHECK",
ARTICLE_CLARIFY:"ARTICLE_CLARIFY",FAST_REWIND:"FAST_REWIND",ALIGN_LEFT:"ALIGN_LEFT",BLACK_JOY:"BLACK_JOY",CATEGORY:"CATEGORY",DESKTOP:"DESKTOP",GOOGLE_LENS:"GOOGLE_LENS",GOOGLE_LENS_CAMERA:"GOOGLE_LENS_CAMERA",INSIGHTS:"INSIGHTS",LIVE_BADGE:"LIVE_BADGE",OUTLINE_ADJUST:"OUTLINE_ADJUST",OUTLINE_LESS_THAN_4:"OUTLINE_LESS_THAN_4",OUTLINE_GREATER_THAN_20:"OUTLINE_GREATER_THAN_20",OUTLINE_CLOCK_HALF_CIRCLE:"OUTLINE_CLOCK_HALF_CIRCLE",OUTLINE_DASHBOARD_PLUS:"OUTLINE_DASHBOARD_PLUS",OUTLINE_RADAR_LIVE:"OUTLINE_RADAR_LIVE",
WAVEFORM:"WAVEFORM",GLOBE:"GLOBE",SUPER_STORE:"SUPER_STORE",MEMBERSHIPS:"MEMBERSHIPS",MEMBERSHIPS_FILLED:"MEMBERSHIPS_FILLED",MONEY_HAND:"MONEY_HAND",YT_FILL_DOWNLOAD_24:"YT_FILL_DOWNLOAD_24",YT_FILL_OPEN_NEW_24:"YT_FILL_OPEN_NEW_24",YT_OUTLINE_CHEVRON_EXPAND_24:"YT_OUTLINE_CHEVRON_EXPAND_24",YT_OUTLINE_CHEVRON_DOWN_24:"YT_OUTLINE_CHEVRON_DOWN_24",YT_OUTLINE_ARROW_REPEAT_1_24:"YT_OUTLINE_ARROW_REPEAT_1_24",YT_FILL_ARROW_REPEAT_1_24:"YT_FILL_ARROW_REPEAT_1_24",HEALTH_AND_SAFETY:"HEALTH_AND_SAFETY",
YT_FILL_YOUTUBE_MUSIC_24:"YT_FILL_YOUTUBE_MUSIC_24",YT_FILL_YOUTUBE_MUSIC_36:"YT_FILL_YOUTUBE_MUSIC_36",OUTLINE_TRASH_CAN:"OUTLINE_TRASH_CAN",OUTLINE_PENCIL:"OUTLINE_PENCIL",OUTLINE_ALERT_CIRCLE:"OUTLINE_ALERT_CIRCLE",OUTLINE_ALERT_TRIANGLE:"OUTLINE_ALERT_TRIANGLE",OUTLINE_OPEN_NEW:"OUTLINE_OPEN_NEW",LIST:"LIST",ARROW_CIRCLE:"ARROW_CIRCLE",EXPAND_LESS:"EXPAND_LESS",YT_OUTLINE_SUBSCRIPTIONS_24PT:"YT_OUTLINE_SUBSCRIPTIONS_24PT",OUTLINE_ADD:"OUTLINE_ADD",MEDAL:"MEDAL",MULTIVIEW:"MULTIVIEW",GIFT:"GIFT",
OUTLINE_GIFT:"OUTLINE_GIFT",OUTLINE_YOUTUBE_SHORTS_PLUS:"OUTLINE_YOUTUBE_SHORTS_PLUS",OUTLINE_YOUTUBE_LINKED_TV:"OUTLINE_YOUTUBE_LINKED_TV",NERD_STATS:"NERD_STATS",YT_OUTLINE_YOUTUBE_MUSIC_24:"YT_OUTLINE_YOUTUBE_MUSIC_24",YT_OUTLINE_MUSIC_24:"YT_OUTLINE_MUSIC_24",YT_OUTLINE_RATING_UP_24:"YT_OUTLINE_RATING_UP_24",YT_OUTLINE_FIRE_24:"YT_OUTLINE_FIRE_24",CREATOR_STUDIO_RED_LOGO:"CREATOR_STUDIO_RED_LOGO",UNPLUGGED_RED_LOGO:"UNPLUGGED_RED_LOGO",MUSIC_RED_LOGO:"MUSIC_RED_LOGO",KIDS_RED_LOGO:"KIDS_RED_LOGO",
LAPTOP_MOBILE:"LAPTOP_MOBILE",AUDIO_SURROUND:"AUDIO_SURROUND",FEATURED_SEASONAL_AND_GIFTS:"FEATURED_SEASONAL_AND_GIFTS",AUDIO:"AUDIO",SKIP_FORWARD_30:"SKIP_FORWARD_30",PLAY_ARROW_HALF_CIRCLE:"PLAY_ARROW_HALF_CIRCLE",VIDEO_LINK:"VIDEO_LINK",TEXT:"TEXT",SELL:"SELL",SELL_FILLED:"SELL_FILLED",YOUTUBE_STUDIO_ARROW_DOWN:"YOUTUBE_STUDIO_ARROW_DOWN",YOUTUBE_STUDIO_ARROW_UP:"YOUTUBE_STUDIO_ARROW_UP",ADMIN_PANEL_SETTINGS:"ADMIN_PANEL_SETTINGS",EXPIRE:"EXPIRE",BAR_HORIZONTAL:"BAR_HORIZONTAL",SCREEN_THEATRE:"SCREEN_THEATRE",
SCREEN_MINIPLAYER:"SCREEN_MINIPLAYER",SCREEN_DEFAULT:"SCREEN_DEFAULT",SCREEN_FULLSCREEN:"SCREEN_FULLSCREEN",LIST_QUEUE:"LIST_QUEUE",MOON_Z:"MOON_Z",MOON_Z_FILLED:"MOON_Z_FILLED",MESSAGE_BUBBLE_QUESTION:"MESSAGE_BUBBLE_QUESTION",TV_CIRCLE:"TV_CIRCLE",PANELS:"PANELS",BOX_PLACEHOLDER_LEFT_OUTLINE:"BOX_PLACEHOLDER_LEFT_OUTLINE",OUTLINE_OVERFLOW_HORIZONTAL_32:"OUTLINE_OVERFLOW_HORIZONTAL_32",OUTLINE_OVERFLOW_VERTICAL:"OUTLINE_OVERFLOW_VERTICAL",SPEAKER:"SPEAKER",SPEAKER_OFF:"SPEAKER_OFF",SPEAKER_GROUP:"SPEAKER_GROUP",
BAG:"BAG",VR:"VR",MUSIC_MUTED:"MUSIC_MUTED",GREEN_SCREEN_OFF:"GREEN_SCREEN_OFF",GREEN_SCREEN_ON:"GREEN_SCREEN_ON",LIST_PLAY_ARROW:"LIST_PLAY_ARROW",BAR_CIRCLE:"BAR_CIRCLE",QUOTATION_MARK:"QUOTATION_MARK",SPARKLE:"SPARKLE",SPARKLE_FILLED:"SPARKLE_FILLED",SPARK:"SPARK",SPARK_RADAR:"SPARK_RADAR",SPARK_SEARCH:"SPARK_SEARCH",OUTLINE_BAG_BOOKMARK:"OUTLINE_BAG_BOOKMARK",RADAR_LIVE:"RADAR_LIVE",PENCIL:"PENCIL",PRICE_TAG:"PRICE_TAG",CHEVRON_DOWN:"CHEVRON_DOWN",CHEVRON_UP:"CHEVRON_UP",SPEED_1_POINT_2X:"SPEED_1_POINT_2X",
SPEED_1_POINT_5X:"SPEED_1_POINT_5X",SPEED_1_POINT_8X:"SPEED_1_POINT_8X",SPEED_POINT_2X:"SPEED_POINT_2X",SPEED_POINT_5X:"SPEED_POINT_5X",SPEED_POINT_8X:"SPEED_POINT_8X",SPEED_1X:"SPEED_1X",SPEED_2X:"SPEED_2X",BROADCAST:"BROADCAST",BROADCAST_CAIRO:"BROADCAST_CAIRO",PODCAST_16:"PODCAST_16",PODCAST_ADD:"PODCAST_ADD",PODCAST_CHECK:"PODCAST_CHECK",DOLLAR_SIGN:"DOLLAR_SIGN",DOLLAR_SIGN_CONTAINER:"DOLLAR_SIGN_CONTAINER",MEET:"MEET",BRIEFCASE:"BRIEFCASE",CHECK_DOUBLE:"CHECK_DOUBLE",CHECK_DOUBLE_OFF:"CHECK_DOUBLE_OFF",
SHIELD_ADD:"SHIELD_ADD",SHIELD_OFF:"SHIELD_OFF",REMIX_FILLED:"REMIX_FILLED",EYE:"EYE",OPEN_IN_PHONE:"OPEN_IN_PHONE",OPEN_IN_PANEL:"OPEN_IN_PANEL",REPLAY_ARROW:"REPLAY_ARROW",ARROW_UNDO:"ARROW_UNDO",PERSON_CIRCLE_SLASH:"PERSON_CIRCLE_SLASH",EARTH_OUTLINE:"EARTH_OUTLINE",SLASH_CIRCLE_LEFT:"SLASH_CIRCLE_LEFT",SLASH_CIRCLE_RIGHT:"SLASH_CIRCLE_RIGHT",ARROW_PAUSE:"ARROW_PAUSE",MENU_FILTER:"MENU_FILTER",SPACE_BAR:"SPACE_BAR",CIRCLES_6:"CIRCLES_6",CELEBRATION:"CELEBRATION",CROWN:"CROWN",CROWN_FILLED:"CROWN_FILLED",
GRID:"GRID",GRID_3X3:"GRID_3X3",GRID_ASYMMETRICAL:"GRID_ASYMMETRICAL",KEEP_FILLED:"KEEP_FILLED",X_CIRCLE:"X_CIRCLE",KIDS_DOWNLOADS:"KIDS_DOWNLOADS",KIDS_MOVE_DOWNLOAD:"KIDS_MOVE_DOWNLOAD",KIDS_SUBSCRIPTIONS:"KIDS_SUBSCRIPTIONS",BRIGHTNESS:"BRIGHTNESS",BRIGHTNESS_FILLED:"BRIGHTNESS_FILLED",MAGIC_WAND:"MAGIC_WAND",MAGIC_WAND_FILLED:"MAGIC_WAND_FILLED",BOX_PENCIL:"BOX_PENCIL",MY_VIDEOS_SUPEX_ZERO_STATE:"MY_VIDEOS_SUPEX_ZERO_STATE",CREATOR_ACADEMY:"CREATOR_ACADEMY",CREATOR_ACADEMY_FILLED:"CREATOR_ACADEMY_FILLED",
CREATOR_ACADEMY_FILLED_16:"CREATOR_ACADEMY_FILLED_16",SCREEN_SWITCH:"SCREEN_SWITCH",PDF:"PDF",SHIELD_OVERFLOW:"SHIELD_OVERFLOW",ANIMALS:"ANIMALS",BOX_OPEN_CHECK:"BOX_OPEN_CHECK",PLAYABLES_LOGO:"PLAYABLES_LOGO",PLAYABLES_LOGO_CAIRO:"PLAYABLES_LOGO_CAIRO",PERSON_2:"PERSON_2",X_OCTAGON:"X_OCTAGON",PLAY_PRISM:"PLAY_PRISM",FILTER_PHOTO:"FILTER_PHOTO",MUSIC_FILLED:"MUSIC_FILLED",COURSE_FILLED:"COURSE_FILLED",TRANSCRIPT:"TRANSCRIPT",TRANSCRIPT_SEARCH:"TRANSCRIPT_SEARCH",STEM:"STEM",ARROW_CIRCLE_RIGHT:"ARROW_CIRCLE_RIGHT",
HEART_CIRCLE:"HEART_CIRCLE",RSS:"RSS",RSS_OFF:"RSS_OFF",PLAYABLES:"PLAYABLES",PERSON_MUSIC:"PERSON_MUSIC",ARROWS_ALERT:"ARROWS_ALERT",CLOCK_ARROWS_ALERT:"CLOCK_ARROWS_ALERT",CLOCK_ARROWS:"CLOCK_ARROWS",SWAP_HORIZ:"SWAP_HORIZ",MUSIC_NOTE_SYMBOL:"MUSIC_NOTE_SYMBOL",BOOK:"BOOK",DISMISS_QUEUE:"DISMISS_QUEUE",RANDOM:"RANDOM",SCREEN_LIGHT:"SCREEN_LIGHT",SINGLE_SPARKLE:"SINGLE_SPARKLE",PROMOTE:"PROMOTE",BUSINESS:"BUSINESS",TOOLBOX:"TOOLBOX",SHORTS_CREATION_COMMENT:"SHORTS_CREATION_COMMENT",SPARK_IMAGE:"SPARK_IMAGE",
SPARK_VIDEO:"SPARK_VIDEO",ALL_CHIP:"ALL_CHIP",TROPHY_CELEBRATIONS:"TROPHY_CELEBRATIONS",SPARK_EDIT:"SPARK_EDIT",MAP_OUTLINE:"MAP_OUTLINE",VOLUME_STABLE:"VOLUME_STABLE",SEARCH_PROMINENT:"SEARCH_PROMINENT",INFINITY_ICON:"INFINITY_ICON",DIRECTIONS_OUTLINE:"DIRECTIONS_OUTLINE",SHORTS_STICKER_PICKER:"SHORTS_STICKER_PICKER",SETTINGS_REMOTE:"SETTINGS_REMOTE",NEWS_STORY:"NEWS_STORY",FOOTBALL_FILLED:"FOOTBALL_FILLED",DOLLARSIGN_COLOR:"DOLLARSIGN_COLOR",YENSIGN_COLOR:"YENSIGN_COLOR",CIRCLES_OVERLAP:"CIRCLES_OVERLAP",
ACCESSIBILITY:"ACCESSIBILITY",CODE:"CODE",HAND_SWIPE_LEFT:"HAND_SWIPE_LEFT",SETTING_UPLOAD:"SETTING_UPLOAD",SETTING_HD:"SETTING_HD",STICKER:"STICKER",SUN:"SUN",MOON:"MOON",EYE_OFF:"EYE_OFF",TARGET:"TARGET",TARGET_ADD:"TARGET_ADD",STAR_SHOOTING:"STAR_SHOOTING",TEXT_BOX:"TEXT_BOX",OUTLINE_ARROW_SOLID_UP:"OUTLINE_ARROW_SOLID_UP",ARROW_SOLID_UP:"ARROW_SOLID_UP",OUTLINE_ARROW_SOLID_DOWN:"OUTLINE_ARROW_SOLID_DOWN",ARROW_SOLID_DOWN:"ARROW_SOLID_DOWN",OUTLINE_ARROW_SOLID_UP_16:"OUTLINE_ARROW_SOLID_UP_16",
FILL_ARROW_SOLID_UP_16:"FILL_ARROW_SOLID_UP_16",OUTLINE_ARROW_SOLID_DOWN_16:"OUTLINE_ARROW_SOLID_DOWN_16",FILL_ARROW_SOLID_DOWN_16:"FILL_ARROW_SOLID_DOWN_16",DIE_3:"DIE_3",POUND:"POUND",CIRCLE:"CIRCLE",CIRCLE_FILLED:"CIRCLE_FILLED",YOUTUBE_SPORTS:"YOUTUBE_SPORTS",STAR_SHOOTING_OUTLINE:"STAR_SHOOTING_OUTLINE",AUDIO_BADGE:"AUDIO_BADGE",FANTASY:"FANTASY",ENGAGEMENT:"ENGAGEMENT",HASHTAG:"HASHTAG",TEMPLATE_ADD:"TEMPLATE_ADD",MESSAGE_BUBBLE_OVERLAP:"MESSAGE_BUBBLE_OVERLAP",RUBY:"RUBY",GAME_CONSOLE_DPAD:"GAME_CONSOLE_DPAD",
GAME_CONSOLE_FACE_BUTTONS:"GAME_CONSOLE_FACE_BUTTONS",SKIP_BACK_15:"SKIP_BACK_15",SKIP_FORWARD_15:"SKIP_FORWARD_15",ARROW_CIRCLE_PLAY:"ARROW_CIRCLE_PLAY",NOTE_ADD:"NOTE_ADD",MY_AD_CENTER:"MY_AD_CENTER",MY_AD_CENTER_LOGO:"MY_AD_CENTER_LOGO",PEOPLE_NOTE:"PEOPLE_NOTE",LEARNING:"LEARNING",LEARNING_CAIRO:"LEARNING_CAIRO",IMAGE_ADD:"IMAGE_ADD",LOCATION_POINT:"LOCATION_POINT",OUTLINE_MIX_24:"OUTLINE_MIX_24",FILL_AUDIO_16:"FILL_AUDIO_16",HAND_SWIPE_RIGHT:"HAND_SWIPE_RIGHT",SCHEDULE_FANZONE:"SCHEDULE_FANZONE",
PLAY_PAUSE:"PLAY_PAUSE",ARROW_DIAGONAL_UP_RIGHT:"ARROW_DIAGONAL_UP_RIGHT",ARROW_DIAGONAL_UP_RIGHT_FILLED:"ARROW_DIAGONAL_UP_RIGHT_FILLED",LOCAL_ACTIVITY:"LOCAL_ACTIVITY",STAR_CIRCLE_RIBBON:"STAR_CIRCLE_RIBBON",STAR_CIRCLE_RIBBON_OUTLINE:"STAR_CIRCLE_RIBBON_OUTLINE",LIGHTBULB_SPARK_OUTLINE:"LIGHTBULB_SPARK_OUTLINE",SPARK_LIGHTBULB_OUTLINE:"SPARK_LIGHTBULB_OUTLINE",SPARK_LIGHTBULB_FILLED:"SPARK_LIGHTBULB_FILLED",JOURNEY:"JOURNEY",QUESTION_HEAD:"QUESTION_HEAD",TEXT_FILLED:"TEXT_FILLED"};var PLS=function(){ND.apply(this,arguments)};
_.R(PLS,ND);PLS.prototype.getAssociations=function(){return[]};_.LXS=new _.J("playerInterstitialRenderer");var Di8=new _.J("getKidsBlocklistPickerCommand");_.plq=new _.J("updateKidsBlacklistEndpoint");_.Bp=new _.J("likeEndpoint");var QNw,Nb0,VGq;QNw=new _.J("addChatItemAction");Nb0=new _.J("removeChatItemAction");VGq=new _.J("markChatItemAsDeletedAction");_.jNd=new _.J("setLiveChatCollapsedStateAction");var lA5=function(){ND.apply(this,arguments)};
_.R(lA5,ND);lA5.prototype.getAssociations=function(){return[]};var Xlw=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Xlw,_.GR);var $i8=_.hT(Xlw,[0,1,_.qm]);var RJw=new _.J("liveChatEndpoint");var bbm=new _.J("liveChatItemContextMenuEndpoint");var YUd=new _.J("liveChatReplayEndpoint");_.GG8=new _.J("emojiPickerRenderer");var fA5=new _.J("liveChatAuthorBadgeViewModel");var SUw=new _.J("deleteLiveChatMessageCommand");var KXm=new _.J("liveChatActionEndpoint");var Ajb=new _.J("createLiveChatPollEndpoint");var g6e=new _.J("manageLiveChatUserEndpoint");var v6P=new _.J("moderateLiveChatEndpoint");_.WXq=new _.J("sendLiveChatMessageEndpoint");var die=new _.J("sendLiveChatVoteEndpoint");var xib=new _.J("clearLocationCommand");var qU8=new _.J("resolveLocationCommand");var miY=new _.J("interactionLoggingCommandMetadata");var TZW=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(TZW,_.GR);var z_9=function(I,C){return _.Mb(I,1,C)};var Zbq=[0,_.Bv];var utz=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(utz,_.GR);var F5X=function(I,C){return ni(I,1,TZW,C)};utz.prototype.JSC$9942_serializeBinary=O8m([0,_.h0,Zbq]);var D2s={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 Bbq={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"},
E6c={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 WYO={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"};_.MnO=new _.J("logFlowLoggingEventCommand");_.qEK=new _.J("loggingContext");var hJ5=new _.J("captionLanguageSelectActionCommand");var Uiw=new _.J("showCaptionLanguageSelectActionCommand");var HbP=new _.J("dismissDialogEndpoint");var tG5=new _.J("hideItemSectionVideosByIdCommand");var Jju=new _.J("showMiniplayerCommand");var ObY=function(){ND.apply(this,arguments)};
_.R(ObY,ND);ObY.prototype.getAssociations=function(){return[]};var aAw=function(){ND.apply(this,arguments)};
_.R(aAw,ND);aAw.prototype.getAssociations=function(){return[]};var MGP=function(){ND.apply(this,arguments)};
_.R(MGP,ND);MGP.prototype.getAssociations=function(){return[]};var I9u=function(){ND.apply(this,arguments)};
_.R(I9u,ND);I9u.prototype.getAssociations=function(){var I=[];this.delegate.downloadsList&&I.push(this.delegate.downloadsList);this.delegate.smartDownloadsList&&I.push(this.delegate.smartDownloadsList);this.delegate.recommendedDownloadsList&&I.push(this.delegate.recommendedDownloadsList);this.delegate.refresh&&I.push(this.delegate.refresh);return[].concat(_.Py(new Set(I)))};var Cpb=function(){ND.apply(this,arguments)};
_.R(Cpb,ND);Cpb.prototype.getAssociations=function(){var I=[];this.delegate.refresh&&I.push(this.delegate.refresh);if(this.delegate.downloads)for(var C=_.T(this.delegate.downloads),y=C.next();!y.done;y=C.next())I.push.apply(I,_.Py((new sru(y.value)).getAssociations()));return[].concat(_.Py(new Set(I)))};
var sru=function(){QK.apply(this,arguments)};
_.R(sru,QK);sru.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.playlist&&I.push(this.delegate.playlist);this.delegate.videoItem&&I.push(this.delegate.videoItem);this.delegate.playlistItem&&I.push(this.delegate.playlistItem);return[].concat(_.Py(new Set(I)))};var oYb=function(){ND.apply(this,arguments)};
_.R(oYb,ND);oYb.prototype.getAssociations=function(){var I=[];this.delegate.localImageEntities&&I.push.apply(I,_.Py(this.delegate.localImageEntities));return[].concat(_.Py(new Set(I)))};var yec=function(){ND.apply(this,arguments)};
_.R(yec,ND);yec.prototype.getAssociations=function(){var I=[];this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.localImageEntities&&I.push.apply(I,_.Py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Py(new Set(I)))};var kvb=function(){ND.apply(this,arguments)};
_.R(kvb,ND);kvb.prototype.getAssociations=function(){return[]};var FIY=function(){ND.apply(this,arguments)};
_.R(FIY,ND);FIY.prototype.getAssociations=function(){var I=[];this.delegate.fakeChildren&&I.push.apply(I,_.Py(this.delegate.fakeChildren));return[].concat(_.Py(new Set(I)))};var uZ0=function(){ND.apply(this,arguments)};
_.R(uZ0,ND);uZ0.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.offlineVideoPolicy&&I.push(this.delegate.offlineVideoPolicy);return[].concat(_.Py(new Set(I)))};var zxP=function(){ND.apply(this,arguments)};
_.R(zxP,ND);zxP.prototype.getAssociations=function(){return[]};var Trw=function(){ND.apply(this,arguments)};
_.R(Trw,ND);Trw.prototype.getAssociations=function(){var I=[];this.delegate.channelOwner&&I.push(this.delegate.channelOwner);this.delegate.videos&&I.push.apply(I,_.Py(this.delegate.videos));this.delegate.collaboratorChannels&&I.push.apply(I,_.Py(this.delegate.collaboratorChannels));this.delegate.downloadState&&I.push(this.delegate.downloadState);this.delegate.refresh&&I.push(this.delegate.refresh);return[].concat(_.Py(new Set(I)))};var ce0=function(){ND.apply(this,arguments)};
_.R(ce0,ND);ce0.prototype.getAssociations=function(){var I=[];this.delegate.video&&I.push(this.delegate.video);this.delegate.channelContributor&&I.push(this.delegate.channelContributor);return[].concat(_.Py(new Set(I)))};var ex8=function(){QK.apply(this,arguments)};
_.R(ex8,QK);ex8.prototype.getAssociations=function(){var I=[];this.delegate.recommendedVideoMetadata&&I.push.apply(I,_.Py((new reP(this.delegate.recommendedVideoMetadata)).getAssociations()));return[].concat(_.Py(new Set(I)))};
var reP=function(){QK.apply(this,arguments)};
_.R(reP,QK);reP.prototype.getAssociations=function(){var I=[];this.delegate.localImageEntities&&I.push.apply(I,_.Py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Py(new Set(I)))};var iyq=function(){QK.apply(this,arguments)};
_.R(iyq,QK);iyq.prototype.getAssociations=function(){var I=[];this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);return[].concat(_.Py(new Set(I)))};var wKd=function(){ND.apply(this,arguments)};
_.R(wKd,ND);wKd.prototype.getAssociations=function(){var I=[];this.delegate.owner&&I.push(this.delegate.owner);this.delegate.downloadState&&I.push(this.delegate.downloadState);this.delegate.userState&&I.push.apply(I,_.Py((new iyq(this.delegate.userState)).getAssociations()));this.delegate.additionalMetadata&&I.push.apply(I,_.Py((new ex8(this.delegate.additionalMetadata)).getAssociations()));return[].concat(_.Py(new Set(I)))};var nYw=function(){ND.apply(this,arguments)};
_.R(nYw,ND);nYw.prototype.getAssociations=function(){var I=[];this.delegate.userChannelDetails&&I.push(this.delegate.userChannelDetails);return[].concat(_.Py(new Set(I)))};var PpY=function(){ND.apply(this,arguments)};
_.R(PpY,ND);PpY.prototype.getAssociations=function(){var I=[];this.delegate.channelOwner&&I.push(this.delegate.channelOwner);this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);this.delegate.localImageEntities&&I.push.apply(I,_.Py(this.delegate.localImageEntities));this.delegate.downloadStatus&&I.push(this.delegate.downloadStatus);return[].concat(_.Py(new Set(I)))};var INY=new _.J("downloadsPageSmartDownloadsOptInBannerParams");var LIw=function(){ND.apply(this,arguments)};
_.R(LIw,ND);LIw.prototype.getAssociations=function(){return[]};var DCq=function(){ND.apply(this,arguments)};
_.R(DCq,ND);DCq.prototype.getAssociations=function(){return[]};var pKS=function(){ND.apply(this,arguments)};
_.R(pKS,ND);pKS.prototype.getAssociations=function(){return[]};var Qrq=function(){ND.apply(this,arguments)};
_.R(Qrq,ND);Qrq.prototype.getAssociations=function(){return[]};var Nrq=function(){ND.apply(this,arguments)};
_.R(Nrq,ND);Nrq.prototype.getAssociations=function(){return[]};var VEu=function(){ND.apply(this,arguments)};
_.R(VEu,ND);VEu.prototype.getAssociations=function(){return[]};var jru=function(){ND.apply(this,arguments)};
_.R(jru,ND);jru.prototype.getAssociations=function(){return[]};var l9q=function(){ND.apply(this,arguments)};
_.R(l9q,ND);l9q.prototype.getAssociations=function(){return[]};var xwz=new _.J("dislikeButtonViewModel");var dw9=new _.J("likeButtonViewModel");var XKu=new _.J("videoSummaryContentViewModel");var MbI=new _.J("videoSummaryParagraphViewModel");var $Cc=new _.J("changeTimelyActionVisibilityCommand");var Rxd=new _.J("hideEngagementPanelEndpoint");var bym=new _.J("refreshPanelEndpoint");var YIY=new _.J("scrollToSectionEndpoint");var Gve=new _.J("seekToVideoTimestampCommand");_.Gb=new _.J("showEngagementPanelEndpoint");var f9c=new _.J("showTransientPlayerScrimOverlayCommand");var SIm=new _.J("toggleEngagementPanelCommand");_.KIY=new _.J("createBroadcastCommand");var Ae5=new _.J("metadataUpdateCommand");var gYm=function(){ND.apply(this,arguments)};
_.R(gYm,ND);gYm.prototype.getAssociations=function(){return[]};var vYd=function(){ND.apply(this,arguments)};
_.R(vYd,ND);vYd.prototype.getAssociations=function(){return[]};var WIb=function(){ND.apply(this,arguments)};
_.R(WIb,ND);WIb.prototype.getAssociations=function(){return[]};_.dCw=new _.J("merchandiseShelfRenderer");var xC8=new _.J("gridMovieRenderer");_.qIw=new _.J("movieRenderer");var mCq=function(){ND.apply(this,arguments)};
_.R(mCq,ND);mCq.prototype.getAssociations=function(){var I=[];this.delegate.trackDownloadMetadatas&&I.push.apply(I,_.Py(this.delegate.trackDownloadMetadatas));return[].concat(_.Py(new Set(I)))};var ZyP=function(){ND.apply(this,arguments)};
_.R(ZyP,ND);
ZyP.prototype.getAssociations=function(){var I=[];this.delegate.downloadedTracks&&I.push.apply(I,_.Py(this.delegate.downloadedTracks));this.delegate.smartDownloadedTracks&&I.push.apply(I,_.Py(this.delegate.smartDownloadedTracks));this.delegate.downloadedEpisodes&&I.push.apply(I,_.Py(this.delegate.downloadedEpisodes));this.delegate.downloadedAlbumReleases&&I.push.apply(I,_.Py(this.delegate.downloadedAlbumReleases));this.delegate.smartDownloadedAlbumReleases&&I.push.apply(I,_.Py(this.delegate.smartDownloadedAlbumReleases));this.delegate.downloadedPlaylists&&
I.push.apply(I,_.Py(this.delegate.downloadedPlaylists));this.delegate.smartDownloadedPlaylists&&I.push.apply(I,_.Py(this.delegate.smartDownloadedPlaylists));this.delegate.metadataOnlyTracks&&I.push.apply(I,_.Py(this.delegate.metadataOnlyTracks));return[].concat(_.Py(new Set(I)))};var Brq=function(){ND.apply(this,arguments)};
_.R(Brq,ND);Brq.prototype.getAssociations=function(){var I=[];this.delegate.trackDownloadMetadatas&&I.push.apply(I,_.Py(this.delegate.trackDownloadMetadatas));return[].concat(_.Py(new Set(I)))};var EYY=function(){ND.apply(this,arguments)};
_.R(EYY,ND);EYY.prototype.getAssociations=function(){var I=[];this.delegate.playbackData&&I.push(this.delegate.playbackData);this.delegate.localImageEntities&&I.push.apply(I,_.Py(this.delegate.localImageEntities));this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Py(new Set(I)))};var hxw=function(){ND.apply(this,arguments)};
_.R(hxw,ND);
hxw.prototype.getAssociations=function(){var I=[];this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.primaryArtists&&I.push.apply(I,_.Py(this.delegate.primaryArtists));this.delegate.details&&I.push(this.delegate.details);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.tracks&&I.push.apply(I,_.Py(this.delegate.tracks));this.delegate.share&&I.push(this.delegate.share);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.refresh&&
I.push(this.delegate.refresh);return[].concat(_.Py(new Set(I)))};
var UC5=function(){ND.apply(this,arguments)};
_.R(UC5,ND);UC5.prototype.getAssociations=function(){var I=[];this.delegate.albumRelease&&I.push(this.delegate.albumRelease);this.delegate.tracks&&I.push.apply(I,_.Py(this.delegate.tracks));return[].concat(_.Py(new Set(I)))};
var Hye=function(){ND.apply(this,arguments)};
_.R(Hye,ND);Hye.prototype.getAssociations=function(){var I=[];this.delegate.albumRelease&&I.push(this.delegate.albumRelease);return[].concat(_.Py(new Set(I)))};var tE8=function(){ND.apply(this,arguments)};
_.R(tE8,ND);tE8.prototype.getAssociations=function(){var I=[];this.delegate.details&&I.push(this.delegate.details);this.delegate.userDetails&&I.push(this.delegate.userDetails);return[].concat(_.Py(new Set(I)))};
var JeY=function(){ND.apply(this,arguments)};
_.R(JeY,ND);JeY.prototype.getAssociations=function(){var I=[];this.delegate.parentArtist&&I.push(this.delegate.parentArtist);return[].concat(_.Py(new Set(I)))};
var Oym=function(){ND.apply(this,arguments)};
_.R(Oym,ND);Oym.prototype.getAssociations=function(){var I=[];this.delegate.parentArtist&&I.push(this.delegate.parentArtist);return[].concat(_.Py(new Set(I)))};var a9S=function(){ND.apply(this,arguments)};
_.R(a9S,ND);a9S.prototype.getAssociations=function(){return[]};var MEw=function(){ND.apply(this,arguments)};
_.R(MEw,ND);MEw.prototype.getAssociations=function(){return[]};var IQY=function(){ND.apply(this,arguments)};
_.R(IQY,ND);
IQY.prototype.getAssociations=function(){var I=[];this.delegate.tracks&&I.push.apply(I,_.Py(this.delegate.tracks));this.delegate.refresh&&I.push(this.delegate.refresh);this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.details&&I.push(this.delegate.details);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.sideloadMetadata&&I.push(this.delegate.sideloadMetadata);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.entryCollection&&
I.push(this.delegate.entryCollection);this.delegate.share&&I.push(this.delegate.share);this.delegate.podcastShowAdditionalMetadata&&I.push.apply(I,_.Py((new Cb5(this.delegate.podcastShowAdditionalMetadata)).getAssociations()));return[].concat(_.Py(new Set(I)))};
var Cb5=function(){QK.apply(this,arguments)};
_.R(Cb5,QK);Cb5.prototype.getAssociations=function(){var I=[];this.delegate.creatorEntity&&I.push(this.delegate.creatorEntity);return[].concat(_.Py(new Set(I)))};var snw=function(){ND.apply(this,arguments)};
_.R(snw,ND);snw.prototype.getAssociations=function(){return[]};var o1d=function(){ND.apply(this,arguments)};
_.R(o1d,ND);
o1d.prototype.getAssociations=function(){var I=[];this.delegate.musicLibraryStatusEntity&&I.push(this.delegate.musicLibraryStatusEntity);this.delegate.artists&&I.push.apply(I,_.Py(this.delegate.artists));this.delegate.audioModeVersion&&I.push(this.delegate.audioModeVersion);this.delegate.videoModeVersion&&I.push(this.delegate.videoModeVersion);this.delegate.userDetails&&I.push(this.delegate.userDetails);this.delegate.details&&I.push(this.delegate.details);this.delegate.albumRelease&&I.push(this.delegate.albumRelease);this.delegate.share&&
I.push(this.delegate.share);this.delegate.libraryEdit&&I.push(this.delegate.libraryEdit);this.delegate.downloadMetadata&&I.push(this.delegate.downloadMetadata);this.delegate.playbackPosition&&I.push(this.delegate.playbackPosition);this.delegate.lyrics&&I.push(this.delegate.lyrics);return[].concat(_.Py(new Set(I)))};
var yp0=function(){ND.apply(this,arguments)};
_.R(yp0,ND);yp0.prototype.getAssociations=function(){var I=[];this.delegate.parentTrack&&I.push(this.delegate.parentTrack);return[].concat(_.Py(new Set(I)))};
var kJq=function(){ND.apply(this,arguments)};
_.R(kJq,ND);kJq.prototype.getAssociations=function(){var I=[];this.delegate.parentTrack&&I.push(this.delegate.parentTrack);return[].concat(_.Py(new Set(I)))};var sn=new _.J("musicResponsiveListItemRenderer");var vII=new _.J("addToPlaylistEndpoint");var Fab=new _.J("captionPickerEndpoint");var uCP=new _.J("suggestStats");var zXq=new _.J("backstageImageUploadEndpoint");var Toc=new _.J("createBackstagePostDialogEndpoint");_.cp5=new _.J("createCommentReplyDialogEndpoint");_.eXm=new _.J("updateCommentDialogEndpoint");_.rp5=new _.J("updateCommentReplyDialogEndpoint");var i6q=new _.J("menuEndpoint");var XWW=new _.J("modalEndpoint");var wCc=new _.J("playlistEditorEndpoint");var n1m=new _.J("copyTextEndpoint");var Pbe,La8;Pbe=new _.J("shareEndpoint");La8=new _.J("shareEntityEndpoint");_.D7q=new _.J("shareEntityServiceEndpoint");_.t$I=new _.J("userFeedbackEndpoint");_.H$=new _.J("watchEndpoint");var opI=new _.J("watchPlaylistEndpoint");var pC0=new _.J("addUpcomingEventReminderEndpoint");_.R$=new _.J("getCommentsFromInboxCommand");var Qnq=new _.J("notificationOptOutEndpoint");var Now=new _.J("recordNotificationInteractionsEndpoint");var V_u=new _.J("removeUpcomingEventReminderEndpoint");var Agm=new _.J("getDownloadActionCommand");_.jnS=new _.J("offlineOrchestrationActionCommand");var lQq=function(){ND.apply(this,arguments)};
_.R(lQq,ND);lQq.prototype.getAssociations=function(){return[]};var XCP=function(){ND.apply(this,arguments)};
_.R(XCP,ND);XCP.prototype.getAssociations=function(){return[]};var $7q=function(){ND.apply(this,arguments)};
_.R($7q,ND);$7q.prototype.getAssociations=function(){return[]};var RXS=function(){ND.apply(this,arguments)};
_.R(RXS,ND);RXS.prototype.getAssociations=function(){return[]};var b6m=function(){ND.apply(this,arguments)};
_.R(b6m,ND);b6m.prototype.getAssociations=function(){var I=[];this.delegate.transfer&&I.push(this.delegate.transfer);this.delegate.adsPlaybackData&&I.push.apply(I,_.Py(this.delegate.adsPlaybackData));this.delegate.drmLicense&&I.push(this.delegate.drmLicense);this.delegate.offlineVideoPolicy&&I.push(this.delegate.offlineVideoPolicy);this.delegate.videoDownloadContextEntity&&I.push(this.delegate.videoDownloadContextEntity);return[].concat(_.Py(new Set(I)))};var YVP=function(){ND.apply(this,arguments)};
_.R(YVP,ND);YVP.prototype.getAssociations=function(){return[]};var GJq=function(){ND.apply(this,arguments)};
_.R(GJq,ND);GJq.prototype.getAssociations=function(){var I=[];this.delegate.offlineVideoStreams&&I.push.apply(I,_.Py(this.delegate.offlineVideoStreams));this.delegate.captionTrack&&I.push.apply(I,_.Py(this.delegate.captionTrack));return[].concat(_.Py(new Set(I)))};var fQq=function(){ND.apply(this,arguments)};
_.R(fQq,ND);fQq.prototype.getAssociations=function(){return[]};var SVY=new _.J("showMoreDrawerCommand");var Kau=new _.J("updateEngagementPanelContentCommand");var Apd=new _.J("getPdgBuyFlowCommand");var g1Y=new _.J("liveChatPurchaseMessageEndpoint");var v1P=new _.J("openSuperStickerBuyFlowCommand");var Waw=new _.J("updatePdgFeatureEnablementCommand");var d78=function(){ND.apply(this,arguments)};
_.R(d78,ND);d78.prototype.getAssociations=function(){return[]};var x75=function(){ND.apply(this,arguments)};
_.R(x75,ND);x75.prototype.getAssociations=function(){return[]};_.qVm=new _.J("pdgCommentChipRenderer");_.m7w=new _.J("permissionRoleBottomBarRenderer");_.Z6d=new _.J("updatePermissionRoleCommand");var Bo5=new _.J("prefetchWatchCommand");var E1d=new _.J("updatePlayerErrorMessageCommand");var RZO=new _.J("toggleCaptionsVisibilityCommand");_.hXw=new _.J("quickActionsViewModel");var U7P=new _.J("playerResponse");var H65=new _.J("playlistRenderer");_.t_q=new _.J("playlistVideoListRenderer");_.bv=new _.J("playlistEditEndpoint");var Jpe=new _.J("createImagePollCommand");var O68=new _.J("createQuizCommand");var aQP=new _.J("quizRenderer");var M_w=new _.J("uploadedVideoRenderer");var IsS=new _.J("decorateMessageEndpoint");var Cuw=new _.J("lpOfferCardOptionViewModel");var siS=new _.J("sfvAudioItemPlaybackCommand");var orS=function(){ND.apply(this,arguments)};
_.R(orS,ND);orS.prototype.getAssociations=function(){return[]};_.Yf=new _.J("reelNonVideoContentEndpoint");_.PD=new _.J("reelWatchEndpoint");_.GX=new _.J("reelItemRenderer");var ywP=new _.J("reelMetapanelViewModel");_.k_c=new _.J("reelNonVideoContentRenderer");_.Fqb=new _.J("reelPlayerOverlayRenderer");var uom=new _.J("shortsLockupViewModel");var zt8=new _.J("sponsorButtonViewModel");var Tkw=new _.J("reelItemWatchResponse");var cwm=new _.J("textBadgeRenderer");_.fZ=new _.J("buttonRenderer");_.SV=new _.J("toggleButtonRenderer");var gi9=new _.J("switchButtonViewModel");_.etu=new _.J("confirmDialogRenderer");var rww;rww=new _.J("menuRenderer");_.iVu=new _.J("menuFlexibleItemRenderer");var wVm=new _.J("pollRenderer");_.nrw=new _.J("backgroundPromoRenderer");var Lqw;_.Puw=new _.J("chipCloudRenderer");Lqw=new _.J("chipCloudChipRenderer");var Duq=new _.J("dropdownRenderer");var pVb=new _.J("gridVideoRenderer");_.pcH=new _.J("itemSectionRenderer");_.Qiu=new _.J("messageRenderer");var NkP=new _.J("sortFilterHeaderRenderer");_.VcY=new _.J("videoRenderer");var jie=new _.J("resolveUrlCommandMetadata");var ls5=function(){ND.apply(this,arguments)};
_.R(ls5,ND);ls5.prototype.getAssociations=function(){return[]};_.XVY=new _.J("getAnswerCommand");_.ig=new _.J("searchEndpoint");var $uq=new _.J("genAiRichTextViewModel");var K8F=new _.J("overviewAnswerViewModel");var Rtq=new _.J("addToPlaylistServiceEndpoint");var bVq=new _.J("clearSearchHistoryEndpoint");var YJ0=new _.J("clearWatchHistoryEndpoint");var Ao5=new _.J("webSerializedServiceEndpointExtension");_.gfm=new _.J("createCommentEndpoint");var vf5=new _.J("createCommentReplyEndpoint");var W_w=new _.J("performCommentActionEndpoint");var dD0=new _.J("updateCommentEndpoint");var xDm=new _.J("updateCommentReplyEndpoint");_.KZ=new _.J("createPlaylistServiceEndpoint");var q2w=new _.J("deletePlaylistEndpoint");var mDq=new _.J("deleteVideoEndpoint");var gIz=new _.J("getReportFormEndpoint");var ZZS=new _.J("modifyChannelNotificationPreferenceEndpoint");var s49;_.zU=new _.J("offlinePlaylistEndpoint");s49={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 oDI;_.uY=new _.J("offlineVideoEndpoint");oDI={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 BOS=new _.J("pingingEndpoint");_.Efw=new _.J("selectActiveIdentityEndpoint");var hSY=new _.J("setSettingEndpoint");var Xdz=new _.J("undoFeedbackEndpoint");var UDu=new _.J("unsubscribeEndpoint");_.HZq=new _.J("updatedMetadataEndpoint");var tVb=function(){ND.apply(this,arguments)};
_.R(tVb,ND);tVb.prototype.getAssociations=function(){return[]};_.JoY=new _.J("updateLocalAppSettingCommand");var OZd=new _.J("saveImageToDeviceEndpoint");var aNm=new _.J("shareImageCommand");var MVq=new _.J("sharingProviderDataCommand");var I4P=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(I4P,_.GR);var C_Y=[0,_.E0,-1];I4P.prototype.JSC$10141_serializeBinary=O8m(C_Y);var sVm=_.Um(C_Y);var oUd=new _.J("userMentionSuggestionRenderer");var yJP=new _.J("liveChatTunnelCommand");var kkw=new _.J("showSponsorshipsGiftOfferDialogCommand");var Fyq=new _.J("sponsorshipsScrollableShelfViewModel");var uVS=new _.J("updateUpcomingEventReminderButtonStateCommand");var zfc=new _.J("upcomingEventReminderButtonStateRenderer");var Tfw=new _.J("subscribeEndpoint");var cJm=new _.J("registerTasksCommand");var efc=new _.J("showDialogCommand");_.nM=new _.J("showSheetCommand");var rJ0=function(){ND.apply(this,arguments)};
_.R(rJ0,ND);rJ0.prototype.getAssociations=function(){return[]};_.EG=new _.J("avatarViewModel");var oiK=new _.J("badgeViewModel");_.Xi=new _.J("buttonViewModel");_.Ao=new _.J("chipViewModel");var cbs=new _.J("contentPreviewImageViewModel");var L3K=new _.J("decoratedAvatarViewModel");var GSF=new _.J("downloadButtonViewModel");_.oe9=new _.J("engagementBarViewModel");_.N$F=new _.J("imageBannerViewModel");var ph9=new _.J("lockupContentMetadataRowExtension");var iu0=new _.J("lockupMetadataViewModel");_.wk5=new _.J("lockupViewModel");var nUw=function(){ND.apply(this,arguments)};
_.R(nUw,ND);nUw.prototype.getAssociations=function(){return[]};_.P_c=new _.J("pageHeaderViewModel");var $A9=new _.J("thumbnailHoverOverlayToggleActionsViewModel");_.$A=new _.J("toggleButtonViewModel");var Lyc=function(){ND.apply(this,arguments)};
_.R(Lyc,ND);Lyc.prototype.getAssociations=function(){return[]};_.ydI=new _.J("votingViewModel");var DXu=new _.J("sectionHeaderViewModel");var pkq=new _.J("notifyDropdownOptionSelectedCommand");var HPI=new _.J("listViewModel");_.Pj=new _.J("listItemViewModel");var QVq=new _.J("dialogHeaderViewModel");var Nfc=function(){ND.apply(this,arguments)};
_.R(Nfc,ND);Nfc.prototype.getAssociations=function(){return[]};var VoP=function(){ND.apply(this,arguments)};
_.R(VoP,ND);VoP.prototype.getAssociations=function(){return[]};var jVY=function(){ND.apply(this,arguments)};
_.R(jVY,ND);jVY.prototype.getAssociations=function(){return[]};_.l4d=new _.J("transcriptSubmitCaptionCorrectionCommand");var Xk0=function(){ND.apply(this,arguments)};
_.R(Xk0,ND);Xk0.prototype.getAssociations=function(){return[]};var id9=new _.J("unpluggedStringRunImage");var $XY=new _.J("tabViewModel");var Rfw=new _.J("tabbedViewModel");var bud=function(){ND.apply(this,arguments)};
_.R(bud,ND);bud.prototype.getAssociations=function(){return[]};_.Y7q=new _.J("updateDescriptionAction");var Gkq=new _.J("updateToggleButtonTextAction");_.f4u=new _.J("autoplaySwitchButtonRenderer");var Au;_.S7d=new _.J("multiMarkersPlayerBarRenderer");Au=new _.J("chapterRenderer");var KyS=new _.J("heatMarkerRenderer");var W$W=new _.J("heatmapRenderer");var AJc=new _.J("smartSkipPlayerScrimOverlayRenderer");var gUS=new _.J("timedMarkerDecorationRenderer");var hem=new _.J("postWebToNativeMessageCommand");var vUY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(vUY,_.GR);var Wyd=_.hT(vUY,[0,_.E0,-2]);var dXb=new _.J("whitelistEditEndpoint");var xXw=new _.J("clearUrlParamCommand");var q70=new _.J("commerceActionCommand");_.mX0=new _.J("getPaymentInstrumentsParamsCommand");var Zu5=new _.J("getPaymentsClientTokenCommand");var Bfu=new _.J("googlePaymentBillingCommand");var EUP=new _.J("googlePaymentPurchaseManagerCommand");_.hfw=new _.J("logGtmCommand");var UXm=new _.J("updateCardItemOnClickCommand");_.Hu0=new _.J("ypcPauseSubscriptionCommand");_.tom=new _.J("ypcResumeSubscriptionCommand");var JJY=function(){ND.apply(this,arguments)};
_.R(JJY,ND);JJY.prototype.getAssociations=function(){return[]};var OuS=function(){ND.apply(this,arguments)};
_.R(OuS,ND);OuS.prototype.getAssociations=function(){return[]};var a4d=function(){ND.apply(this,arguments)};
_.R(a4d,ND);a4d.prototype.getAssociations=function(){return[]};var Mob=function(){ND.apply(this,arguments)};
_.R(Mob,ND);Mob.prototype.getAssociations=function(){return[]};var ILq=function(){ND.apply(this,arguments)};
_.R(ILq,ND);ILq.prototype.getAssociations=function(){return[]};var uFz=new _.J("ypcOffersEndpoint");var Cae=new _.J("cardItemRenderer"),sAY=new _.J("cardItemTextRenderer");var oyq=new _.J("commerceCartItemQuantityPickerRenderer");var ys8=new _.J("linkCardRenderer");var dBO=new _.J("quantityIncrementerButtonViewModel");var kZd=new _.J("quantityIncrementerViewModel");var Ftq=new _.J("themedImageViewModel");_.ukq=new _.J("ypcCancelRecurrenceEndpoint");var ziw=new _.J("ypcCompleteTransactionEndpoint");_.Tx5=new _.J("ypcGetCartEndpoint");_.sd=new _.J("ypcGetOffersEndpoint");_.gO=new _.J("ypcHandleTransactionEndpoint");var csS=new _.J("ypcLogWalletAnalyticDataEndpoint");_.ei5=new _.J("ypcRedeemCodeEndpoint");var rsw=new _.J("ypcUpdateFopEndpoint");CZ(I$(1),ai(4));CKe((new MessageChannel).port2);var i00=function(){this.register=new Map},Qzt=function(I,C,y){I=I+"_"+C;
v3.register.has(I)?y=v3.register.get(I):(y=y(),v3.register.set(I,y));return y},w7S=function(I){I=_.T(I.register.values());
for(var C=I.next();!C.done;C=I.next())_.wA(C.value,"ABORTED")};
i00.prototype.clear=function(){w7S(this);this.register.clear()};
var v3=new i00;var MZt=Date.now().toString();var CRX,nyw=_.sF.ytLoggingDocDocumentNonce_;nyw||(nyw=YB(16),_.U8("ytLoggingDocDocumentNonce_",nyw));CRX=nyw;var T1s={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 Pa8;Pa8=1;_.G5=function(I){this.veData=I};
_.nv=function(I){return new _.G5({trackingParams:I})};
_.Dn=function(I,C,y,k,F,z){var c=Pa8++;return new _.G5({veType:I,veCounter:c,elementIndex:y,dataElement:C,youtubeData:k,jspbYoutubeData:F,loggingDirectives:z})};
_.u=_.G5.prototype;
_.u.getAsJson=function(){var I={};this.veData.trackingParams!==void 0?I.trackingParams=this.veData.trackingParams:(I.veType=this.veData.veType,this.veData.veCounter!==void 0&&(I.veCounter=this.veData.veCounter),this.veData.elementIndex!==void 0&&(I.elementIndex=this.veData.elementIndex));this.veData.dataElement!==void 0&&(I.dataElement=this.veData.dataElement.getAsJson());this.veData.youtubeData!==void 0&&(I.youtubeData=this.veData.youtubeData);this.veData.isCounterfactual&&(I.isCounterfactual=!0);
return I};
_.u.getAsJspb=function(){var I=new s0S;this.veData.trackingParams!==void 0?I.setTrackingParams(this.veData.trackingParams):(this.veData.veType!==void 0&&_.KF(I,2,this.veData.veType),this.veData.veCounter!==void 0&&_.KF(I,6,this.veData.veCounter),this.veData.elementIndex!==void 0&&_.KF(I,3,this.veData.elementIndex),this.veData.isCounterfactual&&_.Mb(I,5,!0));if(this.veData.dataElement!==void 0){var C=this.veData.dataElement.getAsJspb();_.JT(I,7,C)}this.veData.youtubeData!==void 0&&_.JT(I,8,this.veData.jspbYoutubeData);
return I};
_.u.toString=function(){return JSON.stringify(this.getAsJson())};
_.u.isClientVe=function(){return!this.veData.trackingParams&&!!this.veData.veType};
_.u.getLoggingDirectives=function(){return this.veData.loggingDirectives};_.U8("yt_logging_screen.getRootVeType",Fum);_.U8("yt_logging_screen.getCurrentCsn",_.Si);_.U8("yt_logging_screen.getCttAuthInfo",Kq);_.U8("yt_logging_screen.setCurrentScreen",_.rZO);var Ltw=function(){this.events=new Map},D8u=function(I){var C=[];
I=_.T(I.events.values());for(var y=I.next();!y.done;y=I.next())C.push(y.value);return C};
Ltw.prototype.clear=function(){this.events.clear()};var QAe=function(){this.logTransport=new p7u;this.loggedEventRegister=new Ltw;this.unloggedEventRegister=new Ltw;this.eventsCount=0;this.flushInterval=3E4;this.JSC$10196_flushTimer=new _.IC(this.flushInterval);this.JSC$10196_flushTimer.listen("tick",this.flush,!1,this)};
QAe.prototype.flush=function(){if(this.eventsCount){var I={loggedEvents:D8u(this.loggedEventRegister),unloggedEvents:D8u(this.unloggedEventRegister)};if(_.V("export_player_version_to_ytconfig")){var C;(C=_.Aq("PLAYER_CLIENT_VERSION"))?(C=C.split("-")[0].replace(/\./g,""),C=isNaN(Number(C))?"0":C):C="";var y=_.Aq("PLAYER_CLIENT_VERSION");if(y){y=y.split("-");var k="";y.length>1&&(k=y[y.length-1]);y=aeO(k.startsWith("canary_experiment")?"canary":k.startsWith("canary_control")?"control":"none")}else y=
"CLIENT_CANARY_STATE_UNKNOWN";I.dimensions={playerClientVersion:C,playerCanaryState:y}}this.logTransport.flush(I);this.loggedEventRegister.clear();this.unloggedEventRegister.clear();this.eventsCount=0;this.JSC$10196_flushTimer.enabled&&this.JSC$10196_flushTimer.stop()}};
var Nx8=function(I){W3==null&&(W3=new QAe);var C=W3;var y=C.loggedEventRegister;I.dimensions=I.dimensions||{};I.dimensions.csn=_.Si()||"";var k=iWY(I.dimensions).join(";");if(I.records!=null)if(y.events.has(k)){var F;(F=y.events.get(k).records)==null||F.push.apply(F,_.Py(I.records))}else y.events.set(k,I);C.JSC$10196_flushTimer.enabled||C.JSC$10196_flushTimer.start();C.eventsCount++;C.eventsCount>=100&&C.flush()};var p7u=function(){};
p7u.prototype.flush=function(I,C){_.V("enable_client_sli_logging")&&_.b2("sliEventBatch",I,{sendIsolatedPayload:!!C})};var W3;var jAP;jAP=function(I){var C=V9c;I=I===void 0?{}:I;C=C.name;var y=pfm("SUCCESS");Nx8({dimensions:I,records:[{name:C,state:"SLI_STATE_END",status:y}]})};
_.N1I=function(I,C,y,k){this.name=I;this.sliId=C;this.timeoutMs=y;this.statusOnTimeout=k;this.logSliId="";this.timeoutHandle=-1;this.ongoing=!1;this.dimensions={}};
_.N1I.prototype.getId=function(){return this.sliId};
_.iz=function(I,C){C=C===void 0?{}:C;I.ongoing||(I.ongoing=!0,I.dimensions=C,I.logSliId=fnd(),Nx8({dimensions:I.dimensions,records:[{name:I.name,state:"SLI_STATE_START",sliId:I.logSliId}]}),I.timeoutMs>0&&(I.timeoutHandle=setTimeout(function(){_.wA(I,I.statusOnTimeout)},I.timeoutMs)))};
_.wA=function(I,C){I.ongoing&&(I.timeoutMs>0&&clearTimeout(I.timeoutHandle),I.ongoing=!1,C={dimensions:I.dimensions,records:[{name:I.name,status:pfm(C),state:"SLI_STATE_END",sliId:I.logSliId}]},v3.register.delete(I.name+"_"+I.sliId),Nx8(C))};var V9c=new function(){this.name="SLI_NAME_YOUTUBE_WEB_SESSION_PARTITION"};var lLq=function(){ND.apply(this,arguments)};
_.R(lLq,ND);lLq.prototype.getAssociations=function(){return[]};var CCm=new _.J("highlightTextDecoratorColorMapExtension");var MaF=new _.J("styleRunColorMapExtension");var bWs=_.hu(["data-"]),fI9={};var KuW={};_.xB=function(I,C,y){_.Im.call(this,I+", errorCode="+C);this.errorCode=C;this.xhr=y;this.name="PromiseAjaxError"};
_.R(_.xB,_.Im);var d2O=function(I){this.xhr=I};var dO=function(I){this.wrappedPromise_=I===void 0?null:I;this.state_=0;this.JSC$10228_value_=null};
dO.prototype.then=function(I,C,y){return this.wrappedPromise_?this.wrappedPromise_.then(I,C,y):this.state_===1&&I?(I=I.call(y,this.JSC$10228_value_))&&typeof I.then==="function"?I:_.xf(I):this.state_===2&&C?(I=C.call(y,this.JSC$10228_value_))&&typeof I.then==="function"?I:_.X7P(I):this};
dO.prototype.getValue=function(){return this.JSC$10228_value_};
dO.prototype.isRejected=function(){return this.state_==2};
sIb(dO);_.X7P=function(I){var C=new dO;I=I===void 0?null:I;C.state_=2;C.JSC$10228_value_=I===void 0?null:I;return C};
_.xf=function(I){var C=new dO;I=I===void 0?null:I;C.state_=1;C.JSC$10228_value_=I===void 0?null:I;return C};var Wus={format:"RAW",method:"GET",timeout:5E3,withCredentials:!0};var CLz="absolute_experiments app conditional_experiments debugcss debugjs expflag forced_experiments pbj pbjreload sbb spf spfreload sr_bns_address sttick".split(" ");var $88=["load","abort","error"],qD=function(I,C,y){this.transformedData=null;this.invalidAspectRatio=this.cropped=!1;this.JSC$10248_maxAspectRatio_=I;this.disableAnimation_=C===void 0?!1:C;this.disableExifRotation_=y===void 0?!1:y;this.JSC$10248_image_=new Image;this.angle_=this.dataUrl_=this.mime_=this.JSC$10248_reject_=this.resolve_=null};
qD.prototype.transform=function(I){var C=this;this.mime_=I.type;Bf(akS(I),this.dataUrlRead_,this.readError_,this);Bf(Ox0(I.slice(0,65536)),this.exifRead_,this.readError_,this);return new Promise(function(y,k){C.resolve_=y;C.JSC$10248_reject_=k})};
qD.prototype.dataUrlRead_=function(I){this.dataUrl_=I;this.angle_!=null&&Rie(this)};
qD.prototype.exifRead_=function(I){if(this.disableExifRotation_)this.angle_=0;else{a:if(I=new DataView(I),I.byteLength<2||I.getUint16(0)!==65496)I=-2;else{for(var C=2,y=I.byteLength;C<y;){var k=I.getUint16(C),F=I.getUint16(C+2);if(k===65505){C+=4;k=I.getUint32(C);F=I.getUint16(C+4);if(k!==1165519206||F!==0)break;C+=6;k=I.getUint16(C)===18761;C+=I.getUint32(C+4,k);F=I.getUint16(C,k);C+=2;for(var z=0;z<F;z++){if(I.getUint16(C,k)===274){C+=8;I=I.getUint16(C,k);break a}C+=12}}else if(k>>8!==255)break;
else C+=F+2}I=-1}switch(I){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&&Rie(this)};
qD.prototype.readError_=function(){this.JSC$10248_reject_()};
var Rie=function(I){iU(I.JSC$10248_image_,$88,I.completeTransform_,!1,I);I.JSC$10248_image_.src=_.ra(I.dataUrl_).toString();I.JSC$10248_image_.src!=eO.toString()&&I.JSC$10248_image_.src.substr(0,11)==="data:image/"||I.JSC$10248_reject_()};
qD.prototype.completeTransform_=function(){if(this.JSC$10248_image_.src!=eO.toString()){var I=_.ra(this.dataUrl_),C=this.JSC$10248_image_.naturalHeight?this.JSC$10248_image_.naturalWidth/this.JSC$10248_image_.naturalHeight:null;this.invalidAspectRatio=C>this.JSC$10248_maxAspectRatio_||C<1/this.JSC$10248_maxAspectRatio_;if(this.mime_!=="image/gif"||this.disableAnimation_){var y=this.JSC$10248_image_.naturalWidth,k=this.JSC$10248_image_.naturalHeight,F=C=0,z=this.JSC$10248_image_.naturalHeight?this.JSC$10248_image_.naturalWidth/
this.JSC$10248_image_.naturalHeight:null;z>this.JSC$10248_maxAspectRatio_?(y=this.JSC$10248_maxAspectRatio_*k,C=(y-this.JSC$10248_image_.naturalWidth)/2,this.cropped=!0):z<1/this.JSC$10248_maxAspectRatio_?(k=this.JSC$10248_maxAspectRatio_*y,F=(k-this.JSC$10248_image_.naturalHeight)/2,this.cropped=!0):this.mime_==="image/gif"&&this.disableAnimation_&&(this.cropped=!0);if(this.angle_==90||this.angle_==270)z=y,y=k,k=z,z=C,C=F,F=z;switch(this.angle_){case 90:F-=y;break;case 180:C-=y;F-=k;break;case 270:C-=
k}this.cropped||this.angle_%360!==0?(I=document.createElement("canvas"),I.width=y||1,I.height=k||1,this.JSC$10248_image_.naturalWidth&&this.JSC$10248_image_.naturalHeight&&(y=I.getContext("2d"),y.rotate(Math.PI/180*this.angle_),y.drawImage(this.JSC$10248_image_,C,F,this.JSC$10248_image_.naturalWidth,this.JSC$10248_image_.naturalHeight)),this.transformedData=_.ra(I.toDataURL(this.mime_))):this.transformedData=I}else this.transformedData=I;this.resolve_(this)}};var m_=function(I,C){_.r1.call(this,I);this.value=C};
_.R(m_,_.r1);
var ZN=function(I,C,y,k,F,z,c){c=c===void 0?!1:c;_.LW.call(this);var r=this;this.JSC$10253_url_=I;this.channelId_=C;this.maxFileSizeMb_=y;this.JSC$10253_maxAspectRatio_=k;this.dropZoneEl_=F;this.rejectInvalidAspectRatio_=c;this.selectButtonEl_=z;this.JSC$10253_reject_=this.resolve_=this.uploadPromise_=null;this.dropZoneOverlay_=new TX(this.dropZoneEl_);this.selectOverlay_=new c3(this.selectButtonEl_);this.selectButtonEl_.nextSibling.tagName=="INPUT"&&this.selectButtonEl_.nextSibling.setAttribute("accept","image/*");
this.JSC$10253_image_=this.transfer_=null;this.handler_=new _.Cq(this);_.kq(this,this.handler_);this.handler_.listen(this.dropZoneOverlay_,"f",this.onChange_).listen(this.dropZoneEl_,"dragover",this.onHover_).listen(this.dropZoneEl_,"dragleave",this.onHover_).listen(z,"click",function(){r.selectOverlay_.click()}).listen(this.selectOverlay_,"j",this.onChange_)};
_.R(ZN,_.LW);ZN.prototype.disposeInternal=function(){for(var I=this.selectButtonEl_.nextSibling;I&&I.parentNode&&I.tagName=="INPUT";)I.parentNode.removeChild(I),I=this.selectButtonEl_.nextSibling;this.cancel();_.LW.prototype.disposeInternal.call(this)};
ZN.prototype.uploadPromise=function(){if(this.JSC$10253_image_==null)return null;this.uploadPromise_||b08(this);return this.uploadPromise_};
ZN.prototype.cancel=function(){YtS(this);this.JSC$10253_image_=null};
var YtS=function(I){I.transfer_&&I.transfer_.cancel();I.transfer_=null;I.uploadPromise_=null;I.resolve_=null;I.JSC$10253_reject_=null},b08=function(I){YtS(I);
I.transfer_=_.nCw(I.JSC$10253_url_,{"X-YouTube-ChannelId":I.channelId_},I.JSC$10253_image_);I.handler_.listenOnce(I.transfer_,"l",I.JSC$10255_onUploadComplete_);I.handler_.listenOnce(I.transfer_,"n",I.onUploadError_);I.transfer_.run();I.uploadPromise_=new Promise(function(C,y){I.resolve_=C;I.JSC$10253_reject_=y})};
_.u=ZN.prototype;_.u.onChange_=function(I){I.files.length&&(this.JSC$10253_image_=I.files[0],this.JSC$10253_image_.size>1048576*this.maxFileSizeMb_?(this.JSC$10253_image_=null,this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"))):(b08(this),(new qD(this.JSC$10253_maxAspectRatio_)).transform(this.JSC$10253_image_).then((0,_.DD)(this.onPreview_,this),(0,_.DD)(this.onPreviewError_,this))))};
_.u.onPreview_=function(I){if(I.invalidAspectRatio&&(this.rejectInvalidAspectRatio_&&(this.JSC$10253_image_=null),this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT")),this.rejectInvalidAspectRatio_))return;I.cropped&&this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.CROPPED_EVENT"));this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.CHANGE_EVENT",I.transformedData))};
_.u.onPreviewError_=function(){this.JSC$10253_image_=null;this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.INVALID_EVENT"))};
_.u.onHover_=function(I){I.stopPropagation();I.preventDefault();if(I.type==="dragover")I=!0;else if(I.type==="dragleave")I=!1;else return;this.dispatchEvent(new m_("yt.comments.ImageUploadOverlay.HOVER_EVENT",I))};
_.u.JSC$10255_onUploadComplete_=function(){var I=(0,_.$Lw)(this.transfer_.getResponseText());this.resolve_(I.encryptedBlobId)};
_.u.onUploadError_=function(){this.JSC$10253_reject_();YtS(this)};var GZ8=function(I){I=I||{};var C={},y={};this.url=I.url||"";this.args=I.args||_.Le.clone(C);this.assets=I.assets||{};this.attrs=I.attrs||_.Le.clone(y);this.fallback=I.fallback||null;this.fallbackMessage=I.fallbackMessage||null;this.html5=!!I.html5;this.disable=I.disable||{};this.loaded=!!I.loaded;this.messages=I.messages||{}};
GZ8.prototype.clone=function(){var I=new GZ8,C;for(C in this)if(this.hasOwnProperty(C)){var y=this[C];I[C]=_.zM(y)=="object"?_.Le.clone(y):y}return I};var fLb,Stb,Kt8,CI,gyY,vyb,WtS,d8c,x8d,qt0,m85,Z0w,Bxe,Eyu,hiS,U8m,H0c,t9q,Jsd,O0c,aLP,M90,Ib5,Cee,sW0,ope,ymq,kde,Fkd,Mqm,uN0,zvu,T3q,cm0,ev5,rmb,iXP,wAq,npu,Peb,Lkw,DF8,pA5,QWb,N3w,VDb,jWP,lbP,XAb,$Fu,Rvm,bX5,YPb,Gdm,fbw,SPb,B3,Kkc,Am5,gpw,vpd,Wk5,dFd,xF8,qPq,mFS,ZXq,B38,Epb,hvS,UFq,HXu,tDb,Jm8,OXu,O3m,abP,MDd,Iyw,CZq,ssw,oxq,yxq,kWY,FBe,uwb,zrq,Tnq,cxb,erY,rxu,iN8,wwP,nxq,PZq,LBe,DfP,pww,QsP,Nnc,VH8;fLb=["account/accounts_list"];Stb=["acknowledge_channel_tou_strike"];Kt8=["notification/add_upcoming_event_reminder"];
_.Ase=["att/get"];CI=["browse","music/browse","unplugged/browse"];gyY=["channel/claim_legacy_youtube_channel"];vyb=["history/clear_search_history"];WtS=["history/clear_watch_history"];d8c=["comment/perform_comment_action"];x8d=["comment/get_comment_replies"];qt0=["ypc/commerce_action"];m85=["backstage/create_post"];Z0w=["live/create_broadcast"];Bxe=["channel/create_channel"];Eyu=["comment/create_comment_reply"];hiS=["comment/create_comment"];U8m=["live_chat/create_poll"];H0c=["playlist/create"];
t9q=["decorate_message"];Jsd=["live_chat/delete_message"];O0c=["playlist/delete"];aLP=["video/delete"];M90=["like/dislike"];Ib5=["dismissal/dismiss"];Cee=["flag/flag"];sW0=["flow"];ope=["account/account_menu"];ymq=["playlist/get_add_to_playlist"];kde=["get_answer"];Fkd=["channel/get_channel_creation_form"];Mqm=["offline/get_download_action"];uN0=["kids/get_kids_blocklist_picker"];zvu=["live_chat/get_item_context_menu"];T3q=["live_chat/get_live_chat_message_buy_flow"];cm0=["live_chat/get_live_chat_replay"];
ev5=["live_chat/get_live_chat","live_chat/get_live_interactivity","live_chat/get_streaming_live_chat"];rmb=["live_chat/get_live_chat_super_sticker_buy_flow"];iXP=["notification/get_notification_menu"];wAq=["playlist/get_settings_editor"];npu=["backstage/get_post_video_preview"];Peb=["account/get_profile_card"];Lkw=["share/get_share_panel"];DF8=["share/get_sharing_provider_data"];pA5=["get_survey"];QWb=["notification/get_unseen_count"];N3w=["get_user_mention_suggestions"];VDb=["get_watch"];jWP=["guide"];
lbP=["feedback"];XAb=["kids/update_blacklist"];$Fu=["like/like"];Rvm=["live_chat/live_chat_action"];bX5=["live_chat/manage_user"];YPb=["video_manager/metadata_update"];Gdm=["live_chat/moderate"];fbw=["notification/modify_channel_preference"];SPb=["notification/opt_out"];B3=["get_panel","get_posts_by_host_panel"];Kkc=["player"];Am5=["browse/edit_playlist"];gpw=["notification/record_interactions"];vpd=["reel/reel_item_watch"];Wk5=["reel/reel_watch_sequence"];dFd=["like/removelike"];xF8=["notification/remove_upcoming_event_reminder"];
qPq=["flag/get_form"];mFS=["miniapp/report_value"];ZXq=["navigation/resolve_url"];B38=["channel/reveal_business_email"];Epb=["in_video/search"];hvS=["search","sfv/search","unplugged/search"];UFq=["live_chat/send_message"];HXu=["live_chat/send_live_chat_vote"];tDb=["account/set_setting"];Jm8=["submit_caption_correction"];OXu=["subscription/subscribe"];O3m=["get_transcript"];abP=["resolve_location","unplugged/resolve_location"];MDd=["subscription/unsubscribe"];Iyw=["backstage/update_post"];CZq=["channel_edit/update_channel_page_settings"];
ssw=["comment/update_comment_reply"];oxq=["comment/update_comment"];yxq=["comment/update_comments_settings"];kWY=["creator/update_creator_channel"];FBe=["pdg/update_enablement"];uwb=["updated_metadata"];zrq=["channel_edit/validate_channel_handle"];Tnq=["verify_age"];cxb=["next","unplugged/watch_next"];erY=["whitelist/edit"];rxu=["ypc/cancel_recurrence"];iN8=["ypc/complete_transaction"];wwP=["ypc/get_cart"];nxq=["ypc/get_fix_instrument_params"];PZq=["ypc/get_offers"];LBe=["ypc/get_payment_instruments_params"];
DfP=["ypc/handle_transaction"];pww=["ypc/log_payment_server_analytics"];QsP=["ypc/pause_subscription"];Nnc=["ypc/redeem_code"];VH8=["ypc/resume_subscription"];var jsm=[3611,27686,221058,85013,23462,241187,157557,42016,26926,51236,79148,50160,77504,153587,87907,18630,177018,177023,54445,80935,152172,184553,105675,150723,37521,147285,47786,231255,231254,231258,231259,98349,237299,168271,168954,168277,168273,168270,123695,226987,226990,226988,6827,29434,255010,171388,244189,236208,7282,124448,196088,250897,198104,32276,195115,195114,76278,200635,230594,147868,147869,93911,106531,257234,252598,252597,252600,252599,252596,225031,177843,27259,27262,27263,21759,
160866,204249,222900,204250,180626,177959,177957,180628,205716,197878,171243,160789,171244,171241,171245,171242,225560,180627,177960,231589,177958,180629,205717,197879,177565,212573,210709,230684,229801,230685,197337,209010,197336,197338,198618,175492,198052,198051,197852,197976,175493,175494,175495,189254,175496,175497,38408,175498,175503,175504,175505,175506,175507,175508,80637,68727,206933,207944,206934,206929,221575,68728,221576,80353,80356,249107,180635,74610,45707,83962,83970,46713,166591,89711,
74612,213809,179607,245006,155792,93265,74611,131380,128979,139311,128978,131391,105350,139312,134800,131392,113533,229298,93252,99357,94521,114252,113532,94522,94583,202371,88E3,139580,93253,93254,94387,94388,93255,97424,72502,219868,212991,110111,76019,117092,117093,89431,191831,110466,231346,77240,60508,186091,148123,148124,137401,137402,137046,73393,246776,113534,92098,131381,84517,83759,230676,249183,230679,230678,230677,230681,230680,162711,235234,162712,80357,243315,86113,72598,168413,72733,
107349,124275,118203,200410,133275,160157,152569,156651,133274,160159,160158,133272,133273,133276,144507,143247,175994,156652,143248,143249,143250,143251,189892,189894,189893,156653,214236,144401,117431,133797,225137,222612,222613,153964,201133,201134,201135,201136,201137,128572,200411,200412,190337,133405,117429,117430,177950,174734,177951,201138,201139,201140,201141,201142,117432,173996,173995,174953,173994,173997,120080,117259,178546,197891,156655,156654,121692,211414,211411,211412,211413,211403,
184846,185993,145656,156656,145655,145653,145654,145657,132972,133051,133658,132971,97615,181262,190762,250344,254027,143359,143356,143361,143358,143360,143357,142303,143353,172859,143354,144479,143355,31402,181590,133624,146477,133623,133622,133621,192418,84774,197993,241460,160801,197995,95117,172721,150497,98930,98931,98932,153320,153321,43347,249295,210016,210017,211851,211852,211853,129889,197888,197889,149123,221959,221627,221958,45474,100352,98443,117985,74613,155911,74614,64502,136032,74615,
74616,122224,74617,77820,74618,226981,93278,93274,93275,93276,200688,200686,200687,199841,22110,29433,133798,132295,120541,222112,82047,113550,75836,75837,192409,203221,42352,84512,76065,75989,205911,205912,252649,205913,252650,252651,51879,16623,32594,27240,32633,74858,222932,213915,225216,251244,258251,218674,251266,258250,251265,251245,156999,3945,16989,45520,25488,25492,25494,232113,55760,14057,18451,57204,57203,17897,18198,17898,17909,43980,221053,195529,189660,46220,11721,147994,49954,96369,
3854,217640,151633,56251,205192,216797,159108,181568,25624,152036,16906,99999,68172,47973,72773,26970,26971,96805,17752,73233,205923,109512,22256,14115,22696,234409,234408,89278,89277,195745,109513,43278,43459,43464,89279,43717,55764,22255,147912,89281,40963,43277,43442,91824,120137,186350,186351,256690,211026,250896,96367,36850,72694,37414,36851,124863,121343,73491,54473,166861,43375,46674,242528,143815,139095,144402,149968,149969,32473,72901,72906,50612,50613,50942,84938,84943,84939,84941,84944,
84940,84942,35585,51926,79983,18921,57893,41182,135732,33424,22207,36229,22206,22205,44763,33427,67793,22182,37091,34650,50617,22287,25144,97917,220122,62397,150871,150874,125598,137935,36961,108035,27426,27857,27846,27854,69692,61411,39299,38696,62520,36382,108701,192682,50663,36387,14908,37533,105443,61635,62274,161670,133818,182119,65702,65703,65701,76256,196075,194768,252201,194769,191885,233634,194770,195350,195349,194771,166382,37671,49953,220669,249229,213774,204572,191389,253830,253831,253832,
253833,253834,204574,187917,191390,179556,191402,238596,212661,191392,197826,191393,204573,36216,28237,241212,173718,39553,192547,29222,26107,241211,38050,26108,120745,26109,26110,66881,28236,14586,160598,57929,226736,74723,44098,173689,44099,23528,61699,134104,134103,198313,59149,181013,173191,173192,173193,101951,171502,196043,198305,97346,118051,95102,64882,119505,63595,257268,63349,240553,95101,75240,27039,68823,21537,83464,75707,252904,170215,223033,83113,101952,101953,79610,125755,24402,24400,
32925,193406,57173,183351,156421,122502,145268,138480,64423,64424,33986,100828,129089,21409,185612,222825,245366,135155,135156,135157,135158,158225,135159,135160,167651,135161,135162,135163,158226,158227,135164,135165,135166,11070,11074,17880,30709,30707,30711,30710,30708,185213,185273,146143,63648,63649,221056,211189,111059,211188,5754,20445,233471,151308,151152,228067,130975,130976,247244,261210,210815,246127,245256,244950,191925,167637,234545,197196,214295,110386,221054,113746,66557,183215,17310,
28631,201935,21589,242036,238351,164817,168011,154946,68012,162617,60480,184431,138664,249827,194E3,141121,164502,31571,195002,206793,141978,233985,250895,254052,254053,254054,254051,254050,254055,150105,150106,150107,150108,76980,41577,45469,38669,13768,13777,141842,62985,213190,4724,223052,59369,43927,43928,12924,197853,100355,56219,27669,209928,10337,203648,203649,47896,122629,186204,222824,139723,139722,121258,253789,253787,253786,253788,253790,107598,127991,96639,107536,130169,216522,96661,145188,
213904,96658,116646,159428,168611,168612,121122,219862,96660,127738,127083,155281,162959,220886,227356,248007,163566,186641,147842,217932,104443,96659,147595,106442,247162,231493,213427,246575,182423,162776,228908,134840,63667,63668,63669,130686,248381,147036,239094,189810,239095,78314,147799,237146,174049,148649,55761,127098,134841,96368,67374,48992,146176,176105,233035,49956,190190,225739,31961,26388,23811,5E4,126250,96370,210549,47355,47356,37935,45521,21760,83769,49977,49974,93497,93498,34325,
140759,115803,123707,100081,35309,237706,68314,25602,100339,170873,143516,178921,254884,258232,59018,18248,50625,9729,37168,37169,21667,16749,18635,39305,18046,221057,53969,8213,93926,221055,210542,212552,102852,110099,22678,69076,137575,139224,100856,235770,154430,235861,209757,17736,3832,147111,55759,64031,234746,93044,93045,170701,170702,194796,34388,167841,170419,17657,17655,39579,39578,170412,77448,8196,11357,69877,8197,168501,156512,161613,156509,208274,161612,161614,82039];var nA=window.yt&&window.yt.msgs_||window.ytcfg&&window.ytcfg.msgs||{};_.U8("yt.msgs_",nA);var E2=new _.Jj("ACTION_ROUTER_TOKEN");_.ho=function(){this.autonavState_=_.V("kevlar_is_pupi_enabled")?2:ibI()?2:1;this.disabledAutonavPauseReason_=this.autonavPauseReason_=void 0;this.autoplayChangedByUser=!1};
_.ho.prototype.getState=function(){return this.autonavState_};
_.ho.prototype.pause=function(I){this.autonavState_==2?(this.setState(3,!1,!1),this.autonavPauseReason_=I):this.autonavState_==1&&(this.disabledAutonavPauseReason_=I)};
_.ho.prototype.setState=function(I,C,y){C&&(this.autoplayChangedByUser=!0);C=this.autonavState_===3||I===3;this.autonavState_!=I&&(this.autonavState_=I,I!=3&&_.wlm(I==2),I=_.V("kevlar_is_pupi_enabled")?y||C:!0,_.qU.getInstance().triggerOptionalAction("yt-autonav-state-changed-action",this.autonavState_,I,y))};
_.ho.prototype.isAutoplaySetExplicitly=function(){return this.autoplayChangedByUser};
_.Ih(_.ho);var U2=function(){this.hasRun=!1};var H3={},RJm=(H3.auto_search="LATENCY_ACTION_AUTO_SEARCH",H3.ad_to_ad="LATENCY_ACTION_AD_TO_AD",H3.ad_to_video="LATENCY_ACTION_AD_TO_VIDEO",H3.app_startup="LATENCY_ACTION_APP_STARTUP",H3.browse="LATENCY_ACTION_BROWSE",H3.cast_splash="LATENCY_ACTION_CAST_SPLASH",H3.channel_activity="LATENCY_ACTION_KIDS_CHANNEL_ACTIVITY",H3.channels="LATENCY_ACTION_CHANNELS",H3.chips="LATENCY_ACTION_CHIPS",H3.commerce_transaction="LATENCY_ACTION_COMMERCE_TRANSACTION",H3.direct_playback="LATENCY_ACTION_DIRECT_PLAYBACK",
H3.editor="LATENCY_ACTION_EDITOR",H3.embed="LATENCY_ACTION_EMBED",H3.embed_no_video="LATENCY_ACTION_EMBED_NO_VIDEO",H3.entity_key_serialization_perf="LATENCY_ACTION_ENTITY_KEY_SERIALIZATION_PERF",H3.entity_key_deserialization_perf="LATENCY_ACTION_ENTITY_KEY_DESERIALIZATION_PERF",H3.explore="LATENCY_ACTION_EXPLORE",H3.favorites="LATENCY_ACTION_FAVORITES",H3.home="LATENCY_ACTION_HOME",H3.inboarding="LATENCY_ACTION_INBOARDING",H3.landing="LATENCY_ACTION_LANDING",H3.library="LATENCY_ACTION_LIBRARY",H3.live=
"LATENCY_ACTION_LIVE",H3.live_pagination="LATENCY_ACTION_LIVE_PAGINATION",H3.management="LATENCY_ACTION_MANAGEMENT",H3.mini_app="LATENCY_ACTION_MINI_APP_PLAY",H3.notification_settings="LATENCY_ACTION_KIDS_NOTIFICATION_SETTINGS",H3.onboarding="LATENCY_ACTION_ONBOARDING",H3.parent_profile_settings="LATENCY_ACTION_KIDS_PARENT_PROFILE_SETTINGS",H3.parent_tools_collection="LATENCY_ACTION_PARENT_TOOLS_COLLECTION",H3.parent_tools_dashboard="LATENCY_ACTION_PARENT_TOOLS_DASHBOARD",H3.player_att="LATENCY_ACTION_PLAYER_ATTESTATION",
H3.prebuffer="LATENCY_ACTION_PREBUFFER",H3.prefetch="LATENCY_ACTION_PREFETCH",H3.profile_settings="LATENCY_ACTION_KIDS_PROFILE_SETTINGS",H3.profile_switcher="LATENCY_ACTION_LOGIN",H3.projects="LATENCY_ACTION_PROJECTS",H3.reel_watch="LATENCY_ACTION_REEL_WATCH",H3.results="LATENCY_ACTION_RESULTS",H3.red="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H3.premium="LATENCY_ACTION_PREMIUM_PAGE_GET_BROWSE",H3.privacy_policy="LATENCY_ACTION_KIDS_PRIVACY_POLICY",H3.review="LATENCY_ACTION_REVIEW",H3.search_overview_answer=
"LATENCY_ACTION_SEARCH_OVERVIEW_ANSWER",H3.search_ui="LATENCY_ACTION_SEARCH_UI",H3.search_suggest="LATENCY_ACTION_SUGGEST",H3.search_zero_state="LATENCY_ACTION_SEARCH_ZERO_STATE",H3.secret_code="LATENCY_ACTION_KIDS_SECRET_CODE",H3.seek="LATENCY_ACTION_PLAYER_SEEK",H3.settings="LATENCY_ACTION_SETTINGS",H3.store="LATENCY_ACTION_STORE",H3.supervision_dashboard="LATENCY_ACTION_KIDS_SUPERVISION_DASHBOARD",H3.tenx="LATENCY_ACTION_TENX",H3.video_preview="LATENCY_ACTION_VIDEO_PREVIEW",H3.video_to_ad="LATENCY_ACTION_VIDEO_TO_AD",
H3.watch="LATENCY_ACTION_WATCH",H3.watch_it_again="LATENCY_ACTION_KIDS_WATCH_IT_AGAIN",H3["watch,watch7"]="LATENCY_ACTION_WATCH",H3["watch,watch7_html5"]="LATENCY_ACTION_WATCH",H3["watch,watch7ad"]="LATENCY_ACTION_WATCH",H3["watch,watch7ad_html5"]="LATENCY_ACTION_WATCH",H3.wn_comments="LATENCY_ACTION_LOAD_COMMENTS",H3.ww_rqs="LATENCY_ACTION_WHO_IS_WATCHING",H3.voice_assistant="LATENCY_ACTION_VOICE_ASSISTANT",H3.cast_load_by_entity_to_watch="LATENCY_ACTION_CAST_LOAD_BY_ENTITY_TO_WATCH",H3.networkless_performance=
"LATENCY_ACTION_NETWORKLESS_PERFORMANCE",H3.gel_compression="LATENCY_ACTION_GEL_COMPRESSION",H3.gel_jspb_serialize="LATENCY_ACTION_GEL_JSPB_SERIALIZE",H3.attestation_challenge_fetch="LATENCY_ACTION_ATTESTATION_CHALLENGE_FETCH",H3);var UiF=function(I,C){Qe.call(this,1,arguments);this.timer=C};
_.R(UiF,Qe);var hJ9=new Mrz("aft-recorded",UiF);var fA9=_.sF.ytLoggingGelSequenceIdObj_||{};_.U8("ytLoggingGelSequenceIdObj_",fA9);var to=_.sF.ytLoggingLatencyUsageStats_||{};_.U8("ytLoggingLatencyUsageStats_",to);var Jo=function(){this.cleanupJob=0},Ajm=function(){Jo.instance||(Jo.instance=new Jo);
return Jo.instance};
_.u=Jo.prototype;_.u.baseline=function(I,C,y){O2(this,"baseline_"+I)||_.b2("latencyActionBaselined",{clientActionNonce:I},{timestamp:C,cttAuthInfo:y})};
_.u.tick=function(I,C,y,k){O2(this,"tick_"+I+"_"+C)||_.b2("latencyActionTicked",{tickName:I,clientActionNonce:C},{timestamp:y,cttAuthInfo:k})};
_.u.info=function(I,C,y){var k=Object.keys(I).join("");O2(this,"info_"+k+"_"+C)||(I=Object.assign({},I),I.clientActionNonce=C,_.b2("latencyActionInfo",I,{cttAuthInfo:y}))};
_.u.jspbInfo=function(I,C,y){for(var k="",F=0;F<JP(I).length;F++)JP(I)[F]!==void 0&&(k=F===0?k.concat(""+F):k.concat("_"+F));O2(this,"info_"+k+"_"+C)||(_.zT(I,2,C),C={cttAuthInfo:y},y=_.V("jspb_sparse_encoded_pivot")?new QB([{}]):new QB,_.Om(y,7,LoP,I),SUm("latencyActionInfo",y,C))};
_.u.span=function(I,C,y){var k=Object.keys(I).join("");O2(this,"span_"+k+"_"+C)||(I.clientActionNonce=C,_.b2("latencyActionSpan",I,{cttAuthInfo:y}))};
var O2=function(I,C){to[C]=to[C]||{count:0};var y=to[C];y.count++;y.time=(0,_.JY)();I.cleanupJob||(I.cleanupJob=_.NU(_.b$,function(){var k=(0,_.JY)(),F;for(F in to)to[F]&&k-to[F].time>6E4&&delete to[F];I&&(I.cleanupJob=0)},5E3));
return y.count>5?(y.count===6&&Math.random()*1E5<1&&(y=new _.ph("CSI data exceeded logging limit with key",C.split("_")),C.indexOf("plev")>=0||_.SN(y)),!0):!1};var lyu,Xwe;lyu=window;Xwe=function(){this.timing={};this.clearResourceTimings=function(){};
this.webkitClearResourceTimings=function(){};
this.mozClearResourceTimings=function(){};
this.msClearResourceTimings=function(){};
this.oClearResourceTimings=function(){}};
_.Vw=lyu.performance||lyu.mozPerformance||lyu.msPerformance||lyu.webkitPerformance||new Xwe;var E6X=!1,v6Y=!1,HbY=(0,_.DD)(_.Vw.clearResourceTimings||_.Vw.webkitClearResourceTimings||_.Vw.mozClearResourceTimings||_.Vw.msClearResourceTimings||_.Vw.oClearResourceTimings||_.nQ,_.Vw);var $fc=window;$fc.ytcsi&&($fc.ytcsi.infoGel=_.Gg,$fc.ytcsi.tick=_.Sr);var FIt=function(I){Qe.call(this,1,arguments);this.csn=I};
_.R(FIt,Qe);var ySO=new Mrz("screen-created",FIt),VEz=[],kvm=NrO,jrz=0,WQ=new Map,uZI=new Map,zxY=new Map;var GU=Symbol("uf"),HQ=new WeakMap;var a$=function(){this.shownElements=new Set;this.hiddenElements=new Set;this.visibleState=new Map;this.client=void 0;this.csn=null},rY=function(){a$.instance||(a$.instance=new a$);
return a$.instance};
_.u=a$.prototype;_.u.setClient=function(I){this.client=I};
_.u.JSC$10335_newScreen=function(){this.clear();this.csn=_.Si()};
_.u.clear=function(){this.shownElements.clear();this.hiddenElements.clear();this.visibleState.clear();this.csn=null};
_.u.reportShown=function(I,C,y){var k=this.JSC$10335_getTrackingParams(I),F=I.visualElement?I.visualElement:k;C=this.shownElements.has(F);var z=this.visibleState.get(F);this.shownElements.add(F);this.visibleState.set(F,!0);I.impressionLog&&!C&&I.impressionLog();if(k||I.visualElement)if(y=Rrc(this,I,y))if(F=bNe(this,I),MD(this,I)||F){k=I.visualElement?I.visualElement:_.nv(k);var c=I.interactionLoggingClientData;F||C?MD(this,I)&4?z||Ppt(this.client,y,k,c):MD(this,I)&1&&!C&&iyz(this.client,y,k,c):iyz(this.client,
y,k,c)}};
_.u.reportHidden=function(I,C,y){var k=this.JSC$10335_getTrackingParams(I),F=I.visualElement?I.visualElement:k;C=this.hiddenElements.has(F);var z=this.visibleState.get(F);this.hiddenElements.add(F);this.visibleState.set(F,!1);if(z===!1)return!0;if(!k&&!I.visualElement)return!1;y=Rrc(this,I,y);if(!y||!MD(this,I)&&bNe(this,I))return!1;k=I.visualElement?I.visualElement:_.nv(k);MD(this,I)&8?LIm(this.client,y,k):MD(this,I)&2&&!C&&(I=this.client,C=vQ({cttAuthInfo:Kq(y)||void 0},y),k={csn:y,ve:k.getAsJson(),
eventType:2},y==="UNDEFINED_CSN"?x3("visualElementHidden",C,k):I?l2("visualElementHidden",k,I,C):_.b2("visualElementHidden",k,C));return!0};
_.u.JSC$10335_getTrackingParams=function(I){var C=this.getData(I),y,k;if(_.V("il_use_view_model_logging_context")&&(C==null?0:(y=C.context)==null?0:(k=y.loggingContext)==null?0:k.loggingDirectives))return C.context.loggingContext.loggingDirectives.trackingParams||"";var F,z;if(C==null?0:(F=C.rendererContext)==null?0:(z=F.loggingContext)==null?0:z.loggingDirectives)return C.rendererContext.loggingContext.loggingDirectives.trackingParams||"";if(C==null?0:C.loggingDirectives)return C.loggingDirectives.trackingParams||
"";var c;return((c=I.veContainer)==null?0:c.trackingParams)?I.veContainer.trackingParams:(C==null?void 0:C.trackingParams)||""};
_.u.JSC$10335_elementShouldLogGesture=function(I,C){I=this.getData(I);return!!((Math.floor(Number(I&&I.loggingDirectives&&I.loggingDirectives.gestures&&I.loggingDirectives.gestures.types||""))||0)&C)};
_.u.JSC$10335_getNearestParentVe=function(I){var C=this.JSC$10335_getTrackingParams(I);return I.visualElement?I.visualElement:C?_.nv(C):I.parentElement?this.JSC$10335_getNearestParentVe(I.parentElement):null};
var Rrc=function(I,C,y){var k=_.Si(y);return I.csn===null||k===I.csn||y?k:(I=new _.ph("VisibilityLogger called before newScreen",{caller:C.tagName,previous_csn:I.csn,current_csn:k}),_.SN(I),null)};
a$.prototype.getData=function(I){var C,y=I.data||((C=I.props)==null?void 0:C.data);if(!y&&_.V("enable_wiz_always_try_logging_info_map")){var k;y=(k=t7(I))==null?void 0:k[GU]}else if(I.isWebComponentWrapper){var F;y=(F=t7(I))==null?void 0:F[GU]}return y};
var bNe=function(I,C){var y;return!((y=I.getData(C))==null||!y.loggingDirectives)},MD=function(I,C){I=I.getData(C);
return Math.floor(Number(I&&I.loggingDirectives&&I.loggingDirectives.visibility&&I.loggingDirectives.visibility.types||""))||1};var IV;IV=function(){};
_.Tp=function(){IV.instance||(IV.instance=new IV);return IV.instance};
IV.prototype.setClient=function(I){_.W5(rY().setClient).bind(rY())(I)};
_.Y_S=function(){_.Tp();_.W5(rY().JSC$10335_newScreen).bind(rY())()};
IV.prototype.clear=function(){_.W5(rY().clear).bind(rY())()};
IV.prototype.reportShown=function(I,C,y){_.W5(rY().reportShown).bind(rY())(I,C,y)};
IV.prototype.reportHidden=function(I,C,y){return _.W5(rY().reportHidden).bind(rY())(I,C,y)};
var tnH=function(I,C){return _.W5(rY().JSC$10335_getTrackingParams).bind(rY())(C)},aTz=function(I,C){return _.W5(rY().JSC$10335_getNearestParentVe).bind(rY())(C)};var Cu,GW0;Cu=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};
_.e2=function(){Cu.instance||(Cu.instance=new Cu);return Cu.instance};
Cu.prototype.setClient=function(I){this.client=I};
GW0=function(I,C,y){y=y===void 0?{}:y;_.W5(function(){var k,F,z,c=((k=_.l(C==null?void 0:C.commandMetadata,_.It))==null?void 0:k.rootVe)||((F=_.l(C==null?void 0:C.commandMetadata,miY))==null?void 0:(z=F.screenVisualElement)==null?void 0:z.uiType);if(c){k=_.l(C==null?void 0:C.commandMetadata,jie);if(k==null?0:k.parentTrackingParams){var r=_.nv(k.parentTrackingParams);if(k.parentCsn)var w=k.parentCsn}else y.clickedVisualElement?r=y.clickedVisualElement:C.clickTrackingParams&&(r=_.nv(C.clickTrackingParams));
a:{k=_.l(C,_.H$);F=_.l(C,opI);if(k){if(F=n6O(k,"VIDEO")){k={token:F,videoId:k.videoId};break a}}else if(F&&(k=n6O(F,"PLAYLIST"))){k={token:k,playlistId:F.playlistId};break a}k=void 0}y=Object.assign({},{cttAuthInfo:k,parentCsn:w},y);if(_.V("expectation_logging")){var L;y.loggingExpectations=((L=_.l(C==null?void 0:C.commandMetadata,miY))==null?void 0:L.loggingExpectations)||void 0}_.s7(I,c,r,y)}else _.SN(new _.ph("Error: Trying to create a new screen without a rootVeType",C))})()};
_.s7=function(I,C,y,k){k=k===void 0?{}:k;_.W5(function(){jsm.includes(C)||(_.SN(new _.ph("createClientScreen() called with a non-page VE",C)),C=83769);k.isHistoryNavigation||(I.forwardHistoryStack=[],I.backHistoryStack.push({rootVe:C,key:k.key||""}));I.graftQueue=[];I.stateChangedQueue=[];k.dataPromises?fye(I,C,y,k):S_m(I,C,y,k)})()};
_.KBb=function(I,C,y){y=y===void 0?0:y;_.W5(function(){C.then(function(k){I.pendingScreenCreation.has(y)&&I.pendingScreenFn&&I.pendingScreenFn();var F=_.Si(y),z=_.fq(y);if(F&&z){var c;(k==null?0:(c=k.response)==null?0:c.trackingParams)&&d9(I.client,F,z,_.nv(k.response.trackingParams));var r;(k==null?0:(r=k.playerResponse)==null?0:r.trackingParams)&&d9(I.client,F,z,_.nv(k.playerResponse.trackingParams))}})})()};
Cu.prototype.graftServerVe=function(I,C,y){var k=this;return _.W5(function(){var F=_.nv(I);_.oV(k,F,C,y);return F})()};
_.MTK=function(I,C,y,k){return _.V("enable_client_ve_spec")&&C.clientVeSpec?(C=_.Dn(C.clientVeSpec.uiType,void 0,C.clientVeSpec.elementIndex,C.clientVeSpec.clientYoutubeData,void 0,C),_.oV(I,C,y,k)?C:null):C.trackingParams?I.graftServerVe(C.trackingParams,y,k):null};
_.c9=function(I,C,y,k){return _.W5(function(){if(!C.veType)return _.fi(new _.ph("Error: Trying to graft a client VE without a veType.")),null;if(C.visibilityTypes){var F=C.visibilityTypes.reduce(function(z,c){return z|c});
F={visibility:{types:String(F)}}}F=_.Dn(C.veType,C.visualElement,C.elementIndex,C.clientYouTubeData,void 0,F);return _.oV(I,F,y,k)?F:null})()};
_.oV=function(I,C,y,k){k=k===void 0?0:k;return _.W5(function(){if(I.pendingScreenCreation.has(k))return I.graftQueue.push([C,y]),!0;var F=_.Si(k),z=y||_.fq(k);if(F&&z){if(_.V("combine_ve_grafts")){var c=I.cachedVisualElements.get(z.toString());c?c.push(C):(I.cachedRootVisualElements.set(z.toString(),z),I.cachedVisualElements.set(z.toString(),[C]));I.attachTimeout||(I.attachTimeout=_.NU(_.b$,function(){Axe(I,F)},1200))}else d9(I.client,F,z,C);
return!0}return!1})()};
_.y4=function(I,C,y){y=y===void 0?0:y;var k=I.recurringGrafts.get(y)||new Map;if(_.V("smarter_ve_dedupping"))for(var F=Array.from(k.keys()),z=0;z<F.length;z++){var c=void 0,r=void 0;var w=C;var L=F[z];L.isClientVe()&&w.isClientVe()?(c=w.getAsJson(),r=L.getAsJson(),w=c.veType!==r.veType||c.elementIndex!==r.elementIndex||c.dataElement!==r.dataElement||w.getLoggingDirectives()!==L.getLoggingDirectives()?!1:!0):w=L.veData.trackingParams!==void 0&&w.veData.trackingParams!==void 0?((r=w.veData)==null?void 0:
r.trackingParams)===((c=L.veData)==null?void 0:c.trackingParams):!1;if(w)return}else if(k.has(C))return;k.set(C,void 0);I.recurringGrafts.set(y,k);_.Si(y)==="UNDEFINED_CSN"||I.pendingScreenCreation.has(y)||_.oV(I,C,void 0,y)};
_.kU=function(I,C,y,k){k=_.Si(k===void 0?0:k);if(!k)return!1;pKH(I.client,k,C,y);return!0};
_.FV=function(I,C,y,k){if(!C)return!1;k=_.Si(k===void 0?0:k);if(!k)return!1;pKH(I.client,k,_.nv(C),y);return!0};
_.Sz=function(I,C){var y=C.getScreenLayer&&C.getScreenLayer();if(C.visualElement)return _.kU(I,C.visualElement,void 0,y);C=tnH(_.Tp(),C);return _.FV(I,C,void 0,y)};
Cu.prototype.clickCommand=function(I,C,y){return _.FV(this,I.clickTrackingParams,C,y===void 0?0:y)};
Cu.prototype.stateChanged=function(I,C,y){this.visualElementStateChanged(_.nv(I),C,y===void 0?0:y)};
Cu.prototype.visualElementStateChanged=function(I,C,y){y=y===void 0?0:y;y===0&&this.pendingScreenCreation.has(y)?this.stateChangedQueue.push([I,C]):this.logStateChanged(I,C,y)};
Cu.prototype.logStateChanged=function(I,C,y){y=y===void 0?0:y;var k=_.Si(y);I=I||_.fq(y);return k&&I?(QrO(this.client,k,I,C),!0):!1};
var fye=function(I,C,y,k){k=k===void 0?{}:k;I.pendingScreenCreation.add(k.layer||0);I.pendingScreenFn=function(){S_m(I,C,y,k);var c=_.fq(k.layer);if(c){for(var r=_.T(I.graftQueue),w=r.next();!w.done;w=r.next())w=w.value,_.oV(I,w[0],w[1]||c,k.layer);c=_.T(I.stateChangedQueue);for(r=c.next();!r.done;r=c.next())r=r.value,I.logStateChanged(r[0],r[1])}};
y||_.Si(k.layer)||I.pendingScreenFn();if(k.dataPromises)for(var F=_.T(k.dataPromises),z=F.next();!z.done;z=F.next())_.KBb(I,z.value,k.layer);else _.GB(Error("vf"))},S_m=function(I,C,y,k){k=k===void 0?{}:k;
var F=void 0;k.layer||(k.layer=0);F=k.parentLayer!==void 0?k.parentLayer:k.layer;var z=_.Si(F);F=_.fq(F);var c=y||F,r;c&&(k.parentCsn!==void 0?r={clientScreenNonce:k.parentCsn,visualElement:c}:z&&z!=="UNDEFINED_CSN"&&(r={clientScreenNonce:z,visualElement:c}));var w,L=_.Aq("EVENT_ID");z==="UNDEFINED_CSN"&&L&&(w={servletData:{serializedServletEventId:L}});_.V("combine_ve_grafts")&&z&&Axe(I,z);_.V("no_client_ve_attach_unless_shown")&&c&&z&&reY(c,z);try{var D=_.TrF(I.client,C,r,k.csnToClone,k.cttAuthInfo,
w,k.implicitGestureType,void 0,k.loggingExpectations)}catch(X){_.Ki(X,{rootVeType:C,rootVe:F,parentVisualElement:y,currentCsn:z,parentEl:r,csnToClone:k.csnToClone});_.GB(X);return}_.rZO(D,C,k.layer,k.cttAuthInfo);z&&z!=="UNDEFINED_CSN"&&F&&!cZY(z)&&LIm(I.client,z,F,!0);I.backHistoryStack[I.backHistoryStack.length-1]&&!I.backHistoryStack[I.backHistoryStack.length-1].csn&&(I.backHistoryStack[I.backHistoryStack.length-1].csn=D||"");_.Gg({clientScreenNonce:D});_.Y_S();var p=_.fq(k.layer);z&&z!=="UNDEFINED_CSN"&&
p&&(_.V("web_mark_root_visible")||_.V("music_web_mark_root_visible"))&&_.mM(D,p);I.pendingScreenCreation.delete(k.layer||0);I.pendingScreenFn=void 0;var Q;(Q=I.recurringGrafts.get(k.layer))==null||Q.forEach(function(X,b){X?_.oV(I,b,X,k.layer):p&&_.oV(I,b,p,k.layer)});
gx5(I)},gx5=function(I){for(var C=0;C<I.afterNewScreenOneOffJobs.length;C++){var y=I.afterNewScreenOneOffJobs[C];
try{y()}catch(k){_.GB(k)}}for(C=I.afterNewScreenOneOffJobs.length=0;C<I.afterNewScreenRecurringJobs.length;C++){y=I.afterNewScreenRecurringJobs[C];try{y()}catch(k){_.GB(k)}}},Axe=function(I,C){if(C===void 0)for(var y=z$Y(),k=0;k<y.length;k++)y[k]!==void 0&&Axe(I,y[k]);
else I.cachedVisualElements.forEach(function(F,z){(z=I.cachedRootVisualElements.get(z))&&_.ceI(I.client,C,z,F)}),I.cachedVisualElements.clear(),I.cachedRootVisualElements.clear(),I.attachTimeout=void 0};var u_=function(I){I=I===void 0?{layer:0}:I;this.hasRun=!1;this.createScreenConfig=I;I={};this.whN=(I.response=!1,I.playerResponse=!1,I)};
_.R(u_,U2);u_.prototype.validate=function(I){return!(!I.data||!I.data.response&&!I.data.playerResponse)};
u_.prototype.handle=function(I){var C=_.e2(),y=this.createScreenConfig.layer;I.data.response&&I.data.response.trackingParams&&!this.whN.response&&(C.graftServerVe(I.data.response.trackingParams,void 0,y),this.whN.response=!0);I.data.playerResponse&&I.data.playerResponse.trackingParams&&!this.whN.playerResponse&&(C.graftServerVe(I.data.playerResponse.trackingParams,void 0,y),this.whN.playerResponse=!0)};var zk=function(){this.eO=_.vP();this.mB=[];this.bSZ=0};
zk.prototype.processChunk=function(I){if(I){for(var C=_.T(this.mB),y=C.next();!y.done;y=C.next())y=y.value,y.validate(I)&&(y.handle(I),y.hasRun=!0);_.Sr("np"+this.bSZ);this.bSZ++}};var bys,J7,ON,$CX=0,RxW=function(I,C,y,k,F,z){var c=ON;this.name=I;this.attributes=C;this.startTime=y;this.id=k;this.sessionId=F;this.traceId=z;this.parent=c};
RxW.prototype.attr=function(I,C){this.attributes[I]=C};
RxW.prototype.close=function(I){if(this!==ON)throw Error("wf");var C=ON;I&&(C.status=I);C.endTime=performance.now();I=_.T(J7.spanProcessors);for(var y=I.next();!y.done;y=I.next()){var k=void 0,F=void 0;(F=(k=y.value).onSpanEnd)==null||F.call(k,C)}ON=C==null?void 0:C.parent};
RxW.prototype[Symbol.dispose]=function(){this.close()};var $Os,dfu;_.FW=function(I,C,y,k,F,z,c){c=c===void 0?[]:c;this.buildCommandPayload=I;this.navigate=C;this.handleServiceRequest=y;this.sendAction=k;this.JSC$10376_screenManager=F;this.commandResolverMap=z;this.autoLogResolverAllowlist=c;this.pendingCommands=new Set;if(GvI("command")){var r=this.resolveCommand;this.resolveCommand=function(w,L){var D=YIt("command",{command:w});return SIs(D,r.bind(this,w,L),null)}}};
$Os=function(I,C,y){var k=rIt,F=imH,z=_.e2(),c=vx8;y=y===void 0?[]:y;_.FW.instance=new _.FW(I,C,k,F,z,c,y)};
dfu=function(I,C,y){if(!I.commandResolverMap)return!1;var k=vYW(C,I.commandResolverMap);return k?((I.autoLogResolverAllowlist.some(function(F){return!!_.l(C,F)})||(y==null?0:y.forceClickLogging))&&WBd(I,C,y),k instanceof Promise?k.then(function(F){F.resolve(C,y)}):k.resolve(C,y),!0):!1};
_.FW.prototype.resolveCommand=function(I,C){var y=this,k=xfP(I);if(dfu(this,I,C))return!0;if(k)return q_u(this,I,C);if(!this.buildCommandPayload)return KIt(I,"Unhandled command by buildCommandPayload"),!1;var F=this.buildCommandPayload(I,C);if(C==null?0:C.commandController)F.commandController=C.commandController;if(F.type===0){if(!this.navigate)return Ae9(I,"navigate"),!1;if(!mfP(F.command))return KIt(I,"Page requests need to specify a url"),!1;_.V("logging_avoid_blocking_during_navigation")&&_.mHt().transition("application_navigating");
I=this.navigate(F)||[];T4u(I).then(function(){y.pendingCommands.delete(F.command)});
return!0}if(F.type===1){if(!this.handleServiceRequest)return Ae9(I,"handleServiceRequest"),!1;(C==null?0:C.forceClickLogging)&&WBd(this,F.command,C);I=this.handleServiceRequest(F);T4u(I).then(function(){y.pendingCommands.delete(F.command)});
return!0}if(F.type===2){if(!this.sendAction)return Ae9(I,"sendAction"),!1;WBd(this,F.command,C);this.sendAction(F);return!0}return!1};
var WBd=function(I,C,y){if((y==null||!y.disableClickTracking)&&I.JSC$10376_screenManager)if(C.clickTrackingParams&&_.V("log_click_with_layer_from_element_in_command_handler")){var k;y=y==null?void 0:(k=y.form)==null?void 0:k.element;I.JSC$10376_screenManager.clickCommand(C,null,y&&y.getScreenLayer&&y.getScreenLayer())}else C.clickTrackingParams?I.JSC$10376_screenManager.clickCommand(C):!_.V("disable_clicked_visual_element_in_command_handler")&&(y==null?0:y.clickedVisualElement)&&_.kU(I.JSC$10376_screenManager,
y.clickedVisualElement)},xfP=function(I){var C=!!_.l(I,_.r9),y;
I=((y=_.l(I,_.w9))==null?void 0:y.signal)==="CLIENT_SIGNAL";return C||I},q_u=function(I,C,y){var k=_.l(C,_.r9);
if(k)var F=(k==null?void 0:k.commands)||[];else{var z;if(((z=_.l(C,_.w9))==null?void 0:z.signal)==="CLIENT_SIGNAL"){var c;F=((c=_.l(C,_.w9))==null?void 0:c.actions)||[]}}if(F){C=_.T(F);for(F=C.next();!F.done;F=C.next()){F=F.value;try{I.resolveCommand(F,y)}catch(r){r instanceof Error&&_.GB(r)}}return!0}KIt(C,"Could not handle the meta command");return!1},mfP=function(I){var C;
return!((C=_.l(I==null?void 0:I.commandMetadata,_.It))==null||!C.url)};var Tk=function(){U2.apply(this,arguments)};
_.R(Tk,U2);Tk.prototype.validate=function(I){var C,y;return!this.hasRun&&!!((C=I.data.response)==null?0:(y=C.onResponseReceivedEndpoints)==null?0:y.length)};
Tk.prototype.handle=function(I){var C=_.FW.instance;I=_.T(I.data.response.onResponseReceivedEndpoints);for(var y=I.next();!y.done;y=I.next())C.resolveCommand(y.value)};var ZNe,Bnu,Exc;
ZNe=function(){this.shortsPipActivation=this.watchWhileActivation=this.watchPipActivation=this.mediaSessionPipActivation=this.showMiniplayerCommandActivation=this.lockupActivation=this.playlistSuggestionsShelfActivation=this.playablesDestPageActivation=this.miniAppPageActivation=this.productDetailsPageActivation=this.playlistWatchPageActivation=this.userActivation=this.miniplayerButtonActivation=!1;this.navigationFinishPromise=_.er();this.navigatingAwayFromWatchDeletedVideo=!1;this.currentEndpoint=null;
this.isVideoPlaying=!1};
_.ck=function(){Bnu||(Bnu=new ZNe);return Bnu};
Exc=function(){var I=_.ck();I.miniplayerButtonActivation=!1;I.userActivation=!1;I.playlistWatchPageActivation=!1;I.productDetailsPageActivation=!1;I.miniAppPageActivation=!1;I.playablesDestPageActivation=!1;I.lockupActivation=!1;I.showMiniplayerCommandActivation=!1;I.playlistSuggestionsShelfActivation=!1;I.mediaSessionPipActivation=!1;I.watchPipActivation=!1;I.watchWhileActivation=!1;I.shortsPipActivation=!1};
_.hru=function(){var I=_.ck(),C=I.mediaSessionPipActivation,y=I.watchPipActivation,k=I.watchWhileActivation,F=I.playlistWatchPageActivation,z=I.lockupActivation,c=I.showMiniplayerCommandActivation,r=I.navigatingAwayFromWatchDeletedVideo,w=I.shortsPipActivation,L=I.playlistSuggestionsShelfActivation,D=I.productDetailsPageActivation,p=I.miniAppPageActivation,Q=I.playablesDestPageActivation;return!I.miniplayerButtonActivation&&!F&&!L&&!D&&!p&&!Q&&!z&&!c&&!C&&!y&&!k&&!w||r};var Sc9;_.eo=M1("FEwhat_to_watch","/",3854);_.KSt=M1("FEdownloads","/feed/downloads",42352);Sc9=M1("FEmusic_offline","browse/FEmusic_offline",42352);var Ue=function(I,C){C=C===void 0?[]:C;var y=y===void 0?[]:y;C=OIW.apply(null,[aHI.apply(null,_.Py(C))].concat(_.Py(y)));this.store=shs(I,void 0,C)};
Ue.prototype.getState=function(){return this.store.getState()};
Ue.prototype.dispatch=function(I){return this.store.dispatch(I)};
Ue.prototype.subscribe=function(I){return this.store.subscribe(I)};
Ue.prototype.replaceReducer=function(I){return this.store.replaceReducer(I)};
Ue.prototype[Symbol.observable]=function(){return this.store[Symbol.observable]()};
_.rf=function(I,C,y){var k=C(I.getState());return I.subscribe(function(){var F=C(I.getState());if(F!==k){var z=k;k=F;y(F,z)}})};var RXH;_.wJ=function(I,C,y){return _.yE({type:"REPLACE_ENTITY",payload:{entityPayload:y,entityType:I,key:C}})};
RXH=function(I){return _.yE({type:"REPLACE_ENTITIES",payload:I})};
_.bY=function(I,C,y,k){return _.yE({type:"UPDATE_ENTITY",payload:{entityPayload:y,entityType:I,key:C,mergeOption:k}})};var Jet=function(I){var C=this;I=I===void 0?[]:I;this.arrays=[];this.totalLength=this.arrayPos=this.arrayIdx=0;I.forEach(function(y){C.append(y)})};
_.u=Jet.prototype;_.u.getLength=function(){return this.totalLength};
_.u.append=function(I){var C=this.arrays.length===0?!1:(C=this.arrays[this.arrays.length-1])&&C.buffer===I.buffer&&C.byteOffset+C.length===I.byteOffset;C?(C=this.arrays[this.arrays.length-1],this.arrays[this.arrays.length-1]=new Uint8Array(C.buffer,C.byteOffset,C.length+I.length),this.arrayPos=this.arrayIdx=0):this.arrays.push(I);this.totalLength+=I.length};
_.u.split=function(I){for(var C=new Jet,y=new Jet,k=_.T(this.arrays),F=k.next();!F.done;F=k.next())F=F.value,I>=F.length?(C.append(F),I-=F.length):I?(C.append(new Uint8Array(F.buffer,F.byteOffset,I)),y.append(new Uint8Array(F.buffer,F.byteOffset+I,F.length-I)),I=0):y.append(F);return{headView:C,tailView:y}};
_.u.extract=function(I,C){return this.split(I).tailView.split(C).headView};
_.u.isFocused=function(I){return I>=this.arrayPos&&I<this.arrayPos+this.arrays[this.arrayIdx].length};
_.u.focus=function(I){if(!this.isFocused(I))for(I<this.arrayPos&&(this.arrayPos=this.arrayIdx=0);this.arrayPos+this.arrays[this.arrayIdx].length<=I&&this.arrayIdx<this.arrays.length;)this.arrayPos+=this.arrays[this.arrayIdx].length,this.arrayIdx+=1};
_.u.getDataView=function(I,C){I=I===void 0?0:I;C=C===void 0?-1:C;if(!this.totalLength||!C)return new DataView(new ArrayBuffer(0));C<0&&(C=this.totalLength-I);this.focus(I);if(!(I-this.arrayPos+C<=this.arrays[this.arrayIdx].length)){var y=this.arrayIdx,k=this.arrayPos;this.focus(I+C-1);k=new Uint8Array(this.arrayPos+this.arrays[this.arrayIdx].length-k);for(var F=0,z=y;z<=this.arrayIdx;z++)k.set(this.arrays[z],F),F+=this.arrays[z].length;this.arrays.splice(y,this.arrayIdx-y+1,k);this.arrayPos=this.arrayIdx=
0;this.focus(I)}y=this.arrays[this.arrayIdx];return new DataView(y.buffer,y.byteOffset+I-this.arrayPos,C)};
_.u.getUint8=function(I){this.focus(I);return this.arrays[this.arrayIdx][I-this.arrayPos]};(function(){var I=function(k){return new Uint8Array(k)},C=function(k){for(var F=new Uint8Array(k.length),z=0;z<k.length;z++)F[z]=k[z];
return F},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?I:C})();
var BrO=Array(1024),ZyY=window.TextDecoder?new TextDecoder:void 0,hxF=window.TextEncoder?new TextEncoder:void 0;var tEK=function(I){this.arrayView=I;this.pos=0;this.pendingTagAndType=-1},k9=function(I){var C=I.arrayView.getUint8(I.pos);
++I.pos;if(C<128)return C;for(var y=C&127,k=1;C>=128;)C=I.arrayView.getUint8(I.pos),++I.pos,k*=128,y+=(C&127)*k;return y},Oys=function(I,C){var y=I.pendingTagAndType;
for(I.pendingTagAndType=-1;I.pos+1<=I.arrayView.totalLength;){y<0&&(y=k9(I));var k=y>>3,F=y&7;if(k===C)return!0;if(k>C){I.pendingTagAndType=y;break}y=-1;switch(F){case 0:k9(I);break;case 1:I.pos+=8;break;case 2:k=k9(I);I.pos+=k;break;case 5:I.pos+=4}}return!1};var MEF=function(){this.pos=0;this.submessagePosStack=[];this.buf=HyI(4096);this.view=new DataView(this.buf.buffer,this.buf.byteOffset,this.buf.byteLength)},zL=function(I,C){C=I.pos+C;
if(!(I.buf.length>=C)){for(var y=I.buf.length*2;y<C;)y*=2;I.buf=HyI(y,I.buf.subarray(0,I.pos));I.view=new DataView(I.buf.buffer,I.buf.byteOffset,I.buf.byteLength)}},u6=function(I,C){if(C>268435455){zL(I,4);
for(var y=C&1073741823,k=0;k<4;k++)I.view.setUint8(I.pos,y&127|128),y>>=7,I.pos+=1;C=Math.floor(C/268435456)}for(zL(I,4);C>127;)I.view.setUint8(I.pos,C&127|128),C>>=7,I.pos+=1;I.view.setUint8(I.pos,C);I.pos+=1};for(var IQt={accountLinkStatusEntity:122,booleanEntity:307,buttonEntity:358,captionTrack:225,channelHandle:275,commerceAcquisitionClientPayloadEntity:276,commerceCartListEntity:236,contextNoteFeedEntityPayload:483,continuationTokenEntity:406,downloadQualityPickerEntity:202,downloadsPageRefreshTokenEntity:299,downloadsPageViewConfigurationEntity:264,downloadStatusEntity:141,dismissState:540,sfvAudioItemCurrentlyPlayingEntity:186,emojiFountainDataEntity:393,emojiCustomizationSetEntity:496,fakeChannel:2,
fakePlaylist:279,fakePlaylistEntryCollection:280,fakeVideo:182,fakeVideoDescription:278,featuredProductsEntity:392,flowStateEntity:252,iconBadgeEntity:229,interstitialInteractionStateEntity:443,likeButtonAnimationEntity:567,liveChatPollStateEntity:217,liveViewerLeaderboardChatEntryPointStateEntity:563,liveViewerLeaderboardPointsEntity:564,liveReactionsDataEntity:503,logoEntity:245,macroMarkerEntity:329,mainDownloadsLibraryEntity:158,mainDownloadsListEntity:164,mainPlaylistDownloadStateEntity:373,
mainPlaylistEntity:306,mainPlaylistVideoEntity:368,mainVideoDownloadStateEntity:262,mainVideoEntity:261,markersEngagementPanelSyncEntity:196,markersVisibilityOverrideEntity:312,musicAlbumReleaseDetail:18,musicAlbumReleaseDownloadMetadataEntity:259,musicAlbumRelease:17,musicAlbumReleaseUserDetail:19,musicArtistDetail:21,musicArtist:20,musicArtistUserDetail:22,musicDownloadsLibraryEntity:257,musicLibraryEdit:121,musicLibraryStatusEntity:318,musicPlaylist:24,musicPlaylistDownloadMetadataEntity:248,musicShare:100,
musicTrackDetail:29,musicTrackDownloadMetadataEntity:234,musicTrack:28,musicTrackUserDetail:30,offlineOrchestrationActionWrapperEntity:169,offlineVideoPolicy:130,offlineVideoStreams:198,offlineabilityEntity:246,orchestrationWebSamplingEntity:242,pageHeaderEntity:495,pdpStateEntity:524,pinnedProductEntity:273,playbackData:119,quantityIncrementerEntity:356,playerStateEntity:323,refresh:148,saveToPlaylistListEntity:231,settingEntity:297,stringEntity:382,suggestedFeedbackChipStateEntity:485,transfer:120,
trendingOfferEntity:469,videoDownloadContextEntity:461,videoOverviewAsyncDataEntity:545,videoPlaybackPositionEntity:76,votingEntity:561,ytMainChannelEntity:152,youchatPendingResponseEntity:553,ytMainDownloadedVideoEntity:155,ytMainVideoEntity:151},a9H={},Ufm=_.T(Object.entries(IQt)),HNm=Ufm.next();!HNm.done;HNm=Ufm.next()){var tHq=_.T(HNm.value),Jx0=tHq.next().value,ONe=tHq.next().value,aym=Jx0,MHm=ONe;MHm&&(a9H[MHm]=aym)};var snm=function(I,C){I=I===void 0?{}:I;switch(C.type){case "ENTITY_LOADED":return C.payload.reduce(function(k,F){var z,c=(z=F.options)==null?void 0:z.persistenceOption;if(c&&c!=="ENTITY_PERSISTENCE_OPTION_UNKNOWN"&&c!=="ENTITY_PERSISTENCE_OPTION_INMEMORY_AND_PERSIST")return k;if(!F.entityKey)return _.GB(Error("yf")),k;if(F.type==="ENTITY_MUTATION_TYPE_REPLACE"){if(!F.payload)return F=new _.ph("REPLACE entity mutation is missing a payload",{entityKey:F.entityKey}),_.GB(F),k;var r=(0,_.Le.getAnyKey)(F.payload);
return ypI(k,r,F.entityKey,F.payload[r])}if(F.type==="ENTITY_MUTATION_TYPE_DELETE"){a:{F=F.entityKey;try{var w=_.Fy(F).entityType;r=ypI(k,w,F);break a}catch(p){if(p instanceof Error){F=new _.ph("Failed to deserialize entity key",{entityKey:F,originalMessage:p.message});_.GB(F);r=k;break a}throw p;}r=void 0}return r}if(F.type==="ENTITY_MUTATION_TYPE_UPDATE"){if(!F.payload)return F=new _.ph("UPDATE entity mutation is missing a payload",{entityKey:F.entityKey}),_.GB(F),k;r=(0,_.Le.getAnyKey)(F.payload);
var L,D;return kJz(k,r,F.entityKey,F.payload[r],(L=F.fieldMask)==null?void 0:(D=L.mergeOptions)==null?void 0:D.repeatedFieldsMergeOption)}return k},I);
case "REPLACE_ENTITY":var y=C.payload;return ypI(I,y.entityType,y.key,y.entityPayload);case "REPLACE_ENTITIES":return Object.keys(C.payload).reduce(function(k,F){var z=C.payload[F];return Object.keys(z).reduce(function(c,r){return ypI(c,F,r,z[r])},k)},I);
case "UPDATE_ENTITY":return y=C.payload,kJz(I,y.entityType,y.key,y.entityPayload,y.mergeOption);default:return I}};var Fam;var IgY=!1,i_,wf,nu,Pk,Lu,CFm=function(I){_.LL.call(this);this.counter=[0,0,0,0];this.cipherBlock=new Uint8Array(16);this.blockOffset=16;if(!IgY){var C,y=new Uint8Array(256),k=new Uint8Array(256);var F=1;for(C=0;C<256;C++)y[F]=C,k[C]=F,F^=F<<1^(F>>7&&283);i_=new Uint8Array(256);wf=ed(256);nu=ed(256);Pk=ed(256);Lu=ed(256);for(var z=0;z<256;z++){F=z?k[255^y[z]]:0;F^=F<<1^F<<2^F<<3^F<<4;F=F&255^F>>>8^99;i_[z]=F;C=F<<1^(F>>7&&283);var c=C^F;wf[z]=C<<24|F<<16|F<<8|c;nu[z]=c<<24|wf[z]>>>8;Pk[z]=F<<24|nu[z]>>>
8;Lu[z]=F<<24|Pk[z]>>>8}IgY=!0}F=ed(44);for(y=0;y<4;y++)F[y]=I[4*y]<<24|I[4*y+1]<<16|I[4*y+2]<<8|I[4*y+3];for(k=1;y<44;y++)I=F[y-1],y%4||(I=(i_[I>>16&255]^k)<<24|i_[I>>8&255]<<16|i_[I&255]<<8|i_[I>>>24],k=k<<1^(k>>7&&283)),F[y]=F[y-4]^I;this.key=F};
_.R(CFm,_.LL);
CFm.prototype.encrypt=function(I){var C=I.length;I=new Uint8Array(I.buffer.slice(I.byteOffset,I.byteOffset+C));for(var y=this.cipherBlock,k=0;k<C&&this.blockOffset<16;)I[k++]^=y[this.blockOffset++];for(var F=C-(C-k)%16;k<F;)s5e(this),I[k++]^=y[0],I[k++]^=y[1],I[k++]^=y[2],I[k++]^=y[3],I[k++]^=y[4],I[k++]^=y[5],I[k++]^=y[6],I[k++]^=y[7],I[k++]^=y[8],I[k++]^=y[9],I[k++]^=y[10],I[k++]^=y[11],I[k++]^=y[12],I[k++]^=y[13],I[k++]^=y[14],I[k++]^=y[15];if(k<C)for(s5e(this),this.blockOffset=0;k<C;)I[k++]^=
y[this.blockOffset++];return I};
var olw=function(I,C){for(var y=0;y<4;y++)I.counter[y]=C[y*4]<<24|C[y*4+1]<<16|C[y*4+2]<<8|C[y*4+3];I.blockOffset=16},s5e=function(I){for(var C=I.key,y=I.counter[0]^C[0],k=I.counter[1]^C[1],F=I.counter[2]^C[2],z=I.counter[3]^C[3],c=3;c>=0&&!(I.counter[c]=-~I.counter[c]);c--);
for(var r,w,L=4;L<40;)c=wf[y>>>24]^nu[k>>16&255]^Pk[F>>8&255]^Lu[z&255]^C[L++],r=wf[k>>>24]^nu[F>>16&255]^Pk[z>>8&255]^Lu[y&255]^C[L++],w=wf[F>>>24]^nu[z>>16&255]^Pk[y>>8&255]^Lu[k&255]^C[L++],z=wf[z>>>24]^nu[y>>16&255]^Pk[k>>8&255]^Lu[F&255]^C[L++],y=c,k=r,F=w;I=I.cipherBlock;c=C[40];I[0]=i_[y>>>24]^c>>>24;I[1]=i_[k>>16&255]^c>>16&255;I[2]=i_[F>>8&255]^c>>8&255;I[3]=i_[z&255]^c&255;c=C[41];I[4]=i_[k>>>24]^c>>>24;I[5]=i_[F>>16&255]^c>>16&255;I[6]=i_[z>>8&255]^c>>8&255;I[7]=i_[y&255]^c&255;c=C[42];
I[8]=i_[F>>>24]^c>>>24;I[9]=i_[z>>16&255]^c>>16&255;I[10]=i_[y>>8&255]^c>>8&255;I[11]=i_[k&255]^c&255;c=C[43];I[12]=i_[z>>>24]^c>>>24;I[13]=i_[y>>16&255]^c>>16&255;I[14]=i_[k>>8&255]^c>>8&255;I[15]=i_[F&255]^c&255};var y4u=!1;(function(){var I=function(k){return new Uint8Array(k)},C=function(k){for(var F=new Uint8Array(k.length),z=0;z<k.length;z++)F[z]=k[z];
return F},y=new Uint8Array([1]);
return y.length===1&&y[0]===1?I:C})();
var D4;var khP=function(I){this.JSC$10443_aesKey=I};
khP.prototype.encrypt=function(I,C){var y=this,k,F;return _.e(function(z){if(z.nextAddress==1){a:{if(!y4u&&!E8){if(D4){var c=D4;break a}D4=(c=window.crypto)==null?void 0:c.subtle;var r,w,L;if(((r=D4)==null?0:r.importKey)&&((w=D4)==null?0:w.sign)&&((L=D4)==null?0:L.encrypt)){c=D4;break a}D4=void 0}c=void 0}k=c;if(!k)return z.return(Fsq(y,I,C));_.aM(z,3);return _.n(z,upu(y,I,C,k),5)}if(z.nextAddress!=3)return z.return(z.yieldResult);F=_.sj(z);_.SN(F);y4u=!0;return z.return(Fsq(y,I,C))})};
var upu=function(I,C,y,k){var F,z;return _.e(function(c){switch(c.nextAddress){case 1:if(I.cryptoKey){c.jumpTo(2);break}return _.n(c,k.importKey("raw",I.JSC$10443_aesKey,{name:"AES-CTR"},!1,["encrypt"]),3);case 3:I.cryptoKey=c.yieldResult;case 2:return F={name:"AES-CTR",counter:y,length:128},_.n(c,k.encrypt(F,I.cryptoKey,C),4);case 4:return z=c.yieldResult,c.return(new Uint8Array(z))}})},Fsq=function(I,C,y){I.encryptorPolyfill||(I.encryptorPolyfill=new CFm(I.JSC$10443_aesKey));
olw(I.encryptorPolyfill,y);return I.encryptorPolyfill.encrypt(C)},zAu=function(I){this.JSC$10447_aesKey=I};
zAu.prototype.encrypt=function(I,C){this.encryptor||(this.encryptor=new CFm(this.JSC$10447_aesKey));olw(this.encryptor,C);return this.encryptor.encrypt(I)};var Tp0={},ToX=tY("yt-idb-pref-storage",{objectStores:(Tp0.prefs={addedAtVersion:1},Tp0),shared:!1,upgrade:function(I,C){C(1)&&vF(gI(I,"prefs",{keyPath:"key"}),"byExpiration","expirationTimestampMs")},
version:1});_.pu=function(I){this.token=I};
_.pu.getInstance=function(){return _.e(function(I){return I.return(new Promise(function(C){_.HN().then(function(y){y?(_.pu.instance||(_.pu.instance=new _.pu(y)),C(_.pu.instance)):C(void 0)})}))})};
_.pu.prototype.get=function(I){var C=this,y,k,F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,cp9(C.token),2);if(z.nextAddress!=3)return y=z.yieldResult,_.n(z,y.get("prefs",I),3);k=z.yieldResult;if(!k)return z.return();F=(0,_.JY)();return k.expirationTimestampMs<=F?z.return():z.return(k.value)})};
_.pu.prototype.set=function(I,C,y){y=y===void 0?31536E3:y;var k=this,F,z,c;return _.e(function(r){if(r.nextAddress==1)return F=(0,_.JY)(),z={key:I,value:C,expirationTimestampMs:F+y*1E3},_.n(r,cp9(k.token),2);c=r.yieldResult;return _.n(r,c.put("prefs",z),0)})};
_.pu.prototype.remove=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,cp9(C.token),2);y=k.yieldResult;return _.n(k,y.delete("prefs",I),0)})};var Q4={},c4e=(Q4.INVALID_ENCODER_VERSION="Invalid encoder version",Q4.KEY_CREATION_FAILED="Failed to create encoder key",Q4.UNKNOWN_DECODE_ERROR="Failed to decode PES data",Q4.UNKNOWN_ENCODE_ERROR="Failed to encode PES data",Q4.WRONG_DATA_TYPE="Encoder cannot process the data type",Q4),ri=function(I,C){C=C===void 0?{}:C;_.ph.call(this,c4e[I],Object.assign({},{name:"PESEncoderError",type:I},C));this.type=I;this.level="WARNING";Object.setPrototypeOf(this,ri.prototype)};
_.R(ri,_.ph);var eAm=function(){},r4u=function(I,C,y){try{return I.encodeImpl(C,y)}catch(k){wCX(k,rp9)}},iDP=function(I,C,y){var k;
return _.e(function(F){if(F.nextAddress==1)return _.aM(F,2),_.n(F,I.decodeAsyncImpl(C,y),4);if(F.nextAddress!=2)return F.return(F.yieldResult);k=_.sj(F);wCX(k,i6O);_.oI(F)})};
eAm.prototype.decodeAsyncImpl=function(I,C){return Promise.resolve(this.decodeImpl(I,C))};var NX=function(I,C){this.aesEncryptor=I;this.aesEncryptorAsync=C};
_.R(NX,eAm);NX.prototype.encodeImpl=function(I,C){C=n1s(C);I=(new TextEncoder).encode(JSON.stringify(I));return this.aesEncryptor.encrypt(I,C)};
NX.prototype.decodeImpl=function(I,C){if(!(I instanceof Uint8Array))throw eXs(1);var y=new TextDecoder;C=n1s(C);I=this.aesEncryptor.encrypt(I,C);return JSON.parse(y.decode(I))};
NX.prototype.decodeAsyncImpl=function(I,C){var y=this,k,F,z;return _.e(function(c){if(c.nextAddress==1){if(!(I instanceof Uint8Array))throw eXs(1);k=new TextDecoder;F=n1s(C);return _.n(c,y.aesEncryptorAsync.encrypt(I,F),2)}z=c.yieldResult;return c.return(JSON.parse(k.decode(z)))})};var PbI={accountLinkStatusEntity:aIm,booleanEntity:bWm,buttonEntity:Xk0,captionTrack:lQq,channelHandle:ngq,commerceAcquisitionClientPayloadEntity:JJY,commerceCartListEntity:OuS,contextNoteFeedEntityPayload:VZc,continuationTokenEntity:zxP,downloadQualityPickerEntity:ObY,downloadsPageRefreshTokenEntity:MGP,downloadsPageViewConfigurationEntity:LIw,downloadStatusEntity:aAw,dismissState:rJ0,sfvAudioItemCurrentlyPlayingEntity:orS,emojiFountainDataEntity:VoP,emojiCustomizationSetEntity:Nfc,fakeChannel:fI5,
fakePlaylist:Svm,fakePlaylistEntryCollection:Kud,fakeVideo:gjY,fakeVideoDescription:vjw,featuredProductsEntity:gYm,flowStateEntity:HW5,iconBadgeEntity:a4d,interstitialInteractionStateEntity:PLS,likeButtonAnimationEntity:DCq,liveChatPollStateEntity:lA5,liveViewerLeaderboardChatEntryPointStateEntity:d78,liveViewerLeaderboardPointsEntity:x75,liveReactionsDataEntity:jVY,logoEntity:ibe,macroMarkerEntity:pKS,mainDownloadsLibraryEntity:I9u,mainDownloadsListEntity:Cpb,mainPlaylistDownloadStateEntity:oYb,
mainPlaylistEntity:Trw,mainPlaylistVideoEntity:ce0,mainVideoDownloadStateEntity:yec,mainVideoEntity:wKd,markersEngagementPanelSyncEntity:Qrq,markersVisibilityOverrideEntity:Nrq,musicAlbumReleaseDetail:UC5,musicAlbumReleaseDownloadMetadataEntity:mCq,musicAlbumRelease:hxw,musicAlbumReleaseUserDetail:Hye,musicArtistDetail:JeY,musicArtist:tE8,musicArtistUserDetail:Oym,musicDownloadsLibraryEntity:ZyP,musicLibraryEdit:a9S,musicLibraryStatusEntity:MEw,musicPlaylist:IQY,musicPlaylistDownloadMetadataEntity:Brq,
musicShare:snw,musicTrackDetail:yp0,musicTrackDownloadMetadataEntity:EYY,musicTrack:o1d,musicTrackUserDetail:kJq,offlineOrchestrationActionWrapperEntity:XCP,offlineVideoPolicy:$7q,offlineVideoStreams:RXS,offlineabilityEntity:kvb,orchestrationWebSamplingEntity:FIY,pageHeaderEntity:nUw,pdpStateEntity:Mob,pinnedProductEntity:vYd,playbackData:b6m,playerStateEntity:VEu,quantityIncrementerEntity:ILq,refresh:YVP,saveToPlaylistListEntity:ls5,settingEntity:tVb,stringEntity:Yv5,suggestedFeedbackChipStateEntity:jru,
transfer:GJq,trendingOfferEntity:WIb,videoDownloadContextEntity:fQq,videoOverviewAsyncDataEntity:lLq,videoPlaybackPositionEntity:bud,votingEntity:Lyc,ytMainChannelEntity:nYw,youchatPendingResponseEntity:l9q,ytMainDownloadedVideoEntity:uZ0,ytMainVideoEntity:PpY};var wrP,PFq,Lx,lQO,XCY,pre,Npd,Q5S,DVq;wrP=function(I,C){this.JSC$10466_wrapped=I;this.JSC$10466_encoderRegistry=C;this.changedKeys={}};
PFq=function(I,C){a:{I=nlY(I.JSC$10466_encoderRegistry,C.version);try{var y=I.decodeImpl(C.data,C.key);break a}catch(k){wCX(k,i6O)}y=void 0}return y};
_.Lsq=function(I,C,y){return I.JSC$10466_wrapped.objectStore("EntityStore").get(C).then(function(k){if(k){if(y&&k.entityType!==y)throw Error("zf");return PFq(I,k)}})};
Lx=function(I,C,y){return y?(y=y.map(function(k){return _.Lsq(I,k,C)}),AY.all(y)):I.JSC$10466_wrapped.objectStore("EntityStore").index("entityType").getAll(IDBKeyRange.only(C)).then(function(k){return k.map(function(F){return PFq(I,F)})})};
_.jnH=function(I,C,y){var k=Cb9(C),F=nlY(I.JSC$10466_encoderRegistry,1),z=Object.assign({},C);return I.JSC$10466_wrapped.objectStore("EntityStore").get(k).then(function(c){if(c){if(c.entityType!==y)throw Error("zf");z.entityMetadata||(c=PFq(I,c),z.entityMetadata=c.entityMetadata)}}).then(function(){var c={key:k,
entityType:y,data:r4u(F,z,k),version:1};return AY.all([I.JSC$10466_wrapped.objectStore("EntityStore").put(c),DVq(I,z,y)])}).then(function(){pre(I,k,y);
return k})};
lQO=function(I,C){var y=_.Fy(C).entityType;return AY.all([I.JSC$10466_wrapped.objectStore("EntityStore").delete(C),Q5S(I,C)]).then(function(){pre(I,C,y)})};
XCY=function(I,C,y,k){var F=nlY(I.JSC$10466_encoderRegistry,1);return _.Lsq(I,C,k).then(function(z){if(z){z=mCz(z,y);var c={key:C,entityType:k,data:r4u(F,z,C),version:1};return AY.all([I.JSC$10466_wrapped.objectStore("EntityStore").put(c),DVq(I,z,k)])}}).then(function(){pre(I,C,k);
return C})};
pre=function(I,C,y){var k=I.changedKeys[y];k||(k=new Set,I.changedKeys[y]=k);k.add(C)};
Npd=function(I,C,y){var k=Cb9(C);y=LaK(y);if(!y)return AY.resolve([]);y=new y(C);I=I.JSC$10466_wrapped.objectStore("EntityAssociationStore");C=[];y=_.T(y.getAssociations());for(var F=y.next();!F.done;F=y.next())C.push(I.put({parentEntityKey:k,childEntityKey:F.value}));return AY.all(C).then(function(z){return z.map(function(c){return c[1]})})};
Q5S=function(I,C){return I.JSC$10466_wrapped.objectStore("EntityAssociationStore").index("byParentEntityKey").delete(IDBKeyRange.only(C))};
DVq=function(I,C,y){var k=Cb9(C);return Q5S(I,k).then(function(){return Npd(I,C,y)})};var VJq=function(){};
_.R(VJq,eAm);VJq.prototype.encodeImpl=function(I){return I};
VJq.prototype.decodeImpl=function(I){if(I instanceof Uint8Array)throw eXs(0);return I};var QnO=function(){this.cacheMap={};this.cacheMap[0]=new VJq;if(!_.V("aes_pes_encoder_killswitch")){var I=this.cacheMap;try{var C=_.Lh();var y=n1s(C);var k=new NX(new zAu(y),new khP(y))}catch(F){throw I=F instanceof Error?new ri("KEY_CREATION_FAILED",{originalMessage:F.message}):new ri("KEY_CREATION_FAILED"),_.GB(I),I;}I[1]=k}},nlY=function(I,C){C=C===void 0?0:C;
I=I.cacheMap[C];if(!I)throw C=new ri("INVALID_ENCODER_VERSION",{encoderVersion:C}),_.GB(C),C;return I};var wi=function(I,C){_.LL.call(this);this.token=I;this.JSC$10480_encoderRegistry=C;this.observers=[];I=new _.sF.BroadcastChannel("PERSISTENT_ENTITY_STORE_SYNC:"+_.Lh());I.onmessage=this.handleMessage.bind(this);this.channel=I};
_.R(wi,_.LL);_.Pg=function(I,C,y){var k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return _.n(r,zXO(I.token),2);if(r.nextAddress!=3)return k=r.yieldResult,_.n(r,_.mZ(k,["EntityStore","EntityAssociationStore"],C,function(w){F=new wrP(w,I.JSC$10480_encoderRegistry);return y(F)}),3);
z=r.yieldResult;F&&(c=F.changedKeys,Object.keys(c).length>0&&(I.channel.postMessage(c),j5q(I,c)));return r.return(z)})};
wi.prototype.observe=function(I){var C=this;this.observers.push(I);return function(){var y=C.observers.indexOf(I);y>=0&&C.observers.splice(y,1)}};
var eRs=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,_.Pg(I,{mode:"readonly",enableRetries:!0},function(k){return k.JSC$10466_wrapped.objectStore("EntityStore").getAll()}),2);
C=y.yieldResult;return y.return(Promise.all(C.filter(function(k){return!!k}).map(function(k){var F,z;
return _.e(function(c){if(c.nextAddress==1){F=k.key;z=k.entityType;var r=iDP(nlY(I.JSC$10480_encoderRegistry,k.version),k.data,k.key);return _.n(c,r,2)}return c.return({key:F,entityType:z,data:c.yieldResult})})})))})};
wi.prototype.handleMessage=function(I){j5q(this,I.data)};
var j5q=function(I,C){I=_.T(I.observers);for(var y=I.next();!y.done;y=I.next())y=y.value,y(C)};
wi.prototype.disposeInternal=function(){this.channel.close()};
var D7z;var V4,Xrw,Mcm,E1W;V4={};_.lg0=(V4.mainVideoEntity="mainVideoEntityActionMetadata",V4.mainPlaylistEntity="mainPlaylistEntityActionMetadata",V4.musicTrack="musicTrackEntityActionMetadata",V4.musicPlaylist="musicPlaylistEntityActionMetadata",V4);Xrw=new _.Jj("DOWNLOADS_ENTITY_TYPE_MAP");Mcm=_.TL("","downloadsPageViewConfigurationEntity");E1W=_.TL("DOWNLOADS_LIST_ENTITY_ID_MANUAL_DOWNLOADS","mainDownloadsListEntity");_.s$z=_.TL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity");
_.TL("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","refresh");_.TL("SMART_DOWNLOADS_ENABLED","settingEntity");_.TL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");var GJz=["TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_TRANSFERRING"];var WaF=["TRANSFER_STATE_COMPLETE","TRANSFER_STATE_FAILED","TRANSFER_STATE_TRANSFER_IN_QUEUE","TRANSFER_STATE_PAUSED_BY_USER","TRANSFER_STATE_TRANSFERRING"];var ZVX={ALL_DOWNLOADS:"PPAD",DOWNLOADS_PAGE:"PPDP",OFFLINE_PLAYLIST:"PPOM",RECOMMENDED_VIDEOS:"PPRC",SAVED_PODCAST_EPISODES:"PPSE",SAVED_VIDEOS:"PPSV"};var jo,q2m,XO0,cOF;jo=window;_.Wg=jo.YT_I18N_FORMATTING_GOOG_LOCALE||"en-US";_.aNs=jo.YT_I18N_FORMATTING_PLURAL_RULES_SELECT||_.Bg;q2m=jo.YT_I18N_FORMATTING_DATE_TIME_SYMBOLS||Vm;XO0=jo.YT_I18N_FORMATTING_RELATIVE_DATE_TIME_SYMBOLS||lBS;_.$Vb=jo.YT_I18N_FORMATTING_DURATION_TIME_SYMBOLS||_.mcS;cOF=jo.YT_I18N_FORMATTING_NUMBER_FORMAT_SYMBOLS||Ek5;mj({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 C_t=mDO(function(){return{dateFormat:1,timeFormat:7,joinerStyle:1,capitalize:function(I){return I}}}),pUW=mDO(function(){return{dateFormat:3,
timeFormat:7,joinerStyle:3,capitalize:function(I){return I}}}),hSt=new Map;var oUW=[{unitDuration:6048E5,unit:3,threshold:2},{unitDuration:864E5,unit:4},{unitDuration:36E5,unit:5},{unitDuration:6E4,unit:6},{unitDuration:1E3,unit:7}],OZW;var RAP=function(I){return _.yE({type:"SET_EPHEMERAL_ACTION",payload:I})};var bDw={ephemeralAction:null};var YQd={animatedThumbnailEnabled:!1,inlinePreviewEnabled:!1,currentPageType:"",currentPageSubType:""};var XkI={sharedUi:function(I,C){I=I===void 0?YQd:I;switch(C.type){case "SET_SHARED_ANIMATED_THUMBNAIL_ENABLED":return Object.assign({},I,{animatedThumbnailEnabled:C.payload});case "SET_SHARED_INLINE_PREVIEW_ENABLED":return Object.assign({},I,{inlinePreviewEnabled:C.payload});case "SET_SHARED_CURRENT_PAGE_TYPE":return Object.assign({},I,{currentPageType:C.payload});case "SET_SHARED_CURRENT_PAGE_SUB_TYPE":return Object.assign({},I,{currentPageSubType:C.payload});default:return I}},
a11y:iG({ephemeralAction:function(I,C){I=I===void 0?bDw.ephemeralAction:I;switch(C.type){case "SET_EPHEMERAL_ACTION":return C.payload;default:return I}}})};var DXz=iG({isLeaderTab:function(I,C){I=I===void 0?!0:I;switch(C.type){case "SET_IS_LEADER_TAB":var y,k;return(k=C==null?void 0:(y=C.payload)==null?void 0:y.isLeaderTab)!=null?k:I;default:return I}}});var Ghq=function(I){return _.yE({type:"SET_IS_SHORTS_PIP_ACTIVE",payload:{isShortsPipActive:I}})};var l4W=iG({isDesktopSmallWidth:function(I,C){switch(C.type){case "SET_IS_DESKTOP_SMALL_WIDTH":return C.payload.isDesktopSmallWidth;default:return I===void 0?!1:I}},
isShortsActive:function(I,C){switch(C.type){case "SET_IS_SHORTS_ACTIVE":return C.payload.isShortsActive;default:return I===void 0?!1:I}},
isWatchWhileMode:function(I,C){switch(C.type){case "SET_IS_WATCH_WHILE_MODE":return C.payload.isWatchWhileMode;default:return I===void 0?!1:I}},
playerState:function(I,C){switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return I===void 0?-1:I}},
isFullscreen:function(I,C){switch(C.type){case "SET_IS_FULLSCREEN":return C.payload.isFullscreen;default:return I===void 0?!1:I}},
isSmallScreenSqueezeback:function(I,C){switch(C.type){case "SET_IS_SMALL_SCREEN_SQUEEZEBACK":return C.payload.isSmallScreenSqueezeback;default:return I===void 0?!1:I}},
isShortsPipActive:function(I,C){switch(C.type){case "SET_IS_SHORTS_PIP_ACTIVE":return C.payload.isShortsPipActive;default:return I===void 0?!1:I}},
isPlaybackStarted:function(I,C){switch(C.type){case "SET_IS_PLAYBACK_STARTED":return C.payload.isPlaybackStarted;default:return I===void 0?!1:I}}});var Tfm={playlistId:"",inviteLinkURL:""};var fgm={};var LyX=iG({continuationCommand:function(I,C){I=I===void 0?fgm:I;switch(C.type){case "SET_CONTINUATION_COMMAND":return C.payload.continuationCommand;default:return I}}});var Rfm=function(){return function(I){return function(C){var y=I(C);_.Fe(document.documentElement,"yt-forward-redux-action-to-live-chat-iframe",[C],!0);return y}}};var SQb,m6F;SQb=new _.ug;_.OZ=new _.Jj("WATCH_PLAYER_PROMISE_TOKEN");_.Ks0=new _.ug;_.A48=new _.Jj("SHORTS_PLAYER_PROMISE_TOKEN");m6F=new _.Jj("");var buW=function(){return function(I){return function(C){C.type==="ENTITY_LOADED"&&_.N().resolve(_.OZ).then(function(y){var k;(k=y.dispatchReduxAction)==null||k.call(y,C)});
return I(C)}}};var efX={currentFormId:"",commandsMap:{}};var glq={};var pkO=iG({additionalContext:function(I,C){switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "ADDITIONAL_CONTEXT_UPDATED":var y;return(y=C.payload)!=null?y:"";default:return I===void 0?"":I}},
impersonatedChannelUrl:function(I,C){switch(C.type){case "CHANNEL_REPORT_RESET":return"";case "IMPERSONATED_CHANNEL_URL_UPDATED":var y;return(y=C.payload)!=null?y:"";default:return I===void 0?"":I}},
selectedVideoIds:function(I,C){I=I===void 0?glq:I;switch(C.type){case "CHANNEL_REPORT_RESET":return{};case "VIDEO_SELECTED":var y={};return Object.assign({},I,(y[C.payload]=!0,y));case "VIDEO_UNSELECTED":return C=C.payload,I=Object.assign({},I),delete I[C],I;default:return I}}});var QVO=iG({parentClickTrackingParams:function(I,C){switch(C.type){case "SET_PARENT_CLICK_TRACKING_PARAMS":return C.payload.parentClickTrackingParams;case "CLEAR_PARENT_CLICK_TRACKING_PARAMS":return"";default:return I===void 0?"":I}}});var vlS=function(I){return _.yE({type:"TALK_TO_RECS_UPDATE_SELECTION",payload:I})};var WsP={};var NfX=iG({stepStates:function(I,C){I=I===void 0?WsP:I;switch(C.type){case "TALK_TO_RECS_RESET_STEP_STATES":return{};case "TALK_TO_RECS_UPDATE_SELECTION":var y=I,k=C.payload,F,z,c;I={};C={selectionStates:Object.assign({},(c=(F=y[k.stepId])==null?void 0:F.selectionStates)!=null?c:{},(I[k.token]={isSelected:k.isSelected},I)),userQuery:(z=y[k.stepId])==null?void 0:z.userQuery};F={};return Object.assign({},y,(F[k.stepId]=C,F));case "TALK_TO_RECS_UPDATE_USER_QUERY":return F=I,z=C.payload,c={selectionStates:Object.assign({},
(k=(y=F[z.stepId])==null?void 0:y.selectionStates)!=null?k:{}),userQuery:{userQuery:z.userQuery,token:z.userQueryToken}},y={},Object.assign({},F,(y[z.stepId]=c,y));default:return I}}});var dVP,xVc;dVP=function(I){return _.yE({type:"SET_SLIMLINE_SURVEY_RATING_SELECTED_INDEX",payload:I})};
xVc=function(I){return _.yE({type:"SET_MINIPLAYER_PLAYBACK_STATE",payload:I})};
_.bz=function(I){return _.yE({type:"SET_CURRENT_PAGE_TYPE",payload:I})};
_.qQd=function(I){return _.yE({type:"SET_INLINE_PREVIEW_IS_ENABLED",payload:I})};var iuI={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"};_.mVP=function(I){return _.yE({type:"SET_PLAYER_STATE",payload:{playerState:I}})};var ZDb=[],Bp5={width:0,height:0};var VoY=iG({isTheaterMode:function(I,C){I=I===void 0?_.g5("START_IN_THEATER_MODE"):I;switch(C.type){case "SET_IS_THEATER_MODE":return C.payload.isTheaterMode;default:return I}},
isWatchActive:function(I,C){switch(C.type){case "SET_IS_WATCH_ACTIVE":return C.payload.isWatchActive;default:return I===void 0?!1:I}},
isWatchFullscreen:function(I,C){switch(C.type){case "SET_IS_WATCH_FULLSCREEN":return C.payload.isWatchFullscreen;default:return I===void 0?!1:I}},
isWatchNarrowWidth:function(I,C){switch(C.type){case "SET_IS_WATCH_NARROW_WIDTH":return C.payload.isWatchNarrowWidth;default:return I===void 0?!1:I}},
isWatchRetroMode:function(I,C){switch(C.type){case "SET_IS_WATCH_RETRO_MODE":return C.payload.isWatchRetroMode;default:return I===void 0?!1:I}},
isLiveChatCollapsed:function(I,C){switch(C.type){case "SET_IS_LIVE_CHAT_COLLAPSED":return C.payload.isLiveChatCollapsed;default:return I===void 0?!1:I}},
openEngagementPanels:function(I,C){I=I===void 0?ZDb:I;var y=[].concat(_.Py(I));switch(C.type){case "ADD_OPEN_ENGAGEMENT_PANEL":return y.push(C.payload.panelToAdd),y;case "REMOVE_OPEN_ENGAGEMENT_PANEL":return y.splice(y.indexOf(C.payload.panelToRemove),1),y;default:return I}},
playerState:function(I,C){switch(C.type){case "SET_PLAYER_STATE":return C.payload.playerState;default:return I===void 0?-1:I}},
watchScrollTop:function(I,C){switch(C.type){case "SET_WATCH_SCROLL_TOP":return C.payload.watchScrollTop;default:return I===void 0?0:I}},
watchWindowSize:function(I,C){I=I===void 0?Bp5:I;switch(C.type){case "SET_WATCH_WINDOW_SIZE":return C.payload.watchWindowSize;default:return I}}});var Elc={feedbackTokens:[]};var jVt=iG({surveyFeedbackData:function(I,C){I=I===void 0?Elc:I;switch(C.type){case "YPC_UPDATE_SURVEY_FEEDBACK_DATA":return C.payload;case "YPC_UPDATE_PARTIAL_SURVEY_FEEDBACK_DATA":return Object.assign({},I,C.payload);default:return I}}});var nUF={};var Gkz=void 0;_.V("web_enable_redux_store_on_demand")||(Gkz=Y7z());var hAq=function(I,C,y){var k=this;this.listId=I;this.JSC$10613_updateCallback=C;this.isOfflineVideoCallback=y;_.Hg().subscribe(function(){k.handleUpdate()})};
hAq.prototype.getPlaylistData=function(){var I=_.Hg().getState().entities;if(this.listId&&this.listId!=="PPSV"){var C=CuF(I,this.listId,!0),y=_.TL(this.listId,"mainPlaylistEntity"),k,F;I=I==null?void 0:(k=I.mainPlaylistEntity)==null?void 0:(F=k[y])==null?void 0:F.title;return f4z(C,I,this.listId)}C=_.d7K(F_I(I));I=_.d7K(_.Xy(I));return f4z(C.concat(I))};
hAq.prototype.getPlaylistId=function(){return this.listId};
hAq.prototype.handleUpdate=function(){this.isOfflineVideoCallback()&&this.JSC$10613_updateCallback(this.listId,this.getPlaylistData(),{})};var l_=function(I,C,y,k){k=k===void 0?[]:k;this.JSC$10616_playlistNetworkManager=I;this.listId=C;this.JSC$10616_updateCallback=y;this.videoIds=k;this.pendingUpdates=[];this.currentIndex=0};
l_.prototype.JSC$10616_setCurrentIndex=function(I){this.currentIndex=I};
l_.prototype.setListId=function(I){this.listId=I};
var UVw=function(I,C){I.currentCreateRequest&&I.currentCreateRequest.cancel(C);I.currentUpdateRequest&&I.currentUpdateRequest.cancel(C);I.currentRefreshRequest&&I.currentRefreshRequest.cancel(C)};
l_.prototype.delete=function(){UVw(this,"PROXY DELETED")};
l_.prototype.addVideos=function(I,C,y){var k=this;y!==void 0?this.videoIds.splice.apply(this.videoIds,[y,0].concat(_.Py(I))):this.videoIds.push.apply(this.videoIds,_.Py(I));this.listId||this.currentCreateRequest?(I.forEach(function(F,z){F={addedVideoId:F,action:"ACTION_ADD_VIDEO"};y&&(F.addedVideoPosition=y+z);k.pendingUpdates.push(F)}),XV(this)):HDq(this,C.onCreateListCommand)};
var tJP=function(I,C,y,k,F){jmO(I.videoIds,C,y);C>I.currentIndex&&y<=I.currentIndex?I.JSC$10616_setCurrentIndex(I.currentIndex+1):C===I.currentIndex?I.JSC$10616_setCurrentIndex(y):C<I.currentIndex&&y>=I.currentIndex&&I.JSC$10616_setCurrentIndex(I.currentIndex-1);I.pendingUpdates.push({action:"ACTION_MOVE_VIDEO_AFTER",setVideoId:k,movedSetVideoIdPredecessor:F});XV(I)},HDq=function(I,C){UVw(I,"OBSOLETE");
I.currentCreateRequest=J4S(I.JSC$10616_playlistNetworkManager,C,I.videoIds);_.N2(I.currentCreateRequest,function(){I.currentCreateRequest=void 0}).then(function(y){I.setListId(y.playlistId);
I.pendingUpdates.length>0?XV(I):OD8(I)})},XV=function(I){if(I.pendingUpdates.length!==0&&(I.currentRefreshRequest&&I.currentRefreshRequest.cancel("OBSOLETE"),!I.currentUpdateRequest&&!I.currentCreateRequest)){var C=I.pendingUpdates.splice(0,I.pendingUpdates.length);
I.currentUpdateRequest=I.JSC$10616_playlistNetworkManager.updatePlaylist(I.listId,C);_.N2(I.currentUpdateRequest,function(){I.currentUpdateRequest=void 0}).then(function(){I.pendingUpdates.length>0?XV(I):OD8(I)}).thenCatch(function(){I.pendingUpdates.unshift.apply(I.pendingUpdates,_.Py(C))})}},OD8=function(I){I.currentRefreshRequest=_.agu(I.JSC$10616_playlistNetworkManager,I.listId,I.currentIndex,I.videoIds[I.currentIndex]);
_.N2(I.currentRefreshRequest,function(){I.currentRefreshRequest=void 0}).then(function(C){I.JSC$10616_updateCallback(C.playlistId,C.playlistPanelRenderer,C.autoplayRenderer)})};
l_.prototype.size=function(){return this.videoIds.length};var MJq=function(I,C,y,k){k=k===void 0?[]:k;l_.call(this,I,C,y,k);this.JSC$10616_playlistNetworkManager=I;this.listId=C;this.JSC$10616_updateCallback=y;this.videoIds=k};
_.R(MJq,l_);_.$U=function(I,C,y,k,F,z,c){F=F===void 0?[]:F;c=c===void 0?sv:c;l_.call(this,I,C,y,F);this.JSC$10616_playlistNetworkManager=I;this.listId=C;this.JSC$10616_updateCallback=y;this.onAuthChange=k;this.videoIds=F;this.storage=z;this.cookieReader=c;this.queueSapisId="";this.queueSapisIdJob=0;this.attributionData=new Map;this.queueSapisId=(new this.cookieReader(window.document)).get("SAPISID","");this.queueSapisIdJob=_.tE(_.b$,this.checkLoggedInStatusChange.bind(this),1E3)};
_.R(_.$U,l_);_.u=_.$U.prototype;_.u.checkLoggedInStatusChange=function(){(new this.cookieReader(window.document)).get("SAPISID","")!==this.queueSapisId?(this.onAuthChange(),this.storage&&this.storage.clear()):this.queueSapisIdJob=_.tE(_.b$,this.checkLoggedInStatusChange.bind(this),1E3)};
_.u.JSC$10616_setCurrentIndex=function(I){l_.prototype.JSC$10616_setCurrentIndex.call(this,I);this.store()};
_.u.delete=function(){_.b$.cancelJob(this.queueSapisIdJob);l_.prototype.delete.call(this)};
_.u.setListId=function(I){l_.prototype.setListId.call(this,I);this.store()};
_.u.store=function(){this.storage&&this.listId&&this.currentIndex!==void 0&&this.storage.store(this.listId,this.currentIndex)};var IhP=["response","contents","twoColumnWatchNextResults","autoplay","autoplay"],Cnq=["playerResponse","videoDetails"],suw=["response","currentVideoEndpoint","watchEndpoint","videoId"],oTd=["response","currentVideoEndpoint","watchEndpoint","playlistId"],y20=["response","playerOverlays","playerOverlayRenderer","endScreen","watchNextEndScreenRenderer"],kfw=["response","contents","twoColumnWatchNextResults","playlist","playlist"],Fl8=["response","webWatchNextResponseExtensionData","relatedVideoArgs"],
usP=["response","contents","twoColumnWatchNextResults"];var RV={},vUt=(RV.WEB_UNPLUGGED="^unplugged/",RV.WEB_UNPLUGGED_ONBOARDING="^unplugged/",RV.WEB_UNPLUGGED_OPS="^unplugged/",RV.WEB_UNPLUGGED_PUBLIC="^unplugged/",RV.WEB_CREATOR="^creator/",RV.WEB_KIDS="^kids/",RV.WEB_EXPERIMENTS="^experiments/",RV.WEB_MUSIC="^music/",RV.WEB_REMIX="^music/",RV.WEB_MUSIC_EMBEDDED_PLAYER="^music/",RV.WEB_MUSIC_EMBEDDED_PLAYER="^main_app/|^sfv/",RV);var wAz,J4S;wAz=function(I,C){this.networkManager=I;this.innertubeTransportService=C};
J4S=function(I,C,y){if(!_.l(C,_.KZ))return _.mr(Error("Df"));_.l(C,_.KZ).videoIds=y;y={create_playlist_title:_.PQ("QUEUE",void 0,"Queue")};return AJX(_.gh(I.innertubeTransportService,C,y),S7W)};
_.agu=function(I,C,y,k){C={videoId:k,playlistId:C,playlistIndex:y};y=_.tS(cxb);return AJX(_.b_(I.innertubeTransportService,C,y),gUH)};
wAz.prototype.updatePlaylist=function(I,C){return AJX(_.gh(this.innertubeTransportService,{commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/browse/edit_playlist",sendPost:!0}},playlistEditEndpoint:{playlistId:I,actions:C}}),KyH)};var YU=function(I){this.storage=I},zqw;
YU.prototype.store=function(I,C){C=C===void 0?0:C;if(this.storage&&I.startsWith("TLPQ"))try{this.storage.set("TLPQplaylist",I),this.storage.set("TLPQindex",String(C)),this.storage.set("TLPQtimestamp",String(Date.now()))}catch(y){}};
YU.prototype.clear=function(){this.storage&&(this.storage.remove("TLPQtimestamp"),this.storage.remove("TLPQplaylist"),this.storage.remove("TLPQindex"))};
YU.prototype.getPlaylistId=function(){if(!this.storage)return null;var I=null;try{I=this.storage.get("TLPQplaylist")}catch(C){}return I};
YU.prototype.getIndex=function(){if(this.storage){try{var I=this.storage.get("TLPQindex")}catch(C){}I=Number(I);if(!isNaN(I))return I}};var q7I=["navigationEndpoint","watchEndpoint","videoId"],xXm=["nextButtonVideo","watchEndpoint","videoId"];_.pp=new _.Jj("NETWORK_TOKEN");_.BP=new _.Jj("PAGE_TOKEN");_.Gk=new _.Jj("PLAYLIST_TOKEN");var TFS;TFS=new _.Jj("ASYNC_INNERTUBE_TRANSPORT_TOKEN");_.Q0=new _.Jj("INNERTUBE_TRANSPORT_TOKEN");var c2e,fu,r28,izP,nTw,PnY;c2e=new Set(["ci","cr","carml"]);fu=function(){this.signals=[];this.compoundSignals=new Map;this.inProgressSignals=new Set;this.JSC$10663_parkedJobs=new Map;this.parkedProcessors=new Map};
_.So=function(){fu.instance||(fu.instance=new fu);return fu.instance};
fu.prototype.onAny=function(I){return _.eqY(this,I,2)};
fu.prototype.parkOrScheduleJob=function(I,C,y,k,F){_.Ku(this,y)?_.R7().addJob(I,C,k):(F&&(I=r28(I),izP(this,I,C,y,F)),F=this.JSC$10663_parkedJobs.get(y),F||(this.JSC$10663_parkedJobs.set(y,[]),F=this.JSC$10663_parkedJobs.get(y)),F.push({job:I,priority:C,delay:k}))};
fu.prototype.addListener=function(I,C,y){y&&(C=r28(C),izP(this,C,0,I,y));y=this.parkedProcessors.get(I);y||(this.parkedProcessors.set(I,[]),y=this.parkedProcessors.get(I));y.push(C)};
fu.prototype.processSignal=function(I){if(!_.Ku(this,I)){this.inProgressSignals.add(I);var C=this.JSC$10663_parkedJobs.get(I);if(C){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,_.R7().addJob(y.job,y.priority,y.delay);this.JSC$10663_parkedJobs.delete(I)}if(C=this.parkedProcessors.get(I)){C=_.T(C);for(y=C.next();!y.done;y=C.next())y=y.value,y();this.parkedProcessors.delete(I)}this.signals.push(I);this.inProgressSignals.delete(I)}};
_.Ku=function(I,C){return c2e.has(C)||_.g5("IS_HOMEPAGE_COLD")||_.g5("IS_RESULTS_PAGE_COLD")||_.g5("IS_WATCH_PAGE_COLD")?I.signals.indexOf(C)>=0:!0};
r28=function(I){var C=!1;return function(){C||(C=!0,I())}};
izP=function(I,C,y,k,F){if(wxm.has(k))_.R7().addJob(C,y,F);else{var z=I.compoundSignals.get(k);z&&_.R7().addJob(function(){_.Ku(I,k)||(z.isTimeoutConditionSatisfied?_.R7().addJob(C,y):z.timeoutConditionObservers.push(function(){_.R7().addJob(C,y)}))},y,F)}};
_.eqY=function(I,C,y){if(C.length>1){var k=[],F=Object.create(null);C=_.T(C);for(var z=C.next();!z.done;z=C.next())z=z.value,F[z]||(k.push(z),F[z]=!0);C=k}if(C.length===1)return C[0];z=C;k="";F=y===2?"|":"&";z.sort();z=_.T(z);for(var c=z.next();!c.done;c=z.next())k+=c.value+F;if(!I.compoundSignals.get(k)){F=0;z=[];c=_.T(C);for(var r=c.next();!r.done;r=c.next())r=r.value,F++,_.Ku(I,r)||z.push(r);(y=y===2)&&F>z.length||!y&&!z.length?I.signals.push(k):nTw(I,k,y,C,z)}return k};
nTw=function(I,C,y,k,F){var z=F.length,c=function(){y||--z===0?I.processSignal(C):PnY(I,C)};
F=_.T(F);for(var r=F.next();!r.done;r=F.next())I.addListener(r.value,c);I.compoundSignals.set(C,{signals:k,isOnAny:y,isInitialized:!1,isTimeoutConditionSatisfied:!1,timeoutConditionObservers:[]});PnY(I,C)};
PnY=function(I,C){if(!_.Ku(I,C)){var y=I.compoundSignals.get(C);if(y&&!y.isTimeoutConditionSatisfied){for(var k=!1,F=0,z=0,c=_.T(y.signals),r=c.next();!r.done;r=c.next()){var w=r.value;r=!_.Ku(I,w);wxm.has(w)?k=!0:(w=I.compoundSignals.get(w))?r&&!w.isTimeoutConditionSatisfied&&(z++,y.isInitialized||w.timeoutConditionObservers.push(function(){PnY(I,C)})):r&&F++}y.isInitialized=!0;
y.isOnAny?k&&(y.isTimeoutConditionSatisfied=!0):F===0&&z===0&&(y.isTimeoutConditionSatisfied=!0);if(y.isTimeoutConditionSatisfied)for(y=_.T(y.timeoutConditionObservers),k=y.next();!k.done;k=y.next())k=k.value,k()}}};
fu.prototype.processSignal=fu.prototype.processSignal;fu.prototype.parkOrScheduleJob=fu.prototype.parkOrScheduleJob;fu.prototype.onAny=fu.prototype.onAny;_.U8("ytsignals.getInstance",_.So);fu.prototype.onAny=fu.prototype.onAny;fu.prototype.parkOrScheduleJob=fu.prototype.parkOrScheduleJob;fu.prototype.processSignal=fu.prototype.processSignal;var wxm=new Set(["eop","eocs","dl","pcl"]);_.WJ=new _.Jj("MINIPLAYER_SERVICE");var AJ,Llu,Drm;AJ=function(I,C,y){var k=_.qU.getInstance();if(!zqw){var F=new oBH;var z=void 0,c=_.Aq("ID_TOKEN");c&&F.isAvailable()&&(z=new j7(F,"yt-queue"+c));zqw=new YU(z)}F=zqw;z=_.So();this.JSC$10670_actionRouter=k;this.pageManager=I;this.playlistManager=C;this.JSC$10670_playlistNetworkManager=y;this.storage=F;this.signals=z;this.responsePlaylistData=this.response=this.index=this.listId=void 0;this.temporaryItems=[];this.downloadPlaylistProxy=this.playlistProxy=this.queueProxy=void 0};
_.gf=function(){if(!Llu){var I=_.N(),C=I.resolve(_.aU(_.BP)),y=I.resolve(_.aU(_.pp)),k=I.resolve(_.aU(_.Gk));I=I.resolve(_.Q0);Llu=new AJ(C,k,new wAz(y,I))}return Llu};
Drm=function(I,C,y){if(y){var k;if(((k=I.responsePlaylistData)==null?void 0:k.playlistId)!==y)return}I.responsePlaylistData&&(y=UXs(C,I.responsePlaylistData),I.responsePlaylistData=(0,_.Le.unsafeClone)(I.responsePlaylistData),tos(I.responsePlaylistData,y));y=I.temporaryItems.findIndex(function(F){return F.videoId===C});
y>-1&&I.temporaryItems.splice(y,1);_.vk(I,_.Wk(I,I.response?I.response.autoplayRenderer:void 0))};
_.pxq=function(I,C){if(I.responsePlaylistData){var y=HuI(C,I.responsePlaylistData);tos(I.responsePlaylistData,y);if(I.queueProxy){var k=I.queueProxy;y<0||(k.videoIds.splice(y,1),y<k.currentIndex&&k.JSC$10616_setCurrentIndex(k.currentIndex-1),k.pendingUpdates.push({action:"ACTION_REMOVE_VIDEO",setVideoId:C}),XV(k))}}_.vk(I,_.Wk(I,I.response?I.response.autoplayRenderer:void 0))};
AJ.prototype.clearQueue=function(){this.temporaryItems=[];this.storage.clear();this.queueProxy&&(this.queueProxy.delete(),this.responsePlaylistData=this.queueProxy=void 0);this.response&&_.vk(this,{autoplayRenderer:this.response.autoplayRenderer,playerData:{}})};
AJ.prototype.setPlaylistData=function(I,C,y){this.temporaryItems=[];this.listId=I;this.responsePlaylistData=C;_.vk(this,_.Wk(this,y))};
var Qud=function(I){return(I==null?0:I.playlistId)?I.playlistId:"PPSV"},NFe=function(I){return I&&I.playlistId?I.playlistId==="PPSV"?!0:M_F(_.Hg().getState().entities,I.playlistId):!1};
AJ.prototype.isPlayingOfflineVideo=function(){return this.response?NFe(this.response):!1};
AJ.prototype.closeMiniplayer=function(I){var C=this.queueProxy&&this.queueProxy.size()<=1,y=_.N().resolve(_.WJ);if(!this.queueProxy||C)this.queueProxy&&this.clearQueue(),y.close(!0);else{y.pipController.getWindow()&&window.focus();C=this.responsePlaylistData;var k=this.temporaryItems.length+(C&&C.contents?C.contents.length:0);C=_.PQ("QUEUE_CLEARED_UNPLURALIZED")||_.LA("QUEUE_CLEARED",k);C=_.Oe(C);y=_.PQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TITLE",void 0,"Close the queue");k=_.PQ("QUEUE_CLOSE_MINIPLAYER_CONFIRM_BODY_TEXT")||
_.LA("QUEUE_CLOSE_MINIPLAYER_CONFIRM_TEXT",k);var F=_.PQ("MINIPLAYER_CLOSE",void 0,"Close"),z=_.PQ("CANCEL",void 0,"Cancel");_.Gv(this.JSC$10670_actionRouter,[{openPopupAction:{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Ee(y),dialogMessages:[_.Ee(k)],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ee(F),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{endPlaylistCommand:{closeMiniplayer:!0,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}},
C]}}}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Ee(z)}}}}}}],I)}};
_.Wk=function(I,C){var y={},k=I.response;y.autoplayRenderer=C;if(!I.responsePlaylistData&&!I.temporaryItems.length)return!k||!k.hasRelatedVideoData&&_.V("kevlar_prefetch_data_augments_network_data")||(y.playerData={rvs:k.relatedVideoArgs,endScreenRenderer:k.endScreenRenderer}),y;y.playerData={};if(I.index===void 0)return _.GB(Error("Ff")),y;y.panel=I.responsePlaylistData?(0,_.Le.unsafeClone)(I.responsePlaylistData):{titleText:_.Ee(_.PQ("QUEUE",void 0,"Queue")),currentIndex:0,totalVideos:1,contents:[]};
C=y.panel;if(C.contents)for(var F=_.T(I.temporaryItems),z=F.next();!z.done;z=F.next())C.contents.push({playlistPanelVideoRenderer:z.value});I.queueProxy&&k&&k.playingVideo&&k.playingVideoId&&!hfm(k.playingVideoId,y.panel)&&(C=k.playingVideo,F=y.panel,z=I.index,F.contents&&F.contents.splice(z===void 0?0:z,0,{playlistPanelVideoRenderer:C}));k&&k.playingVideoId&&(C=I.index,F=y.panel,C=!F.contents||C>=F.contents.length?void 0:F.contents[C].playlistPanelVideoRenderer,C&&C.videoId===k.playingVideoId||(C=
UXs(k.playingVideoId,y.panel),I.index=C!==-1?C:I.index?I.index-1:0));C=EUY(I.index+1,y.panel);F=void 0;I.index>0&&(F=EUY(I.index-1,y.panel));if(F||C)y.autoplayRenderer=mXI(C,F,y.autoplayRenderer);!C&&(k==null?0:k.relatedVideoArgs)&&(y.playerData.rvs=k.relatedVideoArgs);k=k?k.playlistIndexOffset:0;I.queueProxy?a4W(y.panel,I.index,k,Bfz,!0,!0,!0):a4W(y.panel,I.index,k);y.playerData.playlistPanelRenderer=y.panel;return y};
AJ.prototype.openToast=function(I){_.N().resolve(_.WJ).openToast(I,_.PQ("ADDED_TO_QUEUE",void 0,"Added to queue"))};
AJ.prototype.isMiniplayerActive=function(){return _.N().resolve(_.WJ).isMiniplayerActive()};
_.vk=function(I,C){I.playlistManager.setAutoplayRenderer(C.autoplayRenderer||null);I.playlistManager.setPlaylistData(C.panel||null);C.playerData&&I.playlistManager.setPlayerPlaybackControlData(C.playerData)};var ILz="#";var V4q={},juP={},lhS={},Xx5={},$rb={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:(V4q.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="ap",V4q),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:(juP.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="as",juP),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:(lhS.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="zx",lhS),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:(Xx5.privateDoNotAccessOrElseTrustedResourceUrlWrappedValue="po",Xx5),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 WtH=[{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:$rb},{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:$rb}}];_.Fl=[[["emN1OHdiNmFha2luZCNhZmw=","azR3MHd2YWx1ZSNmZWhtcGs5"],"YnpubmFBRF9QTEFDRU1FTlRfS0lORF9TVEFSVCM1NXM0N21k"]];var Rqu=[["bWFyeSNxdjdoYTk2Zm1xYm1wcmk=",null],[null,["dWx0cy1yZW5kZXJlciMyaXd2cTl0NGs0MmN5dGQtdHdvLWNvbHVtbi1icm93c2UtcmVz","MWJseWlzdHlsZS1zY29wZSNmOGgwNHk2"]],["bGtxcndtYXN0aGVhZC1hZCNkam05Mnpx",["bm5zZTV0b3l0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjazVuMmY="]],[null,["aHc2ZWpvMnl0ZC1yaWNoLWdyaWQtcmVuZGVyZXIjNHc3NTE=","a28ybmtzdHlsZS1zY29wZSNmOGt5NXhs"]],[null,["eXl0ZC1iYW5uZXItcHJvbW8tcmVuZGVyZXIjNHdpNXFoaDUybHI=","dzEwY2VzdHlsZS1zY29wZSNxbDRpaWo5"]],[null,["ZDFmOG9mZms0bnZ5dGQtYWQtc2xvdC1yZW5kZXJlciNz"]]],
bz5=[["azZsc28ybGlwbGF5ZXItYWRzI25qdWc=",null]];var $8K=[["primary",null],[null,["ytd-two-column-browse-results-renderer","style-scope"]],["masthead-ad",["ytd-rich-grid-renderer"]],[null,["ytd-rich-grid-renderer","style-scope"]],[null,["ytd-banner-promo-renderer","style-scope"]],[null,["ytd-ad-slot-renderer"]]];var df;df=function(I,C,y){this.p2s=I;this.isAsync=C;this.zVV=y};
_.t9O=[new df("b.f_",!1,0),new df("j.s_",!1,2),new df("r.s_",!1,4),new df("e.h_",!1,6),new df("i.s_",!0,8),new df("s.t_",!1,10),new df("p.h_",!1,12),new df("s.i_",!1,14),new df("f.i_",!1,16),new df("a.b_",!1,18),new df("a.o_",!1),new df("g.o_",!1,22),new df("p.i_",!1,24),new df("p.m_",!1),new df("n.k_",!0,20),new df("i.f_",!1),new df("a.s_",!0),new df("m.c_",!1),new df("n.h_",!1,26),new df("o.p_",!1),new df("m.p_",!0,28),new df("o.a_",!1),new df("d.p_",!1)].reduce(function(I,C){I[C.p2s]=C;return I},
{});var kZW=function(){};
kZW.prototype.flush=function(I,C){I=I===void 0?[]:I;C=C===void 0?!1:C;if(_.V("enable_client_streamz_web")){I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=a8u(y.value),y={serializedIncrementBatch:_.HR(y.JSC$7479_serializeBinary())},_.b2("streamzIncremented",y,{sendIsolatedPayload:C})}};var sq;var GZK,ukO,PaK,csH,i0I,lLO,Stm,Gfe,V9X,kk,AsI,xU;GZK=2;ukO=2;PaK=2;csH=2;i0I=2;lLO=2;Stm=2;Gfe=new Hee;V9X=function(){this.iOV=!1};
kk=function(I,C,y){Gfe.increment(y,C);C===0&&(I.iOV=!0)};
AsI=["Z2xvYmFsQ2FsbGJhY2tz","b25BYm5vcm1hbGl0eURldGVjdGVk","b25BZFNraXA=","cmF3X3BsYXllcl9yZXNwb25zZQ=="];xU={};_.fhm=(xU["b.f_"]=function(){return _.e(function(I){return I.nextAddress==1?_.n(I,(_.JZH()!==void 0?_.mr(Error("rf")):_.x2F()).then(function(){return 1},function(C){if(C.message==="Biscotti id is disabled")return 3;
_.SN("Failed fetching bid");return 0}),2):I.return(I.yieldResult)})},xU["j.s_"]=jAY,xU["r.s_"]=QAI,xU["e.h_"]=function(){for(var I=function(F){return CaI(F)},C=[Rqu,
bz5],y=2,k=0;k<C.length&&(y=X7Y(sAt(C[k],I)),y!==0);k++);return y},xU["n.h_"]=function(){return X7Y(sAt([["player-ads",
["ytd-merch-shelf-renderer","ytp-featured-product"]]]))},xU["i.s_"]=function(){return _.Aq("ISDSTAT",2)},xU["p.h_"]=function(){return 2},xU["s.t_"]=function(){return GZK},xU["s.i_"]=fLm,xU["f.i_"]=Tx9,xU["a.b_"]=D8z,xU["a.o_"]=YtH,xU["g.o_"]=b0K,xU["p.i_"]=RiI,xU["p.m_"]=rsF,xU["n.k_"]=function(){return _.Aq("NKDSTAT",2)},xU["i.f_"]=nyF,xU["a.s_"]=function(){return _.Aq("ASDSTAT",2)},xU["m.c_"]=function(){return 2},xU["o.p_"]=function(){for(var I=[],C=0,y=0;y<AsI.length;y++)I[y]=AsI[y],C++;
I[C]="d2ViX3BsYXlsaXN0X3F1ZXVlX211bHRpcGxlX3NraXBzX2tz";I[C+1]="YWJfc2FfZWY=";return KtK(I)},xU["m.p_"]=function(){return _.Aq("MBSTAT",2)},xU["o.a_"]=function(){return gyt()===0?0:vym()},xU["d.p_"]=function(){return Stm},xU);var SAY,Klc,A2S;SAY=function(){this.ongoingFlowNonces=new Map};
_.cD=function(){Klc||(Klc=new SAY);return Klc};
_.z8=function(I,C,y){return{eventType:{flowEventNamespace:I,flowEventType:C},metadata:y,statusCode:void 0,csn:void 0,can:void 0}};
_.O0X=function(I,C){var y=_.cD(),k=A2S(y,C,!0);_.T8(y,I,C,k)};
_.T8=function(I,C,y,k){I={flowNonce:k||A2S(I,y),flowType:y,flowEventType:C.eventType};C.metadata&&(I.flowMetadata=C.metadata);C.statusCode!==void 0&&(I.flowEventStatus=C.statusCode);C.csn&&(I.csn=C.csn);C.can&&(I.can=C.can);_.b2("flowEvent",I,void 0)};
A2S=function(I,C,y){y=y===void 0?!1:y;var k=I.ongoingFlowNonces.get(C);if(!k||y)k=YB(16),I.ongoingFlowNonces.set(C,k);return k};_.gTw=new UbP;var qX=function(I,C,y,k,F,z,c){y=y===void 0?!1:y;k=k===void 0?!1:k;z=z===void 0?_.gf():z;this.hasRun=!1;this.eHI=I;this.mRG=C;this.iIq=y;this.fromHistory=k;this.previousVideoId=F;this.nt7=z;this.tempData=c;this.wVa=new _.tlY};
_.R(qX,U2);qX.prototype.validate=function(I){return!(!I.data.playerResponse||I.data.page!=="watch"&&I.data.page!=="shorts"||this.hasRun)};
qX.prototype.handle=function(I){var C=this,y=_.l(I.endpoint,_.H$),k=_.l(I.endpoint,_.PD);if(_.V("kevlar_continue_playback_without_player_response")&&(y==null?0:y.videoId)&&this.previousVideoId&&(y==null?void 0:y.videoId)===this.previousVideoId&&(y==null?0:y.continuePlayback)&&!this.fromHistory)this.eHI.resolve();else{var F={};y?F.watch_endpoint=y:k&&(F.watch_endpoint=k,k.endTimeSeconds&&(F.end=k.endTimeSeconds));I.data.page==="watch"?(I.data.filler||this.iIq||(_.KA("cfg"),_.qU.getInstance().triggerAction("yt-start-loading-watch")),
Object.assign(F,vTm(this,I.endpoint)),_.V("enable_masthead_quartile_ping_fix")&&Object.assign(F,Wl5(this)),y=!_.V("web_honor_cache_for_back")&&this.fromHistory?{cached_load:!0}:void 0,Object.assign(F,y),I.data.forceExternalPlaylist&&(F.external_list=!0)):I.data.page==="shorts"&&_.qU.getInstance().triggerAction("yt-start-loading-shorts");if(y=this.mRG()){try{y.loadVideoWithPlayerResponse(I.data.playerResponse,F),y.getPlayerPromise().then(this.eHI.resolve)}catch(z){_.GB(z),this.eHI.resolve()}this.hasRun=
!0;y.getPlayerPromise().then(function(z){z.addEventListener("onAbnormalityDetected",function(){var c=I.data.playerResponse,r=z.getVideoData().cpn;Stm=0;_.YAY=r;if(r=H0X(c))C.wVa.increment("IN_PLAYER"),_.ef(5),_.V("ab_st_vid_ks")?z.pauseVideo(!0):z.stopVideo(),c.playabilityStatus=Object.assign({},c.playabilityStatus,{status:"ERROR",errorScreen:{enforcementMessageViewModel:r}}),c.videoDetails=void 0,_.qU.getInstance().triggerOptionalAction("yt-updated-playability-status",c.playabilityStatus)})})}else _.SN(Error("If"))}};
var vTm=function(I,C){var y=_.l(C,_.H$);if(C&&y&&y.playlistId&&y.videoId&&(I=I.nt7,I.queueProxy?(I=I.queueProxy,y=I.listId===y.playlistId?I.attributionData.get(y.videoId):void 0):y=void 0,y))return{queue_info:y}},Wl5=function(I){var C;
if((C=I.tempData)==null?0:C.adpings)return{adpings:I.tempData.adpings}};var my=function(I,C,y){this.hasRun=!1;this.dBb=I;this.r6P=C;this.fbP=y};
_.R(my,U2);my.prototype.validate=function(I){return!!_.Le.getValueByKeys.apply(null,[I.data].concat(_.Py(usP)))};
my.prototype.handle=function(I){var C=this;this.dBb.promise.then(function(){var y=I.data;var k=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(IhP))),F=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(kfw))),z=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(suw)));var c=(c=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(Cnq))))?{videoId:c.videoId,thumbnail:c.thumbnail,title:c.title?_.Ee(c.title):void 0,shortBylineText:c.author?_.Ee(c.author):void 0}:void 0;var r=void 0;_.V("web_get_playlist_id_from_current_endpoint_ks")||
(r=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(oTd))));var w=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(Fl8))),L=_.Le.getValueByKeys.apply(null,[y].concat(_.Py(y20))),D=!!w||!!L&&!!L.results&&L.results.length>0,p=0;F&&F.currentIndex&&F.localCurrentIndex&&(p=F.currentIndex-F.localCurrentIndex);F&&F.playlistId&&(r=F.playlistId);y={rawResponse:y,autoplayRenderer:k,hasRelatedVideoData:D,playingVideo:c,playingVideoId:z,playlistPanelRenderer:F,playlistId:r,playlistIndex:F&&F.currentIndex,relatedVideoArgs:w,
endScreenRenderer:L,playlistIndexOffset:p};a:{k=C.fbP;F=C.r6P;k.response=y;if(NFe(y))k.downloadPlaylistProxy&&k.downloadPlaylistProxy.getPlaylistId()===Qud(y)||(k.downloadPlaylistProxy=new hAq(Qud(y),k.setPlaylistData.bind(k),k.isPlayingOfflineVideo.bind(k))),k.responsePlaylistData=k.downloadPlaylistProxy.getPlaylistData(),k.listId=Qud(y),k.index=0;else if(y.playlistPanelRenderer&&y.playlistId&&y.autoplayRenderer)y.playlistId.startsWith("TLPQ")?k.queueProxy?k.listId===y.playlistId?(k.index=y.playlistIndex,
k.responsePlaylistData=y.playlistPanelRenderer,k.queueProxy.JSC$10616_setCurrentIndex(k.index)):y.playingVideoId&&k.index!==void 0&&F.clientParams.autoSaveToQueue&&(k.index+=1,k.queueProxy.JSC$10616_setCurrentIndex(k.index),k.queueProxy.addVideos([y.playingVideoId],{},k.index)):(k.queueProxy=new _.$U(k.JSC$10670_playlistNetworkManager,y.playlistId,k.setPlaylistData.bind(k),k.clearQueue.bind(k),_.JJt(y.playlistPanelRenderer),k.storage),k.responsePlaylistData=y.playlistPanelRenderer,k.listId=y.playlistId,
k.index=y.playlistIndex):(k.index=y.playlistIndex,k.listId!==y.playlistId&&k.clearQueue(),k.responsePlaylistData=y.playlistPanelRenderer,k.listId=y.playlistId,k.playlistProxy=new MJq(k.JSC$10670_playlistNetworkManager,y.playlistId,k.setPlaylistData.bind(k),_.JJt(y.playlistPanelRenderer)));else if(!k.queueProxy)k.responsePlaylistData=void 0;else if(y.playingVideoId&&F.clientParams.autoSaveToQueue){if(k.index===void 0){_.GB(Error("Ef"));k.clearQueue();break a}k.queueProxy.videoIds.includes(y.playingVideoId)||
(k.index+=1,k.queueProxy.JSC$10616_setCurrentIndex(k.index),k.queueProxy.addVideos([y.playingVideoId],{},k.index))}_.vk(k,_.Wk(k,k.response.autoplayRenderer))}})};var drb=function(I,C){C=C===void 0?_.gf():C;zk.call(this);this.mB.push(new my(this.eO,{clientParams:{miniplayer:!1,autoSaveToQueue:!1}},C));this.mB.push(new qX(this.eO,I,!1,!1));_.V("web_response_commands_chunk_processor")&&this.mB.push(new Tk)};
_.R(drb,zk);drb.prototype.processChunk=function(I){I&&I.data.player===void 0&&this.eO.resolve();zk.prototype.processChunk.call(this,I)};var Z4=function(I,C){I=I===void 0?{layer:0}:I;this.hasRun=!1;this.createScreenConfig=I;this.bK6=C};
_.R(Z4,U2);Z4.prototype.validate=function(I){return!(this.hasRun||!I.endpoint)};
Z4.prototype.handle=function(I){var C=_.e2(),y,k,F=(k=_.l((y=I.endpoint)==null?void 0:y.commandMetadata,_.It))==null?void 0:k.rootVe;this.bK6&&F?_.s7(C,F,this.bK6,this.createScreenConfig):GW0(C,I.endpoint,this.createScreenConfig);this.hasRun=!0};var Bk=function(I,C){this.hasRun=!1;this.kkP=I;this.previousVideoId=C};
_.R(Bk,U2);Bk.prototype.validate=function(I){return _.V("kevlar_continue_playback_without_player_response")&&(I=_.l(I.endpoint,_.H$),(I==null?0:I.videoId)&&this.previousVideoId&&(I==null?void 0:I.videoId)===this.previousVideoId&&(I==null?0:I.continuePlayback))?!1:this.kkP.bSZ===0};
Bk.prototype.handle=function(I){_.qU.getInstance().triggerAction("yt-stop-old-player",I.data,!0)};var xr5=function(I){I=I===void 0?{layer:0}:I;zk.call(this);this.mB.push(new Bk(this));this.mB.push(new Z4(I));this.mB.push(new u_(I))};
_.R(xr5,zk);var qA5=function(){this.hasRun=this.hasRun=!1};
_.R(qA5,U2);qA5.prototype.validate=function(I){return!this.hasRun&&!(!I.data.csn||!I.data.rootVe)};
qA5.prototype.handle=function(I){this.hasRun=!0;_.rZO(I.data.csn,I.data.rootVe,3)};var mrd=function(){U2.apply(this,arguments)};
_.R(mrd,U2);mrd.prototype.validate=function(I){return!!I.data.preconnect};
mrd.prototype.handle=function(I){_.Sr("bc");I=_.T(I.data.preconnect);for(var C=I.next();!C.done;C=I.next())C=C.value,(new Image).src=C};var Zzq=function(I,C,y){y=y===void 0?{layer:0}:y;zk.call(this);this.mB.push(new qX(this.eO,I));this.mB.push(new Z4(y));this.mB.push(new u_(y))};
_.R(Zzq,zk);var BF5=function(I,C,y,k,F){y=y===void 0?{layer:0}:y;k=k===void 0?_.gf():k;zk.call(this);var z=!!C&&!!C.clientParams&&!!C.clientParams.miniplayer;z&&this.mB.push(new qA5);this.mB.push(new my(this.eO,C,k));this.mB.push(new mrd);var c,r;this.mB.push(new qX(this.eO,I,z,!((c=C.clientParams)==null||!c.fromHistory),(r=C.clientParams)==null?void 0:r.previousVideoId,k,C.tempData));var w;this.mB.push(new Bk(this,(w=C.clientParams)==null?void 0:w.previousVideoId));var L;(L=C.clientParams)!=null&&L.fromHistory||
(y.layer||(y=Object.assign({},y,{layer:z?3:0})),this.mB.push(new Z4(y,F)),this.mB.push(new u_(y)));_.V("web_response_commands_chunk_processor")&&this.mB.push(new Tk)};
_.R(BF5,zk);var E7,Urw;E7={};
_.ETd=(E7["subs-guide-item"]={bodyText:"SUBS_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},E7["subs-filter-by-channel"]={bodyText:"SUBS_FILTER_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},E7["subs-filtered-by-channel"]={bodyText:"SUBS_FILTER_EDU_CHANNEL_TEXT",position:"OPEN_POPUP_POSITION_RIGHT",setKey:"subs-filter-by-channel-set"},E7["membership-join"]={titleText:"JOIN_MEMBERSHIP_EDU_TITLE",bodyText:"JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E7["membership-freebie-join"]=
{bodyText:"FREEBIE_JOIN_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E7["membership-manage"]={bodyText:"MANAGE_MEMBERSHIP_EDU_TEXT",position:"OPEN_POPUP_POSITION_LEFT"},E7["library-guide-item"]={titleText:"LIBRARY_GUIDE_ITEM_EDU_TITLE",bodyText:"LIBRARY_GUIDE_ITEM_EDU_TEXT",position:"OPEN_POPUP_POSITION_RIGHT"},E7);_.hJ=new _.Kw("yt-edu");_.hqq=function(){this.JSC$10768_eduDisplayedThisLoad_={}};
Urw=function(I){var C=_.hqq.getInstance();var y=_.s8("kevlar_tooltip_impression_cap");C=y&&parseInt(_.hJ.get(I+"-impression")||0,10)>=y||_.hJ.get(I+"-dismissed")?!1:(y=_.ETd[I])&&!C.JSC$10768_eduDisplayedThisLoad_[y.setKey||I]&&(y.titleText&&_.PQ(y.titleText)||y.bodyText&&_.PQ(y.bodyText))?!0:!1;if(!C)return null;C=_.ETd[I];if(!C)return null;y=C.bodyText?_.PQ(C.bodyText):void 0;var k=C.titleText?_.PQ(C.titleText):void 0;return[{openPopupAction:{popupType:"HINT",position:C.position,popup:{bubbleHintRenderer:{text:k?
_.Ee(k):void 0,detailsText:y?_.Ee(y):void 0,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP",confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Ee(_.PQ("EDU_GOT_IT")),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{eduDismissAction:{key:I}}]}}}}}}}},{eduImpressionAction:{key:I}}]};
_.Ih(_.hqq);var aLY=!1;var sWI={UNKNOWN:"unknown",BROWSE:"browse",WATCH:"watch",SEARCH:"search",ACCOUNTS:"accounts",SETTINGS:"settings",WELCOME:"welcome",ACCOUNT_SELECTOR:"account_selector",CHANNEL:"channel",PLAYLIST:"playlist",SIGN_IN_IDENTIFIER_ENTRY:"sign_in_identifier_entry",SIGN_IN_PASSWORD_ENTRY:"sign_in_password_entry",SIGN_IN_DEVICE_PROMPT_CHALLENGE:"sign_in_device_prompt_challenge",SHORTS:"shorts",PROMO:"promo",CALL_TO_CAST:"call_to_cast",AMBIENT_INTERLUDES:"ambient_interludes",PRIVACY:"privacy",NO_OP:"noop",MINI_APP:"mini_app",
MINI_APP_EMBED:"mini_app",OPEN_IN_APP:"open_in_app"};for(var Hzc="WEB_PAGE_TYPE_SETTINGS red playlist labs handle ypc-offers show ypc-checkout".split(" "),t4b=[],U7=6;U7>=1;U7--)t4b.push({columnCount:U7,query:U7==1?0:U7*2*107-4+32,className:"grid-"+U7+"-columns",width:U7*2*107+"px"});_.Ozc=function(I){this.actionRouter_=I=I===void 0?_.qU.getInstance():I;this.documentWidth_=document.body.clientWidth;this.currentSnapState_=_.J2w(this);this.miniGuideVisible_=this.guidePersistentAndVisible_=!1};
_.J2w=function(I){var C=I.miniGuideVisible_?72:0,y=I.documentWidth_-(I.guidePersistentAndVisible_?240:C);return t4b.find(function(k){return y>k.query})};
_.Ih(_.Ozc);var ahu=function(){var I=this;this.JSC$10781_keyboardInUse=!1;document.addEventListener("keydown",function(){I.onKeydown()});
document.addEventListener("mousedown",function(){I.JSC$10781_keyboardInUse=!1})},M4P;
ahu.prototype.isKeyBoardInUse=function(){return this.JSC$10781_keyboardInUse};
ahu.prototype.onKeydown=function(){this.JSC$10781_keyboardInUse=!0};var Iw8,JJ;_.Hk=new _.Kw("yt-mentions");_.tJ=function(){};
Iw8=function(I,C){return JJ(C,"drag-to-reorder-edu-displayed")};
JJ=function(I,C,y,k,F,z){y=y===void 0?"OPEN_POPUP_POSITION_TOP":y;if(C){if(_.Hk.get(C))return;_.Hk.set(C,!0,k)}if(F&&z!==void 0){C=Number(_.Hk.get(F)||0);if(C>=z)return;_.Hk.set(F,C+1)}return[{openPopupAction:{popupType:"HINT",position:y,popup:{bubbleHintRenderer:{detailsText:I,style:"BUBBLE_HINT_STYLE_BLUE_TOOLTIP"}}}}]};
_.Ih(_.tJ);var C1m,s9w,oZq;C1m=function(I,C,y,k){this.JSC$10791_taskManager_=I;this.onFulfilled_=typeof C==="function"?C:null;this.onRejected_=typeof y==="function"?y:null;this.JSC$10791_context_=k};
s9w=function(I,C){I.onFulfilled_&&_.LM(I.JSC$10791_taskManager_,function(){I.onFulfilled_.call(I.JSC$10791_context_,C)})};
oZq=function(I,C){I.onRejected_&&_.LM(I.JSC$10791_taskManager_,function(){I.onRejected_.call(I.JSC$10791_context_,C)})};
_.O7=function(I){this.JSC$10794_taskManager_=I;this.callbacks_=[]};
_.O7.prototype.then=function(I,C,y){this.callbacks_.push(new C1m(this.JSC$10794_taskManager_,I,C,y));return this};
_.O7.prototype.onSuccess=function(I){this.callbacks_.forEach(function(C){s9w(C,I)})};
_.O7.prototype.onFailure=function(I){this.callbacks_.forEach(function(C){oZq(C,I)})};
_.O7.prototype.cancel=function(){this.callbacks_.length=0};
sIb(_.O7);_.ymz=null;_.Qc=new _.Jj("ACTIVITY_TOKEN");var T3O=/^[a-zA-Z0-9_\-]{11}$/;var cmI=_.Pz(function(){var I,C;return(C=(I=window).matchMedia)==null?void 0:C.call(I,"(prefers-reduced-motion: reduce)").matches});var yD5=_.Pz(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 I=_.d5("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_");I||(I=_.c2("VIDEO"),_.U8("yt.web.contrib.innertube.requests.watch_ui.utils.videoElement_",
I));return!!(I&&I.canPlayType&&I.canPlayType('video/webm; codecs="vp09.00.51.08.01.01.01.01.00"'))});var k7S;_.aV=new _.Jj("SHORTS_CONTROLLER_TOKEN");k7S=new _.Jj("SHORTS_STATE_STORE_TOKEN");var MX=function(I,C){var y=_.wa.apply(2,arguments);I=I===void 0?0:I;_.ph.call(this,C,y);this.errorType=I;Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(MX,_.ph);var FQ0,ubc,zWY,TPe,eWw,PDz,qd,x0m,nZq,wee,NPu,DGP,LQu;FQ0=new RegExp("jct sld rapt cid channel_creation_token force_ad_format ex_ads extra_kw".split(" ").map(function(I){return I+"="}).join("|"));
ubc=RegExp(".*\\?.*ybp=1.*");zWY=["FEcommerce_cart","SPcommerce_checkout"];TPe=RegExp(".*\\?.*playnext=1.*");_.IA=function(I,C,y,k){this.watchEndpointMap=I;this.reelWatchEndpointMap=C;this.innerTubeTransportService=y;this.fetchPbj=k;this.forceWebFEForAdsTesting=!1};
eWw=function(I,C,y){var k=_.N().resolve(_.aU(cDw));_.IA.instance=new _.IA(I,C,y,k)};
_.rDm=function(I,C){var y=_.s8("web_pbj_log_warning_rate",0);y=y>0&&Math.random()<y;var k;if((k=_.l(C.commandMetadata,_.It))==null||!k.rootVe)return y&&_.SN(Error("Of")),!1;var F;k=(F=_.l(C.commandMetadata,_.It))==null?void 0:F.url;if(!k)return y&&_.SN(Error("Pf")),!1;if(TPe.test(k))return!0;if(FQ0.test(k))return y&&_.SN(Error("Qf`"+k)),!1;var z;F=(z=_.l(C,_.rU))==null?void 0:z.browseId;if(ubc.test(k)&&(!F||!zWY.includes(F)))return y&&_.SN(Error("Rf`"+k)),!1;if(_.l(C,_.H$)){if(I.forceWebFEForAdsTesting)return y&&
_.SN(Error("Sf")),!1;if(!(I.watchEndpointMap.watchNext&&I.watchEndpointMap.player||_.V("kevlar_fetch_initial_data_op_watch_client")))return y&&_.SN(Error("Kf")),!1;I=_.s8("web_pbj_log_warning_rate",0);I=I>0&&Math.random()<I;_.l(C,_.H$)?uNI(C)?C=!0:(I&&_.SN(Error("Lf")),C=!1):(I&&_.SN(Error("Kf")),C=!1);return C}if(_.l(C,_.PD))return zvz(C);if(_.l(C,_.Yf))return!0;C=_.AU(I.innerTubeTransportService,C);y&&_.SN(Error("Tf"));return C};
PDz=function(I,C,y,k,F,z){C={url:C};if(y==null?0:y.itct)C.parentTrackingParams=y.itct;var c=_.tS(ZXq);return _.b_(I.innerTubeTransportService,C,c).then(function(r){(r=r.endpoint)||(r=_.eo);(y==null?0:y.itct)&&r&&!r.trackingParams&&(r.trackingParams=y.itct);var w=wU(r);return qd(I,r,y,k,w,F,z)})};
qd=function(I,C,y,k,F,z,c,r){r=r===void 0?{}:r;if(I.fetchPbj&&!_.rDm(I,C)){r=I.fetchPbj(C);var w=_.er(r.then(function(U){if(!U)throw Error("Uf");c(w)||z(C,U);return U}));
return w}var L,D,p={rootVe:(L=_.l(C.commandMetadata,_.It))==null?void 0:L.rootVe,url:(D=_.l(C.commandMetadata,_.It))==null?void 0:D.url,endpoint:C,page:F};if(_.l(C,_.H$)){var Q,X={contentPlaybackContext:_.Lp(y,(Q=_.l(C.commandMetadata,_.It))==null?void 0:Q.url,k)},b=_.vP();_.V("web_streaming_watch")&&window.TextDecoderStream?(r=iob(I.innerTubeTransportService,C,X,function(U){!p.response&&U.content&&(p.response=U.content);!p.playerResponse&&U.player&&(p.playerResponse=U.player);z(C,p)}),L=ZWY(C),L.length&&
(p.preconnect=L,z(C,p)),wee(r,b,p).catch(function(U){U instanceof MX&&U.errorType===2&&nZq(I,C,X,p,z,c,b)})):nZq(I,C,X,p,z,c,b);
return b.promise}if(_.l(C,_.PD)){var S;if(((S=_.l(C,_.PD))==null?void 0:S.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var A=_.vP();_.P18(_.N().resolve(_.aV),C).then(function(U){LQu(I,y,k,F,z,A,U)});
return A.promise}r=_.er();var x;L={contentPlaybackContext:_.Lp(y,(x=_.l(C.commandMetadata,_.It))==null?void 0:x.url,k)};(x=I.reelWatchEndpointMap.player)&&(x=x().JSC$11782_getRequest(C,L))&&(r=_.b_(I.innerTubeTransportService,x.innerTubeRequest,x.input,C.clickTrackingParams,x.config));x=_.er();(D=I.reelWatchEndpointMap.reelItemWatch)&&(D=D().JSC$11782_getRequest(C))&&(x=_.b_(I.innerTubeTransportService,D.innerTubeRequest,D.input,C.clickTrackingParams,D.config));D=_.er();(Q=I.reelWatchEndpointMap.reelWatchSequence)&&
_.l(C,_.PD).sequenceParams&&(L=Q().JSC$11782_getRequest(C,L))&&(D=_.b_(I.innerTubeTransportService,L.innerTubeRequest,L.input,C.clickTrackingParams,L.config));L=_.er(p);Q=_.vP();DGP(C,L,r,x,D,z,c,Q);return Q.promise}var B;if(_.l(C,opI)&&((B=_.l(C.commandMetadata,_.It))==null?0:B.url))return r=nxz(_.dQ(Nb().location.href),_.dQ(_.l(C.commandMetadata,_.It).url)).toString(),PDz(I,r,y,k,z,function(){return!1});
if(_.l(C,_.Yf))return z(C,p),_.er(p);if(_.AU(I.innerTubeTransportService,C)){r=Object.assign({},{tempData:y,disableCache:y.disableCache},r);var t=_.gh(I.innerTubeTransportService,C,r).then(function(U){p.response=U;c(t)||z(C,p);return p});
return t}return _.er(p)};
_.Q90=function(I,C,y,k){if(_.l(C,_.H$)||_.l(C,_.PD)&&(_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("kevlar_enable_shorts_prefetch_in_sequence"))||_.l(C,Bo5)&&_.V("web_enable_prefetching_videos_on_home")){var F,z={contentPlaybackContext:_.Lp(y,(F=_.l(C.commandMetadata,_.It))==null?void 0:F.url,k),prefetchPlaybackContext:rmm(y)},c,r,w;if(((c=_.l(C,_.H$))==null?void 0:(r=c.watchEndpointSupportedPrefetchConfig)==null?void 0:(w=r.prefetchHintConfig)==null?void 0:w.prefetchType)==="PREFETCH_TYPE_WATCH_NEXT"){if(y=
I.watchEndpointMap.watchNext)if(z=y().JSC$11782_getRequest(C,z))return Promise.resolve(_.b_(I.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(p){return p}))}else if(_.l(C,_.PD)&&_.V("web_prefetch_riw_for_next_video")){if(y=I.reelWatchEndpointMap.reelItemWatch)if((y=y().JSC$11782_getRequest(C,z))&&_.b_(I.innerTubeTransportService,y.innerTubeRequest,y.input,void 0,y.config).then(function(p){return p}),y=I.reelWatchEndpointMap.player)if(z=y().JSC$11782_getRequest(C,
z))return Promise.resolve(_.b_(I.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(p){return p}))}else if(y=I.watchEndpointMap.player)if(z=y().JSC$11782_getRequest(C,z))return Promise.resolve(_.b_(I.innerTubeTransportService,z.innerTubeRequest,z.input,void 0,z.config).then(function(p){return p}))}else if(_.AU(I.innerTubeTransportService,C)){var L={tempData:y},D=pee(I.innerTubeTransportService,C);
return D?new Promise(function(p,Q){var X,b;return _.e(function(S){if(S.nextAddress==1)return _.n(S,D,2);if(S.nextAddress!=4)return X=S.yieldResult,X.JSC$11789_getStoreKey(C,L)?_.n(S,_.gh(I.innerTubeTransportService,C,L),4):(Q(new _.ph("Prefetching request builder with no store key.",C)),S.jumpTo(0));b=S.yieldResult;p(b);_.oI(S)})}):Promise.reject(new _.ph("Prefetching unregistered request builder.",C))}return Promise.reject(new _.ph("No request builder available to prefetch endpoint.",C))};
x0m=function(I,C){var y,k,F;if(_.l(C,_.H$)){var z=I.watchEndpointMap.watchNext;z&&(y=z());(I=I.watchEndpointMap.player)&&(k=I())}else if(_.l(C,_.PD))(z=I.reelWatchEndpointMap.reelItemWatch)&&(y=z()),(z=I.reelWatchEndpointMap.player)&&(k=z()),(I=I.reelWatchEndpointMap.reelWatchSequence)&&(F=I());else{a:{I=ifm(C,I.innerTubeTransportService.endpointMap);if(I!==void 0)if(typeof I.then==="function")_.GB(new _.ph("Attempted to get deferred RequestBuilder that is unresolved or still wrapped.",C));else break a;
I=void 0}I&&(y=I)}var c,r,w;return{content:(c=y)==null?void 0:c.JSC$11789_getStoreKey(C),player:(r=k)==null?void 0:r.JSC$11789_getStoreKey(C),reelSequence:(w=F)==null?void 0:w.JSC$11789_getStoreKey(C)}};
nZq=function(I,C,y,k,F,z,c){var r=_.er(),w=I.watchEndpointMap.player;w&&(w=w().JSC$11782_getRequest(C,y))&&(r=_.b_(I.innerTubeTransportService,w.innerTubeRequest,w.input,C.clickTrackingParams,w.config));w=_.er();var L=I.watchEndpointMap.watchNext;L&&(y=L().JSC$11782_getRequest(C,y))&&(w=_.b_(I.innerTubeTransportService,y.innerTubeRequest,y.input,C.clickTrackingParams,y.config));I=_.er(k);NPu(C,I,r,w,F,z,c)};
wee=function(I,C,y){return _.e(function(k){if(k.nextAddress==1)return _.n(k,I,2);C.resolve(y);_.oI(k)})};
NPu=function(I,C,y,k,F,z,c){var r,w,L,D,p;_.e(function(Q){switch(Q.nextAddress){case 1:return _.n(Q,C,2);case 2:r=Q.yieldResult;if(z(c.promise))return c.resolve(r),Q.return();F(I,r);w=ZWY(I);if(!w.length){Q.jumpTo(3);break}return _.n(Q,C,4);case 4:r.preconnect=w,F(I,r);case 3:return _.aM(Q,5),_.n(Q,y,7);case 7:L=Q.yieldResult;_.dC(Q,6);break;case 5:return D=_.sj(Q),c.reject(D),Q.return();case 6:if(L===void 0)return r.reload=!0,F(I,r),c.resolve(r),Q.return();if(z(c.promise))return c.resolve(r),Q.return();
r.playerResponse=L;F(I,r);_.aM(Q,8);return _.n(Q,k,10);case 10:p=Q.yieldResult;_.dC(Q,9);break;case 8:_.sj(Q);case 9:if(p===void 0)return r.response={responseContext:{}},c.resolve(r),Q.return();if(z(c.promise))return c.resolve(r),Q.return();r.response=p;F(I,r);c.resolve(r);_.oI(Q)}})};
DGP=function(I,C,y,k,F,z,c,r){var w,L,D,p,Q,X;_.e(function(b){switch(b.nextAddress){case 1:return _.n(b,C,2);case 2:w=b.yieldResult;if(c(r.promise))return r.resolve(w),b.return();z(I,w);L=ZWY(I);if(!L.length){b.jumpTo(3);break}return _.n(b,C,4);case 4:w.preconnect=L,z(I,w);case 3:return _.aM(b,5),_.n(b,y,7);case 7:D=b.yieldResult;_.dC(b,6);break;case 5:return p=_.sj(b),r.reject(p),b.return();case 6:if(D===void 0)return w.reload=!0,z(I,w),r.resolve(w),b.return();if(c(r.promise))return r.resolve(w),
b.return();w.playerResponse=D;z(I,w);_.aM(b,8);return _.n(b,k,10);case 10:Q=b.yieldResult;_.dC(b,9);break;case 8:_.sj(b);case 9:if(Q===void 0)return w.response={responseContext:{}},r.resolve(w),b.return();if(c(r.promise))return r.resolve(w),b.return();w.response=Q;z(I,w);_.aM(b,11);return _.n(b,F,13);case 13:X=b.yieldResult;_.dC(b,12);break;case 11:_.sj(b);case 12:if(c(r.promise))return r.resolve(w),b.return();w.reelWatchSequenceResponse=X;z(I,w);r.resolve(w);_.oI(b)}})};
LQu=function(I,C,y,k,F,z,c){var r,w,L,D,p,Q;_.e(function(X){if((r=c)==null||!r.replacementEndpoint)return z.reject(),X.return();w=c.replacementEndpoint;(L=_.l(w,_.PD))?(c.sequenceContinuation&&(L.sequenceParams=c.sequenceContinuation),D=_.N().resolve(_.aV),p=L.sequenceParams,Vv5(D,w)&&delete L.sequenceParams,Q=qd(I,w,C,y,k,F,function(){return!1}),Q.then(function(b){return _.e(function(S){if(S.nextAddress==1)return j9w(D,{reelWatchEndpoint:{sequenceParams:p}},b),_.n(S,0,2);
z.resolve(b);_.oI(S)})})):z.reject();
_.oI(X)})};_.lwm=function(I){if(I.validatedFragments_.length==0)return null;if(!I.mergedPrefetchedData_){for(var C=[],y=_.T(I.validatedFragments_),k=y.next();!k.done;k=y.next()){k=_.T(I.fragmentConfiguration_[k.value].graftedKeys);for(var F=k.next();!F.done;F=k.next())(F=I.prefetchedData_[F.value].trackingParams)&&C.push(F)}I.mergedPrefetchedData_={};Object.assign(I.mergedPrefetchedData_,I.prefetchedData_,{clientSideGrafts:C})}return I.mergedPrefetchedData_};var Xed;_.C0=function(){this.prefetchCache_=new Map;this.pendingPrefetchJob_=null};
Xed=function(I,C,y){if(_.kdI(C))return I.prefetchCache_.get(_.FkW(C,y))};_.st=new _.Jj("NAVIGATION_TOKEN");var $GY=function(I){var C=this;var y=y===void 0?npz():y;var k=k===void 0?_.N().resolve(_.st):k;this.onePickCommand=I;this.JSC$10895_playlistNetworkManager=y;this.navigationManager=k;this.videoPickerBuilder=_.iXY("yt-addtoplaylist");_.QUm(rzw(iwP(e1w(this.videoPickerBuilder.setTitle(I.modalTitle).setSize(1E3).addView(Phd()).addView(nSS())).addView("youtube"),I.selectButtonLabel)),function(F){C.handleAction(F)})};
$GY.prototype.show=function(){this.videoPickerBuilder.build().setVisible(!0)};
$GY.prototype.handleAction=function(I){var C=this;if(I&&this.onePickCommand.listId&&I.action==="picked"&&I.docs){var y=[];I.docs.forEach(function(k){y.push({addedVideoId:k.id,action:"ACTION_ADD_VIDEO"})});
this.JSC$10895_playlistNetworkManager.updatePlaylist(this.onePickCommand.listId,y).then(function(){_.V("playlist_add_video_hard_reload_killswitch")?C.navigationManager.reload():RWS(C.navigationManager)})}};var boq=function(){if(this.constructor===boq)throw new TypeError("Vf");};
_.u=boq.prototype;_.u.dispose=function(){};
_.u.disconnect=function(){};
_.u.reconnect=function(){};
_.u.observe=function(I,C,y){return{element:I,option:y}};
_.u.unobserveByKey=function(){};var Pem=function(I,C){C=C===void 0?0:C;boq.call(this);this.viewroot=I;this.defaultPrescanHeight=C;this.isConnected=!0;this.pauseObservingUntilReconnect=!1;this.observer=new IntersectionObserver(this.handleObserveEvent.bind(this),I?{root:I,rootMargin:"-0.1px"}:{rootMargin:"-0.1px"});this.prescanObservers=new Map;this.handlers=new Map};
_.R(Pem,boq);_.u=Pem.prototype;_.u.dispose=function(){this.disconnect();this.handlers.clear()};
_.u.disconnect=function(I){this.isConnected=!1;this.pauseObservingUntilReconnect=I===void 0?!1:I;this.observer.disconnect();I=_.T(this.prescanObservers.values());for(var C=I.next();!C.done;C=I.next())C.value.disconnect()};
_.u.reconnect=function(){if(!this.isConnected){this.isConnected=!0;this.pauseObservingUntilReconnect=!1;for(var I=_.T(this.handlers),C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;var k=y.next().value;y=!1;k=_.T(k.keys());for(var F=k.next();!F.done;F=k.next())if((F=F.value)&&F.state==="prescan"){y=!0;break}y&&Ypw(this,C).observe(C);this.observer.observe(C)}}};
_.u.handleObserveEvent=function(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=this.handlers.get(C.target);if(y){var k=C.isIntersecting;y=_.T(y);for(var F=y.next();!F.done;F=y.next()){var z=_.T(F.value);F=z.next().value;z=z.next().value;F&&(F.state==="visible"&&k||F.state==="hidden"&&!k)&&(z(C.target,F.state),F.calledOnce&&this.unobserveByKey({element:C.target,option:F}))}}}};
_.u.handlePrescanEvent=function(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=this.handlers.get(C.target);if(y&&C.isIntersecting){y=_.T(y);for(var k=y.next();!k.done;k=y.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;k&&k.state==="prescan"&&(F(C.target,k.state),k.calledOnce&&this.unobserveByKey({element:C.target,option:k}))}}}};
_.u.observe=function(I,C,y){var k=(k=this.handlers.get(I))&&k.has(y)?{element:I,option:y}:void 0;if(k)return k;k={element:I,option:y};this.handlers.has(I)||this.handlers.set(I,new Map);var F=this.handlers.get(I);F&&!F.has(y)&&F.set(y,C);this.pauseObservingUntilReconnect||(y.state==="prescan"&&Ypw(this,I).observe(I),this.observer.observe(I));return k};
_.u.unobserveByKey=function(I){var C=this.handlers.get(I.element);if(C&&C.has(I.option)){C.delete(I.option);if(I&&I.option.state==="prescan")for(var y=_.T(this.prescanObservers.values()),k=y.next();!k.done;k=y.next())k.value.unobserve(I.element);C.size===0&&(this.handlers.delete(I.element),this.observer.unobserve(I.element))}};
var Ypw=function(I,C){var y=I.defaultPrescanHeight;C.hasAttribute("prescan-height")&&(C=Number(C.getAttribute("prescan-height")),isNaN(C)||(y=C));if(I.prescanObservers.has(y))return I.prescanObservers.get(y);C="-0.1px -0.1px "+y+"px -0.1px";C=new IntersectionObserver(I.handlePrescanEvent.bind(I),I.viewroot?{root:I.viewroot,rootMargin:C}:{rootMargin:C});I.prescanObservers.set(y,C);return C};var G7e=["browse-video-menu-button","unified-verified-badge","topbar-guide-menu"],fwd=function(){var I,C=this;this.JSC$10912_actionRouter=I=I===void 0?_.qU.getInstance():I;this.targetMap=new Map;this.targetedElements=new WeakMap;this.triggeredTargets=new Set;this.TEST_ONLY={getVisibilityObserver:function(){return C.visibilityObserver},
getVisibilityObservedElementHandlerKeys:function(){return C.visibilityObservedElementHandlerKeys}}},Spd,ADw,WQY;
fwd.prototype.initVisibilityObserver=function(){!this.visibilityObserver&&_.V("kevlar_use_vimio_behavior")&&_.Aq("INNERTUBE_CLIENT_NAME")!=="WEB_REMIX"&&(this.visibilityObserver=Lkm())};
fwd.prototype.dispose=function(){this.visibilityMonitor&&_.Pf(this.visibilityMonitor,"yt-visibility-monitor-refreshed",this.handleVisibilityRefreshed,!1,this);this.visibilityObserver&&this.visibilityObserver.dispose()};
fwd.prototype.handleVisibilityRefreshed=function(){for(var I=_.T(this.targetMap.entries()),C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;_.KQu(this,C,y)}};
_.vZb=function(I,C,y){ADw(I,y);var k=_.gZS(I,C);k.element=y;I.targetedElements.set(y,C);_.KQu(I,C,k)};
ADw=function(I,C){var y=I.targetedElements.get(C);if(y){var k=I.targetMap.get(y);k&&(delete k.element,I.targetMap.set(y,k));I.targetedElements.delete(C);I.visibilityObserver&&I.visibilityObservedElementHandlerKeys&&(y=I.visibilityObservedElementHandlerKeys.get(C))&&(I.visibilityObserver.unobserveByKey(y),I.visibilityObservedElementHandlerKeys.delete(C))}};
_.KQu=function(I,C,y){var k=y.action,F=y.element;F&&k&&(G7e.includes(C)||_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||I.visibilityMonitor&&I.visibilityMonitor.isNodeVisible(F)?WQY(I,C,y):I.visibilityObserver&&(I.visibilityObservedElementHandlerKeys||(I.visibilityObservedElementHandlerKeys=new WeakMap),k=I.visibilityObserver.observe(F,function(){WQY(I,C,y);I.visibilityObservedElementHandlerKeys.delete(F)},{calledOnce:!0,
state:"visible"}),I.visibilityObservedElementHandlerKeys.set(F,k)))};
WQY=function(I,C,y){var k=y.action;(y=y.element)&&k&&(_.Gv(I.JSC$10912_actionRouter,[k],y),I.targetMap.delete(C),I.targetedElements.delete(y),I.triggeredTargets.add(C))};
_.gZS=function(I,C){var y=I.targetMap.get(C);y||(y={},I.targetMap.set(C,y));return y};
_.oA=function(){Spd||(Spd=new fwd);return Spd};var dG5=document.createElement("div");dG5.style.touchAction="pan-down";var DFK=dG5.style.touchAction==="pan-down";var xGd,qpw;xGd=function(){this.hammerFn=uUq();this.JSC$10920_screenManager=_.e2();this.lastPinchTime=NaN;this.nodeManagerMapping=new Map;this.ve=_.Dn(83615);_.y4(this.JSC$10920_screenManager,this.ve);pA9()};
_.yL=function(){qpw||(qpw=new xGd);return qpw};
xGd.prototype.registerTouchEvents=function(I,C,y){var k=_.wa.apply(3,arguments),F=this.hammerFn(I,{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}]]});y&&F.set({touchAction:y});this.nodeManagerMapping.set(I,F);var z=
QWm(C);k=_.T(k);for(var c=k.next();!c.done;c=k.next()){c=c.value;if(c.includes("swipe")||c.includes("pinch")||c.includes("pan"))c.includes("swipe")?F.get("swipe").set({enable:!0,direction:z,velocity:.2}):c.includes("pinch")?F.get("pinch").set({enable:!0}):c.includes("pan")&&(F.get("pan").set({enable:!0,direction:z}),F.get("swipe").set({enable:!0,direction:z,velocity:.2}),F.get("swipe").recognizeWith("pan"));mGm(this,I,F,c)}};
var mGm=function(I,C,y,k){y.on(k,function(F){if(k.includes("pinch"))I.lastPinchTime=Date.now();else if(k.includes("swipe")&&Date.now()-I.lastPinchTime<400)return;F.pointerType!=="mouse"&&(F=k==="doubletap"?{coordinates:F.center}:k.includes("pan")?F:k.includes("swipe")?{target:F.target}:{},C.dispatchEvent(new CustomEvent(k,{bubbles:!0,composed:!0,detail:F})))})};
xGd.prototype.unregisterTouchEvents=function(I){var C=_.wa.apply(1,arguments),y=this.nodeManagerMapping.get(I);if(y){C=_.T(C);for(var k=C.next();!k.done;k=C.next())y.off(k.value);this.nodeManagerMapping.delete(I);I.style.touchAction="unset"}};var Zoq=window.matchMedia&&window.matchMedia("(any-pointer: coarse)").matches;var N3m=null;var EZd;_.ky=function(I,C,y){var k=y&&y>0?y:0;y=k?Date.now()+k*1E3:0;if((k=k?(0,_.BPP)():EZd())&&window.JSON){typeof C!=="string"&&(C=JSON.stringify(C,void 0));try{k.set(I,C,y)}catch(F){k.remove(I)}}};
_.Fk=function(I){var C=EZd(),y=(0,_.BPP)();if(!C&&!y||!window.JSON)return null;try{var k=C.get(I)}catch(F){}if(typeof k!=="string")try{k=y.get(I)}catch(F){}if(typeof k!=="string")return null;try{k=JSON.parse(k,void 0)}catch(F){}return k};
_.ua=function(I){try{var C=EZd(),y=(0,_.BPP)();C&&C.remove(I);y&&y.remove(I)}catch(k){}};
_.BPP=_.Pz(function(){try{var I=new sCO;var C=I.isAvailable()?I:null}catch(y){return null}return C?new _.oC(C):null});
EZd=_.Pz(function(){var I=new oBH;return I.isAvailable()?new _.oC(I):null});var hW0=function(){this.networkEvents=[];this.index=Math.floor(Math.random()*1E5)},xFK=function(){hW0.instance||(hW0.instance=new hW0);
return hW0.instance},qPz=function(I){var C=I.networkEvents;
I.networkEvents=[];return _.V("enable_network_monitoring")?C:[]};var UGw;UGw={};_.HoP=tY("yt-serviceworker-metadata",{objectStores:(UGw.auth={addedAtVersion:1},UGw["resource-manifest-assets"]={addedAtVersion:2},UGw),shared:!0,upgrade:function(I,C){C(1)&&gI(I,"resource-manifest-assets");C(2)&&gI(I,"auth")},
version:2});var Rvs=self.location.origin+"/";bX9([/\.css$/,/\.js$/,/\.ico$/,/\/ytmweb\/_\/js\//,/\/ytmweb\/_\/ss\//,/\/kabuki\/_\/js\//,/\/kabuki\/_\/ss\//,/\/ytmainappweb\/_\/js\//,/\/ytmainappweb\/_\/ss\//,/\/ytmusicweb\/_\/js\//,/\/ytmusicweb\/_\/ss\//]);bX9([/purge_shell=1/]);var tvc=void 0;tvc=tvc===void 0?[]:tvc;for(var JDe=[],Oow=_.T(Jzw),awP=Oow.next();!awP.done;awP=Oow.next())JDe.push({key:awP.value});for(var MvP=_.T(tvc),I1c=MvP.next();!I1c.done;I1c=MvP.next())JDe.push(I1c.value);var C98,Nc=_.sF==null?void 0:(C98=_.sF.performance)==null?void 0:C98.memory,fbF=!1,mFH={},Am9={},V0={},jf=navigator;var zZ=function(I){this.JSC$10964_expiringStorage=new NS(I)};
zZ.prototype.set=function(I,C,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$10964_expiringStorage.set(I,C,y)};
zZ.prototype.get=function(I){return this.JSC$10964_expiringStorage.get(I)};
zZ.prototype.remove=function(I){this.JSC$10964_expiringStorage.remove(I)};var JmK=_.hu(["https://www.youtube.com/",""]),OXz=_.hu(["https://studio.youtube.com/",""]),ssm="IDENTITY_STICKINESS_INITIAL_STATE_ENUM_UNKNOWN",MDW=null,uwm;var sOb=_.hu(["https://www.youtube.com/iframe_api"]),TZ=function(){this.playerResolver_=_.vP();this.playerPromise_=this.playerResolver_.promise;this.playerVars_=null;this.playbackEndedCallback_=_.nQ;this.playbackDurationSeconds_=0},oO8=function(I){var C=function(){return window.YT&&typeof window.YT.ready==="function"};
if(C())return _.er(window.YT);var y=_.vP(),k=_.c2("SCRIPT");k.onload=k.onreadystatechange=function(){k.readyState&&k.readyState!="loaded"&&k.readyState!="complete"||(k.onload=_.nQ,k.onreadystatechange=_.nQ,k.onerror=_.nQ,C()?y.resolve(window.YT):y.reject(new _.ph("Failed to load the iframe player library","script.onload",k.readyState,typeof window.YT,window.YT?typeof window.YT.ready:"YT.ready() missing",window.yt?typeof window.yt.ready:"yt.ready() missing")))};
k.onerror=function(F){k.onload=_.nQ;k.onreadystatechange=_.nQ;k.onerror=_.nQ;y.reject(new _.ph("Failed to load the iframe player library","script.onerror",F&&F.target&&F.target.src))};
_.fa(k,_.tM(sOb));I.insertBefore(k,I.firstChild);return y.promise},yCq=function(I,C,y){var k,F;
_.e(function(z){switch(z.nextAddress){case 1:return I.playbackEndedCallback_=y,_.aM(z,2),_.n(z,oO8(C.parentElement||null),4);case 4:k=z.yieldResult;_.dC(z,3);break;case 2:return F=_.sj(z),F instanceof _.ph&&F.args&&F.args[0]=="script.onerror"?_.SN(F):_.GB(F),z.return();case 3:k.ready(function(){return new k.Player(C,{playerVars:{controls:0,enablejsapi:1,iv_load_policy:3,modestbranding:1,mute:1,rel:0,showinfo:0},events:{onReady:I.onPlayerReady_.bind(I),onStateChange:I.onPlayerStateChange_.bind(I),
onCueRangeExit:I.onCueRangeExit_.bind(I)}})}),_.oI(z)}})};
_.u=TZ.prototype;_.u.getPlayerPromise=function(){return this.playerPromise_};
_.u.onPlayerReady_=function(I){this.playerResolver_.resolve(I.target)};
_.u.onPlayerStateChange_=function(I){if(I.data==YT.PlayerState.PLAYING){I=I.target;var C=I.getCurrentTime();I.addCueRange("playback",C,C+this.playbackDurationSeconds_)}};
_.u.onCueRangeExit_=function(I){I.data=="playback"&&(I.target.stopVideo(),this.playbackEndedCallback_())};
_.u.stopVideo=function(){this.playerPromise_.then(function(I){I.stopVideo()})};
var koS=function(I){I.playerVars_&&I.playerPromise_.then(function(C){typeof C.cueVideoByPlayerVars!="function"?_.SN(new _.ph("vmh: player API not ready","cueVideoByPlayerVars",typeof C.cueVideoByPlayerVars)):C.cueVideoByPlayerVars(I.playerVars_)})};
TZ.prototype.playVideo=function(){var I=this;this.playerVars_&&this.playerPromise_.then(function(C){typeof C.loadVideoByPlayerVars!="function"?(C=new _.ph("vmh: player API not ready","loadVideoByPlayerVars",typeof C.loadVideoByPlayerVars),_.GB(C)):C.loadVideoByPlayerVars(I.playerVars_)})};
var FD0=function(I,C,y,k,F){C&&(y===void 0&&(y=0),k===void 0&&(k=0),I.playbackDurationSeconds_=k/1E3,I.playerVars_={adformat:"17_8",videoId:C,suggestedQuality:"hd720",startSeconds:y/1E3,player_params:F})};
TZ.prototype.mute=function(){this.playerPromise_.then(function(I){I.mute()})};
TZ.prototype.unMute=function(){this.playerPromise_.then(function(I){I.unMute()})};var wwY=new Map([["dark","USER_INTERFACE_THEME_DARK"],["light","USER_INTERFACE_THEME_LIGHT"]]);var c7;c7=function(){this.tokenJars={};if(this.cookiesEnabled=_.PN()){var I=_.wC.get("CONSISTENCY",void 0);I&&um5(this,{encryptedTokenJarContents:I})}};
_.PZO=function(){c7.instance||(c7.instance=new c7);return c7.instance};
c7.prototype.handleResponse=function(I,C){if(!C)throw Error("$f");var y,k;C=((y=C.innerTubeRequest.context)==null?void 0:(k=y.request)==null?void 0:k.consistencyTokenJars)||[];var F;(I=(F=I.responseContext)==null?void 0:F.consistencyTokenJar)&&this.replace(C,I)};
c7.prototype.replace=function(I,C){I=_.T(I);for(var y=I.next();!y.done;y=I.next())delete this.tokenJars[y.value.encryptedTokenJarContents];um5(this,C)};
var um5=function(I,C){if(C.encryptedTokenJarContents&&(I.tokenJars[C.encryptedTokenJarContents]=C,typeof C.expirationSeconds==="string")){var y=Number(C.expirationSeconds);setTimeout(function(){delete I.tokenJars[C.encryptedTokenJarContents]},y*1E3);
I.cookiesEnabled&&_.nh("CONSISTENCY",C.encryptedTokenJarContents,y,void 0,!0)}};var z2b,e9;z2b=window.location.hostname.split(".").slice(-2).join(".");_.AG=function(){this.remoteLocationPlayabilityTokenTimeoutID=-1;var I=_.Aq("LOCATION_PLAYABILITY_TOKEN");_.Aq("INNERTUBE_CLIENT_NAME")==="TVHTML5"&&(this.localStorage=T2S(this))&&(I=this.localStorage.get("yt-location-playability-token"));I&&(this.locationPlayabilityToken=I,this.mostRecentPosition=void 0)};
_.AG.getInstance=function(){e9=_.d5("yt.clientLocationService.instance");e9||(e9=new _.AG,_.U8("yt.clientLocationService.instance",e9));return e9};
_.AG.prototype.setLocationOnInnerTubeContext=function(I){I.client||(I.client={});if(this.mostRecentPosition)I.client.locationInfo||(I.client.locationInfo={}),I.client.locationInfo.latitudeE7=Math.floor(this.mostRecentPosition.coords.latitude*1E7),I.client.locationInfo.longitudeE7=Math.floor(this.mostRecentPosition.coords.longitude*1E7),I.client.locationInfo.horizontalAccuracyMeters=Math.round(this.mostRecentPosition.coords.accuracy),I.client.locationInfo.forceLocationPlayabilityTokenRefresh=!0;else if(this.remoteLocationPlayabilityToken||
this.locationPlayabilityToken)I.client.locationPlayabilityToken=this.remoteLocationPlayabilityToken||this.locationPlayabilityToken};
_.AG.prototype.handleResponse=function(I){var C;I=(C=I.responseContext)==null?void 0:C.locationPlayabilityToken;I!==void 0&&(this.locationPlayabilityToken=I,this.mostRecentPosition=void 0,_.Aq("INNERTUBE_CLIENT_NAME")==="TVHTML5"?(this.localStorage=T2S(this))&&this.localStorage.set("yt-location-playability-token",I,15552E3):_.nh("YT_CL",JSON.stringify({loctok:I}),15552E3,z2b,!0))};
var T2S=function(I){return I.localStorage===void 0?new _.Kw("yt-client-location"):I.localStorage};
_.AG.prototype.clearLocationPlayabilityToken=function(I){I==="TVHTML5"?(this.localStorage=T2S(this))&&this.localStorage.remove("yt-location-playability-token"):_.tsm("YT_CL");this.remoteLocationPlayabilityToken=void 0;this.remoteLocationPlayabilityTokenTimeoutID!==-1&&(clearTimeout(this.remoteLocationPlayabilityTokenTimeoutID),this.remoteLocationPlayabilityTokenTimeoutID=-1)};
_.AG.prototype.getCurrentPositionFromGeolocation=function(){var I=this;if(!(navigator&&navigator.geolocation&&navigator.geolocation.getCurrentPosition))return Promise.reject(Error("ag"));var C=!1,y=1E4;_.Aq("INNERTUBE_CLIENT_NAME")==="MWEB"&&(C=!0,y=15E3);return new Promise(function(k,F){navigator.geolocation.getCurrentPosition(function(z){I.mostRecentPosition=z;k(z)},function(z){F(z)},{enableHighAccuracy:C,
maximumAge:0,timeout:y})})};
_.AG.prototype.createUnpluggedLocationInfo=function(I){var C={};I=I.coords;if(I==null?0:I.latitude)C.latitudeE7=Math.floor(I.latitude*1E7);if(I==null?0:I.longitude)C.longitudeE7=Math.floor(I.longitude*1E7);if(I==null?0:I.accuracy)C.locationRadiusMeters=Math.round(I.accuracy);return C};
_.AG.prototype.createLocationInfo=function(I){var C={};I=I.coords;if(I==null?0:I.latitude)C.latitudeE7=Math.floor(I.latitude*1E7);if(I==null?0:I.longitude)C.longitudeE7=Math.floor(I.longitude*1E7);return C};var cCP=function(I,C){var y=v$();I||(I="unknown");C||(C="unknown");I="MAIN_APP_WEB_PAGE_TYPE_"+I.toUpperCase();I in Bbq||(I="MAIN_APP_WEB_PAGE_TYPE_UNKNOWN");C="MAIN_APP_WEB_REQUEST_TYPE_"+C.toUpperCase();C in E6c||(C="MAIN_APP_WEB_REQUEST_TYPE_UNKNOWN");_.iz(y,{mainAppWeb:{pageType:I,requestType:C,isShellLoad:_.g5("IS_SHELL_LOAD",!1)}})},e28={start:function(){_.iz(jzs(),{mainAppWeb:_.gU()})},
success:function(){_.wA(jzs(),"SUCCESS")},
failure:function(){_.wA(jzs(),"FAILURE")},
cancelled:function(){_.wA(jzs(),"CANCELLED")}};var rCP,icS,NnX;rCP=_.hu(["/sw.js"]);icS=_.hu(["/sw.js?0"]);_.woS=_.tM(rCP);NnX=_.tM(icS);var nOb=function(){var I=Error.apply(this,arguments);this.message=I.message;"stack"in I&&(this.stack=I.stack)};
_.R(nOb,Error);_.xk.prototype.load=function(I){this.megabloxUrl_=_.Aq("YPC_MB_URL");_.W$(this.megabloxUrl_,(0,_.DD)(function(){I&&I()},this))};
_.vez=function(I,C,y,k,F,z,c,r,w,L,D){_.jss(w);I.load((0,_.DD)(function(){try{var p=z?z:_.Aq("HL"),Q=_.Aq("SESSION_INDEX");_.zJI("client",function(){uBc("59",{helpCenterPath:"/youtube",locale:p,window:window}).JSC$7847_loadChatSupport({authuser:String(Q)})})}catch(X){throw vD(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","GAPI_LOAD_ERROR"),F&&F(X),_.GB(X),X;
}P9e(this,C,y,k,F,z,c,r,w,L,D)},I))};
_.xk.prototype.openFixFlowDialog=function(I,C,y,k){this.load((0,_.DD)(function(){try{LDm(this,_.d5("payments.business.integration")).forWidget().fixInstrument().withEncryptedParameters(I).withIntegratorCallback(C).load(y,k)}catch(F){throw _.GB(F),F;}},this))};
var LDm=function(I,C,y,k){var F=C.mashupMode.popup("buyFlowDivId").usingDraggableDialog().usingPreferredWidth(600);_.V("enable_window_constrained_buy_flow_dialog")&&(F=F.usingPopupStyle(_.d5("payments.business.integration").PopupStyle.WINDOW_CONSTRAINED));k&&(F=F.usingCloseCallback(k));C.bootstrap.fromPaymentsUrl(I.megabloxUrl_);I=C.bootstrap.asMashupMode(F);y=y?y:_.Aq("HL");I.usingGaiaIndex(_.Aq("SESSION_INDEX")).usingLocale(y).usingDefaultActivityStatusChangeHandler().usingBaseZIndex(2E9);_.V("enable_google_payments_buyflow_material2_style_web")?
I.usingStyle(":m2;pc=#444;ac=#065fd4"):I.usingStyle(":md;pc=#444;ac=#065fd4");return I},P9e=function(I,C,y,k,F,z,c,r,w,L,D){try{var p=_.d5("payments.business.integration");
if(!p)throw new nOb("payments.business.integration is undefined");var Q=p.standaloneContextAuthId.forUserId(),X=LDm(I,p,z,r);c&&X.usingServerAnalyticsEventHandler(c);var b=X.inStandaloneContext(Q).buyFlow(function(S){if(S&&(!S.integratorData||S.integratorData===""||S.error))if(S.error!=null)if(String(S.error)==="-1")_.lyz(w);else{var A=String(S.error)==="132"?"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_LEGAL_ADDRESS_RESTRICTION_VIOLATION":"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE";vD(10,D,A,S.debugCode);
_.WD(A,w,S.debugCode);A=new _.ph("PAYMENT_ERROR_MESSAGE::"+S.userVisibleErrorMessage,"PAYMENT_ERROR_DETAILS::"+S.internalErrorDetails);_.GB(A)}else vD(10,D,"TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY","EMPTY_INTEGRATOR_DATA"),_.WD("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_EMPTY",w,"EMPTY_INTEGRATOR_DATA"),_.GB(Error("cg"));y&&y(S)}).withEncryptedParameters(C);
L&&b.withClientParameters(YYH(_.qxO(L)));b.load(function(){vD(24,D);_.A7("ttc",void 0,"commerce_transaction");Obt("commerce_transaction");k&&k()},function(S){if(S==null?0:S.debugCode)var A=S==null?void 0:S.debugCode;
else if(!S||(S==null?0:S.debugCode))A="EMPTY_LOAD_FAILURE_ERROR",_.GB(Error(A));else{A="EMPTY_LOAD_FAILURE_DEBUG_CODE";var x=new _.ph("LOAD_FAILURE:"+S.message," DEBUG_CODE:"+A);_.GB(x)}vD(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE",A);_.WD("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",w,A);_.GB(S);F&&F(S)})}catch(S){throw S instanceof nOb&&(vD(10,D,"TRANSACTION_ERROR_TYPE_LOAD_FAILURE","ERROR_BEFORE_BUY_FLOW_LOAD"),F&&F(S)),_.GB(S),S;
}};var Dou;Dou=/^(?:https:)?\/\/[0-9a-z-.]+\.(google|youtube)\.com\//;_.KK9=function(I,C){C=C===void 0?!1:C;I=Dou.test(I)?_.Ca(I):null;!C&&window.payments||!I?(I=_.vP(),C=I.promise,I.resolve()):C=_.bL(I,{attributes:{"data-payments-main":"",id:"payment-lib"}});return C};var poq;poq=_.hu(["//www.googletagmanager.com/gtm.js?id=",""]);_.rx=function(I,C){_.HP(document,"gtm")||(window.dataLayer=window.dataLayer||[],window.dataLayer.push({event:"user_consent",country_code:C}),window.dataLayer.push({"gtm.start":(new Date).getTime(),event:"gtm.js",geo:_.Aq("GL")}),C=_.c2("SCRIPT"),C.async=!0,_.fa(C,_.tM(poq,I)),C.id="gtm",I=document.getElementsByTagName("script"),I.length==0?document.head.appendChild(C):(I=I[0],I.parentNode.insertBefore(C,I)))};
_.ia=function(I){if(I=JSON.parse(I))window.dataLayer=window.dataLayer||[],window.dataLayer.push(I)};var QO8,N2P;QO8=_.hu(["https://clients2.google.com/gr/gr_sync.js"]);_.fOz=function(){};
_.fOz.prototype.init=function(){if(N2P()){var I=_.vP();I.resolve();return I.promise}return _.bL(_.tM(QO8)).then(function(){if(!N2P())throw Error("dg");},function(){throw Error("eg");
})};
_.S4m=function(){if(!N2P())return"";var I=window.google.gr;I.init({async:{schedule:"sync"},merchantId:"youtube"});I.start();I=I.finish();return I==null?"":I};
N2P=function(){return window.google!=null&&window.google.gr!=null};var A4K,WsY=new Set,glO;window.PolymerFakeBaseClassWithoutHtml=function(){};
_.q=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.q,PolymerFakeBaseClassWithoutHtml);_.cO=function(){return PolymerFakeBaseClassWithoutHtml.apply(this,arguments)||this};
_.R(_.cO,PolymerFakeBaseClassWithoutHtml);var XwI=window.ShadyDOM;var FsO,y4z,zAz,TpI,eAs,r4z,wx,JG;FsO=_.V("enable_shadydom_free_scoped_query_methods");y4z=_.V("enable_shadydom_free_scoped_node_methods");zAz=_.V("enable_shadydom_free_scoped_readonly_properties_batch_one");TpI=_.V("enable_shadydom_free_parent_node");eAs=_.V("enable_shadydom_free_children");r4z=_.V("enable_shadydom_free_last_child");wx=window.ShadyDOM;_.IH=wx&&wx.noPatch&&wx.wrap?wx.wrap:wx?function(I){return wx.patch(I)}:function(I){return I};
JG=function(I){if(I instanceof ShadowRoot)this.host=(0,_.IH)(I.host),this.root=I;else if(I.$$){this.host=(0,_.IH)(I);var C;this.root=(C=I.root)!=null?C:this.host}else if(I.polymerController){this.host=(0,_.IH)(I);var y;this.root=(y=this.host.shadowRoot)!=null?y:this.host}else this.root=this.host=(0,_.IH)(I)};
khY();upz();iDY();wrY();c4I();var VW8={querySelector:function(I,C){C=RrX(C,BD(I));I=_.Eq(I);return hG(I).prototype.querySelector.call(I,C)},
querySelectorAll:function(I,C){C=RrX(C,BD(I));I=_.Eq(I);return hG(I).prototype.querySelectorAll.call(I,C)}},jOc={appendChild:function(I,C){var y=BD(I),k=_.ZW(C);
return _.s5I(_.Eq(I),y?_.HD(C,y,k):C)},
cloneNode:function(I,C){var y=_.ZW(I);I=_.Eq(I);C=hG(I).prototype.cloneNode.call(I,C);return y?tG(C,y):C},
contains:function(I,C){var y=BD(I),k=_.ZW(C);return y!==k?!1:olF(I,C)},
insertBefore:function(I,C,y){var k=BD(I),F=_.ZW(C);I=_.Eq(I);C=k?_.HD(C,k,F):C;return hG(I).prototype.insertBefore.call(I,C,y)},
removeChild:function(I,C){var y=BD(I);I=_.Eq(I);C=y?tG(C,y):C;return hG(I).prototype.removeChild.call(I,C)},
replaceChild:function(I,C,y){var k=BD(I),F=_.ZW(C);C=k?_.HD(C,k,F):F?tG(C,F):C;y=k?tG(y,k):y;I=_.Eq(I);return hG(I).prototype.replaceChild.call(I,C,y)},
getRootNode:function(I,C){C=C===void 0?{composed:!0}:C;var y;if(((y=C)!=null?y:{}).composed)I=dfz(I);else{C=I;for(I=Y_H(I);I;)C=I,I=fyI(I);I=C}return I}},PFO=zAz?{firstChild:JxI,
nextSibling:Ufs,previousSibling:tHO,firstElementChild:ONI,lastElementChild:MHs,nextElementSibling:hrz,previousElementSibling:HNs,childNodes:Igt}:{};TpI&&(PFO.parentNode=ExX);eAs&&(PFO.children=CFs);r4z&&(PFO.lastChild=ays);FsO&&nlt(VW8);y4z&&nlt(jOc);LsO();var DVz=function(I){this.node=I instanceof ShadowRoot?I.host:I};
prI();Q5H();var lgI=new WeakMap;var $Vm=Symbol("vd");var fgs=new Set(["tap","track","down","up"]),SQm=_.V("pbcm_fi_query_decorators");var n0=function(){return _.cO.apply(this,arguments)||this};
_.R(n0,_.cO);_.u=n0.prototype;_.u.getState=function(){return this.store.getState()};
_.u.dispatch=function(I){this.store.dispatch(I)};
_.u.beforeRegister=function(){if(this&&typeof this==="object"){var I;var C=!!this.useSignals||!((I=this.polymerController)==null||!I.useSignals)}else C=!1;if(!C&&this.properties)for(C=_.T(Object.keys(this.properties)),I=C.next();!I.done;I=C.next()){var y=I.value;I=this.properties[y];if(I.selector){if(I.computed)throw Error("kg");y=["reduxPropertiesRecomputeTrigger",'"'+y+'"'].concat(_.Py(I.selectorArgs||[])).join(",");I.computed="recomputeReduxSelector("+y+")"}}};
_.u.attached=function(){var I=this;this.reduxPropertiesRecomputeTrigger=0;this.activeStoreSubscription||(this.activeStoreSubscription=this.store.subscribe(function(){I.reduxPropertiesRecomputeTrigger++}));
_.V("redux_disable_update_on_attached_killswitch")&&this.reduxPropertiesRecomputeTrigger++};
_.u.detached=function(){this.activeStoreSubscription&&(this.activeStoreSubscription(),this.activeStoreSubscription=void 0)};
_.u.recomputeReduxSelector=function(I,C){var y=_.wa.apply(2,arguments),k=this.properties[C].selector;if(!k)throw Error("ig`"+C);return k.apply(null,[this.store.getState()].concat(_.Py(y)))};
_.u.select=function(I){var C=_.wa.apply(1,arguments);this.reduxPropertiesRecomputeTrigger;return I.apply(null,[this.store.getState()].concat(_.Py(C)))};
_.H1.Object.defineProperties(n0.prototype,{store:{configurable:!0,enumerable:!0,get:function(){throw Error("jg");}}});
n0.prototype.recomputeReduxSelector=n0.prototype.recomputeReduxSelector;_.E([_.d(),_.h("design:type",Number)],n0.prototype,"reduxPropertiesRecomputeTrigger",void 0);n0=_.E([_.eA()],n0);var P7=[],qQW={},jA=function(){return Jn.apply(this,arguments)||this};
_.R(jA,Jn);jA.prototype._addPropertyEffect=function(I,C,y){if(C==="__observeEffects"&&y){var k,F=(k=y.info.method)!=null?k:y.info.methodName;if(F){var z=this[F];this[F]=function(){P7.push(F);try{z==null||z.apply(this,arguments)}finally{P7.pop()}}}}_.DQ._addPropertyEffect.apply(this,[I,
C,y])};
jA.prototype._setPendingProperty=function(I,C,y){if(P7.length){var k=P7[P7.length-1],F;(F=qQW[this.is])!=null&&F.has(k)||(mVY(this.is,k),_.b2("polymerPropertyChangedInObserver",{componentName:this.is,observerName:k}))}return _.DQ._setPendingProperty.apply(this,[I,C,y])};
jA=_.E([cuK()],jA);var ZDm=new Set(["allowedProps","_definePropertyAccessor","_setPendingProperty","_setUnmanagedPropertyToNode"]),ElX,wW={};_.V("polymer_property_access_logging_debug")&&(window.PROPERTY_ACCESS_MAP=wW);var LK=function(){return _.cO.apply(this,arguments)||this};
_.R(LK,_.cO);LK.prototype._setUnmanagedPropertyToNode=function(I,C,y){I.loggingStatus&&(I.loggingStatus.isDeclarativeExternal=!0);if(y!==I[C]||typeof y==="object")I[C]=y;I.is&&I.polymerController&&I.polymerController!==I&&nK(I.is,C,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");I.loggingStatus&&(I.loggingStatus.isDeclarativeExternal=!1)};
LK=_.E([_.eA()],LK);Bp9()&&(gX.prototype._setUnmanagedPropertyToNode=(new LK)._setUnmanagedPropertyToNode);_.kfF={YtHostElementBehavior:[{get hostElement(){return this},get polymerController(){return this},set hostElement(I){},set polymerController(I){}}]};var VG=function(){var I=Jn.apply(this,arguments)||this;I.json=function(){};
return I};
_.R(VG,Jn);VG.prototype.equals=function(I,C){return I===C};
VG.prototype.isEmpty=function(I){return!I||_.Mz(I)&&I.length===0};
VG=_.E([cuK()],VG);var l1u=function(I){I=FRz(I);gk.call(this,I)};
_.R(l1u,gk);l1u.prototype.addProvider=function(I){I=I.key?I:FRz([I])[0];var C=this.keyIdToIndex.get(I.key.id);if(C){if(J4H(I,this.providers[C]))throw Error("lg`"+I.key.displayName);}else gk.prototype.addProvider.call(this,I)};
var Xo0=new l1u([]);var $o5=!1;var sum={};$o5||(Cnz(),$o5=!0);
sum.InjectBehavior={initializeInjection:function(){var I=this.provide;try{if((I=I!=null?I:[])&&I.length>0)for(var C=FRz(I),y=_.T(C),k=y.next();!k.done;k=y.next())Xo0.addProvider(k.value);var F=new Set;ODK(this.behaviors||[],F);C={};for(var z=_.T(F),c=z.next();!c.done;c=z.next()){var r=c.value;r.inject&&Object.assign(C,r.inject)}this.inject&&Object.assign(C,this.inject);for(var w=_.T(Object.keys(C)),L=w.next();!L.done;L=w.next()){var D=L.value,p=C[D];try{this[D]=Xo0.resolve(p)}catch(Q){throw Q;}}}catch(Q){throw Error(Q.message);
}}};var y2I;var FlK=/\bclass\b/.test(function(){}.toString()),TFH=new Set("_noAccessors attached beforeRegister constructor created detached ready registered properties observers".split(" "));var R2w=function(I){this.wasDefined=!0;Array.isArray(I)||I instanceof Array?(this.JSC$11123_getImpl=I[0],this.JSC$11123_setImpl=I[1]):this.JSC$11123_getImpl=I};
_.u=R2w.prototype;_.u.getWithPath=function(I){return $m(this.JSC$11123_getImpl(),I)};
_.u.setWithPath=function(I,C){var y=this;if(I.length)throw Error("mg");if(!this.JSC$11123_setImpl)throw Error("ng");Df(function(){y.JSC$11123_setImpl(C)})};
_.u.notifyPath=function(){throw Error("og");};
_.u.notifySplices=function(){throw Error("pg");};
_.u.getChangeRecordSignal=function(I,C){var y=this;if(I.length)throw Error("qg");return function(){var k=y.getWithPath(I);return{path:C!=null?C:"",base:k,value:k}}};
_.u.getSplicesSignal=function(){throw Error("rg");};
_.u.getPathMutationSignal=function(){throw Error("sg");};
_.u.pop=function(){throw Error("tg");};
_.u.push=function(){throw Error("ug");};
_.u.splice=function(){throw Error("vg");};
_.u.unshift=function(){throw Error("wg");};var L0=function(I){var C=this;this.observedPath={pathComponents:[],data:void 0,subPaths:{}};this.mutationIndex=0;Array.isArray(I)||I instanceof Array?(this.JSC$11128_getImpl=I[0],this.JSC$11128_setImpl=I[1]):this.JSC$11128_getImpl=I;this.wasDefined=!1;TO(function(){C.wasDefined=C.JSC$11128_getImpl()!==void 0})};
L0.prototype.getWithPath=function(I){return $m(this.JSC$11128_getImpl(),I)};
L0.prototype.setWithPath=function(I,C){var y=this;if(I[I.length-1]!=="*"&&I[I.length-1]!=="splices"){if(I.length===0){if(!this.JSC$11128_setImpl)throw Error("xg");this.wasDefined||(this.wasDefined=C!==void 0);Df(function(){y.JSC$11128_setImpl(C)})}else{for(var k=TO(function(){return y.getWithPath([])}),F=0;F<I.length-1;F++){if(!k)return;
k=k[I[F]]}F=I[I.length-1];k&&(k[F]=C);this.wasDefined||(this.wasDefined=I.length>1||C!==void 0)}bcP(this,I,{pathComponents:I,value:C})}};
L0.prototype.notifyPath=function(I,C){I.length===0?C&&this.setWithPath(I,C.value):bcP(this,I,{pathComponents:I,value:C==null?void 0:C.value,fallbackWhenUndefined:C==null?void 0:C.value})};
var bcP=function(I,C,y,k){if(I.setMutationSignal){var F=++I.mutationIndex,z=[I.observedPath],c=I.observedPath,r;C.length===0&&(r=c);for(var w=0;w<C.length;w++){var L=c.subPaths[C[w]];if(!L)break;z.push(L);c=L;w===C.length-1&&(r=L)}for(C=!1;z.length;)c=z.shift(),c.data={index:F,mutation:y,spliceMutationIndex:k},C||(C=c===r),C&&z.push.apply(z,_.Py(Object.values(c.subPaths)));Df(function(){I.setMutationSignal(F)})}};
L0.prototype.notifySplices=function(I,C){var y=this,k=TO(function(){return y.getWithPath(I)}),F=[].concat(_.Py(I),["splices"]);
bcP(this,F,{pathComponents:F,value:{indexSplices:C}});if(k==null?0:k.length)C=this.mutationIndex,F=[].concat(_.Py(I),["length"]),bcP(this,F,{pathComponents:F,value:k.length},C)};
var Ylw=function(I,C,y,k,F,z){I.notifySplices(y,[{index:k,addedCount:F,removed:z,object:C,type:"splice"}])},Gob=function(I,C){I=I.observedPath;
for(var y=0;y<C.length;y++){var k=C[y],F=I.subPaths[k];F||(F={pathComponents:C.slice(0,y+1),subPaths:{}},I.subPaths[k]=F);I=F}},Slb=function(I,C,y){Gob(I,C);
if(!I.getMutationSignal){var k=_.T(_.c4(I.mutationIndex,void 0,"HavCgf"));I.getMutationSignal=k.next().value;I.setMutationSignal=k.next().value}var F=I.getMutationSignal;return _.P4(function(){F();return y(f1P(I,C))},void 0,"BYaPo")};
L0.prototype.getChangeRecordSignal=function(I,C){var y=this,k=this.mutationIndex,F;return Slb(this,I,function(z){if(z&&z.index>k){var c=z.mutation;k=z.index;F=void 0}z=TO(function(){return y.getWithPath(I)});
if(c){var r=c.pathComponents[c.pathComponents.length-1],w=[].concat(_.Py(c.pathComponents));if(r==="splices"||r==="length")return{base:z,path:(C?[C].concat(_.Py(w)):w).join("."),value:c.value};var L=I.length>w.length?I:w,D;return{base:z!=null?z:c.fallbackWhenUndefined,path:(C?[C].concat(_.Py(L)):L).join("."),value:(D=TO(function(){return y.getWithPath(L)}))!=null?D:c.fallbackWhenUndefined}}F||(F={base:z,
path:(C?[C].concat(_.Py(I)):I).join("."),value:z});return F})};
L0.prototype.getSplicesSignal=function(I){var C=this.mutationIndex,y;return Slb(this,I,function(k){if(k&&k.index>C&&k.spliceMutationIndex!==C){var F=k.mutation;C=k.index;y=void 0}return F&&F.pathComponents[F.pathComponents.length-1]==="splices"?y=k=F.value:y})};
L0.prototype.getPathMutationSignal=function(I){var C=this;Gob(this,I);if(!this.getMutationSignal){var y=_.T(_.c4(this.mutationIndex,void 0,"yZelVe"));this.getMutationSignal=y.next().value;this.setMutationSignal=y.next().value}var k=this.getMutationSignal,F=this.mutationIndex,z;return _.P4(function(){k();var c=f1P(C,I);if(c&&c.index>F&&c.mutation&&r2K(c.mutation.pathComponents,I)){var r=c.mutation;F=c.index}if(!z||F!==z.index){var w,L;c=(L=TO(function(){return C.getWithPath(I)}))!=null?L:(w=r)==null?
void 0:w.fallbackWhenUndefined;
z={index:F,value:c}}return z},void 0,"Aumsyf")};
var f1P=function(I,C){I=I.observedPath;C=_.T(C);for(var y=C.next();!y.done;y=C.next())I=I.subPaths[y.value];return I.data};
L0.prototype.pop=function(I){var C=this,y=TO(function(){return C.getWithPath(I)});
if(!(y instanceof Array))throw Error("yg");var k=y.length>0,F=y.pop();k&&Ylw(this,y,I,y.length,0,[F]);return F};
L0.prototype.push=function(I){var C=_.wa.apply(1,arguments),y=this,k=TO(function(){return y.getWithPath(I)});
if(!(k instanceof Array))throw Error("zg");var F=k.length,z=k.push.apply(k,_.Py(C));C.length&&Ylw(this,k,I,F,C.length,[]);return z};
L0.prototype.splice=function(I,C,y){var k=_.wa.apply(3,arguments),F=this,z=TO(function(){return F.getWithPath(I)});
if(!(z instanceof Array))throw Error("Ag");C<0?C=z.length-Math.floor(-C):C&&(C=Math.floor(C));var c=z.splice.apply(z,[C,y].concat(_.Py(k)));(k.length||c.length)&&Ylw(this,z,I,C,k.length,c);return c};
L0.prototype.unshift=function(I){var C=_.wa.apply(1,arguments),y=this,k=TO(function(){return y.getWithPath(I)});
if(!(k instanceof Array))throw Error("Bg");var F=k.unshift.apply(k,_.Py(C));C.length&&Ylw(this,k,I,0,C.length,[]);return F};var KDY=!0,ACe=!1,tvX=!1,gOw=!1,DL=!1,vOu=0;gOw=!1;vOu=0;KDY=!0;DL=ACe=tvX=!1;var p0=function(I,C,y){this.model=I;this.unknownSignalResolver=C;this.options=y;this.signalCache={};this.isDisposed=!1;this.childSignalProxies=[];C=_.T(NFI());I=C.next().value;C=C.next().value;this.owner=I;this.disposeImpl=C};
p0.prototype.dispose=function(){if(!this.isDisposed){for(var I=_.T(this.childSignalProxies),C=I.next();!C.done;C=I.next())C.value.dispose();this.disposeImpl();this.childSignalProxies=[];this.isDisposed=!0}};
var WDw=function(I,C){I=Jk(I.owner);try{C()}finally{Jk(I)}};
p0.prototype.effect=function(I){WDw(this,function(){_.X$(I)})};
var do0=function(I,C){I.options!=null||(I.options={});var y;(y=I.options).immutableProps!=null||(y.immutableProps=new Set);I.options.immutableProps.add(C)},HzX=function(I,C){C=""+C;
xoP(I,C);var y;if((y=I.model.__signalCache)==null?0:y.has(C))y=I.model.__signalCache.get(C),Array.isArray(y)&&do0(I,C);var k,F,z;return(z=(k=I.options)==null?void 0:(F=k.immutableProps)==null?void 0:F.has(C))!=null?z:!1},qlq=function(I,C){var y;
I.unknownSignalResolver&&(y=I.unknownSignalResolver(C));var k,F;((k=I.options)==null?0:(F=k.immutableProps)==null?0:F.has(C))?y!=null||(y=new R2w(_.c4(I.model[C],void 0,"q2oXO"))):y!=null||(y=new L0(_.c4(I.model[C],void 0,"fw0V7b")));var z=I.model.hostElement;Object.defineProperty(I.model,C,{get:function(){UVm(z,C);return y.getWithPath([])},
set:function(c){PO(z,C);I.setWithPath([C],c)},
configurable:!0});return y},xoP=function(I,C){var y,k,F;
((y=I.model.__signalCache)==null||!y.has(C))&&((k=I.options)==null?0:(F=k.externalSignalProps)==null?0:F.has(C))&&I.model[C]},bT=function(I,C){C=""+C;
var y=I.signalCache[C];if(y!==void 0)return y;y=!1;xoP(I,C);var k;if((k=I.model.__signalCache)==null?0:k.has(C))if(y=I.model.__signalCache.get(C),Array.isArray(y))y=!0,do0(I,C);else return I.signalCache[C]=I.model.__signalCache.get(C).signal,I.signalCache[C];var F,z;k=(z=(F=I.options)==null?void 0:F.reactivityMode)!=null?z:0;var c,r;if(!((c=I.options)==null?0:(r=c.reactiveProps)==null?0:r.has(C))&&!y&&k===1)throw Error("Cg`"+C);F=y?mow(I,C):qlq(I,C);return I.signalCache[C]=F},mow=function(I,C){var y=
Object.getOwnPropertyDescriptor(I.model.constructor.prototype,C),k=function(){return I.model[C]};
return new R2w(y&&y.get&&!y.set?k:[k,function(F){I.model[C]=F}])};
p0.prototype.getWithPath=function(I){var C=_.T(I);I=C.next().value;C=B2(C);UVm(this.model.hostElement,""+I);return bT(this,I).getWithPath(C)};
p0.prototype.setWithPath=function(I,C){if(I.length){PO(this.model.hostElement,I.join("."));var y=_.T(I);I=y.next().value;y=B2(y);bT(this,I).setWithPath(y,C)}};
p0.prototype.getPathMutationSignal=function(I){var C=_.T(I);I=C.next().value;C=B2(C);return bT(this,I).getPathMutationSignal(C)};
p0.prototype.notifyPath=function(I,C){var y=_.T(I);I=y.next().value;y=B2(y);bT(this,I).notifyPath(y,C)};
var ZcS=function(I,C){if(C.type==="literal")return function(){return{rootWasDefined:!0,value:C.value}};
var y=XI(C.path),k=_.T(y),F=k.next().value;k=B2(k);var z,c;if(C.type==="path"&&(y.length===1||((z=I.options)==null?0:(c=z.immutableProps)==null?0:c.has(F))))return function(){var p=I.getWithPath(y.slice(0,1)),Q=$m(p,y.slice(1));p=p!==void 0;DL&&(p=bT(I,y[0]).wasDefined);return{rootWasDefined:p,value:Q}};
var r=bT(I,F);if(C.type==="path"){var w=r.getPathMutationSignal(k);return function(){var p=DL?r.wasDefined:Y4(I.owner,function(){return r.getWithPath([])})!==void 0;
var Q,X=(Q=w())==null?void 0:Q.value;return{rootWasDefined:p,value:X}}}if(C.type==="splices"){var L=r.getSplicesSignal(k);
return function(){var p=L();return{rootWasDefined:DL?r.wasDefined:p!==void 0,value:p}}}var D=r.getChangeRecordSignal(k,""+F);
return function(){var p=D();return{rootWasDefined:DL?r.wasDefined:p!==void 0,value:p}}},Drs=function(I,C,y){var k=y.map(function(r){return ZcS(I,r)}),F=y.length===0,z=[],c=y.length!==1||y[0].type!=="path"?!1:!0;
I.effect(function(){for(var r=k.length,w=[],L=!!z.length,D=0;D<r;D++){var p=k[D](),Q=p.rootWasDefined;p=p.value;F||(F=Q);w[D]=p;c&&(w[D+r]=L?z[D]:w[D],z[D]=p)}F&&Y4(I.owner,function(){return void C.apply(null,_.Py(w))})})},izY=function(I,C,y,k,F){var z=bT(I,C);
F!==void 0&&z.setWithPath([],F);Drs(I,function(){var c=_.wa.apply(0,arguments);PO(I.model.hostElement,C,!0);z.setWithPath([],y.apply(null,_.Py(c)))},k)};
p0.prototype.arrayPush=function(I){var C=_.wa.apply(1,arguments),y=_.T(I),k=y.next().value;y=B2(y);k=bT(this,k);return k.push.apply(k,[y].concat(_.Py(C)))};
p0.prototype.arraySplice=function(I,C,y){var k=_.wa.apply(3,arguments),F=_.T(I),z=F.next().value;F=B2(F);z=bT(this,z);return z.splice.apply(z,[F,C,y].concat(_.Py(k)))};
p0.prototype.arrayUnshift=function(I){var C=_.wa.apply(1,arguments),y=_.T(I),k=y.next().value;y=B2(y);k=bT(this,k);return k.unshift.apply(k,[y].concat(_.Py(C)))};
p0.prototype.notifySplices=function(I,C){var y=_.T(I);I=y.next().value;y=B2(y);bT(this,I).notifySplices(y,C)};var Rqz=/([^\s]+?)\(([\s\S]*)\)/,lhH=/\.([^.]+)$/,YAt=/\\,/g,V4z=/&comma;/g,juY=/\\(.)/g,bz9=[],Xx9={"*":"wildcard",splices:"splices"};var xr9=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"),gTm=/[A-Z]/,B2d=["class","hidden","id","on-dom-change"],mrW=new Set([].concat(_.Py(B2d),
["if","notify-dom-change","restamp"])),Zzz=new Set([].concat(_.Py(B2d),"as index-as initial-count items items-index-as notify-dom-change target-framerate strip-whitespace".split(" "))),BF9=new Set(["restamp"]);var EOO=new Set(["className","id"]);var J2F=Symbol(),oZO=window;var eWF=window;var DGY=0,weI=0,Ym=[],LQz=0,iom=!1,P1K=document.createTextNode("");(new window.MutationObserver(nZO)).observe(P1K,{characterData:!0});var fK=new Map,G$=0,EOq=function(I){this.mappedHandleId=I},Q9I=function(I,C,y,k){this.mappedHandleId=I;
var F=this;this.mappedHandleId=I;this.callback=C;this.waitTime=y;this.schedulerPriority=k;this.handleId=_.b$.addJob(function(){F.callback();fK.delete(F.mappedHandleId)},this.schedulerPriority||1,this.waitTime)};
_.R(Q9I,EOq);Q9I.prototype.cancel=function(){_.b$.cancelJob(this.handleId);fK.delete(this.mappedHandleId)};
var NPz=function(I,C){this.mappedHandleId=I;var y=this;this.mappedHandleId=I;this.callback=C;this.handleId=peI(function(){y.callback();fK.delete(y.mappedHandleId)})};
_.R(NPz,EOq);NPz.prototype.cancel=function(){var I=this.handleId-weI;I<0||Ym.length<=I||(Ym[I]=null);fK.delete(this.mappedHandleId)};var XeW=function(){};
XeW.prototype.cancel=function(){this.jobHandle!==void 0&&(Vv9(this.jobHandle),this.jobHandle=void 0)};
XeW.prototype.run=function(I,C,y){var k=this;this.cancel();this.callback=I;this.jobHandle=_.SA(function(){I();k.callback=void 0},C,y)};
XeW.prototype.flush=function(){this.callback&&this.jobHandle!==void 0&&(this.cancel(),this.callback())};
var j9m=new WeakMap;var h2P=he(function(I){for(var C=I,y=0;y<3;y++)C=Object.getPrototypeOf(C);delete C.prototype.connectedCallback;var k=function(){return I.apply(this,arguments)||this};
_.R(k,I);k.prototype._attachDom=function(F){if(!F)return null;var z=(0,_.IH)(this.hostElement);z.attachShadow({mode:"open",shadyUpgradeFragment:F});z.shadowRoot.appendChild(F);return z.shadowRoot};
k.prototype._takeAttributes=function(){for(var F=this.hostElement.attributes,z=0;z<F.length;z++){var c=F[z],r=void 0,w=void 0;(w=(r=this).__attributeReaction)==null||w.call(r,c.name,null,c.value)}};
k.prototype._readyClients=function(){I.prototype._readyClients.call(this);this.root=this};
k.prototype.connectedCallback=function(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this.hostElement);I.prototype.connectedCallback.call(this)};
_.H1.Object.defineProperties(k,{template:{configurable:!0,enumerable:!0,get:function(){return k.prototype._template}}});
return k}),Uoq=he(function(I){var C=function(){return I.apply(this,arguments)||this};
_.R(C,I);C.prototype.created=function(){if(this.__notifyEffects)for(var y=_.T(Object.values(this.__notifyEffects)),k=y.next();!k.done;k=y.next()){k=_.T(k.value);for(var F=k.next();!F.done;F=k.next())F.value.fn=YpF}if(this.__reflectEffects)for(y=_.T(Object.values(this.__reflectEffects)),k=y.next();!k.done;k=y.next())for(k=_.T(k.value),F=k.next();!F.done;F=k.next())F.value.fn=G7I};
C.prototype._addEventListenerToNode=function(y,k,F){y=AL(y);bf(y,k,F)||I.prototype._addEventListenerToNode.call(this,y,k,F)};
C.prototype._removeEventListenerFromNode=function(y,k,F){y=AL(y);Yd(y,k,F)||I.prototype._removeEventListenerFromNode.call(this,y,k,F)};
C.prototype._propertiesChanged=function(y,k,F){if(this.__dataToNotify&&this.__notifyEffects)for(var z=_.T(Object.keys(this.__dataToNotify)),c=z.next();!c.done;c=z.next()){c=c.value;var r=boO(c);this.__notifyEffects[r]||delete this.__dataToNotify[c]}else this.__dataToNotify=null;I.prototype._propertiesChanged.call(this,y,k,F)};
C.prototype.fire=function(y,k,F){k=k===void 0?{}:k;var z;return _.k3(AL((z=F==null?void 0:F.node)!=null?z:this),y,k,F)};
C.prototype._ensureAttribute=function(y,k){var F=AL(this);F.hasAttribute(y)||RH(F,k,y)};
C.prototype.isLightDescendant=function(y){var k=AL(this);return AL(k)!==y&&_.f(k).contains(y)&&_.f(k).getRootNode()===_.f(y).getRootNode()};
return C});
_.pV.ready=function(){var I;((I=this.hostElement)!=null?I:this).addEventListener("focus",this._boundFocusBlurHandler,!0);var C;((C=this.hostElement)!=null?C:this).addEventListener("blur",this._boundFocusBlurHandler,!0)};
_.Ri._subscribeIronResize=function(I){var C;((C=I.hostElement)!=null?C:I).addEventListener("iron-resize",this._boundOnDescendantIronResize)};
_.Ri._unsubscribeIronResize=function(I){var C;((C=I.hostElement)!=null?C:I).removeEventListener("iron-resize",this._boundOnDescendantIronResize)};var KQz=[Array,Boolean,Date,Number,Object,String],vO=function(I,C,y,k){this.polySiInfo=I;this.polySiParams=C;this.polySiContext=y;this.upgradeDisabled=this.isPolySiElementConnected=this.didCallReady=!1;this.mutablePropNames=new Set;k||this instanceof HTMLElement&&(k=this);if(!k)throw Error("Jg");this.allowedProps=C.allowedProps;this.hostElement=k;this.is=I.is;this.upgradeDisabled=!!C.legacyOptimizations&&this.hostElement.hasAttribute("disable-upgrade");I=new Set(C.reactiveSchemas.filter(function(F){return F.type!==
"observe"}).map(function(F){return F.propertyKey}));
this.signalProxy=new p0(this,void 0,{reactiveProps:I,reactivityMode:C.reactivityMode});this.__dataHasAccessor={};C=_.T(C.reactiveSchemas);for(I=C.next();!I.done;I=C.next())I=I.value,I.type==="signal"&&(this.__dataHasAccessor[I.propertyKey]=!0);this.upgradeDisabled||Hc5(this)};
vO.prototype.getExtraMethodsToForward=function(){return[]};
var Hc5=function(I){I.polySiContext.didRegister||(I.registered(),I.polySiContext.didRegister=!0);I.polySiContext.finalizedTemplate||(I.polySiContext.finalizedTemplate={},I.polySiParams.templateGetter&&(I.polySiContext.finalizedTemplate.processedTemplate=rDs(I.polySiParams.templateGetter,I.polySiParams.is)));tWw(I);var C=I.hostElement;C.loggingStatus!=null||(C.loggingStatus={});C.loggingStatus.isInitializing=!0;TO(function(){return void I.created()});
C.loggingStatus.isInitializing=!1;I.isPolySiElementConnected&&JCq(I)},JCq=function(I){I.didCallReady||(TO(function(){return void I.ready()}),I.didCallReady=!0);
I.isAttached=!0;I.attached()};
_.u=vO.prototype;_.u.connectedCallback=function(){this.isPolySiElementConnected=!0;this.upgradeDisabled||JCq(this)};
_.u.disconnectedCallback=function(){this.isPolySiElementConnected=!1;this.upgradeDisabled||(this.isAttached=!1,this.detached())};
_.u.attributeChangedCallback=function(I,C,y){if(this.upgradeDisabled)I==="disable-upgrade"&&y===null&&(this.upgradeDisabled=!1,Hc5(this));else if(C!==y){var k=_.P$(I),F=this.polySiContext.typesForSignals[k];if(F){switch(F){case Object:try{var z=JSON.parse(y)}catch(r){z=y}break;case Array:try{z=JSON.parse(y)}catch(r){z=null}break;case Date:z=isNaN(y)?String(y):Number(y);z=new Date(z);break;case Boolean:z=y!==null;break;case Number:z=Number(y);break;default:z=y}this[k]=z}k=_.T(this.polySiParams.behaviors);
for(F=k.next();!F.done;F=k.next())z=void 0,(z=F.value.attributeChanged)==null||z.call(this,I,C,y);var c;(c=this.attributeChanged)==null||c.call(this,I,C,y)}};
_.u.attributeChangedCallbackWrapper=function(I,C,y){this.attributeChangedCallback(I,C,y)};
_.u.setPropertiesFromInitialAttributeValues=function(){for(var I=0;I<this.hostElement.attributes.length;I++){var C=this.hostElement.attributes[I];(C.name==="disable-upgrade"||this.polySiParams.observedAttributes.includes(C.name))&&this.attributeChangedCallback(C.name,null,C.value)}};
_.u.created=function(){this.provide=this.polySiParams.provide;var I;(I=this.initializeInjection)==null||I.call(this);I=_.T(this.polySiParams.reactiveSchemas);for(var C=I.next();!C.done;C=I.next())C=C.value,C.type==="signal"&&(this.mutablePropNames.add(C.propertyKey),bT(this.signalProxy,C.propertyKey));SpW(this,this.polySiInfo,this.polySiParams.behaviors);I=_.T(this.polySiParams.reactiveSchemas);for(C=I.next();!C.done;C=I.next())C=C.value,C.type==="signal"&&C.value!==void 0&&(this.signalProxy.model[C.propertyKey]=
typeof C.value==="function"?C.value.call(this):C.value);if(this.polySiParams.signalProperties)for(I=_.T(this.polySiParams.signalProperties),C=I.next();!C.done;C=I.next()){C=C.value;var y=void 0;((y=this.__signalCache)==null?0:y.has(C))||(this.signalProxy.model[C]=void 0)}gOw||Oc0(this);fwW(this);I=_.T(this.polySiParams.behaviors);for(C=I.next();!C.done;C=I.next())y=void 0,(y=C.value.created)==null||y.call(this);var k;(k=this.polySiInfo.created)==null||k.call(this)};
_.u.registered=function(){var I=this;this.polySiParams.legacyOptimizations&&this.polySiContext.copyPropertiesToProto();var C=Object.getPrototypeOf(this);C.addReactiveSchema=function(r){I.polySiParams.reactiveSchemas.push(r)};
for(var y=_.T(this.polySiParams.behaviors),k=y.next();!k.done;k=y.next()){var F=void 0;(F=k.value.beforeRegister)==null||F.call(C)}var z;(z=this.polySiInfo.beforeRegister)==null||z.call(C);C.addReactiveSchema=gZH;y=_.T(this.polySiParams.behaviors);for(k=y.next();!k.done;k=y.next())F=void 0,(F=k.value.registered)==null||F.call(C);var c;(c=this.polySiInfo.registered)==null||c.call(C)};
_.u.ready=function(){var I;(I=this.beforeReady)==null||I.call(this);gOw&&Oc0(this);var C;if(I=(C=this.polySiContext.finalizedTemplate)==null?void 0:C.processedTemplate){I=cDF(I.template,I.nodeInfoList,this.signalProxy,{eventListenerHost:this,hasInsertionPoint:I.hasInsertionPoint,thisCtx:this});C=I.nodesById;I=I.root;var y=this.hostElement;var k=k===void 0?!1:k;y=(0,_.IH)(y);if(!y.attachShadow)throw Error("Bd");if(!y.shadowRoot||k)y.attachShadow({mode:"open",shadyUpgradeFragment:I}),y.shadowRoot.appendChild(I);
this.root=y.shadowRoot;this.$=C}a1e(this);k=_.T(this.polySiParams.behaviors);for(C=k.next();!C.done;C=k.next())I=void 0,(I=C.value.ready)==null||I.call(this);var F;(F=this.polySiInfo.ready)==null||F.call(this)};
_.u.attached=function(){for(var I=_.T(this.polySiParams.behaviors),C=I.next();!C.done;C=I.next()){var y=void 0;(y=C.value.attached)==null||y.call(this)}var k;(k=this.polySiInfo.attached)==null||k.call(this)};
_.u.detached=function(){for(var I=_.T(this.polySiParams.behaviors),C=I.next();!C.done;C=I.next()){var y=void 0;(y=C.value.detached)==null||y.call(this)}var k;(k=this.polySiInfo.detached)==null||k.call(this)};
var tWw=function(I){for(var C=_.T(I.polySiParams.behaviors),y=C.next();!y.done;y=C.next())if(y=y.value,y.listeners)for(var k in y.listeners)TPI(I,I.hostElement,k,y.listeners[k]);if(I.polySiInfo.listeners)for(var F in I.polySiInfo.listeners)TPI(I,I.hostElement,F,I.polySiInfo.listeners[F])},TPI=function(I,C,y,k,F){I=eqt(I,k,F);
bf(C,y,I)||C.addEventListener(y,I);return I},Oc0=function(I){for(var C=_.T(I.polySiParams.reactiveSchemas),y=C.next();!y.done;y=C.next())y=y.value,y.type==="compute"||y.type==="computeWithMethod"?wxs(I.signalProxy,y,I):y.type==="redux"?Llz(I.signalProxy,y,I.store):y.type==="signal"&&y.readOnly&&Pnt(I.signalProxy,y)},a1e=function(I){for(var C=_.T(I.polySiParams.reactiveSchemas),y=C.next(),k={};!y.done;k={schema$jscomp$12:void 0},y=C.next())k.schema$jscomp$12=y.value,k.schema$jscomp$12.type==="notify"?
pxz(I.signalProxy,k.schema$jscomp$12,I.hostElement):k.schema$jscomp$12.type==="observe"?QuW(I.signalProxy,k.schema$jscomp$12,I):k.schema$jscomp$12.type==="reflect"&&I.signalProxy.effect(function(z){return function(){var c=I.signalProxy.getWithPath([z.schema$jscomp$12.propertyKey]);
fhs(I.hostElement,z.schema$jscomp$12.propertyKey,c)}}(k));
if(I.reflectedAttributes)for(C=_.T(Object.entries(I.reflectedAttributes)),k=C.next(),y={};!k.done;y={key$jscomp$873:void 0,value$jscomp$8714:void 0},k=C.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;y.key$jscomp$873=k;y.value$jscomp$8714=F;I.signalProxy.effect(function(z){return function(){fhs(I.hostElement,z.key$jscomp$873,(0,z.value$jscomp$8714)())}}(y))}};
_.u=vO.prototype;_.u._setPendingProperty=function(I,C){this.set(I,C);return!1};
_.u._enableProperties=function(){};
_.u._setPendingPropertyOrPath=function(I,C){this.notifyPath(I,C);return!1};
_.u._addPropertyEffect=function(){};
_.u._stampTemplate=function(){throw Error("Kg");};
_.u.fire=function(I,C,y){C=C===void 0?{}:C;y=y===void 0?{}:y;var k,F,z={bubbles:(k=y.bubbles)!=null?k:!0,cancelable:!!y.cancelable,composed:(F=y.composed)!=null?F:!0},c;return _.k3(vZm((c=y.node)!=null?c:this.hostElement),I,C,z)};
_.u.get=function(I,C){var y=XI(I);return C?$m(C,y):I==="hidden"?this.hostElement.hidden:this.signalProxy.getWithPath(y)};
_.u.linkPaths=function(){};
_.u.listen=function(I,C,y){I=vZm(I);this.boundListeners!=null||(this.boundListeners=new WeakMap);var k=this.boundListeners.get(I);k||(k={},this.boundListeners.set(I,k));var F=C+y;k[F]||(k[F]=TPI(this,I,C,y))};
_.u.notifyPath=function(I,C){this.signalProxy.notifyPath(XI(I),arguments.length===2?{value:C}:void 0)};
_.u.canNotifyPath=function(I){var C,y;return this.mutablePropNames.has(I)&&!((C=this.signalProxy.options)==null?0:(y=C.immutableProps)==null?0:y.has(I))};
_.u.notifySplices=function(I,C){this.signalProxy.notifySplices(XI(I),C)};
_.u.pop=function(I){var C=this.signalProxy;I=XI(I);var y=_.T(I);I=y.next().value;y=B2(y);return bT(C,I).pop(y)};
_.u.push=function(I){var C=_.wa.apply(1,arguments);return this.signalProxy.arrayPush.apply(this.signalProxy,[XI(I)].concat(_.Py(C)))};
_.u.set=function(I,C,y){if(y)throw Error("Lg");I==="hidden"?this.hostElement.hidden=!!C:this.signalProxy.setWithPath(XI(I),C)};
_.u.setProperties=function(I){I=_.T(Object.entries(I));for(var C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;this[C]=y}};
_.u.splice=function(I,C,y){var k=_.wa.apply(3,arguments);return this.signalProxy.arraySplice.apply(this.signalProxy,[XI(I),C,y].concat(_.Py(k)))};
_.u.unlinkPaths=function(){};
_.u.unlisten=function(I,C,y){I=vZm(I);if(this.boundListeners){var k=this.boundListeners.get(I);if(k){y=C+y;var F=k[y];F&&(Yd(I,C,F)||I.removeEventListener(C,F),delete k[y])}}};
_.u.unshift=function(I){var C=_.wa.apply(1,arguments);return this.signalProxy.arrayUnshift.apply(this.signalProxy,[XI(I)].concat(_.Py(C)))};
_.H1.Object.defineProperties(vO.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 HoY=[Array,Boolean,Date,Number,Object,String];var Oom=!1;var QL=function(){var I=HTMLElement.apply(this,arguments)||this;I.restamp=!1;I.notifyDomChange=!1;I.JSC$11240_didCallConnected=!1;I.JSC$11240_renderDebouncer=null;I.disableTemplateUpdateSignalImpl=WO()?void 0:_.c4(!1,void 0,"bmozBd");var C;I.getDisableTemplateUpdate=(C=I.disableTemplateUpdateSignalImpl)==null?void 0:C[0];var y;I.setDisableTemplateUpdate=(y=I.disableTemplateUpdateSignalImpl)==null?void 0:y[1];return I};
_.R(QL,HTMLElement);var MWw=function(I){I.conditionSignalImpl!=null||(I.conditionSignalImpl=new L0(_.c4(!1,void 0,"NYV5Rb")));return I.conditionSignalImpl};
_.u=QL.prototype;_.u.showHideChildren=function(I){IGw(this,I,this.if)};
_.u.attributeChangedCallback=function(I,C,y){if(this.JSC$11240_didCallConnected)throw Error("Pg`"+I);I==="notify-dom-change"?this.notifyDomChange=y!==null:I==="restamp"&&(this.restamp=y!==null)};
_.u.debounceRender=function(){this.JSC$11240_renderDebouncer=_.on(this.JSC$11240_renderDebouncer,f7,this.JSC$11240_renderImpl.bind(this));_.yP(this.JSC$11240_renderDebouncer)};
_.u.disconnectedCallback=function(){var I=(0,_.IH)(this).parentNode;(!I||I.nodeType===Node.DOCUMENT_FRAGMENT_NODE&&"host"in I&&!I.host)&&CVm(this)};
_.u.connectedCallback=function(){var I=this;this.JSC$11240_didCallConnected=!0;KDY?awY():this.style.display="none";this.parentSignalProxy.effect(function(){MWw(I).getWithPath([]);I.debounceRender()})};
_.u.render=function(){_.zJ()};
_.u.JSC$11240_renderImpl=function(){if(!this.parentSignalProxy.isDisposed){var I=this.if;if(I){a:{var C=(0,_.IH)(this).parentNode;if(this.hasInstance()){var y=this.instance.children;if((y==null?0:y.length)&&(0,_.IH)(this).previousSibling!==y[y.length-1])for(var k=0;k<y.length;k++)(0,_.IH)(C).insertBefore(y[k],this)}else{if(!C){C=!1;break a}sKc(this,C)}C=!0}if(!C)return}else this.restamp&&CVm(this);IGw(this,!1,I);I&&oWu(this);ACe&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",
{bubbles:!0,composed:!0}))}};
_.u.hasInstance=function(){return!!this.instance};
var sKc=function(I,C){var y=I.parentSignalProxy;if(WO()){var k=_.T(_.c4(!0,void 0,"tGD1cf"));var F=k.next().value;k=k.next().value;y=I.parentSignalProxy}else{var z;var c=new p0((z=y8w(I))!=null?z:{},function(w){var L=bT(I.parentSignalProxy,w).getChangeRecordSignal([]);w=_.c4(void 0,void 0,"dOaz1b");var D=new L0(w);c.effect(function(){if(I.getDisableTemplateUpdate&&!I.getDisableTemplateUpdate()){var p=L();D.notifyPath(XI(p.path),{value:p.value})}});
return D});
I.parentSignalProxy.childSignalProxies.push(c);var r=y=c}z=cDF(I.templateInfo,I.templateInfo.nodeInfoList,y,{eventListenerHost:I.eventListenerHost,hasInsertionPoint:I.templateInfo.hasInsertionPoint,thisCtx:I.eventListenerHost,enabledSignal:WO()?F:void 0,scope:I.parentScope,getModel:function(){return I.parentScope?MvY(y.owner,I.parentScope):y8w(I)}}).root;
I.instance={root:z,children:[],hidden:!1,signalProxy:r,getTemplateUpdatesEnabled:F,setTemplateUpdatesEnabled:k};r=_.T(z.childNodes);for(F=r.next();!F.done;F=r.next())I.instance.children.push(F.value);(0,_.IH)(C).insertBefore(I.instance.root,I)},y8w=function(I){if((I=I.parentSignalProxy.model)&&!I.hostElement){var C={},y;
for(y in I)I.hasOwnProperty(y)&&(C[y]=I[y]);return C}},CVm=function(I){if(I.instance){var C=I.instance.children;
if(C.length){var y=(0,_.IH)(C[0]).parentNode;if(y){y=(0,_.IH)(y);for(var k=0;k<C.length;k++)y.removeChild(C[k])}}WO()?I.instance.setTemplateUpdatesEnabled(!1):I.instance.signalProxy.dispose();I.instance=void 0}},IGw=function(I,C,y){C=C||!y;
I.instance&&I.instance.hidden!==C&&(I.instance.hidden=C,JDI(C,I.instance.children))},oWu=function(I){if(WO()){var C=I.instance;
C&&Y4(I.parentSignalProxy.owner,function(){return!C.getTemplateUpdatesEnabled()})&&C.setTemplateUpdatesEnabled(!0)}else I.setDisableTemplateUpdate(!1)};
_.H1.Object.defineProperties(QL.prototype,{if:{configurable:!0,enumerable:!0,get:function(){var I=this;return Y4(this.parentSignalProxy.owner,function(){return MWw(I).getWithPath([])})},
set:function(I){I||(WO()?this.instance&&this.instance.setTemplateUpdatesEnabled(!1):this.setDisableTemplateUpdate(!0));MWw(this).setWithPath([],!!I)}}});
_.H1.Object.defineProperties(QL,{observedAttributes:{configurable:!0,enumerable:!0,get:function(){return["restamp","notify-dom-change"]}}});
customElements.define("ps-dom-if",QL);var krm=[],N8=function(){var I=HTMLElement.apply(this,arguments)||this;I.as="item";I.indexAs="index";I.itemsIndexAs="itemsIndex";I.targetFramerate=20;I.notifyDomChange=!1;I.isDetached=!1;I.JSC$11247_renderDebouncer=null;I.instances=[];I.chunkingId=null;I.chunkCount=null;I.shouldMeasureChunk=!1;I.shouldContinueChunking=!1;I.renderStartTime=null;I.JSC$11247_didCallConnected=!1;return I};
_.R(N8,HTMLElement);var FT5=function(I){I.itemSignalImpl!=null||(I.itemSignalImpl=new L0(_.c4(krm,void 0,"uvlPIb")));return I.itemSignalImpl},uEw=function(I,C){Array.isArray(C)||(C=krm);
FT5(I).setWithPath([],C)};
_.u=N8.prototype;_.u.showHideChildren=function(I){for(var C=_.T(this.instances),y=C.next();!y.done;y=C.next())JDI(I,y.value.children)};
_.u.notifyPath=function(I,C){I=XI(I);I[0]==="items"&&(I.length===1?uEw(this,C):FT5(this).setWithPath(I.slice(1),C))};
_.u.canNotifyPath=function(I){return I==="items"};
_.u.attributeChangedCallback=function(I,C,y){if(this.JSC$11247_didCallConnected)throw Error("Qg`"+I);I==="as"?this.as=y:I==="index-as"?this.indexAs=y:I==="items-index-as"?this.itemsIndexAs=y:I==="initial-count"?this.initialCount=Number(y):I==="notify-dom-change"?this.notifyDomChange=y!==null:I==="target-framerate"&&(this.targetFramerate=Number(y))};
_.u.disconnectedCallback=function(){this.isDetached=!0;for(var I=0;I<this.instances.length;I++)zcb(this,I);this.chunkingId&&cancelAnimationFrame(this.chunkingId)};
_.u.connectedCallback=function(){var I=this,C=FT5(this).getChangeRecordSignal([],"");this.parentSignalProxy.effect(function(){var F=C(),z=XI(F.path);if(z[0]===void 0||z[0]==="splices"||z[0]==="length")I.debounceRender();else{var c=z[0];if(c=I.instances[typeof c==="string"?Math.floor(Number(c)):c])c.type==="legacy"?(z=[I.as].concat(_.Py(z.slice(1))),c.signalProxy.notifyPath(z,F)):(z=z.slice(1),c.itemSignal.notifyPath(z,F))}});
this.JSC$11247_didCallConnected=!0;KDY?awY():this.style.display="none";if(this.isDetached){this.isDetached=!1;for(var y=(0,_.IH)((0,_.IH)(this).parentNode),k=0;k<this.instances.length;k++)y.insertBefore(this.instances[k].root,this);this.chunkingId&&this.render()}};
_.u.debounceRender=function(){this.JSC$11247_renderDebouncer=_.on(this.JSC$11247_renderDebouncer,f7,this.JSC$11247_renderImpl.bind(this));_.yP(this.JSC$11247_renderDebouncer)};
_.u.render=function(){this.debounceRender();_.zJ()};
_.u.JSC$11247_renderImpl=function(){var I=this,C=this.items,y=T_w(this,C.length);c8P(this,C,y);this.initialCount&&(this.shouldMeasureChunk||this.shouldContinueChunking)&&(cancelAnimationFrame(this.chunkingId),this.chunkingId=requestAnimationFrame(function(){I.chunkingId=null;if(I.shouldMeasureChunk){var k=performance.now()-I.renderStartTime;I.chunkCount=Math.round(Math.ceil(1E3/I.targetFramerate)/k*I.chunkCount)||1}I.shouldContinueChunking&&I.debounceRender()}));
ACe&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))};
var T_w=function(I,C){var y=C,k=I.instances.length;if(I.initialCount){if(I.chunkCount){var F=Math.min(Math.max(C-k,0),I.chunkCount);y=Math.min(k+F,C)}else y=Math.min(C,I.initialCount),F=Math.max(y-k,0),I.chunkCount=F||1;I.shouldMeasureChunk=F===I.chunkCount;I.shouldContinueChunking=y<C;I.renderStartTime=performance.now()}return y},c8P=function(I,C,y){for(var k=0;k<y;k++){var F=I.instances[k],z=C[k];
F?F.type==="legacy"?(F.signalProxy.setWithPath([I.as],z),F.signalProxy.setWithPath([I.indexAs],k)):(F.itemSignal.setWithPath([],z),F.setIndex(k)):ecd(I,z,k)}for(C=I.instances.length-1;C>=k;C--)y=I,F=C,zcb(y,F),y=_.T(y.instances.splice(F,1)).next().value,y.type==="legacy"?y.signalProxy.dispose():y.setDisabled()},zcb=function(I,C){I=I.instances[C];
C=(0,_.IH)(I.root);for(var y=0;y<I.children.length;y++)C.appendChild(I.children[y])},ecd=function(I,C,y){var k={};
k=Object.assign({},r85(I),(k[I.as]=C,k[I.indexAs]=y,k[I.itemsIndexAs]=y,k));if(_.V("dom_repeat_use_ambient_signals")||_.V("creator_dom_repeat_use_ambient_signals")){C=new L0(_.c4(C,void 0,"g83Pb"));var F=_.T(_.c4(y,void 0,"tQRdod"));k=F.next().value;F=F.next().value;var z=_.T(I1X());var c=z.next().value,r=z.next().value;z={};var w={parentScope:I.parentScope,signals:(z[I.as]={type:"mutable",signal:C},z[I.indexAs]={type:"signal",getter:k},z[I.itemsIndexAs]={type:"signal",getter:k},z)};z=cDF(I.templateInfo,
I.templateInfo.nodeInfoList,I.parentSignalProxy,{eventListenerHost:I.eventListenerHost,getModel:function(){return MvY(I.parentSignalProxy.owner,w)},
hasInsertionPoint:I.templateInfo.hasInsertionPoint,thisCtx:I.eventListenerHost,methodInvocationRequirement:vOu,enabledSignal:function(){return(I.stampingEnabled===void 0||I.stampingEnabled())&&c()},
scope:w}).root;C={type:"ambientSignal",root:z,children:[],itemSignal:C,getIndex:k,setIndex:F,getEnabled:c,setDisabled:r}}else{var L=new p0(k,function(D){if(D!==I.as&&D!==I.indexAs){if(D===I.itemsIndexAs)return bT(L,I.indexAs);var p=bT(I.parentSignalProxy,D).getChangeRecordSignal([]);D=_.c4(void 0,void 0,"UobVm");var Q=new L0(D);L.effect(function(){var X=p();Q.notifyPath(XI(X.path),{value:X.value})});
return Q}});
I.parentSignalProxy.childSignalProxies.push(L);z=cDF(I.templateInfo,I.templateInfo.nodeInfoList,L,{eventListenerHost:I.eventListenerHost,getModel:function(){var D={};return Object.assign({},r85(I),(D[I.as]=L.model[I.as],D[I.indexAs]=L.model[I.indexAs],D[I.itemsIndexAs]=L.model[I.indexAs],D))},
hasInsertionPoint:I.templateInfo.hasInsertionPoint,thisCtx:I.eventListenerHost,methodInvocationRequirement:vOu,enabledSignal:I.stampingEnabled}).root;C={type:"legacy",root:z,children:[],signalProxy:L}}k=_.T(z.childNodes);for(F=k.next();!F.done;F=k.next())C.children.push(F.value);k=(k=I.instances[y+1])?k.children[0]:I;(0,_.IH)((0,_.IH)(I).parentNode).insertBefore(C.root,k);I.instances[y]=C},r85=function(I){if((I=I.parentSignalProxy.model)&&!I.hostElement){var C={},y;
for(y in I)I.hasOwnProperty(y)&&(C[y]=I[y]);return C}};
N8.prototype.itemForElement=function(I){var C=this,y=this.instances.find(function(k){return k.children.includes(I)});
if(y)return Y4(this.parentSignalProxy.owner,function(){return y.type==="legacy"?y.signalProxy.getWithPath([C.as]):y.itemSignal.getWithPath([])})};
N8.prototype.indexForElement=function(I){var C=this.instances.findIndex(function(y){return y.children.includes(I)});
return C>=0?C:void 0};
_.H1.Object.defineProperties(N8.prototype,{items:{configurable:!0,enumerable:!0,get:function(){var I=this;return Y4(this.parentSignalProxy.owner,function(){return FT5(I).getWithPath([])})},
set:function(I){uEw(this,I)}},
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}}});
_.H1.Object.defineProperties(N8,{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",N8);var ism,wq8;_.VL=new _.Jj("STATE_STORE_TOKEN");ism=new _.Jj("SELECT_TOKEN");wq8=new _.Jj("DISPATCH_TOKEN");var FDI={getSelectFn:function(){var I;return(I=_.N().resolve(_.aU(ism)))!=null?I:C9K},
getDispatchFn:function(){var I;return(I=_.N().resolve(_.aU(wq8)))!=null?I:_.dW().dispatch.bind(_.dW())},
getAppStore:function(){return _.N().resolve(_.VL)}},sOm,koH=!1;var T2H=void 0;var nWu=function(){};
nWu.prototype.hasAttribute=function(I){if(I==="dir")return!1;if(I==="disable-upgrade"){var C,y;return(y=(C=this.hostElement)==null?void 0:C.hasAttribute("disable-upgrade"))!=null?y:!1}throw Error("Rg`"+I);};
nWu.prototype.attributeChangedCallbackWrapper=function(I,C,y){if(I==="disable-upgrade"&&this.__isUpgradeDisabled&&y===null){this._initializeProperties();this.__isUpgradeDisabled=!1;var k;((k=this.hostElement)!=null?k:this).isConnected&&this.connectedCallback()}else C===y||this.__isReflecting||this.attributeChangedCallback(I,C,y)};
nWu.prototype.getExtraMethodsToForward=function(){for(var I=this,C=[],y=_.T(PVw),k=y.next(),F={};!k.done;F={tagName$jscomp$52:void 0,name$jscomp$534:void 0},k=y.next())F.name$jscomp$534=k.value,k=void 0,F.name$jscomp$534==="_setPendingProperty"?(F.tagName$jscomp$52=this.hostElement.tagName.toLowerCase(),k=function(z){return function(c,r,w){nK(z.tagName$jscomp$52,c,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");return I._setPendingProperty(c,r,w)}}(F)):k=function(z){return function(){return I[z.name$jscomp$534].apply(I,
_.Py(_.wa.apply(0,arguments)))}}(F),C.push([F.name$jscomp$534,
k]);return C};
for(var P9I=Uoq(h2P((0,_.L6)(nWu))),QOK=["disabled","disable-upgrade"],LT0=(0,_.L6)(function(){}),D5e=new Set(Object.getOwnPropertyNames(LT0.prototype)),XoI=new Set("is hostElement root rootPath importPath inject behaviors properties provide".split(" ").concat(_.Py(D5e))),VWK=new Set(["__dataEnabled",
"__dataHasAccessor","__dataPending","__isPropertyEffectsClient","__readOnly"]),PVw=new Set("_enableProperties _flushProperties _setPendingProperty _setPendingPropertyOrPath set get".split(" ")),pq5=new Set([].concat(_.Py(VWK),_.Py(PVw),_.Py(D5e))),QK8=_.T(pq5),N_q=QK8.next();!N_q.done;N_q=QK8.next())ZDm.add(N_q.value);var l1z={created:function(){fwW(this);this.initializeInjection()}};var ACI=!1,HO=window.ShadyDOM,ZcH=["appendChild","insertBefore","removeChild","replaceChild"],mom=[Node];HO&&mom.push(HO.Wrapper);var tWF,JCO,MWF={};var Ob=new Set,tL="",IGF="";var JL,aH=new Set;var T_m=new Set("context didCallReady is info params signalProxy".split(" ")),ecW="_enableProperties _setPendingProperty _setPendingPropertyOrPath fire get linkPaths listen notifyPath notifySplices pop push set setProperties splice unlinkPaths unlisten unshift".split(" "),r89="__dataHasAccessor __isPropertyEffectsClient $ hostElement isAttached observers properties".split(" ");var Vnq=iG({entities:o1W}),jKY=new Ue(Vnq);var j9=function(){return _.cO.apply(this,arguments)||this};
_.R(j9,_.cO);_.H1.Object.defineProperties(j9.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return jKY}}});
j9=_.E([_.eA()],j9);_.la=[n0.prototype,j9.prototype];_.Xk={YtLiveChatTooltipTargetingBehavior:{created:function(){this.handler_=null},
ready:function(){var I=this,C={};setTimeout(function(){var y;return _.k3((y=I.hostElement)!=null?y:I,"yt-live-chat-add-tooltip-target",C)},0);
this.handler_=C.handler},
detached:function(){if(this.handler_){var I;this.handler_.removeElementFromSupportingTooltips((I=this.hostElement)!=null?I:this)}this.handler_=null}}};_.k$=new _.Jj("ICON_MANAGER_TOKEN");var lGw=[48,20,18,16,15,13,12],A8I=new Map,bs9=new Set,Xqz=new Set,RcX=new Set,lGF=new Set,$5H=new Set,Grt=new Promise(function(I){var C=!1,y=!1,k=!1,F=[],z=function(c){if("detail"in c)if(c=c.detail,c.name==="yt-icons")YEW(c),C=!0;else if(c.name==="yt-sys-icons")YEW(c),y=!0;else{var r;((r=c.name)==null?0:r.includes("yt-sys-icons"))&&c.size!==24&&(YEW(c,!0),F.push(c.size),F.length===lGw.length&&(k=!0))}C&&y&&k&&(window.removeEventListener("iron-iconset-added",z),I())};
window.addEventListener("iron-iconset-added",z)}),SEF=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"]]);_.$y={};_.$y.YtComponentBehavior={_noAccessors:!0,getSimpleString:_.hS,computeHref_:function(I,C){C=C===void 0?!1:C;if(!I||I.commandExecutorCommand)return null;var y=Y5s(I,C);return C||y!==null?y?_.V("enable_polymer_resin")?_.ra(y).toString():y:null:(_.SN(new _.ph("computeHref was null",this.is,I)),null)},
computeOptionalHref_:function(I){return this.computeHref_(I,!0)},
computeNofollow_:function(I){return I?Qjs(I)?"nofollow":null:null},
computeIcon_:function(I){return I&&I.iconType?_.y5(I.iconType):""},
resolveCommand:function(I,C,y){C=C===void 0?{}:C;return _.uU(I,this.hostElement,C,y===void 0?!1:y)}};var $5S,RA;_.Xqu={};$5S=null;
RA={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_=Lkm(this.viewroot));_.SA(this.initVisibilityObserver_.bind(this))},
initVisibilityObserver_:function(){this.visibilityObserver&&this.configureVisibilityObserver_()},
configureVisibilityObserver_:function(){var I=this;this.unobserve_();if(_.V("kevlar_vimio_use_shared_monitor"))x5H(this.hostElement,{data:this.data||null,observer:this.visibilityObserver,visibilityCallback:this.visibilityCallback.bind(this),prescanCallback:this.onPrescanVisible.bind(this),layer:this.getScreenLayer&&this.getScreenLayer(),showOption:this.visibilityOptionVisible_,hideOption:this.visibilityOptionHidden_,prescanOption:this.visibilityOptionPrescan_,skipLogging:this.shouldSkipLogging.bind(this)});
else{var C=[];this.visibilityOptionVisible_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onVisible()},this.visibilityOptionVisible_));
this.visibilityOptionHidden_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onHidden()},this.visibilityOptionHidden_));
this.visibilityOptionPrescan_&&C.push(this.visibilityObserver.observe(this.hostElement,function(){return I.onPrescanVisible()},this.visibilityOptionPrescan_));
this.visibilityMonitorKeys=C}},
detached:function(){this.unobserve_();this.visibilityObserverForChild_=this.localVisibilityObserver_=null},
unobserve_:function(){gW9(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 I=_.$F(this.parentNode,function(y){var k,F=(k=y.polymerController)!=null?k:y;return!!F.getVisibilityObserverForChild&&F.getVisibilityObserverForChild()},!0);
if(I){var C;this.localVisibilityObserver_=((C=I.polymerController)!=null?C:I).getVisibilityObserverForChild()}else $5S||($5S=Lkm()),this.localVisibilityObserver_=$5S;return this.localVisibilityObserver_},visibilityCallback:function(I){I?this.onVisible():this.onHidden()},
onVisible:function(){},
onHidden:function(){},
onPrescanVisible:function(){},
shouldSkipLogging:function(){}};
_.V("kevlar_use_vimio_behavior")||(RA={});RA&&!_.V("kevlar_use_vimio_behavior")&&(delete RA.attached,delete RA.detached);_.Xqu.YtVisibilityObserverBehavior=[RA];var Rcc={};Rcc.YtVisualElementBehavior=[_.Xqu.YtVisibilityObserverBehavior,{properties:{observeVisibleOption:{type:String,value:"observe_multiple"},observeHiddenOption:{type:String,value:"observe_multiple"},visualElement:Object},onVisible:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onShow)this.onShow();if(!_.V("kevlar_vimio_use_shared_monitor")&&!this.shouldSkipLogging()){var I=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportShown(this,void 0,I)}},
onHidden:function(){if(_.V("kevlar_use_vimio_behavior")&&this.onHide)this.onHide();if(!_.V("kevlar_vimio_use_shared_monitor")){var I=this.getScreenLayer&&this.getScreenLayer(),C=this.getVisibilityLogger();C&&C.reportHidden(this,void 0,I)}},
getVisibilityLogger:function(){return _.V("kevlar_use_vimio_behavior")?_.Tp():null},
shouldSkipLogging:function(){if(_.Aq("INNERTUBE_CLIENT_NAME")!=="WEB"||!this.data)return!1;var I=this.getParentRenderer&&this.getParentRenderer();if(!I)return!1;var C,y=(C=I.polymerController)!=null?C:I;if(!y.data)return!1;I=this.data.trackingParams;I=this.data.loggingDirectives?this.data.loggingDirectives.trackingParams:I;var k;C=(k=y.data)==null?void 0:k.trackingParams;var F,z;C=((F=y.data)==null?0:F.loggingDirectives)?(z=y.data)==null?void 0:z.loggingDirectives.trackingParams:C;return I&&C&&I===
C}}];var B_m=new Map,P9;var OCm=function(I){this.layer=I},YA=function(I){return I.layer!==void 0?I.layer:I.parent?YA(I.parent):I.layer=0};var J8W;_.M={};J8W=0;_.M.YtRendererBehavior=[_.$y.YtComponentBehavior,Rcc.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_:_.V("kevlar_use_vimio_behavior"),created:function(){this.useVimio_||(this.childCache_=new Set)},
detached:function(){if(this.monitorScroll){var I,C;(C=(I=this.monitorScrollElement)!=null?I:this.hostElement)==null||C.removeEventListener("scroll",_.sb(this,this.onScroll))}this.parentComponent&&(this.parentComponent.childCache_&&this.parentComponent.childCache_.delete(this.hostElement),this.parentComponent=null);this.useVimio_||this.markDirty();m5W(this.hostElement);ADw(_.oA(),this.hostElement);HQ.delete(this.hostElement)},
registerRenderer:function(I){var C;((C=I.polymerController)!=null?C:I).parentComponent=this.hostElement;this.useVimio_||(this.childCache_.add(I),this.markDirty())},
unregisterRenderer_:function(I){this.useVimio_||(this.childCache_.delete(I),this.markDirty())},
attached:function(){var I=this,C=this.getParentRenderer();if(C){var y,k,F;(k=(y=(F=C.polymerController)!=null?F:C).registerRenderer)==null||k.call(y,this.hostElement)}if(!this.useVimio_&&this.monitorScroll){var z,c;(c=(z=this.monitorScrollElement)!=null?z:this.hostElement)==null||c.addEventListener("scroll",_.sb(this,this.onScroll))}_.b$.addJob(function(){EWs(I.hostElement)},8);
y=new OCm(this.screenLayer||void 0);(C=t7(C))&&C.layerNode&&(y.parent=C.layerNode);C={};l9z(this.hostElement,(C.isRenderer=!0,C.layerNode=y,C[GU]=this.data,C))},
getParentRenderer:function(){for(var I=this.hostElement.parentNode,C,y;I&&((C=t7(I))==null||!C.isRenderer)&&!((y=I.polymerController)!=null?y:I).isRenderer_;)I=I.parentNode||I.host;return I},
ytRendererBehaviorDataObserver_:function(){if(this.data){this.wasVisible=!1;_.V("kevlar_use_vimio_behavior")&&this.markDirtyVisibilityObserver();_.g5("ADD_SCRAPER_ATTRIBUTES")&&this.data.trackingParams&&(this.hostElement.dataset.ved=this.data.trackingParams);if(_.V("debug_web_ve_data")&&this.data.trackingParams){var I="";try{I=atob(this.data.trackingParams.replace(/-/g,"+").replace(/_/g,"/"))}catch(y){_.GB(y)}if(I){var C=EdX(I,1);C!==void 0&&(this.hostElement.dataset.veIndex=String(C));I=EdX(I,2);
I!==void 0&&(this.hostElement.dataset.ve=String(I))}}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,_.V("debug_web_ve_data")&&
(this.hostElement.dataset.ve=String(this.veType)),this.data.loggingDirectives.trackingParams&&(this.dataElement=_.nv(this.data.loggingDirectives.trackingParams)),this.visualElement=_.c9(_.e2(),this)||void 0,this.veFromLoggingDirective_=!0)}},
ytRendererBehaviorTargetIdObserver_:function(){if(this.data&&this.data.targetId){var I=this.data.targetId;_.vZb(_.oA(),I,this.hostElement)}else ADw(_.oA(),this.hostElement)},
onScroll:function(){var I=Date.now();I-this.lastHandledScroll_<50||(this.lastHandledScroll_=I,this.markDirty())},
markDirty:function(){_.V("kevlar_use_vimio_behavior")?this.markDirtyVisibilityObserver():OsX(this.hostElement)},
getScreenLayer:function(){if(this.screenLayer)return this.screenLayer;var I=this.getParentRenderer();if(I&&(I=t7(I))&&I.layerNode)return YA(I.layerNode)},
invalidate:function(){this.markDirty();this.wasPrescan=this.wasVisible=!1},
getNodes:function(){return this.childCache_?[].concat(_.Py(this.childCache_)):[]},
impressionLog:function(){if(this.data&&this.data.impressionEndpoints)for(var I=0;I<this.data.impressionEndpoints.length;I++)this.sendImpression(this.data.impressionEndpoints[I]);else this.data&&this.data.impressionEndpoint&&this.sendImpression(this.data.impressionEndpoint)},
sendImpression:function(I){I.clickTrackingParams&&delete I.clickTrackingParams;var C,y;(I==null?0:(C=I.commandMetadata)==null?0:(y=C.webCommandMetadata)==null?0:y.sendPost)?_.Tg(this.hostElement,[I,{impression:!0}]):_.cQ(this.hostElement,[I],this.hostElement)},
logExplicitClick:function(I){var C=_.Si(this.getScreenLayer());if(C){var y,k=(y=I.polymerController)!=null?y:I;I=k.visualElement;k=k.trackingParams||k.clickTrackingParams;!I&&k&&(I=_.nv(k));I&&_.EN(C,I)}}}];var bs5={},ba=function(){return _.cO.apply(this,arguments)||this};
_.R(ba,_.cO);ba.prototype.onPdgItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
ba.prototype.onPdgItemBehaviorClick=ba.prototype.onPdgItemBehaviorClick;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ba.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ba.prototype,"data",void 0);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],ba.prototype,"onPdgItemBehaviorClick",null);ba=_.E([_.eA()],ba);bs5.YtPdgLiveChatItemBehavior=[ba.prototype,_.M.YtRendererBehavior];var YEd;var GrY;_.Yy={};_.Yy.YtVisibilityBehavior={_noAccessors:!0,properties:{disablePrescanVisibility:Boolean,prescanHeight:{type:Number,reflectToAttribute:!0}},onShow:function(){if(this.onShow_)this.onShow_()}};var GZ=function(){var I=Jn.apply(this,arguments)||this;I.switchTemplateAtRegistration=!1;return I};
_.R(GZ,Jn);GZ.prototype.ready=function(){this.templatingFn&&(this.switchTemplateAtRegistration||Cmz(this),_.$Gt(this,"doRender"),this.doRender())};
GZ.prototype.debounceRender=function(){this.templatingFn&&_.KK(this,"doRender",this.doRender)};
GZ.prototype.doRender=function(){this.templatingFn?this.templatingFn():_.GB(Error("ah"))};
GZ.prototype.experimentalTemplatingInUse=function(){return!!this.templatingFn};
GZ=_.E([cuK()],GZ);var fGP=GZ;var SEw=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i,f0={},kPH=(f0[1]={filterString:null,isUnwrappable:null,unwrap:null},f0[2]={filterString:function(I,C,y){return IY(y)},
isUnwrappable:function(I){return I instanceof Qp},
unwrap:function(I){return Vp(I)}},f0[3]={filterString:function(I,C,y){return SEw.test(y)?y:eO.toString()},
isUnwrappable:function(I){return ui(I)},
unwrap:function(I){return _.zK(I)}},f0[4]={filterString:function(){return eO.toString()},
isUnwrappable:function(I){return I instanceof IM},
unwrap:function(I){return _.sC(I).toString()}},f0[5]={filterString:function(I,C,y){return y},
isUnwrappable:function(I){return typeof I==="string"},
unwrap:function(I){return I.toString()}},f0[7]={filterString:function(){return" /*zClosurez*/ "},
isUnwrappable:function(I){return I instanceof _.RM},
unwrap:function(I){return Yb(I)}},f0[8]={filterString:function(I,C,y){y=String(y).toLowerCase();
return oVz(I,C,y)?y:"zClosurez"},
isUnwrappable:null,unwrap:null},f0[10]={filterString:null,isUnwrappable:null,unwrap:null},f0);t3[SX["default"]]=uPH;var zGs=[];var R5W=cvO("A"),b_m=cvO("BUTTON"),PP=cvO("DIV"),YKW=cvO("LABEL");(function(){var I=hf;hf=function(C){I==null||I(C);pv(function(){for(var y=0;y<C.length;y++)T7I(C[y])})}})();var S9=function(){var I=_.cO.apply(this,arguments)||this;I.hasUnmounted=!1;return I};
_.R(S9,_.cO);_.u=S9.prototype;_.u.beforeRegister=function(){var I=this.doIdomRender;this.templatingFn?_.GB(Error("$g")):(this.templatingFn=I,this.switchTemplateAtRegistration=!0,yvY(this))};
_.u.attached=function(){};
_.u.detached=function(){T7I(this.hostElement)};
_.u.renderIdom=function(){throw Error("ch");};
_.u.doIdomRender=function(){var I=this;BYz(this.hostElement,function(){I.renderIdom()})};
S9=_.E([_.eA()],S9);var KTq=[fGP.prototype,S9.prototype];var A8e,gW5=function(){return A8e!==void 0?A8e:A8e=document.createElement("template")};
document.head.appendChild(gW5().content);var vWY;var WTq,d5w=function(){return WTq!==void 0?WTq:WTq=document.createElement("template")};
document.head.appendChild(d5w().content);var x5S;var qE8=document.head,m5d=qE8.appendChild,ZsS;if(x5S===void 0){var B_w=document.createElement("template");_.Y(B_w,"\x3c!--css-build:shady--\x3e");B_w.content.insertBefore(d5w().content.cloneNode(!0),B_w.content.firstChild);x5S=B_w}ZsS=x5S;m5d.call(qE8,ZsS.content);var EWm,hc0=function(){return EWm!==void 0?EWm:EWm=document.createElement("template")};
document.head.appendChild(hc0().content);var U5m;var Hsq=document.head,tnS=Hsq.appendChild,J8d;if(U5m===void 0){var Osc=document.createElement("template");_.Y(Osc,"\x3c!--css-build:shady--\x3e");Osc.content.insertBefore(hc0().content.cloneNode(!0),Osc.content.firstChild);U5m=Osc}J8d=U5m;tnS.call(Hsq,J8d.content);var aGY=document.head,Mnq=aGY.appendChild,Ild;if(vWY===void 0){var Cmq=document.createElement("template");_.Y(Cmq,"\x3c!--css-build:shady--\x3e");Cmq.content.insertBefore(gW5().content.cloneNode(!0),Cmq.content.firstChild);vWY=Cmq}Ild=vWY;Mnq.call(aGY,Ild.content);var s6u,o88=function(){return s6u!==void 0?s6u:s6u=document.createElement("template")};
document.head.appendChild(o88().content);var yvP;_.AE=new _.Jj("DARK_THEME_TOKEN");var oR9=new _.J("accessibilityProperties");var sbH=new _.J("layoutProperties");var yKm=new _.J("imageType");var kPS={};if("ytAttributedStringLinkHoverColor"in kPS)throw Error("fh`ytAttributedStringLinkHoverColor");(function(I,C){kPS[I]="value"in C&&"unit"in C?n8z(I,C):function(y){try{return C(y)}catch(k){throw Error("dh`"+I+"`"+k.message);}}})("ytAttributedStringLinkHoverColor",{value:"unset !stv-no-inline",
unit:"str"});var FFq=function(I){var C=this;this.holdTime=I===void 0?500:I;this.longPressTimeout=NaN;this.moveOccurred=this.longPressOccurred=!1;this.onlongpress=function(y){var k=new CustomEvent("LONG_PRESS"),F;(F=y.changedTouches[0].target)==null||F.dispatchEvent(k)};
this.ontouchstart=function(y){C.longPressTimeout=_.jj(_.b$,function(){C.onlongpress(y);C.longPressOccurred=!0},C.holdTime)};
this.ontouchmove=function(){_.b$.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!0};
this.ontouchend=function(y){if(C.longPressTimeout&&!C.longPressOccurred&&!C.moveOccurred){var k;(k=y.changedTouches[0].target)==null||k.dispatchEvent(new Event("click"))}_.b$.cancelJob(C.longPressTimeout);C.longPressTimeout=NaN;C.longPressOccurred=!1;C.moveOccurred=!1}};var WFY=function(I,C){FFq.call(this,C);var y=this;this.callback=I;this.onlongpress=function(k){var F;(F=y.callback)==null||F.call(y,k)}};
_.R(WFY,FFq);var deK=function(I,C){var y=Object.assign({},C);I=_.T(new Map([["ontouchstart",I.ontouchstart],["ontouchend",I.ontouchend],["ontouchmove",I.ontouchmove]]));for(var k=I.next(),F={};!k.done;F={eventName$jscomp$88:void 0,eventHandler$jscomp$3:void 0},k=I.next()){var z=_.T(k.value);k=z.next().value;z=z.next().value;F.eventName$jscomp$88=k;F.eventHandler$jscomp$3=z;C[F.eventName$jscomp$88]=function(c){return function(r){var w;(w=y[c.eventName$jscomp$88])==null||w.call(y,r);(0,c.eventHandler$jscomp$3)(r)}}(F)}};_.ID=new _.Jj("COMMAND_HANDLER_TOKEN");var LFz=new _.J("parallelCommand");var Q6Y=new _.J("performOnceCommand");var pWm=new _.J("serialCommand");var N7Y=void 0;var uPS=function(){this.data=[]};
uPS.prototype.push=function(I){this.data.push(I)};var Cn={};_.c4(Cn,void 0,"sgPmTd");_.c4(null,void 0,"jypsq");var ZUH=new uPS;var GPm=[WYq,dzc,xzS,mz0,qFq,vz8,Z9P,BHq];var I$F=new _.J("bracketTextDecorator");var Kv=new _.J("highlightTextDecorator");_.v9=new _.Jj("APP_DIRECTION_TOKEN");Object.freeze&&Object.freeze(Object.create(null));var tam=function(){},zGm;
(zGm=window.requestIdleCallback)==null||zGm.bind(window);var Odt={calledOnce:!1,state:"visible"},Jvs={calledOnce:!1,state:"hidden"};var M8F=new _.Jj("ICON_RENDERER_TOKEN"),T70=new _.Jj("ICON_WIZ_COMPONENT_TOKEN");_.ez=_.BO(function(I){var C=I.icon;var y=I.active;var k=I.className;var F=I.style;var z=I.dataSelected;var c=I.dataDisabled;var r=I.role;var w=I.animateIcon;var L=I.themeOverride;var D=I.ariaHidden;var p=I.ariaExpanded;var Q=I.ariaLabel;var X=I.id;var b=I.size;var S=I.iconFilter;return _.P(_.Dx,{cond:C,then:function(){var A=_.N().resolve(T70);return _.P(A,{icon:C,dataSelected:z,dataDisabled:c,animateIcon:w,themeOverride:L,ariaExpanded:p,id:X,active:y,size:b,role:r,className:k,ariaHidden:D,ariaLabel:Q,
style:function(){return F!=null&&F()||b==null||!b()?F==null?void 0:F():"width: "+(b==null?void 0:b())+"px;height: "+((b==null?void 0:b())+"px;")},
iconFilter:S})}})},"b");
_.ez.idomCompat=!0;var QbF=window.devicePixelRatio||1;var l$I=new Map([["yt_outline_bag_black_24","bag"]]);var K0=function(I){var C=this;this.margin=.1;this.whenInViewportWithMargin=I;this.observationTargets=[];this.scanRequested=!1;window.addEventListener("touchmove",function(){C.requestScan()});
window.addEventListener("touchend",function(){C.requestScan()});
window.addEventListener("updateui",function(){C.requestScan()});
var y=new _.OG((0,_.DD)(this.requestScan,this),100);window.addEventListener("scroll",function(){y.fire()},!0);
window.addEventListener("resize",(0,_.DD)(this.requestScan,this));window.addEventListener("state-navigatestart",function(){C.observationTargets=[]});
window.addEventListener("state-navigateend",(0,_.DD)(this.requestScan,this))};
K0.prototype.observe=function(I){this.observationTargets.includes(I)||this.observationTargets.push(I)};
K0.prototype.unobserve=function(I){this.observationTargets=this.observationTargets.filter(function(C){return C!==I})};
K0.prototype.requestScan=function(){var I=this;this.scanRequested||(pv(function(){cvq(I)}),this.scanRequested=!0)};
var cvq=function(I){var C=(1+I.margin)*(document.documentElement.clientHeight||window.innerHeight);I.observationTargets=I.observationTargets.filter(function(y){var k=y.getBoundingClientRect();(k=C>k.top&&!!k.height)&&I.whenInViewportWithMargin(y);return!k&&y.parentNode});
I.scanRequested=!1};
K0.prototype.disconnect=function(){this.observationTargets=[]};var eG8,id5;eG8=_.T(_.c4(bJW(),void 0,"O3X2wd"));_.rvq=eG8.next().value;id5=eG8.next().value;window.addEventListener("resize",function(){id5(bJW())});var wWd={landscape:"(min-width: 931px) and (orientation: landscape)",portrait:"(min-width: 550px) and (orientation: portrait)"},n8u=void 0,Pme=window.innerWidth,LFq=window.innerHeight;window.addEventListener("resize",function(){n8u=void 0});var De0;if("IntersectionObserver"in window)De0=f$H();else{if(n8u===void 0){var pWb;pWb="matchMedia"in window?window.matchMedia(wWd.landscape+","+wWd.portrait).matches:void 0;n8u=pWb!==void 0?pWb:Pme>=930&&LFq>=550||Pme>=550&&LFq>=930}De0=n8u?{observe:function(I){pv(function(){var C;(C=I.onViewportEntered)==null||C.call(I)})},
unobserve:function(){}}:new K0(function(I){pv(function(){var C;
(C=I.onViewportEntered)==null||C.call(I)})})}var Y$m=De0;var Q6P=_.BO(function(I){var C=!1,y=_.Es(function(k){_.$4(function(){C=!1;k.onload=null})});
_.l0(function(){var k,F=(k=I.data)==null?void 0:k.call(I),z,c=(z=I.getSrc)==null?void 0:z.call(I).cb,r;k=(r=I.config)==null?void 0:r.call(I);if(r=y.value){KbF(r,k);var w;S$O(r,F||null,function(L,D){if(!C)return c?c(L,D):L},k,(w=I.lazy)==null?void 0:w.call(I))}});
return _.P("img",{el:y})},"c");
Q6P.idomCompat=!0;_.x$=_.BO(function(I){var C=function(){var y,k=I.data(),F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO,Rm,$z,hX,vs,mY,Bs;var n5={contentMode:(F=I.contentMode)==null?void 0:F.call(I),loadedClass:(z=I.loadedClass)==null?void 0:z.call(I),isPreloaded:(c=I.isPreloaded)==null?void 0:c.call(I),notifyOnLoaded:(r=I.notifyOnLoaded)==null?void 0:r.call(I),notifyOnUnloaded:(w=I.notifyOnUnloaded)==null?void 0:w.call(I),preferredThumbnail:(L=I.preferredThumbnail)==null?void 0:L.call(I),preserveHeight:(D=I.preserveHeight)==
null?void 0:D.call(I),preserveWidth:(p=I.preserveWidth)==null?void 0:p.call(I),objectPosition:(Q=I.objectPosition)==null?void 0:Q.call(I),targetWidth:(X=I.targetWidth)==null?void 0:X.call(I),targetHeight:(b=I.targetHeight)==null?void 0:b.call(I),shouldShowPlaceholder:(S=I.shouldShowPlaceholder)==null?void 0:S.call(I),useWidth:(A=I.useWidth)==null?void 0:A.call(I),alt:(x=I.alt)==null?void 0:x.call(I),className:(B=I.className)==null?void 0:B.call(I),onerror:I.onerror,onload:I.onload,style$:((t=I.style$)==
null?void 0:t.call(I))||((U=I.style)==null?void 0:U.call(I)),color:(yW=I.color)==null?void 0:yW.call(I),width:(a=I.width)==null?void 0:a.call(I),height:(cs=I.height)==null?void 0:cs.call(I),"aria-hidden$":(mY=(XO=I["aria-hidden$"])==null?void 0:XO.call(I))!=null?mY:(Rm=I.ariaHidden)==null?void 0:Rm.call(I),draggable:($z=I.draggable)==null?void 0:$z.call(I),"data-disabled$":(Bs=(hX=I["data-disabled$"])==null?void 0:hX.call(I))!=null?Bs:(vs=I.dataDisabled)==null?void 0:vs.call(I)};return vRF(k,n5,(y=
I.hideOn404)==null?void 0:y.call(I))};
return _.P(_.Vr,null,_.P(_.Qr,{when:function(){var y;return((y=C())==null?void 0:y.type)==="image"}},function(){return _.P(Q6P,{data:function(){return C().image},
getSrc:{cb:function(y,k){var F=C().image.sources,z=C().config.isPreloaded,c=C().config.useWidth,r=C().config.targetWidth,w=C().config.targetHeight,L=C().config.preferredThumbnail;return _.NBO(k,F,z,c,r,w,L)||""}},
config:function(){var y=C().config,k;for(k in y)y[k]===void 0&&delete y[k];return y},
lazy:I.renderLazy})}),_.P(_.Qr,{when:function(){var y;
return((y=C())==null?void 0:y.type)==="icon"}},function(){return _.P(_.ez,{icon:function(){return C().iconName},
role:function(){return C().config.role},
className:function(){return C().config.className},
style:function(){return C().config.style$+";width: "+(C().config.width+"px;height: ")+(C().config.height+"px;color: ")+(C().config.color+";")},
ariaLabel:function(){return C().config["aria-label$"]},
ariaHidden:function(){return C().config["aria-hidden$"]},
dataDisabled:function(){return C().config["data-disabled$"]}})}))},"d");
_.x$.idomCompat={callbacks:{callback:!0,onerror:!0,onload:!0}};var N7P=function(I){return function(C){return _.P(uUz,null,function(){var y=C.data(),k=_.b0(C.config);return _.P(Us,null,function(){return void I(y,k)})})}}(ZJz),q$z=_.BO(function(I){var C=function(k){var F,z=_.Wbm(function(Q){F=RF(function(){for(var X=_.T(D()),b=X.next();!b.done;b=X.next()){b=BB9(b.value);
b=typeof b==="string"?document.createTextNode(b):b;if(!(b instanceof Node)){X=new _.ph("Part is not a node",b,typeof b);_.GB(X);break}Q.appendChild(b)}})}),c=dnY(function(){return FbI(k())},{isEqual:xnW}),r=_.mh(I.config),w=function(){var Q,X=c();
return!((Q=r())==null||!Q.ariaLabel)||!(X.commandRuns&&X.commandRuns.length!==0||X.paragraphStyleRuns&&X.paragraphStyleRuns.length!==0)},L=dnY(r,{isEqual:h7z}),D=function(){var Q=kVO(c(),L());
z7I(Q,L());return c().content?wLI(c().content,Q).parts:[]},p=!0;
_.l0(function(){c();L();if(p)p=!1;else{var Q=D();Promise.resolve().then(function(){var X=z.value;if(X){X.innerText="";var b;(b=F)==null||b();F=_.lh(X,function(){return _.P(ERY,{parts:Q})})}})}});
return _.P("span",{el:z,class:function(){return c()&&B7I(c(),r())},
dir:function(){var Q;return((Q=r())==null?0:Q.userInput)?"auto":void 0},
"aria-label":function(){var Q;return w()?(Q=r())==null?void 0:Q.ariaLabel:void 0},
role:function(){return w()?"text":void 0}})},y;
return((y=I.config)==null?0:y.renderedFromFormattedString)?C(I.text):_.P(_.Dx,{cond:I.text,then:C})},"e");
q$z.idomCompat=!0;_.wh=_.BO(function(I){var C=_.mh(I.text),y=UnO(I);I.renderedFromFormattedString!==void 0&&(y.renderedFromFormattedString=!0);return _.V("attr_string_reactive")?_.P(q$z,{text:C,config:y}):_.P(_.Dx,{cond:function(){var k;return C()&&((k=FbI(C()))==null?void 0:k.content)},
then:function(){return _.P(N7P,{data:I.text,config:y})},
debugInstance:"Apcuac"})},"f");
_.wh.idomCompat=!0;var tmm=function(I,C,y){C=C===void 0?"unknown":C;y=y===void 0?{}:y;_.ph.call(this,I+" ("+C+")",Object.assign({},{name:"YtWcwError",tagName:C},y));Object.setPrototypeOf(this,this.constructor.prototype)};
_.R(tmm,_.ph);_.sfz=new WeakMap;_.CtW=!1;var IrI,ohI,OJz,Mmm;_.As=Symbol("hh");_.Z_=Symbol("ih");IrI=Symbol("jh");ohI=new Set(Object.getOwnPropertyNames(Element.prototype));OJz=!_.V("web_wcw_disable_component_function_named_child_props");Mmm=Symbol("kh");var Va8=_.BO(function(I){return _.P("yt-attributed-string",{"aria-label":I.ariaLabel,hidden:I.hidden,id:I.id,class:I.className,"force-default-style":I.forceDefaultStyle},_.P(_.wh,{text:I.data,ariaLabel:I.ariaLabel,ellipsisTruncate:I.ellipsisTruncate,isOverlay:I.isOverlay,linkInheritColor:I.linkInheritColor,noPreWrap:I.noPreWrap,noWrap:I.noWrap,userInput:I.userInput,noEndpoints:I.noEndpoints,headerRuns:I.headerRuns}))},"g");
_.V("web_wiz_attributed_string")&&_.B9(Va8,"yt-attributed-string",{props:{ariaHidden:_.As,ariaLabel:_.As,className:_.As,ellipsisTruncate:_.As,isOverlay:_.As,linkInheritColor:_.As,noEndpoints:_.As,noStyleRuns:_.As,noLinkColor:_.As,noPreWrap:_.As,noWrap:_.As,skipOnClick:_.As,userInput:_.As,headerRuns:_.As,id:_.As,data:_.As,hidden:_.As,forceDefaultStyle:_.As,text:_.Z_,stopPropagation:_.Z_,disableUpgrade:_.Z_,disable:_.Z_,slot:_.Z_}});var gx=function(){return _.q.apply(this,arguments)||this};
_.R(gx,_.q);gx.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},ZJz(this.data,this.config))};
_.E([_.g(KTq),_.h("design:type",Object)],gx.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gx.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],gx.prototype,"ariaLabel",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"disable",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"ellipsisTruncate",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"isOverlay",void 0);
_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"linkInheritColor",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"noPreWrap",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"noWrap",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"userInput",void 0);_.E([_.d(),_.h("design:type",Boolean)],gx.prototype,"noEndpoints",void 0);_.E([_.d(),_.h("design:type",Array)],gx.prototype,"headerRuns",void 0);
gx=_.E([_.lT({is:"yt-attributed-string",disableElementRegistration:!0})],gx);
_.V("web_wiz_attributed_string")||_.Z(gx,"yt-attributed-string",function(){if(yvP===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
I.content.insertBefore(o88().content.cloneNode(!0),I.content.firstChild);yvP=I}I=yvP;return I},{mode:2});var j68,llS,cys;j68=function(){this.firstThumbnailLoaded=!1};
_.XWd=function(){llS||(llS=new j68);return llS};
cys=function(I){var C=_.XWd();C.firstThumbnailLoaded||(C.firstThumbnailLoaded=!0,_.Sr("ftl",I))};
j68.prototype.reset=function(){this.firstThumbnailLoaded=!1};var k4z=0,TcX=new WeakMap,uQO=0,U5=new Set;var $ee,RGe=function(){return $ee!==void 0?$ee:$ee=document.createElement("template")};
document.head.appendChild(RGe().content);var bdd;var wTK,PtY,v7;_.JE=_.sF.caches;v7=function(){};
v7.prototype.open=function(I){return _.JE.open(YRw(I))};
v7.prototype.has=function(I){return _.JE.has(YRw(I))};
v7.prototype.delete=function(I){return _.JE.delete(YRw(I))};
v7.prototype.match=function(I,C){var y=this,k,F,z,c,r,w;return _.e(function(L){switch(L.nextAddress){case 1:return _.n(L,y.keys(),2);case 2:k=L.yieldResult,F=_.T(k),z=F.next();case 3:if(z.done){L.jumpTo(5);break}c=z.value;return _.n(L,y.open(c),6);case 6:return r=L.yieldResult,_.n(L,r.match(I,C),7);case 7:if(w=L.yieldResult)return L.return(w);z=F.next();L.jumpTo(3);break;case 5:return L.return()}})};
var L9K=function(){};
_.R(L9K,v7);var YRw=function(I){if(I.includes(":"))throw Error("nh`"+I);return I+":"+_.Lh("CacheStorage get")};
L9K.prototype.keys=function(){var I,C,y,k,F,z,c,r,w;return _.e(function(L){if(L.nextAddress==1)return I=[],C=_.Lh("CacheStorage keys"),_.n(L,_.JE.keys(),2);y=L.yieldResult;k=_.T(y);for(F=k.next();!F.done;F=k.next())z=F.value,c=_.iOt(z),r=c.originalName,w=c.datasyncId,w===C&&I.push(r);return L.return(I)})};var W7=function(){var I=_.q.apply(this,arguments)||this;I.objectURL=null;I.loadTime=Infinity;return I};
_.R(W7,_.q);_.u=W7.prototype;_.u.renderIdom=function(){rym(this.hostElement);if(this.data){if(!this.width&&!this.height)throw Error("qh");this.setConfig();this.config&&AKH(this.data,this.config,void 0,this.shouldRenderLazy)}};
_.u.objectFitToContentMode=function(I){switch(I){case "CONTAIN":return"CONTENT_MODE_SCALE_ASPECT_FIT";case "FILL":return"CONTENT_MODE_SCALE_TO_FILL";default:return"CONTENT_MODE_SCALE_ASPECT_FILL"}};
_.u.logThumbnailFailureVe=function(){var I=_.Dn(197497);_.oV(_.e2(),I);var C=_.Si();C&&I&&C&&_.Z0(C,[I])};
_.u.loadImageFromCacheIfExists=function(I){var C=this,y=I.target;(y==null?0:y.src)&&pTO(y.src).then(function(k){C.objectURL=_.ii(k).toString();C.setSrc(y,C.objectURL)}).catch(function(){})};
_.u.onError=function(I){var C=this;if(_.V("web_use_cache_for_image_fallback")){var y=I.target;y&&pTO(y.src).then(function(k){C.objectURL=_.ii(k).toString();C.setSrc(y,C.objectURL)}).catch(function(){_.V("kevlar_woffle_log_thumbnail_failure_ve")&&C.logThumbnailFailureVe();
_.V("kevlar_woffle_fallback_image")&&C.setSrc(y,"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")})}else this.revokeObjectURL()};
_.u.revokeObjectURL=function(){this.objectURL&&(URL.revokeObjectURL(this.objectURL),this.objectURL=null)};
_.u.setConfig=function(){var I=this;this.config={alt:this.alt||"",contentMode:this.objectFitToContentMode(this.objectFit),notifyOnLoaded:this.notifyOnLoaded,notifyOnUnloaded:this.notifyOnUnloaded,preferredThumbnail:this.preferredThumbnail,preserveHeight:this.preserveHeight,preserveWidth:this.preserveWidth,objectPosition:this.objectPosition,onload:function(C){I.loadImageFromCacheIfExists(C);I.revokeObjectURL();eOH(I.hostElement)},
onerror:function(C){I.onError(C)},
targetHeight:this.height,targetWidth:this.width,shouldShowPlaceholder:_.V("kevlar_thumbnail_bg"),useWidth:this.useWidth}};
_.u.setSrc=function(I,C){C&&(I.src=C)};
_.E([_.g(KTq),_.h("design:type",Object)],W7.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],W7.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],W7.prototype,"alt",void 0);_.E([_.d(),_.h("design:type",Boolean)],W7.prototype,"ftlEligible",void 0);_.E([_.d(),_.h("design:type",Number)],W7.prototype,"height",void 0);_.E([_.d(),_.h("design:type",Boolean)],W7.prototype,"notifyOnLoaded",void 0);
_.E([_.d(),_.h("design:type",Boolean)],W7.prototype,"notifyOnUnloaded",void 0);_.E([_.d(),_.h("design:type",String)],W7.prototype,"objectFit",void 0);_.E([_.d(),_.h("design:type",String)],W7.prototype,"objectPosition",void 0);_.E([_.d(),_.h("design:type",String)],W7.prototype,"preferredThumbnail",void 0);_.E([_.d(),_.h("design:type",Boolean)],W7.prototype,"preserveHeight",void 0);_.E([_.d(),_.h("design:type",Boolean)],W7.prototype,"preserveWidth",void 0);
_.E([_.d({value:!0}),_.h("design:type",Boolean)],W7.prototype,"useWidth",void 0);_.E([_.d({value:function(){return!_.g5("DISABLE_YT_IMG_DELAY_LOADING",!1)}}),
_.h("design:type",Boolean)],W7.prototype,"shouldRenderLazy",void 0);_.E([_.d(),_.h("design:type",Number)],W7.prototype,"width",void 0);W7=_.E([_.lT({is:"yt-image",disableElementRegistration:!0})],W7);
_.Z(W7,"yt-image",function(){if(bdd===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(RGe().content.cloneNode(!0),I.content.firstChild);
bdd=I}I=bdd;return I},{mode:2});var dx=function(){return _.q.apply(this,arguments)||this};
_.R(dx,_.q);dx.prototype.onShow_=function(){if(this.data&&this.data.onVisibleCommand){var I=_.Rj(this.data.onVisibleCommand);I&&this.ytComponentBehavior.resolveCommand(I)}};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],dx.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],dx.prototype,"ytVisibilityBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dx.prototype,"data",void 0);dx=_.E([_.lT({disableElementRegistration:!0,is:"yt-bumper-user-edu-content-view-model"})],dx);
_.Z(dx,"yt-bumper-user-edu-content-view-model",function(){if(GrY===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;YEd===void 0&&(YEd=document.createElement("template"));var k=YEd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);GrY=I}I=GrY;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var GPb;var fld,SR5=function(){if(fld!==void 0)return fld;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;GPb===void 0&&(GPb=document.createElement("template"));var k=GPb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return fld=I};var KFS;_.xy={};KFS=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"]);_.xy.YtTaskEmitterBehavior={created:function(){this.cachedProviderNode_=null},
detached:function(){this.cachedProviderNode_=null},
getTaskManager:function(){var I=this.getContext_();return I?I.getTaskManager():_.b$},
getContext_:function(){if(this.shouldUseTaskManager()){if(!this.cachedProviderNode_){var I=_.k3(this.hostElement,"yt-get-context-provider",{});I.detail&&I.detail.contextProvider?this.cachedProviderNode_=I.detail.contextProvider:this.hostElement.parentElement&&(this.cachedProviderNode_=this)}if(this.cachedProviderNode_&&this.cachedProviderNode_.getProvidedContext&&this.cachedProviderNode_.getProvidedContext())return this.cachedProviderNode_.getProvidedContext()}},
shouldUseTaskManager:function(){return KFS.has(this.hostElement.localName)},
getNetworkManager:function(){var I=this.getContext_();if(I)return I.getNetworkManager()}};var XTz,Avd,v8m,g8e;_.q8=function(I){var C=Avd.get(I);if(C&&(C=C.pop()))return g8e++,C;v8m++;try{var y=document.createElement(I)}catch(k){throw new _.ph("ElementPool failed to create element",I,k.message);}return y};
XTz=function(I){var C=I.is;if(C){var y=Avd.get(C);y||(y=[],Avd.set(C,y));var k=_.Aq("ELEMENT_POOL_CONFIG")||{};y.length>=(k[C]!==void 0?k[C]:_.Aq("ELEMENT_POOL_DEFAULT_CAP",0))||y.push(I)}else _.SN(new _.ph("Element pool should only handle custom elements:",I.nodeName))};
Avd=new Map;v8m=0;g8e=0;var O5=new WeakMap,lrz=new WeakMap;var de8;_.mt=function(I,C,y){y=y===void 0?_.R7():y;this.JSC$11516_defaultPriority=I;this.signal=C;this.scheduler=y;this.nextJobDescriptor=0;this.JSC$11516_parkedJobs=[];this.scheduledJobs=new Map};
_.ZL=function(I,C){if(C){var y=_.So();I.signal&&!_.Ku(y,I.signal)?(y.addListener(I.signal,function(){I.processSignal()}),I.JSC$11516_parkedJobs.push({job:C,
priority:void 0})):WFP(I,C)}};
de8=function(I,C){if(C!==I.JSC$11516_defaultPriority){I.JSC$11516_defaultPriority=C;for(var y=_.T(I.scheduledJobs.values()),k=y.next();!k.done;k=y.next())k=k.value,I.scheduler.cancelJob(k.jobId),k.jobId=I.scheduler.addJob(k.jobWrapper,C)}};
_.mt.prototype.flushJobs=function(){de8(this,10);this.processSignal()};
_.mt.prototype.cancel=function(){for(var I=_.T(this.scheduledJobs),C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;this.scheduler.cancelJob(y.jobId);this.scheduledJobs.delete(C)}this.JSC$11516_parkedJobs=[]};
_.mt.prototype.processSignal=function(){for(var I=_.T(this.JSC$11516_parkedJobs),C=I.next();!C.done;C=I.next())C=C.value,WFP(this,C.job,C.priority);this.JSC$11516_parkedJobs=[]};
var WFP=function(I,C,y){y=y||I.JSC$11516_defaultPriority;if(y===10)H9(C);else{var k=I.nextJobDescriptor++,F=function(){C();I.scheduledJobs.delete(k)},z=I.scheduler.addJob(F,y);
I.scheduledJobs.set(k,{jobWrapper:F,jobId:z,priority:y})}};_.MU(YSI);var G4Y={propNames:[],synchronous:!1,enableUnsafeRenderOnNotifyPath:!1};zjt({beforeVisit:function(I){if(Ob.has(I.type)){var C;(C=I.props).idomKey!=null||(C.idomKey=I.type)}else I.type.TAG_NAME&&(tL=I.type.TAG_NAME)},
afterRender:function(I,C){var y;tL=(y=C==null?void 0:C.type)!=null?y:""},
didPatch:function(){tL=""}});var xeS;_.B7={};xeS={"yt-live-chat-text-message-renderer":!0,"yt-live-chat-author-badge-renderer":!0};_.B7.YtRendererstamperBehavior=[_.xy.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 I in this.stampDom){var C=this.stampDom[I];C&&C.id&&this.addReactiveSchema({type:"observe",method:{methodName:Ncm(C.id),args:[{type:"wildcard",path:I}]}})}else{(I=(this.constructor.generatedFrom||this).observers)||(I=[]);for(C in this.stampDom){var y=this.stampDom[C];y&&y.id&&I.push(Ncm(y.id)+"("+C+".*)")}this.constructor.generatedFrom.observers=I}},
addStampDomObserverFns_:function(){for(var I in this.stampDom){var C=this.stampDom[I];C.id?(this[Ncm(C.id)]=this.rendererStamperObserver_.bind(this,I,C.id),this.hasDataPath_[I]=!1):(C=new _.ph("Bad rendererstamper config",this.is+":"+I),_.GB(C))}},
rendererStamperObserver_:function(I,C,y){if(y.path==I){if(y.value===void 0&&!this.hasDataPath_[I])return;this.hasDataPath_[I]=y.value!==void 0}this.rendererStamperApplyChangeRecord_(I,C,y)},
rendererStamperApplyChangeRecord_:function(I,C,y){var k=this.renderJobsMap_[C],F=null;I==y.path?(y=y.value,_.Mz(y)||(y=y===void 0||y===null?[]:[y]),I=this.stampDom[I],I.mapping&&(F=this.stampDomArray_.bind(this,y,C,I.mapping,I.reuseComponents,I.events,I.stamperStableList)),k&&k.cancel(),y=I.usePageScheduler?this.getTaskManager():void 0,k||I.initialRenderPriority==void 0)?I.renderPriority==void 0||k||(k=new _.mt(I.renderPriority,I.waitForSignal,y),this.renderJobsMap_[C]=k):(k=new _.mt(I.initialRenderPriority,
I.waitForSignal,y),this.renderJobsMap_[C]=k,F=function(z,c){z();de8(c,10)}.bind(this,F,k)):F=I+".splices"==y.path?this.stampDomArraySplices_.bind(this,I,C,y.value):this.forwardRendererStamperChanges_.bind(this,I,C,y);
k?_.ZL(k,F):F()},
forwardRendererStamperChanges_:function(I,C,y){var k=y.path.slice(I.length+1),F=this.getStampContainer_(C),z=k.indexOf("."),c=k.substring(0,z),r=!1,w=0,L=parseInt(c,0);if(c[0]=="#"){r=parseInt(c.substring(1),0);L=this.get(I);var D=this.get([I,c]);L[r]==D?w=r:w=L.indexOf(D);r=!0}else isNaN(L)||(w=L,r=!0);r&&(k=k.substring(c.length+1),z=k.indexOf("."));c=_.lG(F).children[w];var p;if(F=(p=c==null?void 0:c.polymerController)!=null?p:c)k="data"+k.slice(z),typeof F.notifyPath!=="function"?_.SN(new _.ph("notifyPath missing",
this.is+": "+I+", "+C)):y.value?F.notifyPath(k,y.value):F.notifyPath(k)},
stampDomArraySplices_:function(I,C,y){if(y&&y.indexSplices){var k=this.getStampContainer_(C);if(k){for(var F=_.lG(k),z=jfF(this.stampDom[I].reuseComponents),c=y.indexSplices.length,r=0;r<c;r++){for(var w=y.indexSplices[r],L=F.children[w.index],D=w.removed.length;D>0;D--)L&&L.parentElement&&(_.lG(L.parentElement).removeChild(L),z&&XTz(L),L=F.children[w.index]);D=this.stampDom[I].mapping;for(var p=w.index+w.addedCount,Q=document.createDocumentFragment(),X=z,b=w.index;b<p;b++){var S=w.object[b],A=Qft(D,
S);if(A){var x=D[A];S=S[A];A=this.getComponentName_(x,S);var B=L?O5.has(L):!1;X&&L&&L.is==A&&B?(A=L,this.telemetry_.reuse++,L=L.nextElementSibling):X&&L&&B?(A=this.createComponent_(x,S,z),B=_.lG(L).nextElementSibling,F.insertBefore(A,B),ROt(this.is,F,L,z),L=B):(X=!1,A=this.createComponent_(x,S,z),Q.appendChild(A));this.deferRenderStamperBinding_(A,x,S)}else x=new _.ph("Unimplemented type",I,C,k.tagName,Object.keys(S)[0]),_.GB(x)}F.insertBefore(Q,L)}this.flushRenderStamperComponentBindings_();this.stampDom[I].events&&
_.k3(this.hostElement,"yt-rendererstamper-finished",{container:k})}else I=new _.ph("Container object not found",C,this.hostElement?this.hostElement.is:""),_.GB(I)}},
stampDomArray_:function(I,C,y,k,F,z){var c=this.getStampContainer_(C);if(c)if(C=_.lG(c),k=jfF(k),I){var r=0,w=0,L;if(z=z===void 0?_.g5("STAMPER_STABLE_LIST",!1):z||!1)for(L=C.firstElementChild;L&&!O5.has(L)&&I.length>w;){z=I[w];var D=Qft(y,z);if(D){if(this.getComponentName_(y[D],z[D])!=L.is){var p=this.createComponent_(y[D],z[D],k),Q=_.lG(L).nextElementSibling;Q?C.insertBefore(p,Q):C.appendChild(p);ROt(this.is,C,L,k);L=p}else this.telemetry_.reuse++;this.deferRenderStamperBinding_(L,y[D],z[D]);r++;
w++;L=_.lG(L).nextElementSibling}else w++}bOm(this.is,C,r,k);r=L;if(I.length>w){z=document.createDocumentFragment();for(D=I.length;w<D;w++)if(p=I[w],Q=Qft(y,p))L=this.createComponent_(y[Q],p[Q],k),this.deferRenderStamperBinding_(L,y[Q],p[Q]),z.appendChild(L);r&&_.lG(r).parentNode&&L&&!O5.has(L)?C.insertBefore(z,r):C.appendChild(z)}this.flushRenderStamperComponentBindings_();this.markDirty&&this.markDirty();F&&_.k3(this.hostElement,"yt-rendererstamper-finished",{container:c})}else bOm(this.is,C,0,
k);else I=new _.ph("Container object not found",C,this.hostElement?this.hostElement.is:""),_.GB(I)},
getStampContainer_:function(I){return this.$&&this.$[I]||_.f(this.hostElement).querySelector("#"+I)},
getComponentName_:function(I,C){return typeof I==="string"?I:I.matcher?I.matcher.call(this,C):I.component},
createComponent_:function(I,C,y){I=this.getComponentName_(I,C);try{var k=aH.has(I)||Ob.has(I);if(y&&!k){var F=_.q8(I);try{_.CK(F)}catch(z){y="Failed to clear styles for "+I+".",z.message&&(y+=" Original error: "+z.message),_.SN(new _.ph(y))}}else F=document.createElement(I)}catch(z){return F="YtRendererStamperBehavior failed to create "+I+".",z.message&&(F+=" Original description: "+z.message),z.message="YtRendererStamperBehavior failed to create element",_.Ki(z,F),xeS.hasOwnProperty(I)?_.SN(z):_.GB(z),
document.createElement("SPAN")}this.telemetry_.create++;return F},
deferRenderStamperBinding_:function(I,C,y){this.deferredBindingTasks_.push({component:I,typeOrConfig:C,data:y})},
flushRenderStamperComponentBindings_:function(){for(var I=0,C=this.deferredBindingTasks_.length;I<C;I++){var y=this.deferredBindingTasks_[I];if(!y)break;var k=void 0,F=void 0,z=void 0,c=void 0,r=y.component,w=y.typeOrConfig;y=y.data;var L=(c=r.polymerController)!=null?c:r;c=r.loggingStatus;try{c&&(c.isRendererStamper=!0);if(typeof w!=="string"){for(z in w.attributes)w.attributes[z]===!0?r.setAttribute(z,""):w.attributes[z]===!1?r.removeAttribute(z):r.setAttribute(z,w.attributes[z]);for(F in w.params)L[F]=
w.params[F],r!==L&&nK(r.localName,F,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");for(k in w.properties){var D=w.properties[k];if(D){var p=VKH(D);L[k]=this.get(p);r!==L&&nK(r.localName,k,"PROPERTY_ACCESS_SET_EXTERNAL_DECLARATIVE");if(k==="on-tap"||k==="on-click"){var Q=this.get(p);r.addEventListener("click",Q);lrz.set(r,{property:k,listener:{type:"element",eventName:"click",handler:Q}})}}else{var X=new _.ph("Undefined property binding",k);_.GB(X)}}}if(w.classListBinding){var b=VKH(w.classListBinding),
S=b?this[b]:null;if(S)for(k=0;k<S.length;k++)_.a_(r,S[k],!0)}L.data=y}finally{c&&(c.isRendererStamper=!1)}if(k=O5.get(r))r.hidden=!1,O5.delete(r),_.b$.cancelJob(k)}this.deferredBindingTasks_.length=0}}];_.Et={YtActionHandlerBehavior:[{actionMap:{},attached:function(){this.registerActionMap(this.actionMap)},
detached:function(){this.unregisterActionMap(this.actionMap)},
registerActionMap:function(I){for(var C=_.qU.getInstance(),y=_.T(Object.keys(I)),k=y.next();!k.done;k=y.next()){var F=k.value;k=I[F];if(this&&this[k]){var z=C.actionRoutingMap.get(F);z||(z=new Map,C.actionRoutingMap.set(F,z));C.registerActionHandler(this,F,this[k].bind(this),z)}else F=Error("hd"),F.params=k,_.v5(F)}},
unregisterActionMap:function(I){_.Zi(_.qU.getInstance(),I,this)}}]};var I8=new Map([["FACE_HAPPY",{name:"animated_face_happy_light",nameDarkTheme:"animated_face_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_HAPPY",totalFrames:121,lazyLoad:!1}],["FACE_MEH",{name:"animated_face_meh_light",nameDarkTheme:"animated_face_meh_dark",
path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_meh.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_meh.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_MEH",totalFrames:121,lazyLoad:!1}],["FACE_SAD",{name:"animated_face_sad_light",nameDarkTheme:"animated_face_sad_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_sad.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_sad.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_SAD",totalFrames:121,lazyLoad:!1}],["FACE_UNHAPPY",{name:"animated_face_unhappy_light",nameDarkTheme:"animated_face_unhappy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_unhappy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_unhappy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_UNHAPPY",totalFrames:121,
lazyLoad:!1}],["FACE_VERY_HAPPY",{name:"animated_face_very_happy_light",nameDarkTheme:"animated_face_very_happy_dark",path:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/light_mode/face_very_happy.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/surveys/lottie/animated_smileys/dark_mode/face_very_happy.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"FACE_VERY_HAPPY",totalFrames:121,lazyLoad:!1}],["LIKE",{name:"animated_like_light",nameDarkTheme:"animated_like_dark",
path:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_light_v4.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/animated_like_icon/animated_like_icon_dark_v4.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE",totalFrames:60,lazyLoad:!0}],["NOTIFICATION_BELL",{name:"notification_bell_light",nameDarkTheme:"notification_bell_dark",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_light.json",
pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_dark.json",lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"NOTIFICATION_BELL",totalFrames:79,lazyLoad:!1}],["LIKE_VALENTINES25_HEART",{name:"animated_like_valentines25_heart_light",nameDarkTheme:"animated_like_valentines25_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_VALENTINES25_BROKEN_HEART",{name:"animated_like_valentines25_broken_heart_light",nameDarkTheme:"animated_like_valentines25_broken_heart_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_light_v5.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_valentines25_broken_heart_dark_v5.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_BROKEN_HEART",totalFrames:60,lazyLoad:!0}],["LIKE_YOUTUBE_20TH_BIRTHDAY",{name:"animated_like_youtube_20th_birthday_light",nameDarkTheme:"animated_like_youtube_20th_birthday_dark",path:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_light.json",pathDarkTheme:"https://www.gstatic.com/youtube/img/lottie/custom_animated_like_icon/animated_like_youtube_20th_birthday_dark.json",
lottiePlayerProps:{animationConfig:{loop:!1,autoplay:!1}},type:"LIKE_VALENTINES25_HEART",totalFrames:60,lazyLoad:!0}]]);var Mx;var CE=new Map;var Bct=window.matchMedia("(forced-colors: active)").matches;var qRS;var mee;var HOH=new _.Jj("LOTTIE_LOADER_TOKEN");_.MU(tKm);_.B9(_.BO(function(I){return _.P("ytd-lottie-player",{id:I.id,hidden:I.hidden,class:I.className,"aria-label":I.ariaLabel,style:"display: block;"},_.P(_.o8,{data:I.data,animationName:function(){var C;return((C=I.data().animationConfig)==null?void 0:C.name)||""},
animationRef:function(){return I.data().animationRef}}))},"h"),"ytd-lottie-player",{props:{data:_.As,
id:_.As,hidden:_.As,className:_.As,ariaLabel:_.As}});var hs=function(){var I=_.q.apply(this,arguments)||this;I.animationRef={};return I};
_.R(hs,_.q);_.u=hs.prototype;
_.u.handlePropertyChange=function(){var I=this.animatedIcon,C=this.active,y=this.isDarkTheme;if(I){var k=this.previousActive!==C;this.previousActive=C;this.animationRef.lottieEl?k&&this.toggleAnimation(C,I.totalFrames):C?this.initializeAnimationAsToggled(I.lottiePlayerProps,I.totalFrames):this.initializeAnimationAsUntoggled(I.lottiePlayerProps);I.lottiePlayerProps.animationRef=this.animationRef;this.animatedIconType=I.type;this.lottiePlayerProps=this.computeLottiePlayerProps(I,y)}};
_.u.computeLottiePlayerProps=function(I,C){var y=this.deepCloneLottiePlayerProps(I);C?(C=I.nameDarkTheme,I=I.pathDarkTheme):(C=I.name,I=I.path);y.animationConfig.name=C;(C=CE.get(I))?y.animationConfig.animationData=C:y.animationConfig.path=I;return y};
_.u.initializeAnimationAsToggled=function(I,C){I.animationConfig.initialSegment=[C-1,C]};
_.u.initializeAnimationAsUntoggled=function(I){I.animationConfig.initialSegment=void 0};
_.u.toggleAnimation=function(I,C){if(I){var y;(y=this.animationRef.lottieEl)==null||y.playSegments([0,C],!0)}else{var k;(k=this.animationRef.lottieEl)==null||k.playSegments([0,1],!0)}};
_.u.deepCloneLottiePlayerProps=function(I){var C=Object.assign({},I.lottiePlayerProps.animationConfig);I=Object.assign({},I.lottiePlayerProps);I.animationConfig=C;return I};
hs.prototype.handlePropertyChange=hs.prototype.handlePropertyChange;_.E([_.d(),_.h("design:type",Object)],hs.prototype,"animatedIcon",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],hs.prototype,"active",void 0);_.E([_.d(),_.h("design:type",Boolean)],hs.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],hs.prototype,"animatedIconType",void 0);_.E([_.d(),_.h("design:type",Boolean)],hs.prototype,"previousActive",void 0);
_.E([_.d(),_.h("design:type",Object)],hs.prototype,"lottiePlayerProps",void 0);_.E([_.d(),_.h("design:type",Object)],hs.prototype,"animationRef",void 0);_.E([_.FI("animatedIcon","active","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hs.prototype,"handlePropertyChange",null);hs=_.E([_.lT({is:"yt-animated-icon",disableElementRegistration:!0})],hs);
_.Z(hs,"yt-animated-icon",function(){if(mee===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;qRS===void 0&&(qRS=document.createElement("template"));var k=qRS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);mee=I}I=mee;return I},{mode:2});var ZdS;var B70;var arK=_.BO(function(I){var C=_.h3(),y=YS(function(){return{value:null}});
_.$4(function(){var F;(F=y.value)==null||F.cancel()});
var k=_.P4(I.data,{equals:function(F,z){return F.iconName===z.iconName&&F.iconStyle===z.iconStyle&&F.iconSize===z.iconSize&&F.iconSetName===z.iconSetName&&F.iconSelected===z.iconSelected}},"aoiXAb");
_.l0(function(){var F,z=(F=I.options)==null?void 0:F.call(I);OO9(C,y,k(),z)});
return _.P("span",{class:"yt-icon-shape",el:C})},"i");
arK.idomCompat=!0;var ufm=["youtube_fill","youtube_outline"];var E80=new _.jc({type:"iconset",value:void 0}),Ut=function(){var I=_.q.apply(this,arguments)||this;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.iconName="";I.iconsetName="yt-icons";I.iconset=null;I.missingIconSet=!1;I.iconType=null;I.iconShapeDataSignal=_.c4(void 0,void 0,"RQ9kUb");I.renderingOptionsSignal=_.c4({iconWidth:"100%",iconHeight:"100%",iconFilter:I.iconFilter},void 0,"qtx8Ef");I.wizHasRendered=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(Ut,_.q);_.u=Ut.prototype;_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
_.u.handlePropertyChange=function(){var I=this,C,y,k,F,z,c,r,w,L,D,p;return _.e(function(Q){switch(Q.nextAddress){case 1:if(C=!I.icon&&!I.iconName||!I.isAttached)return Q.return();y=I;k=y.icon;F=y.size;z=y.defaultToFilled;c=y.active;r=y.targetContainer;I.toggleContainerClass(r);_.V("kevlar_use_wil_icons")&&k&&(w=jKt(k),w.length?_.V("kevlar_icon_type_fix_killswitch")?(L=w[1].toUpperCase(),I.iconType=n6q[L],I.iconType||(I.iconType=w[1])):I.iconType=w[1]:I.iconType=null);if(k){Q.jumpTo(2);break}I.iconsetName=
"";I.iconName="";return _.n(Q,I.renderIcon(r,k),3);case 3:return Q.return();case 2:D=I.computeIcon(k);p=jKt(D);p.length&&(I.iconsetName=p[0],I.iconName=p[1]);if(!_.V("kevlar_use_wil_icons")){Q.jumpTo(4);break}return _.n(Q,I.getIconShapeData(),5);case 5:I.iconShapeData=Q.yieldResult;case 4:if(I.shouldRenderIconShape(r)){Q.jumpTo(6);break}return _.n(Q,I.determineIconSet(D,c,z,F,r),6);case 6:return _.n(Q,I.renderIcon(r,k),0)}})};
_.u.toggleContainerClass=function(I){I?this.hostElement.classList.add("external-container"):this.hostElement.classList.remove("external-container")};
_.u.computeIcon=function(I){return!_.V("default_to_innertube_icon")||I.indexOf(":")>0?I:_.y5(I)};
_.u.determineIconSet=function(I,C,y,k){var F=this;return _.e(function(z){return z.nextAddress==1?_.V("kevlar_system_icons")||_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"||_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_CREATOR"?_.n(z,F.switchToYtSysIconset(I,C,y,k),3):z.jumpTo(2):z.nextAddress!=2?z.return():_.n(z,F.useYtSysIconsetForMissingIcons(I,C,y,k),0)})};
_.u.switchToYtSysIconset=function(I,C,y,k){var F=this,z,c,r,w,L,D,p;return _.e(function(Q){switch(Q.nextAddress){case 1:if(!I||F.iconsetName!=="yt-icons"&&F.iconsetName!=="yt-sys-icons"){Q.jumpTo(0);break}z=jKt(I);c=z[1];c=_.KTz(c);_.V("enable_polymer_icons_replace_underscores_dash")&&c.includes("_filled")&&(c=c.replace(/_filled/g,"-filled"));return _.n(Q,oj(c,!0),3);case 3:return r=Q.yieldResult,_.n(Q,oj(c,!1),4);case 4:if((w=Q.yieldResult)||C&&r)F.iconsetName="yt-sys-icons";F.iconName=F.getIconName(c,
C,y,w,r);if(k===24){Q.jumpTo(0);break}L="yt-sys-icons"+k+":"+F.iconName;return _.n(Q,oj(L,!1,!0),6);case 6:return D=Q.yieldResult,_.n(Q,oj(L,!0,!0),7);case 7:p=Q.yieldResult;F.iconName=F.getIconName(c,C,y,D,p);if(!C&&D||C&&p)F.iconsetName="yt-sys-icons"+k;_.oI(Q)}})};
_.u.getIconName=function(I,C,y,k,F){I.includes("-filled")&&(I=I.replace("-filled",""));return F&&(C||y)?I+"-filled":I};
_.u.useYtSysIconsetForMissingIcons=function(I,C,y,k){var F=this,z,c;return _.e(function(r){if(r.nextAddress==1)return F.iconsetName!=="yt-icons"?r.jumpTo(0):_.n(r,oj(F.iconName,!1,!1,!0),3);if(r.nextAddress!=4)return z=r.yieldResult,_.n(r,oj(F.iconName,!1),4);c=r.yieldResult;if(z||!c)return r.jumpTo(0);F.iconsetName="yt-sys-icons";return _.n(r,F.switchToYtSysIconset(I,C,y,k),0)})};
_.u.onIconsetAdded=function(){this.renderIcon(this.targetContainer,this.icon)};
_.u.getIconManager=function(){return _.e(function(I){try{return I.return(_.N().resolve(_.k$))}catch(C){return I.return(new Promise(function(y){_.So().parkOrScheduleJob(function(){y(_.N().resolve(_.k$))},2,"ci")}))}})};
_.u.getIconShapeData=function(){var I=this,C,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1){if(!I.iconType)return r.return(void 0);C=I.iconType.toLowerCase();y=C.endsWith("_filled")||C.endsWith("-filled");return _.n(r,I.getIconManager(),2)}k=r.yieldResult;F=I.active||I.defaultToFilled||y?"youtube_fill":"youtube_outline";z={iconName:C,iconStyle:F,iconSize:I.size,iconSetName:I.iconsetName};c=!!k.resolveIcon(z);c||(z.iconSize=void 0,c=!!k.resolveIcon(z));!c&&y&&(z.iconName=C.substring(0,C.length-
7),z.iconSize=I.size,c=!!k.resolveIcon(z),c||(z.iconSize=void 0,c=!!k.resolveIcon(z)));c||(z.iconStyle=void 0,c=!!k.resolveIcon(z));c||_.SN(new _.ph("Icon not supported",{iconName:z.iconName,iconStyle:z.iconStyle,iconSize:z.iconSize,iconType:C}));return r.return(c?z:void 0)})};
_.u.shouldRenderIconShape=function(I){if(!_.V("kevlar_use_wil_icons")||!this.iconType||!this.iconShapeData||this.isAnimatedIcon)return!1;I=this.getContainer(I);return!Ehm(I,this.icon)};
_.u.renderIcon=function(I,C){var y=this,k,F,z,c,r,w,L,D;return _.e(function(p){switch(p.nextAddress){case 1:if(C&&y.icon!==C)return p.return();k=y.getContainer(I);F=Ehm(k,y.icon);if(y.shouldRenderIconShape(I)&&y.iconType)return y.applyIconShape(F,k),p.return();y.removeIconShape();if(!k)return p.return();y.iconName===""&&y.iconset&&k&&(y.removeStaticIcon(y.iconset,k),F&&y.removeAnimatedIcon(k));if(y.iconName===""&&y.iconset||!y.iconsetName||!E80)return p.return();y.iconset=E80.byKey(y.iconsetName);
if(!y.iconset)return y.missingIconSet=!0,window.addEventListener("iron-iconset-added",_.sb(y,y.onIconsetAdded)),p.return();y.missingIconSet&&(y.missingIconSet=!1,window.removeEventListener("iron-iconset-added",_.sb(y,y.onIconsetAdded)));c=(z=F||y.isAnimatedIcon?ZOt(y.icon):void 0)&&!z.lazyLoad;w=z&&((r=z)==null?void 0:r.lazyLoad)&&(z.lottiePlayerProps.animationConfig.animationData?!0:CE.get(y.isDarkTheme?z.pathDarkTheme:z.path)?!0:!1);if(c||w)return y.applyAnimatedIcon(k,z,y.iconset),p.return();if(w||
(L=z)==null||!L.lazyLoad){p.jumpTo(2);break}D=UPs(z,y.isDarkTheme);y.applyStaticIcon(y.iconset,k,y.iconName,I,F);return _.n(p,D,3);case 3:return _.n(p,y.renderIcon(y.targetContainer,y.icon),4);case 4:return p.return();case 2:y.applyStaticIcon(y.iconset,k,y.iconName,I,F),_.oI(p)}})};
_.u.getContainer=function(I){var C,y=(C=dfz(this.hostElement))==null?void 0:C.host;C=!!y&&!!y.polymerController;if(!I||C)return I?this.getTargetContainer(I,y):this.hostElement};
_.u.getTargetContainer=function(I,C){var y=_.f(C).querySelector("#"+I);y||(I=new _.ph("yt-icon container missing",C.is,I),_.GB(I));return y};
_.u.applyStaticIcon=function(I,C,y,k,F){F&&this.removeAnimatedIcon(C);this.removeIconShape();F=F&&!!this.iconType&&!!this.iconShapeData&&_.V("kevlar_use_wil_icons");try{F?this.applyIconShape(!1,C):I.applyIcon(C,y)}catch(z){this.handleError(z,k,C)}};
_.u.applyIconShape=function(I,C){this.iconset&&C&&(this.removeStaticIcon(this.iconset,C),I&&this.removeAnimatedIcon(C));I={iconWidth:"100%",iconHeight:"100%",iconFilter:this.iconFilter};var y=_.T(this.iconShapeDataSignal);C=y.next().value;y=y.next().value;var k=_.T(this.renderingOptionsSignal),F=k.next().value;k=k.next().value;y(this.iconShapeData);k(I);if(!this.wizHasRendered)for(this.wizHasRendered=!0,I=_.T(MKW(C,F)).next().value;I.firstChild;)_.f(this.hostElement).appendChild(I.firstChild)};
_.u.removeIconShape=function(){if(_.V("kevlar_use_wil_icons"))(0,this.iconShapeDataSignal[1])(void 0)};
_.u.removeStaticIcon=function(I,C){I.removeIcon(C)};
_.u.applyAnimatedIcon=function(I,C,y){this.removeStaticIcon(y,I);this.removeIconShape();var k;y=this.animatedIconElement&&((k=this.animatedIconElement.polymerController.animatedIcon)==null?void 0:k.type)===C.type;if(this.animatedIconElement&&y){this.animatedIconElement.polymerController.animatedIcon=C;var F;((F=this.animatedIconElement)==null?void 0:F.polymerController.active)!==this.active&&(this.animatedIconElement.polymerController.active=this.active)}else this.animatedIconElement&&this.removeAnimatedIcon(I),
this.animatedIconElement=document.createElement("yt-animated-icon"),this.animatedIconElement.polymerController.animatedIcon=C,this.animatedIconElement.polymerController.active=this.active,this.animatedIconElement.polymerController.isDarkTheme=this.isDarkTheme,_.V("kevlar_use_wil_icons")?I.insertBefore(this.animatedIconElement,I.childNodes[0]):(I=_.f(I),I.insertBefore(this.animatedIconElement,I.childNodes[0]))};
_.u.removeAnimatedIcon=function(I){_.V("kevlar_use_wil_icons")?this.animatedIconElement&&I.contains(this.animatedIconElement)&&I.removeChild(this.animatedIconElement):(I=_.f(I),this.animatedIconElement&&I.contains(this.animatedIconElement)&&I.removeChild(this.animatedIconElement));this.animatedIconElement=void 0};
_.u.handleError=function(I,C,y){_.Ki(I,this.iconName,C,y);C=Ehm(y,this.icon);var k=!1;window.location.href.includes("JpymaW6Lh2w")?k=!0:y._svgIcon&&(y=(y=y._svgIcon.parentNode)?y.tagName:"unknown",_.Ki(I,y),y==="YT-ICON"&&I.name==="NotFoundError"?k=!0:I.name==="NotFoundError"&&C&&(k=!0));k?_.SN(I):_.GB(I)};
_.H1.Object.defineProperties(Ut,{template:{configurable:!0,enumerable:!0,get:function(){if(B70===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;
ZdS===void 0&&(ZdS=document.createElement("template"));var k=ZdS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);B70=I}I=B70;return I}}});
Ut.prototype.handlePropertyChange=Ut.prototype.handlePropertyChange;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ut.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",String)],Ut.prototype,"icon",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Ut.prototype,"active",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Ut.prototype,"defaultToFilled",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Ut.prototype,"isAnimatedIcon",void 0);
_.E([_.d({value:24}),_.h("design:type",Number)],Ut.prototype,"size",void 0);_.E([_.d({value:""}),_.h("design:type",String)],Ut.prototype,"targetContainer",void 0);_.E([_.d(),_.h("design:type",Object)],Ut.prototype,"animatedIconElement",void 0);_.E([_.d(),_.h("design:type",Object)],Ut.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ut.prototype,"ariaHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Ut.prototype,"ariaLabel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Ut.prototype,"role",void 0);_.E([_.d(),_.h("design:type",String)],Ut.prototype,"style",void 0);_.E([_.d(),_.h("design:type",String)],Ut.prototype,"iconFilter",void 0);_.E([_.FI("icon","active","defaultToFilled","size","targetContainer","isAttached","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],Ut.prototype,"handlePropertyChange",null);
Ut=_.E([_.lT({is:"yt-icon",noInjection:!0})],Ut);var hGw;var Ued=function(){var I=document.body,C=I.appendChild;if(hGw===void 0){var y=document.createElement("template");_.Y(y,'\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>');
hGw=y}y=hGw;C.call(I,y.content)};
document.body?Ued():window.addEventListener("DOMContentLoaded",Ued);var Hd8,taw=function(){return Hd8!==void 0?Hd8:Hd8=document.createElement("template")};
document.head.appendChild(taw().content);var Jvm,OdY=function(){return Jvm!==void 0?Jvm:Jvm=document.createElement("template")};
document.head.appendChild(OdY().content);var al8;_.Du=new _.Jj("KEY_MANAGER_TOKEN");var y59={duration:1E3,easing:"ease",fill:"forwards"};_.MU(ov9);var Maw=_.ks(_.FU);_.MU(_.FU);_.ik=_.BO(function(I){var C=_.Es(I.ref),y=I.aTagConfig?I.aTagConfig:_.P4(function(){var z,c,r,w,L,D;var p=(D=_.Rj((w=I.command)==null?void 0:w.call(I)))!=null?D:(L=I.command)==null?void 0:L.call(I);return _.Y$({innertubeCommand:p,skipOnClick:(z=I.skipOnClick)==null?void 0:z.call(I),stopPropagation:(c=I.dangerousStopPropagation)==null?void 0:c.call(I),defaultTarget:(r=I.target)==null?void 0:r.call(I)})||{}},void 0,"gnrRge");
_.l0(function(){C.value._data=y()._data;C.value.params=y().params});
var k=_.uk(function(z){var c,r;return void((r=(c=y()).onpointerdown)==null?void 0:r.call(c,z))}),F=_.uk(function(z){var c,r;
return void((r=(c=y()).onclick)==null?void 0:r.call(c,z))});
return _.P("a",{el:C,href:function(){return y().href$},
rel:function(){return y().rel$},
class:function(){var z,c;return(c=y().className)!=null?c:(z=I.className)==null?void 0:z.call(I)},
style:function(){var z;if((z=I.style)==null?0:z.call(I))return I.style();var c;return((c=I.disabled)==null?0:c.call(I))?"pointer-events:none":""},
"aria-haspopup":function(){return!!y()["aria-haspopup$"]},
"force-new-state":zN(function(){return y()["force-new-state$"]}),
title:zN(function(){var z,c;return(c=y().title$)!=null?c:(z=I.title)==null?void 0:z.call(I)}),
role:zN(function(){return y().role$}),
target:zN(function(){return y().target$}),
dir:zN(function(){var z;return((z=I.dir)==null?0:z.call(I))?I.dir():y().dir}),
tabindex:function(){var z;return y().tabindex$?Number(y().tabindex$):(z=I.tabIndex)==null?void 0:z.call(I)},
"aria-hidden":function(){var z,c;return(c=y()["aria-hidden$"])!=null?c:(z=I.ariaHidden)==null?void 0:z.call(I)},
"aria-label":function(){var z,c;return(c=y()["aria-label$"])!=null?c:(z=I.ariaLabel)==null?void 0:z.call(I)},
"aria-current":I.ariaCurrent,"aria-labelledby":I.ariaLabelledby,"aria-describedby":I.ariaDescribedby,"aria-selected":I.ariaSelected,"tab-identifier":I.tabIdentifier,"on:pointerdown":k,"on:click":F},I.children)},"j");var I$w=function(I,C){this.fillAnimation=new Animation(uaI(I),document.timeline);this.strokeAnimation=new Animation(z5z(C),document.timeline)};
I$w.prototype.play=function(){var I,C;(C=(I=this.fillAnimation).play)==null||C.call(I);var y,k;(k=(y=this.strokeAnimation).play)==null||k.call(y)};
I$w.prototype.cancel=function(){var I,C;(C=(I=this.fillAnimation).cancel)==null||C.call(I);var y,k;(k=(y=this.strokeAnimation).cancel)==null||k.call(y)};_.nE=_.BO(function(I){var C=I.model;var y=I.pointerDownEvent;var k=I.pointerUpEvent;var F=I.pointerLeaveEvent;I=_.Es();var z=_.cP({"border-radius":function(){return C().borderRadius}}),c=_.Es(),r=_.Es(),w=_.T(_.TN(function(){return(k==null?0:k())||(F==null?0:F())?!1:!(y==null||!y())||!1})),L=w.next().value,D=w.next().value,p=void 0,Q=function(){!p&&r.value&&c.value&&typeof Animation==="function"&&typeof KeyframeEffect==="function"&&(p=new I$w(r.value,c.value));
var B;(B=p)==null||B.play()},X=function(){var B;
(B=p)==null||B.cancel()},b=function(){var B;
(B=p)==null||B.cancel()};
_.l0(function(){(k==null?0:k())&&Q()});
_.l0(function(){(y==null?0:y())&&X()});
_.l0(function(){(F==null?0:F())&&b()});
w=_.uk(function(){Q();D(!1)});
var S=_.uk(function(){X();D(!0)}),A=_.uk(function(){b();
D(!1)});
_.$4(function(){if(p){var B;(B=p)==null||B.cancel();p=void 0}});
var x={};L=_.sZ("yt-spec-touch-feedback-shape",function(){return c5s(C().color)},(x["yt-spec-touch-feedback-shape--focused"]=function(){return!!C().focused&&!C().disabled},x["yt-spec-touch-feedback-shape--circular"]=function(){return!!C().circular},x["yt-spec-touch-feedback-shape--is-extended"]=function(){return!!C().isExtended},x["yt-spec-touch-feedback-shape--down"]=L,x["yt-spec-touch-feedback-shape--trigger-events"]=function(){return!!C().triggerEvents},x));
return _.P("yt-touch-feedback-shape",{style:_.cP({"border-radius":"inherit"})},_.P("div",{el:I,class:L,style:_.cP({"margin-top":function(){return C().customTopExtend?"-"+C().customTopExtend+"px":void 0}}),
"on:mousedown":S,"on:mouseup":w,"on:pointerleave":A,"on:touchstart":S,"on:touchend":w,"aria-hidden":!0},_.P("div",{class:"yt-spec-touch-feedback-shape__stroke",style:z,el:c}),_.P("div",{class:"yt-spec-touch-feedback-shape__fill",style:z,el:r})))},"k");
_.nE.idomCompat=!0;var CCb={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 H7=_.wH();H7=H7.toLowerCase();if(_.rH(H7,"android")){var sbS=H7.match(/android\s*(\d+(\.\d+)?)[^;|)]*[;)]/);sbS&&parseFloat(sbS[1])<100||H7.match("("+Object.keys(CCb).join("|")+")")};var oR5=_.BO(function(I){return _.P(_.Dx,{cond:I.aTagConfig,then:function(C){return _.P(_.ik,{aTagConfig:C,disabled:I.disabled,className:I.className,style:I.style,title:I.title,ariaLabel:I.ariaLabel,ariaCurrent:function(){var y,k;return((y=I.toggleable)==null?void 0:y.call(I))&&((k=I.toggled)==null?void 0:k.call(I))}},I.children)},
else:function(){return _.P("button",{"on:click":_.uk(function(C){var y;return(y=I.onClick)==null?void 0:y.call(I,C)}),
class:I.className,title:I.title,style:I.style,disabled:I.disabled,"aria-pressed":function(){var C,y;return((C=I.toggleable)==null?0:C.call(I))?!((y=I.toggled)==null||!y.call(I)):void 0},
"aria-label":I.ariaLabel,"aria-disabled":I.visiblyDisabled,"aria-hidden":I.ariaHidden,tabindex:I.tabIndex},I.children)}})},"l"),kVq=_.BO(function(I){var C=I.data;
var y=I.hasIconLeading;var k=I.hasIconLeadingTrailing;var F=I.hasIconTrailing;var z=I.iconButton;var c=I.iconClassName;var r=I.secondaryIconClassName;var w=I.icon;var L=I.secondaryIcon;var D=I.textContentClassName;return _.P(ts,{className:"",style:"display: inherit; justify-content: center"},_.P(_.Dx,{cond:function(){return w&&(y()||k()||(z==null?void 0:z()))},
then:function(){return _.P(ts,null,_.P("div",{class:c,"aria-hidden":"true"},w==null?void 0:w()))}}),_.P(_.Dx,{cond:function(){return(C().buttonText||C().animatedTextProps||C().formattedButtonText)&&!(z==null?0:z())},
then:function(){return _.P(ts,null,_.P(yKw,{className:D,iconPosition:function(){return C().iconPosition},
text:function(){return C().buttonText},
oneOffCustomTextWrap:function(){return C().oneOffCustomTextWrap},
formattedButtonText:function(){return C().formattedButtonText},
animatedTextProps:function(){return C().animatedTextProps}}))}}),_.P(_.Dx,{cond:F,
then:function(){return _.P(ts,null,_.P("div",{class:c},w==null?void 0:w()))}}),_.P(_.Dx,{cond:k,
then:function(){return _.P(ts,null,_.P("div",{class:r},L==null?void 0:L()))}}),_.P(_.Dx,{cond:function(){return!C().disabled&&!0},
then:function(){return _.P(_.nE,{model:function(){return{color:wbY(C())}}})}}))},"m"),yKw=_.BO(function(I){var C=function(){var y,k;
return((y=I.iconPosition)==null?void 0:y.call(I))==="icon-with-label"||((k=I.oneOffCustomTextWrap)==null?void 0:k.call(I))};
return _.P("div",{class:I.className,"aria-hidden":function(){var y,k,F;return((y=I.ariaHidden)==null?void 0:y.call(I))&&(!((k=I.animatedTextProps)==null||!k.call(I))||!((F=I.formattedButtonText)==null||!F.call(I)))}},_.P(_.Vr,null,_.P(_.Qr,{when:function(){var y;
return(y=I.animatedTextProps)==null?void 0:y.call(I)}},function(){return _.P(Maw,{numberText:function(){return I.animatedTextProps().numberText},
numberValue:function(){return I.animatedTextProps().numberValue},
heightPx:function(){return I.animatedTextProps().heightPx},
fontSizeMultiplier:function(){return I.animatedTextProps().fontSizeMultiplier},
shouldAnimate:function(){return I.animatedTextProps().shouldAnimate},
forceRollUp:function(){return I.animatedTextProps().forceRollUp}})}),_.P(_.Qr,{when:function(){var y;
return(y=I.formattedButtonText)==null?void 0:y.call(I)}},function(){return _.P(_.wh,{text:function(){return Object.assign({},I.formattedButtonText(),{lineBreakMode:C()?"LINE_BREAK_MODE_BY_WORD_WRAPPING":I.formattedButtonText().lineBreakMode,
alignment:C()?"TEXT_ALIGNMENT_CENTER":I.formattedButtonText().alignment})},
noLinkColor:!0,noWrap:function(){return!C()}})}),_.P(_.N$,null,function(){return I.text})))},"n"),Fb0=_.BO(function(I){return _.P(_.Dx,{cond:I.hasLabel,
then:function(){var C;return _.P("label",{class:I.className},I.children,(C=I.textContent)==null?void 0:C.call(I))},
else:function(){return I.children}})},"o"),ts=_.BO(function(I){return I.children},"p");var s8H=a1("stamper-context");_.MU(XbO);var aY=_.BO(function(I){var C=I.data;var y=I.icon;var k=I.iconName;var F=I.secondaryIcon;var z=I.secondaryIconName;var c=I.focusedOverride;V$W();var r=e5m(C),w=r.size,L=r.style;I=r.disabled;var D=r.onTap,p=r.alignByText,Q=r.aTagConfig,X=r.customColors,b=r.segmentedPosition,S=r.toggled,A=r.toggleable,x=r.accessibilityLabel,B=r.onToggle,t=r.iconPosition,U=r.oneOffCustomTextWrap,yW=r.disableTextEllipsis,a=r.disableBackdropFilter,cs=r.tooltipText,XO=r.ariaHidden,Rm=r.tabIndex,$z=r.buttonText,hX=r.formattedButtonText,
vs=r.animatedTextProps,mY=i_I(C,y,F,k,z,c),Bs=mY.type;y=mY.shouldFocus;k=mY.hasIconLeading;F=mY.hasIconTrailing;z=mY.hasIconLeadingTrailing;var n5=mY.hasIconOnly;c=mY.hasIconOnly40;var sH=mY.hasIconWithLabel;r=mY.iconButton;var Zt=mY.visiblyDisabled,Qd=mY.overrideSmallSizeIcon,OF=mY.iconToRender;mY=mY.secondaryIconToRender;var Rw={},ku={};return _.P(Fb0,{className:_.sZ("yt-spec-button-shape-with-label",(Rw["yt-spec-button-shape-with-label--is-overlay"]=function(){return L()==="overlay"||L()==="overlay-dark"},
Rw)),
hasLabel:sH,textContent:function(){return _.P(yKw,{text:$z,className:"yt-spec-button-shape-with-label__label",ariaHidden:!0,oneOffCustomTextWrap:U,iconPosition:t,formattedButtonText:hX,animatedTextProps:vs})}},_.P(oR5,{aTagConfig:Q,
className:_.sZ("yt-spec-button-shape-next",function(){return PHW(Bs())},function(){return Zt()?void 0:L1I(L())},function(){return DRs(w())},(ku["yt-spec-button-shape-next--disabled"]=Zt,ku["yt-spec-button-shape-next--focused"]=y,ku["yt-spec-button-shape-next--icon-trailing"]=F,ku["yt-spec-button-shape-next--icon-leading"]=k,ku["yt-spec-button-shape-next--icon-leading-trailing"]=z,ku["yt-spec-button-shape-next--icon-button"]=function(){return n5()||sH()},ku["yt-spec-button-shape-next--icon-only-default"]=
c,ku["yt-spec-button-shape-next--align-by-text"]=p,ku["yt-spec-button-shape-next--segmented-start"]=function(){return b()==="start"},ku["yt-spec-button-shape-next--segmented-end"]=function(){return b()==="end"},ku["yt-spec-button-shape-next--override-small-size-icon"]=Qd,ku["yt-spec-button-shape-next--one-off-custom-text-wrap-container"]=U,ku["yt-spec-button-shape-next--disable-text-ellipsis"]=yW,ku["yt-spec-button-shape-next--enable-backdrop-filter-experiment"]=function(){return!a()&&nvz()},ku)),
style:function(){return QPY(X()).style},
onClick:function(xK){D==null||D(xK);A()&&(B==null||B(xK))},
disabled:I,ariaLabel:x,toggleable:A,toggled:S,title:function(){var xK;return(xK=cs())!=null?xK:""},
visiblyDisabled:Zt,ariaHidden:XO,tabIndex:Rm},_.P(kVq,{data:C,hasIconLeading:k,hasIconLeadingTrailing:z,hasIconTrailing:F,iconButton:r,icon:OF,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:mY})))},"q");
aY.idomCompat={callbacks:{icon:!0,secondaryIcon:!0}};var u38=_.BO(function(I){var C=I.data;var y=I.id;var k=I.hidden;var F=I.disableUpgrade;var z=I.className;var c=I.icon;var r=I.secondaryIcon;var w=I.iconName;var L=I.secondaryIconName;I=_.T(_.c4(!1,void 0,"O7k8w"));var D=I.next().value,p=I.next().value,Q=function(){var b=_.N().resolve(_.aU(_.Du));b&&p(b.isKeyBoardInUse())},X=function(){p(!1)};
I=_.Es(function(b){if((F==null||!F())&&_.N().resolve(_.aU(_.Du)))return b.addEventListener("focusin",Q),b.addEventListener("focusout",X),function(){b.removeEventListener("focusin",Q);b.removeEventListener("focusout",X)}});
return _.P("yt-button-shape",{el:I,id:y,class:z,hidden:function(){return(k==null?void 0:k())||(F==null?void 0:F())}},_.P(_.Dx,{cond:function(){return!(F==null?0:F())},
then:function(){return _.P(aY,{data:C,icon:c,secondaryIcon:r,iconName:w,secondaryIconName:L,focusedOverride:D})}}))},"r");
_.V("web_wiz_button_shape")&&_.B9(u38,"yt-button-shape",{props:{data:_.As,id:_.As,hidden:_.As,disableUpgrade:_.As,className:_.As,icon:_.Z_,secondaryIcon:_.Z_,iconName:_.As,secondaryIconName:_.As},unsafeExternallySettableAttributes:new Set(["key","dialog-dismiss"])});var Js=function(){var I=_.q.apply(this,arguments)||this;I.keyboardFocused=!1;return I};
_.R(Js,_.q);Js.prototype.onFocus=function(){var I=_.N().resolve(_.aU(_.Du));I&&(this.keyboardFocused=I.isKeyBoardInUse())};
Js.prototype.onBlur=function(){this.keyboardFocused=!1};
Js.prototype.renderIdom=function(){var I=this;if(this.data){var C=rh(this.data,!!this.iconName),y=pbm(this.data),k=function(){var z;Nx("yt-icon",{icon:I.iconName,active:(z=I.data)==null?void 0:z.toggled,size:C,style:"width: "+C+"px; height: "+C+"px;",iconFilter:y},qT)},F=function(){var z;
Nx("yt-icon",{icon:I.secondaryIconName,active:(z=I.data)==null?void 0:z.toggled,size:C,style:"width: "+C+"px; height: "+C+"px;",iconFilter:y},qT)};
this.data.focused=this.keyboardFocused;_.V("web_reactive_button_shape_in_c3po")?W9(aY)({data:this.data,iconName:this.iconName,secondaryIconName:this.secondaryIconName}):f5K(this.data,k,F);_.k3(this.hostElement,"yt-renderidom-finished")}};
_.H1.Object.defineProperties(Js,{template:{configurable:!0,enumerable:!0,get:function(){if(al8===void 0){var I=document.createElement("template");_.Y(I,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-button-shape--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape_wil_styles.css.js,video.youtube.src.web.polymer.shared.web_interface_library.youtube_standards.yt_button_shape.yt.button.shape.css.js--\x3e");
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(OdY().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(taw().content.cloneNode(!0),I.content.firstChild);al8=I}I=al8;return I}}});
Js.prototype.onBlur=Js.prototype.onBlur;Js.prototype.onFocus=Js.prototype.onFocus;_.E([_.g(KTq),_.h("design:type",Object)],Js.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Js.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],Js.prototype,"iconName",void 0);_.E([_.d(),_.h("design:type",String)],Js.prototype,"secondaryIconName",void 0);_.E([_.d(),_.h("design:type",Object)],Js.prototype,"keyboardFocused",void 0);
_.E([_.km("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Js.prototype,"onFocus",null);_.E([_.km("focusout"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Js.prototype,"onBlur",null);Js=_.E([_.lT({is:"yt-button-shape",isInjectionRoot:!0,disableElementRegistration:_.V("web_wiz_button_shape")})],Js);_.B9(_.BO(function(I){function C(){y().seconds&&z(gfs({seconds:Number(y().seconds)-Date.now()/1E3}))}
var y=I.targetTimestamp;I=I.className;var k=_.T(_.c4("",void 0,"U1Q8Ae")),F=k.next().value,z=k.next().value;_.X2(function(){C();var c=setInterval(function(){C()},1E3);
_.$4(function(){clearInterval(c)})});
return _.P("yt-countdown",{class:_.sZ("ytCountDownHost",I)},_.P("div",null,F))},"s"),"yt-countdown",{props:{targetTimestamp:_.As,
className:_.Z_}});_.fM=_.BO(function(I){var C=I.data;var y=I.className;var k=I.style;var F=I.useOutlinedIcon;var z=I.buttonOverrides;var c=I.animatedTextProps;var r=I.onClick;var w=_.Es(function(A){return function(){ADw(_.oA(),A)}}),L=function(){return C().iconName},D,p=(D=_.N().resolve(_.aU(_.AE)))==null?void 0:D(),Q=function(){var A=C();
var x=z==null?void 0:z(),B=c==null?void 0:c();if(A){var t=A5K(A.type);var U=!!A.title||!!A.titleFormatted;var yW=!(!A.iconName&&!A.iconImage);U=yW&&!U?"icon-only":yW?A.iconTrailing||A.iconPosition==="BUTTON_VIEW_MODEL_ICON_POSITION_TRAILING"?"trailing":"leading":void 0;U==="icon-only-40"&&(t="text");var a,cs=(a=x==null?void 0:x.disabled)!=null?a:A.state==="BUTTON_VIEW_MODEL_STATE_DISABLED"||A.state==="BUTTON_VIEW_MODEL_STATE_INACTIVE";a=Object;yW=a.assign;var XO=A.title,Rm=A.titleFormatted;B=B&&B.numberText&&
!isNaN(Number(B.numberValue))?B:void 0;var $z=A.accessibilityText,hX=K1I(A.style),vs=gvF(A.state),mY=vvX(A.buttonSize),Bs=SKm(A,w,cs,r);cs=cs&&!A.onDisabledTap;var n5=_.Y$({elementsCommand:A.onTap,forceNewState:!0});n5=bdW(n5)?n5:void 0;var sH=A.customFontColor,Zt=A.customBackgroundColor;var Qd=A.customBorderColor;var OF=A.customDarkThemeFontColor,Rw=A.customDarkThemeBackgroundColor,ku=A.customDarkThemeBorderColor;sH=p&&OF?OF:sH;Zt=p&&Rw?Rw:Zt;Qd=p&&ku?ku:Qd;Qd={color:sH?_.Xl(sH):void 0,backgroundColor:Zt?
_.Xl(Zt):void 0,borderColor:Qd?_.Xl(Qd):void 0};A=yW.call(a,{},{buttonText:XO,formattedButtonText:Rm,animatedTextProps:B,accessibilityLabel:$z,style:hX,type:t,state:vs,size:mY,iconPosition:U,onTap:Bs,disabled:cs,aTagConfig:n5,customColors:Qd,tooltipText:A.tooltip},x)}else A={style:"mono",type:"text",state:"active",size:"M"};A.focused=S();return A},X=function(){return rh(Q(),!!C().iconName)};
I=_.T(_.c4(!1,void 0,"JjUrEe"));D=I.next().value;var b=I.next().value,S=D;I=_.uk(function(){var A=_.N().resolve(_.aU(_.Du));A&&b(A.isKeyBoardInUse());return!1});
D=_.uk(function(){b(!1);return!1});
_.l0(function(){var A,x=_.l(C==null?void 0:(A=C())==null?void 0:A.onVisible,_.$$);x&&_.bU(x,{disableClickTracking:!0})});
_.RU(function(){w.value.dispatchEvent(new CustomEvent("yt-renderidom-finished",{bubbles:!0,cancelable:!1,composed:!0}));var A=C().targetId;A&&_.vZb(_.oA(),A,w.value)});
return _.P("button-view-model",{el:w,class:_.sZ("yt-spec-button-view-model",y),"on:focusin":I,"on:focusout":D},_.P(_.Dx,{cond:function(){return C().iconImage?{sources:[C().iconImage]}:void 0},
then:function(A){return _.P(aY,{data:Q,icon:function(){return _.P(_.x$,{data:A,alt:"",targetWidth:X,targetHeight:X,preserveWidth:!0,preserveHeight:!0})}})},
else:function(){return _.P(aY,{data:Q,icon:function(){return _.P(_.ez,{icon:L,active:function(){return(F==null?0:F())?!1:Q().toggled},
animateIcon:function(){var A;return!!(k==null?0:(A=k())==null?0:A.animateIcon)},
size:X})}})}}))},"t");
_.fM.idomCompat={callbacks:{onClick:!0}};_.B9(_.BO(function(I){return _.P("yt-button-view-model",{id:I.id,class:_.sZ(I.scopingClassName,I.classes),icon:function(){var C;return(C=I.icon)==null?void 0:C.call(I)},
"dialog-dismiss":function(){var C;return((C=I.dialogDismiss)==null?0:C.call(I))?"":void 0}},_.P(_.fM,{data:function(){var C;
return(C=I.data)==null?void 0:C.call(I)},
className:function(){var C;return(C=I.className)==null?void 0:C.call(I)},
style:function(){var C;return(C=I.style)==null?void 0:C.call(I)},
useOutlinedIcon:function(){var C;return(C=I.useOutlinedIcon)==null?void 0:C.call(I)},
buttonOverrides:function(){var C;return(C=I.buttonOverrides)==null?void 0:C.call(I)},
animatedTextProps:function(){var C;return(C=I.animatedTextProps)==null?void 0:C.call(I)},
onClick:function(C){var y;return(y=I.onClick)==null?void 0:y.call(I,C)}}))},"u"),"yt-button-view-model",{props:{data:_.As,
className:_.As,style:_.As,useOutlinedIcon:_.As,buttonOverrides:_.As,animatedTextProps:_.As,onClick:_.Z_,scopingClassName:_.As,id:_.As,icon:_.As,dialogDismiss:_.As,classes:_.As}});var Ot=function(){var I=_.q.apply(this,arguments)||this;I.isGoalActive=!0;return I};
_.R(Ot,_.q);Ot.prototype.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
Ot.prototype.progressBarChanged=function(){var I=_.f(this.hostElement).querySelector("#progress-bar-progress"),C,y,k,F=(k=Number((C=this.creatorGoalState)==null?void 0:C.currentGoalCount)/Number((y=this.creatorGoalState)==null?void 0:y.totalGoalCount)*100)!=null?k:0,z;I.style.width=((z=Math.min(F,100))!=null?z:0)+"%"};
Ot.prototype.goalStateChanged=function(){var I;this.isGoalActive=((I=this.creatorGoalState)==null?void 0:I.creatorGoalState)==="CREATOR_GOAL_STATE_ACTIVE";var C;I={"--yt-progress-bar-color":aGt((C=this.creatorGoalState)==null?void 0:C.progressBarColor)};_.CK(this.hostElement,I)};
Ot.prototype.configureRendererStamper=function(){return{"creatorGoalState.progressFlowButton":{id:"progress-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
_.H1.Object.defineProperties(Ot.prototype,{shouldShowCountdown:{configurable:!0,enumerable:!0,get:function(){var I;return this.isGoalActive&&!((I=this.creatorGoalState)==null||!I.shouldShowCountdown)}},
endTimestamp:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.creatorGoalState)==null?0:I.endTimestampMs){var C;I=Number((C=this.creatorGoalState)==null?void 0:C.endTimestampMs)/1E3;return{seconds:String(I)}}}},
targetIconThemedImage:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.creatorGoalState)==null?0:I.themedTargetImage){var C;I=_.l((C=this.creatorGoalState)==null?void 0:C.themedTargetImage,Ftq);return this.isAppDarkTheme()?I==null?void 0:I.imageDark:I==null?void 0:I.imageLight}}}});
_.H1.Object.defineProperties(Ot,{template:{configurable:!0,enumerable:!0,get:function(){return SR5()}}});
Ot.prototype.goalStateChanged=Ot.prototype.goalStateChanged;Ot.prototype.progressBarChanged=Ot.prototype.progressBarChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ot.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],Ot.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ot.prototype,"ytRendererBehavior",void 0);
_.E([_.d({selectorArgs:["data.creatorGoalEntityKey"],selector:function(I,C){return _.cg(I.entities,"creatorGoalEntity",C)}}),
_.h("design:type",Object)],Ot.prototype,"creatorGoalState",void 0);_.E([_.d(),_.h("design:type",Object)],Ot.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ot.prototype,"isGoalActive",void 0);_.E([_.v("creatorGoalState","isGoalActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ot.prototype,"shouldShowCountdown",null);_.E([_.v("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ot.prototype,"endTimestamp",null);
_.E([_.v("creatorGoalState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ot.prototype,"targetIconThemedImage",null);_.E([_.FI("creatorGoalState.currentGoalCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ot.prototype,"progressBarChanged",null);_.E([_.FI("creatorGoalState.creatorGoalState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ot.prototype,"goalStateChanged",null);
Ot=_.E([_.lT({is:"yt-creator-goal-progress-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Ot);_.Z(Ot,"yt-creator-goal-progress-flow-view-model",function(){return SR5()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var z7e;var TB8;var aA=function(){return _.q.apply(this,arguments)||this};
_.R(aA,_.q);aA.prototype.attached=function(){var I,C,y;if(this==null?0:(I=this.data)==null?0:(C=I.pdgPurchasedBumperLoggingDirectives)==null?0:(y=C.loggingDirectives)==null?0:y.trackingParams){var k,F,z;xRY(this==null?void 0:(k=this.data)==null?void 0:(F=k.pdgPurchasedBumperLoggingDirectives)==null?void 0:(z=F.loggingDirectives)==null?void 0:z.trackingParams)}};
aA.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{bumperUserEduContentViewModel:{component:"yt-bumper-user-edu-content-view-model"}}}}};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],aA.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],aA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],aA.prototype,"data",void 0);aA=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-item-bumper-view-model"})],aA);
_.Z(aA,"yt-live-chat-item-bumper-view-model",function(){if(TB8===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;z7e===void 0&&(z7e=document.createElement("template"));var k=z7e;y.call(C,k.content.cloneNode(!0),I.content.firstChild);TB8=I}I=TB8;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var cKb;var e70;_.xs=function(I,C){this.data=I;this.actions=C;this.data=I;this.actions=C};
_.fE=function(){};_.M8={};_.M8.YtOpenPopupBehavior={properties:{popupPositionTarget:Object},listeners:{"yt-service-request-completed":"onOpenPopupServiceRequestCompleted_"},created:function(){this.openPopupConfig=null},
openPopup:function(I,C){qKF(this.hostElement,I,C)},
getNavigationEndpointPopupAction:function(I){return mRH(I,this.openPopupConfig)},
onOpenPopupServiceRequestCompleted_:function(I,C){Z_m(this.hostElement,I,C,this.openPopupConfig)}};var M$s=["backstageImageUploadEndpoint","openUpdateCommentDialogAction","updateCommentDialogEndpoint","updateCommentReplyDialogEndpoint"];_.IW={};
_.IW.YtEndpointBehavior=[_.M8.YtOpenPopupBehavior,{properties:{openPopupConfig:Object,useClickHandler:{type:Boolean,value:!1}},ready:function(){this.openPopupConfig=_.Aq("openPopupConfig");(this.useClickHandler=_.g5("useClickHandler",!1))?this.listen(this.hostElement,"click","onEndpointClick_"):(this.listen(this.hostElement,"tap","onEndpointTap_"),this.listen(this.hostElement,"touchend","onEndpointTouchEnd_"));this.listen(this.hostElement,"touchstart","onEndpointTapStart_");this.listen(this.hostElement,"mousedown",
"onEndpointTapStart_")},
onEndpointClick_:function(I){h5W(this.hostElement,I,this.openPopupConfig,this.disableCommandHandlerOverride)},
onEndpointTap_:function(I){var C=this.hostElement,y=this.openPopupConfig,k=this.disableCommandHandlerOverride;k=k===void 0?!1:k;var F=BLs(I);if(F){F.href&&bg(F.href);var z=I.detail;var c=z.sourceEvent;z=z.preventer;c=c.button!==void 0?c.button===0&&!pE(c):z?!pE(z):!0;F.data&&c&&Evm(C,F,I,y,k)}},
onEndpointTouchEnd_:function(I){pE(I)||BLs(I)&&I.preventDefault()},
onEndpointTapStart_:function(I){O_H(I)}}];var IjX="section1Color section2Color section3Color section4Color navBarColor primaryTitleColor secondaryTitleColor bodyTextColor iconActivatedColor iconInactiveColor iconDisabledColor".split(" "),sSF=["backgroundColor","borderColor","foregroundTitleColor","foregroundBodyColor","foregroundActivatedColor"];var rKS={};rKS.YtPlaintextBehavior=[_.Ds,{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(I){I.preventDefault();I=I.clipboardData.getData("text/plain");document.execCommand("insertText",!1,I)},
preventRichTextFormatting_:function(I){_.cv&&(I=I.detail.keyboardEvent,I.stopImmediatePropagation(),I.preventDefault())}}];var iJw;var wLe;var CX=function(){var I=_.q.apply(this,arguments)||this;I.ignoreShadyDom=!1;I.hasChange_=!1;I.hasSetTitle_=!1;I.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.Aq("INNERTUBE_CLIENT_NAME")==="WEB";I.ytFormattedStringObserverHandlerKeys_=void 0;return I};
_.R(CX,_.q);_.u=CX.prototype;_.u.created=function(){this.useIOObserverForVisibilityLogging_=_.V("kevlar_use_vimio_behavior")&&_.Aq("INNERTUBE_CLIENT_NAME")==="WEB";this.isEmpty=!0};
_.u.ready=function(){_.Aq("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_()};
_.u.attached=function(){this.hasChange_&&this.textChanged_(this.text)};
_.u.detached=function(){this.unobserveIOObservers_()};
_.u.clearContents_=function(){for(var I=this.getRoot(),C=I.lastChild;C&&C.tagName!=="STYLE";){try{I.removeChild(C)}catch(y){break}C=I.lastChild}};
_.u.unobserveIOObservers_=function(){if(this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&this.ytFormattedStringObserverHandlerKeys_){for(var I=_.T(this.ytFormattedStringObserverHandlerKeys_),C=I.next();!C.done;C=I.next())this.ytRendererBehavior.visibilityObserver.unobserveByKey(C.value);this.ytFormattedStringObserverHandlerKeys_.length=0}};
_.u.resetForAttributedString=function(){var I=this.getRoot();!I.querySelector("yt-attributed-string")&&this.ytAttributedStringElementRef&&(this.clearContents_(),I.appendChild(this.ytAttributedStringElementRef))};
_.u.resetForFormattedString=function(){var I=this.getRoot(),C=I.querySelector("yt-attributed-string");C&&(this.ytAttributedStringElementRef=I.removeChild(C))};
_.u.textChanged=function(){this.textChanged_(this.text)};
_.u.textChanged_=function(I){if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;this.isEmpty=!I||!I.runs&&!I.simpleText;if(_.V("web_replace_formatted_with_attributed_string")){if(this.useYtAttributedString){this.resetForAttributedString();return}this.resetForFormattedString()}this.unobserveIOObservers_();for(var C=this.hostElement.firstChild;C&&C.nodeName==="FONT";){var y=C;C=C.nextSibling;this.hostElement.removeChild(y)}C=this.getRoot();if(this.isEmpty)this.clearContents_();else{this.ellipsisTruncateChanged_();
y=I.simpleText;var k;!y&&((k=I.runs)==null?void 0:k.length)===1&&this.isSimpleString_(I.runs[0])&&(y=I.runs[0].text);y!==void 0&&!this.respectHtmlDir&&this.useMixedDirectionFormattedStrings&&_.Aq("HTML_DIR")==="rtl"&&(this.hostElement.dir="auto");if(y!==void 0){try{C.textContent=y}catch(F){}C.textContent||(this.isEmpty=!0)}else I=I.runs,y!==void 0&&(I=[{text:y}]),this.ellipsisTruncate?this.hostElement.classList.add("complex-string"):this.hostElement.classList.remove("complex-string"),I&&this.updateText_(I),
C.textContent||this.hasEmoji||(this.isEmpty=!0)}}};
_.u.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)};
_.u.computeAriaLabel_=function(I){return I};
_.u.computeEllipsisTruncateStyling=function(I,C){return I&&!C};
_.u.computeUseAttributedString=function(I){return _.V("web_replace_formatted_with_attributed_string")&&wWW(I)&&!this.disableAttributedString&&!this.enableContentEditable};
_.u.setNodeStyle_=function(I,C){!this.useMixedDirectionFormattedStrings||this.respectHtmlDir||_.V("disable_child_node_auto_formatted_strings")&&this.hostElement.dir==="auto"?C.removeAttribute("dir"):C.setAttribute("dir","auto");C.classList.remove("bold","deemphasize","italic","strikethrough","bracket","error-underline");C.style.color="";var y=null;this.noStyles||(I.bold&&(C.classList.add("bold"),y="bold"),I.deemphasize&&(C.classList.add("deemphasize"),y="deemphasize"),I.italics&&C.classList.add("italic"),
I.strikethrough&&C.classList.add("strikethrough"),I.errorUnderline&&(C.classList.add("error-underline"),this.isDarkTheme=document.documentElement.hasAttribute("dark")),I.bracket&&C.classList.add("bracket"),I.textColor&&(C.style.color=_.lg(I.textColor)));y!==C.getAttribute("style-target")&&(y?C.setAttribute("style-target",y):C.removeAttribute("style-target"))};
_.u.setUpVisibilityLogging_=function(I,C){var y=this;this.setNodeTrackingParams_(I,C);var k;((k=C.data)==null?0:k.trackingParams)&&this.useIOObserverForVisibilityLogging_&&this.ytRendererBehavior.visibilityObserver&&(I=this.ytRendererBehavior.visibilityObserver.observe(C,function(F){var z=y.ytRendererBehavior.getVisibilityLogger();z&&z.reportShown(F)},this.ytRendererBehavior.visibilityOptionVisible_),C=this.ytRendererBehavior.visibilityObserver.observe(C,function(F){var z=y.ytRendererBehavior.getVisibilityLogger();
z&&z.reportHidden(F)},this.ytRendererBehavior.visibilityOptionHidden_),this.ytFormattedStringObserverHandlerKeys_||(this.ytFormattedStringObserverHandlerKeys_=[]),this.ytFormattedStringObserverHandlerKeys_.push(I),this.ytFormattedStringObserverHandlerKeys_.push(C))};
_.u.setNodeTrackingParams_=function(I,C){C.data||(C.data={});if((I=I.loggingDirectives?I.loggingDirectives.trackingParams:null)||C.data.trackingParams)C.data.trackingParams=I};
_.u.computeHasLinkOnly_=function(I){return!(!I||I.length!==1||this.noEndpoints||!I[0].navigationEndpoint)};
_.u.getRoot=function(){var I=this.buildScopeDomOptions();return this.enableContentEditable?_.f(_.f(this.hostElement,I).querySelector("[contenteditable]")):_.f(this.hostElement,I)};
_.u.fixContenteditableScope=function(){var I=function(C){C&&(C.nodeType===1&&C.classList&&(C.classList.add("style-scope"),C.classList.add("yt-formatted-string")),C.childNodes&&C.childNodes.forEach(function(y){I(y)}))};
I(this.getRoot())};
_.u.updateText_=function(I){for(var C=I.length,y=this.getRoot(),k=y.firstChild;k&&k.nodeName==="STYLE";)k=k.nextSibling;for(var F=0;F<C&&k;){var z=I[F],c=_.V("remove_cr_char")&&z.text?z.text.replace("\r",""):z.text;if(this.isSimpleString_(z)&&!this.useMixedDirectionFormattedStrings)if(k.nodeName==="#text"){k.textContent!=c&&(k.textContent=c);F++;k=k.nextSibling;continue}else break;if(_.l(z,lU))break;else if(!this.noEndpoints&&z.navigationEndpoint){if(k.nodeName!=="A")break;this.setDataOnAnchor_(k,
z.navigationEndpoint)}else if(k.nodeName!=="SPAN")break;this.setNodeStyle_(z,k);this.setUpVisibilityLogging_(z,k);k.textContent!=c&&(k.textContent=c);F++;k=k.nextSibling}if(k)for(z=y.lastChild,k=F?k.previousSibling:null;z&&z!=k;){try{y.removeChild(z)}catch(r){break}z=y.lastChild}F!==C&&this.addTextNodes_(I,F)};
_.u.addTextNodes_=function(I,C){for(var y=document.createDocumentFragment(),k=I.length;C<k;C++){var F=I[C],z=_.V("remove_cr_char")&&F.text?F.text.replace("\r",""):F.text;if(this.isSimpleString_(F)&&!this.useMixedDirectionFormattedStrings)y.appendChild(document.createTextNode(z));else{var c=_.l(F,lU);if(c){if(c.image){var r=document.createElement("img");c.isCustomEmoji||r.classList.add("small-emoji");r.classList.add("emoji");c.isCustomEmoji&&(r.dataset.emojiId=c.emojiId);r.src=_.E5(c.image.thumbnails,
this.emojiSize);(F=this.get("image.accessibility.accessibilityData.label",c))?r.alt=F:c.shortcuts&&c.shortcuts.length>0?r.alt=c.shortcuts[0]:c.emojiId&&(r.alt=c.emojiId);y.appendChild(r);this.hasEmoji=!0}}else!this.noEndpoints&&F.navigationEndpoint?(r=document.createElement("a"),r.classList.add("yt-simple-endpoint"),r.setAttribute("spellcheck","false"),this.setDataOnAnchor_(r,F.navigationEndpoint)):r=document.createElement("span"),this.setNodeStyle_(F,r),this.setUpVisibilityLogging_(F,r),r.appendChild(document.createTextNode(z)),
y.appendChild(r)}}this.getRoot().appendChild(y)};
_.u.isSimpleString_=function(I){return(this.noEndpoints||!I.navigationEndpoint)&&!_.l(I,lU)&&(this.noStyles||!(I.bold||I.deemphasize||I.italics||I.strikethrough||I.errorUnderline||I.bracket||I.textColor))&&!I.loggingDirectives};
_.u.getRawText=function(){return _.hS(this.text)};
_.u.getFirstRunText=function(){var I;if(((I=this.text)==null?0:I.runs)&&this.text.runs[0])return this.text.runs[0].text};
_.u.setFirstRunText=function(I){var C;((C=this.text)==null?0:C.runs)&&this.text.runs[0]&&(this.text.runs[0].text=I,this.textChanged_(this.text))};
_.u.setDataOnAnchor_=function(I,C){var y=this;!_.V("yf_formatted_string_service_endpoint_killswitch")&&this.isServiceEndpoint_(C)||this.isSignalServiceEndpoint_(C)?(I.onclick=this.serviceEndpointHandler_(C),pa(I,"#")):DxY({text:this.text,command:C},function(){GpI(I,C,y.target)})};
_.u.isServiceEndpoint_=function(I){var C;return!((C=_.l(I==null?void 0:I.commandMetadata,_.It))==null||!C.sendPost)};
_.u.isSignalServiceEndpoint_=function(I){return!!_.l(I,_.w9)};
_.u.serviceEndpointHandler_=function(I){var C=this;return function(y){_.Tg(C.hostElement,[I]);y.preventDefault()}};
_.u.overrideAriaLabelChanged_=function(){var I=this.getRoot();this.enableContentEditable&&I&&I.setAttribute("aria-label",this.overrideAriaLabel)};
_.u.enableContentEditableChanged_=function(){var I=this,C=this.buildScopeDomOptions();if(this.enableContentEditable){if(this.hostElement.removeAttribute("dir"),C=_.f(this.hostElement,C),!C.lastChild||C.lastChild instanceof HTMLElement&&C.lastChild.id!=="contenteditable-root"){var y=document.createElement("div");y.id="contenteditable-root";y.setAttribute("contenteditable","true");y.setAttribute("dir","auto");y.onfocus=function(){I.hostElement.dispatchEvent(new FocusEvent("focus",{bubbles:!1}))};
C.appendChild(y);this.overrideAriaLabel&&y.setAttribute("aria-label",this.overrideAriaLabel)}}else y=_.Oq(this.hostElement).firstChild,y instanceof HTMLElement&&y.id==="contenteditable-root"&&_.f(this.hostElement,C).removeChild(y)};
_.u.buildScopeDomOptions=function(){if(this.ignoreShadyDom)return{ignoreOwnerDocument:!0}};
_.u.getNodesForVisibilityLogging_=function(){return _.yv(this.getRoot().childNodes,function(I){var C;return!((C=I.data)==null||!C.trackingParams)})};
_.u.getNodes=function(){return this.getNodesForVisibilityLogging_()};
_.u.onShow=function(){if(!this.useIOObserverForVisibilityLogging_){var I=this.ytRendererBehavior.getVisibilityLogger();I&&this.getNodesForVisibilityLogging_().forEach(function(C){I.reportShown(C)})}};
_.u.onHide=function(){if(!this.useIOObserverForVisibilityLogging_){var I=this.ytRendererBehavior.getVisibilityLogger();I&&this.getNodesForVisibilityLogging_().forEach(function(C){I.reportHidden(C)})}};
_.H1.Object.defineProperties(CX.prototype,{useMixedDirectionFormattedStrings:{configurable:!0,enumerable:!0,get:function(){return this.plaintextOnly?!1:_.V("enable_mixed_direction_formatted_strings")}}});
CX.prototype.enableContentEditableChanged_=CX.prototype.enableContentEditableChanged_;CX.prototype.overrideAriaLabelChanged_=CX.prototype.overrideAriaLabelChanged_;CX.prototype.ellipsisTruncateChanged_=CX.prototype.ellipsisTruncateChanged_;CX.prototype.textChanged=CX.prototype.textChanged;_.E([_.g(rKS.YtPlaintextBehavior),_.h("design:type",Object)],CX.prototype,"ytPlaintextBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],CX.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],CX.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CX.prototype,"text",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"noEndpoints",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"noStyles",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],CX.prototype,"isDarkTheme",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],CX.prototype,"splitLines",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],CX.prototype,"forceDefaultStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],CX.prototype,"ellipsisTruncate",void 0);_.E([_.d(),_.h("design:type",Object)],CX.prototype,"ignoreShadyDom",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeEllipsisTruncateStyling(ellipsisTruncate, useYtAttributedString)"}),_.h("design:type",Boolean)],CX.prototype,"ellipsisTruncateStyling",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeAriaLabel_(text.accessibility.accessibilityData.label)"}),_.h("design:type",String)],CX.prototype,"ariaLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],CX.prototype,"isEmpty",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasLinkOnly_(text.runs)"}),_.h("design:type",Boolean)],CX.prototype,"hasLinkOnly_",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"hasEmoji",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"disableAttributedString",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"isOverlay",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"linkInheritColor",void 0);
_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"noPreWrap",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"userInput",void 0);_.E([_.d({value:16}),_.h("design:type",Number)],CX.prototype,"emojiSize",void 0);_.E([_.d(),_.h("design:type",String)],CX.prototype,"target",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"enableContentEditable",void 0);_.E([_.d(),_.h("design:type",String)],CX.prototype,"overrideAriaLabel",void 0);
_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"respectHtmlDir",void 0);_.E([_.d(),_.h("design:type",Boolean)],CX.prototype,"respectLangDir",void 0);_.E([_.v("plaintextOnly"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],CX.prototype,"useMixedDirectionFormattedStrings",null);_.E([_.d({computed:"computeUseAttributedString(text)"}),_.h("design:type",Boolean)],CX.prototype,"useYtAttributedString",void 0);
_.E([_.FI("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"textChanged",null);_.E([_.FI("ellipsisTruncate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"ellipsisTruncateChanged_",null);_.E([_.FI("overrideAriaLabel"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"overrideAriaLabelChanged_",null);
_.E([_.FI("enableContentEditable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CX.prototype,"enableContentEditableChanged_",null);CX=_.E([_.lT({is:"yt-formatted-string",disableElementRegistration:!0})],CX);
_.Z(CX,"yt-formatted-string",function(){if(wLe===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;iJw===void 0&&(iJw=document.createElement("template"));var k=iJw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);wLe=I}I=wLe;return I});var nR5;var PCu;var Lbw;var Dnb;var sP=function(){var I=_.q.apply(this,arguments)||this;I.focused=!1;I.disabled=!1;I.isOverlay=!1;return I};
_.R(sP,_.q);sP.prototype.triggerDown=function(){if(!this.disabled){_.a_(this.hostElement,"down",!0);var I;(I=this.currentAnimation)==null||I.cancel()}};
sP.prototype.triggerUp=function(){if(!this.disabled){_.a_(this.hostElement,"down",!1);var I=this.fillElement;var C=this.strokeElement;typeof GroupEffect==="function"?(I=new GroupEffect([uaI(I),z5z(C)]),I=new Animation(I,document.timeline)):I=new I$w(I,C);this.currentAnimation=I;var y;(y=this.currentAnimation)==null||y.play()}};
_.E([_.z$(".stroke"),_.h("design:type",HTMLElement)],sP.prototype,"strokeElement",void 0);_.E([_.z$(".fill"),_.h("design:type",HTMLElement)],sP.prototype,"fillElement",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sP.prototype,"focused",void 0);_.E([_.d(),_.h("design:type",Object)],sP.prototype,"disabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sP.prototype,"isOverlay",void 0);sP=_.E([_.lT({is:"yt-interaction",disableElementRegistration:!0})],sP);
_.Z(sP,"yt-interaction",function(){if(Dnb===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Lbw===void 0&&(Lbw=document.createElement("template"));var k=Lbw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Dnb=I}I=Dnb;return I},{mode:2});var oW=function(){return _.q.apply(this,arguments)||this};
_.R(oW,_.q);_.u=oW.prototype;_.u.ready=function(){var I=this,C=_.f(this.hostElement).querySelector("#button");C.addEventListener("focus",function(){M4P||(M4P=new ahu);I.keyboardFocused=M4P.isKeyBoardInUse()});
C.addEventListener("blur",function(){I.keyboardFocused=!1;I.rippleUp_()})};
_.u.computeTabIndex_=function(I){return I?-1:0};
_.u.computeButtonAriaPressed_=function(I){if(this.toggleable)return I?"true":"false"};
_.u.rippleDown_=function(){_.f(this.hostElement).querySelector("#interaction").triggerDown()};
_.u.rippleUp_=function(){_.f(this.hostElement).querySelector("#interaction").triggerUp()};
_.u.onPressedChanged_=function(){var I=_.Oq(_.f(this.hostElement).querySelector("#button")).querySelector("yt-icon")||_.Oq(_.f(this.hostElement).querySelector("#button")).children[0];I&&(I.active=this.pressed)};
oW.prototype.onPressedChanged_=oW.prototype.onPressedChanged_;oW.prototype.rippleUp_=oW.prototype.rippleUp_;oW.prototype.rippleDown_=oW.prototype.rippleDown_;_.E([_.d(),_.h("design:type",String)],oW.prototype,"label",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],oW.prototype,"disabled",void 0);_.E([_.d(),_.h("design:type",Boolean)],oW.prototype,"pressed",void 0);_.E([_.d(),_.h("design:type",Object)],oW.prototype,"toggleable",void 0);
_.E([_.d(),_.h("design:type",Boolean)],oW.prototype,"untabbable",void 0);_.E([_.d(),_.h("design:type",Boolean)],oW.prototype,"keyboardFocused",void 0);_.E([_.km("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oW.prototype,"rippleDown_",null);_.E([_.km("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oW.prototype,"rippleUp_",null);
_.E([_.FI("pressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oW.prototype,"onPressedChanged_",null);oW=_.E([_.lT({is:"yt-icon-button",disableElementRegistration:!0})],oW);
_.Z(oW,"yt-icon-button",function(){if(PCu===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;nR5===void 0&&(nR5=document.createElement("template"));var k=nR5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);PCu=I}I=PCu;return I},{mode:2});var pLd=_.hu(["aria-"]),yn={};yn.YtRenderButtonBehavior=[_.M.YtRendererBehavior,_.IW.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!!_.N().resolve(_.aU(_.Du))&&_.V("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 I=this.computeHref_(this.endpoint,!0);I?pa(this.elements_.endpoint,I):this.elements_.endpoint.removeAttribute("href")}if(this.buttonClass){I=this.buttonClass.split(" ");I=_.T(I);for(var C=I.next();!C.done;C=I.next())C=C.value,_.a_(this.hostElement,C,!0),this.elements_.button&&_.a_(this.elements_.button,C,!0),this.elements_.text&&_.a_(this.elements_.text,C,!0)}this.elements_.icon&&(this.elements_.icon.icon=
this.buttonIcon,this.setIconActive_(this.elements_.icon),this.iconSize&&(this.elements_.icon.size=this.iconSize));this.elements_.text&&(this.elements_.text.text=this.buttonText);this.elements_.button&&(I=null,this.buttonAccessibility&&(I=this.buttonAccessibility.label),this.elements_.button.is=="yt-icon-button"?this.elements_.button.label=I:I?_.Ka([_.Uj(pLd)],this.elements_.button,"aria-label",I):this.elements_.button.removeAttribute("aria-label"))},
dataChanged_:function(){this.updateRenderedElements()},
onFocus_:function(){this.addTooltips_();if(this.useKeyboardFocused){var I=_.N().resolve(_.aU(_.Du));I&&(this.keyboardFocused=I.isKeyBoardInUse())}},
onBlur_:function(){this.keyboardFocused=!1},
addTooltips_:function(){this.elements_.endpoint&&this.showTooltips&&this.buttonTooltip&&(this.elements_.tooltip||(this.elements_.tooltip=this.reuseEnabled_()?_.q8("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,_.lG(this.elements_.endpoint).appendChild(this.elements_.tooltip)),_.lG(this.elements_.tooltip).textContent=this.buttonTooltip)},
buttonClassChanged_:function(I,C){if(C)for(I=C.split(" "),I=_.T(I),C=I.next();!C.done;C=I.next())C=C.value,_.a_(this.hostElement,C,!1),this.elements_.button&&_.a_(this.elements_.button,C,!1),this.elements_.text&&_.a_(this.elements_.text,C,!1)},
buttonIconChanged_:function(I){this.elements_.icon?I?(this.elements_.icon.icon=I,this.setIconActive_(this.elements_.icon)):(this.elements_.button&&_.lG(this.elements_.button).removeChild(this.elements_.icon),this.elements_.icon=null,_.Mc(this.hostElement,"is-paper-button-with-icon",!1)):I&&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"&&_.lG(this.elements_.button).appendChild(this.elements_.icon):_.lG(this.elements_.button).insertBefore(this.elements_.icon,this.elements_.text),_.Mc(this.hostElement,"is-paper-button-with-icon",!0))},
stampTypeChanged_:function(I){if(this.isAttached===void 0)this.hasChange_=!0;else if(this.hasChange_=!1,this.emptyContainer_(),this.elements_={},this.componentReady_=!1,I){var C=!1;this.elements_.endpoint=document.createElement("a");this.elements_.endpoint.classList.add("yt-simple-endpoint");this.elements_.endpoint.tabIndex=-1;switch(I){case "yt_icon_button_with_label":C=!0;_.a_(this.hostElement,"force-icon-button",!0);this.elements_.button=this.getYtIconButton_();I=_.lG(this.elements_.button).firstElementChild;
this.elements_.icon=I;this.setIconActive_(this.elements_.icon);this.elements_.text=this.getFormattedString_();this.elements_.text.id="text";this.elements_.text.ellipsisTruncate=this.ellipsisTruncate;_.lG(this.elements_.endpoint).appendChild(this.elements_.button);_.lG(this.elements_.endpoint).appendChild(this.elements_.text);break;case "paper_button":this.elements_.button=this.reuseEnabled_()?_.q8("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;_.lG(this.elements_.button).appendChild(this.elements_.text);_.lG(this.elements_.endpoint).appendChild(this.elements_.button);this.buttonIcon&&this.addIconElementToPaperButton_();break;case "yt-icon-button":C=!0,this.elements_.button=this.getYtIconButton_(),I=_.lG(this.elements_.button).firstElementChild,this.elements_.icon=I,this.setIconActive_(this.elements_.icon),
_.lG(this.elements_.endpoint).appendChild(this.elements_.button)}_.Mc(this.hostElement,"is-icon-button",C);_.Mc(this.hostElement,"is-paper-button",!C);_.Mc(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 y;_.f((y=this.container.hostElement)!=null?y:this.container).appendChild(this.elements_.endpoint);this.componentReady_=!0}},
iconPositionTypeChanged_:function(){this.iconPositionType&&(this.elements_.button&&this.elements_.icon&&_.lG(this.elements_.button).removeChild(this.elements_.icon),this.addIconElementToPaperButton_(),this.elements_.icon.icon=this.buttonIcon)},
isDisabledChanged_:function(I){if(I!=void 0||this.disabled)this.disabled=I,this.elements_.button&&(this.elements_.button.disabled=I)},
isSelectedChanged_:function(){this.setIconActive_(this.elements_.icon)},
setIconActive_:function(I){_.V("kevlar_system_icons")&&I&&this.data&&(this.data.isSelected!==void 0?I.active=this.data.isSelected:this.data.isToggled!==void 0&&(I.active=this.data.isToggled))},
observeBasicPalette_:function(I){_.N3(this.hostElement,I)},
disabledChanged_:function(I){this.data&&this.set("data.isDisabled",I)},
onYtButtonTap_:function(I){if(this.disabled)I.stopImmediatePropagation(),this.sendServiceEndpointWhenDisabled&&this.serviceEndpoint&&_.Tg(this.hostElement,[this.serviceEndpoint]),this.sendCommandWhenDisabled&&this.data&&this.data.command&&this.resolveCommand(this.data.command,{},!0);else if(I=this.disableCommandHandlerOverride,!this.data||!this.data.command||I||!this.resolveCommand(this.data.command,{},!0)){if(this.serviceEndpoint)_.V("handle_service_request_actions")||_.Tg(this.hostElement,[this.serviceEndpoint]),
_.k3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:this.serviceEndpoint});else this.onYtButtonTapHandler();_.V("handle_service_request_actions")?(I=[],this.serviceEndpoint&&I.push(this.serviceEndpoint),this.data&&this.data.command&&this.data.command!=this.serviceEndpoint&&I.push(this.data.command),I.length&&_.cQ(this.hostElement,I,this.hostElement)):this.data&&this.data.command&&(I=this.data.command,I.accountUnlinkCommand||I.accountLinkCommand||I.insertAdCommand||I.insertHighlightMarkerCommand||
I.createLivestreamHighlightClipCommand||I.getVideoUploadFeedbackCommand||I.musicDeletePrivatelyOwnedEntityCommand||I.ypcCancelRecurrenceEndpoint||I.getMultiSelectCommandEndpoint?_.Tg(this.hostElement,[I]):_.cQ(this.hostElement,[I],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 I,C=_.f((I=this.container.hostElement)!=null?I:this.container);C.lastChild&&C.lastChild.tagName!="STYLE";)try{C.removeChild(C.lastChild)}catch(y){break}},
getYtIconButton_:function(){var I=this.reuseEnabled_()?_.q8("yt-icon-button"):document.createElement("yt-icon-button"),C=_.lG(I).firstElementChild;if(C&&C.is!="yt-icon"){for(C=_.lG(I);C.lastChild;)C.removeChild(C.lastChild);C=null}C||(C=this.getIcon_(),this.setIconActive_(C),_.lG(I).appendChild(C));return I},
reuseEnabled_:function(){return _.V("enable_button_behavior_reuse")},
getIcon_:function(){return this.reuseEnabled_()?_.q8("yt-icon"):document.createElement("yt-icon")},
getFormattedString_:function(){return this.reuseEnabled_()?_.q8("yt-formatted-string"):document.createElement("yt-formatted-string")}}];_.Qbw={};
_.Qbw.YtButtonBehavior=[yn.YtRenderButtonBehavior,{properties:{data:Object},observers:["stateChanged_(data)","stateChanged_(data.text)","stateChanged_(data.isDisabled)","stateChanged_(data.style)","stateChanged_(forceIconOnly)"],stateChanged_:function(){var I=this.data;I&&(this._setEndpoint(this.computeEndpoint_(I)),this._setServiceEndpoint(this.computeServiceEndpoint_(I)),this._setCommand(this.computeCommand_(I)),this._setButtonIcon(this.computeButtonIcon_(I)),this._setButtonText(this.computeButtonText_(I,this.forceIconOnly)),
this._setButtonAccessibility(this.computeAccessibility_(I)),this._setButtonTooltip(this.computeTooltip_(I)),this._setButtonClass(this.computeButtonClass_(I)),this._setIconPositionType(this.computeIconPositionType_(I)),this.updateRenderedElements())},
setPressedState:function(I){var C;if((C=this.elements_)==null?0:C.button)this.elements_.button.pressed=!!I},
computeIconPositionType_:function(I){return I&&I.iconPosition||null},
computeEndpoint_:function(I){var C=I&&I.navigationEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.url"),k=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:I&&I.command&&I.command.modalEndpoint?I.command:y&&!k&&I.command?I.command:null},
computeServiceEndpoint_:function(I){var C=I&&I.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:y&&I.command?I.command:null},
computeCommand_:function(I){return I&&I.command||null},
computeButtonIcon_:function(I){return I&&I.icon&&I.icon.iconType?_.y5(I.icon.iconType):null},
computeButtonText_:function(I,C){return!C&&I&&I.text||null},
computeAccessibility_:function(I){return this.get("accessibilityData.accessibilityData",I)||I&&I.accessibility||(I&&I.text?{label:this.getSimpleString(I.text)}:null)},
computeTooltip_:function(I){return I?I.isDisabled&&I.disabledTooltip||I.tooltip||null:null},
computeButtonClass_:function(I){var C=I&&I.style?I.style.toLowerCase().replace(/_/g,"-")+" ":"";C+=I&&I.size?I.size.toLowerCase().replace(/_/g,"-")+" ":"";I.colorData&&I.colorData.basicColorPaletteData&&I.colorData.basicColorPaletteData.borderColor&&(C+="palette-with-border");return C.trim()}}];var Vc={};var NBq;var Vm5;var jbu,l$e=function(){return jbu!==void 0?jbu:jbu=document.createElement("template")};
document.head.appendChild(l$e().content);var XLP;var $n0,R7e=function(){return $n0!==void 0?$n0:$n0=document.createElement("template")};
document.head.appendChild(R7e().content);var bJd;var Y$w,GVq=function(){return Y$w!==void 0?Y$w:Y$w=document.createElement("template")};
document.head.appendChild(GVq().content);var f$S;var S$q=document.head,Kbw=S$q.appendChild,AKS;if(f$S===void 0){var gR0=document.createElement("template");_.Y(gR0,"\x3c!--css-build:shady--\x3e");gR0.content.insertBefore(GVq().content.cloneNode(!0),gR0.content.firstChild);f$S=gR0}AKS=f$S;Kbw.call(S$q,AKS.content);var vRw=document.head,Wbb=vRw.appendChild,dnP;if(bJd===void 0){var xnd=document.createElement("template");_.Y(xnd,"\x3c!--css-build:shady--\x3e");xnd.content.insertBefore(R7e().content.cloneNode(!0),xnd.content.firstChild);bJd=xnd}dnP=bJd;Wbb.call(vRw,dnP.content);var q$u=document.head,mnq=q$u.appendChild,ZJq;if(XLP===void 0){var BB5=document.createElement("template");_.Y(BB5,"\x3c!--css-build:shady--\x3e");BB5.content.insertBefore(l$e().content.cloneNode(!0),BB5.content.firstChild);XLP=BB5}ZJq=XLP;mnq.call(q$u,ZJq.content);var ERP;_.jz("sharingToggleButtonAndDefaultButton","buttonRenderer","yt-button-renderer");ERP=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.kp=function(){return _.q.apply(this,arguments)||this};
_.R(_.kp,_.q);_.kp.prototype.created=function(){this.openPopupConfig=_.Aq("openPopupConfig");this.ytButtonBehavior.showTooltips=!0};
_.kp.prototype.onYtNavigate_=function(I){var C=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);C&&(this.ytOpenPopupBehavior.openPopup(C),I.stopPropagation(),I.preventDefault())};
_.H1.Object.defineProperties(_.kp,{template:{configurable:!0,enumerable:!0,get:function(){if(Vm5===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;NBq===void 0&&(NBq=document.createElement("template"));var k=NBq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Vm5=I}I=Vm5;return I}}});
_.kp.prototype.onYtNavigate_=_.kp.prototype.onYtNavigate_;_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],_.kp.prototype,"ytOpenPopupBehavior",void 0);_.E([_.g(_.Qbw.YtButtonBehavior),_.h("design:type",Object)],_.kp.prototype,"ytButtonBehavior",void 0);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.kp.prototype,"onYtNavigate_",null);
_.kp=_.E([_.lT({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:ERP})],_.kp);var h7u;var Unq=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live"),FN=function(){var I=_.q.apply(this,arguments)||this;I.isPressed=!1;I.forceIconButton=!1;I.forceIconOnly=!1;I.forceModernIconButton=!1;I.skipCommandHandling=!1;I.alignByText=!1;I.fitToVisibleBounds=!0;I.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};I.onTap=function(C){_.k3(I.hostElement,"yt-service-request-sent-button-renderer",C)};
return I};
_.R(FN,_.q);_.u=FN.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","");this.hostElement.setAttribute("button-next","")};
_.u.onClick=function(I){var C,y=this.disabled||((C=this.data)==null?void 0:C.isDisabled);C=this.hostElement.hasAttribute("dialog-dismiss")||this.hostElement.hasAttribute("dialog-confirm");y&&C&&I.stopPropagation()};
_.u.computeIcon=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType;if(y)return _.y5(y)};
_.u.computeTooltip=function(){return this.data?this.data.isDisabled&&this.data.disabledTooltip||this.data.tooltip||null:null};
_.u.handleUpdateButtonAction=function(I){I=_.l(I,hh0);var C=_.l(I==null?void 0:I.updatedButton,_.fZ);if(this.data&&I&&C){var y=this.data;y.targetId&&I.targetId&&y.targetId===I.targetId&&(this.data=C)}};
_.H1.Object.defineProperties(FN.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){var I=this;if(this.data){var C=zZW({renderer:this.data,element:this.hostElement,commandController:{onSuccess:function(){return _.k3(I.hostElement,"yt-service-request-completed-button-renderer")},
onServerError:function(){return _.k3(I.hostElement,"yt-service-request-completed-button-renderer")}},
onTapCallback:this.onTap,skipCommandHandling:this.skipCommandHandling,overrides:this.overrides,forceIcon:this.forceIconButton||this.forceIconOnly,forceDisabled:this.disabled,forceModernIconButton:this.forceModernIconButton,nextVersion:!0,isPressed:this.isPressed});C.alignByText=this.alignByText;return C}}}});
_.H1.Object.defineProperties(FN,{template:{configurable:!0,enumerable:!0,get:function(){if(h7u===void 0){var I=document.createElement("template");_.Y(I,'\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>');h7u=I}I=h7u;return I}}});
FN.prototype.onClick=FN.prototype.onClick;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],FN.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],FN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],FN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"isPressed",void 0);
_.E([_.d(),_.h("design:type",Object)],FN.prototype,"forceIconButton",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"forceIconOnly",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"forceModernIconButton",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"skipCommandHandling",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"alignByText",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"buttonTooltipPosition",void 0);
_.E([_.d(),_.h("design:type",Object)],FN.prototype,"fitToVisibleBounds",void 0);_.E([_.d({computed:"computeTooltip(data)"}),_.h("design:type",Object)],FN.prototype,"tooltip",void 0);_.E([_.d(),_.h("design:type",Object)],FN.prototype,"overrides",void 0);_.E([_.d(),_.h("design:type",Boolean)],FN.prototype,"disabled",void 0);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],FN.prototype,"onClick",null);
_.E([_.v("data.*","forceIconButton","forceIconOnly","alignByText","disabled","forceModernIconButton","overrides"),_.h("design:type",Object),_.h("design:paramtypes",[])],FN.prototype,"computedButtonShape",null);FN=_.E([_.lT({is:"ytd-button-renderer",noInjection:!0,disableElementRegistration:!Unq,cssBuildOptOut:!0}),_.lT({is:"yt-button-renderer",noInjection:!0,disableElementRegistration:!Unq,cssBuildOptOut:!0})],FN);var HJm;var tmb;var ue=function(){var I=_.q.apply(this,arguments)||this;I.empty_=!0;I.loadTime=Infinity;I.pendingPaint=!1;I.hasChange_=!1;I.oldThumbnail_=null;I.oldDelayedSrc_="";I.objectURL_=null;return I};
_.R(ue,_.q);_.u=ue.prototype;_.u.attached=function(){this.hasChange_&&this.thumbnailChanged_()};
_.u.ready=function(){var I=this.shouldShowPlaceholder_();_.a_(this.hostElement,"no-transition",!0);I&&this.hostElement.classList.add("with-placeholder")};
_.u.isPreloaded=function(){return this.isThumbPreloaded_(this.thumbnail)};
_.u.isThumbPreloaded_=function(I){return!!this.get("webThumbnailDetailsExtensionData.isPreloaded",I)};
_.u.computeSrc_=function(){return this.delayedSrc||this.computeThumbnailSrc_(this.thumbnail)||JKd};
_.u.computeThumbnailSrc_=function(I){return I&&I.thumbnails?_.E5(I.thumbnails,this.dimension==="width"?this.width:this.height,this.preferredThumbnail,this.dimension):null};
_.u.computeAlt_=function(){var I=this.thumbnail&&this.thumbnail.accessibility&&this.thumbnail.accessibility.accessibilityData&&this.thumbnail.accessibility.accessibilityData.label;return this.loaded&&I||""};
_.u.thumbnailChanged_=function(){var I=_.T([this.thumbnail,this.oldThumbnail_]),C=I.next().value;I=I.next().value;this.oldThumbnail_=C;if(this.isAttached===void 0)this.hasChange_=!0;else{this.hasChange_=!1;if(this.loaded&&(I=this.computeThumbnailSrc_(I),this.computeThumbnailSrc_(C)===I))return;_.V("kevlar_use_vimio_behavior")&&this.ytRendererBehavior.markDirty();this.isThumbPreloaded_(C)?(this.loadTime=Infinity,this.setSrc_(this.thumbnail.thumbnails[0].url),this.empty_=!1):C&&_.g5("DISABLE_YT_IMG_DELAY_LOADING",
!1)?this.loaded&&!this.empty_?_.hn(this,this.onReload_):_.hn(this,this.onShow_):this.resetImage_();C&&(this.hostElement.style.opacity=""+C.opacity)}};
_.u.delayedSrcChanged_=function(){var I=this.oldDelayedSrc_;this.oldDelayedSrc_=this.delayedSrc;this.loaded&&this.delayedSrc===I||this.resetImage_()};
_.u.setSrc_=function(I){I?(_.f(this.hostElement).querySelector("#img").src||this.hostElement.classList.remove("empty"),_.f(this.hostElement).querySelector("#img").src=I):(_.f(this.hostElement).querySelector("#img").removeAttribute("src"),this.hostElement.classList.add("empty"))};
_.u.resetImage_=function(){rym(this.hostElement);this.empty_=!0;this.setSrc_(JKd);this.ytRendererBehavior.invalidate(!1)};
_.u.observePlaceholderColor_=function(){var I=this.thumbnail&&this.thumbnail.placeholderColor;I?this.hostElement.style.backgroundColor=_.lg(I):this.shouldShowPlaceholder_()||(this.hostElement.style.backgroundColor="transparent")};
_.u.onLoad_=function(){_.f(this.hostElement).querySelector("#img").src&&_.f(this.hostElement).querySelector("#img").src!==JKd&&(eOH(this.hostElement),this.notifyOnLoaded&&_.k3(this.hostElement,"yt-img-shadow-loaded"),this.objectURL_&&(URL.revokeObjectURL(this.objectURL_),this.objectURL_=null))};
_.u.onError_=function(){var I=this;if(_.V("web_use_cache_for_image_fallback"))pTO(_.f(this.hostElement).querySelector("#img").src).then(function(C){I.objectURL_=_.ii(C).toString();I.setSrc_(I.objectURL_)}).catch(function(){_.V("kevlar_woffle_fallback_image")&&I.setSrc_("data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII=")});
else this.onLoad_()};
_.u.onPrescanVisible=function(){this.onShow_()};
_.u.onVisible=function(){if(_.V("yt_img_shadow_trigger_show_on_visible"))this.onShow_()};
_.u.onShow_=function(){if(!this.loaded||this.empty_){this.empty_=!1;var I=this.computeSrc_();I!==_.f(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(I))}};
_.u.onReload_=function(){this.empty_=!1;var I=this.computeSrc_();I!==_.f(this.hostElement).querySelector("#img").src&&(this.loaded=!1,this.setSrc_(I))};
_.u.shouldShowPlaceholder_=function(){return _.V("kevlar_thumbnail_bg")};
ue.prototype.observePlaceholderColor_=ue.prototype.observePlaceholderColor_;ue.prototype.delayedSrcChanged_=ue.prototype.delayedSrcChanged_;ue.prototype.thumbnailChanged_=ue.prototype.thumbnailChanged_;_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"alt",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ue.prototype,"ariaHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"ariaLabel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"id",void 0);_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],ue.prototype,"ytVisibilityBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ue.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",String)],ue.prototype,"delayedSrc",void 0);
_.E([_.d(),_.h("design:type",Object)],ue.prototype,"thumbnail",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"loaded",void 0);_.E([_.d(),_.h("design:type",Boolean)],ue.prototype,"notifyOnLoaded",void 0);_.E([_.d(),_.h("design:type",Number)],ue.prototype,"height",void 0);_.E([_.d(),_.h("design:type",Number)],ue.prototype,"width",void 0);_.E([_.d({value:function(){return"width"}}),
_.h("design:type",String)],ue.prototype,"dimension",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"fit",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"fitHeight",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"fitWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"objectFit",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"objectPosition",void 0);_.E([_.d(),_.h("design:type",String)],ue.prototype,"preferredThumbnail",void 0);_.E([_.d({value:"",computed:"computeAlt_(thumbnail.accessibility.accessibilityData.label, loaded)"}),_.h("design:type",String)],ue.prototype,"alt_",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ue.prototype,"sharedTooltipText",void 0);
_.E([_.d(),_.h("design:type",Boolean)],ue.prototype,"ftlEligible",void 0);_.E([_.d({value:void 0}),_.h("design:type",String)],ue.prototype,"observeHiddenOption",void 0);_.E([_.d({value:"observe_once"}),_.h("design:type",String)],ue.prototype,"observePrescanOption",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ue.prototype,"roundedContainer",void 0);
_.E([_.rW("thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"thumbnailChanged_",null);_.E([_.rW("delayedSrc"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"delayedSrcChanged_",null);_.E([_.FI("thumbnail.placeholderColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ue.prototype,"observePlaceholderColor_",null);
ue=_.E([_.lT({is:"yt-img-shadow",disableElementRegistration:!0})],ue);var JKd=_.g5("NO_EMPTY_DATA_IMG")?"":"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7";
_.MH()(ue,"yt-img-shadow",function(){if(tmb===void 0){var I=document.createElement("template");_.Y(I,'\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">');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;HJm===void 0&&(HJm=document.createElement("template"));var k=HJm;y.call(C,k.content.cloneNode(!0),I.content.firstChild);tmb=I}I=tmb;return I},{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 DOz;_.zd=new _.Jj("SCREEN_MANAGER_TOKEN");DOz=new _.Jj("LOG_INITIAL_SCREEN_TOKEN");_.RY=_.BO(function(I){function C(cs){return _.l(cs,_.Xi)}
function y(){var cs=k().isTogglingDisabled||Q()?S():!S();A(cs);B(!1);if(!k().isTogglingDisabled){var XO;(XO=c)==null||XO(!!cs)}var Rm;((Rm=z)==null?0:Rm())||_.FV(_.N().resolve(_.zd),k().trackingParams);var $z;if(!cs||!C(k().defaultButtonViewModel)||($z=z)!=null&&$z()){var hX;!C(k().toggledButtonViewModel)||((hX=z)==null?0:hX())||_.FV(_.N().resolve(_.zd),C(k().toggledButtonViewModel).trackingParams)}else _.FV(_.N().resolve(_.zd),C(k().defaultButtonViewModel).trackingParams)}
var k=I.data,F=I.buttonShapeOverrides,z=I.disableExplicitClickLogging,c=I.onToggle,r=I.style,w=I.useOutlinedIcon,L=I.className,D=function(){var cs,XO;return S()?(cs=I.animatedTextPropsToggled)==null?void 0:cs.call(I):(XO=I.animatedTextPropsDefault)==null?void 0:XO.call(I)},p=_.P4(function(){return D()?Object.assign({},D(),{shouldAnimate:x()}):void 0},void 0,"ZKEa0b"),Q=function(){var cs;
return((cs=yW())==null?void 0:cs.isToggled)!==void 0},X=_.T(_.TN(function(){var cs,XO,Rm;
return Q()?(cs=yW())==null?void 0:cs.isToggled:(Rm=F==null?void 0:(XO=F())==null?void 0:XO.toggled)!=null?Rm:k().isToggled})),b=X.next().value;
X=X.next().value;var S=b,A=X;X=_.T(_.TN(function(){var cs,XO;return(cs=I.animatedTextPropsToggled)==null?void 0:(XO=cs.call(I))==null?void 0:XO.shouldAnimate}));
b=X.next().value;X=X.next().value;var x=b,B=X;b=_.T(_.c4(!1,void 0,"S11hid"));var t=b.next().value,U=b.next().value,yW=_.XU(function(cs){var XO;a:{var Rm=k().entityKey,$z=k().toggledStateEntitySelectorType;if($z&&Rm)switch($z){case "TOGGLE_BUTTON_ENTITY_SELECTOR_TYPE_SFV_AUDIO_ITEM":var hX;cs=(hX=_.cg(cs.entities,"sfvAudioItemCurrentlyPlayingEntity",Rm))!=null?hX:void 0;hX=(XO=cs==null?void 0:cs.sfvAudioItemPlaybackState)!=null?XO:void 0;if(hX==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"){XO={isToggled:!0};
break a}if(hX){XO={isToggled:!1};break a}break;default:_.SN(new _.ph("Error: entitySelectorType defined but not matched in selector.",cs,$z))}XO=void 0}return XO});
b=_.uk(function(){var cs=_.N().resolve(_.aU(_.Du));cs&&U(cs.isKeyBoardInUse());return!1});
X=_.uk(function(){U(!1);return!1});
var a=function(){return Object.assign({},F==null?void 0:F(),{onToggle:y,toggleable:!0,toggled:S(),focused:t()})};
return _.P("toggle-button-view-model",{"on:focusin":b,"on:focusout":X,class:L},_.P(_.Dx,{cond:function(){return S()?C(k().toggledButtonViewModel):C(k().defaultButtonViewModel)},
then:function(cs){return _.P(_.fM,{data:cs,className:L,style:r,useOutlinedIcon:w,buttonOverrides:a,animatedTextProps:p})}}))},"v");
_.RY.idomCompat={callbacks:{onToggle:!0}};_.B9(_.BO(function(I){return _.P("yt-toggle-button-view-model",{class:function(){var C;return(C=I.scopingClassName)==null?void 0:C.call(I)}},_.P(_.RY,{data:function(){var C;
return(C=I.data)==null?void 0:C.call(I)},
buttonShapeOverrides:function(){var C;return(C=I.overrides)==null?void 0:C.call(I)},
animatedTextPropsDefault:function(){var C;return(C=I.animatedTextPropsDefault)==null?void 0:C.call(I)},
animatedTextPropsToggled:function(){var C;return(C=I.animatedTextPropsToggled)==null?void 0:C.call(I)},
disableExplicitClickLogging:function(){var C;return(C=I.disableExplicitClickLogging)==null?void 0:C.call(I)},
onToggle:function(C){var y;return(y=I.onToggle)==null?void 0:y.call(I,C)},
style:function(){var C;return(C=I.style)==null?void 0:C.call(I)},
useOutlinedIcon:function(){var C;return(C=I.useOutlinedIcon)==null?void 0:C.call(I)},
className:function(){var C;return(C=I.className)==null?void 0:C.call(I)}}))},"w"),"yt-toggle-button-view-model",{props:{data:_.As,
buttonShapeOverrides:_.As,overrides:_.As,animatedTextPropsDefault:_.As,animatedTextPropsToggled:_.As,disableExplicitClickLogging:_.As,onToggle:_.Z_,style:_.As,useOutlinedIcon:_.As,className:_.As,scopingClassName:_.As}});var Td=function(){return _.q.apply(this,arguments)||this};
_.R(Td,_.q);Td.prototype.onTap=function(I){I.stopPropagation();I=this.isLiked?"TOOLBAR_LIKE_STATE_INDIFFERENT":"TOOLBAR_LIKE_STATE_LIKED";this.engagementState?this.ytLiveChatReduxBehavior.dispatch(_.bY("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:I})):this.ytLiveChatReduxBehavior.dispatch(_.wJ("engagementToolbarStateEntityPayload",this.data.engagementStateKey||"",{likeState:I}))};
_.H1.Object.defineProperties(Td.prototype,{isLiked:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.engagementState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_LIKED"}},
toggleButton:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=_.l(this.data.toggleButton,_.$A),C;if(Number(((C=this.likeCountState)==null?void 0:C.likeCountIfIndifferentNumber)||"0")===0){var y;C=((y=this.data.likeCountPlaceholder)==null?void 0:y.content)||""}else{var k,F,z;C=((k=this.likeCountState)==null?void 0:(F=k.likeCountIfIndifferent)==null?void 0:F.content)||((z=this.data.likeCountPlaceholder)==null?void 0:z.content)||""}var c,r;y=((c=this.likeCountState)==null?void 0:(r=
c.likeCountIfLiked)==null?void 0:r.content)||"1";c=_.l(I.toggledButtonViewModel,_.Xi);return Object.assign({},I,{isToggled:this.isLiked,defaultButtonViewModel:{buttonViewModel:Object.assign({},_.l(I.defaultButtonViewModel,_.Xi),{title:C})},toggledButtonViewModel:{buttonViewModel:Object.assign({},c,{title:y})}})}}}});
Td.prototype.onTap=Td.prototype.onTap;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Td.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Td.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],Td.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Td.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.likeCountEntityKey"],selector:TzH}),_.h("design:type",Object)],Td.prototype,"likeCountState",void 0);_.E([_.d({selectorArgs:["data.engagementStateKey"],selector:W1X}),_.h("design:type",Object)],Td.prototype,"engagementState",void 0);_.E([_.v("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Td.prototype,"isLiked",null);
_.E([_.v("data","likeCountState","isLiked"),_.h("design:type",Object),_.h("design:paramtypes",[])],Td.prototype,"toggleButton",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Td.prototype,"onTap",null);Td=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-like-button-view-model",noInjection:!0})],Td);
_.Z(Td,"yt-live-chat-like-button-view-model",function(){if(e70===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;cKb===void 0&&(cKb=document.createElement("template"));var k=cKb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);e70=I}I=e70;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var OJu;var a$q;var cA=function(){return _.q.apply(this,arguments)||this};
_.R(cA,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cA.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cA.prototype,"data",void 0);cA=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-paid-message-footer-renderer",isInjectionRoot:!0})],cA);
_.Z(cA,"yt-live-chat-paid-message-footer-renderer",function(){if(a$q===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;OJu===void 0&&(OJu=document.createElement("template"));var k=OJu;y.call(C,k.content.cloneNode(!0),I.content.firstChild);a$q=I}I=a$q;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Mmw;var Ir0;var Ctd;var sfu,oh0=function(){if(sfu!==void 0)return sfu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Ctd===void 0&&(Ctd=document.createElement("template"));var k=Ctd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return sfu=I};var eD=function(){return _.q.apply(this,arguments)||this};
_.R(eD,_.q);eD.prototype.onTap=function(I){I.stopPropagation()};
_.H1.Object.defineProperties(eD.prototype,{buttonViewModel:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=_.l(this.data.replyButton,_.Xi),C,y,k,F,z,c,r,w=Number(((C=this.replyCountState)==null?void 0:C.replyCountNumber)||"0")===0?(y=this.data)==null?void 0:(k=y.replyCountPlaceholder)==null?void 0:k.content:((F=this.replyCountState)==null?void 0:(z=F.replyCount)==null?void 0:z.content)||((c=this.data)==null?void 0:(r=c.replyCountPlaceholder)==null?void 0:r.content)||"",L;return Object.assign({},
I,{title:w,accessibilityText:(L=this.replyCountState)==null?void 0:L.replyButtonAccessibilityText})}}}});
_.H1.Object.defineProperties(eD,{template:{configurable:!0,enumerable:!0,get:function(){return oh0()}}});
eD.prototype.onTap=eD.prototype.onTap;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],eD.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],eD.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eD.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.replyCountEntityKey"],selector:function(I,C){return _.cg(I.entities,"replyCountEntity",C)}}),
_.h("design:type",Object)],eD.prototype,"replyCountState",void 0);_.E([_.v("data","replyCountState"),_.h("design:type",Object),_.h("design:paramtypes",[])],eD.prototype,"buttonViewModel",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],eD.prototype,"onTap",null);eD=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-reply-button-view-model",noInjection:!0})],eD);
_.Z(eD,"yt-live-chat-reply-button-view-model",function(){return oh0()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var yy8;var k4u;var w3=function(){var I=_.q.apply(this,arguments)||this;I.ariaLabel="";return I};
_.R(w3,_.q);
w3.prototype.dataChanged=function(){for(var I=(0,_.IH)(_.f(this.hostElement).querySelector("#image"));I.firstChild;)I.removeChild(I.firstChild);if(this.data)if(this.data.icon){var C=document.createElement("yt-icon");this.data.icon.iconType==="MODERATOR"&&this.enableNewModeratorBadge?(C.polymerController.icon="yt-sys-icons:shield-filled",C.polymerController.defaultToFilled=!0):C.polymerController.icon="live-chat-badges:"+this.data.icon.iconType.toLowerCase();I.appendChild(C)}else if(this.data.customThumbnail){C=document.createElement("img");
var y=_.yyK(this.data.customThumbnail.thumbnails,16);y?(C.src=y,I.appendChild(C),C.setAttribute("alt",this.hostElement.ariaLabel||"")):_.SN(new _.ph("Could not compute URL for thumbnail",this.data.customThumbnail))}};
w3.prototype.identity=function(I){return I};
w3.prototype.computeType=function(I){return Cv(I||void 0)};
w3.prototype.dataChanged=w3.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],w3.prototype,"data",void 0);_.E([_.d({computed:"identity(data.accessibility.accessibilityData.label)",reflectToAttribute:!0}),_.h("design:type",Object)],w3.prototype,"ariaLabel",void 0);_.E([_.d({computed:"computeType(data)",reflectToAttribute:!0}),_.h("design:type",String)],w3.prototype,"type",void 0);
_.E([_.d({computed:"identity(data.tooltip)",reflectToAttribute:!0}),_.h("design:type",String)],w3.prototype,"sharedTooltipText",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("live_chat_enable_new_moderator_badge")}}),
_.h("design:type",Boolean)],w3.prototype,"enableNewModeratorBadge",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w3.prototype,"dataChanged",null);w3=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-author-badge-renderer",noInjection:!0})],w3);
_.Z(w3,"yt-live-chat-author-badge-renderer",function(){if(k4u===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;yy8===void 0&&(yy8=document.createElement("template"));var k=yy8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);k4u=I}I=k4u;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var F9e;var uQq;var nX=function(){return _.q.apply(this,arguments)||this};
_.R(nX,_.q);_.u=nX.prototype;_.u.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"}}}}};
_.u.computeBadgesInsideChip=function(I){return I?I.filter(function(C){return Cv(C.liveChatAuthorBadgeRenderer)==="verified"}):[]};
_.u.computeBadgesOutsideChip=function(I){return this.prependChatBadges||!I?[]:I.filter(function(C){C=Cv(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"})};
_.u.computeBadgesBeforeChip=function(I){return this.prependChatBadges&&I?I.filter(function(C){C=Cv(C.liveChatAuthorBadgeRenderer);return C!=="verified"&&C!=="owner"}):[]};
_.u.computeIsHighlighted=function(I,C){var y=!!nWz(I,"owner"),k=!!nWz(I,"verified");I=!!nWz(I,"moderator");return(y||k&&!I)&&!C};
_.u.computeAuthorType=function(I){return wqK(I)};
_.u.computeAuthorClass=function(I,C){return C?(I?I+" ":"")+"single-line":I};
_.u.onSeedColorChanged=function(){_.V("live_chat_author_name_color_usernames")||_.V("live_chat_seed_color_usernames")||_.V("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):_.V("live_chat_simple_color_usernames")&&this.authorNameColor&&(this.username.style.color=
this.authorNameColor)};
nX.prototype.onSeedColorChanged=nX.prototype.onSeedColorChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],nX.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nX.prototype,"authorName",void 0);_.E([_.d(),_.h("design:type",Array)],nX.prototype,"authorBadges",void 0);
_.E([_.d({computed:"computeAuthorType(authorBadges)"}),_.h("design:type",String)],nX.prototype,"authorType",void 0);_.E([_.d({computed:"computeAuthorClass(authorType, singleLine)"}),_.h("design:type",String)],nX.prototype,"authorClass",void 0);_.E([_.d({computed:"computeBadgesInsideChip(authorBadges)"}),_.h("design:type",Array)],nX.prototype,"badgesInsideChip",void 0);_.E([_.d({computed:"computeBadgesOutsideChip(authorBadges)"}),_.h("design:type",Array)],nX.prototype,"badgesOutsideChip",void 0);
_.E([_.d({computed:"computeBadgesBeforeChip(authorBadges)"}),_.h("design:type",Array)],nX.prototype,"badgesBeforeChip",void 0);_.E([_.d({computed:"computeIsHighlighted(authorBadges, disableHighlighting)",reflectToAttribute:!0}),_.h("design:type",Boolean)],nX.prototype,"isHighlighted",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],nX.prototype,"singleLine",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],nX.prototype,"disableHighlighting",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],nX.prototype,"dashboardMoneyFeed",void 0);_.E([_.d({value:_.V("live_chat_prepend_badges"),reflectToAttribute:!0}),_.h("design:type",Boolean)],nX.prototype,"prependChatBadges",void 0);_.E([_.d(),_.h("design:type",String)],nX.prototype,"authorNameColor",void 0);_.E([_.z$("#author-name"),_.h("design:type",HTMLDivElement)],nX.prototype,"username",void 0);
_.E([_.FI("authorNameColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nX.prototype,"onSeedColorChanged",null);nX=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-author-chip",noInjection:!0})],nX);
_.Z(nX,"yt-live-chat-author-chip",function(){if(uQq===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;F9e===void 0&&(F9e=document.createElement("template"));var k=F9e;y.call(C,k.content.cloneNode(!0),I.content.firstChild);uQq=I}I=uQq;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var zOw;var Tcc;var PA=function(){var I=_.q.apply(this,arguments)||this;I.debounceCommand=_.LQ(function(C){I.ytComponentBehavior.resolveCommand(C)},1500);
return I};
_.R(PA,_.q);PA.prototype.onTap=function(){if(this.engagementState&&this.engagementState.key&&this.isEditable){var I=this.isHearted?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE",C,y,k=this.isHearted?(C=this.data)==null?void 0:C.unheartCommand:(y=this.data)==null?void 0:y.heartCommand;this.ytLiveChatReduxBehavior.dispatch(_.bY("engagementToolbarStateEntityPayload",this.engagementState.key,{heartState:I}));(I=_.Rj(k))&&this.debounceCommand(I)}};
_.H1.Object.defineProperties(PA.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var I,C;if(!((I=this.data)==null?0:(C=I.creatorThumbnail)==null?0:C.sources))return{};I={thumbnails:[]};C={};C.url=this.data.creatorThumbnail.sources[0].url;I.thumbnails.push(C);return I}},
isHearted:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
isEditable:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}},
showCreatorView:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"}},
showButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.engagementState)==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((C=this.engagementState)==null?void 0:C.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||((y=this.engagementState)==null?void 0:y.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}}});
PA.prototype.onTap=PA.prototype.onTap;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],PA.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PA.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],PA.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PA.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.engagementStateKey"],selector:W1X}),_.h("design:type",Object)],PA.prototype,"engagementState",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],PA.prototype,"thumbnailDetails",null);_.E([_.v("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PA.prototype,"isHearted",null);_.E([_.v("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PA.prototype,"isEditable",null);
_.E([_.v("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PA.prototype,"showCreatorView",null);_.E([_.v("data","engagementState"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],PA.prototype,"showButton",null);_.E([_.v("data","isHearted"),_.h("design:type",String),_.h("design:paramtypes",[])],PA.prototype,"label",null);_.E([_.v("data","isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],PA.prototype,"heartHoverText",null);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PA.prototype,"onTap",null);PA=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-creator-heart-view-model"})],PA);
_.Z(PA,"yt-live-chat-creator-heart-view-model",function(){if(Tcc===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;zOw===void 0&&(zOw=document.createElement("template"));var k=zOw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Tcc=I}I=Tcc;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var LX=function(I,C){this.serviceId=new Ixu(I,C)};
LX.prototype.toString=function(){return this.serviceId.toString()};var cym=function(){this.internalMap={}};
_.u=cym.prototype;_.u.contains=function(I){return Object.prototype.hasOwnProperty.call(this.internalMap,I)};
_.u.get=function(I){if(this.contains(I))return this.internalMap[I]};
_.u.set=function(I,C){this.internalMap[I]=C};
_.u.getKeys=function(){return Object.keys(this.internalMap)};
_.u.remove=function(I){delete this.internalMap[I]};var Db=function(){this.mappings=new cym;this.errorCallbacks=new Set};
Db.prototype.getModuleId=function(I){return I.serviceId.getModuleId()};
Db.prototype.get=function(I){var C=this.mappings.get(I.toString());return eOS(this,C,I)};
Db.prototype.getMultipleAsync=function(){var I=_.wa.apply(0,arguments),C=this,y=I.map(function(w){return C.getModuleId(w)}),k=I.map(function(w){return C.mappings.get(w.toString())}).filter(function(w){return w});
if(k.length===I.length)return _.er(k.map(function(w,L){return eOS(C,w,I[L])}));
var F=XB().loadMultiple(y);k=_.QZ(y.map(function(w){return F[w]}));
var z=document.hidden,c=-1,r=_.s8("get_async_timeout_ms",-1);r>-1&&(c=setTimeout(function(){_.SN(new _.ph("Module timeout.",y,z,document.hidden))},r));
return _.N2(k.then(function(){return I.map(function(w){return eOS(C,C.mappings.get(w.toString()),w)})}).thenCatch(function(w){for(var L=_.T(C.errorCallbacks),D=L.next();!D.done;D=L.next())D=D.value,D(w);
throw w;}),function(){clearTimeout(c)})};
Db.prototype.registerService=function(I,C){this.mappings.set(I.toString(),{type:"mapping",value:C});return I};
var eOS=function(I,C,y){switch(C.type){case "mapping":return C.value;case "factory":return C=C.value(),I.mappings.set(y.toString(),{type:"mapping",value:C}),C;default:return _.C8(C)}};
Db.prototype.onLoadError=function(I){var C=this;this.errorCallbacks.add(I);return function(){C.errorCallbacks.delete(I)}};
_.pX=new Db;var ryw=function(){};
_.u=ryw.prototype;
_.u.JSC$11782_getRequest=function(I,C,y){C=C===void 0?{}:C;y=y===void 0?oo8:y;var k=C;if(this.isNavigationCommand()){var F,z=(F=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:F.url;k=_.LBI(I.clickTrackingParams,!0,!1,z,this.JSC$11782_getClientScreen(k))}else k=_.LBI(I.clickTrackingParams,!1,this.includeCsn);k={context:k};if(F=this.getExtension(I))return this.JSC$11782_buildRequest(k,F,C),F=this.getApiUrl(I),z=Object.assign({},{command:I},this.getRequestConfig(I,C)),k={input:F,requestShell:h$(F),
innerTubeRequest:k,config:z},k.config.authStrategy?k.config.authStrategy.identity=y:k.config.authStrategy={identity:y},(I=this.JSC$11782_getRequestKey(I,C))&&!k.config.requestKey&&(k.config.requestKey=I),k;I=new _.ph("Error: Failed to create Request from Command.",I);_.GB(I)};
_.u.getApiUrl=function(I){var C=_.tS(this.getApiPaths(I)),y;(I=(y=_.l(I.commandMetadata,_.It))==null?void 0:y.apiUrl)&&(C=I);return m2z(qvm(C))};
_.u.isNavigationCommand=function(){return!1};
_.u.JSC$11782_getClientScreen=function(){};
_.u.JSC$11782_getRequestKey=function(){};
_.u.getRequestConfig=function(){};
_.H1.Object.defineProperties(ryw.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!1}}});
var Qn=function(){};
_.R(Qn,ryw);Qn.prototype.JSC$11789_getStoreKey=function(){};
Qn.prototype.JSC$11782_getRequestKey=function(I,C){C=C===void 0?{}:C;return this.JSC$11789_getStoreKey(I,C)};var NF=function(){};
_.R(NF,Qn);NF.prototype.JSC$11782_getRequest=function(){return{input:"/getDatasyncIdsEndpoint",requestShell:h$("/getDatasyncIdsEndpoint","GET"),innerTubeRequest:{}}};
NF.prototype.getApiPaths=function(){return[]};
NF.prototype.getExtension=function(){};
NF.prototype.JSC$11782_buildRequest=function(){};var iOY={},wT8=(iOY.GET_DATASYNC_IDS=bk(NF),iOY);var nhe,PtP,L98,iob,Vn,QfY,pee,pTq,DPY;nhe="tokens consistency mss client_location entities adblock_detection response_received_commands store PLAYER_PRELOAD shorts_prefetch".split(" ");PtP=["type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.BrowseResponse","type.googleapis.com/youtube.api.pfiinnertube.YoutubeApiInnertube.PlayerResponse"];
_.KE=function(I,C,y,k,F,z,c,r,w){this.endpointMap=I;this.networkManager=C;this.authService=y;this.responseProcessorMap=k;this.innertubeResponseStore=F;this.contextProcessors=z;this.asyncContextProcessors=c;this.localInnertubeRouter=r;this.requestSequencer=w;this.inflightRequests=new Map;I.signalEndpointMap||(I.signalEndpointMap={});I.signalEndpointMap=Object.assign({},wT8,I.signalEndpointMap)};
L98=function(I,C,y,k,F,z,c,r,w){if(_.KE.instance!==void 0){if(k=_.KE.instance,I=[I!==k.endpointMap,C!==k.networkManager,y!==k.authService,F!==k.innertubeResponseStore,z!==k.contextProcessors,c!==k.asyncContextProcessors,r!==k.localInnertubeRouter],I.some(function(L){return L}))throw new _.ph("InnerTubeTransportService is already initialized",I);
}else _.KE.instance=new _.KE(I,C,y,k,F,z,c,r,w)};
_.gh=function(I,C,y){var k=k===void 0?oo8:k;var F=pee(I,C);return F?new _.eN(function(z,c){var r,w,L,D,p;return _.e(function(Q){switch(Q.nextAddress){case 1:return _.n(Q,F,2);case 2:r=Q.yieldResult;w=r.JSC$11782_getRequest(C,y,k);if(!w){c(new _.ph("Error: Failed to build request for command.",C));Q.jumpTo(0);break}bg(w.input);D=((L=w.requestShell)==null?void 0:L.mode)==="cors"?"cors":void 0;if(I.authService.syncHeaders){p=DPY(w.config,D);Q.jumpTo(4);break}return _.n(Q,pTq(w.config,D),5);case 5:p=
Q.yieldResult;case 4:z(QfY(I,w,p)),_.oI(Q)}})}):_.mr(new _.ph("Error: No request builder found for command.",C))};
iob=function(I,C,y,k){var F=F===void 0?oo8:F;var z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a;return _.e(function(cs){switch(cs.nextAddress){case 1:z=rgI(C,I.endpointMap);if(!z)throw new _.ph("Error: No streaming request builder found for command",C);c=z.JSC$11782_getRequest(C,y,F);if(!c)throw new _.ph("Failed to build YtRequest for streaming Command",C);if((r=I.localInnertubeRouter)==null||!r.shouldPreferLocalResponse(c.input,c.innerTubeRequest)){cs.jumpTo(2);break}return _.n(cs,I.localInnertubeRouter.localInnertubeResponse(c.input,
c.innerTubeRequest),3);case 3:return w=cs.yieldResult,L={},w.playerResponse&&(Vn(I,w.playerResponse,c),L.player=w.playerResponse,(D=k)==null||D(L,w)),w.watchNextResponse&&(Vn(I,w.watchNextResponse,c),L.content=w.watchNextResponse,(p=k)==null||p(L,w)),cs.return(L);case 2:X=((Q=c.requestShell)==null?void 0:Q.mode)==="cors"?"cors":void 0;if(I.authService.syncHeaders){b=DPY(c.config,X);cs.jumpTo(4);break}return _.n(cs,pTq(c.config,X),5);case 5:b=cs.yieldResult;case 4:return x=(A=(S=c.requestShell)==null?
void 0:S.headers)!=null?A:{},c.requestShell=Object.assign({},c.requestShell,{headers:Object.assign({},x,b)}),B=Object.assign({},c.requestShell),t=JSON.stringify(c.innerTubeRequest),c.requestShell.method==="POST"&&(B=Object.assign({},B,{body:t})),U=function(XO,Rm){Vn(I,Rm.playerResponse||Rm.watchNextResponse||Rm.reelItemWatchResponse||Rm.reelWatchSequenceResponse,c);k==null||k(XO,Rm)},yW={},_.n(cs,Ncb(I.networkManager,c.input,B,U),6);
case 6:return yW=cs.yieldResult,((a=c.config)==null?0:a.responseTick)&&_.Sr(c.config.responseTick),cs.return(yW)}})};
_.b_=function(I,C,y,k,F){F=F===void 0?{authStrategy:{identity:oo8}}:F;var z=z===void 0?!0:z;var c=function(){};
c=yeX(srz(y));C.context||(C.context=_.LBI(k,z));return new _.eN(function(r){var w,L,D,p,Q;return _.e(function(X){if(X.nextAddress==1)return w=qvm(y),L=_.Eh(w),I.authService.syncHeaders?(D=DPY(F,L),X.jumpTo(2)):_.n(X,pTq(F,L),3);X.nextAddress!=2&&(D=X.yieldResult);p=m2z(qvm(y));Q={input:p,requestShell:h$(p),innerTubeRequest:C,config:F};r(QfY(I,Q,D,c));_.oI(X)})})};
Vn=function(I,C,y){var k;if(C&&!(C==null?0:(k=C.sequenceMetaData)==null?0:k.skipProcessing)&&I.responseProcessorMap){k=_.T(nhe);for(var F=k.next();!F.done;F=k.next())F=F.value,I.responseProcessorMap[F]&&I.responseProcessorMap[F].handleResponse(C,y)}};
QfY=function(I,C,y,k){k=k===void 0?function(){}:k;
var F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO,Rm,$z,hX,vs,mY,Bs,n5,sH,Zt,Qd,OF,Rw,ku,xK,yf,uK,oL,Uw,TR;return _.e(function(G0){switch(G0.nextAddress){case 1:c=(F=C.config)==null?void 0:(z=F.storeStrategy)==null?void 0:z.storeKey;if(!(c&&I.innertubeResponseStore&&I.innertubeResponseStore.has(c))||((r=C.config)==null?0:(w=r.storeStrategy)==null?0:w.disableCache)){G0.jumpTo(2);break}return _.n(G0,I.innertubeResponseStore.get(c),3);case 3:if((L=G0.yieldResult)&&!L.isExpired())return G0.return(Promise.resolve(_.zb(L)));
case 2:if(!((D=C)==null?0:(p=D.innerTubeRequest)==null?0:p.context)){G0.jumpTo(4);break}Q=C.innerTubeRequest.context;if(!(I.asyncContextProcessors&&I.asyncContextProcessors.length>0)){G0.jumpTo(5);break}X=[];b=_.T(I.asyncContextProcessors);for(S=b.next();!S.done;S=b.next())A=S.value,x=A.processContext(C),x.wrappedPromise_&&X.push(x.wrappedPromise_);if(!(X.length>0)){G0.jumpTo(5);break}return _.n(G0,Promise.all(X),5);case 5:B=_.T(I.contextProcessors||[]),t=B.next();case 8:if(t.done){G0.jumpTo(4);break}U=
t.value;return _.n(G0,U.processContext(Q),9);case 9:t=B.next();G0.jumpTo(8);break;case 4:if((yW=I.localInnertubeRouter)==null||!yW.shouldPreferLocalResponse(C.input,C.innerTubeRequest)){G0.jumpTo(12);break}return _.n(G0,I.localInnertubeRouter.localInnertubeResponse(C.input,C.innerTubeRequest),13);case 13:return a=G0.yieldResult,Vn(I,a,C),G0.return(a);case 12:return(Rm=(XO=C.config)==null?void 0:XO.requestKey)&&I.inflightRequests.has(Rm)?cs=I.inflightRequests.get(Rm):($z=JSON.stringify(C.innerTubeRequest),
mY=(vs=(hX=C.requestShell)==null?void 0:hX.headers)!=null?vs:{},C.requestShell=Object.assign({},C.requestShell,{headers:Object.assign({},mY,y)}),Bs=Object.assign({},C.requestShell),C.requestShell.method==="POST"&&(Bs=Object.assign({},Bs,{body:$z})),((n5=C.config)==null?0:n5.requestTick)&&_.Sr(C.config.requestTick),sH=function(){return I.networkManager.fetch(C.input,Bs,C.config)},cs=I.requestSequencer?VKS(I.requestSequencer,C,sH):sH(),Rm&&I.inflightRequests.set(Rm,cs)),_.n(G0,cs,14);
case 14:if((Zt=G0.yieldResult)&&"error"in Zt&&((Qd=Zt)==null?0:(OF=Qd.error)==null?0:OF.details))for(Rw=Zt.error.details,ku=_.T(Rw),xK=ku.next();!xK.done;xK=ku.next())yf=xK.value,(uK=yf["@type"])&&PtP.indexOf(uK)>-1&&(delete yf["@type"],Zt=yf);Rm&&I.inflightRequests.has(Rm)&&I.inflightRequests.delete(Rm);((oL=C.config)==null?0:oL.responseTick)&&_.Sr(C.config.responseTick);if(Zt||(Uw=I.localInnertubeRouter)==null||!Uw.canProvideFallbackResponse(C.input,C.innerTubeRequest)){G0.jumpTo(15);break}return _.n(G0,
I.localInnertubeRouter.localFallbackInnertubeResponse(C.input,C.innerTubeRequest),16);case 16:Zt=G0.yieldResult;case 15:return Vn(I,Zt,C),((TR=C.config)==null?0:TR.processorTick)&&_.Sr(C.config.processorTick),k(),G0.return(Zt||void 0)}})};
_.AU=function(I,C){return eZ9(C,I.endpointMap)};
pee=function(I,C){I=ifm(C,I.endpointMap);if(I!==void 0)return Promise.resolve(I)};
pTq=function(I,C){var y,k,F,z;return _.e(function(c){if(c.nextAddress==1){F=(y=I)==null?void 0:(k=y.authStrategy)==null?void 0:k.sessionIndex;var r=_.er(c7H({sessionIndex:F}));return _.n(c,r,2)}z=c.yieldResult;return c.return(Promise.resolve(Object.assign({},wEm(C),z)))})};
DPY=function(I,C){var y;I=I==null?void 0:(y=I.authStrategy)==null?void 0:y.sessionIndex;y=c7H({sessionIndex:I});return Object.assign({},wEm(C),y)};var jfw,lru,XTu,$PS,ROY,bOw,frw,SSq,XN,K9S,Aym,G4P,ghm;jfw=0;lru=/tone[1-5]/;XTu=" \ud83c\udffb \ud83c\udffc \ud83c\udffd \ud83c\udffe \ud83c\udfff".split(" ");$PS="UCzC5CNksIBaiT-NdMJjJNOQ/COLRg9qOwdQCFce-qgodrbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CMKC7uKOwdQCFce-qgodqbsLaA UCzC5CNksIBaiT-NdMJjJNOQ/CJiQ8uiOwdQCFcx9qgodysAOHg UCzC5CNksIBaiT-NdMJjJNOQ/CI3h3uDJitgCFdARTgodejsFWg UCzC5CNksIBaiT-NdMJjJNOQ/CI69oYTKitgCFdaPTgodsHsP5g UCzC5CNksIBaiT-NdMJjJNOQ/CKzQr47KitgCFdCITgodq6EJZg UCzC5CNksIBaiT-NdMJjJNOQ/CPGD8Iu8kN4CFREChAod9OkLmg".split(" ");
ROY=Number.MAX_SAFE_INTEGER;bOw=RegExp("\ufe0f","g");_.jD=function(I){this.skinTone=0;this.emojiSize=24;this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.pickerCustomEmojiIds=[];this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1;I&&_.YS0(this,I)};
_.YS0=function(I,C){try{_.cN(C,{context:I,onSuccess:function(k,F){Array.isArray(F)?I.load(F):(k=new _.ph("Emoji manager JSON response was not an array!",{response:F}),_.GB(k))},
onError:function(k){k=new _.ph("Failed to retrieve emoji manager initial JSON data!",{url:C,statusCode:kt(k).toString()});_.SN(k)}})}catch(k){var y=new _.ph("Failed to parse unicode emoji JSON data! Error: {e.message}",{url:C});
_.SN(y)}};
_.jD.prototype.clear=function(){this.emojis=[];this.emojiMap={};this.emojiRegex=/$./;this.emojiShortcutMap={};this.emojiShortcutCharMap={};this.hasInitializedShortcutCharMap=!1};
_.jD.prototype.load=function(I,C){if(C)if(I.length)I=I.concat(C.emojis);else{this.emojis=C.emojis;this.emojiMap=C.emojiMap;this.emojiShortcutMap=C.emojiShortcutMap;this.emojiShortcutCharMap=G4P(C);this.hasInitializedShortcutCharMap=!0;this.emojiRegex=C.emojiRegex;return}this.emojis=[].concat(_.Py(new Set(this.emojis.concat(I))));this.hasInitializedShortcutCharMap=!1;I=Array(this.emojis.length);for(C=0;C<this.emojis.length;C++){var y=this.emojis[C];if(y.emojiId){this.emojiMap[y.emojiId]=y;this.emojiMap[y.emojiId].index=
C;for(var k=0;y.shortcuts&&k<y.shortcuts.length;k++)this.emojiShortcutMap[y.shortcuts[k].toLocaleLowerCase()]=y;I[C]=y.isCustomEmoji&&y.shortcuts?y.shortcuts[0]:y.emojiId}}I.sort(function(F,z){return z.length-F.length});
if(I.length)try{this.emojiRegex=new RegExp(I.join("|").replace("*","\\*"),"gi")}catch(F){this.emojiRegex=/$./}else this.emojiRegex=/$./};
frw=function(I,C){C=_.T(C);for(var y=C.next();!y.done;y=C.next()){var k=y.value;if(k.emojiId&&I.emojiMap[k.emojiId]){y=Object.assign({},I.emojiMap[k.emojiId],k);I.emojiMap[k.emojiId]=y;var F=void 0;y.index&&((F=I.emojis[y.index])==null?void 0:F.emojiId)===k.emojiId&&(I.emojis[y.index]=y);k=void 0;if((k=y.shortcuts)==null?0:k.length)for(I.hasInitializedShortcutCharMap=!1,k=_.T(y.shortcuts),F=k.next();!F.done;F=k.next())I.emojiShortcutMap[F.value.toLocaleLowerCase()]=y}}};
SSq=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,_.pu.getInstance(),2);if(k.nextAddress!=3)return(C=k.yieldResult)?_.n(k,C.get("ytlc-emoji-pref"),3):k.return();(y=k.yieldResult)&&frw(I,Object.keys(y).map(function(F){return{emojiId:F,stickyPrefId:y[F]}}).filter(function(F){return!!F.emojiId&&!!F.stickyPrefId}));
_.oI(k)})};
_.le=function(I,C,y){return(I=I.emojiMap[C])&&(!I.isLocked||y!==void 0&&y)?I:void 0};
XN=function(I,C,y){y=_.le(I,C,y===void 0?!1:y);var k=C.match("\u200d");y&&I.skinTone!==0&&(I=(k==null?void 0:k.length)===1?_.le(I,C.replace("\u200d",XTu[I.skinTone]+"\u200d")):_.le(I,C+XTu[I.skinTone]))&&(y=I);return y};
K9S=function(I,C){var y=I.emojiMap[C];return(y==null?0:y.stickyPrefId)?I.emojiMap[y.stickyPrefId]:XN(I,C)};
_.nn=function(I,C){I=I.emojiShortcutMap[C.toLocaleLowerCase()];return!I||I.isLocked?null:I};
Aym=function(I,C,y){return G4P(I,y===void 0?!1:y)[C]||{}};
G4P=function(I,C){C=C===void 0?!1:C;if(!I.hasInitializedShortcutCharMap){I.hasInitializedShortcutCharMap=!0;for(var y=0;y<I.emojis.length;y++){var k=I.emojis[y];if(!(k.isLocked||C&&k.isCustomEmoji&&k.emojiId&&!I.pickerCustomEmojiIds.includes(k.emojiId)))for(var F=0;k.shortcuts&&F<k.shortcuts.length;F++){var z=k.shortcuts[F];z.startsWith(":_")&&k.isCustomEmoji&&(I.emojiShortcutCharMap[":_"]==null&&(I.emojiShortcutCharMap[":_"]=Object.create(null)),I.emojiShortcutCharMap[":_"][z]=k);if(!(z.length<3||
!k.isCustomEmoji&&lru.test(z))){var c=z.substr(0,3).toLocaleLowerCase();I.emojiShortcutCharMap[c]==null&&(I.emojiShortcutCharMap[c]=Object.create(null));I.emojiShortcutCharMap[c][z]=k}}}}return I.emojiShortcutCharMap};
_.jD.prototype.createEmoji=function(I,C){C=C===void 0?!0:C;var y=document.createElement("img");I.isCustomEmoji||y.classList.add("small-emoji");y.classList.add("emoji");y.classList.add("yt-formatted-string");y.src=I.image?_.E5(I.image.thumbnails,this.emojiSize)||"":"";var k=void 0;I.image&&I.image.accessibility&&I.image.accessibility.accessibilityData&&(k=I.image.accessibility.accessibilityData.label);y.alt=k?k:(I.isCustomEmoji&&I.shortcuts?I.shortcuts[0]:I.emojiId)||"";I.isCustomEmoji&&(y.dataset.emojiId=
I.emojiId);_.F8&&(y.setAttribute("contenteditable","false"),y.setAttribute("unselectable","on"));C&&(I.shortcuts&&I.shortcuts.length&&y.setAttribute("shared-tooltip-text",I.shortcuts[0]),y.id="emoji-"+jfw++);return y};
_.jD.prototype.createDocumentFragment=function(I,C,y,k){C=C===void 0?!1:C;y=y===void 0?!0:y;k=k===void 0?!1:k;I=I.replace(bOw,"");for(var F=document.createDocumentFragment(),z=0,c,r=0;(c=this.emojiRegex.exec(I))!=null;){var w=_.le(this,c[0])||_.nn(this,c[0]);!w||w.isCustomEmoji&&!C||(w=this.createEmoji(w,y),z!==c.index&&F.appendChild(document.createTextNode(I.substring(z,c.index))),F.appendChild(w),z=c.index+c[0].length,r++)}if(!k||r)return F.appendChild(document.createTextNode(I.substr(z))),F};
ghm=function(I,C,y){var k,F,z,c,r,w,L,D,p;return _.e(function(Q){if(Q.nextAddress==1){if(!C.emojiId||!I.emojiMap[C.emojiId])return Q.return();k=Object.assign({},I.emojiMap[C.emojiId],{stickyPrefId:y});I.emojiMap[C.emojiId]=k;C.index&&((F=I.emojis[C.index])==null?void 0:F.emojiId)===C.emojiId&&(I.emojis[C.index]=k);if((z=C.shortcuts)==null?0:z.length)for(I.hasInitializedShortcutCharMap=!1,c=_.T(C.shortcuts),r=c.next();!r.done;r=c.next())w=r.value,I.emojiShortcutMap[w.toLocaleLowerCase()]=k;return _.n(Q,
_.pu.getInstance(),2)}if(Q.nextAddress!=4)return(L=Q.yieldResult)?_.n(Q,L.get("ytlc-emoji-pref"),4):Q.jumpTo(0);p=(D=Q.yieldResult)!=null?D:{};p[C.emojiId]=y;return _.n(Q,L.set("ytlc-emoji-pref",p,ROY),0)})};
_.$p=new _.jD;var dP8;_.RW={};
dP8={properties:{id:{type:String,computed:"identity(data.id)",reflectToAttribute:!0},wholeMessageClickable:{type:Boolean,computed:"computeWholeMessageClickable(data.contextMenuEndpoint)",reflectToAttribute:!0},useOpacityForContextMenuVisibility:{type:Boolean,value:_.V("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:_.V("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 Zk(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 I=_.f(this.hostElement||this).querySelector("#inline-action-button-container");I&&I.setAttribute("aria-hidden","true");this.menuButton=_.f(this.hostElement).querySelector("#menu-button")},
attached:function(){var I=this.menuButton;I&&(I.addEventListener("focusin",_.sb(this,this.onMenuButtonFocus_)),I.addEventListener("focusout",_.sb(this,this.onMenuButtonBlur_)))},
detached:function(){var I=this.menuButton;I&&(I.removeEventListener("focusin",_.sb(this,this.onMenuButtonFocus_)),I.removeEventListener("focusout",_.sb(this,this.onMenuButtonBlur_)))},
identity:_.gH,truthy:function(I){return!!I},
computeTimestampString:function(I){return I?I.timestampText?this.getSimpleString(I.timestampText):this.TIME_FORMATTER.format(new Date(I.timestampUsec/1E3)):""},
computeWholeMessageClickable:function(I){return _.V("live_chat_whole_message_clickable")&&I},
computeMenuVisible_:function(I,C){return I||C},
computeHasInlineActionButtons:function(I){if(!I)return!1;var C,y;return!((C=I.inlineActionButtons)==null||!C.length)||!((y=I.additionalInlineActionButtons)==null||!y.length)},
createDocumentFragmentFromString:function(I){var C=_.$p.createDocumentFragment.bind(_.$p),y;if((y=this.participantsManager)==null||!y.viewerRegex)return C(I);y=document.createDocumentFragment();for(var k=0,F;(F=this.participantsManager.viewerRegex.exec(I))!=null;){if(F.index>0){var z=":"+F[0]+":";if((_.le(_.$p,z)||_.nn(_.$p,z))&&I.indexOf(z)===F.index-1)continue}y.appendChild(C(I.substring(k,F.index)));k=document.createElement("span");k.appendChild(C(F[0]));k.classList.add("mention");y.appendChild(k);
k=F.index+F[0].length}y.appendChild(C(I.substring(k)));return y},
createDocumentFragment:function(I){var C=document.createDocumentFragment();if(I.simpleText)return C.appendChild(this.createDocumentFragmentFromString(I.simpleText)),C;if(!I.runs)return C;for(var y=0;y<I.runs.length;y++){var k=I.runs[y];if(k.emoji)C.appendChild(_.$p.createEmoji(k.emoji));else if(k.text)if(k.navigationEndpoint){var F=document.createElement("a");F.classList.add("yt-simple-endpoint");GpI(F,k.navigationEndpoint);_.f(F).appendChild(this.createDocumentFragmentFromString(k.text));C.appendChild(F)}else C.appendChild(this.createDocumentFragmentFromString(k.text))}return C},
hasModerationOverlayVisible:function(){var I;return((I=document.querySelector("yt-live-chat-item-list-renderer"))==null?void 0:I.getAttribute("moderation-mode-enabled"))===""},
onItemTap:function(I){I.composedPath().some(function(C){return(C=C instanceof Element?C:null)?C.tagName&&(C.tagName.toLowerCase()==="yt-live-chat-creator-heart-view-model"||C.tagName.toLowerCase()==="yt-button-view-model"):!1})||this.data.contextMenuEndpoint&&this.wholeMessageClickable&&this.shouldSupportWholeItemClick()&&!this.hasModerationOverlayVisible()&&!_.V("enable_live_chat_web_context_menu_resolver")&&this.showContextMenu(I)},
colorFromDecimal:function(I){return aGt(I)},
markAsDeleted:function(I,C){this.set("data.deletedStateMessage",I);this.set("data.showOriginalContentMessage",C)},
onMenuButtonFocus_:function(){this.menuFocused=!0},
onMenuButtonBlur_:function(){this.menuFocused=!1},
showContextMenu:function(I){if(this.data.contextMenuEndpoint){var C=_.N().resolve(_.pp),y=this.data.contextMenuEndpoint,k;(k=_.KE.instance)&&_.AU(k,y)?(C=vh0(C,y),k=_.b_(k,{},C)):k=_.W9m(C,y);k.then(this.handleGetContextMenuResponse_,this.handleGetContextMenuError,this);I&&I.stopPropagation()}},
handleGetContextMenuResponse_:function(I){var C=_.KE.instance;C&&_.AU(C,{liveChatEndpoint:{}})||(I=I.response);I.liveChatItemContextMenuSupportedRenderers&&I.liveChatItemContextMenuSupportedRenderers.menuRenderer&&this.showContextMenu_(I.liveChatItemContextMenuSupportedRenderers.menuRenderer);I.actions&&_.Fe(this.hostElement,"yt-live-chat-actions",[I.actions])},
handleGetContextMenuError:function(I){if(I instanceof Error||I instanceof Object||I instanceof String)var C=I;_.GB(new _.ph("Error encountered calling GetLiveChatItemContextMenu",C))},
showContextMenu_:function(I){this.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:I}}})},
onYtPopupOpened_:function(){this.menuOpen=!0;_.k3(this.hostElement,"yt-live-chat-context-menu-opened")},
onYtPopupClosedOrCanceled_:function(){this.menuOpen=!1;_.k3(this.hostElement,"yt-live-chat-context-menu-closed")}};
_.RW.YtLiveChatItemBehavior=[dP8,_.$y.YtComponentBehavior,_.M8.YtOpenPopupBehavior];_.be=function(){};var xPu;var qSw;var mPu;var ZOY;var Yp=function(){var I=_.q.apply(this,arguments)||this;I.active=!1;I.identity=_.gH;return I};
_.R(Yp,_.q);Yp.prototype.dataChanged=function(){this.active=!1};
Yp.prototype.onClick=function(){_.k3(this.hostElement,"yt-live-chat-select-suggestion",this.data)};
Yp.prototype.dataChanged=Yp.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],Yp.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Yp.prototype,"active",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yp.prototype,"dataChanged",null);Yp=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-suggestion",noInjection:!0})],Yp);
_.Z(Yp,"yt-live-chat-text-input-field-suggestion",function(){if(ZOY===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;mPu===void 0&&(mPu=document.createElement("template"));var k=mPu;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ZOY=I}I=ZOY;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});_.Gd=function(I,C,y){return CustomEvent.call(this,I,{detail:{value:C,path:y}})||this};
_.R(_.Gd,CustomEvent);_.fX=function(){var I=_.q.apply(this,arguments)||this;I.viewerName=null;I.actionMap={"yt-live-chat-actions":"onChatMessage_"};I.SUPPORTED_ITEM_TYPES_=["liveChatTextMessageRenderer","liveChatLegacyPaidMessageRenderer","liveChatPaidMessageRenderer"];I.PARTICIPANT_TIME_USEC_=3E8;return I};
_.R(_.fX,_.q);_.u=_.fX.prototype;_.u.created=function(){this.allParticipantsCharMap_={};this.asyncHandle_=null};
_.u.addParticipant=function(I){var C=_.NHm(this.participants,I,function(k,F){k=k[Object.keys(k)[0]];F=F[Object.keys(F)[0]];k=String(_.hS(k.authorName)).toLowerCase();F=String(_.hS(F.authorName)).toLowerCase();return k<F?-1:k==F?0:1}.bind(this));
if(C>=0){var y=this.participants[C];y[Object.keys(y)[0]].timestampUsec&&this.splice("participants",C,1,I)}else this.splice("participants",-C-1,0,I);I=I[Object.keys(I)[0]];C=_.hS(I.authorName).toLocaleLowerCase();y=C.substr(0,2);this.allParticipantsCharMap_.hasOwnProperty(y)||(this.allParticipantsCharMap_[y]={});this.allParticipantsCharMap_[y][C]=I};
_.u.getAuthorsFromPrefix=function(I){return this.allParticipantsCharMap_.hasOwnProperty(I)?this.allParticipantsCharMap_[I]:null};
_.u.computeViewerRegex_=function(I){if(!I)return null;I=I.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&");return _.V("enable_web_yt_handles")||_.V("enable_live_chat_yt_handles")?new RegExp("([#]"+I.replace(/ /g,"\\s*")+"|^"+I.replace(/ /g,"\\s*")+"$|^"+I.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+I.replace(/ /g,"\\s*")+"$|(?<=\\s)"+I.replace(/ /g,"\\s*")+"(?=\\s))","ig"):new RegExp("([@#]"+I.replace(/ /g,"\\s*")+"|^"+I.replace(/ /g,"\\s*")+"$|^"+I.replace(/ /g,"\\s*")+"(?=\\s)|(?<=\\s)"+I.replace(/ /g,"\\s*")+
"$|(?<=\\s)"+I.replace(/ /g,"\\s*")+"(?=\\s))","ig")};
_.u.checkForStaleParticipants_=function(){var I=this;this.trimOldParticipants_();this.asyncHandle_&&Vv9(this.asyncHandle_);this.participants.length>0&&(this.asyncHandle_=_.SA(function(){I.checkForStaleParticipants_()},3E4))};
_.u.onChatMessage_=function(I){var C=this,y=Date.now()*1E3;I.forEach(function(k){if(k=_.l(k,QNw)){k=k.item;var F=Object.keys(k)[0];C.SUPPORTED_ITEM_TYPES_.indexOf(F)!=-1&&k[F].timestampUsec>=y-C.PARTICIPANT_TIME_USEC_&&C.addParticipant(k)}},this);
this.checkForStaleParticipants_()};
_.u.trimOldParticipants_=function(){for(var I=Date.now()*1E3,C=this.participants.length-1;C>=0;C--){var y=this.participants[C];y=y[Object.keys(y)[0]];y.timestampUsec&&y.timestampUsec<I-this.PARTICIPANT_TIME_USEC_&&this.splice("participants",C,1)}};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],_.fX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],_.fX.prototype,"viewerName",void 0);_.E([_.d({computed:"computeViewerRegex_(viewerName)"}),_.h("design:type",Object)],_.fX.prototype,"viewerRegex",void 0);_.E([_.d({value:function(){return[]},
notify:!0}),_.h("design:type",Array)],_.fX.prototype,"participants",void 0);_.fX=_.E([_.lT({is:"yt-live-chat-participants-manager",noInjection:!0})],_.fX);var BcY=/.*([:@#].*?)$/,SD=/\u00a0/g,Ehb=String.fromCharCode(160),hO5={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"},KX=function(){var I=_.q.apply(this,arguments)||this;I.disabled=!1;I.liveChatRichMessageInput=null;I.messageInput=null;I.isValidWithNoInputText=!1;I.suggestions=[];I.emojiManager=_.$p;I.inputMethodEditorActive=
!1;I.suggestionIndex=-1;I.JSC$11837_lastSuggestionRange=null;return I};
_.R(KX,_.q);_.u=KX.prototype;_.u.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"yt-live-chat-text-input-field-suggestion"},reuseComponents:!0}}};
_.u.attached=function(){_.u4&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"));this.hostElement.addEventListener("compositionstart",this.onCompositionStart);this.hostElement.addEventListener("compositionend",this.onCompositionEnd)};
_.u.detached=function(){this.setLiveChatRichMessageInput(null);this.hostElement.removeEventListener("compositionstart",this.onCompositionStart);this.hostElement.removeEventListener("compositionend",this.onCompositionEnd)};
_.u.dataChanged=function(){if(!this.ignoreColorMapping){var I=!1,C={},y;for(y in hO5)this.data&&this.data.hasOwnProperty(y)&&(C[hO5[y]]=this.colorFromDecimal(this.data[y]),I=!0);I&&_.CK(this.hostElement,C)}this.messageInput&&this.setLiveChatRichMessageInput(this.messageInput)};
_.u.onMessageSet=function(){this.setLiveChatRichMessageInput(this.messageInput||{})};
_.u.colorFromDecimal=function(I){I=Math.floor(Number(I));return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
_.u.preventDrag=function(I){I.dataTransfer&&(I.dataTransfer.dropEffect="none");I.preventDefault()};
_.u.preventResize=function(I){I.returnValue=!1};
_.u.onInputChange=function(){var I=this.characterCount,C=document.querySelector("#overflow-text");this.characterCount<=this.maxCharacterLimit&&C&&C.remove();if(!C&&this.characterCount>this.maxCharacterLimit){var y=window.getSelection();if(y){var k=y.getRangeAt(0);y.removeAllRanges();y.addRange(k)}}if(y=this.getCurrentRange())k=this.calculateTextBeforeRange(y),this.completeEmojisInRange(y,k,!0)||this.updateSuggestions(y,k);k=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(k);
_.k3(this.hostElement,"yt-live-chat-message-input-change",k);C&&this.characterCount===0&&C.remove();y&&y.commonAncestorContainer.parentElement.id==="input"&&y.commonAncestorContainer.nodeName!=="SPAN"?this.handleOverflowText(this.characterCount>I):y&&!y.collapsed&&y.commonAncestorContainer===this.input&&this.checkForDuplicateSpans();if(this.characterCount===0)for(I=this.input.childNodes.length-1;I>=0;I--)this.input.childNodes[I].nodeName==="BR"&&this.input.childNodes[I].remove()};
_.u.onCompositionStart=function(){this.inputMethodEditorActive=!0};
_.u.onCompositionEnd=function(){this.inputMethodEditorActive=!1;var I=this.getCurrentRange();I&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.u.mergeOverflowText=function(I){if(I){var C=document.createRange();C.selectNodeContents(I);C=C.extractContents();this.input.insertBefore(C,I)}};
_.u.checkRangeAtEndOfInput=function(){var I=this.getCurrentRange();if(I){var C=_.f(this.hostElement).querySelector("#overflow-text"),y=document.createRange();C&&C.previousSibling?C.previousSibling instanceof HTMLImageElement?y.selectNode(C.previousSibling):y.selectNodeContents(C.previousSibling):this.input&&this.input.lastChild&&(this.input.lastChild instanceof HTMLImageElement?y.selectNode(this.input.lastChild):y.selectNodeContents(this.input.lastChild));y.collapse(!1);return y.isPointInRange(I.startContainer,
I.startOffset)}return!1};
_.u.handleOverflowText=function(I){if(!this.dropdown.opened&&!this.inputMethodEditorActive&&this.isChatMessageInput){var C=_.f(this.hostElement).querySelector("#overflow-text"),y=this.getCurrentRange();this.input.normalize();I=this.checkRangeAtEndOfInput()&&I;this.mergeOverflowText(C);for(var k,F=0,z=0,c,r=this.input.childNodes,w=0;w<r.length;w++){var L=r[w];L instanceof Text?(z+=L.textContent.length,z>this.maxCharacterLimit&&(k=L,F=this.maxCharacterLimit+L.textContent.length-z)):L instanceof HTMLImageElement&&
(k=void 0,z=L.dataset.emojiId&&((k=this.data)==null?0:k.emojiCharacterCount)?z+this.data.emojiCharacterCount:z+L.alt.length,k=this.input,F=w);if(z>this.maxCharacterLimit&&k){c=document.createRange();c.collapse(!1);C?(z=this.input.lastChild.previousSibling,z instanceof Text?c.setEnd(this.input.lastChild.previousSibling,z.textContent.length):z instanceof HTMLImageElement&&c.setEnd(this.input,this.input.childNodes.length-1)):c.selectNodeContents(this.input);c.setStart(k,F);break}}c&&(k=!1,y&&(I=c.isPointInRange(y.startContainer,
y.startOffset-1)),C||(C=document.createElement("span"),C.id="overflow-text",C.textContent="",C.setAttribute("contenteditable","true"),_.f(_.f(this.hostElement).querySelector("#input")).appendChild(C),k=!0),C&&(y=c.extractContents(),C.insertBefore(y,C.firstChild),I&&C.firstChild&&(y=document.createRange(),k?y.setStartAfter(C.lastChild):y.setStartAfter(C.firstChild),y.collapse(!0),C=window.getSelection(),C.removeAllRanges(),C.addRange(y))))}};
_.u.checkForDuplicateSpans=function(){for(var I=0;I<this.input.childNodes.length;I++){var C=this.input.childNodes[I];if(C.nodeName==="SPAN"){var y=document.createRange();y.selectNodeContents(C);y=y.extractContents();this.input.insertBefore(y,C);C.remove()}}this.handleOverflowText(!0)};
_.u.getCurrentRange=function(){var I=window.getSelection();return I&&I.rangeCount?I.getRangeAt(0).cloneRange():null};
_.u.getInputRange=function(){var I=this.getCurrentRange();if(I){for(var C=I.commonAncestorContainer,y=!1,k=_.f(this.hostElement).querySelector("#input");C;){if(C===k){y=!0;break}C=C.parentNode}y||(I=null)}I||(I=this.getRangeAtEnd());return I};
_.u.getRangeAtEnd=function(){var I=document.createRange(),C=_.f(this.hostElement).querySelector("#input").lastChild;!C||C.nodeName!=="#text"&&C.nodeName!=="SPAN"?(I.selectNodeContents(_.f(this.hostElement).querySelector("#input")),I.collapse(!1)):C.nodeName==="#text"?I.setStart(C,C.textContent.length):I.setStart(C,C.childNodes.length);return I};
_.u.getSuggestions=function(I){var C=[],y=I.substring(0,3),k=Aym(_.$p,y,!0);if(k)for(var F in k)if(F.toLocaleLowerCase().indexOf(I)===0){var z=k[F];if(z&&z.emojiId){if(z=K9S(_.$p,z.emojiId)){var c=void 0,r=void 0,w=void 0,L=void 0,D=((c=z.image)==null?0:(r=c.accessibility)==null?0:(w=r.accessibilityData)==null?0:w.label)||z.isCustomEmoji?(L=z.shortcuts)==null?void 0:L[0]:z.emojiId;C.push({suggestion:{emoji:!0,image:z.image,alt:D,text:F,textToInsertWhenSelected:z.isCustomEmoji?F:D}})}if(C.length>=
64)break}}if(!this.participantsManager)return null;k=_.V("enable_web_yt_handles")||_.V("enable_live_chat_yt_handles");if(y.indexOf("@")===0||y.indexOf("#")===0)if(F=y.charAt(0),I=I.substring(1),y=k&&y.indexOf("@")===0?y.substring(0,2):y.substring(1),y=this.participantsManager.getAuthorsFromPrefix(y))for(var p in y)if(p.indexOf(I)===0||k&&p.indexOf(F+I)===0)if(z=y[p],c=_.hS(z.authorName),C.push({suggestion:{author:!0,authorType:F,image:z.authorPhoto,alt:c,text:c}}),C.length>=64)break;return C?C.sort(function(Q,
X){return X.suggestion.text<Q.suggestion.text?-1:X.suggestion.text===Q.suggestion.text?0:1}):null};
_.u.insertSuggestion=function(I){var C=_.V("enable_web_yt_handles")||_.V("enable_live_chat_yt_handles")?I.text+Ehb:I.authorType+I.text+Ehb;I.emoji?this.insertTextAtRange(this.JSC$11837_lastSuggestionRange,I.textToInsertWhenSelected||""):I.author&&this.insertTextAtRange(this.JSC$11837_lastSuggestionRange,C)};
_.u.updateSuggestionsAtCaret=function(){var I=this.getCurrentRange();I&&this.updateSuggestions(I,this.calculateTextBeforeRange(I))};
_.u.offsetStartOfRangeBy=function(I,C){for(;C>0;)if(I.startOffset-C>=0){I.setStart(I.startContainer,I.startOffset-C);break}else{C=I.startContainer instanceof HTMLImageElement?C-I.startContainer.alt.length:C-I.startOffset;var y=I.startContainer.previousSibling;if(!y){I.setStart(I.startContainer,0);break}if(_.V("live_chat_require_space_for_autocomplete_emoji")){var k=void 0,F=void 0;I.setStart(y,((k=y)==null?void 0:(F=k.textContent)==null?void 0:F.length)||0)}else I.setStart(y,y.childNodes.length||
0)}};
_.u.updateSuggestions=function(I,C){var y=this;this.JSC$11837_lastSuggestionRange&&(this.JSC$11837_lastSuggestionRange.detach(),this.JSC$11837_lastSuggestionRange=null);if((C=BcY.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2&&(this.offsetStartOfRangeBy(I,C.length),this.JSC$11837_lastSuggestionRange=I,(I=this.getSuggestions(C))&&I.length))){this.suggestions=I;_.hn(this,function(){_.f(y.hostElement).querySelector("#dropdown-content").scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(I.length-1);return}this.dropdown.opened=!1};
_.u.completeEmojisInRange=function(I,C,y){var k=C.replace(/[\s\xa0]+$/,"");C=C.length-k.length;k=k.split(" ");k=k[k.length-1].trim().toLocaleLowerCase();var F=k.lastIndexOf(":");if(y&&!C&&F!==k.length-1)return!1;F!==-1&&(y=k.lastIndexOf(":",F-1),y!==-1&&(k=k.substring(y)));if((y=_.nn(_.$p,k))&&y.emojiId){y=K9S(_.$p,y.emojiId)||null;this.offsetStartOfRangeBy(I,k.length+C);var z,c,r,w;k=(((z=y)==null?0:z.isCustomEmoji)?(c=y)==null?void 0:(r=c.shortcuts)==null?void 0:r[0]:(w=y)==null?void 0:w.emojiId)||
"";C&&(k+=Ehb);this.insertTextAtRange(I,k);this.dropdown.opened=!1;return!0}return!1};
_.u.onSuggestion=function(I){this.insertSuggestion(I.detail);this.dropdown.opened=!1};
_.u.onKeyPress=function(I){I.keyCode===13&&(I.preventDefault(),this.dropdown.opened?(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),this.dropdown.opened=!1):_.k3(this.hostElement,"yt-live-chat-send-message"))};
_.u.completeEmojis=function(){var I=document.createRange(),C=_.f(this.hostElement).querySelector("#input").lastChild;C?I.setStart(C,C.childNodes.length):(I.selectNodeContents(_.f(this.hostElement).querySelector("#input")),I.collapse(!1));this.completeEmojisInRange(I,this.calculateTextBeforeRange(I),_.V("live_chat_require_space_for_autocomplete_emoji"))};
_.u.maybePreventTextFormatting=function(I){!_.cv||!I.ctrlKey&&!I.metaKey||I.keyCode!==66&&I.keyCode!==73||(I.stopImmediatePropagation(),I.preventDefault())};
_.u.onKeyDown=function(I){this.maybePreventTextFormatting(I);if(this.dropdown.opened)switch(I.keyCode){case 27:this.dropdown.opened=!1;I.stopPropagation();break;case 9:this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);this.dropdown.opened=!1;I.preventDefault();break;case 38:this.changeSuggestionIndex(this.suggestionIndex-1);I.preventDefault();break;case 40:this.changeSuggestionIndex(this.suggestionIndex+1),I.preventDefault()}};
_.u.onKeyUp=function(I){switch(I.keyCode){case 37:case 39:this.updateSuggestionsAtCaret();break;case 38:case 40:this.dropdown.opened||this.updateSuggestionsAtCaret()}if(_.F8)this.onInputChange()};
_.u.changeSuggestionIndex=function(I){if(this.dropdown.opened){var C=_.f(this.hostElement).querySelector("#dropdown-content");this.suggestionIndex>=0&&this.suggestionIndex<C.children.length&&(C.children[this.suggestionIndex].active=!1);var y=this.suggestions.length;this.suggestionIndex=(I+y)%y;I=C.children[this.suggestionIndex];I.active=!0;C.scrollTop=I.offsetTop}};
_.u.onInputPaste=function(I){I.preventDefault();(I=I.clipboardData)&&I.types&&(I=I.getData("text/plain")||"",I=I.replace(/\n/g,""),this.insertText(I));(I=this.getCurrentRange())&&I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&this.handleOverflowText(!0)};
_.u.onFocus=function(){this._setFocused(!0)};
_.u.onBlur=function(){this._setFocused(!1)};
_.u.insertText=function(I){this.insertTextAtRange(this.getInputRange(),I)};
_.u.insertTextAtRange=function(I,C){if(I&&(I.collapsed||I.deleteContents(),C=_.$p.createDocumentFragment(C,!0,!1))){for(var y=_.T((C==null?void 0:C.childNodes)||[]),k=y.next();!k.done;k=y.next()){k=k.value;var F=void 0,z=void 0,c=void 0,r=void 0,w=void 0;(c=(F=window)==null?void 0:(z=F.ShadyCSS)==null?void 0:z.ScopingShim)==null||(w=(r=c).scopeNode)==null||w.call(r,k,this.hostElement.localName)}y=C.lastChild;I.insertNode(C);this.focused||this.input.focus();if(this.focused){I=I.cloneRange();I.selectNodeContents(y);
I.collapse(!1);if(C=window.getSelection())C.removeAllRanges(),C.addRange(I);I.commonAncestorContainer.parentElement.id==="input"&&I.commonAncestorContainer.nodeName!=="SPAN"&&(this.dropdown.opened&&(this.dropdown.opened=!1),this.handleOverflowText(!0))}I=this.calculateLiveChatRichMessageInput();this._setLiveChatRichMessageInput(I);_.k3(this.hostElement,"yt-live-chat-message-input-change",I)}};
_.u.setLiveChatRichMessageInput=function(I){_.f(_.f(this.hostElement).querySelector("#input")).textContent="";if(I&&I.textSegments){for(var C=0;C<I.textSegments.length;C++){var y=I.textSegments[C];y.text?_.f(_.f(this.hostElement).querySelector("#input")).appendChild(_.$p.createDocumentFragment(y.text,!0,!1)):y.emojiId&&(y=_.le(_.$p,y.emojiId))&&_.f(_.f(this.hostElement).querySelector("#input")).appendChild(_.$p.createEmoji(y,!1))}this._setLiveChatRichMessageInput(this.calculateLiveChatRichMessageInput())}else this._setLiveChatRichMessageInput(null)};
_.u.setText=function(I){this.setLiveChatRichMessageInput(I?{textSegments:[{text:I}]}:null)};
_.u.calculateTextBeforeRange=function(I){var C="",y=I.startContainer;if(y&&y instanceof Text){var k;C=((k=y.textContent)==null?void 0:k.substring(0,I.startOffset))||"";y=y.previousSibling}for(;y&&y instanceof Text;)C=y.textContent+C,y=y.previousSibling;return C.replace(SD," ")};
_.u.calculateLiveChatRichMessageInput=function(){for(var I=[],C="",y=_.f(_.f(this.hostElement).querySelector("#input")).childNodes,k=0;k<y.length;k++){var F=y[k];F instanceof Text?C+=F.textContent:F instanceof HTMLImageElement&&(F.dataset.emojiId?(C&&(I.push({text:C.replace(SD," ")}),C=""),I.push({emojiId:F.dataset.emojiId})):C+=F.alt)}C&&I.push({text:C.replace(SD," ")});if(y=_.f(this.hostElement).querySelector("#overflow-text")){C="";y=y.childNodes;for(k=0;k<y.length;k++)F=y[k],F instanceof Text?
C+=F.textContent:F instanceof HTMLImageElement&&(F.dataset.emojiId?(C&&(I.push({text:C.replace(SD," ")}),C=""),I.push({emojiId:F.dataset.emojiId})):C+=F.alt);C&&I.push({text:C.replace(SD," ")})}return{textSegments:I}};
_.u.computeCharacterCount=function(I){if(!I||!I.textSegments)return 0;for(var C=0,y=0;y<I.textSegments.length;y++){var k=I.textSegments[y];if(k.text)C+=k.text.length;else if(k.emojiId){var F=void 0;if((F=this.data)==null?0:F.emojiCharacterCount)C+=this.data.emojiCharacterCount;else{var z=F=void 0,c=void 0;C+=((z=_.le(_.$p,(F=k)==null?void 0:F.emojiId))==null?void 0:(c=z.shortcuts)==null?void 0:c[0].length)||0}}}return C};
_.u.characterCountChanged=function(){_.k3(this.hostElement,"yt-live-chat-text-input-field-renderer-character-count-changed",{characterCount:this.characterCount});this.checkScrollAlignment()};
_.u.focusedChanged=function(){this.hostElement.dispatchEvent(new _.Gd("focused-changed",this.focused))};
_.u.focus=function(){this.setFocus(!1)};
_.u.focusAtEnd=function(){this.setFocus(!0)};
_.u.setFocus=function(I){I=I?this.getRangeAtEnd():this.getInputRange();_.f(this.hostElement).querySelector("#input").focus();var C=window.getSelection();C&&(C.removeAllRanges(),C.addRange(I))};
_.u.insertEmoji=function(I){var C,y=((I==null?0:I.isCustomEmoji)?(C=I.shortcuts)==null?void 0:C[0]:I==null?void 0:I.emojiId)||"";this.insertText(y)};
_.u.computeText=function(I){if(!I||!I.textSegments)return"";for(var C="",y=0;y<I.textSegments.length;y++){var k=I.textSegments[y];if(k.text)C+=k.text;else if(k.emojiId){var F=void 0,z=void 0,c=void 0;C+=((z=_.le(_.$p,(F=k)==null?void 0:F.emojiId))==null?void 0:(c=z.shortcuts)==null?void 0:c[0])||""}}return C};
_.u.checkScrollAlignment=function(){this.input.scrollHeight>48&&this.input.scrollTop!==this.input.scrollHeight&&(this.input.scrollTop=this.input.scrollHeight)};
_.H1.Object.defineProperties(KX.prototype,{inputTabIndex:{configurable:!0,enumerable:!0,get:function(){return this.disabled?-1:0}},
maxCharacterLimit:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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}}});
KX.prototype.focusedChanged=KX.prototype.focusedChanged;KX.prototype.characterCountChanged=KX.prototype.characterCountChanged;KX.prototype.onSuggestion=KX.prototype.onSuggestion;KX.prototype.onMessageSet=KX.prototype.onMessageSet;KX.prototype.dataChanged=KX.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KX.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],KX.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],KX.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],KX.prototype,"disabled",void 0);_.E([_.v("disabled"),_.h("design:type",Number),_.h("design:paramtypes",[])],KX.prototype,"inputTabIndex",null);_.E([_.v("data.maxCharacterLimit"),_.d({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],KX.prototype,"maxCharacterLimit",null);
_.E([_.v("liveChatRichMessageInput"),_.d({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],KX.prototype,"characterCount",null);_.E([_.v("maxCharacterLimit, characterCount"),_.d({readOnly:!0,notify:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],KX.prototype,"remainingCharacterCount",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],KX.prototype,"isChatMessageInput",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],KX.prototype,"inputExpanded",void 0);_.E([_.d({readOnly:!0,notify:!0}),_.h("design:type",Object)],KX.prototype,"liveChatRichMessageInput",void 0);_.E([_.d(),_.h("design:type",Object)],KX.prototype,"messageInput",void 0);_.E([_.d(),_.h("design:type",Boolean)],KX.prototype,"ignoreColorMapping",void 0);_.E([_.v("characterCount"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],KX.prototype,"hasText",null);
_.E([_.d(),_.h("design:type",Object)],KX.prototype,"isValidWithNoInputText",void 0);_.E([_.v("characterCount","maxCharacterLimit","isValidWithNoInputText"),_.d(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],KX.prototype,"isInputValid",null);_.E([_.d({readOnly:!0,value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],KX.prototype,"focused",void 0);_.E([_.d(),_.h("design:type",Array)],KX.prototype,"suggestions",void 0);
_.E([_.d(),_.h("design:type",_.jD)],KX.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",_.fX)],KX.prototype,"participantsManager",void 0);_.E([_.d(),_.h("design:type",Boolean)],KX.prototype,"noUnderline",void 0);_.E([_.d(),_.h("design:type",Object)],KX.prototype,"inputMethodEditorActive",void 0);_.E([_.z$("#dropdown"),_.h("design:type",Object)],KX.prototype,"dropdown",void 0);_.E([_.z$("#input"),_.h("design:type",HTMLElement)],KX.prototype,"input",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KX.prototype,"dataChanged",null);_.E([_.FI("messageInput"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KX.prototype,"onMessageSet",null);_.E([_.km("yt-live-chat-select-suggestion"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KX.prototype,"onSuggestion",null);
_.E([_.FI("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KX.prototype,"characterCountChanged",null);_.E([_.FI("focused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KX.prototype,"focusedChanged",null);KX=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-text-input-field-renderer",noInjection:!0})],KX);
_.UPm=_.Z(KX,"yt-live-chat-text-input-field-renderer",function(){if(qSw===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;xPu===void 0&&(xPu=document.createElement("template"));var k=xPu;y.call(C,k.content.cloneNode(!0),I.content.firstChild);qSw=I}I=qSw;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Am=function(){var I=_.q.apply(this,arguments)||this;I.buttonOverrides={style:"overlay",type:"filled"};I.allowAnimations=!1;I.modern=_.V("web_button_rework_with_live");I.noPadding=!1;return I};
_.R(Am,_.q);_.u=Am.prototype;_.u.shouldSupportInlineActionButtons=function(){return!0};
_.u.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"}}}}};
_.u.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.u.attached=function(){this.allowAnimations=!1};
_.u.dataChanged=function(){if(this.data){var I={"--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)};_.CK(this.hostElement,I);this.allowAnimations=!0}};
_.u.messageChanged=function(){var I,C=(I=this.data)==null?void 0:I.message;I=_.f(_.f(this.hostElement).querySelector("#message"));I.textContent="";C&&I.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(C))};
_.u.computeShowOnlyHeader=function(I,C){return!I||I.pdgLikeButton||I.replyButton||I.buyFlowButton?!1:this.isEmpty(I,C)&&!I.footer};
_.u.computeShowFooterDivider=function(I,C,y){return I?!!I.footer&&!this.isEmpty(I,C)&&!y:!1};
_.u.computeIsUserEditable=function(I){return!!I.inputField};
_.u.computeHasHeartButton=function(I){return(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"||(I==null?void 0:I.heartState)==="TOOLBAR_HEART_STATE_HEARTED"};
_.u.computeNoveltyImage=function(I){if(I.headerOverlayImage&&I.headerOverlayImage.thumbnails.length){var C=I.headerOverlayImage.thumbnails[0],y,k;if((y=I.pdgPurchasedNoveltyLoggingDirectives)==null?0:(k=y.loggingDirectives)==null?0:k.trackingParams){var F,z;xRY((F=I.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(z=F.loggingDirectives)==null?void 0:z.trackingParams)}return C.width||0}return 0};
_.u.computeAuthorPhotoSize=function(I){return(I==null?0:I.isV2Style)&&!this.dashboardMoneyFeed?32:40};
_.u.inputFocus=function(){var I=_.f(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");I&&I.focus()};
_.u.inputInsertEmoji=function(I){var C=_.f(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer");C&&C.insertEmoji(I)};
_.u.inputMessage=function(){var I=_.f(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer"),C;return I&&((C=this.data)==null?0:C.inputField)?(I.completeEmojis(),_.GN(I.liveChatRichMessageInput)):null};
_.u.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&this.set("data.message",null)};
_.u.isEmpty=function(I,C){return I?I.empty||!(I.message||I.inputField||C):!0};
_.u.onLowerBuyButtonClick=function(){var I,C=_.l((I=this.data)==null?void 0:I.buyButton,_.fZ);C&&C.trackingParams&&!IlW(C.command)&&(I=_.nv(C.trackingParams))&&(C=_.Si())&&_.EN(C,I)};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.H1.Object.defineProperties(Am.prototype,{hideLowerBumper:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
Am.prototype.isDeletedChanged=Am.prototype.isDeletedChanged;Am.prototype.messageChanged=Am.prototype.messageChanged;Am.prototype.dataChanged=Am.prototype.dataChanged;_.E([_.g(bs5.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],Am.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Am.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],Am.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],Am.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Am.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Am.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.creatorHeartButton.creatorHeartViewModel.engagementStateKey"],selector:W1X}),_.h("design:type",Object)],Am.prototype,"engagementState",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsUserEditable(data)"}),_.h("design:type",Boolean)],Am.prototype,"isUserEditable",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasHeartButton(engagementState)"}),_.h("design:type",Boolean)],Am.prototype,"hasHeartButton",void 0);_.E([_.d({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Am.prototype,"showOnlyHeader",void 0);
_.E([_.d({computed:"computeShowFooterDivider(data, isDeleted, isUserEditable)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Am.prototype,"showFooterDivider",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],Am.prototype,"allowAnimations",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Am.prototype,"dashboardMoneyFeed",void 0);_.E([_.d({computed:"computeNoveltyImage(data)"}),_.h("design:type",Number)],Am.prototype,"noveltyWidth",void 0);
_.E([_.d({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],Am.prototype,"authorPhotoSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Am.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Am.prototype,"noPadding",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Am.prototype,"dataChanged",null);
_.E([_.FI("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Am.prototype,"messageChanged",null);_.E([_.v("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Am.prototype,"hideLowerBumper",null);_.E([_.FI("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Am.prototype,"isDeletedChanged",null);
Am=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-paid-message-renderer"})],Am);
_.Z(Am,"yt-live-chat-paid-message-renderer",function(){if(Ir0===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Mmw===void 0&&(Mmw=document.createElement("template"));var k=Mmw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Ir0=I}I=Ir0;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var HOS;var tKb;var g3=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;return I};
_.R(g3,_.cO);g3.prototype.created=function(){this.ytOpenPopupBehavior.openPopupConfig=_.Aq("openPopupConfig")};
_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],g3.prototype,"ytOpenPopupBehavior",void 0);g3=_.E([_.eA()],g3);_.vA=[_.M8.YtOpenPopupBehavior,g3.prototype];var Jyq;var WP=[_.rU,chc,_.bv,_.ig,_.H$,_.QzY,_.PD,_.XVY,_.fI,Agm];_.V("web_watch_get_updated_metadata_response_processing")&&WP.push(_.HZq);_.V("web_continuation_response_processing")&&WP.push(_.R8);var hgY=new _.Jj("RESPONSE_RECEIVED_COMMANDS"),GnF=new _.Jj("RESPONSE_RECEIVED_COMMANDS");var jSs="accountDisconnectionEndpoint accountIntegrationEndpoint accountLinkCommand accountUnlinkCommand addToRemoteQueueEndpoint clearRemoteQueueEndpoint insertInRemoteQueueEndpoint offlineVideoEndpoint openPopupAction pingingEndpoint removeFromRemoteQueueEndpoint".split(" "),VuI=["updatedMetadataEndpoint","getBroadcastStatusEndpoint","getLiveAnalyticsEndpoint","getSearchInVideoCommand","ypcLogWalletAnalyticDataEndpoint"],NzH=["GET_UNSEEN_NOTIFICATION_COUNT"];var WA=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.serviceEndpointHandlers=[];return I};
_.R(WA,_.cO);WA.prototype.created=function(){var I=this;this.endpointHandlerActionMap={"yt-service-request":function(C,y,k,F){var z;return QSK(I.hostElement,C,y,k,F,I.serviceEndpointHandlers,(z=I.onEntitiesUpdated)==null?void 0:z.bind(I))}}};
WA.prototype.attached=function(){_.mU(_.qU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
WA.prototype.detached=function(){_.Zi(_.qU.getInstance(),this.endpointHandlerActionMap,this.hostElement)};
WA=_.E([_.eA()],WA);_.OO5=[WA.prototype];var ar8,MKd=function(){return ar8!==void 0?ar8:ar8=document.createElement("template")};
document.head.appendChild(MKd().content);var I5u;var CHq=document.head,sPu=CHq.appendChild,ov5;if(I5u===void 0){var y55=document.createElement("template");_.Y(y55,"\x3c!--css-build:shady--\x3e");y55.content.insertBefore(MKd().content.cloneNode(!0),y55.content.firstChild);I5u=y55}ov5=I5u;sPu.call(CHq,ov5.content);var kiw,F1w=function(){return kiw!==void 0?kiw:kiw=document.createElement("template")};
document.head.appendChild(F1w().content);var uae;var z5u=document.head,TLw=z5u.appendChild,c5m;if(uae===void 0){var e5w=document.createElement("template");_.Y(e5w,"\x3c!--css-build:shady--\x3e");e5w.content.insertBefore(F1w().content.cloneNode(!0),e5w.content.firstChild);uae=e5w}c5m=uae;TLw.call(z5u,c5m.content);var r58;_.jz("itemSectionRenderer","buttonRenderer","ytd-button-renderer");_.jz("sharingRendererButtons","buttonRenderer","ytd-button-renderer");r58=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live");_.d3=function(){var I=_.q.apply(this,arguments)||this;I.isPressed=!1;I.actionMap={"yt-update-button-action":"handleUpdateButtonAction"};return I};
_.R(_.d3,_.q);_.u=_.d3.prototype;_.u.created=function(){this.showTooltips=!0};
_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.onHintIdChanged=function(){var I=this,C,y,k=(C=this.ytButtonBehavior.data)==null?void 0:(y=C.hint)==null?void 0:y.hintRenderer;if(k&&k.hintId){C=_.uW(this.hostElement,"yt-get-opened-popups-action");C=(C&&C.length===1?C[0]:[]).length>0;var F=null;k.hintId!=="sponsor-pre-purchase"||C?k.hintId.startsWith("sponsor-post-purchase")&&!C?F=Urw("membership-manage"):k.hintId.startsWith("sponsorships-premium-freebie-pre-purchase")&&!C&&(F=Urw("membership-freebie-join")):F=Urw("membership-join");F&&_.b$.addLowPriorityJob(function(){for(var z=
_.T(F),c=z.next();!c.done;c=z.next())I.ytComponentBehavior.resolveCommand(c.value)})}};
_.u.onPressedStateChanged=function(){this.ytButtonBehavior.setPressedState(this.isPressed)};
_.u.onYtNavigate=function(I){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);C&&(I.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.u.onYtServiceRequestSent=function(I,C){this.handleServiceRequestActions(C);_.k3(this.hostElement,"yt-service-request-sent-button-renderer")};
_.u.onServiceRequestCompleted=function(I,C){this.handleServiceRequestActions(C);_.k3(this.hostElement,"yt-service-request-completed-button-renderer")};
_.u.updateButton=function(I){var C;if(I=(C=_.l(I,hh0))==null?void 0:C.updatedButton)this.ytButtonBehavior.data=_.l(I,_.fZ)};
_.u.handleUpdateButtonAction=function(I){var C=this.ytButtonBehavior.data;C.targetId&&I.updateButtonAction.targetId&&C.targetId===I.updateButtonAction.targetId&&this.updateButton(I)};
_.u.handleServiceRequestActions=function(I){if(I=I.actions)for(var C=0;C<I.length;C++)this.updateButton(I[C])};
_.H1.Object.defineProperties(_.d3,{template:{configurable:!0,enumerable:!0,get:function(){if(Jyq===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);Jyq=I}I=Jyq;return I}}});
_.d3.prototype.onServiceRequestCompleted=_.d3.prototype.onServiceRequestCompleted;_.d3.prototype.onYtServiceRequestSent=_.d3.prototype.onYtServiceRequestSent;_.d3.prototype.onYtNavigate=_.d3.prototype.onYtNavigate;_.d3.prototype.onPressedStateChanged=_.d3.prototype.onPressedStateChanged;_.d3.prototype.onHintIdChanged=_.d3.prototype.onHintIdChanged;_.E([_.d(),_.h("design:type",Object)],_.d3.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],_.d3.prototype,"isPressed",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],_.d3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.Qbw.YtButtonBehavior),_.h("design:type",Object)],_.d3.prototype,"ytButtonBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],_.d3.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],_.d3.prototype,"ytComponentBehavior",void 0);
_.E([_.g(yn.YtRenderButtonBehavior),_.h("design:type",Object)],_.d3.prototype,"ytRenderButtonBehavior",void 0);_.E([_.FI("data.hint.hintRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.d3.prototype,"onHintIdChanged",null);_.E([_.FI("isPressed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],_.d3.prototype,"onPressedStateChanged",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],_.d3.prototype,"onYtNavigate",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],_.d3.prototype,"onYtServiceRequestSent",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],_.d3.prototype,"onServiceRequestCompleted",null);_.d3=_.E([_.m({is:"ytd-button-renderer",disableElementRegistration:r58})],_.d3);var xp=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.R(xp,_.q);_.u=xp.prototype;_.u.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"}}}}};
_.u.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&(this.dashboardMoneyFeed=!0)};
_.u.dataChanged=function(){if(this.data&&this.data.sticker){var I=_.E5(this.data.sticker.thumbnails,this.stickerWidth);I||_.W8H(I).thenCatch(function(){_.SN(new _.ph("Failed to load Super Sticker with url",I))})}};
_.u.computeAuthorPhotoSize=function(I){return(I==null?0:I.isV2Style)?32:40};
_.u.computeIsV2Style=function(I){return(I==null?0:I.isV2Style)?!0:!1};
_.u.onStickerLoaded=function(I){var C,y,k;(C=_.m0(I))==null||(y=C.parentNode)==null||(k=y.classList)==null||k.add("sticker-loaded")};
_.u.computeNoveltyImageWidth=function(I){var C,y;if(I==null?0:(C=I.headerOverlayImage)==null?0:(y=C.thumbnails)==null?0:y.length){C=I.headerOverlayImage.thumbnails[0];var k,F;if((k=I.pdgPurchasedNoveltyLoggingDirectives)==null?0:(F=k.loggingDirectives)==null?0:F.trackingParams){var z,c;xRY((z=I.pdgPurchasedNoveltyLoggingDirectives)==null?void 0:(c=z.loggingDirectives)==null?void 0:c.trackingParams)}return C.width||0}return 0};
_.u.isDeletedChanged=function(){this.isDeleted&&(this.set("data.detailText",null),this.set("data.superStickerIcon",null),this.set("data.sticker",null))};
_.u.updateStickerStyles=function(){var I=this.data;I&&(I={"--yt-live-chat-paid-sticker-chip-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.moneyChipBackgroundColor),"--yt-live-chat-paid-sticker-chip-text-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.moneyChipTextColor),"--yt-live-chat-paid-sticker-background-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.backgroundColor),"--yt-live-chat-disable-highlight-message-author-name-color":this.ytLiveChatItemBehavior.colorFromDecimal(I.authorNameTextColor)},
_.CK(this.hostElement,I))};
_.u.onBuyButtonClick=function(){var I,C=_.l((I=this.data)==null?void 0:I.buyButton,_.fZ);C&&!IlW(C.command)&&this.ytRendererBehavior.logExplicitClick(C)};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.H1.Object.defineProperties(xp.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 I;return((I=this.data)==null?0:I.buyButton)||this.dashboardMoneyFeed?!0:!1}}});
xp.prototype.updateStickerStyles=xp.prototype.updateStickerStyles;xp.prototype.isDeletedChanged=xp.prototype.isDeletedChanged;xp.prototype.onStickerLoaded=xp.prototype.onStickerLoaded;xp.prototype.dataChanged=xp.prototype.dataChanged;_.E([_.g(bs5.YtPdgLiveChatItemBehavior),_.h("design:type",Object)],xp.prototype,"ytPdgLiveChatItemBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xp.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xp.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],xp.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xp.prototype,"data",void 0);
_.E([_.d({computed:"computeAuthorPhotoSize(data)"}),_.h("design:type",Number)],xp.prototype,"authorPhotoSize",void 0);_.E([_.d(),_.h("design:type",Boolean)],xp.prototype,"isDeleted",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],xp.prototype,"dashboardMoneyFeed",void 0);_.E([_.d({computed:"computeNoveltyImageWidth(data)"}),_.h("design:type",Number)],xp.prototype,"noveltyWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xp.prototype,"modern",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsV2Style(data)"}),_.h("design:type",Boolean)],xp.prototype,"isV2Style",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xp.prototype,"dataChanged",null);_.E([_.km("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],xp.prototype,"onStickerLoaded",null);
_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],xp.prototype,"stickerWidth",null);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],xp.prototype,"stickerHeight",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xp.prototype,"hasHeartButton",null);_.E([_.v("data","dashboardMoneyFeed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xp.prototype,"hideLowerBumper",null);
_.E([_.FI("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xp.prototype,"isDeletedChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xp.prototype,"updateStickerStyles",null);xp=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-paid-sticker-renderer",noInjection:!0})],xp);
_.Z(xp,"yt-live-chat-paid-sticker-renderer",function(){if(tKb===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;HOS===void 0&&(HOS=document.createElement("template"));var k=HOS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);tKb=I}I=tKb;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var i_0;var wbP;var nvu,PHd=function(){return nvu!==void 0?nvu:nvu=document.createElement("template")};
document.head.appendChild(PHd().content);var L10,DRm=function(){return L10!==void 0?L10:L10=document.createElement("template")};
document.head.appendChild(DRm().content);var pbb;var QPP,NL5=function(){return QPP!==void 0?QPP:QPP=document.createElement("template")};
document.head.appendChild(NL5().content);var V$d;var jPw=document.head,l5e=jPw.appendChild,Xbq;if(V$d===void 0){var $Rc=document.createElement("template");_.Y($Rc,"\x3c!--css-build:shady--\x3e");$Rc.content.insertBefore(NL5().content.cloneNode(!0),$Rc.content.firstChild);V$d=$Rc}Xbq=V$d;l5e.call(jPw,Xbq.content);var R5d=document.head,b_w=R5d.appendChild,YKd;if(pbb===void 0){var qF=document.createElement("template");_.Y(qF,"\x3c!--css-build:shady--\x3e");qF.content.insertBefore(DRm().content.cloneNode(!0),qF.content.firstChild);qF.content.insertBefore(PHd().content.cloneNode(!0),qF.content.firstChild);pbb=qF}YKd=pbb;b_w.call(R5d,YKd.content);var mk=function(){var I=_.cO.apply(this,arguments)||this;I.focusedIndex=0;I.verticalOffset=0;I.verticalAlign="top";I.dynamicAlign=!0;return I};
_.R(mk,_.cO);mk.prototype.emojiUrl=function(I){I=_.le(this.emojiManager,I);if(!I)return"";var C;I=(C=I.image)==null?void 0:C.thumbnails;return _.E5(I,24)||""};
var Gib=function(I){var C;I.emojiVariants&&(C=I.data)!=null&&C.target&&_.hn(I,function(){I.set("verticalOffset",-1*I.hostElement.clientHeight);var y=_.f(I.hostElement).querySelector("img");y&&y.focus()})};
_.u=mk.prototype;_.u.onKeyboardEnter=function(){};
_.u.onVerticalOffsetOrPositionTargetChanged=function(){this.ironOverlayBehavior.position()};
_.u.onEmojiVariantsChanged=function(){this.emojiVariants&&(this.ironOverlayBehavior.noCancelOnOutsideClick=!0,this.ironOverlayBehavior.open())};
_.u.onKeyDown=function(I){switch(I.keyCode){case 13:this.onKeyboardEnter();I.preventDefault();break;case 40:this.changeFocus(1);I.preventDefault();break;case 38:this.changeFocus(-1);I.preventDefault();break;case 27:this.ironOverlayBehavior.restoreFocusOnClose=!0,this.ironOverlayBehavior.close()}};
_.u.onYtEmojiSelect=function(I){var C=this,y,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return k=(y=C.data)==null?void 0:y.emoji,c=((F=k)==null?void 0:F.stickyPrefId)||((z=k)==null?void 0:z.emojiId),w=(r=I.detail)==null?void 0:r.emojiId,c&&w&&c!==w?_.n(D,(L=C.emojiManager)==null?void 0:ghm(L,k,w),2):D.return();_.Fe(C.hostElement,"yt-live-chat-emoji-sticky-preference-changed",[k,w]);_.oI(D)})};
_.u.changeFocus=function(I){this.emojiVariants&&this.emojiVariants.length&&(this.focusedIndex=(this.focusedIndex+I+this.emojiVariants.length)%this.emojiVariants.length,this.focusedIndex<this.emojiVariants.length&&(I=_.f(this.hostElement).querySelector("#variants"))&&I.children[this.focusedIndex].focus())};
_.H1.Object.defineProperties(mk.prototype,{positionTarget:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.target)||this.hostElement.parentElement}},
isPositioned:{configurable:!0,enumerable:!0,get:function(){return this.data&&!this.data.target||!!this.verticalOffset}}});
mk.prototype.onYtEmojiSelect=mk.prototype.onYtEmojiSelect;mk.prototype.onKeyDown=mk.prototype.onKeyDown;mk.prototype.onEmojiVariantsChanged=mk.prototype.onEmojiVariantsChanged;mk.prototype.onVerticalOffsetOrPositionTargetChanged=mk.prototype.onVerticalOffsetOrPositionTargetChanged;_.E([_.g(_.Zs),_.h("design:type",Object)],mk.prototype,"ironOverlayBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mk.prototype,"data",void 0);_.E([_.d(),_.h("design:type",_.jD)],mk.prototype,"emojiManager",void 0);
_.E([_.d(),_.h("design:type",Object)],mk.prototype,"emojiVariants",void 0);_.E([_.d(),_.h("design:type",Object)],mk.prototype,"focusedIndex",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],mk.prototype,"positionTarget",null);_.E([_.d({reflectToAttribute:!0}),_.v("verticalOffset","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],mk.prototype,"isPositioned",null);_.E([_.d(),_.h("design:type",Object)],mk.prototype,"verticalOffset",void 0);
_.E([_.d(),_.h("design:type",Object)],mk.prototype,"verticalAlign",void 0);_.E([_.d(),_.h("design:type",Object)],mk.prototype,"dynamicAlign",void 0);_.E([_.FI("verticalOffset","positionTarget"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mk.prototype,"onVerticalOffsetOrPositionTargetChanged",null);_.E([_.FI("emojiVariants"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mk.prototype,"onEmojiVariantsChanged",null);
_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],mk.prototype,"onKeyDown",null);_.E([_.km("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],mk.prototype,"onYtEmojiSelect",null);mk=_.E([_.eA()],mk);var f58=[mk.prototype];var SKw;var K1e;var A58=/medium-light|medium-dark|light|medium|dark/,gvw=/[\w-]*?(?=\/\w+\/\w+\.(?:svg|png)$)/,vvc=new Map([["dark","\ud83c\udfff"],["medium-dark","\ud83c\udffe"],["medium","\ud83c\udffd"],["medium-light","\ud83c\udffc"],["light","\ud83c\udffb"]]),Zb=function(){var I=_.q.apply(this,arguments)||this;I.userSelection={left:null,right:null};I.scrollAction="lock";I.isEmojiDraftInProgress=!1;return I};
_.R(Zb,_.q);_.u=Zb.prototype;_.u.onClick=function(I){I=_.m0(I);I instanceof HTMLImageElement&&this.selectOrUpdateEmoji(I)};
_.u.selectOrUpdateEmoji=function(I){var C=I.getAttribute("selection");C&&(C==="default"?_.k3(this.hostElement,"yt-emoji-select",_.le(this.emojiManager,I.id)):C==="left"?this.userSelection=Object.assign({},this.userSelection,{left:I.src}):C==="right"?this.userSelection=Object.assign({},this.userSelection,{right:I.src}):C==="user"&&this.userSelection.left&&this.userSelection.right&&_.k3(this.hostElement,"yt-emoji-select",_.le(this.emojiManager,I.id)))};
_.u.openSelector=function(){this.ironOverlayBehavior.restoreFocusOnClose=!0;this.ironOverlayBehavior.open()};
_.u.onMultiSelectorThumbnailRowChanged=function(){var I,C,y;((I=this.data)==null?0:(C=I.emoji)==null?0:(y=C.multiSelectorThumbnailRow)==null?0:y.length)&&this.openSelector()};
_.u.getThumbnailFromEmojiRow=function(I){var C,y;return(I==null?void 0:(C=I.thumbnails)==null?void 0:(y=C[0])==null?void 0:y.url)||""};
_.u.getEmojiAltTextForPartialSelector=function(I){var C;return((C=this.getThumbnailFromEmojiRow(I).match(gvw))==null?void 0:C[0])||""};
_.u.getEmojiAltTextForDraftEmoji=function(){return this.composedEmojiSelection?this.composedEmojiSelection.emojiId||"":""};
_.u.getDraftEmojiAriaRole=function(){return this.composedEmojiSelection?"option":""};
_.u.getRowSelection=function(I){return["left","right"][I]};
_.u.getIdFromComposedEmoji=function(I){return(I==null?void 0:I.emojiId)||""};
_.u.getEmojiFromPartialSelections=function(I,C){if(!I&&!C)return null;var y,k,F=(y=this.data)==null?void 0:(k=y.emoji)==null?void 0:k.variantIds;if(!F||!F.length)return null;var z;I=(z=I.match(A58))==null?void 0:z[0];var c;C=(c=C.match(A58))==null?void 0:c[0];if(!I||!C)return null;var r=vvc.get(I);c=vvc.get(C);if(r===c){c=Array.from(vvc.values()).filter(function(L){return L!==r}).join("|");
var w=new RegExp("^((?!("+c+")).)*"+r+"$")}else w=new RegExp(r+".*"+c);return(F=F.find(function(L){return w.test(L)}))&&_.le(this.emojiManager,F)||null};
_.u.onUserSelectionSrcLoad=function(){if(!this.isEmojiDraftInProgress&&this.data){var I,C=this.ytEmojiSelectorBehavior.emojiUrl(((I=this.data.emoji)==null?void 0:I.emojiId)||"");_.f(this.hostElement).querySelector('[selection="user"]').src.includes(C)||(this.isEmojiDraftInProgress=!0)}};
_.u.onDomChange=function(){Gib(this.ytEmojiSelectorBehavior)};
_.u.getFocusableElements=function(){return _.f(this.hostElement).querySelectorAll("img").filter(function(I){return I.getAttribute("role")==="option"})};
_.u.changeFocus=function(I){var C=this.getFocusableElements();C!=null&&C.length&&(this.ytEmojiSelectorBehavior.focusedIndex=(this.ytEmojiSelectorBehavior.focusedIndex+I+C.length)%C.length,this.ytEmojiSelectorBehavior.focusedIndex<C.length&&(I=C[this.ytEmojiSelectorBehavior.focusedIndex])&&I.focus())};
_.u.onKeyboardEnter=function(){var I=this.getFocusableElements();I!=null&&I.length&&(I=I[this.ytEmojiSelectorBehavior.focusedIndex])&&I instanceof HTMLImageElement&&(this.selectOrUpdateEmoji(I),this.ytEmojiSelectorBehavior.changeFocus(0))};
_.H1.Object.defineProperties(Zb.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y,k;return this.emojiManager&&((C=this.data)==null?0:(y=C.emoji)==null?0:(k=y.variantIds)==null?0:k.length)?this.data.emoji.variantIds.map(function(F){return!!F&&_.le(I.emojiManager,F)}).filter(function(F){return!!F}):[]}},
composedEmojiSelection:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return null;var I,C=(I=this.userSelection)==null?void 0:I.left,y;I=(y=this.userSelection)==null?void 0:y.right;return C&&I?this.getEmojiFromPartialSelections(C,I):null}},
draftEmojiUrl:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.composedEmojiSelection)==null?0:I.emojiId)return this.ytEmojiSelectorBehavior.emojiUrl(this.composedEmojiSelection.emojiId)||"";if(!this.data)return"";var C;I=(C=this.userSelection)==null?void 0:C.left;var y;C=(y=this.userSelection)==null?void 0:y.right;if(!I&&!C){var k;return this.ytEmojiSelectorBehavior.emojiUrl(((k=this.data.emoji)==null?void 0:k.emojiId)||"")}return I&&!C?I:!I&&C?C:""}}});
Zb.prototype.onMultiSelectorThumbnailRowChanged=Zb.prototype.onMultiSelectorThumbnailRowChanged;Zb.prototype.onClick=Zb.prototype.onClick;_.E([_.g(_.Zs),_.h("design:type",Object)],Zb.prototype,"ironOverlayBehavior",void 0);_.E([_.g(f58),_.h("design:type",Object)],Zb.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Zb.prototype,"data",void 0);_.E([_.d(),_.h("design:type",_.jD)],Zb.prototype,"emojiManager",void 0);
_.E([_.d(),_.h("design:type",Object)],Zb.prototype,"userSelection",void 0);_.E([_.d(),_.h("design:type",Object)],Zb.prototype,"scrollAction",void 0);_.E([_.d(),_.h("design:type",Object)],Zb.prototype,"isEmojiDraftInProgress",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zb.prototype,"emojiVariants",null);_.E([_.v("data","userSelection"),_.h("design:type",Object),_.h("design:paramtypes",[])],Zb.prototype,"composedEmojiSelection",null);
_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],Zb.prototype,"onClick",null);_.E([_.FI("data.emoji.multiSelectorThumbnailRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zb.prototype,"onMultiSelectorThumbnailRowChanged",null);_.E([_.v("data","userSelection","composedEmojiSelection"),_.h("design:type",String),_.h("design:paramtypes",[])],Zb.prototype,"draftEmojiUrl",null);
Zb=_.E([_.lT({is:"yt-emoji-multi-person-selector",disableElementRegistration:!0})],Zb);
_.Z(Zb,"yt-emoji-multi-person-selector",function(){if(K1e===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;SKw===void 0&&(SKw=document.createElement("template"));var k=SKw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);K1e=I}I=K1e;return I},{mode:2});var W1c;var dRd;var BA=function(){var I=_.q.apply(this,arguments)||this;I.tooltip_=null;return I};
_.R(BA,_.q);_.u=BA.prototype;_.u.dataChanged_=function(){var I;if((I=this.data)==null?0:I.tooltip)this.tooltip_||(this.tooltip_=document.createElement("tp-yt-paper-tooltip"),_.f(this.hostElement).querySelector("#button").appendChild(this.tooltip_)),(0,_.IH)(this.tooltip_).textContent=this.data.tooltip};
_.u.computeTargetId=function(){var I;return((I=this.data)==null?void 0:I.targetId)||""};
_.u.computeId_=function(I){return I};
_.u.computeIcon_=function(I){return _.y5(I)};
_.u.onTap_=function(){this.active=!this.active;_.k3(this.hostElement,"yt-emoji-picker-select-category",{categoryId:this.hostElement.id})};
_.u.activeChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("active-changed",this.active))};
_.H1.Object.defineProperties(BA.prototype,{iconFilled:{configurable:!0,enumerable:!0,get:function(){var I,C;if((I=this.data)==null?0:(C=I.icon)==null?0:C.iconType)return this.data.icon.iconType==="SUPER_STICKER";var y,k;return((y=this.data)==null?void 0:(k=y.icon)==null?void 0:k.iconType)==="VIDEO_YOUTUBE"?!0:!1}}});
BA.prototype.activeChangedForBinding=BA.prototype.activeChangedForBinding;BA.prototype.dataChanged_=BA.prototype.dataChanged_;_.E([_.g(_.Xk.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],BA.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BA.prototype,"data",void 0);_.E([_.d({computed:"computeId_(data.categoryId)",reflectToAttribute:!0}),_.h("design:type",String)],BA.prototype,"id",void 0);
_.E([_.d({computed:"computeTargetId(data.targetId)"}),_.h("design:type",String)],BA.prototype,"targetId",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],BA.prototype,"active",void 0);_.E([_.d({readOnly:!0,computed:"computeIcon_(data.icon.iconType)"}),_.h("design:type",String)],BA.prototype,"icon",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BA.prototype,"dataChanged_",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],BA.prototype,"iconFilled",null);_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BA.prototype,"activeChangedForBinding",null);BA=_.E([_.lT({is:"yt-emoji-picker-category-button-renderer",disableElementRegistration:!0})],BA);
_.Z(BA,"yt-emoji-picker-category-button-renderer",function(){if(dRd===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;W1c===void 0&&(W1c=document.createElement("template"));var k=W1c;y.call(C,k.content.cloneNode(!0),I.content.firstChild);dRd=I}I=dRd;return I},{mode:2});var xRP;var qKw;var EP=function(){var I=_.q.apply(this,arguments)||this;I.ariaLabel=null;I.ariaActivedescendant=null;I.actionMap={"yt-live-chat-emoji-skin-tone-changed":"emojiSkinToneChanged_","yt-close-emoji-variant-selector":"onCloseEmojiVariantSelector","yt-live-chat-emoji-sticky-preference-changed":"onEmojiStickyPreferenceChanged"};I.JSC$11902_ignoreNextFocus_=!1;I.longPressTimeoutId=-1;return I};
_.R(EP,_.q);_.u=EP.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","listbox");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.detached=function(){clearTimeout(this.longPressTimeoutId)};
_.u.emojiChanged_=function(){this.changeFocus_(0,!1);for(var I=_.e2(),C=0;C<this.emoji.length;C++){var y={veType:88013,elementIndex:C},k=this.emoji[C];k.isCustomEmoji&&(k=document.querySelector(("#"+k.emojiId).replace("/","\\/")))&&(y=_.c9(I,y))&&(k.visualElement=y)}};
_.u.emojiManagerChanged_=function(){this.skinTone=this.emojiManager.skinTone};
_.u.disableIncrementalLoadingChanged_=function(){this.disableIncrementalLoading&&(this.domRepeatTargetFramerate=this.domRepeatInitialCount=0)};
_.u.emojiSkinToneChanged_=function(I){this.skinTone=I};
_.u.dataChanged=function(){this.data&&this.data.emojiData&&frw(this.emojiManager,this.data.emojiData)};
_.u.emojiUrl=function(I){I=this.getEmoji(I);if(!I)return"";var C;I=(C=I.image)==null?void 0:C.thumbnails;return _.E5(I,24)||""};
_.u.emojiAlt=function(I){var C=this.get("image.accessibility.accessibilityData.label",I);return C?C:I.isCustomEmoji?I.shortcuts[0]:I.emojiId};
_.u.emojiAriaLabel=function(I){return I.shortcuts?I.shortcuts[0]:""};
_.u.emojiAriaSelected=function(I,C,y){return I&&y==C?"true":"false"};
_.u.getEmoji=function(I){if(this.emojiManager)return this.shouldUseStickyPreferences?K9S(this.emojiManager,I):XN(this.emojiManager,I)};
_.u.computeId_=function(I){return I.categoryId||""};
_.u.computeEmoji=function(I){var C=this;return this.emojiManager?I.emojiIds?I.emojiIds.map(function(y){return y?_.le(C.emojiManager,y):null}).filter(dIK):I.emojiData?I.emojiData.map(function(y){var k=!!y.emojiId&&_.le(C.emojiManager,y.emojiId);
return k?Object.assign({},k,y):null}).filter(dIK):[]:[]};
_.u.emojiLoading=function(){return this.data&&this.data.imageLoadingLazy?"lazy":"eager"};
_.u.computeAriaLabel_=function(I){return _.hS(I)};
_.u.computeAriaActivedescendant_=function(I,C){return I&&I[C]?I[C].emojiId||"":""};
_.u.handleLongPressEmojiWithVariants=function(I,C){this.changeFocusToEmoji(I.emojiId,!1);this.openVariantSelector(I,C)};
_.u.onMouseDown=function(I){var C=this;this.hostElement!==document.activeElement&&(this.JSC$11902_ignoreNextFocus_=!0);if(I.button===0){var y=_.m0(I);if(y instanceof HTMLImageElement){var k=_.f(this.hostElement).querySelector("#repeat").itemForElement(y);this.emojiContainsVariants(k)&&(this.longPressTimeoutId=setTimeout(function(){C.handleLongPressEmojiWithVariants(k,y)},500))}}};
_.u.onMouseUp=function(){clearTimeout(this.longPressTimeoutId)};
_.u.onFocus=function(){this.JSC$11902_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11902_ignoreNextFocus_=!1};
_.u.onBlur_=function(){this.showFocus=!1};
_.u.emojiContainsVariants=function(I){return!!(I&&I.variantIds&&I.variantIds.length)};
_.u.onClick=function(I){clearTimeout(this.longPressTimeoutId);I=_.m0(I);if(I instanceof HTMLImageElement){var C=I.id;this.changeFocusToEmoji(C,!1);var y=this.getEmoji(C),k;if(k=this.shouldUseStickyPreferences&&this.emojiContainsVariants(y)){var F;k=!((F=this.emojiManager.emojiMap[C])!=null&&F.stickyPrefId)}k?(F=_.f(this.hostElement).querySelector("#repeat").itemForElement(I),this.openVariantSelector(F,I)):_.k3(this.hostElement,"yt-emoji-select",y)}};
_.u.isActiveEmojiWithVariants=function(I,C){return I&&C?C.stickyPrefId?I===C.stickyPrefId:I===C.emojiId:!1};
_.u.onCloseEmojiVariantSelector=function(I){this.activeEmojiWithVariantsId===I&&(this.activeEmojiWithVariantsId="")};
_.u.onMouseOver_=function(I){I=_.m0(I);I instanceof HTMLImageElement&&_.k3(this.hostElement,"yt-emoji-hover",_.le(this.emojiManager,I.id))};
_.u.changeFocus_=function(I,C){this.focusedIndex=(this.focusedIndex+I+this.emoji.length)%this.emoji.length;this.focusedIndex<this.emoji.length&&(I=this.emoji[this.focusedIndex],C&&(this.showFocus=!0,_.f(this.hostElement).querySelector("#emoji").children[this.focusedIndex].scrollIntoView(!1),_.k3(this.hostElement,"yt-emoji-hover",I)))};
_.u.changeFocusToEmoji=function(I,C){if(I){var y=this.emoji.findIndex(function(k){return k.emojiId===I});
y!==-1&&this.changeFocus_(y-this.focusedIndex,C)}};
_.u.onKeyDown_=function(I){switch(I.keyCode){case 13:if(this.focusedIndex<this.emoji.length){var C=this.emoji[this.focusedIndex];if(C&&C.emojiId){if(this.emojiContainsVariants(C)){var y=_.f(this.hostElement).querySelectorAll("img")[this.focusedIndex];this.openVariantSelector(C,y)}else _.k3(this.hostElement,"yt-emoji-select",XN(this.emojiManager,C.emojiId)),this.hostElement.focus();I.preventDefault()}}break;case 40:this.changeFocus_(1,!0);I.preventDefault();break;case 38:this.changeFocus_(-1,!0),I.preventDefault()}};
_.u.onEmojiStickyPreferenceChanged=function(I,C){this.shouldUseStickyPreferences&&this.activeEmojiWithVariantsId&&I.emojiId&&I.variantIds&&I.variantIds.includes(C)&&this.activeEmojiWithVariantsId!==C&&this.setStickyEmojiPreference(I.emojiId,C)};
_.u.openVariantSelector=function(I,C){this.activeEmojiWithVariantsId=I.stickyPrefId||I.emojiId||"";_.k3(this.hostElement,"yt-show-emoji-variant-selector",{emojiData:I,target:C})};
_.u.setStickyEmojiPreference=function(I,C){if(this.data){var y=this.emoji.findIndex(function(F){return F.emojiId===I});
if(y!==-1){var k=this.emoji[y];k.stickyPrefId=C;this.set("emoji."+y,Object.assign({},k));this.activeEmojiWithVariantsId=C}}};
EP.prototype.onKeyDown_=EP.prototype.onKeyDown_;EP.prototype.onMouseOver_=EP.prototype.onMouseOver_;EP.prototype.onClick=EP.prototype.onClick;EP.prototype.onBlur_=EP.prototype.onBlur_;EP.prototype.onFocus=EP.prototype.onFocus;EP.prototype.onMouseUp=EP.prototype.onMouseUp;EP.prototype.onMouseDown=EP.prototype.onMouseDown;EP.prototype.dataChanged=EP.prototype.dataChanged;EP.prototype.disableIncrementalLoadingChanged_=EP.prototype.disableIncrementalLoadingChanged_;EP.prototype.emojiManagerChanged_=EP.prototype.emojiManagerChanged_;
EP.prototype.emojiChanged_=EP.prototype.emojiChanged_;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],EP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],EP.prototype,"data",void 0);_.E([_.d({computed:"computeId_(data)"}),_.h("design:type",String)],EP.prototype,"id",void 0);_.E([_.d({computed:"computeEmoji(data)"}),_.h("design:type",Array)],EP.prototype,"emoji",void 0);_.E([_.d(),_.h("design:type",Number)],EP.prototype,"skinTone",void 0);
_.E([_.d(),_.h("design:type",_.jD)],EP.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Boolean)],EP.prototype,"disableIncrementalLoading",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],EP.prototype,"focusedIndex",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],EP.prototype,"showFocus",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeAriaLabel_(data.title)"}),_.h("design:type",Object)],EP.prototype,"ariaLabel",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(emoji, focusedIndex)"}),_.h("design:type",Object)],EP.prototype,"ariaActivedescendant",void 0);_.E([_.d({value:60}),_.h("design:type",Number)],EP.prototype,"domRepeatTargetFramerate",void 0);_.E([_.d({value:1}),_.h("design:type",Number)],EP.prototype,"domRepeatInitialCount",void 0);_.E([_.d({value:""}),_.h("design:type",String)],EP.prototype,"activeEmojiWithVariantsId",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],EP.prototype,"shouldUseStickyPreferences",void 0);_.E([_.FI("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"emojiChanged_",null);_.E([_.FI("emojiManager"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"emojiManagerChanged_",null);
_.E([_.FI("disableIncrementalLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"disableIncrementalLoadingChanged_",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"dataChanged",null);_.E([_.km("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],EP.prototype,"onMouseDown",null);
_.E([_.km("mouseup"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"onMouseUp",null);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"onFocus",null);_.E([_.km("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EP.prototype,"onBlur_",null);
_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],EP.prototype,"onClick",null);_.E([_.km("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],EP.prototype,"onMouseOver_",null);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],EP.prototype,"onKeyDown_",null);
EP=_.E([_.lT({is:"yt-emoji-picker-category-renderer",disableElementRegistration:!0})],EP);
_.Z(EP,"yt-emoji-picker-category-renderer",function(){if(qKw===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;xRP===void 0&&(xRP=document.createElement("template"));var k=xRP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);qKw=I}I=qKw;return I},{mode:2});var mRS;var Z_w;var BLm;var Evw;var hm=function(){var I=_.q.apply(this,arguments)||this;I.ariaLabel=null;I.ariaActivedescendant=null;I.getFormattedStringRawText=_.hS;I.JSC$11908_ignoreNextFocus_=!1;return I};
_.R(hm,_.q);_.u=hm.prototype;_.u.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")};
_.u.emojiUrl=function(I){var C,y;I=(C=XN(this.emojiManager,I,!0))==null?void 0:(y=C.image)==null?void 0:y.thumbnails;return _.E5(I,24)||""};
_.u.emojiAlt=function(I){var C=this.get("image.accessibility.accessibilityData.label",I);return C?C:I.isCustomEmoji?I.shortcuts[0]:I.emojiId};
_.u.emojiId=function(I){return"emoji"+I};
_.u.computeId_=function(I){return I.categoryId||""};
_.u.computeAriaActivedescendant_=function(I){return this.emoji&&I<this.emoji.length?this.emojiId(I):""};
_.u.emojiChanged_=function(){this.changeFocus_(0,!1);for(var I=_.e2(),C=0;C<this.emoji.length;C++){var y={veType:88013,elementIndex:C},k=this.emoji[C];k.isCustomEmoji&&(k=document.querySelector(("#"+k.emojiId).replace("/","\\/")))&&(y=_.c9(I,y))&&(k.visualElement=y)}};
_.u.computeEmoji_=function(I){var C=this;return this.emojiManager?I.emojiIds.map(function(y){return _.le(C.emojiManager,y,!0)}).filter(xIs):[]};
_.u.titleOffsetChanged_=function(){var I=this.hostElement.getBoundingClientRect(),C=_.f(this.hostElement).querySelector("#title").getBoundingClientRect();I=Math.max(0,Math.min(this.titleOffset,I.height-C.height));_.f(this.hostElement).querySelector("#title").style.top=I+"px"};
_.u.onEmojiMouseOver_=function(I){_.k3(this.hostElement,"yt-emoji-hover",I.model.item)};
_.u.onEmojiTap_=function(I){this.data.command&&(I=H_I(_.N().resolve(_.aU(dT)),this.data.command,I),_.k3(this.hostElement,"yt-navigate",I))};
_.u.emojiAriaLabel=function(I){return I.shortcuts[0]};
_.u.emojiAriaSelected=function(I,C,y){return I&&y==C?"true":"false"};
_.u.changeFocus_=function(I,C){var y=this.emoji.length;this.focusedIndex=(this.focusedIndex+I+y)%y;I=this.emoji[this.focusedIndex];if(C){var k;(k=_.f(this.hostElement).querySelector("#"+this.emojiId(this.focusedIndex)))==null||k.scrollIntoView(!1);_.k3(this.hostElement,"yt-emoji-hover",I)}};
_.u.onMouseDown_=function(){this.JSC$11908_ignoreNextFocus_=!0};
_.u.onFocus_=function(){this.JSC$11908_ignoreNextFocus_||(this.showFocus=!0,this.changeFocus_(0,!0));this.JSC$11908_ignoreNextFocus_=!1};
_.u.onBlur_=function(){this.showFocus=!1};
_.u.onKeyDown_=function(I){switch(I.keyCode){case 13:this.onEmojiTap_(I);this.hostElement.focus();break;case 40:this.changeFocus_(1,!0);I.preventDefault();break;case 38:this.changeFocus_(-1,!0),I.preventDefault()}};
hm.prototype.onKeyDown_=hm.prototype.onKeyDown_;hm.prototype.onBlur_=hm.prototype.onBlur_;hm.prototype.onFocus_=hm.prototype.onFocus_;hm.prototype.onMouseDown_=hm.prototype.onMouseDown_;hm.prototype.onEmojiTap_=hm.prototype.onEmojiTap_;hm.prototype.titleOffsetChanged_=hm.prototype.titleOffsetChanged_;hm.prototype.emojiChanged_=hm.prototype.emojiChanged_;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],hm.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],hm.prototype,"data",void 0);_.E([_.d({computed:"computeId_(data)"}),_.h("design:type",String)],hm.prototype,"id",void 0);_.E([_.d({computed:"computeEmoji_(data)"}),_.h("design:type",Array)],hm.prototype,"emoji",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],hm.prototype,"titleOffset",void 0);_.E([_.d({reflectToAttribute:!0,computed:"getFormattedStringRawText(data.upsell)"}),_.h("design:type",Object)],hm.prototype,"ariaLabel",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeAriaActivedescendant_(focusedIndex)"}),_.h("design:type",Object)],hm.prototype,"ariaActivedescendant",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],hm.prototype,"showFocus",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],hm.prototype,"focusedIndex",void 0);_.E([_.d(),_.h("design:type",_.jD)],hm.prototype,"emojiManager",void 0);
_.E([_.FI("emoji"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hm.prototype,"emojiChanged_",null);_.E([_.FI("titleOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hm.prototype,"titleOffsetChanged_",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hm.prototype,"onEmojiTap_",null);
_.E([_.km("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hm.prototype,"onMouseDown_",null);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hm.prototype,"onFocus_",null);_.E([_.km("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hm.prototype,"onBlur_",null);
_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hm.prototype,"onKeyDown_",null);hm=_.E([_.lT({is:"yt-emoji-picker-upsell-category-renderer",disableElementRegistration:!0})],hm);
_.Z(hm,"yt-emoji-picker-upsell-category-renderer",function(){if(Evw===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;BLm===void 0&&(BLm=document.createElement("template"));var k=BLm;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Evw=I}I=Evw;return I},{mode:2});var h5d;var URm;var UP=function(){var I=_.q.apply(this,arguments)||this;I.scrollAction="lock";I.verticalAlign="top";return I};
_.R(UP,_.q);_.u=UP.prototype;_.u.onClick=function(I){I=_.m0(I);I instanceof HTMLImageElement&&_.k3(this.hostElement,"yt-emoji-select",_.le(this.emojiManager,I.id))};
_.u.openSelector=function(){this.ironOverlayBehavior.open()};
_.u.onDomChange=function(){Gib(this.ytEmojiSelectorBehavior)};
_.u.computeIsFamilySelector=function(I){var C;return(I==null?void 0:(C=I.emoji)==null?void 0:C.emojiId)==="\ud83d\udc6a"};
_.u.onKeyboardEnter=function(){if(this.emojiVariants&&this.ytEmojiSelectorBehavior.focusedIndex<this.emojiVariants.length){var I=this.emojiVariants[this.ytEmojiSelectorBehavior.focusedIndex];I&&I.emojiId&&(_.k3(this.hostElement,"yt-emoji-select",_.le(this.emojiManager,I.emojiId)),this.ytEmojiSelectorBehavior.changeFocus(0))}};
_.H1.Object.defineProperties(UP.prototype,{emojiVariants:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y,k;return this.emojiManager&&((C=this.data)==null?0:(y=C.emoji)==null?0:(k=y.variantIds)==null?0:k.length)?this.data.emoji.variantIds.map(function(F){return!!F&&_.le(I.emojiManager,F)}).filter(function(F){return!!F}):[]}}});
UP.prototype.onClick=UP.prototype.onClick;_.E([_.g(_.Zs),_.h("design:type",Object)],UP.prototype,"ironOverlayBehavior",void 0);_.E([_.g(f58),_.h("design:type",Object)],UP.prototype,"ytEmojiSelectorBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UP.prototype,"data",void 0);_.E([_.d(),_.h("design:type",_.jD)],UP.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Object)],UP.prototype,"scrollAction",void 0);_.E([_.d(),_.h("design:type",Object)],UP.prototype,"verticalAlign",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsFamilySelector(data)"}),_.h("design:type",Boolean)],UP.prototype,"isFamilySelector",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],UP.prototype,"emojiVariants",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],UP.prototype,"onClick",null);UP=_.E([_.lT({is:"yt-emoji-variant-selector",disableElementRegistration:!0})],UP);
_.Z(UP,"yt-emoji-variant-selector",function(){if(URm===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;h5d===void 0&&(h5d=document.createElement("template"));var k=h5d;y.call(C,k.content.cloneNode(!0),I.content.firstChild);URm=I}I=URm;return I},{mode:2});var H_e=/:/g,t$0=["UCkszU2WH9gy1mb0dV-11UJg","UC4R8DWoMoI7CAwX8_LjQHig"],HA=function(){var I=_.q.apply(this,arguments)||this;I.emojiVariantSelector=null;I.emojiMultiPersonSelector=null;I.identity=_.gH;I.lastAnimationTime_=0;I.animationStart_=null;I.animationEnd_=null;return I};
_.R(HA,_.q);_.u=HA.prototype;
_.u.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}}};
_.u.created=function(){this.boundOnIronOverlayClosed=this.onIronOverlayClosed.bind(this);this.emojiManager||(this.emojiManager=_.$p)};
_.u.attached=function(){_.F8&&(this.hostElement.style.height=this.hostElement.clientHeight+150+"px");this.shouldUseStickyPreferences&&SSq(this.emojiManager)};
_.u.dataChanged=function(){var I;if((I=this.data)==null?0:I.categories){I=this.emojiManager;var C=this.getCustomEmojiIds();I.pickerCustomEmojiIds=[].concat(_.Py($PS),_.Py(C))}};
_.u.getCustomEmojiIds=function(){var I,C=(I=this.data.categories)==null?void 0:I.find(function(z){var c;return((c=z.emojiPickerCategoryRenderer)==null?void 0:c.categoryId)&&t$0.includes(z.emojiPickerCategoryRenderer.categoryId)}),y;
I=(y=this.data.categories)==null?void 0:y.find(function(z){return z.emojiPickerUpsellCategoryRenderer});
var k,F;return[C==null?void 0:(k=C.emojiPickerCategoryRenderer)==null?void 0:k.emojiIds,I==null?void 0:(F=I.emojiPickerUpsellCategoryRenderer)==null?void 0:F.emojiIds].flat().filter(function(z){return!!z})};
_.u.updateEmojiCategories=function(){this.updateCategoriesAndPlaceholderInternal(this.data,!0)};
_.u.updateCategoriesAndPlaceholder_=function(){this.updateCategoriesAndPlaceholderInternal(this.data,this.selected)};
_.u.updateCategoriesAndPlaceholderInternal=function(I,C){var y=this;I&&C&&(this.categories=I.categories||[],this.categoryButtons=I.categoryButtons||[],this.resetPlaceholder(),this.search="",_.SA(function(){y.updateButtons_()}))};
_.u.computeId_=function(I){return I.id||""};
_.u.computeShouldUseStickyPreferences=function(){return this.data&&this.data.categories?this.data.categories.some(function(I){return I.emojiPickerCategoryRenderer&&I.emojiPickerCategoryRenderer.emojiData}):!1};
_.u.onScroll_=function(){this.animationEnd_==null&&window.requestAnimationFrame(this.updateButtons_.bind(this))};
_.u.onShowEmojiVariantSelector=function(I){var C=I.detail.emojiData;C.variantIds&&C.variantIds.length&&(C.multiSelectorThumbnailRow&&C.multiSelectorThumbnailRow.length?this.set("emojiMultiPersonSelector",{ytEmojiMultiPersonSelector:{emoji:C,target:I.detail.target}}):this.set("emojiVariantSelector",{ytEmojiVariantSelector:{emoji:C,target:I.detail.target}}),this.variantSelectorOpened=!0,this.hostElement.addEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.u.onIronOverlayClosed=function(I){var C=K9S(this.emojiManager,this.get((this.emojiVariantSelector?"emojiVariantSelector.ytEmojiVariantSelector.emoji":"emojiMultiPersonSelector.ytEmojiMultiPersonSelector.emoji")+".emojiId")||"");C&&I.composedPath&&(I.composedPath().includes(_.f(this.hostElement).querySelector("#emoji-variant-selector"))||I.composedPath().includes(_.f(this.hostElement).querySelector("#emoji-multi-person-selector")))&&(_.Fe(this.hostElement,"yt-close-emoji-variant-selector",[C.emojiId]),
this.emojiMultiPersonSelector=this.emojiVariantSelector=null,this.variantSelectorOpened=!1,this.hostElement.removeEventListener("iron-overlay-closed",this.boundOnIronOverlayClosed))};
_.u.onEmojiVariantSelectorMouseup=function(I){var C=I.target.firstChild;this.variantSelectorOpened&&C&&_.SA(function(){C.noCancelOnOutsideClick=!1},100)};
_.u.onEmojiVariantSelectorMousedown=function(I){I=I.target.firstChild;this.variantSelectorOpened&&I&&(I.noCancelOnOutsideClick=!1)};
_.u.onSelectCategory_=function(I){var C=this.search!="";this.search="";for(var y=_.f(this.hostElement).querySelector("#categories").children,k=0;k<y.length;k++){var F=y[k];if(F.id==I.detail.categoryId){C?(_.f(this.hostElement).querySelector("#categories").scrollTop=F.offsetTop,this.updateButtons_()):(this.animationStart_=_.f(this.hostElement).querySelector("#categories").scrollTop,this.animationEnd_=F.offsetTop,this.lastAnimationTime_=0,this.animateScroll_(this.lastAnimationTime_));break}}};
_.u.onEmojiHover_=function(I){this.placeholder=I.detail.shortcuts?I.detail.shortcuts[0]:""};
_.u.onSearchBoxFocused_=function(){this.resetPlaceholder()};
_.u.onSearchBoxBlur_=function(){this.resetPlaceholder()};
_.u.onMouseoutCategories=function(){this.variantSelectorOpened||this.resetPlaceholder()};
_.u.resetPlaceholder=function(){this.skinToneOpened||(this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.searchPlaceholderText))};
_.u.computeSearchCategory_=function(I){I=I.replace(H_e,"").toLowerCase().trim();if(!this.searching)return this.searchCategory;this.updateButtons_();I=I.split(" ");for(var C=[],y=this.emojiManager.emojis,k=0;k<y.length;k++){var F=y[k];if(F.searchTerms)for(var z=0;z<F.searchTerms.length;z++){for(var c=F.searchTerms[z].toLocaleLowerCase(),r=!1,w=0;w<I.length;w++)if(c.indexOf(I[w])!=-1){r=!0;break}if(r&&(!F.isCustomEmoji||!F.emojiId||this.emojiManager.pickerCustomEmojiIds.includes(F.emojiId))){C.push(F.emojiId);
break}}}return{categoryId:-1,emojiIds:C}};
_.u.computeSearchEmptyMessage_=function(I,C){return I&&C&&C.emojiIds&&C.emojiIds.length==0?this.data.searchNoResultsText||null:null};
_.u.computeSearching_=function(I){return this.emojiManager&&I.replace(H_e,"").length>1};
_.u.computeSkinToneHidden=function(){var I;return this.shouldUseStickyPreferences||this.skinToneOpened||this.categories.length===1||!((I=this.data)==null||!I.hideSkinTonePicker)};
_.u.computeDisableScroll=function(){return!!this.emojiVariantSelector};
_.u.openSkinToneSelector=function(){this.skinToneOpened=!0};
_.u.showSkinTonePlaceholder=function(){this.placeholder=this.ytRendererBehavior.getSimpleString(this.data.pickSkinToneText)};
_.u.clearSearch=function(){this.resetPlaceholder();this.search=""};
_.u.selectSkinTone_=function(I){I=Number(I.target.getAttribute("tone"));this.set("emojiManager.skinTone",I);_.Fe(this.hostElement,"yt-live-chat-emoji-skin-tone-changed",[I]);this.skinToneOpened=!1;this.resetPlaceholder()};
_.u.skinToneChanged_=function(){_.f(this.hostElement).querySelector("#skin-tone").setAttribute("tone",String(this.skinTone));for(var I=_.f(this.hostElement).querySelector("#dropdown-content").children,C=0;C<I.length;C++)C===this.skinTone?I[C].setAttribute("selected",""):I[C].removeAttribute("selected")};
_.u.animateScroll_=function(I){this.lastAnimationTime_||(this.lastAnimationTime_=I);I-=this.lastAnimationTime_;I<200?(_.f(this.hostElement).querySelector("#categories").scrollTop=this.animationStart_+(this.animationEnd_-this.animationStart_)*I/200,window.requestAnimationFrame(this.animateScroll_.bind(this))):(this.animationEnd_!=null&&(_.f(this.hostElement).querySelector("#categories").scrollTop=this.animationEnd_),this.animationEnd_=this.animationStart_=null,this.lastAnimationTime_=0);this.updateButtons_()};
_.u.searchChanged_=function(){this.updateButtons_()};
_.u.updateButtons_=function(){var I=null;if(!this.search)for(var C=_.f(this.hostElement).querySelector("#categories").scrollTop,y=_.f(this.hostElement).querySelector("#categories").children,k=0;k<y.length;k++){var F=y[k];F.offsetTop<=C&&(I=F.id)}C=_.f(this.hostElement).querySelector("#category-buttons").children;for(y=0;y<C.length;y++)k=C[y],k.active=k.id===I};
HA.prototype.searchChanged_=HA.prototype.searchChanged_;HA.prototype.skinToneChanged_=HA.prototype.skinToneChanged_;HA.prototype.onEmojiHover_=HA.prototype.onEmojiHover_;HA.prototype.onSelectCategory_=HA.prototype.onSelectCategory_;HA.prototype.onShowEmojiVariantSelector=HA.prototype.onShowEmojiVariantSelector;HA.prototype.updateCategoriesAndPlaceholder_=HA.prototype.updateCategoriesAndPlaceholder_;HA.prototype.dataChanged=HA.prototype.dataChanged;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HA.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],HA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HA.prototype,"data",void 0);_.E([_.d({value:function(){return[]}}),
_.h("design:type",Array)],HA.prototype,"categories",void 0);_.E([_.d({value:function(){return[]}}),
_.h("design:type",Array)],HA.prototype,"categoryButtons",void 0);_.E([_.d({computed:"computeDisableScroll(emojiVariantSelector)",reflectToAttribute:!0}),_.h("design:type",Boolean)],HA.prototype,"disableScroll",void 0);_.E([_.d({computed:"computeId_(data)",reflectToAttribute:!0}),_.h("design:type",String)],HA.prototype,"id",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],HA.prototype,"selected",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],HA.prototype,"disableIncrementalLoading",void 0);_.E([_.d(),_.h("design:type",String)],HA.prototype,"placeholder",void 0);_.E([_.d({value:""}),_.h("design:type",String)],HA.prototype,"search",void 0);_.E([_.d({computed:"computeSearching_(search)",reflectToAttribute:!0}),_.h("design:type",Boolean)],HA.prototype,"searching",void 0);_.E([_.d({computed:"computeSearchCategory_(search)"}),_.h("design:type",Object)],HA.prototype,"searchCategory",void 0);
_.E([_.d({computed:"computeSearchEmptyMessage_(searching, searchCategory)"}),_.h("design:type",Object)],HA.prototype,"searchEmptyMessage",void 0);_.E([_.d({computed:"identity(emojiManager.skinTone)"}),_.h("design:type",Number)],HA.prototype,"skinTone",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],HA.prototype,"skinToneOpened",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],HA.prototype,"variantSelectorOpened",void 0);
_.E([_.d({computed:"computeSkinToneHidden(skinToneOpened, categories, shouldUseStickyPreferences, data.hideSkinTonePicker)"}),_.h("design:type",Boolean)],HA.prototype,"skinToneHidden",void 0);_.E([_.d(),_.h("design:type",_.jD)],HA.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Object)],HA.prototype,"emojiVariantSelector",void 0);_.E([_.d(),_.h("design:type",Object)],HA.prototype,"emojiMultiPersonSelector",void 0);
_.E([_.d({value:!1,computed:"computeShouldUseStickyPreferences(data)"}),_.h("design:type",Boolean)],HA.prototype,"shouldUseStickyPreferences",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HA.prototype,"dataChanged",null);_.E([_.FI("data","selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HA.prototype,"updateCategoriesAndPlaceholder_",null);
_.E([_.km("yt-show-emoji-variant-selector"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HA.prototype,"onShowEmojiVariantSelector",null);_.E([_.km("yt-emoji-picker-select-category"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HA.prototype,"onSelectCategory_",null);_.E([_.km("yt-emoji-hover"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HA.prototype,"onEmojiHover_",null);
_.E([_.FI("skinTone"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HA.prototype,"skinToneChanged_",null);_.E([_.FI("search"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HA.prototype,"searchChanged_",null);HA=_.E([_.lT({is:"yt-emoji-picker-renderer",disableElementRegistration:!0})],HA);
_.Z(HA,"yt-emoji-picker-renderer",function(){if(Z_w===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;mRS===void 0&&(mRS=document.createElement("template"));var k=mRS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Z_w=I}I=Z_w;return I},{mode:2});var tm=function(){var I=_.q.apply(this,arguments)||this;I.emojiManager=_.$p;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.selectedIndex=1;I.actionMap={"yt-lwe-emoji-customization-visible":"handleEmojiCustomizationVisible"};return I};
_.R(tm,_.q);_.u=tm.prototype;_.u.handleEmojiCustomizationVisible=function(I){this.emojiPickerRenderer.selected=I;this.selectedIndex=1;I?(this.originalEmojiSet=this.emojiCustomizationSet,this.updateSaveButtonState(!1)):this.originalEmojiSet=void 0};
_.u.emojiCustomizationSetChanged=function(){var I;(I=this.data)!=null&&I.saveButtonEntityKey&&(this.originalEmojiSet||(this.originalEmojiSet=this.emojiCustomizationSet),this.originalEmojiSet&&this.emojiCustomizationSet&&!_.u8(this.originalEmojiSet.emojiId,this.emojiCustomizationSet.emojiId)?this.updateSaveButtonState(!0):this.updateSaveButtonState(!1))};
_.u.updateSaveButtonState=function(I){var C;(C=this.data)!=null&&C.saveButtonEntityKey&&this.ytLiveChatReduxBehavior.dispatch(_.wJ("booleanEntity",this.data.saveButtonEntityKey,{key:this.data.saveButtonEntityKey,value:I}))};
_.u.emojiUrl=function(I){I=_.le(this.emojiManager,I);if(!I)return"";var C;I=(C=I.image)==null?void 0:C.thumbnails;return _.E5(I,24)||""};
_.u.emojiAlt=function(I){var C=_.le(this.emojiManager,I);if(!C)return I;var y,k,F,z=(C==null?void 0:(y=C.image)==null?void 0:(k=y.accessibility)==null?void 0:(F=k.accessibilityData)==null?void 0:F.label)||"";return z?z:C.isCustomEmoji?C.shortcuts[0]:C.emojiId||I};
_.u.emojiAriaLabel=function(I){var C,y;return((C=_.le(this.emojiManager,I))==null?void 0:(y=C.shortcuts)==null?void 0:y[0])||I};
_.u.onEmojiClick=function(I){I.model.index!==0&&(this.selectedIndex=I.model.index)};
_.u.onEmojiSelect=function(I){I=I.detail;var C,y;((C=this.data)==null?0:C.emojiCustomizationSetEntityKey)&&((y=this.emojiCustomizationSet)==null?0:y.emojiId)&&I.emojiId&&this.canEditEmoji(this.emojiCustomizationSet.emojiId,I.emojiId,this.selectedIndex)&&this.ytLiveChatReduxBehavior.dispatch(_.wJ("emojiCustomizationSetEntity",this.data.emojiCustomizationSetEntityKey,{key:this.data.emojiCustomizationSetEntityKey,emojiId:this.getUpdatedEmojiIdList(this.emojiCustomizationSet.emojiId,I.emojiId,this.selectedIndex)}))};
_.u.canEditEmoji=function(I,C,y){I=I.indexOf(C);return I===y||I===0||y===0?!1:!0};
_.u.getUpdatedEmojiIdList=function(I,C,y){var k=I.indexOf(C);I=[].concat(_.Py(I));k>=0&&(I[k]=I[y]);I[y]=C;return I};
_.H1.Object.defineProperties(tm,{template:{configurable:!0,enumerable:!0,get:function(){if(wbP===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;i_0===void 0&&(i_0=document.createElement("template"));var k=i_0;y.call(C,k.content.cloneNode(!0),I.content.firstChild);wbP=I}I=wbP;return I}}});
tm.prototype.onEmojiSelect=tm.prototype.onEmojiSelect;_.E([_.g(_.la),_.h("design:type",Object)],tm.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],tm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.z$("yt-emoji-picker-renderer"),_.h("design:type",Object)],tm.prototype,"emojiPickerRenderer",void 0);
_.E([_.d({selectorArgs:["data.emojiCustomizationSetEntityKey"],selector:function(I,C){return _.cg(I.entities,"emojiCustomizationSetEntity",C)},
observer:"emojiCustomizationSetChanged"}),_.h("design:type",Object)],tm.prototype,"emojiCustomizationSet",void 0);_.E([_.d(),_.h("design:type",Object)],tm.prototype,"originalEmojiSet",void 0);_.E([_.d(),_.h("design:type",_.jD)],tm.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Object)],tm.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],tm.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],tm.prototype,"selectedIndex",void 0);
_.E([_.km("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tm.prototype,"onEmojiSelect",null);tm=_.E([_.lT({is:"yt-emoji-customization-panel-view-model",noInjection:!0})],tm);var J50;var O_S;var a5S;var M$m;var Jm=function(){var I=_.q.apply(this,arguments)||this;I.authorBadges=[];return I};
_.R(Jm,_.q);_.u=Jm.prototype;_.u.created=function(){this.ytLiveChatItemBehavior.supportsInlineActionButtons=!0};
_.u.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]]"}}}}}};
_.u.dataChanged=function(){var I=wqK(this.data.authorBadges||[]);this.hostElement.setAttribute("author-type",I)};
_.u.updateMessage=function(){var I=this.data.message,C=_.f(_.f(this.hostElement).querySelector("#message"));C.textContent="";I&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I))};
_.u.shouldSupportWholeItemClick=function(){return!0};
_.u.onShowOriginalClick=function(I){I.preventDefault();this.showOriginal=!0};
_.u.computeShowBar=function(I,C,y){return I&&C||y};
_.u.computeAuthorBadges=function(I){return I.authorBadges||[]};
_.u.computeAuthorIsOwner=function(I){return!!nWz(I.authorBadges,"owner")};
_.u.computeAuthorNameColor=function(I){var C;if(_.V("live_chat_author_name_color_usernames")&&(I==null?0:(C=I.authorName)==null?0:C.simpleText))return _.N_O(_.Vnz(I.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(I==null?0:I.authorSeedColorArgb))return _.N_O(_.s5(I.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var y;return _.V("live_chat_simple_color_usernames")&&(I==null?0:(y=I.authorName)==null?0:y.simpleText)&&(I==null?0:I.authorUsernameColorLight)&&
(I==null?0:I.authorUsernameColorDark)&&!this.inBanner?document.documentElement.hasAttribute("dark")?_.s5(I.authorUsernameColorDark):_.s5(I.authorUsernameColorLight):""};
Jm.prototype.updateMessage=Jm.prototype.updateMessage;Jm.prototype.dataChanged=Jm.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Jm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],Jm.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Jm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Jm.prototype,"data",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"showOriginal",void 0);_.E([_.d({value:!1,computed:"truthy(data.isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"isDimmed",void 0);_.E([_.d({computed:"computeShowBar(isDeleted, hasOriginalContent, isDimmed)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"showBar",void 0);
_.E([_.d({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],Jm.prototype,"authorBadges",void 0);_.E([_.d({computed:"computeAuthorIsOwner(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"authorIsOwner",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"inCollapsedBanner",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"inBanner",void 0);
_.E([_.d({value:_.V("live_chat_hide_avatars"),reflectToAttribute:!0}),_.h("design:type",Boolean)],Jm.prototype,"avatarHidden",void 0);_.E([_.d({computed:"computeAuthorNameColor(data)"}),_.h("design:type",String)],Jm.prototype,"authorNameColor",void 0);_.E([_.d(),_.h("design:type",_.fX)],Jm.prototype,"participantsManager",void 0);_.E([_.d({value:{size:"XS",type:"filled",style:"overlay",iconPosition:"icon-only"}}),_.h("design:type",Object)],Jm.prototype,"filledButtonOverrides",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jm.prototype,"dataChanged",null);_.E([_.FI("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jm.prototype,"updateMessage",null);Jm=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-text-message-renderer",noInjection:!0})],Jm);
_.Z(Jm,"yt-live-chat-text-message-renderer",function(){if(M$m===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;a5S===void 0&&(a5S=document.createElement("template"));var k=a5S;y.call(C,k.content.cloneNode(!0),I.content.firstChild);M$m=I}I=M$m;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var OP=function(){var I=_.q.apply(this,arguments)||this;I.tonalButtonOverrides={type:"tonal",style:"overlay"};return I};
_.R(OP,_.q);
OP.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]]"}}}}}};
OP.prototype.shouldSupportInlineActionButtons=function(){return!0};
OP.prototype.shouldSupportWholeItemClick=function(){return!0};
_.H1.Object.defineProperties(OP.prototype,{hasInfoDialogButton:{configurable:!0,enumerable:!0,get:function(){return!!this.data.infoDialogButton}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],OP.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],OP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],OP.prototype,"data",void 0);_.E([_.d(),_.h("design:type",_.fX)],OP.prototype,"participantsManager",void 0);
_.E([_.d(),_.h("design:type",Object)],OP.prototype,"tonalButtonOverrides",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.infoDialogButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],OP.prototype,"hasInfoDialogButton",null);OP=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-auto-mod-message-renderer",noInjection:!0})],OP);
_.Z(OP,"yt-live-chat-auto-mod-message-renderer",function(){if(O_S===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;J50===void 0&&(J50=document.createElement("template"));var k=J50;y.call(C,k.content.cloneNode(!0),I.content.firstChild);O_S=I}I=O_S;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Ijc;var Cqq;var sSw;var aW=function(){return _.q.apply(this,arguments)||this};
_.R(aW,_.q);_.E([_.d(),_.h("design:type",Object)],aW.prototype,"data",void 0);aW=_.E([_.m({is:"ytd-factoid-renderer",disableElementRegistration:!0})],aW);
_.Z(aW,"ytd-factoid-renderer",function(){if(sSw!==void 0)return sSw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return sSw=I},{mode:1});var MF=function(){return _.q.apply(this,arguments)||this};
_.R(MF,_.q);MF.prototype.configureRendererStamper=function(){return{"data.factoids":{id:"factoids",mapping:{factoidRenderer:"ytd-factoid-renderer"}}}};
_.E([_.d(),_.h("design:type",Object)],MF.prototype,"data",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],MF.prototype,"ytRendererstamperBehavior",void 0);MF=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0})],MF);
_.Z(MF,"yt-live-chat-channel-activity-reputation-renderer",function(){if(Cqq===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Ijc===void 0&&(Ijc=document.createElement("template"));var k=Ijc;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Cqq=I}I=Cqq;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var oI8;var ygw;var Is=function(){return _.q.apply(this,arguments)||this};
_.R(Is,_.q);Is.prototype.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Is.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Boolean)],Is.prototype,"menuFocused",void 0);_.E([_.d(),_.h("design:type",Object)],Is.prototype,"data",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],Is.prototype,"ytLiveChatItemBehavior",void 0);Is=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-donation-announcement-renderer",noInjection:!0})],Is);
_.Z(Is,"yt-live-chat-donation-announcement-renderer",function(){if(ygw===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;oI8===void 0&&(oI8=document.createElement("template"));var k=oI8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ygw=I}I=ygw;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var knS;var F8e,u05=function(){if(F8e!==void 0)return F8e;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;knS===void 0&&(knS=document.createElement("template"));var k=knS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return F8e=I};var CN=function(){return _.q.apply(this,arguments)||this};
_.R(CN,_.q);_.H1.Object.defineProperties(CN,{template:{configurable:!0,enumerable:!0,get:function(){return u05()}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],CN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CN.prototype,"data",void 0);CN=_.E([_.lT({is:"yt-live-chat-empty-feed-view-model",disableElementRegistration:!0,noInjection:!0})],CN);_.Z(CN,"yt-live-chat-empty-feed-view-model",function(){return u05()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var zZd;var TzS;var s_=function(){return _.q.apply(this,arguments)||this};
_.R(s_,_.q);s_.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"}}}}}};
_.H1.Object.defineProperties(s_.prototype,{channelName:{configurable:!0,enumerable:!0,get:function(){var I,C;return{runs:[{text:(I=this.data)==null?void 0:(C=I.channelName)==null?void 0:C.content}]}}},
channelBadges:{configurable:!0,enumerable:!0,get:function(){var I=[],C;if((C=this.data)==null||!C.channelBadges)return I;var y;C=_.T((y=this.data)==null?void 0:y.channelBadges);for(y=C.next();!y.done;y=C.next()){y=_.l(y.value,fA5);var k=void 0,F=void 0;if((k=y)==null?0:(F=k.badgeImage)==null?0:F.sources)k=void 0,F={liveChatAuthorBadgeRenderer:{tooltip:y.tooltip,accessibility:{accessibilityData:{label:(k=_.l(y.rendererContext,_.mO))==null?void 0:k.label}}}},y.badgeImage.sources[0].clientResource?F.liveChatAuthorBadgeRenderer.icon=
{iconType:y.badgeImage.sources[0].clientResource.imageName}:F.liveChatAuthorBadgeRenderer.customThumbnail={thumbnails:y.badgeImage.sources},I.push(F)}return I}}});
_.E([_.d(),_.h("design:type",Object)],s_.prototype,"data",void 0);_.E([_.v("data.channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],s_.prototype,"channelName",null);_.E([_.v("data.channelBadges"),_.h("design:type",Array),_.h("design:paramtypes",[])],s_.prototype,"channelBadges",null);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],s_.prototype,"ytRendererstamperBehavior",void 0);
s_=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-identity-view-model",noInjection:!0})],s_);
_.Z(s_,"yt-live-chat-identity-view-model",function(){if(TzS===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;zZd===void 0&&(zZd=document.createElement("template"));var k=zZd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);TzS=I}I=TzS;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var cgq;var eZ5;var rge;var ifw;var os=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;I.supportsInlineActionButtons=!0;return I};
_.R(os,_.q);os.prototype.ready=function(){var I;((I=document.querySelector("yt-live-chat-app"))==null?0:I.hasAttribute("dashboard-money-feed"))&&this.hostElement.setAttribute("dashboard-money-feed","")};
os.prototype.dataChanged=function(I){var C=(0,_.IH)(_.f(this.hostElement).querySelector("#detail-text"));C.textContent="";(I==null?0:I.detailText)&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I.detailText))};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],os.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],os.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],os.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({observer:"dataChanged"}),_.h("design:type",Object)],os.prototype,"data",void 0);
_.E([_.d({computed:"truthy(isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],os.prototype,"hidden",void 0);os=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-legacy-paid-message-renderer"})],os);
_.Z(os,"yt-live-chat-legacy-paid-message-renderer",function(){if(ifw===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;rge===void 0&&(rge=document.createElement("template"));var k=rge;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ifw=I}I=ifw;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var wEb;var nIe;var Pqq={},yJ=function(){return _.cO.apply(this,arguments)||this};
_.R(yJ,_.cO);yJ.prototype.onLiveChatMembershipItemBehaviorClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
yJ.prototype.onLiveChatMembershipItemBehaviorClick=yJ.prototype.onLiveChatMembershipItemBehaviorClick;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],yJ.prototype,"data",void 0);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],yJ.prototype,"onLiveChatMembershipItemBehaviorClick",null);yJ=_.E([_.eA()],yJ);
Pqq.YtLiveChatMembershipItemBehavior=[yJ.prototype,_.M.YtRendererBehavior];var kx=function(){var I=_.q.apply(this,arguments)||this;I.supportsInlineActionButtons=!0;I.hasPrimaryHeaderText=!1;I.showOnlyHeader=!1;I.authorBadges=[];I.modern=_.V("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.R(kx,_.q);_.u=kx.prototype;_.u.shouldSupportInlineActionButtons=function(){return!0};
_.u.configureRendererStamper=function(){return{"data.footerButton":{id:"footer-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}}}};
_.u.ready=function(){var I=document.querySelector("yt-live-chat-app");I&&I.hasAttribute("dashboard-money-feed")&&this.hostElement.setAttribute("dashboard-money-feed","")};
_.u.messageChanged=function(){var I=this.data.message,C=(0,_.IH)(_.f(this.hostElement).querySelector("#message"));C.textContent="";I&&C.appendChild(this.ytLiveChatItemBehavior.createDocumentFragment(I))};
_.u.computeHasPrimaryHeaderText=function(I){return!(!I||!I.headerPrimaryText)};
_.u.computeShowOnlyHeader=function(I,C){return this.isMessageEmpty(I,C)};
_.u.computeAuthorBadges=function(I){return I.authorBadges||[]};
_.u.isMessageEmpty=function(I,C){return!I||I.empty?!0:!I.message&&!I.inputField&&!C};
_.u.isDeletedChanged=function(){this.ytLiveChatItemBehavior.isDeleted&&(this.set("data.authorName",null),this.set("data.authorPhoto",null),this.set("data.message",null))};
_.u.getInputElement=function(){return _.f(this.hostElement).querySelector("yt-live-chat-text-input-field-renderer")};
_.u.inputFocus=function(){var I=this.getInputElement();I&&I.focus()};
_.u.inputInsertEmoji=function(I){var C=this.getInputElement();C&&C.insertEmoji(I)};
_.u.inputMessage=function(){var I=this.getInputElement();return I&&this.data.inputField?(I.completeEmojis(),_.GN(I.liveChatRichMessageInput)):null};
_.u.onFooterButtonClick=function(){this.data.footerButton&&_.k3(this.hostElement,"yt-live-chat-clear-pinned-message")};
_.u.shouldSupportWholeItemClick=function(){return!0};
kx.prototype.isDeletedChanged=kx.prototype.isDeletedChanged;kx.prototype.messageChanged=kx.prototype.messageChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],kx.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(Pqq.YtLiveChatMembershipItemBehavior),_.h("design:type",Object)],kx.prototype,"ytLiveChatMembershipItemBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],kx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kx.prototype,"data",void 0);_.E([_.d({computed:"computeHasPrimaryHeaderText(data)",reflectToAttribute:!0}),_.h("design:type",Object)],kx.prototype,"hasPrimaryHeaderText",void 0);_.E([_.d({computed:"computeShowOnlyHeader(data, isDeleted)",reflectToAttribute:!0}),_.h("design:type",Object)],kx.prototype,"showOnlyHeader",void 0);
_.E([_.d({computed:"computeAuthorBadges(data)"}),_.h("design:type",Array)],kx.prototype,"authorBadges",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],kx.prototype,"modern",void 0);_.E([_.FI("data.message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kx.prototype,"messageChanged",null);_.E([_.FI("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kx.prototype,"isDeletedChanged",null);
kx=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-membership-item-renderer",noInjection:!0})],kx);
_.Z(kx,"yt-live-chat-membership-item-renderer",function(){if(nIe===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;wEb===void 0&&(wEb=document.createElement("template"));var k=wEb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);nIe=I}I=nIe;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var L8u;var DIY;var Fw=function(){return _.q.apply(this,arguments)||this};
_.R(Fw,_.q);Fw.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Fw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fw.prototype,"data",void 0);Fw=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-mode-change-message-renderer",noInjection:!0})],Fw);
_.Z(Fw,"yt-live-chat-mode-change-message-renderer",function(){if(DIY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;L8u===void 0&&(L8u=document.createElement("template"));var k=L8u;y.call(C,k.content.cloneNode(!0),I.content.firstChild);DIY=I}I=DIY;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var pEw;var QS8;var uZ=function(){return _.q.apply(this,arguments)||this};
_.R(uZ,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],uZ.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],uZ.prototype,"data",void 0);uZ=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-moderation-message-renderer"})],uZ);
_.Z(uZ,"yt-live-chat-moderation-message-renderer",function(){if(QS8===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;pEw===void 0&&(pEw=document.createElement("template"));var k=pEw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);QS8=I}I=QS8;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var NzS;var Vu0;var zW=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework");return I};
_.R(zW,_.q);zW.prototype.onClick=function(){var I;if((I=this.data)!=null&&I.onClickCommand){var C;_.FW.instance.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zW.prototype,"modern",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],zW.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],zW.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zW.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],zW.prototype,"data",void 0);zW=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-offer-click-count-message-renderer",noInjection:!0})],zW);
_.Z(zW,"yt-live-chat-offer-click-count-message-renderer",function(){if(Vu0===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;NzS===void 0&&(NzS=document.createElement("template"));var k=NzS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Vu0=I}I=Vu0;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var jSm;var TW=function(){return _.q.apply(this,arguments)||this};
_.R(TW,_.q);_.E([_.d(),_.h("design:type",Object)],TW.prototype,"data",void 0);TW=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-placeholder-item-renderer",noInjection:!0})],TW);
_.Z(TW,"yt-live-chat-placeholder-item-renderer",function(){if(jSm===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);jSm=I}I=jSm;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var ljq;var XE0;var $Ib=new Zk(7),cw=function(){var I=_.q.apply(this,arguments)||this;I.data={};return I};
_.R(cw,_.q);cw.prototype.dataChanged=function(){var I;((I=this.data)==null?0:I.class)&&_.a_(this.hostElement,this.data.class,!0);var C;((C=this.oldData)==null?0:C.class)&&_.a_(this.hostElement,this.oldData.class,!1);this.oldData=this.data};
cw.prototype.computeTimestampString=function(I){return $Ib.format(new Date(I/1E3))};
cw.prototype.dataChanged=cw.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],cw.prototype,"data",void 0);_.E([_.d({computed:"computeTimestampString(data.timestampUsec)"}),_.h("design:type",String)],cw.prototype,"timestampString",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cw.prototype,"dataChanged",null);cw=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-server-error-message",noInjection:!0})],cw);
_.Z(cw,"yt-live-chat-server-error-message",function(){if(XE0===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;ljq===void 0&&(ljq=document.createElement("template"));var k=ljq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);XE0=I}I=XE0;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var RZq;var bf8;var eH=function(){var I=_.q.apply(this,arguments)||this;I.defaultToFilledIcon=!1;return I};
_.R(eH,_.q);eH.prototype.computeHasPrimaryColorIcon=function(I){return I==="SPARK"||I==="SPONSORSHIP_STAR"};
eH.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{style:"max-width: 100%"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eH.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],eH.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eH.prototype,"defaultToFilledIcon",void 0);_.E([_.d(),_.h("design:type",Object)],eH.prototype,"data",void 0);
_.E([_.d({value:!1,computed:"computeHasPrimaryColorIcon(data.icon.iconType)",reflectToAttribute:!0}),_.h("design:type",Boolean)],eH.prototype,"hasPrimaryColorIcon",void 0);eH=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-viewer-engagement-message-renderer",noInjection:!0})],eH);
_.Z(eH,"yt-live-chat-viewer-engagement-message-renderer",function(){if(bf8===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;RZq===void 0&&(RZq=document.createElement("template"));var k=RZq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);bf8=I}I=bf8;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var YM8;var rn=function(){var I=_.q.apply(this,arguments)||this;I.modernUpdate=!1;I.buttonStyle="overlay";I.buttonType="filled";return I};
_.R(rn,_.q);rn.prototype.computeTooltipPosition=function(){return this.modernUpdate?"left":"bottom"};
rn.prototype.computeButtonOverride=function(){if(this.modernUpdate)return{iconPosition:"icon-only",style:this.buttonStyle,type:this.buttonType,size:"M"}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rn.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rn.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rn.prototype,"modernUpdate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],rn.prototype,"buttonStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],rn.prototype,"buttonType",void 0);
rn=_.E([_.m({is:"ytd-ad-hover-text-button-renderer",disableElementRegistration:!0})],rn);
_.Z(rn,"ytd-ad-hover-text-button-renderer",function(){if(YM8!==void 0)return YM8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return YM8=I},{mode:1});var Gnw;var iZ=function(){var I=_.q.apply(this,arguments)||this;I.buttonOverrides={size:"XS"};I.modern=_.V("web_button_rework");return I};
_.R(iZ,_.q);iZ.prototype.onHelpTap=function(I){this.data&&this.data.informationDialog&&(_.k3(this.hostElement,"yt-navigate",{endpoint:{liveChatDialogEndpoint:{content:this.data.informationDialog}}}),I.preventDefault(),I.stopPropagation())};
_.E([_.d(),_.h("design:type",Object)],iZ.prototype,"buttonOverrides",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iZ.prototype,"modern",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iZ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iZ.prototype,"data",void 0);iZ=_.E([_.m({disableElementRegistration:!0,is:"ytd-live-chat-purchased-product-message-renderer"})],iZ);
_.Z(iZ,"ytd-live-chat-purchased-product-message-renderer",function(){if(Gnw!==void 0)return Gnw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Gnw=I},{mode:1});var fjq;var SMP;var wn=function(){var I=_.q.apply(this,arguments)||this;I.isContainerDeleted=!1;return I};
_.R(wn,_.q);wn.prototype.onContextMenuClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
wn.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))};
wn.prototype.isContainerDeletedChanged=wn.prototype.isContainerDeletedChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wn.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],wn.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wn.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],wn.prototype,"isContainerDeleted",void 0);
_.E([_.d(),_.h("design:type",String)],wn.prototype,"deletedStateMessage",void 0);_.E([_.FI("isContainerDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wn.prototype,"isContainerDeletedChanged",null);wn=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-header-renderer"})],wn);
_.Z(wn,"ytd-sponsorships-live-chat-header-renderer",function(){if(SMP!==void 0)return SMP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return SMP=I},{mode:1});var nN=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework_with_live");I.buttonOverrides={style:"overlay",type:"filled"};return I};
_.R(nN,_.q);nN.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]]"}}}}}};
nN.prototype.onCtaButtonClick=function(){var I,C=_.l((I=this.data)==null?void 0:I.optInPrompt,_.fZ);if(I=this.maybeGetButtonCommand(C)){var y;(y=_.e2())==null||y.clickCommand(I)}};
nN.prototype.maybeGetButtonCommand=function(I){return!I||!I.command||_.l(I.command,kkw)===void 0&&_.l(I.command,yJP)===void 0?null:I.command};
nN.prototype.shouldHideOptinPrompt=function(I,C){return!I||C};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],nN.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nN.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nN.prototype,"modern",void 0);nN=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer"})],nN);
_.Z(nN,"ytd-sponsorships-live-chat-gift-purchase-announcement-renderer",function(){if(fjq!==void 0)return fjq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return fjq=I},{mode:1});var K8w;var Pw=function(){return _.q.apply(this,arguments)||this};
_.R(Pw,_.q);Pw.prototype.onContextMenuClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
Pw.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))};
Pw.prototype.isDeletedChanged=Pw.prototype.isDeletedChanged;_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],Pw.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Pw.prototype,"data",void 0);_.E([_.FI("isDeleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pw.prototype,"isDeletedChanged",null);Pw=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer"})],Pw);
_.Z(Pw,"ytd-sponsorships-live-chat-gift-redemption-announcement-renderer",function(){if(K8w!==void 0)return K8w;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return K8w=I},{mode:1});var LN=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-mark-chat-item-as-deleted-action":"handleLiveChatAction","yt-live-chat-actions":"handleLiveChatActions","yt-remove-chat-item-action":"handleLiveChatAction"};return I};
_.R(LN,_.q);_.u=LN.prototype;
_.u.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"}}}};
_.u.handleLiveChatAction=function(I){_.l(I,VGq)?this.handleMarkChatItemAsDeletedAction(_.l(I,VGq)):_.l(I,Nb0)&&this.handleRemoveChatItemAction(_.l(I,Nb0))};
_.u.handleLiveChatActions=function(I){I.forEach(this.handleLiveChatAction,this)};
_.u.handleMarkChatItemAsDeletedAction=function(I){var C=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(k,F){var z=Object.keys(k)[0];Object.values(k)[0].id===I.targetItemId&&C.markAsDeleted("data.items",F,z,I.deletedStateMessage,I.showOriginalContentMessage)})};
_.u.handleRemoveChatItemAction=function(I){var C=this,y;((y=this.data)==null?0:y.items)&&this.data.items.forEach(function(k,F){Object.values(k)[0].id===I.targetItemId&&C.splice("data.items",F,1)})};
_.u.markAsDeleted=function(I,C,y,k,F){I=[I,C,y].join(".");this.set(I+".deletedStateMessage",k);this.set(I+".showOriginalContentMessage",F)};
_.E([_.d(),_.h("design:type",Object)],LN.prototype,"data",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],LN.prototype,"ytActionHandlerBehavior",void 0);LN=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-item-display-list-renderer",noInjection:!0})],LN);
_.Z(LN,"yt-live-chat-item-display-list-renderer",function(){if(eZ5===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;cgq===void 0&&(cgq=document.createElement("template"));var k=cgq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);eZ5=I}I=eZ5;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Agw;var gIu,vI0=function(){if(gIu!==void 0)return gIu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Agw===void 0&&(Agw=document.createElement("template"));var k=Agw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return gIu=I};var Dy=function(){var I=_.q.apply(this,arguments)||this;I.isHeader=!1;return I};
_.R(Dy,_.q);Dy.prototype.configureRendererStamper=function(){return{"data.item":{id:"content",mapping:{liveChatPaidMessageRenderer:{component:"yt-live-chat-paid-message-renderer",params:{noPadding:"[[isHeader]]"}}}}}};
_.H1.Object.defineProperties(Dy,{template:{configurable:!0,enumerable:!0,get:function(){return vI0()}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Dy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Dy.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dy.prototype,"isHeader",void 0);Dy=_.E([_.lT({is:"yt-live-chat-item-display-renderer",disableElementRegistration:!0,noInjection:!0})],Dy);_.Z(Dy,"yt-live-chat-item-display-renderer",function(){return vI0()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var W8S,dI8,Bzc,Zfw;
W8S={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}};dI8={home:"eohps",search:"eosps",watch:"eowps"};_.xIm=["watch","search","home"];
_.pN=function(){this.JSC$12019_isInitialized_=!1;this.isInitialPass_=!0;this.isSeenDuringInitialPass_={};this.JSC$12019_queue_=[];this.pendingPages_=[];this.pagePreparerJobId_=this.fragmentJobId_=0;this.DEFAULT_DELAY_=_.Aq("PRECONSTRUCTION_DELAY",0);this.signals_=_.So();this.targetPage_=""};
_.pN.prototype.init=function(I,C){I=I===void 0?"":I;C=C===void 0?null:C;if(this.JSC$12019_isInitialized_)this.abort();else if(this.JSC$12019_isInitialized_=!0,I&&_.qMb(this,I),C){var y=_.Ku(this.signals_,"pcl")?0:10,k=function(){for(var F=0,z;z=_.xIm[F++];)z!=I&&z!=C&&this.pendingPages_.push(z);_.mI0(this)}.bind(this);
this.signals_.parkOrScheduleJob(k,y,"pcl")}};
_.pN.prototype.abort=function(){this.fragmentJobId_&&(_.b$.cancelJob(this.fragmentJobId_),this.fragmentJobId_=0);Zfw(this)};
_.qMb=function(I,C){I.JSC$12019_isInitialized_&&!I.targetPage_&&(I.targetPage_=C,Bzc(I,C),I.isInitialPass_=!1,Bzc(I,C),I.signals_.processSignal(dI8[I.targetPage_]),Zfw(I),_.mI0(I))};
_.mI0=function(I){I.pendingPages_.length&&!I.pagePreparerJobId_&&(I.pagePreparerJobId_=_.NU(_.b$,function(){this.pagePreparerJobId_=0;this.pendingPages_.length&&!this.targetPage_&&_.qMb(this,this.pendingPages_.shift())}.bind(I),I.DEFAULT_DELAY_))};
Bzc=function(I,C){if(C=W8S[C])for(var y in C){var k=!1,F=y;y.charAt(0)=="~"&&(k=!0,F=y.substring(1));var z=C[y];z=typeof z=="object"?z:{count:z};C[y]=z;z.componentName=F;z.count>0&&(I.isInitialPass_?k||I.isSeenDuringInitialPass_[F]||(I.JSC$12019_queue_.push({componentName:F,count:1,signals:z.signals}),I.isSeenDuringInitialPass_[F]=!0,z.count--):I.JSC$12019_queue_.push(z))}};
Zfw=function(I){I.JSC$12019_queue_.length=0;I.targetPage_="";I.isInitialPass_=!0;I.signals_.processSignal("eop")};
_.pN.getInstance=function(){return _.Fv(_.pN)};var EIw=function(){this.signals=_.So();this.init()};
EIw.prototype.startPreconstruction=function(){_.pN.getInstance().init(_.g5("IS_HOMEPAGE_COLD")?"home":null,"n/a")};
EIw.prototype.init=function(){hZS(this);window.Polymer&&myb&&M9I();this.signals.parkOrScheduleJob(this.startPreconstruction,10,"eor");a:{var I=_.sF.ytcsi;if(I&&I.gt&&(I=I.gt())&&I.tick&&(I.tick.aft>0||I.tick.pbs>0)&&(_.g5("IS_HOMEPAGE_COLD")||_.g5("IS_RESULTS_PAGE_COLD")||_.g5("IS_WATCH_PAGE_COLD"))){UIm(this);break a}sQm(hJ9,this.onNotifications,this)}};
var hZS=function(I){var C=function(){I.signals.processSignal("dl")};
document.readyState==="complete"?(_.xS(Error("th"),"WARNING"),C()):_.Sqm(window,"load",C)};
EIw.prototype.onNotifications=function(I){I.timer||(_.g5("IS_HOMEPAGE_COLD")||_.g5("IS_RESULTS_PAGE_COLD")||_.g5("IS_WATCH_PAGE_COLD"))&&UIm(this)};
var UIm=function(I){I.signals.parkOrScheduleJob(function(){I.signals.processSignal("eocs")},10,"eor")};
new EIw;var QJ,Nf=function(){return _.cO.apply(this,arguments)||this};
_.R(Nf,_.cO);_.u=Nf.prototype;_.u.enableActiveViewMeasurement=function(I){if(this.isActiveViewEnabled(I)){var C=this.getUrlPrefixesFromCommand(I.viewableCommands);I=this.getUrlPrefixesFromCommand(I.endOfSessionCommands);QJ||(QJ=new f2W(this.getVersion()));SfW(QJ,this.hostElement);KWI(QJ,this.hostElement,C,I)}};
_.u.stopActiveViewMeasurement=function(){QJ&&SfW(QJ,this.hostElement)};
_.u.isActiveViewEnabled=function(I){return!!I&&(this.hasAtLeastOneUrl(I.viewableCommands)||this.hasAtLeastOneUrl(I.endOfSessionCommands))};
_.u.hasAtLeastOneUrl=function(I){return!!I&&I.length>0&&I[0].loggingUrls!=null&&I[0].loggingUrls.length>0};
_.u.getVersion=function(){var I=_.Aq("INNERTUBE_CONTEXT_CLIENT_VERSION","").match(/^\d+\.(\d{8})/);return(I==null?void 0:I.length)===2?I[1]:null};
_.u.getUrlPrefixesFromCommand=function(I){if(!I)return[];var C=[];I=_.T(I);for(var y=I.next();!y.done;y=I.next())if(y=y.value,y.loggingUrls){y=_.T(y.loggingUrls);for(var k=y.next();!k.done;k=y.next())k=k.value,k.baseUrl&&C.push(k.baseUrl)}return C};
Nf=_.E([_.eA()],Nf);var VJ=[Nf.prototype];var jH=function(){return _.cO.apply(this,arguments)||this};
_.R(jH,_.cO);_.H1.Object.defineProperties(jH.prototype,{store:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_entity_store_from_dependency_injection")?_.dW():_.Hg()}}});
jH=_.E([_.eA()],jH);_.lZ=[n0.prototype,jH.prototype];var Hf8=["ytd-rich-shelf-renderer"],Xw=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.DISMISSED_CONTENT_KEYSPACE="DISMISSED_CONTENT_KEYSPACE:";I.followUpDialogPromise=null;I.followUpDialogPromiseResolve=null;I.followUpDialogPromiseReject=null;return I};
_.R(Xw,_.cO);_.u=Xw.prototype;_.u.dismissibleItemIsDismissedChanged_=function(I){_.V("kevlar_fluid_dismiss")&&(I?_.k3(this.hostElement,"yt-dismissible-item-dismissed"):_.k3(this.hostElement,"yt-dismissible-item-undismissed"))};
_.u.dismissibleItemDataChanged_=function(){this.dismissedContentId=void 0;this.dismissibleItemReset_()};
_.u.dismissibleItemReset_=function(){var I=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 _.eN(function(C,y){I.followUpDialogPromiseResolve=C;I.followUpDialogPromiseReject=y});
_.k3(this.hostElement,"yt-enable-lockup-interaction")};
_.u.dismissibleItemOnYtServiceRequestSent_=function(I,C){C.actions&&this.dismissibleItemProcessActions(C.actions,I)};
_.u.dismissibleItemOnRequestSent=function(I){if(_.V("web_button_rework"))for(var C=_.T(I.detail),y=C.next();!y.done;y=C.next()){var k=void 0;(y=(k=_.l(y.value,_.w9))==null?void 0:k.actions)&&this.dismissibleItemProcessActions(y,I)}};
_.u.dismissibleItemOnCommandSent=function(I,C){C&&this.dismissibleItemProcessActions(C,I)};
_.u.setAndGetDismissedContentId=function(I){return this.dismissedContentId=this.DISMISSED_CONTENT_KEYSPACE+I};
_.u.replayDismissAction=function(I){this.dismissibleItemProcessActions([I])};
_.u.dismissibleItemProcessActions=function(I,C){for(var y=0;y<I.length;y++){var k=I[y],F=void 0;((F=_.l(k,_.r9))==null?0:F.commands)&&this.dismissibleItemProcessActions(_.l(k,_.r9).commands,C);if(_.l(k,_.DN)){if(F=_.l(k,_.DN),!F.replaceParentSection||Hf8.includes(this.hostElement.nodeName.toLowerCase()))_.V("web_see_fewer_shorts_reactive_dismissal")&&F.groupDismissal&&qMm(this,F.groupDismissal,!0),this.dismissibleItemHandleReplaceEnclosingAction_(F),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wJ("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:k})),k=void 0,(k=C)==null||k.stopPropagation()}else if(_.l(k,S0w))this.dismissibleItemHandleHideEnclosingAction_(),k=void 0,(k=C)==null||k.stopPropagation();else if(_.l(k,Eg0))_.V("web_see_fewer_shorts_reactive_dismissal")&&(k=_.l(k,Eg0),F=void 0,((F=k)==null?0:F.targetGroupId)&&qMm(this,{targetGroupId:k.targetGroupId},!1)),this.dismissibleItemHandleUndoFeedbackAction_(),this.dismissedContentId&&this.ytdReduxBehavior.dispatch(_.wJ("commandEntity",
this.dismissedContentId,{key:this.dismissedContentId,command:void 0})),k=void 0,(k=C)==null||k.stopPropagation();else if(_.l(k,_.w9))(k=_.l(k,_.w9).actions)&&_.cQ(this.hostElement,k,this.hostElement),k=void 0,(k=C)==null||k.stopPropagation();else{var z=F=void 0;((F=_.l(k,_.WH))==null?void 0:F.signal)!=="TELL_US_WHY"||((z=_.l(k,_.WH))==null?0:z.targetId)&&_.V("web_enable_feedback_endpoint_resolver_batch_2")||(this.dismissibleItemHandleTellUsWhySignalAction_(),k=void 0,(k=C)==null||k.stopPropagation())}}};
_.u.dismissibleItemOnYtServiceRequestCompleted_=function(I,C){var y=this.get("feedbackResponses.0.followUpDialog",C.data);y?this.followUpDialogPromiseResolve(y):C.actions&&!this.dismissedRenderer&&this.dismissibleItemProcessActions(C.actions,I)};
_.u.dismissibleItemHandleReplaceEnclosingAction_=function(I){this.dismissedRenderer=I.item;this.isDismissed=!0;var C=null;(C=_.f(this.hostElement).querySelector("#dismissed"))&&_.hn(this,function(){_.HF(C)});
_.k3(this.hostElement,"yt-disable-lockup-interaction",this.dismissedRenderer)};
_.u.dismissibleItemHandleHideEnclosingAction_=function(){this.isHideEnclosingAction=this.isDismissed=!0};
_.u.dismissibleItemHandleUndoFeedbackAction_=function(){_.k3(this.hostElement,"yt-dismissible-item-undo-feedback");this.dismissibleItemReset_()};
_.u.dismissibleItemHandleTellUsWhySignalAction_=function(){var I=this;this.followUpDialogPromise.then(function(C){I.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:C}})})};
Xw.prototype.dismissibleItemOnYtServiceRequestCompleted_=Xw.prototype.dismissibleItemOnYtServiceRequestCompleted_;Xw.prototype.dismissibleItemOnCommandSent=Xw.prototype.dismissibleItemOnCommandSent;Xw.prototype.dismissibleItemOnRequestSent=Xw.prototype.dismissibleItemOnRequestSent;Xw.prototype.dismissibleItemOnYtServiceRequestSent_=Xw.prototype.dismissibleItemOnYtServiceRequestSent_;Xw.prototype.dismissibleItemDataChanged_=Xw.prototype.dismissibleItemDataChanged_;
Xw.prototype.dismissibleItemIsDismissedChanged_=Xw.prototype.dismissibleItemIsDismissedChanged_;_.E([_.g(_.vA),_.h("design:type",Object)],Xw.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Xw.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Xw.prototype,"isDismissed",void 0);_.E([_.d(),_.h("design:type",Object)],Xw.prototype,"dismissedRenderer",void 0);
_.E([_.FI("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],Xw.prototype,"dismissibleItemIsDismissedChanged_",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xw.prototype,"dismissibleItemDataChanged_",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],Xw.prototype,"dismissibleItemOnYtServiceRequestSent_",null);_.E([_.km("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xw.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.km("yt-dismissible-item-action"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Array]),_.h("design:returntype")],Xw.prototype,"dismissibleItemOnCommandSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],Xw.prototype,"dismissibleItemOnYtServiceRequestCompleted_",null);Xw=_.E([_.eA()],Xw);_.$x=[_.vA,_.lZ,Xw.prototype];var Rs=function(){var I=_.cO.apply(this,arguments)||this;I.disableGridStateAware=!1;I.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};I.currentGridClass="";return I};
_.R(Rs,_.cO);Rs.prototype.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap);_.hn(this,this.handleUpdateGridStateAction);if(!this.disableGridStateAware){var I=this.gridStateAwareGetElement();_.a_(I,"grid",!0)}};
Rs.prototype.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.gridStateActionMap)};
Rs.prototype.gridStateAwareGetElement=function(){return this.gridStateAwareSizingElementSelector?_.f(this.hostElement).querySelector(this.gridStateAwareSizingElementSelector):this.hostElement};
Rs.prototype.handleUpdateGridStateAction=function(){if(this.disableGridStateAware)var I="grid-disabled";else{I=_.Ozc.getInstance();var C=this.get("pageSubtype");I=C&&Hzc.includes(C)?"grid-disabled":I.currentSnapState_?I.currentSnapState_.className:null}(C=this.gridStateAwareGetElement())&&I!==this.currentGridClass&&(I&&_.a_(C,I,!0),this.currentGridClass&&_.a_(C,this.currentGridClass,!1),this.currentGridClass=I)};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Rs.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",String)],Rs.prototype,"gridStateAwareSizingElementSelector",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Rs.prototype,"disableGridStateAware",void 0);Rs=_.E([_.eA()],Rs);_.bZ=[Rs.prototype,_.Et.YtActionHandlerBehavior];_.Yx=new _.Jj("GUIDE_TOKEN");var fN;_.GW={};fN=function(){var I=_.cO.apply(this,arguments)||this;I.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 I};
_.R(fN,_.cO);_.u=fN.prototype;_.u.onActiveEndpointChange=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.u.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.guideStateActionMap);var I=_.N().resolve(_.aU(_.Yx));I&&(this.guidePersistentAndVisible=I.getGuidePersistentAndVisible(),this.activeEndpoint=I.getActiveEndpoint(),this.guideOpened=I.getGuideOpened(),this.miniGuideVisible=I.getMiniGuideVisible())};
_.u.detached=function(){this.ytActionHandlerBehavior.unregisterActionMap(this.guideStateActionMap)};
_.u.handleGuideStateAction=function(I){this.guidePersistentAndVisible=I};
_.u.handleMiniGuideStateAction=function(I){this.miniGuideVisible=I};
_.u.handleGuideOpenedAction=function(I){this.guideOpened=I};
_.u.handleActiveEndpointAction=function(I){this.activeEndpoint=I};
fN.prototype.onActiveEndpointChange=fN.prototype.onActiveEndpointChange;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],fN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],fN.prototype,"guidePersistentAndVisible",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],fN.prototype,"miniGuideVisible",void 0);_.E([_.d(),_.h("design:type",Object)],fN.prototype,"activeEndpoint",void 0);
_.E([_.FI("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fN.prototype,"onActiveEndpointChange",null);_.E([_.d(),_.h("design:type",Boolean)],fN.prototype,"guideOpened",void 0);fN=_.E([_.eA()],fN);_.GW.YtdGuideStateAwareBehavior=[];_.GW.YtdGuideStateAwareBehavior.push(fN.prototype,_.Et.YtActionHandlerBehavior);var tuY=["ytd-compact-video-renderer","ytd-playlist-video-renderer","ytd-compact-movie-renderer","ytd-playlist-panel-video-renderer"],SH=function(){var I=_.cO.apply(this,arguments)||this;I.hoverJobId=0;I.JSC$12050_touched=!1;return I};
_.R(SH,_.cO);_.u=SH.prototype;_.u.created=function(){this.useExpandableTooltip=!tuY.includes(this.is)};
_.u.attached=function(){this.hostElement.hasAttribute("lockup")||this.hostElement.setAttribute("lockup","true")};
_.u.detached=function(){this.useExpandableTooltip=!1};
_.u.lockupOnDown=function(I){this.interactionElement&&!_.q3(_.qc(I),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerDown()};
_.u.lockupOnUp=function(I){this.interactionElement&&!_.q3(_.qc(I),this.hostElement,["BUTTON".toString()])&&this.interactionElement.triggerUp()};
_.u.onTouchStart=function(){this.JSC$12050_touched=!0};
_.u.lockupOnMouseEnter=function(){var I=this,C=_.s8("kevlar_lockup_hover_delay",-1);this.JSC$12050_touched&&C>=0?(_.b$.cancelJob(this.hoverJobId),this.hoverJobId=_.b$.addJob(function(){I.lockupIsHovered=!0},8,C),this.JSC$12050_touched=!1):this.lockupIsHovered=!0};
_.u.lockupOnMouseLeave=function(){this.hoverJobId&&(_.b$.cancelJob(this.hoverJobId),this.hoverJobId=0);this.lockupIsHovered=!1};
_.u.lockupOnPopupClosed=function(I,C){var y;((y=C.popupRenderer)==null?void 0:y.is)==="ytd-menu-popup-renderer"&&(I=C.popupRenderer.veData,C=_.Si(),I&&C&&_.BQ(C,[I]))};
_.u.lockupOnLockupRequested=function(I){var C=I.detail.videoIds[0],y;I.detail&&C===((y=this.data)==null?void 0:y.videoId)&&(I.detail.returnValue=[this.data])};
_.u.lockupOnYtServiceRequestSent=function(I,C){if(I=C.actions)for(var y=0;y<I.length;y++){var k=I[y];if(k.action==="ACTION_REMOVE_VIDEO_BY_VIDEO_ID"&&C.ajaxPromise){var F=void 0,z=(F=_.l(C.endpoint,_.bv))==null?void 0:F.playlistId;F=void 0;k=(F=k.removedVideoId)!=null?F:"";Drm(_.gf(),k,z)}else k.action==="ACTION_REMOVE_VIDEO"&&C.ajaxPromise&&(z=void 0,k=(z=k.setVideoId)!=null?z:"",_.pxq(_.gf(),k))}};
_.u.lockupOnLockupDisabled=function(){this.interactionElement&&(this.interactionElement.disabled=!0)};
_.u.lockupOnLockupEnabled=function(){if(!this.$){var I=_.N().resolve(_.BP).getCurrentPage(),C=this.getParentRenderer?this.getParentRenderer():void 0;_.SN(new _.ph("component not ready",this.is,this.isAttached,I==null?void 0:I.is,C==null?void 0:C.is))}this.interactionElement&&(this.interactionElement.disabled=!1)};
SH.prototype.lockupOnLockupEnabled=SH.prototype.lockupOnLockupEnabled;SH.prototype.lockupOnLockupDisabled=SH.prototype.lockupOnLockupDisabled;SH.prototype.lockupOnYtServiceRequestSent=SH.prototype.lockupOnYtServiceRequestSent;SH.prototype.lockupOnLockupRequested=SH.prototype.lockupOnLockupRequested;SH.prototype.lockupOnPopupClosed=SH.prototype.lockupOnPopupClosed;SH.prototype.lockupOnMouseLeave=SH.prototype.lockupOnMouseLeave;SH.prototype.lockupOnMouseEnter=SH.prototype.lockupOnMouseEnter;
SH.prototype.onTouchStart=SH.prototype.onTouchStart;SH.prototype.lockupOnUp=SH.prototype.lockupOnUp;SH.prototype.lockupOnDown=SH.prototype.lockupOnDown;_.E([_.d(),_.h("design:type",Object)],SH.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],SH.prototype,"lockupIsHovered",void 0);_.E([_.d(),_.h("design:type",Boolean)],SH.prototype,"lockupTouchTriggered",void 0);_.E([_.d(),_.h("design:type",Boolean)],SH.prototype,"useExpandableTooltip",void 0);
_.E([_.z$("#interaction"),_.h("design:type",Object)],SH.prototype,"interactionElement",void 0);_.E([_.km("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],SH.prototype,"lockupOnDown",null);_.E([_.km("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],SH.prototype,"lockupOnUp",null);
_.E([_.km("touchstart"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SH.prototype,"onTouchStart",null);_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SH.prototype,"lockupOnMouseEnter",null);_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SH.prototype,"lockupOnMouseLeave",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],SH.prototype,"lockupOnPopupClosed",null);_.E([_.km("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],SH.prototype,"lockupOnLockupRequested",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],SH.prototype,"lockupOnYtServiceRequestSent",null);_.E([_.km("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SH.prototype,"lockupOnLockupDisabled",null);
_.E([_.km("yt-enable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SH.prototype,"lockupOnLockupEnabled",null);SH=_.E([_.eA()],SH);_.KN=[SH.prototype];_.Jgw={YtdReduxBehavior:[]};_.Jgw.YtdReduxBehavior.push.apply(_.Jgw.YtdReduxBehavior,_.lZ);var Ax=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.disableNowPlaying=!1;I.disableTooltips=!1;I.useHoveredProperty=!1;I.hovered=!1;I.isThumbnailHovered_=!1;I.addBackground=_.V("kevlar_thumbnail_bg");I.nowPlaying=!1;I.disableRounding=!1;I.size="small";return I};
_.R(Ax,_.cO);_.u=Ax.prototype;_.u.computeThumbnailOverlaySidePanelWidth_=function(I,C){return I-C};
_.u.computeSize=function(I,C){if(!this.disableRounding){if(!I&&!C)return"small";I=Math.max(I||0,C||0);return I>=256?"large":I>=96?"medium":"small"}};
_.u.computeFinalHoveredState_=function(I,C,y){return this.nowPlaying?!1:_.V("kevlar_thumbnail_fluid")&&I?C:y};
_.u.computeHoverOverlays_=function(I,C){return I&&C?C:void 0};
_.u.onMouseEnter_=function(){this.isThumbnailHovered_=!0};
_.u.onMouseLeave_=function(){this.isThumbnailHovered_=!1};
_.u.checkMiniplayer_=function(){var I;if(((I=this.data)==null?0:I.playlistSetVideoId)&&_.V("web_enable_playlist_video_lockup_equalizer"))this.nowPlaying=!!this.data.selected;else{I=_.ck();var C=I.currentEndpoint;!this.disableNowPlaying&&C&&_.l(C,_.H$)&&this.data?(C=_.l(C,_.H$),this.nowPlaying=this.data.playlistId?C.playlistId===this.data.playlistId:C.videoId===this.data.videoId,this.isVideoPlaying=I==null?void 0:I.isVideoPlaying):this.nowPlaying=!1}};
Ax.prototype.checkMiniplayer_=Ax.prototype.checkMiniplayer_;Ax.prototype.onMouseLeave_=Ax.prototype.onMouseLeave_;Ax.prototype.onMouseEnter_=Ax.prototype.onMouseEnter_;Ax.prototype.computeHoverOverlays_=Ax.prototype.computeHoverOverlays_;Ax.prototype.computeFinalHoveredState_=Ax.prototype.computeFinalHoveredState_;Ax.prototype.computeSize=Ax.prototype.computeSize;Ax.prototype.computeThumbnailOverlaySidePanelWidth_=Ax.prototype.computeThumbnailOverlaySidePanelWidth_;
_.E([_.g(_.lZ),_.h("design:type",Object)],Ax.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],Ax.prototype,"height",void 0);_.E([_.d(),_.h("design:type",Boolean)],Ax.prototype,"bottomSidePanel",void 0);_.E([_.d(),_.h("design:type",Number)],Ax.prototype,"width",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"disableNowPlaying",void 0);
_.E([_.d({selector:_.GL}),_.h("design:type",Boolean)],Ax.prototype,"miniplayerIsActive",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"disableTooltips",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"useHoveredProperty",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"hovered",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"isThumbnailHovered_",void 0);
_.E([_.d({computed:"computeFinalHoveredState_(useHoveredProperty, hovered, isThumbnailHovered_)"}),_.h("design:type",Boolean)],Ax.prototype,"finalHoveredState_",void 0);_.E([_.d({computed:"computeThumbnailOverlaySidePanelWidth_(width, height)"}),_.h("design:type",Number)],Ax.prototype,"thumbnailOverlaySidePanelWidth_",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ax.prototype,"addBackground",void 0);
_.E([_.d({computed:"computeHoverOverlays_(finalHoveredState_, data.thumbnailOverlays)"}),_.h("design:type",Object)],Ax.prototype,"hoverOverlays_",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ax.prototype,"nowPlaying",void 0);_.E([_.d(),_.h("design:type",Boolean)],Ax.prototype,"isVideoPlaying",void 0);_.E([_.d(),_.h("design:type",Object)],Ax.prototype,"disableRounding",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeSize(width, height, disableRounding)"}),_.h("design:type",Object)],Ax.prototype,"size",void 0);_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ax.prototype,"onMouseEnter_",null);_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ax.prototype,"onMouseLeave_",null);
_.E([_.FI("data","disableNowPlaying","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ax.prototype,"checkMiniplayer_",null);Ax=_.E([_.eA()],Ax);var Of5=[Ax.prototype];_.gn={YtPlayerListenerBehavior:{created:function(){this.playerListeners_=new Map},
getPlayerListenerKey_:function(I,C){return I+":"+_.ow(C)},
getPlayerListener_:function(I,C,y){I=this.getPlayerListenerKey_(I,C);C=this.playerListeners_.get(I);y&&this.playerListeners_.delete(I);return C},
savePlayerListener_:function(I,C){var y=C.bind(this);this.playerListeners_.set(this.getPlayerListenerKey_(I,C),y);return y},
listenToPlayerEvent:function(I,C,y){y=this.savePlayerListener_(C,y);I.addEventListener(C,y)},
listenToPlayerEvents:function(I,C){C.forEach(function(y,k){this.listenToPlayerEvent(I,k,y)}.bind(this))},
unlistenFromPlayerEvent:function(I,C,y){y=this.getPlayerListener_(C,y,!0);I.removeEventListener(C,y)},
unlistenFromPlayerEvents:function(I,C){C.forEach(function(y,k){this.unlistenFromPlayerEvent(I,k,y)}.bind(this))}}};
_.vw=function(){};_.ajb=new _.Jj("PLAYER_API_TOKEN");var hZH=!1,JgF,HfK=!1,ajm;var tU=function(I,C,y,k,F){_.LL.call(this);var z=this;this.playerId=C;this.webPlayerContextConfig=k;this.n37=F;this.lei=!1;this.api={};this.szZ=this.tNq=null;this.uwM=new _.rC;this.vw={};this.ktN=this.oNV=this.elementId=this.upw=this.config=null;this.rcF=!1;this.xq=this.bIN=null;this.dbZ={};this.eHb=["onReady"];this.lastError=null;this.a1t=NaN;this.nOM={};this.fxI=0;this.gR=this.targetElement=I;_.kq(this,this.uwM);Muw(this);y?this.fxI=setTimeout(function(){z.loadNewVideoConfig(y)},0):k&&(Imq(this),
ClY(this))};
_.R(tU,_.LL);tU.prototype.getId=function(){return this.playerId};
tU.prototype.loadNewVideoConfig=function(I){if(!this.isDisposed()){this.fxI&&(clearTimeout(this.fxI),this.fxI=0);var C=I||{};C instanceof GZ8||(C=new GZ8(C));this.config=C;this.setConfig(I);ClY(this);this.isReady()&&sGc(this)}};
var Imq=function(I){var C;I.webPlayerContextConfig?C=I.webPlayerContextConfig.rootElementId:C=I.config.attrs.id;I.elementId=C||I.elementId;I.elementId==="video-player"&&(I.elementId=I.playerId,I.webPlayerContextConfig?I.webPlayerContextConfig.rootElementId=I.playerId:I.config.attrs.id=I.playerId);var y;((y=I.gR)==null?void 0:y.id)===I.elementId&&(I.elementId+="-player",I.webPlayerContextConfig?I.webPlayerContextConfig.rootElementId=I.elementId:I.config.attrs.id=I.elementId)};
tU.prototype.setConfig=function(I){this.upw=I;this.config=owd(I);Imq(this);if(!this.oNV){var C;this.oNV=yQY(this,((C=this.config.args)==null?void 0:C.jsapicallback)||"onYouTubePlayerReady")}this.config.args?this.config.args.jsapicallback=null:this.config.args={jsapicallback:null};var y;if((y=this.config)==null?0:y.attrs)I=this.config.attrs,(C=I.width)&&this.gR&&(this.gR.style.width=Wz(Number(C)||C,!0)),(I=I.height)&&this.gR&&(this.gR.style.height=Wz(Number(I)||I,!0))};
var sGc=function(I){if(I.config&&I.config.loaded!==!0)if(I.config.loaded=!0,!I.config.args||I.config.args.autoplay!=="0"&&I.config.args.autoplay!==0&&I.config.args.autoplay!==!1){var C;I.api.loadVideoByPlayerVars((C=I.config.args)!=null?C:null)}else I.api.cueVideoByPlayerVars(I.config.args)},Ffw=function(I){var C=!0,y=I.getPlayerElement();
y&&I.config&&(C=y.dataset.version===kww(I));return C&&!!_.d5("yt.player.Application.create")},ClY=function(I){if(!I.isDisposed()&&!I.rcF){var C=Ffw(I);
if(C&&(I.getPlayerElement()?"html5":null)==="html5")I.ktN="html5",I.isReady()||u6P(I);else if(zHc(I),I.ktN="html5",C&&I.xq&&I.targetElement)I.targetElement.appendChild(I.xq),u6P(I);else{I.config&&(I.config.loaded=!0);var y=!1;I.bIN=function(){y=!0;var k=Tjw(I,"player_bootstrap_method")?_.d5("yt.player.Application.createAlternate")||_.d5("yt.player.Application.create"):_.d5("yt.player.Application.create");var F=I.config?owd(I.config):void 0;k&&k(I.targetElement,F,I.webPlayerContextConfig,I.n37);u6P(I)};
I.rcF=!0;C?I.bIN():(_.W$(kww(I),I.bIN),(C=cQq(I))&&rjW(C||""),eHq(I)&&!y&&_.U8("yt.player.Application.create",null))}}};
tU.prototype.getPlayerElement=function(){var I=_.HP(document,this.elementId);!I&&this.gR&&this.gR.querySelector&&(I=this.gR.querySelector("#"+this.elementId));return I};
var u6P=function(I){if(!I.isDisposed()){var C=I.getPlayerElement(),y=!1;C&&C.getApiInterface&&C.getApiInterface()&&(y=!0);if(y){I.rcF=!1;if(!Tjw(I,"html5_remove_not_servable_check_killswitch")){var k;if((C==null?0:C.isNotServable)&&I.config&&(C==null?0:C.isNotServable((k=I.config.args)==null?void 0:k.video_id)))return}rQe(I)}else I.a1t=setTimeout(function(){u6P(I)},50)}},rQe=function(I){Muw(I);
I.lei=!0;var C=I.getPlayerElement();if(C){I.tNq=ire(I,C,"addEventListener");I.szZ=ire(I,C,"removeEventListener");var y=C.getApiInterface();y=y.concat(C.getInternalApiInterface());for(var k=I.api,F=0;F<y.length;F++){var z=y[F];k[z]||(k[z]=ire(I,C,z))}}for(var c in I.vw)I.vw.hasOwnProperty(c)&&I.tNq&&I.tNq(c,I.vw[c]);sGc(I);I.oNV&&I.oNV(I.api);I.uwM.publish("onReady",I.api)},ire=function(I,C,y){var k=C[y];
return function(){var F=_.wa.apply(0,arguments);try{return I.lastError=null,k.apply(C,F)}catch(z){if(y!=="sendAbandonmentPing")throw z.params=y,I.lastError=z,F=new _.ph("PlayerProxy error in method call",{error:z,method:y,playerId:I.playerId}),F.level="WARNING",F;}}},Muw=function(I){I.lei=!1;
if(I.szZ)for(var C in I.vw)I.vw.hasOwnProperty(C)&&I.szZ(C,I.vw[C]);for(var y in I.nOM)I.nOM.hasOwnProperty(y)&&clearTimeout(Number(y));I.nOM={};I.tNq=null;I.szZ=null;C=I.api;for(var k in C)C.hasOwnProperty(k)&&(C[k]=null);C.addEventListener=function(F,z){I.addEventListener(F,z)};
C.removeEventListener=function(F,z){I.removeEventListener(F,z)};
C.destroy=function(){I.dispose()};
C.getLastError=function(){return I.getLastError()};
C.getPlayerType=function(){return I.getPlayerType()};
C.getCurrentVideoConfig=function(){return I.upw};
C.loadNewVideoConfig=function(F){I.loadNewVideoConfig(F)};
C.isReady=function(){return I.isReady()}};
tU.prototype.isReady=function(){return this.lei};
tU.prototype.addEventListener=function(I,C){var y=this;this.isDisposed();var k=yQY(this,C);k&&(_.qz(this.eHb,I)||this.vw[I]||(C=wZw(this,I),this.tNq&&this.tNq(I,C)),this.uwM.subscribe(I,k),I==="onReady"&&this.isReady()&&setTimeout(function(){k(y.api)},0))};
tU.prototype.removeEventListener=function(I,C){this.isDisposed()||(C=yQY(this,C))&&this.uwM.unsubscribe(I,C)};
var yQY=function(I,C){var y=C;if(typeof C==="string"){if(I.dbZ[C])return I.dbZ[C];y=function(){var k=_.wa.apply(0,arguments),F=_.d5(C);if(F)try{F.apply(_.sF,k)}catch(z){throw k=new _.ph("PlayerProxy error when executing callback",{error:z}),k.level="ERROR",k;}};
I.dbZ[C]=y}return y?y:null},wZw=function(I,C){var y=function(k){var F=function(){I.isDisposed();
if(!I.isDisposed())try{I.uwM.publish(C,k!=null?k:void 0)}catch(r){var c=new _.ph("PlayerProxy error when creating global callback",{error:r.message,event:C,playerId:I.playerId,data:k,originalStack:r.stack,componentStack:r.componentStack});c.level="WARNING";throw c;}};
if(Tjw(I,"web_player_publish_events_immediately"))F();else{var z=setTimeout(function(){F();_.Le.remove(I.nOM,String(z))},0);
_.Le.add(I.nOM,String(z),!0)}};
return I.vw[C]=y};
tU.prototype.getPlayerType=function(){return this.ktN||(this.getPlayerElement()?"html5":null)};
tU.prototype.getLastError=function(){return this.lastError};
var zHc=function(I){I.cancel();Muw(I);I.ktN=null;I.config&&(I.config.loaded=!1);var C=I.getPlayerElement();C&&(Ffw(I)||!eHq(I)?I.xq=C:(C&&C.destroy&&C.destroy(),I.xq=null));I.targetElement&&_.GE(I.targetElement)};
tU.prototype.cancel=function(){this.bIN&&_.AZs(kww(this),this.bIN);clearTimeout(this.a1t);this.rcF=!1};
tU.prototype.disposeInternal=function(){zHc(this);if(this.xq&&this.config&&this.xq.destroy)try{this.xq.destroy()}catch(C){var I=new _.ph("PlayerProxy error during disposal",{error:C});I.level="ERROR";throw I;}this.dbZ=null;for(I in this.vw)this.vw.hasOwnProperty(I)&&delete this.vw[I];this.upw=this.config=this.api=null;delete this.targetElement;delete this.gR;_.LL.prototype.disposeInternal.call(this)};
var eHq=function(I){var C,y;I=(C=I.config)==null?void 0:(y=C.args)==null?void 0:y.fflags;return!!I&&I.indexOf("player_destroy_old_version=true")!==-1},kww=function(I){return I.webPlayerContextConfig?I.webPlayerContextConfig.jsUrl:(I=I.config.assets)?I.js:""},cQq=function(I){return I.webPlayerContextConfig?I.webPlayerContextConfig.cssUrl:(I=I.config.assets)?I.css:""},Tjw=function(I,C){if(I.webPlayerContextConfig)var y=I.webPlayerContextConfig.serializedExperimentFlags;
else{var k;if((k=I.config)==null?0:k.args)y=I.config.args.fflags}return(y||"").split("&").includes(C+"=true")},owd=function(I){for(var C={},y=_.T(Object.keys(I)),k=y.next();!k.done;k=y.next()){k=k.value;
var F=I[k];C[k]=typeof F==="object"?_.Le.clone(F):F}return C};var owW={},sGX="player_uid_"+(Math.random()*1E9>>>0);var Ww=function(I,C,y,k,F,z){C=C===void 0?document.createElement("div"):C;this.webPlayerContextConfig=I;this.container=C;this.commandResolver=y;this.apiResolver=Ffm();this.pageReadyOrDataAvailable=!1;this.pageReadyOrDataAvailableResolver=new _.ug;k||z?nwS(this):Pl0(this);this.pendingPlayerResponse=k;this.pendingWatchNextResponse=F;this.pendingPlayerVars=z;Lf8(this)};
Ww.prototype.loadVideoWithPlayerResponse=function(I,C,y){this.loadVideo(I,C,y)};
Ww.prototype.loadVideoWithPlayerVars=function(I){return this.loadVideo(void 0,void 0,I)};
Ww.prototype.destroy=function(I){if(I=_.HP(document,I))I=sGX+"_"+_.ow(I),(I=owW[I])&&I.dispose()};
var pZw=function(I,C){var y;_.e(function(k){if(k.nextAddress==1)return I.pendingWatchNextResponse=C,I.synchronousApi?(y=I.synchronousApi,k.jumpTo(2)):_.n(k,I.api,3);k.nextAddress!=2&&(y=k.yieldResult);D68(I,y);I.pendingWatchNextResponse&&(y.updateVideoData({raw_watch_next_response:I.pendingWatchNextResponse}),I.pendingWatchNextResponse=void 0);_.oI(k)})},D68=function(I,C){var y;
if(!(C==null?0:(y=C.isReady)==null?0:y.call(C))){var k;I=new _.ph("playerApi is falsey",{synchronousApi:I.synchronousApi,apiResolved:I.apiResolver.resolved,playerApiUndefined:C===void 0,playerApiNull:C===null,playerApiReady:(C==null?void 0:(k=C.isReady)==null?void 0:k.call(C))===!0,playerApiMethods:C?Object.keys(C):[]});_.GB(I)}},QGm=function(I,C){if(typeof I[C]==="function")return I[C]()},Nj5=function(I){var C=window,y,k=(y=C.ytplayer)==null?void 0:y.bootstrapPlayerContainer;
if((y=k==null?void 0:k.firstElementChild)&&_.d1(y,"html5-video-player")){var F,z,c=(F=C.ytplayer)==null?void 0:(z=F.bootstrapWebPlayerContextConfig)==null?void 0:z.contextId;F=I.webPlayerContextConfig.contextId;if(c&&c===F){k!==I.container&&(k=!1,QGm(y,"getPlayerState")===2&&(k=!0),I.container.appendChild(y),k||QGm(y,"playVideo"));var r;if((r=C.ytplayer)==null?0:r.bootstrapPlayerResponse)I.bootstrapPlayerResponse=C.ytplayer.bootstrapPlayerResponse}}},Lf8=function(I){var C,y,k,F,z;
_.e(function(c){if(c.nextAddress==1)return I.pageReadyOrDataAvailable?c.jumpTo(2):_.n(c,I.pageReadyOrDataAvailableResolver.promise,2);if(c.nextAddress!=4)return!_.V("kevlar_player_unified_player_loading")||UIs()&&tut()?c.jumpTo(4):_.n(c,Imz(),4);Nj5(I);if(I.pendingPlayerResponse||I.pendingPlayerVars)C=Clt(I.pendingPlayerResponse,I.pendingWatchNextResponse,I.pendingPlayerVars),I.pendingPlayerResponse&&I.pendingPlayerResponse===I.bootstrapPlayerResponse&&(C.loaded=!0),I.bootstrapPlayerResponse=void 0;
y=kwF(I.container,C,I.webPlayerContextConfig);((k=C)==null?0:k.loaded)&&I.pendingWatchNextResponse?(pZw(I,I.pendingWatchNextResponse),I.pendingPlayerResponse=void 0,I.pendingPlayerVars=void 0):VSq(I);F=function(r){y.removeEventListener("onReady",F);I.synchronousApi=r;I.apiResolver.resolve(r)};
y.addEventListener("onReady",F);I.commandResolver!==void 0&&(z=I.commandResolver,y.addEventListener("innertubeCommand",function(r){z(r)}));
_.oI(c)})};
Ww.prototype.loadVideo=function(I,C,y){var k=this,F,z,c,r,w,L,D,p,Q;return _.e(function(X){if(X.nextAddress==1)return k.pendingPlayerResponse=I,k.pendingWatchNextResponse=C,k.pendingPlayerVars=y,nwS(k),k.synchronousApi?(F=k.synchronousApi,X.jumpTo(2)):_.n(X,k.api,3);X.nextAddress!=2&&(F=X.yieldResult);D68(k,F);c=new Promise(function(b){z=b});
r=function(){var b=F.getPlayerResponse();b&&(F.removeEventListener("onVideoDataChange",r),z(b))};
F.addEventListener("onVideoDataChange",r);if(k.pendingPlayerResponse||k.pendingPlayerVars)k.pendingPlayerResponse&&k.pendingPlayerResponse===k.bootstrapPlayerResponse?(z(k.pendingPlayerResponse),k.pendingWatchNextResponse&&pZw(k,k.pendingWatchNextResponse)):(w=Clt(k.pendingPlayerResponse,k.pendingWatchNextResponse,k.pendingPlayerVars),(Q=(L=k.pendingPlayerResponse)==null?void 0:(D=L.playerConfig)==null?void 0:(p=D.playbackStartConfig)==null?void 0:p.startPaused)?F.cueVideoByPlayerVars(w.args):F.loadVideoByPlayerVars(w.args)),
VSq(k),k.bootstrapPlayerResponse=void 0;return X.return(c)})};
var Pl0=function(I){if(document.readyState==="complete"||document.readyState==="interactive")nwS(I);else{var C=function(){document.removeEventListener("DOMContentLoaded",C);nwS(I)};
document.addEventListener("DOMContentLoaded",C)}},nwS=function(I){I.pageReadyOrDataAvailable=!0;
I.pageReadyOrDataAvailableResolver.resolve()},VSq=function(I){I.pendingPlayerResponse=void 0;
I.pendingWatchNextResponse=void 0;I.pendingPlayerVars=void 0};
_.H1.Object.defineProperties(Ww.prototype,{api:{configurable:!0,enumerable:!0,get:function(){return this.apiResolver.promise}}});var dn=function(I){bp.call(this,I===void 0?"document_active":I);var C=this;this.overridePriority=10;this.hasRun=new Map;this.transitions=[{from:"document_active",to:"document_disposed_preventable",action:this.runPreventableDispose},{from:"document_active",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"document_disposed",action:this.runDispose},{from:"document_disposed_preventable",to:"flush_logs",action:this.runFlush},{from:"document_disposed_preventable",
to:"document_active",action:this.runActive},{from:"document_disposed",to:"flush_logs",action:this.runFlush},{from:"document_disposed",to:"document_active",action:this.runActive},{from:"document_disposed",to:"document_disposed",action:function(){}},
{from:"flush_logs",to:"document_active",action:this.runActive}];window.addEventListener("pagehide",function(y){C.transition("document_disposed",{event:y})});
window.addEventListener("beforeunload",function(y){C.transition("document_disposed_preventable",{event:y})});
window.addEventListener("unload",function(y){C.transition("document_disposed",{event:y});C.hasRun=new Map})};
_.R(dn,bp);
dn.prototype.runPreventableDispose=function(I,C){if(!this.hasRun.get("document_disposed_preventable")){I(C==null?void 0:C.event);var y,k;if((C==null?0:(y=C.event)==null?0:y.defaultPrevented)||(C==null?0:(k=C.event)==null?0:k.returnValue)){C.event.returnValue||(C.event.returnValue=!0);C.event.defaultPrevented||C.event.preventDefault();this.hasRun=new Map;this.transition("document_active");return}}this.hasRun.set("document_disposed_preventable",!0);this.hasRun.get("document_disposed")?this.transition("flush_logs"):this.transition("document_disposed")};
dn.prototype.runDispose=function(I,C){this.hasRun.get("document_disposed")?this.transition("document_active"):(I(C==null?void 0:C.event),this.hasRun.set("document_disposed",!0),this.transition("flush_logs"))};
dn.prototype.runFlush=function(I,C){I(C==null?void 0:C.event);this.transition("document_active")};
dn.prototype.runActive=function(){};var xx=function(I){bp.call(this,I===void 0?"document_visibility_unknown":I);var C=this;this.transitions=[{from:"document_visibility_unknown",to:"document_visible",action:this.runVisible},{from:"document_visibility_unknown",to:"document_hidden",action:this.runHidden},{from:"document_visibility_unknown",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visibility_unknown",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_visible",to:"document_hidden",action:this.runHidden},
{from:"document_visible",to:"document_foregrounded",action:this.runForegrounded},{from:"document_visible",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_visible",action:this.runVisible},{from:"document_foregrounded",to:"document_hidden",action:this.runHidden},{from:"document_foregrounded",to:"document_foregrounded",action:this.runForegrounded},{from:"document_hidden",to:"document_visible",action:this.runVisible},{from:"document_hidden",to:"document_backgrounded",
action:this.runBackgrounded},{from:"document_hidden",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_hidden",action:this.runHidden},{from:"document_backgrounded",to:"document_backgrounded",action:this.runBackgrounded},{from:"document_backgrounded",to:"document_visible",action:this.runVisible}];document.addEventListener("visibilitychange",function(y){document.visibilityState==="visible"?C.transition("document_visible",{event:y}):C.transition("document_hidden",
{event:y})});
_.V("visibility_lifecycles_dynamic_backgrounding")&&(window.addEventListener("blur",function(y){C.transition("document_backgrounded",{event:y})}),window.addEventListener("focus",function(y){C.transition("document_foregrounded",{event:y})}))};
_.R(xx,bp);xx.prototype.runVisible=function(I,C){I(C==null?void 0:C.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_foregrounded")};
xx.prototype.runHidden=function(I,C){I(C==null?void 0:C.event);_.V("visibility_lifecycles_dynamic_backgrounding")&&this.transition("document_backgrounded")};
xx.prototype.runBackgrounded=function(I,C){I(C==null?void 0:C.event)};
xx.prototype.runForegrounded=function(I,C){I(C==null?void 0:C.event)};var qf=function(){this.teardownLifecycle=new dn;this.visibilityLifecycle=new xx};
qf.prototype.install=function(){var I=_.wa.apply(0,arguments),C=this;I.forEach(function(y){C.teardownLifecycle.install(y)});
I.forEach(function(y){C.visibilityLifecycle.install(y)})};var mB=function(){qf.call(this);var I={};this.install((I.document_disposed={callback:this.abortSlisAndFlush},I));_.V("combine_ve_grafts")&&(I={},this.install((I.document_disposed={callback:this.flushInteractionLoggingAttachVes},I)));I={};this.install((I.flush_logs={callback:this.logFinalPayload},I));_.V("web_log_cfg_cee_ks")||_.NU(_.b$,jGm)};
_.R(mB,qf);var u6Y=function(){mB.loggingInstance||(mB.loggingInstance=new mB);return mB.loggingInstance};
mB.prototype.logFinalPayload=function(){if(_.V("web_fp_via_jspb")){var I=new Pfu,C=_.Si();C&&_.zT(I,1,C);C=_.V("jspb_sparse_encoded_pivot")?new QB([{}]):new QB;_.Om(C,380,LoP,I);SUm("finalPayload",C);_.V("web_fp_via_jspb_and_json")&&_.b2("finalPayload",{csn:_.Si()})}else _.b2("finalPayload",{csn:_.Si()})};
mB.prototype.abortSlisAndFlush=function(){w7S(v3);W3!=null&&W3.flush()};
mB.prototype.flushInteractionLoggingAttachVes=function(){Axe(_.e2())};
var jGm=function(){var I=_.Aq("CLIENT_EXPERIMENT_EVENTS");if(I){var C=dzX();I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,C(y)&&_.b2("genericClientExperimentEvent",{eventType:y});delete _.SR.CLIENT_EXPERIMENT_EVENTS}};var lme={};
lme.YtPlayerBehavior=[_.gn.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 I=this;this.player_=null;this.useUnifiedPlayer_()&&(this.mainAppPlayer_=void 0);this.playerResolver_=new _.ug;this.playerContainer_=this.initPlayerPromise_=null;this.preparePlayerJobId_=0;
this.isResetForNewPlayback_=!0;this.bootstrapPlayerResponse_=void 0;zHX(function(){I.maybeSendAbandonmentPing_()})},
attached:function(){this.disableTouchGestures||(_.G2(this,"pan-down"),_.V("kevlar_pinch_fullscreen")&&_.yL().registerTouchEvents(this,void 0,void 0,"pinchout","pinchin"))},
detached:function(){!this.disableTouchGestures&&_.V("kevlar_pinch_fullscreen")&&_.yL().unregisterTouchEvents(this,"pinchout","pinchin")},
createMainAppPlayer_:function(I,C,y){var k=this;JU(this.useUnifiedPlayer_());if(this.mainAppPlayer_)JU(!1,"MainAppPlayer already created.");else{var F=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.f(this.hostElement).querySelector("#container");this.mainAppPlayer_=new Ww(this.getWebPlayerContextConfig_(),F,function(z){return _.uU(z,k.hostElement)},I,C,y);
this.mainAppPlayer_.api.then(function(z){k.player_=z;k.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&SQb.resolve(z)})}},
loadVideoWithPlayerResponse:function(I,C){var y=this;if(this.useUnifiedPlayer_()){var k=this.watchNextData,F,z=(F=I.videoDetails)==null?void 0:F.videoId,c,r,w;(F=(c=this.watchNextData)==null?void 0:(r=c.currentVideoEndpoint)==null?void 0:(w=r.watchEndpoint)==null?void 0:w.videoId)&&z!=F&&(k=void 0,_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0));this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerResponse(I,k,C):this.createMainAppPlayer_(I,k,C);this.mainAppPlayer_.api.then(function(){_.k3(y.hostElement,
"yt-player-updated")})}else this.update(ZfF(I,C))},
loadVideoWithPlayerVars:function(I){var C=this;this.useUnifiedPlayer_()?(_.V("kevlar_unified_player_clear_watch_next_killswitch")&&(this.watchNextData=void 0),this.mainAppPlayer_?this.mainAppPlayer_.loadVideoWithPlayerVars(I):this.createMainAppPlayer_(void 0,void 0,I),this.mainAppPlayer_.api.then(function(){_.k3(C.hostElement,"yt-player-updated")})):this.update({args:I})},
update:function(I){var C=this;if(this.useUnifiedPlayer_())JU(!1,"Invalid method call in kevlar_unified_player.");else{if(this.hasWebPlayerContextConfig_()){this.updateSwfConfig_(I);var y=U2z(I.args);y&&this.get("currentVideoEndpoint.watchEndpoint.videoId",this.watchNextData)==y&&Object.assign(I.args,this.computeWatchNextPlayerVars_(this.watchNextData));this.isResetForNewPlayback_=!1;return this.acquireApi_(I).then(function(k){_.k3(C.hostElement,"yt-player-updated",_.V("kevlar_player_updated_obsolete_player_killswitch")?
k:void 0)})}_.fi(new _.ph("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))}},
updatePlayerComponents:function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.getPlayerPromise(),2);y=k.yieldResult;if(!y)throw Error("vh");I&&C.updatePlayerPlaylist_(I);_.oI(k)})},
acquireApi_:function(I){var C=this;if(this.useUnifiedPlayer_())JU(!1,"Invalid method call in kevlar_unified_player.");else return _.b$.cancelJob(this.preparePlayerJobId_),this.playerContainer_?(JU(this.initPlayerPromise_,"Missing initPlayerPromise_."),this.getPlayerPromise().then(function(y){C.shouldAutoplay_(I)?y.loadVideoByPlayerVars(I.args):y.cueVideoByPlayerVars(I.args)})):this.initPlayerPromise_=this.initPlayerContainer_(I),this.initPlayerPromise_},
initPlayerContainer_:function(I){var C=this;if(this.useUnifiedPlayer_())JU(!1,"Invalid method call in kevlar_unified_player.");else return JU(!this.initPlayerPromise_,"Player is already initialized."),this.initPlayerPromise_&&_.SN(Error("wh")),JU(!this.playerContainer_,"ytd-player should only be initialized once."),this.playerContainer_=_.V("kevlar_player_container_query_killswitch")?this.$.container:_.f(this.hostElement).querySelector("#container"),Imz().then(function(){var y=C.initPlayer_(I);C.playerResolver_.resolve(y);
return y})},
onPlayerReady_:function(I,C){this.useUnifiedPlayer_()?JU(!1,"Invalid method call in kevlar_unified_player."):(I.removeEventListener("onReady",this.onPlayerReadyEvent_),this.context==="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH"&&SQb.resolve(I),C(I))},
maybeCallApiMethodOnElement_:function(I,C){if(typeof I[C]==="function")return I[C]()},
maybeAdoptBootstrapPlayer_:function(){var I=window,C,y=(C=I.ytplayer)==null?void 0:C.bootstrapPlayerContainer;if((C=y==null?void 0:y.firstElementChild)&&C.classList.contains("html5-video-player")){var k,F,z=(k=I.ytplayer)==null?void 0:(F=k.bootstrapWebPlayerContextConfig)==null?void 0:F.contextId;k=this.getWebPlayerContextConfig_().contextId;if(z&&z===k){y!==this.playerContainer_&&(y=!1,this.maybeCallApiMethodOnElement_(C,"getPlayerState")===2&&(y=!0),this.playerContainer_.appendChild(C),y||this.maybeCallApiMethodOnElement_(C,
"playVideo"));var c;if((c=I.ytplayer)==null?0:c.bootstrapPlayerResponse)this.bootstrapPlayerResponse_=I.ytplayer.bootstrapPlayerResponse}}},
initPlayer_:function(I){var C=this;if(this.useUnifiedPlayer_())JU(!1,"Invalid method call in kevlar_unified_player.");else return new Promise(function(y){C.maybeAdoptBootstrapPlayer_();var k=I?BzX(I):void 0;k&&k==C.bootstrapPlayerResponse_&&(I.loaded=!0);k=C.playerContainer_;var F=C.getWebPlayerContextConfig_();k=kwF(k,I,F);C.player_=k;C.onPlayerReadyEvent_=C.onPlayerReady_.bind(C,C.player_,y);C.player_.addEventListener("onReady",C.onPlayerReadyEvent_);C.player_.addEventListener("innertubeCommand",
C.onPlayerInnerTubeCommand_.bind(C))})},
getPlayerPromise:function(){return this.useUnifiedPlayer_()?(this.mainAppPlayer_||this.createMainAppPlayer_(),this.mainAppPlayer_.api):this.playerResolver_.promise},
getPlayer:function(){return this.player_&&this.player_.isReady()?this.player_:null},
pause:function(){this.getPlayerPromise().then(function(I){I.pauseVideo()})},
play:function(){this.getPlayerPromise().then(function(I){I.playVideo()})},
onTouchStart_:function(){if(!this.disableTouchGestures){var I=_.N().resolve(_.BP).getCurrentPage();I&&I.getScrollTop()<=0?_.G2(this,"pan-down"):_.G2(this,"manipulation")}},
onPinchOut_:function(){this.getPlayerPromise().then(function(I){I.isFullscreen()||I.toggleFullscreen()})},
onPinchIn_:function(){this.getPlayerPromise().then(function(I){I.isFullscreen()&&I.toggleFullscreen()})},
updatePlayerPlaylist_:function(I){var C=this,y,k,F;return _.e(function(z){if(z.nextAddress==1)return y=_.N().resolve(_.aU(_.Gk)),k=!!(y&&y.playlistComponent&&y.playlistComponent.loopOn),_.n(z,C.getPlayerPromise(),2);var c=F=z.yieldResult,r=c.updatePlaylist,w=[];if(_.V("kevlar_player_playlist_use_local_index")){var L,D;var p=(D=(L=I.localCurrentIndex)!=null?L:I.currentIndex)!=null?D:0}else{var Q;p=(Q=I.currentIndex)!=null?Q:0}if(I.contents)for(L=0;L<I.contents.length;L++)if((D=I.contents[L])&&D.playlistPanelVideoRenderer)if(Zu9(D)){D=
D.playlistPanelVideoRenderer;Q="";D.shortBylineText&&(Q=_.hS(D.shortBylineText));var X="";D.title?X=_.hS(D.title):D.unplayableText&&(X=_.hS(D.unplayableText));w.push({author:Q,title:X,encrypted_id:D.videoId})}else L<p&&--p;r.call(c,{index:p,list:I.playlistId?I.playlistId:"",loop:k,playlist_title:I.title,playlist_length:w.length,video:w,fetch:0,external_list:"1",title:I.title?I.title:"",playlist_author:I.ownerName?_.hS(I.ownerName):void 0});_.oI(z)})},
focusOnPlayer:function(){_.hn(this,function(){if(this.playerContainer_&&this.playerContainer_.firstElementChild){var I=this.playerContainer_.querySelector(".html5-video-player");I&&(_.XZ8(_.N().resolve(_.Qc)),I.focus())}})},
preparePlayer:function(){var I=this;this.useUnifiedPlayer_()?this.mainAppPlayer_||this.createMainAppPlayer_():this.hasWebPlayerContextConfig_()?this.initPlayerPromise_||(new Promise(function(C){if(document.readyState=="complete"||document.readyState=="ready"||document.readyState=="interactive")C();else{var y=function(){document.removeEventListener("DOMContentLoaded",y);C()};
document.addEventListener("DOMContentLoaded",y)}})).then(function(){return Imz()}).then(function(){I.initPlayerPromise_||I.preparePlayerJobId_||(I.preparePlayerJobId_=_.NU(_.b$,function(){I.initPlayerPromise_||(I.initPlayerPromise_=I.initPlayerContainer_())}))}):_.fi(new _.ph("Cannot initialize player for this context without a WebPlayerContextConfig.",this.context))},
updateSwfConfig_:function(I){this.useUnifiedPlayer_()?JU(!1,"Invalid method callin kevlar_unified_player."):this.shouldAutoplay_(I)||(I.args.autoplay="0")},
shouldAutoplay_:function(I){if(this.useUnifiedPlayer_())JU(!1,"Invalid method call in kevlar_unified_player.");else{var C=this.get("args.el",I);return C&&C!="detailpage"&&this.isMiniplayerActive_()||C&&(C=="sponsorshipsoffer"||C=="handlesclaiming")&&this.get("args.autoplay",I)=="0"?!1:(I=BzX(I))&&this.get("playerConfig.playbackStartConfig.startPaused",I)?!1:!0}},
isMiniplayerActive_:function(){return _.N().resolve(_.WJ).isMiniplayerActive()},
stop:function(){this.maybeSendAbandonmentPing_();var I=this.getPlayer();if(I){var C=I.getPlayerState();_.V("kevlar_player_check_ad_state_on_stop")&&(C=I.getPlayerState(I.getPresentingPlayerType()));C!=5&&I.stopVideo()}},
resetForNewPlayback:function(){this.isResetForNewPlayback_||(this.stop(),this.isResetForNewPlayback_=!0)},
appendTo:function(I,C,y){y=y===void 0?!1:y;var k=this,F,z,c,r;return _.e(function(w){if(w.nextAddress==1)return C||(C=k.hostElement),F=k.useUnifiedPlayer_()?!!k.mainAppPlayer_:!!k.initPlayerPromise_,F?_.n(w,k.getPlayerPromise(),2):(y?I.insertBefore(C,I.firstChild):I.appendChild(C),w.return());z=w.yieldResult;c=z.getPlayerState(z.getPresentingPlayerType());r=!1;if(c==-1||c==1||c==3)r=!0;y?I.insertBefore(C,I.firstChild):I.appendChild(C);r&&z.playVideo();z.setSize(NaN,NaN);_.oI(w)})},
watchNextDataChanged_:function(I){var C=this;I&&(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch")?this.mainAppPlayer_&&pZw(this.mainAppPlayer_,I):this.getPlayerPromise().then(function(y){y.updateVideoData(C.computeWatchNextPlayerVars_(I))}))},
computeWatchNextPlayerVars_:function(I){if(this.useUnifiedPlayer_()&&_.V("kevlar_unified_player_update_watch_next_killswitch"))JU(!1,"Invalid method call in kevlar_unified_player.");else return{raw_watch_next_response:I}},
maybeSendAbandonmentPing_:function(){var I=this.getPlayer();I&&I.getPlayerState()!=5&&I.getPlayerState()!=0&&I.sendAbandonmentPing()},
getWebPlayerContextConfig_:function(){var I=_.Aq("WEB_PLAYER_CONTEXT_CONFIGS")[this.context];this.playerId&&(I=Object.assign({},I),I.rootElementId=this.playerId);I.serializedExperimentIds&&I.serializedExperimentFlags||_.SN(Error("xh"));return I},
hasWebPlayerContextConfig_:function(){return!!_.Aq("WEB_PLAYER_CONTEXT_CONFIGS")&&!!this.getWebPlayerContextConfig_()},
onPlayerInnerTubeCommand_:function(I){this.useUnifiedPlayer_()?JU(!1,"Invalid method call in kevlar_unified_player."):_.uU(I,this.hostElement)},
useUnifiedPlayer_:function(){var I=_.V("kevlar_non_watch_unified_player")&&this.context!=="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH";return _.V("kevlar_unified_player")||I}}];var $6q={};$6q.YtPlaylistPanelBehavior=[_.M.YtRendererBehavior,{_noAccessors:!0,properties:{loopOn:Boolean,shuffleOn:Boolean},listeners:{"yt-toggle-button":"onYtToggleButton_"},onYtToggleButton_:function(I){I=I.detail;if(I.actions.loop!=void 0||I.actions["yt-icons:loop"]!=void 0)this.loopOn=I.actions.loop||I.actions["yt-icons:loop"];if(I.actions.shuffle!=void 0||I.actions["yt-icons:shuffle"]!=void 0)this.shuffleOn=I.actions.shuffle||I.actions["yt-icons:shuffle"]},
setMenuData_:function(I){if(!I||!I.playlistButtons||I.isInfinite)return null;for(var C=I.playlistButtons.menuRenderer.topLevelButtons,y=C.length,k=0;k<y;k++)if(C[k].toggleButtonRenderer){var F=C[k].toggleButtonRenderer;F.defaultIcon.iconType=="LOOP"&&this.loopOn?F.isToggled=this.loopOn:F.defaultIcon.iconType=="SHUFFLE"&&this.shuffleOn&&(F.isToggled=this.shuffleOn)}return I.playlistButtons}}];var RHc=function(I){sh.call(this,I,132);this.isDocument=I===document.documentElement};
_.R(RHc,sh);RHc.prototype.calculateScrollDelta=function(I,C,y){var k=0;I<C?k=I<C-100?-48:-8:I>C+y&&(k=I>C+y+100?48:8);return k};
RHc.prototype.JSC$9176_onMouseMove=function(I){this.isDocument||(I.clientX=I.event_.pageX,I.clientY=I.event_.pageY);sh.prototype.JSC$9176_onMouseMove.call(this,I)};var Zy=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.scrollElement=document.documentElement;I.JSC$12109_dragListGroup=null;I.dragScrollSupport=null;I.onDraggerCreated=function(C){var y=C.JSC$9172_dragger;y.scrollTarget_=I.scrollElement;C=C.draggerEl;y&&C.menuOpened&&y.setEnabled(!1)};
I.onDragStart=function(C){var y=C.draggerEl;C=C.currDragItem;var k=Object.assign({},C==null?void 0:C.data);k.trackingParams=void 0;y.data=k;y.style.position="absolute";y.style.width=(C==null?void 0:C.clientWidth)+"px";y.style.zIndex="2030";y.onDrag&&y.onDrag();_.V("web_owner_document_fallback_killswitch")?(C=document.querySelector("ytd-app"))&&_.f(C).appendChild(y):(C=_.V6(y),(k=C.querySelector("ytd-app"))?_.f(k).appendChild(y):C.body.appendChild(y));I.dragScrollSupport=new RHc(I.scrollElement);I.dragScrollSupport.horizontalScrolling_=
!1;y=I.dragScrollSupport;y.constrainScroll_=!!y.margin_&&!1};
I.onDrop=function(C){I.handleDrop(C);I.dragScrollSupport&&(_.Bi(I.dragScrollSupport),I.dragScrollSupport=null)};
I.onReorderableScroll=function(){if(I.JSC$12109_dragListGroup){var C=I.JSC$12109_dragListGroup;cGb(C,C.currDragItem_)}};
return I};
_.R(Zy,_.cO);Zy.prototype.detached=function(){_.brb(this)};
_.brb=function(I){I.JSC$12109_dragListGroup&&(_.Pf(I.JSC$12109_dragListGroup,Cg5,I.onDragStart),_.Pf(I.JSC$12109_dragListGroup,k8q,I.onDragStart),I.JSC$12109_dragListGroup.dispose(),I.JSC$12109_dragListGroup=null);I.dragScrollSupport&&(_.Bi(I.dragScrollSupport),I.dragScrollSupport=null);I.scrollElement.removeEventListener("scroll",I.onReorderableScroll)};
_.YO8=function(I,C,y,k){k=k===void 0?"":k;_.brb(I);y&&(I.scrollElement=y);I.JSC$12109_dragListGroup=new Ap;I.JSC$12109_dragListGroup.hysteresisDistance_=2;ulw(I.JSC$12109_dragListGroup,C);I.JSC$12109_dragListGroup.draggerElClasses_=_.oh("dragging").split(" ");k&&zMu(I.JSC$12109_dragListGroup,function(F){var z=F||document,c=null;z.getElementsByClassName?c=z.getElementsByClassName(k)[0]:c=$Ku("*",k,F);return c||F});
_.Lv(I.JSC$12109_dragListGroup,Mdd,I.onDraggerCreated);_.Lv(I.JSC$12109_dragListGroup,Cg5,I.onDragStart);_.Lv(I.JSC$12109_dragListGroup,k8q,I.onDrop);I.JSC$12109_dragListGroup.init();I.scrollElement.addEventListener("scroll",I.onReorderableScroll,{passive:!0})};
Zy.prototype.handleDrop=function(){};
_.H1.Object.defineProperties(Zy.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
_.E([_.d({value:100}),_.h("design:type",Number)],Zy.prototype,"scrollMargin",void 0);Zy=_.E([_.eA()],Zy);_.Gwe=[Zy.prototype];_.Bw={YtSparklesClickLocationBehavior:{clickTargetMap:null,containerId:null,handleClick:function(I,C,y){var k=this.getClickTarget_(C);if(k&&this.isClickAllowed_(k)){C.preventDefault();I=(0,_.Le.unsafeClone)(I);var F=this.getContainerBoundingRect();C=this.getRelativeClickXy_(C,F);this.expandEndpointUrlMacros_(I,{NX:C[0],NY:C[1],NB:k.code});y&&this.truncateWebCommendMetadataUrl_(I);_.k3(this.hostElement,"yt-navigate",{endpoint:I})}},
getClickTarget_:function(I){if(!this.clickTargetMap)return null;I=_.qc(I)||[];I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;if(C===_.f(this.hostElement).querySelector("#menu"))break;if(C=this.clickTargetMap.get(C.id))return C}return null},
getRelativeClickXy_:function(I,C){var y=I.detail.x,k=I.detail.y;_.V("use_on_click_for_desktop_display_ad")&&I.clientX!=null&&I.clientY!=null&&(y=I.clientX,k=I.clientY);I=Math.round(y-C.left);C=Math.round(k-C.top);return I<0||C<0?[null,null]:[I,C]},
getContainerBoundingRect:function(){return _.f(this.hostElement).querySelector("#"+this.containerId).getBoundingClientRect()},
expandEndpointUrlMacros_:function(I,C){for(var y=_.T(I.loggingUrls||[]),k=y.next();!k.done;k=y.next())k=k.value,k.baseUrl&&(k.baseUrl=Do(k.baseUrl,C));I.urlEndpoint&&I.urlEndpoint.url&&(I.urlEndpoint.url=Do(I.urlEndpoint.url,C));I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url&&(I.commandMetadata.webCommandMetadata.url=Do(I.commandMetadata.webCommandMetadata.url,C))},
truncateWebCommendMetadataUrl_:function(I){if(I.commandMetadata&&I.commandMetadata.webCommandMetadata&&I.commandMetadata.webCommandMetadata.url){var C=I.commandMetadata.webCommandMetadata.url,y=C.indexOf("&pp=");if(y>0){var k=C.indexOf("&",y+1);I.commandMetadata.webCommandMetadata.url=k>y&&k<C.length?C.slice(0,y)+C.slice(k):C.slice(0,y)}}},
configureClickTargets:function(I,C,y){this.containerId=I;this.clickTargetMap=new Map;I=_.T(C);for(C=I.next();!C.done;C=I.next())if(C=C.value,C.location){var k=y.get(C.location);k&&(_.a_(_.f(this.hostElement).querySelector("#"+k),"yt-simple-endpoint",this.isClickAllowed_(C)),this.clickTargetMap.set(k,C))}},
isClickAllowed_:function(I){return I.behaviorType==="PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"||I.behaviorType==="PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"}}};_.E_={};
_.E_.YtLazyListBehavior=[_.xy.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 I=(this.constructor.generatedFrom||this).observers;I||(I=[]);I.push("deepLazyListObserver_("+this.itemsPath+".*)");this.constructor.generatedFrom.observers=
I}},
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 I=this.renderElementsOutsideVisibleArea_;I&&(de8(I,4),I.processSignal())},
deepLazyListObserver_:function(I){var C=this;if(I){var y=I.value||[];if(this.itemsPath==I.path){var k=this.nonDeferredItemCount;I=0;k>-1&&y.length>k&&(I=_.Aq("REMAINING_DOVA_DEFERRED_CHUNKS",-1));I>0?(k>0&&(k=y.slice(0,k),this.setInitialItemsOnDataChanged(k)),(k=this.renderElementsOutsideVisibleArea_)?k.cancel():(k=this.renderElementsOutsideVisibleArea_=new _.mt(2,"eocs"),_.Sqm(window,"scroll",function(){return C.renderDeferredElements()})),_.ZL(k,function(){C.setInitialItemsOnDataChanged(y)}),_.KH("REMAINING_DOVA_DEFERRED_CHUNKS",
I-1)):this.setInitialItemsOnDataChanged(y)}else if(this.itemsPath+".splices"==I.path)this.onItemsUpdated_(y);
else k="shownItems"+I.path.substr(this.itemsPath.length),this.useSignals&&k==="shownItems.length"||this.notifyPath(k,I.value)}else this.cancelPendingTasks_()},
onItemsUpdated_:function(I){I&&(this.items_=this.get(this.itemsPath))&&(this.updateChangeRecord_(I),this.length_=this.items_.length,this.canShowMore=this.shownCount<this.length_,this.autoFill?(this.lastChunkTime_=Date.now(),this.tryRenderChunk_()):this.fillRemainingListItems())},
updateChangeRecord_:function(I){I=I.indexSplices;for(var C=0,y=I.length;C<y;C++){var k=I[C];if(k.index<this.shownCount&&(k.removed&&this.splice("shownItems",k.index,k.removed.length),k.addedCount)){var F=k.object.slice(k.index,k.index+k.addedCount);k=["shownItems",k.index,0];k.push.apply(k,F);this.splice.apply(this,k)}}this.shownCount=this.shownItems?this.shownItems.length:0},
setInitialItemsOnDataChanged:function(I){this.cancelPendingTasks_();I||(I=[]);this.items_=I;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&&(_.g5("DISABLE_AUTOFILL")||this.disableAutoFill?this.fillRemainingListItems():(this.chunkCount_=this.initialCount,this.lastChunkTime_=Date.now(),this.canShowMore&&_.hn(this,this.tryRenderChunk_)))},
fillRange_:function(I,C){this.canShowMore&&this.items_&&(I=this.items_.slice(I,C),I.unshift("shownItems"),this.push.apply(this,I),this.shownCount=C,this.canShowMore=this.shownCount<this.length_)},
tryRenderChunk_:function(){var I=this;this.canShowMore&&_.KK(this,"renderChunk",function(){I.requestRenderChunk_()})},
requestRenderChunk_:function(){if(_.g5("SCHEDULED_LAZY_LIST")||this.renderDelay)return this.shouldUseTaskManager()||this.canScheduleJobs?(this.cancelPendingTasks_(),this.lazyListRenderJobId_=_.LM(this.getTaskManager(),this.boundRenderChunk_,this.renderDelay),!0):!1;requestAnimationFrame(this.boundRenderChunk_);return!0},
cancelPendingTasks_:function(){this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_);var I=this.renderElementsOutsideVisibleArea_;I&&(I.cancel(),this.renderElementsOutsideVisibleArea_=null)},
renderChunk_:function(){var I=Date.now();this.chunkCount_=Math.round(this.targetFrameTime_/(I-this.lastChunkTime_)*this.chunkCount_)||this.minChunkSize;this.lastChunkTime_=I;this.fillRange_(this.shownCount,Math.min(this.shownCount+this.chunkCount_,this.length_));this.lazyListRenderJobId_=0;this.tryRenderChunk_()},
computeFrameTime_:function(I){return Math.ceil(1E3/I)},
onCanShowMoreUpdated_:function(I){this.data&&this.items_!==null&&(I?this.partiallyRenderedItems_.add(this.items_):this.partiallyRenderedItems_.delete(this.items_))},
canScheduleJobsChanged_:function(I){!this.shouldUseTaskManager()&&this.data&&(!I&&this.canShowMore?(_.$Gt(this,"renderChunk"),this.lazyListRenderJobId_&&this.getTaskManager().cancelJob(this.lazyListRenderJobId_)):I&&this.partiallyRenderedItems_.has(this.items_)&&(_.V("kevlar_lazy_list_resume_for_autofill")?this.autoFill&&this.tryRenderChunk_():this.tryRenderChunk_()))}}];var Hw;_.hx={};
Hw=function(){var I=_.cO.apply(this,arguments)||this;I.atStart=!0;I.atEnd=!0;I.startIndex=0;I.endIndex=0;I.scrollCount=0;I.initialStartIndex=0;I.disableScrollEventListener=!1;I.useFloorScrolling=!1;I.isSearch=!1;I.dragging=!1;I.dragMouseStart=0;I.dragOffsetStart=0;I.disableWheelScroll=!1;I.centerListItems=!1;I.offset=0;I.minComponentWidth=0;I.marginWidthRight=0;I.marginWidthLeft=0;I.setButtonsStateRequested=!1;I.itemsVisibilityObserver=null;I.fullyVisibleItemsIndices=[];I.JSC$12120_onWheelScroll=function(C){if(I.isSearch&&
!I.disableWheelScroll&&_.V("desktop_enable_dmpanel_wheel_scroll")){var y=C.shiftKey?Math.abs(C.deltaY)>Math.abs(C.deltaX)?C.deltaY:C.deltaX:C.deltaX;y!==0&&(C.preventDefault(),I.ytLazyListBehavior.fillRemainingListItems(),I.offset+=y,U_(I),I.reposition_())}};
I.onPointerDown=function(C){fm8(I)&&(I.dragMouseStart=C.clientX,I.dragOffsetStart=I.offset,I.dragging=!0)};
I.onPointerMove=function(C){fm8(I)&&I.dragging&&(I.ytLazyListBehavior.fillRemainingListItems(),I.offset=I.dragOffsetStart-(C.clientX-I.dragMouseStart),U_(I),I.reposition_())};
I.onPointerUp=function(){fm8(I)&&(I.dragging=!1)};
return I};
_.R(Hw,_.cO);var SOu=function(I){var C=_.f(I.hostElement).querySelector("#items").children;if(!C)return 0;var y=0;I=_.T(I.fullyVisibleItemsIndices);for(var k=I.next();!k.done;k=I.next())y+=C[k.value].clientWidth;return y},fm8=function(I){return I.isSearch&&_.V("desktop_enable_dmpanel_click_drag_scroll")};
Hw.prototype.created=function(){this.cachedViewportWidth=_.Aq("initialInnerWidth")||window.innerWidth;this.JSC$12120_cachedViewportHeight=_.Aq("initialInnerHeight")||window.innerHeight;_.Aq("REMAINING_DOVA_DEFERRED_CHUNKS",-1)==-1&&_.KH("REMAINING_DOVA_DEFERRED_CHUNKS",6)};
Hw.prototype.attached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.addEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.addScrollEventListeners();Kfb(this)};
Hw.prototype.detached=function(){window.ShadyDOM&&window.ShadyDOM.noPatch||this.hostElement.shadowRoot.removeEventListener("transitionend",this.onItemsTransitionEnd_.bind(this));!this.disableScrollEventListener&&_.V("desktop_enable_dmpanel_scroll")&&this.removeScrollEventListeners();var I;(I=this.itemsVisibilityObserver)==null||I.disconnect();this.itemsVisibilityObserver=null;var C;(C=this.itemsObserver)==null||C.disconnect()};
var Kfb=function(I){var C=_.f(I.hostElement).querySelector("#scroll-container");if(C){if(!I.itemsVisibilityObserver){var y=window.getComputedStyle(C).marginRight;I.itemsVisibilityObserver=new IntersectionObserver(function(k){AQc(I,k)},{root:C,
rootMargin:y,threshold:.98})}if(C=_.f(I.hostElement).querySelector("#items"))I.itemsObserver=new m1e(C,function(k){gwe(I,k)})}},gwe=function(I,C){vwb(I)&&(Array.from(C.addedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){I.itemsVisibilityObserver&&I.itemsVisibilityObserver.observe(y)}),Array.from(C.removedNodes).filter(function(y){return y.nodeType===Node.ELEMENT_NODE}).forEach(function(y){I.itemsVisibilityObserver&&I.itemsVisibilityObserver.unobserve(y)}))},
AQc=function(I,C){var y=new Set(I.fullyVisibleItemsIndices);
C=_.T(C);for(var k=C.next();!k.done;k=C.next()){k=k.value;var F=k.target.parentElement;F?(F=Array.from(F.children).indexOf(k.target),k.isIntersecting?y.add(F):y.has(F)&&y.delete(F)):_.SN(new _.ph("Parent element not found",k.target.nodeName))}I.fullyVisibleItemsIndices=Array.from(y).sort(function(z,c){return z-c});
y.size===0?_.SN(new _.ph("No visible entries in horizontal list")):(I.startIndex=I.fullyVisibleItemsIndices[0],I.endIndex=I.fullyVisibleItemsIndices[I.fullyVisibleItemsIndices.length-1])},vwb=function(I){I.data?I=(I=I.data)&&I.itemSizeConstraint?"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===I.itemSizeConstraint:!1:I=!1;
return I};
_.u=Hw.prototype;_.u.addScrollEventListeners=function(){var I=_.f(this.hostElement).querySelector("#scroll-container");I.style.touchAction="pan-y";I.addEventListener("wheel",this.JSC$12120_onWheelScroll);I.addEventListener("pointerdown",this.onPointerDown);I.addEventListener("pointermove",this.onPointerMove);window.addEventListener("pointerup",this.onPointerUp)};
_.u.removeScrollEventListeners=function(){var I=_.f(this.hostElement).querySelector("#scroll-container");I.removeEventListener("wheel",this.JSC$12120_onWheelScroll);I.removeEventListener("pointerdown",this.onPointerDown);I.removeEventListener("pointermove",this.onPointerMove);window.removeEventListener("pointerup",this.onPointerUp)};
_.u.reset=function(){this.scrollCount=this.offset=0;this.reposition_();this.marginWidthLeft=this.marginWidthRight=this.minComponentWidth=0;this.initialStartIndex>0&&_.hn(this,this.setStartIndex,[this.initialStartIndex])};
_.u.reposition_=function(){var I=_.Aq("HTML_DIR")=="rtl"?"":"-",C=_.f(this.hostElement).querySelector("#items");C&&(C.style.transform="translateX("+I+this.offset+"px)");this.requestButtonsStateUpdate_()};
_.u.requestButtonsStateUpdate_=function(){this.setButtonsStateRequested||(this.setButtonsStateRequested=!0,_.hn(this,this.setButtonsState_))};
_.u.setButtonsState_=function(){this.setButtonsStateRequested=!1;var I=_.f(this.hostElement).querySelector("#items").firstElementChild;if(I){this.minComponentWidth||(this.minComponentWidth=WfP(this,I));I=_.f(this.hostElement).querySelector("#scroll-container").clientWidth;var C=_.f(this.hostElement).querySelector("#items").clientWidth,y=this.get(this.ytLazyListBehavior.itemsPath,this);if(y){var k=Math.round(I/this.minComponentWidth)||1;this.fullyVisibleItemsIndices.length===0&&(this.startIndex=Math.round(this.offset/
this.minComponentWidth),this.endIndex=Math.min(this.startIndex+k,y.length)-1)}this.ytLazyListBehavior.canShowMore?C+this.minComponentWidth>=this.offset+I&&(this.atEnd=!1):this.atEnd=this.offset+I>=C-20?!0:!1;this.atStart=this.offset<=20}};
_.u.setStartIndex=function(I){if(!this.minComponentWidth){var C=_.f(this.hostElement).querySelector("#items").firstElementChild;if(!C)return;this.minComponentWidth=WfP(this,C)}this.ytLazyListBehavior.fillRemainingListItems();this.offset=this.minComponentWidth*I;U_(this);this.reposition_()};
_.u.nextClick_=function(){this.ytLazyListBehavior.fillRemainingListItems();_.zJ();var I=_.f(this.hostElement).querySelector("#scroll-container").clientWidth;_.V("web_min_component_width_killswitch")||this.minComponentWidth||(this.minComponentWidth=WfP(this,_.f(this.hostElement).querySelector("#items").firstElementChild));I=this.useFloorScrolling?Math.floor(I/this.minComponentWidth)||1:Math.round(I/this.minComponentWidth)||1;this.centerListItems&&this.scrollCount===0&&d6S(this);this.offset+=vwb(this)?
SOu(this):I*this.minComponentWidth;U_(this);this.reposition_();this.scrollCount++};
_.u.prevClick_=function(){var I=_.f(this.hostElement).querySelector("#scroll-container").clientWidth;I=this.useFloorScrolling?Math.floor(I/this.minComponentWidth)||1:Math.round(I/this.minComponentWidth)||1;this.resizeSupportEnabled?(this.scrollCount--,this.offset=vwb(this)?SOu(this):this.minComponentWidth*this.scrollCount-1):this.offset-=vwb(this)?SOu(this):I*this.minComponentWidth;this.centerListItems&&d6S(this);U_(this);this.reposition_()};
_.u.onIronResize_=function(){this.resizeSupportEnabled&&_.hn(this,this.checkComponentWidthResize);this.requestButtonsStateUpdate_()};
_.u.onItemsTransitionEnd_=function(I){_.m0(I)===_.f(this.hostElement).querySelector("#items")&&this.ytRendererBehavior.markDirty()};
_.u.onChildElementFocus_=function(I){I=I.target.closest("#items > *");var C=_.f(this.hostElement).querySelector("#scroll-container");if(C.contains(I)){if(_.V("web_horizontal_list_behavior_focus_killswitch"))if(I.offsetLeft<this.offset)this.offset=Math.abs(I.offsetLeft)<I.clientWidth?0:I.offsetLeft;else if(I.offsetLeft+I.clientWidth>this.offset+C.clientWidth)this.ytLazyListBehavior.fillRemainingListItems(),_.zJ(),this.offset=I.offsetLeft+I.clientWidth-C.clientWidth;else return;else{var y=_.f(this.hostElement).querySelector("#items"),
k=_.Aq("HTML_DIR")==="rtl",F=k?y.clientWidth-I.offsetLeft:I.offsetLeft;y=k?y.clientWidth-(I.offsetLeft+I.clientWidth):I.offsetLeft+I.clientWidth;var z=k?F>this.offset+C.clientWidth:F<this.offset,c=k?y<this.offset:y>this.offset+C.clientWidth,r=k?z:c;if(k?c:z)C=k?y:F,this.offset=Math.abs(C)<I.clientWidth?0:C;else if(r)this.ytLazyListBehavior.fillRemainingListItems(),_.zJ(),this.offset=(k?F:y)-C.clientWidth;else return}U_(this);this.reposition_()}};
_.u.observeShownItems_=function(){this.reset()};
_.u.checkComponentWidthResize=function(){var I=_.f(this.hostElement).querySelector("#items").firstElementChild;I&&(I=WfP(this,I),this.centerListItems||I!==this.minComponentWidth)&&(this.minComponentWidth=I,this.offset=I*this.scrollCount,this.centerListItems&&d6S(this),U_(this),this.reposition_())};
var WfP=function(I,C){var y=window.getComputedStyle(C).marginRight;y=Math.floor(Number(y.replace("px","")));var k=window.getComputedStyle(C).marginLeft;k=Math.floor(Number(k.replace("px","")));I.centerListItems&&!I.marginWidthRight&&(I.marginWidthRight=y,I.marginWidthLeft=k);return I.resizeSupportEnabled?C.getBoundingClientRect().width+y:C.offsetWidth+y},U_=function(I){var C=_.f(I.hostElement).querySelector("#scroll-container").clientWidth,y=_.f(I.hostElement).querySelector("#items").clientWidth;
I.offset<0?I.offset=0:I.offset+C>=y&&(I.offset=y-C)},d6S=function(I){I.offset-=(_.f(I.hostElement).querySelector("#scroll-container").clientWidth+I.marginWidthRight-I.minComponentWidth)/2-I.marginWidthLeft};
_.H1.Object.defineProperties(Hw.prototype,{nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){var I=_.Aq("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",-1);if(I==-1)I=this.JSC$12120_cachedViewportHeight,I=I>1320?5:I>1020?4:I>730?3:I>430?2:1;else if(I==0)return 0;_.KH("NON_DEFERRED_HORIZONTAL_LIST_ROW_COUNT",I-1);I=_.Aq("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",-1);if(I>-1)return I;I=this.cachedViewportWidth;I=I>1600?6:I>1400?5:I>1300?4:I>1090?5:I>870?4:I>660?3:2;_.KH("NON_DEFERRED_HORIZONTAL_LIST_ITEM_COUNT",
I);return I},
set:function(){}},
resizeSupportEnabled:{configurable:!0,enumerable:!0,get:function(){return!_.V("kevlar_disable_component_resizing_support")&&!!this.supportComponentResize}}});
Hw.prototype.observeShownItems_=Hw.prototype.observeShownItems_;Hw.prototype.onChildElementFocus_=Hw.prototype.onChildElementFocus_;Hw.prototype.onItemsTransitionEnd_=Hw.prototype.onItemsTransitionEnd_;Hw.prototype.onIronResize_=Hw.prototype.onIronResize_;Hw.prototype.prevClick_=Hw.prototype.prevClick_;Hw.prototype.nextClick_=Hw.prototype.nextClick_;Hw.prototype.setButtonsState_=Hw.prototype.setButtonsState_;Hw.prototype.requestButtonsStateUpdate_=Hw.prototype.requestButtonsStateUpdate_;
Hw.prototype.reposition_=Hw.prototype.reposition_;Hw.prototype.reset=Hw.prototype.reset;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Hw.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],Hw.prototype,"ytLazyListBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hw.prototype,"atStart",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hw.prototype,"atEnd",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"startIndex",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"endIndex",void 0);_.E([_.d({value:6}),_.h("design:type",Number)],Hw.prototype,"initialCount",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"scrollCount",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"initialStartIndex",void 0);
_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"disableScrollEventListener",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"supportComponentResize",void 0);_.E([_.d({value:function(){var I=this;return function(){return I.prevClick_()}}}),
_.h("design:type",Function)],Hw.prototype,"boundPrevClick",void 0);_.E([_.d({value:function(){var I=this;return function(){return I.nextClick_()}}}),
_.h("design:type",Function)],Hw.prototype,"boundNextClick",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"useFloorScrolling",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"isSearch",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"dragging",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"dragMouseStart",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"dragOffsetStart",void 0);
_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"disableWheelScroll",void 0);_.E([_.d(),_.h("design:type",Object)],Hw.prototype,"centerListItems",void 0);_.E([_.km("iron-resize"),_.FI("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hw.prototype,"onIronResize_",null);_.E([_.km("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Hw.prototype,"onItemsTransitionEnd_",null);
_.E([_.km("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Hw.prototype,"onChildElementFocus_",null);_.E([_.FI("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hw.prototype,"observeShownItems_",null);Hw=_.E([_.eA()],Hw);_.hx.YtdHorizontalListBehavior=[];_.hx.YtdHorizontalListBehavior.push(_.Ri,_.M.YtRendererBehavior,_.E_.YtLazyListBehavior,_.GW.YtdGuideStateAwareBehavior,Hw.prototype);var cQO=["APP_STATE","PI"];var x6w=_.hu(["about:blank"]),qOq={pushState:window.history.pushState,replaceState:window.history.replaceState};var tx=function(I){this.initialized=!1;this.internalReplaceState=this.internalPushState=null;this.history=I;this.internalPushState=I.pushState.bind(I);this.internalReplaceState=I.replaceState.bind(I)};
tx.prototype.init=function(){this.initialized=!0};
tx.prototype.pushState=function(I,C){this.initialized||this.init();this.internalPushState&&this.internalPushState(I,"",C)};
tx.prototype.replaceState=function(I,C){this.initialized||this.init();this.internalReplaceState&&this.internalReplaceState(I,"",C)};
tx.prototype.getState=function(){return this.history&&this.history.state};var m6w=function(I){var C=function(){var y=I.apply(this,arguments)||this;y.boundHistoryPushState=!1;y.boundHistoryReplaceState=!1;y.debugInfo={};return y};
_.R(C,I);C.prototype.init=function(){var y=_.c2("IFRAME");_.jO(y,_.tM(x6w));y.sandbox="allow-same-origin";y.style.display="none";this.iframe=y;document.body.appendChild(y);this.bindHistoryStateFunctions();I.prototype.init.call(this)};
C.prototype.bindHistoryStateFunctions=function(){var y=this,k=[],F;this.iframe&&((F=this.iframe.contentWindow)==null?0:F.history)&&(F=this.iframe.contentWindow.history)&&(k.push(F),Object.getPrototypeOf(F)&&k.push(Object.getPrototypeOf(F)));window.history&&k.push(window.history);F=window.history;Object.getPrototypeOf(F)&&k.push(Object.getPrototypeOf(F));k.push(qOq);F=function(c){for(var r=null,w=0;w<k.length;w++){var L=k[w][c];if(typeof L==="function"){r=L.bind(window.history);y.debugInfo[c]=w;break}}return r};
if(!this.boundHistoryReplaceState){var z=F("replaceState");z&&(this.internalReplaceState=z,this.boundHistoryReplaceState=!0)}!this.boundHistoryPushState&&(F=F("pushState"))&&(this.internalPushState=F,this.boundHistoryPushState=!0)};
return C}(tx),ZrP=function(){return m6w.call(this,window.history)||this};
_.R(ZrP,m6w);ZrP.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.boundHistoryPushState!==this.boundHistoryReplaceState};var Jx=function(I){this.browserHistory=I;this.initialized=!1};
Jx.prototype.init=function(){this.initialized||(this.browserHistory.init(),this.initialized=!0,window.addEventListener("popstate",this.handlePopstate.bind(this)))};
Jx.prototype.pushState=function(I,C){this.initialized||this.init();this.browserHistory.pushState(I,C)};
Jx.prototype.replaceState=function(I,C){this.initialized||this.init();this.browserHistory.replaceState(I,C)};
Jx.prototype.handlePopstate=function(I){return I.state};_.Bje=function(I,C,y,k,F){this.endpoint=I;this.forward=C;this.historyEntry=y;this.JSC$26339_savedComponentState=k;this.legacyBorder=F===void 0?!1:F};var Ew0=function(I,C){this.rootData=I;this.scrollTop=C};var lz=new _.Jj("PAGE_REQUEST_TOKEN"),cDw=new _.Jj("FETCH_PBJ_TOKEN");_.O_=new _.Jj("EPHEMERAL_STORE_TOKEN");_.as=function(I){this.data=Object.assign({},I);var C;(C=this.data.innertubeResponse)==null||delete C.frameworkUpdates};
_.as.prototype.isExpired=function(){return Number(this.data.expireTimestampMs||0)<(0,_.JY)()};
_.zb=function(I){return Object.assign({},I.data.innertubeResponse,{cacheMetadata:{isCacheHit:!0}})};var hHP=function(){this.maxSize=100;this.timeToDataCache=new Map};
hHP.prototype.get=function(I){var C=this.timeToDataCache.get(I);C&&(this.timeToDataCache.delete(I),this.timeToDataCache.set(I,C));if(C&&C.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var y=_.N().resolve(_.O_),k=U6w(C),F=!!k;if(k){if(k.content){var z=Mf(y,k.content);F&&z?C.rootData.response=_.zb(z):F=!1}k.player&&(z=Mf(y,k.player),F&&z?C.rootData.playerResponse=_.zb(z):F=!1);k.reelSequence&&(y=Mf(y,k.reelSequence),F&&y?C.rootData.reelWatchSequenceResponse=
_.zb(y):F=!1)}F||(this.timeToDataCache.delete(I),C=void 0)}return C};
hHP.prototype.set=function(I,C){if(C.rootData&&(_.V("web_use_response_store_for_history_cache")||_.V("mweb_use_new_history_manager"))){var y=U6w(C),k=Object.assign({},C.rootData);y&&(y.content&&C.rootData.response&&(Hrd(this,y.content,C.rootData.response),k.response=null),y.player&&C.rootData.playerResponse&&(Hrd(this,y.player,C.rootData.playerResponse),k.playerResponse=null),y.reelSequence&&C.rootData.reelWatchSequenceResponse&&(Hrd(this,y.reelSequence,C.rootData.reelWatchSequenceResponse),k.reelWatchSequenceResponse=
null));C=new Ew0(k,C.scrollTop)}this.timeToDataCache.has(I)?this.timeToDataCache.delete(I):this.timeToDataCache.size>=this.maxSize&&(y=this.timeToDataCache.keys().next(),this.timeToDataCache.delete(y.value));this.maxSize!==0&&this.timeToDataCache.set(I,C)};
hHP.prototype.clear=function(){this.timeToDataCache.clear()};
var U6w=function(I){var C=_.N().resolve(_.aU(lz)),y;if((y=I.rootData)==null?0:y.endpoint)return C==null?void 0:x0m(C,I.rootData.endpoint);var k;_.SN(new _.ph("History snapshot response data does not contain endpoint",(k=I.rootData)==null?void 0:k.url));return null},Hrd=function(I,C,y){if(I.maxSize>0){var k;
(I=(k=y.responseContext)==null?void 0:k.maxAgeSeconds)&&Number(I)>0&&(k=_.N().resolve(_.O_),y=M3(y,I),k.put(C,new _.as(y)))}};var tSu=function(I,C,y){this.endpoint=C;this.JSC$26344_savedComponentState=y===void 0?null:y;this.entryTime=I};var PlI=1;var I5=function(I){var C=function(){var y=I.apply(this,[].concat(_.Py(_.wa.apply(0,arguments))))||this;y.historyEntryTime=0;y.historySnapshotCache=y.createHistoryCache();return y};
_.R(C,I);C.prototype.createHistoryCache=function(){return new hHP};
C.prototype.saveAndReplace=function(y,k,F){var z=window.location.href;var c=c===void 0?{}:c;var r=(r=this.browserHistory.getState())&&r.entryTime?r.entryTime:LfK();y=this.createNewHistoryEntry(y,c,r);this.saveSnapshot(r,k,F);this.replaceState(y,z||window.location.href)};
C.prototype.saveAndPush=function(y,k,F,z,c){c=c===void 0?{}:c;this.saveSnapshot(this.historyEntryTime,F,z);F=this.historySnapshotCache;z=this.historyEntryTime;var r=F.timeToDataCache.keys();r=_.T(r);for(var w=r.next();!w.done;w=r.next())w=w.value,w>z&&F.timeToDataCache.delete(w);k=this.createNewHistoryEntry(k,c);this.pushState(k,y)};
C.prototype.saveSnapshot=function(y,k,F){this.historySnapshotCache.set(y,new Ew0(k,F))};
C.prototype.createNewHistoryEntry=function(y,k,F){F=F===void 0?LfK():F;return new tSu(F,y,k)};
C.prototype.handlePopstate=function(y){var k=I.prototype.handlePopstate.call(this,y),F=null,z=null,c=!1,r=null;k&&k.entryTime&&(r=this.historySnapshotCache.get(k.entryTime)||null,c=k.entryTime>this.historyEntryTime,this.historyEntryTime=k.entryTime,F=k.endpoint,z=k.JSC$26344_savedComponentState);this.handleHistoryCacheLoad(new _.Bje(F,c,r,z),y);return k};
C.prototype.pushState=function(y,k){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);I.prototype.pushState.call(this,y,k)};
C.prototype.replaceState=function(y,k){Number(y==null?void 0:y.entryTime)>=0&&(this.historyEntryTime=y.entryTime);I.prototype.replaceState.call(this,y,k)};
C.prototype.handleHistoryCacheLoad=function(){};
return C}(Jx),JQY=function(){var I=I5.call(this,new ZrP)||this;
I.dispatchElement=null;I.entryIndex=0;return I};
_.R(JQY,I5);_.u=JQY.prototype;_.u.init=function(I){I=I===void 0?!0:I;I5.prototype.init.call(this);this.initialized||(I||this.saveAndReplace(null,null,0),"scrollRestoration"in window.history&&(window.history.scrollRestoration="manual"))};
_.u.handlePopstate=function(I){var C=null;I.state||(C="History popstate has no state - "+this.getDebugString());if(!this.dispatchElement)return I5.prototype.handlePopstate.call(this,I);var y=new CustomEvent("yt-history-pop",{cancelable:!0});_.Fe(this.dispatchElement,"yt-history-pop",[y,{errorMsg:C}]);_.uW(this.dispatchElement,"yt-close-all-popups-action");if(!y.defaultPrevented){y=_.N().resolve(_.BP);C=y.getCurrentData();var k=y.getCurrentPage();y=0;k?(k=_.Fe(this.dispatchElement,"yt-get-page-offset",
[k]),k.length>0&&(y=k[0])):_.SN(new _.ph("getCurrentPage returned undefined",{debugString:this.getDebugString(),page:C?C.page:"undefined"}));C&&(C.csn=_.Si());this.saveSnapshot(this.historyEntryTime,C,y)}return I5.prototype.handlePopstate.call(this,I)};
_.u.handleHistoryCacheLoad=function(I,C){I.forward?this.entryIndex++:this.entryIndex--;this.dispatchElement&&(_.T(_.uW(this.dispatchElement,"yt-history-will-navigate",[C])).next().value||_.Fe(this.dispatchElement,"yt-history-load",[C,I]))};
_.u.pushState=function(I,C){this.entryIndex++;if(!this.browserHistory.boundHistoryPushState){var y=new _.ph("history.pushState is not a function",this.getDebugString());_.GB(y)}I5.prototype.pushState.call(this,I,C)};
_.u.replaceState=function(I,C){if(!this.browserHistory.boundHistoryReplaceState){var y=new _.ph("history.replaceState is not a function",this.getDebugString());_.GB(y)}I5.prototype.replaceState.call(this,I,C)};
_.u.saveAndPush=function(I,C,y,k,F){F=F===void 0?{}:F;y&&(y.csn=_.Si());I5.prototype.saveAndPush.call(this,I,C,y,k,F)};
_.u.getDebugString=function(){var I=[];this.initialized&&I.push("i");this.browserHistory.boundHistoryReplaceState&&I.push("bhr");this.browserHistory.boundHistoryPushState&&I.push("bhs");"replaceState"in this.browserHistory.debugInfo&&I.push("brs:"+String(this.browserHistory.debugInfo.replaceState));"pushState"in this.browserHistory.debugInfo&&I.push("bps:"+String(this.browserHistory.debugInfo.pushState));this.entryIndex>0&&I.push("ei:"+String(this.entryIndex));return I.join(",")};
_.CD=function(I,C){I.init(!0);var y=I.browserHistory.getState();I.replaceState(y,a8(C))};
JQY.prototype.getThirdPartyManipulationSuspected=function(){return this.initialized&&this.browserHistory.getThirdPartyManipulationSuspected()};_.sQ=new _.Jj("DESKTOP_HISTORY_MANAGER_TOKEN");var Or8=[10,20,30,40,50,60],o5=function(){this.currentPartitionIndex=0},amS=function(I){jAP({mainAppWeb:_.gU(),
survivalSli:{partitionMinute:I,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_START"}})},MSb=function(I){jAP({mainAppWeb:_.gU(),
survivalSli:{partitionMinute:I,survivalStatus:"SURVIVAL_STATUS_TYPE_ALIVE_END"}})},I6m=function(I){return I.currentPartitionIndex>=0&&I.currentPartitionIndex<Or8.length?Or8[I.currentPartitionIndex]:-1},CN8=function(I){return I.currentPartitionIndex>0&&I.currentPartitionIndex-1<Or8.length?Or8[I.currentPartitionIndex-1]:-1};
o5.prototype.start=function(){if(this.intervalId===void 0){this.currentPartitionIndex=0;var I=CN8(this);I>0&&MSb(I);I=I6m(this);I>0&&amS(I);s45(this)}};
var s45=function(I){var C=I6m(I);if(C>0){var y=CN8(I);y<0&&(y=0);I.intervalId=_.b$.addJob(function(){var k=CN8(I);k>0&&MSb(k);k=I6m(I);k>0&&amS(k);s45(I)},3,(C-y)*6E4);
I.currentPartitionIndex+=1}else I.currentPartitionIndex=-1};var oD0=function(){this.skipNextNavigation=!1},y1q=function(I,C,y){if(!C)return!1;
if(I.skipNextNavigation)return I.skipNextNavigation=!1;if(_.l(y,_.xo))return!1;var k,F,z;if((k=_.l(y,_.rU))==null?0:(F=k.browseEndpointContextSupportedConfigs)==null?0:(z=F.browseEndpointContextMainConfig)==null?0:z.skipConfirmation)return!1;var c;return((c=_.l(C.commandMetadata,_.It))==null?void 0:c.webPageType)==="WEB_PAGE_TYPE_MINI_APP"};
oD0.prototype.showConfirmationDialog=function(I,C){this.navigateParams=C;this.customConfirmationCommand?_.N().resolve(_.ID).resolveCommand(this.customConfirmationCommand):(C={openPopupAction:{popup:{confirmDialogRenderer:{title:_.Ee(_.PQ("NAVIGATION_CONFIRMATION_TITLE")),dialogMessages:[_.Ee(_.PQ("NAVIGATION_CONFIRMATION_DESCRIPTION"))],cancelButton:{buttonRenderer:{text:_.Ee(_.PQ("CANCEL")),command:{signalAction:{signal:"CANCEL_NAVIGATION"}}}},confirmButton:{buttonRenderer:{text:_.Ee(_.PQ("EXIT")),
command:{signalAction:{signal:"RESUME_NAVIGATION"}}}}}},popupType:"DIALOG"}},_.qU.getInstance().triggerAction("yt-open-popup-action",C,I))};
oD0.prototype.cancelPendingNavigation=function(){var I;((I=this.navigateParams)==null?void 0:I.navigationType)===2&&(this.skipNextNavigation=!0,this.navigateParams.isForwardHistoryNavigation?window.history.back():window.history.forward())};var kcq=function(){},uMm=function(I,C,y,k,F,z,c){y=y===void 0?{}:y;
c=c===void 0?{}:c;var r=_.IA.instance,w,L=(w=_.l(C,_.xo))==null?void 0:w.url;return L?PDz(r,L,y,window.location.href,function(D,p){FG8(I,D,p,!1,!0,y,z,k)},function(){return!1}):qd(r,C,y,window.location.href,wU(C),function(D,p){FG8(I,D,p,!1,!0,y,z,k)},F,c)},FG8=function(I,C,y,k,F,z,c,r){if(!I.JSC$12178_chunkHandler)if(y.page==="watch")if(F||k){if(_.V("kevlar_continue_playback_without_player_response")){var w;
var L=(w=_.l(r,_.H$))==null?void 0:w.videoId}I.JSC$12178_chunkHandler=new BF5(_.hU,{clientParams:{miniplayer:!1,autoSaveToQueue:!0,fromHistory:k,previousVideoId:L},tempData:z},c)}else I.JSC$12178_chunkHandler=new drb(_.hU);else y.page==="shorts"&&F&&!k?I.JSC$12178_chunkHandler=new Zzq(_.hU,{clientParams:{miniplayer:!1,autoSaveToQueue:!1,fromHistory:!1},tempData:z},c):I.JSC$12178_chunkHandler=new xr5(c);I.JSC$12178_chunkHandler.processChunk({endpoint:C,data:y});return I.JSC$12178_chunkHandler.eO.promise},
zK0=function(I,C,y,k,F){(y=_.lwm(y))&&FG8(I,C,y,!1,!0,k,void 0,F)};var Tgc=function(){this.pendingNavigationPromise=null};
_.u=Tgc.prototype;_.u.hasPendingNavigation=function(){return!!this.pendingNavigationPromise};
_.u.cancelPendingNavigation=function(){this.pendingNavigationPromise&&(this.pendingNavigationPromise=null)};
_.u.addEventListener=function(){throw Error("yh");};
_.u.dispatchEvent=function(){throw Error("yh");};
_.u.removeEventListener=function(){throw Error("yh");};var c1w=["__Secure-1PAPISID","SAPISID","__Secure-3PAPISID"],yC=function(){_.LW.call(this);this.pollingInterval=3E3;this.sessionCookies=[null,null,null];eKb(this)};
_.R(yC,_.LW);yC.prototype.verifyUser=function(){var I=eKb(this),C=I.logout;if(!I.sessionChange)return!0;this.dispatchEvent("ytsessionchange");C&&this.dispatchEvent("ytuserinvalid");return!1};
var eKb=function(I){var C=c1w.map(function(F){var z;return(z=_.wC.get(F))!=null?z:""}),y=C.some(function(F,z){return I.sessionCookies&&I.sessionCookies[z]!==""&&F===""}),k=C.some(function(F,z){return I.sessionCookies&&I.sessionCookies[z]!==F});
I.sessionCookies=C;return{logout:y,sessionChange:k}};
yC.prototype.clearTimeout=function(){this.scheduledJobId&&(_.b$.cancelJob(this.scheduledJobId),this.scheduledJobId=void 0)};var VSO=new _.Jj("POSTMESSAGE_TUNNEL_TOKEN");var pZF=["/parent_tools","/file_download","/artist_roster"],XZK=[WYq,dzc,xzS,mz0,qFq,vz8,Z9P,BHq];var r1S=new _.Jj("APP_ROOT");var kl=new _.Jj("NAVIGATION_CONFIRMATION_SERVICE");var iPP="/account /account_advanced /account_billing /account_notifications /account_playback /account_privacy /account_sharing /cart /channel/ /clip /effect/ /feed/ /gaming /gaming/ /hashtag /learning /manage_red /minor_moment /musicpremium /new /originals /paid_memberships /place /playables /playlist /podcasts /post/ /premium /product/ /reporthistory /results /search /shopcollection/ /shorts/ /show/ /source/ /user/ /watch /youtuberedoriginals".split(" "),wGY=[{url:"/podcasts",expFlag:"enable_polymer_navigation_for_podcasts_destination_page"}],
Fp=function(I,C){this.pendingNavigationPromise=null;this.JSC$12196_clientRoot=I;this.historyManager=C;this.logger=null;this.numNavigations=-1;this.lastNavigationUrl=null;this.resetWarmLoads=!1;this.searchDebugUrlMatcher=new RegExp(/\/results\?.*deb|\/scraper_results\?.*deb|\/results\?.*enable=|\/scraper_results\?.*enable=/);this.isMiniplayerExpansion=!1;this.currentEndpoint=null;this.pageFetcher=new kcq;this.debugString=I.is;I={"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};_.mU(_.qU.getInstance(),I,this.JSC$12196_clientRoot)},pGY,Q4S,Ngw,V8P,DQb;
_.R(Fp,Tgc);Fp.prototype.reload=function(){_.Yk(window.location.href)};
var RWS=function(I){I.currentEndpoint&&_.l(I.currentEndpoint,_.PD)?I.reload():I.currentEndpoint&&I.navigate(I.currentEndpoint,!0,void 0,{disableCache:!0})};
Fp.prototype.navigate=function(I,C,y,k,F,z,c,r){C=C===void 0?!1:C;y=y===void 0?{}:y;k=k===void 0?{}:k;var w=_.N().resolve(kl),L;if(!c&&y1q(w,(L=this.currentEndpoint)!=null?L:void 0,I))return w.showConfirmationDialog(this.JSC$12196_clientRoot.parentElement,{endpoint:I,reload:C,params:y,tempData:k,requestType:F,createScreenConfig:z}),!1;var D=_.So();_.Ku(D,"eocs")||D.parkOrScheduleJob(function(){D.processSignal("eocs")},10,"eor");
c=wU(I);w=k.autonav==="1";L=_.Si();yC.instance||(yC.instance=new yC);var p=yC.instance.verifyUser(),Q;if(_.V("enable_dark_theme_only_on_shorts")){var X=document.documentElement.hasAttribute("dark"),b=_.fp(!0)==="USER_INTERFACE_THEME_DARK";if(c==="shorts"){if(!X)if(_.V("enable_dark_theme_only_on_shorts_control")){if(!window.location.href.includes("/shorts/")){var S;_.Yk((S=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:S.url,void 0,void 0,window.top)}}else{var A;_.Yk(_.E3((A=_.l(I==null?
void 0:I.commandMetadata,_.It))==null?void 0:A.url,{theme:"dark"}),void 0,void 0,window.top)}}else if(_.V("enable_dark_theme_only_on_shorts_control")){if(window.location.href.includes("/shorts/")&&!X){var x;_.Yk(_.E3((x=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:x.url,{themeRefresh:1}),void 0,void 0,window.top)}}else if(b!==X){var B;_.Yk(_.E3((B=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:B.url,{themeRefresh:1}),void 0,void 0,window.top)}}if(c==="watch"){if(nDd(_.N().resolve(_.WJ),
I)&&(p||_.V("fix_miniplayer_navigation_killswitch")))return!1;_.V("block_all_player_prefetch_requests")||(Q=Xed(_.Fv(_.C0),I,w))}else{var t,U=(t=_.l(this.currentEndpoint,_.H$))==null?void 0:t.videoId;U&&_.pu.getInstance().then(function(hX){hX&&hX.set("yt-miniplayer-shown-video-id",U)})}Q&&(y.frags=Q.missingFragments_.join(","));
S=null;var yW;A=(yW=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:yW.ignoreNavigation;if(!A)if(_.V("kevlar_command_url")){var a;S=(a=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:a.url}else S=_.p9K(I,y);if(S&&this.pendingNavigationPromise){if(this.lastNavigationUrl&&S==this.lastNavigationUrl)return _.Gg({navigationRequestedSameUrl:!0}),!1;this.pendingNavigationPromise.cancel("canceled pendingNavigationPromise");_.wA(v$(),"CANCELLED")}S&&(this.lastNavigationUrl=S);JsW();_.KH("IS_HOMEPAGE_COLD",
!1);_.KH("IS_RESULTS_PAGE_COLD",!1);_.KH("IS_WATCH_PAGE_COLD",!1);I.loggingUrls&&I.loggingUrls.forEach(function(hX){hX.baseUrl&&_.dI(hX.baseUrl)});
_.YOK(I,z?z.layer:0)&&_.V("kevlar_flush_logs_on_away_navigation")&&_.Yo();if($6O(I))return!1;cCP(c,F);if(!S)return A||_.SN(new _.ph("Can't construct url for endpoint",I)),_.wA(v$(),"FAILURE"),!1;_.D6K();yW=I&&_.l(I,_.rU)&&_.l(I,_.rU).browseId.startsWith("UC");y=(a=_.V("enable_dark_theme_only_on_shorts")&&c==="shorts"?!1:_.Sf()&&document.documentElement.hasAttribute("dark")!==_.G8())?{themeRefresh:1}:{};a&&!_.PN()&&_.fp()==="USER_INTERFACE_THEME_DARK"&&(y.theme="dark");yW=a||PNe(S)&&!yW&&!_.V("kevlar_disable_url_allowlist");
p||(yW=!0);if(yW||_.Aq("DISABLE_WARM_LOADS")||this.resetWarmLoads){if(window.self!==window.top){try{var cs;var XO=(cs=window.top)==null?void 0:cs.location.href}catch(hX){var Rm;XO=(Rm=hX)==null?void 0:Rm.message}_.SN(new _.ph("Attempting to redirect in iframe",{selfUrl:window.self.location.href,topUrl:XO}))}I=_.V("kevlar_redirect_on_window_killswitch")?window.top:window;bg(S);_.Yk(_.E3(S,y),void 0,void 0,I);_.wA(v$(),"ABORTED");return!1}_.V("kevlar_early_popup_close")&&_.Fe(this.JSC$12196_clientRoot,
"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);this.pageFetcher.JSC$12178_chunkHandler=void 0;var $z;XO=wU(($z=this.currentEndpoint)!=null?$z:void 0);($z=c==="shorts"&&XO==="shorts")||_.Jjz();_.W5(WXO)("nr",void 0);w&&_.Gg({webInfo:{navigationReason:"an"}});I.clickTrackingParams&&(k.itct=I.clickTrackingParams,k.csn=L);CZO(k);k.endpoint=JSON.stringify(I);_.V("enable_unknown_lact_fix_on_html5")&&(_.N().resolve(_.Qc),k.lact=_.Ci());_.Le.isEmpty(k)||_.aC(S,k);!_.V("disable_miniplayer_expansion_log")&&
this.isMiniplayerExpansion&&(z=Object.assign({},{layer:0},z,{parentLayer:3}));this.pendingNavigationPromise=z=uMm(this.pageFetcher,I,k,this.currentEndpoint,this.JSC$12196_isNetworkPromiseStale.bind(this),z,r);z=z.then(this.handleNavigateSuccess.bind(this,z,I,Q,k),this.handleNavigateFail.bind(this,z,I));_.ck().navigationFinishPromise=z;C={endpoint:I,pageType:c,url:a8(S),reload:!!C,noProgressBar:_.V("web_disable_page_navigation_progress")||$z};F&&(C.type=F);this.fireEvent("yt-navigate-start",C);Q&&
zK0(this.pageFetcher,I,Q,k,this.currentEndpoint);return!0};
Fp.prototype.JSC$12196_isNetworkPromiseStale=function(I){return I!=this.pendingNavigationPromise};
var LGY=function(I,C,y,k,F){var z=wU(C);C={endpoint:C,pageType:z};F&&(C.errorMessage=F);_.SN(y);C.navigationDoneMs=_.Sr("nd");C.navigationErrorReason=k;I.fireEvent("yt-navigate-error",C)};
Fp.prototype.handleNavigateFail=function(I,C,y){var k=void 0;y instanceof _.qJ&&(k=y,LdK(y));if(this.JSC$12196_isNetworkPromiseStale(I))return _.mr(k);_.wA(v$(),"FAILURE");LGY(this,C,y,"101");return _.mr(y)};
Fp.prototype.handleNavigateSuccess=function(I,C,y,k,F){if(this.JSC$12196_isNetworkPromiseStale(I))return _.er();this.pendingNavigationPromise=null;if(!F)return C=new _.ph("Missing data in response for navigation endpoint",C),_.mr(C);if(F.reload)return window.location.reload(!0),_.er();y&&(I={},_.Le.extend(I,_.lwm(y),F),F=I);var z,c;y=(z=F)==null?void 0:(c=z.timing)==null?void 0:c.responseStart;y!=null&&_.Sr("srt",y);_.Sr("pdc");var r,w;z=(r=F)==null?void 0:(w=r.timing)==null?void 0:w.info;z!=null&&
(r=_.W5(_.mit)(z),_.Gg(r));_.wA(v$(),"SUCCESS");DQb(this,C,F,1,k);return _.er()};
var PNe=function(I){var C=I;_.V("kevlar_no_redirect_to_classic_2_ks")||(C=(new _.t$(I)).getPath());if(C==="/"||C==="/red")return!1;var y=!0;iPP.forEach(function(k){I.indexOf(k)===0&&(y=!1)});
wGY.forEach(function(k){var F=k.url;_.V(k.expFlag)&&I.indexOf(F)===0&&(y=!1)});
return y};
Fp.prototype.publishPageData=function(I){this.fireEvent("yt-page-data-fetched",{pageData:I})};
pGY=function(I,C,y,k,F,z){var c=null;C.page!=="watch"||k?C.filler||_.Fe(I.JSC$12196_clientRoot,"yt-stop-old-player",[C]):c=FG8(I.pageFetcher,F,C,y,!1,z,void 0,I.currentEndpoint);if(c)return c.then(I.publishPageData.bind(I,C));I.publishPageData(C);return _.er()};
Q4S=function(I,C,y){var k=null;if(!y)return k=new _.ph("Empty data",I.debugString,C);var F=y.response;if(!F)return k;var z={endpointType:wU(C)||"unknown"};F.responseContext?(F=F.responseContext.errors)&&(k=new _.ph("Errors in response context",I.debugString,C,F,z)):k=F.error||F.errorMetadata?new _.ph("Errors in response",I.debugString,C,F.error,F.errorMetadata,z):new _.ph("responseContext missing",I.debugString,C,Object.keys(F).sort().join(","),z);var c,r,w,L;if(I=y==null?void 0:(c=y.response)==null?
void 0:(r=c.responseContext)==null?void 0:(w=r.webResponseContextExtensionData)==null?void 0:(L=w.webResponseContextDebugData)==null?void 0:L.debugErrorMessages)for(c=0;c<I.length;c++);return k};
Ngw=function(I){var C,y,k,F;return I==null?void 0:(C=I.response)==null?void 0:(y=C.responseContext)==null?void 0:(k=y.errors)==null?void 0:(F=k.error)==null?void 0:F["0"]};
V8P=function(I,C){var y;if(y=C.url&&!C.url.startsWith("/clip"))y=C.url,y=!_.V("webfe_parse_debug_param_in_resolveurl_service")&&I.searchDebugUrlMatcher.test(y)||l7H(y)?!0:!1;if(y)l7H(C.url)&&_.B5(window.location.href).themeRefresh?(C=_.MJ(C.url,"themeRefresh"),_.CD(I.historyManager,C)):C.url&&!wZm(C.url)&&_.CD(I.historyManager,C.url);else if(C.endpoint){var k,F,z;(y=(k=C.endpoint)==null?void 0:(F=k.commandMetadata)==null?void 0:(z=F.webCommandMetadata)==null?void 0:z.url)&&!wZm(y)&&_.CD(I.historyManager,
y);y&&C.url&&y!=C.url&&!C.url.match("playnext=1")&&new _.ph("Response url mismatch in response data",I.debugString,y,C.url)}};
_.j4m=function(I,C,y,k,F,z,c,r){z=z===void 0?!1:z;var w=_.N().resolve(kl),L;if(!r&&y1q(w,(L=I.currentEndpoint)!=null?L:void 0,C))return w.showConfirmationDialog(I.JSC$12196_clientRoot.parentElement,{endpoint:C,data:y,navigationType:k,tempData:F,isMiniplayer:z,isForwardHistoryNavigation:c==null?void 0:c.forward}),_.er();I.pageFetcher.JSC$12178_chunkHandler=void 0;return DQb(I,C,y,k,F,z)};
DQb=function(I,C,y,k,F,z){z=z===void 0?!1:z;I.isMiniplayerExpansion=z;var c=k===2;I.currentEndpoint=C;I.numNavigations++;I.numNavigations&&(mFH.navigationCount=I.numNavigations);_.KH("NUM_NAV",I.numNavigations);var r=Q4S(I,C,y);if(r)return LGY(I,C,r,"102",Ngw(y)),_.mr(r);var w,L,D,p;r=y.rootVe||(y==null?void 0:(w=y.response)==null?void 0:(L=w.responseContext)==null?void 0:(D=L.webResponseContextExtensionData)==null?void 0:(p=D.ytConfigData)==null?void 0:p.rootVisualElementType);!c&&y&&V8P(I,y);var Q,
X;w=y==null?void 0:(Q=y.response)==null?void 0:(X=Q.responseContext)==null?void 0:X.maxAgeSeconds;if(!c&&!isNaN(w)){var b;_.V("kevlar_use_response_ttl_to_invalidate_cache")?b=(0,_.JY)()+1E3*w:_.V("kevlar_always_invalidate_cache")&&(b=0);isNaN(b)||(y.expirationTime=b)}_.V("html5_enable_ssap_entity_id")&&c&&y.playerResponse&&(y.playerResponse.cacheMetadata={isCacheHit:!0});_.Fv(_.C0).prefetchCache_.clear();c||y.page!=="watch"||y.type!=="reduced"&&k!==1?k=pGY(I,y,c,!!z,C,F):(I.publishPageData(y),k=_.er());
F=k.then(function(){var S=wU(C);S={endpoint:C,pageType:S,fromHistory:c,response:y};S.navigationDoneMs=_.Sr("nd");I.fireEvent("yt-navigate-finish",S)});
y.csn&&r&&y.clientSideGrafts&&k.then(I.attachClientSideGrafts.bind(I,y,_.fq()));return F};
_.u=Fp.prototype;_.u.attachClientSideGrafts=function(I,C){I.clientSideGrafts&&C&&I.clientSideGrafts.forEach(function(y){if(C&&y){var k=_.nv(y);_.V("combine_ve_grafts")?_.e2().graftServerVe(y,C):_.q1(I.csn,C,k)}})};
_.u.handleSignalActionHistoryBack=function(){window.history.back()};
_.u.handleSignalActionCloseWindow=function(){window.close()};
_.u.handleSignalActionReloadPage=function(){this.reload()};
_.u.handleSignalActionSoftReloadPage=function(){RWS(this)};
_.u.handleSignalActionResetWarmLoads=function(){this.resetWarmLoads=!0};
_.u.fireEvent=function(I,C){I=new CustomEvent(I,{bubbles:!0,cancelable:!1,composed:!0,detail:C});this.dispatchEvent(I)};
_.u.addEventListener=function(I,C){this.JSC$12196_clientRoot.addEventListener(I,C)};
_.u.dispatchEvent=function(I){return this.JSC$12196_clientRoot.dispatchEvent(I)};
_.u.removeEventListener=function(I,C){this.JSC$12196_clientRoot.removeEventListener(I,C)};
Fp[tj]=[r1S,_.sQ];_.$0I=new LX("browse","h8y2qb");_.RgI=new LX("search","JzFVk");_.bYH=new LX("shorts","xwEKAe");_.Y9Y=new LX("watchFixie","nmfa2d");_.GzO=new LX("watchFlexy","CF909");_.fFz=new LX("watchGrid","Tm0L3c");_.S9I=new LX("watchLearningJourney","L3n37");var l6w;var uF=function(){return _.q.apply(this,arguments)||this};
_.R(uF,_.q);_.H1.Object.defineProperties(uF,{template:{configurable:!0,enumerable:!0,get:function(){if(l6w===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);l6w=I}I=l6w;return I}}});
_.E([_.g(lme.YtPlayerBehavior),_.h("design:type",Object)],uF.prototype,"ytPlayerBehavior",void 0);uF=_.E([_.m({is:"ytd-player"})],uF);var XGe;var $Q8;var RKw;var zh=function(){var I=_.q.apply(this,arguments)||this;I.forceModernIconButton=!1;I.actionMap={"yt-account-linking-state-changed-command":"handleAccountLinkingStateChangedCommand","yt-signal-action-show-account-link-dialog":"handleShowAccountLinkDialog"};return I};
_.R(zh,_.q);zh.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]]"}}}}}};
zh.prototype.handleAccountLinkingStateChangedCommand=function(I){if(I=_.l(I,OW5)){var C,y=(C=this.data)==null?void 0:C.providerKey;C=I.providerKey;y&&C&&y.id===C.id&&y.subject===C.subject&&(I=I.linked,I!==void 0&&(this.set("data.linked",I),this.notifyPath("data.linked"),_.V("enable_account_linking_warning_account_link_button")&&(this.set("data.is_warning",!1),this.notifyPath("data.is_warning")),this.setPlayerAccountLinkState(I)))}};
zh.prototype.setPlayerAccountLinkState=function(I){var C=new utz;F5X(C,z_9(new TZW,I));var y=_.hU();y&&y.getPlayerPromise().then(function(k){k.setAccountLinkState(_.HR(C.JSC$9942_serializeBinary(),4));k.updateAccountLinkingConfig(I)})};
zh.prototype.handleShowAccountLinkDialog=function(){var I=this.get("button.buttonRenderer.command");I&&_.iW([I],this.hostElement)};
_.H1.Object.defineProperties(zh.prototype,{button:{configurable:!0,enumerable:!0,get:function(){if(this.data){if(this.data.linked&&this.data.warningButton&&this.data.isWarning)return this.data.warningButton;if(this.data.linked&&this.data.linkedButton)return this.data.linkedButton;if(!this.data.linked&&this.data.unlinkedButton)return this.data.unlinkedButton}}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zh.prototype,"ytRendererBehavior",void 0);_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],zh.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zh.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],zh.prototype,"overrides",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zh.prototype,"forceModernIconButton",void 0);_.E([_.d({value:"bottom"}),_.h("design:type",String)],zh.prototype,"buttonTooltipPosition",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],zh.prototype,"forceIconButton",void 0);_.E([_.d(),_.h("design:type",Boolean)],zh.prototype,"disableTextTransform",void 0);
_.E([_.v("data","data.linked","data.isWarning"),_.h("design:type",Object),_.h("design:paramtypes",[])],zh.prototype,"button",null);zh=_.E([_.m({is:"ytd-account-link-button-renderer",disableElementRegistration:!0})],zh);
_.Z(zh,"ytd-account-link-button-renderer",function(){if(RKw!==void 0)return RKw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return RKw=I},{mode:1});var bPP;var YWw=["PLAYLIST_LOOP_STATE_ONE","PLAYLIST_LOOP_STATE_ALL"],Th=function(){return _.q.apply(this,arguments)||this};
_.R(Th,_.q);Th.prototype.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"bottom"},properties:{forceIconOnly:"[[forceIconOnly]]"}}}}}};
Th.prototype.updateButtonActiveState=function(){var I=this,C=!!YWw.find(function(y){return I.currentState===y});
this.button&&(this.button.isPressed=C)};
_.H1.Object.defineProperties(Th.prototype,{currentState:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.playlistLoopStateEntity)==null?void 0:I.state)||((C=this.data)==null?void 0:C.currentState)}},
currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var I=void 0,C;if(this.currentState&&((C=this.data)==null?0:C.states)){C=_.T(this.data.states);for(var y=C.next();!y.done;y=C.next()){y=_.l(y.value,_.PR0);var k=void 0;if(((k=y)==null?void 0:k.state)===this.currentState){I=y;break}}}return I}}});
Th.prototype.updateButtonActiveState=Th.prototype.updateButtonActiveState;_.E([_.g(_.lZ),_.h("design:type",Object)],Th.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Th.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Th.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d({selectorArgs:["data.playlistLoopStateEntityKey"],selector:_.gwI}),_.h("design:type",Object)],Th.prototype,"playlistLoopStateEntity",void 0);_.E([_.d(),_.h("design:type",Object)],Th.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],Th.prototype,"forceIconOnly",void 0);_.E([_.z$("ytd-button-renderer"),_.h("design:type",_.d3)],Th.prototype,"button",void 0);
_.E([_.v("data","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"currentState",null);_.E([_.FI("currentButtonStateRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Th.prototype,"updateButtonActiveState",null);_.E([_.v("currentState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Th.prototype,"currentButtonStateRenderer",null);
Th=_.E([_.m({is:"ytd-playlist-loop-button-renderer",disableElementRegistration:!0})],Th);
_.Z(Th,"ytd-playlist-loop-button-renderer",function(){if(bPP!==void 0)return bPP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return bPP=I},
{mode:1});var Gcw;var f6q=_.PQ("DOWNLOAD",{},"Download"),SWq=_.PQ("DOWNLOADING",{},"Downloading"),KG5=_.PQ("DOWNLOADED",{},"Downloaded"),A1Y=_.PQ("RETRY",{},"Retry"),cr=function(){var I=_.q.apply(this,arguments)||this;I.forceIconButton=!1;I.forceIconOnly=!1;I.overrides=!1;I.buttonTooltipPosition=!1;I.styleActionButton=!1;I.disableTextTransform=!1;I.downloadProgress=0;I.isDownloadComplete=!1;I.isHidden=!0;I.transferState="TRANSFER_STATE_UNKNOWN";I.isVideoDeletedByUser=!1;I.offlineabilityState="ADD_TO_OFFLINE_BUTTON_STATE_UNKNOWN";
return I};
_.R(cr,_.q);_.u=cr.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.dataChanged=function(){var I;(I=this.data)!=null&&I.text||(I=_.Kx(_.Hg().getState(),this.videoId),this.updateButtonState(I))};
_.u.computeVideoId=function(I){return I};
_.u.showHideButton=function(){this.updateButtonVisibility()};
_.u.updateButtonVisibility=function(){this.disabled=this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!0:!1;this.isHidden=this.transferState!=="TRANSFER_STATE_UNKNOWN"?!1:this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||this.offlineabilityState==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0};
_.u.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.u.updateButtonState=function(I){if(this.data&&(this.ytRendererBehavior.getSimpleString(this.data.text)!==SWq||!_.px(I))){this.updateButtonVisibility();this.isDownloadComplete=!1;switch(I){case "TRANSFER_STATE_UNKNOWN":I=f6q;var C="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":I=A1Y;C="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;case "TRANSFER_STATE_COMPLETE":I=KG5;C="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_TRANSFERRING":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":I=
SWq;C="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";break;case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":I=A1Y;C="OFFLINE_DOWNLOAD";y="ACTION_RETRY";break;default:I=f6q,C="OFFLINE_DOWNLOAD",y="ACTION_ADD"}this.isVideoDeletedByUser&&(I=f6q,C="OFFLINE_DOWNLOAD",y="ACTION_ADD");var k=Object.assign({},this.data);k.text=_.Ee(I);k.tooltip=I;k.icon={iconType:C};k.size="SIZE_DEFAULT";k.style="STYLE_DEFAULT";_.l(k.command,_.uY)&&(_.l(k.command,_.uY).action=y);this.set("data",k)}};
_.u.updateProgress=function(){if(this.data){this.isDownloadComplete=!1;var I="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?I="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?I="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?I="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?I="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<1?I="OFFLINE_DOWNLOADING_EIGHTY":
this.downloadProgress===1&&(I="OFFLINE_PIN",this.isDownloadComplete=!0);var C;I!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.text=_.Ee(SWq),C.tooltip=SWq,C.icon={iconType:I},_.l(C.command,_.uY)&&(_.l(C.command,_.uY).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
cr.prototype.updateProgress=cr.prototype.updateProgress;cr.prototype.onTransferStateChanged=cr.prototype.onTransferStateChanged;cr.prototype.showHideButton=cr.prototype.showHideButton;cr.prototype.dataChanged=cr.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cr.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],cr.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"forceIconButton",void 0);
_.E([_.d(),_.h("design:type",Object)],cr.prototype,"forceIconOnly",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"overrides",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"buttonTooltipPosition",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"styleActionButton",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"disableTextTransform",void 0);
_.E([_.d({computed:"computeVideoId(data.command.offlineVideoEndpoint.videoId)"}),_.h("design:type",String)],cr.prototype,"videoId",void 0);_.E([_.d(),_.h("design:type",Object)],cr.prototype,"data",void 0);_.E([_.d({selector:gi,selectorArgs:["videoId"]}),_.h("design:type",Object)],cr.prototype,"downloadProgress",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cr.prototype,"isDownloadComplete",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cr.prototype,"isHidden",void 0);_.E([_.d({selector:_.Kx,selectorArgs:["videoId"]}),_.h("design:type",String)],cr.prototype,"transferState",void 0);_.E([_.d({selector:_.GXI,selectorArgs:["videoId"]}),_.h("design:type",Object)],cr.prototype,"isVideoDeletedByUser",void 0);_.E([_.d({selector:X3Y,selectorArgs:["videoId"]}),_.h("design:type",Object)],cr.prototype,"offlineabilityState",void 0);
_.E([_.d({value:!0}),_.h("design:type",Boolean)],cr.prototype,"showTooltips",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],cr.prototype,"sendCommandWhenDisabled",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cr.prototype,"disabled",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cr.prototype,"dataChanged",null);
_.E([_.rW("offlineabilityState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cr.prototype,"showHideButton",null);_.E([_.rW("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cr.prototype,"onTransferStateChanged",null);_.E([_.rW("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cr.prototype,"updateProgress",null);
cr=_.E([_.m({disableElementRegistration:!0,is:"ytd-download-button-renderer"})],cr);
_.Z(cr,"ytd-download-button-renderer",function(){if(Gcw!==void 0)return Gcw;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Gcw=I},{mode:2});var gD8;var vDY,WGc=function(){if(vDY!==void 0)return vDY;var I=document.createElement("template");_.Y(I,'\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 vDY=I};var dQm=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live"),xQw=_.s8("dynamic_metadata_update_interaction_delay_period_sec",5)*1E3,eJ=function(){var I=_.q.apply(this,arguments)||this;I.isPressed=!1;I.forceIconButton=!1;I.forceIconOnly=!1;I.forceModernIconButton=!1;I.alignByText=!1;I.isShorts=!1;I.animatedText=!1;I.shouldAnimate=!1;I.JSC$12234_browserSupportsAnimation=_.V("web_supports_animations_api");I.actionMap={"yt-update-toggle-button-text-action":"handleUpdateToggleButtonTextAction",
"yt-update-toggle-button-state-command":"handleUpdateToggleButtonStateCommand"};I.onTap=function(){var C;if((C=I.data)==null||!C.defaultNavigationEndpoint){var y;C=!((y=I.data)==null?0:y.isToggled);var k;if((k=I.data)==null||!k.preventAutoToggle){I.shouldAnimate=!1;I.disableTextUpdateJobId&&_.b$.cancelJob(I.disableTextUpdateJobId);I.disableTextUpdateJobId=_.b$.addLowPriorityJob(function(){I.disableTextUpdateJobId=void 0},xQw);
var F;I.set("data.isToggled",!((F=I.data)==null?0:F.isToggled));y=I.getInnertubeIcon();k={toggled:C,actions:{}};y&&(k.actions[y.toLowerCase()]=C);_.k3(I.hostElement,"yt-toggle-button",k)}}};
return I};
_.R(eJ,_.q);_.u=eJ.prototype;_.u.resetAnimation=function(){this.shouldAnimate=!1;this.disableTextUpdateJobId&&(_.b$.cancelJob(this.disableTextUpdateJobId),this.disableTextUpdateJobId=void 0)};
_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.toggle=function(I){var C;this.set("data.isToggled",I!==void 0?I:!((C=this.data)==null?0:C.isToggled))};
_.u.handleUpdateToggleButtonStateCommand=function(I){if(this.data){I=_.l(I,une);var C,y,k,F=(C=this.data)==null?void 0:(y=C.toggleButtonSupportedData)==null?void 0:(k=y.toggleButtonIdData)==null?void 0:k.id;F&&I&&F===(I==null?void 0:I.buttonId)&&this.set("data.isToggled",I.toggled)}};
_.u.handleUpdateToggleButtonTextAction=function(I){if(this.data){I=_.l(I,Gkq);var C,y,k,F=(C=this.data)==null?void 0:(y=C.toggleButtonSupportedData)==null?void 0:(k=y.toggleButtonIdData)==null?void 0:k.id;F&&I&&F===(I==null?void 0:I.buttonId)&&!this.disableTextUpdateJobId&&(this.shouldAnimate=!0,this.textNumberValue=I.defaultNumericalValue,this.set("data.defaultText",I.defaultText),this.set("data.toggledText",I.toggledText),this.shouldAnimate=!1)}};
_.u.getInnertubeIcon=function(){var I=this.data;if(I){var C,y,k=((C=I.defaultIcon)==null?0:C.iconType)?(y=I.defaultIcon)==null?void 0:y.iconType:null,F,z;C=((F=I.toggledIcon)==null?0:F.iconType)?(z=I.toggledIcon)==null?void 0:z.iconType:k;return I.isToggled?C:k}};
_.u.computeTooltip=function(){return this.data?this.data.isToggled&&this.data.toggledTooltip||this.data.defaultTooltip||null:null};
_.H1.Object.defineProperties(eJ.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I={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$12234_browserSupportsAnimation,animatedTextProps:{numberText:"",
numberValue:Number(this.textNumberValue),heightPx:36,shouldAnimate:this.shouldAnimate}};var C=I.renderer;var y=I.element;var k=I.toggled;var F=I.onTapCallback;var z=I.commandClientArgs;var c=I.overrides;var r=I.forceIcon;var w=I.forceModernIconButton;var L=I.forceDisabled;var D=I.useAnimatedText;var p=I.animatedTextProps;I=x6F(C,k);r=!C.defaultIcon||!r&&C.defaultText?C.defaultIcon?"leading":void 0:w?"icon-only":"icon-only-40";r==="icon-only-40"&&(I.type="text");var Q;w=Object;var X=w.assign,b;a:switch((b=
C.style)==null?void 0:b.styleType){case "STYLE_COMPACT_GRAY":b={size:"S"};break a;default:b={size:"M"}}var S=!!k;var A=(A=k&&C.toggledText||C.defaultText)?_.j2(A):void 0;D?(D=_.hS(k&&C.toggledText||C.defaultText))&&p&&!isNaN(Number(p.numberValue))?(p.numberText=D,k&&(p.numberValue+=1),D=p):D=void 0:D=void 0;var x,B,t,U;var yW=(p=((B=k?C.toggledAccessibilityData||((yW=C.toggledText)==null?void 0:yW.accessibility):C.accessibilityData||((x=C.defaultText)==null?void 0:x.accessibility))==null?void 0:(t=
B.accessibilityData)==null?void 0:t.label)||((U=C.accessibility)==null?void 0:U.label))?p:_.hS(k&&C.toggledText||C.defaultText);L=L===void 0?C.isDisabled:L;y=d6H(C,k,F,y,z);k=WfY(C,k);k!=null&&k.length?(k=_.Y$({innertubeCommand:RGI(k),forceNewState:!0}),k=bdW(k)?k:void 0):k=void 0;C=X.call(w,{},I,b,{iconPosition:r},c,{focused:!1,toggled:S,toggleable:!0,formattedButtonText:A,animatedTextProps:D,accessibilityLabel:yW,disabled:L,onTap:y,aTagConfig:k},oIK((Q=C.colorData)==null?void 0:Q.basicColorPaletteData));
C.alignByText=this.alignByText;this.isShorts&&this.data.isToggled&&(C.type="filled");return C}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var I=this.getInnertubeIcon();if(I)return _.y5(I)}}});
eJ.prototype.resetAnimation=eJ.prototype.resetAnimation;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],eJ.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eJ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],eJ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"isPressed",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"forceIconButton",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"forceIconOnly",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"forceModernIconButton",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"alignByText",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"overrides",void 0);
_.E([_.d(),_.h("design:type",Boolean)],eJ.prototype,"disabled",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"isShorts",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"buttonTooltipPosition",void 0);_.E([_.d(),_.h("design:type",Object)],eJ.prototype,"animatedText",void 0);_.E([_.d(),_.h("design:type",String)],eJ.prototype,"textNumberValue",void 0);_.E([_.d({computed:"computeTooltip(data, data.isToggled)"}),_.h("design:type",Object)],eJ.prototype,"tooltip",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eJ.prototype,"resetAnimation",null);_.E([_.v("data.*","forceIconButton","forceIconOnly","forceModernIconButton","alignByText","overrides","disabled","isShorts"),_.h("design:type",Object),_.h("design:paramtypes",[])],eJ.prototype,"computedButtonShape",null);_.E([_.v("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],eJ.prototype,"computedIcon",null);
eJ=_.E([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:!0,cssBuildOptOut:!0})],eJ);dQm&&_.Z(eJ,"ytd-toggle-button-renderer",WGc,{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var JQt=[],OrK=!1;_.MU(I6s);var qWe,mQP;qWe=_.BO(function(I){function C(L){var D;return _.e(function(p){if(p.nextAddress==1)return(D=!ZrY(L,r())||!r().enabled)?p.jumpTo(2):_.n(p,HrW(),3);p.nextAddress!=2&&(D=p.yieldResult);if(D)return p.return();y();setTimeout(function(){c(!1)},1500);
_.oI(p)})}
function y(){setTimeout(function(){c(!0);var L;(L=k.lottieEl)==null||L.goToAndPlay(0)},150)}
var k=_.yg(),F=_.T(_.c4(!1,void 0,"xffAp")),z=F.next().value,c=F.next().value,r=_.mh(I.settings,{uniqueId:"this is not intended behavior",enabled:!1,experimentEnabled:!1,timings:[]});_.RU(function(){var L,D;((L=I.settings)==null?void 0:(D=L.call(I))==null?void 0:D.uniqueId)==="this is not intended behavior"&&_.SN(new _.ph("Smartimation Settings is undefined"))});
_.l0(function(){r().experimentEnabled&&(r().enabled?BjI(C):(c(!1),EwI(C)),_.$4(function(){EwI(C)}))});
_.l0(function(){r().timings.join("");r().experimentEnabled&&(hHY(r()),_.$4(function(){U6m(r())}))});
var w=_.P4(function(){return qOz(k,r())},void 0,"d96jJc");
F={};return _.P("yt-smartimation",{class:_.sZ(I.className,"smartimation",(F["smartimation--experiment-enabled"]=function(){return r().experimentEnabled},F["smartimation--active-border"]=z,F["smartimation--enable-masking"]=CNK(),F))},_.P(_.Dx,{cond:function(){return r().experimentEnabled},
then:function(){return _.P("div",{class:"smartimation__border"},_.P(_.o8,{className:"smartimation__border-gradient",data:w,animationName:function(){return w().animationConfig.name}}))}}),_.P("div",{class:"smartimation__content"},I.children))},"x");
_.qkH=_.V("web_enable_sink_smartimations")?qWe:I6s;mQP=_.V("web_enable_sink_smartimations")?qWe:_.ks(I6s);qWe.idomCompat=!0;_.V("web_enable_sink_smartimations")?_.B9(mQP,"yt-smartimation",{props:{className:_.As,settings:_.As}}):_.aj(_.qkH,"yt-smartimation",{propNames:["className","settings"]});var rp=function(){var I=_.q.apply(this,arguments)||this;I.likeButtonOverride={segmentedPosition:"start",style:"mono",type:"tonal"};I.dislikeButtonOverride={iconPosition:"icon-only",segmentedPosition:"end",style:"mono",type:"tonal"};I.shouldEnableSmartimation=!1;return I};
_.R(rp,_.q);rp.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
rp.prototype.onDataChanged=function(){var I,C;this.shouldEnableSmartimation=(((I=this.data)==null?void 0:(C=I.timedAnimationData)==null?void 0:C.animationTiming)||[]).length>0&&!this.isLikeOrDisliked()};
rp.prototype.isLikeOrDisliked=function(){if(!this.data)return!1;var I=_.l(this.data.likeButton,_.SV),C=_.l(this.data.dislikeButton,_.SV);return!!((I==null?0:I.isToggled)||(C==null?0:C.isToggled))};
rp.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]]"}}}}}};
_.H1.Object.defineProperties(rp.prototype,{smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var I,C,y=((I=this.data)==null?void 0:(C=I.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"like-dislike",timings:y,enabled:this.shouldEnableSmartimation,experimentEnabled:y.length>0}}}});
rp.prototype.onDataChanged=rp.prototype.onDataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rp.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rp.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],rp.prototype,"likeButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],rp.prototype,"dislikeButtonOverride",void 0);
_.E([_.v("shouldEnableSmartimation"),_.h("design:type",Object),_.h("design:paramtypes",[])],rp.prototype,"smartimationSettings",null);_.E([_.FI("data"),_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rp.prototype,"onDataChanged",null);rp=_.E([_.m({disableElementRegistration:!0,is:"ytd-segmented-like-dislike-button-renderer"})],rp);
_.Z(rp,"ytd-segmented-like-dislike-button-renderer",function(){if(gD8!==void 0)return gD8;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return gD8=I},{mode:1});var ZPd;var BgS;(BgS=document.body)==null||BgS.setAttribute("rounded-container","");var EDd={};EDd.YtToggleButtonBehavior=[_.Et.YtActionHandlerBehavior,yn.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 I=this.data.isToggled;if(!this.isModal_(I)){if(!this.data.preventAutoToggle){this.toggle();var C={toggled:this.data.isToggled,actions:{}};C.actions[this.buttonIcon]=this.data.isToggled;_.k3(this.hostElement,"yt-toggle-button",C)}C=this.data.defaultServiceEndpoint||null;var y=this.data.toggledServiceEndpoint||null;if(C&&y||C&&this.data.preventAutoToggle)I=I?y:C,C=this.disableCommandHandlerOverride,_.V("killswitch_toggle_button_behavior_resolve_command")||C?_.Tg(this.hostElement,
[I]):_.uU(I,this.hostElement),_.k3(this.hostElement,"yt-execute-service-endpoint",{serviceEndpoint:I})}},
stateChanged_:function(){var I=this.data;if(I){var C=I.isToggled;this._setEndpoint(this.computeEndpoint_(I));this._setServiceEndpoint(this.computeServiceEndpoint_(I));this._setButtonIcon(this.computeButtonIcon_(I,C));this._setButtonText(this.computeButtonText_(I,C));this._setButtonAccessibility(this.computeAccessibility_(I,C));this._setButtonTooltip(this.computeTooltip_(I,C));this._setButtonClass(this.computeButtonClass_(I,C));this._setIconPositionType(this.computeIconPositionType_(I));this.updateRenderedElements();
this.elements_.button&&(this.elements_.button.is==="yt-icon-button"?(this.elements_.button.toggleable=!0,this.elements_.button.pressed=C):this.elements_.button.setAttribute("aria-pressed",C));this.elements_.icon&&this.shouldSetIconActiveState_()&&(this.elements_.icon.active=C)}},
shouldSetIconActiveState_:function(){return _.V("kevlar_system_icons")},
toggle:function(I){this.set("data.isToggled",I!==void 0?I:!this.data.isToggled);_.V("web_toggle_button_force_update_killswitch")||this.notifyPath("data.isToggled")},
isModal_:function(I){if(I){var C,y;return!!((C=this.data)==null?0:(y=C.toggledServiceEndpoint)==null?0:y.confirmDialogEndpoint)}return!!this.endpoint&&(!!this.endpoint.modalEndpoint||!!this.endpoint.shareEndpoint||!!this.endpoint.shareEntityEndpoint)},
computeEndpoint_:function(I){return I&&I.defaultNavigationEndpoint||null},
computeButtonIcon_:function(I,C){var y=I&&I.defaultIcon?_.y5(I.defaultIcon.iconType):null;I=I&&I.toggledIcon?_.y5(I.toggledIcon.iconType):y;return C?I:y},
handleUpdateToggleButtonStateCommand_:function(I){I=I.updateToggleButtonStateCommand;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==I.buttonId&&this.toggle(I.toggled)},
computeButtonText_:function(I,C){return I?C&&I.toggledText||I.defaultText||null:null},
computeAccessibility_:function(I,C){return I?(C?this.get("toggledAccessibilityData.accessibilityData",I):this.get("accessibilityData.accessibilityData",I))||I.accessibility||null:null},
computeTooltip_:function(I,C){return I?C&&I.toggledTooltip||I.defaultTooltip||null:null},
computeButtonClass_:function(I,C){if(!I)return"";var y="",k=I.toggledStyle||I.style;if(C=C?k:I.style){C.styleType&&(C=C.styleType);try{y+=C.toLowerCase().replace(/_/g,"-")+" "}catch(F){_.Ki(F,C,typeof C),_.SN(F)}}if(I=I.size){I.sizeType&&(I=I.sizeType);try{y+=I.toLowerCase().replace(/_/g,"-")+" "}catch(F){_.Ki(F,I,typeof I),_.SN(F)}}return y.trim()},
computeIconPositionType_:function(I){return I&&I.iconPosition||null},
computeServiceEndpoint_:function(I){var C=I&&I.serviceEndpoint,y=this.get("data.command.commandMetadata.webCommandMetadata.sendPost");return C?C:y&&I.command?I.command:null},
handleUpdateToggleButtonTextAction_:function(I){I=I.updateToggleButtonTextAction;this.get("toggleButtonSupportedData.toggleButtonIdData.id",this.data)==I.buttonId&&(this.set("data.defaultText",I.defaultText),this.notifyPath("data.defaultText"),this.set("data.toggledText",I.toggledText),this.notifyPath("data.toggledText"))}}];_.jz("sharingToggleButtonAndDefaultButton","toggleButtonRenderer",{component:"ytd-toggle-button-renderer",params:{noink:!0}});var hKS=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live"),iF=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.roundedContainer=!0;return I};
_.R(iF,_.q);iF.prototype.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
iF.prototype.onYtButtonTapHandler=function(){if(!this.ytToggleButtonBehavior.isModal_()){var I=this.data.isToggled;if(!this.data.preventAutoToggle){this.ytToggleButtonBehavior.toggle();var C={toggled:!!this.data.isToggled,actions:{}};C.actions[this.ytToggleButtonBehavior.buttonIcon]=this.data.isToggled;var y,k;C.actions.playlistId=(y=this.data.defaultServiceEndpoint)==null?void 0:(k=y.playlistEditEndpoint)==null?void 0:k.playlistId;_.k3(this.hostElement,"yt-toggle-button",C)}(I=I?this.data.toggledServiceEndpoint:
this.data.defaultServiceEndpoint)&&this.ytComponentBehavior.resolveCommand(I)}};
iF.prototype.onYtNavigate=function(I){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);C&&(I.stopPropagation(),this.ytdOpenPopupBehavior.openPopup(C))};
_.H1.Object.defineProperties(iF,{template:{configurable:!0,enumerable:!0,get:function(){if(ZPd===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);ZPd=I}I=ZPd;return I}}});
iF.prototype.onYtNavigate=iF.prototype.onYtNavigate;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],iF.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iF.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],iF.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(EDd.YtToggleButtonBehavior),_.h("design:type",Object)],iF.prototype,"ytToggleButtonBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],iF.prototype,"data",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],iF.prototype,"showTooltips",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iF.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iF.prototype,"roundedContainer",void 0);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iF.prototype,"onYtNavigate",null);
iF=_.E([_.m({is:"ytd-toggle-button-renderer",disableElementRegistration:hKS})],iF);var UQq;_.wp=new _.Jj("PANEL_CONTROLLER_TOKEN");_.nD=new _.Jj("SHEET_CONTROLLER_TOKEN");_.Pr=new _.Jj("DIALOG_CONTROLLER_TOKEN");UQq=new _.Jj("DIALOG_CONTAINER_TOKEN");var c1m=_.PQ("DOWNLOAD",{},"Download"),eKm=_.PQ("DOWNLOADING",{},"Downloading"),r1H=_.PQ("DOWNLOADED",{},"Downloaded"),iPY=_.PQ("RETRY",{},"Retry");var HP0=_.BO(function(I){var C=NgF,y=function(){return""},k=LGt(I.data),F=DQm(I.data),z=pGt(I.data),c=Q4H(I.data);
C=function(){var r=I.data(),w=zKI(r,k(),F(),z(),c()),L=!!r.videoId,D=w.text;return{title:L?D:void 0,tooltip:L?void 0:D,accessibilityText:D,onTap:w.onTap,iconName:w.iconType,style:r.butonStyle,type:"BUTTON_VIEW_MODEL_TYPE_TONAL",state:w.disabled?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:r.buttonSize}};
y={};y=_.sZ("ytDownloadButtonViewModelHost",(y.ytDownloadButtonViewModelIsHidden=function(){var r=I.data(),w=c();return r.playlistId||w()==="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"||w()==="ADD_TO_OFFLINE_BUTTON_STATE_DISABLED"?!1:!0},y));
return _.P("download-button-view-model",{class:y},_.P(_.fM,{data:C}))},"y");
HP0.idomCompat=!0;_.MU(l6m);_.MU(V8Y);var J1m=_.BO(function(I){var C=I.backgroundLottieRef;var y=I.foregroundLottieRef;var k=I.children;var F=I.wrapperClass;var z=I.disableAnimation;I=function(){return(_.V("web_animated_actions")||_.V("web_animated_actions_v2"))&&!(z==null?0:z())};
return _.P("yt-animated-action",{class:_.sZ("animated-action__container",F)},_.P("div",{class:"animated-action__content-with-background"},_.P(_.Dx,{cond:I,then:function(){return _.P(t8q,{wrapperClass:"animated-action__background-container",lottieClass:"animated-action__background",lottiePlayerProps:function(){return{animationRef:C==null?void 0:C(),animationConfig:{name:"animated-actions-background",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_container_"+
(XGI()?"dark":"light")+"_v5.json"}}}})}}),k),_.P(_.Dx,{cond:I,
then:function(){return _.P(t8q,{lottiePlayerProps:function(){return{animationRef:y==null?void 0:y(),animationConfig:{name:"animated-actions-foreground",autoplay:!1,loop:!1,path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_sparkles_"+(XGI()?"dark":"light")+"_v4.json"}}}})}}))},"z");
J1m.idomCompat=!0;var s39=_.V("web_enable_sink_animated_actions")?J1m:l6m,OPu=_.V("web_enable_sink_animated_actions")?J1m:_.ks(l6m),t8q=_.BO(function(I){var C=I.wrapperClass;var y=I.lottieClass;var k=I.lottiePlayerProps;return _.P("div",{class:_.sZ("animated-action__lottie",C),"aria-hidden":"true"},_.P(_.o8,{className:y,data:k,animationName:function(){return k().animationConfig.name}}))},"A");var $QK={isOpen:!1};var bPY={isAllowed:!1};var Gcm={errorMessage:"",title:"",privacy:"",isDisabled:!0};var SWO={isOpen:!1};var A1t={isFullscreen:!1,topPanelId:void 0,navigationButtons:{},secondaryHeader:{}};var a6w={response:void 0};var vDt=function(I,C){I=I===void 0?a6w:I;switch(C.type){case "LOCATION_COLLECTION_RESPONSE_CHANGE":return Object.assign({},I,{response:C.payload});default:return I}};var M8w={nextCommand:void 0,nextDisabled:!1,footerSubmissionData:void 0,isImpersonationValid:!1};var WGX=function(I,C){I=I===void 0?M8w:I;switch(C.type){case "REPORT_CHANNEL_NEXT_DISABLED_CHANGE":return Object.assign({},I,{nextDisabled:C.payload});case "REPORT_CHANNEL_NEXT_COMMAND_CHANGE":return Object.assign({},I,{nextCommand:C.payload});case "REPORT_CHANNEL_MODAL_FOOTER_RENDERER_SUBMISSION_DATA_CHANGE":return Object.assign({},I,{footerSubmissionData:C.payload});case "REPORT_CHANNEL_NEXT_IMPERSONATION_VALIDITY_CHANGE":return Object.assign({},I,{isImpersonationValid:C.payload});default:return I}};var IT5={reportFormData:void 0,reportDetailsFormData:void 0};var dQs=function(I,C){I=I===void 0?IT5:I;switch(C.type){case "REPORT_FORM_MODAL_RENDERER_DATA_CHANGE":return Object.assign({},I,{reportFormData:C.payload});case "REPORT_DETAILS_FORM_RENDERER_DATA_CHANGE":return Object.assign({},I,{reportDetailsFormData:C.payload});default:return I}};var Cym=void 0;_.V("mweb_enable_redux_store_on_demand")||(Cym=new Ue(xQF()));var Cys=_.BO(function(I){I=_.ZB(I,{themeOverride:void 0,animationRef:{}});var C=I.animatedIconType,y=I.active,k=I.themeOverride,F=I.animationRef;I=I.staticIconFn;var z=_.T(_.c4(void 0,void 0,"P5a72b")),c=z.next().value,r=z.next().value,w=function(){a:{var A=C();var x=k==null?void 0:k();var B;x=(x==null?void 0:x.useDarkTheme)||((B=_.N().resolve(_.aU(_.AE)))==null?void 0:B());switch(A){case "LIKE":b:{Cym||(Cym=new Ue(xQF()));if((A=W9s(Cym.getState()))&&A.animationStyle)switch(A.animationStyle){case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_DELHI":A=
mQY({name:x?"valentines25_heart_dark":"valentines25_heart_light",path:x?"animated_like_valentines25_heart_dark_v5":"animated_like_valentines25_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_VALENTINE25_BROKEN_HEART_DELHI":A=mQY({name:x?"valentines25_broken_heart_dark":"valentines25_broken_heart_light",path:x?"animated_like_valentines25_broken_heart_dark_v5":"animated_like_valentines25_broken_heart_light_v5",totalFrames:60});break b;case "ANIMATED_LIKE_ICON_ANIMATION_STYLE_YOUTUBE_BIRTHDAY_DELHI":A=
mQY({name:x?"youtube_20th_birthday_dark":"youtube_20th_birthday_light",path:x?"animated_like_youtube_20th_birthday_dark":"animated_like_youtube_20th_birthday_light",totalFrames:60});break b}A=void 0}if(A){x=A;break a}x="animated_like_icon_"+(x?"dark_v4":"light_v4");x={lottiePlayerProps:{animationConfig:{name:x,path:qWI("animated_like_icon",x),loop:!1,autoplay:!1,rendererSettings:{viewBoxOnly:!0,className:"animated-like-icon"}}},totalFrames:60,lazyLoad:!0};break a;case "NOTIFICATION_BELL":x={lottiePlayerProps:{animationConfig:{name:x?
"notification_bell_dark":"notification_bell_light",path:"https://www.gstatic.com/youtube/img/lottie/subscribe_action/subscribe_action_bell_icon_"+(x?"dark":"light")+".json",loop:!1,autoplay:!1,rendererSettings:{className:"animated-subscribe-icon"}}},totalFrames:79,lazyLoad:!1};break a}x=void 0}return x},L=function(){var A,x;
return(x=(A=w())==null?void 0:A.lottiePlayerProps.animationConfig.name)!=null?x:""},D=function(){if(w()){var A=w().lottiePlayerProps.animationConfig.path;
return CE.get(A)||c()}};
z=_.T(_.c4(!1,void 0,"h6xR3c"));var p=z.next().value;z=z.next().value;var Q=BgH(z),X=function(){var A=w(),x,B,t;return(t=A==null?void 0:(x=A.lottiePlayerProps.animationConfig)==null?void 0:(B=x.rendererSettings)==null?void 0:B.className)!=null?t:""},b=void 0,S=void 0;
_.l0(function(){var A=w(),x=L(),B=D(),t=p(),U=y();if(A&&(S!==x&&(S=x,b=U,x=F(),Q.animationConfig=A.lottiePlayerProps.animationConfig,Q.animationRef=x,B&&(Q.animationConfig.animationData=B,Q.animationConfig.path=void 0),x=A.lottiePlayerProps.animationConfig.path,!CE.get(x)&&A.lazyLoad&&x&&ZPW(x,r)),!(t||A.lazyLoad&&!B))){if(B=!F().lottieEl)U?(t=A.totalFrames,Q.animationConfig.initialSegment=[t-1,t]):Q.animationConfig.initialSegment=void 0;if(b!==U&&!B)if(B=F(),U){var yW;(yW=B.lottieEl)==null||yW.playSegments([0,
A.totalFrames],!0)}else{var a;(a=B.lottieEl)==null||a.playSegments([0,1],!0)}b=U}});
return _.P("animated-icon",{class:"ytAnimatedIconHost"},_.P(_.Dx,{cond:function(){var A,x;return!((A=w())==null||!A.lottiePlayerProps.animationConfig.path||((x=w())==null?0:x.lazyLoad)&&!D()||p())},
then:function(){return _.P(_.o8,{data:Q,animationName:L,className:X,animationRef:F})},
else:I}))},"B");_.MU(oNz);var s35,y6m;s35=_.BO(function(I){var C=_.Es(),y=_.Es(),k=_.Es(),F=_.yg(),z=_.yg(),c=_.yg(),r=_.cj(_.CM,function(){return I.data().stateEntityStoreKey}),w=_.cj(GwI,function(){var Zt,Qd;
return(Qd=(Zt=I.data().notificationStateEntityStoreKeys)==null?void 0:Zt.subsNotificationStateKey)!=null?Qd:""}),L=function(){return!I.data().enableSubscribeButtonPostClickAnimation},D=_.T(_.c4(0,void 0,"LZz2ld")),p=D.next().value,Q=D.next().value;
D=_.T(_.c4(0,void 0,"DTJZzd"));var X=D.next().value,b=D.next().value;D=_.T(_.c4(!1,void 0,"vYdJ9e"));var S=D.next().value,A=D.next().value;D=_.T(_.c4(!1,void 0,"HsSmhb"));var x=D.next().value,B=D.next().value,t=!1,U="";D=_.T(_.c4(!1,void 0,"p20o0d"));var yW=D.next().value,a=D.next().value,cs=function(){B(!0);_.LM(_.b$,function(){B(!1)},1500)};
_.l0(function(){var Zt=x();TO(function(){Zt&&!L()&&r()&&TMm(F,z,c)})});
_.l0(function(){var Zt=r();TO(function(){if(!L()&&Zt){var Qd;((Qd=I.animateWidth)==null?0:Qd.call(I))&&zn9(C.value,!!Zt.subscribed,p(),X());Zt.subscribed&&Zt.key===U&&cs();Zt.key&&(U=Zt.key)}})});
D=_.P4(function(){var Zt,Qd,OF,Rw=I.data(),ku=!((Zt=r())==null||!Zt.subscribed);Zt=!((Qd=I.isOverlay)==null||!Qd.call(I));Qd=S()?C.value:void 0;var xK=(OF=w())==null?void 0:OF.state;OF=yW();urW(Rw,xK);return ej({model:Rw,subscribed:ku,isOverlay:Zt,element:Qd,notificationState:xK,disableTextEllipsis:!0,focused:OF})},void 0,"CJfYod");
var XO=function(){var Zt;if(!L()&&((Zt=I.animateWidth)==null?0:Zt.call(I))&&(y==null?0:y.value)&&(k==null?0:k.value)&&!t){Zt=r();var Qd=_.T((Zt==null?0:Zt.subscribed)?[y,k]:[k,y]),OF=Qd.next().value;Qd=Qd.next().value;OF=Math.ceil(OF.value.getBoundingClientRect().width);Qd=Math.ceil(Qd.value.getBoundingClientRect().width);Q(OF);b(Qd);zn9(C.value,!(Zt==null||!Zt.subscribed),OF,Qd);t=!0}},Rm=_.uk(function(Zt){XO();
var Qd=r();Qd&&(Zt.detail.endpoint.subscribeEndpoint||Zt.detail.endpoint.unsubscribeEndpoint)&&kSW(C.value,!Qd.subscribed,Qd)}),$z=function(){var Zt=_.N().resolve(_.aU(_.Du));
Zt&&a(Zt.isKeyBoardInUse())},hX=function(){a(!1)};
_.BH("yt-player-subscribe",function(Zt){var Qd=r();Qd&&Zt===I.data().channelId&&kSW(C.value,!0,Qd)});
_.BH("yt-player-unsubscribe",function(Zt){var Qd=r();Qd&&Zt===I.data().channelId&&kSW(C.value,!1,Qd)});
_.BH("yt-update-subscribe-button-action",function(Zt){Zt=_.l(Zt,IT9);var Qd=r();Qd&&Zt&&Zt.channelId===I.data().channelId&&kSW(C.value,!!Zt.subscribed,Qd)});
_.RU(function(){C.value&&(C.value.addEventListener("focusin",$z),C.value.addEventListener("focusout",hX));var Zt=_.NU(_.b$,function(){XO()});
A(!0);_.$4(function(){_.b$.cancelJob(Zt);C.value&&(C.value.removeEventListener("focusin",$z),C.value.removeEventListener("focusout",hX))})});
var vs=function(){var Zt,Qd,OF;if(OF=!((Zt=r())==null||!Zt.subscribed))Zt=!!I.data().disableNotificationBell,OF=(Qd=w())==null?void 0:Qd.state,OF=!Zt&&!!OF;return OF},mY=function(){var Zt;
return!((Zt=r())==null?0:Zt.subscribed)},Bs=function(){var Zt,Qd;
if(Qd=mY()){Qd=!!I.data().disableNotificationBell;var OF=(Zt=w())==null?void 0:Zt.state;Qd=!Qd&&!!OF}return Qd},n5={},sH={};
return _.P("yt-subscribe-button-view-model",{class:_.sZ("yt-subscribe-button-view-model-wiz",(n5["yt-subscribe-button-view-model-wiz__can-animate-width"]=function(){var Zt,Qd;return!((Zt=r())==null||!Zt.subscribed)&&((Qd=I.animateWidth)==null?void 0:Qd.call(I))&&x()},n5["yt-subscribe-button-view-model-wiz--hidden"]=function(){var Zt;
return!((Zt=r())==null?0:Zt.subscribed)&&I.data().hideWhenUnsubscribed},n5)),
el:C,"on:yt-service-request-sent":Rm},_.P(OPu,{backgroundLottieRef:F,foregroundLottieRef:z,wrapperClass:_.sZ("yt-subscribe-button-view-model-wiz__animated-action-wrapper",(sH["yt-subscribe-button-view-model-wiz__animated-action-wrapper--is-animating"]=function(){var Zt;return((Zt=I.animateWidth)==null?void 0:Zt.call(I))&&x()},sH["yt-subscribe-button-view-model-wiz__static-width"]=function(){var Zt;
return!((Zt=I.animateWidth)==null?0:Zt.call(I))},sH)),
disableAnimation:L},_.P("div",{el:y,class:"yt-subscribe-button-view-model-wiz__container"},_.P(aY,{data:D,icon:function(){return _.P(_.Dx,{cond:vs,then:function(){var Zt=function(){var Qd;return y6s((Qd=w())==null?void 0:Qd.state)};
return _.P(_.Dx,{cond:function(){return L()||Zt()!=="NOTIFICATIONS_NONE"},
then:function(){return _.P(_.ez,{icon:Zt})},
else:function(){return _.P(Cys,{animatedIconType:"NOTIFICATION_BELL",active:!1,animationRef:c})}})}})},
secondaryIconName:function(){return vs()?"EXPAND":void 0}}))),_.P("div",{el:k,
class:"yt-subscribe-button-view-model-wiz__invisible"},_.P(_.Dx,{cond:function(){var Zt;return((Zt=I.animateWidth)==null?void 0:Zt.call(I))&&!L()&&!t},
then:function(){return _.P(aY,{data:_.P4(function(){var Zt;return ej({model:I.data(),subscribed:mY(),isOverlay:!((Zt=I.isOverlay)==null||!Zt.call(I)),element:C.value,disableTextEllipsis:!0})},void 0,"VQgKbc"),
iconName:function(){var Zt;return Bs()?y6s((Zt=w())==null?void 0:Zt.state):void 0},
secondaryIconName:function(){return Bs()?"EXPAND":void 0}})}})))},"C");
_.oNq=_.V("web_enable_sink_yt_subscribe_button_view_model")?s35:oNz;y6m=_.V("web_enable_sink_yt_subscribe_button_view_model")?s35:_.ks(oNz);s35.idomCompat=!0;var c6s=new _.Jj("RENDERER_STAMPER_OPTIONS_TOKEN");var Vg;_.Nl=new qbw;Vg=new Map;var $wW="compactRadioRenderer compactPlaylistRenderer playlistVideoRenderer compactVideoRenderer feedNudgeRenderer gridVideoRenderer primetimePromoRenderer radioRenderer primetimePromoRenderer reelItemRenderer reelShelfRenderer richShelfRenderer searchHistoryQueryRenderer shelfRenderer videoWithContextRenderer videoCardRenderer statementBannerRenderer miniGameCardViewModel shortsLockupViewModel lockupViewModel".split(" "),bCz=["notificationTextRenderer","notificationMultiActionRenderer"],RnX="primetimePromoRenderer statementBannerRenderer brandVideoShelfRenderer brandVideoSingletonRenderer feedNudgeRenderer playlistVideoRenderer".split(" "),
XXO=DwI(function(I){return _.b0(I==null?void 0:I.targetId)}).useUpdatableData;var lTW=0;_.lY.debugName="EjJbCe";var kSd=_.BO(function(I){var C=I.data;var y=_.cj(_.CM,function(){return C().subscriptionStateEntityKey});
return _.P(_.Dx,{cond:function(){var k=C(),F=y();return!k.hideWhenUnsubscribed||(F==null?0:F.subscribed)?_.l(C().button,_.Xi):void 0},
then:function(k){return _.P("yt-subscribe-plus-button-view-model",{class:"ytSubscribePlusButtonViewModelHost"},_.P(_.fM,{data:k,buttonOverrides:function(){return{toggled:!0}}}))}})},"D");var fT9=_.Qg({buttonViewModel:_.fM,subscribeButtonViewModel:_.oNq,downloadButtonViewModel:HP0,toggleButtonViewModel:_.RY,subscribePlusButtonViewModel:kSd});_.MU(Kmt);var FmP=_.BO(function(I){return _.P(_.lY,{data:function(){return I.actionRow().actions}},{buttonViewModel:function(C){var y=C.data;
return _.P(LD,{isRow:I.isRow,isIconOnlyButton:function(){return A6W(y())},
useIntrinsicWidth:I.useIntrinsicWidth},_.P(_.fM,{data:y}))},
subscribeButtonViewModel:function(C){return _.P(LD,{isRow:I.isRow},_.P(y6m,{data:C.data,isOverlay:!1,animateWidth:function(){return!I.isRow()}}))},
downloadButtonViewModel:function(C){var y=C.data;return _.P(LD,{isRow:I.isRow,isIconOnlyButton:function(){return!!y().playlistId}},_.P(HP0,{data:y}))},
toggleButtonViewModel:function(C){var y=C.data;return _.P(LD,{isRow:I.isRow,isIconOnlyButton:function(){var k=y();return A6W(_.l(k.isToggled?k.toggledButtonViewModel:k.defaultButtonViewModel,_.Xi))}},_.P(_.RY,{data:y}))},
subscribePlusButtonViewModel:function(C){return _.P(LD,{isRow:I.isRow},_.P(kSd,{data:C.data}))}})},"E"),LD=_.BO(function(I){var C={};
return _.P("div",{class:_.sZ("yt-flexible-actions-view-model-wiz__action",(C["yt-flexible-actions-view-model-wiz__action--row-action"]=I.isRow,C["yt-flexible-actions-view-model-wiz__action--intrinsic-width"]=I.useIntrinsicWidth,C["yt-flexible-actions-view-model-wiz__action--row-action-feature-phone"]=!1,C["yt-flexible-actions-view-model-wiz__action--icon-only-button"]=I.isIconOnlyButton,C))},I.children)},"F"),urd=_.BO(function(I){var C=function(){var k;
return((k=I.layout)==null?void 0:k.call(I))===1},y={};
return _.P("yt-flexible-actions-view-model",{class:_.sZ("yt-flexible-actions-view-model-wiz",I.className,(y["yt-flexible-actions-view-model-wiz--inline"]=function(){return!C()},y["yt-flexible-actions-view-model-wiz--scrollable"]=function(){return I.data().style==="FLEXIBLE_ACTIONS_STYLE_SCROLLING"},y))},_.P(_.pH,{each:function(){return I.data().actionsRows||[]}},function(k){return _.P(_.Dx,{cond:C,
then:function(){return _.P("div",{class:"yt-flexible-actions-view-model-wiz__action-row"},_.P(FmP,{actionRow:k,isRow:C,useIntrinsicWidth:function(){return!!I.data().respectActionIntrinsicWidth}}))},
else:function(){return _.P(FmP,{actionRow:k,isRow:C})}})}))},"G"),zn5=_.V("web_enable_sink_yt_flexible_actions_view_model")?urd:Kmt,Dg=_.V("web_enable_sink_yt_flexible_actions_view_model")?urd:_.ks(Kmt);
urd.idomCompat=!0;_.B9(Dg,"yt-flexible-actions-view-model",{props:{data:_.As,layout:_.As,justifyContentOverride:_.As,className:_.As}});_.MU(gNH);var TMw,mwH;TMw=_.BO(function(I){var C=_.cj($s,function(){var F;return(F=I.data().dislikeEntityKey)!=null?F:""}),y=_.P4(function(){var F=C();
return F?F.likeStatus==="DISLIKE":_.l(I.data().toggleButtonViewModel,_.$A).isToggled},void 0,"D8oIFb"),k=_.P4(function(){return Object.assign({},_.l(I.data().toggleButtonViewModel,_.$A),{isToggled:y()})},void 0,"shaCXe");
return _.P("dislike-button-view-model",{class:"ytDislikeButtonViewModelHost"},_.P(_.RY,{data:k,buttonShapeOverrides:I.buttonShapeOverrideables,onToggle:function(F){var z=C();z&&F!==(z.likeStatus==="DISLIKE")&&z.key&&_.qH(_.bY("likeStatusEntity",z.key,{likeStatus:F?"DISLIKE":"INDIFFERENT",hadUserInteraction:F}))}}))},"H");
mwH=_.V("web_enable_sink_dislike_button_view_model")?TMw:gNH;_.c6m=_.V("web_enable_sink_dislike_button_view_model")?TMw:_.ks(gNH);TMw.idomCompat=!0;_.enc=_.ks(WmY);_.MU(WmY);_.MU(ZCF);_.aj(ZCF,"segmented-like-dislike-button-view-model",{propNames:["data"]});var tTF=0;_.B9(crO,"account-link-button-view-model",{props:{data:_.As,className:_.Z_,setMinWidth:_.Z_,forceIconOnly:_.Z_}});_.jz("menuRenderer","menuRenderer","ytd-menu-renderer");
var r6w={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"}},
iCS=_.V("web_fix_missing_action_buttons")?100:200,pD=function(){var I=_.q.apply(this,arguments)||this;I.safeArea=!_.V("kevlar_flex_menu_safe_area_killswitch");I.tonalOverride=!1;I.threeDotSize="M";I.isOverlay=!1;I.useOverlayDark=!1;I.topLevelIconsOnly=!1;I.JSC$12383_lastWidth=0;I.maybeUpdateFlexibleMenu=function(){_.V("web_fix_missing_action_buttons")?requestAnimationFrame(I.maybeUpdateFlexibleMenuImpl):I.maybeUpdateFlexibleMenuImpl()};
I.maybeUpdateFlexibleMenuImpl=function(){var C;if((C=I.data)!=null&&C.flexibleItems){I.maybeFlushDebouncer();C=I.hostElement.clientWidth;var y=C>I.JSC$12383_lastWidth,k,F=((k=I.topLevelButtonsContainer)==null?void 0:k.scrollHeight)||0,z;k=((z=I.flexibleItemButtonsContainer)==null?void 0:z.scrollHeight)||0;z=I.hostElement.scrollHeight>Math.max(F,k)+8;y?(I.resetFlexibleItems(),I.JSC$12383_lastWidth=I.hostElement.clientWidth,I.maybeUpdateFlexibleMenu()):z&&(I.shrinkFlexibleMenu(),I.JSC$12383_lastWidth=
C)}};
I.computeThreeDotButtonShape=function(){return Object.assign({},{onTap:function(){I.onOverflowTap()},
iconPosition:"icon-only",style:I.isOverlay?I.useOverlayDark?"overlay-dark":"overlay":"mono",type:"tonal",size:I.threeDotSize,state:"active",accessibilityLabel:I.computeAccessibilityLabel(I.data)},I.threeDotButtonOverride)};
I.onOverflowTap=function(){if(I.data.fetchMenuCommand)_.N().resolve(_.ID).resolveCommand(I.data.fetchMenuCommand,{form:{element:I.hostElement}});else if(I.data.isDisabled&&I.data.disabledCommand)_.uU(I.data.disabledCommand,I.hostElement);else{var C=I.createMenuRendererVe(),y={items:I.items};I.data.menuPopupAccessibility&&(y.menuPopupAccessibility=I.data.menuPopupAccessibility);I.data.footer&&(y.footer=I.data.footer);C={openPopupAction:{popupType:"DROPDOWN",popup:{menuPopupRenderer:y},veData:C}};_.N().resolve(_.nD).openSheet({openPopupActionCommand:C},
I.hostElement)}};
return I};
_.R(pD,_.q);_.u=pD.prototype;_.u.updateButtonOverrides=function(){if(!_.V("menu_renderer_label_update_upkillswitch")){var I=_.f(this.hostElement).querySelector("yt-button-view-model");I&&(I.buttonOverrides=this.buttonOverrides)}};
_.u.computeHasItems=function(){var I;return((I=this.topLevelButtonData)==null?void 0:I.length)||this.hasFlexibleItems};
_.u.created=function(){this.boundOnStamperFinished=this.onStamperFinished.bind(this)};
_.u.iconButtonColorChanged=function(){this.data&&this.data.iconColor&&(this.hasCustomIconColor=!0,_.CK(this.hostElement,{"--ytd-menu-renderer-button-color":_.lg(this.data.iconColor)}))};
_.u.onStamperFinished=function(){this.JSC$12383_lastWidth=this.hostElement.clientWidth;this.maybeUpdateFlexibleMenu()};
_.u.setupFlexibleMenu=function(){var I=this,C;(C=this.data)!=null&&C.flexibleItems?window.ResizeObserver&&(this.hostElement.addEventListener("yt-rendererstamper-finished",this.boundOnStamperFinished),this.hostElement.addEventListener("yt-renderidom-finished",this.boundOnStamperFinished),this.resizeThrottle||(this.resizeThrottle=new _.OG(this.maybeUpdateFlexibleMenu,iCS,this)),this.resizeObserver||(this.resizeObserver=new ResizeObserver(function(){I.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))};
_.u.maybeFlushDebouncer=function(){if(_.V("web_replace_formatted_with_attributed_string")){var I;(I=this.topLevelButtons)==null||I.forEach(function(y){var k;(y=(k=y.getElementsByTagName("yt-attributed-string"))==null?void 0:k[0])&&RWH(y)});
var C;(C=this.flexibleItemButtons)==null||C.forEach(function(y){var k;(y=(k=y.getElementsByTagName("yt-attributed-string"))==null?void 0:k[0])&&RWH(y)})}};
_.u.resetFlexibleItems=function(){var I;if((I=this.data)!=null&&I.flexibleItems){_.V("web_fix_missing_action_buttons")||this.hostElement.removeEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu);var C;this.flexAsTopLevelButtons=(C=this.data.flexibleItems)==null?void 0:C.map(function(y){return _.l(y,_.iVu).topLevelButton});
_.V("web_fix_missing_action_buttons")||this.hostElement.addEventListener("yt-rendererstamper-finished",this.maybeUpdateFlexibleMenu)}};
_.u.computeButtonOverride=function(){if(this.tonalOverride)return{style:"mono",type:"tonal"}};
_.u.shrinkFlexibleMenu=function(){var I;(I=this.flexAsTopLevelButtons)!=null&&I.length&&(this.flexAsTopLevelButtons=[].concat(_.Py(this.flexAsTopLevelButtons.slice(0,-1))))};
_.u.configureRendererStamper=function(){return{topLevelButtonData:{id:"top-level-buttons-computed",mapping:r6w,events:!0},flexAsTopLevelButtons:{id:"flexible-item-buttons",mapping:r6w,events:!0}}};
_.u.tonalOverrideChanged=function(){this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.u.ready=function(){this.menuFocused=!0;this.overlayOpen=!1;this.ytdOpenPopupBehavior.popupPositionTarget=this.button;this.tonalOverride&&(this.ytdOpenPopupBehavior.popupPositionTarget=this.buttonShape)};
_.u.detached=function(){this.icon="yt-icons:more_vert"};
_.u.computeTopLevelButtonData=function(I){if(!I)return[];var C;I=(C=I==null?void 0:I.topLevelButtons)!=null?C:[];return _.Le.unsafeClone([].concat(_.Py(I)))};
_.u.computeItems=function(I,C){if(!I)return[];var y=[];if(C){var k=(I.flexibleItems||[]).map(function(c){return _.l(c,_.iVu)});
k=_.T(k);for(var F=k.next();!F.done;F=k.next())F=F.value,C.includes(F.topLevelButton)||(F=F.menuItem)&&y.push(F)}var z;I=(z=I==null?void 0:I.items)!=null?z:[];return[].concat(_.Py(y),_.Py(I))};
_.u.computeMenuActive=function(I,C){return I||C};
_.u.onPopupOpened=function(){this.overlayOpen=!0;_.k3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen);this.menuFocused==null&&(this.menuFocused=!1)};
_.u.onPopupClosed=function(){this.overlayOpen=!1;_.k3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.u.onPopupCanceled=function(){this.overlayOpen=!1;_.k3(this.hostElement,"yt-menu-overlay-changed",this.overlayOpen)};
_.u.computeAccessibilityLabel=function(I){return this.get("accessibility.accessibilityData.label",I)};
_.u.isHidden=function(I,C){return this.tonalOverride||!I?!0:I.fetchMenuCommand||I.isDisabled&&I.disabledCommand?!1:!(C==null?0:C.length)};
_.u.isModernOverflowHidden=function(I,C){return this.tonalOverride&&I?I.fetchMenuCommand?!1:!(C==null?0:C.length):!0};
_.u.createMenuRendererVe=function(){var I=this.data.trackingParams,C=_.Si(),y=_.fq();return I&&C&&y?(I=_.nv(I),y=_.Dn(7591),_.V("combine_ve_grafts")?_.oV(_.e2(),y,I):_.q1(C,I,y),y):null};
_.H1.Object.defineProperties(pD.prototype,{hasFlexibleItems:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.flexAsTopLevelButtons)==null||!I.length)}},
buttonOverrides:{configurable:!0,enumerable:!0,get:function(){if(this.topLevelIconsOnly)return{iconPosition:"icon-only"}}}});
pD.prototype.onPopupCanceled=pD.prototype.onPopupCanceled;pD.prototype.onPopupClosed=pD.prototype.onPopupClosed;pD.prototype.onPopupOpened=pD.prototype.onPopupOpened;pD.prototype.tonalOverrideChanged=pD.prototype.tonalOverrideChanged;pD.prototype.resetFlexibleItems=pD.prototype.resetFlexibleItems;pD.prototype.setupFlexibleMenu=pD.prototype.setupFlexibleMenu;pD.prototype.iconButtonColorChanged=pD.prototype.iconButtonColorChanged;pD.prototype.updateButtonOverrides=pD.prototype.updateButtonOverrides;
_.E([_.g(_.vA),_.h("design:type",Object)],pD.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#button-shape"),_.h("design:type",Js)],pD.prototype,"buttonShape",void 0);_.E([_.z$("#button"),_.h("design:type",Object)],pD.prototype,"button",void 0);
_.E([_.d(),_.h("design:type",Object)],pD.prototype,"data",void 0);_.E([_.d({computed:"computeTopLevelButtonData(data)"}),_.h("design:type",Array)],pD.prototype,"topLevelButtonData",void 0);_.E([_.d(),_.h("design:type",Array)],pD.prototype,"flexAsTopLevelButtons",void 0);_.E([_.d({computed:"computeItems(data, flexAsTopLevelButtons)"}),_.h("design:type",Array)],pD.prototype,"items",void 0);_.E([_.d({value:"yt-icons:more_vert"}),_.h("design:type",String)],pD.prototype,"icon",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pD.prototype,"safeArea",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeMenuActive(menuFocused, overlayOpen)"}),_.h("design:type",Boolean)],pD.prototype,"menuActive",void 0);_.E([_.d(),_.h("design:type",Boolean)],pD.prototype,"menuFocused",void 0);_.E([_.d({value:"bottom"}),_.h("design:type",String)],pD.prototype,"buttonTooltipPosition",void 0);_.E([_.d(),_.h("design:type",Boolean)],pD.prototype,"overlayOpen",void 0);
_.E([_.d({value:!0}),_.h("design:type",Boolean)],pD.prototype,"forceIconButton",void 0);_.E([_.d(),_.h("design:type",Boolean)],pD.prototype,"styleActionButton",void 0);_.E([_.d(),_.h("design:type",Boolean)],pD.prototype,"disableTextTransformOnButtons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pD.prototype,"tonalOverride",void 0);_.E([_.d(),_.h("design:type",Object)],pD.prototype,"threeDotSize",void 0);
_.E([_.d(),_.h("design:type",Object)],pD.prototype,"threeDotButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],pD.prototype,"isOverlay",void 0);_.E([_.d(),_.h("design:type",Object)],pD.prototype,"useOverlayDark",void 0);_.E([_.d({computed:"computeButtonOverride(tonalOverride)"}),_.h("design:type",Object)],pD.prototype,"buttonOverride",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],pD.prototype,"hasCustomIconColor",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("flexAsTopLevelButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],pD.prototype,"hasFlexibleItems",null);_.E([_.d({reflectToAttribute:!0,computed:"computeHasItems(topLevelButtonData, flexAsTopLevelButtons)"}),_.h("design:type",Boolean)],pD.prototype,"hasItems",void 0);_.E([_.d(),_.h("design:type",Object)],pD.prototype,"topLevelIconsOnly",void 0);
_.E([_.FI("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"updateButtonOverrides",null);_.E([_.v("topLevelIconsOnly"),_.h("design:type",Object),_.h("design:paramtypes",[])],pD.prototype,"buttonOverrides",null);_.E([_.z$("#top-level-buttons-computed"),_.h("design:type",HTMLElement)],pD.prototype,"topLevelButtonsContainer",void 0);_.E([_.T$(".top-level-buttons > *"),_.h("design:type",Array)],pD.prototype,"topLevelButtons",void 0);
_.E([_.z$("#flexible-item-buttons"),_.h("design:type",HTMLElement)],pD.prototype,"flexibleItemButtonsContainer",void 0);_.E([_.T$("#flexible-item-buttons > *"),_.h("design:type",Array)],pD.prototype,"flexibleItemButtons",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"iconButtonColorChanged",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"setupFlexibleMenu",null);_.E([_.rW("topLevelIconsOnly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"resetFlexibleItems",null);_.E([_.FI("tonalOverride"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"tonalOverrideChanged",null);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"onPopupOpened",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"onPopupClosed",null);_.E([_.km("yt-popup-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pD.prototype,"onPopupCanceled",null);
_.Z(pD,"ytd-menu-renderer",function(){if($Q8===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);$Q8=I}I=$Q8;return I},{mode:_.Ij("kevlar_poly_si_batch_j030")?1:2});var wXb;var nNu;_.t9=_.BO(function(I){var C=I.data;var y=function(){if(C().icon)a:{var k={iconName:C().icon};for(var F=_.N().resolve(_.k$),z=_.T([12,24]),c=z.next();!c.done;c=z.next()){var r=c.value;c=Object.assign({},k,{iconStyle:"youtube_fill",iconSize:r});r=Object.assign({},k,{iconStyle:"youtube_outline",iconSize:r});if(F.resolveIcon(c)){k=c;break a}if(F.resolveIcon(r)){k=r;break a}}k=void 0}else k=void 0;return k};
I={};return _.P("badge-shape",{class:_.sZ("badge-shape-wiz",function(){return i4I(C().type)},(I["badge-shape-wiz--overlay"]=function(){return C().isOverlay},I["badge-shape-wiz--ads-include-dot"]=function(){return C().adsIncludeDot},I["badge-shape-wiz--thumbnail-badge"]=function(){a:switch(C().type){case 16:case 17:case 18:var k=!0;
break a;default:k=!1}return k},I["badge-shape-wiz--status-badge"]=function(){a:switch(C().type){case 11:case 12:case 13:case 14:case 15:var k=!0;
break a;default:k=!1}return k},I["badge-shape-wiz--no-text"]=function(){return!C().text},I["badge-shape-wiz--modern"]=function(){return C().modern},I)),
style:_.cP({"background-color":function(){var k;return(k=C().customColors)==null?void 0:k.backgroundColor}}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},_.P(_.Dx,{cond:function(){return C().animation},
then:function(k){return _.P(_.o8,{className:"badge-shape-wiz__icon",data:k,animationName:function(){return k().animationConfig.name||""}})}}),_.P(_.Dx,{cond:function(){var k;
return y()&&!((k=C())==null?0:k.animation)},
then:function(){return _.P("div",{class:"badge-shape-wiz__icon"},_.P(arK,{data:function(){return y()}}))}}),_.P("div",{class:"badge-shape-wiz__text"},function(){var k;
return(k=C())==null?void 0:k.text}))},"I");
_.t9.idomCompat=!0;_.B9(_.t9,"badge-shape",{props:{data:_.As}});var QC=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.animated=_.V("animated_live_badge_icon");I.useBadgeShape=_.V("web_badge_shape_defrag");return I};
_.R(QC,_.q);_.u=QC.prototype;_.u.addTooltips=function(){for(var I=_.f(this.hostElement).querySelectorAll(".badge"),C=0,y;y=I[C++];){var k=this.repeatElement.itemForElement(y);y=_.f(y);y.lastChild&&y.lastChild.is==="tp-yt-paper-tooltip"&&y.removeChild(y.lastChild);if(k=k.metadataBadgeRenderer&&k.metadataBadgeRenderer.tooltip){var F=_.q8("tp-yt-paper-tooltip");(0,_.IH)(F).textContent=k;F.setAttribute("position","top");y.appendChild(F)}}};
_.u.badgesChanged=function(){var I=this;_.So().parkOrScheduleJob(function(){I.addTooltips()},0,"eocs",16);
this.updateComputedBadges(this.badges,this.topStandaloneBadge)};
_.u.standaloneRoundedBadgeChanged=function(){var I=this.useRoundedBadge?this.useRoundedBadge:void 0;I&&(this.useRoundedBadge=I)};
_.u.standaloneBadgeChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.u.hiddenBadgeGroupsChanged=function(){this.updateComputedBadges(this.badges,this.topStandaloneBadge,this.bottomStandaloneBadge)};
_.u.computeStyle=function(I){_.V("enable_html5_teal_ad_badge")&&I==="BADGE_STYLE_TYPE_AD"&&(I="badge-style-type-ad-alternate");_.V("kevlar_ytb_live_badges")&&I==="BADGE_STYLE_TYPE_LIVE_NOW"&&(I="badge-style-type-live-now-alternate");return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeRole=function(I){return this.computeAriaLabel(I)?"img":"status"};
_.u.computeAriaLabel=function(I){var C;return(I==null?void 0:(C=I.accessibilityData)==null?void 0:C.label)||(I==null?void 0:I.label)};
_.u.computeBadgeShape=function(I){var C;if(I){var y,k=e_F(I.style),F=rrs(I.style),z=I.label,c=((y=I.accessibilityData)==null?void 0:y.label)||I.label;I=(C=I.icon)==null?void 0:C.iconType;C={type:k,brNzRatingBadgeType:F,text:z,accessibilityText:c,icon:I!=="PREMIUM"?I:void 0}}else C={};return C};
_.u.updateComputedBadges=function(I,C,y){var k=this;(C=C?[C]:y?[y]:void 0)?this.computedBadges=C:this.computedBadges=I==null?void 0:I.filter(function(F){var z;if((z=F.metadataBadgeRenderer)==null?0:z.groups){z=!1;F=_.T(F.metadataBadgeRenderer.groups);for(var c=F.next();!c.done;c=F.next()){c=c.value;var r=void 0;z=z||((r=k.hiddenBadgeGroups)==null?void 0:r.includes(c))}return!z}return!0})};
_.u.useFilledIcons=function(I){return _.V("kevlar_system_icons")&&(I==="AUDIO_BADGE"||I==="CHECK_CIRCLE_THICK"||I==="OFFICIAL_ARTIST_BADGE"||I==="SPONSORSHIP_STAR"||I==="PERSON_RADAR_FILLED"||I==="PERSON_RADAR")};
_.u.computeIcon=function(I){var C,y;I=I==null?void 0:(C=I.metadataBadgeRenderer)==null?void 0:(y=C.icon)==null?void 0:y.iconType;if(I!=="PREMIUM"&&I)return _.y5(I)};
_.u.computeStandaloneBadge=function(I){var C;I=I==null?void 0:(C=I.icon)==null?void 0:C.iconType;return I==="PREMIUM_STANDALONE"||I==="PREMIUM_STANDALONE_CAIRO"?"standalone-badge":""};
QC.prototype.hiddenBadgeGroupsChanged=QC.prototype.hiddenBadgeGroupsChanged;QC.prototype.standaloneBadgeChanged=QC.prototype.standaloneBadgeChanged;QC.prototype.standaloneRoundedBadgeChanged=QC.prototype.standaloneRoundedBadgeChanged;QC.prototype.badgesChanged=QC.prototype.badgesChanged;_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"hidden",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],QC.prototype,"componentBehavior",void 0);
_.E([_.d(),_.h("design:type",Array)],QC.prototype,"badges",void 0);_.E([_.d(),_.h("design:type",Object)],QC.prototype,"topStandaloneBadge",void 0);_.E([_.d(),_.h("design:type",Object)],QC.prototype,"bottomStandaloneBadge",void 0);_.E([_.d(),_.h("design:type",Object)],QC.prototype,"computedBadges",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"mediumFontAdBadge",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"useRoundedBadge",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"largeFontAdBadge",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"overlayAd",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"overlayPremium",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"noDotAdBadge",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"collectionTruncate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"isThumbnailBadge",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],QC.prototype,"wrapBadges",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QC.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QC.prototype,"animated",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QC.prototype,"useBadgeShape",void 0);_.E([_.d({value:[]}),_.h("design:type",Array)],QC.prototype,"hiddenBadgeGroups",void 0);_.E([_.z$("#repeat"),_.h("design:type",QG)],QC.prototype,"repeatElement",void 0);_.E([_.rW("badges"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QC.prototype,"badgesChanged",null);
_.E([_.rW("useRoundedBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QC.prototype,"standaloneRoundedBadgeChanged",null);_.E([_.rW("topStandaloneBadge","bottomStandaloneBadge"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QC.prototype,"standaloneBadgeChanged",null);_.E([_.rW("hiddenBadgeGroups"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QC.prototype,"hiddenBadgeGroupsChanged",null);
QC=_.E([_.m({is:"ytd-badge-supported-renderer",disableElementRegistration:!0})],QC);
var Pyw=_.MH()(QC,"ytd-badge-supported-renderer",function(){if(nNu===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-badge-supported-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<template is="dom-repeat" id="repeat" items="[[computedBadges]]" as="badge" class="style-scope ytd-badge-supported-renderer"><template is="dom-if" if="[[useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><badge-shape data="[[computeBadgeShape(badge.metadataBadgeRenderer)]]" class="style-scope ytd-badge-supported-renderer"></badge-shape></template><template is="dom-if" if="[[!useBadgeShape]]" class="style-scope ytd-badge-supported-renderer"><div class$="badge [[computeStandaloneBadge(badge.metadataBadgeRenderer)]] [[computeStyle(badge.metadataBadgeRenderer.style)]] style-scope ytd-badge-supported-renderer" role="[[computeRole(badge.metadataBadgeRenderer)]]" aria-label$="[[computeAriaLabel(badge.metadataBadgeRenderer)]]"><yt-icon default-to-filled="[[useFilledIcons(badge.metadataBadgeRenderer.icon.iconType)]]" disable-upgrade$="[[!badge.metadataBadgeRenderer.icon]]" hidden="[[!computeIcon(badge)]]" icon="[[computeIcon(badge)]]" size="16" class="style-scope ytd-badge-supported-renderer"></yt-icon><p class="style-scope ytd-badge-supported-renderer">[[badge.metadataBadgeRenderer.label]]</p></div></template></template>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);nNu=I}I=nNu;return I},{allowedProps:"badges bottomStandaloneBadge collectionTruncate hidden hiddenBadgeGroups isThumbnailBadge largeFontAdBadge noDotAdBadge overlayAd overlayPremium topStandaloneBadge useRoundedBadge wrapBadges".split(" "),
mode:_.Ij("kevlar_poly_si_batch_j053")?1:2});var NV=function(){var I=_.q.apply(this,arguments)||this;I.iconType="STAR";I.standardizeIconSize=_.V("kevlar_system_icons");I.mediaHoverOverlayInitialVisibility=_.V("enable_top_landscape_image_button_command_web");I.noBottomMargin=!1;I.thumbnailObjectFit="CONTAIN";I.thumbnailFitHeight=!0;I.actionMap={"yt-mute-ad-action":"handleMuteAd"};return I};
_.R(NV,_.q);_.u=NV.prototype;
_.u.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"}}}};
_.u.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",NV.JSC$12395_DEFAULT_CLICK_LOCATION_BEHAVIOR,NV.JSC$12395_CLICK_LOCATION_ID_MAP))};
_.u.onTap=function(I){if(!_.V("use_on_click_for_desktop_display_ad"))this.onTapOrClick(I)};
_.u.onClick=function(I){if(_.V("use_on_click_for_desktop_display_ad"))this.onTapOrClick(I)};
_.u.onTapOrClick=function(I){this.clickCommand&&this.ytSparklesClickLocationBehavior.handleClick(this.clickCommand,I,!1)};
_.u.updateMediaBackgroundImage=function(){var I=this.get("data.image.thumbnail.thumbnails");I&&(I=_.E5(I,0))&&_.CK(this.hostElement,{"--ytd-display-ad-media-background-image":"url("+I+")"})};
_.u.impressionLog=function(){if(!this.data||!this.data.impressionsFired){if(this.data&&this.data.impressionEndpoints){for(var I=0;I<this.data.impressionEndpoints.length;I++){var C=this.data.impressionEndpoints[I];C.clickTrackingParams&&delete C.clickTrackingParams;_.N().resolve(_.ID).resolveCommand(C,{form:{element:this.hostElement}})}this.data.impressionsFired=!0}var y;((y=this.data)==null?0:y.activeView)&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)}};
_.u.handleMuteAd=function(){};
_.u.attached=function(){var I=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H1.Object.defineProperties(NV.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.titleText)return"";var C;return _.PQ("AD_TITLE",{title:this.ytRendererBehavior.getSimpleString((C=this.data)==null?void 0:C.titleText)})}},
getRating:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.rating)?Number(this.data.rating).toPrecision(2):null}},
getPrice:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.price)?this.data.price:null}},
getThirdLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.thirdLine)?this.data.thirdLine:null}},
getFourthLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.fourthLine)?this.data.fourthLine:null}},
getFifthLine:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.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 I;return!((I=this.data)==null||!I.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"}}});
NV.prototype.onClick=NV.prototype.onClick;NV.prototype.onTap=NV.prototype.onTap;NV.prototype.dataChanged=NV.prototype.dataChanged;
NV.JSC$12395_CLICK_LOCATION_ID_MAP=_.V("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"]]);
NV.JSC$12395_DEFAULT_CLICK_LOCATION_BEHAVIOR=_.V("enable_web_home_top_landscape_image_layout_click_location")?[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION",code:7,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",code:31,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",
code:1,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:9,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND",code:41,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BORDER",
code:39,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}]:[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_CLICK_BEHAVIOR_TYPE_OPEN_AD"}];_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],NV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],NV.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.$x),_.h("design:type",Object)],NV.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],NV.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],NV.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],NV.prototype,"ytdActiveViewBehavior",void 0);_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],NV.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],NV.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],NV.prototype,"clickCommand",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],NV.prototype,"miniMode",void 0);_.E([_.d(),_.h("design:type",String)],NV.prototype,"iconType",void 0);_.E([_.v("data.titleText"),_.h("design:type",String),_.h("design:paramtypes",[])],NV.prototype,"titleAriaLabel",null);
_.E([_.v("data.rating"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"getRating",null);_.E([_.v("data.price"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"getPrice",null);_.E([_.v("data.thirdLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"getThirdLine",null);_.E([_.v("data.fourthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"getFourthLine",null);
_.E([_.v("data.fifthLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"getFifthLine",null);_.E([_.v("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computeRatingHidden",null);_.E([_.v("getPrice"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computePriceHidden",null);_.E([_.v("getThirdLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computeThirdLineHidden",null);
_.E([_.v("getFourthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computeFourthLineHidden",null);_.E([_.v("getFifthLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computeFifthLineHidden",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.energyIcon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"hasEnergyIcon",null);
_.E([_.v("computePriceHidden","computeRatingHidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"computeSecondaryTextHidden",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],NV.prototype,"standardizeIconSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],NV.prototype,"mediaHoverOverlayInitialVisibility",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],NV.prototype,"noBottomMargin",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.layout"),_.h("design:type",String),_.h("design:paramtypes",[])],NV.prototype,"layout",null);_.E([_.v("data.layout"),_.h("design:type",Object),_.h("design:paramtypes",[])],NV.prototype,"mediaThumbnailWidth",null);_.E([_.v("layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],NV.prototype,"useRoundedBadge",null);_.E([_.d(),_.h("design:type",String)],NV.prototype,"thumbnailObjectFit",void 0);
_.E([_.d(),_.h("design:type",Object)],NV.prototype,"thumbnailFitHeight",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NV.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],NV.prototype,"onTap",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],NV.prototype,"onClick",null);
NV=_.E([_.m({is:"ytd-display-ad-renderer",disableElementRegistration:!0})],NV);
_.Z(NV,"ytd-display-ad-renderer",function(){if(wXb!==void 0)return wXb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return wXb=I},{mode:1});var Lmb;var Dwe;var pXS;var wUm=new Map;var Q3Y=!1;var VC=function(){var I=_.q.apply(this,arguments)||this;I.DEFAULT_TOOLTIP_OFFSET="10";I.TOOLTIP_OFFSET_NO_BANNER="-8";I.badges=null;I.noEndpoints=!1;I.wrapText=!1;I.forceVerified=!1;I.tooltipPosition="top";I.compactStyle=!1;I.height=0;I.lineHeight=0;return I};
_.R(VC,_.q);_.u=VC.prototype;_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-window-resized":"handleWindowResized"}};
_.u.attached=function(){var I=this;this.observer=new MutationObserver(function(C,y){I.handleResized();y.disconnect()});
this.observer.observe(this.textEl,{childList:!0})};
_.u.detached=function(){this.observer&&this.observer.disconnect()};
_.u.logTooltipEvent=function(){_.V("kevlar_wiz_tooltip_event_killswitch")||Q3Y||(_.nLX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_WIZ_NEXT_CHANNEL_NAME_TOOLTIP"),Q3Y=!0)};
_.u.handleWindowResized=function(){this.handleResized()};
_.u.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")))};
_.u.onHeightChanged=function(){if(this.verified){var I=Math.ceil(this.height*Math.tan(30*Math.PI/180))+"px";_.Aq("HTML_DIR")==="rtl"?this.textContainerEl.style.marginLeft=I:this.textContainerEl.style.marginRight=I}};
_.u.onLineHeightChanged=function(){this.verified&&(this.lineHeight>=24||this.lineHeight===0&&this.height>=24)&&(this.textContainerEl.style.padding=_.Aq("HTML_DIR")==="rtl"?"0 6px 0 2px":"0 2px 0 6px")};
_.u.handleResized=function(){var I=this;this.verified&&_.b$.addLowPriorityJob(function(){I.fitBackgroundToText();var C=getComputedStyle(I.hostElement).lineHeight;C&&(C=C.match(/\d+/))&&C.length&&(I.lineHeight=Number(C[0]));I.height=I.lineHeight&&!I.wrapText?I.lineHeight:I.textEl.offsetHeight})};
_.u.fitBackgroundToText=function(){if(this.verified&&this.wrapText){this.textEl.style.width="unset";var I=document.createRange(),C=_.f(this.textEl).children;C.length>0?I.selectNodeContents(C[0]):I.selectNodeContents(this.textEl);this.textEl.style.width=Math.ceil(I.getBoundingClientRect().width)+"px"}};
_.u.computeChannelBadgeStyle=function(I){var C;if((I==null?0:(C=I.runs)==null?0:C.length)&&I.runs[0].textColor)return"--ytd-badge-icon-color:"+_.lg(I.runs[0].textColor)+";"};
_.H1.Object.defineProperties(VC.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"?_.Ee(this.channelName):this.channelName}},
tooltipText:{configurable:!0,enumerable:!0,get:function(){if(this.verified){if(this.tooltip)return this.tooltip;var I=this.get("badges.0.metadataBadgeRenderer.tooltip");if(I)return I}return _.hS(this.formattedName)}},
tooltipOffset:{configurable:!0,enumerable:!0,get:function(){return this.hasChannelArt?this.DEFAULT_TOOLTIP_OFFSET:this.TOOLTIP_OFFSET_NO_BANNER}}});
VC.prototype.onLineHeightChanged=VC.prototype.onLineHeightChanged;VC.prototype.onHeightChanged=VC.prototype.onHeightChanged;VC.prototype.onChannelNameChanged=VC.prototype.onChannelNameChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],VC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"badges",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"channelName",void 0);
_.E([_.d(),_.h("design:type",Object)],VC.prototype,"noEndpoints",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"wrapText",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"forceVerified",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"tooltipPosition",void 0);_.E([_.d(),_.h("design:type",String)],VC.prototype,"tooltip",void 0);_.E([_.d(),_.h("design:type",Boolean)],VC.prototype,"hasChannelArt",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VC.prototype,"compactStyle",void 0);_.E([_.z$("#text-container"),_.h("design:type",HTMLElement)],VC.prototype,"textContainerEl",void 0);_.E([_.z$("#text"),_.h("design:type",Object)],VC.prototype,"textEl",void 0);_.E([_.z$("#verified-tooltip"),_.h("design:type",HTMLElement)],VC.prototype,"verifiedTooltip",void 0);_.E([_.d(),_.h("design:type",Object)],VC.prototype,"height",void 0);
_.E([_.d(),_.h("design:type",Object)],VC.prototype,"lineHeight",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("badges","forceVerified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VC.prototype,"verified",null);_.E([_.v("badges","verified"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VC.prototype,"hideBadges",null);_.E([_.v("channelName"),_.h("design:type",Object),_.h("design:paramtypes",[])],VC.prototype,"formattedName",null);
_.E([_.v("badges","verified","formattedName"),_.h("design:type",String),_.h("design:paramtypes",[])],VC.prototype,"tooltipText",null);_.E([_.v("hasChannelArt"),_.h("design:type",String),_.h("design:paramtypes",[])],VC.prototype,"tooltipOffset",null);_.E([_.FI("channelName"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VC.prototype,"onChannelNameChanged",null);
_.E([_.FI("height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VC.prototype,"onHeightChanged",null);_.E([_.FI("lineHeight","height"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VC.prototype,"onLineHeightChanged",null);VC=_.E([_.m({is:"ytd-channel-name",disableElementRegistration:!0})],VC);
_.Z(VC,"ytd-channel-name",function(){if(pXS!==void 0)return pXS;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-name--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" on-mouseover="logTooltipEvent" class="style-scope ytd-channel-name">\n  <div id="text-container" class="style-scope ytd-channel-name">\n    <yt-formatted-string id="text" ellipsis-truncate="[[!wrapText]]" link-inherit-color="" no-endpoints="[[noEndpoints]]" respect-lang-dir="" text="[[formattedName]]" title="" class="style-scope ytd-channel-name">\n    </yt-formatted-string>\n  </div>\n  <tp-yt-paper-tooltip fit-to-visible-bounds="" offset="[[tooltipOffset]]" position="[[tooltipPosition]]" class="style-scope ytd-channel-name">\n    [[tooltipText]]\n  </tp-yt-paper-tooltip>\n</div>\n<ytd-badge-supported-renderer badges="[[badges]]" hidden="[[hideBadges]]" style$="[[computeChannelBadgeStyle(formattedName)]]" class="style-scope ytd-channel-name">\n</ytd-badge-supported-renderer>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return pXS=I},{mode:_.Ij("kevlar_poly_si_batch_j036")?1:2});var jJ=function(){var I=_.q.apply(this,arguments)||this;I.standardizeIconSize=_.V("kevlar_system_icons");I.enableModernCommentBadges=_.V("enable_modern_comment_badges");return I};
_.R(jJ,_.q);jJ.prototype.basicPaletteChanged=function(){var I;(I=this.data.color)!=null&&I.basicColorPaletteData&&_.N3(this.hostElement,this.data.color.basicColorPaletteData)};
jJ.prototype.colorChanged=function(){if(!this.enableModernCommentBadges){var I,C=this.get("basicColorPaletteData.backgroundColor",(I=this.data)==null?void 0:I.color),y;I=this.get("basicColorPaletteData.foregroundTitleColor",(y=this.data)==null?void 0:y.color);y={};C?(C=_.lg(C),y["--ytd-author-comment-badge-background-color"]=C):(y["--ytd-author-comment-badge-icon-background-color"]="transparent",y["--ytd-author-comment-badge-background-color"]="transparent");I?(C=_.lg(I),y["--ytd-author-comment-badge-name-color"]=
C,y["--ytd-author-comment-badge-icon-color"]=C):y["--ytd-author-comment-badge-name-color"]="var(--yt-spec-text-primary)";Object.keys(y).length>0&&_.CK(this.hostElement,y)}};
jJ.prototype.useFilledIcons=function(I){return _.V("kevlar_system_icons")&&(I==="CHECK_CIRCLE_THICK"||I==="OFFICIAL_ARTIST_BADGE")};
_.H1.Object.defineProperties(jJ.prototype,{verified:{configurable:!0,enumerable:!0,get:function(){return!!this.data.authorUnifiedVerified}},
creator:{configurable:!0,enumerable:!0,get:function(){return this.data.authorCreator||!!this.get("data.color.basicColorPaletteData.backgroundColor")}}});
jJ.prototype.colorChanged=jJ.prototype.colorChanged;jJ.prototype.basicPaletteChanged=jJ.prototype.basicPaletteChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jJ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],jJ.prototype,"standardizeIconSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jJ.prototype,"enableModernCommentBadges",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.authorUnifiedVerified"),_.h("design:type",Object),_.h("design:paramtypes",[])],jJ.prototype,"verified",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],jJ.prototype,"creator",null);_.E([_.FI("data.color.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jJ.prototype,"basicPaletteChanged",null);
_.E([_.FI("data.color"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jJ.prototype,"colorChanged",null);jJ=_.E([_.m({is:"ytd-author-comment-badge-renderer",disableElementRegistration:!0})],jJ);
_.Z(jJ,"ytd-author-comment-badge-renderer",function(){if(Dwe!==void 0)return Dwe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Dwe=I},{mode:1});var NMe;var lF=function(){return _.q.apply(this,arguments)||this};
_.R(lF,_.q);lF.prototype.computeThumbnailWidth=function(I){if(I==="BACKSTAGE_SURFACE_TYPE_STREAM")return 638};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lF.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lF.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],lF.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],lF.prototype,"surface",void 0);
_.E([_.d({reflectToAttribute:!0,value:_.V("enable_shrink_image_size_on_web_posts_singleton")}),_.h("design:type",Boolean)],lF.prototype,"searchSxsUx",void 0);lF=_.E([_.m({is:"ytd-backstage-image-renderer",disableElementRegistration:!0})],lF);
_.Z(lF,"ytd-backstage-image-renderer",function(){if(NMe!==void 0)return NMe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NMe=I},{mode:1});var VTw;var Xp=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;I.selectedItemIndex=-1;return I};
_.R(Xp,_.q);_.u=Xp.prototype;_.u.computeIsChannelOwner=function(I){if(!I)return!0;I=I[0];return!(I&&(I.signinEndpoint||I.selectServiceEndpoint))};
_.u.computeIsImagePoll=function(I){return(I==null?void 0:I.type)==="POLL_TYPE_IMAGE"};
_.u.computeIsTotalVotesDisabled=function(I){return!(I==null?0:I.totalVotes)};
_.u.thumbnailSrc=function(I){var C,y,k,F;return(I==null?0:(C=I.thumbnails)==null?0:(y=C[0])==null?0:y.url)?_.ra((k=I.thumbnails)==null?void 0:(F=k[0])==null?void 0:F.url):void 0};
_.u.progressWidth=function(I){return"width:"+(I?I*100:0)+"%;"};
_.u.textAreaWidth=function(I){return this.isImagePoll?null:"width:"+(I?I*100:0)+"%;"};
_.u.hasEndpointStyle=function(){return this.isChannelOwner?"":"yt-simple-endpoint"};
_.u.dataChanged=function(){if(this.data&&(this.isLoading=!1,this.previousPollInfo=null,this.data.choices))for(var I=this.data.choices,C=0;C<I.length;C++)if(I[C].selected){this.selectedItemIndex=C;break}};
_.u.onPopupClosed=function(I,C){I=Number(this.pollVotes.selected);C.confirmed&&(this.selectChoice(I,!1),_.Fe(this.hostElement,"yt-remove-comment-action",[{removeCommentAction:{commentId:this.data.votedCommentId}}]));this.pollVotes.selected=-1};
_.u.onPollChoiceSelected=function(){this.isLoading||this.isChannelOwner||this.selectChoice(Number(this.pollVotes.selected),!1);this.pollVotes.selected=-1};
_.u.onYtCommentPollRevert=function(I,C){C&&(this.selectChoice(C.selectedChoiceIndex,!0),this.set("data.totalVotes",C.totalVotes))};
_.u.onYtServiceRequestSent=function(I,C){if(C.actions)for(I=0;I<C.actions.length;I++){var y=C.actions[I];_.l(y,VK)&&this.set("data.totalVotes",_.l(y,VK).totalVotes)}};
_.u.onYtServiceRequestCompleted=function(I){var C=this.get("detail.data.actionResults.0.feedback",I);I=this.get("detail.data.actionResults.0.status",I);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,I==="STATUS_FAILED"?_.k3(this.hostElement,"yt-comment-poll-revert",this.previousPollInfo):this.previousPollInfo=null};
_.u.getEndpoint=function(I,C){return C===I?this.data.choices[C].deselectServiceEndpoint||null:this.data.choices[I].selectServiceEndpoint||null};
_.u.selectChoice=function(I,C){this.previousPollInfo||(this.previousPollInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var y=0;y<this.data.choices.length;y++){var k;if(I===this.selectedItemIndex){var F=!1;var z=k=null}else k=(F=y===I)?this.data.choices[y].voteRatioIfSelected:this.data.choices[y].voteRatioIfNotSelected,z=F?this.data.choices[y].votePercentageIfSelected:this.data.choices[y].votePercentageIfNotSelected;this.set("data.choices."+y+".voteRatio",k);
this.set("data.choices."+y+".votePercentage",z);this.set("data.choices."+y+".selected",F)}C||(this.isLoading=!0,(C=this.getEndpoint(I,this.selectedItemIndex))&&(_.V("web_ytd_backstage_poll_renderer_command_resolver_ks")?_.Tg(this.hostElement,[C]):_.N().resolve(_.ID).resolveCommand(C,{form:{element:this.hostElement}})));this.selectedItemIndex=this.selectedItemIndex===I?-1:I};
_.H1.Object.defineProperties(Xp.prototype,{endpointStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelOwner?"yt-simple-endpoint disable-cursor":"yt-simple-endpoint"}}});
Xp.prototype.onYtServiceRequestCompleted=Xp.prototype.onYtServiceRequestCompleted;Xp.prototype.onYtServiceRequestSent=Xp.prototype.onYtServiceRequestSent;Xp.prototype.onYtCommentPollRevert=Xp.prototype.onYtCommentPollRevert;Xp.prototype.onPopupClosed=Xp.prototype.onPopupClosed;Xp.prototype.dataChanged=Xp.prototype.dataChanged;_.E([_.g(_.hw),_.h("design:type",Object)],Xp.prototype,"paperItemBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Xp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],Xp.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Xp.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Xp.prototype,"isLoading",void 0);_.E([_.d({computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],Xp.prototype,"isChannelOwner",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsImagePoll(data)"}),_.h("design:type",Boolean)],Xp.prototype,"isImagePoll",void 0);_.E([_.d({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],Xp.prototype,"isTotalVotesDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],Xp.prototype,"previousPollInfo",void 0);_.E([_.d(),_.h("design:type",Object)],Xp.prototype,"selectedItemIndex",void 0);_.E([_.z$("#poll-votes"),_.h("design:type",Object)],Xp.prototype,"pollVotes",void 0);
_.E([_.v("isChannelOwner"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xp.prototype,"endpointStyle",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xp.prototype,"dataChanged",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Xp.prototype,"onPopupClosed",null);
_.E([_.km("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Xp.prototype,"onYtCommentPollRevert",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],Xp.prototype,"onYtServiceRequestSent",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xp.prototype,"onYtServiceRequestCompleted",null);Xp=_.E([_.m({is:"ytd-backstage-poll-renderer",disableElementRegistration:!0})],Xp);
_.Z(Xp,"ytd-backstage-poll-renderer",function(){if(VTw!==void 0)return VTw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return VTw=I},{mode:2});var j3S;var lTd={autoplay:!1,loop:!1},XXq={simpleText:""},$l=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;I.usesPanelLockup=!1;I.selectedItemIndex=-1;I.baseCorrectLottiePlayerAnimationConfig=Object.assign({},{name:"CORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_LightTheme_01a.json",renderer:"svg"},lTd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"12 20 80 80"}});I.baseIncorrectLottiePlayerAnimationConfig=Object.assign({},{name:"INCORRECT",path:"https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_LightTheme_01a.json",
renderer:"svg"},lTd,{rendererSettings:{viewBoxOnly:!0,viewBoxSize:"26 26 80 80"}});I.correctnessAnimationProps=[];I.correctnessAnimationRefs=[];return I};
_.R($l,_.q);_.u=$l.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.ytRendererBehavior.markDirty()};
_.u.computeIsChannelOwner=function(I){if(!I)return!0;I=I[0];return!(I&&(I.signinEndpoint||I.selectServiceEndpoint))};
_.u.computeIsTotalVotesDisabled=function(I){return!(I==null?0:I.totalVotes)};
_.u.computeIsImageQuiz=function(I){return(I==null?void 0:I.type)==="POLL_TYPE_IMAGE"};
_.u.onExplanationChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){if(this.data){this.isLoading=!1;this.previousQuizInfo=null;var I=this.data.choices;if(I){this.maybeInitializeQuizLotties(I);for(var C=0;C<I.length;C++)if(I[C].isSelected||this.isChannelOwner&&I[C].isCorrect){this.selectedItemIndex=C;return}this.selectedItemIndex=-1}}};
_.u.onQuizChoiceSelected=function(){if(this.isLoading||this.isChannelOwner||this.isQuizAnsweringDisabled)this.quizVotes.selected=-1;else{var I=this.selectedItemIndex,C=Number(this.quizVotes.selected);this.selectChoice(C);this.sendVoteAction(C,I);this.quizVotes.selected=-1;var y;I=!((y=this.data)==null?0:y.enableAnimation);this.maybePlayAnswerAnimations(I)}};
_.u.onYtCommentPollRevert=function(I,C){C&&(this.selectChoice(C.selectedChoiceIndex),this.set("data.totalVotes",C.totalVotes))};
_.u.onYtServiceRequestSent=function(I,C){if(C.actions)for(I=_.T(C.actions),C=I.next();!C.done;C=I.next())(C=_.l(C.value,VK))&&this.set("data.totalVotes",C.totalVotes)};
_.u.onYtServiceRequestCompleted=function(I){var C=this.get("detail.data.actionResults.0.feedback",I);I=this.get("detail.data.actionResults.0.status",I);if(C==="FEEDBACK_DESELECT"||C==="FEEDBACK_SELECT")this.isLoading=!1,I==="STATUS_FAILED"?_.k3(this.hostElement,"yt-comment-quiz-revert",this.previousQuizInfo):this.previousQuizInfo=null};
_.u.getAnimationPropsForChoiceIndex=function(I,C){return C[I]};
_.u.maybePlayAnswerAnimations=function(I){I=I===void 0?!1:I;var C;if((C=this.data)!=null&&C.choices&&!(this.correctnessAnimationRefs.length<this.data.choices.length)){C=_.T(this.correctnessAnimationRefs);for(var y=C.next();!y.done;y=C.next()){var k=void 0,F=void 0;(k=y.value)==null||(F=k.lottieEl)==null||F.stop()}if(!(this.selectedItemIndex<0)){C=0;I&&(C=this.isCorrect?37:25);var z,c;(z=this.correctnessAnimationRefs[this.selectedItemIndex])==null||(c=z.lottieEl)==null||c.goToAndPlay(I?C:0,!0);if(!(this.isCorrect||
(z=this.data.choices.findIndex(function(D){return D.isCorrect}),z<0))){var r,w;
(w=(r=this.correctnessAnimationRefs[z])==null?void 0:r.lottieEl)==null||w.goToAndPlay(37,!0);var L;r=(L=this.fadeContainers)==null?void 0:L.item(z);!I&&r&&this.fadeIn(r)}}}};
_.u.thumbnailSrc=function(I){var C,y,k,F;return(I==null?0:(C=I.thumbnails)==null?0:(y=C[0])==null?0:y.url)?_.ra((k=I.thumbnails)==null?void 0:(F=k[0])==null?void 0:F.url):void 0};
_.u.a11yVotedText=function(I,C){var y,k,F=((y=this.data)==null?void 0:(k=y.correctVotedText)==null?void 0:k.simpleText)||"",z,c;y=((z=this.data)==null?void 0:(c=z.votedText)==null?void 0:c.simpleText)||"";if(!C)return"";var r,w;if((r=this.data)==null?0:(w=r.choices)==null?0:w[I].isCorrect)return F;var L,D;return((L=this.data)==null?0:(D=L.choices)==null?0:D[I].isSelected)?y:""};
_.u.getEndpoint=function(I,C){return C===I?this.data.choices[I].deselectServiceEndpoint||null:this.data.choices[I].selectServiceEndpoint||null};
_.u.sendVoteAction=function(I,C){if(I=this.getEndpoint(I,C))this.isLoading=!0,this.ytComponentBehavior.resolveCommand(I)};
_.u.selectChoice=function(I){this.previousQuizInfo||(this.previousQuizInfo={totalVotes:this.data.totalVotes,selectedChoiceIndex:this.selectedItemIndex});for(var C=0;C<this.data.choices.length;C++)this.set("data.choices."+C+".isSelected",I===this.selectedItemIndex?!1:C===I);this.selectedItemIndex=this.selectedItemIndex===I?-1:I};
_.u.maybeInitializeQuizLotties=function(I){var C=this;this.isDarkTheme&&(this.baseCorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizCorrect_DarkTheme_01a.json",this.baseIncorrectLottiePlayerAnimationConfig.path="https://www.gstatic.com/youtube/img/creator/posts/Lottie_QuizIncorrect_DarkTheme_01a.json");this.correctnessAnimationProps=I.map(function(y){return{animationConfig:y.isCorrect?C.baseCorrectLottiePlayerAnimationConfig:C.baseIncorrectLottiePlayerAnimationConfig,
animationRef:{},listeners:{DOMLoaded:function(){C.maybePlayAnswerAnimations(!0)}}}});
this.correctnessAnimationRefs=this.correctnessAnimationProps.map(function(y){return y.animationRef||{}})};
_.u.fadeIn=function(I){I.classList.add("fade-in");_.tE(_.b$,function(){I.classList.remove("fade-in")},900)};
_.H1.Object.defineProperties($l.prototype,{shouldUseModernUi:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_modern_quiz_consumption_ui")||this.usesPanelLockup}},
showExplanation:{configurable:!0,enumerable:!0,get:function(){return _.hS(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 I,C;return((I=this.data)==null?void 0:(C=I.choices)==null?void 0:C.some(function(y){return y.isSelected}))||!1}},
explanation:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null||!I.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?XXq:this.data.choices[this.selectedItemIndex].explanation||XXq}},
isCorrect:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null||!I.choices||this.selectedItemIndex<0||this.selectedItemIndex>=this.data.choices.length?!1:this.data.choices[this.selectedItemIndex].isCorrect||!1}}});
$l.prototype.onYtServiceRequestCompleted=$l.prototype.onYtServiceRequestCompleted;$l.prototype.onYtServiceRequestSent=$l.prototype.onYtServiceRequestSent;$l.prototype.onYtCommentPollRevert=$l.prototype.onYtCommentPollRevert;$l.prototype.dataChanged=$l.prototype.dataChanged;$l.prototype.onExplanationChanged=$l.prototype.onExplanationChanged;_.E([_.g(_.hw),_.h("design:type",Object)],$l.prototype,"paperItemBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$l.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],$l.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.xy.YtTaskEmitterBehavior),_.h("design:type",Object)],$l.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],$l.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$l.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],$l.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Object)],$l.prototype,"usesPanelLockup",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsChannelOwner(data.choices)"}),_.h("design:type",Boolean)],$l.prototype,"isChannelOwner",void 0);_.E([_.d({computed:"computeIsTotalVotesDisabled(data)"}),_.h("design:type",Boolean)],$l.prototype,"isTotalVotesDisabled",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsImageQuiz(data)"}),_.h("design:type",Boolean)],$l.prototype,"isImageQuiz",void 0);_.E([_.d(),_.h("design:type",Object)],$l.prototype,"previousQuizInfo",void 0);_.E([_.d(),_.h("design:type",Object)],$l.prototype,"selectedItemIndex",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data","usesPanelLockup"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"shouldUseModernUi",null);
_.E([_.T$(".fade-container"),_.h("design:type",Object)],$l.prototype,"fadeContainers",void 0);_.E([_.d(),_.h("design:type",Array)],$l.prototype,"correctnessAnimationProps",void 0);_.E([_.v("explanation","showCorrectAnswer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"showExplanation",null);_.E([_.v("isChannelOwner","isAttempted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"showCorrectAnswer",null);
_.E([_.v("isChannelOwner","isAttempted","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"isQuizAnsweringDisabled",null);_.E([_.v("isQuizAnsweringDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],$l.prototype,"endpointStyle",null);_.E([_.v("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"isAttempted",null);
_.E([_.v("data","selectedItemIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],$l.prototype,"explanation",null);_.E([_.v("data","selectedItemIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$l.prototype,"isCorrect",null);_.E([_.z$("ytd-expander"),_.h("design:type",Object)],$l.prototype,"expander",void 0);_.E([_.z$("#quiz-votes"),_.h("design:type",Object)],$l.prototype,"quizVotes",void 0);
_.E([_.FI("explanation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$l.prototype,"onExplanationChanged",null);_.E([_.FI("data","isChannelOwner"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$l.prototype,"dataChanged",null);_.E([_.km("yt-comment-quiz-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],$l.prototype,"onYtCommentPollRevert",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],$l.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$l.prototype,"onYtServiceRequestCompleted",null);$l=_.E([_.m({is:"ytd-backstage-quiz-renderer",disableElementRegistration:!0})],$l);
_.Z($l,"ytd-backstage-quiz-renderer",function(){if(j3S!==void 0)return j3S;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return j3S=I},{mode:1});var $wd;var R5=function(){return _.q.apply(this,arguments)||this};
_.R(R5,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],R5.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],R5.prototype,"data",void 0);R5=_.E([_.m({is:"ytd-post-uploaded-video-renderer",disableElementRegistration:!0})],R5);
_.Z(R5,"ytd-post-uploaded-video-renderer",function(){if($wd!==void 0)return $wd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $wd=I},{mode:1});var Rnc;var bF=function(){return _.q.apply(this,arguments)||this};
_.R(bF,_.q);bF.prototype.useFilledIcons=function(I){return I==="SPONSORSHIP_STAR"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bF.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bF.prototype,"data",void 0);bF=_.E([_.m({is:"ytd-sponsors-only-badge-renderer",disableElementRegistration:!0})],bF);
_.Z(bF,"ytd-sponsors-only-badge-renderer",function(){if(Rnc!==void 0)return Rnc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Rnc=I},{mode:1});var bCq;var Yl=function(){return _.q.apply(this,arguments)||this};
_.R(Yl,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Yl.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Yl.prototype,"data",void 0);Yl=_.E([_.m({is:"ytd-child-video-renderer",disableElementRegistration:!0})],Yl);
_.Z(Yl,"ytd-child-video-renderer",function(){if(bCq!==void 0)return bCq;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return bCq=I},{mode:1});var YkP;var GSw;var Gh=function(){var I=_.q.apply(this,arguments)||this;I.size=0;I.enableWebModernCollectionsV2=_.V("web_modern_collections_v2");I.fallbackImageSize={height:void 0,width:9999};I.webModernCollections=!1;return I};
_.R(Gh,_.q);_.u=Gh.prototype;_.u.computeBlurredImageSize=function(I){return I?{height:I*2,width:I*2}:this.fallbackImageSize};
_.u.computeImageSize=function(I){return I?{height:I,width:I}:this.fallbackImageSize};
_.u.computeObjectFit=function(I){return I?"FILL":"CONTAIN"};
_.u.computePreserve=function(I){return I?!0:!1};
_.u.setBackground=function(){var I,C;_.V("web_modern_collections_v2")&&((I=this.data)==null?0:(C=I.thumbnail)==null?0:C.sampledThumbnailColor)&&(I=this.data.thumbnail.sampledThumbnailColor,this.hostElement.style.background="rgba("+I.red+","+I.green+","+I.blue+",1)")};
Gh.prototype.setBackground=Gh.prototype.setBackground;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Gh.prototype,"ytRendererBehavior",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Gh.prototype,"watchFeedThumbnail",void 0);_.E([_.d(),_.h("design:type",Object)],Gh.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Gh.prototype,"size",void 0);
_.E([_.d({computed:"computeBlurredImageSize(size)"}),_.h("design:type",Object)],Gh.prototype,"blurredImageSize",void 0);_.E([_.d({computed:"computeImageSize(size)"}),_.h("design:type",Object)],Gh.prototype,"imageSize",void 0);_.E([_.d({computed:"computePreserve(size)"}),_.h("design:type",String)],Gh.prototype,"preserve",void 0);_.E([_.d({computed:"computeObjectFit(size)"}),_.h("design:type",String)],Gh.prototype,"objectFit",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Gh.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Gh.prototype,"webModernCollections",void 0);_.E([_.FI("data.thumbnail.sampledThumbnailColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gh.prototype,"setBackground",null);Gh=_.E([_.m({is:"ytd-playlist-custom-thumbnail-renderer",disableElementRegistration:!0})],Gh);
_.Z(Gh,"ytd-playlist-custom-thumbnail-renderer",function(){if(GSw!==void 0)return GSw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return GSw=I},{mode:1});var fT5;var fD=function(){return _.q.apply(this,arguments)||this};
_.R(fD,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fD.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fD.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],fD.prototype,"width",void 0);fD=_.E([_.m({is:"ytd-playlist-video-thumbnail-renderer",disableElementRegistration:!0})],fD);
_.Z(fD,"ytd-playlist-video-thumbnail-renderer",function(){if(fT5!==void 0)return fT5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fT5=I},{mode:1});var Sk5;var SJ=function(){return _.q.apply(this,arguments)||this};
_.R(SJ,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],SJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],SJ.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],SJ.prototype,"width",void 0);SJ=_.E([_.m({is:"ytd-show-custom-thumbnail-renderer",disableElementRegistration:!0})],SJ);
_.Z(SJ,"ytd-show-custom-thumbnail-renderer",function(){if(Sk5!==void 0)return Sk5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Sk5=I},{mode:1});var KmY;var KD=function(){return _.q.apply(this,arguments)||this};
_.R(KD,_.q);KD.prototype.useFilledIcons=function(I){return I==="MUSIC"||I==="COURSE"};
KD.prototype.overlayColorChanged=function(){if(typeof this.overlayColor==="number")this.hostElement.style.backgroundColor=$k(this.overlayColor,"0.8");else if(this.overlayColor){var I=this.overlayColor;this.hostElement.style.backgroundColor="rgba("+I.red+","+I.green+","+I.blue+",0.8)"}};
_.H1.Object.defineProperties(KD.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)}}});
KD.prototype.overlayColorChanged=KD.prototype.overlayColorChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KD.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KD.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],KD.prototype,"overlayColor",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],KD.prototype,"overlayStyle",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.icon","data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],KD.prototype,"overlayTextStyle",null);_.E([_.FI("overlayColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KD.prototype,"overlayColorChanged",null);KD=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-bottom-panel-renderer"})],KD);
_.Z(KD,"ytd-thumbnail-overlay-bottom-panel-renderer",function(){if(KmY!==void 0)return KmY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return KmY=I},{mode:1});var A6d;var A4=function(){var I=_.q.apply(this,arguments)||this;I.active=!1;return I};
_.R(A4,_.q);A4.prototype.computeIsSpinnerHidden=function(I){return(I==null?void 0:I.state)!=="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_DOWNLOADING"};
A4.prototype.computeOverlayIcon=function(I){return(I==null?void 0:I.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_FAILED"?"ERROR_OUTLINE":(I==null?void 0:I.state)==="THUMBNAIL_OVERLAY_DOWNLOADING_RENDERER_STATE_PAUSED_BY_USER"?"OFFLINE_PAUSE":"OFFLINE_DOWNLOADING_SPINNER"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],A4.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],A4.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],A4.prototype,"active",void 0);A4=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-downloading-renderer"})],A4);
_.Z(A4,"ytd-thumbnail-overlay-downloading-renderer",function(){if(A6d!==void 0)return A6d;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return A6d=I},{mode:1});var gNS;var gp=function(){return _.q.apply(this,arguments)||this};
_.R(gp,_.q);_.H1.Object.defineProperties(gp.prototype,{text:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.ytRendererBehavior.getSimpleString(this.data.text)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gp.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gp.prototype,"data",void 0);_.E([_.v("data.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],gp.prototype,"text",null);gp=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-hover-text-renderer"})],gp);
_.Z(gp,"ytd-thumbnail-overlay-hover-text-renderer",function(){if(gNS!==void 0)return gNS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return gNS=I},{mode:1});var vN5,WmP=function(){if(vN5!==void 0)return vN5;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return vN5=I};var vr=function(){return _.q.apply(this,arguments)||this};
_.R(vr,_.q);_.H1.Object.defineProperties(vr,{template:{configurable:!0,enumerable:!0,get:function(){return WmP()}}});
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vr.prototype,"animateEqualizer",void 0);vr=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-equalizer"})],vr);_.MH()(vr,"ytd-thumbnail-overlay-equalizer",function(){return WmP()},{allowedProps:["animateEqualizer"],
mode:1});var dw5;var Wr=function(){var I=_.q.apply(this,arguments)||this;I.nowPlayingBadge=_.V("web_now_playing_badge");I.actionMap={"yt-miniplayer-play-state-changed":"onMiniplayerPlayStateChanged"};return I};
_.R(Wr,_.q);Wr.prototype.activeChanged=function(){var I=this;_.V("web_enable_playlist_video_lockup_equalizer")&&this.isActive&&_.hn(this,function(){_.k3(I.hostElement,"yt-playlist-lockup-now-playing-active",I)})};
Wr.prototype.onMiniplayerPlayStateChanged=function(I){var C,y=(C=_.l(_.ck().currentEndpoint,_.H$))==null?void 0:C.videoId;this.isVideoPlaying=I&&(_.V("web_limit_now_playing_animation_killswitch")||this.videoId===y)};
Wr.prototype.activeChanged=Wr.prototype.activeChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Wr.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Wr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Wr.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],Wr.prototype,"isVideoPlaying",void 0);_.E([_.d(),_.h("design:type",String)],Wr.prototype,"videoId",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Wr.prototype,"equalizerOnly",void 0);_.E([_.d(),_.h("design:type",Boolean)],Wr.prototype,"isActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Wr.prototype,"nowPlayingBadge",void 0);_.E([_.FI("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wr.prototype,"activeChanged",null);
Wr=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-now-playing-renderer"})],Wr);
_.Z(Wr,"ytd-thumbnail-overlay-now-playing-renderer",function(){if(dw5!==void 0)return dw5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return dw5=I},{mode:1});var xwu;var dp=function(){return _.q.apply(this,arguments)||this};
_.R(dp,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dp.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dp.prototype,"data",void 0);dp=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-playback-status-renderer"})],dp);
_.Z(dp,"ytd-thumbnail-overlay-playback-status-renderer",function(){if(xwu!==void 0)return xwu;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xwu=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var qkS;var xl=function(){return _.q.apply(this,arguments)||this};
_.R(xl,_.q);xl.prototype.onDurationChanged=function(){var I,C;_.f(this.hostElement).querySelector("#progress").style.width=((C=(I=this.data)==null?void 0:I.percentDurationWatched)!=null?C:0)+"%"};
xl.prototype.onDurationChanged=xl.prototype.onDurationChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xl.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xl.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],xl.prototype,"isLive",void 0);_.E([_.FI("data.percentDurationWatched"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xl.prototype,"onDurationChanged",null);
xl=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-resume-playback-renderer"})],xl);
_.Z(xl,"ytd-thumbnail-overlay-resume-playback-renderer",function(){if(qkS!==void 0)return qkS;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qkS=I},{mode:1});var mwS;var qV=function(){var I=_.q.apply(this,arguments)||this;I.bottomPanel=!1;I.richGridOverlay=!1;I.watchFeedOverlay=!1;I.isCompact=!1;return I};
_.R(qV,_.q);qV.prototype.widthChanged=function(){this.watchFeedOverlay?this.hostElement.style.width="":this.richGridOverlay||(this.hostElement.style.width=this.width+"px")};
_.H1.Object.defineProperties(qV.prototype,{isIconFilled:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType)==="PLAY_ALL"&&_.V("kevlar_system_icons")}}});
qV.prototype.widthChanged=qV.prototype.widthChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qV.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],qV.prototype,"width",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qV.prototype,"bottomPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qV.prototype,"richGridOverlay",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qV.prototype,"watchFeedOverlay",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qV.prototype,"isCompact",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qV.prototype,"isIconFilled",null);_.E([_.FI("width","watchFeedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qV.prototype,"widthChanged",null);
qV=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-side-panel-renderer"})],qV);
_.Z(qV,"ytd-thumbnail-overlay-side-panel-renderer",function(){if(mwS!==void 0)return mwS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mwS=I},{mode:1});var ZCw;var BMm=["CLIP","SHORTS"],ms=function(){var I=_.q.apply(this,arguments)||this;I.animated=_.V("animated_live_badge_icon");I.hasIcon=!1;I.updateTimerIntervalId=0;I.timeSinceLive=0;return I};
_.R(ms,_.q);_.u=ms.prototype;_.u.detached=function(){clearInterval(this.updateTimerIntervalId)};
_.u.dataChanged=function(){this.data&&(this.hasIcon=!!this.data.icon)};
_.u.computeHideTimeStatus=function(){return this.hideBadgeShape?!this.hasIconOrText():!0};
_.u.hasIconOrText=function(){var I,C;return!!(((I=this.data)==null?0:I.icon)||((C=this.data)==null?0:C.text))};
_.u.initializeLiveBadgeTimer=function(){var I=this,C,y=(C=this.liveBadgeData)==null?void 0:C.startTimestampSec;if(y&&this.canShowLiveBadgeTimer()){var k;C=Number((k=this.liveBadgeData)==null?void 0:k.tickIntervalUsec)/1E3||1E3;this.timeSinceLive=Date.now()/1E3-Number(y);this.updateTimerIntervalId=_.uX(function(){I.canShowLiveBadgeTimer()?I.timeSinceLive++:(I.timeSinceLive=0,window.clearInterval(I.updateTimerIntervalId))},C)}else this.timeSinceLive=0};
_.u.canShowLiveBadgeTimer=function(){var I=Date.now(),C,y;return I<(Number((C=this.liveBadgeData)==null?void 0:C.endTimestampSec)-1)*1E3&&I>Number((y=this.liveBadgeData)==null?void 0:y.startTimestampSec)*1E3};
_.H1.Object.defineProperties(ms.prototype,{badgeShapeData:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=this.data;var C=this.timeSinceLive;var y,k,F,z;a:{var c=I.style;if(c===void 0)c=16;else switch(c){case "LIVE":c=17;break a;default:c=16}}C={type:c,text:C?gfs({seconds:C}):_.hS(I.text),accessibilityText:(y=I.text)==null?void 0:(k=y.accessibility)==null?void 0:(F=k.accessibilityData)==null?void 0:F.label,icon:(z=I.icon)==null?void 0:z.iconType}}else C={};return C}},
hideBadgeShape:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.hasIconOrText()||this.overlayType==="OPEN_IN_NEW_TAB"}},
overlayStyle:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.style)return this.data.style}},
liveBadgeData:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.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 BMm.indexOf(this.overlayType||this.overlayStyle||"")!==-1}}});
ms.prototype.initializeLiveBadgeTimer=ms.prototype.initializeLiveBadgeTimer;ms.prototype.dataChanged=ms.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ms.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ms.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],ms.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ms.prototype,"animated",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHideTimeStatus(data,hideBadgeShape)"}),_.h("design:type",Boolean)],ms.prototype,"hideTimeStatus",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ms.prototype,"hasIcon",void 0);_.E([_.d(),_.h("design:type",Object)],ms.prototype,"timeSinceLive",void 0);_.E([_.v("data","timeSinceLive"),_.h("design:type",Object),_.h("design:paramtypes",[])],ms.prototype,"badgeShapeData",null);
_.E([_.v("data","overlayType"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ms.prototype,"hideBadgeShape",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ms.prototype,"dataChanged",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],ms.prototype,"overlayStyle",null);
_.E([_.v("data.liveBadgeData"),_.h("design:type",Object),_.h("design:paramtypes",[])],ms.prototype,"liveBadgeData",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.type"),_.h("design:type",Object),_.h("design:paramtypes",[])],ms.prototype,"overlayType",null);_.E([_.v("overlayType","overlayStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ms.prototype,"useFilledIcon",null);
_.E([_.rW("liveBadgeData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ms.prototype,"initializeLiveBadgeTimer",null);ms=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-time-status-renderer"})],ms);
_.Z(ms,"ytd-thumbnail-overlay-time-status-renderer",function(){if(ZCw!==void 0)return ZCw;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZCw=I},{mode:_.Ij("kevlar_poly_si_batch_j035")?1:2});var EN8;var Zg=function(){return _.q.apply(this,arguments)||this};
_.R(Zg,_.q);Zg.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"}}}}};
Zg.prototype.computeThumbnailOverlayResumePlaybackRenderer=function(I){if(this.hasPlaybackProgressBar)return{percentDurationWatched:I.percentDurationWatched}};
Zg.prototype.computeHasPlaybackProgressBar=function(I){return!!I.percentDurationWatched&&I.percentDurationWatched>0};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Zg.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Zg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Zg.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasPlaybackProgressBar(data)"}),_.h("design:type",Boolean)],Zg.prototype,"hasPlaybackProgressBar",void 0);
Zg=_.E([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-show-watch-forward-overlay-renderer"})],Zg);
_.Z(Zg,"ytd-tvfilm-show-watch-forward-overlay-renderer",function(){if(EN8!==void 0)return EN8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return EN8=I},{mode:1});var hne;_.MU(DWI);var Uw0=_.BO(function(I){var C=I.data;var y=I.children;var k=function(){return!!C().doubleStack};
return _.P("yt-collections-stack",{class:"collections-stack-wiz",hidden:function(){return!C().experimentEnabled}},_.P(_.Dx,{cond:C,
then:function(){return _.P("div",null,_.P(_.Dx,{cond:k,then:function(){var F={};return _.P("div",{class:_.sZ("collections-stack-wiz__collection-stack2",function(){return C().customClassName2ndStack},(F["collections-stack-wiz__collection-stack2--responsive-mode"]=function(){return C().enableResponsiveMode},F)),
style:_.cP({"background-color":function(){return PJm(C())}})})}}),_.P("div",{class:_.sZ("collections-stack-wiz__collection-stack1",function(){return C().customClassName1stStack},function(){return L5Y(C().thumbnailSize?C().thumbnailSize:"medium")}),
style:_.cP({"background-color":function(){return PJm(C())}})}),y)}}))},"J");_.B9(Uw0,"yt-collections-stack",{props:{data:_.As}});var Br=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};I.webModernCollections=!1;I.isSearch=!1;I.isDoubleStack=!1;I.thumbnailSize="medium";I.enableWebModernCollectionsV2=_.V("web_modern_collections_v2");return I};
_.R(Br,_.q);_.u=Br.prototype;
_.u.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]]"}}}}}};
_.u.getThumbnailDetails=function(I){if(I!=null&&I.thumbnailRenderer){var C=I.thumbnailRenderer,y;if((y=C.playlistVideoThumbnailRenderer)==null?0:y.thumbnail)return C.playlistVideoThumbnailRenderer.thumbnail;var k;if((k=C.playlistCustomThumbnailRenderer)==null?0:k.thumbnail)return C.playlistCustomThumbnailRenderer.thumbnail;I=I.thumbnailRenderer;var F;if((F=I.showCustomThumbnailRenderer)==null?0:F.thumbnail)return I.showCustomThumbnailRenderer.thumbnail}};
_.u.computeOverlayColor=function(I){var C,y;if((C=this.getThumbnailDetails(I))==null?0:(y=C.darkColorPalette)==null?0:y.section2Color)return this.getThumbnailDetails(I).darkColorPalette.section2Color;var k;return(k=this.getThumbnailDetails(I))==null?void 0:k.sampledThumbnailColor};
_.u.computeWebModernCollections=function(I){if(I==null||!I.thumbnailOverlays)return!1;I=_.T(I.thumbnailOverlays);for(var C=I.next();!C.done;C=I.next()){var y=void 0;if((y=C.value)==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0}return!1};
_.u.computeNavigationEndpoint=function(I){return xCK(I==null?void 0:I.navigationEndpoint)};
_.H1.Object.defineProperties(Br.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I=this.getThumbnailDetails(this.data);return{thumbnailSize:this.thumbnailSize,doubleStack:this.isDoubleStack,sampledThumbnailColor:I==null?void 0:I.sampledThumbnailColor,vibrantColorPalette:I==null?void 0:I.vibrantColorPalette,darkColorPalette:I==null?void 0:I.darkColorPalette,experimentEnabled:this.enableWebModernCollectionsV2}}}});
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Br.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Br.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(Of5),_.h("design:type",Object)],Br.prototype,"ytdThumbnailBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Br.prototype,"componentBehavior",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],Br.prototype,"watchFeedThumbnail",void 0);_.E([_.d(),_.h("design:type",Number)],Br.prototype,"customThumbnailSize",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],Br.prototype,"hideAria",void 0);_.E([_.d(),_.h("design:type",Object)],Br.prototype,"data",void 0);_.E([_.d({computed:"computeOverlayColor(data)"}),_.h("design:type",Object)],Br.prototype,"overlayColor",void 0);
_.E([_.d({computed:"computeWebModernCollections(data)"}),_.h("design:type",Object)],Br.prototype,"webModernCollections",void 0);_.E([_.d({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],Br.prototype,"computedNavigationEndpoint",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Br.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Br.prototype,"isDoubleStack",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Br.prototype,"thumbnailSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Br.prototype,"enableWebModernCollectionsV2",void 0);_.E([_.v("data","enableWebModernCollectionsV2","isDoubleStack","thumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],Br.prototype,"collectionStack",null);Br=_.E([_.m({disableElementRegistration:!0,is:"ytd-playlist-thumbnail"})],Br);
_.Z(Br,"ytd-playlist-thumbnail",function(){if(hne!==void 0)return hne;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hne=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var HCu;var EQ=function(){var I=_.q.apply(this,arguments)||this;I.noEndpoints=!1;I.amsterdamPostMvp=_.V("web_amsterdam_post_mvp_playlists");I.badges=[];I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.R(EQ,_.q);_.u=EQ.prototype;_.u.getMetadata=function(I){if(!I)return[];var C=[],y=I.shortViewCountText||I.viewCountText;y&&C.push(_.hS(y));I.publishedTimeText&&C.push(_.hS(I.publishedTimeText));I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&C.push(_.Sj(_.hS(I.upcomingEventData.upcomingEventText),Number(I.upcomingEventData.startTime)));return C};
_.u.observeDataForBylineSeparator=function(){this.data&&_.a_(this.hostElement,"byline-separated",this.getMetadata(this.data).length>0&&!this.data.ownerBadges||this.shouldShowVideoInfo)};
_.u.metadataColorChanged=function(){this.metadataColor||(this.metadataLine.style.color="");this.metadataLine.style.color=_.lg(this.metadataColor)};
_.u.getSimpleString=function(I){return _.hS(I)};
_.u.isBylineHidden=function(I){return this.noByline||!((I==null?0:I.longBylineText)||(I==null?0:I.shortBylineText))};
_.u.isMetadataHidden=function(I){var C;return((C=this.getMetadata(I))==null?void 0:C.length)===0};
_.u.isBylineMetadataSeparatorHidden=function(I){return this.isMetadataHidden(I)||!this.shouldShowVideoInfo};
_.u.isLongByline=function(I,C){return C&&!(I==null||!I.longBylineText)};
_.H1.Object.defineProperties(EQ.prototype,{shouldShowVideoInfo:{configurable:!0,enumerable:!0,get:function(){var I;return this.amsterdamPostMvp&&!((I=this.data)==null||!I.videoInfo)}},
inlineBadgeClass:{configurable:!0,enumerable:!0,get:function(){return this.badges&&this.badges.length>0?"metadata-line-with-badge":""}},
longBylineClass:{configurable:!0,enumerable:!0,get:function(){return this.longByline?"long-byline":""}},
bylineText:{configurable:!0,enumerable:!0,get:function(){if(this.data)return this.longByline?this.data.longBylineText:this.data.shortBylineText}},
watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}}});
EQ.prototype.metadataColorChanged=EQ.prototype.metadataColorChanged;EQ.prototype.observeDataForBylineSeparator=EQ.prototype.observeDataForBylineSeparator;_.E([_.g(_.lZ),_.h("design:type",Object)],EQ.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],EQ.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],EQ.prototype,"noEndpoints",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"isSlimShort",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"radioMeta",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],EQ.prototype,"isGridViewEnabled",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"richMeta",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],EQ.prototype,"amsterdamPostMvp",void 0);_.E([_.d(),_.h("design:type",Boolean)],EQ.prototype,"noByline",void 0);
_.E([_.d({computed:"isLongByline(data, radioMeta)"}),_.h("design:type",Boolean)],EQ.prototype,"longByline",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"truncateMetadataLine",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"miniMode",void 0);_.E([_.d(),_.h("design:type",Number)],EQ.prototype,"metadataColor",void 0);_.E([_.d(),_.h("design:type",Array)],EQ.prototype,"badges",void 0);
_.E([_.d({selector:_.Kx,selectorArgs:["data.videoId"]}),_.h("design:type",String)],EQ.prototype,"transferState",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"isDownloading",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],EQ.prototype,"typographyBump",void 0);_.E([_.z$("#metadata-line"),_.h("design:type",HTMLElement)],EQ.prototype,"metadataLine",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EQ.prototype,"observeDataForBylineSeparator",null);_.E([_.FI("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EQ.prototype,"metadataColorChanged",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],EQ.prototype,"shouldShowVideoInfo",null);
_.E([_.v("badges"),_.h("design:type",String),_.h("design:paramtypes",[])],EQ.prototype,"inlineBadgeClass",null);_.E([_.v("longByline"),_.h("design:type",String),_.h("design:paramtypes",[])],EQ.prototype,"longBylineClass",null);_.E([_.v("data","longByline"),_.h("design:type",Object),_.h("design:paramtypes",[])],EQ.prototype,"bylineText",null);_.E([_.v("isGridViewEnabled","data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],EQ.prototype,"watchFeedBigThumbs",null);
EQ=_.E([_.m({is:"ytd-video-meta-block",disableElementRegistration:!0})],EQ);
_.Z(EQ,"ytd-video-meta-block",function(){if(HCu!==void 0)return HCu;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-meta-block--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="metadata" class="style-scope ytd-video-meta-block">\n  <div id="byline-container" hidden="[[isBylineHidden(data, radioMeta)]]" class="style-scope ytd-video-meta-block">\n    <ytd-channel-name id="channel-name" class$="[[longBylineClass]] style-scope ytd-video-meta-block" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" wrap-text="[[longByline]]">\n    </ytd-channel-name>\n    <div id="separator" class="style-scope ytd-video-meta-block">\u2022</div>\n    <yt-formatted-string id="video-info" hidden="[[!shouldShowVideoInfo]]" text="[[data.videoInfo]]" class="style-scope ytd-video-meta-block">\n  </yt-formatted-string>\n  </div>\n  <div id="metadata-line" class="style-scope ytd-video-meta-block">\n    \n    <ytd-badge-supported-renderer class="inline-metadata-badge style-scope ytd-video-meta-block" badges="[[badges]]" hidden="[[!badges.length]]">\n    </ytd-badge-supported-renderer>\n    <div id="separator" hidden="[[isBylineMetadataSeparatorHidden(data)]]" class="style-scope ytd-video-meta-block">\u2022</div>\n    <template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-video-meta-block">\n      <span class="inline-metadata-item style-scope ytd-video-meta-block">[[item]]</span>\n    </template>\n  </div>\n</div>\n<div id="additional-metadata-line" class="style-scope ytd-video-meta-block">\n  <template is="dom-repeat" items="[[data.additionalMetadatas]]" class="style-scope ytd-video-meta-block"><span class="style-scope ytd-video-meta-block">[[getSimpleString(item)]]</span></template>\n</div>\n\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HCu=I},{mode:_.Ij("kevlar_poly_si_batch_j080")?1:2});_.jz("itemSectionRenderer","playlistRenderer","ytd-playlist-renderer");var h4=function(){var I=_.q.apply(this,arguments)||this;I.displayItemCount=2;I.isBackstagePlaylist=!1;I.isPostCompactPlaylist=!1;I.shouldShowChannelThumbnail=!1;I.useModernCollectionsV2=_.V("web_modern_collections_v2");return I};
_.R(h4,_.q);_.u=h4.prototype;_.u.computeFirstVideos=function(I,C){return I===void 0||C===void 0?[]:I.slice(0,C)};
_.u.dataChanged=function(){if(this.data&&this.data.thumbnailRenderer){var I=this.data.thumbnailRenderer;I.playlistVideoThumbnailRenderer&&this.set("data.thumbnail",I.playlistVideoThumbnailRenderer.thumbnail);I.playlistCustomThumbnailRenderer&&this.set("data.thumbnail",I.playlistCustomThumbnailRenderer.thumbnail)}};
_.u.computeThumbnailHeight=function(I,C,y,k,F){return k?F==="BIG"?280:F==="MASSIVE"?337:234:y?240:C?72:I?118:138};
_.u.computeThumbnailWidth=function(I,C,y,k,F){return k?F==="MEDIUM"?450:F==="BIG"?500:F==="MASSIVE"?600:420:y?360:C?128:I?210:246};
_.u.computeUseBiggerThumbs=function(I){return I&&_.V("enable_desktop_search_bigger_thumbs")};
_.u.computeShouldShowChannelThumbnail=function(I,C){return I&&!(C==null||!C.channelThumbnail)};
_.H1.Object.defineProperties(h4.prototype,{stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"large":"medium"}}});
h4.prototype.dataChanged=h4.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],h4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],h4.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],h4.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],h4.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],h4.prototype,"displayItemCount",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],h4.prototype,"isBackstagePlaylist",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],h4.prototype,"isPostCompactPlaylist",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],h4.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(isSearch)"}),_.h("design:type",Boolean)],h4.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],h4.prototype,"biggerThumbsStyle",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],h4.prototype,"isDownloads",void 0);_.E([_.d({computed:"computeShouldShowChannelThumbnail(isSearch, data)"}),_.h("design:type",Object)],h4.prototype,"shouldShowChannelThumbnail",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],h4.prototype,"useModernCollectionsV2",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h4.prototype,"dataChanged",null);_.E([_.v("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],h4.prototype,"stackThumbnailSize",null);h4=_.E([_.m({is:"ytd-playlist-renderer",disableElementRegistration:!0})],h4);
_.Z(h4,"ytd-playlist-renderer",function(){if(YkP===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);YkP=I}I=YkP;return I},{mode:1});var tTw;var J6S;var UQ=function(){var I=_.q.apply(this,arguments)||this;I.collections=!!_.V("web_modern_collections_v2");I.startX=0;return I};
_.R(UQ,_.q);UQ.prototype.onEndpointMouseDown=function(I){this.startX=I.clientX};
UQ.prototype.onEndpointClick=function(I){this.startX!==I.clientX&&(I.preventDefault(),I.stopPropagation())};
UQ.prototype.computeObjectFit=function(I){return I==="CARD_RENDERER_STYLE_TYPE_UNIVERSAL_WATCH_CARD_MOVIE_POSTER"||I==="CARD_RENDERER_STYLE_TYPE_MOVIE_POSTER"||I==="CARD_RENDERER_STYLE_TYPE_CENTERED"?"COVER":"FILL"};
UQ.prototype.computeCardStyle=function(I){return I?I.replace("CARD_RENDERER_STYLE_TYPE_","").toLowerCase():""};
_.H1.Object.defineProperties(UQ.prototype,{isAlbumCard:{configurable:!0,enumerable:!0,get:function(){var I,C;return this.collections&&((I=this.data)==null?void 0:(C=I.searchRefinementCardRendererStyle)==null?void 0:C.value)==="CARD_RENDERER_STYLE_TYPE_ALBUM_CARD"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){return this.isAlbumCard?{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,customClassName1stStack:"collection-stack-1 style-scope "+this.is}:{experimentEnabled:!1}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],UQ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UQ.prototype,"data",void 0);_.E([_.d({computed:"computeObjectFit(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",Number)],UQ.prototype,"objectFit",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeCardStyle(data.searchRefinementCardRendererStyle.value)"}),_.h("design:type",String)],UQ.prototype,"cardStyle",void 0);
_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],UQ.prototype,"roundContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UQ.prototype,"collections",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],UQ.prototype,"isAlbumCard",null);_.E([_.v("data","collections","isAlbumCard"),_.h("design:type",Object),_.h("design:paramtypes",[])],UQ.prototype,"collectionStack",null);
UQ=_.E([_.m({is:"ytd-search-refinement-card-renderer",disableElementRegistration:!0})],UQ);
_.Z(UQ,"ytd-search-refinement-card-renderer",function(){if(J6S!==void 0)return J6S;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return J6S=I},{mode:1});var OCb;var Hr=function(){var I=_.q.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.R(Hr,_.q);_.E([_.d(),_.h("design:type",Object)],Hr.prototype,"data",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Hr.prototype,"componentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Hr.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hr.prototype,"isRichGrid",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],Hr.prototype,"miniMode",void 0);
Hr=_.E([_.m({is:"ytd-game-details-renderer",disableElementRegistration:!0})],Hr);
_.Z(Hr,"ytd-game-details-renderer",function(){if(OCb!==void 0)return OCb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OCb=I},{mode:1});var aTu;var MT8;var t4=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};return I};
_.R(t4,_.q);_.u=t4.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.currentStateData=function(I){var C=I||this.data;return C&&C.states&&C.currentStateId!=null?C.states.find(function(y){return y.stateId===C.currentStateId})||null:null};
_.u.currentStateRendererData=function(I){return(I=this.currentStateData(I))&&I.state&&I.state.buttonRenderer?I.state.buttonRenderer:null};
_.u.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())};
_.u.computeButtonIcon=function(I){I=this.currentStateRendererData(I);var C;return(I==null?0:(C=I.icon)==null?0:C.iconType)?I.icon.iconType.toLowerCase():null};
_.u.computeAccessibility=function(I){return(I=this.currentStateRendererData(I))&&I.accessibilityData?I.accessibilityData.accessibilityData||null:null};
_.u.computeButtonClass=function(I){var C=this.currentStateRendererData(I);if(!C)return"";I="";var y=C.style;y&&(I+=y.toLowerCase().replace(/_/g,"-")+" ");(C=C.size)&&(I+=C.toLowerCase().replace(/_/g,"-")+" ");return I.trim()};
_.u.computeServiceEndpoint=function(I){if(!I)return null;var C=I&&I.serviceEndpoint,y=this.get("command.commandMetadata.webCommandMetadata.sendPost",I);return C?C:y&&I.command?I.command:null};
_.u.computeBellMenuItemParams=function(I){var C;I=(C=_.l(I==null?void 0:I.command,_.r9))==null?void 0:C.commands;if(!I||I.length===0)return null;C=_.l(I[0],_.jV);var y,k;return(C==null?0:(y=C.popup)==null?0:(k=y.menuPopupRenderer)==null?0:k.items)?C.popup.menuPopupRenderer.items.map(function(F){return F.menuServiceItemRenderer.trackingParams}):null};
_.u.handleBellMenuOpenSelectedAction=function(I){var C=I.trackingParams,y=this.computeBellMenuItemParams(this.data);this.data&&C&&y&&y.includes(C)&&this.ytRenderButtonBehavior._setButtonIcon(I.icon.iconType.toLowerCase())};
_.u.onYtServiceRequestCompleted=function(I,C){(I=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))&&this.set("data",I)};
_.u.onYtServiceRequestError=function(){this.ytRenderButtonBehavior._setButtonIcon(this.computeButtonIcon(this.data))};
_.u.resetState=function(){this.set("data.currentStateId",3)};
_.u.onYtButtonTapHandler=function(){if(this.data){var I=this.currentStateRendererData(this.data);I&&this.ytRendererBehavior.logExplicitClick(I)}};
t4.prototype.onYtServiceRequestError=t4.prototype.onYtServiceRequestError;t4.prototype.onYtServiceRequestCompleted=t4.prototype.onYtServiceRequestCompleted;t4.prototype.stateChanged=t4.prototype.stateChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],t4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],t4.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(yn.YtRenderButtonBehavior),_.h("design:type",Object)],t4.prototype,"ytRenderButtonBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],t4.prototype,"data",void 0);_.E([_.rW("data","data.currentStateId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t4.prototype,"stateChanged",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],t4.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],t4.prototype,"onYtServiceRequestError",null);t4=_.E([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer"})],t4);
_.Z(t4,"ytd-subscription-notification-toggle-button-renderer",function(){if(MT8!==void 0)return MT8;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return MT8=I},{mode:1});var Icc;var J4=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-menu-service-item-selected-action":"handleBellMenuOpenSelectedAction"};I.tapHandler=function(){if(I.data){var C=I.currentStateRendererData();C&&I.ytRendererBehavior.logExplicitClick(C)}};
return I};
_.R(J4,_.q);_.u=J4.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.currentStateData=function(){var I=this;return this.data&&this.data.states&&this.data.currentStateId!=null?this.data.states.find(function(C){return C.stateId===I.data.currentStateId})||null:null};
_.u.currentStateRendererData=function(){var I=this.currentStateData();return I&&I.state&&I.state.buttonRenderer?I.state.buttonRenderer:null};
_.u.computeAccessibilityLabel=function(){var I,C,y;return(I=this.currentStateRendererData())==null?void 0:(C=I.accessibilityData)==null?void 0:(y=C.accessibilityData)==null?void 0:y.label};
_.u.computeBellMenuItemParams=function(){var I,C,y=(C=_.l((I=this.data)==null?void 0:I.command,_.r9))==null?void 0:C.commands;if(!y||y.length===0)return null;I=_.l(y[0],_.jV);var k,F;return(I==null?0:(k=I.popup)==null?0:(F=k.menuPopupRenderer)==null?0:F.items)?I.popup.menuPopupRenderer.items.map(function(z){return z.menuServiceItemRenderer.trackingParams}):null};
_.u.handleBellMenuOpenSelectedAction=function(I){var C=I.trackingParams,y=this.computeBellMenuItemParams();if(this.data&&C&&y&&y.includes(C)&&(I==null||!I.isDisabled)){var k;((k=_.l(I.serviceEndpoint,_.w9))==null?void 0:k.signal)!=="CLIENT_SIGNAL"&&(this.icon=I.icon.iconType)}};
_.u.resetState=function(){this.icon=void 0;this.set("data.currentStateId",3)};
_.u.onYtServiceRequestCompleted=function(I,C){if(I=this.get("data.newNotificationButton.subscriptionNotificationToggleButtonRenderer",C))this.icon=void 0,this.set("data",I)};
_.u.onYtServiceRequestError=function(){this.icon=void 0};
_.H1.Object.defineProperties(J4.prototype,{computedButtonShape:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=this.data,C=this.textLabel,y=this.hostElement,k=this.computeAccessibilityLabel(),F=this.tapHandler,z=this.isOverlay?"overlay":"mono",c=(I==null?0:I.disableButton)?"disabled":"active";C=C?_.j2(C):void 0;return{style:z,type:"tonal",state:c,size:"M",focused:!1,formattedButtonText:C,iconPosition:"leading-trailing",onTap:NZX(I,F,y),accessibilityLabel:k}}}},
computedIcon:{configurable:!0,enumerable:!0,get:function(){var I=this.currentStateRendererData(),C,y,k=(y=this.icon)!=null?y:I==null?void 0:(C=I.icon)==null?void 0:C.iconType;if(k)return _.y5(k)}},
computedSecondaryIcon:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.secondaryIcon)==null?void 0:C.iconType;if(y)return _.y5(y)}}});
J4.prototype.onYtServiceRequestError=J4.prototype.onYtServiceRequestError;J4.prototype.onYtServiceRequestCompleted=J4.prototype.onYtServiceRequestCompleted;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],J4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],J4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],J4.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],J4.prototype,"textLabel",void 0);
_.E([_.d(),_.h("design:type",String)],J4.prototype,"icon",void 0);_.E([_.d(),_.h("design:type",Boolean)],J4.prototype,"isOverlay",void 0);_.E([_.v("data.*","textLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],J4.prototype,"computedButtonShape",null);_.E([_.v("data.*","icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],J4.prototype,"computedIcon",null);_.E([_.v("data.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],J4.prototype,"computedSecondaryIcon",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],J4.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],J4.prototype,"onYtServiceRequestError",null);J4=_.E([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-toggle-button-renderer-next"})],J4);
_.Z(J4,"ytd-subscription-notification-toggle-button-renderer-next",function(){if(Icc!==void 0)return Icc;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e<yt-button-shape data="[[computedButtonShape]]" icon-name="[[computedIcon]]" secondary-icon-name="[[computedSecondaryIcon]]">\n</yt-button-shape>\n');return Icc=I},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var CJc;_.V("web_enable_sink_animated_actions")?_.B9(OPu,"yt-animated-action",{props:{backgroundLottieRef:_.As,foregroundLottieRef:_.As,wrapperClass:_.As,disableAnimation:_.As},unsafeExternallySettableAttributes:new Set(["key"])}):_.aj(s39,"yt-animated-action",{propNames:["backgroundLottieRef","foregroundLottieRef"]});var OQ=function(){var I=_.q.apply(this,arguments)||this;I.animatedActionEnabled=_.V("web_animated_actions");I.foregroundLottieRef={};I.backgroundLottieRef={};I.forceIconOnly=!1;I.showTextWhileAnimating=!1;I.keyboardFocused=!1;I.isAnimating=!1;I.actionMap={"yt-player-subscribe":"onPlayerSubscribe","yt-player-unsubscribe":"onPlayerUnsubscribe","yt-update-subscribe-button-action":"handleUpdateSubscribeButtonAction"};return I};
_.R(OQ,_.q);_.u=OQ.prototype;_.u.maybeUpdateBellButtonText=function(){this.showTextWhileAnimating&&this.bellButton&&(this.bellButton.textLabel=this.subscribedButtonText)};
_.u.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]]"}}}}}};
_.u.attached=function(){this.keyboardFocused=!1};
_.u.onYtServiceRequestSent=function(I,C){(this.get("endpoint.subscribeEndpoint",C)||this.get("endpoint.unsubscribeEndpoint",C))&&this.updateSubscriptionState(!this.subscribed)};
_.u.onYtServiceRequestCompleted=function(I,C){(I=this.get("newNotificationButton.subscriptionNotificationToggleButtonRenderer",C.data))&&this.bellButton&&(this.bellButton.data=I)};
_.u.observedSubscribed=function(){this.isAnimating||this.clearContainerSize();_.CK(this.hostElement)};
_.u.onPlayerSubscribe=function(I){this.isCompactRed()||I!==this.data.channelId||(this.tryToSaveButtonWidths(),this.updateContainerToFitContent(!!this.subscribed),this.updateSubscriptionState(!0))};
_.u.onPlayerUnsubscribe=function(I){this.isCompactRed()||I!==this.data.channelId||this.updateSubscriptionState(!1)};
_.u.handleUpdateSubscribeButtonAction=function(I){I=_.l(I,IT9);var C;I&&I.channelId===((C=this.data)==null?void 0:C.channelId)&&this.updateSubscriptionState(!!I.subscribed)};
_.u.computeButtonStyle=function(I){return this.get("style.styleType",I)||null};
_.u.isCompactRed=function(){return this.computeButtonStyle(this.data)==="COMPACT_RED"};
_.u.computeSubscribed=function(){return this.subscriptionStateEntity?!!this.subscriptionStateEntity.subscribed:!(!this.data||!this.data.subscribed)};
_.u.updateSubscriptionState=function(I){if(I!==this.subscribed){this.set("data.subscribed",I);var C,y=(C=this.data)==null?void 0:C.subscribedEntityKey;y&&this.ytdReduxBehavior.dispatch(_.wJ("subscriptionStateEntity",y,{key:y,subscribed:I}));this.isCompactRed()||_.k3(this.hostElement,"yt-subscription-changed",I);I||(_.Fe(this.hostElement,"yt-unsubscribe-action"),this.resetNotificationBellState());this.animatedActionEnabled&&(this.updateContainerToFitContent(!!I),I&&this.hasBellButton&&this.startAnimation())}};
_.u.startAnimation=function(){var I=this;if(!this.isAnimating){var C=this.forceIconOnly&&this.showTextWhileAnimating?2E3:1500;this.isAnimating=!0;var y;(y=this.backgroundLottieRef.lottieEl)==null||y.goToAndPlay(0);var k;(k=this.foregroundLottieRef.lottieEl)==null||k.goToAndPlay(0);_.b$.addJob(function(){I.maybeAnimateBellIcon()},2,300);
this.forceIconOnly&&this.showTextWhileAnimating&&_.b$.addJob(function(){I.updateContainerToFitContent(!!I.subscribed,!0)},2,1500);
_.b$.addJob(function(){I.isAnimating=!1},2,C)}};
_.u.maybeAnimateBellIcon=function(){var I=_.Oq(this.hostElement).querySelector("yt-animated-icon");if(I){var C;(C=I.animationRef.lottieEl)==null||C.goToAndPlay(0)}};
_.u.onDataChanged=function(){this.animatedActionEnabled&&(this.hostElement.style.width="")};
_.u.onMouseDown=function(){this.tryToSaveButtonWidths();this.updateContainerToFitContent(!!this.subscribed)};
_.u.tryToSaveButtonWidths=function(){if(this.animatedActionEnabled&&!this.unsubscribedWidth){if(!this.subscribed){var I;this.unsubscribedWidth=(I=this.subscribeButtonShape)==null?void 0:I.getBoundingClientRect().width}var C;this.subscribedWidth=(C=this.bellButton)==null?void 0:C.getBoundingClientRect().width;this.maybeSetSubscribedButtonIconOnlyWidth()}};
_.u.updateContainerToFitContent=function(I,C){this.animatedActionEnabled&&this.subscribedWidth&&this.unsubscribedWidth&&(I?(I=this.subscribedWidth,C=this.isAnimating&&!C,this.subscribedIconOnlyWidth===void 0||C||(I=this.subscribedIconOnlyWidth),this.hostElement.style.width=I+"px"):this.hostElement.style.width=this.unsubscribedWidth+"px")};
_.u.clearContainerSize=function(){this.hostElement.style.width=""};
_.u.resetNotificationBellState=function(){this.get("notificationPreferenceButton.subscriptionNotificationToggleButtonRenderer",this.data)&&this.bellButton&&this.bellButton.resetState()};
_.u.maybeSetSubscribedButtonIconOnlyWidth=function(){var I=this;this.forceIconOnly&&this.showTextWhileAnimating&&this.subscribedIconOnlyWidth===void 0&&(this.subscribedIconOnlyWidth=0,this.subscribed?this.subscribedIconOnlyWidth=this.subscribedWidth:(this.bellButton&&(this.bellButton.textLabel=void 0),requestAnimationFrame(function(){var C;I.subscribedIconOnlyWidth=(C=I.bellButton)==null?void 0:C.getBoundingClientRect().width;requestAnimationFrame(function(){if(I.bellButton){var y;I.bellButton.textLabel=
(y=I.data)==null?void 0:y.subscribedButtonText}})})))};
_.H1.Object.defineProperties(OQ.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 I;return(I=this.data)==null?void 0:I.subscribedButtonText}var C;return this.forceIconOnly?void 0:(C=this.data)==null?void 0:C.subscribedButtonText}},
smartimationSettings:{configurable:!0,enumerable:!0,get:function(){var I,C,y=((I=this.data)==null?void 0:(C=I.timedAnimationData)==null?void 0:C.animationTiming)||[];return{uniqueId:"subscribe",timings:y,enabled:y.length>0&&!this.subscribed,experimentEnabled:y.length>0}}},
subscribeButtonHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!this.subscribed&&((I=this.data)==null?void 0:I.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 I={renderer:this.data,element:this.hostElement,subscribed:!!this.subscribed,isOverlay:!!this.overlayButton};var C=I.renderer;var y=I.element;var k=I.subscribed;var F=I.commandController;var z=I.isOverlay;I=I.config;var c=XUY(C,k);z&&(c.style="overlay");z=Object;var r=z.assign,w;a:switch((w=C.style)==null?void 0:w.styleType){case "COMPACT_GRAY":case "COMPACT_RED":w={size:"S"};break a;default:w={size:"M"}}var L=lcH(C,k);var D=
(D=k?C.subscribedButtonText:C.unsubscribedButtonText)?_.j2(D):void 0;return r.call(z,{},c,w,{focused:!1,toggled:k,accessibilityLabel:L,formattedButtonText:D,onTap:jgO(C,I,k,y,F)})}}}});
OQ.prototype.onMouseDown=OQ.prototype.onMouseDown;OQ.prototype.onDataChanged=OQ.prototype.onDataChanged;OQ.prototype.observedSubscribed=OQ.prototype.observedSubscribed;OQ.prototype.onYtServiceRequestCompleted=OQ.prototype.onYtServiceRequestCompleted;OQ.prototype.onYtServiceRequestSent=OQ.prototype.onYtServiceRequestSent;OQ.prototype.maybeUpdateBellButtonText=OQ.prototype.maybeUpdateBellButtonText;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],OQ.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],OQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],OQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],OQ.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],OQ.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.subscribedEntityKey"],selector:_.CM}),_.h("design:type",Object)],OQ.prototype,"subscriptionStateEntity",void 0);_.E([_.d({computed:"computeSubscribed(data.subscribed, subscriptionStateEntity)",reflectToAttribute:!0}),_.h("design:type",Boolean)],OQ.prototype,"subscribed",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],OQ.prototype,"branded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OQ.prototype,"animatedActionEnabled",void 0);
_.E([_.d(),_.h("design:type",Object)],OQ.prototype,"foregroundLottieRef",void 0);_.E([_.d(),_.h("design:type",Object)],OQ.prototype,"backgroundLottieRef",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],OQ.prototype,"overlayButton",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeButtonStyle(data)"}),_.h("design:type",Object)],OQ.prototype,"buttonStyle",void 0);_.E([_.d(),_.h("design:type",Object)],OQ.prototype,"forceIconOnly",void 0);
_.E([_.d(),_.h("design:type",Object)],OQ.prototype,"showTextWhileAnimating",void 0);_.E([_.d({value:function(){return!!_.N().resolve(_.aU(_.Du))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],OQ.prototype,"useKeyboardFocused",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OQ.prototype,"keyboardFocused",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OQ.prototype,"isAnimating",void 0);_.E([_.v("data.notificationPreferenceButton.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"hasBellButton",null);
_.E([_.FI("subscribedButtonText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OQ.prototype,"maybeUpdateBellButtonText",null);_.E([_.v("data.subscribedButtonText","forceIconOnly","isAnimating","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"subscribedButtonText",null);_.E([_.v("data.timedAnimationData.animationTiming","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"smartimationSettings",null);
_.E([_.d({reflectToAttribute:!0}),_.v("subscribed","hasBellButton","data.hideWhenUnsubscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"subscribeButtonHidden",null);_.E([_.d({reflectToAttribute:!0}),_.v("subscribed","hasBellButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"subscribeButtonInvisible",null);
_.E([_.d({reflectToAttribute:!0}),_.v("subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"unsubscribeButtonHidden",null);_.E([_.z$("ytd-subscription-notification-toggle-button-renderer-next"),_.h("design:type",Object)],OQ.prototype,"bellButton",void 0);_.E([_.z$("#subscribe-button-shape"),_.h("design:type",HTMLElement)],OQ.prototype,"subscribeButtonShape",void 0);
_.E([_.v("overlayButton","subscribed","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OQ.prototype,"buttonShape",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],OQ.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],OQ.prototype,"onYtServiceRequestCompleted",null);
_.E([_.FI("subscribed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OQ.prototype,"observedSubscribed",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OQ.prototype,"onDataChanged",null);_.E([_.km("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],OQ.prototype,"onMouseDown",null);
OQ=_.E([_.m({disableElementRegistration:!0,is:"ytd-subscribe-button-renderer"})],OQ);
_.Z(OQ,"ytd-subscribe-button-renderer",function(){if(CJc!==void 0)return CJc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CJc=I},{mode:1});var a5=function(){var I=_.q.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.R(a5,_.q);a5.prototype.configureRendererStamper=function(){return{"data.game":{id:"game",mapping:{gameDetailsRenderer:{component:"ytd-game-details-renderer",properties:{isRichGrid:"[[isRichGrid]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],a5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],a5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],a5.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],a5.prototype,"isRichGrid",void 0);a5=_.E([_.m({is:"ytd-game-card-renderer",disableElementRegistration:!0})],a5);
_.Z(a5,"ytd-game-card-renderer",function(){if(aTu!==void 0)return aTu;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return aTu=I},{mode:1});var MV={id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}},initialRenderPriority:_.V("defer_menus")&&!Zoq?0:void 0,waitForSignal:"eocs"};var sgw;var oLw;var Iu=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-upcoming-event-reminder-button-state-command":"handleUpdateUpcomingEventReminderButtonStateCommand"};return I};
_.R(Iu,_.q);_.u=Iu.prototype;_.u.configureRendererStamper=function(){return{"currentButtonStateRenderer.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{buttonTooltipPosition:"top"}}}}}};
_.u.onSeriesReminderStateEntityChange=function(){var I,C,y;((I=this.eventReminderStateEntity)==null?0:I.key)&&((C=this.seriesReminderStateEntity)==null?void 0:C.state)==="SPORTS_SERIES_REMINDER_STATE_ALL"&&((y=this.eventReminderStateEntity)==null?void 0:y.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE"&&this.ytdReduxBehavior.dispatch(_.wJ("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:"UPCOMING_EVENT_REMINDER_STATE_NONE"})))};
_.u.onYtServiceRequestCompleted=function(){this.set("data.currentState",this.getButtonStateFromReminderState())};
_.u.onYtServiceRequestError=function(){var I;this.updateReminderStateEntitiesFromButtonState((I=this.data)==null?void 0:I.currentState)};
_.u.handleUpdateUpcomingEventReminderButtonStateCommand=function(I){if(I=_.l(I,uVS)){var C,y=(C=this.data)==null?void 0:C.targetId;y&&I.targetId===y&&_.SA(this.updateReminderStateEntitiesFromButtonState.bind(this,I.state))}};
_.u.getButtonStateFromReminderState=function(){var I;if(((I=this.seriesReminderStateEntity)==null?void 0:I.state)==="SPORTS_SERIES_REMINDER_STATE_ALL")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES";var C;if(((C=this.eventReminderStateEntity)==null?void 0:C.state)==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE";var y,k;if(((y=this.seriesReminderStateEntity)==null?void 0:y.state)==="SPORTS_SERIES_REMINDER_STATE_NONE"&&((k=this.eventReminderStateEntity)==
null?void 0:k.state)==="UPCOMING_EVENT_REMINDER_STATE_NONE")return"UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE";var F;return(F=this.data)==null?void 0:F.currentState};
_.u.updateReminderStateEntitiesFromButtonState=function(I){if(I){switch(I){case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SERIES":I="UPCOMING_EVENT_REMINDER_STATE_NONE";var C="SPORTS_SERIES_REMINDER_STATE_ALL";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_SINGLE":I="UPCOMING_EVENT_REMINDER_STATE_SINGLE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;case "UPCOMING_EVENT_REMINDER_BUTTON_STATE_NONE":I="UPCOMING_EVENT_REMINDER_STATE_NONE";C="SPORTS_SERIES_REMINDER_STATE_NONE";break;default:return}var y;
((y=this.eventReminderStateEntity)==null?0:y.key)&&this.ytdReduxBehavior.dispatch(_.wJ("upcomingEventReminderStateEntity",this.eventReminderStateEntity.key,Object.assign({},this.eventReminderStateEntity,{state:I})));var k;((k=this.seriesReminderStateEntity)==null?0:k.key)&&this.ytdReduxBehavior.dispatch(_.wJ("sportsSeriesReminderStateEntity",this.seriesReminderStateEntity.key,Object.assign({},this.seriesReminderStateEntity,{state:C})))}};
_.H1.Object.defineProperties(Iu.prototype,{currentButtonStateRenderer:{configurable:!0,enumerable:!0,get:function(){var I=this.getButtonStateFromReminderState(),C,y;if(I&&((C=this.data)==null?0:(y=C.states)==null?0:y.length))for(C=_.T(this.data.states),y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;if(((k=_.l(y,zfc))==null?void 0:k.state)===I)return _.l(y,zfc)}}}});
Iu.prototype.onYtServiceRequestError=Iu.prototype.onYtServiceRequestError;Iu.prototype.onYtServiceRequestCompleted=Iu.prototype.onYtServiceRequestCompleted;Iu.prototype.onSeriesReminderStateEntityChange=Iu.prototype.onSeriesReminderStateEntityChange;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Iu.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Iu.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Iu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Iu.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Iu.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.upcomingEventData.reminderStateEntityKey"],selector:fmK}),_.h("design:type",Object)],Iu.prototype,"eventReminderStateEntity",void 0);
_.E([_.d({selectorArgs:["eventReminderStateEntity.seriesReminderState"],selector:function(I,C){return _.cg(I.entities,"sportsSeriesReminderStateEntity",C)}}),
_.h("design:type",Object)],Iu.prototype,"seriesReminderStateEntity",void 0);_.E([_.v("data.currentState","eventReminderStateEntity","seriesReminderStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iu.prototype,"currentButtonStateRenderer",null);_.E([_.FI("seriesReminderStateEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iu.prototype,"onSeriesReminderStateEntityChange",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iu.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iu.prototype,"onYtServiceRequestError",null);Iu=_.E([_.m({disableElementRegistration:!0,is:"ytd-upcoming-event-reminder-button-renderer"})],Iu);
_.Z(Iu,"ytd-upcoming-event-reminder-button-renderer",function(){if(oLw!==void 0)return oLw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return oLw=I},{mode:1});var yrq;var Cz=function(){return _.q.apply(this,arguments)||this};
_.R(Cz,_.q);Cz.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{ellipsisTruncate:!0}}}}}};
_.H1.Object.defineProperties(Cz.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(_.V("web_announce_stop_seeing_this_ad_text_a11y_bugfix")&&this.data)return this.ytRendererBehavior.getSimpleString(this.data.responseText)}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Cz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Cz.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Cz.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Cz.prototype,"shelfDismissal",void 0);_.E([_.v("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cz.prototype,"text",null);
_.E([_.v("data.responseText"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cz.prototype,"textAriaLabel",null);Cz=_.E([_.m({disableElementRegistration:!0,is:"ytd-notification-multi-action-renderer"})],Cz);
_.Z(Cz,"ytd-notification-multi-action-renderer",function(){if(yrq!==void 0)return yrq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yrq=I},{mode:1});var kFw;var sA=function(){return _.q.apply(this,arguments)||this};
_.R(sA,_.q);sA.prototype.ready=function(){var I=this;_.f(this.hostElement).querySelector("#undo").addEventListener("tap",function(){I.onUndoTap()})};
sA.prototype.onUndoTap=function(){this.data.undoEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.undoEndpoint,{form:{element:this.hostElement}})};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sA.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sA.prototype,"data",void 0);sA=_.E([_.m({disableElementRegistration:!0,is:"ytd-notification-text-renderer"})],sA);
_.Z(sA,"ytd-notification-text-renderer",function(){if(kFw!==void 0)return kFw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return kFw=I},{mode:1});var F5c;var ou=function(){var I=_.q.apply(this,arguments)||this;I.mouseOverDelayJobId=0;I.fadeInImageDelayJobId=0;I.startTimeMs=-1;I.loadingStartTimeMs=-1;I.loadingEndTimeMs=-1;I.hasVideoPreview=!1;return I};
_.R(ou,_.q);_.u=ou.prototype;_.u.attached=function(){this.data&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.u.detached=function(){this.isAttachedAndDataSet=!1;this.hideThumbnail();this.data=void 0;this.csn=null};
_.u.dataChanged=function(){this.data&&this.isAttached&&!this.isAttachedAndDataSet&&(this.isAttachedAndDataSet=!0,this.showThumbnail())};
_.u.showThumbnail=function(){var I=this;this.csn=_.Si();_.KA("fmth");_.b$.cancelJob(this.mouseOverDelayJobId);this.data&&this.data.movingThumbnailDetails&&this.data.movingThumbnailDetails.thumbnails?this.mouseOverDelayJobId=_.tE(_.b$,function(){I.loadingStartTimeMs=(0,_.JY)();var C=_.f(I.hostElement).querySelector("#thumbnail");C.complete?I.displayMouseOverImage():C.addEventListener("load",_.sb(I,I.displayMouseOverImage))},150):_.a_(_.f(this.hostElement).querySelector("#play"),"show",!0)};
_.u.hideThumbnail=function(){this.data&&this.data.enableHoveredLogging&&this.logHoverEvent();this.removeVideoPreview()};
_.u.onTap=function(){this.removeVideoPreview()};
_.u.logHoverEvent=function(){if(this.csn&&this.trackingParams&&!(this.loadingStartTimeMs<=0)){var I=this.videoId,C=this.csn,y=this.loadingEndTimeMs>0?this.loadingEndTimeMs-this.loadingStartTimeMs:0,k=this.startTimeMs,F=this.hasVideoPreview,z=_.nv(this.trackingParams),c={isMovingThumbnail:F};F&&k>0&&(y>0&&(c.movingThumbnailLoadingDurationMs=Math.round(y)),c.durationHoveredMs=Math.round((0,_.JY)()-k));I&&(c.videoId=I);_.h7(C,z,"INTERACTION_LOGGING_GESTURE_TYPE_HOVER",{thumbnailHoveredData:c});this.startTimeMs=
this.loadingEndTimeMs=this.loadingStartTimeMs=-1;this.hasVideoPreview=!1}};
_.u.removeVideoPreview=function(){_.b$.cancelJob(this.mouseOverDelayJobId);_.b$.cancelJob(this.fadeInImageDelayJobId);var I=_.f(this.hostElement).querySelector("#thumbnail");_.a_(I,"fade-in",!1);I.removeEventListener("load",_.sb(this,this.displayMouseOverImage));I=_.f(this.hostElement).querySelector("#play");_.a_(I,"fade-in",!1);_.a_(I,"show",!1)};
_.u.displayMouseOverImage=function(){var I=_.f(this.hostElement).querySelector("#thumbnail"),C=_.f(this.hostElement).querySelector("#play");this.isImageAvailable(I)?(this.hasVideoPreview=!0,this.loadingEndTimeMs=(0,_.JY)(),this.startTimeMs=(0,_.JY)(),this.fadeInImageDelayJobId=_.tE(_.b$,function(){_.a_(I,"fade-in",!0)},50)):_.a_(C,"fade-in",!0)};
_.u.computeThumbnail=function(I,C){var y;I&&I.movingThumbnailDetails&&I.movingThumbnailDetails.thumbnails&&C?y=_.E5(I.movingThumbnailDetails.thumbnails,this.hostElement.clientWidth):y=C?"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7":"";if(y)return _.ra(y)};
_.u.isImageAvailable=function(I){return!(!I.src||I.src==="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"||I.naturalWidth===120)};
ou.prototype.onTap=ou.prototype.onTap;ou.prototype.dataChanged=ou.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ou.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ou.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ou.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],ou.prototype,"csn",void 0);_.E([_.d(),_.h("design:type",Object)],ou.prototype,"trackingParams",void 0);
_.E([_.d(),_.h("design:type",String)],ou.prototype,"videoId",void 0);_.E([_.d(),_.h("design:type",Boolean)],ou.prototype,"isAttachedAndDataSet",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ou.prototype,"dataChanged",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ou.prototype,"onTap",null);ou=_.E([_.m({disableElementRegistration:!0,is:"ytd-moving-thumbnail-renderer"})],ou);
_.Z(ou,"ytd-moving-thumbnail-renderer",function(){if(F5c!==void 0)return F5c;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return F5c=I},{mode:1});var utu;_.rA=function(I){this.hostElement=I;this.eventSink=null;this.eventList=[]};
_.rA.prototype.shouldForward=function(){var I,C;return(C=(I=this.eventSink)==null?void 0:I.isConnected)!=null?C:document.body.contains(this.eventSink)};
_.rA.prototype.start=function(I,C){this.eventSink&&this.stop();for(var y=0;y<I.length;y++)this.hostElement.addEventListener(I[y],_.sb(this,this.forwardEvent));var k;this.eventSink=(k=C.hostElement)!=null?k:C;this.eventList=I};
_.rA.prototype.stop=function(){for(var I=0;I<this.eventList.length;I++)this.hostElement.removeEventListener(this.eventList[I],_.sb(this,this.forwardEvent));this.eventSink=null;this.eventList=[]};
_.rA.prototype.forwardEvent=function(I,C){this.shouldForward()&&(I.stopPropagation(),this.eventSink instanceof Element?_.k3(this.eventSink,I.type,C):_.SN(new _.ph("eventSink is not an element")))};_.y_={YtEventForwardingBehavior:{created:function(){this.forwarder_=new _.rA(this.hostElement)},
shouldForward:function(){return this.forwarder_.shouldForward()},
startForwardingEvents:function(I,C){this.forwarder_.start(I,C)},
stopForwardingEvents:function(){this.forwarder_.stop()}}};var kT=function(){return _.q.apply(this,arguments)||this};
_.R(kT,_.q);_.u=kT.prototype;_.u.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=_.Aq("HTML_DIR")==="rtl"?"right":"left"};
_.u.dataChanged=function(){this.popupOpen=!1};
_.u.computeAriaLabel=function(I){return _.l(I,lz0).label};
_.u.onTap=function(I){I.stopPropagation();I.preventDefault();this.data.command&&_.N().resolve(_.ID).resolveCommand(this.data.command,{form:{element:this.hostElement}})};
_.u.onPopupOpened=function(){this.popupOpen=!0;this.eventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.u.onPopupClosed=function(){this.popupOpen=!1;this.eventForwardingBehavior.stopForwardingEvents()};
kT.prototype.onPopupClosed=kT.prototype.onPopupClosed;kT.prototype.onPopupOpened=kT.prototype.onPopupOpened;kT.prototype.onTap=kT.prototype.onTap;kT.prototype.dataChanged=kT.prototype.dataChanged;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],kT.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.Yr),_.h("design:type",Object)],kT.prototype,"ironButtonState",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],kT.prototype,"componentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],kT.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:-1}),_.h("design:type",Number)],kT.prototype,"tabindex",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeAriaLabel(data.accessibility)"}),_.h("design:type",Object)],kT.prototype,"ariaLabel",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],kT.prototype,"disableTooltips",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],kT.prototype,"popupOpen",void 0);
_.E([_.d(),_.h("design:type",Element)],kT.prototype,"eventSink",void 0);_.E([_.z$("#tooltip"),_.h("design:type",Object)],kT.prototype,"tooltip",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kT.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],kT.prototype,"onTap",null);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kT.prototype,"onPopupOpened",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kT.prototype,"onPopupClosed",null);kT=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-button-renderer"})],kT);
_.Z(kT,"ytd-thumbnail-overlay-button-renderer",function(){if(utu!==void 0)return utu;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return utu=I},{mode:1});var z_5;var Fs=function(){return _.q.apply(this,arguments)||this};
_.R(Fs,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fs.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fs.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fs.prototype,"disableAnimation",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fs.prototype,"rounded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fs.prototype,"transparentBackground",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fs.prototype,"noPadding",void 0);Fs=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-endorsement-renderer"})],Fs);
_.Z(Fs,"ytd-thumbnail-overlay-endorsement-renderer",function(){if(z_5!==void 0)return z_5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return z_5=I},{mode:1});var TZd;var un=function(){return _.q.apply(this,arguments)||this};
_.R(un,_.q);un.prototype.computeIconPosition=function(I){return this.get("iconPosition",I)||null};
un.prototype.computeIconStyle=function(I){return this.get("iconStyle",I)||null};
un.prototype.computeIsIconStyleFilled=function(I){if(!I)return!1;var C;return I.iconStyle==="THUMBNAIL_OVERLAY_ICON_RENDERER_ICON_STYLE_FILLED"||((C=I.icon)==null?void 0:C.iconType)==="ERROR_BLACK"};
_.E([_.d(),_.h("design:type",Object)],un.prototype,"data",void 0);_.E([_.d({computed:"computeIconPosition(data)",reflectToAttribute:!0}),_.h("design:type",Object)],un.prototype,"iconPosition",void 0);_.E([_.d({computed:"computeIconStyle(data)",reflectToAttribute:!0}),_.h("design:type",Object)],un.prototype,"iconStyle",void 0);_.E([_.d({computed:"computeIsIconStyleFilled(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],un.prototype,"iconStyleFilled",void 0);
un=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-icon-renderer"})],un);
_.Z(un,"ytd-thumbnail-overlay-icon-renderer",function(){if(TZd!==void 0)return TZd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TZd=I},{mode:1});var crq;var zf=function(){return _.q.apply(this,arguments)||this};
_.R(zf,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zf.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zf.prototype,"data",void 0);zf=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-inline-unplayable-renderer"})],zf);
_.Z(zf,"ytd-thumbnail-overlay-inline-unplayable-renderer",function(){if(crq!==void 0)return crq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return crq=I},{mode:1});var e_w;var Tf=function(){var I=_.q.apply(this,arguments)||this;I.isPreviewLoading=!1;return I};
_.R(Tf,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Tf.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Tf.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tf.prototype,"isPreviewLoading",void 0);Tf=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-loading-preview-renderer"})],Tf);
_.Z(Tf,"ytd-thumbnail-overlay-loading-preview-renderer",function(){if(e_w!==void 0)return e_w;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return e_w=I},{mode:1});var rrm;var cx=function(){return _.q.apply(this,arguments)||this};
_.R(cx,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cx.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cx.prototype,"data",void 0);cx=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-pinking-renderer"})],cx);
_.Z(cx,"ytd-thumbnail-overlay-pinking-renderer",function(){if(rrm!==void 0)return rrm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rrm=I},{mode:1});var i4e;var e4=function(){var I=_.q.apply(this,arguments)||this;I.disableTooltips=!1;I.isLoading=!1;I.useExpandableTooltip=!1;I.toggled=!1;I.hovered=!1;I.mouseoverDelayJobId=0;I.toggleDelayJobId=0;I.expandAnimationDelayJobId=0;return I};
_.R(e4,_.q);_.u=e4.prototype;_.u.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");_.f(this.hostElement).querySelector("#tooltip").position=_.Aq("HTML_DIR")==="rtl"?"right":"left"};
_.u.detached=function(){this.useExpandableTooltip&&(this.isLoading=this.hovered=!1,this.data&&!this.data.toggledServiceEndpoint&&this.set("data.isToggled",!1),this.mouseoverDelayJobId&&_.b$.cancelJob(this.mouseoverDelayJobId),this.toggleDelayJobId&&_.b$.cancelJob(this.toggleDelayJobId),this.expandAnimationDelayJobId&&_.b$.cancelJob(this.expandAnimationDelayJobId),this.useExpandableTooltip=!1)};
_.u.dataChanged=function(){this.popupOpen=this.isLoading=!1;this.mouseoverDelayJobId&&_.b$.cancelJob(this.mouseoverDelayJobId);this.toggleDelayJobId&&_.b$.cancelJob(this.toggleDelayJobId);this.expandAnimationDelayJobId&&_.b$.cancelJob(this.expandAnimationDelayJobId)};
_.u.computeIcon=function(I,C,y){return(I=y?C:I)&&I.iconType?_.y5(I.iconType):void 0};
_.u.computeAriaLabel=function(I,C,y){return _.l(y?C:I,lz0).label};
_.u.computeTooltip=function(I,C,y){return y?C:I};
_.u.computeToggled=function(){return!(!this.data||!this.data.isToggled)};
_.u.computeIconOnHover=function(I,C){if((I==null?0:I.iconType)&&!C)return _.y5(I.iconType)};
_.u.onTap=function(I){var C=this;I.stopPropagation();I.preventDefault();if(!this.isLoading||this.useExpandableTooltip)if(I=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint)this.isLoading=!0,this.set("data.isToggled",!this.data.isToggled),this.ytComponentBehavior.resolveCommand(I),this.useExpandableTooltip&&(this.toggleDelayJobId=_.tE(_.b$,function(){C.hovered=!1;C.data&&!C.data.toggledServiceEndpoint&&(C.expandAnimationDelayJobId=_.tE(_.b$,function(){C.set("data.isToggled",
!1)},200))},2E3))};
_.u.onMouseenter=function(){var I=this;this.mouseoverDelayJobId=_.tE(_.b$,function(){I.hovered=!0},300)};
_.u.onMouseleave=function(){_.b$.cancelJob(this.mouseoverDelayJobId);this.toggled||(this.hovered=!1)};
_.u.onPopupOpened=function(){this.popupOpen=!0;this.ytEventForwardingBehavior.startForwardingEvents(["yt-navigate"],this.eventSink)};
_.u.onPopupClosed=function(){this.popupOpen=!1;this.ytEventForwardingBehavior.stopForwardingEvents()};
_.u.onServiceRequestCompleted=function(I,C){this.isLoading=!1;if(!this.useExpandableTooltip||this.data.toggledServiceEndpoint&&this.data.untoggledServiceEndpoint)this.serviceRequestWasSuccessful(C)||this.set("data.isToggled",!this.data.isToggled)};
_.u.serviceRequestWasSuccessful=function(I){return _.l(this.data.isToggled?this.data.toggledServiceEndpoint:this.data.untoggledServiceEndpoint,_.bv)?I.data.status==="STATUS_SUCCEEDED":!0};
e4.prototype.onServiceRequestCompleted=e4.prototype.onServiceRequestCompleted;e4.prototype.onPopupClosed=e4.prototype.onPopupClosed;e4.prototype.onPopupOpened=e4.prototype.onPopupOpened;e4.prototype.onMouseleave=e4.prototype.onMouseleave;e4.prototype.dataChanged=e4.prototype.dataChanged;_.E([_.g(_.Yr),_.h("design:type",Object)],e4.prototype,"ironButtonState",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],e4.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],e4.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],e4.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeAriaLabel(data.untoggledAccessibility, data.toggledAccessibility, data.isToggled)"}),_.h("design:type",Object)],e4.prototype,"ariaLabel",void 0);_.E([_.d(),_.h("design:type",Object)],e4.prototype,"disableTooltips",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],e4.prototype,"popupOpen",void 0);_.E([_.d(),_.h("design:type",Object)],e4.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Element)],e4.prototype,"eventSink",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],e4.prototype,"useExpandableTooltip",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeToggled(data.isToggled)"}),_.h("design:type",Object)],e4.prototype,"toggled",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],e4.prototype,"hovered",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIconOnHover(data.untoggledIconOnHover, isToggled)"}),_.h("design:type",Object)],e4.prototype,"iconOnHover",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e4.prototype,"dataChanged",null);
_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e4.prototype,"onMouseleave",null);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e4.prototype,"onPopupOpened",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e4.prototype,"onPopupClosed",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],e4.prototype,"onServiceRequestCompleted",null);e4=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail-overlay-toggle-button-renderer"})],e4);
_.Z(e4,"ytd-thumbnail-overlay-toggle-button-renderer",function(){if(i4e!==void 0)return i4e;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return i4e=I},{mode:_.Ij("kevlar_poly_si_batch_j053")?1:2});var wUb;var nLc=_.BO(function(I){var C=I.data;var y=function(){return C().enableSegmentView};
return _.P("yt-thumbnail-overlay-progress-bar-view-model",{class:"ytThumbnailOverlayProgressBarHost"},_.P(_.Dx,{cond:y,then:function(){return _.P("div",{class:"ytThumbnailOverlayProgressBarHostProgressBar"},_.P("div",{class:_.yc("ytThumbnailOverlayProgressBarHostProgressBarLeftSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment","ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment"),style:function(){return"width:"+C().startPercent+"%"}}),_.P("div",{class:_.yc("ytThumbnailOverlayProgressBarHostProgressBarContainer"),
style:function(){return"width:"+C().segmentDurationPercent+"%"}},_.P("div",{class:_.yc("ytThumbnailOverlayProgressBarHostProgressBarActiveSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment")}),_.P("div",{class:"ytThumbnailOverlayProgressBarHostLabel"},_.P("div",null," ",function(){return C().segmentLabel})),_.P("div",{class:"ytThumbnailOverlayProgressBarHostLabelTriangle"})),_.P("div",{class:_.yc("ytThumbnailOverlayProgressBarHostProgressBarRightSegment","ytThumbnailOverlayProgressBarHostProgressBarSegment",
"ytThumbnailOverlayProgressBarHostProgressBarInactiveSegment")}))}}),_.P(_.Dx,{cond:function(){return!y()&&C().startPercent},
then:function(){var k={};return _.P("div",{class:_.yc("ytThumbnailOverlayProgressBarHostWatchedProgressBar",(k.ytThumbnailOverlayProgressBarHostUseLegacyBar=!_.V("web_enable_modern_progress_bar_overlay"),k))},_.P("div",{class:"ytThumbnailOverlayProgressBarHostWatchedProgressBarSegment",style:function(){return"width:"+C().startPercent+"%"}}))}}))},"K");
nLc.idomCompat=!0;var PJb=_.BO(function(I){var C=_.yg(),y=_.XU(function(F){var z,c,r;a:{var w=(z=I.data())==null?void 0:z.animationActivationTargetId;z=((c=I.data())==null?void 0:c.animationActivationEntityKey)||"";c=(r=I.data())==null?void 0:r.animationActivationEntitySelectorType;if(z&&w)switch(c){case "THUMBNAIL_BADGE_ANIMATION_ENTITY_SELECTOR_TYPE_PLAYER_STATE":F=_.cg(F.entities,"playerStateEntity",z);r=_.N().resolve(_.aU(_.WJ));w=!!(F&&F.videoId===w&&(r==null?0:r.isMiniplayerActive()));w={activated:w,playAnimation:w&&
F.playerState==="PLAYER_STATE_PLAYING"};break a}w=void 0}return w});
_.l0(function(){var F;if((F=y())==null?0:F.activated){var z;if((z=y())==null?0:z.playAnimation){var c;(c=C.lottieEl)==null||c.goToAndPlay(0)}else{var r;(r=C.lottieEl)==null||r.goToAndStop(0)}}});
var k=function(){var F,z=!((F=y())==null||!F.activated);if(I.data()){F=I.data();var c=void 0;F.icon&&(c=Dnm(F.icon),c=XLY(c));var r=void 0,w;if((w=F.backgroundColor)==null?0:w.lightTheme){var L;r={backgroundColor:$k((L=F.backgroundColor)==null?void 0:L.lightTheme,"0.8")}}if(F.text||c||z){if(z&&F.lottieData&&C){L=F.lottieData;var D,p,Q;w={animationConfig:{name:L.url,path:L.url,autoplay:(D=L.settings)==null?void 0:D.autoplay,loop:(Q=(p=L.settings)==null?void 0:p.loop)!=null?Q:!0},animationRef:C}}else w=
void 0;if(z)D=16;else b:switch(F.badgeStyle){case "THUMBNAIL_OVERLAY_BADGE_STYLE_LIVE":D=17;break b;case "THUMBNAIL_OVERLAY_BADGE_STYLE_SPECIAL":D=18;break b;default:D=16}z={type:D,text:z&&F.animatedText?F.animatedText:F.text,icon:c,customColors:r,animation:w}}else z=void 0}else z=void 0;return z};
return _.P("yt-thumbnail-badge-view-model",{class:_.sZ("yt-thumbnail-badge-view-model-wiz",I.class)},_.P(_.Dx,{cond:k,then:function(){return _.P(_.t9,{data:function(){return k()}})}}))},"L");var L5P=_.BO(function(I){var C={};return _.P("yt-thumbnail-bottom-overlay-view-model",{class:_.sZ("ytThumbnailBottomOverlayViewModelHost",(C.ytThumbnailBottomOverlayViewModelHostBackground=function(){return I.data().enableGradientBackground},C))},_.P("div",{class:"ytThumbnailBottomOverlayViewModelHostContainer"},_.P(_.lY,{data:function(){return I.data().progressBar}},{thumbnailOverlayProgressBarViewModel:nLc}),_.P(_.lY,{data:function(){return I.data().badge}},{thumbnailBadgeViewModel:function(y){return _.P(PJb,
{data:y.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}}),_.P(_.lY,{data:function(){return I.data().badges}},{thumbnailBadgeViewModel:function(y){return _.P(PJb,{data:y.data,
class:"ytThumbnailBottomOverlayViewModelHostBadge"})}})))},"M");
L5P.idomCompat=!0;_.B9(L5P,"yt-thumbnail-bottom-overlay-view-model",{props:{data:_.Z_}});var gLs={calledOnce:!1,state:"visible"},vLY={calledOnce:!1,state:"hidden"};_.MU(xWz);var DW0=_.BO(function(I){var C=I.data;var y=I.className;I=I.alwaysShow;var k=_.Es();_.ql(k,function(){return C().rendererContext});
var F=_.R_m(),z={};return _.P("thumbnail-hover-overlay-view-model",{el:k,class:_.sZ("ytThumbnailHoverOverlayViewModelHost",y,(z.ytThumbnailHoverOverlayViewModelHostForceHover=I,z)),"aria-label":function(){var c;return(c=_.l(C().rendererContext,_.mO))==null?void 0:c.label},
role:function(){return _.Wj(C().rendererContext)!==void 0?"button":void 0},
tabindex:function(){return _.Wj(C().rendererContext)!==void 0?0:void 0},
"on:keypress":F},_.P("div",{class:_.sZ("ytThumbnailHoverOverlayViewModelScrim",function(){a:switch(C().style){case "THUMBNAIL_HOVER_OVERLAY_STYLE_BUTTON":var c="ytThumbnailHoverOverlayViewModelStyleButton";break a;default:c="ytThumbnailHoverOverlayViewModelStyleCover"}return c})},_.P(_.Dx,{cond:function(){return C().icon},
then:function(c){return _.P(_.x$,{data:c,alt:"",className:"ytThumbnailHoverOverlayViewModelIcon"})}}),_.P(_.Dx,{cond:function(){return C().text},
then:function(c){return _.P(_.wh,{text:c,className:"ytThumbnailHoverOverlayViewModelText"})}})))},"N"),pUd=_.V("web_enable_sink_lockups_batch")?DW0:xWz,Qgq=_.V("web_enable_sink_lockups_batch")?DW0:_.ks(xWz);
DW0.idomCompat=!0;var Bj=_.BO(function(I){var C=I.data;return _.P(_.lY,{data:function(){return C==null?void 0:C().overlays}},{thumbnailHoverOverlayViewModel:Qgq})},"O");
Bj.idomCompat=!0;var NZc={};var Zu=_.BO(function(I){var C=I.data;var y=I.image;var k=I.state;var F=I.iconType;var z=I.overlays;var c=I.isOverlay;var r=_.h3();I=_.T(_.c4(!0,void 0,"xOB8yb"));var w=I.next().value,L=I.next().value,D=_.mh(F,"LIVE");_.l0(function(){var Q=C();requestAnimationFrame(function(){if(r.value===null)var X=!0;else{var b=r.value;X=Q.badgeText;var S=qgF(Q.size);X in NZc?b=NZc[X]:(b=b.clientWidth,NZc[X]=b);(X=b>S)?r.value.style.display="none":r.value.style.visibility="visible"}L(X)})});
var p=function(){var Q={};return Q["yt-spec-avatar-shape__image"]=!0,Q["yt-spec-avatar-shape__image--ads-app"]=C().type===1,Q};
F=_.uk(function(Q){var X,b;return void((b=(X=C()).onTap)==null?void 0:b.call(X,Q))});
return _.P("yt-avatar-shape",null,_.P("div",{class:function(){var Q={};Q=(Q["yt-spec-avatar-shape"]=!0,Q["yt-spec-avatar-shape__button"]=!0,Q[Z4K(C().size)]=!0,Q["yt-spec-avatar-shape__button--tappable"]=!!C().onTap,Q);var X=C().avatarButtonCustomClassName;X&&(Q[X]=!0);return _.yc(Q)},
"on:click":F,"on:keydown":_.gJ(),"aria-label":function(){return C().onTap?C().accessibilityText:""},
role:function(){return C().onTap?"button":void 0},
tabindex:function(){return C().onTap?0:void 0}},_.P("div",{class:function(){var Q,X=C(),b=k==null?void 0:k(),S=c==null?void 0:c(),A=!((Q=X.decorations)==null||!Q.includes(2)||X.size!=="medium"&&X.size!=="large"),x=X.size==="tiny"||X.size==="extra-small",B,t,U,yW,a={};
Q=(a["yt-spec-avatar-shape--live-ring"]=!!(((B=X.decorations)==null?0:B.includes(0))&&ELO(X.size)),a["yt-spec-avatar-shape--stories-watched"]=A&&!(b==null||!b.storiesWatched),a["yt-spec-avatar-shape--stories-unwatched"]=A&&!(b==null?0:b.storiesWatched),a["yt-spec-avatar-shape--background-border"]=h_K(X.decorations)&&!x,a["yt-spec-avatar-shape--background-border-thin"]=h_K(X.decorations)&&x,a["yt-spec-avatar-shape__on-select-border"]=!((t=X.decorations)==null||!t.includes(4)),a["yt-spec-avatar-shape__white-border"]=
!((U=X.decorations)==null||!U.includes(5)),a["yt-spec-avatar-shape__white-border--white-border-thin"]=!!(((yW=X.decorations)==null?0:yW.includes(5))&&x),a["yt-spec-avatar-shape--is-overlay"]=!!S,a);return _.yc(Q)}},_.P("div",{class:function(){var Q={};
Q=(Q[mWW(C().size)]=!0,Q["yt-spec-avatar-shape--no-margin"]=h_K(C().decorations),Q);return _.yc(Q)}},_.P(_.x$,{data:y,
alt:function(){return!C().onTap&&C().accessibilityText?C().accessibilityText:""},
targetWidth:function(){return BZO(C().size)},
targetHeight:function(){return BZO(C().size)},
className:function(){return _.yc(p())}}),_.P(_.Dx,{cond:function(){var Q;
return((Q=C().decorations)==null?void 0:Q.includes(0))&&ELO(C().size)},
then:function(){return _.P("div",{class:function(){var Q={};Q=(Q["yt-spec-avatar-shape__live-badge"]=!0,Q["yt-spec-avatar-shape__live-badge--badge-small"]=C().size==="small",Q["yt-spec-avatar-shape__live-badge--badge-medium"]=C().size==="medium"||C().size==="48",Q["yt-spec-avatar-shape__live-badge--badge-large"]=C().size==="large",Q["yt-spec-avatar-shape__live-badge--badge-extra-large"]=C().size==="extra-large"||C().size==="extra-extra-large"||C().size==="giant",Q);return _.yc(Q)}},_.P(_.Dx,{cond:function(){return C().badgeText},
then:function(Q){return _.P("div",{class:"yt-spec-avatar-shape__badge-text",el:r},Q)}}),_.P(_.Dx,{cond:w,
then:function(){return _.P("div",{class:"yt-spec-avatar-shape__badge-icon"},_.P(_.ez,{icon:D,size:function(){a:switch(C().size){case "extra-large":var Q=16;break a;default:Q=13}return Q}}))}}))}}),_.P(_.Dx,{cond:function(){var Q,X;
return((Q=C().decorations)==null?void 0:Q.includes(1))||((X=C().decorations)==null?void 0:X.includes(0))&&!ELO(C().size)},
then:function(){return _.P("div",{class:function(){var Q=C(),X,b,S={};var A=(S["yt-spec-avatar-shape__live-dot"]=!((X=Q.decorations)==null||!X.includes(0)||ELO(Q.size)),S["yt-spec-avatar-shape__new-content"]=!((b=Q.decorations)==null||!b.includes(1)),S);return _.yc(A)}})}}),_.H2(z,function(){return _.P("div",{class:function(){var Q={};
Q=Object.assign((Q["yt-spec-avatar-shape__image-overlays"]=!0,Q),p());return _.yc(Q)}},z==null?void 0:z())})))))},"P");
Zu.idomCompat={callbacks:{overlays:!0}};var Vx0=_.BO(function(I){function C(){y().endpoint&&_.Gp(y().endpoint)}
var y=I.data;var k=I.decorations;var F=I.avatarButtonCustomClassName;var z=I.isOverlay;return _.P("avatar-view-model",null,_.P(_.Dx,{cond:function(){return y().image},
then:function(c){return _.P(Zu,{data:function(){return H49({data:y(),onTap:y().endpoint?C:void 0,decorations:k==null?void 0:k(),badgeText:void 0,accessibilityText:y().accessibilityText,avatarButtonCustomClassName:F==null?void 0:F()})},
image:c,iconType:"RADAR_LIVE",overlays:function(){return _.P(Bj,{data:y})},
isOverlay:z})}}))},"Q");
Vx0.idomCompat=!0;_.XS=_.V("mweb_enable_sink_avatar_view_model")||_.V("web_enable_sink_avatars_batch")?Vx0:txW;_.rF=_.V("mweb_enable_sink_avatar_view_model")||_.V("web_enable_sink_avatars_batch")?Vx0:_.ks(_.XS);_.MU(txW);_.MU(MxY);var jgq,lcS;jgq=_.BO(function(I){var C=I.data;I=I.className;var y=_.h3(),k=function(){return _.l(C().avatar,_.EG)},F=_.P4(function(){var z,c=C(),r=k(),w=_.Wj(C().rendererContext),L=(z=y.value)!=null?z:void 0;
return r?O4m({data:c,avatar:r,onTap:w,element:L}):{size:"medium"}},void 0,"v09a6");
return _.P("yt-decorated-avatar-view-model",{class:_.sZ("yt-decorated-avatar-view-model-wiz",I),el:y},_.P(_.Dx,{cond:function(){var z;return(z=k())==null?void 0:z.image},
then:function(z){return _.P(Zu,{data:F,image:z,iconType:"RADAR_LIVE",overlays:function(){return _.P(Bj,{data:k})}})}}))},"R");
lcS=_.V("web_enable_sink_avatars_batch")?jgq:MxY;_.wF=_.V("web_enable_sink_avatars_batch")?jgq:_.ks(MxY);jgq.idomCompat=!0;var o0X=_.Qg({avatarViewModel:_.XS,decoratedAvatarViewModel:lcS});_.MU(yFs);var XUP;XUP=_.BO(function(I){var C=_.Es(),y=function(){return C&&_.dJ(I.data().rendererContext)};
_.ql(C,function(){return I.data().rendererContext});
var k=function(){var z=I.data().avatars,c,r;return(r=(c=(z==null?0:z[0])?_.l(z[0],_.EG):void 0)==null?void 0:c.avatarImageSize)!=null?r:"AVATAR_SIZE_UNKNOWN"},F={};
return _.P("yt-avatar-stack-view-model",{el:C,class:_.sZ("yt-avatar-stack-view-model-wiz",I.className,(F["yt-avatar-stack-view-model-wiz--tappable"]=y,F["yt-avatar-stack-view-model-wiz--is-overlay"]=I.isOverlay,F["yt-avatar-stack-view-model-wiz--medium-text"]=I.useMediumText,F)),tabindex:function(){return y()?0:void 0},
role:function(){return y()?"link":void 0},
"aria-label":function(){var z,c;return(c=(z=_.l(I.data().rendererContext,_.mO))==null?void 0:z.label)!=null?c:""}},_.P(_.Dx,{cond:function(){var z;
return I.data().avatars&&!((z=I.hideAvatar)==null?0:z.call(I))},
then:function(){return _.P("div",{class:"yt-avatar-stack-view-model-wiz__avatars"},_.P(_.Dx,{cond:function(){return I.data().decoratedText},
then:function(z){var c={};return _.P("div",{class:_.sZ("yt-avatar-stack-view-model-wiz__text-container",(c["yt-avatar-stack-view-model-wiz__text-container--thin-border"]=function(){return k()==="AVATAR_SIZE_XXS"||k()==="AVATAR_SIZE_XS"},c["yt-avatar-stack-view-model-wiz__text-container--thin-border-overlay"]=function(){var r;
return((r=I.isOverlay)==null?void 0:r.call(I))&&(k()==="AVATAR_SIZE_XXS"||k()==="AVATAR_SIZE_XS")},c)),
style:_.cP({width:function(){return kYW(k())+"px"},
height:function(){return kYW(k())+"px"}})},_.P(_.wh,{text:z,
className:"yt-avatar-stack-view-model-wiz__avatar-decorated-text"}))}}),_.P(_.lY,{data:function(){return I.data().avatars.slice().reverse()}},{avatarViewModel:function(z){return _.P("div",{class:function(){return F6O(k())}},_.P(_.rF,{data:z.data,
decorations:function(){var c;if((c=I.decorations)==null?0:c.call(I))c=I.decorations();else{c=I.data();var r=0;c.avatars&&(r+=c.avatars.length);c.decoratedText&&(r+=1);c=r>1?[3]:[]}return c},
avatarButtonCustomClassName:"yt-avatar-stack-view-model-wiz__avatar-button",isOverlay:I.isOverlay}))},
decoratedAvatarViewModel:function(z){return _.P("div",{class:function(){return F6O(k())}},_.P(_.wF,{data:z.data}))}}))}}),_.P(_.Dx,{cond:function(){return I.data().text},
then:function(z){return _.P(_.wh,{text:z,className:"yt-avatar-stack-view-model-wiz__avatar-stack-text",linkInheritColor:!0})}}))},"S");
_.$WY=_.V("web_enable_sink_avatars_batch")?XUP:yFs;_.nz=_.V("web_enable_sink_avatars_batch")?XUP:_.ks(yFs);XUP.idomCompat=!0;_.B9(_.BO(function(I){var C=I.data;var y=I.thumbnailSize;return _.P("thumbnail-overlay-avatar-stack-view-model",{class:"ytThumbnailOverlayAvatarStackViewModelHost"},_.P("div",{class:_.sZ("ytThumbnailOverlayAvatarStackViewModelavatarStack",function(){return uYK(y==null?void 0:y())})},_.P(_.lY,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(k){return _.P(_.nz,{data:k.data,
decorations:[5]})}})))},"T"),"thumbnail-overlay-avatar-stack-view-model",{props:{data:_.As,
thumbnailSize:_.As}});_.MU(zPI);var R_b=_.BO(function(I){I=_.ZB(I,{hidden:!1});var C=I.data;return _.P("yt-thumbnail-overlay-title-view-model",{class:"yt-thumbnail-overlay-title-view-model",hidden:I.hidden},_.P(_.wh,{text:function(){return C().title},
className:"yt-thumbnail-overlay-title-view-model__title"}),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(){return _.P(_.wh,{text:function(){return C().subtitle},
className:"yt-thumbnail-overlay-title-view-model__subtitle"})}}))},"U"),b45=_.V("web_enable_sink_lockups_batch")?R_b:zPI,Ygd=_.V("web_enable_sink_lockups_batch")?R_b:_.ks(zPI);
R_b.idomCompat=!0;_.V("web_enable_sink_lockups_batch")?_.B9(Ygd,"yt-thumbnail-overlay-title-view-model",{props:{data:_.As,hidden:_.As}}):_.aj(b45,"yt-thumbnail-overlay-title-view-model",{propNames:["data"]});var GFw=_.BO(function(I){I=_.ZB(I,{isClip:!1});var C=I.data,y=I.thumbnailSize,k={};return _.P("yt-thumbnail-overlay-badge-view-model",{class:_.sZ("yt-thumbnail-overlay-badge-view-model-wiz",function(){a:switch(C().position){case "THUMBNAIL_OVERLAY_BADGE_POSITION_TOP_START":var F="yt-thumbnail-overlay-badge-view-model-wiz--top-start";break a;default:F="yt-thumbnail-overlay-badge-view-model-wiz--bottom-end"}return F},function(){return Twz(y==null?void 0:y())},(k["yt-thumbnail-overlay-badge-view-model-wiz--clip"]=
I.isClip,k))},_.P(_.lY,{data:function(){return C().thumbnailBadges}},{thumbnailBadgeViewModel:function(F){return _.P(PJb,{data:F.data,
class:"yt-thumbnail-overlay-badge-view-model-wiz__badge"})}}))},"V");
GFw.idomCompat=!0;_.B9(GFw,"yt-thumbnail-overlay-badge-view-model",{props:{data:_.As,thumbnailSize:_.As,isClip:_.As}});_.MU(cFs);_.aj(cFs,"yt-page-indicator-view-model",{propNames:["data"]});var Px=function(){var I=_.q.apply(this,arguments)||this;I.eventSink=function(){return I};
I.disableInteraction=!1;I.noRoundedCorners=!1;I.isPreviewLoading=!1;I.isOriginalAspectRatio=!1;I.computedObjectFit=!1;I.actionMap={"yt-miniplayer-endpoint-changed":"checkMiniplayer_"};return I};
_.R(Px,_.q);_.u=Px.prototype;
_.u.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:_.V("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"}}};
_.u.onImageLoaded=function(){this.loaded=!0};
_.u.onImageUnloaded=function(){this.loaded=!1};
_.u.computeRichThumbnail=function(I,C,y,k){if(I&&C&&!k&&!_.V("disable_moving_thumbs_handling")&&!y)return C};
_.u.computeImageWidth=function(I,C){return C||9999};
_.u.computeIsOriginalAspectRatio=function(I){return I};
_.u.computeIsLive=function(I){if(I==null?0:I.badges)for(var C=0;C<I.badges.length;C++){var y=I.badges[C];if(y.metadataBadgeRenderer&&y.metadataBadgeRenderer.style==="BADGE_STYLE_TYPE_LIVE_NOW")return!0}else if(I==null?0:I.thumbnailOverlays)for(C=0;C<I.thumbnailOverlays.length;C++)if(y=I.thumbnailOverlays[C],y.thumbnailOverlayTimeStatusRenderer&&y.thumbnailOverlayTimeStatusRenderer.style==="LIVE")return!0;return!1};
_.u.computeObjectFit=function(I,C){return C||(I?"CONTAIN":"")};
_.u.computeNavigationEndpoint=function(I,C,y){return I?C:y};
_.u.computeHasClip=function(I){I=_.T(I||[]);for(var C=I.next();!C.done;C=I.next())if(C.value.thumbnailOverlayPinkingRenderer)return!0;return!1};
_.u.computeOverlayColor=function(I){var C;return(I==null?0:(C=I.darkColorPalette)==null?0:C.section2Color)?I.darkColorPalette.section2Color:I==null?void 0:I.sampledThumbnailColor};
_.H1.Object.defineProperties(Px.prototype,{isPreviewDisabled:{configurable:!0,enumerable:!0,get:function(){return!this.inlinePreviewIsEnabled}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){return Zn(this.width)}}});
Px.prototype.onImageUnloaded=Px.prototype.onImageUnloaded;Px.prototype.onImageLoaded=Px.prototype.onImageLoaded;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Px.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Px.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(Of5),_.h("design:type",Object)],Px.prototype,"ytdThumbnailBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Px.prototype,"componentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Px.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Px.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Px.prototype,"circular",void 0);
_.E([_.d({computed:"computeRichThumbnail(finalHoveredState_, data.richThumbnail, isPreviewLoading, isPreviewDisabled)"}),_.h("design:type",Object)],Px.prototype,"richThumbnail",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasClip(data.thumbnailOverlays)"}),_.h("design:type",Boolean)],Px.prototype,"hasClip",void 0);_.E([_.d(),_.h("design:type",Object)],Px.prototype,"eventSink",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Px.prototype,"queued",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],Px.prototype,"richGridThumbnail",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Px.prototype,"useExpandableTooltip",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Px.prototype,"useUntranslatedNavigationEndpoint",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Px.prototype,"disableInteraction",void 0);
_.E([_.d({computed:"computeNavigationEndpoint(useUntranslatedNavigationEndpoint, data.untranslatedNavigationEndpoint, data.navigationEndpoint)"}),_.h("design:type",Object)],Px.prototype,"computedNavigationEndpoint",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Px.prototype,"nowPlayingEqualizerOnly",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Px.prototype,"hidePlaybackStatus",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Px.prototype,"objectFit",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Px.prototype,"noRoundedCorners",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Px.prototype,"watchFeedThumbnail",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Px.prototype,"isPreviewLoading",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsOriginalAspectRatio(data.thumbnail.isOriginalAspectRatio)"}),_.h("design:type",Object)],Px.prototype,"isOriginalAspectRatio",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeObjectFit(isOriginalAspectRatio, objectFit)"}),_.h("design:type",Object)],Px.prototype,"computedObjectFit",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsLive(data)"}),_.h("design:type",Boolean)],Px.prototype,"isLiveVideo",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Px.prototype,"loaded",void 0);_.E([_.d({computed:"computeOverlayColor(data.thumbnail)"}),_.h("design:type",Object)],Px.prototype,"overlayColor",void 0);_.E([_.d({selector:_.iZK}),_.h("design:type",Boolean)],Px.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.d(),_.h("design:type",Number)],Px.prototype,"width",void 0);
_.E([_.v("inlinePreviewIsEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Px.prototype,"isPreviewDisabled",null);_.E([_.v("width"),_.h("design:type",String),_.h("design:paramtypes",[])],Px.prototype,"thumbnailSize",null);_.E([_.km("image-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Px.prototype,"onImageLoaded",null);
_.E([_.km("image-unloaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Px.prototype,"onImageUnloaded",null);Px=_.E([_.m({disableElementRegistration:!0,is:"ytd-thumbnail"})],Px);
var fc5=_.MH()(Px,"ytd-thumbnail",function(){if(wUb===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);wUb=I}I=wUb;return I},{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 w8m=function(I){var C=this;this.inlinePreviewIsActive=this.inlinePreviewIsEnabledForUser=!1;this.unsubscribeFromInlinePreviewIsEnabled=function(){};
this.JSC$12665_unsubscribeFromInlinePreviewIsActive=function(){};
this.videoPreviewJobId=0;this.JSC$12665_touched=this.previewTriggered=!1;this.onMouseMoveFn=function(y){Sgu(C,y)};
this.onLockupMouseLeaveFn=function(y){y=y.relatedTarget;var k,F;((k=document.getElementsByTagName("ytd-video-preview"))==null?0:(F=k.item(0))==null?0:F.contains(y))||(C.terminateVideoPreview(),Lz(C))};
this.onThumbnailMouseDownFn=function(){C.terminateVideoPreview();Lz(C)};
this.onTouchStart=function(){C.JSC$12665_touched=!0};
this.mediaRenderer=I.mediaRenderer;this.thumbnailElement=I.thumbnailElement;this.lockupElement=I.lockupElement;this.videoPreviewOptsInput=I.videoPreviewOpts;K5e(this);Dh(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)):
_.SN(Error("Ch")):_.SN(Error("Dh")):Ar0(this)},oc=function(I){Ar0(I);
var C;(C=I.lockupElement)==null||C.removeEventListener("mouseenter",I.onMouseMoveFn);var y;(y=I.lockupElement)==null||y.removeEventListener("mouseleave",I.onLockupMouseLeaveFn);var k;(k=I.lockupElement)==null||k.removeEventListener("touchstart",I.onTouchStart);var F;(F=I.thumbnailElement)==null||F.removeEventListener("mousedown",I.onThumbnailMouseDownFn);Lz(I)},K5e=function(I){I.inlinePreviewIsEnabledForUser=_.Hg().getState().ui.inlinePreviewIsEnabled;
I.unsubscribeFromInlinePreviewIsEnabled=_.rf(_.Hg(),_.iZK,function(C){(I.inlinePreviewIsEnabledForUser=C)||Lz(I)});
I.JSC$12665_unsubscribeFromInlinePreviewIsActive=_.rf(_.Hg(),_.roH,function(C){(I.inlinePreviewIsActive=C)||Lz(I)})},Ar0=function(I){I.unsubscribeFromInlinePreviewIsEnabled();
I.unsubscribeFromInlinePreviewIsEnabled=function(){};
I.JSC$12665_unsubscribeFromInlinePreviewIsActive();I.JSC$12665_unsubscribeFromInlinePreviewIsActive=function(){}},Sgu=function(I,C){C.buttons>0||(C=_.s8("kevlar_lockup_hover_delay",-1),I.JSC$12665_touched&&C>=0?(_.b$.cancelJob(I.videoPreviewJobId),I.videoPreviewJobId=_.tE(_.b$,function(){gLm(I)},C),I.JSC$12665_touched=!1):gLm(I))},vLP=function(I){I.videoPreviewJobId=_.tE(_.b$,function(){var C,y,k,F;
return _.e(function(z){if(z.nextAddress==1){if(!Dh(I))return z.return();C=I.getVideoPreviewOpts();if(!C)return z.return();C.isAutoplay=!0;return(k=(y=_.uW(I.mediaRenderer.hostElement,"yt-open-video-preview-action",[C]))&&y[0])?_.n(z,y[0],3):z.jumpTo(2)}z.nextAddress!=2&&(k=z.yieldResult===1);k&&rF9((F=I.mediaRenderer)==null?void 0:F.data);_.oI(z)})})},gLm=function(I){!I.previewTriggered&&Dh(I)&&(I.inlinePreviewIsActive&&I.terminateVideoPreview(),I.previewTriggered=!0,I.mediaRenderer.isInlinePreviewTriggered=
!0,_.b$.cancelJob(I.videoPreviewJobId),I.videoPreviewJobId=_.tE(_.b$,function(){var C,y,k,F;
return _.e(function(z){if(z.nextAddress==1){if(!Dh(I))return z.return();C=I.getVideoPreviewOpts();return C?(k=(y=_.uW(I.mediaRenderer.hostElement,"yt-open-video-preview-action",[C]))&&y[0])?_.n(z,y[0],3):z.jumpTo(2):z.return()}z.nextAddress!=2&&(k=z.yieldResult===1);k&&rF9((F=I.mediaRenderer)==null?void 0:F.data);_.oI(z)})}))};
w8m.prototype.getVideoPreviewOpts=function(){if(this.mediaRenderer.data){var I,C;if((C=(I=this.videoPreviewOptsInput)==null?void 0:I.videoPreviewData)!=null)I=C;else if(I=this.mediaRenderer.data)if(ePz(I))I={inlinePlaybackEndpoint:_.Rj(I.inlinePlayerData.onVisible),navigationEndpoint:_.Rj(I.onTap),thumbnail:"image"in I?I.image:I.thumbnail,thumbnailOverlays:void 0,accessibilityText:itK(I)};else if("multipleInlinePlaybackEndpoint"in I){var y=_.l(_.l(I.multipleInlinePlaybackEndpoint,XfP),$2c);if(y!=
null&&y.playerDescriptors){C=[];y=_.T(y.playerDescriptors);for(var k=y.next();!k.done;k=y.next())k=k.value,C.push({inlinePlaybackEndpoint:k.inlinePlaybackEndpoint,navigationEndpoint:k.navigationEndpoint,thumbnail:k.thumbnail,thumbnailOverlays:k.thumbnailOverlays,accessibilityText:itK(I)});I=C}else I=void 0}else I={inlinePlaybackEndpoint:I.inlinePlaybackEndpoint,navigationEndpoint:I.navigationEndpoint,thumbnail:I.thumbnail,thumbnailOverlays:I.thumbnailOverlays,accessibilityText:itK(I)};else I=void 0;
return Object.assign({},{mediaRenderer:this.mediaRenderer.hostElement,thumbnail:this.thumbnailElement,videoPreviewData:I,showPlayerControls:!0},this.videoPreviewOptsInput)}};
var Dh=function(I){var C;if(C=I.inlinePreviewIsEnabledForUser)C=(I=I.mediaRenderer.data)?"inlinePlaybackEndpoint"in I&&I.inlinePlaybackEndpoint||ePz(I)&&I.inlinePlayerData||"multipleInlinePlaybackEndpoint"in I&&I.multipleInlinePlaybackEndpoint?!0:!1:!1;return C};
w8m.prototype.terminateVideoPreview=function(){_.Fe(this.mediaRenderer.hostElement,"yt-terminate-video-preview-action")};
var Lz=function(I){_.b$.cancelJob(I.videoPreviewJobId);I.inlinePreviewIsActive=!1;I.previewTriggered=!1;I.mediaRenderer.isInlinePreviewTriggered=!1};var W5Y=_.hu(["#"]),pz=function(){var I=_.q.apply(this,arguments)||this;I.isDisabled=!1;return I};
_.R(pz,_.q);_.u=pz.prototype;_.u.configureRendererStamper=function(){return{"data.menu":MV,"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"}}}};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.getMetadata=function(I){var C=[];if(I.metadataText&&Object.keys(I.metadataText).length>0){var y=this.ytRendererBehavior.getSimpleString(I.metadataText);I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&(y=_.Sj(y,Number(I.upcomingEventData.startTime)));C.push(y)}else I.shortViewCountText&&C.push(this.ytRendererBehavior.getSimpleString(I.shortViewCountText)),I.publishedTimeText&&C.push(this.ytRendererBehavior.getSimpleString(I.publishedTimeText)),I.upcomingEventData&&I.upcomingEventData.upcomingEventText&&
(y=this.ytRendererBehavior.getSimpleString(I.upcomingEventData.upcomingEventText),C.push(_.Sj(y,Number(I.upcomingEventData.startTime))));return C};
_.u.calculateBylineText=function(I){return I.shortBylineText?I.shortBylineText:I.bylineText?I.bylineText:null};
_.u.calculateIsDisabled=function(I){return!!I.isDisabled};
_.u.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I)||_.na(W5Y)};
_.u.onDetailsTap=function(I){var C=this.data&&this.data.navigationEndpoint;C&&!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString()])&&(_.V("kevlar_grid_video_renderer_killswitch")?_.k3(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.u.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12670_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:_.f(this.hostElement).querySelector("#dismissible"),thumbnailElement:_.f(this.hostElement).querySelector("ytd-thumbnail")})};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$12670_inlinePreviewHoverListener)==null||oc(I)};
_.u.computeThumbnailWidth=function(I,C){return C&&C>0?C:I?360:210};
_.u.computeShowChannelThumbnail=function(I,C){var y;return C&&!!(I==null?0:(y=I.channelThumbnailSupportedRenderers)==null?0:y.channelThumbnailWithLinkRenderer)};
_.H1.Object.defineProperties(pz.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$12670_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
pz.prototype.dataChanged=pz.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pz.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],pz.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],pz.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.KN),_.h("design:type",Object)],pz.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],pz.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pz.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],pz.prototype,"noEndpoints",void 0);_.E([_.d({computed:"calculateBylineText(data)"}),_.h("design:type",Object)],pz.prototype,"bylineText",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pz.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pz.prototype,"isDownloading",void 0);_.E([_.d({reflectToAttribute:!0,value:0}),_.h("design:type",Number)],pz.prototype,"width",void 0);_.E([_.d({reflectToAttribute:!0,computed:"calculateIsDisabled(data)"}),_.h("design:type",Object)],pz.prototype,"isDisabled",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pz.prototype,"dataChanged",null);_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pz.prototype,"isHovered",null);pz=_.E([_.m({is:"ytd-grid-video-renderer",disableElementRegistration:!0})],pz);
_.Z(pz,"ytd-grid-video-renderer",function(){if(sgw!==void 0)return sgw;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-grid-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-grid-video-renderer"><ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="[[computeThumbnailWidth(isSearch, width)]]" class="style-scope ytd-grid-video-renderer"></ytd-thumbnail><div id="details" on-tap="onDetailsTap" class="style-scope ytd-grid-video-renderer"><a id="channel-thumbnail" hidden="[[!computeShowChannelThumbnail(data, isSearch)]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-grid-video-renderer"><yt-img-shadow id="avatar" thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="36" class="style-scope ytd-grid-video-renderer"></yt-img-shadow></a><div id="text-metadata" class="style-scope ytd-grid-video-renderer"><div id="meta" class="style-scope ytd-grid-video-renderer"><h3 class="style-scope ytd-grid-video-renderer"><ytd-badge-supported-renderer hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer><a id="video-title" class="yt-simple-endpoint style-scope ytd-grid-video-renderer" href$="[[computeHrefWithDefault(data.navigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[data.navigationEndpoint]]">[[getSimpleString(data.title)]]</a></h3><div id="metadata-container" class="grid style-scope ytd-grid-video-renderer" meta-block=""><div id="metadata" class="style-scope ytd-grid-video-renderer"><div id="byline-container" hidden="[[!bylineText]]" class="style-scope ytd-grid-video-renderer"><ytd-channel-name id="channel-name" badges="[[data.ownerBadges]]" channel-name="[[bylineText]]" no-endpoints="[[noEndpoints]]" class="style-scope ytd-grid-video-renderer"></ytd-channel-name></div><div id="metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[getMetadata(data)]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[item]]</span></template></div></div><div id="additional-metadata-line" class="style-scope ytd-grid-video-renderer"><template is="dom-repeat" items="[[data.additionalMetadatas]]" strip-whitespace="" class="style-scope ytd-grid-video-renderer"><span class="style-scope ytd-grid-video-renderer">[[getSimpleString(item)]]</span></template></div></div></div><ytd-badge-supported-renderer id="video-badges" badges="[[data.badges]]" hidden="[[!data.badges]]" class="style-scope ytd-grid-video-renderer"></ytd-badge-supported-renderer></div><div id="menu" class="style-scope ytd-grid-video-renderer"></div></div><div id="buttons" class="style-scope ytd-grid-video-renderer"></div></div><div id="dismissed" class="style-scope ytd-grid-video-renderer"><div id="dismissed-content" class="style-scope ytd-grid-video-renderer"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-grid-video-renderer"></yt-interaction>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return sgw=I},{mode:_.Ij("kevlar_poly_si_batch_j047")?1:2});var dWb;var Q_=function(){var I=_.q.apply(this,arguments)||this;I.roundedContainer=!0;I.skipRoundingTop=!1;I.disableTopPadding=!1;I.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return I};
_.R(Q_,_.q);Q_.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
Q_.prototype.onClick=function(I){var C,y=(C=this.data)==null?void 0:C.sourceEndpoint;!_.q3(_.qc(I),this.hostElement,["A".toString()])&&y&&_.k3(this.hostElement,"yt-navigate",{endpoint:y})};
_.H1.Object.defineProperties(Q_.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 I;return!((I=this.data)==null||!I.menu)}},
truncateParagraphs:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.truncateParagraphs)}},
paragraphMaxLines:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.data)==null?void 0:I.paragraphMaxLines)!=null?C:3}},
background:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.background?this.data.background.replace("INFO_PANEL_CONTENT_BACKGROUND_",""):""}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Q_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Q_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Q_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q_.prototype,"showVerticalDividers",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q_.prototype,"roundedContainer",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q_.prototype,"skipRoundingTop",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q_.prototype,"disableTopPadding",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Q_.prototype,"amsterdamEnabled",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q_.prototype,"showMetadataAtTop",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q_.prototype,"showMetadataBelowTitle",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q_.prototype,"hasMenu",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.truncateParagraphs"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q_.prototype,"truncateParagraphs",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.paragraphMaxLines"),_.h("design:type",Number),_.h("design:paramtypes",[])],Q_.prototype,"paragraphMaxLines",null);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.v("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],Q_.prototype,"background",null);Q_=_.E([_.m({is:"ytd-info-panel-content-renderer",disableElementRegistration:!0})],Q_);
_.Z(Q_,"ytd-info-panel-content-renderer",function(){if(dWb!==void 0)return dWb;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return dWb=I},{mode:_.Ij("kevlar_poly_si_batch_j076")?1:2});var xWq;var qgw;var mWd;var Z48;var Nr=function(){return _.q.apply(this,arguments)||this};
_.R(Nr,_.q);Nr.prototype.computeStyle=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Nr.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Nr.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],Nr.prototype,"style_",void 0);Nr=_.E([_.lT({is:"yt-channel-thumbnail-with-link-renderer",disableElementRegistration:!0})],Nr);
_.Z(Nr,"yt-channel-thumbnail-with-link-renderer",function(){if(Z48===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;mWd===void 0&&(mWd=document.createElement("template"));var k=mWd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Z48=I}I=Z48;return I},{mode:2});var V_=function(){var I=_.q.apply(this,arguments)||this;I.modernTypography=_.V("web_modern_typography");return I};
_.R(V_,_.q);V_.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"}}}};
V_.prototype.computeTitleStyle=function(I){return I||null};
V_.prototype.computeAvatarStyle=function(I){return I||null};
V_.prototype.computeShowNavigationButton=function(I,C){return!(I==null||!I.navigationButton||C)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],V_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],V_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],V_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeTitleStyle(data.titleStyle.style)"}),_.h("design:type",String)],V_.prototype,"titleStyle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeAvatarStyle(data.channelThumbnail.channelThumbnailWithLinkRenderer.style)"}),_.h("design:type",String)],V_.prototype,"avatarStyle",void 0);_.E([_.d(),_.h("design:type",Boolean)],V_.prototype,"hideNavigationButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],V_.prototype,"isModernSd",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],V_.prototype,"modernTypography",void 0);
V_=_.E([_.m({is:"ytd-rich-list-header-renderer",disableElementRegistration:!0})],V_);
_.Z(V_,"ytd-rich-list-header-renderer",function(){if(qgw!==void 0)return qgw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qgw=I},{mode:_.Ij("kevlar_poly_si_batch_j058")?1:2});var j4=function(){return _.q.apply(this,arguments)||this};
_.R(j4,_.q);j4.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{richListHeaderRenderer:"ytd-rich-list-header-renderer"}},"data.contents":{id:"contents",mapping:{gridVideoRenderer:{component:"ytd-grid-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],j4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],j4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],j4.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],j4.prototype,"isSearch",void 0);j4=_.E([_.m({is:"ytd-preview-card-renderer",disableElementRegistration:!0})],j4);
_.Z(j4,"ytd-preview-card-renderer",function(){if(xWq!==void 0)return xWq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xWq=I},{mode:1});var BZq;var ln=function(){return _.q.apply(this,arguments)||this};
_.R(ln,_.q);ln.prototype.configureRendererStamper=function(){return{"data.menu":MV}};
ln.prototype.dataChanged=function(){var I=this.get("colorExtractionPalette.section1Color",this.data);I=_.lg(I);_.CK(this.hostElement,{"--ytd-channel-recommendation-card-avatar-overlay-color":I})};
ln.prototype.computeCardStyle=function(I){return this.get("style.value",I)||null};
ln.prototype.dataChanged=ln.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ln.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ln.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],ln.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ln.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeCardStyle(data)"}),_.h("design:type",String)],ln.prototype,"cardStyle",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ln.prototype,"dataChanged",null);ln=_.E([_.m({disableElementRegistration:!0,is:"ytd-compact-channel-recommendation-card-renderer"})],ln);
_.Z(ln,"ytd-compact-channel-recommendation-card-renderer",function(){if(BZq!==void 0)return BZq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BZq=I},{mode:1});var ELq;var h_8;var Xs=function(){var I=_.q.apply(this,arguments)||this;I.alignAuto=!1;I.collapsed=!0;I.isToggled=!1;I.alwaysCollapsed=!1;I.canToggle=!0;I.collapsedHeight=80;I.disableToggle=!1;I.alwaysToggleable=!1;I.reversed=!1;I.shouldUseNumberOfLines=!1;I.recomputeOnResize=!1;I.canToggleJobId=0;I.lastReversed=!1;return I};
_.R(Xs,_.q);_.u=Xs.prototype;_.u.alwaysToggleableChanged=function(){this.alwaysToggleable&&(this.canToggle=!0)};
_.u.toggledChanged=function(){this.collapsed=this.alwaysCollapsed||!this.isToggled};
_.u.reversedChanged=function(){if(this.reversed&&!this.lastReversed||this.lastReversed&&!this.reversed){for(var I=_.f(this.hostElement),C=I.childNodes,y=document.createDocumentFragment(),k=I.childNodes.length-1;k>=0;k--)_.f(y).appendChild(C[k]);_.V("enable_shadydom_free_scoped_node_methods")?_.Oq(this.hostElement).appendChild(y):I.appendChild(y)}};
_.u.ready=function(){var I=this;_.SA(function(){I.initChildrenObserver()},1)};
_.u.detached=function(){this.detachObserver()};
_.u.toggle=function(I,C){this.canToggle&&(this.isToggled=C,_.k3(this.hostElement,"yt-refit"),I&&I.stopPropagation())};
_.u.reset=function(){this.childrenChanged()};
_.u.onIronResize=function(){this.recomputeOnResize&&this.childrenChanged()};
_.u.computeIsMoreVisible=function(I,C){return I&&!C};
_.u.computeShouldUseNumberOfLines=function(I){try{return!!I&&window.CSS.supports("-webkit-line-clamp","1")}catch(C){}return!1};
_.u.computeIsLessVisible=function(I,C){return I&&C};
_.u.observeCollapsedHeightAndMaxLines=function(){var I=this.collapsedHeight,C=this.maxNumberOfLines;this.shouldUseNumberOfLines?_.CK(this.hostElement,{"--ytd-expander-max-lines":""+C,"--ytd-expander-collapsed-height":""}):_.CK(this.hostElement,{"--ytd-expander-collapsed-height":I+"px","--ytd-expander-max-lines":""})};
_.u.handleMoreTap=function(I){this.disableToggle||(_.k3(this.hostElement,"yt-expander-more-tapped"),this.toggle(I,!0))};
_.u.handleLessTap=function(I){_.k3(this.hostElement,"yt-expander-less-tapped");this.toggle(I,!1)};
_.u.initChildrenObserver=function(){var I=this;this.observer=new MutationObserver(function(){I.childrenChanged()});
this.observer.observe(this.content,{subtree:!0,childList:!0,attributes:!0,characterData:!0});this.childrenChanged()};
_.u.childrenChanged=function(){var I=this;this.alwaysToggleable?this.canToggle=this.alwaysToggleable:this.canToggleJobId||(this.canToggleJobId=window.requestAnimationFrame(function(){H9(function(){I.canToggleJobId=0;I.calculateCanCollapse()})}))};
_.u.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};
_.u.detachObserver=function(){this.observer&&this.observer.disconnect()};
_.u.collapsedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("collapsed-changed",this.collapsed))};
_.u.isToggledChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("is-toggled-changed",this.isToggled))};
_.u.canToggleChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("can-toggle-changed",this.canToggle))};
_.H1.Object.defineProperties(Xs.prototype,{isResetting:{configurable:!0,enumerable:!0,get:function(){return this.canToggleJobId!==0}}});
Xs.prototype.canToggleChangedForBinding=Xs.prototype.canToggleChangedForBinding;Xs.prototype.isToggledChangedForBinding=Xs.prototype.isToggledChangedForBinding;Xs.prototype.collapsedChangedForBinding=Xs.prototype.collapsedChangedForBinding;Xs.prototype.observeCollapsedHeightAndMaxLines=Xs.prototype.observeCollapsedHeightAndMaxLines;Xs.prototype.onIronResize=Xs.prototype.onIronResize;Xs.prototype.reversedChanged=Xs.prototype.reversedChanged;Xs.prototype.toggledChanged=Xs.prototype.toggledChanged;
Xs.prototype.alwaysToggleableChanged=Xs.prototype.alwaysToggleableChanged;_.E([_.g(_.Ri),_.h("design:type",Object)],Xs.prototype,"ironResizableBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Xs.prototype,"alignAuto",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Xs.prototype,"collapsed",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"isToggled",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"alwaysCollapsed",void 0);
_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"canToggle",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"collapsedHeight",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"disableToggle",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"alwaysToggleable",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"reversed",void 0);_.E([_.d(),_.h("design:type",Number)],Xs.prototype,"maxNumberOfLines",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeShouldUseNumberOfLines(maxNumberOfLines)"}),_.h("design:type",Object)],Xs.prototype,"shouldUseNumberOfLines",void 0);_.E([_.d(),_.h("design:type",Object)],Xs.prototype,"recomputeOnResize",void 0);_.E([_.z$("#content"),_.h("design:type",HTMLDivElement)],Xs.prototype,"content",void 0);_.E([_.rW("alwaysToggleable"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"alwaysToggleableChanged",null);
_.E([_.rW("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"toggledChanged",null);_.E([_.v("canToggleJobId"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xs.prototype,"isResetting",null);_.E([_.FI("reversed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"reversedChanged",null);
_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"onIronResize",null);_.E([_.FI("maxNumberOfLines","collapsedHeight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"observeCollapsedHeightAndMaxLines",null);_.E([_.FI("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"collapsedChangedForBinding",null);
_.E([_.FI("isToggled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"isToggledChangedForBinding",null);_.E([_.FI("canToggle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xs.prototype,"canToggleChangedForBinding",null);Xs=_.E([_.m({disableElementRegistration:!0,is:"ytd-expander"})],Xs);
_.Z(Xs,"ytd-expander",function(){if(h_8!==void 0)return h_8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return h_8=I},{mode:1});var $T=function(){return _.q.apply(this,arguments)||this};
_.R($T,_.q);$T.prototype.computeIsCarousel=function(I){return!!I.isCarousel};
$T.prototype.observeLightsourcePalette=function(){var I,C=(I=this.data)==null?void 0:I.vibrantsourceColorPaletteData;C&&_.N3(this.hostElement,C)};
$T.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
$T.prototype.observeLightsourcePalette=$T.prototype.observeLightsourcePalette;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$T.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$T.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$T.prototype,"data",void 0);_.E([_.d({computed:"computeIsCarousel(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],$T.prototype,"isCarousel",void 0);
_.E([_.FI("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$T.prototype,"observeLightsourcePalette",null);$T=_.E([_.m({disableElementRegistration:!0,is:"ytd-media-upsell-renderer"})],$T);
_.Z($T,"ytd-media-upsell-renderer",function(){if(ELq!==void 0)return ELq;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-media-upsell-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="details-wrapper style-scope ytd-media-upsell-renderer">\n  <div class="image-wrapper style-scope ytd-media-upsell-renderer">\n    <yt-img-shadow class="media-thumbnail style-scope ytd-media-upsell-renderer" thumbnail="[[data.thumbnail]]">\n    </yt-img-shadow>\n    <div class="tv-show-season-wrapper style-scope ytd-media-upsell-renderer" hidden="[[!data.tvShowSeasons]]">\n      <yt-icon id="tv-show-icon" icon="tv" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n      <p id="tv-show-season" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.tvShowSeasons)]]\n      </p>\n    </div>\n  </div>\n  <div class="details style-scope ytd-media-upsell-renderer">\n    <div class="metadata-wrapper style-scope ytd-media-upsell-renderer">\n      <span id="media-title" hidden="[[!data.mediaTitle]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.mediaTitle)]]\n      </span>\n      <span id="metadata" hidden="[[!data.metadata]]" class="style-scope ytd-media-upsell-renderer">\n        [[getSimpleString(data.metadata)]]\n      </span>\n    </div>\n    <div id="action-button" class="style-scope ytd-media-upsell-renderer"></div>\n  </div>\n</div>\n<ytd-expander id="expander" hidden="[[data.isCarousel]]" max-number-of-lines="4" class="style-scope ytd-media-upsell-renderer">\n  <yt-formatted-string id="synopsis" slot="content" disable-upgrade$="[[!data.synopsis]]" hidden="[[data.isCarousel]]" text="[[data.synopsis]]" class="style-scope ytd-media-upsell-renderer">\n  </yt-formatted-string>\n  <div class="more-button style-scope ytd-media-upsell-renderer" slot="more-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.moreButtonText)]]</span>\n    <yt-icon id="drop-down-icon" icon="arrow_drop_down" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n  <div class="less-button style-scope ytd-media-upsell-renderer" slot="less-button">\n    <span class="expander-text style-scope ytd-media-upsell-renderer">[[getSimpleString(data.lessButtonText)]]</span>\n    <yt-icon id="drop-up-icon" icon="arrow_drop_up" class="style-scope ytd-media-upsell-renderer"></yt-icon>\n  </div>\n</ytd-expander>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ELq=I},{mode:2});var UWq;var Ru=function(){var I=_.q.apply(this,arguments)||this;I.JSC$12698_playerEvents=new Map;I.listeningToPlayer=!1;I.startX=0;I.active=!1;I.shouldShowButtons=_.V("web_buttons_hidden_killswitch");I.isHighlighted=!1;I.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");I.modern=_.V("kevlar_modern_sd");I.enableProblemWalkthrough=_.V("problem_walkthrough_sd");return I};
_.R(Ru,_.q);_.u=Ru.prototype;
_.u.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}}}}}};
_.u.created=function(){this.JSC$12698_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.u.attached=function(){this.repeatButton.addEventListener("yt-toggle-button",_.sb(this,this.onRepeatButtonToggle));_.V("synced_panel_scrolling_controller")&&this.hostElement.addEventListener("yt-synced-panel-active-item-update",_.sb(this,this.onActiveUpdate))};
_.u.detached=function(){this.removePlayerListeners();this.repeatButton.removeEventListener("yt-toggle-button",_.sb(this,this.onRepeatButtonToggle));_.V("synced_panel_scrolling_controller")&&this.hostElement.removeEventListener("yt-synced-panel-active-item-update",_.sb(this,this.onActiveUpdate))};
_.u.onDataChanged=function(){this.removePlayerListeners()};
_.u.onColorPaletteChange=function(){var I={},C;if(_.fp()==="USER_INTERFACE_THEME_DARK"&&((C=this.data)==null?0:C.darkColorPalette)){var y=this.data.darkColorPalette;I["--ytd-macro-markers-list-item-background-color"]=_.Xl(this.get("section2Color",y))}else{var k;_.fp()==="USER_INTERFACE_THEME_LIGHT"&&((k=this.data)==null?0:k.lightColorPalette)&&(y=this.data.lightColorPalette,I["--ytd-macro-markers-list-item-background-color"]=_.Xl(this.get("section3Color",y)))}y?(I["--ytd-macro-markers-list-item-title-color"]=
_.Xl(this.get("primaryTitleColor",y)),I["--ytd-macro-markers-list-item-secondary-color"]=_.Xl(this.get("secondaryTitleColor",y)),I["--ytd-macro-markers-list-item-timestamp-background-color"]=_.Xl(this.get("section1Color",y)),this.customButtonProperties={customColors:{color:_.Xl(this.get("primaryTitleColor",y))}},this.useColorSampling=!0):(I["--ytd-macro-markers-list-item-background-color"]="initial",I["--ytd-macro-markers-list-item-title-color"]="initial",I["--ytd-macro-markers-list-item-secondary-color"]=
"initial",I["--ytd-macro-markers-list-item-timestamp-background-color"]="initial",this.customButtonProperties=void 0,this.useColorSampling=!1);_.CK(this.hostElement,I)};
_.u.onEndpointMouseDown=function(I){this.startX=I.clientX};
_.u.onEndpointClick=function(I){var C=this,y,k,F;return _.e(function(z){if(z.nextAddress==1){if(C.startX!==I.clientX)return I.preventDefault(),z.return();C.data&&C.ytRendererBehavior.logExplicitClick(C.data);if(!C.seekWithAnimationOnClick)return z.jumpTo(0);if(I.button!==0||I.shiftKey||I.altKey||I.metaKey||I.ctrlKey||_.q3(_.qc(I),C.hostElement,["BUTTON".toString()]))return z.return();I.stopPropagation();I.preventDefault();return C.data?_.n(z,_.UZ().getPlayerPromise(),3):z.return()}y=z.yieldResult;
F=(k=_.l(C.data.onTap,_.H$))==null?void 0:k.startTimeSeconds;F!==void 0&&y.seekToTimeWithAnimation(F*1E3,_.hS(C.data.title));_.oI(z)})};
_.u.computeLayout=function(I){return I};
_.u.computeIsHighlighted=function(I){return!!I};
_.u.computeCarouselType=function(I){return I};
_.u.hideModernCarousel=function(I){return this.modern&&this.hideThumbnail(I)};
_.u.hideThumbnail=function(I){return this.enableProblemWalkthrough&&I!==null&&I==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"};
_.u.onRepeatButtonToggle=function(I){var C=this;I.detail.toggled&&_.UZ().getPlayerPromise().then(function(y){C.ytPlayerListenerBehavior.listenToPlayerEvents(y,C.JSC$12698_playerEvents);C.listeningToPlayer=!0})};
_.u.onLoopRangeChange=function(I){var C=_.f(this.hostElement).querySelector("#repeat-button").querySelector("ytd-toggle-button-renderer");if(C){var y=C.polymerController.get("defaultServiceEndpoint.repeatChapterCommand",C.polymerController.data);if(y){var k=Number(y.endTimeMs);if(Number(y.startTimeMs)!==(I==null?void 0:I.startTimeMs)||k!==(I==null?void 0:I.endTimeMs))C.polymerController.toggle(!1),this.removePlayerListeners()}}};
_.u.removePlayerListeners=function(){var I=this;this.listeningToPlayer&&_.UZ().getPlayerPromise().then(function(C){I.ytPlayerListenerBehavior.unlistenFromPlayerEvents(C,I.JSC$12698_playerEvents);I.listeningToPlayer=!1})};
_.u.onActiveUpdate=function(I){this.active=I.detail.active};
Ru.prototype.onColorPaletteChange=Ru.prototype.onColorPaletteChange;Ru.prototype.onDataChanged=Ru.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ru.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ru.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],Ru.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Ru.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Ru.prototype,"useCustomColors",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ru.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ru.prototype,"shouldShowButtons",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeLayout(data.layout)"}),_.h("design:type",String)],Ru.prototype,"layout",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsHighlighted(data.isHighlighted)"}),_.h("design:type",Object)],Ru.prototype,"isHighlighted",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ru.prototype,"useHighlightStyling",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ru.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ru.prototype,"enableProblemWalkthrough",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeCarouselType(data.carouselType)"}),_.h("design:type",String)],Ru.prototype,"carouselType",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ru.prototype,"useColorSampling",void 0);_.E([_.d(),_.h("design:type",Boolean)],Ru.prototype,"seekWithAnimationOnClick",void 0);_.E([_.d(),_.h("design:type",Object)],Ru.prototype,"customButtonProperties",void 0);
_.E([_.z$("#repeat-button"),_.h("design:type",HTMLElement)],Ru.prototype,"repeatButton",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ru.prototype,"onDataChanged",null);_.E([_.FI("data.lightColorPalette","data.darkColorPalette"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ru.prototype,"onColorPaletteChange",null);
Ru=_.E([_.m({is:"ytd-macro-markers-list-item-renderer",disableElementRegistration:!0})],Ru);
_.Z(Ru,"ytd-macro-markers-list-item-renderer",function(){if(UWq!==void 0)return UWq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UWq=I},{mode:1});var H45;var txd;var bn=function(){var I=_.q.apply(this,arguments)||this;I.modernTypography=_.V("web_modern_typography");return I};
_.R(bn,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bn.prototype,"ytRendererBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],bn.prototype,"modernTypography",void 0);_.E([_.d(),_.h("design:type",Object)],bn.prototype,"data",void 0);bn=_.E([_.m({disableElementRegistration:!0,is:"ytd-title-and-button-list-header-renderer"})],bn);
_.Z(bn,"ytd-title-and-button-list-header-renderer",function(){if(txd!==void 0)return txd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return txd=I},{mode:1});var Jrw;var O4w=new _.Jj("BUTTON_RENDERER_WIZ_TOKEN"),acw=new _.Jj("BUTTON_RENDERER_TOKEN");_.Gf=_.BO(function(I){var C=_.N().resolve(_.aU(O4w));if(C)return _.P(C,Object.assign({},I));var y=_.N().resolve(acw);return y?_.P(uUz,null,function(){return _.P(Us,null,function(){var k,F,z,c,r,w,L,D,p,Q,X,b;return void y(I.data(),{onButtonClickCallback:I.onButtonClickCallback,shouldShowIcons:(k=I.shouldShowIcons)==null?void 0:k.call(I),icon:(F=I.icon)==null?void 0:F.call(I),processAllEndpoints:(z=I.processAllEndpoints)==null?void 0:z.call(I),preventDefault:(c=I.preventDefault)==null?void 0:c.call(I),
stopPropagation:(r=I.stopPropagation)==null?void 0:r.call(I),disableButtonRendererClickHandling:(w=I.disableButtonRendererClickHandling)==null?void 0:w.call(I),className:(L=I.className)==null?void 0:L.call(I),buttonOverrides:(D=I.buttonOverrides)==null?void 0:D.call(I),forceModernIconButton:(p=I.forceModernIconButton)==null?void 0:p.call(I),isSubscribe:(Q=I.isSubscribe)==null?void 0:Q.call(I),alignByText:(X=I.alignByText)==null?void 0:X.call(I),forceDisabled:(b=I.forceDisabled)==null?void 0:b.call(I)})})}):
_.P(_.aF,null)},"W");
_.Gf.idomCompat=!0;var MxP=_.BO(function(I){var C=I.notification,y=_.mh(I.useSquareAspectRatio,!1);return _.P(_.Dx,{cond:function(){var k,F;return(k=C().responseText)==null?void 0:(F=k.runs)==null?void 0:F.length},
then:function(){var k={};return _.P("div",{class:_.sZ("yt-mini-game-card-view-model__dismissed-card",(k["yt-mini-game-card-view-model__dismissed-portrait-card"]=function(){return!y()},k["yt-mini-game-card-view-model--dismissed-square-card"]=y,k))},_.P("div",{class:"yt-mini-game-card-view-model__dismissed-mini-app-content"},_.P(_.Dx,{cond:function(){return C().responseText.runs[0].text},
then:function(F){return _.P("span",{class:"yt-mini-game-card-view-model__dismissed-text",title:F},F)}}),_.P(_.lY,{data:function(){return C().buttons}},{buttonRenderer:_.Gf,
buttonViewModel:_.fM})))}})},"X");var kYd=_.BO(function(I){I=_.ZB(I,{data:{},className:"",useFullWidth:!1,isDesktopWeb:!1,addSearchResultTopMargin:!1});var C=I.data,y=I.useFullWidth,k=I.isDesktopWeb,F=I.addSearchResultTopMargin,z=function(){return C().layout},c=function(){return C().title},r=function(){return C().genre},w=function(){return C().channelName},L=function(){return C().image},D=function(){return C().colorPalette},p=function(){return C().actionButton},Q=function(){return C().overflowButton},X=function(){return C().avatar},
b=function(){var B={};
B=_.sZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--singleton-card",(B["yt-mini-game-card-view-model--singleton-card-desktop"]=function(){return k()},B));
return _.P("div",{class:B},_.P(IVw,{imageData:L,colorPalette:D}),_.P(C5S,{onTap:function(){return C().onTap},
imageData:L,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:k}),_.P(_.Dx,{cond:function(){return!k()},
then:function(){return _.P(_.aF,null,_.P(sT0,{layout:z,colorPalette:D,isDesktopWeb:k,overflowButton:Q,avatar:X,onTap:function(){return C().onTap},
genre:r,title:c,channelName:w,entityRedesignExperiments:function(){return C().entityRedesignExperiments}}),_.P(fz,{actionButton:p}))}}))},S=function(){var B={};
B=_.sZ((B["yt-mini-game-card-view-model--search-result-desktop"]=function(){return k()},B["yt-mini-game-card-view-model--search-result-mweb"]=function(){return!k()},B["yt-mini-game-card-view-model--search-result-top-margin"]=function(){return F()},B));
return _.P("div",{class:B},b(),_.P(o0c,{description:function(){return C().description},
isDesktopWeb:k,title:c,genre:r,onTap:function(){return C().onTap},
actionButton:p,overflowButton:Q,avatar:X,channelName:w}))},A=function(){var B=function(){var U;
return(U=C().entityRedesignExperiments)==null?void 0:U.changePlayablesLayoutWithCta},t={};
t=_.sZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--portrait-card",(t["yt-mini-game-card-view-model--change-layout-with-cta"]=function(){return B()},t["yt-mini-game-card-view-model--portrait-card-desktop"]=function(){return k()},t["yt-mini-game-card-view-model--portrait-card-desktop-skinny-width"]=function(){return k()&&C().width===135},t["yt-mini-game-card-view-model--show-unplayable-on-hover"]=function(){return k()},t["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=
function(){return!B()&&k()&&C().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},t["yt-mini-game-card-view-model--big-metadata-font"]=function(){return C().style==="MINI_GAME_CARD_STYLE_BIG_METADATA_FONT"},t["yt-mini-game-card-view-model--use-full-width"]=function(){return y()},t["yt-mini-game-card-view-model--extra-bottom-padding"]=function(){return!p()},t));
return _.P("div",{class:t},_.P(_.Dx,{cond:function(){return B()},
then:function(){return _.P(_.aF,null,_.P(yFm,{entityRedesignExperiments:function(){return C().entityRedesignExperiments},
colorPalette:D,isDesktopWeb:k,onTap:function(){return C().onTap},
accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
actionButton:p,imageData:L}),_.P(sT0,{layout:z,colorPalette:D,isDesktopWeb:k,overflowButton:Q,avatar:X,onTap:function(){return C().onTap},
genre:r,title:c,channelName:w,entityRedesignExperiments:function(){return C().entityRedesignExperiments}}),_.P(_.Dx,{cond:function(){return!!B()===!1&&p()},
then:function(){return _.P(fz,{actionButton:p})}}))},
else:function(){return _.P(_.aF,null,_.P(IVw,{imageData:L,colorPalette:D}),_.P(C5S,{onTap:function(){return C().onTap},
imageData:L,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:k}),_.P(sT0,{layout:z,colorPalette:D,isDesktopWeb:k,overflowButton:Q,avatar:X,onTap:function(){return C().onTap},
genre:r,title:c,channelName:w,entityRedesignExperiments:function(){return C().entityRedesignExperiments}}),_.P(fz,{actionButton:p}))}}))},x=function(){var B={};
B=_.sZ("yt-mini-game-card-view-model","yt-mini-game-card-view-model--square-card",(B["yt-mini-game-card-view-model--square-card-desktop"]=function(){return k()},B["yt-mini-game-card-view-model--use-full-width"]=function(){return y()},B));
return _.P("div",{class:B},_.P(C5S,{onTap:function(){return C().onTap},
imageData:L,accessibilityText:function(){return C().accessibilityText},
overlayBadgeText:function(){return C().overlayBadgeText},
iconName:function(){return C().iconName},
unplayableInlinePlaybackIconName:function(){return C().unplayableInlinePlaybackIconName},
isDesktopWeb:k}),_.P(sT0,{layout:z,colorPalette:D,isDesktopWeb:k,overflowButton:Q,avatar:X,onTap:function(){return C().onTap},
genre:r,title:c,channelName:w,entityRedesignExperiments:function(){return C().entityRedesignExperiments}}))};
return _.P("mini-game-card-view-model",{class:I.className},_.P(_.Vr,null,_.P(_.Qr,{when:function(){return z()==="MINI_APP_LAYOUT_PORTRAIT"}},function(){return A()}),_.P(_.Qr,{when:function(){return z()==="MINI_APP_LAYOUT_SQUARE"}},function(){return x()}),_.P(_.Qr,{when:function(){return z()==="MINI_APP_LAYOUT_SINGLETON"}},function(){return S()})))},"Y");
kYd.idomCompat=!0;var fz=_.BO(function(I){var C=_.mh(I.wrapperClass,"yt-mini-game-card-view-model__card-action-button");return _.P(_.lY,{data:I.actionButton},{buttonViewModel:function(y){return _.P("div",{class:C},_.P(_.fM,{data:y.data}))}})},"Z"),C5S=_.BO(function(I){var C=I.onTap;
var y=I.imageData;var k=I.accessibilityText;var F=I.overlayBadgeText;var z=I.iconName;var c=I.unplayableInlinePlaybackIconName;I=I.isDesktopWeb;return _.P(_.ik,{className:"yt-mini-game-card-view-model__thumbnail-wrapper",command:C},_.P(_.x$,{data:y,className:"yt-mini-game-card-view-model__thumbnail-image",alt:function(){return(k==null?void 0:k())||""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"}),_.P(F6q,{overlayBadgeText:F,iconName:z,unplayableInlinePlaybackIconName:c,isDesktopWeb:I}))},"$"),F6q=_.BO(function(I){var C=I.overlayBadgeText;
var y=I.iconName;var k=I.unplayableInlinePlaybackIconName;var F=I.isDesktopWeb;return _.P("div",{class:"yt-mini-game-card-view-model__badge-container"},_.P(_.Dx,{cond:y,then:function(z){return _.P("div",{class:"yt-mini-game-card-view-model__badge"},_.P("div",{class:"yt-mini-game-card-view-model__badge-high-score"},_.P(_.ez,{icon:z,className:"yt-mini-game-card-view-model__icon"}),_.P("span",{class:"yt-mini-game-card-view-model__badge-text","aria-hidden":!0},C)))}}),_.P(_.Dx,{cond:function(){return!y()&&
C()},
then:function(){return _.P("span",{class:"yt-mini-game-card-view-model__badge","aria-hidden":!0},C)}}),_.P(_.Dx,{cond:function(){return k()&&F()},
then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__unplayable-badge"},_.P(_.ez,{icon:k,className:"yt-mini-game-card-view-model__unplayable-icon"}))}}))},"aa"),IVw=_.BO(function(I){var C=I.colorPalette;
var y=I.imageData;var k=function(){return C().vibrantColorPalette?C().vibrantColorPalette.section2Color:C().sectionTwoColor};
return _.P(_.aF,null,_.P("div",{class:"yt-mini-game-card-view-model__background-base",style:_.cP({"background-color":function(){return $k(k(),"1")}})}),_.P("div",{class:"yt-mini-game-card-view-model__background-blur",
style:_.cP({"background-image":function(){return"url("+y().sources[0].url+")"}})}),_.P("div",{class:"yt-mini-game-card-view-model__gradient-scrim",
style:_.cP({background:function(){return"linear-gradient(180deg,\n    "+$k(k(),".8")+" 0%,\n    "+$k(k(),".4")+" 25%,\n    "+$k(C().vibrantColorPalette?C().vibrantColorPalette.section4Color:C().sectionFourColor,".8")+" 100%)"}})}))},"ba"),sT0=_.BO(function(I){var C=I.layout;
var y=I.colorPalette;var k=I.overflowButton;var F=I.avatar;var z=I.onTap;var c=I.title;var r=I.channelName;var w=I.entityRedesignExperiments;var L=I.genre;var D=function(){var Q;return C()!=="MINI_APP_LAYOUT_SQUARE"&&((Q=y())==null?0:Q.textPrimaryColor)?"color: "+$k(y().textPrimaryColor,".7"):""},p=function(){var Q;
return w==null?void 0:(Q=w())==null?void 0:Q.changePlayablesLayoutWithCta};
return _.P("div",{class:"yt-mini-game-card-view-model__card-metadata-wrapper"},_.P(_.Dx,{cond:F,then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__avatar"},_.P(_.lY,{data:F},{avatarViewModel:_.rF}))}}),_.P(_.ik,{command:z,
className:"yt-mini-game-card-view-model__metadata-details"},_.P("h3",{class:"yt-mini-game-card-view-model__title",title:c},c),_.P(_.Dx,{cond:F,then:function(){return _.P("div",{class:"yt-mini-game-card-view-model__channel-metadata-line"},_.P("span",{class:"yt-mini-game-card-view-model__genre",title:r,style:D},r),_.P("span",{class:"yt-mini-game-card-view-model__genre-with-separator",style:D},L))},
else:function(){return _.P(_.Dx,{cond:p,then:function(){return _.P("span",{class:"yt-mini-game-card-view-model__genre",title:L},L)},
else:function(){return _.P("span",{class:"yt-mini-game-card-view-model__genre",title:L,style:D},L)}})}})),_.P("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.P(_.lY,{data:k},{buttonViewModel:function(Q){var X=Q.data;
return _.P(_.fM,{data:function(){return Object.assign({},X(),{customFontColor:p()?void 0:X().customFontColor})}})}})))},"ca"),yFm=_.BO(function(I){var C=I.entityRedesignExperiments;
var y=I.colorPalette;var k=I.isDesktopWeb;var F=I.onTap;var z=I.accessibilityText;var c=I.overlayBadgeText;var r=I.iconName;var w=I.unplayableInlinePlaybackIconName;var L=I.actionButton;I=I.imageData;var D=function(){var p;return C==null?void 0:(p=C())==null?void 0:p.changePlayablesLayoutWithCta};
return _.P("div",{class:"yt-mini-game-card-view-model__cinematic-background-wrapper"},_.P(IVw,{imageData:I,colorPalette:y}),_.P(C5S,{onTap:F,imageData:I,accessibilityText:z,overlayBadgeText:c,iconName:r,unplayableInlinePlaybackIconName:w,isDesktopWeb:k}),_.P(_.Dx,{cond:function(){return(D==null?void 0:D())&&(L==null?void 0:L())},
then:function(){return _.P(fz,{actionButton:L})}}))},"da"),o0c=_.BO(function(I){var C=I.description;
var y=I.isDesktopWeb;var k=I.title;var F=I.genre;var z=I.onTap;var c=I.actionButton;var r=I.overflowButton;var w=I.avatar;I=I.channelName;var L={};L=_.sZ("yt-mini-game-card-view-model--search-result-metadata-wrapper",(L["yt-mini-game-card-view-model--show-overflow-menu-on-hover"]=y,L["yt-mini-game-card-view-model--show-unplayable-on-hover"]=y,L["yt-mini-game-card-view-model--search-result-metadata-wrapper-mweb"]=function(){return!y()},L));
var D={};D=_.sZ("yt-mini-game-card-view-model__search-result-info-row",(D["yt-mini-game-card-view-model__search-result-info-row-mweb"]=function(){return!y()},D));
return _.P("div",{class:L},_.P("div",{class:D},_.P(_.ik,{command:z,className:"yt-mini-game-card-view-model__metadata-details"},_.P("h3",{class:"yt-mini-game-card-view-model__title",title:k},k),_.P("span",{class:"yt-mini-game-card-view-model__genre",title:F},F)),_.P(fz,{actionButton:c,wrapperClass:"yt-mini-game-card-view-model__search-result-action-button"}),_.P("div",{class:"yt-mini-game-card-view-model__overflow-button"},_.P(_.lY,{data:r},{buttonViewModel:_.fM}))),_.P("div",{class:"yt-mini-game-card-view-model__search-result-channel-row"},
_.P("div",{class:"yt-mini-game-card-view-model--search-result-channel-name"},_.P("div",{class:"yt-mini-game-card-view-model__avatar"},_.P(_.lY,{data:w},{avatarViewModel:function(p){var Q=p.data;return _.P(_.rF,{data:function(){return Object.assign({},Q(),{avatarImageSize:y()?"AVATAR_SIZE_XS":"AVATAR_SIZE_M"})}})}})),_.P(_.ik,{command:z,
className:"yt-mini-game-card-view-model__description"},_.P("p",{class:"yt-mini-game-card-view-model__search-result-channel-text"},I)),_.P(_.ik,{command:z,className:"yt-mini-game-card-view-model__metadata-row-extra-endpoint",tabIndex:-1},_.P("div",null)))),_.P(_.Dx,{cond:y,then:function(){return _.P(_.ik,{command:z,className:"yt-mini-game-card-view-model__description"},C)}}))},"ea");var uY8={isAdsVideo:!0},zPe={showPlayerControls:!1,forceMutedVolume:!0,roundedCornersSize:3},Twq={showPlayerControls:!1,videoPreviewDurationMs:15E3},cBz={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:2,cropPlayerToFillThumbnailHorizontally:!_.V("web_shorts_imp_fullwidth_killswitch")},cFm={showPlayerControls:!1,videoPreviewDurationMs:5E3,forceCaptionsOff:!0,forceMutedVolume:!0,roundedCornersSize:1,cropPlayerToFillThumbnailHorizontally:!0};var S4=function(){var I=_.q.apply(this,arguments)||this;I.isSearch=!1;I.isRichGrid=!1;return I};
_.R(S4,_.q);_.u=S4.prototype;_.u.dismissibleItemReset=function(){this.isDismissed&&(this.isDismissed=!1);this.dismissedRenderer&&(this.dismissedRenderer=void 0)};
_.u.dismissibleItemOnYtServiceRequestSent=function(I,C){C.actions&&this.dismissibleItemProcessActions(I,C.actions)};
_.u.dismissibleItemOnRequestSent=function(){this.dismissibleItemReset()};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.dataChanged=function(){this.dismissibleItemReset();this.updateInlinePreviewHoverListeners()};
_.u.dismissibleItemProcessActions=function(I,C){for(var y=0;y<C.length;y++){var k=C[y];_.l(k,_.DN)&&(this.dismissibleItemHandleReplaceEnclosingAction(_.l(k,_.DN)),I.stopPropagation())}};
_.u.dismissibleItemHandleReplaceEnclosingAction=function(I){this.dismissedRenderer=I.item;this.isDismissed=!0};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.thumbnailWrapper&&(this.JSC$12730_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.miniGameCardViewModel,thumbnailElement:this.thumbnailWrapper,videoPreviewOpts:cFm}))};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$12730_inlinePreviewHoverListener)==null||oc(I)};
_.u.experimentalPropertiesChanged=function(){this.ytIdomTemplatingBehavior.debounceRender()};
_.u.renderIdom=function(){if(this.data)if(this.dismissedRenderer&&this.dismissedRenderer.notificationMultiActionRenderer){var I=this.data.layout==="MINI_APP_LAYOUT_SQUARE";W9(MxP)({notification:this.dismissedRenderer.notificationMultiActionRenderer,useSquareAspectRatio:I===void 0?!1:I})}else W9(kYd)({data:this.data,addSearchResultTopMargin:this.isSearch,useFullWidth:this.isRichGrid,isDesktopWeb:!0}),this.updateInlinePreviewHoverListeners()};
S4.prototype.experimentalPropertiesChanged=S4.prototype.experimentalPropertiesChanged;S4.prototype.dataChanged=S4.prototype.dataChanged;S4.prototype.dismissibleItemOnRequestSent=S4.prototype.dismissibleItemOnRequestSent;S4.prototype.dismissibleItemOnYtServiceRequestSent=S4.prototype.dismissibleItemOnYtServiceRequestSent;_.E([_.g(KTq),_.h("design:type",Object)],S4.prototype,"ytIdomTemplatingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],S4.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],S4.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],S4.prototype,"isDismissed",void 0);_.E([_.d(),_.h("design:type",Object)],S4.prototype,"dismissedRenderer",void 0);_.E([_.z$(".yt-mini-game-card-view-model__thumbnail-wrapper"),_.h("design:type",HTMLElement)],S4.prototype,"thumbnailWrapper",void 0);
_.E([_.z$("mini-game-card-view-model"),_.h("design:type",HTMLElement)],S4.prototype,"miniGameCardViewModel",void 0);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],S4.prototype,"dismissibleItemOnYtServiceRequestSent",null);_.E([_.km("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],S4.prototype,"dismissibleItemOnRequestSent",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S4.prototype,"dataChanged",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],S4.prototype,"isRichGrid",void 0);_.E([_.FI("data.*","dismissedRenderer.*","isSearch","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],S4.prototype,"experimentalPropertiesChanged",null);
S4=_.E([_.lT({disableElementRegistration:!0,is:"ytd-mini-game-card-view-model",isInjectionRoot:!0})],S4);
_.Z(S4,"ytd-mini-game-card-view-model",function(){if(Jrw!==void 0)return Jrw;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Jrw=I},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var ePq;var rF5;var Kz=function(){return _.tn.apply(this,arguments)||this};
_.R(Kz,_.tn);Kz.prototype.trigger=function(){this.fire("yt-load-reload-continuation",this.getContinuationUrl.bind(this))};
Kz.prototype.getContinuationUrl=function(I){var C={ctoken:this.data.continuation,continuation:this.data.continuation};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.hq(I,C)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Kz.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Kz.prototype,"data",void 0);Kz=_.E([_.lT({is:"yt-reload-continuation",noInjection:!0})],Kz);var it8;var w8w;var A2=function(){var I=_.q.apply(this,arguments)||this;I.notificationData={};return I};
_.R(A2,_.q);_.u=A2.prototype;_.u.isMenuExpanded=function(I){return I&&I.length<=1?"undefined":"false"};
_.u.dataChanged_=function(){this.selected=void 0;var I=this.computeSelectedIndex_(this.data);I>=0&&(this.selected=I);I=this.data&&this.data.length>1;_.a_(this.hostElement,"has-items",I);_.f(this.hostElement).querySelector("#label").tabIndex=I?0:-1};
_.u.onDropdownOpen=function(){var I=_.Si();if(this.parentTrackingParams&&this.data){var C=_.nv(this.parentTrackingParams);this.data.forEach(function(y){I&&C&&y.trackingParams&&(y=_.nv(y.trackingParams),_.q1(I,C,y),_.Z0(I,[y]))})}else this.parentTrackingParams||_.SN(new _.ph("No parent tracking params passed in for yt-dropdown-menu."))};
_.u.hasNotification=function(I){var C;if(I.targetId&&((C=this.notificationData)==null?0:C.targetId)){var y;return I.targetId===((y=this.notificationData)==null?void 0:y.targetId)}};
_.u.computeSelectedIndex_=function(I){if(I)for(var C=0,y=I.length;C<y;C++)if(I[C].selected)return C;return-1};
_.u.computeLabel_=function(I){return this.data&&I!=void 0?this.data[I].title:""};
_.u.computeShowIcon_=function(I,C){return!C&&!!I};
_.u.computeVerticalOffset_=function(I){return I?36:0};
_.u.computeEndpoint_=function(I){return I.endpoint||I.navigationEndpoint};
_.u.onLabelClick_=function(I){this.data&&this.data.length<=1?I.stopPropagation():this.menuExpanded="true"};
_.u.onIronActivate_=function(I){I=I.detail.item;var C=_.f(this.hostElement).querySelector("#repeat").itemForElement(I);if(C&&C.trackingParams){var y=_.Si(),k=_.nv(C.trackingParams);y&&_.EN(y,k)}if(C&&C.serviceEndpoint)_.V("web_use_resolve_command_for_service_endpoint_in_dropdown_killswitch")?this.ytComponentBehavior.resolveCommand(C.serviceEndpoint):_.Tg(this.hostElement,[C.serviceEndpoint]),_.k3(this.hostElement,"yt-playlist-reloading");else a:{if((C=I.querySelector("yt-supported-renderers"))&&(C=
C.rendererElement)&&C.is=="yt-reload-continuation"){C.trigger();break a}(I=I.querySelector("yt-reload-continuation"))&&I.trigger()}};
_.u.onTap_=function(I){I.preventDefault()};
_.u.onItemTap_=function(I){this.ytEndpointBehavior.onEndpointTap_(I)};
_.u.onLinkFocus_=function(I){try{var C=I.target}catch(k){}if(C){var y=C.querySelector("tp-yt-paper-item");y&&_.KK(this,"focus",function(){y.focus()})}};
_.u.onMenuClose_=function(){this.menuExpanded="false"};
_.u.isLabelIconActive_=function(I){return I==="true"};
_.u.computeHasSubtitle_=function(I){return!!I};
_.u.computeHrefForItem_=function(I){return this.ytComponentBehavior.computeHref_(this.computeEndpoint_(I))};
_.u.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
A2.prototype.onMenuClose_=A2.prototype.onMenuClose_;A2.prototype.onTap_=A2.prototype.onTap_;A2.prototype.onIronActivate_=A2.prototype.onIronActivate_;A2.prototype.onDropdownOpen=A2.prototype.onDropdownOpen;A2.prototype.dataChanged_=A2.prototype.dataChanged_;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],A2.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],A2.prototype,"ytEndpointBehavior",void 0);
_.E([_.d(),_.h("design:type",Array)],A2.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],A2.prototype,"parentTrackingParams",void 0);_.E([_.d(),_.h("design:type",Object)],A2.prototype,"selected",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],A2.prototype,"useLabel",void 0);_.E([_.d(),_.h("design:type",String)],A2.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],A2.prototype,"iconLabel",void 0);
_.E([_.d(),_.h("design:type",String)],A2.prototype,"ariaLabel",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],A2.prototype,"disabled",void 0);_.E([_.d({computed:"isMenuExpanded(data)"}),_.h("design:type",String)],A2.prototype,"menuExpanded",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],A2.prototype,"closeOnActivate",void 0);_.E([_.d({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.h("design:type",Boolean)],A2.prototype,"modernButtons",void 0);
_.E([_.d(),_.h("design:type",Object)],A2.prototype,"notificationData",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],A2.prototype,"dataChanged_",null);_.E([_.km("paper-dropdown-open"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],A2.prototype,"onDropdownOpen",null);
_.E([_.km("iron-activate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],A2.prototype,"onIronActivate_",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],A2.prototype,"onTap_",null);_.E([_.km("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],A2.prototype,"onMenuClose_",null);
A2=_.E([_.lT({is:"yt-dropdown-menu",disableElementRegistration:!0})],A2);
_.Z(A2,"yt-dropdown-menu",function(){if(w8w===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-dropdown-menu--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.yt_dropdown_menu.yt.dropdown.menu.css.js--\x3e<tp-yt-paper-menu-button close-on-activate="[[closeOnActivate]]" disabled="[[disabled]]" dynamic-align="" expand-sizing-target-for-scrollbars="" horizontal-align="[[horizontalAlign]]" vertical-offset="[[computeVerticalOffset_(icon)]]" class="style-scope yt-dropdown-menu">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope yt-dropdown-menu" slot="dropdown-trigger" aria-expanded$="[[menuExpanded]]" aria-label$="[[ariaLabel]]" on-tap="onLabelClick_">\n    <template is="dom-if" if="[[computeShowIcon_(icon, useLabel)]]" class="style-scope yt-dropdown-menu">\n      <yt-icon id="label-icon" active="[[isLabelIconActive_(menuExpanded)]]" icon="[[icon]]" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n      <div id="icon-label" class="style-scope yt-dropdown-menu">[[iconLabel]]</div>\n    </template>\n    <template is="dom-if" if="[[useLabel]]" class="style-scope yt-dropdown-menu">\n      <div id="label-text" style-target="label-text" class="style-scope yt-dropdown-menu">[[computeLabel_(selected)]]</div>\n      <yt-icon id="label-icon" icon="expand" class="style-scope yt-dropdown-menu">\n      </yt-icon>\n    </template>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="menu" class="dropdown-content style-scope yt-dropdown-menu" slot="dropdown-content" selected="[[selected]]" on-selected-changed="updateSelectedFromBinding">\n    <template id="repeat" is="dom-repeat" items="[[data]]" class="style-scope yt-dropdown-menu">\n      <a class="yt-simple-endpoint style-scope yt-dropdown-menu" href$="[[computeHrefForItem_(item)]]" data="[[computeEndpoint_(item)]]" on-focus="onLinkFocus_" on-tap="onItemTap_">\n        <tp-yt-paper-item class="style-scope yt-dropdown-menu">\n          <tp-yt-paper-item-body two-line$="[[computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n            <div id="item-with-badge" class="style-scope yt-dropdown-menu">\n              <div class="item style-scope yt-dropdown-menu">[[item.title]]\n                <span class="notification style-scope yt-dropdown-menu" hidden$="[[!hasNotification(item,notificationData)]]"></span>\n              </div>\n              <ytd-badge-supported-renderer hidden="[[!item.badge]]" top-standalone-badge="[[item.badge]]" class="style-scope yt-dropdown-menu">\n              </ytd-badge-supported-renderer>\n            </div>\n            <div secondary="" id="subtitle" hidden="[[!computeHasSubtitle_(item.subtitle)]]" class="style-scope yt-dropdown-menu">\n              [[item.subtitle]]\n            </div>\n          </tp-yt-paper-item-body>\n          <yt-reload-continuation data="[[item.continuation.reloadContinuationData]]" class="style-scope yt-dropdown-menu">\n          </yt-reload-continuation>\n        </tp-yt-paper-item>\n      </a>\n    </template>\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;it8===void 0&&(it8=document.createElement("template"));var k=it8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);w8w=I}I=w8w;return I},{mode:2});var gF=function(){var I=_.q.apply(this,arguments)||this;I.hasNotification=!1;return I};
_.R(gF,_.q);gF.prototype.computeId=function(I){return I};
gF.prototype.computeHorizontalAlign=function(I){return I?"right":"left"};
gF.prototype.computeAccessibilityLabel=function(I){var C,y;return((C=I.accessibility)==null?void 0:(y=C.accessibilityData)==null?void 0:y.label)||null};
gF.prototype.notificationDataChanged=function(){var I;this.hasNotification=!!this.notificationData&&!((I=this.data)==null?0:I.icon)};
gF.prototype.notificationDataChanged=gF.prototype.notificationDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gF.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Xk.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],gF.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gF.prototype,"data",void 0);_.E([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],gF.prototype,"id",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],gF.prototype,"isRightAligned",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gF.prototype,"disabled",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],gF.prototype,"closeOnActivate",void 0);_.E([_.d(),_.h("design:type",Object)],gF.prototype,"notificationData",void 0);_.E([_.d(),_.h("design:type",Object)],gF.prototype,"hasNotification",void 0);
_.E([_.FI("notificationData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gF.prototype,"notificationDataChanged",null);gF=_.E([_.lT({is:"yt-sort-filter-sub-menu-renderer",disableElementRegistration:!0})],gF);
_.Z(gF,"yt-sort-filter-sub-menu-renderer",function(){if(rF5===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-sort-filter-sub-menu-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_sort_filter_sub_menu_renderer.yt.sort.filter.sub.menu.renderer.css.js--\x3e<tp-yt-paper-tooltip class="style-scope yt-sort-filter-sub-menu-renderer">[[data.tooltip]]</tp-yt-paper-tooltip>\n<yt-dropdown-menu aria-label="[[computeAccessibilityLabel(data)]]" close-on-activate="[[closeOnActivate]]" data="[[data.subMenuItems]]" disabled="[[disabled]]" horizontal-align="[[computeHorizontalAlign(isRightAligned)]]" icon="[[data.icon.iconType]]" icon-label="[[data.title]]" notification-data="[[notificationData]]" parent-tracking-params="[[data.trackingParams]]" use-label="[[!data.icon.iconType]]" class="style-scope yt-sort-filter-sub-menu-renderer">\n</yt-dropdown-menu>\n<div id="notification" hidden$="[[!hasNotification]]" class="style-scope yt-sort-filter-sub-menu-renderer"></div>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;ePq===void 0&&(ePq=document.createElement("template"));var k=ePq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);rF5=I}I=rF5;return I},{mode:2});_.MU(P5K);
var n08=_.BO(function(I){var C=I.children;var y=I.className;var k=I.style;var F=I.role;var z=I.ariaSelected;var c=I.ariaLabel;var r=I.ariaHidden;var w=I.ariaLabelledby;var L=I.ariaDescribedby;var D=I.command;var p=I.elementsCommand;var Q=I.forceNewState;var X=I.tabIdentifier;var b=I.target;var S=I.tabIndex;var A=I.stopPropagation;I=_.P4(function(){var x=_.Y$({innertubeCommand:D==null?void 0:D(),elementsCommand:p==null?void 0:p(),forceNewState:Q==null?void 0:Q(),stopPropagation:(A==null?void 0:A())!==
!1});x||(x={});x["aria-hidden$"]=r==null?void 0:r();var B;x.tabindex$=(B=S==null?void 0:S())!=null?B:x.tabindex$;var t;x["force-new-state$"]=(t=Q==null?void 0:Q())!=null?t:x["force-new-state$"];var U;x.role$=(U=F==null?void 0:F())!=null?U:x.role$;var yW;x["aria-hidden$"]=(yW=r==null?void 0:r())!=null?yW:x["aria-hidden$"];var a;x.target$=(a=b==null?void 0:b())!=null?a:x.target$;return x},void 0,"SU0Mnc");
return _.P(_.ik,{aTagConfig:I,className:y,style:k,ariaLabel:c,ariaLabelledby:w,ariaDescribedby:L,ariaSelected:z,tabIdentifier:X},C)},"fa");var L6m=_.V("kevlar_modern_sd")?"yt-spec-place-data-view-model-shape__thumbnail-round":"",P58=_.ks(DAt);_.MU(DAt);_.B9(P58,"place-data-view-model",{props:{data:_.As}});var L6b=new _.Jj("INLINE_PLAYBACK_HOOK_TOKEN");var Szm=function(I){this.setActiveSlideIndex=I;this.jobIds=[];this.isSlideshowPlaying=!1},AFs=function(I){if(I.isSlideshowPlaying){I.isSlideshowPlaying=!1;
for(var C=I.jobIds,y=0,k=C.length;y<k;y++)_.b$.cancelJob(C[y]);I.jobIds.length=0}},K6O=function(I,C){I.isSlideshowPlaying||(I.isSlideshowPlaying=!0,DAY(I),p8w(I,C,0))},DAY=function(I){_.tE(_.b$,function(){I.setActiveSlideIndex(0)},1)},p8w=function(I,C,y){I.jobIds.push(_.tE(_.b$,function(){var k=y<C-1?y+1:0;
I.setActiveSlideIndex(k);p8w(I,C,k)},1800))};var X8z=new _.Jj("IMAGE_ON_LOAD_HANDLER_TOKEN");var QTq=_.BO(function(I){return _.P("animated-thumbnail-overlay-view-model",{class:"ytAnimatedThumbnailOverlayViewModelHost"},_.P(_.Dx,{cond:function(){var C;return(C=I.data())==null?void 0:C.thumbnail},
then:function(C){return _.P(_.x$,{data:C,alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL",hideOn404:!0})}}))},"ga");_.vx=_.BO(function(I){var C=I.data;var y=I.lockupExperiments;I={};return _.P("thumbnail-overlay-button-view-model",{class:"ytThumbnailOverlayButtonViewModelHost"},_.P("div",{class:_.sZ("ytThumbnailOverlayButtonViewModelButton",(I.ytThumbnailOverlayButtonViewModelButtonLegacyIcon=function(){var k;return y&&((k=y())==null?void 0:k.useLegacySizedIconButton)},I))},_.P(_.lY,{data:function(){return C().overlayButton}},{buttonViewModel:function(k){return _.P(_.fM,{data:k.data,
buttonOverrides:function(){var F;return y&&((F=y())==null?0:F.useLegacySizedIconButton)?{iconPosition:"icon-only-40",customColors:{backgroundColor:"rgba(0,0,0,0.6)"}}:void 0}})}})))},"ha");
_.vx.idomCompat=!0;var Nwd=_.BO(function(I){var C=_.uk(function(y){y.preventDefault();return!1});
return _.P("yt-thumbnail-hover-overlay-toggle-actions-view-model",{class:"ytThumbnailHoverOverlayToggleActionsViewModelHost","on:click":C},_.P(_.lY,{data:function(){return I.data().buttons}},{toggleButtonViewModel:function(y){return _.P("div",{class:"ytThumbnailHoverOverlayToggleActionsViewModelButton"},_.P(_.RY,{data:y.data}))}}))},"ia");
Nwd.idomCompat=!0;var VM8=_.BO(function(I){var C=function(){var y;return((y=_.l(I.data().rendererContext,_.mO))==null?void 0:y.label)||""};
return _.P("yt-thumbnail-overlay-full-view-model",{class:"ytThumbnailOverlayFullViewModelHost"},_.P(_.Dx,{cond:function(){return I.data().image},
then:function(){return _.P("div",{class:"ytThumbnailOverlayFullViewModelIcon"},_.P(_.x$,{data:function(){return I.data().image},
alt:C}))}}),_.P(_.Dx,{cond:function(){return I.data().text},
then:function(){return _.P("div",{class:"ytThumbnailOverlayFullViewModelText"},function(){return I.data().text})}}))},"ja");var RPX=_.Qg({thumbnailOverlayTitleViewModel:b45,thumbnailOverlayBadgeViewModel:GFw,thumbnailBottomOverlayViewModel:L5P,thumbnailOverlayFullViewModel:VM8,thumbnailOverlayButtonViewModel:_.vx}),btY=_.Qg({thumbnailHoverOverlayViewModel:pUd,thumbnailHoverOverlayToggleActionsViewModel:Nwd}),Yzz=_.Qg({animatedThumbnailOverlayViewModel:QTq});_.MU(GYt);var jTP,lVw;jTP=_.BO(function(I){var C=[],y=function(){var Q,X;return Zn((Q=I.width)==null?void 0:Q.call(I),(X=I.height)==null?void 0:X.call(I))},k=_.N().resolve(_.aU(X8z)),F=_.Es(function(){C.push("elRef.value set");
var Q;(Q=I.playbackRef)==null||Q.call(I,{thumbnailElRef:F,thumbnail:I.data().image,thumbnailOverlays:I.data().overlays,thumbnailSize:y()})});
_.RU(function(){C.push("onInit");_.$4(function(){C.push("onCleanup")})});
var z=_.XU(QTO),c=function(){var Q,X;return(X=(Q=I.aspectRatio)==null?void 0:Q.call(I))!=null?X:0},r=function(){return(I.data().image?_.LbF(I.data().image):c())<=1&&c()===0},w=function(){return r()?"CONTENT_MODE_SCALE_ASPECT_FIT":"CONTENT_MODE_SCALE_ASPECT_FILL"},L=function(){F.value||_.SN(new _.ph("Thumbnail elRef.value is null",C.join("\n")));
k&&F.value&&k(F.value)},D=function(){var Q,X;
return((Q=I.hovered)==null?void 0:Q.call(I))&&y()!=="large"&&((X=I.data().overlays)==null?void 0:X.some(function(b){return _.l(b,$A9)}))},p={};
return _.P("yt-thumbnail-view-model",{class:_.sZ("yt-thumbnail-view-model",I.className,function(){return fVm(c())},function(){var Q,X;
a:{var b=y(),S=(Q=I.disableRounding)==null?void 0:Q.call(I);Q=(X=I.isClip)==null?void 0:X.call(I);if(!S&&!Q)switch(b){case "large":X="yt-thumbnail-view-model--large";break a;case "small":X="yt-thumbnail-view-model--small";break a;default:X="yt-thumbnail-view-model--medium";break a}X=void 0}return X},(p["yt-thumbnail-view-model--cinematic"]=r,p)),
style:_.cP({"background-color":function(){var Q,X=r()?(Q=I.data().backgroundColor)==null?void 0:Q.lightTheme:void 0;return X?$k(X,"1"):void 0}}),
el:F},_.P(_.Dx,{cond:r,then:function(){return _.P("div",{class:"yt-thumbnail-view-model__blurred-image"},_.P(_.x$,{data:function(){return I.data().image},
alt:"",contentMode:w,targetWidth:I.width,onload:L}))}}),_.P("div",{class:"yt-thumbnail-view-model__image"},_.P(_.x$,{data:function(){return I.data().image},
alt:"",contentMode:w,targetWidth:I.width,onload:L}),null),_.P(_.lY,{data:function(){return D()?void 0:I.data().overlays},
allowIncompleteMapping:!0},{thumbnailOverlayTitleViewModel:Ygd,thumbnailOverlayBadgeViewModel:function(Q){return _.P(GFw,{data:Q.data,thumbnailSize:y,isClip:I.isClip})},
thumbnailBottomOverlayViewModel:L5P,thumbnailOverlayFullViewModel:VM8,thumbnailOverlayButtonViewModel:function(Q){return _.P(_.vx,{data:Q.data,lockupExperiments:I.lockupExperiments})}}),_.P(_.lY,{data:function(){var Q;
return((Q=I.hovered)==null?0:Q.call(I))?I.data().overlays:void 0},
allowIncompleteMapping:!0},{thumbnailHoverOverlayViewModel:function(Q){return _.P(Qgq,{data:Q.data,alwaysShow:!0})},
thumbnailHoverOverlayToggleActionsViewModel:Nwd}),_.P(_.lY,{data:function(){var Q;return((Q=I.hovered)==null?0:Q.call(I))&&z()?I.data().overlays:void 0},
allowIncompleteMapping:!0},{animatedThumbnailOverlayViewModel:QTq}),_.P(_.Dx,{cond:I.isClip,then:function(){return jTY()}}))},"ka");
lVw=_.V("web_enable_sink_lockups_batch")?jTP:GYt;_.Wx=_.V("web_enable_sink_lockups_batch")?jTP:_.ks(lVw,{callbacks:{playbackRef:!0}});jTP.idomCompat={callbacks:{playbackRef:!0}};var g0O=_.Qg({thumbnailViewModel:lVw});_.MU(v0t);var X8u=_.BO(function(I){var C=_.T(_.c4(-1,void 0,"GEkecf")),y=C.next().value,k=C.next().value;_.RU(function(){var F=new Szm(k);K6O(F,I.data().thumbnails.length);_.$4(function(){AFs(F)})});
return _.P("yt-collection-thumbnail-slideshow",{class:"yt-collection-thumbnail-slideshow"},_.P(_.lY,{data:function(){return I.data().thumbnails}},{thumbnailViewModel:function(F,z){return _.P("div",{class:function(){var c=!I.data().primaryThumbnail,r=z(),w=y(),L=["yt-collection-thumbnail-slideshow__slideshow-thumbnail"];
c&&r===0&&L.push("yt-collection-thumbnail-slideshow--first-slide");r<=w&&L.push("yt-collection-thumbnail-slideshow--show-slide");return L.join(" ")}},_.P(_.Wx,{data:F.data,
disableRounding:I.disableRounding}))}}))},"la"),mAY=_.V("web_enable_sink_lockups_batch")?X8u:v0t,$A5=_.V("web_enable_sink_lockups_batch")?X8u:_.ks(v0t);
X8u.idomCompat=!0;var W69=new _.Jj("DWELL_DETECTOR_REGISTRY_TOKEN");var qzO=_.Qg({thumbnailViewModel:lVw});_.MU(Zts);var btP=_.BO(function(I){var C=xAX(I.triggeringElement),y=function(){return!!I.data().primaryThumbnail};
return _.P("yt-collection-thumbnail-view-model",{class:"yt-collection-thumbnail-view-model","aria-hidden":"true"},_.P(RPc,{stackEnabled:y,thumbnailSize:function(){var k,F;return Zn((k=I.width)==null?void 0:k.call(I),(F=I.height)==null?void 0:F.call(I))},
doubleStack:I.doubleStack,stackColor:function(){return I.data().stackColor}},_.P("div",null,_.P(_.lY,{data:function(){return I.data().primaryThumbnail}},{thumbnailViewModel:function(k){var F={};
return _.P(_.Wx,{data:k.data,width:I.width,height:I.height,aspectRatio:I.aspectRatio,disableRounding:I.disableRounding,className:_.sZ((F["yt-collection-thumbnail-view-model--has-stacks"]=y,F)),hovered:I.hovered,playbackRef:I.playbackRef})}}),_.P(_.Dx,{cond:function(){var k;
return C()&&((k=I.data().thumbnails)==null?void 0:k.length)},
then:function(){return _.P("div",{class:"yt-collection-thumbnail-view-model__slideshow"},_.P($A5,{data:I.data,disableRounding:function(){return!y()}}))}}))))},"ma"),Yzq=_.V("web_enable_sink_lockups_batch")?btP:_.ks(Zts,{callbacks:{playbackRef:!0}});
btP.idomCompat={callbacks:{playbackRef:!0}};
var RPc=_.BO(function(I){var C=I.children;var y=I.stackEnabled;var k=I.thumbnailSize;var F=I.doubleStack;var z=I.stackColor;var c,r=(c=_.N().resolve(_.aU(_.AE)))==null?void 0:c();return _.P(_.Dx,{cond:y,then:function(){return _.P(Uw0,{data:function(){var w,L;return{experimentEnabled:!0,thumbnailSize:k(),doubleStack:F==null?void 0:F(),color:r?z==null?void 0:(w=z())==null?void 0:w.darkTheme:z==null?void 0:(L=z())==null?void 0:L.lightTheme,enableResponsiveMode:!1}}},C)},
else:function(){return C}})},"na");var GYY=new _.Jj("EXPANDABLE_METADATA_VIEW_MODEL_TOKEN");var xT;_.dF={calledOnce:!0,state:"visible"};xT={calledOnce:!0,state:"hidden"};_.qr=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;var k=I.className;var F=I.delayedClassName;I=I.animationEntityKey;var z=_.Es(),c=_.mh(I,""),r=_.cj(ghs,c),w=function(){var a,cs;return(cs=(a=r())==null?void 0:a.value)!=null?cs:!1},L=function(){_.qH(_.wJ("booleanEntity",c(),{key:c(),
value:!0}));x=void 0};
I=_.T(_.TN(w));var D=I.next().value,p=I.next().value;I=_.T(_.TN(w));var Q=I.next().value,X=I.next().value;I=_.T(_.TN(function(){var a;return w()?(a=C().styleTransitionConfig)==null?void 0:a.destinationStyle:void 0}));
var b=I.next().value,S=I.next().value,A=function(){var a=Object.assign({},C(),b()&&{style:b()}),cs,XO,Rm=a.label,$z=(cs=a.interaction)==null?void 0:(XO=cs.accessibility)==null?void 0:XO.label;cs=a.iconImage?a.label&&a.label.content?a.iconLeading?"leading":"trailing":"icon-only":void 0;return{formattedButtonText:Rm,accessibilityLabel:$z,style:UAO(a.style),type:HtI(a.style),state:"active",size:hPW(a.size),iconPosition:cs,disabled:!1,aTagConfig:E0O(a,y)}},x;
_.a0(z,{visibilityCallback:function(a){var cs,XO=(cs=C().interaction)==null?void 0:cs.onFirstVisible;a&&XO&&_.Gp(XO)},
showOption:_.dF});var B=function(){return rh(A(),!!C().iconImage)};
k=_.sZ(function(){return"ytwAdButtonViewModelHost"},function(){return C().delayedAppearanceConfig?"ytwAdButtonViewModelHostHasAnimation":""},function(){var a=!!C().delayedAppearanceConfig,cs=D();
return a?cs?"ytwAdButtonViewModelFullHeight":"ytwAdButtonViewModelNoHeight":""},function(){var a=!!C().delayedAppearanceConfig,cs=Q();
return a?cs?"ytwAdButtonViewModelShow":"ytwAdButtonViewModelHide":""},function(){return!C().delayedAppearanceConfig||D()?F==null?void 0:F():""},k!=null?k:"");
var t=function(){var a,cs=(a=C().delayedAppearanceConfig)==null?void 0:a.delayedInvisibleSeconds;cs&&(x=_.LM(_.b$,function(){p(!0);U()},cs*1E3))},U=function(){var a,cs=(a=C().delayedAppearanceConfig)==null?void 0:a.delayedVisibleSeconds;
cs&&(x=_.LM(_.b$,function(){X(!0);yW()},cs*1E3))},yW=function(){var a,cs=(a=C().styleTransitionConfig)==null?void 0:a.styleTransitionSeconds,XO,Rm=(XO=C().styleTransitionConfig)==null?void 0:XO.destinationStyle;
cs&&Rm?x=_.LM(_.b$,function(){S(Rm);L()},cs*1E3):L()};
_.RU(function(){var a;((a=C().delayedAppearanceConfig)==null?0:a.transitionDurationSeconds)&&z.value.style.setProperty("transition-duration",C().delayedAppearanceConfig.transitionDurationSeconds+"s");t()});
_.$4(function(){x&&_.b$.cancelJob(x)});
return _.P("ad-button-view-model",{class:k,el:z},_.P(_.Dx,{cond:A,then:function(){return _.P(aY,{data:A,icon:function(){return _.P(_.Dx,{cond:function(){return C().iconImage},
then:function(a){return _.P(_.x$,{data:a,alt:"",targetWidth:B,targetHeight:B,preserveWidth:!0,preserveHeight:!0})}})}})}}))},"oa");var fVb=_.BO(function(I){var C=I.data;I=_.Es();_.a0(I,{visibilityCallback:function(y){var k,F=(k=C().interaction)==null?void 0:k.onFirstVisible;y&&F&&_.Gp(F)},
showOption:_.dF});return _.P("ad-button-group-view-model",{class:function(){return"ytwAdButtonGroupViewModelHost"},
el:I},_.P("div",{class:"ytwAdButtonGroupViewModelHostSecondaryButton"},_.P(_.lY,{data:function(){return C().secondaryAdButton}},{adButtonViewModel:function(y){return _.P(_.qr,{data:y.data})}})),_.P("div",{class:"ytwAdButtonGroupViewModelHostPrimaryButton"},_.P(_.lY,{data:function(){return C().primaryAdButton}},{adButtonViewModel:function(y){return _.P(_.qr,{data:y.data})}})))},"pa");var Szb=_.BO(function(I){var C=function(){var y;return((y=I.data())==null?void 0:y.answers)||[]};
return _.P("yt-survey-icons",{class:"ytSurveyIconsHost"},_.P("div",{class:"ytSurveyIconsHeader"},_.P("div",{class:"ytSurveyIconsTitle"},function(){var y;return(y=I.data())==null?void 0:y.text}),_.P("div",null,_.P(aY,{data:function(){return{style:"mono",
type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(){var y;(y=I.onDismiss)==null||y.call(I)}}},
iconName:"DISMISSAL"}))),_.P("div",null,_.P("div",{class:"ytSurveyIconsAnswers"},_.P(_.pH,{each:function(){return C()},
keyBy:"INDEX"},function(y,k){return _.P("div",null,_.P(aY,{data:function(){return{style:"mono",type:"text",state:"active",size:"XL",iconPosition:"icon-only",onTap:function(){var F;(F=I.onSelect)==null||F.call(I,y(),k)}}},
icon:function(){return _.P(_.ez,{icon:function(){var F,z;return(F=y())==null?void 0:(z=F.icon)==null?void 0:z.iconType},
className:"ytSurveyIconsIcon"})}}))})),_.P("div",{class:"ytSurveyIconsAnswersText"},_.P("div",null,function(){return C().length?C()[0].text:""}),_.P("div",null,function(){return C().length?C()[C().length-1].text:""}))))},"qa");var K6q=_.BO(function(I){var C=_.T(_.c4(!1,void 0,"s8HkOb")),y=C.next().value,k=C.next().value,F=_.cj(oLm,function(){var r;return(r=I.data().keys)==null?void 0:r.surveyEntityKey}),z=_.cj(yrO,function(){var r;
return(r=I.data().keys)==null?void 0:r.surveyStateEntityKey});
_.BH("ytd-slimline-survey-show-action",function(){k(!1)});
var c=function(){var r,w;var L=(r=z())==null?void 0:(w=r.questionStack)==null?void 0:w[0];if(L!==void 0){var D,p;return(D=F())==null?void 0:(p=D.questions)==null?void 0:p[L]}};
C={};return _.P("yt-slimline-survey-view-model",{class:_.sZ("ytSlimlineSurveyViewModelHost",(C.ytSlimlineSurveyViewModelCollapsed=function(){return y()},C))},_.P("div",{class:"ytSlimlineSurveyViewModelContainer"},_.P(_.Dx,{cond:function(){var r;
return((r=c())==null?void 0:r.layout)==="SURVEY_LAYOUT_TYPE_ICONS"},
then:function(){return _.P(Szb,{data:function(){return c()},
onSelect:function(r,w){var L,D;return _.e(function(p){k(!0);if(D=(L=I.data())==null?void 0:L.onSelectRating)_.Gp(D),_.qH(dVP(w));_.oI(p)})},
onDismiss:function(){k(!0)}})}})))},"ra");var AFm=_.BO(function(I){return _.P("lockup-attachments-view-model",{class:"ytLockupAttachmentsViewModelHost"},_.P(_.lY,{data:function(){var C;return(C=I.data())==null?void 0:C.attachments}},{flexibleActionsViewModel:function(C){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(Dg,{data:C.data,
layout:function(){var y;return((y=I.lockupStyle())==null?void 0:y.arrangement)===1?0:1},
justifyContentOverride:function(){var y;return((y=I.lockupStyle())==null?void 0:y.arrangement)===1?"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_START":"FLEXIBLE_ACTIONS_JUSTIFY_CONTENT_EVENLY"}}))},
slimlineSurveyViewModel:function(C){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(K6q,{data:C.data}))},
expandableMetadataViewModel:function(C){C=C.data;var y;return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},(y=_.N().resolve(_.aU(GYY)))==null?void 0:y({data:C}))},
adButtonGroupViewModel:function(C){return _.P("div",{class:"ytLockupAttachmentsViewModelAttachment"},_.P(fVb,{data:C.data}))}}))},"sa");var IXt=_.s8("rich_grid_min_item_width",310),aVm=_.s8("rich_grid_max_item_width",500);var rHX=_.BO(function(I){var C=I.data;return _.P("br-nz-badge-shape",{class:_.sZ(function(){return zDs(C().brNzRatingBadgeType)}),
role:function(){return C().accessibilityText?"img":void 0},
"aria-label":function(){return C().accessibilityText}},function(){var y;
return(y=C())==null?void 0:y.text})},"ta");_.MU(iRs);var g0q,yRt;g0q=_.BO(function(I){var C=function(){var y=I.data(),k,F;return y?eDI(y,!((k=I.workaroundShortsIsThumbnailBadge)==null||!k.call(I)),(F=I.modern)==null?void 0:F.call(I)):void 0};
return _.P("yt-badge-view-model",{class:_.sZ("yt-badge-view-model-wiz",I.class)},_.P(_.Vr,null,_.P(_.Qr,{when:function(){var y;return!((y=C())==null||!y.brNzRatingBadgeType)}},function(){return _.P(rHX,{data:function(){return C()}})}),_.P(_.Qr,{when:function(){return!!C()&&!C().brNzRatingBadgeType}},function(){return _.P(_.t9,{data:function(){return C()}})})))},"ua");
yRt=_.V("web_enable_sink_yt_badge_view_model")?g0q:iRs;_.ml=_.V("web_enable_sink_yt_badge_view_model")?g0q:_.ks(iRs);g0q.idomCompat=!0;var nQF,whI;nQF=16/9;whI=2/3;_.Zh=_.BO(function(I){var C=I.data;var y=I.className;var k=I.imageSizeConfig;var F=I.notifyOnLoaded;I=_.Es();var z=function(){return C().style||"CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},c=function(){var D;
return _.dJ((D=C())==null?void 0:D.rendererContext)},r={};
r=(r["yt-content-preview-image-view-model-wiz"]=!0,r["yt-content-preview-image-view-model-wiz--circle-image"]=function(){return z()==="CONTENT_PREVIEW_IMAGE_STYLE_CIRCLE"},r["yt-content-preview-image-view-model-wiz--tappable"]=function(){return c()},r);
var w=function(){var D,p;return(p=(D=_.l(C().rendererContext,_.mO))==null?void 0:D.label)!=null?p:""},L=function(){return LHH(C())};
_.ql(I,function(){var D;return(D=C())==null?void 0:D.rendererContext});
return _.P("yt-content-preview-image-view-model",{el:I,role:function(){return c()?"link":void 0},
tabindex:function(){return c()?0:void 0},
class:_.sZ(y,r,function(){var D=z();var p=k==null?void 0:k();D=D==="CONTENT_PREVIEW_IMAGE_STYLE_SQUARE"||D==="CONTENT_PREVIEW_IMAGE_STYLE_VERTICAL_RECTANGLE_2_BY_3"||D==="CONTENT_PREVIEW_IMAGE_STYLE_HORIZONTAL_RECTANGLE_16_BY_9"||D==="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO"?(p==null?void 0:p.size)!=null&&p.size<=16?"yt-content-preview-image-view-model-wiz--extra-small-rounded-image":(p==null?void 0:p.size)!=null&&p.size<=24?"yt-content-preview-image-view-model-wiz--small-rounded-image":"yt-content-preview-image-view-model-wiz--large-rounded-image":
void 0;return D}),
style:function(){return PSz(z(),C().layoutMode||"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_UNKNOWN",k==null?void 0:k(),DNt(L()),C().layoutWidth,C().layoutHeight)}},_.P(_.Dx,{cond:L,
then:function(D){return _.P(_.x$,{data:D,alt:w,"data-disabled$":function(){return!w()},
notifyOnLoaded:F})}}),_.P(_.lY,{data:function(){var D;
return(D=C())==null?void 0:D.overlays}},{thumbnailHoverOverlayViewModel:Qgq,
thumbnailOverlayButtonViewModel:_.vx}))},"va");
_.Zh.idomCompat=!0;var Bx=_.BO(function(I){var C=I.data;var y=I.className;var k=I.useSmallLayout;var F=I.useMediumText;I=_.Es();var z={};F=(z["yt-attribution-view-model-wiz"]=!0,z["yt-attribution-view-model-wiz--medium-text"]=F,z);_.ql(I,function(){var c;return(c=C())==null?void 0:c.rendererContext});
return _.P("yt-attribution-view-model",{el:I,class:_.sZ(y,F)},_.P(_.Dx,{cond:function(){return _.dJ(C().rendererContext)},
then:function(){return _.P("button",{class:"yt-attribution-view-model-wiz--tappable"},_.P(v0Y,{data:C,useSmallLayout:k}))},
else:function(){return _.P(v0Y,{data:C,useSmallLayout:k})}}))},"wa"),v0Y=_.BO(function(I){var C=I.data;
var y=I.useSmallLayout;var k=function(){return{size:(y==null?0:y())?16:24}};
return _.P(_.aF,null,_.P(_.lY,{data:function(){return C().contentPreviewImage}},{contentPreviewImageViewModel:function(F){return _.P(_.Zh,{data:F.data,
className:"yt-attribution-view-model-wiz__attribution-image",imageSizeConfig:k})}}),_.P(_.lY,{data:function(){return C().badge}},{badgeViewModel:function(F){return _.P(_.ml,{data:F.data,
class:"yt-attribution-view-model-wiz__badge",modern:!0})}}),_.P(_.Dx,{cond:function(){return C().text},
then:function(){return _.P(_.wh,{text:function(){return C().text},
noWrap:!0,linkInheritColor:!0,className:"yt-attribution-view-model-wiz__attribution-text"})}}),_.P(_.Dx,{cond:function(){return C().suffix},
then:function(){return _.P(_.wh,{text:function(){return C().suffix},
linkInheritColor:!0,className:"yt-attribution-view-model-wiz__suffix"})}}))},"xa");
Bx.idomCompat=!0;var XhY=_.Qg({avatarStackViewModel:_.$WY,badgeViewModel:yRt});_.MU(bRF);var W65,dAq,xAc,qzq,mAP,Ztm,Bww;W65=_.BO(function(I){var C=I.delimiter;var y=I.max;var k=I.index;var F=I.isStandalone;return _.P(_.Dx,{cond:function(){return y()-1>k()},
then:function(){var z={};return _.P("span",{class:_.sZ("yt-content-metadata-view-model-wiz__delimiter",(z["yt-content-metadata-view-model-wiz__delimiter--standalone"]=F,z)),"aria-hidden":!0},C)}})},"ya");
dAq=_.BO(function(I){var C=I.metadataPart;var y=I.maxLines;return _.P(_.wh,{text:function(){return C().text},
linkInheritColor:!0,className:function(){return Y6z(y())},
userInput:!0})},"za");
xAc=_.BO(function(I){var C=I.metadataPart;var y=I.maxLines;return _.P(_.aF,null,_.P(_.Dx,{cond:function(){return C().tooltip},
then:function(k){return _.P("span",{title:k,role:"tooltip"},_.P(dAq,{metadataPart:C,maxLines:y}))},
else:function(){return _.P(dAq,{metadataPart:C,maxLines:y})}}))},"Aa");
qzq=_.BO(function(I){var C=I.metadataPart;var y=I.isOverlay;var k=I.useMediumText;var F=I.hideAvatar;var z=function(){return C().maxLines!==void 0?C().maxLines:1};
return _.P(_.aF,null,_.P(_.lY,{data:function(){return C().avatarStack}},{avatarStackViewModel:function(c){return _.P(_.nz,{data:c.data,
isOverlay:y,useMediumText:k,hideAvatar:F})},
badgeViewModel:_.ml}),_.P(_.Dx,{cond:function(){return C().text},
then:function(){return _.P(xAc,{metadataPart:C,maxLines:z})}}))},"Ba");
mAP=_.BO(function(I){var C=I.metadataRow;var y=I.isInline;var k=I.delimiter;var F=I.isOverlay;var z=I.useMediumText;var c=I.extensions;var r=function(){var w;return QXY(c==null?void 0:(w=c())==null?void 0:w.lockupMetadata,C())};
I={};return _.P("div",{class:_.sZ("yt-content-metadata-view-model-wiz__metadata-row",(I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-inline"]=y,I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-padding"]=function(){var w;return NKK(c==null?void 0:(w=c())==null?void 0:w.lockupMetadata,C())},I["yt-content-metadata-view-model-wiz__metadata-row--metadata-row-wrap"]=function(){var w;
return!!(c==null?0:(w=c())==null?0:w.lockupMetadata)&&C().badges},I))},_.P(_.lY,{data:function(){return C().badges}},{badgeViewModel:function(w){return _.P("div",{class:"yt-content-metadata-view-model-wiz__badge"},_.P(_.ml,{data:w.data}))}}),_.P(_.pH,{each:function(){return C().metadataParts||[]}},function(w,L){return _.P(_.aF,null,_.P(qzq,{metadataPart:w,
isOverlay:F,useMediumText:z,hideAvatar:r}),_.P(W65,{delimiter:k,max:function(){return C().metadataParts.length},
index:L,isStandalone:!1}))}),_.P(_.Dx,{cond:function(){return C().isSpacerRow&&!y()},
then:function(){return _.P("div",{class:"yt-content-metadata-view-model-wiz__spacer"})}}))},"Ca");
Ztm=_.BO(function(I){var C=_.ZB(I,{layout:0,isOverlay:!1});I=C.className;var y=C.data,k=C.layout,F=C.isOverlay,z=C.useMediumText,c=C.extensions;C=_.Es();var r=function(){return k()===0};
_.ql(C,function(){return y().rendererContext});
var w={};return _.P("yt-content-metadata-view-model",{class:_.sZ(I,"yt-content-metadata-view-model-wiz",(w["yt-content-metadata-view-model-wiz--inline"]=r,w["yt-content-metadata-view-model-wiz--tappable"]=function(){return _.dJ(y().rendererContext)},w["yt-content-metadata-view-model-wiz--medium-text"]=z,w)),
el:C},_.P(_.pH,{each:function(){return y().metadataRows}},function(L,D){return _.P(_.aF,null,_.P(mAP,{metadataRow:L,
isInline:r,delimiter:function(){return y().delimiter},
isOverlay:F,useMediumText:z,extensions:c}),_.P(_.Dx,{cond:function(){return r()&&!L.isSpacerRow},
then:function(){return _.P(W65,{delimiter:function(){return y().delimiter},
max:function(){return y().metadataRows.length},
index:D,isStandalone:!0})}}))}))},"Da");
Bww=_.V("web_enable_sink_yt_content_metadata_view_model")?Ztm:bRF;_.E0q=_.V("web_enable_sink_yt_content_metadata_view_model")?Ztm:_.ks(bRF);Ztm.idomCompat=!0;var S6I=_.Qg({avatarViewModel:_.XS,decoratedAvatarViewModel:lcS,contentMetadataViewModel:Bww,buttonViewModel:_.fM,attributionViewModel:Bx});_.MU(KHY);var hPd=_.BO(function(I){var C={};return _.P("yt-lockup-metadata-view-model",{class:_.sZ("yt-lockup-metadata-view-model-wiz",function(){a:{var y=I.lockupStyle();if(y==null?0:y.isOverlay)y="yt-lockup-metadata-view-model-wiz--overlay";else switch(y==null?void 0:y.arrangement){case 1:y="yt-lockup-metadata-view-model-wiz--horizontal";break a;default:y="yt-lockup-metadata-view-model-wiz--vertical"}}return y},function(){a:{var y=I.lockupStyle();
if(y==null?0:y.isTiny)y="yt-lockup-metadata-view-model-wiz--tiny";else switch(y==null?void 0:y.sizing){case "MINI":case "EXTRA_COMPACT":case "COMPACT":y="yt-lockup-metadata-view-model-wiz--compact";break a;default:y="yt-lockup-metadata-view-model-wiz--standard"}}return y},(C["yt-lockup-metadata-view-model-wiz--overlay"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.isOverlay},C["yt-lockup-metadata-view-model-wiz--card"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.isCard},C["yt-lockup-metadata-view-model-wiz--centered"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.isCentered},C["yt-lockup-metadata-view-model-wiz--typography-bump"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.typographyBump},C["yt-lockup-metadata-view-model-wiz--legacy-typography"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.useLegacyTypography},C["yt-lockup-metadata-view-model-wiz--rich-grid-legacy-typography"]=function(){var y;
return(y=I.lockupStyle())==null?void 0:y.useRichGridLegacyTypography},C))},_.P(_.lY,{data:function(){return I.data().image}},{avatarViewModel:function(y){return _.P("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.P(_.rF,{data:y.data}))},
decoratedAvatarViewModel:function(y){return _.P("div",{class:"yt-lockup-metadata-view-model-wiz__avatar"},_.P(_.wF,{data:y.data}))}}),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__text-container"},_.P("h3",{class:"yt-lockup-metadata-view-model-wiz__heading-reset",
title:function(){var y;return(y=I.data().title)==null?void 0:y.content}},_.P(_.Dx,{cond:function(){return I.data().title},
then:function(y){return _.P(_.ik,{command:I.lockupCommand,className:"yt-lockup-metadata-view-model-wiz__title",ariaLabel:I.lockupAccessibilityLabel},_.P(_.wh,{text:y}))}})),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__metadata"},_.P(_.lY,{data:function(){return I.data().metadata}},{contentMetadataViewModel:function(y){return _.P(_.E0q,{data:y.data,
layout:1,useMediumText:function(){var k,F;return((k=I.lockupStyle())==null?void 0:k.typographyBump)||((F=I.lockupStyle())==null?void 0:F.useRichGridLegacyTypography)},
extensions:function(){var k,F;return{lockupMetadata:{byline:{hideAvatar:((k=I.lockupStyle())==null?void 0:k.arrangement)===0,addPadding:((F=I.lockupStyle())==null?void 0:F.arrangement)===1}}}}})}})),_.P(_.lY,{data:function(){return I.data().attribution}},{attributionViewModel:function(y){return _.P("div",{class:"yt-lockup-metadata-view-model-wiz__attribution"},_.P(Bx,{data:y.data,
useSmallLayout:!0}))}})),_.P("div",{class:"yt-lockup-metadata-view-model-wiz__menu-button"},_.P(_.lY,{data:function(){return I.data().menuButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
buttonOverrides:function(){var k;return((k=I.lockupStyle())==null?0:k.isOverlay)?{style:"overlay"}:void 0}})}})))},"Ea"),UAq=_.V("web_enable_sink_lockups_batch")?hPd:_.ks(KHY);
hPd.idomCompat=!0;var Hte=_.BO(function(I){var C=_.Es();_.X2(function(){requestAnimationFrame(function(){_.HF(C.value)})});
var y={},k={},F={};return _.P("notification-multi-action-renderer",{class:_.sZ("ytNotificationMultiActionRendererHost",(y.ytNotificationMultiActionRendererHostLegacyShelfStyle=function(){var z;return(z=I.useLegacyShelfStyle)==null?void 0:z.call(I)},y)),
el:C},_.P("span",{"aria-live":"polite",class:_.sZ("ytNotificationMultiActionRendererTextContainer",(k.ytNotificationMultiActionRendererTextContainerLegacyShelfStyle=function(){var z;return(z=I.useLegacyShelfStyle)==null?void 0:z.call(I)},k))},_.P(_.wh,{text:function(){return I.data().responseText}})),_.P("div",{class:_.sZ("ytNotificationMultiActionRendererButtonContainer",(F.ytNotificationMultiActionRendererButtonContainerLegacyShelfStyle=function(){var z;
return(z=I.useLegacyShelfStyle)==null?void 0:z.call(I)},F))},_.P(_.lY,{data:function(){var z;
return(z=I.data().buttons)==null?void 0:z.map(function(c){if(c=c.buttonRenderer){var r,w=Object,L=w.assign,D=(r=c.icon)==null?void 0:r.iconType;r=(r=c.command||c.serviceEndpoint||c.navigationEndpoint)?{innertubeCommand:r}:void 0;c={buttonViewModel:L.call(w,{},{iconName:D,onTap:r,trackingParams:c.trackingParams,titleFormatted:c.text?_.j2(c.text):void 0},AHY(c))}}else c=void 0;return c}).filter(function(c){return!!c})}},{buttonViewModel:function(z,c){return _.P("div",null,_.P(_.fM,{data:z.data,
className:"ytNotificationMultiActionRendererButton",buttonOverrides:function(){var r;return((r=I.useModernStyles)==null?0:r.call(I))?{type:c()?"filled":"tonal",style:"mono"}:void 0}}))}})))},"Fa");var tMq=_.BO(function(I){var C=_.Es();_.X2(function(){requestAnimationFrame(function(){_.HF(C.value)})});
return _.P("notification-text-renderer",{el:C,class:"ytNotificationTextRendererHost","aria-live":"polite"},_.P(_.wh,{text:function(){return I.data().successResponseText}}))},"Ga");_.JFm=_.BO(function(I){var C=_.cj(vwm,function(){var k;return gQF((k=I.contentId)==null?void 0:k.call(I))}),y=function(){var k;
return _.l((k=C())==null?void 0:k.command,_.DN)};
return _.P(_.Dx,{cond:function(){var k;if(!(k=y())){var F;k=_.l((F=C())==null?void 0:F.command,S0w)}return k},
then:function(){return _.P(_.Dx,{cond:y,then:function(){var k={};return _.P("div",{class:_.sZ("ytDismissibleItemReplacedContent",function(){var F;return vQm((F=I.aspectRatio)==null?void 0:F.call(I))})},_.P("div",{class:_.sZ((k.ytDismissibleItemAspectRatioContainer=function(){var F;
return((F=I.aspectRatio)==null?void 0:F.call(I))!==void 0},k))},_.P(_.lY,{data:function(){var F;
return(F=y())==null?void 0:F.item}},{notificationMultiActionRenderer:function(F){return _.P(Hte,{data:F.data,
useModernStyles:I.useModernStyle,useLegacyShelfStyle:I.useLegacyShelfStyle})},
notificationTextRenderer:tMq})))}})},
else:I.children})},"Ha");_.Otq=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;I=_.h3();var k=function(){var z;return((z=C().interaction)==null?0:z.onTap)?function(c){var r;Bwm(c,(r=C().interaction)==null?void 0:r.onTap,y)}:void 0},F=function(){var z,c=C(),r=k(),w=(z=_.l(C().rendererContext,_.mO))==null?void 0:z.label;
a:switch(c.style){case "AD_AVATAR_STYLE_ROUNDED_CORNER":z=1;break a;default:z=0}return{size:xN9(c.size),type:z,onTap:r,accessibilityText:w}};
_.a0(I,{visibilityCallback:function(z){var c,r=(c=C().interaction)==null?void 0:c.onFirstVisible;z&&r&&_.Gp(r)},
showOption:_.dF});return _.P("ad-avatar-view-model",{class:function(){var z;return((z=C().interaction)==null?0:z.onTap)?"ytwAdAvatarViewModelHostIsClickableAdComponent":"ytwAdAvatarViewModelHost"},
el:I},_.P(_.Dx,{cond:function(){return C().image},
then:function(z){return _.P(Zu,{data:F,image:z})}}))},"Ia");_.EA=_.BO(function(I){I=_.ZB(I,{hasDot:!1});var C=Object.assign({},I),y=I.data,k=I.hasDot;I=I.customCommandResolver;var F=(delete C.data,delete C.hasDot,delete C.customCommandResolver,C);C=function(){return y().style};
C!==void 0&&C!==null||_.xS(Error("Eh"));C=_.Es();_.UG(C,function(){return y().interaction},I);
return _.P("ad-badge-view-model",{class:_.sZ(function(){var z;return((z=y().interaction)==null?0:z.onTap)?"ytwAdBadgeViewModelHostIsClickableAdComponent":"ytwAdBadgeViewModelHost"},function(){var z=F.adRenderingContextType();
y();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdBadgeViewModelHostStyleStandardBrowse":"ytwAdBadgeViewModelHostStyleStandard"}),
el:C},_.P(_.t9,{data:function(){var z;y();return{type:2,text:(z=y().label)==null?void 0:z.content,adsIncludeDot:k(),isOverlay:y().style==="AD_BADGE_STYLE_STARK_OVERLAY"}}}))},"Ja");var aVb;_.h2=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;var k=I.adRenderingContextType;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(F){var z,c=(z=C().interaction)==null?void 0:z.onFirstVisible;F&&c&&_.Gp(c)},
showOption:_.dF});return _.P("ad-details-line-view-model",{class:function(){var F;return((F=C().interaction)==null?0:F.onTap)?"ytwAdDetailsLineViewModelHostIsClickableAdComponent":"ytwAdDetailsLineViewModelHost"},
el:I},_.P(_.Dx,{cond:function(){return C().style},
then:function(F){return _.P(_.pH,{each:function(){var z;return((z=C())==null?void 0:z.attributes)||[]},
keyBy:"INDEX"},function(z){return _.P(aVb,{attribute:z,style:F,adRenderingContextType:function(){return k()}})})}}))},"Ka");
aVb=_.BO(function(I){var C=I.attribute;var y=I.style;var k=I.adRenderingContextType;return _.P(_.Dx,{cond:function(){return C().text},
then:function(F){return _.P(_.wh,{text:F,className:function(){var z=k();y();return z==="AD_RENDERING_CONTEXT_TYPE_BROWSE"?"ytwAdDetailsLineViewModelHostTextStyleStandardBrowse":"ytwAdDetailsLineViewModelHostTextStyleStandard"}})}})},"La");var MMS=_.BO(function(I){var C=I.data;var y=I.typographyBump;var k=function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_SEARCH"};
I={};return _.P(_.aF,null,_.P("div",{class:"ytwFeedAdMetadataViewModelHostMetadata"},_.P(_.wh,{text:function(){return C().headline},
className:_.sZ("ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadline",(I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineSearch=function(){return k==null?void 0:k()},I.ytwFeedAdMetadataViewModelHostTextsStyleCompactHeadlineTypographyBump=function(){return(y==null?void 0:y())&&!(k==null?0:k())},I)),
linkInheritColor:!0}),_.P(_.Dx,{cond:function(){return C().description},
then:function(F){var z={};return _.P(_.wh,{text:F,className:_.sZ("ytwFeedAdMetadataViewModelHostTextsStyleCompactDescription",(z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionSearch=function(){return k==null?void 0:k()},z.ytwFeedAdMetadataViewModelHostTextsStyleCompactDescriptionTypographyBump=function(){return(y==null?void 0:y())&&!(k==null?0:k())},z)),
linkInheritColor:!0})}}),_.P("div",{class:function(){return k()?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleCompactSearch":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainer"}},_.P(_.lY,{data:function(){return C().adBadge}},{adBadgeViewModel:function(F){return _.P(_.EA,{data:F.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.P(_.lY,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(F){return _.P(_.h2,{data:F.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}}))),_.P("div",{class:function(){return k()?"ytwFeedAdMetadataViewModelHostMenuSearch":"ytwFeedAdMetadataViewModelHostMenu"}},_.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
buttonOverrides:function(){a:switch(C().adRenderingContextType){case "AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT":var z="S";break a;default:z="M"}return{size:z}}})}})))},"Ma"),IXY=_.BO(function(I){var C=I.data;
var y=I.noBottomMargin;var k=I.useVideoLockupTopPadding;var F=I.typographyBump;I={};I=_.sZ("ytwFeedAdMetadataViewModelHostMetadata",(I.ytwFeedAdMetadataViewModelHostMetadataNoBottomMargin=function(){return y==null?void 0:y()},I.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return k==null?void 0:k()},I));
var z=function(){return C().adBadge};
z!==void 0&&z!==null||_.xS(Error("Fh"));z={};var c={};return _.P(_.aF,null,_.P(_.Dx,{cond:function(){return C().adAvatar},
then:function(){return _.P("div",{class:"ytwFeedAdMetadataViewModelHostAvatarStyleStandard"},_.P(_.lY,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(r){return _.P(_.Otq,{data:r.data})}}))}}),_.P("div",{class:I},_.P("div",{class:_.sZ("ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadline",(z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBump=function(){return F==null?void 0:F()},z.ytwFeedAdMetadataViewModelHostTextsStyleStandardHeadlineTypographyBumpV2=function(){return(F==
null?void 0:F())&&_.V("web_enable_typography_bump_v2")},z))},_.P(_.wh,{text:function(){return C().headline},
linkInheritColor:!0})),_.P(_.Dx,{cond:function(){return C().description},
then:function(r){return _.P(_.wh,{text:r,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardDescription",linkInheritColor:!0})}}),_.P("div",{class:function(){return C().adRenderingContextType==="AD_RENDERING_CONTEXT_TYPE_BROWSE"&&_.V("enable_top_landscape_image_components_legacy_ui_web")?"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandardLegacy":"ytwFeedAdMetadataViewModelHostMetadataAdBadgeDetailsLineContainerStyleStandard"}},_.P(_.lY,{data:function(){return C().adBadge}},
{adBadgeViewModel:function(r){return _.P(_.EA,{data:r.data,
hasDot:function(){return!!C().adDetailsLine},
adRenderingContextType:function(){return C().adRenderingContextType}})}}),_.P(_.lY,{data:function(){return C().adDetailsLine}},{adDetailsLineViewModel:function(r){return _.P(_.h2,{data:r.data,
adRenderingContextType:function(){return C().adRenderingContextType}})}})),_.P(_.Dx,{cond:function(){return C().secondaryDescription},
then:function(r){return _.P(_.wh,{text:r,className:"ytwFeedAdMetadataViewModelHostTextsStyleStandardSecondaryDescription",linkInheritColor:!0})}})),_.P("div",{class:_.sZ("ytwFeedAdMetadataViewModelHostMenuStyleStandard",(c.ytwFeedAdMetadataViewModelHostNoTopPadding=function(){return k==null?void 0:k()},c))},_.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:_.fM})))},"Na"),CSd=_.BO(function(I){var C=I.data;
var y=I.noBottomMargin;var k=I.listenToTapEvent;var F=I.setTouchEndHandler;var z=I.useVideoLockupTopPadding;var c=I.typographyBump;var r=_.Es();_.UG(r,function(){return C().interaction},void 0,function(){return k==null?void 0:k()});
I=_.T(_.c4(!1,void 0,"v9Bv8e"));var w=I.next().value,L=I.next().value;I=_.uk(function(){(F==null?0:F())&&!w()&&(r.value.click(),L(!0),setTimeout(function(){L(!1)},100));
return!1});
_.a0(r,{visibilityCallback:function(D){var p,Q=(p=C().interaction)==null?void 0:p.onFirstVisible;D&&Q&&_.Gp(Q)},
showOption:_.dF});return _.P("feed-ad-metadata-view-model",{class:function(){var D;return((D=C().interaction)==null?0:D.onTap)?"ytwFeedAdMetadataViewModelHostIsClickableAdComponent":"ytwFeedAdMetadataViewModelHost"},
el:r,"on:touchend":I},_.P(_.Vr,null,_.P(_.Qr,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_COMPACT"}},function(){return _.P(MMS,{data:C,
typographyBump:c})}),_.P(_.Qr,{when:function(){return C().style==="FEED_AD_METADATA_STYLE_STANDARD"}},function(){return _.P(IXY,{data:C,
noBottomMargin:y,useVideoLockupTopPadding:z,typographyBump:c})})))},"Oa");var sXw;_.UA=_.BO(function(I){return _.P("yt-lockup-view-model",{class:_.sZ(I.className)},_.P(_.JFm,{contentId:function(){return I.data().contentId},
useModernStyle:!0,aspectRatio:function(){var C,y;return((C=I.containerType)==null?void 0:C.call(I))!==3?FHF(I.data().contentType,(y=I.force16By9ThumbnailAspectRatio)==null?void 0:y.call(I)):void 0}},function(){return _.P(sXw,Object.assign({},I))}))},"Pa");
sXw=_.BO(function(I){I=_.ZB(I,{containerLayoutConfig:void 0,protectBackground:void 0,containerType:void 0,sizing:void 0,typographyBump:!1,force16By9ThumbnailAspectRatio:!1,thumbnailFixedWidth:void 0,thumbnailTargetWidth:void 0,lockupExperiments:void 0,elementsPerRow:void 0});var C=I.data,y=I.containerLayoutConfig,k=I.containerType,F=I.sizing,z=I.protectBackground,c=I.typographyBump,r=I.force16By9ThumbnailAspectRatio,w=I.thumbnailFixedWidth,L=I.thumbnailTargetWidth,D=I.lockupExperiments,p=I.elementsPerRow;
I=_.Es();_.ql(I,function(){var vs;return(vs=C())==null?void 0:vs.rendererContext},void 0,void 0,["A".toString(),
"BUTTON".toString(),"YT-EXPANDABLE-METADATA-VIEW-MODEL","FEED-AD-METADATA-VIEW-MODEL","AD-BADGE-VIEW-MODEL","AD-DETAILS-LINE-VIEW-MODEL"],!0);var Q=_.XU(NwW),X=_.N().resolve(_.aU(L6b)),b=X?{}:void 0,S=function(){var vs,mY,Bs;return(Bs=(mY=_.l((vs=C())==null?void 0:vs.rendererContext,_.mO))==null?void 0:mY.label)!=null?Bs:void 0},A=function(){var vs=y==null?void 0:y(),mY;
if(vs==null?0:vs.containerType){var Bs=(mY=C())==null?void 0:mY.contentType;mY=D();var n5=c(),sH=L(),Zt=z();vs=Object.assign({},uA9(oQz(vs),CSW(vs.responsiveSize),n5,Bs,vs.force16By9ThumbnailAspectRatio,sH,Zt,mY),{thumbnailFixedWidth:vs.contentPreviewWidth})}else vs=uA9(k(),F(),c(),(Bs=C())==null?void 0:Bs.contentType,r(),L(),z(),D());return vs};
X&&b&&X({enabled:function(){return Q()},
itemPlaybackModel:function(){return C().itemPlayback},
thumbnailElRef:function(){return b.thumbnailElRef},
containerElRef:I,options:function(){var vs,mY=(vs=_.l(C().metadata,iu0))==null?void 0:vs.endorsement;vs=b.thumbnailOverlays||[];mY&&vs.push(mY);var Bs,n5;return{thumbnail:b.thumbnail,thumbnailOverlays:vs,accessibilityText:S(),thumbnailSize:b.thumbnailSize,enableRounding:A().isCollection,containPlayerWithinThumbnail:A().isCollection,trackingParams:(Bs=_.l(C().rendererContext,_.qEK))==null?void 0:(n5=Bs.loggingDirectives)==null?void 0:n5.trackingParams}}});
var x=0;X=_.T(_.c4(!1,void 0,"HzAs3"));var B=X.next().value,t=X.next().value;X=_.T(_.c4(!1,void 0,"ujOXud"));var U=X.next().value,yW=X.next().value;X=_.uk(function(){var vs=Q()&&C().itemPlayback;U()?(_.b$.cancelJob(x),x=_.b$.addJob(function(){t(!vs)},8,32)):t(!vs);
return!0});
var a=_.uk(function(){x&&(_.b$.cancelJob(x),x=0);t(!1)});
_.$4(function(){x&&(_.b$.cancelJob(x),x=0)});
var cs=dNO(function(){yW(!0)}),XO=cs.touchFeedbackEvents,Rm=cs.touchFeedbackOnPointerUp,$z=cs.touchFeedbackOnPointerDown;
cs=cs.touchFeedbackOnPointerLeave;var hX={};return _.P("div",{el:I,class:_.sZ("yt-lockup-view-model-wiz",function(){a:{var vs=A();if(vs.isOverlay)vs="yt-lockup-view-model-wiz--overlay";else switch(vs.arrangement){case 1:vs="yt-lockup-view-model-wiz--horizontal";break a;default:vs="yt-lockup-view-model-wiz--vertical"}}return vs},function(){a:{var vs=A();
if(vs.isOverlay)vs="yt-lockup-view-model-wiz--overlay";else{switch(vs.collectionStackNumber){case 1:vs="yt-lockup-view-model-wiz--collection-stack-1";break a;case 2:vs="yt-lockup-view-model-wiz--collection-stack-2";break a}vs=void 0}}return vs},(hX["yt-lockup-view-model-wiz--card"]=function(){return A().isCard},hX["yt-lockup-view-model-wiz--compact"]=function(){return A().isTiny||A().sizing!=="STANDARD"},hX["yt-lockup-view-model-wiz--protect-background"]=z,hX["yt-lockup-view-model-wiz--add-margins"]=
function(){return A().addMarginForFullbleed},hX["yt-lockup-view-model-wiz--centered"]=function(){return A().isCentered},hX["yt-lockup-view-model-wiz--fullbleed"]=function(){return A().fullbleed},hX["yt-lockup-view-model-wiz--single-column-grid"]=function(){return p()===1&&k()===2},hX["yt-lockup-view-model-wiz--rich-grid-legacy-margin"]=function(){var vs;
return(vs=D())==null?void 0:vs.useRichGridLegacyMargin},hX)),
"on:mousedown":$z,"on:mouseleave":a,"on:mouseup":Rm,"on:mouseover":X,"on:touchstart":$z,"on:touchend":Rm,"on:pointerleave":cs},_.P(_.ik,{command:function(){var vs;return _.Wj((vs=C())==null?void 0:vs.rendererContext)},
ariaHidden:!0,tabIndex:-1,className:"yt-lockup-view-model-wiz__content-image",style:function(){return w()&&A().arrangement===1?"width: "+w():""}},_.P(_.lY,{data:function(){var vs;
return(vs=C())==null?void 0:vs.contentImage}},{thumbnailViewModel:function(vs){return _.P(_.Wx,{data:vs.data,
aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:L,hovered:B,isClip:function(){var mY;return((mY=C())==null?void 0:mY.contentType)==="LOCKUP_CONTENT_TYPE_CLIP"},
playbackRef:p8F(b),lockupExperiments:function(){return D()}})},
collectionThumbnailViewModel:function(vs){return _.P(Yzq,{data:vs.data,aspectRatio:function(){return A().aspectRatio},
disableRounding:function(){return A().disableRounding},
width:L,doubleStack:function(){return A().collectionStackNumber===2},
hovered:B,playbackRef:p8F(b)})},
decoratedAvatarViewModel:_.wF})),_.P("div",{class:"yt-lockup-view-model-wiz__metadata"},_.P(_.lY,{data:function(){var vs;return(vs=C())==null?void 0:vs.metadata}},{lockupMetadataViewModel:function(vs){return _.P(UAq,{data:vs.data,
lockupStyle:A,lockupCommand:function(){var mY;return _.Wj((mY=C())==null?void 0:mY.rendererContext)},
lockupAccessibilityLabel:function(){return S()}})},
feedAdMetadataViewModel:function(vs){return _.P(CSd,{data:vs.data,noBottomMargin:function(){return!0},
useVideoLockupTopPadding:function(){return!0},
typographyBump:c})}}),_.P(_.lY,{data:function(){var vs;
return(vs=C())==null?void 0:vs.attachmentSlot}},{lockupAttachmentsViewModel:function(vs){return _.P(AFm,{data:vs.data,
lockupStyle:A})}})),_.P(_.nE,{model:function(){a:{switch(A().collectionStackNumber){case 1:var vs=8;
break a;case 2:vs=12;break a}vs=void 0}return{isExtended:!0,triggerEvents:!0,customTopExtend:vs}},
pointerDownEvent:XO.pointerDownEvent,pointerUpEvent:XO.pointerUpEvent,pointerLeaveEvent:XO.pointerLeaveEvent}))},"Qa");
_.UA.idomCompat=!0;_.B9(_.UA,"yt-lockup-view-model",{props:{data:_.As,containerLayoutConfig:_.As,containerType:_.As,sizing:_.As,protectBackground:_.As,typographyBump:_.As,thumbnailFixedWidth:_.As,thumbnailTargetWidth:_.As,force16By9ThumbnailAspectRatio:_.As,className:_.As,lockupExperiments:_.As,elementsPerRow:_.As}});_.MU(hDt);var aXm=_.Qg({buttonViewModel:_.fM}),oQu=_.ks(JHH);_.MU(JHH);_.MU(HRH);_.MU(tbs);_.B9(oQu,"yt-video-attribute-view-model",{props:{data:_.As,className:_.As}});var Hx=function(){var I=_.q.apply(this,arguments)||this;I.useHighlightStyling=_.V("web_enable_deeper_metadata_highlight_styling");I.isSearch=!1;I.JSC$12919_lastScrollContainerWidth=NaN;I.pageLoadingFromNavigation=!1;I.currentIndex=0;I.supportComponentResize=!1;return I};
_.R(Hx,_.q);_.u=Hx.prototype;
_.u.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}}}}}};
_.u.attached=function(){document.addEventListener("yt-page-type-changed",_.sb(this,this.onPageChange))};
_.u.detached=function(){document.removeEventListener("yt-page-type-changed",_.sb(this,this.onPageChange))};
_.u.getItemsPath=function(){return"data.cards"};
_.u.onIronResize=function(){this.updateListStyles()};
_.u.dataChanged=function(){this.updateListStyles();this.supportComponentResize=!!this.centerItems;var I;this.ytdHorizontalListBehavior.initialStartIndex=(this==null?void 0:(I=this.data)==null?void 0:I.scrollToIndex)||0;this.ytdHorizontalListBehavior.reset();this.ytdHorizontalListBehavior.centerListItems=_.V("problem_walkthrough_sd")&&!!this.centerItems};
_.u.computeCardListStyle=function(I){return I||null};
_.u.computeEmpty=function(I){return!this.get("cards.length",I)};
_.u.computeThumbnailStyle=function(I){return this.get("header.richListHeaderRenderer.channelThumbnail.channelThumbnailWithLinkRenderer.style",I)||null};
_.u.computeHasSubtitle=function(I){return!!this.get("header.richListHeaderRenderer.subtitle",I)};
_.u.computeInitialCountNumber=function(I){return this.hasSquareMiniApp&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?12:this.hasSkinnyWidthPortraitMiniApp&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?7:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_CHANNEL_SHELF"?6:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_INLINE_RECOMMENDATIONS"?8:I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_NARROW_SHELF"?10:this.isSearch&&I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_ENGAGEMENT_PANEL_SECTION"?7:this.inlineStructuredDescription?
8:4};
_.u.computeUseFloorScrolling=function(I){return I==="HORIZONTAL_CARD_LIST_STYLE_TYPE_RELATED_CHANNELS"||this.hasSquareMiniApp};
_.u.computeHasGameCard=function(I){return(I=this.get("cards",I))?I.some(function(C){return C.gameCardRenderer}):!1};
_.u.computeCenterHeaderTitle=function(I){return!(I==null||!I.centerHeaderTitle)};
_.u.computeHasPortraitMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_PORTRAIT"}):!1};
_.u.computeHasSquareMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.layout==="MINI_APP_LAYOUT_SQUARE"}):!1};
_.u.computeHasSkinnyWidthPortraitMiniApp=function(I){return(I=I==null?void 0:I.cards)?I.some(function(C){return C.miniGameCardViewModel&&C.miniGameCardViewModel.width===135}):!1};
_.u.computeCenterItems=function(I){return!!I};
_.u.computeHasInfoPanel=function(I){var C;return I==null?void 0:(C=I.cards)==null?void 0:C.some(function(y){return y.infoPanelContentRenderer})};
_.u.handleKeyDown=function(){this.ytdHorizontalListBehavior.fillRemainingListItems();this.ytRendererBehavior.markDirty()};
_.u.getItemByIndex=function(I){var C=this.items.children;return C&&C.length>I?C[I]:void 0};
_.u.onPageChange=function(){var I=this;this.pageLoadingFromNavigation=!0;_.b$.addJob(function(){I.pageLoadingFromNavigation=!1;_.uW(I.hostElement,"yt-terminate-video-preview-action")},8)};
_.u.updateListStyles=function(){if(_.V("problem_walkthrough_sd")&&this.JSC$12919_scrollContainer!==void 0){var I=this.JSC$12919_scrollContainer.clientWidth;I!==this.JSC$12919_lastScrollContainerWidth&&(this.JSC$12919_lastScrollContainerWidth=I,_.CK(this.hostElement,{"--ytd-horizontal-card-list-item-width":Math.min(I*.8,415)+"px"}),_.k3(this.hostElement,"iron-resize"))}};
_.H1.Object.defineProperties(Hx.prototype,{hideNavigationButton:{configurable:!0,enumerable:!0,get:function(){return!(!this.inlineStructuredDescription||!_.V("sd_horizontal_list_show_nav_killswitch"))}},
modernChapters:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return _.V("kevlar_modern_sd")&&!!((I=this.data)==null?0:(C=I.cards)==null?0:(y=C[0])==null?0:y.macroMarkersListItemRenderer)}},
hasVideoAttributeViewModels:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!!((I=this.data)==null?0:(C=I.cards)==null?0:(y=C[0])==null?0:y.videoAttributeViewModel)}},
modernInfoPanels:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return _.V("enable_desktop_amsterdam_info_panels")&&!!((I=this.data)==null?0:(C=I.cards)==null?0:(y=C[0])==null?0:y.infoPanelContentRenderer)}}});
Hx.prototype.dataChanged=Hx.prototype.dataChanged;Hx.prototype.onIronResize=Hx.prototype.onIronResize;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Hx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],Hx.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.g(_.$x),_.h("design:type",Object)],Hx.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Hx.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Hx.prototype,"useCustomColors",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"useHighlightStyling",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeCardListStyle(data.style.type)"}),_.h("design:type",Object)],Hx.prototype,"cardListStyle",void 0);_.E([_.d({value:!0,reflectToAttribute:!0,computed:"computeEmpty(data)"}),_.h("design:type",Boolean)],Hx.prototype,"empty",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasSubtitle(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasSubtitle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeThumbnailStyle(data)"}),_.h("design:type",Boolean)],Hx.prototype,"thumbnailStyle",void 0);_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasGameCard(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasGameCard",void 0);_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeCenterHeaderTitle(data)"}),_.h("design:type",Boolean)],Hx.prototype,"centerHeaderTitle",void 0);
_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasPortraitMiniApp(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasPortraitMiniApp",void 0);_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSquareMiniApp(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasSquareMiniApp",void 0);_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasSkinnyWidthPortraitMiniApp(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasSkinnyWidthPortraitMiniApp",void 0);
_.E([_.d({readOnly:!0,reflectToAttribute:!0,computed:"computeHasInfoPanel(data)"}),_.h("design:type",Boolean)],Hx.prototype,"hasInfoPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hx.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Hx.prototype,"inlineStructuredDescription",void 0);_.E([_.z$("#scroll-container"),_.h("design:type",HTMLDivElement)],Hx.prototype,"JSC$12919_scrollContainer",void 0);
_.E([_.d({computed:"computeInitialCountNumber(data.style.type)"}),_.h("design:type",Number)],Hx.prototype,"initialCount",void 0);_.E([_.d({computed:"computeUseFloorScrolling(data.style.type)"}),_.h("design:type",Boolean)],Hx.prototype,"useFloorScrolling",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeCenterItems(data.centerItems)"}),_.h("design:type",Boolean)],Hx.prototype,"centerItems",void 0);_.E([_.d(),_.h("design:type",Object)],Hx.prototype,"pageLoadingFromNavigation",void 0);
_.E([_.d(),_.h("design:type",Object)],Hx.prototype,"currentIndex",void 0);_.E([_.d(),_.h("design:type",Number)],Hx.prototype,"scrollCount",void 0);_.E([_.d(),_.h("design:type",Object)],Hx.prototype,"supportComponentResize",void 0);_.E([_.z$("#items"),_.h("design:type",HTMLDivElement)],Hx.prototype,"items",void 0);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"onIronResize",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hx.prototype,"dataChanged",null);_.E([_.d({reflectToAttribute:!0}),_.v("inlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"hideNavigationButton",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"modernChapters",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"hasVideoAttributeViewModels",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Hx.prototype,"modernInfoPanels",null);Hx=_.E([_.m({disableElementRegistration:!0,is:"ytd-horizontal-card-list-renderer"})],Hx);
_.Z(Hx,"ytd-horizontal-card-list-renderer",function(){if(H45!==void 0)return H45;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return H45=I},{mode:_.Ij("kevlar_poly_si_batch_j072")?1:2});_.MU(I2s);var yHS=_.ks(I2s);_.aj(I2s,"video-summary-content-view-model",{propNames:["data","isSearch","className"]});var t2=function(){var I=_.q.apply(this,arguments)||this;var C,y;I.isExpanded=(y=(C=I.data)==null?void 0:C.isExpanded)!=null?y:!1;I.disableExpand=!1;I.showProminentLabel=!1;I.showRightSideLabel=!0;I.toggleExpandableContent=function(k){I.disableExpand||(k.stopPropagation(),_.m4(_.qc(k),I.hostElement,["info","expanded-subtitle"])||(I.isExpanded=!I.isExpanded,I.ytRendererBehavior.logExplicitClick(I.data),I.JSC$12931_cardList&&!_.V("expandable_metadata_a11y_fix_ks")&&_.hn(I,function(){_.UL(I.hostElement)})))};
I.useSquareThumbnail=!1;I.startX=0;return I};
_.R(t2,_.q);_.u=t2.prototype;_.u.computeUseSquareThumbnail=function(){var I;return(I=this.data)==null?void 0:I.useSquareThumbnail};
_.u.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"}}}}};
_.u.dataChanged=function(){if(this.data){var I,C;this.isExpanded=(C=(I=this.data)==null?void 0:I.isExpanded)!=null?C:!1;var y,k,F,z;if(I=this.isDarkTheme()?(y=this.data)==null?void 0:(k=y.colorData)==null?void 0:k.darkColorPalette:(F=this.data)==null?void 0:(z=F.colorData)==null?void 0:z.lightColorPalette){var c,r;if((c=this.data)==null?0:(r=c.colorData)==null?0:r.vibrantColorPalette)I.section1Color=this.data.colorData.vibrantColorPalette.section1Color,_.N3(this.hostElement,I)}}};
_.u.isExpandedChanged=function(){this.isExpanded&&this.JSC$12931_cardList&&_.k3(this.JSC$12931_cardList,"iron-resize")};
_.u.computeIsExpanded=function(I){return!!I.isExpanded};
_.u.computeShowProminentLabel=function(I,C){var y;return!!(I==null?0:(y=I.header)==null?0:y.showLeadingCollapsedLabel)&&!C};
_.u.computeShowRightSideLabel=function(I,C){var y;return!(I==null?0:(y=I.header)==null?0:y.showLeadingCollapsedLabel)&&!C};
_.u.captureContentClick=function(I){if(!this.disableExpand)if(_.V("expandable_metadata_fix_killswitch")){var C=I.target;_.O8b(C,"ytd-macro-markers-list-item-renderer")||I.stopPropagation();(C==null?void 0:C.id)==="scroll-container"&&(this.isExpanded=!this.isExpanded)}else _.m4(_.qc(I),this.hostElement,["items"])||_.q3(_.qc(I),this.hostElement,["BUTTON"])||(this.isExpanded=!this.isExpanded)};
_.u.timestampClick=function(I){I.stopPropagation();var C,y;(I=(C=this.data)==null?void 0:(y=C.header)==null?void 0:y.jumpToTimestampEndpoint)&&this.ytComponentBehavior.resolveCommand(I)};
_.u.onDown=function(I){I.stopPropagation();this.startX=I.detail?I.detail.x:0};
_.u.onUp=function(I){this.skipKeyInteraction(I)&&I.stopPropagation()};
_.u.skipKeyInteraction=function(I){var C=I.target;if((C==null?void 0:C.id)==="scroll-container"||(C==null?void 0:C.id)==="items"||I.detail&&I.detail.x!==this.startX)return!0;I=_.qc(I);I=_.T(I);for(C=I.next();!C.done;C=I.next()){C=C.value;if(C===this.hostElement)break;if(C.hasAttribute&&C.hasAttribute("skip-key-interaction"))return!0}return!1};
_.u.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.H1.Object.defineProperties(t2.prototype,{hasVideoSummary:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.l((I=this.data)==null?void 0:I.expandedContent,XKu)}},
hasLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.l((I=this.data)==null?void 0:I.expandedContent,_.wk5)}},
useCustomColors:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.useCustomColors)&&!((C=this.data)==null||!C.colorData)&&!this.isWatch}},
showInfoButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.infoButton)&&!!this.isExpanded}},
showTimestamp:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.data)==null?0:(C=I.header)==null?0:C.collapsedJumpToTimestamp)&&!this.isExpanded}},
showExpandedSubtitle:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.data)==null?0:(C=I.header)==null?0:C.expandedSubtitle)&&this.isExpanded}},
showThumbnail:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.data)==null?0:(C=I.header)==null?0:C.collapsedThumbnail)&&!this.isExpanded}},
useVppShoppingDestinationStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="EXPANDABLE_METADATA_STYLE_VPP_SHOPPING_DESTINATION"}}});
t2.prototype.onUp=t2.prototype.onUp;t2.prototype.onDown=t2.prototype.onDown;t2.prototype.isExpandedChanged=t2.prototype.isExpandedChanged;t2.prototype.dataChanged=t2.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],t2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],t2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],t2.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],t2.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],t2.prototype,"isExpanded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],t2.prototype,"disableExpand",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],t2.prototype,"isSearch",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],t2.prototype,"isWatch",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShowProminentLabel(data, isExpanded)"}),_.h("design:type",Object)],t2.prototype,"showProminentLabel",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShowRightSideLabel(data, isExpanded)"}),_.h("design:type",Object)],t2.prototype,"showRightSideLabel",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"hasVideoSummary",null);_.E([_.d({value:!1,reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"hasLockupViewModel",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"useCustomColors",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"showInfoButton",null);_.E([_.v("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"showTimestamp",null);_.E([_.v("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"showExpandedSubtitle",null);
_.E([_.v("data","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],t2.prototype,"showThumbnail",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],t2.prototype,"useVppShoppingDestinationStyle",null);_.E([_.d(),_.h("design:type",Object)],t2.prototype,"toggleExpandableContent",void 0);_.E([_.z$("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],t2.prototype,"JSC$12931_cardList",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeUseSquareThumbnail(data.useSquareThumbnail)"}),_.h("design:type",Object)],t2.prototype,"useSquareThumbnail",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t2.prototype,"dataChanged",null);_.E([_.FI("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t2.prototype,"isExpandedChanged",null);
_.E([_.km("down"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],t2.prototype,"onDown",null);_.E([_.km("up"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],t2.prototype,"onUp",null);t2=_.E([_.m({is:"ytd-expandable-metadata-renderer",disableElementRegistration:!0})],t2);
_.Z(t2,"ytd-expandable-metadata-renderer",function(){if(tTw!==void 0)return tTw;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-metadata-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" on-click="toggleExpandableContent" skip-key-interaction="" class="style-scope ytd-expandable-metadata-renderer">\n  <div id="left-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="thumbnail" hidden="[[!showThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-img-shadow object-fit="FILL" thumbnail="[[data.header.collapsedThumbnail]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-img-shadow>\n    </div>\n    <div id="prominent-collapsed-label" hidden="[[!showProminentLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string id="prominent-label-text" text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="timestamp" hidden="[[!showTimestamp]]" raised="" on-click="timestampClick" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedJumpToTimestamp]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="collapsed-title" hidden="[[isExpanded]]" role="button" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-formatted-string text="[[data.header.collapsedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expanded-title-subtitle-group" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon id="expanded-title-icon" disable-upgrade$="[[!data.header.expandedTitleIcon.iconType]]" hidden="[[!data.header.expandedTitleIcon.iconType]]" icon="[[data.header.expandedTitleIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <div id="expanded-title-subtitle-text" class="style-scope ytd-expandable-metadata-renderer">\n        <div id="expanded-title" class="style-scope ytd-expandable-metadata-renderer">\n          <yt-formatted-string text="[[data.header.expandedTitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n        </div>\n        <div id="expanded-subtitle" hidden="[[!showExpandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer">\n          <a class="yt-simple-endpoint style-scope ytd-expandable-metadata-renderer" href$="[[computeHref_(data.header.expandedSubtitleTapCommand)]]" data="[[data.header.expandedSubtitleTapCommand]]">\n            <yt-formatted-string text="[[data.header.expandedSubtitle]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n            <yt-icon disable-upgrade$="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" hidden="[[!data.header.expandedSubtitleTrailingIcon.iconType]]" icon="[[data.header.expandedSubtitleTrailingIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n            </yt-icon>\n          </a>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="right-section" class="style-scope ytd-expandable-metadata-renderer">\n    <div id="info" hidden="[[!showInfoButton]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapsed-label" hidden="[[!showRightSideLabel]]" class="style-scope ytd-expandable-metadata-renderer">\n      <yt-icon disable-upgrade$="[[!data.header.collapsedLabelIcon.iconType]]" hidden="[[!data.header.collapsedLabelIcon.iconType]]" icon="[[data.header.collapsedLabelIcon.iconType]]" class="style-scope ytd-expandable-metadata-renderer">\n      </yt-icon>\n      <yt-formatted-string text="[[data.header.collapsedLabel]]" class="style-scope ytd-expandable-metadata-renderer"></yt-formatted-string>\n    </div>\n    <div id="expand" hidden="[[isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n    <div id="collapse" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n  </div>\n</div>\n<div id="content" on-click="captureContentClick" class="style-scope ytd-expandable-metadata-renderer"></div>\n<div id="menu" hidden="[[!isExpanded]]" class="style-scope ytd-expandable-metadata-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tTw=I},{mode:1});var k1c,FHw=function(){if(k1c!==void 0)return k1c;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-video-renderer">\n  <ytd-thumbnail data="[[data]]" hovered="[[isHovered]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" use-untranslated-navigation-endpoint="[[hideTranslation]]" width="[[computeThumbnailWidth(isBackstageVideo, isPostCompactVideo, useSearchUi, useBiggerThumbs, biggerThumbsStyle, videoStyle)]]" class="style-scope ytd-video-renderer">\n  </ytd-thumbnail>\n  <div class="text-wrapper style-scope ytd-video-renderer" on-click="onTextWrapperClick">\n    <div id="meta" class="style-scope ytd-video-renderer">\n      <div id="title-wrapper" class="style-scope ytd-video-renderer">\n        <h3 class="title-and-badge style-scope ytd-video-renderer">\n          <ytd-badge-supported-renderer collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-video-renderer">\n          </ytd-badge-supported-renderer>\n          <a id="video-title" class="yt-simple-endpoint style-scope ytd-video-renderer" aria-label$="[[data.title.accessibility.accessibilityData.label]]" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" data="[[computedNavigationEndpoint]]">\n            <yt-icon id="inline-title-icon" hidden="[[hideInlineTitleIcon(hideTranslation, inlineTitleIcon)]]" icon="[[inlineTitleIcon]]" class="style-scope ytd-video-renderer">\n            </yt-icon>\n            <yt-formatted-string text="[[computeTitleText(hideTranslation, data.title, data.untranslatedTitle)]]" class="style-scope ytd-video-renderer">\n            </yt-formatted-string>\n          </a>\n        </h3>\n        <div id="menu" class="style-scope ytd-video-renderer"></div>\n      </div>\n      <ytd-video-meta-block data="[[data]]" no-byline="[[shouldShowChannelInfo]]" truncate-metadata-line="[[isRichGridVideoPost]]" class="style-scope ytd-video-renderer">\n      </ytd-video-meta-block>\n    </div>\n    <div id="channel-info" hidden="[[!shouldShowChannelInfo]]" class="style-scope ytd-video-renderer">\n      <a id="channel-thumbnail" hidden="[[!data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" aria-label$="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.accessibility.accessibilityData.label]]" href$="[[computeHref_(data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.navigationEndpoint)]]" class="style-scope ytd-video-renderer">\n        <yt-img-shadow thumbnail="[[data.channelThumbnailSupportedRenderers.channelThumbnailWithLinkRenderer.thumbnail]]" width="24" class="style-scope ytd-video-renderer">\n        </yt-img-shadow>\n      </a>\n      <ytd-channel-name id="channel-name" class="long-byline style-scope ytd-video-renderer" badges="[[data.ownerBadges]]" channel-name="[[data.longBylineText]]" wrap-text="true">\n      </ytd-channel-name>\n    </div>\n    <yt-formatted-string id="description-text" hidden="[[!data.descriptionSnippet]]" text="[[computeDescriptionSnippet(hideTranslation, data.descriptionSnippet, data.untranslatedDescriptionSnippet)]]" class="style-scope ytd-video-renderer">\n    </yt-formatted-string>\n    <template is="dom-repeat" items="[[data.detailedMetadataSnippets]]" hidden="[[!data.detailedMetadataSnippets]]" class="style-scope ytd-video-renderer">\n      <div class$="[[getMetadataSnippetContainerClass(item.maxOneLine)]] style-scope ytd-video-renderer">\n        <a class="yt-simple-endpoint metadata-snippet-timestamp style-scope ytd-video-renderer" aria-label$="[[item.snippetTimestamp.accessibility.accessibilityData.label]]" hidden="[[!item.snippetTimestamp]]" href$="[[computeHref_(item.timestampEndpoint)]]" data="[[item.timestampEndpoint]]">\n          <span id="time" class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetTimestamp)]]</span>\n          <yt-formatted-string class="metadata-snippet-text-navigation style-scope ytd-video-renderer" text="[[item.snippetText]]">\n          </yt-formatted-string>\n        </a>\n        <yt-formatted-string class="metadata-snippet-text style-scope ytd-video-renderer" hidden="[[item.snippetTimestamp]]" text="[[computeSnippetText(hideTranslation, item.snippetText, item.untranslatedSnippetText)]]">\n        </yt-formatted-string>\n        <tp-yt-paper-tooltip class="style-scope ytd-video-renderer">[[getSimpleString(item.snippetHoverText)]]</tp-yt-paper-tooltip>\n      </div>\n    </template>\n    <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" hidden-badge-groups="[[hiddenBadgeGroups]]" class="style-scope ytd-video-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="expandable-metadata" class="style-scope ytd-video-renderer"></div>\n    <div id="buttons" class="style-scope ytd-video-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-video-renderer"></div>\n<yt-interaction id="interaction" class="extended style-scope ytd-video-renderer"></yt-interaction>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return k1c=I};_.jz("itemSectionRenderer","videoRenderer","ytd-video-renderer");var J2=function(){var I=_.q.apply(this,arguments)||this;I.disableExpand=!1;I.shouldShowChannelInfo=!1;I.actionMap={"yt-hide-item-section-videos-by-id-command":"handleHideItemSectionVideosByIdCommand"};return I};
_.R(J2,_.q);_.u=J2.prototype;_.u.computeUseSearchUi=function(){var I,C;return this.isSearch||((I=this.data)==null?void 0:(C=I.style)==null?void 0:C.value)==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.u.computeUseThreeLineTitle=function(){var I;return((I=this.data)==null?void 0:I.maxTitleLines)===3};
_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"},initialRenderPriority:_.V("polymer_video_renderer_defer_menu")&&!Zoq?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]]"}}}}}};
_.u.attached=function(){_.a_(this.hostElement,"blue-links",_.V("kevlar_video_blue_links"));this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.dataChanged=function(){this.isHistory=window.location.pathname.indexOf("/feed/history")!==-1;_.Mc(_.f(this.hostElement).querySelector("#description-text"),"ellipsis-truncate",!!this.data.topStandaloneBadge);var I=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;I&&((C=_.l(I.commandMetadata,_.lv))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(I);this.updateInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$12936_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.JSC$12936_dismissibleMedia,thumbnailElement:this.thumbnail})};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$12936_inlinePreviewHoverListener)==null||oc(I)};
_.u.onTextWrapperClick=function(I){var C,y,k=this.hideTranslation?(C=this.data)==null?void 0:C.untranslatedNavigationEndpoint:(y=this.data)==null?void 0:y.navigationEndpoint;C=_.m4(_.qc(I),this.hostElement,["expandable-metadata"]);!k||C&&!_.V("expandable_metadata_fix_killswitch")||_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString()])||_.k3(this.hostElement,"yt-navigate",{endpoint:k})};
_.u.computeThumbnailWidth=function(I,C,y,k,F){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"?500:k?F==="MASSIVE"?600:F==="BIG"?500:F==="MEDIUM"?450:420:y?360:C?128:I?210:246};
_.u.computeUseBiggerThumbs=function(I){return I&&_.V("enable_desktop_search_bigger_thumbs")};
_.u.computeShouldShowChannelInfo=function(){return this.useSearchUi};
_.u.computeVideoStyle=function(){if(_.V("enable_video_style")){var I,C;return(I=this.data)==null?void 0:(C=I.style)==null?void 0:C.value}};
_.u.computeDisableExpand=function(){return this.videoStyle==="VIDEO_STYLE_TYPE_WITH_EXPANDED_METADATA"};
_.u.handleHideItemSectionVideosByIdCommand=function(I){var C;I=(C=_.l(I,tG5))==null?void 0:C.videoId;this.data&&this.data.videoId===I&&(this.isHidden=!0)};
_.u.getMetadataSnippetContainerClass=function(I){return I?"metadata-snippet-container-one-line":"metadata-snippet-container"};
_.u.computeTitleText=function(I,C,y){return I?y:C};
_.u.computeDescriptionSnippet=function(I,C,y){return I?y:C};
_.u.computeSnippetText=function(I,C,y){return I?y:C};
_.u.computeNavigationEndpoint=function(I,C){return I?C==null?void 0:C.untranslatedNavigationEndpoint:C==null?void 0:C.navigationEndpoint};
_.u.hideInlineTitleIcon=function(I,C){return I||!C};
_.H1.Object.defineProperties(J2.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 I;return(I=this.searchVideoResultEntity.hiddenBadgeGroups)!=null?I:[]}return[]}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$12936_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
_.H1.Object.defineProperties(J2,{template:{configurable:!0,enumerable:!0,get:function(){return FHw()}}});
J2.prototype.dataChanged=J2.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],J2.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],J2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],J2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],J2.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.KN),_.h("design:type",Object)],J2.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],J2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],J2.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],J2.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],J2.prototype,"isBackstageVideo",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],J2.prototype,"isPostCompactVideo",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],J2.prototype,"isHistory",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],J2.prototype,"isRichGridVideoPost",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],J2.prototype,"isHidden",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],J2.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0,value:!1,computed:"computeUseSearchUi(isSearch, data)"}),_.h("design:type",Boolean)],J2.prototype,"useSearchUi",void 0);_.E([_.d({reflectToAttribute:!0,value:!1,computed:"computeUseThreeLineTitle(data)"}),_.h("design:type",Boolean)],J2.prototype,"useThreeLineTitle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeUseBiggerThumbs(useSearchUi)"}),_.h("design:type",Boolean)],J2.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeVideoStyle(data.style.value)"}),_.h("design:type",Object)],J2.prototype,"videoStyle",void 0);_.E([_.d({computed:"computeDisableExpand(videoStyle)"}),_.h("design:type",Object)],J2.prototype,"disableExpand",void 0);
_.E([_.d({computed:"computeShouldShowChannelInfo(useSearchUi, data)"}),_.h("design:type",Object)],J2.prototype,"shouldShowChannelInfo",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],J2.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIcon_(data.inlineTitleIcon)"}),_.h("design:type",String)],J2.prototype,"inlineTitleIcon",void 0);_.E([_.d({computed:"computeNavigationEndpoint(hideTranslation, data)"}),_.h("design:type",Object)],J2.prototype,"computedNavigationEndpoint",void 0);_.E([_.d({selectorArgs:["data.searchVideoResultEntityKey"],selector:function(I,C){return _.cg(I.entities,"searchVideoResultEntity",C)}}),
_.h("design:type",Object)],J2.prototype,"searchVideoResultEntity",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],J2.prototype,"thumbnail",void 0);_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],J2.prototype,"JSC$12936_dismissibleMedia",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],J2.prototype,"dataChanged",null);
_.E([_.v("searchVideoResultEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],J2.prototype,"hideTranslation",null);_.E([_.v("searchVideoResultEntity"),_.h("design:type",Array),_.h("design:paramtypes",[])],J2.prototype,"hiddenBadgeGroups",null);_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],J2.prototype,"isHovered",null);J2=_.E([_.m({is:"ytd-video-renderer",disableElementRegistration:!0})],J2);
_.Z(J2,"ytd-video-renderer",function(){return FHw()},{mode:_.Ij("kevlar_poly_si_batch_j047")?1:2});var OA=function(){var I=_.q.apply(this,arguments)||this;I.editDialog=null;I.roundedContainer=!0;I.isLoading=!1;I.isRichGrid=!1;I.isRichGridRepost=!1;I.reduceSidePaddings=_.V("reduce_side_paddings_in_shelf");I.JSC$12942_spinnerEl=null;return I};
_.R(OA,_.q);_.u=OA.prototype;
_.u.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"}}}};
_.u.contentTextChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){var I=this;if(this.data){this.isLoading=!1;this.editDialog=null;for(var C=0,y=this.data.actions&&this.data.actions.length;C<y;C++)this.openEditDialog(_.l(this.data.actions[C],pzq));if((C=this.get("actionButtons.commentActionButtonsRenderer.shareButton",this.data))&&(C=this.get("buttonRenderer.hint.hintRenderer.hintId",C))&&C.startsWith("share-post-hint")){var k=this.get("children.dismissible.children.toolbar.children.action-buttons.children.toolbar.children.share-button",
this);if(k){_.tJ.getInstance();var F=JJ(_.Ee(_.PQ("SHARE_POST_EDU_TEXT")),"share-post-edu-displayed","OPEN_POPUP_POSITION_TOPRIGHT");_.b$.addLowPriorityJob(function(){_.cQ(I.hostElement,F,k)})}}}};
_.u.updatePoll=function(I){I>=0?this.actionButtons.reply():this.actionButtons.hideReplyDialog()};
_.u.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12942_spinnerEl||(this.JSC$12942_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f(this.hostElement).appendChild(this.JSC$12942_spinnerEl));this.JSC$12942_spinnerEl&&(this.JSC$12942_spinnerEl.active=this.isLoading)};
_.u.onYtNavigate=function(I){var C=this.get("updateCommentDialogEndpoint",I.detail.endpoint);C&&(this.openEditDialog(C),I.stopPropagation())};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.onYtCommentPollRevert=function(I,C){C&&this.updatePoll(C.selectedChoiceIndex)};
_.u.onYtServiceRequestSent=function(I,C){var y;C.endpoint&&(_.l(C.endpoint,dD0)||_.l(C.endpoint,W_w)&&((y=_.l(C.endpoint,W_w))==null||!y.clientActions))&&(this.isLoading=!0);if(C.actions)for(I=0;I<C.actions.length;I++)y=C.actions[I],_.l(y,VK)&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y==void 0&&(y=-1),this.updatePoll(y))};
_.u.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.u.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.editDialogEl.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.u.computeIsPostHidden=function(I,C){return!!I||C};
_.u.computeSurfaceType=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeUsesCompactLockup=function(I){return I==="BACKSTAGE_SURFACE_TYPE_HOME"||I==="BACKSTAGE_SURFACE_TYPE_SEARCH"||I==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||I==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||I==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||I==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.u.computeShowWithoutToolbar=function(I){return!I.actionButtons&&!I.actionMenu};
_.u.computePostAttachment=function(I){if(I.backstageAttachment){if(_.l(I.backstageAttachment,wVm))return"poll";if(_.l(I.backstageAttachment,aQP))return"quiz";if(_.l(I.backstageAttachment,_.VcY))return"video";if(_.l(I.backstageAttachment,M_w))return"uploaded-videos";if(_.l(I.backstageAttachment,HFm))return I.contentText?"image":"image-only";if(_.l(I.backstageAttachment,H65))return"playlist"}return"none"};
_.u.computePostTabIndex=function(I){return I?0:-1};
_.u.computeButtonTooltipPosition=function(I){return this.computeUsesCompactLockup(I)?"top":"bottom"};
_.u.computeHasText=function(I){return!(I==null||!I.contentText)};
_.u.onTap=function(I){var C,y;if(((C=this.data)==null?0:C.navigationEndpoint)&&((y=this.data)==null?void 0:y.surface)==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION")this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);else{var k;((k=this.data)==null?0:k.navigationEndpoint)&&!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"YTD-VIDEO-RENDERER","YTD-PLAYLIST-RENDERER"])&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.H1.Object.defineProperties(OA.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ee("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,wVm))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,M_w))}}});
OA.prototype.onYtServiceRequestCompleted=OA.prototype.onYtServiceRequestCompleted;OA.prototype.onYtServiceRequestSent=OA.prototype.onYtServiceRequestSent;OA.prototype.onYtCommentPollRevert=OA.prototype.onYtCommentPollRevert;OA.prototype.onYtCommentboxDismiss=OA.prototype.onYtCommentboxDismiss;OA.prototype.onYtNavigate=OA.prototype.onYtNavigate;OA.prototype.isLoadingChanged=OA.prototype.isLoadingChanged;OA.prototype.dataChanged=OA.prototype.dataChanged;OA.prototype.contentTextChanged=OA.prototype.contentTextChanged;
_.E([_.g(_.$x),_.h("design:type",Object)],OA.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OA.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],OA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],OA.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],OA.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],OA.prototype,"editDialog",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OA.prototype,"roundedContainer",void 0);_.E([_.d(),_.h("design:type",Object)],OA.prototype,"isLoading",void 0);_.E([_.d({computed:"computeSurfaceType(data.surface)",reflectToAttribute:!0}),_.h("design:type",String)],OA.prototype,"surface",void 0);
_.E([_.d({computed:"computeUsesCompactLockup(data.surface)",reflectToAttribute:!0}),_.h("design:type",Boolean)],OA.prototype,"usesCompactLockup",void 0);_.E([_.d({computed:"computeShowWithoutToolbar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],OA.prototype,"showWithoutToolbar",void 0);_.E([_.d({computed:"computePostAttachment(data)",reflectToAttribute:!0}),_.h("design:type",String)],OA.prototype,"attachment",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OA.prototype,"isRichGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OA.prototype,"isRichGridRepost",void 0);_.E([_.d({reflectToAttribute:!0,value:_.V("use_better_post_dismissals")}),_.h("design:type",Boolean)],OA.prototype,"useBetterPostDismissals",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OA.prototype,"reduceSidePaddings",void 0);
_.E([_.d({computed:"computeHasText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],OA.prototype,"hasText",void 0);_.E([_.z$("#expander"),_.h("design:type",Object)],OA.prototype,"expander",void 0);_.E([_.z$("#action-buttons"),_.h("design:type",Object)],OA.prototype,"actionButtons",void 0);_.E([_.z$("#edit-dialog"),_.h("design:type",HTMLElement)],OA.prototype,"editDialogEl",void 0);
_.E([_.FI("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OA.prototype,"contentTextChanged",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OA.prototype,"dataChanged",null);_.E([_.FI("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OA.prototype,"isLoadingChanged",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],OA.prototype,"onYtNavigate",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OA.prototype,"onYtCommentboxDismiss",null);_.E([_.km("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],OA.prototype,"onYtCommentPollRevert",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],OA.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],OA.prototype,"onYtServiceRequestCompleted",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OA.prototype,"voteCount",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OA.prototype,"commentCount",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],OA.prototype,"hasPoll",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],OA.prototype,"hasUploadedVideo",null);OA=_.E([_.m({is:"ytd-post-renderer",disableElementRegistration:!0})],OA);
_.Z(OA,"ytd-post-renderer",function(){if(Lmb!==void 0)return Lmb;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Lmb=I},{mode:1});var uA5;var zDm;var au=function(){return _.q.apply(this,arguments)||this};
_.R(au,_.q);au.prototype.configureRendererStamper=function(){return{"data.images":{id:"items",mapping:{backstageImageRenderer:{component:"ytd-backstage-image-renderer",properties:{surface:"[[surface]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],au.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],au.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],au.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],au.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],au.prototype,"data",void 0);
_.E([_.d({value:"$.items.children"}),_.h("design:type",String)],au.prototype,"itemsPath",void 0);_.E([_.d({value:1}),_.h("design:type",Number)],au.prototype,"initialCount",void 0);_.E([_.d(),_.h("design:type",String)],au.prototype,"surface",void 0);au=_.E([_.m({is:"ytd-post-multi-image-renderer",disableElementRegistration:!0})],au);
_.Z(au,"ytd-post-multi-image-renderer",function(){if(zDm!==void 0)return zDm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return zDm=I},{mode:_.Ij("kevlar_poly_si_batch_j079")?1:2});var TKw={"data.actionMenu":{id:"action-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.authorCommentBadge":{id:"author-comment-badge",mapping:{authorCommentBadgeRenderer:"ytd-author-comment-badge-renderer"}},"data.sponsorsOnlyBadge":{id:"sponsors-only-badge",mapping:{sponsorsOnlyBadgeRenderer:"ytd-sponsors-only-badge-renderer"}},"data.backstageAttachment":{id:"content-attachment",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isBackstageVideo:!0}},backstageImageRenderer:{component:"ytd-backstage-image-renderer",
properties:{surface:"[[data.surface]]"}},postMultiImageRenderer:{component:"ytd-post-multi-image-renderer",properties:{surface:"[[data.surface]]"}},playlistRenderer:{component:"ytd-playlist-renderer",params:{isBackstagePlaylist:!0}}}},editDialog:{id:"edit-dialog",mapping:{backstagePostDialogRenderer:"ytd-backstage-post-dialog-renderer"}}},Mr=function(){var I=_.q.apply(this,arguments)||this;I.hasInlineCommentSection=!1;I.editDialog=null;I.isLoading=!1;I.shouldHideAuthor=!1;I.shouldShowVideoTime=!1;
I.isInEngagementPanel=!1;I.hideBorder=!1;I.usesFullLockup=!1;I.shouldShowMenuInCompactView=!1;I.JSC$12958_spinnerEl=null;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.R(Mr,_.q);_.u=Mr.prototype;_.u.configureRendererStamper=function(){return TKw};
_.u.computeIsPollHeaderEnabled=function(I){return(I==null?void 0:I.pollMetadataIcon)!=null};
_.u.getPublishTimeStampString=function(I,C){C=new Date((Number(C)-60*((new Date).getTimezoneOffset()-(new Date(Number(C)*1E3)).getTimezoneOffset()))*1E3);C=(new Zk(10)).format(C);if(I&&I.runs&&I.runs.length)for(var y=0;y<I.runs.length;y++)I.runs[y].text&&(I.runs[y].text=I.runs[y].text.replace("POST_SCHEDULED_TIMESTAMP_PLACEHOLDER",C));return I};
_.u.created=function(){this.JSC$12958_spinnerEl=null};
_.u.contentTextChanged=function(){this.expander.reset()};
_.u.dataChanged=function(){this.isLoading=!1;this.editDialog=null;var I;if((I=this.data)==null?0:I.actions){I=_.T(this.data.actions);for(var C=I.next();!C.done;C=I.next())this.openEditDialog(_.l(C.value,pzq))}};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){_.f(this.hostElement).querySelector("#action-buttons").reply()};
_.u.updatePoll=function(I,C){C&&this.set("data.pollMetadataVoteCountText",C);this.hasInlineCommentSection&&(I=I>=0,C=_.f(this.hostElement).querySelector("#action-buttons"),I?C.reply():C.hideReplyDialog())};
_.u.isLoadingChanged=function(){!this.isLoading||this.editDialog||this.JSC$12958_spinnerEl||(this.JSC$12958_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f(this.hostElement).appendChild(this.JSC$12958_spinnerEl));this.JSC$12958_spinnerEl&&(this.JSC$12958_spinnerEl.active=this.isLoading)};
_.u.onYtNavigate=function(I){var C=this.get("updateCommentDialogEndpoint",I.detail.endpoint);C&&(this.openEditDialog(C),I.stopPropagation())};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.onYtCommentPollRevert=function(I,C){C&&this.updatePoll(C.selectedChoiceIndex,C.totalVotes)};
_.u.onYtServiceRequestSent=function(I,C){I.stopPropagation();I=_.l(C.endpoint,W_w);if(_.l(C.endpoint,dD0)||I&&!I.clientActions)this.isLoading=!0;if(C.actions)for(I=0;I<C.actions.length;I++){var y=C.actions[I],k=_.l(y,VK);k&&(y=this.get("updateBackstagePollAction.selectedChoiceIndex",y),y===void 0&&(y=-1),this.updatePoll(y,k.totalVotes))}};
_.u.onYtServiceRequestCompleted=function(){this.isLoading=!1};
_.u.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.editDialogElement.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.u.computeIsBodyHidden=function(I,C){return!!I||C};
_.H1.Object.defineProperties(Mr.prototype,{postTextMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.isInEngagementPanel?10:4}},
pollIcon:{configurable:!0,enumerable:!0,get:function(){var I,C;if((I=this.data)==null?0:(C=I.pollMetadataIcon)==null?0:C.iconType)return _.y5(this.data.pollMetadataIcon.iconType)}},
voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ee("0")}},
commentCount:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.commentCount}},
hasPoll:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,wVm))}},
hasQuiz:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,aQP))}},
hasUploadedVideo:{configurable:!0,enumerable:!0,get:function(){return!(!this.data.backstageAttachment||!_.l(this.data.backstageAttachment,M_w))}}});
Mr.prototype.onYtServiceRequestCompleted=Mr.prototype.onYtServiceRequestCompleted;Mr.prototype.onYtServiceRequestSent=Mr.prototype.onYtServiceRequestSent;Mr.prototype.onYtCommentPollRevert=Mr.prototype.onYtCommentPollRevert;Mr.prototype.onYtCommentboxDismiss=Mr.prototype.onYtCommentboxDismiss;Mr.prototype.onYtNavigate=Mr.prototype.onYtNavigate;Mr.prototype.isLoadingChanged=Mr.prototype.isLoadingChanged;Mr.prototype.dataChanged=Mr.prototype.dataChanged;Mr.prototype.contentTextChanged=Mr.prototype.contentTextChanged;
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Mr.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mr.prototype,"rendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Mr.prototype,"rendererstamperBehavior",void 0);_.E([_.z$("#contentTextExpander"),_.h("design:type",Object)],Mr.prototype,"expander",void 0);
_.E([_.z$("#edit-dialog"),_.h("design:type",Element)],Mr.prototype,"editDialogElement",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"hasInlineCommentSection",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"editDialog",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"isLoading",void 0);
_.E([_.d({computed:"computeIsPollHeaderEnabled(data)"}),_.h("design:type",Boolean)],Mr.prototype,"isPollHeaderEnabled",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"shouldHideAuthor",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"shouldShowVideoTime",void 0);_.E([_.d(),_.h("design:type",Object)],Mr.prototype,"isInEngagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mr.prototype,"hideBorder",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mr.prototype,"usesFullLockup",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mr.prototype,"shouldShowMenuInCompactView",void 0);_.E([_.v("isInEngagementPanel"),_.h("design:type",Number),_.h("design:paramtypes",[])],Mr.prototype,"postTextMaxLines",null);_.E([_.v("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mr.prototype,"pollIcon",null);
_.E([_.FI("data.contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mr.prototype,"contentTextChanged",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mr.prototype,"dataChanged",null);_.E([_.FI("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mr.prototype,"isLoadingChanged",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Mr.prototype,"onYtNavigate",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mr.prototype,"onYtCommentboxDismiss",null);_.E([_.km("yt-comment-poll-revert"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Mr.prototype,"onYtCommentPollRevert",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],Mr.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Mr.prototype,"onYtServiceRequestCompleted",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mr.prototype,"voteCount",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mr.prototype,"commentCount",null);_.E([_.v("data.backstageAttachment"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mr.prototype,"hasPoll",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mr.prototype,"hasQuiz",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Mr.prototype,"hasUploadedVideo",null);
Mr=_.E([_.m({is:"ytd-backstage-post-renderer",disableElementRegistration:!0})],Mr);
_.Z(Mr,"ytd-backstage-post-renderer",function(){if(uA5!==void 0)return uA5;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="body" hidden="[[computeIsBodyHidden(editDialog, isLoading)]]" class="style-scope ytd-backstage-post-renderer">\n  <div id="author-thumbnail" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]">\n      <yt-img-shadow fit="" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="main" class="style-scope ytd-backstage-post-renderer">\n    <div id="header" class="style-scope ytd-backstage-post-renderer">\n      <div id="header-author" hidden="[[shouldHideAuthor]]" class="style-scope ytd-backstage-post-renderer">\n        <a id="author-text" class="yt-simple-endpoint style-scope ytd-backstage-post-renderer" href$="[[computeHref_(data.authorEndpoint)]]" data="[[data.authorEndpoint]]" hidden="[[data.authorCommentBadge]]">\n          <span class="style-scope ytd-backstage-post-renderer">[[getSimpleString(data.authorText)]]</span>\n        </a>\n        <span id="author-comment-badge" hidden="[[!data.authorCommentBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n        <template is="dom-if" if="[[isPollHeaderEnabled]]" class="style-scope ytd-backstage-post-renderer">\n          <yt-icon id="poll-icon" icon="[[pollIcon]]" class="style-scope ytd-backstage-post-renderer"></yt-icon>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n          <yt-formatted-string class="poll-metadata-text style-scope ytd-backstage-post-renderer" text="[[data.pollMetadataVoteCountText]]">\n          </yt-formatted-string>\n          <span class="poll-metadata-text-separator style-scope ytd-backstage-post-renderer">\u00b7</span>\n        </template>\n        <yt-formatted-string id="published-time-text" link-inherit-color="" text="[[getPublishTimeStampString(data.publishedTimeText, data.scheduledPublishTimeSec)]]" class="style-scope ytd-backstage-post-renderer">\n        </yt-formatted-string>\n        <span id="sponsors-only-badge" hidden="[[!data.sponsorsOnlyBadge]]" class="style-scope ytd-backstage-post-renderer"></span>\n      </div>\n      <yt-formatted-string id="video-time-text" force-default-style="" hidden="[[!shouldShowVideoTime]]" link-inherit-color="" text="[[data.publishedTimeText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n    </div>\n    <ytd-expander id="contentTextExpander" max-number-of-lines="[[postTextMaxLines]]" class="style-scope ytd-backstage-post-renderer">\n      <yt-formatted-string id="voted-option" slot="content" disable-upgrade$="[[!data.prologueText]]" hidden="[[!data.prologueText]]" text="[[data.prologueText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="content-text" slot="content" dir="auto" force-default-style="" split-lines="" text="[[data.contentText]]" class="style-scope ytd-backstage-post-renderer">\n      </yt-formatted-string>\n      <span class="more-button style-scope ytd-backstage-post-renderer" slot="more-button">[[getSimpleString(data.expandButton.buttonRenderer.text)]]</span>\n      <span class="less-button style-scope ytd-backstage-post-renderer" slot="less-button">[[getSimpleString(data.collapseButton.buttonRenderer.text)]]</span>\n    </ytd-expander>\n    <div id="content-attachment" hidden="[[!data.backstageAttachment]]" class="style-scope ytd-backstage-post-renderer"></div>\n    <ytd-backstage-poll-renderer id="poll-attachment" aria-label$="[[data.backstageAttachment.pollRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.pollRenderer]]" disable-upgrade$="[[!hasPoll]]" hidden="[[!hasPoll]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-poll-renderer>\n    <ytd-backstage-quiz-renderer id="quiz-attachment" aria-label$="[[data.backstageAttachment.quizRenderer.accessibilityData.accessibilityData.label]]" data="[[data.backstageAttachment.quizRenderer]]" hidden="[[!hasQuiz]]" role="group" uses-panel-lockup$="[[isInEngagementPanel]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-backstage-quiz-renderer>\n    <ytd-post-uploaded-video-renderer id="uploaded-video-attachment" data="[[data.backstageAttachment.uploadedVideoRenderer]]" hidden="[[!hasUploadedVideo]]" role="group" class="style-scope ytd-backstage-post-renderer">\n    </ytd-post-uploaded-video-renderer>\n    <ytd-comment-action-buttons-renderer id="action-buttons" comment-count="[[commentCount]]" data="[[data.actionButtons.commentActionButtonsRenderer]]" has-poll="[[hasPoll]]" hidden="[[!data.actionButtons.commentActionButtonsRenderer]]" vote-count="[[voteCount]]" class="style-scope ytd-backstage-post-renderer">\n    </ytd-comment-action-buttons-renderer>\n  </div>\n\n  <div id="action-menu" class="style-scope ytd-backstage-post-renderer"></div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-backstage-post-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uA5=I},{mode:1});var cHd;var I9=function(){var I=_.q.apply(this,arguments)||this;I.editDialog=null;I.showExpandButton=!1;I.isRichGrid=!1;I.usesFullLockup=!1;return I};
_.R(I9,_.q);_.u=I9.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.editDialog=null;this.showExpandButton=this.computeShowExpandButton(this.data)};
_.u.computeShowExpandButton=function(I){return this.usesCompactLockup||I&&I.showFullContentText?!1:this.repostContentTextEl.scrollHeight>this.repostContentTextEl.clientHeight};
_.u.computeUsesCompactLockup=function(I){return!!I.condensedContent};
_.u.computeShowFullContentText=function(I){return!I};
_.u.onYtNavigate=function(I){I=this.get("updateCommentDialogEndpoint",I.detail.endpoint);this.openEditDialog(I)};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null};
_.u.openEditDialog=function(I){I&&I.dialog&&(this.editDialog=I.dialog,I=this.repostEditDialogEl.firstElementChild)&&(I.focus(),I.openDialog&&I.openDialog())};
_.u.onTap=function(I){if(this.data){var C=null;this.usesCompactLockup&&!_.q3(_.qc(I)||[],this.hostElement,["YT-IMG-SHADOW"])?C=this.get("navigationEndpoint",this.data):I.target===this.moreButtonEl&&(C=this.get("navigationEndpoint",I.target.data));C&&_.k3(this.hostElement,"yt-navigate",{endpoint:C})}};
I9.prototype.onYtCommentboxDismiss=I9.prototype.onYtCommentboxDismiss;I9.prototype.onYtNavigate=I9.prototype.onYtNavigate;I9.prototype.dataChanged=I9.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],I9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],I9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],I9.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],I9.prototype,"editDialog",void 0);_.E([_.d({computed:"computeUsesCompactLockup(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],I9.prototype,"usesCompactLockup",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I9.prototype,"showExpandButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I9.prototype,"isRichGrid",void 0);
_.E([_.d({computed:"computeShowFullContentText(data.showFullContentText)",reflectToAttribute:!0}),_.h("design:type",Boolean)],I9.prototype,"showFullContentText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I9.prototype,"usesFullLockup",void 0);_.E([_.z$("#more"),_.h("design:type",Object)],I9.prototype,"moreButtonEl",void 0);_.E([_.z$("#repost-content-text"),_.h("design:type",HTMLElement)],I9.prototype,"repostContentTextEl",void 0);
_.E([_.z$("#repost-edit-dialog"),_.h("design:type",HTMLElement)],I9.prototype,"repostEditDialogEl",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I9.prototype,"dataChanged",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],I9.prototype,"onYtNavigate",null);
_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I9.prototype,"onYtCommentboxDismiss",null);I9=_.E([_.m({is:"ytd-shared-post-renderer",disableElementRegistration:!0})],I9);
_.Z(I9,"ytd-shared-post-renderer",function(){if(cHd!==void 0)return cHd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cHd=I},{mode:1});var eD0;var rHc;var Co=function(){return _.q.apply(this,arguments)||this};
_.R(Co,_.q);Co.prototype.attached=function(){var I=this;this.networkStatusManager||(this.networkStatusManager=new _.mx,this.networkStatusManager.listen("publicytnetworkstatus-online",function(){I.onlineHandler()}))};
Co.prototype.detached=function(){var I=this;this.networkStatusManager&&(this.networkStatusManager.unlisten("publicytnetworkstatus-online",function(){I.onlineHandler()}),delete this.networkStatusManager)};
Co.prototype.onlineHandler=function(){this.data.serviceEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Co.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Co.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Co.prototype,"data",void 0);Co=_.E([_.m({disableElementRegistration:!0,is:"ytd-reload-page-button-renderer"})],Co);
_.Z(Co,"ytd-reload-page-button-renderer",function(){if(rHc!==void 0)return rHc;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return rHc=I},{mode:1});var iRm={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"},sp=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(sp,_.q);_.u=sp.prototype;_.u.attached=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.u.configureRendererStamper=function(){return{buttons:{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer",reloadPageButtonRenderer:"ytd-reload-page-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.u.computeHasBodyText=function(I){return!!I.bodyText};
_.u.computeButtons=function(I){var C=[];I.ctaButton&&C.push(I.ctaButton);I.secondaryButton&&C.push(I.secondaryButton);return C};
_.u.computeRendererStyle=function(I){return I.style?I.style.value.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():I.icon?"":"no-icon"};
_.u.getIconName=function(I,C){C=C===void 0?!1:C;if(I===void 0)return"";I=this.get("icon.iconType",I);var y;_.V("enable_hlp_client_icon_pick")?y=this.getThemedIcon(I,C):y=I;(C=iRm[y])||(C="yt-icons");return[C,y].join(":")};
_.u.getThemedIcon=function(I,C){return["HASHTAG_LANDING_PAGE_EMPTY","HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE"].includes(I)?C?"HASHTAG_LANDING_PAGE_EMPTY_DARK_MODE":"HASHTAG_LANDING_PAGE_EMPTY":["HASHTAG_LANDING_PAGE_ERROR","HASHTAG_LANDING_PAGE_ERROR_DARK_MODE"].includes(I)?C?"HASHTAG_LANDING_PAGE_ERROR_DARK_MODE":"HASHTAG_LANDING_PAGE_ERROR":I};
_.u.isThumbnail=function(I){return!!I.thumbnail};
_.u.onDarkModeToggledAction=function(){this.isDarkTheme=this.isAppDarkTheme()};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sp.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sp.prototype,"data",void 0);
_.E([_.d({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],sp.prototype,"rendererStyle",void 0);_.E([_.d({computed:"getIconName(data, isDarkTheme)",reflectToAttribute:!0}),_.h("design:type",String)],sp.prototype,"iconName",void 0);_.E([_.d({computed:"isThumbnail(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sp.prototype,"thumbnail",void 0);_.E([_.d({computed:"computeButtons(data)"}),_.h("design:type",Array)],sp.prototype,"buttons",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],sp.prototype,"isDarkTheme",void 0);_.E([_.d({computed:"computeHasBodyText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],sp.prototype,"hasBodyText",void 0);sp=_.E([_.m({is:"ytd-background-promo-renderer",disableElementRegistration:!0})],sp);
_.Z(sp,"ytd-background-promo-renderer",function(){if(eD0!==void 0)return eD0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eD0=I},{mode:1});var whe;var o9=function(){var I=_.q.apply(this,arguments)||this;I.collections=_.V("web_modern_collections_v2");return I};
_.R(o9,_.q);_.H1.Object.defineProperties(o9.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z;return{thumbnailSize:"small",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(k=y.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(z=F.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],o9.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],o9.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],o9.prototype,"collections",void 0);_.E([_.v("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],o9.prototype,"collectionStack",null);o9=_.E([_.m({is:"ytd-compact-station-renderer",disableElementRegistration:!0})],o9);
_.Z(o9,"ytd-compact-station-renderer",function(){if(whe!==void 0)return whe;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return whe=I},{mode:1});var nQw;var ys=function(){var I=_.q.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.R(ys,_.q);ys.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ys.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ys.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ys.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ys.prototype,"isRichGrid",void 0);ys=_.E([_.m({is:"ytd-grid-channel-renderer",disableElementRegistration:!0})],ys);
_.Z(ys,"ytd-grid-channel-renderer",function(){if(nQw!==void 0)return nQw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return nQw=I},{mode:1});var PSu;var kZ=function(){return _.q.apply(this,arguments)||this};
_.R(kZ,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kZ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kZ.prototype,"data",void 0);kZ=_.E([_.m({is:"ytd-grid-movie-playlist-renderer",disableElementRegistration:!0})],kZ);
_.Z(kZ,"ytd-grid-movie-playlist-renderer",function(){if(PSu!==void 0)return PSu;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return PSu=I},{mode:1});var LHS;var Fb=function(){var I=_.q.apply(this,arguments)||this;I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.modernButtons=_.V("web_modern_buttons");I.useModernCollectionsV2=_.V("web_modern_collections_v2");return I};
_.R(Fb,_.q);Fb.prototype.detached=function(){this.ytdLockupBehavior.lockupIsHovered=!1};
Fb.prototype.configureRendererStamper=function(){return{"data.menu":MV}};
Fb.prototype.dataChanged=function(){this.data&&this.transferStateChanged()};
Fb.prototype.transferStateChanged=function(){this.isDownloads=!1;if(this.transferState!=="TRANSFER_STATE_UNKNOWN"&&this.entityInfo&&!_.V("woffle_playlist_renderer_killswitch")){var I,C=uVH(this.entityInfo,this.transferState,this.downloadProgress,(I=this.data)==null?void 0:I.playlistId,this.isOnline);I=C.viewPlaylistText;var y=C.badges;C=C.thumbnailOverlays;this.isDownloads=!!I||!!y;this.set("data.viewPlaylistText",I);y&&y.length>0&&this.set("data.badges",y);C&&C.length>0&&this.set("data.thumbnailOverlays",
C)}};
_.H1.Object.defineProperties(Fb.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 I;return!((I=this.data)==null?0:I.menu)}}});
Fb.prototype.transferStateChanged=Fb.prototype.transferStateChanged;Fb.prototype.dataChanged=Fb.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fb.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],Fb.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Fb.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Fb.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d({selector:_.VVO,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],Fb.prototype,"downloadProgress",void 0);_.E([_.d({selector:_.AS,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],Fb.prototype,"transferState",void 0);_.E([_.d({selector:NOz,selectorArgs:["data.playlistId"]}),_.h("design:type",Object)],Fb.prototype,"entityInfo",void 0);_.E([_.d({selector:nfK}),_.h("design:type",Boolean)],Fb.prototype,"isOnline",void 0);
_.E([_.d(),_.h("design:type",Object)],Fb.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Fb.prototype,"downloadRenderData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Fb.prototype,"modernButtons",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Fb.prototype,"isDownloads",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Fb.prototype,"useModernCollectionsV2",void 0);
_.E([_.v("transferState"),_.d({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Fb.prototype,"downloadState",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Fb.prototype,"menuHidden",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fb.prototype,"dataChanged",null);
_.E([_.rW("transferState","downloadProgress","isOnline"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fb.prototype,"transferStateChanged",null);Fb=_.E([_.m({is:"ytd-grid-playlist-renderer",disableElementRegistration:!0})],Fb);
_.Z(Fb,"ytd-grid-playlist-renderer",function(){if(LHS!==void 0)return LHS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return LHS=I},{mode:1});var DNY;var u1=function(){var I=_.q.apply(this,arguments)||this;I.collections=_.V("web_modern_collections_v2");return I};
_.R(u1,_.q);u1.prototype.configureRendererStamper=function(){return{"data.menu":MV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H1.Object.defineProperties(u1.prototype,{collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(k=y.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(z=F.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],u1.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],u1.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],u1.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],u1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],u1.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],u1.prototype,"collections",void 0);_.E([_.v("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],u1.prototype,"collectionStack",null);u1=_.E([_.m({is:"ytd-grid-radio-renderer",disableElementRegistration:!0})],u1);
_.Z(u1,"ytd-grid-radio-renderer",function(){if(DNY!==void 0)return DNY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DNY=I},{mode:1});var ph5;var z7=function(){var I=_.q.apply(this,arguments)||this;I.useModernCollectionsV2=_.V("web_modern_collections_v2");return I};
_.R(z7,_.q);z7.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
z7.prototype.computeNavigationEndpoint=function(I){return xCK(I==null?void 0:I.navigationEndpoint)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],z7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],z7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],z7.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],z7.prototype,"data",void 0);_.E([_.d({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],z7.prototype,"computedNavigationEndpoint",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],z7.prototype,"useModernCollectionsV2",void 0);z7=_.E([_.m({is:"ytd-grid-show-renderer",disableElementRegistration:!0})],z7);
_.Z(z7,"ytd-grid-show-renderer",function(){if(ph5!==void 0)return ph5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ph5=I},{mode:1});var QXP;_.T7=function(I){this.playerClient=I};
_.NK8=function(I,C,y){y=y===void 0?{}:y;return I.playerClient.setOption("ad",C,y)};
_.T7.prototype.getOptions=function(){return this.playerClient.getOptions("ad")||[]};
_.T7.prototype.executeCommand=function(I,C){this.getOptions().includes("executeCommand")?_.NK8(this,"executeCommand",{command:I,layoutId:C}):_.Ml("Calling executeCommand when adModule is not loaded")};var ce=function(){return _.q.apply(this,arguments)||this};
_.R(ce,_.q);ce.prototype.getLayoutId=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
ce.prototype.onTap=function(){if(this.data&&this.data.clickthroughEndpoint){var I=_.hU(),C=this.getLayoutId(),y=this.data.clickthroughEndpoint;I&&C&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(k){(new _.T7(k)).executeCommand(y,C)}):_.k3(this.hostElement,"yt-navigate",{endpoint:y})}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ce.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ce.prototype,"data",void 0);ce=_.E([_.m({is:"ytd-shopping-companion-item-renderer",disableElementRegistration:!0})],ce);
_.Z(ce,"ytd-shopping-companion-item-renderer",function(){if(QXP!==void 0)return QXP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return QXP=I},{mode:1});var Vbq;var ev=function(){var I=_.q.apply(this,arguments)||this;I.isExpandableContent=!1;return I};
_.R(ev,_.q);_.H1.Object.defineProperties(ev.prototype,{showCta:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.ctaText)}},
ctaText:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.ctaText}},
hasPriceTopPosition:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutStyle)!=="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
hasPriceBottomPosition:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutStyle)==="VERTICAL_PRODUCT_CARD_LAYOUT_STYLE_SHOPPING_COLLECTION"}},
useNewStyle:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.useNewStyle}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
priceValue:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?void 0:I.price)||((C=this.data)==null?void 0:(y=C.dealsData)==null?void 0:y.currentPrice)}},
showDeal:{configurable:!0,enumerable:!0,get:function(){var I,C;if((I=this.data)!=null&&I.dealsData&&((C=this.data)==null||!C.priceReplacementText)){I=this.data.dealsData;var y,k,F;return((y=I.salesData)==null?void 0:y.originalPrice)||((k=I.priceDropData)==null?void 0:k.referencePrice)||((F=I.promotionData)==null?void 0:F.promotionLabel)}}},
showAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.affiliateDisclaimer)}},
useSaleStyle:{configurable:!0,enumerable:!0,get:function(){var I,C;return(I=this.data)==null?void 0:(C=I.dealsData)==null?void 0:C.salesData}},
useFromBrandCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_BRAND"}},
useFromVendorCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_FROM_VENDOR"}},
useShoppingCollectionCtaStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.ctaStyle)==="VERTICAL_PRODUCT_CARD_CTA_STYLE_SHOPPING_COLLECTION"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ev.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ev.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ev.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ev.prototype,"isExpandableContent",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"showCta",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"ctaText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"hasPriceTopPosition",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"hasPriceBottomPosition",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"useNewStyle",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"showPriceReplacementText",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"priceValue",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"showDeal",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"showAffiliateDisclaimer",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"useSaleStyle",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"useFromBrandCtaStyle",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"useFromVendorCtaStyle",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ev.prototype,"useShoppingCollectionCtaStyle",null);ev=_.E([_.m({disableElementRegistration:!0,is:"ytd-vertical-product-card-renderer"})],ev);
_.Z(ev,"ytd-vertical-product-card-renderer",function(){if(Vbq!==void 0)return Vbq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Vbq=I},{mode:1});var jXw;var rP=function(){return _.q.apply(this,arguments)||this};
_.R(rP,_.q);rP.prototype.configureRendererStamper=function(){return{"data.offerButton":{id:"offer-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],rP.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rP.prototype,"data",void 0);rP=_.E([_.m({disableElementRegistration:!0,is:"ytd-grid-movie-renderer"})],rP);
_.Z(rP,"ytd-grid-movie-renderer",function(){if(jXw!==void 0)return jXw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return jXw=I},{mode:1});var lXS;var i1=function(){var I=_.q.apply(this,arguments)||this;I.rounded=!0;I.itemStyle="small-item";return I};
_.R(i1,_.q);i1.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var I,C,y,k,F=(C=_.l((I=this.data)==null?void 0:I.buttonCommand,_.fzw))==null?void 0:(y=C.item)==null?void 0:(k=y.notificationTextRenderer)==null?void 0:k.successResponseText;F&&_.CoX(this.hostElement,F)}};
_.H1.Object.defineProperties(i1.prototype,{hasPrice:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.price)!==void 0}},
hasPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
hasAdditionalFeesText:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.additionalFeesText)!==void 0}},
hasAffiliateDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.affiliateDisclaimer)!==void 0}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.isProductPlaceholder)!==void 0&&((C=this.data)==null?void 0:C.isProductPlaceholder)}},
hideOpenInNewIcon:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.showOpenInNewIcon)===!1}},
ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityTitle?this.data.accessibilityTitle:this.data.title+", "+this.data.price+", "+this.data.additionalFeesText+", "+this.data.vendorName}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],i1.prototype,"ytRendererBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],i1.prototype,"rounded",void 0);_.E([_.d(),_.h("design:type",Object)],i1.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],i1.prototype,"itemStyle",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"hasPrice",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"hasPriceReplacementText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"hasAdditionalFeesText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"hasAffiliateDisclaimer",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"isProductPlaceholder",null);
_.E([_.d(),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"hideOpenInNewIcon",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],i1.prototype,"ariaLabel",null);i1=_.E([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-item-renderer"})],i1);
_.Z(i1,"ytd-merch-shelf-item-renderer",function(){if(lXS!==void 0)return lXS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lXS=I},{mode:1});var XhP=_.BO(function(I){var C=_.Es();_.ql(C,function(){return I.data().rendererContext});
return _.P("button-card-view-model",{el:C,class:"ytwButtonCardViewModelHost",tabindex:0,"aria-label":function(){return I.data().title},
role:"button"},_.P(_.nE,{model:{}}),_.P("div",{class:"ytwButtonCardViewModelHostContentContainer"},_.P("div",{class:"ytwButtonCardViewModelHostContentContainerIconContainer"},_.P(_.Dx,{cond:function(){return I.data().image},
then:function(y){return _.P(_.x$,{data:y,alt:function(){var k;return(k=I.data().title)!=null?k:""},
className:"ytwButtonCardViewModelHostImage"})}})),_.P("div",{class:"ytwButtonCardViewModelHostContentContainerTitleContainer"},function(){return I.data().title})))},"Ra");_.V("web_button_view_model_wcw_registration_killswitch")||_.B9(XhP,"button-card-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){I=_.ZB(I,{className:void 0});var C=I.data;I=I.className;var y=_.P4(function(){return C().onTapCommand},void 0,"NprDr");
return _.P("ytd-shopping-item-card",{class:_.sZ("ytdShoppingItemCardHost",I)},_.P(_.ik,{command:y,className:"ytdShoppingItemCardHostLink"},_.P("div",{class:"ytdShoppingItemCardHostThumbnailViewModel"},_.P(_.lY,{data:function(){return C().thumbnailViewModel}},{thumbnailViewModel:function(k){return _.P(_.Wx,{data:k.data,
aspectRatio:3})}})),_.P("div",null,_.P("p",{class:"ytdShoppingItemCardHostItemTitle"},_.P(_.wh,{text:function(){return C().itemTitle}})),_.P("p",{class:"ytdShoppingItemCardHostPrice"},_.P(_.wh,{text:function(){return C().priceOrStatus}})))))},"Sa"),"ytd-shopping-item-card",{props:{data:_.As,
className:_.As}});var Ic=null,saX={};var kmW="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(" "),wP={},FWs=(wP.FEwhat_to_watch="home",wP.FEhashtag="hashtag",wP.FEtrending="trending",wP.FEhistory="history",wP.SPunlimited="premium",wP.FEmemberships_and_purchases="paid_memberships",wP.SPredeem_code="redeem",wP.SPverify_location="locate",wP.SPminor_moment="minor_moment",
wP.FEmini_app_container="mini_app",wP.FEnews_destination="news",wP.SPopen_in_app="open_in_app",wP.FEexplore="explore",wP.FEsubscriptions="subscriptions",wP.FEsfv_audio_pivot="sfv_audio_pivot",wP.FEplaylist_aggregation="playlist_aggregation",wP);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");_.er("init");var $Nd=function(){},G1P=_.BO(function(I){var C=I.data;
var y=I.inlineMetadata;var k=I.aspectRatio;var F=I.scrimStyle;var z=I.className;var c=I.useDefaultStyle;var r=new $Nd,w=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",L=_.P4(function(){return(c==null?0:c())?w==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"x5GdUe"),D=_.P4(function(){return _.b0(y)||L()||!1},void 0,"pcPnBf"),p=function(){return(F==null?void 0:F())!==void 0?F==null?void 0:F():1};
I=_.Es(function(t){r&&(r.hostElement=t,S())});
_.a0(I,{visibilityCallback:function(t){var U=C().onFirstVisible;t&&U&&_.Gp(U)},
showOption:{calledOnce:!0,state:"visible"}});z=_.sZ("shortsLockupViewModelHost",z);var Q=_.Es(),X={};X=_.sZ(function(){return L(),"shortsLockupViewModelHostThumbnailContainer"},(X.shortsLockupViewModelHostThumbnailContainerAspectRatioTwoByThree=function(){return _.b0(k)===1},X.shortsLockupViewModelHostThumbnailContainerAspectRatioThreeByFour=function(){return _.b0(k)===2},X.shortsLockupViewModelHostThumbnailContainerRounded=function(){return!L()},X.shortsLockupViewModelHostThumbnailContainerCustomDimensions=
function(){return!_.V("web_shorts_2_by_3_lockups_study")&&!_.V("desktop_search_enable_two_by_three_shorts_aspect_ratio")},X));
var b,S=function(){if(r){var t;(t=b)==null||oc(t);var U;r.hostElement&&((U=r.data)==null?0:U.inlinePlayerData)&&(b=h9({mediaRenderer:r,lockupElement:r.hostElement,thumbnailElement:Q.value,videoPreviewOpts:cBz}))}};
_.l0(function(){r&&(r.data=C(),S())});
var A=_.P4(function(){return C().thumbnail},void 0,"FXJKOd"),x=_.P4(function(){return C().badge},void 0,"RHSDwe"),B=_.P4(function(){return C().onTap},void 0,"twXQme");
return _.P("ytm-shorts-lockup-view-model",{el:I,class:z},_.P(_.aF,null,_.P(_.ik,{command:B,className:_.sZ("shortsLockupViewModelHostEndpoint","reel-item-endpoint",""),ariaHidden:function(){return!D()},
tabIndex:function(){return D()?0:-1}},_.P("div",{el:Q,
class:X},_.P(_.Dx,{cond:A,then:function(){return _.P(_.x$,{data:function(){return A()},
alt:"",className:"shortsLockupViewModelHostThumbnail",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),null),_.P(_.Dx,{cond:D,
then:function(){return _.P(RDd,{data:C,scrimStyle:p,useDefaultStyle:c})}}),_.P(_.lY,{data:x},{badgeViewModel:function(t){return _.P(_.ml,{data:t.data,
class:"shortsLockupViewModelHostBadge",workaroundShortsIsThumbnailBadge:!0})}})),_.P(_.Dx,{cond:function(){return D()&&C().menuOnTap},
then:function(){return _.P(bRw,{data:C,inlineMetadata:!0})}}),_.P(_.Dx,{cond:function(){return!D()},
then:function(){return _.P(Y6u,{data:C,useDefaultStyle:c})}})))},"Ta"),RDd=_.BO(function(I){var C=I.data;
var y=I.scrimStyle;var k=I.useDefaultStyle;var F=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",z=k&&_.V("web_hide_primary_text_for_pivot_panel"),c=_.P4(function(){return(k==null?0:k())?F==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"qtqqA");
I={};I=_.sZ("shortsLockupViewModelHostInlineMetadata",(I.shortsLockupViewModelHostMetadataRounded=function(){return!c()},I.shortsLockupViewModelHostInlineMetadataShortScrim=function(){return(y==null?void 0:y())===3&&!_.V("enable_shorts_lockup_new_scrim")},I.shortsLockupViewModelHostInlineMetadataShortScrimNew=function(){return(y==null?void 0:y())===3&&_.V("enable_shorts_lockup_new_scrim")},I.shortsLockupViewModelHostInlineMetadataMediumScrim=function(){return(y==null?void 0:y())===2||(y==null?void 0:
y())===4},I.shortsLockupViewModelHostShowOverPlayer=function(){return!0},I),"image-overlay-text");
var r={};return _.P("div",{class:I},_.P("h3",{class:_.sZ("shortsLockupViewModelHostMetadataTitle",(r.shortsLockupViewModelHostMetadataTitleTextShadow=function(){return(y==null?void 0:y())===4},r)),
"aria-label":function(){return C().accessibilityText}},_.P(_.Dx,{cond:function(){var w;
return!((w=C().overlayMetadata)==null||!w.primaryText)&&!z},
then:function(){return _.P(_.wh,{text:function(){var w;return(w=C().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}})),_.P(_.Dx,{cond:function(){var w;
return(w=C().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.P(fXu,{data:C,scrimStyle:y,className:void 0})}}))},"Ua"),Y6u=_.BO(function(I){var C=I.data;
var y=I.useDefaultStyle;var k=_.V("web_enable_default_style_for_pivot_panel")?"SHORTS_LOCKUP_STYLE_UNKNOWN":"SHORTS_LOCKUP_STYLE_SLIM",F=_.P4(function(){return(y==null?0:y())?k==="SHORTS_LOCKUP_STYLE_SLIM":C().style==="SHORTS_LOCKUP_STYLE_SLIM"},void 0,"VQCGke");
I=_.sZ(function(){return F()?"shortsLockupViewModelHostOutsideMetadata":"shortsLockupViewModelHostOutsideMetadata shortsLockupViewModelHostMetadataRounded"},"image-overlay-text");
var z,c=_.uk(function(){var w;(w=z)==null||w.click();return!1}),r={};
return _.P("div",{class:I,"on:click":c},_.P("h3",{class:_.sZ("shortsLockupViewModelHostMetadataTitle","shortsLockupViewModelHostOutsideMetadataTitle","",(r.shortsLockupViewModelHostOutsideMetadataMissingTitle=function(){var w,L;return!((w=C().overlayMetadata)==null?0:(L=w.primaryText)==null?0:L.content)},r)),
"aria-label":function(){return C().accessibilityText}},_.P(_.ik,{ref:function(w){return void(z=w)},
command:function(){return C().onTap},
className:_.sZ("shortsLockupViewModelHostEndpoint","shortsLockupViewModelHostOutsideMetadataEndpoint"),title:function(){var w,L;return(w=C().overlayMetadata)==null?void 0:(L=w.primaryText)==null?void 0:L.content}},_.P(_.Dx,{cond:function(){return!!C().overlayMetadata},
then:function(){return _.P(_.wh,{text:function(){var w;return(w=C().overlayMetadata)==null?void 0:w.primaryText},
noEndpoints:!0,noStyleRuns:!0})}}))),_.P(_.Dx,{cond:function(){var w;
return(w=C().overlayMetadata)==null?void 0:w.secondaryText},
then:function(){return _.P(fXu,{data:C,className:"shortsLockupViewModelHostOutsideMetadataSubhead"})}}),_.P(_.Dx,{cond:function(){return C().menuOnTap},
then:function(){return _.P(bRw,{data:C,inlineMetadata:!1})}}))},"Va"),fXu=_.BO(function(I){var C=I.data;
var y=I.scrimStyle;I=I.className;var k={};return _.P("div",{class:_.sZ((k.shortsLockupViewModelHostMetadataSubhead=function(){return(y==null?void 0:y())!==4},k.shortsLockupViewModelHostMetadataSubheadNew=_.V("enable_shorts_lockup_new_scrim"),k.shortsLockupViewModelHostMetadataSubheadTextShadow=function(){return(y==null?void 0:y())===4},k),I),
"aria-hidden":"true"},_.P(_.wh,{text:function(){var F;return(F=C().overlayMetadata)==null?void 0:F.secondaryText},
noStyleRuns:!0}))},"Wa"),bRw=_.BO(function(I){var C=I.data;
var y=I.inlineMetadata;I={};I=_.sZ((I.shortsLockupViewModelHostInlineMetadataMenu=function(){return y()},I.shortsLockupViewModelHostOutsideMetadataMenu=function(){return!y()},I.shortsLockupViewModelHostShowOverPlayer=function(){return!0},I),"image-overlay-text");
return _.P("div",{class:I},_.P(aY,{data:function(){return{style:y()?"overlay":"mono",accessibilityLabel:C().menuOnTapA11yLabel,type:"text",state:"active",size:"M",iconPosition:"icon-only",onTap:function(k){k.preventDefault();k.stopPropagation();var F=_.Y$({elementsCommand:C().menuOnTap,forceNewState:!0});if(F==null?0:F.onclick)F.onclick(k)}}},
iconName:"MORE_VERT"}))},"Xa");var rBH=_.Qg({badgeViewModel:yRt}),TDt=function(){},S6e=_.ks(nJX),KHP=_.BO(function(I){var C=I.data;
var y=I.inlineMetadata;var k=I.aspectRatio;var F=I.scrimStyle;var z=I.className;var c=I.useDefaultStyle;I=_.P4(function(){var w=C().entityId;return w?w.replace("shorts-shelf-item-","").replace("subscriptions-",""):""},void 0,"FWALZc");
var r=_.V("web_shorts_lockup_view_model_sink")?G1P:S6e;return _.P("ytm-shorts-lockup-view-model-v2",{class:_.sZ("shortsLockupViewModelHost",z)},_.P(_.JFm,{contentId:I,aspectRatio:function(){return(k==null?void 0:k())===1?1:(k==null?void 0:k())===2?2:4}},function(){return _.P(r,{data:C,
inlineMetadata:y,aspectRatio:k,scrimStyle:F,className:z,useDefaultStyle:c})}))},"Ya");
_.MU(nJX);_.MU(eN9);_.MU(w69);_.MU(PoO);_.MU(iks);_.B9(KHP,"ytm-shorts-lockup-view-model-v2",{props:{data:_.Z_,inlineMetadata:_.Z_,aspectRatio:_.Z_,scrimStyle:_.Z_,className:_.Z_,useDefaultStyle:_.Z_}});var AHP=16/9*210,no=function(){var I=_.q.apply(this,arguments)||this;I.isExpandableContent=!1;I.hideShelfHeader=!1;I.engagementPanel=!1;I.buttonClasses=["arrow"];I.isSearch=!1;I.disableScrollEventListener=!1;I.containsLockup=!1;I.overrideArrowPositionForProductCard=!1;I.overrideArrowPositionForShoppingItemCard=!1;I.overrideArrowPositionForReelItems=!1;I.overrideArrowPositionForGridMovie=!1;I.overrideArrowPositionToCenter=!1;I.isSearchPostShelf=!1;I.overrideArrowPositionForMixedShelf=!1;I.overrideArrowPositionForMixedShelfShortsOnly=
!1;I.hasBigThumbsReelItems=!1;I.shouldUseMixedListHeight=!1;I.shouldUseShortsListHeight=!1;I.gridVideoWidth=0;I.isSearchVodShelf=!1;I.disableWheelScroll=!1;I.sizing="COMPACT";I.shortsLockupAspectRatio=0;return I};
_.R(no,_.q);_.u=no.prototype;
_.u.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]]"}}}}};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.data&&this.data.items&&(this.ytdHorizontalListBehavior.useFloorScrolling=this.computeContainsPost(this.data),this.maybeUpdateSearchReelItemDimensions(),_.V("web_horizontal_list_lockup_arrow_killswitch")||this.maybeUpdateLockupAspectRatio())};
_.u.computeInitialCountNumber=function(I){if(!I)return 6;var C=I.items.some(function(z){return!!z.topicRecommendationsChipRenderer}),y=I.items.some(function(z){return!!z.displayAdRenderer}),k=this.computeShouldListItemsHaveEqualHeight(I),F=I.items.some(function(z){return!!z.gridPlaylistRenderer});
I=I.items.some(function(z){return!!z.shoppingItemCardViewModel});
return C?9:y?8:F||k?10:I?7:6};
_.u.computeContainsPost=function(I){return!!I&&!!I.items&&I.items.some(function(C){return!!C.postRenderer})};
_.u.computeContainsLockup=function(){if(_.V("web_horizontal_list_lockup_arrow_killswitch"))return!1;var I,C;return(I=this.data)==null?void 0:(C=I.items)==null?void 0:C.some(function(y){return!!y.lockupViewModel})};
_.u.maybeUpdateLockupAspectRatio=function(){var I,C;if(this.computeContainsLockup()&&((I=this.data)==null?0:(C=I.items)==null?0:C.length)){var y;I=FHF((y=this.data.items[0].lockupViewModel)==null?void 0:y.contentType,this.data.force16By9ThumbnailAspectRatio);y=mII(I);y=this.computeLockupWidth()/y;_.CK(this.hostElement,{"--yt-horizontal-list-content-height":y+"px"})}};
_.u.computeOverrideArrowPositionForProductCard=function(I){if(this.isExpandableContent)return!1;var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){return!!y.verticalProductCardRenderer}))};
_.u.computeOverrideArrowPositionForShoppingItemCard=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){return!!y.shoppingItemCardViewModel}))};
_.u.computeOverrideArrowPositionForReelItemRenderer=function(I){return this.containsReelItemRenderer(I)};
_.u.computeHasBigThumbsReelItems=function(I,C){return I&&this.containsReelItemRenderer(C)};
_.u.computeShouldListItemsHaveEqualHeight=function(I){return"LIST_ITEM_SIZE_CONSTRAINT_EQUAL_HEIGHT"===(I==null?void 0:I.itemSizeConstraint)};
_.u.computeShouldListItemsHaveShortsHeight=function(I){return this.computeShouldListItemsHaveEqualHeight(I)&&!this.containsGridVideoRenderer(I)};
_.u.computeLockupWidth=function(){return this.isSearchVodShelf?360:210};
_.u.computeGridVideoWidth=function(){return this.shouldUseMixedListHeight?354:0};
_.u.containsReelItemRenderer=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){return!(!y.reelItemRenderer&&!y.shortsLockupViewModel)}))};
_.u.containsGridVideoRenderer=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){return!!y.gridVideoRenderer||!!y.lockupViewModel}))};
_.u.computeContainsGridMovieRenderer=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){return!!y.gridMovieRenderer}))};
_.u.computeOverrideArrowPositionToCenter=function(I){return this.computeIsSearchPostShelf(I)};
_.u.computeIsSearchPostShelf=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){var k,F;return((F=(k=y.postRenderer)==null?void 0:k.surface)!=null?F:"BACKSTAGE_SURFACE_TYPE_UNKNOWN")==="BACKSTAGE_SURFACE_TYPE_SEARCH"}))};
_.u.computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle=function(I){var C;return!!(I==null?0:(C=I.items)==null?0:C.some(function(y){var k,F,z;return((z=(k=y.backgroundPromoRenderer)==null?void 0:(F=k.style)==null?void 0:F.value)!=null?z:"BACKGROUND_PROMO_STYLE_TYPE_UNKNOWN")==="BACKGROUND_PROMO_STYLE_TYPE_EMBEDDED_CONTAINER"}))};
_.u.computeIsSearchVodShelf=function(I,C){return I&&this.containsGridVideoRenderer(C)};
_.u.computeDisableWheelScroll=function(I,C){return this.computeIsSearchVodShelf(I,C)};
_.u.computeSizing=function(){return this.isSearch?"STANDARD":"COMPACT"};
_.u.computeShortsLockupAspectRatio=function(I){return I&&_.V("web_shorts_2_by_3_lockups_no_search")&&!_.V("desktop_search_enable_two_by_three_shorts_aspect_ratio")?0:1};
_.u.maybeUpdateSearchReelItemDimensions=function(){this.isSearch&&this.hasBigThumbsReelItems&&_.CK(this.hostElement,{"--ytd-reel-item-thumbnail-height":AHP+"px"})};
no.prototype.dataChanged=no.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],no.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],no.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],no.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],no.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],no.prototype,"isExpandableContent",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"hideShelfHeader",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"engagementPanel",void 0);_.E([_.d(),_.h("design:type",Array)],no.prototype,"buttonClasses",void 0);_.E([_.d(),_.h("design:type",Object)],no.prototype,"isSearch",void 0);
_.E([_.d(),_.h("design:type",Object)],no.prototype,"disableScrollEventListener",void 0);_.E([_.d({computed:"computeInitialCountNumber(data)"}),_.h("design:type",Number)],no.prototype,"initialCount",void 0);_.E([_.d({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],no.prototype,"supportComponentResize",void 0);_.E([_.d({computed:"computeContainsPost(data)"}),_.h("design:type",Boolean)],no.prototype,"containsPost",void 0);
_.E([_.d({computed:"computeContainsLockup(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"containsLockup",void 0);_.E([_.d({computed:"computeContainsBackgroundPromoRendererWithEmbeddedContainerStyle(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],no.prototype,"containsBackgroundPromoRendererWithEmbeddedContainerStyle",void 0);
_.E([_.d({computed:"computeOverrideArrowPositionForProductCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForProductCard",void 0);_.E([_.d({computed:"computeOverrideArrowPositionForShoppingItemCard(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForShoppingItemCard",void 0);
_.E([_.d({computed:"computeOverrideArrowPositionForReelItemRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForReelItems",void 0);_.E([_.d({computed:"computeContainsGridMovieRenderer(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForGridMovie",void 0);
_.E([_.d({computed:"computeOverrideArrowPositionToCenter(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionToCenter",void 0);_.E([_.d({computed:"computeIsSearchPostShelf(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"isSearchPostShelf",void 0);_.E([_.d({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForMixedShelf",void 0);
_.E([_.d({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"overrideArrowPositionForMixedShelfShortsOnly",void 0);_.E([_.d({computed:"computeHasBigThumbsReelItems(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"hasBigThumbsReelItems",void 0);
_.E([_.d({computed:"computeShouldListItemsHaveEqualHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"shouldUseMixedListHeight",void 0);_.E([_.d({computed:"computeShouldListItemsHaveShortsHeight(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"shouldUseShortsListHeight",void 0);_.E([_.d({computed:"computeGridVideoWidth(data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"gridVideoWidth",void 0);
_.E([_.d({computed:"computeIsSearchVodShelf(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"isSearchVodShelf",void 0);_.E([_.d({computed:"computeDisableWheelScroll(isSearch, data)",reflectToAttribute:!0}),_.h("design:type",Object)],no.prototype,"disableWheelScroll",void 0);_.E([_.d({computed:"computeSizing(isSearch)"}),_.h("design:type",Object)],no.prototype,"sizing",void 0);
_.E([_.d({computed:"computeShortsLockupAspectRatio(isSearch)"}),_.h("design:type",Object)],no.prototype,"shortsLockupAspectRatio",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],no.prototype,"dataChanged",null);
_.Z(no,"yt-horizontal-list-renderer",function(){if(XGe===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);XGe=I}I=XGe;return I},{mode:1});var gQw;var vQw=[10,12,14,16,18,20,24,28,32,36],WHP=[20,22,24,26,28,32,36,40,48,56,64,72,84,96,120],Pe=function(){var I=_.q.apply(this,arguments)||this;I.fontFamily="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD";I.hideOverflow=!1;I.useRoboto=!1;I.fontClass="";I.overflown=!1;I.actionMap={"yt-window-resized":"resize"};return I};
_.R(Pe,_.q);_.u=Pe.prototype;
_.u.attached=function(){var I=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();_.hn(this,function(){I.resize()});
if(!_.F8){var C,y,k;(C=document)==null||(y=C.fonts)==null||(k=y.ready)==null||k.then(function(){I.resize()})}};
_.u.dataChanged=function(){this.resize()};
_.u.guideIsExpandedChanged=function(){this.resize()};
_.u.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 I=this.getMaxNumLines(),C=this.getMinFont(),y=this.getMaxFont(),k=this.useRoboto?vQw:WHP;for(k=k.filter(function(z){return z<=y&&z>=C});k.length>1;){var F=Math.floor(k.length/2);
this.updateFontSize(k[F]);if(this.textNode.offsetWidth<=this.getMaxWidth()&&this.textNode.offsetHeight<=this.getMaxHeight()&&this.textNode.getClientRects().length<=I)k=k.slice(F,k.length);else if(this.textNode.offsetWidth>this.getMaxWidth()||this.textNode.offsetHeight>this.getMaxHeight()||this.textNode.getClientRects().length>I)k=k.slice(0,F);else break}this.updateFontSize(k[k.length-1]);this.textNode.style.visibility="inherit";this.handleOverflow(I)}};
_.u.handleOverflow=function(I){this.hideOverflow&&this.maxLines&&this.textNode.getClientRects().length>I&&(this.overflown=!0,this.textNode.classList.add("overflown"),this.textNode.style.setProperty("-webkit-line-clamp",I.toString()))};
_.u.updateFontSize=function(I){this.fontClass&&this.textNode.classList.remove(this.fontClass);this.fontClass=(this.useRoboto?"roboto-":"yt-sans-")+I;this.textNode.classList.add(this.fontClass)};
_.u.getMaxFont=function(){var I=this.useRoboto?vQw:WHP;I=I[I.length-1];return this.maxFontSize&&this.maxFontSize<=I?this.maxFontSize:I};
_.u.getMinFont=function(){var I=(this.useRoboto?vQw:WHP)[0];return this.minFontSize&&this.minFontSize>=I?this.minFontSize:I};
_.u.getMaxWidth=function(){return this.maxWidth?this.maxWidth:this.containerNode.offsetWidth};
_.u.getMaxHeight=function(){return this.maxHeight?this.maxHeight:this.containerNode.offsetHeight};
_.u.getMaxNumLines=function(){return this.maxLines&&this.text?this.maxLines+_.hS(this.text).split("\n").length-1:Infinity};
_.u.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("Gh`"+this.fontWeight);this.textNode.style.fontWeight=this.fontWeight.toString()}};
Pe.prototype.guideIsExpandedChanged=Pe.prototype.guideIsExpandedChanged;Pe.prototype.dataChanged=Pe.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Pe.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Pe.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Pe.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Pe.prototype,"text",void 0);
_.E([_.d(),_.h("design:type",String)],Pe.prototype,"fontFamily",void 0);_.E([_.d(),_.h("design:type",Number)],Pe.prototype,"maxWidth",void 0);_.E([_.d(),_.h("design:type",Number)],Pe.prototype,"maxHeight",void 0);_.E([_.d(),_.h("design:type",Number)],Pe.prototype,"maxFontSize",void 0);_.E([_.d(),_.h("design:type",Number)],Pe.prototype,"minFontSize",void 0);_.E([_.d(),_.h("design:type",Number)],Pe.prototype,"maxLines",void 0);_.E([_.d(),_.h("design:type",Object)],Pe.prototype,"hideOverflow",void 0);
_.E([_.d({selector:_.TOF}),_.h("design:type",Boolean)],Pe.prototype,"guideIsExpanded",void 0);_.E([_.z$("#container"),_.h("design:type",HTMLElement)],Pe.prototype,"containerNode",void 0);_.E([_.z$("#text"),_.h("design:type",HTMLElement)],Pe.prototype,"textNode",void 0);_.E([_.rW("text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pe.prototype,"dataChanged",null);
_.E([_.rW("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pe.prototype,"guideIsExpandedChanged",null);Pe=_.E([_.m({disableElementRegistration:!0,is:"yt-dynamic-sizing-formatted-string"})],Pe);
_.Z(Pe,"yt-dynamic-sizing-formatted-string",function(){if(gQw!==void 0)return gQw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return gQw=I},{mode:1});var dNq;_.xN5=function(I){_.Im.call(this,I)};
_.R(_.xN5,_.Im);var q68=function(I){_.Im.call(this,I)};
_.R(q68,_.xN5);var Lo=function(){return _.q.apply(this,arguments)||this};
_.R(Lo,_.q);Lo.prototype.onTapSuspendedChannel=function(){var I;if((I=this.data)!=null&&I.serviceEndpoint){var C,y;(I=(y=_.l((C=this.data)==null?void 0:C.serviceEndpoint,_.xo))==null?void 0:y.url)?_.Yk(I,void 0,void 0,window.top):(C=new q68("Did not handle suspended account tap. No appealUrl."),_.GB(C))}else C=new q68("Did not handle suspended account tap. No serviceEndpoint."),_.GB(C)};
Lo.prototype.onTap=function(){var I=this,C=_.e2(),y,k=(y=_.c9(C,{veType:7116}))!=null?y:void 0;_.Sz(C,{visualElement:k});_.R_();this.saveRoleText();var F;if((F=this.data)==null?0:F.youtubeSuspended)this.onTapSuspendedChannel();else{var z=!1,c,r;(C=(r=_.l((c=this.data)==null?void 0:c.serviceEndpoint,_.Efw))==null?void 0:r.supportedTokens)&&C.forEach(function(w){if(w.accountSigninToken)if(z=!0,I.onAccountItemTap)I.onAccountItemTap(w.accountSigninToken.signinUrl);else _.Yk(w.accountSigninToken.signinUrl,
void 0,void 0,window.top)});
if(!z){if(c=this.get("serviceEndpoint",this.data))z=!0,this.ytComponentBehavior.resolveCommand(c);z||_.fi(new q68("Did not handle account switch tap. No token."))}}};
Lo.prototype.saveRoleText=function(){if(this.data){var I=this.data,C=I.channelDelegationRole;if(C){var y,k=(y=_.l(I==null?void 0:I.serviceEndpoint,_.Efw))==null?void 0:y.supportedTokens;if(!k){var F,z,c,r;k=(F=_.l(I==null?void 0:I.serviceEndpoint,_.jV))==null?void 0:(z=F.popup)==null?void 0:(c=z.confirmDialogRenderer)==null?void 0:(r=c.confirmButton)==null?void 0:r.buttonRenderer;var w;k=(w=_.l(k==null?void 0:k.command,_.r9))==null?void 0:w.commands;if(!k)return;var L;k=(L=_.l(k[1],_.Efw))==null?
void 0:L.supportedTokens}if(k){w=void 0;L=_.T(k);for(k=L.next();!k.done;k=L.next())if(k=k.value,k.datasyncIdToken){w=k.datasyncIdToken.datasyncIdToken;break}if(w){var D;a:{if(_.HXz()&&(L=_.y$W(w+"::pom"))){L=new zZ(L);break a}L=void 0}(D=L)==null||D.set("role_text",C);if((uwm?uwm:window.location).href.indexOf("studio")!==-1&&(D=tDm())){L=D.src?(new URL(D.src)).origin:"*";var p;(p=D.contentWindow)==null||p.postMessage({action:"save_pom_role",datasyncId:w,roleText:C},L)}}}}}};
_.H1.Object.defineProperties(Lo.prototype,{enableRingForActiveAccount:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isSelected)}},
thumbnailSize:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.accountPhoto)==null?void 0:C.thumbnails;return y&&y.length>0&&(y[0].height===36||y[0].height===48)?y[0].height:40}}});
Lo.prototype.onTap=Lo.prototype.onTap;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Lo.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Lo.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Lo.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Function)],Lo.prototype,"onAccountItemTap",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Lo.prototype,"enableRingForActiveAccount",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Lo.prototype,"thumbnailSize",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lo.prototype,"onTap",null);Lo=_.E([_.m({is:"ytd-account-item-renderer",disableElementRegistration:!0})],Lo);
_.Z(Lo,"ytd-account-item-renderer",function(){if(dNq!==void 0)return dNq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return dNq=I},{mode:1});var mNS;var Dw=function(){return _.q.apply(this,arguments)||this};
_.R(Dw,_.q);Dw.prototype.onClickEditIcon=function(){this.data&&this.data.onTapCommand&&_.N().resolve(_.ID).resolveCommand(this.data.onTapCommand,{form:{element:this.hostElement}})};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Dw.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Dw.prototype,"data",void 0);Dw=_.E([_.m({is:"ytd-identity-chip-renderer",disableElementRegistration:!0})],Dw);
_.Z(Dw,"ytd-identity-chip-renderer",function(){if(mNS!==void 0)return mNS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mNS=I},{mode:1});var ZR8;var BKw;var EQb;var hDY;var po=function(){var I=_.q.apply(this,arguments)||this;I.richItemMinWidth=_.s8("wn_grid_min_item_width",310);I.isShorts=!1;I.isWatchNext=!1;I.isExploreHub=!1;return I};
_.R(po,_.q);_.H1.Object.defineProperties(po.prototype,{cardItems:{configurable:!0,enumerable:!0,get:function(){var I=[],C=this.isShorts?this.slimItemsPerRow:this.itemsPerRow;this.isWatchNext&&_.CK(this.hostElement,{"--ytd-ghost-grid-items-per-row":""+this.itemsPerRow,"--ytd-ghost-grid-min-width":this.richItemMinWidth+"px"});var y;if(((y=this.data)==null?0:y.rows)&&C)for(C*=this.data.rows,y=0;y<C;y++)I.push({});return I}}});
_.E([_.g(_.lZ),_.h("design:type",Object)],po.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],po.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],po.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.Y9,value:3}),_.h("design:type",Number)],po.prototype,"itemsPerRow",void 0);_.E([_.d({selector:_.zSz,value:6}),_.h("design:type",Number)],po.prototype,"slimItemsPerRow",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Number)],po.prototype,"richItemMinWidth",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],po.prototype,"miniMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],po.prototype,"isShorts",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],po.prototype,"isWatchNext",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],po.prototype,"isExploreHub",void 0);
_.E([_.v("data.rows","isShorts","slimItemsPerRow","itemsPerRow"),_.h("design:type",Array),_.h("design:paramtypes",[])],po.prototype,"cardItems",null);po=_.E([_.m({is:"ytd-ghost-grid-renderer",disableElementRegistration:!0})],po);
_.UNq=_.MH()(po,"ytd-ghost-grid-renderer",function(){if(hDY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);hDY=I}I=hDY;return I},{allowedProps:["data",
"isShorts","isWatchNext","isExploreHub","richItemMinWidth"],mode:1});_.B9(_.BO(function(I){var C=_.ZB(I,{numberOfComments:3}).numberOfComments,y=_.ZB(I,{isInitialLoad:!1}).isInitialLoad,k=_.XU(_.fx),F=function(){return Math.min(Number(C==null?void 0:C())||20,20)};
return _.P("yt-ghost-comments",{class:"ytGhostCommentsHost"},_.P(_.Dx,{cond:function(){return(k==null?void 0:k())&&(y==null?void 0:y())},
then:function(){return _.P("div",{class:"ytGhostCommentsComments"},_.P("div",{class:"ytGhostCommentsGhostCommentsHeader"},_.P("div",{class:_.sZ("ytGhostCommentsGhostCommentCount","ytGhostCommentsGhostFill")}),_.P("div",{class:_.sZ("ytGhostCommentsGhostSort","ytGhostCommentsGhostFill")})),_.P("div",{class:"ytGhostCommentsGhostCard"},_.P("div",{class:"ytGhostCommentsAvatar"},_.P("div",{class:"ytGhostCommentsCircle"})),_.P("div",{class:"ytGhostCommentsComments"},_.P("div",{class:"ytGhostCommentsMeta"},
_.P("div",{class:_.sZ("ytGhostCommentsGhostInputPlaceholder","ytGhostCommentsGhostFill")})),_.P("div",{class:_.sZ("ytGhostCommentsGhostInputUnderline","ytGhostCommentsGhostFill")}))))}}),_.P("div",{class:"ytGhostCommentsComments"},_.P(_.pH,{each:function(){return Array((F==null?void 0:F())||3)}},function(){return _.P("div",{class:"ytGhostCommentsGhostCard"},_.P("div",{class:"ytGhostCommentsAvatar"},_.P("div",{class:"ytGhostCommentsCircle"})),_.P("div",{class:"ytGhostCommentsHost"},_.P("div",{class:"ytGhostCommentsMeta"},
_.P("div",{class:_.sZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")})),_.P("div",{class:_.sZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:_.sZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:"ytGhostCommentsGhostLikeDislike"},_.P("div",{class:_.sZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}),_.P("div",{class:_.sZ("ytGhostCommentsGhostText","ytGhostCommentsGhostFill")}))))})))},"Za"),"yt-ghost-comments",{props:{numberOfComments:_.As,
isInitialLoad:_.As}});_.jz("multiPageMenuSectionItems","continuationItemRenderer","ytd-continuation-item-renderer");var Qs=function(){var I=_.q.apply(this,arguments)||this;I.isOverridable=!1;I.spinnerActive=!1;I.showButton=!1;I.isCommentsSection=!1;I.isShortsGrid=!1;I.isShortsPage=!1;I.isWatchPage=!1;I.ghostCardExperimentEnabled=_.V("show_ghost_comments_shorts_watch")||_.V("show_ghost_comments_desktop_watch");I.originalShowButton=!1;I.endOfList=!1;return I};
_.R(Qs,_.q);_.u=Qs.prototype;_.u.resetIntersectionObserver=function(){var I;(I=this.observer)==null||I.disconnect();this.observer=void 0};
_.u.triggerContinuation=function(){if(!this.showButton&&!this.endOfList){this.spinnerActive=!0;var I,C;((I=this.data)==null?void 0:I.trigger)==="CONTINUATION_TRIGGER_ON_ITEM_SHOWN"&&((C=this.data)==null?0:C.continuationEndpoint)&&this.ytComponentBehavior.resolveCommand(this.data.continuationEndpoint)}};
_.u.initializeIntersectionObserver=function(){var I=this;this.resetIntersectionObserver();this.continuationTriggerOffset&&(this.observer=new IntersectionObserver(function(C){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y.value.isIntersecting&&(I.triggerContinuation(),I.resetIntersectionObserver())},{rootMargin:"0px 0px "+this.continuationTriggerOffset+"px",
threshold:0}),this.observer.observe(this.hostElement))};
_.u.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},isShortsCommentsSection:{id:"ghost-comment-section",mapping:{ghostEngagementPanelRenderer:{component:"yt-ghost-comments"}}},"data.ghostCards":{id:"ghost-cards",mapping:{ghostGridRenderer:{component:"ytd-ghost-grid-renderer",properties:{isShorts:"[[isShortsGrid]]"}}}}}};
_.u.observeData=function(){this.endOfList=this.spinnerActive=!1;this.ytRendererBehavior.invalidate(!1);var I;((I=this.data)==null?0:I.continuationEndpoint)&&(I=_.l(this.data.continuationEndpoint,_.R8))&&this.ytdReduxBehavior.dispatch(_.yE({type:"SET_CONTINUATION_COMMAND",payload:{continuationCommand:I}}))};
_.u.onShow=function(){this.numberOfGhostCommentsChanged();this.continuationTriggerOffset||this.triggerContinuation()};
_.u.onYtServiceRequestSentForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!0,this.originalShowButton=this.showButton,this.showButton=!1)};
_.u.onServiceRequestCompleted=function(I,C){if(!_.V("kevlar_hide_spinner_on_empty_continuation_killswitch")){var y;(y=C.actions)!=null&&y.length||(this.spinnerActive=!1,this.endOfList=!0)}};
_.u.onYtServiceRequestCompletedForButtonRenderer=function(){this.buttonRenderer&&(this.spinnerActive=!1,this.showButton=this.originalShowButton)};
_.u.showButtonChanged=function(){this.showButton&&(this.spinnerActive=!1);this.ytRendererBehavior.invalidate(!1)};
_.u.continuationTriggerOffsetChanged=function(){this.initializeIntersectionObserver()};
_.u.numberOfGhostCommentsChanged=function(){if(this.ghostCardExperimentEnabled){var I=3;if(this.isShortsPage){var C,y,k;I=Math.floor(((((C=this.hostElement)==null?void 0:(y=C.parentElement)==null?void 0:(k=y.parentElement)==null?void 0:k.scrollHeight)||108)-108)/108);I=this.isInitialLoad?Math.max(I,3):3}C=[].concat(_.Py(this.hostElement.querySelectorAll("yt-ghost-comments")));C=_.T(C);for(y=C.next();!y.done;y=C.next())y=y.value,y.numberOfComments=I,y.isInitialLoad=this.isInitialLoad}};
_.u.detached=function(){this.resetIntersectionObserver()};
_.H1.Object.defineProperties(Qs.prototype,{isShortsCommentsSection:{configurable:!0,enumerable:!0,get:function(){return _.V("show_ghost_comments_shorts_watch")&&this.isShortsPage&&this.isCommentsSection&&!this.showButton||_.V("show_ghost_comments_desktop_watch")&&this.isWatchPage&&this.isCommentsSection&&!this.showButton?{ghostEngagementPanelRenderer:!0}:!1}}});
Qs.prototype.numberOfGhostCommentsChanged=Qs.prototype.numberOfGhostCommentsChanged;Qs.prototype.continuationTriggerOffsetChanged=Qs.prototype.continuationTriggerOffsetChanged;Qs.prototype.showButtonChanged=Qs.prototype.showButtonChanged;Qs.prototype.onYtServiceRequestCompletedForButtonRenderer=Qs.prototype.onYtServiceRequestCompletedForButtonRenderer;Qs.prototype.onServiceRequestCompleted=Qs.prototype.onServiceRequestCompleted;Qs.prototype.onYtServiceRequestSentForButtonRenderer=Qs.prototype.onYtServiceRequestSentForButtonRenderer;
Qs.prototype.observeData=Qs.prototype.observeData;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Qs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Qs.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],Qs.prototype,"ytVisibilityBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Qs.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],Qs.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"isOverridable",void 0);_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"spinnerActive",void 0);_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"showButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qs.prototype,"isCommentsSection",void 0);
_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"isShortsGrid",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.eSW}),_.h("design:type",Object)],Qs.prototype,"isShortsPage",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.fx}),_.h("design:type",Object)],Qs.prototype,"isWatchPage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qs.prototype,"ghostCardExperimentEnabled",void 0);_.E([_.d(),_.h("design:type",Number)],Qs.prototype,"continuationTriggerOffset",void 0);
_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"endOfList",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Qs.prototype,"isInitialLoad",void 0);_.E([_.z$("ytd-button-renderer"),_.h("design:type",_.d3)],Qs.prototype,"buttonRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],Qs.prototype,"buttonOverrides",void 0);
_.E([_.d(),_.v("isCommentsSection","showButton","isShortsPage","isWatchPage"),_.h("design:type",Object),_.h("design:paramtypes",[])],Qs.prototype,"isShortsCommentsSection",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"observeData",null);
_.E([_.km("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"onYtServiceRequestSentForButtonRenderer",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],Qs.prototype,"onServiceRequestCompleted",null);
_.E([_.km("yt-service-request-completed-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"onYtServiceRequestCompletedForButtonRenderer",null);_.E([_.rW("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"showButtonChanged",null);
_.E([_.rW("continuationTriggerOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"continuationTriggerOffsetChanged",null);_.E([_.FI("isInitialLoad","isShortsPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qs.prototype,"numberOfGhostCommentsChanged",null);Qs=_.E([_.m({is:"ytd-continuation-item-renderer",disableElementRegistration:!0})],Qs);
_.Z(Qs,"ytd-continuation-item-renderer",function(){if(EQb!==void 0)return EQb;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return EQb=I},{mode:1});var HRS;var NG=function(){var I=_.q.apply(this,arguments)||this;I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.downloadState="DOWNLOAD_STATE_UNKNOWN";I.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";I.offlineVideoPolicyExpirationTimestamp=0;I.downloadedVideoPlaybackPosition=0;return I};
_.R(NG,_.q);NG.prototype.dataChanged=function(){var I;this.videoData=_.l((I=this.data)==null?void 0:I.renderer,pVb);this.transferStateChanged()};
NG.prototype.downloadProgressChanged=function(){if(this.entityInfo){var I=Object.assign({},this.videoData),C=zfX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),y=C.publishedTimeText,k=C.badges;I.shortViewCountText=C.shortViewCountText;I.publishedTimeText=y;I.badges=k;this.set("videoData",I)}};
NG.prototype.transferStateChanged=function(){if(this.entityInfo){var I=this.transferState==="TRANSFER_STATE_PAUSED_BY_USER",C=_.px(this.transferState)||this.transferState==="TRANSFER_STATE_FAILED"||this.transferState==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Dk(this.entityInfo.policyEntity),y=Object.assign({},this.videoData),k=zfX(this.entityInfo,this.transferState,this.downloadProgress,this.downloadState,this.relativeDateReference),F=k.publishedTimeText,z=k.badges;y.shortViewCountText=
k.shortViewCountText;y.publishedTimeText=F;y.badges=z;y.isDisabled=C;y.isWatched=this.downloadedVideoPlaybackPosition>0;y.navigationEndpoint=C?void 0:WIm(this.videoData.videoId,this.downloadedVideoPlaybackPosition,this.entityInfo.videoEntity.lengthSeconds);var c;I&&((c=this.videoData)==null?0:c.videoId)&&!_.V("dl_resume_click_killswitch")&&(y.isDisabled=!1,y.navigationEndpoint={offlineVideoEndpoint:{videoId:this.videoData.videoId,action:"ACTION_RESUME"}});y.thumbnailOverlays=FyO(this.entityInfo,this.transferState,
this.downloadState,this.downloadedVideoPlaybackPosition);this.set("videoData",y)}};
NG.prototype.transferStateChanged=NG.prototype.transferStateChanged;NG.prototype.downloadProgressChanged=NG.prototype.downloadProgressChanged;NG.prototype.dataChanged=NG.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],NG.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],NG.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],NG.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],NG.prototype,"videoData",void 0);_.E([_.d({selector:gi,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"downloadProgress",void 0);_.E([_.d(),_.h("design:type",Number)],NG.prototype,"relativeDateReference",void 0);_.E([_.d({selector:_.Kx,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"transferState",void 0);
_.E([_.d({selector:fNz,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"downloadState",void 0);_.E([_.d({selector:L_z,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"offlinePolicyAction",void 0);_.E([_.d({selector:DDs,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.d({selector:vg,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"downloadedVideoPlaybackPosition",void 0);_.E([_.d({selector:Q$z,selectorArgs:["videoData.videoId"]}),_.h("design:type",Object)],NG.prototype,"entityInfo",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],NG.prototype,"isDownloading",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NG.prototype,"dataChanged",null);
_.E([_.rW("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NG.prototype,"downloadProgressChanged",null);_.E([_.rW("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadState","downloadedVideoPlaybackPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NG.prototype,"transferStateChanged",null);
NG=_.E([_.m({is:"ytd-downloaded-video-grid-video-renderer",disableElementRegistration:!0})],NG);
_.Z(NG,"ytd-downloaded-video-grid-video-renderer",function(){if(HRS!==void 0)return HRS;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HRS=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var tbm;var l1=function(){};
l1.prototype.resolve=function(I,C){var y=this;return _.e(function(k){return _.n(k,y.resolveCommand(I,C),0)})};var JHS,Xb;JHS=DwI(function(I){return I.targetId},{shouldPersist:!1});
Xb=JHS.updateData;_.ORe=JHS.useUpdatableData;var aXw,Mbe;aXw=DwI(function(I){return I.targetId});
Mbe=aXw.updateData;_.I2m=aXw.useUpdatableData;var Coc=LWz.bind(null,Xb),sac=LWz.bind(null,Mbe);(function(I,C,y){var k=_.l(y==null?void 0:y.updatedRenderer,_.t_q);return k?I({targetId:C},function(){return k}):!1}).bind(null,Xb);var $Z=function(){};
_.R($Z,l1);$Z.prototype.resolveCommand=function(I){var C;return _.e(function(y){C=_.l(I,_.SMY);if(!C)return y.return();Coc(C.targetId,C);_.oI(y)})};var R9=function(){var I=_.cO.apply(this,arguments)||this;I.continuationActionMap={"yt-append-continuation-items-action":"handleAppendContinuationItemsAction","yt-reload-continuation-items-command":"handleReloadContinuationItemsCommand","yt-show-reload-ui-command":"handleShowReloadUiCommand"};return I};
_.R(R9,_.cO);_.u=R9.prototype;_.u.configureContinuationPathMap=function(){return{}};
_.u.beforeRegister=function(){this.continuationPathMap=this.configureContinuationPathMap()};
_.u.attached=function(){this.actionHandlerBehavior.registerActionMap(this.continuationActionMap)};
_.u.detached=function(){this.actionHandlerBehavior.unregisterActionMap(this.continuationActionMap)};
_.u.observeData=function(){this.data&&(this.continuationIsReloading=!1)};
_.u.handleAppendContinuationItemsAction=function(I){var C=_.l(I,_.YrS);if(this.data&&this.data.targetId&&C&&this.continuationPathMap&&C.targetId===this.data.targetId){var y=jjK(I);if((I=y&&this.continuationPathMap[y])&&y){y=this.get(I,this.data);var k;a:{for(k=0;k<y.length;k++){var F=y[k],z=void 0,c=!!_.l((z=_.l(F,rZq))==null?void 0:z.content,_.nrw);if(_.l(F,_.kH)||c)break a}k=y.length}I="data."+I;C.continuationItems?k===y.length-1?(this.pop(I),this.push.apply(this,[I].concat(_.Py(C.continuationItems)))):
k===y.length?this.push.apply(this,[I].concat(_.Py(C.continuationItems))):this.splice.apply(this,[I,k,1].concat(_.Py(C.continuationItems))):this.splice(I,k,1);(_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation"))&&_.k3(this.hostElement,"yt-append-continuation-items-action-finished");_.k3(this.hostElement,"yt-next-continuation-data-updated",null,{bubbles:!1})}else _.SN(new _.ph("append continuation path does not exist",y))}};
_.u.handleReloadContinuationItemsCommand=function(I){var C=_.l(I,_.SMY);if(this.data&&C){if(_.V("web_explore_hub")||_.V("web_client_explore_hub")||_.V("web_explore_hub_on_hover")||_.V("web_client_explore_hub_on_hover"))try{_.N().resolve($Z).resolveCommand(I)}catch(z){}if(this.data.targetId&&this.continuationPathMap&&C.targetId===this.data.targetId&&(!_.V("web_enable_channel_pivot_panel")||this.data.targetId!=="browse-feedFEsfv_channel_pivot"||C.slot!=="RELOAD_CONTINUATION_SLOT_HEADER")){var y,k=(y=
C.slot)==null?void 0:y.replace("RELOAD_CONTINUATION_SLOT_","");y=(I=jjK(I)+"-"+(k==null?void 0:k.toLowerCase()))&&this.continuationPathMap[I];if(!y||!I||!k)_.SN(new _.ph("reload continuation path does not exist",I));else if(!this.reloadContinuationItemsCommandMatcher||this.reloadContinuationItemsCommandMatcher(C)){if(C.replaceWithFirstItem){var F;this.set("data."+y,((F=C.continuationItems)==null?0:F.length)?C.continuationItems[0]:{})}else this.set("data."+y,C.continuationItems?C.continuationItems:
[]);this.continuationIsReloading=!1;_.k3(this.hostElement,"yt-reload-continuation-finish",null,{bubbles:!1})}}}};
_.u.handleShowReloadUiCommand=function(I){I=_.l(I,Bs5);var C;((C=this.data)==null?0:C.targetId)&&(I==null?0:I.targetId)&&I.targetId===this.data.targetId&&(this.continuationIsReloading=!0)};
R9.prototype.observeData=R9.prototype.observeData;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],R9.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],R9.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],R9.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],R9.prototype,"continuationIsReloading",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R9.prototype,"observeData",null);R9=_.E([_.eA()],R9);_.b1=[_.$y.YtComponentBehavior,_.Et.YtActionHandlerBehavior,R9.prototype];_.YZ={};_.YZ.YtNextContinuationBehavior=[_.xy.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",_.sb(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!0)},
stopListeningForNavigate_:function(){this.canUseContextualNetworkManager_()||(document.removeEventListener("yt-navigate-start",_.sb(this,this.onYtNavigateStart_)),this.listeningForNavigate_=!1)},
onLoadNextContinuation_:function(I,C){I.stopPropagation();this.nextContinuation.requestPath?this.makeNextContinuationRequest_(this.nextContinuation.requestPath,C,{}):(I={locationRetrieved:function(y){this.makeNextContinuationRequest_(y,C,{})}.bind(this)},_.k3(this.hostElement,"yt-retrieve-location",I))},
makeNextContinuationRequest_:function(I,C,y){_.KA("nct");this.pendingContinuationRequest_&&this.pendingContinuationRequest_.cancel();I=C(I);var k;this.canUseContextualNetworkManager_()&&(k=this.getNetworkManager());k||(k=_.N().resolve(_.pp));C=_.KE.instance;if(_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX"&&C){k=_.tS([I.startsWith("/")?I.substr(1):I]);var F,z;y=_.b_(C,{},k,y==null?void 0:(F=y.context)==null?void 0:(z=F.clickTracking)==null?void 0:z.clickTrackingParams).then(function(c){return{response:c}})}else y=
this.nextContinuation.usePost?k.postData(I,y):k.fetchData(I);
y.then(this.updateNextContinuationData_.bind(this,I));this.pendingContinuationRequest_=y;this.startListeningForNavigate_()},
updateNextContinuationData_:function(I,C){var y=this;_.KA("ncl");this.pendingContinuationRequest_=void 0;if(C){var k={};this.nextContinuation&&(k=this.nextContinuation);if(C.response&&C.response.continuationContents&&C.response.continuationContents[k.continuationType]){I=C.response.continuationContents[k.continuationType];var F=k.header||"data.header",z=I[k.responseHeaderKey||"header"];z&&this.set(F,z);F=k.contentsArray||"data.contents";z=this.getContents_(I,k.responseContentsKey||"contents")||[];
this.pathExists_(F)?(z.unshift(F),this.push.apply(this,z)):this.set(F,z);z&&(DZm(_.e2(),C.response,this.hostElement,function(c){_.Fe(y.hostElement,"yt-store-grafted-ve-action",[c])}),_.k3(this.hostElement,"yt-next-continuation-data-updated",{continuationData:C,
page:this,contentsArray:F}));this.set(k.continuationsArray||"data.continuations",I[k.responseContinuationsKey||"continuations"]||[])}else C.reload?_.SN(new _.ph("Reloading from continuation is unsupported")):C.responseContext&&C.responseContext.errors||(delete C.xsrf_token,delete C.timing,delete C.endpoint,delete C.csn,C.responseContext&&delete C.responseContext.serviceTrackingParams,F={request:_.E3(I,{ctoken:"x",continuation:"x",itct:"x"}),responseKeys:Object.keys(C).sort()},C.response&&(F.responseContentKeys=
Object.keys(C.response).sort()),this.nextContinuation&&this.nextContinuation.continuationType&&(F.continuationType=this.nextContinuation.continuationType.substr(0,256)),C=new _.ph("Malformed continuation",F),I.indexOf("/comment_service_ajax")==0?_.SN(C):_.GB(C)),this.set(k.continuationsArray||"data.continuations",[])}else _.fi(new _.ph("Missing continuation response",I))},
getContents_:function(I,C){C=C.split(".");return _.Le.getValueByKeys(I,C)},
pathExists_:function(I){var C=this;I=I.toString().split(".");for(var y=0;y<I.length;y++)if(C=C[I[y]],C===void 0)return!1;return!0},
onYtNavigateStart_:function(){this.pendingContinuationRequest_&&(this.pendingContinuationRequest_.cancel(),this.pendingContinuationRequest_=void 0);this.stopListeningForNavigate_()}}];var oJe;var yBd;var G7=function(){var I=_.q.apply(this,arguments)||this;I.triggered_=!1;return I};
_.R(G7,_.q);_.u=G7.prototype;_.u.attached=function(){this.maybeTriggerAutoload()};
_.u.detached=function(){this.hasBeenTriggered_=!1};
_.u.onPrescanVisible=function(){this.onShow()};
_.u.onShow=function(){this.showButton||this.trigger()};
_.u.trigger=function(){this.data&&this.data.continuation&&(this.spinnerActive_=!0,this.showButton=!1,this.triggered_||(_.k3(this.hostElement,"yt-load-next-continuation",this.getContinuationUrl.bind(this)),this.hasBeenTriggered_=this.triggered_=!0))};
_.u.triggerIfNotPreviouslyTriggered=function(){this.hasBeenTriggered_||this.trigger()};
_.u.maybeTriggerAutoload=function(){this.data&&this.isAttached&&this.data.autoloadEnabled&&this.data.autoloadImmediately&&this.trigger()};
_.u.computeLabel_=function(I,C){return I===void 0?null:I.label||!C?I.label:this.showMoreText_};
_.u.observeData_=function(){this.spinnerActive_=this.triggered_=!1;this.ytRendererBehavior.invalidate(!1);this.maybeTriggerAutoload()};
_.u.getContinuationUrl=function(I){var C={ctoken:this.data.continuation,continuation:this.data.continuation,type:"next"};this.data.clickTrackingParams&&(C.itct=this.data.clickTrackingParams);return _.hq(I,C)};
_.u.showButtonChanged_=function(){this.ytRendererBehavior.invalidate(!1)};
G7.prototype.showButtonChanged_=G7.prototype.showButtonChanged_;G7.prototype.observeData_=G7.prototype.observeData_;_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],G7.prototype,"ytVisibilityBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],G7.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],G7.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],G7.prototype,"showButton",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],G7.prototype,"showIcon",void 0);_.E([_.d({computed:"computeLabel_(data, showButton)"}),_.h("design:type",Object)],G7.prototype,"label",void 0);_.E([_.d({value:_.Ee(_.PQ("SHOW_MORE",void 0,"Show More"))}),_.h("design:type",Object)],G7.prototype,"showMoreText_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],G7.prototype,"spinnerActive_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],G7.prototype,"hasBeenTriggered_",void 0);
_.E([_.d({value:void 0}),_.h("design:type",String)],G7.prototype,"observeVisibleOption",void 0);_.E([_.d({value:void 0}),_.h("design:type",String)],G7.prototype,"observeHiddenOption",void 0);_.E([_.d({value:"observe_once"}),_.h("design:type",Object)],G7.prototype,"observePrescanOption",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G7.prototype,"observeData_",null);
_.E([_.FI("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G7.prototype,"showButtonChanged_",null);G7=_.E([_.lT({is:"yt-next-continuation",disableElementRegistration:!0})],G7);
_.Z(G7,"yt-next-continuation",function(){if(yBd===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;oJe===void 0&&(oJe=document.createElement("template"));var k=oJe;y.call(C,k.content.cloneNode(!0),I.content.firstChild);yBd=I}I=yBd;return I},{mode:2});var kmd;var FWm;var fo=function(){return _.q.apply(this,arguments)||this};
_.R(fo,_.q);fo.prototype.attached=function(){this.hostElement.parentNode.style.justifyContent="center"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fo.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fo.prototype,"data",void 0);fo=_.E([_.lT({is:"yt-music-pass-small-feature-info-renderer",disableElementRegistration:!0})],fo);
_.Z(fo,"yt-music-pass-small-feature-info-renderer",function(){if(FWm===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;kmd===void 0&&(kmd=document.createElement("template"));var k=kmd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);FWm=I}I=FWm;return I},{mode:2});_.jz("itemSectionRenderer","gridRenderer","ytd-grid-renderer");var Sv=function(){var I=_.q.apply(this,arguments)||this;I.isCollapsible=!1;I.nextContinuation={continuationType:"gridContinuation",contentsArray:"data.items",responseContentsKey:"items"};return I};
_.R(Sv,_.q);_.u=Sv.prototype;_.u.computeIsCollapsible=function(I){return!!(((I==null?0:I.showMoreText)||(I==null?0:I.visibleRowCount))&&(I==null?0:I.isCollapsible))};
_.u.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"}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"items"}};
_.u.persistentGuideChanged=function(){this.maybeUpdateInitialItemsDisplayed()};
_.u.onIronResize=function(){var I=this;_.KK(this,"updateGridInitItems",function(){I.maybeUpdateInitialItemsDisplayed()})};
_.u.maybeUpdateInitialItemsDisplayed=function(){if(this.collapsed){var I=this.getVisibleWidth();I!==0&&(I=Math.floor(I/214)*(this.data.visibleRowCount||2),I!==this.initialCount&&(this.initialCount=I,this.data&&this.data.items&&this.ytLazyListBehavior.setInitialItemsOnDataChanged(this.data.items)))}};
_.u.getVisibleWidth=function(){return this.hostElement.offsetWidth};
_.u.computeExpandVisible=function(I,C,y,k){return I&&C&&y&&!!k&&!!k.showMoreText};
_.u.computeShowMoreButton=function(I){return{text:I,style:"STYLE_TEXT",size:"SIZE_DEFAULT"}};
_.u.onExpandTap=function(){this.collapsed=!1;this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
_.u.initCollapsed=function(){var I=this;this.ytLazyListBehavior.canShowMore=!1;var C;(this.collapsed=!((C=this.data)==null||!C.isCollapsible))&&this.maybeUpdateInitialItemsDisplayed();_.hn(this,function(){_.uW(I.hostElement,"yt-refit-popups-action")})};
_.u.fillRestIfNotCollapsible=function(){var I=this.ytLazyListBehavior.canShowMore;this.data&&this.isCollapsible||!I||this.ytLazyListBehavior.fillRemainingListItems()};
_.u.computeViewAllHidden=function(I,C){return I||!C.viewAllEndpoint};
Sv.prototype.fillRestIfNotCollapsible=Sv.prototype.fillRestIfNotCollapsible;Sv.prototype.initCollapsed=Sv.prototype.initCollapsed;Sv.prototype.onIronResize=Sv.prototype.onIronResize;Sv.prototype.persistentGuideChanged=Sv.prototype.persistentGuideChanged;_.E([_.g(_.Ri),_.h("design:type",Object)],Sv.prototype,"ironResizableBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Sv.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],Sv.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],Sv.prototype,"ytNextContinuationBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Sv.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.g(_.b1),_.h("design:type",Object)],Sv.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sv.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],Sv.prototype,"collapsed",void 0);_.E([_.d(),_.h("design:type",Number)],Sv.prototype,"initialCount",void 0);_.E([_.d({computed:"computeShowMoreButton(data.showMoreText)"}),_.h("design:type",Object)],Sv.prototype,"showMoreButton",void 0);
_.E([_.d({computed:"computeIsCollapsible(data)"}),_.h("design:type",Object)],Sv.prototype,"isCollapsible",void 0);_.E([_.z$("#items"),_.h("design:type",HTMLElement)],Sv.prototype,"items",void 0);_.E([_.rW("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sv.prototype,"persistentGuideChanged",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sv.prototype,"onIronResize",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sv.prototype,"initCollapsed",null);_.E([_.rW("canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sv.prototype,"fillRestIfNotCollapsible",null);Sv=_.E([_.m({is:"ytd-grid-renderer",disableElementRegistration:!0})],Sv);
_.Z(Sv,"ytd-grid-renderer",function(){if(tbm!==void 0)return tbm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tbm=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var Ko=function(){return _.q.apply(this,arguments)||this};
_.R(Ko,_.q);
Ko.prototype.configureRendererStamper=function(){return{"data.adMetadata.displayAdRenderer":{id:"badge",mapping:{badge:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.adMetadata.displayAdRenderer.badge]]"},params:{largeFontAdBadge:!0}}}},"data.adMetadata.displayAdRenderer.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{horizontalListRenderer:{component:"yt-horizontal-list-renderer",params:{useFloorScrolling:!0}},gridRenderer:"ytd-grid-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ko.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ko.prototype,"data",void 0);Ko=_.E([_.m({is:"ytd-carousel-ad-renderer",disableElementRegistration:!0})],Ko);
_.Z(Ko,"ytd-carousel-ad-renderer",function(){if(BKw!==void 0)return BKw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return BKw=I},{mode:1});var uFu;var AD=function(){return _.q.apply(this,arguments)||this};
_.R(AD,_.q);_.u=AD.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.data&&this.data.content&&this.data.clickLocationTargets&&this.data.content.navigationEndpoint&&(this.sendImpression(),this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,AD.JSC$13134_CLICK_LOCATION_ID_MAP))};
_.u.onSitelinkTap=function(I){I.stopPropagation();var C,y,k=I==null?void 0:(C=I.model)==null?void 0:(y=C.item)==null?void 0:y.onTap;k&&this.ytSparklesClickLocationBehavior.handleClick(k,I,!1)};
_.u.onTap=function(I){var C=this.data&&this.data.content&&this.data.content.navigationEndpoint;C&&this.ytSparklesClickLocationBehavior.handleClick(C,I,!1)};
_.u.sendImpression=function(){if(this.data&&this.data.content)for(var I=_.T(this.data.content.impressionEndpoints||[]),C=I.next();!C.done;C=I.next()){C=_.T(C.value.loggingUrls||[]);for(var y=C.next();!y.done;y=C.next())y=y.value,y.baseUrl&&qy(y.baseUrl,y.attributionSrcMode)}};
AD.prototype.onTap=AD.prototype.onTap;AD.prototype.dataChanged=AD.prototype.dataChanged;AD.JSC$13134_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","title"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","display-url"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK","sitelinks-table"]]);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],AD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],AD.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AD.prototype,"data",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AD.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],AD.prototype,"onTap",null);AD=_.E([_.m({is:"ytd-promoted-sparkles-text-search-renderer",disableElementRegistration:!0})],AD);
_.Z(AD,"ytd-promoted-sparkles-text-search-renderer",function(){if(uFu!==void 0)return uFu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return uFu=I},{mode:1});var zN0;var gP=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-mute-ad-action":"handleMuteAd"};return I};
_.R(gP,_.q);_.u=gP.prototype;
_.u.configureRendererStamper=function(){return{"data.menu":{id:_.V("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]]"}}}}}};
_.u.computeButtonOverride=function(){return{style:"call-to-action",type:"tonal"}};
_.u.computeHasAdBadge=function(I){return!(I==null||!I.adBadge)};
_.u.dataChanged=function(){this.data&&this.data.impressionCommands&&this.data.clickLocationTargets&&(this.data.adBadge||this.set("data.adBadge",gP.JSC$13143_DEFAULT_AD_BADGE_RENDERER),_.a_(this.hostElement,"sparkles-light-cta",!0),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("sparkles-container",this.data.clickLocationTargets,gP.JSC$13143_CLICK_LOCATION_ID_MAP))};
_.u.impressionLog=function(){if(!this.data||!this.data.impressionsFired){var I;(((I=this.data)==null?void 0:I.impressionCommands)||[]).forEach(function(C){C=_.T(C.loggingUrls||[]);for(var y=C.next();!y.done;y=C.next())y=y.value,y.baseUrl&&qy(y.baseUrl,y.attributionSrcMode)});
this.data.impressionsFired=!0}};
_.u.onTap=function(I){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint,k;(C=(k=this.data)==null?void 0:k.thumbnailNavigationEndpoint)&&_.m4(_.qc(I),this.hostElement,["thumbnail-container"])?this.ytSparklesClickLocationBehavior.handleClick(C,I,!1):y&&this.ytSparklesClickLocationBehavior.handleClick(y,I,!1)};
_.u.handleMuteAd=function(){this.collapsed=!0};
_.u.attached=function(){var I=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H1.Object.defineProperties(gP.prototype,{hideHoverOverlay:{configurable:!0,enumerable:!0,get:function(){return!this.data||!this.data.mediaHoverOverlay}},
webSearchLayout:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.promotedSparklesWebStyle)==="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"}},
webSearchLayoutLandscape:{configurable:!0,enumerable:!0,get:function(){var I;return!(((I=this.data)==null?void 0:I.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||this.data.isSquareThumbnail)}},
webSearchLayoutSquare:{configurable:!0,enumerable:!0,get:function(){var I;return!(((I=this.data)==null?void 0:I.promotedSparklesWebStyle)!=="PROMOTED_SPARKLES_WEB_STYLE_LANDSCAPE_IMAGE_ASPECT_RATIO"||!this.data.isSquareThumbnail)}},
sparklesCtaNoBackground:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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}}});
gP.prototype.dataChanged=gP.prototype.dataChanged;
gP.JSC$13143_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"]]);
gP.JSC$13143_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.PQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],gP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gP.prototype,"ytRendererBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],gP.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],gP.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],gP.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],gP.prototype,"collapsed",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],gP.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],gP.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("fix_alignment_search_desktop_text_image_ads_small_screens")}}),
_.h("design:type",Boolean)],gP.prototype,"fixAlignmentSmallScreens",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs_square")}}),
_.h("design:type",Boolean)],gP.prototype,"useBiggerThumbsSquare",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.mediaHoverOverlay"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"hideHoverOverlay",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"webSearchLayout",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"webSearchLayoutLandscape",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.promotedSparklesWebStyle","data.isSquareThumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"webSearchLayoutSquare",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"sparklesCtaNoBackground",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.actionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"hideActionButton",null);_.E([_.d({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],gP.prototype,"buttonOverride",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasAdBadge(data)"}),_.h("design:type",Boolean)],gP.prototype,"hasNewAdBadge",void 0);_.E([_.v("data.promotedSparklesWebStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gP.prototype,"useRoundedBadge",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gP.prototype,"dataChanged",null);gP=_.E([_.m({is:"ytd-promoted-sparkles-web-renderer",disableElementRegistration:!0})],gP);
_.Z(gP,"ytd-promoted-sparkles-web-renderer",function(){if(zN0!==void 0)return zN0;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zN0=I},{mode:1});var TDY;var ve=function(){return _.q.apply(this,arguments)||this};
_.R(ve,_.q);_.u=ve.prototype;_.u.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]]"}}}}}};
_.u.computeShowCta=function(I){return!(I==null||!I.ctaRenderer)};
_.u.onCtaClick=function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.ctaRenderer)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.command;k&&this.ytComponentBehavior.resolveCommand(k)};
_.u.onWatchButtonClick=function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.watchButtonRenderer)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.command;k&&this.ytComponentBehavior.resolveCommand(k)};
_.u.onTap=function(){};
_.u.dataChanged=function(){if(this.data&&(this.data.adBadge||this.set("data.adBadge",ve.JSC$13146_DEFAULT_AD_BADGE_RENDERER),this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17),this.ytSparklesClickLocationBehavior.configureClickTargets("main-container",ve.JSC$13146_DEFAULT_CLICK_LOCATION_BEHAVIOR,ve.JSC$13146_CLICK_LOCATION_ID_MAP),this.thumbnail)){var I=this.thumbnail.getElementsByTagName("a");I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href")}};
_.u.impressionLog=function(){if(this.data&&this.data.impressionUrls&&!this.data.impressionsFired){for(var I=_.T(this.data.impressionUrls),C=I.next();!C.done;C=I.next())C=C.value,ulm(C,TUI(C));this.data.impressionsFired=!0}};
_.u.maybeComputeHref=function(){return null};
_.u.computeIsShortDR=function(I){return!(I==null||!I.watchButtonRenderer)&&!(I==null||!I.ctaRenderer)&&!!this.enableShortDR};
_.u.computeIsNewUiOrShortDr=function(I){return!!this.enableUiUpdate||this.computeIsShortDR(I)};
_.u.computeIsNewUiAndNotShortDr=function(I){return!!this.enableUiUpdate&&!this.computeIsShortDR(I)};
_.u.computeHideAvatar=function(I){return!((I==null?0:I.channelThumbnail)&&this.computeIsNewUiOrShortDr(I))};
_.u.onClick=function(I){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint;if(this.enableShortDR&&y&&(_.l(y,_.H$)||this.computeIsShortDR(this.data)))this.ytSparklesClickLocationBehavior.handleClick(y,I,!!_.l(y,_.H$)),I.stopPropagation();else if(y&&_.l(y,_.H$))this.ytSparklesClickLocationBehavior.handleClick(y,I,!0),I.stopPropagation();else if(y){var k,F;((k=this.data)==null?0:k.navigationEndpoint)&&((F=this.data)==null?0:F.adPlaybackContextParams)&&sNs(this.data.navigationEndpoint,this.data.adPlaybackContextParams);
this.ytComponentBehavior.resolveCommand(y)}};
_.u.computeButtonOverride=function(I){if(this.computeIsNewUiOrShortDr(I))return{style:"call-to-action",type:"tonal",iconPosition:"none"}};
_.u.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.u.onThumbnailContainerClick=function(I){this.onClick(I)};
_.u.computeThumbnailWidth=function(I,C){return I?C==="MASSIVE"?600:C==="BIG"?500:C==="MEDIUM"?450:420:360};
_.u.attached=function(){var I=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
ve.prototype.dataChanged=ve.prototype.dataChanged;ve.prototype.onTap=ve.prototype.onTap;ve.JSC$13146_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.PQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};ve.JSC$13146_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","endpoint"]]);
ve.JSC$13146_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ve.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ve.prototype,"ytRendererBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],ve.prototype,"ytdActiveViewBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ve.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],ve.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ve.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],ve.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_video_display_compact_button_group_for_desktop_search")}}),
_.h("design:type",Boolean)],ve.prototype,"enableShortDR",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_vac_ui_update_for_desktop_search")}}),
_.h("design:type",Boolean)],ve.prototype,"enableUiUpdate",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],ve.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShowCta(data)"}),_.h("design:type",Boolean)],ve.prototype,"showCta",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsShortDR(data)"}),_.h("design:type",Boolean)],ve.prototype,"isShortDr",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsNewUiOrShortDr(data)"}),_.h("design:type",Boolean)],ve.prototype,"isShortDrOrNewUi",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsNewUiAndNotShortDr(data)"}),_.h("design:type",Boolean)],ve.prototype,"isNewUiAndNotShortDr",void 0);_.E([_.d({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],ve.prototype,"buttonOverride",void 0);_.E([_.d({computed:"computeSecondaryButtonOverride(data)"}),_.h("design:type",Object)],ve.prototype,"secondaryButtonOverride",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],ve.prototype,"thumbnail",void 0);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ve.prototype,"onTap",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ve.prototype,"dataChanged",null);ve=_.E([_.m({is:"ytd-promoted-video-renderer",disableElementRegistration:!0})],ve);
_.Z(ve,"ytd-promoted-video-renderer",function(){if(TDY!==void 0)return TDY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TDY=I},{mode:1});var cBq;var We=function(){var I=_.q.apply(this,arguments)||this;I.useRoundedBadge=!0;I.sitelinkIds=[];return I};
_.R(We,_.q);_.u=We.prototype;
_.u.configureRendererStamper=function(){return{"data.menu":{id:_.V("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]]"}}}}}};
_.u.dataChanged=function(){var I;(I=this.data)!=null&&I.clickLocationTargets&&this.ytSparklesClickLocationBehavior.configureClickTargets("root-container",this.data.clickLocationTargets,We.JSC$13153_CLICK_LOCATION_ID_MAP)};
_.u.onTap=function(I){var C,y=(C=this.data)==null?void 0:C.navigationCommand;y&&!_.m4(_.qc(I),this.hostElement,this.sitelinkIds)&&this.ytSparklesClickLocationBehavior.handleClick(y,I,!1)};
_.u.onSitelinkTap=function(I){var C,y,k=I==null?void 0:(C=I.model)==null?void 0:(y=C.item)==null?void 0:y.onTap;k&&this.ytSparklesClickLocationBehavior.handleClick(k,I,!1)};
_.u.configureSitelinkClickTargets=function(){var I=this,C,y,k=(C=this.data)==null?void 0:(y=C.clickLocationTargets)==null?void 0:y.find(function(F){return F.location==="PROMOTED_SPARKLES_CLICK_LOCATION_SITELINK"});
k&&_.f(this.hostElement).querySelectorAll(".sitelink").forEach(function(F){_.a_(F,"yt-simple-endpoint",!0);I.sitelinkIds.push(F.id);var z,c;(z=I.ytSparklesClickLocationBehavior)==null||(c=z.clickTargetMap)==null||c.set(F.id,k)})};
_.u.sendImpression=function(){var I,C,y=((I=this.data)==null?void 0:(C=I.impressionCommand)==null?void 0:C.loggingUrls)||[];I=_.T(y);for(C=I.next();!C.done;C=I.next())C=C.value,C.baseUrl&&qy(C.baseUrl,C.attributionSrcMode)};
_.u.impressionLog=function(){this.data&&this.data.impressionsFired||(this.sendImpression(),this.data.impressionsFired=!0)};
_.H1.Object.defineProperties(We.prototype,{showFavicon:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!!this.data.favicon}}});
We.prototype.onTap=We.prototype.onTap;We.prototype.dataChanged=We.prototype.dataChanged;We.JSC$13153_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_INNER_BACKGROUND","text-image-container"],["PROMOTED_SPARKLES_CLICK_LOCATION_TITLE","headline"],["PROMOTED_SPARKLES_CLICK_LOCATION_DESCRIPTION","description"],["PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE","ad-badge"],["PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_AD_WEBSITE","website-text"],["PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND","root-container"]]);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],We.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],We.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],We.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],We.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],We.prototype,"showFavicon",null);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],We.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],We.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_text_ad_web_thumbnail_scaling_fix")}}),
_.h("design:type",Boolean)],We.prototype,"enableThumbnailScalingFix",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],We.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],We.prototype,"onTap",null);We=_.E([_.m({is:"ytd-text-image-no-button-layout-renderer",disableElementRegistration:!0})],We);
_.Z(We,"ytd-text-image-no-button-layout-renderer",function(){if(cBq!==void 0)return cBq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return cBq=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var eN5;var dP=function(){var I=_.q.apply(this,arguments)||this;I.isInlinePlaybackState=!1;I.uiUpdate=_.V("web_modern_buttons");I.hideCta=_.V("hide_cta_for_home_web_video_ads");I.noBottomMargin=!1;I.animateInTimeStamp=_.s8("hide_cta_for_home_web_video_ads_animate_in_time");I.animateInCta=!1;I.isHovered=!1;I.player=null;I.JSC$13160_playerEvents=new Map;I.JSC$13160_preventProgressSaveTimer=null;I.delayedCtaJobId=null;return I};
_.R(dP,_.q);_.u=dP.prototype;_.u.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]]"}}}}}};
_.u.attached=function(){this.JSC$13160_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$13160_playerEvents.set("onVideoProgress",this.onVideoProgress);this.hideCta&&this.setPlayer();_.V("enable_delayed_cta_on_web")&&this.buttonContainer.classList.add("hide-delayed-buttons")};
_.u.detached=function(){this.resetPreventProgressSaveTimer();this.hideCta&&this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$13160_playerEvents)};
_.u.dataChanged=function(){this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint&&(this.animateInCta=!1,this.ytSparklesClickLocationBehavior.configureClickTargets("ad-inline-playback-metadata",dP.JSC$13159_DEFAULT_CLICK_LOCATION_BEHAVIOR,dP.JSC$13159_CLICK_LOCATION_ID_MAP),this.isInlinePlaybackState&&!this.hideCta&&this.setPlayer())};
_.u.hoverChanged=function(){var I=this;this.delayedCtaJobId&&(_.b$.cancelJob(this.delayedCtaJobId),this.delayedCtaJobId=null);this.isHovered&&!this.buttonContainer.classList.contains("show-delayed-buttons")&&_.V("enable_delayed_cta_on_web")&&(this.delayedCtaJobId=_.LM(_.b$,function(){I.buttonContainer.classList.add("show-delayed-buttons")},_.s8("delayed_cta_on_web_delay_milliseconds")))};
_.u.setPlayer=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return(C=_.uW(I.hostElement,"yt-get-inline-preview-player-action"))&&C[0]?_.n(y,C[0].getPlayerPromise(),3):y.jumpTo(0);I.player=y.yieldResult;I.ytPlayerListenerBehavior.listenToPlayerEvents(I.player,I.JSC$13160_playerEvents);_.oI(y)})};
_.u.onPlaybackStart=function(){var I=this;this.player&&(this.resetPreventProgressSaveTimer(),this.JSC$13160_preventProgressSaveTimer=_.tE(_.b$,function(){I.JSC$13160_preventProgressSaveTimer=null},1E4))};
_.u.onVideoProgress=function(I){this.hideCta&&this.isHovered&&!(this.animateInTimeStamp<0)&&I>=this.animateInTimeStamp&&!this.animateInCta&&(this.animateInCta=!0)};
_.u.resetPreventProgressSaveTimer=function(){_.b$.cancelJob(this.JSC$13160_preventProgressSaveTimer);this.JSC$13160_preventProgressSaveTimer=null};
_.u.getSimpleString=function(I){return _.hS(I)};
_.u.onClick=function(I){if(this.data&&this.data.navigationEndpoint&&this.data.channelEndpoint){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint,k;C=(k=this.data)==null?void 0:k.channelEndpoint;var F,z;(k=(z=_.l((F=this.data)==null?void 0:F.adCtaButton,_.fZ))==null?void 0:z.command)&&_.m4(_.qc(I),this.hostElement,["call-to-action"])?_.V("enable_fix_two_tab_short_dr")||this.ytSparklesClickLocationBehavior.handleClick(k,I,!1):C&&_.m4(_.qc(I),this.hostElement,["channel-thumbnail-container","short-byline-text"])?
this.ytSparklesClickLocationBehavior.handleClick(C,I,!1):!_.m4(_.qc(I),this.hostElement,["secondary-button"])&&y&&(_.V("enable_short_dr_for_desktop_launchable")?(F=!!_.l(y,_.H$),this.isInlinePlaybackState&&F&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,I,F)):(this.isInlinePlaybackState&&this.updateWatchEndpointStartTime(),this.ytSparklesClickLocationBehavior.handleClick(y,I,!0)))}};
_.u.updateWatchEndpointStartTime=function(){var I,C;this.player&&((I=this.data)==null?0:I.inlinePlaybackEndpoint)&&((C=this.data)==null?0:C.navigationEndpoint)&&!this.JSC$13160_preventProgressSaveTimer&&(I=Math.floor(this.player.getCurrentTime()),_.l(this.data.navigationEndpoint,_.H$).startTimeSeconds=I,_.l(this.data.inlinePlaybackEndpoint,_.H$).startTimeSeconds=I)};
_.u.computeButtonOverride=function(){if(this.uiUpdate)return{style:"call-to-action",type:"tonal"}};
_.u.computeSecondaryButtonOverride=function(){return{style:"call-to-action",type:"outline",iconPosition:"none"}};
_.H1.Object.defineProperties(dP.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
isButtonGroup:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.watchButton)&&!((C=this.data)==null||!C.adCtaButton)}}});
dP.prototype.hoverChanged=dP.prototype.hoverChanged;dP.prototype.dataChanged=dP.prototype.dataChanged;
dP.JSC$13159_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"]]);
dP.JSC$13159_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TITLE",code:0,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:19,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_TEXT_PRODUCT_ADVERTISER",code:20,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_CHANNEL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_AD_BADGE",
code:31,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_ACTION_LABEL",code:8,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_OPEN_ACTION_WEBSITE_URL"},{location:"PROMOTED_SPARKLES_CLICK_LOCATION_BACKGROUND",code:2,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],dP.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],dP.prototype,"ytSparklesClickLocationBehavior",void 0);
_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],dP.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"isInlinePlaybackState",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dP.prototype,"miniMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"uiUpdate",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"hideCta",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"noBottomMargin",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"animateInCta",void 0);_.E([_.d({computed:"computeButtonOverride(uiUpdate)"}),_.h("design:type",Object)],dP.prototype,"buttonOverride",void 0);
_.E([_.d({computed:"computeSecondaryButtonOverride(uiUpdate)"}),_.h("design:type",Object)],dP.prototype,"secondaryButtonOverride",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dP.prototype,"isHovered",void 0);_.E([_.z$("#button-container"),_.h("design:type",HTMLElement)],dP.prototype,"buttonContainer",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],dP.prototype,"typographyBump",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dP.prototype,"typographyBumpV2",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dP.prototype,"dataChanged",null);_.E([_.FI("isHovered"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dP.prototype,"hoverChanged",null);
_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dP.prototype,"isButtonGroup",null);dP=_.E([_.m({is:"ytd-ad-inline-playback-meta-block",disableElementRegistration:!0})],dP);
_.Z(dP,"ytd-ad-inline-playback-meta-block",function(){if(eN5!==void 0)return eN5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eN5=I},{mode:_.Ij("kevlar_poly_si_batch_j065")?1:2});var rBS;var xZ=function(){var I=_.q.apply(this,arguments)||this;I.noBottomMargin=!1;I.isInlinePreviewTriggered=!1;I.JSC$13165_activeViewMeasurementDataResolver=_.vP();return I};
_.R(xZ,_.q);_.u=xZ.prototype;_.u.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.attached=function(){var I=this;this.updateInlinePreviewHoverListeners();this.JSC$13165_activeViewMeasurementDataResolver.promise.then(function(C){I.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){this.clearInlinePreviewHoverListeners();_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13165_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.JSC$13165_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:uY8})};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$13165_inlinePreviewHoverListener)==null||oc(I)};
_.u.onDataChanged=function(){var I;((I=this.data)==null?0:I.activeView)&&this.JSC$13165_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",xZ.JSC$13164_DEFAULT_CLICK_LOCATION_BEHAVIOR,xZ.JSC$13164_CLICK_LOCATION_ID_MAP);this.thumbnail&&(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"));var C;if((C=this.data)==
null?0:C.hasAutoplay){var y;(y=this.JSC$13165_inlinePreviewHoverListener)==null||vLP(y)}};
_.u.onTypographyBumpChanged=function(){this.adInlinePlaybackMetaBlock&&(this.adInlinePlaybackMetaBlock.typographyBump=this.typographyBump)};
_.u.onThumbnailContainerClick=function(I){if(this.data&&this.data.navigationEndpoint){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,I,!!_.l(y,_.H$));I.stopPropagation()}};
_.u.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.u.impressionLog=function(){var I=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,y,k=(y=_.l((C=this.data)==null?void 0:C.onImpression,_.r9))==null?void 0:y.commands;k&&(k.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;I.ytComponentBehavior.resolveCommand(F)}),this.data.impressionsFired=!0)}};
_.H1.Object.defineProperties(xZ.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$13165_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
xZ.prototype.onTypographyBumpChanged=xZ.prototype.onTypographyBumpChanged;xZ.prototype.onDataChanged=xZ.prototype.onDataChanged;xZ.JSC$13164_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);xZ.JSC$13164_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xZ.prototype,"ytComponentBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],xZ.prototype,"ytdActiveViewBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],xZ.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.KN),_.h("design:type",Object)],xZ.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],xZ.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],xZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xZ.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],xZ.prototype,"noBottomMargin",void 0);
_.E([_.d(),_.h("design:type",Object)],xZ.prototype,"isInlinePreviewTriggered",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],xZ.prototype,"miniMode",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],xZ.prototype,"typographyBump",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],xZ.prototype,"thumbnail",void 0);_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],xZ.prototype,"JSC$13165_dismissibleMedia",void 0);
_.E([_.z$("ytd-ad-inline-playback-meta-block"),_.h("design:type",HTMLElement)],xZ.prototype,"adInlinePlaybackMetaBlock",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xZ.prototype,"onDataChanged",null);_.E([_.rW("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xZ.prototype,"onTypographyBumpChanged",null);
_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xZ.prototype,"isHovered",null);xZ=_.E([_.m({is:"ytd-video-display-full-buttoned-and-button-group-renderer",disableElementRegistration:!0})],xZ);
_.Z(xZ,"ytd-video-display-full-buttoned-and-button-group-renderer",function(){if(rBS!==void 0)return rBS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rBS=I},{mode:1});var ikm;var qG=function(){var I=_.q.apply(this,arguments)||this;I.isInlinePreviewTriggered=!1;I.JSC$13168_activeViewMeasurementDataResolver=_.vP();return I};
_.R(qG,_.q);_.u=qG.prototype;_.u.configureRendererStamper=function(){return{dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.attached=function(){var I=this;this.updateInlinePreviewHoverListeners();this.JSC$13168_activeViewMeasurementDataResolver.promise.then(function(C){I.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)})};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13168_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.JSC$13168_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:uY8})};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$13168_inlinePreviewHoverListener)==null||oc(I)};
_.u.onDataChanged=function(){var I;((I=this.data)==null?0:I.activeView)&&this.JSC$13168_activeViewMeasurementDataResolver.resolve(this.data.activeView);this.updateInlinePreviewHoverListeners();this.ytSparklesClickLocationBehavior.configureClickTargets("thumbnail-container",qG.JSC$13167_DEFAULT_CLICK_LOCATION_BEHAVIOR,qG.JSC$13167_CLICK_LOCATION_ID_MAP);this.thumbnail&&(I=this.thumbnail.getElementsByTagName("a"),I.length>0&&(I=I.namedItem("thumbnail"))&&I.removeAttribute("href"))};
_.u.onThumbnailContainerClick=function(I){if(this.data&&this.data.navigationEndpoint){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint;this.ytSparklesClickLocationBehavior.handleClick(y,I,!0);I.stopPropagation()}};
_.u.shouldUseImpressionPingingEndpoint=function(){return this.data&&this.data.onImpression};
_.u.impressionLog=function(){var I=this;if(!(!this.shouldUseImpressionPingingEndpoint()||this.data&&this.data.impressionsFired)){var C,y,k=(y=_.l((C=this.data)==null?void 0:C.onImpression,_.r9))==null?void 0:y.commands;k&&(k.forEach(function(F){F.clickTrackingParams&&delete F.clickTrackingParams;_.N().resolve(_.ID).resolveCommand(F,{form:{element:I.hostElement}})}),this.data.impressionsFired=!0)}};
_.H1.Object.defineProperties(qG.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$13168_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
qG.prototype.onDataChanged=qG.prototype.onDataChanged;qG.JSC$13167_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","thumbnail-container"]]);qG.JSC$13167_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];_.E([_.g(VJ),_.h("design:type",Object)],qG.prototype,"ytdActiveViewBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qG.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],qG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],qG.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],qG.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],qG.prototype,"ytdReduxBehavior",void 0);
_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],qG.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qG.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],qG.prototype,"isInlinePreviewTriggered",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],qG.prototype,"miniMode",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],qG.prototype,"thumbnail",void 0);
_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],qG.prototype,"JSC$13168_dismissibleMedia",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qG.prototype,"onDataChanged",null);_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qG.prototype,"isHovered",null);qG=_.E([_.m({is:"ytd-video-display-full-buttoned-renderer",disableElementRegistration:!0})],qG);
_.Z(qG,"ytd-video-display-full-buttoned-renderer",function(){if(ikm!==void 0)return ikm;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ikm=I},{mode:1});var zx=function(I,C,y,k){k=k===void 0?!1:k;_.Im.call(this,I);this.adsClientErrorMessage=y;this.aggressivelySample=k;this.args=[];C&&this.args.push(C)};
_.R(zx,_.Im);var FS=function(I,C,y,k){k=k===void 0?!1:k;_.Im.call(this,I);this.adsClientErrorMessage=y;this.aggressivelySample=k;this.args=[];C&&this.args.push(C)};
_.R(FS,_.Im);var w65=function(I){_.LL.call(this);var C=this;this.initializationFunction=I;this.instance=null;this.addOnDisposeCallback(function(){_.Bi(C.instance);C.instance=null})};
_.R(w65,_.LL);w65.prototype.get=function(){Math.random()<.001&&this.isDisposed()&&_.Ml("Tried to retrieve object during dispose",void 0,void 0,{type:typeof this.instance});this.instance||(this.instance=this.initializationFunction());return this.instance};var $Zm=function(){var I=new Map;[].forEach(function(C){I.set(C.JSC$26679_getType(),C)})};new Promise(function(){});var NDY=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"]]),p6m=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"}]]),nJc=function(I){this.experimentApiProvider=I;I=Math.random();this.experimentApiProvider.get();this.alwaysIncludeDebugData=I<.1};var mQ=function(I,C,y,k){_.LL.call(this);this.adsControlFlowEventListeners=C;this.adEventLogger=y;this.experimentApiProvider=k;this.adsControlFlowManagerHelper=I(this,this,this,this,this);_.kq(this,this.adsControlFlowManagerHelper);I=_.T(C);for(C=I.next();!C.done;C=I.next())_.kq(this,C.value)};
_.R(mQ,_.LL);var Poq=function(I,C,y,k){Zw(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_RECEIVED",C,y,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k);I=_.T(I.adsControlFlowEventListeners);for(k=I.next();!k.done;k=I.next())Poq(k.value,C,y)};
_.u=mQ.prototype;_.u.onOpportunityProcessedExternallyManaged=function(I,C,y,k){Zw(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_OPPORTUNITY_PROCESSED",I,y,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,k)};
_.u.onSlotReceivedExternallyManaged=function(I,C){Be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_RECEIVED",I,C)};
_.u.onSlotEntered=function(I){if(Ep(this.adsControlFlowManagerHelper,I)!=null){Be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",I);this.adsControlFlowManagerHelper.onSlotEntered(I);for(var C=_.T(this.adsControlFlowEventListeners),y=C.next();!y.done;y=C.next())y.value.onSlotEntered(I);if(Ep(this.adsControlFlowManagerHelper,I)!=null&&Ep(this.adsControlFlowManagerHelper,I).isOccupyingSlotType()&&hD(this.adsControlFlowManagerHelper,I)&&!LWu(this.adsControlFlowManagerHelper,I)){var k;Up(this.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_ENTER_LAYOUT_REQUESTED",I,(k=hD(this.adsControlFlowManagerHelper,I))!=null?k:void 0);I=Ep(this.adsControlFlowManagerHelper,I);I.slotLifecycleStage!=="entered"&&He(I.slot,I.slotLifecycleStage,"enterLayoutForSlot");I.slotLifecycleStage="rendering";I.registeredLayoutRenderingAdapter.startRendering(I.layout)}}};
_.u.onSlotExited=function(I){if(Ep(this.adsControlFlowManagerHelper,I)!=null){Be(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",I);this.adsControlFlowManagerHelper.onSlotExited(I);for(var C=_.T(this.adsControlFlowEventListeners),y=C.next();!y.done;y=C.next())y.value.onSlotExited(I);Ep(this.adsControlFlowManagerHelper,I)!=null&&Ep(this.adsControlFlowManagerHelper,I).markedForUnscheduleAfterOutboundAdapterRequests&&DZw(this,I)}};
_.u.onLayoutReceivedExternallyManaged=function(I,C,y){I.managerLayer!=="core"&&Up(this.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_RECEIVED",I,C,y)};
var p6b=function(I,C,y){if(Ep(I.adsControlFlowManagerHelper,C)!=null){Up(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,y);I=_.T(I.adsControlFlowEventListeners);for(var k=I.next();!k.done;k=I.next())p6b(k.value,C,y)}};
mQ.prototype.onLayoutExited=function(I,C,y){if(Ep(this.adsControlFlowManagerHelper,I)!=null){Up(this.adEventLogger,QaK(y),I,C);this.adsControlFlowManagerHelper.onLayoutExited(I,C);for(var k=_.T(this.adsControlFlowEventListeners),F=k.next();!F.done;F=k.next())F.value.onLayoutExited(I,C,y);(y=hD(this.adsControlFlowManagerHelper,I))&&C.layoutId===y.layoutId&&Qa8(this,I)}};
mQ.prototype.disposeInternal=function(){var I=NDP(this.adsControlFlowManagerHelper);I=_.T(I);for(var C=I.next();!C.done;C=I.next())DZw(this,C.value);_.LL.prototype.disposeInternal.call(this)};
var DZw=function(I,C){if(Ep(I.adsControlFlowManagerHelper,C)!=null)if(Ep(I.adsControlFlowManagerHelper,C).JSC$26710_isSlotExitRequested()||Ep(I.adsControlFlowManagerHelper,C).JSC$26710_isLayoutExitRequested())Ep(I.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0;else if(Ep(I.adsControlFlowManagerHelper,C).isOccupyingSlotType())Ep(I.adsControlFlowManagerHelper,C).markedForUnscheduleAfterOutboundAdapterRequests=!0,Qa8(I,C);else if(Ep(I.adsControlFlowManagerHelper,C).JSC$26710_isSlotFillRequested())Ep(I.adsControlFlowManagerHelper,
C).markedForUnscheduleAfterOutboundAdapterRequests=!0,Ep(I.adsControlFlowManagerHelper,C)!=null&&(Be(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_CANCEL_SLOT_FULFILLMENT_REQUESTED",C),C=Ep(I.adsControlFlowManagerHelper,C),C.fulfillmentLifecycleStage="fill_cancel_requested",C.registeredFulfillmentAdapter.cancelSlotFilling());else{var y=hD(I.adsControlFlowManagerHelper,C),k;I.experimentApiProvider.get();(k=_.V("h5_enable_layout_unscheduling_events"))&&(y?V5q(I,C,y):_.Ml(Error("Ih"),C,y,void 0,!1));Be(I.adEventLogger,
"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_SLOT_REQUESTED",C);var F=Ep(I.adsControlFlowManagerHelper,C),z=C.slotEntryTrigger,c=F.registeredSlotEntryTriggerAdapters.get(z.triggerId);c&&(c.unregisterTrigger(z),F.registeredSlotEntryTriggerAdapters.delete(z.triggerId));z=_.T(C.slotFulfillmentTriggers);for(c=z.next();!c.done;c=z.next()){c=c.value;var r=F.registeredFulfillmentTriggerAdapters.get(c.triggerId);r&&(r.unregisterTrigger(c),F.registeredFulfillmentTriggerAdapters.delete(c.triggerId))}z=_.T(C.slotExpirationTriggers);
for(c=z.next();!c.done;c=z.next())if(c=c.value,r=F.registeredExpirationTriggerAdapters.get(c.triggerId))r.unregisterTrigger(c),F.registeredExpirationTriggerAdapters.delete(c.triggerId);F.hasLayout()&&(z=F.layout,tD(F,z.layoutExitNormalTriggers),tD(F,z.layoutExitSkipTriggers),tD(F,z.layoutExitMuteTriggers),tD(F,z.layoutExitUserInputSubmittedTriggers),tD(F,z.layoutExitUserCancelledTriggers));F.registeredFulfillmentAdapter=void 0;F.registeredSlotAdapter!=null&&(F.registeredSlotAdapter.release(),F.registeredSlotAdapter=
void 0);F.registeredLayoutRenderingAdapter!=null&&(F.registeredLayoutRenderingAdapter.release(),F.registeredLayoutRenderingAdapter=void 0);F=I.adsControlFlowManagerHelper;Ep(F,C)&&(F=jaY(F,C.slotType+"_"+C.slotPhysicalPosition))&&F.delete(C.slotId);Be(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);I=_.T(I.adsControlFlowEventListeners);for(F=I.next();!F.done;F=I.next())F=F.value,F.onSlotUnscheduled(C),y&&!k&&V5q(F,C,y)}},V5q=function(I,C,y){Up(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_UNSCHEDULE_LAYOUT_REQUESTED",
C,y);
Up(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_UNSCHEDULED",C,y);I=_.T(I.adsControlFlowEventListeners);for(var k=I.next();!k.done;k=I.next())k=k.value,y&&V5q(k,C,y)},Qa8=function(I,C){if(Ep(I.adsControlFlowManagerHelper,C)!=null&&Ep(I.adsControlFlowManagerHelper,C).isOccupyingSlotType()){var y=hD(I.adsControlFlowManagerHelper,C);
if(y&&LWu(I.adsControlFlowManagerHelper,C)){if(Ep(I.adsControlFlowManagerHelper,C)!=null){var k=I.adEventLogger,F;var z=((F=p6m.get("abandoned"))==null?void 0:F.requestEvent)||"ADS_CLIENT_EVENT_TYPE_UNSPECIFIED";Up(k,z,C,y);I=Ep(I.adsControlFlowManagerHelper,C);I.slotLifecycleStage!=="rendering"&&He(I.slot,I.slotLifecycleStage,"exitLayout");I.slotLifecycleStage="rendering_stop_requested";I.registeredLayoutRenderingAdapter.stopRendering(y,"abandoned")}}else{Be(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_EXIT_SLOT_REQUESTED",
C);try{k=Ep(I.adsControlFlowManagerHelper,C);if(!k)throw new FS("Cannot exit slot it is unregistered",void 0,"ADS_CLIENT_ERROR_MESSAGE_SLOT_WAS_UNREGISTERED");k.slotLifecycleStage!=="enter_requested"&&k.slotLifecycleStage!=="entered"&&k.slotLifecycleStage!=="rendering"&&He(k.slot,k.slotLifecycleStage,"exitSlot");k.slotLifecycleStage="exit_requested";if(k.registeredSlotAdapter===void 0)throw k.slotLifecycleStage="scheduled",new FS("Cannot exit slot because adapter is not defined",void 0,"ADS_CLIENT_ERROR_MESSAGE_NO_SLOT_ADAPTER_REGISTERED");
k.registeredSlotAdapter.exit()}catch(c){c instanceof FS&&c.adsClientErrorMessage?(l2d(I.adEventLogger,c.adsClientErrorMessage,C),_.Ml(c,C,void 0,void 0,c.aggressivelySample)):(l2d(I.adEventLogger,"ADS_CLIENT_ERROR_MESSAGE_UNEXPECTED_ERROR",C),_.Ml(c,C))}}}};var JD=function(I,C,y,k,F,z){_.LL.call(this);this.registry=I;this.experimentApiProvider=z;this.slotMap=new Map};
_.R(JD,_.LL);var jaY=function(I,C){return(I=I.slotMap.get(C))?I:new Map},Ep=function(I,C){return jaY(I,C.slotType+"_"+C.slotPhysicalPosition).get(C.slotId)},NDP=function(I){var C=[];
I.slotMap.forEach(function(y){y=_.T(y.values());for(var k=y.next();!k.done;k=y.next())C.push(k.value.slot)});
return C};
JD.prototype.onSlotEntered=function(I){I=Ep(this,I);I.slotLifecycleStage!=="enter_requested"&&He(I.slot,I.slotLifecycleStage,"onSlotEntered");I.slotLifecycleStage="entered"};
var LWu=function(I,C){I=Ep(I,C);return I.hasLayout()&&I.isRendering()},hD=function(I,C){(I=Ep(I,C))?I.hasLayout()&&!I.layout&&_.Ml("Unexpected empty layout",C):_.Ml("Unexpected undefined slotState",C);
return(I==null?void 0:I.layout)||null};
JD.prototype.onSlotExited=function(I){I=Ep(this,I);I.slotLifecycleStage!=="exit_requested"&&He(I.slot,I.slotLifecycleStage,"onSlotExited");I.slotLifecycleStage="scheduled"};
JD.prototype.onLayoutExited=function(I,C){I=Ep(this,I);I.isPrimaryLayout(C)&&(I.slotLifecycleStage!=="rendering_stop_requested"&&He(I.slot,I.slotLifecycleStage,"onLayoutExited"),I.slotLifecycleStage="entered")};
var tD=function(I,C){C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=I.registeredLayoutExitTriggerAdapters.get(y.triggerId);k&&(k.unregisterTrigger(y),I.registeredLayoutExitTriggerAdapters.delete(y.triggerId))}},He=function(I,C,y){_.Ml("Slot stage was "+C+" when calling method "+y,I)};var $Zb=function(I){_.LL.call(this);this.deps=I;this.JSC$13217_adsControlFlowManager=X6b(this)};
_.R($Zb,_.LL);var X6b=function(I){var C=new mQ(function(y,k,F,z){return new JD(I.deps.registry,y,k,F,z,I.deps.experimentApiProvider)},new Set(X6m(I.deps.registry).concat(I.deps.listeners)),I.deps.adEventLogger,I.deps.experimentApiProvider);
_.kq(I,C);return C};var RN0=function(I,C){_.LL.call(this);this.experimentApiProvider=I;this.eventLoggingSettingsProvider=C;this.eventCount=0};
_.R(RN0,_.LL);RN0.prototype.logEvent=function(I){Zw(this,I)};
var Be=function(I,C,y,k){Zw(I,C,void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,void 0,k)},Up=function(I,C,y,k,F){Zw(I,C,void 0,void 0,void 0,y,k?k:void 0,void 0,void 0,y.adSlotLoggingData,k?k.adLayoutLoggingData:void 0,void 0,F)},l2d=function(I,C,y){Zw(I,"ADS_CLIENT_EVENT_TYPE_ERROR",void 0,void 0,void 0,y,void 0,void 0,void 0,y.adSlotLoggingData,void 0,{errorType:"ADS_CLIENT_ERROR_TYPE_EXIT_SLOT_FAILED",
errorMessage:C})},Zw=function(I,C,y,k,F,z,c,r,w,L,D,p,Q){Q=Q===void 0?0:Q;
bkc(I.experimentApiProvider.get(),"h5_enable_pacf_debug_logs")&&console.log("[PACF]: "+C,"slot:",z,"layout:",c,"ping:",r,"Opportunity:",{opportunityType:y,associatedSlotId:k,slotsFromOpportunity:F,triggerBundle:w,adSlotLoggingData:L,adLayoutLoggingData:D});try{var X=function(){I.experimentApiProvider.get();if(C!=="ADS_CLIENT_EVENT_TYPE_UNSPECIFIED"){C||_.Ml("Empty PACF event type",z,c);var b=I.eventLoggingSettingsProvider.get();var S;(S=b.alwaysIncludeDebugData)||(b.experimentApiProvider.get(),S=
!1);b=S;S={eventType:C,eventOrder:++I.eventCount};var A={};z&&(A.slotData=jat(b,z));if(c){var x={type:c.layoutType,controlFlowManagerLayer:NDY.get(c.managerLayer)||"CONTROL_FLOW_MANAGER_LAYER_UNSPECIFIED"};b&&(x.debugData={layoutId:c.layoutId});A.layoutData=x}r&&(A.pingData={pingDispatchStatus:r.dispatchStatus,serializedAdPingMetadata:r.ping.serializedAdPingMetadata,pingIndex:r.index});w&&(A.triggerData=V5O(w.trigger,w.category));y&&(A.opportunityData=l2W(b,y,k,F));S.adClientData=A;L&&(S.serializedSlotAdServingData=
L.serializedSlotAdServingDataEntry);D&&(S.serializedAdServingData=D.serializedAdServingDataEntry);p&&(S.errorInfo=p);_.b2("adsClientStateChange",{adsClientEvent:S})}};
Q&&Q>0?_.NU(_.R7(),function(){return X()},Q):X()}catch(b){bkc(I.experimentApiProvider.get(),"html5_log_pacf_logging_errors")&&_.NU(_.R7(),function(){_.Ml(b instanceof Error?b:String(b),z,c,{pacf_message:"exception during pacf logging"})})}};var Yfc=function(I,C){RN0.call(this,I,C)};
_.R(Yfc,RN0);var Gmd=function(){},bkc=function(I,C){return _.V(C)};var Sfd=function(){var I=new f2d;this.JSC$13236_adsControlFlowManager=(new $Zb(I)).JSC$13217_adsControlFlowManager},f2d=function(){_.LL.call(this);
var I=this;this.experimentApiProvider=new w65(function(){return new Gmd});
var C=new w65(function(){return new nJc(I.experimentApiProvider)});
this.adEventLogger=new Yfc(this.experimentApiProvider,C);this.registry={opportunityAdapterMap:new Map,fulfillmentAdapterFactoryMap:new Map,triggerAdapterMap:new Map,slotAdapterFactoryMap:new Map,layoutRenderingAdapterFactoryMap:new Map};this.listeners=[]};
_.R(f2d,_.LL);var KWe=function(){},AB0,Op=function(){AB0||(AB0=new KWe);
return AB0},a9=function(I){if(!I.JSC$13247_externallyManagedSlotAdapterCallback){var C=(new Sfd).JSC$13236_adsControlFlowManager;
I.JSC$13247_externallyManagedSlotAdapterCallback=C}return I.JSC$13247_externallyManagedSlotAdapterCallback},gJY=function(I,C,y){var k=C.opportunityType,F=Error("Jh");
if(k!==void 0){var z=a9(I);Poq(z,k,void 0,y)}else _.Ml(F,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});z=[];if(C.adSlotAndLayoutMetadata!==void 0){C=_.T(C.adSlotAndLayoutMetadata);for(var c=C.next();!c.done;c=C.next()){var r=c.value;if(c=r.adSlotMetadata)if(z.push(c),I.onSlotReceivedExternallyManaged(c,y),r.adLayoutMetadata){r=_.T(r.adLayoutMetadata);for(var w=r.next();!w.done;w=r.next())I.onLayoutReceivedExternallyManaged(c,w.value,y)}else y>0&&_.Ml("AdLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+
k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});else y>0&&_.Ml("AdSlotMetadata is not filled for PACFied response on TV for opportunity type: "+k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"})}}else y>0&&_.Ml("AdSlotAndLayoutMetadata is not filled for PACFied response on TV for opportunity type: "+k,void 0,void 0,{event:"onOpportunityReceivedExternallyManaged"});if(k!==void 0)I.onOpportunityProcessedExternallyManaged(k,z,void 0,y);else _.Ml(F,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"})};
KWe.prototype.onSlotReceivedExternallyManaged=function(I,C){I=us(I);if(I instanceof FS)_.Ml(I,void 0,void 0,{event:"onSlotReceivedExternallyManaged"});else a9(this).onSlotReceivedExternallyManaged(I,C)};
KWe.prototype.onLayoutReceivedExternallyManaged=function(I,C,y){I=us(I);C=RNI(C);if(I instanceof FS)_.Ml(I,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else if(C instanceof zx)_.Ml(C,void 0,void 0,{event:"onLayoutReceivedExternallyManaged"});else a9(this).onLayoutReceivedExternallyManaged(I,C,y)};
KWe.prototype.onOpportunityProcessedExternallyManaged=function(I,C,y,k){var F=[];C=_.T(C);for(var z=C.next();!z.done;z=C.next())z=us(z.value),z instanceof FS?_.Ml(z,void 0,void 0,{event:"onOpportunityProcessedExternallyManaged"}):F.push(z);a9(this).onOpportunityProcessedExternallyManaged(I,F,y,k)};
var vJw=function(I,C){C=us(C);if(C instanceof FS)_.Ml(C,void 0,void 0,{event:"onSlotScheduledAndEnteredExternallyManaged"});else{var y=a9(I);Be(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_SCHEDULED",C);y=_.T(y.adsControlFlowEventListeners);for(var k=y.next();!k.done;k=y.next())k=Ep(k.value,C),k.slotLifecycleStage!=="not_scheduled"&&He(k.slot,k.slotLifecycleStage,"onSlotScheduled"),k.slotLifecycleStage="scheduled";I=a9(I);Be(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_ENTERED",C);I=_.T(I.adsControlFlowEventListeners);
for(y=I.next();!y.done;y=I.next())y.value.onSlotEntered(C)}},WWS=function(I,C){C=us(C);
if(C instanceof FS)_.Ml(C,void 0,void 0,{event:"onSlotExitedAndUnscheduledExternallyManaged"});else{var y=a9(I);Be(y.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_EXITED",C);y=_.T(y.adsControlFlowEventListeners);for(var k=y.next();!k.done;k=y.next())k.value.onSlotExited(C);I=a9(I);Be(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_SLOT_UNSCHEDULED",C);I=_.T(I.adsControlFlowEventListeners);for(y=I.next();!y.done;y=I.next())y.value.onSlotUnscheduled(C)}},dZY=function(I,C,y){C=us(C);
y=RNI(y);if(C instanceof FS)_.Ml(C,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else if(y instanceof zx)_.Ml(y,void 0,void 0,{event:"onLayoutScheduledAndEnteredExternallyManaged"});else{var k=a9(I);Up(k.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_SCHEDULED",C,y);k=_.T(k.adsControlFlowEventListeners);for(var F=k.next();!F.done;F=k.next())F.value.onLayoutScheduled(C,y);I=a9(I);Up(I.adEventLogger,"ADS_CLIENT_EVENT_TYPE_LAYOUT_ENTERED",C,y);I=_.T(I.adsControlFlowEventListeners);
for(k=I.next();!k.done;k=I.next())p6b(k.value,C,y)}},MG=function(I,C,y){C=us(C);
y=RNI(y);if(C instanceof FS)_.Ml(C,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else if(y instanceof zx)_.Ml(y,void 0,void 0,{event:"onLayoutExitedAndUnscheduledExternallyManaged"});else{var k=a9(I);Up(k.adEventLogger,QaK("normal"),C,y);k=_.T(k.adsControlFlowEventListeners);for(var F=k.next();!F.done;F=k.next())F.value.onLayoutExited(C,y,"normal");I=a9(I);I=_.T(I.adsControlFlowEventListeners);for(k=I.next();!k.done;k=I.next())V5q(k.value,C,y)}};_.IO=_.BO(function(I){var C=_.ZB(I,{targetHeight:void 0,targetWidth:void 0,preserveHeight:!1,preserveWidth:!1,useWidth:!1,setOnErrorHandler:!1,setProgressiveImageLoading:!1,listenToTapEvent:!1,isGridViewEnabled:!1});I=Object.assign({},C);var y=C.data;C=C.customCommandResolver;var k=(delete I.data,delete I.customCommandResolver,I),F=_.Es();_.UG(F,function(){return y().interaction},C,function(){var r;
return(r=k.listenToTapEvent)==null?void 0:r.call(k)});
_.a0(F,{visibilityCallback:function(r){var w,L=(w=y().interaction)==null?void 0:w.onFirstVisible;r&&(L&&_.Gp(L),k.setOnErrorHandler()&&bkX(F))},
showOption:_.dF});I=_.T(_.c4(!1,void 0,"eiYvIe"));var z=I.next().value,c=I.next().value;I=_.uk(function(){var r;((r=k.setTouchEndHandler)==null?0:r.call(k))&&!z()&&(F.value.click(),c(!0),setTimeout(function(){c(!1)},100));
return!1});
return _.P("ad-image-view-model",{class:function(){var r,w=[((r=y().interaction)==null?0:r.onTap)?"ytwAdImageViewModelHostIsClickableAdComponent":"ytwAdImageViewModelHost"],L;((L=k.isGridViewEnabled)==null?0:L.call(k))&&w.push("ytwAdImageViewModelHostInGridView");return w.join(" ")},
el:F,"on:touchend":I},_.P("div",{class:"ytwAdImageViewModelHostImageContainer"},_.P(_.x$,{data:function(){var r;return{sources:y().imageSources,contentMode:(r=y().imageProperties)==null?void 0:r.contentMode}},
alt:function(){var r,w;return((r=y().interaction)==null?void 0:(w=r.accessibility)==null?void 0:w.label)||""},
targetHeight:k.targetHeight,targetWidth:k.targetWidth,preserveHeight:k.preserveHeight,preserveWidth:k.preserveWidth,useWidth:k.useWidth,style:function(){var r,w;return"vertical-align: bottom;"+(((r=y().background)==null?0:r.color)?"background-color:"+_.lg((w=y().background)==null?void 0:w.color)+";":"")},
className:function(){return k.setProgressiveImageLoading()?"ytwAdImageViewModelHostImage":void 0},
draggable:function(){var r,w;return(w=(r=k.setDraggable)==null?void 0:r.call(k))!=null?w:void 0}})))},"$a");var xZd=_.BO(function(I){var C=I.data,y=I.listenToTapEvent,k=_.Es();_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")||_.UG(k,function(){return C().interaction},void 0,function(){return y==null?void 0:y()});
_.a0(k,{visibilityCallback:function(z){var c,r=(c=C().interaction)==null?void 0:c.onFirstVisible;z&&r&&_.Gp(r)},
showOption:_.dF});I=_.uk(function(){if(_.V("enable_web_home_top_landscape_image_layout_legacy_click_command")){var z,c=(z=C().interaction)==null?void 0:z.onTap;c&&_.k3(k.value,"yt-navigate",{endpoint:_.Rj(c)})}});
var F=function(){};
return _.P("ad-button-hover-overlay-view-model",{"on:click":I,class:function(){var z;return((z=C().interaction)==null?0:z.onTap)?"ytwAdButtonHoverOverlayViewModelHostIsClickableAdComponent":"ytwAdButtonHoverOverlayViewModelHost"},
el:k},function(){return _.V("enable_web_home_top_landscape_image_layout_legacy_click_command")?_.P(_.lY,{data:function(){return C().button}},{adButtonViewModel:function(z){return _.P(_.qr,{data:z.data,
customCommandResolver:F})}}):_.P(_.lY,{data:function(){return C().button}},{adButtonViewModel:_.qr})}())},"ab");var Tx;_.B9(_.BO(function(I){var C=I.data;var y=_.Es();_.V("stop_av_measurement_on_detach")&&_.$4(function(){eL(y)});
_.UG(y,function(){return C().interaction},void 0,function(){return!0});
_.a0(y,{visibilityCallback:function(c){if(c){var r;(c=(r=C().interaction)==null?void 0:r.onFirstVisible)&&_.Gp(c);var w;if(r=(w=C().adLayoutData)==null?void 0:w.activeViewData)cp(y,r),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&eL(y)})}else _.V("stop_av_measurement_on_detach")&&eL(y)},
showOption:_.dF,hideOption:xT});I=_.T(_.c4(!1,void 0,"yzu6qe"));var k=I.next().value,F=I.next().value;I=_.uk(function(){F(!0)});
var z=_.uk(function(){F(!1)});
return _.P("compact-landscape-no-button-layout-view-model",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHost",el:y,"on:mouseenter":I,"on:mouseleave":z},_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainer",style:_.cP({"max-width":function(){return _.V("enable_desktop_search_bigger_thumbs")?"500px":"360px"}})},_.P("div",{class:function(){var c;
a:{var r;switch((c=_.l(C().thumbnailImage,pZ))==null?void 0:(r=c.imageProperties)==null?void 0:r.renderingAspect){case "RENDERING_ASPECT_SQUARE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerSquareImageContainer";break a;case "RENDERING_ASPECT_LANDSCAPE":c="ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerLandscapeImageContainer";break a}c=void 0}return c}},_.P(_.lY,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(c){return _.P(_.IO,
{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})),_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.P(_.Dx,{cond:function(){var c,r,w;
return(c=_.l(C().thumbnailImage,pZ))==null?void 0:(r=c.imageProperties)==null?void 0:(w=r.overlayIcon)==null?void 0:w.iconImage},
then:function(c){return _.P(_.x$,{data:c,alt:"",className:"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"})}})),_.P("div",{class:function(){return k()?"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwCompactLandscapeNoButtonLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"}},_.P(_.lY,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:function(c){return _.P(xZd,
{data:c.data,
listenToTapEvent:!0})}}))),_.P("div",{class:"ytwCompactLandscapeNoButtonLayoutViewModelHostMetadata"},_.P(_.lY,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(c){return _.P(CSd,{data:c.data,
listenToTapEvent:!0,setTouchEndHandler:_.V("enable_top_landscape_image_experiment_dom_id_web")})}})))},"bb"),"compact-landscape-no-button-layout-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=_.Es();_.V("stop_av_measurement_on_detach")&&_.$4(function(){eL(y)});
var k=_.XU(_.KM);_.UG(y,function(){return C().interaction});
_.a0(y,{visibilityCallback:function(L){if(L){var D;(L=(D=C().interaction)==null?void 0:D.onFirstVisible)&&_.Gp(L);var p;if(D=(p=C().adLayoutData)==null?void 0:p.activeViewData)cp(y,D),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&eL(y)})}else _.V("stop_av_measurement_on_detach")&&eL(y)},
showOption:_.dF,hideOption:xT});var F=_.uk(function(L){var D,p,Q=(D=_.l(C().adImage,pZ))==null?void 0:(p=D.interaction)==null?void 0:p.onTap;Q&&(_.V("enable_square_image_components_ui_web_with_custom_event")?_.k3(y.value,"yt-navigate",{endpoint:_.Rj(Q)}):Bwm(L,Q))}),z=_.uk(function(){var L,D,p=(L=_.l(C().adButton,Bd5))==null?void 0:(D=L.interaction)==null?void 0:D.onTap;
p&&_.k3(y.value,"yt-navigate",{endpoint:_.Rj(p)})}),c=function(){};
I={};var r={},w={};return _.P("square-image-layout-view-model",{class:_.sZ("ytwSquareImageLayoutViewModelHost",(I.ytwSquareImageLayoutViewModelHostColumn=k,I)),el:y},_.P("div",{class:_.sZ("ytwSquareImageLayoutViewModelHostImage",(r.ytwSquareImageLayoutViewModelHostColumnImage=k,r))},function(){return _.V("enable_square_image_components_ui_web_with_native_img")?_.P("img",{class:"ytwSquareImageLayoutViewModelHostImageExp",src:function(){var L,D,p;return((L=_.l(C().adImage,pZ))==null?void 0:(D=L.imageSources)==
null?void 0:(p=D[0])==null?void 0:p.url)||"data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mN8XA8AAksBZG7LpHYAAAAASUVORK5CYII="},
draggable:!1,"on:click":F}):_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(L){return _.P(_.IO,{data:L.data,
isGridViewEnabled:k,targetHeight:168,setOnErrorHandler:!0,setDraggable:!1,setProgressiveImageLoading:!0})}})}()),_.P("div",{class:_.sZ("ytwSquareImageLayoutViewModelHostMetadataButtonContainer",(w.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainer=k,w))},_.P(_.lY,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:CSd}),function(){return _.V("enable_square_image_components_ui_web_with_float_button")?_.P("div",{"on:click":z},_.P(_.lY,{data:function(){return C().adButton}},
{adButtonViewModel:function(L){var D={};
return _.P(_.qr,{data:L.data,customCommandResolver:c,className:_.sZ((D.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,D.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=k,D))})}})):_.P(_.lY,{data:function(){return C().adButton}},{adButtonViewModel:function(L){var D={};
return _.P(_.qr,{data:L.data,className:_.sZ((D.ytwSquareImageLayoutViewModelHostMetadataButtonContainerButton=!0,D.ytwSquareImageLayoutViewModelHostColumnMetadataButtonContainerButton=k,D))})}})}()))},"cb"),"square-image-layout-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=I.noBottomMargin;var k=I.typographyBump;var F=_.Es();_.V("stop_av_measurement_on_detach")&&_.$4(function(){eL(F)});
_.V("enable_web_home_top_landscape_image_layout_level_click")&&_.UG(F,function(){return C().interaction},void 0,function(){return!0});
I=function(){return C().interaction};
I!==void 0&&I!==null||_.xS(Error("Kh"));_.a0(F,{visibilityCallback:function(D){if(D){var p;(D=(p=C().interaction)==null?void 0:p.onFirstVisible)&&_.Gp(D);var Q;if(p=(Q=C().adLayoutData)==null?void 0:Q.activeViewData)cp(F,p),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&eL(F)})}else _.V("stop_av_measurement_on_detach")&&eL(F)},
showOption:_.dF,hideOption:xT});var z=function(){var D,p,Q;return(D=_.l(C().thumbnailImage,pZ))==null?void 0:(p=D.background)==null?void 0:(Q=p.backgroundImageSource)==null?void 0:Q.imageSources};
I=_.T(_.c4(!1,void 0,"GIwTMc"));var c=I.next().value,r=I.next().value;I=_.uk(function(){r(!0)});
var w=_.uk(function(){r(!1)}),L=function(){return c()?"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlayVisible":"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerAdButtonHoverOverlay"};
return _.P("top-landscape-image-layout-view-model",{class:function(){var D;return((D=C().interaction)==null?0:D.onTap)&&_.V("enable_web_home_top_landscape_image_layout_level_click")?"ytwTopLandscapeImageLayoutViewModelHostIsClickableAdComponent":"ytwTopLandscapeImageLayoutViewModelHost"},
el:F,"on:mouseenter":I,"on:mouseleave":w},_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainer"},_.P(_.Dx,{cond:function(){return z()&&z().length>0},
then:function(){return _.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerBackgroundImage",style:_.cP({top:"0","background-image":function(){return"url("+String(z()[0].url)+")"},
"background-position":"center","background-repeat":"no-repeat","background-size":"100% 100%"})})}}),_.P(_.Dx,{cond:function(){return!!C().adButtonHoverOverlay},
then:function(){return _.P("div",{class:L},_.P(_.lY,{data:function(){return C().adButtonHoverOverlay}},{adButtonHoverOverlayViewModel:xZd}))}}),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerImage"},_.P(_.lY,{data:function(){return C().thumbnailImage}},{adImageViewModel:function(D){return _.P(_.IO,{data:D.data,
targetWidth:1152,useWidth:!0,setTouchEndHandler:!1,listenToTapEvent:_.V("enable_web_home_top_landscape_image_layout_level_click")})}})),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIcon"},_.P(_.x$,{data:{sources:[{clientResource:{imageName:_.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"EXTERNAL_LINK"}}]},
alt:"",className:"ytwTopLandscapeImageLayoutViewModelHostImageHoverOverlayContainerOverlayIconIconShape"}))),_.P("div",{class:"ytwTopLandscapeImageLayoutViewModelHostMetadata"},_.P(_.lY,{data:function(){return C().feedAdMetadata}},{feedAdMetadataViewModel:function(D){return _.P(CSd,{data:D.data,
noBottomMargin:function(){return y==null?void 0:y()},
listenToTapEvent:function(){return _.V("enable_web_home_top_landscape_image_layout_level_click")},
typographyBump:function(){return k==null?void 0:k()}})}})))},"db"),"top-landscape-image-layout-view-model",{props:{data:_.As,
noBottomMargin:_.As,typographyBump:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=I.typographyBump;var k=_.Es();_.V("stop_av_measurement_on_detach")&&_.$4(function(){eL(k)});
_.a0(k,{visibilityCallback:function(F){if(F){var z;(F=(z=C().interaction)==null?void 0:z.onFirstVisible)&&_.Gp(F);var c;if(z=(c=C().adLayoutData)==null?void 0:c.activeViewData)cp(k,z),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&eL(k)})}else _.V("stop_av_measurement_on_detach")&&eL(k)},
showOption:_.dF,hideOption:xT});return _.P("video-display-button-group-layout-view-model",{class:"ytwVideoDisplayButtonGroupLayoutViewModelHost",el:k},_.P("div",null,_.P(_.lY,{data:function(){return C().videoLockup}},{lockupViewModel:function(F){return _.P(_.UA,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0,useLegacySizedIconButton:!0},thumbnailTargetWidth:9999,typographyBump:y})}})))},"eb"),"video-display-button-group-layout-view-model",{props:{data:_.As,
noBottomMargin:_.As,typographyBump:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=I.typographyBump;var k=_.Es();_.V("stop_av_measurement_on_detach")&&_.$4(function(){eL(k)});
_.a0(k,{visibilityCallback:function(F){if(F){var z;(F=(z=C().interaction)==null?void 0:z.onFirstVisible)&&_.Gp(F);var c;if(z=(c=C().adLayoutData)==null?void 0:c.activeViewData)cp(k,z),_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&eL(k)})}else _.V("stop_av_measurement_on_detach")&&eL(k)},
showOption:_.dF,hideOption:xT});return _.P("video-display-full-layout-view-model",{class:"ytwVideoDisplayFullLayoutViewModelHost",el:k},_.P("div",null,_.P(_.lY,{data:function(){return C().videoLockup}},{lockupViewModel:function(F){return _.P(_.UA,{data:F.data,
containerLayoutConfig:{containerType:"CONTAINER_TYPE_GRID"},lockupExperiments:{useRichGridLegacyMargin:!0},thumbnailTargetWidth:9999,typographyBump:y})}})))},"fb"),"video-display-full-layout-view-model",{props:{data:_.As,
noBottomMargin:_.As,typographyBump:_.As}});_.qfP=_.BO(function(I){var C=I.data;I=_.Es();return _.P("ad-card-badge-view-model",{class:function(){return"ytwAdCardBadgeViewModelHost"},
el:I},_.P(_.Dx,{cond:function(){return C().imageBadge},
then:function(y){return _.P(_.x$,{data:y,alt:""})}}))},"gb");var mZ0=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});return _.P("carousel-ad-card-image-view-model",{class:function(){var k;return((k=C().interaction)==null?0:k.onTap)?"ytwCarouselAdCardImageViewModelHostIsClickableAdComponent":"ytwCarouselAdCardImageViewModelHost"},
el:I,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(k){return _.P(_.IO,{data:k.data,
customCommandResolver:y})}}),_.P("div",{class:"ytwCarouselAdCardImageViewModelHostCardBadge"},_.P(_.lY,{data:function(){return C().badge}},{adCardBadgeViewModel:_.qfP})),_.P(_.nE,{model:{color:4}}))},"hb");var Zk0=_.BO(function(I){var C=_.T(_.c4(0,void 0,"o9Bzd")),y=C.next().value;C.next();var k=C.next().value,F=_.T(_.c4(!1,void 0,"KLdzYe"));C=F.next().value;var z=F.next().value,c;_.$4(function(){clearTimeout(c)});
F=_.uk(function(){var L;((L=I.animate)==null?0:L.call(I))?(z(!0),c=setTimeout(function(){z(!1);r()},200)):r();
return!1});
var r=function(){k(function(L){return(L+I.numShownItems())%I.data().length})},w={};
return _.P("horizontal-carousel",{class:"ytwHorizontalCarouselHost"},_.P("div",{class:_.sZ("ytwHorizontalCarouselCarouselWrapper")},_.P("div",{class:_.sZ("ytwHorizontalCarouselCarouselInnerWrapper",(w.ytwHorizontalCarouselAnimating=C,w))},_.P(_.pH,{each:I.data,keyBy:"INDEX"},function(L,D){return _.P("div",{class:"ytwHorizontalCarouselCarouselItem",style:_.cP({"flex-basis":function(){return"calc((100% - (8px * "+(I.numShownItems()-1)+")) / "+I.numShownItems()+")"},
order:function(){var p=D-y();p<0&&(p+=I.data().length);return p}})},I.children(L,D))}))),_.P("div",{class:"ytwHorizontalCarouselNextButton",
"on:click":F},I.nextButton()))},"ib");var BDd=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;var k=I.expansive;I=_.Es();_.a0(I,{visibilityCallback:function(F){var z,c=(z=C().interaction)==null?void 0:z.onFirstVisible;F&&c&&_.Gp(c)},
showOption:_.dF});return _.P("carousel-ad-card-collection-view-model",{class:"ytwCarouselAdCardCollectionViewModelHost",el:I},_.P(Zk0,{data:function(){var F;return((F=C())==null?void 0:F.carouselAdCards)||[]},
nextButton:function(){return _.P(_.lY,{data:function(){return C().nextButton}},{buttonViewModel:function(F){var z=F.data;
return _.P(_.fM,{data:function(){return(k==null?0:k())?Object.assign({},z(),{style:"mono"}):z()},
className:_.V("web_enable_full_height_carousel_next_button")?"ytwCarouselAdCardCollectionViewModelFullHeightButton":""})}})},
numShownItems:3,animate:!0},function(F){return _.P(_.lY,{data:F},{carouselAdCardImageViewModel:function(z){return _.P(mZ0,{data:z.data,customCommandResolver:y})}})}))},"jb");var EJb=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;var k=I.className;var F=I.buttonClassName;var z=I.animationEntityKey;var c=I.expansive;return _.P("carousel-button-view-model",{class:_.sZ("ytwCarouselButtonViewModelHost",k)},_.P(_.lY,{data:function(){return C().carousel}},{carouselAdCardCollectionViewModel:function(r){return _.P(BDd,{data:r.data,
customCommandResolver:y,expansive:c})}}),_.P(_.lY,{data:function(){return C().button}},{adButtonViewModel:function(r){var w=r.data;
return _.P(_.qr,{data:function(){return(c==null?0:c())?Object.assign({},w(),{style:"AD_BUTTON_STYLE_TONAL"}):w()},
className:F,customCommandResolver:y,animationEntityKey:z})}}))},"kb");_.hN5=_.BO(function(I){var C=I.data;I=I.className;var y=_.Es();_.RU(function(){var k;((k=C())==null?0:k.backgroundColor)&&y.value.setAttribute("data-background-color",String(C().backgroundColor))});
return _.P("pivot-button-view-model",{el:y,class:_.sZ("ytwPivotButtonViewModelHost",I)},_.P(_.ik,{command:function(){var k=C();k=k.onClickCommand?_.Rj(k.onClickCommand):k.contentDescription?_.Oe(k.contentDescription):void 0;return k},
ariaLabel:function(){return C().contentDescription}},_.P(_.Dx,{cond:function(){return C().thumbnail},
then:function(k){return _.P(_.x$,{data:k,alt:"",className:"ytwPivotButtonViewModelHostImage"})},
else:function(){return _.P(_.Dx,{cond:function(){return C().icon},
then:function(k){return _.P(_.ez,{icon:function(){return k().iconType},
className:"ytwPivotButtonViewModelHostIcon"})}})}})))},"lb");_.UZw=_.BO(function(I){var C=I.data;var y=I.buttonShapeOverrideables;return _.P("reel-action-bar-view-model",{class:"ytwReelActionBarViewModelHost"},_.P(_.lY,{data:function(){return C().buttonViewModels}},{buttonViewModel:function(k){return _.P(_.fM,{data:k.data,
buttonOverrides:y})},
likeButtonViewModel:function(k){return _.P(_.enc,{data:k.data,buttonShapeOverrideables:y})},
dislikeButtonViewModel:function(k){return _.P(_.c6m,{data:k.data,buttonShapeOverrideables:y})}}))},"mb");var Hkw=_.BO(function(I){var C=I.avatar;var y=I.headline;var k=I.badge;var F=I.description;var z=I.expansive;I={};return _.P("yt-ad-metadata-shape",{class:_.sZ("ytAdMetadataShapeHost",(I.ytAdMetadataShapeHostLarge=z,I))},_.P("div",{class:"ytAdMetadataShapeHostAvatarLockup"},_.P(_.Dx,{cond:C,then:function(c){return _.P(_.Otq,{data:function(){return(z==null?0:z())?Object.assign({},c(),{size:"AD_AVATAR_SIZE_MPLUS"}):c()}})}}),_.P("div",{class:"ytAdMetadataShapeHostHeadlineContainer"},_.P(_.wh,{text:y,
className:"ytAdMetadataShapeHostHeadline",linkInheritColor:!0}),_.P(_.Dx,{cond:k,then:function(c){return _.P(_.EA,{data:function(){return(z==null?0:z())?Object.assign({},c(),{style:"AD_BADGE_STYLE_STARK"}):c()},
adRenderingContextType:"AD_RENDERING_CONTEXT_TYPE_REELS"})}}))),_.P("h2",{class:"ytAdMetadataShapeHostDescription"},_.P(_.wh,{text:F,
linkInheritColor:!0})))},"nb");var t5q=_.BO(function(I){var C=I.data;var y=I.onShow;var k=I.expansive;I=_.Es();_.UG(I,function(){return C().interaction});
_.RU(function(){var z,c=(z=C().animatedRenderingConfig)==null?void 0:z.delayedSecondsToVisible;if(c){var r=setTimeout(y,c*1E3);_.$4(function(){clearTimeout(r)})}});
var F={};return _.P("reels-ad-card-buttoned-view-model",{class:_.sZ(function(){var z;return((z=C().interaction)==null?0:z.onTap)?"ytwReelsAdCardButtonedViewModelHostIsClickableAdComponent":"ytwReelsAdCardButtonedViewModelHost"},(F.ytwReelsAdCardButtonedViewModelHostExpansive=k,F)),
el:I},_.P(Hkw,{avatar:function(){return _.l(C().avatar,mme)},
headline:function(){return C().headline},
badge:function(){return _.l(C().adBadge,ZF5)},
description:function(){return C().description},
expansive:k}),_.P(_.lY,{data:function(){return C().ctaButton}},{adButtonViewModel:function(z){var c=z.data;
return _.P(_.qr,{data:function(){return(k==null?0:k())?Object.assign({},c(),{style:"AD_BUTTON_STYLE_FILLED"}):c()}})}}))},"ob");var JB5=_.BO(function(I){var C=I.data;I=I.expansive;var y=_.Es();_.V("web_ad_metadata_clickable")&&_.UG(y,function(){return C().interaction});
var k={};k=_.yc("ytwReelsAdMetadataViewModelHost",(k.ytwReelsAdMetadataViewModelHostIsClickableAdComponent=_.V("web_ad_metadata_clickable"),k));return _.P("reels-ad-metadata-view-model",{class:k,el:y},_.P(Hkw,{avatar:function(){return _.l(C().avatar,mme)},
headline:function(){return C().headline},
badge:function(){return _.l(C().adBadge,ZF5)},
description:function(){return C().description},
expansive:I}))},"pb");var Oke={iconPosition:"icon-with-label",size:"L"},a2u=_.BO(function(I){var C=I.data;I=I.overlayDensity;var y=_.Es(),k=_.mh(I,0);_.l0(function(){y.value.setAttribute("overlay-density",String(k()))});
var F=function(){var p;return(p=C().reelsAdCardButtonedEntityKey)!=null?p:""},z=function(){return F()+"/ad_button"},c=_.cj(ghs,F),r=function(){var p,Q;
return(Q=(p=c())==null?void 0:p.value)!=null?Q:!1},w=_.XU(ABI),L=function(){return Object.assign({},Oke,(w()||k()===2)&&{style:"overlay-dark"})};
I={};var D={};return _.P("reels-player-overlay-layout-view-model",{class:_.sZ("ytwReelsPlayerOverlayLayoutViewModelHost",(I.ytwReelsPlayerOverlayLayoutViewModelHostHasExtension=function(){return!!C().extension},I.ytwReelsPlayerOverlayLayoutViewModelHostDesktop=function(){return!0},I)),
el:y},_.P("div",{class:_.sZ("ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainer",(D.ytwReelsPlayerOverlayLayoutViewModelHostMetadataContainerEnableBorderRadius=function(){return!0},D))},_.P("div",{"aria-hidden":function(){return r()},
class:_.sZ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return r()?"ytwReelsPlayerOverlayLayoutViewModelHide":"ytwReelsPlayerOverlayLayoutViewModelShow"}),
style:_.cP({"transition-duration":function(){return WWH(C())}})},_.P(_.lY,{data:function(){return C().adMetadata}},{reelsAdMetadataViewModel:function(p){return _.P(JB5,{data:p.data,
expansive:function(){return k()===1}})}}),_.P(_.Dx,{cond:function(){return C().extension},
then:function(p){return _.P("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostExtension"},_.P(_.lY,{data:p},{adButtonViewModel:function(Q){return _.P(_.qr,{data:Q.data,animationEntityKey:z,delayedClassName:"ytwReelsPlayerOverlayLayoutViewModelTopMargin"})},
carouselButtonViewModel:function(Q){return _.P(EJb,{data:Q.data,animationEntityKey:z,className:"ytwReelsPlayerOverlayLayoutViewModelTopMargin",expansive:function(){return k()===1}})}}))}})),_.P("div",{"aria-hidden":function(){return!r()},
class:_.sZ("ytwReelsPlayerOverlayLayoutViewModelHostAnimatingContainer",function(){return r()?"ytwReelsPlayerOverlayLayoutViewModelShow":"ytwReelsPlayerOverlayLayoutViewModelHide"}),
style:_.cP({"transition-duration":function(){return WWH(C())}})},_.P(_.lY,{data:function(){return C().reelsAdCardButtoned}},{reelsAdCardButtonedViewModel:function(p){return _.P(t5q,{data:p.data,
onShow:function(){_.qH(_.wJ("booleanEntity",F(),{key:F(),value:!0}))},
expansive:function(){return k()===1}})}}))),_.P("div",{class:"ytwReelsPlayerOverlayLayoutViewModelHostActionBar"},_.P(_.lY,{data:function(){return C().actions}},{reelActionBarViewModel:function(p){return _.P(_.UZw,{data:p.data,
buttonShapeOverrideables:L})}}),_.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:function(p){return _.P(_.fM,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostMenuButton",buttonOverrides:function(){return Object.assign({},L(),{type:"tonal"})}})}}),_.P(_.lY,{data:function(){return C().pivotButton}},{pivotButtonViewModel:function(p){return _.P(_.hN5,{data:p.data,
className:"ytwReelsPlayerOverlayLayoutViewModelHostPivotButton"})}})))},"qb");_.B9(a2u,"reels-player-overlay-layout-view-model",{props:{data:_.As,overlayDensity:_.As}});var Cc=function(){var I=_.q.apply(this,arguments)||this;I.noBottomMargin=!1;I.overlayDensity=0;return I};
_.R(Cc,_.q);_.u=Cc.prototype;
_.u.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{carouselAdRenderer:"ytd-carousel-ad-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",displayAdRenderer:{component:"ytd-display-ad-renderer",properties:{noBottomMargin:"[[noBottomMargin]]"}},promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",squareImageLayoutViewModel:"square-image-layout-view-model",topLandscapeImageLayoutViewModel:{component:"top-landscape-image-layout-view-model",
properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayButtonGroupLayoutViewModel:{component:"video-display-button-group-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},videoDisplayFullLayoutViewModel:{component:"video-display-full-layout-view-model",properties:{noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},compactLandscapeNoButtonLayoutViewModel:"compact-landscape-no-button-layout-view-model",
promotedVideoRenderer:"ytd-promoted-video-renderer",videoDisplayFullButtonedRenderer:_.V("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]]"}}}}}};
_.u.ready=function(){var I=this;zHX(function(){I.isAttached&&ym(I.JSC$13290_storedAdSlotMetadata,I.JSC$13290_storedAdLayoutMetadata,I.adSlotMetadata,I.adLayoutMetadata)&&MG(Op(),I.JSC$13290_storedAdSlotMetadata,I.JSC$13290_storedAdLayoutMetadata)})};
_.u.attached=function(){ym(this.JSC$13290_storedAdSlotMetadata,this.JSC$13290_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dZY(Op(),this.JSC$13290_storedAdSlotMetadata,this.JSC$13290_storedAdLayoutMetadata)};
_.u.detached=function(){ym(this.JSC$13290_storedAdSlotMetadata,this.JSC$13290_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&MG(Op(),this.JSC$13290_storedAdSlotMetadata,this.JSC$13290_storedAdLayoutMetadata)};
_.u.onTypographyBumpChanged=function(){this.videoDisplayFullButtonedGroupRenderer&&(this.videoDisplayFullButtonedGroupRenderer.typographyBump=this.typographyBump)};
_.u.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13290_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13290_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13290_storedAdLayoutMetadata!==void 0&&this.JSC$13290_storedAdSlotMetadata!==void 0&&MG(Op(),this.JSC$13290_storedAdSlotMetadata,this.JSC$13290_storedAdLayoutMetadata),dZY(Op(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13290_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13290_storedAdSlotMetadata=this.adSlotMetadata)};
_.H1.Object.defineProperties(Cc.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.adLayoutMetadata}}});
Cc.prototype.onAdMetadataChanged=Cc.prototype.onAdMetadataChanged;Cc.prototype.onTypographyBumpChanged=Cc.prototype.onTypographyBumpChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Cc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Cc.prototype,"rendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Cc.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Cc.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Cc.prototype,"noBottomMargin",void 0);_.E([_.d(),_.h("design:type",Object)],Cc.prototype,"overlayDensity",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Cc.prototype,"typographyBump",void 0);_.E([_.v("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cc.prototype,"adLayoutMetadata",null);_.E([_.d(),_.h("design:type",Object)],Cc.prototype,"adSlotMetadata",void 0);
_.E([_.z$("ytd-video-display-full-buttoned-and-button-group-renderer"),_.h("design:type",HTMLElement)],Cc.prototype,"videoDisplayFullButtonedGroupRenderer",void 0);_.E([_.FI("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cc.prototype,"onTypographyBumpChanged",null);_.E([_.FI("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cc.prototype,"onAdMetadataChanged",null);
Cc=_.E([_.m({is:"ytd-in-feed-ad-layout-renderer",disableElementRegistration:!0})],Cc);
_.Z(Cc,"ytd-in-feed-ad-layout-renderer",function(){if(ZR8!==void 0)return ZR8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ZR8=I},
{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var M5q;var Iqd;var sl=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"ytd-video-masthead-ad-primary-video-renderer-playing":"onPlayerReady"};return I};
_.R(sl,_.q);_.u=sl.prototype;_.u.computeHasLiveDescription=function(I){return!(I==null||!I.liveDescription)};
_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more_vert"}}}}}};
_.u.onYtToggleButton=function(I){var C,y=(C=this.data)==null?void 0:C.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.wJ("upcomingEventReminderStateEntity",y,{key:y,state:I.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
_.u.attached=function(){this.updateChannelBanner()};
_.u.dataChanged=function(){this.updateChannelBanner()};
_.u.videoReminderStateChanged=function(){var I;this.videoReminderState&&_.l((I=this.data)==null?void 0:I.cta,_.SV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
_.u.updateChannelBanner=function(){if(this.data&&this.data.channelBanner){var I=_.E5(this.data.channelBanner.thumbnails,this.hostElement.clientWidth);I&&(I.startsWith("//")&&(I="https:"+I),this.hostElement.classList.add("channel-banner"),_.CK(this.hostElement,{"--ytvmh-channel-banner":"url("+I+")"}))}else _.V("remove_masthead_channel_banner_on_refresh")&&this.hostElement.classList.remove("channel-banner")};
_.u.onPlayerReady=function(){this.onIronResize()};
_.u.maybeFlushDebouncer=function(){_.V("web_replace_formatted_with_attributed_string")&&this.formattedStrings.forEach(function(I){var C;I=(C=I.getElementsByTagName("yt-attributed-string"))==null?void 0:C[0];RWH(I==null?void 0:I.polymerController)})};
_.u.onIronResize=function(){this.maybeFlushDebouncer();this.hostElement.clientWidth<370?this.hostElement.classList.add("no-thumbnail"):this.hostElement.classList.remove("no-thumbnail");var I=_.f(this.hostElement).querySelector("#live-description"),C;I&&((C=this.data)==null?0:C.shortLiveDescription)&&I.clientWidth<I.scrollWidth?this.hostElement.classList.add("short-live-description"):this.hostElement.classList.remove("short-live-description")};
sl.prototype.onIronResize=sl.prototype.onIronResize;sl.prototype.videoReminderStateChanged=sl.prototype.videoReminderStateChanged;sl.prototype.dataChanged=sl.prototype.dataChanged;sl.prototype.onYtToggleButton=sl.prototype.onYtToggleButton;_.E([_.g(_.Ri),_.h("design:type",Object)],sl.prototype,"ironResizableBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sl.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sl.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],sl.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sl.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.videoReminderEntityKey"],selector:fmK}),_.h("design:type",Object)],sl.prototype,"videoReminderState",void 0);
_.E([_.d({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.h("design:type",Boolean)],sl.prototype,"rounded",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasLiveDescription(data)"}),_.h("design:type",Boolean)],sl.prototype,"hasLiveDescription",void 0);_.E([_.d({reflectToAttribute:!0,value:_.V("web_resizable_advertiser_banner_on_masthead_safari_fix")}),_.h("design:type",Boolean)],sl.prototype,"resizableAdBannerSafariFix",void 0);
_.E([_.d({reflectToAttribute:!0,value:_.V("align_three_dot_menu_with_title_description")}),_.h("design:type",Boolean)],sl.prototype,"menuFix",void 0);_.E([_.T$("yt-formatted-string"),_.h("design:type",Array)],sl.prototype,"formattedStrings",void 0);_.E([_.z$("#cta-button"),_.h("design:type",HTMLElement)],sl.prototype,"ctaButton",void 0);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sl.prototype,"onYtToggleButton",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sl.prototype,"dataChanged",null);_.E([_.FI("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sl.prototype,"videoReminderStateChanged",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sl.prototype,"onIronResize",null);
sl=_.E([_.m({is:"ytd-video-masthead-ad-advertiser-info-renderer",disableElementRegistration:!0})],sl);
_.Z(sl,"ytd-video-masthead-ad-advertiser-info-renderer",function(){if(Iqd!==void 0)return Iqd;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-masthead-ad-advertiser-info-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="banner" class="yt-simple-endpoint style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n</a>\n<div id="info-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n  <div id="thumbnail-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <a id="thumbnail-endpoint" class="yt-simple-endpoint inline-block style-scope ytd-video-masthead-ad-advertiser-info-renderer" aria-hidden="true" href$="[[computeHref_(data.channelEndpoint)]]" data="[[data.channelEndpoint]]" tabindex="-1">\n      <yt-img-shadow id="thumbnail" thumbnail="[[data.channelThumbnail]]" width="80" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-img-shadow>\n    </a>\n  </div>\n  <div id="right-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n    <div id="title-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <yt-formatted-string id="title" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <div id="menu" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer"></div>\n    </div>\n    <div id="byline-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-badge-supported-renderer>\n      <yt-formatted-string id="byline" ellipsis-truncate="[[!data.liveDescription]]" link-inherit-color="" text="[[data.byline]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </yt-formatted-string>\n      <template is="dom-if" restamp="" if="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n        <div id="live-description-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          <yt-formatted-string id="short-live-description" text="[[data.shortLiveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n          <yt-formatted-string id="live-description" text="[[data.liveDescription]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n          </yt-formatted-string>\n        </div>\n      </template>\n    </div>\n    <div id="cta-container" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      <ytd-button-renderer id="cta-button" data="[[data.cta.buttonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-button-renderer>\n      <ytd-toggle-button-renderer id="reminder-button" data="[[data.cta.toggleButtonRenderer]]" class="style-scope ytd-video-masthead-ad-advertiser-info-renderer">\n      </ytd-toggle-button-renderer>\n    </div>\n  </div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Iqd=I},{mode:1});var Cwe;var oO=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};I.isLocked=!1;return I};
_.R(oO,_.q);_.u=oO.prototype;_.u.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.u.onExpandedChanged=function(){this.expanded&&_.uW(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this])};
_.u.onMouseOver=function(){this.maybeExpand()};
_.u.onTap=function(){this.maybeExpand()};
_.u.onExpandableTileExpanding=function(I){I!==this&&(this.expanded=!1)};
_.u.onExpandableTileLockAndCollapse=function(I){this.isLocked=!0;I!==this&&(this.expanded=!1)};
_.u.onExpandableTileUnlock=function(){this.isLocked=!1};
oO.prototype.onTap=oO.prototype.onTap;oO.prototype.onMouseOver=oO.prototype.onMouseOver;oO.prototype.onExpandedChanged=oO.prototype.onExpandedChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],oO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],oO.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],oO.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],oO.prototype,"expanded",void 0);_.E([_.rW("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oO.prototype,"onExpandedChanged",null);_.E([_.km("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oO.prototype,"onMouseOver",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oO.prototype,"onTap",null);
oO=_.E([_.m({is:"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",disableElementRegistration:!0})],oO);
_.Z(oO,"ytd-video-masthead-ad-expandable-thumbnail-tile-renderer",function(){if(Cwe!==void 0)return Cwe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Cwe=I},{mode:1});var skw;var yl=function(){var I=_.q.apply(this,arguments)||this;I.buttonOverrides={style:"overlay"};I.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");I.actionMap={"ytd-video-masthead-expandable-tile-expanding":"onExpandableTileExpanding","ytd-video-masthead-expandable-tile-lock-and-collapse":"onExpandableTileLockAndCollapse","ytd-video-masthead-expandable-tile-unlock":"onExpandableTileUnlock"};I.playbackFinished=!1;I.JSC$13302_playerManager=null;I.JSC$13302_mastheadCounter=new EF0;return I};
_.R(yl,_.q);_.u=yl.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$13302_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!0);this.useYtdPlayer||(this.JSC$13302_playerManager=new TZ)};
_.u.ready=function(){var I=this;this.JSC$13302_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!0);var C=_.f(this.hostElement).querySelector("#player");this.useYtdPlayer?C.style.display="none":(this.ytdPlayer.style.display="none",yCq(this.JSC$13302_playerManager,C,function(){I.onPlaybackEnded()}),_.f(this.hostElement).querySelector("#replay-button").addEventListener("click",function(){var y;
((y=I.data)==null?0:y.navigationEndpoint)&&_.k3(I.hostElement,"yt-navigate",{endpoint:I.data.navigationEndpoint})}))};
_.u.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.unlockExpandableTiles();this.playbackFinished=!0;this.JSC$13302_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!0)};
_.u.attached=function(){var I=this;_.SA(function(){I.maybePlayVideo()})};
_.u.maybePlayVideo=function(){var I=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$13302_playerManager.playVideo(),this.getPlayerPromise().then(function(){I.JSC$13302_mastheadCounter.increment("VIDEO_START",!1,!0)})))};
_.u.stopVideo=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13302_playerManager.stopVideo()};
_.u.dataChanged=function(){if(this.data)if(this.useYtdPlayer){var I,C={autoplay:0,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((I=this.data.playbackStartMs)!=null?I:0)/1E3,player_params:this.data.playerParams};this.ytdPlayer.loadVideoWithPlayerVars(C);this.setupYtdPlayer()}else FD0(this.JSC$13302_playerManager,this.data.videoId,this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams),this.data.disableAutoPlayback&&(koS(this.JSC$13302_playerManager),
this.hostElement.classList.add("video-ended"),this.playbackFinished=!0),this.maybePlayVideo()};
_.u.getPlayerPromise=function(){return this.JSC$13302_playerManager.getPlayerPromise()};
_.u.onYtToggleButton=function(I){this.useYtdPlayer?this.toggleMute(I.detail.toggled):I.detail.toggled?this.JSC$13302_playerManager.mute():this.JSC$13302_playerManager.unMute()};
_.u.onYtNavigate=function(I){var C=Tnz(I.detail.endpoint),y=cxm(this.data.clickthroughReportingData);C&&y&&(I.detail.endpoint.watchEndpoint?I.detail.tempData=y:_.aC(C,y,30))};
_.u.maybeExpand=function(){this.isLocked||this.expanded||(this.expanded=!0)};
_.u.onExpandedChanged=function(){this.expanded?(_.uW(this.hostElement,"ytd-video-masthead-expandable-tile-expanding",[this]),this.maybePlayVideo()):this.stopVideo()};
_.u.onMouseOver=function(){this.maybeExpand()};
_.u.onTap=function(){this.maybeExpand()};
_.u.onExpandableTileExpanding=function(I){I!==this&&(this.stopVideo(),this.expanded=!1)};
_.u.onExpandableTileLockAndCollapse=function(I){I!==this&&(this.isLocked=!0,this.expanded=!1)};
_.u.onExpandableTileUnlock=function(){this.isLocked=!1};
_.u.lockAndCollapseExpandableTiles=function(){_.Fe(this.hostElement,"ytd-video-masthead-expandable-tile-lock-and-collapse",[this])};
_.u.unlockExpandableTiles=function(){_.Fe(this.hostElement,"ytd-video-masthead-expandable-tile-unlock")};
_.u.setupYtdPlayer=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.ytdPlayer.getPlayerPromise(),2);C=y.yieldResult;C.addEventListener("onStateChange",function(k){I.onPlayerStateChange(k)});
C.addEventListener("onCueRangeExit",function(k){I.onCueRangeExit(k)});
_.oI(y)})};
_.u.onPlayerStateChange=function(I){if(I===1&&(I=this.ytdPlayer.getPlayer())){var C=I.getCurrentTime(),y,k,F=C+((k=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?k:0)/1E3;I.addCueRange("playback",C,F);this.JSC$13302_mastheadCounter.increment("VIDEO_START",!0,!0)}};
_.u.onCueRangeExit=function(I){I==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.u.toggleMute=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.ytdPlayer.getPlayerPromise(),2);y=k.yieldResult;I?y.mute():y.unMute();_.oI(k)})};
yl.prototype.onTap=yl.prototype.onTap;yl.prototype.onMouseOver=yl.prototype.onMouseOver;yl.prototype.onExpandedChanged=yl.prototype.onExpandedChanged;yl.prototype.onYtNavigate=yl.prototype.onYtNavigate;yl.prototype.onYtToggleButton=yl.prototype.onYtToggleButton;yl.prototype.dataChanged=yl.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],yl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yl.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],yl.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],yl.prototype,"expanded",void 0);_.E([_.d(),_.h("design:type",Object)],yl.prototype,"buttonOverrides",void 0);
_.E([_.d(),_.h("design:type",Object)],yl.prototype,"useYtdPlayer",void 0);_.E([_.z$("#ytd-player"),_.h("design:type",Object)],yl.prototype,"ytdPlayer",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yl.prototype,"dataChanged",null);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yl.prototype,"onYtToggleButton",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yl.prototype,"onYtNavigate",null);_.E([_.rW("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yl.prototype,"onExpandedChanged",null);_.E([_.km("mouseover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yl.prototype,"onMouseOver",null);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yl.prototype,"onTap",null);yl=_.E([_.m({is:"ytd-video-masthead-ad-expandable-video-tile-renderer",disableElementRegistration:!0})],yl);
_.Z(yl,"ytd-video-masthead-ad-expandable-video-tile-renderer",function(){if(skw!==void 0)return skw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return skw=I},{mode:1});var oPd;var kO=function(){return _.q.apply(this,arguments)||this};
_.R(kO,_.q);kO.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
kO.prototype.onShow=function(){var I=_.f(this.hostElement).querySelector("#live-description"),C;I&&((C=this.data)==null?0:C.shortLiveDescription)&&I.clientWidth<I.scrollWidth&&this.hostElement.classList.add("short-live-description")};
kO.prototype.onYtToggleButton=function(I){var C,y=(C=this.data)==null?void 0:C.videoReminderEntityKey;y&&this.ytdReduxBehavior.dispatch(_.wJ("upcomingEventReminderStateEntity",y,{key:y,state:I.detail.toggled?"UPCOMING_EVENT_REMINDER_STATE_SINGLE":"UPCOMING_EVENT_REMINDER_STATE_NONE"}))};
kO.prototype.videoReminderStateChanged=function(){var I;this.videoReminderState&&_.l((I=this.data)==null?void 0:I.cta,_.SV)&&this.set("data.cta.toggleButtonRenderer.isToggled",this.videoReminderState.state==="UPCOMING_EVENT_REMINDER_STATE_SINGLE")};
kO.prototype.videoReminderStateChanged=kO.prototype.videoReminderStateChanged;kO.prototype.onYtToggleButton=kO.prototype.onYtToggleButton;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],kO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],kO.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kO.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.videoReminderEntityKey"],selector:fmK}),_.h("design:type",Object)],kO.prototype,"videoReminderState",void 0);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],kO.prototype,"onYtToggleButton",null);_.E([_.FI("videoReminderState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kO.prototype,"videoReminderStateChanged",null);
kO=_.E([_.m({is:"ytd-video-masthead-ad-primary-video-overlay-renderer",disableElementRegistration:!0})],kO);
_.Z(kO,"ytd-video-masthead-ad-primary-video-overlay-renderer",function(){if(oPd!==void 0)return oPd;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oPd=I},{mode:_.Ij("kevlar_poly_si_batch_j065")?1:2});var yV5;var Fm=function(){var I=_.q.apply(this,arguments)||this;I.useYtdPlayer=_.V("use_ytd_player_for_desktop_masthead");I.buttonOverrides={style:"overlay"};I.JSC$13310_playerManager=null;I.JSC$13310_mastheadCounter=new EF0;I.actionMap={"yt-masthead-hidden":"onYtMastheadHidden"};return I};
_.R(Fm,_.q);_.u=Fm.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$13310_mastheadCounter.increment("PLAYER_CONTAINER_CREATED",this.useYtdPlayer,!1);this.useYtdPlayer||(this.JSC$13310_playerManager=new TZ)};
_.u.ready=function(){var I=this;this.JSC$13310_mastheadCounter.increment("PLAYER_CONTAINER_READY",this.useYtdPlayer,!1);if(this.useYtdPlayer){var C;(C=this.embeddedPlayer)==null||C.remove()}else{var y;(y=this.ytdPlayer)==null||y.remove();yCq(this.JSC$13310_playerManager,this.embeddedPlayer,function(){I.onPlaybackEnded()});
this.replayButton.addEventListener("click",function(){I.data&&I.data.navigationEndpoint&&_.k3(I.hostElement,"yt-navigate",{endpoint:I.data.navigationEndpoint})})}};
_.u.onPlaybackEnded=function(){this.hostElement.classList.remove("video-playing");this.hostElement.classList.add("video-ended");this.JSC$13310_mastheadCounter.increment("VIDEO_END",this.useYtdPlayer,!1)};
_.u.dataChanged=function(){var I=this;if(this.data){if(typeof this.data.videoId==="string")if(this.useYtdPlayer){var C=!this.data.disableAutoPlayback,y,k={autoplay:C,adformat:"17_8",video_id:this.data.videoId,suggestedQuality:"hd720",startSeconds:((y=this.data.playbackStartMs)!=null?y:0)/1E3,player_params:this.data.playerParams};this.hostElement.classList.add(C?"video-playing":"video-ended");this.ytdPlayer.loadVideoWithPlayerVars(k);this.setupYtdPlayer()}else FD0(this.JSC$13310_playerManager,this.data.videoId,
this.data.playbackStartMs,this.data.playbackDurationMs,this.data.playerParams||void 0),this.data.disableAutoPlayback?(koS(this.JSC$13310_playerManager),this.hostElement.classList.add("video-ended")):(this.JSC$13310_playerManager.playVideo(),this.hostElement.classList.add("video-playing"),this.getPlayerPromise().then(function(){_.Fe(I.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");I.JSC$13310_mastheadCounter.increment("VIDEO_START",!1,!1)}));
this.data.isWidescreen&&this.playerContainer.classList.add("widescreen")}};
_.u.getPlayerPromise=function(){return this.JSC$13310_playerManager.getPlayerPromise()};
_.u.onYtToggleButton=function(I){this.useYtdPlayer?this.toggleMute(I.detail.toggled):I.detail.toggled?this.JSC$13310_playerManager.mute():this.JSC$13310_playerManager.unMute()};
_.u.onYtNavigate=function(I){var C=Tnz(I.detail.endpoint),y=cxm(this.data.clickthroughReportingData);C&&y&&(I.detail.endpoint.watchEndpoint?I.detail.tempData=y:_.aC(C,y,30))};
_.u.onYtMastheadHidden=function(){this.useYtdPlayer?this.ytdPlayer.stop():this.JSC$13310_playerManager.stopVideo()};
_.u.setupYtdPlayer=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.ytdPlayer.getPlayerPromise(),2);C=y.yieldResult;C.addEventListener("onStateChange",function(k){I.onPlayerStateChange(k)});
C.addEventListener("onCueRangeExit",function(k){I.onCueRangeExit(k)});
_.oI(y)})};
_.u.onPlayerStateChange=function(I){if(I===1&&(I=this.ytdPlayer.getPlayer())){var C=I.getCurrentTime(),y,k,F=C+((k=(y=this.data)==null?void 0:y.playbackDurationMs)!=null?k:0)/1E3;I.addCueRange("playback",C,F);_.Fe(this.hostElement,"ytd-video-masthead-ad-primary-video-renderer-playing");this.JSC$13310_mastheadCounter.increment("VIDEO_START",!0,!1)}};
_.u.onCueRangeExit=function(I){I==="playback"&&(this.ytdPlayer.stop(),this.onPlaybackEnded())};
_.u.toggleMute=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.ytdPlayer.getPlayerPromise(),2);y=k.yieldResult;I?y.mute():y.unMute();_.oI(k)})};
_.H1.Object.defineProperties(Fm.prototype,{titleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I,C;if(!((I=this.data)==null?0:(C=I.accessibilityData)==null?0:C.label))return"Ad primary link";var y,k;return _.PQ("AD_TITLE",{title:(y=this.data)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label})}}});
Fm.prototype.onYtMastheadHidden=Fm.prototype.onYtMastheadHidden;Fm.prototype.onYtNavigate=Fm.prototype.onYtNavigate;Fm.prototype.onYtToggleButton=Fm.prototype.onYtToggleButton;Fm.prototype.dataChanged=Fm.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Fm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fm.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Fm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fm.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Fm.prototype,"useYtdPlayer",void 0);_.E([_.z$("ytd-toggle-button-renderer"),_.h("design:type",Object)],Fm.prototype,"muteButton",void 0);_.E([_.d(),_.h("design:type",Object)],Fm.prototype,"buttonOverrides",void 0);
_.E([_.v("data.accessibilityData.label"),_.h("design:type",String),_.h("design:paramtypes",[])],Fm.prototype,"titleAriaLabel",null);_.E([_.z$("#replay-button"),_.h("design:type",Object)],Fm.prototype,"replayButton",void 0);_.E([_.z$("#player-container"),_.h("design:type",Object)],Fm.prototype,"playerContainer",void 0);_.E([_.z$("#player"),_.h("design:type",Object)],Fm.prototype,"embeddedPlayer",void 0);_.E([_.z$("#ytd-player"),_.h("design:type",Object)],Fm.prototype,"ytdPlayer",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fm.prototype,"dataChanged",null);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Fm.prototype,"onYtToggleButton",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Fm.prototype,"onYtNavigate",null);
_.E([_.km("yt-masthead-hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fm.prototype,"onYtMastheadHidden",null);Fm=_.E([_.m({is:"ytd-video-masthead-ad-primary-video-renderer",disableElementRegistration:!0})],Fm);
_.Z(Fm,"ytd-video-masthead-ad-primary-video-renderer",function(){if(yV5!==void 0)return yV5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yV5=I},{mode:2});var kjb;var u9=function(){var I=_.q.apply(this,arguments)||this;I.collapsed=!1;I.impressionResolver=_.vP();I.JSC$13314_activeViewMeasurementDataResolver=_.vP();I.actionMap={"yt-mute-ad-action":"handleMuteAd"};return I};
_.R(u9,_.q);_.u=u9.prototype;_.u.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"}}}};
_.u.ready=function(){var I=this;_.f(this.hostElement).querySelector("#show-ad").addEventListener("click",function(){I.expandAd()});
this.hostElement.addEventListener("yt-action",function(C){if(C.detail.actionName==="yt-service-request"){var y=C.detail.args[1];y.videoMastheadAdMuteCommand&&(I.collapseAd(y.videoMastheadAdMuteCommand.encryptedMastheadId),C.stopPropagation())}})};
_.u.attached=function(){var I=this;_.SA(function(){I.ironResizableBehavior.notifyResize()});
this.impressionResolver.promise.then(function(C){if(!I.collapsed){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,qy(y.baseUrl,y.attributionSrcMode);I.data.impressionCommand=void 0}});
this.JSC$13314_activeViewMeasurementDataResolver.promise.then(function(C){I.ytdActiveViewBehavior.enableActiveViewMeasurement(C,15)});
_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.dataChanged=function(){var I;((I=this.data.impressionCommand)==null?0:I.loggingUrls)&&this.impressionResolver.resolve(this.data.impressionCommand.loggingUrls);var C;((C=this.data)==null?0:C.activeView)&&this.JSC$13314_activeViewMeasurementDataResolver.resolve(this.data.activeView);(I=this.get("data.showAdRenderer.buttonRenderer.command.videoMastheadAdMuteCommand"))&&this.restoreCollapsedState(I.encryptedMastheadId);this.collapsed&&(this.data.primaryVideo&&(this.data.primaryVideo=void 0),this.data.expandableTiles&&
(this.data.expandableTiles=void 0))};
_.u.computeWidescreen=function(I){var C;return!!(I&&((C=_.l(I,vCP))==null?0:C.isWidescreen))};
_.u.computeExpandable=function(I){return!!(I&&I.length>0)};
_.u.onIronResize=function(){if(this.expandable){var I=_.f(this.hostElement).querySelector("#expandable-tile-container :first-child");I&&!I.expanded&&(I.expanded=!0)}};
_.u.handleMuteAd=function(){this.collapseAd(null)};
_.u.restoreCollapsedState=function(I){this.collapsed=_.pA().get("HIDDEN_MASTHEAD_ID")===I};
_.u.collapseAd=function(I){if(I){var C=_.pA();C.set("HIDDEN_MASTHEAD_ID",I);C.save()}(I=_.f(this.hostElement).querySelector("#video"))&&_.k3(I,"yt-masthead-hidden");this.collapsed=!0};
_.u.expandAd=function(){var I=_.pA();I.set("HIDDEN_MASTHEAD_ID",!1);I.save();location.reload()};
_.u.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
u9.prototype.onIronResize=u9.prototype.onIronResize;u9.prototype.dataChanged=u9.prototype.dataChanged;_.E([_.g(_.Ri),_.h("design:type",Object)],u9.prototype,"ironResizableBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],u9.prototype,"ytdActiveViewBehavior",void 0);_.E([_.g(_.bZ),_.h("design:type",Object)],u9.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],u9.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],u9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],u9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],u9.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeWidescreen(data.primaryVideo)"}),_.h("design:type",Boolean)],u9.prototype,"widescreen",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeExpandable(data.expandableTiles)"}),_.h("design:type",Boolean)],u9.prototype,"expandable",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],u9.prototype,"collapsed",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],u9.prototype,"dataChanged",null);
_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],u9.prototype,"onIronResize",null);u9=_.E([_.m({is:"ytd-video-masthead-ad-v3-renderer",disableElementRegistration:!0})],u9);
_.Z(u9,"ytd-video-masthead-ad-v3-renderer",function(){if(kjb!==void 0)return kjb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return kjb=I},{mode:2});var zo=function(){return _.q.apply(this,arguments)||this};
_.R(zo,_.q);_.u=zo.prototype;_.u.configureRendererStamper=function(){return{"data.renderingContent":{id:"rendering-content",mapping:{videoMastheadAdV3Renderer:"ytd-video-masthead-ad-v3-renderer"}}}};
_.u.ready=function(){var I=this;zHX(function(){I.isAttached&&ym(I.JSC$13319_storedAdSlotMetadata,I.JSC$13319_storedAdLayoutMetadata,I.adSlotMetadata,I.adLayoutMetadata)&&MG(Op(),I.JSC$13319_storedAdSlotMetadata,I.JSC$13319_storedAdLayoutMetadata)})};
_.u.attached=function(){ym(this.JSC$13319_storedAdSlotMetadata,this.JSC$13319_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&dZY(Op(),this.JSC$13319_storedAdSlotMetadata,this.JSC$13319_storedAdLayoutMetadata)};
_.u.detached=function(){ym(this.JSC$13319_storedAdSlotMetadata,this.JSC$13319_storedAdLayoutMetadata,this.adSlotMetadata,this.adLayoutMetadata)&&MG(Op(),this.JSC$13319_storedAdSlotMetadata,this.JSC$13319_storedAdLayoutMetadata)};
_.u.onAdMetadataChanged=function(){this.adLayoutMetadata&&this.adSlotMetadata&&this.JSC$13319_storedAdLayoutMetadata!==this.adLayoutMetadata&&this.JSC$13319_storedAdSlotMetadata!==this.adSlotMetadata&&(this.isAttached&&(this.JSC$13319_storedAdLayoutMetadata!==void 0&&this.JSC$13319_storedAdSlotMetadata!==void 0&&MG(Op(),this.JSC$13319_storedAdSlotMetadata,this.JSC$13319_storedAdLayoutMetadata),dZY(Op(),this.adSlotMetadata,this.adLayoutMetadata)),this.JSC$13319_storedAdLayoutMetadata=this.adLayoutMetadata,
this.JSC$13319_storedAdSlotMetadata=this.adSlotMetadata)};
_.H1.Object.defineProperties(zo.prototype,{adLayoutMetadata:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.adLayoutMetadata}}});
zo.prototype.onAdMetadataChanged=zo.prototype.onAdMetadataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],zo.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zo.prototype,"data",void 0);_.E([_.v("data.adLayoutMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],zo.prototype,"adLayoutMetadata",null);
_.E([_.d(),_.h("design:type",Object)],zo.prototype,"adSlotMetadata",void 0);_.E([_.FI("adLayoutMetadata","adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zo.prototype,"onAdMetadataChanged",null);zo=_.E([_.m({is:"ytd-page-top-ad-layout-renderer",disableElementRegistration:!0})],zo);
_.Z(zo,"ytd-page-top-ad-layout-renderer",function(){if(M5q!==void 0)return M5q;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return M5q=
I},{mode:_.Ij("kevlar_poly_si_batch_j070")?1:2});var FSu;var To=function(){var I=_.q.apply(this,arguments)||this;I.noBottomMargin=!1;I.overlayDensity=0;I.typographyBump=!1;return I};
_.R(To,_.q);_.u=To.prototype;
_.u.configureRendererStamper=function(){return{"data.fulfillmentContent.fulfilledLayout":{id:"fulfilled-layout",mapping:{inFeedAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",noBottomMargin:"[[noBottomMargin]]",typographyBump:"[[typographyBump]]"}},pageTopAdLayoutRenderer:{component:"ytd-page-top-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]"}},sequenceItemInPlayerAdLayoutRenderer:{component:"ytd-in-feed-ad-layout-renderer",properties:{adSlotMetadata:"[[data.adSlotMetadata]]",
noBottomMargin:"[[noBottomMargin]]",overlayDensity:"[[overlayDensity]]"}}}}}};
_.u.ready=function(){var I=this;zHX(function(){I.isAttached&&I.adSlotMetadata&&WWS(Op(),I.adSlotMetadata)})};
_.u.attached=function(){if(this.adSlotMetadata){var I;if(this.adSlotMetadata===((I=this.data)==null?void 0:I.adSlotMetadata))vJw(Op(),this.adSlotMetadata);else{var C;_.SN(Error("Lh`"+this.adSlotMetadata+"`"+((C=this.data)==null?void 0:C.adSlotMetadata)))}}};
_.u.detached=function(){this.adSlotMetadata&&WWS(Op(),this.adSlotMetadata)};
_.u.onTypographyBumpChanged=function(){this.inFeedAdLayoutRenderer&&(this.inFeedAdLayoutRenderer.typographyBump=this.typographyBump)};
_.u.onAdSlotMetadataChanged=function(){this.data&&this.data.adSlotMetadata&&(this.isAttached&&this.adSlotMetadata!==this.data.adSlotMetadata&&(this.adSlotMetadata!==void 0&&WWS(Op(),this.adSlotMetadata),vJw(Op(),this.data.adSlotMetadata)),this.adSlotMetadata=this.data.adSlotMetadata)};
_.H1.Object.defineProperties(To.prototype,{layout:{configurable:!0,enumerable:!0,get:function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.fulfillmentContent)==null?void 0:C.fulfilledLayout,_.dmq),k;return(I=(k=_.l(y==null?void 0:y.renderingContent,WA0))==null?void 0:k.layout)?I.toLowerCase().replace(/_/g,"-"):""}}});
To.prototype.onAdSlotMetadataChanged=To.prototype.onAdSlotMetadataChanged;To.prototype.onTypographyBumpChanged=To.prototype.onTypographyBumpChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],To.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],To.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],To.prototype,"rendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],To.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],To.prototype,"noBottomMargin",void 0);_.E([_.d(),_.h("design:type",Object)],To.prototype,"overlayDensity",void 0);_.E([_.d(),_.h("design:type",Object)],To.prototype,"typographyBump",void 0);_.E([_.z$("ytd-in-feed-ad-layout-renderer"),_.h("design:type",HTMLElement)],To.prototype,"inFeedAdLayoutRenderer",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],To.prototype,"layout",null);_.E([_.FI("typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],To.prototype,"onTypographyBumpChanged",null);_.E([_.FI("data.adSlotMetadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],To.prototype,"onAdSlotMetadataChanged",null);
To=_.E([_.m({is:"ytd-ad-slot-renderer",disableElementRegistration:!0})],To);
_.Z(To,"ytd-ad-slot-renderer",function(){if(FSu!==void 0)return FSu;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return FSu=I},{mode:_.Ij("kevlar_poly_si_batch_j077")?
1:2});var uz8;var co=function(){return _.q.apply(this,arguments)||this};
_.R(co,_.q);_.u=co.prototype;_.u.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"}}}};
_.u.onTap=function(){this.data&&this.data.navigationEndpoint&&this.data.adPlaybackContextParams&&sNs(this.data.navigationEndpoint,this.data.adPlaybackContextParams)};
_.u.dataChanged=function(){if(this.data&&this.data.impressionUrls)for(var I=_.T(this.data.impressionUrls),C=I.next();!C.done;C=I.next())C=C.value,ulm(C,TUI(C));this.data&&this.data.activeView&&this.ytdActiveViewBehavior.enableActiveViewMeasurement(this.data.activeView,17)};
_.u.attached=function(){var I=this;_.V("stop_av_measurement_on_detach")&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&I.ytdActiveViewBehavior.stopActiveViewMeasurement()})};
_.u.detached=function(){_.V("stop_av_measurement_on_detach")&&this.ytdActiveViewBehavior.stopActiveViewMeasurement()};
_.H1.Object.defineProperties(co.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
co.prototype.dataChanged=co.prototype.dataChanged;co.prototype.onTap=co.prototype.onTap;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],co.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],co.prototype,"ytRendererBehavior",void 0);_.E([_.g(VJ),_.h("design:type",Object)],co.prototype,"ytdActiveViewBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],co.prototype,"ytdReduxBehavior",void 0);
_.E([_.d({selector:_.KM}),_.h("design:type",Object)],co.prototype,"isGridViewEnabled",void 0);_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],co.prototype,"watchFeedBigThumbs",null);_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],co.prototype,"thumbnailWidth",null);_.E([_.d(),_.h("design:type",Object)],co.prototype,"data",void 0);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],co.prototype,"onTap",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],co.prototype,"dataChanged",null);co=_.E([_.m({is:"ytd-compact-promoted-video-renderer",disableElementRegistration:!0})],co);
_.Z(co,"ytd-compact-promoted-video-renderer",function(){if(uz8!==void 0)return uz8;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-compact-promoted-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-thumbnail data="[[data]]" width="[[thumbnailWidth]]" class="style-scope ytd-compact-promoted-video-renderer">\n</ytd-thumbnail>\n<div class="details style-scope ytd-compact-promoted-video-renderer">\n  <a id="endpoint-link" class="yt-simple-endpoint style-scope ytd-compact-promoted-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n    <h3 class="style-scope ytd-compact-promoted-video-renderer">\n      <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-compact-promoted-video-renderer">\n      </ytd-badge-supported-renderer>\n      <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-compact-promoted-video-renderer">\n        [[getSimpleString(data.title)]]\n      </span>\n    </h3>\n    <div class="secondary-metadata style-scope ytd-compact-promoted-video-renderer">\n      <ytd-video-meta-block class="compact style-scope ytd-compact-promoted-video-renderer" data="[[data]]" watch-feed-big-thumbs="[[watchFeedBigThumbs]]">\n      </ytd-video-meta-block>\n      <div id="ad-badge-container" class="style-scope ytd-compact-promoted-video-renderer">\n        <div id="ad-badge" class="style-scope ytd-compact-promoted-video-renderer"></div>\n      </div>\n    </div>\n  </a>\n  <div id="menu" class="style-scope ytd-compact-promoted-video-renderer"></div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uz8=I},{mode:1});var zac;_.jz("itemSectionRenderer","searchPyvRenderer","ytd-search-pyv-renderer");var eW=function(){return _.q.apply(this,arguments)||this};
_.R(eW,_.q);eW.prototype.configureRendererStamper=function(){return{"data.ads":{id:"contents",mapping:{adSlotRenderer:"ytd-ad-slot-renderer",promotedVideoRenderer:"ytd-promoted-video-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eW.prototype,"data",void 0);eW=_.E([_.m({is:"ytd-search-pyv-renderer",disableElementRegistration:!0})],eW);
_.Z(eW,"ytd-search-pyv-renderer",function(){if(zac!==void 0)return zac;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zac=I},{mode:1});var T6Y;_.jz("itemSectionRenderer","backstagePostThreadRenderer","ytd-backstage-post-thread-renderer");var r2=function(){var I=_.q.apply(this,arguments)||this;I.roundedContainer=!0;I.JSC$13335_handleOpenPostCommentDialogActionAfterStamp=!1;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.R(r2,_.q);_.u=r2.prototype;
_.u.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}}};
_.u.onStampFinished=function(){this.JSC$13335_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){var I=_.f(this.hostElement).querySelector("ytd-comment-reply-dialog-renderer");I?I.openDialog():this.JSC$13335_handleOpenPostCommentDialogActionAfterStamp=!0};
_.u.onYtCommentModerationPanelEmpty=function(){this.set("data.moderationPanel",{})};
_.u.computeHideBorder=function(){return this.isInEngagementPanel};
_.u.computeIsCompact=function(){return this.isInEngagementPanel};
_.u.computeUsesCompactLockup=function(I){return I==="BACKSTAGE_SURFACE_TYPE_HOME"||I==="BACKSTAGE_SURFACE_TYPE_SEARCH"||I==="BACKSTAGE_SURFACE_TYPE_NEWS_DESTINATION"||I==="BACKSTAGE_SURFACE_TYPE_CHANNEL_HOME"||I==="BACKSTAGE_SURFACE_TYPE_STRUCTURED_DESCRIPTION"||I==="BACKSTAGE_SURFACE_TYPE_REPOST_PREVIEW"};
_.u.computeUsesFullLockup=function(){var I,C=(I=this.data)==null?void 0:I.post,y;I=(y=_.l(C,tkY))==null?void 0:y.surface;var k;y=(k=_.l(C,OFw))==null?void 0:k.originalPost;var F;if(k=I||((F=_.l(y,tkY))==null?void 0:F.surface))return!this.computeUsesCompactLockup(k)&&this.useUpdatedRepostUi;var z;return((z=_.l(C,OFw))==null?void 0:z.originalPostDeletedMessage)!==void 0&&this.useUpdatedRepostUi};
_.H1.Object.defineProperties(r2.prototype,{isInEngagementPanel:{configurable:!0,enumerable:!0,get:function(){var I,C;return((C=_.l((I=this.data)==null?void 0:I.post,tkY))==null?void 0:C.surface)==="BACKSTAGE_SURFACE_TYPE_ENGAGEMENT_PANEL"}},
useUpdatedRepostUi:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.useUpdatedRepostUi}}});
r2.prototype.onYtCommentModerationPanelEmpty=r2.prototype.onYtCommentModerationPanelEmpty;r2.prototype.onStampFinished=r2.prototype.onStampFinished;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],r2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],r2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],r2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],r2.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],r2.prototype,"roundedContainer",void 0);_.E([_.d({computed:"computeHideBorder(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],r2.prototype,"hideBorder",void 0);_.E([_.d({computed:"computeIsCompact(data, isInEngagementPanel)",reflectToAttribute:!0}),_.h("design:type",Boolean)],r2.prototype,"isCompact",void 0);
_.E([_.d({computed:"computeUsesFullLockup(data, useUpdatedRepostUi)",reflectToAttribute:!0}),_.h("design:type",Boolean)],r2.prototype,"usesFullLockup",void 0);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r2.prototype,"onStampFinished",null);
_.E([_.km("ytd-comment-moderation-panel-empty"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],r2.prototype,"onYtCommentModerationPanelEmpty",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],r2.prototype,"isInEngagementPanel",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],r2.prototype,"useUpdatedRepostUi",null);
r2=_.E([_.m({is:"ytd-backstage-post-thread-renderer",disableElementRegistration:!0})],r2);
_.Z(r2,"ytd-backstage-post-thread-renderer",function(){if(T6Y!==void 0)return T6Y;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return T6Y=I},{mode:1});var cVS;var i9=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(i9,_.q);i9.prototype.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
i9.prototype.computeBannerImageUrl=function(){if(this.data!==void 0){var I=this.data.thumbnail.thumbnails;this.isDarkTheme&&(I=this.data.thumbnailDark.thumbnails);this.bannerImageUrl=(I=_.E5(I,24,void 0,"height"))?I:void 0}};
i9.prototype.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
i9.prototype.computeHasText=function(){var I;return!((I=this.data)==null||!I.text)};
_.H1.Object.defineProperties(i9.prototype,{bannerStyle:{configurable:!0,enumerable:!0,get:function(){if(this.bannerImageUrl)return'background-image:url("'+String(_.ra(this.bannerImageUrl))+'");'}}});
i9.prototype.computeHasText=i9.prototype.computeHasText;i9.prototype.computeBannerImageUrl=i9.prototype.computeBannerImageUrl;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],i9.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],i9.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],i9.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],i9.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],i9.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",String)],i9.prototype,"bannerImageUrl",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasText(data.text)"}),_.h("design:type",Boolean)],i9.prototype,"hasText",void 0);_.E([_.FI("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],i9.prototype,"computeBannerImageUrl",null);
_.E([_.FI("data.text"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],i9.prototype,"computeHasText",null);_.E([_.v("bannerImageUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],i9.prototype,"bannerStyle",null);i9=_.E([_.m({is:"ytd-backstage-prefilled-post-dialog-header-renderer",disableElementRegistration:!0})],i9);
_.Z(i9,"ytd-backstage-prefilled-post-dialog-header-renderer",function(){if(cVS!==void 0)return cVS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return cVS=I},{mode:1});var eae;var w2=function(){return _.q.apply(this,arguments)||this};
_.R(w2,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],w2.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],w2.prototype,"data",void 0);w2=_.E([_.m({is:"ytd-backstage-zero-state-renderer",disableElementRegistration:!0})],w2);
_.Z(w2,"ytd-backstage-zero-state-renderer",function(){if(eae!==void 0)return eae;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eae=I},{mode:1});var rVw;var nc=function(){return _.q.apply(this,arguments)||this};
_.R(nc,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nc.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nc.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],nc.prototype,"icon",void 0);nc=_.E([_.m({is:"ytd-post-filter-zero-state-renderer",disableElementRegistration:!0})],nc);
_.Z(nc,"ytd-post-filter-zero-state-renderer",function(){if(rVw!==void 0)return rVw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return rVw=I},{mode:1});var iGd;var wB8={"data.actionButton":{id:"schedule-button",mapping:{buttonRenderer:"ytd-button-renderer"}}},Po=function(){return _.q.apply(this,arguments)||this};
_.R(Po,_.q);Po.prototype.configureRendererStamper=function(){return wB8};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Po.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Po.prototype,"rendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Po.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],Po.prototype,"icon",void 0);Po=_.E([_.m({is:"ytd-post-scheduling-zero-state-renderer",disableElementRegistration:!0})],Po);
_.Z(Po,"ytd-post-scheduling-zero-state-renderer",function(){if(iGd!==void 0)return iGd;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return iGd=I},{mode:1});var nPe;var Lc=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-posts-total-count-action":"handleUpdatePostsTotalCountAction"};return I};
_.R(Lc,_.q);Lc.prototype.onTabsActivate=function(I){this.data&&this.data.tabs&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.tabs[I.detail.selected].navigationEndpoint})};
Lc.prototype.shouldShowTotalCount=function(I){return I&&I.totalCount!==void 0};
Lc.prototype.handleUpdatePostsTotalCountAction=function(I){var C=this.get(["data.tabs",1,"totalCount"]),y=this.get("updatePostsTotalCountAction.updateType",I);I=this.get("updatePostsTotalCountAction.number",I);C!==void 0&&y!=="UPDATE_POSTS_TOTAL_COUNT_TYPE_UNKNOWN"&&I&&(y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_ADD"?this.set(["data.tabs",1,"totalCount"],Number(C)+I):y==="UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE"&&this.set(["data.tabs",1,"totalCount"],Number(C)-I))};
_.H1.Object.defineProperties(Lc.prototype,{selected:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.tabs)for(var I=0,C=this.data.tabs.length;I<C;I++)if(this.data.tabs[I].selected)return I;return 0}}});
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Lc.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Lc.prototype,"rendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Lc.prototype,"data",void 0);_.E([_.v("data.tabs"),_.h("design:type",Number),_.h("design:paramtypes",[])],Lc.prototype,"selected",null);Lc=_.E([_.m({is:"ytd-post-stream-filter-renderer",disableElementRegistration:!0})],Lc);
_.Z(Lc,"ytd-post-stream-filter-renderer",function(){if(nPe!==void 0)return nPe;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return nPe=I},{mode:1});var Pw8;var D1=function(){return _.q.apply(this,arguments)||this};
_.R(D1,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],D1.prototype,"kevlarBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],D1.prototype,"data",void 0);D1=_.E([_.m({is:"ytd-channel-age-gate-renderer",disableElementRegistration:!0})],D1);
_.Z(D1,"ytd-channel-age-gate-renderer",function(){if(Pw8!==void 0)return Pw8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Pw8=I},{mode:1});var LSY;_.jz("sharingItemSection","channelOwnerEmptyStateRenderer","ytd-channel-owner-empty-state-renderer");var pc=function(){var I=_.q.apply(this,arguments)||this;I.data=null;return I};
_.R(pc,_.q);pc.prototype.configureRendererStamper=function(){return{"data.uploadVideoButton":{id:"upload-video-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H1.Object.defineProperties(pc.prototype,{imageSizePx:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?0:(C=I.title)==null?0:(y=C.runs)==null?0:y.length)?147:160}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pc.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],pc.prototype,"imageSizePx",null);pc=_.E([_.m({is:"ytd-channel-owner-empty-state-renderer",disableElementRegistration:!0})],pc);
_.Z(pc,"ytd-channel-owner-empty-state-renderer",function(){if(LSY!==void 0)return LSY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return LSY=I},{mode:1});var Dvc;var pB8;var Ql=function(){var I=_.q.apply(this,arguments)||this;I.boundSubmitSearch=function(){I.submitSearch()};
I.boundClearSearch=function(){I.clearSearch()};
return I};
_.R(Ql,_.q);_.u=Ql.prototype;_.u.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]]"}}}}}};
_.u.toggleClearButton=function(){this.hideClearButton=Utm||!this.input.value};
_.u.submitOnEnterKeyUp=function(I){I.keyCode!==13||this.input.invalid||this.submit(this.input.value)};
_.u.clearSearch=function(){this.input.value="";this.submit(this.input.value)};
_.u.submitSearch=function(){this.input.invalid||this.submit(this.input.value)};
_.u.submit=function(){_.k3(this.hostElement,"search-query-changed",this.input.value)};
Ql.prototype.toggleClearButton=Ql.prototype.toggleClearButton;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ql.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ql.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ql.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ql.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ql.prototype,"hideClearButton",void 0);_.E([_.d(),_.h("design:type",Object)],Ql.prototype,"boundSubmitSearch",void 0);_.E([_.d(),_.h("design:type",Object)],Ql.prototype,"boundClearSearch",void 0);_.E([_.z$("#input"),_.h("design:type",Object)],Ql.prototype,"input",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ql.prototype,"toggleClearButton",null);
Ql=_.E([_.m({is:"ytd-channel-switcher-search-box-renderer",disableElementRegistration:!0})],Ql);
_.Z(Ql,"ytd-channel-switcher-search-box-renderer",function(){if(pB8!==void 0)return pB8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return pB8=I},{mode:1});var Qk0;var No=function(){var I=_.q.apply(this,arguments)||this;I.boundSubmit=function(){I.submit()};
return I};
_.R(No,_.q);_.u=No.prototype;_.u.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"}}}}};
_.u.ready=function(){var I=this;this.form.addEventListener("submit",function(C){return I.onSubmit(C)})};
_.u.onSubmit=function(I){I.preventDefault();return!1};
_.u.toggleClearButton=function(){this.hideClearButton=Utm||!this.input.value};
_.u.submitOnEnterKeyUp=function(I){I.keyCode===13&&this.submit()};
_.u.submit=function(){var I=this.data.endpoint,C=(0,_.Le.unsafeClone)(I);_.l(C,_.rU)?_.l(C,_.rU).query=this.input.value:_.l(C,_.ig)&&(_.l(C,_.ig).query=this.input.value);var y=_.l(C.commandMetadata,_.It);(y==null?0:y.url)?(y.url=_.gT(y.url,"query",this.input.value),_.k3(this.hostElement,"yt-navigate",{endpoint:C})):_.l(C,G6u)?(_.l(C,G6u).channelSwitcherQuery=this.input.value,_.N().resolve(_.ID).resolveCommand(C,{form:{element:this.hostElement}})):(I=Error("Mh`"+JSON.stringify(I)),_.GB(I))};
_.u.getUrl=function(I){return this.get("commandMetadata.webCommandMetadata.url",I)};
No.prototype.toggleClearButton=No.prototype.toggleClearButton;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],No.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],No.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],No.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],No.prototype,"hideClearButton",void 0);
_.E([_.d(),_.h("design:type",Object)],No.prototype,"boundSubmit",void 0);_.E([_.z$("#form"),_.h("design:type",HTMLFormElement)],No.prototype,"form",void 0);_.E([_.z$("#input"),_.h("design:type",Object)],No.prototype,"input",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],No.prototype,"toggleClearButton",null);No=_.E([_.m({disableElementRegistration:!0,is:"ytd-search-box-renderer"})],No);
_.Z(No,"ytd-search-box-renderer",function(){if(Qk0!==void 0)return Qk0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Qk0=I},{mode:2});var Vl=function(){var I=_.q.apply(this,arguments)||this;I.showSearchBox=!0;return I};
_.R(Vl,_.q);Vl.prototype.configureRendererStamper=function(){return{"data.searchBox":{id:"search-box",mapping:{searchBoxRenderer:"ytd-search-box-renderer",channelSwitcherSearchBoxRenderer:"ytd-channel-switcher-search-box-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Vl.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Vl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Vl.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Vl.prototype,"showSearchBox",void 0);Vl=_.E([_.m({is:"ytd-channel-switcher-header-renderer",disableElementRegistration:!0})],Vl);
_.Z(Vl,"ytd-channel-switcher-header-renderer",function(){if(Dvc!==void 0)return Dvc;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Dvc=I},{mode:1});var N6w;var V6S;var jW=function(){var I=_.q.apply(this,arguments)||this;I.isDisplayed=!0;return I};
_.R(jW,_.q);_.u=jW.prototype;_.u.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.dataChanged=function(){this.isDisplayed=!0};
_.u.computeType=function(I){return I||"UNKNOWN"};
_.u.onYtServiceRequestCompleted=function(I){I.stopPropagation();this.isDisplayed=!1};
_.u.onClose=function(){this.isDisplayed=!1};
jW.prototype.onYtServiceRequestCompleted=jW.prototype.onYtServiceRequestCompleted;jW.prototype.dataChanged=jW.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jW.prototype,"data",void 0);
_.E([_.d({computed:"computeType(data.type)",reflectToAttribute:!0}),_.h("design:type",String)],jW.prototype,"type",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jW.prototype,"isDisplayed",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jW.prototype,"dataChanged",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],jW.prototype,"onYtServiceRequestCompleted",null);jW=_.E([_.m({disableElementRegistration:!0,is:"ytd-alert-with-button-renderer"})],jW);
_.Z(jW,"ytd-alert-with-button-renderer",function(){if(V6S!==void 0)return V6S;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return V6S=I},{mode:1});var l9=function(){var I=_.q.apply(this,arguments)||this;I.noResult=!1;I.enableAlertBanner=!1;I.dismissedAlertBanner=!1;I.hideCreateChannelButton=!1;I.boundDismissAlertBanner=function(){I.dismissAlertBanner()};
I.actionMap={"yt-update-channel-switcher-page-action":"updateChannelSwitcherAction"};return I};
_.R(l9,_.q);_.u=l9.prototype;_.u.computeButtonOverride=function(){return{style:"mono",type:"tonal"}};
_.u.onDataChanged=function(){this.setShowSearchBox(this.data)};
_.u.updateChannelSwitcherAction=function(I){var C;I=(C=_.l(I,e$8))==null?void 0:C.page;_.l(I,cZP)!==void 0&&(this.data=_.l(I,cZP))};
_.u.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]]"}}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.u.searchQueryChanged=function(I,C){if(this.data&&this.data.contents&&this.data.contents.length){I=[];var y=[];this.hideCreateChannelButton=this.noResult=!1;for(var k=document.querySelectorAll("ytd-account-item-renderer"),F=_.T(k),z=F.next();!z.done;z=F.next())z=z.value,y.push(z),z.style.display="block";this.resetRightBorder(y);if(C){this.hideCreateChannelButton=!0;for(y=1;y<this.data.contents.length;y++)if(z=this.data.contents[y],_.l(z,RB0)){var c=void 0,r=void 0;F=(c=_.l(z,RB0))==null?void 0:(r=
c.accountName)==null?void 0:r.simpleText;r=c=void 0;z=(c=_.l(z,RB0))==null?void 0:(r=c.channelHandle)==null?void 0:r.simpleText;(c=k[y-1])&&F&&_.iK(F,C)?I.push(c):_.V("enable_handle_search_on_channel_switcher")&&c&&z&&_.iK(z.toString(),C.toString())?I.push(c):c.style.display="none"}I.length===0&&(this.noResult=!0);this.resetRightBorder(I)}}};
_.u.resetRightBorder=function(I){for(var C=0;C<I.length;C++)I[C].style.borderRight=!this.hideCreateChannelButton&&(C+2)%3===0||this.hideCreateChannelButton&&(C+1)%3===0?"none":"1px solid var(--yt-spec-10-percent-layer)"};
_.u.onContinuationItemsUpdated=function(){this.setShowSearchBox(this.data)};
_.u.setShowSearchBox=function(I){if(I&&I.contents&&this.channelSwitcherHeaderRenderer){this.enableAlertBanner=!1;this.channelSwitcherHeaderRenderer.showSearchBox=!0;for(var C=0;C<I.contents.length;C++)_.l(I.contents[C],_.kH)&&(this.enableAlertBanner=!0,this.channelSwitcherHeaderRenderer.showSearchBox=!1);this.dismissedAlertBanner&&(this.enableAlertBanner=!1)}};
_.u.dismissAlertBanner=function(){this.dismissedAlertBanner=!0;this.enableAlertBanner=!1};
_.H1.Object.defineProperties(l9.prototype,{isLoading:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.contents)}}});
l9.prototype.onContinuationItemsUpdated=l9.prototype.onContinuationItemsUpdated;l9.prototype.searchQueryChanged=l9.prototype.searchQueryChanged;l9.prototype.onDataChanged=l9.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],l9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],l9.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],l9.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],l9.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],l9.prototype,"data",void 0);_.E([_.z$("ytd-channel-switcher-header-renderer"),_.h("design:type",Object)],l9.prototype,"channelSwitcherHeaderRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],l9.prototype,"noResult",void 0);
_.E([_.d(),_.h("design:type",Object)],l9.prototype,"enableAlertBanner",void 0);_.E([_.d(),_.h("design:type",Object)],l9.prototype,"dismissedAlertBanner",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],l9.prototype,"hideCreateChannelButton",void 0);_.E([_.v("data.contents"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],l9.prototype,"isLoading",null);_.E([_.d(),_.h("design:type",Object)],l9.prototype,"boundDismissAlertBanner",void 0);
_.E([_.d({computed:"computeButtonOverride()"}),_.h("design:type",Object)],l9.prototype,"buttonOverride",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],l9.prototype,"onDataChanged",null);_.E([_.km("search-query-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],l9.prototype,"searchQueryChanged",null);
_.E([_.km("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],l9.prototype,"onContinuationItemsUpdated",null);l9=_.E([_.m({is:"ytd-channel-switcher-page-renderer",disableElementRegistration:!0})],l9);
_.Z(l9,"ytd-channel-switcher-page-renderer",function(){if(N6w!==void 0)return N6w;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return N6w=I},{mode:1});var jkq;var lq5;var Xm=function(){var I=_.q.apply(this,arguments)||this;I.images=[];I.selectedImageIndex=0;return I};
_.R(Xm,_.q);_.u=Xm.prototype;
_.u.ready=function(){_.Lv(this.thumbnailImagesContainer,"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this);_.Lv(this.JSC$13380_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-update",this.updateImageThumbnails,!1,this);_.Lv(this.JSC$13380_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.saveImageRepositions,!1,this);_.Lv(this.JSC$13380_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-cancel",this.cancelImageRepositions,
!1,this)};
_.u.onThumbnailClick=function(I){if(I=I.event_.detail)this.selectedImageIndex=this.images.indexOf(I)};
_.u.updateImageThumbnails=function(I){I=Object.assign({},this.images[this.selectedImageIndex],{previewCoordinates:I.event_.detail});this.images.splice(this.selectedImageIndex,1,I);this.images=[].concat(_.Py(this.images))};
_.u.cancelImageRepositions=function(){this.selectedImageIndex=0;_.k3(this.hostElement,"ytd-backstage-image-reposition-cancel")};
_.u.saveImageRepositions=function(){this.selectedImageIndex=0;_.k3(this.hostElement,"ytd-backstage-image-reposition-save",this.images)};
_.H1.Object.defineProperties(Xm.prototype,{thumbnailRendererDatas:{configurable:!0,enumerable:!0,get:function(){var I=this;return(this.images||[]).map(function(C,y){return{image:C,selected:y===I.selectedImageIndex}})}},
selectedImageData:{configurable:!0,enumerable:!0,get:function(){return this.images[this.selectedImageIndex]}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Xm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("ytd-backstage-image-preview-renderer"),_.h("design:type",Object)],Xm.prototype,"JSC$13380_imagePreviewContainer",void 0);_.E([_.z$(".thumbnail-images-container"),_.h("design:type",HTMLElement)],Xm.prototype,"thumbnailImagesContainer",void 0);_.E([_.d(),_.h("design:type",Array)],Xm.prototype,"images",void 0);
_.E([_.d(),_.h("design:type",Object)],Xm.prototype,"repositionInstructions",void 0);_.E([_.d(),_.h("design:type",Object)],Xm.prototype,"selectedImageIndex",void 0);_.E([_.v("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],Xm.prototype,"thumbnailRendererDatas",null);_.E([_.v("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Xm.prototype,"selectedImageData",null);
Xm=_.E([_.m({is:"ytd-backstage-multi-image-reposition-renderer",disableElementRegistration:!0})],Xm);
_.Z(Xm,"ytd-backstage-multi-image-reposition-renderer",function(){if(lq5!==void 0)return lq5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lq5=I},{mode:1});var $O=function(I,C){_.LW.call(this);this.uploadUrl=I;this.channelId=C;this.imagesUploadData=[]};
_.R($O,_.LW);$O.prototype.getAllUploadStatuses=function(){var I=this,C,y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,XBw(I),2);C=F.yieldResult;y=C.get("succeed");k=C.get("failed");return F.return(y.concat(k))})};
var RaP=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,XBw(I),2);C=k.yieldResult;y=C.get("failed");y.length>0&&$vY(I,y);return k.return(I.getAllUploadStatuses())})},XBw=function(I){var C,y,k,F,z,c,r;
return _.e(function(w){if(w.nextAddress==1)return C=new Map,_.n(w,Promise.allSettled(I.imagesUploadData.map(function(L){return L.uploadPromise})),2);
y=w.yieldResult;k=[];F=_.T(y);for(z=F.next();!z.done;z=F.next())c=z.value,c.status==="fulfilled"&&k.push(c.value);r=I.imagesUploadData.map(function(L){return L.image}).filter(function(L){return k.every(function(D){return D.id!==L.id})});
C.set("succeed",k);C.set("failed",r);return w.return(C)})},$vY=function(I,C){C=_.T(C);
for(var y=C.next();!y.done;y=C.next()){var k=I;y=y.value;bGw(k,y.id)>=0&&k.cancel(y.id);var F=new YcY(y),z=_.nCw(k.uploadUrl,{"X-YouTube-ChannelId":k.channelId},y.imageBlob);F.transfer=z;F.uploadPromise=GjY(z,y);k.imagesUploadData.push(F);z.run()}};
$O.prototype.cancel=function(I){var C=bGw(this,I);C!==-1&&((C=this.imagesUploadData[C].transfer)&&C.cancel(),this.imagesUploadData=this.imagesUploadData.filter(function(y){return y.image.id!==I}))};
var bGw=function(I,C){return I.imagesUploadData.findIndex(function(y){return y.image.id===C})},GjY=function(I,C){return new Promise(function(y,k){I.listen("l",function(){var F=I.getResponseText();
F?(F=JSON.parse(F).encryptedBlobId,C.encryptedBlobId=F,y(C)):k("upload failed")});
I.listen("n",function(){k("upload failed")})})},YcY=function(I){this.image=I};var dZt=function(I,C,y,k,F){this.id=I;this.imageBlob=C;this.localImageSrc=y;this.naturalWidth=k;this.naturalHeight=F;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 fqw=[".jpeg",".jpg",".png"],RO=function(){var I=_.q.apply(this,arguments)||this;I.showImagesPreview=!1;I.pollOptions=[];I.errorMessage="";I.optionPlaceholderText="";I.optionDefaultText="";I.JSC$13391_imageId=0;I.maxFileSizeMb=0;I.maxAspectRatio=0;I.invalidFileSizeError="";I.invalidAspectRatioError="";I.invalidFileTypeError="";I.imageSelector=new c3(null,"single_file",fqw);return I};
_.R(RO,_.q);_.u=RO.prototype;_.u.ready=function(){_.Lv(this.imageSelector,"j",this.onImageSelect,!1,this);_.Lv(this.imageRepositionContainer,"ytd-backstage-image-reposition-save",this.saveImageRepositions,!1,this);_.Lv(this.imageRepositionContainer,"ytd-backstage-image-reposition-cancel",this.cancelImageRepositions,!1,this)};
_.u.dataChanged=function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.cellTemplate)==null?void 0:C.onEmptyCellTap,zXq);if(y&&y.uploadUrl&&y.channelId){var k;this.maxFileSizeMb=((k=y.imageValidationInfo)==null?void 0:k.maxFileSizeMb)||0;var F;this.maxAspectRatio=((F=y.imageValidationInfo)==null?void 0:F.allowedMaxAspectRatio)||0;var z;this.invalidFileSizeError=this.getSimpleString((z=this.data)==null?void 0:z.invalidFileSizeError);var c;this.invalidAspectRatioError=this.getSimpleString((c=this.data)==
null?void 0:c.invalidAspectRatioError);var r;this.invalidFileTypeError=this.getSimpleString((r=this.data)==null?void 0:r.invalidFileTypeError);this.uploadManager=new $O(y.uploadUrl,y.channelId)}};
_.u.onEditorInfoChange=function(){this.optionPlaceholderText=_.hS(this.editorInfo.optionPlaceholderText);this.optionDefaultText=_.hS(this.editorInfo.optionDefaultText);this.pollOptions=this.createPollOptions(this.editorInfo)};
_.u.observeAddImageError=function(){this.errorMessage!==""&&_.k3(this.hostElement,"yt-backstage-add-image-error",this.errorMessage)};
_.u.onPollOptionsChange=function(){for(var I=!1,C=[],y=0;y<this.pollOptions.length;y++){var k=this.hasCustomOptionText?this.optionPlaceholderText:this.optionDefaultText+" "+(y+1);this.pollOptions[y].placeholderText!==k?(I=!0,C.push(Object.assign({},this.pollOptions[y],{placeholderText:k}))):C.push(this.pollOptions[y])}I&&(this.pollOptions=C);this.isValid()?_.k3(this.hostElement,"yt-commentbox-post-enable"):_.k3(this.hostElement,"yt-commentbox-post-disable")};
_.u.createPollOptions=function(I){var C=[],y;I=(y=I==null?void 0:I.minPollOptions)!=null?y:0;for(y=0;y<I;y++)C.push(this.createPollOption());return C};
_.u.onImageSelect=function(I){var C=this,y,k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1){if(C.selectedImageIndex===void 0)return w.jumpTo(0);y=I.files[0];C.errorMessage="";k=C.validateImage(y);if(k!=="")return C.errorMessage=k,w.return();F=new qD(C.maxAspectRatio,!1,!0);return _.n(w,F.transform(y),3)}if(w.nextAddress!=4)return z=w.yieldResult,z.transformedData?z.invalidAspectRatio?(C.errorMessage=C.invalidAspectRatioError,w.return()):_.n(w,xZW(C.JSC$13391_imageId,I.files[0],z.transformedData),
4):(C.errorMessage=C.invalidFileTypeError,w.return());c=w.yieldResult;C.JSC$13391_imageId++;$vY(C.uploadManager,[c]);r=Object.assign({},C.pollOptions[C.selectedImageIndex],{image:c});C.pollOptions.splice(C.selectedImageIndex,1,r);C.refreshPollOptions();_.k3(C.hostElement,"yt-backstage-poll-image-select");_.oI(w)})};
_.u.validateImage=function(I){return I.size>1048576*this.maxFileSizeMb?this.invalidFileSizeError:""};
_.u.refreshPollOptions=function(){this.pollOptions=[].concat(_.Py(this.pollOptions))};
_.u.onAddPollOption=function(){this.isAllowedToAddOption&&(this.pollOptions=[].concat(_.Py(this.pollOptions),[this.createPollOption()]))};
_.u.onRemovePollOption=function(I){var C=this.pollOptions[I.model.index];C&&C.image&&this.uploadManager.cancel(C.image.id);this.pollOptions.splice(I.model.index,1);this.refreshPollOptions();this.pollOptions.length===0&&_.k3(this.hostElement,"yt-image-poll-attachment-dismiss")};
_.u.onTextInput=function(){this.refreshPollOptions()};
_.u.onImageButtonClick=function(I){this.selectedImageIndex=I.model.index;this.imageSelector.click()};
_.u.onRepositionImages=function(){this.hasImages&&(this.showImagesPreview=!0,this.refreshPollOptions())};
_.u.cancelImageRepositions=function(){this.showImagesPreview=!1;this.refreshPollOptions()};
_.u.saveImageRepositions=function(I){I=I.event_.detail;for(var C=0,y=[],k=_.T(this.pollOptions),F=k.next();!F.done;F=k.next())F=F.value,F.image!==void 0?(F=Object.assign({},F,{image:I[C]}),y.push(F),C++):y.push(F);this.showImagesPreview=!1;this.pollOptions=[].concat(_.Py(y))};
_.u.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 I=0,C=_.T(this.pollOptions),y=C.next();!y.done;y=C.next())if(y=y.value,y.optionText.trim()!==""||y.image!==void 0){if(!y.image||this.hasCustomOptionText&&y.optionText.trim().length<Number(this.editorInfo.minPollOptionChars))return!1;I++}return I>=Number(this.editorInfo.minPollOptions)};
_.u.getAllUploadStatuses=function(){var I=this,C,y,k,F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.uploadManager.getAllUploadStatuses(),2);C=z.yieldResult;y=_.T(C);for(k=y.next();!k.done;k=y.next())if(F=k.value,F.encryptedBlobId===void 0)return z.return(RaP(I.uploadManager));return z.return(C)})};
_.u.getPostCreateOptions=function(){for(var I=[],C=_.T(this.pollOptions),y=C.next();!y.done;y=C.next())y=y.value,y.image!==void 0&&I.push({text:this.hasCustomOptionText?y.optionText:y.placeholderText,image:y.image});return I};
_.u.resetPollOptions=function(){this.pollOptions=this.createPollOptions(this.editorInfo);this.showImagesPreview=!1};
_.u.createButtonRenderer=function(I,C){return{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:I,accessibilityData:{accessibilityData:{label:this.getSimpleString(I)}},isDisabled:C}};
_.u.createPollOption=function(){return{optionText:"",placeholderText:""}};
_.u.computeThumbnailRendererData=function(I){return I?{image:I,selected:!1}:void 0};
_.u.getSimpleString=function(I){return _.hS(I)};
_.u.updateOptionTextFromBinding=function(I){if(I.target){var C=Array.from(_.f(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.poll-option-input-text")).indexOf(I.target);if(C>=0){var y;this.pollOptions[C].optionText=(y=I.detail.value)!=null?y:""}}};
_.H1.Object.defineProperties(RO.prototype,{isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var I,C;return this.pollOptions.length<((C=(I=this.editorInfo)==null?void 0:I.maxPollOptions)!=null?C:0)}},
hasImages:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(I){return I.image})}},
imagesToReposition:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.filter(function(I){return I.image}).map(function(I){return I.image})}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.pollOptions.some(function(I){return I.optionText.trim()})}},
addOptionButton:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.data)==null?void 0:I.addOptionButtonText;return C?this.createButtonRenderer(C,!this.isAllowedToAddOption):void 0}},
repositionImagesButton:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.data)==null?void 0:I.repositionImagesButtonLabel;return C?this.createButtonRenderer(C,!this.hasImages):void 0}}});
RO.prototype.onPollOptionsChange=RO.prototype.onPollOptionsChange;RO.prototype.observeAddImageError=RO.prototype.observeAddImageError;RO.prototype.onEditorInfoChange=RO.prototype.onEditorInfoChange;RO.prototype.dataChanged=RO.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],RO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("ytd-backstage-multi-image-reposition-renderer"),_.h("design:type",Object)],RO.prototype,"imageRepositionContainer",void 0);
_.E([_.d(),_.h("design:type",Object)],RO.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],RO.prototype,"editorInfo",void 0);_.E([_.d(),_.h("design:type",$O)],RO.prototype,"uploadManager",void 0);_.E([_.d(),_.h("design:type",Object)],RO.prototype,"showImagesPreview",void 0);_.E([_.d(),_.h("design:type",Array)],RO.prototype,"pollOptions",void 0);_.E([_.d(),_.h("design:type",Object)],RO.prototype,"errorMessage",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RO.prototype,"dataChanged",null);_.E([_.rW("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RO.prototype,"onEditorInfoChange",null);_.E([_.FI("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RO.prototype,"observeAddImageError",null);
_.E([_.rW("pollOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RO.prototype,"onPollOptionsChange",null);_.E([_.v("pollOptions","editorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"isAllowedToAddOption",null);_.E([_.v("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"hasImages",null);
_.E([_.v("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"imagesToReposition",null);_.E([_.v("pollOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"hasCustomOptionText",null);_.E([_.v("data","isAllowedToAddOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"addOptionButton",null);_.E([_.v("data","hasImages"),_.h("design:type",Object),_.h("design:paramtypes",[])],RO.prototype,"repositionImagesButton",null);
RO=_.E([_.m({is:"ytd-backstage-image-poll-editor-renderer",disableElementRegistration:!0})],RO);
_.Z(RO,"ytd-backstage-image-poll-editor-renderer",function(){if(jkq!==void 0)return jkq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return jkq=I},{mode:2});var Sc5={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 KSY;var b9=function(){var I=_.q.apply(this,arguments)||this;I.a11yConfig=Sc5;I.imageDisplayOffsetTop=0;I.imageDisplayOffsetLeft=0;I.pickerDisplayOffsetTop=0;I.pickerDisplayOffsetLeft=0;I.showPreviewContainer=!0;I.startPicker=!1;I.repositionOptional=!1;I.editOnlyMode=!1;I.savedImageDisplayOffsetTop=0;I.savedImageDisplayOffsetLeft=0;return I};
_.R(b9,_.q);_.u=b9.prototype;_.u.created=function(){_.WV.requestAvailability()};
_.u.ready=function(){};
_.u.onArrowKeysDown=function(I){if(!this.showPreviewContainer&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){I.detail.keyboardEvent.preventDefault();var C=0,y=0,k="";switch(I.detail.keyboardEvent.key){case "ArrowUp":qfY(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?k=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":qfY(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?k=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":qfY(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?k=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":qfY(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?k=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}k&&_.PQ(k)&&_.k3(this.hostElement,"iron-announce",{text:_.PQ(k)});if(y||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),I=_.PQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),I=_.PQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})),I&&_.k3(this.hostElement,"iron-announce",{text:I})}};
_.u.getPreviewPosition=function(I,C,y,k){return Math.round(100*(I+C*.5-y)/k)};
_.u.calculateDisplayPosition=function(){var I=this.imageData.naturalWidth,C=this.imageData.naturalHeight;this.displayScale=Math.max(200/I,200/C);this.pickerDisplayOffsetTop=this.pickerDisplayOffsetLeft=50;var y=I*this.displayScale*this.imageData.previewCoordinates.left,k=C*this.displayScale*this.imageData.previewCoordinates.top;this.imageDisplayOffsetLeft=C>I?this.pickerDisplayOffsetLeft:this.pickerDisplayOffsetLeft-y;this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop=I>C?this.pickerDisplayOffsetTop:
this.pickerDisplayOffsetTop-k;this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft;this.imageWidth=I*this.displayScale;this.imageHeight=C*this.displayScale};
_.u.onImageChange=function(){this.imageData&&(this.editOnlyMode||(this.showPreviewContainer=!0),this.calculateDisplayPosition())};
_.u.onEditOnlyModeUpdate=function(){this.showPreviewContainer=!this.editOnlyMode};
_.u.getSignedPosition=function(I,C,y){return C==="X"&&_.Aq("HTML_DIR")==="rtl"?y==="-"?I+"px":I*-1+"px":y==="-"?I*-1+"px":I+"px"};
_.u.pickerMove=function(I){if(this.startPicker&&!this.showPreviewContainer&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-I.clientX,y=this.pickerOffsetY-I.clientY;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.u.pickerMoveStart=function(I){this.startPicker=!0;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY};
_.u.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0;var I=this.generateCropPreview();I&&_.k3(this.hostElement,"ytd-backstage-image-preview-coordinates-update",I)};
_.u.cancelReposition=function(){this.editOnlyMode||(this.imageDisplayOffsetTop=this.savedImageDisplayOffsetTop,this.imageDisplayOffsetLeft=this.savedImageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);_.k3(this.hostElement,"ytd-backstage-image-preview-coordinates-cancel")};
_.u.deleteImage=function(){_.k3(this.hostElement,"ytd-backstage-image-preview-delete")};
_.u.editCropCoordinates=function(){this.showPreviewContainer=!1};
_.u.saveCropCoordinates=function(){this.editOnlyMode||(this.savedImageDisplayOffsetTop=this.imageDisplayOffsetTop,this.savedImageDisplayOffsetLeft=this.imageDisplayOffsetLeft,this.startPicker=!1,this.showPreviewContainer=!0);var I=this.generateCropPreview();I&&_.k3(this.hostElement,"ytd-backstage-image-preview-coordinates-save",I)};
_.u.getPreviewOffset=function(I,C,y){return C&&I?(y==="X"&&_.Aq("HTML_DIR")==="rtl"?300/C*I:300/C*I*-1)+"px":"0px"};
_.u.getSimpleText=function(I){return I?_.hS(I):""};
_.u.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}};
_.H1.Object.defineProperties(b9.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.PQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.PQ(this.a11yConfig.verticalRepositionInstruction)}I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.PQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.PQ(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 I,C,y=(I=this.instruction)==null?void 0:(C=I.previewInstruction)==null?void 0:C.editButtonLabel;return y?{size:"SIZE_SMALL",style:"STYLE_SUGGESTIVE",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
saveButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F=this.editOnlyMode?(I=this.instruction)==null?void 0:(C=I.editInstruction)==null?void 0:C.saveImagesButtonLabel:(y=this.instruction)==null?void 0:(k=y.editInstruction)==null?void 0:k.saveButtonLabel;return F?{style:"STYLE_SUGGESTIVE",size:"SIZE_SMALL",text:F,accessibilityData:{accessibilityData:{label:this.getSimpleText(F)}}}:void 0}},
deleteButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.instruction)==null?void 0:(C=I.previewInstruction)==null?void 0:C.deleteButtonLabel;return y?{size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}:void 0}},
cancelButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.instruction)==null?void 0:(C=I.editInstruction)==null?void 0:C.cancelButtonLabel;I=this.editOnlyMode?"STYLE_BLUE_TEXT":"STYLE_TEXT";return y?{style:I,size:"SIZE_SMALL",text:y,accessibilityData:{accessibilityData:{label:this.getSimpleText(y)}}}: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"}}});
b9.prototype.onEditOnlyModeUpdate=b9.prototype.onEditOnlyModeUpdate;b9.prototype.onImageChange=b9.prototype.onImageChange;_.E([_.d(),_.h("design:type",dZt)],b9.prototype,"imageData",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"instruction",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"a11yConfig",void 0);_.E([_.d(),_.h("design:type",Number)],b9.prototype,"imageWidth",void 0);_.E([_.d(),_.h("design:type",Number)],b9.prototype,"imageHeight",void 0);
_.E([_.d(),_.h("design:type",Number)],b9.prototype,"displayScale",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"imageDisplayOffsetTop",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"showPreviewContainer",void 0);
_.E([_.d(),_.h("design:type",Object)],b9.prototype,"startPicker",void 0);_.E([_.d(),_.h("design:type",Number)],b9.prototype,"pickerOffsetX",void 0);_.E([_.d(),_.h("design:type",Number)],b9.prototype,"pickerOffsetY",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"repositionOptional",void 0);_.E([_.d(),_.h("design:type",Object)],b9.prototype,"editOnlyMode",void 0);_.E([_.z$("#picker-container"),_.h("design:type",HTMLElement)],b9.prototype,"JSC$13404_pickerContainer",void 0);
_.E([_.z$("#picker"),_.h("design:type",HTMLElement)],b9.prototype,"picker",void 0);_.E([_.z$("#preview-clipper"),_.h("design:type",HTMLElement)],b9.prototype,"previewClipper",void 0);_.E([_.z$("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],b9.prototype,"JSC$13404_imageInBackground",void 0);_.E([_.z$("#image-in-picker"),_.h("design:type",HTMLImageElement)],b9.prototype,"JSC$13404_imageInPicker",void 0);
_.E([_.z$("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],b9.prototype,"JSC$13404_imageInPreviewClipper",void 0);_.E([_.v("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"altLabelForImage",null);_.E([_.v("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],b9.prototype,"pickerSize",null);
_.E([_.v("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],b9.prototype,"imageOrientationStyle",null);_.E([_.v("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],b9.prototype,"editButton",null);_.E([_.v("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],b9.prototype,"saveButton",null);_.E([_.v("instruction"),_.h("design:type",Object),_.h("design:paramtypes",[])],b9.prototype,"deleteButton",null);
_.E([_.v("instruction","editOnlyMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],b9.prototype,"cancelButton",null);_.E([_.v("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],b9.prototype,"cropOffsetTop",null);_.E([_.v("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],b9.prototype,"cropOffsetLeft",null);
_.E([_.v("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"pickerBackgroundStyle",null);_.E([_.v("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"pickerDisplayStyle",null);_.E([_.v("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"imageInPickerStyle",null);
_.E([_.v("cropOffsetLeft","cropOffsetTop","pickerSize"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"previewClipperStyle",null);_.E([_.rW("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],b9.prototype,"onImageChange",null);_.E([_.rW("editOnlyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],b9.prototype,"onEditOnlyModeUpdate",null);
_.E([_.v("showPreviewContainer"),_.h("design:type",String),_.h("design:paramtypes",[])],b9.prototype,"pickerModeStyle",null);b9=_.E([_.m({is:"ytd-backstage-image-preview-renderer",disableElementRegistration:!0})],b9);
_.Z(b9,"ytd-backstage-image-preview-renderer",function(){if(KSY!==void 0)return KSY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return KSY=I},{mode:1});var AV0;var gP8={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 vPd;var WSw;var YO=function(){var I=_.q.apply(this,arguments)||this;I.a11yConfig=gP8;I.imageDisplayOffsetTop=0;I.imageDisplayOffsetLeft=0;I.pickerDisplayOffsetTop=0;I.pickerDisplayOffsetLeft=0;I.cropCoordinatesSaved=!1;I.previewSize=0;I.startPicker=!1;I.repositionOptional=!1;return I};
_.R(YO,_.q);_.u=YO.prototype;_.u.created=function(){_.WV.requestAvailability()};
_.u.ready=function(){};
_.u.onArrowKeysDown=function(I){if(!this.cropCoordinatesSaved&&this.pickerSize&&this.imageHeight&&this.imageWidth&&this.displayScale){I.detail.keyboardEvent.preventDefault();var C=0,y=0,k="";switch(I.detail.keyboardEvent.key){case "ArrowUp":mZI(this.imageDisplayOffsetTop+this.imageHeight,this.pickerDisplayOffsetTop+this.pickerSize)?k=this.a11yConfig.reachBottomOfImage:C=this.imageHeight*.05*-1;break;case "ArrowDown":mZI(this.pickerDisplayOffsetTop,this.imageDisplayOffsetTop)?k=this.a11yConfig.reachTopOfImage:
C=this.imageHeight*.05;break;case "ArrowLeft":mZI(this.pickerDisplayOffsetLeft+this.pickerSize,this.imageDisplayOffsetLeft+this.imageWidth)?k=this.a11yConfig.reachRightOfImage:y=this.imageWidth*.05*-1;break;case "ArrowRight":mZI(this.pickerDisplayOffsetLeft,this.imageDisplayOffsetLeft)?k=this.a11yConfig.reachLeftOfImage:y=this.imageWidth*.05}k&&_.PQ(k)&&_.k3(this.hostElement,"iron-announce",{text:_.PQ(k)});if(y||C)this.imageHeight>this.imageWidth?(this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,
Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop+C)),I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight),I=_.PQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})):(this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft+y)),I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth),I=_.PQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})),I&&_.k3(this.hostElement,"iron-announce",{text:I})}};
_.u.getPreviewPosition=function(I,C,y,k){return Math.round(100*(I+C*.5-y)/k)};
_.u.displayImage=function(){var I=this.JSC$13415_pickerContainer.getBoundingClientRect().width,C=this.JSC$13415_pickerContainer.getBoundingClientRect().height,y=Math.min(this.picker.getBoundingClientRect().height,this.picker.getBoundingClientRect().width),k=this.JSC$13415_imageInBackground.naturalWidth,F=this.JSC$13415_imageInBackground.naturalHeight;this.displayScale=Math.max(y/k,y/F);this.imageWidth=k*this.displayScale;this.imageHeight=F*this.displayScale;this.pickerDisplayOffsetLeft=(I-y)/2;this.pickerDisplayOffsetTop=
(C-y)/2;this.imageDisplayOffsetLeft=F>k?this.pickerDisplayOffsetLeft:(I-this.imageWidth)/2;this.imageDisplayOffsetTop=k>F?this.pickerDisplayOffsetTop:(C-this.imageHeight)/2;this.repositionOptional&&this.saveCropCoordinates()};
_.u.onImageDataChange=function(){this.imageData&&(this.pickerDisplayOffsetLeft=this.pickerDisplayOffsetTop=0,this.cropCoordinatesSaved=!1,this.JSC$13415_imageInBackground.src=this.imageData.toString(),this.JSC$13415_imageInPicker.src=this.imageData.toString(),this.JSC$13415_imageInPreviewClipper.src=this.imageData.toString(),this.imageAsPreview.src=this.imageData.toString())};
_.u.getSignedPosition=function(I,C,y){return C==="X"&&_.Aq("HTML_DIR")==="rtl"?y==="-"?I+"px":I*-1+"px":y==="-"?I*-1+"px":I+"px"};
_.u.pickerMove=function(I){if(this.startPicker&&!this.cropCoordinatesSaved&&this.pickerSize&&this.pickerOffsetX!==void 0&&this.pickerOffsetY!==void 0&&this.imageHeight&&this.imageWidth&&this.displayScale){var C=this.pickerOffsetX-I.clientX,y=this.pickerOffsetY-I.clientY;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY;this.imageHeight>this.imageWidth?this.imageDisplayOffsetTop=Math.min(this.pickerDisplayOffsetTop,Math.max(this.pickerDisplayOffsetTop+this.pickerSize-this.imageHeight,this.imageDisplayOffsetTop-
y)):this.imageDisplayOffsetLeft=Math.min(this.pickerDisplayOffsetLeft,Math.max(this.pickerDisplayOffsetLeft+this.pickerSize-this.imageWidth,this.imageDisplayOffsetLeft-C))}};
_.u.pickerMoveStart=function(I){this.startPicker=!0;this.pickerOffsetX=I.clientX;this.pickerOffsetY=I.clientY};
_.u.pickerMoveComplete=function(){this.startPicker=!1;this.pickerOffsetY=this.pickerOffsetX=void 0};
_.u.saveCropCoordinates=function(){this.cropCoordinatesSaved?(this.cropCoordinatesSaved=!1,this.previewSize=0,_.k3(this.hostElement,"yt-img-crop-reposition")):(this.startPicker=!1,this.generateCropPreview())};
_.u.getPreviewOffset=function(I,C,y,k){return C&&I&&y?(k==="X"&&_.Aq("HTML_DIR")==="rtl"?y/C*I:y/C*I*-1)+"px":"0px"};
_.u.getSimpleText=function(I){return I?_.hS(I):""};
_.u.generateCropPreview=function(){if(this.imageWidth&&this.imageHeight&&this.pickerSize){this.cropCoordinatesSaved=!0;var I=this.cropOffsetTop/this.imageHeight,C=(this.cropOffsetLeft+this.pickerSize)/this.imageWidth,y=(this.cropOffsetTop+this.pickerSize)/this.imageHeight,k=this.cropOffsetLeft/this.imageWidth;this.previewSize=_.f(this.hostElement).querySelector("#preview-clipper").getBoundingClientRect().width;_.k3(this.hostElement,"yt-img-crop-coordinates-update",{top:I,right:C,bottom:y,left:k})}};
_.H1.Object.defineProperties(YO.prototype,{altLabelForImage:{configurable:!0,enumerable:!0,get:function(){if(!this.imageWidth||!this.imageHeight||!this.pickerSize)return"";if(this.imageHeight>this.imageWidth){var I=this.getPreviewPosition(this.pickerDisplayOffsetTop,this.pickerSize,this.imageDisplayOffsetTop,this.imageHeight);return _.PQ(this.a11yConfig.imageVerticalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.PQ(this.a11yConfig.verticalRepositionInstruction)}I=this.getPreviewPosition(this.pickerDisplayOffsetLeft,
this.pickerSize,this.imageDisplayOffsetLeft,this.imageWidth);return _.PQ(this.a11yConfig.imageHorizontalPosition,{x_percent:""+I,y_percent:""+(100-I)})+"\n"+_.PQ(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 I,C=(I=this.learnMore.runs[0])==null?void 0:I.navigationEndpoint,y;return((y=_.l(C,_.xo))==null?void 0:y.url)||void 0}}}});
YO.prototype.onImageDataChange=YO.prototype.onImageDataChange;_.E([_.d(),_.h("design:type",Object)],YO.prototype,"imageData",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"instruction",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"a11yConfig",void 0);_.E([_.d(),_.h("design:type",Number)],YO.prototype,"imageWidth",void 0);_.E([_.d(),_.h("design:type",Number)],YO.prototype,"imageHeight",void 0);_.E([_.d(),_.h("design:type",Number)],YO.prototype,"displayScale",void 0);
_.E([_.d(),_.h("design:type",Object)],YO.prototype,"imageDisplayOffsetTop",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"imageDisplayOffsetLeft",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"pickerDisplayOffsetTop",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"pickerDisplayOffsetLeft",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"cropCoordinatesSaved",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"previewSize",void 0);
_.E([_.d(),_.h("design:type",Object)],YO.prototype,"startPicker",void 0);_.E([_.d(),_.h("design:type",Number)],YO.prototype,"pickerOffsetX",void 0);_.E([_.d(),_.h("design:type",Number)],YO.prototype,"pickerOffsetY",void 0);_.E([_.d(),_.h("design:type",Object)],YO.prototype,"repositionOptional",void 0);_.E([_.z$("#picker-container"),_.h("design:type",HTMLElement)],YO.prototype,"JSC$13415_pickerContainer",void 0);_.E([_.z$("#picker"),_.h("design:type",HTMLElement)],YO.prototype,"picker",void 0);
_.E([_.z$("#image-in-picker-background"),_.h("design:type",HTMLImageElement)],YO.prototype,"JSC$13415_imageInBackground",void 0);_.E([_.z$("#image-in-picker"),_.h("design:type",HTMLImageElement)],YO.prototype,"JSC$13415_imageInPicker",void 0);_.E([_.z$("#image-in-preview-clipper"),_.h("design:type",HTMLImageElement)],YO.prototype,"JSC$13415_imageInPreviewClipper",void 0);_.E([_.z$("#full-image-as-preview"),_.h("design:type",HTMLImageElement)],YO.prototype,"imageAsPreview",void 0);
_.E([_.v("pickerSize","imageWidth","imageHeight","pickerDisplayOffsetTop","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"altLabelForImage",null);_.E([_.v("imageHeight","imageWidth"),_.h("design:type",Number),_.h("design:paramtypes",[])],YO.prototype,"pickerSize",null);_.E([_.v("imageHeight","imageWidth"),_.h("design:type",Object),_.h("design:paramtypes",[])],YO.prototype,"imageOrientationStyle",null);
_.E([_.v("instruction.previewInstruction.editButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],YO.prototype,"editButton",null);_.E([_.v("instruction.editInstruction.saveButtonLabel"),_.h("design:type",Object),_.h("design:paramtypes",[])],YO.prototype,"saveButton",null);_.E([_.v("imageDisplayOffsetTop","pickerDisplayOffsetTop"),_.h("design:type",Number),_.h("design:paramtypes",[])],YO.prototype,"cropOffsetTop",null);
_.E([_.v("imageDisplayOffsetLeft","pickerDisplayOffsetLeft"),_.h("design:type",Number),_.h("design:paramtypes",[])],YO.prototype,"cropOffsetLeft",null);_.E([_.v("imageDisplayOffsetLeft","imageDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"pickerBackgroundStyle",null);_.E([_.v("pickerDisplayOffsetLeft","pickerDisplayOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"pickerDisplayStyle",null);
_.E([_.v("cropOffsetLeft","cropOffsetTop"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"imageInPickerStyle",null);_.E([_.v("cropOffsetLeft","cropOffsetTop","pickerSize","previewSize"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"previewClipperStyle",null);_.E([_.FI("imageData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YO.prototype,"onImageDataChange",null);
_.E([_.v("cropCoordinatesSaved"),_.h("design:type",String),_.h("design:paramtypes",[])],YO.prototype,"pickerModeStyle",null);_.E([_.v("instruction.editInstruction.learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],YO.prototype,"learnMore",null);_.E([_.v("learnMore"),_.h("design:type",Object),_.h("design:paramtypes",[])],YO.prototype,"learnMoreUrl",null);YO=_.E([_.lT({is:"yt-img-crop-picker",disableElementRegistration:!0})],YO);
_.Z(YO,"yt-img-crop-picker",function(){if(WSw===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;vPd===void 0&&(vPd=document.createElement("template"));var k=vPd;y.call(C,k.content.cloneNode(!0),I.content.firstChild);WSw=I}I=WSw;return I},{mode:2});var Go=function(){var I=_.q.apply(this,arguments)||this;I.errorMessage="";I.hasPreview=!1;I.isBackstagePost=!1;I.dismissButtonOverrides={size:"XS"};return I};
_.R(Go,_.q);_.u=Go.prototype;_.u.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"}}}};
_.u.detached=function(){this.removeOverlay()};
_.u.setPreview=function(I){_.f(this.hostElement).querySelector("#preview-picker").imageData=I;this.hasPreview=!0;_.k3(this.hostElement,"yt-backstage-image-select-preview")};
_.u.cancel=function(){this.errorMessage="";this.overlay&&this.overlay.cancel();this.hasPreview=!1;var I=_.f(this.hostElement).querySelector("#dropzone");I.classList.remove("dragover");I.classList.remove("error");_.k3(this.hostElement,"yt-backstage-image-select-cancel")};
_.u.setupOverlay=function(){var I=this.imageUploadEndpoint;this.removeOverlay();if(I&&I.imageValidationInfo){var C=_.f(this.hostElement).querySelector("#dropzone"),y=_.f(this.hostElement).querySelector("#select");this.overlay=new ZN(I.uploadUrl,I.channelId,I.imageValidationInfo.maxFileSizeMb,I.imageValidationInfo.allowedMaxAspectRatio,C,y,!0);_.Lv(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,!1,this);_.Lv(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",
this.onImageError,!1,this);_.Lv(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this);_.Lv(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this);_.Lv(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this)}};
_.u.removeOverlay=function(){this.overlay&&(_.Pf(this.overlay,"yt.comments.ImageUploadOverlay.INVALID_EVENT",this.onImageError,!1,this),_.Pf(this.overlay,"yt.comments.ImageUploadOverlay.HOVER_EVENT",this.onDragOver,!1,this),_.Pf(this.overlay,"yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT",this.onImageError,!1,this),_.Pf(this.overlay,"yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT",this.onImageAlert,!1,this),_.Pf(this.overlay,"yt.comments.ImageUploadOverlay.CHANGE_EVENT",this.onPreview,
!1,this),this.overlay.dispose(),this.overlay=void 0)};
_.u.onDragOver=function(I){var C=_.f(this.hostElement).querySelector("#dropzone");_.a_(C,"dragover",I.value)};
_.u.onPreview=function(I){this.setPreview(I.value)};
_.u.onImageError=function(I){if(I.type==="yt.comments.ImageUploadOverlay.FILE_TOO_LARGE_EVENT"){var C;I=(C=this.data)==null?void 0:C.fileSizeError}else if(I.type==="yt.comments.ImageUploadOverlay.INVALID_EVENT"){var y;I=(y=this.data)==null?void 0:y.invalidError}else if(I.type==="yt.comments.ImageUploadOverlay.FILE_INVALID_ASPECT_RATIO_EVENT"){var k;I=(k=this.data)==null?void 0:k.invalidAspectRatioError}else return;this.errorMessage=_.hS(I);_.f(this.hostElement).querySelector("#dropzone").classList.add("error")};
_.u.onImageAlert=function(I){this.onImageError(I)};
_.u.uploadPromise=function(){var I=this,C=this.overlay&&this.overlay.uploadPromise();if(C)return C.catch(function(){throw Error(I.data?_.hS(I.data.uploadFailureError):"");})};
_.H1.Object.defineProperties(Go.prototype,{selectionCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
icon:{configurable:!0,enumerable:!0,get:function(){var I,C;if((I=this.data)==null?0:(C=I.icon)==null?0:C.iconType)return _.y5(this.data.icon.iconType)}}});
Go.prototype.setupOverlay=Go.prototype.setupOverlay;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Go.prototype,"rendererStamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Go.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Go.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Go.prototype,"imageUploadEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],Go.prototype,"errorMessage",void 0);
_.E([_.d(),_.h("design:type",ZN)],Go.prototype,"overlay",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Go.prototype,"hasPreview",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Go.prototype,"isBackstagePost",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Go.prototype,"selectionCancel",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Go.prototype,"previewCancel",null);
_.E([_.v("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Go.prototype,"icon",null);_.E([_.d(),_.h("design:type",Object)],Go.prototype,"dismissButtonOverrides",void 0);_.E([_.FI("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Go.prototype,"setupOverlay",null);Go=_.E([_.m({is:"ytd-backstage-image-select-renderer",disableElementRegistration:!0})],Go);
_.Z(Go,"ytd-backstage-image-select-renderer",function(){if(AV0!==void 0)return AV0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return AV0=I},{mode:1});var dvq;var xve;var fc=function(){var I=_.q.apply(this,arguments)||this;I.selected=!1;return I};
_.R(fc,_.q);_.u=fc.prototype;_.u.computeSelected=function(I){return I==null?void 0:I.selected};
_.u.computeTransform=function(I,C,y){var k,F,z=(F=(k=this.imageContainer)==null?void 0:k.getBoundingClientRect())!=null?F:{width:0,height:0};k=Math.max(z.width/C,z.height/y);y=y*k*I.top;return"translateX("+this.getSignedPosition(C*k*I.left,"X","-")+") translateY("+this.getSignedPosition(y,"Y","-")+")"};
_.u.getSignedPosition=function(I,C,y){return C==="X"&&_.Aq("HTML_DIR")==="rtl"?y==="-"?I+"px":I*-1+"px":y==="-"?I*-1+"px":I+"px"};
_.u.onClick=function(){var I;_.k3(this.hostElement,"ytb-backstage-multi-image-thumbnail-render-click",(I=this.data)==null?void 0:I.image)};
_.u.onKeyPress=function(I){if(I.keyCode===13)this.onClick()};
_.H1.Object.defineProperties(fc.prototype,{thumbnailUrl:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.image)==null?void 0:C.localImageSrc)||void 0}},
thumbnailStyle:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)!=null&&I.image){var C;I=(C=this.data)==null?void 0:C.image;return I.previewCoordinates.top!==0||I.previewCoordinates.left!==0?(C=this.computeTransform(I.previewCoordinates,I.naturalWidth,I.naturalHeight),I.naturalHeight>=I.naturalWidth?"width:inherit;transform:"+C+";":"height:inherit;transform:"+C+";"):I.naturalHeight>=I.naturalWidth?"width:inherit;":"height:inherit;"}}}});
fc.prototype.onKeyPress=fc.prototype.onKeyPress;_.E([_.z$(".image-container"),_.h("design:type",HTMLElement)],fc.prototype,"imageContainer",void 0);_.E([_.d(),_.h("design:type",Object)],fc.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeSelected(data)"}),_.h("design:type",Object)],fc.prototype,"selected",void 0);_.E([_.v("data.image"),_.h("design:type",Object),_.h("design:paramtypes",[])],fc.prototype,"thumbnailUrl",null);
_.E([_.v("data.image","data.image.previewCoordinates"),_.h("design:type",Object),_.h("design:paramtypes",[])],fc.prototype,"thumbnailStyle",null);_.E([_.km("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],fc.prototype,"onKeyPress",null);fc=_.E([_.m({is:"ytd-backstage-multi-image-thumbnail-renderer",disableElementRegistration:!0})],fc);
_.Z(fc,"ytd-backstage-multi-image-thumbnail-renderer",function(){if(xve!==void 0)return xve;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return xve=I},{mode:2});var SW=function(I,C,y){y=y===void 0?!1:y;_.LW.call(this);var k=this;this.dropZoneOverlay=new TX(I);this.selectOverlay=y?new c3(C,"multiple_file",["image/*"]):new c3(C,"single_file",["image/*"]);this.handler=new _.Cq(this);_.kq(this,this.handler);this.handler.listen(this.dropZoneOverlay,"f",this.onChange).listen(C,"click",function(){k.selectOverlay.click()}).listen(this.selectOverlay,"j",this.onChange)};
_.R(SW,_.LW);SW.prototype.onChange=function(I){var C;(C=I.files)!=null&&C.length&&this.dispatchEvent(new CustomEvent("yt.comments.ImagePicker.select",{detail:I.files}))};var Kc=function(){var I=_.q.apply(this,arguments)||this;I.addImageErrorMessage="";I.errorMessage="";I.images=[];I.selectedImageIndex=0;I.modern=_.V("web_modern_buttons");I.maxNumImagesPerPost=_.s8("max_num_images_per_post_web_ui");I.JSC$13430_imageId=0;return I};
_.R(Kc,_.q);_.u=Kc.prototype;_.u.observeAddImageError=function(){this.addImageErrorMessage!==""&&_.k3(this.hostElement,"yt-backstage-add-image-error",this.addImageErrorMessage)};
_.u.observeDragToReorder=function(){var I=this;if(this.showImagesPreview){var C,y=Iw8(_.tJ.getInstance(),(C=this.data)==null?void 0:C.dragToReorderTooltip);_.b$.addLowPriorityJob(function(){_.cQ(I.hostElement,y,I.thumbnailDragDropArea)})}};
_.u.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}}};
_.u.computeThumbnail=function(I){return(I==null?void 0:I.localImageSrc)||void 0};
_.u.onRendererstamperFinished=function(){_.YO8(this.ytReorderableBehavior,_.f(this.hostElement).querySelector("#thumbnail-drag-drop-area"),_.f(this.hostElement).querySelector("#thumbnail-drag-drop-area"))};
_.u.handleDrop=function(I){var C=I.currDragItem;if(C!=null&&C.data){I=this.images[this.selectedImageIndex];var y=C.data.image,k=this.images.indexOf(y)||0;C=_.dH(C.parentNode.children,C);this.images.splice(k,1);this.images.splice(C,0,y);this.images=[].concat(_.Py(this.images));this.selectedImageIndex=this.images.indexOf(I)}};
_.u.setUpImagePicker=function(){var I=this.imageUploadEndpoint;I&&I.imageValidationInfo&&(this.uploadManager=new $O(I.uploadUrl,I.channelId),this.initialPicker||(this.initialPicker=new SW(this.dropzone,this.selectLink,!0),_.Lv(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this)),this.addImagePicker||(this.addImagePicker=new SW(this.addImageButtonContainer,this.addImageSelectButton),_.Lv(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this)),
_.Lv(this.JSC$13430_imagePreviewContainer,"ytd-backstage-image-preview-coordinates-save",this.repositionImage,!1,this),_.Lv(this.JSC$13430_imagePreviewContainer,"ytd-backstage-image-preview-delete",this.deleteImage,!1,this),_.Lv(_.f(this.hostElement).querySelector("#thumbnail-drag-drop-area"),"ytb-backstage-multi-image-thumbnail-render-click",this.onThumbnailClick,!1,this))};
_.u.detached=function(){this.initialPicker&&(_.Pf(this.initialPicker,"yt.comments.ImagePicker.select",this.onInitialSelectImages,!1,this),this.initialPicker.dispose(),this.initialPicker=void 0);this.addImagePicker&&(_.Pf(this.addImagePicker,"yt.comments.ImagePicker.select",this.onAddImage,!1,this),this.addImagePicker.dispose(),this.addImagePicker=void 0)};
_.u.onInitialSelectImages=function(I){var C=this;return _.e(function(y){return _.n(y,C.onSelectImages(I,!1),0)})};
_.u.onAddImage=function(I){var C=this;return _.e(function(y){return _.n(y,C.onSelectImages(I,!0),0)})};
_.u.onSelectImages=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a;return _.e(function(cs){switch(cs.nextAddress){case 1:C?y.addImageErrorMessage="":(y.images=[],y.errorMessage="");k=I.detail;F=y.validateImages([].concat(_.Py(k)));if(F!=="")return C?y.addImageErrorMessage=F:y.errorMessage=F,cs.return();z=[].concat(_.Py(k)).map(function(XO){return(new qD(y.maxAspectRatio,!1,!0)).transform(XO)});
return _.n(cs,Promise.allSettled(z),2);case 2:c=cs.yieldResult,r=_.T(c.entries()),w=r.next();case 3:if(w.done){cs.jumpTo(5);break}L=w.value;D=_.T(L);p=D.next().value;Q=D.next().value;X=p;b=Q;if(b.status!=="fulfilled"){x=A=S=void 0;C?y.addImageErrorMessage=_.hS((S=y.data)==null?void 0:S.invalidError):y.errorMessage=y.errorMessage===""?_.hS((A=y.data)==null?void 0:A.invalidError):_.hS((x=y.data)==null?void 0:x.multiFileError);cs.jumpTo(4);break}B=b.value;B.cropped&&_.k3(y.hostElement,"yt-backstage-multi-image-cropped");
if(B.invalidAspectRatio){yW=U=t=void 0;C?y.addImageErrorMessage=_.hS((t=y.data)==null?void 0:t.invalidAspectRatioError):y.errorMessage=y.errorMessage===""?_.hS((U=y.data)==null?void 0:U.invalidAspectRatioError):_.hS((yW=y.data)==null?void 0:yW.multiFileError);cs.jumpTo(4);break}return _.n(cs,xZW(y.JSC$13430_imageId,I.detail[X],B.transformedData),8);case 8:a=cs.yieldResult,y.images.push(a),y.JSC$13430_imageId++;case 4:w=r.next();cs.jumpTo(3);break;case 5:if(y.errorMessage!==""||y.addImageErrorMessage!==
"")return cs.return();C?$vY(y.uploadManager,[y.images[y.images.length-1]]):$vY(y.uploadManager,y.images);y.images=[].concat(_.Py(y.images));y.selectedImageIndex=C?Math.max(y.images.length-1,0):0;_.k3(y.hostElement,"yt-backstage-multi-image-select");_.oI(cs)}})};
_.u.onThumbnailClick=function(I){if(I=I.event_.detail)this.selectedImageIndex=this.images.indexOf(I)};
_.u.validateImages=function(I){if(I.length>this.maxNumImagesPerPost){var C;return _.hS((C=this.data)==null?void 0:C.multiImageExceedMaxImageCountError)}var y=1048576*this.maxFileSizeMb;I=I.filter(function(z){return z.size>y}).length;
if(I===0)return"";var k,F;I=I>1?(k=this.data)==null?void 0:k.multiFileError:(F=this.data)==null?void 0:F.fileSizeError;return _.hS(I)};
_.u.deleteImage=function(){this.uploadManager.cancel(this.images[this.selectedImageIndex].id);this.images.splice(this.selectedImageIndex,1);this.images=[].concat(_.Py(this.images));this.selectedImageIndex=0};
_.u.repositionImage=function(I){this.images[this.selectedImageIndex].previewCoordinates=I.event_.detail;this.images=[].concat(_.Py(this.images))};
_.u.getAllUploadStatuses=function(){var I=this,C,y,k,F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.uploadManager.getAllUploadStatuses(),2);C=z.yieldResult;y=_.T(C);for(k=y.next();!k.done;k=y.next())if(F=k.value,F.encryptedBlobId===void 0)return z.return(RaP(I.uploadManager));return z.return(C)})};
_.u.hasImages=function(){return this.images.length>0};
_.u.cancel=function(){for(var I=this.uploadManager,C=_.T(I.imagesUploadData),y=C.next();!y.done;y=C.next())I.cancel(y.value.image.id);this.addImageErrorMessage=this.errorMessage="";this.images=[];_.k3(this.hostElement,"yt-backstage-multi-image-cancel")};
_.H1.Object.defineProperties(Kc.prototype,{maxAspectRatio:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.imageUploadEndpoint)==null?void 0:(C=I.imageValidationInfo)==null?void 0:C.allowedMaxAspectRatio)||0}},
maxFileSizeMb:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.imageUploadEndpoint)==null?void 0:(C=I.imageValidationInfo)==null?void 0:C.maxFileSizeMb)||0}},
dropIcon:{configurable:!0,enumerable:!0,get:function(){var I,C;if((I=this.data)==null?0:(C=I.icon)==null?0:C.iconType)return _.y5(this.data.icon.iconType)}},
selectionCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
previewCancel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.cancelButton}},
dataForAddImageButton:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.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 I=this;return(this.images||[]).map(function(C,y){return{renderer:{image:C,selected:y===I.selectedImageIndex}}})}}});
Kc.prototype.setUpImagePicker=Kc.prototype.setUpImagePicker;Kc.prototype.onRendererstamperFinished=Kc.prototype.onRendererstamperFinished;Kc.prototype.observeDragToReorder=Kc.prototype.observeDragToReorder;Kc.prototype.observeAddImageError=Kc.prototype.observeAddImageError;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Kc.prototype,"rendererStamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Kc.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Gwe),_.h("design:type",Object)],Kc.prototype,"ytReorderableBehavior",void 0);_.E([_.z$("#dropzone"),_.h("design:type",HTMLElement)],Kc.prototype,"dropzone",void 0);_.E([_.z$("#select-link"),_.h("design:type",HTMLElement)],Kc.prototype,"selectLink",void 0);_.E([_.z$("#thumbnail-drag-drop-area"),_.h("design:type",HTMLElement)],Kc.prototype,"thumbnailDragDropArea",void 0);_.E([_.z$("#add-image-button-container"),_.h("design:type",HTMLElement)],Kc.prototype,"addImageButtonContainer",void 0);
_.E([_.z$("#add-image-button"),_.h("design:type",HTMLElement)],Kc.prototype,"addImageSelectButton",void 0);_.E([_.z$("#image-preview-container"),_.h("design:type",Object)],Kc.prototype,"JSC$13430_imagePreviewContainer",void 0);_.E([_.d(),_.h("design:type",Object)],Kc.prototype,"addImageErrorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],Kc.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Kc.prototype,"errorMessage",void 0);
_.E([_.d(),_.h("design:type",Object)],Kc.prototype,"imageUploadEndpoint",void 0);_.E([_.d(),_.h("design:type",Array)],Kc.prototype,"images",void 0);_.E([_.d(),_.h("design:type",SW)],Kc.prototype,"initialPicker",void 0);_.E([_.d(),_.h("design:type",SW)],Kc.prototype,"addImagePicker",void 0);_.E([_.d(),_.h("design:type",$O)],Kc.prototype,"uploadManager",void 0);_.E([_.d(),_.h("design:type",Object)],Kc.prototype,"selectedImageIndex",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Kc.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Kc.prototype,"maxNumImagesPerPost",void 0);_.E([_.v("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],Kc.prototype,"maxAspectRatio",null);_.E([_.v("imageUploadEndpoint"),_.h("design:type",Number),_.h("design:paramtypes",[])],Kc.prototype,"maxFileSizeMb",null);
_.E([_.v("data.icon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kc.prototype,"dropIcon",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kc.prototype,"selectionCancel",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kc.prototype,"previewCancel",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kc.prototype,"dataForAddImageButton",null);
_.E([_.v("errorMessage"),_.h("design:type",String),_.h("design:paramtypes",[])],Kc.prototype,"dropzoneClass",null);_.E([_.v("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kc.prototype,"showImagesPreview",null);_.E([_.v("images"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Kc.prototype,"containMaxImages",null);_.E([_.FI("addImageErrorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kc.prototype,"observeAddImageError",null);
_.E([_.FI("showImagesPreview"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kc.prototype,"observeDragToReorder",null);_.E([_.v("images","selectedImageIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Kc.prototype,"selectedImageData",null);_.E([_.v("images","selectedImageIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],Kc.prototype,"thumbnailRenderers",null);
_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kc.prototype,"onRendererstamperFinished",null);_.E([_.FI("imageUploadEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kc.prototype,"setUpImagePicker",null);Kc=_.E([_.m({is:"ytd-backstage-multi-image-select-renderer",disableElementRegistration:!0})],Kc);
_.Z(Kc,"ytd-backstage-multi-image-select-renderer",function(){if(dvq!==void 0)return dvq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return dvq=I},{mode:1});var qce;var mvd;var ZGm;var AC=function(){var I=_.q.apply(this,arguments)||this;I.boundCaptureFocus=function(C){I.onCaptureFocus(C)};
return I};
_.R(AC,_.q);_.u=AC.prototype;_.u.attached=function(){document.addEventListener("focus",this.boundCaptureFocus,!0)};
_.u.detached=function(){document.removeEventListener("focus",this.boundCaptureFocus)};
_.u.onCaptureFocus=function(I){_.qc(I).indexOf(this.hostElement)!==-1&&this.item.focus()};
_.u.getIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.u.onSelect=function(){var I;if((I=this.data)==null?0:I.onSelectCommand)if(_.V("refresh_upon_dismiss_channel_creation_from_playlists"))this.ytComponentBehavior.resolveCommand(this.data.onSelectCommand);else{var C;((C=_.l(this.data.onSelectCommand.commandMetadata,_.It))==null?0:C.url)?_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.onSelectCommand}):_.N().resolve(_.ID).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})}};
_.H1.Object.defineProperties(AC.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data?_.hS(this.data.label):""}},
value:{configurable:!0,enumerable:!0,get:function(){return this.data?typeof this.data.stringValue==="string"?this.data.stringValue:typeof this.data.int32Value==="number"?this.data.int32Value:null:null}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AC.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],AC.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AC.prototype,"data",void 0);_.E([_.z$("#item"),_.h("design:type",HTMLElement)],AC.prototype,"item",void 0);_.E([_.v("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],AC.prototype,"label",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],AC.prototype,"value",null);AC=_.E([_.m({is:"ytd-privacy-dropdown-item-renderer",disableElementRegistration:!0})],AC);
_.Z(AC,"ytd-privacy-dropdown-item-renderer",function(){if(ZGm!==void 0)return ZGm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZGm=I},{mode:1});var g2=function(){var I=_.q.apply(this,arguments)||this;I.value="";I.label="";I.disabled=!1;return I};
_.R(g2,_.q);_.u=g2.prototype;_.u.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"}}}};
_.u.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getInitiallySelectedItem());this.setInitialLabel()};
_.u.dataChanged=function(){this.reset()};
_.u.valueChanged=function(){var I;if(this.value&&(I=this.data)!=null&&I.entries){I=_.T(this.data.entries);for(var C=I.next();!C.done;C=I.next())if((C=this.getRendererForEntry(C.value))&&this.getItemRendererValue(C)===this.value){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}}};
_.u.setInitialLabel=function(){if(this.data&&this.data.entries)for(var I=_.T(this.data.entries),C=I.next();!C.done;C=I.next())if(C=this.getRendererForEntry(C.value)){if(C.isSelected){this.label=this.ytComponentBehavior.getSimpleString(C.label);break}this.data.label&&(this.label=this.data.label)}};
_.u.getInitiallySelectedItem=function(){if(!this.data||!this.data.entries)return-1;for(var I=_.T(this.data.entries),C=I.next();!C.done;C=I.next()){C=this.getRendererForEntry(C.value);var y=void 0;if((y=C)==null?0:y.isSelected)return this.getItemRendererValue(C)||-1}return-1};
_.u.getItemRendererValue=function(I){return"stringValue"in I||"int32Value"in I?I.stringValue||I.int32Value||null:null};
_.u.getRendererForEntry=function(I){return I.dropdownItemRenderer||I.privacyDropdownItemRenderer||I.navigationDropdownItemRenderer||null};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("value-changed",this.value))};
_.u.updateValueFromBinding=function(I){this.value=I.detail.value};
g2.prototype.valueChangedForBinding=g2.prototype.valueChangedForBinding;g2.prototype.valueChanged=g2.prototype.valueChanged;g2.prototype.dataChanged=g2.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],g2.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],g2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],g2.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],g2.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],g2.prototype,"value",void 0);_.E([_.d(),_.h("design:type",Object)],g2.prototype,"label",void 0);_.E([_.z$("#entries"),_.h("design:type",Object)],g2.prototype,"entries",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],g2.prototype,"disabled",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g2.prototype,"dataChanged",null);
_.E([_.rW("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g2.prototype,"valueChanged",null);_.E([_.FI("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g2.prototype,"valueChangedForBinding",null);g2=_.E([_.m({disableElementRegistration:!0,is:"ytd-flat-dropdown-renderer"})],g2);
_.Z(g2,"ytd-flat-dropdown-renderer",function(){if(mvd!==void 0)return mvd;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flat-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button disabled="[[disabled]]" dynamic-align="" horizontal-align="left" class="style-scope ytd-flat-dropdown-renderer">\n  <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-flat-dropdown-renderer" slot="dropdown-trigger" aria-label$="[[label]]">\n    <div id="label-text" class="style-scope ytd-flat-dropdown-renderer">[[label]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-flat-dropdown-renderer">\n    </yt-icon>\n  </tp-yt-paper-button>\n  <tp-yt-paper-listbox id="entries" class="dropdown-content style-scope ytd-flat-dropdown-renderer" slot="dropdown-content" attr-for-selected="value" selected="[[value]]" on-selected-changed="updateValueFromBinding">\n  </tp-yt-paper-listbox>\n</tp-yt-paper-menu-button>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mvd=I},{mode:1});var B6q;var vo=function(){var I=_.q.apply(this,arguments)||this;I.quizOptions=[];I.explanationPlaceholderText="";I.optionPlaceholderText="";I.correctAnswerIndex=-1;I.isMarkAnswerTooltipShown=!1;I.timer=0;return I};
_.R(vo,_.q);_.u=vo.prototype;_.u.dataChanged=function(){this.optionPlaceholderText=_.hS(this.editorInfo.optionPlaceholderText);this.explanationPlaceholderText=_.hS(this.editorInfo.explanationPlaceholderText);this.quizOptions.length===0&&(this.quizOptions=this.createQuizOptions(this.editorInfo))};
_.u.onMarkCorrectAnswer=function(I){var C,y=((C=this.quizOptions[this.correctAnswerIndex])==null?void 0:C.explanationText)||"";this.correctAnswerIndex>=0&&(this.quizOptions[this.correctAnswerIndex]=Object.assign({},this.quizOptions[this.correctAnswerIndex],{isCorrect:!1,explanationText:""}));this.quizOptions[I.model.index]=Object.assign({},this.quizOptions[I.model.index],{explanationText:y,isCorrect:!0});this.correctAnswerIndex=I.model.index;this.quizOptions=[].concat(_.Py(this.quizOptions))};
_.u.updatePlaceholderTexts=function(){for(var I=!1,C=[],y=0;y<this.quizOptions.length;y++){var k=this.optionPlaceholderText+" "+(y+1),F=void 0;((F=this.quizOptions[y])==null?void 0:F.placeholderText)!==k?(I=!0,C.push(Object.assign({},this.quizOptions[y],{placeholderText:k}))):C.push(this.quizOptions[y])}I&&(this.quizOptions=C);this.isValid()?_.k3(this.hostElement,"yt-commentbox-post-enable"):_.k3(this.hostElement,"yt-commentbox-post-disable")};
_.u.getSimpleString=function(I){return _.hS(I)};
_.u.createQuizOptions=function(I){var C=[],y;I=(y=I==null?void 0:I.minQuizOptions)!=null?y:0;for(y=0;y<I;y++)C.push(this.createQuizOption());return C};
_.u.onAddQuizOption=function(){this.isAllowedToAddOption&&(this.quizOptions=[].concat(_.Py(this.quizOptions),[this.createQuizOption()]))};
_.u.onInput=function(){this.quizOptions=[].concat(_.Py(this.quizOptions))};
_.u.onExplanationInput=function(){_.k3(this.hostElement,"yt-quiz-attachment-explanation-update")};
_.u.onRemoveQuizOption=function(I){this.quizOptions.splice(I.model.index,1);I.model.index<this.correctAnswerIndex?--this.correctAnswerIndex:I.model.index===this.correctAnswerIndex&&(this.correctAnswerIndex=-1);this.quizOptions=[].concat(_.Py(this.quizOptions));this.quizOptions.length===0&&_.k3(this.hostElement,"yt-quiz-attachment-dismiss")};
_.u.updateHintRenderer=function(){var I=this;clearTimeout(this.timer);this.timer=setTimeout(function(){I.maybeDisplayMarkAnswerEduToolTip()},4E3)};
_.u.isValid=function(){if(!this.editorInfo||this.quizOptions.length<Number(this.editorInfo.minQuizOptions)||this.quizOptions.length>Number(this.editorInfo.maxQuizOptions))return!1;for(var I=0,C=0,y=_.T(this.quizOptions),k=y.next();!k.done;k=y.next()){k=k.value;var F=void 0;if(((F=k.optionText)==null?void 0:F.trim())!==""||k.isCorrect){k.isCorrect&&C++;F=void 0;if(this.hasCustomOptionText&&((F=k.optionText)==null?void 0:F.trim().length)<Number(this.editorInfo.minQuizOptionChars))return!1;I++}}return I>=
Number(this.editorInfo.minQuizOptions)&&C===1};
_.u.getPostCreateOptions=function(){for(var I=[],C=_.T(this.quizOptions),y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;((k=y.optionText)==null?void 0:k.trim())!==""&&I.push({pollOption:{text:y.optionText,explanation:y.explanationText},isCorrect:y.isCorrect})}return I};
_.u.getExplanationText=function(){var I;return((I=this.quizOptions[this.correctAnswerIndex])==null?void 0:I.explanationText)||""};
_.u.maybeDisplayMarkAnswerEduToolTip=function(){var I,C,y,k,F,z,c;this.shouldShowMarkAnswerTooltip()&&((I=this.editorInfo)==null?0:(C=I.markAnswerButton)==null?0:(y=C.buttonRenderer)==null?0:(k=y.hint)==null?0:(F=k.hintRenderer)==null?0:(z=F.content)==null?0:(c=z.bubbleHintRenderer)==null?0:c.text)&&(_.tJ.getInstance(),I=JJ(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,(I==null?void 0:I.length)>0&&this.optionSelectors&&_.uU(I[0],this.optionSelectors[0]))};
_.u.shouldShowMarkAnswerTooltip=function(){if(this.isMarkAnswerTooltipShown||this.quizOptions.length<=1)return!1;for(var I=0,C=_.T(this.quizOptions),y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;((k=y.optionText)==null?void 0:k.trim())!==""&&I++;if(y.isCorrect)return!1}return I<2?!1:!0};
_.u.resetQuizOptions=function(){this.quizOptions=this.createQuizOptions(this.editorInfo);this.isMarkAnswerTooltipShown=!1};
_.u.createQuizOption=function(){return{optionText:"",placeholderText:"",explanationText:"",isCorrect:!1}};
_.u.updateOptionTextFromBinding=function(I){if(I.target){var C=Array.from(_.f(this.hostElement).querySelectorAll("tp-yt-iron-autogrow-textarea.quiz-option-input-input")).indexOf(I.target);if(C>=0){var y;this.quizOptions[C].optionText=(y=I.detail.value)!=null?y:""}}};
_.H1.Object.defineProperties(vo.prototype,{addAnswerButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.editorInfo)==null?void 0:(C=I.addOptionButton)==null?void 0:C.buttonRenderer;y&&(y.style="STYLE_SUGGESTIVE",y.size="SIZE_SMALL",y.isDisabled=!this.isAllowedToAddOption);return(y==null?0:y.text)?y:void 0}},
isAllowedToAddOption:{configurable:!0,enumerable:!0,get:function(){var I,C;return this.quizOptions.length<((C=(I=this.editorInfo)==null?void 0:I.maxQuizOptions)!=null?C:0)}},
hasCustomOptionText:{configurable:!0,enumerable:!0,get:function(){return this.quizOptions.some(function(I){var C;return(C=I.optionText)==null?void 0:C.trim()})}}});
vo.prototype.updatePlaceholderTexts=vo.prototype.updatePlaceholderTexts;vo.prototype.dataChanged=vo.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],vo.prototype,"editorInfo",void 0);_.E([_.d(),_.h("design:type",Array)],vo.prototype,"quizOptions",void 0);_.E([_.d(),_.h("design:type",Object)],vo.prototype,"explanationPlaceholderText",void 0);_.E([_.T$(".option-selector-button"),_.h("design:type",Array)],vo.prototype,"optionSelectors",void 0);
_.E([_.rW("editorInfo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vo.prototype,"dataChanged",null);_.E([_.v("editorInfo","isAllowedToAddOption","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"addAnswerButton",null);_.E([_.v("editorInfo","quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"isAllowedToAddOption",null);
_.E([_.rW("quizOptions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vo.prototype,"updatePlaceholderTexts",null);_.E([_.v("quizOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],vo.prototype,"hasCustomOptionText",null);vo=_.E([_.m({is:"ytd-backstage-quiz-editor-renderer",disableElementRegistration:!0})],vo);
_.Z(vo,"ytd-backstage-quiz-editor-renderer",function(){if(B6q!==void 0)return B6q;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-quiz-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="style-scope ytd-backstage-quiz-editor-renderer">\n  <template is="dom-repeat" items="[[quizOptions]]" index="quizAnswerIndex" class="style-scope ytd-backstage-quiz-editor-renderer">\n    <div class="quiz-option style-scope ytd-backstage-quiz-editor-renderer">\n      <div class="quiz-option-container style-scope ytd-backstage-quiz-editor-renderer">\n        <div class="quiz-thumbnail-container style-scope ytd-backstage-quiz-editor-renderer">\n          <div class="quiz-select-container style-scope ytd-backstage-quiz-editor-renderer">\n            <yt-icon-button class="option-selector-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.markAnswerButton.buttonRenderer.accessibilityData.accessibilityData.label]]" on-click="onMarkCorrectAnswer">\n              <yt-icon class="option-selector style-scope ytd-backstage-quiz-editor-renderer" hidden="[[item.isCorrect]]" icon="yt-icons:radio-button-unchecked">\n              </yt-icon>\n              <yt-icon class="option-selector-correct style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" default-to-filled="true" icon="yt-icons:check-circle">\n              </yt-icon>\n            </yt-icon-button>\n          </div>\n        </div>\n        <tp-yt-paper-input-container class="quiz-option-input style-scope ytd-backstage-quiz-editor-renderer" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-option-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizOptionChars]]" no-label-float="" placeholder$="[[item.placeholderText]]" value="[[item.optionText]]" on-input="onInput" on-keyup="updateHintRenderer" on-value-changed="updateOptionTextFromBinding">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="option-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n        <yt-icon-button class="remove-button style-scope ytd-backstage-quiz-editor-renderer" aria-label="[[editorInfo.removeOptionButtonA11yText.accessibilityData.label]]" on-click="onRemoveQuizOption">\n          <yt-icon class="remove-option style-scope ytd-backstage-quiz-editor-renderer" icon="yt-icons:delete"></yt-icon>\n        </yt-icon-button>\n      </div>\n      <div class="quiz-explanation style-scope ytd-backstage-quiz-editor-renderer">\n        <tp-yt-paper-input-container class="quiz-explanation-input style-scope ytd-backstage-quiz-editor-renderer" hidden="[[!item.isCorrect]]" no-label-float="">\n          <tp-yt-iron-autogrow-textarea class="quiz-explanation-input-input paper-input-input style-scope ytd-backstage-quiz-editor-renderer" slot="input" maxlength$="[[editorInfo.maxQuizExplanationChars]]" no-label-float="" placeholder$="[[explanationPlaceholderText]]" value="{{item.explanationText}}" on-input="onExplanationInput">\n          </tp-yt-iron-autogrow-textarea>\n          <tp-yt-paper-input-char-counter class="explanation-counter style-scope ytd-backstage-quiz-editor-renderer" slot="add-on">\n          </tp-yt-paper-input-char-counter>\n        </tp-yt-paper-input-container>\n      </div>\n    </div>\n  </template>\n</div>\n<div class="button-container style-scope ytd-backstage-quiz-editor-renderer">\n  <yt-button-renderer class="add-answer style-scope ytd-backstage-quiz-editor-renderer" data="[[addAnswerButton]]" hidden="[[!isAllowedToAddOption]]" on-click="onAddQuizOption">\n  </yt-button-renderer>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return B6q=I},{mode:2});var EPw;var haw=(Vm.FIRSTDAYOFWEEK+1)%7;var Uvu;var HG5=[],t6w=0,JVw=0;t6w=0;JVw=24;if(.25*(JVw-t6w)<0)Uvu=[];else{for(var OG8=t6w;OG8<JVw;OG8+=.25)HG5.push(OG8);Uvu=HG5}var aqu=Uvu.map(function(I){I=I*60*60;return{secondsSinceMidnight:I,text:(new Zk(7)).format(new Date(0,0,0,0,0,I))}});var M6e;var Wo=function(){var I=_.q.apply(this,arguments)||this;I.skipNextOpenDialog=!1;I.errorMessage="";return I};
_.R(Wo,_.q);_.u=Wo.prototype;_.u.attached=function(){var I=this,C=new MutationObserver(function(){I.JSC$13473_calendarMain.scrollHeight>0&&(C.disconnect(),I.calendarConfig&&I.calendarConfig.selectedDate&&I.scrollToDate())});
C.observe(this.JSC$13473_calendarMain,{childList:!0,subtree:!0});window.setTimeout(function(){C.disconnect()},1E3)};
_.u.openPicker=function(){this.skipNextOpenDialog?this.skipNextOpenDialog=!1:(this.dialog.positionTarget=this.dropdownButton,this.dialog.open())};
_.u.onDateTextChange=function(){if(this.calendarConfig){var I=this.validateDateText();I.isValid?(this.textbox.removeAttribute("invalid"),this.commitDate(I.details)):this.textbox.setAttribute("invalid","")}};
_.u.handleDayClick=function(I){I.model.day.date&&(this.commitDate(I.model.day.date),this.dialog.close())};
_.u.scrollToDate=function(){if(this.calendarConfig&&this.calendarConfig.selectedDate&&this.renderData){var I=OkI(this.calendarConfig.selectedDate,this.renderData);I!==void 0&&this.JSC$13473_calendarMain.scrollToIndex(I)}};
_.u.scrollToNextMonth=function(){this.JSC$13473_calendarMain.scrollToIndex(this.JSC$13473_calendarMain.firstVisibleIndex+1)};
_.u.scrollToPrevMonth=function(){this.JSC$13473_calendarMain.firstVisibleIndex===0&&this.JSC$13473_calendarMain.scrollTo(0,0);this.JSC$13473_calendarMain.scrollToIndex(this.JSC$13473_calendarMain.firstVisibleIndex-1)};
_.u.onFormSubmit=function(I){I.preventDefault();this.calendarConfig&&(I=this.validateDateText(),I.isValid&&(this.commitDate(I.details),this.dialog.close()))};
_.u.onEscOrClickingOutside=function(I){I=I.detail.path&&!!I.detail.path.length&&I.detail.path[0];if(I.classList.contains("ytd-calendar-date-picker")){I===this.dropdownButton&&(this.skipNextOpenDialog=!0);for(var C=0;C<this.dropdownButton.children.length;C++)this.dropdownButton.children[C]===I&&(this.skipNextOpenDialog=!0);if(!this.skipNextOpenDialog)return}I=this.textbox.value!==this.dateText;C=this.validateDateText();I&&C.isValid&&this.commitDate(C.details);this.dialog.close();this.textbox.value=
this.dateText};
_.u.commitDate=function(I){this.calendarConfig&&(this.set("calendarConfig.selectedDate",I),_.k3(this.hostElement,"ytd-calendar-date-selected",I))};
_.u.validateDateText=function(){if(!this.calendarConfig||!this.textbox)return{isValid:!1,details:void 0};var I=this.textbox.value;var C=new Date;I=(new PwK(2)).parse(I,C,{validate:!0})===I.length?t5z(C):void 0;if(!I)return this.errorMessage=_.PQ("INVALID_DATE_ERROR"),{isValid:!1,details:void 0};C=this.calendarConfig.start;var y=this.calendarConfig.end;if(BDW(I,C))return this.errorMessage=_.PQ("ENTER_DATE_OR_LATER",{allowed_date:Hkm(C)}),{isValid:!1,details:void 0};if(BDW(y,I))return this.errorMessage=
_.PQ("ENTER_DATE_OR_EARLIER",{allowed_date:Hkm(y)}),{isValid:!1,details:void 0};this.errorMessage="";return{isValid:!0,details:I}};
_.H1.Object.defineProperties(Wo.prototype,{dateText:{configurable:!0,enumerable:!0,get:function(){return this.calendarConfig&&this.calendarConfig.selectedDate?Hkm(this.calendarConfig.selectedDate):""}},
renderData:{configurable:!0,enumerable:!0,get:function(){if(this.calendarConfig){for(var I=this.calendarConfig,C=[],y=0;y<7;y++)C.push(Vm.NARROWWEEKDAYS[(y+haw)%7]);y=[];for(var k=new Date(I.start.year,I.start.month);k.getFullYear()<I.end.year||k.getFullYear()===I.end.year&&k.getMonth()<=I.end.month;){var F=y,z=F.push,c=k.getFullYear(),r=k.getMonth(),w=I,L=void 0,D=[],p=Object.freeze({extraCssClass:"invisible",debugClass:""}),Q=new Date(c,r),X=t5z(Q);Q=Q.getDay();for(var b=t5z(new Date);X.month===
r;){Q!==haw&&L||(L=Array.from({length:7}).fill(p),D.push(L));var S={date:{year:c,month:r,day:X.day},extraCssClass:"",debugClass:""};w.selectedDate&&S.date&&ZkI(S.date,w.selectedDate)&&(S.extraCssClass+=" selected");if(BDW(X,w.start)||BDW(w.end,X))S.extraCssClass+=" disabled";ZkI(X,b)&&(S.extraCssClass+=" today");S.extraCssClass=S.extraCssClass.trim();L[(Q-haw+7)%7]=S;X=hN9(X);Q=(Q+1)%7}z.call(F,{weeks:D,monthLabel:Vm.SHORTMONTHS[r]+" "+c,year:c,month:r,monthLabelExtraCssClass:D[0][2]===p?"shift-down-label":
""});k.setMonth(k.getMonth()+1)}return{months:y,daysOfWeekLabel:C}}}}});
Wo.prototype.onEscOrClickingOutside=Wo.prototype.onEscOrClickingOutside;Wo.prototype.scrollToDate=Wo.prototype.scrollToDate;_.E([_.d(),_.h("design:type",Object)],Wo.prototype,"calendarConfig",void 0);_.E([_.d(),_.h("design:type",Object)],Wo.prototype,"skipNextOpenDialog",void 0);_.E([_.d(),_.h("design:type",Object)],Wo.prototype,"errorMessage",void 0);_.E([_.z$("#textbox"),_.h("design:type",HTMLInputElement)],Wo.prototype,"textbox",void 0);
_.E([_.z$("#calendar-dialog"),_.h("design:type",Object)],Wo.prototype,"dialog",void 0);_.E([_.z$("#calendar-main"),_.h("design:type",Object)],Wo.prototype,"JSC$13473_calendarMain",void 0);_.E([_.z$("#date-picker"),_.h("design:type",HTMLElement)],Wo.prototype,"dropdownButton",void 0);_.E([_.v("calendarConfig.selectedDate"),_.h("design:type",String),_.h("design:paramtypes",[])],Wo.prototype,"dateText",null);
_.E([_.v("calendarConfig","calendarConfig.selectedDate"),_.h("design:type",Object),_.h("design:paramtypes",[])],Wo.prototype,"renderData",null);_.E([_.FI("renderData","calendarConfig.selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wo.prototype,"scrollToDate",null);_.E([_.km("iron-overlay-canceled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Wo.prototype,"onEscOrClickingOutside",null);
Wo=_.E([_.lT({disableElementRegistration:!0,is:"ytd-calendar-date-picker",noInjection:!0})],Wo);
_.Z(Wo,"ytd-calendar-date-picker",function(){if(M6e!==void 0)return M6e;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-calendar-date-picker--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-menu-button class="style-scope ytd-calendar-date-picker">\n  <tp-yt-paper-button id="date-picker" class="dropdown-trigger style-scope ytd-calendar-date-picker" slot="dropdown-trigger" aria-labelledby="date-label-text" on-tap="openPicker">\n    <div id="date-label-text" class="style-scope ytd-calendar-date-picker">[[dateText]]</div>\n    <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-calendar-date-picker">\n    </yt-icon>\n  </tp-yt-paper-button>\n</tp-yt-paper-menu-button>\n\n<tp-yt-paper-dialog id="calendar-dialog" dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-calendar-date-picker">\n  <div id="control-area" class="style-scope ytd-calendar-date-picker">\n    <form id="date-input" on-submit="onFormSubmit" autocomplete="off" class="style-scope ytd-calendar-date-picker">\n      <tp-yt-paper-input-container aria-label="Enter date" invalid="[[errorMessage]]" no-label-float="" use-v2-underline="" on-input="onDateTextChange" class="style-scope ytd-calendar-date-picker">\n        <tp-yt-iron-input slot="input" bind-value="[[dateText]]" class="style-scope ytd-calendar-date-picker">\n          <input id="textbox" autofocus="" class="style-scope ytd-calendar-date-picker"></tp-yt-iron-input>\n        <tp-yt-paper-input-error slot="add-on" class="style-scope ytd-calendar-date-picker">[[errorMessage]]</tp-yt-paper-input-error>\n      </tp-yt-paper-input-container>\n    </form>\n    <div id="month-controller" class="style-scope ytd-calendar-date-picker">\n      <yt-icon-button id="prev-month" on-tap="scrollToPrevMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n      <yt-icon-button id="next-month" on-tap="scrollToNextMonth" class="style-scope ytd-calendar-date-picker">\n        <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-calendar-date-picker"></yt-icon>\n      </yt-icon-button>\n    </div>\n  </div>\n  <div class="calendar-container style-scope ytd-calendar-date-picker">\n    <div class="calendar-header style-scope ytd-calendar-date-picker">\n      <template is="dom-repeat" items="[[renderData.daysOfWeekLabel]]" as="dayLabel" class="style-scope ytd-calendar-date-picker">\n        <span class="calendar-header-day style-scope ytd-calendar-date-picker">[[dayLabel]]</span>\n      </template>\n    </div>\n    <tp-yt-iron-list id="calendar-main" as="month" items="[[renderData.months]]" tabindex="-1" class="style-scope ytd-calendar-date-picker">\n      <template class="style-scope ytd-calendar-date-picker">\n        <div class="calendar-month style-scope ytd-calendar-date-picker">\n          <div class$="calendar-month-label [[month.monthLabelExtraCssClass]] style-scope ytd-calendar-date-picker">\n            [[month.monthLabel]]\n          </div>\n          <template is="dom-repeat" items="[[month.weeks]]" as="week" class="style-scope ytd-calendar-date-picker">\n            <div class="calendar-week style-scope ytd-calendar-date-picker">\n              <template is="dom-repeat" items="[[week]]" as="day" class="style-scope ytd-calendar-date-picker">\n                <span class$="calendar-day [[day.extraCssClass]] [[day.debugClass]] style-scope ytd-calendar-date-picker" on-tap="handleDayClick">\n                  [[day.date.day]]\n                </span>\n              </template> \n            </div>\n          </template> \n        </div>\n      </template>\n    </tp-yt-iron-list> \n  </div>\n</tp-yt-paper-dialog>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return M6e=I},{mode:2});var IKu=_.PQ("UTC_OFFSET_FORMAT",{utc_offset:(new Zk("Z")).format(new Date)}),Cdd=(new Date).getTimezoneOffset()*-60,syS=new Date,oi8,yRY=mj(syS.getTimezoneOffset());oi8=NUe(j_e(yRY,syS));var kHS=_.PQ("LOCAL_TIME_GMT_LABEL",{gmt_text:oi8.replace("+0","+").replace("-0","-").replace(":00","")}),Bo=function(){var I=_.q.apply(this,arguments)||this;I.selectedTimeIndex=0;I.selectedTimezoneIndex=0;I.timeOfDayOptions=aqu;return I};
_.R(Bo,_.q);_.u=Bo.prototype;_.u.configureRendererStamper=function(){return{"data.dismissButton":{id:"cancel-button-wrapper",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.updateDefaultSelectedValue=function(){if(this.timeZones&&this.timeZones.length&&this.data){var I=UZm();if(this.data.defaultTimeSec===void 0||isNaN(Number(this.data.defaultTimeSec)))this.calendarConfig=I,this.selectedTimeIndex=0;else{var C=JB9(Number(this.data.defaultTimeSec),this.timeZones[0]);this.calendarConfig=Object.assign({},I,{selectedDate:C.date});this.selectedTimeIndex=this.timeOfDayOptions.findIndex(function(y){return y.secondsSinceMidnight===C.secondsSinceMidnight})}this.selectedTimezoneIndex=
0;
this.selectedDate=this.calendarConfig.selectedDate}};
_.u.onDatePicked=function(I){this.selectedDate=I.detail};
_.u.onCancelButtonTap=function(){this.data&&this.data.dismissButton&&_.k3(this.hostElement,"ytd-date-time-selection-cancelled")};
_.u.onDateTimeTimezoneChange=function(){if(this.selectedTimezone&&this.selectedTime&&this.selectedDate){var I=this.selectedDate;I=new Date(I.year,I.month,I.day);_.k3(this.hostElement,"ytd-date-time-selection-update",Math.floor(I.getTime()/1E3)+this.selectedTime.secondsSinceMidnight-(Number(this.selectedTimezone.utcOffsetSec)+I.getTimezoneOffset()*60))}};
_.u.getTimezoneFormat=function(I){return I.localizedDisplayText?I.localizedDisplayText:_.PQ("TIMEZONE_FORMAT",{utc_offset_text:""+I.localizedUtcOffset,city_name:""+I.localizedName})};
_.u.updateSelectedTimeIndexFromBinding=function(I){this.selectedTimeIndex=I.detail.value};
_.u.updateSelectedTimezoneIndexFromBinding=function(I){this.selectedTimezoneIndex=I.detail.value};
_.H1.Object.defineProperties(Bo.prototype,{timeZones:{configurable:!0,enumerable:!0,get:function(){if(this.data){var I=this.data.timezoneOptions;var C={name:"Etc/Unknown",localizedName:_.PQ("LOCAL_TIME_LABEL"),localizedUtcOffset:IKu,utcOffsetSec:""+Cdd,localizedDisplayText:kHS};I?I.length&&I[0].name!==C.name&&(I[0].localizedDisplayText||(C.localizedDisplayText=""),I.unshift(C)):I=[C];return I}}},
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]}}});
Bo.prototype.onDateTimeTimezoneChange=Bo.prototype.onDateTimeTimezoneChange;Bo.prototype.onDatePicked=Bo.prototype.onDatePicked;Bo.prototype.updateDefaultSelectedValue=Bo.prototype.updateDefaultSelectedValue;_.E([_.d(),_.h("design:type",Object)],Bo.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Bo.prototype,"calendarConfig",void 0);_.E([_.d(),_.h("design:type",Object)],Bo.prototype,"selectedDate",void 0);_.E([_.d(),_.h("design:type",Object)],Bo.prototype,"selectedTimeIndex",void 0);
_.E([_.d(),_.h("design:type",Object)],Bo.prototype,"selectedTimezoneIndex",void 0);_.E([_.z$("#time-listbox"),_.h("design:type",Object)],Bo.prototype,"timeListBox",void 0);_.E([_.z$("#timezone-listbox"),_.h("design:type",Object)],Bo.prototype,"timezoneListBox",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Bo.prototype,"rendererStamperBehavior",void 0);_.E([_.v("data.timezoneOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],Bo.prototype,"timeZones",null);
_.E([_.rW("data","timeZones"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"updateDefaultSelectedValue",null);_.E([_.v("selectedTimezoneIndex","timeZones"),_.h("design:type",Object),_.h("design:paramtypes",[])],Bo.prototype,"selectedTimezone",null);_.E([_.v("selectedTimeIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Bo.prototype,"selectedTime",null);
_.E([_.km("ytd-calendar-date-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Bo.prototype,"onDatePicked",null);_.E([_.FI("selectedTimezone","selectedTime","selectedDate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bo.prototype,"onDateTimeTimezoneChange",null);Bo=_.E([_.m({disableElementRegistration:!0,is:"ytd-date-time-picker-renderer"})],Bo);
_.Z(Bo,"ytd-date-time-picker-renderer",function(){if(EPw!==void 0)return EPw;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-date-time-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="cancel-button-wrapper" hidden="[[!data.dismissButton]]" on-tap="onCancelButtonTap" class="style-scope ytd-date-time-picker-renderer">\n</div>\n<div id="hint" hidden="[[!data.header]]" class="style-scope ytd-date-time-picker-renderer">\n  <yt-formatted-string text="[[data.header]]" class="style-scope ytd-date-time-picker-renderer"></yt-formatted-string>\n</div>\n<div id="picker-component" class="style-scope ytd-date-time-picker-renderer">\n  <ytd-calendar-date-picker calendar-config="[[calendarConfig]]" class="style-scope ytd-date-time-picker-renderer"></ytd-calendar-date-picker>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="time-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="time-label-text">\n      <div id="time-label-text" class="style-scope ytd-date-time-picker-renderer">[[selectedTime.text]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="time-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimeIndex]]" on-selected-changed="updateSelectedTimeIndexFromBinding">\n      <template is="dom-repeat" items="[[timeOfDayOptions]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[item.text]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <tp-yt-paper-menu-button dynamic-align="" horizontal-align="left" vertical-align="top" vertical-offset="44" class="style-scope ytd-date-time-picker-renderer">\n    <tp-yt-paper-button id="timezone-picker" class="dropdown-trigger style-scope ytd-date-time-picker-renderer" slot="dropdown-trigger" aria-labelledby="timezone-label-text">\n      <div id="timezone-label-text" class="style-scope ytd-date-time-picker-renderer">[[getTimezoneFormat(selectedTimezone)]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-date-time-picker-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="timezone-listbox" class="dropdown-content style-scope ytd-date-time-picker-renderer" slot="dropdown-content" selected="[[selectedTimezoneIndex]]" on-selected-changed="updateSelectedTimezoneIndexFromBinding">\n      <template is="dom-repeat" items="[[timeZones]]" class="style-scope ytd-date-time-picker-renderer">\n        <tp-yt-paper-item class="style-scope ytd-date-time-picker-renderer">\n          [[getTimezoneFormat(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n</div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return EPw=I},{mode:1});var FJw;var El=function(){var I=_.q.apply(this,arguments)||this;I.boundOnTapDismissButton=function(){I.dismissTapHandler()};
I.dismissButtonOverrides={size:"XS"};return I};
_.R(El,_.q);El.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}}}}}};
El.prototype.dismissTapHandler=function(){_.k3(this.hostElement,"yt-backstage-attachment-dismissed")};
El.prototype.computeAttachmentType=function(I){return I?I.backstageImageRenderer?"image":I.videoRenderer?"video":"none":"none"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],El.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],El.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],El.prototype,"attachmentPreview",void 0);_.E([_.d(),_.h("design:type",Object)],El.prototype,"dismissButton",void 0);_.E([_.d(),_.h("design:type",Object)],El.prototype,"boundOnTapDismissButton",void 0);
_.E([_.d(),_.h("design:type",Object)],El.prototype,"dismissButtonOverrides",void 0);_.E([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAttachmentType(attachmentPreview)"}),_.h("design:type",String)],El.prototype,"attachmentType",void 0);El=_.E([_.m({disableElementRegistration:!0,is:"ytd-backstage-dismissable-attachment"})],El);
_.Z(El,"ytd-backstage-dismissable-attachment",function(){if(FJw!==void 0)return FJw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return FJw=I},{mode:1});var uu0;var hC=function(){var I=_.q.apply(this,arguments)||this;I.selectedVideoId=void 0;I.picker=void 0;I.dismissButtonOverrides={size:"XS"};I.actionMap={"yt-add-video-preview-action":"handleAddVideoPreviewAction"};return I};
_.R(hC,_.q);_.u=hC.prototype;_.u.onServiceRequestCompleted=function(I){I.stopPropagation()};
_.u.handleAddVideoPreviewAction=function(I){I=this.get("addVideoPreviewAction",I);this.onGetVideoPreviewSuccess(I)};
_.u.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}}}}}};
_.u.onLaunchVideoPicker=function(I){var C=this,y=_.hS(this.get("addVideoLinkAction.title",I)),k=this.get("addVideoLinkAction.onePickHostId",I);this.getVideoPreviewCommand=this.get("addVideoLinkAction.onVideoSelectCommand",I);k&&(this.picker||(y=_.QUm(_.iXY(k).setTitle(y).addView(Phd()).addView(nSS()),function(F){C.onPickVideo(F)}),this.get("addVideoLinkAction.hideYourYoutubeVideos",I)||y.addView("youtube"),this.picker=y.build()),this.picker.setVisible(!0))};
_.u.onPickVideo=function(I){if(I)if(I.action==="cancel")_.k3(this.hostElement,"yt-video-link-button-cancel");else if(I.action==="picked"){I=I.docs;if(!I||I.length===0)this.onGetVideoPreviewError("No valid docs in response");this.selectedVideoId=(I=(I==null?0:I.length)?I[0]:void 0)?I.id:void 0;this.setVideoPreview()}};
_.u.setVideoPreview=function(){var I=this;if(this.getVideoPreviewCommand)this.ytComponentBehavior.resolveCommand(this.getVideoPreviewCommand,{form:{video_id:this.selectedVideoId},onError:function(){I.onGetVideoPreviewError("Error executing command")}});
else this.onGetVideoPreviewError("Video preview command not set.")};
_.u.onGetVideoPreviewSuccess=function(I){if(I&&I.videoPreview&&I.cancelButton)this.videoPreview=I.videoPreview,this.cancelButton=I.cancelButton,_.k3(this.hostElement,"yt-video-link-selected",{videoId:this.selectedVideoId});else this.onGetVideoPreviewError("Empty data from ajax")};
_.u.onGetVideoPreviewError=function(){this.cancel()};
_.u.cancel=function(){this.videoPreview=this.cancelButton=this.selectedVideoId=void 0;_.k3(this.hostElement,"yt-video-link-cancel")};
_.u.isValid=function(){return!(!this.videoPreview||!this.selectedVideoId)};
hC.prototype.onServiceRequestCompleted=hC.prototype.onServiceRequestCompleted;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],hC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hC.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],hC.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hC.prototype,"videoPreview",void 0);_.E([_.d(),_.h("design:type",Object)],hC.prototype,"cancelButton",void 0);_.E([_.d(),_.h("design:type",Object)],hC.prototype,"getVideoPreviewCommand",void 0);_.E([_.d(),_.h("design:type",Object)],hC.prototype,"dismissButtonOverrides",void 0);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],hC.prototype,"onServiceRequestCompleted",null);hC=_.E([_.m({disableElementRegistration:!0,is:"ytd-backstage-video-link-attachment"})],hC);
_.Z(hC,"ytd-backstage-video-link-attachment",function(){if(uu0!==void 0)return uu0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uu0=I},{mode:1});var zu8;var TEu;var cR0;var Ul=function(){return _.q.apply(this,arguments)||this};
_.R(Ul,_.q);Ul.prototype.dataChanged=function(){this.active=!1};
Ul.prototype.onTap=function(){_.k3(this.hostElement,"yt-select-emoji-suggestion",this.data)};
Ul.prototype.identity=function(I){return I};
_.H1.Object.defineProperties(Ul.prototype,{imageSrc:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;if((I=this.data)==null?0:(C=I.image)==null?0:(y=C.thumbnails)==null?0:(k=y[0])==null?0:k.url)return I=this.data.image.thumbnails[0].url,I.startsWith("data:image/svg+xml")?FG(I):_.ra(I)}}});
Ul.prototype.dataChanged=Ul.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],Ul.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ul.prototype,"active",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ul.prototype,"dataChanged",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ul.prototype,"imageSrc",null);
Ul=_.E([_.m({disableElementRegistration:!0,is:"ytd-emoji-suggestion"})],Ul);
_.Z(Ul,"ytd-emoji-suggestion",function(){if(cR0!==void 0)return cR0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cR0=I},{mode:1});var euu=/.*([:@#].*?)$/,Ho=function(){var I=_.q.apply(this,arguments)||this;I.suggestions=[];I.suggestionIndex=-1;I.JSC$13501_lastSuggestionRange=null;return I};
_.R(Ho,_.q);_.u=Ho.prototype;_.u.configureRendererStamper=function(){return{suggestions:{id:"dropdown-content",mapping:{suggestion:"ytd-emoji-suggestion"},reuseComponents:!0}}};
_.u.getSuggestions=function(I){var C=[],y=Aym(this.emojiManager,I.substr(0,3));if(y)for(var k in y)if(k.toLocaleLowerCase().indexOf(I)===0){var F=y[k];if(F&&F.emojiId){F=XN(this.emojiManager,F.emojiId);var z=void 0,c=void 0,r=void 0,w=void 0,L=((z=F)==null?0:z.isCustomEmoji)?(c=F)==null?void 0:(r=c.shortcuts)==null?void 0:r[0]:(w=F)==null?void 0:w.emojiId;z=void 0;C.push({suggestion:{image:(z=F)==null?void 0:z.image,alt:L,text:k}});if(C.length>=64)break}}return C?C.sort(function(D,p){return p.suggestion.text<
D.suggestion.text?-1:p.suggestion.text===D.suggestion.text?0:1}):null};
_.u.insertSuggestion=function(I){_.k3(this.hostElement,"yt-insert-suggestion",{range:this.JSC$13501_lastSuggestionRange,text:I.alt});this.dropdown.opened=!1};
_.u.updateSuggestionsAtCaret=function(I){this.updateSuggestions(I,this.retrieveTextBeforeRange(I))};
_.u.offsetStartOfRangeBy=function(I,C){I.startOffset>=C&&I.setStart(I.startContainer,I.startOffset-C)};
_.u.updateSuggestions=function(I,C){var y=this;this.JSC$13501_lastSuggestionRange&&(this.JSC$13501_lastSuggestionRange.detach(),this.JSC$13501_lastSuggestionRange=null);if((C=euu.exec(C))&&C.length&&(C=C[C.length-1].toLocaleLowerCase(),C.length>2||C===":_")&&(this.offsetStartOfRangeBy(I,C.length),this.JSC$13501_lastSuggestionRange=I,(I=this.getSuggestions(C))&&I.length)){this.suggestions=I;_.hn(this,function(){y.dropdownContent.scrollTop=16777216});
this.dropdown.opened?this.dropdown.notifyResize():this.dropdown.opened=!0;this.suggestionIndex=-1;this.changeSuggestionIndex(I.length-1);return}this.dropdown.opened=!1};
_.u.onKeyDown=function(I){if(this.dropdown.opened)switch(I.key){case "Escape":this.dropdown.opened=!1;I.stopPropagation();break;case "Tab":this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion);I.preventDefault();break;case "ArrowUp":this.changeSuggestionIndex(this.suggestionIndex-1);I.preventDefault();break;case "ArrowDown":this.changeSuggestionIndex(this.suggestionIndex+1),I.preventDefault()}};
_.u.onKeyUp=function(I,C){switch(I.key){case "ArrowLeft":case "ArrowRight":this.updateSuggestionsAtCaret(C);break;case "ArrowUp":case "ArrowDown":this.dropdown.opened||this.updateSuggestionsAtCaret(C)}};
_.u.onKeyPress=function(I){I.key==="Enter"&&this.dropdown.opened&&(this.insertSuggestion(this.suggestions[this.suggestionIndex].suggestion),I.preventDefault())};
_.u.changeSuggestionIndex=function(I){this.dropdown.opened&&(this.suggestionIndex>=0&&this.suggestionIndex<this.dropdownContent.children.length&&(this.dropdownContent.children[this.suggestionIndex].active=!1),this.suggestionIndex=(I+this.suggestions.length)%this.suggestions.length,I=this.dropdownContent.children[this.suggestionIndex],I.active=!0,this.dropdownContent.scrollTop=I.offsetTop)};
_.u.retrieveTextBeforeRange=function(I){var C=I.startContainer;return C&&C.nodeType===Node.TEXT_NODE?C.textContent.substr(0,I.startOffset):""};
Ho.prototype.onKeyPress=Ho.prototype.onKeyPress;Ho.prototype.onKeyUp=Ho.prototype.onKeyUp;Ho.prototype.onKeyDown=Ho.prototype.onKeyDown;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ho.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Array)],Ho.prototype,"suggestions",void 0);_.E([_.d(),_.h("design:type",_.jD)],Ho.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Number)],Ho.prototype,"verticalSuggestionsOffset",void 0);
_.E([_.z$("#dropdown"),_.h("design:type",Object)],Ho.prototype,"dropdown",void 0);_.E([_.z$("#dropdown-content"),_.h("design:type",HTMLDivElement)],Ho.prototype,"dropdownContent",void 0);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],Ho.prototype,"onKeyDown",null);_.E([_.km("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent,Range]),_.h("design:returntype")],Ho.prototype,"onKeyUp",null);
_.E([_.km("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],Ho.prototype,"onKeyPress",null);Ho=_.E([_.m({disableElementRegistration:!0,is:"ytd-emoji-input"})],Ho);
_.Z(Ho,"ytd-emoji-input",function(){if(TEu!==void 0)return TEu;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TEu=I},{mode:2});var rRc;var tC=function(){var I=_.q.apply(this,arguments)||this;I.hasMaxOptions=!1;return I};
_.R(tC,_.q);_.u=tC.prototype;_.u.configureRendererStamper=function(){return{"data.addOptionButton":{id:"add-option",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.dataChanged=function(){this.pollOptions=this.setPollOptions(this.data)};
_.u.setPrefilledChoices=function(I){var C=this;this.set("pollOptions",[]);var y;for(y=0;y<Math.min(I.length,this.data.maxPollOptions);y++)this.push("pollOptions",I[y].substring(0,this.data.maxPollOptionChars));for(;y<this.data.minPollOptions;y++)this.push("pollOptions","");this.hasMaxOptions=y>=this.data.maxPollOptions;_.hn(this,function(){for(var k=C.pollOptions,F=_.f(C.hostElement).querySelectorAll(".poll-option-input"),z=0;z<F.length;z++)F[z].value=k[z]})};
_.u.focusChanged=function(){_.CK(this.hostElement)};
_.u.onInput=function(){var I=this;_.KK(this,"onInput",function(){I.isValid()?_.k3(I.hostElement,"yt-commentbox-post-enable"):_.k3(I.hostElement,"yt-commentbox-post-disable")},300)};
_.u.setPollOptions=function(){var I=[],C,y=((C=this.data)==null?0:C.minPollOptions)?this.data.minPollOptions:0;for(C=0;C<y;C++)I.push("");return I};
_.u.addPollOption=function(){var I=this;_.k3(this.hostElement,"yt-commentbox-post-disable");this.push("pollOptions","");this.data.maxPollOptions&&this.pollOptions.length===this.data.maxPollOptions&&(this.hasMaxOptions=!0);_.b$.addLowPriorityJob(function(){var C;(C=_.f(I.hostElement).querySelector(".poll-option:last-of-type > .poll-option-input"))==null||C.focus()})};
_.u.onRemovePollOption=function(I){this.setPollOptionsFromInputs();this.data.minPollOptions&&this.pollOptions.length===this.data.minPollOptions?(this.clearPollOptions(),_.k3(this.hostElement,"yt-poll-attachment-dismiss")):(I=this.repeat.indexForElement(I.target.parentNode),I!==null&&(this.splice("pollOptions",I,1),this.hasMaxOptions=!1,this.areAllOptionsValid()&&(this.repeat.render(),_.k3(this.hostElement,"yt-commentbox-post-enable"))))};
_.u.isValid=function(){this.setPollOptionsFromInputs();return this.areAllOptionsValid()};
_.u.areAllOptionsValid=function(){if(this.data.minPollOptionChars)for(var I=0,C=this.pollOptions.length;I<C;I++)if(this.pollOptions[I].length<Number(this.data.minPollOptionChars))return!1;return!0};
_.u.getPollOptions=function(){return this.pollOptions};
_.u.setPollOptionsFromInputs=function(){for(var I=_.f(this.hostElement).querySelectorAll(".poll-option-input"),C=0;C<I.length;C++)this.pollOptions[C]=I[C].value.trim()};
_.u.clearPollOptions=function(){var I=_.f(this.hostElement).querySelectorAll(".poll-option-input");I=_.T(I);for(var C=I.next();!C.done;C=I.next())C.value.value="";this.pollOptions=this.setPollOptions(this.data);this.hasMaxOptions=!1};
_.u.getSimpleString=function(I){return _.hS(I)};
_.u.updateValueFromBinding=function(I){if(I.target&&this.pollOptions){var C=Array.from(_.f(this.hostElement).querySelectorAll("tp-yt-paper-input.poll-option-input")).indexOf(I.target);if(C>=0){var y;this.pollOptions[C]=(y=I.detail.value)!=null?y:"";this.notifyPath("pollOptions."+C)}}};
tC.prototype.dataChanged=tC.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],tC.prototype,"pollOptions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],tC.prototype,"hasMaxOptions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],tC.prototype,"enableCreationBox",void 0);
_.E([_.z$("#repeat"),_.h("design:type",QG)],tC.prototype,"repeat",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tC.prototype,"dataChanged",null);tC=_.E([_.m({disableElementRegistration:!0,is:"ytd-poll-attachment"})],tC);
_.Z(tC,"ytd-poll-attachment",function(){if(rRc!==void 0)return rRc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rRc=I},{mode:2});var iT8;var w_b;var ni5;var Pdm;var JC=function(){return _.q.apply(this,arguments)||this};
_.R(JC,_.q);_.H1.Object.defineProperties(JC.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){return this.focused?"true":null}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JC.prototype,"rendererBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],JC.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],JC.prototype,"focused",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("focused"),_.h("design:type",Object),_.h("design:paramtypes",[])],JC.prototype,"ariaSelected",null);JC=_.E([_.lT({is:"yt-user-mention-suggestion-renderer",disableElementRegistration:!0})],JC);
_.Z(JC,"yt-user-mention-suggestion-renderer",function(){if(Pdm===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;ni5===void 0&&(ni5=document.createElement("template"));var k=ni5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Pdm=I}I=Pdm;return I},{mode:2});var LJb;var D_w;var Ol=function(){var I=_.q.apply(this,arguments)||this;I.focusedSuggestionIndex=-1;return I};
_.R(Ol,_.q);_.u=Ol.prototype;_.u.created=function(){this.ytRendererBehavior.monitorScroll=!0};
_.u.clearFocusedSuggestion=function(){this.focusedSuggestionIndex=-1;this._setFocusedSuggestionId(void 0)};
_.u.setFocusedSuggestionIndex=function(I){!this.data||!this.data.suggestions||I<0||I>=this.data.suggestions.length||(this.focusedSuggestionIndex=I,I=this.getSuggestionId(I),this._setFocusedSuggestionId(I))};
_.u.advanceSuggestion=function(I){this.focusedSuggestionIndex===-1||I!==-1&&I!==1||(this.setFocusedSuggestionIndex(this.focusedSuggestionIndex+I),this.ensureSuggestionVisible(this.focusedSuggestionIndex))};
_.u.ensureSuggestionVisible=function(I){I=this.getSuggestionId(I);I=_.f(this.hostElement).querySelector("[id="+I+"]");I!=null&&(I.offsetTop<this.hostElement.scrollTop?I.scrollIntoView(!0):I.offsetTop+I.clientHeight>this.hostElement.scrollTop+this.hostElement.clientHeight&&I.scrollIntoView(!1))};
_.u.getSuggestionId=function(I){return"user-mention-suggestion-"+I};
_.u.onSuggestionTap=function(I){var C=_.l(I.model.item,oUd);this.ytRendererBehavior.logExplicitClick(C);_.k3(this.hostElement,"yt-user-mention-suggestion-selected",{data:C,index:I.model.index})};
_.u.onSuggestionMouseMove=function(I){I.model.index!==this.focusedSuggestionIndex&&this.setFocusedSuggestionIndex(I.model.index)};
_.u.isSuggestionFocused=function(I,C){return I===C};
_.u.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.u.focusedSuggestionIdChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("focused-suggestion-id-changed",this.focusedSuggestionId))};
Ol.prototype.focusedSuggestionIdChangedForBinding=Ol.prototype.focusedSuggestionIdChangedForBinding;Ol.prototype.onDomChange=Ol.prototype.onDomChange;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ol.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ol.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ol.prototype,"focusedSuggestionIndex",void 0);_.E([_.d({readOnly:!0}),_.h("design:type",String)],Ol.prototype,"focusedSuggestionId",void 0);
_.E([_.km("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ol.prototype,"onDomChange",null);_.E([_.FI("focusedSuggestionId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ol.prototype,"focusedSuggestionIdChangedForBinding",null);Ol=_.E([_.lT({is:"yt-user-mention-suggestions-dropdown",disableElementRegistration:!0})],Ol);
_.Z(Ol,"yt-user-mention-suggestions-dropdown",function(){if(D_w===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;LJb===void 0&&(LJb=document.createElement("template"));var k=LJb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);D_w=I}I=D_w;return I},{mode:2});var aO=function(){var I=_.q.apply(this,arguments)||this;I.suggestionsResponse=null;I.activeMention=null;I.selectionChangeListener=I.onSelectionChange.bind(I);I.handlesEnabled=_.V("enable_handles_in_mention_suggest_posts");I.handlesInMentionSuggestionsEnabled=_.V("handles_in_mention_suggest_posts");I.zeroPrefixMentionSuggestionEnabled=_.V("enable_zero_prefix_mention_suggestion_web");I.pendingQuery=null;I.flowNonce=null;return I};
_.R(aO,_.q);_.u=aO.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={up:"focusPreviousSuggestion",down:"focusNextSuggestion","tab enter":"selectFocusedSuggestion",esc:"cancelActiveMention"}};
_.u.attached=function(){document.addEventListener("selectionchange",this.selectionChangeListener)};
_.u.detached=function(){document.removeEventListener("selectionchange",this.selectionChangeListener)};
_.u.hasSuggestions=function(I){return!!(I&&I.suggestions&&I.suggestions.length>0)};
_.u.onInput=function(){var I=this;if(this.suggestionsEndpoint){if(!this.activeMention&&(this.maybeStartSuggest(),!this.zeroPrefixMentionSuggestionEnabled))return;if(this.activeMention){this.updateActiveMention();var C=this.suggestionsResponse!=null&&!this.hasSuggestions(this.suggestionsResponse),y=this.activeMention.JSC$9128_getText().slice(-1)===" ",k=this.activeMention.JSC$9128_getText().slice(-2,-1)===" ",F="@\ufe6b\uff20+\ufe62\uff0b".indexOf(this.activeMention.JSC$9128_getText().slice(-2,-1))>=
0;F=this.zeroPrefixMentionSuggestionEnabled&&F;if(this.activeMention.isCollapsed()||(C||k||F)&&y)this.cancelActiveMention();else{var z=this.activeMention.JSC$9128_getText().substring(1).trim();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_INPUT_TEXT_UPDATED");_.KK(this,"requestSuggestions",function(){I.requestSuggestions(z)},100)}}}};
_.u.onServiceRequestSent=function(I){I.stopPropagation()};
_.u.onServiceRequestCompleted=function(I){I.stopPropagation();I=I.detail.data;I.query&&(!this.pendingQuery||this.pendingQuery!==I.query)||!this.zeroPrefixMentionSuggestionEnabled&&I.query===""||this.zeroPrefixMentionSuggestionEnabled&&this.activeMention==null||(this.pendingQuery=null,this.suggestionsResponse=I,this.hasSuggestions(I)&&this.dropdown.setFocusedSuggestionIndex(0))};
_.u.onServiceRequestError=function(I){I.stopPropagation()};
_.u.onUserMentionSuggestionSelected=function(I){this.selectSuggestion(I.detail.data,I.detail.index)};
_.u.onSelectionChange=function(){if(this.activeMention){var I=_.Ln(),C=this.activeMention.JSC$9128_containsRange(I);I=I&&this.containsHelper(this.dropdown,I.getContainer());C||I||this.cancelActiveMention()}};
_.u.containsHelper=function(I,C){var y;if(((y=window.ShadyDOM)==null?void 0:y.noPatch)===!0)return I.contains(C);for(;C;){if(C===I)return!0;C=C instanceof ShadowRoot?C.host:C.parentNode}return!1};
_.u.maybeStartSuggest=function(){var I=_.Ln();if(I&&I.isCollapsed()){var C=I.JSC$9128_getStartNode(),y=I.JSC$9128_getStartOffset();if(C instanceof Text&&!(y<1)){var k=C.textContent;!(k=k&&k.charAt(y-1))||"@\ufe6b\uff20+\ufe62\uff0b".indexOf(k)<0||(this.activeMention=_.S_(C,y-1,I.JSC$9128_getEndNode(),I.JSC$9128_getEndOffset()),this.flowNonce=YB(16),this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_MENTION_FLOW_STARTED"))}}};
_.u.updateActiveMention=function(){if(this.activeMention){var I=_.Ln();I&&I.isCollapsed()&&(this.activeMention=_.S_(this.activeMention.JSC$9128_getStartNode(),this.activeMention.JSC$9128_getStartOffset(),I.JSC$9128_getEndNode(),I.JSC$9128_getEndOffset()))}};
_.u.requestSuggestions=function(I){if(this.activeMention){var C={suggestions_query:I};this.pendingQuery=I;_.Tg(this.hostElement,[this.suggestionsEndpoint,C])}};
_.u.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()};
_.u.focusPreviousSuggestion=function(I){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(-1),I.preventDefault())};
_.u.focusNextSuggestion=function(I){this.hasSuggestions(this.suggestionsResponse)&&(this.dropdown.advanceSuggestion(1),I.preventDefault())};
_.u.selectFocusedSuggestion=function(I){if(this.hasSuggestions(this.suggestionsResponse)){var C=this.suggestionsResponse.suggestions[this.dropdown.focusedSuggestionIndex];_.l(C,oUd)&&(this.selectSuggestion(_.l(C,oUd),this.dropdown.focusedSuggestionIndex),I.preventDefault())}};
_.u.selectSuggestion=function(I,C){if(I){var y=this.activeMention;if(y){var k=document.createElement("a");this.handlesInMentionSuggestionsEnabled&&I.handle?_.Ah(k,"\u00a0\u2068@"+I.handle+"\u2069\u00a0"):this.handlesEnabled?_.Ah(k,"\u00a0"+I.displayName+"\u00a0"):_.Ah(k,"\u00a0@"+I.displayName+"\u00a0");pa(k,"/channel/"+I.channelId);k.classList.add("yt-formatted-string","yt-simple-endpoint");k.setAttribute("spellcheck","false");y.isCollapsed()||y.JSC$9128_removeContents();y.insertNode(k,!0);I=document.createTextNode(" ");
k.parentNode.insertBefore(I,k.nextSibling);window.getSelection().collapse(I,1);C={suggestionSelected:{suggestionIndex:C}};if(this.zeroPrefixMentionSuggestionEnabled){var F;C.suggestionSelected.isZeroPrefix=((F=this.suggestionsResponse)==null?void 0:F.query)===""}this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_SUGGESTION_SELECTED",C);this.cancelActiveMention();_.k3(this.hostElement,"yt-mention-inserted")}}};
_.u.getPositionTarget=function(I){return I&&I.getBrowserRangeObject()};
_.u.onDomChange=function(){this.ironDropdown.refit();this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_CONTENT_UPDATED")};
_.u.onFocusedSuggestionIdChanged=function(I){var C=_.VJz(this.hostElement)[0];C&&(I.detail.value?C.setAttribute("aria-activedescendant",I.detail.value):C.removeAttribute("aria-activedescendant"))};
_.u.onDropdownOpened=function(){this.logGELEvent("USER_MENTION_AUTO_COMPLETE_BOX_EVENT_TYPE_BOX_OPENED")};
_.u.logGELEvent=function(I,C){I={eventType:I,flowNonce:this.flowNonce,source:"USER_MENTION_AUTO_COMPLETE_SOURCE_BACKSTAGE_POST"};C&&(I=Object.assign(I,C));_.b2("userMentionAutoCompleteBoxEvent",I)};
aO.prototype.onDomChange=aO.prototype.onDomChange;aO.prototype.onUserMentionSuggestionSelected=aO.prototype.onUserMentionSuggestionSelected;aO.prototype.onServiceRequestError=aO.prototype.onServiceRequestError;aO.prototype.onServiceRequestCompleted=aO.prototype.onServiceRequestCompleted;aO.prototype.onServiceRequestSent=aO.prototype.onServiceRequestSent;aO.prototype.onInput=aO.prototype.onInput;_.E([_.g(_.Ds),_.h("design:type",Object)],aO.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],aO.prototype,"suggestionsEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],aO.prototype,"suggestionsResponse",void 0);_.E([_.d(),_.h("design:type",Object)],aO.prototype,"activeMention",void 0);_.E([_.z$("#dropdown"),_.h("design:type",Object)],aO.prototype,"dropdown",void 0);_.E([_.z$("#iron-dropdown"),_.h("design:type",Object)],aO.prototype,"ironDropdown",void 0);
_.E([_.km("input"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],aO.prototype,"onInput",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aO.prototype,"onServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aO.prototype,"onServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aO.prototype,"onServiceRequestError",null);_.E([_.km("yt-user-mention-suggestion-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aO.prototype,"onUserMentionSuggestionSelected",null);
_.E([_.km("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],aO.prototype,"onDomChange",null);aO=_.E([_.lT({is:"yt-user-mention-autosuggest-input",disableElementRegistration:!0})],aO);
_.Z(aO,"yt-user-mention-autosuggest-input",function(){if(w_b===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;iT8===void 0&&(iT8=document.createElement("template"));var k=iT8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);w_b=I}I=w_b;return I},{mode:2});var Mo=null;
_.pK({is:"ytd-commentbox",_template:function(){if(zu8!==void 0)return zu8;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-commentbox--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<div id="identity-chip" hidden="[[computeHideIdentityChipRenderer_(isLoading, zeroStepChannelCreationRenderer)]]" class="style-scope ytd-commentbox"></div>\n<div id="thumbnail-input-row" class="style-scope ytd-commentbox">\n  <yt-img-shadow id="author-thumbnail" height="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" hidden="[[computeHideAuthorThumbnail_(isLoading, zeroStepChannelCreationRenderer)]]" thumbnail="[[data.authorThumbnail]]" width="[[computeAuthorThumbnailDimension_(isReply, isBackstageComment)]]" class="style-scope ytd-commentbox">\n  </yt-img-shadow>\n  <div id="main" hidden="[[isLoading]]" class="style-scope ytd-commentbox">\n    <div id="divider-line" class="style-scope ytd-commentbox"></div>\n    \n    <div id="creation-box" class$="[[computeCreationBoxClass_(isInputFocus_)]] style-scope ytd-commentbox" hidden="[[hasPollOrQuizRendererInEditDialog_]]">\n      <tp-yt-paper-input-container id="input-container" focused="{{isInputFocus_}}" no-label-float="" use-v2-underline="" class="style-scope ytd-commentbox">\n        <div slot="after-input" class="paper-input-input style-scope ytd-commentbox">\n          <ytd-emoji-input id="emoji" emoji-manager="[[emojiManager]]" vertical-suggestions-offset="[[verticalSuggestionsOffset]]" class="style-scope ytd-commentbox">\n            <yt-user-mention-autosuggest-input slot="input" suggestions-endpoint="[[data.userMentionSuggestionsEndpoint]]" class="style-scope ytd-commentbox">\n              <yt-formatted-string id="contenteditable-textarea" slot="input" enable-content-editable="true" maxlength="10000" override-aria-label="[[getSimpleString(placeholderFormattedText_)]]" plaintext-only="true" required="true" split-lines="1" text="[[data.editableText]]" on-dragenter="preventDefault_" on-dragleave="preventDefault_" on-dragover="preventDefault_" on-drop="plaintextDrop_" on-focus="focus" on-input="onInput_" on-keyup="onKeyUp_" on-paste="onPaste_" class="style-scope ytd-commentbox"></yt-formatted-string>\n            </yt-user-mention-autosuggest-input>\n          </ytd-emoji-input>\n          <div id="external-links-banner" hidden="[[!isExternalLinksBannerDisplayed]]" class="style-scope ytd-commentbox">\n            <yt-formatted-string text="[[data.advancedTierFeatures.externalLinks.verificationBannerMessage]]" class="style-scope ytd-commentbox">\n            </yt-formatted-string>\n            <ytd-button-renderer id="verification-button" data="[[data.advancedTierFeatures.externalLinks.verificationButton.buttonRenderer]]" class="style-scope ytd-commentbox">\n            </ytd-button-renderer>\n          </div>\n        </div>\n        <ytd-backstage-dismissable-attachment id="dismissable-attachment" slot="after-input" attachment-preview="[[prefilledContent_]]" dismiss-button="[[data.attachmentDismissButton]]" hidden="[[computeHideDismissableAttachment_(prefilledAttachment_)]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-dismissable-attachment>\n        <div id="attachment-preview" slot="after-input" class="style-scope ytd-commentbox"></div>\n        <div id="image-select" class="paper-input-input style-scope ytd-commentbox" hidden="[[!hasImage_]]" slot="after-input"></div>\n        <ytd-backstage-video-link-attachment id="video-link-attachment" slot="after-input" hidden="[[!hasVideo_]]" class="style-scope ytd-commentbox">\n        </ytd-backstage-video-link-attachment>\n      </tp-yt-paper-input-container>\n    </div>\n    <ytd-poll-attachment id="poll-attachment" data="[[data.pollEditorInfo]]" hidden="[[!hasPoll_]]" class="style-scope ytd-commentbox">\n    </ytd-poll-attachment>\n    <ytd-backstage-image-poll-editor-renderer id="image-poll-attachment" data="[[data.imagePollEditorRenderer.imagePollEditorRenderer]]" editor-info="[[data.imagePollEditorInfo]]" hidden="[[!hasImagePoll_]]" class="style-scope ytd-commentbox">\n    </ytd-backstage-image-poll-editor-renderer>\n    <ytd-backstage-quiz-editor-renderer id="quiz-attachment" editor-info="[[data.quizEditorInfo]]" hidden="[[!hasQuiz_]]" class="style-scope ytd-commentbox">\n  </ytd-backstage-quiz-editor-renderer>\n    <slot name="repost-preview" class="style-scope ytd-commentbox"></slot>\n    <div id="poll-preview-edit-dialog" hidden="[[!hasPollOrQuizRendererInEditDialog_]]" class="style-scope ytd-commentbox">\n      <yt-formatted-string text="[[data.editableText]]" class="style-scope ytd-commentbox"></yt-formatted-string>\n      <div id="poll-preview" class="style-scope ytd-commentbox"></div>\n    </div>\n    <div id="footer" class="style-scope ytd-commentbox">\n      <span id="emoji-button" on-tap="onEmojiButtonTap_" hidden="[[!isEmojiButtonDisplayed]]" class="style-scope ytd-commentbox"></span>\n      <div id="attachments" hidden="[[computeHideAttachmentButtons_(data, addedAttachment, prefilledAttachment_, errorMessage_)]]" class="style-scope ytd-commentbox">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-commentbox">\n          <ytd-button-renderer id="[[buttonId]]" data="[[getButtonRenderer(data, buttonId)]]" class="style-scope ytd-commentbox">\n          </ytd-button-renderer>\n        </template>\n      </div>\n      <div id="inline-scheduling-panel" hidden="[[!inlineSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n      <div id="footer-text" class="style-scope ytd-commentbox">\n        <yt-formatted-string id="footer-message" class$="[[computeFooterMessageClass_(alertMessage_, errorMessage_)]] style-scope ytd-commentbox" hidden="[[computeFooterMessageHidden_(alertMessage_, errorMessage_)]]" text="[[computeFooterMessage_(alertMessage_, errorMessage_)]]">\n        </yt-formatted-string>\n        <yt-formatted-string id="zero-step-footer-text" hidden="[[!zeroStepChannelCreationRenderer.footerText]]" text="[[zeroStepChannelCreationRenderer.footerText]]" class="style-scope ytd-commentbox">\n        </yt-formatted-string>\n      </div>\n      <div id="access-restrictions-selector" class="style-scope ytd-commentbox"></div>\n      <span id="char-count" hidden="[[!charLimit_]]" class="style-scope ytd-commentbox">[[charCount_]]/[[charLimit_]]</span>\n      <div id="buttons" class$="[[computeSubmitButtonClass_(dropdownSchedulePanel_, data.postOptionsMenu)]] style-scope ytd-commentbox">\n        <ytd-button-renderer id="cancel-button" data="[[data.cancelButton.buttonRenderer]]" on-tap="onCancel_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <ytd-button-renderer id="submit-button" data="[[computeSubmitButton_(data, scheduleButton_)]]" disabled="[[submitButtonDisabled]]" overrides="[[computeSubmitButtonOverride(data, submitButtonDisabled, dropdownSchedulePanel_)]]" on-tap="onSubmit_" class="style-scope ytd-commentbox">\n        </ytd-button-renderer>\n        <div id="option-menu" hidden="[[dropdownSchedulePanel_]]" class="style-scope ytd-commentbox">\n          <ytd-menu-renderer data="[[data.postOptionsMenu.menuRenderer]]" disable-upgrade="[[!data.postOptionsMenu.menuRenderer]]" hidden="[[!data.postOptionsMenu.menuRenderer]]" icon="yt-icons:arrow_drop_down" no-ink-on-dropdown-button="" three-dot-button-override="[[computeThreeDotButtonOverride(submitButtonDisabled)]]" tonal-override="[[modern]]" class="style-scope ytd-commentbox">\n          </ytd-menu-renderer>\n        </div>\n      </div>\n    </div>\n    <div id="scheduling-panel" hidden="[[!dropdownSchedulePanel_]]" class="style-scope ytd-commentbox"></div>\n    <div id="emojis" hidden="[[!isEmojiPickerDisplayed]]" class="style-scope ytd-commentbox">\n      <span id="emoji-picker" class="style-scope ytd-commentbox"></span>\n    </div>\n  </div>\n  <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-commentbox"></tp-yt-paper-spinner-lite>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return zu8=I},
behaviors:[_.kfF.YtHostElementBehavior,_.Ds,_.Et.YtActionHandlerBehavior,_.$y.YtComponentBehavior,_.B7.YtRendererstamperBehavior,_.Jgw.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(I,C){return _.cg(I.entities,"aadcGuidelinesStateEntityPayload",C)}},
dismissData_:{type:Object,value:null},commentboxStateKey_:{type:String,value:void 0},commentboxState_:{type:Object,selectorArgs:["commentboxStateKey_"],selector:function(I,C){return _.cg(I.entities,"commentboxStateEntity",C)},
observer:"commentboxStateEntityChanged_"},receivedFocusPreviously_:{type:Boolean,value:!1},isReply:{type:Boolean,value:!1},isBackstageComment:{type:Boolean,computed:"computeIsBackstageComment_(data.avatarSize)",reflectToAttribute:!0},attachmentButtonIds:{type:Object,readOnly:!0,computed:"computeAttachmentButtonIds_()"},isBackstagePost:{type:Boolean,value:!1,reflectToAttribute:!0},serviceEndpoint:{type:Object,readOnly:!0,computed:"computeServiceEndpoint_(data)"},submitButtonDisabled:{type:Boolean,
value:!1},attachment:Object,isLoading:{type:Boolean,observer:"isLoadingChanged_"},errorMessage_:{type:Object,value:null},alertMessage_:{type:Object,value:null},imageUploadEndpoint_:{type:Object,computed:"computeImageUploadEndpoint_(data)"},rateLimitErrorCommands:{type:Object,computed:"computeRateLimitErrorCommands_(data)"},addedAttachment:{type:String,value:"none",reflectToAttribute:!0},prefilledAttachment_:{type:String,value:"none",reflectToAttribute:!0},previousText_:String,inlineSchedulePanel_:{type:Object,
computed:"computeInlineSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},dropdownSchedulePanel_:{type:Object,computed:"computeDropdownSchedulingPanel_(data.purpose, data.schedulingDateTimePicker)"},scheduleButton_:Object,zeroStepChannelCreationRenderer:Object,enableCreationBox:{type:Boolean,reflectToAttribute:!0},isInputFocus_:{type:Boolean,observer:"onIsInputFocusChanged_"},hasImage_:{type:Boolean,computed:"computeHasImage_(addedAttachment)"},hasPollOrQuizRendererInEditDialog_:{type:Boolean,
computed:"computeHasPollOrQuizRendererInEditDialog_(data)"},hasVideo_:{type:Boolean,computed:"computeHasVideo_(addedAttachment)"},hasPoll_:{type:Boolean,computed:"computeHasPoll_(addedAttachment)"},hasImagePoll_:{type:Boolean,computed:"computeHasImagePoll_(addedAttachment)"},hasQuiz_:{type:Boolean,computed:"computeHasQuiz_(addedAttachment)"},prefilledContent_:{type:Object,readOnly:!0,computed:"computePrefilledContent_(data)"},editAttachment_:{type:Object,readOnly:!0,computed:"computeEditAttachment_(data)"},
isCreationBox:{type:Boolean,reflectToAttribute:!0,value:!1},isPopupBox:{type:Boolean,reflectToAttribute:!0,value:!1},emojiManager:{type:Object,readOnly:!0,value:function(){return _.$p}},
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:_.V("web_modern_buttons")},swatcheroo:{type:Boolean,reflectToAttribute:!0,value:_.V("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",_.sb(this,this.onTap_));this.emojiInput=this.$.emoji},
isLoadingChanged_:function(I){this.fire(I?"yt-commentbox-loading-start":"yt-commentbox-loading-end")},
dataChanged_:function(I){this.set("submitButtonDisabled",void 0);this.clear();I&&this.computeIsEmojiButtonDisplayed_(I)&&(I=this.$$("#emoji-picker > yt-emoji-picker-renderer"))&&I.updateEmojiCategories()},
observePrefilledImage_:function(I,C,y){this.isValidPrefilledImage_(I,C,y)&&(this.prefilledAttachment_="image",this.prefilledImageData_=C,this.submitButtonDisabled=!1)},
observePrefilledVideo_:function(I,C){this.isValidPrefilledVideo_(I,C)&&(this.prefilledAttachment_="video")},
observePrefilledPoll_:function(I){I&&I.pollData&&I.pollData.choices&&(this.addedAttachment="poll",this.$["poll-attachment"].setPrefilledChoices(I.pollData.choices))},
attached:function(){this.$["input-container"].getElementsByClassName("underline")[0].style.height=0;_.zJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.sb(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(I){I=I.detail;I=I.isCustomEmoji?I.shortcuts[0]:I.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,I);this.maybeUpdateTextDirection_()},
getInputRange_:function(){var I=_.Ln();if(I){I=I.getBrowserRangeObject();for(var C=I.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return I;C=C.parentNode}}I=this.getEditableTextArea_();I=_.f6(I,I.childNodes.length);I.select();return I.getBrowserRangeObject()},
insertTextWithEmojis_:function(I,C,y){(C=this.emojiManager.createDocumentFragment(C,!0,!1,y===void 0?!0:y))&&C.childNodes.length!==0&&(I.collapsed||I.deleteContents(),y=C.lastChild,I.insertNode(C),_.Zxd(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize(),this.submitButtonDisabled=!1)},
onSelectionChange_:function(){var I=_.Ln();if(I){var C=I.JSC$9128_getStartNode(),y=I.JSC$9128_getEndNode();if(a2z(C)&&a2z(y)){var k=I.JSC$9128_getStartOffset(),F;if(_.T6&&C.nodeType===Node.ELEMENT_NODE&&(F=_.RYw(C)))_.f6(F,0).select();else{F=wl(C)?C:_.$F(C,wl);var z=wl(y)?y:_.$F(y,wl);if(F||z)if(I.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){I=!0;k===C.length&&(I=!1);if(Mo==="end"||Mo==="right")I=!1;C=C.parentNode;I=[].concat(_.Py(C.parentNode.childNodes)).indexOf(C)+(I?0:1);_.f6(C.parentNode,I).select()}}else F?
F.previousSibling&&F.previousSibling.length>0?_.S_(y,I.JSC$9128_getEndOffset(),F.previousSibling,F.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),F.parentNode.insertBefore(C,F),_.S_(y,I.JSC$9128_getEndOffset(),C,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.S_(C,I.JSC$9128_getStartOffset(),z.nextSibling,1).select():(y=document.createTextNode("\u200b"),z.parentNode.insertBefore(y,z.nextSibling),_.S_(C,I.JSC$9128_getStartOffset(),y,y.length).select()));Mo=null}}else Mo=
null}else Mo=null},
leftKeyPressed_:function(){Mo="left"},
rightKeyPressed_:function(){Mo="right"},
endKeyPressed_:function(){Mo="end"},
maybeDeleteChip_:function(){var I=yV9(!0);if(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();_.$1(y,C,I,I.childNodes.length).select()}},
maybeBackspaceChip_:function(){var I=yV9(!1);if(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();_.$1(y,C,I,0).select()}},
maybeBackspaceChipWordMode_:function(I){var C=_.Ln();if(C.isCollapsed()){var y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();var k=kjm(y,C,!0);k&&(_.$1(y,C,k,0).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(I){var C=_.Ln();if(C.isCollapsed()){var y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();var k=kjm(y,C,!1);k&&(_.$1(y,C,k,k.childNodes.length).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
onTap_:function(I){if(!I.defaultPrevented&&(I.currentTarget.tagName==="YTD-COMMENTBOX"&&wl(I.target)&&I.preventDefault(),this.isEmojiPickerDisplayed)){var C=this.$$("#emojis"),y=this.$$("#emoji-button"),k=this.getEditableTextArea_();if((I=I.path?I.path:I.composedPath&&I.composedPath())&&!I.includes(C)&&!I.includes(k)&&!I.includes(y))this.onEmojiButtonTap_()}},
isValidPrefilledImage_:function(I,C,y){return I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C!==void 0&&C.encryptedBlobId!==null&&C.sourceExternalVideoId!==null&&y!==void 0&&y.backstageImageRenderer!==null},
isValidPrefilledVideo_:function(I,C){return I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&!!C&&!!C.videoRenderer&&!!C.videoRenderer.videoId},
isValidPrefilledAttachment_:function(I,C,y){return this.isValidPrefilledImage_(I,C,y)||this.isValidPrefilledVideo_(I,y)},
dismissPrefilledContent_:function(){this.prefilledImageData_=void 0;this.prefilledAttachment_="none"},
clear:function(){this.errorMessage_=this.alertMessage_=null;this.taggedVideoId_=void 0;if(_.V("enable_multi_image_post_creation")){var I=this.$$("ytd-backstage-multi-image-select-renderer");I&&I.hasImages()&&I.cancel()}else(I=this.$$("ytd-backstage-image-select-renderer"))&&this.hasImage_&&I.cancel();(I=this.$["poll-attachment"])&&this.hasPoll_&&I.clearPollOptions();(I=this.$["image-poll-attachment"])&&this.hasImagePoll_&&I.resetPollOptions();(I=this.$["quiz-attachment"])&&this.hasQuiz_&&I.resetQuizOptions();
(I=this.$["video-link-attachment"])&&this.hasVideo_&&I.cancel();(I=this.$["access-restrictions-selector"].firstElementChild)&&I.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 _.f(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.f(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(I,C){I=IqW(I,this.emojiManager,C).cloneNode(!0);for(C=I.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var y=_.bB();_.gK5(y,C);C=y.nextSibling;break;case "DIV":(y=C.lastChild)&&C.nextSibling&&_.SZ(_.bB(),y);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.fQ(_.bB(),C);y&&y.nodeName==="BR"&&_.ey(y);y=C;C.hasChildNodes()?(C=C.firstChild,
_.vK0(y)):(C=C.nextSibling,_.ey(y));break;default:C=C.nextSibling}return FSz(I)},
onAddImageError_:function(I){I.stopPropagation();this.errorMessage_=_.Ee(I.detail)},
setTextAreaValue_:function(I){I||(I="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof I==="string"&&(I={runs:[{text:I}]});C.text=I},
focus:function(){this.$["author-thumbnail"].markDirty();this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();Mo=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var I=this.getEditableTextArea_();I&&(_.f6(I,I.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Aq("HTML_DIR")==="rtl"){var I=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";I.setAttribute("dir",C)}},
maybeUpdateExternalLinksBanner_:function(){!this.hasExternalLinksAccess_&&this.computePostHasExternaLink_()?this.isExternalLinksBannerDisplayed=!0:this.isExternalLinksBannerDisplayed=!1},
computePostHasExternaLink_:function(){var I;return OQm((I=this.$["quiz-attachment"])==null?void 0:I.getExplanationText())||OQm(this.getTextAreaValue().trim())},
handleInputEvent_:function(){var I=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(I=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(I,!0);this.updateCharCount_();this.setSubmitButton_();I=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=I.scrollHeight>I.clientHeight,this.maybeUpdateExternalLinksBanner_());this.maybeHeightChanged()},
maybeHeightChanged:function(){var I=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:I})},
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(I){if(this.isEmojiButtonDisplayed)this.onPasteEmoji_(I)},
onPasteEmoji_:function(I){I.preventDefault();I.stopImmediatePropagation();I=I.clipboardData.getData("text/plain");this.insertText_(I,!1,!1)},
insertText_:function(I,C,y){C=C===void 0?!1:C;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&I){var k=this.getInputRange_().cloneRange();this.emojiManager&&k&&(C&&this.emojiInput.offsetStartOfRangeBy(k,I.length),this.insertTextWithEmojis_(k,I,y),M5z(this.getEditableTextArea_().lastChild)||(k=this.getInputRange_().cloneRange()),k&&(this.emojiInput.updateSuggestions(k,I),this.updateSuggestionOffset_(k)))}},
setSubmitButton_:function(){if(this.data){var I=this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT",C=this.data&&this.data.editableText&&this.data.purpose!=="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE";if(I||C){var y=this.getTextAreaValue().trim();C=y===this.previousText_;y=!y||this.aboveCharLimit_;I&&this.data&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(y=this.aboveCharLimit_);this.submitButtonDisabled=
C||y||!this.getTextLength();I&&_.V("enable_post_scheduling")&&(this.submitButtonDisabled=C&&!this.scheduledPublishTimeSec_||y)}else this.submitButtonDisabled=!this.isValidInput_()}},
onSubmitButtonEnable_:function(){this.setSubmitButton_()},
onSubmitButtonDisable_:function(){this.submitButtonDisabled=!0},
getSimpleString:_.hS,computeCreationBoxClass_:function(I){return I?"focused":"not-focused"},
computeFooterMessageClass_:function(I,C){return C?"footer-error-message":"footer-alert-message"},
computeFooterMessage_:function(I,C){return C?C:I},
computeFooterMessageHidden_:function(I,C){return!C&&!I},
computePlaceholderText_:function(I,C,y){return(y==="video"||y==="image")&&(I==null?0:I.prefilledPlaceholderText)?I==null?void 0:I.prefilledPlaceholderText:C==="poll"||C==="image-poll"?I==null?void 0:I.pollPostPlaceholderText:C==="quiz"?I==null?void 0:I.quizPostPlaceholderText:C==="image"?I==null?void 0:I.imagePostPlaceholderText:I==null?void 0:I.placeholderText},
computeHideAttachmentButtons_:function(I,C,y,k){return I===void 0?!1:k&&this.getSimpleString(k)===this.getSimpleString(I.rateLimitErrorMessage)?!0:C!=="none"||y!=="none"||!I.videoLinkButton&&!I.pollButton&&!I.imagePollButton&&!I.quizButton&&!I.imageButton},
computeHideDismissableAttachment_:function(I){return I!=="image"&&I!=="video"},
computeHasVideo_:function(I){return I==="video"},
computeHasImage_:function(I){return I==="image"},
computeHasPoll_:function(I){return I==="poll"},
computeHasImagePoll_:function(I){return I==="image-poll"},
computeHasQuiz_:function(I){return I==="quiz"},
computeHasPollOrQuizRendererInEditDialog_:function(I){return I&&I.backstageAttachment?I.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&!(!I.backstageAttachment.quizRenderer&&!I.backstageAttachment.pollRenderer):!1},
computePrefilledContent_:function(I){if(this.isValidPrefilledAttachment_(I.purpose,I.prefilledImageData,I.backstageAttachment))return I.backstageAttachment},
computeEditAttachment_:function(I){if(this.computePrefilledContent_(I)===void 0)return I.backstageAttachment},
computeAuthorThumbnailDimension_:function(I,C){return I&&!C?24:40},
computeImageUploadEndpoint_:function(I){return this.get("imageButton.buttonRenderer.navigationEndpoint.backstageImageUploadEndpoint",I)},
computeRateLimitErrorCommands_:function(I){var C,y;return I==null?void 0:(C=I.advancedTierFeatures)==null?void 0:(y=C.rateLimit)==null?void 0:y.rateLimitCommands},
computeIsBackstageComment_:function(I){return!(!I||I!=="COMMENT_DIALOG_AVATAR_SIZE_TYPE_BACKSTAGE_COMMENT")},
computeServiceEndpoint_:function(I){return this.get("submitButton.buttonRenderer.serviceEndpoint",I)||this.get("replyButton.buttonRenderer.serviceEndpoint",I)||this.get("postButton.buttonRenderer.serviceEndpoint",I)},
computeSubmitButtonOverride:function(){if(_.V("web_modern_buttons")){var I,C;return{segmentedPosition:this.dropdownSchedulePanel_||!((I=this.data)==null?0:(C=I.postOptionsMenu)==null?0:C.menuRenderer)?void 0:"start",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}}},
computeThreeDotButtonOverride:function(){if(_.V("web_modern_buttons"))return{segmentedPosition:"end",type:"filled",style:"call-to-action",state:this.submitButtonDisabled?"disabled":"active"}},
computeSubmitButton_:function(I,C){I=this.get("submitButton.buttonRenderer",I)||this.get("replyButton.buttonRenderer",I)||this.get("postButton.buttonRenderer",I);C&&(I=C);I&&(I=Object.assign({},I),I.serviceEndpoint=void 0,I.isDisabled=this.submitButtonDisabled);return I},
computeHasExternalLinksAccess_:function(I){if(_.V("enable_rfa_external_links")){var C,y,k;return(k=I==null?void 0:(C=I.advancedTierFeatures)==null?void 0:(y=C.externalLinks)==null?void 0:y.allowExternalLinks)!=null?k:!0}return!0},
computeIsEmojiButtonDisplayed_:function(I){return I.emojiButton&&I.emojiPicker&&I.emojiPicker.emojiPickerRenderer&&I.emojiPicker.emojiPickerRenderer.categories?I.emojiPicker.emojiPickerRenderer.categories.find(function(C){return C.emojiPickerCategoryRenderer?C.emojiPickerCategoryRenderer.emojiIds&&C.emojiPickerCategoryRenderer.emojiIds.length>0:C.emojiPickerUpsellCategoryRenderer?C.emojiPickerUpsellCategoryRenderer.emojis&&C.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1}):!1},
computeCharLimit_:function(I){return I.charLimit?I.charLimit:null},
computeDropdownSchedulingPanel_:function(I,C){if(I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"&&C)return C},
computeInlineSchedulingPanel_:function(I,C){if(I==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&C)return C},
computeHideAuthorThumbnail_:function(I,C){return I||this.computeUseIdentityChip_(C)},
computeHideIdentityChipRenderer_:function(I,C){return I||!this.computeUseIdentityChip_(C)},
computeUseIdentityChip_:function(I){return!!I&&!!I.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(I){var C,y,k,F;(I==null?0:(C=I.detail)==null?0:(y=C.endpoint)==null?0:y.ypcGetOffersEndpoint)||(I==null?0:(k=I.detail)==null?0:(F=k.endpoint)==null?0:F.ypcOffersEndpoint)?(I.stopPropagation(),_.Tg(this,[I.detail.endpoint])):this.get("detail.endpoint.backstageImageUploadEndpoint",I)&&(I.stopPropagation(),this.addedAttachment="image",this.submitButtonDisabled=!0)},
onVideoLinkSelected_:function(I){this.addedAttachment="video";this.selectedVideoId_=I.detail.videoId},
commentboxStateEntityChanged_:function(I){var C=this;(I==null?void 0:I.state)=="COMMENTBOX_STATE_INITIAL"?(this.clear(),this.fire("yt-commentbox-dismiss",this.dismissData_),this.dismissData_=null):(I==null?void 0:I.state)=="COMMENTBOX_STATE_WRITING"&&Promise.resolve().then(function(){C.focus()})},
onYtServiceRequestSent_:function(I,C){if(C.actions)for(I=_.T(C.actions),C=I.next();!C.done;C=I.next())C.value.createPollAction&&(this.submitButtonDisabled=!0)},
onYtServiceRequestCompleted_:function(I){this.isLoading=!1;var C=this.get("detail.actions.0.showErrorAction.errorMessage.messageRenderer.text",I),y,k,F,z=I==null?void 0:(y=I.detail)==null?void 0:(k=y.data)==null?void 0:(F=k.actionResult)==null?void 0:F.commentboxStateEntityKey;if(C)this.errorMessage_=C;else if(z){var c;this.dismissData_=I==null?void 0:(c=I.detail)==null?void 0:c.data;this.commentboxStateKey_=z}else{this.clear();var r;this.fire("yt-commentbox-dismiss",I==null?void 0:(r=I.detail)==
null?void 0:r.data)}},
onYtServiceRequestError_:function(I){I.stopPropagation();this.isLoading=!1;var C,y;if(((C=this.data)==null?void 0:C.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"||((y=this.data)==null?void 0:y.purpose)==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE")if(C=this.get("detail.error.args",I)||[],C.length>1&&C[1].message){this.handlePostsServiceRequestError_(C[1].message);return}(I=this.get("detail.error.message",I))?this.errorMessage_=this.data.errorMessage||_.Ee(I):(this.clear(),this.fire("yt-commentbox-dismiss"))},
handlePostsServiceRequestError_:function(I){if(_.V("enable_rfa_rate_limits")&&this.rateLimitErrorCommands)for(var C=_.T(this.rateLimitErrorCommands),y=C.next();!y.done;y=C.next())if(y=y.value,y.errorLabel===I){_.uU(y.command,this.hostElement);return}this.errorMessage_=_.Ee(I)},
submitIfNotBackstagePost_:function(I){if(!this.isBackstagePost)this.onSubmit_(I)},
onSubmit_:function(I){var C=this,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A;return _.e(function(x){switch(x.nextAddress){case 1:I.stopPropagation();if(!C.serviceEndpoint||!C.isValidInput_())return x.return();if(C.shouldShowPostAadcNotice_())return C.showPostAadcNotice_(),x.return();if(C.shouldShowCommentAadcNotice_())return C.showCommentAadcNotice_(),x.return();if(!(C.$$("ytd-backstage-multi-image-select-renderer")&&C.hasImage_&&_.V("enable_multi_image_post_creation"))){x.jumpTo(2);break}y=C.$$("ytd-backstage-multi-image-select-renderer");
return _.n(x,y.getAllUploadStatuses(),3);case 3:k=x.yieldResult;if(!k)return x.return();F=_.T(k);for(z=F.next();!z.done;z=F.next())if(c=z.value,c.encryptedBlobId===void 0)return C.isLoading=!1,w=r=void 0,C.errorMessage_=(w=(r=C.imageUploadEndpoint_)==null?void 0:r.imageEditor.backstageMultiImageSelectRenderer.uploadFailureError)!=null?w:null,x.return();return x.return(C.submitForm_(void 0,void 0,void 0,void 0,y.images,C.taggedVideoId_));case 2:if(!C.hasImagePoll_||!C.$["image-poll-attachment"]){x.jumpTo(4);
break}return _.n(x,C.$["image-poll-attachment"].getAllUploadStatuses(),5);case 5:L=x.yieldResult;if(!L)return x.return();D=_.T(L);for(p=D.next();!p.done;p=D.next())if(Q=p.value,!Q.encryptedBlobId)return C.isLoading=!1,X=void 0,C.errorMessage_=(X=C.data.errorMessage)!=null?X:null,x.return();case 4:S=(b=C.$$("ytd-backstage-image-select-renderer"))&&b.uploadPromise(),A=C.getSharedPostId_(),S?S.then(function(){C.submitForm_.apply(C,_.Py(_.wa.apply(0,arguments)))}).catch(function(B){C.isLoading=!1;
C.errorMessage_=_.Ee(B.message)}):C.selectedVideoId_?C.submitForm_(void 0,C.selectedVideoId_):C.prefilledAttachment_==="image"?C.submitForm_(C.prefilledImageData_.encryptedBlobId,void 0,void 0,C.prefilledImageData_.sourceExternalVideoId,void 0,C.taggedVideoId_):C.prefilledAttachment_==="video"?C.submitForm_(void 0,C.data.backstageAttachment.videoRenderer.videoId):A?C.submitForm_(void 0,void 0,A):C.taggedVideoId_!==void 0?C.submitForm_(void 0,void 0,void 0,void 0,void 0,C.taggedVideoId_):C.submitForm_(),
_.oI(x)}})},
openSchedulingPanel:function(I){I&&I.scheduleButton&&I.scheduleButton.buttonRenderer&&(this.scheduleButton_=I.scheduleButton.buttonRenderer);I&&I.dateTimePicker&&this.set("data.schedulingDateTimePicker",I.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(I){I.stopPropagation();this.clear();this.fire("yt-commentbox-dismiss")},
onPrefilledContentDismissed_:function(I){I.stopPropagation();this.dismissPrefilledContent_();this.setSubmitButton_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
onQuizExplanationUpdated_:function(){this.maybeUpdateExternalLinksBanner_()},
onImageAlert_:function(I){I.stopPropagation();I.detail.alertMessage&&(this.alertMessage_=I.detail.alertMessage)},
onImageSelected_:function(I){I.stopPropagation();this.setSubmitButton_()},
onImagesSelected_:function(I){I.stopPropagation();this.errorMessage_=null;this.setSubmitButton_()},
onImagePreviewCoordinatesUpdated_:function(I){I.stopPropagation();this.imagePreviewCoordinates_=JSON.stringify(I.detail);this.setSubmitButton_()},
onImagePreviewReposition_:function(I){I.stopPropagation();this.imagePreviewCoordinates_=void 0;this.submitButtonDisabled=!0},
onVideoLinkButtonCancel_:function(){this.getEditableTextArea_().focus()},
onAddVideoLink:function(I){var C=this.$["video-link-attachment"];C&&C.onLaunchVideoPicker(I)},
onAttachmentDismiss_:function(I){I.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"&&_.V("enable_multi_image_post_creation")&&(!this.$$("ytd-backstage-multi-image-select-renderer")||!this.$$("ytd-backstage-multi-image-select-renderer").hasImages())||!(this.addedAttachment!=="image"||_.V("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 I;if(this.addedAttachment==="image-poll"&&((I=this.$["image-poll-attachment"])==null||!I.isValid()))return!1;var C;if(this.addedAttachment==="quiz"&&((C=this.$["quiz-attachment"])==null||!C.isValid())||this.addedAttachment==="video"&&this.$["video-link-attachment"]&&!this.$["video-link-attachment"].isValid()||
this.aboveCharLimit_||this.dropdownSchedulePanel_&&!this.scheduledPublishTimeSec_)return!1;I=!1;this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&this.data.backstageAttachment&&(this.data.backstageAttachment.backstageImageRenderer||this.data.backstageAttachment.postMultiImageRenderer)&&(I=!0);if(this.addedAttachment==="image"||this.prefilledAttachment_==="image")I=!0;return I||!!this.getTextAreaValue().trim()},
submitForm_:function(I,C,y,k,F,z){var c=this.getTextAreaValue().trim(),r={};this.data&&this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"&&c===this.previousText_&&(c=void 0);c!==void 0&&(r.comment_text=c);this.isLoading=!0;z!=void 0&&(r.tagged_video_id=z);I?(r.image_blob_id=I,this.imagePreviewCoordinates_&&(r.image_preview_coordinates=this.imagePreviewCoordinates_)):C?r.attached_video_id=C:y?r.shared_post_id=y:F&&F.length>0&&(r.images_data=F.map(function(w){return{encryptedBlobId:w.encryptedBlobId,
previewCoordinates:w.previewCoordinates}}));
k&&(r.source_video_id=k);this.data.accessRestrictionsSelector&&this.data.accessRestrictionsSelector.dropdownRenderer&&(r.access_restrictions=this.accessRestriction?this.accessRestriction:this.$["access-restrictions-selector"].firstElementChild.value);this.addedAttachment==="poll"&&(r.poll_options=this.$["poll-attachment"].getPollOptions());this.addedAttachment==="image-poll"&&(r.image_poll_options=this.$["image-poll-attachment"].getPostCreateOptions());_.V("enable_quiz_creation")&&this.addedAttachment===
"quiz"&&(r.quiz_options=this.$["quiz-attachment"].getPostCreateOptions());_.V("enable_post_scheduling")&&this.scheduledPublishTimeSec_&&(r.scheduled_publish_time_sec=this.scheduledPublishTimeSec_);_.Tg(this,[this.serviceEndpoint,r])},
onIsInputFocusChanged_:function(I,C){I?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(I){var C=this.getEditableTextArea_();[].concat(_.Py(I.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(k){C.appendChild(document.createTextNode(k))})});
I.preventDefault()},
preventDefault_:function(I){I.preventDefault()},
onSuggestionInsert_:function(I){this.insertTextWithEmojis_(I.detail.range,I.detail.text)},
onEmojiSuggestionClick_:function(I){this.emojiInput.insertSuggestion(I.detail)},
computeSubmitButtonClass_:function(I,C){return!C||I?"":"with-options"},
updateSuggestionOffset_:function(I){if(this.emojiInput&&_.f(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,y=I.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-y)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;I=I.getBoundingClientRect().left-C;_.f(this.emojiInput).querySelector("#dropdown").style.marginLeft=I+"px"}},
onDateTimeSelectionCancelled_:function(){this.scheduleButton_=void 0;this.set("data.schedulingDateTimePicker",null);this.scheduledPublishTimeSec_=void 0;this.setSubmitButton_()},
onDateTimeSelectionUpdate_:function(I){if(_.V("enable_post_scheduling")&&this.data&&this.data.purpose){I=I.detail;if(Math.floor(Date.now()/1E3)>=I)this.scheduledPublishTimeSec_=void 0;else if(this.data.purpose==="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"){var C=parseInt(this.get("schedulingDateTimePicker.dateTimePickerRenderer.defaultTimeSec",this.data),10);isNaN(C)||C!==I?this.scheduledPublishTimeSec_=I:this.scheduledPublishTimeSec_=void 0}else this.scheduledPublishTimeSec_=I;this.setSubmitButton_()}},
computeAttachmentButtonIds_:function(){var I=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&I.push("quiz-button");_.V("auto_convert_posts_video_tag")||I.push("video-link-button");return I},
getButtonRenderer:function(I,C){if(I)switch(C){case "video-link-button":var y;return((y=I.videoLinkButton)==null?void 0:y.buttonRenderer)||void 0;case "image-button":var k;return((k=I.imageButton)==null?void 0:k.buttonRenderer)||void 0;case "poll-button":var F;return((F=I.pollButton)==null?void 0:F.buttonRenderer)||void 0;case "image-poll-button":var z;return((z=I.imagePollButton)==null?void 0:z.buttonRenderer)||void 0;case "quiz-button":var c;return((c=I.quizButton)==null?void 0:c.buttonRenderer)||
void 0}},
shouldShowPostAadcNotice_:function(){var I;return(I=this.data)==null||!I.showAadcNoticeCommand||this.getLocalStorage_().get(this.getAadcNoticeShownKey_())?!1:!0},
shouldShowCommentAadcNotice_:function(){var I,C;return!((I=this.data)==null||!I.openAadcDialog)&&!((C=this.aadcGuidelinesState_)==null||!C.shouldRequireViewerAck)},
getAadcNoticeShownKey_:function(){return"post-aadc-notice-shown-"+_.Aq("DATASYNC_ID","unknown")},
showPostAadcNotice_:function(){var I;((I=this.data)==null?0:I.showAadcNoticeCommand)&&this.resolveCommand(this.data.showAadcNoticeCommand)},
showCommentAadcNotice_:function(){this.resolveCommand(this.data.openAadcDialog)},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Kw("yt-post"));return this.localStorage},
onAadcNoticeConfirm_:function(I){I.clickTrackingParams&&_.e2().clickCommand(I);this.getLocalStorage_().set(this.getAadcNoticeShownKey_(),!0);_.Fe(this,"yt-close-popup-action")},
onHideIdentityChip:function(I){var C;this.set("data.placeholderText",(C=I.hideIdentityChipAction)==null?void 0:C.placeholderText);this.set("zeroStepChannelCreationRenderer",{})}});var IK=function(){var I=_.q.apply(this,arguments)||this;I.isOpen=!1;I.modern=_.V("web_modern_buttons");I.roundedContainer=!0;I.dropdownButtonOverride=_.V("web_modern_buttons")?{segmentedPosition:"end",state:"disabled",type:"filled"}:void 0;I.inPopupContainer=!1;I.isCommentboxLoading=!1;var C=["image-button","image-poll-button","poll-button"];_.V("enable_quiz_creation")&&C.push("quiz-button");_.V("auto_convert_posts_video_tag")||C.push("video-link-button");I.attachmentButtonIds=C;I.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 I};
_.R(IK,_.q);_.u=IK.prototype;_.u.computeButtonOverride=function(){var I;return((I=this.data)==null?0:I.postOptionsMenu)&&_.V("web_modern_buttons")?{segmentedPosition:"start"}:void 0};
_.u.configureRendererStamper=function(){var I={"data.accessRestrictionsSelector":{id:"access-restrictions-selector",mapping:{dropdownRenderer:{component:"ytd-flat-dropdown-renderer",classListBinding:"[[dropdownRendererClasses]]"}}},"data.pollButton":{id:"poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imagePollButton":{id:"image-poll-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.imageButton":{id:"image-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.quizButton":{id:"quiz-button",
mapping:{buttonRenderer:"ytd-button-renderer"}},"data.postOptionsMenu":{id:"option-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:arrow_drop_down"},properties:{tonalOverride:"[[modern]]",threeDotButtonOverride:"[[dropdownButtonOverride]]"}}}}};_.V("auto_convert_posts_video_tag")||(I["data.videoLinkButton"]={id:"video-link-button",mapping:{buttonRenderer:"ytd-button-renderer"}});return I};
_.u.ready=function(){var I=this,C=_.f(this.hostElement).querySelector("#placeholder-area"),y=function(k){I.onOpen(k)};
C.addEventListener("tap",y);C.addEventListener("keypress",y)};
_.u.showButtonEduTooltip=function(){var I,C,y,k,F,z,c;if(_.V("enable_quiz_creation")&&((I=this.data)==null?0:(C=I.quizButton)==null?0:(y=C.buttonRenderer)==null?0:(k=y.hint)==null?0:(F=k.hintRenderer)==null?0:(z=F.content)==null?0:(c=z.bubbleHintRenderer)==null?0:c.text)&&(_.tJ.getInstance(),I=JJ(this.data.quizButton.buttonRenderer.hint.hintRenderer.content.bubbleHintRenderer.text,"quiz-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"quiz-button-edu-displayed-impression",3),(I==null?void 0:
I.length)>0)){this.ytComponentBehavior.resolveCommand(I[0],{form:{element:this.quizButton}});return}var r;if((r=this.data)==null?0:r.imagePollButtonTooltip)if(_.tJ.getInstance(),r=JJ(this.data.imagePollButtonTooltip,"image-poll-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"image-poll-button-edu-displayed-impression",3),(r==null?void 0:r.length)>0){this.ytComponentBehavior.resolveCommand(r[0],{form:{element:this.imagePollButton}});return}var w;_.V("enable_multi_image_post_creation")&&
((w=this.data)==null?0:w.multiImageButtonTooltip)&&(_.tJ.getInstance(),w=JJ(this.data.multiImageButtonTooltip,"multi-image-button-edu-displayed","OPEN_POPUP_POSITION_BOTTOM",604800,"multi-image-button-edu-displayed-impression",3),(w==null?void 0:w.length)>0&&this.ytComponentBehavior.resolveCommand(w[0],{form:{element:this.imageButton}}))};
_.u.onCreatePollAction=function(I){_.l(I,LRu)&&(this.JSC$13556_commentbox.addedAttachment="poll",this.openDialog())};
_.u.onAddVideoLinkAction=function(I){if(_.l(I,PBP))this.JSC$13556_commentbox.onAddVideoLink(I)};
_.u.onShowSchedulingPanelCommand=function(I){(I=_.l(I,hBP))&&this.openSchedulingPanel(I)};
_.u.onCreateImagePollCommand=function(I){_.l(I,Jpe)&&(this.JSC$13556_commentbox.openImagePollComponent(),this.openDialog())};
_.u.onCreateQuizCommand=function(I){_.l(I,O68)&&(this.JSC$13556_commentbox.openQuizComponent(),this.openDialog())};
_.u.openSchedulingPanel=function(I){_.V("enable_post_scheduling")&&(this.openDialog(),this.JSC$13556_commentbox.openSchedulingPanel(I))};
_.u.onCreateCommentAction=function(I){this.get("createCommentAction.contents",I)&&(this.JSC$13556_commentbox.clear(),this.closeDialog())};
_.u.onOpen=function(I){I instanceof KeyboardEvent&&I.type==="keypress"&&I.keyCode!==13&&I.keyCode!==32||(this.data.prepareAccountEndpoint?_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.prepareAccountEndpoint}):this.openDialog())};
_.u.onYtCommentboxDismiss=function(){this.closeDialog()};
_.u.onYtCommentboxLoadingStart=function(I){I.stopPropagation();this.isCommentboxLoading=!0};
_.u.onYtCommentboxLoadingEnd=function(I){I.stopPropagation();this.isCommentboxLoading=!1};
_.u.onYtVideoLinkButtonCancel=function(I){I.stopPropagation();this.onOpen(I)};
_.u.onYtVideoLinkSelected=function(I){I.stopPropagation();this.onOpen(I)};
_.u.onIronSelect=function(I){I.stopPropagation();I.detail.item.tagName==="YTD-PRIVACY-DROPDOWN-ITEM-RENDERER"&&this.accessRestriction!=I.detail.item.value&&(this.accessRestriction?(this.accessRestriction=I.detail.item.value,this.onOpen(I)):this.accessRestriction=I.detail.item.value)};
_.u.onYtNavigate=function(I){this.get("detail.endpoint.backstageImageUploadEndpoint",I)&&(this.JSC$13556_commentbox.addedAttachment="image",this.JSC$13556_commentbox.submitButtonDisabled=!0,this.onOpen(I))};
_.u.onRequestSent=function(I){if(_.V("web_button_rework"))for(var C=_.T(I.detail),y=C.next();!y.done;y=C.next())_.l(y.value,zXq)&&(this.JSC$13556_commentbox.addedAttachment="image",this.JSC$13556_commentbox.submitButtonDisabled=!0,this.onOpen(I))};
_.u.openDialog=function(){this.JSC$13556_commentbox.accessRestriction=this.accessRestriction;this.isOpen=!0;this.JSC$13556_commentbox.focus()};
_.u.onPopupClosed=function(){_.tJ.getInstance()};
_.u.computeCreationDisabled=function(I){return!!I};
_.u.computeIsCreationDialog=function(I){return!!I&&I==="BACKSTAGE_POST_DIALOG_PURPOSE_CREATE"};
_.u.computeDisabledPostButton=function(I){if(!I)return null;I.isDisabled=!0;return I};
_.u.computeIsCreationDialogWithHeader=function(I){return!this.inPopupContainer&&!!I&&!!I.authorText&&I.purpose!="BACKSTAGE_POST_DIALOG_PURPOSE_EDIT"};
_.u.computeIsHeaderHidden=function(I,C){return!I||C};
_.u.computeDropdownRendererClasses=function(I){return I?["text-secondary-style"]:[]};
_.u.closeDialog=function(){this.isCommentboxLoading=this.isOpen=!1;var I=_.f(this.hostElement).querySelector("#access-restrictions-selector").firstElementChild;I&&I.reset()};
IK.prototype.onPopupClosed=IK.prototype.onPopupClosed;IK.prototype.onRequestSent=IK.prototype.onRequestSent;IK.prototype.onYtNavigate=IK.prototype.onYtNavigate;IK.prototype.onIronSelect=IK.prototype.onIronSelect;IK.prototype.onYtVideoLinkSelected=IK.prototype.onYtVideoLinkSelected;IK.prototype.onYtVideoLinkButtonCancel=IK.prototype.onYtVideoLinkButtonCancel;IK.prototype.onYtCommentboxLoadingEnd=IK.prototype.onYtCommentboxLoadingEnd;IK.prototype.onYtCommentboxLoadingStart=IK.prototype.onYtCommentboxLoadingStart;
IK.prototype.onYtCommentboxDismiss=IK.prototype.onYtCommentboxDismiss;IK.prototype.showButtonEduTooltip=IK.prototype.showButtonEduTooltip;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],IK.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],IK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],IK.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],IK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],IK.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],IK.prototype,"isOpen",void 0);_.E([_.d({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],IK.prototype,"buttonOverride",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],IK.prototype,"modern",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],IK.prototype,"roundedContainer",void 0);_.E([_.d(),_.h("design:type",Object)],IK.prototype,"dropdownButtonOverride",void 0);_.E([_.d({computed:"computeCreationDisabled(data.postCreationDisabledText)"}),_.h("design:type",Boolean)],IK.prototype,"creationDisabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],IK.prototype,"enableCreationBox",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsCreationDialog(data.purpose)"}),_.h("design:type",Boolean)],IK.prototype,"isCreationDialog",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],IK.prototype,"inPopupContainer",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsCreationDialogWithHeader(data)"}),_.h("design:type",Boolean)],IK.prototype,"isCreationDialogWithHeader",void 0);_.E([_.d(),_.h("design:type",Object)],IK.prototype,"accessRestriction",void 0);
_.E([_.d({computed:"computeDropdownRendererClasses(isCreationDialogWithHeader)"}),_.h("design:type",Array)],IK.prototype,"dropdownRendererClasses",void 0);_.E([_.d(),_.h("design:type",Object)],IK.prototype,"isCommentboxLoading",void 0);_.E([_.d(),_.h("design:type",Array)],IK.prototype,"attachmentButtonIds",void 0);_.E([_.z$("#image-button"),_.h("design:type",HTMLElement)],IK.prototype,"imageButton",void 0);
_.E([_.z$("#image-poll-button"),_.h("design:type",HTMLElement)],IK.prototype,"imagePollButton",void 0);_.E([_.z$("#quiz-button"),_.h("design:type",HTMLElement)],IK.prototype,"quizButton",void 0);_.E([_.z$("#commentbox"),_.h("design:type",Object)],IK.prototype,"JSC$13556_commentbox",void 0);_.E([_.FI("data.multiImageButtonTooltip","data.imagePollButtonTooltip","data.quizButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IK.prototype,"showButtonEduTooltip",null);
_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtCommentboxDismiss",null);_.E([_.km("yt-commentbox-loading-start"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtCommentboxLoadingStart",null);
_.E([_.km("yt-commentbox-loading-end"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtCommentboxLoadingEnd",null);_.E([_.km("yt-video-link-button-cancel"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtVideoLinkButtonCancel",null);
_.E([_.km("yt-video-link-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtVideoLinkSelected",null);_.E([_.km("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onIronSelect",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onYtNavigate",null);
_.E([_.km("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],IK.prototype,"onRequestSent",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],IK.prototype,"onPopupClosed",null);IK=_.E([_.m({is:"ytd-backstage-post-dialog-renderer",disableElementRegistration:!0})],IK);
_.Z(IK,"ytd-backstage-post-dialog-renderer",function(){if(qce!==void 0)return qce;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-backstage-post-dialog-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="disabled-message" hidden="[[!creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="disabled-message-annotation" class="style-scope ytd-backstage-post-dialog-renderer">\n  [[getSimpleString(data.postCreationDisabledAnnotation)]]\n  </div>\n  <yt-formatted-string id="disabled-message-text" text="[[data.postCreationDisabledText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  </yt-formatted-string>\n</div>\n<div hidden="[[creationDisabled]]" class="style-scope ytd-backstage-post-dialog-renderer">\n  <div id="dialog-header" hidden="[[computeIsHeaderHidden(isCreationDialogWithHeader, isCommentboxLoading)]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="header-author-thumbnail" thumbnail="[[data.authorThumbnail]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <yt-formatted-string id="header-channel-name" text="[[data.authorText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <yt-formatted-string id="header-visibility-label" text="[[data.visibilityLabel]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n    <div id="access-restrictions-selector" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n    <yt-formatted-string id="header-default-visibility" hidden="[[!data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" text="[[data.accessRestrictionsSelector.postVisibilityLabelRenderer.text]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-formatted-string>\n  </div>\n  <div id="unopened-dialog" hidden="[[isOpen]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <yt-img-shadow id="author-thumbnail" height="40" thumbnail="[[data.authorThumbnail]]" width="40" class="style-scope ytd-backstage-post-dialog-renderer">\n    </yt-img-shadow>\n    <div id="main" class="style-scope ytd-backstage-post-dialog-renderer">\n      <div id="placeholder-area" class="style-scope ytd-backstage-post-dialog-renderer">\n        <yt-formatted-string id="commentbox-placeholder" role="button" tabindex="0" text="[[data.placeholderText]]" class="style-scope ytd-backstage-post-dialog-renderer">\n        </yt-formatted-string>\n      </div>\n      <div id="attachments" class="style-scope ytd-backstage-post-dialog-renderer">\n        <template is="dom-repeat" items="[[attachmentButtonIds]]" as="buttonId" class="style-scope ytd-backstage-post-dialog-renderer">\n          <span id="[[buttonId]]" class="style-scope ytd-backstage-post-dialog-renderer"></span>\n        </template>\n        <div id="post-buttons-wrapper" class="style-scope ytd-backstage-post-dialog-renderer">\n          <ytd-button-renderer id="post-button" data="[[computeDisabledPostButton(data.postButton.buttonRenderer)]]" hidden="[[!isCreationDialog]]" overrides="[[buttonOverride]]" class="style-scope ytd-backstage-post-dialog-renderer">\n          </ytd-button-renderer>\n          <div id="option-menu" class="style-scope ytd-backstage-post-dialog-renderer"></div>\n        </div>\n      </div>\n    </div>\n  </div>\n  <ytd-commentbox id="commentbox" data="[[data]]" hidden="[[!isOpen]]" is-backstage-post="" is-creation-box="[[isCreationDialog]]" is-popup-box="[[inPopupContainer]]" is-post-creation-dialog-v2="[[isCreationDialogWithHeader]]" class="style-scope ytd-backstage-post-dialog-renderer">\n    <div slot="repost-preview" hidden="[[!data.backstageAttachment.postRenderer]]" class="style-scope ytd-backstage-post-dialog-renderer">\n      <slot name="repost-preview" class="style-scope ytd-backstage-post-dialog-renderer"></slot>\n    </div>\n  </ytd-commentbox>\n</div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return qce=I},{mode:1});var p_S;var Qye;var Cs=function(){return _.q.apply(this,arguments)||this};
_.R(Cs,_.q);_.u=Cs.prototype;_.u.computeHeartButtonStyle=function(I){return(I==null?0:I.styleType)?I.styleType.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.u.onYtButtonTap=function(){if(this.data.isEnabled){var I=this.data.isHearted;this.toggle();this.ytRendererBehavior.markDirty();(I=this.getEndpoint(I))&&(_.V("web_ytd_creator_heart_renderer_command_resolver_ks")?_.Tg(this.hostElement,[I]):_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}}))}else(I=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.data.disabledEndpoint))&&this.ytdOpenPopupBehavior.openPopup(I)};
_.u.toggle=function(I){this.set("data.isHearted",I!==void 0?I:!this.data.isHearted)};
_.u.getEndpoint=function(I){var C,y=(C=this.data)==null?void 0:C.heartEndpoint,k;C=(k=this.data)==null?void 0:k.unheartEndpoint;if(y&&C)return I?C:y};
_.u.computeButtonAccessibility=function(I,C){var y,k,F=I==null?void 0:(y=I.heartedAccessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label,z,c;I=I==null?void 0:(z=I.unheartedAccessibility)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label;return C?F:I};
_.H1.Object.defineProperties(Cs.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 I;return _.V("kevlar_system_icons")&&!((I=this.data)==null||!I.isHearted)}}});
Cs.prototype.onYtButtonTap=Cs.prototype.onYtButtonTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Cs.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],Cs.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Cs.prototype,"data",void 0);_.E([_.v("data.isHearted"),_.h("design:type",Object),_.h("design:paramtypes",[])],Cs.prototype,"heartTooltip",null);
_.E([_.v("data.isHearted"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cs.prototype,"iconFilled",null);_.E([_.d({computed:"computeButtonAccessibility(data,data.isHearted)"}),_.h("design:type",String)],Cs.prototype,"buttonAccessibility",void 0);_.E([_.d({computed:"computeHeartButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],Cs.prototype,"heartButtonStyle",void 0);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cs.prototype,"onYtButtonTap",null);Cs=_.E([_.m({is:"ytd-creator-heart-renderer",disableElementRegistration:!0})],Cs);
_.Z(Cs,"ytd-creator-heart-renderer",function(){if(Qye!==void 0)return Qye;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Qye=I},{mode:1});var sE=function(){var I=_.q.apply(this,arguments)||this;I.hasCreatorReply=!1;I.buttonOverrides={size:"S",iconPosition:"icon-only"};I.replyButtonOverrides={size:"S",type:"text"};I.forceIconButton=!_.V("web_modern_buttons");I.modern=_.V("web_modern_buttons");I.buttonTooltipPosition="bottom";I.systemIcons=_.V("kevlar_system_icons");I.replyDialog=null;return I};
_.R(sE,_.q);_.u=sE.prototype;
_.u.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]]"}}}}}};
_.u.detached=function(){this.replyDialog&&this.replyDialog.remove();this.replyDialog=null};
_.u.dataChange=function(){this.replyDialog&&_.f(this.replyDialogElement).removeChild(this.replyDialog);this.replyDialog=null;var I,C,y;this.isLiked=this.systemIcons&&!!((I=this.data)==null?0:(C=I.likeButton)==null?0:(y=C.toggleButtonRenderer)==null?0:y.isToggled)};
_.u.computeShowVoteCountBeginning=function(I,C){return I===void 0||C===void 0?!0:I.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.u.computeShowVoteCountEnd=function(I,C){return I===void 0||C===void 0?!0:I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.u.computeShowCommentCount=function(I,C){return I===void 0||C===void 0?!0:I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"&&!!C&&this.ytRendererBehavior.getSimpleString(C)!=="0"};
_.u.hideReplyDialog=function(){this.replyDialogElement.hidden=!0};
_.u.reply=function(){this.replyButtonElement.firstElementChild?this.replyButtonElement.firstElementChild.firstElementChild.click():this.replyButtonEndElement.firstElementChild&&this.replyButtonEndElement.firstElementChild.firstElementChild.click()};
_.u.showReplyDialog=function(I){I&&(this.replyDialog||(this.replyDialog=document.createElement("ytd-comment-reply-dialog-renderer"),this.replyDialog.id="replybox"),this.replyDialog.isAttached||_.f(this.replyDialogElement).appendChild(this.replyDialog),this.replyDialog.data=I,this.replyDialogElement.hidden=!1,this.replyDialog.openDialog())};
_.u.onYtCommentboxDismiss=function(){this.hideReplyDialog()};
_.u.onRequestSent=function(I){if(_.V("web_button_rework")){I=_.T(I.detail);for(var C=I.next();!C.done;C=I.next())(C=this.get("createCommentReplyDialogEndpoint.dialog.commentReplyDialogRenderer",C.value))&&this.showReplyDialog(C)}};
_.u.onYtNavigate=function(I){var C,y;(I=(C=_.l(I.detail.endpoint,_.cp5))==null?void 0:(y=C.dialog)==null?void 0:y.commentReplyDialogRenderer)&&this.showReplyDialog(I)};
_.u.onYtServiceRequestSent=function(I,C){I.stopPropagation();if(C.actions)for(I=0;I<C.actions.length;I++){var y=_.l(C.actions[I],QdP);y&&this.handleUpdateCommentVoteAction(y)}};
_.u.handleUpdateCommentVoteAction=function(I){this.voteCount=I.voteCount||_.Ee("0");I.voteStatus==="LIKE"?this.JSC$13567_ytdDislikeToggleButtonRenderer.toggle(!1):I.voteStatus==="DISLIKE"?this.JSC$13567_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$13567_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$13567_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.u.computeReplyButtonHidden=function(I){return I};
_.u.computeReplyButtonBeginning=function(I){return(I==null?0:I.replyButton)&&I.style!=="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?I.replyButton:void 0};
_.u.computeReplyButtonEnd=function(I){return(I==null?0:I.replyButton)&&I.style==="COMMENT_ACTION_BUTTON_STYLE_TYPE_DESKTOP_TOOLBAR"?I.replyButton:void 0};
_.u.computeActionButtonStyle=function(I){return(I==null?0:I.style)?I.style.split("TYPE_")[1].replace(/_/g,"-").toLowerCase():"unknown"};
_.u.onButtonTooltipPositionChanged=function(){this.ytdReplyButtonRenderer&&(this.ytdReplyButtonRenderer.buttonTooltipPosition=this.buttonTooltipPosition)};
_.u.onYtToggleButton=function(I){var C,y;this.isLiked=this.systemIcons&&!!((C=I.detail)==null?0:(y=C.actions)==null?0:y.like)};
sE.prototype.onYtToggleButton=sE.prototype.onYtToggleButton;sE.prototype.onButtonTooltipPositionChanged=sE.prototype.onButtonTooltipPositionChanged;sE.prototype.onYtServiceRequestSent=sE.prototype.onYtServiceRequestSent;sE.prototype.onYtNavigate=sE.prototype.onYtNavigate;sE.prototype.onRequestSent=sE.prototype.onRequestSent;sE.prototype.onYtCommentboxDismiss=sE.prototype.onYtCommentboxDismiss;sE.prototype.dataChange=sE.prototype.dataChange;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sE.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"voteCount",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"commentCount",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"replyThumbnail",void 0);
_.E([_.d(),_.h("design:type",Object)],sE.prototype,"hasCreatorReply",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],sE.prototype,"enableCreationBox",void 0);_.E([_.d({computed:"computeActionButtonStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],sE.prototype,"actionButtonsStyle",void 0);_.E([_.d({computed:"computeReplyButtonBeginning(data)"}),_.h("design:type",Object)],sE.prototype,"replyButtonBeginning",void 0);
_.E([_.d({computed:"computeReplyButtonEnd(data)"}),_.h("design:type",Object)],sE.prototype,"replyButtonEnd",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"buttonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"replyButtonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"forceIconButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],sE.prototype,"useCommentIcon",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sE.prototype,"modern",void 0);_.E([_.d(),_.h("design:type",Object)],sE.prototype,"buttonTooltipPosition",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sE.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],sE.prototype,"isLiked",void 0);_.E([_.z$("ytd-button-renderer"),_.h("design:type",Object)],sE.prototype,"ytdReplyButtonRenderer",void 0);
_.E([_.z$("#like-button"),_.h("design:type",Object)],sE.prototype,"JSC$13567_ytdLikeToggleButtonRenderer",void 0);_.E([_.z$("#dislike-button"),_.h("design:type",Object)],sE.prototype,"JSC$13567_ytdDislikeToggleButtonRenderer",void 0);_.E([_.z$("#reply-dialog"),_.h("design:type",HTMLElement)],sE.prototype,"replyDialogElement",void 0);_.E([_.z$("#reply-button"),_.h("design:type",HTMLElement)],sE.prototype,"replyButtonElement",void 0);
_.E([_.z$("#reply-button-end"),_.h("design:type",HTMLElement)],sE.prototype,"replyButtonEndElement",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"dataChange",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sE.prototype,"onYtCommentboxDismiss",null);
_.E([_.km("yt-service-request-sent-button-renderer"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sE.prototype,"onRequestSent",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sE.prototype,"onYtNavigate",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],sE.prototype,"onYtServiceRequestSent",null);_.E([_.FI("buttonTooltipPosition"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sE.prototype,"onButtonTooltipPositionChanged",null);
_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sE.prototype,"onYtToggleButton",null);sE=_.E([_.m({is:"ytd-comment-action-buttons-renderer",disableElementRegistration:!0})],sE);
_.Z(sE,"ytd-comment-action-buttons-renderer",function(){if(p_S!==void 0)return p_S;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return p_S=I},{mode:1});var NES;var oK=function(){return _.q.apply(this,arguments)||this};
_.R(oK,_.q);oK.prototype.focus=function(){_.f(this.hostElement).querySelector("#commentbox").focus()};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],oK.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],oK.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],oK.prototype,"zeroStepChannelCreationRenderer",void 0);oK=_.E([_.m({is:"ytd-comment-dialog-renderer",disableElementRegistration:!0})],oK);
_.Z(oK,"ytd-comment-dialog-renderer",function(){if(NES!==void 0)return NES;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NES=I},{mode:1});var V0e;var yU=function(){var I=_.q.apply(this,arguments)||this;I.buttonOverrides={size:"S",iconPosition:"icon-only"};I.replyButtonOverrides={size:"S",type:"text"};return I};
_.R(yU,_.q);_.u=yU.prototype;_.u.configureRendererStamper=function(){return{creatorHeartSupportedRenderer:{id:"creator-heart",mapping:{creatorHeartRenderer:{component:"ytd-creator-heart-renderer"}}}}};
_.u.detached=function(){this.replyBox&&this.replyBox.remove()};
_.u.showReplyDialog=function(I){if(I){var C=this.replyBox;C||(C=document.createElement("ytd-comment-reply-dialog-renderer"),C.id="replybox",_.f(this.replyDialogDiv).appendChild(C));C.data=I;this.replyDialogDiv.hidden=!1;C.openDialog()}};
_.u.hideReplyDialogDiv=function(){this.replyDialogDiv.hidden=!0};
_.u.onYtServiceRequestSent=function(I,C){I.stopPropagation();if(C.actions)for(var y=0;y<C.actions.length;y++){var k=_.l(C.actions[y],QdP);k?this.handleUpdateCommentVoteAction(k):I.target===this.heartButton&&this.toggleHeartState()}};
_.u.handleUpdateCommentVoteAction=function(I){var C;(C=this.toolbarState)!=null&&C.key&&this.ytdReduxBehavior.dispatch(_.bY("engagementToolbarStateEntityPayload",this.toolbarState.key,{likeState:I.voteStatus==="LIKE"?"TOOLBAR_LIKE_STATE_LIKED":I.voteStatus==="DISLIKE"?"TOOLBAR_LIKE_STATE_DISLIKED":"TOOLBAR_LIKE_STATE_INDIFFERENT"}))};
_.u.toggleHeartState=function(){var I;(I=this.toolbarState)!=null&&I.key&&this.ytdReduxBehavior.dispatch(_.bY("engagementToolbarStateEntityPayload",this.toolbarState.key,{heartState:this.toolbarState.heartState==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?"TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE":"TOOLBAR_HEART_STATE_HEARTED_EDITABLE"}))};
_.H1.Object.defineProperties(yU.prototype,{likeCount:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return(((I=this.toolbarState)==null?void 0:I.likeState)==="TOOLBAR_LIKE_STATE_LIKED"?(C=this.toolbarData)==null?void 0:C.likeCountLiked:(y=this.toolbarData)==null?void 0:y.likeCountNotliked)||""}},
showLikeCount:{configurable:!0,enumerable:!0,get:function(){return this.likeCount.trim().length>0}},
isVisiblyDisabled:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.commentDisabledActionCommand)!==void 0}},
hasPrepareAccountCommand:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand)!==void 0&&!_.V("comment_prepare_account_command_killswitch")}},
likeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C=_.l((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand,_.$$),y,k,F,z,c,r,w,L,D;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledLikeCommand),isToggled:!this.isVisiblyDisabled&&((k=this.toolbarState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_LIKED",defaultIcon:{iconType:"LIKE"},defaultServiceEndpoint:this.isVisiblyDisabled?
void 0:C!=null?C:_.l((F=this.toolbarSurface)==null?void 0:F.likeCommand,_.$$),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.l((z=this.toolbarSurface)==null?void 0:z.unlikeCommand,_.$$),defaultCommand:this.isVisiblyDisabled?_.l((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.$$):void 0,defaultTooltip:(r=this.toolbarData)==null?void 0:r.likeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:w.likeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?
"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:(L=this.toolbarData)==null?void 0:L.likeButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(D=this.toolbarSharedData)==null?void 0:D.unlikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
dislikeToggleButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C=_.l((I=this.toolbarSurface)==null?void 0:I.prepareAccountCommand,_.$$),y,k,F,z,c,r,w,L,D,p;return{style:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT"},size:{sizeType:"SIZE_DEFAULT"},isDisabled:!((y=this.toolbarSharedData)==null||!y.disabledDislikeCommand),isToggled:!this.isVisiblyDisabled&&((k=this.toolbarState)==null?void 0:k.likeState)==="TOOLBAR_LIKE_STATE_DISLIKED",defaultIcon:{iconType:"DISLIKE"},
defaultServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.l((F=this.toolbarSurface)==null?void 0:F.dislikeCommand,_.$$),toggledServiceEndpoint:this.isVisiblyDisabled?void 0:C!=null?C:_.l((z=this.toolbarSurface)==null?void 0:z.undislikeCommand,_.$$),defaultCommand:this.isVisiblyDisabled?_.l((c=this.toolbarSurface)==null?void 0:c.commentDisabledActionCommand,_.$$):void 0,defaultTooltip:(r=this.toolbarData)==null?void 0:r.dislikeInactiveTooltip,toggledTooltip:(w=this.toolbarData)==null?void 0:
w.dislikeActiveTooltip,toggledStyle:{styleType:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_DEFAULT_ACTIVE"},accessibilityData:{accessibilityData:{label:this.isReply?(L=this.toolbarSharedData)==null?void 0:L.dislikeReplyButtonA11y:(D=this.toolbarSharedData)==null?void 0:D.dislikeCommentButtonA11y}},toggledAccessibilityData:{accessibilityData:{label:(p=this.toolbarSharedData)==null?void 0:p.undislikeButtonA11y}},preventAutoToggle:this.isVisiblyDisabled||this.hasPrepareAccountCommand}}},
creatorHeartSupportedRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C,y;if(((I=this.toolbarState)==null?void 0:I.heartState)!==void 0&&((C=this.toolbarState)==null?void 0:C.heartState)!=="TOOLBAR_HEART_STATE_UNKNOWN"&&((y=this.toolbarState)==null?void 0:y.heartState)!=="TOOLBAR_HEART_STATE_UNHEARTED"){var k,F,z,c,r,w,L,D,p,Q,X,b,S,A;return{creatorHeartRenderer:{creatorThumbnail:{thumbnails:[{url:(k=this.toolbarData)==null?void 0:k.creatorThumbnailUrl,width:32,height:32}]},heartIcon:{iconType:"FULL_HEART"},
isHearted:((F=this.toolbarState)==null?void 0:F.heartState)==="TOOLBAR_HEART_STATE_HEARTED"||((z=this.toolbarState)==null?void 0:z.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE",isEnabled:!this.isVisiblyDisabled&&(((c=this.toolbarState)==null?void 0:c.heartState)==="TOOLBAR_HEART_STATE_UNHEARTED_EDITABLE"||((r=this.toolbarState)==null?void 0:r.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"),heartEndpoint:this.isVisiblyDisabled?void 0:_.l((w=this.toolbarSurface)==null?void 0:w.heartCommand,
_.$$),unheartEndpoint:this.isVisiblyDisabled?void 0:_.l((L=this.toolbarSurface)==null?void 0:L.unheartCommand,_.$$),disabledEndpoint:this.isVisiblyDisabled?_.l((D=this.toolbarSurface)==null?void 0:D.commentDisabledActionCommand,_.$$):void 0,styleType:this.isVisiblyDisabled?"CREATOR_HEART_STYLE_TYPE_VISIBLY_DISABLED":void 0,heartedTooltip:(p=this.toolbarData)==null?void 0:p.heartActiveTooltip,unheartedTooltip:(Q=this.toolbarData)==null?void 0:Q.heartInactiveTooltip,heartedAccessibility:{accessibilityData:{label:((X=
this.toolbarState)==null?void 0:X.heartState)==="TOOLBAR_HEART_STATE_HEARTED_EDITABLE"?(b=this.toolbarSharedData)==null?void 0:b.unheartButtonA11y:(S=this.toolbarSharedData)==null?void 0:S.heartButtonA11y}},unheartedAccessibility:{accessibilityData:{label:(A=this.toolbarSharedData)==null?void 0:A.heartButtonA11y}}}}}}},
hasReplyCommand:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.toolbarSurface)==null||!I.replyCommand)}},
replyButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return{size:"SIZE_DEFAULT",style:this.isVisiblyDisabled?"STYLE_VISIBLY_DISABLED":"STYLE_TEXT",text:{runs:[{text:(I=this.commentStrings)==null?void 0:I.replyButtonText}]},navigationEndpoint:this.isVisiblyDisabled?void 0:_.l((C=this.toolbarSurface)==null?void 0:C.replyCommand,_.$$),command:this.isVisiblyDisabled?_.l((y=this.toolbarSurface)==null?void 0:y.commentDisabledActionCommand,_.$$):void 0}}}});
yU.prototype.onYtServiceRequestSent=yU.prototype.onYtServiceRequestSent;yU.prototype.hideReplyDialogDiv=yU.prototype.hideReplyDialogDiv;_.E([_.d(),_.h("design:type",Object)],yU.prototype,"commentStrings",void 0);_.E([_.d(),_.h("design:type",Boolean)],yU.prototype,"isReply",void 0);_.E([_.d(),_.h("design:type",Object)],yU.prototype,"toolbarData",void 0);_.E([_.d(),_.h("design:type",Object)],yU.prototype,"toolbarSharedData",void 0);
_.E([_.d(),_.h("design:type",String)],yU.prototype,"toolbarStateKey",void 0);_.E([_.d(),_.h("design:type",String)],yU.prototype,"toolbarSurfaceKey",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],yU.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],yU.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yU.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.z$("#reply-dialog"),_.h("design:type",HTMLElement)],yU.prototype,"replyDialogDiv",void 0);_.E([_.z$("#replybox"),_.h("design:type",Object)],yU.prototype,"replyBox",void 0);_.E([_.z$("ytd-creator-heart-renderer"),_.h("design:type",Object)],yU.prototype,"heartButton",void 0);_.E([_.d({selector:function(I,C){return _.cg(I.entities,"engagementToolbarStateEntityPayload",C)},
selectorArgs:["toolbarStateKey"]}),_.h("design:type",Object)],yU.prototype,"toolbarState",void 0);_.E([_.d({selector:SOz,selectorArgs:["toolbarSurfaceKey"]}),_.h("design:type",Object)],yU.prototype,"toolbarSurface",void 0);_.E([_.d(),_.h("design:type",Object)],yU.prototype,"buttonOverrides",void 0);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yU.prototype,"hideReplyDialogDiv",null);
_.E([_.v("toolbarData","toolbarState"),_.h("design:type",String),_.h("design:paramtypes",[])],yU.prototype,"likeCount",null);_.E([_.v("likeCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yU.prototype,"showLikeCount",null);_.E([_.v("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yU.prototype,"isVisiblyDisabled",null);_.E([_.v("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yU.prototype,"hasPrepareAccountCommand",null);
_.E([_.v("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],yU.prototype,"likeToggleButtonRenderer",null);_.E([_.v("isReply","toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],yU.prototype,"dislikeToggleButtonRenderer",null);_.E([_.v("toolbarData","toolbarState","toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],yU.prototype,"creatorHeartSupportedRenderer",null);
_.E([_.v("toolbarSurface"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yU.prototype,"hasReplyCommand",null);_.E([_.v("toolbarSurface","commentStrings","isVisiblyDisabled"),_.h("design:type",Object),_.h("design:paramtypes",[])],yU.prototype,"replyButtonRenderer",null);_.E([_.d(),_.h("design:type",Object)],yU.prototype,"replyButtonOverrides",void 0);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],yU.prototype,"onYtServiceRequestSent",null);yU=_.E([_.m({is:"ytd-comment-engagement-bar",disableElementRegistration:!0})],yU);
_.Z(yU,"ytd-comment-engagement-bar",function(){if(V0e!==void 0)return V0e;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-engagement-bar--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="toolbar" class="style-scope ytd-comment-engagement-bar">\n  \n  <ytd-toggle-button-renderer id="like-button" button-tooltip-position="bottom" data="[[likeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  <span id="vote-count-middle" hidden="[[!showLikeCount]]" aria-label$="[[voteCount.accessibility.accessibilityData.label]]" class="style-scope ytd-comment-engagement-bar">\n    [[likeCount]]\n  </span>\n  \n  <ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="bottom" data="[[dislikeToggleButtonRenderer]]" icon-size="16" overrides="[[buttonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-toggle-button-renderer>\n  \n  <div id="creator-heart" class="style-scope ytd-comment-engagement-bar"></div>\n  \n  <ytd-button-renderer id="reply-button-end" data="[[replyButtonRenderer]]" force-icon-button="true" hidden="[[!hasReplyCommand]]" overrides="[[replyButtonOverrides]]" class="style-scope ytd-comment-engagement-bar">\n  </ytd-button-renderer>\n</div>\n\n<div id="reply-dialog" class="style-scope ytd-comment-engagement-bar"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return V0e=I},{mode:1});var jy0;var kW=function(){return _.q.apply(this,arguments)||this};
_.R(kW,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kW.prototype,"data",void 0);kW=_.E([_.m({is:"ytd-comment-inline-thumbnail-renderer",disableElementRegistration:!0})],kW);
_.Z(kW,"ytd-comment-inline-thumbnail-renderer",function(){if(jy0!==void 0)return jy0;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return jy0=I},{mode:1});var lKS;var FE=function(){return _.q.apply(this,arguments)||this};
_.R(FE,_.q);_.E([_.d(),_.h("design:type",Object)],FE.prototype,"data",void 0);FE=_.E([_.m({is:"ytd-comment-pause-composer-renderer",disableElementRegistration:!0})],FE);
_.Z(FE,"ytd-comment-pause-composer-renderer",function(){if(lKS!==void 0)return lKS;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-pause-composer-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="pause-composer" class="style-scope ytd-comment-pause-composer-renderer">\n  <yt-attributed-string data="[[data.text]]" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n  <yt-attributed-string data="[[data.termsText]]" force-default-style="" class="style-scope ytd-comment-pause-composer-renderer">\n  </yt-attributed-string>\n</div>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lKS=I},{mode:1});var X_P;var $_b;var uV=function(){var I=_.q.apply(this,arguments)||this;I.isOpen=!1;return I};
_.R(uV,_.q);_.u=uV.prototype;_.u.dataChanged=function(){this.isOpen=!1};
_.u.onTap=function(){this.data&&(this.data.navigationEndpoint?_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):this.openDialog())};
_.u.focus=function(){this.JSC$13593_commentbox.focus()};
_.u.onYtCommentboxDismiss=function(){this.isOpen=!1};
_.u.openDialog=function(){this.isOpen=!0;this.JSC$13593_commentbox.focus();this.JSC$13593_commentbox.maybeHeightChanged()};
uV.prototype.onYtCommentboxDismiss=uV.prototype.onYtCommentboxDismiss;uV.prototype.dataChanged=uV.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],uV.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],uV.prototype,"isOpen",void 0);_.E([_.z$("#commentbox"),_.h("design:type",Object)],uV.prototype,"JSC$13593_commentbox",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uV.prototype,"dataChanged",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],uV.prototype,"onYtCommentboxDismiss",null);uV=_.E([_.m({is:"ytd-comment-reply-dialog-renderer",disableElementRegistration:!0})],uV);
_.Z(uV,"ytd-comment-reply-dialog-renderer",function(){if($_b!==void 0)return $_b;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return $_b=I},{mode:1});var Ru5;var zr=function(){return _.q.apply(this,arguments)||this};
_.R(zr,_.q);_.H1.Object.defineProperties(zr.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType;return y?"yt-icons:"+y.toLowerCase():null}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zr.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zr.prototype,"data",void 0);_.E([_.d(),_.v("data.icon"),_.h("design:type",Object),_.h("design:paramtypes",[])],zr.prototype,"icon",null);zr=_.E([_.m({is:"ytd-pinned-comment-badge-renderer",disableElementRegistration:!0})],zr);
_.Z(zr,"ytd-pinned-comment-badge-renderer",function(){if(Ru5!==void 0)return Ru5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Ru5=I},{mode:1});var bTw;var Yyq={},GH5={input:!0,meta:!0,br:!0,link:!0,img:!0},Tr=null;Yyq.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(){Tr==null&&(Tr=document.createElement("tp-yt-paper-tooltip"),Tr.offset=8,Tr.fitToVisibleBounds=!0)},
onMouseOver_:function(I){if(I=_.$F(I.target,function(F){return F==this||F.getAttribute&&F.getAttribute("shared-tooltip-text")}.bind(this),!0)){var C=I.getAttribute("shared-tooltip-text");
if(C){var y=this,k=null;I!=this&&(I.tagName.toLowerCase()in GH5?y=I.parentElement:y=I,I.id&&(k=I.id));this.polymerController.createTooltipIfRequired_();if(Tr.parentElement!=y||Tr.for!=k)(0,_.IH)(Tr).textContent=C,_.f(y).appendChild(Tr),Tr.for=k,Tr.animationDelay=this.polymerController.sharedTooltipAnimationDelay,Tr.position=this.polymerController.sharedTooltipPosition}}}};var cq=function(){return _.q.apply(this,arguments)||this};
_.R(cq,_.q);cq.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]]"}}}}}};
cq.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","img")};
cq.prototype.colorChanged=function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.color)==null?void 0:(y=C.basicColorPaletteData)==null?void 0:y.foregroundBodyColor;k&&(this.rgbBadgeColor=_.lg(k));_.f(this.hostElement).querySelector("#icon").style.color=this.rgbBadgeColor};
cq.prototype.tooltipChanged=function(){var I;((I=this.data)==null?0:I.tooltip)?this.hostElement.setAttribute("aria-label",this.data.tooltip):this.hostElement.removeAttribute("aria-label")};
cq.prototype.tooltipChanged=cq.prototype.tooltipChanged;cq.prototype.colorChanged=cq.prototype.colorChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(Yyq.YtSharedTooltipBehavior),_.h("design:type",Object)],cq.prototype,"ytSharedTooltipBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cq.prototype,"data",void 0);
_.E([_.d({value:"#4285F4"}),_.h("design:type",String)],cq.prototype,"rgbBadgeColor",void 0);_.E([_.FI("data.color"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cq.prototype,"colorChanged",null);_.E([_.FI("data.tooltip"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cq.prototype,"tooltipChanged",null);cq=_.E([_.m({is:"ytd-sponsor-comment-badge-renderer",disableElementRegistration:!0})],cq);
_.Z(cq,"ytd-sponsor-comment-badge-renderer",function(){if(bTw!==void 0)return bTw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return bTw=I},{mode:1});var fKq;var SyS;var en=function(){return _.q.apply(this,arguments)||this};
_.R(en,_.q);en.prototype.computeState=function(I){switch(I==null?void 0:I.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"}};
en.prototype.updateStateIdentifier=function(I){if(this.viewModel.triStateKey){var C=this.viewModel.triStateKey;this.ytdReduxBehavior.dispatch(_.bY("triStateButtonStateEntityPayload",C,{key:C,stateIdentifier:I}))}};
en.prototype.onClick=function(){var I=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(){I.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")},
onServerError:function(){I.updateStateIdentifier("TRI_STATE_IDENTIFIER_UNTOGGLED_STATE")}}})):this.updateStateIdentifier("TRI_STATE_IDENTIFIER_TOGGLED_STATE")}};
_.H1.Object.defineProperties(en.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 I;return((I=this.data)==null?void 0:I.buttonText)||""}}});
_.E([_.d(),_.h("design:type",Object)],en.prototype,"viewModel",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],en.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],en.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],en.prototype,"ytRendererBehavior",void 0);_.E([_.d({selector:Kfm,selectorArgs:["viewModel.triStateKey"]}),_.h("design:type",Object)],en.prototype,"triStateButtonStateEntity",void 0);
_.E([_.d({computed:"computeState(triStateButtonStateEntity)",reflectToAttribute:!0}),_.h("design:type",String)],en.prototype,"state",void 0);_.E([_.v("viewModel","state"),_.h("design:type",Object),_.h("design:paramtypes",[])],en.prototype,"data",null);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],en.prototype,"buttonText",null);en=_.E([_.m({disableElementRegistration:!0,is:"ytd-tri-state-button-view-model"})],en);
_.Z(en,"ytd-tri-state-button-view-model",function(){if(SyS!==void 0)return SyS;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return SyS=I},{mode:1});var KJ8;var ARb;var r_=function(){var I=_.q.apply(this,arguments)||this;I.defaultIconToFilled=!_.V("kevlar_fill_comment_chip_icon_killswitch");return I};
_.R(r_,_.q);r_.prototype.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"}};
r_.prototype.dataChanged=function(){if(this.data){var I,C;((I=this.data.chipColorPalette)==null?0:I.backgroundColor)&&((C=this.data.chipColorPalette)==null?0:C.foregroundTitleColor)&&_.CK(this.hostElement,{"--yt-pdg-comment-chip-background-color":_.Xl(this.data.chipColorPalette.backgroundColor),"--yt-pdg-comment-chip-font-color":_.Xl(this.data.chipColorPalette.foregroundTitleColor)});var y;((y=this.data)==null?0:y.command)?(_.CK(this.hostElement,{"--yt-pdg-comment-chip-cursor":"pointer"}),this.hostElement.setAttribute("role",
"button"),this.hostElement.setAttribute("tabindex","0")):(_.CK(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}};
r_.prototype.onTap=function(){var I;if(this.data&&(I=this.data)!=null&&I.command){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.command)}};
r_.prototype.getIconSize=function(){return _.V("kevlar_fill_comment_chip_icon_killswitch")?24:12};
r_.prototype.onTap=r_.prototype.onTap;r_.prototype.dataChanged=r_.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],r_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],r_.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Ds),_.h("design:type",Object)],r_.prototype,"ironA11yKeysBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],r_.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],r_.prototype,"basePriceText",void 0);_.E([_.d(),_.h("design:type",Object)],r_.prototype,"chipIcon",void 0);_.E([_.d(),_.h("design:type",Object)],r_.prototype,"defaultIconToFilled",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r_.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r_.prototype,"onTap",null);
r_=_.E([_.lT({is:"yt-pdg-comment-chip-renderer",disableElementRegistration:!0})],r_);
_.Z(r_,"yt-pdg-comment-chip-renderer",function(){if(ARb===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;KJ8===void 0&&(KJ8=document.createElement("template"));var k=KJ8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ARb=I}I=ARb;return I},{mode:2});var iV=function(){var I=_.q.apply(this,arguments)||this;I.useSmallAvatars=_.V("small_avatars_for_comments");I.webWatchCompactComments=_.V("web_watch_compact_comments");I.editDialog=null;return I};
_.R(iV,_.q);_.u=iV.prototype;_.u.onShow=function(){_.KA("cmv",void 0,"wn_comments")};
_.u.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"}}}};
_.u.detached=function(){this.editDialog=null;this.expander.reset()};
_.u.updateBackgroundColor=function(){if(this.backgroundColor){var I={"--ytd-comment-paid-background-color":_.Xl(this.backgroundColor),"--ytd-decorated-comment-background-offset-left":"8px","--ytd-decorated-comment-background-offset-top":"8px"};_.CK(this.hostElement,I)}else _.CK(this.hostElement,{"--ytd-comment-paid-background-color":"initial"})};
_.u.resetExpander=function(){var I;(I=this.expander)==null||I.reset()};
_.u.openEditDialog=function(I){I.dialog&&(this.editDialog=I.dialog,this.editReplyDialogContainer?this.editReplyDialogContainer.openDialog():this.editCommentDialogContainer&&this.editCommentDialogContainer.focus())};
_.u.onYtNavigate=function(I){var C=I.detail.endpoint;if(C=_.l(C,_.eXm)||_.l(C,_.rp5))I.stopPropagation(),this.openEditDialog(C)};
_.u.onYtCommentboxDismiss=function(){this.editDialog=null;_.CK(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":"0px"})};
_.u.onAuthorThumbnailClicked=function(){var I=this;_.V("enable_profile_cards_on_comments")&&this!=null&&this.authorThumbnailEndpoint&&this.ytComponentBehavior.resolveCommand(this.authorThumbnailEndpoint,{commandController:{onSuccess:function(C,y){I.onAuthorThumbnailEndpointSuccess(y)},
onServerError:function(C,y){_.SN(new _.ph("Failed to resolve the command",y))}}})};
_.u.onAuthorThumbnailEndpointSuccess=function(I){if((I=I==null?void 0:I.popupCommand)&&this.authorThumbnailAnchor){this.ytComponentBehavior.resolveCommand(I,{form:{element:this.authorThumbnailAnchor}});this.logScreenVe();I=I==null?void 0:I.clickTrackingParams;var C=_.fq();I&&C&&_.e2().graftServerVe(I,C)}};
_.u.logScreenVe=function(){_.s7(_.e2(),66557)};
_.u.onYtCommentboxResize=function(I){var C;(I==null?0:(C=I.detail)==null?0:C.height)&&_.CK(this.hostElement,{"--ytd-decorated-comment-reply-box-height-offset":I.detail.height+"px"})};
_.H1.Object.defineProperties(iV.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 I,C=(I=this.commentEntity)==null?void 0:I.author;return C&&(C.isCreator||C.isVerified||C.isArtist)?{renderer:{authorEndpoint:C.channelPageEndpoint?_.l(C.channelPageEndpoint,_.$$):_.l(C.channelCommand,_.$$),authorText:{runs:[{text:C.displayName}]},color:C.isCreator?{basicColorPaletteData:{backgroundColor:Number.parseInt("ff888888",16),foregroundTitleColor:Number.parseInt("ffffffff",16)}}:void 0,icon:C.isArtist?{iconType:"AUDIO_BADGE"}:
C.isVerified?{iconType:C.isCreator?"CHECK_CIRCLE_THICK":"CHECK"}:void 0,iconTooltip:C.isArtist||C.isVerified?C.innerBadgeA11y:void 0}}:null}},
hasAuthorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.authorCommentBadge}},
sponsorCommentBadge:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.commentEntity)==null?void 0:I.author;return C!=null&&C.sponsorBadgeUrl?{renderer:{customBadge:{thumbnails:[{url:C.sponsorBadgeUrl}]},tooltip:C.sponsorBadgeA11y}}:null}},
hasSponsorBadge:{configurable:!0,enumerable:!0,get:function(){return!!this.sponsorCommentBadge}},
pdgCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return _.l((I=this.commentSurfaceEntity)==null?void 0:I.pdgCommentChip,_.qVm)||null}},
hasVoiceReply:{configurable:!0,enumerable:!0,get:function(){var I;return this.voiceReplyContainerViewModel&&((I=this.voiceReplyContainerViewModel)==null?void 0:I.transcriptText)}},
voiceReplyContainerViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return _.l((I=this.commentSurfaceEntity)==null?void 0:I.voiceReplyContainerViewModel,Rhb)||null}},
voiceReplyUnavailableText:{configurable:!0,enumerable:!0,get:function(){var I;return this.voiceReplyContainerViewModel&&(I=this.voiceReplyContainerViewModel)!=null&&I.voiceReplyUnavailableText?this.voiceReplyContainerViewModel.voiceReplyUnavailableText:null}},
viewModel:{configurable:!0,enumerable:!0,get:function(){return this.data||{}}},
backgroundColor:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.commentSurfaceEntity)==null?void 0:I.commentBackgroundColor)!=null?C:null}},
optimalReadingWidthComments:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_compact_comments")}},
isReply:{configurable:!0,enumerable:!0,get:function(){var I,C;return(((I=this.commentEntity)==null?void 0:(C=I.properties)==null?void 0:C.replyLevel)||0)>0}},
authorThumbnailEndpoint:{configurable:!0,enumerable:!0,get:function(){var I,C;if(_.V("enable_profile_cards_on_comments")&&((I=this.commentEntity)==null?0:(C=I.author)==null?0:C.profileCardEndpoint)&&this.viewModel.allowProfileCard){var y,k;return _.l((y=this.commentEntity)==null?void 0:(k=y.author)==null?void 0:k.profileCardEndpoint,_.$$)}var F,z;return _.l((F=this.commentEntity)==null?void 0:(z=F.avatar)==null?void 0:z.endpoint,_.$$)}},
authorNameEndpoint:{configurable:!0,enumerable:!0,get:function(){var I,C;if(_.V("enable_profile_cards_on_comments")&&((I=this.commentEntity)==null?0:(C=I.author)==null?0:C.channelPageEndpoint)){var y,k;return _.l((y=this.commentEntity)==null?void 0:(k=y.author)==null?void 0:k.channelPageEndpoint,_.$$)}var F,z;return _.l((F=this.commentEntity)==null?void 0:(z=F.avatar)==null?void 0:z.endpoint,_.$$)}},
authorThumbnail:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F=(I=this.commentEntity)==null?void 0:(C=I.avatar)==null?void 0:(y=C.image)==null?void 0:(k=y.sources)==null?void 0:k[0];return F?{thumbnails:[{url:F.url,width:F.width,height:F.height}]}:null}},
authorTextClass:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.commentEntity)==null?0:(C=I.author)==null?0:C.isCreator)?"channel-owner":""}},
authorChannelName:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.commentEntity)==null?void 0:(C=I.author)==null?void 0:C.displayName)||""}},
publishedTime:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.commentEntity)==null?void 0:(C=I.properties)==null?void 0:C.publishedTime)||null}},
publishedTimeCommand:{configurable:!0,enumerable:!0,get:function(){var I;return _.l((I=this.commentSurfaceEntity)==null?void 0:I.publishedTimeCommand,_.$$)||null}},
contentText:{configurable:!0,enumerable:!0,get:function(){var I,C;if(((I=this.commentEntity)==null?0:I.translatedContent)&&((C=this.translateButtonState)==null?void 0:C.stateIdentifier)==="TRI_STATE_IDENTIFIER_TOGGLED_STATE")return this.commentEntity.translatedContent;var y;if((y=this.voiceReplyContainerViewModel)==null?0:y.transcriptText)return this.voiceReplyContainerViewModel.transcriptText;var k,F;return((k=this.commentEntity)==null?void 0:(F=k.properties)==null?void 0:F.content)||null}},
shouldShowReadMoreInitially:{configurable:!0,enumerable:!0,get:function(){return!1}},
expandText:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.commentSharedEntity)==null?void 0:(C=I.strings)==null?void 0:C.expandText)||""}},
collapseText:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.commentSharedEntity)==null?void 0:(C=I.strings)==null?void 0:C.collapseText)||""}},
shouldShowTranslateButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.commentEntity)==null||!I.isTranslationAvailable)}},
translateButton:{configurable:!0,enumerable:!0,get:function(){if(!this.commentEntity||!this.commentSharedEntity)return{};var I,C,y=(C=_.l((I=this.viewModel)==null?void 0:I.translateButton,$Yd))!=null?C:{},k,F,z,c,r,w,L,D,p,Q,X;return Object.assign({},y,{untoggledStateData:Object.assign({},y.untoggledStateData,{buttonText:(k=this.commentEntity)==null?void 0:(F=k.translateData)==null?void 0:F.text}),togglingStateData:Object.assign({},y.togglingStateData,{buttonText:(z=this.commentSharedEntity)==null?
void 0:(c=z.strings)==null?void 0:c.translatingText}),toggledStateData:Object.assign({},y.toggledStateData,{buttonText:(r=this.commentSharedEntity)==null?void 0:(w=r.strings)==null?void 0:w.seeOriginalText}),transitionCommand:((L=this.commentEntity)==null?0:L.translatedContent)?void 0:_.l((D=this.commentEntity)==null?void 0:(p=D.translateData)==null?void 0:p.translateComment,_.$$),triStateKey:(Q=this.commentEntity)==null?void 0:(X=Q.properties)==null?void 0:X.translateButtonEntityKey})}},
overflowMenuRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((C=_.l(_.l((I=this.toolbarSurface)==null?void 0:I.menuCommand,_.$$),i6q))==null?void 0:(y=C.menu)==null?void 0:y.menuRenderer)||null}}});
iV.prototype.onYtCommentboxResize=iV.prototype.onYtCommentboxResize;iV.prototype.onYtCommentboxDismiss=iV.prototype.onYtCommentboxDismiss;iV.prototype.onYtNavigate=iV.prototype.onYtNavigate;iV.prototype.resetExpander=iV.prototype.resetExpander;iV.prototype.updateBackgroundColor=iV.prototype.updateBackgroundColor;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],iV.prototype,"ytdReduxBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],iV.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#author-thumbnail > button"),_.h("design:type",HTMLElement)],iV.prototype,"authorThumbnailAnchor",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],iV.prototype,"linked",null);
_.E([_.v("viewModel","linked"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"linkedCommentBadge",null);_.E([_.d({reflectToAttribute:!0}),_.v("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],iV.prototype,"pinned",null);_.E([_.v("viewModel","pinned"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"pinnedCommentBadge",null);
_.E([_.v("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"authorCommentBadge",null);_.E([_.d({reflectToAttribute:!0}),_.v("authorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"hasAuthorBadge",null);_.E([_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"sponsorCommentBadge",null);
_.E([_.d({reflectToAttribute:!0}),_.v("sponsorCommentBadge"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"hasSponsorBadge",null);_.E([_.v("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"pdgCommentChipRenderer",null);_.E([_.d({reflectToAttribute:!0}),_.v("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"hasVoiceReply",null);
_.E([_.v("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"voiceReplyContainerViewModel",null);_.E([_.v("voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"voiceReplyUnavailableText",null);_.E([_.d(),_.h("design:type",Object)],iV.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"viewModel",null);
_.E([_.d({selector:function(I,C){return _.cg(I.entities,"commentSharedEntityPayload",C)},
selectorArgs:["viewModel.sharedKey"]}),_.h("design:type",Object)],iV.prototype,"commentSharedEntity",void 0);_.E([_.d({selector:function(I,C){return _.cg(I.entities,"commentEntityPayload",C)},
selectorArgs:["viewModel.commentKey"]}),_.h("design:type",Object)],iV.prototype,"commentEntity",void 0);_.E([_.d({selector:function(I,C){return _.cg(I.entities,"commentSurfaceEntityPayload",C)},
selectorArgs:["viewModel.commentSurfaceKey"]}),_.h("design:type",Object)],iV.prototype,"commentSurfaceEntity",void 0);_.E([_.d({selector:SOz,selectorArgs:["viewModel.toolbarSurfaceKey"]}),_.h("design:type",Object)],iV.prototype,"toolbarSurface",void 0);_.E([_.d({selector:Kfm,selectorArgs:["commentEntity.properties.translateButtonEntityKey"]}),_.h("design:type",Object)],iV.prototype,"translateButtonState",void 0);
_.E([_.v("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"backgroundColor",null);_.E([_.d({reflectToAttribute:!0}),_.v("viewModel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],iV.prototype,"optimalReadingWidthComments",null);_.E([_.z$("ytd-expander"),_.h("design:type",Object)],iV.prototype,"expander",void 0);
_.E([_.FI("backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iV.prototype,"updateBackgroundColor",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iV.prototype,"useSmallAvatars",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iV.prototype,"webWatchCompactComments",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"isReply",null);
_.E([_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"authorThumbnailEndpoint",null);_.E([_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"authorNameEndpoint",null);_.E([_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"authorThumbnail",null);_.E([_.v("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],iV.prototype,"authorTextClass",null);
_.E([_.v("commentEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],iV.prototype,"authorChannelName",null);_.E([_.v("commentEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"publishedTime",null);_.E([_.v("commentSurfaceEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"publishedTimeCommand",null);
_.E([_.v("commentEntity","translateButtonState","voiceReplyContainerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"contentText",null);_.E([_.FI("contentText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iV.prototype,"resetExpander",null);_.E([_.v("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],iV.prototype,"shouldShowReadMoreInitially",null);
_.E([_.v("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],iV.prototype,"expandText",null);_.E([_.v("commentSharedEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],iV.prototype,"collapseText",null);_.E([_.v("commentEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],iV.prototype,"shouldShowTranslateButton",null);
_.E([_.v("commentEntity","commentSharedEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"translateButton",null);_.E([_.v("toolbarSurface"),_.h("design:type",Object),_.h("design:paramtypes",[])],iV.prototype,"overflowMenuRenderer",null);_.E([_.d(),_.h("design:type",Object)],iV.prototype,"editDialog",void 0);_.E([_.z$("ytd-comment-dialog-renderer"),_.h("design:type",Object)],iV.prototype,"editCommentDialogContainer",void 0);
_.E([_.z$("ytd-comment-reply-dialog-renderer"),_.h("design:type",Object)],iV.prototype,"editReplyDialogContainer",void 0);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iV.prototype,"onYtNavigate",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iV.prototype,"onYtCommentboxDismiss",null);
_.E([_.km("yt-commentbox-resize"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],iV.prototype,"onYtCommentboxResize",null);iV=_.E([_.m({disableElementRegistration:!0,is:"ytd-comment-view-model"})],iV);
_.Z(iV,"ytd-comment-view-model",function(){if(fKq!==void 0)return fKq;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="paid-comment-background" class="style-scope ytd-comment-view-model"></div>\n<div id="linked-comment-badge" class="style-scope ytd-comment-view-model"></div>\n\n<div id="body" hidden="[[editDialog]]" class="style-scope ytd-comment-view-model">\n  \n  <div id="author-thumbnail" class="style-scope ytd-comment-view-model">\n    <button id="author-thumbnail-button" aria-label="[[authorChannelName]]" on-click="onAuthorThumbnailClicked" class="style-scope ytd-comment-view-model">\n      <yt-img-shadow fit="" height="40" thumbnail="[[authorThumbnail]]" width="40" class="style-scope ytd-comment-view-model">\n      </yt-img-shadow>\n    </button>\n  </div>\n  <div id="main" class="style-scope ytd-comment-view-model">\n    <div id="header" class="style-scope ytd-comment-view-model">\n      <div id="pinned-comment-badge" class="style-scope ytd-comment-view-model"></div>\n      <div id="header-author" class="style-scope ytd-comment-view-model">\n        \n        <h3 class="style-scope ytd-comment-view-model"> \n          <a id="author-text" class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeOptionalHref_(authorNameEndpoint)]]" data="[[authorNameEndpoint]]" hidden="[[authorCommentBadge]]">\n            <span class$="[[authorTextClass]] style-scope ytd-comment-view-model">\n              [[authorChannelName]]\n            </span>\n          </a>\n        </h3>\n        <span id="author-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span id="sponsor-comment-badge" class="style-scope ytd-comment-view-model"></span>\n        <span dir="auto" id="published-time-text" class="style-scope ytd-comment-view-model">\n          <a class="yt-simple-endpoint style-scope ytd-comment-view-model" href$="[[computeHref_(publishedTimeCommand)]]" data="[[publishedTimeCommand]]">\n            [[publishedTime]]\n          </a>\n        </span>\n      </div>\n    </div>\n    \n    <ytd-expander id="expander" can-toggle="[[shouldShowReadMoreInitially]]" max-number-of-lines="4" class="style-scope ytd-comment-view-model">\n      \n      <yt-pdg-comment-chip-renderer id="paid-comment-chip" slot="content" data="[[pdgCommentChipRenderer]]" hidden="[[!pdgCommentChipRenderer]]" class="style-scope ytd-comment-view-model">\n      </yt-pdg-comment-chip-renderer>\n      <yt-attributed-string id="content-text" slot="content" data="[[contentText]]" user-input="" class="style-scope ytd-comment-view-model">\n      </yt-attributed-string>\n      <span class="more-button style-scope ytd-comment-view-model" slot="more-button">[[expandText]]</span>\n      <span class="less-button style-scope ytd-comment-view-model" slot="less-button">[[collapseText]]</span>\n    </ytd-expander>\n    <yt-attributed-string id="error-text" data="[[voiceReplyUnavailableText]]" hidden="[[!voiceReplyUnavailableText]]" class="style-scope ytd-comment-view-model">\n    </yt-attributed-string>\n    <ytd-tri-state-button-view-model class="translate-button style-scope ytd-comment-view-model" hidden="[[!shouldShowTranslateButton]]" view-model="[[translateButton]]">\n    </ytd-tri-state-button-view-model>\n    <ytd-comment-engagement-bar id="action-buttons" comment-strings="[[commentSharedEntity.strings]]" is-reply="[[isReply]]" toolbar-data="[[commentEntity.toolbar]]" toolbar-shared-data="[[commentSharedEntity.toolbarShared]]" toolbar-state-key="[[viewModel.toolbarStateKey]]" toolbar-surface-key="[[viewModel.toolbarSurfaceKey]]" class="style-scope ytd-comment-view-model">\n    </ytd-comment-engagement-bar>\n  </div>\n  \n  <div id="action-menu" class="style-scope ytd-comment-view-model">\n    <ytd-menu-renderer data="[[overflowMenuRenderer]]" class="style-scope ytd-comment-view-model"></ytd-menu-renderer>\n  </div>\n</div>\n<div id="edit-dialog" hidden="[[!editDialog]]" class="style-scope ytd-comment-view-model"></div>\n\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fKq=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var w_=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_modern_buttons");I.isWatchGrid=_.V("kevlar_watch_grid");I.buttonOverrides={style:"call-to-action"};I.JSC$13639_spinnerEl=null;return I};
_.R(w_,_.q);_.u=w_.prototype;_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.u.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]]"}}}}}};
_.u.attached=function(){this.isShowRepliesVisible=!0};
_.u.dataChanged=function(){var I=this.expanderContents;I&&(I.hidden=!0);this.isLoading=!1};
_.u.triggerFirstContinuation=function(){this.continuationItemRenderer&&!this.continuationItemRenderer.buttonRenderer&&(this.continuationItemRenderer.showButton=!1)};
_.u.isLoadingChanged=function(){this.isLoading&&!this.JSC$13639_spinnerEl&&(this.JSC$13639_spinnerEl=document.createElement("tp-yt-paper-spinner-lite"),_.f(this.expanderContents).appendChild(this.JSC$13639_spinnerEl));this.JSC$13639_spinnerEl&&(this.JSC$13639_spinnerEl.active=this.isLoading);if(this.isLoading)this.contents.classList.add("reloading");else{var I;(I=this.contents)==null||I.classList.remove("reloading")}};
_.u.handleIsShowMoreTap=function(){this.isShowRepliesVisible=!1;this.triggerFirstContinuation();var I=_.l(this.data.viewReplies,_.fZ);I&&this.ytRendererBehavior.logExplicitClick(I)};
_.u.handleIsShowLessTap=function(){this.isShowRepliesVisible=!0;var I=_.l(this.data.hideReplies,_.fZ);I&&this.ytRendererBehavior.logExplicitClick(I)};
_.u.isShowMoreChanged=function(){var I=_.f(this.hostElement).querySelector("#expander-contents");I&&(I.hidden=this.isShowRepliesVisible)};
_.u.computeAlign=function(){if(this.modern){var I;return!((I=this.data)==null?0:I.viewRepliesCreatorThumbnail)}};
_.H1.Object.defineProperties(w_.prototype,{hasContinuation:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.data)==null?void 0:I.contents,y;return!((y=this.data)==null||!y.continuations)||!!C&&C.length>0&&!!C[C.length-1].continuationItemRenderer}}});
w_.prototype.isShowMoreChanged=w_.prototype.isShowMoreChanged;w_.prototype.isLoadingChanged=w_.prototype.isLoadingChanged;w_.prototype.triggerFirstContinuation=w_.prototype.triggerFirstContinuation;w_.prototype.dataChanged=w_.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],w_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],w_.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.b1),_.h("design:type",Object)],w_.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],w_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],w_.prototype,"modern",void 0);_.E([_.d(),_.h("design:type",Boolean)],w_.prototype,"isLoading",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],w_.prototype,"isShowRepliesVisible",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],w_.prototype,"useNewFormatting",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],w_.prototype,"isWatchGrid",void 0);_.E([_.d(),_.h("design:type",Object)],w_.prototype,"buttonOverrides",void 0);_.E([_.z$("#expander-contents"),_.h("design:type",HTMLElement)],w_.prototype,"expanderContents",void 0);_.E([_.z$("ytd-continuation-item-renderer"),_.h("design:type",Object)],w_.prototype,"continuationItemRenderer",void 0);_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],w_.prototype,"contents",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w_.prototype,"dataChanged",null);_.E([_.v("data.continuations","data.contents"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],w_.prototype,"hasContinuation",null);_.E([_.km("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w_.prototype,"triggerFirstContinuation",null);
_.E([_.FI("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w_.prototype,"isLoadingChanged",null);_.E([_.FI("isShowRepliesVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w_.prototype,"isShowMoreChanged",null);w_=_.E([_.m({is:"ytd-comment-replies-renderer",disableElementRegistration:!0})],w_);
_.Z(w_,"ytd-comment-replies-renderer",function(){if(X_P!==void 0)return X_P;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-replies-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="expander" hidden="[[!hasContinuation]]" class="style-scope ytd-comment-replies-renderer">\n  <div class="expander-header style-scope ytd-comment-replies-renderer" teaser$="[[data.viewRepliesCreatorThumbnail]]">\n    <div class="more-button style-scope ytd-comment-replies-renderer" aria-expanded="false" hidden="[[!isShowRepliesVisible]]" on-click="handleIsShowMoreTap">\n      <template is="dom-if" if="[[data.viewRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="more-replies-icon" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.viewRepliesIcon.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="more-replies" class="more-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.viewReplies.buttonRenderer]]" hidden="[[!isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n    <div class="less-button style-scope ytd-comment-replies-renderer" aria-expanded="true" hidden="[[isShowRepliesVisible]]" on-click="handleIsShowLessTap">\n      <template is="dom-if" if="[[data.hideRepliesIcon]]" class="style-scope ytd-comment-replies-renderer">\n        <ytd-button-renderer id="less-replies-icon" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[modern]]" data="[[data.hideRepliesIcon.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n        </ytd-button-renderer>\n      </template>\n      <template is="dom-if" if="[[data.viewRepliesCreatorThumbnail]]" class="style-scope ytd-comment-replies-renderer">\n        <div id="creator-thumbnail" class="creator-thumbnail style-scope ytd-comment-replies-renderer">\n            <yt-img-shadow fit="" height="24" thumbnail="[[data.viewRepliesCreatorThumbnail]]" width="24" class="style-scope ytd-comment-replies-renderer">\n            </yt-img-shadow>\n        </div>\n        <span class="dot style-scope ytd-comment-replies-renderer">\u00b7</span>\n      </template>\n      <ytd-button-renderer id="less-replies" class="less-button style-scope ytd-comment-replies-renderer" align-by-text="[[computeAlign(modern, data.viewRepliesCreatorThumbnail)]]" data="[[data.hideReplies.buttonRenderer]]" hidden="[[isShowRepliesVisible]]" noink="" overrides="[[buttonOverrides]]">\n      </ytd-button-renderer>\n    </div>\n  </div>\n  <div id="expander-contents" class="style-scope ytd-comment-replies-renderer">\n    <div id="contents" class="style-scope ytd-comment-replies-renderer"></div>\n    <div class="cont-button style-scope ytd-comment-replies-renderer" id="continuation"></div>\n  </div>\n</div>\n<div hidden="[[!isShowRepliesVisible]]" id="teaser-replies" class="style-scope ytd-comment-replies-renderer"></div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return X_P=I},{mode:1});var gi5;var ns=function(){var I=_.q.apply(this,arguments)||this;I.isOpen=!1;I.commentDialog=null;I.useSmallAvatars=_.V("small_avatars_for_comments");I.useSmallAvatarsEngagementPanelOnly=_.V("small_avatars_for_comments_ep");I.placeholderFocusListener=null;I.actionMap={"yt-create-comment-action":"onCreateCommentAction","yt-hide-identity-chip-action":"onHideIdentityChip"};return I};
_.R(ns,_.q);_.u=ns.prototype;_.u.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]]"}}}}}};
_.u.ready=function(){var I=this,C=_.f(this.hostElement).querySelector("#placeholder-area"),y=_.f(this.hostElement).querySelector("#simplebox-placeholder"),k=function(F){F.stopPropagation();F instanceof KeyboardEvent&&F.type==="keypress"&&F.keyCode!==13&&F.keyCode!==32||I.openDialog()};
this.placeholderFocusListener=k;y.addEventListener("focus",this.placeholderFocusListener);C.addEventListener("tap",k);C.addEventListener("keypress",k)};
_.u.maybeRemoveFocusEventListener=function(){var I;(I=this.data)!=null&&I.prepareAccountEndpoint&&!_.V("web_comments_simplebox_modal_focus_on_tap_ks")&&(I=_.f(this.hostElement).querySelector("#simplebox-placeholder"),this.placeholderFocusListener&&(I.removeEventListener("focus",this.placeholderFocusListener),this.placeholderFocusListener=null))};
_.u.dataChanged=function(){this.maybeRemoveFocusEventListener();this.commentDialog=null;this.isOpen=!1;this.showCreateDialog&&this.openDialog()};
_.u.openDialog=function(){this.data&&(this.data.prepareAccountEndpoint?_.V("web_comment_simplebox_resolve_polymer_command_ks")?_.FW.instance.resolveCommand(this.data.prepareAccountEndpoint):_.uU(this.data.prepareAccountEndpoint,this.hostElement):(this.commentDialog||(this.commentDialog={commentDialogRenderer:this.computeCommentDialog(this.data)}),this.isOpen=!0,_.f(this.hostElement).querySelector("#comment-dialog").firstElementChild.focus()))};
_.u.onYtCommentboxDismiss=function(I){I.stopPropagation();this.isOpen=!1};
_.u.onCreateCommentAction=function(I){this.get("createCommentAction.contents",I)&&(this.isOpen=!1)};
_.u.computeCommentDialog=function(I){return{placeholderText:I.placeholderText,authorThumbnail:I.authorThumbnail,submitButton:I.submitButton,imageButton:I.imageButton,cancelButton:I.cancelButton,emojiButton:I.emojiButton,emojis:I.emojis,emojiPicker:I.emojiPicker,aadcGuidelinesStateEntityKey:I.aadcGuidelinesStateEntityKey,openAadcDialog:I.openAadcDialog,unicodeEmojisUrl:I.unicodeEmojisUrl}};
_.u.onHideIdentityChip=function(I){_.l(I,DYS)&&this.set("data.placeholderText",_.l(I,DYS).placeholderText)};
ns.prototype.onYtCommentboxDismiss=ns.prototype.onYtCommentboxDismiss;ns.prototype.dataChanged=ns.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ns.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ns.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ns.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],ns.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],ns.prototype,"isOpen",void 0);_.E([_.d(),_.h("design:type",Object)],ns.prototype,"commentDialog",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ns.prototype,"engagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ns.prototype,"useSmallAvatars",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ns.prototype,"useSmallAvatarsEngagementPanelOnly",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ns.prototype,"enableCreationBox",void 0);_.E([_.d(),_.h("design:type",Boolean)],ns.prototype,"showCreateDialog",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ns.prototype,"dataChanged",null);
_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ns.prototype,"onYtCommentboxDismiss",null);ns=_.E([_.m({is:"ytd-comment-simplebox-renderer",disableElementRegistration:!0})],ns);
_.Z(ns,"ytd-comment-simplebox-renderer",function(){if(gi5!==void 0)return gi5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return gi5=I},{mode:1});var viS;_.jz("itemSectionRenderer","commentThreadRenderer","ytd-comment-thread-renderer");var Pq=function(){var I=_.q.apply(this,arguments)||this;I.addHoverEffect=_.V("swatcheroo_comments_hover_effect");return I};
_.R(Pq,_.q);Pq.prototype.onTap=function(I){if(this.addHoverEffect&&!this.engagementPanel&&!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||_.uU({changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},this.hostElement)}};
Pq.prototype.configureRendererStamper=function(){return{"data.replies":{id:"replies",mapping:{commentRepliesRenderer:{component:"ytd-comment-replies-renderer",noInjection:!0}}}}};
_.H1.Object.defineProperties(Pq.prototype,{commentViewModel:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)!=null&&I.commentViewModel)return _.l(this.data.commentViewModel,Xzq)}}});
Pq.prototype.onTap=Pq.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Pq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Pq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Pq.prototype,"addHoverEffect",void 0);_.E([_.d(),_.h("design:type",Object)],Pq.prototype,"data",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pq.prototype,"commentViewModel",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Pq.prototype,"engagementPanel",void 0);_.E([_.km("tap"),_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Pq.prototype,"onTap",null);Pq=_.E([_.m({is:"ytd-comment-thread-renderer",disableElementRegistration:!0})],Pq);
_.Z(Pq,"ytd-comment-thread-renderer",function(){if(viS!==void 0)return viS;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comment-thread-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-comment-view-model id="comment" data="[[commentViewModel]]" class="style-scope ytd-comment-thread-renderer"> </ytd-comment-view-model>\n<div id="replies" hidden="[[!data.replies]]" class="style-scope ytd-comment-thread-renderer"></div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return viS=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var WJP;var Ls=function(){var I=_.q.apply(this,arguments)||this;I.modernTypography=_.V("web_modern_typography");I.compactHeader=_.V("web_watch_compact_comments_header");I.hidePanelButton=!1;I.isPostSchedulingEnabled=_.V("enable_post_scheduling");I.hasFinishedStamping=!1;I.JSC$13657_handleOpenPostCommentDialogActionAfterStamp=!1;I.actionMap={"yt-signal-action-open-post-comment-dialog":"handleSignalActionOpenPostCommentDialogAction"};return I};
_.R(Ls,_.q);_.u=Ls.prototype;
_.u.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"}}}};
_.u.attached=function(){this.hasActionsChange&&this.observePrefilledBackstagePostDialog()};
_.u.onStampFinished=function(){this.hasFinishedStamping=!0;this.hasActionsChange&&this.observePrefilledBackstagePostDialog();this.JSC$13657_handleOpenPostCommentDialogActionAfterStamp&&this.handleSignalActionOpenPostCommentDialogAction()};
_.u.onYtServiceRequestSent=function(I,C){if(!_.V("kevlar_command_handler")&&C.actions)for(I=0;I<C.actions.length;I++){var y=C.actions[I];_.l(y,hBP)&&_.f(this.hostElement).querySelector("#backstage-post-dialog > ytd-backstage-post-dialog-renderer").openSchedulingPanel(_.l(y,hBP))}};
_.u.observePrefilledBackstagePostDialog=function(){if(this.hasFinishedStamping){this.hasActionsChange=!1;var I;if(this.getPrefilledBackstagePostDialog((I=this.data)==null?void 0:I.actions)){_.f(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!1;var C=_.f(this.hostElement).querySelector("#backstage-post-dialog").firstElementChild;C&&_.hn(this,function(){C.focus();C.openDialog&&C.openDialog()})}}else this.hasActionsChange=!0};
_.u.computeIsBackstage=function(I){return I};
_.u.onYtCommentboxDismiss=function(){_.f(this.hostElement).querySelector("#prefilled-dialog-header").hidden=!0;this.removePrefilledDialog(this.data)};
_.u.removePrefilledDialog=function(I){if(I==null?0:I.actions){for(var C=I.actions.length-1;C>=0;C--){var y=void 0;((y=_.l(I.actions[C],Toc))==null?0:y.dialog)&&delete I.actions[C]}this.set("data",void 0);this.set("data",I)}};
_.u.getPrefilledBackstagePostDialog=function(I){if(I)for(var C=0;C<I.length;C++){var y=I[C],k=void 0;if((k=_.l(y,Toc))==null?0:k.dialog)return _.l(y,Toc).dialog}return null};
_.u.computeBackstagePostDialog=function(I){return I&&(this.getPrefilledBackstagePostDialog(I.actions)||I.createRenderer)};
_.u.dataChanged=function(){if(this.data){var I=this.data.customEmojis,C=this.data.unicodeEmojisUrl;_.$p.clear();C&&_.YS0(_.$p,C);I&&_.$p.load(I)}};
_.u.handleSignalActionOpenPostCommentDialogAction=function(){var I=_.f(this.hostElement).querySelector("ytd-comment-simplebox-renderer");I?I.openDialog():this.JSC$13657_handleOpenPostCommentDialogActionAfterStamp=!0};
_.H1.Object.defineProperties(Ls.prototype,{useSpaceBetween:{configurable:!0,enumerable:!0,get:function(){return this.showCommentsPanelButton||_.V("kevlar_watch_grid")}},
showCommentsPanelButton:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z,c;return!this.hidePanelButton&&_.V("kevlar_watch_comments_panel_button")&&((c=_.l((I=this.data)==null?void 0:(C=I.sortMenu)==null?void 0:(y=C.sortFilterSubMenuRenderer)==null?void 0:(k=y.subMenuItems)==null?void 0:(F=k[0])==null?void 0:(z=F.serviceEndpoint)==null?void 0:z.commandMetadata,_.It))==null?void 0:c.apiUrl)==="/youtubei/v1/next"}},
commentsPanelButtonData:{configurable:!0,enumerable:!0,get:function(){if(this.showCommentsPanelButton)return{icon:{iconType:"EXPAND_ALL"},tooltip:_.PQ("MINIPLAYER_EXPAND_LABEL"),text:_.Ee(_.PQ("MINIPLAYER_EXPAND_LABEL")),command:{commandExecutorCommand:{commands:[{changeEngagementPanelVisibilityAction:{targetId:"engagement-panel-comments-section",visibility:"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"}},{scrollToEngagementPanelCommand:{targetId:"engagement-panel-comments-section"}}]}}}}}});
Ls.prototype.dataChanged=Ls.prototype.dataChanged;Ls.prototype.onYtCommentboxDismiss=Ls.prototype.onYtCommentboxDismiss;Ls.prototype.observePrefilledBackstagePostDialog=Ls.prototype.observePrefilledBackstagePostDialog;Ls.prototype.onYtServiceRequestSent=Ls.prototype.onYtServiceRequestSent;Ls.prototype.onStampFinished=Ls.prototype.onStampFinished;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ls.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ls.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ls.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ls.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ls.prototype,"modernTypography",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ls.prototype,"compactHeader",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ls.prototype,"engagementPanel",void 0);_.E([_.d(),_.h("design:type",Object)],Ls.prototype,"hidePanelButton",void 0);_.E([_.d({computed:"computeIsBackstage(data.isBackstageContent)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Ls.prototype,"isBackstage",void 0);_.E([_.d({readOnly:!0,computed:"computeBackstagePostDialog(data)"}),_.h("design:type",Object)],Ls.prototype,"backstagePostDialog",void 0);
_.E([_.d(),_.h("design:type",Object)],Ls.prototype,"isPostSchedulingEnabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ls.prototype,"useSpaceBetween",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","hidePanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ls.prototype,"showCommentsPanelButton",null);
_.E([_.v("data","showCommentsPanelButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ls.prototype,"commentsPanelButtonData",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ls.prototype,"onStampFinished",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],Ls.prototype,"onYtServiceRequestSent",null);
_.E([_.FI("data.actions"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ls.prototype,"observePrefilledBackstagePostDialog",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ls.prototype,"onYtCommentboxDismiss",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ls.prototype,"dataChanged",null);
Ls=_.E([_.m({is:"ytd-comments-header-renderer",disableElementRegistration:!0})],Ls);
_.Z(Ls,"ytd-comments-header-renderer",function(){if(WJP!==void 0)return WJP;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title" hidden="[[!data.countText]]" class="style-scope ytd-comments-header-renderer">\n  <div id="leading-section" class="style-scope ytd-comments-header-renderer">\n    <h2 id="count" class="style-scope ytd-comments-header-renderer">\n      <yt-formatted-string class="count-text style-scope ytd-comments-header-renderer" text="[[data.countText]]"> </yt-formatted-string>\n    </h2>\n  </div>\n  <div id="additional-section" class="style-scope ytd-comments-header-renderer">\n    <span id="sort-menu" class="style-scope ytd-comments-header-renderer"></span>\n    <div id="panel-button" hidden="[[!showCommentsPanelButton]]" class="style-scope ytd-comments-header-renderer">\n      <ytd-button-renderer data="[[commentsPanelButtonData]]" class="style-scope ytd-comments-header-renderer"> </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n<div id="red-commenting-div" hidden="[[!data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  <yt-formatted-string id="red-commenting-text" text="[[data.redCommentingText]]" class="style-scope ytd-comments-header-renderer">\n  </yt-formatted-string>\n</div>\n<div id="alert" class="style-scope ytd-comments-header-renderer"></div>\n<div id="prefilled-dialog-header" class="style-scope ytd-comments-header-renderer"></div>\n<div id="simple-box" class="style-scope ytd-comments-header-renderer"></div>\n<div id="paused-comments-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="backstage-post-dialog" class="style-scope ytd-comments-header-renderer"></div>\n<div id="post-stream-filter" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n<div id="zero-state-message" class="style-scope ytd-comments-header-renderer"></div>\n<div id="scheduling-zero-state-message" hidden="[[!isPostSchedulingEnabled]]" class="style-scope ytd-comments-header-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return WJP=I},{mode:1});var d_b;var DG=function(){return _.q.apply(this,arguments)||this};
_.R(DG,_.q);_.E([_.d(),_.h("design:type",Object)],DG.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DG.prototype,"ytRendererBehavior",void 0);DG=_.E([_.m({is:"ytd-destination-button-renderer",disableElementRegistration:!0})],DG);
_.Z(DG,"ytd-destination-button-renderer",function(){if(d_b!==void 0)return d_b;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return d_b=I},{mode:1});var x_w;var ps=function(){var I=_.q.apply(this,arguments)||this;I.isRichGrid=!1;I.gridStateActionMap={"ytd-update-grid-state-action":"handleUpdateGridStateAction"};I.modernTypography=_.V("web_modern_typography");return I};
_.R(ps,_.q);_.u=ps.prototype;_.u.configureRendererStamper=function(){return{"data.destinationButtons":{id:"destination-buttons",mapping:{destinationButtonRenderer:{component:"ytd-destination-button-renderer"}}}}};
_.u.attached=function(){this.ytActionHandlerBehavior.registerActionMap(this.gridStateActionMap)};
_.u.handleUpdateGridStateAction=function(){this.updateDestinationButtonsVisibility()};
_.u.updateDestinationButtonsVisibility=function(){if(!this.isRichGrid){var I;if((I=this.data)==null||!I.isExpanded){I=this.hostElement.clientWidth;var C;if(I&&(C=this.data)!=null&&C.destinationButtons){C=Math.floor((I+4)/214);I=this.data.destinationButtons.length;var y=Math.ceil(I/C);this.fullyVisibleRows=I%C===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}}}};
_.u.updateRichGridDestinationButtonsVisibility=function(){var I,C;if(this.isRichGrid&&((I=this.data)==null||!I.isExpanded)&&(C=this.data)!=null&&C.destinationButtons){I=this.richGridItemsPerRow+1;C=this.data.destinationButtons.length;var y=Math.ceil(C/I);this.fullyVisibleRows=C%I===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
_.u.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
ps.prototype.updateRichGridDestinationButtonsVisibility=ps.prototype.updateRichGridDestinationButtonsVisibility;_.E([_.d(),_.h("design:type",Object)],ps.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Number)],ps.prototype,"fullyVisibleRows",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],ps.prototype,"isShowMoreVisible",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ps.prototype,"isRichGrid",void 0);
_.E([_.d({selector:_.Y9,value:0}),_.h("design:type",Number)],ps.prototype,"richGridItemsPerRow",void 0);_.E([_.d(),_.h("design:type",Object)],ps.prototype,"gridStateActionMap",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ps.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ps.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ps.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],ps.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ps.prototype,"modernTypography",void 0);_.E([_.FI("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ps.prototype,"updateRichGridDestinationButtonsVisibility",null);
ps=_.E([_.m({is:"ytd-destination-shelf-renderer",disableElementRegistration:!0})],ps);
_.Z(ps,"ytd-destination-shelf-renderer",function(){if(x_w!==void 0)return x_w;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return x_w=I},{mode:1});var qyd;var QU=function(){return _.q.apply(this,arguments)||this};
_.R(QU,_.q);QU.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}},"data.informationButton":{id:"information-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QU.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],QU.prototype,"data",void 0);QU=_.E([_.m({is:"ytd-brandconnect-cta-shelf-card-renderer",disableElementRegistration:!0})],QU);
_.Z(QU,"ytd-brandconnect-cta-shelf-card-renderer",function(){if(qyd!==void 0)return qyd;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return qyd=I},{mode:1});var m_c;var N5=function(){var I=_.q.apply(this,arguments)||this;I.disableAnimation=!1;I.isSlimlineSurvey=!1;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;return I};
_.R(N5,_.q);N5.prototype.onTap=function(I){I.preventDefault();this.data&&_.k3(this.hostElement,"ytd-rating-survey-option-changed",this.data)};
_.H1.Object.defineProperties(N5.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 I,C,y,k,F;return((I=this.data)==null?0:I.checked)?(C=this.data)==null?void 0:(y=C.onStateIcon)==null?void 0:y.iconType:(k=this.data)==null?void 0:(F=k.defaultStateIcon)==null?void 0:F.iconType}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],N5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],N5.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],N5.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],N5.prototype,"disableAnimation",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],N5.prototype,"isSlimlineSurvey",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],N5.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],N5.prototype,"isShortsStyle",void 0);_.E([_.v("disableAnimation","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],N5.prototype,"isAnimatedIcon",null);
_.E([_.v("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Number),_.h("design:paramtypes",[])],N5.prototype,"iconSize",null);_.E([_.v("isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],N5.prototype,"isDarkTheme",null);_.E([_.v("data.checked"),_.h("design:type",Object),_.h("design:paramtypes",[])],N5.prototype,"icon",null);N5=_.E([_.m({is:"ytd-rating-survey-option-renderer",disableElementRegistration:!0})],N5);
_.Z(N5,"ytd-rating-survey-option-renderer",function(){if(m_c!==void 0)return m_c;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return m_c=I},{mode:2});var ZTe;var VU=function(){var I=_.q.apply(this,arguments)||this;I.firstResponseText=null;I.lastResponseText=null;I.selectedNonStarOption=null;I.hideOptions=!1;I.hideUndoButton=!0;I.disableAnimation=!1;I.showResponseRangeText=!1;I.selectedRatingIndex=-1;I.isSlimlineSurvey=!1;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;I.slimlineSurveyRatingSelectedIndex=-1;return I};
_.R(VU,_.q);_.u=VU.prototype;_.u.configureRendererStamper=function(){return{"data.ratings":{id:"ratings",mapping:{ratingSurveyOptionRenderer:{component:"ytd-rating-survey-option-renderer",properties:{disableAnimation:"[[disableAnimation]]",isSlimlineSurvey:"[[isSlimlineSurvey]]",isSlimlineSurveyFollowUp:"[[isSlimlineSurveyFollowUp]]",isShortsStyle:"[[isShortsStyle]]"}}}}}};
_.u.dataChanged=function(){this.resetComponent();this.isSlimlineSurveyFollowUp&&this.slimlineSurveyRatingSelectedIndex>-1&&this.showSelectedOption()};
_.u.onOptionChange=function(I,C){var y=this;I=C.onStateIcon&&C.defaultStateIcon&&C.onStateIcon.iconType===C.defaultStateIcon.iconType;this.hideUndoButton=this.isSlimlineSurvey;if(this.isSingleSelect)this.getOptionRenderers().forEach(function(c,r){c.responseText===C.responseText?y.isSlimlineSurvey?(y.selectedRatingIndex=r,y.ytdReduxBehavior.dispatch(dVP(r))):(y.setSurveyOptionValue(r,!0,"checked"),y.setSurveyOptionValue(r,!0,"selected")):(y.setSurveyOptionValue(r,!1,"checked"),y.setSurveyOptionValue(r,
!1,"selected"))});
else if(I)this.selectedNonStarOption=C,this.hideOptions=!0;else{var k=this.ytRendererBehavior.getSimpleString(C.responseText),F=!0;this.getOptionRenderers().forEach(function(c,r){y.setSurveyOptionValue(r,F,"checked");y.setSurveyOptionValue(r,!1,"selected");y.ytRendererBehavior.getSimpleString(c.responseText)===k&&(F=!1,y.setSurveyOptionValue(r,!0,"selected"))})}I=C.responseEndpoint;
var z;C.followUpCommand&&(z=_.l(C.followUpCommand,d2q));this.isSlimlineSurvey?(this.resetComponent(),_.Fe(this.hostElement,"ytd-slimline-survey-rating-select-action")):_.Fe(this.hostElement,"ytd-inline-survey-rating-select-action",[I,z])};
_.u.showSelectedOption=function(){var I=this;_.b$.addJob(function(){var C=I.getOptionRenderers()[I.slimlineSurveyRatingSelectedIndex];I.onOptionChange(new CustomEvent("ytd-rating-survey-option-changed"),C)},8,100)};
_.u.getOptionRenderers=function(){return this.data&&this.data.ratings?this.data.ratings.map(function(I){var C;return(C=_.l(I,qvw))!=null?C:{}}):[]};
_.u.onUndoClick=function(){this.resetComponent();_.Fe(this.hostElement,"ytd-inline-survey-rating-select-action",[null,null])};
_.u.setSurveyOptionValue=function(I,C,y){this.notifyPath("data.ratings."+I+".ratingSurveyOptionRenderer."+y);this.set("data.ratings."+I+".ratingSurveyOptionRenderer."+y,C)};
_.u.resetComponent=function(){var I=this;this.selectedNonStarOption=null;this.hideOptions=!1;this.hideUndoButton=!0;var C=this.getOptionRenderers(),y,k;this.firstResponseText=(k=(y=C[0])==null?void 0:y.responseText)!=null?k:null;var F,z;this.lastResponseText=(z=(F=C[C.length-1])==null?void 0:F.responseText)!=null?z:null;C.forEach(function(c,r){I.setSurveyOptionValue(r,!1,"checked");I.setSurveyOptionValue(r,!1,"selected")})};
_.H1.Object.defineProperties(VU.prototype,{isSingleSelect:{configurable:!0,enumerable:!0,get:function(){return this.isSlimlineSurvey||this.isSlimlineSurveyFollowUp||this.isShortsStyle}}});
VU.prototype.onOptionChange=VU.prototype.onOptionChange;VU.prototype.dataChanged=VU.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],VU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VU.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],VU.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],VU.prototype,"firstResponseText",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"lastResponseText",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"selectedNonStarOption",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"hideOptions",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"hideUndoButton",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"disableAnimation",void 0);
_.E([_.d(),_.h("design:type",Object)],VU.prototype,"showResponseRangeText",void 0);_.E([_.d(),_.h("design:type",Object)],VU.prototype,"selectedRatingIndex",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VU.prototype,"isSlimlineSurvey",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VU.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VU.prototype,"isShortsStyle",void 0);_.E([_.d({selector:function(I){return I.ui.slimlineSurveyRatingSelectedIndex}}),
_.h("design:type",Object)],VU.prototype,"slimlineSurveyRatingSelectedIndex",void 0);_.E([_.v("isSlimlineSurvey","isSlimlineSurveyFollowUp","isShortsStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VU.prototype,"isSingleSelect",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VU.prototype,"dataChanged",null);
_.E([_.km("ytd-rating-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],VU.prototype,"onOptionChange",null);VU=_.E([_.m({is:"ytd-rating-survey-renderer",disableElementRegistration:!0})],VU);
_.Z(VU,"ytd-rating-survey-renderer",function(){if(ZTe!==void 0)return ZTe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZTe=I},{mode:1});var BE0;var Eim;var huw;var iGW=(Vm.FIRSTDAYOFWEEK+1)%7,U_8=function(I,C,y,k){var F="";if(k.selection&&T6t(k.selection))pn(I,k.selection)&&(F+=" selected");else if(k.selection&&cVH(k.selection)){var z=k.selection.selectionState||"START_DATE";pn(I,k.selection.start)&&(F+=" period-start ",z==="START_DATE"&&(F+="selected"));pn(I,k.selection.end)&&(F+=" period-end ",z==="END_DATE"&&(F+="selected"));Qm(I,k.selection.start)||Qm(k.selection.end,I)||(F+=" highlighted")}if(Qm(C,k.start)||Qm(k.end,C))F+=" disabled";k.circleToday&&
pn(C,y)&&(F+=" today");return F};var jn=function(){return _.q.apply(this,arguments)||this};
_.R(jn,_.q);_.u=jn.prototype;_.u.attached=function(){var I=this;_.hn(this,function(){I.JSC$13691_calendarMain.scrollHeight>0&&(I.calendarConfig.selection?I.scrollToDate(eaI(I.calendarConfig.selection)):I.scrollToDate(I.calendarConfig.end))})};
_.u.updateSelection=function(I){I=wBK(Object.assign({},this.calendarConfig,{selection:I}),U_8);this.splice.apply(this,["renderData.months",0,I.length].concat(_.Py(I)))};
_.u.scrollToDate=function(I){this.renderData&&(I=nPI(I,this.renderData),I!==void 0&&this.JSC$13691_calendarMain.scrollToIndex(I))};
_.u.scrollToNextMonth=function(){this.JSC$13691_calendarMain.scrollToIndex(this.JSC$13691_calendarMain.firstVisibleIndex+1)};
_.u.scrollToPrevMonth=function(){this.JSC$13691_calendarMain.firstVisibleIndex===0&&this.JSC$13691_calendarMain.scrollTo(0,0);this.JSC$13691_calendarMain.scrollToIndex(this.JSC$13691_calendarMain.firstVisibleIndex-1)};
_.u.handleDayClick=function(I){_.Fe(this.hostElement,"ytd-calendar-date-clicked",[I.model.day.date])};
_.u.handleDayMouseDown=function(I){I.preventDefault();_.Fe(this.hostElement,"ytd-calendar-date-mousedown",[I.model.day.date])};
_.u.handleDayMouseUp=function(I){_.Fe(this.hostElement,"ytd-calendar-date-mouseup",[I.model.day.date])};
_.u.handleDayMouseEnter=function(I){I.preventDefault();_.Fe(this.hostElement,"ytd-calendar-date-mouseenter",[I.model.day.date])};
_.u.handleDayMouseLeave=function(I){_.Fe(this.hostElement,"ytd-calendar-date-mouseleave",[I.model.day.date])};
_.H1.Object.defineProperties(jn.prototype,{renderData:{configurable:!0,enumerable:!0,get:function(){var I=this.calendarConfig,C=U_8;C=C===void 0?U_8:C;for(var y=[],k=0;k<7;k++)y.push(Vm.NARROWWEEKDAYS[(k+iGW)%7]);return{months:wBK(I,C),daysOfWeekLabel:y}}}});
_.E([_.d(),_.h("design:type",Object)],jn.prototype,"calendarConfig",void 0);_.E([_.z$("#calendar-main"),_.h("design:type",Object)],jn.prototype,"JSC$13691_calendarMain",void 0);_.E([_.v("calendarConfig"),_.h("design:type",Object),_.h("design:paramtypes",[])],jn.prototype,"renderData",null);jn=_.E([_.m({disableElementRegistration:!0,is:"ytd-scrollable-calendar"})],jn);
_.Z(jn,"ytd-scrollable-calendar",function(){if(huw!==void 0)return huw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return huw=I},{mode:2});var HTm;var t0P;var lV=function(){var I=_.q.apply(this,arguments)||this;I.hideCharCounter=!1;I.hideLabel=!1;I.noLabelFloat=!1;I.autoValidate=!0;I.invalid=!1;I.actionMap={"yt-update-text-input-form-field-renderer-command":"handleUpdateTextInputFormFieldRendererCommand"};return I};
_.R(lV,_.q);_.u=lV.prototype;_.u.reset=function(I){this.value=I&&this.data?this.data.value=I:"";this.input.invalid=!1;this.input.autoValidate=!1};
_.u.save=function(){this.data&&this.data.onChange&&this.ytComponentBehavior.resolveCommand(this.data.onChange)};
_.u.focusTextInput=function(){this.input.focus()};
_.u.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()};
_.u.valueChanged=function(){var I,C;if(((I=this.data)==null?0:I.value)||((C=this.data)==null?void 0:C.value)==="")this.value=this.data.value;else{var y;((y=this.data)==null?void 0:y.value)!==void 0||this.value||(this.value="")}};
_.u.computeLabel=function(I,C){return C?"":_.hS(I)};
_.u.computeAriaLabel=function(I,C){return C?_.hS(I):""};
_.u.computeErrorMessage=function(I,C,y,k){!I&&C?I=y||this.strings.REQUIRED_LABEL:(I=_.hS(k),I=_.rH(I,"&")?"document"in _.sF?O9d(I):at5(I):I);return I};
_.u.computeType=function(I){return I==="TEXT_INPUT_FORM_FIELD_TYPE_PASSWORD"?"password":null};
_.u.onTextValueChanged=function(I){this.value=I.detail.value;var C;(C=this.onValueChanged)==null||C.call(this);this.validate()&&this.data&&this.data.key&&this.data.onChange&&this.set(this.data.key,this.input.value,this.data.onChange)};
_.u.handleUpdateTextInputFormFieldRendererCommand=function(I){(I=_.l(I,Fub))&&this.data&&this.data.id===I.id&&(I.invalid!==void 0&&(this.invalid=I.invalid),I.invalidValueErrorMessage!==void 0&&this.set("data.invalidValueErrorMessage",I.invalidValueErrorMessage))};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("value-changed",this.value))};
_.u.updateInvalidFromBinding=function(I){this.invalid=I.detail.value};
_.H1.Object.defineProperties(lV.prototype,{isMultiline:{configurable:!0,enumerable:!0,get:function(){if(this.isMultilineOverride!==void 0)return this.isMultilineOverride;var I;return!((I=this.data)==null||!I.isMultiline)}}});
lV.prototype.valueChangedForBinding=lV.prototype.valueChangedForBinding;lV.prototype.valueChanged=lV.prototype.valueChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lV.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],lV.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],lV.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],lV.prototype,"value",void 0);_.E([_.d(),_.h("design:type",String)],lV.prototype,"pattern",void 0);_.E([_.d(),_.h("design:type",String)],lV.prototype,"errorMessage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],lV.prototype,"componentStyle",void 0);_.E([_.d(),_.h("design:type",Object)],lV.prototype,"hideCharCounter",void 0);
_.E([_.d(),_.h("design:type",Object)],lV.prototype,"hideLabel",void 0);_.E([_.d(),_.h("design:type",Object)],lV.prototype,"noLabelFloat",void 0);_.E([_.d(),_.h("design:type",Function)],lV.prototype,"onValueChanged",void 0);_.E([_.d(),_.h("design:type",Boolean)],lV.prototype,"isMultilineOverride",void 0);_.E([_.d(),_.h("design:type",Object)],lV.prototype,"autoValidate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lV.prototype,"invalid",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],lV.prototype,"enableOverlayTheme",void 0);_.E([_.d({value:{REQUIRED_LABEL:_.PQ("REQUIRED_LABEL",void 0,"Required")}}),_.h("design:type",Object)],lV.prototype,"strings",void 0);_.E([_.z$("#input"),_.h("design:type",Object)],lV.prototype,"input",void 0);_.E([_.v("data","isMultilineOverride"),_.h("design:type",Object),_.h("design:paramtypes",[])],lV.prototype,"isMultiline",null);
_.E([_.rW("data.value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lV.prototype,"valueChanged",null);_.E([_.FI("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lV.prototype,"valueChangedForBinding",null);lV=_.E([_.lT({is:"yt-text-input-form-field-renderer",disableElementRegistration:!0})],lV);
_.Z(lV,"yt-text-input-form-field-renderer",function(){if(t0P===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-text-input-form-field-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.playlist.yt_text_input_form_field_renderer.yt.text.input.form.field.renderer.css.js--\x3e<template is="dom-if" if="[[isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-textarea id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" max-rows="5" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" rows="[[data.rows]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-textarea>\n</template>\n<template is="dom-if" if="[[!isMultiline]]" class="style-scope yt-text-input-form-field-renderer">\n  <tp-yt-paper-input id="input" always-float-label="" aria-label$="[[computeAriaLabel(data.label, hideLabel)]]" char-counter="[[!data.hideCharCounter]]" error-message="[[computeErrorMessage(value, data.required, requiredErrorMessage, data.invalidValueErrorMessage)]]" invalid="[[invalid]]" label="[[computeLabel(data.label, hideLabel)]]" maxlength="[[data.maxCharacterLimit]]" no-label-float="[[noLabelFloat]]" pattern="[[data.validValueRegexp]]" placeholder="[[data.placeholderText]]" required="[[data.required]]" type="[[computeType(data.type)]]" use-v2-underline="" value="[[value]]" on-invalid-changed="updateInvalidFromBinding" on-value-changed="onTextValueChanged" class="style-scope yt-text-input-form-field-renderer">\n  </tp-yt-paper-input>\n</template>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;HTm===void 0&&(HTm=document.createElement("template"));var k=HTm;y.call(C,k.content.cloneNode(!0),I.content.firstChild);t0P=I}I=t0P;return I},{mode:2});var XE=function(){var I=_.q.apply(this,arguments)||this;I.data=void 0;I.selectionState="START_DATE";I.isStartDateInvalid=!1;I.isEndDateInvalid=!1;I.autoapply=!1;I.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 I};
_.R(XE,_.q);_.u=XE.prototype;_.u.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"}}}}};
_.u.focus=function(){this.startDateInput.focus()};
_.u.dataChanged=function(){this.data&&this.data.selection&&(this.selection={start:NE(this.data.selection.start),end:NE(this.data.selection.end)})};
_.u.observeSelection=function(){this.selection&&this.updateCalendarSelection(this.selection);this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.u.resetTextboxes=function(){switch(this.selectionState){case "START_DATE":this.isStartDateInvalid=!1;break;case "END_DATE":this.isEndDateInvalid=!1;break;default:_.C8(this.selectionState)}};
_.u.onDateInputBlur=function(){this.isEndDateInvalid=this.isStartDateInvalid=!1;this.updateDateStrings()};
_.u.onStartDateTapOrFocus=function(){this.startDate&&this.calendar.scrollToDate(this.startDate);this.selectionState="START_DATE"};
_.u.onEndDateTapOrFocus=function(){this.endDate&&this.calendar.scrollToDate(this.endDate);this.selectionState="END_DATE"};
_.u.onStartDateTextChange=function(){if(this.calendar.calendarConfig){var I=this.calendar.calendarConfig,C=I.end;I=LSt({start:I.start,end:this.endDate||C},this.startDateInput.value||"");this.isStartDateInvalid=!I.isValid;I.isValid&&(I=I.value,this.selection=this.endDate?{start:I,end:this.endDate}:I,this.calendar.scrollToDate(I));this.updateInvalidState()}};
_.u.onEndDateTextChange=function(){if(this.calendar.calendarConfig){var I=this.calendar.calendarConfig,C=I.start;I=LSt({start:this.startDate||C,end:I.end},this.endDateInput.value||"");this.isEndDateInvalid=!I.isValid;I.isValid&&(I=I.value,this.selection={start:this.startDate,end:I},this.calendar.scrollToDate(I));this.updateInvalidState()}};
_.u.handleCalendarDateClicked=function(I){var C=this.selection&&eaI(this.selection),y=this.selection&&rVF(this.selection);C&&!Qm(I,C)&&this.selectionState==="END_DATE"?(this.selection={start:C,end:I},this.selectionState="START_DATE"):(y&&!Qm(y,I)?this.selection={start:I,end:y}:this.selection=I,this.selectionState="END_DATE")};
_.u.handleCalendarDateMouseDown=function(I){this.selection&&!T6t(this.selection)&&(this.dragPivot=pn(I,this.selection.start)?this.selection.end:pn(I,this.selection.end)?this.selection.start:I)};
_.u.handleCalendarDateMouseUp=function(){this.dragPivot=void 0};
_.u.handleCalendarDateMouseEnter=function(I){this.dragPivot&&(this.selection={start:function(C,y){return Qm(C,y)?C:y}(this.dragPivot,I),
end:function(C,y){return Qm(C,y)?y:C}(this.dragPivot,I)},this.dragPivot||(this.selectionState="START_DATE"))};
_.u.handleCalendarDateMouseLeave=function(){};
_.u.handleCalendarSubmitDateRange=function(){this.selection&&!T6t(this.selection)&&_.Fe(this.hostElement,"ytd-date-period-picker-apply",[this.selection])};
_.u.updateInvalidState=function(){var I=function(C,y){y?C.setAttribute("invalid",""):C.removeAttribute("invalid")};
I(this.startDateInput,this.isStartDateInvalid);I(this.endDateInput,this.isEndDateInvalid)};
_.u.updateDateStrings=function(){this.selection&&(T6t(this.selection)?zaX(this.selection):(zaX(this.selection.start),zaX(this.selection.end)))};
_.u.updateCalendarSelection=function(I){this.calendar.updateSelection(Object.assign({},I,{selectionState:this.selectionState}))};
_.u.updateIsStartDateInvalidFromBinding=function(I){this.isStartDateInvalid=I.detail.value};
_.u.updateIsEndDateInvalidFromBinding=function(I){this.isEndDateInvalid=I.detail.value};
_.u.updateStartDateStringFromBinding=function(){};
_.u.updateEndDateStringFromBinding=function(){};
_.H1.Object.defineProperties(XE.prototype,{calendarConfig:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.selection?{start:NE(this.data.dateRangeStart),end:NE(this.data.dateRangeEnd),selection:{start:NE(this.data.selection.start),end:NE(this.data.selection.end)},circleToday:!0}:{}}},
errorMessage:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.errorMessage}},
startDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&eaI(this.selection)}},
endDate:{configurable:!0,enumerable:!0,get:function(){return this.selection&&rVF(this.selection)}}});
XE.prototype.resetTextboxes=XE.prototype.resetTextboxes;XE.prototype.observeSelection=XE.prototype.observeSelection;XE.prototype.dataChanged=XE.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],XE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],XE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#calendar"),_.h("design:type",Object)],XE.prototype,"calendar",void 0);
_.E([_.z$("#start-date"),_.h("design:type",Object)],XE.prototype,"startDateInput",void 0);_.E([_.z$("#end-date"),_.h("design:type",Object)],XE.prototype,"endDateInput",void 0);_.E([_.d(),_.h("design:type",Object)],XE.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],XE.prototype,"selection",void 0);_.E([_.d(),_.h("design:type",String)],XE.prototype,"selectionState",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],XE.prototype,"calendarConfig",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],XE.prototype,"errorMessage",null);_.E([_.v("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],XE.prototype,"startDate",null);_.E([_.v("selection"),_.h("design:type",Object),_.h("design:paramtypes",[])],XE.prototype,"endDate",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XE.prototype,"dataChanged",null);
_.E([_.FI("selection","selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XE.prototype,"observeSelection",null);_.E([_.FI("selectionState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],XE.prototype,"resetTextboxes",null);XE=_.E([_.m({disableElementRegistration:!0,is:"ytd-date-period-picker-renderer"})],XE);
_.Z(XE,"ytd-date-period-picker-renderer",function(){if(Eim!==void 0)return Eim;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Eim=I},{mode:1});var $W=function(){var I=_.q.apply(this,arguments)||this;var C={};I.actionMap=(C["ytd-date-period-picker-apply"]="handleDateRangeUpdated",C);return I};
_.R($W,_.q);$W.prototype.configureRendererStamper=function(){return{"data.timeRangeDropdown":{id:"time-range-dropdown",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
$W.prototype.handleDateRangeUpdated=function(){};
_.E([_.d(),_.h("design:type",Object)],$W.prototype,"data",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],$W.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$W.prototype,"rendererstamperBehavior",void 0);$W=_.E([_.m({is:"ytd-report-history-section-header-renderer",disableElementRegistration:!0})],$W);
_.Z($W,"ytd-report-history-section-header-renderer",function(){if(BE0!==void 0)return BE0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BE0=I},{mode:1});var JRY;var OT0;var aKe;var RK=function(){return _.q.apply(this,arguments)||this};
_.R(RK,_.q);_.H1.Object.defineProperties(RK.prototype,{icon:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?0:(C=I.icon)==null?0:C.iconType)?_.y5(this.data.icon.iconType):""}}});
_.E([_.d(),_.h("design:type",Object)],RK.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],RK.prototype,"icon",null);RK=_.E([_.m({is:"ytd-report-history-table-text-cell-renderer",disableElementRegistration:!0})],RK);
_.Z(RK,"ytd-report-history-table-text-cell-renderer",function(){if(aKe!==void 0)return aKe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return aKe=I},{mode:1});var bV=function(){return _.q.apply(this,arguments)||this};
_.R(bV,_.q);bV.prototype.configureRendererStamper=function(){return{"data.latestReason":{id:"latest-reason",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bV.prototype,"data",void 0);bV=_.E([_.m({is:"ytd-report-history-table-reason-cell-renderer",disableElementRegistration:!0})],bV);
_.Z(bV,"ytd-report-history-table-reason-cell-renderer",function(){if(OT0!==void 0)return OT0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OT0=I},{mode:1});var YW=function(){return _.q.apply(this,arguments)||this};
_.R(YW,_.q);YW.prototype.configureRendererStamper=function(){return{"data.cell":{id:"cell-container",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer",reportHistoryTableReasonCellRenderer:"ytd-report-history-table-reason-cell-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],YW.prototype,"rendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],YW.prototype,"data",void 0);YW=_.E([_.m({is:"ytd-report-history-table-cell-renderer",disableElementRegistration:!0})],YW);
_.Z(YW,"ytd-report-history-table-cell-renderer",function(){if(JRY!==void 0)return JRY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return JRY=I},{mode:1});var M0Y;var Gr=function(){var I=_.q.apply(this,arguments)||this;I.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 I};
_.R(Gr,_.q);Gr.prototype.onDataChanged=function(){var I;if((I=this.data)==null?0:I.style)this.componentStyle=this.getStyleName(this.data.style)};
Gr.prototype.getCellForColumn=function(I){return this.cells.find(function(C){var y;return((y=_.l(C==null?void 0:C.cell,B1u)||_.l(C==null?void 0:C.cell,ZWP))==null?void 0:y.columnId)===I.type})};
Gr.prototype.getClassForColumn=function(I){switch(I){case "REPORT_HISTORY_COLUMN_DATE":return"date";default:return""}};
Gr.prototype.getStyleName=function(I){switch(I){case "REPORT_HISTORY_ROW_STYLE_COMPACT":return"COMPACT_ROW";default:return""}};
_.H1.Object.defineProperties(Gr.prototype,{cells:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.cells)||[]).map(function(C){return _.l(C,m2q)})}}});
Gr.prototype.onDataChanged=Gr.prototype.onDataChanged;_.E([_.d(),_.h("design:type",Object)],Gr.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],Gr.prototype,"columnRenderData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Gr.prototype,"componentStyle",void 0);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],Gr.prototype,"cells",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gr.prototype,"onDataChanged",null);Gr=_.E([_.m({is:"ytd-report-history-table-row-renderer",disableElementRegistration:!0})],Gr);
_.Z(Gr,"ytd-report-history-table-row-renderer",function(){if(M0Y!==void 0)return M0Y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return M0Y=I},{mode:1});var IEb;var Cr0;var DvX={padding:12,paddingLeftFirstColumn:0,paddingRightLastColumn:0,minWidth:50,maxWidth:Infinity,flexGrow:1},pBK={padding:12,paddingLeftFirstColumn:24,paddingRightLastColumn:24,minWidth:50,maxWidth:Infinity,flexGrow:0};var fs=function(){return _.q.apply(this,arguments)||this};
_.R(fs,_.q);fs.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"}}}}}};
fs.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"rows","yt-reload-continuation-items-command-body":"rows"}};
_.H1.Object.defineProperties(fs.prototype,{tableSpec:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.columns)?lq9(this.data.columns):{columns:{},columnsToShow:[]}}},
columnRenderData:{configurable:!0,enumerable:!0,get:function(){return V6H(this.tableSpec)}},
totalMinWidth:{configurable:!0,enumerable:!0,get:function(){var I=this.tableSpec,C=DvX;C=C===void 0?pBK:C;C=jkO(I.columnDimensions,I.columnsToShow||[],C);I=0;C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,I+=y.minWidth+y.paddingLeft+y.paddingRight;return I}},
tableWidthStyle:{configurable:!0,enumerable:!0,get:function(){return"min-width:"+this.totalMinWidth+"px;"}}});
_.E([_.g(_.b1),_.h("design:type",Object)],fs.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fs.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fs.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fs.prototype,"tableSpec",null);_.E([_.v("tableSpec"),_.h("design:type",Array),_.h("design:paramtypes",[])],fs.prototype,"columnRenderData",null);
_.E([_.v("tableSpec"),_.h("design:type",Number),_.h("design:paramtypes",[])],fs.prototype,"totalMinWidth",null);_.E([_.v("totalMinWidth"),_.h("design:type",String),_.h("design:paramtypes",[])],fs.prototype,"tableWidthStyle",null);fs=_.E([_.m({is:"ytd-table-renderer",disableElementRegistration:!0})],fs);
_.Z(fs,"ytd-table-renderer",function(){if(Cr0!==void 0)return Cr0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Cr0=I},{mode:1});var Sn=function(){return _.q.apply(this,arguments)||this};
_.R(Sn,_.q);Sn.prototype.configureRendererStamper=function(){return{"data.reportedContent":{id:"content-info",mapping:{reportHistoryTableTextCellRenderer:"ytd-report-history-table-text-cell-renderer"}},"data.reasonsTable":{id:"reasons-table",mapping:{tableRenderer:"ytd-table-renderer"}},"data.doneButton":{id:"done-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sn.prototype,"data",void 0);Sn=_.E([_.m({is:"ytd-report-reason-history-modal-renderer",disableElementRegistration:!0})],Sn);
_.Z(Sn,"ytd-report-reason-history-modal-renderer",function(){if(IEb!==void 0)return IEb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return IEb=I},{mode:1});var sxS;var onS;var ybw;var Ks=function(){return _.q.apply(this,arguments)||this};
_.R(Ks,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ks.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ks.prototype,"data",void 0);Ks=_.E([_.m({is:"ytd-profile-column-stats-entry-renderer",disableElementRegistration:!0})],Ks);
_.Z(Ks,"ytd-profile-column-stats-entry-renderer",function(){if(ybw!==void 0)return ybw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ybw=I},{mode:1});var kQw;var A8=function(){return _.q.apply(this,arguments)||this};
_.R(A8,_.q);A8.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsEntryRenderer:{component:"ytd-profile-column-stats-entry-renderer",noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],A8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],A8.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],A8.prototype,"data",void 0);A8=_.E([_.m({is:"ytd-profile-column-stats-renderer",disableElementRegistration:!0})],A8);
_.Z(A8,"ytd-profile-column-stats-renderer",function(){if(kQw!==void 0)return kQw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return kQw=I},{mode:1});var F30;var g_=function(){return _.q.apply(this,arguments)||this};
_.R(g_,_.q);_.H1.Object.defineProperties(g_.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.useThumbnailSize)return 80;var C,y;I=(C=this.data)==null?void 0:(y=C.thumbnail)==null?void 0:y.thumbnails;var k;return I&&((k=I[0])==null?void 0:k.width)||80}},
thumbnailHeight:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.useThumbnailSize)return 80;var C,y;I=(C=this.data)==null?void 0:(y=C.thumbnail)==null?void 0:y.thumbnails;var k;return I&&((k=I[0])==null?void 0:k.height)||80}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],g_.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],g_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],g_.prototype,"componentStyle",void 0);_.E([_.v("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],g_.prototype,"thumbnailWidth",null);
_.E([_.v("data.useThumbnailSize"),_.h("design:type",Object),_.h("design:paramtypes",[])],g_.prototype,"thumbnailHeight",null);g_=_.E([_.m({is:"ytd-profile-column-user-info-renderer",disableElementRegistration:!0})],g_);
_.Z(g_,"ytd-profile-column-user-info-renderer",function(){if(F30!==void 0)return F30;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return F30=I},{mode:1});var vq=function(){return _.q.apply(this,arguments)||this};
_.R(vq,_.q);vq.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{profileColumnStatsRenderer:{component:"ytd-profile-column-stats-renderer",noInjection:!0},profileColumnUserInfoRenderer:{component:"ytd-profile-column-user-info-renderer",noInjection:!0,properties:{componentStyle:"[[componentStyle]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vq.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],vq.prototype,"componentStyle",void 0);vq=_.E([_.m({is:"ytd-profile-column-renderer",disableElementRegistration:!0})],vq);
_.Z(vq,"ytd-profile-column-renderer",function(){if(onS!==void 0)return onS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return onS=I},{mode:1});var Wq=function(){var I=_.q.apply(this,arguments)||this;I.componentStyle="NON_CENTERED_PROFILE";return I};
_.R(Wq,_.q);Wq.prototype.configureRendererStamper=function(){return{"data.reportStats":{id:"report-stats",mapping:{profileColumnRenderer:{component:"ytd-profile-column-renderer",properties:{componentStyle:"[[componentStyle]]"}}}}}};
Wq.prototype.getIcon=function(I){return I?"settings:"+I.toLowerCase():null};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Wq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Wq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Wq.prototype,"data",void 0);Wq=_.E([_.m({is:"ytd-page-introduction-renderer",disableElementRegistration:!0})],Wq);
_.Z(Wq,"ytd-page-introduction-renderer",function(){if(sxS!==void 0)return sxS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return sxS=I},{mode:1});var uX0;var d_=function(){return _.q.apply(this,arguments)||this};
_.R(d_,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],d_.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],d_.prototype,"data",void 0);d_=_.E([_.m({is:"ytd-report-description-renderer",disableElementRegistration:!0})],d_);
_.Z(d_,"ytd-report-description-renderer",function(){if(uX0!==void 0)return uX0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uX0=I},{mode:1});var ze8;var T$0;var xW=function(){return _.q.apply(this,arguments)||this};
_.R(xW,_.q);xW.prototype.configureRendererStamper=function(){return{"data.description":{id:"description",mapping:{reportDescriptionRenderer:"ytd-report-description-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xW.prototype,"data",void 0);xW=_.E([_.m({is:"ytd-video-report-renderer",disableElementRegistration:!0})],xW);
_.Z(xW,"ytd-video-report-renderer",function(){if(T$0!==void 0)return T$0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return T$0=I},{mode:1});var cbm;_.jz("itemSectionRenderer","messageRenderer","ytd-message-renderer");_.jz("multiPageMenuSectionItems","messageRenderer","ytd-message-renderer");var q5=function(){return _.q.apply(this,arguments)||this};
_.R(q5,_.q);q5.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]]"}}}}}};
q5.prototype.computeMessageStyle=function(I){return I};
q5.prototype.computeButtonOverride=function(I){var C;if((I==null?0:(C=I.style)==null?0:C.value)&&I.style.value==="RENDER_STYLE_BANNER_PANEL")return{size:"S"}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],q5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],q5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],q5.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],q5.prototype,"shelf",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],q5.prototype,"panel",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeMessageStyle(data.style.value)"}),_.h("design:type",Boolean)],q5.prototype,"componentStyle",void 0);_.E([_.d({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],q5.prototype,"buttonOverride",void 0);q5=_.E([_.m({is:"ytd-message-renderer",disableElementRegistration:!0})],q5);
_.Z(q5,"ytd-message-renderer",function(){if(cbm!==void 0)return cbm;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="icon" class="style-scope ytd-message-renderer"></div>\n<yt-formatted-string id="message" hidden$="[[!data.text]]" split-lines="" text="[[data.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<yt-formatted-string id="submessage" hidden$="[[!data.subtext]]" split-lines="" text="[[data.subtext.messageSubtextRenderer.text]]" class="style-scope ytd-message-renderer"></yt-formatted-string>\n<div id="message-button" class="style-scope ytd-message-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cbm=I},{mode:1});var mT=function(){return _.q.apply(this,arguments)||this};
_.R(mT,_.q);mT.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"}}}};
mT.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"table"}};
mT.prototype.onRequestError=function(){this.ytContinuationHandlerBehavior.continuationIsReloading=!1};
_.H1.Object.defineProperties(mT.prototype,{isUnifiedReportHistory:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!(((I=this.data)==null?0:I.header)&&((C=this.data)==null?0:C.table))}}});
mT.prototype.onRequestError=mT.prototype.onRequestError;_.E([_.g(_.b1),_.h("design:type",Object)],mT.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mT.prototype,"data",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],mT.prototype,"isUnifiedReportHistory",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mT.prototype,"onRequestError",null);mT=_.E([_.m({is:"ytd-report-history-section-renderer",disableElementRegistration:!0})],mT);
_.Z(mT,"ytd-report-history-section-renderer",function(){if(ze8!==void 0)return ze8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ze8=I},{mode:1});var eew;var ZG=function(){var I=_.q.apply(this,arguments)||this;I.answerExpanded=!1;return I};
_.R(ZG,_.q);ZG.prototype.toggleAnswer=function(){this.answerExpanded=!this.answerExpanded};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ZG.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ZG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ZG.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ZG.prototype,"answerExpanded",void 0);ZG=_.E([_.m({is:"ytd-handles-claiming-faq-renderer",disableElementRegistration:!0})],ZG);
_.Z(ZG,"ytd-handles-claiming-faq-renderer",function(){if(eew!==void 0)return eew;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return eew=I},{mode:1});var rbq;var Bq=function(){return _.q.apply(this,arguments)||this};
_.R(Bq,_.q);_.E([_.d(),_.h("design:type",Object)],Bq.prototype,"data",void 0);Bq=_.E([_.m({is:"ytd-handles-claiming-faq-section-renderer",disableElementRegistration:!0})],Bq);
_.Z(Bq,"ytd-handles-claiming-faq-section-renderer",function(){if(rbq!==void 0)return rbq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rbq=I},{mode:1});var iU5;var EE=function(){var I=_.q.apply(this,arguments)||this;I.rightSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_dark_v1.svg";I.rightSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_1_light_v1.svg";I.leftSquigglyDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_dark_v1.svg";I.leftSquigglyLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_2_light_v1.svg";I.leftSquiggly=I.leftSquigglyLight;I.rightSquiggly=I.rightSquigglyLight;
I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.actionButtonOverride={style:"mono",type:"filled",size:"XL"};return I};
_.R(EE,_.q);_.u=EE.prototype;_.u.updateLeftSquigglyStyle=function(){_.CK(this.hostElement,{"--yt-left-squiggly-background":"url("+this.leftSquiggly+")"})};
_.u.updateRightSquigglyStyle=function(){_.CK(this.hostElement,{"--yt-right-squiggly-background":"url("+this.rightSquiggly+")"})};
_.u.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),I?(this.leftSquiggly=this.leftSquigglyDark,this.rightSquiggly=this.rightSquigglyDark):(this.leftSquiggly=this.leftSquigglyLight,this.rightSquiggly=this.rightSquigglyLight))};
_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[actionButtonOverride]]"}}}}}};
EE.prototype.updateRightSquigglyStyle=EE.prototype.updateRightSquigglyStyle;EE.prototype.updateLeftSquigglyStyle=EE.prototype.updateLeftSquigglyStyle;_.E([_.d(),_.h("design:type",Object)],EE.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],EE.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",String)],EE.prototype,"leftSquiggly",void 0);_.E([_.d(),_.h("design:type",String)],EE.prototype,"rightSquiggly",void 0);
_.E([_.FI("leftSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EE.prototype,"updateLeftSquigglyStyle",null);_.E([_.FI("rightSquiggly"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EE.prototype,"updateRightSquigglyStyle",null);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],EE.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],EE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],EE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],EE.prototype,"actionButtonOverride",void 0);EE=_.E([_.m({is:"ytd-handles-claiming-header-renderer",disableElementRegistration:!0})],EE);
_.Z(EE,"ytd-handles-claiming-header-renderer",function(){if(iU5!==void 0)return iU5;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return iU5=I},{mode:1});var wIY;var h8=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.image0DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_dark.svg";I.image0LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_4_light.svg";I.image1DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_dark.svg";I.image1LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_6_light.svg";
I.image3DarkSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_dark.svg";I.image3LightSquigglyBackground="https://www.gstatic.com/youtube/img/handles/handles_squiggle_5_light_v2.svg";I.image0SquigglyBackground=I.image0LightSquigglyBackground;I.image1SquigglyBackground=I.image1LightSquigglyBackground;I.image3SquigglyBackground=I.image3LightSquigglyBackground;return I};
_.R(h8,_.q);_.u=h8.prototype;_.u.ready=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark");this.updateTitleAndImages()};
_.u.onDataChanged=function(){this.updateTitleAndImages()};
_.u.onThemeChanged=function(){this.updateTitleAndImages()};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
_.u.updateImage0SquigglyBackground=function(){_.CK(this.hostElement,{"--yt-image0-squiggly-background":"url("+this.image0SquigglyBackground+")"})};
_.u.updateImage1SquigglyBackground=function(){_.CK(this.hostElement,{"--yt-image1-squiggly-background":"url("+this.image1SquigglyBackground+")"})};
_.u.updateImage3SquigglyBackground=function(){_.CK(this.hostElement,{"--yt-image3-squiggly-background":"url("+this.image3SquigglyBackground+")"})};
_.u.updateTitleAndImages=function(){var I,C;((I=this.data)==null?void 0:(C=I.titleImages)==null?void 0:C.length)===5&&(this.title0=this.data.titleImages[0].title,this.title1=this.data.titleImages[1].title,this.title2=this.data.titleImages[2].title,this.title3=this.data.titleImages[3].title,this.title4=this.data.titleImages[4].title,this.isDarkTheme?(this.image0=this.data.titleImages[0].darkImage,this.image1=this.data.titleImages[1].darkImage,this.image2=this.data.titleImages[2].darkImage,this.image3=
this.data.titleImages[3].darkImage,this.image4=this.data.titleImages[4].darkImage,this.image0SquigglyBackground=this.image0DarkSquigglyBackground,this.image1SquigglyBackground=this.image1DarkSquigglyBackground,this.image3SquigglyBackground=this.image3DarkSquigglyBackground):(this.image0=this.data.titleImages[0].lightImage,this.image1=this.data.titleImages[1].lightImage,this.image2=this.data.titleImages[2].lightImage,this.image3=this.data.titleImages[3].lightImage,this.image4=this.data.titleImages[4].lightImage,
this.image0SquigglyBackground=this.image0LightSquigglyBackground,this.image1SquigglyBackground=this.image1LightSquigglyBackground,this.image3SquigglyBackground=this.image3LightSquigglyBackground))};
h8.prototype.updateImage3SquigglyBackground=h8.prototype.updateImage3SquigglyBackground;h8.prototype.updateImage1SquigglyBackground=h8.prototype.updateImage1SquigglyBackground;h8.prototype.updateImage0SquigglyBackground=h8.prototype.updateImage0SquigglyBackground;h8.prototype.onThemeChanged=h8.prototype.onThemeChanged;h8.prototype.onDataChanged=h8.prototype.onDataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],h8.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],h8.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"title0",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"title1",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"title2",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"title3",void 0);
_.E([_.d(),_.h("design:type",Object)],h8.prototype,"title4",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"image0",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"image1",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"image2",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"image3",void 0);_.E([_.d(),_.h("design:type",Object)],h8.prototype,"image4",void 0);_.E([_.d(),_.h("design:type",String)],h8.prototype,"image0SquigglyBackground",void 0);
_.E([_.d(),_.h("design:type",String)],h8.prototype,"image1SquigglyBackground",void 0);_.E([_.d(),_.h("design:type",String)],h8.prototype,"image3SquigglyBackground",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h8.prototype,"onDataChanged",null);_.E([_.FI("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h8.prototype,"onThemeChanged",null);
_.E([_.FI("image0SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h8.prototype,"updateImage0SquigglyBackground",null);_.E([_.FI("image1SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h8.prototype,"updateImage1SquigglyBackground",null);
_.E([_.FI("image3SquigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],h8.prototype,"updateImage3SquigglyBackground",null);h8=_.E([_.m({is:"ytd-handles-claiming-title-images-section-renderer",disableElementRegistration:!0})],h8);
_.Z(h8,"ytd-handles-claiming-title-images-section-renderer",function(){if(wIY!==void 0)return wIY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return wIY=I},{mode:1});var nnY;var UE=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(UE,_.q);UE.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
UE.prototype.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I)};
UE.prototype.onCopyButtonClick=function(){var I=this,C,y,k;return _.e(function(F){return(C=I.data)!=null&&C.primaryChannelUrl?_.n(F,navigator.clipboard.writeText(((y=I.data)==null?0:y.encodedChannelUrl)?I.data.encodedChannelUrl:"https://"+_.hS((k=I.data)==null?void 0:k.primaryChannelUrl)),0):F.jumpTo(0)})};
_.E([_.d(),_.h("design:type",Object)],UE.prototype,"data",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],UE.prototype,"ytComponentBehavior",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],UE.prototype,"isDarkTheme",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],UE.prototype,"ytActionHandlerBehavior",void 0);UE=_.E([_.m({is:"ytd-handles-claiming-update-social-renderer",disableElementRegistration:!0})],UE);
_.Z(UE,"ytd-handles-claiming-update-social-renderer",function(){if(nnY!==void 0)return nnY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return nnY=I},{mode:1});var Prc;var Hq=function(){var I=_.q.apply(this,arguments)||this;I.JSC$13786_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_dark_v1.svg";I.JSC$13786_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_curl_section_illustration_light_v1.svg";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};I.squigglyBackground=I.JSC$13786_squigglyBackgroundLight;return I};
_.R(Hq,_.q);Hq.prototype.updateSquigglyBackgroundStyle=function(){_.CK(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
Hq.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.squigglyBackground=I?this.JSC$13786_squigglyBackgroundDark:this.JSC$13786_squigglyBackgroundLight};
Hq.prototype.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),this.squigglyBackground=I?this.JSC$13786_squigglyBackgroundDark:this.JSC$13786_squigglyBackgroundLight)};
Hq.prototype.updateSquigglyBackgroundStyle=Hq.prototype.updateSquigglyBackgroundStyle;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Hq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Hq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Hq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Hq.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Hq.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",String)],Hq.prototype,"squigglyBackground",void 0);_.E([_.FI("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hq.prototype,"updateSquigglyBackgroundStyle",null);Hq=_.E([_.m({is:"ytd-handles-claiming-vanity-info-renderer",disableElementRegistration:!0})],Hq);
_.Z(Hq,"ytd-handles-claiming-vanity-info-renderer",function(){if(Prc!==void 0)return Prc;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Prc=I},{mode:1});var L38;var t8=function(){var I=_.q.apply(this,arguments)||this;I.JSC$13789_squigglyBackgroundDark="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_dark.svg";I.JSC$13789_squigglyBackgroundLight="https://www.gstatic.com/youtube/img/handles/handles_squiggle_3_light.svg";I.squigglyBackground=I.JSC$13789_squigglyBackgroundLight;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(t8,_.q);_.u=t8.prototype;_.u.ready=function(){var I=document.documentElement.hasAttribute("dark");this.onDarkModeToggledAction(I)};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.set("isDarkTheme",I),this.squigglyBackground=I?this.JSC$13789_squigglyBackgroundDark:this.JSC$13789_squigglyBackgroundLight)};
_.u.updateSquigglyBackgroundStyle=function(){_.CK(this.hostElement,{"--yt-squiggly-background":"url("+this.squigglyBackground+")"})};
_.u.onDataChanged=function(){this.data&&this.setupVideoPlayer()};
_.u.detached=function(){this.stop()};
_.u.stop=function(){this.playerElement.stop()};
_.u.setupVideoPlayer=function(){var I=this,C,y;return _.e(function(k){C=I.data.videoId;y="http://i1.ytimg.com/vi/"+C+"/maxresdefault.jpg";I.playerElement.loadVideoWithPlayerVars({video_id:C,iurlhq:y});_.oI(k)})};
t8.prototype.onDataChanged=t8.prototype.onDataChanged;t8.prototype.updateSquigglyBackgroundStyle=t8.prototype.updateSquigglyBackgroundStyle;_.E([_.d({value:!1}),_.h("design:type",Boolean)],t8.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",String)],t8.prototype,"squigglyBackground",void 0);_.E([_.z$("#player"),_.h("design:type",Object)],t8.prototype,"playerElement",void 0);_.E([_.d(),_.h("design:type",Object)],t8.prototype,"data",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],t8.prototype,"ytActionHandlerBehavior",void 0);_.E([_.FI("squigglyBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t8.prototype,"updateSquigglyBackgroundStyle",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],t8.prototype,"onDataChanged",null);
t8=_.E([_.m({is:"ytd-handles-claiming-video-item-renderer",disableElementRegistration:!0})],t8);
_.Z(t8,"ytd-handles-claiming-video-item-renderer",function(){if(L38!==void 0)return L38;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return L38=I},{mode:1});var DBq;var OE=function(){var I=_.cO.apply(this,arguments)||this;I.dragging=!1;I.dragMouseStart=0;I.dragOffsetStart=0;I.containerWidthDiff=0;I.boundPrevClick=function(){I.set("offset",J8(I,I.offset-(I.scrollDistance||320)))};
I.boundNextClick=function(){I.set("offset",J8(I,I.offset+(I.scrollDistance||320)))};
I.boundScrollContainerMouseDown=function(C){I.dragMouseStart=C.clientX;I.dragOffsetStart=I.offset;I.dragging=!0};
I.boundScrollContainerDrag=function(C){I.dragging&&I.set("offset",J8(I,I.dragOffsetStart-(C.clientX-I.dragMouseStart)))};
I.boundMouseUp=function(){I.onMouseUp()};
I.boundWheelScroll=function(C){var y=0;Math.abs(C.deltaX)>=Math.abs(C.deltaY)?y=C.deltaX:C.shiftKey&&(y=C.deltaY);y!==0&&(I.offset+=y,C.stopPropagation(),C.preventDefault())};
I.boundChipCloudChipScrollIntoView=function(C){(C=C.detail)&&I.scrollChipIntoView(C)};
return I};
_.R(OE,_.cO);OE.prototype.attached=function(){var I=_.f(this.hostElement).querySelector("#scroll-container");I.addEventListener("wheel",this.boundWheelScroll);I.addEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);I.style.touchAction="pan-y";I.addEventListener("pointerdown",this.boundScrollContainerMouseDown);I.addEventListener("pointermove",this.boundScrollContainerDrag);window.addEventListener("pointerup",this.boundMouseUp)};
OE.prototype.detached=function(){var I=_.f(this.hostElement).querySelector("#scroll-container");I.removeEventListener("wheel",this.boundWheelScroll);I.removeEventListener("yt-chip-cloud-chip-scroll-into-view",this.boundChipCloudChipScrollIntoView);I.removeEventListener("pointerdown",this.boundScrollContainerMouseDown);I.removeEventListener("pointermove",this.boundScrollContainerDrag);window.removeEventListener("pointerup",this.boundMouseUp)};
OE.prototype.reset=function(){this.set("offset",0);_.hn(this,this.setContainerWidthDiff);aK(this)};
var J8=function(I,C){return Math.min(Math.max(C,0),I.containerWidthDiff)};
OE.prototype.onMouseUp=function(){this.dragging=!1};
OE.prototype.transformContainer=function(){this.offset=J8(this,this.offset);var I=_.Aq("HTML_DIR")==="rtl"?"":"-";_.f(this.hostElement).querySelector("#chips").style.transform="translateX("+I+this.offset+"px)";aK(this)};
var aK=function(I){_.hn(I,I.setButtonsState)};
OE.prototype.setButtonsState=function(){(this.atEnd=this.offset>=this.containerWidthDiff)&&!this.atStart&&(this.offset=J8(this,this.offset));this.atStart=this.offset<=0};
OE.prototype.setContainerWidthDiff=function(){var I=_.f(this.hostElement).querySelector("#scroll-container"),C=_.f(this.hostElement).querySelector("#chips");I&&C&&(this.containerWidthDiff=C.clientWidth-I.clientWidth)};
OE.prototype.scrollChipIntoView=function(I){var C=_.f(this.hostElement).querySelector("#scroll-container");if(C){var y=this.atStart?0:106,k=this.atEnd?0:106;I.offsetLeft<this.offset+y?this.offset=J8(this,I.offsetLeft-y):I.offsetLeft+I.clientWidth>this.offset+C.clientWidth-k&&(this.offset=J8(this,I.offsetLeft+I.clientWidth+k-C.clientWidth))}};
OE.prototype.transformContainer=OE.prototype.transformContainer;_.E([_.d({value:0}),_.h("design:type",Number)],OE.prototype,"offset",void 0);_.E([_.d({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],OE.prototype,"atStart",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],OE.prototype,"atEnd",void 0);_.E([_.d(),_.h("design:type",Number)],OE.prototype,"scrollDistance",void 0);
_.E([_.FI("offset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OE.prototype,"transformContainer",null);OE=_.E([_.eA()],OE);var pIu;var Qxb;var jxP=_.BO(function(I){var C=I.data;I=_.T(_.c4(!1,void 0,"icHmSe"));var y=I.next().value,k=I.next().value;I={};I=_.sZ("ytChipShapeChip",function(){a:switch(C==null?void 0:C().state){case 0:var r="ytChipShapeActive";break a;case 1:r="ytChipShapeDisabled";break a;default:r="ytChipShapeInactive"}return r},function(){var r=C().type===1||C().type===2,w=C();
return r||w!=null&&w.startIcon?w==null||!w.startIcon||w!=null&&w.text?r?"ytChipShapeEndIconPadding":(w==null?0:w.startIcon)?"ytChipShapeStartIconPadding":"":"ytChipShapeOnlyIconPadding":"ytChipShapeOnlyTextPadding"},(I.ytChipShapeFocused=function(){var r;
return y()&&((r=C())==null?void 0:r.state)!==1},I));
var F=function(r){if((C==null?void 0:C().state)!==1){var w,L;(L=(w=C()).onTap)==null||L.call(w,r)}},z=_.uk(function(){var r=_.N().resolve(_.aU(_.Du));
if(r){k(r.isKeyBoardInUse());var w,L;(L=(w=C()).onFocusIn)==null||L.call(w)}return!1}),c=_.uk(function(){k(!1);
return!1});
return _.P("chip-shape",{class:"ytChipShapeHost","on:focusin":z,"on:focusout":c},_.P(N$w,{shouldWrapInButton:function(){return C().type!==2},
selected:function(){return C().state===0},
onClick:F,isDropdown:function(){return C().type===1},
accessibilityLabel:function(){return C().accessibilityLabel}},_.P("div",{class:I},_.P(_.Dx,{cond:function(){return C().startIcon},
then:function(){return _.P(_.ez,{icon:function(){var r;return(r=C())==null?void 0:r.startIcon},
className:function(){return C().text?"ytChipShapeIconStart":"ytChipShapeIconOnly"}})}}),function(){return C().text},_.P(Vpw,{shape:C,
onClick:F}))))},"rb");
jxP.idomCompat=!0;var N$w=_.BO(function(I){var C=_.uk(function(y){I.onClick(y);return!1});
return _.P(_.Dx,{cond:I.shouldWrapInButton,then:function(){return _.P("button",{class:"ytChipShapeButtonReset","on:click":C,role:function(){return I.isDropdown()?"combobox":"tab"},
"aria-label":I.accessibilityLabel,"aria-selected":I.selected},I.children)},
else:function(){return I.children}})},"sb"),Vpw=_.BO(function(I){var C=I.shape;
var y=I.onClick;var k=_.uk(function(F){y(F);return!1});
return _.P(_.Vr,null,_.P(_.Qr,{when:function(){return C().type===1}},function(){return _.P(_.ez,{icon:"EXPAND",
className:"ytChipShapeIconEnd"})}),_.P(_.Qr,{when:function(){return C().type===2}},function(){return _.P("button",{class:"ytChipShapeButtonReset",
"on:click":k},_.P(_.ez,{icon:"CLOSE",className:"ytChipShapeIconEnd"}))}),_.P(_.Qr,{when:function(){return C().type===0}},function(){return _.P(_.aF,null)}))},"tb");_.B9(jxP,"chip-shape",{props:{data:_.As}});var M5=function(){var I=_.q.apply(this,arguments)||this;I.disableDeselectEvent=!1;I.modern=_.V("web_modern_typography");I.useChipShape=_.V("web_chip_shape_defrag");I.actionMap={"yt-select-chip-command":"onSelectChipCommand","yt-filter-chip-transform-command":"onFilterChipTransformCommand"};return I};
_.R(M5,_.q);_.u=M5.prototype;_.u.beforeRegister=function(){_.V("web_chip_shape_defrag")||(this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onTap","space:keydown":"onTap"})};
_.u.attached=function(){this.useChipShape||(this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","tab"),this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0"))};
_.u.onSelectChipCommand=function(I){if(!this.selected&&this.data&&(I=_.l(I,OQw),I.targetId&&I.targetId===this.data.targetId))this.onTap()};
_.u.onFilterChipTransformCommand=function(I){if(!this.selected&&this.data){var C;(I=(C=_.l(I,CBP))==null?void 0:C.chipUniqueId)&&I===this.data.uniqueId&&(this.scrollChipIntoView(),this.onTap())}};
_.u.dataChanged=function(){var I=this;_.hn(this,function(){I.data&&I.data.isSelected&&!I.selected&&(I.scrollChipIntoView(),I.onTap())})};
_.u.selectionChanged=function(){this.useChipShape||this.hostElement.setAttribute("aria-selected",""+this.selected)};
_.u.computeChipStyle=function(I){return I!=null?I:"STYLE_DEFAULT"};
_.u.onTap=function(){!this.data||this.selected&&this.disableDeselectEvent||(this.ytRendererBehavior.logExplicitClick(this.data),this.selected||!this.data.navigationEndpoint&&!this.isGnomeChip?_.Fe(this.hostElement,"yt-chip-cloud-chip-deselect-action"):(_.Fe(this.hostElement,"yt-chip-cloud-chip-select-action",[this.hostElement,this.isGnomeChip]),this.data&&this.data.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint)))};
_.u.onFocus=function(){var I=_.N().resolve(_.aU(_.Du));I&&I.isKeyBoardInUse()&&this.scrollChipIntoView()};
_.u.scrollChipIntoView=function(){_.k3(this.hostElement,"yt-chip-cloud-chip-scroll-into-view",this.hostElement)};
_.H1.Object.defineProperties(M5.prototype,{hasIcon:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.icon)}},
isGnomeChip:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.uniqueId)==="gnome_chip"}},
chipShapeData:{configurable:!0,enumerable:!0,get:function(){return Gjt({data:this.data,onTap:this.onTap.bind(this),isSelected:this.selected,onFocusIn:this.onFocus.bind(this)})}}});
M5.prototype.onFocus=M5.prototype.onFocus;M5.prototype.onTap=M5.prototype.onTap;M5.prototype.selectionChanged=M5.prototype.selectionChanged;M5.prototype.dataChanged=M5.prototype.dataChanged;_.E([_.g(_.Nu),_.h("design:type",Object)],M5.prototype,"ironButtonState",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],M5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],M5.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],M5.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Ds),_.h("design:type",Object)],M5.prototype,"ironA11yKeysBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],M5.prototype,"disableDeselectEvent",void 0);_.E([_.d(),_.h("design:type",Object)],M5.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.icon"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],M5.prototype,"hasIcon",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.uniqueId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],M5.prototype,"isGnomeChip",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],M5.prototype,"modern",void 0);_.E([_.d({computed:"computeChipStyle(data.style.styleType)",reflectToAttribute:!0}),_.h("design:type",String)],M5.prototype,"chipStyle",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],M5.prototype,"selected",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],M5.prototype,"useChipShape",void 0);_.E([_.v("data","selected"),_.h("design:type",Object),_.h("design:paramtypes",[])],M5.prototype,"chipShapeData",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M5.prototype,"dataChanged",null);_.E([_.FI("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M5.prototype,"selectionChanged",null);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M5.prototype,"onTap",null);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M5.prototype,"onFocus",null);M5=_.E([_.lT({is:"yt-chip-cloud-chip-renderer",disableElementRegistration:!0})],M5);
_.Z(M5,"yt-chip-cloud-chip-renderer",function(){if(Qxb===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-chip-cloud-chip-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sections.yt_chip_cloud_chip_renderer.yt.chip.cloud.chip.renderer.css.js--\x3e<div id="chip-shape-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <chip-shape data="[[chipShapeData]]" class="style-scope yt-chip-cloud-chip-renderer"></chip-shape>\n</div>\n<div id="chip-container" class="style-scope yt-chip-cloud-chip-renderer">\n    <yt-icon class="leading-icon style-scope yt-chip-cloud-chip-renderer" hidden="[[!hasIcon]]" icon="[[data.icon.iconType]]">\n    </yt-icon>\n    <yt-formatted-string id="text" ellipsis-truncate="" text="[[data.text]]" class="style-scope yt-chip-cloud-chip-renderer">\n    </yt-formatted-string>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;pIu===void 0&&(pIu=document.createElement("template"));var k=pIu;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Qxb=I}I=Qxb;return I},{mode:2});var I6=function(){var I=_.q.apply(this,arguments)||this;I.isDarkTheme=!1;I.notSticky=!1;I.transparentBackground=!1;I.shouldHide=!1;I.disableSticky=!1;I.fluidWidth=!1;I.isClipList=!1;I.defaultChipIndex=0;I.isPlaylist=!1;I.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");I.toolbarHeight=0;I.actionMap={"yt-chip-cloud-chip-select-action":"handleChipCloudChipSelectAction","yt-chip-cloud-chip-deselect-action":"handleChipCloudChipDeselectAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};
return I};
_.R(I6,_.q);_.u=I6.prototype;
_.u.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}}}}}};
_.u.attached=function(){var I=this;document.addEventListener("scroll",_.sb(this,this.updateChipBarWidthAndTop));this.isDarkTheme=document.documentElement.hasAttribute("dark");var C;this.toolbarHeight=((C=document.querySelector("ytd-masthead"))==null?void 0:C.clientHeight)||0;window.IntersectionObserver&&(this.intersectionObserver=new IntersectionObserver(function(y){I.handleIntersect(y)},{rootMargin:"-"+(this.toolbarHeight+1)+"px 0px 0px 0px",
threshold:[1]}),this.intersectionObserver.observe(this.hostElement));window.ResizeObserver&&(this.resizeObserver=new ResizeObserver(function(){I.updateChipBarWidthAndTop()}),this.resizeObserver.observe(this.hostElement))};
_.u.detached=function(){var I;(I=this.intersectionObserver)==null||I.disconnect();var C;(C=this.resizeObserver)==null||C.disconnect();document.removeEventListener("scroll",_.sb(this,this.updateChipBarWidthAndTop))};
_.u.dataChanged=function(){var I=this,C,y,k;((k=_.l((C=this.data)==null?void 0:(y=C.contents)==null?void 0:y[0],Lqw))==null?void 0:k.uniqueId)==="gnome_chip"&&(this.defaultChipIndex=1);this.updating=!0;var F=this.findSelectedChipIndex();this.selectedIndex!==F&&(this.selectedIndex=-1);_.hn(this,function(){I.selectedIndex=F;I.updating=!1;I.ytScrollableChipCloudBehavior.reset()})};
_.u.findSelectedChipIndex=function(){var I;if((I=this.data)==null||!I.contents)return 0;I=this.data.contents;for(var C=0;C<I.length;C++){var y=void 0;if((y=_.l(I[C],Lqw))==null?0:y.isSelected)return C}return 0};
_.u.computeStyle=function(I){return I};
_.u.handleChipCloudChipSelectAction=function(I){I=this.JSC$13808_chipsSelector.indexOf(I);I>-1&&this.JSC$13808_chipsSelector.selectIndex(I)};
_.u.handleChipCloudChipDeselectAction=function(){if(_.V("kevlar_chips_check_index_zero_killswitch")||![this.defaultChipIndex,-1].includes(this.selectedIndex)){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],Lqw))==null?void 0:y.navigationEndpoint;k&&_.Fe(this.hostElement,"yt-browse-section-list-reload-endpoint",[k]);this.JSC$13808_chipsSelector.selectIndex(this.defaultChipIndex);this.ytScrollableChipCloudBehavior.reset()}};
_.u.onGuideIsExpandedChanged=function(){var I=this.ytScrollableChipCloudBehavior;_.hn(I,I.setContainerWidthDiff);aK(this.ytScrollableChipCloudBehavior)};
_.u.onResize=function(){var I=this.ytScrollableChipCloudBehavior;_.hn(I,I.setContainerWidthDiff);aK(this.ytScrollableChipCloudBehavior)};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.updateChipBarWidthAndTop=function(){this.updateDimensions();this.notSticky=this.isChannelPageGrid||this.disableSticky||this.hostElement.getBoundingClientRect().y>this.toolbarHeight};
_.u.handleIntersect=function(I){_.V("disable_chips_intersection_observer")||(this.notSticky=this.isChannelPageGrid||this.disableSticky||I[0].intersectionRatio===1)};
_.u.updateDimensions=function(){var I=this.ytRendererBehavior.parentComponent;if(I){var C,y=(C=I.headerElement)!=null?C:I;_.CK(this.hostElement,{"--ytd-rich-grid-chips-bar-width":y.clientWidth+"px","--ytd-rich-grid-chips-bar-top":this.toolbarHeight+"px"})}};
_.u.updateSelectedIndexFromBinding=function(I){this.selectedIndex=I.detail.value};
_.u.isPlaylistPageChanged=function(){if(this.isPlaylistPage){var I;(I=this.sortFilterHeaderRendererElement)==null||I.setAttribute("is-playlist-page-with-filters","")}};
_.u.dispatchChipBarIsSticky=function(){this.ytdReduxBehavior.dispatch(_.yE({type:"SET_CHIP_BAR_IS_STICKY",payload:!this.notSticky}))};
_.H1.Object.defineProperties(I6.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 I,C,y=(I=this.data)==null?void 0:(C=I.contents)==null?void 0:C.find(function(k){return _.l(k,NkP)});
return{sortFilterHeaderRenderer:_.l(y,NkP)}}}});
I6.prototype.dispatchChipBarIsSticky=I6.prototype.dispatchChipBarIsSticky;I6.prototype.isPlaylistPageChanged=I6.prototype.isPlaylistPageChanged;I6.prototype.updateChipBarWidthAndTop=I6.prototype.updateChipBarWidthAndTop;I6.prototype.onResize=I6.prototype.onResize;I6.prototype.onGuideIsExpandedChanged=I6.prototype.onGuideIsExpandedChanged;I6.prototype.dataChanged=I6.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],I6.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],I6.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],I6.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],I6.prototype,"ironResizableBehavior",void 0);_.E([_.g(),_.h("design:type",OE)],I6.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],I6.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],I6.prototype,"data",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],I6.prototype,"selectedIndex",void 0);_.E([_.d({value:320}),_.h("design:type",Number)],I6.prototype,"scrollDistance",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"notSticky",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"transparentBackground",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.styleType)"}),_.h("design:type",String)],I6.prototype,"componentStyle",void 0);_.E([_.d({selector:_.TOF}),_.h("design:type",Boolean)],I6.prototype,"guideIsExpanded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"shouldHide",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"disableSticky",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"fluidWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"isClipList",void 0);_.E([_.d(),_.h("design:type",Object)],I6.prototype,"defaultChipIndex",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],I6.prototype,"isPlaylist",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],I6.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.z$("#chips"),_.h("design:type",Object)],I6.prototype,"JSC$13808_chipsSelector",void 0);_.E([_.z$("ytd-sort-filter-header-renderer"),_.h("design:type",HTMLElement)],I6.prototype,"sortFilterHeaderRendererElement",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],I6.prototype,"updating",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"dataChanged",null);_.E([_.FI("guideIsExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"onGuideIsExpandedChanged",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"onResize",null);
_.E([_.rW("isChannelPageGrid","disableSticky","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"updateChipBarWidthAndTop",null);_.E([_.v("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],I6.prototype,"isChannelPageGrid",null);_.E([_.v("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],I6.prototype,"isHashtagLandingPage",null);
_.E([_.FI("isPlaylistPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"isPlaylistPageChanged",null);_.E([_.v("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],I6.prototype,"isPlaylistPage",null);_.E([_.v("componentStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],I6.prototype,"isDisableDeselectEvent",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],I6.prototype,"sortFilterHeaderRendererData",null);_.E([_.d({reflectToAttribute:!0,selector:_.Pvm}),_.h("design:type",String)],I6.prototype,"frostedGlassMode",void 0);_.E([_.FI("notSticky"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],I6.prototype,"dispatchChipBarIsSticky",null);I6=_.E([_.m({is:"ytd-feed-filter-chip-bar-renderer",disableElementRegistration:!0})],I6);
_.Z(I6,"ytd-feed-filter-chip-bar-renderer",function(){if(DBq!==void 0)return DBq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return DBq=I},{mode:1});var lE0;var XIm=_.BO(function(I){var C=I.data;var y=I.buttonIndex;var k=I.selectedIndex;var F=I.onSelect;var z=function(){return y()===k()},c=function(){var w,L;
return(L=(w=C().text)==null?void 0:w.content)!=null?L:""};
_.uk(function(){});
I=_.gJ();var r=_.uk(function(){F(C().onSubmitCommand);return!1});
return _.P("yt-toggleable-image-button-view-model",{class:function(){var w={};w=(w["toggleable-image-button-view-model-wiz"]=!0,w[""]=!0,w["toggleable-image-button-view-model-wiz__semi-transparent"]=k()!==-1&&!z(),w);return _.yc(w)},
tabindex:0,"aria-label":c,"aria-pressed":z,role:"button","on:keydown":I,"on:click":r},_.P(_.Dx,{cond:function(){return C().logo},
then:function(w){return _.P(_.x$,{data:w,className:function(){var L={};L=(L["toggleable-image-button-view-model-wiz__image"]=!0,L["toggleable-image-button-view-model-wiz__circular-radius"]=!(!C().backgroundColor||!C().backgroundColorDarkMode),L["toggleable-image-button-view-model-wiz__gradient-ring"]=!!(z()&&C().backgroundColor&&C().backgroundColorDarkMode),L);return _.yc(L)},
alt:c,useWidth:!1,style:function(){if(z()&&C().backgroundColor&&C().backgroundColorDarkMode){var L=$k(Number(C().backgroundColorDarkMode),"1");var D=$k(Number(C().backgroundColor),"1");L="background: linear-gradient(180deg,"+L+","+D+") border-box;"}else L="";return L}})}}),_.P(_.nE,{model:{borderRadius:"16px"}}),_.P("p",{class:function(){var w={};
w=(w["toggleable-image-button-view-model-wiz__label"]=!0,w["toggleable-image-button-view-model-wiz__bold-text"]=z(),w);return _.yc(w)}},_.P(_.wh,{text:function(){return C().text}})))},"ub");
XIm.idomCompat=!0;var Req=_.BO(function(I){var C=I.data;I=_.T(_.c4({index:-1,command:{}},void 0,"Zcqtsb"));var y=I.next().value,k=I.next().value;return _.P("yt-nudge-form-view-model",{class:"nudge-form-view-model-wiz"},_.P("div",{class:"nudge-form-view-model-wiz__form-options"},_.P(_.lY,{data:function(){return C().inputFields},
allowIncompleteMapping:!0},{toggleableImageButtonViewModel:function(F,z){return _.P(XIm,{data:F.data,buttonIndex:z,selectedIndex:function(){return y().index},
onSelect:function(c){k({index:z(),command:c})}})}})),_.P(_.wh,{text:function(){return C().subtitle},
className:"nudge-form-view-model-wiz__subtitle"}),_.P("div",{class:"nudge-form-view-model-wiz__submit"},_.P(_.lY,{data:function(){return C().submitButton}},{buttonViewModel:function(F){return _.P($Bc,{data:F.data,
isDisabled:function(){return y().index===-1},
onClick:function(){_.Gp(y().command)}})}})))},"vb");
Req.idomCompat=!0;var $Bc=_.BO(function(I){var C=_.P4(function(){return Object.assign({},I.data(),{state:I.isDisabled()?"BUTTON_VIEW_MODEL_STATE_DISABLED":"BUTTON_VIEW_MODEL_STATE_ACTIVE"})},void 0,"rgD0re");
return _.P(_.fM,{data:C,onClick:I.onClick})},"wb");_.B9(Req,"yt-nudge-form-view-model",{props:{data:_.As}});var Cd=function(){var I=_.q.apply(this,arguments)||this;I.roundedContainer=!0;I.buttonUpdate=_.V("web_modern_buttons");I.isDarkMode=!1;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return I};
_.R(Cd,_.q);_.u=Cd.prototype;_.u.computeNudgeStyle=function(I){return I?"modernized-nudge":""};
_.u.handleDarkModeToggledAction=function(I){this.isDarkMode=I};
_.u.attached=function(){this.handleDarkModeToggledAction(document.documentElement.hasAttribute("dark"))};
_.u.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"}}}};
_.u.computeIsHorizontalButtons=function(I){return I?!!I.applyModernizedStyle&&!!I.enableHorizontalButtons&&!!I.secondaryButton:!1};
_.H1.Object.defineProperties(Cd.prototype,{isHidden:{configurable:!0,enumerable:!0,get:function(){return!!this.ytdDismissibleItemBehavior.isHideEnclosingAction}},
trimStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.trimStyle)==="FEED_NUDGE_TRIM_STYLE_NO_TRIM"?"no-trim":"gradient-trim-1"}},
backgroundStyle:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.data)==null?void 0:I.backgroundStyle)!=null?C:"FEED_NUDGE_BACKGROUND_STYLE_UNKNOWN"}},
contentsLocation:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.data)==null?void 0:I.contentsLocation)!=null?C:"FEED_NUDGE_CONTENTS_LOCATION_UNKNOWN"}},
noShadow:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.disableDropShadow)}},
noIcon:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null?0:I.lightIconImage)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Cd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Cd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Cd.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Cd.prototype,"actionHandlerBehavior",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("isHideEnclosingAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cd.prototype,"isHidden",null);_.E([_.d(),_.h("design:type",Object)],Cd.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Cd.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Cd.prototype,"buttonUpdate",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeNudgeStyle(data.applyModernizedStyle)"}),_.h("design:type",String)],Cd.prototype,"nudgeStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.trimStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],Cd.prototype,"trimStyle",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.backgroundStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],Cd.prototype,"backgroundStyle",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.contentsLocation"),_.h("design:type",String),_.h("design:paramtypes",[])],Cd.prototype,"contentsLocation",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.disableDropShadow"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cd.prototype,"noShadow",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.lightIconImage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Cd.prototype,"noIcon",null);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsHorizontalButtons(data)"}),_.h("design:type",Boolean)],Cd.prototype,"isHorizontalButtons",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],Cd.prototype,"isDarkMode",void 0);Cd=_.E([_.m({is:"ytd-feed-nudge-renderer",disableElementRegistration:!0})],Cd);
_.Z(Cd,"ytd-feed-nudge-renderer",function(){if(lE0!==void 0)return lE0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lE0=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var bUe;var YTe;var sR=function(){var I=_.q.apply(this,arguments)||this;I.collapsed=!1;I.actionMap={"ytd-slimline-survey-rating-select-action":"handleRatingSelect","ytd-slimline-survey-show-action":"handleShowSurvey"};return I};
_.R(sR,_.q);sR.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"}}}};
sR.prototype.handleRatingSelect=function(){var I;((I=this.data)==null?0:I.onSelectRating)&&this.ytComponentBehavior.resolveCommand(this.data.onSelectRating);this.collapsed=!0};
sR.prototype.handleShowSurvey=function(){this.collapsed=!1};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sR.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],sR.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sR.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$x),_.h("design:type",Object)],sR.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sR.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sR.prototype,"collapsed",void 0);sR=_.E([_.m({is:"ytd-slimline-survey-renderer",disableElementRegistration:!0})],sR);
_.Z(sR,"ytd-slimline-survey-renderer",function(){if(YTe!==void 0)return YTe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return YTe=I},{mode:1});var GQ0;var o6=function(){return _.q.apply(this,arguments)||this};
_.R(o6,_.q);o6.prototype.maybeGetBackgroundColor=function(I){return this.isDarkMode?I.section2Color:I.section3Color};
o6.prototype.colorPaletteChanged=function(){var I=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;I&&(I==null?0:I.secondaryTitleColor)&&this.maybeGetBackgroundColor(I)?(this.hostElement.style.backgroundColor=_.lg(this.maybeGetBackgroundColor(I)),this.hostElement.style.color=_.lg(I.secondaryTitleColor)):(this.hostElement.style.backgroundColor="",this.hostElement.style.color="")};
o6.prototype.colorPaletteChanged=o6.prototype.colorPaletteChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],o6.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],o6.prototype,"data",void 0);_.E([_.d({selector:function(I){return I.ui.darkModeIsEnabled}}),
_.h("design:type",Boolean)],o6.prototype,"isDarkMode",void 0);_.E([_.d(),_.h("design:type",Object)],o6.prototype,"lightColorPalette",void 0);_.E([_.d(),_.h("design:type",Object)],o6.prototype,"darkColorPalette",void 0);_.E([_.FI("darkColorPalette","lightColorPalette","data","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],o6.prototype,"colorPaletteChanged",null);o6=_.E([_.m({disableElementRegistration:!0,is:"ytd-endorsement-header-renderer"})],o6);
_.Z(o6,"ytd-endorsement-header-renderer",function(){if(GQ0!==void 0)return GQ0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return GQ0=I},{mode:1});_.B9(_.wF,"yt-decorated-avatar-view-model",{props:{data:_.As,className:_.As}});var yF=function(){var I=_.q.apply(this,arguments)||this;I.fullHeight=_.V("web_rich_grid_media_full_height");I.showChannelAvatar=!0;I.hasPlaylistThumbnail=!1;I.prepareThumbnailForPageTransition=function(){_.V("web_thumbnail_to_watch_transition")&&(I.thumbnail.style.viewTransitionName="thumbnail-to-watch",I.cleanupThumbnailAfterPageTransition(I.thumbnail))};
return I};
_.R(yF,_.q);_.u=yF.prototype;
_.u.configureRendererStamper=function(){return{lazyLoadMenu:MV,immediateLoadMenu:{id:"immediate-load-menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},"data.thumbnailUnderlay":{id:"thumbnail-underlay",mapping:{endorsementHeaderRenderer:{component:"ytd-endorsement-header-renderer",properties:{lightColorPalette:"[[data.thumbnail.lightColorPalette]]",darkColorPalette:"[[data.thumbnail.darkColorPalette]]"}}}},"data.attachedSurvey":{id:"attached-survey",mapping:{slimlineSurveyRenderer:"ytd-slimline-survey-renderer"}},"data.buttons":{id:"buttons",
mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",params:{buttonTooltipPosition:"top"}},upcomingEventReminderButtonRenderer:"ytd-upcoming-event-reminder-button-renderer"}},dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}},"data.avatar":{id:"decorated-avatar",mapping:{decoratedAvatarViewModel:"yt-decorated-avatar-view-model"}}}};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.shouldLazyLoadMenu=function(){var I=this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO"||this.entitySelectorType==="RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST";return!_.V("kevlar_modern_downloads_page")||!I};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13834_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.JSC$13834_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:this.getVideoPreviewOpts()})};
_.u.getVideoPreviewOpts=function(){var I={},C;if((C=this.data)==null?0:C.multipleInlinePlaybackEndpoint)I=Twq;this.isRadio&&(I=zPe);return _.V("web_thumbnail_to_watch_transition")?Object.assign({},I,{onNavigateToWatchCallback:this.prepareThumbnailForPageTransition}):I};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$13834_inlinePreviewHoverListener)==null||oc(I)};
_.u.getOwner=function(){var I,C,y;return((I=this.data)==null?void 0:(C=I.channelThumbnailSupportedRenderers)==null?void 0:C.channelThumbnailWithLinkRenderer)||_.l((y=this.data)==null?void 0:y.showProviderChannelThumbnail,rhb)};
_.u.updateLockupSize=function(){var I;((I=this.getOwner())==null?0:I.thumbnail)?this.showChannelAvatar=!0:this.showChannelAvatar=!1};
_.u.getFeedbackEndpoint=function(I){if(_.l(I,_.fI))return I;var C,y;I=(y=(C=_.l(I,_.r9))==null?void 0:C.commands)!=null?y:[];C=_.T(I);for(y=C.next();!y.done;y=C.next())if(y=this.getFeedbackEndpoint(y.value))return y;return null};
_.u.computeNavigationEndpoint=function(I){return xCK(I==null?void 0:I.navigationEndpoint)};
_.u.handleReloadDownloadsInfo=function(){if(this.entityDrivenState){var I=Object.assign({},this.data,this.entityDrivenState);JSON.stringify(I)!==JSON.stringify(this.data)&&this.set("data",I)}};
_.u.onDataChanged=function(){var I=this,C=this.getOwner();if(C){this.set("data.owner",C);var y,k,F,z,c,r=((y=this.data)==null?void 0:(k=y.shortBylineText)==null?void 0:(F=k.runs)==null?void 0:(z=F[0])==null?void 0:z.text)||((c=C.name)==null?void 0:c.simpleText);this.set("data.owner.title",r)}var w,L,D,p,Q,X;C=((w=this.data)==null?void 0:(L=w.thumbnailRenderer)==null?void 0:L.playlistVideoThumbnailRenderer)||((D=this.data)==null?void 0:(p=D.thumbnailRenderer)==null?void 0:p.playlistCustomThumbnailRenderer)||
((Q=this.data)==null?void 0:(X=Q.thumbnailRenderer)==null?void 0:X.showCustomThumbnailRenderer);var b;((b=this.data)==null?0:b.thumbnail)||!C||this.set("data.thumbnail",C.thumbnail);this.updateInlinePreviewHoverListeners();requestAnimationFrame(function(){I.updateLockupSize()});
var S;if(w=((S=this.data)==null?void 0:S.trackingParams)||"")this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(w);var A;((A=this.dismissActionToReplayEntity)==null?0:A.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command)};
_.u.onHiddenChanged=function(){this.updateLockupSize()};
_.u.onIsDismissedChanged=function(){if(this.ytdDismissibleItemBehavior.isDismissed)_.Fe(this.hostElement,"yt-terminate-video-preview-action");else{var I;(I=this.videoTitleLink)==null||I.focus()}};
_.u.metadataColorChanged=function(){var I;if(this.metadataColor&&((I=this.videoTitle)==null?0:I.style))this.videoTitle.style.color=_.lg(this.metadataColor);else{var C,y;!this.metadataColor&&((C=this.videoTitle)==null?0:(y=C.style)==null?0:y.color)&&(this.videoTitle.style.color="")}};
_.u.onDetailsClick=function(I){var C=this.computedNavigationEndpoint;C&&(_.q3(_.qc(I),this.hostElement,["A","BUTTON"])||_.k3(this.hostElement,"yt-navigate",{endpoint:C}))};
_.u.cleanupThumbnailAfterPageTransition=function(I){_.Sqm(document,"yt-page-type-changed",function(){I.style.viewTransitionName=""})};
_.u.onRendererTap=function(){this.prepareThumbnailForPageTransition();var I,C,y=((I=this.data)==null?void 0:I.serviceEndpoint)||this.getFeedbackEndpoint((C=this.data)==null?void 0:C.navigationEndpoint);y&&_.l(y,_.fI)&&this.ytComponentBehavior.resolveCommand(y)};
_.u.onMouseDown=function(I){var C=I.target,y=this.computedNavigationEndpoint,k;I=C.href||((k=_.l(y==null?void 0:y.commandMetadata,_.It))==null?void 0:k.url);k=C.data||y;I&&k&&a5H(I,k)};
_.u.computeVideoTitleText=function(){var I;if((I=this.data)==null?0:I.title)return Object.assign({},this.data.title,{accessibility:void 0})};
_.u.computeHasPlaylistThumbnail=function(I){var C,y,k,F,z;if((((C=I.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((y=I.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer)||((k=I.thumbnailRenderer)==null?0:k.showCustomThumbnailRenderer)||((F=I.thumbnailRenderer)==null?0:F.playlistVideoThumbnailRenderer)||((z=I.thumbnailRenderer)==null?0:z.playlistCustomThumbnailRenderer))&&I.thumbnailOverlays)for(C=0;C<I.thumbnailOverlays.length;C++)if(y=void 0,(y=I.thumbnailOverlays[C])==
null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H1.Object.defineProperties(yF.prototype,{typographyBumpV2:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump_v2")}},
lazyLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(this.shouldLazyLoadMenu()){var I;return(I=this.data)==null?void 0:I.menu}}},
immediateLoadMenu:{configurable:!0,enumerable:!0,get:function(){if(!this.shouldLazyLoadMenu()){var I;return(I=this.data)==null?void 0:I.menu}}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$13834_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}},
stackThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return _.CeI(location.pathname)==="home"?"large":"medium"}},
useAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.avatar)}},
mediaId:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.videoId)||((C=this.data)==null?void 0:C.playlistId)||""}}});
yF.prototype.onMouseDown=yF.prototype.onMouseDown;yF.prototype.metadataColorChanged=yF.prototype.metadataColorChanged;yF.prototype.onIsDismissedChanged=yF.prototype.onIsDismissedChanged;yF.prototype.onHiddenChanged=yF.prototype.onHiddenChanged;yF.prototype.onDataChanged=yF.prototype.onDataChanged;yF.prototype.handleReloadDownloadsInfo=yF.prototype.handleReloadDownloadsInfo;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yF.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],yF.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],yF.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],yF.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],yF.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],yF.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],yF.prototype,"entitySelectorType",void 0);_.E([_.d(),_.h("design:type",Boolean)],yF.prototype,"noEndpoints",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],yF.prototype,"isRadio",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],yF.prototype,"miniMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],yF.prototype,"fullHeight",void 0);
_.E([_.d(),_.h("design:type",Boolean)],yF.prototype,"showDarkVideoMetadata",void 0);_.E([_.d(),_.h("design:type",Boolean)],yF.prototype,"showLightVideoMetadata",void 0);_.E([_.d(),_.h("design:type",Number)],yF.prototype,"metadataColor",void 0);_.E([_.d(),_.h("design:type",Object)],yF.prototype,"showChannelAvatar",void 0);_.E([_.d(),_.h("design:type",Boolean)],yF.prototype,"hidden",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],yF.prototype,"showYtInteraction",void 0);
_.E([_.d(),_.h("design:type",String)],yF.prototype,"dismissedContentId",void 0);_.E([_.d({selectorArgs:["dismissedContentId"],selector:vwm}),_.h("design:type",Object)],yF.prototype,"dismissActionToReplayEntity",void 0);
_.E([_.d({selectorArgs:["entitySelectorType","mediaId"],selector:function(I,C,y){if(_.V("kevlar_modern_downloads_page")&&y&&C&&C!=="RICH_ITEM_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_ITEM_ENTITY_SELECTOR_TYPE_VIDEO":var k=Q$z(I,y);if(k){C=_.Kx(I,y);var F=gi(I,y),z=fNz(I,y);I=vg(I,y);var c=zfX(k,C,F,z);F=c.shortViewCountText;var r=c.publishedTimeText;c=c.badges;var w=I>0;z=FyO(k,C,z,I);k=_.px(C)||C==="TRANSFER_STATE_FAILED"||C==="TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH"||!Dk(k.policyEntity)?
void 0:WIm(y,I,k.videoEntity.lengthSeconds);C==="TRANSFER_STATE_PAUSED_BY_USER"&&y&&!_.V("dl_resume_click_killswitch")&&(k={offlineVideoEndpoint:{videoId:y,action:"ACTION_RESUME"}});y={shortViewCountText:F,publishedTimeText:r,badges:c,isWatched:w,navigationEndpoint:k,thumbnailOverlays:z}}else y=void 0;return y;case "RICH_ITEM_ENTITY_SELECTOR_TYPE_PLAYLIST":a:{if(C=NOz(I,y))if(k=_.AS(I,y),z=_.VVO(I,y),k!=="TRANSFER_STATE_UNKNOWN"){y=uVH(C,k,z,y,nfK(I));break a}y=void 0}return y;default:_.SN(new _.ph("Error: entitySelectorType defined but not matched in selector.",
I,C))}}}),
_.h("design:type",Object)],yF.prototype,"entityDrivenState",void 0);_.E([_.d({computed:"computeVideoTitleText(data)"}),_.h("design:type",Object)],yF.prototype,"videoTitleText",void 0);_.E([_.d({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],yF.prototype,"hasPlaylistThumbnail",void 0);_.E([_.d({computed:"computeNavigationEndpoint(data)"}),_.h("design:type",Object)],yF.prototype,"computedNavigationEndpoint",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],yF.prototype,"typographyBump",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yF.prototype,"typographyBumpV2",null);_.E([_.z$("#video-title"),_.h("design:type",HTMLElement)],yF.prototype,"videoTitle",void 0);_.E([_.z$("#video-title-link"),_.h("design:type",HTMLElement)],yF.prototype,"videoTitleLink",void 0);
_.E([_.z$("#thumbnail"),_.h("design:type",HTMLElement)],yF.prototype,"thumbnail",void 0);_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],yF.prototype,"JSC$13834_dismissibleMedia",void 0);_.E([_.v("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],yF.prototype,"lazyLoadMenu",null);_.E([_.v("data.menu"),_.h("design:type",Object),_.h("design:paramtypes",[])],yF.prototype,"immediateLoadMenu",null);
_.E([_.rW("entityDrivenState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yF.prototype,"handleReloadDownloadsInfo",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yF.prototype,"onDataChanged",null);_.E([_.rW("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yF.prototype,"onHiddenChanged",null);
_.E([_.FI("isDismissed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yF.prototype,"onIsDismissedChanged",null);_.E([_.FI("metadataColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yF.prototype,"metadataColorChanged",null);_.E([_.km("mousedown"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],yF.prototype,"onMouseDown",null);
_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yF.prototype,"isHovered",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yF.prototype,"useAvatar",null);_.E([_.v("data","entitySelectorType"),_.h("design:type",String),_.h("design:paramtypes",[])],yF.prototype,"mediaId",null);yF=_.E([_.m({is:"ytd-rich-grid-media",disableElementRegistration:!0})],yF);
var fEP=_.MH()(yF,"ytd-rich-grid-media",function(){if(bUe!==void 0)return bUe;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-rich-grid-media--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" dark$="[[showDarkVideoMetadata]]" hidden="[[hidden]]" light$="[[showLightVideoMetadata]]" on-click="onRendererTap" class="style-scope ytd-rich-grid-media"><div id="thumbnail" class="style-scope ytd-rich-grid-media"><ytd-thumbnail data="[[data]]" hidden$="[[hasPlaylistThumbnail]]" hovered="[[isHovered]]" rich-grid-thumbnail="" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-thumbnail><ytd-playlist-thumbnail data="[[data]]" hidden="[[!hasPlaylistThumbnail]]" hovered="[[isHovered]]" is-double-stack="" thumbnail-size="[[stackThumbnailSize]]" use-expandable-tooltip="[[useExpandableTooltip]]" use-hovered-property="" width="9999" class="style-scope ytd-rich-grid-media"></ytd-playlist-thumbnail></div><div id="thumbnail-underlay" on-click="onDetailsClick" hidden="[[!data.thumbnailUnderlay]]" class="style-scope ytd-rich-grid-media"></div><div id="details" on-click="onDetailsClick" class="style-scope ytd-rich-grid-media"><div id="avatar-container" class="yt-simple-endpoint style-scope ytd-rich-grid-media" hidden="[[!showChannelAvatar]]"><a id="avatar-link" class="yt-simple-endpoint style-scope ytd-rich-grid-media" href$="[[computeHref_(data.owner.navigationEndpoint)]]" data="[[data.owner.navigationEndpoint]]" title="[[data.owner.title]]" tabindex="-1" hidden="[[useAvatar]]"><yt-img-shadow id="avatar" thumbnail="[[data.owner.thumbnail]]" width="48" class="style-scope ytd-rich-grid-media"></yt-img-shadow></a><div id="decorated-avatar" hidden="[[!useAvatar]]" class="style-scope ytd-rich-grid-media"></div></div><div id="meta" class="style-scope ytd-rich-grid-media"><h3 class="style-scope ytd-rich-grid-media"><ytd-badge-supported-renderer class="top-badge style-scope ytd-rich-grid-media" collection-truncate="" hidden="[[!data.topStandaloneBadge]]" top-standalone-badge="[[data.topStandaloneBadge]]"></ytd-badge-supported-renderer><a id="video-title-link" class="yt-simple-endpoint focus-on-expand style-scope ytd-rich-grid-media" href$="[[computeHref_(computedNavigationEndpoint)]]" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" data="[[computedNavigationEndpoint]]"><yt-formatted-string id="video-title" text="[[videoTitleText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string></a></h3><ytd-video-meta-block class="grid style-scope ytd-rich-grid-media" data="[[data]]" metadata-color="[[metadataColor]]" mini-mode="[[miniMode]]" radio-meta="[[isRadio]]" rich-meta="" typography-bump="[[typographyBump]]"></ytd-video-meta-block><ytd-badge-supported-renderer class="video-badge style-scope ytd-rich-grid-media" badges="[[data.badges]]" hidden="[[!data.badges]]"></ytd-badge-supported-renderer><ytd-badge-supported-renderer class="title-badge style-scope ytd-rich-grid-media" hidden="[[!data.bottomStandaloneBadge]]" top-standalone-badge="[[data.bottomStandaloneBadge]]"></ytd-badge-supported-renderer><yt-formatted-string id="view-more" hidden="[[!data.viewPlaylistText]]" link-inherit-color="" text="[[data.viewPlaylistText]]" class="style-scope ytd-rich-grid-media"></yt-formatted-string><div id="buttons" class="style-scope ytd-rich-grid-media"></div></div><div id="menu" class="style-scope ytd-rich-grid-media"></div><div id="immediate-load-menu" class="style-scope ytd-rich-grid-media"></div></div><div id="attached-survey" class="style-scope ytd-rich-grid-media"></div></div><div id="dismissed" light$="[[showLightVideoMetadata]]" dark$="[[showDarkVideoMetadata]]" class="style-scope ytd-rich-grid-media"><div id="dismissed-content" class="style-scope ytd-rich-grid-media"></div></div><yt-interaction id="interaction" class="extended style-scope ytd-rich-grid-media" hidden="[[!showYtInteraction]]"></yt-interaction>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return bUe=I},{mode:_.Ij("kevlar_poly_si_batch_j072")?1:2});var STS;var k8=function(){var I=_.q.apply(this,arguments)||this;I.removeMaxWidth=!0;I.insetMetadata=!1;return I};
_.R(k8,_.q);_.u=k8.prototype;_.u.configureRendererStamper=function(){return{innerMenu:MV,outerMenu:Object.assign({},MV,{id:"menu-outer"}),dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.onDataChanged=function(){var I,C=((I=this.data)==null?void 0:I.trackingParams)||"";C&&(this.dismissedContentId=this.ytdDismissibleItemBehavior.setAndGetDismissedContentId(C));var y;((y=this.dismissActionToReplayEntity)==null?0:y.command)&&this.ytdDismissibleItemBehavior.replayDismissAction(this.dismissActionToReplayEntity.command);this.updateInlinePreviewHoverListeners()};
_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.updateInlinePreviewHoverListeners=function(){if(this.isShort||this.isSlimShort)this.clearInlinePreviewHoverListeners(),this.JSC$13840_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.JSC$13840_dismissibleMedia,thumbnailElement:this.thumbnail,videoPreviewOpts:cBz})};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$13840_inlinePreviewHoverListener)==null||oc(I)};
_.u.onRendererTap=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.serviceEndpoints)==null?void 0:C[0];_.l(y,_.fI)&&this.componentBehavior.resolveCommand(y)};
_.u.onDetailsClick=function(I){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint;y&&(_.q3(_.qc(I),this.hostElement,["A","BUTTON"])||this.componentBehavior.resolveCommand(y))};
_.u.onShow=function(){var I=this.data;I.onFirstVisibleCommand&&(this.componentBehavior.resolveCommand(I.onFirstVisibleCommand),delete I.onFirstVisibleCommand)};
_.H1.Object.defineProperties(k8.prototype,{thumbnailObjectFit:{configurable:!0,enumerable:!0,get:function(){return this.insetMetadata?"COVER":void 0}},
innerMenu:{configurable:!0,enumerable:!0,get:function(){var I;return this.insetMetadata?void 0:(I=this.data)==null?void 0:I.menu}},
outerMenu:{configurable:!0,enumerable:!0,get:function(){var I;return this.insetMetadata?(I=this.data)==null?void 0:I.menu:void 0}},
shortsBadges:{configurable:!0,enumerable:!0,get:function(){var I=this.data;if(I!=null&&I.badge&&(I=_.l(I.badge,cwm))){var C,y,k;return[{metadataBadgeRenderer:{label:((C=I.label)==null?void 0:(y=C.runs)==null?void 0:y[0].text)||((k=I.label)==null?void 0:k.simpleText),style:"BADGE_STYLE_TYPE_SHORTS_PLAYER"}}]}}},
isShort:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.videoType)==="REEL_VIDEO_TYPE_VIDEO"}},
isSlimShort:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="REEL_ITEM_STYLE_SHORTS_SLIM"}},
computedTitle:{configurable:!0,enumerable:!0,get:function(){if(this.isShort){var I=this.data;return Object.assign({},I.headline,{accessibility:I.accessibility})}return this.data.title}},
computedAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return this.isSlimShort?(I=this.computedTitle)==null?void 0:(C=I.accessibility)==null?void 0:(y=C.accessibilityData)==null?void 0:y.label:void 0}},
isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$13840_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
k8.prototype.onDataChanged=k8.prototype.onDataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],k8.prototype,"componentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],k8.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],k8.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],k8.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.$x),_.h("design:type",Object)],k8.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],k8.prototype,"ytdReduxBehavior",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],k8.prototype,"thumbnail",void 0);_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],k8.prototype,"JSC$13840_dismissibleMedia",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],k8.prototype,"removeMaxWidth",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],k8.prototype,"insetMetadata",void 0);_.E([_.d(),_.h("design:type",String)],k8.prototype,"dismissedContentId",void 0);_.E([_.d({selectorArgs:["dismissedContentId"],selector:vwm}),_.h("design:type",Object)],k8.prototype,"dismissActionToReplayEntity",void 0);_.E([_.v("insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"thumbnailObjectFit",null);
_.E([_.v("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"innerMenu",null);_.E([_.v("data","insetMetadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"outerMenu",null);_.E([_.d(),_.h("design:type",Object)],k8.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],k8.prototype,"miniMode",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k8.prototype,"onDataChanged",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"shortsBadges",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k8.prototype,"isShort",null);
_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k8.prototype,"isSlimShort",null);_.E([_.v("data","isShort"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"computedTitle",null);_.E([_.v("isSlimShort","computedTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],k8.prototype,"computedAccessibilityLabel",null);
_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],k8.prototype,"isHovered",null);k8=_.E([_.m({is:"ytd-rich-grid-slim-media",disableElementRegistration:!0})],k8);
_.Z(k8,"ytd-rich-grid-slim-media",function(){if(STS!==void 0)return STS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return STS=I},{mode:_.Ij("kevlar_poly_si_batch_j063")?1:2});var K3e;var AbP;var FP=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(FP,_.q);FP.prototype.computeIcon=function(I){return I&&I.iconType?"yt-sys-icons:"+I.iconType.toLowerCase():""};
FP.prototype.onMouseEnter=function(){this.isHovered=!0};
FP.prototype.onMouseLeave=function(){this.isHovered=!1};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],FP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],FP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],FP.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],FP.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],FP.prototype,"isHovered",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],FP.prototype,"darkerDarkTheme",void 0);FP=_.E([_.m({is:"ytd-expand-on-hover-card-renderer",disableElementRegistration:!0})],FP);
_.Z(FP,"ytd-expand-on-hover-card-renderer",function(){if(AbP!==void 0)return AbP;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return AbP=I},{mode:1});var gnm,vnb=function(){if(gnm!==void 0)return gnm;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return gnm=I};_.jz("itemSectionRenderer","channelRenderer","ytd-channel-renderer");var um=function(){var I=_.q.apply(this,arguments)||this;I.compactStyle=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(um,_.q);_.u=um.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.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"}}}};
_.u.computeHideDot=function(I){return!(I&&I.subscriberCountText&&I.videoCountText)||this.compactStyle};
_.u.hasDualButtons=function(I){return I&&I.purchaseButton&&I.subscribeButton};
_.u.backgroundColorChanged=function(){if(this.data!==void 0){var I=this.data.backgroundColor;this.isDarkTheme&&(I=this.data.backgroundColorDarkTheme);this.hostElement.style.backgroundColor=I!=null?_.lg(I):"transparent"}};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.onTap=function(I){var C,y,k=((C=this.data)==null?void 0:C.navigationEndpoint)||((y=this.data)==null?void 0:y.serviceEndpoint);_.l(k,_.sd)&&(k&&_.N().resolve(_.ID).resolveCommand(k,{form:{element:this.hostElement}}),I.preventDefault())};
_.u.computeChannelEndpoint=function(I){return _.l(I,_.sd)?null:I};
_.u.computeHrefEndpoint=function(I){return _.l(I,_.sd)?null:this.componentBehavior.computeHref_(I)};
_.u.computeChannelRendererStyle=function(I){return I};
_.u.computeIconSize=function(I){return I?108:136};
_.H1.Object.defineProperties(um,{template:{configurable:!0,enumerable:!0,get:function(){return vnb()}}});
um.prototype.backgroundColorChanged=um.prototype.backgroundColorChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],um.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],um.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],um.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],um.prototype,"componentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],um.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],um.prototype,"isDarkTheme",void 0);_.E([_.d({computed:"computeChannelRendererStyle(data.channelRendererStyle)",reflectToAttribute:!0}),_.h("design:type",String)],um.prototype,"channelRendererStyle",void 0);_.E([_.d({computed:"hasDualButtons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],um.prototype,"dualButtons",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],um.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],um.prototype,"biggerThumbStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],um.prototype,"compactStyle",void 0);_.E([_.FI("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],um.prototype,"backgroundColorChanged",null);um=_.E([_.m({is:"ytd-channel-renderer",disableElementRegistration:!0})],um);_.Z(um,"ytd-channel-renderer",function(){return vnb()},{mode:1});var W3m;var dBq;_.jz("itemSectionRenderer","radioRenderer","ytd-radio-renderer");var zP=function(){var I=_.q.apply(this,arguments)||this;I.displayItemCount=2;I.collections=_.V("web_modern_collections_v2");I.hasPlaylistThumbnail=!1;I.stackThumbnailSize="large";return I};
_.R(zP,_.q);_.u=zP.prototype;_.u.attached=function(){this.updateInlinePreviewHoverListeners()};
_.u.detached=function(){this.clearInlinePreviewHoverListeners()};
_.u.dataChanged=function(){this.updateInlinePreviewHoverListeners()};
_.u.computeFirstVideos=function(I,C){return I&&C?I.slice(0,C):[]};
_.u.computeThumbnailWidth=function(I,C){return I?C==="BIG"?500:C==="MASSIVE"?600:C==="MEDIUM"?450:420:360};
_.u.computeThumbnailHeight=function(I,C){return I?C==="BIG"?280:C==="MASSIVE"?337:234:202};
_.u.clearInlinePreviewHoverListeners=function(){var I;(I=this.JSC$13853_inlinePreviewHoverListener)==null||oc(I)};
_.u.updateInlinePreviewHoverListeners=function(){this.clearInlinePreviewHoverListeners();this.JSC$13853_inlinePreviewHoverListener=h9({mediaRenderer:this,lockupElement:this.hostElement,videoPreviewOpts:Twq,thumbnailElement:this.thumbnail})};
_.u.computeHasPlaylistThumbnail=function(I){var C,y;if((((C=I.thumbnailRenderer)==null?0:C.playlistVideoThumbnailRenderer)||((y=I.thumbnailRenderer)==null?0:y.playlistCustomThumbnailRenderer))&&I.thumbnailOverlays)for(C=0;C<I.thumbnailOverlays.length;C++)if(y=void 0,(y=I.thumbnailOverlays[C])==null?0:y.thumbnailOverlayBottomPanelRenderer)return!0;return!1};
_.H1.Object.defineProperties(zP.prototype,{isHovered:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.JSC$13853_inlinePreviewHoverListener)==null?0:Dh(I))&&!!this.ytdLockupBehavior.lockupIsHovered}}});
zP.prototype.dataChanged=zP.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],zP.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zP.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],zP.prototype,"displayItemCount",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],zP.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],zP.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],zP.prototype,"collections",void 0);_.E([_.d({computed:"computeHasPlaylistThumbnail(data)"}),_.h("design:type",Object)],zP.prototype,"hasPlaylistThumbnail",void 0);_.E([_.d(),_.h("design:type",String)],zP.prototype,"stackThumbnailSize",void 0);_.E([_.z$("ytd-thumbnail"),_.h("design:type",HTMLElement)],zP.prototype,"thumbnail",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zP.prototype,"dataChanged",null);_.E([_.v("lockupIsHovered"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zP.prototype,"isHovered",null);zP=_.E([_.m({is:"ytd-radio-renderer",disableElementRegistration:!0})],zP);
_.Z(zP,"ytd-radio-renderer",function(){if(dBq!==void 0)return dBq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return dBq=I},{mode:_.Ij("kevlar_poly_si_batch_j058")?1:2});var xBq;_.jz("itemSectionRenderer","showRenderer","ytd-show-renderer");var TP=function(){return _.q.apply(this,arguments)||this};
_.R(TP,_.q);TP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
TP.prototype.computeThumbnailWidth=function(I){return I?360:246};
TP.prototype.computeUseProminentThumbs=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],TP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],TP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],TP.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],TP.prototype,"isSearch",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeUseProminentThumbs(isSearch)"}),_.h("design:type",Boolean)],TP.prototype,"useProminentThumbs",void 0);TP=_.E([_.m({is:"ytd-show-renderer",disableElementRegistration:!0})],TP);
_.Z(TP,"ytd-show-renderer",function(){if(xBq!==void 0)return xBq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xBq=I},{mode:1});_.jz("itemSectionRenderer","feedEntryRenderer","ytd-feed-entry-renderer");var cW=function(){var I=_.q.apply(this,arguments)||this;I.isRichGrid=!1;return I};
_.R(cW,_.q);cW.prototype.configureRendererStamper=function(){return{"data.item":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",videoRenderer:{matcher:function(){return this.isRichGrid?"ytd-rich-grid-media":"ytd-video-renderer"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cW.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cW.prototype,"isRichGrid",void 0);cW=_.E([_.m({is:"ytd-feed-entry-renderer",disableElementRegistration:!0})],cW);
_.Z(cW,"ytd-feed-entry-renderer",function(){if(W3m!==void 0)return W3m;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return W3m=I},{mode:1});var qTP;var ea=function(){return _.q.apply(this,arguments)||this};
_.R(ea,_.q);ea.prototype.showChevronIcon=function(){return this.itemsPerRow>1};
_.E([_.g(_.lZ),_.h("design:type",Object)],ea.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ea.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ea.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ea.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.Y9,value:3}),_.h("design:type",Number)],ea.prototype,"itemsPerRow",void 0);
ea=_.E([_.m({is:"ytd-link-card-renderer",disableElementRegistration:!0})],ea);
_.Z(ea,"ytd-link-card-renderer",function(){if(qTP!==void 0)return qTP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qTP=I},{mode:1});var mB0;var r7=function(){return _.q.apply(this,arguments)||this};
_.R(r7,_.q);_.u=r7.prototype;_.u.configureRendererStamper=function(){return{"data.menu":MV,dismissedRenderer:{id:"dismissed-content",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer",notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.u.onRendererTap=function(I){if(!this.ytdDismissibleItemBehavior.isDismissed){var C,y=(C=this.data)==null?void 0:C.navigationEndpoint;y&&!_.q3(_.qc(I),this.hostElement,["BUTTON"])&&(this.isNavigationCommand(y)?_.q3(_.qc(I),this.hostElement,["A"])||_.k3(this.hostElement,"yt-navigate",{endpoint:y}):this.ytComponentBehavior.resolveCommand(y,{}))}};
_.u.maybeComputeHref=function(I){return this.ytComponentBehavior.computeHref_(I,!0)};
_.u.getNavigationCommand=function(I){return this.isNavigationCommand(I)?I:null};
_.u.isNavigationCommand=function(I){return I?_.l(I,_.rU)||_.l(I,_.H$)||_.l(I,_.xo)?!0:!1:!1};
r7.prototype.onRendererTap=r7.prototype.onRendererTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],r7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],r7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],r7.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],r7.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],r7.prototype,"data",void 0);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],r7.prototype,"onRendererTap",null);r7=_.E([_.m({is:"ytd-lumiere-promo-item-image-renderer",disableElementRegistration:!0})],r7);
_.Z(r7,"ytd-lumiere-promo-item-image-renderer",function(){if(mB0!==void 0)return mB0;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mB0=I},{mode:1});var ZUS;var im=function(){return _.q.apply(this,arguments)||this};
_.R(im,_.q);im.prototype.computeLandscapeThumbnail=function(){var I;return((I=this.data)==null?void 0:I.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_16_9"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],im.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],im.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],im.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],im.prototype,"miniMode",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.Y9}),_.h("design:type",Number)],im.prototype,"itemsPerRow",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeLandscapeThumbnail(data)"}),_.h("design:type",Boolean)],im.prototype,"landscapeThumbnail",void 0);im=_.E([_.m({is:"ytd-lumiere-shelf-details-renderer",disableElementRegistration:!0})],im);
_.Z(im,"ytd-lumiere-shelf-details-renderer",function(){if(ZUS!==void 0)return ZUS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZUS=I},{mode:_.Ij("kevlar_poly_si_batch_j076")?1:2});var B$8;var w7=function(){return _.q.apply(this,arguments)||this};
_.R(w7,_.q);w7.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],w7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],w7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],w7.prototype,"data",void 0);w7=_.E([_.m({is:"ytd-primetime-promo-details-renderer",disableElementRegistration:!0})],w7);
_.Z(w7,"ytd-primetime-promo-details-renderer",function(){if(B$8!==void 0)return B$8;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return B$8=I},{mode:1});var Enu;var nd=function(){return _.q.apply(this,arguments)||this};
_.R(nd,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nd.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nd.prototype,"data",void 0);nd=_.E([_.m({is:"ytd-panel-show-style-metadata-renderer",disableElementRegistration:!0})],nd);
_.Z(nd,"ytd-panel-show-style-metadata-renderer",function(){if(Enu!==void 0)return Enu;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Enu=I},{mode:1});var hew;var PW=function(){return _.q.apply(this,arguments)||this};
_.R(PW,_.q);_.u=PW.prototype;_.u.onPanelTap=function(){if(this.data&&this.data.command&&!this.isNavigationCommand(this.data.command))return this.ytComponentBehavior.resolveCommand(this.data.command,{})};
_.u.configureRendererStamper=function(){return{"data.metadata":{id:"panel-metadata",mapping:{panelShowStyleMetadataRenderer:{component:"ytd-panel-show-style-metadata-renderer"}}}}};
_.u.computeThumbnail=function(I){if(I)return I.smallFormFactorBackgroundThumbnail||I.largeFormFactorBackgroundThumbnail};
_.u.maybeComputeHref=function(I){return this.ytComponentBehavior.computeHref_(I,!0)};
_.u.isNavigationCommand=function(I){return I?_.l(I,_.rU)||_.l(I,_.H$)||_.l(I,_.xo)?!0:!1:!1};
_.u.getNavigationCommand=function(I){return this.isNavigationCommand(I)?I:null};
PW.prototype.onPanelTap=PW.prototype.onPanelTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],PW.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],PW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PW.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],PW.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0,value:_.V("web_modern_buttons")}),_.h("design:type",Boolean)],PW.prototype,"modernButtons",void 0);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PW.prototype,"onPanelTap",null);PW=_.E([_.m({is:"ytd-primetime-promo-panel-renderer",disableElementRegistration:!0})],PW);
_.Z(PW,"ytd-primetime-promo-panel-renderer",function(){if(hew!==void 0)return hew;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hew=I},{mode:1});_.B9(_.BO(function(I){I=_.ZB(I,{data:{},useFullWidth:!1});var C=I.data,y=I.useFullWidth,k=function(){return C().caption},F=function(){return C().image},z=function(){return _.Rj(C().onTap)};
I={};I=_.sZ("ytTeaserCardViewModelHost",(I.ytTeaserCardViewModelUseFullWidth=function(){return y()},I));
return _.P("teaser-card-view-model",{class:I},_.P(_.Dx,{cond:function(){return z()},
then:function(){return _.P(n08,{className:"ytTeaserCardViewModelLink",command:z,forceNewState:!0,useATagConfig:!0},_.P("div",{class:"ytTeaserCardViewModelImageContainer"},_.P(_.Dx,{cond:F,then:function(c){return _.P(_.x$,{data:c,className:"ytTeaserCardViewModelImage",alt:""})}})),_.P("p",{class:"ytTeaserCardViewModelCaption"},k))}}))},"xb"),"teaser-card-view-model",{props:{data:_.As,
useFullWidth:_.As}});var UB0=new _.Jj("RICH_GRID_VIDEO_RENDERER_TOKEN");_.B9(_.BO(function(I){var C=I.data;var y=I.showYtInteractionInContent;var k=function(){return!!C().selectableFeedback};
I=_.T(_.c4(!1,void 0,"nblDw"));var F=I.next().value,z=I.next().value;_.RU(function(){var Q=_.l(C().primaryButton,_.$A);(Q==null?0:Q.isToggled)&&z(Q.isToggled)});
I=_.uk(function(Q){if(!k())return!1;if(F()){var X;var b=(X=C().selectableFeedback)==null?void 0:X.onDeselect}else{var S;b=(S=C().selectableFeedback)==null?void 0:S.onSelect}b&&_.Gp(b,{form:{element:Q.target}});z(!F());if(Q=_.l(C().primaryButton,_.$A))Q.isToggled=F();return!1});
var c=function(){if(!k()){var Q,X=(Q=C().loggingDirectives)==null?void 0:Q.trackingParams;X&&_.FV(_.N().resolve(_.zd),X)}},r=_.R_m(),w=function(){var Q;
return k()?(Q=C().selectableFeedback)==null?void 0:Q.a11yLabel:void 0},L=function(){return k()?{toggled:F()}:{}},D=_.N().resolve(_.aU(UB0)),p={};
return _.P("yt-feedback-item-renderer",{class:_.sZ("ytFeedbackItemRendererHost",(p.ytFeedbackItemRendererSelectableFeedback=k,p)),"on:click":I,"on:keydown":r,title:w,"aria-label":w,"aria-pressed":function(){return k()?F():void 0},
tabindex:function(){return k()?0:void 0},
role:function(){return k()?"button":void 0}},_.P("div",{class:"ytFeedbackItemRendererContentContainer"},_.P(_.lY,{data:function(){return C().content}},{videoRenderer:function(Q){return _.P(D,{data:Q.data,
showYtInteraction:y})},
lockupViewModel:function(Q){return _.P(_.UA,{data:Q.data,containerType:2})}})),_.P("div",{class:"ytFeedbackItemRendererButtonsContainer"},_.P(_.lY,{data:function(){return C().primaryButton}},{toggleButtonViewModel:function(Q){return _.P(_.RY,{data:Q.data,
buttonShapeOverrides:L,disableExplicitClickLogging:!0,onToggle:c})}})))},"yb"),"yt-feedback-item-renderer",{props:{data:_.As,
showYtInteractionInContent:_.As}});var Ld=function(){var I=_.q.apply(this,arguments)||this;I.isShortsGrid=!1;I.isCompactGrid=!1;I.isShortsPanelGrid=!1;I.renderedFromRichGrid=!1;I.isInFirstColumn=!1;I.noGutterMargins=!1;I.isInlineGroupItem=!1;I.insetMetadata=!1;I.noBottomMarginInAds=_.V("web_no_bottom_margin_for_home_ad_buttons");I.force16By9ThumbnailAspectRatio=!1;I.useCompactList=!1;I.containerType=2;I.thumbnailTargetWidth=9999;I.isResponsiveGrid=!1;I.lockupExperiments={useRichGridLegacyTypography:!0,useRichGridLegacyMargin:!0};I.actionMap=
{"ytd-rich-item-index-update-action":"onIndexUpdateAction"};I.hoverListener=I.hover.bind(I);I.leaveListener=I.leave.bind(I);I.highlighted=!1;I.JSC$13888_unsubscribeFromInlinePreviewIsActive=function(){};
return I};
_.R(Ld,_.q);_.u=Ld.prototype;_.u.computeContainerType=function(){return this.useCompactList?3:2};
_.u.computeThumbnailTargetWidth=function(){var I;return(I=this.itemWidth)!=null?I:9999};
_.u.updateIsInFirstColumn=function(){var I;this.isInFirstColumn=((I=this.data)==null?void 0:I.colIndex)===0};
_.u.observerContainerType=function(){if(this.lockup){var I=this.lockup;I.containerType=this.containerType;I.sizing=this.sizing;I.typographyBump=this.typographyBump;I.itemWidth=this.itemWidth}this.richGridMedia&&_.V("rich_grid_enable_dynamic_offset")&&(this.richGridMedia.typographyBump=this.richTypographyBump);this.adSlotRenderer&&_.V("rich_grid_enable_dynamic_offset")&&(this.adSlotRenderer.typographyBump=this.richTypographyBump)};
_.u.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-rich-item-renderer lockup",thumbnailFixedWidth:"50%"},properties:{force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",containerType:"[[containerType]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailTargetWidth:"[[thumbnailTargetWidth]]",lockupExperiments:"[[lockupExperiments]]"}},postRenderer:{component:"ytd-post-renderer",
params:{isRichGrid:!0}},sharedPostRenderer:{component:"ytd-shared-post-renderer",params:{isRichGrid:!0}},primetimePromoDetailsRenderer:"ytd-primetime-promo-details-renderer",primetimePromoPanelRenderer:"ytd-primetime-promo-panel-renderer",movieRenderer:{component:"ytd-rich-grid-slim-media"},compactMovieRenderer:{component:"ytd-rich-grid-media",properties:{typographyBump:"[[richTypographyBump]]",showYtInteraction:"[[showYtInteractionOnRichGridMedia]]"}},reelItemRenderer:{component:"ytd-rich-grid-slim-media",
properties:{insetMetadata:"[[insetMetadata]]"}},shortsLockupViewModel:{component:"ytm-shorts-lockup-view-model-v2",properties:{aspectRatio:"[[shortsLockupViewModelAspectRatio]]",inlineMetadata:"[[insetMetadata]]",scrimStyle:"[[shortsLockupViewModelScrimStyle]]",useDefaultStyle:"[[isShortsPanelGrid]]"}},feedbackItemRenderer:{component:"yt-feedback-item-renderer",properties:{showYtInteractionInContent:"[[showYtInteractionOnRichGridMedia]]"}},videoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},
properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",typographyBump:"[[richTypographyBump]]"}},radioRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},playlistRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",entitySelectorType:"[[data.entitySelectorType]]",
typographyBump:"[[richTypographyBump]]"}},gridShowRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},promotedVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1,isPromotedVideo:!0},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}},feedEntryRenderer:{component:"ytd-feed-entry-renderer",params:{isRichGrid:!0}},
displayAdRenderer:{component:"ytd-display-ad-renderer"},adSlotRenderer:{component:"ytd-ad-slot-renderer",properties:{noBottomMargin:"[[noBottomMarginInAds]]",typographyBump:"[[richTypographyBump]]"}},lumiereShelfDetailsRenderer:"ytd-lumiere-shelf-details-renderer",lumierePromoItemImageRenderer:"ytd-lumiere-promo-item-image-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gameCardRenderer:{component:"ytd-game-card-renderer",params:{isRichGrid:!0}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",
params:{isRichGrid:!0}},expandOnHoverCardRenderer:"ytd-expand-on-hover-card-renderer",linkCardRenderer:"ytd-link-card-renderer",gridMovieRenderer:{component:"ytd-rich-grid-slim-media"},gridChannelRenderer:{component:"ytd-grid-channel-renderer",params:{isRichGrid:!0}},teaserCardViewModel:{component:"teaser-card-view-model",params:{useFullWidth:!0}},gridVideoRenderer:{component:"ytd-rich-grid-media",params:{isRadio:!1},properties:{showYtInteraction:"[[showYtInteractionOnRichGridMedia]]",typographyBump:"[[richTypographyBump]]"}}}}}};
_.u.leave=function(I){I=I.relatedTarget;var C=document.querySelector("ytd-video-preview");I&&C&&_.Oq(C).contains(I)||this.removeAndCleanupHighlight()};
_.u.hover=function(){var I;if(!this.highlighted&&(!_.V("web_enable_rich_item_on_focus_effect")||(I=this.data)!=null&&I.onFocusEffect)){var C,y;((C=this.data)==null?void 0:(y=C.onFocusEffect)==null?void 0:y.onFocusStyle)==="ON_FOCUS_STYLE_BACKGROUND"&&(this.hostElement.classList.add("ytd-rich-item-renderer-highlight"),(I=this.getBackgroundColor())&&Object.assign(this.hostElement.style,{backgroundColor:I,boxShadow:"0 0 0 10px "+I}));var k,F;((k=this.data)==null?void 0:(F=k.onFocusEffect)==null?void 0:
F.onFocusStyle)==="ON_FOCUS_STYLE_BORDER"&&this.hostElement.classList.add("ytd-rich-item-renderer-highlight-border");this.highlighted=!0}};
_.u.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};
_.u.registerHoverHighlightListeners=function(){var I=this;this.hostElement.addEventListener("mouseover",this.hoverListener);this.hostElement.addEventListener("mouseleave",this.leaveListener);this.JSC$13888_unsubscribeFromInlinePreviewIsActive=_.rf(_.Hg(),_.roH,function(C){I.highlighted&&!C&&I.removeAndCleanupHighlight()})};
_.u.removeHoverHighlightListeners=function(){this.hostElement.removeEventListener("mouseover",this.hoverListener);this.hostElement.removeEventListener("mouseleave",this.leaveListener);this.JSC$13888_unsubscribeFromInlinePreviewIsActive()};
_.u.richGridHoverHighlightChanged=function(){this.richGridHoverHighlight?this.registerHoverHighlightListeners():this.removeHoverHighlightListeners()};
_.u.detached=function(){this.richGridHoverHighlight&&this.removeHoverHighlightListeners()};
_.u.getBackgroundColor=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.onFocusEffect)==null?void 0:C.onFocusColor;if(y){if(document.documentElement.hasAttribute("dark")&&(y==null?0:y.darkTheme))return _.lg(y==null?void 0:y.darkTheme);if(y==null?0:y.lightTheme)return _.lg(y==null?void 0:y.lightTheme)}};
_.u.onIndexUpdateAction=function(){this.updateIsInFirstColumn();if(this.hostElement.offsetParent!==null){var I=_.Si(),C,y,k;I&&((C=this.data)==null?0:C.trackingParams)&&((y=this.data)==null?void 0:y.colIndex)!=null&&((k=this.data)==null?void 0:k.rowIndex)!=null&&_.UN(I,_.nv(this.data.trackingParams),{gridData:{veColumnCoordinate:this.data.colIndex,veRowCoordinate:this.data.rowIndex}})}};
_.u.isSlimMediaRenderer=function(I){return!!_.l(I==null?void 0:I.content,_.qIw)||!!_.l(I==null?void 0:I.content,xC8)||!!_.l(I==null?void 0:I.content,_.GX)||!!_.l(I==null?void 0:I.content,uom)};
_.u.isPostRenderer=function(){var I,C;return!!_.l((I=this.data)==null?void 0:I.content,J0w)||!!_.l((C=this.data)==null?void 0:C.content,OFw)};
_.u.computeIsGameCardShelf=function(){var I;return!!_.l((I=this.data)==null?void 0:I.content,JZS)};
_.u.computeIsMiniGameCardShelf=function(){var I,C;return!!_.l((I=this.data)==null?void 0:I.content,eJq)||!!_.l((C=this.data)==null?void 0:C.content,rjd)};
_.u.computeIsTeaserCard=function(){var I;return!!_.l((I=this.data)==null?void 0:I.content,rjd)};
_.u.computeIsSelectableFeedbackItem=function(){var I,C;return!((C=_.l((I=this.data)==null?void 0:I.content,_.wlb))==null||!C.selectableFeedback)};
_.u.computeContainsLumierePosters=function(){var I,C;return((C=_.l((I=this.data)==null?void 0:I.content,uhq))==null?void 0:C.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.u.computeIsExpandOnHoverCardShelf=function(){var I;return!!_.l((I=this.data)==null?void 0:I.content,FRq)};
_.u.computeIsLinkCardShelf=function(){var I;return!!_.l((I=this.data)==null?void 0:I.content,ys8)};
_.u.computeIsReelItemStyleAvatarCircle=function(I){var C;return((C=_.l(I==null?void 0:I.content,_.GX))==null?void 0:C.style)==="REEL_ITEM_STYLE_AVATAR_CIRCLE"};
_.u.computeIsLinkCardFullWidth=function(I,C){var y;return((y=_.l(I==null?void 0:I.content,ys8))==null?void 0:y.useFullWidth)||C<=2};
_.H1.Object.defineProperties(Ld.prototype,{showYtInteractionOnRichGridMedia:{configurable:!0,enumerable:!0,get:function(){return!this.showYtInteractionOnRichItem}},
showYtInteractionOnRichItem:{configurable:!0,enumerable:!0,get:function(){return this.richGridHoverHighlight||this.isSelectableFeedbackItem}},
richTypographyBump:{configurable:!0,enumerable:!0,get:function(){return this.typographyBump&&_.V("web_enable_typography_bump")}},
richGridHoverHighlight:{configurable:!0,enumerable:!0,get:function(){return _.V("web_enable_rich_item_on_focus_effect")||_.V("rich_grid_hover_highlight")&&!this.isShortsGrid&&!this.isCompactGrid}},
shortsLockupViewModelAspectRatio:{configurable:!0,enumerable:!0,get:function(){return _.V("web_shorts_2_by_3_lockups_no_home")&&this.isHomeShelf?0:this.isInlineGroupItem?2:this.isShortsPanelGrid||_.V("web_shorts_2_by_3_lockups_study")||_.V("web_shorts_2_by_3_lockups_home")&&this.isHomeShelf?1:0}},
shortsLockupViewModelScrimStyle:{configurable:!0,enumerable:!0,get:function(){return this.isInlineGroupItem?4:3}}});
Ld.prototype.richGridHoverHighlightChanged=Ld.prototype.richGridHoverHighlightChanged;Ld.prototype.observerContainerType=Ld.prototype.observerContainerType;Ld.prototype.updateIsInFirstColumn=Ld.prototype.updateIsInFirstColumn;_.E([_.g(_.lZ),_.h("design:type",Object)],Ld.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ld.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ld.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ld.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],Ld.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ld.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isPostRenderer(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isPost",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeContainsLumierePosters(data)"}),_.h("design:type",Boolean)],Ld.prototype,"containsLumierePosters",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isSlimMediaRenderer(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isSlimMedia",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsGameCardShelf(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isGameCardShelf",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsMiniGameCardShelf(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isMiniGameCardShelf",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsTeaserCard(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isTeaserCard",void 0);_.E([_.d({computed:"computeIsSelectableFeedbackItem(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isSelectableFeedbackItem",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isShortsGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ld.prototype,"isSlimGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isCompactGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isShortsPanelGrid",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsExpandOnHoverCardShelf(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isExpandOnHoverCardShelf",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsLinkCardShelf(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isLinkCardShelf",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.Y9,value:3}),_.h("design:type",Number)],Ld.prototype,"itemsPerRow",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"renderedFromRichGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isInFirstColumn",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"noGutterMargins",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isInlineGroupItem",void 0);_.E([_.d(),_.h("design:type",Object)],Ld.prototype,"insetMetadata",void 0);
_.E([_.d(),_.h("design:type",Object)],Ld.prototype,"noBottomMarginInAds",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ld.prototype,"isShelfItem",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsReelItemStyleAvatarCircle(data)"}),_.h("design:type",Boolean)],Ld.prototype,"isReelItemStyleAvatarCircle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsLinkCardFullWidth(data, itemsPerRow)"}),_.h("design:type",Boolean)],Ld.prototype,"isLinkCardFullWidth",void 0);
_.E([_.d(),_.h("design:type",Object)],Ld.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"useCompactList",void 0);_.E([_.d(),_.h("design:type",String)],Ld.prototype,"sizing",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Ld.prototype,"typographyBump",void 0);_.E([_.d(),_.h("design:type",Number)],Ld.prototype,"itemWidth",void 0);_.E([_.d(),_.h("design:type",Boolean)],Ld.prototype,"isHomeShelf",void 0);
_.E([_.z$("yt-lockup-view-model"),_.h("design:type",HTMLElement)],Ld.prototype,"lockup",void 0);_.E([_.z$("ytd-rich-grid-media"),_.h("design:type",HTMLElement)],Ld.prototype,"richGridMedia",void 0);_.E([_.z$("ytd-ad-slot-renderer"),_.h("design:type",HTMLElement)],Ld.prototype,"adSlotRenderer",void 0);_.E([_.d({computed:"computeContainerType(useCompactList)"}),_.h("design:type",Object)],Ld.prototype,"containerType",void 0);
_.E([_.d({computed:"computeThumbnailTargetWidth(itemWidth)"}),_.h("design:type",Object)],Ld.prototype,"thumbnailTargetWidth",void 0);_.E([_.v("showYtInteractionOnRichItem"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ld.prototype,"showYtInteractionOnRichGridMedia",null);_.E([_.v("isSelectableFeedbackItem","richGridHoverHighlight"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ld.prototype,"showYtInteractionOnRichItem",null);
_.E([_.v("typographyBump"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ld.prototype,"richTypographyBump",null);_.E([_.d({reflectToAttribute:!0}),_.v("isShortsGrid","isCompactGrid"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ld.prototype,"richGridHoverHighlight",null);_.E([_.v("isShortsPanelGrid","isHomeShelf","isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],Ld.prototype,"shortsLockupViewModelAspectRatio",null);
_.E([_.v("isInlineGroupItem"),_.h("design:type",Number),_.h("design:paramtypes",[])],Ld.prototype,"shortsLockupViewModelScrimStyle",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ld.prototype,"updateIsInFirstColumn",null);_.E([_.FI("containerType","sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ld.prototype,"observerContainerType",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ld.prototype,"isResponsiveGrid",void 0);_.E([_.d(),_.h("design:type",Object)],Ld.prototype,"lockupExperiments",void 0);_.E([_.FI("richGridHoverHighlight"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ld.prototype,"richGridHoverHighlightChanged",null);Ld=_.E([_.m({is:"ytd-rich-item-renderer",disableElementRegistration:!0})],Ld);
_.HUc=_.MH()(Ld,"ytd-rich-item-renderer",function(){if(K3e===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);K3e=I}I=K3e;return I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var xvI={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.gif"};var HG9=_.Ee(_.PQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var tp0;var Dl=function(){var I=_.q.apply(this,arguments)||this;I.useResponsiveGrid=!1;I.hidden=!1;I.standardShelfMargins=_.V("web_rich_grid_standard_shelf_margins");I.isShowMoreHidden=!1;I.isExpanded=!1;I.isInnerShelf=!1;I.allVideosCount=0;I.allPlaylistCount=0;I.haveSmartDownloadsCompleted=!1;I.isShowLessHidden=!0;I.restrictContentsOverflow=!1;I.firstShownIndex=0;I.horizontalOffset=0;I.atEnd=!0;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-rich-grid-resize-observed":"resizeObserved",
"yt-section-reactive-dismissal":"onSectionReactiveDismissal"};I.nextClick=function(){var C;(C=I.data)!=null&&C.contents&&(I.firstShownIndex+=I.currentElementsPerRow,I.updateHorizontalOffset(),I.updateHorizontalItemVisibility())};
I.previousClick=function(){var C;(C=I.data)!=null&&C.contents&&(I.firstShownIndex-=I.currentElementsPerRow,I.updateHorizontalOffset(),I.updateHorizontalItemVisibility())};
return I};
_.R(Dl,_.q);_.u=Dl.prototype;
_.u.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isResponsiveGrid:"[[useResponsiveGrid]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]",isHomeShelf:"[[isHomePage]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]"},params:{isShelfItem:!0}}}},"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{buttonTooltipPosition:_.Aq("HTML_DIR")===
"rtl"?"right":"left"}}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:{component:"ytd-notification-multi-action-renderer",params:{shelfDismissal:!0}}}}}};
_.u.attached=function(){this.requestElementsPerRow()};
_.u.refreshGridLayoutNew=function(){var I;if((I=this.data)!=null&&I.contents&&this.containerWidth){var C;((C=this.data.responsiveContainerConfiguration)==null?0:C.responsiveSize)?(I=_.OGK(this.data.responsiveContainerConfiguration,this.containerWidth),I=_.Hj(Object.assign({},I,{standardUnitMinWidth:this.standardUnitMinWidth}))):I=_.Hj({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,standardUnitMinWidth:this.standardUnitMinWidth});this.typographyBump=I.typographyBump;if(this.elementsPerRow!==
I.numItems||this.gutter!==I.gutter)this.elementsPerRow=I.numItems,this.gutter=I.gutter,this.itemWidth=I.itemWidth,_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":I.gutter+"px"})}};
_.u.computeSizing=function(){if(!(this.isLumiere||this.isShortsShelf()&&_.V("web_use_layout_library_for_rich_grid_disable_shorts"))){var I=_.sXF(this.data);if(I)return I;if(_.V("web_use_layout_library_for_rich_grid"))return this.isGameCardShelf()||this.isMiniGameCardShelf()||this.isSlimMediaShelfRenderer()||this.isLumiereShelfWithPosters()||this.isShortsShelf()?"EXTRA_COMPACT":"STANDARD"}};
_.u.computeUseResponsiveGrid=function(){return this.isShortsShelf()&&_.V("web_use_layout_library_for_rich_grid_disable_shorts")?!1:!this.isLumiere&&this.sizing};
_.u.computeButton=function(I){var C=_.l(I,_.fZ);I=Object.assign({},_.l(I,_.fZ));return C?(I.text||(I.text={simpleText:I.tooltip}),I.style="STYLE_MONO_OUTLINE",I.iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT",I):C};
_.u.onRowIndexChange=function(){var I=_.Si(),C,y;((C=this.data)==null?0:C.trackingParams)&&((y=this.data)==null?void 0:y.rowIndex)!=null&&I&&_.UN(I,_.nv(this.data.trackingParams),{gridData:{veRowCoordinate:this.data.rowIndex}})};
_.u.resizeObserved=function(){if(this.hasChevronButtons&&this.horizontalOffset!==0){var I,C=((I=this.getRichItemRenderers()[0])==null?void 0:I.clientWidth)+this.gutter;this.horizontalOffset=this.firstShownIndex*C;this.updateHorizontalItemVisibility()}else this.contents.style.transform="translateX(0px)"};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
_.u.onUpdateElementsPerRowAction=function(I,C,y,k,F,z){if(this.containerWidth!==z&&(this.containerWidth=z,this.useResponsiveGrid)){this.refreshGridLayoutNew();this.updateItemVisibility();return}!this.useResponsiveGrid&&I&&C&&y&&k&&F&&(this.elementsPerRow!==I||this.postsPerRow!==C||this.slimItemsPerRow!==y||this.gameCardsPerRow!==k||this.miniGameCardsPerRow!==F)&&(this.elementsPerRow=I,this.postsPerRow=C,this.slimItemsPerRow=y,this.gameCardsPerRow=k,this.miniGameCardsPerRow=F,this.updateItemVisibility())};
_.u.getRichItemRenderers=function(){return _.f(this.hostElement).querySelectorAll("ytd-rich-item-renderer")};
_.u.updateItemVisibility=function(){var I=this;if(this.data&&this.data.contents){var C=this.data.contents.length;if(this.hasChevronButtons)this.updateArrowButtonStatus();else{this.getRichItemRenderers().forEach(function(k,F){var z;((z=I.data)==null?0:z.isExpanded)?(k.hidden=F>C-1,k.ytRendererBehavior.markDirty()):k.hidden=F>I.currentElementsPerRow-1||F>C-1});
var y=this.data.contents.length<=this.currentElementsPerRow;this.isExpanded=!!this.data.isExpanded;this.isShowMoreHidden=!this.data.showMoreButton||y||!!this.data.isExpanded||this.isTruncated;this.isShowLessHidden=!this.data.showLessButton||y||!this.data.isExpanded||this.isTruncated}this.contents.style.visibility="visible"}};
_.u.setHeightToSingleRow=function(){var I=this.getRichItemRenderers(),C=Number.parseInt(getComputedStyle(I[0]).marginBottom,10)||0;I=I.slice(0,this.currentElementsPerRow).reduce(function(y,k){return Math.max(y,k.getBoundingClientRect().height+C)},0);
this.contents.style.height=I+"px"};
_.u.focusNextExpandedItem=function(){var I;((I=this.data)==null?0:I.isExpanded)&&this.focusItem(this.currentElementsPerRow,!0)};
_.u.focusItem=function(I,C){var y=this.getRichItemRenderers();if(y[I]&&(I=y[I].querySelector(".focus-on-expand"))){if(C){var k;(k=y[this.currentElementsPerRow])==null||k.scrollIntoView({behavior:"smooth",block:"center"})}I.focus({preventScroll:!0})}};
_.u.onDataChange=function(){var I=this;this.useResponsiveGrid&&this.containerWidth&&this.refreshGridLayoutNew();_.hn(this,function(){I.updateItemVisibility()});
var C;if((C=this.data)==null?0:C.contents)for(this.restrictContentsOverflow=!this.isExpandOnHoverCardShelf(),_.CK(this.hostElement,{"--ytd-rich-shelf-items-count":""+this.data.contents.length}),C=0;C<this.data.contents.length;C++){var y=_.l(this.data.contents[C],_.XH)||{};y.colIndex=C;y.rowIndex=this.data.rowIndex}};
_.u.handleRerenderDownloadsData=function(){_.V("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())};
_.u.blockInlinePreview=function(I){var C=this,y;return _.e(function(k){(y=C.inlinePreviewIsEnabled)&&C.ytdReduxBehavior.dispatch(_.qQd(!1));return k.return(new Promise(function(F){I(function(){y&&C.ytdReduxBehavior.dispatch(_.qQd(!0));F()})}))})};
_.u.expandShelf=function(){var I=this;if(this.data){var C,y=(C=_.l(this.data.showMoreButton,_.fZ))==null?void 0:C.trackingParams;y&&_.FV(_.e2(),y);this.data.isExpanded=!0;this.blockInlinePreview(function(k){I.setHeightToSingleRow();I.updateItemVisibility();I.contents.style.height=I.contents.scrollHeight+"px";_.b$.addJob(function(){I.contents.style.height="auto";I.focusNextExpandedItem();k()},2,200)})}};
_.u.collapseShelf=function(){var I=this;return _.e(function(C){if(C.nextAddress==1){if(!I.data)return C.return();I.data.isExpanded=!1;return _.n(C,I.blockInlinePreview(function(y){I.contents.style.height=I.contents.scrollHeight+"px";I.setHeightToSingleRow();_.b$.addJob(function(){I.updateItemVisibility();I.contents.style.height="auto";y()},2,200)}),2)}_.k3(I.hostElement,"yt-rich-shelf-renderer-collapse",I.data.trackingParams);
I.focusItem(0,!1);_.oI(C)})};
_.u.updateArrowButtonStatus=function(){var I=this.getRichItemRenderers().length;if(!_.V("web_rich_shelf_renderer_use_data_contents_killswitch")){var C,y;I=((C=this.data)==null?void 0:(y=C.contents)==null?void 0:y.length)||0}this.atEnd=this.firstShownIndex+this.currentElementsPerRow>=I};
_.u.onChildElementFocus=function(I){this.hasChevronButtons&&(I=I.target.closest("#contents > *"),this.contents.contains(I)&&(I.offsetLeft<this.horizontalOffset?this.previousClick():I.offsetLeft+I.clientWidth>this.horizontalOffset+this.contents.clientWidth&&(this.contents.parentElement&&(this.contents.parentElement.scrollLeft=0),this.nextClick())))};
_.u.updateHorizontalItemVisibility=function(){this.updateArrowButtonStatus();this.contents.style.transform="translateX("+(_.Aq("HTML_DIR")==="rtl"?"":"-")+this.horizontalOffset+"px)"};
_.u.updateHorizontalOffset=function(){var I=this.getRichItemRenderers(),C=I.length;if(!_.V("web_rich_shelf_renderer_use_data_contents_killswitch")){var y,k;C=((y=this.data)==null?void 0:(k=y.contents)==null?void 0:k.length)||0}var F;I=((F=I[0])==null?void 0:F.clientWidth)+this.gutter;this.firstShownIndex+this.currentElementsPerRow>C?this.firstShownIndex=C-this.currentElementsPerRow:this.firstShownIndex<0&&(this.firstShownIndex=0);this.horizontalOffset=this.firstShownIndex*I};
_.u.isSlimMediaShelfRenderer=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!(_.l(k,_.qIw)||_.l(k,xC8)||_.l(k,_.GX)||_.l(k,uom))};
_.u.isGameCardShelf=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!_.l(k,JZS)};
_.u.isGnomeShelf=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!_.l(k,_.wlb)};
_.u.isMiniGameCardShelf=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!_.l(k,eJq)||!!_.l(k,rjd)};
_.u.hasGameBoxArtAvatarStyle=function(){var I;return((I=this.data)==null?void 0:I.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART"};
_.u.hasRoundedGameBoxArtAvatarStyle=function(){var I;return((I=this.data)==null?void 0:I.thumbnailStyle)==="CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"};
_.u.isShortsShelf=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!_.l(k,_.GX)||!!_.l(k,uom)};
_.u.isPostShelfRenderer=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!(!_.l(k,J0w)&&!_.l(k,OFw))};
_.u.isLumiereShelf=function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH);return!!_.l(y==null?void 0:y.content,uhq)};
_.u.isLumiereShelfWithPosters=function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH),k;return((k=_.l(y==null?void 0:y.content,uhq))==null?void 0:k.thumbnailDimensions)==="LUMIERE_SHELF_THUMBNAIL_DIMENSIONS_POSTER"};
_.u.isExpandOnHoverCardShelf=function(){var I,C,y,k=(y=_.l((I=this.data)==null?void 0:(C=I.contents)==null?void 0:C[0],_.XH))==null?void 0:y.content;return!!_.l(k,FRq)};
_.u.computeHasFeaturedBadge=function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.badges)==null?void 0:C[0],_.wfu);return y?y.style!=="BADGE_STYLE_TYPE_SIMPLE":!1};
_.u.computeHasPaygatedFeaturedBadge=function(){var I,C,y=_.l((I=this.data)==null?void 0:(C=I.badges)==null?void 0:C[0],_.wfu);return y?(y==null?void 0:y.style)==="BADGE_STYLE_TYPE_SIMPLE":!1};
_.u.computeHeaderHidden=function(){var I,C,y,k,F,z;return!((I=this.data)==null?0:I.icon)&&!((C=this.data)==null?0:C.title)&&!((y=this.data)==null?0:y.subtitle)&&!((k=this.data)==null?0:k.thumbnail)&&!((F=this.data)==null?0:F.badges)&&!((z=this.data)==null?0:z.menu)};
_.u.showCtaButton=function(){var I;return!((I=this.data)==null||!I.ctaButton)&&!this.isPostShelfRenderer()&&!this.isGameCardShelf()&&!this.isMiniGameCardShelf()};
_.u.showTopCtaButton=function(){return this.showCtaButton()?this.isSlimMediaShelfRenderer()?this.slimItemsPerRow>=4:this.elementsPerRow>=3:!1};
_.u.showBottomCtaButton=function(){return this.showCtaButton()?!this.showTopCtaButton():!1};
_.u.computeForce16By9ThumbnailAspectRatio=function(){var I,C;return((I=this.data)==null?void 0:(C=I.responsiveContainerConfiguration)==null?void 0:C.enableContentSpecificAspectRatio)!==void 0?!this.data.responsiveContainerConfiguration.enableContentSpecificAspectRatio:!1};
_.u.onSectionReactiveDismissal=function(I,C,y){var k,F;var z=(k=this.data)==null?void 0:(F=k.targetingContext)==null?void 0:F.targetGroupId;this&&z&&C.targetGroupId&&z.includes(C.targetGroupId)?(k=this.rowIndex,I=k===void 0?!1:!(C.behavior==="GROUP_DISMISSAL_BEHAVIOR_REMOVE_SUBSEQUENT_ITEMS"&&k<=I)):I=!1;I&&(this.hidden=y)};
_.H1.Object.defineProperties(Dl.prototype,{currentElementsPerRow:{configurable:!0,enumerable:!0,get:function(){if(this.useResponsiveGrid)return this.elementsPerRow;var I=this.elementsPerRow;this.isPostShelfRenderer()?I=this.postsPerRow:this.isSlimMediaShelfRenderer()?I=this.slimItemsPerRow:this.isLumiereShelfWithPosters()?I=this.slimItemsPerRow-1:this.isGameCardShelf()?I=this.gameCardsPerRow:this.isMiniGameCardShelf()&&(I=this.miniGameCardsPerRow);return I}},
isTruncated:{configurable:!0,enumerable:!0,get:function(){return this.isShortsShelf()&&_.V("kevlar_clean_feeds_show_more")&&this.isHomePage}},
hideBottomDivider:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isBottomDividerHidden)}},
hasChevronButtons:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.previousButton)&&!((C=this.data)==null||!C.nextButton)}},
previousButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.firstShownIndex===0,ariaHidden:!0,tabIndex:-1}}},
nextButtonOverride:{configurable:!0,enumerable:!0,get:function(){return{disabled:this.atEnd,ariaHidden:!0,tabIndex:-1}}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var I;return((I=_.N().resolve(_.BP).getCurrentPage())==null?void 0:I.pageSubtype)==="home"}},
thumbnailAriaHidden:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return!((I=this.data)==null?0:(C=I.thumbnail)==null?0:(y=C.accessibility)==null?0:(k=y.accessibilityData)==null?0:k.label)}},
initiallyIsExpanded:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isExpanded)}},
entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.entitySelectorType)||"RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
rowIndex:{configurable:!0,enumerable:!0,get:function(){return this.data.rowIndex}}});
Dl.prototype.onChildElementFocus=Dl.prototype.onChildElementFocus;Dl.prototype.handleRerenderDownloadsData=Dl.prototype.handleRerenderDownloadsData;Dl.prototype.onDataChange=Dl.prototype.onDataChange;Dl.prototype.onRowIndexChange=Dl.prototype.onRowIndexChange;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Dl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Dl.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$x),_.h("design:type",Object)],Dl.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Dl.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Dl.prototype,"ytdReduxBehavior",void 0);_.E([_.d({computed:"computeUseResponsiveGrid(isLumiere, sizing)"}),_.h("design:type",Object)],Dl.prototype,"useResponsiveGrid",void 0);_.E([_.d(),_.h("design:type",Object)],Dl.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Number)],Dl.prototype,"standardUnitMinWidth",void 0);_.E([_.d({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],Dl.prototype,"elementsPerRow",void 0);_.E([_.d({value:3}),_.h("design:type",Number)],Dl.prototype,"postsPerRow",void 0);_.E([_.d({value:6}),_.h("design:type",Number)],Dl.prototype,"slimItemsPerRow",void 0);_.E([_.d({value:6}),_.h("design:type",Number)],Dl.prototype,"gameCardsPerRow",void 0);
_.E([_.d({value:6}),_.h("design:type",Number)],Dl.prototype,"miniGameCardsPerRow",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"standardShelfMargins",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"isShowMoreHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"isExpanded",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"isInnerShelf",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isShortsShelf(data)"}),_.h("design:type",Boolean)],Dl.prototype,"isShorts",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isLumiereShelf(data)"}),_.h("design:type",Boolean)],Dl.prototype,"isLumiere",void 0);_.E([_.d({reflectToAttribute:!0,computed:"hasGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],Dl.prototype,"hasBoxArtThumbnailStyle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"hasRoundedGameBoxArtAvatarStyle(data)"}),_.h("design:type",Boolean)],Dl.prototype,"hasRoundedBoxArtThumbnailStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasFeaturedBadge(data)"}),_.h("design:type",Boolean)],Dl.prototype,"hasFeaturedBadge",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasPaygatedFeaturedBadge(data)"}),_.h("design:type",Boolean)],Dl.prototype,"hasPaygatedFeaturedBadge",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHeaderHidden(data)"}),_.h("design:type",Boolean)],Dl.prototype,"isHeaderHidden",void 0);_.E([_.d({selector:_.p3m}),_.h("design:type",Object)],Dl.prototype,"allVideosCount",void 0);_.E([_.d({selector:JVF}),_.h("design:type",Object)],Dl.prototype,"allPlaylistCount",void 0);_.E([_.d({selector:Y2Y}),_.h("design:type",Object)],Dl.prototype,"haveSmartDownloadsCompleted",void 0);
_.E([_.d({selectorArgs:["entitySelectorType"],selector:function(I,C){if(_.V("kevlar_modern_downloads_page")&&C&&C!=="RICH_SHELF_ENTITY_SELECTOR_TYPE_UNSPECIFIED"){var y=I.entities;switch(C){case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_SMART_DOWNLOADS":C=_.Xy(y);I=ls(C);var k=_.QE(C);y=_.RQ(y);y=_.Cx(mvW(k,y,C.length));return{contents:I,subtitle:y};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS_PAGE":return y=_.Xy(y),{contents:ls(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_DOWNLOADS_PAGE_MANUAL_DOWNLOADS":return y=
_.$9(y),{contents:ls(y)};case "RICH_SHELF_ENTITY_SELECTOR_TYPE_OFFLINE_HOME_PAGE":return y=_.OVK(y),{contents:ls(y)};default:_.SN(new _.ph("Error: entitySelectorType defined but not matched in selector.",I,C))}}}}),
_.h("design:type",Object)],Dl.prototype,"entityDrivenRichShelfData",void 0);_.E([_.d({reflectToAttribute:!0,computed:"showTopCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],Dl.prototype,"hasTopCtaButton",void 0);_.E([_.d({reflectToAttribute:!0,computed:"showBottomCtaButton(data, elementsPerRow, slimItemsPerRow)"}),_.h("design:type",Boolean)],Dl.prototype,"hasBottomCtaButton",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeForce16By9ThumbnailAspectRatio(data)"}),_.h("design:type",Boolean)],Dl.prototype,"force16By9ThumbnailAspectRatio",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"isShowLessHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Dl.prototype,"restrictContentsOverflow",void 0);_.E([_.d({selector:_.iZK}),_.h("design:type",Boolean)],Dl.prototype,"inlinePreviewIsEnabled",void 0);
_.E([_.d({computed:"computeSizing(data)"}),_.h("design:type",String)],Dl.prototype,"sizing",void 0);_.E([_.d(),_.h("design:type",Boolean)],Dl.prototype,"typographyBump",void 0);_.E([_.d(),_.h("design:type",Number)],Dl.prototype,"itemWidth",void 0);_.E([_.d(),_.h("design:type",Object)],Dl.prototype,"firstShownIndex",void 0);_.E([_.d(),_.h("design:type",Object)],Dl.prototype,"horizontalOffset",void 0);_.E([_.d(),_.h("design:type",Object)],Dl.prototype,"atEnd",void 0);
_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],Dl.prototype,"contents",void 0);_.E([_.FI("data.rowIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dl.prototype,"onRowIndexChange",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dl.prototype,"onDataChange",null);
_.E([_.FI("allVideosCount","allPlaylistsCount","haveSmartDownloadsCompleted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dl.prototype,"handleRerenderDownloadsData",null);_.E([_.km("focusin"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Dl.prototype,"onChildElementFocus",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","isHomePage"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dl.prototype,"isTruncated",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dl.prototype,"hideBottomDivider",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dl.prototype,"hasChevronButtons",null);_.E([_.v("firstShownIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dl.prototype,"previousButtonOverride",null);
_.E([_.v("atEnd"),_.h("design:type",Object),_.h("design:paramtypes",[])],Dl.prototype,"nextButtonOverride",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dl.prototype,"isHomePage",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dl.prototype,"thumbnailAriaHidden",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Dl.prototype,"initiallyIsExpanded",null);
_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Dl.prototype,"entitySelectorType",null);Dl=_.E([_.m({is:"ytd-rich-shelf-renderer",disableElementRegistration:!0})],Dl);
_.Jb8=_.MH()(Dl,"ytd-rich-shelf-renderer",function(){if(tp0===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);tp0=I}I=tp0;return I},{allowedProps:["data",
"isInnerShelf","standardUnitMinWidth"],mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var OUq;var pd=function(){var I=_.q.apply(this,arguments)||this;I.tileLottieAnimationRef={};I.backgroundLottieAnimationRef={};I.isOnHoverBehaviorForLottieEnabled=!0;I.useBiggerShowcaseImage=_.V("enable_desktop_search_bigger_thumbs");I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-open-video-preview-action":"pauseLottie"};return I};
_.R(pd,_.q);_.u=pd.prototype;_.u.attached=function(){this.requestElementsPerRow();this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.data&&(this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData)};
_.u.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},secondaryButton:{id:"secondary-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"},reuseComponents:!0},"data.overflowButton":{id:"overflow-button",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"ytd-button-renderer"}},
dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer",notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.u.dataChanged=function(){if(this.data){this.requestElementsPerRow();this.updateButtonPalette();var I=this.hasStaticTile(this.data)||this.hasTileLottie(this.data);I!==this.hasTile&&this.set("hasTile",I);I=this.hasLogo(this.data)||!!this.data.badgeText;I!==this.hasMetadata&&this.set("hasMetadata",I);I=this.data.overflowButton?!1:I;I!==this.showLogoImage&&this.set("showLogoImage",I);this.currentColorData=this.isDarkTheme?this.data.darkColorData:this.data.lightColorData;this.maybeInitializeTileLottie();
this.maybeInitializeBackgroundLottie()}};
_.u.themeChanged=function(){this.data&&(this.set("currentColorData",this.isDarkTheme?this.data.darkColorData:this.data.lightColorData),this.maybeInitializeTileLottie(),this.maybeInitializeBackgroundLottie())};
_.u.currentColorChanged=function(){this.updateButtonPalette()};
_.u.computeBackgroundStyle=function(I){if(I&&this.data){var C=[];if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.hE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&C.push('background-image: url("'+y+'");')}var k;((k=I.basicColorData)==null?void 0:k.backgroundColor)!==void 0&&C.push("background-color: "+_.Xl(I.basicColorData.backgroundColor)+";");return C.join("")}};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I)};
_.u.getCurrentLogo=function(I,C){if(I)return C?I.darkLogoImage:I.lightLogoImage};
_.u.getCurrentStaticTileImage=function(I,C){if(this.hasStaticTile(I))return I.darkTileImage?C?I.darkTileImage:I.tileImage:I.tileImage};
_.u.computeTitleStyle=function(I){if(this.data&&this.data.title&&I&&I.basicColorData&&I.basicColorData.foregroundTitleColor!==void 0)return"color:"+_.lg(I.basicColorData.foregroundTitleColor)+";"};
_.u.computeSubtitleStyle=function(I){if(this.data&&this.data.subtitle&&I&&I.basicColorData&&I.basicColorData.foregroundBodyColor!==void 0)return"color:"+_.lg(I.basicColorData.foregroundBodyColor)+";"};
_.u.computeSupplementalStyle=function(I){if(this.data&&this.data.supplementalText&&I&&I.supplementalTextColor!==void 0)return I=_.lg(I.supplementalTextColor),"color:"+I+";--yt-endpoint-color:"+I+";--yt-endpoint-hover-color:"+I+";--yt-endpoint-visited-color:"+I+";--yt-formatted-string-bold-font-weight:700;"};
_.u.computeBadgeStyle=function(I){if(this.data&&this.data.badgeText&&I&&I.basicColorData&&I.basicColorData.foregroundActivatedColor!==void 0)return"color:"+_.lg(I.basicColorData.foregroundActivatedColor)+";"};
_.u.computeDismissIconStyle=function(I){var C,y;if((I==null?0:(C=I.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(I==null?0:(y=I.dismissButtonColorData)==null?0:y.backgroundColor))return"--yt-button-color:"+_.Xl(I.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Xl(I.dismissButtonColorData.backgroundColor)+";"};
_.u.computeOverflowIconStyle=function(I){var C,y;if((I==null?0:(C=I.dismissButtonColorData)==null?0:C.foregroundTitleColor)&&(I==null?0:(y=I.dismissButtonColorData)==null?0:y.backgroundColor))return"--ytd-menu-renderer-button-color:"+_.Xl(I.dismissButtonColorData.foregroundTitleColor)+";background-color:"+_.Xl(I.dismissButtonColorData.backgroundColor)+";--yt-spec-icon-active-other:"+_.Xl(I.dismissButtonColorData.foregroundTitleColor)+";"};
_.u.computeBannerStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeLocation=function(I){switch(I==null?void 0:I.location){case "LOCATION_CONTEXT_SEARCH_PAGE":return"search";case "LOCATION_CONTEXT_SLOT_ZERO_HOME":return"slot-zero-home"}};
_.u.shouldShowTileSection=function(I,C,y){return!this.shouldExpandLogo(I,C,y)&&C};
_.u.shouldShowExpandedLogoSection=function(I,C,y){return this.shouldExpandLogo(I,C,y)&&I!==void 0&&this.hasLogo(I)};
_.u.shouldExpandLogo=function(I,C,y){return I&&C?!1:y>=2};
_.u.hasStaticTile=function(I){return!(I==null||!I.tileImage)};
_.u.hasTileLottie=function(I){var C;return!!(I==null?0:(C=I.tileLottie)==null?0:C.url)};
_.u.hasLogo=function(I){return this.getCurrentLogo(I,this.isDarkTheme)!==void 0};
_.u.getLogoHeight=function(I){return this.logoWithPadding(I)?"26":"20"};
_.u.getExpandedLogoHeight=function(I){return this.logoWithPadding(I)?"31":"24"};
_.u.getLogoImageId=function(I){return this.logoWithPadding(I)?"logo-image-with-padding":"logo-image"};
_.u.hasBackgroundLottie=function(I){var C;return!!(I==null?0:(C=I.backgroundLottie)==null?0:C.url)};
_.u.maybePlayLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var I,C;(I=this.tileLottieAnimationRef)==null||(C=I.lottieEl)==null||C.play();var y,k;(y=this.backgroundLottieAnimationRef)==null||(k=y.lottieEl)==null||k.play()}};
_.u.maybePauseLottie=function(){if(this.isOnHoverBehaviorForLottieEnabled){var I,C;(I=this.tileLottieAnimationRef)==null||(C=I.lottieEl)==null||C.pause();var y,k;(y=this.backgroundLottieAnimationRef)==null||(k=y.lottieEl)==null||k.pause()}};
_.u.pauseLottie=function(){var I,C;(I=this.tileLottieAnimationRef)==null||(C=I.lottieEl)==null||C.pause();var y,k;(y=this.backgroundLottieAnimationRef)==null||(k=y.lottieEl)==null||k.pause();this.isOnHoverBehaviorForLottieEnabled||(this.isOnHoverBehaviorForLottieEnabled=!0)};
_.u.performPrimaryButtonAction=function(){var I,C,y;((I=this.data)==null?0:(C=I.primaryButton)==null?0:(y=C.buttonRenderer)==null?0:y.command)&&this.ytComponentBehavior.resolveCommand(this.data.primaryButton.buttonRenderer.command)};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
_.u.updateButtonPalette=function(){if(this.data&&this.currentColorData){var I;((I=this.data.dismissButton)==null?0:I.buttonRenderer)&&this.currentColorData.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.dismissButtonColorData},this.data.dismissButton.buttonRenderer.style=void 0,this.set("dismissButton",{buttonRenderer:Object.assign({},this.data.dismissButton.buttonRenderer)}));var C;if((C=this.data.primaryButton)==null?0:C.buttonRenderer)this.currentColorData.primaryButtonColorData?
(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorData.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorData.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorData.primaryButtonStyleType,this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)});var y;if((y=this.data.secondaryButton)==
null?0:y.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 k;((k=this.data.primaryButton)==null?0:k.toggleButtonRenderer)&&this.set("primaryButton",{toggleButtonRenderer:Object.assign({},this.data.primaryButton.toggleButtonRenderer)});var F;((F=this.data.secondaryButton)==null?0:F.toggleButtonRenderer)&&this.set("secondaryButton",{toggleButtonRenderer:Object.assign({},this.data.secondaryButton.toggleButtonRenderer)})}};
_.u.maybeInitializeTileLottie=function(){if(this.hasTileLottie(this.data)){var I=this.getTileLottieDataBasedOnTheme(),C,y;if(I.url!==((C=this.tileLottiePlayerProps)==null?void 0:(y=C.animationConfig)==null?void 0:y.path)){var k,F;(k=this.tileLottieAnimationRef)==null||(F=k.lottieEl)==null||F.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=I.settings)==null?0:z.autoplay);var c,r;this.tileLottiePlayerProps={animationRef:this.tileLottieAnimationRef,animationConfig:{name:this.isDarkTheme?
"STATEMENT_BANNER_TILE_LOTTIE_DARK":"STATEMENT_BANNER_TILE_LOTTIE_LIGHT",autoplay:(r=(c=I.settings)==null?void 0:c.autoplay)!=null?r:!1,loop:this.getLottieLoopValue(I.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof I.url==="string"?this.tileLottiePlayerProps.animationConfig.path=I.url:this.tileLottiePlayerProps.animationConfig.animationData=I.url}}};
_.u.getOverflowButton=function(I){return _.l(I.overflowButton,rww)};
_.u.maybeInitializeBackgroundLottie=function(){if(this.hasBackgroundLottie(this.data)){var I=this.getBackgroundLottieDataBasedOnTheme(),C,y;if(I.url!==((C=this.backgroundLottiePlayerProps)==null?void 0:(y=C.animationConfig)==null?void 0:y.path)){var k,F;(k=this.backgroundLottieAnimationRef)==null||(F=k.lottieEl)==null||F.destroy();var z;this.isOnHoverBehaviorForLottieEnabled=!((z=I.settings)==null?0:z.autoplay);var c,r;this.backgroundLottiePlayerProps={animationRef:this.backgroundLottieAnimationRef,
animationConfig:{name:this.isDarkTheme?"STATEMENT_BANNER_BACKGROUND_LOTTIE_DARK":"STATEMENT_BANNER_BACKGROUND_LOTTIE_LIGHT",autoplay:(r=(c=I.settings)==null?void 0:c.autoplay)!=null?r:!1,loop:this.getLottieLoopValue(I.settings),renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid slice"}},listeners:{complete:this.onLottieComplete.bind(this)}};typeof I.url==="string"?this.backgroundLottiePlayerProps.animationConfig.path=I.url:this.backgroundLottiePlayerProps.animationConfig.animationData=
I.url}}};
_.u.onLottieComplete=function(){if(!this.isOnHoverBehaviorForLottieEnabled){var I;((I=this.tileLottieAnimationRef)==null?void 0:I.lottieEl)!==void 0&&(this.tileLottieAnimationRef.lottieEl.loop=!0);var C;((C=this.backgroundLottieAnimationRef)==null?void 0:C.lottieEl)!==void 0&&(this.backgroundLottieAnimationRef.lottieEl.loop=!0);this.isOnHoverBehaviorForLottieEnabled=!0}};
_.u.getTileLottieDataBasedOnTheme=function(){var I;if(this.isDarkTheme&&((I=this.data)==null?0:I.darkThemeTileLottie))return this.data.darkThemeTileLottie;var C;return((C=this.data)==null?0:C.tileLottie)?this.data.tileLottie:{}};
_.u.getBackgroundLottieDataBasedOnTheme=function(){var I;if(this.isDarkTheme&&((I=this.data)==null?0:I.darkThemeBackgroundLottie))return this.data.darkThemeBackgroundLottie;var C;return((C=this.data)==null?0:C.backgroundLottie)?this.data.backgroundLottie:{}};
_.u.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
_.u.getLottieLoopValue=function(I){return I?I.loop!==void 0?I.loop:I.loopCount?I.loopCount-1:!0:!0};
_.u.logoWithPadding=function(I){var C,y,k;return(I=(C=this.getCurrentLogo(I,this.isDarkTheme))==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?!0:!1};
pd.prototype.currentColorChanged=pd.prototype.currentColorChanged;pd.prototype.themeChanged=pd.prototype.themeChanged;pd.prototype.dataChanged=pd.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],pd.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],pd.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],pd.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"primaryButton",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"secondaryButton",void 0);
_.E([_.d({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],pd.prototype,"elementsPerRow",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pd.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pd.prototype,"hasTile",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pd.prototype,"hasMetadata",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],pd.prototype,"showLogoImage",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"currentColorData",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeBannerStyle(data.style)"}),_.h("design:type",String)],pd.prototype,"bannerStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeLocation(data.shelfContext)"}),_.h("design:type",String)],pd.prototype,"location",void 0);
_.E([_.d(),_.h("design:type",Object)],pd.prototype,"tileLottiePlayerProps",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"tileLottieAnimationRef",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"backgroundLottiePlayerProps",void 0);_.E([_.d(),_.h("design:type",Object)],pd.prototype,"backgroundLottieAnimationRef",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pd.prototype,"useBiggerShowcaseImage",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],pd.prototype,"isHideEnclosingAction",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pd.prototype,"dataChanged",null);_.E([_.rW("isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pd.prototype,"themeChanged",null);
_.E([_.rW("currentColorData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pd.prototype,"currentColorChanged",null);pd=_.E([_.m({is:"ytd-statement-banner-renderer",disableElementRegistration:!0})],pd);
_.Z(pd,"ytd-statement-banner-renderer",function(){if(OUq!==void 0)return OUq;var I=document.createElement("template");_.Y(I,'\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="background-content" style$="[[computeBackgroundStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n    <ytd-lottie-player id="background-lottie" data="[[backgroundLottiePlayerProps]]" hidden="[[!hasBackgroundLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n  </ytd-lottie-player></div>\n  <div id="foreground-content" class="style-scope ytd-statement-banner-renderer">\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowTileSection(data, hasTile, elementsPerRow)]]">\n      <div hidden="[[!hasTile]]" id="tile-container" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="tile-image" hidden="[[!hasStaticTile(data)]]" object-fit="CONTAIN" thumbnail="[[getCurrentStaticTileImage(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n        <ytd-lottie-player id="tile-lottie" data="[[tileLottiePlayerProps]]" hidden="[[!hasTileLottie(data)]]" class="style-scope ytd-statement-banner-renderer">\n      </ytd-lottie-player></div>\n    </div>\n    <div class="showcase-image style-scope ytd-statement-banner-renderer" hidden="[[!shouldShowExpandedLogoSection(data, hasTile, elementsPerRow)]]" id="logo-container">\n      <div id="logo-wrapper" class="style-scope ytd-statement-banner-renderer">\n        <yt-img-shadow id="logo-image" height="[[getExpandedLogoHeight(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n        </yt-img-shadow>\n      </div>\n    </div>\n    <div id="details-container" class="style-scope ytd-statement-banner-renderer">\n      <div id="text-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="metadata-container" hidden="[[!showLogoImage]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-img-shadow dimension="height" height$="[[getLogoHeight(data)]]" hidden="[[shouldExpandLogo(data, hasTile, elementsPerRow)]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeBadgeStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="dynamic-title" style$="[[computeTitleStyle(currentColorData)]]" on-click="performPrimaryButtonAction" class="style-scope ytd-statement-banner-renderer">\n          <yt-dynamic-sizing-formatted-string font-family="[[data.titleFontFamily]]" max-font-size="36" max-height="110" max-lines="2" min-font-size="20" text="[[data.title]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-dynamic-sizing-formatted-string>\n          <div id="new-badge-container" hidden="[[!data.overflowButton]]" style$="[[computeTitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n          </div>\n        </div>\n        <div id="subtitle-container" style$="[[computeSubtitleStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-statement-banner-renderer"></yt-formatted-string>\n        </div>\n        <div id="supplemental-text-container" hidden="[[!data.supplementalText]]" style$="[[computeSupplementalStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer">\n          <yt-formatted-string id="supplemental-text" text="[[data.supplementalText]]" class="style-scope ytd-statement-banner-renderer">\n          </yt-formatted-string>\n        </div>\n      </div>\n      <div id="button-container" class="style-scope ytd-statement-banner-renderer">\n        <div id="button-wrapper" class="style-scope ytd-statement-banner-renderer">\n          <div id="primary-button" class="style-scope ytd-statement-banner-renderer"></div>\n          <div id="secondary-button" class="style-scope ytd-statement-banner-renderer"></div>\n        </div>\n      </div>\n    </div>\n    <div id="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorData, elementsPerRow)]]" class="style-scope ytd-statement-banner-renderer"></div>\n    <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowIconStyle(currentColorData)]]" class="style-scope ytd-statement-banner-renderer"></div>\n  </div>\n</div>\n<div id="dismissed" class="style-scope ytd-statement-banner-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OUq=I},{mode:1});var aEw;var QF=function(){var I=_.q.apply(this,arguments)||this;I.isSearch=!1;I.hideShelfHeader=!1;I.engagementPanel=!1;I.disableMouseScroll=!0;I.useFloorScrolling=!0;I.modernTypography=_.V("web_modern_typography");return I};
_.R(QF,_.q);QF.prototype.onDataChanged=function(){this.set("data.nextButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_RIGHT"},accessibility:{label:_.PQ("HORIZONTAL_LIST_NEXT_LABEL",void 0,"Next")}}});this.set("data.previousButton",{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CHEVRON_LEFT"},accessibility:{label:_.PQ("HORIZONTAL_LIST_PREVIOUS_LABEL",void 0,"Previous")}}})};
QF.prototype.configureRendererStamper=function(){return{"data.button":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
QF.prototype.onDataChanged=QF.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QF.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],QF.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QF.prototype,"hideShelfHeader",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QF.prototype,"engagementPanel",void 0);_.E([_.d(),_.h("design:type",Object)],QF.prototype,"disableMouseScroll",void 0);_.E([_.d(),_.h("design:type",Object)],QF.prototype,"useFloorScrolling",void 0);_.E([_.d(),_.h("design:type",Object)],QF.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QF.prototype,"modernTypography",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QF.prototype,"onDataChanged",null);QF=_.E([_.m({is:"ytd-reel-shelf-renderer",disableElementRegistration:!0})],QF);
_.Z(QF,"ytd-reel-shelf-renderer",function(){if(aEw!==void 0)return aEw;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-reel-shelf-renderer">\n  <h2 class="style-scope ytd-reel-shelf-renderer">\n    <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-reel-shelf-renderer">\n    </yt-icon>\n    <span id="title" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.title)]]</span>\n    <span id="title-superscript" class="style-scope ytd-reel-shelf-renderer">[[getSimpleString(data.titleSuperscript)]]</span>\n  </h2>\n  <div id="menu" class="style-scope ytd-reel-shelf-renderer"></div>\n</div>\n<div id="contents" class="style-scope ytd-reel-shelf-renderer">\n  <yt-horizontal-list-renderer data="[[data]]" disable-scroll-event-listener="[[disableMouseScroll]]" engagement-panel="[[engagementPanel]]" hide-shelf-header="[[hideShelfHeader]]" is-search="[[isSearch]]" thumbnail-height="[[thumbnailHeight]]" use-floor-scrolling="[[useFloorScrolling]]" class="style-scope ytd-reel-shelf-renderer">\n  </yt-horizontal-list-renderer>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return aEw=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var Mpw;var IPu=_.BO(function(I){var C=I.data;I=I.useSmallFont;var y={},k={};return _.P("yt-channel-external-link-view-model",{class:"yt-channel-external-link-view-model-wiz"},_.P(_.Dx,{cond:function(){return C().favicon},
then:function(F){return _.P(_.x$,{data:F,className:"yt-channel-external-link-view-model-wiz__favicon",alt:"",preserveWidth:!0,preserveHeight:!0,targetWidth:24,targetHeight:24})}}),_.P("div",{class:"yt-channel-external-link-view-model-wiz__container"},_.P(_.wh,{text:function(){return C().title},
className:_.sZ("yt-channel-external-link-view-model-wiz__title",(y["yt-channel-external-link-view-model-wiz__title--title-small-font"]=I,y)),ellipsisTruncate:!0,userInput:!0}),_.P(_.wh,{text:function(){return C().link},
className:_.sZ("yt-channel-external-link-view-model-wiz__link",(k["yt-channel-external-link-view-model-wiz__link--link-small-font"]=I,k)),ellipsisTruncate:!0,linkInheritColor:!0,userInput:!0})))},"zb");
IPu.idomCompat=!0;_.B9(IPu,"yt-channel-external-link-view-model",{props:{data:_.As,useSmallFont:_.As}});_.jz("itemSectionRenderer","aboutChannelRenderer","ytd-about-channel-renderer");var Ne=function(){var I=_.q.apply(this,arguments)||this;I.revealButtonClass="button";I.businessEmailDisplayState="HIDE_SECTION";return I};
_.R(Ne,_.q);_.u=Ne.prototype;_.u.refit=function(){var I=this;_.SA(function(){_.uW(I.hostElement,"yt-refit-popups-action")});
_.hn(this,function(){_.uW(I.hostElement,"yt-refit-popups-action")})};
_.u.onBusinessEmailClick=function(){this.metadata.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.W$("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA")};
_.u.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"};
_.u.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.u.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"}}}};
_.u.computeEmailHref=function(I){return"mailto:"+I};
_.u.computeSafeUrl=function(I){if(I)return _.ra(I)};
_.u.linkEndpoint=function(I){return _.l(I.onTap,_.$$)};
_.u.linkEndpointToHref=function(I){return this.ytComponentBehavior.computeHref_(this.linkEndpoint(I))};
_.u.onYtServiceRequestCompleted=function(I){var C;if((C=I.detail.data)==null?0:C.businessEmail)this.businessEmail=I.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=I.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=I.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.u.onBusinessEmailCaptchaSubmit=function(){if(this.metadata.channelId&&this.metadata.onBusinessEmailRevealClickCommand){var I=this.JSC$13991_captchaTextarea.value;if(I){I={recaptcha_response_token:I,channel_id:this.metadata.channelId};var C=_.l(this.metadata.onBusinessEmailRevealClickCommand,_.$$);C&&this.ytComponentBehavior.resolveCommand(C,{form:I})}}};
_.u.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H1.Object.defineProperties(Ne.prototype,{metadata:{configurable:!0,enumerable:!0,get:function(){var I;return _.l((I=this.data)==null?void 0:I.metadata,ehq)}},
revealButton:{configurable:!0,enumerable:!0,get:function(){return _.l(this.metadata.businessEmailRevealButton,_.Xi)}},
channelDisplayUrl:{configurable:!0,enumerable:!0,get:function(){if(this.metadata.displayCanonicalChannelUrl)return this.metadata.displayCanonicalChannelUrl;if(this.metadata.canonicalChannelUrl){var I=new URL(this.metadata.canonicalChannelUrl);return I.host+I.pathname}}},
formattedDescription:{configurable:!0,enumerable:!0,get:function(){return this.metadata.description?{simpleText:this.metadata.description}:void 0}},
shouldRendereVerifiedPhoneStatus:{configurable:!0,enumerable:!0,get:function(){return this.metadata.phoneVerifiedLabel!==""&&this.learnMoreCommand!==void 0}},
learnMoreCommand:{configurable:!0,enumerable:!0,get:function(){return _.l(this.metadata.learnMoreOnTap,_.$$)}}});
Ne.prototype.onYtServiceRequestCompleted=Ne.prototype.onYtServiceRequestCompleted;Ne.prototype.businessEmailMetadataChanged=Ne.prototype.businessEmailMetadataChanged;Ne.prototype.refit=Ne.prototype.refit;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ne.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ne.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ne.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],Ne.prototype,"JSC$13991_captchaTextarea",void 0);_.E([_.d(),_.h("design:type",Object)],Ne.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ne.prototype,"revealButtonClass",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ne.prototype,"metadata",null);
_.E([_.v("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ne.prototype,"revealButton",null);_.E([_.v("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ne.prototype,"channelDisplayUrl",null);_.E([_.rW("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ne.prototype,"refit",null);_.E([_.v("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ne.prototype,"formattedDescription",null);
_.E([_.v("metadata","learnMoreCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ne.prototype,"shouldRendereVerifiedPhoneStatus",null);_.E([_.v("metadata"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ne.prototype,"learnMoreCommand",null);_.E([_.d(),_.h("design:type",String)],Ne.prototype,"businessEmailDisplayState",void 0);_.E([_.d(),_.h("design:type",String)],Ne.prototype,"businessEmail",void 0);
_.E([_.d(),_.h("design:type",String)],Ne.prototype,"businessEmailErrorMessage",void 0);_.E([_.rW("metadata"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ne.prototype,"businessEmailMetadataChanged",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ne.prototype,"onYtServiceRequestCompleted",null);
Ne=_.E([_.m({is:"ytd-about-channel-renderer",disableElementRegistration:!0})],Ne);
_.Z(Ne,"ytd-about-channel-renderer",function(){if(Mpw!==void 0)return Mpw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Mpw=I},{mode:1});var CPw;var VF=function(){return _.q.apply(this,arguments)||this};
_.R(VF,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VF.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VF.prototype,"data",void 0);VF=_.E([_.m({is:"ytd-channel-list-sub-menu-avatar-renderer",disableElementRegistration:!0})],VF);
_.Z(VF,"ytd-channel-list-sub-menu-avatar-renderer",function(){if(CPw!==void 0)return CPw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CPw=I},{mode:1});var so0;var ja=function(){return _.q.apply(this,arguments)||this};
_.R(ja,_.q);ja.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelListSubMenuAvatarRenderer:"ytd-channel-list-sub-menu-avatar-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ja.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ja.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ja.prototype,"aligment",void 0);ja=_.E([_.m({is:"ytd-channel-list-sub-menu-renderer",disableElementRegistration:!0})],ja);
_.Z(ja,"ytd-channel-list-sub-menu-renderer",function(){if(so0!==void 0)return so0;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return so0=
I},{mode:1});var oEc;var lm=function(){return _.q.apply(this,arguments)||this};
_.R(lm,_.q);lm.prototype.configureRendererStamper=function(){return{"data.playAllButton":{id:"play-all",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.rightButtons":{id:"right-buttons",mapping:{buttonRenderer:"ytd-button-renderer",menuRenderer:"ytd-menu-renderer"}},"data.sortSetting":{id:"sort-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",params:{isRightAligned:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lm.prototype,"data",void 0);lm=_.E([_.m({is:"ytd-channel-sub-menu-renderer",disableElementRegistration:!0})],lm);
_.Z(lm,"ytd-channel-sub-menu-renderer",function(){if(oEc!==void 0)return oEc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oEc=I},{mode:1});var yOm;var kC8;var XP=function(){var I=_.q.apply(this,arguments)||this;I.isCompact=!1;return I};
_.R(XP,_.q);_.H1.Object.defineProperties(XP.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isCompact?112:80}},
openNewWindow:{configurable:!0,enumerable:!0,get:function(){var I,C;return((C=_.l((I=this.data)==null?void 0:I.endpoint,_.xo))==null?void 0:C.target)==="TARGET_NEW_WINDOW"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],XP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],XP.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],XP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],XP.prototype,"isCompact",void 0);_.E([_.v("isCompact"),_.h("design:type",Number),_.h("design:paramtypes",[])],XP.prototype,"thumbnailWidth",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],XP.prototype,"openNewWindow",null);XP=_.E([_.m({is:"ytd-media-lockup-renderer",disableElementRegistration:!0})],XP);
_.Z(XP,"ytd-media-lockup-renderer",function(){if(kC8!==void 0)return kC8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return kC8=I},{mode:1});var FEm;var $8=function(){return _.q.apply(this,arguments)||this};
_.R($8,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$8.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],$8.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$8.prototype,"data",void 0);$8=_.E([_.m({is:"ytd-structured-description-channel-lockup-renderer",disableElementRegistration:!0})],$8);
_.Z($8,"ytd-structured-description-channel-lockup-renderer",function(){if(FEm!==void 0)return FEm;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return FEm=I},{mode:1});var u_5;var R6=function(){var I=_.q.apply(this,arguments)||this;I.isCompact=!1;I.collections=_.V("web_modern_collections_v2");I.collectionsStackColor=_.V("modernize_structured_description_playlist_lockups_v2");return I};
_.R(R6,_.q);R6.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:_.V("defer_overlays")?1:void 0,waitForSignal:"eocs"}}};
_.H1.Object.defineProperties(R6.prototype,{twoLineTitle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.maxLinesTitle)===2}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z;return{thumbnailSize:"small",doubleStack:!1,experimentEnabled:this.collections,sampledThumbnailColor:this.collectionsStackColor?(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.sampledThumbnailColor:void 0,darkColorPalette:this.collectionsStackColor?(y=this.data)==null?void 0:(k=y.thumbnail)==null?void 0:k.darkColorPalette:void 0,vibrantColorPalette:this.collectionsStackColor?(F=this.data)==null?void 0:(z=F.thumbnail)==
null?void 0:z.vibrantColorPalette:void 0}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],R6.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],R6.prototype,"componentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],R6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],R6.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],R6.prototype,"showSidePanelThumbnailOverlay",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],R6.prototype,"isCompact",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],R6.prototype,"collections",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],R6.prototype,"collectionsStackColor",void 0);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],R6.prototype,"twoLineTitle",null);
_.E([_.v("data","collections","collectionsStackColor"),_.h("design:type",Object),_.h("design:paramtypes",[])],R6.prototype,"collectionStack",null);R6=_.E([_.m({is:"ytd-structured-description-playlist-lockup-renderer",disableElementRegistration:!0})],R6);
_.Z(R6,"ytd-structured-description-playlist-lockup-renderer",function(){if(u_5!==void 0)return u_5;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-structured-description-playlist-lockup-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="lockup-container" class="yt-simple-endpoint style-scope ytd-structured-description-playlist-lockup-renderer" data="[[data.navigationEndpoint]]" href$="[[computeOptionalHref_(data.navigationEndpoint)]]">\n  <yt-collections-stack data="[[collectionStack]]" class="style-scope ytd-structured-description-playlist-lockup-renderer"></yt-collections-stack>\n  <div id="playlist-thumbnail" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.title)]]" thumbnail="[[data.thumbnail]]" width="[[data.thumbnailWidth]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n    </yt-img-shadow>\n    <span id="overlay" hidden="[[showSidePanelThumbnailOverlay]]" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.videoCountShortText)]]</span>\n    <div id="overlays" class="style-scope ytd-structured-description-playlist-lockup-renderer"></div>\n  </div>\n</a>\n<div id="description" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  <div id="title" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.title)]]</div>\n  <div id="subtitle" class="style-scope ytd-structured-description-playlist-lockup-renderer">[[getSimpleString(data.shortBylineText)]]</div>\n  <ytd-badge-supported-renderer id="badges" badges="[[data.badges]]" hidden="[[!data.badges]]" role="text" class="style-scope ytd-structured-description-playlist-lockup-renderer">\n  </ytd-badge-supported-renderer>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return u_5=I},{mode:1});var z6w;var bm=function(){return _.q.apply(this,arguments)||this};
_.R(bm,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],bm.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bm.prototype,"data",void 0);bm=_.E([_.m({is:"ytd-structured-description-video-lockup-renderer",disableElementRegistration:!0})],bm);
_.Z(bm,"ytd-structured-description-video-lockup-renderer",function(){if(z6w!==void 0)return z6w;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return z6w=I},{mode:2});var Y8=function(){return _.q.apply(this,arguments)||this};
_.R(Y8,_.q);
Y8.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",params:{showSidePanelThumbnailOverlay:!0,isCompact:!0}},structuredDescriptionVideoLockupRenderer:"ytd-structured-description-video-lockup-renderer",structuredDescriptionChannelLockupRenderer:"ytd-structured-description-channel-lockup-renderer",mediaLockupRenderer:{component:"ytd-media-lockup-renderer",params:{isCompact:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Y8.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Y8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Y8.prototype,"data",void 0);Y8=_.E([_.m({is:"ytd-compact-infocard-renderer",disableElementRegistration:!0})],Y8);
_.Z(Y8,"ytd-compact-infocard-renderer",function(){if(yOm!==void 0)return yOm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return yOm=I},{mode:1});var Tv8;var GP=function(){var I=_.q.apply(this,arguments)||this;I.useModernCollectionsV2=_.V("web_modern_collections_v2");return I};
_.R(GP,_.q);GP.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
_.H1.Object.defineProperties(GP.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
customThumbnailSize:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"":"94"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],GP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],GP.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],GP.prototype,"ytdReduxBehavior",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],GP.prototype,"isGridViewEnabled",void 0);
_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],GP.prototype,"watchFeedBigThumbs",null);_.E([_.v("isGridViewEnabled","data"),_.d({reflectToAttribute:!0,value:"168"}),_.h("design:type",String),_.h("design:paramtypes",[])],GP.prototype,"thumbnailWidth",null);_.E([_.v("isGridViewEnabled","data"),_.d({reflectToAttribute:!0,value:"94"}),_.h("design:type",String),_.h("design:paramtypes",[])],GP.prototype,"customThumbnailSize",null);
_.E([_.d(),_.h("design:type",Object)],GP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],GP.prototype,"useModernCollectionsV2",void 0);GP=_.E([_.m({is:"ytd-compact-playlist-renderer",disableElementRegistration:!0})],GP);
_.Z(GP,"ytd-compact-playlist-renderer",function(){if(Tv8!==void 0)return Tv8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Tv8=I},{mode:1});var cOw;var fd=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.roundedContainer=!0;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return I};
_.R(fd,_.q);_.u=fd.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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"}}}};
_.u.dataChanged=function(){this.hideThumbnail=!1;this.requestElementsPerRow()};
_.u.computeViewStyle=function(I){return I.style?I.style:"COMPACT_PROMOTED_ITEM_STYLE_UNSPECIFIED"};
_.u.onUpdateElementsPerRowAction=function(I){this.hideThumbnail=this.viewStyle==="COMPACT_PROMOTED_ITEM_STYLE_RICH_GRID"&&I===1};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
fd.prototype.dataChanged=fd.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],fd.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],fd.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],fd.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],fd.prototype,"hideThumbnail",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeViewStyle(data)"}),_.h("design:type",String)],fd.prototype,"viewStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fd.prototype,"darkerDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fd.prototype,"roundedContainer",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fd.prototype,"dataChanged",null);fd=_.E([_.m({is:"ytd-compact-promoted-item-renderer",disableElementRegistration:!0})],fd);
_.Z(fd,"ytd-compact-promoted-item-renderer",function(){if(cOw!==void 0)return cOw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cOw=I},{mode:1});var e6q;var Sa=function(){var I=_.q.apply(this,arguments)||this;I.collections=_.V("web_modern_collections_v2");return I};
_.R(Sa,_.q);Sa.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationTextRenderer:"ytd-notification-text-renderer"}}}};
Sa.prototype.attached=function(){this.hostElement.classList.add("use-ellipsis")};
Sa.prototype.onYtNavigate=function(I,C){var y=this;if(C.endpoint===this.data.navigationEndpoint&&this.get("endpoint.watchEndpoint.continuePlayback",C)){var k=this.get("watchEndpoint.videoId",C.endpoint),F=_.uW(this.hostElement,"yt-get-current-video-id-action")[0];_.V("kevlar_mix_handle_first_endpoint_different")&&k&&F&&k!==F||(I.stopPropagation(),_.UZ().getPlayerPromise().then(function(z){if(z.getPlayerState()===0&&y.data.secondaryNavigationEndpoint)var c=y.data.secondaryNavigationEndpoint;else{c=
Object.assign({},C.endpoint);var r=_.l(c.commandMetadata,_.It);r&&(z=Math.floor(z.getCurrentTime()),r.url=_.hq(r.url,{t:z}),!_.V("kevlar_add_start_time_to_mix_endpoint_killswitch")&&(r=_.l(c,_.H$)))&&(r.startTimeSeconds=z)}_.k3(y.hostElement,"yt-navigate",{endpoint:c})}))}};
_.H1.Object.defineProperties(Sa.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}},
collectionStack:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z;return{thumbnailSize:"medium",doubleStack:!1,sampledThumbnailColor:(I=this.data)==null?void 0:(C=I.thumbnail)==null?void 0:C.sampledThumbnailColor,vibrantColorPalette:(y=this.data)==null?void 0:(k=y.thumbnail)==null?void 0:k.vibrantColorPalette,darkColorPalette:(F=this.data)==null?void 0:(z=F.thumbnail)==null?void 0:z.darkColorPalette,experimentEnabled:this.collections}}}});
Sa.prototype.onYtNavigate=Sa.prototype.onYtNavigate;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Sa.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],Sa.prototype,"ytEndpointBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Sa.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.KN),_.h("design:type",Object)],Sa.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Sa.prototype,"ytdReduxBehavior",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],Sa.prototype,"isGridViewEnabled",void 0);_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Sa.prototype,"watchFeedBigThumbs",null);
_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Sa.prototype,"thumbnailWidth",null);_.E([_.d(),_.h("design:type",Object)],Sa.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Sa.prototype,"collections",void 0);_.E([_.v("data","collections"),_.h("design:type",Object),_.h("design:paramtypes",[])],Sa.prototype,"collectionStack",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Sa.prototype,"onYtNavigate",null);Sa=_.E([_.m({is:"ytd-compact-radio-renderer",disableElementRegistration:!0})],Sa);
_.Z(Sa,"ytd-compact-radio-renderer",function(){if(e6q!==void 0)return e6q;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return e6q=I},{mode:1});var rOq;var Kd=function(){return _.q.apply(this,arguments)||this};
_.R(Kd,_.q);Kd.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
Kd.prototype.computeRendererStyle=function(I){return I.style?I.style.split("STYLE_")[1].replace(/_/g,"-").toLowerCase():""};
_.E([_.d(),_.h("design:type",Object)],Kd.prototype,"data",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Kd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Kd.prototype,"rendererBehavior",void 0);_.E([_.d({computed:"computeRendererStyle(data)",reflectToAttribute:!0}),_.h("design:type",String)],Kd.prototype,"rendererStyle",void 0);
Kd=_.E([_.m({is:"ytd-compact-text-promo-renderer",disableElementRegistration:!0})],Kd);
_.Z(Kd,"ytd-compact-text-promo-renderer",function(){if(rOq!==void 0)return rOq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rOq=I},{mode:1});var i3m;var Av=function(){var I=_.q.apply(this,arguments)||this;I.isShortsStyle=!1;return I};
_.R(Av,_.q);_.u=Av.prototype;_.u.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"}}}};
_.u.disableInteractionChanged=function(){this.isShortsStyle||(this.disableInteraction?_.k3(this.hostElement,"yt-disable-lockup-interaction"):_.k3(this.hostElement,"yt-enable-lockup-interaction"))};
_.u.isMetaBlockEmpty=function(I){return!I||!I.longBylineText&&!I.shortBylineText&&!I.shortViewCountText&&!I.viewCountText};
_.u.computeHasOneLineTitle=function(I){return this.forceOneLineTitle||!(I==null||!I.buttons)};
_.u.computeDisableInteraction=function(){var I;return!((I=this.data)==null?0:I.navigationEndpoint)};
_.u.hasSingularTopStandaloneBadge=function(){var I;return!((I=this.data)==null||!I.topStandaloneBadge)};
_.H1.Object.defineProperties(Av.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("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 I;return this.hasSingularTopStandaloneBadge()?[(I=this.data)==null?void 0:I.topStandaloneBadge]:[]}},
inlineMetadataBadges:{configurable:!0,enumerable:!0,get:function(){var I;return this.shouldShowTopBadges?((I=this.data)==null?void 0:I.badges)||[]:[]}},
shouldShowBadgesBelowMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.shouldShowTopBadges}},
compactTitleClass:{configurable:!0,enumerable:!0,get:function(){return this.shouldShowTopBadges?"compact-title":""}}});
Av.prototype.disableInteractionChanged=Av.prototype.disableInteractionChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Av.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Av.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Av.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],Av.prototype,"ytdLockupBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],Av.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isMetaBlockEmpty(data)"}),_.h("design:type",Boolean)],Av.prototype,"metaBlockEmpty",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],Av.prototype,"isGridViewEnabled",void 0);_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Av.prototype,"watchFeedBigThumbs",null);
_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],Av.prototype,"thumbnailWidth",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Av.prototype,"isShortsStyle",void 0);_.E([_.d(),_.h("design:type",Object)],Av.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasOneLineTitle(data)"}),_.h("design:type",Boolean)],Av.prototype,"hasOneLineTitle",void 0);
_.E([_.d(),_.h("design:type",Boolean)],Av.prototype,"hideThumbnail",void 0);_.E([_.d(),_.h("design:type",Boolean)],Av.prototype,"forceOneLineTitle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeDisableInteraction(data)"}),_.h("design:type",Boolean)],Av.prototype,"disableInteraction",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Av.prototype,"musicMetadataVideoLockup",void 0);
_.E([_.FI("disableInteraction"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Av.prototype,"disableInteractionChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Av.prototype,"shouldShowTopBadges",null);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],Av.prototype,"topBadges",null);
_.E([_.v("shouldShowTopBadges","data"),_.h("design:type",Array),_.h("design:paramtypes",[])],Av.prototype,"inlineMetadataBadges",null);_.E([_.v("shouldShowTopBadges"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Av.prototype,"shouldShowBadgesBelowMetadata",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Av.prototype,"compactTitleClass",null);Av=_.E([_.m({is:"ytd-compact-video-renderer",disableElementRegistration:!0})],Av);
_.Z(Av,"ytd-compact-video-renderer",function(){if(i3m!==void 0)return i3m;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return i3m=I},{mode:_.Ij("kevlar_poly_si_batch_j067")?1:2});var wt0;_.jz("itemSectionRenderer","counterfactualRenderer","ytd-counterfactual-renderer");var g7=function(){return _.q.apply(this,arguments)||this};
_.R(g7,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],g7.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],g7.prototype,"data",void 0);g7=_.E([_.m({is:"ytd-counterfactual-renderer",disableElementRegistration:!0})],g7);
_.Z(g7,"ytd-counterfactual-renderer",function(){if(wt0!==void 0)return wt0;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return wt0=I},{mode:1});var nEw;var vW=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;return I};
_.R(vW,_.q);vW.prototype.onSelect=function(){this.data&&this.data.onSelectCommand&&_.N().resolve(_.ID).resolveCommand(this.data.onSelectCommand,{form:{element:this.hostElement}})};
vW.prototype.computeHidden=function(I){return!!I};
_.H1.Object.defineProperties(vW.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.ytRendererBehavior.getSimpleString(this.data.label)}},
value:{configurable:!0,enumerable:!0,get:function(){if(this.data&&(typeof this.data.stringValue==="string"||typeof this.data.int32Value==="number"))return this.data.stringValue?this.data.stringValue:this.data.int32Value}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vW.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHidden(data.isHidden)"}),_.h("design:type",Object)],vW.prototype,"hidden",void 0);_.E([_.v("data.label"),_.h("design:type",String),_.h("design:paramtypes",[])],vW.prototype,"label",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vW.prototype,"value",null);
vW=_.E([_.m({is:"ytd-dropdown-item-renderer",disableElementRegistration:!0})],vW);
_.Z(vW,"ytd-dropdown-item-renderer",function(){if(nEw!==void 0)return nEw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nEw=I},{mode:1});var PPY;var LES;var WW=function(){return _.q.apply(this,arguments)||this};
_.R(WW,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],WW.prototype,"data",void 0);_.E([_.d({computed:"getSimpleString(data.label)"}),_.h("design:type",String)],WW.prototype,"label",void 0);WW=_.E([_.m({is:"ytd-navigation-dropdown-item-renderer",disableElementRegistration:!0})],WW);
_.Z(WW,"ytd-navigation-dropdown-item-renderer",function(){if(LES!==void 0)return LES;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return LES=I},{mode:1});var d7=function(){var I=_.q.apply(this,arguments)||this;I.disabled=!1;I.value="";I.noLabelFloat=!1;I.noUnderline=!1;I.usePrimaryColor=!1;I.hasBackground=!1;I.verticalAlign="top";I.autosize=!1;I.minAutosizeWidth=100;I.autosizeFont="14px Roboto";return I};
_.R(d7,_.q);_.u=d7.prototype;_.u.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"}}}};
_.u.open=function(){this.inputEl.open()};
_.u.reset=function(){this.entries.selected=-1;this.entries.forceSynchronousItemUpdate();this.entries.select(this.getSelectedItem())};
_.u.dataChanged=function(){this.reset()};
_.u.valueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("value-changed",this.value))};
_.u.stopPropagation=function(I){I.stopPropagation()};
_.u.autoSizeLabel=function(){if(this.autosizeFont&&this.autosize){this.canvas||(this.canvas=document.createElement("canvas"));var I=this.canvas.getContext("2d");I&&(I.font=this.autosizeFont,this.inputEl.style.width=Math.max(this.minAutosizeWidth,Number(I.measureText(this.inputEl.value).width)+24)+"px")}};
_.u.getSelectedItem=function(){if(!this.data||!this.data.entries)return null;for(var I=0,C=this.data.entries.length;I<C;I++){var y=this.data.entries[I],k;for(k in y)if(y.hasOwnProperty(k)){var F=y[k];if("isSelected"in F&&F.isSelected)return"stringValue"in F?F.stringValue||"":"int32Value"in F?F.int32Value||0:0}}return null};
_.u.updateValueFromBinding=function(I){this.value=I.detail.value};
_.H1.Object.defineProperties(d7.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 I=0,C=this.data.entries.length;I<C;I++){var y=this.data.entries[I],k;for(k in y)if(y.hasOwnProperty(k)){var F=y[k];if("isSelected"in F&&F.isSelected&&"label"in F)return this.ytRendererBehavior.getSimpleString(F.label)}}return null}}});
d7.prototype.autoSizeLabel=d7.prototype.autoSizeLabel;d7.prototype.stopPropagation=d7.prototype.stopPropagation;d7.prototype.valueChangedForBinding=d7.prototype.valueChangedForBinding;d7.prototype.dataChanged=d7.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],d7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],d7.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],d7.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],d7.prototype,"disabled",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"value",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"noLabelFloat",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],d7.prototype,"noUnderline",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],d7.prototype,"theme",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],d7.prototype,"usePrimaryColor",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],d7.prototype,"hasBackground",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"verticalAlign",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"autosize",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"minAutosizeWidth",void 0);_.E([_.d(),_.h("design:type",Object)],d7.prototype,"autosizeFont",void 0);
_.E([_.z$("#entries"),_.h("design:type",Object)],d7.prototype,"entries",void 0);_.E([_.z$("#input"),_.h("design:type",Object)],d7.prototype,"inputEl",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d7.prototype,"dataChanged",null);_.E([_.rW("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d7.prototype,"valueChangedForBinding",null);
_.E([_.km("iron-overlay-opened"),_.km("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],d7.prototype,"stopPropagation",null);_.E([_.km("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],d7.prototype,"autoSizeLabel",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],d7.prototype,"label",null);
d7=_.E([_.m({disableElementRegistration:!0,is:"ytd-dropdown-renderer"})],d7);
_.Z(d7,"ytd-dropdown-renderer",function(){if(PPY!==void 0)return PPY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return PPY=I},{mode:1});var D4c;var x8=function(){var I=_.q.apply(this,arguments)||this;I.isConstrainedList=!1;return I};
_.R(x8,_.q);x8.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"}}}};
x8.prototype.fillRestIfNoShowMore=function(){this.data&&!this.data.showMoreText&&this.ytLazyListBehavior.canShowMore&&this.ytLazyListBehavior.fillRemainingListItems()};
x8.prototype.onShowMoreClick=function(){this.ytLazyListBehavior.fillRemainingListItems()};
x8.prototype.computeViewAllHidden=function(I,C){return I||!C.viewAllEndpoint};
x8.prototype.fillRestIfNoShowMore=x8.prototype.fillRestIfNoShowMore;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],x8.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],x8.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],x8.prototype,"ytLazyListBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],x8.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],x8.prototype,"isConstrainedList",void 0);_.E([_.rW("data","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x8.prototype,"fillRestIfNoShowMore",null);x8=_.E([_.m({is:"ytd-expanded-shelf-contents-renderer",disableElementRegistration:!0})],x8);
_.Z(x8,"ytd-expanded-shelf-contents-renderer",function(){if(D4c!==void 0)return D4c;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return D4c=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var ptu;var qe=function(){return _.q.apply(this,arguments)||this};
_.R(qe,_.q);qe.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.viewChannelButton":{id:"view-channel-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qe.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],qe.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qe.prototype,"data",void 0);qe=_.E([_.m({is:"ytd-feed-channel-filter-header-renderer",disableElementRegistration:!0})],qe);
_.Z(qe,"ytd-feed-channel-filter-header-renderer",function(){if(ptu!==void 0)return ptu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ptu=I},{mode:1});var Qob;var NvY;var Vqb;var mF=function(){return _.q.apply(this,arguments)||this};
_.R(mF,_.q);_.u=mF.prototype;_.u.onClick=function(I){var C,y=(C=this.data)==null?void 0:C.sectionEndpoint;!_.q3(_.qc(I),this.hostElement,["A".toString()])&&y&&_.k3(this.hostElement,"yt-navigate",{endpoint:y})};
_.u.computeHasSectionEndpoint=function(I){return(I==null?void 0:I.sectionEndpoint)!==void 0};
_.u.computeShowHeaderAsLink=function(I){return(I==null?void 0:I.header)!==void 0&&(I==null?void 0:I.sectionEndpoint)!==void 0};
_.u.computeShowSubheaderAsLink=function(I){return(I==null?void 0:I.subheader)!==void 0&&(I==null?void 0:I.sectionEndpoint)!==void 0&&(I==null?void 0:I.header)===void 0};
_.u.getHeaderAsLinkClass=function(I){var C=[],y;(I==null?0:(y=I.headerIcon)==null?0:y.iconType)&&C.push("header-link-active");return C.join(" ")};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],mF.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mF.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mF.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mF.prototype,"data",void 0);
_.E([_.d({computed:"computeHasSectionEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],mF.prototype,"hasSectionEndpoint",void 0);_.E([_.d({computed:"computeShowHeaderAsLink(data)"}),_.h("design:type",Boolean)],mF.prototype,"showHeaderAsLink",void 0);_.E([_.d({computed:"computeShowSubheaderAsLink(data)"}),_.h("design:type",Boolean)],mF.prototype,"showSubheaderAsLink",void 0);mF=_.E([_.m({is:"ytd-medical-panel-section-renderer",disableElementRegistration:!0})],mF);
_.Z(mF,"ytd-medical-panel-section-renderer",function(){if(Vqb!==void 0)return Vqb;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Vqb=I},{mode:1});var Zl=function(){var I=_.q.apply(this,arguments)||this;I.isExpanded=!1;I.roundedContainer=!0;I.skipRoundingTop=!1;I.toggleExpandableSection=function(){I.isExpanded=!I.isExpanded};
return I};
_.R(Zl,_.q);
Zl.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]]"}}}}}};
Zl.prototype.dataChanged=function(){this.data&&(this.isExpanded=!1)};
Zl.prototype.dataChanged=Zl.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Zl.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Zl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Zl.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Zl.prototype,"isExpanded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Zl.prototype,"roundedContainer",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Zl.prototype,"skipRoundingTop",void 0);_.E([_.d(),_.h("design:type",Object)],Zl.prototype,"toggleExpandableSection",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zl.prototype,"dataChanged",null);Zl=_.E([_.m({is:"ytd-medical-panel-content-renderer",disableElementRegistration:!0})],Zl);
_.Z(Zl,"ytd-medical-panel-content-renderer",function(){if(NvY!==void 0)return NvY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return NvY=I},{mode:1});_.jz("itemSectionRenderer","infoPanelContainerRenderer","ytd-info-panel-container-renderer");var BW=function(){var I=_.q.apply(this,arguments)||this;I.roundedContainer=!0;I.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");I.hasTitle=!1;I.linkIcon="OPEN_IN_NEW";I.isDismissed=!1;return I};
_.R(BW,_.q);
BW.prototype.configureRendererStamper=function(){return{"data.menu":{id:"header-menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.content":{id:"content",mapping:{infoPanelContentRenderer:{component:"ytd-info-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",disableTopPadding:"[[data.disableBottomDivider]]",roundedContainer:"[[roundedContainer]]"}},medicalPanelContentRenderer:{component:"ytd-medical-panel-content-renderer",properties:{skipRoundingTop:"[[hasTitle]]",roundedContainer:"[[roundedContainer]]"}},
horizontalCardListRenderer:"ytd-horizontal-card-list-renderer"}}}};
BW.prototype.computeHasTitle=function(I){return!(I==null||!I.title)};
BW.prototype.onClick=function(I){var C,y=(C=this.data)==null?void 0:C.headerEndpoint;!_.q3(_.qc(I),this.hostElement,["BUTTON".toString()])&&y&&this.ytComponentBehavior.resolveCommand(y)};
_.H1.Object.defineProperties(BW.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 I;return((I=this.data)==null?void 0:I.titleStyle)==="INFO_PANEL_CONTAINER_TITLE_STYLE_LINK"}},
hideDivider:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.disableBottomDivider)||!((C=this.data)==null?0:C.title)}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],BW.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],BW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],BW.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BW.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BW.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],BW.prototype,"amsterdamEnabled",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Object)],BW.prototype,"hasTitle",void 0);
_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.v("data.background"),_.h("design:type",Object),_.h("design:paramtypes",[])],BW.prototype,"background",null);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.v("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],BW.prototype,"titleStyle",null);
_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.v("data.titleStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],BW.prototype,"showLinkIcon",null);_.E([_.d(),_.h("design:type",String)],BW.prototype,"linkIcon",void 0);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],BW.prototype,"hideDivider",null);
_.E([_.d({selectorArgs:["data.dismissStateEntityKey"],selector:function(I,C){I=_.cg(I.entities,"dismissState",C);return(I==null?void 0:I.isDismissed)||(I==null?void 0:I.vwcDismissState)==="VWC_DISMISS_STATE_NOT_INTERESTED"||(I==null?void 0:I.vwcDismissState)==="VWC_DISMISS_STATE_BLOCK_CHANNEL"}}),
_.h("design:type",Object)],BW.prototype,"isDismissed",void 0);BW=_.E([_.m({is:"ytd-info-panel-container-renderer",disableElementRegistration:!0})],BW);
_.Z(BW,"ytd-info-panel-container-renderer",function(){if(Qob!==void 0)return Qob;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Qob=I},{mode:1});var joc;_.jz("sharingItemSection","itemSectionHeaderRenderer","ytd-item-section-header-renderer");var ER=function(){var I=_.q.apply(this,arguments)||this;I.modernTypography=_.V("web_modern_typography");return I};
_.R(ER,_.q);ER.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
ER.prototype.computeStyle=function(I){return I?I:""};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ER.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ER.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ER.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.titleStyle)"}),_.h("design:type",String)],ER.prototype,"titleStyle",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ER.prototype,"modernTypography",void 0);ER=_.E([_.m({is:"ytd-item-section-header-renderer",disableElementRegistration:!0})],ER);
_.Z(ER,"ytd-item-section-header-renderer",function(){if(joc!==void 0)return joc;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return joc=I},{mode:1});var lPw;var Xte,$4q=function(){return Xte!==void 0?Xte:Xte=document.createElement("template")};
document.head.appendChild($4q().content);var R68;_.hv=new _.Jj("VOTING_ANIMATION_CONTROLLER_TOKEN");var YxS=_.BO(function(I){var C=I.data;var y=_.Es(),k=_.Es();I=_.T(_.c4("VOTE_STATUS_NONE",void 0,"FVF7mc"));var F=I.next().value,z=I.next().value,c=_.cj(aqz,function(){var Q;return(Q=C())==null?void 0:Q.entityKey}),r=_.V("web_enable_voting_animation")||_.V("enable_music_web_cairo_voting_animation");
_.RU(function(){var Q;((Q=C().initialState)==null?0:Q.status)&&z(C().initialState.status)});
var w=function(){var Q,X,b=(X=(Q=C().initialState)==null?void 0:Q.votes)!=null?X:0,S;Q=(S=C().initialState)==null?void 0:S.status;return Q==="VOTE_STATUS_UPVOTED"?b-1:Q==="VOTE_STATUS_DOWNVOTED"?b+1:b},L=function(){return F()==="VOTE_STATUS_UPVOTED"?w()+1:F()==="VOTE_STATUS_DOWNVOTED"?w()-1:w()},D=function(Q){var X=Q?"VOTE_STATUS_UPVOTED":"VOTE_STATUS_NONE";
z(X);var b=L(),S=_.N().resolve(_.aU(_.hv)),A=c();A&&(Q&&(A==null?0:A.upvoteDefaultButtonOnTap)?_.Gp(A.upvoteDefaultButtonOnTap,{form:{element:y.value},disableClickTracking:!0}):(A==null?0:A.upvoteToggledButtonOnTap)&&_.Gp(A.upvoteToggledButtonOnTap,{form:{element:y.value},disableClickTracking:!0}));var x;Q=(x=A==null?void 0:A.enableOptimisticReordering)!=null?x:C().enableOptimisticReordering;r&&S&&C().itemId&&Q&&b3b(S,C().itemId,b,X)},p=function(Q){var X=Q?"VOTE_STATUS_DOWNVOTED":"VOTE_STATUS_NONE";
z(X);var b=L(),S=_.N().resolve(_.aU(_.hv)),A=c();A&&(Q&&(A==null?0:A.downvoteDefaultButtonOnTap)?_.Gp(A.downvoteDefaultButtonOnTap,{form:{element:k.value},disableClickTracking:!0}):(A==null?0:A.downvoteToggledButtonOnTap)&&_.Gp(A.downvoteToggledButtonOnTap,{form:{element:k.value},disableClickTracking:!0}));var x;Q=(x=A==null?void 0:A.enableOptimisticReordering)!=null?x:C().enableOptimisticReordering;r&&S&&C().itemId&&Q&&b3b(S,C().itemId,b,X)};
I={};I=_.sZ("ytVotingViewModelVoteCount",(I.ytVotingViewModelVoteCountDisabled=function(){return C().isDisabled},I));
return _.P("voting-view-model",{class:"ytVotingViewModelHost"},_.P("div",{el:y},_.P(_.lY,{data:function(){var Q=_.l(C().upvoteButton,_.$A);return{toggleButtonViewModel:Object.assign({},Q,{isToggled:F()==="VOTE_STATUS_UPVOTED"})}}},{toggleButtonViewModel:function(Q){return _.P(_.RY,{data:Q.data,
onToggle:D})}})),_.P("div",{class:I},function(){var Q,X,b;
return F()==="VOTE_STATUS_UPVOTED"?(Q=C().initialState)==null?void 0:Q.compactVotesUpvoted:F()==="VOTE_STATUS_DOWNVOTED"?(X=C().initialState)==null?void 0:X.compactVotesDownvoted:(b=C().initialState)==null?void 0:b.compactVotes}),_.P("div",{el:k},_.P(_.lY,{data:function(){var Q=_.l(C().downvoteButton,_.$A);
return{toggleButtonViewModel:Object.assign({},Q,{isToggled:F()==="VOTE_STATUS_DOWNVOTED"})}}},{toggleButtonViewModel:function(Q){return _.P(_.RY,{data:Q.data,
onToggle:p})}})))},"Ab");_.B9(_.BO(function(I){var C=I.data;return _.P("engagement-bar-view-model",{class:"ytEngagementBarViewModelHost"},_.P("div",{class:_.sZ("ytEngagementBarViewModelEngagementBarWrapper",I.className)},_.P(_.lY,{data:function(){return C().actions}},{votingViewModel:YxS})))},"Bb"),"engagement-bar-view-model",{props:{data:_.As,
className:_.As}});var UR=function(){var I=_.q.apply(this,arguments)||this;I.amsterdamPostMvp=_.V("web_amsterdam_post_mvp_playlists");I.cairoCollabPlaylistPostMvp=_.V("web_collab_playlist_thumbnail_size");I.playlistVotingAnimationEnabled=_.V("web_enable_voting_animation");I.downloadProgress=0;I.transferState="TRANSFER_STATE_UNKNOWN";I.downloadState="DOWNLOAD_STATE_UNKNOWN";I.offlinePolicyAction="OFFLINE_VIDEO_POLICY_ACTION_UNKNOWN";I.offlineVideoPolicyExpirationTimestamp=0;return I};
_.R(UR,_.q);_.u=UR.prototype;_.u.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"}}}};
_.u.canReorderChanged=function(){this.persistentDragHandle=_.V("kevlar_playlist_drag_handles")&&this.canReorder};
_.u.onDrag=function(){if(this.thumbnail){var I=_.f(this.thumbnail).querySelector("yt-image");I&&(I.shouldRenderLazy=!1)}};
_.u.onMenuOverlayChanged=function(I,C){this.menuOpened=C};
_.u.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.u.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.u.onContentsTap=function(I){var C,y=(C=this.data)==null?void 0:C.serviceEndpoints;if(y&&y.length===1&&_.l(y[0],uFz)&&!_.q3(_.qc(I),this.hostElement,["TP-YT-PAPER-BUTTON"]))this.ytComponentBehavior.resolveCommand(y[0]);else{var k;(C=(k=this.data)==null?void 0:k.navigationEndpoint)&&_.V("music_on_main_open_playlist_recommended_videos_in_miniplayer")&&this.styleType==="playlist-video-renderer-style-recommended-video"?this.miniplayerIsActive?GCu(_.N().resolve(_.WJ),C):(_.ck().playlistSuggestionsShelfActivation=
!0,_.fPb(_.N().resolve(_.WJ),C)):C&&!_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString(),"ENGAGEMENT-BAR-VIEW-MODEL"])&&(_.V("kevlar_playlist_video_resolve_nav_endpoint_killswitch")?_.k3(this.hostElement,"yt-navigate",{endpoint:C}):this.ytComponentBehavior.resolveCommand(C))}};
_.u.computeStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeThumbnailWidth=function(I){return I==="PLAYLIST_VIDEO_RENDERER_STYLE_EPISODE"?170:this.amsterdamPostMvp?160:this.cairoCollabPlaylistPostMvp?200:120};
_.u.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=zfX(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))}};
_.u.created=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.u.detached=function(){this.downloadRenderData=void 0;this.isDownloads=!1};
_.u.dataChanged=function(){if(this.data){var I,C,y,k=((I=this.downloadRenderData)==null?void 0:I.badges)&&((C=this.downloadRenderData)==null?void 0:C.badges)!==((y=this.data)==null?void 0:y.badges),F,z,c;I=((F=this.downloadRenderData)==null?void 0:F.thumbnailOverlays)&&((z=this.downloadRenderData)==null?void 0:z.thumbnailOverlays)!==((c=this.data)==null?void 0:c.thumbnailOverlays);(!this.downloadRenderData||k||I)&&this.downloadStateChanged()}};
_.u.setVideoIdChanged=function(){if(this.data&&this.data.setVideoId){var I,C,y=(I=this.data.menu)==null?void 0:(C=I.menuRenderer)==null?void 0:C.items;if(y)for(I=_.T(y),C=I.next();!C.done;C=I.next())if(C=C.value,y=void 0,_.l((y=C.menuServiceItemRenderer)==null?void 0:y.serviceEndpoint,_.bv)){var k=y=void 0,F=void 0;C=(y=C)==null?void 0:(k=y.menuServiceItemRenderer)==null?void 0:(F=k.serviceEndpoint)==null?void 0:F.playlistEditEndpoint;F=k=void 0;if(y=(k=C)==null?void 0:(F=k.actions)==null?void 0:
F[0])k=void 0,y.setVideoId=(k=this.data)==null?void 0:k.setVideoId;F=k=y=void 0;if(C=(y=C)==null?void 0:(k=y.clientActions)==null?void 0:(F=k[0])==null?void 0:F.playlistRemoveVideosAction)y=void 0,C.setVideoIds=[(y=this.data)==null?void 0:y.setVideoId]}}};
_.H1.Object.defineProperties(UR.prototype,{playlistVideoId:{configurable:!0,enumerable:!0,get:function(){return this.data.videoId}}});
UR.prototype.setVideoIdChanged=UR.prototype.setVideoIdChanged;UR.prototype.dataChanged=UR.prototype.dataChanged;UR.prototype.downloadStateChanged=UR.prototype.downloadStateChanged;UR.prototype.onMenuOverlayChanged=UR.prototype.onMenuOverlayChanged;UR.prototype.canReorderChanged=UR.prototype.canReorderChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],UR.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],UR.prototype,"ytdReduxBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],UR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],UR.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],UR.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],UR.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UR.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],UR.prototype,"amsterdamPostMvp",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"canReorder",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"menuOpened",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"handleIsHovered",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"persistentDragHandle",void 0);
_.E([_.d(),_.h("design:type",Object)],UR.prototype,"downloadRenderData",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],UR.prototype,"styleType",void 0);_.E([_.d({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],UR.prototype,"thumbnailWidth",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"isDownloads",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],UR.prototype,"cairoCollabPlaylistPostMvp",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],UR.prototype,"playlistVotingAnimationEnabled",void 0);_.E([_.d({selector:gi,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"downloadProgress",void 0);_.E([_.d(),_.h("design:type",Number)],UR.prototype,"relativeDateReference",void 0);
_.E([_.d({selector:_.Kx,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"transferState",void 0);_.E([_.d({selector:fNz,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"downloadState",void 0);_.E([_.d({selector:L_z,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"offlinePolicyAction",void 0);_.E([_.d({selector:DDs,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"offlineVideoPolicyExpirationTimestamp",void 0);
_.E([_.d({selector:Q$z,selectorArgs:["data.videoId"]}),_.h("design:type",Object)],UR.prototype,"entityInfo",void 0);_.E([_.d({selector:_.GL}),_.h("design:type",Boolean)],UR.prototype,"miniplayerIsActive",void 0);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],UR.prototype,"playlistVideoId",null);_.E([_.z$("#thumbnail"),_.h("design:type",Object)],UR.prototype,"thumbnail",void 0);
_.E([_.rW("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UR.prototype,"canReorderChanged",null);_.E([_.km("yt-menu-overlay-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Boolean]),_.h("design:returntype")],UR.prototype,"onMenuOverlayChanged",null);
_.E([_.rW("transferState","offlinePolicyAction","offlineVideoPolicyExpirationTimestamp","downloadProgress","downloadState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UR.prototype,"downloadStateChanged",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UR.prototype,"dataChanged",null);
_.E([_.rW("data.setVideoId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UR.prototype,"setVideoIdChanged",null);UR=_.E([_.m({is:"ytd-playlist-video-renderer",disableElementRegistration:!0})],UR);
_.Z(UR,"ytd-playlist-video-renderer",function(){if(R68!==void 0)return R68;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);I.content.insertBefore($4q().content.cloneNode(!0),I.content.firstChild);return R68=I},{mode:1});var Sxq;var HW=function(){return _.q.apply(this,arguments)||this};
_.R(HW,_.q);_.E([_.d(),_.h("design:type",Object)],HW.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HW.prototype,"rendererBehavior",void 0);HW=_.E([_.m({is:"ytd-premium-browse-footer-renderer",disableElementRegistration:!0})],HW);
_.Z(HW,"ytd-premium-browse-footer-renderer",function(){if(Sxq!==void 0)return Sxq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Sxq=I},{mode:1});var KEq;var tv=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction"};return I};
_.R(tv,_.q);_.u=tv.prototype;_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.handleDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.computeHeaderLogoThumbnail=function(I,C){if(I)return C?I.darkLogo:I.lightLogo};
_.u.computeHeaderLogoHeight=function(I,C){var y,k,F;return(I=(y=this.computeHeaderLogoThumbnail(I,C))==null?void 0:(k=y.thumbnails)==null?void 0:(F=k[0])==null?void 0:F.height)&&I%31===0?"31":"24"};
_.u.computeHeaderLogoMarginBottom=function(I,C){return this.computeHeaderLogoHeight(I,C)==="24"?"0":"-7"};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],tv.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tv.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tv.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],tv.prototype,"isDarkTheme",void 0);_.E([_.d({computed:"computeHeaderLogoThumbnail(data,isDarkTheme)"}),_.h("design:type",Object)],tv.prototype,"themeLogo",void 0);
_.E([_.d({computed:"computeHeaderLogoHeight(data,isDarkTheme)"}),_.h("design:type",String)],tv.prototype,"logoHeight",void 0);_.E([_.d({computed:"computeHeaderLogoMarginBottom(data,isDarkTheme)"}),_.h("design:type",String)],tv.prototype,"logoMarginBottom",void 0);tv=_.E([_.m({is:"ytd-primetime-promo-header-renderer",disableElementRegistration:!0})],tv);
_.Z(tv,"ytd-primetime-promo-header-renderer",function(){if(KEq!==void 0)return KEq;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return KEq=I},{mode:1});var AOb;_.MU(CdW);var uuI;uuI=_.Qg({flexibleActionsViewModel:zn5});_.Jv=_.ks(zuK);_.MU(zuK);_.B9(_.Jv,"yt-section-header-view-model",{props:{data:_.As,className:_.As,disableHorizontalPadding:_.As,disableVerticalPadding:_.As,forceSmallLayout:_.As,useResponsiveLayout:_.As,isOverlay:_.As}});_.jz("itemSectionRenderer","primetimePromoRenderer","ytd-primetime-promo-renderer");var OR=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};return I};
_.R(OR,_.q);_.u=OR.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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"}}}};
_.u.onDataChange=function(){var I=this;_.hn(this,function(){I.updateItemVisibility()})};
_.u.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I,this.updateItemVisibility())};
_.u.updateItemVisibility=function(){var I=this;this.data&&this.data.panels&&_.f(this.hostElement).querySelectorAll("ytd-rich-item-renderer").forEach(function(C,y){C.hidden=y>I.elementsPerRow-1})};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
OR.prototype.onDataChange=OR.prototype.onDataChange;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],OR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],OR.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OR.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],OR.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],OR.prototype,"data",void 0);_.E([_.d({value:3}),_.h("design:type",Number)],OR.prototype,"elementsPerRow",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OR.prototype,"onDataChange",null);OR=_.E([_.m({is:"ytd-primetime-promo-renderer",disableElementRegistration:!0})],OR);
_.Z(OR,"ytd-primetime-promo-renderer",function(){if(AOb!==void 0)return AOb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return AOb=I},{mode:1});var gEw;var a6=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction"};return I};
_.R(a6,_.q);a6.prototype.configureRendererStamper=function(){return{"data.button":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
a6.prototype.handleButtonRefreshAction=function(I){if(I=_.l(I,_.KAq))this.set("data.button",I.membershipButton),this.notifyPath("data.button")};
_.H1.Object.defineProperties(a6.prototype,{avatars:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.avatars)==null?void 0:C.slice(0,8))||[]}}});
_.E([_.d(),_.h("design:type",Object)],a6.prototype,"data",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],a6.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],a6.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],a6.prototype,"rendererBehavior",void 0);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],a6.prototype,"avatars",null);
a6=_.E([_.m({is:"ytd-recognition-shelf-renderer",disableElementRegistration:!0})],a6);
_.Z(a6,"ytd-recognition-shelf-renderer",function(){if(gEw!==void 0)return gEw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return gEw=I},{mode:1});var vEq;var WEq;var Me=function(){var I=_.q.apply(this,arguments)||this;I.modernButtons=_.V("web_modern_buttons");return I};
_.R(Me,_.q);_.u=Me.prototype;
_.u.configureRendererStamper=function(){return{visibleItems:{id:"items",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-vertical-list-renderer lockup",containerType:3,force16By9ThumbnailAspectRatio:!0},properties:{thumbnailFixedWidth:"[[thumbnailWidth]]",typographyBump:"[[typographyBump]]"}},channelRenderer:"ytd-channel-renderer",playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},radioRenderer:"ytd-radio-renderer",showRenderer:"ytd-show-renderer",
videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}}}}}};
_.u.dataChanged=function(){this.collapsed=!0};
_.u.computeVisibleItems=function(I,C){return I!==void 0&&I.items?C?I.items.slice(0,this.data.collapsedItemCount):I.items:[]};
_.u.computeHideShowMore=function(I,C,y){return I>=C||!y};
_.u.computeHideShowAll=function(I,C,y){return!(I&&C)||y};
_.u.onMoreClick=function(){this.collapsed=!1};
_.H1.Object.defineProperties(Me.prototype,{typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":"246px"}}});
Me.prototype.dataChanged=Me.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Me.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Me.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Me.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Me.prototype,"isSearch",void 0);
_.E([_.d({computed:"computeVisibleItems(data,collapsed)"}),_.h("design:type",Array)],Me.prototype,"visibleItems",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],Me.prototype,"collapsed",void 0);_.E([_.d({computed:"computeHideShowMore(data.collapsedItemCount,data.items.length,collapsed)"}),_.h("design:type",Boolean)],Me.prototype,"hideShowMore",void 0);
_.E([_.d({computed:"computeHideShowAll(data.expandedStateButtonEndpoint,\n        data.expandedStateButtonText,collapsed)",value:!0}),_.h("design:type",Boolean)],Me.prototype,"hideShowAll",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Me.prototype,"modernButtons",void 0);_.E([_.v("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Me.prototype,"typographyBump",null);
_.E([_.v("isSearch"),_.h("design:type",String),_.h("design:paramtypes",[])],Me.prototype,"thumbnailWidth",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Me.prototype,"dataChanged",null);Me=_.E([_.m({disableElementRegistration:!0,is:"ytd-vertical-list-renderer"})],Me);
_.Z(Me,"ytd-vertical-list-renderer",function(){if(WEq!==void 0)return WEq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return WEq=I},{mode:1});var d4q=_.hu(["#"]);_.jz("itemSectionRenderer","shelfRenderer","ytd-shelf-renderer");var Ib=function(){var I=_.q.apply(this,arguments)||this;I.isConstrainedList=!1;I.modernTypography=_.V("web_modern_typography");return I};
_.R(Ib,_.q);_.u=Ib.prototype;
_.u.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"}}}};
_.u.computeThumbnailStyle=function(I){return I||""};
_.u.computePlaceAnnotationUnderTitle=function(){var I;return["CHANNEL_THUMBNAIL_STYLE_BOXART","CHANNEL_THUMBNAIL_STYLE_BOXART_ROUNDED"].includes(((I=this.data)==null?void 0:I.thumbnailStyle)||"")};
_.u.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I)||_.na(d4q)};
_.u.computeIsPromoShelf=function(I){var C;return(I=I==null?void 0:(C=I[0])==null?void 0:C.metadataBadgeRenderer)?I.style==="BADGE_STYLE_TYPE_YPC_TRANSPARENT":!1};
_.u.computePlaceBadgeBesideTitle=function(I){var C;return(I==null?0:(C=I[0])==null?0:C.metadataBadgeRenderer)?!this.computeIsPromoShelf(I):!1};
_.u.computeMenuIcon=function(I){return this.computeIsPromoShelf(I)?"yt-icons:more_vert":"yt-icons:more"};
_.u.onDataChange=function(){var I,C;((I=this.data)==null?0:(C=I.content)==null?0:C.horizontalListRenderer)&&!this.data.content.horizontalListRenderer.items&&(this.data.content.horizontalListRenderer=void 0)};
_.u.onLockupRequested=function(I){if(this.data&&this.data.content&&this.data.content.gridRenderer&&this.data.content.gridRenderer.items&&I.detail&&I.detail.videoIds){for(var C=this.data.content.gridRenderer.items,y=new Set,k=_.T(I.detail.videoIds),F=k.next();!F.done;F=k.next())y.add(F.value);I.detail.returnValue=C.filter(function(z){return z.gridVideoRenderer&&z.gridVideoRenderer.videoId&&y.has(z.gridVideoRenderer.videoId)}).map(function(z){return z.gridVideoRenderer})}};
_.u.onParentResize=function(){this.ironResizableBehavior.notifyResize()};
Ib.prototype.onLockupRequested=Ib.prototype.onLockupRequested;Ib.prototype.onDataChange=Ib.prototype.onDataChange;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ib.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Ib.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ib.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ib.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],Ib.prototype,"ironResizableBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ib.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Ib.prototype,"isSearch",void 0);_.E([_.d(),_.h("design:type",Object)],Ib.prototype,"isConstrainedList",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("kevlar_fluid_dismiss")}}),
_.h("design:type",Boolean)],Ib.prototype,"enableFluidDismiss",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeThumbnailStyle(data.thumbnailStyle)"}),_.h("design:type",String)],Ib.prototype,"thumbnailStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ib.prototype,"modernTypography",void 0);_.E([_.d({computed:"computeMenuIcon(data.badges)"}),_.h("design:type",String)],Ib.prototype,"menuIcon",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ib.prototype,"onDataChange",null);_.E([_.km("yt-lockup-requested"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ib.prototype,"onLockupRequested",null);Ib=_.E([_.m({is:"ytd-shelf-renderer",disableElementRegistration:!0})],Ib);
_.Z(Ib,"ytd-shelf-renderer",function(){if(vEq!==void 0)return vEq;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shelf-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="dismissible" class="style-scope ytd-shelf-renderer">\n  <div class="grid-subheader style-scope ytd-shelf-renderer" hidden="[[data.hideHeader]]">\n    <div id="title-container" hidden="[[!data.title]]" class="style-scope ytd-shelf-renderer">\n      <h2 class="style-scope ytd-shelf-renderer">\n        <template is="dom-if" if="[[!data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n          </yt-icon>\n          <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n        </template>\n        <template is="dom-if" if="[[data.endpoint]]" class="style-scope ytd-shelf-renderer">\n          <div id="image-container" class="style-scope ytd-shelf-renderer">\n            <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" aria-hidden="true" href$="[[computeHref_(data.endpoint)]]" data="[[data.endpoint]]" tabindex="-1" title="[[getSimpleString(data.title)]]">\n              <yt-img-shadow id="avatar" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" class="style-scope ytd-shelf-renderer">\n              </yt-img-shadow>\n              <yt-icon id="icon" disable-upgrade$="[[!data.icon.iconType]]" hidden="[[!data.icon.iconType]]" icon="[[data.icon.iconType]]" class="style-scope ytd-shelf-renderer">\n              </yt-icon>\n            </a>\n            <div id="title-text" class="style-scope ytd-shelf-renderer">\n              <a class="yt-simple-endpoint style-scope ytd-shelf-renderer" href$="[[computeHrefWithDefault(data.endpoint)]]" data="[[data.endpoint]]">\n                <span id="title" class="style-scope ytd-shelf-renderer">[[getSimpleString(data.title)]]</span>\n              </a>\n              <ytd-badge-supported-renderer id="title-featured-badge" badges="[[data.badges]]" hidden="[[!computeIsPromoShelf(data.badges)]]" class="style-scope ytd-shelf-renderer">\n              </ytd-badge-supported-renderer>\n              <yt-formatted-string id="title-annotation" hidden="[[!computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n              </yt-formatted-string>\n            </div>\n          </div>\n        </template>\n        <ytd-badge-supported-renderer id="featured-badge" badges="[[data.badges]]" hidden="[[!computePlaceBadgeBesideTitle(data.badges)]]" class="style-scope ytd-shelf-renderer">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="title-annotation" hidden="[[computePlaceAnnotationUnderTitle(data)]]" text="[[data.titleAnnotation]]" class="style-scope ytd-shelf-renderer">\n        </yt-formatted-string>\n        <div id="play-button" class="style-scope ytd-shelf-renderer"></div>\n        <div id="sort-filter" class="style-scope ytd-shelf-renderer"></div>\n      </h2>\n      <div id="spacer" class="style-scope ytd-shelf-renderer"></div>\n      <div id="subscribe-button" class="style-scope ytd-shelf-renderer"></div>\n      <div id="menu" class="style-scope ytd-shelf-renderer"></div>\n    </div>\n    <yt-formatted-string id="subtitle" class="can-be-empty style-scope ytd-shelf-renderer" text="[[data.subtitle]]">\n    </yt-formatted-string>\n  </div>\n  <div id="contents" class="style-scope ytd-shelf-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-shelf-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return vEq=I},{mode:1});var x4d;var CJ=function(){return _.q.apply(this,arguments)||this};
_.R(CJ,_.q);CJ.prototype.configureRendererStamper=function(){return{"data.filterMenu":{id:"filter-menu",mapping:{sortFilterSubMenuRenderer:{component:"yt-sort-filter-sub-menu-renderer",properties:{isRightAligned:"[[isRightAligned]]"}}}}}};
_.H1.Object.defineProperties(CJ.prototype,{hasTitle:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.title)}},
isRightAligned:{configurable:!0,enumerable:!0,get:function(){return!this.isPlaylist&&!this.isClipList&&!this.isPlaylistPageWithFilters}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],CJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],CJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CJ.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],CJ.prototype,"isPlaylist",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],CJ.prototype,"isClipList",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],CJ.prototype,"isPlaylistPageWithFilters",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],CJ.prototype,"hasTitle",null);_.E([_.d(),_.v("isPlaylist","isClipList","isPlaylistPageWithFilters"),_.h("design:type",Object),_.h("design:paramtypes",[])],CJ.prototype,"isRightAligned",null);
CJ=_.E([_.m({is:"ytd-sort-filter-header-renderer",disableElementRegistration:!0})],CJ);
_.Z(CJ,"ytd-sort-filter-header-renderer",function(){if(x4d!==void 0)return x4d;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return x4d=I},{mode:1});var qxq;var s$=function(){return _.q.apply(this,arguments)||this};
_.R(s$,_.q);
s$.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]]"}}}}}};
s$.prototype.getItemsPath=function(){return"data.creatorCustomUrlButtons"};
_.H1.Object.defineProperties(s$.prototype,{creatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){if(this.data&&_.V("enable_creator_details_shelf_m2")){var I=[],C;((C=this.data)==null?0:C.creatorVideosButton)&&I.push(this.data.creatorVideosButton);var y;((y=this.data)==null?0:y.creatorAboutButton)&&I.push(this.data.creatorAboutButton);C=_.T(this.data.creatorCustomUrlButtons||[]);for(y=C.next();!y.done;y=C.next())I.push(y.value);return I}}},
showCreatorCustomUrlButtons:{configurable:!0,enumerable:!0,get:function(){return!!_.V("enable_creator_details_shelf_m2")}},
channelAvatarSize:{configurable:!0,enumerable:!0,get:function(){return this.showCreatorCustomUrlButtons?36:72}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],s$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],s$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],s$.prototype,"ytdHorizontalListBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],s$.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],s$.prototype,"engagementPanel",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],s$.prototype,"creatorCustomUrlButtons",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","creatorCustomUrlButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],s$.prototype,"showCreatorCustomUrlButtons",null);_.E([_.v("showCreatorCustomUrlButtons"),_.h("design:type",Number),_.h("design:paramtypes",[])],s$.prototype,"channelAvatarSize",null);
s$=_.E([_.m({is:"ytd-video-description-infocards-section-renderer",disableElementRegistration:!0})],s$);
_.Z(s$,"ytd-video-description-infocards-section-renderer",function(){if(qxq!==void 0)return qxq;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-description-infocards-section-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="header" class="yt-simple-endpoint style-scope ytd-video-description-infocards-section-renderer" data="[[data.channelEndpoint]]" href$="[[computeOptionalHref_(data.channelEndpoint)]]">\n  <yt-img-shadow id="thumbnail" alt="[[getSimpleString(data.sectionTitle)]]" hidden="[[!data.channelAvatar]]" thumbnail="[[data.channelAvatar]]" width="[[channelAvatarSize]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  </yt-img-shadow>\n  <div id="header-text" class="style-scope ytd-video-description-infocards-section-renderer">\n    <h3 id="title" class="style-scope ytd-video-description-infocards-section-renderer">[[getSimpleString(data.sectionTitle)]]</h3>\n    <div id="subtitle" hidden="[[!data.sectionSubtitle]]" class="style-scope ytd-video-description-infocards-section-renderer">\n      [[getSimpleString(data.sectionSubtitle)]]\n    </div>\n  </div>\n</a>\n<div id="action-buttons" hidden="[[showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="infocard-videos-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  <div id="infocard-channel-button" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n</div>\n<div id="social-links" hidden="[[!showCreatorCustomUrlButtons]]" class="style-scope ytd-video-description-infocards-section-renderer">\n  <div id="left-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="left-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="prevClick_" hidden="[[atStart]]">\n       <yt-icon icon="yt-icons:chevron_left" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n  <div id="scroll-container" class="style-scope ytd-video-description-infocards-section-renderer">\n    <div id="items" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n  </div>\n  <div id="right-arrow-container" class="arrow-container style-scope ytd-video-description-infocards-section-renderer">\n    <div id="right-arrow" class="arrow center-aligned style-scope ytd-video-description-infocards-section-renderer" on-click="nextClick_">\n       <yt-icon icon="yt-icons:chevron_right" class="style-scope ytd-video-description-infocards-section-renderer"></yt-icon>\n    </div>\n  </div>\n</div>\n<div id="infocards-section" class="style-scope ytd-video-description-infocards-section-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qxq=I},{mode:_.Ij("kevlar_poly_si_batch_j067")?1:2});var m4m;var ob=function(){return _.q.apply(this,arguments)||this};
_.R(ob,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ob.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ob.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ob.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],ob.prototype,"infoIcon",void 0);ob=_.E([_.m({is:"ytd-eom-settings-disclaimer-renderer",disableElementRegistration:!0})],ob);
_.Z(ob,"ytd-eom-settings-disclaimer-renderer",function(){if(m4m!==void 0)return m4m;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return m4m=I},{mode:1});var Z3c;var yD=function(){return _.q.apply(this,arguments)||this};
_.R(yD,_.q);_.H1.Object.defineProperties(yD.prototype,{suppressPaddingDisclaimer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.suppressPaddingDisclaimer)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],yD.prototype,"componentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],yD.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yD.prototype,"suppressPaddingDisclaimer",null);yD=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-list-header-renderer"})],yD);
_.Z(yD,"ytd-product-list-header-renderer",function(){if(Z3c!==void 0)return Z3c;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Z3c=I},{mode:1});var Bv5;var kR=function(){return _.q.apply(this,arguments)||this};
_.R(kR,_.q);kR.prototype.computeThumbnailStyle=function(I){if(I&&(I=_.lg(I)))return"background-color:"+I+";"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kR.prototype,"rendererBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],kR.prototype,"data",void 0);kR=_.E([_.m({disableElementRegistration:!0,is:"ytd-hashtag-tile-renderer"})],kR);
_.Z(kR,"ytd-hashtag-tile-renderer",function(){if(Bv5!==void 0)return Bv5;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Bv5=I},{mode:1});var EEm;var F3=function(){return _.q.apply(this,arguments)||this};
_.R(F3,_.q);F3.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.secondaryActionButton":{id:"secondary-action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],F3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],F3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],F3.prototype,"data",void 0);F3=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-alert-renderer"})],F3);
_.Z(F3,"ytd-sponsorships-alert-renderer",function(){if(EEm!==void 0)return EEm;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return EEm=I},{mode:1});var h68;var uC=function(){return _.q.apply(this,arguments)||this};
_.R(uC,_.q);uC.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer"}}},dismissedRenderer:{id:"dismissed",mapping:{notificationMultiActionRenderer:"ytd-notification-multi-action-renderer"}}}};
_.H1.Object.defineProperties(uC.prototype,{watchFeedBigThumbs:{configurable:!0,enumerable:!0,get:function(){return _.V("kevlar_watch_feed_big_thumbs")?!0:!!this.isGridViewEnabled}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isGridViewEnabled||_.V("kevlar_watch_feed_big_thumbs")?"9999":"168"}}});
_.E([_.g(_.$x),_.h("design:type",Object)],uC.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],uC.prototype,"ytdLockupBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uC.prototype,"ytRendererBehavior",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],uC.prototype,"isGridViewEnabled",void 0);
_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uC.prototype,"watchFeedBigThumbs",null);_.E([_.v("isGridViewEnabled"),_.d({reflectToAttribute:!0}),_.h("design:type",String),_.h("design:paramtypes",[])],uC.prototype,"thumbnailWidth",null);_.E([_.d(),_.h("design:type",Object)],uC.prototype,"data",void 0);uC=_.E([_.m({disableElementRegistration:!0,is:"ytd-compact-movie-renderer"})],uC);
_.Z(uC,"ytd-compact-movie-renderer",function(){if(h68!==void 0)return h68;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return h68=I},{mode:1});var U48;var H3w;var tq5=_.Aq("HTML_DIR")==="rtl",zV=function(){var I=_.q.apply(this,arguments)||this;I.engagementPanel=!1;I.maxLines=2;I.expandButtonOffset=0;I.showExpandButton=!1;I.isTruncated=!1;I.isExpanded=!1;I.currentSnippetType=2;I.alwaysShowExpandButton=!1;I.JSC$14139_lastWidth=NaN;I.observer=null;I.left=0;I.right=0;I.mid=0;I.longestSnippetLength=0;I.isFinalSnippet=!1;I.isFirstMutation=!1;I.isResetMutation=!1;I.OVERFLOW_THRESHOLD=5;return I};
_.R(zV,_.q);_.u=zV.prototype;_.u.onClick=function(I){if(this.engagementPanel&&(this.showExpandButton||this.isExpanded)&&!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;if((C=window.getSelection())==null||!C.toString().length)if(this.isExpanded)this.onCollapseClick();else this.onExpandClick()}};
_.u.updateIsAttributedExpanded=function(){this.isAttributedExpanded=this.isExpanded&&this.hasAttributedStringText};
_.u.updateIsFormattedExpanded=function(){this.isFormattedExpanded=this.isExpanded&&!this.hasAttributedStringText};
_.u.updateTextOnSnippetTypeChange=function(){_.V("update_text_inline_expander_on_snippet_type_change_killswitch")||this.isResetMutation&&this.mutationCallback()};
_.u.setUpBinarySearch=function(I){I=I*this.maxLines/8;this.left=0;var C,y;this.right=Math.min(I*2,(y=(C=this.simpleText)==null?void 0:C.length)!=null?y:0)-1;this.mid=Math.floor(this.left+(this.right-this.left)/2);this.longestSnippetLength=0};
_.u.isEmptyStringBestCandidate=function(){return!this.isResetMutation&&!this.isFirstMutation&&this.longestSnippetLength===0&&this.mid===0};
_.u.maybeLogWarningForEmptyAttributedSnippet=function(){this.attributedSnippetIsEmpty()&&!this.attributedTextIsEmpty()&&_.SN(new _.ph("AttributedSnippet is empty when the description is not empty",this.text))};
_.u.mutationCallback=function(){if(this.observer!=null){var I=this.hostElement.offsetWidth;if(this.attributedSnippetIsEmpty()){if(this.isEmptyStringBestCandidate()){var C=Math.floor(I*this.maxLines/8);this.setSnippetText(this.text,C);C!==0||this.attributedTextIsEmpty()||_.SN(new _.ph("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;I=I*this.maxLines/8;this.left=0;var y;this.right=Math.min(I*2,(y=(C=this.simpleText)==null?void 0:C.length)!=null?y: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)}}};
_.u.mutationObserve=function(I){var C=this;this.observer||(this.observer=new MutationObserver(function(){C.mutationCallback()}));
this.observer.observe(I,{childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0})};
_.u.attached=function(){var I=this;_.hn(this,function(){I.resize()})};
_.u.isExpandedChanged=function(){_.k3(this.hostElement,"yt-text-inline-expander-expanded-changed")};
_.u.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)};
_.u.updateMaskAndExpandButtonOffset=function(){if(this.isTruncated){var I="linear-gradient(\n        to top,\n        transparent 0%,\n        transparent 2rem,\n        #000 2rem,\n        #000 100%), linear-gradient(\n        to "+((tq5?"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",I);this.snippetContainer.style.setProperty("mask-image",
I)}else this.snippetContainer.style.setProperty("-webkit-mask-image",""),this.snippetContainer.style.setProperty("mask-image","");this.showExpandButton&&this.expandButton.style.setProperty(tq5?"right":"left",this.expandButtonOffset+"px")};
_.u.onTextChanged=function(){this.isAttached&&this.resize(!0)};
_.u.setSnippetText=function(I,C){I||(I={});if(_.gY(I)){var y=HdK(I,C);y.attachmentRuns||y.commandRuns||y.decorationRuns||y.styleRuns||y.alignment||y.lineBreakMode?this.attributedSnippetTextEl?(_.V("kevlar_expander_as_setter_killswitch")?(this.attributedSnippetTextEl.data=HdK(I,C),this.attributedSnippetTextEl.headerRuns=UeW(C,this.headerRuns)):this.attributedSnippetText={data:HdK(I,C),headerRuns:UeW(C,this.headerRuns)},this.currentSnippetType=0):_.SN(new _.ph("Tried to set snippet text when HTML element was null",
I)):(this.plainSnippetText.textContent=S2(I.content||"",C),this.currentSnippetType=2)}else{a:{y=TEz(I,C);if(y.runs){y=_.T(y.runs);for(var k=y.next();!k.done;k=y.next())if(k=k.value,k.bold||k.deemphasize||k.italics||k.strikethrough||k.textColor||k.navigationEndpoint||_.l(k,lU)){y=!0;break a}}y=!1}y?this.formattedSnippetText?(this.formattedSnippetText.text=TEz(I,C),this.currentSnippetType=1):_.SN(new _.ph("Tried to set snippet text when HTML element was null",I)):(this.plainSnippetText.textContent=
S2(_.hS(I),C),this.currentSnippetType=2)}};
_.u.attributedSnippetIsEmpty=function(){return this.useAttributedSnippet&&this.attributedSnippetTextEl?this.attributedSnippetTextEl.childNodes.length===0:this.plainSnippetText.childNodes.length===0};
_.u.attributedTextIsEmpty=function(){var I=this.text;if(!_.gY(I))return!0;var C;return((C=I.content)==null?void 0:C.length)===0?!0:!1};
_.u.resize=function(I){if(this.snippetText){if(I===void 0?0:I)this.JSC$14139_lastWidth=NaN;var C=this.hostElement.offsetWidth;if(C!==this.JSC$14139_lastWidth&&!this.isExpanded)if(this.JSC$14139_lastWidth=C,this.hasAttributedStringText)this.attributedSnippetIsEmpty()?(this.showExpandButton=this.alwaysShowExpandButton,this.isFinalSnippet=!1,this.isFirstMutation=!0,this.mutationObserve(this.snippetText),this.setSnippetText(this.text,Infinity)):(this.isResetMutation=!0,this.mutationObserve(this.snippetText),
this.setSnippetText(this.text,0));else if(this.setSnippetText(this.text,Infinity),this.showExpandButton=this.alwaysShowExpandButton,this.isOverflowing()){this.showExpandButton=this.isTruncated=!0;I=0;var y,k;C=Math.min(C*this.maxLines/8*2,(k=(y=this.simpleText)==null?void 0:y.length)!=null?k:0)-1;for(y=0;I<=C;)k=Math.floor(I+(C-I)/2),this.setSnippetText(this.text,k),this.isOverflowing()?C=k-1:(I=k+1,y=k);this.setSnippetText(this.text,y);this.expandButtonOffset=this.computeExpandButtonOffset()}else this.isTruncated=
!1,this.alwaysShowExpandButton&&(this.expandButtonOffset=this.computeExpandButtonOffset())}};
_.u.collapse=function(){this.isExpanded=!1;this.resize(!0)};
_.u.onExpandClick=function(){var I=this;this.expandCommand?this.componentBehavior.resolveCommand(this.expandCommand):(this.isExpanded=!0,this.showExpandButton=this.isTruncated=!1);_.V("inline_expander_reset_focus_killswitch")||_.hn(this,function(){var C;((C=_.N().resolve(_.aU(_.Du)))==null?0:C.isKeyBoardInUse())&&_.UL(I.hostElement)});
_.k3(this.hostElement,"yt-text-inline-expander-expand-clicked")};
_.u.onCollapseClick=function(){this.collapse();_.k3(this.hostElement,"yt-text-inline-expander-collapse-clicked")};
_.u.isOverflowing=function(){return this.snippetContainer.scrollHeight-this.snippetContainer.offsetHeight>this.OVERFLOW_THRESHOLD};
_.u.computeExpandButtonOffset=function(){var I=this.expandSizer;return I?tq5?I.offsetParent?I.offsetParent.offsetWidth-I.offsetWidth-I.offsetLeft:0:I.offsetLeft:0};
_.H1.Object.defineProperties(zV.prototype,{simpleText:{configurable:!0,enumerable:!0,get:function(){return this.text?_.gY(this.text)?this.text.content||"":_.hS(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 _.gY(this.text)?!0:this.text&&_.V("web_replace_formatted_with_attributed_string")&&wWW(this.text)?(this.text=_.j2(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}}});
zV.prototype.onTextChanged=zV.prototype.onTextChanged;zV.prototype.updateMaskAndExpandButtonOffset=zV.prototype.updateMaskAndExpandButtonOffset;zV.prototype.updateSnippetContainerMaxHeight=zV.prototype.updateSnippetContainerMaxHeight;zV.prototype.isExpandedChanged=zV.prototype.isExpandedChanged;zV.prototype.updateTextOnSnippetTypeChange=zV.prototype.updateTextOnSnippetTypeChange;zV.prototype.updateIsFormattedExpanded=zV.prototype.updateIsFormattedExpanded;zV.prototype.updateIsAttributedExpanded=zV.prototype.updateIsAttributedExpanded;
zV.prototype.onClick=zV.prototype.onClick;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],zV.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"text",void 0);_.E([_.d(),_.h("design:type",Array)],zV.prototype,"headerRuns",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zV.prototype,"engagementPanel",void 0);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"maxLines",void 0);
_.E([_.d(),_.h("design:type",String)],zV.prototype,"expandLabel",void 0);_.E([_.d(),_.h("design:type",String)],zV.prototype,"collapseLabel",void 0);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"expandCommand",void 0);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"expandButtonOffset",void 0);_.E([_.v("text"),_.h("design:type",String),_.h("design:paramtypes",[])],zV.prototype,"simpleText",null);
_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zV.prototype,"onClick",null);_.E([_.v("text","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"expandedText",null);_.E([_.v("headerRuns","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"expandedHeaderRuns",null);
_.E([_.v("text"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zV.prototype,"hasAttributedStringText",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zV.prototype,"showExpandButton",void 0);_.E([_.v("collapseLabel","isExpanded"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"showCollapseButton",null);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"isTruncated",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zV.prototype,"isExpanded",void 0);_.E([_.d(),_.h("design:type",Boolean)],zV.prototype,"isAttributedExpanded",void 0);_.E([_.FI("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"updateIsAttributedExpanded",null);_.E([_.d(),_.h("design:type",Boolean)],zV.prototype,"isFormattedExpanded",void 0);
_.E([_.FI("isExpanded","hasAttributedStringText"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"updateIsFormattedExpanded",null);_.E([_.d(),_.h("design:type",Number)],zV.prototype,"currentSnippetType",void 0);_.E([_.v("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"useAttributedSnippet",null);
_.E([_.v("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"useFormattedSnippet",null);_.E([_.v("currentSnippetType"),_.h("design:type",Object),_.h("design:paramtypes",[])],zV.prototype,"usePlainSnippet",null);_.E([_.d(),_.h("design:type",Object)],zV.prototype,"alwaysShowExpandButton",void 0);_.E([_.FI("currentSnippetType"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"updateTextOnSnippetTypeChange",null);
_.E([_.d(),_.h("design:type",Object)],zV.prototype,"attributedSnippetText",void 0);_.E([_.z$("#snippet"),_.h("design:type",HTMLElement)],zV.prototype,"snippetContainer",void 0);_.E([_.z$("#snippet-text"),_.h("design:type",HTMLElement)],zV.prototype,"snippetText",void 0);_.E([_.z$("#plain-snippet-text"),_.h("design:type",HTMLElement)],zV.prototype,"plainSnippetText",void 0);_.E([_.z$("#formatted-snippet-text"),_.h("design:type",Object)],zV.prototype,"formattedSnippetText",void 0);
_.E([_.z$("#attributed-snippet-text"),_.h("design:type",Object)],zV.prototype,"attributedSnippetTextEl",void 0);_.E([_.z$("#expand"),_.h("design:type",HTMLElement)],zV.prototype,"expandButton",void 0);_.E([_.z$("#expand-sizer"),_.h("design:type",HTMLElement)],zV.prototype,"expandSizer",void 0);_.E([_.rW("isExpanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"isExpandedChanged",null);
_.E([_.FI("isExpanded","maxLines"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"updateSnippetContainerMaxHeight",null);_.E([_.FI("isTruncated","showExpandButton","expandButtonOffset"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"updateMaskAndExpandButtonOffset",null);
_.E([_.rW("text","simpleText","expandLabel","maxLines","alwaysShowExpandButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zV.prototype,"onTextChanged",null);zV=_.E([_.m({is:"ytd-text-inline-expander",disableElementRegistration:!0})],zV);
_.Z(zV,"ytd-text-inline-expander",function(){if(H3w===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-text-inline-expander--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-attributed-string data="[[expandedText]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[expandedHeaderRuns]]" hidden="[[!isAttributedExpanded]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!isFormattedExpanded]]" split-lines="[[!hasAttributedStringText]]" text="[[expandedText]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string><div id="snippet" class="style-scope ytd-text-inline-expander"><span id="snippet-text" hidden="[[isExpanded]]" class="style-scope ytd-text-inline-expander"><span id="plain-snippet-text" hidden="[[!usePlainSnippet]]" class="style-scope ytd-text-inline-expander"></span><yt-attributed-string id="attributed-snippet-text" data="[[attributedSnippetText.data]]" disable-upgrade$="[[!hasAttributedStringText]]" header-runs="[[attributedSnippetText.headerRuns]]" hidden="[[!useAttributedSnippet]]" user-input="" class="style-scope ytd-text-inline-expander"></yt-attributed-string><yt-formatted-string id="formatted-snippet-text" disable-attributed-string="" disable-upgrade$="[[hasAttributedStringText]]" hidden="[[!useFormattedSnippet]]" class="style-scope ytd-text-inline-expander"></yt-formatted-string></span><span hidden="[[!showExpandButton]]" class="style-scope ytd-text-inline-expander">\u00a0</span><span id="ellipsis" hidden="[[!isTruncated]]" class="style-scope ytd-text-inline-expander">\u2026</span><tp-yt-paper-button id="expand-sizer" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]">[[expandLabel]]</tp-yt-paper-button></div><tp-yt-paper-button id="expand" class="button style-scope ytd-text-inline-expander" hidden="[[!showExpandButton]]" on-click="onExpandClick">[[expandLabel]]</tp-yt-paper-button><slot name="extra-content" class="style-scope ytd-text-inline-expander"></slot><tp-yt-paper-button id="collapse" class="button style-scope ytd-text-inline-expander" hidden="[[!showCollapseButton]]" on-click="onCollapseClick">[[collapseLabel]]</tp-yt-paper-button>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);H3w=I}I=H3w;return I},{mode:2});var TV=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-description-action":"handleUpdateDescriptionAction"};return I};
_.R(TV,_.q);TV.prototype.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inlineExpander&&(this.inlineExpander.isExpanded=!1,this.inlineExpander.resize())};
TV.prototype.handleUpdateDescriptionAction=function(I){if(I=_.l(I,_.Y7q))if(I.attributedDescription)this.set("data.attributedDescriptionBodyText",I.attributedDescription);else if(I.description){var C;((C=this.data)==null?0:C.attributedDescriptionBodyText)?this.set("data.attributedDescriptionBodyText",_.j2(I.description)):this.set("data.descriptionBodyText",I.description)}};
_.H1.Object.defineProperties(TV.prototype,{hasDescriptionText:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.attributedDescriptionBodyText)||!((C=this.data)==null||!C.descriptionBodyText)}},
collapsedLines:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.collapsedLineCount){var C;return(C=this.data)==null?void 0:C.collapsedLineCount}I=_.s8("web_watch_description_collapsed_default_lines",12);if(_.V("ww_desc_line_page_size_ks"))return I;C=Math.round(_.np().height*_.s8("web_watch_description_screen_height_percentage",.5)/20);return Math.max(C,I)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return(y=(I=this.data)==null?void 0:I.descriptionBodyText)!=null?y:(C=this.data)==null?void 0:C.attributedDescriptionBodyText}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.headerRuns}},
sourceAttributions:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.sourceAttributions}}});
TV.prototype.panelContentVisibleChanged=TV.prototype.panelContentVisibleChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],TV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],TV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],TV.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],TV.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Boolean)],TV.prototype,"panelContentVisible",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],TV.prototype,"engagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],TV.prototype,"shortsPanel",void 0);_.E([_.z$("#inline-expander"),_.h("design:type",Object)],TV.prototype,"inlineExpander",void 0);
_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TV.prototype,"panelContentVisibleChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],TV.prototype,"hasDescriptionText",null);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],TV.prototype,"collapsedLines",null);
_.E([_.v("data","data.descriptionBodyText","data.attributedDescriptionBodyText"),_.h("design:type",Object),_.h("design:paramtypes",[])],TV.prototype,"descriptionText",null);_.E([_.v("data","data.headerRuns"),_.h("design:type",Object),_.h("design:paramtypes",[])],TV.prototype,"headerRuns",null);_.E([_.v("data","data.sourceAttributions"),_.h("design:type",Object),_.h("design:paramtypes",[])],TV.prototype,"sourceAttributions",null);
TV=_.E([_.m({is:"ytd-expandable-video-description-body-renderer",disableElementRegistration:!0})],TV);
_.Z(TV,"ytd-expandable-video-description-body-renderer",function(){if(U48!==void 0)return U48;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-video-description-body-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-text-inline-expander id="inline-expander" collapse-label="[[getSimpleString(data.showLessText)]]" engagement-panel="[[engagementPanel]]" expand-label="[[getSimpleString(data.showMoreText)]]" header-runs="[[headerRuns]]" max-lines="[[collapsedLines]]" text="[[descriptionText]]" class="style-scope ytd-expandable-video-description-body-renderer">\n</ytd-text-inline-expander>\n<div id="source-attributions-wrapper" engagement-panel="[[engagementPanel]]" class="style-scope ytd-expandable-video-description-body-renderer">\n<template is="dom-repeat" items="[[sourceAttributions]]" as="sourceAttribution" class="style-scope ytd-expandable-video-description-body-renderer">\n  <yt-attributed-string class="source-attribution style-scope ytd-expandable-video-description-body-renderer" data="[[sourceAttribution]]" link-inherit-color="">\n  </yt-attributed-string>\n  </template>\n</div>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return U48=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var JOw;var O3b=_.BO(function(I){var C=I.data;return _.P("factoid-renderer",{class:"ytwFactoidRendererHost"},_.P("div",{class:"ytwFactoidRendererFactoid",role:"text","aria-label":function(){return C().accessibilityText}},_.P("span",{class:"ytwFactoidRendererValue"},_.P(_.wh,{text:function(){return C().value}})),_.P("span",{class:"ytwFactoidRendererLabel"},_.P(_.wh,{text:function(){return C().label}}))))},"Cb");_.B9(O3b,"factoid-renderer",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;return _.P("upload-time-factoid-renderer",null,_.P(_.lY,{data:function(){return C().factoid}},{factoidRenderer:O3b}))},"Db"),"upload-time-factoid-renderer",{props:{data:_.Z_}});_.B9(_.BO(function(I){var C=I.data;return _.P("view-count-factoid-renderer",null,_.P(_.lY,{data:function(){return C().factoid}},{factoidRenderer:O3b}))},"Eb"),"view-count-factoid-renderer",{props:{data:_.Z_}});var cL=function(){var I=_.q.apply(this,arguments)||this;I.shortsPanel=!1;I.engagementPanel=!1;I.watchWhileSdp=_.V("shorts_desktop_watch_while_sdp");return I};
_.R(cL,_.q);cL.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"}}}}};
_.H1.Object.defineProperties(cL.prototype,{showChannelInfo:{configurable:!0,enumerable:!0,get:function(){if(this.shortsPanel||this.engagementPanel)return!1;var I;return(I=this.data)==null?void 0:I.channel}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],cL.prototype,"componentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cL.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cL.prototype,"shortsPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cL.prototype,"engagementPanel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cL.prototype,"watchWhileSdp",void 0);_.E([_.v("shortsPanel","engagementPanel","data.channel"),_.h("design:type",Object),_.h("design:paramtypes",[])],cL.prototype,"showChannelInfo",null);cL=_.E([_.m({is:"ytd-video-description-header-renderer",disableElementRegistration:!0})],cL);
_.Z(cL,"ytd-video-description-header-renderer",function(){if(JOw!==void 0)return JOw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return JOw=I},{mode:1});var aPc;var em=function(){return _.q.apply(this,arguments)||this};
_.R(em,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],em.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],em.prototype,"ytRendererBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],em.prototype,"noPadding",void 0);_.E([_.d(),_.h("design:type",Object)],em.prototype,"data",void 0);em=_.E([_.m({disableElementRegistration:!0,is:"ytd-list-item-view-model"})],em);
_.Z(em,"ytd-list-item-view-model",function(){if(aPc!==void 0)return aPc;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return aPc=I},{mode:1});var Mqb;var IOw;var Ccq;var svu;var rB=function(){var I=_.q.apply(this,arguments)||this;I.adaptiveFullWidth=!1;I.modernButtons=_.V("web_modern_buttons");I.buttonOverrides={style:"call-to-action",type:"filled"};I.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp_","yt-signal-action-copy-share-url":"handleSignalActionCopyShareUrl_"};return I};
_.R(rB,_.q);rB.prototype.handleSetTimestamp_=function(I){this.data&&this.data.shortUrl&&(_.f(this.hostElement).querySelector("#share-url").value=I.isSet?_.Vx(this.data.shortUrl,"t",I.timestamp):this.data.shortUrl)};
rB.prototype.handleSignalActionCopyShareUrl_=function(I,C){(_.V("killswitch_copy_link_target_check")||_.f(this.hostElement).querySelector("#copy-button")===C)&&this.copyUrlToClipboard()};
rB.prototype.copyUrlToClipboard=function(){window.getSelection().removeAllRanges();_.f(this.hostElement).querySelector("#share-url").select();document.execCommand("copy")};
rB.prototype.computeStyle_=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],rB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rB.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle_(data.style)"}),_.h("design:type",String)],rB.prototype,"rendererStyle",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rB.prototype,"adaptiveFullWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rB.prototype,"modernButtons",void 0);_.E([_.d(),_.h("design:type",Object)],rB.prototype,"buttonOverrides",void 0);rB=_.E([_.lT({is:"yt-copy-link-renderer",disableElementRegistration:!0})],rB);
_.Z(rB,"yt-copy-link-renderer",function(){if(svu===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Ccq===void 0&&(Ccq=document.createElement("template"));var k=Ccq;y.call(C,k.content.cloneNode(!0),I.content.firstChild);svu=I}I=svu;return I},{mode:2});_.jz("itemSectionRenderer","toggleFormFieldRenderer","yt-toggle-form-field-renderer");var iC=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-toggle-action":"handleUpdateToggleAction_"};return I};
_.R(iC,_.q);_.u=iC.prototype;_.u.configureRendererStamper=function(){return{"data.footer":{id:"footer-container",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}}}};
_.u.attached=function(){this.keyboardFocused=!1};
_.u.onToggleButtonFocusin_=function(){if(this.useKeyboardFocused){var I=_.N().resolve(_.aU(_.Du));I&&(this.keyboardFocused=I.isKeyBoardInUse())}};
_.u.onToggleButtonFocusout_=function(){this.keyboardFocused=!1};
_.u.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}};
_.u.onChange_=function(){if(this.data){var I=this.data.toggled?this.data.toggleOnAction:this.data.toggleOffAction;I&&this.ytComponentBehavior.resolveCommand(I);this.data.requireChangeConfirmation&&this.set("data.toggled",!this.data.toggled)}};
_.u.handleUpdateToggleAction_=function(I){(I=_.l(I,UYq))&&this.data&&I.targetId==this.data.targetId&&this.set("data.toggled",I.toggled)};
_.u.toBoolean_=function(I){return!!I};
_.u.reset=function(){};
_.u.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("data-changed",this.data))};
_.u.updateDataToggledFromBinding=function(I){this.set("data.toggled",I.detail.value)};
iC.prototype.dataChangedForBinding=iC.prototype.dataChangedForBinding;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],iC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],iC.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iC.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],iC.prototype,"data",void 0);_.E([_.d({computed:"computeDescription_(data.*)"}),_.h("design:type",Object)],iC.prototype,"description_",void 0);_.E([_.d({value:function(){return!!_.N().resolve(_.aU(_.Du))&&_.V("kevlar_keyboard_button_focus")},
reflectToAttribute:!0}),_.h("design:type",Boolean)],iC.prototype,"useKeyboardFocused",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],iC.prototype,"keyboardFocused",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iC.prototype,"dataChangedForBinding",null);iC=_.E([_.lT({is:"yt-toggle-form-field-renderer",disableElementRegistration:!0})],iC);
_.Z(iC,"yt-toggle-form-field-renderer",function(){if(IOw===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Mqb===void 0&&(Mqb=document.createElement("template"));var k=Mqb;y.call(C,k.content.cloneNode(!0),I.content.firstChild);IOw=I}I=IOw;return I},{mode:2});var oe5;var yd0;var wB=function(){var I=_.q.apply(this,arguments)||this;I.isDarkTheme=!1;I.isSearch=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.noTopMargin=_.V("kevlar_watch_no_top_margin");I.maskFade=_.V("web_watch_chips_mask_fade");I.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 I};
_.R(wB,_.q);_.u=wB.prototype;_.u.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}}}}}};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.isSearchChanged=function(){this.hostElement.setAttribute("id",this.isSearch?"search-chip-bar":"")};
_.u.dataChanged=function(){var I=this.getSelectedIndex();if(I>0)this.selected=I;else{this.selected=0;var C,y;(C=this.ytScrollableChipCloudBehavior)==null||(y=C.reset)==null||y.call(C)}};
_.u.getSelectedIndex=function(){var I;if((I=this.data)==null||!I.chips)return-1;I=-1;for(var C,y=0;y<((C=this.data)==null?void 0:C.chips.length);y++){var k=void 0,F=void 0;if((k=this.data)==null?0:(F=k.chips[y].chipCloudChipRenderer)==null?0:F.isSelected){I=y;break}}return I};
_.u.onResize=function(){var I=this.ytScrollableChipCloudBehavior;_.hn(I,I.setContainerWidthDiff);aK(this.ytScrollableChipCloudBehavior)};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.handleRelatedChipCommand=function(I,C){I=this.JSC$14166_chipsSelector.indexOf(C);I!==-1&&this.JSC$14166_chipsSelector.selectIndex(I)};
_.u.handleChipCloudChipSelectAction=function(I){I=this.JSC$14166_chipsSelector.indexOf(I);I>-1&&this.JSC$14166_chipsSelector.selectIndex(I)};
_.u.handleChipCloudChipDeselectAction=function(){var I=this.get("chips.0.chipCloudChipRenderer.navigationEndpoint",this.data);this.JSC$14166_chipsSelector&&((I==null?0:I.continuationCommand)?_.Tg(this.hostElement,[I]):(I==null?0:I.searchEndpoint)?this.ytComponentBehavior.resolveCommand(I):I&&_.cQ(this.hostElement,[I],this.hostElement),this.JSC$14166_chipsSelector.selectIndex(0),this.ytScrollableChipCloudBehavior.reset())};
_.u.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
wB.prototype.onResize=wB.prototype.onResize;wB.prototype.dataChanged=wB.prototype.dataChanged;wB.prototype.isSearchChanged=wB.prototype.isSearchChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],wB.prototype,"actionHandlerBehavior",void 0);
_.E([_.g(_.Ri),_.h("design:type",Object)],wB.prototype,"ironResizableBehavior",void 0);_.E([_.g(),_.h("design:type",OE)],wB.prototype,"ytScrollableChipCloudBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],wB.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wB.prototype,"data",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],wB.prototype,"selected",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wB.prototype,"isDarkTheme",void 0);_.E([_.d({value:160}),_.h("design:type",Number)],wB.prototype,"scrollDistance",void 0);_.E([_.d(),_.h("design:type",Object)],wB.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wB.prototype,"darkerDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wB.prototype,"noTopMargin",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wB.prototype,"maskFade",void 0);_.E([_.z$("#chips"),_.h("design:type",Object)],wB.prototype,"JSC$14166_chipsSelector",void 0);_.E([_.FI("isSearch"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wB.prototype,"isSearchChanged",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wB.prototype,"dataChanged",null);
_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wB.prototype,"onResize",null);wB=_.E([_.lT({is:"yt-chip-cloud-renderer",disableElementRegistration:!0})],wB);
_.Z(wB,"yt-chip-cloud-renderer",function(){if(yd0===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;oe5===void 0&&(oe5=document.createElement("template"));var k=oe5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);yd0=I}I=yd0;return I},{mode:2});var kac,FKw=function(){return kac!==void 0?kac:kac=document.createElement("template")};
document.head.appendChild(FKw().content);var ufb;var zIq=document.head,TmS=zIq.appendChild,cd8;if(ufb===void 0){var eI5=document.createElement("template");_.Y(eI5,"");eI5.content.insertBefore(FKw().content.cloneNode(!0),eI5.content.firstChild);ufb=eI5}cd8=ufb;TmS.call(zIq,cd8.content);var rdS=_.BO(function(I){var C=I.data;return _.P("offer-plan-details-item-view-model",{class:"ytOfferPlanDetailsItemViewModelHost"},_.P("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContainer"},_.P("div",{class:"ytOfferPlanDetailsItemViewModelOfferPlanDetailsItemContent"},_.P(_.Dx,{cond:function(){return _.J9(C().image)},
then:function(y){return _.P("div",{class:"ytOfferPlanDetailsItemViewModelLogo"},_.P(_.x$,{data:y,alt:"",className:"ytOfferPlanDetailsItemViewModelLogoImage"}))}}),_.P("div",{class:"ytOfferPlanDetailsItemViewModelTitleText"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytOfferPlanDetailsItemViewModelSubtitleText"},_.P(_.wh,{text:function(){return C().subtitle}})))),_.P(_.Dx,{cond:function(){var y;
return(y=C())==null?void 0:y.hasBottomDivider},
then:function(){return _.P("div",{class:"ytOfferPlanDetailsItemViewModelDivider"})}}))},"Fb");var iSc=_.BO(function(I){var C=I.data;return _.P("offer-plan-details-container-view-model",{class:"ytOfferPlanDetailsContainerViewModelHost"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanContainer"},_.P(_.lY,{data:function(){var y;return(y=C().offerPlanDetailsItem)!=null?y:[]}},{offerPlanDetailsItemViewModel:function(y){return _.P("div",{class:"ytOfferPlanDetailsContainerViewModelOfferPlanDetailsItemContainer"},_.P(rdS,{data:y.data}))}})),_.P("div",null,_.P(_.Dx,{cond:function(){return C().hasBottomDivider},
then:function(){return _.P("div",{class:"ytOfferPlanDetailsContainerViewModelDividerContainer"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}),_.P("div",{class:"ytOfferPlanDetailsContainerViewModelAddIconContainer"},_.P("div",{class:"ytOfferPlanDetailsContainerViewModelAddIcon"},"+")),_.P("div",{class:"ytOfferPlanDetailsContainerViewModelDivider"}))}})))},"Gb");var wcw=_.BO(function(I){var C=I.data;I=_.T(_.c4(!1,void 0,"SpEGQd"));var y=I.next().value,k=I.next().value,F=_.uk(function(){k(!y());return!1}),z=function(){var c;
return(c=C().offerPlanDetailsContainer)!=null?c:[]};
return _.P("lp-complex-offer-card-details-view-model",null,_.P("div",null,_.P(_.Dx,{cond:function(){return y()},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandedDetails"},_.P("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelExpandedTitle","on:click":F,"aria-expanded":y},_.P(_.wh,{text:function(){return C().expandedTitle}})),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainers"},_.P(_.lY,{data:z},{offerPlanDetailsContainerViewModel:function(c){return _.P("div",{class:"ytLpComplexOfferCardDetailsViewModelOfferPlanDetailsContainer"},
_.P(iSc,{data:c.data}))}})),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelLegalText"},_.P(_.wh,{text:function(){return C().legalText}})))},
else:function(){return _.P("div",{role:"button",class:"ytLpComplexOfferCardDetailsViewModelCollapsedDetails","on:click":F,"aria-expanded":y},_.P(_.wh,{text:function(){return C().collapsedTitle}}),_.P("div",{class:"ytLpComplexOfferCardDetailsViewModelExpandIconContainer"},_.P(_.ez,{icon:"EXPAND_MORE".toString(),
ariaHidden:!0})))}})))},"Hb");var neP=_.BO(function(I){var C=I.data;return _.P("lp-complex-offer-card-option-view-model",null,_.P("div",{class:"ytLpComplexOfferCardOptionViewModelCardContainer"},_.P(_.Dx,{cond:function(){return C().planPricingPrimary},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingPrimary"},_.P(_.wh,{text:function(){return C().planPricingPrimary}}))}}),_.P(_.Dx,{cond:function(){return C().planPricingSecondary},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPlanPricingSecondary"},_.P(_.wh,{text:function(){return C().planPricingSecondary}}))}}),_.P(_.Dx,{cond:function(){return C().primaryButton},
then:function(){return _.P("div",{class:"ytLpComplexOfferCardOptionViewModelPrimaryButtonContainer"},_.P(_.lY,{data:function(){return C().primaryButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytLpComplexOfferCardOptionViewModelPrimaryButton"})}}))}})))},"Ib");var PcS=_.BO(function(I){var C=I.data;var y=function(){var z;return((z=C())==null?void 0:z.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
I={};var k={},F={};return _.P("ytm-lp-complex-offer-card-view-model",null,_.P("div",{class:"ytmLpComplexOfferCardViewModelHost"},_.P("div",{class:_.sZ((I.ytmLpComplexOfferCardViewModelCardContainerAlignLeft=y,I),"ytmLpComplexOfferCardViewModelCardContainer")},_.P(_.Dx,{cond:function(){var z;return(z=C())==null?void 0:z.bannerText},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelBannerTextContainer"},_.P("div",{class:"ytmLpComplexOfferCardViewModelBannerText"},_.P(_.wh,{text:function(){return C().bannerText}})))}}),_.P(_.Dx,{cond:function(){return _.J9(C().logo)},
then:function(z){var c={};return _.P("div",{class:_.sZ((c.ytmLpComplexOfferCardViewModelLogoAlignLeft=y,c),"ytmLpComplexOfferCardViewModelLogo")},_.P(_.x$,{data:z,alt:"",className:"ytmLpComplexOfferCardViewModelLogoImage"}))}}),_.P("div",{class:_.sZ((k.ytmLpComplexOfferCardViewModelTitleAlignLeft=y,k),"ytmLpComplexOfferCardViewModelTitle")},_.P(_.wh,{text:function(){return C().title}})),_.P(_.Dx,{cond:function(){var z;
return(z=C())==null?void 0:z.subtitle},
then:function(){var z={};return _.P("div",{class:_.sZ((z.ytmLpComplexOfferCardViewModelSubtitleAlignLeft=y,z),"ytmLpComplexOfferCardViewModelSubtitle")},_.P(_.wh,{text:function(){return C().subtitle}}))}}),_.P(_.Dx,{cond:function(){return C().planPricingPrimary},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingPrimary"},_.P(_.wh,{text:function(){return C().planPricingPrimary}}))}}),_.P(_.Dx,{cond:function(){return C().planPricingSecondary},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPlanPricingSecondary"},_.P(_.wh,{text:function(){return C().planPricingSecondary}}))}}),_.P(_.Dx,{cond:function(){return C().purchaseButton},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelPurchaseButtonContainer"},_.P(_.lY,{data:function(){return C().purchaseButton}},{buttonViewModel:function(z){return _.P(_.fM,{data:z.data,
className:"ytmLpComplexOfferCardViewModelPurchaseButton"})}}))}}),_.P(_.Dx,{cond:function(){var z;
return(z=C())==null?void 0:z.offerOptions},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelOfferOptions"},_.P(_.lY,{data:function(){return C().offerOptions}},{lpComplexOfferCardOptionViewModel:neP}))}}),_.P("div",{class:_.sZ((F.ytmLpComplexOfferCardViewModelLegalTextAlignLeft=y,F),"ytmLpComplexOfferCardViewModelLegalText")},_.P(_.wh,{text:function(){return C().legalText}})),_.P(_.Dx,{cond:function(){var z;
return(z=C())==null?void 0:z.offerCardDetails},
then:function(){return _.P("div",{class:"ytmLpComplexOfferCardViewModelOfferCardDetails"},_.P(_.lY,{data:function(){return C().offerCardDetails}},{lpComplexOfferCardDetailsViewModel:wcw}))}}))))},"Jb");var LKe=_.BO(function(I){var C=I.data;var y=function(){var c;return((c=C())==null?void 0:c.alignSelf)==="LP_OFFER_TABLE_ALIGNMENT_START"||!1};
I={};var k={},F={},z={};return _.P("ytm-lp-complex-offer-card-section-view-model",null,_.P("div",{class:_.sZ("ytmLpComplexOfferCardSectionViewModelHost")},_.P("div",{class:_.sZ((I.ytmLpComplexOfferCardSectionViewModelSectionContainerAlignLeft=y,I),"ytmLpComplexOfferCardSectionViewModelSectionContainer")},_.P("div",{class:_.sZ((k.ytmLpComplexOfferCardSectionViewModelTitleContainerAlignLeft=y,k),"ytmLpComplexOfferCardSectionViewModelTitleContainer")},_.P("h2",{class:_.sZ((F.ytmLpComplexOfferCardSectionViewModelTitleTextAlignLeft=
y,F),"ytmLpComplexOfferCardSectionViewModelTitleText")},_.P(_.wh,{text:function(){return C().title}}))),_.P(_.Dx,{cond:function(){var c;
return(c=C())==null?void 0:c.subtitle},
then:function(){var c={},r={};return _.P("div",{class:_.sZ((c.ytmLpComplexOfferCardSectionViewModelSubtitleContainerAlignLeft=y,c),"ytmLpComplexOfferCardSectionViewModelSubtitleContainer")},_.P("div",{class:_.sZ((r.ytmLpComplexOfferCardSectionViewModelSubtitleTextAlignLeft=y,r),"ytmLpComplexOfferCardSectionViewModelSubtitleText")},_.P(_.wh,{text:function(){return C().subtitle}})))}}),_.P("div",{class:_.sZ((z.ytmLpComplexOfferCardSectionViewModelOfferCardsContainerAlignLeft=y,z),"ytmLpComplexOfferCardSectionViewModelOfferCardsContainer")},
_.P(_.lY,{data:function(){var c;
return(c=C().offerPlans)!=null?c:[]}},{lpComplexOfferCardViewModel:function(c){return _.P("div",{class:"ytmLpComplexOfferCardSectionViewModelOfferCardContainer"},_.P(PcS,{data:c.data}))}})))))},"Kb");_.Gx=zwb.getInstance();var Dgw=_.BO(function(I){return _.P("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-question","aria-hidden":I.shouldAriaHideContent},_.P("h2",{class:"yt-lp-faq-entry-view-model__lp-faq-question",id:I.questionId},_.P(_.wh,{text:I.question})))},"Lb"),pcS=_.BO(function(I){var C=I.data;
var y=I.themeOverride;I=_.T(_.c4(!1,void 0,"ljTVPd"));var k=I.next().value,F=I.next().value;I=_.uk(function(){F(!k());return!1});
var z=function(){return k()?"EXPAND_LESS":"EXPAND_MORE"},c=("faq-container"+_.YX(_.Gx)).toString(),r="faq-question-and-answers-section-question"+_.YX(_.Gx),w={},L={};
return _.P("faq-entry-view-model-c3",null,_.P("div",{class:_.sZ("yt-lp-faq-entry-view-model",(w["yt-lp-faq-entry-view-model--premium-force-dark-mode"]=function(){return y==null?void 0:y().useDarkTheme},w))},_.P("div",{class:"yt-lp-faq-entry-view-model__faq-question-and-answers-section",
"on:click":I,role:"button","aria-expanded":k,"aria-labelledby":r.toString(),"tab-index":"0"},_.P(Dgw,{question:function(){return C().question},
questionId:r,shouldAriaHideContent:!0}),_.P(_.Dx,{cond:function(){return k()!==void 0},
then:function(){return _.P("div",{class:"yt-lp-faq-entry-view-model__icon-container"},_.P(_.ez,{icon:z,ariaHidden:!0}),_.P("div",{class:"yt-lp-faq-entry-view-model__icon-hover-highlighting"}))}})),_.P("div",{class:_.sZ("yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer",(L["yt-lp-faq-entry-view-model__lp-faq-section-faqs-outer-answer--collapsed"]=function(){return!k()},L))},_.P("div",{id:c},_.P(_.pH,{each:function(){return C().answers||[]}},function(D){return _.P("div",{class:"yt-lp-faq-entry-view-model__lp-faq-section-faqs-answer"},
_.P(_.wh,{text:D}))})))))},"Mb");
pcS.idomCompat=!0;var Qvc=_.BO(function(I){var C=I.data;var y=I.themeOverride;I={};return _.P("lp-faq-section-view-model-c3",null,_.P("div",{class:_.sZ("yt-lp-faq-section-view-model",(I["yt-lp-faq-section-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},I["yt-lp-faq-section-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},I))},_.P("div",{class:"yt-lp-faq-section-view-model__faq-container"},_.P(_.Dx,{cond:function(){return C().header},
then:function(k){return _.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-header"},_.P(_.wh,{text:k}))}}),_.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-faqs"},_.P(_.lY,{data:function(){return C().faqs}},{faqEntryViewModel:function(k){return _.P(pcS,{data:k.data,
themeOverride:y})}})),_.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-footers"},_.P(_.pH,{each:function(){return C().footers||[]}},function(k){return _.P(_.wh,{text:k})})),_.P(_.Dx,{cond:function(){return C().legal},
then:function(k){return _.P("div",{class:"yt-lp-faq-section-view-model__lp-faq-section-legal"},_.P(_.wh,{text:k}))}}))))},"Nb");
Qvc.idomCompat=!0;var Nm5=_.BO(function(I){var C=I.data;var y=I.themeOverride;_.RU(function(){var c=C().gtmId;c&&_.rx(c,_.Aq("GL",""))});
var k={contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,r,w;return(w=(c=C().logo)==null?void 0:(r=c.accessibilityData)==null?void 0:r.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"lp-header-section-view-model__lp-header-logo",useWidth:!1},F=_.N().resolve(_.aU(_.AE)),z=function(){return F&&F()||(y==null?void 0:y().useDarkTheme)};
return _.P("lp-header-section-view-model",null,_.P("div",{class:function(){var c=C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC",r=C().marginType==="LP_SECTION_MARGIN_TYPE_TOP",w=y==null?void 0:y().useDarkTheme,L=["lp-header-section-view-model"];c&&L.push("lp-header-section-view-model--ptc-layout-type");r&&L.push("lp-header-section-view-model__lp-header-section-margin");w&&L.push("lp-header-section-view-model--premium-force-dark-mode");return L.join(" ")}},_.P(_.Dx,{cond:function(){return C().logo},
then:function(){return _.P("div",null,_.P(_.Dx,{cond:z,then:function(){return _.P(_.Dx,{cond:function(){var c;return(c=C().logo)==null?void 0:c.imageDark},
then:function(c){return _.P(_.x$,Object.assign({},{data:c},k))}})},
else:function(){return _.P(_.Dx,{cond:function(){var c;return(c=C().logo)==null?void 0:c.imageLight},
then:function(c){return _.P(_.x$,Object.assign({},{data:c},k))}})}}))}}),_.P(_.Dx,{cond:function(){return C().title},
then:function(c){return _.P("div",{class:"lp-header-section-view-model__lp-header-title"},_.P(_.wh,{text:c}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-subtitle-section"},_.P(_.Dx,{cond:function(){return C().subtitles},
then:function(c){return _.P(_.pH,{each:c},function(r){return _.P("div",{class:"lp-header-section-view-model__lp-header-subtitle-line"},_.P(_.wh,{text:r}))})}})),_.P(_.Dx,{cond:function(){return C().additionalInfo},
then:function(c){return _.P("div",{class:"lp-header-section-view-model__lp-header-additional-info"},_.P(_.wh,{text:c}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-button-section"},_.P(_.Dx,{cond:function(){return C().primaryButton},
then:function(c){return _.P("div",{class:"lp-header-section-view-model__lp-header-primary-button"},_.P(_.lY,{data:c},{buttonViewModel:_.fM}))}}),_.P(_.Dx,{cond:function(){return C().secondaryButton},
then:function(c){return _.P("div",{class:"lp-header-section-view-model__lp-header-secondary-button"},_.P(_.lY,{data:c},{buttonViewModel:_.fM}))}})),_.P(_.Dx,{cond:function(){return C().otherOffersInfo},
then:function(c){return _.P("div",{class:"lp-header-section-view-model__lp-header-other-offers-info"},_.P(_.wh,{text:c}))}}),_.P("div",{class:"lp-header-section-view-model__lp-header-billing-info"},_.P(_.Dx,{cond:function(){return C().billingInfo},
then:function(c){return _.P(_.pH,{each:c},function(r){return _.P("div",null,_.P(_.wh,{text:r}))})}}))))},"Ob");
Nm5.idomCompat=!0;var VCu=_.BO(function(I){var C=I.data;var y=_.mh(I.themeOverride,{useDarkTheme:!1});I={};I=_.sZ("ytm-lp-headline-section-view-model",(I["ytm-lp-headline-section-view-model--premium-force-dark-mode"]=function(){return y().useDarkTheme},I));
return _.P("lp-headline-section-view-model",null,_.P("div",{class:I},_.P("div",{class:"ytm-lp-headline-section-view-model__title-text"},_.P(_.wh,{text:function(){return C().title}})),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(k){return _.P("div",{class:"ytm-lp-headline-section-view-model__subtitle-text"},_.P(_.wh,{text:k}))}})))},"Pb");var jvb=_.BO(function(I){var C=I.data;var y=I.themeOverride;var k=_.N().resolve(_.aU(_.AE)),F=function(){return k&&k()||(y==null?void 0:y().useDarkTheme)},z=function(){var L,D;
var p=F()?(L=C().textBackgroundImage)==null?void 0:L.imageDark:(D=C().textBackgroundImage)==null?void 0:D.imageLight;return PCz((p==null?void 0:p.sources)||[])},c=function(){var L,D;
return F()?(L=C().featureImage)==null?void 0:L.imageDark:(D=C().featureImage)==null?void 0:D.imageLight},r=function(){return C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC"?"CONTENT_MODE_SCALE_ASPECT_FILL":"CONTENT_MODE_SCALE_ASPECT_FIT"},w=function(){var L,D;
return F()?(L=C().logo)==null?void 0:L.imageDark:(D=C().logo)==null?void 0:D.imageLight};
return _.P("ytm-lp-large-feature-section-view-model",null,_.P("div",{class:function(){var L=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_MUSIC",D=C().featureType==="LP_LARGE_FEATURE_SECTION_TYPE_PTC",p=(C().index||0)%2===1,Q=y==null?void 0:y().useDarkTheme,X=["yt-lp-large-feature-section-view-model"];L?X.push("yt-lp-large-feature-section-view-model--music-feature-type"):D?X.push("yt-lp-large-feature-section-view-model--ptc-feature-type"):p||X.push("yt-lp-large-feature-section-view-model--block-feature-type-2");
Q&&X.push("yt-lp-large-feature-section-view-model--premium-force-dark-mode");return X.join(" ")}},_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container"},_.P(_.Dx,{cond:c,
then:function(){return _.P(_.x$,{data:function(){return c()},
alt:function(){var L,D,p;return(p=(L=C().featureImage)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label)!=null?p:""},
contentMode:r})}})),_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-container",
style:function(){var L;return((L=z())==null?0:L.url)?"background-image: url("+_.ra(z().url)+");":""}},_.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-text-container"},_.P(_.Dx,{cond:w,
then:function(){return _.P(_.x$,{data:function(){return w()},
alt:function(){var L,D,p;return(p=(L=C().logo)==null?void 0:(D=L.accessibilityData)==null?void 0:D.label)!=null?p:""},
contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",targetWidth:138,targetHeight:20,preserveWidth:!0,preserveHeight:!0,className:"yt-lp-large-feature-section-view-model__lp-large-feature-section-logo"})}}),_.P(_.Dx,{cond:function(){return C().eyebrowText},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-eyebrow-text"},_.P(_.wh,{text:function(){return C().eyebrowText}}))}}),_.P(_.Dx,{cond:function(){return C().title},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-title"},_.P(_.wh,{text:function(){return C().title}}))}}),_.P(_.Dx,{cond:function(){return C().subtitles},
then:function(){return _.P("div",{class:"yt-lp-large-feature-section-view-model__lp-large-feature-section-subtitles"},_.P(_.pH,{each:function(){return C().subtitles||[]}},function(L){return _.P(_.wh,{text:L})}))}})))))},"Qb");
jvb.idomCompat=!0;var lOb=_.BO(function(I){return _.P("yt-lp-feature-list-item-view-model",{class:"ytLpFeatureListItemViewModelHost"},_.P("div",{class:"ytLpFeatureListItemViewModelFeatureList"},_.P(_.ez,{icon:function(){var C;return(C=I.data())==null?void 0:C.iconType},
className:function(){var C;return((C=I.data())==null?void 0:C.style)==="LP_FEATURE_LIST_ITEM_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytLpFeatureListItemViewModelFeatureListIconGreen":"ytLpFeatureListItemViewModelFeatureListIconDefault"}}),_.P("div",{class:"ytLpFeatureListItemViewModelFeatureListText"},_.P(_.wh,{text:function(){var C;
return(C=I.data())==null?void 0:C.text}}))))},"Rb");var Xcb=_.BO(function(I){I=_.ZB(I,{config:void 0,themeOverride:void 0});var C=I.data,y=I.config,k=I.themeOverride;I={};I=_.sZ("ytm-lp-offer-card-option-view-model",(I["ytm-lp-offer-card-option-view-model--premium-force-dark-mode"]=function(){var w;return(w=k())==null?void 0:w.useDarkTheme},I));
var F=_.uk(function(){var w,L;(w=y())==null||(L=w.handleRadioButtonClick)==null||L.call(w,C());return!1}),z=function(){var w;
return(w=y())==null?void 0:w.shouldDisplayRadioButton},c=_.uk(function(){if(z()){var w,L;
(w=y())==null||(L=w.handleRadioButtonClick)==null||L.call(w,C())}return!1}),r=function(){var w;
return(w=C().featureListItems)!=null?w:[]};
return _.P("ytm-lp-offer-card-option-view-model",null,_.P("div",{class:I,"on:click":c},_.P(_.Dx,{cond:z,then:function(){return _.P("div",null,_.P("input",{type:"radio","on:click":F,class:"ytm-lp-offer-card-option-view-model__input-el","prop:checked":function(){var w;return!((w=y())==null||!w.isOptionSelected)}}))}}),_.P("div",null,_.P("div",{class:"ytm-lp-offer-card-option-view-model__eyebrow-text"},_.P(_.wh,{text:function(){return C().eyebrowText}})),_.P("div",{class:"ytm-lp-offer-card-option-view-model__title"},
_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytm-lp-offer-card-option-view-model__subtitle"},_.P(_.wh,{text:function(){return C().subtitle}})),_.P(_.Dx,{cond:function(){return r().length>0},
then:function(){return _.P("div",{class:"ytm-lp-offer-card-option-view-model__feature-list-items"},_.P(_.lY,{data:r},{lpFeatureListItemViewModel:lOb}))}}),_.P("div",{class:"ytm-lp-offer-card-option-view-model__description"},_.P(_.wh,{text:function(){return C().description}})))))},"Sb");
Xcb.idomCompat=!0;var $gw=_.BO(function(I){var C=I.data;var y=I.themeOverride;I=_.T(_.TN(function(){var z,c=(z=C().offerOptions)==null?void 0:z[0];return _.l(c,Cuw)||{}}));
var k=I.next().value,F=I.next().value;I={};return _.P("ytm-lp-offer-card-view-model",null,_.P("div",{class:_.sZ("ytm-lp-offer-card-view-model",(I["ytm-lp-offer-card-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},I))},_.P("div",{class:"ytm-lp-offer-card-view-model__title-container"},_.P(_.Dx,{cond:function(){return C().titleIconType},
then:function(){return _.P("div",{class:"ytm-lp-offer-card-view-model__icon-container"},_.P(_.ez,{icon:function(){var z;return((z=C().titleIconType)==null?void 0:z.toString())||""}}))}}),_.P("div",{class:"ytm-lp-offer-card-view-model__title-text"},_.P(_.wh,{text:function(){return C().title}})),_.P(_.lY,{data:function(){return C().titleBadge}},{badgeViewModel:function(z){return _.P("div",{class:"ytm-lp-offer-card-view-model__title-badge"},_.P(_.ml,{data:z.data}))}})),_.P("div",{class:"ytm-lp-offer-card-view-model__offer-options-container"},
_.P(_.lY,{data:function(){return C().offerOptions}},{lpOfferCardOptionViewModel:function(z){var c=z.data;
return _.P(_.aF,null,_.P("div",{class:"ytm-lp-offer-card-view-model__divider"}),_.P(Xcb,{data:c,config:function(){var r;return{shouldDisplayRadioButton:(C().offerOptions||[]).length>1,isOptionSelected:c().id===((r=k())==null?void 0:r.id),handleRadioButtonClick:function(w){return void F(w)}}},
themeOverride:y}))}})),_.P("div",{class:"ytm-lp-offer-card-view-model__purchase-button-container"},_.P(_.lY,{data:function(){var z;
return(z=k())==null?void 0:z.purchaseButtonOverride}},{buttonViewModel:_.fM}))))},"Tb");
$gw.idomCompat=!0;var RIb=_.BO(function(I){var C=I.data;var y=I.themeOverride;I={};I=_.sZ("ytm-lp-offer-card-section-view-model",(I["ytm-lp-offer-card-section-view-model--premium-force-dark-mode"]=function(){var k;return y==null?void 0:(k=y())==null?void 0:k.useDarkTheme},I));
return _.P("ytm-lp-offer-card-section-view-model",null,_.P("div",{class:I},_.P(_.Dx,{cond:function(){return C().title!==void 0},
then:function(){return _.P("div",{class:"ytm-lp-offer-card-section-view-model__title-container"},_.P("div",{class:"ytm-lp-offer-card-section-view-model__title-text"},_.P(_.wh,{text:function(){return C().title}})),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(){return _.P("div",{class:"ytm-lp-offer-card-section-view-model__subtitle-text"},_.P(_.wh,{text:function(){return C().subtitle}}))}}))}}),_.P("div",{class:"ytm-lp-offer-card-section-view-model__offer-cards-container"},_.P(_.lY,{data:function(){return C().offerCards}},{lpOfferCardViewModel:function(k){return _.P("div",{class:"ytm-lp-offer-card-section-view-model__offer-card-container"},_.P($gw,{data:k.data,
themeOverride:y}))}})),_.P(_.Dx,{cond:function(){return C().footer},
then:function(){return _.P("div",{class:"ytm-lp-offer-card-section-view-model__footer-text"},_.P(_.wh,{text:function(){return C().footer}}))}})))},"Ub");var bSP=_.BO(function(I){var C=I.data;return _.P("lp-offer-table-cell-content-view-model",null,_.P("div",{class:"yt-lp-offer-table-cell-content-view-model"},_.P(_.Vr,null,_.P(_.Qr,{when:function(){return C().title}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-title",
text:function(){return C().title}})}),_.P(_.Qr,{when:function(){return C().subTitle}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-subtitle",
text:function(){return C().subTitle}})}),_.P(_.Qr,{when:function(){return C().featureDescription}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-description",
text:function(){return C().featureDescription}})}),_.P(_.Qr,{when:function(){return C().description}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-description",
text:function(){return C().description}})}),_.P(_.Qr,{when:function(){return C().iconType}},function(){return _.P("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-icon"},_.P(_.ez,{icon:function(){return C().iconType.toString()}}))}),_.P(_.Qr,{when:function(){return C().purchaseButton}},function(){return _.P(_.lY,{data:function(){return C().purchaseButton}},{buttonViewModel:function(y){return _.P("div",{class:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-purchase-button"},
_.P(_.fM,{data:y.data}))}})}),_.P(_.Qr,{when:function(){return C().note}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-note",
text:function(){return C().note}})}),_.P(_.Qr,{when:function(){return C().featureDetail}},function(){return _.P(_.wh,{className:"yt-lp-offer-table-cell-content-view-model__lp-offer-table-cell-feature-detail",
text:function(){return C().featureDetail}})}),_.P(_.Qr,{when:function(){return C().badge}},function(){return _.P(_.lY,{data:function(){return C().badge}},{badgeViewModel:_.ml})}))))},"Vb");
bSP.idomCompat=!0;var Y4w=_.BO(function(I){var C=I.data;return _.P("lp-offer-table-cell-view-model",null,_.P("div",{class:"ytLpOfferTableCellViewModelCellWrapper",style:function(){switch(C().alignSelf){case "LP_OFFER_TABLE_ALIGNMENT_START":return"justify-content: flex-start;";case "LP_OFFER_TABLE_ALIGNMENT_END":return"justify-content: flex-end;";case "LP_OFFER_TABLE_ALIGNMENT_CENTER":return"justify-content: center;";default:return"justify-content: flex-start;"}}},_.P(_.lY,{data:function(){return C().contents}},{lpOfferTableCellContentViewModel:bSP})))},
"Wb");
Y4w.idomCompat=!0;var Gae=_.BO(function(I){var C=I.data;var y=I.lpTableIsFirstRow;var k=I.lpTableIsLastRow;var F=function(){return(y==null?0:y())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-header-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-header-cell"},z=function(){return(y==null?0:y())?"yt-lp-offer-table-row-view-model__lp-offer-table-first-row-content-cell":(k==null?0:k())?"yt-lp-offer-table-row-view-model__lp-offer-table-last-row-content-cell":"yt-lp-offer-table-row-view-model__lp-offer-table-row-content-cell"};
return _.P("ytm-lp-offer-table-row-view-model",null,_.P("div",{class:"yt-lp-offer-table-row-view-model"},_.P(_.lY,{data:function(){return C().rowHeaderCell}},{lpOfferTableCellViewModel:function(c){return _.P("div",{class:F},_.P(Y4w,{data:c.data}))}}),_.P(_.lY,{data:function(){return C().contentCells}},{lpOfferTableCellViewModel:function(c){return _.P("div",{class:z},_.P(Y4w,{data:c.data}))}})))},"Xb");
Gae.idomCompat=!0;var fOu=_.BO(function(I){var C=I.data;var y=I.themeOverride;var k=_.N().resolve(_.aU(_.AE)),F=function(){return _.l(C().logo,Ftq)||{}};
I={};return _.P("ytm-lp-offer-table-section-view-model",null,_.P("div",{class:"yt-lp-offer-table-view-model"},_.P(_.Dx,{cond:function(){var z,c;return k&&k()||(y==null?0:y().useDarkTheme)?(z=F())==null?void 0:z.imageDark:(c=F())==null?void 0:c.imageLight},
then:function(z){return _.P(_.x$,{data:z,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:function(){var c,r,w;return(w=(c=F())==null?void 0:(r=c.accessibilityData)==null?void 0:r.label)!=null?w:""},
targetWidth:140,targetHeight:40,height:40,className:"yt-lp-offer-table-view-model__lp-offer-table-section-logo",useWidth:!1})}}),_.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-title"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-subtitle"},_.P(_.wh,{text:function(){return C().subtitle}})),_.P(_.Dx,{cond:function(){return C().disclaimers},
then:function(z){return _.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-disclaimers"},_.P(_.pH,{each:z},function(c){return _.P("div",null,_.P(_.wh,{text:c}))}))}}),_.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-rows"},_.P(_.lY,{data:function(){return C().rows}},{lpOfferTableRowViewModel:function(z,c){return _.P(Gae,{data:z.data,
lpTableIsFirstRow:function(){return c()===0},
lpTableIsLastRow:function(){return c()===C().rows.length-1}})}})),_.P("div",{class:_.sZ((I["yt-lp-offer-table-view-model__lp-offer-table-section-footer-wrapper"]=function(){return C().hasFooterBackground},I))},_.P(_.Dx,{cond:function(){return C().footer},
then:function(){return _.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer"},_.P(_.wh,{text:function(){return C().footer}}))}}),_.P(_.Dx,{cond:function(){return C().footerTitle},
then:function(){return _.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-title"},_.P(_.wh,{text:function(){return C().footerTitle}}))}}),_.P(_.Dx,{cond:function(){return C().footerDescription},
then:function(){return _.P("div",{class:"yt-lp-offer-table-view-model__lp-offer-table-section-footer-description"},_.P(_.wh,{text:function(){return C().footerDescription}}))}}))))},"Yb");
fOu.idomCompat=!0;var S4w=_.BO(function(I){var C=I.data;var y=I.themeOverride;var k=_.N().resolve(_.aU(_.AE)),F=function(){var r;return y==null?void 0:(r=y())==null?void 0:r.useDarkTheme},z=function(){var r,w;
return k&&k()||F()?(r=C().image)==null?void 0:r.imageDark:(w=C().image)==null?void 0:w.imageLight};
I={};I=_.sZ("ytm-lp-small-feature-section-view-model",(I["ytm-lp-small-feature-section-view-model--premium-force-dark-mode"]=F,I));var c=function(){var r,w,L;return(L=(r=C().image)==null?void 0:(w=r.accessibilityData)==null?void 0:w.label)!=null?L:""};
return _.P("ytm-lp-small-feature-section-view-model",{class:I},_.P(_.Dx,{cond:function(){return z()&&!fqF},
then:function(){return _.P("div",{class:"ytm-lp-small-feature-section-view-model__feature-image-container"},_.P(_.x$,{data:function(){return z()},
alt:c,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",renderLazy:!1}))}}),_.P("div",{class:"ytm-lp-small-feature-section-view-model__content-section"},_.P("div",{class:"ytm-lp-small-feature-section-view-model__title-text"},_.P(_.Dx,{cond:function(){return C().title},
then:function(r){return _.P(_.wh,{text:r})}})),_.P("div",{class:"ytm-lp-small-feature-section-view-model__description-text"},_.P(_.wh,{text:function(){return C().description}}))))},"Zb");
S4w.idomCompat=!0;var KK5=_.BO(function(I){var C=I.data;var y=I.themeOverride;I={};return _.P("ytm-lp-small-feature-section-group-view-model",null,_.P("div",{class:_.sZ("ytm-lp-small-feature-section-group-view-model",(I["ytm-lp-small-feature-section-group-view-model--premium-force-dark-mode"]=function(){return!(y==null||!y().useDarkTheme)},I))},_.P("div",{class:"ytm-lp-small-feature-section-group-view-model__small-features-container"},_.P(_.lY,{data:function(){return C().smallFeatures}},{lpSmallFeatureSectionViewModel:function(k){return _.P("div",
{class:"ytm-lp-small-feature-section-group-view-model__small-feature-container"},_.P(S4w,{data:k.data,
themeOverride:y}))}}))))},"$b");
KK5.idomCompat=!0;_.B9(_.BO(function(I){var C=I.data;var y=function(){return C().forcedTheme==="USER_INTERFACE_THEME_DARK"},k=function(){return C().backgroundImageType==="LP_SECTION_BACKGROUND_TYPE_PHOTO"},F=function(){var c="",r,w;
var L=_.N().resolve(_.aU(_.AE));L=y()||(L==null?0:L())?(r=C().themedImageViewModel)==null?void 0:r.imageDark:(w=C().themedImageViewModel)==null?void 0:w.imageLight;(r=PCz((L==null?void 0:L.sources)||[]))&&r.url&&(c=k()?"background-image: linear-gradient(to bottom, transparent, "+(C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"?"40%":"70%")+", var(--premium-yt-spec-base-background)), url("+_.ra(r.url)+");":"background-image: url("+_.ra(r.url)+");");return c},z=function(){return{useDarkTheme:y()}};
I={};return _.P("yt-section-group-view-model",null,_.P("div",{class:_.sZ("yt-lp-section-group-view-model",(I["yt-lp-section-group-view-model--premium-force-dark-mode"]=y,I["yt-lp-section-group-view-model--ptc-layout-type"]=function(){return C().layoutType==="LP_MODULE_LAYOUT_TYPE_PTC"},I))},_.P(_.Dx,{cond:function(){return F().length},
then:function(){var c={};return _.P("div",{class:_.sZ("yt-lp-section-group-view-model__bg-image",(c["yt-lp-section-group-view-model__bg-image--bg-image-photo"]=k,c)),style:F})}}),_.P("div",{class:"yt-lp-section-group-view-model__lp-section-group"},_.P(_.lY,{data:function(){return C().sections}},{lpFaqSectionViewModel:function(c){return _.P(Qvc,{data:c.data,
themeOverride:z})},
lpHeaderSectionViewModel:function(c){return _.P(Nm5,{data:c.data,themeOverride:z})},
lpHeadlineSectionViewModel:function(c){return _.P(VCu,{data:c.data,themeOverride:z})},
lpLargeFeatureSectionViewModel:function(c){return _.P(jvb,{data:c.data,themeOverride:z})},
lpOfferCardSectionViewModel:function(c){return _.P(RIb,{data:c.data,themeOverride:z})},
lpComplexOfferCardSectionViewModel:function(c){return _.P(LKe,{data:c.data})},
lpOfferTableSectionViewModel:function(c){return _.P(fOu,{data:c.data,themeOverride:z})},
lpSmallFeatureSectionGroupViewModel:function(c){return _.P(KK5,{data:c.data,themeOverride:z})}}))))},"ac"),"yt-section-group-view-model",{props:{data:_.As}});var rRX=new Set([void 0,"CHIP_VIEW_MODEL_DISPLAY_TYPE_UNSPECIFIED","CHIP_VIEW_MODEL_DISPLAY_TYPE_NO_ICON"]);_.Ade=_.BO(function(I){function C(){if(rRX.has(I.data().displayType)){var L=!k(),D;if((D=I.disableDeselection)==null||!D.call(I)||L){I.data().selected=L;D=Object.assign({},c(),{selected:L});r(D);var p;(p=I.callback)==null||p.call(I,D,L)}}}
var y=_.Es(),k=function(){var L,D;return!!(((L=I.selected)==null?void 0:L.call(I))!==void 0?(D=I.selected)==null?0:D.call(I):c().selected)},F=_.T(_.TN(I.data)),z=F.next().value;
F=F.next().value;var c=z,r=F,w=_.cj(euz,function(){return I.data().chipEntityKey||""});
return _.P("chip-view-model",{class:"ytChipViewModelHost",el:y},_.P(jxP,{data:function(){var L,D=Object.assign({},c(),{selected:k()}),p=w(),Q=(L=I.disableDeselection)==null?void 0:L.call(I);a:switch(D.displayType){case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN":case "CHIP_VIEW_MODEL_DISPLAY_TYPE_DROP_DOWN_WITH_CLEAR":L=1;break a;default:L=0}return{text:(p==null?void 0:p.text)||D.text,state:D.disabled?1:D.selected?0:2,type:L,onTap:iTK(D,y,C,Q),accessibilityLabel:D.accessibilityLabel||D.text}}}))},"bc");
_.Ade.idomCompat={callbacks:{callback:!0}};_.B9(_.BO(function(I){var C=_.cj(cRI,function(){var c;return(c=I.data())==null?void 0:c.chipBarStateEntityKey}),y=function(){return I.data().disableDeselection},k=_.T(_.TN(function(){var c;
if(((c=C())==null?void 0:c.selectedIndex)!=void 0)return C().selectedIndex;var r,w;c=_.T(((r=I.data())==null?void 0:(w=r.chips)==null?void 0:w.entries())||[]);for(r=c.next();!r.done;r=c.next()){r=_.T(r.value);w=r.next().value;r=r.next().value;var L=void 0;if((L=_.l(r,_.Ao))==null?0:L.selected)return w}return-1})),F=k.next().value,z=k.next().value;
return _.P("chip-bar-view-model",{class:_.sZ("ytChipBarViewModelHost",I.className),role:"tablist"},_.P(_.lY,{data:function(){return I.data().chips}},{chipViewModel:function(c,r){return _.P("div",{class:"ytChipBarViewModelChipWrapper"},_.P(_.Ade,{data:c.data,
selected:function(){return r()===F()},
callback:function(w,L){w=!!L;L=r();z(w?L:-1);var D,p=(D=I.data())==null?void 0:D.chipBarStateEntityKey;p&&w&&_.qH(_.wJ("chipBarStateEntity",p,{key:p,selectedIndex:L}))},
disableDeselection:I.disableDeselection||y}))}}))},"cc"),"chip-bar-view-model",{props:{data:_.Z_,
className:_.Z_,disableDeselection:_.Z_}});var Rc=new Map,$X=new Map,Pds=0,bs;var jyI=[{calledOnce:!1,state:"visible"},{calledOnce:!1,state:"hidden"}],$_m={throttleMs:0,canHaveZeroSize:!0,useVisibilityObserver:!1};var geq,veq;geq=function(I){return function(C){return function(){return String(C())+I}}};
_.nJ=geq("px");veq=geq("s");var dgw=_.BO(function(I){function C(U){return function(){var yW=X().numItemsPerGridRow,a=U()*yW;yW=a+yW;var cs,XO;return(XO=(cs=k().contents)==null?void 0:cs.slice(a,yW))!=null?XO:[]}}
var y=_.ZB(I,{layoutContainerWidth:0,shouldUseOwnContainerSize:!1,marginSettings:1}),k=y.data,F=y.layoutContainerWidth,z=y.shouldUseOwnContainerSize,c=y.marginSettings;y=_.T(_.c4(!0,void 0,"qgr2Je"));var r=y.next().value,w=y.next().value,L=function(){var U,yW=(U=_.l(k().showMoreButton,_.Xi))==null?void 0:U.trackingParams;yW&&_.FV(_.e2(),yW);w(!1)},D=function(){var U,yW=(U=_.l(k().showLessButton,_.Xi))==null?void 0:U.trackingParams;
yW&&_.FV(_.e2(),yW);w(!0)};
y=_.Es();var p=_.bTF(y,{canHaveZeroSize:!1}),Q=function(){var U;return(U=k().contentAspectRatio)!=null?U:"GRID_SHELF_CONTENT_ASPECT_RATIO_UNKNOWN"},X=_.P4(function(){var U=_.Hj({containerWidth:z()&&p.width()>0?p.width()||F():F(),
sizing:"EXTRA_COMPACT",marginSettings:c(),enableFullBleedForSingleCol:!1});return{maxContainerWidth:U.maxContainerWidth,numItemsPerGridRow:U.numItems,contentPadding:z()?U.margin:U.contentMargin,itemWidth:U.itemWidth,itemMargin:U.gutter/2}},void 0,"pqVdjc"),b=function(){if(k().enableVerticalExpansion){if(r())return 1;
var U,yW,a=(yW=(U=k().contents)==null?void 0:U.length)!=null?yW:0;return Math.ceil(a/X().numItemsPerGridRow)}return X().numItemsPerGridRow<=2?2:1},S=function(){return k().enableVerticalExpansion&&k().showLessButton&&!r()&&b()>1},A=function(){var U,yW;
return k().enableVerticalExpansion&&k().showMoreButton&&r()&&((yW=(U=k().contents)==null?void 0:U.length)!=null?yW:0)>X().numItemsPerGridRow},x=function(){return!S()},B=function(){return!A()},t={};
return _.P("grid-shelf-view-model",{class:_.sZ("ytGridShelfViewModelHost",I.className,(t.ytGridShelfViewModelHostHasBottomButton=function(){return S()||A()},t)),
el:y,style:_.cP({"margin-left":(0,_.nJ)(function(){return X().contentPadding}),
"margin-right":(0,_.nJ)(function(){return X().contentPadding})})},_.P(_.Dx,{cond:function(){return _.l(k().header,DXu)},
then:function(U){return _.P(_.Jv,{data:U,disableHorizontalPadding:!0})}}),_.P("div",null,_.P(_.pH,{each:function(){return Array(b())}},function(U,yW){return _.P(WKw,{className:I.className,
items:C(yW),responsiveGridShelfLayout:X,contentAspectRatio:Q})})),_.P("div",{class:"ytGridShelfViewModelGridShelfBottomButtonContainer"},_.P(_.lY,{data:function(){return k().showMoreButton}},{buttonViewModel:function(U){return _.P("div",{hidden:B},_.P(_.fM,{data:U.data,
onClick:L}))}}),_.P(_.lY,{data:function(){return k().showLessButton}},{buttonViewModel:function(U){return _.P("div",{hidden:x},_.P(_.fM,{data:U.data,
onClick:D}))}})))},"dc");
dgw.idomCompat=!0;var WKw=_.BO(function(I){var C=I.items;var y=I.responsiveGridShelfLayout;var k=I.contentAspectRatio;I=I.className;var F=_.Es();ni9(F,function(){a:{var c=F.value;for(var r=C(),w=[],L=0;L<r.length;L++){var D=_.l(r[L],uom);if(!D||D==null||!D.inlinePlayerData){c=null;break a}var p=c.children.item(L);if(!p){c=null;break a}w.push({thumbnailElement:p,videoData:D})}c={gridVideoPreviewData:{gridItems:w}}}return c});
var z=(0,_.nJ)(function(){return-y().itemMargin});
return _.P("div",{el:F,class:_.sZ("ytGridShelfViewModelGridShelfRow",I),style:_.cP({"margin-left":z,"margin-right":z})},_.P(_.lY,{data:C,replacementWrapper:function(c){return _.P(xgm,{responsiveGridShelfLayout:y},c)}},{shortsLockupViewModel:function(c){return _.P(xgm,{responsiveGridShelfLayout:y},_.P(KHP,{data:c.data,
aspectRatio:function(){return k()==="GRID_SHELF_CONTENT_ASPECT_RATIO_TWO_BY_THREE"?1:0},
scrimStyle:2,inlineMetadata:!1,className:void 0}))}}))},"ec"),xgm=_.BO(function(I){return _.P("div",{style:_.cP({width:(0,_.nJ)(function(){return I.responsiveGridShelfLayout().itemWidth}),
margin:function(){return"0 "+I.responsiveGridShelfLayout().itemMargin+"px"}}),
class:"ytGridShelfViewModelGridShelfItem"},I.children)},"fc");_.B9(dgw,"grid-shelf-view-model",{props:{data:_.As,layoutContainerWidth:_.As,shouldUseOwnContainerSize:_.As,marginSettings:_.As,className:_.As}});var q4S=_.BO(function(I){var C=_.T(_.c4(!1,void 0,"YYtxR")),y=C.next().value,k=C.next().value;C={};return _.P("yt-alert-banner-view-model",{class:_.sZ("ytAlertBannerViewModelHost",function(){var F;a:switch((F=I.data())==null?void 0:F.type){case "ALERT_BANNER_TYPE_TIME_SENSITIVE":F="ytAlertBannerViewModelTimeSensitive";break a;case "ALERT_BANNER_TYPE_WARNING":F="ytAlertBannerViewModelWarning";break a;default:F="ytAlertBannerViewModelInformational"}return F},(C.ytAlertBannerViewModelDismissed=y,C.ytAlertBannerViewModelFullbleed=
I.fullbleed,C.ytAlertBannerViewModelNarrow=I.narrow,C.ytAlertBannerViewModelIsInRichGrid=I.isInRichGrid,C))},_.P(_.Dx,{cond:function(){var F;
return!((F=I.data())==null?0:F.hideIcon)},
then:function(){return _.P("div",{class:"ytAlertBannerViewModelIcon"},_.P(_.ez,{icon:function(){return"info_circle"}}))}}),_.P("div",{class:"ytAlertBannerViewModelOuterContainer"},_.P("div",{class:"ytAlertBannerViewModelContainer"},_.P("div",{class:"ytAlertBannerViewModelContent"},_.P("div",{class:"ytAlertBannerViewModelHeading"},_.P(_.wh,{text:function(){var F;
return(F=I.data())==null?void 0:F.heading}})),_.P("div",{class:"ytAlertBannerViewModelBody"},_.P(_.wh,{text:function(){var F;
return(F=I.data())==null?void 0:F.body}})))),_.P(_.lY,{data:function(){var F;
return(F=I.data())==null?void 0:F.actionButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytAlertBannerViewModelActionButton"})}})),_.P(_.lY,{data:function(){var F;
return(F=I.data())==null?void 0:F.dismissButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytAlertBannerViewModelDismissButton",onClick:function(){var z;((z=I.data())==null?0:z.disableLocalDismissBehavior)||k(!0)}})}}))},"gc");_.B9(q4S,"yt-alert-banner-view-model",{props:{data:_.As,fullbleed:_.As,narrow:_.As,isInRichGrid:_.As}});var Yyz;Yyz=_.Qg({chipViewModel:_.Ade,buttonViewModel:_.fM});_.mgq=_.ks(GH9,{callbacks:{callback:!0}});_.MU(GH9);_.B9(_.mgq,"chips-shelf-view-model",{props:{data:_.As,callback:_.Z_,enableSingleChipSelection:_.As,disableChipsScrollAnimation:_.As}});var ZS0=_.BO(function(I){I=_.ZB(I,{disabled:!1});var C=I.active,y=I.disabled;I={};I=_.sZ("ytSwitchShapeTrack",(I.ytSwitchShapeTrackActive=function(){return C()},I.ytSwitchShapeTrackDisabled=function(){return y()},I));
var k={};k=_.sZ("ytSwitchShapeKnob",(k.ytSwitchShapeKnobActive=function(){return C()},k));
return _.P("switch-shape",{class:"ytSwitchShapeHost"},_.P("div",{class:I}),_.P("div",{class:k}))},"hc");var Bmd=_.BO(function(I){var C=_.ZB(I,{className:void 0,parentActive:void 0,handleOnTapEventInParent:!1}),y=C.data;I=C.className;var k=C.handleOnTapEventInParent,F=C.parentActive;C=_.T(_.TN(function(){var p;return(p=F())!=null?p:y().switchedOnByDefault||!1}));
var z=C.next().value,c=C.next().value,r=function(){return y().isDisabled},w=_.Es();
C=_.uk(function(p){return p.key==="Enter"?(p.preventDefault(),w.value.click(),!1):!0});
var L=_.uk(function(p){if(y().handleOnTapEventInParent||k())return!0;if(r())return!1;ARm(y(),z(),p);c(!z());return!1}),D={};
D=_.sZ("ytSwitchButtonViewModelButton",(D.ytSwitchButtonViewModelTappable=function(){return!r()},D));
return _.P("switch-button-view-model",{class:_.sZ("ytSwitchButtonViewModelHost",I)},_.P("button",{el:w,class:D,"on:click":L,"on:keydown":C,"aria-label":function(){return z()?y().a11yLabelSwitchedOn:y().a11yLabelSwitchedOff},
"aria-pressed":z,"aria-disabled":r},_.P(ZS0,{active:z,disabled:r})))},"ic");_.MU(d_m);var hI8=_.BO(function(I){var C=_.ZB(I,{checked:!1});I=C.name;var y=C.onChange,k=C.onClick,F=C.checked,z=C.labelRenderable,c=C.hasLeadingLabel,r=C.labelClass,w=C.isCompact,L=C.selectElementClass;C=C.disableHorizontalPadding;var D="checkbox"+_.YX(_.Gx),p=_.uk(function(b){k==null||k(b);return!1}),Q=_.uk(function(b){y==null||y(b);
return!1}),X={};
return _.P("checkbox-shape",null,_.P("label",{class:_.sZ("checkbox-shape-wiz",r,(X["checkbox-shape-wiz--compact"]=w,X["checkbox-shape-wiz--disable-horizontal-padding"]=C,X))},_.P("input",{class:"checkbox-shape-wiz__input",id:D,checked:F,name:I,type:"checkbox","prop:checked":F,"on:change":Q,"on:click":p}),_.P(_.Dx,{cond:function(){return!(c==null?0:c())},
then:function(){return _.P(Eec,{isLeading:!0,selectElementClass:L})}}),_.P(_.Dx,{cond:function(){return!!z},
then:function(){return _.P("div",{class:"checkbox-shape-wiz__label"},z==null?void 0:z())}}),_.P(_.Dx,{cond:c,
then:function(){return _.P(Eec,{isLeading:!1,selectElementClass:L})}})))},"jc"),U_K=_.V("web_enable_sink_checkbox_shape")?hI8:d_m,Ugu=_.V("web_enable_sink_checkbox_shape")?hI8:_.ks(d_m,{callbacks:{onChange:!0,
onClick:!0,labelRenderable:!0}});hI8.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var Eec=_.BO(function(I){var C=I.selectElementClass;I={};return _.P("div",{class:_.sZ("checkbox-shape-wiz__checkbox",C,(I["checkbox-shape-wiz__checkbox--checkbox-default-style"]=function(){return!(C==null?0:C())},I)),
"aria-hidden":"true"},_.P(_.ez,{icon:_.V("enable_web_delhi_icons")?"square":"BOX_EMPTY"}),_.P(_.ez,{icon:_.V("enable_web_delhi_icons")?"check_square":"BOX_CHECK",active:!0}))},"kc");_.MU(qyW);var tCq,HTs;tCq=_.BO(function(I){function C(){var yW;((yW=_.N().resolve(_.aU(_.Du)))==null?0:yW.isKeyBoardInUse())&&U(!0)}
function y(){U(!1)}
var k=I.name;var F=I.onChange;var z=I.onClick;var c=I.checked;var r=I.labelRenderable;var w=I.useCheckIcon;var L=I.hasLeadingLabel;var D=I.labelClass;var p=I.isCompact;var Q=I.selectElementClass;var X=I.ariaLabel;I=I.className;var b=YS(function(){return"radio"+_.YX(_.Gx)}),S=_.Es(),A=_.uk(function(yW){S.value.checked=!(c==null||!c());
F==null||F(yW);return!1}),x=_.uk(function(yW){z==null||z(yW);
return!1}),B=_.T(_.c4(!1,void 0,"fLrX6d")),t=B.next().value,U=B.next().value;
_.RU(function(){var yW=S.value;yW.addEventListener("focusin",C);yW.addEventListener("focusout",y);_.$4(function(){yW.removeEventListener("focusin",C);yW.removeEventListener("focusout",y)})});
B={};return _.P("radio-shape",{class:_.sZ("radio-shape-wiz",I)},_.P("input",{el:S,class:"radio-shape-wiz__input",id:b,"prop:checked":c,name:k,type:"radio","on:change":A,"on:click":x,"aria-label":X}),_.P("label",{class:_.sZ("radio-shape-wiz__label-container",D,(B["radio-shape-wiz--compact"]=p,B["radio-shape-wiz__label-container--keyboard-focused"]=t,B)),for:b},_.P(_.Dx,{cond:function(){return!(L==null?0:L())},
then:function(){return _.P(HSw,{checked:c,useCheckIcon:w,isLeading:!0,selectElementClass:Q})}}),_.P(_.Dx,{cond:function(){return!!r},
then:function(){return _.P("div",{class:"radio-shape-wiz__label","aria-hidden":function(){return(X==null?0:X())?"true":"false"}},r==null?void 0:r())}}),_.P(_.Dx,{cond:L,
then:function(){return _.P(HSw,{checked:c,useCheckIcon:w,isLeading:!1,selectElementClass:Q})}})))},"lc");
HTs=_.V("web_enable_sink_radio_shape")?tCq:qyW;_.PL=_.V("web_enable_sink_radio_shape")?tCq:_.ks(qyW,{callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}});tCq.idomCompat={callbacks:{onChange:!0,onClick:!0,labelRenderable:!0}};var HSw=_.BO(function(I){var C=I.useCheckIcon;var y=I.selectElementClass;I=function(){return(C==null?0:C())?"CHECK":_.V("radio_shape_filled_icon_manual_setting_killswitch")?"CIRCLE_FILLED":"CIRCLE"};
var k={};return _.P("div",{class:_.sZ("radio-shape-wiz__radio",y,(k["radio-shape-wiz__radio--check-icon"]=C,k["radio-shape-wiz__radio--radio-default-style"]=function(){return!(y==null?0:y())},k)),
"aria-hidden":"true"},_.P(_.ez,{icon:I}),_.P(_.ez,{icon:I,active:function(){return!(C==null?0:C())}}))},"mc");var BEI=_.Qg({buttonViewModel:_.fM,switchButtonViewModel:Bmd,avatarViewModel:_.XS,accountLinkButtonViewModel:crO,subscribeButtonViewModel:_.oNq,collectionThumbnailViewModel:Yzq,toggleButtonViewModel:_.RY});_.MU(t0Y);var OSw,aOY;OSw=_.BO(function(I){function C(){var n5;((n5=_.N().resolve(_.aU(_.Du)))==null?0:n5.isKeyBoardInUse())&&Bs(!0)}
function y(){Bs(!1)}
var k=I.data;var F=I.isMenuItem;var z=I.isCompact;var c=I.onTap;var r=I.trailingAccessory;var w=I.hideSelectionTextChevron;var L=I.disabled;var D=I.inPopup;var p=I.disableHorizontalPadding;I=I.isOverlay;var Q=_.V("apply_button_role_to_list_item"),X=_.XU(function(n5){return SyH(n5,k())}),b=function(){return _.V("enable_web_shorts_captions_language_command")?Object.assign({},k(),X()):k()},S=function(){return!(b().isSelected===void 0||!b().selectionStyle||b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_UNSPECIFIED")},
A=function(){return(_.dJ(b().rendererContext)||c)&&!S()},x=function(){return _.dJ(b().rendererContext)||S()},B={};
I=_.sZ("yt-list-item-view-model-wiz",(B["yt-list-item-view-model-wiz--is-overlay"]=I,B["yt-list-item-view-model-wiz--keyboard-focused"]=function(){return!Q&&mY()},B));
B={};var t=_.sZ("yt-list-item-view-model-wiz__label",(B["yt-list-item-view-model-wiz__container"]=function(){return!S()},B["yt-list-item-view-model-wiz__container--disabled"]=function(){return!!b().isDisabled||!(L==null||!L())},B["yt-list-item-view-model-wiz__container--has-subtitle"]=function(){return!!b().subtitle},B["yt-list-item-view-model-wiz__container--compact"]=z,B["yt-list-item-view-model-wiz__container--tappable"]=A,B["yt-list-item-view-model-wiz__container--in-popup"]=D,B["yt-list-item-view-model-wiz--keyboard-focused"]=
function(){return Q&&mY()},B));
B={};var U=_.sZ("yt-list-item-view-model-wiz__container",(B["yt-list-item-view-model-wiz__container--tappable"]=x,B["yt-list-item-view-model-wiz__container--compact"]=z,B["yt-list-item-view-model-wiz__container--in-popup"]=D,B["yt-list-item-view-model-wiz__container--disable-horizontal-padding"]=p,B)),yW=function(){return b().leadingImage||b().leadingAccessory},a=_.sZ("yt-list-item-view-model-wiz__image-container",function(){return yW()?"yt-list-item-view-model-wiz__trailing":"yt-list-item-view-model-wiz__leading"});
D=_.Es();var cs=_.Es(),XO=Q?cs:D,Rm=_.BO(function(){return _.P(_.Dx,{cond:function(){return Q},
then:function(){return _.P("div",{class:t,el:cs,role:function(){return x()||A()?"button":void 0},
tabindex:function(){return c||A()?0:void 0},
"on:keydown":hX,"on:click":$z},_.P(Jd0,{data:b,hideSelectionTextChevron:w,trailingAccessory:r}))},
else:function(){return _.P("div",{class:t,el:cs},_.P(Jd0,{data:b,hideSelectionTextChevron:w,trailingAccessory:r}))}})},"nc");
Rm.idomCompat=!0;_.ql(D,function(){return b().rendererContext});
var $z=_.uk(function(n5){return void(c==null?void 0:c(n5))}),hX=_.gJ(),vs=_.T(_.c4(!1,void 0,"bOoKke"));
B=vs.next().value;vs=vs.next().value;var mY=B,Bs=vs;_.RU(function(){A()&&(XO.value.addEventListener("focusin",C),XO.value.addEventListener("focusout",y));_.$4(function(){XO.value&&A()&&(XO.value.removeEventListener("focusin",C),XO.value.removeEventListener("focusout",y))})});
B=_.uk(function(){return!1});
return _.P("yt-list-item-view-model",{el:D,class:I,role:function(){return(F==null?0:F())?"menuitem":"listitem"},
tabindex:function(){var n5=A();n5=Q?void 0:c||n5?0:void 0;return n5},
"on:keydown":Q?B:hX,"on:click":Q?B:$z},_.P(_.Dx,{cond:S,then:function(){return _.P(_.Vr,null,_.P(_.Qr,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_CHECKBOX"}},function(){return _.P(Ugu,{labelRenderable:function(){return _.P(Rm,null)},
isCompact:z,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!yW()},
labelClass:U,selectElementClass:a,disableHorizontalPadding:p})}),_.P(_.Qr,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_RADIO"}},function(){return _.P(_.PL,{labelRenderable:function(){return _.P(Rm,null)},
isCompact:z,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!yW()},
labelClass:U,selectElementClass:a})}),_.P(_.Qr,{when:function(){return b().selectionStyle==="LIST_ITEM_SELECTION_STYLE_DEFAULT"}},function(){return _.P(_.PL,{labelRenderable:function(){return _.P(Rm,null)},
isCompact:z,checked:function(){return b().isSelected},
hasLeadingLabel:function(){return!!yW()},
labelClass:U,selectElementClass:a,useCheckIcon:!0})}),_.P(_.N$,null,function(){return _.P(Rm,null)}))},
else:function(){return _.P(Rm,null)}}))},"oc");
aOY=_.V("web_enable_sink_list_view_models")?OSw:t0Y;_.LJ=_.V("web_enable_sink_list_view_models")?OSw:_.ks(t0Y,{callbacks:{onTap:!0,trailingAccessory:!0}});OSw.idomCompat={callbacks:{onTap:!0,trailingAccessory:!0}};var Jd0=_.BO(function(I){var C=I.data;var y=I.hideSelectionTextChevron;var k=I.trailingAccessory;return _.P(_.aF,null,_.P(MC0,{data:C,isLeading:!0,hideSelectionTextChevron:function(){return!(y==null||!y())}}),_.P(Ipw,{data:C}),_.P(_.Dx,{cond:function(){return!!k},
then:function(){return _.P("div",{class:"yt-list-item-view-model-wiz__trailing"},k==null?void 0:k())},
else:function(){return _.P(MC0,{data:C,isLeading:!1,hideSelectionTextChevron:function(){return!(y==null||!y())}})}}))},"pc"),MC0=_.BO(function(I){var C=I.data;
var y=I.isLeading;var k=I.hideSelectionTextChevron;var F=_.sZ("yt-list-item-view-model-wiz__button-container");I={};var z=_.sZ("yt-list-item-view-model-wiz__image-container",(I["yt-list-item-view-model-wiz__leading"]=y,I["yt-list-item-view-model-wiz__trailing"]=function(){return!y()},I)),c=function(){return y()?C().leadingImage:C().trailingImage},r=_.sZ("yt-list-item-view-model-wiz__accessory","yt-list-item-view-model-wiz__image");
I={};var w=_.sZ("yt-list-item-view-model-wiz__accessory",(I["yt-list-item-view-model-wiz__leading"]=y,I["yt-list-item-view-model-wiz__trailing"]=function(){return!y()},I)),L=function(){return ZTI(C().listItemIconAfterSelectionText)};
return _.P(_.Dx,{cond:function(){return m_X(C(),y())},
then:function(){return _.P(_.aF,null,_.P(_.Dx,{cond:c,then:function(D){return _.P("div",{class:z,"aria-hidden":"true"},_.P(_.x$,{data:D,alt:"",preserveWidth:!0,preserveHeight:!0,className:r}))}}),_.P(_.Dx,{cond:function(){return y()&&C().leadingAccessory},
then:function(){return _.P("div",{class:z},_.P(_.lY,{data:function(){return C().leadingAccessory}},{avatarViewModel:function(D){return _.P(_.rF,{data:D.data,
avatarButtonCustomClassName:r})},
collectionThumbnailViewModel:Yzq}))}}),_.P(_.Dx,{cond:function(){return!y()&&C().trailingButton},
then:function(){return _.P("div",{class:F},_.P(_.lY,{data:function(){return C().trailingButton}},{buttonViewModel:function(D){return _.P(_.fM,{data:D.data,
className:w})}}))}}),_.P(_.Dx,{cond:function(){var D;
return!y()&&((D=C().trailingButtons)==null?void 0:D.buttons)},
then:function(){return _.P("div",{class:F},_.P(_.lY,{data:function(){var D;return(D=C().trailingButtons)==null?void 0:D.buttons}},{buttonViewModel:function(D){return _.P(_.fM,{data:D.data,
className:w})},
accountLinkButtonViewModel:function(D){return _.P(crO,{data:D.data,className:function(){return w()||""}})},
switchButtonViewModel:function(D){return _.P(Bmd,{data:D.data,className:w})},
subscribeButtonViewModel:function(D){return _.P(y6m,{data:D.data,isOverlay:!1,animateWidth:!1})},
toggleButtonViewModel:function(D){return _.P(_.RY,{data:D.data,className:w})}}))}}),_.P(_.Dx,{cond:function(){return!y()&&!!C().selectionText},
then:function(){return _.P(_.aF,null,_.P(_.wh,{text:function(){return C().selectionText},
className:_.sZ("yt-list-item-view-model-wiz__selection-text","yt-list-item-view-model-wiz__selection-text--trailing-selection-text")}),_.P(_.Dx,{cond:function(){return!k()},
then:function(){return _.P(_.ez,{icon:L,className:"yt-list-item-view-model-wiz__chevron-icon"})}}))}}))}})},"qc"),Ipw=_.BO(function(I){var C=I.data;
return _.P(_.Dx,{cond:function(){return C().title||C().subtitle},
then:function(){return _.P("div",{class:"yt-list-item-view-model-wiz__text-wrapper"},_.P("div",{class:"yt-list-item-view-model-wiz__title-wrapper"},_.P(_.Dx,{cond:function(){return C().title},
then:function(y){return _.P(_.wh,{text:y,className:"yt-list-item-view-model-wiz__title"})}})),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(y){return _.P(_.wh,{text:y,className:"yt-list-item-view-model-wiz__subtitle"})}}))}})},"rc");_.D$=_.BO(function(I){var C=I.data;var y=I.onTap;var k=I.onSwitch;var F=I.overrideDisabled;I=_.T(_.TN(function(){var D;return((D=viH(L()))==null?void 0:D.switchedOnByDefault)||!1}));
var z=I.next().value,c=I.next().value;I=_.T(_.c4(!1,void 0,"Ri8Twb"));var r=I.next().value,w=I.next().value,L=function(){var D;if(!(D=C().switchButton)){var p=C();D=F==null?void 0:F();p={switchOnCommand:p.switchOnCommand,switchOffCommand:p.switchOffCommand,switchedOnByDefault:p.switchedOnByDefault,isDisabled:p.isDisabled,handleOnTapEventInParent:!0,a11yLabelSwitchedOn:p.a11yLabelSwitchedOn,a11yLabelSwitchedOff:p.a11yLabelSwitchedOff};D!==void 0&&(p.isDisabled=D);D={switchButtonViewModel:p}}return D};
return _.P("switch-list-item-view-model",{class:"ytSwitchListItemViewModelHost"},_.P(_.LJ,{data:function(){return{title:C().title,subtitle:C().attributedSubtitle,leadingImage:C().leadingImage,leadingAccessory:C().leadingAccessory,isDisabled:C().isDisabled}},
onTap:function(D){var p=viH(L());!p||p.isDisabled||C().ignoreTapUntilCommandCompletes&&r()||(y==null||y(D),ARm(p,z(),D,C().ignoreTapUntilCommandCompletes,w),c(!z()),k==null||k(z()))},
trailingAccessory:function(){return _.P(_.lY,{data:L},{switchButtonViewModel:function(D){return _.P(Bmd,{data:D.data,parentActive:z,handleOnTapEventInParent:!!y})}})}}))},"sc");var CM8=_.PQ("DOWNLOAD",{},"Download"),sZ8=_.PQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"),o_q=_.PQ("RETRY",{},"Retry"),yWb=_.PQ("PAUSE_DOWNLOADING",{},"Pause downloading"),k3S=_.PQ("RESUME_DOWNLOAD",{},"Resume download"),JRt={text:CM8,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_ADD",playlistAction:"ACTION_ADD"},fn={text:sZ8,iconType:"DELETE",videoAction:"ACTION_REMOVE",playlistAction:"ACTION_REMOVE"},M0t={text:o_q,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RETRY",playlistAction:"ACTION_REMOVE"},
OTI={text:yWb,iconType:"OFFLINE_PAUSE",videoAction:"ACTION_PAUSE",playlistAction:"ACTION_PAUSE"},aKI={text:k3S,iconType:"OFFLINE_DOWNLOAD",videoAction:"ACTION_RESUME",playlistAction:"ACTION_RESUME"};var Fpq=_.BO(function(I){var C=function(){var r=I.data();r=_.Wj(r.rendererContext);var w;return(w=_.l(r,_.uY))==null?void 0:w.videoId},y=_.XU(function(r){var w=C(),L=sxH(I.data());
return w?_.Kx(r,w):L?_.AS(r,L):"TRANSFER_STATE_UNKNOWN"}),k=_.cj(_.GXI,C),F=_.XU(function(r){return _.lNK(r,C(),sxH(I.data()))}),z=function(){return CrI(y(),k(),_.Wj(I.data().rendererContext),!!sxH(I.data()))},c=function(){return F()!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
return _.P("yt-download-list-item-view-model",{class:"ytDownloadListItemViewModelHost",hidden:c},_.P(_.Dx,{cond:function(){return!c()},
then:function(){return _.P(_.Dx,{cond:z,then:function(r){return _.P(_.pH,{each:r},function(w){return _.P(_.LJ,{data:w,isCompact:I.isCompact,isMenuItem:I.isMenuItem,inPopup:I.inPopup})})}})}}))},"tc");
Fpq.idomCompat=!0;var ybF=_.Qg({listItemViewModel:aOY,downloadListItemViewModel:Fpq,switchListItemViewModel:_.D$});_.MU(kQF);var ucw;ucw=_.BO(function(I){var C=I.data;var y=I.isCompact;var k=I.hideSelectionTextChevron;var F=I.inPopup;var z=I.isOverlay;var c=function(){return onH(C())&&(F==null?void 0:F())};
I={};return _.P("yt-list-view-model",{class:_.sZ("yt-list-view-model-wiz",(I["yt-list-view-model-wiz--kaios-spat-nav"]=fKz(),I)),role:function(){return c()?"menu":"list"}},_.P(_.lY,{data:function(){return C().listItems}},{listItemViewModel:function(r){return _.P(_.LJ,{data:r.data,
isMenuItem:c,isCompact:y,hideSelectionTextChevron:k,inPopup:F,isOverlay:z})},
downloadListItemViewModel:function(r){return _.P(Fpq,{data:r.data,isMenuItem:c,isCompact:y,inPopup:F})},
switchListItemViewModel:_.D$}))},"uc");
_.zRu=_.V("web_enable_sink_list_view_models")?ucw:_.ks(kQF);ucw.idomCompat=!0;var TGq=_.BO(function(I){var C=I.data;var y=I.isOverlay;I={};return _.P("yt-course-perks-view-model",{class:_.sZ("ytwCoursePerksViewModelHost",(I.ytwCoursePerksViewModelHostOverlay=y,I))},_.P("h3",{class:"ytwCoursePerksViewModelHostPerksTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",null,_.P(_.Dx,{cond:function(){return C().perks},
then:function(k){return _.P(_.zRu,{data:function(){return{listItems:k()}},
isCompact:!0,isOverlay:y})}})))},"vc");_.B9(TGq,"yt-course-perks-view-model",{props:{data:_.Z_,isOverlay:_.Z_}});_.B9(_.BO(function(I){var C=I.data;return _.P("yt-course-progress-view-model",{class:"ytwCourseProgressViewModelHost"},_.P("h3",{class:"ytwCourseProgressViewModelHostProgressTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("p",{class:"ytwCourseProgressViewModelHostProgressSubtitle"},_.P(_.wh,{text:function(){return C().progressSummary}})),_.P("div",{class:"ytwCourseProgressViewModelHostProgressBar"},_.P("div",{class:"ytwCourseProgressViewModelHostProgressBarFill",
style:_.cP({width:function(){return C().progressPercentage*100+"%"}})})))},"wc"),"yt-course-progress-view-model",{props:{data:_.As}});var cWd=_.BO(function(I){var C=_.ZB(I,{}).data;return _.P("yt-progress-view-model",{class:"ytwProgressViewModelHost"},_.P(_.Dx,{cond:function(){return C().progressSummary},
then:function(y){return _.P("p",{class:"ytwProgressViewModelHostProgressSubtitle"},_.P(_.wh,{text:y}))}}),_.P("div",{class:"ytwProgressViewModelHostProgressContainer"},_.P("p",{class:"ytwProgressViewModelHostProgressLeadingLabel"},_.P(_.wh,{text:function(){var y;
return(y=C())==null?void 0:y.leadingLabel}})),_.P("div",{class:"ytwProgressViewModelHostProgressBar"},_.P("div",{class:"ytwProgressViewModelHostProgressBarFill",
style:function(){var y;return"width: "+(((y=C())==null?void 0:y.progressPercentage)||0)*100+"%"}}))))},"xc");var pJ=_.BO(function(I){var C=I.starNumber;var y=I.data;var k=function(){var F;return((F=y())==null?void 0:F.rating)||0};
return _.P(_.Dx,{cond:function(){return C()},
then:function(F){return _.P(_.Vr,null,_.P(_.Qr,{when:function(){return k()>=F()-.25}},function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.ez,{icon:"STAR_FILLED"}))}),_.P(_.Qr,{when:function(){return k()>=F()-.75}},function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.ez,{icon:"STAR_HALF"}))}),_.P(_.N$,null,function(){return _.P("div",{class:"ytStarRatingViewModelHostStar"},_.P(_.ez,{icon:"STAR_BORDER"}))}))}})},"yc"),eRm=_.BO(function(I){I=I.data;
return _.P("yt-star-rating-view-model",{class:"ytStarRatingViewModelHost"},_.P(pJ,{starNumber:1,data:I}),_.P(pJ,{starNumber:2,data:I}),_.P(pJ,{starNumber:3,data:I}),_.P(pJ,{starNumber:4,data:I}),_.P(pJ,{starNumber:5,data:I}))},"zc");_.B9(_.BO(function(I){var C=_.ZB(I,{}).data;return _.P("yt-course-ratings-view-model",{class:"ytCourseRatingsViewModelHost"},_.P("h3",{class:"ytCourseRatingsViewModelHostRatingTitle"},_.P(_.wh,{text:function(){var y;return(y=C())==null?void 0:y.title}})),_.P("div",{class:"ytCourseRatingsViewModelHostRatingContainer"},_.P(_.Dx,{cond:function(){return C().starProgressViewModels},
then:function(y){return _.P("div",{class:"ytCourseRatingsViewModelHostProgressBarContainer"},_.P(_.lY,{data:y},{progressViewModel:cWd}))}}),_.P("div",{class:"ytCourseRatingsViewModelHostStarRatingAndRatingDataContainer"},_.P("p",{class:"ytCourseRatingsViewModelHostAverageRatingLabel"},_.P(_.wh,{text:function(){var y;
return(y=C())==null?void 0:y.averageRatingLabel}})),_.P(_.Dx,{cond:function(){return C().zeroStateText},
then:function(y){return _.P("div",{class:"ytCourseRatingsViewModelHostZeroStateText"},_.P(_.wh,{text:y}))}}),_.P(_.Dx,{cond:function(){return C().starRatingViewModel},
then:function(y){return _.P("div",{class:"ytCourseRatingsViewModelHostStarRatingContainer"},_.P(_.lY,{data:y},{starRatingViewModel:eRm}))}}),_.P("p",{class:"ytCourseRatingsViewModelHostTotalRatingsCountLabel"},_.P(_.wh,{text:function(){var y;
return(y=C())==null?void 0:y.totalRatingsCountLabel}})))))},"Ac"),"yt-course-ratings-view-model",{props:{data:_.Z_}});var rWP;rWP={animationConfig:{autoplay:!0,loop:!0,renderer:"svg",name:"LEARNING_JOURNEY_LOADER_ICON",path:"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}};_.iBP=_.BO(function(I){var C=_.Es(),y=_.yg();_.X2(function(){requestAnimationFrame(function(){var c;(c=y.lottieEl)==null||c.addEventListener("DOMLoaded",function(){var r;(r=I.onLottieLoaded)==null||r.call(I)})});
var k,F={browseEndpoint:{params:(k=I.data)==null?void 0:k.call(I).params,browseId:"FElearning_destination"},commandMetadata:{webCommandMetadata:{url:"/learning",rootVe:256690,apiUrl:"/youtubei/v1/browse",webPageType:"WEB_PAGE_TYPE_BROWSE"}}},z;((z=I.shouldSkipRequest)==null?0:z.call(I))||_.k3(C.value,"yt-navigate",{endpoint:F})});
return _.P("yt-learning-journey-loader-view-model",{class:_.sZ("learningJourneyLoaderViewModelHost",I.className),"data-target-id":function(){var k;return((k=I.data)==null?void 0:k.call(I).targetId)||""},
el:C},_.P(_.o8,{className:_.sZ("learningJourneyLoaderViewModelLoader",I.className),animationName:function(){return rWP.animationConfig.name},
data:rWP,animationRef:y}))},"Bc");_.B9(_.iBP,"yt-learning-journey-loader-view-model",{props:{data:_.As,className:_.Z_,onLottieLoaded:_.Z_,shouldSkipRequest:_.Z_}});var wYm=_.BO(function(I){var C=function(){return I.data()},y=_.T(_.c4(-1,void 0,"X3Tlgd")),k=y.next().value,F=y.next().value,z=function(L){return k()===L},c=function(L){return C().correctAnswerIndex===L},r=function(){return k()!==-1},w=_.uk(function(){F(-1);
return!1});
return _.P("learning-journey-quiz-view-model",{class:_.sZ("learningJourneyQuizViewModelHost",I.className),style:_.cP({background:function(){return Aa(SL(C())).backgroundColor}})},_.P(_.Dx,{cond:function(){return!!C().video},
then:function(){return _.P("div",{class:"learningJourneyQuizViewModelHostVideoContainer",style:_.cP({background:function(){return Aa(SL(C())).videoBackgroundColor}})},_.P(_.lY,{data:function(){return C().video}},{lockupViewModel:function(L){return _.P(_.UA,{data:L.data,
className:"learningJourneyQuizViewModelHostVideoLockup"})}}))}}),_.P("div",{class:"learningJourneyQuizViewModelHostQuizContainer"},_.P("div",{class:"learningJourneyQuizViewModelHostQuiz"},_.P("div",{class:"learningJourneyQuizViewModelHostQuizContent"},_.P("div",{class:"learningJourneyQuizViewModelHostQuizHeader"},_.P("div",{class:"learningJourneyQuizViewModelHostQuizHeaderText",
style:_.cP({color:function(){return Aa(SL(C())).primaryTextColor}})},_.P(_.wh,{text:function(){var L=C(),D=r(),p=k()===C().correctAnswerIndex;
return D?p?L.successTitle:L.failureTitle:L.questionHeaderText}})),_.P("div",{class:"learningJourneyQuizViewModelHostQuizHeaderButtons"},_.P(_.Dx,{cond:r,
then:function(){return _.P("div",{id:"resetButton",class:"learningJourneyQuizViewModelHostQuizHover","on:click":w,role:"button","aria-label":"Reset","tab-index":"0"},_.P("svg",{xmlns:"http://www.w3.org/2000/svg",height:"24",width:"24",viewBox:"0 -960 960 960",style:_.cP({fill:function(){return Aa(SL(C())).primaryTextColor}})},_.P("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"})))}}),
_.P(_.lY,{data:function(){return C().overflowMenu}},{buttonViewModel:function(L){return _.P(_.fM,{data:L.data})}}))),_.P("div",{class:"learningJourneyQuizViewModelHostQuizSubheader",
style:_.cP({color:function(){return Aa(SL(C())).secondaryTextColor}})},_.P(_.wh,{text:function(){var L=C();
return r()?L.explanationText:L.questionSubheaderText}}))),_.P("div",{class:"learningJourneyQuizViewModelHostQuizOptionsList"},_.P(_.pH,{each:function(){return C().optionsData||[]}},function(L,D){var p={};
return _.P("div",{class:_.sZ("learningJourneyQuizViewModelHostQuizOptions",(p.learningJourneyQuizViewModelHostQuizHover=function(){return!r()},p.learningJourneyQuizViewModelHostQuizOptionSelectedCorrect=function(){return k()===C().correctAnswerIndex&&z(D())},p.learningJourneyQuizViewModelHostQuizOptionSelectedIncorrect=function(){return k()!==C().correctAnswerIndex&&z(D())},p.learningJourneyQuizViewModelHostQuizOptionNotSelected=function(){return r()&&!z(D())},p)),
"on:click":_.uk(function(){if(r())return!1;F(D());return!1}),
style:_.cP({background:function(){return r()&&z(D())?"":Aa(SL(C())).optionColor}}),
role:"button","aria-disabled":r,"tab-index":"0"},_.P(_.Dx,{cond:r,then:function(){return _.P("svg",{xmlns:"http://www.w3.org/2000/svg",height:"16",width:"16",viewBox:function(){var Q=D();return c(Q)?"0 0 24 24":"0 -960 960 960"},
class:"learningJourneyQuizViewModelHostQuizOptionIcon",style:_.cP({fill:function(){return Aa(SL(C())).primaryTextColor}})},_.P("path",{d:function(){var Q=D();
return c(Q)?"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"}}))}}),_.P(_.wh,{text:L.optionText}))})))))},"Cc");
wYm.idomCompat=!0;_.B9(wYm,"learning-journey-quiz-view-model",{props:{data:_.As,className:_.As}});var n_d=_.BO(function(I){var C=_.Es();_.ql(C,function(){return I.data().rendererContext});
var y=_.ZB(I,{palette:void 0,isLastItem:!1}),k=y.palette,F=y.isLastItem,z=function(){return I.data().isHighlighted},c=function(){var L;
return F3I((L=k())==null?void 0:L.iconDisabledColor)},r=function(){var L;
return F3I((L=k())==null?void 0:L.primaryTitleColor)},w=function(){var L;
return F3I((L=k())==null?void 0:L.secondaryTitleColor)};
y={};return _.P("yt-macro-marker-list-item-view-model",{class:"ytMacroMarkerListItemViewModelHost",el:C},_.P(_.lY,{data:function(){return I.data().thumbnail}},{thumbnailViewModel:_.Wx}),_.P("div",{class:"ytMacroMarkerListItemViewModelMetadataContainer"},_.P("div",{class:_.sZ("ytMacroMarkerListItemViewModelTimeDescription",(y.ytMacroMarkerListItemViewModelHighlighted=z,y)),
style:_.cP({"background-color":function(){return z()?r():c()},
color:function(){return z()?"":w()}})},_.P(_.wh,{text:function(){return I.data().timestamp}})),_.P("div",{class:"ytMacroMarkerListItemViewModelTimeLine",
style:_.cP({"background-color":function(){return F()?"transparent":c()}})}),_.P("h4",{class:"ytMacroMarkerListItemViewModelTitle",
style:function(){return"color:"+(z()?r():w())}},_.P(_.wh,{text:function(){return I.data().title}}))))},"Dc");_.QD=_.BO(function(I){function C(OF){x("transform:translateX("+(_.Aq("HTML_DIR")==="rtl"?"":"-")+OF+"px)")}
function y(OF){return Math.min(Math.max(OF,0),A()-a())}
function k(){var OF=U()+$z();return F()?(Math.round(a()/OF)||1)*OF:0}
var F=function(){return I.data().items||[]},z=function(){return I.data().previousButton},c=function(){return I.data().nextButton},r=function(){var OF,Rw;
return(Rw=(OF=I.disableArrows)==null?void 0:OF.call(I))!=null?Rw:!1},w=function(){var OF;
return!((OF=I.forceNarrowLayout)==null||!OF.call(I))},L=_.Es(),D=_.Es(),p=_.T(_.c4(0,void 0,"yngx7d")),Q=p.next().value,X=p.next().value;
p=_.T(_.c4(0,void 0,"rUOyGb"));var b=p.next().value,S=p.next().value,A=b;b=_.T(_.c4("",void 0,"jv2kWc"));p=b.next().value;var x=b.next().value;b=_.T(_.c4(0,void 0,"Xb0f0d"));var B=b.next().value,t=b.next().value,U=B;b=_.T(_.c4(0,void 0,"pt5wQ"));B=b.next().value;var yW=b.next().value,a=B;b=_.T(_.c4(!1,void 0,"FfPefe"));var cs=b.next().value,XO=b.next().value;b=_.T(_.c4(0,void 0,"kB5mhb"));B=b.next().value;var Rm=b.next().value,$z=B;b=_.T(_.c4(0,void 0,"dnDmUd"));var hX=b.next().value,vs=b.next().value,
mY=function(){var OF,Rw=(OF=I.data())==null?void 0:OF.responsiveContainerConfiguration,ku,xK;return Rw?CSW(Rw==null?void 0:Rw.responsiveSize):(xK=(ku=I.sizing)==null?void 0:ku.call(I))!=null?xK:"STANDARD"};
b=_.P4(function(){return!r()&&Q()>0},void 0,"ZIGxke");
B=_.P4(function(){return!r()&&Q()<A()-a()},void 0,"OJzhRd");
var Bs=function(){X(y(Q()-k()));C(Q())},n5=function(){X(y(Q()+k()));
C(Q())},sH=function(){L.value!==null&&Qd()},Zt;
_.RU(function(){Qd();window.ResizeObserver?(Zt=new ResizeObserver(_.LQ(sH,0)),Zt.observe(L.value)):window.addEventListener("resize",sH)});
_.$4(function(){if(window.ResizeObserver){var OF;(OF=Zt)==null||OF.disconnect()}else window.removeEventListener("resize",sH)});
var Qd=function(){var OF=L.value.clientWidth,Rw=I.includeMargin!==void 0?I.includeMargin():!1,ku;var xK=I.hasPeek!==void 0?I.hasPeek():!((ku=I.data())==null||!ku.hasPeek);OF=_.Hj({containerWidth:OF,hasPeek:xK,sizing:mY(),marginSettings:Rw?w()?4:1:0});Rm(OF.gutter);vs(OF.margin);t(OF.itemWidth);XO(OF.maxContainerWidth<528||w());yW(OF.maxContainerWidth);F()&&S((OF.itemWidth+OF.gutter)*F().length-OF.gutter)};
return _.P("horizontal-shelf-view-model",{class:_.sZ("ytwHorizontalShelfViewModelHost",I.className),el:L},_.P(_.Dx,{cond:function(){return I.data().header},
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelHeader",style:_.cP({width:function(){return a()+"px"},
padding:function(){return"0 "+hX()+"px"}})},_.P(_.lY,{data:function(){return I.data().header}},{sectionHeaderViewModel:function(OF){return _.P(_.Jv,{data:OF.data,
disableHorizontalPadding:!0,forceSmallLayout:cs,useResponsiveLayout:!0})}}))}}),_.P("div",{class:"ytwHorizontalShelfViewModelOuterContainer"},_.P("div",{class:"ytwHorizontalShelfViewModelHorizontalContainer",
style:_.cP({width:function(){return a()+"px"},
padding:function(){return"0 "+hX()+"px"},
overflow:function(){return r()?"auto":"hidden"}})},_.P("div",{class:"ytwHorizontalShelfViewModelItems",
el:D,style:p},_.P(_.lY,{data:F},{macroMarkerListItemViewModel:function(OF,Rw){return _.P("div",{style:_.cP({width:function(){return U()+"px"},
"margin-right":function(){return(Rw()===F().length-1?0:$z())+"px"}})},_.P(n_d,{data:OF.data,
palette:_.mh(I.palette),isLastItem:function(){return Rw()===F().length-1}}))},
lockupViewModel:function(OF,Rw){var ku=OF.data;return _.P("div",{style:_.cP({width:function(){return U()+"px"},
"margin-right":function(){return(Rw()===F().length-1?0:$z())+"px"}})},_.P(_.UA,{data:ku,
containerType:4,sizing:mY,protectBackground:I.protectBackground,thumbnailFixedWidth:function(){return uXI(ku())+"px"},
thumbnailTargetWidth:function(){return uXI(ku())}}))}}))),_.P(_.Dx,{cond:b,
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelLeftArrow"},_.P(_.lY,{data:z},{buttonViewModel:function(OF){return _.P(_.fM,{data:OF.data,onClick:Bs})}}))}}),_.P(_.Dx,{cond:B,
then:function(){return _.P("div",{class:"ytwHorizontalShelfViewModelRightArrow"},_.P(_.lY,{data:c},{buttonViewModel:function(OF){return _.P(_.fM,{data:OF.data,onClick:n5})}}))}})))},"Ec");
_.QD.idomCompat=!0;var PMd=_.BO(function(I){var C=function(){return I.data().targetId||""},y=function(){var p;
return((p=I.data())==null?void 0:p.expansionEntityKey)||""},k=_.cj(_.cgO,y),F=function(){var p;
return((p=k())==null?void 0:p.value)===C()},z=function(p){_.qH(_.wJ("stringEntity",y(),{key:y(),
value:p?C():""}))};
_.X2(function(){I.data().isExpanded&&z(!0)});
var c=function(){if(F()){var p=!0;I.onCollapse!==void 0&&(p=I.onCollapse());p&&z(!1)}else z(!0)},r=_.uk(c),w=function(){var p;
return(((p=I.accordionStyle)==null?void 0:p.call(I))||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED")==="ACCORDION_VIEW_MODEL_STYLE_MINI"},L={},D={};
return _.P("yt-accordion-item-view-model",{class:_.sZ("ytAccordionItemViewModelHost",I.className,(L.ytAccordionItemViewModelExpanded=function(){return F()},L.ytAccordionItemViewModelHidden=function(){var p;
return(p=I.hideIfNotExpanded)==null?void 0:p.call(I)},L.ytAccordionItemViewModelMini=w,L)),
"data-target-id":C},_.P("div",{class:"ytAccordionItemViewModelContainer"},_.P("div",{class:"ytAccordionItemViewModelLeftSection","on:click":r},_.P(_.wh,{text:function(){return I.data().title},
className:"ytAccordionItemViewModelLabel"})),_.P("div",{class:"ytAccordionItemViewModelRightSection"},_.P(_.lY,{data:function(){return F()?I.data().expandButton:I.data().collapseButton}},{buttonViewModel:function(p){return _.P(_.fM,{data:p.data,
className:"ytAccordionItemViewModelToggleButton",onClick:c})}}))),_.P("div",{class:"ytAccordionItemViewModelContainer"},_.P("div",{class:_.sZ("ytAccordionItemViewModelContent",(D.ytAccordionItemViewModelExpandedSubtitle=function(){return F()},D))},_.P(_.Dx,{cond:function(){return!w()},
then:function(){return _.P(_.wh,{text:function(){return I.data().description},
className:"ytAccordionItemViewModelSubtitle"})}}),_.P(_.lY,{data:function(){return I.data().content}},{horizontalShelfViewModel:function(p){return _.P(_.QD,{data:p.data,
className:"ytAccordionItemViewModelLockupShelf",hasPeek:!0})}}))))},"Fc");_.Lpd=_.BO(function(I){var C=_.T((0,_.ORe)(I.data)).next().value,y=function(){return I.data().style||"ACCORDION_VIEW_MODEL_STYLE_UNSPECIFIED"},k=function(){return y()==="ACCORDION_VIEW_MODEL_STYLE_MINI"},F=_.T(_.c4(!0,void 0,"ewf0jb")),z=F.next().value,c=F.next().value,r=function(){return k()&&z()},w=function(){return{type:"tonal",
style:"mono",state:"active",size:"XS",iconPosition:"icon-only",onTap:function(){c(!z())}}};
F={};return _.P("yt-accordion-view-model",{class:_.sZ("ytAccordionViewModelHost",(F.ytAccordionViewModelMinimized=function(){return r()},F)),
"data-target-id":function(){return I.data().targetId||""}},_.P(_.Dx,{cond:function(){return k()||!!C().title},
then:function(){return _.P("div",{class:"ytAccordionViewModelHeader"},_.P(_.wh,{text:function(){return C().title},
className:"ytAccordionViewModelTitle"}),_.P(_.Dx,{cond:k,then:function(){return _.P(aY,{data:w,iconName:function(){return r()?"chevron_down":"chevron_up"}})}}))}}),_.P("div",{class:"ytAccordionViewModelContent"},_.P(_.lY,{data:function(){return C().contents}},{accordionItemViewModel:function(L){return _.P(PMd,{data:L.data,
className:"ytAccordionViewModelRow",accordionStyle:y,hideIfNotExpanded:r,onCollapse:function(){return k()?(c(!0),!1):!0}})}})),_.P("div",null,_.P(_.wh,{text:function(){return C().disclaimerFooter},
className:"ytAccordionViewModelDisclaimer"})))},"Gc");_.B9(_.Lpd,"yt-accordion-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C,y=(C=_.N().resolve(_.aU(_.AE)))==null?void 0:C(),k=_.T(_.c4(!1,void 0,"XM2Sxc"));C=k.next().value;var F=k.next().value;k=_.T(_.c4(!0,void 0,"Jgzg2d"));var z=k.next().value,c=k.next().value,r=_.Es(),w=function(X){F(!0);X={learningJourneyFormData:{query:X}};_.Gp(I.data().searchEndpoint||{},{form:{formData:X}});return!1};
k=_.uk(function(){c(r.value.value.length===0)});
var L=_.uk(function(X){if(X.key==="Enter"&&!X.shiftKey&&!z()){var b=X.target;X.preventDefault();w(b.value)}}),D={},p={},Q={};
return _.P("yt-learning-journey-zero-state",{class:"ytLearningJourneyZeroStateHost"},_.P("div",{class:"ytLearningJourneyZeroStateLearningIconContainer"},_.P(_.x$,{data:function(){return I.data().learningIcon},
className:"ytLearningJourneyZeroStateLearningIcon",alt:"Learning icon",contentMode:"CONTENT_MODE_CENTER"})),_.P("div",{class:"ytLearningJourneyZeroStateSearchContainer"},_.P("div",{class:"ytLearningJourneyZeroStateSearchBarContainer"},_.P("div",{class:_.sZ("ytLearningJourneyZeroStateSearchBar",(D.ytLearningJourneyZeroStateSearchBarDark=y,D))},_.P("textarea",{class:_.sZ("ytLearningJourneyZeroStateTextInput",(p.ytLearningJourneyZeroStateTextInputDark=y,p)),el:r,"on:keyup":k,"on:keydown":L,placeholder:"What do you want to learn?",
rows:1})),_.P("div",{class:_.sZ("ytLearningJourneyZeroStateSearchButtonContainer",(Q.ytLearningJourneyZeroStateSearchButtonContainerDark=y,Q))},_.P(_.fM,{data:function(){return _.l(I.data().searchButton,_.Xi)},
className:"search-button",onClick:function(){return w(r.value.value)},
buttonOverrides:function(){return{disabled:z(),style:y?"mono-inverse":"mono",size:"XL"}}}))),_.P(_.Dx,{cond:function(){return!!I.data().errorBanner},
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStateErrorBannerContainer"},_.P(_.lY,{data:function(){return I.data().errorBanner}},{alertBannerViewModel:q4S}))}})),_.P(_.Dx,{cond:C,
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStateLoaderContainer"},_.P(_.lY,{data:function(){return I.data().loader}},{learningJourneyLoaderViewModel:function(X){return _.P(_.iBP,{data:X.data,
shouldSkipRequest:!0})}}))},
else:function(){return _.P("div",null,_.P(_.Dx,{cond:function(){return!!I.data().learningJourneyShelf},
then:function(){return _.P("div",{class:"ytLearningJourneyZeroStatePlaylistShelfContainer"},_.P("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return I.data().learningJourneySectionTitle}),_.P(_.lY,{data:function(){return I.data().learningJourneyShelf}},{horizontalShelfViewModel:_.QD}))}}),_.P("div",{class:"ytLearningJourneyZeroStateSuggestedJourneySection"},_.P("h2",{class:"ytLearningJourneyZeroStateSuggestedJourneySectionTitle"},function(){return I.data().suggestedJourneySectionTitle}),
_.P(_.lY,{data:function(){return I.data().suggestedJourneyActions}},{flexibleActionsViewModel:function(X){return _.P(Dg,{data:X.data,
layout:1})}})))}}))},"Hc"),"yt-learning-journey-zero-state",{props:{data:_.As}});var DaS=_.BO(function(I){var C=I.data;return _.P("ytvl-live-leaderboard-item-action-content-view-model",{class:_.sZ("ytvlLiveLeaderboardItemActionContentViewModelHost")},_.P(_.wh,{text:function(){var y;return(y=C())==null?void 0:y.actionDescription},
className:"ytvlLiveLeaderboardItemActionContentViewModelActionDescription"}),_.P(_.lY,{data:function(){return C().actionButton}},{buttonViewModel:function(y){return _.P(_.fM,{className:"ytvlLiveLeaderboardItemActionContentViewModelActionButton",
data:y.data})}}))},"Ic");var pYm=_.BO(function(I){var C=I.data;return _.P("ytvl-live-leaderboard-item-channel-content-view-model",{class:_.sZ("ytvlLiveLeaderboardItemChannelContentViewModelHost")},_.P(_.wh,{className:"ytvlLiveLeaderboardItemChannelContentViewModelChannelName",text:function(){var y;return(y=C())==null?void 0:y.displayName},
ellipsisTruncate:!0}),_.P(_.lY,{data:function(){return C().badge}},{buttonViewModel:function(y){return _.P(_.fM,{className:"ytvlLiveLeaderboardItemChannelContentViewModelBadge",
data:y.data})}}))},"Jc");_.B9(_.BO(function(I){var C=I.data;return _.P("ytvl-live-leaderboard-item-view-model",{class:"ytvlLiveLeaderboardItemViewModelHost"},_.P("div",{class:"ytvlLiveLeaderboardItemViewModelRankNumberContainer"},_.P(_.wh,{className:"ytvlLiveLeaderboardItemViewModelRankNumber",text:function(){var y;return(y=C())==null?void 0:y.rank}})),_.P("div",{class:"ytvlLiveLeaderboardItemViewModelAvatar"},_.P(_.lY,{data:function(){return C().avatar}},{avatarViewModel:_.rF})),_.P("div",{class:"ytvlLiveLeaderboardItemViewModelContent"},
_.P(_.lY,{data:function(){return C().content}},{liveLeaderboardItemChannelContentViewModel:pYm,
liveLeaderboardItemActionContentViewModel:DaS})),_.P(_.wh,{className:"ytvlLiveLeaderboardItemViewModelPoints",text:function(){var y;return(y=C())==null?void 0:y.points}}))},"Kc"),"ytvl-live-leaderboard-item-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;return _.P("ytvl-live-viewer-leaderboard-item-view-model",{class:"ytvlLiveViewerLeaderboardItemViewModelHost"},_.P(_.wh,{className:"ytvlLiveViewerLeaderboardItemViewModelRankNumber",text:function(){var y,k;return(y=C())==null?void 0:(k=y.ranking)==null?void 0:k.rank}}),_.P("div",{class:"ytvlLiveViewerLeaderboardItemViewModelAvatar"},_.P(_.lY,{data:function(){return C().avatar}},{avatarViewModel:_.rF})),_.P(_.wh,{className:"ytvlLiveViewerLeaderboardItemViewModelChannelContent",
text:function(){var y,k;return(y=C())==null?void 0:(k=y.channelContent)==null?void 0:k.channelName}}),_.P(_.wh,{className:"ytvlLiveViewerLeaderboardItemViewModelPoints",
text:function(){var y;return(y=C())==null?void 0:y.points}}))},"Lc"),"ytvl-live-viewer-leaderboard-item-view-model",{props:{data:_.As}});var QZq=_.BO(function(I){I=_.ZB(I,{wrapper:!1}).wrapper;return _.P(_.Dx,{cond:I,then:function(){return _.P("ytw-spinner",{class:"ytWebSpinnerWrapper"},_.P("div",{class:"ytWebSpinnerSpinner"}))},
else:function(){return _.P("ytw-spinner",{class:"ytWebSpinnerSpinner"})}})},"Mc");
QZq.idomCompat=!0;var NGw=["QR_CODE_RENDERER_STYLE_WEB_SHORTS_ENGAGEMENT_PANEL"],Vhe=_.BO(function(I){var C=I.data;var y=_.Es(),k=_.P4(function(){return C().command},void 0,"CGDtVe");
_.l0(function(){k()&&_.bU(k(),{form:{element:y.value}})});
return _.P("div",{el:y},_.P(_.Dx,{cond:function(){return C().qrCodeImage},
then:function(F){return _.P(_.x$,{data:F,alt:"",className:"YtQrCodeRendererHostQrImage",useWidth:!1,contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})},
else:function(){return _.P(_.Dx,{cond:function(){return C().spinner},
then:function(){return _.P(QZq,null)}})}}),_.P(_.Dx,{cond:function(){return C().label},
then:function(F){return _.P(_.wh,{text:F,className:"YtQrCodeRendererHostLabel"})}}),_.P(_.Dx,{cond:function(){return C().labels},
then:function(F){return _.P("div",{class:"YtQrCodeRendererHostLabels"},_.P(_.pH,{each:F},function(z){return _.P(_.wh,{text:z})}))}}))},"Oc");_.B9(_.BO(function(I){var C=I.data;var y=_.P4(function(){return C().qrEntityKey},void 0,"joYCxd"),k=_.P4(function(){return C().deleteEntityOnDismiss},void 0,"x3yAde"),F=_.P4(function(){return C().command},void 0,"dJe1Re"),z=_.cj(vhI,y);
I=_.P4(function(){return C().style&&NGw.includes(C().style)},void 0,"rGILzf");
var c=_.Es();_.a0(c,{visibilityCallback:function(r){r&&F()&&_.bU(F())},
showOption:{calledOnce:!0,state:"visible"}});_.RU(function(){_.$4(function(){k()&&y()&&_.dW().dispatch(_.wJ("qrCodeEntity",y()))})});
return _.P("yt-qr-code-renderer",{class:"YtQrCodeRendererHost",el:c},_.P(_.Dx,{cond:I,then:function(){return _.P(_.Dx,{cond:z,then:function(r){return _.P(Vhe,{data:r})}})}}))},"Nc"),"yt-qr-code-renderer",{props:{data:_.As}});var jZd=_.BO(function(I){var C=I.data;var y=I.topbarOffset;var k,F=((k=_.N().resolve(_.aU(_.AE)))==null?void 0:k())||!1;return _.P("cinematic-container-view-model",{class:"ytCinematicContainerViewModelHost",style:function(){var z=C();var c,r,w=F?(c=z.config)==null?void 0:c.darkThemeBackgroundColor:(r=z.config)==null?void 0:r.lightThemeBackgroundColor;z=w?_.lg(w):void 0;z="background-color: "+z+";";y!==void 0&&(z+="top: -"+y()+"px;");return z},
"aria-hidden":!0},_.P(_.Dx,{cond:function(){var z,c,r;return!!((z=C().backgroundImageConfig)==null?0:(c=z.image)==null?0:(r=c.sources)==null?0:r.length)},
then:function(){return _.P(_.x$,{data:function(){var z;return(z=C().backgroundImageConfig)==null?void 0:z.image},
className:"ytCinematicContainerViewModelBackgroundImage",alt:""})}}),_.P("div",{class:"ytCinematicContainerViewModelBackgroundGradient",
style:function(){return"background: "+zeK(F,C().gradientColorConfig)+";"}}))},"Pc");
jZd.idomCompat=!0;var lpu=_.ks(T$I);_.MU(T$I);var XYq=_.BO(function(I){var C=I.data;var y=I.isOverlay;return _.P("channel-info-view-model",{class:"ytwChannelInfoViewModelHost"},_.P("div",{class:"ytwChannelInfoViewModelHostChannelHeader"},_.P(_.lY,{data:function(){return C().header}},{sectionHeaderViewModel:function(k){return _.P(_.Jv,{data:k.data,
isOverlay:y})}})),_.P("div",{class:"ytwChannelInfoViewModelHostChannelButtons"},_.P(_.lY,{data:function(){return C().channelInfoButtons}},{flexibleActionsViewModel:Dg})),_.P("div",{class:"ytwChannelInfoViewModelHostChannelDescription"},_.P(_.lY,{data:function(){return C().description}},{descriptionPreviewViewModel:function(k){return _.P(lpu,{data:k.data,
isOverlay:y})}})))},"Qc");
XYq.idomCompat=!0;var $aS=_.BO(function(I){var C=I.data;var y={};return _.P("factoid-view-model",{class:_.sZ("ytwFactoidViewModelHost",(y.ytwFactoidViewModelHostOverlay=I.isOverlay,y))},_.P(_.wh,{text:function(){return C().value},
className:"ytwFactoidViewModelHostFactoidValue"}),_.P(_.wh,{text:function(){return C().label},
className:"ytwFactoidViewModelHostFactoidLabel"}))},"Rc");
$aS.idomCompat=!0;var RRS=_.BO(function(I){var C=I.data;var y=I.isOverlay;return _.P("factoids-row-view-model",{class:"ytwFactoidsRowViewModelHost"},_.P(_.lY,{data:function(){return C().factoids}},{factoidViewModel:function(k){return _.P($aS,{data:k.data,
isOverlay:y})}}))},"Sc");
RRS.idomCompat=!0;_.bB8=_.BO(function(I){var C=I.data;var y=I.isOverlay;return _.P("course-metadata-view-model",{class:"ytwCourseMetadataViewModelHost"},_.P(_.lY,{data:function(){return C().items}},{channelInfoViewModel:function(k){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(XYq,{data:k.data,
isOverlay:y}))},
coursePerksViewModel:function(k){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(TGq,{data:k.data,isOverlay:y}))},
descriptionPreviewViewModel:function(k){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(lpu,{data:k.data,isOverlay:y}))},
factoidsRowViewModel:function(k){return _.P("div",{class:"ytwCourseMetadataViewModelHostItem"},_.P(RRS,{data:k.data,isOverlay:y}))}}))},"Tc");var Yid=_.BO(function(I){return _.P("yt-flexible-container",{class:"ytFlexibleContainerHost"},_.P(_.lY,{data:function(){return I.data().content}},{courseMetadataViewModel:function(C){return _.P(_.bB8,{data:C.data,
isOverlay:I.isOverlay})}}))},"Uc");var G3w=_.BO(function(I){var C=I.data;I=I.className;var y=_.Es(),k=function(){var z;return _.dJ((z=C())==null?void 0:z.rendererContext)},F={};
F=(F["dynamic-text-view-model-wiz"]=!0,F["dynamic-text-view-model-wiz--tappable"]=function(){return k()},F);
_.ql(y,function(){var z;return(z=C())==null?void 0:z.rendererContext});
return _.P("yt-dynamic-text-view-model",{el:y,role:function(){return k()?"link":void 0},
tabindex:function(){return k()?0:void 0},
class:_.sZ(I,F)},_.P("h1",{class:"dynamic-text-view-model-wiz__h1","aria-label":function(){var z,c,r;return(r=(c=_.l((z=C())==null?void 0:z.rendererContext,_.mO))==null?void 0:c.label)!=null?r:""}},_.P(_.wh,{text:function(){return C().text},
userInput:!0})))},"Vc");
G3w.idomCompat=!0;_.Nn=_.BO(function(I){var C=I.data;var y=I.isPositionRelative;var k=_.h3(),F=_.iU9("(max-width: 527.9px)"),z=function(){var c,r;return(r=(c=C())==null?void 0:c.style)!=null?r:"IMAGE_BANNER_STYLE_FULL_BLEED"};
I={};I=(I["yt-image-banner-view-model-wiz"]=!0,I["yt-image-banner-view-model-wiz--inset"]=function(){return wIt(z())},I["yt-image-banner-view-model-wiz--position-absolute"]=function(){return _.b0(!0)&&!(y==null?0:y())},I["yt-image-banner-view-model-wiz--small-inset"]=function(){return wIt(z())&&F()},I["yt-image-banner-view-model-wiz--tappable"]=function(){var c;
return _.b0(k.value)&&_.dJ((c=C())==null?void 0:c.rendererContext)},I);
_.ql(k,function(){var c;return(c=C())==null?void 0:c.rendererContext});
return _.P("yt-image-banner-view-model",{el:k,class:_.sZ(I)},_.P(_.Dx,{cond:function(){var c;return(c=C())==null?void 0:c.image},
then:function(){return _.P(_.x$,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}}),_.P(_.lY,{data:function(){var c;
return(c=C())==null?void 0:c.overlays}},{thumbnailHoverOverlayViewModel:Qgq}))},"Wc");
_.Nn.idomCompat=!0;var gl=_.Qg({descriptionPreviewViewModel:T$I,dynamicTextViewModel:G3w,contentPreviewImageViewModel:_.Zh,contentMetadataViewModel:Bww,flexibleActionsViewModel:zn5,attributionViewModel:Bx,imageBannerViewModel:_.Nn,decoratedAvatarViewModel:lcS,cinematicContainerViewModel:jZd,flexibleContainer:Yid});_.MU(Vpm);var fpc,Siq;fpc=_.BO(function(I){var C=I.condition;var y=I.content;return _.P(_.Dx,{cond:C,then:function(){return _.P("div",{class:"page-header-view-model-wiz__scroll-container"},y())},
else:function(){return y()}})},"Xc");
Siq=_.BO(function(I){var C=I.data;var y=I.noPadding;var k=I.enableBanner;var F=I.cinematicContainerTopbarOffset;var z=I.allowCinematicContainerOverflow;var c=I.displayAsSidebar;var r=I.displayAsPanel;var w=nnt(),L=function(){return!!C().image||!!C().animatedImage},D=function(){return!!C().background},p=function(){return(c==null?0:c())||(r==null?0:r())?1:w()},Q=function(){return p()===1},X=function(){return Q()||p()===2},b=function(){return p()===4},S=function(){return rbz(C(),!!C().heroImage,p(),
PrX(C()),c==null?void 0:c())};
I={};I=_.sZ((I["page-header-view-model-wiz"]=!0,I["page-header-view-model-wiz--no-padding"]=function(){return!(y==null||!y())},I["page-header-view-model-wiz--small-top-padding"]=function(){return Q()&&!C().actions||p()===2&&!(L()||C().heroImage)},I["page-header-view-model-wiz--small-bottom-padding"]=function(){return X()&&!C().actions},I["page-header-view-model-wiz--cinematic-container-overflow-boundary"]=function(){return!(z==null?0:z())},I["page-header-view-model-wiz--display-as-sidebar"]=c,I["page-header-view-model-wiz--display-as-panel"]=
r,I));
var A={},x=_.sZ((A["page-header-view-model-wiz__page-header-headline"]=!0,A["page-header-view-model-wiz__page-header-headline--page-header-headline-full-width-hero"]=function(){return S().allowFullWidth},A)),B=function(){return Q()&&(!!C().heroImage||L())&&PrX(C())>0},t=function(){return B()&&(r==null?void 0:r())};
A={};var U=_.sZ((A["page-header-view-model-wiz__page-header-title"]=!0,A["page-header-view-model-wiz__page-header-title--page-header-title-large"]=function(){return!B()},A["page-header-view-model-wiz__page-header-title--page-header-title-medium"]=function(){return B()&&!t()},A["page-header-view-model-wiz__page-header-title--page-header-title-medium-force-small-layout"]=t,A["page-header-view-model-wiz__page-header-title--page-header-title-overlay"]=D,A));
A={};var yW=_.sZ((A["page-header-view-model-wiz__page-header-headline-image"]=!0,A["page-header-view-model-wiz__page-header-headline-image--page-header-headline-image-hero"]=function(){return!!C().heroImage&&X()},A));
A={};var a=_.sZ((A["page-header-view-model-wiz__page-header-banner-container"]=k,A["page-header-view-model-wiz__page-header-banner-container--full-bleed"]=function(){var $z;return(k==null?void 0:k())&&(($z=_.l(C().banner,_.N$F))==null?void 0:$z.style)==="IMAGE_BANNER_STYLE_FULL_BLEED"},A));
A={};var cs=_.sZ((A["page-header-view-model-wiz__page-header-content-metadata"]=!0,A["page-header-view-model-wiz__page-header-content-metadata--page-header-content-metadata-overlay"]=D,A));A={};var XO=_.sZ((A["page-header-view-model-wiz__page-header-flexible-actions"]=!0,A["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-top"]=function(){return!!C().metadata||X()},A["page-header-view-model-wiz__page-header-flexible-actions--page-header-flexible-actions-margin-bottom"]=
function(){return!X()},A));
A={};var Rm=_.sZ((A["page-header-view-model-wiz__page-header-attribution"]=!0,A["page-header-view-model-wiz__page-header-attribution--page-header-attribution-overlay"]=D,A));return _.P("yt-page-header-view-model",{class:I},_.P(_.Dx,{cond:D,then:function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-background"},_.P(_.lY,{data:function(){return C().background}},{cinematicContainerViewModel:function($z){return _.P(jZd,{data:$z.data,
topbarOffset:F})}}))}}),_.P(fpc,{condition:function(){return!(c==null||!c())},
content:function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-content"},_.P(_.Dx,{cond:function(){return(k==null?void 0:k())&&C().banner},
then:function(){return _.P("div",{class:a},_.P(_.lY,{data:function(){return C().banner}},{imageBannerViewModel:_.Nn}))}}),_.P("div",{class:x},_.P(_.Dx,{cond:L,
then:function(){return _.P(_.lY,{data:function(){var $z;($z=C().animatedImage)||($z=C(),L()&&($z=Object.assign({},$z),DBz($z,p(),PrX(C()))),$z=$z.image);return $z}},{contentPreviewImageViewModel:function($z){return _.P(_.Zh,{data:$z.data,
className:yW,imageSizeConfig:S})},
decoratedAvatarViewModel:function($z){return _.P(_.wF,{data:$z.data,className:yW})}})}}),_.P(_.Dx,{cond:function(){return!!C().heroImage&&!(X()&&!S().allowFullWidth)},
then:function(){return _.P(_.lY,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function($z){return _.P(_.Zh,{data:$z.data,
className:yW,imageSizeConfig:S})}})}}),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.P(_.Dx,{cond:function(){return!!C().heroImage&&X()&&!S().allowFullWidth},
then:function(){return _.P("div",{class:"page-header-view-model-wiz__page-header-headline-image-hero-container"},_.P(_.lY,{data:function(){return C().heroImage}},{contentPreviewImageViewModel:function($z){return _.P(_.Zh,{data:$z.data,
className:yW,imageSizeConfig:S})}}))}}),_.P(_.lY,{data:function(){return C().title}},{dynamicTextViewModel:function($z){return _.P(G3w,{data:$z.data,
className:U})}}),_.P(_.lY,{data:function(){return C().metadata}},{contentMetadataViewModel:function($z){return _.P(_.E0q,{data:$z.data,
layout:function(){return Q()?1:0},
className:cs,isOverlay:D,useMediumText:b})}}),_.P(_.Dx,{cond:function(){return C().description&&!Q()},
then:function(){return _.P(_.lY,{data:function(){return C().description}},{descriptionPreviewViewModel:function($z){return _.P(lpu,{data:$z.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:D,maxLinesOverride:function(){return Q()?void 0:1},
useMediumText:b})}})}}),_.P(_.Dx,{cond:function(){return C().attribution&&!X()},
then:function(){return _.P(_.lY,{data:function(){return C().attribution}},{attributionViewModel:function($z){return _.P(Bx,{data:$z.data,
className:Rm,useMediumText:b})}})}}),_.P(_.Dx,{cond:function(){return C().actions&&!X()},
then:function(){return _.P(_.lY,{data:function(){return C().actions}},{flexibleActionsViewModel:function($z){return _.P(Dg,{data:$z.data,
layout:function(){return pIz(p())},
className:XO})}})}}))),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.P(_.Dx,{cond:function(){return C().description&&Q()},
then:function(){return _.P(_.lY,{data:function(){return C().description}},{descriptionPreviewViewModel:function($z){return _.P(lpu,{data:$z.data,
className:"page-header-view-model-wiz__page-header-description",isOverlay:D,maxLinesOverride:function(){return Q()?void 0:1},
useMediumText:b})}})}}),_.P(_.Dx,{cond:function(){return C().attribution&&X()},
then:function(){return _.P(_.lY,{data:function(){return C().attribution}},{attributionViewModel:function($z){return _.P(Bx,{data:$z.data,
className:Rm,useMediumText:b})}})}}),_.P(_.Dx,{cond:function(){return C().actions&&X()},
then:function(){return _.P(_.lY,{data:function(){return C().actions}},{flexibleActionsViewModel:function($z){return _.P(Dg,{data:$z.data,
layout:function(){return pIz(p())},
className:XO})}})}})),_.P("div",{class:"page-header-view-model-wiz__page-header-headline-info"},_.P(_.lY,{data:function(){return C().bottomMetadataFlexibleContainer}},{flexibleContainer:function($z){return _.P(Yid,{data:$z.data,
isOverlay:D})}})))}}))},"Yc");
_.Kpc=_.V("web_enable_sink_page_header_view_model")?Siq:Vpm;_.AWq=_.V("web_enable_sink_page_header_view_model")?Siq:_.ks(Vpm);Siq.idomCompat=!0;_.B9(_.BO(function(I){var C=_.T(_.c4(!1,void 0,"vVRl3b")),y=C.next().value,k=C.next().value;return _.P("yt-official-card-view-model",{class:_.sZ("ytOfficialCardViewModelHost",I.className),style:_.cP({"background-color":function(){var F,z=M6I((F=I.data())==null?void 0:F.backgroundColor);return z?_.Xl(z):void 0}})},_.P(_.lY,{data:function(){return I.data().header}},{pageHeaderViewModel:function(F){return _.P(_.AWq,{data:F.data,
noPadding:!0})}}),_.P(_.lY,{data:function(){return I.data().contents}},{horizontalShelfViewModel:_.QD}),_.P(_.Dx,{cond:y,
then:function(){return _.P("div",{class:"ytOfficialCardViewModelExpandedContent"},_.P(_.lY,{data:function(){return I.data().expandedContents}},{horizontalShelfViewModel:function(F){return _.P(_.QD,{data:F.data,
sizing:"MINI"})}}),_.P("div",{class:"ytOfficialCardViewModelCollapseButton"},_.P(_.lY,{data:function(){return I.data().collapseButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
onClick:function(){k(!y())}})}})))},
else:function(){return _.P("div",{class:"ytOfficialCardViewModelExpandButton"},_.P(_.lY,{data:function(){return I.data().expandButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
onClick:function(){k(!y())}})}}))}}))},"Zc"),"yt-official-card-view-model",{props:{data:_.As,
className:_.As}});var jxY=_.Qg({buttonViewModel:_.fM});_.MU(lEI);_.aj(lEI,"ytw-search-friction-view-model",{propNames:["data"]});_.VD=_.BO(function(I){var C=_.Es(),y,k=(y=_.N().resolve(_.aU(_.AE)))==null?void 0:y();_.l0(function(){var F=C.value;var z=new H58,c=new Map(z.JSC$7177_sanitizerTable.globalAttributePolicies);c.set("style",{policyAction:4});z.JSC$7177_sanitizerTable=new De(z.JSC$7177_sanitizerTable.allowedElements,z.JSC$7177_sanitizerTable.elementPolicies,z.JSC$7177_sanitizerTable.allowedGlobalAttributes,c,z.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);var r=["data-time"];if(r===void 0)c=new Set(z.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes),
c.add("data-"),z.JSC$7177_sanitizerTable=new De(z.JSC$7177_sanitizerTable.allowedElements,z.JSC$7177_sanitizerTable.elementPolicies,z.JSC$7177_sanitizerTable.allowedGlobalAttributes,z.JSC$7177_sanitizerTable.globalAttributePolicies,c);else{c=new Set(z.JSC$7177_sanitizerTable.allowedGlobalAttributes);r=_.T(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;if(w.indexOf("data-")!==0)throw Error("qa`"+w);c.add(w)}z.JSC$7177_sanitizerTable=new De(z.JSC$7177_sanitizerTable.allowedElements,z.JSC$7177_sanitizerTable.elementPolicies,
c,z.JSC$7177_sanitizerTable.globalAttributePolicies,z.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes)}c=new Set(z.JSC$7177_sanitizerTable.allowedGlobalAttributes);c.add("class");z.JSC$7177_sanitizerTable=new De(z.JSC$7177_sanitizerTable.allowedElements,z.JSC$7177_sanitizerTable.elementPolicies,c,z.JSC$7177_sanitizerTable.globalAttributePolicies,z.JSC$7177_sanitizerTable.globallyAllowedAttributePrefixes);_.SO(F,_.Z5w(z.build(),$BX(I.text())));ReO(C.value)});
y={};return _.P("div",null,_.P("markdown-div",{class:_.sZ("ytwMarkdownDivHost",(y.ytwMarkdownDivDark=k,y.ytwMarkdownDivHostSmall=function(){var F;return((F=I.isSmallText)==null?void 0:F.call(I))||!1},y)),
el:C}))},"$c");
_.VD.idomCompat=!0;var g_q=_.BO(function(I){var C=I.imageData;var y=_.mh(I.isInList,!1),k=function(){return y()?{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 _.P("div",{class:"ytwGenAiRichTextViewModelImageContent"},_.P(_.Dx,{cond:function(){return C().image},
then:function(F){return _.P(_.x$,{data:F,alt:function(){return k().alt},
contentMode:function(){return k().contentMode},
targetWidth:function(){return k().targetWidth},
targetHeight:function(){return k().targetHeight},
className:function(){return k().className}})}}),_.P("div",{class:"ytwGenAiRichTextViewModelImageMetadata"},_.P("div",{class:_.sZ("ytwGenAiRichTextViewModelImageTitle","ytwGenAiRichTextViewModelText")},_.P(_.wh,{text:function(){return C().title}})),_.P(_.pH,{each:function(){var F;
return(F=C().description)!=null?F:[]}},function(F){return _.P("div",{class:"ytwGenAiRichTextViewModelImageDescription"},_.P(jm,{content:F}))})))},"ad"),v_Y=_.BO(function(I){var C=I.list;
var y=function(){var k;return(k=C().items)!=null?k:[]};
return _.P("div",{class:"ytwGenAiRichTextViewModelListContent"},_.P(_.Dx,{cond:function(){return C().title},
then:function(k){return _.P("div",{class:_.sZ("ytwGenAiRichTextViewModelListTitle","ytwGenAiRichTextViewModelText")},_.P(_.wh,{text:k}))}}),_.P(_.Dx,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_BULLET"},
then:function(){return _.P("ul",{class:"ytwGenAiRichTextViewModelBulletedList"},_.P(_.pH,{each:y},function(k){return _.P("li",{class:"ytwGenAiRichTextViewModelBulletedListItem"},_.P(jm,{content:k,isInList:!0}))}))}}),_.P(_.Dx,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_NUMBERED"},
then:function(){return _.P("ol",{class:"ytwGenAiRichTextViewModelNumberedList"},_.P(_.pH,{each:y},function(k){return _.P("li",{class:"ytwGenAiRichTextViewModelNumberedListItem"},_.P(jm,{content:k,isInList:!0}))}))}}),_.P(_.Dx,{cond:function(){return C().style==="GEN_AI_RICH_TEXT_LIST_STYLE_IMAGE"},
then:function(){return _.P("div",{class:"ytwGenAiRichTextViewModelImageList"},_.P(_.pH,{each:y},function(k){return _.P("div",{class:"ytwGenAiRichTextViewModelListItem"},_.P(jm,{content:k,isInList:!0}))}))}}))},"bd"),Wp8=_.BO(function(I){var C=I.table;
return _.P("table",{class:"ytwGenAiRichTextViewModelTableContent"},_.P("thead",null,_.P("tr",null,_.P(_.pH,{each:function(){var y,k;return(k=(y=C().header)==null?void 0:y.cells)!=null?k:[]}},function(y){return _.P("th",{class:"ytwGenAiRichTextViewModelTableHeaderCell"},_.P(_.pH,{each:function(){return y.contents}},function(k){return _.P(jm,{content:k})}))}))),_.P("tbody",null,_.P(_.pH,{each:function(){var y;
return(y=C().rows)!=null?y:[]}},function(y){return _.P("tr",null,_.P(_.pH,{each:function(){return y.cells}},function(k){return _.P("th",{class:"ytwGenAiRichTextViewModelTableCell"},_.P(_.pH,{each:function(){return k.contents}},function(F){return _.P(jm,{content:F})}))}))})))},"cd"),jm=_.BO(function(I){var C=I.content;
var y=_.mh(I.isInList,!1),k=function(){var F,z;return(z=(F=C().contentBlock)==null?void 0:F.contents)!=null?z:[]};
return _.P("div",{class:"ytwGenAiRichTextViewModelRichContent"},_.P(_.Dx,{cond:function(){return C().text},
then:function(F){return _.P(_.wh,{className:"ytwGenAiRichTextViewModelText",text:F})}}),_.P(_.Dx,{cond:function(){return C().image},
then:function(F){return _.P(g_q,{imageData:F,isInList:y})}}),_.P(_.Dx,{cond:function(){return C().list},
then:function(F){return _.P(v_Y,{list:F})}}),_.P(_.Dx,{cond:function(){return C().contentBlock},
then:function(){return _.P("div",{class:"ytwGenAiRichTextViewModelContentBlock"},_.P(_.pH,{each:k},function(F){return _.P(jm,{content:F,isInList:!1})}))}}),_.P(_.Dx,{cond:function(){return C().table},
then:function(F){return _.P(Wp8,{table:F})}}))},"dd"),da5=_.BO(function(I){var C={};
C=_.yc("ytwGenAiRichTextViewModelHost",(C.ytwGenAiRichTextViewModelGreenLinks=["green_track","underline"].includes(_.oD("search_overview_link_style")),C));return _.P("gen-ai-rich-text-view-model",{class:C},_.P(jm,{content:function(){return I.data().content}}))},"ed");_.MU(bUI);_.MU(vp);_.xac=_.BO(function(I){var C=I.data;var y=function(){var S;return((S=C().loadingUi)!=null?S:"OVERVIEW_ANSWER_LOADING_UI_DEFAULT").replace("OVERVIEW_ANSWER_LOADING_UI_","")},k=function(){return C().isLoading&&(y()==="UNSPECIFIED"||y()==="GHOST_CARD")},F=function(){return!C().isLoading},z=function(){return!!C().content&&!C().contents},c=function(){return!!C().contents},r=function(){return!!C().nextQueryButtons},w=function(){return C().isLoading&&y()==="INVISIBLE"},L=function(){var S,A;
return(A=(S=C().headerIcon)==null?void 0:S.iconType)!=null?A:""},D=function(){var S;
return(S=C().content)!=null?S:""},p=function(){return!!C().sourcesSection},Q,X=!((Q=_.N().resolve(_.aU(_.AE)))==null||!Q()),b=_.P4(function(){var S=[],A=C().contents;
if(A)for(var x=0;x<A.length;x++){var B=_.l(A&&A[x],$uq);B&&S.push(B)}return S},void 0,"ycU97e");
_.RU(function(){C().isLoading||_.Sr("so_re",void 0,"search_overview_answer")});
return _.P("ytd-overview-answer-view-model",{class:function(){var S={};S=(S.ytdOverviewAnswerViewModelHost=!0,S.ytdOverviewAnswerViewModelDarkBackground=X&&!w(),S.ytdOverviewAnswerViewModelLightBackground=!X&&!w(),S);return _.yc(S)}},_.P(_.Dx,{cond:function(){return!w()},
then:function(){return _.P(_.aF,null,_.P("h2",null,_.P("div",{class:"ytdOverviewAnswerViewModelHeader"},_.P(_.Dx,{cond:L,then:function(S){return _.P("div",{class:"ytdOverviewAnswerViewModelHeaderIcon"},_.P(_.ez,{icon:S}))}}),_.P("div",{class:"ytdOverviewAnswerViewModelHeaderText"},_.P("div",{class:"ytdOverviewAnswerViewModelHeaderTitle"},function(){return C().headerText}),_.P("div",{class:"ytdOverviewAnswerViewModelHeaderSubtext"},_.P(_.wh,{text:function(){return C().headerSubtext}}))))),_.P(_.Dx,
{cond:k,
then:function(){return bUI()}}),_.P(_.Dx,{cond:F,
then:function(){return _.P(_.aF,null,_.P(_.Dx,{cond:z,then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelText"},_.P(_.VD,{text:D,isSmallText:!0}))}}),_.P(_.Dx,{cond:c,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelRichText"},_.P(_.pH,{each:b},function(S){return _.P(da5,{data:S})}))}}),_.P(_.Dx,{cond:r,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelNextQueryButtons"},_.P(_.lY,{data:function(){return C().nextQueryButtons}},{buttonViewModel:function(S){return _.P(_.fM,{data:S.data,
className:"ytdOverviewAnswerViewModelNextQueryButton"})},
horizontalShelfViewModel:_.QD}))}}),_.P("div",{class:"ytdOverviewAnswerViewModelSecondaryHeader"},_.P("div",{class:"ytdOverviewAnswerViewModelFeedbackButtons"},_.P(_.Dx,{cond:function(){return!!_.l(C().likeButtonViewModel,dw9)&&!!_.l(C().dislikeButtonViewModel,xwz)},
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelBottomButtonsContainer"},_.P(_.enc,{data:function(){return _.l(C().likeButtonViewModel,dw9)},
disableIconAnimation:!0}),_.P(_.c6m,{data:function(){return _.l(C().dislikeButtonViewModel,xwz)}}))}})),_.P(_.Dx,{cond:function(){var S;
return(S=C().sourcesSection)==null?void 0:S.headerText},
then:function(S){return _.P("div",{class:"ytdOverviewAnswerViewModelSourcesHeaderText"},_.P(_.wh,{text:S}))}})),_.P(_.Dx,{cond:p,
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelSources"},_.P(_.lY,{data:function(){var S;return(S=C().sourcesSection)==null?void 0:S.sourcesShelf}},{buttonViewModel:_.fM,
horizontalShelfViewModel:function(S){return _.P(_.QD,{data:S.data,includeMargin:!0,hasPeek:!0})}}))}}),_.P(_.Dx,{cond:function(){return C().disclaimerText},
then:function(){return _.P("div",{class:"ytdOverviewAnswerViewModelDisclaimer"},_.P(_.wh,{text:function(){return C().disclaimerText},
linkInheritColor:!0}))}}))}}))}}))},"fd");var qi8=_.BO(function(I){var C=I.data;var y=I.active;var k=_.Es();_.l0(function(){var F,z,c,r=((F=_.N().resolve(_.aU(_.AE)))==null?0:F())?(z=C())==null?void 0:z.darkThemeColorPalette:(c=C())==null?void 0:c.lightThemeColorPalette;r&&(r.invertedBackground&&k.value.style.setProperty("--timestamp-active-background-color",_.Xl(r.invertedBackground)),r.additiveBackground&&k.value.style.setProperty("--timestamp-background-color",_.Xl(r.additiveBackground)),r.textPrimaryInverse&&k.value.style.setProperty("--timestamp-active-color",
_.Xl(r.textPrimaryInverse)),r.textSecondary&&k.value.style.setProperty("--timestamp-color",_.Xl(r.textSecondary)))},"PUzFSd");
I={};return _.P("transcript-segment-view-model",{class:_.sZ("ytwTranscriptSegmentViewModelHost",(I.ytwTranscriptSegmentViewModelHostActive=y,I.ytwTranscriptSegmentViewModelHostModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),I)),el:k},_.P(_.Dx,{cond:function(){var F;return(F=C())==null?void 0:F.timestamp},
then:function(F){var z={};return _.P("div",{class:_.sZ("ytwTranscriptSegmentViewModelTimestamp",(z.ytwTranscriptSegmentViewModelTimestampActive=y,z))},F)}}),_.P(_.wh,{text:function(){var F,z,c;
return(c=(F=C())==null?void 0:F.attributedText)!=null?c:{content:(z=C())==null?void 0:z.simpleText}},
linkInheritColor:!0}))},"gd");var mae=_.BO(function(I){var C=I.data;return _.P("div",{class:"yt-video-attributes-section-view-model__header"},_.P("h3",{class:"yt-video-attributes-section-view-model__title"},function(){return C().headerTitle}),_.P(_.Dx,{cond:function(){return C().headerSubtitle},
then:function(){return _.P("span",{class:"yt-video-attributes-section-view-model__subtitle"},function(){return C().headerSubtitle})}}))},"hd"),ZBd=_.BO(function(I){function C(b){return Math.max(Math.min(b,0),L()-r())}
var y=I.data;var k=_.Es(),F=_.Es();I=_.T(_.c4(0,void 0,"ucDlDf"));var z=I.next().value,c=I.next().value,r=z;I=_.T(_.c4(0,void 0,"lHzSub"));z=I.next().value;var w=I.next().value,L=z;I=_.T(_.c4(0,void 0,"Q8fDIe"));var D=I.next().value,p=I.next().value;_.RU(function(){var b=function(){c(F.value.scrollWidth);w(k.value.clientWidth)};
b();if(window.ResizeObserver){var S=new ResizeObserver(b);S.observe(k.value);_.$4(function(){S.disconnect()})}});
var Q=function(){p(C(D()+L()))},X=function(){p(C(D()-L()))};
return _.P("yt-video-attributes-section-view-model",null,_.P("div",{class:"yt-video-attributes-section-view-model"},_.P(_.Dx,{cond:function(){return y().headerTitle},
then:function(){return _.P(mae,{data:y})}}),_.P("div",{class:_.sZ("yt-video-attributes-section-view-model__video-attributes","yt-video-attributes-section-view-model__scroll-container"),
el:k},_.P("div",{class:"yt-video-attributes-section-view-model__video-attributes-container",style:_.cP({transform:function(){var b=D();_.Aq("HTML_DIR")==="rtl"&&(b*=-1);return"translateX("+b+"px)"}}),
el:F},_.P(_.lY,{data:function(){return y().videoAttributeViewModels}},{videoAttributeViewModel:oQu}))),_.P(_.lY,{data:function(){return y().footerButton}},{buttonViewModel:function(b){return _.P(_.fM,{data:b.data,
className:"yt-video-attributes-section-view-model__footer-button"})}}),_.P(_.Dx,{cond:function(){return D()<0&&y().previousButton},
then:function(){return _.P("div",{class:"yt-video-attributes-section-view-model__left-arrow"},_.P(_.lY,{data:function(){return y().previousButton}},{buttonViewModel:function(b){return _.P(_.fM,{data:b.data,
onClick:Q})}}))}}),_.P(_.Dx,{cond:function(){return D()>L()-r()&&y().nextButton},
then:function(){return _.P("div",{class:"yt-video-attributes-section-view-model__right-arrow"},_.P(_.lY,{data:function(){return y().nextButton}},{buttonViewModel:function(b){return _.P(_.fM,{data:b.data,
onClick:X})}}))}})))},"id");
ZBd.idomCompat=!0;var BGb=_.BO(function(I){var C=I.data;var y=I.active;var k={},F={};return _.P("timeline-item-view-model",{class:_.sZ("ytwTimelineItemViewModelHost",(k.ytwTimelineItemViewModelHostChapterChild=I.chapterChild,k.ytwTimelineItemViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),k))},_.P("div",{class:"ytwTimelineItemViewModelTimestampSection"},_.P("div",{class:_.sZ("ytwTimelineItemViewModelTimestamp",(F.ytwTimelineItemViewModelTimestampActive=
y,F))},function(){return C().timestamp})),_.P("div",{class:"ytwTimelineItemViewModelContentItems"},_.P(_.lY,{data:function(){return C().contentItems}},{transcriptSegmentViewModel:function(z){return _.P(qi8,{data:z.data,
active:y})},
videoAttributesSectionViewModel:ZBd})))},"jd");var E_e=_.BO(function(I){var C=I.data;I={};return _.P("timeline-chapter-view-model",{class:_.sZ("ytwTimelineChapterViewModelHost")},_.P("div",{class:_.sZ("ytwTimelineChapterViewModelTitle",(I.ytwTimelineChapterViewModelModern=_.V("enable_timeline_view_modern_transcript")||_.V("enable_timeline_view_modern_transcript_fe"),I))},function(){return C().title}),_.P(_.lY,{data:function(){return C().contents}},{timelineItemViewModel:function(y){return _.P(BGb,{data:y.data,
chapterChild:!0})},
videoAttributesSectionViewModel:function(y){return _.P(ZBd,{data:y.data})}}))},"kd");var hRd=_.BO(function(I){var C=I.data;var y=_.Es(),k=_.cj(_.frm,function(){var z;return(z=C().markersEngagementPanelSyncEntityKey)!=null?z:""}),F=function(){var z;
return((z=k())==null?void 0:z.activeItemIndex)===C().index};
I=_.uk(function(z){var c,r,w,L,D;return _.e(function(p){if(p.nextAddress==1)return z.stopPropagation(),_.b49(_.vj(z),y.value,["A".toString(),"BUTTON".toString()])?p.return():(c=_.Rj(C().onTap))?_.n(p,_.sG(),2):p.return();r=p.yieldResult;L=(w=_.l(c,_.H$))==null?void 0:w.startTimeSeconds;L===void 0||(D=r)!=null&&D.seekTo(L,!0);_.oI(p)})});
return _.P("macro-markers-panel-item-view-model",{class:_.sZ("ytwMacroMarkersPanelItemViewModelHost",{"is-active":F}),el:y,"on:click":I,tabindex:0},_.P(_.lY,{data:function(){var z;return(z=C())==null?void 0:z.item}},{timelineChapterViewModel:function(z){return _.P(E_e,{data:z.data,
active:F})},
timelineItemViewModel:function(z){return _.P(BGb,{data:z.data,active:F})},
videoAttributeViewModel:oQu}))},"ld");
hRd.idomCompat=!0;_.B9(hRd,"macro-markers-panel-item-view-model",{props:{data:_.As}});_.B9(ZBd,"yt-video-attributes-section-view-model",{props:{data:_.As}});var Uaq=_.BO(function(I){var C=function(){var y,k,F;return(F=(y=I.data().leadingLogoAccessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)!=null?F:""};
return _.P("ytw-fantasy-section-header-view-model",{class:"ytwFantasySectionHeaderViewModelHost"},_.P(_.Dx,{cond:function(){return I.data().leadingLogo},
then:function(y){return _.P(_.x$,{className:"ytwFantasySectionHeaderViewModelLogo",data:y,alt:C})}}),_.P("div",{class:"ytwFantasySectionHeaderViewModelMetadata"},_.P(_.wh,{className:"ytwFantasySectionHeaderViewModelTitle",
text:function(){return I.data().title}}),_.P(_.wh,{className:"ytwFantasySectionHeaderViewModelSubtitle",
text:function(){return I.data().subtitle}})),_.P(_.lY,{data:function(){return I.data().trailingButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytwFantasySectionHeaderViewModelTrailingButton"})}}))},"md");var HBw=_.BO(function(I){var C={};C=_.sZ("ytwFantasyTeamViewModelHost",(C.ytwFantasyTeamViewModelCompact=function(){var F;return!((F=I.compact)==null||!F.call(I))},C.ytwFantasyTeamViewModelUser=function(){return I.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_USER_TEAM"},C.ytwFantasyTeamViewModelOpponent=function(){return I.data().teamOwnerType==="FANTASY_TEAM_OWNER_TYPE_OPPONENT_USER_TEAM"},C));
var y=function(){var F,z,c;return(c=(F=I.data().teamLogoAccessibility)==null?void 0:(z=F.accessibilityData)==null?void 0:z.label)!=null?c:""},k=_.cj(K9H,function(){return I.data().teamEntityKey});
return _.P("ytw-fantasy-team-view-model",{class:C},_.P(_.Dx,{cond:function(){return I.data().teamLogo},
then:function(F){return _.P(_.x$,{className:"ytwFantasyTeamViewModelLogo",data:F,alt:y})}}),_.P("div",{class:"ytwFantasyTeamViewModelMetadata"},_.P("div",{class:"ytwFantasyTeamViewModelHeader"},_.P(_.wh,{className:"ytwFantasyTeamViewModelScore",
text:function(){var F;return(F=k())==null?void 0:F.score}}),_.P(_.ez,{icon:function(){var F;
return(F=k())==null?void 0:F.projectedScoreTrendingIcon},
className:"ytwFantasyTeamViewModelProjectedScoreIcon",size:12,active:!0}),_.P(_.wh,{className:"ytwFantasyTeamViewModelProjectedScore",text:function(){var F;return(F=k())==null?void 0:F.projectedScore}})),_.P(_.wh,{className:"ytwFantasyTeamViewModelPrimaryText",
text:function(){return I.data().primaryText}}),_.P(_.wh,{className:"ytwFantasyTeamViewModelSecondaryText",
text:function(){return I.data().secondaryText}}),_.P(_.wh,{className:"ytwFantasyTeamViewModelTertiaryText",
text:function(){return I.data().tertiaryText}})),_.P(_.wh,{className:"ytwFantasyTeamViewModelCompactScore",
text:function(){var F;return(F=k())==null?void 0:F.score}}))},"nd");_.B9(_.BO(function(I){return _.P("fantasy-league-summary-view-model",{class:"ytwFantasyLeagueSummaryViewModelHost"},_.P("div",{class:"ytwFantasyLeagueSummaryViewModelHeader"},_.P(_.lY,{data:function(){return I.data().summaryHeader}},{fantasySectionHeaderViewModel:Uaq})),_.P(_.lY,{data:function(){return I.data().userTeam}},{fantasyTeamViewModel:HBw}),_.P(_.lY,{data:function(){return I.data().opponentTeam}},{fantasyTeamViewModel:HBw}))},"od"),"fantasy-league-summary-view-model",{props:{data:_.As}});var thb=_.BO(function(I){var C=_.ZB(I,{shape:{},useCustomTabRenderable:!1}),y=C.shape;C=C.useCustomTabRenderable;var k=I.customTabRenderable,F=function(){return y().disabled},z=function(){return y().selected},c=function(){return y().title},r=function(){return y().icon},w=_.Es();
I=_.uk(function(p){var Q;if(!F()&&((Q=y().aTagConfig)==null?0:Q.onclick))y().aTagConfig.onclick(p);return!1});
var L=_.uk(function(p){if(p.key==="Enter"||p.key==="ArrowUp"||p.key==="ArrowDown")p.preventDefault(),w.value.click();return!1}),D={};
return _.P("yt-tab-shape",{class:_.sZ("yt-tab-shape-wiz",function(){return y().className},(D["yt-tab-shape-wiz__tab--last-tab"]=function(){return y().isLastTab},D["yt-tab-shape-wiz--host-disabled"]=F,D["yt-tab-shape-wiz--host-clickable"]=!k,D)),
role:k?void 0:"tab","aria-selected":z!=null?z:!1,"aria-disabled":F,tabindex:k?void 0:0,"on:click":I,"on:keydown":L,el:w,"tab-identifier":function(){return y().identifier},
"tab-title":c},_.P(_.Dx,{cond:C,then:function(){return k()},
else:function(){var p={},Q={};return _.P(_.aF,null,_.P("div",{class:_.sZ("yt-tab-shape-wiz__tab",(p["yt-tab-shape-wiz__tab--tab-selected"]=z,p))},_.P(_.Dx,{cond:r,then:function(X){return _.P(_.ez,{className:"yt-tab-shape-wiz__tab-icon",icon:function(){return X().iconType}})}}),c),_.P("div",{class:_.sZ("yt-tab-shape-wiz__tab-bar",(Q["yt-tab-shape-wiz__tab-bar--tab-bar-selected"]=z,Q))}))}}))},"pd");
thb.idomCompat={callbacks:{customTabRenderable:!0}};_.OBb=_.BO(function(I){var C=I.shape;I=_.T(_.c4(48,void 0,"S7XsSd"));var y=I.next().value,k=I.next().value;I=_.T(_.c4(0,void 0,"CzMxb"));var F=I.next().value,z=I.next().value,c=function(){return C().tabs},r=_.Es(),w=function(){var L,D;
return(D=(L=c())==null?void 0:L.findIndex(function(p){return p.selected}))!=null?D:-1};
_.RU(function(){var L=r.value.querySelectorAll("yt-tab-shape"),D=w()>-1?L[w()]:void 0;requestAnimationFrame(function(){k((D==null?void 0:D.getBoundingClientRect().width)||0)})});
_.l0(function(){var L=w();requestAnimationFrame(function(){var D=r.value.querySelectorAll("yt-tab-shape"),p;k(((p=L>-1?D[L]:void 0)==null?void 0:p.getBoundingClientRect().width)||0);for(var Q=p=0;Q<L;Q++)p+=D[Q].offsetWidth+24;_.Aq("HTML_DIR")==="rtl"&&(p=-p);z(p)})});
I={};return _.P("yt-tab-group-shape",{class:_.sZ("yt-tab-group-shape-wiz",(I["yt-tab-group-shape-wiz--overflow-hidden"]=function(){return C().isOverflowHidden},I)),
el:r},_.P(_.Dx,{cond:c,then:function(L){return _.P(_.aF,null,_.P("div",{class:"yt-tab-group-shape-wiz__tabs",role:"tablist"},_.P(_.pH,{each:L},function(D,p){return _.P(thb,{shape:function(){return Object.assign({},D,{isLastTab:p()===L().length-1})},
customTabRenderable:D.customTabRenderable,useCustomTabRenderable:!!D.customTabRenderable})})),_.P(JWq,{width:y,
sliderOffset:F}))}}))},"qd");
_.OBb.idomCompat=!0;var JWq=_.BO(function(I){var C=_.mh(I.sliderOffset,0),y=I.width;return _.P("div",{class:"yt-tab-group-shape-wiz__slider",style:_.cP({width:function(){return y()+"px"},
transform:function(){return"translateX("+C()+"px)"}})})},"rd");var ap8=_.BO(function(I){var C=function(){var z,c,r;return(r=(z=I.data().playerLogoAccessibility)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)!=null?r:""},y=_.cj(Ays,function(){return I.data().playerEntityKey}),k={};
k=_.sZ("ytwFantasyPlayerViewModelHost",(k.ytwFantasyPlayerViewModelPlaying=function(){var z;return!((z=y())==null||!z.isPlayerPlaying)},k.ytwFantasyPlayerViewModelOnField=function(){var z;
return((z=y())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_ON_FIELD"},k.ytwFantasyPlayerViewModelRedZone=function(){var z;
return((z=y())==null?void 0:z.playerInGameStatus)==="FANTASY_PLAYER_IN_GAME_STATUS_RED_ZONE"},k));
var F=function(){var z,c,r,w=((z=_.N().resolve(_.aU(_.AE)))==null?0:z())?(c=I.data().playerLogoBackgroundColor)==null?void 0:c.darkTheme:(r=I.data().playerLogoBackgroundColor)==null?void 0:r.lightTheme;return w===void 0?"":_.Xl(w)};
return _.P("ytw-fantasy-player-view-model",{class:k},_.P(_.Dx,{cond:function(){return I.data().playerLogo},
then:function(z){return _.P("div",{class:"ytwFantasyPlayerViewModelLogo"},_.P("div",{class:"ytwFantasyPlayerViewModelLogoRing"},_.P(_.x$,{className:"ytwFantasyPlayerViewModelLogoImage",style$:_.cP({"background-color":F}),data:z,alt:C})),_.P("div",{class:"ytwFantasyPlayerViewModelInGameStatus"},_.P(_.ez,{icon:"FOOTBALL_FILLED",className:"ytwFantasyPlayerViewModelInGameStatusIcon"})))}}),_.P("div",{class:"ytwFantasyPlayerViewModelMetadata"},_.P("div",{class:"ytwFantasyPlayerViewModelHeader"},_.P(_.wh,
{className:"ytwFantasyPlayerViewModelName",
text:function(){var z;return(z=I.data())==null?void 0:z.playerNameText}}),_.P(_.wh,{className:"ytwFantasyPlayerViewModelDescription",
text:function(){var z;return(z=I.data())==null?void 0:z.playerDescriptionText}})),_.P("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.P(_.wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=y())==null?void 0:z.gamePeriodText}}),_.P(_.wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=I.data())==null?void 0:z.opponentTeamText}}),_.P(_.wh,{className:"ytwFantasyPlayerViewModelSecondaryItem",
text:function(){var z;return(z=y())==null?void 0:z.gameStatusText}}),_.P(_.wh,{className:_.sZ("ytwFantasyPlayerViewModelSecondaryItem","ytwFantasyPlayerViewModelStatus"),
text:function(){var z;return(z=y())==null?void 0:z.playerStatusText}})),_.P("div",{class:"ytwFantasyPlayerViewModelSecondaryText"},_.P(_.wh,{text:function(){var z;
return(z=y())==null?void 0:z.playerStatsText}}))),_.P(_.wh,{className:"ytwFantasyPlayerViewModelScore",
text:function(){var z;return(z=y())==null?void 0:z.fantasyScore}}))},"sd");var Mhw=_.BO(function(I){return _.P("ytw-fantasy-roster-view-model",{class:"ytwFantasyRosterViewModelHost"},_.P(_.Dx,{cond:function(){return I.data().players},
then:function(C){return _.P(_.lY,{data:C},{fantasyPlayerViewModel:ap8})}}))},"td");var Iau=_.BO(function(I){var C=_.T(_.TN(function(){var F;return(F=I.data().selectedTabIdentifierKey)!=null?F:""})),y=C.next().value,k=C.next().value;
_.X2(function(){var F;(F=I.setSelectedTabSignal)==null||F.call(I,y)});
return _.P("yt-tabbed-view-model",{class:"ytTabbedViewModelHost"},_.P("div",{class:"ytTabbedViewModelTabGroup"},_.P(_.OBb,{shape:function(){var F=I.data(),z=[],c={tabs:z};if(!F.tabs)return c;F=_.T(F.tabs);for(var r=F.next(),w={};!r.done;w={tabViewModel:void 0},r=F.next())if(w.tabViewModel=_.l(r.value,$XY),w.tabViewModel){var L=r=void 0;z.push({aTagConfig:{onclick:function(D){return function(){var p;k((p=D.tabViewModel.tabIdentifier)!=null?p:"")}}(w)},
identifier:w.tabViewModel.tabIdentifier,selected:y()===w.tabViewModel.tabIdentifier,title:(L=(r=w.tabViewModel.title)==null?void 0:r.content)!=null?L:""})}return c}})),_.P(_.lY,{data:function(){var F,z=_.T((F=I.data().tabs)!=null?F:[]);
for(F=z.next();!F.done;F=z.next())if((F=_.l(F.value,$XY))&&F.tabIdentifier===y())return F.content}},{fantasyRosterViewModel:Mhw}))},"ud");_.B9(_.BO(function(I){var C=_.T(YTI()),y=C.next().value,k=C.next().value;return _.P("ytw-fantasy-matchup-view-model",{class:"ytwFantasyMatchupViewModelHost"},_.P(_.wh,{className:"ytwFantasyMatchupViewModelTitle",text:function(){return I.data().title}}),_.P(_.Dx,{cond:function(){return I.data().tabbedViewModel},
then:function(F){return _.P(_.lY,{data:F},{tabbedViewModel:function(z){return _.P(Iau,{data:z.data,setSelectedTabSignal:k})}})}}),_.P(_.Dx,{cond:function(){var F,z=(F=_.l(I.data().tabbedViewModel,Rfw))==null?void 0:F.tabs;
F=_.l(z==null?void 0:z[0],$XY);z=_.l(z==null?void 0:z[1],$XY);var c=F==null?void 0:F.tabIdentifier;if(y()===c){var r,w;if(!((r=_.l(F==null?void 0:F.content,Wum))==null?0:(w=r.players)==null?0:w.length))return I.data().noUserTeamPlayersText}else{var L,D;if(!((L=_.l(z==null?void 0:z.content,Wum))==null?0:(D=L.players)==null?0:D.length))return I.data().noOpponentTeamPlayersText}},
then:function(F){return _.P(_.wh,{className:"ytwFantasyMatchupViewModelNoPlayersMessage",text:F})}}))},"vd"),"ytw-fantasy-matchup-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){return _.P("ytw-fantasy-weekly-matchup-summary-view-model",{class:"ytwFantasyWeeklyMatchupSummaryViewModelHost"},_.P(_.wh,{className:"ytwFantasyWeeklyMatchupSummaryViewModelTitle",text:function(){return I.data().title}}),_.P(_.Dx,{cond:function(){return I.data().matchupTeamPairs},
then:function(C){return _.P(_.pH,{each:C,keyBy:"INDEX"},function(y){return _.P("div",{class:"ytwFantasyWeeklyMatchupSummaryViewModelPair"},_.P(_.lY,{data:function(){return[y().firstTeam,y().secondTeam]}},{fantasyTeamViewModel:function(k){return _.P(HBw,{data:k.data,
compact:!0})}}))})}}))},"wd"),"ytw-fantasy-weekly-matchup-summary-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=function(){var F,z,c;return(c=(F=I.data().userLogoAccessibility)==null?void 0:(z=F.accessibilityData)==null?void 0:z.label)!=null?c:""},y=function(){var F,z,c;
return(c=(F=I.data().opponentLogoAccessibility)==null?void 0:(z=F.accessibilityData)==null?void 0:z.label)!=null?c:""},k=_.cj(SSO,function(){return I.data().entityKey});
return _.P("fantasy-win-probability-view-model",{class:"ytwFantasyWinProbabilityViewModelHost"},_.P("div",{class:"ytwFantasyWinProbabilityViewModelTop"},_.P(_.Dx,{cond:function(){return I.data().userLogo},
then:function(F){return _.P(_.x$,{className:"ytwFantasyWinProbabilityViewModelLogo",data:F,alt:C})}}),_.P("h3",{class:"ytwFantasyWinProbabilityViewModelTitle"},_.P(_.wh,{text:function(){return I.data().title}})),_.P(_.Dx,{cond:function(){return I.data().opponentLogo},
then:function(F){return _.P(_.x$,{className:"ytwFantasyWinProbabilityViewModelLogo",data:F,alt:y})}})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelBottom"},_.P("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.P(_.wh,{text:function(){var F;
return(F=k())==null?void 0:F.userWinNumberLabel}})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelProbabilityBars"},_.P("div",{class:_.sZ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityUserBar"),
style:_.cP({flex:function(){var F,z;return(z=(F=k())==null?void 0:F.userWinNumber)!=null?z:50}})}),_.P("div",{class:_.sZ("ytwFantasyWinProbabilityViewModelProbabilityBar","ytwFantasyWinProbabilityViewModelProbabilityOpponentBar"),
style:_.cP({flex:function(){var F,z;return(z=(F=k())==null?void 0:F.opponentWinNumber)!=null?z:50}})})),_.P("div",{class:"ytwFantasyWinProbabilityViewModelPercentage"},_.P(_.wh,{text:function(){var F;
return(F=k())==null?void 0:F.opponentWinNumberLabel}}))))},"xd"),"fantasy-win-probability-view-model",{props:{data:_.As}});_.jz("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");
var lC=function(){var I=_.q.apply(this,arguments)||this;I.darkerPanels=_.V("web_watch_darker_panels");I.commentsHidePanelButton=!1;I.isWatchGrid=!1;I.continuationShowButton=!1;I.isSearch=!1;I.isConstrainedList=!1;I.isWatch=!1;I.eligibleToSwitchToGrid=!1;I.epRestyle=!1;I.isCarouselInFeed=!0;I.topSpacingZero=!1;I.continuationIsInitialLoad=!0;I.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");I.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");I.actionMap={"yt-item-section-continuation-action":"handleYtItemSectionContinuation",
"yt-item-section-replace-action":"handleYtItemSectionReplace"};I.nextContinuation={continuationType:"itemSectionContinuation",usePost:!0};return I};
_.R(lC,_.q);_.u=lC.prototype;_.u.updateLockupContainerTypes=function(I){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#contents yt-lockup-view-model")))==null||C.forEach(function(y){y.containerType=I})}};
_.u.getItemsPath=function(){return"data.contents"};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{commentsHeaderRenderer:{component:"ytd-comments-header-renderer",properties:{engagementPanel:"[[engagementPanel]]",hidePanelButton:"[[commentsHidePanelButton]]"}},sortFilterHeaderRenderer:{component:"ytd-sort-filter-header-renderer",properties:{isPlaylist:"[[isPlaylist]]",isClipList:"[[isClipList]]"}},itemSectionHeaderRenderer:"ytd-item-section-header-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",
chipCloudRenderer:"yt-chip-cloud-renderer",feedFilterChipBarRenderer:"ytd-feed-filter-chip-bar-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",chipBarViewModel:{component:"chip-bar-view-model",noInjection:!0}}},shownItems:{id:"contents",mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-item-section-renderer lockup",force16By9ThumbnailAspectRatio:!0},properties:{sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",thumbnailFixedWidth:"[[thumbnailWidth]]",
lockupExperiments:"[[lockupExperiments]]",containerType:"[[lockupContainerType]]"}},alertBannerViewModel:{component:"yt-alert-banner-view-model"},aboutChannelRenderer:"ytd-about-channel-renderer",activityItemRenderer:"yt-activity-item-renderer",adSlotRenderer:"ytd-ad-slot-renderer",backgroundPromoRenderer:"ytd-background-promo-renderer",backstagePostThreadRenderer:"ytd-backstage-post-thread-renderer",buttonRenderer:"ytd-button-renderer",carouselAdRenderer:"ytd-carousel-ad-renderer",cardItemContainerRenderer:{component:"yt-card-item-container-renderer",
properties:{compact:"[[engagementPanel]]"}},cardItemRenderer:"yt-card-item-renderer",carouselItemRenderer:{component:"ytd-carousel-item-renderer",params:{isCarouselInFeed:!0}},channelAboutFullMetadataRenderer:"ytd-channel-about-metadata-renderer",channelFeaturedContentRenderer:"ytd-channel-featured-content-renderer",channelRenderer:{component:"ytd-channel-renderer",properties:{compactStyle:"[[engagementPanel]]"}},channelSwitcherPageRenderer:"ytd-channel-switcher-page-renderer",channelVideoPlayerRenderer:"ytd-channel-video-player-renderer",
chipCloudRenderer:{component:"yt-chip-cloud-renderer",properties:{isSearch:"[[isSearch]]"}},chipsShelfViewModel:"chips-shelf-view-model",clarificationRenderer:"ytd-clarification-renderer",commentHistoryEntryRenderer:"ytd-comment-history-entry-renderer",commentThreadRenderer:{component:"ytd-comment-thread-renderer",properties:{engagementPanel:"[[engagementPanel]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",
compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactTextPromoRenderer:"ytd-compact-text-promo-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",connectedAppRenderer:"ytd-connected-app-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:"ytd-destination-shelf-renderer",didYouMeanRenderer:"yt-did-you-mean-renderer",displayAdRenderer:"ytd-display-ad-renderer",
emergencyOneboxRenderer:"ytd-emergency-onebox-renderer",eomSettingsDisclaimerRenderer:"ytd-eom-settings-disclaimer-renderer",exploratoryResultsRenderer:"ytd-exploratory-results-renderer",faqSectionRenderer:"yt-faq-section-renderer",fantasyLeagueSummaryViewModel:"fantasy-league-summary-view-model",fantasyMatchupViewModel:"ytw-fantasy-matchup-view-model",fantasyWeeklyMatchupSummaryViewModel:"ytw-fantasy-weekly-matchup-summary-view-model",fantasyWinProbabilityViewModel:"fantasy-win-probability-view-model",
feedbackElicitationSingleQuestionRenderer:"ytd-feedback-elicitation-single-question-renderer",feedEntryRenderer:"ytd-feed-entry-renderer",feedNudgeRenderer:"ytd-feed-nudge-renderer",gridRenderer:"ytd-grid-renderer",richGridRenderer:"ytd-rich-grid-renderer",handlesClaimingHeaderRenderer:"ytd-handles-claiming-header-renderer",handlesClaimingUpdateSocialRenderer:"ytd-handles-claiming-update-social-renderer",handlesClaimingVanityInfoRenderer:"ytd-handles-claiming-vanity-info-renderer",handlesClaimingVideoItemRenderer:"ytd-handles-claiming-video-item-renderer",
handlesClaimingTitleImagesSectionRenderer:"ytd-handles-claiming-title-images-section-renderer",handlesClaimingFaqSectionRenderer:"ytd-handles-claiming-faq-section-renderer",hashtagTileRenderer:"ytd-hashtag-tile-renderer",horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"}},includingResultsForRenderer:"yt-including-results-for-renderer",infoPanelContainerRenderer:"ytd-info-panel-container-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",
labsEditRenderer:"ytd-labs-edit-renderer",labsHeaderRenderer:"ytd-labs-header-renderer",labsItemRenderer:"ytd-labs-item-renderer",liveChatHistoryEntryRenderer:"ytd-live-chat-history-entry-renderer",macroMarkersPanelItemViewModel:"macro-markers-panel-item-view-model",messageRenderer:{component:"ytd-message-renderer",properties:{panel:"[[engagementPanel]]"}},miniGameCardViewModel:{component:"ytd-mini-game-card-view-model",properties:{isSearch:"[[isSearch]]"}},movieRenderer:"ytd-movie-renderer",musicPassFeatureInfoRenderer:"yt-music-pass-feature-info-renderer",
newspaperRenderer:"ytd-newspaper-renderer",noResultsFoundShowingResultsForRenderer:"yt-no-results-found-showing-results-for-renderer",notificationRenderer:"ytd-notification-renderer",offerItemExpandedRenderer:"yt-offer-item-expanded-renderer",offerItemRenderer:"yt-offer-item-renderer",offerItemUpsellRenderer:"yt-offer-item-upsell-renderer",officialCardViewModel:{component:"yt-official-card-view-model",properties:{className:"[[is]]"}},playlistRenderer:{component:"ytd-playlist-renderer",properties:{isSearch:"[[isSearch]]"}},
pageIntroductionRenderer:"ytd-page-introduction-renderer",playlistShowMetadataRenderer:"ytd-playlist-show-metadata-renderer",playlistVideoListRenderer:"ytd-playlist-video-list-renderer",playlistVideoRenderer:"ytd-playlist-video-renderer",premiumBrowseFooterRenderer:"ytd-premium-browse-footer-renderer",productDetailsRenderer:"ytd-product-details-renderer",productListHeaderRenderer:"ytd-product-list-header-renderer",promotedSparklesTextSearchRenderer:"ytd-promoted-sparkles-text-search-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",
purchaseItemRenderer:"ytd-purchase-item-renderer",qrCodeRenderer:"yt-qr-code-renderer",radioRenderer:"ytd-radio-renderer",recognitionShelfRenderer:"ytd-recognition-shelf-renderer",redCancelSurveyRenderer:"ytd-red-cancel-survey-renderer",reelShelfRenderer:{component:"ytd-reel-shelf-renderer",properties:{isSearch:"[[isSearch]]",hideShelfHeader:"[[hideShortsShelfHeader]]"}},gridShelfViewModel:{component:"grid-shelf-view-model",properties:{shouldUseOwnContainerSize:"[[isSearch]]",layoutContainerWidth:"[[containerWidth]]",
className:"[[is]]"},params:{marginSettings:0}},richShelfRenderer:"ytd-rich-shelf-renderer",resultsWithoutQuotesRenderer:"yt-results-without-quotes-renderer",searchFrictionViewModel:"ytw-search-friction-view-model",searchNoResultsRenderer:"yt-search-no-results-renderer",searchPyvRenderer:"ytd-search-pyv-renderer",sectionGroupViewModel:"yt-section-group-view-model",sectionHeaderViewModel:"yt-section-header-view-model",settingsOptionsRenderer:"ytd-settings-options-renderer",shelfRenderer:{component:"ytd-shelf-renderer",
properties:{isSearch:"[[isSearch]]",isConstrainedList:"[[isConstrainedList]]"}},showingResultsForRenderer:"yt-showing-results-for-renderer",showRenderer:{component:"ytd-show-renderer",properties:{isSearch:"[[isSearch]]"}},simpleTextSectionRenderer:"ytd-simple-text-section-renderer",sponsorshipsAlertRenderer:"ytd-sponsorships-alert-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",subscriptionProductHeaderRenderer:"yt-subscription-product-header-renderer",subscriptionProductRenderer:"yt-subscription-product-renderer",
subscriptionProductUpsellOfferRenderer:"yt-subscription-product-upsell-offer-renderer",toggleFormFieldRenderer:"yt-toggle-form-field-renderer",unlimitedManageSubscriptionPageRenderer:"yt-unlimited-manage-subscription-page-renderer",unlimitedPageFeatureInfoRenderer:"ytd-unlimited-page-feature-info-renderer",unlimitedPageHeaderRenderer:"yt-unlimited-page-header-renderer",unlimitedUserNotificationRenderer:"yt-unlimited-user-notification-renderer",videoRenderer:{component:"ytd-video-renderer",properties:{isSearch:"[[isSearch]]"}},
webAnswerRenderer:"ytd-web-answer-renderer",ypcOffersListRenderer:"yt-ypc-offers-list-renderer",redeemCodeRenderer:"ytd-redeem-code-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{showButton:"[[continuationShowButton]]",isCommentsSection:"[[continuationIsCommentsSection]]",isInitialLoad:"[[continuationIsInitialLoad]]"}},infoPanelContentRenderer:"ytd-info-panel-content-renderer",errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer",
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer",listItemViewModel:"ytd-list-item-view-model",overviewAnswerViewModel:"ytd-overview-answer-view-model",coursePerksViewModel:"yt-course-perks-view-model",courseProgressViewModel:"yt-course-progress-view-model",courseRatingsViewModel:"yt-course-ratings-view-model",videoDescriptionHeaderRenderer:"ytd-video-description-header-renderer",videoDescriptionInfocardsSectionRenderer:"ytd-video-description-infocards-section-renderer",expandableVideoDescriptionBodyRenderer:{component:"ytd-expandable-video-description-body-renderer",
properties:{engagementPanel:"[[engagementPanel]]"}},videoAttributesSectionViewModel:"yt-video-attributes-section-view-model",videoAttributeViewModel:"yt-video-attribute-view-model",liveViewerLeaderboardItemViewModel:{component:"ytvl-live-viewer-leaderboard-item-view-model"},liveLeaderboardItemViewModel:{component:"ytvl-live-leaderboard-item-view-model"},accordionViewModel:{component:"yt-accordion-view-model"},learningJourneyLoaderViewModel:{component:"yt-learning-journey-loader-view-model"},learningJourneyZeroStateViewModel:{component:"yt-learning-journey-zero-state"},
learningJourneyQuizViewModel:{component:"learning-journey-quiz-view-model"}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",properties:{showButton:"[[showButton]]",disablePrescanVisibility:"[[continuationDisablePrescanVisibility]]"}},reloadContinuationData:{component:"yt-reload-continuation"}},renderPriority:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")}}};
_.u.created=function(){this.JSC$14384_cachedViewportHeight=_.Aq("initialInnerHeight")||window.innerHeight};
_.u.commentsHidePanelButtonChanged=function(){if(this.isWatchGrid){var I=_.f(this.hostElement).querySelector("ytd-comments-header-renderer");I&&(I.hidePanelButton=this.commentsHidePanelButton)}};
_.u.onRetrieveLocation=function(I,C){this.containsComments()&&(this.firstCommentsLoaded=C.hasComments=!0)};
_.u.containsComments=function(){return this.get("data.sectionIdentifier")==="comment-item-section"};
_.u.onLoadReloadContinuation=function(I,C){var y=this;I.stopPropagation();this.isReloading=!0;_.k3(this.hostElement,"yt-retrieve-location",{locationRetrieved:function(k){var F=_.N().resolve(_.pp);k=C(k);F.postData(k).then(function(z){y.onReloadContinuationData(z)})}})};
_.u.onReloadContinuationData=function(I){if(I=this.get("response.continuationContents.itemSectionContinuation",I)||this.get("response.contents.itemSectionRenderer",I)||this.get("response.continuationContents.sectionListContinuation.contents.0.itemSectionRenderer",I)||this.get("response.continuationContents.relatedChipsContinuation.continuation.watchNextSecondaryResultsRenderer",I))this.set("data.contents",I.contents||I.results),I.header&&this.set("data.header",I.header),this.set("data.continuations",
I.continuations||[]);this.isReloading=!1};
_.u.computeContentsClass=function(I){return I?"reloading":""};
_.u.computeContainerWidth=function(){return this.hostElement.clientWidth};
_.u.computeSectionIdentifier=function(I){return I==null?void 0:I.sectionIdentifier};
_.u.computeFitContainer=function(I){return(I==null?void 0:I.sectionIdentifier)==="youchat-item-section"};
_.u.computeShowButton=function(){return!!this.firstCommentsLoaded&&this.containsComments()&&_.V("kevlar_disable_comments_auto_load")};
_.u.onServiceRequestCompleted=function(){this.continuationIsInitialLoad=!1};
_.u.computeIsReloading=function(){return this.isReloading||this.ytContinuationHandlerBehavior.continuationIsReloading};
_.u.computeHasDestinationShelfRenderer=function(I){var C,y;return!!(I==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:y.destinationShelfRenderer)};
_.u.computeHasSectionGroupViewModel=function(I){var C,y;return!!(I==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:y.sectionGroupViewModel)};
_.u.computeStaticCommentsHeader=function(I){return I&&this.containsComments()};
_.u.computeEpRestyle=function(I){return _.V("web_ep_restyling")&&I&&this.containsComments()};
_.u.computeIsContinuationCommentSection=function(I){return(I==null?void 0:I.targetId)==="shorts-engagement-panel-comments-section"||(I==null?void 0:I.targetId)==="comments-section"};
_.u.computeSuppressPaddingDisclaimer=function(){var I,C,y,k;return!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:(k=y.productListHeaderRenderer)==null?0:k.suppressPaddingDisclaimer)};
_.u.computeHeaderStyle=function(I){switch(I==null?void 0:I.headerStyle){case "ITEM_SECTION_HEADER_STYLE_STICKY":return"sticky-header";default:return""}};
_.u.dataChanged=function(){this.firstCommentsLoaded=!1};
_.u.observeDataContentsLength=function(){var I,C;((I=this.data)==null?0:(C=I.contents)==null?0:C.length)&&this.data.contents.length>1?this.continuationIsInitialLoad=!1:this.continuationIsInitialLoad=!0};
_.u.onYtDismissibleItemDismissedChange=function(I){this._setItemDismissed(I.type==="yt-dismissible-item-dismissed")};
_.u.triggerContinuations=function(){for(var I=_.f(this.hostElement).querySelector("#continuations").children,C=0;C<I.length;C++)I[C].trigger()};
_.u.triggerInitialContinuations=function(){for(var I=_.f(this.hostElement).querySelector("#continuations").children,C=0;C<I.length;C++)I[C].triggerIfNotPreviouslyTriggered()};
_.u.handleYtItemSectionContinuation=function(I,C){var y;C&&((y=this.data)==null?void 0:y.sectionIdentifier)!==C||(this.set("data.continuations",[I]),this.triggerContinuations())};
_.u.handleYtItemSectionReplace=function(I,C){var y;C&&((y=this.data)==null?void 0:y.sectionIdentifier)!==C||(this.set("data.contents",I),this.set("data.continuations",[]))};
_.u.computeUseHeightHack=function(I){return I&&!_.V("kevlar_disable_height_hack")};
_.u.computeTopSpacingZero=function(I){return I};
_.u.continuationShowButtonChanged=function(){var I=_.f(this.hostElement).querySelector("ytd-continuation-item-renderer");I&&(I.showButton=this.continuationShowButton)};
_.u.dataChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("data-changed",this.data))};
_.H1.Object.defineProperties(lC.prototype,{hideShortsShelfHeader:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("web_shorts_wn_shelf_header_tuning")}},
thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return this.isSearch?"50%":this.isWatch?"168px":"246px"}},
sizing:{configurable:!0,enumerable:!0,get:function(){return this.isWatch?"COMPACT":"STANDARD"}},
lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid?this.isGridViewEnabled?2:3:3}},
isPlaylist:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:y.playlistVideoListRenderer)}},
isClipList:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k,F,z,c;return!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:(k=y.shelfRenderer)==null?0:(F=k.content)==null?0:(z=F.gridRenderer)==null?0:(c=z.targetId)==null?0:c.includes("browse-feedFEclips"))}},
isPlaylistVideoContainer:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:y.playlistVideoRenderer)}},
isSearchFrictionPage:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C[0])==null?0:y.searchFrictionViewModel)}},
lockupExperiments:{configurable:!0,enumerable:!0,get:function(){if(this.isSearch)return{alwaysRespectPodcastShowAspectRatio:_.oD("podcast_show_lockup_style_web")==="square_thumbnail",useLegacyTypography:!_.V("use_modern_typography_on_search")}}},
typographyBump:{configurable:!0,enumerable:!0,get:function(){return this.isSearch&&_.V("use_modern_typography_on_search")}},
nonDeferredItemCount:{configurable:!0,enumerable:!0,get:function(){if(this.isSearchDova)return Math.ceil((this.JSC$14384_cachedViewportHeight-130)/150)},
set:function(){}}});
lC.prototype.dataChangedForBinding=lC.prototype.dataChangedForBinding;lC.prototype.continuationShowButtonChanged=lC.prototype.continuationShowButtonChanged;lC.prototype.onYtDismissibleItemDismissedChange=lC.prototype.onYtDismissibleItemDismissedChange;lC.prototype.observeDataContentsLength=lC.prototype.observeDataContentsLength;lC.prototype.dataChanged=lC.prototype.dataChanged;lC.prototype.onServiceRequestCompleted=lC.prototype.onServiceRequestCompleted;lC.prototype.onLoadReloadContinuation=lC.prototype.onLoadReloadContinuation;
lC.prototype.onRetrieveLocation=lC.prototype.onRetrieveLocation;lC.prototype.commentsHidePanelButtonChanged=lC.prototype.commentsHidePanelButtonChanged;lC.prototype.updateLockupContainerTypes=lC.prototype.updateLockupContainerTypes;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],lC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lC.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],lC.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],lC.prototype,"ytNextContinuationBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],lC.prototype,"ytContinuationHandlerBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lC.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],lC.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lC.prototype,"darkerPanels",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],lC.prototype,"engagementPanel",void 0);
_.E([_.d(),_.h("design:type",Object)],lC.prototype,"commentsHidePanelButton",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"isWatchGrid",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"continuationShowButton",void 0);_.E([_.d({computed:"computeIsContinuationCommentSection(data)"}),_.h("design:type",Boolean)],lC.prototype,"continuationIsCommentsSection",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],lC.prototype,"autoFill",void 0);
_.E([_.d(),_.h("design:type",Boolean)],lC.prototype,"continuationDisablePrescanVisibility",void 0);_.E([_.d(),_.h("design:type",Boolean)],lC.prototype,"isReloading",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"isSearch",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"isConstrainedList",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"isWatch",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.d({selector:_.KM}),_.h("design:type",Object)],lC.prototype,"isGridViewEnabled",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeEpRestyle(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Object)],lC.prototype,"epRestyle",void 0);_.E([_.v("isWatch"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"hideShortsShelfHeader",null);
_.E([_.v("isSearch","isWatch"),_.h("design:type",String),_.h("design:paramtypes",[])],lC.prototype,"thumbnailWidth",null);_.E([_.v("isSearch","isWatch"),_.h("design:type",String),_.h("design:paramtypes",[])],lC.prototype,"sizing",null);_.E([_.v("isWatch","isGridViewEnabled","data"),_.d({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],lC.prototype,"lockupContainerType",null);
_.E([_.FI("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],lC.prototype,"updateLockupContainerTypes",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],lC.prototype,"pageSubtype",void 0);_.E([_.d({computed:"computeContainerWidth()"}),_.h("design:type",Number)],lC.prototype,"containerWidth",void 0);_.E([_.d(),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"isPlaylist",null);
_.E([_.d(),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"isClipList",null);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"isCarouselInFeed",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"isPlaylistVideoContainer",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"isSearchFrictionPage",null);
_.E([_.d({reflectToAttribute:!0,computed:"computeUseHeightHack(isSearch)"}),_.h("design:type",Boolean)],lC.prototype,"useHeightHack",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeTopSpacingZero(isSearch)"}),_.h("design:type",Object)],lC.prototype,"topSpacingZero",void 0);_.E([_.d({computed:"computeShowButton(data.sectionIdentifier, firstCommentsLoaded)"}),_.h("design:type",Boolean)],lC.prototype,"showButton",void 0);
_.E([_.d(),_.h("design:type",Boolean)],lC.prototype,"firstCommentsLoaded",void 0);_.E([_.d(),_.h("design:type",Object)],lC.prototype,"continuationIsInitialLoad",void 0);_.E([_.d(),_.h("design:type",Boolean)],lC.prototype,"isSearchDova",void 0);_.E([_.d({reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],lC.prototype,"itemDismissed",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeSectionIdentifier(data)"}),_.h("design:type",String)],lC.prototype,"sectionIdentifier",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeFitContainer(data)"}),_.h("design:type",String)],lC.prototype,"fitContainer",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasDestinationShelfRenderer(data)"}),_.h("design:type",Boolean)],lC.prototype,"hasDestinationShelfRenderer",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStaticCommentsHeader(engagementPanel, data.sectionIdentifier)"}),_.h("design:type",Boolean)],lC.prototype,"staticCommentsHeader",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lC.prototype,"enableSqueezebackPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lC.prototype,"enableAnchoredPanel",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasSectionGroupViewModel(data)"}),_.h("design:type",Boolean)],lC.prototype,"hasSectionGroupViewModel",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeSuppressPaddingDisclaimer(data)"}),_.h("design:type",Boolean)],lC.prototype,"suppressDisclaimerSeparator",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHeaderStyle(data)"}),_.h("design:type",String)],lC.prototype,"headerStyle",void 0);_.E([_.v("isSearch"),_.h("design:type",Object),_.h("design:paramtypes",[])],lC.prototype,"lockupExperiments",null);
_.E([_.v("isSearch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lC.prototype,"typographyBump",null);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],lC.prototype,"header",void 0);_.E([_.FI("commentsHidePanelButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"commentsHidePanelButtonChanged",null);
_.E([_.km("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],lC.prototype,"onRetrieveLocation",null);_.E([_.km("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Function]),_.h("design:returntype")],lC.prototype,"onLoadReloadContinuation",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"onServiceRequestCompleted",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"dataChanged",null);_.E([_.rW("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"observeDataContentsLength",null);
_.E([_.km("yt-dismissible-item-dismissed"),_.km("yt-dismissible-item-undismissed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],lC.prototype,"onYtDismissibleItemDismissedChange",null);_.E([_.FI("continuationShowButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"continuationShowButtonChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lC.prototype,"dataChangedForBinding",null);lC=_.E([_.m({is:"ytd-item-section-renderer",disableElementRegistration:!0})],lC);
_.Z(lC,"ytd-item-section-renderer",function(){if(lPw!==void 0)return lPw;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lPw=I},{mode:1});var CDS;var AbY=_.Ee(_.PQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads"));var GQI={url:"https://www.gstatic.com/youtube/img/useredu/smart_downloads_optin_banner.svg"};var sB8={},K3I=(sB8[0]={title:_.Cx(_.PQ("DOWNLOADS",void 0,"Downloads")),iconType:"OFFLINE_DOWNLOAD",topButtonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("DOWNLOADS_SETTINGS",void 0,"Downloads Settings")),loggingDirectives:{clientVeSpec:{uiType:21412}},navigationEndpoint:M1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:51721,videoClientVE:42356},sB8[1]={title:_.Cx(_.PQ("SMART_DOWNLOADS",void 0,"Smart downloads")),topButtonRenderer:{icon:{iconType:"SETTINGS"},
loggingDirectives:{clientVeSpec:{uiType:129732}},navigationEndpoint:M1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},sectionClientVE:139572,videoClientVE:129218},sB8);_.jz("sharingItemSection","itemSectionRenderer","ytd-item-section-renderer");var X3=function(){var I=_.q.apply(this,arguments)||this;I.allVideosCount=0;I.allPlaylistCount=0;I.shouldRenderDownloadsBanner=!1;I.hasOptedIntoSmartDownloads=!1;I.areAllSmartDownloadsDeleted=!1;I.smartDownloadsCompleted=!1;return I};
_.R(X3,_.q);X3.prototype.configureRendererStamper=function(){return{renderableData:{id:"contents",mapping:{itemSectionRenderer:"ytd-item-section-renderer"}}}};
X3.prototype.attached=function(){this.downloadsToRenderChanged()};
X3.prototype.detached=function(){this.set("renderableData",{})};
X3.prototype.downloadsToRenderChanged=function(){var I=_.Hg().getState().entities,C=_.Xy(I),y=_.V("kevlar_playlist_dl_page_killswitch")?F_I(I):_.$9(I),k=_.CvK(I),F=_.QE(C);I=_.RQ(I);this.set("renderableData",vnm(y,C,k,this.hasOptedIntoSmartDownloads,this.shouldRenderDownloadsBanner,this.areAllSmartDownloadsDeleted,F,I))};
X3.prototype.downloadsToRenderChanged=X3.prototype.downloadsToRenderChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],X3.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],X3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],X3.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],X3.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],X3.prototype,"renderableData",void 0);_.E([_.d({selector:_.p3m}),_.h("design:type",Object)],X3.prototype,"allVideosCount",void 0);_.E([_.d({selector:JVF}),_.h("design:type",Object)],X3.prototype,"allPlaylistCount",void 0);_.E([_.d({selector:_.$Dt}),_.h("design:type",Object)],X3.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.d({selector:_.RSm}),_.h("design:type",Object)],X3.prototype,"hasOptedIntoSmartDownloads",void 0);
_.E([_.d({selector:_.bZF}),_.h("design:type",Object)],X3.prototype,"areAllSmartDownloadsDeleted",void 0);_.E([_.d({selector:Y2Y}),_.h("design:type",Object)],X3.prototype,"smartDownloadsCompleted",void 0);_.E([_.rW("allVideosCount","shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","areAllSmartDownloadsDeleted","smartDownloadsCompleted","allPlaylistCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X3.prototype,"downloadsToRenderChanged",null);
X3=_.E([_.m({is:"ytd-offline-item-section-renderer",disableElementRegistration:!0})],X3);
_.Z(X3,"ytd-offline-item-section-renderer",function(){if(CDS!==void 0)return CDS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return CDS=I},
{mode:1});var oa5;var yIS;var $R=function(){return _.q.apply(this,arguments)||this};
_.R($R,_.q);
$R.prototype.onDataChanged=function(){if(this.JSC$14411_lastData){var I=this.getFilterClass(this.JSC$14411_lastData.status);I&&this.hostElement.classList.remove(I)}var C;(I=this.getFilterClass((C=this.data)==null?void 0:C.status))&&this.hostElement.classList.add(I);I==="selected"?_.f(this.hostElement).querySelector("#endpoint").setAttribute("aria-selected","true"):_.f(this.hostElement).querySelector("#endpoint").removeAttribute("aria-selected");I==="disabled"?_.f(this.hostElement).querySelector("#endpoint").setAttribute("aria-disabled","true"):
_.f(this.hostElement).querySelector("#endpoint").removeAttribute("aria-disabled");this.JSC$14411_lastData=this.data};
$R.prototype.getFilterClass=function(I){switch(I){case "FILTER_STATUS_SELECTED":return"selected";case "FILTER_STATUS_DISABLED":return"disabled"}};
$R.prototype.onDataChanged=$R.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$R.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$R.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$R.prototype,"onDataChanged",null);$R=_.E([_.m({is:"ytd-search-filter-renderer",disableElementRegistration:!0})],$R);
_.Z($R,"ytd-search-filter-renderer",function(){if(yIS!==void 0)return yIS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return yIS=I},{mode:_.Ij("kevlar_poly_si_batch_j075")?1:2});var Rb=function(){return _.q.apply(this,arguments)||this};
_.R(Rb,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Rb.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Rb.prototype,"data",void 0);Rb=_.E([_.m({is:"ytd-search-filter-group-renderer",disableElementRegistration:!0})],Rb);
_.Z(Rb,"ytd-search-filter-group-renderer",function(){if(oa5!==void 0)return oa5;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oa5=I},{mode:_.Ij("kevlar_poly_si_batch_j075")?1:2});var kte;var bC=function(){return _.q.apply(this,arguments)||this};
_.R(bC,_.q);bC.prototype.toggleFilters=function(){this.renderCollapsibleMenu||(this.renderCollapsibleMenu=!0,_.zJ());this.isCollapsed=!this.isCollapsed};
bC.prototype.navigateToAboutTheseResultsPage=function(){var I=cn("https://www.youtube.com/howyoutubeworks/product-features/search/");I?_.XG(window,I,"_blank"):_.v5(Error("Rh"))};
bC.prototype.dataChanged=function(){this.isCollapsed=!0};
bC.prototype.computeShowBottomBorder=function(){var I,C,y;return!!((I=this.data)==null?0:(C=I.button)==null?0:C.toggleButtonRenderer)||!((y=this.data)==null||!y.aboutTheseResultsButton)};
bC.prototype.dataChanged=bC.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bC.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bC.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShowBottomBorder(data)"}),_.h("design:type",Boolean)],bC.prototype,"showBottomBorder",void 0);_.E([_.d(),_.h("design:type",Boolean)],bC.prototype,"renderCollapsibleMenu",void 0);
_.E([_.d(),_.h("design:type",Boolean)],bC.prototype,"isCollapsed",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bC.prototype,"dataChanged",null);bC=_.E([_.m({is:"ytd-search-sub-menu-renderer",disableElementRegistration:!0})],bC);
_.Z(bC,"ytd-search-sub-menu-renderer",function(){if(kte!==void 0)return kte;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return kte=I},{mode:1});var F$8;var uxw=new _.Jj("SECTION_LIST_RENDERER_TOKEN");var zUq;var YR=function(){return _.q.apply(this,arguments)||this};
_.R(YR,_.q);YR.prototype.computeStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],YR.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],YR.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],YR.prototype,"headerStyle",void 0);YR=_.E([_.m({is:"ytd-text-header-renderer",disableElementRegistration:!0})],YR);
_.Z(YR,"ytd-text-header-renderer",function(){if(zUq!==void 0)return zUq;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zUq=I},{mode:1});var TVq;var GV=function(){return _.q.apply(this,arguments)||this};
_.R(GV,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],GV.prototype,"data",void 0);GV=_.E([_.m({is:"ytd-minor-moment-header-renderer",disableElementRegistration:!0})],GV);
_.Z(GV,"ytd-minor-moment-header-renderer",function(){if(TVq!==void 0)return TVq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TVq=I},{mode:1});var cId;var fJ=function(){return _.q.apply(this,arguments)||this};
_.R(fJ,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fJ.prototype,"data",void 0);fJ=_.E([_.m({is:"ytd-minor-moment-setting-alert-renderer",disableElementRegistration:!0})],fJ);
_.Z(fJ,"ytd-minor-moment-setting-alert-renderer",function(){if(cId!==void 0)return cId;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cId=I},{mode:1});var eUe;var rIY;var Sm=function(){var I=_.q.apply(this,arguments)||this;I.booleanSettingById=!1;I.smartDownloadsEnabledVE=_.Dn(128287);I.smartDownloadsDisabledVE=_.Dn(128286);I.actionMap={"yt-settings-update-switch-command":"handleUpdateSettingsSwitch","yt-toggle-settings-switch":"onToggleSettingsSwitch"};return I};
_.R(Sm,_.q);_.u=Sm.prototype;_.u.attachSmartDownloadsSettingVes=function(){var I;this.activeVeForLogging||((I=this.data)==null?void 0:I.id)!=="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"||(_.oV(_.e2(),this.smartDownloadsEnabledVE),_.oV(_.e2(),this.smartDownloadsDisabledVE))};
_.u.dataChanged=function(){this.attachSmartDownloadsSettingVes();this.maybeLogSmartDownloadsSettingVisibility();this.initializeIsEnabled();_.k3(this.hostElement,"yt-settings-switch-ready")};
_.u.initializeIsEnabled=function(){this.data&&this.data.id&&this.data.enabled===void 0&&this.set("data.enabled",this.getUserPreference())};
_.u.onSwitchChange=function(I){this.data&&(this.maybeLogSmartDownloadsSettingClick(),(I=_.m0(I).checked?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&(_.V("kevlar_settings_switch_resolve_command_killswitch")?_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}}):this.ytComponentBehavior.resolveCommand(I)),this.data.requiresConfirmation&&this.set("data.enabled",!this.data.enabled))};
_.u.handleUpdateSettingsSwitch=function(I){(I=_.l(I,yZq))&&this.data&&this.data.id===I.id&&this.set("data.enabled",!!I.enabled)};
_.u.onToggleSettingsSwitch=function(I,C){this.data&&this.data.id===I&&this.set("data.enabled",C!=null?C:!this.data.enabled)};
_.u.getUserPreference=function(){switch(this.data.id){case "SETTINGS_OPTIONS_ID_TYPE_AUTONAV":return 1!==_.ho.getInstance().getState();case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return this.booleanSettingById;default:return!1}};
_.u.maybeLogSmartDownloadsSettingVisibility=function(){var I=_.Si(),C;I&&((C=this.data)==null?void 0:C.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&(this.booleanSettingById?(this.activeVeForLogging=this.smartDownloadsEnabledVE,_.Z0(I,[this.smartDownloadsEnabledVE]),_.BQ(I,[this.smartDownloadsDisabledVE])):(this.activeVeForLogging=this.smartDownloadsDisabledVE,_.Z0(I,[this.smartDownloadsDisabledVE]),_.BQ(I,[this.smartDownloadsEnabledVE])))};
_.u.maybeLogSmartDownloadsSettingClick=function(){var I;((I=this.data)==null?void 0:I.id)==="SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS"&&this.activeVeForLogging&&_.kU(_.e2(),this.activeVeForLogging)};
_.u.updateDataEnabledFromBinding=function(I){this.set("data.enabled",I.detail.value)};
_.H1.Object.defineProperties(Sm.prototype,{toggleAriaLabel:{configurable:!0,enumerable:!0,get:function(){var I=this.get("toggleAccessibility.accessibilityData.label",this.data);this.data&&this.data.title&&!I&&(I=this.ytRendererBehavior.getSimpleString(this.data.title));return I}}});
Sm.prototype.dataChanged=Sm.prototype.dataChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],Sm.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Sm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Sm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Sm.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Sm.prototype,"data",void 0);_.E([_.d({selector:function(I,C){if(Object.keys(I==null?void 0:I.entities).length)switch(C){case "SETTINGS_OPTIONS_ID_TYPE_SMART_DOWNLOADS":return uHm(I.entities,"SMART_DOWNLOADS_ENABLED");default:return!1}},
selectorArgs:["data.id"]}),_.h("design:type",Object)],Sm.prototype,"booleanSettingById",void 0);_.E([_.d(),_.h("design:type",_.G5)],Sm.prototype,"activeVeForLogging",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Sm.prototype,"toggleAriaLabel",null);_.E([_.rW("data"),_.rW("booleanSettingById"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sm.prototype,"dataChanged",null);
Sm=_.E([_.m({is:"ytd-settings-switch-renderer",disableElementRegistration:!0})],Sm);
_.Z(Sm,"ytd-settings-switch-renderer",function(){if(rIY!==void 0)return rIY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rIY=I},{mode:1});var KJ=function(){return _.q.apply(this,arguments)||this};
_.R(KJ,_.q);KJ.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}}}}};
_.H1.Object.defineProperties(KJ.prototype,{contentsClassName:{configurable:!0,enumerable:!0,get:function(){if(!this.data)return"";var I=this.data.hideBottomSeparator?"":"with-bottom-separator";this.data.removeLeftMargin&&(I+=" remove-left-margin");this.data.extraBottomSpace&&(I+=" extra-bottom-space");return I}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KJ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],KJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KJ.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],KJ.prototype,"contentsClassName",null);KJ=_.E([_.m({is:"ytd-minor-moment-setting-section-renderer",disableElementRegistration:!0})],KJ);
_.Z(KJ,"ytd-minor-moment-setting-section-renderer",function(){if(eUe!==void 0)return eUe;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return eUe=I},{mode:1});var imS;var AK=function(){return _.q.apply(this,arguments)||this};
_.R(AK,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],AK.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AK.prototype,"data",void 0);AK=_.E([_.m({disableElementRegistration:!0,is:"ytd-empty-product-details-renderer"})],AK);
_.Z(AK,"ytd-empty-product-details-renderer",function(){if(imS!==void 0)return imS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return imS=I},{mode:1});var wdY;var nad;var gB=function(){var I=_.q.apply(this,arguments)||this;I.expanded=!0;return I};
_.R(gB,_.q);gB.prototype.getBadgeRowClass=function(I,C,y){for(var k=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),F=k.next();!F.done;F=k.next())F.value.onShow();I=I.selected;return y?I!==-1?I===C?"badge-line badge-selected":"badge-line badge-not-selected":"badge-line":(I!==void 0?I:0)===C?"badge-line":"badge-hidden"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],gB.prototype,"expanded",void 0);gB=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-loyalty-badges-renderer"})],gB);
_.Z(gB,"ytd-sponsorships-loyalty-badges-renderer",function(){if(nad!==void 0)return nad;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nad=I},{mode:1});var PDq;var vL=function(){var I=_.q.apply(this,arguments)||this;I.expanded=!0;return I};
_.R(vL,_.q);vL.prototype.getContainerClasses=function(I,C){I=I?"expanded":"collapsed";C&&(I+=" item");return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vL.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vL.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],vL.prototype,"expanded",void 0);vL=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perk-renderer"})],vL);
_.Z(vL,"ytd-sponsorships-perk-renderer",function(){if(PDq!==void 0)return PDq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return PDq=I},{mode:1});var L$u;var WL=function(){var I=_.q.apply(this,arguments)||this;I.expanded=!0;return I};
_.R(WL,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WL.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],WL.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],WL.prototype,"expanded",void 0);WL=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-perks-renderer"})],WL);
_.Z(WL,"ytd-sponsorships-perks-renderer",function(){if(L$u!==void 0)return L$u;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return L$u=I},{mode:1});var dB=function(){var I=_.q.apply(this,arguments)||this;I.isCollapsed=!1;return I};
_.R(dB,_.q);dB.prototype.onDataChanged=function(){this.data&&(this.isCollapsed=!this.data.startExpanded)};
dB.prototype.onExpandCollapse=function(){this.isCollapsed=!this.isCollapsed};
dB.prototype.updateExpandCollapseButton=function(){if(this.isCollapsed){var I;this.expandCollapseButton=_.l((I=this.data)==null?void 0:I.expandButton,_.fZ)}else{var C;this.expandCollapseButton=_.l((C=this.data)==null?void 0:C.collapseButton,_.fZ)}};
dB.prototype.updateExpandCollapseButton=dB.prototype.updateExpandCollapseButton;dB.prototype.onDataChanged=dB.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dB.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dB.prototype,"isCollapsed",void 0);_.E([_.d(),_.h("design:type",Object)],dB.prototype,"expandCollapseButton",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dB.prototype,"onDataChanged",null);_.E([_.rW("data","isCollapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dB.prototype,"updateExpandCollapseButton",null);dB=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-perks-renderer"})],dB);
_.Z(dB,"ytd-sponsorships-expandable-perks-renderer",function(){if(wdY!==void 0)return wdY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return wdY=I},{mode:1});var DOq;var xR=function(){return _.q.apply(this,arguments)||this};
_.R(xR,_.q);xR.prototype.handleAction=function(){this.data&&this.data.command&&this.ytComponentBehavior.resolveCommand(this.data.command)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xR.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xR.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xR.prototype,"data",void 0);xR=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-actionable-message-renderer"})],xR);
_.Z(xR,"ytd-sponsorships-actionable-message-renderer",function(){if(DOq!==void 0)return DOq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return DOq=I},{mode:1});var pdw;var qn=function(){return _.q.apply(this,arguments)||this};
_.R(qn,_.q);_.u=qn.prototype;_.u.configureRendererStamper=function(){return{"data.expandableItems":{id:"content-container",mapping:{sponsorshipsPerksRenderer:{component:"ytd-sponsorships-perks-renderer"},sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"}}}}};
_.u.getExpansionIcon=function(I){return I?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.u.onToggleExpand=function(){this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.u.computeMessageContainerStyle=function(I){var C=I.expandableItems?" style-clickable":"";return I.messageContainerStyle?I.messageContainerStyle.split("MESSAGE_CONTAINER_")[1].replace(/_/g,"-").toLowerCase()+C:"style-unspecified"+C};
_.u.isSinglePerk=function(I){return!!I.messageContainerStyle&&(I.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK"||I.messageContainerStyle==="MESSAGE_CONTAINER_STYLE_SINGLE_PERK_FIRST")};
_.u.onExpandedChanged=function(){var I=this;if(this.expanded)for(var C=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),y=C.next();!y.done;y=C.next())y.value.onShow();_.hn(this,function(){_.k3(I.hostElement,"yt-refit")})};
_.u.onDataChanged=function(){this.get("data.startExpanded")&&(this.expanded=!0)};
qn.prototype.onDataChanged=qn.prototype.onDataChanged;qn.prototype.onExpandedChanged=qn.prototype.onExpandedChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qn.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],qn.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qn.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],qn.prototype,"expanded",void 0);
_.E([_.FI("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qn.prototype,"onExpandedChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qn.prototype,"onDataChanged",null);qn=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-expandable-message-renderer"})],qn);
_.Z(qn,"ytd-sponsorships-expandable-message-renderer",function(){if(pdw!==void 0)return pdw;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return pdw=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var QBS;var mb=function(){return _.q.apply(this,arguments)||this};
_.R(mb,_.q);mb.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"}}}}};
mb.prototype.onDataChanged=function(){this.get("data.endButton.buttonRenderer.text")&&this.get("data.endButton.buttonRenderer.icon")&&(_.l(this.data.endButton,_.fZ).iconPosition="BUTTON_ICON_POSITION_TYPE_RIGHT_OF_TEXT")};
mb.prototype.onDataChanged=mb.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mb.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mb.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mb.prototype,"onDataChanged",null);
mb=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-heading-renderer"})],mb);
_.Z(mb,"ytd-sponsorships-heading-renderer",function(){if(QBS!==void 0)return QBS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return QBS=I},{mode:1});var NVY;var Z$=function(){return _.q.apply(this,arguments)||this};
_.R(Z$,_.q);_.E([_.d(),_.h("design:type",Object)],Z$.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Z$.prototype,"ytRendererBehavior",void 0);Z$=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-links-renderer"})],Z$);
_.Z(Z$,"ytd-sponsorships-links-renderer",function(){if(NVY!==void 0)return NVY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NVY=I},{mode:1});var V3d;var BL=function(){return _.q.apply(this,arguments)||this};
_.R(BL,_.q);_.u=BL.prototype;_.u.onDataChanged=function(){if(this.data&&this.data.expandableItems){var I;(I=_.f(this.hostElement).querySelector("tp-yt-paper-button"))==null||I.setAttribute("role","button")}else{var C;(C=_.f(this.hostElement).querySelector("tp-yt-paper-button"))==null||C.removeAttribute("role")}};
_.u.onToggleExpand=function(){this.data&&this.data.expandableItems&&this.set("expanded",!this.get("expanded"))};
_.u.getExpansionIcon=function(I){return I?"yt-icons:arrow_drop_up":"yt-icons:arrow_drop_down"};
_.u.getTileClasses=function(I){return I?"tile expandable-tile":"tile"};
_.u.getButtonDisabled=function(I){return I?void 0:""};
BL.prototype.onDataChanged=BL.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BL.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BL.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],BL.prototype,"expanded",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BL.prototype,"onDataChanged",null);
BL=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-list-tile-renderer"})],BL);
_.Z(BL,"ytd-sponsorships-list-tile-renderer",function(){if(V3d!==void 0)return V3d;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return V3d=I},{mode:1});var jBc;var laP;var E$=function(){return _.q.apply(this,arguments)||this};
_.R(E$,_.q);E$.prototype.configureRendererStamper=function(){return{"data.redeemButton":{id:"redeem-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],E$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],E$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],E$.prototype,"data",void 0);E$=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-renderer"})],E$);
_.Z(E$,"ytd-sponsorships-promotion-renderer",function(){if(laP!==void 0)return laP;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return laP=I},{mode:1});var Xdu;var hK=function(){return _.q.apply(this,arguments)||this};
_.R(hK,_.q);hK.prototype.configureRendererStamper=function(){return{"data.button":{id:"purchase-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hK.prototype,"data",void 0);hK=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-purchase-option-renderer"})],hK);
_.Z(hK,"ytd-sponsorships-purchase-option-renderer",function(){if(Xdu!==void 0)return Xdu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Xdu=I},{mode:1});var $Om;var RUc;var U$=function(){return _.q.apply(this,arguments)||this};
_.R(U$,_.q);_.E([_.d(),_.h("design:type",Object)],U$.prototype,"data",void 0);U$=_.E([_.m({disableElementRegistration:!0,is:"ytd-ypc-offer-promo-renderer"})],U$);
_.Z(U$,"ytd-ypc-offer-promo-renderer",function(){if(RUc!==void 0)return RUc;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return RUc=I},{mode:1});var HL=function(){return _.q.apply(this,arguments)||this};
_.R(HL,_.q);_.u=HL.prototype;
_.u.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"}}}}};
_.u.expansionCTA=function(I,C){return I&&(C?I.collapseCallToAction:I.expansionCallToAction)};
_.u.getExpansionIcon=function(I){return I?"arrow_drop_up":"arrow_drop_down"};
_.u.expansionCallToActionTap=function(){var I=this;this.expanded=!this.expanded;_.hn(this,function(){_.k3(I.hostElement,"yt-refit")})};
_.u.onDataChanged=function(){this.expanded=!this.get("data.expansionCallToAction");this.purchaseButtonClicked=!1;var I,C=(I=this.data)==null?void 0:I.onVisible;C&&this.ytComponentBehavior.resolveCommand(C)};
_.u.computeDisplayTitle=function(I){return!(!I||this.titledisplaystatus!=="show")};
_.u.computeDisplaySeparator=function(){return!1};
_.u.onPurchaseButtonTap=function(){this.purchaseButtonClicked=!0};
HL.prototype.onDataChanged=HL.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HL.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],HL.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],HL.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HL.prototype,"data",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],HL.prototype,"expanded",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],HL.prototype,"purchaseButtonClicked",void 0);_.E([_.d({reflectToAttribute:!0,value:"show"}),_.h("design:type",String)],HL.prototype,"titledisplaystatus",void 0);_.E([_.d({computed:"computeDisplayTitle(data.title)"}),_.h("design:type",Boolean)],HL.prototype,"displayTitle",void 0);
_.E([_.d({computed:"computeDisplaySeparator(data)"}),_.h("design:type",Boolean)],HL.prototype,"displaySeparator",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HL.prototype,"onDataChanged",null);HL=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-tier-renderer"})],HL);
_.Z(HL,"ytd-sponsorships-tier-renderer",function(){if($Om!==void 0)return $Om;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $Om=I},{mode:2});var tK=function(){return _.q.apply(this,arguments)||this};
_.R(tK,_.q);
tK.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{sponsorshipsTierRenderer:{component:"ytd-sponsorships-tier-renderer"},sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"},sponsorshipsExpandableMessageRenderer:{component:"ytd-sponsorships-expandable-message-renderer"}}},"data.sidebar":{id:"sidebar",mapping:{sponsorshipsHeadingRenderer:{component:"ytd-sponsorships-heading-renderer"},sponsorshipsActionableMessageRenderer:{component:"ytd-sponsorships-actionable-message-renderer"},
sponsorshipsLinksRenderer:{component:"ytd-sponsorships-links-renderer"},sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}},"data.alert":{id:"alert-renderer",mapping:{sponsorshipsAlertRenderer:{component:"ytd-sponsorships-alert-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tK.prototype,"data",void 0);tK=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-management-renderer"})],tK);
_.Z(tK,"ytd-sponsorships-management-renderer",function(){if(jBc!==void 0)return jBc;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return jBc=I},{mode:1});var bmq;var JK=function(){return _.q.apply(this,arguments)||this};
_.R(JK,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JK.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],JK.prototype,"data",void 0);JK=_.E([_.m({disableElementRegistration:!0,is:"ytd-open-in-native-app-view-model"})],JK);
_.Z(JK,"ytd-open-in-native-app-view-model",function(){if(bmq!==void 0)return bmq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return bmq=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var YDm;var Gtq;var fac=_.hu(["top-"]),SDP=_.hu(["bottom-"]),K$d=_.hu(["left-"]),AIb=_.hu(["right-"]),gau={},vau=function(I,C,y){I.removeAttribute("top-"+y);I.removeAttribute("bottom-"+y);I.removeAttribute("left-"+y);I.removeAttribute("right-"+y);C&&(C.top&&_.Ka([_.Uj(fac)],I,"top-"+y,C.top),C.bottom&&_.Ka([_.Uj(SDP)],I,"bottom-"+y,C.bottom),C.left&&_.Ka([_.Uj(K$d)],I,"left-"+y,C.left),C.right&&_.Ka([_.Uj(AIb)],I,"right-"+y,C.right))};
gau.YtCardItemBoxBehavior=[{observers:["cardItemContainerMarginChanged_(data.containerMargin)","cardItemContainerPaddingChanged_(data.containerPadding)"],created:function(){this.cardItemBoxBehaviorPaddingTargetId=""},
cardItemContainerMarginChanged_:function(I){var C,y=_.f((C=this.hostElement)!=null?C:this),k;C=this.cardItemBoxBehaviorMarginTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorMarginTargetId):(k=this.hostElement)!=null?k:this;vau(C,I,"margin")},
cardItemContainerPaddingChanged_:function(I){var C,y=_.f((C=this.hostElement)!=null?C:this),k;C=this.cardItemBoxBehaviorPaddingTargetId&&y?y.querySelector("#"+this.cardItemBoxBehaviorPaddingTargetId):(k=this.hostElement)!=null?k:this;vau(C,I,"padding")}}];var O$={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 W$d;var dOd;var ab=function(){return _.q.apply(this,arguments)||this};
_.R(ab,_.q);ab.prototype.textColorChanged_=function(){this.hostElement.style.color=O$[this.data.textColor||"CARD_ITEM_COLOR_TEXT_PRIMARY"]};
ab.prototype.textColorChanged_=ab.prototype.textColorChanged_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ab.prototype,"ytRendererBehavior",void 0);_.E([_.g(gau.YtCardItemBoxBehavior),_.h("design:type",Object)],ab.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ab.prototype,"data",void 0);_.E([_.FI("data.textColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ab.prototype,"textColorChanged_",null);
ab=_.E([_.lT({is:"yt-card-item-text-renderer",disableElementRegistration:!0})],ab);
_.Z(ab,"yt-card-item-text-renderer",function(){if(dOd===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;W$d===void 0&&(W$d=document.createElement("template"));var k=W$d;y.call(C,k.content.cloneNode(!0),I.content.firstChild);dOd=I}I=dOd;return I},{mode:2});var xOc;var qDP;var Mn=function(){return _.q.apply(this,arguments)||this};
_.R(Mn,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mn.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mn.prototype,"data",void 0);Mn=_.E([_.lT({is:"yt-card-item-badge-renderer",disableElementRegistration:!0})],Mn);
_.Z(Mn,"yt-card-item-badge-renderer",function(){if(qDP===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;xOc===void 0&&(xOc=document.createElement("template"));var k=xOc;y.call(C,k.content.cloneNode(!0),I.content.firstChild);qDP=I}I=qDP;return I},{mode:2});var mO5;var Zmq;var If=function(){return _.q.apply(this,arguments)||this};
_.R(If,_.q);If.prototype.configureRendererStamper=function(){return{"data.textRenderers":{id:"text-renderers",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"},cardItemBadgeRenderer:{component:"yt-card-item-badge-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],If.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],If.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],If.prototype,"data",void 0);If=_.E([_.lT({is:"yt-card-item-text-collection-renderer",disableElementRegistration:!0})],If);
_.Z(If,"yt-card-item-text-collection-renderer",function(){if(Zmq===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;mO5===void 0&&(mO5=document.createElement("template"));var k=mO5;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Zmq=I}I=Zmq;return I},{mode:2});var BVe;var Ea5;var CO=function(){return _.q.apply(this,arguments)||this};
_.R(CO,_.q);CO.prototype.configureRendererStamper=function(){return{"data.textCollectionRenderer":{id:"card-item-text-collection-renderer",mapping:{cardItemTextCollectionRenderer:"yt-card-item-text-collection-renderer"}},"data.buttonRenderer":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{iconSize:"[[iconSize]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],CO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],CO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CO.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Number)],CO.prototype,"iconSize",void 0);CO=_.E([_.lT({is:"yt-card-item-text-with-button-renderer",disableElementRegistration:!0})],CO);
_.Z(CO,"yt-card-item-text-with-button-renderer",function(){if(Ea5===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;BVe===void 0&&(BVe=document.createElement("template"));var k=BVe;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Ea5=I}I=Ea5;return I},{mode:2});var sS=function(){return _.q.apply(this,arguments)||this};
_.R(sS,_.q);sS.prototype.configureRendererStamper=function(){return{"data.summaryText":{id:"summary-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer",cardItemTextWithButtonRenderer:{component:"yt-card-item-text-with-button-renderer",params:{iconSize:18}}}},"data.additionalMetadataText":{id:"additional-metadata-text",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}},"data.price":{id:"price",mapping:{cardItemTextRenderer:"yt-card-item-text-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sS.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],sS.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sS.prototype,"data",void 0);sS=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-line-item-renderer"})],sS);
_.Z(sS,"ytd-commerce-cart-summary-line-item-renderer",function(){if(Gtq!==void 0)return Gtq;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Gtq=I},{mode:1});_.jz("cardItemSection","commerceCartCheckoutButtonRenderer",{component:"ytd-commerce-cart-checkout-button-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var of=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;return I};
_.R(of,_.q);_.u=of.prototype;_.u.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"}}}}};
_.u.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutButton(),this.updateIsHidden(),this.updateSummary())};
_.u.updateSummary=function(){var I=this.commerceCartCheckoutButtonEntity,C;if(((C=this.data)==null?0:C.cartButton)&&I.checkoutSummaryText){var y,k=Wp((y=this.data)==null?void 0:y.estimatedTotalLineItem,"summaryText");this.set("data.estimatedTotalLineItem."+k+".cardItemTextRenderer.text",dl(I.checkoutSummaryText));if(I.checkoutDetailText){var F;y=Wp((F=this.data)==null?void 0:F.estimatedTotalLineItem,"price");this.set("data.estimatedTotalLineItem."+y+".cardItemTextRenderer.text",dl(I.checkoutDetailText))}if(I.checkoutAdditionalMetadataText){var z;
F=Wp((z=this.data)==null?void 0:z.estimatedTotalLineItem,"additionalMetadataText");this.set("data.estimatedTotalLineItem."+F+".cardItemTextRenderer.text",dl(I.checkoutAdditionalMetadataText))}}else I.estimatedTotalPrice&&(z=Wp((k=this.data)==null?void 0:k.estimatedTotalLineItem,"price"),this.set("data.estimatedTotalLineItem."+z+".cardItemTextRenderer.text",dl(I.estimatedTotalPrice)))};
_.u.updateIsHidden=function(){var I,C=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isHidden;C!==void 0&&(this.hidden=C)};
_.u.updateCheckoutButton=function(){var I,C=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isDisabled;C!==void 0&&this.set("data.checkoutButton.buttonRenderer.isDisabled",C);var y;I=(y=this.commerceCartCheckoutButtonEntity.checkoutButtonCommand)==null?void 0:y.innertubeCommand;I!==void 0&&this.set("data.checkoutButton.buttonRenderer.command",I);var k;y=(k=this.commerceCartCheckoutButtonEntity)==null?void 0:k.checkoutButtonText;y!==void 0&&this.set("data.checkoutButton.buttonRenderer.text",
{simpleText:y})};
of.prototype.entityChanged=of.prototype.entityChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],of.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],of.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],of.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],of.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],of.prototype,"fullWidth",void 0);_.E([_.d(),_.h("design:type",Object)],of.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],of.prototype,"compact",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],of.prototype,"hidden",void 0);
_.E([_.d({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AQX}),_.h("design:type",Object)],of.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.FI("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],of.prototype,"entityChanged",null);of=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-checkout-button-renderer"})],of);
_.Z(of,"ytd-commerce-cart-checkout-button-renderer",function(){if(YDm!==void 0)return YDm;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return YDm=I},{mode:2});var hUq;_.UOc={};
_.UOc.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",_.sb(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
detached:function(){this.tappableItemBehaviorGetTappableTarget_().removeEventListener("keydown",this.tappableItemBehaviorBoundOnTappableItemKeyDown_,!0);this.tappableItemBehaviorGetTappableTarget_().removeEventListener("click",_.sb(this,this.tappableItemBehaviorBoundOnTappableItemTap_))},
tappableItemBehaviorOnTappableItemKeyDown_:function(I){!this.tappableItemBehaviorTapEnabled||I.keyCode!==13&&I.keyCode!==32||I.target!=this.tappableItemBehaviorGetTappableTarget_()||this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorOnTappableItemTap_:function(){this.tappableItemBehaviorTapEnabled&&this.tappableItemBehaviorHandleTappableItemTap_()},
tappableItemBehaviorHandleTappableItemTap_:function(){var I=this.data.onTap;I.ypcGetCartEndpoint?(_.Tg(this.hostElement,[I]),this.tappableItemBehaviorTapEnabled=!1):I.ypcOffersEndpoint?_.Tg(this.hostElement,[I]):_.cQ(this.hostElement,[I],this.hostElement)},
tappableItemBehaviorOnTapChanged_:function(I){this.tappableItemBehaviorTapEnabled=!!I},
tappableItemBehaviorOnTapEnabledChanged_:function(){var I=this.tappableItemBehaviorGetTappableTarget_();this.tappableItemBehaviorTapEnabled?(I.setAttribute("tabIndex",0),I.setAttribute("role","button")):(I.removeAttribute("tabIndex"),I.removeAttribute("role"))},
tappableItemBehaviorOnServiceRequestFinished_:function(I){I.target==this&&(this.tappableItemBehaviorTapEnabled=!!this.data.onTap)},
tappableItemBehaviorGetTappableTarget_:function(){return this.tappableItemBehaviorTargetId?this.$[this.tappableItemBehaviorTargetId]:this.hostElement}}];var HmP;var t3w;var yy=function(){return _.q.apply(this,arguments)||this};
_.R(yy,_.q);yy.prototype.configureRendererStamper=function(){return{"data.primaryButtonRenderer":{id:"primary-button-renderer",mapping:_.lk("sharingToggleButtonAndDefaultButton")},"data.secondaryButtonRenderer":{id:"secondary-button-renderer",mapping:_.lk("sharingToggleButtonAndDefaultButton")}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yy.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],yy.prototype,"data",void 0);yy=_.E([_.lT({is:"yt-card-item-actions-renderer",disableElementRegistration:!0})],yy);
_.Z(yy,"yt-card-item-actions-renderer",function(){if(t3w===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;HmP===void 0&&(HmP=document.createElement("template"));var k=HmP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);t3w=I}I=t3w;return I},{mode:2});var JI0;var Omu;var aa8;var M38;var IFw;var CQw;var kh=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeToggledAction_"};return I};
_.R(kh,_.q);kh.prototype.attached=function(){this.isDarkTheme_=document.documentElement.hasAttribute("dark")};
kh.prototype.handleDarkModeToggledAction_=function(I){this.isDarkTheme_=I};
kh.prototype.computeThemeImage_=function(I,C){if(!I||!I.imageLight)return!1;this.isCircular_=I.isCircular;I.imageWidth&&(this.hostElement.style.width=I.imageWidth+"px");I.imageHeight&&(this.hostElement.style.height=I.imageHeight+"px");I.borderWidth&&(this.image.style.borderWidth=I.borderWidth+"px",this.image.style.borderStyle="solid");I.borderColor&&(this.image.style.borderColor=_.Xl(I.borderColor));return C&&I.imageDark?I.imageDark:I.imageLight};
kh.prototype.computeThemeIcon_=function(I){var C,y;if(!(I==null?0:(C=I.themedIcon)==null?0:(y=C.icon)==null?0:y.iconType))return!1;this.icon.style.color=O$[I.themedIcon.iconColor||"CARD_ITEM_COLOR_GENERAL_BACKGROUND_A"];this.icon.style.width=(I.imageWidth||18)+"px";this.icon.style.height=(I.imageHeight||18)+"px";return _.y5(I.themedIcon.icon.iconType)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kh.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],kh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(gau.YtCardItemBoxBehavior),_.h("design:type",Object)],kh.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],kh.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kh.prototype,"data",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],kh.prototype,"fit",void 0);_.E([_.d(),_.h("design:type",Boolean)],kh.prototype,"isDarkTheme_",void 0);_.E([_.d({computed:"computeThemeImage_(data, isDarkTheme_)"}),_.h("design:type",Object)],kh.prototype,"themeImage_",void 0);_.E([_.d({computed:"computeThemeIcon_(data)"}),_.h("design:type",Object)],kh.prototype,"themeIcon_",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Object)],kh.prototype,"isCircular_",void 0);
_.E([_.z$("#image"),_.h("design:type",Object)],kh.prototype,"image",void 0);_.E([_.z$("#icon"),_.h("design:type",Object)],kh.prototype,"icon",void 0);kh=_.E([_.lT({is:"yt-themed-image-renderer",disableElementRegistration:!0})],kh);
_.Z(kh,"yt-themed-image-renderer",function(){if(CQw===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;IFw===void 0&&(IFw=document.createElement("template"));var k=IFw;y.call(C,k.content.cloneNode(!0),I.content.firstChild);CQw=I}I=CQw;return I},{mode:2});var FQ=function(){return _.q.apply(this,arguments)||this};
_.R(FQ,_.q);FQ.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"}}}}};
FQ.prototype.computeImagePlacement_=function(I){return I||"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN"};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],FQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],FQ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],FQ.prototype,"data",void 0);_.E([_.d({value:"CARD_ITEM_IMAGE_PLACEMENT_UNKNOWN",computed:"computeImagePlacement_(data.imagePlacement)",reflectToAttribute:!0}),_.h("design:type",String)],FQ.prototype,"imagePlacement",void 0);
FQ=_.E([_.lT({is:"yt-card-item-text-with-image-renderer",disableElementRegistration:!0})],FQ);
_.Z(FQ,"yt-card-item-text-with-image-renderer",function(){if(M38===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;aa8===void 0&&(aa8=document.createElement("template"));var k=aa8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);M38=I}I=M38;return I},{mode:2});var ut=function(){return _.q.apply(this,arguments)||this};
_.R(ut,_.q);ut.prototype.configureRendererStamper=function(){return{"data.errorTextRenderer":{id:"error-text-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"},cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ut.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ut.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ut.prototype,"data",void 0);ut=_.E([_.lT({is:"yt-card-item-error-renderer",disableElementRegistration:!0})],ut);
_.Z(ut,"yt-card-item-error-renderer",function(){if(Omu===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;JI0===void 0&&(JI0=document.createElement("template"));var k=JI0;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Omu=I}I=Omu;return I},{mode:2});var sqe;var o7q;_.jz("itemSectionRenderer","CardItemRenderer","yt-card-item-renderer");var z4=function(){return _.q.apply(this,arguments)||this};
_.R(z4,_.q);_.u=z4.prototype;
_.u.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"}}}}};
_.u.created=function(){this.tappableItemBehaviorTargetId=this.cardItemBoxBehaviorPaddingTargetId="main-content"};
_.u.backgroundColorChanged_=function(){var I,C=(I=this.data)==null?void 0:I.backgroundColor;I=O$[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.f(this.hostElement).querySelector("#main-content").style.backgroundColor=I};
_.u.headerPromoBackgroundColorChanged_=function(){var I,C=(I=this.data)==null?void 0:I.headerPromoBackgroundColor;I=O$[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent";_.f(this.hostElement).querySelector("#header-promo-renderer").style.backgroundColor=I};
_.u.errorRendererVisibilityChanged_=function(){var I=this.isExpanded_,C;this.isErrorRendererVisible_=!((C=this.data)==null||!C.errorRenderer)&&!I};
_.u.onYtToggleButton_=function(I,C){this.isExpanded_=C.toggled};
z4.prototype.onYtToggleButton_=z4.prototype.onYtToggleButton_;z4.prototype.errorRendererVisibilityChanged_=z4.prototype.errorRendererVisibilityChanged_;z4.prototype.headerPromoBackgroundColorChanged_=z4.prototype.headerPromoBackgroundColorChanged_;z4.prototype.backgroundColorChanged_=z4.prototype.backgroundColorChanged_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],z4.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],z4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(gau.YtCardItemBoxBehavior),_.h("design:type",Object)],z4.prototype,"ytCardItemBoxBehavior",void 0);_.E([_.g(_.UOc.YtTappableItemBehavior),_.h("design:type",Object)],z4.prototype,"ytTappableItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],z4.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],z4.prototype,"isExpanded_",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],z4.prototype,"isErrorRendererVisible_",void 0);_.E([_.FI("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z4.prototype,"backgroundColorChanged_",null);_.E([_.FI("data.headerPromoBackgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z4.prototype,"headerPromoBackgroundColorChanged_",null);
_.E([_.FI("data.errorRenderer","isExpanded_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],z4.prototype,"errorRendererVisibilityChanged_",null);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],z4.prototype,"onYtToggleButton_",null);z4=_.E([_.lT({is:"yt-card-item-renderer",disableElementRegistration:!0})],z4);
_.Z(z4,"yt-card-item-renderer",function(){if(o7q===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;sqe===void 0&&(sqe=document.createElement("template"));var k=sqe;y.call(C,k.content.cloneNode(!0),I.content.firstChild);o7q=I}I=o7q;return I},{mode:2});_.jz("cardItemSection","commerceCartHeaderRenderer",{component:"ytd-commerce-cart-header-renderer",noInjection:!0});var T4=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;return I};
_.R(T4,_.q);_.u=T4.prototype;_.u.configureRendererStamper=function(){return{"data.item":{id:"item",mapping:{cardItemRenderer:"yt-card-item-renderer"}}}};
_.u.entityChanged=function(){this.commerceCartHeaderEntity&&(this.updateIsHidden(),this.updateSummaryText(),this.updateCheckoutButton(),this.updateTitle())};
_.u.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var I,C=(I=this.commerceCartHeaderEntity)==null?void 0:I.isHidden;C!==void 0&&(this.hidden=C)}};
_.u.updateTitle=function(){var I=this.commerceCartHeaderEntity.isDisabled,C,y,k=(y=_.l((C=this.data)==null?void 0:C.item,Cae))==null?void 0:y.headingRenderer;k&&(C=Wp(k,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".0.cardItemTextRenderer.textColor",I?"CARD_ITEM_COLOR_TEXT_DISABLED":"CARD_ITEM_COLOR_TEXT_PRIMARY"))};
_.u.updateSummaryText=function(){var I=this.commerceCartHeaderEntity;if(this.compact){var C,y,k=(y=_.l((C=this.data)==null?void 0:C.item,Cae))==null?void 0:y.headingRenderer;k&&(C=Wp(k,"textRenderers"),this.set("data.item.cardItemRenderer.headingRenderer."+C+".1.cardItemTextRenderer.text",I.shortHeaderSummaryText?dl(I.shortHeaderSummaryText):I.headerSummaryText?dl(I.headerSummaryText):""))}else{var F;if(C=(F=_.l((k=this.data)==null?void 0:k.item,Cae))==null?void 0:F.additionalInfoRenderer)C=Wp(C,
"cardItemTextRenderer"),this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".text",I.headerSummaryText?dl(I.headerSummaryText):"")}};
_.u.updateCheckoutButton=function(){var I=this.commerceCartHeaderEntity,C,y,k=(y=_.l((C=this.data)==null?void 0:C.item,Cae))==null?void 0:y.additionalInfoRenderer;C=Wp(k,"buttonRenderer");var F;y=(F=this.commerceCartHeaderEntity)==null?void 0:F.isButtonDisabled;var z;F=(z=this.commerceCartHeaderEntity)==null?void 0:z.isButtonHidden;y!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.isDisabled",y);F!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer.isHidden",
F);var c;I=(c=I.checkoutButtonCommand)==null?void 0:c.innertubeCommand;I!==void 0&&this.set("data.item.cardItemRenderer.additionalInfoRenderer."+C+".buttonRenderer.command",I)};
T4.prototype.entityChanged=T4.prototype.entityChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],T4.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],T4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],T4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],T4.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],T4.prototype,"compact",void 0);_.E([_.d({selectorArgs:["data.commerceCartHeaderEntityKey"],selector:function(I,C){return _.cg(I.entities,"commerceCartHeaderEntity",C)}}),
_.h("design:type",Object)],T4.prototype,"commerceCartHeaderEntity",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],T4.prototype,"hidden",void 0);_.E([_.FI("commerceCartHeaderEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],T4.prototype,"entityChanged",null);T4=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-header-renderer"})],T4);
_.Z(T4,"ytd-commerce-cart-header-renderer",function(){if(hUq!==void 0)return hUq;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hUq=I},{mode:1});var yNe;var kzc=_.LQ(function(I,C){var y;return(y=I.onChangeCallback)==null?void 0:y.call(I,C)},1E3),FVe=_.BO(function(I){var C=I.data;
var y=I.iconMinus;I=I.iconPlus;var k=function(){return!!C().disabled},F=_.T(_.c4(0,void 0,"r56zNb")),z=F.next().value,c=F.next().value;
F={};F=_.sZ("yt-spec-quantity-incrementer-shape__icon",(F["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return k()||z()===(C().onRemoveCommand?0:1)},F));
var r={};r=_.sZ("yt-spec-quantity-incrementer-shape__icon",(r["yt-spec-quantity-incrementer-shape__icon--disabled"]=function(){return z()>=C().maxValue||k()},r));
var w={};w=_.sZ("yt-spec-quantity-incrementer-shape__text",(w["yt-spec-quantity-incrementer-shape__text--invalid"]=function(){return z()>C().maxValue},w["yt-spec-quantity-incrementer-shape__text--text-disabled"]=k,w));
var L=_.uk(function(){if(z()===1){var p,Q;(Q=(p=C()).onRemoveCommand)==null||Q.call(p)}p=z()>C().maxValue?C().maxValue:z()-1;c(p);kzc(C(),p);return!1}),D=_.uk(function(){if(z()===C().maxValue)return!1;
var p=z()+1;c(p);kzc(C(),p);return!1});
_.X2(function(){c(C().value)});
return _.P("quantity-incrementer-shape",null,_.P("div",{class:"yt-spec-quantity-incrementer-shape"},_.P("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()===(C().onRemoveCommand?0:1)||k()},
"aria-label":function(){return z()!==1?C().minusLabel:C().minimumReachedLabel},
"on:click":L},_.P(_.nE,{model:{circular:!0}}),_.P("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.P("div",{class:F},y()))),_.P("div",{class:w},z),_.P("button",{class:"yt-spec-quantity-incrementer-shape__button",disabled:function(){return z()>=C().maxValue||k()},
"aria-label":function(){return z()!==C().maxValue?C().plusLabel:C().maximumReachedLabel},
"on:click":D},_.P(_.nE,{model:{circular:!0}}),_.P("div",{class:"yt-spec-quantity-incrementer-shape__iconWrapper"},_.P("div",{class:r},I())))))},"yd");_.B9(_.BO(function(I){function C(){y().onRemoveCommand&&_.Gp(y().onRemoveCommand)}
var y=I.data;var k=_.cj(kFF,function(){return y().quantityIncrementerEntityKey});
return _.P("yt-quantity-incrementer-view-model",null,_.P(FVe,{data:function(){var F=y(),z;var c=k()?!((z=k())==null||!z.disabled):!1;var r;z=k()?(r=k())==null?void 0:r.quantity:y().quantity;return xBO(F,c,C,z)},
iconMinus:function(){return _.P(_.ez,{icon:"BAR_HORIZONTAL",className:_.yc("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-minus-icon")})},
iconPlus:function(){return _.P(_.ez,{icon:"ADD",className:_.yc("yt-spec-quantity-incrementer-view-model","yt-spec-quantity-incrementer-view-model__quantity-incrementer-plus-icon")})}}))},"zd"),"yt-quantity-incrementer-view-model",{props:{data:_.As}});var cT=function(){var I=_.q.apply(this,arguments)||this;I.compact=!1;I.hasQuantityIncrementer=!1;return I};
_.R(cT,_.q);cT.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"}}}};
cT.prototype.computeHasQuantityIncrementer=function(){var I;return!!_.l((I=this.data)==null?void 0:I.picker,kZd)};
cT.prototype.onLabelClick=function(){var I;(I=this.dropdownEl)==null||I.open()};
_.E([_.z$("ytd-dropdown-renderer"),_.h("design:type",Object)],cT.prototype,"dropdownEl",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cT.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],cT.prototype,"quantityColor",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cT.prototype,"compact",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasQuantityIncrementer(data)"}),_.h("design:type",Object)],cT.prototype,"hasQuantityIncrementer",void 0);cT=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-quantity-picker-renderer"})],cT);
_.Z(cT,"ytd-commerce-cart-item-quantity-picker-renderer",function(){if(yNe!==void 0)return yNe;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yNe=I},{mode:1});var uD8;var zgu;var eK=function(){return _.q.apply(this,arguments)||this};
_.R(eK,_.q);eK.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
eK.prototype.entityChanged=function(){this.disabledCartItemEntity&&(this.updateTitle(),this.updateButton())};
eK.prototype.updateTitle=function(){var I=this.disabledCartItemEntity;I.disableActionName&&this.set("data.title",dl(I.disableActionName))};
eK.prototype.updateButton=function(){var I,C=(I=this.disabledCartItemEntity.undoCommand)==null?void 0:I.innertubeCommand;C!==void 0&&(this.set("data.actionButton.buttonRenderer.command",C),this.set("data.actionButton.buttonRenderer.isDisabled",!1))};
eK.prototype.entityChanged=eK.prototype.entityChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],eK.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({selectorArgs:["data.disabledCartItemEntityKey"],selector:function(I,C){return _.cg(I.entities,"disabledCartItemEntity",C)}}),
_.h("design:type",Object)],eK.prototype,"disabledCartItemEntity",void 0);_.E([_.d(),_.h("design:type",Object)],eK.prototype,"data",void 0);_.E([_.FI("disabledCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eK.prototype,"entityChanged",null);eK=_.E([_.m({disableElementRegistration:!0,is:"ytd-disabled-cart-item-renderer"})],eK);
_.Z(eK,"ytd-disabled-cart-item-renderer",function(){if(zgu!==void 0)return zgu;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zgu=I},{mode:1});_.jz("cardItemSection","commerceCartItemRenderer",{component:"ytd-commerce-cart-item-renderer",noInjection:!0,properties:{compact:"[[compact]]"}});var rc=function(){var I=_.q.apply(this,arguments)||this;I.compact=!1;I.hidden=!1;I.errorHidden=!1;I.noOnTap=!1;return I};
_.R(rc,_.q);_.u=rc.prototype;
_.u.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"}}}};
_.u.entityChanged=function(){this.commerceCartItemEntity&&(this.updateQuantity(),this.updateIsHidden(),this.updateHideErrorMessage())};
_.u.onYtRendererstamperFinished=function(){if(this.firstButtonElement){var I=this.firstButtonElement;I.alignByText=!0;I.iconAlignByText=!0}};
_.u.computeNoOnTap=function(I){return!I};
_.u.updateQuantityColor=function(){if(this.pickerElement){var I,C=(I=this.commerceCartItemEntity)==null?void 0:I.quantityColor;this.pickerElement.quantityColor=C}};
_.u.updateTotalPriceColor=function(){var I,C=(I=this.commerceCartItemEntity)==null?void 0:I.totalPriceColor;if(C){var y;I=_.l((y=this.data)==null?void 0:y.quantityPicker,oyq);if(y=_.l(I==null?void 0:I.price,sAY))y.textColor=C}};
_.u.updateIsHidden=function(){if(this.compact)this.hidden=!1;else{var I,C=(I=this.commerceCartItemEntity)==null?void 0:I.isHidden;C!==void 0&&(this.hidden=C)}};
_.u.updateHideErrorMessage=function(){var I,C=(I=this.commerceCartItemEntity)==null?void 0:I.hideErrorMessage;C!==void 0&&(this.errorHidden=C)};
_.u.updateQuantity=function(){var I=this,C,y=(C=this.commerceCartItemEntity)==null?void 0:C.quantity,k;C=(k=this.commerceCartItemEntity)==null?void 0:k.totalPrice;if(y){this.updateTotalPriceColor();this.updateQuantityColor();var F;k=_.l((F=this.data)==null?void 0:F.quantityPicker,oyq);if(F=_.l(k==null?void 0:k.price,sAY))F.text=C?{simpleText:C.content}:void 0;if(C=_.l(k==null?void 0:k.picker,kZd))C.quantity=y;var z;if(F=(z=_.l(k==null?void 0:k.picker,Duq))==null?void 0:z.entries){z=!1;C=void 0;F=
_.T(F);for(k=F.next();!k.done;k=F.next())k=k.value,k.dropdownItemRenderer&&(C||(C=k.dropdownItemRenderer),k.dropdownItemRenderer.isSelected=!1,y===k.dropdownItemRenderer.int32Value&&(z=!0,k.dropdownItemRenderer.isSelected=!0));!z&&C&&(C.isSelected=!0)}_.hn(this,function(){var c;I.set("data.quantityPicker",_.Le.unsafeClone((c=I.data)==null?void 0:c.quantityPicker))})}};
rc.prototype.onYtRendererstamperFinished=rc.prototype.onYtRendererstamperFinished;rc.prototype.entityChanged=rc.prototype.entityChanged;_.E([_.d(),_.h("design:type",Object)],rc.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rc.prototype,"compact",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],rc.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rc.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],rc.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({selectorArgs:["data.commerceCartItemEntityKey"],selector:function(I,C){return _.cg(I.entities,"commerceCartItemEntity",C)}}),
_.h("design:type",Object)],rc.prototype,"commerceCartItemEntity",void 0);_.E([_.d(),_.h("design:type",Object)],rc.prototype,"quantityPicker",void 0);_.E([_.d(),_.h("design:type",Object)],rc.prototype,"compactQuantityPicker",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rc.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rc.prototype,"errorHidden",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeNoOnTap(data.onTap)"}),_.h("design:type",Object)],rc.prototype,"noOnTap",void 0);_.E([_.z$("ytd-commerce-cart-item-quantity-picker-renderer"),_.h("design:type",Object)],rc.prototype,"pickerElement",void 0);_.E([_.z$("yt-button-renderer"),_.h("design:type",Element)],rc.prototype,"firstButtonElement",void 0);
_.E([_.FI("commerceCartItemEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rc.prototype,"entityChanged",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rc.prototype,"onYtRendererstamperFinished",null);rc=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-item-renderer"})],rc);
_.Z(rc,"ytd-commerce-cart-item-renderer",function(){if(uD8!==void 0)return uD8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return uD8=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var Tqm;var cN0;var wc=function(){return _.q.apply(this,arguments)||this};
_.R(wc,_.q);wc.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}}}}}};
wc.prototype.entityChanged=function(){this.commerceCartCheckoutButtonEntity&&(this.updateCheckoutLineItems(),this.updateIsHidden())};
wc.prototype.updateCheckoutLineItems=function(){var I,C=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.checkoutLineItems;C&&(I=C.map(function(y){a:{var k=y.price,F=y.description;switch(y.style){case "COMMERCE_CHECKOUT_LINE_ITEM_STYLE_MERCHANT":y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dl(F),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:dl(k),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:y={commerceCartSummaryLineItemRenderer:{summaryText:{cardItemTextRenderer:{text:dl(F),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:dl(k),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 y}),this.set("data.summaryLineItems",I))};
wc.prototype.updateIsHidden=function(){var I,C=(I=this.commerceCartCheckoutButtonEntity)==null?void 0:I.isHidden;C!==void 0&&(this.hostElement.hidden=C)};
wc.prototype.entityChanged=wc.prototype.entityChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],wc.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],wc.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wc.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],wc.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.commerceCartCheckoutButtonEntityKey"],selector:AQX}),_.h("design:type",Object)],wc.prototype,"commerceCartCheckoutButtonEntity",void 0);_.E([_.FI("commerceCartCheckoutButtonEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wc.prototype,"entityChanged",null);wc=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-summary-renderer"})],wc);
_.Z(wc,"ytd-commerce-cart-summary-renderer",function(){if(cN0!==void 0)return cN0;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return cN0=I},{mode:1});var egY={};egY.InjectBehavior=[sum.InjectBehavior];var rN8;var iYm;var nO=function(){return _.q.apply(this,arguments)||this};
_.R(nO,_.q);
nO.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:_.lk("menuRenderer")}}};
nO.prototype.onMenuTap=function(I){I.stopPropagation()};
_.H1.Object.defineProperties(nO.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 I,C;return!(((I=this.data)==null||!I.sectionHeading)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
imageVisible:{configurable:!0,enumerable:!0,get:function(){var I,C;return!(((I=this.data)==null||!I.image)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}},
menuVisible:{configurable:!0,enumerable:!0,get:function(){var I,C;return!(((I=this.data)==null||!I.menu)&&((C=this.data)==null?void 0:C.layout)==="ACTIVITY_ITEM_LAYOUT_STRETCH")}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.UOc.YtTappableItemBehavior),_.h("design:type",Object)],nO.prototype,"ytTappableItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nO.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.accessibilityData"),_.h("design:type",String),_.h("design:paramtypes",[])],nO.prototype,"ariaLabel",null);_.E([_.v("data.sectionHeading","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nO.prototype,"sectionHeadingVisible",null);_.E([_.v("data.image","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nO.prototype,"imageVisible",null);
_.E([_.v("data.menu","data.layout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nO.prototype,"menuVisible",null);nO=_.E([_.lT({is:"yt-activity-item-renderer",disableElementRegistration:!0})],nO);
_.Z(nO,"yt-activity-item-renderer",function(){if(iYm===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;rN8===void 0&&(rN8=document.createElement("template"));var k=rN8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);iYm=I}I=iYm;return I},{mode:2});var wu8;var n7P;var PQS;var LVq;var PT=function(){return _.q.apply(this,arguments)||this};
_.R(PT,_.q);
PT.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"}}}}};
PT.prototype.backgroundColorChanged_=function(){var I,C=(I=this.data)==null?void 0:I.backgroundColor;this.hostElement.style.backgroundColor=O$[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
PT.prototype.backgroundColorChanged_=PT.prototype.backgroundColorChanged_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],PT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PT.prototype,"data",void 0);
_.E([_.FI("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PT.prototype,"backgroundColorChanged_",null);PT=_.E([_.lT({is:"yt-offer-item-upsell-renderer",disableElementRegistration:!0})],PT);
_.Z(PT,"yt-offer-item-upsell-renderer",function(){if(LVq===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;PQS===void 0&&(PQS=document.createElement("template"));var k=PQS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);LVq=I}I=LVq;return I},{mode:2});_.jz("itemSectionRenderer","CardItemContainerRenderer","yt-card-item-container-renderer");var LO=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-card-item-on-click-command":"updateCardOnClickCommand_"};I.nextContinuation={continuationType:"sectionListContinuation",contentsArray:"data.continuationSection"};return I};
_.R(LO,_.q);_.u=LO.prototype;
_.u.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:_.lk("sharingItemSection")},"data.moreContentsButtonRenderer":{id:"more-contents-button",mapping:{buttonRenderer:{component:"yt-button-renderer",noInjection:!0}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"continuationSection"}};
_.u.computeContainerStyle_=function(I){return I};
_.u.computeContainerIsHidden_=function(I){return I&&!!I.isHidden};
_.u.computeShowSpinner_=function(I,C){return I&&C==="in-progress"};
_.u.computeShowMoreContentsButton_=function(I,C,y,k,F){return!(!(k&&k.length||F&&F.length&&y)||!I||C)};
_.u.onToggleButton_=function(I){var C=this;I.stopPropagation();this.isExpanded_=I.detail&&I.detail.toggled;var y,k;this.isExpanded_&&!this.data.continuationSection.length&&((y=this.data)==null?0:(k=y.continuation)==null?0:k.onClickContinuationData)&&this.continuationStatus_!=="in-progress"?(_.k3(this.hostElement,"yt-load-next-continuation",function(F){return C.getContinuationUrl_(C.data.continuation.onClickContinuationData,F)}),this.continuationStatus_="in-progress"):this.isExpanded_&&!this.data.continuationSection.length&&
this.data.onClickCommand&&this.continuationStatus_!=="in-progress"&&(_.Tg(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress")};
_.u.onShowMoreContentsButtonClicked_=function(I){var C=this;I.stopPropagation();this.data.continuations&&this.data.continuations[0].nextContinuationData?(_.k3(this.hostElement,"yt-load-next-continuation",function(y){return C.getContinuationUrl_(C.data.continuations[0].nextContinuationData,y)}),this.continuationStatus_="in-progress"):this.data.onClickCommand&&(_.Tg(this.hostElement,[this.data.onClickCommand]),this.continuationStatus_="in-progress",this.data.onClickCommand=void 0,this.isOnClickCommand_=
!1)};
_.u.getContinuationUrl_=function(I,C){var y=I.continuation;I=I.clickTrackingParams;var k=_.Si();I&&k&&_.EN(k,_.nv(I));return _.hq(C,{continuation:y})};
_.u.nextContinuationDataUpdated_=function(){this.continuationStatus_="complete";var I=_.f(this.hostElement).querySelector("#continuation-section");I&&(I=I.querySelectorAll("ytmusic-item-section-renderer"))&&I.forEach(function(C){return C.classList.add("memberships-and-purchases")})};
_.u.dataChanged_=function(){var I;this.isExpanded_=!((I=this.data)==null||!I.contents);this.data.continuationSection||(this.data.continuationSection=[]);this.data.onClickCommand&&(this.isOnClickCommand_=!0)};
_.u.updateCardOnClickCommand_=function(I){I=_.l(I,UXm);var C,y;this.data&&((C=this.data)==null?0:C.targetId)&&I&&I.targetId===((y=this.data)==null?void 0:y.targetId)&&I.onClickCommand&&(this.data.onClickCommand=I.onClickCommand,this.isOnClickCommand_=!0)};
_.u.backgroundColorChanged_=function(){var I,C=(I=this.data)==null?void 0:I.backgroundColor;this.hostElement.style.backgroundColor=O$[C||"CARD_ITEM_COLOR_UNKNOWN"]||"transparent"};
LO.prototype.backgroundColorChanged_=LO.prototype.backgroundColorChanged_;LO.prototype.dataChanged_=LO.prototype.dataChanged_;LO.prototype.nextContinuationDataUpdated_=LO.prototype.nextContinuationDataUpdated_;LO.prototype.onToggleButton_=LO.prototype.onToggleButton_;_.E([_.g(_.b1),_.h("design:type",Object)],LO.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],LO.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],LO.prototype,"ytNextContinuationBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LO.prototype,"ytRendererBehavior",void 0);_.E([_.g(egY.InjectBehavior),_.h("design:type",Object)],LO.prototype,"injectBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],LO.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],LO.prototype,"compact",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],LO.prototype,"isExpanded_",void 0);_.E([_.d({computed:"computeContainerStyle_(data.containerStyle)",reflectToAttribute:!0,value:"CARD_ITEM_CONTAINER_STYLE_DEFAULT"}),_.h("design:type",String)],LO.prototype,"containerStyle_",void 0);_.E([_.d({value:"not-started"}),_.h("design:type",String)],LO.prototype,"continuationStatus_",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeShowSpinner_(isExpanded_, continuationStatus_)",value:!1}),_.h("design:type",Boolean)],LO.prototype,"showSpinner_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],LO.prototype,"isOnClickCommand_",void 0);_.E([_.d({computed:"computeShowMoreContentsButton_(isExpanded_, showSpinner_, isOnClickCommand_, data.continuations, data.contents)",value:!1}),_.h("design:type",Boolean)],LO.prototype,"showMoreContentsButton_",void 0);
_.E([_.d({selectorArgs:["data.cardItemContainerEntityKey"],selector:function(I,C){return!C||I.entities?null:_.cg(I.entities,"cardItemContainerEntity",C)}}),
_.h("design:type",Object)],LO.prototype,"cardItemContainerEntity_",void 0);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],LO.prototype,"onToggleButton_",null);_.E([_.km("yt-next-continuation-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LO.prototype,"nextContinuationDataUpdated_",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LO.prototype,"dataChanged_",null);_.E([_.FI("data.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LO.prototype,"backgroundColorChanged_",null);LO=_.E([_.lT({is:"yt-card-item-container-renderer",disableElementRegistration:!0})],LO);
_.Z(LO,"yt-card-item-container-renderer",function(){if(n7P===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;wu8===void 0&&(wu8=document.createElement("template"));var k=wu8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);n7P=I}I=n7P;return I},{mode:2});var Dr=function(){return _.q.apply(this,arguments)||this};
_.R(Dr,_.q);Dr.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"}}}};
Dr.prototype.notificationEntityChanged=function(){this.commerceCartExpandableNotificationEntity&&this.updateNotification()};
Dr.prototype.computeLoadingHidden=function(){var I;return!((I=this.commerceCartPageStateEntity)==null?0:I.cartActionInProgress)};
Dr.prototype.updateNotification=function(){var I,C=(I=this.get("commerceCartExpandableNotificationEntity"))==null?void 0:I.summaryText;C&&this.set("data.cartNotification",dl(C))};
Dr.prototype.notificationEntityChanged=Dr.prototype.notificationEntityChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],Dr.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Dr.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Dr.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Dr.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Dr.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.commerceCartExpandableNotificationEntityKey"],selector:function(I,C){return _.cg(I.entities,"commerceCartExpandableNotificationEntity",C)}}),
_.h("design:type",Object)],Dr.prototype,"commerceCartExpandableNotificationEntity",void 0);_.E([_.d({selectorArgs:["data.commerceCartPageStateEntityKey"],selector:function(I,C){return _.cg(I.entities,"commerceCartPageStateEntity",C)}}),
_.h("design:type",Object)],Dr.prototype,"commerceCartPageStateEntity",void 0);_.E([_.z$("#spinner"),_.h("design:type",HTMLElement)],Dr.prototype,"spinner",void 0);_.E([_.FI("commerceCartExpandableNotificationEntity","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Dr.prototype,"notificationEntityChanged",null);Dr=_.E([_.m({disableElementRegistration:!0,is:"ytd-commerce-cart-renderer"})],Dr);
_.Z(Dr,"ytd-commerce-cart-renderer",function(){if(Tqm!==void 0)return Tqm;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Tqm=I},{mode:1});var D0S;var pO=function(){var I=_.q.apply(this,arguments)||this;I.bigImage=!1;return I};
_.R(pO,_.q);_.H1.Object.defineProperties(pO.prototype,{placeholderImageUrl:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.placeholderImageUrl}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pO.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pO.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pO.prototype,"bigImage",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],pO.prototype,"placeholderImageUrl",null);pO=_.E([_.m({disableElementRegistration:!0,is:"ytd-empty-product-shelf-renderer"})],pO);
_.Z(pO,"ytd-empty-product-shelf-renderer",function(){if(D0S!==void 0)return D0S;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return D0S=I},{mode:1});var pud;var Qy=function(){var I=_.q.apply(this,arguments)||this;I.itemStyle="link-item";I.watchMetadataRefresh=!1;I.skinnyMode=!1;I.metaPanel=!1;I.inStructuredDescription=!1;I.actionMap={"yt-update-merchandise-shelf-action":"handleUpdateMerchShelfAction"};I.updateOnResizeDebouncer=null;return I};
_.R(Qy,_.q);_.u=Qy.prototype;_.u.ready=function(){this.updateOnResize=this.updateOnResize.bind(this);this.updateOnResize()};
_.u.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"}}}}};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.updateOnResize()};
_.u.attachVEs=function(I){I.trackingParams&&_.e2().graftServerVe(I.trackingParams)};
_.u.handleUpdateMerchShelfAction=function(I){var C=this,y=_.l(I.updateMerchandiseShelfAction.merchandiseShelf,_.dCw);y&&(y.renderDelayMs?(clearTimeout(this.dataSetTimeoutId),this.dataSetTimeoutId=setTimeout(function(){C.attachVEs(y);C.data=y},Number(y.renderDelayMs))):(this.attachVEs(y),this.data=y))};
_.u.updateOnResize=function(){if(this.JSC$14579_scrollContainer!==void 0&&this.JSC$14579_scrollContainer.clientWidth!==0&&this.items!==void 0){var I=this.JSC$14579_scrollContainer.clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-I));this.ytdHorizontalListBehavior.reposition_();var C;switch((C=this.data)==null?void 0:C.shelfType){case "MERCHANDISE_SHELF_TYPE_PRODUCT_LINK":this.itemStyle="link-item";break;default:var y,
k;((y=this.data)==null?void 0:(k=y.items)==null?void 0:k.length)===1?this.itemStyle="cta-item":this.itemStyle=I>=740?"large-item":"small-item"}}};
_.u.debouncedUpdateOnResize=function(){this.updateOnResizeDebouncer=_.on(this.updateOnResizeDebouncer,_.EI.after(100),this.updateOnResize)};
Qy.prototype.debouncedUpdateOnResize=Qy.prototype.debouncedUpdateOnResize;Qy.prototype.dataChanged=Qy.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Qy.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Qy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],Qy.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Qy.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Qy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Qy.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qy.prototype,"itemStyle",void 0);_.E([_.d({value:6}),_.h("design:type",Number)],Qy.prototype,"initialCount",void 0);
_.E([_.d({value:"data.items"}),_.h("design:type",String)],Qy.prototype,"itemsPath",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qy.prototype,"watchMetadataRefresh",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qy.prototype,"skinnyMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qy.prototype,"metaPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qy.prototype,"inStructuredDescription",void 0);
_.E([_.z$("#items"),_.h("design:type",HTMLDivElement)],Qy.prototype,"items",void 0);_.E([_.z$("#scroll-container"),_.h("design:type",HTMLDivElement)],Qy.prototype,"JSC$14579_scrollContainer",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qy.prototype,"dataChanged",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qy.prototype,"debouncedUpdateOnResize",null);
Qy=_.E([_.m({disableElementRegistration:!0,is:"ytd-merch-shelf-renderer"})],Qy);
_.Z(Qy,"ytd-merch-shelf-renderer",function(){if(pud!==void 0)return pud;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return pud=I},{mode:2});var Qqb;var NP=function(){var I=_.q.apply(this,arguments)||this;I.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 I};
_.R(NP,_.q);_.u=NP.prototype;
_.u.addBackstagePostAction=function(I){this.get("header.commentsHeaderRenderer.shouldShowBackstagePostOptimistically",this.data)&&(I=this.get("addBackstagePostAction.renderer.backstagePostThreadRenderer",I))&&(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:I}):this.set("data.contents",[{backstagePostThreadRenderer:I}]))};
_.u.addBackstageCommentAction=function(I){var C=this.get("addBackstageCommentAction.parentId",I);I=this.get("addBackstageCommentAction.renderer.commentThreadRenderer",I);if(C&&I){C=this.postIdToIndices(C);for(var y=0;y<C.length;y++){var k=C[y];if(k<0)break;k="data.contents."+k+".backstagePostThreadRenderer.comments";this.get(k)&&(this.get(k+".backstageCommentsRenderer.contents")&&this.push(k+".backstageCommentsRenderer.contents",{commentThreadRenderer:I}),this.get(k+".backstageCommentsRenderer.teaserContents")?
this.push(k+".backstageCommentsRenderer.teaserContents",{commentThreadRenderer:I}):this.set(k+".backstageCommentsRenderer.teaserContents",[{commentThreadRenderer:I}]))}}};
_.u.addBackstageReplyAction=function(I){var C=this.get("addBackstageReplyAction.parentId",I);I=this.get("addBackstageReplyAction.renderer.commentRenderer",I);C&&I&&this.setCreatorReply(C,I)};
_.u.banAuthorAction=function(I){var C=this.get("banAuthorAction.commentId",I);C&&(I=this.get("banAuthorAction.parentCommentId",I)||this.getParentPostId(C),this.removeFromStream(C,I))};
_.u.hideReportedCommentAction=function(I){var C=this.get("hideReportedCommentAction.commentId",I);C&&((I=this.get("hideReportedCommentAction.parentCommentId",I))||(I=this.getParentPostId(C)),this.removeFromStream(C,I))};
_.u.replaceBackstageCommentAction=function(I){var C=this.get("replaceBackstageCommentAction.commentId",I),y=this.get("replaceBackstageCommentAction.parentId",I);I=this.get("replaceBackstageCommentAction.renderer.commentThreadRenderer",I);if(C&&y&&I){y=this.postIdToIndices(y);for(var k=0;k<y.length;k++){var F=y[k];if(F<0)break;var z=this.commentIdToIndex(C,F,!1);if(z>=0){var c=this.get("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z+".commentThreadRenderer.replies.commentRepliesRenderer");
c&&(I.replies={commentRepliesRenderer:c});this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",z,1,{commentThreadRenderer:I})}z=this.commentIdToIndex(C,F,!0);if(z>=0){if(c=this.get("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+(z+".commentThreadRenderer.replies.commentRepliesRenderer")))I.replies={commentRepliesRenderer:c};this.splice("data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",
z,1,{commentThreadRenderer:I})}}}};
_.u.replaceBackstagePostAction=function(I){var C=this.get("replaceBackstagePostAction.itemId",I);if(C){C=this.postIdToIndices(C);for(var y=0;y<C.length;y++){var k=C[y];if(k<0)break;var F=this.getPostRendererType(k),z=this.get("replaceBackstagePostAction.renderer."+F,I);if(!z&&F!=="sharedPostRenderer")break;var c=!1;z||(c=!0,z=this.get("replaceBackstagePostAction.renderer.backstagePostRenderer",I));if(!z)break;var r={};c?(_.V5(r,tkY,z),this.set("data.contents."+k+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
r)):(_.V5(r,new _.J(F),z),this.set("data.contents."+k+".backstagePostThreadRenderer.post",r))}}};
_.u.replaceBackstageReplyAction=function(I){var C=this.get("replaceBackstageReplyAction.replyId",I),y=this.get("replaceBackstageReplyAction.parentId",I);I=this.get("replaceBackstageReplyAction.renderer.commentRenderer",I);C&&I&&y&&this.setCreatorReply(y,I)};
_.u.removeCommentAction=function(I){var C=this.get("removeCommentAction.commentId",I);if(C){var y=this.get("removeCommentAction.parentCommentId",I);y&&this.get("removeCommentAction.isCreatorReply",I)?this.setCreatorReply(y,void 0):(y||(y=this.getParentPostId(C)),this.removeFromStream(C,y))}};
_.u.setCreatorReply=function(I,C){var y=this.getParentPostId(I);if(y){y=this.postIdToIndices(y);for(var k=0;k<y.length;k++){var F=y[k];if(F<0)break;var z=this.commentIdToIndex(I,F,!1);if(z>=0){var c="data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents."+z;z=c+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply";c+=".commentThreadRenderer.replies";C==void 0?(this.set(c,{}),this.set(z,!1)):(this.set(c,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),
this.set(c+".commentRepliesRenderer.teaserContents.0.commentRenderer.isCreatorReply",!0),this.set(z,!0))}z=this.commentIdToIndex(I,F,!0);z>=0&&(z="data.contents."+F+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents."+z,F=z+".commentThreadRenderer.comment.commentRenderer.containsCreatorReply",z+=".commentThreadRenderer.replies",C==void 0?(this.set(z,{}),this.set(F,!1)):(this.set(z,{commentRepliesRenderer:{teaserContents:[{commentRenderer:C}]}}),this.set(F,!0)))}}};
_.u.removeFromStream=function(I,C){if(C){C=this.postIdToIndices(C);for(var y=0;y<C.length;y++){var k=C[y];if(k<0)break;var F=this.commentIdToIndex(I,k,!1);F>=0&&this.splice("data.contents."+k+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.contents",F,1);F=this.commentIdToIndex(I,k,!0);F>=0&&this.splice("data.contents."+k+".backstagePostThreadRenderer.comments.backstageCommentsRenderer.teaserContents",F,1);k="data.contents."+k+".backstagePostThreadRenderer.post.backstagePostRenderer";
F=k+".backstageAttachment.pollRenderer.votedCommentId";this.get(F)===I&&(this.set(F,null),this.set(k+".backstageAttachment.pollRenderer.commentDelete",null))}}else for(C=this.postIdToIndices(I).reverse(),y=0;y<C.length;y++){k=C[y];if(k<0)break;F=this.getPostRendererType(k);var z=this.get("backstagePostThreadRenderer.post."+F,this.data.contents[k]);z.postId===I?this.splice("data.contents",k,1):F==="sharedPostRenderer"&&this.set("data.contents."+k+".backstagePostThreadRenderer.post.sharedPostRenderer.originalPost",
null);z.scheduledPublishTimeSec&&_.Fe(this.hostElement,"yt-update-posts-total-count-action",[{updatePostsTotalCountAction:{updateType:"UPDATE_POSTS_TOTAL_COUNT_TYPE_REMOVE",number:1}}])}};
_.u.postIdToIndices=function(I){for(var C=[],y=0;y<this.data.contents.length;y++){var k=this.getPostRendererType(y);this.get("backstagePostThreadRenderer.post."+k+".postId",this.data.contents[y])===I&&C.push(y);if(k==="sharedPostRenderer"){var F=this.get("backstagePostThreadRenderer.post."+k+".originalPost.backstagePostRenderer.postId",this.data.contents[y]);k=this.get("backstagePostThreadRenderer.post."+k+".originalPost.postRenderer.postId",this.data.contents[y]);F!==I&&k!==I||C.push(y)}}return C};
_.u.commentIdToIndex=function(I,C,y){if(C<0)return-1;var k,F,z,c,r=_.l((k=this.data)==null?void 0:(F=k.contents)==null?void 0:(z=F[C])==null?void 0:(c=z.backstagePostThreadRenderer)==null?void 0:c.comments,Um8);return(C=y?r==null?void 0:r.teaserContents:r==null?void 0:r.contents)&&C.length?C.findIndex(function(w){return _.l(w,Ns0).comment.commentRenderer.commentId===I}):-1};
_.u.getParentPostId=function(I){I=I.split(".");if(I[1])return I[0]};
_.u.getPostRendererType=function(I){return this.get("backstagePostThreadRenderer.post.sharedPostRenderer",this.data.contents[I])?"sharedPostRenderer":"backstagePostRenderer"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],NP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],NP.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],NP.prototype,"data",void 0);NP=_.E([_.m({disableElementRegistration:!0,is:"ytd-backstage-items"})],NP);
_.Z(NP,"ytd-backstage-items",function(){if(Qqb!==void 0)return Qqb;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Qqb=
I},{mode:1});var Nqw;_.pK({is:"ytd-comments",_template:function(){if(Nqw!==void 0)return Nqw;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-comments--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-paper-spinner-lite active="[[canShowDefaultSpinner_]]" class="style-scope ytd-comments"></tp-yt-paper-spinner-lite>\n<ytd-item-section-renderer id="sections" can-schedule-jobs="[[canScheduleJobs]]" comments-hide-panel-button="[[hidePanelButton]]" continuation-disable-prescan-visibility="[[disablePrescanVisibility]]" data="{{data}}" engagement-panel="[[engagementPanel]]" initial-count="2" is-watch-grid="[[isWatchGrid]]" class="style-scope ytd-comments">\n</ytd-item-section-renderer>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Nqw=I},
behaviors:[_.kfF.YtHostElementBehavior,_.gn.YtPlayerListenerBehavior,_.M.YtRendererBehavior,_.Et.YtActionHandlerBehavior],properties:{data:{type:Object,observer:"dataChanged_"},isBackstage:{type:Boolean,computed:"computeIsBackstage_(data.header.commentsHeaderRenderer.isBackstageContent)",reflectToAttribute:!0},disablePrescanVisibility:{type:Boolean,value:!0},canScheduleJobs:{type:Boolean,value:!0},canShowDefaultSpinner_:{type:Boolean,computed:"computeCanShowDefaultSpinner_(data, canScheduleJobs)"},
engagementPanel:{type:Boolean,reflectToAttribute:!0},hidePanelButton:{type:Boolean,value:!1},isWatchGrid:{type:Boolean,value:!1}},actionMap:{"yt-ban-author-action":"banAuthorAction_","yt-create-comment-action":"createCommentAction_","yt-create-comment-reply-action":"createCommentReplyAction_","yt-hide-reported-comment-action":"hideReportedCommentAction_","yt-pin-comment-action":"pinCommentAction_","yt-reload-comments-command":"reloadComments_","yt-remove-comment-action":"removeCommentAction_","yt-unpin-comment-action":"unpinCommentAction_"},
listeners:{"yt-retrieve-location":"onRetrieveLocation_"},observers:["contentsChanged_(data.contents.*)","headerChanged_(data.header)"],created:function(){var I=this;this.RenderingPriority={RENDERING_PRIORITY_UNKNOWN:0,RENDERING_PRIORITY_PINNED_COMMENT:10,RENDERING_PRIORITY_LINKED_COMMENT:20,RENDERING_PRIORITY_REALTIME_COMMENT:30,RENDERING_PRIORITY_COMMUNITY_GUIDELINES_BELOW_HEADER:80,RENDERING_PRIORITY_FAN_COMMUNITY_SETUP_CARD:90,RENDERING_PRIORITY_COMMENT_HEADER:100};this.initCommentsCsi_();this.player=
null;this.JSC$14592_PLAYER_EVENTS_=new Map;this.JSC$14592_PLAYER_EVENTS_.set("onVideoProgress",function(){I.onVideoProgress_()})},
attached:function(){this.maybeGetAndSetPlayer_()},
maybeGetAndSetPlayer_:function(){var I=this,C=_.hU(this);C&&C.getPlayerPromise().then(function(y){I.playerApiReady_(y)})},
playerApiReady_:function(I){this.setPlayer_(I)},
setPlayer_:function(I){this.player_&&this.unlistenFromPlayerEvents(this.player_,this.JSC$14592_PLAYER_EVENTS_);(this.player_=I)&&this.listenToPlayerEvents(I,this.JSC$14592_PLAYER_EVENTS_)},
detached:function(){this.setPlayer_(null)},
onVideoProgress_:function(){var I=this,C=_.s8("prefetch_comments_ms_after_video");C>0&&setTimeout(function(){return I.loadComments()},C);
_.V("prefetch_comments_idle_job")&&_.NU(_.b$,function(){return I.loadComments()});
this.setPlayer_(null)},
dataChanged_:function(){this.player_||this.maybeGetAndSetPlayer_()},
contentsChanged_:function(I){I&&I.value&&I.path==="data.contents"&&this.tickForCommentsTimer_("cml")},
headerChanged_:function(I){I&&this.tickForCommentsTimer_("cmhl")},
initCommentsCsi_:function(){_.fA("wn_comments");var I=_.Si();I&&_.Gg({clientScreenNonce:I},"wn_comments");this.tickForCommentsTimer_("cmi")},
createCommentAction_:function(I){I=qTY(I);var C,y,k;if(I=(C=I)==null?void 0:(y=C.createCommentAction)==null?void 0:(k=y.contents)==null?void 0:k.commentThreadRenderer){var F,z,c,r,w,L;!this.isBackstage&&((F=this.data)==null?0:(z=F.header)==null?0:(c=z.commentsHeaderRenderer)==null?0:(r=c.createRenderer)==null?0:(w=r.commentSimpleboxRenderer)==null?0:(L=w.zeroStep)==null?0:L.zeroStepChannelCreationRenderer)&&this.set("data.header.commentsHeaderRenderer.createRenderer.commentSimpleboxRenderer.zeroStep",
{});var D,p,Q,X;this.isBackstage&&((D=this.data)==null?0:(p=D.header)==null?0:(Q=p.commentsHeaderRenderer)==null?0:(X=Q.zeroStateMessage)==null?0:X.backstageZeroStateRenderer)&&this.set("data.header.commentsHeaderRenderer.zeroStateMessage",{});this.insert_(I)}},
doReplyInsert_:function(I,C,y,k){k?this.splice(I,k,0,C):this.push(I,C)},
getRepliesPath_:function(I){return"data.contents."+I+".commentThreadRenderer.replies"},
getRepliesContentsPath_:function(I,C){I=this.getRepliesPath_(I);return C?I+".commentRepliesRenderer.teaserContents":I+".commentRepliesRenderer.contents"},
createCommentReplyAction_:function(I){I=qTY(I);var C,y,k=(C=I)==null?void 0:(y=C.createCommentReplyAction)==null?void 0:y.parentCommentId,F,z;if(C=(F=I)==null?void 0:(z=F.createCommentReplyAction)==null?void 0:z.contents)if(k=this.commentIdToIndex_(k),!(k<0))if(F=this.getRepliesPath_(k),this.get(F)){var c,r;I=(c=I)==null?void 0:(r=c.createCommentReplyAction)==null?void 0:r.replyToCommentId;c=this.getRepliesContentsPath_(k,!1);this.get(c)&&(r=this.get(c).length,F=c+"."+(r-1)+".continuationItemRenderer",
this.get(F+".button")?(F=this.replyIdToIndex_(I,k,!1),this.doReplyInsert_(c,C,F,r-1)):this.get(F)||(r=this.replyIdToIndex_(I,k,!1),this.doReplyInsert_(c,C,r,null)));c=this.getRepliesContentsPath_(k,!0);this.get(c)?(k=this.replyIdToIndex_(I,k,!0),(!I||k>=0)&&this.doReplyInsert_(c,C,k,null)):this.set(c,[C])}else this.set(F,{commentRepliesRenderer:{teaserContents:[C]}})},
hideReportedCommentAction_:function(I){var C,y=I==null?void 0:(C=I.hideReportedCommentAction)==null?void 0:C.commentId;if(y){var k;I=I==null?void 0:(k=I.hideReportedCommentAction)==null?void 0:k.parentCommentId;y=y.replace("#",".");I||(I=this.getParentCommentId_(y));this.remove_(y,I)}},
getParentCommentId_:function(I){I=I.split(".");if(I[1])return I[0]},
removeCommentAction_:function(I){var C,y=I==null?void 0:(C=I.removeCommentAction)==null?void 0:C.commentId;if(y){var k;I=I==null?void 0:(k=I.removeCommentAction)==null?void 0:k.parentCommentId;y=y.replace("#",".");I||(I=this.getParentCommentId_(y));this.remove_(y,I)}},
pinCommentAction_:function(I){I=qTY(I);var C,y,k=(C=I)==null?void 0:(y=C.pinCommentAction)==null?void 0:y.commentId;k&&(I=this.get("pinCommentAction.actionResult.update.commentThreadRenderer",I))&&(this.remove_(k),this.insert_(I,!0))},
unpinCommentAction_:function(I){I=qTY(I);var C,y,k=(C=I)==null?void 0:(y=C.unpinCommentAction)==null?void 0:y.commentId;if(k){var F,z,c;if(I=(F=I.unpinCommentAction)==null?void 0:(z=F.actionResult)==null?void 0:(c=z.update)==null?void 0:c.commentThreadRenderer)this.remove_(k),this.insert_(I)}},
banAuthorAction_:function(I){var C,y=I==null?void 0:(C=I.banAuthorAction)==null?void 0:C.commentId;if(y){var k;I=I==null?void 0:(k=I.banAuthorAction)==null?void 0:k.parentCommentId;y=y.replace("#",".");I||(I=this.getParentCommentId_(y));this.remove_(y,I)}},
commentIdToIndex_:function(I){var C;return I&&(C=this.data)!=null&&C.contents?this.data.contents.findIndex(function(y){var k,F;return I===((y==null?void 0:(k=y.commentThreadRenderer)==null?void 0:k.commentViewModel)&&((F=_.l(y.commentThreadRenderer.commentViewModel,Xzq))==null?void 0:F.commentId))}):-1},
insert_:function(I,C){var y,k;if((y=this.data)==null?0:(k=y.contents)==null?0:k.some(function(z){return!(z==null||!z.commentThreadRenderer)}))for(y=0,k=this.data.contents.length;y<k;y++){var F=this.data.contents[y].commentThreadRenderer;
if(this.RenderingPriority[I.renderingPriority]>=this.RenderingPriority[F.renderingPriority]){C&&this.RenderingPriority[I.renderingPriority]==this.RenderingPriority[F.renderingPriority]?this.splice("data.contents",y,1,{commentThreadRenderer:I}):this.splice("data.contents",y,0,{commentThreadRenderer:I});break}}else this.set("data.contents",[{commentThreadRenderer:I}])},
doReplyRemove_:function(I,C,y){I=this.replyIdToIndex_(I,C,y);I<0||(C=this.getRepliesContentsPath_(C,y),this.splice(C,I,1))},
remove_:function(I,C){C=this.commentIdToIndex_(C);C<0?(C=this.commentIdToIndex_(I),C<0||this.splice("data.contents",C,1)):(this.doReplyRemove_(I,C,!1),this.doReplyRemove_(I,C,!0))},
replyIdToIndex_:function(I,C,y){if(C<0)return-1;C=this.getRepliesContentsPath_(C,y);C=this.get(C);if(!C||!C.length)return-1;y=0;for(var k=C.length;y<k;y++){var F=void 0,z=void 0;if(((F=C[y])==null?void 0:(z=F.commentViewModel)==null?void 0:z.commentId)===I)return y}return-1},
computeIsBackstage_:function(I){return!!I},
computeCanShowDefaultSpinner_:function(I,C){return C?(C=_.N().resolve(_.aU(_.BP)))&&C.isOnWatch&&C.isOnWatch()?!(I&&(I.contents||I.header||I.continuations)):!1:!1},
onRetrieveLocation_:function(I,C){C&&C.hasComments&&this.tickForCommentsTimer_("lss")},
tickForCommentsTimer_:function(I){_.KA(I,void 0,"wn_comments")},
reloadComments_:function(I){I&&I.reloadCommentsCommand&&I.reloadCommentsCommand.command&&I.reloadCommentsCommand.command.continuationCommand&&_.Tg(this,[I.reloadCommentsCommand.command])},
loadComments:function(){_.s8("prefetch_comments_ms_after_video")||_.V("prefetch_comments_idle_job")?this.$.sections.triggerInitialContinuations():this.$.sections.triggerContinuations()}});var Vy=function(){return _.cO.apply(this,arguments)||this};
_.R(Vy,_.cO);_.u=Vy.prototype;_.u.bindIf=function(I,C,y){return I?C:y};
_.u.bindIfDefined=function(I,C){return I!==void 0?I:C};
_.u.booleanString=function(I){return(!!I).toString()};
_.u.equals=function(){for(var I=_.wa.apply(0,arguments),C=I[0],y=1;y<I.length;y++)if(C!=I[y])return!1;return!0};
_.u.isGreaterThan=function(I,C){return I>C};
_.u.isLessThan=function(I,C){return I<C};
_.u.logicalAND=function(){for(var I=_.wa.apply(0,arguments),C=!!I[0],y=1;y<I.length;y++)C=C&&!!I[y];return C};
_.u.logicalOR=function(){for(var I=_.wa.apply(0,arguments),C=!!I[0],y=1;y<I.length;y++)C=C||!!I[y];return C};
_.u.toBool=function(I){return!!I};
Vy.prototype.toBool=Vy.prototype.toBool;Vy.prototype.logicalOR=Vy.prototype.logicalOR;Vy.prototype.logicalAND=Vy.prototype.logicalAND;Vy.prototype.isLessThan=Vy.prototype.isLessThan;Vy.prototype.isGreaterThan=Vy.prototype.isGreaterThan;Vy.prototype.equals=Vy.prototype.equals;Vy.prototype.booleanString=Vy.prototype.booleanString;Vy.prototype.bindIfDefined=Vy.prototype.bindIfDefined;Vy.prototype.bindIf=Vy.prototype.bindIf;Vy=_.E([_.eA()],Vy);_.Vwb=[Vy.prototype];var jqm;var lFd;var jK=function(){return _.q.apply(this,arguments)||this};
_.R(jK,_.q);jK.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}}}};
jK.prototype.onBackIconTap_=function(){window.history.back()};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jK.prototype,"data",void 0);jK=_.E([_.lT({is:"yt-header-with-back-renderer",disableElementRegistration:!0})],jK);
_.Z(jK,"yt-header-with-back-renderer",function(){if(lFd===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;jqm===void 0&&(jqm=document.createElement("template"));var k=jqm;y.call(C,k.content.cloneNode(!0),I.content.firstChild);lFd=I}I=lFd;return I},{mode:2});var Xud;var $00;var lt=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(lt,_.q);_.u=lt.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I,this.setUrl())};
_.u.dataChanged=function(){var I=this;if(this.data){var C=this.setUrl();C&&_.O0({destination:window,iframe:this.iframe,origin:_.wRb(C.toString()),channelName:"yt-iframe",onMessage:function(y){(y=I.getCommunicationCommand(y.data))&&I.ytComponentBehavior.resolveCommand(y)},
onEstablished:function(){}})}};
_.u.setUrl=function(){if(this.data&&this.data.iframeUrl){var I=_.YV(this.isDarkTheme&&this.data.darkThemeIframeUrl?this.data.darkThemeIframeUrl:this.data.iframeUrl);if(I)return _.jO(this.iframe,I),I}};
_.u.getCommunicationCommand=function(I){var C;if((C=this.data)!=null&&C.onCommunicationCommandsMap){C=this.data.onCommunicationCommandsMap.find(function(F){return F.key===I});
if(C==null?0:C.value)return C==null?void 0:C.value;try{var y=Wyd(_.T0(I)),k=this.data.onCommunicationCommandsMap.find(function(F){return F.key===(y==null?void 0:_.b4(y,1))});
if(k==null?0:k.value)return k==null?void 0:k.value}catch(F){}}};
lt.prototype.dataChanged=lt.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lt.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],lt.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lt.prototype,"data",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],lt.prototype,"isDarkTheme",void 0);_.E([_.z$("#iframe"),_.h("design:type",HTMLIFrameElement)],lt.prototype,"iframe",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lt.prototype,"dataChanged",null);lt=_.E([_.lT({is:"yt-iframe-renderer",disableElementRegistration:!0})],lt);
_.Z(lt,"yt-iframe-renderer",function(){if($00===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Xud===void 0&&(Xud=document.createElement("template"));var k=Xud;y.call(C,k.content.cloneNode(!0),I.content.firstChild);$00=I}I=$00;return I},{mode:2});_.XQ=function(I){_.LL.call(this);this.callback=I;this.bezier=new Rlc(0,0,.4,0,.2,1,1,1);this.delay=new _.Oo(this.next,window,this);this.JSC$14610_animating=!1;_.kq(this,this.delay)};
_.R(_.XQ,_.LL);_.XQ.prototype.isAnimating=function(){return this.JSC$14610_animating};
_.XQ.prototype.start=function(I,C,y){this.config={from:I,to:C,duration:y,startTime:(0,_.JY)()};this.JSC$14610_animating=!0;this.next()};
_.XQ.prototype.stop=function(){this.delay.stop();this.JSC$14610_animating=!1;this.config=void 0};
_.XQ.prototype.next=function(){if(this.config){var I=this.config,C=I.from,y=I.to,k=I.duration;I=I.startTime;var F=(0,_.JY)()-I;I=this.bezier;k=Ybu(I,F/k);if(k==0)I=I.y0;else if(k==1)I=I.y3;else{F=jZ(I.y0,I.y1,k);var z=jZ(I.y1,I.y2,k);I=jZ(I.y2,I.y3,k);F=jZ(F,z,k);z=jZ(z,I,k);I=jZ(F,z,k)}I=_.St(I,0,1);this.callback(C+(y-C)*I);I<1?this.delay.start():this.JSC$14610_animating=!1}};_.$h=new _.Jj("MINI_APP_CLIENT_DATA_PROVIDER_TOKEN");new CustomEvent("iframeLoadedForTesting");var Rge={INIT:0,START:1,READY:2,END:3,0:"INIT",1:"START",2:"READY",3:"END"},Y9P=function(I,C,y,k){_.LL.call(this);this.JSC$14618_miniAppId=I;this.localReleaseId=C;this.derivedDeviceInterface=y;this.isForeground=k;this.JSC$14618_playNonceResolver=new _.ug;this.playPingTimerId=NaN;this.playPingIntervalMs=_.s8("play_ping_interval_ms",3E4);this.playClickIntervalMs=_.s8("play_click_interval_ms",3E4);this.enableDisplayingPpn=_.V("enable_displaying_ppn");this.JSC$14618_miniAppClientDataProvider=_.N().resolve(_.$h);
this.state=0;this.firstClickRecorded=!1;this.clickRecordedMs=0;this.beforeReady=!0;this.gameReady=!1;bYS(this);var F=setTimeout(function(){_.SN(new _.ph("Timed out after 30000ms while waiting for play nonce"))},3E4);
this.JSC$14618_playNonceResolver.promise.then(function(){clearTimeout(F)})};
_.R(Y9P,_.LL);var fFq=function(I,C){I.JSC$14618_playNonceResolver.resolve(C!=null?C:YB(8));I.enableDisplayingPpn&&Gzq(I).then(function(y){I.JSC$14618_miniAppClientDataProvider.clientData.set("post_play_nonce",y)})},Gzq=function(I){return _.e(function(C){return C.nextAddress==1?_.n(C,I.JSC$14618_playNonceResolver.promise,2):C.return(C.yieldResult)})},bYS=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$14618_playNonceResolver.promise,2);C=k.yieldResult;y={miniAppInfo:{externalPostId:I.JSC$14618_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:C,derivedDeviceInterface:I.derivedDeviceInterface}};_.Gg(y);_.oI(k)})},KVd=function(I){I.state!==0?_.SN(new _.ph("[MiniAppPlayLogger] recordPlayStart failed with state "+Rge[I.state])):(I.state=1,Rf(I,"ma_cl"),bt(I,"PLAY_EVENT_TYPE_PLAY_START"),S90(I))},ANw=function(I){I.isForeground=!1;
bt(I,"PLAY_EVENT_TYPE_PLAY_PAUSE")},g78=function(I){I.state!==1&&I.state!==2?_.SN(new _.ph("[MiniAppPlayLogger] recordPlayEnd failed with state "+Rge[I.state])):(I.state=3,window.clearInterval(I.playPingTimerId),I.playPingTimerId=NaN,aAF(),bt(I,"PLAY_EVENT_TYPE_PLAY_END",{},!0))},v7e=function(I,C){I.state===2&&I.gameReady&&(I.firstClickRecorded?Date.now()-I.clickRecordedMs<I.playClickIntervalMs||(I.clickRecordedMs=Date.now(),bt(I,"PLAY_EVENT_TYPE_PLAY_CLICK")):C&&(Rf(I,"ma_fua"),bt(I,"PLAY_EVENT_TYPE_PLAY_FIRST_USER_ACTION",
{sendIsolatedPayload:!0}),I.firstClickRecorded=!0,I.clickRecordedMs=Date.now()))};
Y9P.prototype.logError=function(I){var C=this,y;_.e(function(k){if(k.nextAddress==1)return I.metadata.externalPostId=C.JSC$14618_miniAppId,y=I.metadata,_.n(k,Promise.race([C.JSC$14618_playNonceResolver.promise,new Promise(function(F){setTimeout(function(){F("")},3E4)})]),2);
y.postPlayNonce=k.yieldResult;I.metadata.localReleaseId=C.localReleaseId;I.loggingError.level="WARNING";_.GB(I.loggingError,I.loggingError.level,void 0,void 0,void 0,void 0,void 0,{miniAppMetadata:I.metadata});_.oI(k)})};
var WVS=function(I,C,y,k){var F,z,c,r,w,L;_.e(function(D){if(D.nextAddress==1)return _.n(D,I.JSC$14618_playNonceResolver.promise,2);F=D.yieldResult;z={externalPostId:I.JSC$14618_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:F,sdkVersion:y,api:C};k!==void 0&&(z.networkRequestsMeasurement={networkRequests:_.ti(k,1),cachedRequests:_.ti(k,2),transferredBytes:_.ti(k,3)},(c=k)==null?0:_.nF(c,tw,6))&&(z.networkRequestsMeasurement.serviceWorkerRequestsMeasurement={interceptedRequests:((r=_.MS(k,
tw,6))==null?void 0:G6(r,1))||"0",cacheHits:((w=_.MS(k,tw,6))==null?void 0:G6(w,2))||"0",cachedBytes:((L=_.MS(k,tw,6))==null?void 0:G6(L,3))||"0"});_.b2("miniAppSdkUsage",z);_.oI(D)})},x0w=function(I,C,y){var k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B;
_.e(function(t){if(t.nextAddress==1)return _.n(t,I.JSC$14618_playNonceResolver.promise,2);k=t.yieldResult;F={externalPostId:I.JSC$14618_miniAppId,localReleaseId:I.localReleaseId,postPlayNonce:k,sdkVersion:y,measurementWindow:{startTimestampMs:String($C(C,1)),endTimestampMs:String($C(C,2))},frameRate:{averageFrameTimeDeltaMs:Rh(C,3),averageFrameIdleTimeMs:Rh(C,4)}};_.nF(C,Jw,5)&&(F.networkRequests={networkRequests:(z=o$(C))==null?void 0:_.ti(z,1),cachedRequests:(c=o$(C))==null?void 0:_.ti(c,2),transferredBytes:(r=
o$(C))==null?void 0:_.ti(r,3),sameOriginStatusCodeToCounts:d00((w=o$(C))==null?void 0:O59(w,4)),crossOriginStatusCodeToCounts:d00((L=o$(C))==null?void 0:O59(L,5))},(D=o$(C))==null?0:_.nF(D,tw,6))&&(F.networkRequests.serviceWorkerRequestsMeasurement={interceptedRequests:((p=o$(C))==null?void 0:(Q=_.MS(p,tw,6))==null?void 0:G6(Q,1))||"0",cacheHits:((X=o$(C))==null?void 0:(b=_.MS(X,tw,6))==null?void 0:G6(b,2))||"0",cachedBytes:((S=o$(C))==null?void 0:(A=_.MS(S,tw,6))==null?void 0:G6(A,3))||"0"});_.nF(C,
ZIm,7)&&(F.gameCapture={averageFrameTimeDeltaMs:(x=_.MS(C,ZIm,7))==null?void 0:Rh(x,1),averageFrameIdleTimeMs:(B=_.MS(C,ZIm,7))==null?void 0:Rh(B,2)});_.b2("miniAppPerformanceMetrics",F);_.oI(t)})},q9Y=function(I,C,y){var k,F;
return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.JSC$14618_playNonceResolver.promise,2);k=z.yieldResult;F={adResult:"MINI_APP_AD_RESULT_REJECTED",miniAppContext:{externalPostId:I.JSC$14618_miniAppId,postPlayNonce:k,miniAppReleaseId:I.localReleaseId},derivedDeviceInterface:I.derivedDeviceInterface,adTriggerType:C};F.rejectedReason=y||"MINI_APP_AD_REJECTED_REASON_UNSPECIFIED";_.b2("miniAppAdEvent",F);_.oI(z)})};
Y9P.prototype.disposeInternal=function(){_.LL.prototype.disposeInternal.call(this);window.clearInterval(this.playPingTimerId);this.playPingTimerId=NaN};
var bt=function(I,C,y,k){y=y===void 0?{}:y;k=k===void 0?!1:k;var F,z,c,r;_.e(function(w){if(w.nextAddress==1)return F=I.isForeground,z=I.beforeReady,_.n(w,I.JSC$14618_playNonceResolver.promise,2);c=w.yieldResult;r={externalPostId:I.JSC$14618_miniAppId,localReleaseId:I.localReleaseId,derivedDeviceInterface:I.derivedDeviceInterface,postPlayNonce:c,type:C};y.sequenceGroup=c;r.playState=z?"PLAY_STATE_NOT_READY":F?"PLAY_STATE_READY_FOREGROUND":"PLAY_STATE_READY_BACKGROUND";_.b2("miniAppPlayEvent",r,y);
k&&_.Yo();_.oI(w)})},Rf=function(I,C){var y;
_.e(function(k){if(k.nextAddress==1)return y=(0,_.JY)(),_.n(k,I.JSC$14618_playNonceResolver.promise,2);_.Sr(C,y);_.oI(k)})},S90=function(I){isNaN(I.playPingTimerId)&&(I.playPingTimerId=_.uX(function(){I.state!==1&&I.state!==2?_.SN(new _.ph("[MiniAppPlayLogger] reportPlayPing failed with state "+Rge[I.state])):bt(I,"PLAY_EVENT_TYPE_PLAY_PING")},I.playPingIntervalMs))},d00=function(I){return Array.from(I.entries()).map(function(C){var y=_.T(C);
C=y.next().value;y=y.next().value;return{key:C,value:y}})};var m0b=_.s8("show_mini_app_ad_frequency_cap_ms",0),ZYw=function(){this.showAdIntervalMs=m0b;this.isRateLimited=!0},BqS=function(I,C){setTimeout(function(){return I.isRateLimited=!1},I.showAdIntervalMs);
I.showMiniAppAdCommand=C.showMiniAppAdCommand;I.isEmbeddedInWebview=C.isEmbeddedInWebview;I.playLogger=C.playLogger},hgP=function(I,C){var y;
return _.e(function(k){if(k.nextAddress==1){if(!I.showMiniAppAdCommand||!I.isEmbeddedInWebview)return k.return(E7w(I,C,"MINI_APP_AD_REJECTED_REASON_CLIENT_UNSUPPORTED"));if(I.isRateLimited)return k.return(E7w(I,C,"MINI_APP_AD_REJECTED_REASON_RATE_LIMITED"));I.adResolver=new _.ug;y=zJ0(new ugb,C);qE(I.showMiniAppAdCommand,Tbq(y));I.isRateLimited=!0;setTimeout(function(){return I.isRateLimited=!1},I.showAdIntervalMs);
return _.n(k,I.adResolver.promise,2)}return k.return(k.yieldResult)})};
ZYw.prototype.onAdFinished=function(I){I=NAu(I);var C;(C=this.adResolver)==null||C.resolve(I)};
var E7w=function(I,C,y){var k;return _.e(function(F){if(F.nextAddress==1)F=_.n(F,(k=I.playLogger)==null?void 0:q9Y(k,UBI(C),y),2);else{var z=F.return;var c=new Q7u;c=_.Ie(c,1,2);F=z.call(F,c)}return F})};var U0m=new _.Jj("INNERTUBE_MANAGER_TOKEN");var HY8=function(){this.callbacks={}};
HY8.prototype.initialize=function(I){var C=this;this.callbacks=I;window.youtubewebview?window.youtubewebview.onmessage=function(y){twb(C,y)}:(window.nativeMessageListener={},window.nativeMessageListener.onmessage=function(y){twb(C,y)})};
var twb=function(I,C){if(C.data)try{var y=Wyd(C.data);if(_.AP(_.wd(y,1))!=null){var k=sNm(_.b4(y,2));switch(_.b4(y,1)){case "yt-mini-app-load-audio-state":var F,z;(z=(F=I.callbacks).onAudioStateLoaded)==null||z.call(F,_.X8(k,Li(k,$f,1)));break;case "yt-mute-mini-app":var c,r;(r=(c=I.callbacks).onMuteMiniApp)==null||r.call(c);break;case "yt-unmute-mini-app":var w,L;(L=(w=I.callbacks).onUnmuteMiniApp)==null||L.call(w);break;case "yt-playable-exit":var D,p;(p=(D=I.callbacks).onExit)==null||p.call(D);
break;case "yt-post-play-nonce":var Q,X;(X=(Q=I.callbacks).onPostPlayNonceReceived)==null||X.call(Q,fF(k,2,$f));break;case "yt-confirm-exit-mini-app":var b,S;(S=(b=I.callbacks).confirmExitMiniApp)==null||S.call(b);break;case "yt-confirm-exit-mini-app-edu":var A,x;(x=(A=I.callbacks).confirmExitMiniAppEdu)==null||x.call(A);break;case "yt-benchmarking-response":var B,t;(t=(B=I.callbacks).onNativeBenchmarkingMessageReceived)==null||t.call(B,fF(k,2,$f));break;case "yt-mini-app-load-3p-consent-state":var U,
yW;(yW=(U=I.callbacks).multiplayer3pAckStateLoaded)==null||yW.call(U,_.X8(k,Li(k,$f,1)));break;case "yt-mini-app-get-exit-mini-app-seen-state":var a,cs;(cs=(a=I.callbacks).exitMiniAppSeenStateLoaded)==null||cs.call(a,_.X8(k,Li(k,$f,1)));break;case "yt-mini-app-on-navigate-to-new-mini-app":var XO,Rm;(Rm=(XO=I.callbacks).onNavigateToNewMiniApp)==null||Rm.call(XO);break;case "yt-game-data-available":var $z,hX;(hX=($z=I.callbacks).onGameDataAvailable)==null||hX.call($z,fF(k,2,$f));break;case "yt-pause-mini-app":var vs,
mY;(mY=(vs=I.callbacks).onPauseMiniApp)==null||mY.call(vs);break;case "yt-resume-mini-app":var Bs,n5;(n5=(Bs=I.callbacks).onResumeMiniApp)==null||n5.call(Bs);break;case "yt-playable-ad-finished":var sH,Zt;(Zt=(sH=I.callbacks).onAdFinished)==null||Zt.call(sH,fF(k,2,$f))}}else _.SN(Error("Sh"))}catch(Qd){_.GB(Error("Th"))}else _.SN(Error("Uh"))};var tpI=function(I){this.rpcErrorCode=I};var Yh=function(I,C,y){this.intervalMs=I;this.apiFunc=C;this.type=y;this.schedulerReady=!0};
Yh.prototype.call=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1){if(C.type!==1&&I===C.cachedValue)return k.return();C.pendingApiRequestResolver||(C.pendingApiRequestResolver=new _.ug);y=C.pendingApiRequestResolver.promise;C.cachedValue=I;return _.n(k,JN8(C),2)}return k.return(y)})};
Yh.prototype.flush=function(I){I=I===void 0?!1:I;var C=this;return _.e(function(y){return C.cachedValue===void 0?y.return():_.n(y,C.apiFunc(C.cachedValue,I),0)})};
var JN8=function(I){var C,y,k;return _.e(function(F){switch(F.nextAddress){case 1:if(!I.schedulerReady||!I.pendingApiRequestResolver)return F.return();I.schedulerReady=!1;C=I.pendingApiRequestResolver;I.pendingApiRequestResolver=void 0;_.aM(F,2);if(I.cachedValue===void 0){F.jumpTo(4);break}return _.n(F,I.apiFunc(I.cachedValue),5);case 5:y=F.yieldResult,C.resolve(y);case 4:_.dC(F,3);break;case 2:k=_.sj(F),C.reject(k);case 3:setTimeout(function(){return _.e(function(z){I.schedulerReady=!0;return _.n(z,
JN8(I),0)})},I.intervalMs),_.oI(F)}})};var aEF=window.location.origin+"/miniapp_cloudsaves",JbK=[400,401],OYd=_.s8("cloud_save_game_data_rate_limit_ms",3E3),I3S=function(I){var C=this;this.JSC$14662_miniAppId=I;this.loadAttempts=0;this.cloudSaveIntervalMs=OYd;this.initialDownloadDataSucceeded=!1;this.JSC$14662_playNonceResolver=new _.ug;this.scottyUploadRateLimiter=new Yh(this.cloudSaveIntervalMs,function(y,k){return aF0(C,y,k)},2);
this.downloadDataPromise=Mwq(this);this.downloadDataPromise.then(function(){C.initialDownloadDataSucceeded=!0}).catch(function(){})},COd=function(I,C){C.then(function(y){return I.JSC$14662_playNonceResolver.resolve(y)})},s2w=function(I){return _.e(function(C){return I.cachedData===void 0?C.return(I.downloadDataPromise):C.return(I.cachedData)})},o2d=function(I,C){return _.e(function(y){I.cachedData=C;
if(!I.initialDownloadDataSucceeded)throw Error("Vh");return _.n(y,I.scottyUploadRateLimiter.call(C),0)})},ytq=function(){return new Promise(function(I){setTimeout(I,1E3,"")})},ksq=function(I,C){var y,k;
return _.e(function(F){if(F.nextAddress==1)return y=I.JSC$14662_miniAppId,_.n(F,Promise.race([I.JSC$14662_playNonceResolver.promise,ytq()]),2);k={"X-YouTube-MiniAppId":y,"X-YouTube-PostPlayNonce":F.yieldResult};"DELEGATED_SESSION_ID"in _.SR&&$sm(C,k);return F.return(k)})},aF0=function(I,C,y){y=y===void 0?!1:y;
return _.e(function(k){return HUX()?_.V("enable_cloud_save_error_popup_after_retry")?k.return(new Promise(function(F,z){var c,r,w,L,D;return _.e(function(p){switch(p.nextAddress){case 1:c=0,r=!0,L=w=null;case 2:if(!(r&&c++<2)){p.jumpTo(4);break}_.aM(p,5);return _.n(p,Fid(I,C,y),7);case 7:w=p.yieldResult;r=w.ok?!1:!JbK.includes(w.status);_.dC(p,2);break;case 5:L=D=_.sj(p);r=OUO(L);p.jumpTo(2);break;case 4:w?w.ok?(G4(I,OYd),F()):(G4(I,I.cloudSaveIntervalMs*2),z(Error("Wh`"+String(w.status),{cause:{rpcErrorCode:w.status}}))):
(G4(I,I.cloudSaveIntervalMs*2),z(L||Error("Xh"))),_.oI(p)}})})):k.return(new Promise(function(F,z){var c,r;
return _.e(function(w){if(w.nextAddress==1){if(I.JSC$14662_miniAppId==="")return z(Error("Yh")),w.return();_.aM(w,2);return _.n(w,Fid(I,C,y),4)}if(w.nextAddress!=2)return c=w.yieldResult,c.ok?(G4(I,OYd),F()):(G4(I,I.cloudSaveIntervalMs*2),z(Error("Wh`"+String(c.status),{cause:{rpcErrorCode:c.status}}))),_.dC(w,0);r=_.sj(w);G4(I,I.cloudSaveIntervalMs*2);z(r);_.oI(w)})})):k.return()})},Fid=function(I,C,y){y=y===void 0?!1:y;
var k,F,z;return _.e(function(c){if(c.nextAddress==1)return k=_.HR((new TextEncoder).encode(C)),F=Mpm(),_.n(c,ksq(I,F),2);z=c.yieldResult;return c.return(fetch(F,{method:"POST",body:new Blob([k]),headers:z,keepalive:y}))})},Mwq=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1){if(!HUX())return k.return("");if(I.JSC$14662_miniAppId==="")throw Error("Yh");if(I.loadAttempts>2)return k.return(I.downloadDataPromise);_.aM(k,2);return _.n(k,uKc(I),4)}if(k.nextAddress!=2)return C=k.yieldResult,k.return(C);y=_.sj(k);if(OUO(y)&&++I.loadAttempts<2)return k.return(Mwq(I));throw y;})},uKc=function(I){var C,y,k,F,z;
return _.e(function(c){switch(c.nextAddress){case 1:return _.aM(c,2),C=Mpm(),_.n(c,ksq(I,C),4);case 4:return y=c.yieldResult,_.n(c,fetch(C,{method:"GET",headers:y}),5);case 5:return k=c.yieldResult,k.ok?_.n(c,k.text(),6):c.return(Promise.reject(Error("Zh`"+String(k.status),{cause:new tpI(k.status)})));case 6:return F=c.yieldResult,c.return((new TextDecoder).decode(_.T0(F)));case 2:return z=_.sj(c),c.return(Promise.reject(z))}})},G4=function(I,C){I.cloudSaveIntervalMs=C;
I.scottyUploadRateLimiter.intervalMs=I.cloudSaveIntervalMs};
I3S.prototype.flush=function(){var I=this;return _.e(function(C){return I.initialDownloadDataSucceeded?_.n(C,I.scottyUploadRateLimiter.flush(!0),0):C.return()})};var zLm=CZ(I$(1),ai(1)),TNw=CZ(I$(1),ai(3)),fO=function(I){this.callbacks=I};
_.u=fO.prototype;_.u.onAudioToggled=function(I,C){(C===void 0||C)&&_.ky("yt-mini-app-is-audio-enabled",I,2592E3)};
_.u.onPause=function(){this.onAudioToggled(!1,!1)};
_.u.onResume=function(){this.onAudioToggled(this.callbacks.isAudioEnabled(),!1)};
_.u.returnNativeBenchmarkingMessage=function(){};
_.u.sendGameData=function(){};
_.u.sendStartGameFrameCapture=function(){};
var IPz=function(I,C,y){this.callbacks=I;var k=this;this.sdkVersion=new _.ug;this.channel=new THY(_.O0({destination:window,iframe:C,origin:(new URL(y.toString())).origin,channelName:"playableIframe",onMessage:this.onMessage(),onEstablished:function(){var F=SK;var z=I$(5);var c=new Gbc;c=_.KF(c,1,1E4);z=_.Om(z,4,ddP,c);F(k,z);k.onAudioToggled(k.callbacks.isAudioEnabled())}}));
this.sdkVersionTimeoutId=setTimeout(function(){k.sdkVersion.resolve("")},1E4)};
_.R(IPz,fO);_.u=IPz.prototype;_.u.onAudioToggled=function(I,C){fO.prototype.onAudioToggled.call(this,I,C===void 0?!0:C);C=SK;var y=I$(2),k=new bIe;I=_.Mb(k,1,I);I=_.Om(y,3,ddP,I);C(this,I)};
_.u.onPause=function(){fO.prototype.onPause.call(this);SK(this,I$(3))};
_.u.onResume=function(){fO.prototype.onResume.call(this);SK(this,I$(4))};
_.u.returnNativeBenchmarkingMessage=function(I){var C=SK,y=I$(6);var k=ai(_.nF(I,Bz,1)?1:2);I=_.nF(I,Bz,1)?I:null;k=_.Om(k,5,Mu,I);C(this,CZ(y,k))};
_.u.sendGameData=function(I){var C=SK,y=I$(7);I=_.Om(y,5,ddP,I);C(this,I)};
_.u.sendStartGameFrameCapture=function(){SK(this,I$(9))};
var KO=function(I,C,y){var k,F,z;return _.e(function(c){if(c.nextAddress==1)return k=I.callbacks,F=k.onSdkCalled,z=C,_.n(c,I.sdkVersion.promise,2);F.call(k,z,c.yieldResult,y);_.oI(c)})};
IPz.prototype.onMessage=function(){var I=this;return rXw(yK,function(C){var y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO,Rm,$z,hX,vs,mY,Bs,n5,sH,Zt,Qd,OF,Rw,ku,xK,yf,uK,oL,Uw,TR,G0,hc;return _.e(function(wS){switch(wS.nextAddress){case 1:if(!Udw(C.data))return _.SN(Error("$h")),wS.return();y=_.YC(C.data,1);_.V("enable_iframe_message_get_type_via_fields")&&(k=C.data,y=F=_.YC(k,1));switch(y){case 8:if(C.data.hasMetadata()){var Ws=I.sdkVersion,i8=Ws.resolve;var l8=C.data.getMetadata();l8=_.b4(l8,
1);i8.call(Ws,l8);clearTimeout(I.sdkVersionTimeoutId)}break;case 6:return wS.jumpTo(2);case 16:if(!_.Pv(C.data,qnc,14,kf))return wS.return();z=_.Sk(C.data,qnc,14,kf);(r=(c=I.callbacks).onGameFrameReceived)==null||r.call(c,z);return wS.return();case 1:if(Ws=_.Sk(C.data,Kew,2,kf))switch(_.YC(Ws,1)){case 1:I.callbacks.onFirstFrameReady();if(_.V("enable_network_request_logging_on_game_events")&&_.nF(Ws,Jw,4)){KO(I,"MINI_APP_SDK_API_FIRST_FRAME_READY",_.MS(Ws,Jw,4));break}KO(I,"MINI_APP_SDK_API_FIRST_FRAME_READY");
break;case 2:(l8=(i8=I.callbacks).onGameReady)==null||l8.call(i8);if(_.V("enable_network_request_logging_on_game_events")&&_.nF(Ws,Jw,4)){KO(I,"MINI_APP_SDK_API_GAME_READY",_.MS(Ws,Jw,4));break}KO(I,"MINI_APP_SDK_API_GAME_READY");break;case 3:if(_.Pv(Ws,OJ,3,AuP))I.callbacks.onResourceLoaded(_.Sk(Ws,OJ,3,AuP))}return wS.return();case 3:return wS.jumpTo(3);case 4:return wS.jumpTo(4);case 2:return wS.jumpTo(5);case 9:return wS.jumpTo(6);case 10:return I.callbacks.onClick(),wS.return();case 5:return wS.jumpTo(7);
case 11:if(!_.Pv(C.data,UJ,9,kf))return wS.return();w=_.Sk(C.data,UJ,9,kf);(D=(L=I.callbacks).onBenchmarkingMessageReceived)==null||D.call(L,w);Ws=C.reply;i8=I$(1);l8=ai(1);var bj=new UJ;var K5=new Uint8Array(gc9(w,Li(w,j7d,6))|0);bj=rT(bj,5,j7d,_.vm(K5,!1));l8=_.Om(l8,5,Mu,bj);Ws.call(C,CZ(i8,l8));return wS.return();case 12:return wS.jumpTo(8);case 13:return wS.jumpTo(9);case 15:if(!_.V("enable_open_yt_content"))return C.reply(TNw),wS.return();if(!_.Pv(C.data,xdq,12,kf))return C.reply(CZ(I$(1),ai(2))),
wS.return();Ws=_.Sk(C.data,xdq,12,kf);p=_.b4(Ws,1);I.callbacks.onOpenYTContent(p);C.reply(zLm);return wS.return();case 14:return wS.jumpTo(10);default:return wS.return()}wS.jumpTo(0);break;case 2:if(!_.Pv(C.data,s2,5,kf))return wS.return();i8=C.data;Ws=Li(i8,kf,5);i8=i8.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows;(Ws=Qf(i8,i8[_.Vd]|0,s2,Ws))||(Ws=s2[WR])||(Ws=new s2,$u(Ws.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows),Ws=s2[WR]=Ws);Q=Ws;Ws=_.U1(Q,HV,1,_.Hi());X=_.T(Ws);b=X.next();
case 12:if(b.done){wS.jumpTo(14);break}S=b.value;A=new _.ph;A.level=_.YC(S,2)===1?"WARNING":"ERROR";x=soI(S.getSource());return _.n(wS,I.sdkVersion.promise,15);case 15:B={source:x,sdkVersion:wS.yieldResult};_.ij(_.wd(S,6))!=null?(A.message=S.getMessage(),A.stack=_.b4(S,5),B.sdkErrorType=oEX(_.YC(S,6)),_.ij(_.wd(S,7))!=null&&(B.sdkApi=yOs(_.YC(S,7)))):A.stack=void 0;U=t=void 0;(U=(t=I.callbacks).onError)==null||U.call(t,{loggingError:A,metadata:B});b=X.next();wS.jumpTo(12);break;case 14:return wS.return();
case 3:return _.aM(wS,16),Ws=I.callbacks,i8=Ws.onSave,l8=_.Sk(C.data,Ynb,4,kf),l8=_.b4(l8,1),_.n(wS,i8.call(Ws,l8),18);case 18:C.reply(zLm);_.dC(wS,17);break;case 16:return yW=_.sj(wS),a=m2,cs=yW,XO=I.callbacks,Rm="MINI_APP_SDK_API_SAVE_DATA",_.n(wS,I.sdkVersion.promise,19);case 19:a(cs,XO,Rm,wS.yieldResult),C.reply(TNw);case 17:return _.n(wS,KO(I,"MINI_APP_SDK_API_SAVE_DATA"),20);case 20:return wS.return();case 4:return _.aM(wS,21),_.n(wS,I.callbacks.onLoad(),23);case 23:$z=wS.yieldResult;Ws=C.reply;
i8=I$(1);l8=ai(1);bj=new Ynb;bj=_.zT(bj,1,$z);l8=_.Om(l8,3,Mu,bj);Ws.call(C,CZ(i8,l8));_.dC(wS,22);break;case 21:return hX=_.sj(wS),vs=m2,mY=hX,Bs=I.callbacks,n5="MINI_APP_SDK_API_LOAD_DATA",_.n(wS,I.sdkVersion.promise,24);case 24:vs(mY,Bs,n5,wS.yieldResult),C.reply(TNw);case 22:return _.n(wS,KO(I,"MINI_APP_SDK_API_LOAD_DATA"),25);case 25:return wS.return();case 5:_.aM(wS,26);I.callbacks.onSendHighScore(bA(_.Sk(C.data,EHq,3,kf).getValue()));C.reply(CZ(I$(1),ai(1)));_.dC(wS,27);break;case 26:return sH=
_.sj(wS),Zt=m2,Qd=sH,OF=I.callbacks,Rw="MINI_APP_SDK_API_SEND_SCORE",_.n(wS,I.sdkVersion.promise,28);case 28:Zt(Qd,OF,Rw,wS.yieldResult),C.reply(TNw);case 27:return _.n(wS,KO(I,"MINI_APP_SDK_API_SEND_SCORE"),29);case 29:return wS.return();case 6:if(!_.Pv(C.data,hFd,8,kf)){wS.jumpTo(30);break}Ws=_.Sk(C.data,hFd,8,kf);Ws=_.YC(Ws,1);return _.n(wS,KO(I,yOs(Ws)),30);case 30:return wS.return();case 7:return Ws=C.reply,i8=I$(1),l8=ai(1),bj=I.callbacks.getLanguage(),l8=rT(l8,4,Mu,K8(bj)),Ws.call(C,CZ(i8,
l8)),_.n(wS,KO(I,"MINI_APP_SDK_API_GET_LANGUAGE"),32);case 32:return wS.return();case 8:if(!_.Pv(C.data,BAe,10,kf))return wS.return();ku=_.Sk(C.data,BAe,10,kf);xK=I.callbacks;yf=xK.onSdkPerformanceUpdate;return _.n(wS,I.sdkVersion.promise,33);case 33:return yf.call(xK,ku,wS.yieldResult),wS.return();case 9:Ws=C.data;i8=Li(Ws,kf,11);if(_.AP(_.wd(Ws,i8))==null)return C.reply(CZ(I$(1),ai(2))),wS.return();uK=fF(C.data,11,kf);I.callbacks.onShareInviteCode(uK);C.reply(zLm);return _.n(wS,KO(I,"MINI_APP_SDK_API_SHARE_INVITE_CODE"),
34);case 34:return wS.return();case 10:if(_.Pv(C.data,RFb,13,kf)){wS.jumpTo(35);break}return _.n(wS,I.callbacks.onShowMiniAppAd(2),36);case 36:return oL=wS.yieldResult,C.reply(CZ(I$(1),vH0(oL))),_.n(wS,KO(I,"MINI_APP_SDK_API_REQUEST_AD"),37);case 37:return wS.return();case 35:Ws=_.Sk(C.data,RFb,13,kf);a:switch(_.YC(Ws,1)){case 1:Ws={adType:2,sdkApi:"MINI_APP_SDK_API_REQUEST_INTERSTITIAL_AD"};break a;case 2:Ws={adType:3,sdkApi:"MINI_APP_SDK_API_REQUEST_REWARDED_AD"};break a;default:Ws={adType:0,sdkApi:"MINI_APP_SDK_API_REQUEST_AD"}}Uw=
Ws;TR=Uw.adType;G0=Uw.sdkApi;Ws=I.callbacks;i8=Ws.onShowMiniAppAd;l8=_.Sk(C.data,RFb,13,kf);l8=_.b4(l8,2);return _.n(wS,i8.call(Ws,TR,l8||void 0),38);case 38:return hc=wS.yieldResult,C.reply(CZ(I$(1),vH0(hc))),_.n(wS,KO(I,G0),39);case 39:return wS.return()}})})};
var SK=function(I,C){_.e(function(y){I.channel.send(C);_.oI(y)})},ZZ=function(I,C,y){this.callbacks=I;
var k=this;this.encoder=new TextEncoder;this.decoder=new TextDecoder;I=oGF(C,(new URL(y.toString())).origin);this.gameSnacks=new Xsq(I);this.gameSnacks.page.onReady(function(){k.callbacks.onFirstFrameReady()});
this.gameSnacks.userActivity.onUserActivity(function(){k.callbacks.onClick()},1E4);
this.gameSnacks.game.onReady(function(){var F,z;(z=(F=k.callbacks).onGameReady)==null||z.call(F)});
this.gameSnacks.audio.update(this.callbacks.isAudioEnabled());this.gameSnacks.score.onChange(function(F,z){try{k.callbacks.onSendHighScore(z)}catch(c){m2(c,k.callbacks,"MINI_APP_SDK_API_SEND_SCORE","GS")}});
this.gameSnacks.storage.onSave(function(F,z){var c;return _.e(function(r){if(r.nextAddress==1)return _.aM(r,2),_.n(r,k.callbacks.onSave(k.decoder.decode(z)),4);if(r.nextAddress!=2)return _.dC(r,0);c=_.sj(r);m2(c,k.callbacks,"MINI_APP_SDK_API_SAVE_DATA","GS");return r.return()})});
this.gameSnacks.storage.onLoad(function(){var F,z;return _.e(function(c){if(c.nextAddress==1)return _.aM(c,2),_.n(c,k.callbacks.onLoad(),4);if(c.nextAddress!=2)return F=c.yieldResult,c.return(k.encoder.encode(F));z=_.sj(c);m2(z,k.callbacks,"MINI_APP_SDK_API_LOAD_DATA","GS");return c.return(k.encoder.encode(""))})});
this.gameSnacks.init()};
_.R(ZZ,fO);ZZ.prototype.onAudioToggled=function(I,C){fO.prototype.onAudioToggled.call(this,I,C===void 0?!0:C);var y;(y=this.gameSnacks)==null||y.audio.update(I)};
ZZ.prototype.onPause=function(){fO.prototype.onPause.call(this);var I;(I=this.gameSnacks)==null||I.game.pause()};
ZZ.prototype.onResume=function(){fO.prototype.onResume.call(this);var I;(I=this.gameSnacks)==null||I.game.resume()};var ctm=kCK,eLq=_.BO(function(I){var C=I.data;var y=I.loadingProgress;I=_.T(_.c4("",void 0,"LYYTdd"));var k=I.next().value,F=I.next().value;I=_.T(_.c4(!1,void 0,"K0waae"));var z=I.next().value,c=I.next().value,r=[],w=function(){return"transform: scaleX("+(_.b0(y)||0)+")"},L=null,D=function(){var b;
return(b=C()&&L)!=null?b:L=C().showAnniversaryAnimation?6:ctm()};
_.l0(function(){var b;if(C().timeOutMessages&&((b=C().timeOutMessages)==null?0:b.length)){L=null;b=_.T(r);for(var S=b.next();!S.done;S=b.next())clearTimeout(S.value);r.length=0;FEs(C().timeOutMessages,r,F,c)}});
var p=function(){return!!C().persistentErrorMessageTitle},Q=function(){return y!==void 0},X=function(){return C().title};
return _.P("yt-mini-splash-screen-view-model",{class:"mini-app-splash-screen-view-model-wiz"},_.P("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen",role:"region",tabindex:0},_.P("div",{class:"mini-app-splash-screen-view-model-wiz__background-base"}),_.P("div",{class:"mini-app-splash-screen-view-model-wiz__background-blur",style:function(){var b,S=(b=C().backgroundImage)==null?void 0:b.sources,A;return(S==null?0:S.length)?"background-image: url("+((A=S[0])==null?void 0:A.url)+")":
""}}),_.P("div",{class:"mini-app-splash-screen-view-model-wiz__background-scrim"}),_.P(_.Dx,{cond:function(){return!p()},
then:function(){var b={};return _.P("div",{class:"mini-app-splash-screen-view-model-wiz__loading-screen-content"},_.P("div",{class:"mini-app-splash-screen-view-model-wiz__loading-icon"},_.P(_.o8,{className:"mini-app-splash-screen-view-model-wiz__loading-icon-animation",animationName:function(){return"loading_animation_"+D()},
data:function(){var S="loading_animation_"+D();return{animationConfig:{name:S,path:"https://www.gstatic.com/youtube/img/lottie/playables_loading_animation/"+S+".json",loop:!0,autoplay:!0}}}})),_.P("div",{class:"mini-app-splash-screen-view-model-wiz__timeout-message-container"},_.P(_.Dx,{cond:X,
then:function(){return _.P("h3",{class:"mini-app-splash-screen-view-model-wiz__timeout-heading"},X)}}),_.P("p",{class:_.sZ("mini-app-splash-screen-view-model-wiz__timeout-message",(b["mini-app-splash-screen-view-model-wiz__timeout-message-fade-out"]=function(){return z()},b)),
"aria-live":"polite"},k),_.P(_.Dx,{cond:Q,then:function(){return _.P("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-track"},_.P("div",{class:"mini-app-splash-screen-view-model-wiz__loading-bar-segment mini-app-splash-screen-view-model-wiz__loading-bar-segment-resource-animation",style:w}))}})))}}),_.P(_.Dx,{cond:p,
then:function(){return _.P("div",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-content"},_.P("h3",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-title"},function(){return C().persistentErrorMessageTitle}),_.P(_.Dx,{cond:function(){return!!C().persistentErrorMessageDescription},
then:function(){return _.P("p",{class:"mini-app-splash-screen-view-model-wiz__persistent-error-message-description"},function(){return C().persistentErrorMessageDescription})}}))}})))},"Ad");var rte=new _.Jj("SHARE_CLIENT_PARAMS_PROVIDER_TOKEN");var ig5=hf;hf=function(I){function C(y){if(y){var k,F;(k=y.__spec)==null||(F=k.didUnmount)==null||F.call(k);for(k=0;k<y.childNodes.length;k++)C(y.childNodes[k])}}
ig5==null||ig5(I);pv(function(){for(var y=0;y<I.length;y++)C(I[y])})};var wMP=_.BO(function(I){var C=I.data;var y=I.score;var k=I.formattedScore;var F=I.onScoreChanged;var z=I.isEmbeddedInWebview;var c=_.h3(),r=function(){var X;return _.l(C==null?void 0:(X=C())==null?void 0:X.buttonViewModel,_.Xi)},w=function(){var X;
return(y==null?void 0:y())||Number(C==null?void 0:(X=C())==null?void 0:X.lastScore)||0},L=function(){var X;
return(k==null?void 0:k())||((X=r())==null?void 0:X.title)||""},D,p=1;
if(I=(new URLSearchParams(window.location.search)).get("deviceTextZoomSetting"))I=Number(I),p=isNaN(I)?1:I/100;_.l0(function(){F==null||F(w());var X;var b=_.Rj((X=r())==null?void 0:X.onTap);if(b){X=_.l(b,efc);var S,A,x;X=_.l(X==null?void 0:(S=X.panelLoadingStrategy)==null?void 0:(A=S.inlineContent)==null?void 0:(x=A.dialogViewModel)==null?void 0:x.customContent,cj8)}else X=void 0;if(S=X)S.score=L()});
I=_.uk(function(){var X,b,S=C==null?void 0:(X=C())==null?void 0:(b=X.loggingDirectives)==null?void 0:b.trackingParams;S&&_.FV(_.N().resolve(_.zd),S);return!1});
_.RU(function(){if(c.value){var X=c.value.querySelector("button"),b=r();X&&b&&u_9(X,b);J3("yt-share-playable-with-high-score",function(){var S=w().toString(),A=C==null?void 0:C().onShareHighScoreCommand,x=C==null?void 0:C().highScoreShareClientParamIdentifier,B=z==null?void 0:z();A&&(B?(x=new I4P,S=_.zT(x,2,S),qE(A,S.JSC$10141_serializeBinary())):x&&(_.N().resolve(rte).clientParams.set(x,{miniAppClientParams:{highScore:S}}),B$K(A,!1)))})}});
var Q=function(){var X=r();X&&(y==null?0:y())&&X.accessibilityText&&(X.accessibilityText=X.accessibilityText.replace(D,L()));D=L();return{numberValue:w(),numberText:L(),heightPx:36,fontSizeMultiplier:p,shouldAnimate:!(y==null||!y())&&!0}};
return _.P("yt-mini-app-score-button-view-model",{class:function(){var X={};return _.yc("mini-app-score-button-view-model-wiz",(X["mini-app-score-button-view-model-wiz--is-visible"]=w()!==0,X))},
el:c,"on:click":I},_.H2(!1,function(){return _.P("span",{style:"display:none;"},w)}),_.P(_.lY,{data:function(){var X;
return C==null?void 0:(X=C())==null?void 0:X.buttonViewModel}},{buttonViewModel:function(X){return _.P(_.fM,{data:X.data,
animatedTextProps:Q})}}))},"Bd");var pM8=_.BO(function(I){var C,y=(C=_.Fk("yt-mini-app-is-theater-mode-enabled"))!=null?C:!1,k=_.V("enable_playable_container_save_button"),F=_.V("enable_play_next_destination_page_in_toolbar");C={};return _.P("ytm-mini-app-top-bar-view-model",null,_.P("div",{class:_.sZ("yt-mini-app-top-bar-view-model",(C["yt-mini-app-top-bar-view-model--mobile"]=!1,C["yt-mini-app-top-bar-view-model--desktop"]=!0,C))},_.P("div",{class:"yt-mini-app-top-bar-view-model__start-buttons"},_.P(_.Dx,{cond:function(){var z;
return!!I.data().backButtonEdu&&!((z=I.isExitMiniAppSeen)==null?0:z.call(I))},
then:function(){return _.P(_.lY,{data:function(){return I.data().backButtonEdu}},{buttonViewModel:_.fM})},
else:function(){return _.P(_.lY,{data:function(){return I.data().backButton}},{buttonViewModel:_.fM})}}),_.P(_.Dx,{cond:function(){return I.data().viewAllButton&&!0},
then:function(){return _.P(_.lY,{data:function(){return I.data().viewAllButton}},{buttonViewModel:_.fM})}}),_.P(_.Dx,{cond:function(){return I.data().title&&!0},
then:function(){return _.P("div",{class:"yt-mini-app-top-bar-view-model__title"},function(){return I.data().title})}})),_.P("div",{class:"yt-mini-app-top-bar-view-model__center-buttons"},_.P(_.Dx,{cond:function(){var z;
return(z=I.isDesktopPlayPage)==null?void 0:z.call(I)},
then:function(){return _.P(_.aF,null,_.P(n2w,{highScoreButton:function(){return I.data().highScoreButton},
score:I.score,formattedScore:I.formattedScore,onScoreChanged:I.onScoreChanged,isEmbeddedInWebview:I.isEmbeddedInWebview}),_.P(PO5,{enableSaveButton:function(){return _.b0(k)},
saveButton:function(){return I.data().saveButton},
isSaved:I.isSaved,onSaveToggled:function(){return I.onSaveToggled}}),_.P(Lie,{menuButton:function(){return I.data().menuButton}}))},
else:function(){return _.P(_.Dx,{cond:function(){return!1},
then:function(){return _.P(_.lY,{data:function(){return I.data().playPageButton}},{buttonViewModel:function(z){return _.P(_.fM,{data:z.data,
className:"yt-mini-app-top-bar-view-model__play-page-button-view-model"})}})},
else:function(){return _.P(n2w,{highScoreButton:function(){return I.data().highScoreButton},
score:I.score,formattedScore:I.formattedScore,onScoreChanged:I.onScoreChanged,isEmbeddedInWebview:I.isEmbeddedInWebview})}})}})),_.P("div",{class:"yt-mini-app-top-bar-view-model__end-buttons"},_.P(_.lY,{data:function(){return I.data().muteButton}},{toggleButtonViewModel:function(z){var c=z.data;
return _.P(_.RY,{data:function(){var r,w;return Object.assign({},c(),{isToggled:(w=(r=I.isAudioEnabled)==null?void 0:r.call(I))!=null?w:!0})},
onToggle:I.onAudioToggled,useOutlinedIcon:!0})}}),_.P(_.lY,{data:function(){return I.data().theatreModeButton}},{toggleButtonViewModel:function(z){var c=z.data;
return _.P("div",{class:"yt-mini-app-top-bar-view-model__theatre-mode-button"},_.P(_.RY,{data:function(){return Object.assign({},c(),{isToggled:y})},
useOutlinedIcon:!0}))}}),_.P(Dtw,{fullscreenButton:function(){return I.data().fullscreenButton}}),_.P(_.Dx,{cond:function(){return _.b0(F)&&I.data().viewAllButton&&!1},
then:function(){return _.P(_.lY,{data:function(){return I.data().viewAllButton}},{buttonViewModel:_.fM})}}),_.P(_.Dx,{cond:function(){var z;
return!((z=I.isDesktopPlayPage)==null?0:z.call(I))},
then:function(){return _.P(_.aF,null,_.P(PO5,{enableSaveButton:function(){return _.b0(k)},
saveButton:function(){return I.data().saveButton},
isSaved:I.isSaved,onSaveToggled:function(){return I.onSaveToggled}}),_.P(Lie,{menuButton:function(){return I.data().menuButton}}))}}))))},"Cd");
pM8.idomCompat={callbacks:{onAudioToggled:!0,onSaveToggled:!0,onScoreChanged:!0}};var Lie=_.BO(function(I){return _.P(_.lY,{data:I.menuButton},{buttonViewModel:_.fM})},"Dd"),PO5=_.BO(function(I){var C=I.enableSaveButton;
var y=I.saveButton;var k=I.isSaved;var F=I.onSaveToggled;return _.P(_.Dx,{cond:function(){return C()&&!(y==null||!y())},
then:function(){return _.P(_.lY,{data:function(){var z=_.l(y==null?void 0:y(),_.$A),c;return{toggleButtonViewModel:Object.assign({},z,{isToggled:(c=k==null?void 0:k())!=null?c:!(z==null||!z.isToggled)})}}},{toggleButtonViewModel:function(z){return _.P(_.RY,{data:z.data,
onToggle:F})}})}})},"Ed"),n2w=_.BO(function(I){var C=I.highScoreButton;
var y=I.score;var k=I.formattedScore;var F=I.onScoreChanged;var z=I.isEmbeddedInWebview;return _.P(_.lY,{data:C},{miniAppScoreButtonViewModel:function(c){return _.P(wMP,{data:c.data,score:y,formattedScore:k,onScoreChanged:F,isEmbeddedInWebview:z})}})},"Fd"),Dtw=_.BO(function(I){I=I.fullscreenButton;
return navigator.userAgent.includes("CriOS")?_.P(_.aF,null):_.P(_.lY,{data:I},{buttonViewModel:_.fM})},"Gd");_.Q2c=new _.Jj("DESKTOP_CURRENT_PAGE");var $tb=_.BO(function(I){var C=I.data;var y=_.V("force_active_time_logging_webview"),k=_.V("skip_logs_after_end_event"),F=!1,z=new HY8,c=void 0,r=void 0,w=_.N().resolve(U0m),L=new ZYw,D=void 0,p=void 0,Q=[],X=void 0,b=void 0,S=!1,A=!1,x=!1,B=!1,t=new _.ug,U=_.N().resolve(rte),yW=_.N().resolve(_.$h),a=_.N().resolve(_.aU(kl)),cs,XO=(cs=_.N().resolve(_.aU(_.Q2c)))==null?void 0:cs.getCurrentPage(),Rm=!1,$z=0,hX=function(EF){EF.preventDefault();return EF.returnValue=""},vs;
I=_.T(_.c4(!((vs=_.Fk("yt-mini-app-is-audio-enabled"))!=null&&!vs),void 0,"HKETIe"));var mY=I.next().value,Bs=I.next().value,n5;vs=_.T(_.c4(!((n5=_.Fk("exit-mini-app-seen-state"))==null||!n5),void 0,"YikM9"));var sH=vs.next().value,Zt=vs.next().value;n5=_.T(_.c4(!1,void 0,"iTNqCb"));var Qd=n5.next().value,OF=n5.next().value;n5=_.T(_.c4(void 0,void 0,"bU3Vbf"));var Rw=n5.next().value,ku=n5.next().value;n5=_.T(_.c4(void 0,void 0,"qd4Zt"));var xK=n5.next().value,yf=n5.next().value;n5=_.T(_.c4(!0,void 0,
"Cqc83e"));var uK=n5.next().value,oL=n5.next().value;n5=_.T(_.c4(!1,void 0,"oHovIe"));var Uw=n5.next().value,TR=n5.next().value;n5=_.T(_.c4(void 0,void 0,"aeN11"));var G0=n5.next().value,hc=n5.next().value;n5=_.T(_.c4(0,void 0,"AEGRyb"));var wS=n5.next().value,Ws=n5.next().value,i8=_.Es(),l8=function(){return C().isEmbeddedInWebview},bj=function(){return C().hasPlayNextShelf};
J3("yt-page-type-changed",function(EF){if(_.V("enable_is_mini_app_page_active_bugfix"))EF.detail.newPageSubtype!=="mini_app"&&uK()&&RJ();else if(EF=_.zNI()==="mini_app",EF!==uK())if(oL(EF),EF){var FR;EF=(FR=C().playableId)==null?void 0:FR.toString();EF!==void 0&&window.location.href.includes(EF)&&!A&&(B=!0,K5(),wR(Pm.value))}else EF||RJ()});
J3("yt-action",function(EF){EF.detail.actionName==="yt-engagement-panel-visible-changed"&&EF.detail.args[1]==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&EF.detail.args[2]==="PAmini_app_panel"&&RJ();_.V("enable_is_mini_app_page_active_bugfix")?EF.detail.actionName==="yt-history-load"&&!uK()&&(XO==null?0:XO.active)?(oL(!0),K5(),wR(Pm.value)):EF.detail.actionName==="yt-history-load"&&uK()&&!C().isEmbeddedInWebview&&kB():uK()&&EF.detail.actionName==="yt-history-load"&&(B?B=!1:C().isEmbeddedInWebview||kB())});
_.$4(function(){ZS()});
_.l0(function(){K5()});
var K5=function(){var EF=C().playableId,FR=C().localReleaseId,Nj=C().derivedDeviceInterface;if(A)_.SN(new _.ph("[MiniAppContainerViewModel] onEnter was called more than once"));else{A=!0;c=new Y9P(EF,FR,Nj,document.visibilityState==="visible");KVd(c);r=new I3S(EF);NNw(w,EF);BqS(L,{showMiniAppAdCommand:C().showMiniAppAdCommand,isEmbeddedInWebview:C().isEmbeddedInWebview,playLogger:c});eyW()&&(b=document.body.style.backgroundColor,_.vz(document.body,"background-color","black"));jy();p5();t=new _.ug;
if(C().isEmbeddedInWebview){if(EF=(new URLSearchParams(window.location.search)).get("postPlayNonce"))fFq(c,EF),Rm=!0;z.initialize({onAudioStateLoaded:function(ca){qL(ca)},
onMuteMiniApp:function(){qL(!1)},
onUnmuteMiniApp:function(){qL(!0)},
onExit:function(){},
onPostPlayNonceReceived:function(ca){Rm||(fFq(c,ca),Rm=!0)},
confirmExitMiniApp:function(){var ca,n1,lI;return _.e(function(YG){if(YG.nextAddress==1)return C().confirmExitMiniAppCommand?_.n(YG,Promise.race([t.promise,Promise.resolve(!1)]),2):YG.return();(ca=YG.yieldResult)?!C().confirmExitMiniAppCommandEdu||(lI=(n1=sH)==null?void 0:n1())!=null&&lI?w4(C().confirmExitMiniAppCommand):(w4(C().confirmExitMiniAppCommandEdu),_.ky("exit-mini-app-seen-state","true",2592E6)):w4(C().closeMiniAppCommand);_.oI(YG)})},
onNativeBenchmarkingMessageReceived:function(ca){ca=XJc(_.qxO(ca));if(_.Pv(ca,_.xX,3,Vtq)){var n1=_.Sk(ca,_.xX,3,Vtq),lI=Enz();var YG=bA(lI.getSeconds())-bA(n1.getSeconds());n1=_.ti(lI,2)-_.ti(n1,2);YG<0&&n1>0?(YG+=1,n1-=1E9):YG>0&&n1<0&&(--YG,n1+=1E9);YG=(new Bz).setSeconds(YG);YG=_.n2(YG,2,_.PR(n1),0);_.JT(ca,1,YG)}var Vv;(Vv=p)==null||Vv.returnNativeBenchmarkingMessage(ca)},
multiplayer3pAckStateLoaded:function(ca){kB(ca)},
exitMiniAppSeenStateLoaded:function(ca){C().confirmExitMiniAppCommandEdu&&Zt(ca)},
onNavigateToNewMiniApp:function(){w4(C().onNavigateToNewMiniAppCommand)},
onGameDataAvailable:function(ca){ca=new URLSearchParams(ca);var n1=void 0;ca.has("invite_code")&&(n1=new Snd,ca=ca.get("invite_code"),n1=_.zT(n1,1,ca));if(ca=n1){var lI;(lI=p)==null||lI.sendGameData(ca)}},
onPauseMiniApp:function(){F=!0;yk()},
onResumeMiniApp:function(){F=!0;D8()},
onAdFinished:function(ca){L.onAdFinished(ca)}});
C().showMultiplayer3pConsentDialogCommand||t.resolve(!0);w4(C().onContainerReadyCommand)}else fFq(c),t.resolve(!0);COd(r,Gzq(c));Gzq(c).then(function(ca){ca={miniAppPlayData:{postPlayNonce:ca}};var n1,lI=(n1=C().loggingDirectives)==null?void 0:n1.trackingParams;lI&&_.e2().stateChanged(lI,ca)});
EF=C().showSignInDialogCommand;!HUX()&&EF&&(_.ky("yt-mini-app-has-shown-sign-in-dialog",!0,2592E3),w4(EF));C().confirmExitMiniAppCommand&&a&&(EF=mBI(C().confirmExitMiniAppCommand))&&(a.customConfirmationCommand=EF)}},ZS=function(){if(!k||A)b&&_.vz(document.body,"background-color",b),S=!1,X&&X.release(),r.flush().catch(function(EF){_.SN(EF)}),w.flush().catch(function(EF){_.SN(EF)}),g78(c),K2(),p=void 0,k&&(A=!1),VUP(U)},RJ=function(){oL(!1);
ZS();OF(!1);hc(void 0);ku(void 0);yf(void 0);$z=0;Ws(0);k||(A=!1)},yk=function(){var EF;
(EF=p)==null||EF.onPause();X&&X.release();r.flush().catch(function(FR){_.SN(FR)});
w.flush().catch(function(FR){_.SN(FR)});
ANw(c)},D8=function(){var EF;
(EF=p)==null||EF.onResume();p5();EF=c;EF.isForeground=!0;bt(EF,"PLAY_EVENT_TYPE_PLAY_RESUME")},qL=function(EF){var FR;
(FR=p)==null||FR.onAudioToggled(EF);Bs(EF)},kB=function(EF){C().showMultiplayer3pConsentDialogCommand&&(C().isEmbeddedInWebview&&EF!==void 0&&t.resolve(EF),!EF&&_.zNI()==="mini_app"&&w4(C().showMultiplayer3pConsentDialogCommand))},K1=function(){var EF,FR,Nj,ca;
return _.e(function(n1){if(n1.nextAddress==1){if(k&&!A)return n1.return();!C().isLivestream||C().disableVideoCapture||(EF=p)!=null&&EF.sendStartGameFrameCapture();FR=(new URL(window.location.href)).searchParams;if(FR.has("invite_code")){var lI=new Snd,YG=FR.get("invite_code");Nj=_.zT(lI,1,YG);(ca=p)==null||ca.sendGameData(Nj)}Qd()||(OF(!0),lI=c,lI.state!==1?_.SN(new _.ph("[MiniAppPlayLogger] recordFirstFrameReady failed with state "+Rge[lI.state])):(_.yS("mini_app_ids_without_game_ready").includes(lI.JSC$14618_miniAppId)&&
(lI.gameReady=!0),lI.state=2,lI.beforeReady=!1,Rf(lI,"ma_ffr"),bt(lI,"PLAY_EVENT_TYPE_PLAY_READY")));return _.n(n1,t.promise,2)}w4(C().onMiniAppReadyCommand);document.activeElement instanceof HTMLIFrameElement&&document.activeElement.blur();C().isEmbeddedInWebview||kB();_.oI(n1)})},eX=function(){var EF=c;
EF.gameReady=!0;Rf(EF,"ma_gr")},Tu=function(EF){var FR;
return _.e(function(Nj){if(Nj.nextAddress==1)return _.aM(Nj,2),_.n(Nj,o2d(r,EF),4);if(Nj.nextAddress!=2)return _.dC(Nj,0);FR=_.sj(Nj);w4(C().showSavingErrorPopupCommand);throw FR;})},kb=function(){var EF,FR;
return _.e(function(Nj){if(Nj.nextAddress==1)return _.aM(Nj,2),_.n(Nj,s2w(r),4);if(Nj.nextAddress!=2)return EF=Nj.yieldResult,Nj.return(EF);FR=_.sj(Nj);w4(C().showLoadingErrorDialogCommand);throw FR;})},wX=function(EF){c.logError(EF)},c5=function(EF,FR,Nj){WVS(c,EF,FR,Nj)},xV=function(EF,FR){x0w(c,EF,FR)},kV=function(){!y&&C().isEmbeddedInWebview||_.I0();
v7e(c,!0);S||(window.addEventListener("beforeunload",hX,{capture:!0}),S=!0)},yX=function(EF){var FR,Nj,ca,n1,lI,YG,Vv;
return _.e(function(jk){if(jk.nextAddress==1)return w&&(!D||D<EF)&&EF>0?_.n(jk,j2m(w,EF),3):jk.jumpTo(0);FR=jk.yieldResult;Nj=_.T(FR);ca=Nj.next().value;n1=Nj.next().value;lI=ca;YG=n1;((Vv=lI)==null?0:Vv.displayString)&&YG&&(ku(YG),yf(lI.displayString));_.oI(jk)})},M$=function(EF){var FR=C().onBenchmarkingMessageReceivedCommand;
if(FR){var Nj=Enz();_.Om(EF,3,Vtq,Nj);qE(FR,$du(EF))}},p9=function(EF){var FR=C().onGameFrameReceivedCommand;
if(FR){var Nj=new ugb;var ca=new yjd;var n1=$C(EF,1);ca=_.pi(ca,1,n1);EF=_.b4(EF,2);EF=_.zT(ca,2,EF);Nj=_.JT(Nj,2,EF);qE(FR,Tbq(Nj))}},SI=function(){var EF=new URLSearchParams(window.location.search);
if(C().isEmbeddedInWebview&&EF&&EF.get("override_hl")==="true"&&EF.get("hl"))return EF.get("hl");EF=document.documentElement.lang;return EF!==""?EF:_.Wg},xz=function(EF){var FR=C().onShareInviteCodeCommand;
if(FR)if(C().isEmbeddedInWebview){var Nj=new I4P;EF=_.zT(Nj,1,EF);qE(FR,sVm(EF))}else Nj=C().inviteCodeShareClientParamIdentifier,U.clientParams.set(Nj,{miniAppClientParams:{inviteCode:EF}}),w4(FR)},L5=function(EF){var FR,Nj,ca;
return _.e(function(n1){if(n1.nextAddress==1)return FR=C().onMiniAppOpenYtContentRequested,w&&_.V("enable_open_yt_content")&&FR?_.n(n1,l3u(w,EF),3):n1.jumpTo(0);Nj=n1.yieldResult;if(Nj==="OK")if(C().isEmbeddedInWebview){var lI=new IAq;ca=rT(lI,2,$f,K8(EF));qE(FR,o6w(ca))}else yW.clientData.set("video_id",EF),w4(FR);_.oI(n1)})},yY=function(EF){$z+=_.ti(EF,3);
EF=Math.min(Math.log(1+$z/15E6*9)/Math.log(10),.99);Ws(EF);b7(EF)},b7=_.LQ(function(EF){var FR=C().updateLoadingProgressCommand;
if(FR){var Nj=new IAq;EF=rT(Nj,3,$f,_.kK(EF));qE(FR,o6w(EF))}},100),ry=function(EF){return hgP(L,EF)},p5=function(){var EF,FR;
((EF=_.PMW())==null?void 0:(FR=EF.wakeLock)==null?void 0:FR.request)!=null&&_.PMW().wakeLock.request("screen").then(function(Nj){X=Nj}).catch(function(){})},Pm=_.Es();
_.l0(function(){C().isSupportedCountry&&(HUX()||_.V("enable_sign_in_promo")||!C().showSignInDialogCommand?wR(Pm.value):w4(C().onMiniAppReadyCommand))});
var L8=function(){return _.P("iframe",{class:"yt-mini-app-container-view-model__iframe",sandbox:"allow-scripts allow-same-origin allow-pointer-lock",allow:"autoplay",tabindex:function(){return Qd()?0:-1},
el:Pm})},wR=function(EF,FR){FR=FR===void 0?!1:FR;
var Nj=z0();Nj&&(FR||Nj.toString()!==EF.getAttribute("src"))&&(p=CPF(C().source,{isAudioEnabled:mY,onFirstFrameReady:K1,onGameReady:eX,onSave:Tu,onLoad:kb,onError:wX,onSdkCalled:c5,onSdkPerformanceUpdate:xV,onClick:kV,onSendHighScore:yX,onBenchmarkingMessageReceived:M$,getLanguage:SI,onShareInviteCode:xz,onResourceLoaded:yY,onOpenYTContent:L5,onShowMiniAppAd:ry,onGameFrameReceived:p9},EF,Nj),iU(EF,"load",function(){Rf(c,"ma_il");iU(EF,"load",function(){wR(EF,!0)})}),_.jO(EF,Nj))},z0=function(){var EF=
C().url;
if(EF&&(EF=_.YV(EF),EF!==null)){if(C().source&&C().source==="MINI_APP_SOURCE_GAMESNACKS")EF=_.JM(EF,new Map([["origin",window.location.origin],["cloudSave","true"]]));else if(_.V("enable_origin_query_parameter_bugfix")){var FR=_.$H(_.nwH(EF.toString()));FR=new URLSearchParams(FR||"");FR.set("origin",window.location.origin);FR=FR.toString();EF=_.sC(EF).toString();EF=_.Ca(tem.exec(EF)[0]+(FR.trim()?"#"+FR:""))}return EF}},Pn=function(){var EF={};
EF=_.sZ("yt-mini-app-container-view-model__loading-screen",(EF["yt-mini-app-container-view-model__loading-screen--fade-out"]=Qd,EF));var FR=function(){return Qd()?1:wS()};
return _.P("div",{class:EF},_.P(_.lY,{data:function(){return C().splashScreen}},{miniAppSplashScreenViewModel:function(Nj){return _.P(eLq,{data:Nj.data,
loadingProgress:FR})}}))},jy=function(){Q=[];
Q.push(_.Lv(window,"visibilitychange",function(){x||F&&l8()||(document.visibilityState==="visible"?D8():yk())}));
Q.push(_.Lv(window,"pagehide",function(){ZS()}));
Q.push(_.Lv(window,"blur",function(){setTimeout(function(){document.activeElement instanceof HTMLIFrameElement&&i8.value.dispatchEvent(new Event("tap"))},0)}));
Q.push(_.Lv(i8.value,"pointerdown",function(){v7e(c,!1)},!0));
Q.push(_.Lv(i8.value,"pause",function(){x=!0;yk()}));
Q.push(_.Lv(i8.value,"play",function(){x=!1;D8()}));
Q.push(_.Lv(i8.value,"exit",function(){ZS()}));
var EF=navigator.keyboard,FR=EF&&EF.lock;Q.push(_.Lv(window,hdY,function(){TR(HxS());HxS()?(C().hasPlayNextShelf&&dU("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),Fj("yt-mini-app-container-view-model__content","yt-mini-app-container-view-model__content--fullscreen"),FR&&EF.lock(["Escape"])):(C().hasPlayNextShelf&&Fj("yt-mini-app-container-view-model","yt-mini-app-container-view-model--position-relative-to-top"),dU("yt-mini-app-container-view-model__content",
"yt-mini-app-container-view-model__content--fullscreen"),FR&&EF.unlock())}));
C().showMultiplayer3pConsentDialogCommand&&Q.push(_.Lv(window,"yt-playables-ack-3p-data-usage",function(){XMc(w)}));
C().confirmExitMiniAppCommandEdu&&Q.push(_.Lv(window,"yt-playables-exit-mini-app-dialog-seen",function(){_.ky("exit-mini-app-seen-state","true",2592E6)}))},K2=function(){Q.forEach(function(EF){wY(EF)});
window.removeEventListener("beforeunload",hX,{capture:!0})},w4=function(EF){EF&&B$K(EF,C().isEmbeddedInWebview||!1)},Fj=function(EF,FR){EF=_.T(i8.value.getElementsByClassName(EF));
for(var Nj=EF.next();!Nj.done;Nj=EF.next())Nj.value.classList.add(FR)},dU=function(EF,FR){EF=_.T(i8.value.getElementsByClassName(EF));
for(var Nj=EF.next();!Nj.done;Nj=EF.next())Nj.value.classList.remove(FR)};
return function(){var EF={};EF=_.sZ("yt-mini-app-container-view-model",(EF["yt-mini-app-container-view-model--desktop"]=!0,EF["yt-mini-app-container-view-model--desktop-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},EF["yt-mini-app-container-view-model--ios-web-view"]=eyW(),EF["yt-mini-app-container-view-model--no-top-bar"]=function(){return!C().topBar},EF["yt-mini-app-container-view-model--position-relative-to-top"]=function(){return C().hasPlayNextShelf},EF["yt-mini-app-container-view-model--desktop-play-page"]=
function(){return C().hasPlayNextShelf},EF["yt-mini-app-container-view-model--show-peek-below"]=function(){return!Uw()&&C().hasPlayNextShelf},EF));
var FR={};FR=_.sZ("yt-mini-app-container-view-model__content",(FR["yt-mini-app-container-view-model__content--desktop-content"]=!0,FR["yt-mini-app-container-view-model__content--desktop-content-in-panel"]=function(){return C().layout==="MINI_APP_CONTAINER_LAYOUT_PANEL"},FR["yt-mini-app-container-view-model--desktop-play-page"]=function(){return C().hasPlayNextShelf},FR));
return _.P("mini-app-container-view-model",{el:i8},_.P("div",{class:EF},_.P(_.Dx,{cond:function(){return C().topBar&&!Uw()},
then:function(){return _.P(_.lY,{data:function(){return C().topBar}},{miniAppTopBarViewModel:function(Nj){return _.P(pM8,{data:Nj.data,
isAudioEnabled:mY,onAudioToggled:function(ca){qL(ca)},
score:Rw,formattedScore:xK,onScoreChanged:function(ca){D=ca},
isEmbeddedInWebview:l8,isSaved:G0,onSaveToggled:function(ca){hc(ca)},
isExitMiniAppSeen:sH,isDesktopPlayPage:bj})}})}}),_.P("div",{class:FR},_.P(_.Dx,{cond:uK,
then:function(){return L8()}}),_.P(_.Dx,{cond:function(){return!C().isEmbeddedInWebview},
then:function(){return Pn()}}))))}()},"Hd");
$tb.idomCompat=!0;_.B9($tb,"mini-app-container-view-model",{props:{data:_.As}});var RL5=_.BO(function(I){var C=I.data;return _.P("yt-sponsorships-hub-perk-card",{class:"ytSponsorshipsHubPerkCardHost"},_.P("button",{class:"ytSponsorshipsHubPerkCardPerkCard","on:click":_.uk(function(){var y=C().onTap;y&&_.Gp(y)})},_.P(_.Dx,{cond:function(){return C().icon},
then:function(y){return _.P(_.ez,{icon:function(){return y().iconType},
className:"ytSponsorshipsHubPerkCardPerkIcon"})}}),_.P("div",{class:"ytSponsorshipsHubPerkCardPerkTitle"},function(){return C().title})))},"Id");
RL5.idomCompat=!0;var bgq=_.BO(function(I){var C=_.Es(),y=_.T(_.c4(void 0,void 0,"kFCJ0c")),k=y.next().value,F=y.next().value;y=_.T(_.c4(void 0,void 0,"PIPgWd"));var z=y.next().value,c=y.next().value;y=_.T(_.c4(void 0,void 0,"rV66ob"));var r=y.next().value,w=y.next().value,L=function(){var x=k();return x!==void 0?Math.abs(x):void 0},D=function(){var x=L();
return x===void 0||x<=3},p=function(){var x=L();
var B=z(),t=r();x=x!==void 0&&B!==void 0&&t!==void 0?B-t-x:void 0;return x===void 0||x<=3},Q=function(x){C.value&&C.value.scrollBy({top:0,
left:(_.Aq("HTML_DIR")==="rtl"?-1:1)*x*C.value.clientWidth,behavior:"smooth"})},X=function(){var x;
F((x=C.value)==null?void 0:x.scrollLeft);var B;c((B=C.value)==null?void 0:B.scrollWidth);var t;w((t=C.value)==null?void 0:t.clientWidth)},b=function(){Q(-.5)},S=function(){Q(.5)};
y=_.uk(function(){X()});
_.X2(function(){X();if(C.value){var x=new ResizeObserver(X);x.observe(C.value);_.$4(function(){x.disconnect()})}});
var A={};return _.P("yt-sponsorships-scrollable-shelf",{class:_.sZ("ytdSponsorshipsScrollableShelfHost",I.className)},_.P("div",{class:_.sZ("ytdSponsorshipsScrollableShelfContent",(A.ytdSponsorshipsScrollableShelfFadingEffectBothSides=function(){return!D()&&!p()},A.ytdSponsorshipsScrollableShelfFadingEffectStart=function(){return!D()&&p()},A.ytdSponsorshipsScrollableShelfFadingEffectEnd=function(){return D()&&!p()},A)),
el:C,"on:scroll":y},I.children),_.P(_.Dx,{cond:function(){return!D()},
then:function(){return _.P(_.lY,{data:function(){return I.data().previousButton}},{buttonViewModel:function(x){return _.P(_.fM,{data:x.data,
className:"ytdSponsorshipsScrollableShelfPreviousButton",onClick:b})}})}}),_.P(_.Dx,{cond:function(){return!p()},
then:function(){return _.P(_.lY,{data:function(){return I.data().nextButton}},{buttonViewModel:function(x){return _.P(_.fM,{data:x.data,
className:"ytdSponsorshipsScrollableShelfNextButton",onClick:S})}})}}))},"Jd");
bgq.idomCompat=!0;var Gse=_.BO(function(I){var C=I.data;I={};return _.P("yt-sponsorships-hub",{class:_.sZ("ytdSponsorshipsHubHost",(I.ytdSponsorshipsHubHostIndented=function(){return C().indented},I))},_.P("div",{class:"ytdSponsorshipsHubHeader"},_.P("div",{class:"ytdSponsorshipsHubAvatarContainer"},_.P("div",{class:"ytdSponsorshipsHubAvatar"},_.P(_.lY,{data:function(){return C().avatar}},{avatarViewModel:_.rF})),_.P(_.Dx,{cond:function(){return C().badgeImage},
then:function(y){return _.P("div",{class:"ytdSponsorshipsHubBadgeContainer"},_.P("div",{class:"ytdSponsorshipsHubBadgeInnerContainer"},_.P("div",{class:"ytdSponsorshipsHubBadge"},_.P(_.x$,{data:y,targetWidth:24,targetHeight:24,alt:""}))))}})),_.P("div",{class:"ytdSponsorshipsHubDetails"},_.P("div",{class:"ytdSponsorshipsHubTierName"},function(){return C().tierName}),_.P("div",{class:"ytdSponsorshipsHubMembershipType"},function(){return C().membershipType}),_.P("div",{class:"ytdSponsorshipsHubMembershipDurationOrExpiry"},
function(){return C().membershipDurationOrExpiry})),_.P("div",{class:"ytdSponsorshipsHubActionButtonsContainer"},_.P(_.lY,{data:function(){return C().manageButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytdSponsorshipsHubManageButton"})}}),_.P(_.lY,{data:function(){return C().actionMenuButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytdSponsorshipsHubActionMenuButton"})}}))),_.P("div",{class:"ytdSponsorshipsHubPerksTitle"},function(){return C().perksTitle}),_.P(bgq,{data:function(){return{previousButton:C().previousPerkButton,
nextButton:C().nextPerkButton}},
className:"ytdSponsorshipsHubPerksShelf"},_.P("div",{class:"ytdSponsorshipsHubPerkCards"},_.P(_.lY,{data:function(){return C().perkCards}},{sponsorshipsHubPerkCardViewModel:RL5}),_.P(_.Dx,{cond:function(){return C().viewAllPerksButton},
then:function(y){return _.P(YYS,{data:y})}}))))},"Kd");
Gse.idomCompat=!0;var YYS=_.BO(function(I){var C=I.data;return _.P("div",{class:"ytdSponsorshipsHubViewAllPerksContainer"},_.P(_.lY,{data:function(){return C().button}},{buttonViewModel:_.fM}),_.P("div",{class:"ytdSponsorshipsHubViewAllPerksInfo"},_.P("div",{class:"ytdSponsorshipsHubViewAllPerksTitle"},function(){return C().title}),_.P("div",{class:"ytdSponsorshipsHubViewAllPerksSubtitle"},function(){return C().subtitle})))},"Ld");
YYS.idomCompat=!0;_.B9(Gse,"yt-sponsorships-hub",{props:{data:_.As}});_.f3w=_.BO(function(I){var C=I.data;return _.P("yt-dual-avatar-view-model",{class:"ytDualAvatarViewModelHost",style:_.cP({"--yt-dual-avatar-view-model-badge-cutout-radius":function(){var y;return((y=C().badgeCutoutRadius)!=null?y:14)+"px"}})},_.P("div",{class:"ytDualAvatarViewModelAvatarsContainer"},_.P(_.lY,{data:function(){return C().startAvatar}},{avatarViewModel:_.rF}),_.P(_.lY,{data:function(){return C().endAvatar}},{avatarViewModel:_.rF})),_.P(_.lY,{data:function(){return C().badge}},{contentPreviewImageViewModel:function(y){return _.P("div",
{class:"ytDualAvatarViewModelBadge"},_.P(_.Zh,{data:y.data}))}}))},"Md");
_.f3w.idomCompat=!0;var Kid=_.BO(function(I){var C=I.data;var y,k=!((y=_.N().resolve(_.aU(_.AE)))==null||!y());I=_.P4(function(){var L,D,p=k?(L=C().header)==null?void 0:L.backgroundColorDarkMode:(D=C().header)==null?void 0:D.backgroundColorLightMode;if(p!==void 0)return _.Xl(p)},void 0,"UX2G6c");
y=_.P4(function(){var L,D;return k?(L=C().header)==null?void 0:L.backgroundImagePart1Dark:(D=C().header)==null?void 0:D.backgroundImagePart1Light},void 0,"GPAi1d");
var F=_.P4(function(){var L,D;return k?(L=C().header)==null?void 0:L.backgroundImagePart2Dark:(D=C().header)==null?void 0:D.backgroundImagePart2Light},void 0,"nboJld"),z=_.P4(function(){return _.Aq("HTML_DIR")==="rtl"},void 0,"LGJceb"),c=_.Es(),r=!1,w=function(){var L=c.value;
if(L&&!r){var D,p=(D=L.parentElement)==null?void 0:D.parentElement;if(p)for(L=L.getElementsByClassName("ytdSponsorshipsPerksListSelectedPerk"),D=0;D<L.length;++D){var Q=L[D];if(Q instanceof HTMLElement){p.scrollTo({top:Q.offsetTop+Q.clientHeight/2-p.clientHeight/2,behavior:"smooth"});r=!0;break}}}};
_.RU(function(){var L=c.value;if(L){var D=new ResizeObserver(w);D.observe(L);_.$4(function(){D.disconnect()})}});
return _.P("yt-sponsorships-perks-list",{class:"ytdSponsorshipsPerksListHost",el:c},_.P("div",{class:"ytdSponsorshipsPerksListHeaderContainer"},_.P("div",{class:"ytdSponsorshipsPerksListHeader",style:_.cP({"background-color":I})},_.P("div",{class:"ytdSponsorshipsPerksListHeaderImagePart1Container"},_.P(_.Dx,{cond:y,then:function(L){var D={};return _.P("div",{class:_.sZ((D.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=k,D.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!k,D.ytdSponsorshipsPerksListFlipped=
z,D))},_.P(_.x$,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart1"}))}})),_.P("div",{class:"ytdSponsorshipsPerksListHeaderImagePart2Container"},_.P(_.Dx,{cond:F,
then:function(L){var D={};return _.P("div",{class:_.sZ((D.ytdSponsorshipsPerksListHeaderImageFilterDarkTheme=k,D.ytdSponsorshipsPerksListHeaderImageFilterLightTheme=!k,D.ytdSponsorshipsPerksListFlipped=z,D))},_.P(_.x$,{data:L,alt:"",className:"ytdSponsorshipsPerksListHeaderImagePart2"}))}})),_.P("div",{class:"ytdSponsorshipsPerksListAvatarsContainer"},_.P(_.lY,{data:function(){var L;
return(L=C().header)==null?void 0:L.dualAvatar}},{dualAvatarViewModel:_.f3w})))),_.P("div",{class:"ytdSponsorshipsPerksListBody"},_.P("div",{class:"ytdSponsorshipsPerksListTitle"},function(){return C().title}),_.P(_.Dx,{cond:function(){return C().perks},
then:function(L){return _.P(_.pH,{each:L},function(D,p){var Q={};return _.P("div",{class:_.sZ("ytdSponsorshipsPerksListPerkContainer",(Q.ytdSponsorshipsPerksListSelectedPerk=function(){var X=p(),b=C().selectedPerkIndex;return X===b},Q))},_.P(_.Dx,{cond:function(){return p()>0},
then:function(){return _.P("div",{class:"ytdSponsorshipsPerksListPerkSeparator"})}}),_.P("div",{class:"ytdSponsorshipsPerksListPerkCard"},_.P(_.Dx,{cond:function(){return D.icon},
then:function(X){return _.P(_.ez,{icon:function(){return X().iconType},
className:"ytdSponsorshipsPerksListPerkIcon"})}}),_.P("div",{class:"ytdSponsorshipsPerksListPerkInfo"},_.P("div",{class:"ytdSponsorshipsPerksListPerkTitle"},D.title),_.P("div",{class:"ytdSponsorshipsPerksListPerkDescription"},_.P(_.wh,{text:D.description})),_.P(_.Dx,{cond:function(){return D.instructions},
then:function(){var X,b;return _.P("div",{class:"ytdSponsorshipsPerksListPerkInstructions"},_.P("div",{class:"ytdSponsorshipsPerksListPerkInstructionsTitle"},(X=D.instructions)==null?void 0:X.title),_.P("div",{class:"ytdSponsorshipsPerksListPerkInstructionsText"},_.P(_.wh,{text:(b=D.instructions)==null?void 0:b.text})))}}))),_.P(_.Dx,{cond:function(){return D.emoji},
then:function(X){return _.P("div",{class:"ytdSponsorshipsPerksListEmojiContainer"},_.P(_.pH,{each:function(){return X()}},function(b){return _.P(_.x$,{data:b,
alt:"",className:"ytdSponsorshipsPerksListEmoji"})}))}}),_.P(SYw,{data:D}))})}})))},"Nd");
Kid.idomCompat=!0;var SYw=_.BO(function(I){var C=I.data;var y=function(c,r){return c===r},k=function(){var c=C();
c=_.l(c==null?void 0:c.badgesShelf,Fyq);return c!==void 0&&c!==null?c:{previousButton:{},nextButton:{}}},F=_.h3(),z=function(){var c=F.value;
if(c){var r=c.parentElement;if(r){c=c.getElementsByClassName("ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer");for(var w=0;w<c.length;++w){var L=c[w];if(L instanceof HTMLElement){r.scrollTo({left:L.offsetLeft+L.clientWidth/2-r.clientWidth/2,behavior:"instant"});break}}}}};
_.RU(function(){var c=F.value;if(c){var r=new ResizeObserver(z);r.observe(c);_.$4(function(){r.disconnect()})}});
return _.P("div",null,_.P(_.Dx,{cond:function(){return C().badges},
then:function(c){return _.P(bgq,{data:k},_.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgesContainer",el:F},_.P(_.pH,{each:function(){return c()}},function(r,w){var L={},D={},p={};
return _.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeItem"},_.P(_.Dx,{cond:function(){return w()>0},
then:function(){return _.P("div",{class:"ytdSponsorshipsPerksListLoyaltyBadgeSeparator"})}}),_.P("div",{class:_.sZ("ytdSponsorshipsPerksListLoyaltyBadgeContainer",(L.ytdSponsorshipsPerksListActiveLoyaltyBadgeContainer=function(){return y(w(),C().currentBadgeIndex)},L.ytdSponsorshipsPerksListInactiveLoyaltyBadgeContainer=function(){return!y(w(),C().currentBadgeIndex)},L))},_.P("div",{class:_.sZ("ytdSponsorshipsPerksListLoyaltyBadge",(D.ytdSponsorshipsPerksListActiveLoyaltyBadge=function(){return y(w(),
C().currentBadgeIndex)},D.ytdSponsorshipsPerksListInactiveLoyaltyBadge=function(){return!y(w(),C().currentBadgeIndex)},D))},_.P(_.Dx,{cond:function(){return r.image},
then:function(Q){var X={};return _.P("div",{class:_.sZ((X.ytdSponsorshipsPerksListActiveLoyaltyBadgeImage=function(){return y(w(),C().currentBadgeIndex)},X.ytdSponsorshipsPerksListInactiveLoyaltyBadgeImage=function(){return!y(w(),C().currentBadgeIndex)},X))},_.P(_.x$,{data:Q,
alt:""}))}})),_.P("div",{class:_.sZ("ytdSponsorshipsPerksListLoyaltyBadgeTitle",(p.ytdSponsorshipsPerksListActiveLoyaltyBadgeTitle=function(){return y(w(),C().currentBadgeIndex)},p))},r.title)))})))}}))},"Od");
SYw.idomCompat=!0;_.B9(Kid,"yt-sponsorships-perks-list",{props:{data:_.As}});_.B9(_.BO(function(I){return _.P("ytw-fantasy-empty-state-view-model",{class:"ytwFantasyEmptyStateViewModelHost"},_.P(_.Dx,{cond:function(){return I.data().image},
then:function(C){return _.P(_.x$,{className:"ytwFantasyEmptyStateViewModelImage",data:C,ariaHidden:!0,alt:""})}}),_.P(_.wh,{className:"ytwFantasyEmptyStateViewModelTitle",
text:function(){return I.data().title}}),_.P(_.wh,{className:"ytwFantasyEmptyStateViewModelSubtitle",
text:function(){return I.data().subtitle}}),_.P(_.lY,{data:function(){return I.data().primaryButton}},{buttonViewModel:function(C){return _.P(_.fM,{data:C.data,
className:"ytwFantasyEmptyStateViewModelPrimaryButton"})}}))},"Pd"),"ytw-fantasy-empty-state-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;var y;I=_.T(_.c4(!((y=_.Fk("yt-mini-app-is-theater-mode-enabled"))==null||!y),void 0,"CUtq5"));var k=I.next().value,F=I.next().value,z;y=(z=_.N().resolve(_.aU(uxw)))!=null?z:function(){return _.P("div",null)};
_.BH("yt-signal-action-mini-app-toggle-theatre-mode-on",function(){F(!0);_.ky("yt-mini-app-is-theater-mode-enabled",!0)});
_.BH("yt-signal-action-mini-app-toggle-theatre-mode-off",function(){F(!1);_.ky("yt-mini-app-is-theater-mode-enabled",!1)});
z={};I={};var c={};return _.P("mini-app-play-page-renderer",{class:_.sZ("miniAppPlayPageRendererHost",(z.miniAppPlayPageRendererHostDetailsView=function(){return!k()},z))},_.P("div",{class:_.sZ("miniAppPlayPageRendererGameContainer",(I.miniAppPlayPageRendererGameContainerDetailsView=function(){return!k()},I))},_.P(_.lY,{data:function(){return C().containerViewModel}},{miniAppContainerViewModel:$tb}),_.P(_.Dx,{cond:function(){return!k()&&C().description},
then:function(){return _.P("div",{class:"miniAppPlayPageRendererMiniAppDescriptionWrapper"},_.P("span",{class:"miniAppPlayPageRendererMiniAppDescription"},function(){return C().description}))}})),_.P("div",{class:_.sZ("miniAppPlayPageRendererPlayNextContainer",(c.miniAppPlayPageRendererPlayNextContainerDetailsView=function(){return!k()},c))},_.P(_.lY,{data:function(){return C().sectionList}},{sectionListRenderer:y})))},"Qd"),"mini-app-play-page-renderer",{props:{data:_.As}});var Ay=function(){var I=_.q.apply(this,arguments)||this;I.isSearch=!1;I.isConstrainedList=!1;I.hasChipsBar=!1;I.inReplyPanel=!1;I.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"}};I.monitorScroll=!0;I.SCROLL_ANIMATION_DURATION_MS=300;I.nextContinuation={continuationType:"sectionListContinuation"};return I};
_.R(Ay,_.q);_.u=Ay.prototype;
_.u.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(I){switch(I.sectionIdentifier){case "comment-item-section":return"ytd-comments";case "backstage-item-section":return"ytd-backstage-items";default:return"ytd-item-section-renderer"}},
properties:{isSearchDova:"[[isSearchDova]]",isSearch:"[[isSearch]]",hasChipsBar:"[[hasChipsBar]]",engagementPanel:"[[engagementPanel]]",pageSubtype:"[[pageSubtype]]",isConstrainedList:"[[isConstrainedList]]"},noInjection:!0},channelOwnerEmptyStateRenderer:{component:"ytd-channel-owner-empty-state-renderer",noInjection:!0},channelAgeGateRenderer:{component:"ytd-channel-age-gate-renderer",noInjection:!0},emptyProductDetailsRenderer:{component:"ytd-empty-product-details-renderer",noInjection:!0},iframeRenderer:{component:"yt-iframe-renderer",
noInjection:!0},commerceCartRenderer:{component:"ytd-commerce-cart-renderer",noInjection:!0},minorMomentHeaderRenderer:{component:"ytd-minor-moment-header-renderer",noInjection:!0},minorMomentSettingSectionRenderer:{component:"ytd-minor-moment-setting-section-renderer",noInjection:!0},pageIntroductionRenderer:{component:"ytd-page-introduction-renderer",noInjection:!0},reportHistorySectionRenderer:{component:"ytd-report-history-section-renderer",noInjection:!0},sponsorshipsManagementRenderer:{component:"ytd-sponsorships-management-renderer",
noInjection:!0},sponsorshipsExpandablePerksRenderer:{component:"ytd-sponsorships-expandable-perks-renderer",noInjection:!0},sponsorshipsHubViewModel:{component:"yt-sponsorships-hub",noInjection:!0},sponsorshipsPerksListViewModel:{component:"yt-sponsorships-perks-list",noInjection:!0},shelfRenderer:{component:"ytd-shelf-renderer",noInjection:!0},offlineItemSectionRenderer:{component:"ytd-offline-item-section-renderer",noInjection:!0},merchandiseShelfRenderer:{component:"ytd-merch-shelf-renderer",noInjection:!0},
miniAppContainerViewModel:{component:"mini-app-container-view-model",noInjection:!0},miniAppPlayPageRenderer:{component:"mini-app-play-page-renderer",noInjection:!0},openInNativeAppViewModel:{component:"ytd-open-in-native-app-view-model",noInjection:!0},continuationItemRenderer:"ytd-continuation-item-renderer",liveChatProfileIdentityViewModel:{component:"yt-live-chat-identity-view-model",noInjection:!0},liveChatItemDisplayListRenderer:{component:"yt-live-chat-item-display-list-renderer",noInjection:!0},
liveChatChannelActivityReputationRenderer:{component:"yt-live-chat-channel-activity-reputation-renderer",noInjection:!0},liveChatEmptyFeedViewModel:{component:"yt-live-chat-empty-feed-view-model",noInjection:!0},listItemViewModel:{component:"ytd-list-item-view-model",params:{noPadding:!0},noInjection:!0},emojiCustomizationPanelViewModel:{component:"yt-emoji-customization-panel-view-model",noInjection:!0},creatorGoalProgressFlowViewModel:{component:"yt-creator-goal-progress-flow-view-model",noInjection:!0},
fantasyEmptyStateViewModel:{component:"ytw-fantasy-empty-state-view-model",noInjection:!0}}},"data.continuations":{id:"continuations",mapping:{nextContinuationData:{component:"yt-next-continuation",noInjection:!0}},renderPriority:_.V("kevlar_low_priority_continuation")?0:void 0,usePageScheduler:_.V("kevlar_low_priority_continuation")},scrollUpButtonData:{id:"action-button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"},noInjection:!0}}}}};
_.u.created=function(){var I=this;this.JSC$14744_scrollAnimation=new _.XQ(function(C){I.hostElement.scrollTop=C})};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents"}};
_.u.getItemsPath=function(){return"data.contents"};
_.u.replacePrimaryContent=function(I){this.set("data.contents",I)};
_.u.computeHasSortFilter=function(I){return!!I&&!!I.sortFilterSubMenuRenderer};
_.u.computeShouldScrollInPanel=function(I){var C;return!!(I==null?0:(C=I.scrollPaneStyle)==null?0:C.scrollable)};
_.u.onScroll=function(){this.liveChatEngagementPanel&&!this.inReplyPanel&&_.a_(this.actionButton,"show-scroll-button",this.hostElement.scrollTop!==0)};
_.u.scrollToTop=function(){this.hostElement.scrollTop=0};
_.u.scrollToItemSection=function(I){if(I=this.getItemByIdentifier(I))I=this.getScrollPositionForItem(I),this.hostElement.scrollTop!==I&&this.JSC$14744_scrollAnimation.start(this.hostElement.scrollTop,I,this.SCROLL_ANIMATION_DURATION_MS)};
_.u.getItemByIdentifier=function(I){var C=this.contents.querySelectorAll("ytd-item-section-renderer");if(C&&C.length!==0){var y=Array.from(C).findIndex(function(k){return k.sectionIdentifier===I});
return C[y===-1?0:y]}};
_.u.getScrollPositionForItem=function(I){if(this.contents.querySelectorAll("ytd-item-section-renderer")[0]===I)return 0;I=_.l3(I).y+this.hostElement.scrollTop-_.l3(this.hostElement).y;return Math.min(I,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.H1.Object.defineProperties(Ay.prototype,{isClipList:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.targetId)==="browse-feedFEclips"}}});
Ay.prototype.onScroll=Ay.prototype.onScroll;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ay.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ay.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],Ay.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],Ay.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.g(_.Vwb),_.h("design:type",Object)],Ay.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],Ay.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ay.prototype,"data",void 0);_.E([_.d({value:2}),_.h("design:type",Number)],Ay.prototype,"initialCount",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],Ay.prototype,"autoFill",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasSortFilter(data.subMenu)"}),_.h("design:type",Boolean)],Ay.prototype,"hasSortFilter",void 0);_.E([_.d({reflectToAttribute:!0,computed:"toBool(data.hideBottomSeparator)"}),_.h("design:type",Boolean)],Ay.prototype,"hideBottomSeparator",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShouldScrollInPanel(data)"}),_.h("design:type",Boolean)],Ay.prototype,"shouldScrollInPanel",void 0);
_.E([_.d(),_.h("design:type",Object)],Ay.prototype,"isSearch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ay.prototype,"isConstrainedList",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Ay.prototype,"responsiveSizing",void 0);_.E([_.d(),_.h("design:type",Object)],Ay.prototype,"hasChipsBar",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Ay.prototype,"pageSubtype",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ay.prototype,"engagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ay.prototype,"liveChatEngagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ay.prototype,"inReplyPanel",void 0);_.E([_.z$("#action-button"),_.h("design:type",HTMLElement)],Ay.prototype,"actionButton",void 0);_.E([_.d(),_.h("design:type",Object)],Ay.prototype,"scrollUpButtonData",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ay.prototype,"engagementPanelDropdown",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ay.prototype,"engagementPanelDialog",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ay.prototype,"isClipList",null);_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],Ay.prototype,"monitorScrollElement",void 0);_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],Ay.prototype,"contents",void 0);
_.E([_.km("scroll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ay.prototype,"onScroll",null);Ay=_.E([_.m({is:"ytd-section-list-renderer",disableElementRegistration:!0})],Ay);
var Atb=_.MH()(Ay,"ytd-section-list-renderer",function(){if(F$8===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);F$8=I}I=F$8;return I},{mode:1});var g2d;var v2w;var Wim;var dtY;var vT=function(){return _.q.apply(this,arguments)||this};
_.R(vT,_.q);vT.prototype.configureRendererStamper=function(){return{likeButtonRenderer:{id:"button",mapping:{toggleButtonRenderer:{component:"ytd-toggle-button-renderer",properties:{"on-tap":"[[onLikeButtonClick]]"}}}}}};
vT.prototype.onLikeButtonClick=function(I){I.stopPropagation();I.preventDefault()};
_.H1.Object.defineProperties(vT.prototype,{likeButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)!=null&&I.button){if(!this.likeStatusEntity)return this.data.button;this.set("data.button.toggleButtonRenderer.isToggled",!(!this.data.isLike||this.likeStatusEntity.likeStatus!=="LIKE")||!(!this.data.isDislike||this.likeStatusEntity.likeStatus!=="DISLIKE"));this.set("data.likeStatus",this.likeStatusEntity.likeStatus);return Object.assign({},this.data.button,{toggleButtonRenderer:Object.assign({},
this.data.button.toggleButtonRenderer)})}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],vT.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],vT.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vT.prototype,"ytRendererStamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vT.prototype,"data",void 0);
_.E([_.d({selectorArgs:["data.likeStatusEntityKey"],selector:$s}),_.h("design:type",Object)],vT.prototype,"likeStatusEntity",void 0);_.E([_.v("data","likeStatusEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],vT.prototype,"likeButtonRenderer",null);vT=_.E([_.m({is:"ytd-slim-metadata-toggle-button-renderer",disableElementRegistration:!0})],vT);
_.Z(vT,"ytd-slim-metadata-toggle-button-renderer",function(){if(dtY!==void 0)return dtY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return dtY=I},{mode:1});var WT=function(){var I=_.q.apply(this,arguments)||this;I.minimizePipBreakages=_.V("web_pip_minimize_breakages");I.showEqualizer=_.V("web_enable_playlist_video_lockup_equalizer");I.watchColorUpdate=_.V("kevlar_watch_color_update");I.actionMap={};return I};
_.R(WT,_.q);_.u=WT.prototype;_.u.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"}}}};
_.u.computeEditableClass=function(I){return I&&I.menu?"editable":""};
_.u.computeSelected=function(I){return!(I==null||!I.selected)};
_.u.computeUseColorPalette=function(I){return!!((I==null?0:I.lightColorPalette)&&(I==null?0:I.darkColorPalette))};
_.u.computeLargerPlaylistThumbs=function(I,C){return _.V("web_enable_playlist_bigger_thumbnails")&&!C};
_.u.canReorderChanged=function(){this.touchPersistentDragHandle=this.canReorder};
_.u.onYtServiceRequestSent=function(I,C){C.endpoint&&this.isHideEnclosingAction(C.endpoint)&&!this.selected&&Drm(_.gf(),this.data.videoId)};
_.u.isHideEnclosingAction=function(I){var C=!!this.get("feedbackEndpoint.uiActions.hideEnclosingContainer",I);I=this.get("likeEndpoint.status",I)==="INDIFFERENT";return C||I};
_.u.onHandleMouseenter=function(){this.handleIsHovered=!0};
_.u.onHandleMouseleave=function(){this.handleIsHovered=!1};
_.H1.Object.defineProperties(WT.prototype,{thumbnailWidth:{configurable:!0,enumerable:!0,get:function(){return(this==null?0:this.largerPlaylistThumbs)?151:100}},
showActionButtons:{configurable:!0,enumerable:!0,get:function(){var I;return!!(this.withinMiniplayer&&((I=this.data)==null?0:I.actionButtons))}}});
WT.prototype.onYtServiceRequestSent=WT.prototype.onYtServiceRequestSent;WT.prototype.canReorderChanged=WT.prototype.canReorderChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],WT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],WT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WT.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.KN),_.h("design:type",Object)],WT.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],WT.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"withinMiniplayer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],WT.prototype,"minimizePipBreakages",void 0);_.E([_.d({computed:"computeSelected(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"selected",void 0);
_.E([_.d({computed:"computeUseColorPalette(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"useColorPalette",void 0);_.E([_.d({computed:"computeLargerPlaylistThumbs(data, withinMiniplayer)",reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"largerPlaylistThumbs",void 0);_.E([_.d(),_.h("design:type",Object)],WT.prototype,"showEqualizer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"canReorder",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"touchPersistentDragHandle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],WT.prototype,"handleIsHovered",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],WT.prototype,"watchColorUpdate",void 0);_.E([_.v("largerPlaylistThumbs"),_.h("design:type",Number),_.h("design:paramtypes",[])],WT.prototype,"thumbnailWidth",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],WT.prototype,"showActionButtons",null);_.E([_.rW("canReorder"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WT.prototype,"canReorderChanged",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],WT.prototype,"onYtServiceRequestSent",null);
WT=_.E([_.m({is:"ytd-playlist-panel-video-renderer",disableElementRegistration:!0})],WT);
_.Z(WT,"ytd-playlist-panel-video-renderer",function(){if(Wim!==void 0)return Wim;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-panel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a id="wc-endpoint" class="yt-simple-endpoint style-scope ytd-playlist-panel-video-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n  <div id="container" class="style-scope ytd-playlist-panel-video-renderer">\n    <div id="index-container" class="playlist-drag-handle style-scope ytd-playlist-panel-video-renderer" on-mouseenter="onHandleMouseenter" on-mouseleave="onHandleMouseleave">\n      <span id="reorder" class="style-scope ytd-playlist-panel-video-renderer">\n        <yt-icon icon="yt-icons:drag_handle" class="style-scope ytd-playlist-panel-video-renderer"></yt-icon>\n      </span>\n      <span id="index" class="style-scope ytd-playlist-panel-video-renderer">[[getSimpleString(data.indexText)]]</span>\n    </div>\n    <div id="thumbnail-container" class="style-scope ytd-playlist-panel-video-renderer">\n      <ytd-thumbnail data="[[data]]" disable-now-playing="[[!showEqualizer]]" disable-tooltips="" now-playing-equalizer-only="" use-expandable-tooltip="[[useExpandableTooltip_]]" width="[[thumbnailWidth]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </ytd-thumbnail>\n    </div>\n    <div id="meta" class$="[[computeEditableClass(data)]] style-scope ytd-playlist-panel-video-renderer">\n      <yt-formatted-string id="unplayableText" disable-upgrade$="[[!data.unplayableText]]" hidden="[[!data.unplayableText]]" no-endpoints="" text="[[data.unplayableText]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <h4 class="style-scope ytd-playlist-panel-video-renderer">\n        <ytd-badge-supported-renderer top-standalone-badge="[[data.topStandaloneBadge]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <span id="video-title" title$="[[getSimpleString(data.title)]]" aria-label$="[[data.title.accessibility.accessibilityData.label]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.title)]]\n        </span>\n      </h4>\n      <div id="byline-container" class="style-scope ytd-playlist-panel-video-renderer">\n        <span id="byline" hidden="[[!data.shortBylineText]]" class="style-scope ytd-playlist-panel-video-renderer">\n          [[getSimpleString(data.shortBylineText)]]\n        </span>\n        <ytd-badge-supported-renderer badges="[[data.ownerBadges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n        <ytd-badge-supported-renderer badges="[[data.badges]]" class="style-scope ytd-playlist-panel-video-renderer">\n        </ytd-badge-supported-renderer>\n      </div>\n      <yt-formatted-string id="video-info" disable-upgrade$="[[!data.videoInfo]]" hidden="[[!data.videoInfo]]" no-endpoints="" text="[[data.videoInfo]]" class="style-scope ytd-playlist-panel-video-renderer">\n      </yt-formatted-string>\n      <div id="action-buttons" hidden="[[!showActionButtons]]" class="style-scope ytd-playlist-panel-video-renderer"></div>\n    </div>\n  </div>\n</a>\n<div id="menu" class="style-scope ytd-playlist-panel-video-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Wim=I},{mode:2});var dc=function(){return _.q.apply(this,arguments)||this};
_.R(dc,_.q);dc.prototype.configureRendererStamper=function(){return{data:{id:"content",mapping:{playlistPanelVideoRenderer:{component:"ytd-playlist-panel-video-renderer",noInjection:!0},messageRenderer:{component:"ytd-message-renderer",noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dc.prototype,"data",void 0);dc=_.E([_.m({is:"ytd-playlist-panel-supported-items",disableElementRegistration:!0})],dc);
_.Z(dc,"ytd-playlist-panel-supported-items",function(){if(v2w!==void 0)return v2w;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return v2w=
I},{mode:1});Ucc=!0;TJ0("\\P{N}");var z6F;var xtb=_.PQ("END_OF_PLAYLIST",void 0,"End of playlist"),qYP=_.PQ("PLAYLIST_MIX_DETAILED_LONG_BYLINE",void 0,"Mixes are playlists YouTube makes for you"),xh=function(){var I=_.q.apply(this,arguments)||this;I.minimizePipBreakages=_.V("web_pip_minimize_breakages");I.updatedCoursePanel=_.V("move_three_dot_menu_to_playlist_panel_header_for_courses");I.reducedPlaylistHeight=_.V("web_playlist_mini_playlist_height");I.hideHeaderText=!1;I.useColorPalette=!1;I.collapsed=!1;I.collapsedPreServerOverride="not_tracked";
I.isHovered=!1;I.modernPanels=_.V("kevlar_watch_modern_panels");I.expandLabel=_.PQ("MINIPLAYER_EXPAND_LABEL");I.collapseLabel=_.PQ("MINIPLAYER_COLLAPSE_LABEL");I.isFloating=!1;I.metaPanel=!1;I.actionMap={"yt-dark-mode-toggled-action":"handleDarkModeChange"};I.currentIndex=void 0;return I};
_.R(xh,_.q);_.u=xh.prototype;
_.u.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"}}}};
_.u.created=function(){this.scrollThrottle=new _.OG(this.onThrottledScroll,1E3,this)};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
_.u.computeOverflowMenuData=function(I){return I&&I.menu?I.menu:null};
_.u.computeCollapsible=function(I){return!I};
_.u.computeHasPlaylistButtons=function(I){return!(!I||!I.playlistButtons)};
_.u.computeHasSeparateSaveButton=function(I){return!(!I||!I.saveButton)};
_.u.computeHasToolbarButton=function(I,C){return!(!I||!(C||I.saveButton||I.menu))};
_.u.computePlaylistType=function(I){if(I&&I.playlistId)return I.playlistId.substring(0,4)};
_.u.computeCanReorder=function(I){return I?I.playlistId&&I.playlistId.startsWith("TLPQ")?!0:!!I.isEditable&&!I.isInfinite:!1};
_.u.attached=function(){var I=this;try{_.N().resolve(_.Gk).setPlaylistComponent(this.hostElement)}catch(C){if(_.V("kevlar_park_on_playlist_token_killswitch"))throw C;_.So().parkOrScheduleJob(function(){_.N().resolve(_.Gk).setPlaylistComponent(I.hostElement)},2,"ci")}_.ot(this.hostElement);
this.handleDarkModeChange(document.documentElement.hasAttribute("dark"))};
_.u.detached=function(){_.yw(this.hostElement)};
_.u.computeTrailingIcon=function(I,C,y){return y?C?"yt-icons:collapse":"yt-icons:close":C?"yt-icons:expand":_.V("kevlar_playlist_use_x_close_button")?"yt-icons:close":"yt-icons:collapse"};
_.u.computeIndexMessage=function(I,C){return e6z(I+1)+" / "+e6z(C)};
_.u.onRenderStamperFinished=function(){if(this.scrollForStampDom){var I=!0;this.isHovered&&(I=!1);if(this.collapsed||this.hidden)I=!1;I&&this.scrollToCurrentVideo();this.scrollForStampDom=!1;this.data&&(this.currentIndex=this.data.currentIndex)}this.canReorder&&this.setupReordering()};
_.u.collapseChanged=function(){var I=this;this.collapsed||(_.jj(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.scrollToCurrentVideo()}),this.ytRendererBehavior.markDirty())};
_.u.hiddenChanged=function(){var I=this;this.hidden||_.jj(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.scrollToCurrentVideo()})};
_.u.setupReordering=function(){var I=_.f(this.hostElement).querySelector("#items");Zoq?_.YO8(this.ytReorderableBehavior,I,I,"playlist-drag-handle"):_.YO8(this.ytReorderableBehavior,I,I)};
_.u.scrollToCurrentVideo=function(){var I=this;_.b$.addJob(function(){var C=_.f(I.hostElement).querySelector("#items");if(C){C.style.setProperty("padding-bottom","");var y=_.f(I.hostElement).querySelector("#items").querySelector("ytd-playlist-panel-video-renderer[selected]");if(y){C=y.parentElement||_.$g(document);var k=C||_.$g(document);var F=_.l3(y),z=_.l3(k),c=_.cTu(k);if(k==_.$g(document)){var r=F.x-k.scrollLeft;F=F.y-k.scrollTop}else r=F.x-z.x-c.left,F=F.y-z.y-c.top;y=FzS(y);z=k.clientHeight-
y.height;c=k.scrollLeft;var w=k.scrollTop;c+=r-(k.clientWidth-y.width)/2;k=new _.Q6(c,w+(F-z/2));C.scrollLeft=k.x;C.scrollTop=k.y}}},8)};
_.u.dataChanged=function(){var I=this;_.brb(this.ytReorderableBehavior);this.scrollForStampDom=this.currentIndex!==this.data.currentIndex;this.hidden||_.hn(this,function(){_.NU(I.ytTaskEmitterBehavior.getTaskManager(),function(){I.ytRendererBehavior.markDirty();I.updateNowPlayingOverlay()})});
this.handleCollapsedFromData(this.data)};
_.u.updateNowPlayingOverlay=function(){_.V("web_enable_playlist_video_lockup_equalizer")&&this.activeNowPlayingRenderer&&(this.activeNowPlayingRenderer.isVideoPlaying=this.playerState===1)};
_.u.onPlaylistLockupNowPlaying=function(I,C){C&&(this.activeNowPlayingRenderer=C);this.updateNowPlayingOverlay()};
_.u.onScroll=function(){this.scrollThrottle.fire()};
_.u.onThrottledScroll=function(){var I=this;_.NU(this.ytTaskEmitterBehavior.getTaskManager(),function(){I.ytRendererBehavior.markDirty()})};
_.u.onToggleExpanded=function(I){this.collapsible&&_.m0(I).tagName!=="A"&&!_.q3(_.qc(I),this.hostElement,["YTD-MENU-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])&&(this.setCollapsed(!this.collapsed),this.collapsedPreServerOverride="not_tracked")};
_.u.setCollapsed=function(I){this.collapsible&&(this.collapsed=I,_.uW(this.hostElement,"yt-set-playlist-collapsed",[this.collapsed]))};
_.u.handleCollapsedFromData=function(I){if(I){var C=I.playlistPanelCollapseState;C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED"||C==="PLAYLIST_PANEL_COLLAPSE_STATE_EXPANDED"?(this.collapsedPreServerOverride==="not_tracked"&&(this.collapsedPreServerOverride=this.collapsed?"collapsed":"expanded"),C=C==="PLAYLIST_PANEL_COLLAPSE_STATE_COLLAPSED",this.collapsed!==C&&this.setCollapsed(C)):this.currentPlaylistId!==I.playlistId&&this.collapsedPreServerOverride!=="not_tracked"&&(C=this.collapsedPreServerOverride===
"collapsed",this.collapsed!==C&&this.setCollapsed(C),this.collapsedPreServerOverride="not_tracked");this.currentPlaylistId=I.playlistId}};
_.u.handleDrop=function(I){var C=I.currDragItem;I=C.data.playlistSetVideoId;var y=_.dH(C.parentNode.childNodes,C),k=void 0;y>0&&(k=C.parentNode.childNodes[y-1].data.playlistSetVideoId);C=_.gf();if(C.responsePlaylistData&&C.responsePlaylistData.contents){var F=HuI(I,C.responsePlaylistData);C.responsePlaylistData=(0,_.Le.unsafeClone)(C.responsePlaylistData);jmO(C.responsePlaylistData.contents,F,y);C.queueProxy?tJP(C.queueProxy,F,y,I,k):C.playlistProxy&&tJP(C.playlistProxy,F,y,I,k);_.vk(C,_.Wk(C,C.response?
C.response.autoplayRenderer:void 0))}};
_.u.handleDarkModeChange=function(I){I!==this.isDarkTheme&&(this.isDarkTheme=I)};
_.u.colorPaletteChanged=function(){var I,C=((I=this.data)==null?void 0:I.contents)||[],y;I=_.T(C);for(C=I.next();!C.done;C=I.next()){C=C.value;var k=void 0;if((k=C.playlistPanelVideoRenderer)==null?0:k.selected){I=C.playlistPanelVideoRenderer;k=C=void 0;(y=this.isDarkTheme?(C=I)==null?void 0:C.darkColorPalette:(k=I)==null?void 0:k.lightColorPalette)&&_.N3(this.hostElement,y);break}}this.useColorPalette=!!y};
_.H1.Object.defineProperties(xh.prototype,{moveThreeDotMenuToTopRow:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.playlistId)&&!((C=this.data)==null||!C.isCourse)&&this.updatedCoursePanel}},
nextVideoTitle:{configurable:!0,enumerable:!0,get:function(){var I=_.N().resolve(_.aU(_.Gk)),C;if(((C=this.data)==null?0:C.contents)&&(I==null?0:I.hasAutoplayData())){var y;if(((y=this.playlistLoopStateEntity)==null?void 0:y.state)==="PLAYLIST_LOOP_STATE_ONE"){if(I=this.data.currentIndex,I!==void 0){var k,F;var z=(k=this.data.contents[I])==null?void 0:(F=k.playlistPanelVideoRenderer)==null?void 0:F.title}}else{var c,r=(c=_.l(I.getAutoplayEndpoint(),_.H$))==null?void 0:c.videoId,w,L;z=(w=this.data.contents.find(function(D){var p;
return((p=D.playlistPanelVideoRenderer)==null?void 0:p.videoId)===r}))==null?void 0:(L=w.playlistPanelVideoRenderer)==null?void 0:L.title}return z}}},
nextVideoLabel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)!=null&&I.nextVideoLabel?this.nextVideoTitle?_.hS(this.data.nextVideoLabel)+":":xtb:""}},
buttonAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.collapsed?this.expandLabel:this.collapseLabel}},
mixLongByLine:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.data)==null?0:I.playlistId)&&this.data.playlistId.startsWith("RD")&&this.data.playlistId!=="RDPN")return _.Ee(qYP);var C;return(C=this.data)==null?void 0:C.longBylineText}},
playlistLoopStateEntityKey:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.playlistButtons)==null?void 0:(y=C.menuRenderer)==null?void 0:y.topLevelButtons;if(k)for(I=_.T(k),C=I.next();!C.done;C=I.next())if(C=C.value,C.playlistLoopButtonRenderer)return C.playlistLoopButtonRenderer.playlistLoopStateEntityKey}},
showNextVideoHeader:{configurable:!0,enumerable:!0,get:function(){var I;return!!(this.collapsed&&((I=this.data)==null?0:I.nextVideoLabel))}}});
xh.prototype.colorPaletteChanged=xh.prototype.colorPaletteChanged;xh.prototype.onPlaylistLockupNowPlaying=xh.prototype.onPlaylistLockupNowPlaying;xh.prototype.updateNowPlayingOverlay=xh.prototype.updateNowPlayingOverlay;xh.prototype.dataChanged=xh.prototype.dataChanged;xh.prototype.hiddenChanged=xh.prototype.hiddenChanged;xh.prototype.collapseChanged=xh.prototype.collapseChanged;xh.prototype.onRenderStamperFinished=xh.prototype.onRenderStamperFinished;xh.prototype.onMouseLeave=xh.prototype.onMouseLeave;
xh.prototype.onMouseEnter=xh.prototype.onMouseEnter;_.E([_.g(_.Ri),_.h("design:type",Object)],xh.prototype,"ironResizableBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xh.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xh.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g($6q.YtPlaylistPanelBehavior),_.h("design:type",Object)],xh.prototype,"ytPlaylistPanelBehavior",void 0);
_.E([_.g(_.xy.YtTaskEmitterBehavior),_.h("design:type",Object)],xh.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.g(_.Gwe),_.h("design:type",Object)],xh.prototype,"ytReorderableBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xh.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],xh.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],xh.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],xh.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],xh.prototype,"autoplayData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],xh.prototype,"withinMiniplayer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"minimizePipBreakages",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"updatedCoursePanel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"reducedPlaylistHeight",void 0);_.E([_.d({computed:"setMenuData_(data)"}),_.h("design:type",Object)],xh.prototype,"menuRendererData",void 0);_.E([_.d({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],xh.prototype,"overflowMenuDataTopRow",void 0);_.E([_.d({computed:"computeOverflowMenuData(data)"}),_.h("design:type",Object)],xh.prototype,"overflowMenuData",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"hideHeaderText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"useColorPalette",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeCollapsible(hideHeaderText)"}),_.h("design:type",Boolean)],xh.prototype,"collapsible",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"collapsed",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],xh.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasPlaylistButtons(data)"}),_.h("design:type",Boolean)],xh.prototype,"hasPlaylistButtons",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasSeparateSaveButton(data)"}),_.h("design:type",Boolean)],xh.prototype,"hasSeparateSaveButton",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasToolbarButton(data, menuRendererData)"}),_.h("design:type",Boolean)],xh.prototype,"hasToolbar",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computePlaylistType(data)"}),_.h("design:type",String)],xh.prototype,"playlistType",void 0);_.E([_.d(),_.h("design:type",Object)],xh.prototype,"isHovered",void 0);_.E([_.d({selectorArgs:["playlistLoopStateEntityKey"],selector:_.gwI}),_.h("design:type",Object)],xh.prototype,"playlistLoopStateEntity",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"modernPanels",void 0);_.E([_.d({value:56}),_.h("design:type",Number)],xh.prototype,"scrollMargin",void 0);_.E([_.d({computed:"computeCanReorder(data)"}),_.h("design:type",Boolean)],xh.prototype,"canReorder",void 0);_.E([_.d(),_.h("design:type",Object)],xh.prototype,"expandLabel",void 0);_.E([_.d(),_.h("design:type",Object)],xh.prototype,"collapseLabel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"isFloating",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],xh.prototype,"metaPanel",void 0);_.E([_.d({computed:"computeTrailingIcon(data, collapsed, isFloating)"}),_.h("design:type",String)],xh.prototype,"trailingIcon",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],xh.prototype,"isDarkTheme",void 0);
_.E([_.d({selector:_.GL}),_.h("design:type",Boolean)],xh.prototype,"miniplayerIsActive",void 0);_.E([_.d({selector:function(I){return I.watch.playerState}}),
_.h("design:type",Number)],xh.prototype,"playerState",void 0);_.E([_.d(),_.h("design:type",Object)],xh.prototype,"activeNowPlayingRenderer",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xh.prototype,"moveThreeDotMenuToTopRow",null);_.E([_.v("data","autoplayData","playlistLoopStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],xh.prototype,"nextVideoTitle",null);
_.E([_.v("data","nextVideoTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],xh.prototype,"nextVideoLabel",null);_.E([_.v("collapsed"),_.h("design:type",String),_.h("design:paramtypes",[])],xh.prototype,"buttonAriaLabel",null);_.E([_.v("data","playlistId","longBylineText"),_.h("design:type",Object),_.h("design:paramtypes",[])],xh.prototype,"mixLongByLine",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xh.prototype,"playlistLoopStateEntityKey",null);
_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"onMouseEnter",null);_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"onMouseLeave",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xh.prototype,"showNextVideoHeader",null);
_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"onRenderStamperFinished",null);_.E([_.FI("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"collapseChanged",null);_.E([_.FI("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"hiddenChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"dataChanged",null);_.E([_.FI("playerState","miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"updateNowPlayingOverlay",null);_.E([_.km("yt-playlist-lockup-now-playing-active"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],xh.prototype,"onPlaylistLockupNowPlaying",null);
_.E([_.FI("data","isDarkTheme"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xh.prototype,"colorPaletteChanged",null);xh=_.E([_.m({is:"ytd-playlist-panel-renderer",disableElementRegistration:!0})],xh);
_.mt8=_.MH()(xh,"ytd-playlist-panel-renderer",function(){if(g2d===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);g2d=I}I=g2d;return I},{mode:2,
allowedProps:"autoplayData collapsed data hidden useColorPalette hideHeaderText withinMiniplayer metaPanel".split(" ")});var Zgb;var qP=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework");return I};
_.R(qP,_.q);qP.prototype.computeShouldButtonBeVertical=function(I,C){return I||C};
qP.prototype.onYtServiceRequestSent=function(I,C){(I=_.l(C.endpoint,_.Bp))&&(this.likeStatusEntityKey?this.ytdReduxBehavior.dispatch(_.wJ("likeStatusEntity",this.likeStatusEntityKey,{key:this.likeStatusEntityKey,likeStatus:I.status})):this.handleLikeEndpoint(I))};
qP.prototype.computelikeStatusEntityKey=function(I){return I==null?void 0:I.likeStatusEntityKey};
qP.prototype.handleLikeEndpoint=function(I){I.status==="LIKE"?this.JSC$14769_ytdDislikeToggleButtonRenderer.toggle(!1):I.status==="DISLIKE"?this.JSC$14769_ytdLikeToggleButtonRenderer.toggle(!1):(this.JSC$14769_ytdLikeToggleButtonRenderer.toggle(!1),this.JSC$14769_ytdDislikeToggleButtonRenderer.toggle(!1))};
_.H1.Object.defineProperties(qP.prototype,{likeButton:{configurable:!0,enumerable:!0,get:function(){var I;return nEF(this.data,!0,this.useShortsIcon?"SHORTS_LIKE":"LIKE",(I=this.likeStatusEntity)==null?void 0:I.likeStatus)}},
dislikeButton:{configurable:!0,enumerable:!0,get:function(){var I;return nEF(this.data,!1,this.useShortsIcon?"SHORTS_DISLIKE":"DISLIKE",(I=this.likeStatusEntity)==null?void 0:I.likeStatus)}}});
qP.prototype.onYtServiceRequestSent=qP.prototype.onYtServiceRequestSent;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],qP.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"vertical",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],qP.prototype,"textTransform",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"useShortsIcon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],qP.prototype,"underIconLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qP.prototype,"modern",void 0);_.E([_.d({value:"left"}),_.h("design:type",String)],qP.prototype,"buttonTooltipPosition",void 0);
_.E([_.d(),_.h("design:type",Object)],qP.prototype,"overrides",void 0);_.E([_.z$("#like-button"),_.h("design:type",Object)],qP.prototype,"JSC$14769_ytdLikeToggleButtonRenderer",void 0);_.E([_.z$("#dislike-button"),_.h("design:type",Object)],qP.prototype,"JSC$14769_ytdDislikeToggleButtonRenderer",void 0);_.E([_.v("data","likeStatusEntity.likeStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"likeButton",null);
_.E([_.v("data","likeStatusEntity.likeStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],qP.prototype,"dislikeButton",null);_.E([_.d({computed:"computelikeStatusEntityKey(data)"}),_.h("design:type",String)],qP.prototype,"likeStatusEntityKey",void 0);_.E([_.d({selectorArgs:["likeStatusEntityKey"],selector:$s}),_.h("design:type",Object)],qP.prototype,"likeStatusEntity",void 0);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],qP.prototype,"onYtServiceRequestSent",null);qP=_.E([_.m({disableElementRegistration:!0,is:"ytd-like-button-renderer"})],qP);
var BN0=_.MH()(qP,"ytd-like-button-renderer",function(){if(Zgb===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-like-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<ytd-toggle-button-renderer id="like-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[likeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n<ytd-toggle-button-renderer id="dislike-button" button-tooltip-position="[[buttonTooltipPosition]]" data="[[dislikeButton]]" is-shorts="" overrides="[[overrides]]" vertically-aligned$="[[computeShouldButtonBeVertical(vertical, underIconLabel)]]" class="style-scope ytd-like-button-renderer">\n</ytd-toggle-button-renderer>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);Zgb=I}I=Zgb;return I},{mode:1});_.E2e={};
_.E2e.YtConditionalRendererBehavior=[_.M.YtRendererBehavior,{_noAccessors:!0,properties:{hidden:{type:Boolean,reflectToAttribute:!0},showSpinner:{type:Boolean,reflectToAttribute:!0}},observers:["updateProperties_(data, isAttached)"],updateProperties_:function(I,C){var y=this,k,F;return _.e(function(z){switch(z.nextAddress){case 1:if(!C)return y.hidden=!0,y.showSpinner=!1,z.return();if((k=I)==null?0:(F=k.visibilityCondition)==null?0:F.mode)switch(I.visibilityCondition.mode){case "VISIBILITY_CONDITION_MODE_DISPLAY_SPINNER":return z.jumpTo(5);default:return z.jumpTo(6)}y.showSpinner=
!1;y.hidden=!0;return _.n(z,y.shouldShow_(I),4);case 4:y.hidden=!z.yieldResult;z.jumpTo(0);break;case 5:return _.n(z,y.shouldShow_(I),8);case 8:y.showSpinner=z.yieldResult;y.hidden=!1;z.jumpTo(0);break;case 6:return y.showSpinner=!1,_.n(z,y.shouldShow_(I),9);case 9:y.hidden=!z.yieldResult,_.oI(z)}})},
shouldShow_:function(I){return I&&I.supportedDatas&&I.supportedDatas.rendererVisibilityConditionData&&I.supportedDatas.rendererVisibilityConditionData.showIf?this.isVisibilityConditionSatisfied_(I.supportedDatas.rendererVisibilityConditionData.showIf):I&&I.visibilityCondition&&I.visibilityCondition.showIf?this.isVisibilityConditionSatisfied_(I.visibilityCondition.showIf):I&&I.visibilityConditionType?this.isLegacyVisibilityConditionSatisfied_(I.visibilityConditionType):Promise.resolve(!0)},
isVisibilityConditionSatisfied_:function(I){switch(I){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(I){switch(I){case "MDX_CONNECTED":return Promise.resolve(this.isMdxConnected_());default:return Promise.resolve(!1)}},
isMdxConnected_:function(){var I=_.Fe(this.hostElement,"yt-get-mdx-status");return I.length==1&&I[0].connected},
isLocationPermissionGranted_:function(){var I;return _.e(function(C){return C.nextAddress==1?navigator.permissions?_.n(C,navigator.permissions.query({name:"geolocation"}),3):C.jumpTo(2):C.nextAddress!=2?(I=C.yieldResult,C.return(Promise.resolve(I.state==="granted"))):C.return(Promise.resolve(!1))})}}];var hLm=function(I,C){C=C===void 0?{}:C;return function(y){var k=document.createElement(I),F;var z=(F=k.polymerController)!=null?F:k;Hc9(k,z,y,C);return k}}("yt-icon");var Utb=function(I){var C=this;this.eventJobIds={};this.scrollEventsToIgnore=0;this.stopIgnoringScrollTimeoutIds=[];AGO();_.U8("ytglobal.ytUtilActivityCallback_",function(){_.uW(I,"yt-user-activity")});
new My(function(){return C.JSC$14781_onMouseMove});
document.addEventListener("scroll",function(){return C.onScroll});
window.addEventListener("resize",function(){return C.onResize})},Hgm=function(I,C,y){C in I.eventJobIds||(y=_.R7().addLowPriorityJob(function(){_.I0();
delete I.eventJobIds[C]},y),I.eventJobIds[C]=y)};
Utb.prototype.onScroll=function(I){this.scrollEventsToIgnore>0?(this.scrollEventsToIgnore--,clearTimeout(this.stopIgnoringScrollTimeoutIds.pop())):I.target===document&&Hgm(this,"scroll",200)};
Utb.prototype.onResize=function(){Hgm(this,"resize",200)};
Utb.prototype.JSC$14781_onMouseMove=function(){Hgm(this,"mousemove",100)};
_.XZ8=function(I){I.scrollEventsToIgnore+=1;I.stopIgnoringScrollTimeoutIds.push(setTimeout(function(){I.scrollEventsToIgnore--},500))};var tUq=function(I){this.element=I;this.productData={};this.chatSupportLoaded=!1;document.body.addEventListener("yt-page-data-updated",this.resetProductData)};
tUq.prototype.showFeedbackDialog=function(I,C,y,k){var F=Jtd();if(!F)return!1;var z=R6K();z.productId=F;C&&(z.flow="submit",z.report={description:C});y&&(Jtd()==="59"?z.callback=_.W5(function(){_.b2("userFeedbackEvent",{});y()}):z.callback=_.W5(y));
z.bucket=k||_.Aq("GOOGLE_FEEDBACK_BUCKET","Other");Ogu(z);I=a3w(this,"GFEEDBACK",I);try{_.NdP(z,I)}catch(c){return _.v5(c),!1}return!0};
tUq.prototype.showHelpDialog=function(I,C,y){var k=this,F=Jtd();if(!F)return!1;var z={helpCenterPath:"/youtube",productData:a3w(this,"GUIDED_HELP",y)};Ogu(z);var c=R6K();c.context=I||z.productData.context||"default";c.defaultHelpArticleId=C;c.enableSendFeedback=!0;(_.d5("gapi.load")||function(r,w){return w()})("client",function(){try{var r=uBc(F,z);
if(_.V("web_always_load_chat_support")&&!k.chatSupportLoaded)try{r.JSC$7847_loadChatSupport(c),k.chatSupportLoaded=!0}catch(w){}r.startHelp(c)}catch(w){_.v5(w)}})};
var Jtd=function(){var I=_.Aq("GOOGLE_FEEDBACK_PRODUCT_ID");I||_.v5(Error("di"));return I},Ogu=function(I){I&&(I.locale=_.V("kevlar_help_use_locale")?_.Aq("INNERTUBE_CONTEXT_HL","en"):_.Aq("HTML_LANG","en"))},a3w=function(I,C,y){var k=I.productData;
delete k.origin;k.device=_.wH();var F;a:{if(F=document.createElement("canvas")){var z=F.getContext("experimental-webgl",{stencil:!0});if(z){var c=z.getExtension("WEBGL_debug_renderer_info");if(c){F=z.getParameter(c.UNMASKED_RENDERER_WEBGL);break a}}if(z=F.getContext("webgl")){F=z.getParameter(z.RENDERER);break a}}F=null}k.gpu=F;k.isSDC=!!_.Aq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT");(F=_.Aq("GOOGLE_FEEDBACK_PRODUCT_DATA"))&&_.Le.extend(k,F);_.XtI(C,k);_.$4z(k);(I=_.uW(I.element,"yt-get-autonav-pause-debug-state"))&&
I.length&&(k.autonav_pause_state=I[0]);I=_.kF();k.browser_resolution=I.width+"\u00d7"+I.height+"@"+(window.devicePixelRatio||1)+"x";y&&_.Le.extend(k,y);return k};
tUq.prototype.resetProductData=function(){this.productData={}};var MUq=function(I){this.feedbackManager=new tUq(I)};
MUq.prototype.showFeedbackDialog=function(I,C,y,k){return this.feedbackManager.showFeedbackDialog(I,C,y,k)};
MUq.prototype.showHelpDialog=function(I,C,y){return this.feedbackManager.showHelpDialog(I,C,y)};var IUw=function(){this.baseUrl="";this.aTag=document.createElement("a")},vh0=function(I,C,y){y=y===void 0?{}:y;
y.pbj||(y.pbj=1);y=_.p9K(C,y);I.baseUrl&&y&&!_.U3(y)[1]&&!_.H5(y)&&(C=I.baseUrl,zI(C,"/")&&(C=C.slice(0,-1)),_.FO(y,"/")&&(y=y.slice(1)),y=C+"/"+y);pa(I.aTag,cn(y||""));return I.aTag.href};
IUw.prototype.fetchData=function(I){return _.ptz(I)};
IUw.prototype.postData=function(I,C){var y={method:"POST"};if(C){for(var k=_.T(Object.keys(C)),F=k.next();!F.done;F=k.next()){F=F.value;var z=C[F];_.sw(z)&&(C[F]=JSON.stringify(z))}y.postParams=C}return _.ptz(I,y)};
_.W9m=function(I,C,y,k,F){I=vh0(I,C,y);if(!I)throw k=Error("ei"),Object.assign(k,{params:C}),k;return _.ptz(I,F,k)};
IUw.prototype.requestDataForServiceEndpoint=function(I,C){if(_.l(I,_.$Im))return this.fetchData("/getAccountSwitcherEndpoint");C=C||{};var y=_.l(I,Ao5);y?C.se=y.base64EncodedServiceEndpoint:C.sej=JSON.stringify(I);(y=_.Si())&&_.V("enable_service_ajax_csn")&&(C.csn=y);C.theme=_.fp();_.l(I,ljO)&&_.Aq("DELEGATION_CONTEXT")&&(C.delegation_context=JSON.stringify(_.Aq("DELEGATION_CONTEXT")));y=null;for(var k in I)if(zI(k,"Endpoint")||zI(k,"Command")){y=k;break}if(!y){var F=Error("fi");Object.assign(F,{params:I});
_.PUX(F,"WARNING");return new _.eN(function(c,r){r(F)})}k={name:y};
var z;(y=(z=_.l(I,_.w9))==null?void 0:z.signal)&&(k.signal=y);(z=_.B5(window.location.href))&&z.internalcountrycode&&(k.internalcountrycode=z.internalcountrycode);z="/service_ajax";_.V("debug_forward_web_query_parameters")&&(z=_.G2t(z,window.location.search));z=_.hq(z,k);I.clickTrackingParams&&_.aC(z,{itct:I.clickTrackingParams});return this.postData(z,C)};_.Cxb=new _.Jj("GFEEDBACK_TOKEN");var spe;var oce;var ylc;var kye;var m9=function(){var I=_.q.apply(this,arguments)||this;I.compact=!1;return I};
_.R(m9,_.q);m9.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
m9.prototype.computeHasIcon_=function(I){return!!I};
m9.prototype.isSignInIcon_=function(I){return I=="yt-icons:prompted_sign_in"};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],m9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],m9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.E2e.YtConditionalRendererBehavior),_.h("design:type",Object)],m9.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],m9.prototype,"data",void 0);
_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],m9.prototype,"icon_",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasIcon_(icon_)"}),_.h("design:type",Boolean)],m9.prototype,"hasIcon_",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isSignInIcon_(icon_)"}),_.h("design:type",Boolean)],m9.prototype,"signInIcon_",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],m9.prototype,"compact",void 0);
m9=_.E([_.lT({is:"yt-player-error-message-renderer",disableElementRegistration:!0})],m9);
_.Z(m9,"yt-player-error-message-renderer",function(){if(kye===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-player-error-message-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.player.yt_player_error_message_renderer.yt.player.error.message.renderer.css.js--\x3e<div id="player-error-message-container" hidden="[[showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <yt-icon id="icon" hidden="[[!icon_]]" icon="[[icon_]]" class="style-scope yt-player-error-message-renderer"></yt-icon>\n  <div id="info" class="style-scope yt-player-error-message-renderer">\n    <div id="reason" class="style-scope yt-player-error-message-renderer">[[getSimpleString(data.reason)]]</div>\n    <yt-formatted-string id="subreason" is-overlay="" text="[[data.subreason]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <yt-formatted-string id="more" is-overlay="" text="[[data.learnMore]]" class="style-scope yt-player-error-message-renderer"></yt-formatted-string>\n    <div id="buttons" class="style-scope yt-player-error-message-renderer">\n      <div id="dismiss-button" class="style-scope yt-player-error-message-renderer"></div>\n      <div id="button" class="style-scope yt-player-error-message-renderer"></div>\n    </div>\n  </div>\n</div>\n<div id="spinner" hidden="[[!showSpinner]]" class="style-scope yt-player-error-message-renderer">\n  <tp-yt-paper-spinner-lite active="" class="style-scope yt-player-error-message-renderer"></tp-yt-paper-spinner-lite>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;ylc===void 0&&(ylc=document.createElement("template"));var k=ylc;y.call(C,k.content.cloneNode(!0),I.content.firstChild);kye=I}I=kye;return I},{mode:2});var Fv8;var u75;var Zr=function(){return _.q.apply(this,arguments)||this};
_.R(Zr,_.q);Zr.prototype.configureRendererStamper=function(){return{"data.proceedButton":{id:"button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Zr.prototype.computeIcon_=function(I){return I?"yt-icons:"+I.iconType.toLowerCase():"error_outline"};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Zr.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Zr.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Zr.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],Zr.prototype,"icon_",void 0);Zr=_.E([_.lT({is:"yt-player-kav-renderer",disableElementRegistration:!0})],Zr);
_.Z(Zr,"yt-player-kav-renderer",function(){if(u75===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Fv8===void 0&&(Fv8=document.createElement("template"));var k=Fv8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);u75=I}I=u75;return I},{mode:2});_.B9(_.BO(function(I){var C=_.Es(),y=_.T(_.c4(0,void 0,"gCmSbf")),k=y.next().value,F=y.next().value;y=_.T(_.c4(null,void 0,"Rj9zMe"));var z=y.next().value,c=y.next().value;_.RU(function(){GCz(C.value,F,c);C.value.scrollIntoView()});
y=fPm.bind(null,I.data,k);J3("resize",function(){var r=z();if(k()===1&&r!==null){var w;(w=window.grecaptcha)==null||w.reset(r)}});
return _.P("yt-player-captcha-view-model",{class:"ytwPlayerCaptchaViewModelHost"},_.P("div",{class:"ytwPlayerCaptchaViewModelGridContainer"},_.P("span",{class:"ytwPlayerCaptchaViewModelScreenReaderOnly"},function(){var r,w;return(r=I.data().accessibility)==null?void 0:(w=r.accessibilityData)==null?void 0:w.label}),_.P(_.wh,{text:y,
className:_.sZ("ytwPlayerCaptchaViewModelUserMessage","ytwPlayerCaptchaViewModelGridItem"),isOverlay:!0}),_.P("div",{el:C,class:"ytwPlayerCaptchaViewModelGridItem"})))},"Rd"),"yt-player-captcha-view-model",{props:{data:_.Z_}});var Sxz=!1;_.zoe=_.BO(function(I){var C=I.data;return _.P("yt-interstitial-view-model",{class:"interstitial-view-model-wiz"},_.P(_.Dx,{cond:function(){return C().icon},
then:function(y){return _.P("div",{class:"interstitial-view-model-wiz__interstitial-icon interstitial-view-model-wiz__flex-item"},_.P(_.x$,{data:y,alt:"",className:"interstitial-view-model-wiz__icon-image",preserveWidth:!0}))}}),_.P(_.Dx,{cond:function(){return C().title},
then:function(y){return _.P("div",{class:"interstitial-view-model-wiz__interstitial-title interstitial-view-model-wiz__flex-item"},_.P(_.wh,{text:y}))}}),_.P(_.Dx,{cond:function(){return C().description},
then:function(y){return _.P("div",{class:"interstitial-view-model-wiz__interstitial-description interstitial-view-model-wiz__flex-item"},_.P(_.wh,{text:y}))}}),_.P(_.lY,{data:function(){return C().primaryButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"interstitial-view-model-wiz__flex-item"})}}),_.P(_.lY,{data:function(){return C().secondaryButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"interstitial-view-model-wiz__flex-item"})}}))},"Sd");
_.zoe.idomCompat=!0;var Ttc=_.BO(function(I){var C=I.data;_.Ja();return _.P("yt-player-interstitial-renderer",{class:"player-interstitial-renderer-wiz"},_.P("div",{class:"player-interstitial-renderer-wiz__scrim"},_.P(_.lY,{data:function(){return C().content}},{interstitialViewModel:_.zoe})))},"Td");
Ttc.idomCompat=!0;_.B9(Ttc,"yt-player-interstitial-renderer",{props:{data:_.As}});var BT=function(){var I=_.q.apply(this,arguments)||this;I.noBackground=!1;I.compact=!1;I.actionMap={"yt-update-player-error-message-command":"onUpdatePlayerErrorMessageCommand_"};return I};
_.R(BT,_.q);BT.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"}}}};
BT.prototype.onUpdatePlayerErrorMessageCommand_=function(I){if(_.l(I,E1d)){var C;if(I=(C=_.l(I,E1d))==null?void 0:C.newPlayerErrorMessageRenderer)this.data=I}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],BT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],BT.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BT.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],BT.prototype,"status",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BT.prototype,"noBackground",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BT.prototype,"compact",void 0);BT=_.E([_.lT({is:"yt-playability-error-supported-renderers",disableElementRegistration:!0})],BT);
var cld=_.MH()(BT,"yt-playability-error-supported-renderers",function(){if(oce===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;spe===void 0&&(spe=document.createElement("template"));var k=spe;y.call(C,k.content.cloneNode(!0),I.content.firstChild);oce=I}I=oce;return I},{allowedProps:["compact",
"data","noBackground","status"],mode:2});var KEO=void 0,gEF=void 0;var d4O=new hC8;var cJ=new _.Jj("ENTITY_STATE_TOKEN"),ES=new _.Jj("PERSISTENT_ENTITY_STORE_ACCESSOR_TOKEN");var eoY=function(I){this.store=I;this.yIz=new _.tlY},BqH=function(I,C,y){var k,F;
if(!(F=((k=C.playabilityStatus)==null?void 0:k.status)!=="OK")){I=I.store;var z;F=C.offlineState&&((z=C.videoDetails)==null?0:z.videoId)?_.V("enable_pl_r_c_cd")?H69(I.getState().entities,C.videoDetails.videoId):!!ass(I.getState().entities,C.videoDetails.videoId):!1}if(F)return!0;F=Bv9(C);if(F===1){if(_.V("ab_v_vid_sig")){var c,r=(c=C.videoDetails)==null?void 0:c.videoId;if(!r||!y||r!==y){var w;C=new _.ph("282054944_vid",{q6b:y,jIy:(w=C.videoDetails)==null?void 0:w.videoId});_.GB(C)}}return!0}GZK=
0;var L,D;w=(r=C.auxiliaryUi)==null?void 0:(L=r.messageRenderers)==null?void 0:(D=L.bkaEnforcementMessageViewModel)==null?void 0:D.displayType;if(F!==3&&(w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"||w==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_POPUP"))return!0;w={reason:_.Cx(_.PQ("TRY_AGAIN_LATER",void 0,"Something went wrong. Please try again later.")),proceedButton:{buttonRenderer:_.V("ks_something_wrong_learn_more")?gPK("RELOAD_PAGE",153785):{style:"STYLE_OVERLAY",size:"SIZE_DEFAULT",
text:_.Cx(_.PQ("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:_.Cx("282054944")};rlu(C,{playerErrorMessageRenderer:w});return!1},E7m=function(I,C){if(H0X(C)){_.ef(1,!0);
var y=(y=H0X(C))&&_.AOm()?y:void 0;y?(rlu(C,{enforcementMessageViewModel:y}),I.yIz.increment("IN_PLAYER"),_.ef(5)):(I.yIz.increment("SKIP_DISPLAY"),_.ef(2))}},rlu=function(I,C){I.playabilityStatus=Object.assign({},I.playabilityStatus,{status:"ERROR",
errorScreen:C});I.videoDetails=void 0};
eoY.prototype.handleResponse=function(I,C){if(I.playabilityStatus){var y,k,F,z=(C==null?void 0:(y=C.innerTubeRequest)==null?void 0:y.videoId)||(C==null?void 0:(k=C.innerTubeRequest)==null?void 0:(F=k.playerRequest)==null?void 0:F.videoId);BqH(this,I,z)&&E7m(this,I)}};
eoY[tj]=[cJ];var m0m=new _.Jj("ADBLOCK_DETECTION_SERVICE_TOKEN");var I7=function(I){this.qS4=I};
I7.prototype.bindInnertubeChallengeFetcher=function(I){this.qS4.bicf(I)};
I7.prototype.registerChallengeFetchedCallback=function(I){this.qS4.bcr(I)};
I7.prototype.getLatestChallengeResponse=function(){return this.qS4.blc()};var PxP;_.hy=function(I,C,y){var k=this;this.network=I;this.options=C;this.networkStatusManager=y;this.rQ=null;if(C.useBotguardEverywhere){var F=new _.ug;this.rQ=F.promise;_.sF.ytAtRC&&_.LM(_.b$,function(){var z,c;return _.e(function(r){if(r.nextAddress==1){if(!_.sF.ytAtRC)return r.return();z=ilc(null);return _.n(r,k.yv(z),2)}c=r.yieldResult;_.sF.ytAtRC&&_.sF.ytAtRC(JSON.stringify(c));_.oI(r)})});
tq9().then(function(z){var c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return z.bindInnertubeChallengeFetcher(function(p){return k.yv(ilc(p))}),_.n(D,X2H(),2);
c=D.yieldResult;r=z.getLatestChallengeResponse();w=r.challenge;if(!w)throw Error("gi");L={challenge:w,iW:ME(w),uQ:c,bgChallenge:new Od};F.resolve(L);z.registerChallengeFetchedCallback(function(p){p=p.challenge;if(!p)throw Error("hi");p={challenge:p,iW:ME(p),uQ:c,bgChallenge:new Od};k.rQ=Promise.resolve(p)});
_.oI(D)})})}else C.preload&&wSe(this,new Promise(function(z){_.NU(_.b$,function(){z(ncd(k))},0)}))};
PxP=function(I){var C={preload:!0,useBotguardEverywhere:_.V("attmusi")},y=!1;if(typeof C==="boolean")var k={preload:C};else typeof C==="undefined"?k={preload:!0}:(k=C,y=!!C.sux);C=y?void 0:new _.mx;_.hy.instance=new _.hy(I,k,C);return _.hy.instance};
_.hy.prototype.kxb=function(){var I=this;return _.e(function(C){return C.nextAddress==1?_.n(C,Promise.race([I.rQ,null]),2):C.return(!!C.yieldResult)})};
_.hy.prototype.k3O=function(I,C,y){var k=this,F,z,c;return _.e(function(r){k.rQ===null&&wSe(k,ncd(k));F=!1;z={};c=function(){var w,L,D;return _.e(function(p){switch(p.nextAddress){case 1:return _.n(p,k.rQ,2);case 2:w=p.yieldResult;z.challenge=w.challenge;if(!w.uQ){"c1a"in w.iW&&(z.error="ATTESTATION_ERROR_VM_NOT_INITIALIZED");p.jumpTo(3);break}L=Object.assign({},{c:w.challenge,e:I},C);_.aM(p,4);F=!0;if(_.V("attbs")&&!_.V("attmusi")){D=_.ULu(w.uQ,{tY:L});p.jumpTo(6);break}return _.n(p,w.uQ.snapshot({tY:L}),
7);case 7:D=p.yieldResult;case 6:D?z.webResponse=D:z.error="ATTESTATION_ERROR_VM_NO_RESPONSE";_.dC(p,3);break;case 4:_.sj(p),z.error="ATTESTATION_ERROR_VM_INTERNAL_ERROR";case 3:if(I==="ENGAGEMENT_TYPE_PLAYBACK"){var Q=w.iW,X={};if(Q.c6a){var b=Number(_.Aq("DCLKSTAT",0));X.reportingStatus=String(Number(Q.c)^(isNaN(b)?0:b))}Q.c6b&&(X.broadSpectrumDetectionResult=String(Number(Q.c)^Number(_.Aq("CATSTAT",0))));z.adblockReporting=X}return p.return(z)}})};
return r.return(Promise.race([c(),Lvb(y,function(){var w=Object.assign({},z);F&&(w.error="ATTESTATION_ERROR_VM_TIMEOUT");return w})]))})};
var ilc=function(I){var C={engagementType:"ENGAGEMENT_TYPE_UNBOUND"};I&&(C.interpreterHash=I);return C},ncd=function(I,C){C=C===void 0?0:C;
var y,k,F,z,c,r,w,L,D,p,Q,X;return _.e(function(b){switch(b.nextAddress){case 1:y=ilc(t1e().zNs);if(_.V("att_fet_ks"))return _.aM(b,7),_.n(b,I.yv(y),9);_.aM(b,4);return _.n(b,Dp0(I,y),6);case 6:c=b.yieldResult;F=c.mDb;z=c.gWq;k=c;_.dC(b,3);break;case 4:return _.sj(b),_.SN(Error("ii`"+C)),pSP(I,864E5),b.return({challenge:"",iW:{},uQ:void 0,bgChallenge:void 0});case 9:k=b.yieldResult;if(!k)throw Error("ji");if(!k.challenge)throw Error("ki");F=k.challenge;z=ME(F);if("c1a"in z&&(!k.bgChallenge||!k.bgChallenge.program))throw Error("li");
_.dC(b,3);break;case 7:r=_.sj(b);_.SN(r);C++;if(C>=5)return _.SN(Error("ii`"+C)),pSP(I,864E5),b.return({challenge:"",iW:{},uQ:void 0,bgChallenge:void 0});w=1E3*Math.pow(2,C-1)+Math.random()*1E3;return b.return(new Promise(function(S){_.NU(_.b$,function(){S(ncd(I,C))},w)}));
case 3:L=H3m(z);pSP(I,L*1E3);D=void 0;if(!("c1a"in z&&k.bgChallenge)){b.jumpTo(10);break}p=U4K(k.bgChallenge);_.aM(b,11);return _.n(b,O1c(t1e(),p),13);case 13:_.dC(b,12);break;case 11:return Q=_.sj(b),_.SN(Q),b.return({challenge:F,iW:z,uQ:D,bgChallenge:p});case 12:return _.aM(b,14),D=new _.G9({challenge:p,zr:{sC:"aGIf"}}),_.n(b,D.dNI,16);case 16:_.dC(b,10);break;case 14:X=_.sj(b),_.SN(X),D=void 0;case 10:return b.return({challenge:F,iW:z,uQ:D,bgChallenge:p})}})};
_.hy.prototype.yv=function(I){var C=this,y;return _.e(function(k){y=C.networkStatusManager;if(!y||y.isNetworkAvailable())return k.return(C.network.yv(I));_.A7("att_pna",void 0,"attestation_challenge_fetch");return k.return(new Promise(function(F){y.listenOnce("publicytnetworkstatus-online",function(){C.network.yv(I).then(F)})}))})};
var Qpe=function(I){if(!I)throw Error("ji");if(!I.challenge)throw Error("ki");var C=I.challenge,y=ME(C);if("c1a"in y&&(!I.bgChallenge||!I.bgChallenge.program))throw Error("li");return Object.assign({},I,{mDb:C,gWq:y})},Dp0=function(I,C){var y,k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:y=void 0,k=0,F={};case 2:if(!(k<5)){r.jumpTo(4);break}if(!(k>0)){r.jumpTo(5);break}F.bmd=1E3*Math.pow(2,k-1)+Math.random()*1E3;return _.n(r,new Promise(function(w){return function(L){_.NU(_.b$,function(){L(void 0)},w.bmd)}}(F)),5);
case 5:return _.aM(r,7),_.n(r,I.yv(C),9);case 9:return z=r.yieldResult,r.return(Qpe(z));case 7:y=c=_.sj(r),c instanceof Error&&_.SN(c);case 8:k++;F={bmd:void 0};r.jumpTo(2);break;case 4:throw y;}})},wSe=function(I,C){I.rQ=C},Ntb=function(I){var C,y,k;
return _.e(function(F){if(F.nextAddress==1)return _.n(F,Promise.race([I.rQ,null]),2);C=F.yieldResult;var z=ncd(I);I.rQ=z;(y=C)==null||(k=y.uQ)==null||k.dispose();_.oI(F)})},pSP=function(I,C){var y=Date.now()+C,k=function(){var F;
return _.e(function(z){F=y-Date.now();return F<1E3?_.n(z,Ntb(I),0):(_.NU(_.b$,k,Math.min(F,6E4)),z.jumpTo(0))})};
k()},Lvb=function(I,C){return new Promise(function(y){_.NU(_.b$,function(){y(C())},I)})};var VQm=function(){};
VQm.prototype.processContext=function(I){var C=_.hy.instance;if(!C)return _.xf();var y=IOF(I);return y?new dO(C.k3O(y,aPX(I),500).then(function(k){var F;(I==null?0:(F=I.innerTubeRequest)==null?0:F.context)||(I.innerTubeRequest.context={});F=I.innerTubeRequest.context;F.request||(F.request={});F.request.attestationResponseData=k})):_.xf()};var jpc=function(I){this.innertubeTransportService=I};
jpc.prototype.yv=function(I){_.A7("att_fsr",void 0,"attestation_challenge_fetch");return _.b_(this.innertubeTransportService,I,_.tS(_.Ase)).then(function(C){_.A7("att_frr",void 0,"attestation_challenge_fetch");return C})};_.lUS=function(I){this.innertubeTransportService=I};var XSq=new _.Jj("ATTESTATION_ASYNC_CONTEXT_PROCESSOR");var $p8=function(){},blm=function(I,C,y,k,F){var z=_.Aq("YPC_MB_URL");
_.KK9(z).then(function(){RoP(z,I,C,y,k,F)})},RoP=function(I,C,y,k,F,z){try{var c=payments.business.integration,r=payments.business.integration.Style.create().withMaterialDesignStyle(),w=c.mashupMode.popup("purchaseManagerDivId").usingDraggableDialog().usingPreferredWidth(600);
_.V("enable_window_constrained_buy_flow_dialog")&&(w=w.usingPopupStyle("windowConstrained"));z&&(w=w.usingCloseCallback(z));var L=y?y:_.Aq("YPC_GB_LANGUAGE"),D=_.Aq("SESSION_INDEX");c.bootstrap.fromPaymentsUrl(I);c.bootstrap.asMashupMode(w).usingGaiaIndex(D).usingLocale(L).usingStyle(r).usingDefaultActivityStatusChangeHandler().inStandaloneContext(c.standaloneContextAuthId.forGaia()).purchaseManager(C,function(p){k&&k(p)}).load(void 0,F)}catch(p){throw F&&F(p),_.GB(p),p;
}};var YXb=new _.Jj("PURCHASE_MANAGER_TOKEN");var Gy5=function(){var I=this;this.videos=[];this.recommendedVideos=[];this.showRefreshPill=this.continuationsPresent=!1;this.clientHeight=window.innerHeight;this.TEST_ONLY={getVideos:function(){return I.videos},
getContinuationsPresent:function(){return I.continuationsPresent},
setVideos:function(C){I.videos=C},
getRecommendedVideos:function(){return I.recommendedVideos},
setRecommendedVideos:function(C){I.recommendedVideos=C}}};
Gy5.prototype.addVideos=function(I){I&&(this.videos=I.filter(function(C){return!!_.svz(C)}).map(function(C){var y=_.svz(C);
a:{var k;if(C.playlistVideoRenderer&&((k=C.playlistVideoRenderer)==null?0:k.voteSortTiebreaker))var F=C.playlistVideoRenderer.voteSortTiebreaker;else{if(_.l(C,sn)){var z;if(k=(F=_.l(C,sn))==null?void 0:(z=F.playlistItemData)==null?void 0:z.voteSortTiebreaker){F=k;break a}}F=""}}return{itemId:y,videoId:_.kaX(C),voteCount:_.FKm(C),voteSortTiebreaker:F}}),this.continuationsPresent=!!_.l(I[I.length-1],_.kH))};
var fU0=function(I,C){return I.videos.findIndex(function(y){return y.itemId===C})},SXw=function(I,C){return I.recommendedVideos.findIndex(function(y){return y.itemId===C})},Kv8=function(I){I={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:{simpleText:I}}}}};_.N().resolve(_.ID).resolveCommand(I)};var Alm=function(){Gy5.apply(this,arguments)};
_.R(Alm,Gy5);
var b3b=function(I,C,y,k){if(!I.parentElem)throw Error("qi");var F=fU0(I,C);F===-1&&(F=SXw(I,C),F=F!==-1?F+I.videos.length:-1);if(F===-1)throw Error("ri");var z=F>=I.videos.length?I.recommendedVideos[F-I.videos.length]:I.videos[F];z.voteCount=y;z.voteSortTiebreaker=Date.now().toString();F>=I.videos.length?I.recommendedVideos.splice(F-I.videos.length,1):I.videos.splice(F,1);var c=I.videos;for(var r=0,w=c.length-1;r<=w;){var L=Math.floor((r+w)/2);if(c[L].voteCount<z.voteCount)w=L-1;else if(c[L].voteCount>z.voteCount)r=
L+1;else{a:{var D=z.voteSortTiebreaker;var p=c[L].voteSortTiebreaker;if(D.length!==p.length)D=D.length>p.length;else{for(var Q=0;Q<D.length;Q++){var X=D.charCodeAt(Q),b=p.charCodeAt(Q);if(X>b){D=!0;break a}if(X<b)break}D=!1}}D?w=L-1:r=L+1}}c=r;if(c===-1)throw Error("si");I.videos.splice(c,0,z);F!==c&&gc5(I,F,c,C,y,k)},gc5=function(I,C,y,k,F,z){var c,r=(c=I.parentElem)==null?void 0:c.children,w=Math.min(C,y),L=Math.max(C,y);
if(r)for(c=w;c<=L;c++)r[c].style.viewTransitionName="item-"+String(c);document.startViewTransition(function(){if(I.parentElem){var D=I.parentElem.children;if(!(!D||C<0||C>=D.length||y<0||y>=D.length)){var p=D[C];if(p){p.remove();I.showRefreshPill=y>=I.videos.length-1&&I.continuationsPresent;if(!I.showRefreshPill){D=D[y]||null;var Q;(Q=I.parentElem)==null||Q.insertBefore(p,D)}_.k3(I.parentElem,"yt-update-video-data-voting-animation",{toIdx:y,itemId:k,newVoteCount:F,voteStatus:z,hideItem:I.showRefreshPill})}}}}).finished.then(function(){if(r)for(var D=
w;D<=L;D++)r[D].style.viewTransitionName="";
if(I.showRefreshPill)Kv8(_.PQ("VOTING_ANIMATION_CONTINUATION_TOAST_MESSAGE"));else{var p;if(p=D=(p=I.parentElem)==null?void 0:p.children[y])p=D.getBoundingClientRect(),D=p.bottom,p=!(p.top>=0&&D<=I.clientHeight);p&&(p=_.LA(C>y?"VOTING_ANIMATION_UP_TOAST_MESSAGE":"VOTING_ANIMATION_DOWN_TOAST_MESSAGE",Math.abs(C-y)),Kv8(p))}})};var dpd=function(I,C){var y=this;I?this.innertubeTransportServicePromise=Promise.resolve(I):C&&(this.innertubeTransportServicePromise=C(),this.innertubeTransportServicePromise.catch(function(){}));
this.reportMiniAppValueRateLimiter=new Yh(3E3,function(k){return vcP(y,k)},0);
this.validateMiniAppVideoIdRateLimiter=new Yh(3E3,function(k){return WvS(y,k)},1)},NNw=function(I,C){I.JSC$14895_miniAppId=C;
I.reportMiniAppValueRateLimiter=new Yh(3E3,function(y){return vcP(I,y)},0);
I.validateMiniAppVideoIdRateLimiter=new Yh(3E3,function(y){return WvS(I,y)},1)},j2m=function(I,C){var y;
return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.reportMiniAppValueRateLimiter.call(C),2);y=k.yieldResult;return k.return([y,C])})},vcP=function(I,C){var y,k,F,z,c,r,w;
return _.e(function(L){switch(L.nextAddress){case 1:return _.n(L,I.innertubeTransportServicePromise,2);case 2:return y=L.yieldResult,k=_.tS(mFS),F=Date.now(),z={externalPostId:I.JSC$14895_miniAppId,userStatValue:{statKey:"high_score",timestamp:{seconds:""+Math.floor(F/1E3),nanos:Math.round(F%1E3*1E6)},intValue:""+C}},_.aM(L,3),_.n(L,_.b_(y,z,k),5);case 5:c=L.yieldResult;_.dC(L,4);break;case 3:throw r=_.sj(L),r;case 4:if(c){if("error"in c&&c.error)throw c.error;if(c.errorMetadata)throw Error("ti`"+
c.errorMetadata.status);if(w=c.userStatResult)return L.return(w);throw Error("ui");}throw Error("vi");}})},XMc=function(I){var C,y,k,F,z;
_.e(function(c){switch(c.nextAddress){case 1:return _.n(c,I.innertubeTransportServicePromise,2);case 2:return C=c.yieldResult,y=_.tS(mFS),k={externalPostId:I.JSC$14895_miniAppId,userSettingsUpdate:{isAllowNetworkAcked:!0}},_.aM(c,3),_.n(c,_.b_(C,k,y),5);case 5:F=c.yieldResult;_.dC(c,4);break;case 3:throw z=_.sj(c),z;case 4:if(F==null)throw Error("vi");if("error"in F&&F.error)throw F.error;if(F.errorMetadata)throw Error("ti`"+F.errorMetadata.status);_.oI(c)}})};
dpd.prototype.flush=function(){var I=this;return _.e(function(C){return C.nextAddress==1?_.n(C,I.reportMiniAppValueRateLimiter.flush(),2):_.n(C,I.validateMiniAppVideoIdRateLimiter.flush(),0)})};
var l3u=function(I,C){return _.e(function(y){return y.nextAddress==1?_.n(y,I.validateMiniAppVideoIdRateLimiter.call(C),2):y.return(y.yieldResult)})},WvS=function(I,C){var y,k,F,z,c,r;
return _.e(function(w){switch(w.nextAddress){case 1:return _.n(w,I.innertubeTransportServicePromise,2);case 2:return y=w.yieldResult,k=_.tS(Kkc),F={videoId:C},_.aM(w,3),_.n(w,_.b_(y,F,k),5);case 5:z=w.yieldResult;_.dC(w,4);break;case 3:throw c=_.sj(w),c;case 4:if(z){if("error"in z&&z.error)throw z.error;if(z.errorMetadata)throw Error("ti`"+z.errorMetadata.status);if(r=z.playabilityStatus)return w.return(r.status);throw Error("wi");}throw Error("vi");}})};
dpd[tj]=[_.aU(_.Q0),_.aU(TFS)];var xpw=function(){this.clientData=new Map};
xpw.prototype.getData=function(I){return this.clientData.get(I)};var qXP=function(I){this.store=I};
qXP.prototype.handleResponse=function(I){(I=_.l(I.frameworkUpdates,dh))&&_.nx(I,this.store)};
qXP[tj]=[_.VL];var mpd=new _.Jj("ENTITIES_RESPONSE_PROCESSOR_TOKEN");var Zlc={account_advanced:[[0,1,155]],account_box:[[0,1,24],[1,1,24]],account_notifications:[[0,1,155]],account_playback:[[0,1,155]],account_privacy:[[0,1,155]],account_settings:[[0,1,155]],account_sharing:[[0,1,155]],admin_panel_settings:[[1,1,24]],ameba:[[0,1,60]],"arrow-back":[[1,1,24,!0]],"arrow-forward":[[1,1,24,!0]],arrow_drop_down:[[1,1,24]],arrow_drop_up:[[1,1,24]],artwork:[[0,1,140]],bebo:[[0,1,60]],blogger:[[0,1,60]],chrome_icon:[[0,1,192]],collections:[[0,1,24]],countdown_to_close:[[0,
1,100]],countdown_to_close_digit:[[0,1,100]],creation_post:[[0,1,24],[1,1,24]],creator_studio_red_logo:[[0,2,24]],cyworld:[[0,1,60]],dark_theme:[[0,1,24],[1,1,24]],digg:[[0,1,60]],email:[[0,1,60]],embed:[[0,1,60]],emoji_activities:[[0,1,24]],emoji_food:[[0,1,24]],emoji_nature:[[0,1,24]],emoji_symbols:[[0,1,24]],emoji_travel:[[0,1,24]],empty_search:[[0,1,230]],equalizer:[[0,1,24]],face_filled_happy:[[0,1,36]],face_filled_meh:[[0,1,36]],face_filled_sad:[[0,1,36]],face_filled_unhappy:[[0,1,36]],face_filled_very_happy:[[0,
1,36]],face_outlined_happy:[[1,1,36]],face_outlined_meh:[[1,1,36]],face_outlined_sad:[[1,1,36]],face_outlined_unhappy:[[1,1,36]],face_outlined_very_happy:[[1,1,36]],facebook:[[0,1,60]],fotka:[[0,1,60]],g_translate:[[1,1,24]],game_console_dpad:[[0,1,24]],game_console_face_buttons:[[0,1,24]],goo:[[0,1,60]],google:[[0,1,24]],hashtag_landing_page_empty:[[0,1,200]],hashtag_landing_page_empty_dark_mode:[[0,1,200]],hashtag_landing_page_error:[[0,1,300]],hashtag_landing_page_error_dark_mode:[[0,1,300]],hi5:[[0,
1,60]],kakao:[[0,1,60]],"keyboard-arrow-down":[[1,1,24]],"keyboard-arrow-up":[[1,1,24]],language:[[0,1,24],[1,1,24]],library_remove:[[1,1,24]],linkedin:[[0,1,60]],livejournal:[[0,1,60]],member:[[1,2,16]],meneame:[[0,1,60]],mixi:[[0,1,60]],moderator:[[1,1,16]],money_fill:[[0,3,24]],music:[[1,1,24]],myspace:[[0,1,60]],naver:[[0,1,60]],odnoklassniki:[[0,1,60]],offline_download:[[0,1,24]],offline_downloading_eighty:[[0,1,24]],offline_downloading_forty:[[0,1,24]],offline_downloading_sixty:[[0,1,24]],offline_downloading_spinner:[[0,
1,24]],offline_downloading_twenty:[[0,1,24]],offline_downloading_zero:[[0,1,24]],offline_no_content:[[0,1,192]],offline_pause:[[1,1,24]],offline_pin:[[0,1,24]],open_in_panel:[[0,1,24]],owner:[[1,1,16]],pinterest:[[0,1,60]],"play-arrow":[[0,1,24]],play_disabled:[[0,1,24]],premium:[[0,1,14]],premium_standalone:[[0,1,24]],premium_standalone_cairo:[[0,1,24]],"radio-button-unchecked":[[1,1,24]],rakuten:[[0,1,60]],reddit:[[0,2,192]],refresh:[[1,1,24]],schedule_fanzone:[[0,1,100]],screen_light:[[1,1,24]],
search_prominent:[[1,1,24]],"shorts-comment":[[0,2,32]],"shorts-dislike":[[0,2,32]],"shorts-like":[[0,2,32]],"shorts-pause":[[0,1,24]],"shorts-share":[[0,2,32]],skyblog:[[0,1,60]],skype:[[0,1,60]],sms:[[0,1,24]],sort:[[0,1,24]],spark:[[0,1,24],[1,1,24]],spark_search:[[0,1,24]],stumbleupon:[[0,1,60]],subdirectory_arrow_right:[[1,1,24]],tuenti:[[0,1,60]],tumblr:[[0,1,60]],twitter:[[0,3,192]],unplugged_logo:[[0,2,24]],verified:[[1,2,16]],vertical_align_top:[[1,1,24]],video_call:[[0,1,24]],view_list:[[0,
1,24]],view_module:[[0,1,24],[1,1,24]],vkontakte:[[0,1,60]],"volume-off":[[0,1,24]],"volume-up":[[0,1,24]],watermark:[[0,1,110]],waveform:[[1,1,24]],web_system_activity_dialog:[[0,1,60]],weibo:[[0,1,60]],whatsapp:[[0,1,60]],wykop:[[0,1,60]],yahoo:[[0,1,60]],yahoo_japan:[[0,1,192]],youtube_community_post:[[0,1,60]],youtube_community_repost:[[0,1,60]],youtube_kids_round:[[0,2,24]],youtube_logo:[[0,1,24]],youtube_music:[[0,2,24]],youtube_round:[[0,2,24]],youtube_shorts_brand_24:[[0,2,24]],youtube_shorts_fill_no_triangle_red_16:[[0,
1,16]],"yt-logo-red-updated":[[0,3,24]],"yt-logo-updated":[[0,3,24]]};var Btq=new _.Jj("ICON_SET_TOKEN"),Ecb=new _.Jj("ICON_URL_PROVIDER_TOKEN"),ho0=new _.Jj("PREFETCH_ICONS_TOKEN"),Upm=new _.Jj("ICON_MAP_FN_TOKEN");var US={},Hlw=(US.ACCESS_TIME="clock",US.ACCOUNT_BOX="person_account",US.ACCOUNT_BOX_CAIRO="person_account_cairo",US.ACCOUNT_CIRCLE="person_circle",US.ACCOUNT_CIRCLE_CAIRO="person_circle_cairo",US.ACCOUNT_LINKED="account_link_success",US.ACCOUNT_UNLINKED="account_link",US.ADD_FRIEND="people",US.ADD_TO_LIBRARY=yV("add"),US.ADD_TO_PLAYLIST="add",US.ADD_TO_QUEUE_TAIL="list_queue",US.ADD_TO_REMOTE_QUEUE="list_music",US.ADD_TO_WATCH_LATER="clock",US.ADD_VIDEO_LINK="film_strip_add",US.ALERT_WARN_RED="alert_triangle",
US.ARROW_BACK="arrow_left",US.ARROW_DIAGONAL_UP_RIGHT_FILLED="arrow_diagonal_up_right",US.ARROW_DROP_DOWN="chevron_down",US.ARROW_DROP_UP="chevron_up",US.ARROW_FORWARD="arrow_right",US.AUDIOTRACK="audio",US.AUTO_AWESOME="sparkle",US.AVATAR_ANONYMOUS="person_circle",US.AVATAR_LOGGED_OUT="person_circle",US.BACK="arrow_left",US.BAR_CHART="bar_graph",US.BLOCK="slash_circle_left",US.BLOCK_USER="slash_circle_left",US.BOOKMARK_BORDER="bookmark",US.BREAKING_NEWS_ALT_1="article_alert",US.BROADCAST_CAIRO="podcast_cairo",
US.BUG_REPORT="bug",US.CAMERA_ALT="camera",US.CAMPAIGN="megaphone",US.CANCEL="x_circle",US.CAPTIONS="closed_caption",US.CAST_OUTLINE="chromecast",US.CHANNEL_NOTIFICATION_PREFERENCE_OFF="bell",US.CHANNEL_NOTIFICATION_PREFERENCE_ON="bell_on",US.CHAT="message_bubble_left",US.CHAT_BUBBLE="message_bubble_empty",US.CHECK_BOX_OUTLINE_BLANK="box_empty",US.CHECK_CIRCLE_OUTLINE="check_circle",US.CHECK_CIRCLE_THICK="check_circle",US.CLARIFY="article_clarify",US.CLOSED_CAPTION_SELECTED="closed_caption",US.CLOSE=
"x_mark",US.CLOUD_UPLOAD="cloud_arrow_up",US.COLLAPSE="chevron_up",US.COLLAPSE_CAIRO="chevron_up_cairo",US.COLLECTION="layers",US.COLOR_LENS="palette",US.COMMENT="message_bubble_right",US.CONSENT_SHIELD="person_shield",US.CONTENT_CUT="scissors",US.CONTENT_CUT_CAIRO="scissors_cairo",US.COURSE=_.V("web_enable_course_icon_update")?"creator_academy":"lightbulb",US.COURSE_CAIRO=_.V("web_enable_course_icon_update")?"creator_academy_cairo":"lightbulb_cairo",US.CREATION_LIVE="radar_live",US.CREATION_UPLOAD=
"my_videos",US.CREATION_UPLOAD_RED="upload",US.CREATOR_STUDIO="youtube_studio",US.DELETE="trash_can",US.DELETE_SWEEP="trash_can",US.DESKTOP="laptop",US.DISLIKE="thumb_down",US.DISLIKE_SELECTED="thumb_down",US.DISMISSAL="x_mark",US.DISMISS_QUEUE="list_remove",US.DOWN_ARROW="arrow_down",US.DO_NOT_DISTURB="slash_circle_left",US.DRAFT="paper_corner_folded",US.DRAG_HANDLE="bars_2",US.EDIT="pencil",US.EMOJI="face_very_happy",US.EMOJI_FLAGS="flag",US.EMOJI_OBJECTS="lightbulb",US.EMOJI_PEOPLE="face_very_happy",
US.EMOJI_RECENT="clock",US.EMPTY_HEART="heart",US.EMPTY_LIKE="thumb_up",US.ERROR_BLACK="alert_circle",US.ERROR_OUTLINE="alert_circle",US.EXIT_APP="arrow_in",US.EXIT_TO_APP="arrow_in",US.EXPAND="chevron_down",US.EXPAND_ALL="chevron_expand",US.EXPAND_CAIRO="chevron_down_cairo",US.EXPAND_LESS="chevron_up",US.EXPAND_MORE="chevron_down",US.EXPLORE="compass",US.EXPLORE_DESTINATION="compass",US.EXTERNAL_LINK="open_new",US.FAB_UPLOAD="upload",US.FACE_HAPPY_OUTLINE="face_happy",US.FACT_CHECK="article_check",
US.FASHION_LOGO="fashion",US.FASHION_LOGO_CAIRO="fashion_cairo",US.FAVORITE="heart",US.FEEDBACK="message_bubble_alert",US.FEEDBACK_CAIRO="message_bubble_alert_cairo",US.FILL_ARROW_SOLID_DOWN_16="arrow_solid_down",US.FILL_ARROW_SOLID_UP_16="arrow_solid_up",US.FILL_DOLLAR_SIGN_HEART_12="dollar_sign_heart",US.FLAG="flag",US.FULL_HEART="heart",US.GAME_CONSOLE_DPAD="game_console_dpad",US.GAME_CONSOLE_FACE_BUTTONS="game_console_face_buttons",US.GAMING_LOGO="gaming",US.GAMING_LOGO_CAIRO="gaming_cairo",US.GO_TO_PAGE=
"arrow_right",US.GROUPS="people_group",US.HAPPY="face_happy",US.HEALTH_AND_SAFETY="shield_plus",US.HELP="question_circle",US.HELP_CAIRO="question_circle_cairo",US.HELP_OUTLINE="question_circle",US.HIDE="slash_circle_left",US.IMAGE="image",US.INFINITY_ICON="infinity",US.INFO="info_circle",US.INFO_OUTLINE="info_circle",US.INSERT_CHART_OUTLINED="bar_graph_box_vertical",US.INSERT_PHOTO="image",US.KEEP="pin",US.KEEP_OFF="pin_off",US.KEYBOARD="keyboard",US.KEYBOARD_ARROW_DOWN="chevron_down",US.KEYBOARD_ARROW_UP=
"chevron_up",US.KIDS_BLOCK="slash_circle_left",US.LANGUAGE="globe",US.LAUNCH="open_new",US.LEARNING="lightbulb",US.LEARNING_CAIRO="lightbulb_cairo",US.LIBRARY_ADD=yV("library_add"),US.LIBRARY_OUTLINE="library",US.LIBRARY_REMOVE=yV(),US.LIGHTBULB_SPARK_OUTLINE="lightbulb_spark",US.LIKES_PLAYLIST="thumb_up",US.LIKES_PLAYLIST_CAIRO="thumb_up_cairo",US.LIKE="thumb_up",US.LIKE_SELECTED="thumb_up",US.LIVE="radar_live",US.LIVE_CAIRO="radar_live_cairo",US.LIVE_UNLISTED="link",US.LOCATION_ON="location_point",
US.LOCATION_PIN="location_point",US.LOOP="arrow_repeat",US.LOOP_ACTIVE="arrow_repeat",US.LOOP_ONE="arrow_repeat_1",US.LOOP_ONE_ACTIVE="arrow_repeat_1",US.MEH="face_meh",US.MEMBERS_ONLY_MODE_OFF="message_bubble_left",US.MESSAGE="message_bubble_left",US.MICROPHONE_ON="mic",US.MIX="youtube_mix",US.MONETIZATION_ON="dollar_sign_circle",US.MONEY_FILL="dollar_sign_container",US.MONEY_FILL_JPY="yen_sign_container",US.MONEY_HEART="dollar_sign_heart",US.MORE_HORIZ="overflow_horizontal",US.MORE_VERT="overflow_vertical",
US.MUSIC="audio",US.MUSIC_CAIRO="audio_cairo",US.MUSIC_NOTE_SYMBOL="music",US.MUSIC_SHUFFLE="arrow_shuffle",US.MY_CHANNEL="person_circle",US.MY_LOCATION="location_point",US.NEWS_STORY="news",US.NEXT="chevron_right",US.NOTIFICATIONS="bell",US.NOTIFICATIONS_ACTIVE="bell_on",US.NOTIFICATIONS_CAIRO="bell_cairo",US.NOTIFICATIONS_DONE_CHECKMARK="check",US.NOTIFICATIONS_INBOX="bell",US.NOTIFICATIONS_NONE="bell",US.NOTIFICATIONS_OFF="bell_off",US.NOT_INTERESTED="slash_circle_left",US.OFFICIAL_ARTIST_BADGE=
"audio",US.OFFLINE_CLOUD="cloud_off",US.OFFLINE_DOWNLOAD="download",US.OFFLINE_DOWNLOAD_CAIRO="download_cairo",US.OFFLINE_PAUSE="pause",US.OPEN_IN_NEW="open_new",US.OUTLINE_ADJUST="adjust",US.OUTLINE_ARROW_SOLID_DOWN_16="arrow_solid_down",US.OUTLINE_ARROW_SOLID_UP_16="arrow_solid_up",US.OUTLINE_BAG="bag",US.OUTLINE_CLOCK_HALF_CIRCLE="clock_half_circle",US.OUTLINE_OVERFLOW_HORIZONTAL_32="overflow_horizontal",US.OUTLINE_OVERFLOW_VERTICAL="overflow_vertical",US.OUTLINE_YOUTUBE_IMPROVE_TV="youtube_improve_tv",
US.PAID="dollar_sign",US.PAUSE_OUTLINED="pause",US.PAYMENT="credit_card",US.PERSON_RADAR_FILLED="person_radar",US.PHONE_DOWNLOAD="mobile_download",US.PLAYABLES_LOGO="tic_tac_toe",US.PLAYABLES_LOGO_CAIRO="tic_tac_toe_cairo",US.PLAYLISTS="list_play_arrow",US.PLAYLISTS_CAIRO="list_play_arrow_cairo",US.PLAYLIST_ADD=yV("list_add"),US.PLAYLIST_ADD_CHECK=yV("list_check"),US.PLAY_ALL="play_arrow",US.PLAY_CIRCLE="play_arrow_circle",US.PLAY_OUTLINED="play_arrow_circle",US.PRIVACY_INFO="shield",US.PRIVACY_PRIVATE=
"lock",US.PRIVACY_PUBLIC="earth",US.PRIVACY_UNLISTED="link",US.PROMOTE="megaphone",US.PURCHASES="price_tag",US.PURCHASE_SUPER_CHAT="super_chat",US.PURCHASE_SUPER_STICKER="super_sticker",US.QUESTION_ANSWER="message_bubble_question",US.QUEUE_PLAY_LAST="list_queue_last",US.QUEUE_PLAY_NEXT="list_play_arrow",US.REMIX_FILLED="youtube_shorts_remix",US.REMOVE="bar_circle",US.REMOVE_CIRCLE="bar_circle",US.REMOVE_CIRCLE_OUTLINE="bar_circle",US.REMOVE_FROM_HISTORY="bar_circle",US.REMOVE_FROM_PLAYLIST="bar_circle",
US.REPLAY="arrow_circle",US.REPORT_PROBLEM="alert_triangle",US.SAD="face_sad",US.SAVE_PLAYLIST=yV("library_add"),US.SCHEDULE="clock",US.SCHOOL="creator_academy",US.SCREEN_FULLSCREEN="screen_full",US.SEARCH_HISTORY="arrow_time",US.SELL="price_tag",US.SETTINGS="gear",US.SETTINGS_CAIRO="gear_cairo",US.SETTINGS_LIGHT="gear",US.SETTINGS_MATERIAL="gear",US.SHARE_ARROW="share",US.SHIELD_WITH_AVATAR="person_shield",US.SHOPPING_BAG="bag",US.SHOPPING_BAG_CAIRO="bag_cairo",US.SHOPPING_CART="cart",US.SHORTS_COMMENT=
"youtube_shorts_message_bubble_right",US.SHORTS_DISLIKE="youtube_shorts_thumb_down",US.SHORTS_LIKE="youtube_shorts_thumb_up",US.SHORTS_SHARE="youtube_shorts_share",US.SHUFFLE="arrow_shuffle",US.SLOW_MODE_OFF="message_bubble_left",US.SOCIAL="people",US.SORT="menu_sort",US.SPARK_LIGHTBULB_OUTLINE="spark_lightbulb",US.SPEED_1X="1x",US.SPEED_1_POINT_2X="1_point_2x",US.SPEED_1_POINT_5X="1_point_5x",US.SPEED_1_POINT_8X="1_point_8x",US.SPEED_2X="2x",US.SPEED_POINT_2X="point_2x",US.SPEED_POINT_8X="point_8x",
US.SPONSORSHIP_STAR=_.V("web_sponsorship_star_icon_killswitch")?"memberships":"star_circle",US.STAFF_PICK="spotlight",US.START_DVR="add",US.STAR_BORDER="star",US.STAR_CIRCLE_RIBBON_OUTLINE="star_circle_ribbon",US.STICKER_EMOTICON="face_happy",US.STOP_DVR="stop",US.SUBSCRIBE="youtube_logo_icon",US.SUBSCRIBE_PLUS="add_cairo",US.SUBSCRIPTION_MANAGER="gear",US.SUPERVISOR_ACCOUNT="people",US.SWAP_HORIZ="arrow_swap_horizontal",US.SWITCH_ACCOUNTS="person_account",US.TAB_ACCOUNT="person",US.TAB_ACTIVITY=
"bell",US.TAB_EXPLORE="compass",US.TAB_HOME="home",US.TAB_HOME_CAIRO="home_cairo",US.TAB_INBOX="mail",US.TAB_LIKED="thumb_up",US.TAB_MUSIC_PREMIUM="youtube_music",US.TAB_SHORTS="youtube_shorts",US.TAB_SHORTS_CAIRO="youtube_shorts_cairo",US.TAB_SUBSCRIPTIONS="subscriptions",US.TAB_SUBSCRIPTIONS_CAIRO="subscriptions_cairo",US.TAB_TRENDING="fire",US.TIMER="stopwatch",US.TRENDING="fire",US.TRENDING_CAIRO="fire_cairo",US.TRENDING_UP="rating_up",US.TROPHY="trophy",US.TROPHY_CELEBRATIONS="fireworks",US.TUNE=
"adjust",US.UNBLOCK_USER="bar_circle",US.UNLIMITED="youtube_logo_icon",US.UNPLUGGED_LIVE_GUIDE="radar_live",US.UNPLUGGED_SPORTS="eye_off",US.UPLOADS="library",US.UP_ARROW="arrow_up",US.VERTICAL_ALIGN_BOTTOM="download",US.VERY_HAPPY="face_very_happy",US.VERY_SAD="face_very_sad",US.VIDEOS="play_arrow_circle",US.VIDEO_CALL="video_camera_add",US.VIDEO_LIBRARY_WHITE="library",US.VIDEO_YOUTUBE="youtube_logo_icon",US.VIEW_LIST="list_view",US.VIEW_LIST_CAIRO="list_view_cairo",US.VISIBILITY="eye",US.VISIBILITY_OFF=
"eye_off",US.VOLUME_MUTE="volume_off",US.VOLUME_UP="volume_on",US.WALLPAPER="image",US.WARNING="alert_triangle",US.WATCH_HISTORY="arrow_time",US.WATCH_HISTORY_CAIRO="arrow_time_cairo",US.WATCH_LATER="clock",US.WATCH_LATER_CAIRO="clock_cairo",US.WATCH_RELATED_MIX="youtube_mix",US.WHAT_TO_WATCH="home",US.YOUTUBE_MUSIC_MONOCHROME="youtube_music",US.YOUTUBE_MUSIC_MONOCHROME_CAIRO="youtube_music_cairo",US.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_RED_16="youtube_shorts_no_triangle",US.YOUTUBE_SHORTS_FILL_NO_TRIANGLE_WHITE_16=
"youtube_shorts_no_triangle",US.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",US.YT_OUTLINE_MUSIC_24="music",US);var tQc={},Jlw=(tQc.TAB_SHORTS="youtube_shorts",tQc.TAB_SHORTS_CAIRO="youtube_shorts",tQc.YOUTUBE_SHORTS_OUTLINE_24="youtube_shorts",tQc);var Olb={15:[[1,3,24]],"1_point_2x":[[1,1,24]],"1_point_5x":[[1,1,24]],"1_point_8x":[[1,1,24]],"1x":[[1,1,24]],"2_point_5x":[[1,1,24]],"2d":[[1,1,24]],"2x":[[1,3,24]],"3d":[[1,1,24]],"3x":[[1,3,24]],"4d":[[1,1,24]],"4k":[[0,2,24],[1,2,24]],60:[[1,3,24]],"8k":[[0,2,24],[1,2,24]],accessibility:[[1,2,24]],account_link:[[1,6,24]],account_link_error:[[1,5,24]],account_link_some:[[0,5,24]],account_link_success:[[0,5,24]],add:[[1,7,16],[1,7,24]],add_cairo:[[0,4,16],[0,4,24],[1,4,24]],add_circle:[[1,3,24],
[1,3,36]],add_half_circle:[[1,2,24]],adjust:[[0,6,24],[1,6,24]],airplane:[[0,2,24],[1,2,20],[1,2,24]],airplay:[[1,5,16],[1,5,24]],airplay_off:[[1,1,24]],album:[[0,4,24],[1,4,24]],alert_circle:[[0,7,24],[1,7,16],[1,7,24]],alert_triangle:[[0,6,12],[0,6,24],[1,6,24]],align_center:[[0,6,24],[1,6,24]],align_left:[[0,6,24],[1,6,24]],align_right:[[0,6,24],[1,6,24]],arrow_caps:[[0,2,24],[1,2,24]],arrow_circle:[[1,6,24],[1,6,48]],arrow_circle_dash:[[1,1,24]],arrow_circle_play:[[1,1,24],[1,1,36],[1,1,48]],
arrow_circle_right:[[0,3,24],[1,3,12],[1,3,16],[1,3,18],[1,3,24]],arrow_diagonal:[[1,5,24]],arrow_diagonal_down_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_diagonal_up_right:[[0,1,12],[0,1,16],[0,1,18],[0,1,24],[1,1,12],[1,1,16],[1,1,18],[1,1,24]],arrow_down:[[0,2,24],[1,2,24]],arrow_down_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrow_flip:[[1,8,16],[1,8,24]],arrow_flip_dollar_sign:[[1,1,24]],arrow_in:[[0,6,24],[1,6,24]],arrow_left:[[1,6,24,!0]],arrow_left_cairo:[[1,
2,24,!0]],arrow_merge:[[1,1,24]],arrow_out:[[0,1,24]],arrow_pause:[[1,1,24]],arrow_redo:[[1,1,24]],arrow_remix:[[1,1,24]],arrow_repeat:[[0,5,24],[1,5,24]],arrow_repeat_1:[[0,3,24],[1,3,24]],arrow_right:[[1,2,24,!0]],arrow_shuffle:[[0,5,24],[1,5,24]],arrow_skip_forward:[[0,1,24],[1,1,24]],arrow_solid_down:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_solid_up:[[0,1,16],[0,1,24],[1,1,16],[1,1,24]],arrow_split:[[0,2,24],[1,2,24]],arrow_swap_horizontal:[[0,3,24],[1,3,24]],arrow_time:[[0,8,24],[1,8,24]],
arrow_time_cairo:[[0,2,24],[1,2,24]],arrow_time_forward:[[1,1,24]],arrow_undo:[[1,1,24]],arrow_up:[[0,2,24],[1,2,24]],arrow_up_circle:[[0,2,12],[0,2,16],[0,2,18],[0,2,24]],arrows_alert:[[1,1,24]],article:[[1,2,24]],article_alert:[[1,2,24]],article_check:[[1,2,24]],article_clarify:[[1,2,24]],audio:[[0,7,12],[0,7,16],[0,7,24],[1,7,24]],audio_badge:[[0,1,12],[0,1,16],[0,1,24]],audio_cairo:[[0,2,24],[1,2,24]],audio_off:[[1,2,24]],audio_surround:[[0,1,24],[1,1,24]],background:[[1,1,24]],backspace:[[0,
3,24],[1,3,24]],bag:[[0,5,12],[0,5,18],[0,5,24],[1,5,18],[1,5,24]],bag_bookmark:[[1,1,24]],bag_cairo:[[0,2,24],[1,2,24]],bar_circle:[[1,4,24]],bar_graph:[[0,2,24],[1,2,24]],bar_graph_box_vertical:[[0,6,24],[1,6,24]],bar_horizontal:[[1,2,16],[1,2,24]],bars_2:[[1,9,16],[1,9,24]],bars_3:[[0,2,24],[1,2,24]],beaker:[[1,1,24]],bell:[[0,8,24],[1,8,24]],bell_cairo:[[0,3,24],[1,3,24]],bell_off:[[1,5,24]],bell_off_cairo:[[1,2,24]],bell_on:[[0,6,24]],bell_on_cairo:[[0,2,24]],blur:[[1,1,24]],book:[[1,1,24]],
bookmark:[[0,6,24],[1,6,24]],bookmark_cairo:[[0,2,24],[1,2,24]],box_3d:[[0,1,24],[1,1,24]],box_bar:[[0,3,24]],box_check:[[0,6,18],[0,6,24],[0,6,36],[1,6,24]],box_chevron_right:[[1,3,24]],box_dashed_triangle:[[1,3,24]],box_empty:[[1,5,24]],box_open_check:[[0,4,24],[1,4,16],[1,4,24]],box_pencil:[[1,3,16],[1,3,24]],box_placeholder_left:[[1,1,24]],box_search:[[1,1,24]],boxes_2:[[1,3,24]],briefcase:[[1,1,24]],briefcase_slash:[[0,1,24]],brightness:[[0,1,24],[1,1,24]],broadcast:[[0,3,24],[1,3,12],[1,3,16],
[1,3,18],[1,3,24],[1,3,48]],bug:[[0,1,24],[1,1,24]],business:[[1,2,24]],cable:[[1,1,24]],calculator:[[0,1,24],[1,1,24]],calendar:[[0,2,24],[1,2,24]],camera:[[0,7,24],[1,7,24]],camera_audio:[[1,4,24]],camera_effects:[[1,4,24]],camera_flip:[[1,3,24]],camera_hashtag:[[1,4,24]],camera_switch:[[0,1,24],[1,1,24]],card:[[0,2,12],[0,2,16],[0,2,24]],cart:[[0,2,24],[1,2,24]],cat:[[0,1,24],[1,1,24]],celebration:[[1,1,24]],check:[[0,9,12],[0,9,16],[0,9,24],[1,9,16],[1,9,24]],check_circle:[[0,8,18],[0,8,24],[1,
8,24]],check_double:[[1,1,24]],check_double_off:[[1,1,24]],chevron_collapse:[[1,2,24]],chevron_down:[[1,7,18],[1,7,24]],chevron_down_cairo:[[1,2,24]],chevron_down_circle:[[0,1,24]],chevron_expand:[[1,4,24]],chevron_first:[[1,1,24]],chevron_last:[[1,1,24]],chevron_left:[[1,8,16,!0],[1,8,18,!0],[1,8,24,!0]],chevron_left_circle:[[0,1,24]],chevron_left_ios:[[1,1,24]],chevron_left_ios_cairo:[[1,2,24]],chevron_right:[[0,5,16,!0],[0,5,18,!0],[0,5,24,!0],[1,5,16,!0],[1,5,18,!0],[1,5,24,!0]],chevron_right_cairo:[[1,
2,24]],chevron_right_circle:[[0,1,24]],chevron_right_ios:[[1,1,24]],chevron_up:[[1,7,16],[1,7,18],[1,7,24]],chevron_up_cairo:[[1,2,24]],chevron_up_circle:[[0,1,24]],chromecast:[[0,6,24],[1,6,24]],chromecast_animate_frame_1:[[1,5,24]],chromecast_animate_frame_2:[[1,5,24]],chromecast_animate_frame_3:[[1,5,24]],chromecast_cairo:[[0,2,24],[1,2,24]],chromecast_mobile:[[1,2,24],[1,2,36]],chromecast_waveform:[[1,1,24]],circle:[[0,5,24],[1,5,24]],circle_full:[[0,2,24]],circle_half_full:[[1,1,24]],circles_6:[[0,
1,24]],circles_overlap:[[0,1,24],[1,1,24]],circles_overlap_check:[[0,1,16],[0,1,24]],clapperboard:[[0,1,24],[1,1,24]],clapperboard_cairo:[[0,2,24],[1,2,24]],clock:[[0,7,24],[1,7,16],[1,7,24]],clock_arrows:[[1,1,24]],clock_arrows_alert:[[1,1,24]],clock_cairo:[[0,2,24],[1,2,24]],clock_half_circle:[[0,1,24],[1,1,24]],closed_caption:[[0,10,24],[1,10,24]],cloud:[[1,1,24]],cloud_arrow_down:[[1,2,24]],cloud_arrow_up:[[0,3,24],[1,3,24]],cloud_check:[[0,1,24],[1,1,24]],cloud_ellipsis:[[0,1,24],[1,1,24]],cloud_off:[[1,
2,24]],code:[[1,1,24]],compass:[[0,6,24],[1,6,24]],compass_cairo:[[0,1,24],[1,1,24]],controller:[[0,2,24],[1,2,24]],copy:[[1,2,24]],copyright:[[0,2,24],[1,2,24]],creator_academy:[[0,3,12],[0,3,16],[0,3,24],[1,3,24]],creator_academy_cairo:[[0,2,24],[1,2,24]],credit_card:[[1,2,24]],crop:[[1,2,16],[1,2,24]],crop_rotate:[[1,1,24]],crown:[[0,2,16],[0,2,24],[1,2,12],[1,2,16],[1,2,24]],curve_s:[[0,1,24]],dashboard_plus:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],die_3:[[0,5,24],[1,5,24]],directions:[[1,2,24]],
dogfood:[[1,1,24]],dollar_sign:[[0,7,24],[1,7,24]],dollar_sign_circle:[[0,8,16],[0,8,24],[1,8,16],[1,8,24]],dollar_sign_circle_pause:[[1,1,24]],dollar_sign_circle_plus:[[1,1,24]],dollar_sign_container:[[1,7,24]],dollar_sign_heart:[[0,20,12],[0,20,24],[1,20,16],[1,20,24]],dollar_sign_off:[[1,3,24]],download:[[0,9,24],[1,9,16],[1,9,24]],download_cairo:[[0,2,24],[1,2,24]],downloaded:[[0,7,24]],downloading:[[1,5,24]],downloading_0:[[1,5,24]],downloading_1:[[1,6,24]],downloading_2:[[1,6,24]],downloading_3:[[1,
6,24]],downloading_4:[[1,6,24]],downloading_5:[[1,7,24]],downloading_6:[[1,6,24]],drive_add:[[1,2,24]],earth:[[0,12,24],[1,12,16],[1,12,18],[1,12,24]],explicit:[[0,5,18],[0,5,24],[1,5,24]],eye:[[0,3,24],[1,3,24]],eye_off:[[1,4,24]],eyedropper:[[1,1,24]],face_arrows_diagonal:[[1,1,24]],face_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_image:[[1,1,24]],face_meh:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_meh_2:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_paintbrush:[[1,1,24]],face_sad:[[0,7,24],[0,
7,36],[1,7,24],[1,7,36]],face_unhappy:[[0,6,24],[0,6,36],[1,6,24],[1,6,36]],face_upset:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_happy:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],face_very_sad:[[0,7,24],[0,7,36],[1,7,24],[1,7,36]],fashion:[[0,2,24],[1,2,24]],fashion_cairo:[[0,2,24],[1,2,24]],fast_back:[[1,2,24]],fast_forward:[[0,3,24]],film_strip:[[0,4,24],[1,4,24]],film_strip_add:[[1,1,24]],filter_face:[[0,5,24],[1,5,24]],filter_photo:[[0,6,24],[1,6,24]],fire:[[0,9,12],[0,9,24],[1,9,16],[1,9,24]],
fire_cairo:[[0,2,24],[1,2,24]],fireworks:[[1,2,24]],flag:[[0,6,24],[1,6,24]],flag_cairo:[[0,2,24],[1,2,24]],flash_auto:[[0,1,24],[1,1,24]],flash_circle:[[0,3,18],[0,3,24],[1,3,24]],flash_off:[[0,5,24],[1,5,24]],flash_on:[[0,5,24],[1,5,24]],flip_horizontal:[[1,3,24]],flip_horizontal_dash:[[1,1,24]],flip_vertical_dash:[[1,1,24]],folder:[[0,2,16],[0,2,24],[1,2,24]],football:[[0,1,24],[1,1,24]],gaming:[[0,1,24],[1,1,24]],gaming_cairo:[[0,2,24],[1,2,24]],gear:[[0,6,24],[1,6,24]],gear_cairo:[[0,3,24],[1,
3,24]],ghost:[[1,3,24]],gif:[[1,1,24]],gift:[[0,1,24],[1,1,24]],globe:[[1,2,24]],glow:[[1,1,24]],google_lens:[[1,3,24]],greater_than_20:[[1,2,24]],grid_2x2:[[1,1,24]],grid_3_by_3:[[0,1,24],[1,1,24]],grid_asymmetrical:[[0,1,24],[1,1,24]],hand:[[1,1,24]],hand_long_press:[[0,3,24],[1,3,24]],hand_pinch_in:[[1,2,24]],hand_swipe_left:[[1,1,24]],hand_swipe_right:[[1,2,24]],hand_tap:[[0,2,24],[1,2,24]],hand_wave:[[1,1,24]],hands_heart:[[0,1,24],[1,1,24]],hashtag:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],hd:[[0,
6,24],[1,6,24]],headset:[[0,6,24],[1,6,24]],heart:[[0,15,13],[0,15,24],[1,15,16],[1,15,24]],heart_box:[[1,1,24]],heart_circle:[[1,1,16],[1,1,18],[1,1,20],[1,1,24]],heart_off:[[1,2,24]],hierarchy:[[0,2,24],[1,2,24]],highlights:[[1,1,24]],home:[[0,7,24],[1,7,24]],home_cairo:[[0,2,24],[1,2,24]],hourglass:[[1,1,16],[1,1,24]],image:[[0,6,24],[1,6,24]],image_add:[[1,2,24]],image_wallpaper:[[1,1,24]],incognito:[[0,7,24],[1,7,24]],incognito_cairo:[[0,2,24],[1,2,24]],infinite:[[0,2,24]],infinity:[[1,1,24]],
info_circle:[[1,8,16],[1,8,18],[1,8,20],[1,8,24]],journey:[[1,1,24]],key:[[1,4,24]],keyboard:[[0,2,24],[1,2,24]],label:[[0,2,24],[1,2,24]],laptop:[[1,2,24]],laptop_mobile:[[0,2,24],[1,2,24]],layers:[[0,1,24],[1,1,24]],leaf:[[1,1,24]],lens:[[1,1,24]],less_than_4:[[1,2,24]],library:[[0,6,24],[1,6,24]],library_add:[[1,7,16],[1,7,24]],library_image:[[1,1,24]],library_music:[[0,3,24],[1,3,24]],library_saved:[[0,6,24]],lightbulb:[[0,2,12],[0,2,24],[1,2,24]],lightbulb_cairo:[[0,2,24],[1,2,24]],lightbulb_spark:[[1,
2,24]],link:[[1,6,18],[1,6,24]],link_off:[[1,1,24]],list_add:[[1,5,24]],list_check:[[0,2,24]],list_music:[[1,3,24]],list_pencil:[[1,5,24]],list_play_arrow:[[0,8,24],[1,8,12],[1,8,24]],list_play_arrow_cairo:[[0,2,24],[1,2,24]],list_queue:[[1,1,24]],list_queue_last:[[0,3,24],[1,3,24]],list_queue_next:[[1,1,24]],list_remove:[[1,1,24]],list_view:[[1,2,24]],list_view_cairo:[[1,2,24]],live_mobile_landscape_orientation:[[1,1,24]],live_photo:[[1,1,24]],location_point:[[0,6,12],[0,6,24],[1,6,24]],location_point_off:[[1,
1,24]],lock:[[0,9,12],[0,9,24],[1,9,12],[1,9,16],[1,9,18],[1,9,24]],lock_open:[[1,2,24]],magic_wand:[[0,1,24],[1,1,24]],mail:[[0,6,24],[1,6,24]],map:[[1,2,24]],math_add:[[0,3,24]],math_and:[[0,3,24]],math_divide:[[0,3,24]],math_equals:[[0,3,24]],math_equals_slash:[[1,3,24]],math_greater_than:[[0,3,24]],math_greater_than_or_equal:[[1,1,24]],math_less_than:[[0,3,24]],math_less_than_or_equal:[[1,4,24]],math_multiply:[[0,3,24]],math_or:[[0,3,24]],math_percent:[[0,3,24]],math_subtract:[[0,3,24]],maximize_cairo:[[1,
1,24]],medal:[[1,1,24]],medal_star:[[1,1,24]],meet:[[1,1,24]],megaphone:[[0,2,24],[1,2,24]],memberships:[[0,6,12],[0,6,16],[0,6,18],[0,6,24],[1,6,24]],mention:[[1,3,16],[1,3,24]],menu_filter:[[0,1,24],[1,1,24]],menu_sort:[[1,4,24]],message_bubble_alert:[[0,6,24],[1,6,24]],message_bubble_alert_cairo:[[1,2,24]],message_bubble_empty:[[1,1,24]],message_bubble_gear:[[1,1,24]],message_bubble_left:[[0,1,24],[1,1,24]],message_bubble_left_boost:[[1,1,24]],message_bubble_overlap:[[0,7,24],[1,7,24]],message_bubble_question:[[0,
2,16],[0,2,24],[1,2,16],[1,2,24]],message_bubble_right:[[0,14,24],[0,14,32],[1,14,16],[1,14,24]],message_bubble_right_caption:[[1,1,24]],mic:[[0,8,24],[1,8,24]],mic_off:[[1,2,24]],miniplayer_exit:[[1,1,24]],mobile:[[0,3,24],[1,3,24]],mobile_check:[[1,1,24]],mobile_download:[[1,3,24]],mobile_landscape:[[1,1,24]],mobile_screen_horizontal:[[1,1,24]],mobile_screen_vertical:[[1,1,24]],money_hand:[[1,2,24]],monitor_display:[[0,4,16],[0,4,24],[1,4,16],[1,4,24]],monitor_display_off:[[1,1,24]],moon_z:[[0,
1,24],[1,1,24]],motion:[[1,1,24]],move:[[1,1,24]],music:[[0,6,24],[1,6,16],[1,6,18],[1,6,24]],music_off:[[1,3,24]],music_scissors:[[1,3,24]],music_shape:[[1,3,24]],music_video:[[1,3,24]],music_video_off:[[1,1,24]],my_videos:[[1,6,24]],my_videos_cairo:[[1,2,24]],news:[[0,2,24],[1,2,12],[1,2,24]],news_cairo:[[0,2,24],[1,2,24]],node_left:[[1,1,24]],node_right:[[1,1,24]],note_add:[[1,1,16],[1,1,24]],odometer:[[0,4,24],[1,4,24]],open_new:[[0,7,24],[1,7,12],[1,7,24]],overflow_horizontal:[[1,4,24],[1,4,
32]],overflow_vertical:[[1,10,24]],overflow_vertical_cairo:[[1,1,24]],paint_bucket:[[1,2,24]],palette:[[1,1,24]],panels:[[0,1,24],[1,1,24]],paper_corner_folded:[[0,2,24],[1,2,24]],paper_open_in_new:[[0,1,24],[1,1,24]],pause:[[0,6,24]],pause_circle:[[0,1,12],[0,1,16],[0,1,24]],pdf:[[1,1,24]],pencil:[[1,6,16],[1,6,24]],people:[[0,6,12],[0,6,24],[1,6,24]],people_2:[[0,1,24],[1,1,24]],people_group:[[0,4,24],[1,4,16],[1,4,24]],people_note:[[0,1,18],[0,1,24],[1,1,24]],person:[[0,5,12],[0,5,13],[0,5,16],
[0,5,24],[0,5,48],[1,5,13],[1,5,16],[1,5,24]],person_2:[[1,1,24]],person_account:[[1,6,24]],person_account_cairo:[[1,1,24]],person_add:[[1,5,24]],person_box:[[1,5,24]],person_circle:[[0,8,24],[1,8,24]],person_circle_cairo:[[0,2,24],[1,2,24]],person_circle_slash:[[1,1,24]],person_minus:[[0,1,24],[1,1,24]],person_music:[[0,4,24],[1,4,24]],person_radar:[[0,6,12],[0,6,24],[1,6,16],[1,6,24]],person_setting:[[1,6,24]],person_shield:[[1,6,24]],phone:[[0,1,24],[1,1,24]],picture_in_picture:[[0,1,24],[1,1,
24]],picture_in_picture_combine:[[1,1,24]],pin:[[0,5,12],[0,5,24],[1,5,16],[1,5,24]],pin_off:[[1,1,24]],play_arrow:[[0,7,24],[1,7,24]],play_arrow_circle:[[0,2,24],[1,2,24]],play_arrow_disabled:[[0,1,12],[0,1,24]],play_arrow_half_circle:[[0,5,24],[1,5,24]],podcast:[[0,2,24],[1,2,12],[1,2,16],[1,2,18],[1,2,24]],podcast_add:[[0,1,24],[1,1,24]],podcast_cairo:[[0,2,24],[1,2,24]],podcast_check:[[0,1,24]],point_2x:[[1,1,24]],point_3x:[[1,3,24]],point_5x:[[1,3,24]],point_8x:[[1,1,24]],poll:[[1,7,16],[1,7,
24],[1,7,40]],pound:[[1,3,24]],presentation:[[1,1,24]],presentation_remove:[[1,1,24]],price_tag:[[0,6,12],[0,6,24],[1,6,24]],price_tag_heart:[[1,1,24]],qr_code:[[1,2,24]],question_circle:[[1,5,24]],question_circle_cairo:[[1,2,24]],question_head:[[1,1,24]],quotation_mark:[[0,1,24],[1,1,24]],quotation_mark_off:[[1,1,24]],radar_live:[[0,7,24],[1,7,12],[1,7,16],[1,7,24]],radar_live_cairo:[[0,2,24],[1,2,24]],rating_down:[[1,1,24]],rating_up:[[1,7,12],[1,7,16],[1,7,24]],record:[[0,1,24]],remix:[[1,1,16],
[1,1,24]],replay_arrow:[[1,1,24]],rotate_90:[[1,1,24]],rotate_90_clockwise:[[1,2,24]],rss:[[1,1,16],[1,1,24]],rss_off:[[1,1,16],[1,1,24]],ruby:[[1,1,12],[1,1,16],[1,1,18],[1,1,24]],samples:[[0,1,24],[1,1,24]],saturation:[[1,1,24]],scale:[[1,3,24]],scissors:[[0,6,12],[0,6,24],[1,6,24]],scissors_cairo:[[0,2,24],[1,2,24]],scissors_cut:[[1,2,16],[1,2,24]],screen_default:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_full:[[1,7,24]],screen_full_exit:[[1,6,24]],screen_full_exit_cairo:[[1,1,24]],screen_fullscreen:[[0,
1,24],[0,1,48],[1,1,24],[1,1,48]],screen_light:[[1,1,24]],screen_mini_player:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_multi_view:[[0,3,24],[1,3,24]],screen_rotation:[[1,2,18],[1,2,24]],screen_switch:[[0,1,24],[1,1,24]],screen_theatre:[[0,1,24],[0,1,48],[1,1,24],[1,1,48]],screen_vertical:[[1,1,24]],screen_x:[[1,1,24]],sd:[[0,2,24],[1,2,24]],search:[[0,9,24],[1,9,24]],search_cairo:[[1,2,24]],search_superscript:[[1,1,24]],send:[[0,3,24,!0],[1,3,24,!0]],settings_remote:[[1,1,24]],shadow_hard:[[0,
1,24]],shadow_soft:[[0,1,24]],shapes:[[0,2,24],[1,2,24]],share:[[0,9,24,!0],[0,9,32,!0],[1,9,16,!0],[1,9,24,!0]],share_cairo:[[1,2,24]],share_ios:[[1,1,24]],share_link:[[0,1,24],[1,1,24]],shield:[[1,4,24]],shield_add:[[1,1,24]],shield_empty:[[0,1,16],[0,1,18],[0,1,24],[1,1,16],[1,1,18],[1,1,24]],shield_off:[[1,1,24]],shield_overflow:[[1,1,24]],shield_plus:[[1,1,24]],shield_search:[[1,2,24]],shorts_layout_bottom:[[1,1,24]],shorts_layout_centered_square:[[1,1,24]],shorts_layout_foreground:[[1,1,24]],
shorts_layout_landscape_bottom:[[1,1,24]],shorts_layout_landscape_top:[[1,1,24]],shorts_layout_left:[[1,1,24]],shorts_layout_pip:[[1,1,24]],shorts_layout_right:[[1,1,24]],shorts_layout_single:[[1,1,24]],shorts_layout_top:[[1,1,24]],skip_back_10:[[0,1,24]],skip_back_15:[[0,1,24]],skip_back_20:[[0,1,24]],skip_back_30:[[0,1,24]],skip_back_5:[[0,1,24]],skip_back_60:[[0,1,24]],skip_down:[[0,3,24]],skip_forward_10:[[0,1,24]],skip_forward_15:[[0,1,24]],skip_forward_20:[[0,1,24]],skip_forward_30:[[0,1,24]],
skip_forward_5:[[0,1,24]],skip_forward_60:[[0,1,24]],skip_next:[[0,3,24]],skip_previous:[[0,3,24]],skip_up:[[0,3,24]],slash_circle_left:[[1,7,24]],slash_circle_right:[[1,2,24]],soccer_ball:[[1,2,24]],soccer_card:[[0,2,12],[0,2,16],[0,2,24]],spacebar:[[1,1,24]],spark:[[0,6,12],[0,6,16],[0,6,24]],spark_chat:[[1,1,16],[1,1,24]],spark_image:[[1,2,24]],spark_lightbulb:[[0,2,24],[1,2,24]],spark_message_bubble:[[1,4,16],[1,4,24]],spark_message_bubble_left:[[1,1,24]],spark_music:[[1,2,24]],spark_pencil:[[1,
2,24]],spark_radar:[[0,1,12],[0,1,16],[0,1,24],[1,1,12],[1,1,16],[1,1,24]],spark_text:[[1,1,24]],spark_video:[[1,2,24]],sparkle:[[0,4,24],[1,4,24]],speaker:[[1,1,24]],speaker_group:[[1,1,24]],speaker_group_off:[[1,1,24]],speaker_headset:[[1,1,24]],speaker_off:[[1,1,24]],split:[[1,3,24]],sports:[[0,1,24]],spotlight:[[0,1,24],[1,1,24]],star:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],star_circle:[[0,1,12],[0,1,16],[0,1,18],[0,1,24]],star_circle_ribbon:[[0,1,16],[0,1,20],[0,1,24],[0,1,36],[1,1,16],[1,1,20],
[1,1,24],[1,1,36]],star_half:[[0,2,16],[0,2,24]],star_shooting:[[0,3,24],[1,3,24]],statistics_graph:[[1,2,24]],sticker:[[1,1,24]],stop:[[0,1,24]],stopwatch:[[0,3,16],[0,3,24],[1,3,16],[1,3,24]],stopwatch_10:[[0,1,24]],stopwatch_3:[[0,1,24]],subscriptions:[[0,8,24],[1,8,18],[1,8,24]],subscriptions_cairo:[[0,2,24],[1,2,24]],subtitles:[[0,2,12],[0,2,24],[1,2,24]],super_chat:[[1,6,18],[1,6,24]],super_sticker:[[0,6,16],[0,6,24],[1,6,16],[1,6,24]],super_store:[[1,1,24]],superstar:[[1,1,24]],tablet:[[1,
1,24]],target:[[0,1,24],[1,1,16],[1,1,24]],target_add:[[0,1,24],[1,1,16],[1,1,24]],template_add:[[1,2,16],[1,2,24]],template_play:[[0,1,24],[1,1,24]],text:[[0,8,24],[1,8,16],[1,8,24]],text_bold:[[1,1,24]],text_box:[[1,5,24]],text_italic:[[1,1,24]],text_outline:[[1,2,24]],text_preset:[[1,1,24]],text_serif:[[1,1,24]],text_shadow:[[1,2,24]],text_strikethrough:[[1,1,24]],text_underline:[[1,1,24]],theme_switch:[[0,1,24],[1,1,24]],thermometer:[[1,1,24]],thumb_down:[[0,19,16],[0,19,24],[0,19,36],[1,19,16],
[1,19,24],[1,19,36]],thumb_up:[[0,17,16],[0,17,24],[0,17,36],[1,17,16],[1,17,24],[1,17,36]],thumb_up_cairo:[[0,2,24],[1,2,24]],thumb_up_down:[[0,1,24],[1,1,24]],tic_tac_toe:[[0,4,12],[0,4,24],[1,4,16],[1,4,24]],tic_tac_toe_cairo:[[0,2,24],[1,2,24]],tilt:[[1,3,24]],time_stamp_plus:[[1,1,24]],timeline:[[1,2,24]],toolbox:[[1,2,24]],transcript:[[1,1,16],[1,1,24]],transcript_search:[[1,1,16],[1,1,24]],transition:[[0,3,24],[1,3,24]],translate:[[1,1,24]],trash_can:[[1,6,16],[1,6,24]],triangle_down:[[1,5,
24]],triangle_three_left:[[0,1,24]],triangle_three_right:[[0,1,24]],trophy:[[0,1,24],[1,1,24]],trophy_cairo:[[0,2,24],[1,2,24]],trophy_star:[[1,1,24]],truck:[[0,3,24],[1,3,24]],tv:[[0,5,12],[0,5,16],[0,5,24],[1,5,16],[1,5,24]],tv_arrow_left:[[1,1,24]],tv_circle:[[0,1,24],[1,1,24]],tv_dollar_sign:[[0,1,24],[1,1,24]],tv_off:[[1,2,24]],tv_queue:[[1,4,24]],tv_queue_chevron:[[1,2,24]],upload:[[1,4,24]],uploading:[[1,1,24]],variable:[[1,3,24]],verified_circle:[[1,4,24]],video_camera:[[0,7,24],[1,7,24]],
video_camera_add:[[1,1,24]],video_camera_off:[[1,1,24]],video_link:[[1,3,16],[1,3,24]],video_stitch:[[1,1,24]],volume_down:[[0,2,24],[1,2,24]],volume_fade:[[1,1,24]],volume_off:[[0,4,24],[1,4,24]],volume_on:[[0,3,24],[1,3,24]],volume_stable:[[0,1,24],[1,1,24]],vr:[[0,5,24],[1,5,24]],waveform:[[1,1,24]],waveform_music:[[0,2,18],[0,2,24],[0,2,48]],wrench:[[0,1,24],[1,1,24]],x:[[1,8,18],[1,8,24]],x_cairo:[[1,1,24]],x_circle:[[1,5,24]],x_mark:[[1,4,20],[1,4,24]],x_octagon:[[1,1,24]],yen_sign_container:[[0,
2,24],[1,2,24]],youtube_improve_tv:[[1,1,24]],youtube_kids:[[0,3,24],[1,3,24]],youtube_linked_tv:[[1,4,24]],youtube_logo_icon:[[0,6,24],[1,6,24]],youtube_mix:[[1,5,12],[1,5,16],[1,5,24]],youtube_music:[[0,5,24],[1,5,24]],youtube_music_cairo:[[1,2,24]],youtube_originals:[[0,6,24],[1,6,24]],youtube_shorts:[[0,10,12],[0,10,20],[0,10,24],[1,10,20],[1,10,24]],youtube_shorts_arrow_down:[[1,1,24]],youtube_shorts_arrow_left:[[1,2,24]],youtube_shorts_arrow_up:[[1,1,24]],youtube_shorts_cairo:[[0,2,24],[1,2,
24]],youtube_shorts_camera:[[1,3,24]],youtube_shorts_chevron_left_ios:[[1,2,24]],youtube_shorts_green_screen:[[0,1,24],[1,1,24]],youtube_shorts_heart:[[0,2,24],[0,2,32]],youtube_shorts_message_bubble_right:[[0,2,24],[0,2,32]],youtube_shorts_no_triangle:[[0,4,16],[0,4,24],[0,4,32],[1,4,16],[1,4,24],[1,4,32]],youtube_shorts_overflow_vertical:[[1,2,24]],youtube_shorts_plus:[[1,5,16],[1,5,24]],youtube_shorts_remix:[[0,2,24],[0,2,32]],youtube_shorts_search:[[1,3,24]],youtube_shorts_share:[[0,2,24],[0,
2,32]],youtube_shorts_sticker:[[1,1,18],[1,1,24]],youtube_shorts_thumb_down:[[0,2,24],[0,2,32]],youtube_shorts_thumb_up:[[0,2,24],[0,2,32]],youtube_shorts_waveform:[[1,2,18],[1,2,24]],youtube_studio:[[0,6,24],[1,6,24]],youtube_tv:[[0,6,24],[1,6,24]],zoom_auto:[[0,1,24],[1,1,24]]};var aUb={youtube_shorts:[[0,10,24],[1,10,24]]};var HT=function(I){this.iconUrlProvider=I};
HT.prototype.resolveIcon=function(I,C){var y=I.iconName;y=y.replace(/-/g,"_");I=Object.assign({},I,{iconName:this.mapIconTypeToStandardName(y)||y.toLowerCase()});if(_.V("enable_web_delhi_icons")){var k;return zIz(aUb,I,((k=this.iconUrlProvider)==null?void 0:k.getYtStandardUrl)||eI9,C)}var F;return zIz(Olb,I,((F=this.iconUrlProvider)==null?void 0:F.getYtStandardUrl)||cdK,C)};
HT.prototype.mapIconTypeToStandardName=function(I){return _.V("enable_web_delhi_icons")?Jlw[I.toUpperCase()]:Hlw[I.toUpperCase()]};
HT[tj]=[_.aU(Ecb)];var MQw=function(I){this.urlProvider=this.iconUrlProvider=I};
_.R(MQw,HT);
MQw.prototype.resolveIcon=function(I,C){I.iconName==="youtube_logo"&&(I.iconName="yt-logo-updated");if(I.iconName==="youtube_premium_logo"||I.iconName==="youtube_red_logo")I.iconName="yt-logo-red-updated";var y=Object.assign({},I);I.iconName==="menu"&&(y.iconName="bars_3",y.iconStyle="youtube_outline");I.iconName==="youtube_music"&&(y.iconStyle="youtube_fill");I.iconName==="mail"&&I.iconSetName==="socialNetworksRound"&&(y.iconName="email");I.iconName==="more"&&(y.iconName="overflow_horizontal");I.iconName===
"fullscreen"&&(y.iconName="screen_full");if(I.iconName==="play_all"||I.iconName==="play_arrow")y.iconStyle="youtube_fill";I.iconName==="premium_standalone"&&(y.iconName="premium_standalone_cairo");_.V("enable_connect_icon_update_web")&&I.iconName==="account_linked"&&(y.iconName="circles_overlap_check",y.iconStyle="youtube_fill");_.V("enable_connect_icon_update_web")&&I.iconName==="account_unlinked"&&(y.iconName="circles_overlap",y.iconStyle="youtube_outline");I=Object.assign({},y,{iconName:(HT.prototype.mapIconTypeToStandardName.call(this,
y.iconName)||y.iconName).toLowerCase()});var k;return(I=zIz(Zlc,I,((k=this.urlProvider)==null?void 0:k.getUrl)||rdH,C))?I:HT.prototype.resolveIcon.call(this,y,C)};
MQw[tj]=[_.aU(Ecb)];_.IMu=1;var ty=function(){};
_.R(ty,l1);ty.prototype.resolveCommand=function(I){var C,y;return _.e(function(k){C=_.l(I,A0d);if(!C)return k.return();y=Number(C.enableDelayedPacfLoggingTvMs);if(isNaN(y)){var F=Op();gJY(F,C,0)}else gJY(Op(),C,y);_.oI(k)})};_.Jy=function(){};
_.R(_.Jy,l1);
_.Jy.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L;return _.e(function(D){k=_.l(I,gCc);z=(F=C.form)==null?void 0:F.element;r=(c=z)==null?void 0:c.closest("ytd-enforcement-message-view-model");if(!k||!r)return D.return();y.allowAdsAction||(w=k.fundingChoiceInstructionPageUrl,y.allowAdsAction=new Te0(window,_.YV(w)));var p=y.allowAdsAction;p.wallElement=r;p.allowAdsPopup.style.setProperty("display","flex","important");var Q=p.scrollManager;Q.originalBodyOverflow=Q.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow;Q.JSC$7873_domHelper.JSC$7241_document_.body.style.overflow=
"hidden";p.wallElement.style.setProperty("display","none","important");NQc(p.accessibilityManager,p.allowAdsPopup.querySelector(".fc-whitelist-dialog"));if((L=y.allowAdsAction.allowAdsPopup)&&L instanceof HTMLElement)for(p=_.T(Object.entries({position:"absolute","z-index":"10000",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),Q=p.next();!Q.done;Q=p.next()){var X=_.T(Q.value);Q=X.next().value;X=X.next().value;L.style.setProperty(Q,X)}_.oI(D)})};
_.Jy.prototype.dispose=function(){this.allowAdsAction&&(this.allowAdsAction.tearDown(),this.allowAdsAction=void 0)};var OS=function(){};
_.R(OS,l1);OS.prototype.resolveCommand=function(I){var C;return _.e(function(y){C=_.l(I,BOS);if(!C)return y.return();SR9(I);_.oI(y)})};var af=function(I){this.JSC$14935_commandHandler=I};
_.R(af,l1);
af.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1){y=_.l(I,n1m);if((k=y)==null||!k.text||!navigator.clipboard)return D.return();_.aM(D,2);return _.n(D,navigator.clipboard.writeText(y.text),4)}if(D.nextAddress!=2){if(!y.successActions||y.successActions.length===0)return D.return();F=_.T(y.successActions);for(z=F.next();!z.done;z=F.next())c=z.value,C.JSC$14935_commandHandler.resolveCommand(c);return _.dC(D,0)}_.sj(D);if(!y.failureActions||y.failureActions.length===
0)return D.return();r=_.T(y.failureActions);for(w=r.next();!w.done;w=r.next())L=w.value,C.JSC$14935_commandHandler.resolveCommand(L);_.oI(D)})};
af[tj]=[_.ID];var MP=function(I){this.JSC$14939_commandHandler=I};
_.R(MP,l1);
MP.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q;return _.e(function(X){switch(X.nextAddress){case 1:k=_.l(I,OZd);if(!k)return X.return();_.aM(X,2);if(!k.imageBytes&&!k.imageUrl)throw Error("xi");if(!k.imageUrl){if(k.imageBytes){z=k.imageBytes;c=z.replace(/-/g,"+").replace(/_/g,"/");var b=wcm(c);F=_.ii(b)}X.jumpTo(4);break}return _.n(X,fetch(k.imageUrl),5);case 5:return r=X.yieldResult,_.n(X,r.blob(),6);case 6:w=X.yieldResult,F=_.ii(w);case 4:p=(L=C)==null?void 0:(D=L.form)==
null?void 0:D.element;Q=document.createElement("a");pa(Q,F);p.appendChild(Q);Q.download="";Q.click();p.removeChild(Q);URL.revokeObjectURL(_.zK(F));k.successCommand&&y.JSC$14939_commandHandler.resolveCommand(k.successCommand);_.dC(X,0);break;case 2:_.sj(X),k.errorCommand&&y.JSC$14939_commandHandler.resolveCommand(k.errorCommand),_.oI(X)}})};
MP[tj]=[_.ID];var IP=function(I){this.store=I};
_.R(IP,l1);IP.prototype.resolveCommand=function(I){var C=this,y,k,F;return _.e(function(z){k=(y=_.l(I,_.G9w))==null?void 0:y.entityBatchUpdate;if(!k)return z.jumpTo(0);F=Object.assign({},k,{mutations:[].concat(_.Py(k.mutations||[]))});return _.n(z,_.nx(F,C.store),0)})};var CEb=function(I){this.JSC$14946_commandHandler=I;this.feedbackDialogMap=new Map};
CEb.prototype.openDialog=function(I,C){(I=this.feedbackDialogMap.get(I))&&this.JSC$14946_commandHandler.resolveCommand({openPopupAction:{popupType:"DIALOG",popup:I}},C)};
CEb[tj]=[_.ID];var C_=new _.Jj("FEEDBACK_CONTROLLER_TOKEN");var sK=new _.Jj("APP_STORE_TOKEN");var oP=function(I,C){this.store=I;this.controller=C};
_.R(oP,l1);oP.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t;return _.e(function(U){if(U.nextAddress==1){k=_.l(I,_.fI);if(z=(F=k)==null?void 0:F.contentId)for(r=_.T(((c=k)==null?void 0:c.actions)||[]),w=r.next();!w.done;w=r.next())L=w.value,slu(y,L,z);Q=(D=C)==null?void 0:(p=D.form)==null?void 0:p.element;return _.n(U,_.Tg(Q,[I]).catch(function(){}),2)}X=U.yieldResult;
((b=X)==null?0:(S=b.data)==null?0:(A=S.feedbackResponses)==null?0:A.length)&&(B=(x=X.data.feedbackResponses[0])==null?void 0:x.followUpDialog)&&z&&(t=y.controller)!=null&&t.feedbackDialogMap.set(z,B);_.oI(U)})};
var slu=function(I,C,y){var k=_.l(C,_.r9);if(k){k=_.T(k.commands||[]);for(var F=k.next();!F.done;F=k.next())slu(I,F.value,y)}_.l(C,_.DN)&&I.store.dispatch(_.wJ("commandEntity",gQF(y),{key:y,command:C}));_.l(C,S0w)&&I.store.dispatch(_.wJ("commandEntity",gQF(y),{key:y,command:C}))};
oP[tj]=[sK,C_];var yI=function(I){this.controller=I};
_.R(yI,l1);yI.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c;return _.e(function(r){k=_.l(I,_.WH);z=(F=k)==null?void 0:F.targetId;if(((c=k)==null?void 0:c.signal)!=="TELL_US_WHY"||!z)return r.return();y.controller.openDialog(z,C);_.oI(r)})};
yI[tj]=[C_];var kv=function(I){this.store=I};
_.R(kv,l1);kv.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L;return _.e(function(D){k=_.l(I,Xdz);z=(F=k)==null?void 0:F.contentId;w=(c=C)==null?void 0:(r=c.form)==null?void 0:r.element;L=_.Tg(w,[I]);z&&y.undo(z);return _.n(D,L,0)})};
kv.prototype.undo=function(I){this.store.dispatch(_.wJ("commandEntity",gQF(I),{key:I,command:void 0}))};
kv[tj]=[sK];var Fa=function(I){this.JSC$14961_commandHandler=I};
_.R(Fa,l1);Fa.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L;return _.e(function(D){y=_.l(I,U2q);k=y.flowStateKey;F=y.validationFailureCommand;z=y.submitValidFormCommand;c=xm(_.o7,[k||""]);r=_.l(c,tgq);((w=r)==null?0:w.isValid)&&z&&C.JSC$14961_commandHandler.resolveCommand(z);((L=r)==null?0:L.isValid)||!F||C.JSC$14961_commandHandler.resolveCommand(F);_.oI(D)})};
Fa[tj]=[_.ID];var uH=function(I){this.innertubeTransportService=I};
_.R(uH,l1);uH.prototype.resolveCommand=function(I,C){var y=this,k;return _.e(function(F){return _.n(F,_.gh(y.innertubeTransportService,I,(k=C)==null?void 0:k.form).then(function(z){var c,r;C==null||(c=C.commandController)==null||(r=c.onSuccess)==null||r.call(c,I,z)},function(z){var c,r;
C==null||(c=C.commandController)==null||(r=c.onServerError)==null||r.call(c,I,z)}),0)})};
uH[tj]=[_.Q0];var zi=function(){};
_.R(zi,l1);zi.prototype.resolveCommand=function(I){var C,y,k,F;return _.e(function(z){if(C=_.l(I,_.hfw)){if(y=C.gtmId)k=_.Aq("GL",""),_.rx(y,k);(F=C.gtmData)&&_.ia(F)}_.oI(z)})};var Ti=function(I,C){this.innertubeTransportService=I;this.JSC$14972_actionRouter=C};
_.R(Ti,l1);Ti.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){y=_.l(I,sdc);if(!y)return F.return();k=y.command;if(!k)return F.return();C.JSC$14972_actionRouter.triggerAction("yt-insert-rich-section-action",y);return _.n(F,_.gh(C.innertubeTransportService,k,{disableCache:!0}),0)})};
Ti[tj]=[_.Q0,E2];PcH.bind(null,Xb);var oMq=PcH.bind(null,Mbe);Dgm.bind(null,Xb);var yAY=Dgm.bind(null,Mbe);Nm9.bind(null,Xb);var kqb=Nm9.bind(null,Mbe);var cb=function(){};
_.R(cb,l1);
cb.prototype.resolveCommand=function(I){var C,y,k,F,z,c,r,w,L,D;return _.e(function(p){C=_.l(I,fe0);if(!C)return p.return();k=((y=C.operations)==null?void 0:y.operations)||[];F=_.T(k);for(z=F.next();!z.done;z=F.next())if(c=z.value,c.insertItemSectionContent){var Q=c.insertItemSectionContent,X=Q.contents||[];Q.insertByPositionInSection?oMq(Q.insertByPositionInSection.sectionTargetId,X,Q.insertByPositionInSection.position):Q.insertByRelativePositionInSection&&Q.insertByRelativePositionInSection.sectionTargetId&&Q.insertByRelativePositionInSection.itemTargetId&&
yAY(Q.insertByRelativePositionInSection.sectionTargetId,Q.insertByRelativePositionInSection.itemTargetId,X,Q.insertByRelativePositionInSection.relativePosition)}else c.replaceSection?(Q=c.replaceSection,X={},Q.replaceByTargetId?X=Q.replaceByTargetId:Q.replaceByGroupId&&(X={targetId:Q.replaceByGroupId.groupId,newContent:Q.replaceByGroupId.newContent,undoKey:""}),X.newContent&&sac(X.targetId,{continuationItems:[X.newContent]})):c.removeItem?(Q=c.removeItem,Q.removeByTargetId&&Q.sectionTargetId&&kqb(Q.sectionTargetId,
Q.removeByTargetId.targetIds||[])):c.removeSection&&(c.removeSection.removeByTargetId?(r=void 0,FN8(((r=c.removeSection)==null?void 0:r.removeByTargetId.targetIds)||[])):c.removeSection.removeByGroupId&&(w=void 0,FN8(((w=c.removeSection)==null?void 0:w.removeByGroupId.groupIds)||[])));D=((L=C.operations)==null?void 0:L.scrollConfig)||{};u55(D);_.oI(p)})};
var FN8=function(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next())sac(C.value,{continuationItems:[]})},u55=function(I){if(I.scrollToItem){var C=I.scrollToItem.item||{},y=C.itemTargetId;
C=C.sectionTargetId;if(y&&C){var k=document.querySelector("[data-target-id="+C+"]"),F=k==null?void 0:k.querySelector("[data-target-id="+y+"]");k&&F&&setTimeout(function(){var z=F.offsetTop-k.offsetTop,c;if(((c=I.scrollToItem)==null?void 0:c.scrollPosition)==="SCROLL_POSITION_CENTER")z-=k.offsetHeight/2,z+=F.offsetHeight/2;else{var r;((r=I.scrollToItem)==null?void 0:r.scrollPosition)==="SCROLL_POSITION_END"&&(z-=k.offsetHeight,z+=F.offsetHeight)}k.scroll({top:z,behavior:"smooth"})},100)}}};var e$=new _.Jj("CLIENT_NAME_TOKEN");var zpc=new _.Jj("DEFAULT_STORE_EXPIRATION_TOKEN");var ZYm=new _.Jj("CLIENT_LOCATION_SERVICE_TOKEN");var rL=function(I,C,y){this.clientName=I||_.Aq("INNERTUBE_CLIENT_NAME","WEB");this.clientLocationService=C||_.AG.getInstance();this.JSC$15000_commandHandler=y||_.FW.instance};
_.R(rL,l1);rL.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){k=(y=_.l(I,xib))==null?void 0:y.onComplete;C.clientLocationService.clearLocationPlayabilityToken(C.clientName);k&&C.JSC$15000_commandHandler.resolveCommand(k);_.oI(F)})};
rL[tj]=[e$,ZYm,_.ID];var iH=function(I){this.innertubeTransportService=I};
_.R(iH,l1);iH.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c;return _.e(function(r){z=(k=C)==null?void 0:(F=k.form)==null?void 0:F.element;return _.n(r,_.gh(y.innertubeTransportService,I,(c=C)==null?void 0:c.form).then(function(w){Z_m(z,new CustomEvent("yt-service-request-completed"),{data:w},_.Aq("openPopupConfig"))}),0)})};
iH[tj]=[_.Q0];var wL=function(){};
_.R(wL,l1);wL.prototype.resolveCommand=function(I){var C,y;return _.e(function(k){C=_.l(I,Mgb);y=document.querySelector("mini-app-container-view-model");if(!C||!y)return k.return();C.isPlaying?y.dispatchEvent(new Event("play")):y.dispatchEvent(new Event("pause"));_.oI(k)})};var n_=function(){};
_.R(n_,l1);n_.prototype.resolveCommand=function(I){var C,y,k,F,z,c,r;return _.e(function(w){C=_.l(I,xXw);if((y=C)==null||!y.paramKeys)return w.return();k=C.paramKeys;F=_.dQ(window.location.href);z=_.T(k);for(c=z.next();!c.done;c=z.next())r=c.value,F.JSC$7905_queryData_.remove(r);window.history.replaceState(window.history.state,document.title,F.toString());_.oI(w)})};var TuY=function(){this.dropdownMap=new Map};_.cAe=new _.Jj("DROPDOWN_CONTROLLER_TOKEN");var Pb=function(I){this.controller=I};
_.R(Pb,l1);Pb.prototype.resolveCommand=function(I){var C=this,y,k,F,z;return _.e(function(c){y=_.l(I,pkq);if(!y)return c.return();k=y;F=k.dropdownId;z=k.selectedOptionIndex;if(F===void 0||z===void 0)return c.return();var r=C.controller.dropdownMap.get(F);r&&r(z);_.oI(c)})};
Pb[tj]=[_.cAe];var L_=function(I){this.controller=I};
_.R(L_,l1);L_.prototype.resolveCommand=function(I){var C=this,y;return _.e(function(k){return(y=_.l(I,HbP))?_.n(k,C.controller.closeDialog(),0):k.return()})};
L_[tj]=[_.Pr];var D5=function(I){this.controller=I};
_.R(D5,l1);D5.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){y=_.l(I,Rxd);if(!y)return F.return();var z,c=y.panelIdentifier||((z=y.identifier)==null?void 0:z.tag);if(!c)throw Error("yi");return(k=c)?_.n(F,C.controller.hidePanel(k),0):F.jumpTo(0)})};
D5[tj]=[_.wp];var p_=function(I,C){this.innertubeTransportService=I;this.controller=C};
_.R(p_,l1);p_.prototype.resolveCommand=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return y=_.l(I,bym),(k=y)!=null&&k.panelId?_.n(c,C.controller.getReloadContinuation(y.panelId),2):c.return();if(c.nextAddress!=3)return(F=c.yieldResult)?_.n(c,_.gh(C.innertubeTransportService,I,{continuation:F}),3):c.return();z=c.yieldResult;return _.n(c,C.controller.updatePanel(y.panelId,z.content,!1),0)})};
p_[tj]=[_.Q0,_.wp];var QI=function(I,C,y){this.innertubeTransportService=I;this.JSC$15036_screenManager=C;this.JSC$15036_commandHandler=y};
_.R(QI,l1);
QI.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1){y=_.l(I,_.D7q);if(!y)return w.return();if(y.commands)for(k=_.T(y.commands),F=k.next();!F.done;F=k.next())z=F.value,C.JSC$15036_commandHandler.resolveCommand(z,{disableClickTracking:!0});c=_.nv(I.clickTrackingParams);_.s7(C.JSC$15036_screenManager,21760,c,{layer:7,parentLayer:0});return _.n(w,_.gh(C.innertubeTransportService,I),2)}r=w.yieldResult;if(!r)return w.return();C.JSC$15036_screenManager.graftServerVe(r.trackingParams,c,
7);_.oI(w)})};
QI[tj]=[_.Q0,_.zd,_.ID];var NR=new _.Jj("PANEL_LOADING_STRATEGY_TOKEN");var VI=function(I,C){this.controller=I;this.panelLoadingStrategy=C};
_.R(VI,l1);
VI.prototype.resolveCommand=function(I,C){var y=this,k,F,z;return _.e(function(c){k=_.l(I,efc);if((F=k)==null||!F.panelLoadingStrategy)return c.return();z=function(r){var w,L,D,p,Q,X,b,S,A;return _.e(function(x){L=_.l((w=r.dialogViewModel)==null?void 0:w.header,QVq);D={viewModel:r.dialogViewModel};p={};if(b=_.V("web_enable_dialog_header_label")?(Q=L)==null?void 0:(X=Q.headline)==null?void 0:X.content:void 0)p.ariaLabel=b;k.dismissOnBackgroundTap===!1&&(p.isModal=!0);return r.dialogViewModel?_.n(x,
y.controller.openDialog(D,(S=C)==null?void 0:(A=S.form)==null?void 0:A.element,p),0):x.return()})};
return _.n(c,y.panelLoadingStrategy.execute({command:I,data:k.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:4}}),0)})};
VI[tj]=[_.Pr,NR];var j$=function(I,C,y){this.innertubeTransportService=I;this.controller=C;this.JSC$15056_screenManager=y};
_.R(j$,l1);
j$.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b;return _.e(function(S){switch(S.nextAddress){case 1:k=_.l(I,_.Gb);if(!k)return S.return();var A,x=k.panelIdentifier||((A=k.identifier)==null?void 0:A.tag);if(!x)throw Error("yi");F=x;return _.n(S,y.controller.isVisible(F,!0),2);case 2:if((z=S.yieldResult)&&k.blockIfPanelOpen)return S.return();w=(r=(c=y.controller).getPanelContent)==null?void 0:r.call(c,F);if(!(A=w))if(k){var B;A=((B=k.globalConfiguration)==null?void 0:B.initialState)||
k.engagementPanel;if(B=!A)B=!!(k==null?0:(x=k.engagementPanelPresentationConfigs)==null?0:x.engagementPanelPopupPresentationConfig);B&&(A=_.VCz(k.panelIdentifier,k.identifier))}else A=void 0;L=A;D=k.engagementPanelPresentationConfigs;p=k.engagementPanelExtras;return _.n(S,y.controller.showPanel(F,L,D,p,(Q=C)==null?void 0:(X=Q.form)==null?void 0:X.element),3);case 3:if(!k.globalConfiguration){S.jumpTo(0);break}_.s7(y.JSC$15056_screenManager,32633);return _.n(S,_.gh(y.innertubeTransportService,I),5);
case 5:return b=S.yieldResult,y.JSC$15056_screenManager.graftServerVe(b.trackingParams),_.n(S,y.controller.updatePanel(F,b.content,!0,p,void 0,b.updatePanelContinuationData),0)}})};
j$[tj]=[_.Q0,_.wp,_.zd];var lH=function(I,C){this.controller=I;this.panelLoadingStrategy=C};
_.R(lH,l1);lH.prototype.resolveCommand=function(I,C){var y=this,k,F,z;return _.e(function(c){k=_.l(I,_.nM);if((F=k)==null||!F.panelLoadingStrategy)return c.return();z=function(r){var w,L;return _.e(function(D){return r.sheetViewModel?_.n(D,y.controller.openSheet({viewModel:r.sheetViewModel},(w=C)==null?void 0:(L=w.form)==null?void 0:L.element),0):D.return()})};
return _.n(c,y.panelLoadingStrategy.execute({command:I,data:k.panelLoadingStrategy,renderFn:z,createScreenConfig:{layer:0}}),0)})};
lH[tj]=[_.nD,NR];var Xa=function(I,C){this.controller=I;this.JSC$15064_commandHandler=C};
_.R(Xa,l1);Xa.prototype.resolveCommand=function(I,C){var y=this,k,F,z;return _.e(function(c){if(c.nextAddress==1){k=_.l(I,SIm);var r=_.l(k.showCommand,_.Gb),w,L,D=(L=r==null?void 0:r.panelIdentifier)!=null?L:r==null?void 0:(w=r.identifier)==null?void 0:w.tag;if(!D)throw Error("zi");F=D;return _.n(c,y.controller.isVisible(F),2)}return(z=c.yieldResult)?_.n(c,y.controller.hidePanel(F),0):_.n(c,y.JSC$15064_commandHandler.resolveCommand(k.showCommand,C),0)})};
Xa[tj]=[_.wp,_.ID];var $v=function(I,C,y){this.innertubeTransportService=I;this.controller=C;this.JSC$15067_screenManager=y};
_.R($v,l1);
$v.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs;return _.e(function(XO){switch(XO.nextAddress){case 1:return k=y=_.l(I,Kau),F=k.targetPanelIdentifier,z=k.contentSourcePanelIdentifier,c=k.globalConfiguration,((r=F)==null?0:r.tag)&&((w=z)==null?0:w.tag)?c?_.n(XO,C.controller.showPanel(F.tag,_.VCz(F.tag,F),void 0,void 0,void 0),5):_.n(XO,(Q=(p=C.controller).getPanel)==null?void 0:Q.call(p,z.tag),4):XO.return();case 4:X=XO.yieldResult;L=(b=X)==null?void 0:
(A=(S=b).getPanelContent)==null?void 0:A.call(S);XO.jumpTo(3);break;case 5:return _.n(XO,_.gh(C.innertubeTransportService,I),6);case 6:x=XO.yieldResult,((B=x)==null?0:B.trackingParams)&&C.JSC$15067_screenManager.graftServerVe(x.trackingParams),L=(t=x)==null?void 0:t.content,D=(U=x)==null?void 0:U.updatePanelContinuationData;case 3:if(a=(yW=L)==null?void 0:yW.engagementPanelSectionListRenderer)return _.n(XO,C.controller.showPanel(F.tag,void 0,void 0,void 0,void 0,{content:a.content,secondaryHeaderContent:(cs=
a.header)!=null?cs:{},targetId:a.targetId},D),0);XO.jumpTo(0)}})};
$v[tj]=[_.Q0,_.wp,_.zd];var RP=function(I,C){this.JSC$15075_commandHandler=I;this.store=C};
_.R(RP,l1);RP.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return(y=_.l(I,hJ5))?_.n(r,_.sG(),2):r.return();k=r.yieldResult;if(!k)return r.return();Xcm(k,C.store,(F=y)==null?void 0:F.languageCode);z=k.isSubtitlesOn()?_.PQ("CAPTION_ON_TOAST",void 0,"Subtitles/CC turned on"):_.PQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");c=_.Oe(z);C.JSC$15075_commandHandler.resolveCommand(c);_.oI(r)})};
RP[tj]=[_.ID,cJ];var bH=function(I,C){this.shortsPlayerPromise=I;this.JSC$15079_commandHandler=C};
_.R(bH,l1);
bH.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return(y=_.l(I,Fab))?_.n(D,C.shortsPlayerPromise,2):D.return();k=D.yieldResult;var p=$gm(k);p!=null&&p.length||(k.loadModule("captions"),p=$gm(k));F=p;if((z=F)==null||!z.length)return c=_.PQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),r=_.Oe(c),C.JSC$15079_commandHandler.resolveCommand(r),D.return();k.toggleSubtitles();w=k.isSubtitlesOn()?_.PQ("CAPTION_ON_TOAST",void 0,
"Subtitles/CC turned on"):_.PQ("CAPTION_OFF_TOAST",void 0,"Subtitles/CC turned off");L=_.Oe(w);C.JSC$15079_commandHandler.resolveCommand(L);_.oI(D)})};
bH[tj]=[_.A48,_.ID];var Yv=function(I){this.JSC$15082_playerPromise=I};
_.R(Yv,l1);Yv.prototype.resolveCommand=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return(y=_.l(I,Gve))?_.n(c,C.JSC$15082_playerPromise,2):c.return();k=c.yieldResult;F=k.getVideoData().video_id;y.videoId===F&&(z=Number(y.offsetFromVideoStartMilliseconds),z>=0&&k.seekTo(z/1E3));_.oI(c)})};
Yv[tj]=[_.OZ];var epm=_.TL("sfv_currently_playing_audio_item_key","sfvAudioItemCurrentlyPlayingEntity"),Gi=function(I){this.store=I};
_.R(Gi,l1);
var rA0=function(I){var C,y,k,F;return _.e(function(z){if(z.nextAddress==1)return C=_.Aq("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SFV_AUDIO_ITEM,y=_.Aq("WEB_PLAYER_CONTEXT_CONFIGS").WEB_PLAYER_CONTEXT_CONFIG_ID_MWEB_SFV_AUDIO_ITEM,k=C||y,I.mainAppPlayer=new Ww(k),_.n(z,I.mainAppPlayer.api,2);F=z.yieldResult;F.addEventListener("onStateChange",I.JSC$15086_playerStateChangeListener.bind(I));document.addEventListener("yt-page-data-updated",I.pauseOnNavigation.bind(I));window.addEventListener("state-navigatestart",
I.pauseOnNavigation.bind(I));_.oI(z)})};
Gi.prototype.JSC$15086_playerStateChangeListener=function(I){switch(I){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"}ijw(this)};
var ijw=function(I){I.store.dispatch(_.wJ("sfvAudioItemCurrentlyPlayingEntity",epm,{key:epm,externalVideoId:I.externalVideoId,sfvAudioItemPlaybackState:I.playbackState,nowPlayingEntityValue:I.nowPlayingEntityValue}))};
Gi.prototype.pauseOnNavigation=function(){var I=this,C,y,k,F;return _.e(function(z){if(z.nextAddress==1){if(!I.mainAppPlayer){var c=new _.ph("Error: mainAppPlayer is unavailable",I.mainAppPlayer);_.GB(c);return z.return()}return _.n(z,I.mainAppPlayer.api,2)}C=z.yieldResult;k=(y=C)==null?void 0:y.getPlayerState();k!==1||(F=C)!=null&&F.pauseVideo();_.oI(z)})};
Gi.prototype.playVideo=function(I,C,y){var k=this,F,z;return _.e(function(c){if(c.nextAddress==1)return _.n(c,(F=k.mainAppPlayer)==null?void 0:F.api,2);z=c.yieldResult;if(!k.mainAppPlayer||!z){var r=new _.ph("Error: mainAppPlayer is unavailable",k.mainAppPlayer);_.GB(r);return c.return()}return _.n(c,k.mainAppPlayer.loadVideoWithPlayerVars({videoId:k.externalVideoId,audio_only:"1",start:I/1E3,end:I/1E3+C,player_params:y}),0)})};
Gi.prototype.pauseVideo=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1){if(!I.mainAppPlayer){var F=new _.ph("Error: mainAppPlayer is unavailable",I.mainAppPlayer);_.GB(F);return k.return()}return _.n(k,I.mainAppPlayer.api,2)}C=k.yieldResult;(y=C)==null||y.pauseVideo();_.oI(k)})};
Gi.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U;return _.e(function(yW){if(yW.nextAddress==1)return y=_.l(I,siS),F=(k=y)==null?void 0:k.nowPlayingEntityValue,c=(z=y)==null?void 0:z.externalVideoId,p=Number((D=(r=y)==null?void 0:(w=r.defaultStartPoints)==null?void 0:(L=w[0])==null?void 0:L.offsetMs)!=null?D:"0"),x=Number((A=(Q=y)==null?void 0:(X=Q.defaultStartPoints)==null?void 0:(b=X[0])==null?void 0:(S=b.duration)==null?void 0:S.seconds)!=null?A:"15"),U=(t=
(B=y)==null?void 0:B.playerParams)!=null?t:"",F&&c?C.mainAppPlayer?yW.jumpTo(2):_.n(yW,rA0(C),2):yW.return();if(yW.nextAddress!=6){if(C.nowPlayingEntityValue&&F===C.nowPlayingEntityValue)return C.playbackState==="SFV_AUDIO_ITEM_PLAYBACK_STATE_PLAYING"?_.n(yW,C.pauseVideo(),0):_.n(yW,C.playVideo(p,x,U),0);C.externalVideoId=c;C.nowPlayingEntityValue=F;C.playbackState="SFV_AUDIO_ITEM_PLAYBACK_STATE_BUFFERING";return _.n(yW,C.playVideo(p,x,U),6)}ijw(C);return yW.jumpTo(0)})};
Gi[tj]=[cJ];var f_=function(I){this.JSC$15103_commandHandler=I};
_.R(f_,l1);f_.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1)return(k=_.l(I,Uiw))?_.n(w,_.sG(),2):w.return();F=w.yieldResult;if(!F)return w.return();(z=GaI(F))?y.JSC$15103_commandHandler.resolveCommand(z,C):(c=_.PQ("CLOSED_CAPTIONS_DISABLED",void 0,"No captions are available for this video"),r=_.Oe(c),y.JSC$15103_commandHandler.resolveCommand(r));_.oI(w)})};
f_[tj]=[_.ID];var S$=function(I){this.JSC$15106_playerPromise=I};
_.R(S$,l1);S$.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1){y=_.l(I,f9c);if(!y)return r.return();k=y.overlayRenderer;return k?(F=_.l(k,AJc))?_.n(r,C.JSC$15106_playerPromise,3):r.jumpTo(0):r.return()}z=r.yieldResult;z.renderChapterSeekingAnimation(1,_.hS(F.text),(c=F.icon)==null?void 0:c.iconType);_.oI(r)})};
S$[tj]=[_.OZ];var K_=function(I){this.store=I};
_.R(K_,l1);K_.prototype.resolveCommand=function(I){var C=this,y,k,F;return _.e(function(z){if(z.nextAddress==1){y=_.l(I,tZb);if(!y)return z.return();k="";(F=C.store.getState().collabInviteLink)&&y.id===F.playlistId?k=F.inviteLinkURL:y.shortUrl&&(k=y.shortUrl);return k?_.n(z,navigator.clipboard.writeText(k),3):z.jumpTo(0)}var c={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.PQ("COPY_LINK_SUCCESS_TOAST")}}}}};_.N().resolve(_.ID).resolveCommand(c);_.oI(z)})};
K_[tj]=[sK];var A5=function(I,C){this.innertubeTransportService=I;this.JSC$15116_commandHandler=C};
_.R(A5,l1);A5.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q;return _.e(function(X){if(X.nextAddress==1)return(k=_.l(I,_.KZ))?_.n(X,_.gh(y.innertubeTransportService,I,(F=C)==null?void 0:F.form),2):X.return();(z=X.yieldResult)&&z.errorMetadata&&(c=z,r=_.Oe(c.error.message),y.JSC$15116_commandHandler.resolveCommand(r));w=z;if((L=w)==null?0:L.actions)for(D=_.T(w.actions),p=D.next();!p.done;p=D.next())Q=p.value,y.JSC$15116_commandHandler.resolveCommand(Q);_.oI(X)})};
A5[tj]=[_.Q0,_.ID];var gL=function(){};
_.R(gL,l1);gL.prototype.resolveCommand=function(I){var C;return _.e(function(y){C=_.l(I,qrw);if(!C)return y.return();(new $GY(C)).show();_.oI(y)})};_.vb=new _.Jj("PLAYLIST_EDIT_CONTROLLER_TOKEN");var Wb=function(I,C,y,k){this.store=I;this.innertubeTransportService=C;this.controller=y;this.JSC$15124_commandHandler=k};
_.R(Wb,l1);
Wb.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO,Rm,$z,hX,vs;return _.e(function(mY){if(mY.nextAddress==1){k=_.l(I,_.bv);if(!k)return mY.return();if(k.clientActions){F=_.T(k.clientActions);for(z=F.next();!z.done;z=F.next())c=z.value,y.JSC$15124_commandHandler.resolveCommand(c);var Bs,n5=C==null?void 0:(Bs=C.form)==null?void 0:Bs.element;n5&&_.k3(n5,"yt-dismissible-item-action",k.clientActions)}return _.n(mY,_.gh(y.innertubeTransportService,I,(r=C)==
null?void 0:r.form),2)}if(w=mY.yieldResult)w.errorMetadata?(L=w,D=_.Oe(L.error.message),y.JSC$15124_commandHandler.resolveCommand(D),"error"in w&&((p=C)==null?0:(Q=p.commandController)==null?0:Q.onServerError)&&((X=C)==null||(b=X.commandController)==null||b.onServerError(I,w))):(S=C)==null||(A=S.commandController)==null||(B=(x=A).onSuccess)==null||B.call(x,I,w);t=w;((U=t)==null?0:U.collaborationInviteLink)&&k.playlistId&&(_.V("web_enable_invite_collaborators_link")||_.V("enable_music_web_cairo_new_collaborators_list_and_actions"))&&
y.store.dispatch(_.yE({type:"SET_COLLAB_INVITE_LINK",payload:{playlistId:k.playlistId,inviteLinkUrl:t.collaborationInviteLink}}));((yW=t)==null?0:yW.redirectEndpoint)&&y.JSC$15124_commandHandler.resolveCommand(t.redirectEndpoint);((a=t)==null?0:(cs=a.newHeader)==null?0:cs.playlistHeaderRenderer)?w00(y.controller,t.newHeader.playlistHeaderRenderer):((XO=t)==null?0:(Rm=XO.newHeader)==null?0:Rm.musicEditablePlaylistDetailHeaderRenderer)&&w00(y.controller,t.newHeader.musicEditablePlaylistDetailHeaderRenderer);
y.controller.playlistVideoListElement&&(($z=t)==null?0:(hX=$z.playlistEditResults)==null?0:(vs=hX[0])==null?0:vs.playlistEditVideoAddedResultData)&&((n5=y.controller.playlistVideoListElement)==null||n5.dispatchEvent(new CustomEvent("yt-update-set-video-id",{detail:t.playlistEditResults[0].playlistEditVideoAddedResultData})));_.oI(mY)})};
Wb[tj]=[sK,_.Q0,_.vb,_.ID];var dL=function(I,C){this.controller=I;this.JSC$15134_commandHandler=C};
_.R(dL,l1);dL.prototype.resolveCommand=function(I,C){var y=this,k,F,z;return _.e(function(c){k=_.l(I,JhS);y.controller.showRefreshPill&&((F=k)==null?0:F.command)&&(y.JSC$15134_commandHandler.resolveCommand((z=k)==null?void 0:z.command,C),y.controller.showRefreshPill=!1);_.oI(c)})};
dL[tj]=[_.hv,_.ID];var xv=function(I,C){this.store=I;this.JSC$15138_commandHandler=C||_.FW.instance};
_.R(xv,l1);xv.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q;return _.e(function(X){k=_.l(I,T1m);F=y.store.getState().radioButtonGroup;if((z=k)==null?0:z.command)y.JSC$15138_commandHandler.resolveCommand((c=k)==null?void 0:c.command,C);else if(((r=k)==null?void 0:r.formId)===F.currentFormId)for(w=Object.values(F.commandsMap),L=_.T(w),D=L.next();!D.done;D=L.next()){p=D.value;Q=_.Rj(p);if(!Q)return X.return();y.JSC$15138_commandHandler.resolveCommand(Q,C)}_.oI(X)})};
xv[tj]=[sK];var qR=new _.Jj("USER_PREFS");var m1=function(I){this.JSC$15142_prefCookie=I};
_.R(m1,l1);m1.prototype.resolveCommand=function(I){var C=this,y;return _.e(function(k){(y=_.l(I,SrP))&&typeof y.useListView==="boolean"&&(_.Qw(0,155,y.useListView),C.JSC$15142_prefCookie.save());_.oI(k)})};
m1[tj]=[qR];var Z5=function(I){this.JSC$15146_prefCookie=I};
_.R(Z5,l1);Z5.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c;return _.e(function(r){y=_.l(I,ZQ5);if((k=y)==null||!k.gl)return r.return();F=y.gl;z={persist_gl:"1",gl:F};C.JSC$15146_prefCookie.set("gl",F);C.JSC$15146_prefCookie.save();c=_.jLd(z);_.Yk(c);_.oI(r)})};
Z5[tj]=[qR];var Bb=function(I){this.JSC$15150_prefCookie=I};
_.R(Bb,l1);Bb.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){y=_.l(I,aeq);if(!y)return F.return();k=!1;y.flagNum&&typeof y.value==="boolean"?(_.Qw(0,y.flagNum,y.value),k=!0):y.key&&typeof y.stringValue==="string"&&(C.JSC$15150_prefCookie.set(y.key,y.stringValue),k=!0);k&&C.JSC$15150_prefCookie.save();_.oI(F)})};
Bb[tj]=[qR];var EK=new _.Jj("PREF_STORAGE_PROMISE_TOKEN");var h5=function(I){this.JSC$15154_prefStoragePromise=I};
_.R(h5,l1);h5.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return(y=_.l(I,II0))?_.n(F,C.JSC$15154_prefStoragePromise,2):F.return();k=F.yieldResult;return k===void 0||y.key===void 0||y.value===void 0?F.return():_.n(F,k.set(y.key,y.value),0)})};
h5[tj]=[EK];var nMw=function(I){this.innertubeTransportService=I};
_.R(nMw,l1);nMw.prototype.resolveCommand=function(I,C){var y=this,k,F;return _.e(function(z){(k=_.l(I,_.XVY))&&k&&k.isFirstRequest&&(_.fA("search_overview_answer"),_.Sr("so_rq",void 0,"search_overview_answer"));return _.n(z,_.gh(y.innertubeTransportService,I,(F=C)==null?void 0:F.form),0)})};
nMw[tj]=[_.Q0];var PE5=function(){};
_.R(PE5,l1);
PE5.prototype.resolveCommand=function(I){var C,y,k,F,z,c,r,w,L;return _.e(function(D){C=_.l(I,YIY);if((y=C)==null?0:y.sectionIdentifier){if(C.scrollBehaviorType==="SCROLL_BEHAVIOR_TYPE_SCROLL_INTO_VIEW"){if(F=(k=document.getElementsByTagName(C.sectionIdentifier))==null?void 0:k.item(0))F.scrollIntoView({behavior:"smooth"}),(z=$cK(F))&&z.focus({preventScroll:!0});return D.return()}c=document.querySelector("[section-identifier="+C.sectionIdentifier+"]");r=document.querySelector("[section-identifier="+C.referenceSectionIdentifier+
"]");if(!c)return D.return();w=C.verticalScrollOffsetDp?C.verticalScrollOffsetDp:0;r&&(w-=r.offsetTop);window.scrollTo({top:c.offsetTop+w,behavior:"smooth"});(L=$cK(c))&&L.focus({preventScroll:!0})}_.oI(D)})};var UK=function(){};
_.R(UK,l1);
UK.prototype.resolveCommand=function(I){var C,y,k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1){C=_.l(I,aNm);if(!C||!C.imageBytes||!navigator.clipboard)return w.return();if(C.clientShareDestination==="CLIENT_SHARE_DESTINATION_SYSTEM_SHARE_PANEL")return _.GB(Error("Ai")),w.return();_.aM(w,2);k=(y=C)==null?void 0:y.imageBytes;F=k.replace(/-/g,"+").replace(/_/g,"/");z=wcm(F);c={};r=[new ClipboardItem((c[z.type]=z,c))];return _.n(w,navigator.clipboard.write(r),4)}if(w.nextAddress!=2)return _.dC(w,0);
_.sj(w);_.oI(w)})};var Hb=function(I,C){this.innertubeTransportService=I;this.JSC$15169_commandHandler=C};
_.R(Hb,l1);Hb.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1)return(k=_.l(I,MVq))?_.n(w,_.gh(y.innertubeTransportService,I,(F=C)==null?void 0:F.form),2):w.return();(z=w.yieldResult)&&z.errorMetadata&&k.onFailureCommand&&y.JSC$15169_commandHandler.resolveCommand(k.onFailureCommand);c=z;((r=c)==null?0:r.shareCommand)&&y.JSC$15169_commandHandler.resolveCommand(c.shareCommand,C);_.oI(w)})};
Hb[tj]=[_.Q0,_.ID];var t5=function(){};
_.R(t5,l1);t5.prototype.resolveCommand=function(I){var C,y;return _.e(function(k){C=_.l(I,HQw);if(!C||!navigator.share)return k.return();y={url:C.url};try{return k.return(navigator.share(y))}catch(F){}_.oI(k)})};var J5=function(){};
_.R(J5,l1);J5.prototype.resolveCommand=function(){return _.e(function(I){window.dispatchEvent(new Event("yt-playables-ack-3p-data-usage"));_.oI(I)})};var OK=function(I){this.JSC$15179_navigationConfirmationService=I};
_.R(OK,l1);OK.prototype.resolveCommand=function(){var I=this;return _.e(function(C){I.JSC$15179_navigationConfirmationService.cancelPendingNavigation();_.oI(C)})};
OK[tj]=[kl];var aP=function(I){this.JSC$15182_screenManager=I};
_.R(aP,l1);aP.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L;return _.e(function(D){F=(k=C.form)==null?void 0:k.event;c=(z=C.form)==null?void 0:z.element;if(!F)throw new _.ph("Event not passed in when resolving command");r=_.T(F.composedPath());for(w=r.next();!w.done;w=r.next())if(L=w.value,L.tagName==="YT-COPY-LINK-RENDERER")return L.copyUrlToClipboard(),c&&_.Sz(y.JSC$15182_screenManager,c),D.return();_.oI(D)})};
aP[tj]=[_.zd];var MR=function(){this.JSC$15186_miniAppClientDataProvider=_.N().resolve(_.$h)};
_.R(MR,l1);MR.prototype.resolveCommand=function(){var I=this,C,y;return _.e(function(k){if(I.JSC$15186_miniAppClientDataProvider.clientData.has("video_id")){var F=I.JSC$15186_miniAppClientDataProvider,z=F.clientData.get("video_id");z&&F.clientData.delete("video_id");C="https://youtube.com/watch?v="+z;y=cn(C);if(y===void 0)throw Error("Bi`"+C);_.XG(window,y)}_.oI(k)})};var IS=function(){};
_.R(IS,l1);IS.prototype.resolveCommand=function(){return _.e(function(I){window.dispatchEvent(new Event("yt-playables-exit-mini-app-dialog-seen"));_.oI(I)})};var Cf=function(){};
_.R(Cf,l1);Cf.prototype.resolveCommand=function(){var I;return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.o6F(window.document.documentElement),2);(I=document.querySelector("mini-app-container-view-model iframe"))&&I.focus();_.oI(C)})};var sM=function(I){this.JSC$15193_navigationConfirmationService=I};
_.R(sM,l1);
sM.prototype.resolveCommand=function(){var I=this;return _.e(function(C){var y=I.JSC$15193_navigationConfirmationService,k=_.N().resolve(_.st),F;if(((F=y.navigateParams)==null?void 0:F.data)!==void 0){var z;_.j4m(k,y.navigateParams.endpoint,y.navigateParams.data,(z=y.navigateParams.navigationType)!=null?z:1,y.navigateParams.tempData,y.navigateParams.isMiniplayer,void 0,!0);y.navigateParams=void 0;y.customConfirmationCommand=void 0}else y.navigateParams&&(k.navigate(y.navigateParams.endpoint,y.navigateParams.reload,
y.navigateParams.params,y.navigateParams.tempData,y.navigateParams.requestType,y.navigateParams.createScreenConfig,!0),y.navigateParams=void 0,y.customConfirmationCommand=void 0);_.oI(C)})};
sM[tj]=[kl];var oS=function(){};
_.R(oS,l1);oS.prototype.resolveCommand=function(){return _.e(function(I){window.dispatchEvent(new Event("yt-share-playable-with-high-score"));_.oI(I)})};var yj=function(I){this.JSC$15198_prefStorage=I};
_.R(yj,l1);yj.prototype.resolveCommand=function(){var I=this,C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,I.JSC$15198_prefStorage,2);case 2:return(C=k.yieldResult)?_.n(k,C.set("sfvle",!1),3):k.return();case 3:return _.n(k,C.set("sfvles",!0),4);case 4:y=_.pA(),_.Qw(0,203,!1),_.Qw(0,204,!0),y.save(),_.oI(k)}})};
yj[tj]=[EK];var kI=function(I){this.JSC$15201_prefStorage=I};
_.R(kI,l1);kI.prototype.resolveCommand=function(){var I=this,C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,I.JSC$15201_prefStorage,2);case 2:return(C=k.yieldResult)?_.n(k,C.set("sfvle",!0),3):k.return();case 3:return _.n(k,C.set("sfvles",!0),4);case 4:y=_.pA(),_.Qw(0,203,!0),_.Qw(0,204,!0),y.save(),_.oI(k)}})};
kI[tj]=[EK];var F0=function(){};
_.R(F0,l1);F0.prototype.resolveCommand=function(I){var C;return _.e(function(y){C=_.l(I,MZY);if(!C||typeof C.key!=="string"||typeof C.value!=="string")return y.return();window.localStorage.setItem(C.key,C.value);_.oI(y)})};var uq=function(I){this.store=I};
_.R(uq,l1);uq.prototype.resolveCommand=function(I){var C=this,y;return _.e(function(k){y=_.l(I,laY);if(!y||!y.stepId||!y.token)return k.return();C.store.dispatch(vlS({stepId:y.stepId,token:y.token,isSelected:!1}));_.oI(k)})};
uq[tj]=[sK];var zn=function(I,C,y){this.innertubeTransportService=I;this.store=C;this.JSC$15212_screenManager=y};
_.R(zn,l1);
zn.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW,a,cs,XO;return _.e(function(Rm){y=_.l(I,ogu);if(!y||(k=y.stepIds)==null||!k.length)return Rm.return();F=C.store.getState().talkToRecs;z=[];c=[];r=_.T(y.stepIds);for(w=r.next();!w.done;w=r.next())for(L=w.value,D=void 0,(p=(D=F.stepStates[L])==null?void 0:D.userQuery)&&c.push({userQuery:p.userQuery,userQueryToken:p.token}),Q=void 0,X=(Q=F.stepStates[L])==null?void 0:Q.selectionStates,b=_.T(Object.entries(X)),S=
b.next();!S.done;S=b.next())A=S.value,x=_.T(A),B=x.next().value,t=x.next().value,U=B,yW=t,yW.isSelected&&z.push(U);a={selectedChipTokens:z,userQueries:c,submittedStepIds:y.stepIds};cs={browseTalk2recsFormData:a};y.browseEndpoint?(XO=I,_.V5(XO,_.rU,y.browseEndpoint)):y.command&&(XO=y.command);return XO?_.n(Rm,_.gh(C.innertubeTransportService,XO,{formData:cs,disableCache:!0}).then(function($z){($z==null?0:$z.trackingParams)&&C.JSC$15212_screenManager.graftServerVe($z==null?void 0:$z.trackingParams)}),
0):Rm.return()})};
zn[tj]=[_.Q0,sK,_.zd];var Tn=function(I){this.store=I};
_.R(Tn,l1);Tn.prototype.resolveCommand=function(I){var C=this,y;return _.e(function(k){y=_.l(I,jBX);if(!y||!y.stepId||!y.token)return k.return();C.store.dispatch(vlS({stepId:y.stepId,token:y.token,isSelected:!0}));_.oI(k)})};
Tn[tj]=[sK];var cE=function(I){this.store=I};
_.R(cE,l1);cE.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r;return _.e(function(w){k=_.l(I,yhc);if(!k||!k.stepId||!k.userQueryToken)return w.return();r=(c=(F=C)==null?void 0:(z=F.form)==null?void 0:z.userQuery)!=null?c:"";y.store.dispatch(_.yE({type:"TALK_TO_RECS_UPDATE_USER_QUERY",payload:{stepId:k.stepId,userQueryToken:k.userQueryToken,userQuery:r}}));_.oI(w)})};
cE[tj]=[sK];_.LNw=new _.Jj("TIMELY_ACTIONS_CONTROLLER_TOKEN");var eu=function(I){this.controller=I};
_.R(eu,l1);eu.prototype.resolveCommand=function(I){var C=this,y,k,F,z;return _.e(function(c){y=_.l(I,$Cc);if(!y)return c.return();k=y;F=k.id;z=k.isVisible;if(F===void 0||z===void 0)return c.return();var r;(r=C.controller.timelyActionsMap.get(F))==null||r(F,z);_.oI(c)})};
eu[tj]=[_.LNw];var Dh8=function(){this.timelyActionsMap=new Map};var rz=function(I){this.JSC$15239_commandHandler=I};
_.R(rz,l1);rz.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c;return _.e(function(r){y=_.l(I,_.fzw);if(!y)return r.return();z=(k=y.item)==null?void 0:(F=k.notificationTextRenderer)==null?void 0:F.successResponseText;if(!z)return r.return();c=_.JS(z);C.JSC$15239_commandHandler.resolveCommand(c);_.oI(r)})};
rz[tj]=[_.ID];var iq=function(I,C){this.innertubeTransportService=I;this.JSC$15244_playerApiPromise=C};
_.R(iq,l1);
iq.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D;return _.e(function(p){if(p.nextAddress==1)return _.n(p,C.JSC$15244_playerApiPromise,2);y=p.yieldResult;k=y.getOption("captions","track");F=Object.assign({},_.l(I,_.QzY));(c=(z=y.getVideoData())==null?void 0:z.video_id)?F.externalVideoId=c:_.xS(Error("Ci"));if((r=k)==null?0:r.languageCode)F.languageCode=k.languageCode;if((w=k)==null?0:w.kind)F.kind=k.kind;if((L=k)==null?0:L.name)F.name=k.name;D=Object.assign({},I,{getTranscriptEndpoint:F});return _.n(p,
_.gh(C.innertubeTransportService,D),0)})};
iq[tj]=[_.Q0,_.OZ];var wz=function(){};
_.R(wz,l1);wz.prototype.resolveCommand=function(I){var C,y,k,F,z,c,r,w;return _.e(function(L){C=_.l(I,z$P);if((y=C)==null||!y.paramKeyValuePairs)return L.return();k=window.location.href;F=_.T(C.paramKeyValuePairs);for(z=F.next();!z.done;z=F.next())c=z.value,c.key&&c.value&&(r={},k=_.E3(k,(r[c.key]=c.value,r)));w=_.N().resolve(_.sQ);_.CD(w,k);_.oI(L)})};var nf=function(I,C){this.JSC$15251_commandHandler=I;this.innertubeTransportService=C};
_.R(nf,l1);
nf.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t;return _.e(function(U){switch(U.nextAddress){case 1:return(z=(k=C)==null?void 0:(F=k.form)==null?void 0:F.element)&&_.Ed(z),c=_.pA().get("hl"),r="",_.aM(U,2),_.n(U,AdI(c),4);case 4:r=U.yieldResult;_.dC(U,3);break;case 2:return _.sj(U),z&&_.ta(z),_.GB(Error("Ei"),"ERROR"),U.return();case 3:w=_.l(I,Zu5);if(!w)return z&&_.ta(z),U.return();(p=(L=w.commerceActionConfig)==null?void 0:(D=L.commandLifeCycleConfig)==null?
void 0:D.onStartCommand)&&y.JSC$15251_commandHandler.resolveCommand(p);return _.n(U,_.gh(y.innertubeTransportService,I,{client_data:{paymentsClientToken:{token:r}}}),5);case 5:(Q=U.yieldResult)?(z&&_.ta(z),((A=Q)==null?0:A.command)&&y.JSC$15251_commandHandler.resolveCommand(Q.command),(t=(x=w.commerceActionConfig)==null?void 0:(B=x.commandLifeCycleConfig)==null?void 0:B.onSuccessCommand)&&y.JSC$15251_commandHandler.resolveCommand(t)):(z&&_.ta(z),_.GB(Error("Fi")),(S=(X=w.commerceActionConfig)==null?
void 0:(b=X.commandLifeCycleConfig)==null?void 0:b.onFailureCommand)&&y.JSC$15251_commandHandler.resolveCommand(S)),_.oI(U)}})};
nf[tj]=[_.ID,_.Q0];var PE=function(I,C,y){this.store=I;this.JSC$15267_commandHandler=C;this.innertubeTransportService=y};
_.R(PE,l1);
PE.prototype.resolveCommand=function(I,C){var y=this,k,F,z,c,r,w,L,D,p;return _.e(function(Q){k=_.l(I,Bfu);F=k.googlePaymentPayload;k.onStartCommand&&y.JSC$15267_commandHandler.resolveCommand(k.onStartCommand);z=F.encryptedPurchaseParams;c=F.ypcLogWalletAnalyticDataEndpoint;r=k.serializedTransactionFlowLoggingParams;w=F.serializedPaymentsClientParams;L=k.ypcCujContext;p=WKF(y.innertubeTransportService,(D=C)==null?void 0:D.form,z,c,r,w,L);return Q.return(p.then(function(X){geO(C==null?void 0:C.form,
!1);var b=y.store,S=y.JSC$15267_commandHandler,A=X.integratorData;A==null||A===""||X.error!=null?(String(X.error)==="-1"&&k.onDismissCommand?S.resolveCommand(k.onDismissCommand):String(X.error)!=="-1"&&k.onFailureCommand&&S.resolveCommand(k.onFailureCommand),String(X.error)!=="-1"&&String(X.error)!=="132"&&_.GB(Error("Gi"),"ERROR")):(k.googlePaymentEntityKey&&b.dispatch(_.wJ("commerceAcquisitionClientPayloadEntity",k.googlePaymentEntityKey,{key:k.googlePaymentEntityKey,commerceAcquisitionClientPayload:{googlePaymentClientPayload:{paymentsPayload:A,
fundsGuaranteeCallbackClientData:X.integratorClientCallbackData}}})),k.onSuccessCommand&&S.resolveCommand(k.onSuccessCommand));_.er()},function(X){geO(C==null?void 0:C.form,!1);
_.GB(X,"ERROR");k.onFailureCommand&&y.JSC$15267_commandHandler.resolveCommand(k.onFailureCommand)}))})};
PE[tj]=[cJ,_.ID,_.Q0];var Lf=function(I,C){this.JSC$15271_commandHandler=I;this.purchaseManager=C};
_.R(Lf,l1);
Lf.prototype.resolveCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D;return _.e(function(p){y=_.l(I,EUP);((k=y)==null?0:(F=k.commandLifeCycleConfig)==null?0:F.onStartCommand)&&C.JSC$15271_commandHandler.resolveCommand(y.commandLifeCycleConfig.onStartCommand);if(!((z=y)==null?0:(c=z.googlePaymentPurchaseManagerPayload)==null?0:c.securePayloadBytes))return _.GB(Error("Hi"),"ERROR"),p.return();r=QQc(_.T0(y.googlePaymentPurchaseManagerPayload.securePayloadBytes));w=_.pA().get("hl");L=_.vP();blm(r.serialize(),
w,function(Q){L.resolve(Q)},function(Q){L.reject(Q)},L.resolve);
D=L.promise;return p.return(D.then(function(Q){if(Q)if(Q==null?0:Q.errorCode){_.GB(Error("Ii`"+Q.errorCode),"ERROR");var X,b;((X=y)==null?0:(b=X.commandLifeCycleConfig)==null?0:b.onFailureCommand)&&C.JSC$15271_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}else if(Q==null?0:Q.isCancelled){var S,A;((S=y)==null?0:(A=S.commandLifeCycleConfig)==null?0:A.onCancelCommand)&&C.JSC$15271_commandHandler.resolveCommand(y.commandLifeCycleConfig.onCancelCommand)}else{var x,B;((x=y)==
null?0:(B=x.commandLifeCycleConfig)==null?0:B.onSuccessCommand)&&C.JSC$15271_commandHandler.resolveCommand(y.commandLifeCycleConfig.onSuccessCommand)}},function(Q){_.GB(Q,"ERROR");
var X,b;((X=y)==null?0:(b=X.commandLifeCycleConfig)==null?0:b.onFailureCommand)&&C.JSC$15271_commandHandler.resolveCommand(y.commandLifeCycleConfig.onFailureCommand)}))})};
Lf[tj]=[_.ID,YXb];var p00=function(I,C){this.JSC$15279_commandHandler=I;this.commandAllowlistOverride=C;var y;this.commandAllowlist=(y=this.commandAllowlistOverride)!=null?y:WP};
p00.prototype.handleResponse=function(I,C,y){var k,F=C==null?void 0:(k=C.config)==null?void 0:k.command;if(!F||this.commandAllowlist.some(function(z){return!!_.l(F,z)})){C=void 0;
y!==void 0&&(C={form:{element:y}});I.onResponseReceivedCommand&&this.JSC$15279_commandHandler.resolveCommand(I.onResponseReceivedCommand,C);I.onResponseReceivedAction&&this.JSC$15279_commandHandler.resolveCommand(I.onResponseReceivedAction,C);I.onResponseReceivedEndpoint&&this.JSC$15279_commandHandler.resolveCommand(I.onResponseReceivedEndpoint,C);I.command&&this.JSC$15279_commandHandler.resolveCommand(I.command,C);if(I.onResponseReceivedCommands)for(y=_.T(I.onResponseReceivedCommands),k=y.next();!k.done;k=
y.next())this.JSC$15279_commandHandler.resolveCommand(k.value,C);if(I.onResponseReceivedActions)for(y=_.T(I.onResponseReceivedActions),k=y.next();!k.done;k=y.next())this.JSC$15279_commandHandler.resolveCommand(k.value,C);if(I.onResponseReceivedEndpoints)for(y=_.T(I.onResponseReceivedEndpoints),k=y.next();!k.done;k=y.next())this.JSC$15279_commandHandler.resolveCommand(k.value,C);if(I.actions)for(I=_.T(I.actions),y=I.next();!y.done;y=I.next())this.JSC$15279_commandHandler.resolveCommand(y.value,C)}};
p00[tj]=[_.ID,_.aU(GnF)];var Qlw=new _.Jj("INNERTUBE_TOKEN_SERVICE");var Nuw=new _.Jj("SCHEDULER_TOKEN");var VY8=function(I){this.scheduler=I;I={};this.tokenMap=(I.app={},I.user={},I)};
VY8.prototype.handleResponse=function(I,C){if(!C)throw Error("Ji");var y;if(I=(y=I.responseContext)==null?void 0:y.innertubeTokenJar){if(I.appTokens){var k,F,z;y=(k=C.innerTubeRequest.context)==null?void 0:(F=k.request)==null?void 0:(z=F.innertubeTokenJar)==null?void 0:z.appTokens;jl5(this,I.appTokens,this.tokenMap.app,y)}if(I.userTokens){var c,r,w;C=(c=C.innerTubeRequest.context)==null?void 0:(r=c.request)==null?void 0:(w=r.innertubeTokenJar)==null?void 0:w.userTokens;jl5(this,I.userTokens,this.tokenMap.user,
C)}}};
VY8.prototype.processContext=function(I){I.request||(I.request={});var C=Object.keys(this.tokenMap.app).length,y=Object.keys(this.tokenMap.user).length;if(C||y)I.request.innertubeTokenJar={},C&&(I.request.innertubeTokenJar.appTokens=[].concat(_.Py(Object.values(this.tokenMap.app).flat()))),y&&(I.request.innertubeTokenJar.userTokens=[].concat(_.Py(Object.values(this.tokenMap.user).flat())))};
var jl5=function(I,C,y,k){C=_.T(C);for(var F=C.next(),z={};!F.done;z={token$jscomp$137:void 0},F=C.next()){z.token$jscomp$137=F.value;if(z.token$jscomp$137.type===void 0)throw new _.ph("InnerTube token has no type",z.token$jscomp$137);if(z.token$jscomp$137.clearTokens)y[z.token$jscomp$137.type]=[];else if(z.token$jscomp$137.value!==void 0){y[z.token$jscomp$137.type]||(y[z.token$jscomp$137.type]=[]);if(k!==void 0&&k.length){F=_.T(k);for(var c=F.next(),r={};!c.done;r={requestToken:void 0},c=F.next())r.requestToken=
c.value,c=y[z.token$jscomp$137.type].findIndex(function(w){return function(L){return L===w.requestToken||(0,_.Le.equals)(L,w.requestToken)}}(r)),c>-1&&y[z.token$jscomp$137.type].splice(c,1)}y[z.token$jscomp$137.type].push(z.token$jscomp$137);
z.token$jscomp$137.maxAgeSeconds&&Number(z.token$jscomp$137.maxAgeSeconds)>0&&I.scheduler.addLowPriorityJob(function(w){return function(){var L=y[w.token$jscomp$137.type].indexOf(w.token$jscomp$137);L>-1&&y[w.token$jscomp$137.type].splice(L,1)}}(z),Number(z.token$jscomp$137.maxAgeSeconds)*1E3)}else throw new _.ph("InnerTube token has no value",z.token$jscomp$137);
}};
VY8[tj]=[Nuw];var lMe=new _.Jj("LOCAL_INNERTUBE_ROUTER_TOKEN"),X05=new _.Jj("LOCAL_INNERTUBE_SERVICE_MAP_TOKEN");var Dj=function(I){this.serviceMap=I};
Dj.prototype.shouldPreferLocalResponse=function(I,C){return(I=$hq(this,I))?I.shouldPreferLocalResponse(C):!1};
Dj.prototype.localInnertubeResponse=function(I,C){var y=this,k;return _.e(function(F){return(k=$hq(y,I))?F.return(k.localInnertubeResponse(C)):F.return(Promise.reject(Error("Ki")))})};
Dj.prototype.canProvideFallbackResponse=function(I,C){return(I=$hq(this,I))?I.canProvideFallbackResponse(C):!1};
Dj.prototype.localFallbackInnertubeResponse=function(I,C){var y=this,k;return _.e(function(F){return(k=$hq(y,I))?F.return(k.localFallbackInnertubeResponse(C)):F.return(Promise.reject(Error("Ki")))})};
var $hq=function(I,C){C=_.Tl(C);return C?(I=I.serviceMap[C])?I:null:null};
Dj[tj]=[X05];var VV=function(){};
VV.prototype.shouldPreferLocalResponse=function(){return!1};
VV.prototype.localInnertubeResponse=function(){return _.e(function(I){return I.return(Promise.reject(Error("Li")))})};
VV.prototype.canProvideFallbackResponse=function(){return!0};
VV.prototype.localFallbackInnertubeResponse=function(){var I,C,y;return _.e(function(k){I=jL("CLOSE_POPUP");C={openPopupAction:xgs()};y={actions:[I,C]};return k.return(y)})};var wdt=function(I,C){this.JSC$15329_upliftPromise=I;this.store=C};
_.u=wdt.prototype;_.u.shouldPreferLocalResponse=function(I){var C=I.videoId,y;if(y=C)y=H69(this.store.getState().entities,I.videoId);return y&&t_O(this.store.getState().entities,C)?mgO(this.store.getState().entities,I.playlistId):!1};
_.u.localInnertubeResponse=function(I){var C=this,y;return _.e(function(k){return(y=C.getPlayerResponse(I))?k.return(Promise.resolve(y)):k.return(Promise.reject(Error("Mi")))})};
_.u.canProvideFallbackResponse=function(I){return!!I.videoId};
_.u.localFallbackInnertubeResponse=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.JSC$15329_upliftPromise,2);y=C.getPlayerResponse(I);var F;y?F=k.return(Promise.resolve(y)):F=VE(C.store.getState().entities,I.videoId)?k.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Cx(_.PQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),proceedButton:{buttonRenderer:vPW()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}}):
k.return({playabilityStatus:{status:"UNPLAYABLE",errorScreen:{playerErrorMessageRenderer:{reason:_.Cx(_.PQ("OFFLINE_CHECK_CONNECTION",void 0,"You're offline. Check your connection.")),proceedButton:{buttonRenderer:gPK()},icon:{iconType:"OFFLINE_NO_CONTENT"}}}}});return F})};
_.u.getPlayerResponse=function(I){return ass(this.store.getState().entities,I.videoId)};var Nd=function(I,C){this.localPlayerService=I;this.localWatchNextService=C};
Nd.prototype.shouldPreferLocalResponse=function(I){var C=I.playerRequest;I=I.watchNextRequest;return!!(C&&this.localPlayerService.shouldPreferLocalResponse(C)&&I&&this.localWatchNextService.shouldPreferLocalResponse(I))};
Nd.prototype.localInnertubeResponse=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1){y=I.playerRequest;k=I.watchNextRequest;if(!y||!k)throw new _.ph("Missing streaming request",I);return _.n(c,C.localPlayerService.localInnertubeResponse(y),2)}if(c.nextAddress!=3)return F=c.yieldResult,_.n(c,C.localWatchNextService.localInnertubeResponse(k),3);z=c.yieldResult;return c.return({playerResponse:F,watchNextResponse:z})})};
Nd.prototype.canProvideFallbackResponse=function(I){var C=I.playerRequest;I=I.watchNextRequest;return!!(C&&this.localPlayerService.canProvideFallbackResponse(C)&&I&&this.localWatchNextService.canProvideFallbackResponse(I))};
Nd.prototype.localFallbackInnertubeResponse=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return y=I.playerRequest,k=I.watchNextRequest,y&&k?_.n(c,C.localPlayerService.localFallbackInnertubeResponse(y),2):c.return(Promise.reject(new _.ph("Missing streaming request",I)));if(c.nextAddress!=3)return F=c.yieldResult,_.n(c,C.localWatchNextService.localFallbackInnertubeResponse(k),3);z=c.yieldResult;return c.return({playerResponse:F,watchNextResponse:z})})};var DH=function(I){this.JSC$15339_persistentStorePromiseAccessor=I};
DH.prototype.shouldPreferLocalResponse=function(){return!1};
DH.prototype.localInnertubeResponse=function(){return _.e(function(I){return I.return(Promise.reject(Error("Ni")))})};
DH.prototype.canProvideFallbackResponse=function(){return!0};
DH.prototype.localFallbackInnertubeResponse=function(){var I=this,C,y;return _.e(function(k){return k.nextAddress==1?_.n(k,I.JSC$15339_persistentStorePromiseAccessor(),2):k.nextAddress!=3?(C=k.yieldResult)?_.n(k,C.get("service:guide:fallback"),3):k.return(Promise.reject(Error("Oi"))):(y=k.yieldResult)&&_.zb(y)?k.return(ZSI(_.zb(y))):k.return(Promise.reject(Error("Pi")))})};var jt=function(){};
jt.prototype.shouldPreferLocalResponse=function(){return!1};
jt.prototype.localInnertubeResponse=function(){return _.e(function(I){return I.return(Promise.reject(Error("Qi")))})};
jt.prototype.canProvideFallbackResponse=function(){return!0};
jt.prototype.localFallbackInnertubeResponse=function(){var I,C,y;return _.e(function(k){I=jL("CLOSE_POPUP");C={openPopupAction:xgs()};y={actions:[I,C]};return k.return(y)})};var LI=function(){this.urlMap=Rpe;this.fallbackCommand=_.eo};
LI.prototype.shouldPreferLocalResponse=function(I){return(I=I.url)?!!bjS(this,I):!1};
LI.prototype.localInnertubeResponse=function(I){var C=this,y;return _.e(function(k){return(y=I.url)?k.return(Yae(I,bjS(C,y))):k.return(Promise.reject(Error("Ri")))})};
LI.prototype.canProvideFallbackResponse=function(){return!0};
LI.prototype.localFallbackInnertubeResponse=function(I){var C=this,y,k,F,z,c,r,w;return _.e(function(L){y=I.url;if(!y)return L.return(Yae(I,C.fallbackCommand));if(k=bjS(C,y))return L.return(Yae(I,k));F=void 0;z=_.Tl(y);z==="/watch"&&(c=_.v2(y,"v"))&&(w=(r=_.v2(y,"list"))!=null?r:void 0,F=_.IQ(c,w));F||(F=C.fallbackCommand);return L.return(Yae(I,F))})};
var bjS=function(I,C){if(C)return I.urlMap[_.ZC(C)]},Yae=function(I,C){C&&I.parentTrackingParams&&(C.commandMetadata=Object.assign({},{resolveUrlCommandMetadata:{parentTrackingParams:I.parentTrackingParams}},C.commandMetadata));
return Promise.resolve({responseContext:{},endpoint:C})};var pI=function(I,C,y){this.JSC$15349_upliftPromise=I;this.store=C;this.JSC$15349_persistentStorePromiseAccessor=y};
pI.prototype.shouldPreferLocalResponse=function(){return!1};
pI.prototype.localInnertubeResponse=function(){return _.e(function(I){return I.return(Promise.reject(Error("Si")))})};
pI.prototype.canProvideFallbackResponse=function(){return!0};
pI.prototype.localFallbackInnertubeResponse=function(){var I=this;return _.e(function(C){return C.return(Gqb(I))})};
var Gqb=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,uz(I.JSC$15349_upliftPromise,I.store),2);C=k.yieldResult;y={twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[q4H(C)]}}}};return k.return(fMY(I,y))})},fMY=function(I,C){var y,k;
return _.e(function(F){if(F.nextAddress==1)return _.n(F,I.JSC$15349_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return y=F.yieldResult,_.n(F,Tb(y),3);k=F.yieldResult;return F.return({responseContext:{},contents:C,topbar:k})})};var nI=function(I,C,y){this.JSC$15356_upliftPromise=I;this.store=C;this.JSC$15356_persistentStorePromiseAccessor=y};
nI.prototype.shouldPreferLocalResponse=function(I){var C=I.videoId;return C&&H69(this.store.getState().entities,C)&&t_O(this.store.getState().entities,C)?mgO(this.store.getState().entities,I.playlistId):!1};
nI.prototype.localInnertubeResponse=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return(y=I.videoId)?_.n(F,C.JSC$15356_upliftPromise,2):F.return(Promise.reject(Error("Ti")));if(F.nextAddress!=3)return _.n(F,Sab(C,I,y),3);k=F.yieldResult;return F.return(KN5(C,k,y))})};
nI.prototype.canProvideFallbackResponse=function(I){return I.videoId?!0:!1};
nI.prototype.localFallbackInnertubeResponse=function(I){var C=this,y,k,F,z;return _.e(function(c){switch(c.nextAddress){case 1:return(y=I.videoId)?_.n(c,C.JSC$15356_upliftPromise,2):c.return(Promise.reject(Error("Ti")));case 2:return _.n(c,Sab(C,I,y),3);case 3:k=c.yieldResult;if(VE(C.store.getState().entities,y)){c.jumpTo(4);break}return _.n(c,uz(C.JSC$15356_upliftPromise,C.store),5);case 5:return F=c.yieldResult,c.return(AAP(k,F));case 4:return H69(C.store.getState().entities,y)&&t_O(C.store.getState().entities,
y)?c.return(KN5(C,k,y)):(z={title:_.Cx(_.PQ("DOWNLOAD_UNAVAILABLE",void 0,"Download unavailable. Try a different video.")),icon:{iconType:"OFFLINE_NO_CONTENT"},ctaButton:{buttonRenderer:vPW()},style:{value:"BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"},loggingDirectives:{clientVeSpec:{uiType:236655}}},c.return(AAP(k,z)))}})};
var Sab=function(I,C,y){var k,F,z,c,r;return _.e(function(w){if(w.nextAddress==1)return k=C.playlistId,F=_.IQ(y,k),_.n(w,I.JSC$15356_persistentStorePromiseAccessor(),2);if(w.nextAddress!=3)return z=w.yieldResult,_.n(w,Tb(z),3);c=w.yieldResult;r={responseContext:{},currentVideoEndpoint:F,topbar:c};return w.return(r)})},KN5=function(I,C,y){if(I=VE(I.store.getState().entities,y)){var k;
y=I.videoEntity;var F,z={title:se(y.title),viewCount:{videoViewCountRenderer:{shortViewCount:_.oQ((k=y.localizedStrings)==null?void 0:k.viewCount),viewCount:_.oQ((F=y.localizedStrings)==null?void 0:F.viewCount)}}};y.publishedTimestampMillis&&(z.dateText=_.oQ(xDs(new Date(Number(y.publishedTimestampMillis)))));k={videoPrimaryInfoRenderer:z};F=I.videoEntity;I=I.channelEntity;I={videoSecondaryInfoRenderer:{defaultExpanded:!1,descriptionCollapsedLines:3,showMoreText:se(_.PQ("SHOW_MORE",void 0,"Show more")),
showLessText:se(_.PQ("SHOW_LESS",void 0,"Show less")),description:F.formattedDescription,owner:{videoOwnerRenderer:{title:se(I.title),thumbnail:I.avatar}}}};C.contents={twoColumnWatchNextResults:{results:{results:{contents:[k,I]}}}}}return C},AAP=function(I,C){I.contents={singleColumnWatchNextResults:{results:{results:{contents:[q4H(C)]}}}};
return I};var QV=function(I,C,y){this.JSC$15362_upliftPromise=I;this.store=C;this.JSC$15362_persistentStorePromiseAccessor=y};
QV.prototype.shouldPreferLocalResponse=function(){return!1};
QV.prototype.localInnertubeResponse=function(){return _.e(function(I){return I.return(Promise.reject(Error("Ui")))})};
QV.prototype.canProvideFallbackResponse=function(){return!0};
QV.prototype.localFallbackInnertubeResponse=function(){var I=this,C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return _.n(z,I.JSC$15362_persistentStorePromiseAccessor(),2);case 2:return C=z.yieldResult,_.n(z,Tb(C),3);case 3:return y=z.yieldResult,k={responseContext:{},topbar:y},_.n(z,I.JSC$15362_upliftPromise,4);case 4:return _.n(z,uz(I.JSC$15362_upliftPromise,I.store),5);case 5:return F=z.yieldResult,k.watchStatus={backgroundPromoRenderer:F},z.return(k)}})};var gM8=new _.Jj("ENDPOINT_MAP");var vMP=function(){var I=this;this.sequenceMap=new Map;this.TEST_ONLY={getSequenceMap:function(){return I.sequenceMap}}},VKS=function(I,C,y){var k,F=(k=C.config)==null?void 0:k.sequenceStrategy;
if(!F)return y();I.sequenceMap.has(F.sequenceKey)||I.sequenceMap.set(F.sequenceKey,[]);I=I.sequenceMap.get(F.sequenceKey);switch(F.sequenceType){case "REQUEST_SEQUENCE_TYPE_APPEND":return WNe(I,C,y);case "REQUEST_SEQUENCE_TYPE_REPLACE":return dhm(I,C,y);default:throw new _.ph("Request could not be sequenced",C);}},WNe=function(I,C,y){var k,F,z;
return _.e(function(c){I.length>0?(F=I[I.length-1],k=F.responsePromise.then(function(){return y()})):k=y();
z={request:C,responsePromise:k};I.push(z);xh0(I,z);return c.return(z.responsePromise)})},dhm=function(I,C,y){y=y();
if(I.length>0)for(var k=_.T(I),F=k.next();!F.done;F=k.next())F.value.responsePromise=y;var z={request:C,responsePromise:y};I.push(z);xh0(I,z);return Promise.resolve().then(function(){return I.indexOf(z)>0?z.responsePromise.then(function(c){return Object.assign({},c,{sequenceMetaData:{skipProcessing:!0}})}):z.responsePromise})},xh0=function(I,C){C.responsePromise.then(function(){var y=I.indexOf(C);
y>-1&&I.splice(y,1)})};var qae=new _.Jj("REQUEST_SEQUENCING");var pf=function(){};
_.R(pf,Qn);pf.prototype.getApiPaths=function(){return[]};
pf.prototype.getExtension=function(I){return _.l(I,jhb)};
pf.prototype.JSC$11782_buildRequest=function(I,C){I.recaptchaToken=C.recaptchaToken};
pf.prototype.getApiUrl=function(){return"/das_captcha"};var Qj=function(){};
_.R(Qj,Qn);Qj.prototype.getApiPaths=function(){return m85};
Qj.prototype.getExtension=function(I){return _.l(I,azw)};
Qj.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.createBackstagePostParams&&(I.createBackstagePostParams=C.createBackstagePostParams);y.comment_text&&(I.commentText=y.comment_text);if(y.attached_video_id)I.videoAttachment={videoId:y.attached_video_id};else if(y.image_poll_options)I.pollAttachmentData={options:y.image_poll_options};else if(y.poll_options)I.pollAttachment={choices:y.poll_options};else if(y.quiz_options)I.quizAttachmentData={options:y.quiz_options};else if(y.image_blob_id)I.imageAttachment=
{encryptedBlobId:y.image_blob_id},y.source_video_id&&(I.imageAttachment.sourceExternalVideoId=y.source_video_id),y.image_preview_coordinates&&(I.imageAttachment.previewCoordinates=JSON.parse(y.image_preview_coordinates));else if(y.images_data)I.imagesAttachment={imagesData:y.images_data};else if(y.clip_external_video_id!==void 0||y.clip_offset_ms!==void 0||y.clip_duration_ms!==void 0){var k,F,z,c,r;I.clipAttachment={externalVideoId:(z=y.clip_external_video_id)!=null?z:"",offsetMs:(c=(k=y.clip_offset_ms)==
null?void 0:k.toString())!=null?c:"",durationMs:(r=(F=y.clip_duration_ms)==null?void 0:F.toString())!=null?r:""}}else y.shared_post_id&&(I.sharedPostAttachment={postId:y.shared_post_id});y.tagged_video_id&&(I.postCreationData={taggedVideoId:y.tagged_video_id});y.access_restrictions&&(typeof y.access_restrictions==="number"&&(C=y.access_restrictions,I.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"}),typeof y.access_restrictions==="string"&&
(I.accessRestrictionsParams=y.access_restrictions));y.scheduled_publish_time_sec&&(I.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString())};var NI=function(){};
_.R(NI,Qn);NI.prototype.getApiPaths=function(){return t9q};
NI.prototype.getExtension=function(I){return _.l(I,IsS)};
NI.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.decorateMessageParams&&(I.params=C.decorateMessageParams);y.text&&(I.text=y.text)};var Vj=function(){};
_.R(Vj,Qn);Vj.prototype.getApiPaths=function(){return npu};
Vj.prototype.getExtension=function(I){return _.l(I,Mkb)};
Vj.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;y.video_id&&(I.videoId=y.video_id)};var ju=function(){};
_.R(ju,Qn);ju.prototype.getApiPaths=function(){return N3w};
ju.prototype.getExtension=function(I){return _.l(I,_.w9)};
ju.prototype.JSC$11782_buildRequest=function(I,C,y){y.suggestions_query&&(I.input=y.suggestions_query)};var lq=function(){};
_.R(lq,Qn);lq.prototype.getApiPaths=function(){return Iyw};
lq.prototype.getExtension=function(I){return _.l(I,Iew)};
lq.prototype.JSC$11782_buildRequest=function(I,C,y){y.comment_text!==void 0&&(I.commentText=y.comment_text);y.scheduled_publish_time_sec&&(I.scheduledPublishTimeSec=y.scheduled_publish_time_sec.toString());I.updateBackstagePostParams=C.updateBackstagePostParams};var X0=function(){};
_.R(X0,Qn);X0.prototype.getApiPaths=function(){return CI};
X0.prototype.getExtension=function(I){return _.l(I,_.R8)};
X0.prototype.JSC$11782_buildRequest=function(I,C,y){y.formData&&(I.formData=y.formData);C.token?I.continuation=C.token:C.continuationTokenKey&&(y=_.Hg().getState(),C=_.cg(y.entities,"continuationTokenEntity",C.continuationTokenKey))&&(I.continuation=String(C.continuationToken))};
var mhw=function(){};
_.R(mhw,Qn);_.u=mhw.prototype;_.u.getApiPaths=function(){return CI};
_.u.getExtension=function(I){return _.l(I,_.rU)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$11789_getStoreKey=function(I){if((I=this.getExtension(I))&&I.browseId){var C={browseId:I.browseId};I.browseEndpointContextSupportedConfigs&&(C.browseEndpointContextSupportedConfigs=JSON.stringify(I.browseEndpointContextSupportedConfigs));I.params&&(C.params=I.params);I.query&&(C.query=I.query);return _.Uh("browse",C)}};
_.u.JSC$11782_buildRequest=function(I,C,y){C.browseId&&(I.browseId=C.browseId);C.params&&(I.params=C.params);C.query&&(I.query=C.query);y.formData?I.formData=y.formData:C.formData&&(I.formData=C.formData);C.browseId==="FEsubscriptions"&&_.pA().getFlag(155)&&(I.subscriptionSettingsState="MY_SUBS_SETTINGS_STATE_LAYOUT_FORMAT_LIST");C.browseId==="SPaccount_playback"&&(y=_.pA(),I.formData||(I.formData={}),I.formData.accountSettingsFormData={flagCaptionsDefaultOff:y.getFlag(65),flagAutoCaptionsDefaultOn:y.getFlag(66),
flagDisableInlinePreview:y.getFlag(186),flagAudioDescriptionDefaultOn:y.getFlag(198)});if(C.browseId==="FEwhat_to_watch"){y=_.pA();var k=y.getFlag(196);y.getFlag(197)&&(I.browseRequestSupportedMetadata={downloadsBrowseParams:{offlineFeatureSettingState:{isSdEnabled:k}}})}C.browseId==="FEwhat_to_watch"&&(C=_.pA().getFlag(186),I.inlineSettingStatus=C?"INLINE_SETTING_STATUS_DISABLED":"INLINE_SETTING_STATUS_ON")};
_.u.getRequestConfig=function(I,C){C=C===void 0?{}:C;var y={};if(I=this.JSC$11789_getStoreKey(I,C))y.storeStrategy={storeKey:I,disableCache:C.disableCache};_.V("web_log_browse_ticks_ks")||(y.requestTick="br_s",y.responseTick="br_r");return y};var $I=function(){};
_.R($I,Qn);$I.prototype.getApiPaths=function(){return gyY};
$I.prototype.getExtension=function(I){return _.l(I,LuY)};
$I.prototype.JSC$11782_buildRequest=function(I,C,y){I.legacyYoutubeChannelUsername=y.legacyYouTubeChannelUsername||"";I.legacyYoutubeChannelPassword=y.legacyYouTubeChannelPassword||""};var RS=function(){};
_.R(RS,Qn);RS.prototype.getApiPaths=function(){return B38};
RS.prototype.getExtension=function(I){return _.l(I,zhc)};
RS.prototype.JSC$11782_buildRequest=function(I,C,y){y.recaptcha_response_token&&(I.recaptchaResponseToken=y.recaptcha_response_token);y.channel_id&&(I.channelId=y.channel_id)};var bq=function(){};
_.R(bq,Qn);bq.prototype.getApiPaths=function(){return CZq};
bq.prototype.getExtension=function(I){return _.l(I,wzS)};
bq.prototype.JSC$11782_buildRequest=function(I,C,y){C.externalChannelId&&(I.externalChannelId=C.externalChannelId);y.handle&&(I.handleUpdate={handle:y.handle},C.handleEditSource&&(I.handleUpdate.handleEditSource=C.handleEditSource))};var YI=function(){};
_.R(YI,Qn);YI.prototype.getApiPaths=function(){return kWY};
YI.prototype.getExtension=function(I){return _.l(I,bQq)};
YI.prototype.JSC$11782_buildRequest=function(I,C,y){C.request&&(I.channelId=C.request.channelId);var k;if(y==null?0:(k=y.uploadDefaults)==null?0:k.emojiReactionSet)I.uploadDefaultsRequest||(I.uploadDefaultsRequest={}),I.uploadDefaultsRequest.emojiReactionSet=y.uploadDefaults.emojiReactionSet};var Gn=function(){};
_.R(Gn,Qn);Gn.prototype.getApiPaths=function(){return zrq};
Gn.prototype.getExtension=function(I){return _.l(I,Ts5)};
Gn.prototype.JSC$11782_buildRequest=function(I,C,y){C.externalChannelId&&(I.externalChannelId=C.externalChannelId);C.channelHandleEntityKey&&(I.channelHandleEntityKey=C.channelHandleEntityKey);C.handleEditSource&&(I.handleEditSource=C.handleEditSource);y.handle?I.handle=y.handle:y.name&&(I.name=y.name)};var ff=function(){};
_.R(ff,Qn);ff.prototype.getApiPaths=function(){return d8c};
ff.prototype.getExtension=function(I){return _.l(I,W_w)};
ff.prototype.JSC$11782_buildRequest=function(I,C){C.actions?I.actions=C.actions:C.action&&(I.actions=[C.action])};var Su=function(){};
_.R(Su,Qn);Su.prototype.getApiPaths=function(){return x8d};
Su.prototype.getExtension=function(I){return _.l(I,_.R8)};
Su.prototype.JSC$11782_buildRequest=function(I,C){C.token&&(I.continuation=C.token)};var Kf=function(){};
_.R(Kf,Qn);Kf.prototype.getApiPaths=function(){return iXP};
Kf.prototype.getExtension=function(I){return _.l(I,_.R8)};
Kf.prototype.JSC$11782_buildRequest=function(I,C){I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";C.token&&(I.fetchCommentsParams={continuation:C.token})};var Ag=function(){};
_.R(Ag,Qn);Ag.prototype.getApiPaths=function(){return Eyu};
Ag.prototype.getExtension=function(I){return _.l(I,vf5)};
Ag.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.createReplyParams&&(I.createReplyParams=C.createReplyParams);C.commentText&&(I.commentText=_.hS(C.commentText));y.comment_text&&(I.commentText=y.comment_text);y.image_blob_id&&(I.imageAttachment={encryptedBlobId:y.image_blob_id});y.botguard_response&&(I.botguardResponse=y.botguard_response)};
_.H1.Object.defineProperties(Ag.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var gz=function(){};
_.R(gz,Qn);gz.prototype.getApiPaths=function(){return hiS};
gz.prototype.getExtension=function(I){return _.l(I,_.gfm)};
gz.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.createCommentParams&&(I.createCommentParams=C.createCommentParams);C.commentText&&(I.commentText=_.hS(C.commentText));C.videoPositionMention&&(I.videoPositionMention=C.videoPositionMention);C.sources&&(I.sources=C.sources);y.comment_text&&(I.commentText=y.comment_text);y.attached_video_id?I.videoAttachment={videoId:y.attached_video_id}:y.poll_options?I.pollAttachment={choices:y.poll_options}:y.image_blob_id?I.imageAttachment=
{encryptedBlobId:y.image_blob_id}:y.shared_post_id&&(I.sharedPostAttachment={postId:y.shared_post_id});y.access_restrictions&&typeof y.access_restrictions==="number"&&(C=y.access_restrictions,I.accessRestrictions={restriction:C!==1&&C===2?"RESTRICTION_TYPE_SPONSORS_ONLY":"RESTRICTION_TYPE_EVERYONE"});y.botguard_response&&(I.botguardResponse=y.botguard_response)};
_.H1.Object.defineProperties(gz.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var vE=function(){};
_.R(vE,Qn);vE.prototype.getApiPaths=function(){return ssw};
vE.prototype.getExtension=function(I){return _.l(I,xDm)};
vE.prototype.JSC$11782_buildRequest=function(I,C,y){C.commentText&&(I.replyText=_.hS(C.commentText));y.comment_text&&(I.replyText=y.comment_text);I.updateReplyParams=C.updateReplyParams};
_.H1.Object.defineProperties(vE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var WE=function(){};
_.R(WE,Qn);WE.prototype.getApiPaths=function(){return oxq};
WE.prototype.getExtension=function(I){return _.l(I,dD0)};
WE.prototype.JSC$11782_buildRequest=function(I,C,y){C.commentText&&(I.commentText=_.hS(C.commentText));y.comment_text&&(I.commentText=y.comment_text);I.updateCommentParams=C.updateCommentParams};
_.H1.Object.defineProperties(WE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var dz=function(){};
_.R(dz,Qn);dz.prototype.getApiPaths=function(){return yxq};
dz.prototype.getExtension=function(I){return _.l(I,leP)};
dz.prototype.JSC$11782_buildRequest=function(I,C){C.settings&&(I.settings=C.settings)};var xI=function(){};
_.R(xI,Qn);xI.prototype.getApiPaths=function(){return Fkd};
xI.prototype.getExtension=function(I){return _.l(I,chc)};
xI.prototype.JSC$11782_buildRequest=function(I,C){C.channelCreationToken&&(I.channelCreationToken=C.channelCreationToken);C.source&&(I.source=C.source)};var qI=function(){};
_.R(qI,Qn);qI.prototype.getApiPaths=function(){return Bxe};
qI.prototype.getExtension=function(I){return _.l(I,iQu)};
qI.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;if(y.name&&(y.given_name||y.family_name))I=new _.ph("channel creation cannot set both GAIA and YouTube names",C),_.GB(I);else{if(C.zeroStepChannelCreationParams){if(!y.comment_text){I=new _.ph("zero_step_create_comment_params but no zero_step_texts",C);_.GB(I);return}I.zeroStepChannelCreationParams=C.zeroStepChannelCreationParams;I.zeroStepChannelCreationParams.zeroStepCreateCommentParams&&(I.zeroStepChannelCreationParams.zeroStepCreateCommentParams.input=
y.comment_text,y.botguard_response&&(I.zeroStepChannelCreationParams.zeroStepCreateCommentParams.botguardResponse=y.botguard_response))}I.channelCreationToken=C.channelCreationToken;y.given_name&&(I.givenName=y.given_name);y.family_name&&(I.familyName=y.family_name);C.source==="CHANNEL_SWITCHER_CHANNEL_CREATION_SOURCE"&&(I.channelCreationType="CHANNEL_CREATION_TYPE_SECONDARY");if(y.name||y.handle||y.avatar_url||y.encryptedBlobId||y.isNameChanged!==void 0||y.isHandleChanged!==void 0||y.isDefaultProfilePhoto!==
void 0||y.obakeImageSource)I.overrideChannelCreationParams={},y.name&&(I.overrideChannelCreationParams.name=y.name),y.handle&&(I.overrideChannelCreationParams.handle=y.handle),y.avatar_url&&(I.overrideChannelCreationParams.avatarUrl=y.avatar_url),y.encryptedBlobId&&(I.overrideChannelCreationParams.blobEncryptionId=y.encryptedBlobId),y.enableIdentityForAllChannelCreationDialog&&(y.encryptedBlobId?I.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag="IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_CUSTOM":
y.isDefaultProfilePhoto!==void 0&&(I.overrideChannelCreationParams.identityForAllChannelCreationAvatarTag=y.isDefaultProfilePhoto?"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_MONOGRAM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_AVATAR_TAG_GOOGLE_DEFAULT_OTHER"),y.isNameChanged!==void 0&&(I.overrideChannelCreationParams.identityForAllChannelCreationNameTag=y.isNameChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_NAME_TAG_GOOGLE_DEFAULT"),y.isHandleChanged!==
void 0&&(I.overrideChannelCreationParams.identityForAllChannelCreationHandleTag=y.isHandleChanged?"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_CUSTOM":"IDENTITY_FOR_ALL_CHANNEL_CREATION_HANDLE_TAG_DEFAULT_AUTOGEN"),y.obakeImageSource&&(I.overrideChannelCreationParams.obakeImageSourceType=y.obakeImageSource))}};var m8=function(){};
_.R(m8,Qn);m8.prototype.getApiPaths=function(I){return(I=this.getExtension(I))&&I.status==="DISLIKE"?M90:I&&I.status==="INDIFFERENT"?dFd:$Fu};
m8.prototype.getExtension=function(I){return _.l(I,_.Bp)};
m8.prototype.JSC$11782_buildRequest=function(I,C){C.target&&(I.target=C.target);if(C=this.getParams(C))I.params=C};
m8.prototype.getParams=function(I){switch(I==null?void 0:I.status){case "DISLIKE":return I.dislikeParams;case "INDIFFERENT":return I.removeLikeParams;default:return I==null?void 0:I.likeParams}};var Zj=function(){};
_.R(Zj,Qn);Zj.prototype.getApiPaths=function(){return tDb};
Zj.prototype.getExtension=function(I){return _.l(I,hSY)};
Zj.prototype.JSC$11782_buildRequest=function(I,C){C.settingItemId&&(I.settingItemId=C.settingItemId);C.stringValue!=null&&C.stringValue!==void 0?I.newValue={stringValue:C.stringValue}:C.intValue?I.newValue={intValue:C.intValue}:C.boolValue!==null&&C.boolValue!==void 0?I.newValue={boolValue:C.boolValue}:(I=new _.ph("Unknown value type for SetSettingEndpoint.",C),_.GB(I))};var BE=function(){};
_.R(BE,Qn);BE.prototype.getApiPaths=function(){return OXu};
BE.prototype.getExtension=function(I){return _.l(I,Tfw)||void 0};
BE.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.channelIds&&(I.channelIds=C.channelIds);C.siloName&&(I.siloName=C.siloName);C.params&&(I.params=C.params);y.botguardResponse&&(I.botguardResponse=y.botguardResponse);y.feature&&(I.clientFeature=y.feature)};
_.H1.Object.defineProperties(BE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var EM=function(){};
_.R(EM,Qn);EM.prototype.getApiPaths=function(){return MDd};
EM.prototype.getExtension=function(I){return _.l(I,UDu)||void 0};
EM.prototype.JSC$11782_buildRequest=function(I,C){C.channelIds&&(I.channelIds=C.channelIds);C.siloName&&(I.siloName=C.siloName);C.params&&(I.params=C.params)};
_.H1.Object.defineProperties(EM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var hg=function(I){this.shareClientParamsProvider=I};
_.R(hg,Qn);hg.prototype.getApiPaths=function(){return Lkw};
hg.prototype.getExtension=function(I){return _.l(I,La8)||_.l(I,_.D7q)||_.l(I,Pbe)};
hg.prototype.JSC$11782_buildRequest=function(I,C){C.serializedShareEntity&&(I.serializedSharedEntity=C.serializedShareEntity);if(C.clientParamIdentifier){var y;if((y=this.shareClientParamsProvider)==null?0:y.clientParams.has(C.clientParamIdentifier)){y=this.shareClientParamsProvider;C=C.clientParamIdentifier;var k=y.clientParams.get(C);k&&y.clientParams.delete(C);I.clientParams=k}}};
hg[tj]=[rte];var UM=function(){};
_.R(UM,Qn);UM.prototype.getApiPaths=function(){return Stb};
UM.prototype.getExtension=function(I){return _.l(I,R$w)};
UM.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var HE=function(){};
_.R(HE,Qn);HE.prototype.getApiPaths=function(){return Ib5};
HE.prototype.getExtension=function(I){return _.l(I,lI0)};
HE.prototype.JSC$11782_buildRequest=function(I,C){C.dismissal&&(I.items=[C.dismissal])};
_.H1.Object.defineProperties(HE.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var tg=function(){};
_.R(tg,Qn);tg.prototype.getApiPaths=function(){return lbP};
tg.prototype.getExtension=function(I){return _.l(I,_.fI)||void 0};
tg.prototype.JSC$11782_buildRequest=function(I,C,y){I.feedbackTokens=[];C.feedbackToken&&I.feedbackTokens.push(C.feedbackToken);if(C=C.cpn||y.cpn)I.feedbackContext={cpn:C};I.isFeedbackTokenUnencrypted=!!y.is_feedback_token_unencrypted;I.shouldMerge=!1;y.extra_feedback_tokens&&(I.shouldMerge=!0,I.feedbackTokens=I.feedbackTokens.concat(y.extra_feedback_tokens))};
_.H1.Object.defineProperties(tg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var Jg=function(){};
_.R(Jg,Qn);Jg.prototype.getApiPaths=function(){return lbP};
Jg.prototype.getExtension=function(I){return _.l(I,_.w9)};
Jg.prototype.JSC$11782_buildRequest=function(I,C,y){y.feedback_tokens&&(I.feedbackTokens=y.feedback_tokens,I.shouldMerge=!0)};
_.H1.Object.defineProperties(Jg.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var OM=function(){};
_.R(OM,Qn);OM.prototype.getApiPaths=function(){return lbP};
OM.prototype.getExtension=function(I){return _.l(I,Xdz)};
OM.prototype.JSC$11782_buildRequest=function(I,C){C.undoToken&&(I.feedbackTokens=[C.undoToken]);C.isUndoTokenUnencrypted&&(I.isFeedbackTokenUnencrypted=C.isUndoTokenUnencrypted)};
_.H1.Object.defineProperties(OM.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var aS=function(){};
_.R(aS,Qn);aS.prototype.getApiPaths=function(){return Tnq};
aS.prototype.getExtension=function(I){return _.l(I,N10)};
aS.prototype.JSC$11782_buildRequest=function(I,C){C.nextEndpoint&&_.l(C.nextEndpoint,_.xo)?I.nextEndpoint={urlEndpoint:_.l(C.nextEndpoint,_.xo)}:C.nextEndpoint&&_.l(C.nextEndpoint,_.H$)&&(I.nextEndpoint={watchEndpoint:_.l(C.nextEndpoint,_.H$)});C.setRacy&&(I.setRacy=C.setRacy);C.setControvercy&&(I.setControvercy=C.setControvercy)};var MI=function(I){this.JSC$15544_storeWithEntities=I};
_.R(MI,Qn);MI.prototype.getApiPaths=function(){return sW0};
MI.prototype.getExtension=function(I){return _.l(I,h$P)};
MI.prototype.JSC$11782_buildRequest=function(I,C){C.flowId&&(I.flowId=C.flowId);C.targetId&&(I.targetId=C.targetId);C.continuation&&(I.continuation=C.continuation);var y=C.flowStateEntityKey;if(C.flowStatePassingSpec==="FLOW_STATE_PASSING_SPEC_FULL_STATE"&&y&&this.JSC$15544_storeWithEntities){var k;if(C=(k=this.JSC$15544_storeWithEntities.getState())==null?void 0:k.entities)if(k=_.Fy(y).entityType,k=_.cg(C,k,y))I.flowState=k,I.flowStateEntityKey=y}};
_.H1.Object.defineProperties(MI.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});
MI[tj]=[cJ];var Zjq=function(){};
_.R(Zjq,Qn);_.u=Zjq.prototype;_.u.getApiPaths=function(){return jWP};
_.u.JSC$11789_getStoreKey=function(){return _.Uh("guide")};
_.u.getRequestConfig=function(){var I=this.JSC$11789_getStoreKey(),C;I&&(C={storeStrategy:{storeKey:I}});return C};
_.u.isNavigationCommand=function(){return!0};
_.u.getExtension=function(I){return _.l(I,_.w9)};
_.u.JSC$11782_buildRequest=function(I){I.fetchLiveState=!0};var IG=function(){};
_.R(IG,Qn);IG.prototype.getApiPaths=function(){return vyb};
IG.prototype.getExtension=function(I){return _.l(I,bVq)};
IG.prototype.JSC$11782_buildRequest=function(){};var Cr=function(){};
_.R(Cr,Qn);Cr.prototype.getApiPaths=function(){return WtS};
Cr.prototype.getExtension=function(I){return _.l(I,YJ0)};
Cr.prototype.JSC$11782_buildRequest=function(){};var sO=function(){};
_.R(sO,Qn);sO.prototype.getApiPaths=function(){return fLb};
sO.prototype.getExtension=function(I){return _.l(I,_.R8)};
sO.prototype.JSC$11782_buildRequest=function(I,C){C.token&&(I.continuation=C.token);var y,k;I==null||(y=I.context)==null||(k=y.user)==null||delete k.onBehalfOfUser};
sO.prototype.getRequestConfig=function(I){var C={},y;if(((y=this.getExtension(I))==null?void 0:y.sessionIndex)!==void 0){var k;C={authStrategy:{sessionIndex:(k=this.getExtension(I))==null?void 0:k.sessionIndex}}}return C};var oG=function(){};
_.R(oG,Qn);oG.prototype.JSC$11782_getRequest=function(I){var C=this.getExtension(I),y=I="";if(C==null?0:C.popup)I="true";if(C==null?0:C.disableSignout)y="true";C={};return{input:"/getAccountSwitcherEndpoint",requestShell:h$("/getAccountSwitcherEndpoint","GET",(C["X-YouTube-Delegation-Context"]=_.Aq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"),C["X-YouTube-Account-Switcher-Popup"]=I,C["X-YouTube-Account-Switcher-Disable-Signout"]=y,C)),innerTubeRequest:{}}};
oG.prototype.getApiPaths=function(){return[]};
oG.prototype.getExtension=function(I){return _.l(I,_.$Im)};
oG.prototype.JSC$11782_buildRequest=function(){};var yQ=function(){};
_.R(yQ,Qn);yQ.prototype.JSC$11782_getRequest=function(I){var C="/cross_account_channel_transfer";(I=this.getExtension(I))&&(C=z0z(C,{target_session:I.targetSessionIndex,source_rapt:I.sourceRapt,rapt:I.targetRapt}));return{input:C,requestShell:h$(C,"GET"),innerTubeRequest:{}}};
yQ.prototype.getApiPaths=function(){return[]};
yQ.prototype.getExtension=function(I){return _.l(I,Y0e)};
yQ.prototype.JSC$11782_buildRequest=function(){};var kw=function(){};
_.R(kw,Qn);kw.prototype.getApiPaths=function(){return ope};
kw.prototype.isNavigationCommand=function(){return!0};
kw.prototype.getExtension=function(I){return _.l(I,_.w9)};
kw.prototype.JSC$11782_buildRequest=function(I){var C=_.pA().get("gsml","");C&&(I.safetyModeLockerObfuscatedGaiaId=C);I.userInterfaceTheme=_.fp(!0);_.Sf()?I.deviceTheme="DEVICE_THEME_SELECTED":_.rxz()?I.deviceTheme="DEVICE_THEME_SUPPORTED":I.deviceTheme="DEVICE_THEME_UNSUPPORTED"};var F6=function(){};
_.R(F6,Qn);F6.prototype.getApiPaths=function(){return fLb};
F6.prototype.getExtension=function(I){return _.l(I,G6u)};
F6.prototype.JSC$11782_buildRequest=function(I,C){if(C&&C.requestType&&(I.requestType=C.requestType,C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_CHANNEL_SWITCHER"||C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT")){var y=C.nextUrl;y&&(_.cnz(y)||Jq(y))&&(I.nextNavendpoint={urlEndpoint:{url:y}})}C&&C.channelSwitcherQuery&&(I.channelSwitcherQuery=C.channelSwitcherQuery);C&&C.triggerChannelCreation&&(I.triggerChannelCreation=C.triggerChannelCreation);var k;if(C==null?0:(k=C.contentOwnerConfig)==
null?0:k.externalContentOwnerId)I.contentOwnerConfig=C.contentOwnerConfig;I.callCircumstance=C&&C.requestType&&C.requestType==="ACCOUNTS_LIST_REQUEST_TYPE_IDENTITY_PROMPT"?"SUPPLEMENTAL_USER":"SWITCHING_USERS_FULL";var F,z;C=I==null?void 0:(F=I.context)==null?void 0:(z=F.user)==null?void 0:z.onBehalfOfUser;if(C!==void 0){I.obfuscatedSelectedGaiaId=C;var c,r;I==null||(c=I.context)==null||(r=c.user)==null||delete r.onBehalfOfUser}var w,L;if(F=I==null?void 0:(w=I.context)==null?void 0:(L=w.user)==null?
void 0:L.serializedDelegationContext)I.selectedSerializedDelegationContext=F};var ul=function(){};
_.R(ul,Qn);ul.prototype.getApiPaths=function(){return Peb};
ul.prototype.getExtension=function(I){return _.l(I,Xvb)};
ul.prototype.JSC$11782_buildRequest=function(I,C){C.profileOwnerExternalChannelId&&(I.profileOwnerExternalChannelId=C.profileOwnerExternalChannelId);C.profileCardContext&&(I.profileCardContext=C.profileCardContext)};var nr=function(){};
_.R(nr,Qn);nr.prototype.getApiPaths=function(){return Kt8};
nr.prototype.getExtension=function(I){return _.l(I,pC0)};
nr.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var PZ=function(){};
_.R(PZ,Qn);PZ.prototype.getApiPaths=function(){return Z0w};
PZ.prototype.getExtension=function(I){return _.l(I,_.KIY)};
PZ.prototype.JSC$11782_buildRequest=function(I,C){if(C=C.createBroadcastRequest)I.useMasks=C.useMasks,I.broadcastType=C.broadcastType,I.broadcastSource=C.broadcastSource,I.broadcastMetadata=C.broadcastMetadata,I.broadcastMetadataMask=C.broadcastMetadataMask,I.videoMetadata=C.videoMetadata,I.videoMetadataMask=C.videoMetadataMask,I.liveChatSettingsUpdate=C.liveChatSettingsUpdate,I.liveChatSettingsUpdateMask=C.liveChatSettingsUpdateMask,I.cloneVideoId=C.cloneVideoId,I.cloneWithOverrides=C.cloneWithOverrides,
I.targetEntity=C.targetEntity,I.scheduledRedirectMetadata=C.scheduledRedirectMetadata};var Lr=function(){};
_.R(Lr,Qn);Lr.prototype.getApiPaths=function(){return U8m};
Lr.prototype.getExtension=function(I){return _.l(I,Ajb)};
Lr.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.params&&(I.params=C.params);y.questionText&&(I.questionText=y.questionText);y.optionText&&y.optionText.length>0&&(I.optionText=y.optionText)};var Dm=function(){};
_.R(Dm,Qn);Dm.prototype.getApiPaths=function(){return Jsd};
Dm.prototype.getExtension=function(I){return _.l(I,SUw)};
Dm.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var pr=function(){};
_.R(pr,Qn);pr.prototype.getApiPaths=function(){return zvu};
pr.prototype.getExtension=function(I){return _.l(I,bbm)};
pr.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var QQ=function(){};
_.R(QQ,Qn);QQ.prototype.getApiPaths=function(){return cm0};
QQ.prototype.getExtension=function(I){return _.l(I,YUd)};
QQ.prototype.JSC$11782_buildRequest=function(I,C,y){C.params&&(I.params=C.params);C.continuation&&(I.continuation=C.continuation);y.currentPlayerState&&y.currentPlayerState.playerOffsetMs&&(I.currentPlayerState={playerOffsetMs:y.currentPlayerState.playerOffsetMs.toString()})};var N6=function(){};
_.R(N6,Qn);N6.prototype.getApiPaths=function(){return ev5};
N6.prototype.getExtension=function(I){return _.l(I,RJw)};
N6.prototype.JSC$11782_buildRequest=function(I,C,y){C.params&&(I.params=C.params);y.continuation&&(I.continuation=y.continuation);"hidden"in y&&(I.webClientInfo={isDocumentHidden:y.hidden});y.isInvalidationTimeoutRequest&&(I.isInvalidationTimeoutRequest=y.isInvalidationTimeoutRequest);y.invalidationPayload&&(C=$i8(_.T0(O3(y.invalidationPayload))),I.invalidationPayloadLastPublishAtUsec=G6(C,2));y.reloadActionPanel&&(I.reloadActionPanel=y.reloadActionPanel);y.fullReload&&(I.fullReload=y.fullReload);
y.currentPlayerState&&(I.currentPlayerState=y.currentPlayerState)};var VQ=function(){};
_.R(VQ,Qn);VQ.prototype.getApiPaths=function(){return Rvm};
VQ.prototype.getExtension=function(I){return _.l(I,KXm)};
VQ.prototype.JSC$11782_buildRequest=function(I,C){I.params=C.params};var jS=function(){};
_.R(jS,Qn);jS.prototype.getApiPaths=function(){return T3q};
jS.prototype.getExtension=function(I){return _.l(I,g1Y)};
jS.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var ll=function(){};
_.R(ll,Qn);ll.prototype.getApiPaths=function(){return rmb};
ll.prototype.getExtension=function(I){return _.l(I,v1P)};
ll.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var X6=function(){};
_.R(X6,Qn);X6.prototype.getApiPaths=function(){return bX5};
X6.prototype.getExtension=function(I){return _.l(I,g6e)};
X6.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var $w=function(){};
_.R($w,Qn);$w.prototype.getApiPaths=function(){return Gdm};
$w.prototype.getExtension=function(I){return _.l(I,v6P)};
$w.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var RG=function(){};
_.R(RG,Qn);RG.prototype.getApiPaths=function(){return xF8};
RG.prototype.getExtension=function(I){return _.l(I,V_u)};
RG.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var bl=function(){};
_.R(bl,Qn);bl.prototype.getApiPaths=function(){return UFq};
bl.prototype.getExtension=function(I){return _.l(I,_.WXq)};
bl.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.params&&(I.params=C.params);y.client_message_id&&(I.clientMessageId=y.client_message_id);y.recaptcha_token&&(I.recaptchaToken=y.recaptcha_token);y.rich_message&&y.rich_message.text_segments?(C=y.rich_message.text_segments.map(function(k){var F={};k.text&&(F.text=k.text);k.emoji_id&&(F.emojiId=k.emoji_id);return F}),I.richMessage={textSegments:C}):y.message&&(I.message=y.message);
y.currentPlayerState&&(I.currentPlayerState=y.currentPlayerState)};var Yw=function(){};
_.R(Yw,Qn);Yw.prototype.getApiPaths=function(){return HXu};
Yw.prototype.getExtension=function(I){return _.l(I,die)};
Yw.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var Gw=function(){};
_.R(Gw,Qn);Gw.prototype.getApiPaths=function(){return abP};
Gw.prototype.getExtension=function(I){return _.l(I,qU8)};
Gw.prototype.JSC$11782_buildRequest=function(I,C,y){C.isUserInitiated&&(I.isUserInitiated=C.isUserInitiated);C.initiationSource&&(I.initiationSource=C.initiationSource);y.locationInfo&&(I.context.client.locationInfo=y.locationInfo)};var fr=function(){};
_.R(fr,Qn);fr.prototype.getApiPaths=function(){return YPb};
fr.prototype.getExtension=function(I){return _.l(I,Ae5)};
fr.prototype.JSC$11782_buildRequest=function(I,C,y){C.metadataUpdateRequest&&(C=C.metadataUpdateRequest,I.encryptedVideoId=C.encryptedVideoId,C.liveChat&&(C=C.liveChat,I.liveChat||(I.liveChat={}),C.performAsExternalChannelId&&(I.liveChat.performAsExternalChannelId=C.performAsExternalChannelId),C.source&&(I.liveChat.source=C.source)));var k;if(y==null?0:(k=y.liveChat)==null?0:k.liveChatSettings)I.liveChat||(I.liveChat={}),y=y.liveChat.liveChatSettings,I.liveChat.newLiveChatSettings=y,I.liveChat.newLiveChatSettingsMask||
(I.liveChat.newLiveChatSettingsMask={}),y.emojiReactionSet&&(I.liveChat.newLiveChatSettingsMask.emojiReactionSet=!0)};var SS=function(){};
_.R(SS,Qn);SS.prototype.getApiPaths=function(){return uwb};
SS.prototype.getExtension=function(I){return _.l(I,_.HZq)};
SS.prototype.JSC$11782_buildRequest=function(I,C,y){y.continuation?I.continuation=y.continuation:C.videoId&&(I.videoId=C.videoId);y.clientParams&&(I.clientParams=y.clientParams)};var Kr=function(){};
_.R(Kr,Qn);Kr.prototype.getApiPaths=function(){return iXP};
Kr.prototype.getExtension=function(I){return _.l(I,_.R$)};
Kr.prototype.JSC$11782_buildRequest=function(I,C){I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_COMMENTS";I.fetchCommentsParams={};C.videoId&&(I.fetchCommentsParams.encryptedVideoId=C.videoId);C.postId&&(I.fetchCommentsParams.postId=C.postId);C.externalChannelId&&(I.fetchCommentsParams.externalChannelId=C.externalChannelId);C.linkedCommentId&&(I.fetchCommentsParams.linkedCommentId=C.linkedCommentId);(0,_.Le.isEmpty)(I.fetchCommentsParams)&&delete I.fetchCommentsParams};var AQ=function(){};
_.R(AQ,Qn);AQ.prototype.getApiPaths=function(){return CI};
AQ.prototype.JSC$11782_buildRequest=function(I){I.browseId="FEnotifications_inbox"};
AQ.prototype.getExtension=function(I){return _.l(I,_.w9)};var gj=function(){};
_.R(gj,Qn);gj.prototype.getApiPaths=function(){return iXP};
gj.prototype.JSC$11782_buildRequest=function(I,C){C.signal==="GET_NOTIFICATIONS_MENU"&&(I.notificationsMenuRequestType="NOTIFICATIONS_MENU_REQUEST_TYPE_INBOX");C.ctoken&&(I.ctoken=C.ctoken)};
var Bud=function(){};
_.R(Bud,gj);Bud.prototype.getExtension=function(I){return _.l(I,_.w9)};
var EMb=function(){};
_.R(EMb,gj);EMb.prototype.getExtension=function(I){return _.l(I,D2m)};var vZ=function(){};
_.R(vZ,Qn);vZ.prototype.getApiPaths=function(){return QWb};
vZ.prototype.getExtension=function(I){return _.l(I,_.w9)};
vZ.prototype.JSC$11782_buildRequest=function(){};var WZ=function(){};
_.R(WZ,Qn);WZ.prototype.getApiPaths=function(){return fbw};
WZ.prototype.getExtension=function(I){return _.l(I,ZZS)||void 0};
WZ.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params);C.secondaryParams&&(I.secondaryParams=C.secondaryParams)};var dj=function(){};
_.R(dj,Qn);dj.prototype.getApiPaths=function(){return SPb};
dj.prototype.getExtension=function(I){return _.l(I,Qnq)};
dj.prototype.JSC$11782_buildRequest=function(I,C){C.undo&&(I.undo=C.undo);C.serializedOptOut&&(I.serializedOptOut=C.serializedOptOut);C.serializedRecordInteractionsRequest&&(I.serializedRecordInteractionsRequest=C.serializedRecordInteractionsRequest)};var xw=function(){};
_.R(xw,Qn);xw.prototype.getApiPaths=function(){return gpw};
xw.prototype.getExtension=function(I){return _.l(I,Now)};
xw.prototype.JSC$11782_buildRequest=function(I,C){C.serializedInteractionsRequest&&(I.serializedRecordNotificationInteractionsRequest=C.serializedInteractionsRequest)};var q6=function(){};
_.R(q6,Qn);q6.prototype.getApiPaths=function(){return Mqm};
q6.prototype.getExtension=function(I){return _.l(I,Agm)};
q6.prototype.JSC$11782_buildRequest=function(I,C,y){C=C===void 0?{}:C;y=y===void 0?{}:y;C.videoId?I.videoId=C.videoId:C.playlistId&&(I.playlistId=C.playlistId);var k,F=(k=C.offlineWebClientEligibility)!=null?k:y.offlineWebClientEligibility;F&&(I.offlineWebClientEligibility=F);var z;if(k=(z=C.preferredFormatType)!=null?z:y.preferredFormatType)I.preferredFormatType=k;var c;if(z=(c=C.lastOfflineQualitySettingsSavedMs)!=null?c:y.lastOfflineQualitySettingsSavedMs)I.lastOfflineQualitySettingsSavedMs=z;
C.params&&(I.params=C.params)};var mf=function(){};
_.R(mf,Qn);mf.prototype.getApiPaths=function(){return B3};
mf.prototype.getExtension=function(I){return _.l(I,_.R8)};
mf.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.token&&(I.continuation=C.token);y.formData&&(I.formData=y.formData)};var Zm=function(){};
_.R(Zm,Qn);Zm.prototype.getApiPaths=function(){return B3};
Zm.prototype.getExtension=function(I){return _.l(I,bym)};
Zm.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;I.continuation=y.continuation};var BZ=function(){};
_.R(BZ,Qn);BZ.prototype.getApiPaths=function(){return B3};
BZ.prototype.getExtension=function(I){return _.l(I,_.Gb)};
BZ.prototype.JSC$11782_buildRequest=function(I,C){var y,k=C.panelIdentifier||((y=C.identifier)==null?void 0:y.tag);k&&(I.panelId=k);var F;if((F=C.globalConfiguration)==null?0:F.params){var z;I.params=(z=C.globalConfiguration)==null?void 0:z.params}};
_.H1.Object.defineProperties(BZ.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var EO=function(){};
_.R(EO,Qn);EO.prototype.getApiPaths=function(){return B3};
EO.prototype.getExtension=function(I){return _.l(I,efc)};
EO.prototype.JSC$11782_buildRequest=function(I,C){C.panelLoadingStrategy&&Ugz(I,C.panelLoadingStrategy)};var hQ=function(){};
_.R(hQ,Qn);hQ.prototype.getApiPaths=function(){return B3};
hQ.prototype.getExtension=function(I){return _.l(I,SVY)};
hQ.prototype.JSC$11782_buildRequest=function(I,C){C.loadingStrategy&&Ugz(I,C.loadingStrategy)};var UO=function(){};
_.R(UO,Qn);UO.prototype.getApiPaths=function(){return B3};
UO.prototype.getExtension=function(I){return _.l(I,_.nM)};
UO.prototype.JSC$11782_buildRequest=function(I,C){C.panelLoadingStrategy&&Ugz(I,C.panelLoadingStrategy)};var HZ=function(){};
_.R(HZ,Qn);HZ.prototype.getApiPaths=function(){return B3};
HZ.prototype.getExtension=function(I){return _.l(I,Kau)};
HZ.prototype.JSC$11782_buildRequest=function(I,C){var y,k=(y=C.contentSourcePanelIdentifier)==null?void 0:y.tag;k&&(I.panelId=k);var F;if((F=C.globalConfiguration)==null?0:F.params){var z;I.params=(z=C.globalConfiguration)==null?void 0:z.params}};var tQ=function(){};
_.R(tQ,Qn);tQ.prototype.getApiPaths=function(){return["pdg/get_pdg_buy_flow"]};
tQ.prototype.getExtension=function(I){return _.l(I,Apd)};
tQ.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var JQ=function(){};
_.R(JQ,Qn);JQ.prototype.getApiPaths=function(){return FBe};
JQ.prototype.getExtension=function(I){return _.l(I,Waw)};
JQ.prototype.JSC$11782_buildRequest=function(I,C){C.externalChannelId&&(I.externalChannelId=C.externalChannelId);C.superChatAction&&(I.superChatAction=C.superChatAction);C.superStickersAction&&(I.superStickersAction=C.superStickersAction)};var OO=function(){};
_.R(OO,Qn);OO.prototype.getApiPaths=function(){return ymq};
OO.prototype.getExtension=function(I){return _.l(I,Rtq)||_.l(I,vII)};
OO.prototype.JSC$11782_buildRequest=function(I,C){C.videoIds?I.videoIds=C.videoIds:C.videoId&&(I.videoIds=[C.videoId]);C.playlistId&&(I.playlistId=C.playlistId);C.params&&(I.params=C.params);I.excludeWatchLater=!1};var aG=function(){};
_.R(aG,Qn);aG.prototype.getApiPaths=function(){return H0c};
aG.prototype.getExtension=function(I){return _.l(I,_.KZ)};
aG.prototype.JSC$11782_buildRequest=function(I,C,y){y.create_playlist_title?I.title=y.create_playlist_title:C.title&&(I.title=C.title);if(y.create_playlist_privacy_status&&typeof y.create_playlist_privacy_status==="number"){a:{var k=y.create_playlist_privacy_status;if(k!==0){if(k===1){k="PUBLIC";break a}if(k===2){k="UNLISTED";break a}}k="PRIVATE"}I.privacyStatus=k}else C.privacyStatus&&(I.privacyStatus=C.privacyStatus);y.create_playlist_description&&(I.description=y.create_playlist_description);C.videoIds&&
(I.videoIds=C.videoIds);C.params&&(I.params=C.params);C.sourcePlaylistId&&(I.sourcePlaylistId=C.sourcePlaylistId)};var M6=function(){};
_.R(M6,Qn);M6.prototype.getApiPaths=function(){return O0c};
M6.prototype.getExtension=function(I){return _.l(I,q2w)};
M6.prototype.JSC$11782_buildRequest=function(I,C){I.playlistId=C.playlistId};var I4=function(){};
_.R(I4,Qn);I4.prototype.getApiPaths=function(){return wAq};
I4.prototype.getExtension=function(I){return _.l(I,wCc)};
I4.prototype.JSC$11782_buildRequest=function(I,C){C.playlistId&&(I.playlistId=C.playlistId);C.params&&(I.params=C.params)};var CP=function(){};
_.R(CP,Qn);CP.prototype.getApiPaths=function(){return Am5};
CP.prototype.getExtension=function(I){return _.l(I,_.bv)||void 0};
CP.prototype.JSC$11782_buildRequest=function(I,C){C.actions&&(I.actions=C.actions);C.params&&(I.params=C.params);C.playlistId&&(I.playlistId=C.playlistId)};var sW=function(){};
_.R(sW,Qn);_.u=sW.prototype;_.u.getApiPaths=function(){return vpd};
_.u.getExtension=function(I){return _.l(I,_.PD)};
_.u.JSC$11782_buildRequest=function(I,C){C.videoId&&(I.playerRequest={videoId:C.videoId},C.playerParams&&(I.playerRequest.params=C.playerParams),C.racyCheckOk&&(I.playerRequest.racyCheckOk=!!C.racyCheckOk),C.contentCheckOk&&(I.playerRequest.contentCheckOk=!!C.contentCheckOk));C.params&&(I.params=C.params);C.inputType&&(I.inputType=C.inputType);I.disablePlayerResponse=!0};
_.u.getRequestConfig=function(I){var C;(I=this.JSC$11789_getStoreKey(I))&&(C={storeStrategy:{storeKey:I}});_.V("web_log_reels_ticks")&&(C=C||{},C.requestTick="r_wrs",C.responseTick="r_wrr");return C};
_.u.JSC$11789_getStoreKey=function(I){I=this.getExtension(I);if(_.V("shorts_controller_retrieve_seedless_sequence_v2")){if((I==null?void 0:I.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS")return _.Uh("reel_item_watch",{inputType:"REEL_WATCH_INPUT_TYPE_SEEDLESS"})}else if((_.V("web_prefetch_riw_for_next_video")||_.V("web_shorts_prefetch_service_enabled"))&&I!=null&&I.videoId){var C={videoId:I.videoId};I.params&&(C.params=I.params);return _.Uh("reel_item_watch",C)}};var o4=function(){};
_.R(o4,Qn);_.u=o4.prototype;_.u.getApiPaths=function(){return Wk5};
_.u.getExtension=function(I){return _.l(I,_.PD)};
_.u.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;I.sequenceParams=C.sequenceParams;var k;((k=y)==null?0:k.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(I.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
_.u.JSC$11789_getStoreKey=function(I){if(_.V("shorts_controller_retrieve_seedless_sequence_v2")&&(I=this.getExtension(I),I==null?0:I.sequenceParams))return _.Uh("reel_watch_sequence",{sequenceParams:I.sequenceParams})};
_.u.getRequestConfig=function(I){I=this.JSC$11789_getStoreKey(I);var C;I&&(C={storeStrategy:{storeKey:I}});_.V("reel_watch_sequence_request_log_ticks")&&(C=C||{},C.requestTick="r_wsrs",C.responseTick="r_wsrr",C.processorTick="r_wsrp");return C};
var y7=function(){};
_.R(y7,Qn);y7.prototype.getApiPaths=function(){return Wk5};
y7.prototype.getExtension=function(I){return _.l(I,_.R8)};
y7.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.token&&(I.continuation=C.token);var k;((k=y)==null?0:k.contentPlaybackContext)&&_.V("web_shorts_prefetch_service_enabled")&&(I.playbackContext={contentPlaybackContext:y.contentPlaybackContext})};
y7.prototype.getRequestConfig=function(I){I=this.JSC$11789_getStoreKey(I);var C;I&&(C={storeStrategy:{storeKey:I}});_.V("reel_watch_sequence_request_log_ticks")&&(C=C||{},C.requestTick="r_wsrs",C.responseTick="r_wsrr",C.processorTick="r_wsrp");return C};var kD=function(){};
_.R(kD,Qn);kD.prototype.getApiPaths=function(){return Cee};
kD.prototype.getExtension=function(I){return _.l(I,_.Ejm)};
kD.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.flagAction&&(I.action=C.flagAction);C.flagRequestType&&(I.flagRequestType=C.flagRequestType);C.additionalDetailCheckboxChecked&&(I.additionalDetailCheckboxChecked=C.additionalDetailCheckboxChecked);C.legalCheckboxChecked&&(I.legalCheckboxChecked=C.legalCheckboxChecked);C={};y.flag_issue_type!==void 0&&(C.issue=y.flag_issue_type);y.flag_affiliation!==void 0&&(C.affiliation=y.flag_affiliation);y.flag_full_name&&(C.fullName=y.flag_full_name);
Object.keys(C).length&&(I.legalReportDetails=C);if(y.flag_description||y.text)I.userComments=y.flag_description||y.text;C={};y.minutes!==void 0&&y.seconds!==void 0&&(C.minutes=y.minutes,C.seconds=y.seconds);y.vss_id&&(C.vssId=y.vss_id);Object.keys(C).length&&(I.videoReportDetails=C);C={};y.video_ids&&(C.videoIds=y.video_ids);y.impersonated_channel_url&&(C.impersonatedChannelUrl=y.impersonated_channel_url);Object.keys(C).length&&(I.channelAbuseReportDetails=C)};
_.H1.Object.defineProperties(kD.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var FM=function(){};
_.R(FM,Qn);FM.prototype.getApiPaths=function(){return uN0};
FM.prototype.getExtension=function(I){return _.l(I,Di8)};
FM.prototype.JSC$11782_buildRequest=function(I,C){C.blockedForKidsContent&&(I.blockedForKidsContent=C.blockedForKidsContent)};var uN=function(){};
_.R(uN,Qn);uN.prototype.getApiPaths=function(){return qPq};
uN.prototype.getExtension=function(I){return _.l(I,gIz)};
uN.prototype.JSC$11782_buildRequest=function(I,C,y){I.params=C.params;y.impersonated_channel_url&&(I.impersonatedChannelUrl=y.impersonated_channel_url)};var zc=function(){};
_.R(zc,Qn);zc.prototype.getApiPaths=function(){return XAb};
zc.prototype.getExtension=function(I){return _.l(I,_.plq)};
zc.prototype.JSC$11782_buildRequest=function(I,C){C.items&&(I.items=C.items);C.kidGaiaId&&(I.kidGaiaId=C.kidGaiaId)};var Tc=function(){};
_.R(Tc,Qn);Tc.prototype.getApiPaths=function(){return kde};
Tc.prototype.getExtension=function(I){return _.l(I,_.XVY)};
Tc.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params);C.targetId&&(I.targetId=C.targetId)};var cG=function(){};
_.R(cG,Qn);cG.prototype.getApiPaths=function(){return Epb};
cG.prototype.getExtension=function(I){return _.l(I,pfw)};
cG.prototype.JSC$11782_buildRequest=function(I,C){C.externalVideoId&&(I.externalVideoId=C.externalVideoId);C.query&&(I.query=C.query);C.sourceTimelines&&(I.sourceTimelines=C.sourceTimelines)};var e8=function(){};
_.R(e8,Qn);e8.prototype.getApiPaths=function(){return hvS};
e8.prototype.getExtension=function(I){return _.l(I,_.R8)||void 0};
e8.prototype.JSC$11782_buildRequest=function(I,C){C.token&&(I.continuation=C.token)};
_.hpP=function(){};
_.R(_.hpP,Qn);_.u=_.hpP.prototype;_.u.getApiPaths=function(){return hvS};
_.u.getExtension=function(I){return _.l(I,_.ig)||void 0};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$11789_getStoreKey=function(I,C){C=C===void 0?{}:C;if(!C.disableCache&&(I=this.getExtension(I))&&I.query)return C={query:I.query},I.params&&(C.params=I.params),_.Uh("search",C)};
_.u.JSC$11782_buildRequest=function(I,C,y){C.query&&(I.query=C.query);C.params&&(I.params=C.params);if(!_.V("web_forward_suggest_stats_killswitch")){var k=_.l(C,uCP);k&&(I.suggestStats=k)}var F;!_.V("kevlar_searchbox_stats_killswitch")&&((F=y.tempData)==null?0:F.gs_l)&&!_.l(C,uCP)&&(I.webSearchboxStatsUrl="/search?oq="+(y.tempData.oq||"")+"&gs_l="+y.tempData.gs_l);var z;if((z=y.tempData)==null?0:z.entityMid)C=I.suggestionSearchParams||{},C.entityMid=y.tempData.entityMid,I.suggestionSearchParams=C};
_.u.getRequestConfig=function(I,C){C=C===void 0?{}:C;I=this.JSC$11789_getStoreKey(I,C);var y;I&&(y={storeStrategy:{storeKey:I}});_.V("web_log_search_ticks_ks")||(y=y||{},y.requestTick="sr_s",y.responseTick="sr_r");return y};var rg=function(){};
_.R(rg,Qn);rg.prototype.getApiPaths=function(){return DF8};
rg.prototype.getExtension=function(I){return _.l(I,MVq)};
rg.prototype.JSC$11782_buildRequest=function(I,C){C.serializedGetSharingProviderDataParams&&(I.serializedGetSharingProviderDataParams=C.serializedGetSharingProviderDataParams)};var iN=function(){};
_.R(iN,Qn);iN.prototype.getApiPaths=function(){return pA5};
iN.prototype.getExtension=function(I){return _.l(I,x2w)};
iN.prototype.JSC$11782_buildRequest=function(I,C){C.endpoint&&(I.endpoint=C.endpoint);C.action&&(I.action=C.action)};var wg=function(){};
_.R(wg,Qn);wg.prototype.getApiPaths=function(){return aLP};
wg.prototype.getExtension=function(I){return _.l(I,mDq)};
wg.prototype.JSC$11782_buildRequest=function(I,C){I.videoId=C.videoId;C.scheduledRedirectMetadataSourceVideoId&&(I.scheduledRedirectMetadata={sourceVideoId:C.scheduledRedirectMetadataSourceVideoId})};var Uhd=XMLHttpRequest.prototype.fetch,Hjc=Uhd&&Uhd.length===3?!0:typeof window.fetch==="function"&&window.ReadableStream&&window.AbortController&&!E8?!0:!1;var nP=function(I){this.JSC$15812_storeWithEntities=I};
_.R(nP,Qn);_.u=nP.prototype;_.u.getApiPaths=function(){return Kkc};
_.u.getExtension=function(I){return _.l(I,_.H$)||_.l(I,_.PD)||_.l(I,Bo5)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$11789_getStoreKey=function(I){if((_.V("kevlar_cache_on_ttl_player")||_.V("mweb_enable_shorts_innertube_player_prefetch")||_.V("mweb_use_new_history_manager")||_.V("web_shorts_prefetch_service_enabled"))&&(I=this.getExtension(I))&&I.videoId){var C={videoId:I.videoId};I.playlistId&&(C.playlistId=I.playlistId);I.playerParams&&(C.params=I.playerParams);return _.Uh("player",C)}};
_.u.JSC$11782_getClientScreen=function(I){var C;return((C=I.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.u.JSC$11782_buildRequest=function(I,C,y){if(_.V("enable_interstitial_entity_check")){var k=this.JSC$15812_storeWithEntities;if(C.videoId)for(var F=_.T(["CONTENT_CHECK_REQUIRED","AGE_CHECK_REQUIRED"]),z=F.next();!z.done;z=F.next()){z=z.value;var c;var r=void 0,w=void 0,L=C.videoId,D=z;(c=k)?(L=_.TL(L+D,"interstitialInteractionStateEntity"),c=(r=(w=_.cg(c.getState().entities,"interstitialInteractionStateEntity",L))==null?void 0:w.primaryButtonClicked)!=null?r:!1):c=!1;if(c)switch(z){case "CONTENT_CHECK_REQUIRED":C.contentCheckOk=
!0;break;case "AGE_CHECK_REQUIRED":C.racyCheckOk=!0}}}C.videoId&&(I.videoId=C.videoId);C.playlistId&&(I.playlistId=C.playlistId);C.index!==void 0&&(I.playlistIndex=C.index+1);C.playerParams&&(I.params=C.playerParams);"startTimeSeconds"in C&&C.startTimeSeconds&&(_.V("enable_player_request_builder_start_time_floor")?I.startTimeSecs=Math.floor(C.startTimeSeconds):I.startTimeSecs=C.startTimeSeconds);y.contentPlaybackContext&&(I.playbackContext={contentPlaybackContext:y.contentPlaybackContext});y.prefetchPlaybackContext&&
(I.playbackContext=Object.assign({},I.playbackContext,{prefetchPlaybackContext:y.prefetchPlaybackContext}),I.context.request||(I.context.request={}),I.context.request.isPrefetch=!0);I.playbackContext||(I.playbackContext={});k=yD5();I.playbackContext.devicePlaybackCapabilities={supportsVp9Encoding:!!k,supportXhr:Hjc};y.overrideMutedAtStart&&(I.overrideMutedAtStart=y.overrideMutedAtStart);I.racyCheckOk=!!C.racyCheckOk;I.contentCheckOk=!!C.contentCheckOk;!_.V("captions_prefs_killswitch")&&(y=(y=_.Fk("yt-player-caption-language-preferences"))?
y:[],y==null?0:y.length)&&(I.captionParams={viewerSelectedCaptionLangs:y})};
_.u.getRequestConfig=function(I){I=this.JSC$11789_getStoreKey(I);var C;I&&(C={storeStrategy:{storeKey:I}});_.V("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="ps_s",C.responseTick="ps_r");return C};
nP[tj]=[cJ];var PG=function(){};
_.R(PG,Qn);PG.prototype.getApiPaths=function(){return Jm8};
PG.prototype.getExtension=function(I){return _.l(I,_.l4d)};
PG.prototype.JSC$11782_buildRequest=function(I,C){I.params=C.params;I.correctionText=C.correctionText};var LP=function(){};
_.R(LP,Qn);LP.prototype.getApiPaths=function(){return O3m};
LP.prototype.getExtension=function(I){return _.l(I,_.QzY)};
LP.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params);I.searchQuery=C.searchQuery;I.languageCode=C.languageCode;I.kind=C.kind;I.name=C.name;I.externalVideoId=C.externalVideoId};var D6=function(){};
_.R(D6,Qn);_.u=D6.prototype;_.u.getApiPaths=function(){return cxb};
_.u.getExtension=function(I){return _.l(I,_.H$)};
_.u.isNavigationCommand=function(){return!0};
_.u.JSC$11789_getStoreKey=function(I){if((I=this.getExtension(I))&&I.videoId){var C={videoId:I.videoId};I.playlistId&&(C.playlistId=I.playlistId);I.index&&(C.index=I.index);I.params&&(C.params=I.params);return _.Uh("next",C)}};
_.u.JSC$11782_getClientScreen=function(I){var C;return((C=I.contentPlaybackContext)==null?void 0:C.vis)===2?"WATCH_FULL_SCREEN":"WATCH"};
_.u.JSC$11782_buildRequest=function(I,C,y){C.videoId&&(I.videoId=C.videoId);C.playlistId&&(I.playlistId=C.playlistId);C.params&&(I.params=C.params);C.index!==void 0&&(I.playlistIndex=C.index);I.racyCheckOk=!(!y.racyCheckOk&&!C.racyCheckOk);I.contentCheckOk=!!C.contentCheckOk;y.contentPlaybackContext&&(I.autonavState=y.contentPlaybackContext.autonavState,I.playbackContext={vis:y.contentPlaybackContext.vis,lactMilliseconds:y.contentPlaybackContext.lactMilliseconds});y.prefetchPlaybackContext&&(I.context.request||
(I.context.request={}),I.context.request.isPrefetch=!0);_.V("captions_hats_killswitch")||(C=_.pA().getFlag(65),C=C!=null?!C:!1,y=!!_.Fk("yt-player-sticky-caption"),I.captionsRequested=C&&y)};
_.u.getRequestConfig=function(I){I=this.JSC$11789_getStoreKey(I);var C;I&&(C={storeStrategy:{storeKey:I}});_.V("web_log_player_watch_next_ticks")&&(C=C||{},C.requestTick="wn_s",C.responseTick="wn_r");return C};
var pP=function(){};
_.R(pP,Qn);pP.prototype.getApiPaths=function(){return cxb};
pP.prototype.getExtension=function(I){return _.l(I,_.R8)};
pP.prototype.JSC$11782_buildRequest=function(I,C){C.token&&(I.continuation=C.token)};var Q7=function(I,C){this.playerRequestBuilder=I;this.watchNextRequestBuilder=C};
_.R(Q7,ryw);Q7.prototype.getApiPaths=function(){return VDb};
Q7.prototype.getExtension=function(I){return _.l(I,_.H$)};
Q7.prototype.isNavigationCommand=function(){return!0};
Q7.prototype.JSC$11782_buildRequest=function(I,C,y){I.playerRequest={};I.watchNextRequest={};this.playerRequestBuilder.JSC$11782_buildRequest(I.playerRequest,C,y);this.watchNextRequestBuilder.JSC$11782_buildRequest(I.watchNextRequest,C,y)};
Q7[tj]=[nP,D6];var NQ=function(){};
_.R(NQ,Qn);NQ.prototype.getApiPaths=function(){return erY};
NQ.prototype.getExtension=function(I){return _.l(I,dXb)};
NQ.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.params=C.params)};var V7=function(I){this.JSC$15839_storeWithEntities=I};
_.R(V7,Qn);V7.prototype.getApiPaths=function(){return qt0};
V7.prototype.getExtension=function(I){return _.l(I,q70)||_.l(I,Zu5)};
V7.prototype.JSC$11782_buildRequest=function(I,C,y){y.client_data&&(I.clientData=y.client_data);if(C.commerceActionConfig){var k=C.commerceActionConfig;C=k.actionId;k=k.commerceActionParams;C&&(I.actionId=C);k&&(I.commerceActionParams=k)}else{var F=C.actionId,z=C.commerceActionParams;y=C.entityKeys;F&&(I.actionId=F);z&&(I.commerceActionParams=z);var c;C=(k=this.JSC$15839_storeWithEntities)==null?void 0:(c=k.getState())==null?void 0:c.entities;if(y&&C){k=[];c=_.T(y);for(y=c.next();!y.done;y=c.next())if(F=
y.value,y=_.Fy(F).entityType,F=_.cg(C,y,F))z={},k.push((z[y]=F,z));I.entityMutationPayloads=k}}};
V7.prototype.getRequestConfig=function(I){var C,y=(C=_.l(I,q70))==null?void 0:C.requestSequenceType;if(y&&I.clickTrackingParams&&y!=="REQUEST_SEQUENCE_TYPE_UNKNOWN")return{sequenceStrategy:{sequenceKey:I.clickTrackingParams,sequenceType:y}}};
V7[tj]=[cJ];var j8=function(){};
_.R(j8,Qn);j8.prototype.getApiPaths=function(){return rxu};
j8.prototype.getExtension=function(I){return _.l(I,_.ukq)};
j8.prototype.JSC$11782_buildRequest=function(I,C){C.feedbackData&&(I.feedbackData=C.feedbackData);C.params&&(I.itemParams=C.params)};
_.H1.Object.defineProperties(j8.prototype,{includeCsn:{configurable:!0,enumerable:!0,get:function(){return!0}}});var lN=function(){};
_.R(lN,Qn);lN.prototype.getApiPaths=function(){return iN8};
lN.prototype.getExtension=function(I){return _.l(I,ziw)};
lN.prototype.JSC$11782_buildRequest=function(I,C,y){y.payments_payload&&(I.paymentsPayload=y.payments_payload);y.offer_params&&(I.offerParams=y.offer_params);C.transactionParams&&(I.transactionParams=C.transactionParams)};var XM=function(){};
_.R(XM,Qn);XM.prototype.getApiPaths=function(){return wwP};
XM.prototype.getExtension=function(I){return _.l(I,_.Tx5)};
XM.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.buybucketParams&&(I.buybucketData={params:C.buybucketParams},C.stickerParams?I.buybucketData.stickerParams=C.stickerParams:(y.rich_chat_message?I.buybucketData.richChatMessage=y.rich_chat_message:y.chat_message_text&&(I.buybucketData.chatMessageText=y.chat_message_text),y.purchase_price_micros&&(I.buybucketData.purchasePriceMicros=y.purchase_price_micros.toString())));C.donationAmountMicros&&(I.tipAmountMicros=C.donationAmountMicros,
C.tipParams&&(I.tipParams=C.tipParams));C.offerParams&&(I.offerParams=C.offerParams);C.productData&&(I.productData=C.productData);C.transactionParams&&(I.transactionParams=C.transactionParams)};var $D=function(){};
_.R($D,Qn);$D.prototype.getApiPaths=function(){return nxq};
$D.prototype.getExtension=function(I){return _.l(I,rsw)};
$D.prototype.JSC$11782_buildRequest=function(I,C){C.updateFopParams&&(I.updateFopParams=C.updateFopParams)};var R4=function(){};
_.R(R4,Qn);R4.prototype.getApiPaths=function(){return PZq};
R4.prototype.getExtension=function(I){return _.l(I,_.sd)};
R4.prototype.JSC$11782_buildRequest=function(I,C){C.couponCode&&(I.couponCode=C.couponCode);C.params&&(I.itemParams=C.params)};var bN=function(){};
_.R(bN,Qn);bN.prototype.getApiPaths=function(){return LBe};
bN.prototype.getExtension=function(I){return _.l(I,_.mX0)};
bN.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;C.params&&(I.params=C.params);y.ctk&&(I.clientToken=y.ctk)};var YD=function(I){this.JSC$15874_storeWithEntities=I};
_.R(YD,Qn);YD.prototype.getApiPaths=function(){return DfP};
YD.prototype.getExtension=function(I){return _.l(I,_.gO)};
YD.prototype.JSC$11782_buildRequest=function(I,C,y){y.purchase_price_micros&&(I.productData={pdgData:{purchasePriceMicros:y.purchase_price_micros.toString()}},y.rich_chat_message&&(I.productData.pdgData.richChatMessage=y.rich_chat_message),y.currency_code&&(I.productData.pdgData.currencyCode=y.currency_code));C.transactionParams&&(I.transactionParams=C.transactionParams);C.clientLocationContext&&(I.clientLocationContext=C.clientLocationContext);y.payments_payload&&(I.paymentsPayload=y.payments_payload);
y.funds_guarantee_callback_client_data&&(I.fundsGuaranteeCallbackClientData=y.funds_guarantee_callback_client_data);var k,F;y=(k=this.JSC$15874_storeWithEntities)==null?void 0:(F=k.getState())==null?void 0:F.entities;if(C.entityKeys&&y){k=[];C=_.T(C.entityKeys);for(F=C.next();!F.done;F=C.next()){var z=F.value;F=_.Fy(z).entityType;if(z=_.cg(y,F,z)){var c={};k.push((c[F]=z,c))}}I.entityMutationPayloads=k}};
YD[tj]=[cJ];var Gc=function(){};
_.R(Gc,Qn);Gc.prototype.getApiPaths=function(){return pww};
Gc.prototype.getExtension=function(I){return _.l(I,csS)};
Gc.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;y.backend_analytics&&(I.serializedBackendAnalyticsEvent=y.backend_analytics);C.offerParams&&(I.offerParams=C.offerParams)};var fP=function(){};
_.R(fP,Qn);fP.prototype.getApiPaths=function(){return PZq};
fP.prototype.getExtension=function(I){return _.l(I,uFz)};
fP.prototype.JSC$11782_buildRequest=function(I,C){C.params&&(I.itemParams=C.params)};var S8=function(){};
_.R(S8,Qn);S8.prototype.getApiPaths=function(){return QsP};
S8.prototype.getExtension=function(I){return _.l(I,_.Hu0)};
S8.prototype.JSC$11782_buildRequest=function(I,C,y){y.resume_time_ms&&(I.resumeTimeMs=y.resume_time_ms);C.pauseParams&&(I.pauseParams=C.pauseParams)};var KP=function(){};
_.R(KP,Qn);KP.prototype.getApiPaths=function(){return Nnc};
KP.prototype.getExtension=function(I){return _.l(I,_.ei5)};
KP.prototype.JSC$11782_buildRequest=function(I,C,y){y=y===void 0?{}:y;y.c&&(I.redeemCode=y.c);y.rd&&(I.riskData=y.rd);y.ctk&&(I.clientToken=y.ctk)};var A1=function(){};
_.R(A1,Qn);A1.prototype.getApiPaths=function(){return VH8};
A1.prototype.getExtension=function(I){return _.l(I,_.tom)};
A1.prototype.JSC$11782_buildRequest=function(I,C){C.resumeParams&&(I.resumeParams=C.resumeParams)};var gg=function(I,C){this.clientName=I;this.defaultExpirationDelayMs=C};
gg.prototype.put=function(I,C){var y=this,k;return _.e(function(F){k=Object.assign({},C.data);k.key=I;k.clientName=y.clientName;k.expireTimestampMs===void 0&&(k.expireTimestampMs=(Math.round((0,_.JY)())+y.defaultExpirationDelayMs).toString());return F.return(y.putInternal(I,k))})};
gg[tj]=[e$,zpc];var tYc=function(){gg.apply(this,arguments);this.JSC$15904_responseStore=new Map};
_.R(tYc,gg);_.u=tYc.prototype;_.u.get=function(I){var C=this;return _.e(function(y){return y.return(Mf(C,I))})};
_.u.putInternal=function(I,C){var y=this,k,F,z;return _.e(function(c){k=y.defaultExpirationDelayMs;C.expireTimestampMs&&(k=Number(C.expireTimestampMs)-Math.round((0,_.JY)()),F=_.s8("mweb_override_response_store_expiration_ms"),F>0&&F<k&&(k=F));z=setTimeout(function(){y.remove(I)},k);
y.JSC$15904_responseStore.set(I,{entryData:C,timer:z});_.oI(c)})};
_.u.remove=function(I){var C=this;return _.e(function(y){JAw(C,I);_.oI(y)})};
_.u.removeAll=function(){var I=this;return _.e(function(C){I.JSC$15904_responseStore.forEach(function(y){clearTimeout(y.timer)});
I.JSC$15904_responseStore.clear();_.oI(C)})};
_.u.has=function(I){return!!this.JSC$15904_responseStore.get(I)};
_.u.getKeys=function(){return this.JSC$15904_responseStore.keys()};
var Mf=function(I,C){if(I=I.JSC$15904_responseStore.get(C))return new _.as(I.entryData)},JAw=function(I,C){var y=I.JSC$15904_responseStore.get(C);
y&&(clearTimeout(y.timer),I.JSC$15904_responseStore.delete(C))};var HSm;var OSF=function(I,C,y){gg.call(this,I,C);this.token=y};
_.R(OSF,gg);_.u=OSF.prototype;_.u.get=function(I){var C=this,y,k;return _.e(function(F){return F.nextAddress==1?_.n(F,JdI(C.token),2):F.nextAddress!=3?(y=F.yieldResult,_.n(F,y.get("ResponseStore",[I,C.clientName]),3)):(k=F.yieldResult)?F.return(new _.as(k)):F.return(void 0)})};
_.u.putInternal=function(I,C){var y=this,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,JdI(y.token),2);k=F.yieldResult;return _.n(F,k.put("ResponseStore",C),0)})};
_.u.remove=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,JdI(C.token),2);y=k.yieldResult;return k.return(y.delete("ResponseStore",[I,C.clientName]))})};
_.u.removeAll=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,JdI(I.token),2);C=y.yieldResult;return _.n(y,NT5(C,IDBKeyRange.only(I.clientName)),0)})};
_.u.has=function(){throw Error("Vi");};_.vG=new _.Jj("PERSISTENT_STORE_PROMISE_ACCESSOR_TOKEN");var Ojc=function(I){var C;this.stateTagsData=(C=I.responseContext)==null?void 0:C.stateTags},aMe=function(I){var C;
return((C=I.stateTagsData)==null?void 0:C.stateTagsModified)||[]};var MYb;MYb=function(I){this.JSC$15917_responseStore=I};
_.me=function(I,C,y){if(!_.V("state_tags_killswitch")){var k=new Ojc(C);if(aMe(k).length>0){var F=I.JSC$15917_responseStore.getKeys();F=_.T(F);for(var z=F.next();!z.done;z=F.next()){z=z.value;var c=Mf(I.JSC$15917_responseStore,z);if(c){var r=_.zb(c);a:{var w=void 0;c=aMe(k);r=((w=(new Ojc(r)).stateTagsData)==null?void 0:w.relevantStateTags)||[];w=_.T(r);for(r=w.next();!r.done;r=w.next())if(r=r.value,r.stateTag!=null&&c.includes(r.stateTag)&&r.onStateTagModified==="STATE_TAG_CACHE_INSTRUCTION_EVICT_RESPONSE"){c=
!0;break a}c=!1}c&&JAw(I.JSC$15917_responseStore,z)}}}}var L;k=(L=C.responseContext)==null?void 0:L.maxAgeSeconds;_.V("web_prefetch_riw_for_next_video")&&!k&&C.status==="REEL_ITEM_WATCH_STATUS_SUCCEEDED"&&(k=3600);y&&k&&Number(k)>0&&(C=M3(C,k),I.JSC$15917_responseStore.put(y,new _.as(C)))};
MYb.prototype.handleResponse=function(I,C){if(!C)throw Error("Wi");var y,k;C=(y=C.config)==null?void 0:(k=y.storeStrategy)==null?void 0:k.storeKey;_.me(this,I,C)};
MYb[tj]=[_.O_];_.d0I=new _.Jj("STORE_RESPONSE_PROCESSOR_TOKEN");var ItK=function(I){this.JSC$15920_responseStore=I};
ItK.prototype.handleResponse=function(I,C){if(C.input.match(_.tS(Wk5))){var y;if(I==null?0:(y=I.entries)==null?0:y.length)for(I=_.T(I.entries),C=I.next();!C.done;C=I.next()){y=C.value.command;var k=void 0;C=(k=_.l(y,_.PD))==null?void 0:k.unserializedPrefetchData;if(!y||!C)break;k=(new sW).JSC$11789_getStoreKey(y);var F=_.l(C,Tkw),z=void 0,c=void 0,r=void 0,w=_.s8("web_shorts_prefetch_service_ttl_seconds")>0?_.s8("web_shorts_prefetch_service_ttl_seconds"):Number((r=(z=F)==null?void 0:(c=z.responseContext)==
null?void 0:c.maxAgeSeconds)!=null?r:3600);k&&w>0&&(F=M3(F,w),this.JSC$15920_responseStore.put(k,new _.as(F)));y=(new nP).JSC$11789_getStoreKey(y);C=_.l(C,U7P);z=F=k=void 0;c=_.s8("web_shorts_prefetch_service_ttl_seconds")>0?_.s8("web_shorts_prefetch_service_ttl_seconds"):Number((z=(k=C)==null?void 0:(F=k.responseContext)==null?void 0:F.maxAgeSeconds)!=null?z:3600);y&&c>0&&(C=M3(C,c),this.JSC$15920_responseStore.put(y,new _.as(C)))}}};
ItK[tj]=[_.O_];var WG=function(){this.scheduler=_.R7()},CKB;
WG.prototype.pause=function(){throw Error("Xi");};
WG.prototype.resume=function(){throw Error("Xi");};
WG.prototype.queue=function(I){var C=this,y=_.vP(),k=_.NU(this.scheduler,function(){try{var F;if(_.FW.instance)var z=_.FW.instance;else{var c=new _.ph("Error: Unexpected uninitialized CommandHandler.");_.GB(c);z=void 0}(F=z)==null||F.resolveCommand(I.command);y.resolve()}catch(r){y.reject(r)}});
y.promise.thenCatch(function(F){F instanceof _.qJ&&C.scheduler.cancelJob(k)});
return y.promise};
WG.prototype.queueAll=function(I){var C=new Map;I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,C.set(y.id,this.queue(y));return C};var ozY=function(I,C){var y=this;this.taskModel=I;this.onTaskCancelledCallback=C;this.resolver=_.vP();I=I.proto.prefetchConfig;if(!I)throw Error("Yi");if(!I.prefetchAction)throw Error("Zi");this.prefetchConfig=this.taskModel.proto.prefetchConfig;this.cancellablePromise=this.resolver.promise.thenCatch(function(k){k instanceof _.qJ&&(smj(y,y.taskModel.cancelOn.screenExit?"CANCELLATION_REASON_PAGE_NAVIGATION":"CANCELLATION_REASON_UNKNOWN"),y.onTaskCancelledCallback(y.taskModel.id,y.jobId),y.tick("pcc"));
throw k;});
this.timerName=this.taskModel.id;_.fA(this.prefetchConfig.prefetchAction,void 0,this.timerName,this.prefetchConfig.prefetchAction)},yXY=function(I){switch(I.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":return 3;
case "PREFETCH_PRIORITY_MEDIUM":return 2;case "PREFETCH_PRIORITY_LOW":return 1;default:return 0}},smj=function(I,C){_.Gg({prefetchInfo:{cancellationReason:C}},I.timerName)};
ozY.prototype.tick=function(I){_.Sr(I,void 0,this.timerName)};var xD=function(){var I=this;this.scheduler=_.R7();this.maxInflightTasks=_.s8("prefetch_coordinator_max_inflight_requests");this.coordinatorTimeoutMs=_.s8("prefetch_coordinator_command_timeout_ms");this.prefetchCoordinatorState=0;this.allPrefetchTasks=new Map;this.inflightPrefetchTasks=new Map;this.drainingHeap=new BWd;this.onTaskCancelled=function(C,y){y&&I.scheduler.cancelJob(y);kI8(I,C);dg(I,3)}},FYL=function(){xD.instance||(xD.instance=new xD);
return xD.instance};
xD.prototype.pause=function(){this.prefetchCoordinatorState=0};
xD.prototype.resume=function(){dg(this,0)};
xD.prototype.queue=function(I){I=uOK(this,I);dg(this,1);return I};
xD.prototype.queueAll=function(I){var C=new Map;I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,C.set(y.id,uOK(this,y));dg(this,1);return C};
var uOK=function(I,C){var y=I.allPrefetchTasks.get(C.id);if(y)return y.cancellablePromise;try{var k=new ozY(C,I.onTaskCancelled)}catch(z){return _.mr(z)}y=k;y.tick("pcq");var F={prefetchInfo:{taskId:y.taskModel.id,isPrefetch:!0,fetchAction:y.prefetchConfig.fetchAction},actionVisualElement:{trackingParams:y.taskModel.command.clickTrackingParams}};y.taskModel.csn&&(F.clientScreenNonce=y.taskModel.csn);_.Gg(F,y.timerName);I.allPrefetchTasks.set(C.id,k);I.drainingHeap.insert(-yXY(k),k);return k.cancellablePromise},
dg=function(I,C){I.prefetchCoordinatorState===C&&(I.prefetchCoordinatorState=2,zmy(I))},zmy=function(I){for(var C={};I.prefetchCoordinatorState!==0;C={taskId$jscomp$3:void 0,
prefetchTask$jscomp$1:void 0}){if(I.inflightPrefetchTasks.size>=I.maxInflightTasks){I.prefetchCoordinatorState=3;break}C.prefetchTask$jscomp$1=I.drainingHeap.remove();if(!C.prefetchTask$jscomp$1){I.prefetchCoordinatorState=1;break}C.taskId$jscomp$3=C.prefetchTask$jscomp$1.taskModel.id;if(I.allPrefetchTasks.has(C.taskId$jscomp$3)){var y=-1;I.coordinatorTimeoutMs>0&&(y=_.NU(I.scheduler,function(k){return function(){qQ(I,k.taskId$jscomp$3,Error("$i"))}}(C),I.coordinatorTimeoutMs));
I.inflightPrefetchTasks.set(C.taskId$jscomp$3,y);if(!I.JSC$15936_commandHandler){if(!_.FW.instance){qQ(I,C.taskId$jscomp$3,Error("aj"));continue}I.JSC$15936_commandHandler=_.FW.instance}a:switch(C.prefetchTask$jscomp$1.prefetchConfig.priority){case "PREFETCH_PRIORITY_HIGH":case "PREFETCH_PRIORITY_MEDIUM":y=1;break a;default:y=0}C.prefetchTask$jscomp$1.jobId=I.scheduler.addJob(function(k){return function(){k.prefetchTask$jscomp$1.tick("pcr");try{I.JSC$15936_commandHandler.resolveCommand(k.prefetchTask$jscomp$1.taskModel.command)||
qQ(I,k.taskId$jscomp$3,Error("bj"))}catch(F){qQ(I,k.taskId$jscomp$3,F)}}}(C),y,0)}}},THS=function(I,C){(C=kI8(I,C))!=null&&(C.resolver.resolve(),C.tick("pce"));
dg(I,3)},qQ=function(I,C,y){(C=kI8(I,C,y))!=null&&(C.resolver.reject(y),C.tick("pcc"),smj(C,"CANCELLATION_REASON_ERROR"),Math.random()<=_.s8("prefetch_coordinator_error_logging_sampling_rate")&&(y=new _.ph("Prefetch Command failed.",C.taskModel.id,y.message),_.GB(y)));
dg(I,3)},kI8=function(I,C,y){var k=I.allPrefetchTasks.get(C);
k?((y=I.inflightPrefetchTasks.get(C))&&y!==-1&&I.scheduler.cancelJob(y),I.inflightPrefetchTasks.delete(C),I.allPrefetchTasks.delete(C)):_.SN(new _.ph("Unexpected missing prefetch task when deleting task.",C,y==null?void 0:y.message));return k};var cXL=function(I,C,y,k,F){this.id=I;this.triggerOn=C;this.cancelOn=y;this.command=k;this.proto=F};
_.H1.Object.defineProperties(cXL.prototype,{taskType:{configurable:!0,enumerable:!0,get:function(){return this.proto.prefetchConfig?0:1}}});var emL=function(){this.JSC$15941_prefetchCoordinator=FYL();CKB||(CKB=new WG);this.defaultCoordinator=CKB},rXL;
emL.getInstance=function(){rXL||(rXL=new emL);return rXL};
emL.prototype.get=function(I){switch(I){case 0:return this.JSC$15941_prefetchCoordinator;default:return this.defaultCoordinator}};var mG=function(){this.coordinatorSupplier=emL.getInstance();this.tasks=new Map;this.taskIdByTriggerId=new Map;this.taskIdByCancelId=new Map;this.queuedPromisesByTask=new Map},nzM=function(I){var C=_.Si()||void 0,y=Object.keys(i9j)[0];
if(y){var k=I.taskIdByTriggerId.get(y);if(k!=null){I.taskIdByTriggerId.delete(y);y=[];k=_.T(k);for(var F=k.next();!F.done;F=k.next())if(F=I.tasks.get(F.value))C!=="UNDEFINED_CSN"&&(F.csn=C),y.push(F);y=Ipm(y);C=[];y=_.T(y);for(k=y.next();!k.done;k=y.next()){F=_.T(k.value);k=F.next().value;F=F.next().value;k=I.coordinatorSupplier.get(k).queueAll(F);k=_.T(k);var z=k.next();for(F={};!z.done;F={taskId$jscomp$9:void 0},z=k.next()){var c=_.T(z.value);z=c.next().value;c=c.next().value;F.taskId$jscomp$9=
z;z=c;C.push(F.taskId$jscomp$9);I.queuedPromisesByTask.set(F.taskId$jscomp$9,_.N2(z,function(r){return function(){wsP(I,r.taskId$jscomp$9)}}(F)))}}}}else _.SN(new _.ph("Unexpected malformed TriggerEvent."))};
mG.prototype.trigger=function(I,C){var y=this,k=this.tasks.get(I);if(!k||this.queuedPromisesByTask.has(I))return!1;PKK(this,I,k.triggerOn);C!=="UNDEFINED_CSN"&&(k.csn=C);C=this.coordinatorSupplier.get(k.taskType).queue(k);this.queuedPromisesByTask.set(I,_.N2(C,function(){wsP(y,I)}));
return!0};
mG.prototype.cancel=function(I){var C=this.queuedPromisesByTask.get(I);if(C)C.cancel();else return wsP(this,I)};
var wsP=function(I,C){I.queuedPromisesByTask.delete(C);var y=I.tasks.get(C);if(!y)return!1;I.tasks.delete(C);PKK(I,C,y.triggerOn);(y=MCI(y.cancelOn))&&(I=I.taskIdByCancelId.get(y))&&I.delete(C);return!0},PKK=function(I,C,y){(y=Object.keys(y)[0])&&(I=I.taskIdByTriggerId.get(y))&&I.delete(C)};var i9j={taskRegistered:{}},Z6=function(){mG.instance||(mG.instance=new mG);this.JSC$15950_taskManager=mG.instance};
_.R(Z6,l1);
Z6.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){y=_.l(I,cJm);if((k=y)==null||!k.tasks){var z=new _.ph("RegisterTasksCommand is missing tasks.");_.GB(z);return F.return()}z=C.JSC$15950_taskManager;for(var c=_.T(y.tasks),r=c.next();!r.done;r=c.next())if(r=r.value,r=r.id&&r.triggerOn&&r.cancelOn&&r.command?new cXL(r.id,r.triggerOn,r.cancelOn,r.command,r):void 0,r){var w=Object.keys(r.triggerOn)[0];if(w){var L=MCI(r.cancelOn);L?(z.tasks.set(r.id,r),z.taskIdByTriggerId.has(w)||z.taskIdByTriggerId.set(w,
new Set),z.taskIdByTriggerId.get(w).add(r.id),z.taskIdByCancelId.has(L)||z.taskIdByCancelId.set(L,new Set),z.taskIdByCancelId.get(L).add(r.id)):_.SN(new _.ph("Unexpected malformed cancelOn field."))}else _.SN(new _.ph("Unexpected malformed triggerOn field."))}else _.SN(new _.ph("Unexpected malformed Task proto."));nzM(C.JSC$15950_taskManager);_.oI(F)})};var LYK={},DzS=(LYK.rendered={priority:0,callback:function(){var I={};I.numCpu=navigator.hardwareConcurrency;var C={};C.ramGb=_.sF.navigator.deviceMemory;var y={staticContext:{}};C.ramGb&&CMK(C.ramGb)&&(y.staticContext.memoryTotalKbytes=(C.ramGb*1048576).toString());I.numCpu&&CMK(I.numCpu)&&(y.staticContext.cpuCores=I.numCpu);if(_.V("web_enable_adaptive_appl_signal")){I={};C=_.g9("rses_dpj");var k=_.g9("rsef_dpj");C&&C>0&&k&&k>0&&(C=Math.ceil(k-C),C>0&&(I.loadLatency=C));I.loadLatency&&CMK(I.loadLatency)&&
(y.appL=I.loadLatency.toString())}_.b2("applicationStarted",y)}},LYK);var psy=new _.Jj("WINDOW_ON_ERROR"),QmY=new _.Jj("ERROR_WEIGHT_MAPS"),NHL=new _.Jj("INIT_ERROR");var VIY={},jmR=(VIY.initialized={priority:10,callback:function(I){I.injector.resolve(NHL)()}},VIY);var ltM=function(){},XsK=function(){var I=_.d5("meta_logger_impl");
I||(I=new ltM,_.U8("meta_logger_impl",I));return I},$zK=function(){XsK().csiSubscriptionKey=sQm("meta_logging_csi_event",function(I){var C=I.timerName;
if(I=I.timelineData){_.fA(C,{startTime:I.startTime},C);I.infos&&_.Gg(I.infos,C);for(var y=_.T(Object.keys(I.ticks)),k=y.next();!k.done;k=y.next())k=k.value,_.Sr(k,I.ticks[k],C)}})};
ltM.prototype.unlisten=function(){this.csiSubscriptionKey!==void 0&&kLm(this.csiSubscriptionKey)};var RmY={},b9K=(RmY.initialized={priority:10,callback:function(){$zK()}},RmY);var YFB=function(I,C){this.innertubeClientName=I;this.JSC$15966_prefCookie=C};
YFB.prototype.record=function(){if(_.V("web_li_record_binary_eval_tick")){var I=_.g9("rsef_dpj");var C=_.g9("rses_dpj");I=I!==void 0&&C!==void 0?Math.round(I-C):void 0;if(I!==void 0&&I>0){C=_.Fk(this.storagePrefix+"-"+this.innertubeClientName)||{valuesSample:[],valuesSeen:0};var y=this.poolSize;if(!(C.valuesSeen>=1E9)){if(C.valuesSample.length<y)C.valuesSample.push(I);else{var k=Math.floor(Math.random()*(C.valuesSeen+1));k<y&&(C.valuesSample[k]=I)}C.valuesSeen+=1}_.ky(this.storagePrefix+"-"+this.innertubeClientName,
C,2592E3);I=C.valuesSample;C=sZK(I);I=I.length<5?void 0:C<400?1:C<1700?2:3;I!==void 0&&(this.JSC$15966_prefCookie.set(this.cookiePrefix+this.innertubeClientName,I),this.JSC$15966_prefCookie.save())}}else _.ua(this.storagePrefix+"-"+this.innertubeClientName),this.JSC$15966_prefCookie.remove(this.cookiePrefix+this.innertubeClientName),this.JSC$15966_prefCookie.save()};
YFB[tj]=[e$,qR];var GIL=function(){YFB.apply(this,arguments);this.storagePrefix="yt-signal-be";this.cookiePrefix="lsbe";this.poolSize=5};
_.R(GIL,YFB);var o_O=!1;var ftR=new _.Jj("PAGE_LOAD_TIME_TOKEN");var SFS=new _.Jj("DOWNLOAD_ELIGIBILITY_PROMISE_TOKEN");var BG=function(I,C){this.JSC$15989_storeWithEntities=I;this.JSC$15989_commandHandler=C;this.downloadingToastInitialized=!1;this.downloadingEntities=[]};
BG.prototype.start=function(){this.JSC$15989_storeWithEntities.subscribe(this.observeDownloadingEntities.bind(this))};
BG.prototype.observeDownloadingEntities=function(){var I=_.Z6W(this.JSC$15989_storeWithEntities.getState().entities).map(function(k){return Bo9(k)});
if(I.length>0){if(!this.downloadingToastInitialized){this.downloadingToastInitialized=!0;var C={openPopupAction:{popup:{videoDownloadToastRenderer:{actionButton:{buttonRenderer:WSm()},loggingDirectives:{clientVeSpec:{uiType:98969}},responseText:_.Cx(_.PQ("DOWNLOADING",void 0,"Downloading"))}},popupType:"TOAST",durationHintMs:0}};this.JSC$15989_commandHandler.resolveCommand(C)}this.downloadingEntities=I}else if(this.downloadingEntities.length){var y=m7m(this.JSC$15989_storeWithEntities.getState().entities).map(function(k){return Bo9(k)});
this.downloadingEntities.filter(function(k){return y.includes(k)}).length&&(I={openPopupAction:dgF()},this.JSC$15989_commandHandler.resolveCommand(I));
this.downloadingEntities=[]}};
BG[tj]=[cJ,_.ID];var KYj;_.EW=function(I,C,y,k,F,z,c,r){this.JSC$15992_playerApiPromise=I;this.JSC$15992_commandHandler=C;this.JSC$15992_screenManager=y;this.offlineWebClientEligibility=k;this.JSC$15992_prefStorage=F;this.JSC$15992_actionRouter=z;this.entityTypeMap=c;this.JSC$15992_persistentStorePromiseAccessor=r;this.downloadFailureListenerBound=!1;this.previousDownloadStateForVideo={}};
KYj=function(){var I=_.N().resolve(_.EW),C;_.e(function(y){if(y.nextAddress==1)return I.downloadFailureListenerBound?y.return():_.n(y,I.JSC$15992_playerApiPromise,2);C=y.yieldResult;C.addEventListener("onOfflineOperationFailure",function(k){if(k.failureReason&&k.entityKey&&k.failureReason!=="OFFLINE_OPERATION_FAILURE_REASON_UNKNOWN")if(k.failureReason==="OFFLINE_OPERATION_FAILURE_REASON_VIDEO_DELETED"){var F=_.Fy(k.entityKey).entityId;F&&I.JSC$15992_actionRouter.triggerOptionalAction("yt-downloaded-video-deleted",
F)}else if(_.V("kevlar_woffle")){F=I.JSC$15992_commandHandler;var z=F.resolveCommand;k=k.failureReason;var c=_.PQ("TRANSFER_FAILED",void 0,"Download failed");k==="OFFLINE_OPERATION_FAILURE_REASON_DATABASE_REQUEST_FAILED"&&(c=_.PQ("STORAGE_FULL",void 0,"Storage full"));z.call(F,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cx(c),loggingDirectives:{clientVeSpec:{uiType:134511}}}},popupType:"TOAST"}})}});
I.downloadFailureListenerBound=!0;_.oI(y)})};
_.EW.prototype.deleteVideo=function(I,C){var y=this,k,F,z;return _.e(function(c){if(c.nextAddress==1)return _.n(c,y.JSC$15992_playerApiPromise,2);k=c.yieldResult;z={offlineLoggingData:{offlineDeleteReason:(F=C)!=null?F:"OFFLINE_DELETE_REASON_USER_INITIATED"}};return _.n(c,k.queueOfflineAction(I,y.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",z),0)})};
_.EW.prototype.pauseVideoDownload=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.JSC$15992_playerApiPromise,2);y=k.yieldResult;y.pauseVideoDownload(I);_.oI(k)})};
_.EW.prototype.resumeVideoDownload=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.JSC$15992_playerApiPromise,2);y=k.yieldResult;return _.n(k,y.resumeVideoDownload(I),0)})};
_.EW[tj]=[_.OZ,_.ID,_.zd,SFS,EK,E2,Xrw,ES];var AXj=new _.Jj("DOWNLOAD_STATE_STORE_TOKEN");var gzY=function(I,C){this.JSC$16011_persistentStorePromiseAccessor=I;this.store=C;this.upliftCompletionResolver=new _.ug},dzP=function(){var I=_.N().resolve(vzj),C;
_.e(function(y){switch(y.nextAddress){case 1:if(I.upliftImplPromise)return y.return(I.upliftImplPromise);_.aM(y,2);I.upliftImplPromise=WYR(I);return _.n(y,I.upliftImplPromise,4);case 4:I.upliftCompletionResolver.resolve();_.dC(y,3);break;case 2:throw C=_.sj(y),I.upliftCompletionResolver.reject(C),C;case 3:return y.return(I.upliftImplPromise)}})},WYR=function(I){var C,y,k;
return _.e(function(F){switch(F.nextAddress){case 1:return _.g5("LOGGED_IN")?_.n(F,I.JSC$16011_persistentStorePromiseAccessor(),2):F.return();case 2:C=F.yieldResult;if(!C)return _.Sr("vdeur"),F.return();_.Sr("vdeus");_.aM(F,3);return _.n(F,xzy(C),5);case 5:y=F.yieldResult;I.store.dispatch(RXH(y));C.observe(function(z){b6s(I.store,z)});
_.dC(F,4);break;case 3:throw k=_.sj(F),_.Sr("vdeur"),k;case 4:_.Sr("vdeuc"),_.oI(F)}})},xzy=function(I){var C;
return _.e(function(y){if(y.nextAddress==1)return _.n(y,eRs(I),2);C=y.yieldResult;return y.return(C.reduce(function(k,F){if(!F.data||!F.key||!F.entityType)return k;k[F.entityType]||(k[F.entityType]={});k[F.entityType][F.key]=F.data;return k},{}))})};
gzY[tj]=[ES,_.VL];var vzj;vzj=new _.Jj("DOWNLOAD_UPLIFT_SERVICE_TOKEN");_.h1=new _.Jj("DOWNLOAD_UPLIFT_COMPLETION_PROMISE_TOKEN");var UW=function(I,C){this.JSC$16014_persistentStorePromiseAccessor=I;this.transportService=C};
UW.prototype.refresh=function(){var I=this,C,y,k,F;return _.e(function(z){if(z.nextAddress==1)return _.g5("LOGGED_IN")?_.n(z,I.JSC$16014_persistentStorePromiseAccessor(),2):z.return();if(z.nextAddress!=3)return(C=z.yieldResult)?_.n(z,EeX(C),3):z.return();if((y=z.yieldResult)&&!(Number(y.data.refreshTimestampMs||0)<(0,_.JY)()))return z.return();k={browseId:"SPaccount_downloads"};F=_.tS(CI);_.b_(I.transportService,k,F).then(function(c){var r;if(C&&(c==null?void 0:(r=c.responseContext)==null?void 0:
r.maxAgeSeconds)!==0){var w;r=(c==null?void 0:(w=c.responseContext)==null?void 0:w.maxAgeSeconds)||604800;w=String(Math.floor((0,_.JY)())+r*1E3);C.put("service:downloads_settings:fallback",new _.as({innertubeResponse:c,refreshTimestampMs:w}))}});
_.oI(z)})};
UW[tj]=[_.vG,_.Q0];var HG=function(I,C){this.JSC$16018_playerPromise=I;this.store=C;this.started=!1};
HG.prototype.start=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return I.started?y.return():_.n(y,I.JSC$16018_playerPromise,2);C=y.yieldResult;C.addEventListener("onOrchestrationBecameLeader",I.updateIsLeader.bind(I,!0));C.addEventListener("onOrchestrationLostLeader",I.updateIsLeader.bind(I,!1));if(C.isOrchestrationLeader)I.updateIsLeader(C.isOrchestrationLeader());else{var k=new _.ph("Function isOrchestrationLeader is undefined",{"player.isReady":C.isReady(),"player.playVideo":C.playVideo?
"defined":"undefined"});_.GB(k);I.updateIsLeader(!1)}I.started=!0;_.oI(y)})};
HG.prototype.updateIsLeader=function(I){this.store.dispatch(_.yE({type:"SET_IS_LEADER_TAB",payload:{isLeaderTab:I}}))};
HG[tj]=[_.OZ,_.VL];var qFK=function(I,C){this.networkStatusManager=I;this.JSC$16021_prefStoragePromise=C;this.redirectsToPreload=["https://youtube.com"]},mzM=function(){var I=_.N().resolve(qFK),C,y,k,F,z,c;
_.e(function(r){switch(r.nextAddress){case 1:return _.n(r,I.JSC$16021_prefStoragePromise,2);case 2:C=r.yieldResult;if(!(y=C)){r.jumpTo(3);break}return _.n(r,C.get("yt-redirect-prefetch-id"),4);case 4:y=r.yieldResult;case 3:if(y||!I.networkStatusManager.isNetworkAvailable())return r.return();k={cache:"reload",redirect:"manual"};F=_.T(I.redirectsToPreload);z=F.next();case 5:if(z.done){if(!C){r.jumpTo(0);break}return _.n(r,C.set("yt-redirect-prefetch-id",!0,86400),0)}c=z.value;_.aM(r,8);return _.n(r,
_.sF.fetch(c,k),10);case 10:_.dC(r,6);break;case 8:_.sj(r);case 6:z=F.next(),r.jumpTo(5)}})};var t1=function(I){I?(this.container=I,this.containerWasInjected=!0):this.containerWasInjected=!1};
t1.prototype.openDialog=function(I,C,y){var k=this,F;return _.e(function(z){(F=k.container)==null||F.openDialog(I,C,y);_.oI(z)})};
t1.prototype.closeDialog=function(){var I=this,C;return _.e(function(y){(C=I.container)==null||C.closeDialog();_.oI(y)})};
t1.prototype.isDialogOpen=function(){var I=this,C,y;return _.e(function(k){return k.return((y=(C=I.container)==null?void 0:C.isDialogOpen())!=null?y:!1)})};
t1[tj]=[_.aU(UQq)];_.Z9L=new _.Jj("POPUP_CONTROLLER_TOKEN");var BHR=function(){this.panelMap=new Map;this.pendingPanelResolvers=new Map};
BHR.prototype.registerPanel=function(I,C){if(I){this.panelMap.set(I,C);var y=this.pendingPanelResolvers.get(I);y&&(y.resolve(C),this.pendingPanelResolvers.delete(I))}};
BHR.prototype.getPanel=function(I){var C=this,y;return _.e(function(k){return(y=C.panelMap.get(I))?k.return(y):k.return(EzP(C,I))})};
var EzP=function(I,C){var y,k;return _.e(function(F){if(y=I.pendingPanelResolvers.get(C))return F.return(y.promise);k=new _.ug;I.pendingPanelResolvers.set(C,k);return F.return(k.promise)})},hmL=function(I){BHR.call(this);
var C=this;this.popupController=I;this.panelContentMap=new Map;this.updatePanelContinuationDatas=new Map;this.TEST_ONLY={getPanelMapSize:function(){return C.panelMap.size}}};
_.R(hmL,BHR);_.u=hmL.prototype;_.u.getReloadContinuation=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.getPanel(I),2);y=k.yieldResult;return k.return(y.getReloadContinuation())})};
_.u.showPanel=function(I,C,y,k,F,z,c){var r=this,w,L,D,p;return _.e(function(Q){if(Q.nextAddress==1){c&&r.updatePanelContinuationDatas.set(I,c);if((w=y)==null?0:(L=w.engagementPanelPopupPresentationConfig)==null?0:L.popupType){D=y.engagementPanelPopupPresentationConfig.popupType;F===void 0&&(F=document.body);var X=Q.return,b=r.popupController,S=b.openPopup;a:switch(D){case "PANEL_POPUP_TYPE_DIALOG":var A="DIALOG";break a;case "PANEL_POPUP_TYPE_DROPDOWN":A="DROPDOWN";break a;default:throw Error("dj`"+
D);}return X.call(Q,S.call(b,I,C,A,F))}return _.n(Q,r.getPanel(I),2)}p=Q.yieldResult;(C||z)&&p.updatePanel(C,!1,k,z);p.showPanel(k);_.oI(Q)})};
_.u.hidePanel=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,C.getPanel(I),2);y=k.yieldResult;y.hidePanel();C.popupController.closePopup(I);_.oI(k)})};
_.u.isVisible=function(I,C){var y=this,k;return _.e(function(F){if(F.nextAddress==1)return C&&!y.panelMap.has(I)?F.return(!1):_.n(F,y.getPanel(I),2);k=F.yieldResult;return F.return(k.isVisible())})};
_.u.updatePanel=function(I,C,y,k,F,z){y=y===void 0?!1:y;var c=this,r;return _.e(function(w){if(w.nextAddress==1){if(!C&&!F)return w.return();z&&c.updatePanelContinuationDatas.set(I,z);return _.n(w,c.getPanel(I),2)}r=w.yieldResult;r.updatePanel(C,y,k,F);_.oI(w)})};
_.u.registerPanelContent=function(I,C){I&&this.panelContentMap.set(I,C)};
_.u.getPanelContent=function(I){return this.panelContentMap.get(I)};
_.u.getUpdatePanelContinuationData=function(I){return this.updatePanelContinuationDatas.get(I)};
hmL[tj]=[_.Z9L];var J1=function(I,C){this.innertubeTransportService=I;this.JSC$16037_screenManager=C},Uzj=function(I){var C;
return!((C=I.panelLoadingStrategy)==null||!C.requestTemplate)};
J1.prototype.makeRequest=function(I){var C=this,y,k;return _.e(function(F){switch(F.nextAddress){case 1:if(!Uzj(C)){F.jumpTo(2);break}_.aM(F,3);return _.n(F,_.gh(C.innertubeTransportService,I),5);case 5:return y=F.yieldResult,y?F.return(y.content):(_.GB(Error("ej")),F.return(void 0));case 3:k=_.sj(F),_.GB(k);case 2:return F.return(void 0)}})};
J1.prototype.getContent=function(){if(this.panelLoadingStrategy&&this.panelLoadingStrategy.inlineContent)return this.panelLoadingStrategy.inlineContent};
J1.prototype.execute=function(I){var C=this,y,k,F,z,c,r,w,L,D,p;return _.e(function(Q){if(Q.nextAddress==1){y=I;k=y.data;F=y.fallbackVe;z=y.parentVe;c=y.createScreenConfig;r=y.renderFn;w=y.command;C.panelLoadingStrategy=k;var X,b,S=((X=C.panelLoadingStrategy)==null?0:X.screenVe)?(b=C.panelLoadingStrategy)==null?void 0:b.screenVe:F;S&&_.s7(C.JSC$16037_screenManager,S,z,c);return(L=C.getContent())?_.n(Q,r(L),2):Q.jumpTo(2)}return Q.nextAddress!=4?Uzj(C)?_.n(Q,C.makeRequest(w),4):Q.return():(p=D=Q.yieldResult)?
_.n(Q,r(p),0):Q.return()})};
J1[tj]=[_.Q0,_.zd];var OW=function(){};
OW.prototype.getContainer=function(){return _.CA()&&this.fullScreenContainer?this.fullScreenContainer:this.container};
OW.prototype.openSheet=function(I,C){var y=this,k,F,z,c,r,w;return _.e(function(L){switch(L.nextAddress){case 1:return k={stack:[],error:void 0,hasError:!1},_.aM(L,2,3),F=tk,_.n(L,y.isSheetOpen(),5);case 5:z=L.yieldResult;cCY(k,p5F(F));if(z&&!_.V("delay_sheet_open_killswitch")){if(C&&y.currentTarget===C)return(c=y.getContainer())==null||c.closeSheet(),L.return();y.pendingData={data:I,target:C};return L.return()}I.viewModel&&(I={viewModel:I.viewModel});(r=y.getContainer())==null||r.openSheet(I,C);
y.currentTarget=C;case 3:_.MM(L);woH(k);_.C1(L,0);break;case 2:w=_.sj(L),k.error=w,k.hasError=!0,L.jumpTo(3)}})};
OW.prototype.closeSheet=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,(C=I.getContainer())==null?void 0:C.closeSheet(),2);if(y.nextAddress!=4)return I.currentTarget=void 0,!I.pendingData||_.V("delay_sheet_open_killswitch")?y.jumpTo(0):_.n(y,I.openSheet(I.pendingData.data,I.pendingData.target),4);I.pendingData=void 0;_.oI(y)})};
OW.prototype.isSheetOpen=function(){var I=this,C,y;return _.e(function(k){return k.return((y=(C=I.getContainer())==null?void 0:C.isSheetOpen())!=null?y:!1)})};var et=window.documentPictureInPicture;var jZW=_.hu(["dark"]),lpz=_.hu(["system-icons"]),XYO=_.hu(["typography"]),$aH=_.hu(["lang"]),RRH=_.hu(["style"]),pYs=_.hu(["dir"]),QZO=_.hu(["rounded-container"]),NGF=_.hu(["style"]),YiW=["yt-navigate-cache","yt-navigate","yt-action","yt-toggle-button"],a4=function(I){this.JSC$16049_clientRoot=I;this.currentPipWindow=null;this.onCloseCallbacks=[];this.handlePipWindowResize=this.handlePipWindowResize.bind(this)};
a4.prototype.openWindow=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return window.documentPictureInPicture&&_.bK()&&!C.currentPipWindow?_.n(F,(y=et?et:null)==null?void 0:y.requestWindow(I),2):F.return(!1);if(F.nextAddress!=3){k=F.yieldResult;if(!k)return F.return(!1);k.addEventListener("pagehide",function(){H9L(C)});
k.addEventListener("resize",C.handlePipWindowResize);C.pipWindowResizeDelay=new _.Oo(function(){C.currentPipWindow&&_.Fe(C.currentPipWindow.document.documentElement,"yt-pip-window-resized",[new _.y6(C.currentPipWindow.innerWidth,C.currentPipWindow.innerHeight)])},k);
bBK(k);fpX(k);return _.n(F,DaH(k),3)}if(!n_W())return F.return(!1);C.currentPipWindow=k;C.JSC$16049_eventForwarder=G3m(k,C.JSC$16049_clientRoot);C.pipWindowResizeDelay.start();return F.return(!0)})};
a4.prototype.handlePipWindowResize=function(){this.pipWindowResizeDelay&&this.pipWindowResizeDelay.start()};
var H9L=function(I){if(I.currentPipWindow){var C,y;(C=et?et:null)==null||(y=C.window)==null||y.close();I.currentPipWindow.removeEventListener("resize",I.handlePipWindowResize);var k;(k=I.pipWindowResizeDelay)==null||k.dispose();I.pipWindowResizeDelay=void 0;var F;(F=I.JSC$16049_eventForwarder)==null||F.stop();I.JSC$16049_eventForwarder=void 0;C=_.T(I.onCloseCallbacks);for(y=C.next();!y.done;y=C.next())y=y.value,y();I.onCloseCallbacks=[];I.currentPipWindow=null}};
a4.prototype.getWindow=function(){return this.currentPipWindow};
var tI8=function(I,C){var y;(y=I.onCloseCallbacks)==null||y.push(C)};
_.H1.Object.defineProperties(a4.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
a4[tj]=[r1S];_.JXL=new _.Jj("PICTURE_IN_PICTURE_CONTROLLER");var SiO=function(I,C){this.lengthY=this.lengthX=0;this.lengthX=C.x-I.x;this.lengthY=C.y-I.y};var O9Y=function(){},w00=function(I,C){var y;
(y=I.headerElement)==null||y.dispatchEvent(new CustomEvent("yt-new-playlist-header",{detail:C}))};var at8=function(){};
at8.prototype.openPopup=function(I,C,y,k){var F=this,z;return _.e(function(c){if(!F.container)return c.return();z={openPopupAction:{popup:C,popupType:y,uniqueId:I}};return c.return(F.container.handleOpenPopupAction(z,k))})};
at8.prototype.closePopup=function(I){this.container&&this.container.closePopup(I)};var MIj=function(){this.openTunnels=new Map},Nj9=function(I,C,y){if(v_t(y)){y={handleEvent:function(c){C&&!C.closed&&typeof C.postMessage==="function"&&c&&c.origin&&c.source===C&&c.data&&c.data.action==="gcl_setup"&&C.postMessage({action:"gcl_transfer",
gadSource:2},c.origin)}};
for(var k=_.T(I.openTunnels),F=k.next();!F.done;F=k.next()){var z=_.T(F.value);F=z.next().value;z=z.next().value;if(F.closed)try{window.removeEventListener("message",z),I.openTunnels.delete(F)}catch(c){_.GB(c)}}C&&I.openTunnels.size<15&&(I.openTunnels.set(C,y),window.addEventListener("message",y))}};var IYP=function(){this.clientParams=new Map},VUP=function(I){for(var C=_.T(I.clientParams.keys()),y=C.next();!y.done;y=C.next())y=y.value,y.startsWith("yt-mini-app-share")&&I.clientParams.delete(y)};var C8M=function(I,C){_.LL.call(this);var y=this;this.shortsController=I;this.storeWithShorts=C;I=_.rf(this.storeWithShorts,_.gJt,function(k){if(k){var F,z=(F=y.shortsController.getRoot())==null?void 0:F.getPlayer(),c;(F=(c=y.shortsController.alternativePlayerContainerElement)==null?void 0:c.getPlayerContainer())&&(z==null||z.appendTo(F))}else{var r;c=(r=y.shortsController.alternativePlayerContainerElement)==null?void 0:r.getPlayerContainer().querySelector("#player");F=y.shortsController.activeIndex;
(r=(z=y.shortsController.getRoot())==null?void 0:z.querySelector('ytd-reel-video-renderer[id="'+F+'"] #player-container'))&&(c==null||c.appendTo(r,void 0,!0))}});
this.addOnDisposeCallback(I)};
_.R(C8M,_.LL);var MQ=function(I,C,y,k,F){var z=this;this.storeWithShorts=I;this.ephemeralResponseStore=C;this.store=y;this.innertubeTransportService=k;this.innertubeTransportLoader=F;this.activeModules=[];this.activeIndex=0;this.dismissedIndices=[];this.watchWhileIndices=new Set;this.isFullscreenEnabled=_.XU(_.rl);this.isShortsPipActive=_.XU(_.is);this.nextReelVe=_.Dn(56921);this.prevReelVe=_.Dn(56922);this.backButtonVe=_.Dn(22156);this.TEST_ONLY={getActiveModules:function(){return z.activeModules}}},Vv5,j9w,swK;
MQ.prototype.initOrDisposeActiveModules=function(I){I?this.activeModules.push(new C8M(this,this.storeWithShorts)):(_.E1(this.activeModules),this.activeModules.length=0)};
MQ.prototype.getRoot=function(){return this.rootElement};
MQ.prototype.setActiveIndex=function(I){this.activeIndex=I};
_.P18=function(I,C){var y,k,F,z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:return y=new sW,(k=y.JSC$11789_getStoreKey(C))&&I.ephemeralResponseStore.has(k)?_.n(w,I.ephemeralResponseStore.get(k),7):_.n(w,swK(I,C),4);case 4:F=w.yieldResult;if(!k){w.jumpTo(3);break}z=M3(F,3600);return _.n(w,I.ephemeralResponseStore.put(k,new _.as(z)),3);case 7:F=(c=w.yieldResult)==null?void 0:_.zb(c);case 3:return F.replacementEndpoint&&(r=_.l(F.replacementEndpoint,_.PD))&&F.sequenceContinuation&&(r.sequenceParams=
F.sequenceContinuation),w.return(F)}})};
Vv5=function(I,C){C=(new o4).JSC$11789_getStoreKey(C);return!!C&&I.ephemeralResponseStore.has(C)};
j9w=function(I,C,y){var k,F,z,c,r;_.e(function(w){if(w.nextAddress==1){k=new o4;F=k.JSC$11789_getStoreKey(C);if(!F)return w.return();if(y.reelWatchSequenceResponse)return z=M3(y.reelWatchSequenceResponse,3600),I.ephemeralResponseStore.put(F,new _.as(z)),w.jumpTo(0);if(!I.ephemeralResponseStore.has(F))return w.jumpTo(0);r=y;return _.n(w,I.ephemeralResponseStore.get(F),4)}r.reelWatchSequenceResponse=(c=w.yieldResult)==null?void 0:_.zb(c);_.oI(w)})};
swK=function(I,C){var y=y===void 0?{}:y;var k,F,z;return _.e(function(c){switch(c.nextAddress){case 1:if(I.innertubeTransportService){k=I.innertubeTransportService;c.jumpTo(2);break}if(!I.innertubeTransportLoader){_.v5(Error("gj"));c.jumpTo(2);break}return _.n(c,I.innertubeTransportLoader(),4);case 4:k=c.yieldResult;case 2:return _.n(c,(F=k)==null?void 0:_.gh(F,C,y),5);case 5:return z=c.yieldResult,c.return(z)}})};
_.H1.Object.defineProperties(MQ.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.rootElement?this.rootElement.getPlayer().getPlayerPromise():Promise.resolve(void 0)}}});
MQ[tj]=[k7S,_.O_,cJ,_.aU(_.Q0),_.aU(TFS)];_.ouK=new _.Jj("STORAGE_MANAGER_TOKEN");var maI=new Set(["touchmove","scroll"]);var ycK=function(){this.queue=[];this.currentPersistentToast=this.currentToast=void 0},k0Y;
ycK.prototype.enqueue=function(I,C){C===1?this.currentPersistentToast=I:this.queue.push(I);this.openToast()};
ycK.prototype.openToast=function(){var I;(I=this.currentToast)!=null&&I.opened||(this.queue.length?(this.currentToast=this.queue.shift(),this.currentToast.open()):this.currentPersistentToast&&this.currentPersistentToast.open())};_.FPR=new _.Jj("TOAST_MANAGER_TOKEN");var uq8;_.zby=_.BO(function(I){return _.P("basic-content-view-model",{class:_.sZ("ytBasicContentViewModelHost",_.mh(I.className))},_.P(_.Dx,{cond:function(){return I.data().headline},
then:function(C){return _.P("div",{class:"ytBasicContentViewModelHeadline"},_.P(_.wh,{text:C}))}}),_.P(_.pH,{each:function(){return I.data().paragraphs||[]},
keyBy:"INDEX"},function(C){return _.P("div",{class:"ytBasicContentViewModelParagraph"},_.P(_.Dx,{cond:function(){var y=C();return!!(y.header||y.customHeader||y.headline)},
then:function(){return _.P(uq8,{paragraph:C})}}),_.P(_.Dx,{cond:function(){return C().asset||C().text},
then:function(){return _.P("div",{class:"ytBasicContentViewModelParagraphContent"},_.P(_.Dx,{cond:function(){return C().asset},
then:function(y){return _.P("div",{class:"ytBasicContentViewModelParagraphAsset"},_.P(_.lY,{data:y},{contentPreviewImageViewModel:_.Zh}))}}),_.P(_.Dx,{cond:function(){return C().text},
then:function(y){return _.P("div",{class:"ytBasicContentViewModelParagraphText"},_.P(_.wh,{text:y}))}}))}}))}))},"Ud");
uq8=_.BO(function(I){var C=I.paragraph;return _.P(_.aF,null,_.P(_.Dx,{cond:function(){return C().headline},
then:function(y){return _.P(_.wh,{text:y,className:"ytBasicContentViewModelParagraphHeadline"})}}),_.P(_.lY,{data:function(){return C().header||C().customHeader}},{sectionHeaderViewModel:function(y){return _.P(_.Jv,{data:y.data,
disableHorizontalPadding:!0,forceSmallLayout:!0})}}))},"Vd");var ccR=_.BO(function(I){return _.P("yt-expandable-metadata-header-view-model",{class:"ytExpandableMetadataHeaderViewModelHost"},_.P(_.Dx,{cond:function(){return I.expanded()},
then:function(){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedHeader"},_.P("div",{class:"ytExpandableMetadataHeaderViewModelLeftSectionExpanded"},_.P(_.Dx,{cond:function(){return I.data().expandedTitleImage},
then:function(C){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTitleImage"},_.P(_.x$,{alt:"",width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:C}))}}),_.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextContainer"},_.P("div",{class:"ytExpandableMetadataHeaderViewModelExpandedTextFirstRowContainer"},_.P(_.wh,{text:function(){return I.data().expandedLabel},
className:"ytExpandableMetadataHeaderViewModelExpandedLabel"}),_.P(_.wh,{text:function(){return I.data().expandedTitle},
className:"ytExpandableMetadataHeaderViewModelExpandedTitle"})),_.P(_.wh,{text:function(){return I.data().expandedSubtitle},
className:"ytExpandableMetadataHeaderViewModelExpandedSubtitle",linkInheritColor:!0}))),_.P("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.P(_.lY,{data:function(){return I.data().infoButton}},{buttonViewModel:_.fM}),_.P(_.lY,{data:function(){return I.data().collapseButton}},{buttonViewModel:function(C){return _.P(_.fM,{data:C.data,
onClick:function(){var y;(y=I.expandedCallback)==null||y.call(I,!1)}})}})))},
else:function(){return _.P(TSH,Object.assign({},I))}}))},"Wd"),eby=_.BO(function(I){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelContainer"},_.P(_.Dx,{cond:function(){return I.data().collapsedLabelImage},
then:function(C){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedLabelImage"},_.P(_.x$,{width:16,height:16,className:"ytExpandableMetadataHeaderViewModelIcon",data:C,alt:""}))}}),_.P(_.wh,{text:function(){return I.data().collapsedLabel},
className:"ytExpandableMetadataHeaderViewModelCollapsedLabel"}))},"Xd"),TSH=_.BO(function(I){var C=_.uk(function(){var y;
return void((y=I.expandedCallback)==null?void 0:y.call(I,!0))});
return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedHeader","on:click":C},_.P("div",{class:"ytExpandableMetadataHeaderViewModelLeftSection"},_.P(_.Dx,{cond:function(){return I.data().collapsedImage},
then:function(y){return _.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedImage"},_.P(_.x$,{width:16,height:16,data:y,alt:""}))}}),_.P(_.Dx,{cond:function(){return I.data().showLeadingCollapsedLabel},
then:function(){return _.P(eby,Object.assign({},I))}}),_.P("div",{class:"ytExpandableMetadataHeaderViewModelCollapsedTitle"},_.P(_.wh,{text:function(){return I.data().collapsedTitle}}))),_.P("div",{class:"ytExpandableMetadataHeaderViewModelRightSection"},_.P(_.Dx,{cond:function(){return!I.data().showLeadingCollapsedLabel},
then:function(){return _.P(eby,Object.assign({},I))}}),_.P(_.lY,{data:function(){return I.data().infoButton}},{buttonViewModel:_.fM}),_.P(_.lY,{data:function(){return I.data().expandButton}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
onClick:function(){var k;(k=I.expandedCallback)==null||k.call(I,!0)}})}})))},"Yd");var rcK=_.BO(function(I){var C=_.T(_.TN(function(){return I.data().initiallyExpanded})),y=C.next().value,k=C.next().value,F,z=(F=_.N().resolve(_.aU(_.AE)))==null?void 0:F(),c=function(){var r=I.data().colorData;
if(r)return z?r==null?void 0:r.darkColorPalette:r==null?void 0:r.lightColorPalette};
return _.P("yt-expandable-metadata-view-model",{class:"ytExpandableMetadataViewModelHost",style:_.cP({"background-color":function(){var r=c();return(r==null?0:r.section2Color)?_.Xl(r.section2Color):""}})},_.P(_.lY,{data:function(){return I.data().header}},{expandableMetadataHeaderViewModel:function(r){return _.P(ccR,{data:r.data,
expanded:function(){return!!y()},
expandedCallback:function(w){k(w)}})}}),_.P(_.Dx,{cond:function(){return y()},
then:function(){return _.P("div",{class:"ytExpandableMetadataViewModelExpandedContent"},_.P(_.lY,{data:function(){return I.data().expandedContent}},{horizontalShelfViewModel:function(r){return _.P(_.QD,{data:r.data,
includeMargin:!0,forceNarrowLayout:!0,palette:c})},
videoSummaryContentViewModel:function(r){return _.P(yHS,{data:r.data,className:"ytExpandableMetadataViewModelVideoSummaryContent"})},
lockupViewModel:function(r){return _.P(_.UA,{data:r.data,className:"ytExpandableMetadataViewModelLockup",thumbnailFixedWidth:function(){return"168px"},
containerType:3,sizing:"COMPACT"})},
basicContentViewModel:function(r){return _.P(_.zby,{data:r.data,className:"ytExpandableMetadataViewModelBasicContent"})}}),_.P(_.lY,{data:function(){return I.data().expandedBottomButtons}},{buttonViewModel:function(r){return _.P("div",{class:"ytExpandableMetadataViewModelExpandedBottomButtons"},_.P(_.fM,{data:r.data}))}}))}}))},"Zd");var i5R=_.BO(function(I){var C=I.text;var y=I.marqueeSpacing;var k=I.scrollDelay;var F=I.scrollDuration;var z=I.enableMarqueeScroll;I=I.large;var c=_.T(_.c4(!1,void 0,"kfNqfd")),r=c.next().value,w=c.next().value,L=_.T(_.c4(0,void 0,"bYgZbf"));c=L.next().value;var D=L.next().value,p=_.Es();L=_.Es();var Q=_.Es(),X=_.N().resolve(_.v9);_.l0(function(){if(z()){var A=Q.value.getBoundingClientRect().width,x=p.value.getBoundingClientRect().width;if(A>x){var B=(X==="ltr"?-1:1)*(A+(y?y():16));Promise.resolve().then(function(){w(!0);
D(B)})}}});
var b={},S={};return _.P("marquee-scroll",{class:_.sZ("ytMarqueeScrollHost",(b.ytMarqueeScrollHostLarge=I,b)),el:p},_.P("div",{id:"marquee-scroll-inner-container",class:_.sZ("ytMarqueeScrollInnerContainer",(S.ytMarqueeScrollAnimationEnabled=function(){return r()},S)),
el:L,style:_.cP({gap:y?(0,_.nJ)(y):"16px","animation-duration":F?veq(F):"16s","animation-delay":k?veq(k):"3s","--marquee-translate":(0,_.nJ)(c)})},_.P("span",{el:Q,dir:"auto"},_.P(_.wh,{text:C,noWrap:!0,className:"ytMarqueeScrollPrimaryString"})),_.P(_.Dx,{cond:r,then:function(){return _.P("span",{"aria-hidden":"true",dir:"auto"},_.P(_.wh,{text:C,noWrap:!0,className:"ytMarqueeScrollDuplicateString"}))}})))},"$d");_.wmy=_.BO(function(I){var C=I.data;var y=I.overlayDensity;I=_.uk(function(){C().onTapCommand&&_.Gp(C().onTapCommand);return!1});
var k=_.gJ(),F={};return _.P("reel-sound-metadata-view-model",{class:_.sZ("ytReelSoundMetadataViewModelHost",(F.ytReelSoundMetadataViewModelHostLarge=function(){return(y==null?void 0:y())===1},F)),
"on:click":I,tabindex:0,role:"button","on:keydown":k},_.P("div",{class:"ytReelSoundMetadataViewModelMetadataContainer"},_.P(_.Dx,{cond:function(){return C().musicIcon},
then:function(z){return _.P(_.x$,{data:z,alt:"music icon",className:"ytReelSoundMetadataViewModelIcon"})}}),_.P("div",{class:"ytReelSoundMetadataViewModelMarqueeContainer"},_.P(i5R,{text:function(){return C().soundMetadata},
enableMarqueeScroll:function(){return!!C().enableMarqueeScroll},
large:function(){return(y==null?void 0:y())===1}}))))},"ae");var nuS,P8H,I3,QwK,VeH,pmR,Xm8,lYR;nuS=["https://fonts.gstatic.com","https://tv.youtube.com","https://www.gstatic.com","https://www.youtube.com"];P8H=_.s8("wil_icon_max_concurrent_fetches",Infinity);
I3=function(I,C,y){var k=this;this.iconSet=I;this.appDirection=C;this.responsePromises={};this.iconCache={};this.queuedResponseResolvers={};this.numFetches=this.counter=0;this.cacheStorageAvailable=!!_.sF.caches;this.cacheStorageAsync=Promise.resolve(void 0);this.cacheStorageSync=void 0;this.requestAninmationFrameResolver=null;this.renderingMode=_.V("wil_icon_use_mask_rendering")?1:0;this.isNetworkFirstStrategy=_.V("wil_icon_network_first");this.renderWhenIdle=_.V("wil_icon_render_when_idle");this.waitForAnimationFrame=
!_.V("wil_icon_load_immediately");this.isPurging=!1;I=function(){k.cacheStorageAvailable&&(k.cacheStorageAsync=_.sF.caches.open("yt-icons").then(function(z){return k.cacheStorageSync=z}).catch(function(){k.cacheStorageAvailable=!1}))};
y=(y==null?void 0:y())||{};y=_.T(Object.entries(y));for(C=y.next();!C.done;C=y.next()){var F=_.T(C.value);C=F.next().value;F=F.next().value;F=eR(F);LPR(F);this.iconCache[C]=F.cloneNode(!0)}this.isPurging=DqL(this);this.isPurging instanceof Promise?this.isPurging.then(I):I()};
_.Jyz=function(I,C){var y=I.resolveIcon(C);return y?I.renderingMode===1?pmR(I,y,I.renderingMode):(C=I.iconCache[y.url])?(C=C.cloneNode(!0),QwK(I,C),pmR(I,y,I.renderingMode,C)):_.NSY(I,y).then(function(k){var F=k?0:1;QwK(I,k);return pmR(I,y,F,k)}):(_.fi(new _.ph("Icon not found",{iconShape:C})),function(){})};
QwK=function(I,C){if(C){I.counter+=1;I="_yt"+I.counter;C=[C].concat(_.Py(C.getElementsByTagName("*")));C=_.T(C);for(var y=C.next();!y.done;y=C.next())if(y=y.value,y.tagName==="style"&&y.textContent)y.textContent=VeH(y.textContent,I,!0);else for(var k=_.T(y.attributes),F=k.next();!F.done;F=k.next()){F=F.value;F.name==="id"&&(F.value+=I);["mask","fill","clip-path"].includes(F.name)&&(F.value=VeH(F.value,I));if(F.name==="style"){var z=y.style;try{z.cssText=VeH(z.cssText,I,!0)}catch(D){var c=void 0,r=
void 0,w=void 0,L=void 0;CC({error:((c=D)==null?void 0:(w=(r=c).toString)==null?void 0:w.call(r))||"",el:y.outerHTML,style:!!z,cssText:(L=z)==null?void 0:L.cssText})}}F.name==="xlink:href"&&(F.value=F.value.replace(/#(.*)/,"#$1"+I))}}};
VeH=function(I,C,y){var k=/url\(["']?#(.*?)["']?\)/;(y===void 0?0:y)&&(k=/url\(["']?#(.*?)["']?\)/g);return I.replace(k,"url(#$1"+C+")")};
pmR=function(I,C,y,k){return function(F,z){var c=Object.assign({},{iconColor:"currentcolor",iconWidth:C.size+"px",iconHeight:C.size+"px",iconDisplay:"block"},z);z=_.c2("DIV");var r=c.iconColor,w=c.iconFilter;c="width: "+c.iconWidth+"; height: "+c.iconHeight+"; display: "+c.iconDisplay+";";w&&(c+=" filter: "+w+";");y===0&&(c+=" fill: "+r+";");y===1&&(w=C.url,c+=" -webkit-mask: url("+w+") no-repeat center / cover; mask: url("+(w+") no-repeat center / cover; background-color: ")+r);C.allowMirroring&&
I.appDirection==="rtl"&&(c+=" transform: scale(-1, 1); transform-origin: center center;");z.setAttribute("style",c);y===0&&k&&z.appendChild(k);F.appendChild(z)}};
_.NSY=function(I,C){var y,k,F;return _.e(function(z){y=function(c){return NM(c)};
k=C.url;if(!jwY(k))throw Error("hj");F=lYR(I,k);return z.return(F.then(function(c){return c.clone().text()}).then(function(c){var r=y(c);
c=C.size;var w=_.c2("DIV");_.SO(w,r);r=_.ey(w.firstElementChild!==void 0?w.firstElementChild:_.WLS(w.firstChild,!0));c=LPR(r,c);I.iconCache[k]=c.cloneNode(!0);delete I.responsePromises[k];return c}).catch(function(){}))})};
Xm8=function(I){var C,y=(C=I.requestAninmationFrameResolver)==null?void 0:C.promise;y||(I.requestAninmationFrameResolver=new _.ug,y=I.requestAninmationFrameResolver.promise,_.sF.requestAnimationFrame(function(){var k;(k=I.requestAninmationFrameResolver)==null||k.resolve();I.requestAninmationFrameResolver=null}));
return y};
lYR=function(I,C){var y,k;return _.e(function(F){if(F.nextAddress==1)return I.waitForAnimationFrame?_.n(F,Xm8(I),2):F.jumpTo(2);y=I.responsePromises[C];y||(k=function(){var z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:if(!I.cacheStorageAvailable){z=void 0;w.jumpTo(2);break}if(c=I.cacheStorageSync){w.jumpTo(3);break}return _.n(w,I.cacheStorageAsync,4);case 4:c=w.yieldResult;case 3:z=c;case 2:return r=z,I.isNetworkFirstStrategy?w.return(I.fetchAndUpdateCache(C,r).catch(I.getCacheStorageResponse.bind(I,
C,r))):w.return(I.getCacheStorageResponse(C,r).catch(I.fetchAndUpdateCache.bind(I,C,r)))}})},y=I.renderWhenIdle?new Promise(function(z,c){_.NU(_.b$,function(){k().then(z).catch(c)},10)}):k(),I.responsePromises[C]=y);
return F.return(y.catch(function(z){delete I.responsePromises[C];CC({error:(z==null?0:z.toString)?z.toString():"",url:C});throw z;}))})};
I3.prototype.fetchAndUpdateCache=function(I,C){var y=this;return _.e(function(k){return k.return($qB(y,I).then(function(F){Rbj(y,I,F,C);return F}))})};
var $qB=function(I,C){var y;return _.e(function(k){if(I.numFetches<P8H)return I.numFetches+=1,k.return(b58(I,C).finally(function(){--I.numFetches;if(Object.keys(I.queuedResponseResolvers).length){var F=Object.keys(I.queuedResponseResolvers)[0],z=I.queuedResponseResolvers[F];delete I.queuedResponseResolvers[F];z.resolve($qB(I,F))}}));
y=new _.ug;I.queuedResponseResolvers[C]=y;return k.return(y.promise)})},b58=function(I,C,y){y=y===void 0?2:y;
var k;return _.e(function(F){k={credentials:"same-origin",priority:"low"};return F.return(_.sF.fetch(C,k).then(function(z){return z.ok?z:Promise.reject(Error("ij`"+z.status+"`"+z.statusText))}).catch(function(z){if(y>0)return b58(I,C,y-1);
throw z;}))})},Rbj=function(I,C,y,k){_.e(function(F){return k?F.return(new Promise(function(z){_.NU(_.b$,function(){var c,r;
return _.e(function(w){switch(w.nextAddress){case 1:if(!I.isNetworkFirstStrategy){c=void 0;w.jumpTo(2);break}return _.n(w,k.match(C).catch(function(){}),3);
case 3:c=w.yieldResult;case 2:if(r=c){w.jumpTo(4);break}return _.n(w,k.put(C,y.clone()).catch(function(L){CC({error:(L==null?0:L.toString)?L.toString():"",url:C})}),4);
case 4:z(),_.oI(w)}})},50)})):F.return()})};
I3.prototype.getCacheStorageResponse=function(I,C){return _.e(function(y){return C?y.return(C.match(I).then(function(k){return k&&k.ok?k:Promise.reject()})):y.return(Promise.reject())})};
var LPR=function(I,C){C===void 0||I.getAttribute("viewBox")||I.setAttribute("viewBox","0 0 "+C+" "+C);I.setAttribute("focusable","false");I.setAttribute("aria-hidden","true");try{I.style.pointerEvents="none",I.style.display="inherit",I.style.width="100%",I.style.height="100%"}catch(F){var y;CC({error:((y=F)==null?0:y.toString)?F.toString():""});try{I.style.cssText="pointer-events: none; display: inherit; width: 100%; height: 100%;"}catch(z){var k;CC({error:((k=z)==null?0:k.toString)?z.toString():
""})}}return I},jwY=function(I){for(var C=_.T(nuS),y=C.next();!y.done;y=C.next())if(I.startsWith(y.value)&&I.endsWith(".svg"))return!0;
return!1};
I3.prototype.resolveIcon=function(I){return this.iconSet.resolveIcon(I)};
var CC=function(I){_.SN(new _.ph("Error in IconManager",I))},DqL=function(I){if(_.V("wil_icons_cache_purge_killswitch"))return!1;
try{var C=_.sF.localStorage}catch(z){return!1}if(!C||!I.cacheStorageAvailable)return!1;var y=function(z){try{var c;(c=C)==null||c.setItem("yt-icons-last-purged",z.toString())}catch(w){var r;CC({error:((r=w)==null?0:r.toString)?w.toString():""})}},k=Number(C.getItem("yt-icons-last-purged"));
if(!k)return k=new Date,k=k.setDate(k.getDate()-Math.floor(Math.random()*90+1)),y(k),!1;if(function(z,c){z=new Date(z);c=new Date(c);return c.getMonth()-z.getMonth()+12*(c.getFullYear()-z.getFullYear())}(k,Date.now())<3)return!1;
try{return _.sF.caches.delete("yt-icons").then(function(z){z&&y(Date.now());return z}).catch(function(){return!1}).finally(function(){I.isPurging=!1})}catch(z){var F;
CC({error:((F=z)==null?0:F.toString)?z.toString():""});return!1}};
I3[tj]=[Btq,_.v9,_.aU(Upm)];_.sk=function(I,C){this.iconManager=I;this.iconsToFetch=C};
_.sk[tj]=[_.k$,_.aU(ho0)];var YwK=function(I,C,y){this.requestKey=I;this.pWp=C;this.hL6=y;this.i3Z=function(){return new XMLHttpRequest};
this.ygA=void 0;this.vIs=[]};
YwK.prototype.getLatestChallengeResponse=function(){return this.hL6};
var cie=function(I,C,y){var k,F,z,c;return _.e(function(r){if(r.nextAddress==1){_.fA("attestation_challenge_fetch");_.Sr("att_fs",void 0,"attestation_challenge_fetch");if(!I.ygA)throw new _.jg(9,"Missing fetcher");return _.n(r,I.ygA(C,y),2)}k=r.yieldResult;z=(F=k)==null?void 0:F.bgChallenge;if(!z)throw new _.jg(15,"Missing field");I.hL6=k;I.vIs.forEach(function(w){w(k)});
c=U4K(z);_.Sr("att_fc",void 0,"attestation_challenge_fetch");Obt("attestation_challenge_fetch");return r.return(c)})},Kww=function(I,C){var y,k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:y=new CL(100,3E5,.25,2),k=void 0;case 2:if(!(y.currBackoffCount_<10)){r.jumpTo(4);break}_.aM(r,5);if(!(y.currBackoffCount_>0)){r.jumpTo(7);break}return _.n(r,ZBW(y.getValue()),7);case 7:return _.n(r,G0Y(I,C),9);case 9:return F=r.yieldResult,r.return(F);case 5:z=_.sj(r);z instanceof _.jg?k=z:(c=z instanceof Error?z.message:"Unknown",k=new _.jg(9,c));QMe(y);r.jumpTo(2);break;case 4:if(k)throw k;throw new _.jg(9,"Unknown error");}})},G0Y=function(I,
C){C=M10(Io0(new aRP,C),I.requestKey);
var y=new _.ug,k=I.i3Z();k.open("POST",I.pWp);k.setRequestHeader("X-Goog-Api-Key","AIzaSyDyT5W0Jh49F30Pqqtyfdf7pDLFKLJoAnw");k.setRequestHeader("Content-Type","application/json+protobuf");k.onload=function(){if(Vsm(k)){var F=TQb(k.responseText);y.resolve(F)}else y.reject(new _.jg(_.o1(kt(k)),k.statusText))};
k.onerror=function(){y.reject(new _.jg(_.o1(kt(k)),k.statusText))};
k.send(C.serialize());return y.promise};var SwR=function(I){this.networkStatusManager=I;this.isDownloaded=hIK===void 0?function(){return!1}:hIK;
this.isReady=!1;this.b34=fYR(this)},fYR=function(I){var C;
return _.e(function(y){if(y.nextAddress==1)return _.n(y,X2H(),2);if(y.nextAddress!=3)return C=y.yieldResult,_.n(y,gGS(C),3);I.qI=y.yieldResult;E_I(I.qI).then(function(){I.isReady=!0});
return y.return(I.qI)})},KPH=function(I,C,y){I.qI?(I=I.qI.cE({tY:y,
bCN:!0,emi:!0}),C.serviceIntegrityDimensions={poToken:I}):_.GB(Error("jj"))};
SwR.prototype.processContext=function(I){var C=this;if(!I.input.match(_.tS(Kkc)))return _.xf();var y=I.innerTubeRequest,k=y.videoId;return!k||this.isDownloaded(y)||this.networkStatusManager&&!this.qI&&!this.networkStatusManager.isNetworkAvailable()?_.xf():this.qI?this.isReady?(KPH(this,y,k),_.xf()):new dO(E_I(this.qI).then(function(){KPH(C,y,k)})):new dO(this.b34.then(function(F){return _.e(function(z){if(z.nextAddress==1)return _.n(z,E_I(F),2);
KPH(C,y,k);_.oI(z)})}))};var AcR=new _.Jj("WEB_PO_CONTEXT_PROCESSOR");var guL=function(I,C){var y=this;this.miV=0;var k;this.ycF=(k=C==null?void 0:C.ycF)!=null?k:window;this.networkStatusManagerPromise=C==null?void 0:C.networkStatusManagerPromise;var F;this.requestKey=(F=C==null?void 0:C.requestKey)!=null?F:_.oD("par_bir_key")||"O43z0dpjhgX20SCx4KAo";var z;this.p1x=(z=C==null?void 0:C.p1x)!=null?z:function(w){return new fW(w)};
var c;k=(c=C==null?void 0:C.gkN)!=null?c:function(w,L,D){return new YwK(w,L,D)};
this.bgChallenge=U4K(I.bgChallenge);this.ttlSeconds=H3m(ME(I.challenge||""));this.bz=k(this.requestKey,_.V("par_at_ep")?["www.youtube.com","m.youtube.com"].includes(_.sF.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",I);BGm(this.bz);var r;this.kr6=(r=C==null?void 0:C.kr6)!=null?r:function(w){_.Lv(y.ycF.document,"visibilitychange",function(){y.ycF.document.visibilityState===
"visible"&&w()})}},WPL=function(I){if(!I.uQ){var C={maxAttempts:5,
dRs:I.ttlSeconds*1E3};hRW(I.ycF);I.uQ=I.p1x({bz:I.bz,zr:{disable:_.V("html5_web_po_disable_remote_logging"),sC:"aGIf",qy0:LoY("html5_web_po_experiment_ids"),vML:_.V("wpo_dis_lfdms")?0:1E3},iJb:C,yML:I.bgChallenge,lzH:UaO});I.miV=Date.now();kT0(I.uQ,function(){I.miV=Date.now()});
YBz(I.uQ,function(){return _.e(function(k){return k.return(vuY(I))})});
var y=I.zKH.bind(I);I.networkStatusManagerPromise&&I.ttlSeconds>0&&I.networkStatusManagerPromise.then(function(k){k.listen("publicytnetworkstatus-online",y)});
I.kr6(y)}};
guL.prototype.zKH=function(){if(Date.now()>this.miV+this.ttlSeconds*1E3){var I;(I=this.uQ)==null||yi5(I)}};
var vuY=function(I){if(I.s9t)return I.s9t;if(!I.uQ)throw Error("kj");I.s9t=new g1({uQ:I.uQ,bz:I.bz,pFg:!0,onError:UaO});return I.s9t},thm=function(I,C){I=new guL(I,C);
WPL(I);vuY(I)};var o3=function(I,C){this.store=I;this.queue=[];this.supportsFocus=_.V("web_ephemeral_actions_focus");C==null||C.addEventListener("yt-navigate-start",this.reset.bind(this))};
o3.prototype.enqueue=function(I){var C=I.command,y=I.durationMs,k=I.elementToFocus;var F=I.label;var z=I.elementToFocus;I.command?F=_.PQ("EPHEMERAL_ACTION_ANNOUNCEMENT",{label:F,shortcut:_.PQ("SHIFT_PLUS_ENTER")}):z&&this.supportsFocus&&(I=F+". "+_.PQ("SHIFT_PLUS_ENTER")+" for more information.",F=_.PQ("EPHEMERAL_ACTION_FOCUS_ANNOUNCEMENT",{label:F,shortcut:_.PQ("SHIFT_PLUS_ENTER")},I));y={announcement:F,durationMs:y!=null?y:this.supportsFocus?8E3:void 0};C?y.command=C:k&&this.supportsFocus&&(k.classList.add("ephemeral-action-focusable-element"),
y.selector=k.tagName+".ephemeral-action-focusable-element");this.queue.push(y);dq8(this)};
o3.prototype.activate=function(I){var C=_.zRz(this.store.getState());if(C){if(C==null?0:C.command)_.bU(C.command),this.store.dispatch(RAP(null));(C==null?0:C.selector)&&this.supportsFocus&&(C=document.querySelector(C.selector),_.tXI(C));I.preventDefault()}};
var dq8=function(I){if(!_.zRz(I.store.getState())&&I.queue.length){var C=I.queue.shift();C&&(I.previousAnnouncement===C.announcement&&(C.announcement+="\u00a0"),I.store.dispatch(RAP(C)),I.previousAnnouncement=C.announcement,I.timeoutId=setTimeout(function(){if(C.selector&&I.supportsFocus){var y;(y=document.querySelector(C.selector))==null||y.classList.remove("ephemeral-action-focusable-element")}I.store.dispatch(RAP(null));dq8(I)},C.durationMs))}};
o3.prototype.reset=function(){this.timeoutId&&clearTimeout(this.timeoutId);this.store.dispatch(RAP(null));this.queue.length=0;this.timeoutId=void 0};
o3[tj]=[_.VL,_.st];_.yb=new _.Jj("EPHEMERAL_ACTIONS_MANAGER_TOKEN");var xqP=new _.Jj("AUTH_SERVICE_TOKEN");var apK=_.hu(["about:blank"]),OBm;var qw8=new _.Jj("API_IFRAME_TOKEN"),mqK=new _.Jj("FETCH_FN_TOKEN"),Z5L=new _.Jj("PARSE_FN_TOKEN"),BSS=new _.Jj("WINDOW_REQUEST_TOKEN");var e3S;e3S=new _.Jj("YT_CONFIG_FLAG_RETRIEVER_TOKEN");_.Eu8=new _.Jj("MISC_UI_SHARED_FLAGS_TOKEN");var hbY=function(){};
hbY.prototype.getFlag=function(I){if(I.configType!==2)throw Error("lj");return UqP(I)};
var UqP=function(I){switch(I.flagType){case "bool":return _.V(I.flagName);case "int":return _.Bm(_.s8(I.flagName));case "double":return _.s8(I.flagName);case "string":return _.oD(I.flagName);case "int32_list":return LoY(I.flagName);case "int64_list":return LoY(I.flagName).map(function(C){return _.Bm(C)});
case "string_list":return _.yS(I.flagName);default:throw Error("mj");}};var kN=function(I,C,y){C=C===void 0?{}:C;bp.call(this,y===void 0?"uninitialized":y);this.env=I;this.transitions=[{from:"uninitialized",to:"initialized",action:this.init},{from:"initialized",to:"rendering",action:this.initialRender},{from:"rendering",to:"rendered",action:this.afterRenderImmediate},{from:"rendered",to:"after-render-deferred",action:this.afterRenderDeferred}];C.shouldWaitOnAsyncImmediate!==void 0&&(this.processPluginOptions.shouldWaitOnAsyncImmediate=C.shouldWaitOnAsyncImmediate)};
_.R(kN,bp);kN.prototype.init=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(k,I(C.env),2):(I(C.env),k.jumpTo(2));if(k.nextAddress!=4)return C.jobSet?_.n(k,C.jobSet.completedResolver.promise,4):k.jumpTo(4);y=_.So();y.parkOrScheduleJob(function(){C.transition("rendering")},10,"ci");
_.oI(k)})};
kN.prototype.initialRender=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(k,I(C.env),2):(I(C.env),k.jumpTo(2));if(k.nextAddress!=4)return C.jobSet?_.n(k,C.jobSet.completedResolver.promise,4):k.jumpTo(4);y=_.So();y.parkOrScheduleJob(function(){C.transition("rendered")},10,"cr");
_.oI(k)})};
kN.prototype.afterRenderImmediate=function(I){var C=this,y;return _.e(function(k){if(k.nextAddress==1)return C.processPluginOptions.shouldWaitOnAsyncImmediate?_.n(k,I(C.env),2):(I(C.env),k.jumpTo(2));if(k.nextAddress!=4)return C.jobSet?_.n(k,C.jobSet.completedResolver.promise,4):k.jumpTo(4);y=_.So();y.parkOrScheduleJob(function(){C.transition("after-render-deferred")},10,"carml");
_.oI(k)})};
kN.prototype.afterRenderDeferred=function(I){var C=this;return _.e(function(y){I(C.env);_.oI(y)})};var H5j={},teR=(H5j.rendered={priority:0,callback:function(I){mUw(I.injector.resolve(VB))}},H5j);var JcM=!1,uxm=0,oa9=null,F$K=null;var O58=new _.Jj("NETWORK_SLI_TOKEN");var aYj=function(I,C,y,k){this.networkSli=I;this.fetchFn=C;this.parseFn=y;this.requestFn=k};
aYj.prototype.fetch=function(I,C,y){var k=this,F,z,c;return _.e(function(r){F=MeB(k,I,C);c=(z=k.fetchFn)!=null?z:fetch;return r.return(c(F).then(function(w){return k.handleResponse(w,y)}).catch(function(w){_.SN(w);
if((y==null?0:y.expectJsonStrict)&&w instanceof MX&&w.errorType===1)return Promise.reject(w)}))})};
var Ncb=function(I,C,y,k){var F,z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:return F=MeB(I,C,y),_.aM(D,2),_.n(D,fetch(F),4);case 4:z=D.yieldResult;_.dC(D,3);break;case 2:throw _.sj(D),new MX(2,"Failed to parse streaming response",F.url);case 3:if(!z.redirected&&!z.ok)throw(c=I.networkSli)==null||c.failure(),new _.ph("Streaming fetch request not ok",F.url);if(!z.body)throw new _.ph("No response body in streaming response",F.url);r=z.body.pipeThrough(new TextDecoderStream).getReader();
w=new _.sJ;L={};return D.return(ISK(I,r,w,nII,L,k))}})},MeB=function(I,C,y){if(I.networkSli){var k=_.Tl(_.MJ(C,"key"))||"/UNKNOWN_PATH";
I.networkSli.start(k)}k=y;_.V("wug_networking_gzip_request")&&(k=YeX(y));var F;return new ((F=I.requestFn)!=null?F:window.Request)(C,k)},ISK=function(I,C,y,k,F,z){var c,r,w,L,D,p,Q,X,b;
return _.e(function(S){if(S.nextAddress==1)return _.n(S,C.read(),2);c=S.yieldResult;r=c.value;if(w=c.done)return(L=I.networkSli)==null||L.success(),S.return(F);try{D=y.parse(r)}catch(A){throw new MX(1,"Failed to parse streaming response",r);}if(D!=null)for(p=_.T(D),Q=p.next();!Q.done;Q=p.next())X=Q.value,k(F,X),b=void 0,(b=z)==null||b(F,X);return S.return(ISK(I,C,y,k,F,z))})};
aYj.prototype.handleResponse=function(I,C){var y,k=(y=this.parseFn)!=null?y:JSON.parse;y=I.text().then(function(F){if((C==null?0:C.jspbResponseCtor)&&I.ok)return MBF(C.jspbResponseCtor,F);F=F.replace(")]}'","");if((C==null?0:C.expectJsonStrict)&&F)try{var z=k(F)}catch(r){throw new MX(1,"JSON parsing failed after fetch");}var c;return(c=z)!=null?c:k(F)});
I.redirected||I.ok?this.networkSli&&this.networkSli.success():(this.networkSli&&this.networkSli.failure(),y=y.then(function(F){_.SN(new _.ph("Error: API fetch failed",I.status,I.url,F));return Object.assign({},F,{errorMetadata:{status:I.status}})}));
return y};
aYj[tj]=[_.aU(O58),_.aU(mqK),_.aU(Z5L),_.aU(BSS)];var CjK=new _.Jj("NETWORK_MANAGER_TOKEN");var sLM=[1,2,4,8,16,30],yPY=function(I){this.frameCountInternal=0;this.brokenFrameSummarizers=[];this.maxTimeMs=I.maxTimeMs;this.maxFrameCount=I.maxFrameCount===void 0?Math.ceil(60*I.maxTimeMs/1E3):I.maxFrameCount;I=_.T(sLM);for(var C=I.next();!C.done;C=I.next())this.brokenFrameSummarizers.push(new oKK(C.value/60*1E3))},kMY=function(I){var C=I.frameCountInternal>=I.maxFrameCount;
return I.elapsedTimeMs>=I.maxTimeMs||C},FLB=function(I){for(var C=[],y=_.T(I.brokenFrameSummarizers),k=y.next();!k.done;k=y.next())k=k.value,k=k.brokenFrameCount!==0?{severityMs:Math.round(k.targetFrameTimeMs),
eventCount:k.brokenFrameCount,averageDurationBetweenEventsMs:Math.round(k.averageDurationBetweenEventsMs)}:void 0,k&&C.push(k);return{summaries:C,monitoringDurationMs:Math.round(I.elapsedTimeMs)}};
_.H1.Object.defineProperties(yPY.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 oKK=function(I){this.targetFrameTimeMs=I;this.currTimeMs=this.brokenFrameCount=0;this.timeOfLastBrokenFrameMs=this.timeOfFirstBrokenFrameMs=void 0};
_.H1.Object.defineProperties(oKK.prototype,{averageDurationBetweenEventsMs:{configurable:!0,enumerable:!0,get:function(){return this.brokenFrameCount<=1?0:(this.timeOfLastBrokenFrameMs-this.timeOfFirstBrokenFrameMs)/(this.brokenFrameCount-1)}}});var uRy=function(){};
uRy.prototype.start=function(I,C){var y=this;if(!window.requestAnimationFrame)return Promise.resolve(void 0);this.monitor&&this.stop();var k=new yPY({maxTimeMs:I});this.monitor=k;this.lastSummaryInternal=void 0;this.metadataToLog=C;return new Promise(function(F){var z=function(c){if(c===void 0)y.stop(),F(void 0);else if(y.monitor!==k)c=Object.assign({},FLB(k),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"}),F(c);else{var r=y.monitor;if(!kMY(r)){r.frameCountInternal++;if(r.prevTime===void 0)r.startTime=
c;else for(var w=c-r.prevTime,L=_.T(r.brokenFrameSummarizers),D=L.next();!D.done;D=L.next()){D=D.value;var p=D.currTimeMs;D.currTimeMs+=w;w>D.targetFrameTimeMs+2&&(D.brokenFrameCount++,D.timeOfFirstBrokenFrameMs===void 0&&(D.timeOfFirstBrokenFrameMs=p),D.timeOfLastBrokenFrameMs=p)}r.prevTime=c}kMY(y.monitor)?F(y.stop()):_.b$.addJob(z,5,0)}};
_.b$.addJob(z,5,0)})};
uRy.prototype.stop=function(I){if(!this.monitor)return this.lastSummaryInternal;var C=Object.assign({},FLB(this.monitor),{measurementMethod:"MEASUREMENT_METHOD_WEB_RAF_POLLING"});if(C.monitoringDurationMs){I=I!=null?I:this.metadataToLog;var y={droppedFramesSummary:C,name:"MANUAL_MEASUREMENT_NAME_AMBIENT_MODE_IDLE"};I&&(y[I.type]=I.data);_.b2("manualSmoothnessMeasurement",y)}this.monitor=void 0;this.lastSummaryInternal=C;this.metadataToLog=void 0;return C};_.zYP=new _.Jj("MAIN_THREAD_DFE_CAPTURER_AMBIENT_MODE_IDLE_TOKEN");var TyH;TyH=function(I){this.JSC$16169_expiringStorage=new NS(I)};
_.cPM=function(I){if(_.zUO()&&(I=_.k5s(_.Lh()+"::"+I)))return new TyH(I)};
TyH.prototype.set=function(I,C,y){y=y!==void 0?Date.now()+y:void 0;this.JSC$16169_expiringStorage.set(I,C,y)};
TyH.prototype.get=function(I){return this.JSC$16169_expiringStorage.get(I)};
TyH.prototype.remove=function(I){this.JSC$16169_expiringStorage.remove(I)};var eYK=new _.Jj("SESSION_STORAGE");_.Fr=function(){};
_.Fr.getInstance=function(){var I=_.d5("ytglobal.storage_");I||(I=new _.Fr,_.U8("ytglobal.storage_",I));return I};
_.Fr.prototype.estimate=function(){var I,C,y;return _.e(function(k){I=navigator;return((C=I.storage)==null?0:C.estimate)?k.return(I.storage.estimate()):((y=I.webkitTemporaryStorage)==null?0:y.queryUsageAndQuota)?k.return(TVO()):k.return()})};
_.U8("ytglobal.storageClass_",_.Fr);var rPR=_.hu(["https://fonts.googleapis.com/css?family=Roboto:300italic,400italic,500italic,700italic"]),i8B=_.hu(["https://fonts.googleapis.com/css?family=Roboto+Mono:400"]);var Rpe={"/":_.eo,"/?feature=ytca":_.eo,"/feed/downloads":_.KSt};var PJ=function(I,C,y){this.JSC$16180_upliftPromise=I;this.store=C;this.JSC$16180_persistentStorePromiseAccessor=y};
PJ.prototype.shouldPreferLocalResponse=function(I){return I.browseId==="FEdownloads"||I.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?!0:!1};
PJ.prototype.localInnertubeResponse=function(I){var C=this;return _.e(function(y){return I.browseId==="FEdownloads"?_.V("kevlar_modern_downloads_page")?y.return(wRY(C)):y.return(nKK(C)):I.browseId==="FEsmart_downloads"&&_.V("kevlar_modern_downloads_page")?y.return(PjB(C)):y.return(Promise.reject(Error("oj")))})};
PJ.prototype.canProvideFallbackResponse=function(){return!0};
PJ.prototype.localFallbackInnertubeResponse=function(I){var C=this,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return _.n(z,C.JSC$16180_persistentStorePromiseAccessor(),2);case 2:y=z.yieldResult;if(I.browseId!=="SPaccount_downloads"||!y){z.jumpTo(3);break}return _.n(z,EeX(y),4);case 4:if(k=z.yieldResult)return z.return(_.zb(k));case 3:return I.browseId==="FEwhat_to_watch"?z.return(LLK(C)):(F=_.V("web_offline_continuation_automatic_retry")||_.V("web_offline_continuation_retry_button"))&&
I.continuation?z.return(DKY(C)):z.return(pR8(C))}})};
var LLK=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$16180_upliftPromise,2);C=_.OVK(I.store.getState().entities);return C.length?y.return(QLP(I,C)):y.return(pR8(I))})},nKK=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$16180_upliftPromise,2);if(k.nextAddress!=3)return C=NyS([{offlineItemSectionRenderer:{}}]),_.n(k,VBY(I,C),3);y=k.yieldResult;y.onResponseReceivedActions=[jL("REFRESH_DOWNLOADS")];return k.return(y)})},wRY=function(I){var C,y,k,F,z,c,r,w,L,D,p,Q,X;
return _.e(function(b){if(b.nextAddress==1)return _.n(b,I.JSC$16180_upliftPromise,2);if(b.nextAddress!=3)return C=I.store.getState(),y=C.entities,k=_.Xy(y),F=_.$9(y),z=_.RSm(C),c=_.$Dt(C),r=_.bZF(C),w=_.CvK(y),L=_.QE(k),D=_.RQ(y),p={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.B6O(k,F,w,z,c,L,D,r),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS"})}}}]}},Q=_.PQ("DOWNLOADS",void 0,"Downloads"),_.n(b,jLY(I,p,Q),3);X=b.yieldResult;
X.onResponseReceivedActions=[jL("REFRESH_DOWNLOADS")];return b.return(X)})},PjB=function(I){var C,y,k,F,z,c,r,w,L;
return _.e(function(D){if(D.nextAddress==1)return _.n(D,I.JSC$16180_upliftPromise,2);if(D.nextAddress!=3)return C=I.store.getState(),y=C.entities,k=_.Xy(y),F=_.QE(k),z=_.RQ(y),c={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:Object.assign({},_.haF(k),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS"})}}}]}},r=_.PQ("SMART_DOWNLOADS",void 0,"Smart downloads"),w=mvW(F,z),_.n(D,jLY(I,c,r,w),3);L=D.yieldResult;L.onResponseReceivedActions=[jL("REFRESH_DOWNLOADS")];
return D.return(L)})},pR8=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1)return _.n(k,uz(I.JSC$16180_upliftPromise,I.store),2);C=k.yieldResult;y=NyS([q4H(C)]);return k.return(VBY(I,y))})},DKY=function(I){var C,y,k,F;
return _.e(function(z){if(z.nextAddress==1)return C={},y=I.store.getState().continuation.continuationCommand,_.V5(C,_.R8,y),_.n(z,uz(I.JSC$16180_upliftPromise,I.store,C,"BACKGROUND_PROMO_STYLE_TYPE_ADAPTIVE_FULL_HEIGHT"),2);k=z.yieldResult;F={};_.V5(F,_.YrS,{continuationItems:[{richSectionRenderer:{content:{backgroundPromoRenderer:k}}}],targetId:"browse-feedFEwhat_to_watch"});return z.return({responseContext:{},onResponseReceivedActions:[F]})})},NyS=function(I){return{twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,
content:{sectionListRenderer:{contents:I}}}}]}}},QLP=function(I,C){var y,k;
return _.e(function(F){var z={contents:ls(C)};y=z&&z.contents?z:{};_.V("kevlar_modern_downloads_page")&&(y=Object.assign({},_.Uvz(C),{entitySelectorType:"RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS"}));k={twoColumnBrowseResultsRenderer:{tabs:[{tabRenderer:{selected:!0,content:{richGridRenderer:y}}}]}};return F.return(VBY(I,k))})},VBY=function(I,C){var y,k;
return _.e(function(F){if(F.nextAddress==1)return _.n(F,I.JSC$16180_persistentStorePromiseAccessor(),2);if(F.nextAddress!=3)return y=F.yieldResult,_.n(F,Tb(y),3);k=F.yieldResult;return F.return({responseContext:{},contents:C,topbar:k})})},jLY=function(I,C,y,k){var F,z;
return _.e(function(c){if(c.nextAddress==1)return _.n(c,I.JSC$16180_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3)return F=c.yieldResult,_.n(c,Tb(F),3);z=c.yieldResult;var r=c.return;var w=k;w=w===void 0?"":w;w={content:{pageHeaderViewModel:{title:{dynamicTextViewModel:{text:{content:y}}},actions:{flexibleActionsViewModel:{actionsRows:[{actions:[{buttonViewModel:{title:_.PQ("SETTINGS",void 0,"Settings"),accessibilityText:_.PQ("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:M1("SPaccount_downloads","/account_downloads",6827,"WEB_PAGE_TYPE_SETTINGS")},loggingDirectives:{clientVeSpec:{uiType:21412}}}}]}]}},metadata:{contentMetadataViewModel:{metadataRows:[{metadataParts:[{text:{content:w}}]}]}},rendererContext:{loggingContext:{loggingDirectives:{clientVeSpec:{uiType:176034}}}}}},pageTitle:y};
return r.call(c,{responseContext:{},contents:C,topbar:z,header:{pageHeaderRenderer:w}})})};var lSP=function(){this.moduleRegistry={};this.fetchCount=0};
lSP.prototype.isFetching=function(){return this.fetchCount>0};
var dA=function(I,C){I.moduleRegistry[C.toString()]={asyncId:C,isFetching:!1};return I};
lSP.prototype.JSC$16191_loadModules=function(){for(var I=this,C=new Map,y=[],k=_.T(_.wa.apply(0,arguments)),F=k.next();!F.done;F=k.next()){F=F.value;var z=this.moduleRegistry[F];z?z.resolver?C.set(F,z.resolver):(z.resolver=new _.ug,C.set(F,z.resolver),y.push(z.asyncId),z.isFetching=!0):(z=new _.ug,C.set(F,z),z.resolve(void 0))}y.length&&(this.fetchCount+=1,_.N2(_.pX.getMultipleAsync.apply(_.pX,_.Py(y)).then(function(c){for(var r=0;r<y.length;r++){var w=c[r],L=I.moduleRegistry[y[r].toString()];L.isFetching=
!1;L.resolver.resolve(w)}}).catch(function(c){for(var r=_.T(y),w=r.next();!w.done;w=r.next()){w=w.value;
var L=I.moduleRegistry[w.toString()];L.resolver=void 0;L.isFetching=!1;C.get(w.toString()).reject(c)}}),function(){--I.fetchCount}));
return Promise.all([].concat(_.Py(C.values())).map(function(c){return c.promise}))};_.xH=new _.Jj("MODULE_REGISTRY_TOKEN");var XRL={},$KK=(XRL.rendered={priority:0,callback:function(I){a:{var C=void 0;try{var y;b:{if(_.HXz()){var k=_.y$W(_.Lh()+"::pom");if(k){var F=new zZ(k);break b}}F=void 0}var z=(y=F)==null?void 0:y.get("role_text");if(!z)break a;C={updatePermissionRoleCommand:{renderer:{permissionRoleBottomBarRenderer:{status:{runs:[{text:z}]}}}}}}catch(w){}C&&I.injector.resolve(_.ID).resolveCommand(C)}try{var c=window.sessionStorage.getItem("POM_ACK_FEEDBACK_ENDPOINT");if(c){var r=JSON.parse(c);window.sessionStorage.removeItem("POM_ACK_FEEDBACK_ENDPOINT");
r&&I.injector.resolve(_.ID).resolveCommand(r)}}catch(w){}}},XRL);var RYH,b8M={},YHK=(b8M.initialized={priority:10,callback:function(){RYH=Xv()}},b8M.rendering={callback:function(I){var C;
return _.e(function(y){if(y.nextAddress==1)return _.n(y,RYH,2);C=y.yieldResult;if(!C.endpoint)throw Error("qj`"+_.sF.location.href);YH(I,C);_.oI(y)})}},b8M);var GM8={messageWeights:[{messageRegExp:/.*(window.customElements|HTMLTemplateElement).* is undefined/,weight:500},{messageRegExp:/.*(protonpass).*/,weight:0},{messageRegExp:/.*property '(configurable|polyfillWrapFlushCallback)'.*/,weight:500},{messageRegExp:/.*__shady_(native_addEventListener|getRootNode).*/,weight:500}].concat(_.Py(_.V("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(I){var C=I.stack;if(C.includes("chrome://")||C.includes("chrome-extension://")||I.message.includes("chrome-extension://")||C.includes("moz-extension://")||C.includes("local.adguard.org")||C.includes("auctioneer3.50million.club")||C.includes("youtubedownloader")||C.includes("youtube_home_page")||C.includes("is_youtube_video_no_longer_available")||
C.includes("switchScreenSizeHack")||C.includes("yt_main_big_banner.js")||C.includes("YouTubeCenter.js")||C.includes("/mytube.js")||C.includes("JSON.parseWrapper")||C.includes("/inj_js/common.js")||C.includes("firebug-lite")||C.includes(".repl.co/")||C.includes("linkfix")||C.includes("playAfterAd")||I.message.includes("Access is denied for this document")&&C.includes("<anonymous>")||I.fileName==="user-script"||I.message.includes("cannot be created in a document with origin 'https://www.youtube.com' and URL 'about:blank'")&&
C.includes("<anonymous>"))return!0;if(C.includes("https://www.youtube.com"))return!1;I=C.split("\n");if(!I.length)return!1;if(I.length<=3&&C.includes("s.onloadeddata"))return!0;C=0;for(var y=_.T(I),k=y.next();!k.done;k=y.next())k=k.value,(k.includes("https://")||k.includes("http://"))&&C++;return C/I.length>.95},
weight:0},{callback:function(I){return I.message==="Unknown Error"&&I.name.indexOf("NS_")===0},
weight:100},{callback:function(I){if(!_.F8)return!1;var C=I.message.indexOf("\uba54\ubaa8\ub9ac \ub9ac\uc18c\uc2a4\uac00 \ubd80\uc871\ud558\uae30 \ub54c\ubb38\uc5d0 \uc774 \uc791\uc5c5\uc744 \uc644\ub8cc\ud560")===0||I.message.includes("available to complete this operation"),y=I.stack.includes("webcomponents")&&I.message==="Object doesn't support this action";I=I.message.includes("object that does not implement interface Element");return C||y||I},
weight:0},{callback:function(I){return I.message==="Illegal invocation"&&navigator.userAgent.includes("Trident")&&navigator.vendor==="Google Inc."},
weight:0},{callback:function(I){return I.message==="Operation is not supported"&&(I.stack.match(/textinputassistant/g)||[]).length>=5},
weight:500},{callback:function(I){return I.stack.includes("eval code (eval (code:1:1)")||I.stack.includes("Object.my_load [as load] ")},
weight:0},{callback:function(I){return I.message.includes("Permission denied")&&I.stack.includes("this.domHandler")?!0:I.name.includes("TypeError")&&I.stack.includes("/www-searchbox")&&navigator.userAgent.includes("Trident")},
weight:500},{callback:function(I){if(!I.stack)return!1;var C=I.stack.trim().split("\n");C.length&&C[0].endsWith("Error: "+I.message)&&C.shift();C.length&&C[C.length-1].includes("at window.onerror (")&&C.pop();if(!C.length)return!0;if(I.message==="Script error.")return C[0].includes("www.youtube.com")||C.length>=2&&C[0].startsWith("at new")&&C[1].startsWith("at window.onerror");if(I.message==="Unexpected token")return!0;I=_.T(C);for(C=I.next();!C.done;C=I.next())if(C=C.value,!(C.includes("<anonymous>")||
C.startsWith("load@")||C.startsWith("global code@")||C.startsWith("@https://")))return!1;return!0},
weight:500},{callback:function(I){return I.message==="Cannot read property 'experiments'"&&I.stack.includes("/s/player/")},
weight:500},{callback:function(I){return I.message.includes("must not have attributes")&&navigator.userAgent.includes("Vivaldi")},
weight:500},{callback:function(I){return I.stack.includes("/embed.js")?(I.params&&I.params&&(I.params.name="56"),!0):!1},
weight:1}]};var fSS={},SHK=(fSS.initialized={priority:10,callback:function(I){I.injector.addProvider({provide:r1S,useValue:I.root});I.injector.addProvider({provide:psy,useValue:sjY});I.injector.addProvider({provide:QmY,useValue:GM8});var C={};I.injector.addProvider((C.provide=NHL,C.useFactory=function(y,k){return function(){ucm(y,k)}},C[tj]=[psy,
QmY],C));I.injector.addProvider({provide:o5,useClass:o5})}},fSS);var KLR={},APK=(KLR.initialized={priority:3,callback:function(){var I;if(I=O7t()){I=I.replace("/",".");var C=_.pA();C.set("tz",I);C.save();I=!0}else I=!1;I||(I=_.pA(),I.set("utco",-Math.floor((new Date).getTimezoneOffset())),I.save())}},KLR);var gK8={},vKM=(gK8.initialized={priority:10,callback:function(I){I.injector.resolve(o5).start();I=_.gU();var C=_.g5("IS_HOMEPAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_BROWSE"||_.g5("IS_WATCH_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_WATCH"||_.g5("IS_RESULTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SEARCH"||_.g5("IS_SHORTS_PAGE_COLD")&&"MAIN_APP_WEB_PAGE_TYPE_SHORTS"||"MAIN_APP_WEB_PAGE_TYPE_UNKNOWN";_.iz(_.Vgz(),{mainAppWeb:Object.assign({},I,{pageType:C})});_.iz(lII(),{mainAppWeb:Object.assign({},I,{pageType:C})});
_.iz(XfY(),{mainAppWeb:I});_.iz($2X(),{mainAppWeb:I});Ii0(function(){_.wA(XfY(),"FAILURE");_.wA($2X(),"FAILURE")});
NVt();V3W();Wk9()}},gK8);var WLy={},dKM=(WLy.initialized={priority:10,callback:function(){if(document.readyState==="complete")_.Sr("dl"),_.So().processSignal("pcl");else{var I=function(){_.Sr("dl");_.So().processSignal("pcl");window.removeEventListener("load",I)};
window.addEventListener("load",I)}}},WLy);var xKS={},qHS=(xKS.rendering={priority:0,callback:function(){var I=_.So();I.parkOrScheduleJob(function(){I.processSignal("eocs")},10,"eor",5E3)}},xKS);var mKY=function(){};
_.R(mKY,l1);
mKY.prototype.resolveCommand=function(I,C){var y,k,F,z,c,r,w,L;return _.e(function(D){F=(y=_.l(I,_.cp5))==null?void 0:(k=y.dialog)==null?void 0:k.commentReplyDialogRenderer;if(!F)throw new _.ph("No dialog in createCommentReplyDialogEndpoint");c=(z=C.form)==null?void 0:z.event;if(!c)throw new _.ph("Event not passed in when resolving command");r=_.T(c.composedPath());for(w=r.next();!w.done;w=r.next())if(L=w.value,L.tagName==="YTD-COMMENT-ACTION-BUTTONS-RENDERER"||L.tagName==="YTD-COMMENT-ENGAGEMENT-BAR")return L.showReplyDialog(F),D.return();
_.oI(D)})};var uy=function(I){this.pageRequestService=I;this.JSC$16206_prefetchCoordinator=FYL()};
_.R(uy,l1);uy.prototype.resolveCommand=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1){y=_.l(I,Bo5);if((k=y)==null||!k.taskId)throw Error("rj");F=y.taskId;_.aM(c,2);return _.n(c,_.Q90(C.pageRequestService,I,{},"").then(function(r){if(!r)throw Error("sj");},function(r){throw Error("tj`"+r);
}),4)}if(c.nextAddress!=2)return THS(C.JSC$16206_prefetchCoordinator,F),_.dC(c,0);
z=_.sj(c);qQ(C.JSC$16206_prefetchCoordinator,F,z);_.oI(c)})};
uy[tj]=[lz];var zS=function(I){this.innertubeTransportService=I};
_.R(zS,l1);zS.prototype.resolveCommand=function(I){var C=this,y,k;return _.e(function(F){y=_.l(I,hSY);if(y.settingItemIdForClient==="AUTONAV_FOR_SIGN_OUT"||y.settingItemIdForClient==="AUTONAV_FOR_DESKTOP")k=y.boolValue?2:1,_.ho.getInstance().setState(k,!0,!0);return _.n(F,_.gh(C.innertubeTransportService,I),0)})};
zS[tj]=[_.Q0];var TS={},Z8S=(TS.addToPlaylistEndpoint=at(iH),TS.addToToastAction=at(rz),TS.adsControlFlowOpportunityReceivedCommand=at(ty),TS.captionLanguageSelectActionCommand=at(RP),TS.captionPickerEndpoint=at(bH),TS.changeMiniAppPlayStateCommand=at(wL),TS.changeTimelyActionVisibilityCommand=at(eu),TS.channelCreationFormEndpoint=at(uH),TS.clearLocationCommand=at(rL),TS.clearUrlParamCommand=at(n_),TS.copyLinkCommand=at(K_),TS.copyTextEndpoint=at(af),TS.createCommentReplyDialogEndpoint=gYs(mKY),TS.createPlaylistServiceEndpoint=
at(A5),TS.dismissDialogEndpoint=at(L_),TS.entityUpdateCommand=at(IP),TS.feedbackEndpoint=at(oP),TS.getAnswerCommand=at(nMw),TS.getPaymentsClientTokenCommand=at(nf),TS.getTranscriptEndpoint=at(iq),TS.googlePaymentBillingCommand=at(PE),TS.googlePaymentPurchaseManagerCommand=at(Lf),TS.hideEngagementPanelEndpoint=at(D5),TS.insertRichSectionCommand=at(Ti),TS.listMutationCommand=at(cb),TS.logGtmCommand=at(zi),TS.notifyDropdownOptionSelectedCommand=at(Pb),TS.openAdAllowlistInstructionCommand=at(_.Jy),TS.openOnePickAddVideoModalCommand=
at(gL),TS.persistSubscriptionsDisplayPreferencesCommand=at(m1),TS.pingingEndpoint=at(OS),TS.playlistEditEndpoint=at(Wb),TS.playlistVotingRefreshPopupCommand=at(dL),TS.refreshPanelEndpoint=at(p_),TS.saveImageToDeviceEndpoint=at(MP),TS.scrollToSectionEndpoint=gYs(PE5),TS.seekToVideoTimestampCommand=at(Yv),TS.selectCountryCommand=at(Z5),TS.setCookieCommand=at(Bb),TS.setLocalStorageCommand=at(F0),TS.setPrefStorageEntryCommand=at(h5),TS.setSettingEndpoint=at(zS),TS.sfvAudioItemPlaybackCommand=at(Gi),TS.shareImageCommand=
at(UK),TS.sharingProviderDataCommand=at(Hb),TS.showCaptionLanguageSelectActionCommand=at(f_),TS.showDialogCommand=at(VI),TS.showEngagementPanelEndpoint=at(j$),TS.showSheetCommand=at(lH),TS.showTransientPlayerScrimOverlayCommand=at(S$),TS.submitFormWithValidationFlowCommand=at(Fa),TS.talkToRecsDeselectCommand=at(uq),TS.talkToRecsNextCommand=at(zn),TS.talkToRecsSelectCommand=at(Tn),TS.talkToRecsUpdateTextCommand=at(cE),TS.toggleEngagementPanelCommand=at(Xa),TS.undoFeedbackEndpoint=at(kv),TS.updateEngagementPanelContentCommand=
at($v),TS.updateUrlParamCommand=at(wz),TS.verifyCommand=at(uH),TS.webNativeShareCommand=at(t5),TS.webSubmitFormCommand=at(xv),TS.ACK_PLAYABLES_3P_DATA_CONSENT=at(J5),TS.CANCEL_NAVIGATION=at(OK),TS.COPY_SHARE_URL=at(aP),TS.MINI_APP_EXIT_DIALOG_SEEN=at(IS),TS.MINI_APP_OPEN_URL=at(MR),TS.REQUEST_MINI_APP_FULLSCREEN=at(Cf),TS.RESUME_NAVIGATION=at(sM),TS.SHARE_PLAYABLE_WITH_HIGH_SCORE=at(oS),TS.TELL_US_WHY=at(yI),TS);
_.V("web_enable_prefetching_videos_on_home")&&(Z8S.prefetchWatchCommand=at(uy),Z8S.registerTasksCommand=at(Z6));_.V("enable_share_panel_navigation_logging_fix_on_web")&&(Z8S.shareEntityServiceEndpoint=at(QI));var vx8=Object.assign({},Z8S);var ByP={},EKL=(ByP.initialized={priority:10,callback:RUX},ByP);var hYR={},UKj=(hYR.initialized={callback:function(I){var C={},y={};u6Y().install((C.document_disposed={callback:function(){_.V("finalize_all_timelines")?aAF():Y3();yIH("FOREGROUND_HEARTBEAT_TRIGGER_ON_BACKGROUND");_.D6K();var k=I.injector.resolve(o5);k.intervalId!==void 0&&(k.intervalId&&_.b$.cancelJob(k.intervalId),k.intervalId=void 0,--k.currentPartitionIndex,k=I6m(k),k>0&&jAP({mainAppWeb:_.gU(),survivalSli:{partitionMinute:k,survivalStatus:"SURVIVAL_STATUS_TYPE_CENSORED"}}));w7S(v3);W3!=null&&
W3.flush();sq&&sq.snapshotAndFlush()}},C),(y.flush_logs={callback:function(){_.Yo()}},y))}},hYR);var H8y={},tBy=(H8y.rendered={priority:0,callback:function(){var I=new B0d;I.increment("STARTED");if(_.Aq("LOGGED_IN")&&_.Aq("SERVER_VERSION")!=="test"&&_.Aq("SERVER_VERSION")!=="dev"&&!fYq()&&!G0d()){I.increment("EXECUTING");var C=document.createElement("iframe");C.style.display="none";_.nGY(C,2,_.ra("https://accounts.youtube.com/RotateCookiesPage?origin=https://www.youtube.com&yt_pid="+_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME")));document.body&&document.body.appendChild(C);I.increment("DONE")}}},H8y);var JPY={},O8Y=(JPY.rendered={callback:function(){FYL().resume()}},JPY);var aSY={acknowledgeChannelTouStrikeCommand:bk(UM),addToPlaylistServiceEndpoint:bk(OO),addToPlaylistEndpoint:bk(OO),addUpcomingEventReminderEndpoint:bk(nr),browseEndpoint:bk(mhw),channelCreationFormEndpoint:bk(xI),channelCreationServiceEndpoint:bk(qI),claimLegacyYoutubeChannelEndpoint:bk($I),clearSearchHistoryEndpoint:bk(IG),clearWatchHistoryEndpoint:bk(Cr),commerceActionCommand:Ys(V7),createBackstagePostEndpoint:bk(Qj),createBroadcastCommand:bk(PZ),createCommentEndpoint:bk(gz),createCommentReplyEndpoint:bk(Ag),
createLiveChatPollEndpoint:bk(Lr),createPlaylistServiceEndpoint:bk(aG),crossAccountChannelTransferEndpoint:bk(yQ),deleteLiveChatMessageCommand:bk(Dm),deletePlaylistEndpoint:bk(M6),deleteVideoEndpoint:bk(wg),dismissalEndpoint:bk(HE),feedbackEndpoint:bk(tg),flagEndpoint:bk(kD),getAccountSwitcherEndpoint:bk(oG),verifyCommand:bk(pf),getAccountsListInnertubeEndpoint:bk(F6),getCommentsFromInboxCommand:bk(Kr),getDownloadActionCommand:bk(q6),getFlowCommand:Ys(MI),getKidsBlocklistPickerCommand:bk(FM),getNotificationMenuEndpoint:bk(EMb),
getPaymentInstrumentsParamsCommand:bk(bN),getPaymentsClientTokenCommand:Ys(V7),getPdgBuyFlowCommand:bk(tQ),getReportFormEndpoint:bk(uN),getSearchInVideoCommand:bk(cG),getAnswerCommand:bk(Tc),getSurveyCommand:bk(iN),getTranscriptEndpoint:bk(LP),getPostVideoPreviewEndpoint:bk(Vj),decorateMessageEndpoint:bk(NI),likeEndpoint:bk(m8),liveChatActionEndpoint:bk(VQ),liveChatEndpoint:bk(N6),liveChatItemContextMenuEndpoint:bk(pr),liveChatPurchaseMessageEndpoint:bk(jS),liveChatReplayEndpoint:bk(QQ),manageLiveChatUserEndpoint:bk(X6),
metadataUpdateCommand:bk(fr),moderateLiveChatEndpoint:bk($w),modifyChannelNotificationPreferenceEndpoint:bk(WZ),notificationOptOutEndpoint:bk(dj),openSuperStickerBuyFlowCommand:bk(ll),performCommentActionEndpoint:bk(ff),playlistEditEndpoint:bk(CP),playlistEditorEndpoint:bk(I4),profileCardCommand:bk(ul),recordNotificationInteractionsEndpoint:bk(xw),reelWatchEndpoint:bk(sW),refreshPanelEndpoint:bk(Zm),removeUpcomingEventReminderEndpoint:bk(RG),resolveLocationCommand:bk(Gw),revealBusinessEmailCommand:bk(RS),
searchEndpoint:bk(_.hpP),sendLiveChatMessageEndpoint:bk(bl),sendLiveChatVoteEndpoint:bk(Yw),setSettingEndpoint:bk(Zj),shareEntityServiceEndpoint:Ys(hg),sharingProviderDataCommand:bk(rg),showEngagementPanelEndpoint:bk(BZ),showMoreDrawerCommand:bk(hQ),showSheetCommand:bk(UO),showDialogCommand:bk(EO),subscribeEndpoint:bk(BE),transcriptSubmitCaptionCorrectionCommand:bk(PG),undoFeedbackEndpoint:bk(OM),unsubscribeEndpoint:bk(EM),updateBackstagePostEndpoint:bk(lq),updateCommentEndpoint:bk(WE),updateCommentReplyEndpoint:bk(vE),
updateCommentsSettingsEndpoint:bk(dz),updateCreatorChannelInnertubeCommand:bk(YI),updateKidsBlacklistEndpoint:bk(zc),updateEngagementPanelContentCommand:bk(HZ),updatePdgFeatureEnablementCommand:bk(JQ),updatedMetadataEndpoint:bk(SS),validateChannelHandleCommand:bk(Gn),updateChannelPageSettingsEndpoint:bk(bq),verifyAgeEndpoint:bk(aS),watchEndpoint:Ys(nP),whitelistEditEndpoint:bk(NQ),ypcCancelRecurrenceEndpoint:bk(j8),ypcCompleteTransactionEndpoint:bk(lN),ypcFixInstrumentEndpoint:bk($D),ypcGetCartEndpoint:bk(XM),
ypcGetOffersEndpoint:bk(R4),ypcHandleTransactionEndpoint:Ys(YD),ypcLogWalletAnalyticDataEndpoint:bk(Gc),ypcOffersEndpoint:bk(fP),ypcPauseSubscriptionCommand:bk(S8),ypcRedeemCodeEndpoint:bk(KP),ypcResumeSubscriptionCommand:bk(A1),ypcUpdateFopEndpoint:bk($D)},cX={},MBH=(cX.GET_ACCOUNT_MENU=bk(kw),cX.GET_NOTIFICATIONS_MENU=bk(Bud),cX.GET_NOTIFICATIONS_INBOX=bk(AQ),cX.GET_UNSEEN_NOTIFICATION_COUNT=bk(vZ),cX.GET_USER_MENTION_SUGGESTIONS=bk(ju),cX.LOAD_GUIDE=bk(Zjq),cX.SUBMIT_FEEDBACK=bk(Jg),cX),eT={},
I8Y=(eT.CONTINUATION_REQUEST_TYPE_BROWSE=bk(X0),eT.CONTINUATION_REQUEST_TYPE_SEARCH=bk(e8),eT.CONTINUATION_REQUEST_TYPE_WATCH_NEXT=bk(pP),eT.CONTINUATION_REQUEST_TYPE_ACCOUNTS_LIST=bk(sO),eT.CONTINUATION_REQUEST_TYPE_COMMENTS_NOTIFICATION_MENU=bk(Kf),eT.CONTINUATION_REQUEST_TYPE_COMMENT_REPLIES=bk(Su),eT.CONTINUATION_REQUEST_TYPE_REEL_WATCH_SEQUENCE=bk(y7),eT.CONTINUATION_REQUEST_TYPE_GET_PANEL=bk(mf),eT),C7Y={player:Ys(nP),watchNext:bk(D6)},sJR={player:Ys(nP),reelItemWatch:bk(sW),reelWatchSequence:bk(o4)},
oGH={watchEndpoint:Ys(Q7)},yTK={commandEndpointMap:aSY,signalEndpointMap:MBH,continuationEndpointMap:I8Y,watchEndpointMap:C7Y,reelWatchEndpointMap:sJR,streamingEndpointMap:oGH};var kRL,Fzy,uLK,zTY={disableAllTransitions:(Fzy=(kRL=window).matchMedia)==null?void 0:(uLK=Fzy.call(kRL,"(prefers-reduced-motion: reduce)"))==null?void 0:uLK.matches,transitionConfigs:new Map([["slide",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}],["zoom",{defaultViewTransitionOptions:{shouldWrap:!0,skipTransitionTimeoutMs:500}}]])};var TR8=new _.Jj("VIEW_TRANSITION_MANAGER_CONFIG_TOKEN");_.cTK=new _.Jj("VIEW_TRANSITION_MANAGER_TOKEN");var eTR=function(I){this.config=I;this.transitionTasksMap=new Map;I=_.T(I.transitionConfigs);for(var C=I.next();!C.done;C=I.next())C=_.T(C.value).next().value,this.transitionTasksMap.set(C,[])};
eTR[tj]=[TR8];var bmO={data:void 0,previousButtonDisabled:!1,nextButtonDisabled:!1,shortsPreviewThumbnail:void 0,shortsData:void 0,externalPlaylistData:void 0,toastData:void 0,playabilityStatus:void 0,isDisabled:!1,isReadyToResume:!1,watchWhile:!1};var Gtz=["videoPrimaryInfoRenderer","title"],faX=["videoSecondaryInfoRenderer","owner","videoOwnerRenderer","title"];var rTY;rTY=[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}];_.i2R=_.BO(function(I){I=_.ZB(I,{data:void 0,playlistData:void 0,expanded:!1,onExpandClick:void 0,isReadyToResume:!1});var C=I.data,y=I.playlistData,k=I.expanded,F=I.onExpandClick,z=I.isReadyToResume,c=function(){var D;return!((D=y())==null||!D.contents)},r=function(){var D=y();
return D&&D.totalVideos&&D.currentIndex!==void 0?D.currentIndex+1+" / "+D.totalVideos:""};
I=_.uk(function(){_.rM(_.N().resolve(_.WJ))});
var w=_.uk(function(){c()&&F&&F()}),L={};
return _.P("ytd-miniplayer-info-bar",{class:_.sZ("ytdMiniplayerInfoBarHost",(L.ytdMiniplayerInfoBarHasPlaylistData=c,L)),"on:click":w},_.P("div",{class:"ytdMiniplayerInfoBarContent"},_.P("h1",{class:"ytdMiniplayerInfoBarTitle","on:click":I},_.P(_.wh,{text:function(){var D=C();var p=y();if(p==null?0:p.contents){var Q;D=(Q=_.OuH(p))==null?void 0:Q.title}else D=D==null?void 0:D.miniplayerTitle;return K$W(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.P("div",{class:"ytdMiniplayerInfoBarSubtitle"},_.P("h1",null,_.P(_.wh,{className:"ytdMiniplayerInfoBarSubtitleText",text:function(){var D=C();var p=y();D=z()?{simpleText:_.PQ("CONTINUE_WATCHING",void 0,"Continue watching")}:(p==null?0:p.contents)?p.titleText:D==null?void 0:D.miniplayerSubtitle;return K$W(D)},
noEndpoints:!0,ellipsisTruncate:!0})),_.P(_.Dx,{cond:function(){return!!r()&&!z()},
then:function(){return _.P("div",{class:"ytdMiniplayerInfoBarPlaylistIndex"},_.P("span",{class:"ytdMiniplayerInfoBarPlaylistIndexTextDivider"},"\u2022"),_.P("span",null,r))}}),_.P(_.Dx,{cond:z,
then:function(){return _.P(Pyw,{className:"ytdMiniplayerInfoBarPremiumBadge",badges:rTY})}}))),_.P(_.Dx,{cond:c,
then:function(){return _.P("div",{class:"ytdMiniplayerInfoBarExpand"},_.P(aY,{data:function(){return{style:"mono",type:"text",state:"active",iconPosition:"icon-only",size:"M",onTap:function(D){F&&(F(),D.stopPropagation())}}},
iconName:function(){return k()?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"}}))}}))},"be");var waL;waL=_.BO(function(I){return _.P("div",{class:"ytdMiniplayerPlayerContainerDisabledClose"},_.P(aY,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:"S",onTap:I.onTap}},
iconName:"yt-icons:close"}))},"ce");
_.nGL=_.BO(function(I){I=_.ZB(I,{playabilityStatus:void 0,isDisabled:!1});var C=I.size,y=I.playabilityStatus,k=I.isDisabled,F=_.Es();I=_.T(_.c4(void 0,void 0,"bJr0Se"));var z=I.next().value,c=I.next().value;I=_.XU(_.is);var r=!1,w=function(){return C().height<=0};
_.l0(function(){var Q=C(),X=w(),b=z();b&&!X&&b.setInternalSize(Q.width,Q.height)});
_.X2(function(){var Q,X,b;return _.e(function(S){if(S.nextAddress==1){Q=_.N().resolve(_.WJ);X=Q.getPlayerElement();if(!Q.isMiniplayerActive()||!X||!F.value)return S.return();X.appendTo(F.value);return _.n(S,X.getPlayerPromise(),2)}b=S.yieldResult;b.setSizeStyle(!1,!0);c(b);_.oI(S)})});
_.$4(function(){L()});
_.l0(function(){var Q=z();if(Q)if(k()){var X=Q.getPlayerState();(r=X===-1||X===1||X===3)&&Q.pauseVideo()}else L()});
var L=function(){if(r){r=!1;var Q;(Q=z())==null||Q.playVideo()}},D=_.uk(function(){_.rM(_.N().resolve(_.WJ))}),p={};
return _.P("ytd-miniplayer-player-container",{class:_.sZ("ytdMiniplayerPlayerContainerHost",(p.ytdMiniplayerPlayerContainerHidden=w,p.ytdMiniplayerPlayerContainerHostShortsPip=I,p)),style:_.cP({width:function(){return C().width+"px"},
height:function(){return C().height+"px"}})},_.P("div",{id:"player-container",
class:"ytdMiniplayerPlayerContainerPlayerContainer",el:F}),_.P(_.Dx,{cond:function(){return!!y()&&!_.g_O(y())},
then:function(){return _.P(cld,{className:"ytdMiniplayerPlayerContainerPlayabilityError",compact:!0,data:function(){var Q;return((Q=y())==null?void 0:Q.errorScreen)||null},
status:function(){var Q;return((Q=y())==null?void 0:Q.status)||null}})}}),_.P(_.Dx,{cond:k,
then:function(){return _.P("div",{class:"ytdMiniplayerPlayerContainerDisabled","on:click":D},_.P(waL,{onTap:function(){_.N().resolve(_.WJ).close()}}))}}))},"de");_.P7H=_.BO(function(I){var C=I.toastData;var y=_.Es();I=_.T(_.TN(function(){return!!C()}));
var k=I.next().value,F=I.next().value;I=_.T(_.c4(!1,void 0,"xkrBze"));var z=I.next().value,c=I.next().value,r=function(){var D;return _.hS((D=C())==null?void 0:D.data.title)};
_.RU(function(){_.WV.requestAvailability();C()&&F(!1)});
var w,L;_.l0(function(){k()&&(_.k3(y.value,"iron-announce",{text:C().label+" "+r()}),w&&_.b$.cancelJob(w),w=_.b$.addLowPriorityJob(function(){c(!0)},2500))});
_.l0(function(){z()&&(L&&_.b$.cancelJob(L),L=_.b$.addLowPriorityJob(function(){F(!1);c(!1)},300))});
I={};return _.P("ytd-miniplayer-toast",{el:y,class:_.sZ("ytdMiniplayerToastHost",(I.ytdMiniplayerToastOpening=function(){return k()},I.ytdMiniplayerToastClosing=function(){return z()},I))},_.P(_.Dx,{cond:function(){var D;
return(D=C())==null?void 0:D.data},
then:function(D){return _.P(fc5,{className:"ytdMiniplayerToastThumbnail",data:D,width:78})}}),_.P("div",{class:"ytdMiniplayerToastInfo"},_.P("div",{class:"ytdMiniplayerToastLabel"},function(){var D;
return(D=C())==null?void 0:D.label}),_.P("div",{class:"ytdMiniplayerToastTitle"},r)))},"ee");var BVI;var HmY=new Set,UOX=null;var JII=null;var DjK=_.BO(function(I){var C=I.progressState;var y=I.multiMarkersPlayerBarRenderer;var k=I.progressBarWidth;var F=function(){return IFF(y())},z=function(){return o7O(C())},c=function(){return k()*(C().playedTime/C().videoDuration)};
return _.P("yt-chaptered-progress-bar-line",{class:"ytChapteredProgressBarHost"},_.P(_.pH,{each:F},function(r,w){return _.P(LzK,{modifiedProps:z,chapters:F,index:w,playedProgressWidth:c,backgroundGradientPosition:function(){var L=z(),D=F(),p=w(),Q=c();return(L.playedTime-gA(_.l(D[p],Au)))/L.playedTime*Q}})}))},"fe"),LzK=_.BO(function(I){var C=I.modifiedProps;
var y=I.chapters;var k=I.index;var F=I.playedProgressWidth;var z=I.backgroundGradientPosition;I={};I=_.sZ("ytChapteredProgressBarChapteredPlayerBarChapter",(I.ytChapteredProgressBarChapteredPlayerBarChapterIsScrubbing=function(){return c().isScrubbing},I.ytChapteredProgressBarHoveredMacroMarker=function(){return c().scrubberHovering},I.ytChapteredProgressBarChapteredPlayerBarChapterSeen=function(){return c().videoPosition==="seen"},I));
var c=function(){return yNI(C(),y(),k())},r=function(){var w=C();
var L=y(),D=k();if(yNI(w,L,D).videoPosition!=="active")w=0;else{var p=gA(_.l(L[D],Au));w=(w.playedTime-p)/((gA(_.l(L[D+1],Au))||w.videoDuration)-p)}return w};
return _.P("div",{class:I,style:_.cP({width:function(){var w=C(),L=y(),D=k(),p=_.l(L[D],Au);L=_.l(L[D+1],Au);return(L?gA(L)-gA(p):w.videoDuration-gA(p))/w.videoDuration*100+"%"},
"background-color":function(){a:{var w=c();switch(w.videoPosition){case "pending":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;case "active":w=w.scrubberHovering?"white":"rgba(255, 255, 255, 0.35)";break a;default:w=""}}return w},
"background-size":function(){return(kzX(c())?F():"")+"px"},
"background-position-x":function(){return(kzX(c())?z():"")+"px"}})},_.P("div",{class:"ytChapteredProgressBarChapteredPlayerBarLoaded",
style:function(){var w=C(),L=y(),D=k();if(yNI(w,L,D).videoPosition==="seen")var p=0;else p=gA(_.l(L[D],Au)),L=gA(_.l(L[D+1],Au))||w.videoDuration,w=w.videoDuration*w.percentLoaded,p=L<=w?1:p>=w?0:(w-p)/(L-p);return"width: "+p*100+"%"}}),_.P("div",{class:"ytChapteredProgressBarChapteredPlayerBarFill",
style:_.cP({width:function(){return r()*100+"%"},
"background-size":function(){return(kzX(c(),r())?F():"")+"px"},
"background-position-x":function(){return(kzX(c(),r())?z():"")+"px"}})}))},"ge");var paY=function(I,C){C=C===void 0?zVq:C;var y,k=[],F,z=!1;return function(){var c=_.wa.apply(0,arguments);if(z&&y===this&&C(c,k))return F;F=I.apply(this,c);z=!0;y=this;k=c;return F}}(function(I){var C=I.heatMarkers,y=I.minHeightDp===void 0?0:I.minHeightDp,k=I.maxHeightDp===void 0?60:I.maxHeightDp;
var F=F===void 0?!1:F;var z=1E3/C.length;I=[];I.push({x:0,y:100});for(var c=0;c<C.length;c++){var r=void 0,w=((r=_.l(C[c],KyS))==null?void 0:r.heatMarkerIntensityScoreNormalized)||0;r=(c+.5)*z;w=100-_.St(w*100,y/321*100,k/321*100);c!==0||F||I.push({x:0,y:w});I.push({x:r,y:w});c===C.length-1&&I.push({x:1E3,y:w})}I.push({x:1E3,y:100});C="";for(y=0;y<I.length;y++)F=I[y],y===0?F="M "+F.x.toFixed(1)+","+F.y.toFixed(1):(k=KpX(I[y-1],I[y-2],F),z=KpX(F,I[y-1],I[y+1],!0),F=" C "+(k.x.toFixed(1)+","+k.y.toFixed(1)+
" "+z.x.toFixed(1)+","+z.y.toFixed(1)+" "+F.x.toFixed(1)+","+F.y.toFixed(1))),C+=F;return C});var QJH=_.BO(function(I){var C=I.progressBarProps;var y=I.config;var k={};I=_.sZ("ytHeatSeekerHost",(k.ytHeatSeekerHighContrast=I.highContrast,k));var F=function(){return dOW(y().chapterData)};
return _.P("yt-progress-bar-heatseeker",{class:I,style:function(){var z;return"height: 320px; display: "+(C().isDragging&&((z=F())==null?0:z.heatMarkers)?"block":"none")}},_.P(_.Dx,{cond:F,
then:function(z){return _.P(_.Dx,{cond:function(){return z().heatMarkers},
then:function(){return _.P("svg",{width:"100%",height:"320px",viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_.P("path",{d:function(){return paY(z())}}))},
debugInstance:"Gji0Se"})},
debugInstance:"iVTXwf"}))},"he");var NRS=_.BO(function(I){var C=I.progressBarProps;var y=I.config;I={};I=_.sZ("ytProgressBarLineProgressBarLine",(I.ytProgressBarLineProgressBarLineRounded=function(){return y().rounded},I.ytProgressBarLineProgressBarLineBottomInset=function(){return y().position===2},I));
return _.P("yt-progress-bar-line",{class:"ytProgressBarLineHost"},_.P("div",{class:I},_.P("div",{class:"ytProgressBarLineProgressBarBackground"}),_.P("div",{class:"ytProgressBarLineProgressBarLoaded",style:function(){return"width: "+C().percentLoaded*100+"%"}}),_.P("div",{class:"ytProgressBarLineProgressBarHovered",
style:function(){var k=C();return"width: "+(k.videoDuration?_.St(k.hoveredTime/k.videoDuration,0,1):0)*100+"%"}}),_.P("div",{class:"ytProgressBarLineProgressBarPlayed",
style:function(){return"width: "+gaz(C())*100+"%"}})))},"ie");
NRS.idomCompat=!0;var VFL=_.BO(function(I){var C=I.progressBarProps;var y=I.playheadData;var k=I.interpolateDotPosition;var F=I.hidePlayhead;I={};var z=_.sZ("ytProgressBarPlayheadProgressBarPlayheadDot",(I.ytProgressBarPlayheadProgressBarPlayheadDotLarge=function(){return C().isDragging},I.ytProgressBarPlayheadProgressBarPlayheadDotHide=function(){return!C().isDragging&&F()},I));
return _.P("yt-progress-bar-playhead",{class:"ytProgressBarPlayheadHost",style:_.cP({"margin-left":function(){return vaz(C())*100+"%"},
transform:function(){return"translateX(-"+(k()?vaz(C())*12:6)+"px)"}})},_.P(_.Dx,{cond:function(){var c;
return(c=_.mh(y)())==null?void 0:c.playheadImage},
then:function(c){var r={};return _.P("div",{class:_.sZ("ytProgressBarPlayheadProgressBarPlayheadCustom",(r.ytProgressBarPlayheadProgressBarPlayheadCustomLarge=function(){return C().isDragging},r.ytProgressBarPlayheadProgressBarPlayheadCustomHide=function(){return!C().isDragging&&F()},r)),
style:_.cP({"transform-origin":function(){return(k()?vaz(C())*20:10)+"px center"}})},_.P(_.x$,{data:c,
alt:"","aria-hidden":"true"}))},
else:function(){return _.P("div",{class:z,style:_.cP({"transform-origin":function(){return(k()?vaz(C())*12:6)+"px center"}})})}}))},"je");
VFL.idomCompat=!0;var iy=function(I,C,y,k,F,z){this.getProgressBarRect=I;this.updateProgressBarRect=C;this.getFilmstripYPosition=y;this.setFineScrubbingDraggedTime=k;this.updateFilmStripDraggedYDistance=F;this.resetFilmStripYOffset=z;this.startPosition=null;this.controlsWereVisibleBeforeDragging=this.isDraggedForFineScrubbing=this.hasDraggedTheMinimumDistance=!1;this.seekThrottle=new _.OG(this.onThrottledSeek,100,this)},jJR=function(I,C,y){return function(k){I.handleClick(k,C(),y())}},$jR=function(I,C){return function(y){l88(I,
y,XaL(y),C())}},RTR=function(I,C){return function(y){l88(I,y,{x:y.clientX,
y:y.clientY},C())}},YmL=function(I,C,y){return function(k){var F=C(),z=y();
b2P(I,k,XaL(k),F,z,!0);if(z.onTouchMove)z.onTouchMove(F)}},f8L=function(I,C,y){return function(k){GRL(I,k,C(),y())}},SmY=function(I,C){return function(){I.handleMouseLeave(C())}},KzL=function(I,C,y){return function(){var k=C(),F=y();
wM(I,k,F);if(F.onTouchEnd)F.onTouchEnd(k)}},ATR=function(I,C,y){return function(){var k=C(),F=y();
wM(I,k,F);if(F.onTouchEnd)F.onTouchEnd(k)}},gGy=function(I,C,y){return function(){wM(I,C(),y())}},vGB=function(I,C,y){return function(k){!y().disableScrubbing&&I.startPosition&&GRL(I,k,C(),y())}},WzM=function(I,C,y){return function(){if(!y().disableScrubbing)if(I.startPosition){var k=C(),F=y();
wM(I,C(),y());if(F.onTouchEnd)F.onTouchEnd(k)}else C().setState({isDragging:!1})}},XaL=function(I){I=I.touches[0];
return{x:I.clientX,y:I.clientY}},GRL=function(I,C,y,k){if(C.buttons!==1){if(C.movementX||C.movementY)C.preventDefault(),C.stopPropagation(),I=djy(I,y,C.clientX),y.setState({isHovering:!0,
hoveredTime:I*y.videoDuration})}else xjY(y),b2P(I,C,{x:C.clientX,y:C.clientY},y,k,!1)};
iy.prototype.handleMouseLeave=function(I){xjY(I)};
var xjY=function(I){I.isHovering&&I.setState({isHovering:!1,hoveredTime:0})},l88=function(I,C,y,k){I.startPosition||(I.startPosition=y,I.updateProgressBarRect(),I.controlsWereVisibleBeforeDragging=k.controlsVisible,C.stopPropagation(),_.V("medium_progress_bar_modification")||C.preventDefault())},b2P=function(I,C,y,k,F,z){if(I.startPosition)if(z&&F.isInlinePlayback&&I.startPosition&&!I.hasDraggedTheMinimumDistance&&Math.abs(y.y-I.startPosition.y)>Math.abs(y.x-I.startPosition.x))wM(I,k,F);
else if(C.preventDefault(),C.stopPropagation(),k.videoDuration&&(I.startPosition&&!I.hasDraggedTheMinimumDistance&&(I.hasDraggedTheMinimumDistance=Math.abs(y.x-I.startPosition.x)>=1),F.enableFineScrubbing&&(I.startPosition&&(I.isDraggedForFineScrubbing=-(y.y-I.startPosition.y)>=60),!I.startPosition||y.y>=I.startPosition.y||(k.setState({fineScrubbingActiveState:"dragging",filmStripXDistance:FVI(k.draggedTime,k,F.chapterData)}),I.setFineScrubbingDraggedTime(k.draggedTime),I.updateFilmStripDraggedYDistance(I.startPosition.y,
y.y,k))),I.hasDraggedTheMinimumDistance)){C=djy(I,k,y.x);if(I.isDraggedForFineScrubbing){var c;(c=k.playerApi)==null||c.pauseVideo();k.setState({fineScrubbingActiveState:"on",fineScrubbingEnteredTime:k.draggedTime,filmStripXDistance:FVI(C*k.videoDuration,k,F.chapterData)})}F.enableFineScrubbing&&(!F.enableFineScrubbing||I.getFilmstripYPosition(k)<68)||k.setState({draggedTime:C*k.videoDuration,controlsVisible:!0,isDragging:!0,shouldWaitToHideControls:I.controlsWereVisibleBeforeDragging});var r;(r=
F.cancelAutohideControlsFn)==null||r.call(F)}},wM=function(I,C,y){var k=y.enableFineScrubbing&&C.fineScrubbingActiveState!=="off";
if(C.isDragging||k){k={isDragging:!1,playedTime:C.draggedTime,controlsVisible:I.controlsWereVisibleBeforeDragging};y.enableFineScrubbing&&C.fineScrubbingActiveState!=="on"&&(I.resetFilmStripYOffset(),k.fineScrubbingActiveState="off");var F=F===void 0?JII:F;var z=_.Si(0);z&&F&&_.h7(z,F,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK",{seekData:{startMediaTimeMs:Math.round(C.playedTime*1E3),endMediaTimeMs:Math.round(C.draggedTime*1E3),seekSource:"SEEK_SOURCE_SLIDE_ON_SCRUBBER_BAR"}});C.setState(k);
I.seekThrottle.fire(C.draggedTime,C,7);_.V("mweb_new_progress_bar_play_on_seek")&&I.resumeVideo(C);y.unmuteOnSeek&&(y=C.playerApi,C.volumeMuted&&(y==null||y.unMute()))}else C.setState({controlsVisible:!C.controlsVisible}),(z=y.triggerAutohideControlsAfterDelayFn)==null||z.call(y);I.startPosition=null;I.hasDraggedTheMinimumDistance=!1;I.isDraggedForFineScrubbing=!1;I.controlsWereVisibleBeforeDragging=!1};
iy.prototype.handleClick=function(I,C,y){this.updateProgressBarRect();I.stopPropagation();I=djy(this,C,I.clientX)*C.videoDuration;C.setState({playedTime:I});if(C.playerState!==2){var k;(k=y.triggerAutohideControlsAfterDelayFn)==null||k.call(y)}this.seekThrottle.fire(I,C,7)};
var djy=function(I,C,y){I=I.getProgressBarRect(C);return _.St(0,(y-I.left)/I.width,1)};
iy.prototype.resumeVideo=function(I){if(I.draggedTime<I.videoDuration){var C;(C=I.playerApi)==null||C.playVideo()}};
iy.prototype.onThrottledSeek=function(I,C,y){if(C=C.playerApi){var k;if((k=C.getVideoData())==null?0:k.isLive)k=this.getProgressState(C),I+=(k==null?void 0:k.seekableStart)||0;C.seekTo(I,void 0,void 0,void 0,y)}};
iy.prototype.getProgressState=function(I){var C=I==null?void 0:I.getPresentingPlayerType();return I==null?void 0:I.getProgressState(C)};var Z2H,mj8,BRK,hTL,qmY,UjH,H2y,tFj,JTj;Z2H=_.BO(function(I){var C=I.progressBarProps;var y=I.config;var k=I.progressBarWidthPx;var F=I.chapterData;var z=egt(C,function(){return y().isShortsPage}),c=function(){return!C().isHovering&&!y().isShortsPage};
I={};var r=_.sZ("ytPlayerStoryboardHost","ytPlayerStoryboardHostBigboard",(I.ytPlayerStoryboardHostMwebShorts=function(){return y().isShortsPage&&!1},I));
return _.P("yt-player-storyboard",null,_.P(_.Dx,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.P(_.Dx,{cond:z,then:function(w){return _.P(_.Dx,{cond:c,then:function(){return _.P("div",{class:r,"aria-hidden":"true"},_.P(qmY,{props:C,config:y,isBigboard:!0,chapterData:F}))},
else:function(){return _.P(mj8,{props:C,frame:w,config:y,progressBarWidthPx:k,chapterData:F})}})}})}}))},"ke");
_.EGL=_.BO(function(I){var C=I.progressBarProps;var y=egt(C,I.isShortsPage);return _.P("yt-player-big-storyboard",{class:"ytPlayerStoryboardBigboardWrapper"},_.P(_.Dx,{cond:function(){return C().isDragging||C().isHovering},
then:function(){return _.P(_.Dx,{cond:y,then:function(k){return _.P(BRK,{frame:k,props:C,isBigboard:!0})}})}}))},"le");
mj8=_.BO(function(I){var C=I.props;var y=I.frame;var k=I.config;var F=I.progressBarWidthPx;I=I.chapterData;var z={};z=_.sZ("ytPlayerStoryboardHost",(z.ytPlayerStoryboardHostMwebShorts=function(){return k().isShortsPage&&!1},z.ytPlayerStoryboardHostInlinePlayer=function(){return k().isInlinePlayer},z.ytPlayerStoryboardHostFadeIn=function(){return k().useFadeInAnimation},z));
return _.P("div",{class:z,"aria-hidden":"true",style:function(){var c=C(),r=uDK(y()),w=F();c=zgz(c)/c.videoDuration;var L=w*c,D=r/2+6;r=w-(r/2+6);return"left: "+(L<=D?D/w*100:L>=r?r/w*100:c*100)+"%"}},_.P(_.Dx,{cond:function(){var c=C();
return!(k().isShortsPage&&c.videoDuration<15)},
then:function(){return _.P(BRK,{frame:y,props:C,isBigboard:!1})}}),_.P(qmY,{props:C,
config:k,isBigboard:!1,chapterData:I}))},"me");
BRK=_.BO(function(I){var C=I.frame;var y=I.props;var k=I.isBigboard;var F=function(){var r,w;return(w=(r=y().playerApi)==null?void 0:r.getVideoContentRect())!=null?w:{width:0,height:0}},z=function(){return uDK(C())},c=function(){var r=C();
return r?r.height/r.rows:0};
I={};I=_.sZ((I.ytPlayerStoryboardBigboardImageWrapper=k,I.ytPlayerStoryboardStoryboardImageWrapper=function(){return!k()},I));
return _.P("div",{class:I,style:function(){return"width: "+(k()?F().width:z())+"px; height: "+(k()?F().height:c())+"px;"}},_.P(hTL,{frame:C,
storyboardWidth:z,storyboardHeight:c,storyboardScale:function(){return(k()?F().width:z())/z()}}))},"ne");
hTL=_.BO(function(I){var C=I.frame;var y=I.storyboardWidth;var k=I.storyboardHeight;var F=I.storyboardScale;var z=function(){var c=C().row,r=C().column,w=y(),L=k(),D=F();return{left:-r*w*D,top:-c*L*D}};
return _.P("img",{src:function(){return C().url},
class:"ytPlayerStoryboardStoryboardImage",alt:"preview-image",style:function(){return"left: "+z().left+"px; top: "+z().top+"px; width: "+C().width*F()+"px; height: "+C().height*F()+"px;"}})},"oe");
qmY=_.BO(function(I){var C=I.props;var y=I.config;var k=I.isBigboard;var F=I.chapterData;I={};I=_.sZ("ytPlayerStoryboardMetadata",(I.ytPlayerStoryboardMetadataBigboard=k,I));return _.P("div",{class:I},_.P(_.Dx,{cond:k,then:function(){return _.P(_.aF,null,_.P(UjH,{props:C,config:y}),_.P(_.Dx,{cond:function(){a:{var z=C();var c=y(),r=F(),w;if((c==null?0:c.activeChapter)&&((w=_.l(c==null?void 0:c.activeChapter,Au))==null?0:w.title))z=!0;else{c=_.T(xOX(r));for(c=c.next();!c.done;c=c.next()){z=(c=_.l(c.value,
gUS))&&Tqs(z,c);break a}z=!1}}return z},
then:function(){return _.P(H2y,{props:C,config:y,isBigboard:!0,chapterData:F})}}))},
else:function(){return _.P(_.aF,null,_.P(H2y,{props:C,config:y,isBigboard:!0,chapterData:F}),_.P(UjH,{props:C,config:y}))}}))},"pe");
UjH=_.BO(function(I){var C=I.props;var y=I.config;I={};I=_.sZ("ytPlayerStoryboardTimestamp",(I.ytPlayerStoryboardTimestampShorts=function(){return y().isShortsPage},I.ytPlayerStoryboardTimestampIsHovering=function(){return C().isHovering||y().isShortsPage&&!0},I));
return _.P("div",{class:I},_.P(_.aF,null,function(){return _.cNI(zgz(C()))}))},"qe");
H2y=_.BO(function(I){var C=I.props;var y=I.config;var k=I.isBigboard;var F=I.chapterData;I={};k=_.sZ("ytPlayerStoryboardTitle",(I.ytPlayerStoryboardTitleBigboard=k,I));return _.P("div",{class:k},_.P(_.Dx,{cond:function(){return!y().isShortsPage},
then:function(){return _.P(tFj,{props:C,activeChapter:function(){return y().activeChapter},
chapterData:F})}}))},"re");
tFj=_.BO(function(I){var C=I.props;var y=I.activeChapter;var k=I.chapterData;return _.P(_.aF,null,_.P(_.pH,{each:function(){return xOX(k())},
keyBy:"INDEX"},function(F){return _.P(_.aF,null,_.P(_.Dx,{cond:function(){return _.l(F(),gUS)&&Tqs(C(),_.l(F(),gUS))},
then:function(){return _.P(JTj,{timedMarker:function(){return _.l(F(),gUS)}})}}))}),_.P(_.Dx,{cond:function(){var F;
return y()&&((F=_.l(y(),Au))==null?void 0:F.title)},
then:function(F){return _.P(_.wh,{text:F,noPreWrap:!0})}}))},"se");
JTj=_.BO(function(I){var C=I.timedMarker;return _.P(_.aF,null,_.P("div",{class:"ytPlayerStoryboardTimedMarkerIconWrapper"},_.P(_.ez,{icon:function(){return C().icon},
className:"ytPlayerStoryboardTimedMarkerIcon"})),_.P(_.wh,{text:function(){return C().label},
noPreWrap:!0}))},"te");_.O28=_.BO(function(I){var C=I.progressBarProps;var y=I.playheadData;var k=I.config;I=_.Es();var F=_.Es(),z=_.Es(),c=_.T(_.c4({width:0,left:0},void 0,"NcXsUb")),r=c.next().value,w=c.next().value,L=function(){z.value&&w(z.value.getBoundingClientRect())},D=function(){r().width<=0&&L();
return r()};
J3("resize",L);var p=new iy(D,function(){},function(){return 0},function(){},function(){},function(){}),Q=function(){return C()};
c=_.T(_.c4(!1,void 0,"ZsF6Xc"));var X=c.next().value,b=c.next().value;c=_.uk(function(){b(!0);k().position===2?setTimeout(function(){L()},100):L()});
var S=_.uk(function(){b(!1);SmY(p,Q)()}),A=_.uk(function(mY){k().doSeekOnClick&&jJR(p,Q,k)(mY);
return!1}),x=_.uk(function(mY){$jR(p,Q)(mY);
return!1}),B=_.uk(function(mY){RTR(p,Q)(mY);
return!1}),t=_.uk(function(mY){YmL(p,Q,k)(mY);
return!1}),U=_.uk(function(mY){f8L(p,Q,k)(mY);
return!1}),yW=_.uk(function(){KzL(p,Q,k)();
return!1}),a=_.uk(function(){ATR(p,Q,k)();
return!1}),cs=_.uk(function(){gGy(p,Q,k)();
return!1});
J3("mousemove",vGB(p,Q,k));J3("mouseup",WzM(p,Q,k));_.RU(function(){Omz(F.value);b(!1);L();WzM(p,Q,k)()});
var XO={};XO=_.sZ("ytPlayerProgressBarHost",function(){return k().className},(XO.ytPlayerProgressBarHostReadOnly=function(){return k().disableScrubbing},XO.ytPlayerProgressBarHostHidden=function(){return k().hideProgressBar&&!X()},XO.ytPlayerProgressBarHostLowerPlayer=function(){return k().position===0},XO.ytPlayerProgressBarHostBottomEdge=function(){return k().position===1},XO.ytPlayerProgressBarHostBottomInset=function(){return k().position===2},XO.ytPlayerProgressBarHostCustom=function(){return k().position===
3},XO));
var Rm={},$z=_.sZ("ytPlayerProgressBarBackground",(Rm.ytPlayerProgressBarBackgroundHide=function(){return k().position===2&&!X()&&!C().isDragging},Rm));
Rm={};Rm=_.sZ("ytPlayerProgressBarDragContainer",(Rm.ytPlayerProgressBarDragContainerBottomEdge=function(){return k().position===1},Rm));
var hX={};hX=_.sZ("ytPlayerProgressBarProgressBar",(hX.ytPlayerProgressBarProgressBarInset=function(){return k().position===2},hX.ytPlayerProgressBarProgressBarInsetMinimized=function(){return k().position===2&&!X()&&!C().isDragging},hX));
var vs=function(){return Math.floor(gaz(C())*100)};
return _.P("yt-progress-bar",{el:I,class:XO},_.P(_.Dx,{cond:function(){return k().position===2},
then:function(){return _.P("div",{class:$z})}}),_.P("div",{el:F,
"on:click":A,"on:touchstart":x,"on:touchmove":t,"on:mouseenter":c,"on:mousedown":B,"on:mouseleave":S,"on:mousemove":U,"on:mouseup":a,"on:touchend":yW,"on:touchcancel":cs,class:Rm,role:"slider","aria-valuenow":vs,"aria-valuetext":function(){return vs()+"%"},
tabindex:0,"aria-label":_.PQ("SEEK_SLIDER")},_.P("div",{el:z,class:hX},_.P(QJH,{progressBarProps:C,config:k,highContrast:function(){return!!k().isInlinePlayback}}),_.P(_.Dx,{cond:function(){return k().chapterData&&qDY(k().chapterData)},
then:function(){return _.P(DjK,{progressState:C,multiMarkersPlayerBarRenderer:function(){return k().chapterData},
progressBarWidth:function(){return r().width}})},
else:function(){return _.P(NRS,{progressBarProps:C,config:k})}}),_.P(VFL,{progressBarProps:C,
playheadData:y,interpolateDotPosition:function(){return k().position!==2},
hidePlayhead:function(){return k().playheadDotBehavior===1&&!X()}}))),_.P(Z2H,{progressBarProps:C,
config:function(){return{activeChapter:sqI(C(),k().chapterData),getProgressBarWidthPx:function(){return D().width},
isShortsPage:!!k().isShortsPage,isInlinePlayer:!!k().isInlinePlayback,useFadeInAnimation:!!k().isInlinePlayback}},
progressBarWidthPx:function(){return r().width},
chapterData:function(){return k().chapterData}}))},"ue");
_.O28.idomCompat=!0;Object.assign({},_.mO9(),{setState:function(){},
domMeasurements:{},appApi:_.AIm(),playerApi:void 0,playerContainer:void 0,playerControlContainer:void 0,uxConfig:{}});var a8K;
_.MFj=_.BO(function(){var I,C=(I=_.vJ(rNK().playerApi))!=null?I:void 0;I=_.T(_.c4(!1,void 0,"HLFBmb"));var y=I.next().value,k=I.next().value;I=_.T(_.c4(!1,void 0,"lHH9bc"));var F=I.next().value,z=I.next().value;I=_.T(_.c4(!1,void 0,"zsY7yd"));var c=I.next().value,r=I.next().value;I=_.T(_.c4(!1,void 0,"KeHQgc"));var w=I.next().value,L=I.next().value;I=_.T(_.c4(0,void 0,"gLLCj"));var D=I.next().value,p=I.next().value;I=_.T(_.c4(0,void 0,"s3RYkf"));var Q=I.next().value,X=I.next().value;I=_.T(_.c4(!1,void 0,
"Dn608e"));var b=I.next().value,S=I.next().value;I=_.T(_.c4(0,void 0,"AnkH1b"));var A=I.next().value,x=I.next().value;I=_.T(_.c4(0,void 0,"QYNL0b"));var B=I.next().value,t=I.next().value;I=_.T(_.c4("",void 0,"Yzw45d"));var U=I.next().value,yW=I.next().value;I=_.T(_.c4(-1,void 0,"iiVI0c"));var a=I.next().value,cs=I.next().value,XO=_.P4(function(){var Rm={controlsVisible:y(),isOverlayHidden:F(),shouldWaitToHideControls:c(),isDragging:w(),isHovering:b(),videoDuration:A(),playedTime:B(),videoId:U(),draggedTime:Q(),
hoveredTime:D(),playerState:a()};return Object.assign({},_.mO9(),Rm,{domMeasurements:{},setState:function($z){$z.controlsVisible!==void 0&&k($z.controlsVisible);$z.isOverlayHidden!==void 0&&z($z.isOverlayHidden);$z.shouldWaitToHideControls!==void 0&&r($z.shouldWaitToHideControls);$z.isDragging!==void 0&&L($z.isDragging);$z.isHovering!==void 0&&S($z.isHovering);$z.draggedTime!==void 0&&X($z.draggedTime);$z.hoveredTime!==void 0&&p($z.hoveredTime);$z.videoDuration!==void 0&&x($z.videoDuration);$z.playedTime!==
void 0&&t($z.playedTime);$z.videoId!==void 0&&yW($z.videoId);$z.playerState!==void 0&&cs($z.playerState)},
appApi:_.AIm(),playerApi:C})},void 0,"ZW7y9");
_.X2(function(){C==null||C.addEventListener("onVideoProgress",hUz(XO));C==null||C.addEventListener("onVideoDataChange",Ea9(XO));C==null||C.addEventListener("onStateChange",ZmO(XO))});
_.$4(function(){if(C==null?0:C.isReady())C==null||C.removeEventListener("onVideoProgress",hUz(XO)),C==null||C.removeEventListener("onVideoDataChange",Ea9(XO)),C==null||C.removeEventListener("onStateChange",ZmO(XO))});
return _.P("desktop-shorts-player-controls",null,_.P(a8K,{playerControlsProps:XO}))},"ve");
a8K=_.BO(function(I){var C=I.playerControlsProps;return _.P("div",{class:"desktopShortsPlayerControlsWizHost"},_.P(_.O28,{progressBarProps:C,config:function(){return{isShortsPage:!0,hideProgressBar:C().videoDuration<30&&C().playerState!==2&&!C().isDragging,rounded:!0,position:3,unmuteOnSeek:!1,playheadDotBehavior:1,doSeekOnClick:!0}}}))},"we");_.MU(_.LVO);_.IdK=_.BO(function(I){var C=I.data;return _.P("player-disclosure-view-model",{class:"ytwPlayerDisclosureViewModelHost"},_.P(_.ik,{command:function(){return C().navigationEndpoint},
className:"ytwPlayerDisclosureViewModelEndpoint"},_.P(_.Dx,{cond:function(){return C().iconName},
then:function(y){return _.P(_.ez,{icon:y})}}),_.P("span",{class:"ytwPlayerDisclosureViewModelText"},function(){return C().text}),_.P(_.Dx,{cond:function(){return C().showEndChevron},
then:function(){return _.P(_.ez,{icon:"CHEVRON_RIGHT"})}})))},"xe");var CiM=_.BO(function(I){var C=I.data;var y=I.overlayDensity;I={};return _.P("yt-reel-channel-bar-view-model",{class:"ytReelChannelBarViewModelHost"},_.P(_.lY,{data:function(){return C().decoratedAvatarViewModel}},{decoratedAvatarViewModel:function(k){var F=k.data;
return _.P(_.wF,{data:function(){return(y==null?void 0:y())===1?Object.assign({},F(),{avatar:{avatarViewModel:Object.assign({},_.l(F().avatar,_.EG),{avatarImageSize:"AVATAR_SIZE_48"})}}):F()}})}}),_.P(_.lY,{data:function(){return C().avatarStackViewModel}},{avatarStackViewModel:function(k){return _.P(_.nz,{data:k.data})}}),_.P(_.wh,{className:_.sZ("ytReelChannelBarViewModelChannelName",(I.ytReelChannelBarViewModelChannelNameLarge=function(){return(y==null?void 0:y())===1},I)),
text:function(){return C().channelName},
linkInheritColor:!0,userInput:!0}),_.P("div",{class:"ytReelChannelBarViewModelReelSubscribeButton"},_.P(_.lY,{data:function(){return C().subscribeButtonViewModel}},{subscribeButtonViewModel:function(k){var F=k.data;
return _.P(y6m,{data:function(){return(y==null?void 0:y())===1?Object.assign({},F(),{backgroundStyle:"SUBSCRIBE_BUTTON_VIEW_MODEL_BACKGROUND_STYLE_TONAL",buttonStyle:Object.assign({},F().buttonStyle,{buttonSize:"SUBSCRIBE_BUTTON_VIEW_MODEL_SIZE_MEDIUM"})}):F()},
isOverlay:!1})},
buttonViewModel:_.fM})),_.P("div",{class:"ytReelChannelBarViewModelReelSponsorButton"},_.P(_.lY,{data:function(){var k,F;return(F=_.l((k=C())==null?void 0:k.sponsorButtonViewModel,zt8))==null?void 0:F.sponsorButton}},{buttonViewModel:function(k){return _.P(_.fM,{data:k.data,
buttonOverrides:function(){return{toggled:!0}}})}})))},"ye");var sMK=_.BO(function(I){var C={};return _.P("yt-reel-multi-format-link-view-model",{class:_.sZ("ytReelMultiFormatLinkViewModelHost",(C.ytReelMultiFormatLinkViewModelHostTall=!0,C.ytReelMultiFormatLinkViewModelHostLarge=function(){var y;return((y=I.overlayDensity)==null?void 0:y.call(I))===1},C))},_.P(_.ik,{ariaLabel:function(){return I.data().a11yLabel},
className:"ytReelMultiFormatLinkViewModelEndpoint",command:function(){return _.Rj(I.data().command)},
dangerousStopPropagation:!1},_.P("h3",{class:"ytReelMultiFormatLinkViewModelLink"},_.P(_.Dx,{cond:function(){return I.data().icon},
then:function(y){return _.P(_.x$,{data:y,className:"ytReelMultiFormatLinkViewModelIcon",alt:""})}}),_.P(_.wh,{text:function(){return I.data().title},
className:"ytReelMultiFormatLinkViewModelTitle"}))))},"ze");
sMK.idomCompat=!0;var obj=_.BO(function(I){var C=I.data;var y=I.overlayDensity;var k=_.Es();I=_.T(_.c4(!1,void 0,"xDqzhe"));var F=I.next().value,z=I.next().value;I=_.T(_.c4(!1,void 0,"LI9CFd"));var c=I.next().value,r=I.next().value,w=function(){return C().isMultiLineSa},L=_.cj(ghs,function(){var t,U;
return(U=(t=C().toggleableContent)==null?void 0:t.entityKey)!=null?U:""}),D=function(){var t,U,yW;
return(yW=C().toggleableContent)!=null&&yW.entityKey?(U=(t=L())==null?void 0:t.value)!=null?U:!1:!1},p=function(){var t,U,yW,a,cs,XO,Rm,$z,hX,vs,mY;
return C().toggleableContent?D()?(t=C().toggleableContent)==null?void 0:t.toggledData:(U=C().toggleableContent)==null?void 0:U.untoggledData:{primaryText:($z=(yW=C().defaultContent)==null?void 0:yW.primaryText)!=null?$z:C().text,secondaryText:(a=C().defaultContent)==null?void 0:a.secondaryText,onTapCommand:(hX=(cs=C().defaultContent)==null?void 0:cs.onTapCommand)!=null?hX:C().onTapCommand,icon:(vs=(XO=C().defaultContent)==null?void 0:XO.icon)!=null?vs:C().icon,image:(mY=(Rm=C().defaultContent)==null?
void 0:Rm.image)!=null?mY:C().image}},Q=function(){return w()?C().trailingTapTarget:void 0};
I=function(t,U){return function(){return F()?U:t}};
var X={leadingSection:I("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingSection"),secondaryText:I("ytShortsSuggestedActionViewModelDynamicHostCollapsedSecondary","ytShortsSuggestedActionViewModelDynamicHostExpandedSecondary"),trailingSection:I("ytShortsSuggestedActionViewModelDynamicHostCollapsedTrailingSection","ytShortsSuggestedActionViewModelDynamicHostExpandedTrailingSection"),leadingIcon:I("ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon",
"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon")};I={};I=_.sZ((I.ytShortsSuggestedActionViewModelStaticHost=function(){return!w()},I.ytShortsSuggestedActionViewModelDynamicHost=w,I.ytShortsSuggestedActionViewModelDynamicHostShown=function(){return w()&&c()},I.ytShortsSuggestedActionViewModelDynamicHostHidden=function(){return w()&&!c()},I));
_.RU(function(){if(w()){var t=0,U;if((U=C().animationParams)==null?0:U.shouldExpand){var yW,a;t=((a=(yW=C().animationParams)==null?void 0:yW.expansionDelaySecs)!=null?a:0)*1E3}var cs,XO=((cs=C().animationParams)==null?0:cs.shouldExpand)?setTimeout(function(){z(!0)},t):void 0,Rm,$z;
t=((Rm=C().animationParams)==null?0:Rm.visibilityDelaySecs)?(($z=C().animationParams)==null?NaN:$z.visibilityDelaySecs)*1E3:0;var hX=setTimeout(function(){r(!0)},t);
_.$4(function(){XO&&clearTimeout(XO);clearTimeout(hX)})}});
var b=function(t){_.Gp(t,Object.assign({},{form:{element:k.value}}))},S=_.uk(function(){var t,U=(t=p())==null?void 0:t.onTapCommand;
U&&b(U)}),A=_.uk(function(){var t,U;
if(t=(U=Q())==null?void 0:U.onTapCommand)return b(t),!1}),x=_.cP({"vertical-align":"bottom",
"border-radius":function(){var t;return w()?((t=C().defaultContent)==null?0:t.isCircleImage)?"50%":"4px":"0px"},
width:function(){var t,U,yW;return w()&&((t=C().defaultContent)==null?0:t.imageSize)?((yW=(U=C().defaultContent)==null?void 0:U.imageSize)!=null?yW:24)+"px":null},
height:function(){var t,U,yW;return w()&&((t=C().defaultContent)==null?0:t.imageSize)?((yW=(U=C().defaultContent)==null?void 0:U.imageSize)!=null?yW:24)+"px":null}}),B={};
return _.P("yt-shorts-suggested-action-view-model",{class:I,el:k},_.P("div",{style:"display: flex; flex-direction: row; align-items: center;"},_.P("button",{class:_.sZ(function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostContainer":"ytShortsSuggestedActionViewModelStaticHostContainer"},function(){var t;
return(t=C().useFullRoundedBorder)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostUseRoundBorder":!Q()&&w()?"ytShortsSuggestedActionViewModelDynamicHostRoundAllCorners":w()?"ytShortsSuggestedActionViewModelDynamicHostOnlyRoundLeadingCorners":""},function(){var t;
return(t=C().disableFixedHeight)!=null&&t?"ytShortsSuggestedActionViewModelDynamicHostFixedHeightAuto":""},(B.ytShortsSuggestedActionViewModelExpansiveContainer=function(){return(y==null?void 0:y())===1},B)),
"on:click":S},_.P(_.nE,{model:{color:4}}),_.P("div",{class:_.sZ(function(){return w()?X.leadingSection():"ytShortsSuggestedActionViewModelStaticHostLeadingSection"})},_.P(_.Dx,{cond:function(){var t;
return(t=p())==null?void 0:t.image},
then:function(t){return _.P(_.x$,{data:t,alt:"",className:function(){return w()?"ytShortsSuggestedActionViewModelDynamicHostLeadingImage":"ytShortsSuggestedActionViewModelStaticHostLeadingImage"},
contentMode:"CONTENT_MODE_SCALE_TO_FILL",preserveHeight:!0,preserveWidth:!0,useWidth:!0,style:x})}}),_.P(_.Dx,{cond:function(){var t,U;
return(t=p())==null?void 0:(U=t.icon)==null?void 0:U.iconType},
then:function(t){return _.P(_.ez,{icon:t,active:D,className:function(){return w()?F()?"ytShortsSuggestedActionViewModelDynamicHostExpandedLeadingIcon":"ytShortsSuggestedActionViewModelDynamicHostCollapsedLeadingIcon":"ytShortsSuggestedActionViewModelStaticHostLeadingIcon"}})}})),_.P("div",{class:"ytShortsSuggestedActionViewModelStaticHostTextSection"},_.P(_.Dx,{cond:function(){var t;
return(t=p())==null?void 0:t.primaryText},
then:function(t){return _.P("div",{class:"ytShortsSuggestedActionViewModelStaticHostPrimaryText"},_.P(_.wh,{text:t}))}}),_.P(_.Dx,{cond:function(){var t;
return(t=p())==null?void 0:t.secondaryText},
then:function(t){return _.P("div",{class:X.secondaryText},_.P(_.wh,{text:t}))}}))),_.P(_.Dx,{cond:Q,
then:function(t){return _.P("div",{class:X.trailingSection,"aria-label":function(){var U;return(U=t().a11yLabel)!=null?U:""},
"on:click":A,role:"button",tabindex:0},_.P(_.nE,{model:{color:4}}),_.P(_.ez,{icon:"CHEVRON_DOWN",className:"ytShortsSuggestedActionViewModelDynamicHostTrailingIcon"}))}})))},"Ae");var y_y=_.BO(function(I){var C=I.data;var y=I.overlayDensity;var k=_.Es();I=_.uk(function(c){if(_.b49(_.vj(c),k.value,["A".toString()]))return!1;(c=C().truncatedTextOnTapCommand)&&_.Gp(c);return!1});
var F={},z={};return _.P("yt-shorts-video-title-view-model",{el:k,class:_.sZ("ytShortsVideoTitleViewModelHost",(F.ytShortsVideoTitleViewModelHostClickable=function(){return!!C().truncatedTextOnTapCommand},F)),
"on:click":I},_.P("h2",{class:_.sZ("ytShortsVideoTitleViewModelShortsVideoTitle",(z.ytShortsVideoTitleViewModelShortsVideoTitleLarge=function(){return(y==null?void 0:y())===1},z))},_.P(_.wh,{text:function(){return C().text},
linkInheritColor:!0,noEndpoints:!1,stopPropagation:!0,userInput:!0})))},"Be");_.kKj=_.BO(function(I){var C=I.data;var y=I.overlayDensity;return _.P("yt-reel-metapanel-view-model",{class:"ytReelMetapanelViewModelHost"},_.P(_.lY,{data:function(){return C().metadataItems}},{badgeViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(_.ml,{data:k.data}))},
playerDisclosureViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(_.IdK,{data:k.data}))},
shortsSuggestedActionViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(obj,{data:k.data,overlayDensity:y}))},
reelChannelBarViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(CiM,{data:k.data,overlayDensity:y}))},
reelMultiFormatLinkViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(sMK,{data:k.data,overlayDensity:y}))},
shortsVideoTitleViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(y_y,{data:k.data,overlayDensity:y}))},
reelSoundMetadataViewModel:function(k){return _.P("div",{class:"ytReelMetapanelViewModelMetapanelItem"},_.P(_.wmy,{data:k.data,overlayDensity:y}))}}))},"Ce");var F7K=_.BO(function(I){var C=_.ZB(I,{size:"M",disabled:!1,tooltipText:"",onTap:void 0}),y=C.size,k=C.onTap,F=C.disabled,z=C.tooltipText;return _.P("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.P(aY,{data:function(){return{style:"overlay-dark",type:"tonal",state:"active",iconPosition:"icon-only",size:y(),disabled:F(),tooltipText:z(),onTap:k}},
iconName:I.iconType}))},"De"),uGM=_.BO(function(I){function C(D){D.stopPropagation();
D.code==="ArrowUp"?(D.preventDefault(),Nqm(r.value)):D.code==="ArrowDown"?(D.preventDefault(),Vwm(r.value)):D.code==="KeyM"?puW():(D.code==="KeyK"||D.code==="Space")&&Qqm(w())}
var y=_.ZB(I,{previousButtonDisabled:!1,nextButtonDisabled:!1,data:void 0,playabilityStatus:void 0,previewThumbnail:void 0});I=y.previousButtonDisabled;var k=y.nextButtonDisabled,F=y.data,z=y.playabilityStatus,c=y.previewThumbnail,r=_.Es(),w=_.XU(_.w3z),L;_.X2(function(){(L=_.V6(r.value))&&L.addEventListener("keydown",C)});
_.$4(function(){var D;(D=L)==null||D.removeEventListener("keydown",C)});
y=function(){var D,p,Q;return(D=F())==null?void 0:(p=D.reelPlayerOverlayRenderer)==null?void 0:(Q=p.likeButton)==null?void 0:Q.likeButtonRenderer};
return _.P("ytd-shorts-miniplayer-overlay",{el:r,class:"ytdShortsMiniplayerOverlayHost"},_.P("div",{class:"ytdShortsMiniplayerOverlayThumbnailBackground",style:_.cP({"background-image":function(){var D=c();return D?'url("'+_.hE(D.thumbnails)+'")':""}})}),_.P("div",{class:"ytdShortsMiniplayerOverlayOverlay"},_.P("div",{class:"ytdShortsMiniplayerOverlayTopButtons"},_.P(F7K,{iconType:function(){var D=w();
return D===2||D===-1||D===5?"PLAY_ARROW":"PAUSE_FILLED"},
size:"L",onTap:function(){Qqm(w())},
tooltipText:function(){var D=w();return D===1||D===3?_.PQ("PLAYER_LABEL_PAUSE"):_.PQ("PLAYER_LABEL_PLAY")}}),_.P(_.LVO,null)),_.P("div",{class:"ytdShortsMiniplayerOverlayActionButtons"},_.P(F7K,{iconType:"YOUTUBE_SHORTS_ARROW_UP",
disabled:I,onTap:function(){Nqm(r.value)},
tooltipText:_.PQ("PREVIOUS_VIDEO_LABEL")}),_.P(F7K,{iconType:"YOUTUBE_SHORTS_ARROW_DOWN",disabled:k,onTap:function(){Vwm(r.value)},
tooltipText:_.PQ("NEXT_VIDEO_LABEL")}),_.V("web_shorts_pip_like_button")?_.P("div",{class:"ytdShortsMiniplayerOverlayInteractive"},_.P(BN0,{buttonTooltipPosition:"left",data:y,overrides:{iconPosition:"icon-with-label",size:"M",style:"overlay-dark",type:"tonal"},textTransform:"none",useShortsIcon:!0,vertical:!0})):null),_.P("div",{class:"ytdShortsMiniplayerOverlayVideoMetaData"},_.P(_.Dx,{cond:function(){var D,p;return _.l((D=F())==null?void 0:(p=D.reelPlayerOverlayRenderer)==null?void 0:p.metapanel,
ywP)},
then:function(D){return _.P("div",{class:_.sZ("ytdShortsMiniplayerOverlayInteractive")},_.P(_.kKj,{data:D}))}})),_.P("div",{class:_.sZ("ytdShortsMiniplayerOverlayPlayerControls","ytdShortsMiniplayerOverlayInteractive"),
hidden:function(){var D;return!((D=F())==null||!D.adsOverlay)||z()&&!AWO(z())}},_.P("div",{class:"ytdShortsMiniplayerOverlayPlayerControlsInner"},_.P(_.MFj,null)))),_.P(_.Dx,{cond:function(){var D=F(),p,Q;
D=_.l(D==null?void 0:(p=D.adsOverlay)==null?void 0:(Q=p.fulfillmentContent)==null?void 0:Q.fulfilledLayout,xmu);return _.l(D==null?void 0:D.renderingContent,EC8)},
then:function(D){return _.P("div",{class:"ytdShortsMiniplayerOverlayAdsOverlay"},_.P(a2u,{data:D}))}}))},"Ee");var jqs=_.BO(function(){var I=_.T(_.c4(new _.y6(NaN,NaN),void 0,"dCf7yb")),C=I.next().value,y=I.next().value;I=_.T(_.c4(!1,void 0,"smJHAc"));var k=I.next().value,F=I.next().value,z=_.T(_.c4(!1,void 0,"HnqDAc"));I=z.next().value;var c=z.next().value,r=_.N().resolve(_.WJ).miniplayerPropSignalMap[0],w=r.data,L=r.shortsData,D=r.nextButtonDisabled,p=r.shortsPreviewThumbnail,Q=r.previousButtonDisabled,X=r.externalPlaylistData;z=r.toastData;var b=r.playabilityStatus,S=r.isDisabled;r=_.XU(_.is);_.BH("yt-pip-window-resized",
function(t){y(t)});
_.BH("yt-activate-pip-miniplayer",function(){return _.e(function(t){c(!0);_.oI(t)})});
var A=function(){var t;return!((t=X())==null||!t.contents)&&k()},x=function(){var t=C(),U=!!w(),yW=A();
t=t.clone();U&&(t.height-=76);yW&&(t.height-=285);return t},B=function(){F(!k())};
return _.P("ytd-pip-container",{class:"ytdPipContainerHost"},_.P(_.Dx,{cond:I,then:function(){return _.P(_.nGL,{isDisabled:S,playabilityStatus:b,size:x})}}),_.P(_.Dx,{cond:w,
then:function(){return _.P(_.i2R,{data:w,expanded:k,onExpandClick:B,playlistData:X})}}),_.P(_.Dx,{cond:A,
then:function(){return _.P("div",{class:"ytdPipContainerPlaylistPanel"},_.P(_.mt8,{data:X,hideHeaderText:!0,withinMiniplayer:!0}))}}),_.P(_.Dx,{cond:r,
then:function(){return _.P(uGM,{data:L,nextButtonDisabled:D,previousButtonDisabled:Q,playabilityStatus:b,previewThumbnail:p})}}),_.P("div",{class:"ytdPipContainerToast"},_.P(_.P7H,{toastData:z})))},"Fe");var nC=function(I,C){var y=this;this.pipController=I;this.JSC$16350_clientRoot=C;this.active=!1;this.player=this.playerElement=this.miniplayerFetchRequest=null;this.miniplayerPropSignalMap=YDs();this.watchPipEnabled=_.V("web_watch_pip");this.shortsPipEnabled=_.V("web_shorts_pip");this.JSC$16350_watchWhileEnabled=_.V("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;_.rf(_.Hg(),_.cos,function(k){y.isSingleOptionSurveyActive=k});
this.JSC$16350_onPlayerPlayVideo=this.JSC$16350_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);_.mU(_.qU.getInstance(),this.miniplayerServiceActionMap,this.JSC$16350_clientRoot);window.documentPictureInPicture&&_.bK()&&_.b2("genericClientExperimentEvent",
{eventType:"GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_DOCUMENT_PICTURE_IN_PICTURE_SUPPORTED"})},nDd,L7P,iay,DMy,pnj,GCu,QMB,NaM,VOy,nbj;
nC.prototype.handleMediaSessionPipActivation=function(){var I=this,C;return _.e(function(y){_.ck().mediaSessionPipActivation=!0;C=_.N().resolve(_.BP);return C.isOnWatch()&&I.watchPipEnabled?(_.ck().watchPipActivation=!0,_.zEM(I,C.data),y.jumpTo(0)):C.isOnShorts()&&I.shortsPipEnabled?(_.ck().shortsPipActivation=!0,_.Taj(I),y.jumpTo(0)):I.isMiniplayerActive()&&I.watchPipEnabled&&!I.watchWhileMode?_.n(y,c_R(I),0):y.jumpTo(0)})};
var c_R=function(I){var C,y,k,F;return _.e(function(z){if(z.nextAddress==1)return C=!I.miniplayerToPipMode,y=I.playerElement,k=I.miniplayerData,F=I.watchResponse,_.n(z,I.deactivate(),2);if(z.nextAddress!=3)return C?(_.ck().mediaSessionPipActivation=!0,_.ck().watchPipActivation=!0):_.ck().miniplayerButtonActivation=!0,_.n(z,I.activate(y,k,F),3);I.miniplayerToPipMode=C;_.oI(z)})};
nC.prototype.onDownloadedVideoDeleted=function(I){var C,y=_.l((C=this.miniplayerData)==null?void 0:C.watchEndpoint,_.H$),k,F;y&&((k=this.watchResponse)==null?void 0:(F=k.playerResponse)==null?void 0:F.offlineState)!==void 0&&(C=y.videoId)&&I&&C===I&&this.close()};
nC.prototype.onShowMiniplayerCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D,p,Q,X,b;return _.e(function(S){switch(S.nextAddress){case 1:return y=_.l(I,Jju),F=(k=y)==null?void 0:k.miniplayerCommand,z=_.l(F,_.H$),F&&z&&!C.active?_.n(S,_.pu.getInstance(),2):S.return();case 2:return c=S.yieldResult,_.n(S,(r=c)==null?void 0:r.get("yt-miniplayer-shown-video-id"),3);case 3:w=S.yieldResult;L=z.videoId;if(!L||w===L)return S.return();D=_.N().resolve(_.BP);if(D.isOnWatch())return _.SN(Error("Cj")),S.return();
p={channelItem:{externalId:btoa(L)}};C.readyToResumeVe=_.Dn(121253,void 0,void 0,p);_.ck().showMiniplayerCommandActivation=!0;return _.n(S,_.fPb(C,F,!0),4);case 4:return C.active?(_.PX(C,{readyToResumeVe:C.readyToResumeVe,continueWatching:!0,premiumBranding:!((Q=y)==null||!Q.showPremiumBranding)}),C.isReadyToResume=!0):_.PX(C,{continueWatching:!0,premiumBranding:!((X=y)==null||!X.showPremiumBranding)}),_.V("ytd_miniplayer_to_wiz")&&_.PX(C,{isReadyToResume:!0}),_.n(S,(b=c)==null?void 0:b.set("yt-miniplayer-shown-video-id",
z.videoId),5);case 5:C.readyToResumeVe=void 0,_.oI(S)}})};
nC.prototype.init=function(I){this.miniplayerEl?_.SN(new _.ph("MiniplayerService already initialized.")):this.miniplayerEl=I};
nC.prototype.isInitialized=function(){var I=!!this.miniplayerEl;I||_.SN(new _.ph("MiniplayerService used before initialized."));return I};
_.zEM=function(I,C){if(I.isInitialized()){var y=_.SDY(C.response,C.playerResponse),k=_.N().resolve(_.BP).getPlayerFromWatch();_.ck().currentEndpoint=y.watchEndpoint||null;I.activate(k,y,C)}};
_.Taj=function(I){if(I.isInitialized()){var C=_.N().resolve(_.BP).getPlayerFromShorts();I.activate(C)}};
nDd=function(I,C){var y;(y=!I.isInitialized())||(y=_.N().resolve(_.BP).isOnWatch()&&I.watchPipMode,y=!(I.isMiniplayerActive()&&(_.ck().userActivation||_.ck().lockupActivation||y)));if(y)return!1;eEK(I,C)?_.rM(I):GCu(I,C);return I.watchPipMode?!_.N().resolve(_.BP).isOnWatch():!0};
nC.prototype.isMiniplayerActive=function(){return this.active};
var eEK=function(I,C){var y;C=(y=_.l(C,_.H$))==null?void 0:y.videoId;var k,F;I=(F=_.l((k=I.miniplayerData)==null?void 0:k.watchEndpoint,_.H$))==null?void 0:F.videoId;return C!=null&&C===I};
nC.prototype.collapse=function(){this.isInitialized()&&(this.backgroundPageData?_.k3(this.miniplayerEl,"yt-navigate-cache",{url:this.backgroundPageData.url,endpoint:this.backgroundPageData.endpoint,data:this.backgroundPageData}):_.Fe(this.miniplayerEl,"yt-navigate-home-action"))};
_.fPb=function(I,C,y,k){y=y===void 0?!1:y;var F,z,c;return _.e(function(r){switch(r.nextAddress){case 1:if(I.active){r.jumpTo(2);break}F=_.N().resolve(_.BP);if(c=(z=I.playerElement)!=null?z:F.getPlayerFromWatch()){r.jumpTo(3);break}return _.n(r,_.N().resolve(_.OZ),4);case 4:c=F.getPlayerFromWatch();case 3:if(!c){_.SN(Error("Ej"));r.jumpTo(2);break}return _.n(r,I.activate(c,k),2);case 2:return I.active?_.n(r,GCu(I,C,y),0):r.return()}})};
nC.prototype.activate=function(I,C,y){var k=this,F,z,c,r,w,L,D,p;return _.e(function(Q){switch(Q.nextAddress){case 1:if(!k.isInitialized())return Q.return();if(!I)return _.SN(Error("Ej")),Q.return();if(_.hru()||k.isMiniplayerActive())var X=!0;else X=_.ck().watchPipActivation||_.ck().watchWhileActivation,_.N().resolve(_.BP).isOnWatch()&&!X?(_.SN(new _.ph("miniplayer activated on watch page")),X=!0):X=_.ck().watchWhileActivation?k.userDeactivatedWatchWhile||!!document.pictureInPictureElement||n_W():
!1;if(X)return Exc(),Q.return();F=_.ck().mediaSessionPipActivation;z=_.ck().shortsPipActivation;c=_.ck().watchPipActivation;w=(r=_.ck().watchWhileActivation)||c;L=c||z;if(!k.pictureInPictureEnabled()||!L){Q.jumpTo(2);break}return _.n(Q,r_Y(k,F),3);case 3:if(!Q.yieldResult)return _.SN(Error("Dj")),Exc(),Q.return();case 2:return k.setActive(!0),k.watchResponse=y,k.playerElement=I,k.updateMiniplayerData(C),_.n(Q,iay(k,I),4);case 4:if(!k.active)return _.SN(new _.ph("miniplayer deactivated during activation")),
k.removePlayerListeners(),Q.return();X=_.N().resolve(_.Gk);X.addEventListener("yt-navigate",_.sb(k,k.onPlaylistNavigate));X.addEventListener("yt-playlist-data-updated",_.sb(k,k.JSC$16350_onPlaylistDataUpdated));k.JSC$16350_onPlaylistDataUpdated();Exc();k.JSC$16350_watchWhileEnabled&&_.wnK(k,r);k.pictureInPictureEnabled()&&k.shortsPipEnabled&&(k.shortsPipMode=z,_.Hg().dispatch(Ghq(k.shortsPipMode)));k.pictureInPictureEnabled()&&k.watchPipEnabled&&(k.watchPipMode=c);k.player&&(D=k.player.getPlayerState(),
p=D===1,_.Hg().dispatch(xVc(D)),_.uW(k.miniplayerEl,"yt-miniplayer-play-state-changed",[p]),_.ck().isVideoPlaying=p);k.watchPipEnabled&&_.LpW(k.handleMediaSessionPipActivation);_.uW(k.miniplayerEl,"yt-miniplayer-endpoint-changed");nbj(k);_.PiS(k);return k.shortsPipMode||k.watchPipMode?_.n(Q,_.zg(k.miniplayerEl,"yt-activate-pip-miniplayer"),6):_.V("ytd_miniplayer_to_wiz")?_.n(Q,_.zg(k.miniplayerEl,"yt-activate-miniplayer",[w]),6):_.n(Q,_.zg(k.miniplayerEl,"yt-activate-miniplayer-action",[I,w]),6);
case 6:L7P(k),DMy(k,!0),_.oI(Q)}})};
nC.prototype.updateMiniplayerData=function(I){this.miniplayerData=I;_.PX(this,{data:I})};
_.PiS=function(I){var C,y,k=((C=I.miniplayerData)==null?void 0:(y=C.miniplayerRenderer)==null?void 0:y.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY";C=I.watchWhileMode||I.watchPipMode?k&&!_.N().resolve(_.BP).isOnWatch():k;_.PX(I,{isDisabled:C});var F,z;y=_.l((F=I.miniplayerData)==null?void 0:(z=F.miniplayerRenderer)==null?void 0:z.minimizedEndpoint,_.jV);C&&y&&_.N().resolve(_.nD).openSheet({openPopupActionCommand:{openPopupAction:y}},I.miniplayerEl)};
L7P=function(I){if(I.watchResponse&&!pnj(I)){var C,y=(C=I.watchResponse.playerResponse)==null?void 0:C.trackingParams;y&&(_.PX(I,{expandVe:_.Dn(35989),closeVe:_.Dn(34699),readyToResumeCloseVe:_.Dn(131070),repositionVe:_.Dn(226204),resizeVe:_.Dn(226205)}),_.PX(I,{playerVe:_.nv(y)}))}};
iay=function(I,C){return _.e(function(y){if(y.nextAddress==1)return C.preparePlayer(),_.n(y,C.getPlayerPromise(),2);I.player=y.yieldResult;I.player&&(I.player.addEventListener("onPlayVideo",I.JSC$16350_onPlayerPlayVideo),I.player.addEventListener("onCloseMiniplayer",I.onPlayerCloseMiniplayer),I.player.addEventListener("onExpandMiniplayer",I.onPlayerExpandMiniplayer),I.player.addEventListener("onStateChange",I.onPlayerStateChange));_.oI(y)})};
_.u=nC.prototype;_.u.JSC$16350_onPlayerPlayVideo=function(I){var C=I.sessionData&&"autonav"in I.sessionData,y;I.sessionData&&I.sessionData.itct&&(y=I.sessionData.itct);var k=I.watchEndpoint;C=k&&C?_.EIF(k,y):_.IQ(I.videoId,I.listId||void 0,y);I.sessionData&&_.aC(_.l(C.commandMetadata,_.It).url,I.sessionData);GCu(this,C)};
_.u.onPlayerExpandMiniplayer=function(){_.rM(this)};
_.u.onPlayerCloseMiniplayer=function(){this.watchWhileMode&&(this.userDeactivatedWatchWhile=!0);this.close(this.watchWhileMode)};
_.u.onPlayerStateChange=function(){if(this.player){var I=this.player.getPlayerState(),C=I===1;_.Hg().dispatch(xVc(I));_.Hg().dispatch(_.mVP(I));_.uW(this.miniplayerEl,"yt-miniplayer-play-state-changed",[C]);_.ck().isVideoPlaying=C;if(I===0){C=!_.ho.getInstance().isAutoplaySetExplicitly();var y,k,F,z,c,r,w=(y=this.watchResponse.response)==null?void 0:(k=y.contents)==null?void 0:(F=k.twoColumnWatchNextResults)==null?void 0:(z=F.autoplay)==null?void 0:(c=z.autoplay)==null?void 0:(r=c.autoplayExplicitChoiceDialogRenderer)==
null?void 0:r.confirmDialogRenderer;C&&w&&this.player.setAutonavState(1)}I===0&&this.watchWhileMode&&this.deactivate()}};
_.u.onPlaylistNavigate=function(I,C){var y=this,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1){if(!_.l(C.endpoint,_.H$))return D.return();_.ck().currentEndpoint=C.endpoint;_.uW(y.miniplayerEl,"yt-miniplayer-endpoint-changed");if(_.N().resolve(_.BP).isOnWatch()&&(y.watchWhileMode||y.watchPipMode))return D.return();I.stopPropagation();(z=(F=_.l((k=C.endpoint)==null?void 0:k.commandMetadata,_.It))==null?void 0:F.url)&&C.tempData&&!_.Le.isEmpty(C.tempData)&&_.aC(z,C.tempData);c={clientParams:{miniplayer:!0,
autoSaveToQueue:!1}};r=new BF5(function(){return y.getPlayerElement()},c,{layer:3});
w=function(p){r.processChunk({endpoint:C.endpoint,data:p})};
QMB(y);y.miniplayerFetchRequest=NaM(y,C.endpoint,w);_.aM(D,2);return _.n(D,y.miniplayerFetchRequest,4)}if(D.nextAddress!=2)return L=D.yieldResult,VOy(y,L),_.dC(D,0);_.sj(D);_.oI(D)})};
_.u.JSC$16350_onPlaylistDataUpdated=function(){var I=_.N().resolve(_.Gk).getPlaylistData();this.hasPlaylistData=!!I;_.PX(this,{externalPlaylistData:I||{}})};
_.u.close=function(I){if(this.isInitialized())if(I){if(!((this.watchWhileMode||this.watchPipMode)&&_.N().resolve(_.BP).isOnWatch()||this.shortsPipMode)){var C;(C=this.getPlayerElement())==null||C.stop()}this.deactivate()}else _.gf().closeMiniplayer(this.miniplayerEl)};
_.u.deactivate=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1){if(!C.isInitialized()||!C.active)return c.return();C.setActive(!1);QMB(C);(y=!!I&&eEK(C,I))&&C.isSingleOptionSurveyActive&&_.Fe(C.miniplayerEl,"yt-show-watch-page-survey",[C.isSingleOptionSurveyActive]);return _.n(c,jMR(C),2)}if(c.nextAddress!=3){DMy(C,!1);C.isReadyToResume=!1;C.watchResponse=void 0;C.updateMiniplayerData(void 0);C.shortsPipMode&&(C.shortsPipMode=!1,_.Hg().dispatch(Ghq(C.shortsPipMode)),H9L(C.pipController),
(k=C.player)==null||k.setInternalSize(NaN,NaN));C.watchPipMode&&(C.watchPipMode=!1,H9L(C.pipController));(F=C.watchWhileMode)&&_.wnK(C,!1);C.removePlayerListeners();var r=_.N().resolve(_.Gk);r.removeEventListener("yt-navigate",_.sb(C,C.onPlaylistNavigate));r.removeEventListener("yt-playlist-data-updated",_.sb(C,C.JSC$16350_onPlaylistDataUpdated));_.ck().currentEndpoint=null;_.uW(C.miniplayerEl,"yt-miniplayer-endpoint-changed");C.playerElement=null;Exc();return C.shortsPipMode||C.watchPipMode?c.jumpTo(3):
_.n(c,_.zg(C.miniplayerEl,_.V("ytd_miniplayer_to_wiz")?"yt-deactivate-miniplayer":"yt-deactivate-miniplayer-action",[y,F]),3)}(z=C.player)==null||z.setInternalSize(NaN,NaN);C.player=null;_.oI(c)})};
var jMR=function(I){var C;return _.e(function(y){C=_.N().resolve(_.BP);return I.shortsPipMode?_.n(y,C.movePlayerToShorts(I.playerElement),0):_.n(y,C.movePlayerToWatch(I.playerElement),0)})};
nC.prototype.removePlayerListeners=function(){this.player&&(this.player.removeEventListener("onPlayVideo",this.JSC$16350_onPlayerPlayVideo),this.player.removeEventListener("onCloseMiniplayer",this.onPlayerCloseMiniplayer),this.player.removeEventListener("onExpandMiniplayer",this.onPlayerExpandMiniplayer),this.player.removeEventListener("onStateChange",this.onPlayerStateChange))};
nC.prototype.setActive=function(I){this.active=I;this.isSingleOptionSurveyActive?_.Fe(this.miniplayerEl,"yt-close-popup-action",["ytd-single-option-survey-renderer"]):_.Fe(this.miniplayerEl,"yt-close-popup-action",["ytd-survey-follow-up-renderer"]);_.Hg().dispatch(_.yE({type:"SET_MINIPLAYER_IS_ACTIVE",payload:this.active}))};
_.wnK=function(I,C){I.watchWhileMode=C;_.PX(I,{watchWhile:C})};
DMy=function(I,C){if(!pnj(I))if(I.shortsPipMode||I.watchPipMode){var y;(y=I.player)==null||y.setDocumentPictureInPicture(C)}else{var k;(k=I.player)==null||k.setMinimized(C)}};
pnj=function(I){return I.watchWhileMode&&_.V("kevlar_watch_while_counterfactual")};
_.rM=function(I){var C;return _.e(function(y){switch(y.nextAddress){case 1:if(!I.isInitialized())return y.return();_.aM(y,2);return _.n(y,I.miniplayerFetchRequest,4);case 4:_.dC(y,3);break;case 2:_.sj(y);case 3:I.watchResponse&&I.miniplayerData&&I.miniplayerData.watchEndpoint?(C={url:I.watchResponse.url,endpoint:I.miniplayerData.watchEndpoint,data:I.watchResponse,miniplayer:!0},_.k3(I.miniplayerEl,"yt-navigate-cache",C)):I.miniplayerData&&I.miniplayerData.watchEndpoint&&_.k3(I.miniplayerEl,"yt-navigate",
{endpoint:I.miniplayerData.watchEndpoint}),_.oI(y)}})};
GCu=function(I,C,y){var k,F,z,c;return _.e(function(r){if(r.nextAddress==1){if(eEK(I,C))return r.return();_.ck().currentEndpoint=C;_.uW(I.miniplayerEl,"yt-miniplayer-endpoint-changed");_.uW(I.miniplayerEl,"yt-miniplayer-play-state-changed",[!1]);_.ck().isVideoPlaying=!1;k={clientParams:{miniplayer:!0,autoSaveToQueue:!y}};F=new BF5(function(){return I.getPlayerElement()},k,{layer:3,
parentLayer:0},void 0,I.readyToResumeVe);z=function(w){var L,D,p=Object.assign({},(L=w.playerResponse)==null?void 0:(D=L.playerConfig)==null?void 0:D.playbackStartConfig,{startPaused:!0}),Q;y&&((Q=w.playerResponse)==null?0:Q.playerConfig)&&(w.playerResponse.playerConfig.playbackStartConfig=p);F.processChunk({endpoint:C,data:w})};
QMB(I);I.miniplayerFetchRequest=NaM(I,C,z);_.aM(r,2);return _.n(r,I.miniplayerFetchRequest,4)}if(r.nextAddress!=2)return c=r.yieldResult,VOy(I,c),_.dC(r,0);_.sj(r);_.oI(r)})};
QMB=function(I){I.miniplayerFetchRequest&&(I.miniplayerFetchRequest.cancel&&I.miniplayerFetchRequest.cancel("Active request obsolete"),I.miniplayerFetchRequest=null)};
NaM=function(I,C,y){var k=_.IA.instance,F,z=(F=_.l(C.commandMetadata,_.It))==null?void 0:F.url,c;F=!z||_.V("disable_miniplayer_tempdata")?{}:(c=IAO(z))!=null?c:{};return qd(k,C,F,window.location.href,"watch",function(r,w){y(w)},function(r){return r!==I.miniplayerFetchRequest})};
VOy=function(I,C){var y;_.e(function(k){if(!C)return k.return();I.watchResponse=C;L7P(I);nbj(I);y=_.SDY(C.response,C.playerResponse);if(I.isMiniplayerActive()){C.response&&(I.playerElement.watchNextData=C.response);var F=_.Le.getValueByKeys.apply(_.Le,[C].concat(_.Py(IhP)));_.Le.getValueByKeys.apply(_.Le,[C].concat(_.Py(kfw)))&&F&&_.N().resolve(_.Gk).setAutoplayRenderer(F);if(F)if(_.V("kevlar_is_pupi_enabled")){var z,c,r,w,L,D=((z=C.response)==null?0:(c=z.playerOverlays)==null?0:(r=c.playerOverlayRenderer)==
null?0:(w=r.autonavToggle)==null?0:(L=w.autoplaySwitchButtonRenderer)==null?0:L.enabled)?2:1;_.ho.getInstance().setState(D,!1,!1)}else z=ibI()?2:1,(D=I.player)==null||D.setAutonavState(z);I.updateMiniplayerData(y);_.PiS(I)}_.oI(k)})};
nbj=function(I){var C,y,k=(C=I.watchResponse)==null?void 0:(y=C.playerResponse)==null?void 0:y.playabilityStatus,F;C=k==null?void 0:(F=k.miniplayer)==null?void 0:F.miniplayerRenderer;(C==null?void 0:C.playbackMode)==="PLAYBACK_MODE_PAUSED_ONLY"&&C.minimizedEndpoint&&_.Tg(I.miniplayerEl,[C.minimizedEndpoint]);_.PX(I,{miniplayerRenderer:C,playabilityStatus:k})};
nC.prototype.openToast=function(I,C){_.PX(this,{toastData:{data:I,label:C}})};
_.PX=function(I,C){var y=I.miniplayerEl,k;for(k in C)y[k]=C[k];(0,I.miniplayerPropSignalMap[1])(C)};
nC.prototype.getPlayerElement=function(){if(!this.isInitialized())return null;var I;return this.playerElement?this.playerElement:(I=_.f(this.miniplayerEl).querySelector("#player-container"))==null?void 0:I.firstElementChild};
var r_Y=function(I,C){C=C===void 0?!1:C;var y,k,F,z,c,r,w;return _.e(function(L){if(L.nextAddress==1){y=navigator.userActivation.isActive||C;if(!y)return L.return(!1);k=ldM(I);F=k.width;z=k.height;return _.n(L,I.pipController.openWindow({width:F,height:z}),2)}c=L.yieldResult;r=I.pipController.getWindow();if(!r||!c)return L.return(!1);r.document.body.style.overflow="hidden";w=lFW(r);tI8(I.pipController,function(){XnL(I);w()});
return L.return(!0)})},ldM=function(I){var C=_.ck().shortsPipActivation,y,k;
I=C?.5625:(k=(y=I.player)==null?void 0:y.getVideoAspectRatio())!=null?k:16/9;y=Math.min(window.innerWidth,window.innerHeight)/2;C=C?0:76;return I>1?new _.y6(y,C+y/I):new _.y6(y*I,C+y)},XnL=function(I){var C;
_.e(function(y){C=_.N().resolve(_.BP);return C.isOnWatch()&&I.watchPipMode||C.isOnShorts()&&I.shortsPipMode?_.n(y,I.deactivate(),0):I.miniplayerToPipMode?_.n(y,c_R(I),0):I.watchPipMode?_.n(y,_.rM(I),0):y.jumpTo(0)})};
nC.prototype.pictureInPictureEnabled=function(){return!!window.documentPictureInPicture&&_.bK()&&(this.watchPipEnabled||this.shortsPipEnabled)};
_.H1.Object.defineProperties(nC.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
nC[tj]=[_.JXL,r1S];var $MM="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(" "),
REP="arrow_down arrow_up overflow_horizontal pause play-arrow shorts-comment shorts-dislike shorts-like shorts-share volume-off volume-up waveform".split(" ");var baL=null;var YCH={},GK8=(YCH.initialized={priority:10,callback:function(I){var C=_.N();C.addProvider({provide:e3S,useClass:hbY});C.addProvider({provide:_.Eu8,useFactory:function(){return new rkd}});
C.addProvider({provide:e$,useValue:_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME","WEB")});C.addProvider({provide:zpc,useValue:5184E6});C.addProvider({provide:Nuw,useValue:_.R7()});C.addProvider({provide:ftR,useClass:j68});C.addProvider({provide:$Z,useClass:$Z});C.addProvider({provide:_.OZ,useFactory:function(){return SQb.promise}});
C.addProvider({provide:_.A48,useFactory:function(){return _.Ks0.promise}});
C.addProvider({provide:m6F,useValue:function(){var r;return((r=_.hU())==null?void 0:r.getPlayer())||null}});
var y={};C.addProvider((y.provide=_.vG,y.useFactory=function(r,w){return function(){return aOt(r,w)}},y[tj]=[e$,
zpc],y));y={};C.addProvider((y.provide=_.O_,y.useClass=tYc,y[tj]=[e$,zpc],y));y={};C.addProvider((y.provide=_.d0I,y.useClass=MYb,y[tj]=[_.O_],y));C.addProvider({provide:sK,useFactory:_.Hg});C.addProvider({provide:cJ,useFactory:_.Hg});C.addProvider({provide:AXj,useFactory:_.Hg});C.addProvider({provide:k7S,useFactory:_.Hg});C.addProvider({provide:_.VL,useFactory:_.Hg});C.addProvider({provide:ES,useValue:_.i6});C.addProvider({provide:xqP,useClass:T9F});C.addProvider({provide:mpd,useClass:qXP});C.addProvider({provide:V7,
useClass:V7});C.addProvider({provide:nP,useClass:nP});C.addProvider({provide:D6,useClass:D6});C.addProvider({provide:Q7,useClass:Q7});C.addProvider({provide:YD,useClass:YD});C.addProvider({provide:MI,useClass:MI});C.addProvider({provide:hg,useClass:hg});C.addProvider({provide:gM8,useValue:yTK});C.addProvider({provide:_.zd,useFactory:_.e2});C.addProvider({provide:qR,useFactory:_.pA});y={};C.addProvider((y.provide=DOz,y.useFactory=function(r){return function(w){var L=L===void 0?{}:L;var D,p,Q=(p=_.l((D=
w.endpoint)==null?void 0:D.commandMetadata,_.It))==null?void 0:p.rootVe;if(Q){var X,b;if(D=w.previousCsn||((b=_.l((X=w.endpoint)==null?void 0:X.commandMetadata,jie))==null?void 0:b.parentCsn)){var S=S===void 0?{}:S;if(D!==_.Si(S.layer)||Q!==Fum(S.layer))e$K(D,S.cttAuthInfo,S.layer||0),yZO(D,S.layer||0),X=S.layer||0,_.KH(k9X(X===void 0?0:X),Q);L.parentCsn=D}w.endpoint&&D?GW0(r,w.endpoint,L):_.s7(r,Q,void 0,L);var A;((A=w.response)==null?0:A.trackingParams)&&r.graftServerVe(w.response.trackingParams);
var x;((x=w.playerResponse)==null?0:x.trackingParams)&&r.graftServerVe(w.playerResponse.trackingParams);var B;((B=w.reelWatchSequenceResponse)==null?0:B.trackingParams)&&r.graftServerVe(w.reelWatchSequenceResponse.trackingParams)}}},y[tj]=[_.zd],y));
y={};C.addProvider((y.provide=vzj,y.useClass=gzY,y[tj]=[ES,_.VL],y));y={};C.addProvider((y.provide=HG,y.useClass=HG,y[tj]=[_.OZ,_.VL],y));y={};C.addProvider((y.provide=BG,y.useClass=BG,y[tj]=[cJ,_.ID],y));C.addProvider({provide:_.Z9L,useClass:at8});y={};C.addProvider((y.provide=_.wp,y.useClass=hmL,y[tj]=[_.Z9L],y));C.addProvider({provide:_.nD,useClass:OW});C.addProvider({provide:_.Pr,useClass:t1});y={};C.addProvider((y.provide=_.vb,y.useClass=O9Y,y[tj]=[_.vb],y));_.V("web_enable_voting_animation")&&
C.addProvider({provide:_.hv,useClass:Alm});C.addProvider({provide:uH,useClass:uH});C.addProvider({provide:iH,useClass:iH});C.addProvider({provide:NR,useClass:J1});y={};C.addProvider((y.provide=lH,y.useClass=lH,y[tj]=[_.nD,NR],y));_.V("web_enable_feedback_endpoint_resolver")&&(y={},C.addProvider((y.provide=oP,y.useClass=oP,y[tj]=[sK,C_],y)),C.addProvider({provide:C_,useClass:CEb}));_.V("web_enable_feedback_endpoint_resolver_batch_2")&&(y={},C.addProvider((y.provide=kv,y.useClass=kv,y[tj]=[sK],y)),
y={},C.addProvider((y.provide=yI,y.useClass=yI,y[tj]=[C_],y)));y={};C.addProvider((y.provide=VI,y.useClass=VI,y[tj]=[_.Pr,NR],y));y={};C.addProvider((y.provide=L_,y.useClass=L_,y[tj]=[_.Pr],y));y={};C.addProvider((y.provide=j$,y.useClass=j$,y[tj]=[_.Q0,_.wp],y));y={};C.addProvider((y.provide=QI,y.useClass=QI,y[tj]=[_.Q0,_.zd],y));C.addProvider({provide:UK,useClass:UK});y={};C.addProvider((y.provide=xv,y.useClass=xv,y[tj]=[sK],y));y={};C.addProvider((y.provide=uq,y.useClass=uq,y[tj]=[sK],y));y={};
C.addProvider((y.provide=zn,y.useClass=zn,y[tj]=[_.Q0,sK],y));y={};C.addProvider((y.provide=Tn,y.useClass=Tn,y[tj]=[sK],y));y={};C.addProvider((y.provide=cE,y.useClass=cE,y[tj]=[sK],y));y={};C.addProvider((y.provide=D5,y.useClass=D5,y[tj]=[_.wp],y));y={};C.addProvider((y.provide=aP,y.useClass=aP,y[tj]=[_.zd],y));y={};C.addProvider((y.provide=yj,y.useClass=yj,y[tj]=[EK],y));y={};C.addProvider((y.provide=kI,y.useClass=kI,y[tj]=[EK],y));C.addProvider({provide:Cf,useClass:Cf});C.addProvider({provide:sM,
useClass:sM});C.addProvider({provide:OK,useClass:OK});y={};C.addProvider((y.provide=Xa,y.useClass=Xa,y[tj]=[_.wp,_.ID],y));C.addProvider({provide:cb,useClass:cb});y={};C.addProvider((y.provide=p_,y.useClass=p_,y[tj]=[_.Q0,_.wp],y));C.addProvider({provide:wL,useClass:wL});y={};C.addProvider((y.provide=Wb,y.useClass=Wb,y[tj]=[sK,_.Q0,_.vb],y));y={};C.addProvider((y.provide=A5,y.useClass=A5,y[tj]=[_.Q0,_.ID],y));C.addProvider({provide:L6b,useValue:iSX});C.addProvider({provide:X8z,useValue:eOH});C.addProvider({provide:gL,
useClass:gL});y={};C.addProvider((y.provide=K_,y.useClass=K_,y[tj]=[sK],y));y={};C.addProvider((y.provide=dL,y.useClass=dL,y[tj]=[_.hv,_.ID],y));y={};C.addProvider((y.provide=Fa,y.useClass=Fa,y[tj]=[_.ID],y));C.addProvider({provide:IP,useFactory:function(){return new IP(_.Hg())}});
C.addProvider({provide:ZYm,useFactory:_.AG.getInstance});y={};C.addProvider((y.provide=rL,y.useClass=rL,y[tj]=[e$,ZYm,_.ID],y));C.addProvider({provide:zi,useClass:zi});C.addProvider({provide:ty,useClass:ty});C.addProvider({provide:OS,useClass:OS});C.addProvider({provide:_.Jy,useClass:_.Jy});C.addProvider({provide:iq,useClass:iq});y={};C.addProvider((y.provide=Gi,y.useClass=Gi,y[tj]=[cJ],y));y={};C.addProvider((y.provide=f_,y.useClass=f_,y[tj]=[_.ID],y));_.V("web_enable_prefetching_videos_on_home")&&
(C.addProvider({provide:Z6,useClass:Z6}),C.addProvider({provide:uy,useClass:uy}));y={};C.addProvider((y.provide=rz,y.useClass=rz,y[tj]=[_.ID],y));C.addProvider({provide:af,useClass:af});y={};C.addProvider((y.provide=Hb,y.useClass=Hb,y[tj]=[_.Q0,_.ID],y));y={};C.addProvider((y.provide=MP,y.useClass=MP,y[tj]=[_.ID],y));C.addProvider({provide:zS,useClass:zS});C.addProvider({provide:bH,useClass:bH});y={};C.addProvider((y.provide=RP,y.useClass=RP,y[tj]=[cJ,_.ID],y));y={};C.addProvider((y.provide=PE,y.useClass=
PE,y[tj]=[cJ,_.ID,_.Q0],y));y={};C.addProvider((y.provide=Lf,y.useClass=Lf,y[tj]=[_.ID],y));y={};C.addProvider((y.provide=nf,y.useClass=nf,y[tj]=[_.ID,_.Q0],y));y={};C.addProvider((y.provide=S$,y.useClass=S$,y[tj]=[_.OZ],y));y={};C.addProvider((y.provide=Yv,y.useClass=Yv,y[tj]=[_.OZ],y));C.addProvider({provide:Bb,useClass:Bb});C.addProvider({provide:h5,useClass:h5});C.addProvider({provide:F0,useClass:F0});C.addProvider({provide:t5,useClass:t5});C.addProvider({provide:Z5,useClass:Z5});C.addProvider({provide:n_,
useClass:n_});C.addProvider({provide:m1,useClass:m1});_.V("kevlar_enable_mss_lazy_load")&&C.addProvider({provide:_.xH,useClass:lSP});C.addProvider({provide:_.aV,useClass:MQ});C.addProvider({provide:E2,useFactory:function(){return _.qU.getInstance()}});
C.addProvider({provide:SFS,useFactory:wYs});C.addProvider({provide:EK,useFactory:function(){return _.pu.getInstance()}});
C.addProvider({provide:Xrw,useValue:{singleEntityType:"mainVideoEntity",listEntityType:"mainPlaylistEntity"}});y={};C.addProvider((y.provide=_.EW,y.useClass=_.EW,y[tj]=[_.OZ,_.ID,_.zd,SFS,EK,E2,Xrw,ES],y));C.addProvider({provide:_.sQ,useClass:JQY});C.addProvider({provide:_.cAe,useClass:TuY});y={};C.addProvider((y.provide=Pb,y.useClass=Pb,y[tj]=[_.cAe],y));y={};C.addProvider((y.provide=_.h1,y.useFactory=function(r){return r.upliftCompletionResolver.promise},y[tj]=[vzj],y));
y=_.g5("IS_SHELL_LOAD")?"aa":"eocs";var k=_.g5("IS_SHELL_LOAD")?3:2;_.So().parkOrScheduleJob(function(){dzP()},k,y);
_.So().parkOrScheduleJob(function(){_.N().resolve(HG).start()},2,"eocs");
_.So().parkOrScheduleJob(function(){KYj()},2,"eocs");
_.So().parkOrScheduleJob(function(){_.N().resolve(BG).start()},2,"eocs");
_.V("kevlar_debug_data_app_registration_ks")||irI();C.addProvider({provide:_.Qc,useValue:new Utb(I.root)});C.addProvider({provide:dT,useValue:new bvW});C.addProvider({provide:_.Cxb,useValue:new MUq(I.root)});C.addProvider({provide:_.pp,useValue:new IUw});C.addProvider({provide:_.st,useClass:Fp});C.addProvider({provide:_.JXL,useClass:a4});_.V("kevlar_network_sli_killswitch")||C.addProvider({provide:O58,useValue:e28});C.addProvider({provide:qw8,useFactory:Mhm});_.V("web_bind_fetch")&&(y={},C.addProvider((y.provide=
mqK,y.useFactory=Iaz,y[tj]=[_.aU(qw8)],y)));_.V("web_bind_parse")&&(y={},C.addProvider((y.provide=Z5L,y.useFactory=CDH,y[tj]=[_.aU(qw8)],y)));_.V("web_bind_window_request")&&(y={},C.addProvider((y.provide=BSS,y.useFactory=sBK,y[tj]=[_.aU(qw8)],y)));y={};C.addProvider((y.provide=X05,y.useFactory=naW,y[tj]=[_.h1,sK,_.vG],y));y={};C.addProvider((y.provide=lMe,y.useClass=Dj,y[tj]=[X05],y));C.addProvider({provide:qae,useClass:vMP});C.addProvider({provide:Qlw,useClass:VY8});y=[].concat(_.Py(WP));_.V("web_continuation_response_processing")&&
y.push(_.R8);y.push(q70);_.V("enable_share_panel_navigation_logging_fix_on_web")&&y.push(_.D7q);C.addProvider({provide:GnF,useValue:y});C.addProvider({provide:hgY,useClass:p00});C.addProvider({provide:CjK,useClass:aYj});y={};C.addProvider((y.provide=m0m,y.useClass=eoY,y[tj]=[cJ],y));_.b$.addLowPriorityJob(function(){WEz()});
y={};C.addProvider((y.provide=cDw,y.useFactory=function(r){return function(w){var L,D=(L=_.l(w.commandMetadata,_.It))==null?void 0:L.url;if(!D)throw new _.ph("No URL for PBJ Command",w);D=z0z(D,{pbj:"1"});L=$sm(D,{})||{};L=Object.assign({},L,{"Content-Type":"application/x-www-form-urlencoded","x-youtube-csoc":"1","X-YouTube-STS":_.Aq("STS").toString()});w=_.e7({command:JSON.stringify(w),session_token:_.Aq("XSRF_TOKEN")});return r.fetch(D,{method:"POST",headers:L,body:w})}},y[tj]=[CjK],y));
y=[];y.push(C.resolve(Qlw));k={};k=(k.client_location=_.AG.getInstance(),k.consistency=_.PZO(),k.entities=C.resolve(mpd),k.response_received_commands=C.resolve(hgY),k.store=C.resolve(_.d0I),k.tokens=C.resolve(Qlw),k);if(_.V("web_shorts_prefetch_service_enabled")){var F=new ItK(C.resolve(_.O_));k.shorts_prefetch=F}k.adblock_detection=C.resolve(m0m);C.addProvider({provide:_.mx,useClass:_.mx});F=C.resolve(gM8);var z=[];if(_.V("PremiumClientSharedConfig__enable_att_context_processor")||_.V("enable_att_for_transcript_request_on_web_client"))C.addProvider({provide:XSq,
useClass:VQm}),z.push(C.resolve(XSq));if(_.V("owl_pl_await")){var c={};C.addProvider((c.provide=AcR,c.useFactory=function(r){return new SwR(r)},c[tj]=[_.mx],c));
z.push(C.resolve(AcR))}L98(F,C.resolve(CjK),C.resolve(xqP),k,C.resolve(_.O_),y,z,C.resolve(lMe),C.resolve(qae));C.addProvider({provide:_.Q0,useValue:_.KE.instance});_.V("start_client_gcf")&&C.addProvider({provide:VB,useValue:dUS()});C.addProvider({provide:qFK,useFactory:function(){return new qFK(_.N().resolve(_.mx),_.pu.getInstance())}});
_.So().parkOrScheduleJob(function(){mzM()},1,"eocs");
y={};C.addProvider((y.provide=UW,y.useClass=UW,y[tj]=[_.vG,_.Q0],y));C.addProvider({provide:_.ouK,useFactory:_.Fr.getInstance});_.So().parkOrScheduleJob(function(){_.N().resolve(UW).refresh()},0,"eocs");
eWw(yTK.watchEndpointMap||{},F.reelWatchEndpointMap||{},I.injector.resolve(_.Q0));C.addProvider({provide:lz,useValue:_.IA.instance});_.V("web_prs_testing_mode_killswitch")||(y=new _.t$(window.location.href),y.JSC$7905_queryData_.toString()!==""&&y.JSC$7905_queryData_.get("force_ad_encrypted")&&(_.IA.instance.forceWebFEForAdsTesting=!0));_.V("kevlar_signal_collection_killswitch")||(y={},C.addProvider((y.provide=GIL,y.useClass=GIL,y[tj]=[e$,qR],y)),_.So().parkOrScheduleJob(function(){_.N().resolve(GIL).record()},
1,"eocs"));
_.V("web_debug_handler_registration_killswitch")||_.So().parkOrScheduleJob(function(){eHO("DOWNLOAD_PES",iBY);_.V("offline_client_state_export_ks")||eHO("OFFLINE_CLIENT_STATE",cWW)},0,"eocs");
_.V("kevlar_prevent_polymer_dynamic_font_load")&&_.So().parkOrScheduleJob(function(){var r=[_.tM(rPR),_.tM(i8B)];r=_.T(r);for(var w=r.next();!w.done;w=r.next()){w=w.value;var L=document.createElement("link");_.A_(L,w,"stylesheet");document.head.appendChild(L)}},1,"eocs");
y=I.injector.resolve(_.Q0);_.lUS.instance=new _.lUS(y);JOF(PxP(new jpc(y)));y={};I.injector.addProvider((y.provide=Os,y.useFactory=function(r){(r=r==null?void 0:r.getCurrentPage())?r=r.visibilityObserver:(baL||(baL=Lkm()),r=baL);return r},y[tj]=[_.aU(_.BP)],y.skipCache=!0,y));
C.addProvider({provide:_.WJ,useClass:nC});C.addProvider({provide:kl,useClass:oD0});C.addProvider({provide:M8F,useValue:PPt});I.injector.addProvider({provide:T70,useValue:hLm});C.addProvider({provide:acw,useValue:rOO});C.addProvider({provide:_.AE,useValue:lPm});I=C.addProvider;k0Y||(k0Y=new ycK);I.call(C,{provide:_.FPR,useValue:k0Y});C.addProvider({provide:_.v9,useValue:_.Aq("HTML_DIR")==="rtl"?"rtl":"ltr"});C.addProvider({provide:Btq,useClass:MQw});C.addProvider({provide:_.k$,useClass:I3});_.N().addProvider({provide:ho0,
useValue:$MM.concat(REP)});C.addProvider({provide:_.sk,useClass:_.sk});C.addProvider({provide:_.zYP,useValue:new uRy});C.addProvider({provide:U0m,useClass:dpd});C.addProvider({provide:J5,useClass:J5});C.addProvider({provide:MR,useClass:MR});I={};C.addProvider((I.provide=$v,I.useClass=$v,I[tj]=[_.Q0,_.wp],I));C.addProvider({provide:wz,useClass:wz});C.addProvider({provide:rte,useClass:IYP});C.addProvider({provide:oS,useClass:oS});C.addProvider({provide:UB0,useValue:fEP});C.addProvider({provide:_.$h,
useClass:xpw});_.V("enable_payments_purchase_manager")&&C.addProvider({provide:YXb,useClass:$p8});C.addProvider({provide:eYK,useFactory:function(){return function(r){return _.cPM(r)}}});
C.addProvider({provide:_.LNw,useClass:Dh8});I={};C.addProvider((I.provide=eu,I.useClass=eu,I[tj]=[_.LNw],I));C.addProvider({provide:IS,useClass:IS});C.addProvider({provide:uxw,useValue:Atb});C.addProvider({provide:GYY,useValue:rcK});C.addProvider({provide:VSO,useClass:MIj});C.addProvider({provide:TR8,useValue:zTY});I={};C.addProvider((I.provide=_.cTK,I.useClass=eTR,I[tj]=[TR8],I));_.V("web_ephemeral_actions")&&(I={},C.addProvider((I.provide=_.yb,I.useClass=o3,I[tj]=[_.VL,_.st],I)));if(_.V("web_explore_hub_on_hover")||
_.V("web_client_explore_hub_on_hover"))I={},C.addProvider((I.provide=Ti,I.useClass=Ti,I[tj]=[_.Q0,E2],I));C.addProvider({provide:HOH,useValue:xPz})}},YCH);var fdM={},SCB=(fdM.initialized={priority:10,callback:function(){if(!JcM){AGO();yIH("FOREGROUND_HEARTBEAT_TRIGGER_ON_FOREGROUND");_.uX(_.D0(yIH,"FOREGROUND_HEARTBEAT_TRIGGER_ON_INTERVAL"),3E4);if(_.V("log_heartbeat_with_lifecycles")){var I={};qf.instance||(qf.instance=new qf);qf.instance.install((I.document_visible={callback:ktI,priority:10},I.document_hidden={callback:ktI,priority:10},I))}else _.ae(document,"visibilitychange",ktI);JcM=!0}(I=_.Si())&&I!=="UNDEFINED_CSN"&&szY(I)}},fdM);var K7K={},A_y=(K7K.initialized={callback:function(I){var C=_.Dn(232091),y=I.injector.resolve(_.zd);_.oV(y,C);window.performance&&window.performance.getEntriesByType&&typeof window.performance.getEntriesByType==="function"?XuW()&&_.kU(y,C):(I=I.injector.resolve(eYK)("refresh_detector"))&&(I.get("first_tab_load")?_.kU(y,C):I.set("first_tab_load","1"))}},K7K);var gbB={},vbP=(gbB.initialized={priority:10,callback:KVW},gbB);var W7B={},dM8=(W7B.initialized={priority:0,callback:function(){var I=new Zew,C="other";_.cv?C="chrome":_.T6?C="firefox":_.S7?C="safari":E8&&(C="edge");document.hasStorageAccess?document.hasStorageAccess().then(function(y){I.increment(_.PN(),y,C)}).catch(function(){I.increment(_.PN(),!1,C)}):I.increment(_.PN(),!1,C)}},W7B);var xMB={},qCy=(xMB.rendering={priority:8,callback:ANm},xMB);var mMP={},Zay=(mMP.rendering={priority:10,callback:HYK},mMP.rendered={callback:U0s},mMP),BaK={},EbK=(BaK.rendering={callback:HYK},BaK.rendered={callback:U0s},BaK);var hEL=!1,UMH={},Haj=(UMH.initialized={priority:10,callback:function(){hEL||(zjt({didPatch:function(I){I.el&&HCz(I.el,I.props)},
didUnmount:function(I){hnI(I.el)}}),hEL=!0)}},UMH);var tOR=/^\/shorts\/?$/;_.KH("FILLER_DATA",{browse:{filler:!0,page:"browse"},search:{filler:!0,page:"search",endpoint:{commandMetadata:{webCommandMetadata:{url:"/results",webPageType:"WEB_PAGE_TYPE_SEARCH"}},urlEndpoint:{url:"/results"}},response:{contents:{twoColumnSearchResultsRenderer:{primaryContents:{sectionListRenderer:{contents:[],subMenu:{searchSubMenuRenderer:{}}}},secondaryContents:{secondarySearchContainerRenderer:{contents:[]}}}}}},watch:{filler:!0,page:"watch",endpoint:{commandMetadata:{webCommandMetadata:{url:"/watch",
webPageType:"WEB_PAGE_TYPE_WATCH"}},urlEndpoint:{url:"/watch"}},playerResponse:{playabilityStatus:{status:"OK"}},response:{contents:{twoColumnWatchNextResults:{results:{results:{contents:[{videoPrimaryInfoRenderer:{},videoSecondaryInfoRenderer:{}}]}},secondaryResults:{secondaryResults:{}}}}}}});
if(_.V("kevlar_enable_mss")){_.O$z(new jCq);var J_K=!0,Oa8,LC;J_K=J_K===void 0?!1:J_K;Oa8=Oa8===void 0?!1:Oa8;LC=LC===void 0?{}:LC;var adS=LC.cssRowKey||"",MOK=LC.combinedSignature||"";!adS&&window&&window._F_cssRowKey&&(adS=window._F_cssRowKey,!MOK&&window._F_combinedSignature&&(MOK=window._F_combinedSignature));if(adS&&typeof window._F_installCss!=="function")throw Error("ud");var IRS=LC.loaderClass||_.gr,CIR,sIY=S3t("base-js");CIR=_.Ca(sIY);var DT=new IRS(CIR,adS,MOK,J_K,Oa8);LC.useCors&&(DT.useCors_=
LC.useCors);LC.corsMode&&(DT.corsMode_=LC.corsMode);LC.urlMaxLength&&(DT.urlMaxLength=LC.urlMaxLength);LC.fetchPriority&&(DT.fetchPriority=LC.fetchPriority);var o5H=XB();o5H.JSC$7927_loader_=DT;o5H.setBatchModeEnabled(!0)}
(function(){var I=document.querySelector("ytd-app");if(!I)throw Error("Fj");I=new kN({root:I,injector:_.N()});I.install(SCB);var C={};I.install((C.initialized={priority:10,callback:zrO},C));_.V("wp_lat_b")&&(C={},I.install((C.initialized={priority:10,callback:function(){JWz()}},C)));
C={};I.install((C.rendered={priority:0,callback:kWt},C));C={};I.install((C.rendered={priority:0,callback:function(){_.b$.addLowPriorityJob(function(){_.IMu>1&&(abY(),oxO())},4E4)}},C));
I.install(dKM);I.install(A_y);I.install(Haj);LUH=vd0;FUW=cIW;VNs=y8F;pHH=krs;_.V("ytwiz_enable_debug_component_props")&&biI();I.install(UKj);I.install(SHK);I.install(vKM);I.install(jmR);I.install(b9K);I.install(EKL);I.install(GK8);_.V("kevlar_enable_mss_lazy_load")&&I.install(vbP);I.install(APK);I.install(dM8);if(!_.g5("IS_SHELL_LOAD")||_.V("kevlar_fetch_initial_data_promise_client")||_.V("sw_nav_preload_pbj")){var y=_.Tl(window.location.href);C=y&&y==="/watch";y=y&&y.match(tOR);C?I.install(EbK):
y?I.install(qCy):I.install(Zay)}else I.install(YHK);I.install(qHS);_.V("web_enable_prefetching_videos_on_home")&&I.install(O8Y);_.V("start_client_gcf")&&I.install(teR);I.install(DzS);(new B0d).increment("INSTALLED");I.install(tBy);I.install($KK);I.transition("initialized");qiK()})();
_._ModuleManager_initialize=function(I,C){if(!_.N9){if(!_.lA)return;_.O$z(_.lA())}_.N9.setAllModuleInfoString(I,C)};
_._ModuleManager_initialize('kevlar_base_module/sy1/sy2/sy3/sy4:2,3/sy5/sy6:2/sy7/sy8/sy9/sya/syb/kevlar_main_module:1,4,5,6,7,8,9/syc:2/syd:3,6,a,d/sye/syf:5/syg/h8y2qb:4,e,f,g,h/syh/JzFVk:d,g,h,j/syi:8/xwEKAe:3,9,f,h,l/syj:e/syk:1,b,e,f,j,l/nmfa2d:h,n,o/syl:7,o/sym:g,h,q/CF909:n,r/Tm0L3c:r/L3n37:g,h,n,q/iuT5Oc',['sy2','sy8','syc','sya','sy6','sy3','syi','syh','sye','syd','syb','sy1','syk','sy7','sy5','syl','syg','syf','syj','sym','sy9','sy4','iuT5Oc','L3n37','Tm0L3c','CF909','nmfa2d','xwEKAe','JzFVk','h8y2qb','kevlar_main_module']);
}catch(e){_._DumpException(e)}
try{
_.jT=function(I,C,y,k,F){var z={};C&&(z[C]=y);k?z.errorType=k:F&&(z.errorReason=F);_.b2(I,z);_.Yo()};
_.ly=function(I,C){_.CoX(I,_.Ee(C))};
_.Xr=function(I){var C=_.So();return _.eqY(C,I,1)};
_.pK({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 I=this.query;I&&(this.full||I[0]==="("||(I="("+I+")"),this._mq=window.matchMedia(I),this._add(),this.queryHandler(this._mq))},
queryHandler:function(I){this._setQueryMatches(I.matches)}});var wyR;var n5Y;var PIL=function(){};
_.u=PIL.prototype;_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._focusedChanged=function(){};
_.u._createRipple=function(){};
_.u.registered=function(){};
_.u._invalidChanged=function(){};
_.u.hasValidator=function(){};
_.u.validate=function(){};
_.u._getValidity=function(){};
_.u._requiredChanged=function(){};
_.u._valueChanged=function(){};
_.u._checkedChanged=function(){};
_.u._buttonStateChanged=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
PIL=_.pK({is:"tp-yt-paper-radio-button",_template:function(){if(n5Y!==void 0)return n5Y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;wyR===void 0&&(wyR=document.createElement("template"));var k=wyR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return n5Y=I},
behaviors:[_.ca5],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(){_.hn(this,function(){if(this.getComputedStyleValue("--calculated-paper-radio-button-ink-size").trim()==="-1px"){var I=parseFloat(this.getComputedStyleValue("--calculated-paper-radio-button-size").trim()),C=Math.floor(3*I);C%2!==I%2&&C++;this.updateStyles({"--paper-radio-button-ink-size":C+"px"})}})}});var LgH;var DLM;_.pK({_template:function(){if(DLM!==void 0)return DLM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;LgH===void 0&&(LgH=document.createElement("template"));var k=LgH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return DLM=I},
is:"tp-yt-paper-radio-group",behaviors:[_.VzP],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(I){var C=this._valueToItem(I);if(!C||!C.hasAttribute("disabled")){if(this.selected){C=this._valueToItem(this.selected);if(this.selected==I)if(this.allowEmptySelection)I="";else{C&&(C.checked=!0);return}C&&
(C.checked=!1)}_.gW.select.apply(this,[I]);this.fire("paper-radio-group-changed")}},
_activateFocusedItem:function(){this._itemActivate(this._valueForItem(this.focusedItem),this.focusedItem)},
_onUpKey:function(I){this._focusPrevious();I.preventDefault();this._activateFocusedItem()},
_onDownKey:function(I){this._focusNext();I.preventDefault();this._activateFocusedItem()},
_onLeftKey:function(I){_.NhY._onLeftKey.apply(this,arguments);this._activateFocusedItem()},
_onRightKey:function(I){_.NhY._onRightKey.apply(this,arguments);this._activateFocusedItem()},
_applySelection:function(){_.gW._applySelection.apply(this,arguments)},
_resetTabindices:function(){_.$r._resetTabindices.apply(this,arguments);this.items.forEach(function(I){I.removeAttribute("aria-selected")},this)}});var py8;_.jz("multiPageMenuSectionItems","compactLinkRenderer","ytd-compact-link-renderer");var $N=function(){return _.q.apply(this,arguments)||this};
_.R($N,_.q);_.u=$N.prototype;_.u.computeHasPrimaryIcon=function(I){return!(!I.icon&&!I.thumbnail)};
_.u.computeHasSecondary=function(I){return!(!I.secondaryIcon&&!I.secondaryNotificationText)};
_.u.computeHideSecondaryString=function(I){return!_.V("disable_hide_empty_secondary_string")&&!I.secondaryNotificationText};
_.u.computeCompactLinkStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeHasFitHeight=function(I){return I==="COMPACT_LINK_STYLE_TYPE_TVFILM_ENTITY_PROVIDER_ATTRIBUTION"};
_.u.isActiveEndpoint=function(I){return(I=this.get("commandMetadata.webCommandMetadata.url",I))?_.Tl(window.location.href)!=="/account_transfer_channel"&&_.Tl(window.location.href)!=="/gaia_link"&&_.Tl(window.location.href)!=="/channel_switcher"||I!=="/account"?_.Tl(window.location.href)===I:!0:!1};
_.u.onTap=function(){var I;((I=this.data)==null?0:I.serviceEndpoint)&&_.Tg(this.hostElement,[this.data.serviceEndpoint])};
$N.prototype.onTap=$N.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$N.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$N.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isActiveEndpoint(data.navigationEndpoint)"}),_.h("design:type",Boolean)],$N.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeCompactLinkStyle(data.style)"}),_.h("design:type",String)],$N.prototype,"compactLinkStyle",void 0);
_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",Object)],$N.prototype,"icon",void 0);_.E([_.d({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",Object)],$N.prototype,"secondaryIcon",void 0);_.E([_.d({computed:"computeHasSecondary(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],$N.prototype,"hasSecondary",void 0);_.E([_.d({computed:"computeHideSecondaryString(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],$N.prototype,"hideSecondaryString",void 0);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$N.prototype,"onTap",null);$N=_.E([_.m({is:"ytd-compact-link-renderer",disableElementRegistration:!0})],$N);
_.Z($N,"ytd-compact-link-renderer",function(){if(py8!==void 0)return py8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return py8=I},{mode:1});var QIL;_.jz("multiPageMenuSectionItems","toggleThemeCompactLinkRenderer","ytd-toggle-theme-compact-link-renderer");
var R3=function(){var I=_.q.apply(this,arguments)||this;I.role="link";I.tabindex="0";I.actionMap=_.V("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 I};
_.R(R3,_.q);_.u=R3.prototype;_.u.dataChanged=function(){this.data&&(this.data.label?this.label=this.data.label:this.label=_.fp()==="USER_INTERFACE_THEME_DARK"?this.data.toggledOnTitle:this.data.toggledOffTitle)};
_.u.getCurrentTheme=function(){return _.Sf()?document.documentElement.hasAttribute("dark")?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.fp()};
_.u.onThemeSelected=function(I,C){var y=I||C?I:_.G8(),k=(y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!y&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.iNK(_.Tl(window.location.href));_.Qw(0,165,I);_.Qw(0,174,C);this.prefs.save();k&&_.Fe(this.hostElement,"yt-dark-mode-toggled-action",[y]);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.u.onTap=function(){this.data.serviceEndpoint&&_.Tg(this.hostElement,[this.data.serviceEndpoint])};
_.u.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.u.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.u.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
R3.prototype.onTap=R3.prototype.onTap;R3.prototype.dataChanged=R3.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],R3.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],R3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.hw),_.h("design:type",Object)],R3.prototype,"paperItemBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],R3.prototype,"data",void 0);_.E([_.d({value:function(){return _.pA()}}),
_.h("design:type",_.aN)],R3.prototype,"prefs",void 0);_.E([_.d(),_.h("design:type",Object)],R3.prototype,"label",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],R3.prototype,"role",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],R3.prototype,"tabindex",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R3.prototype,"dataChanged",null);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],R3.prototype,"onTap",null);R3=_.E([_.m({is:"ytd-toggle-theme-compact-link-renderer",disableElementRegistration:!0})],R3);
_.Z(R3,"ytd-toggle-theme-compact-link-renderer",function(){if(QIL!==void 0)return QIL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return QIL=I},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.m5=function(I,C,y){_.W5(_.ceI)(void 0,I,C,y)};
_.Zc=function(I){return function(C,y){var k=I||y.replace(/([A-Z])/g,"-$1").toLowerCase();Object.defineProperty(C,y,{get:function(){var F;return this.$?this.$[k]:(F=_.uT(this))==null?void 0:F.querySelector("#"+k)},
enumerable:!0,configurable:!0})}};_.BU=function(I){I=I===void 0?!1:I;_.LL.call(this);this.pubSub_=new _.rC(I);_.kq(this,this.pubSub_)};
_.s0(_.BU,_.LL);_.BU.prototype.subscribe=function(I,C,y){return this.isDisposed()?0:this.pubSub_.subscribe(I,C,y)};
_.BU.prototype.unsubscribe=function(I,C,y){return this.isDisposed()?!1:this.pubSub_.unsubscribe(I,C,y)};
_.BU.prototype.unsubscribeByKey=function(I){return this.isDisposed()?!1:this.pubSub_.unsubscribeByKey(I)};
_.BU.prototype.publish=function(I,C){return this.isDisposed()?!1:this.pubSub_.publish.apply(this.pubSub_,arguments)};
}catch(e){_._DumpException(e)}
try{
var WfL=function(){_.jT("ypcRedeemFlowStarted")},k_=function(I){_.jT("ypcRedeemFlowFailed",void 0,void 0,void 0,I)},d6y=function(I,C,y){C&&y&&(I.videos.forEach(function(k){k.videoId===C&&(k.itemId=y)}),I.recommendedVideos.forEach(function(k){k.videoId===C&&(k.itemId=y)}))};var x6H;var qOK;/*

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
*/
_.pK({_template:function(){if(qOK!==void 0)return qOK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;x6H===void 0&&(x6H=document.createElement("template"));var k=x6H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return qOK=I},
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(I,C){var y=this._resolveSrc(I);y!==this._resolvedSrc&&(this._resolvedSrc="",this.$.img.removeAttribute("src"),this.$.sizedImgDiv.style.backgroundImage="",I===""||C?this._setLoading(!1):(this._resolvedSrc=y,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 I=this.$.sizedImgDiv.style,C=this.$.placeholder.style;I.backgroundSize=C.backgroundSize=this.sizing;I.backgroundPosition=C.backgroundPosition=this.sizing?this.position:"";I.backgroundRepeat=C.backgroundRepeat=this.sizing?"no-repeat":""},
_resolveSrc:function(I){I=_.so(I,this.$.baseURIAnchor.href);I.length>=2&&I[0]==="/"&&I[1]!=="/"&&(I=(location.origin||location.protocol+"//"+location.host)+I);return I}});var m6H;var ZrL;_.pK({_template:function(){if(ZrL!==void 0)return ZrL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;m6H===void 0&&(m6H=document.createElement("template"));var k=m6H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return ZrL=I},
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(I){return I?"false":"true"},
_headingChanged:function(I){var C=this.getAttribute("heading"),y=this.getAttribute("aria-label");typeof y==="string"&&y!==C||this.setAttribute("aria-label",I)},
_computeHeadingClass:function(I){return I?" over-image":""},
_computeAnimated:function(I){return I}});var BjB=new _.J("addRendererToItemSectionAction");var EwM;var Fc=function(){return _.q.apply(this,arguments)||this};
_.R(Fc,_.q);Fc.prototype.configureRendererStamper=function(){return{"data.actionMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fc.prototype,"rendererBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Fc.prototype,"dismissibleItemBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Fc.prototype,"rendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fc.prototype,"data",void 0);Fc=_.E([_.m({is:"ytd-comment-history-entry-renderer",disableElementRegistration:!0})],Fc);
_.Z(Fc,"ytd-comment-history-entry-renderer",function(){if(EwM!==void 0)return EwM;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return EwM=I},{mode:1});var hHL;_.jz("itemSectionRenderer","notificationRenderer","ytd-notification-renderer");_.jz("multiPageMenuSectionItems","notificationRenderer","ytd-notification-renderer");var uM=function(){return _.q.apply(this,arguments)||this};
_.R(uM,_.q);_.u=uM.prototype;_.u.configureRendererStamper=function(){return{"data.contextualMenu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.highPriorityNotificationActionButton":{id:"call-to-action",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.onKeyUp=function(I){if(I.keyCode===13)this.onTap()};
_.u.onTap=function(){this.data.recordClickEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.recordClickEndpoint,{form:{element:this.hostElement}});var I=this.data.navigationEndpoint;I&&_.l(I,_.R$)&&_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})};
_.u.readChanged=function(){var I;_.a_(this.hostElement,"unread",!((I=this.data)==null?0:I.read))};
_.u.dataChanged=function(){this.data&&_.a_(this.hostElement,"high-priority-notification",!!this.data.highPriorityNotification)};
_.u.computeThumbnailSize=function(){var I;return((I=this.data)==null?0:I.highPriorityNotification)?32:48};
_.u.getEndpointURL=function(I){return I&&!_.l(I,_.R$)?this.componentBehavior.computeHref_(I):null};
_.u.getEndpointData=function(I){return I&&!_.l(I,_.R$)?I:null};
uM.prototype.computeThumbnailSize=uM.prototype.computeThumbnailSize;uM.prototype.dataChanged=uM.prototype.dataChanged;uM.prototype.readChanged=uM.prototype.readChanged;uM.prototype.onKeyUp=uM.prototype.onKeyUp;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],uM.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],uM.prototype,"data",void 0);_.E([_.d({computed:"computeThumbnailSize(data.highPriorityNotification)"}),_.h("design:type",Number)],uM.prototype,"thumbnailSize",void 0);_.E([_.km("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],uM.prototype,"onKeyUp",null);
_.E([_.FI("data.read"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uM.prototype,"readChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uM.prototype,"dataChanged",null);_.E([_.FI("data.highPriorityNotification"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uM.prototype,"computeThumbnailSize",null);
uM=_.E([_.m({is:"ytd-notification-renderer",disableElementRegistration:!0})],uM);
_.Z(uM,"ytd-notification-renderer",function(){if(hHL!==void 0)return hHL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hHL=I},{mode:1});var U6L;var z3=function(){return _.q.apply(this,arguments)||this};
_.R(z3,_.q);z3.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"}}}};
z3.prototype.computeActionButtonClass=function(I){return!I.actionButtons||I.actionButtons.length<=1?"single-button":I.description?"vertical-buttons":"horizontal-buttons"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],z3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],z3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],z3.prototype,"data",void 0);z3=_.E([_.m({is:"ytd-playlist-show-metadata-renderer",disableElementRegistration:!0})],z3);
_.Z(z3,"ytd-playlist-show-metadata-renderer",function(){if(U6L!==void 0)return U6L;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return U6L=I},{mode:1});var HrY;_.jz("itemSectionRenderer","purchaseItemRenderer","ytd-purchase-item-renderer");var T3=function(){return _.q.apply(this,arguments)||this};
_.R(T3,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],T3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],T3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],T3.prototype,"data",void 0);T3=_.E([_.m({is:"ytd-purchase-item-renderer",disableElementRegistration:!0})],T3);
_.Z(T3,"ytd-purchase-item-renderer",function(){if(HrY!==void 0)return HrY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HrY=I},{mode:1});var tSK;var JQS={};JQS.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(I){if(I)return I.replace(this.LAYOUT_STYLE_PREFIX_,"").replace(/_/g,"-").toLowerCase()},
computeRole_:function(I){if(I==="SIMPLE_TEXT_LAYOUT_STYLE_PAID_SUBSCRIPTION_TITLE")return"heading"}};_.jz("itemSectionRenderer","simpleTextSectionRenderer","ytd-simple-text-section-renderer");var cY=function(){return _.q.apply(this,arguments)||this};
_.R(cY,_.q);cY.prototype.onYtNavigate=function(I){var C=this.openPopupBehavior.getNavigationEndpointPopupAction(I.detail.endpoint);C&&(I.stopPropagation(),this.openPopupBehavior.openPopup(C))};
cY.prototype.onYtNavigate=cY.prototype.onYtNavigate;_.E([_.g(JQS.YtSimpleTextSectionBehavior),_.h("design:type",Object)],cY.prototype,"ytSimpleTextSectionBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cY.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],cY.prototype,"openPopupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cY.prototype,"data",void 0);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],cY.prototype,"onYtNavigate",null);cY=_.E([_.m({is:"ytd-simple-text-section-renderer",disableElementRegistration:!0})],cY);
_.Z(cY,"ytd-simple-text-section-renderer",function(){if(tSK!==void 0)return tSK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tSK=I},{mode:1});var Orj;_.jz("itemSectionRenderer","unlimitedPageFeatureInfoRenderer","ytd-unlimited-page-feature-info-renderer");var eh=function(){return _.q.apply(this,arguments)||this};
_.R(eh,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eh.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eh.prototype,"data",void 0);eh=_.E([_.m({is:"ytd-unlimited-page-feature-info-renderer",disableElementRegistration:!0})],eh);
_.Z(eh,"ytd-unlimited-page-feature-info-renderer",function(){if(Orj!==void 0)return Orj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Orj=I},{mode:1});var amy;var MSY;var rG=function(){return _.q.apply(this,arguments)||this};
_.R(rG,_.q);rG.prototype.dataChanged=function(){if(this.data){var I=this.get("background.thumbnailLandscapePortraitRenderer.portrait.thumbnails",this.data);I&&(I=_.E5(I,screen.width),this.hostElement.style.backgroundImage="url("+I+")")}};
rG.prototype.dataChanged=rG.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rG.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rG.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rG.prototype,"dataChanged",null);rG=_.E([_.m({is:"ytd-post-redemption-section-renderer",disableElementRegistration:!0})],rG);
_.Z(rG,"ytd-post-redemption-section-renderer",function(){if(MSY!==void 0)return MSY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return MSY=I},{mode:1});var I6R;var iM=function(){return _.q.apply(this,arguments)||this};
_.R(iM,_.q);iM.prototype.configureRendererStamper=function(){return{"data.sections":{id:"contents",mapping:{postRedemptionSectionRenderer:{component:"ytd-post-redemption-section-renderer",noInjection:!0}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iM.prototype,"data",void 0);iM=_.E([_.m({is:"ytd-ypc-post-redemption-renderer",disableElementRegistration:!0})],iM);
_.Z(iM,"ytd-ypc-post-redemption-renderer",function(){if(I6R!==void 0)return I6R;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return I6R=I},{mode:1});_.jz("itemSectionRenderer","redeemCodeRenderer","ytd-redeem-code-renderer");var wG=function(){var I=_.q.apply(this,arguments)||this;I.MIN_CODE_LENGTH=12;I.MAX_CODE_LENGTH=24;return I};
_.R(wG,_.q);_.u=wG.prototype;_.u.configureRendererStamper=function(){return{postRedemptionRenderer:{id:"success-page",mapping:{ypcPostRedemptionRenderer:"ytd-ypc-post-redemption-renderer"}}}};
_.u.created=function(){this.riskService=new _.fOz;this.loadPaymentThenable=_.KK9(_.Aq("YPC_MB_URL"))};
_.u.ready=function(){var I=this;this.code.addEventListener("keypress",function(C){I.onCodeInputKeypress(C)})};
_.u.dataChanged=function(){var I=this;this.redeemButtonDisabled=!0;this.observer=new MutationObserver(function(C){C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,y.type==="attributes"&&y.attributeName==="dark"&&I.updateBackground()});
this.observer.observe(document.documentElement,{attributes:!0});this.updateBackground()};
_.u.updateBackground=function(){if(document.documentElement.hasAttribute("dark"))this.hostElement.style.setProperty("background-image","none");else{var I=this.computeImageUrl(this.data.thumbnail);this.hostElement.style.setProperty("background-image","url("+I+")")}};
_.u.computeRedeemButton=function(I){(I=this.get("redeemButton.buttonRenderer",I))&&(I=Object.assign({},I,{serviceEndpoint:void 0}));return I};
_.u.onRedeemButtonTap=function(I){I.stopPropagation();WfL();this.redeemCode()};
_.u.redeemCode=function(){var I=this;this.isLoading=!0;var C=this.riskService.init();_.QZ([C,this.loadPaymentThenable]).then(function(){var y=I.data.redeemButton.buttonRenderer.serviceEndpoint,k=_.S4m(),F=payments.business.integration.ClientTokenFactory.createClientToken(_.l(y,_.ei5).countryCode,k);k={c:I.code.value.trim(),rd:window.btoa(k),ctk:F};y&&(_.V("web_ytd_redeem_code_renderer_command_resolver_ks")?_.Tg(I.hostElement,[y,k]):_.N().resolve(_.ID).resolveCommand(y,{form:Object.assign({},k,{element:I.hostElement})}))},
function(){I.showGenericError();
k_("YPC_ERROR_REASON_RISK_LIB_LOAD_FAILURE")}).thenCatch(function(){_.v5(Error("Tl"))})};
_.u.onYtServiceRequestCompleted=function(I){I.stopPropagation();this.isLoading=!1;var C,y;this.errorMessage=(C=I.detail)==null?void 0:(y=C.data)==null?void 0:y.errorMessage;var k,F;this.postRedemptionRenderer=(k=I.detail)==null?void 0:(F=k.data)==null?void 0:F.renderer;var z,c;if(I=(z=I.detail)==null?void 0:(c=z.data)==null?void 0:c.redirectEndpoint)this.isLoading=!0,_.k3(this.hostElement,"yt-navigate",{endpoint:I});this.errorMessage?k_("YPC_ERROR_REASON_REDEEM_INNERTUBE_FAILURE"):(this.postRedemptionRenderer||
I)&&_.jT("ypcRedeemFlowSucceeded")};
_.u.onYtServiceRequestError=function(I){I.stopPropagation();this.isLoading=!1;if(I=this.get("detail.error.message",I))this.errorMessage=_.Ee(I);k_("YPC_ERROR_REASON_YPC_REDEEM_CODE_RPC_FAILURE")};
_.u.onInvokeInstrumentManagerActionCompleted=function(I){I.stopPropagation();this.redeemCode()};
_.u.onInvokeInstrumentManagerActionError=function(I){I.stopPropagation();this.isLoading=!1;switch(this.get("detail.error.errorCode",I)){case "instrumentManagerLoadError":this.showGenericError();k_("YPC_ERROR_REASON_INST_MANAGER_LOAD_FAILURE");break;case "instrumentManagerCallbackError":this.showGenericError();k_("YPC_ERROR_REASON_INST_MANAGER_CALLBACK_FAILURE");break;case "instrumentManagerCancelled":_.jT("ypcRedeemFlowCancelled")}};
_.u.onInput=function(){var I=this;_.KK(this,"onInput",function(){var C=I.code.value.trim();I.redeemButtonDisabled=C.length<I.MIN_CODE_LENGTH||C.length>I.MAX_CODE_LENGTH},200)};
_.u.onCodeInputKeypress=function(I){I.keyCode!==13||this.redeemButtonDisabled||this.isLoading||(WfL(),this.redeemCode())};
_.u.computeImageUrl=function(I){return I?_.E5(I.thumbnails,600):null};
_.u.showGenericError=function(){this.isLoading=!1;this.errorMessage=this.get("errorMessage",this.data)};
wG.prototype.onInvokeInstrumentManagerActionError=wG.prototype.onInvokeInstrumentManagerActionError;wG.prototype.onInvokeInstrumentManagerActionCompleted=wG.prototype.onInvokeInstrumentManagerActionCompleted;wG.prototype.onYtServiceRequestError=wG.prototype.onYtServiceRequestError;wG.prototype.onYtServiceRequestCompleted=wG.prototype.onYtServiceRequestCompleted;wG.prototype.dataChanged=wG.prototype.dataChanged;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wG.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wG.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wG.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],wG.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Boolean)],wG.prototype,"redeemButtonDisabled",void 0);
_.E([_.d(),_.h("design:type",Object)],wG.prototype,"errorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],wG.prototype,"postRedemptionRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],wG.prototype,"observer",void 0);_.E([_.z$("#code"),_.h("design:type",HTMLInputElement)],wG.prototype,"code",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wG.prototype,"dataChanged",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wG.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wG.prototype,"onYtServiceRequestError",null);
_.E([_.km("yt-invoke-instrument-manager-action-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wG.prototype,"onInvokeInstrumentManagerActionCompleted",null);_.E([_.km("yt-invoke-instrument-manager-action-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wG.prototype,"onInvokeInstrumentManagerActionError",null);wG=_.E([_.m({is:"ytd-redeem-code-renderer",disableElementRegistration:!0})],wG);
_.Z(wG,"ytd-redeem-code-renderer",function(){if(amy!==void 0)return amy;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return amy=I},{mode:1});var CNj;_.jz("itemSectionRenderer","channelAboutFullMetadataRenderer","ytd-channel-about-metadata-renderer");var nB=function(){var I=_.q.apply(this,arguments)||this;I.businessEmailDisplayState="HIDE_SECTION";return I};
_.R(nB,_.q);_.u=nB.prototype;_.u.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}}}}}};
_.u.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"};
_.u.detached=function(){this.businessEmailErrorMessage=this.businessEmail=void 0;this.businessEmailDisplayState="HIDE_SECTION"};
_.u.onBusinessEmailClick=function(){this.data&&(this.data.bypassBusinessEmailCaptcha?this.businessEmailDisplayState="BUSINESS_EMAIL":(_.W$("https://www.google.com/recaptcha/api.js?trustedtypes=true"),this.businessEmailDisplayState="CAPTCHA"))};
_.u.onYtServiceRequestCompleted=function(I){var C;if((C=I.detail.data)==null?0:C.businessEmail)this.businessEmail=I.detail.data.businessEmail,this.businessEmailDisplayState="BUSINESS_EMAIL";else{var y;if((y=I.detail.data)==null?0:y.errorMessage)this.businessEmailErrorMessage=I.detail.data.errorMessage,this.businessEmailDisplayState="ERROR_MESSAGE"}};
_.u.computeEmailHref=function(I){return"mailto:"+I};
_.u.computeSafeUrl=function(I){if(I)return _.ra(I)};
_.u.onBusinessEmailCaptchaSubmit=function(){var I;(I=this.data)!=null&&I.onBusinessEmailRevealClickCommand&&(I=this.JSC$18931_captchaTextarea.value)&&(I={recaptcha_response_token:I,channel_id:this.data.channelId},_.N().resolve(_.ID).resolveCommand(this.data.onBusinessEmailRevealClickCommand,{form:Object.assign({},I,{element:this.hostElement})}))};
_.u.recaptchaSiteKey=function(){return"6Lf39AMTAAAAALPbLZdcrWDa8Ygmgk_fmGmrlRog"};
_.H1.Object.defineProperties(nB.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 I,C;return!((I=this.data)==null||!I.primaryLinks)&&!((C=this.data)==null?0:C.links)&&this.data.primaryLinks.every(function(y){return y.displayUrl})}},
shouldShowLegacyLinks:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.primaryLinks)&&!((C=this.data)==null?0:C.links)&&!this.shouldShowNewLinks}}});
nB.prototype.onYtServiceRequestCompleted=nB.prototype.onYtServiceRequestCompleted;nB.prototype.dataChanged=nB.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],nB.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.z$("#g-recaptcha-response"),_.h("design:type",HTMLTextAreaElement)],nB.prototype,"JSC$18931_captchaTextarea",void 0);_.E([_.d(),_.h("design:type",Object)],nB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],nB.prototype,"businessEmailDisplayState",void 0);_.E([_.d(),_.h("design:type",String)],nB.prototype,"businessEmail",void 0);_.E([_.d(),_.h("design:type",String)],nB.prototype,"businessEmailErrorMessage",void 0);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nB.prototype,"hideDetailsSection",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nB.prototype,"dataChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nB.prototype,"shouldShowNewLinks",null);_.E([_.v("data","shouldShowLinks"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nB.prototype,"shouldShowLegacyLinks",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],nB.prototype,"onYtServiceRequestCompleted",null);nB=_.E([_.m({is:"ytd-channel-about-metadata-renderer",disableElementRegistration:!0})],nB);
_.Z(nB,"ytd-channel-about-metadata-renderer",function(){if(CNj!==void 0)return CNj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CNj=I},{mode:1});var s48;_.jz("itemSectionRenderer","channelFeaturedContentRenderer","ytd-channel-featured-content-renderer");var PY=function(){return _.q.apply(this,arguments)||this};
_.R(PY,_.q);PY.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"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PY.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],PY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PY.prototype,"data",void 0);PY=_.E([_.m({is:"ytd-channel-featured-content-renderer",disableElementRegistration:!0})],PY);
_.Z(PY,"ytd-channel-featured-content-renderer",function(){if(s48!==void 0)return s48;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return s48=I},{mode:1});var oDM;_.jz("itemSectionRenderer","clarificationRenderer","ytd-clarification-renderer");var LB=function(){var I=_.q.apply(this,arguments)||this;I.roundContainer=!0;I.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return I};
_.R(LB,_.q);_.u=LB.prototype;_.u.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u.dataChanged=function(){this.imageWidth=this.imageHeight=24;var I=this.data;I.style==="CLARIFICATION_RENDERER_STYLE_MEDIUM"?this.imageWidth=this.imageHeight=80:!I.style&&I.image&&I.image.thumbnails.length&&(I=I.image.thumbnails[0],this.imageWidth=I.width||0,this.imageHeight=I.height||0)};
_.u.computeSource=function(I){return I.secondarySource?_.hS(I.secondarySource):_.hS(I.source)};
_.u.computeClarifyStyle=function(I){return I?I.replace("CLARIFICATION_RENDERER_STYLE_","").toLowerCase():""};
_.u.isLargeStyle=function(I){return I==="CLARIFICATION_RENDERER_STYLE_LARGE"};
_.u.computeBackgroundStyle=function(I){return I?I.replace("CLARIFICATION_RENDERER_BACKGROUND_","").toLowerCase():""};
_.u.computeHasActionButton=function(I){return!!I.actionButton};
_.u.computeHasBottomSection=function(I){return!!I.ctaHasBottomSection};
_.u.computeIsSourceMissing=function(I){return I.ctaHasBottomSection===!1?!0:I&&this.computeSource(I)?!1:!0};
_.u.computeSecondaryEndpoint=function(I){return I.secondaryEndpoint||I.endpoint};
LB.prototype.dataChanged=LB.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],LB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],LB.prototype,"imageWidth",void 0);_.E([_.d(),_.h("design:type",Number)],LB.prototype,"imageHeight",void 0);
_.E([_.d({computed:"computeSecondaryEndpoint(data)"}),_.h("design:type",Object)],LB.prototype,"secondaryEndpoint",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasActionButton(data)"}),_.h("design:type",Boolean)],LB.prototype,"hasActionButton",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasBottomSection(data)"}),_.h("design:type",Boolean)],LB.prototype,"hasBottomSection",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsSourceMissing(data)"}),_.h("design:type",Boolean)],LB.prototype,"missingSource",void 0);_.E([_.d({computed:"computeIcon_(data.icon)"}),_.h("design:type",String)],LB.prototype,"icon",void 0);_.E([_.d({computed:"computeIcon_(data.secondaryIcon)"}),_.h("design:type",String)],LB.prototype,"secondaryIcon",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeClarifyStyle(data.style)"}),_.h("design:type",String)],LB.prototype,"clarifyStyle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeBackgroundStyle(data.background)"}),_.h("design:type",String)],LB.prototype,"backgroundStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],LB.prototype,"roundContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],LB.prototype,"amsterdamEnabled",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LB.prototype,"dataChanged",null);
LB=_.E([_.m({is:"ytd-clarification-renderer",disableElementRegistration:!0})],LB);
_.Z(LB,"ytd-clarification-renderer",function(){if(oDM!==void 0)return oDM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oDM=I},{mode:1});var y1R;var kcR;var Dp=function(){var I=_.q.apply(this,arguments)||this;I.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return I};
_.R(Dp,_.q);_.u=Dp.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}},"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
_.u.computeIcon=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.u.computeUseContacts=function(I){return!!I.contacts&&I.contacts.length>0};
_.u.computePhoneContact=function(I){var C,y;return(C=I.contacts)==null?void 0:(y=C.find(function(k){var F;return(k==null?void 0:(F=k.icon)==null?void 0:F.iconType)==="PHONE"}))==null?void 0:y.actionText};
_.u.computeSmsContact=function(I){var C,y;return(C=I.contacts)==null?void 0:(y=C.find(function(k){var F;return(k==null?void 0:(F=k.icon)==null?void 0:F.iconType)==="SMS"}))==null?void 0:y.actionText};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Dp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Dp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Dp.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Dp.prototype,"amsterdamEnabled",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeUseContacts(data)"}),_.h("design:type",Boolean)],Dp.prototype,"useContacts",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computePhoneContact(data)"}),_.h("design:type",String)],Dp.prototype,"phoneContact",void 0);Dp=_.E([_.m({is:"ytd-single-action-emergency-support-renderer",disableElementRegistration:!0})],Dp);
_.Z(Dp,"ytd-single-action-emergency-support-renderer",function(){if(kcR!==void 0)return kcR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return kcR=I},{mode:1});_.jz("itemSectionRenderer","emergencyOneboxRenderer","ytd-emergency-onebox-renderer");var pB=function(){var I=_.q.apply(this,arguments)||this;I.roundedContainer=!0;I.amsterdamEnabled=_.V("enable_desktop_amsterdam_info_panels");return I};
_.R(pB,_.q);pB.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.firstOption":{id:"first-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}},"data.secondOption":{id:"second-option",mapping:{singleActionEmergencySupportRenderer:{component:"ytd-single-action-emergency-support-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pB.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pB.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],pB.prototype,"amsterdamEnabled",void 0);
pB=_.E([_.m({is:"ytd-emergency-onebox-renderer",disableElementRegistration:!0})],pB);
_.Z(pB,"ytd-emergency-onebox-renderer",function(){if(y1R!==void 0)return y1R;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return y1R=I},{mode:1});var FGj;_.jz("itemSectionRenderer","exploratoryResultsRenderer","ytd-exploratory-results-renderer");var Q9=function(){return _.q.apply(this,arguments)||this};
_.R(Q9,_.q);Q9.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{channelRenderer:"ytd-channel-renderer",playlistRenderer:"ytd-playlist-renderer",showRenderer:"ytd-show-renderer",videoRenderer:"ytd-video-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Q9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Q9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Q9.prototype,"data",void 0);Q9=_.E([_.m({is:"ytd-exploratory-results-renderer",disableElementRegistration:!0})],Q9);
_.Z(Q9,"ytd-exploratory-results-renderer",function(){if(FGj!==void 0)return FGj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return FGj=I},{mode:1});var uMR;_.jz("itemSectionRenderer","feedbackElicitationSingleQuestionRenderer","ytd-feedback-elicitation-single-question-renderer");var Na=function(){var I=_.q.apply(this,arguments)||this;I.messageData=null;return I};
_.R(Na,_.q);_.u=Na.prototype;_.u.onServiceRequestCompleted=function(I,C){I=C.actions||[];C=0;for(var y=I.length;C<y;C++){var k=I[C],F=void 0,z=void 0;if((F=_.l(k,_.DN))==null?0:(z=F.item)==null?0:z.messageRenderer)this.messageData=_.l(k,_.DN).item.messageRenderer}};
_.u.dataChanged=function(){var I=this.data;this.hostElement.hidden=!1;_.a_(this.hostElement,"is-channel",I&&!I.avatarIs169);this.submitButton.disabled=!0;this.selectedResponseIndex=void 0};
_.u.computeThumbnailWidth=function(I){return I?126:56};
_.u.onSelectedResponseIndexChange=function(){this.selectedResponseIndex!==void 0&&(this.submitButton.disabled=!1)};
_.u.onSubmitTap=function(){var I=this.data,C=this.selectedResponseIndex;I!==void 0&&C!==void 0&&(I=I.responses[C],I.responseData&&(_.V("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.Tg(this.hostElement,[I.responseData]):_.N().resolve(_.ID).resolveCommand(I.responseData,{form:{element:this.hostElement}})))};
_.u.onDismissTap=function(){this.hostElement.hidden=!0;var I=this.data;I!==void 0&&I.dismissalEndpoint&&(_.V("web_ytd_feedback_elicitation_single_question_renderer_command_resolver_ks")?_.Tg(this.hostElement,[I.dismissalEndpoint]):_.N().resolve(_.ID).resolveCommand(I.dismissalEndpoint,{form:{element:this.hostElement}}))};
_.u.updateSelectedResponseIndexFromBinding=function(I){this.selectedResponseIndex=I.detail.value};
Na.prototype.onSelectedResponseIndexChange=Na.prototype.onSelectedResponseIndexChange;Na.prototype.dataChanged=Na.prototype.dataChanged;Na.prototype.onServiceRequestCompleted=Na.prototype.onServiceRequestCompleted;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Na.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Na.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Na.prototype,"messageData",void 0);
_.E([_.d(),_.h("design:type",Number)],Na.prototype,"selectedResponseIndex",void 0);_.E([_.z$("#submit-button"),_.h("design:type",HTMLButtonElement)],Na.prototype,"submitButton",void 0);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],Na.prototype,"onServiceRequestCompleted",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Na.prototype,"dataChanged",null);
_.E([_.FI("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Na.prototype,"onSelectedResponseIndexChange",null);Na=_.E([_.m({is:"ytd-feedback-elicitation-single-question-renderer",disableElementRegistration:!0})],Na);
_.Z(Na,"ytd-feedback-elicitation-single-question-renderer",function(){if(uMR!==void 0)return uMR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uMR=I},{mode:1});var zKM;var V9=function(){return _.q.apply(this,arguments)||this};
_.R(V9,_.q);V9.prototype.computeThumbnailWidth=function(I){return I?602:428};
V9.prototype.updateWideFromBinding=function(I){this.wide=I.detail.value};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],V9.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],V9.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],V9.prototype,"wide",void 0);V9=_.E([_.m({is:"ytd-newspaper-hero-video-renderer",disableElementRegistration:!0})],V9);
_.Z(V9,"ytd-newspaper-hero-video-renderer",function(){if(zKM!==void 0)return zKM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return zKM=I},{mode:1});var TgP;var jh=function(){return _.q.apply(this,arguments)||this};
_.R(jh,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jh.prototype,"rendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jh.prototype,"data",void 0);jh=_.E([_.m({is:"ytd-newspaper-mini-video-renderer",disableElementRegistration:!0})],jh);
_.Z(jh,"ytd-newspaper-mini-video-renderer",function(){if(TgP!==void 0)return TgP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TgP=I},{mode:1});var c1L;_.jz("itemSectionRenderer","newspaperRenderer","ytd-newspaper-renderer");var lM=function(){return _.q.apply(this,arguments)||this};
_.R(lM,_.q);lM.prototype.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary-contents",mapping:{newspaperHeroVideoRenderer:"ytd-newspaper-hero-video-renderer"}},"data.secondaryContents":{id:"secondary-contents",mapping:{newspaperMiniVideoRenderer:"ytd-newspaper-mini-video-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lM.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lM.prototype,"data",void 0);lM=_.E([_.m({is:"ytd-newspaper-renderer",disableElementRegistration:!0})],lM);
_.Z(lM,"ytd-newspaper-renderer",function(){if(c1L!==void 0)return c1L;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return c1L=I},{mode:1});var eKY;_.jz("itemSectionRenderer","playlistVideoListRenderer","ytd-playlist-video-list-renderer");var Xc=function(){var I=_.q.apply(this,arguments)||this;I.isSegment=!1;I.actionMap={"yt-add-renderer-to-item-section-action":"handleAddRendererToItemSectionAction","yt-playlist-remove-videos-action":"handlePlaylistRemoveVideosAction","yt-update-playlist-action":"handleUpdatePlaylistAction"};I.nextContinuation={continuationType:"playlistVideoListContinuation"};return I};
_.R(Xc,_.q);_.u=Xc.prototype;_.u.attached=function(){_.N();var I;(I=_.N().resolve(_.aU(_.vb)))!=null&&(I.playlistVideoListElement=this.hostElement)};
_.u.detached=function(){var I;(I=_.N().resolve(_.aU(_.vb)))!=null&&(I.playlistVideoListElement=void 0);I=_.N().resolve(_.aU(_.hv));_.V("web_enable_voting_animation")&&I&&(I.parentElem=void 0,I.videos=[],I.continuationsPresent=!1,I.showRefreshPill=!1)};
_.u.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"}}}}}};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.u.dataChanged=function(){var I=_.N().resolve(_.aU(_.hv));if(_.V("web_enable_voting_animation")&&this.data&&I){var C=_.f(this.hostElement).querySelector("#contents");C&&(I.parentElem=C);I.addVideos(this.data.contents)}_.brb(this.ytReorderableBehavior)};
_.u.onRendererstamperFinished=function(){this.canReorder&&_.YO8(this.ytReorderableBehavior,_.f(this.hostElement).querySelector("#contents"),document.documentElement,"playlist-drag-handle")};
_.u.onPlaylistReloading=function(){this.isReloading=!0};
_.u.onUpdateSetVideoId=function(I){if(I.detail&&this.data&&this.data.contents){var C=I.detail;I=this.data.contents.findIndex(function(F){var z;return((z=F.playlistVideoRenderer)==null?void 0:z.videoId)===C.videoId});
if(!(I<0)&&C.setVideoId&&(this.set("data.contents."+I+".playlistVideoRenderer.setVideoId",C.setVideoId),_.V("web_enable_voting_animation"))){var y;if(I=_.l((y=this.data.contents[I].playlistVideoRenderer)==null?void 0:y.engagementBar,_.oe9)){var k;(k=I.actions)==null||k.forEach(function(F){if(F=_.l(F,_.ydI))F.itemId=C.setVideoId})}(y=_.N().resolve(_.aU(_.hv)))&&d6y(y,C.videoId,C.setVideoId)}}};
_.u.computeContentsClass=function(I){return I?"reloading":""};
_.u.computeIsSortable=function(I,C){return I&&C>0&&!this.isSegment&&!_.V("shorts_in_playlists_web")};
_.u.computeIsEditable=function(I){return I};
_.u.computeCanReorder=function(I){return I};
_.u.handlePlaylistRemoveVideosAction=function(I){if(this.get("playlistRemoveVideosAction.setVideoIds",I)&&this.data&&this.data.contents){I=_.l(I,_.KRw).setVideoIds;for(var C=this.data.contents.length-1;C>=0;){var y=this.data.contents[C].playlistVideoRenderer;y&&y.setVideoId&&I.includes(y.setVideoId)&&this.splice("data.contents",C,1);C--}_.Fe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.updateIndices()}};
_.u.updateIndices=function(){if(this.data&&this.data.contents)for(var I=0;I<this.data.contents.length;I++)this.set("data.contents."+I+".playlistVideoRenderer.index",_.Ee(String(I+1)))};
_.u.handleDrop=function(I){I=I.currDragItem;var C=_.dH(I.parentNode.childNodes,I),y=this.data.contents.splice(Number(_.hS(I.data.index))-1,1)[0];this.data.contents.splice(C,0,y);C=C?this.get("contents."+(C-1)+".playlistVideoRenderer.setVideoId",this.data):void 0;this.updateIndices();I=this.buildReorderServiceEndpoint(I.data.setVideoId,C);this.ytComponentBehavior.resolveCommand(I)};
_.u.buildReorderServiceEndpoint=function(I,C){return this.data&&this.data.onReorderEndpoint?(this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.setVideoId",I),this.set("data.onReorderEndpoint.playlistEditEndpoint.actions.0.movedSetVideoIdPredecessor",C),this.data.onReorderEndpoint):null};
_.u.handleUpdatePlaylistAction=function(I){var C;(I=_.l((C=_.l(I,_.Ahd))==null?void 0:C.updatedRenderer,_.t_q))&&this.canReorder!==I.canReorder&&this.set("data.canReorder",I.canReorder);I&&I.contents&&(this.set("data.contents",I.contents),this.isReloading=!1);I&&I.continuations&&this.set("data.continuations",I.continuations)};
_.u.handleAddRendererToItemSectionAction=function(I){var C,y=(C=_.l(I,BjB))==null?void 0:C.renderer,k;y&&((k=_.l(I,BjB))==null?void 0:k.targetItemSection)===this.data.targetId&&(this.data.contents=this.data.contents||[],this.splice("data.contents",this.data.contents.length,0,y),I=_.N().resolve(_.aU(_.hv)),_.V("web_enable_voting_animation")&&I&&(y&&(C=_.svz(y))&&I.recommendedVideos.push({itemId:C,videoId:_.kaX(y),voteCount:_.FKm(y),voteSortTiebreaker:Date.now().toString()}),this.updateIndices()))};
_.u.isVotingEnabledOnPlaylist=function(I){if(!I)return!1;I=_.T(I);for(I=I.next();!I.done;I=I.next()){var C=void 0;return!!_.l((C=I.value.playlistVideoRenderer)==null?void 0:C.engagementBar,_.oe9)}return!1};
_.u.onAppendContinuationItemsActionFinished=function(){var I;this.isVotingEnabledOnPlaylist((I=this.data)==null?void 0:I.contents)&&(this.updateIndices(),I=_.N().resolve(_.aU(_.hv)),_.V("web_enable_voting_animation")&&I&&this.data&&I.addVideos(this.data.contents))};
_.u.updateVideoData=function(I){if(I.detail&&this.data&&this.data.contents){var C=I.detail;I=C.toIdx;var y=C.itemId,k=C.newVoteCount,F=C.voteStatus;C=C.hideItem;var z,c,r=(z=this.data)==null?void 0:(c=z.contents)==null?void 0:c.findIndex(function(p){return _.svz(p)===y});
if(!(r<0)){z=this.data.contents[r];var w;if((w=z.playlistVideoRenderer)==null?0:w.voteCount)z.playlistVideoRenderer.voteCount=k;var L;if(w=_.l((L=z.playlistVideoRenderer)==null?void 0:L.engagementBar,_.oe9)){var D;(D=w.actions)==null||D.forEach(function(p){(p=_.l(p,_.ydI))&&p.initialState&&(p.initialState.votes=k,p.initialState.status=F)})}this.data.contents.splice(r,1);
C||this.data.contents.splice(I,0,z);this.updateIndices()}}};
Xc.prototype.updateVideoData=Xc.prototype.updateVideoData;Xc.prototype.onAppendContinuationItemsActionFinished=Xc.prototype.onAppendContinuationItemsActionFinished;Xc.prototype.onUpdateSetVideoId=Xc.prototype.onUpdateSetVideoId;Xc.prototype.onPlaylistReloading=Xc.prototype.onPlaylistReloading;Xc.prototype.onRendererstamperFinished=Xc.prototype.onRendererstamperFinished;Xc.prototype.dataChanged=Xc.prototype.dataChanged;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Xc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Xc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Xc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],Xc.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.g(_.Gwe),_.h("design:type",Object)],Xc.prototype,"ytReorderableBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],Xc.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Xc.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Xc.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],Xc.prototype,"isReloading",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Xc.prototype,"isSegment",void 0);_.E([_.d({computed:"computeIsSortable(data.canReorder, data.contents.length)"}),_.h("design:type",Boolean)],Xc.prototype,"isSortable",void 0);_.E([_.d({computed:"computeIsEditable(data.isEditable)"}),_.h("design:type",Boolean)],Xc.prototype,"isEditable",void 0);_.E([_.d({computed:"computeCanReorder(data.canReorder)"}),_.h("design:type",Boolean)],Xc.prototype,"canReorder",void 0);
_.E([_.d({value:101}),_.h("design:type",Number)],Xc.prototype,"scrollMargin",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xc.prototype,"dataChanged",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xc.prototype,"onRendererstamperFinished",null);
_.E([_.km("yt-playlist-reloading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xc.prototype,"onPlaylistReloading",null);_.E([_.km("yt-update-set-video-id"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xc.prototype,"onUpdateSetVideoId",null);
_.E([_.km("yt-append-continuation-items-action-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Xc.prototype,"onAppendContinuationItemsActionFinished",null);_.E([_.km("yt-update-video-data-voting-animation"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Xc.prototype,"updateVideoData",null);Xc=_.E([_.m({is:"ytd-playlist-video-list-renderer",disableElementRegistration:!0})],Xc);
_.Z(Xc,"ytd-playlist-video-list-renderer",function(){if(eKY!==void 0)return eKY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return eKY=I},{mode:_.Ij("kevlar_poly_si_batch_j047")?1:2});var r1y;var $_=function(){return _.q.apply(this,arguments)||this};
_.R($_,_.q);$_.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"}}}}};
$_.prototype.onTextWrapperTap=function(I){var C=this.data&&this.data.navigationEndpoint;C&&!_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString()])&&_.k3(this.hostElement,"yt-navigate",{endpoint:C})};
$_.prototype.dataChanged=function(){var I=this.get("data.offerButton.buttonRenderer.serviceEndpoint");I&&I.commandMetadata&&_.l(I.commandMetadata,_.lv)&&_.l(I.commandMetadata,_.lv).fireAutomatically&&_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})};
$_.prototype.dataChanged=$_.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.KN),_.h("design:type",Object)],$_.prototype,"ytdLockupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],$_.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],$_.prototype,"biggerThumbsStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],$_.prototype,"leftAligned",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$_.prototype,"dataChanged",null);$_=_.E([_.m({disableElementRegistration:!0,is:"ytd-movie-renderer"})],$_);
_.Z($_,"ytd-movie-renderer",function(){if(r1y!==void 0)return r1y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return r1y=I},{mode:1});var iPL;var RZ=function(){var I=_.q.apply(this,arguments)||this;I.rounded=!0;I.pageAttachedTo=void 0;I.actionMap={"yt-signal-action-pause-player":"handleSignalActionPausePlayer"};return I};
_.R(RZ,_.q);RZ.prototype.attached=function(){this.pageAttachedTo=_.N().resolve(_.BP).getCurrentPage();_.k3(this.hostElement,"yt-player-attached",this.player)};
RZ.prototype.detached=function(){var I;if((I=this.pageAttachedTo)==null?0:I.hostElement)_.k3(this.pageAttachedTo.hostElement,"yt-player-detached",this.player),this.pageAttachedTo=void 0};
RZ.prototype.dataChanged=function(){var I;if((I=this.data)==null?0:I.videoId)I={video_id:this.data.videoId,autoplay:!0},!_.V("miniplayer_stop_channel_video_autoplay_killswitch")&&_.N().resolve(_.WJ).isMiniplayerActive()&&(I.pause_at_start=!0,I.autoplay=!1),this.player.loadVideoWithPlayerVars(I)};
RZ.prototype.handleSignalActionPausePlayer=function(){_.UZ().pause()};
RZ.prototype.dataChanged=RZ.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],RZ.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],RZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],RZ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],RZ.prototype,"rounded",void 0);_.E([_.z$("#player"),_.h("design:type",Object)],RZ.prototype,"player",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],RZ.prototype,"dataChanged",null);RZ=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-video-player-renderer"})],RZ);
_.Z(RZ,"ytd-channel-video-player-renderer",function(){if(iPL!==void 0)return iPL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return iPL=I},{mode:1});var wGS;var nDY;var PNB;var bM=function(){var I=_.q.apply(this,arguments)||this;I.playing=!1;I.playerId="ytd-default-promo-panel-renderer-inline-playback-renderer-"+_.ow(I);I.active=!1;return I};
_.R(bM,_.q);_.u=bM.prototype;_.u.detached=function(){this.stop()};
_.u.play=function(){var I=this,C,y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return I.active=!0,C=I.get("data.inlinePlaybackEndpoint.watchEndpoint"),y=C.videoId||I.data.videoId,k=C.startTimeSeconds||0,F=C.playerParams||null,_.V("kevlar_player_update_killswitch")?_.n(c,I.playerEl.update({args:{video_id:y,startSeconds:k,player_params:F}}),2):(I.playerEl.loadVideoWithPlayerVars({video_id:y,startSeconds:k,player_params:F,autoplay:!0}),c.jumpTo(2));if(c.nextAddress!=4)return _.n(c,I.playerEl.getPlayerPromise(),
4);z=c.yieldResult;z.unloadModule("annotations_module");z.addEventListener("onStateChange",function(r){I.onPlayerStateChange(r)});
_.oI(c)})};
_.u.onPlayerStateChange=function(I){if(this.active)switch(this.playing=I===1,I){case 1:_.k3(this.hostElement,"yt-default-promo-panel-renderer-playing");break;case 0:_.k3(this.hostElement,"yt-default-promo-panel-renderer-ended")}};
_.u.stop=function(){this.playerEl.stop();this.playing=this.active=!1};
_.u.resize=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.playerEl.getPlayerPromise(),2);C=y.yieldResult;C.setSize(NaN,NaN);_.oI(y)})};
_.E([_.d(),_.h("design:type",Object)],bM.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],bM.prototype,"playing",void 0);_.E([_.d(),_.h("design:type",Object)],bM.prototype,"playerId",void 0);_.E([_.z$("#player"),_.h("design:type",Object)],bM.prototype,"playerEl",void 0);bM=_.E([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer-inline-playback-renderer"})],bM);
_.Z(bM,"ytd-default-promo-panel-renderer-inline-playback-renderer",function(){if(PNB!==void 0)return PNB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return PNB=I},{mode:1});var LGS;var DQY;var Y_=function(){var I=_.q.apply(this,arguments)||this;I.width=0;return I};
_.R(Y_,_.q);_.u=Y_.prototype;_.u.attached=function(){this.isVideoPlaying=!1;this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit");this.videoEl.addEventListener("ended",_.sb(this,this.onEnded));this.mp4El.addEventListener("error",_.sb(this,this.onError))};
_.u.detached=function(){this.videoEl.removeEventListener("ended",_.sb(this,this.onEnded));this.mp4El.removeEventListener("error",_.sb(this,this.onError))};
_.u.play=function(){var I=this;if(this.mp4El.getAttribute("src")&&this.isMp4Supported()){this.videoEl.currentTime=0;this.videoEl.load();var C=this.videoEl.play();C?C.then(function(){I.handleVideoStartPlaying()}).catch(function(){_.k3(I.hostElement,"yt-video-thumbnail-not-playing")}):this.handleVideoStartPlaying()}else _.k3(this.hostElement,"yt-video-thumbnail-not-playing")};
_.u.handleVideoStartPlaying=function(){this.videoEl.classList.remove("hideit");this.placeholderEl.classList.add("hideit");this.isVideoPlaying=!0};
_.u.stop=function(){this.isVideoPlaying&&(this.showPlaceholder(),this.isVideoPlaying=!1,this.videoEl.pause(),this.videoEl.currentTime=0)};
_.u.dataChanged=function(){var I;if((I=this.data)==null?0:I.thumbnailPlaceholder)I=_.E5(this.data.thumbnailPlaceholder.thumbnails,this.width),this.placeholderEl.style.backgroundImage="url("+I+")";this.stop();this.autoplay&&this.play()};
_.u.showPlaceholder=function(){this.videoEl.classList.add("hideit");this.placeholderEl.classList.remove("hideit")};
_.u.onEnded=function(){this.stop();_.k3(this.hostElement,"yt-video-thumbnail-ended");this.loop&&this.play()};
_.u.onError=function(){_.k3(this.hostElement,"yt-video-thumbnail-error")};
_.u.isMp4Supported=function(){return!(!this.videoEl.canPlayType||!this.videoEl.canPlayType("video/mp4").replace(/no/,""))};
_.u.getVideoThumbnail=function(I){if(I&&I.length)return I[0]};
Y_.prototype.dataChanged=Y_.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],Y_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Y_.prototype,"animatePlaceholderOnEntrance",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Y_.prototype,"autoplay",void 0);_.E([_.d({computed:"getVideoThumbnail(data.videoThumbnails)"}),_.h("design:type",Object)],Y_.prototype,"videoThumbnail",void 0);
_.E([_.d(),_.h("design:type",Boolean)],Y_.prototype,"loop",void 0);_.E([_.d(),_.h("design:type",Boolean)],Y_.prototype,"isVideoPlaying",void 0);_.E([_.d(),_.h("design:type",Object)],Y_.prototype,"width",void 0);_.E([_.z$("#mp4"),_.h("design:type",HTMLElement)],Y_.prototype,"mp4El",void 0);_.E([_.z$("#placeholder"),_.h("design:type",HTMLElement)],Y_.prototype,"placeholderEl",void 0);_.E([_.z$("#video"),_.h("design:type",HTMLVideoElement)],Y_.prototype,"videoEl",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y_.prototype,"dataChanged",null);Y_=_.E([_.lT({is:"yt-video-as-thumbnail-details",disableElementRegistration:!0})],Y_);
_.Z(Y_,"yt-video-as-thumbnail-details",function(){if(DQY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;LGS===void 0&&(LGS=document.createElement("template"));var k=LGS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);DQY=I}I=DQY;return I},{mode:2});var G3=function(){var I=_.q.apply(this,arguments)||this;I.disableGridStateAware=!1;I.animationEnabled=_.V("enable_web_ketchup_hero_animation");I.transitioningOut=!1;I.narrow=!1;I.narrower=!1;I.isCarouselInFeed=!1;I.videoTimeoutJobId=0;I.panelTimeoutJobId=0;I.panelTimeoutJobStartMs=0;I.actionMap={"yt-window-resized":"onWindowResized"};return I};
_.R(G3,_.q);_.u=G3.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.created=function(){this.ytdGridStateAwareBehavior.gridStateAwareSizingElementSelector="#content"};
_.u.updateSize=function(){this.narrow=this.hostElement.clientHeight*16/9>this.hostElement.clientWidth;var I;this.player&&((I=this.data)==null?0:I.inlinePlaybackRenderer)&&this.player.resize();this.narrower=this.isNarrower();this.setScrimLayer(this.data)};
_.u.attached=function(){this.onWindowResized()};
_.u.detached=function(){this.clearTimeouts()};
_.u.onWindowResized=function(){this.updateSize()};
_.u.computePanelLayout=function(I){return I&&I.panelLayout||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.u.playVideo=function(){var I;this.video&&((I=this.data)==null?0:I.videoThumbnail)&&this.video.play();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.play()};
_.u.stopVideo=function(){var I;this.video&&((I=this.data)==null?0:I.videoThumbnail)&&this.video.stop();var C;this.player&&((C=this.data)==null?0:C.inlinePlaybackRenderer)&&this.player.stop()};
_.u.transitionOut=function(){var I=this;this.transitioningOut=!0;return new Promise(function(C){var y=function(){_.f(I.hostElement).querySelector("#action-button").removeEventListener("animationend",y);_.b$.cancelJob(k);C();I.transitioningOut=!1};
var k=_.NU(_.b$,y,1E3);_.f(I.hostElement).querySelector("#action-button").addEventListener("animationend",y);I.player&&(I.player.playing=!1)})};
_.u.computeMetadataOrder=function(I){return I&&I.metadataOrder&&I.metadataOrder!=="DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_UNSPECIFIED"?I.metadataOrder:"DEFAULT_PROMO_PANEL_RENDERER_METADATA_ORDER_TITLE_DESCRIPTION"};
_.u.computeByline=function(){return this.get("data.byline.defaultPromoPanelBylineRenderer")};
_.u.computeAvatarSize=function(I){return I&&I.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"?24:36};
_.u.onContentClick=function(I){if(!_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString()])){var C;if((C=this.data)==null?0:C.navigationEndpoint){var y;this.componentBehavior.resolveCommand((y=this.data)==null?void 0:y.navigationEndpoint)}}};
_.u.dataChanged=function(){this.clearTimeouts();this.setBackgroundImage(this.data);this.startPanelTimeout();this.updateSize()};
_.u.setBackgroundImage=function(I){if(I=this.getBackgroundImageUrl(I))_.f(this.hostElement).querySelector("#hero").style.backgroundImage="url("+I+")"};
_.u.setScrimLayer=function(I){var C=this.getScrimLayerColorStops(I);I=((I==null?void 0:I.scrimRotation)||0)+180;this.isNarrower()&&this.panelLayout==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"&&(I=180);_.Aq("HTML_DIR")==="rtl"&&(I=-I);C&&(_.f(this.hostElement).querySelector("#scrim").style.backgroundImage="linear-gradient("+I+"deg, "+C+")")};
_.u.isNarrower=function(){return this.hostElement.clientWidth<G3.NARROW_VERSION_SIZE};
_.u.getScrimLayerColorStops=function(){var I,C=(I=this.data)==null?void 0:I.scrimColorValues;if(!C)return null;if(C.length===1)return I=_.Xl(C[0]),I+" 0%, "+I+" 100%";if(C.length===3){var y=[0,72,98];return C.map(function(k,F){return _.Xl(k)+" "+y[F]+"%"}).join(",")}return null};
_.u.getBackgroundImageUrl=function(I){return I&&I.largeFormFactorBackgroundThumbnail?_.E5((I.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.landscape||I.largeFormFactorBackgroundThumbnail.thumbnailLandscapePortraitRenderer.portrait).thumbnails,screen.width):null};
_.u.onPlaying=function(){this.startVideoTimeout()};
_.u.onEnded=function(){this.rotate()};
_.u.startPanelTimeout=function(){var I=this;if(!this.panelTimeoutJobId){var C=this.get("data.minPanelDisplayDurationMs");C&&(this.panelTimeoutJobStartMs=Date.now(),this.panelTimeoutJobId=_.NU(_.b$,function(){I.rotate()},C))}};
_.u.startVideoTimeout=function(){var I=this;if(!this.videoTimeoutJobId){_.b$.cancelJob(this.panelTimeoutJobId);var C=Date.now()-this.panelTimeoutJobStartMs;C=Math.max(0,this.get("data.minPanelDisplayDurationMs")-C);C=Math.max(this.get("data.minVideoPlayDurationMs")||0,C);this.videoTimeoutJobId=_.NU(_.b$,function(){I.rotate()},C)}};
_.u.clearTimeouts=function(){this.panelTimeoutJobId!==0&&_.b$.cancelJob(this.panelTimeoutJobId);this.videoTimeoutJobId!==0&&_.b$.cancelJob(this.videoTimeoutJobId);this.videoTimeoutJobId=this.panelTimeoutJobId=0};
_.u.rotate=function(){this.clearTimeouts();_.k3(this.hostElement,"yt-default-promo-panel-renderer-rotate")};
_.H1.Object.defineProperties(G3.prototype,{player:{configurable:!0,enumerable:!0,get:function(){return _.f(this.hostElement).querySelector("#player")}},
video:{configurable:!0,enumerable:!0,get:function(){return _.f(this.hostElement).querySelector("#video")}}});
_.H1.Object.defineProperties(G3,{NARROW_VERSION_SIZE:{configurable:!0,enumerable:!0,get:function(){return 650}}});
G3.prototype.onEnded=G3.prototype.onEnded;G3.prototype.onPlaying=G3.prototype.onPlaying;G3.prototype.dataChanged=G3.prototype.dataChanged;_.E([_.g(_.bZ),_.h("design:type",Object)],G3.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],G3.prototype,"componentBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],G3.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.g(_.Vwb),_.h("design:type",Object)],G3.prototype,"ytBooleanLogicBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],G3.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],G3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],G3.prototype,"ytRendererBehavior",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"disableGridStateAware",void 0);_.E([_.d(),_.h("design:type",Object)],G3.prototype,"data",void 0);_.E([_.d({computed:"computePanelLayout(data)",reflectToAttribute:!0}),_.h("design:type",String)],G3.prototype,"panelLayout",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"animationEnabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"transitioningOut",void 0);
_.E([_.d({computed:"computeMetadataOrder(data)"}),_.h("design:type",Boolean)],G3.prototype,"metadataOrder",void 0);_.E([_.d({computed:"computeByline(data)"}),_.h("design:type",Object)],G3.prototype,"byline",void 0);_.E([_.d({computed:"computeAvatarSize(data)"}),_.h("design:type",Number)],G3.prototype,"avatarSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"narrow",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"narrower",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"layoutStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],G3.prototype,"isCarouselInFeed",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G3.prototype,"dataChanged",null);_.E([_.km("yt-default-promo-panel-renderer-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G3.prototype,"onPlaying",null);
_.E([_.km("yt-default-promo-panel-renderer-ended"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],G3.prototype,"onEnded",null);G3=_.E([_.m({disableElementRegistration:!0,is:"ytd-default-promo-panel-renderer"})],G3);
_.Z(G3,"ytd-default-promo-panel-renderer",function(){if(nDY!==void 0)return nDY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nDY=I},{mode:1});_.jz("itemSectionRenderer","carouselItemRenderer","ytd-carousel-item-renderer");var fB=function(){var I=_.q.apply(this,arguments)||this;I.narrower=!1;I.dotMenuVisible=!1;I.paginationThumbnailsVisible=!1;I.active=!0;I.disableGridStateAware=!1;I.actionMap={"yt-window-resized":"onWindowResized"};return I};
_.R(fB,_.q);_.u=fB.prototype;_.u.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]]"}}}}}};
_.u.attached=function(){this.onWindowResized()};
_.u.detached=function(){this.jobId&&_.b$.cancelJob(this.jobId);this.updateSizeJobId&&_.b$.cancelJob(this.updateSizeJobId)};
_.u.onWindowResized=function(){this.updateSize()};
_.u.updateSize=function(){this.narrower=this.isNarrower(this.hostElement.clientWidth);this.scrollThumbnails(this.currentItemIndex)};
_.u.setNextCarouselItem=function(){this.shouldRotate()&&this.setCarouselItem(this.currentItemIndex+1)};
_.u.setCarouselItem=function(I){I>=this.data.carouselItems.length&&this.loopCount++;this.jobId&&_.b$.cancelJob(this.jobId);var C=this.getCurrentPanelElement();C&&C.stopVideo();this.currentItemIndex=I%this.data.carouselItems.length;this.currentItem=this.data.carouselItems[this.currentItemIndex];this.scrollThumbnails(this.currentItemIndex);this.currentItemHasVideo()?(C||(C=this.getCurrentPanelElement()),C.playVideo()):this.startRotationJob()};
_.u.scrollThumbnails=function(I){if(this.computeLayoutType(this.data)==="DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_C"){var C=this.getCurrentPaginationElement();if(C){var y=_.f(this.hostElement).querySelector("#pagination-thumbnails");this.currentItemIndex<2?y.style.transform="translateX(0)":(C=C.offsetWidth+8,y.style.transform="translateX(-"+C*(I-Math.ceil(Math.floor(this.overlay.offsetWidth/C)/2)+1)+"px)")}}};
_.u.onDataChanged=function(){var I=this;this.data&&(this.loopCount=0,this.autorotateActive=!0,this.data.autoRotateDurationMs!==void 0&&(this.rotationTimeout=this.data.autoRotateDurationMs),this.setCarouselItem(0),this.updateSizeJobId=_.jj(_.b$,function(){I.getCurrentPanelElement().updateSize();I.updateSize()}))};
_.u.getCurrentPanelElement=function(){return _.f(_.f(this.hostElement).querySelector("#carousel-item")).querySelector("ytd-default-promo-panel-renderer")};
_.u.getCurrentPaginationElement=function(){return _.f(_.f(this.hostElement).querySelector("#pagination-thumbnails")).querySelector(".ytd-carousel-item-renderer.selected")};
_.u.getNavigationClass=function(I,C){return I===C?"selected":""};
_.u.getNavigationDurationStyle=function(I){return"animation-duration:"+(this.get("data.carouselItems."+I+".defaultPromoPanelRenderer.minPanelDisplayDurationMs")||0)+"ms;"};
_.u.onNavigationTap=function(I){var C=this,y=I.model.index;y!==this.currentItemIndex&&(this.getCurrentPanelElement().transitionOut().then(function(){C.setCarouselItem(y)}),this.autorotateActive=!1)};
_.u.onVideoThumbnailEnded=function(){var I=this;if(this.shouldRotate()){var C=this.getCurrentPaginationElement();C&&(C.classList.add("finished"),this.getCurrentPanelElement().transitionOut().then(function(){C.classList.remove("finished");I.setNextCarouselItem()}))}};
_.u.onVideoThumbnailError=function(){this.startRotationJob()};
_.u.onVideoNotPlaying=function(){this.startRotationJob()};
_.u.currentItemHasVideo=function(){return!!this.get("defaultPromoPanelRenderer.videoThumbnail",this.currentItem)||!!this.get("defaultPromoPanelRenderer.inlinePlaybackRenderer",this.currentItem)};
_.u.startRotationJob=function(){var I=this;_.b$.cancelJob(this.jobId);this.shouldRotate()&&this.rotationTimeout&&(this.jobId=_.b$.addLowPriorityJob(function(){I.getCurrentPanelElement().transitionOut().then(function(){I.setNextCarouselItem()})},this.rotationTimeout))};
_.u.computeDotMenuVisible=function(I,C){return!!I&&!!I.carouselItems&&I.carouselItems.length>1&&!I.paginationThumbnails||!!C};
_.u.computePaginationThumbnailsVisible=function(I,C){var y,k;return((k=I==null?void 0:(y=I.paginationThumbnails)==null?void 0:y.length)!=null?k:0)>1&&!C};
_.u.computeLayoutType=function(){return this.get("data.carouselItems.0.defaultPromoPanelRenderer.panelLayout")||"DEFAULT_PROMO_PANEL_RENDERER_LAYOUT_A"};
_.u.computePaginatorAlignment=function(I){return(I==null?void 0:I.paginatorAlignment)||"CAROUSEL_ITEM_RENDERER_PAGINATOR_ALIGNMENT_END"};
_.u.shouldRotate=function(){return this.data.carouselItems.length>1&&this.active&&this.loopCount<3&&this.autorotateActive};
_.u.activeChanged=function(){this.data&&(this.active?this.setCarouselItem(this.currentItemIndex):this.currentItem=void 0)};
_.u.isNarrower=function(I){return(I!=null?I:0)<G3.NARROW_VERSION_SIZE};
fB.prototype.activeChanged=fB.prototype.activeChanged;fB.prototype.onVideoNotPlaying=fB.prototype.onVideoNotPlaying;fB.prototype.onVideoThumbnailError=fB.prototype.onVideoThumbnailError;fB.prototype.onVideoThumbnailEnded=fB.prototype.onVideoThumbnailEnded;fB.prototype.onDataChanged=fB.prototype.onDataChanged;_.E([_.g(_.bZ),_.h("design:type",Object)],fB.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],fB.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],fB.prototype,"currentItem",void 0);
_.E([_.d(),_.h("design:type",Number)],fB.prototype,"currentItemIndex",void 0);_.E([_.d(),_.h("design:type",Number)],fB.prototype,"rotationTimeout",void 0);_.E([_.d(),_.h("design:type",Number)],fB.prototype,"loopCount",void 0);_.E([_.d({computed:"computePaginatorAlignment(data)",reflectToAttribute:!0}),_.h("design:type",String)],fB.prototype,"paginatorAlignment",void 0);_.E([_.d(),_.h("design:type",Number)],fB.prototype,"jobId",void 0);
_.E([_.d(),_.h("design:type",Number)],fB.prototype,"updateSizeJobId",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],fB.prototype,"isCarouselInFeed",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fB.prototype,"narrower",void 0);_.E([_.d({computed:"computeDotMenuVisible(data, narrower)"}),_.h("design:type",Object)],fB.prototype,"dotMenuVisible",void 0);
_.E([_.d({computed:"computePaginationThumbnailsVisible(data, narrower)"}),_.h("design:type",Object)],fB.prototype,"paginationThumbnailsVisible",void 0);_.E([_.d({computed:"computeLayoutType(data)",reflectToAttribute:!0}),_.h("design:type",String)],fB.prototype,"layoutType",void 0);_.E([_.d({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],fB.prototype,"autorotateActive",void 0);_.E([_.d(),_.h("design:type",Object)],fB.prototype,"active",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fB.prototype,"disableGridStateAware",void 0);_.E([_.z$("#overlay"),_.h("design:type",HTMLElement)],fB.prototype,"overlay",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"onDataChanged",null);
_.E([_.km("yt-video-thumbnail-ended"),_.km("yt-default-promo-panel-renderer-rotate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"onVideoThumbnailEnded",null);_.E([_.km("yt-video-thumbnail-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"onVideoThumbnailError",null);
_.E([_.km("yt-video-thumbnail-not-playing"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"onVideoNotPlaying",null);_.E([_.rW("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fB.prototype,"activeChanged",null);fB=_.E([_.m({disableElementRegistration:!0,is:"ytd-carousel-item-renderer"})],fB);
_.Z(fB,"ytd-carousel-item-renderer",function(){if(wGS!==void 0)return wGS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return wGS=I},{mode:2});var pGS;var Q4y;var NgH;var V8L;var Sh=function(){var I=_.q.apply(this,arguments)||this;I.originalQuery=null;I.originalEndpoint=null;return I};
_.R(Sh,_.q);Sh.prototype.computeShowOriginalQueryWithoutEndpoint_=function(I,C){return!(!I||C)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Sh.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"correctedText",void 0);_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"correctedQuery",void 0);_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"correctedEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"originalText",void 0);_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"originalQuery",void 0);
_.E([_.d(),_.h("design:type",Object)],Sh.prototype,"originalEndpoint",void 0);_.E([_.d({value:!1,computed:"computeShowOriginalQueryWithoutEndpoint_(originalQuery, originalEndpoint)"}),_.h("design:type",Boolean)],Sh.prototype,"showOriginalQueryWithoutEndpoint",void 0);Sh=_.E([_.lT({is:"yt-search-query-correction",disableElementRegistration:!0})],Sh);
_.Z(Sh,"yt-search-query-correction",function(){if(V8L===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;NgH===void 0&&(NgH=document.createElement("template"));var k=NgH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);V8L=I}I=V8L;return I},{mode:2});_.jz("itemSectionRenderer","didYouMeanRenderer","yt-did-you-mean-renderer");var KB=function(){return _.q.apply(this,arguments)||this};
_.R(KB,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KB.prototype,"data",void 0);KB=_.E([_.lT({is:"yt-did-you-mean-renderer",disableElementRegistration:!0})],KB);
_.Z(KB,"yt-did-you-mean-renderer",function(){if(Q4y===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;pGS===void 0&&(pGS=document.createElement("template"));var k=pGS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Q4y=I}I=Q4y;return I},{mode:2});var j4R;var l6L;_.jz("itemSectionRenderer","includingResultsForRenderer","yt-including-results-for-renderer");var AW=function(){return _.q.apply(this,arguments)||this};
_.R(AW,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AW.prototype,"data",void 0);AW=_.E([_.lT({is:"yt-including-results-for-renderer",disableElementRegistration:!0})],AW);
_.Z(AW,"yt-including-results-for-renderer",function(){if(l6L===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;j4R===void 0&&(j4R=document.createElement("template"));var k=j4R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);l6L=I}I=l6L;return I},{mode:2});var XGB;var $Qj;_.jz("itemSectionRenderer","musicPassFeatureInfoRenderer","yt-music-pass-feature-info-renderer");var gG=function(){return _.q.apply(this,arguments)||this};
_.R(gG,_.q);gG.prototype.computeExtraClasses_=function(I,C){var y="";I&&(y+=" "+I.toLowerCase().replace(/_/g,"-"));C&&(y+=" "+C.toLowerCase().replace(/_/g,"-"));return y};
gG.prototype.computeUrlImg_=function(){var I=this.data;I.image&&(_.f(this.hostElement).querySelector("#container").style.backgroundImage="url("+_.E5(I.image.thumbnails,Number.MAX_VALUE)+")")};
gG.prototype.computeUrlImg_=gG.prototype.computeUrlImg_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gG.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gG.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gG.prototype,"computeUrlImg_",null);gG=_.E([_.lT({is:"yt-music-pass-feature-info-renderer",disableElementRegistration:!0})],gG);
_.Z(gG,"yt-music-pass-feature-info-renderer",function(){if($Qj===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;XGB===void 0&&(XGB=document.createElement("template"));var k=XGB;y.call(C,k.content.cloneNode(!0),I.content.firstChild);$Qj=I}I=$Qj;return I},{mode:2});var RKH;var bPL;_.jz("itemSectionRenderer","noResultsFoundShowingResultsForRenderer","yt-no-results-found-showing-results-for-renderer");var vY=function(){return _.q.apply(this,arguments)||this};
_.R(vY,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vY.prototype,"data",void 0);vY=_.E([_.lT({is:"yt-no-results-found-showing-results-for-renderer",disableElementRegistration:!0})],vY);
_.Z(vY,"yt-no-results-found-showing-results-for-renderer",function(){if(bPL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;RKH===void 0&&(RKH=document.createElement("template"));var k=RKH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);bPL=I}I=bPL;return I},{mode:2});var YWL;var GcL;_.jz("itemSectionRenderer","resultsWithoutQuotesRenderer","yt-results-without-quotes-renderer");var WY=function(){return _.q.apply(this,arguments)||this};
_.R(WY,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],WY.prototype,"data",void 0);WY=_.E([_.lT({is:"yt-results-without-quotes-renderer",disableElementRegistration:!0})],WY);
_.Z(WY,"yt-results-without-quotes-renderer",function(){if(GcL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;YWL===void 0&&(YWL=document.createElement("template"));var k=YWL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);GcL=I}I=GcL;return I},{mode:2});var f6R;var SWR;_.jz("itemSectionRenderer","searchNoResultsRenderer","yt-search-no-results-renderer");var dG=function(){return _.q.apply(this,arguments)||this};
_.R(dG,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dG.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dG.prototype,"data",void 0);dG=_.E([_.lT({is:"yt-search-no-results-renderer",disableElementRegistration:!0})],dG);
_.Z(dG,"yt-search-no-results-renderer",function(){if(SWR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;f6R===void 0&&(f6R=document.createElement("template"));var k=f6R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);SWR=I}I=SWR;return I},{mode:2});var KG8;var A1S;_.jz("itemSectionRenderer","showingResultsForRenderer","yt-showing-results-for-renderer");var x_=function(){return _.q.apply(this,arguments)||this};
_.R(x_,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],x_.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],x_.prototype,"data",void 0);x_=_.E([_.lT({is:"yt-showing-results-for-renderer",disableElementRegistration:!0})],x_);
_.Z(x_,"yt-showing-results-for-renderer",function(){if(A1S===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;KG8===void 0&&(KG8=document.createElement("template"));var k=KG8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);A1S=I}I=A1S;return I},{mode:2});var gDj;var vDS;var WGP;var dQR;var qa=function(){var I=_.q.apply(this,arguments)||this;I.answerExpanded=!1;return I};
_.R(qa,_.q);qa.prototype.toggleAnswer_=function(I){var C=_.m0(I);C&&C.classList.contains("yt-simple-endpoint")||(I.preventDefault(),I.stopPropagation(),this.answerExpanded=!this.answerExpanded)};
qa.prototype.toggleAnswer_=qa.prototype.toggleAnswer_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qa.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qa.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qa.prototype,"answerExpanded",void 0);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qa.prototype,"toggleAnswer_",null);
qa=_.E([_.lT({is:"yt-generic-faq-question-renderer",disableElementRegistration:!0})],qa);
_.Z(qa,"yt-generic-faq-question-renderer",function(){if(dQR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;WGP===void 0&&(WGP=document.createElement("template"));var k=WGP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);dQR=I}I=dQR;return I},{mode:2});_.jz("itemSectionRenderer","faqSectionRenderer","yt-faq-section-renderer");var mp=function(){return _.q.apply(this,arguments)||this};
_.R(mp,_.q);mp.prototype.configureRendererStamper=function(){return{"data.questions":{id:"contents",mapping:{genericFaqQuestionRenderer:"yt-generic-faq-question-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mp.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mp.prototype,"data",void 0);mp=_.E([_.lT({is:"yt-faq-section-renderer",disableElementRegistration:!0})],mp);
_.Z(mp,"yt-faq-section-renderer",function(){if(vDS===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;gDj===void 0&&(gDj=document.createElement("template"));var k=gDj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);vDS=I}I=vDS;return I},{mode:2});var xQH;var qWB;_.jz("itemSectionRenderer","OfferItemExpandedRenderer","yt-offer-item-expanded-renderer");var Zp=function(){return _.q.apply(this,arguments)||this};
_.R(Zp,_.q);
Zp.prototype.configureRendererStamper=function(){return{"data.imageRenderer":{id:"image-renderer",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer",params:{fit:!0}}}},"data.headingRenderer":{id:"heading-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.descriptionRenderer":{id:"description-renderer",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.additionalInfoRenderer":{id:"additional-info-renderer",mapping:{cardItemActionsRenderer:{component:"yt-card-item-actions-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Zp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Zp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Zp.prototype,"data",void 0);Zp=_.E([_.lT({is:"yt-offer-item-expanded-renderer",disableElementRegistration:!0})],Zp);
_.Z(Zp,"yt-offer-item-expanded-renderer",function(){if(qWB===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;xQH===void 0&&(xQH=document.createElement("template"));var k=xQH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);qWB=I}I=qWB;return I},{mode:2});var mQL;var ZPY;_.jz("itemSectionRenderer","OfferItemRenderer","yt-offer-item-renderer");var BY=function(){return _.q.apply(this,arguments)||this};
_.R(BY,_.q);
BY.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"}}}}};
BY.prototype.computeFullWidthMode=function(I){return!(!I||!I.fullWidthMode)};
BY.prototype.computeBorderlessMode=function(I){return!(!I||!I.borderlessMode)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BY.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],BY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BY.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeFullWidthMode(data)"}),_.h("design:type",Boolean)],BY.prototype,"fullWidthMode",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeBorderlessMode(data)"}),_.h("design:type",Boolean)],BY.prototype,"borderlessMode",void 0);BY=_.E([_.lT({is:"yt-offer-item-renderer",disableElementRegistration:!0})],BY);
_.Z(BY,"yt-offer-item-renderer",function(){if(ZPY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;mQL===void 0&&(mQL=document.createElement("template"));var k=mQL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ZPY=I}I=ZPY;return I},{mode:2});var Bgy;var EDY;_.jz("itemSectionRenderer","subscriptionProductHeaderRenderer","yt-subscription-product-header-renderer");var Ei=function(){return _.q.apply(this,arguments)||this};
_.R(Ei,_.q);Ei.prototype.computeAriaLevel_=function(I){return this.getLevelID_(I)};
Ei.prototype.getLevelID_=function(I){return(I=I.match(/[0-9]+$/))&&I.length==1?I[0]:"1"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ei.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ei.prototype,"data",void 0);_.E([_.d({computed:"computeAriaLevel_(data.level)",reflectToAttribute:!0}),_.h("design:type",String)],Ei.prototype,"ariaLevel",void 0);_.E([_.d({value:"heading",reflectToAttribute:!0}),_.h("design:type",String)],Ei.prototype,"role",void 0);
_.E([_.d({value:-1,reflectToAttribute:!0}),_.h("design:type",Number)],Ei.prototype,"tabindex",void 0);Ei=_.E([_.lT({is:"yt-subscription-product-header-renderer",disableElementRegistration:!0})],Ei);
_.Z(Ei,"yt-subscription-product-header-renderer",function(){if(EDY===void 0){var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Bgy===void 0&&(Bgy=document.createElement("template"));var k=Bgy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);EDY=I}I=EDY;return I},{mode:2});var hKy;var UQK;_.jz("itemSectionRenderer","subscriptionProductRenderer","yt-subscription-product-renderer");var hW=function(){return _.q.apply(this,arguments)||this};
_.R(hW,_.q);hW.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer"}}},"data.menu":{id:"menu",mapping:_.lk("menuRenderer"),events:!0}}};
hW.prototype.onStampFinished_=function(){_.f(this.hostElement).querySelector("#menu").children[0].icon="yt-icons:more_vert"};
hW.prototype.onStampFinished_=hW.prototype.onStampFinished_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hW.prototype,"data",void 0);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hW.prototype,"onStampFinished_",null);
hW=_.E([_.lT({is:"yt-subscription-product-renderer",disableElementRegistration:!0})],hW);
_.Z(hW,"yt-subscription-product-renderer",function(){if(UQK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;hKy===void 0&&(hKy=document.createElement("template"));var k=hKy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);UQK=I}I=UQK;return I},{mode:2});var HPM;var t8R;_.jz("itemSectionRenderer","subscriptionProductUpsellOfferRenderer","yt-subscription-product-upsell-offer-renderer");var Ui=function(){return _.q.apply(this,arguments)||this};
_.R(Ui,_.q);Ui.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Ui.prototype.imageScrimColorValuesChanged_=function(){var I,C=(I=this.data)==null?void 0:I.imageScrimColorValues;_.f(this.hostElement).querySelector("#scrim").style.backgroundColor=C?_.Xl(C[0]):"transparent"};
Ui.prototype.imageScrimColorValuesChanged_=Ui.prototype.imageScrimColorValuesChanged_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ui.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ui.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ui.prototype,"data",void 0);
_.E([_.FI("data.imageScrimColorValues"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ui.prototype,"imageScrimColorValuesChanged_",null);Ui=_.E([_.lT({is:"yt-subscription-product-upsell-offer-renderer",disableElementRegistration:!0})],Ui);
_.Z(Ui,"yt-subscription-product-upsell-offer-renderer",function(){if(t8R===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;HPM===void 0&&(HPM=document.createElement("template"));var k=HPM;y.call(C,k.content.cloneNode(!0),I.content.firstChild);t8R=I}I=t8R;return I},{mode:2});var J1R;var OPK;var a6H;var M8H;var IT8;var CyR;var HY=function(){return _.q.apply(this,arguments)||this};
_.R(HY,_.q);HY.prototype.onYtServiceRequestError_=function(I){_.ly(this.hostElement,I.detail.error.message)};
HY.prototype.onYtServiceRequestError_=HY.prototype.onYtServiceRequestError_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HY.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],HY.prototype,"collapsible",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],HY.prototype,"isManageRed",void 0);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],HY.prototype,"onYtServiceRequestError_",null);HY=_.E([_.lT({is:"yt-single-ypc-offer-renderer",disableElementRegistration:!0})],HY);
_.Z(HY,"yt-single-ypc-offer-renderer",function(){if(CyR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;IT8===void 0&&(IT8=document.createElement("template"));var k=IT8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);CyR=I}I=CyR;return I},{mode:2});var tW=function(){return _.q.apply(this,arguments)||this};
_.R(tW,_.q);tW.prototype.configureRendererStamper=function(){return{"data.singleYpcOfferSupportedRenderers":{id:"contents",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tW.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],tW.prototype,"isManageRed",void 0);tW=_.E([_.lT({is:"yt-single-ypc-offer-list-renderer",disableElementRegistration:!0})],tW);
_.Z(tW,"yt-single-ypc-offer-list-renderer",function(){if(M8H===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;a6H===void 0&&(a6H=document.createElement("template"));var k=a6H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);M8H=I}I=M8H;return I},{mode:2});var s38;var oNK;_.jz("itemSectionRenderer","ypcOffersListRenderer","yt-ypc-offers-list-renderer");var JW=function(){return _.q.apply(this,arguments)||this};
_.R(JW,_.q);JW.prototype.configureRendererStamper=function(){return{"data.offersList":{id:"contents",mapping:{singleYpcOfferListRenderer:{component:"yt-single-ypc-offer-list-renderer",properties:{isManageRed:"[[isManageRed]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JW.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],JW.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],JW.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],JW.prototype,"isManageRed",void 0);JW=_.E([_.lT({is:"yt-ypc-offers-list-renderer",disableElementRegistration:!0})],JW);
_.Z(JW,"yt-ypc-offers-list-renderer",function(){if(oNK===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;s38===void 0&&(s38=document.createElement("template"));var k=s38;y.call(C,k.content.cloneNode(!0),I.content.firstChild);oNK=I}I=oNK;return I},{mode:2});_.jz("itemSectionRenderer","unlimitedManageSubscriptionPageRenderer","yt-unlimited-manage-subscription-page-renderer");var Oi=function(){return _.q.apply(this,arguments)||this};
_.R(Oi,_.q);
Oi.prototype.configureRendererStamper=function(){return{"data.manageFixFopButton":{id:"manage-fix-fop-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.helpButton":{id:"help-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageFamilyButton":{id:"manage-family-button",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{alignByText:!0}}}},"data.manageSubscriptionButton":{id:"manage-subscription-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
params:{alignByText:!0}}}},"data.offers":{id:"offers",mapping:{ypcOffersListRenderer:{component:"yt-ypc-offers-list-renderer",params:{isManageRed:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Oi.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Oi.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Oi.prototype,"data",void 0);Oi=_.E([_.lT({is:"yt-unlimited-manage-subscription-page-renderer",disableElementRegistration:!0})],Oi);
_.Z(Oi,"yt-unlimited-manage-subscription-page-renderer",function(){if(OPK===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;J1R===void 0&&(J1R=document.createElement("template"));var k=J1R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);OPK=I}I=OPK;return I},{mode:2});var y6R;var kSY;var aZ=function(){return _.q.apply(this,arguments)||this};
_.R(aZ,_.q);_.u=aZ.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keypress":"onKeypress_"}};
_.u.configureRendererStamper=function(){return{"data.singleYpcOfferListSupportedRenderers":{id:"offers",mapping:{singleYpcOfferRenderer:{component:"yt-single-ypc-offer-renderer",params:{collapsible:!0}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.onKeypress_=function(I){I.detail.keyboardEvent.target==this&&this.expandOffers_()};
_.u.handleHeaderTap_=function(I){I.preventDefault();I.stopPropagation();this.expandOffers_()};
_.u.expandOffers_=function(){this.offersVisible_=!0;this.hostElement.setAttribute("tabindex","-1")};
_.u.dataChanged_=function(){this.data&&(this.offersVisible_=!this.data.isCollapsed)};
aZ.prototype.dataChanged_=aZ.prototype.dataChanged_;_.E([_.g(_.Ds),_.h("design:type",Object)],aZ.prototype,"ironA11yKeysBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],aZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],aZ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],aZ.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],aZ.prototype,"offersVisible_",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],aZ.prototype,"dataChanged_",null);aZ=_.E([_.lT({is:"yt-collapsible-ypc-offer-renderer",disableElementRegistration:!0})],aZ);
_.Z(aZ,"yt-collapsible-ypc-offer-renderer",function(){if(kSY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;y6R===void 0&&(y6R=document.createElement("template"));var k=y6R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);kSY=I}I=kSY;return I},{mode:2});var FmL;var urY;_.jz("itemSectionRenderer","unlimitedPageHeaderRenderer","yt-unlimited-page-header-renderer");var Ma=function(){return _.q.apply(this,arguments)||this};
_.R(Ma,_.q);_.u=Ma.prototype;_.u.configureRendererStamper=function(){return{"data.moreOffersRenderers":{id:"more-offers",mapping:{collapsibleYpcOfferRenderer:{component:"yt-collapsible-ypc-offer-renderer"}}}}};
_.u.dataChanged_=function(){if(this.data.backgroundImage){var I=_.E5(this.data.backgroundImage.thumbnails,screen.width),C=this.getScrimLayerColorStops_();this.hostElement.style.backgroundImage=C?"linear-gradient(180deg, "+C+"), url("+I+")":"url("+I+")";this.data.gtmId&&_.rx(this.data.gtmId,_.Aq("GL",""))}};
_.u.onYtServiceRequestError_=function(I){_.ly(this.hostElement,I.detail.error.message)};
_.u.getScrimLayerColorStops_=function(){var I,C,y=(I=this.data.unlimitedHeaderV2Data)==null?void 0:(C=I.unlimitedHeaderV2Data)==null?void 0:C.scrimLayerColors;if(!y)return null;var k=100/y.length;return y.map(function(F,z){z*=k;return _.Xl(F)+" "+z+"%"}).join(",")};
_.u.computeLogoWithPadding=function(I){var C,y,k;return(I=(C=I.unlimitedLogoImage)==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?!0:!1};
Ma.prototype.onYtServiceRequestError_=Ma.prototype.onYtServiceRequestError_;Ma.prototype.dataChanged_=Ma.prototype.dataChanged_;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ma.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ma.prototype,"ytRendererBehavior",void 0);_.E([_.d({computed:"computeLogoWithPadding(data)"}),_.h("design:type",Boolean)],Ma.prototype,"logoWithPadding",void 0);
_.E([_.d(),_.h("design:type",Object)],Ma.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ma.prototype,"dataChanged_",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ma.prototype,"onYtServiceRequestError_",null);Ma=_.E([_.lT({is:"yt-unlimited-page-header-renderer",disableElementRegistration:!0})],Ma);
_.Z(Ma,"yt-unlimited-page-header-renderer",function(){if(urY===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;FmL===void 0&&(FmL=document.createElement("template"));var k=FmL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);urY=I}I=urY;return I},{mode:2});var zn8;var TML;_.jz("itemSectionRenderer","UnlimitedUserNotificationRenderer","yt-unlimited-user-notification-renderer");var IB=function(){return _.q.apply(this,arguments)||this};
_.R(IB,_.q);IB.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-confirm":!0}}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],IB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],IB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],IB.prototype,"data",void 0);IB=_.E([_.lT({is:"yt-unlimited-user-notification-renderer",disableElementRegistration:!0})],IB);
_.Z(IB,"yt-unlimited-user-notification-renderer",function(){if(TML===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;zn8===void 0&&(zn8=document.createElement("template"));var k=zn8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);TML=I}I=TML;return I},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.fJB=_.BO(function(I){var C=_.ZB(I,{numberOfChips:5}).numberOfChips;return _.P("yt-ghost-chip-shelf",{class:"ytGhostChipShelfHost"},_.P(_.pH,{each:function(){return Array(C==null?void 0:C())}},function(){return _.P("div",{class:"ytGhostChipShelfChip"})}))},"Tf");_.S8K=_.BO(function(I){var C=_.yg(),y=_.N().resolve(_.v9);_.X2(function(){requestAnimationFrame(function(){var F;(F=C.lottieEl)==null||F.addEventListener("DOMLoaded",function(){var z;(z=I.onLottieLoaded)==null||z.call(I)})})});
var k={};return _.P("yt-chat-loading-view-model",{class:"ytChatLoadingViewModelHost","data-target-id":function(){var F;return((F=I.data)==null?void 0:F.call(I).targetId)||""}},_.P(_.o8,{className:_.sZ((k.ytChatLoadingViewModelRtl=y==="rtl",k)),
animationName:"YOUCHAT_LOADER",data:function(){var F;return{animationConfig:{autoplay:!0,loop:!0,renderer:"svg",rendererSettings:{viewBoxOnly:!0,className:"ytChatLoadingViewModelLoadingSvg"},name:"YOUCHAT_LOADER",path:((F=I.data)==null?void 0:F.call(I).animationUrl)||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_comp_v1.json"}}},
animationRef:C}))},"Uf");
}catch(e){_._DumpException(e)}
try{
var uJy,zCH,T0B,ciB,eCB,riM,ieK,Ek,h6,nFL,P3S,LwR,piR,RCB,Uk,$bR,VlB,XiP,loY,jE8,N0L,bey,Y1B,GTL,foP,HX,S1Y,KwH,Aiy,xbY,dbL,WwS,gFS,vFY,q1B,mbY,ZeH,B0Y,EFM,hCj,JiR,MlR,IDR,CAM,oqS,kej,uBP,z38,TQY,ckY,rkY,iLj,w2K,nqY,PAY,Lc8,D9H,Q1H,lDj,j1P,NQP,X2y,VyB,$9Y,GeK,YBK,R3M,bLL,Ok,fDH,AkY,qBP,m9j,ZLy,BQH,EqR,h3Y,U9L,HLH,tyK,JkL,aDB,Myj,IfB,wiK,Wcy;
_.ZT=function(I){var C=new _.ph("Error accessing DB");return _.VDm().then(function(y){return new Promise(function(k,F){try{var z=y.transaction("swpushnotificationsstore").objectStore("swpushnotificationsstore").get(I);z.onsuccess=function(){var c=z.result;k(c?c.value:null)};
z.onerror=function(){C.params={key:I,source:"onerror"};F(C)}}catch(c){C.params={key:I,
thrownError:String(c)},F(C)}})},function(){return null})};
_.FwB=function(I,C){var y=_.rTW(C);y!=="javascript:"&&y!=="data:"&&I.setAttribute("href",C)};
uJy=function(I,C){return _.cg(I.entities,"flowStateEntity",C)};
zCH=function(I){return(I=I.getOption("captions","track"))?!!I.displayName:!1};
T0B=function(I,C){C=C.getOption("captions","translationLanguages",{includeAsr:!0})||[];if(C==null||!C.length)return I;var y=C.filter(function(c){return c});
C=I.filter(function(c){return c.languageCode.startsWith("en")});
y=_.T(y);for(var k=y.next();!k.done;k=y.next())if(k=k.value,C.length){var F=C[0],z=Object.assign({},F);F.languageCode!==k.languageCode&&(z.displayName=F.languageName+" >> "+k.languageName,z.translationLanguage=k,I.push(z))}return I};
ciB=function(I){var C,y=(C=I.getOption("captions","tracklist",{includeAsr:!0}))!=null?C:[];_.V("mweb_watch_captions_enable_auto_translate")&&(y=T0B(y,I));return y};
eCB=function(I){return _.AX(I,function(C){return C.languageCode==="en"})};
riM=function(I){var C=BX;if(zCH(I))I.setOption("captions","stickyLoading",{}),I.setOption("captions","track",{});else{var y=_.AX(ciB(I),function(k){return k.displayName===C});
I.setOption("captions","track",y)}};
ieK=function(I){if(!I)return 0;var C=I.getPresentingPlayerType(),y=I.getVideoData();return y&&y.isLive?(I=I.getProgressState(C),I.seekableEnd-I.seekableStart):I.getDuration(C)};
Ek=function(I,C){_.KI(C,I,function(){return wiK[C]},function(y){wiK[C]=y;
if(!_.V("mweb_player_ve_show_ks")){var k=_.Si(0);k&&y&&_.mM(k,y)}})};
h6=function(I){(I=wiK[I])&&_.kU(_.e2(),I)};
nFL=function(I,C){for(var y=_.T(Object.keys(I)),k=y.next();!k.done;k=y.next())if(k=k.value,I[k]!==C[k])return!1;return!0};
P3S=function(){return document.getElementById("player-control-overlay")};
LwR=function(I){I!==-1&&!_.V("player_controls_log_creation_killswitch")&&P3S()&&(_.Sr("pcu_cs",I),_.Sr("pcu_ce"))};
piR=function(I){return _.P("div",{class:"yt-profile-identity-info-view-model-wiz__buttons"},(I.subscribeButton?[I.subscribeButton,I.channelAccess]:[I.channelAccess]).map(function(C){return _.P("div",{class:"yt-profile-identity-info-view-model-wiz__wrap-button"},_.P("div",{class:"yt-profile-identity-info-view-model-wiz--button"},DbY(C)))}))};
_.QEH=function(I){var C=I.data;I=I.hideDivider;var y={};y=(y["yt-profile-identity-info-view-model-wiz__frame"]=!0,y["yt-profile-identity-info-view-model-wiz--frame-with-no-channel-banner"]=!C.channelBanner,y);y={class:_.yc(y)};var k,F={imageBannerViewModel:{image:(k=C.channelBanner)==null?void 0:k.image,style:"IMAGE_BANNER_STYLE_INSET"}};k=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner-container"},C.channelBanner?_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-banner"},
DbY(F,{imageBannerViewModel:{isPositionRelative:!0}})):null);F=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__avatar"},DbY(C.avatar));var z;var c=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-header"},_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name"},C.channelDisplayName),C.verifiedOrOacBadge?_.P("div",{class:"yt-profile-identity-info-view-model-wiz__badge"},_.P(_.x$,{data:{thumbnails:[{url:(z=C.verifiedOrOacBadge)==null?void 0:z.badgeUrl}]},
alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})):null);z=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-name-frame"},c,DbY(C.threeDotMenu));c=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__metadata"},_.P("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.P("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-handle-with-bold-font"},C.channelHandle),C.channelPronouns&&C.channelHandle?_.P("span",
{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):null,_.P("div",{dir:"auto",class:"yt-profile-identity-info-view-model-wiz__metadata-pronouns"},C.channelPronouns)),_.P("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content-set"},_.P("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},C.leftOfBulletInfo),C.leftOfBulletInfo&&C.rightOfBulletInfo?_.P("span",{class:"yt-profile-identity-info-view-model-wiz__metadata-delimiter"},"\u2022"):
null,_.P("div",{class:"yt-profile-identity-info-view-model-wiz__metadata-content"},C.rightOfBulletInfo)));z=_.P("div",{class:"yt-profile-identity-info-view-model-wiz__trio"},z,c);return _.P("yt-profile-identity-info-view-model",{class:"yt-profile-identity-info-view-model-wiz"},_.P("div",y,k,_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-info-section"},F,z),C.channelDescription?_.P("div",{class:"yt-profile-identity-info-view-model-wiz__channel-description"},C.channelDescription):
null,piR(C),I?null:_.P("div",{class:"yt-profile-identity-info-view-model-wiz__divider"}," ")))};
RCB=function(I,C){var y=_.mh(I,{}),k=N0L("top",C),F=N0L("bottom",C),z=N0L("left",C),c=N0L("right",C);return _.cP({top:function(){return Uk(y().position,k)},
bottom:function(){return Uk(y().position,F)},
left:function(){return Uk(y().position,z)},
right:function(){return Uk(y().position,c)},
position:function(){return Uk(y().positionType,VlB)},
height:function(){return Uk(y().height,HX)},
width:function(){return Uk(y().width,HX)},
"min-width":function(){return Uk(y().minWidth,HX)},
"min-height":function(){return Uk(y().minHeight,HX)},
"max-width":function(){return Uk(y().maxWidth,HX)},
"max-height":function(){return Uk(y().maxHeight,HX)},
"aspect-ratio":function(){return Uk(y().aspectRatio,String)},
"margin-top":function(){return Uk(y().margin,k)},
"margin-bottom":function(){return Uk(y().margin,F)},
"margin-left":function(){return Uk(y().margin,z)},
"margin-right":function(){return Uk(y().margin,c)},
"padding-top":function(){return Uk(y().padding,k)},
"padding-bottom":function(){return Uk(y().padding,F)},
"padding-left":function(){return Uk(y().padding,z)},
"padding-right":function(){return Uk(y().padding,c)},
"flex-direction":function(){return Uk(y().flexDirection,jE8)},
"justify-content":function(){return Uk(y().justifyContent,loY)},
"align-items":function(){return Uk(y().alignItems,XiP)},
"flex-grow":function(){return Uk(y().flexGrow,String)},
"flex-shrink":function(){return Uk(y().flexShrink,String)},
"flex-basis":function(){return Uk(y().flexBasis,HX)},
"align-self":function(){return Uk(y().alignSelf,XiP)},
"flex-wrap":function(){return Uk(y().flexWrap,$bR)},
"align-content":function(){return Uk(y().alignContent,XiP)}})};
Uk=function(I,C){return I!==void 0?C(I):void 0};
$bR=function(I){switch(I){case "YPC_FLEX_WRAP_NO_WRAP":return"nowrap";case "YPC_FLEX_WRAP_WRAP":return"wrap";case "YPC_FLEX_WRAP_WRAP_REVERSE":return"wrap-reverse"}};
VlB=function(I){switch(I){case "YPC_POSITION_ABSOLUTE":return"absolute";case "YPC_POSITION_RELATIVE":return"relative"}};
XiP=function(I){switch(I){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"}};
loY=function(I){switch(I){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"}};
jE8=function(I){switch(I){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"}};
N0L=function(I,C){var y=C==="rtl";switch(I){case "top":var k=bey;break;case "bottom":k=Y1B;break;case "left":k=GTL;break;default:k=foP}return function(F){return Uk(k(F,y),HX)}};
bey=function(I){var C=I.top;var y=I.vertical;I=I.all;var k;return(k=C!=null?C:y)!=null?k:I};
Y1B=function(I){var C=I.bottom;var y=I.vertical;I=I.all;var k;return(k=C!=null?C:y)!=null?k:I};
GTL=function(I,C){var y=I.left;var k=I.end;var F=I.start;var z=I.horizontal;I=I.all;var c,r;return(r=(c=y!=null?y:C?k:F)!=null?c:z)!=null?r:I};
foP=function(I,C){var y=I.right;var k=I.end;var F=I.start;var z=I.horizontal;I=I.all;var c,r;return(r=(c=y!=null?y:C?F:k)!=null?c:z)!=null?r:I};
HX=function(I){var C=I.value;switch(I.unit){case "YPC_DIMENSION_UNIT_POINT":return C+"px";case "YPC_DIMENSION_UNIT_FRACTION":return C+"%";default:return""+C}};
S1Y=function(I){switch(I){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"}};
KwH=function(I){var C=I!=null?I:{};I=C.fontRole;var y=C.fontSize;C=C.fontWeight;if(I!==null&&y!==null)switch(I){case "YPC_FONT_ROLE_DISPLAY":switch(y){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayLHeavy":"ytStyledTextViewModelYtDisplayL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayMHeavy":"ytStyledTextViewModelYtDisplayM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplaySHeavy":
"ytStyledTextViewModelYtDisplayS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtDisplayXSHeavy":"ytStyledTextViewModelYtDisplayXS";default:return}case "YPC_FONT_ROLE_HEADLINE":switch(y){case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineLHeavy":"ytStyledTextViewModelYtHeadlineL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineMHeavy":"ytStyledTextViewModelYtHeadlineM";case "YPC_FONT_SIZE_S":return C===
"YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineSHeavy":"ytStyledTextViewModelYtHeadlineS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtHeadlineXSHeavy":"ytStyledTextViewModelYtHeadlineXS";default:return}case "YPC_FONT_ROLE_BODY":switch(y){case "YPC_FONT_SIZE_XL":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXLHeavy":"ytStyledTextViewModelYtBodyXL";case "YPC_FONT_SIZE_L":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyLHeavy":
"ytStyledTextViewModelYtBodyL";case "YPC_FONT_SIZE_M":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyMHeavy":"ytStyledTextViewModelYtBodyM";case "YPC_FONT_SIZE_S":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodySHeavy":"ytStyledTextViewModelYtBodyS";case "YPC_FONT_SIZE_XS":return C==="YPC_FONT_WEIGHT_HEAVY"?"ytStyledTextViewModelYtBodyXSHeavy":"ytStyledTextViewModelYtBodyXS"}}};
Aiy=function(I,C){return _.cg(I.entities,"pdpStateEntity",C)};
xbY=function(I,C,y){function k(L){return Object.values(L).map(function(D){var p=D.productId;D=D.pricingOptionIndex;return gFS(F(p).pricingOptions,D).pricingOptionId})}
function F(L){return r().get(L)}
function z(L){L=k(L);y(L)}
var c=vFY([I,C],function(L,D){var p=L==null?void 0:L.selectedPricingOptions;L={};var Q=!0;if(p&&D.length)for(var X=_.T(D),b=X.next();!b.done;b=X.next()){b=b.value;var S=WwS(b.pricingOptions,function(A){a:{A=A.pricingOptionId;for(var x=_.T(p),B=x.next();!B.done;B=x.next())if(B.value===A){A=!0;break a}A=!1}return A});
S>=0&&(Q=!1,L[b.groupId]={productId:b.productId,pricingOptionIndex:S})}Q&&D.length&&(L[D[0].groupId]={productId:D[0].productId,pricingOptionIndex:0});return L}),r=vFY([C],function(L){return new Map(L.map(function(D){return[D.productId,
D]}))}),w=vFY([C],function(L){var D=new Map;
L=_.T(L);for(var p=L.next();!p.done;p=L.next()){var Q=p.value;p=Q.groupId;var X=Q.productId;Q=_.T(dbL(Q.pricingOptions));for(var b=Q.next();!b.done;b=Q.next()){var S=_.T(b.value);b=S.next().value;S=S.next().value;D.set(S.pricingOptionId,{groupId:p,productId:X,index:b,pricingOption:S})}}return D});
return{getProductById:F,isProductSelected:function(L){var D=F(L);if(!D)return!1;var p;return((p=c()[D.groupId])==null?void 0:p.productId)===L},
getSelectedPricingOptions:function(){return Object.values(c()).map(function(L){var D=L.productId;L=L.pricingOptionIndex;return gFS(F(D).pricingOptions,L)})},
getSelectedProductByGroupId:function(L){var D;return(L=(D=c()[L])==null?void 0:D.productId)?F(L):void 0},
onProductSelected:function(L){var D=F(L);if(D){var p=c(),Q;if(((Q=p[D.groupId])==null?void 0:Q.productId)!==L){var X,b;Q=(b=(X=p[D.groupId])==null?void 0:X.pricingOptionIndex)!=null?b:0;X=0;for(b=D.pricingOptions[Symbol.iterator]();!b.next().done;)++X;X<=Q&&(Q=0);X={};z(Object.assign({},p,(X[D.groupId]={productId:L,pricingOptionIndex:Q},X)))}}},
onPricingOptionSelected:function(L){var D=w().get(L);if(D){L=D.groupId;var p=D.productId;D=D.index;var Q=c(),X,b;if(((X=Q[L])==null?void 0:X.productId)!==p||((b=Q[L])==null?void 0:b.pricingOptionIndex)!==D)X={},z(Object.assign({},Q,(X[L]={productId:p,pricingOptionIndex:D},X)))}},
onClearGroupSelected:function(L){var D=c();D[L]&&(D=Object.fromEntries(Object.entries(D).filter(function(p){return _.T(p).next().value!==L})),z(D))}}};
dbL=function(I){return function y(){var k,F,z,c;return _.WpK(y,function(r){switch(r.nextAddress){case 1:_.II(r,2),k=0,F=_.T(I),z=F.next();case 4:if(z.done){r.jumpTo(2);break}c=z.value;return _.n(r,[k++,c],7);case 7:z=F.next();r.jumpTo(4);break;case 2:_.MM(r),_.C1(r,0)}})}()};
WwS=function(I,C){I=_.T(dbL(I));for(var y=I.next();!y.done;y=I.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;if(C(k))return y}return-1};
gFS=function(I,C){I=_.T(dbL(I));for(var y=I.next();!y.done;y=I.next()){var k=_.T(y.value);y=k.next().value;k=k.next().value;if(y===C)return k}};
vFY=function(I,C){var y,k;return function(){for(var F=I.map(function(c){return c()}),z=0;z<F.length;z++)if(!y||F[z]!==y[z]){y=F;
k=C.apply(null,_.Py(F));break}return k}};
q1B=function(I){var C;return!!(I.productId&&I.groupId&&((C=I.pricingOptions)==null?0:C.length)&&I.pricingOptions.every(function(y){return y.pricingOptionId}))};
mbY=function(I,C,y){return xbY(I,vFY([C],function(k){return k.filter(q1B)}),y)};
ZeH=function(I){switch(I){case "DIVIDER_STYLE_FULL_BLEED_4_PX":return"divider-view-model-wiz__base-divider--full-bleed-4px";case "DIVIDER_STYLE_FULL_BLEED_THICK":return"divider-view-model-wiz__base-divider--full-bleed-thick";case "DIVIDER_STYLE_FULL_BLEED_8_PX":return"divider-view-model-wiz__base-divider--full-bleed-8px";case "DIVIDER_STYLE_FULL_BLEED_12_PX":return"divider-view-model-wiz__base-divider--full-bleed-12px";default:return""}};
B0Y=function(I,C){return C.length===0?[I]:[I.slice(0,C[0]),I.slice(C[0])].filter(function(y){return y.length>0})};
EFM=function(I){switch(I){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""}};
hCj=function(I,C,y,k){k=Object.assign({},k);_.V5(k,t6,{selectedOptionId:I,primaryButtonOverride:y});_.dW().dispatch(_.wJ("flowStateEntity",C,k))};
_.tlS=function(){if(!UbL){var I=_.T(_.c4(new Map,void 0,"UJImUe"));UbL=I.next().value;HeB=I.next().value}return UbL};
JiR=function(I){if(I)return _.tlS()().get(I)};
_.OeK=function(I,C){if(I&&C){var y=_.tlS();y().set(I,C);I=y();HeB(new Map(I))}};
_.aoB=function(I){return{onSubmit:function(){var C;(C=JiR(I()))==null||C.onSubmit()},
isValid:function(){var C=JiR(I());return C?C.isValid():!0},
isSubmitting:function(){var C,y;return!!((C=JiR(I()))==null?0:(y=C.isSubmitting)==null?0:y.call(C))}}};
MlR=function(I,C){return _.cg(I.entities,"contextNoteFeedEntityPayload",C)};
IDR=function(I){I.style.height="auto";I.style.height=I.scrollHeight+"px"};
CAM=function(I){return[I.syncStep,I.asyncStep].filter(function(C){return C!==void 0})};
oqS=function(I){var C,y,k;if(I=(C=I.structuredContextNoteFormSchema)==null?void 0:(y=C.fieldSchemas)==null?void 0:(k=y.noteBody)==null?void 0:k.validationSchema)for(C=_.T(CAM(I)),y=C.next();!y.done;y=C.next()){y=y.value.rules;if(!y)break;y=_.T(y);for(y=y.next();!y.done;y=y.next())return _.l(y.value,_.s1y)}};
kej=function(I){if(I){I=_.T(CAM(I));for(var C=I.next();!C.done;C=I.next()){C=C.value.rules;if(!C)break;C=_.T(C);for(C=C.next();!C.done;C=C.next())return _.l(C.value,yky)}}};
uBP=function(I){if(I){I=_.T(CAM(I));for(var C=I.next();!C.done;C=I.next()){C=C.value.rules;if(!C)break;C=_.T(C);for(C=C.next();!C.done;C=C.next())return _.l(C.value,FcM)}}};
z38=function(I){I=/^https?:\/\//.test(I)?I:"http://"+I;try{var C=_.dQ(I)}catch(y){return!1}if(C.toString()!==I)return!1;I=C.JSC$7905_domain_.split(".");return I.length>1&&I.every(function(y){return!!y})};
TQY=function(I,C,y,k){var F;k=(F=k.structuredContextNoteData)==null?void 0:F.createCommentEndpoint;if(F=_.l(k,_.gfm))return F.commentText=_.Ee(I),F.videoPositionMention=C,F.sources=y,k};
ckY=function(I){return I==null?void 0:I.stringValue};
rkY=function(I,C,y){I=I.map(function(k,F){return{listItemViewModel:{title:k.title,subtitle:k.subtitle,leadingImage:k.leadingImage,trailingImage:F===C?e3y:void 0,rendererContext:{commandContext:{onTap:k.onTap}}}}});
return Object.assign({},y&&{header:{panelHeaderViewModel:{title:y}}},{content:{listViewModel:{listItems:I}}})};
iLj=function(I,C){if(I&&C)switch(C){case "SELECTION_TYPE_BOOL":return I.boolValue;case "SELECTION_TYPE_INT":return I.intValue;case "SELECTION_TYPE_STRING":return I.stringValue;case "SELECTION_TYPE_PRIVACY_STATUS":return I.privacyStatusValue}};
w2K=function(I){var C;I=(C=I.options)==null?void 0:C.findIndex(function(y){return y.isSelected});
return I===void 0?-1:I};
nqY=function(I,C,y){var k=function(){return I().label},F={},z=_.sZ("ytDropdownViewModelLabel",(F.ytDropdownViewModelLabelError=C,F));
return _.P(_.Dx,{cond:function(){return I().label&&!(y()===-1&&I().label&&!I().placeholderText)},
then:function(){return _.P("div",{class:z},_.P(_.wh,{text:k}))}})};
PAY=function(I,C){var y={};y=_.sZ("ytDropdownViewModelTitle",(y.ytDropdownViewModelTitlePlaceholder=function(){return C()===-1},y));
return _.P("div",{class:y},_.P(_.wh,{text:function(){var k=I();var F=C();if(F===-1)k=k.placeholderText?k.placeholderText:k.label;else{var z,c;k=(z=k.options)==null?void 0:(c=z[F])==null?void 0:c.title}return k}}))};
Lc8=function(I,C){var y=function(){return I().hint};
return _.P(_.aF,null,_.P(_.Dx,{cond:function(){return y()&&!C()},
then:function(){return _.P("div",{class:_.sZ("ytDropdownViewModelSupport","ytDropdownViewModelSupportHint")},_.P(_.wh,{text:y,className:"ytDropdownViewModelSupportText"}))}}),_.P(_.Dx,{cond:C,
then:function(){return _.P("div",{id:"dropdown-view-model-error",role:"alert",class:_.sZ("ytDropdownViewModelSupport","ytDropdownViewModelSupportError")},_.P(_.ez,{icon:"INFO",className:"ytDropdownViewModelSupportIcon"}),_.P(_.wh,{text:C,className:"ytDropdownViewModelSupportText"}))}}))};
D9H=function(I,C){var y=_.N().resolve(_.cAe);_.RU(function(){var k=I().id;k&&y!=null&&y.dropdownMap.set(k,C)})};
Q1H=function(I){I=_.l(I.scheduleButton,p2Y);I=_.l(I==null?void 0:I.primaryButton,_.Xi);I=_.l(I==null?void 0:I.onTap,_.$$);var C,y,k=((y=_.l(I,_.r9))==null?void 0:y.commands)||[I];y=_.T(k);for(I=y.next();!I.done&&!(C=_.l(I.value,_.KIY));I=y.next());var F;C=(F=C)==null?void 0:F.createBroadcastRequest;if(!C)throw Error("Hj");return C};
lDj=function(I,C,y){y=y===void 0?{}:y;var k,F;return _.e(function(z){if(k=NQP(C))return z.return(k);(F=VyB(I,C,y))&&j1P(C,F);return z.return(F)})};
j1P=function(I,C){var y=X2y(I);y&&C.then(function(k){_.N().resolve(_.O_).put(y,new _.as({innertubeResponse:k}))})};
NQP=function(I){if(I=X2y(I)){var C=_.N().resolve(_.O_);if(C.has(I))return C.get(I).then(function(y){return y==null?void 0:_.zb(y)})}return null};
X2y=function(I){var C=_.l(I.endpoint,_.H$);if(C!=null&&C.videoId)return C={videoId:C.videoId},_.V("web_imp_player_mute_params")&&(C.mutedAtStart=I.startPlaybackInMutedState),_.Uh("inline_playback",C)};
VyB=function(I,C,y){I=_.gh(I,C.endpoint,$9Y(C,y)).then(function(k){return k});
return Promise.resolve(I)};
$9Y=function(I,C){C=_.V("web_imp_player_mute_params")?Object.assign({},{vis:5,inlinePlayback:!0,inlineUnmuted:!I.startPlaybackInMutedState},C):Object.assign({},{vis:5,autonav:"1"},C);var y;C={contentPlaybackContext:_.Lp(C,(y=_.l(I.endpoint.commandMetadata,_.It))==null?void 0:y.url,window.location.href)};_.V("web_imp_player_mute_params")&&(C.overrideMutedAtStart=!I.startPlaybackInMutedState);return C};
GeK=function(I,C){var y=window.MutationObserver;y&&(J6=new y(function(k,F){k=_.T(k);for(var z=k.next();!z.done;z=k.next()){z=z.value;var c;if(c=z.type==="childList"&&z.target)a:{c=I;z=R3M(z.target);c=R3M(c);for(var r=null,w=0;w<z.length;w++)if(c.includes(z[w])){if(w===0){c=!1;break a}r=z[w];break}r?(z=bLL(z,r),c=bLL(c,r),c=z<c):c=!1}if(c){C();F.disconnect();break}}}),(y=YBK())&&J6.observe(y,{childList:!0,
subtree:!0}))};
YBK=function(){var I=document.getElementsByTagName("ytd-rich-grid-renderer");if(I.length>0)return I[0];I=document.getElementsByTagName("ytd-section-list-renderer");return I.length>0?I[0]:null};
R3M=function(I){for(var C=[];I;)C.push(I),I=I.parentElement;return C};
bLL=function(I,C){var y=Array.from(C.children);C=I.indexOf(C);return C>0?y.indexOf(I[C-1]):-1};
Ok=function(I,C,y){y=y===void 0?{}:y;return _.PQ(I,y,C)};
fDH=function(I){return I==null?void 0:I.filter(function(C){return C.premiereTrailerBadgeRenderer})};
AkY=function(I,C){var y="",k="";switch(I){case -1:case 0:y=C?"VOLUME_OFF":"VOLUME_OFF_FILLED";k=SBK;break;case 1:y=C?"VOLUME_UP_OUTLINE":"VOLUME_UP";k=KcR;break;default:_.C8(I)}return{iconName:y,ariaLabel:k}};
qBP=function(I,C){var y=gqR,k=_.T(_.c4(vq8(new Wcy(function(){},y,C)),void 0,"PAnyd")),F=k.next().value,z=k.next().value,c=new Wcy(function(r){z(r)},y,C);
_.l0(function(){Promise.resolve().then(function(){var r,w=(r=I())!=null?r:{};c.playerControlsData=w;_.V("player_controls_skip_double_signal_old")&&(c.lastSeenPlayerApi=_.vJ(w.playerApi));_.V("player_controls_skip_double_signal_old")||(c.lastSeenPlayerApi=_.vJ(w.playerApi));d98(c)});
_.$4(function(){x9Y(c)})});
_.$4(function(){x9Y(c)});
return function(){return F()}};
m9j=function(I){return function(C){var y=I(),k={playerState:C};if(C===1){var F;(F=y.playerApi)==null||F.loadModule("captions")}if(C===0){var z;(z=y.playerApi)==null||z.unloadModule("captions")}(C!==-1||_.V("web_imp_controls_set_player_state_killswitch"))&&y.setState(k)}};
ZLy=function(I){return function(C){I().setState({playbackRate:C})}};
BQH=function(I){return function(C){var y=I(),k=y.playerApi,F=k==null?void 0:k.getVideoData(),z=(F==null?void 0:F.isLive)||!1;F=F==null?void 0:F.video_id;z={videoDuration:ieK(k||void 0),isLive:z,videoId:F};z.videoId!==y.videoId&&(z=Object.assign({},_.mO9(k),z));if(C==null?0:C.playertype)z.playerType=C.playertype;if(k){z.captionsAvailable=!!k.getOptions("captions");C=z;var c;F=(c=k.getStoryboardLevel(k.getNumberOfStoryboardLevels()-1))==null?void 0:c.intervalMs;C.storyboardInterval=F?F/1E3:void 0;z.captionsAvailable&&
(z.captionsEnabled=zCH(k))}z.volumeMuted=!(k==null||!k.isMuted());y.setState(z)}};
EqR=function(I){return function(C){var y=I(),k=y.playerApi;if(k){var F=k.getPresentingPlayerType();C={playedTime:C||0,percentLoaded:k.getVideoLoadedFraction(),playerType:F};y.playerState===0&&(C.playedTime=y.videoDuration);y.isLive&&(F=k.getProgressState(F),C.playedTime-=F.seekableStart,C.videoDuration=ieK(k));if(y.playerType===1)k=!1;else{var z;if(_.V("embeds_emc3ds_dompaused_fix")&&((z=y.uxConfig)==null?0:z.showCuedOverlay)){var c;k=!((c=y.playerApi)==null?0:c.getPlayerStateObject(y.playerType).isDomPaused)}else k=
!0}k&&delete C.playedTime;y.setState(C)}}};
h3Y=function(I){return function(){var C=I(),y,k,F,z={volume:(F=(y=C.playerApi)==null?void 0:y.getVolume())!=null?F:0,volumeMuted:!((k=C.playerApi)==null||!k.isMuted())};C.setState(z)}};
U9L=function(I){return function(){var C=I(),y=C.playerApi;if(y){var k={captionsAvailable:!!y.getOptions("captions")};k.captionsAvailable&&(k.captionsEnabled=zCH(y));C.setState(k)}}};
HLH=function(I){return function(){var C=I();if(C.playerApi&&!(C.volumeMuted||C.controlsVisible&&C.isProbablyAScreenreaderUser)){C.setState({controlsVisible:!0,isProbablyAScreenreaderUser:!0});var y;(y=document.querySelector(".player-control-play-pause-icon"))==null||y.focus()}}};
tyK=function(I){return{appApi:Object.assign({},_.AIm(),{showCaptionsToggleToast:function(C){var y,k;(k=(y=I()).showCaptionsToggleToast)==null||k.call(y,C)},
openInMiniplayer:function(){var C,y;(y=(C=I()).openInMiniplayer)==null||y.call(C)}})}};
JkL=function(I,C){var y,k,F;return!!(I==null?0:(y=I.playerResponse)==null?0:(k=y.playerConfig)==null?0:(F=k.inlinePlaybackConfig)==null?0:F.showScrubbingControls)&&!(C==null?0:C.hideScrubbingControls)};
_.OL8=function(I){var C=!I.miniplayerIsActive;return[5,2,0].includes(I.miniplayerPlaybackState)||C};
aDB={FILLED:"youtube_fill",OUTLINE:"youtube_outline"};Myj=function(I,C){var y,k,F,z,c;_.e(function(r){if(!C.length)return r.return([]);y=[];k=_.T(C);for(F=k.next();!F.done;F=k.next())z=F.value,(c=I.resolveIcon(z))&&!I.iconCache[c.url]&&y.push(_.NSY(I,c).then(function(){}).catch(function(){}));
return r.return(Promise.all(y))})};
IfB=function(I,C){var y=[];C=(new Set(C)).values();C=_.T(C);for(var k=C.next();!k.done;k=C.next()){k=k.value;for(var F=_.T(Object.values(aDB)),z=F.next();!z.done;z=F.next())y.push({iconName:k,iconStyle:z.value})}Myj(I.iconManager,y)};
_.C0j=function(I,C,y){var k=y!=null?y:I.iconsToFetch;k!=null&&k.length?C!==void 0&&C>=0?_.NU(_.b$,function(){IfB(I,k)},C):IfB(I,k):Promise.resolve()};
wiK={};
Wcy=function(I,C,y){var k=this;this.renderFn=I;this.listeners=C;this.context=y;this.eventListenerCleanupFunctions=[];this.recentlyNavigated=!1;var F;this.lastSeenPlayerApi=_.vJ((F=this.playerControlsData)==null?void 0:F.playerApi);this.boundSetState=this.setState.bind(this);this.state=Object.assign({},_.mO9(),void 0);_.V("player_controls_render_optimization")&&window.addEventListener("state-navigatestart",function(){vq8(k).setState({playerState:-1});k.resetRecentlyNavigatedJobId&&_.b$.cancelJob(k.resetRecentlyNavigatedJobId);k.recentlyNavigated=
!0;k.resetRecentlyNavigatedJobId=_.b$.addJob(function(){k.recentlyNavigated=!1},8,1E4)})};
Wcy.prototype.setState=function(I){if(!_.V("mweb_player_skip_no_op_state_changes")||!nFL(I,this.state))if(this.state=Object.assign({},this.state,I),!_.V("player_controls_render_optimization")||this.state.playerState!==-1&&this.state.playerState!==5||!this.recentlyNavigated)I=-1,_.V("player_controls_log_creation_killswitch")||P3S()||(I=(0,_.JY)()),_.Sr("pcu_s"),_.Sr("pcu_se"),_.Sr("pcu_rs"),this.renderFn(vq8(this)),_.Sr("pcu_re"),LwR(I),_.b$.addJob(function(){_.Sr("pcu_ap")},8)};
var vq8=function(I){var C;var y=_.vJ((C=I.playerControlsData)==null?void 0:C.playerApi);return Object.assign({},I.state,{setState:I.boundSetState,domMeasurements:{progressBarLineRect:I.progressBarLineRect},playerApi:y,appApi:I.context.appApi,playerContainer:I.context.playerContainer,playerControlContainer:I.context.playerControlContainer,uxConfig:I.context.uxConfig})},d98=function(I){I.listeners.forEach(function(C){I.eventListenerCleanupFunctions.push(C.register(function(){return vq8(I)},function(){return I.getData()}))})},
x9Y=function(I){I.eventListenerCleanupFunctions.forEach(function(C){C()});
I.eventListenerCleanupFunctions.length=0};
Wcy.prototype.getData=function(){return this.playerControlsData};
var a3=new _.J("abuseReportFlowState");var sFY=new _.J("feedbackFormFlowState");var o4L=new _.J("inputBoxViewModel");var yf8=new _.J("flowNextStepCommand");var kOK=new _.J("flowPrevStepCommand");var FCK=new _.J("updateFlowCommand");_.u$y=new _.J("flowStepRenderer");_.s1y=new _.J("lengthValidationRule");var yky=new _.J("regexValidationRule");var FcM=new _.J("selectedValidationRule");var zzP=new _.J("talkToRecsViewModel");var TeM=new _.J("creatorGoalSetUpFlowDropdownItemViewModel");var cfL=new _.J("creatorGoalSetUpFlowDropdownViewModel");_.ezH=new _.J("radioButtonGroupViewModel");var p2Y=new _.J("panelFooterViewModel");var rfj=new _.J("ypcCancelRecurrenceCommand");var i$L=new _.J("cancellationFlowState");var t6=new _.J("premiumPurchaseFlowState");var w4y=new _.J("surveyAnswerCardRenderer");var n48=new _.J("showMoreButtonRenderer");var P08;var LCH,DTK=function(){if(LCH!==void 0)return LCH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;P08===void 0&&(P08=document.createElement("template"));var k=P08;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return LCH=I};var Mw=function(){var I=_.q.apply(this,arguments)||this;I.goal="CREATOR_GOALS_PURCHASE_TARGET_10_SC";I.goalDescription="";I.timer="CREATOR_GOAL_TIME_LIMIT_30_MINUTES";I.tier="CREATOR_GOALS_ELIGIBLE_PURCHASE_TYPE_TEAL_SC";I.startButtonId="start-button";I.exampleButtonId="example-button";return I};
_.R(Mw,_.q);_.u=Mw.prototype;_.u.getGoalDropdownItems=function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.purchaseTargetDropdown,cfL))==null?void 0:C.dropdownItems};
_.u.getTimerDropdownItems=function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.timerDropdown,cfL))==null?void 0:C.dropdownItems};
_.u.getColorDropdownItems=function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.colorDropdown,cfL))==null?void 0:C.dropdownItems};
_.u.getDropdownItemText=function(I){var C;return(C=_.l(I,TeM))==null?void 0:C.itemLabel};
_.u.getDropdownItemValue=function(I){I=_.l(I,TeM);return(I==null?void 0:I.timeLimit)||(I==null?void 0:I.purchaseTarget)||(I==null?void 0:I.eligiblePurchaseType)};
_.u.updateFlowState=function(I){_.Fe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{creatorGoalSetUpFlowState:I}])};
_.u.attached=function(){this.updateFlowState({goalDescription:this.goalDescription,targetPurchases:this.goal,goalDuration:this.timer,eligiblePurchaseType:this.tier})};
_.u.updateGoalValue=function(I){this.goal=I.detail.value;this.updateFlowState({targetPurchases:this.goal})};
_.u.onTextValueChanged=function(I){this.goalDescription=I.detail.value;this.updateFlowState({goalDescription:this.goalDescription})};
_.u.updateTimerValue=function(I){this.timer=I.detail.value;this.updateFlowState({goalDuration:this.timer})};
_.u.updateTierValue=function(I){this.tier=I.detail.value;this.updateFlowState({eligiblePurchaseType:this.tier})};
_.u.getButtonViewModel=function(I){I=(I==null?void 0:I.length)>0?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED";var C,y=_.l((C=this.data)==null?void 0:C.startGoalButton,_.Xi);return Object.assign({},y,{state:I})};
_.H1.Object.defineProperties(Mw,{template:{configurable:!0,enumerable:!0,get:function(){return DTK()}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mw.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"goal",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"goalDescription",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"timer",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"tier",void 0);
_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"startButtonId",void 0);_.E([_.d(),_.h("design:type",Object)],Mw.prototype,"exampleButtonId",void 0);Mw=_.E([_.lT({is:"yt-creator-goal-set-up-flow-view-model",disableElementRegistration:!0,noInjection:!0})],Mw);_.Z(Mw,"yt-creator-goal-set-up-flow-view-model",function(){return DTK()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var p4P;var QFH;var NeK;var Ig=function(){return _.q.apply(this,arguments)||this};
_.R(Ig,_.q);_.E([_.d(),_.h("design:type",Object)],Ig.prototype,"data",void 0);Ig=_.E([_.lT({is:"yt-survey-answer-card-renderer",disableElementRegistration:!0})],Ig);
_.Z(Ig,"yt-survey-answer-card-renderer",function(){if(NeK===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;QFH===void 0&&(QFH=document.createElement("template"));var k=QFH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);NeK=I}I=NeK;return I},{mode:2});var VXK;var jFY;var C4=function(){return _.q.apply(this,arguments)||this};
_.R(C4,_.q);_.u=C4.prototype;_.u.onSelectedItemChanged=function(){this.selectedItem&&this.selectedItemChanged(this.selectedItem)};
_.u.selectedItemChanged=function(I){_.Fe(this.hostElement,"yt-survey-flow-step-option-changed",[{feedbackTokens:[I.feedbackToken||""]}])};
_.u.surveyAnswerCardRendererClicked=function(I){if(I.target&&_.l(I.model.item,w4y)){var C=I.target;I=_.l(I.model.item,w4y);I.onTapCommand?_.cQ(C,[I.onTapCommand],C):this.data.onTapCommand&&_.cQ(C,[this.data.onTapCommand],C);this.selectedItemChanged(I)}};
_.u.checkIsCancellationStyle=function(I){return I==="SURVEY_FLOW_STEP_RENDERER_STYLE_CANCELLATION"};
_.u.updateSelectedItemFromBinding=function(I){this.selectedItem=I.detail.value};
C4.prototype.onSelectedItemChanged=C4.prototype.onSelectedItemChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],C4.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],C4.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],C4.prototype,"selectedItem",void 0);_.E([_.d({computed:"checkIsCancellationStyle(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],C4.prototype,"isCancellationStyle",void 0);
_.E([_.FI("selectedItem"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C4.prototype,"onSelectedItemChanged",null);C4=_.E([_.lT({is:"yt-survey-flow-step-renderer",disableElementRegistration:!0})],C4);
_.Z(C4,"yt-survey-flow-step-renderer",function(){if(jFY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;VXK===void 0&&(VXK=document.createElement("template"));var k=VXK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);jFY=I}I=jFY;return I},{mode:2});var sg=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged"};return I};
_.R(sg,_.q);sg.prototype.handleSurveyFlowStepOptionChanged=function(I){this.ytdReduxBehavior.dispatch(_.yE({type:"YPC_UPDATE_SURVEY_FEEDBACK_DATA",payload:I}));_.Fe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:I}}])};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sg.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],sg.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sg.prototype,"data",void 0);sg=_.E([_.m({disableElementRegistration:!0,is:"ytd-survey-flow-step-renderer"})],sg);
_.Z(sg,"ytd-survey-flow-step-renderer",function(){if(p4P!==void 0)return p4P;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return p4P=I},{mode:1});var DbY;DbY=_.Qg({avatarViewModel:_.XS,buttonViewModel:_.fM,subscribeButtonViewModel:_.oNq,imageBannerViewModel:_.Nn});_.lfK=_.ks(_.QEH);_.MU(_.QEH);var X4R;var og=function(){return _.q.apply(this,arguments)||this};
_.R(og,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],og.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],og.prototype,"data",void 0);og=_.E([_.m({is:"ytd-channel-history-renderer",disableElementRegistration:!0})],og);
_.Z(og,"ytd-channel-history-renderer",function(){if(X4R!==void 0)return X4R;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return X4R=I},{mode:1});var $TM;var y3=function(){return _.q.apply(this,arguments)||this};
_.R(y3,_.q);_.E([_.d(),_.h("design:type",Object)],y3.prototype,"data",void 0);y3=_.E([_.m({is:"ytd-feature-enablement-info-renderer",disableElementRegistration:!0})],y3);
_.Z(y3,"ytd-feature-enablement-info-renderer",function(){if($TM!==void 0)return $TM;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $TM=I},{mode:1});var RzH;var b$L;var kL=function(){var I=_.q.apply(this,arguments)||this;I.textBoxMaxLength=_.V("enable_tvod_campaign_code_integration")?15:12;return I};
_.R(kL,_.q);_.u=kL.prototype;_.u.dataChanged=function(){this.userInput=this.data.couponCode?this.data.couponCode:"";this.validate()};
_.u.onSubmit=function(){var I=this.data.serviceEndpoint,C=_.l(I,_.sd);C&&I&&(C.couponCode=this.userInput,_.V("web_ytd_ypc_coupon_renderer_command_resolver_ks")?_.Tg(this.hostElement,[I]):_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}}))};
_.u.validate=function(){var I=!(!this.data||!this.data.couponCode||this.data.couponCode!==this.userInput);this.showTick=I&&!this.data.errorMessage;this.showErrorMessage=I&&!!this.data.errorMessage;this.hideApplyButton=!this.userInput||this.showTick||this.showErrorMessage;this.disableApplyButton=_.V("enable_tvod_campaign_code_integration")?this.userInput.match(/^[\d\w]{5,15}$/)===null:this.userInput.match(/^[\d\w]{12}$/)===null};
_.u.computeStyle=function(I){return I};
_.u.computeShowValidationBelowInput=function(I){return I!=="YPC_COUPON_RENDERER_STYLE_END_ALIGN"};
_.u.updateUserInputFromBinding=function(I){this.userInput=I.currentTarget.value};
_.u.updateShowErrorMessageFromBinding=function(I){this.showErrorMessage=I.detail.value};
_.H1.Object.defineProperties(kL.prototype,{validationState:{configurable:!0,enumerable:!0,get:function(){return this.showTick?"success":this.showErrorMessage?"error":this.userInput?"user-input":"default"}}});
kL.prototype.dataChanged=kL.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kL.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kL.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],kL.prototype,"userInput",void 0);_.E([_.d(),_.h("design:type",Boolean)],kL.prototype,"disableApplyButton",void 0);_.E([_.d(),_.h("design:type",Boolean)],kL.prototype,"hideApplyButton",void 0);
_.E([_.d(),_.h("design:type",Boolean)],kL.prototype,"hideErrorMessage",void 0);_.E([_.d(),_.h("design:type",Boolean)],kL.prototype,"showTick",void 0);_.E([_.d(),_.h("design:type",Boolean)],kL.prototype,"showErrorMessage",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],kL.prototype,"couponStyle",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeShowValidationBelowInput(data.style)"}),_.h("design:type",Boolean)],kL.prototype,"showValidationBelowInput",void 0);_.E([_.d(),_.h("design:type",Object)],kL.prototype,"textBoxMaxLength",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kL.prototype,"dataChanged",null);
_.E([_.v("showTick","showErrorMessage","userInput"),_.h("design:type",String),_.h("design:paramtypes",[])],kL.prototype,"validationState",null);kL=_.E([_.m({disableElementRegistration:!0,is:"ytd-ypc-coupon-renderer"})],kL);
_.Z(kL,"ytd-ypc-coupon-renderer",function(){if(b$L!==void 0)return b$L;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return b$L=I},{mode:1});var Ft=function(){return _.q.apply(this,arguments)||this};
_.R(Ft,_.q);Ft.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"}}}};
Ft.prototype.computeStyle=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ft.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ft.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ft.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],Ft.prototype,"buttonStyle",void 0);Ft=_.E([_.m({is:"ytd-flow-bottom-bar-renderer",disableElementRegistration:!0})],Ft);
_.Z(Ft,"ytd-flow-bottom-bar-renderer",function(){if(RzH!==void 0)return RzH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return RzH=I},{mode:1});var YuR;var GOM;var ffB;var uJ=function(){return _.q.apply(this,arguments)||this};
_.R(uJ,_.q);uJ.prototype.configureRendererStamper=function(){return{"data.trailingButtons":{id:"trailing-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.backButton":{id:"back-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
uJ.prototype.focus=function(I){this.title&&_.UL(this.title,I)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uJ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],uJ.prototype,"data",void 0);_.E([_.z$("#title"),_.h("design:type",HTMLElement)],uJ.prototype,"title",void 0);uJ=_.E([_.m({is:"ytd-flow-top-bar-renderer",disableElementRegistration:!0})],uJ);
_.Z(uJ,"ytd-flow-top-bar-renderer",function(){if(ffB!==void 0)return ffB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ffB=I},{mode:1});var Suj;var KCS;var AfL;var zF=function(){return _.q.apply(this,arguments)||this};
_.R(zF,_.q);zF.prototype.freeTextValueChanged=function(){_.Fe(this.hostElement,"yt-free-text-flow-step-input-changed",[{freeTextAnswers:[{answer:this.freeTextValue}]}])};
zF.prototype.updateFreeTextValueFromBinding=function(I){this.freeTextValue=I.detail.value};
_.H1.Object.defineProperties(zF.prototype,{characterLimitClass:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(C=(I=this.data)==null?void 0:I.responseMaxLength)!=null?C:500,k;return((k=this.freeTextValue)!=null?k:"").length>=y?"maxed-out":""}}});
zF.prototype.freeTextValueChanged=zF.prototype.freeTextValueChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zF.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zF.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],zF.prototype,"freeTextValue",void 0);_.E([_.z$("#user-input"),_.h("design:type",HTMLTextAreaElement)],zF.prototype,"input",void 0);
_.E([_.v("freeTextValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],zF.prototype,"characterLimitClass",null);_.E([_.FI("freeTextValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zF.prototype,"freeTextValueChanged",null);zF=_.E([_.lT({is:"yt-free-text-input-flow-step-renderer",disableElementRegistration:!0})],zF);
_.Z(zF,"yt-free-text-input-flow-step-renderer",function(){if(AfL===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;KCS===void 0&&(KCS=document.createElement("template"));var k=KCS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);AfL=I}I=AfL;return I},{mode:2});var TF=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-free-text-flow-step-input-changed":"handleFreeTextFlowStepInputChanged"};return I};
_.R(TF,_.q);TF.prototype.handleFreeTextFlowStepInputChanged=function(I){_.Fe(this.hostElement,"yt-flow-partial-update-flow-state-entity",[{cancellationFlowState:{surveyFeedback:I}}])};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],TF.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],TF.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],TF.prototype,"data",void 0);TF=_.E([_.m({disableElementRegistration:!0,is:"ytd-free-text-input-flow-step-renderer"})],TF);
_.Z(TF,"ytd-free-text-input-flow-step-renderer",function(){if(Suj!==void 0)return Suj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Suj=I},{mode:1});var g4Y;var v4j;var cU=function(){return _.q.apply(this,arguments)||this};
_.R(cU,_.q);_.E([_.d(),_.h("design:type",Object)],cU.prototype,"data",void 0);cU=_.E([_.m({disableElementRegistration:!0,is:"ytd-metadata-line-renderer"})],cU);
_.Z(cU,"ytd-metadata-line-renderer",function(){if(v4j!==void 0)return v4j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return v4j=I},{mode:1});var ex=function(){return _.q.apply(this,arguments)||this};
_.R(ex,_.q);ex.prototype.configureRendererStamper=function(){return{"data.metadataLines":{id:"metadata-lines",mapping:{metadataLineRenderer:{component:"ytd-metadata-line-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ex.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ex.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ex.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ex.prototype,"isMasthead",void 0);ex=_.E([_.m({disableElementRegistration:!0,is:"ytd-media-product-renderer"})],ex);
_.Z(ex,"ytd-media-product-renderer",function(){if(g4Y!==void 0)return g4Y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return g4Y=I},{mode:1});var WCS;var rZ=function(){return _.q.apply(this,arguments)||this};
_.R(rZ,_.q);rZ.prototype.attached=function(){this.billboardImage.notifyOnLoaded=!0};
rZ.prototype.onBillboardImageLoaded=function(){_.k3(this.hostElement,"yt-refit")};
rZ.prototype.onBillboardImageLoaded=rZ.prototype.onBillboardImageLoaded;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rZ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rZ.prototype,"data",void 0);_.E([_.z$("#billboardImage"),_.h("design:type",Object)],rZ.prototype,"billboardImage",void 0);_.E([_.km("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rZ.prototype,"onBillboardImageLoaded",null);
rZ=_.E([_.m({disableElementRegistration:!0,is:"ytd-billboard-masthead-renderer"})],rZ);
_.Z(rZ,"ytd-billboard-masthead-renderer",function(){if(WCS!==void 0)return WCS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return WCS=I},{mode:1});var dTj;var iJ=function(){var I=_.q.apply(this,arguments)||this;I.smallSize=!1;return I};
_.R(iJ,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],iJ.prototype,"ytComponentBehaviorType",void 0);_.E([_.d(),_.h("design:type",Object)],iJ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iJ.prototype,"smallSize",void 0);iJ=_.E([_.m({disableElementRegistration:!0,is:"ytd-bullet-formatted-string"})],iJ);
_.Z(iJ,"ytd-bullet-formatted-string",function(){if(dTj!==void 0)return dTj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return dTj=I},{mode:1});var xTy;var wZ=function(){return _.q.apply(this,arguments)||this};
_.R(wZ,_.q);wZ.prototype.configureRendererStamper=function(){return{"data.product":{id:"product",mapping:{mediaProductRenderer:"ytd-media-product-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wZ.prototype,"data",void 0);wZ=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-renderer"})],wZ);
_.Z(wZ,"ytd-offer-detail-renderer",function(){if(xTy!==void 0)return xTy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xTy=I},{mode:1});var quY;var n4=function(){return _.q.apply(this,arguments)||this};
_.R(n4,_.q);n4.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerDetailRenderer:"ytd-offer-detail-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],n4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],n4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],n4.prototype,"data",void 0);n4=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-detail-step-renderer"})],n4);
_.Z(n4,"ytd-offer-detail-step-renderer",function(){if(quY!==void 0)return quY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return quY=I},{mode:1});var mTL;var PU=function(){var I=_.q.apply(this,arguments)||this;I.isInOfferModule=!1;return I};
_.R(PU,_.q);_.u=PU.prototype;_.u.computeHasEndpoint=function(){var I;return!((I=this.data)==null||!I.onClickCommand)};
_.u.dataChanged=function(){var I;if((I=this.data)==null?0:I.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")};
_.u.detached=function(){var I;if((I=this.data)==null?0:I.onClickCommand)this.hostElement.removeEventListener("click",this.handleClickEvent),this.hostElement.removeEventListener("keydown",this.onContentKeyDown),this.hostElement.removeEventListener("keyup",this.onContentKeyUp)};
_.u.handleClickEvent=function(){var I;if((I=this.data)==null?0:I.onClickCommand){var C;this.componentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand)}};
_.u.onContentKeyDown=function(I){I.key==="Enter"?this.handleClickEvent(I):I.key===" "&&I.preventDefault()};
_.u.onContentKeyUp=function(I){I.key===" "&&this.handleClickEvent(I)};
PU.prototype.dataChanged=PU.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PU.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],PU.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PU.prototype,"data",void 0);_.E([_.d({computed:"computeHasEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],PU.prototype,"hasEndpoint",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],PU.prototype,"isInOfferModule",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PU.prototype,"dataChanged",null);PU=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-masthead-renderer"})],PU);
_.Z(PU,"ytd-channel-masthead-renderer",function(){if(mTL!==void 0)return mTL;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mTL=I},{mode:1});var Z$P;var L4=function(){var I=_.q.apply(this,arguments)||this;I.thumbnailObjectFit="CONTAIN";I.thumbnailObjectPosition="LEFT";I.isExpanded=!1;return I};
_.R(L4,_.q);_.u=L4.prototype;_.u.configureRendererStamper=function(){return{data:{id:"thumbnail",mapping:{thumbnail:{component:"yt-img-shadow",properties:{thumbnail:"[[data.thumbnail]]",objectFit:"[[thumbnailObjectFit]]",objectPosition:"[[thumbnailObjectPosition]]"}}}}}};
_.u.dataChanged=function(){this.resetStates()};
_.u.computeisTapOnOfferInfoContainerEnabled=function(){var I;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"};
_.u.onExpandBtnClick=function(){var I,C=_.l((I=this.data)==null?void 0:I.showMoreButtonRenderer,n48);C&&_.FV(_.e2(),C.trackingParams);this.isExpanded=!this.isExpanded};
_.u.onOfferInfoClick=function(I){this.isTapOnOfferInfoContainerEnabled&&(_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString()])||_.m4(_.qc(I)||[],this.hostElement,["expand-button"])||this.executeTapCommand())};
_.u.onBottomBarClick=function(){this.executeTapCommand()};
_.u.executeTapCommand=function(){var I,C=(I=this.data)==null?void 0:I.tapCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.u.resetStates=function(){this.isExpanded=!1};
_.H1.Object.defineProperties(L4.prototype,{hasThumbnail:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.thumbnail)}},
enableExpandButton:{configurable:!0,enumerable:!0,get:function(){var I=!(!this.showMoreButtonTitle||!this.showLessButtonTitle),C,y,k;return((C=this.data)==null?void 0:C.styleType)==="CARD_STYLE_TYPE_INTERACTIVE_CARD"&&I&&!!((y=this.data)==null?0:(k=y.benefits)==null?0:k.length)}},
enableOfferContentIcon:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_COMPACT"&&!this.enableExpandButton}},
showMoreButtonTitle:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((C=_.l((I=this.data)==null?void 0:I.showMoreButtonRenderer,n48))==null?void 0:C.showMoreButtonTitle)||((y=this.data)==null?void 0:y.showMoreButtonTitle)}},
showLessButtonTitle:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((C=_.l((I=this.data)==null?void 0:I.showMoreButtonRenderer,n48))==null?void 0:C.showLessButtonTitle)||((y=this.data)==null?void 0:y.showLessButtonTitle)}},
expandedBtnText:{configurable:!0,enumerable:!0,get:function(){if(this.isExpanded){var I;return(I=this.showLessButtonTitle)!=null?I:""}var C;return(C=this.showMoreButtonTitle)!=null?C:""}},
enableBottomBar:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?void 0:I.layoutType)==="CARD_LAYOUT_TYPE_FULL"&&!!(((C=this.data)==null?0:C.footerTitle)||((y=this.data)==null?0:y.footerSubtitle))}}});
L4.prototype.dataChanged=L4.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],L4.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],L4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],L4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",String)],L4.prototype,"thumbnailObjectFit",void 0);
_.E([_.d(),_.h("design:type",String)],L4.prototype,"thumbnailObjectPosition",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeisTapOnOfferInfoContainerEnabled(data)"}),_.h("design:type",Boolean)],L4.prototype,"isTapOnOfferInfoContainerEnabled",void 0);_.E([_.d(),_.h("design:type",Object)],L4.prototype,"isExpanded",void 0);_.E([_.d(),_.h("design:type",Object)],L4.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.footerIcon)"}),_.h("design:type",String)],L4.prototype,"icon",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],L4.prototype,"dataChanged",null);_.E([_.v("data.thumbnail"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L4.prototype,"hasThumbnail",null);_.E([_.v("showMoreButtonTitle","showLessButtonTitle","data.styleType","data.benefits"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L4.prototype,"enableExpandButton",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L4.prototype,"enableOfferContentIcon",null);_.E([_.v("data.showMoreButtonRenderer","data.showMoreButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],L4.prototype,"showMoreButtonTitle",null);_.E([_.v("data.showMoreButtonRenderer","data.showLessButtonTitle"),_.h("design:type",Object),_.h("design:paramtypes",[])],L4.prototype,"showLessButtonTitle",null);
_.E([_.v("isExpanded","showMoreButtonRenderer","showLessButtonTitle"),_.h("design:type",String),_.h("design:paramtypes",[])],L4.prototype,"expandedBtnText",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],L4.prototype,"enableBottomBar",null);L4=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-card-renderer"})],L4);
_.Z(L4,"ytd-offer-card-renderer",function(){if(Z$P!==void 0)return Z$P;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Z$P=I},{mode:1});var BeL;var Dc=function(){return _.q.apply(this,arguments)||this};
_.R(Dc,_.q);Dc.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"}}}};
Dc.prototype.onClick=function(I){if(!_.q3(I.composedPath()||[],this.hostElement,["A".toString()])){var C,y;if((I=(y=_.l((C=this.data)==null?void 0:C.actionButton,_.fZ))==null?void 0:y.command)&&!this.ytComponentBehavior.resolveCommand(I)){var k;(k=_.e2())==null||k.clickCommand(I);_.V("web_ytd_offer_content_renderer_command_resolver_ks")?_.Tg(this.hostElement,[I]):_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})}}};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Dc.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Dc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Dc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Dc.prototype,"data",void 0);Dc=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-content-renderer"})],Dc);
_.Z(Dc,"ytd-offer-content-renderer",function(){if(BeL!==void 0)return BeL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BeL=I},{mode:1});var E4M;var p4=function(){return _.q.apply(this,arguments)||this};
_.R(p4,_.q);p4.prototype.configureRendererStamper=function(){return{"data.offerList":{id:"offer-list",mapping:{offerContentRenderer:{component:"ytd-offer-content-renderer"},offerCardRenderer:{component:"ytd-offer-card-renderer"}}}}};
_.H1.Object.defineProperties(p4.prototype,{hasHeaderData:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.title)||!((C=this.data)==null||!C.description)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],p4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],p4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],p4.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],p4.prototype,"hasHeaderData",null);p4=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-section-renderer"})],p4);
_.Z(p4,"ytd-offer-section-renderer",function(){if(E4M!==void 0)return E4M;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return E4M=I},{mode:1});var hzY;var Q3=function(){return _.q.apply(this,arguments)||this};
_.R(Q3,_.q);
Q3.prototype.configureRendererStamper=function(){return{"data.masthead":{id:"masthead",mapping:{billboardMastheadRenderer:"ytd-billboard-masthead-renderer",channelMastheadRenderer:"ytd-channel-masthead-renderer",mediaProductRenderer:{component:"ytd-media-product-renderer",params:{isMasthead:!0}}}},"data.body":{id:"body",mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.coupon":{id:"coupon-section",mapping:{cardItemRenderer:{component:"yt-card-item-renderer"}}},"data.terms":{id:"terms-section",
mapping:{offerSectionRenderer:{component:"ytd-offer-section-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Q3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Q3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Q3.prototype,"data",void 0);Q3=_.E([_.m({disableElementRegistration:!0,is:"ytd-offer-selection-step-renderer"})],Q3);
_.Z(Q3,"ytd-offer-selection-step-renderer",function(){if(hzY!==void 0)return hzY;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hzY=I},{mode:1});var UTH;var NW=function(){return _.q.apply(this,arguments)||this};
_.R(NW,_.q);NW.prototype.computeStyle=function(I){return I};
NW.prototype.computeImageWidth=function(I){return I==="CONFIRMATION_MASTHEAD_RENDERER_STYLE_WIDE"?150:90};
_.E([_.d({reflectToAttribute:!0,value:"CONFIRMATION_MASTHEAD_RENDERER_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],NW.prototype,"containerStyle",void 0);_.E([_.d({reflectToAttribute:!0,value:90,computed:"computeImageWidth(data.style)"}),_.h("design:type",String)],NW.prototype,"imageWidth",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],NW.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],NW.prototype,"data",void 0);
NW=_.E([_.m({disableElementRegistration:!0,is:"ytd-confirmation-masthead-renderer"})],NW);
_.Z(NW,"ytd-confirmation-masthead-renderer",function(){if(UTH!==void 0)return UTH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UTH=I},{mode:1});var H$R;var V3=function(){return _.q.apply(this,arguments)||this};
_.R(V3,_.q);V3.prototype.computeStyle=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],V3.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],V3.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:"PURCHASE_COMPLETE_DETAIL_STYLE_UNKNOWN",computed:"computeStyle(data.style)"}),_.h("design:type",String)],V3.prototype,"containerStyle",void 0);V3=_.E([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-detail-renderer"})],V3);
_.Z(V3,"ytd-purchase-complete-detail-renderer",function(){if(H$R!==void 0)return H$R;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return H$R=I},{mode:1});var tXB;var jx=function(){var I=_.q.apply(this,arguments)||this;I.scriptsAppended=!1;return I};
_.R(jx,_.q);jx.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"}}}};
jx.prototype.onDataChanged=function(){var I=this.get("data.gtmId");I&&(_.rx(I,_.Aq("GL","")),this.setupConversionTracking())};
jx.prototype.setupConversionTracking=function(){if(!this.scriptsAppended){var I=document.createElement("noscript");I.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(I);this.scriptsAppended=!0}};
jx.prototype.onDataChanged=jx.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jx.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],jx.prototype,"scriptsAppended",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jx.prototype,"onDataChanged",null);jx=_.E([_.m({disableElementRegistration:!0,is:"ytd-purchase-complete-step-renderer"})],jx);
_.Z(jx,"ytd-purchase-complete-step-renderer",function(){if(tXB!==void 0)return tXB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tXB=I},{mode:1});var JfM;var lJ=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(lJ,_.q);lJ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lJ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lJ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lJ.prototype,"darkerDarkTheme",void 0);lJ=_.E([_.m({disableElementRegistration:!0,is:"ytd-ypc-transaction-error-message-renderer"})],lJ);
_.Z(lJ,"ytd-ypc-transaction-error-message-renderer",function(){if(JfM!==void 0)return JfM;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return JfM=I},{mode:1});var O$K;var af8;var Xt=function(){var I=_.q.apply(this,arguments)||this;I.handlePhoneVerificationSuccess=function(C){if(I.isValidPhoneVerificationCompletionMessageEvent(C)){var y;((y=I.data)==null?0:y.nextStepCommand)&&I.ytComponentBehavior.resolveCommand(I.data.nextStepCommand)}};
return I};
_.R(Xt,_.q);Xt.prototype.isValidPhoneVerificationCompletionMessageEvent=function(I){if(I.data!=="yt-phone-verification-complete")return!1;I=_.H5(I.origin);return I!==null&&I.includes("youtube.com")};
Xt.prototype.attached=function(){window.addEventListener("message",this.handlePhoneVerificationSuccess)};
Xt.prototype.detached=function(){window.removeEventListener("message",this.handlePhoneVerificationSuccess)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Xt.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Xt.prototype,"data",void 0);Xt=_.E([_.lT({is:"yt-feature-enablement-soft-entry-renderer",disableElementRegistration:!0})],Xt);
_.Z(Xt,"yt-feature-enablement-soft-entry-renderer",function(){if(af8===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;O$K===void 0&&(O$K=document.createElement("template"));var k=O$K;y.call(C,k.content.cloneNode(!0),I.content.firstChild);af8=I}I=af8;return I},{mode:1});var MXL;var IxK;var ChS;var sUL;var $L=function(){return _.q.apply(this,arguments)||this};
_.R($L,_.q);_.E([_.d(),_.h("design:type",Object)],$L.prototype,"data",void 0);$L=_.E([_.lT({is:"yt-benefits-item-renderer",disableElementRegistration:!0})],$L);
_.Z($L,"yt-benefits-item-renderer",function(){if(sUL===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;ChS===void 0&&(ChS=document.createElement("template"));var k=ChS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);sUL=I}I=sUL;return I},{mode:2});var oSR;var yqS;var Rg=function(){return _.q.apply(this,arguments)||this};
_.R(Rg,_.q);Rg.prototype.configureRendererStamper=function(){return{"data.items":{id:"benefits-items",mapping:{benefitsItemRenderer:{component:"yt-benefits-item-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
Rg.prototype.computeisWithoutPadding=function(){var I;return((I=this.data)==null?void 0:I.benefitsSectionStyle)==="BENEFITS_SECTION_RENDERER_STYLE_NO_MARGIN"};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Rg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Rg.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeisWithoutPadding(data)"}),_.h("design:type",Boolean)],Rg.prototype,"isWithoutPadding",void 0);Rg=_.E([_.lT({is:"yt-benefits-section-renderer",disableElementRegistration:!0})],Rg);
_.Z(Rg,"yt-benefits-section-renderer",function(){if(yqS===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;oSR===void 0&&(oSR=document.createElement("template"));var k=oSR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);yqS=I}I=yqS;return I},{mode:2});var bJ=function(){return _.q.apply(this,arguments)||this};
_.R(bJ,_.q);bJ.prototype.configureRendererStamper=function(){return{"data.benefitsSections":{id:"benefits-sections",mapping:{benefitsSectionRenderer:{component:"yt-benefits-section-renderer"},cardItemRenderer:{component:"yt-card-item-renderer"}}}}};
bJ.prototype.computeisUsingLargeWidth=function(){var I;return((I=this.data)==null?void 0:I.widthType)==="BENEFITS_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bJ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bJ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeisUsingLargeWidth(data)"}),_.h("design:type",Boolean)],bJ.prototype,"isUsingLargeWidth",void 0);bJ=_.E([_.lT({is:"yt-benefits-flow-step-renderer",disableElementRegistration:!0})],bJ);
_.Z(bJ,"yt-benefits-flow-step-renderer",function(){if(IxK===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;MXL===void 0&&(MXL=document.createElement("template"));var k=MXL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);IxK=I}I=IxK;return I},{mode:2});var kuj;var FnR;var YL=function(){return _.q.apply(this,arguments)||this};
_.R(YL,_.q);YL.prototype.checkIsUsingLargeWidth=function(){var I;return((I=this.data)==null?void 0:I.widthType)==="CONFIRMATION_FLOW_STEP_RENDERER_WIDTH_TYPE_LARGE"};
_.E([_.d(),_.h("design:type",Object)],YL.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],YL.prototype,"ytRendererBehavior",void 0);_.E([_.d({reflectToAttribute:!0,computed:"checkIsUsingLargeWidth(data)"}),_.h("design:type",Boolean)],YL.prototype,"isUsingLargeWidth",void 0);YL=_.E([_.lT({is:"yt-confirmation-flow-step-renderer",disableElementRegistration:!0})],YL);
_.Z(YL,"yt-confirmation-flow-step-renderer",function(){if(FnR===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;kuj===void 0&&(kuj=document.createElement("template"));var k=kuj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);FnR=I}I=FnR;return I},{mode:2});var u2R;var z8K;var GF=function(){return _.q.apply(this,arguments)||this};
_.R(GF,_.q);_.E([_.d(),_.h("design:type",Object)],GF.prototype,"data",void 0);GF=_.E([_.lT({is:"yt-info-flow-step-renderer",disableElementRegistration:!0})],GF);
_.Z(GF,"yt-info-flow-step-renderer",function(){if(z8K===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;u2R===void 0&&(u2R=document.createElement("template"));var k=u2R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);z8K=I}I=z8K;return I},{mode:2});var T5Y;var cqj;var f4=function(){return _.q.apply(this,arguments)||this};
_.R(f4,_.q);_.E([_.d(),_.h("design:type",Object)],f4.prototype,"data",void 0);f4=_.E([_.lT({is:"yt-info-list-flow-step-renderer",disableElementRegistration:!0})],f4);
_.Z(f4,"yt-info-list-flow-step-renderer",function(){if(cqj===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;T5Y===void 0&&(T5Y=document.createElement("template"));var k=T5Y;y.call(C,k.content.cloneNode(!0),I.content.firstChild);cqj=I}I=cqj;return I},{mode:2});var e8H=_.BO(function(I){var C=I.data;return _.P("styled-text-view-model",{class:_.sZ("ytStyledTextViewModelHost",function(){return KwH(C().fontAttributes)},function(){return S1Y(C().color)})},_.P(_.wh,{text:function(){return C().text},
ariaLabel:function(){var y,k,F;return(F=(y=C().accessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)!=null?F:""}}))},"Ge");
e8H.idomCompat=!0;var rqR=_.BO(function(I){var C=function(){var F,z,c,r;return(r=(c=(F=I.alt)==null?void 0:F.call(I))!=null?c:(z=I.data().accessibilityData)==null?void 0:z.label)!=null?r:""},y=function(){return I.data().imageWidth},k=function(){return I.data().imageHeight};
return _.P("themed-image-view-model",{class:"ytThemedImageViewModelHost"},_.P(_.Dx,{cond:function(){var F=I.data();if(F){var z,c,r;var w=((z=_.N().resolve(_.aU(_.AE)))==null?0:z())?(c=F.imageDark)!=null?c:F.imageLight:(r=F.imageLight)!=null?r:F.imageDark}else w=void 0;return w},
then:function(F){return _.P(_.x$,Object.assign({},I,{data:F,alt:C,targetWidth:y,targetHeight:k,preserveHeight:!0,preserveWidth:!0}))}}))},"He");
rqR.idomCompat=!0;var Sx=_.BO(function(I){var C=I.data;I=_.mh(function(){return C().slots},[]);
var y=_.mh(function(){return C().layoutProperties},{}),k=_.N().resolve(_.v9);
return _.P("container-layout-view-model",{class:"ytContainerLayoutViewModelHost",style:RCB(y,k)},_.P(_.pH,{each:I,keyBy:"INDEX"},function(F){return _.P("div",{class:"ytContainerLayoutViewModelSlot",style:RCB(function(){return F().layoutProperties},k)},_.P(_.lY,{data:function(){return F().contents}},{containerLayoutViewModel:Sx,
badgeViewModel:_.ml,buttonViewModel:_.fM,styledTextViewModel:e8H,contentPreviewImageViewModel:function(z){return _.P(_.Zh,{data:z.data,className:"ytContainerLayoutViewModelImage"})},
themedImageViewModel:function(z){return _.P(rqR,{data:z.data,preserveWidth:!0,preserveHeight:!0})}}))}))},"Ie");
Sx.idomCompat=!0;var iHP=_.BO(function(I){var C=I.data;var y=I.stateFns;var k=function(){var L=C(),D=L.productId;return!(!L.clearGroupId&&!D)},F=function(){var L=C(),D=L.clearGroupId;
return(L=L.productId)?y().isProductSelected(L):D?y().getSelectedProductByGroupId(D)==null:!1},z=function(){var L=C(),D=L.clearGroupId;
if(L=L.productId)y().onProductSelected(L);else if(D)y().onClearGroupSelected(D)},c=function(){var L=C(),D=L.clearGroupId;
if(L=L.productId){var p;return"group:"+(((p=y().getProductById(L))==null?void 0:p.groupId)||"")}return D?"group:"+D:""},r=_.mh(function(){return C().header},[]),w=_.mh(function(){return C().body},[]);
return _.P("pdp-card-section-view-model",{class:"ytPdpCardSectionViewModelHost"},_.P(_.Dx,{cond:function(){return r().length>0||k()},
then:function(){return _.P("label",{class:"ytPdpCardSectionViewModelHeaderSection"},_.P("div",{class:"ytPdpCardSectionViewModelHeaderContent"},_.P(_.lY,{data:r},{containerLayoutViewModel:function(L){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(Sx,{data:L.data}))},
styledTextViewModel:function(L){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(e8H,{data:L.data}))}})),_.P(_.Dx,{cond:k,
then:function(){return _.P("div",{class:"ytPdpCardSectionViewModelHeaderRadioContainer"},_.P(_.PL,{checked:F,name:c,onChange:z}))}}))}}),_.P(_.Dx,{cond:function(){return w().length>0},
then:function(){return _.P("div",null,_.P(_.lY,{data:w},{containerLayoutViewModel:function(L){return _.P("div",{class:"ytPdpCardSectionViewModelContentItem"},_.P(Sx,{data:L.data}))}}))}}))},"Je");
iHP.idomCompat=!0;var w5L=_.BO(function(I){var C=I.data;var y=I.stateFns;return _.P("pdp-card-view-model",{class:"ytPdpCardViewModelHost"},_.P(_.Dx,{cond:function(){return C().banner},
then:function(k){return _.P("div",{class:"ytPdpCardViewModelBanner"},_.P(_.wh,{text:k}))}}),_.P(_.lY,{data:function(){return C().sections}},{pdpCardSectionViewModel:function(k){k=k.data;
var F={};return _.P("div",{class:_.sZ("ytPdpCardViewModelSectionContainer",(F.ytPdpCardViewModelShowDividers=function(){return C().showDividers},F))},_.P(iHP,{data:k,
stateFns:y}))}}))},"Ke");
w5L.idomCompat=!0;var nSy=_.BO(function(I){var C=I.data;var y=I.isOverlay;I={};return _.P("pdp-masthead-view-model",{class:_.sZ("ytPdpMastheadViewModelHost",(I.ytPdpMastheadViewModelIsOverlay=y,I))},_.P(_.lY,{data:function(){return C().image}},{contentPreviewImageViewModel:_.Zh,
themedImageViewModel:function(k){return _.P(rqR,{data:k.data,alt:"",className:"ytPdpMastheadViewModelImage"})}}),_.P(_.Dx,{cond:function(){return C().title},
then:function(k){return _.P("h1",{class:"ytPdpMastheadViewModelHeading"},_.P(_.wh,{text:k,isOverlay:y}))}}),_.P(_.pH,{each:function(){var k;
return(k=C().finePrint)!=null?k:[]}},function(k){return _.P("div",{class:"ytPdpMastheadViewModelFinePrint"},_.P(_.wh,{text:k,
isOverlay:y}))}))},"Le");
nSy.idomCompat=!0;var PhY=_.BO(function(I){var C=I.data;var y=I.stateFns;return _.P("pdp-pricing-option-selector-view-model",{class:"ytPdpPricingOptionSelectorViewModelHost"},_.P(_.pH,{each:function(){var k=y().getSelectedPricingOptions().map(function(z){return z.pricingOptionId}),F=y().getSelectedProductByGroupId(C().groupId);
return F?F.pricingOptions.map(function(z){return{pricingOption:z,isSelected:k.includes(z.pricingOptionId)}}):(_.fi(Error("Gj`"+C().groupId)),[])},
keyBy:"INDEX"},function(k){return _.P("label",{class:"ytPdpPricingOptionSelectorViewModelOption"},_.P("div",{class:"ytPdpPricingOptionSelectorViewModelOptionContent"},_.P(_.lY,{data:function(){return k().pricingOption.pricingOptionSelectorOption}},{containerLayoutViewModel:Sx})),_.P("div",{class:"ytPdpPricingOptionSelectorViewModelOptionRadio"},_.P(_.PL,{checked:function(){return k().isSelected},
onClick:function(){y().onPricingOptionSelected(k().pricingOption.pricingOptionId);var F=k().pricingOption.onSelectPricingOption;if(F=_.Rj(F)){var z;(z=_.N().resolve(_.ID))==null||z.resolveCommand(F)}}})))}))},"Me");
PhY.idomCompat=!0;var LnK=_.BO(function(I){var C=I.data;var y=I.stateFns;return _.P("pdp-primary-button-view-model",{class:"ytPdpPrimaryButtonViewModelHost"},_.P(_.lY,{data:function(){var k,F;return(F=(k=y().getSelectedPricingOptions()[0])==null?void 0:k.primaryButton)!=null?F:C().emptyStateButton}},{buttonViewModel:_.fM}))},"Ne");
LnK.idomCompat=!0;var D$y=_.BO(function(I){var C=I.stateFns;return _.P("pdp-summary-view-model",{class:"ytPdpSummaryViewModelHost"},_.P(_.lY,{data:function(){return C().getSelectedPricingOptions().flatMap(function(y){return y.summaryLines}).filter(function(y){return!!y})}},{containerLayoutViewModel:function(y){return _.P("div",{class:"ytPdpSummaryViewModelLineItem"},_.P(Sx,{data:y.data}))}}))},"Oe");
D$y.idomCompat=!0;var p5H=_.BO(function(I){var C=I.data;I={};return _.P("divider-view-model",{class:_.sZ("divider-view-model-wiz",(I["divider-view-model-wiz__inset-thin-padding"]=function(){return C().dividerStyle==="DIVIDER_STYLE_INSET_THIN"},I))},_.P("div",{class:_.sZ("divider-view-model-wiz__base-divider",function(){return ZeH(C().dividerStyle)}),
style:_.cP({"background-color":function(){return C().backgroundColor?_.lg(C().backgroundColor):void 0}})}))},"Pe");
p5H.idomCompat=!0;var QUR=_.BO(function(I){function C(A){var x=c();_.qH(_.bY("pdpStateEntity",x,{key:x,selectedPricingOptions:A}))}
var y=I.data;var k=I.internalScrolling;var F=I.stateFnsForTesting;var z=_.mh(function(){return y().allProducts},[]),c=_.mh(function(){return y().pdpStateEntityKey},""),r=_.cj(Aiy,c),w=_.P4(function(){_.b0(!0);
var A;return(A=F==null?void 0:F())!=null?A:mbY(r,z,C)},void 0,"POBqwe"),L=_.mh(function(){return y().body},[]),D=_.mh(function(){return y().columnBreakHints},[]),p=function(){return y().backgroundMode==="PDP_BACKGROUND_MODE_FORCE_DARK"},Q=function(){return p()||y().backgroundMode==="PDP_BACKGROUND_MODE_DARK"},X=_.P4(function(){var A=_.J9(y().background),x;
if(A==null?0:(x=A.sources)==null?0:x.length){var B=B===void 0?!0:B;A=_.NBO(void 0,A.sources,void 0,B,B?1E3:void 0,B?void 0:1E3)}else A=null;return A},void 0,"BkCmEd");
I=_.cP({"--pdp-view-model-background":function(){return X()?"url("+X()+")":void 0}});
var b={};k=_.sZ("ytPdpViewModelHost",(b.ytPdpViewModelHasBackground=function(){return Q()||!!X()},b.ytPdpViewModelHasDarkBackground=Q,b.ytPdpViewModelHasScrim=p,b.ytPdpViewModelInternalScrolling=_.mh(k,!1),b));
var S=function(A){var x={};return _.sZ("ytPdpViewModelItem",(x.ytPdpViewModelFullBleed=function(){return _.Lmm(A())==="dividerViewModel"||_.Lmm(A())==="sectionHeaderViewModel"},x.ytPdpViewModelNoVerticalPadding=function(){return _.Lmm(A())==="sectionHeaderViewModel"},x))};
_.RU(function(){var A=y().onStartCommand;if(A&&(A=_.Rj(A))){var x;(x=_.N().resolve(_.ID))==null||x.resolveCommand(A)}});
return _.P("pdp-view-model",{class:k,style:I},_.P("div",{class:"ytPdpViewModelColumnContainer"},_.P(_.pH,{each:function(){return B0Y(L(),D())},
keyBy:"INDEX"},function(A){return _.P("div",{class:"ytPdpViewModelColumn"},_.P(_.lY,{data:A},{containerLayoutViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(Sx,{data:x}))},
dividerViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(p5H,{data:x}))},
pdpCardViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(w5L,{data:x,
stateFns:w}))},
pdpMastheadViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(nSy,{data:x,
isOverlay:Q}))},
pdpPricingOptionSelectorViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(PhY,{data:x,
stateFns:w}))},
pdpPrimaryButtonViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(LnK,{data:x,
stateFns:w}))},
pdpSummaryViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(D$y,{data:x,
stateFns:w}))},
sectionHeaderViewModel:function(x,B){x=x.data;return _.P("div",{class:S(function(){return A()[B()]})},_.P(_.Jv,{data:x}))}}))})))},"Qe");
QUR.idomCompat=!0;_.B9(QUR,"pdp-view-model",{props:{data:_.As,stateFnsForTesting:_.Z_,internalScrolling:_.Z_}});var N5L=_.BO(function(I){var C=I.data;var y=I.className;var k=_.cj(_.o7,function(){return C().flowStateEntityKey});
return _.P("ytm-premium-purchase-button-renderer",{class:_.sZ("yt-premium-purchase-button-renderer",y)},_.P(_.lY,{data:function(){var F;return(F=_.l(k(),t6))==null?void 0:F.primaryButtonOverride}},{buttonRenderer:function(F){return _.P(_.Gf,{data:F.data,
className:y})},
buttonViewModel:function(F){return _.P(_.fM,{data:F.data,className:y})}}))},"Re");
N5L.idomCompat=!0;var VRY=_.BO(function(I){var C=I.data;var y=function(){return EFM(C().style)},k=_.sZ("yt-flow-bottom-bar-renderer__flow-bottom-bar-primary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y),F=_.sZ("yt-flow-bottom-bar-renderer__flow-bottom-bar-secondary-button","yt-flow-bottom-bar-renderer__flow-bottom-bar-button",y);
return _.P("yt-flow-bottom-bar-renderer",{class:_.sZ("yt-flow-bottom-bar-renderer",I.className,y)},_.P(_.lY,{data:function(){return C().secondaryButton}},{buttonRenderer:function(z){return _.P(_.Gf,{data:z.data,
className:F})},
buttonViewModel:function(z){return _.P(_.fM,{data:z.data,className:F})},
premiumPurchaseButtonRenderer:function(z){return _.P(N5L,{data:z.data,className:F})}}),_.P(_.lY,{data:function(){return C().primaryButton}},{buttonRenderer:function(z){return _.P(_.Gf,{data:z.data,
className:k})},
buttonViewModel:function(z){return _.P(_.fM,{data:z.data,className:k})},
premiumPurchaseButtonRenderer:function(z){return _.P(N5L,{data:z.data,className:k})}}))},"Se");
VRY.idomCompat=!0;_.B9(VRY,"yt-flow-bottom-bar-renderer",{props:{data:_.As,className:_.As}});var jUB=_.BO(function(I){return _.P("yt-offer-summary-renderer",{class:_.sZ(I.className,"ytOfferSummaryRendererHost")},_.P("div",{class:"ytOfferSummaryRendererTextContainer"},_.P("div",{class:"ytOfferSummaryRendererEyebrowText"},_.P(_.wh,{text:function(){return I.data().eyebrowText}})),_.P("div",{class:"ytOfferSummaryRendererTitle"},_.P(_.wh,{text:function(){return I.data().title}})),_.P("div",{class:"ytOfferSummaryRendererSubtitle"},_.P(_.wh,{text:function(){return I.data().subtitle}})),_.P("div",
{class:"ytOfferSummaryRendererFeatureListData"},_.P(_.pH,{each:function(){var C;
return(C=I.data().featureListData)!=null?C:[]}},function(C){var y;
return _.P("div",{class:"ytOfferSummaryRendererFeatureList"},_.P(_.ez,{icon:(y=C.icon)==null?void 0:y.iconType,className:C.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"ytOfferSummaryRendererFeatureListIconGreen":"ytOfferSummaryRendererFeatureListIconDefault"}),_.P("div",{class:"ytOfferSummaryRendererFeatureListText"},_.P(_.wh,{text:C.text})))})),_.P("div",{class:"ytOfferSummaryRendererDescription"},_.P(_.wh,{text:function(){return I.data().description}}))))},"Te");_.B9(_.BO(function(I){var C={};C=_.sZ("ytOfferSummaryFlowStepRendererHost",(C.ytOfferSummaryFlowStepRendererDisableHeaderTopMargin=I.shouldDisableHeaderTopMargin,C));return _.P("yt-offer-summary-flow-step-renderer",{id:"yt-offer-summary-flow-step-renderer",class:C},_.P("div",{class:"ytOfferSummaryFlowStepRendererHeaderContainer ytOfferSummaryFlowStepRendererChild"},_.P("div",{class:"ytOfferSummaryFlowStepRendererHeader"},_.P(_.wh,{text:function(){return I.data().header}})),_.P("div",{class:"ytOfferSummaryFlowStepRendererSubtitle"},
_.P(_.wh,{text:function(){return I.data().subtitle}}))),_.P("div",{class:"ytOfferSummaryFlowStepRendererChild"},_.P(_.lY,{data:function(){return I.data().offerSummary}},{offerSummaryRenderer:function(y){return _.P(jUB,{data:y.data,
className:I.flowClassName})}})))},"Ue"),"yt-offer-summary-flow-step-renderer",{props:{data:_.Z_,
flowClassName:_.Z_,flowStateEntityKey:_.Z_,shouldDisableHeaderTopMargin:_.Z_}});var lxY=_.BO(function(I){var C=I.data;var y=I.className;var k=I.flowStateEntityKey;var F=I.selectionStepStyle;I=_.uk(function(w){var L=C(),D=k==null?void 0:k();w.target&&(w.stopPropagation(),w=D||"",D=_.o7(_.dW().getState(),w),L=Object.assign({},D,{premiumPurchaseFlowState:{selectedOptionId:L.optionId,primaryButtonOverride:L.primaryButtonOverride}}),_.dW().dispatch(_.wJ("flowStateEntity",w,L)));return!1});
var z=function(){return(k==null?void 0:k())||""},c=_.cj(_.o7,z);
_.RU(function(){var w=C(),L=z(),D=c();!_.l(D,t6)&&w.defaultSelected&&L!==""&&w.primaryButtonOverride&&hCj(w.optionId||"",L,w.primaryButtonOverride,D)});
var r={};return _.P("ytm-option-item-renderer",{"on:click":I,class:_.sZ(y,"ytm-option-item-renderer",(r["ytm-option-item-renderer--lp2-style"]=function(){return(F==null?void 0:F())==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},r))},_.P("div",{class:"ytm-option-item-renderer__option-item-radio-container"},_.P("input",{type:"radio",
class:"ytm-option-item-renderer__option-item-radio-button","prop:checked":function(){var w=C(),L=z(),D=c();D=_.l(D,t6);return(D?(D==null?void 0:D.selectedOptionId)||"":w.defaultSelected&&L!==""?(w==null?void 0:w.optionId)||"":"")===C().optionId},
name:("input"+_.YX(_.Gx)).toString()})),_.P("div",{class:"ytm-option-item-renderer__option-item-text-container"},_.P(_.Dx,{cond:function(){return C().eyebrowText},
then:function(){return _.P("div",{class:"ytm-option-item-renderer__option-item-eyebrow-text"},_.P(_.wh,{text:function(){return C().eyebrowText}}))}}),_.P("div",{class:"ytm-option-item-renderer__option-item-title"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytm-option-item-renderer__option-item-subtitle"},_.P(_.wh,{text:function(){return C().subtitle}})),_.P("div",{class:"ytm-option-item-renderer__option-item-description"},_.P(_.wh,{text:function(){return C().description}}))))},
"Ve");var X5R=_.BO(function(I){var C=I.data;var y=I.flowClassName;var k=I.flowStateEntityKey;var F=I.selectionStepStyle;return _.P("yt-option-section-renderer",{id:"yt-option-section-renderer",class:"yt-option-section-renderer"},_.P("div",{class:"yt-option-section-renderer__option-section-header-section"},_.P("div",{class:"yt-option-section-renderer__option-section-header"},_.P(_.wh,{text:function(){return C().title}}),_.P(_.lY,{data:function(){return C().titleBadge}},{badgeViewModel:function(z){return _.P(_.ml,
{data:z.data,
class:"yt-option-section-renderer__option-section-title-badge"})}})),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(){return _.P("div",{class:"yt-option-section-renderer__option-section-subtitle"},_.P(_.wh,{text:function(){return C().subtitle}}))}}),_.P(_.Dx,{cond:function(){return C().featureListData},
then:function(z){return _.P("div",{class:"yt-option-section-renderer__option-section-feature-list"},_.P(_.pH,{each:z},function(c){var r;return _.P("div",{class:"yt-option-section-renderer__option-section-feature-item"},_.P(_.ez,{icon:(r=c.icon)==null?void 0:r.iconType,className:c.style==="BULLET_FORMATTED_STRING_STYLE_THEMED_GREEN_ICON_PRIMARY_TEXT"?"yt-option-section-renderer__option-section-feature-item-icon-green":"yt-option-section-renderer__option-section-feature-item-icon-default"}),_.P("div",
{class:"yt-option-section-renderer__option-section-feature-item-text"},_.P(_.wh,{text:c.text})))}))}}),_.P(_.pH,{each:function(){return C().sectionDisclaimers||[]}},function(z){return _.P("div",{class:"yt-option-section-renderer__option-section-disclaimer"},_.P(_.wh,{text:z}))})),_.P(_.lY,{data:function(){return C().optionItems}},{optionItemRenderer:function(z){return _.P("div",{class:"yt-option-section-renderer__option-item"},_.P(lxY,{data:z.data,
className:y,flowStateEntityKey:k,selectionStepStyle:F}))}}),_.P(_.Dx,{cond:function(){return C().offerText},
then:function(){return _.P("div",{class:"yt-option-section-renderer__option-section-offer-text"},_.P(_.wh,{text:function(){return C().offerText}}))}}))},"We");
X5R.idomCompat=!0;var $$K=_.BO(function(I){var C=I.data;var y=I.flowClassName;var k=I.flowStateEntityKey;I=I.isDesktop;var F=function(){var L;return(L=C().flowStateEntityKey)!=null?L:k==null?void 0:k()},z=function(){return(F==null?void 0:F())||""},c=function(){return C().style},r=_.cj(_.o7,z);
_.RU(function(){var L=C(),D=z(),p=r();!_.l(p,t6)&&L.noPreselect&&D!==""&&L.defaultButtonOverride&&hCj("default",D,L.defaultButtonOverride,p)});
var w={};return _.P("yt-option-selection-flow-step-renderer",{id:"yt-option-selection-flow-step-renderer",class:_.sZ("ytm-option-selection-flow-step-renderer",(w["ytm-option-selection-flow-step-renderer--desktop"]=I,w["ytm-option-selection-flow-step-renderer--lp2-style"]=function(){return C().style==="OPTION_SELECTION_FLOW_STEP_RENDERER_STYLE_LP_2"},w))},_.P("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"},
_.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-header"},_.P(_.wh,{text:function(){return C().header}})),_.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-subtitle"},_.P(_.wh,{text:function(){return C().subtitle}}))),_.P(_.lY,{data:function(){return C().optionItems||[]}},{optionItemRenderer:function(L){return _.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.P(lxY,{data:L.data,
className:y,flowStateEntityKey:F,selectionStepStyle:c}))},
optionSectionRenderer:function(L){return _.P("div",{class:"ytm-option-selection-flow-step-renderer__option-selection-flow-step-child"},_.P(X5R,{data:L.data,flowClassName:y,flowStateEntityKey:F,selectionStepStyle:c}))}}))},"Xe");
$$K.idomCompat=!0;_.B9($$K,"yt-option-selection-flow-step-renderer",{props:{data:_.As,flowClassName:_.As,flowStateEntityKey:_.As,isDesktop:_.As}});var UbL,HeB;_.K4=_.BO(function(I){var C=_.ZB(I,{type:1,disablePadding:!1,disablePrimaryButton:!1}),y=C.data,k=C.type;I=C.disablePadding;var F=C.disablePrimaryButton,z=C.onClickPrimaryButton,c=function(){return y().stacking==="PANEL_FOOTER_STACKING_VERTICAL"},r=function(){return{disabled:F(),
state:F()?"disabled":"active"}},w=function(){return y().leadingLabel||y().trailingLabel};
C={};return _.P("yt-panel-footer-view-model",{class:_.sZ("yt-panel-footer-view-model-wiz",(C["yt-panel-footer-view-model-wiz--hide-divider"]=function(){return y().shouldHideDivider},C["yt-panel-footer-view-model-wiz--disable-padding"]=I,C))},_.P(_.Dx,{cond:w,
then:function(){var L={},D={};return _.P("div",{class:_.sZ("yt-panel-footer-view-model-wiz__text-row",(L["yt-panel-footer-view-model-wiz--row-bottom-padding"]=function(){var p=y();return!(!p.leadingLabel&&!p.trailingLabel||!p.primaryButton&&!p.secondaryButton)},L))},_.P(_.wh,{text:function(){return y().leadingLabel},
className:_.sZ((D["yt-panel-footer-view-model-wiz--text-padding"]=w,D))}),_.P(_.wh,{text:function(){return y().trailingLabel}}))}}),_.P(_.Dx,{cond:c,
then:function(){var L={};return _.P("div",{class:"yt-panel-footer-view-model-wiz__button-stack"},_.P("div",{class:_.sZ("yt-panel-footer-view-model-wiz__primary-button",(L["yt-panel-footer-view-model-wiz__button-stack--top-button"]=function(){return y().secondaryButton},L))},_.P(_.lY,{data:function(){return y().primaryButton}},{buttonViewModel:function(D){return _.P(_.fM,{data:D.data,
buttonOverrides:r,onClick:z})}})),_.P(_.lY,{data:function(){return y().secondaryButton}},{buttonViewModel:_.fM}))}}),_.P(_.Dx,{cond:function(){return!c()},
then:function(){var L={},D={},p={};return _.P("div",{class:_.sZ("yt-panel-footer-view-model-wiz__button-row",(L["yt-panel-footer-view-model-wiz__button-row--trailing"]=function(){return 3===k()},L))},_.P("div",{class:_.sZ("yt-panel-footer-view-model-wiz__button-row--left-button",(D["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 1===k()},D["yt-panel-footer-view-model-wiz__button-row--hidden"]=function(){return!y().secondaryButton||0===k()},D["yt-panel-footer-view-model-wiz__button-row--shrink"]=
function(){return 2===k()},D))},_.P(_.lY,{data:function(){return y().secondaryButton}},{buttonViewModel:_.fM})),_.P("div",{class:_.sZ("yt-panel-footer-view-model-wiz__primary-button",(p["yt-panel-footer-view-model-wiz__button-row--full-width"]=function(){return 0===k()||1===k()},p["yt-panel-footer-view-model-wiz__button-row--expand"]=function(){return 2===k()},p))},_.P(_.lY,{data:function(){return y().primaryButton}},{buttonViewModel:function(Q){return _.P(_.fM,{data:Q.data,
buttonOverrides:r,onClick:z})}})))}}))},"Ye");
_.K4.idomCompat=!0;_.R8L=_.BO(function(I){I=_.ZB(I,{disablePadding:!1});var C=I.data,y=I.disablePadding;I=_.aoB(function(){return C().formId});
var k=I.onSubmit,F=I.isValid,z=I.isSubmitting;return _.P("yt-form-footer-view-model",{class:"ytFormFooterViewModelHost"},_.P(_.lY,{data:function(){return C().panelFooter}},{panelFooterViewModel:function(c){return _.P(_.K4,{data:c.data,
onClickPrimaryButton:function(){k()},
disablePrimaryButton:function(){return!F()||z()},
disablePadding:y})}}))},"Ze");_.B9(_.R8L,"yt-form-footer-view-model",{props:{data:_.As,disablePadding:_.As}});_.B9(_.BO(function(I){return _.P("yt-contributor-zero-state-view-model",{class:"ytContributorZeroStateViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 132px);"},_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContent"},_.P(_.Dx,{cond:function(){var C;return(C=I.data())==null?void 0:C.image},
then:function(C){return _.P(_.x$,{data:C,alt:"",className:"ytContributorZeroStateViewModelCenterAlignedContentImage"})}}),_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentTitle"},_.P(_.wh,{text:function(){var C;
return(C=I.data())==null?void 0:C.title}})),_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentSubtitle"},_.P(_.wh,{text:function(){var C;
return(C=I.data())==null?void 0:C.subtitle}})),_.P("div",{class:"ytContributorZeroStateViewModelCenterAlignedContentButton"},_.P(_.lY,{data:function(){var C;
return(C=I.data())==null?void 0:C.viewTipsButton}},{buttonViewModel:_.fM}))))},"$e"),"yt-contributor-zero-state-view-model",{props:{data:_.As}});var bHP=_.BO(function(I){var C=_.cj(MlR,_.mh(function(){var y;return(y=I.data())==null?void 0:y.noteFeedEntityKey},""));
return _.P("yt-note-view-model",{class:"ytNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 136px);"},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButton"},_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadata"},_.P(_.Dx,{cond:function(){var y,k;return(y=I.data())==null?void 0:(k=y.noteData)==null?void 0:k.isPinned},
then:function(){return _.P(_.ez,{icon:"KEEP_FILLED",className:"ytNoteViewModelMetadataAndOverflowButtonMetadataIconPin"})}}),_.P(_.wh,{text:function(){var y,k;
return(y=I.data())==null?void 0:(k=y.noteData)==null?void 0:k.headerText}}),_.P("div",{class:"ytNoteViewModelMetadataAndOverflowButtonMetadataDelimiter"},_.P(_.wh,{text:function(){var y,k;
return(y=I.data())==null?void 0:(k=y.noteData)==null?void 0:k.delimiter}})),_.P(_.wh,{text:function(){var y,k;
return(y=C())==null?void 0:(k=y.contributorNote)==null?void 0:k.publishedTimeText}})),_.P(_.lY,{data:function(){var y,k,F,z=(y=I.data())==null?void 0:y.noteData;
y=(k=C())==null?void 0:(F=k.contributorNote)==null?void 0:F.deleteAction;return{buttonViewModel:{style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TEXT",state:"BUTTON_VIEW_MODEL_STATE_ACTIVE",buttonSize:"BUTTON_VIEW_MODEL_SIZE_XSMALL",iconName:"MORE_VERT",accessibilityText:z.deleteActionText,onTap:{innertubeCommand:{showSheetCommand:{panelLoadingStrategy:{inlineContent:{sheetViewModel:{content:{listViewModel:{listItems:[{listItemViewModel:{title:{content:z.deleteActionText},leadingImage:{sources:[{clientResource:{imageName:"TRASH_CAN"}}]},
rendererContext:{commandContext:{onTap:{innertubeCommand:{confirmDialogEndpoint:{content:{confirmDialogRenderer:{title:{runs:[{text:z.deleteDialogTitle}]},dialogMessages:[{runs:[{text:z.deleteDialogSubtitle}]}],confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.deleteActionText}]},command:{performCommentActionEndpoint:{action:y}}}},cancelButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:{runs:[{text:z.cancelActionText}]},command:{dismissDialogCommand:{}}}}}}}}}}}}}]}}}}}}}}}}}},
{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytNoteViewModelMetadataAndOverflowButtonOverflowButton"})}})),_.P("div",{class:"ytNoteViewModelNoteContent"},_.P(_.wh,{text:function(){var y,k;
return(y=C())==null?void 0:(k=y.contributorNote)==null?void 0:k.text}})))},"af");
bHP.idomCompat=!0;_.B9(bHP,"yt-note-view-model",{props:{data:_.As}});var Ar=_.BO(function(I){var C=_.ZB(I,{label:"",text:"",placeholder:"",hint:"",rows:1,overflowStyle:"scroll-vertically",outline:!1,disabled:!1,disableNewLines:!1,characterLimit:void 0,validation:void 0}),y=C.label,k=C.text,F=C.placeholder,z=C.hint;I=C.rows;var c=C.overflowStyle,r=C.outline,w=C.disabled,L=C.disableNewLines,D=C.characterLimit,p=C.validation,Q=C.onInput,X=_.Es();C=_.T(_.TN(function(){return k()}));
var b=C.next().value,S=C.next().value;C=_.T(_.c4(!1,void 0,"fXvinf"));var A=C.next().value,x=C.next().value,B=function(){x(!0)},t=function(){x(!1)};
_.RU(function(){var mY=X.value,Bs=c(),n5=b();Bs==="expand-vertically"&&n5&&IDR(mY);X.value.addEventListener("focusin",B);X.value.addEventListener("focusout",t)});
_.$4(function(){X.value.removeEventListener("focusin",B);X.value.removeEventListener("focusout",t)});
var U=function(){var mY;return(mY=p())==null?void 0:mY.validate(b())},yW=function(){return D()&&!U()&&b().length>D().maxChars},a=function(){return!!U()||yW()};
C=_.uk(function(mY){if(!mY.currentTarget)return!1;mY=mY.currentTarget;S(mY.value);c()==="expand-vertically"&&IDR(mY);Q==null||Q(mY.value);return!0});
var cs=_.uk(function(mY){L()&&mY.key==="Enter"&&mY.preventDefault();return!1}),XO=_.uk(function(){X.value.focus()}),Rm=function(){return F()||y()},$z={},hX={},vs={};
return _.P("textarea-shape",{class:"ytStandardsTextareaShapeHost"},_.P("div",{class:_.sZ("ytStandardsTextareaShapeTextareaContainer",($z.ytStandardsTextareaShapeTextareaContainerOutline=r,$z.ytStandardsTextareaShapeTextareaContainerOutlineDisabled=w,$z.ytStandardsTextareaShapeTextareaContainerOutlineError=a,$z)),"on:click":XO},_.P("label",{class:_.sZ("ytStandardsTextareaShapeLabel",(hX.ytStandardsTextareaShapeLabelFocused=A,hX.ytStandardsTextareaShapeLabelDisabled=w,hX.ytStandardsTextareaShapeLabelError=
function(){return a()&&!w()},hX.ytStandardsTextareaShapeLabelHidden=function(){return!A()&&!b()&&!!Rm()},hX))},y),_.P("div",{class:_.sZ("ytStandardsTextareaShapePlaceholder",(vs.ytStandardsTextareaShapePlaceholderVisible=function(){return!A()&&!b()},vs)),
"aria-hidden":"true"},Rm),_.P("textarea",{el:X,class:"ytStandardsTextareaShapeTextarea",rows:I,disabled:w,placeholder:Rm,"on:input":C,"on:keydown":cs},b)),_.P(_.Dx,{cond:function(){return z()&&!a()},
then:function(){var mY={};return _.P("div",{class:_.sZ("ytStandardsTextareaShapeHint",(mY.ytStandardsTextareaShapeHintDisabled=w,mY))},_.P("div",{class:"ytStandardsTextareaShapeHintHintMessage"},z))}}),_.P(_.Dx,{cond:U,
then:function(){return _.P(Y3L,{disabled:w},_.P("div",{class:"ytStandardsTextareaShapeErrorMessage"},U))}}),_.P(_.Dx,{cond:D,
then:function(mY){return _.P(_.Dx,{cond:yW,then:function(){return _.P(Y3L,{disabled:w},_.P("div",{class:"ytStandardsTextareaShapeErrorMessage"},function(){return mY().errorMessage}),_.P("div",{class:"ytStandardsTextareaShapeErrorCharacterCount"},function(){return b().length+"/"+mY().maxChars}))}})}}))},"bf");
Ar.idomCompat={callbacks:{onInput:!0}};var Y3L=_.BO(function(I){var C={};return _.P("div",{class:_.sZ("ytStandardsTextareaShapeError",(C.ytStandardsTextareaShapeErrorDisabled=I.disabled,C)),role:"alert"},_.P(_.ez,{icon:"INFO",className:"ytStandardsTextareaShapeErrorIcon",size:16}),I.children)},"cf");_.GuR=_.BO(function(I){var C=I.data;return _.P("text-field-view-model",{class:"ytTextFieldViewModelHost"},_.P(Ar,{text:I.text,label:function(){var y;return(y=C().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=C().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=C().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=C().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=C().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disabled:I.disabled,disableNewLines:function(){var y;return(y=C().displayProperties)==null?void 0:y.disableNewLines},
onInput:I.onInput,characterLimit:I.characterLimit,validation:I.validation,rows:function(){var y;return(y=C().displayProperties)==null?void 0:y.rows}}))},"df");_.fxR=_.BO(function(I){var C=I.data;return _.P("text-form-field-view-model",{class:"ytTextFormFieldViewModelHost"},_.P(Ar,{text:I.text,label:function(){var y;return(y=C().contentProperties)==null?void 0:y.labelText},
placeholder:function(){var y;return(y=C().contentProperties)==null?void 0:y.placeholderText},
hint:function(){var y;return(y=C().contentProperties)==null?void 0:y.hintText},
outline:function(){var y;return!((y=C().displayProperties)==null?0:y.hideBorder)},
overflowStyle:function(){var y;return((y=C().displayProperties)==null?0:y.isMultiline)?"expand-vertically":"scroll-vertically"},
disableNewLines:function(){var y;return(y=C().displayProperties)==null?void 0:y.disableNewLines},
onInput:I.onInput,characterLimit:I.characterLimit,validation:I.validation,rows:function(){var y;return(y=C().displayProperties)==null?void 0:y.rows}}))},"ef");var S3S=_.BO(function(I){var C=_.T(_.TN(function(){var Rm,$z;return((Rm=I.data().structuredContextNoteFormSchema)==null?0:($z=Rm.initialValues)==null?0:$z.noteBody)?I.data().structuredContextNoteFormSchema.initialValues.noteBody:""})),y=C.next().value,k=C.next().value;
C=_.T(_.TN(function(){I.data();return!1}));
var F=C.next().value,z=C.next().value;C=_.T(_.TN(function(){I.data();return!1}));
var c=C.next().value,r=C.next().value;C=_.T(_.TN(function(){var Rm,$z;return((Rm=I.data().structuredContextNoteFormSchema)==null?0:($z=Rm.initialValues)==null?0:$z.timestamp)?I.data().structuredContextNoteFormSchema.initialValues.timestamp:""}));
var w=C.next().value,L=C.next().value;C=_.T(_.TN(function(){I.data();return!1}));
var D=C.next().value,p=C.next().value;C=_.T(_.TN(function(){var Rm,$z;return((Rm=I.data().structuredContextNoteFormSchema)==null?0:($z=Rm.initialValues)==null?0:$z.sources)?[I.data().structuredContextNoteFormSchema.initialValues.sources]:[]}));
var Q=C.next().value,X=C.next().value;C=_.T(_.TN(function(){I.data();return!1}));
var b=C.next().value,S=C.next().value;C=_.T(_.TN(function(){return!1}));
var A=C.next().value,x=C.next().value;_.RU(function(){var Rm;_.OeK((Rm=I.data().structuredContextNoteFormSchema)==null?void 0:Rm.id,{isSubmitting:A,onSubmit:function(){x(!0);var $z=TQY(y(),w(),Q(),I.data()),hX=_.N().resolve(_.ID);$z&&hX&&hX.resolveCommand($z,{commandController:{onSuccess:function(){x(!1)}}})},
isValid:function(){return F()&&!c()&&!D()&&!b()}})});
var B=function(Rm){if(Rm!==void 0&&(k(Rm),!F()&&Rm.length>0&&z(!0),F())){var $z=oqS(I.data());if($z){var hX=$z.minLength;$z=$z.maxLength;hX&&Rm.length<hX?r(!0):$z&&Rm.length>$z?r(!0):r(!1)}}},t=function(Rm){if(Rm!==void 0){L(Rm);
if(Rm.length>0){var $z,hX,vs,mY,Bs=kej(($z=I.data())==null?void 0:(hX=$z.structuredContextNoteFormSchema)==null?void 0:(vs=hX.fieldSchemas)==null?void 0:(mY=vs.timestamp)==null?void 0:mY.validationSchema);if(Bs&&($z=Bs.regex)&&!(new RegExp($z)).test(Rm)){p(!0);return}}p(!1)}},U=function(Rm){if(Rm!==void 0){var $z=Rm.split(/[ \n]/).map(function(hX){return hX.trim()});
X($z);if(Rm.length>0)for(Rm=_.T($z),$z=Rm.next();!$z.done;$z=Rm.next())if(!z38($z.value)){S(!0);return}S(!1)}},yW=function(){return{validate:function(Rm){if(F()){var $z=oqS(I.data());
if($z){var hX=$z.minLength;$z=$z.translations;if(hX&&Rm.length<hX)return $z==null?void 0:$z.minLengthErrorMessage}}}}},a=function(){var Rm=oqS(I.data()),$z=Rm==null?void 0:Rm.maxLength,hX;
Rm=Rm==null?void 0:(hX=Rm.translations)==null?void 0:hX.maxLengthErrorMessage;if($z&&Rm)return{maxChars:$z,errorMessage:Rm}},cs=function(){return{validate:function(Rm){if(Rm){var $z,hX,vs,mY,Bs=kej(($z=I.data())==null?void 0:(hX=$z.structuredContextNoteFormSchema)==null?void 0:(vs=hX.fieldSchemas)==null?void 0:(mY=vs.timestamp)==null?void 0:mY.validationSchema);
if(Bs&&($z=Bs.regex,Bs=Bs.translations,$z&&!(new RegExp($z)).test(Rm)))return Bs==null?void 0:Bs.regexErrorMessage}}}},XO=function(){return{validate:function(Rm){if(Rm){var $z,hX,vs,mY,Bs=uBP(($z=I.data())==null?void 0:(hX=$z.structuredContextNoteFormSchema)==null?void 0:(vs=hX.fieldSchemas)==null?void 0:(mY=vs.sources)==null?void 0:mY.validationSchema);
if(Bs&&($z=Bs.translations,$z==null?0:$z.selectedErrorMessage))for(Rm=Rm.split(/[ \n]/).map(function(n5){return n5.trim()}),Rm=_.T(Rm),hX=Rm.next();!hX.done;hX=Rm.next())if(!z38(hX.value))return Rm=void 0,(Rm=$z)==null?void 0:Rm.selectedErrorMessage}}}};
return _.P("yt-structured-context-note-view-model",{class:"ytStructuredContextNoteViewModelHost",style:"height: calc(var(--ytd-watch-flexy-panel-max-height, 720px) - 209px);"},_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.lY,{data:function(){var Rm;return(Rm=I.data())==null?void 0:Rm.noteContents}},{textFormFieldViewModel:function(Rm){return _.P(_.fxR,{data:Rm.data,
onInput:B,validation:yW,characterLimit:a})},
textFieldViewModel:function(Rm){return _.P(_.GuR,{data:Rm.data,onInput:B,validation:yW,characterLimit:a})}})),_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.lY,{data:function(){var Rm;
return(Rm=I.data())==null?void 0:Rm.noteTimestamp}},{textFormFieldViewModel:function(Rm){return _.P(_.fxR,{data:Rm.data,
onInput:t,validation:cs})},
textFieldViewModel:function(Rm){return _.P(_.GuR,{data:Rm.data,onInput:t,validation:cs})}})),_.P("div",{class:"ytStructuredContextNoteViewModelTextField"},_.P(_.lY,{data:function(){var Rm;
return(Rm=I.data())==null?void 0:Rm.noteSources}},{textFormFieldViewModel:function(Rm){return _.P(_.fxR,{data:Rm.data,
onInput:U,validation:XO})},
textFieldViewModel:function(Rm){return _.P(_.GuR,{data:Rm.data,onInput:U,validation:XO})}})))},"ff");
S3S.idomCompat=!0;_.B9(S3S,"yt-structured-context-note-view-model",{props:{data:_.As}});var Kn8=_.BO(function(I){var C=_.T(_.TN(function(){var z;if((z=I.controlled)==null?0:z.call(I))return[];var c;return(((c=I.data())==null?void 0:c.chips)||[]).map(function(r){r=_.l(r,_.Ao);if(r==null?0:r.selected)return ckY(r.chipValue)}).filter(function(r){return r!==void 0})})),y=C.next().value,k=C.next().value,F=function(z){var c=ckY(z.chipValue);
if(c!==void 0){var r;if((r=I.controlled)==null?0:r.call(I))return void I.controlled().onTap(c);z=y().includes(c)?[].concat(_.Py(y().filter(function(L){return L!==c}))):[].concat(_.Py(y()),[c]);
k(z);var w;if((w=I.uncontrolled)==null?0:w.call(I))I.uncontrolled().onUpdate(z)}};
return _.P("chip-selection-form-field-view-model",{class:"ytChipSelectionFormFieldViewModelHost"},_.P(_.pH,{each:function(){return I.data().chips||[]}},function(z){return _.P("div",{class:"ytChipSelectionFormFieldViewModelChipWrapper"},_.P(_.Ade,{data:function(){return _.l(z,_.Ao)},
selected:function(){var c;if(c=_.l(z,_.Ao)){var r=ckY(c.chipValue);if(r!==void 0){var w;c=((w=I.controlled)==null?0:w.call(I))?I.controlled().selectedValues.includes(r):y().includes(r)}else c=void 0}else c=!1;return c},
callback:F}))}))},"gf");var AqS=_.BO(function(I){var C=I.data;var y=function(){var r;return((r=C())==null?void 0:r.flowStateKey)||""},k=_.cj(_.o7,y),F=function(){var r;
return(r=_.l(k(),sFY))==null?void 0:r.chips},z=function(r){if(r!==void 0){var w=F()||[];
w=w.find(function(L){return L===r})?w.filter(function(L){return L!==r}):[].concat(_.Py(w),[r]);
w=Object.assign({},k(),{feedbackFormFlowState:Object.assign({},_.l(k(),sFY),{chips:w})});_.qH(_.wJ("flowStateEntity",y(),w))}},c=function(){var r;
return _.l((r=C())==null?void 0:r.inputBox,o4L)};
I=_.LQ(function(r){var w=c();w=!(w==null?0:w.maxChars)||r.length<=w.maxChars;r=Object.assign({},k(),{feedbackFormFlowState:Object.assign({},_.l(k(),sFY),{detail:r}),abuseReportFlowState:Object.assign({},_.l(k(),a3),{navigationEnabled:w})});_.qH(_.wJ("flowStateEntity",y(),r))},150);
return _.P("yt-feedback-form-view-model",{class:"ytFeedbackFormViewModelHost"},_.P("div",{class:"ytFeedbackFormViewModelChips"},_.P(_.lY,{data:function(){var r;return(r=C())==null?void 0:r.chipSelection}},{chipSelectionFormFieldViewModel:function(r){return _.P(Kn8,{data:r.data,
controlled:function(){return{selectedValues:F()||[],onTap:z}}})}})),_.P("div",{class:"ytFeedbackFormViewModelInputBox"},_.P(Ar,{text:function(){var r;
return(r=_.l(k(),sFY))==null?void 0:r.detail},
placeholder:function(){var r;return((r=c())==null?void 0:r.placeholderText)||""},
outline:!0,rows:4,characterLimit:function(){var r=c();if(r&&r.maxChars)return{maxChars:r.maxChars,errorMessage:r.maxCharsExceededErrorMessage||""}},
onInput:I})),_.P("div",{class:"ytFeedbackFormViewModelFooterText"},_.P(_.wh,{text:function(){return C().footerText}})))},"hf");
AqS.idomCompat=!0;_.B9(AqS,"yt-feedback-form-view-model",{props:{data:_.As}});var gSH=_.BO(function(I){var C=I.data;var y=function(){return C().flowStateKey||""},k=_.cj(uJy,y),F=function(){return _.l(k(),a3)},z=function(){if(_.V("enable_gff_accessibility_fix")){var c=!0,r;
if((r=F())==null?0:r.navigationEnabled){var w;_.Gp((w=F())==null?void 0:w.navigationCommand);c=!1}r=Object.assign({},k(),{abuseReportFlowState:Object.assign({},F(),{isReportFormDirty:c})});_.qH(_.wJ("flowStateEntity",y(),r))}else _.Gp((c=F())==null?void 0:c.navigationCommand)};
return _.P("yt-report-form-bottom-bar-view-model",{class:"ytWebReportFormBottomBarViewModelHost"},_.P("div",{class:"ytWebReportFormBottomBarViewModelBottomBarContainer"},_.P(_.lY,{data:function(){return C().cancelButton}},{buttonViewModel:function(c){return _.P(_.fM,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}}),_.P(_.lY,{data:function(){var c;
if(C().navButton){var r=Object;var w=r.assign,L=_.l(C().navButton,_.Xi),D=((c=F())==null?0:c.navigationEnabled)||_.V("enable_gff_accessibility_fix")?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",p,Q;c=_.l((p=F())==null?void 0:p.navigationCommand,_.$$);p=(Q=_.l(c,_.xo))==null?void 0:Q.url;r={buttonViewModel:w.call(r,{},L,{state:D,iconName:p?"OPEN_IN_NEW":""})}}else r=void 0;return r}},{buttonViewModel:function(c){return _.P(_.fM,{data:c.data,
className:"ytWebReportFormBottomBarViewModelButton",onClick:z})}})))},"jf");
gSH.idomCompat=!0;_.B9(gSH,"yt-report-form-bottom-bar-view-model",{props:{data:_.As}});var vS8=_.BO(function(I){var C=I.nextStep;return _.P("div",{class:"ytWebReportFormConfirmationPageViewModelRow"},_.P("div",{class:"ytWebReportFormConfirmationPageViewModelIcon","aria-hidden":"true"},_.P(_.ez,{icon:function(){return C().iconName||""}})),_.P("div",null,_.P(_.wh,{text:function(){return C().text},
className:"ytWebReportFormConfirmationPageViewModelNextStepText"})))},"kf"),WnH=_.BO(function(I){var C=I.data;
var y,k=(y=_.N().resolve(_.aU(_.AE)))==null?void 0:y(),F=_.cj(_.o7,function(){return C().flowStateKey||""});
return _.P("yt-report-form-confirmation-page-view-model",{class:function(){var z;return((z=_.l(F(),a3))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelHostDialog":"ytWebReportFormConfirmationPageViewModelHostPanel"}},_.P("div",{class:function(){var z;
return((z=_.l(F(),a3))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormConfirmationPageViewModelImageDialog":"ytWebReportFormConfirmationPageViewModelImagePanel"}},_.P(_.x$,{data:function(){return k&&C().imageDark?C().imageDark:C().image},
alt:"",targetHeight:115,targetWidth:178,preserveHeight:!0,preserveWidth:!0})),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelConfirmationContainer"},_.P("h1",{class:"ytWebReportFormConfirmationPageViewModelHeader"},function(){return C().confirmationHeader}),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelBody"},_.P(_.wh,{text:function(){return C().confirmationText}})),_.P("div",{class:"ytWebReportFormConfirmationPageViewModelLawEnforcementText"},_.P(_.wh,{text:function(){return C().lawEnforcementText}})),
_.P("h1",{class:"ytWebReportFormConfirmationPageViewModelExpectHeader"},function(){return C().whatToExpectHeader}),_.P(_.Dx,{cond:function(){return C().nextSteps},
then:function(z){return _.P("div",null,_.P(_.pH,{each:z},function(c){return _.P(vS8,{nextStep:c})}))}}),_.P(_.Dx,{cond:function(){return C().legalReportText},
then:function(z){return _.P("div",null,_.P(_.wh,{text:z,className:"ytWebReportFormConfirmationPageViewModelLegalText"}))}})))},"lf");
WnH.idomCompat=!0;_.B9(WnH,"yt-report-form-confirmation-page-view-model",{props:{data:_.As}});var d$L=_.BO(function(I){var C=I.data;var y=function(){var z;return((z=_.l(C().inputBox,o4L))==null?void 0:z.maxChars)||500},k=function(){return C().flowStateKey||""},F=_.cj(_.o7,k);
I=_.LQ(function(z){z=Object.assign({},F(),{flowFormState:{isValid:z.length<=y()},abuseReportFlowState:{userComments:z,navigationEnabled:!(z.length>y()),isReportFormDirty:!0}});_.dW().dispatch(_.bY("flowStateEntity",k(),z))},150);
_.RU(function(){var z=Object.assign({},F(),{flowFormState:{isValid:!0}});_.dW().dispatch(_.bY("flowStateEntity",k(),z))});
return _.P("yt-report-form-details-page-view-model",{class:function(){var z;return((z=_.l(F(),a3))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHostDialog":"ytWebReportFormDetailsPageViewModelHostPanel"}},_.P("h1",{class:function(){var z;
return((z=_.l(F(),a3))==null?void 0:z.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormDetailsPageViewModelHeaderDialog":"ytWebReportFormDetailsPageViewModelHeaderPanel"}},function(){return C().detailsPageHeader}),_.P("div",{class:"ytWebReportFormDetailsPageViewModelBody"},_.P(_.wh,{text:function(){return C().bodyText}})),_.P("div",{class:"ytWebReportFormDetailsPageViewModelInput"},_.P(Ar,{label:function(){var z;
return((z=_.l(C().inputBox,o4L))==null?void 0:z.placeholderText)||""},
outline:!0,rows:10,characterLimit:function(){var z;return{errorMessage:((z=_.l(C().inputBox,o4L))==null?void 0:z.maxCharsExceededErrorMessage)||"",maxChars:y()}},
onInput:I})))},"mf");
d$L.idomCompat=!0;_.B9(d$L,"yt-report-form-details-page-view-model",{props:{data:_.As}});var x$R=_.BO(function(I){var C=I.data;var y=I.selectedKey;var k=I.onSelected;var F=I.groupName;var z=function(){return C().text},c=function(){return C().attributedText},r=function(){return C().subtext},w=function(){return C().attributedSubtext},L=_.P("div",{class:"ytRadioButtonItemViewModelLabel"},_.P(_.Dx,{cond:z,
then:function(){return _.P("div",null,z)}}),_.P(_.Dx,{cond:c,
then:function(){return _.P(_.wh,{text:c})}}),_.P(_.Dx,{cond:r,
then:function(){return _.P("div",{class:"ytRadioButtonItemViewModelSubText"},r)}}),_.P(_.Dx,{cond:w,
then:function(){return _.P("div",{class:"ytRadioButtonItemViewModelSubText"},_.P(_.wh,{text:w}))}})),D=function(){if(c()){var Q;
return(Q=c())==null?void 0:Q.content}return z()},p=function(){if(w()){var Q;
return(Q=w())==null?void 0:Q.content}return r()};
I={};return _.P("yt-radio-button-item-view-model",{class:"ytRadioButtonItemViewModelHost"},_.P(_.PL,{name:F,checked:function(){return!(y==null||!y()||C().key!==(y==null?void 0:y()))},
onChange:function(Q){k==null||k(Q.target,C(),F==null?void 0:F())},
labelRenderable:function(){return L},
ariaLabel:function(){return p()?D()+", "+p():D()},
className:_.sZ((I.ytRadioButtonItemViewModelSubTitle=function(){return!!C().subtext},I))}))},"nf");_.q3R=_.BO(function(I){var C=I.data;var y=I.onSelected;var k=I.selectedKey;var F=I.groupName;return _.P("yt-radio-button-group-view-model",{class:"yt-radio-button-group-view-model",tabindex:0},_.P("fieldset",{class:"yt-radio-button-group-view-model__fieldset"},_.P(_.lY,{data:function(){return C().radioButtons}},{radioButtonItemViewModel:function(z){var c=z.data;
return _.P(x$R,{data:c,onSelected:y,selectedKey:k,groupName:function(){var r;return(r=F==null?void 0:F())!=null?r:c().key}})}})))},"of");var m$L=_.BO(function(I){var C=I.data;var y=_.h3(),k=function(){return C().flowStateKey||""},F=_.cj(_.o7,k),z=function(){return _.l(F(),a3)};
_.l0(function(){var c,r;if(((c=z())==null?0:c.isReportFormDirty)&&((r=z())==null||!r.navigationEnabled)&&_.V("enable_gff_accessibility_fix")){var w;if(((w=z())==null?void 0:w.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"){var L;(L=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderDialog"))==null||L.scrollIntoView()}else{var D;(D=document.querySelector(".ytWebReportFormReasonSelectPageViewModelHeaderPanel"))==null||D.scrollIntoView()}}});
return _.P("yt-report-form-reason-select-page-view-model",{class:function(){var c;return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHostDialog":"ytWebReportFormReasonSelectPageViewModelHostPanel"}},_.P("h1",{class:function(){var c;
return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelHeaderDialog":"ytWebReportFormReasonSelectPageViewModelHeaderPanel"}},function(){return C().pageHeader}),_.P("div",{class:"ytWebReportFormReasonSelectPageViewModelBody"},_.P(_.wh,{text:function(){return C().bodyText}})),_.P("div",{class:function(){var c;
return((c=z())==null?void 0:c.pageType)==="REPORT_FORM_PAGE_TYPE_DIALOG"?"ytWebReportFormReasonSelectPageViewModelReasonsDialog":"ytWebReportFormReasonSelectPageViewModelReasonsPanel"}},_.P(_.Dx,{cond:function(){var c,r;
return((c=z())==null?void 0:c.isReportFormDirty)&&!((r=z())==null?0:r.navigationEnabled)&&_.V("enable_gff_accessibility_fix")},
then:function(){return _.P("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonError",el:y},_.P(_.ez,{icon:"INFO",className:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorIcon",size:16}),_.P("div",{class:"ytWebReportFormReasonSelectPageViewModelEmptyReasonErrorMessage","aria-live":"polite"},function(){return C().emptyReasonSelectErrorMessage}))}}),_.P(_.q3R,{data:function(){return _.l(C().radioButtonGroup,_.ezH)},
onSelected:function(c,r){c=Object.assign({},F(),{abuseReportFlowState:Object.assign({},z(),{reasonKey:r.key,navigationEnabled:!0,isReportFormDirty:!0,navigationCommand:r.command})});_.qH(_.wJ("flowStateEntity",k(),c))},
selectedKey:function(){var c;return(c=z())==null?void 0:c.reasonKey},
groupName:"report-form-reason-select-page"})))},"pf");
m$L.idomCompat=!0;_.B9(m$L,"yt-report-form-reason-select-page-view-model",{props:{data:_.As}});var ZHM=_.BO(function(I){var C=I.data;var y,k=(y=_.N().resolve(_.aU(_.AE)))==null?void 0:y();return _.P("yt-report-form-sign-in-page-view-model",{class:"yt-report-form-sign-in-page-view-model"},_.P("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-image"},_.P(_.x$,{data:function(){return k&&C().imageDark?C().imageDark:C().image},
alt:""})),_.P("div",{class:"yt-report-form-sign-in-page-view-model__sign-in-text-content"},_.P("h1",{class:"yt-report-form-sign-in-page-view-model__sign-in-prompt-header"},function(){return C().header}),_.P(_.wh,{text:function(){return C().text},
className:"yt-report-form-sign-in-page-view-model__sign-in-prompt-body"})))},"qf");
ZHM.idomCompat=!0;_.B9(ZHM,"yt-report-form-sign-in-page-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=function(){var L;return(L=C().textInputPlaceholder)==null?void 0:L.content},k=function(L){L=L.target.value.trim();
var D=C().onUpdateText;D&&_.Gp(D,{form:{userQuery:L}});C().userQuery=L},F=_.LQ(function(L){k(L)},150),z=_.uk(function(L){F(L);
return!1}),c=_.uk(function(L){L.key==="Enter"&&(k(L),(L=C().onNextStepCommand)&&_.Gp(L,{}));
return!1}),r=_.Es(),w=function(){if(_.V("web_hide_explore_hub_until_user_navigates_back_to_home")){var L,D,p;
(p=(D=(L=r.value)==null?void 0:L.closest("ytd-flow-step-renderer"))==null?void 0:D.querySelector("yt-flow-bottom-bar-view-model button-view-model button"))==null||p.click()}};
return _.P("yt-talk-to-recs-view-model",{class:"ytwTalkToRecsHost",el:r},_.P("div",{class:"ytwTalkToRecsTopCornerButton"},_.P(_.lY,{data:function(){return C().topCornerButton}},{buttonViewModel:_.fM})),_.P("div",{class:"ytwTalkToRecsTalkToRecsWrapper"},_.P("div",{class:"ytwTalkToRecsTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytwTalkToRecsSubtitle"},_.P(_.wh,{text:function(){return C().subtitle}})),_.P("div",{class:"ytwTalkToRecsChipsShelf"},_.P(_.lY,{data:function(){return C().answersShelf}},
{chipsShelfViewModel:function(L){return _.P(_.mgq,{data:L.data,
callback:w})}})),_.P(_.Dx,{cond:function(){return C().showOpenTextInput&&!_.V("web_hide_explore_hub_until_user_navigates_back_to_home")},
then:function(){return _.P("div",{class:"ytwTalkToRecsUserInputBox"},_.P("input",{type:"text",class:"ytwTalkToRecsTextInput",placeholder:y,value:function(){return C().userQuery},
"on:input":z,"on:keyup":c}))}})))},"rf"),"yt-talk-to-recs-view-model",{props:{data:_.As}});var e3y={sources:[{clientResource:{imageName:"CHECK"}}]};_.B5L=_.BO(function(I){var C=_.Es();I=_.ZB(I,{error:void 0});var y=I.data,k=I.error,F=I.onSelected;I=_.T(_.TN(function(){return w2K(y())}));
var z=I.next().value,c=I.next().value;D9H(y,function(p){c(p);var Q,X,b=iLj((Q=y().options)==null?void 0:(X=Q[p])==null?void 0:X.value,y().type);F==null||F(b);C.value.focus()});
I=_.uk(function(){if(!y().disabled){var p=y(),Q=z(),X=C.value;p.options&&(p=rkY(p.options,Q,p.label),_.N().resolve(_.nD).openSheet({viewModel:p},X))}});
var r=_.R_m(),w=function(){return!!k()},L=function(){return!!y().disabled},D={};
D=_.sZ("ytDropdownViewModelDropdownContainer",(D.ytDropdownViewModelDropdownContainerErrorBorder=w,D.ytDropdownViewModelDropdownContainerDisabled=L,D));return _.P("dropdown-view-model",{class:"ytDropdownViewModelHost"},_.P("div",{class:D,"on:click":I,el:C,role:"combobox",tabindex:0,"on:keydown":r,"aria-invalid":w,"aria-disabled":L,"aria-describedby":function(){return w()?"dropdown-view-model-error":void 0}},_.P("div",{class:"ytDropdownViewModelText"},nqY(y,w,z),PAY(y,z)),_.P("div",{class:"ytDropdownViewModelChevronDown"},
_.P(_.ez,{icon:"CHEVRON_DOWN"}))),Lc8(y,k))},"sf");_.B9(_.BO(function(I){var C=I.data;var y=function(F){var z=Q1H(C());z.videoMetadata||(z.videoMetadata={});z.videoMetadata.sponsorshipsMetadata||(z.videoMetadata.sponsorshipsMetadata={});z.videoMetadata.sponsorshipsMetadata.minRequiredTier=String(F)},k=function(F){var z=Q1H(C());
z.scheduledRedirectMetadata||(z.scheduledRedirectMetadata={});z.scheduledRedirectMetadata.scheduledRedirectTimeDeltaSec=String(F)};
return _.P("ytfz-schedule-fanzone-view-model",{class:"ytfzScheduleFanzoneViewModelHost"},_.P("section",{class:"ytfzScheduleFanzoneViewModelContentSection"},_.P("h2",{class:"ytfzScheduleFanzoneViewModelTitleGroup"},_.P(_.wh,{text:function(){return C().title}}),_.P(_.ez,{icon:"SCHEDULE_FANZONE",
className:"ytfzScheduleFanzoneViewModelIllustration"})),_.P(_.wh,{text:function(){return C().description},
className:"ytfzScheduleFanzoneViewModelDescription"}),_.P(_.lY,{data:function(){return C().tierChoices}},{dropdownViewModel:function(F){return _.P("div",{class:"ytfzScheduleFanzoneViewModelTierDropdown"},_.P(_.B5L,{data:F.data,
onSelected:y}))}}),_.P(_.lY,{data:function(){return C().startTimeChoices}},{dropdownViewModel:function(F){return _.P("div",{class:"ytfzScheduleFanzoneViewModelStartTimeDropdown"},_.P(_.B5L,{data:F.data,
onSelected:k}))}}),_.P(_.wh,{text:function(){return C().notice},
className:"ytfzScheduleFanzoneViewModelNotice"})),_.P("footer",{class:"ytfzScheduleFanzoneViewModelFooterSection"},_.P(_.lY,{data:function(){return C().scheduleButton}},{panelFooterViewModel:_.K4})))},"tf"),"ytfz-schedule-fanzone-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;I=I.className===void 0?"":I.className;var y=_.cj(uJy,function(){return C().flowStateEntityKey||""}),k={};
k=_.sZ("ytFlowBottomBarViewModelFlowBottomBarButtons",(k.ytFlowBottomBarViewModelFlowBottomBarButtonsDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"||C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_DISTRIBUTED_SPACE"},k));
var F={},z=_.sZ("ytFlowBottomBarViewModelFlowBottomBarPrimaryButton",k,(F.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarPrimaryButtonFlexPrimary=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FLEX_PRIMARY"},F));
F={};var c=_.sZ("ytFlowBottomBarViewModelFlowBottomBarSecondaryButton",k,(F.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},F.ytFlowBottomBarViewModelFlowBottomBarSecondaryButtonFullDistributed=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_FULL_DISTRIBUTED"},F));
k={};k=_.sZ("ytFlowBottomBarViewModelFlowBottomBarButtonSection",(k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionVerticalCentered=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_VERTICAL_CENTERED"},k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionJustifyEnd=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_JUSTIFY_END"},k.ytFlowBottomBarViewModelFlowBottomBarButtonSectionSpaceBetween=function(){return C().style==="FLOW_BOTTOM_BAR_BUTTON_LAYOUT_STYLE_SPACE_BETWEEN"},
k));
return _.P("yt-flow-bottom-bar-view-model",{class:_.sZ("ytFlowBottomBarViewModelHost",I)},_.P(_.Dx,{cond:function(){var r;return(r=C())==null?void 0:r.textSection},
then:function(r){return _.P("div",{class:"ytFlowBottomBarViewModelFlowBottomBarTextSection"},_.P(_.wh,{text:r}))}}),_.P("div",{class:k},_.P(_.lY,{data:function(){return C().secondaryButton}},{buttonViewModel:function(r){return _.P(_.fM,{data:r.data,
className:c})}}),_.P(_.lY,{data:function(){return C().primaryButton}},{buttonViewModel:function(r){return _.P(_.fM,{data:r.data,
className:z,buttonOverrides:function(){var w;return{disabled:!((w=y())==null||!w.primaryButtonDisabled)}}})}})))},"uf"),"yt-flow-bottom-bar-view-model",{props:{data:_.As,
className:_.Z_}});var ESY="add arrow_left article check circle circle_full creator_academy lock price_tag".split(" "),gZ=function(){var I=_.q.apply(this,arguments)||this;I.enableScrollingFix=!0;I.bottomBar=!1;I.hideBottomBar=!1;I.fitContent=!1;return I};
_.R(gZ,_.q);_.u=gZ.prototype;_.u.ready=function(){_.V("enable_pdp_icon_prefetch")&&_.C0j(_.N().resolve(_.sk),0,ESY)};
_.u.focus=function(I){this.topBar?_.UL(this.topBar,I):this.paperDialog.focus(I)};
_.u.attached=function(){this.paperDialog||(this.paperDialog=this.hostElement.closest("tp-yt-paper-dialog"));this.JSC$16705_scroller&&(this.JSC$16705_scroller.dialogElement=this.paperDialog,this.JSC$16705_scroller.attached&&typeof this.JSC$16705_scroller.attached==="function"&&this.JSC$16705_scroller.attached())};
_.u.onDataChanged=function(){var I;this.fitContent=!((I=this.data)==null||!I.fitContent);var C;this.bottomBar=!((C=this.data)==null||!C.bottomBar);this.hideBottomBar=this.containsExploreHub};
_.u.onProgressChanged=function(){var I,C,y=((C=(I=this.data)==null?void 0:I.progress)!=null?C:0)*100;this.progressElement.style.width=y+"%"};
_.u.isProgressHidden=function(){var I;return!((I=this.data)==null?0:I.progress)};
_.u.configureRendererStamper=function(){return{"data.topBarOverride":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},"data.content":{id:"content",mapping:{benefitsFlowStepRenderer:"yt-benefits-flow-step-renderer",channelHistoryRenderer:"ytd-channel-history-renderer",confirmationFlowStepRenderer:"yt-confirmation-flow-step-renderer",creatorGoalSetUpFlowViewModel:"yt-creator-goal-set-up-flow-view-model",scheduleFanzoneViewModel:"ytfz-schedule-fanzone-view-model",contributorZeroStateViewModel:"yt-contributor-zero-state-view-model",
featureEnablementInfoRenderer:"ytd-feature-enablement-info-renderer",featureEnablementSoftEntryRenderer:"yt-feature-enablement-soft-entry-renderer",feedbackFormViewModel:"yt-feedback-form-view-model",freeTextInputFlowStepRenderer:"ytd-free-text-input-flow-step-renderer",infoFlowStepRenderer:"yt-info-flow-step-renderer",infoListFlowStepRenderer:"yt-info-list-flow-step-renderer",noteViewModel:"yt-note-view-model",offerDetailStepRenderer:"ytd-offer-detail-step-renderer",offerSelectionStepRenderer:"ytd-offer-selection-step-renderer",
pdpViewModel:{component:"pdp-view-model",params:{internalScrolling:!0}},purchaseCompleteStepRenderer:"ytd-purchase-complete-step-renderer",reportFormReasonSelectPageViewModel:"yt-report-form-reason-select-page-view-model",reportFormDetailsPageViewModel:"yt-report-form-details-page-view-model",reportFormConfirmationPageViewModel:"yt-report-form-confirmation-page-view-model",reportFormSignInPageViewModel:"yt-report-form-sign-in-page-view-model",sectionGroupViewModel:"yt-section-group-view-model",sectionListRenderer:"ytd-section-list-renderer",
structuredContextNoteViewModel:"yt-structured-context-note-view-model",surveyFlowStepRenderer:"ytd-survey-flow-step-renderer",talkToRecsViewModel:"yt-talk-to-recs-view-model",ypcTransactionErrorMessageRenderer:"ytd-ypc-transaction-error-message-renderer",optionSelectionFlowStepRenderer:{component:"yt-option-selection-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",isDesktop:!0}},offerSummaryFlowStepRenderer:{component:"yt-offer-summary-flow-step-renderer",params:{flowClassName:"ytd-flow-step-renderer-content",
shouldDisableHeaderTopMargin:!0}}}},"data.bottomBar":{id:"bottom-bar",mapping:{reportFormBottomBarViewModel:"yt-report-form-bottom-bar-view-model",formFooterViewModel:"yt-form-footer-view-model",flowBottomBarViewModel:{component:"yt-flow-bottom-bar-view-model",params:{className:"ytd-flow-step-renderer bottom-bar-view-model"}},flowBottomBarRenderer:{matcher:function(I){return _.V("enable_wiz_next_lp2_msof")&&I&&!I.couponRenderer?"yt-flow-bottom-bar-renderer":"ytd-flow-bottom-bar-renderer"}}}}}};
_.H1.Object.defineProperties(gZ.prototype,{containsExploreHub:{configurable:!0,enumerable:!0,get:function(){var I;return _.V("web_hide_explore_hub_until_user_navigates_back_to_home")&&!!_.l((I=this.data)==null?void 0:I.content,zzP)}}});
gZ.prototype.onProgressChanged=gZ.prototype.onProgressChanged;gZ.prototype.onDataChanged=gZ.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],gZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gZ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],gZ.prototype,"enableScrollingFix",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],gZ.prototype,"bottomBar",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],gZ.prototype,"hideBottomBar",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],gZ.prototype,"containsExploreHub",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],gZ.prototype,"fitContent",void 0);_.E([_.z$("#progress"),_.h("design:type",HTMLElement)],gZ.prototype,"progressElement",void 0);
_.E([_.z$("#scroller"),_.h("design:type",Object)],gZ.prototype,"JSC$16705_scroller",void 0);_.E([_.z$("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],gZ.prototype,"topBar",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gZ.prototype,"onDataChanged",null);_.E([_.FI("data.progress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gZ.prototype,"onProgressChanged",null);
gZ=_.E([_.m({is:"ytd-flow-step-renderer",disableElementRegistration:!0})],gZ);
_.Z(gZ,"ytd-flow-step-renderer",function(){if(GOM!==void 0)return GOM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return GOM=I},{mode:1});var h8Y=function(I){this.resolveCommand=I;this.steps={}},U$B=function(I,C){C=_.T(C||[]);
for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=Object.values(y)[0],F=void 0;if((F=k)==null?0:F.stepId)I.steps[k.stepId]=y}},JqR=function(I,C){var y,k,F,z,c;
return _.e(function(r){if((y=I.state)==null||!y.currentStepId)return r.return(void 0);k=HHM(I);if(!k)return r.return(tRM(I));if(F=_.l(k,_.u$y)){var w;((w=F.screenLoggingData)==null?0:w.screenVeType)&&_.s7(_.e2(),F.screenLoggingData.screenVeType);((z=F)==null?0:z.onStepStartCommand)&&I.resolveCommand((c=F)==null?void 0:c.onStepStartCommand,{})}if(F&&C){w=F;var L,D,p,Q;((L=C.flowLoggingData)==null?0:L.eventNamespace)&&((D=w.flowEventData)==null?0:D.eventType)&&((p=w.flowEventData)==null?0:p.eventMetadata)&&
((Q=C.flowLoggingData)==null?0:Q.flowType)&&(L=_.z8(C.flowLoggingData.eventNamespace,w.flowEventData.eventType,w.flowEventData.eventMetadata),_.T8(_.cD(),L,C.flowLoggingData.flowType));C.steps&&!C.steps.includes(k)&&C.steps.push(k)}return r.return(k)})};
h8Y.prototype.back=function(){var I;(I=this.state)!=null&&I.stepIdStack&&(this.state.currentStepId=this.state.stepIdStack.pop())};
h8Y.prototype.handleUpdateFlowCommand=function(I){I.steps&&U$B(this,I.steps);I.entityUpdateCommand&&this.resolveCommand(I.entityUpdateCommand,{});I.flowContinuationCommand&&(I=I.flowContinuationCommand)&&(this.getFlowContinuationCommand=I);this.awaitFlowContinuation&&(this.awaitFlowContinuation(HHM(this)),this.awaitFlowContinuation=void 0)};
h8Y.prototype.reset=function(){this.state=void 0;this.steps={};this.awaitFlowContinuation=this.getFlowContinuationCommand=void 0};
var tRM=function(I){return _.e(function(C){return I.getFlowContinuationCommand?C.return(new Promise(function(y){I.awaitFlowContinuation=y;I.getFlowContinuationCommand&&I.resolveCommand(I.getFlowContinuationCommand,{flow_state:I.state})})):C.return(Promise.resolve(void 0))})},HHM=function(I){var C;
if((C=I.state)!=null&&C.currentStepId)return I.steps[I.state.currentStepId]};var vU=function(){var I=_.q.apply(this,arguments)||this;I.flowState=new h8Y(function(C,y){y=y===void 0?{}:y;_.FW.instance.resolveCommand(C,{form:{form:y,element:I.hostElement}})});
I.initialState=!0;I.isLoading=!1;I.actionMap={"yt-flow-prev-step-command":"handleFlowPrevStepCommand","yt-flow-next-step-command":"handleFlowNextStepCommand","yt-update-flow-command":"handleUpdateFlowCommand","yt-ypc-cancel-recurrence-command":"handleYpcCancelRecurrenceCommand","yt-flow-partial-update-flow-state-entity":"handlePartialUpdateFlowStateEntity"};return I};
_.R(vU,_.q);_.u=vU.prototype;_.u.onPopupClosed=function(I){I&&this.hostElement!==I.detail.popupRenderer||(this.flowState.reset(),this.currentFlowStep=this.data=void 0,this.initialState=!0)};
_.u.configureRendererStamper=function(){return{"data.topBar":{id:"top-bar",mapping:{flowTopBarRenderer:"ytd-flow-top-bar-renderer"}},currentFlowStep:{id:"flow-step",mapping:{flowStepRenderer:"ytd-flow-step-renderer"}}}};
_.u.focus=function(I){var C=this;_.SA(function(){var y=_.f(C.hostElement).querySelector("ytd-flow-step-renderer");y.topBar?y.focus(I):C.topBar&&_.UL(C.topBar,I)},1)};
_.u.attached=function(){this.hostElement.setAttribute("dialog","true")};
_.u.computeTopBarHidden=function(I){var C;return!((C=_.l(I,_.u$y))==null||!C.topBarOverride)};
_.u.dataChanged=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1){((C=I.data)==null?0:C.steps)&&U$B(I.flowState,I.data.steps);if((y=I.data)==null?0:y.flowContinuationCommand){var F=I.flowState,z=I.data.flowContinuationCommand;z&&(F.getFlowContinuationCommand=z)}return _.n(k,JqR(I.flowState,I.data),2)}I.currentFlowStep=k.yieldResult;_.oI(k)})};
_.u.flowChanged=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1){if(!I.flow)return y.return();I.flowState.state=I.flow;I.isLoading=!0;return _.n(y,JqR(I.flowState,I.data),2)}C=y.yieldResult;if(!C||I.flow.isLoading)return y.return();I.currentFlowStep=C;I.initialState=!1;I.isLoading=!1;I.autofocusAndRefit();_.oI(y)})};
_.u.autofocusAndRefit=function(){var I=this,C=_.N().resolve(_.aU(_.Du)),y=document.activeElement&&(document.activeElement.tagName==="TEXTAREA"||document.activeElement.tagName==="INPUT"||document.activeElement.tagName==="BUTTON"),k=document.querySelector("yt-report-form-confirmation-page-view-model"),F=document.querySelector("yt-report-form-details-page-view-model"),z=document.querySelector("yt-report-form-reason-select-page-view-model"),c=document.querySelector("yt-contributor-zero-state-view-model"),
r=document.querySelector("yt-structured-context-note-view-model"),w=document.querySelector("yt-note-view-model");(!y&&C&&C.isKeyBoardInUse()||k||!y&&F||!y&&z||c||r||w)&&_.HF(this.hostElement);_.hn(this,function(){_.k3(I.hostElement,"yt-refit")})};
_.u.handleUpdateFlowCommand=function(I){this.data&&(I=_.l(I,FCK),I.targetId===this.data.targetId&&(I.flowContinuationCommand&&(this.data.flowContinuationCommand=I.flowContinuationCommand),this.flowState.handleUpdateFlowCommand(I),this.autofocusAndRefit()))};
_.u.handleFlowNextStepCommand=function(I){this.data&&this.flow&&this.flow.key&&(I=_.l(I,yf8),I.targetId===this.data.targetId&&(I=I.stepId||"",this.ytdReduxBehavior.dispatch(_.bY("flowStateEntity",this.flow.key,{currentStepId:I,stepIdStack:(this.flow.stepIdStack||[]).concat(I)}))))};
_.u.handleFlowPrevStepCommand=function(I){if(this.data&&this.flow&&this.flow.key&&(I=_.l(I,kOK),I.targetId===this.data.targetId)){var C=[].concat(_.Py(this.flow.stepIdStack||[]));C.length>1?(C.pop(),this.ytdReduxBehavior.dispatch(_.bY("flowStateEntity",this.flow.key,{currentStepId:C[C.length-1],stepIdStack:C}))):I.onFirstStepCommand&&this.ytComponentBehavior.resolveCommand(I.onFirstStepCommand)}};
_.u.handleYpcCancelRecurrenceCommand=function(I){if(this.data&&this.flow&&this.flow.key&&(I=_.l(I,rfj),I.targetId===this.data.targetId&&I.endpointCommand)){var C=_.l(this.flow,i$L);C&&_.l(I.endpointCommand,_.ukq)&&(_.l(I.endpointCommand,_.ukq).feedbackData=C.surveyFeedback);this.ytComponentBehavior.resolveCommand(I.endpointCommand)}};
_.u.handlePartialUpdateFlowStateEntity=function(I){this.data&&this.flow&&this.flow.key&&this.ytdReduxBehavior.dispatch(_.bY("flowStateEntity",this.flow.key,I,"REPEATED_FIELDS_MERGE_OPTION_REPLACE"))};
vU.prototype.flowChanged=vU.prototype.flowChanged;vU.prototype.dataChanged=vU.prototype.dataChanged;vU.prototype.onPopupClosed=vU.prototype.onPopupClosed;_.E([_.g(_.lZ),_.h("design:type",Object)],vU.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vU.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],vU.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],vU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vU.prototype,"initialState",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vU.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Object)],vU.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],vU.prototype,"currentFlowStep",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vU.prototype,"onPopupClosed",null);_.E([_.d({selectorArgs:["data.flowStateEntityKey"],selector:uJy}),_.h("design:type",Object)],vU.prototype,"flow",void 0);_.E([_.z$("ytd-flow-top-bar-renderer"),_.h("design:type",HTMLElement)],vU.prototype,"topBar",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],vU.prototype,"dataChanged",null);_.E([_.rW("flow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],vU.prototype,"flowChanged",null);vU=_.E([_.m({is:"ytd-flow-root-renderer",disableElementRegistration:!0})],vU);
_.OHH=_.MH()(vU,"ytd-flow-root-renderer",function(){if(YuR!==void 0)return YuR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-flow-root-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="top-bar" hidden="[[computeTopBarHidden(currentFlowStep)]]" class="style-scope ytd-flow-root-renderer"></div>\n<div id="content" class="style-scope ytd-flow-root-renderer">\n  <div id="flow-step" class="style-scope ytd-flow-root-renderer"></div>\n  <div id="spinner-overlay" hidden="[[!isLoading]]" class="style-scope ytd-flow-root-renderer">\n    <tp-yt-paper-spinner-lite active="[[isLoading]]" class="style-scope ytd-flow-root-renderer"></tp-yt-paper-spinner-lite>\n  </div>\n</div>\n\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return YuR=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var axY;var J6=null;_.B9(_.BO(function(I){return _.P("yt-thumbnail-overlay-attribution-view-model",{class:"ytThumbnailOverlayAttributionViewModelHost"},_.P("div",{class:"ytThumbnailOverlayAttributionViewModelInnerContainer"},_.P(_.wh,{text:function(){return I.data().text}}),_.P("span",{class:"ytThumbnailOverlayAttributionViewModelBottomRightCorner"})))},"vf"),"yt-thumbnail-overlay-attribution-view-model",{props:{data:_.As}});var MR8=_.BO(function(I){var C=I.playerControlsProps;var y=I.isShortsPage;return _.P("yt-bigboard",null,_.P(_.Dx,{cond:function(){return C().isDragging},
then:function(){return _.P("div",{class:"ytBigboardStoryboardHost"},_.P(_.EGL,{progressBarProps:C,isShortsPage:y}))}}))},"wf");
MR8.idomCompat=!0;_.WU={ACCOUNT_LABEL:Ok("ACCOUNT_LABEL"),ACT_ON_THIS_COMMENT:Ok("ACT_ON_THIS_COMMENT"),ADD_TO_DROPDOWN_LABEL:Ok("ADD_TO_DROPDOWN_LABEL"),AD_BADGE_HINT:Ok("AD_BADGE_HINT"),AD_BADGE_TEXT:Ok("AD_BADGE_TEXT"),ALL_CHANNELS_LABEL:Ok("ALL_CHANNELS_LABEL"),AMBIENT_MODE:Ok("AMBIENT_MODE"),AMBIENT_MODE_OFF:Ok("AMBIENT_MODE_OFF"),AMBIENT_MODE_ON:Ok("AMBIENT_MODE_ON"),ANDROID_DEPRECATION_MESSAGE_BODY:Ok("ANDROID_DEPRECATION_MESSAGE_BODY"),ANDROID_DEPRECATION_MESSAGE_HEADER:Ok("ANDROID_DEPRECATION_MESSAGE_HEADER"),
APP_UPSELL_SUBTITLE:Ok("APP_UPSELL_SUBTITLE"),APP_UPSELL_TITLE:Ok("APP_UPSELL_TITLE"),AUTONAV_TOGGLE:Ok("AUTONAV_TOGGLE"),AUTOPLAY_IN_TEN_SECONDS:Ok("AUTOPLAY_IN_TEN_SECONDS"),AUTOPLAY_PAUSED:Ok("AUTOPLAY_PAUSED"),AUTOPLAY_PLAY_NOW:Ok("AUTOPLAY_PLAY_NOW"),AUTOPLAY_UP_NEXT_IN:Ok("AUTOPLAY_UP_NEXT_IN"),BACK:Ok("BACK"),CANCEL:Ok("CANCEL"),CHANNEL_SWITCHER_LABEL:Ok("CHANNEL_SWITCHER_LABEL"),CLOSE:Ok("CLOSE","close"),CLOSED_CAPTIONS_DISABLED:Ok("CLOSED_CAPTIONS_DISABLED"),CLOSED_CAPTIONS_OFF:Ok("CLOSED_CAPTIONS_OFF"),
CLOSED_CAPTIONS_ON:Ok("CLOSED_CAPTIONS_ON"),CLOSED_CAPTIONS_ON_LANGUAGE:Ok("CLOSED_CAPTIONS_ON_LANGUAGE"),CLOSE_SEARCH_LABEL:Ok("CLOSE_SEARCH_LABEL"),CLOSE_SETTINGS_LABEL:Ok("CLOSE_SETTINGS_LABEL"),COMMENT_MODAL_CONTENT:Ok("COMMENT_MODAL_CONTENT"),CONFIRM_OK:Ok("CONFIRM_OK"),CONNECT_TO_THE_INTERNET:Ok("CONNECT_TO_THE_INTERNET"),COPIED_TO_CLIPBOARD:Ok("COPIED_TO_CLIPBOARD"),COPY:Ok("COPY"),COPY_DEBUG_INFO:Ok("COPY_DEBUG_INFO"),COPY_EMBED_CODE:Ok("COPY_EMBED_CODE"),COPY_LINK_LABEL:Ok("COPY_LINK_LABEL"),
COPY_VIDEO_URL:Ok("COPY_VIDEO_URL"),COPY_VIDEO_URL_AT_CURRENT_TIME:Ok("COPY_VIDEO_URL_AT_CURRENT_TIME"),CREATE_CHANNEL_TITLE:Ok("CREATE_CHANNEL_TITLE"),DELETE_FROM_DOWNLOADS:Ok("DELETE_FROM_DOWNLOADS"),DIALOG:Ok("DIALOG"),DONE:Ok("DONE"),DOWNLOAD:Ok("DOWNLOAD"),FAILED_COPY_ERROR_MESSAGE:Ok("FAILED_COPY_ERROR_MESSAGE"),FLAG_CONFIRM:Ok("FLAG_CONFIRM"),FLAG_CONTENT:Ok("FLAG_CONTENT"),FLAG_LABEL:Ok("FLAG_LABEL"),FLAG_TITLE:Ok("FLAG_TITLE"),FULLSCREEN_GENERIC_ERROR:Ok("FULLSCREEN_GENERIC_ERROR"),GOOGLE_COMPANY:Ok("GOOGLE_COMPANY"),
HIDE_PLAYER_CONTROLS:Ok("HIDE_PLAYER_CONTROLS","Hide player controls"),HIDE_PLAYLIST_VIDEOS:Ok("HIDE_PLAYLIST_VIDEOS"),HIDE_SEARCH_FILTERS_LABEL:Ok("HIDE_SEARCH_FILTERS_LABEL"),HOME:Ok("HOME","Home"),INVALID_RESPONSE_RECEIVED:Ok("INVALID_RESPONSE_RECEIVED"),LIBRARY:Ok("LIBRARY","Library"),LISTENING:Ok("LISTENING"),LOADING:Ok("LOADING"),LONG_PRESS_MIC_TO_SPEAK:Ok("LONG_PRESS_MIC_TO_SPEAK","Long press mic_icon_placeholder to speak"),LOOP:Ok("LOOP"),MENU_DESKTOP:Ok("MENU_DESKTOP"),MENU_EXIT:Ok("MENU_EXIT"),
MENU_FEEDBACK:Ok("MENU_FEEDBACK"),MENU_HELP:Ok("MENU_HELP"),MENU_IMPRESSUM:Ok("MENU_IMPRESSUM"),MENU_PLAYER_SETTINGS:Ok("MENU_PLAYER_SETTINGS"),MENU_SETTINGS:Ok("MENU_SETTINGS"),MENU_SIGN_IN:Ok("MENU_SIGN_IN"),MENU_TITLE:Ok("MENU_TITLE"),MENU_YOUR_DATA:Ok("MENU_YOUR_DATA"),MORE_INFO:Ok("MORE_INFO"),MORE_OPTIONS:Ok("MORE_OPTIONS"),MUTE_VOLUME:Ok("MUTE_VOLUME"),NEW_PLAYLIST:Ok("NEW_PLAYLIST"),NEXT_VIDEO:Ok("NEXT_VIDEO"),NOTIFICATION_ERROR_MESSAGE:Ok("NOTIFICATION_ERROR_MESSAGE"),NOT_FOUND_CTA:Ok("NOT_FOUND_CTA"),
NOT_FOUND_MESSAGE:Ok("NOT_FOUND_MESSAGE"),NOT_FOUND_TITLE:Ok("NOT_FOUND_TITLE"),NO_DOWNLOADS:Ok("NO_DOWNLOADS"),NO_MIC_INPUT:Ok("NO_MIC_INPUT"),OFFLINE_CHECK_CONNECTION:Ok("OFFLINE_CHECK_CONNECTION"),OOPS_MESSAGE:Ok("OOPS_MESSAGE"),OPEN_APP:Ok("OPEN_APP"),OPEN_YOUTUBE:Ok("OPEN_YOUTUBE"),PAUSE:Ok("PAUSE"),PLAY:Ok("PLAY"),PLAYER_CAPTION:Ok("PLAYER_CAPTION"),PLAYER_CAPTION_OFF:Ok("PLAYER_CAPTION_OFF"),PLAYER_CAPTION_ON:Ok("PLAYER_CAPTION_ON"),PLAYER_DOUBLE_SPEED_USER_EDU:Ok("PLAYER_DOUBLE_SPEED_USER_EDU"),
PLAYER_DOUBLE_TAP_TO_SEEK:Ok("PLAYER_DOUBLE_TAP_TO_SEEK"),PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS:Ok("PLAYER_DOUBLE_TAP_TO_SHOW_OR_HIDE_PLAYER_CONTROLS"),PLAYER_EXIT_FULLSCREEN:Ok("PLAYER_EXIT_FULLSCREEN"),PLAYER_FASTFORWARD_SECONDS:Ok("PLAYER_FASTFORWARD_SECONDS"),PLAYER_FULLSCREEN:Ok("PLAYER_FULLSCREEN"),PLAYER_LIVE_LABEL:Ok("PLAYER_LIVE_LABEL"),PLAYER_LIVE_NOW:Ok("PLAYER_LIVE_NOW"),PLAYER_MINIMIZE:Ok("PLAYER_MINIMIZE"),PLAYER_NEXT:Ok("PLAYER_NEXT"),PLAYER_PAUSE:Ok("PLAYER_PAUSE"),PLAYER_PLAY:Ok("PLAYER_PLAY"),
PLAYER_PREVIOUS:Ok("PLAYER_PREVIOUS"),PLAYER_PROGRESS_BAR:Ok("PLAYER_PROGRESS_BAR"),PLAYER_QUALITY:Ok("PLAYER_QUALITY"),PLAYER_QUALITY_AUTO:Ok("PLAYER_QUALITY_AUTO"),PLAYER_REPLAY:Ok("PLAYER_REPLAY"),PLAYER_REWIND_SECONDS:Ok("PLAYER_REWIND_SECONDS"),PLAYER_SPEED:Ok("PLAYER_SPEED"),PLAYER_SPEEDUP_USER_EDU:Ok("PLAYER_SPEEDUP_USER_EDU"),PLAYER_SPEED_DECREASE:Ok("PLAYER_SPEED_DECREASE"),PLAYER_SPEED_INCREASE:Ok("PLAYER_SPEED_INCREASE"),PLAYER_SPEED_NORMAL:Ok("PLAYER_SPEED_NORMAL"),PLAYER_SPEED_RECENT:Ok("PLAYER_SPEED_RECENT"),
PLAYER_TIME_DURATION:Ok("PLAYER_TIME_DURATION"),PLAYER_TIME_ELAPSED:Ok("PLAYER_TIME_ELAPSED"),PLAYLIST_DESCRIPTION_INVALID_CHARACTERS:Ok("PLAYLIST_DESCRIPTION_INVALID_CHARACTERS"),PLAYLIST_MIX_DETAILED_LONG_BYLINE:Ok("PLAYLIST_MIX_DETAILED_LONG_BYLINE"),PLAYLIST_NAME_INVALID_CHARACTERS:Ok("PLAYLIST_NAME_INVALID_CHARACTERS"),PLAYLIST_NAME_MISSING:Ok("PLAYLIST_NAME_MISSING"),PLAYLIST_NAME_TOO_LONG:Ok("PLAYLIST_NAME_TOO_LONG"),PLAYLIST_PANEL_END_OF_PLAYLIST:Ok("PLAYLIST_PANEL_END_OF_PLAYLIST"),PLAYLIST_PANEL_NEXT:Ok("PLAYLIST_PANEL_NEXT"),
PLAYLIST_PANEL_UNLISTED_PLAYLIST:Ok("PLAYLIST_PANEL_UNLISTED_PLAYLIST"),PLAYLIST_TEXT_INPUT_CHAR_COUNT:Ok("PLAYLIST_TEXT_INPUT_CHAR_COUNT"),PLAY_ALL:Ok("PLAY_ALL"),PLEASE_FIX_ERRORS:Ok("PLEASE_FIX_ERRORS"),PREVIOUS_VIDEO:Ok("PREVIOUS_VIDEO"),PRIVACY_POLICY:Ok("PRIVACY_POLICY"),RELOAD:Ok("RELOAD"),REQUIRED_LABEL:Ok("REQUIRED_LABEL"),SAVE_PLAYLIST:Ok("SAVE_PLAYLIST"),SCRUB_SLIDE_USER_EDU:Ok("SCRUB_SLIDE_USER_EDU"),SEARCH:Ok("SEARCH","Search"),SEARCH_APPEND_LABEL:Ok("SEARCH_APPEND_LABEL"),SEARCH_CHANNEL:Ok("SEARCH_CHANNEL"),
SEARCH_CLEAR_LABEL:Ok("SEARCH_CLEAR_LABEL"),SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST:Ok("SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST","Album"),SEARCH_ENTITY_SUGGESTION_MOVIE:Ok("SEARCH_ENTITY_SUGGESTION_MOVIE","Movie"),SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST:Ok("SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST","Song"),SEARCH_ENTITY_SUGGESTION_TV_SHOW:Ok("SEARCH_ENTITY_SUGGESTION_TV_SHOW","TV Show"),SEARCH_FILTERS_LABEL:Ok("SEARCH_FILTERS_LABEL"),SEARCH_LABEL:Ok("SEARCH_LABEL"),SEARCH_PPP_PLACEHOLDER_TEXT:Ok("SEARCH_PPP_PLACEHOLDER_TEXT"),
SEEK_SLIDER:Ok("SEEK_SLIDER"),SETTINGS_LABEL:Ok("SETTINGS_LABEL"),SETTINGS_MIC_PERMISSION:Ok("SETTINGS_MIC_PERMISSION"),SHORTS_TAB_LABEL:Ok("SHORTS_TAB_LABEL","Shorts"),SHOW_LESS:Ok("SHOW_LESS"),SHOW_MORE:Ok("SHOW_MORE"),SHOW_PLAYER_CONTROLS:Ok("SHOW_PLAYER_CONTROLS","Show player controls"),SHOW_PLAYLIST_VIDEOS:Ok("SHOW_PLAYLIST_VIDEOS"),SHOW_SEARCH_FILTERS_LABEL:Ok("SHOW_SEARCH_FILTERS_LABEL"),SIGN_IN_LABEL:Ok("SIGN_IN_LABEL"),SIGN_IN_ON_WEB:Ok("SIGN_IN_ON_WEB"),STABLE_VOLUME:Ok("STABLE_VOLUME"),
STABLE_VOLUME_OFF:Ok("STABLE_VOLUME_OFF"),STABLE_VOLUME_ON:Ok("STABLE_VOLUME_ON"),STATS_FOR_NERDS:Ok("STATS_FOR_NERDS"),SUGGESTION_DISMISSED_LABEL:Ok("SUGGESTION_DISMISSED_LABEL"),SUGGESTION_DISMISS_LABEL:Ok("SUGGESTION_DISMISS_LABEL"),SUGGESTION_NEW_VIDEOS_TEXT:Ok("SUGGESTION_NEW_VIDEOS_TEXT"),SUGGESTION_THUMBNAIL_LABEL:Ok("SUGGESTION_THUMBNAIL_LABEL"),TERMS_OF_SERVICE:Ok("TERMS_OF_SERVICE"),TIMESTAMP_MINUTES:Ok("TIMESTAMP_MINUTES"),TIMESTAMP_SECONDS:Ok("TIMESTAMP_SECONDS"),TOGGLE_OFF:Ok("TOGGLE_OFF"),
TOGGLE_ON:Ok("TOGGLE_ON"),TRENDING:Ok("TRENDING"),TROUBLESHOOT_PLAYBACK_ISSUE:Ok("TROUBLESHOOT_PLAYBACK_ISSUE"),TRY_AGAIN_LATER:Ok("TRY_AGAIN_LATER"),TRY_AGAIN_MIC_PERMISSION:Ok("TRY_AGAIN_MIC_PERMISSION"),TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE:Ok("TURN_OFF_AUTOPLAY_CONFIRM_BUTTON_TITLE"),TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION:Ok("TURN_OFF_AUTOPLAY_DIALOG_DESCRIPTION"),TURN_OFF_AUTOPLAY_DIALOG_TITLE:Ok("TURN_OFF_AUTOPLAY_DIALOG_TITLE"),UNMUTE_VOLUME:Ok("UNMUTE_VOLUME"),VIDEO_LINK_LABEL:Ok("VIDEO_LINK_LABEL")};var IJB=_.BO(function(I){var C=I.playerApi;I=_.Es(function(F){Ek(F,36843)});
var y=Ok("PLAYER_FASTFORWARD_SECONDS","",{seconds_placeholder:"30"}),k=_.uk(function(){h6(36843);C&&C().seekBy(30);window.dispatchEvent(new CustomEvent("jump-forward-clicked"));return!1});
return _.P("jump-forward-button",{class:"ytPlayerControlsJumpForwardButtonHost"},_.P("button",{el:I,class:"ytPlayerControlsJumpForwardButtonButton",title:y,"aria-label":y,"on:click":k},_.P("span",null,_.P(_.ez,{icon:"FAST_FORWARD"}))))},"xf");var CXR=_.BO(function(I){var C=I.appApi;I=_.Es(function(F){Ek(F,62946)});
var y=Ok("OPEN_IN_MINIPLAYER"),k=_.uk(function(){h6(62946);var F,z;(z=(F=C()).openInMiniplayer)==null||z.call(F);return!1});
return _.P("miniplayer-button",{class:"ytMiniplayerButtonHost"},_.P("button",{el:I,class:"ytMiniplayerButtonButton",title:y,"aria-label":y,"on:click":k},_.P(_.ez,{icon:"PICTURE_IN_PICTURE",active:!1})))},"yf");var sDP=_.BO(function(I){var C=I.playerApi;I=_.Es(function(c){Ek(c,142812)});
var y=_.T(_.c4(!1,void 0,"I3VCyb")),k=y.next().value,F=y.next().value;y=function(){return Ok("SET_PLAYBACK_SPEED_X","",{speed_rate_placeholder:""+(k()?1:2)})};
var z=_.uk(function(){h6(142812);if(C){var c=C(),r=k();c.setPlaybackRate(r?1:2);F(!k())}return!1});
return _.P("yt-playback-speed-button",{class:"ytPlaybackSpeedButtonHost"},_.P("button",{el:I,class:"ytPlaybackSpeedButtonButton",title:y,"aria-label":y,"on:click":z},_.P("span",null,_.P(_.ez,{icon:function(){return k()?"PLAY_ARROW_HALF_CIRCLE_FILLED":"PLAY_ARROW_HALF_CIRCLE"}}))))},"zf");var ot8=_.BO(function(I){var C=I.title;var y=I.ariaLabel;var k=I.icon;var F=I.command;var z=I.veType;I=_.Es(function(r){z&&Ek(r,z())});
var c=_.uk(function(){z&&h6(z());F&&_.N().resolve(_.ID).resolveCommand(F())});
return _.P("ytd-thumbnail-overlay-button",{class:"ytdThumbnailOverlayButtonHost"},_.P("button",{el:I,class:"ytdThumbnailOverlayButtonButton",title:C,"aria-label":y,"on:click":c},_.P(_.ez,{icon:k})))},"Af");var yYS=["en-CA","en","es-MX","fr-CA"];var klM=_.BO(function(I){var C=_.ZB(I,{isOverlay:!1}),y=C.captionIconType,k=C.onClick;I=C.ariaLabel;var F=C.ariaPressed,z=C.isOverlay;C=_.Es(function(w){Ek(w,127299)});
var c=_.uk(function(w){h6(127299);k==null||k(w);return!1}),r={};
return _.P("ytm-closed-captioning-button",{class:_.sZ("ytmClosedCaptioningButtonHost",(r.ytmClosedCaptioningButtonIconDisabledOverlay=function(){return y()===-1&&z()},r.ytmClosedCaptioningButtonIconDisabled=function(){return y()===-1&&!z()},r))},_.P("button",{el:C,
class:"ytmClosedCaptioningButtonButton",title:I,"aria-label":I,"aria-pressed":F,"on:click":c},_.P(_.ez,{icon:function(){var w="";var L=_.pA().get("hl");L=!L||yYS.includes(L)?"CLOSED_CAPTION":"SUBTITLES";var D=y();switch(D){case -1:case 0:w=L;break;case 1:w=L+"_FILLED";break;default:_.C8(D)}return w}})))},"Bf");
klM.idomCompat={callbacks:{onClick:!0}};var BX="";var FZS=_.BO(function(I){var C=I.playerControlsProps,y=I.onClickFn;I=_.P4(function(){var z=C(),c=-1;z.captionsAvailable&&(c=z.captionsEnabled?1:0);return c},void 0,"WecR8e");
var k=_.P4(function(){var z=C();return z.captionsAvailable?_.PQ(z.captionsEnabled?"CLOSED_CAPTIONS_ON":"CLOSED_CAPTIONS_OFF"):_.PQ("CLOSED_CAPTIONS_DISABLED")},void 0,"atEfde"),F=_.P4(function(){var z=C();
z=z.captionsAvailable?z.captionsEnabled:void 0;return z},void 0,"Q17ly");
return _.P("yt-closed-captions-toggle-button",null,_.P(klM,{captionIconType:I,ariaLabel:k,ariaPressed:F,onClick:function(z){var c=C();if(c.captionsAvailable){var r=c.playerApi;if(r){var w=c.playerApi;if(w){var L=BX;if(L){w=w.getOption("captions","track");var D;BX=(D=w?w.displayName:null)!=null?D:L}else w.getOptions("captions")?(L=ciB(w),BX=L.length?(D=eCB(L))?D.displayName:L[0].displayName:""):BX=""}riM(r);_.V("mweb_disable_set_state_captions_killswitch")&&c.setState({captionsEnabled:!c.captionsEnabled})}}var p,
Q;(Q=(p=c.appApi).showCaptionsToggleToast)==null||Q.call(p,c);y==null||y(z)},
isOverlay:!0}))},"Cf");var uTP=_.BO(function(I){var C=I.data;return _.P("yt-premiere-trailer-badge",{class:"yt-premiere-trailer-badge"},_.P(_.t9,{data:function(){return{type:16,text:_.XBF(C().label)}}}))},"Df");var zwY=_.BO(function(I){var C=_.sZ("ytPlayerControlsAnimatedSeekArrowsArrow",function(){return I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsForwardArrow":"ytPlayerControlsAnimatedSeekArrowsBackwardArrow"},function(){return I.size()==="small"?"ytPlayerControlsAnimatedSeekArrowsArrowSmall":"ytPlayerControlsAnimatedSeekArrowsArrowLarge"},function(){return I.size()==="small"?I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowSmallForward":"ytPlayerControlsAnimatedSeekArrowsArrowSmallBackward":
I.direction()===1?"ytPlayerControlsAnimatedSeekArrowsArrowLargeForward":"ytPlayerControlsAnimatedSeekArrowsArrowLargeBackward"});
return _.P("animated-seek-arrows",{class:_.sZ("ytPlayerControlsAnimatedSeekArrowsHost")},_.P("span",{class:C}),_.P("span",{class:C}),_.P("span",{class:C}))},"Ef");
zwY.idomCompat=!0;var TCy=_.BO(function(){var I=_.PQ("PLAYER_SECONDS",{seconds_placeholder:"30"}),C=_.T(_.c4(!1,void 0,"Yj8msb")),y=C.next().value,k=C.next().value,F=_.T(_.c4(!1,void 0,"r9Z50e"));C=F.next().value;var z=F.next().value;F={};var c=_.sZ("jumpForwardOverlayOverlay",(F.jumpForwardOverlayOverlayHidden=C,F));_.RU(function(){var r=null,w=null,L=function(){r!==null&&_.R7().cancelJob(r);w!==null&&_.R7().cancelJob(w);z(!0);k(!0);_.tE(_.R7(),function(){z(!1)});
r=_.tE(_.R7(),function(){z(!0);w=_.tE(_.R7(),function(){k(!1)},200)},600)};
window.addEventListener("jump-forward-clicked",L);_.$4(function(){window.removeEventListener("jump-forward-clicked",L)})});
return _.P("jump-forward-overlay",{class:"jumpForwardOverlayHost"},_.P(_.Dx,{cond:y,then:function(){return _.P("div",{class:c},_.P(zwY,{direction:1,size:"large"}),_.P("div",null,I))}}))},"Ff");var KcR=_.WU.MUTE_VOLUME,SBK=_.WU.UNMUTE_VOLUME,cYK=_.BO(function(I){var C=I.muteIconType;var y=I.onClick;var k=I.useOutlineIcon;I=_.Es(function(c){Ek(c,28662)});
var F=function(){return AkY(C(),k==null?void 0:k()).ariaLabel},z=_.uk(function(c){h6(28662);
y==null||y(c);return!1});
return _.P("ytm-mute-button",{class:"ytmMuteButtonHost"},_.P("button",{el:I,class:"ytmMuteButtonButton",title:F,"aria-label":F,"on:click":z},_.P("span",null,_.P(_.ez,{icon:function(){return AkY(C(),k==null?void 0:k()).iconName}}))))},"Gf");var ew8=_.BO(function(I){var C=I.volumeProps;var y=I.onClickFn;var k=I.useOutlineIcon;return _.P("yt-mute-toggle-button",null,_.P(cYK,{muteIconType:function(){var F=C(),z=!_.V("mweb_treat_zero_volume_as_muted_killswitch")&&F.volume===0;return F.volumeMuted||z?0:1},
onClick:function(F){var z=C().playerApi;z&&(z.isMuted()?z.unMute():z.mute(!1));y==null||y(F)},
useOutlineIcon:function(){return!(k==null||!k())}}))},"Hf");
ew8.idomCompat=!0;var rYy=_.BO(function(I){var C=I.data;var y=_.Es();I=_.uk(function(){y.value.classList.add("ytmPaidContentOverlayHidden");return!1});
return _.P("ytm-paid-content-overlay-renderer",{class:"ytmPaidContentOverlayHost",el:y,"on:animationend":I},_.P(_.ik,{command:function(){return C().navigationEndpoint},
className:"ytmPaidContentOverlayLink"},_.P(_.Dx,{cond:function(){var k;return(k=C().icon)==null?void 0:k.iconType},
then:function(){return _.P("span",null,_.P(_.ez,{icon:function(){var k;return(k=C().icon)==null?void 0:k.iconType}}))}}),_.P("div",{class:"ytmPaidContentOverlayText"},_.P(_.wh,{text:function(){return C().text}})),_.P(_.Dx,{cond:function(){return C().navigationEndpoint},
then:function(){return _.P(_.ez,{icon:"CHEVRON_RIGHT"})}})))},"If");
rYy.idomCompat=!0;var gqR=[].concat(_.Py([{register:function(I){var C=h3Y(I),y;(y=I().playerApi)==null||y.addEventListener("onVolumeChange",C);return function(){}}},
{register:function(I){var C=U9L(I);I=I().playerApi;I==null||I.addEventListener("captionschanged",C);I==null||I.addEventListener("captionssettingschanged",C);I==null||I.addEventListener("onCaptionsTrackListChanged",C);return function(){}}},
{register:function(I){if(!_.V("mweb_screenreader_accessible_player"))return function(){};
var C=HLH(I),y=document.querySelector("video");y==null||y.addEventListener("touchend",C);return function(){y==null||y.removeEventListener("touchend",C)}}},
{register:function(I){if(!_.V("mweb_screenreader_detect_screenreader_user_focus"))return function(){};
var C=HLH(I),y=document.querySelector("video");y==null||y.addEventListener("focus",C);return function(){y==null||y.removeEventListener("focus",C)}}}]),[{register:function(I){var C=m9j(I),y;
(y=I().playerApi)==null||y.addEventListener("onStateChange",C);return function(){}}},
{register:function(I){var C=ZLy(I),y;(y=I().playerApi)==null||y.addEventListener("onPlaybackRateChange",C);return function(){}}},
{register:function(I){var C=BQH(I),y;(y=I().playerApi)==null||y.addEventListener("onVideoDataChange",C);return function(){}}},
{register:function(I){var C=EqR(I),y,k;(y=I())==null||(k=y.playerApi)==null||k.addEventListener("onVideoProgress",C);return function(){}}}]);var ihL=_.BO(function(I){var C=I.data;var y=function(){return _.PQ("PLAYBACK_SPEED_X",{speed_rate_placeholder:""+C().playbackRate})};
return _.P(_.Dx,{cond:function(){return C().playbackRate&&C().playbackRate!==1},
then:function(){return _.P("yt-playback-rate-overlay",{class:"ytPlaybackRateOverlayHost"},_.P("div",{class:"ytPlaybackRateOverlayOverlay"},_.P(zwY,{direction:1,size:"small"}),_.P("div",{class:"ytPlaybackRateOverlayLabel"},y)))}})},"Jf");var wNK=_.BO(function(I){var C=I.data;return _.P("div",{class:"ytInlinePlayerControlsTopLeftControls"},_.P(_.Dx,{cond:function(){var y,k=(y=C())==null?void 0:y.playerResponse,F;return k==null?void 0:(F=k.paidContentOverlay)==null?void 0:F.paidContentOverlayRenderer},
then:function(y){return _.P(rYy,{data:y})}}))},"Lf"),ntK=_.BO(function(I){var C=I.props;
var y=I.data;var k=I.options;var F=function(){var L,D,p,Q;return(L=y())==null?void 0:(D=L.playerResponse)==null?void 0:(p=D.playerConfig)==null?void 0:(Q=p.inlinePlaybackConfig)==null?void 0:Q.showAudioControls},z=function(){var L,D;
if(F()&&((L=k())==null?void 0:(D=L.additionalButton)==null?void 0:D.button)!==void 0){var p,Q,X;L=(p=y())==null?void 0:(Q=p.playerApi)==null?void 0:(X=Q.getSize())==null?void 0:X.height;if(!(L===void 0||L<184)){var b,S;return(b=k())==null?void 0:(S=b.additionalButton)==null?void 0:S.button}}},c=function(){var L,D;
return(L=k())==null?void 0:(D=L.additionalButton)==null?void 0:D.thumbnailOverlayButtonRenderers},r=function(){var L,D;
return(L=k())==null?void 0:(D=L.additionalButton)==null?void 0:D.thumbnailOverlayButtonViewModels},w=function(){var L=[_.P(ew8,{volumeProps:C}),
_.P(FZS,{playerControlsProps:C})];z()===1&&L.push(_.P(IJB,{playerApi:function(){return C().playerApi}}));
z()===2&&L.push(_.P(CXR,{appApi:function(){return C().appApi}}));
z()===3&&L.push(_.P(sDP,{playerApi:function(){return C().playerApi}}));
var D=c();if(z()===4&&D){D=_.T(D);for(var p=D.next(),Q={};!p.done;Q={tooltip$jscomp$2:void 0,ariaLabel$jscomp$21:void 0,icon$jscomp$55:void 0,command$jscomp$566:void 0},p=D.next()){p=p.value;Q.tooltip$jscomp$2=p.tooltip;var X=void 0,b=void 0;Q.ariaLabel$jscomp$21=((X=p.accessibility)==null?void 0:(b=X.accessibilityData)==null?void 0:b.label)||Q.tooltip$jscomp$2;X=void 0;Q.icon$jscomp$55=(X=p.icon)==null?void 0:X.iconType;Q.command$jscomp$566=p.command;Q.tooltip$jscomp$2&&Q.ariaLabel$jscomp$21&&Q.icon$jscomp$55&&
L.push(_.P(ot8,{title:function(S){return function(){return S.tooltip$jscomp$2}}(Q),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$21}}(Q),
icon:function(S){return function(){return S.icon$jscomp$55}}(Q),
command:function(S){return function(){return S.command$jscomp$566}}(Q)}))}}D=r();
if(z()===4&&D)for(D=_.T(D),p=D.next(),Q={};!p.done;Q={tooltip$jscomp$3:void 0,ariaLabel$jscomp$22:void 0,icon$jscomp$56:void 0,command$jscomp$567:void 0},p=D.next())p=p.value,Q.tooltip$jscomp$3=p.title,Q.ariaLabel$jscomp$22=p.accessibilityText||Q.tooltip$jscomp$3,Q.icon$jscomp$56=p.iconName,Q.command$jscomp$567=_.Rj(p.onTap),Q.tooltip$jscomp$3&&Q.ariaLabel$jscomp$22&&Q.icon$jscomp$56&&L.push(_.P(ot8,{title:function(S){return function(){return S.tooltip$jscomp$3}}(Q),
ariaLabel:function(S){return function(){return S.ariaLabel$jscomp$22}}(Q),
icon:function(S){return function(){return S.icon$jscomp$56}}(Q),
command:function(S){return function(){return S.command$jscomp$567}}(Q)}));
return L};
return _.P(_.Dx,{cond:F,then:function(){return _.P("div",{class:"ytInlinePlayerControlsTopRightControls"},_.P(_.pH,{each:w},function(L){return _.P("div",{class:"ytInlinePlayerControlsTopRightControlsCircleButton"},_.P("div",{class:"ytInlinePlayerControlsButtonIcon"},L))}))}})},"Mf"),DSK=_.BO(function(I){var C=I.props;
var y=I.data;var k=I.options;I={};I=_.sZ("ytInlinePlayerControlsBottomRightControls",(I.ytInlinePlayerControlsBottomRightControlsHidden=function(){var F;return JkL(y(),k())&&((F=k())==null?void 0:F.insetProgressBar)&&(C().isHovering||C().isDragging)},I));
return _.P("div",{class:I},_.P(PXH,{data:y}),_.P(_.Dx,{cond:function(){var F;return!((F=k())==null?0:F.hideTimeDisplay)},
then:function(){return _.P(LZM,{props:C})}}))},"Nf"),PXH=_.BO(function(I){var C=I.data;
return _.P(_.lY,{data:function(){var y;return fDH((y=C())==null?void 0:y.thumbnailOverlays)}},{premiereTrailerBadgeRenderer:uTP})},"Of"),LZM=_.BO(function(I){var C=I.props;
return _.P(_.Dx,{cond:function(){return C().isLive},
then:function(){return _.P(pN8,null)},
else:function(){return _.P(QDL,{props:C})}})},"Pf"),QDL=_.BO(function(I){var C=I.props;
return _.P("div",{class:_.sZ("ytInlinePlayerControlsTimeDisplay"),"aria-label":function(){return _.WU.PLAYER_TIME_ELAPSED+" "+_.cNI(C().playedTime)}},_.P(_.t9,{data:function(){return{type:16,
text:_.cNI(C().videoDuration-C().playedTime)}}}))},"Qf"),pN8=_.BO(function(){return _.P("div",{class:_.sZ("ytInlinePlayerControlsTimeDisplay","ytInlinePlayerControlsLiveBadge")},_.P(_.t9,{data:{type:17,
text:_.WU.PLAYER_LIVE_LABEL,icon:"LIVE"}}))},"Rf"),NC8=_.BO(function(I){var C=I.props;
var y=I.data;var k=I.options;return _.P(_.O28,{progressBarProps:C,config:function(){var F,z=_.l((F=y())==null?void 0:F.multiMarkersPlayerBar,_.S7d),c;F=((c=k())==null?0:c.insetProgressBar)?2:1;var r;c=(r=k())==null?void 0:r.useFinePointerTargetSizes;return{unmuteOnSeek:!1,position:F,chapterData:z,isInlinePlayback:!0,doSeekOnClick:c,playheadDotBehavior:c?1:0}}})},"Sf");_.B9(_.BO(function(I){var C=I.data;var y=I.appApi;var k=I.options;var F=qBP(C,tyK(y));I={};y={};return _.P("yt-inline-player-controls",{class:"ytInlinePlayerControlsHost"},_.P("div",{class:_.sZ("ytInlinePlayerControlsDarkenedOverlay",(I.ytInlinePlayerControlsDarkenedOverlayShow=function(){return F().isHovering},I))}),_.P(TCy,null),_.P(ihL,{data:F}),_.P(wNK,{data:C}),_.P(MR8,{playerControlsProps:F,
isShortsPage:!1}),_.P("div",{class:_.sZ((y.ytInlinePlayerControlsControlsHidden=function(){return F().isDragging},y))},_.P(ntK,{props:F,
data:C,options:k}),_.P(DSK,{props:F,data:C,options:k})),_.P(_.Dx,{cond:function(){return JkL(C(),k())},
then:function(){return _.P(NC8,{props:F,data:C,options:k})}}))},"Kf"),"yt-inline-player-controls",{props:{data:_.As,
appApi:_.Z_,options:_.As}});var dZ=function(){var I=_.q.apply(this,arguments)||this;I.opts=null;I.playerControlsData=null;I.playerControlsAppApi={openInMiniplayer:function(){I.openInMiniplayer()}};
I.playerControlsOptions={};I.noAnimation=!1;I.playbackIntentTriggered=!1;I.positionData=null;I.hidden=!0;I.active=!1;I.playing=!1;I.videoPreviewDataIndex=0;I.JSC$16760_playerPromise=null;I.player=null;I.enableAudioControls=!1;I.hasBeenUnmuted=!1;I.captionsHaveBeenTurnedOff=!1;I.JSC$16760_playerEvents=new Map;I.videoPreviewFetchRequest=null;I.scheduledPreviewEndJobId=null;I.JSC$16760_preventProgressSaveTimer=null;I.watchEndpointStartTimeUpdaterInterval=null;I.actionMap={"yt-open-video-preview-action":"handleOpenVideoPreviewAction",
"yt-terminate-video-preview-action":"onTerminateVideoPreviewAction","yt-get-inline-preview-player-action":"getInlinePreviewPlayer","yt-window-resized":"onWindowResized"};I.windowOnBlurFn=function(){I.deactivate()};
return I};
_.R(dZ,_.q);_.u=dZ.prototype;
_.u.configureRendererStamper=function(){return{"opts.videoPreviewData.thumbnailOverlays":_.V("web_enable_rich_item_on_focus_effect")?{id:"endorsement",mapping:{}}:{id:"endorsement",mapping:{thumbnailOverlayEndorsementRenderer:{component:"ytd-thumbnail-overlay-endorsement-renderer",params:{disableAnimation:!0,rounded:!0}},attributionViewModel:{component:"yt-thumbnail-overlay-attribution-view-model"}}},"videoPreviewData.thumbnailOverlays":{id:"overlays",mapping:{pageIndicatorViewModel:"yt-page-indicator-view-model",thumbnailOverlayBottomPanelRenderer:"ytd-thumbnail-overlay-bottom-panel-renderer",
thumbnailOverlayTitleViewModel:"yt-thumbnail-overlay-title-view-model"}}}};
_.u.attached=function(){window.addEventListener("blur",this.windowOnBlurFn);this.JSC$16760_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$16760_playerEvents.set("onPlaybackStartExternal",this.onPlaybackStart);this.JSC$16760_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete);this.JSC$16760_playerEvents.set("captionschanged",this.onCaptionsChanged);document.addEventListener("yt-page-type-changed",_.sb(this,this.onPageTypeChange));this.pagePath=location.pathname};
_.u.detached=function(){window.removeEventListener("blur",this.windowOnBlurFn)};
_.u.onPageTypeChange=function(){this.deactivate()};
_.u.onWindowResized=function(){this.deactivate()};
_.u.onCaptionsChanged=function(I){I=!!I.languageCode;this.playing&&this.allowCaptions()&&(this.captionsHaveBeenTurnedOff=!I);this.setCaptionSize()};
_.u.setCaptionSize=function(){var I;if(this.active&&!this.captionsHaveBeenTurnedOff&&((I=this.player)==null?0:I.getCaptionWindowContainerId())){var C;(C=this.player)==null||C.updateSubtitlesUserSettings({fontSizeIncrement:2},!1)}};
_.u.currentPageAllowed=function(){return!this.isWatchPage};
_.u.alignVideoPreviewForAnimation=function(){this.hidden=!1;this.noAnimation=!0;this.positionData=this.getThumbnailPositionData();if(!this.positionData)return!1;var I=this.positionData,C=I.initialTopPosition,y=I.initialHorizontalPosition;_.CK(this.hostElement,{"--ytd-video-preview-translate-left":I.finalHorizontalPosition-y+"px","--ytd-video-preview-translate-top":I.finalTopPosition-C+"px","--ytd-video-preview-original-top-position":C+"px","--ytd-video-preview-original-horizontal-position":y+"px",
"--ytd-video-preview-initial-scale":"scale("+I.initialScale+")","--ytd-video-preview-width":I.videoPreviewWidth+"px","--ytd-video-preview-height":I.videoPreviewHeight+"px"});return!0};
_.u.handleOpenVideoPreviewAction=function(I){var C=this,y;return _.e(function(k){if(!C.currentPageAllowed())return k.return(0);C.opts=I;return(y=C.alignVideoPreviewForAnimation(I.thumbnail))?k.return(C.activate()):k.return(0)})};
_.u.onMouseLeave=function(I){this.shouldDeactivateOnMouseLeave(I)&&this.deactivate()};
_.u.optsChanged=function(){this.scheduledPreviewEndJobId&&(_.b$.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=null)};
_.u.onInlinePreviewIsEnabledChange=function(){!this.inlinePreviewIsEnabled&&this.playbackIntentTriggered&&this.deactivate()};
_.u.onIsAdsVideoChange=function(){this.isAdsVideo&&this.ytSparklesClickLocationBehavior.configureClickTargets("video-preview-container",dZ.JSC$16759_DEFAULT_CLICK_LOCATION_BEHAVIOR,dZ.JSC$16759_CLICK_LOCATION_ID_MAP)};
_.u.shouldDeactivateOnMouseLeave=function(I){I=I.relatedTarget;if(!I)return!0;var C;return(C=this.opts)!=null&&C.mediaRenderer?!_.Oq(this.opts.mediaRenderer).contains(I):!0};
_.u.onPlayerStateChange=function(){this.player&&this.player.getPlayerState()===0&&(this.hasMultipleVideoPreviews()?this.startPlaybackForNextVideo():this.deactivate({resetWatchEndpointStartTime:!0}))};
_.u.onPlaybackStart=function(){var I=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$16760_preventProgressSaveTimer=
_.tE(_.b$,function(){I.resetPreventProgressSaveTimer()},1E4);
var C;if((C=this.opts)==null?0:C.videoPreviewDurationMs)this.scheduledPreviewEndJobId=_.tE(_.b$,function(){I.hasMultipleVideoPreviews()?I.startPlaybackForNextVideo():I.deactivate()},this.opts.videoPreviewDurationMs);
var y;this.player.setGlobalCrop(((y=this.opts)==null?0:y.cropPlayerToFillThumbnailHorizontally)?"fullwidth":null)}};
_.u.getRoundedCornersSize=function(){var I;if((I=this.opts)==null?0:I.roundedCornersSize){var C;return(C=this.opts)==null?void 0:C.roundedCornersSize}var y;if((y=this.opts)==null?0:y.enableRounding){var k;if(((k=this.opts)==null?void 0:k.thumbnailSize)==="small")return 1;var F;if(((F=this.opts)==null?void 0:F.thumbnailSize)==="medium")return 2;var z;if(((z=this.opts)==null?void 0:z.thumbnailSize)==="large")return 3}return _.V("web_imp_inset_progress_bar")?3:0};
_.u.onSeekComplete=function(){this.resetPreventProgressSaveTimer()};
_.u.onTerminateVideoPreviewAction=function(){this.deactivate()};
_.u.onMediaContainerClick=function(I){this.isShortcutClick(I)||(this.navigateToWatch(I),I.preventDefault(),I.stopPropagation())};
_.u.activate=function(){var I=this,C,y,k,F,z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:if(!I.currentPageAllowed())return D.return(0);y=(C=I.videoPreviewData)==null?void 0:C.inlinePlaybackEndpoint;k=_.KE.instance;if(!y||!k)return D.return(0);I.playbackIntentTriggered=!0;((F=I.opts)==null?0:F.mediaRenderer)&&((z=I.opts)==null||!z.isAutoplay)&&GeK(I.opts.mediaRenderer,function(){I.deactivate()});
_.hn(I,function(){I.revealPreviewUi()});
c={};_.V("enable_unknown_lact_fix_on_html5")&&(_.N().resolve(_.Qc),c.lact=_.Ci());I.videoPreviewFetchRequest=lDj(k,I.getInlinePlaybackRequestData(I.videoPreviewData),c);_.aM(D,2);return _.n(D,I.videoPreviewFetchRequest,4);case 4:r=D.yieldResult;if(((w=r)==null?void 0:(L=w.playabilityStatus)==null?void 0:L.status)==="OK")return D.return(I.handlePlayerResponse(r));throw Error("Ij");case 2:_.sj(D),I.deactivate();case 3:return D.return(1)}})};
_.u.getInlinePlaybackRequestData=function(I){var C,y=_.V("web_imp_player_mute_params")?((C=this.opts)==null?void 0:C.forceMutedVolume)||!this.hasBeenUnmuted:!0;return{endpoint:I.inlinePlaybackEndpoint,startPlaybackInMutedState:y}};
_.u.handlePlayerResponse=function(I){var C=this,y,k,F,z,c,r,w,L,D,p;return _.e(function(Q){if(Q.nextAddress==1){y=C.getInlinePlaybackVideoId();if(!(((k=I)==null?0:(F=k.videoDetails)==null?0:F.videoId)&&C.currentPageAllowed()&&C.playbackIntentTriggered&&C.opts&&y))return C.deactivate(),Q.return(0);if(I.videoDetails.videoId!==y)return Q.return(0);C.enableAudioControls=!!((z=I.playerConfig)==null?0:(c=z.inlinePlaybackConfig)==null?0:c.showAudioControls);I.trackingParams=C.getInlinePlaybackTrackingParams();
if(!C.inlinePlayer)return Q.return(0);r={};if(L=_.l((w=C.videoPreviewData)==null?void 0:w.inlinePlaybackEndpoint,_.H$))r.watch_endpoint=L;if(C.videoPreviewData){var X,b=(X=_.l(C.videoPreviewData.inlinePlaybackEndpoint,_.H$))==null?void 0:X.startTimeSeconds;b!==void 0&&(I.playerConfig||(I.playerConfig={}),I.playerConfig.playbackStartConfig||(I.playerConfig.playbackStartConfig={}),I.playerConfig.playbackStartConfig.startPosition||(I.playerConfig.playbackStartConfig.startPosition={}),I.playerConfig.playbackStartConfig.startSeconds=
b,I.playerConfig.playbackStartConfig.startPosition.streamTimeMillis=String(b*1E3))}C.inlinePlayer.loadVideoWithPlayerResponse(I,r);if(C.JSC$16760_playerPromise)return Q.jumpTo(2);C.JSC$16760_playerPromise=C.inlinePlayer.getPlayerPromise();return _.n(Q,C.JSC$16760_playerPromise,3)}Q.nextAddress!=2&&(D=Q.yieldResult,D.setInlinePreview(!0),D.setSizeStyle(!1,!0),C.ytPlayerListenerBehavior.listenToPlayerEvents(D,C.JSC$16760_playerEvents),C.player=D,_.k3(C.hostElement,"player-api-ready"));((p=C.opts)==
null?0:p.showPlayerControls)&&C.videoPreviewData&&C.player&&(C.playerControlsData={playerResponse:I,isInlinePlayback:!0,thumbnailOverlays:C.videoPreviewData.thumbnailOverlays,playerApi:C.player},C.playerControlsOptions={useFinePointerTargetSizes:!0,insetProgressBar:!C.unroundCornersForPlayback,additionalButton:C.getAdditionalButtonType(C.videoPreviewData.thumbnailOverlays)});return Q.return(2)})};
_.u.revealPreviewUi=function(){var I=this;this.playbackIntentTriggered&&_.jcX(this,function(){I.hasThumbnailPositionChangedSinceTriggered()||(I.updateActiveState(!0),I.noAnimation=!1)})};
_.u.hasThumbnailPositionChangedSinceTriggered=function(){var I=this.positionData,C=this.getThumbnailPositionData();return(I==null?void 0:I.initialTopPosition)!==(C==null?void 0:C.initialTopPosition)||(I==null?void 0:I.initialHorizontalPosition)!==(C==null?void 0:C.initialHorizontalPosition)};
_.u.getThumbnailPositionData=function(){var I,C;if((C=this.opts)==null||!C.thumbnail)return null;C=this.opts.thumbnail;var y=((I=this.opts)==null?0:I.cropPlayerToFillThumbnailHorizontally)?!1:!0;var k=C.getBoundingClientRect();I=k.width;C=k.height;var F=k.top+window.scrollY;k=k.left+window.scrollX;var z=y?Math.ceil(I):I;y=y?Math.ceil(C):C;var c=I/z;I={initialScale:c,initialTopPosition:F-12*c,finalTopPosition:F-12-(y-C)/2,initialHorizontalPosition:k-(12+(z-I)/2),finalHorizontalPosition:k-12-(z-I)/
2,videoPreviewWidth:z,videoPreviewHeight:y};return I};
_.u.updateActiveState=function(I){this.active=I;this.ytdReduxBehavior.dispatch(_.yE({type:"SET_INLINE_PREVIEW_IS_ACTIVE",payload:I}))};
_.u.stopPlayer=function(I){I=I.resetWatchEndpointStartTime===void 0?!1:I.resetWatchEndpointStartTime;this.player&&(this.active&&(this.playing&&this.allowUnmuting()&&(this.hasBeenUnmuted=!this.player.isMuted()),this.updateWatchEndpointStartTime(I)),this.player.setPlaybackRate(1),this.player.stopVideo());this.playing=!1;this.videoPreviewFetchRequest=null;this.resetPreventProgressSaveTimer();this.endStartTimeUpdater();this.scheduledPreviewEndJobId&&(_.b$.cancelJob(this.scheduledPreviewEndJobId),this.scheduledPreviewEndJobId=
null)};
_.u.deactivate=function(I){I=I===void 0?{}:I;I=I.resetWatchEndpointStartTime===void 0?!1:I.resetWatchEndpointStartTime;J6&&(J6.disconnect(),J6=null);this.stopPlayer({resetWatchEndpointStartTime:I});this.updateActiveState(!1);this.playbackIntentTriggered=!1;this.videoPreviewDataIndex=0;this.opts=null;this.hidden=!0;this.playerControlsData=null};
_.u.isValidThumbnailOverlayButton=function(I,C){I=I.thumbnailOverlayButtonRenderer;var y;return!!I&&!!I.tooltip&&!((y=I.icon)==null||!y.iconType)&&C.includes(I.icon.iconType)};
_.u.isValidThumbnailOverlayButtonViewModel=function(I,C){var y;I=_.l((y=I.thumbnailOverlayButtonViewModel)==null?void 0:y.overlayButton,_.Xi);return!!I&&!!I.title&&!!I.iconName&&C.includes(I.iconName)};
_.u.getAdditionalButtonType=function(I){var C=this;if(_.V("web_imp_fastforward_button"))return{button:1};if(_.V("web_imp_miniplayer_button"))return{button:2};if(_.V("web_imp_playback_speed_button"))return{button:3};var y=["AUTO_AWESOME"],k=(I||[]).filter(function(z){return C.isValidThumbnailOverlayButton(z,y)}).map(function(z){return z.thumbnailOverlayButtonRenderer});
if(k.length)return{button:4,thumbnailOverlayButtonRenderers:k};var F=["AUTO_AWESOME"];I=(I||[]).filter(function(z){return C.isValidThumbnailOverlayButtonViewModel(z,F)}).map(function(z){return _.l(z.thumbnailOverlayButtonViewModel.overlayButton,_.Xi)});
if(I.length)return{button:4,thumbnailOverlayButtonViewModels:I}};
_.u.allowCaptions=function(){var I;return!((I=this.opts)==null?0:I.forceCaptionsOff)};
_.u.allowUnmuting=function(){var I;return this.enableAudioControls&&!((I=this.opts)==null?0:I.forceMutedVolume)};
_.u.beginStartTimeUpdater=function(){var I=this;this.endStartTimeUpdater();this.watchEndpointStartTimeUpdaterInterval=_.uX(function(){I.updateWatchEndpointStartTime()},1E3)};
_.u.endStartTimeUpdater=function(){this.watchEndpointStartTimeUpdaterInterval!==null&&window.clearInterval(this.watchEndpointStartTimeUpdaterInterval);this.watchEndpointStartTimeUpdaterInterval=null};
_.u.resetPreventProgressSaveTimer=function(){this.JSC$16760_preventProgressSaveTimer!==null&&(_.b$.cancelJob(this.JSC$16760_preventProgressSaveTimer),this.JSC$16760_preventProgressSaveTimer=null,this.hasMultipleVideoPreviews()||this.beginStartTimeUpdater())};
_.u.updateWatchEndpointStartTime=function(I){var C=this.videoPreviewData;if(this.player&&C!=null&&C.inlinePlaybackEndpoint&&!this.JSC$16760_preventProgressSaveTimer){I=I?0:Math.floor(this.player.getCurrentTime());var y=_.l(C.navigationEndpoint,_.H$);y&&(y.startTimeSeconds=I);if(C=_.l(C.inlinePlaybackEndpoint,_.H$))C.startTimeSeconds=I}};
_.u.isShortcutClick=function(I){return!!I&&(I.ctrlKey||I.shiftKey||I.metaKey)};
_.u.getInlinePreviewPlayer=function(){return this.inlinePlayer};
_.u.openInMiniplayer=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1){y=(C=I.videoPreviewData)==null?void 0:C.navigationEndpoint;if(!y)return k.return();_.ck().lockupActivation=!0;return _.n(k,_.fPb(_.N().resolve(_.WJ),y),2)}_.ck().userActivation=!0;_.oI(k)})};
_.u.navigateToWatch=function(I){var C,y=(C=this.videoPreviewData)==null?void 0:C.navigationEndpoint;if(y){if(this.isAdsVideo)this.ytSparklesClickLocationBehavior.handleClick(y,I,!0);else{if(_.V("web_thumbnail_to_watch_transition")){var k,F;(k=this.opts)==null||(F=k.onNavigateToWatchCallback)==null||F.call(k)}_.k3(this.hostElement,"yt-navigate",{endpoint:y})}this.deactivate()}};
_.u.getInlinePlaybackVideoId=function(){var I,C;return(C=_.l((I=this.videoPreviewData)==null?void 0:I.inlinePlaybackEndpoint,_.H$))==null?void 0:C.videoId};
_.u.getInlinePlaybackTrackingParams=function(){var I,C;return(I=this.videoPreviewData)==null?void 0:(C=I.inlinePlaybackEndpoint)==null?void 0:C.clickTrackingParams};
_.u.hasMultipleVideoPreviews=function(){var I;return!!(((I=this.opts)==null?0:I.videoPreviewData)&&Array.isArray(this.opts.videoPreviewData))};
_.u.startPlaybackForNextVideo=function(){var I;(I=this.opts)!=null&&I.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())};
_.H1.Object.defineProperties(dZ.prototype,{thumbnailData:{configurable:!0,enumerable:!0,get:function(){return this.videoPreviewData?{thumbnail:this.videoPreviewData.thumbnail}:null}},
hidePlayerControls:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.opts)==null?0:I.showPlayerControls)||!this.active}},
isAdsVideo:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.opts)==null||!I.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 I;if(Array.isArray((I=this.opts)==null?void 0:I.videoPreviewData)){var C;return(C=this.opts)==null?void 0:C.videoPreviewData[this.videoPreviewDataIndex]}var y;return(y=this.opts)==null?void 0:y.videoPreviewData}}});
dZ.prototype.onIsAdsVideoChange=dZ.prototype.onIsAdsVideoChange;dZ.prototype.onInlinePreviewIsEnabledChange=dZ.prototype.onInlinePreviewIsEnabledChange;dZ.prototype.optsChanged=dZ.prototype.optsChanged;dZ.prototype.onMouseLeave=dZ.prototype.onMouseLeave;dZ.JSC$16759_CLICK_LOCATION_ID_MAP=new Map([["PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL","media-container"]]);dZ.JSC$16759_DEFAULT_CLICK_LOCATION_BEHAVIOR=[{location:"PROMOTED_SPARKLES_CLICK_LOCATION_THUMBNAIL",code:21,behaviorType:"PROMOTED_SPARKLES_VIDEO_ACTION_CLICK_BEHAVIOR_TYPE_PLAY_VIDEO_ON_WATCH_PAGE"}];
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],dZ.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dZ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],dZ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],dZ.prototype,"componentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dZ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],dZ.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Bw.YtSparklesClickLocationBehavior),_.h("design:type",Object)],dZ.prototype,"ytSparklesClickLocationBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dZ.prototype,"opts",void 0);_.E([_.d(),_.h("design:type",Object)],dZ.prototype,"playerControlsData",void 0);
_.E([_.d(),_.h("design:type",Object)],dZ.prototype,"playerControlsAppApi",void 0);_.E([_.d(),_.h("design:type",Object)],dZ.prototype,"playerControlsOptions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dZ.prototype,"noAnimation",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dZ.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dZ.prototype,"active",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],dZ.prototype,"playing",void 0);_.E([_.d({selector:_.iZK}),_.h("design:type",Boolean)],dZ.prototype,"inlinePreviewIsEnabled",void 0);_.E([_.d(),_.h("design:type",String)],dZ.prototype,"pagePath",void 0);_.E([_.d({selector:_.fx}),_.h("design:type",Boolean)],dZ.prototype,"isWatchPage",void 0);_.E([_.v("videoPreviewData"),_.h("design:type",Object),_.h("design:paramtypes",[])],dZ.prototype,"thumbnailData",null);
_.E([_.v("opts","active"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"hidePlayerControls",null);_.E([_.v("opts"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"isAdsVideo",null);_.E([_.v("opts"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"roundedCornersSmall",null);
_.E([_.v("opts"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"roundedCornersMedium",null);_.E([_.v("opts"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"roundedCornersLarge",null);_.E([_.v("opts"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],dZ.prototype,"unroundCornersForPlayback",null);
_.E([_.v("opts","videoPreviewDataIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],dZ.prototype,"videoPreviewData",null);_.E([_.d(),_.h("design:type",Object)],dZ.prototype,"videoPreviewDataIndex",void 0);_.E([_.z$("#inline-player"),_.h("design:type",Object)],dZ.prototype,"inlinePlayer",void 0);_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[MouseEvent]),_.h("design:returntype")],dZ.prototype,"onMouseLeave",null);
_.E([_.rW("opts"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dZ.prototype,"optsChanged",null);_.E([_.rW("inlinePreviewIsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dZ.prototype,"onInlinePreviewIsEnabledChange",null);_.E([_.FI("isAdsVideo"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dZ.prototype,"onIsAdsVideoChange",null);
dZ=_.E([_.m({is:"ytd-video-preview",disableElementRegistration:!0})],dZ);
_.Z(dZ,"ytd-video-preview",function(){if(axY!==void 0)return axY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return axY=I},{mode:2});
}catch(e){_._DumpException(e)}
try{
var N4R;var V1B;/*

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
*/
_.pK({_template:function(){if(V1B!==void 0)return V1B;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;N4R===void 0&&(N4R=document.createElement("template"));var k=N4R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return V1B=I},
is:"tp-yt-paper-checkbox",behaviors:[_.ca5],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){_.hn(this,function(){if(this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()==="-1px"){var I=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),C="px",y=I.match(/[A-Za-z]+$/);y!==null&&(C=y[0]);I=parseFloat(I);y=8/3*I;C==="px"&&(y=Math.floor(y),y%2!==I%2&&y++);this.updateStyles({"--paper-checkbox-ink-size":y+
C})}})},
_computeCheckboxClass:function(I,C){var y="";I&&(y+="checked ");C&&(y+="invalid");return y},
_computeCheckmarkClass:function(I){return I?"":"hidden"},
_createRipple:function(){this._rippleContainer=this.$.checkboxContainer;return _.z9q._createRipple.call(this)}});var jIY=new _.J("radioButtonSurveyOptionRenderer"),lRL=new _.J("checkboxSurveyOptionRenderer");var XyB;var $LL;var RkR=0,by=function(){var I=_.q.call(this)||this;I.selected=!1;I.isOverlay=!1;I.inputId="toggle-option-"+RkR;RkR++;return I};
_.R(by,_.q);by.prototype.onTap=function(){_.k3(this.hostElement,"ytd-toggle-option-clicked")};
_.E([_.d(),_.h("design:type",String)],by.prototype,"label",void 0);_.E([_.d(),_.h("design:type",String)],by.prototype,"inputId",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],by.prototype,"selected",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],by.prototype,"isOverlay",void 0);by=_.E([_.m({is:"ytd-toggle-option-renderer",disableElementRegistration:!0}),_.h("design:paramtypes",[])],by);
_.Z(by,"ytd-toggle-option-renderer",function(){if($LL!==void 0)return $LL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return $LL=I},{mode:1});var YN=function(){var I=_.q.apply(this,arguments)||this;I.isToggleOption=!1;I.isOverlay=!1;return I};
_.R(YN,_.q);YN.prototype.onTap=function(I){I.preventDefault();this.data&&(I=!this.data.checked,this.set("data.checked",I),_.k3(this.hostElement,"ytd-checkbox-survey-option-changed",{checked:I,value:this.data.value}))};
_.H1.Object.defineProperties(YN.prototype,{label:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.responseText?this.ytRendererBehavior.getSimpleString(this.data.responseText):""}}});
YN.prototype.onTap=YN.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],YN.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],YN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],YN.prototype,"isToggleOption",void 0);_.E([_.d(),_.h("design:type",Object)],YN.prototype,"isOverlay",void 0);_.E([_.v("data.responseText"),_.h("design:type",String),_.h("design:paramtypes",[])],YN.prototype,"label",null);
_.E([_.km("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],YN.prototype,"onTap",null);YN=_.E([_.m({is:"ytd-checkbox-survey-option-renderer",disableElementRegistration:!0})],YN);
_.Z(YN,"ytd-checkbox-survey-option-renderer",function(){if(XyB!==void 0)return XyB;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return XyB=I},{mode:1});var b1M;var YjR;var GS=function(){var I=_.q.apply(this,arguments)||this;I.checked=!1;I.isToggleOption=!1;return I};
_.R(GS,_.q);GS.prototype.onTap=function(){this.data&&(this.checked?_.Fe(this.hostElement,"ytd-inline-survey-option-deselect-action"):_.Fe(this.hostElement,"ytd-inline-survey-option-select-action",[this.hostElement]))};
GS.prototype.onTap=GS.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GS.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],GS.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],GS.prototype,"checked",void 0);_.E([_.d(),_.h("design:type",Object)],GS.prototype,"isToggleOption",void 0);_.E([_.km("ytd-toggle-option-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],GS.prototype,"onTap",null);
GS=_.E([_.m({is:"ytd-radio-button-survey-option-renderer",disableElementRegistration:!0})],GS);
_.Z(GS,"ytd-radio-button-survey-option-renderer",function(){if(YjR!==void 0)return YjR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return YjR=I},{mode:1});var fC=function(){var I=_.q.apply(this,arguments)||this;I.disableAnimation=!1;I.isToggleOption=!0;I.followUpSurveyCommand=null;I.selectedRatingEndpoint=null;I.isSlimlineSurveyFollowUp=!1;I.isShortsStyle=!1;I.styleOverrideAttribute=!0;I.isDarkMode=!1;I.isSubmitted=!1;I.roundedContainer=!0;I.improveShortsResponseRate=_.V("web_improve_shorts_response_rate");I.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 I};
_.R(fC,_.q);_.u=fC.prototype;
_.u.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"}}}}};
_.u.attached=function(){var I=this;this.isDarkMode=document.documentElement.hasAttribute("dark");this.intersectionObserver=new IntersectionObserver(function(y){var k;if((k=y[0])!=null&&k.isIntersecting){_.Tp().reportShown(I.hostElement);var F;(F=I.intersectionObserver)==null||F.unobserve(I.hostElement)}},{rootMargin:"0px",
threshold:.6});var C;(C=this.intersectionObserver)==null||C.observe(this.hostElement)};
_.u.onDarkModeToggledAction=function(I){this.isDarkMode=I};
_.u.dataChanged=function(){var I;if(((I=this.data)==null?void 0:I.style)==="INLINE_SURVEY_RENDERER_STYLE_SLIMLINE_FOLLOW_UP")this.isSlimlineSurveyFollowUp=!0;else{var C;((C=this.data)==null?void 0:C.style)==="INLINE_SURVEY_RENDERER_STYLE_SHORTS"?this.isShortsStyle=!0:this.expanded=!1}this.selectedRatingEndpoint=this.followUpSurveyCommand=null;var y,k,F,z;this.darkColorPalette=(y=this.data)==null?void 0:(k=y.inlineContent)==null?void 0:(F=k.compactVideoRenderer)==null?void 0:(z=F.thumbnail)==null?
void 0:z.darkColorPalette;var c,r,w,L;this.lightColorPalette=(c=this.data)==null?void 0:(r=c.inlineContent)==null?void 0:(w=r.compactVideoRenderer)==null?void 0:(L=w.thumbnail)==null?void 0:L.lightColorPalette;var D,p;if(((D=this.data)==null?0:(p=D.inlineContent)==null?0:p.compactVideoRenderer)&&this.isShortsStyle){var Q,X,b,S;I=_.hE((Q=this.data)==null?void 0:(X=Q.inlineContent)==null?void 0:(b=X.compactVideoRenderer)==null?void 0:(S=b.thumbnail)==null?void 0:S.thumbnails);_.CK(this.hostElement,
{"--yt-background-url":"url("+I+")"})}};
_.u.handleRequestCompletion=function(){this.hostElement.hidden&&_.k3(this.hostElement,"yt-dismissible-item-dismissed")};
_.u.onPopupClosed=function(I){var C;((C=I.detail)==null?void 0:C.popupRenderer)===this.hostElement&&(this.isSlimlineSurveyFollowUp&&!this.isSubmitted?_.Fe(this.hostElement,"ytd-slimline-survey-show-action"):this.isSlimlineSurveyFollowUp&&this.isSubmitted&&(this.isSubmitted=!1))};
_.u.handleInlineSurveyRatingSelect=function(I,C){var y=this;this.selectedRatingEndpoint=I;this.followUpSurveyCommand=C;this.expanded=!!I;this.getOptionRenderers().forEach(function(k,F){y.notifyPath("followUpSurveyCommand.followUpOptions."+F+".checkboxSurveyOptionRenderer.checked");y.set("followUpSurveyCommand.followUpOptions."+F+".checkboxSurveyOptionRenderer.checked",!1)});
this.optionSelector.selectIndex(-1);this.improveShortsResponseRate&&(this.onSubmitTap(),I=this.get("data.response.expandableSurveyResponseRenderer.submitButton.buttonRenderer.command"),_.Fe(this.hostElement,"yt-reel-non-video-content-dismissal-command",[I]))};
_.u.onDismissTap=function(){if(this.isSlimlineSurveyFollowUp)_.Fe(this.hostElement,"yt-close-popup-action");else{this.hostElement.hidden=!0;var I,C=(I=this.data)==null?void 0:I.dismissalEndpoint;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.u.onSubmitTap=function(){this.selectedRatingEndpoint&&(this.ytComponentBehavior.resolveCommand(this.selectedRatingEndpoint),this.followUpSurveyCommand&&this.submitFollowUpResponses());this.isSlimlineSurveyFollowUp&&(this.isSubmitted=!0,_.Fe(this.hostElement,"yt-close-popup-action"))};
_.u.submitFollowUpResponses=function(){if(this.getOptionRenderers().length!==0){if(this.isSingleSelect){if(!this.optionSelector.selectedItem)return;var I=[this.optionSelector.selectedItem.data.submissionEndpoint]}else{I=this.getOptionRenderers().filter(function(k){return k.checked});
if(I.length===0)return;I=I.map(function(k){return k.responseEndpoint})}var C=[];
I.forEach(function(k,F){F!==0&&(k=_.l(k,_.fI))&&k.feedbackToken&&C.push(k.feedbackToken)});
if(I=I[0]){var y={};C.length>0&&(y.extra_feedback_tokens=C);this.ytComponentBehavior.resolveCommand(I,{form:y})}}};
_.u.getOptionRenderers=function(){var I=this;return this.followUpSurveyCommand&&this.followUpSurveyCommand.followUpOptions?this.get("followUpSurveyCommand.followUpOptions").map(function(C){I.isSingleSelect=!!_.l(C,jIY);return I.isSingleSelect?_.l(C,jIY):_.l(C,lRL)}):[]};
_.u.handleInlineSurveyOptionSelect=function(I){I=this.optionSelector.indexOf(I);I!==-1&&this.optionSelector.selectIndex(I)};
_.u.handleInlineSurveyOptionDeselect=function(){this.optionSelector.selectIndex(-1)};
_.u.maybeGetBackgroundColor=function(I){return this.isDarkMode?I.section2Color:I.section3Color};
_.u.colorPaletteChanged=function(){var I=this.isDarkMode?this.darkColorPalette:this.lightColorPalette;I=I&&this.maybeGetBackgroundColor(I);this.dismissibleEl.style.backgroundColor=!I||this.isShortsStyle||this.isSlimlineSurveyFollowUp?"":_.lg(I)};
_.H1.Object.defineProperties(fC.prototype,{isOptionSelected:{configurable:!0,enumerable:!0,get:function(){return!!this.selectedRatingEndpoint}}});
fC.prototype.colorPaletteChanged=fC.prototype.colorPaletteChanged;fC.prototype.onPopupClosed=fC.prototype.onPopupClosed;fC.prototype.handleRequestCompletion=fC.prototype.handleRequestCompletion;fC.prototype.dataChanged=fC.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],fC.prototype,"actionHandlerBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],fC.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fC.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],fC.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.z$("#follow-up-survey-options"),_.h("design:type",Object)],fC.prototype,"optionSelector",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],fC.prototype,"disableAnimation",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"isToggleOption",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"followUpSurveyCommand",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"selectedRatingEndpoint",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],fC.prototype,"expanded",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fC.prototype,"isSlimlineSurveyFollowUp",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fC.prototype,"isShortsStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fC.prototype,"styleOverrideAttribute",void 0);_.E([_.d(),_.h("design:type",Boolean)],fC.prototype,"isSingleSelect",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"isDarkMode",void 0);
_.E([_.d(),_.h("design:type",Object)],fC.prototype,"lightColorPalette",void 0);_.E([_.d(),_.h("design:type",Object)],fC.prototype,"darkColorPalette",void 0);_.E([_.v("selectedRatingEndpoint","isShortsStyle"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],fC.prototype,"isOptionSelected",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fC.prototype,"roundedContainer",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fC.prototype,"improveShortsResponseRate",void 0);_.E([_.z$("#dismissible"),_.h("design:type",HTMLElement)],fC.prototype,"dismissibleEl",void 0);_.E([_.z$("#dismiss-button yt-icon-button"),_.h("design:type",HTMLElement)],fC.prototype,"dismissButtonEl",void 0);_.E([_.z$("#inline-survey-header yt-icon-button"),_.h("design:type",HTMLElement)],fC.prototype,"inlineHeaderDismissButtonEl",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fC.prototype,"dataChanged",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fC.prototype,"handleRequestCompletion",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fC.prototype,"onPopupClosed",null);
_.E([_.FI("darkColorPalette","lightColorPalette","isDarkMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fC.prototype,"colorPaletteChanged",null);fC=_.E([_.m({is:"ytd-inline-survey-renderer",disableElementRegistration:!0})],fC);
_.Z(fC,"ytd-inline-survey-renderer",function(){if(b1M!==void 0)return b1M;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return b1M=I},{mode:1});
}catch(e){_._DumpException(e)}
try{
var ORB,aXL,MbB;ORB=function(I){return _.V("kevlar_watch_cinematics_invisible")||I.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_fullscreen")||I.theater&&!I.fullscreen&&_.V("kevlar_watch_cinematics_invisible_in_theater")};
aXL=function(){var I=document.createElement("canvas"),C=I.getContext("2d");if(!C)throw Error("Xl");_.vz(I,{position:"absolute",width:"100%",height:"100%"});return{element:I,context:C}};
MbB=function(){return!("filter"in CanvasRenderingContext2D.prototype)||_.V("kevlar_watch_cinematics_css_blur")};
_.I2R=function(I,C,y){return Math.abs(I-C)<=(y||1E-6)};
_.CoP=function(I,C){return I==C?!0:I&&C?I.width==C.width&&I.height==C.height:!1};_.saP=new _.J("notificationActionRenderer");var oJB=function(I){var C=this;this.element=new Image;this.failed=this.loaded=!1;this.resolver=new _.ug;this.element.addEventListener("load",function(){C.loaded=!0;C.resolver.resolve(C.element)});
this.element.addEventListener("error",function(){C.failed=!0});
this.element.src=I};var yBY=function(I,C){this.image=I;this.frame=C};
yBY.prototype.drawToCanvas=function(I,C){var y=this.frame.width/this.frame.columns,k=this.frame.height/this.frame.rows,F=C.offsetX,z=C.offsetY;ORB(C)?(I.fillStyle=C.fullscreen?"#000":"#0f0f0f",I.fillRect(F,z,(C==null?void 0:C.width)||y,(C==null?void 0:C.height)||k)):I.drawImage(this.image,this.frame.column*y,this.frame.row*k,y,k,F,z,(C==null?void 0:C.width)||y,(C==null?void 0:C.height)||k)};
var kmY=function(I){this.color=I};
kmY.prototype.drawToCanvas=function(I,C){var y=C.offsetX,k=C.offsetY,F=C.width,z=C.height;I.fillStyle=ORB(C)?C.fullscreen?"#000":"#0f0f0f":this.color;I.fillRect(y,k,F,z)};var aq=function(I,C){_.BU.call(this);this.playerApi=C;this.mosaics=new Map;this.colorStore=new Map;this.pendingStoryboardIndex=this.currentStoryboardIndex=this.colorStoreTimeInterval=NaN;this.currentStoryboardSize=new _.y6(NaN,NaN);this.lastUpdateTime=NaN;this.paused=!1;this.addEventListeners();FWR(this,I);_.uFK(this);this.update()},cBK;
_.R(aq,_.BU);aq.prototype.addEventListeners=function(){var I=this,C=function(){I.update()},y=function(F){I.paused||(F.type==="newdata"&&(I.mosaics.clear(),zNM(I),M0(I)),_.uFK(I),I.update())},k=function(){I.onPlayerStateChange()};
this.playerApi.addEventListener("onVideoProgress",C);this.playerApi.addEventListener("onVideoDataChange",y);this.playerApi.addEventListener("onStateChange",k);this.addOnDisposeCallback(function(){I.playerApi.removeEventListener("onVideoProgress",C);I.playerApi.removeEventListener("onVideoDataChange",y);I.playerApi.removeEventListener("onStateChange",k)})};
var FWR=function(I,C){I.cinematicContainerRenderer!==C&&(I.cinematicContainerRenderer=C,zNM(I),M0(I),I.colorStoreUpdateJobId=_.b$.addLowPriorityJob(function(){var y;if((y=I.cinematicContainerRenderer.colorStore)!=null&&y.sampledColors){y=Infinity;for(var k=_.T(I.cinematicContainerRenderer.colorStore.sampledColors),F=k.next();!F.done;F=k.next()){F=F.value;var z=Number(F.key);z!==0&&z<y&&(y=z);z=_.Xl(F.value);I.colorStore.set(F.key,z)}I.colorStoreTimeInterval=y}}))},zNM=function(I){I.colorStoreUpdateJobId&&
(_.b$.cancelJob(I.colorStoreUpdateJobId),I.colorStoreUpdateJobId=void 0);
I.colorStore.clear();I.currentStoryboardColor=void 0},TDS=function(I,C){var y;
return(y=I.getStoryboardFrame(C))==null?void 0:y.url};
aq.prototype.onPlayerStateChange=function(){this.update()};
aq.prototype.isAdPlaying=function(){return this.playerApi.getPresentingPlayerType()===2};
_.uFK=function(I){var C=I.getStoryboardFrame(0);C&&(C=new _.y6(C.width/C.columns,C.height/C.rows),_.CoP(I.currentStoryboardSize,C)||(I.currentStoryboardSize=C,I.publish("STORYBOARD_SIZE_CHANGED",I.currentStoryboardSize)))};
cBK=function(I,C){I.currentStoryboardIndex=C;I.pendingStoryboardIndex=NaN;C=I.getStoryboardFrame(I.currentStoryboardIndex);I.currentStoryboard=new yBY(I.mosaics.get(C.url).element,C);I.publish("STORYBOARD_CHANGED",I.currentStoryboard);I.lastUpdateTime=(0,_.JY)()};
aq.prototype.isShorts=function(){return this.cinematicContainerRenderer.config.pageType==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
var M0=function(I){I.currentStoryboardIndex=NaN;I.pendingStoryboardIndex=NaN;I.currentStoryboard&&(I.currentStoryboard=void 0,I.publish("STORYBOARD_CHANGED",void 0));I.lastUpdateTime=NaN};
aq.prototype.update=function(){if(!this.paused&&this.playerApi.getNumberOfStoryboardLevels()>0)if(this.isAdPlaying()||this.isShorts()&&this.playerApi.getProgressState().duration<15)M0(this);else{var I=this.playerApi.getPlayerState(1);if(I===-1||I===5||I===0)M0(this);else if(isNaN(this.lastUpdateTime)||!((0,_.JY)()<this.lastUpdateTime+this.cinematicContainerRenderer.config.animationConfig.minImageUpdateIntervalMs))if(I=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){I=""+Math.round(I*1E3/this.colorStoreTimeInterval)*this.colorStoreTimeInterval;var C=this.colorStore.get(I);C?C!==this.currentStoryboardColor&&(this.currentStoryboardColor=this.currentStoryboardColor=C,this.currentStoryboard=new kmY(C),this.publish("STORYBOARD_CHANGED",this.currentStoryboard),
this.lastUpdateTime=(0,_.JY)()):(_.SN(new _.ph("Could not find color for timestamp: "+I,this.cinematicContainerRenderer)),M0(this))}else M0(this);else eN8(this,I)}};
var eN8=function(I,C){var y=I.getStoryboardFrameIndex(C);if(y!==I.currentStoryboardIndex&&y!==I.pendingStoryboardIndex){C=TDS(I,y);var k=I.mosaics.get(C);k?k.loaded&&cBK(I,y):(I.pendingStoryboardIndex=y,y=new oJB(C),I.mosaics.set(C,y),y.resolver.promise.then(function(){if(!I.isDisposed()&&!I.paused&&!isNaN(I.pendingStoryboardIndex)){var F=TDS(I,I.pendingStoryboardIndex);if(F){var z;(z=I.mosaics.get(F))!=null&&z.loaded&&cBK(I,I.pendingStoryboardIndex)}else M0(I)}}))}};
aq.prototype.getStoryboardFrameIndex=function(I){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0;return this.playerApi.getStoryboardFrameIndex(I,C)};
aq.prototype.getStoryboardFrame=function(I){var C=this.isShorts()&&this.playerApi.getNumberOfStoryboardLevels()>1?1:0,y,k;return((k=(y=this.playerApi).getStoryboardFrame)==null?void 0:k.call(y,I,C))||null};
aq.prototype.pause=function(){this.lastUpdateTime=NaN;this.paused=!0};var Cg=function(I,C,y,k){k=k===void 0?!1:k;_.LL.call(this);this.cinematicContainerRenderer=C;this.playerApi=y;this.theater=this.fullscreen=!1;var F;this.ambientLightThemeEnabled=!k&&!!(C==null?0:(F=C.config)==null?0:F.enableInLightTheme);this.ambientFullscreenEnabled=k&&_.V("web_cinematic_fullscreen");this.container=document.createElement("div");I.appendChild(this.container);var z;if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")||(C==null?0:(z=C.config)==null?0:z.enableInLightTheme))this.ambientV2Container=
document.createElement("div"),this.container.appendChild(this.ambientV2Container);rBy(this);I=this.ambientV2Container||this.container;this.backCanvas=aXL();this.frontCanvas=aXL();I.appendChild(this.backCanvas.element);I.appendChild(this.frontCanvas.element);this.storyboardManager=new aq(C,this.playerApi);_.kq(this,this.storyboardManager);this.addEventListeners();ikR(this)?w68(this,100+I2(this)*3*2,100+I2(this)*3*2):nJP(this);PoR(this,this.storyboardManager.currentStoryboard)};
_.R(Cg,_.LL);var rBy=function(I){I.ambientV2Container?LWK(I):(_.vz(I.container,{position:"absolute",top:"0",left:"0",right:"0",bottom:"0","pointer-events":"none",transform:"scale("+DZL(I)+", "+p6Y(I)+")"}),MbB()&&_.vz(I.container,"filter","blur("+_.s8("cinematic_watch_css_filter_blur_strength",40)+"px)"))},LWK=function(I){if(I.ambientV2Container){var C=I.playerApi.getVideoAspectRatio();
_.vz(I.container,{"aspect-ratio":""+C,"max-width":"100%",height:"100%",margin:"0 auto",display:"flex","flex-direction":"column","justify-content":"center","pointer-events":"none"});_.vz(I.ambientV2Container,{"aspect-ratio":""+C,position:"relative","max-height":"100%","max-width":"100%","pointer-events":"none",transform:"scale("+DZL(I)+", "+p6Y(I)+")"});MbB()&&_.vz(I.ambientV2Container,"filter","blur("+_.s8("cinematic_watch_css_filter_blur_strength",40)+"px)")}};
Cg.prototype.setFullscreen=function(I,C){this.fullscreen=I;this.theater=!!C;rBy(this);if(this.ambientFullscreenEnabled||this.ambientLightThemeEnabled)this.backCanvas.context.clearRect(0,0,this.backCanvas.element.width,this.backCanvas.element.height),I=this.storyboardManager.currentStoryboard,Qaj(this),I&&NDL(this,I)};
Cg.prototype.addEventListeners=function(){var I=this,C=this.storyboardManager.subscribe("STORYBOARD_CHANGED",function(F){PoR(I,F)}),y=this.storyboardManager.subscribe("STORYBOARD_SIZE_CHANGED",function(){nJP(I)});
this.addOnDisposeCallback(function(){I.storyboardManager.unsubscribeByKey(C);I.storyboardManager.unsubscribeByKey(y)});
if(this.ambientV2Container){var k=function(){LWK(I)};
this.playerApi.addEventListener("onVideoDataChange",k);this.addOnDisposeCallback(function(){I.playerApi.removeEventListener("onVideoDataChange",k)})}};
var nJP=function(I){if(!ikR(I)){var C=I.storyboardManager.currentStoryboardSize;isNaN(C.width)||isNaN(C.height)||w68(I,Number(C.width)+I2(I)*3*2,Number(C.height)+I2(I)*3*2)}},w68=function(I,C,y){I.backCanvas.element.width=C;
I.backCanvas.element.height=y;I.frontCanvas.element.width=C;I.frontCanvas.element.height=y},ikR=function(I){return I.cinematicContainerRenderer.presentationStyle==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"},PoR=function(I,C){var y=I.frontCanvas.element.getAnimations()[0];
y?(y.pause(),I.backCanvas.context.globalAlpha=Number(getComputedStyle(I.frontCanvas.element).opacity),I.frontCanvas.element.style.opacity="0",y.finish()):I.backCanvas.context.globalAlpha=1;I.backCanvas.context.drawImage(I.frontCanvas.element,0,0,I.backCanvas.element.width,I.backCanvas.element.height);Qaj(I);C&&NDL(I,C);C=C?I.cinematicContainerRenderer.config.animationConfig.crossfadeDurationMs:_.s8("cinematic_watch_fade_out_duration",500);y=_.s8("cinematic_watch_transition_frame_rate")/1E3;var k=
{};y&&(k={easing:"steps("+Math.round(C*y)+")"});I.frontCanvas.element.animate([{opacity:0},{opacity:1}],Object.assign({},{duration:C,iterations:1},k));I.frontCanvas.element.style.opacity="1"},Qaj=function(I){var C=I.ambientLightThemeEnabled,y=I.ambientLightThemeEnabled||I.ambientFullscreenEnabled&&!_.V("web_cinematic_fullscreen_v2");
I.frontCanvas.context.fillStyle=I.theater&&C||I.fullscreen&&y?"#000":"#0f0f0f";MbB()||(I.frontCanvas.context.filter="blur(0)");I.frontCanvas.context.fillRect(0,0,I.frontCanvas.element.width,I.frontCanvas.element.height)},NDL=function(I,C){MbB()||(I.frontCanvas.context.filter="blur("+I2(I)+"px)");
I.frontCanvas.context.globalAlpha=_.s8("cinematic_watch_effect_opacity",.4);var y={offsetX:I2(I)*3,offsetY:I2(I)*3,theater:I.theater,fullscreen:I.fullscreen};ikR(I)&&(y.width=100,y.height=100);C.drawToCanvas(I.frontCanvas.context,y);I.frontCanvas.context.globalAlpha=1},I2=function(I){var C;
return(C=I.cinematicContainerRenderer.config.blurStrength)!=null?C:5},DZL=function(I){var C,y;
if((I.fullscreen||I.theater)&&((C=I.cinematicContainerRenderer.config)==null?0:(y=C.watchFullscreenConfig)==null?0:y.colorSourceWidthMultiplier))return I.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceWidthMultiplier;var k;return(k=I.cinematicContainerRenderer.config.colorSourceWidthMultiplier)!=null?k:I.cinematicContainerRenderer.config.colorSourceSizeMultiplier},p6Y=function(I){var C,y;
if((I.fullscreen||I.theater)&&((C=I.cinematicContainerRenderer.config)==null?0:(y=C.watchFullscreenConfig)==null?0:y.colorSourceHeightMultiplier))return I.cinematicContainerRenderer.config.watchFullscreenConfig.colorSourceHeightMultiplier;var k;return(k=I.cinematicContainerRenderer.config.colorSourceHeightMultiplier)!=null?k:I.cinematicContainerRenderer.config.colorSourceSizeMultiplier};
Cg.prototype.disposeInternal=function(){_.LL.prototype.disposeInternal.call(this);this.container.remove()};
Cg.prototype.clear=function(){PoR(this)};
Cg.prototype.pause=function(){this.storyboardManager.pause()};var V5R;V5R=_.Pz(function(){var I,C,y=!((C=(I=document.createElement("canvas")).getContext)==null||!C.call(I,"2d")),k;I=!((k=CSS)==null||!k.supports("filter: blur(0)"));k=!!Element.prototype.animate&&!!Element.prototype.getAnimations;C=_.V("web_cinematic_fullscreen")||_.V("web_cinematic_theater_mode")||_.V("web_cinematic_light_theme")||!1;var F;return y&&I&&k&&(!C||!((F=CSS)==null||!F.supports("aspect-ratio: 1 / 1")))});
_.sY=function(I,C){_.BU.call(this);this.container=I;this.playerApi=C;this.fullscreen=this.theater=this.settingEnabled=this.isDarkModeEnabled=this.wasAllowed=!1;this.prefersReducedMotionQuery=jaS(this);this.update()};
_.R(_.sY,_.BU);_.l2Y=function(I){var C=document.documentElement.hasAttribute("dark");I.isDarkModeEnabled=C;I.update()};
_.X6Y=function(I,C){I.settingEnabled=C;I.update()};
_.sY.prototype.setFullscreen=function(I,C){this.fullscreen=I;this.theater=!!C;this.update()};
_.$ZY=function(I,C){I.cinematicContainerRenderer=C;I.cinematicContainerRenderer&&(I.cinematicsVe=_.Dn(I.isShorts()?227858:159022),_.oV(_.e2(),I.cinematicsVe),I.loggingClientData={watchCinematicContainerData:{presentationStyle:I.cinematicContainerRenderer.presentationStyle}});I.update()};
_.sY.prototype.isShorts=function(){var I,C;return((I=this.cinematicContainerRenderer)==null?void 0:(C=I.config)==null?void 0:C.pageType)==="CINEMATIC_CONTAINER_PAGE_TYPE_SHORTS"};
_.sY.prototype.isAllowed=function(){var I;if(I=V5R()){var C,y,k;I=((y=this.cinematicContainerRenderer)==null?void 0:y.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_SINGLE_COLOR"&&!((k=this.cinematicContainerRenderer)==null||!k.colorStore)||((C=this.cinematicContainerRenderer)==null?void 0:C.presentationStyle)==="CINEMATIC_CONTAINER_PRESENTATION_STYLE_DYNAMIC_BLURRED"}if(I)if(_.V("web_cinematics_pausing")){var F,z;I=this.isDarkModeEnabled||!!((F=this.cinematicContainerRenderer)==
null?0:(z=F.config)==null?0:z.enableInLightTheme)}else{var c,r;F=!!((c=this.cinematicContainerRenderer)==null?0:(r=c.config)==null?0:r.enableInLightTheme)&&(_.Aq("INNERTUBE_CLIENT_NAME")==="MWEB"||this.fullscreen||this.theater);I=this.isDarkModeEnabled||F}if(c=I){var w,L;c=!((L=(w=this.prefersReducedMotionQuery)==null?void 0:w.matches)!=null&&L)}return c};
_.sY.prototype.isEnabled=function(){return this.isAllowed()&&this.settingEnabled};
var jaS=function(I){if(!_.V("web_watch_cinematics_preferred_reduced_motion_default_disabled")&&window.matchMedia){var C=window.matchMedia("(prefers-reduced-motion: reduce)"),y=function(){I.update()};
C.addListener(y);I.addOnDisposeCallback(function(){C.removeListener(y)});
return C}};
_.sY.prototype.update=function(){this.isAllowed()!==this.wasAllowed&&(this.wasAllowed=this.isAllowed(),this.publish("CINEMATICS_ALLOWED_CHANGED",this.wasAllowed));if(this.isEnabled()){var I=this.cinematicContainerRenderer;this.currentCinematicEffect||(this.currentCinematicEffect=new Cg(this.container,I,this.playerApi,this.isDarkModeEnabled),_.kq(this,this.currentCinematicEffect));this.currentCinematicEffect.setFullscreen(this.fullscreen,this.theater);var C=this.currentCinematicEffect;C.cinematicContainerRenderer!==
I&&(C.cinematicContainerRenderer=I,FWR(C.storyboardManager,I),rBy(C));I=_.pA();_.Qw(0,194,!0);I.save();I=_.Si();this.cinematicsVe&&I&&_.Z0(I,[this.cinematicsVe],this.loggingClientData)}else this.currentCinematicEffect&&(I=_.Si(),this.cinematicsVe&&I&&_.BQ(I,[this.cinematicsVe],!1,this.loggingClientData),_.Bi(this.currentCinematicEffect),this.currentCinematicEffect=void 0)};
_.H1.Object.defineProperties(_.sY.prototype,{TEST_ONLY:{configurable:!0,enumerable:!0,get:function(){}}});
}catch(e){_._DumpException(e)}
try{
var $NY;var RDY;_.pK({_template:function(){if(RDY!==void 0)return RDY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=
I.content,y=C.insertBefore;$NY===void 0&&($NY=document.createElement("template"));var k=$NY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return RDY=I},
is:"tp-yt-iron-pages",behaviors:[_.Ri,_.gW],properties:{activateEvent:{type:String,value:null}},observers:["_selectedPageChanged(selected)"],_selectedPageChanged:function(){this.async(this.notifyResize)}});
}catch(e){_._DumpException(e)}
try{
var i4B;_.wUY=function(){if(_.V("kevlar_home_skeleton")&&!i4B){var I=document.querySelector("#home-page-skeleton");I&&(_.Sr("hgcr"),_.ey(I),i4B=!0)}};
i4B=!1;_.Pd=new _.J("cinematicContainerRenderer");
}catch(e){_._DumpException(e)}
try{
var enP,r6H,iCy,wXY,nNK,LmY,DwB,NMB,j3y,lTY,VTL,pXy,Q3S,RnP,bCK;_.c6R=function(I,C,y){C=C===void 0?5:C;if(C!==0){var k=typeof I==="function"?I():document.querySelector(I);k?(y==null?0:y.enableSmartFocus)?_.tXI(k):k.focus():setTimeout(function(){_.c6R(I,C-1,y)},500)}};
enP=function(I){return _.UFO(_.hvH(I&16777215))<.5};
r6H=function(I,C,y){var k=y.minimumRowsOfVideosBetweenSections===void 0?1:y.minimumRowsOfVideosBetweenSections;return I<(y.minimumRowsOfVideosAtStart===void 0?2:y.minimumRowsOfVideosAtStart)||C!==null&&I-C<=k?!1:!0};
iCy=function(I,C){var y=0,k=0;I=_.T(I);for(var F=I.next();!F.done;F=I.next()){var z=F.value;if(z.richItemRenderer)z.richItemRenderer.rowIndex=k,z.richItemRenderer.colIndex=y++,y===C&&(y=0,k++);else if(z.richGroupRenderer&&z.richGroupRenderer.numColumns!==void 0)z.richGroupRenderer.rowIndex=k,z.richGroupRenderer.colIndex=y,y+=z.richGroupRenderer.numColumns,y===C&&(y=0,k++);else if(z.richSectionRenderer){var c=F=void 0;if(z=_.l((F=z)==null?void 0:(c=F.richSectionRenderer)==null?void 0:c.content,_.iWP))z.rowIndex=
k++}}};
wXY=function(I,C){var y=C.contentElement;C=C.rendererToTagNameMap;if(y&&C&&C.size!==0){for(var k=new Map,F=_.T(y.children),z=F.next();!z.done;z=F.next()){z=z.value;var c=z.tagName.toLowerCase(),r=k.get(c);r||(r=[],k.set(c,r));r.push(z)}if(k.size!==0)for(F=Math.min(I.length,y.children.length),z=new Map,c=0;c<F;c++){r=Object.keys(I[c])[0];r=C.get(r);if(!r)break;var w=z.get(r);w===void 0&&(w=0,z.set(r,w));var L=k.get(r);if(!L||w>=L.length)break;z.set(r,w+1);r=L[w];w=y.children[c];w!==r&&(_.CtW=!0,_.sfz.set(r,
!0),y.insertBefore(r,w),_.sfz.delete(r),_.CtW=!1)}}};
nNK=function(I,C,y,k,F,z,c){k=k===void 0?{}:k;if(!I||!I.length)return[];I=I.slice();var r=[],w=[];F=null;for(var L=0,D=function(x){w.sort(function(U,yW){return yW.skippedOnRow-U.skippedOnRow});
for(var B,t=(B=w.shift())==null?void 0:B.content;t;)!t.richSectionRenderer&&x||r.push(t),B=void 0,t=(B=w.shift())==null?void 0:B.content},p=[];I.length>0||w.length>0;){for(var Q=[],X=C;X>0;){var b=void 0,S=void 0,A=(S=w[0]&&w[0].skippedOnRow<L?(b=w.shift())==null?void 0:b.content:void 0)!=null?S:I.shift();
if(!A)break;if(A.richItemRenderer)b=A.richItemRenderer.targetId,S=void 0,b&&((S=c)==null?0:S.has(b))&&p.push(c.get(b)),Q.push(A),X--;else if(A.richGroupRenderer&&A.richGroupRenderer.numColumns!==void 0)A.richGroupRenderer.numColumns<=X?(Q.push(A),X-=A.richGroupRenderer.numColumns):X===C&&A.richGroupRenderer.numColumns>C?(Q.push({richGroupRenderer:Object.assign({},A.richGroupRenderer,{numColumns:C})}),X=0):w.push({content:A,skippedOnRow:L});else if(A.richSectionRenderer)if(r6H(L,F,k)&&X===C){r.push(A);
F=L;L++;continue}else w.push({content:A,skippedOnRow:L});else if(A.continuationItemRenderer){D(!0);r.push(A);X=0;break}if(X===0)r.push.apply(r,_.Py(Q));else if(!y&&I.length===0){D(!1);r.push.apply(r,_.Py(Q));X=0;break}}L++;p=_.T(p);for(Q=p.next();!Q.done;Q=p.next())r.push(Q.value),L++;p=[]}iCy(r,C);z&&wXY(r,z);return r};
LmY=function(I){var C=I.data;var y=I.uniqueId;I=I.overrides;var k,F=((k=C.timedAnimationData)==null?void 0:k.animationTiming)||[];return _.P("timed-animation-button-renderer",{class:"ytwTimedAnimationButtonRendererHost"},_.P(_.qkH,{settings:{uniqueId:y,timings:F,experimentEnabled:F.length>0,enabled:F.length>0}},PyL(C.buttonRenderer,{buttonRenderer:{buttonOverrides:I}})))};
DwB=function(I){return I.talkToRecs};
NMB=function(I,C){if(C){var y=_.Hg().getState().entities.flowStateEntity,k=pXy(I),F=[C];k&&k!==C&&F.push(k);var z=!0,c;if(y&&I.flowStateEntityKey&&((c=y[I.flowStateEntityKey])==null?void 0:c.primaryButtonDisabled)!==void 0){var r;z=!((r=y[I.flowStateEntityKey])==null||!r.primaryButtonDisabled)}Q3S(I,k!=null?k:C,F,z)}};
j3y=function(I){return _.rf(_.Hg(),function(C){return C.entities.flowStateEntity},function(C,y){if(I.flowStateEntityKey){var k,F=C==null?void 0:(k=C[I.flowStateEntityKey])==null?void 0:k.currentStepId,z;
y=y==null?void 0:(z=y[I.flowStateEntityKey])==null?void 0:z.currentStepId;z=_.Hg().getState().talkToRecs;if(F&&F!==y){var c;C=(C==null?void 0:(c=C[I.flowStateEntityKey])==null?void 0:c.stepIdStack)||Object.keys(z.stepStates);c=!VTL(z==null?void 0:z.stepStates[F]);Q3S(I,F,C,c)}}})};
lTY=function(I){return _.rf(_.Hg(),DwB,function(C){var y=pXy(I);if(y){var k=Object.keys(C.stepStates);C=!VTL(C==null?void 0:C.stepStates[y]);Q3S(I,y,k,C)}})};
VTL=function(I){var C=Object.keys((I==null?void 0:I.selectionStates)||{}).reduce(function(z,c){return z||(I==null?void 0:I.selectionStates[c].isSelected)},!1),y,k,F=!!(I==null?0:(y=I.userQuery)==null?0:(k=y.userQuery)==null?0:k.trim());
return C||F};
pXy=function(I){if(I.flowStateEntityKey){var C,y,k=(C=_.Hg().getState().entities.flowStateEntity)==null?void 0:(y=C[I.flowStateEntityKey])==null?void 0:y.currentStepId;if(k)return k}};
Q3S=function(I,C,y,k){_.Hg().dispatch(_.wJ("flowStateEntity",I.flowStateEntityKey,{currentStepId:C,stepIdStack:y,key:I.flowStateEntityKey,primaryButtonDisabled:k}))};
_.XXR=function(I,C){return _.cg(I.entities,"youchatPendingResponseEntity",C)};
_.$wY=function(I){return function(C){_.qH(_.wJ("youchatPendingResponseEntity",I,{entityKey:I,isPendingResponse:C}))}};
RnP=function(I){I==null||I.addEventListener("DOMLoaded",function(){I.goToAndPlay(I.totalFrames-48,!0)})};var YkL;_.pK({_template:function(){if(YkL!==void 0)return YkL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
var C=I.content,y=C.insertBefore;bCK===void 0&&(bCK=document.createElement("template"));var k=bCK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return YkL=I},
is:"tp-yt-paper-material",properties:{elevation:{type:Number,reflectToAttribute:!0,value:1},animated:{type:Boolean,reflectToAttribute:!0,value:!1}}});var GSH=new _.J("talkToRecsFlowRenderer");var fT8=new _.J("flowRootRenderer");var Sk8=new _.J("chipsShelfViewModel");var KmS=new _.J("horizontalShelfViewModel");_.A6Y=new _.J("engagementPanelSectionListRenderer");var gNy=new _.J("conversationResourceViewModel");var vN8=function(){this.horizontal=!1},WmL=function(I,C){I.horizontal=C};
vN8.prototype.position=function(I,C,y,k){k=k===void 0?1:k;I=this.delta(I)*k+C;k=Math.max(C,y);return I>=Math.min(C,y)&&I<=k?I:y};
vN8.prototype.axis=function(I){I=this.direction(I);return I==="up"||I==="down"?"Y":"X"};var Cm=function(I,C,y){C=C===void 0?_.yL():C;this.target=I;this.manager=C;this.touchAction=y;this.events=[];this.attached=!1;this.eventMap={};this.onSwipeDown=function(){};
this.onSwipeUp=function(){};
this.onPanStart=function(){};
this.onPanMove=function(){};
this.onPanEnd=function(){}};
Cm.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(_.Py(this.events)));for(var I=_.T(this.events),C=I.next();!C.done;C=I.next())this.listen(C.value)}};
Cm.prototype.detach=function(){if(this.attached){this.attached=!1;this.manager.unregisterTouchEvents.apply(this.manager,[this.target].concat(_.Py(this.events)));for(var I=_.T(this.events),C=I.next();!C.done;C=I.next())this.unlisten(C.value)}};
Cm.prototype.listen=function(I){this.eventMap[I]&&this.target.addEventListener(I,this.eventMap[I])};
Cm.prototype.unlisten=function(I){this.eventMap[I]&&this.target.removeEventListener(I,this.eventMap[I])};var sD=function(){vN8.apply(this,arguments)};
_.R(sD,vN8);sD.prototype.direction=function(I){var C=I.detail;I=C.deltaY;C=C.deltaX;return I&&!this.horizontal?I>0?"down":"up":C&&this.horizontal?C>0?"right":"left":"none"};
sD.prototype.distance=function(I){return Math.abs(this.delta(I))};
sD.prototype.delta=function(I){var C=this.direction(I),y=I.detail;I=y.deltaX;y=y.deltaY;return C==="up"||C==="down"?y||0:I||0};
sD.prototype.velocity=function(I){var C=this.direction(I),y=I.detail;I=y.velocityX;y=y.velocityY;return Math.abs(C==="up"||C==="down"?y||0:I||0)};_.oB=function(I,C,y,k,F,z){F=F===void 0?new sD:F;z=z===void 0?_.yL():z;Cm.call(this,C,z,k);var c=this;this.element=I;this.target=C;this.config=y;this.input=F;this.manager=z;this.events=["panstart","panmove","panend"];this.onPanStart=function(){c.config.draggingClass&&c.element.classList.add(c.config.draggingClass);c.config.startAction&&c.config.startAction()};
this.onPanMove=function(r){var w=dw8(c,r);if(w){c.move(r,w);w.fade&&c.fade(r,w);var L=c.input.direction(r);w.moveAction&&w.moveAction(xwK(c,r,w),L)}};
this.onPanEnd=function(r){var w,L,D,p,Q,X;return _.e(function(b){if(b.nextAddress==1){c.animationRequestId&&cancelAnimationFrame(c.animationRequestId);c.animationRequestId=void 0;w=dw8(c,r);if(!w)return b.return();L=w;D=L.triggerAction;p=L.fade;Q=L.disableFinish;X=L.translateBack;var S=c.input.velocity(r),A=c.input.distance(r),x=c.threshold(w);return S>.3&&A>10||A>x?Q?b.jumpTo(6):p?_.n(b,qky(c,r),6):_.n(b,mwy(c,r,w),6):X?_.n(b,c.translateBack(r),3):b.jumpTo(3)}b.nextAddress!=3&&D&&D();c.config.draggingClass&&
c.element.classList.remove(c.config.draggingClass);c.reset();_.oI(b)})};
I=Object.keys(y.triggers);this.directions=new Set(I);WmL(this.input,this.directions.has("right")||this.directions.has("left"))};
_.R(_.oB,Cm);_.oB.prototype.reset=function(){this.element.style.transform="";this.element.style.opacity="";this.config.resetAction&&this.config.resetAction()};
var dw8=function(I,C){C=I.input.direction(C);return I.config.triggers[C]};
_.oB.prototype.move=function(I,C){var y=this;this.animationRequestId||(this.animationRequestId=requestAnimationFrame(function(){var k=y.input.axis(I),F=y.input.position(I,y.config.startPosition,C.endPosition,C.moveRatio||1);y.element.style.transform="translate"+k+"("+F+"px)";y.animationRequestId=void 0}))};
var xwK=function(I,C,y){var k=y.moveRatio||1;y=Math.abs(I.config.startPosition-y.endPosition);return Math.min(I.input.distance(C)*k,y)/y};
_.oB.prototype.fade=function(I,C){var y=C.endOpacity;I=xwK(this,I,C);I>0&&(this.element.style.opacity=""+(((y||0)-1)*I+1))};
_.oB.prototype.threshold=function(I){return I.threshold?I.threshold:Math.abs(I.endPosition-this.config.startPosition)/3};
var mwy=function(I,C,y){var k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return k=I.input.delta(C)+I.config.startPosition,F=I.input.axis(C),z=y,c=z.endPosition,r=z.transitionEndPosition,L=(w=r)!=null?w:c,_.n(D,I.element.animate([{transform:"translate"+F+"("+k+"px)"},{transform:"translate"+F+"("+L+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.element.style.transform="translate"+F+"("+L+"px)";_.oI(D)})};
_.oB.prototype.translateBack=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1){if(!C.element.style.transform)return F.return();y=C.input.axis(I);k=C.config.startPosition;return _.n(F,C.element.animate([{transform:C.element.style.transform},{transform:"translate"+y+"("+k+"px)"}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2)}C.element.style.transform="translate"+y+"("+k+"px)";_.oI(F)})};
var qky=function(I,C){var y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return y=I.input.delta(C)+I.config.startPosition,k=I.input.axis(C),F=y+70,z=I.element.style.opacity===""?1:I.element.style.opacity,_.n(c,I.element.animate([{transform:"translate"+k+"("+y+"px)",opacity:z},{transform:"translate"+k+"("+F+"px)",opacity:0}],{duration:400,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.element.style.transform="translate"+k+"("+F+"px)";I.element.style.opacity="0";_.oI(c)})};var y2=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.scrollRate=3;I.autoScrollAnimationStart=0;I.autoScrollPaused=!1;I.autoScrollRafId=0;return I};
_.R(y2,_.cO);_.u=y2.prototype;_.u.created=function(){var I=this;this.boundAutoScrollHandler=function(C){I.autoScroll(C)}};
_.u.detached=function(){this.hostElement.removeEventListener("mouseout",_.sb(this,this.startAutoScroll));this.hostElement.removeEventListener("click",_.sb(this,this.endAutoScroll));this.hostElement.removeEventListener("mouseover",_.sb(this,this.endAutoScroll));this.endAutoScroll&&this.endAutoScroll()};
_.u.autoScrollEnabledChanged=function(){this.autoScrollEnabled?(this.hostElement.addEventListener("mouseout",_.sb(this,this.startAutoScroll)),this.hostElement.addEventListener("click",_.sb(this,this.endAutoScroll)),this.hostElement.addEventListener("mouseover",_.sb(this,this.endAutoScroll)),this.startAutoScroll()):(this.hostElement.removeEventListener("mouseout",_.sb(this,this.startAutoScroll)),this.hostElement.removeEventListener("click",_.sb(this,this.endAutoScroll)),this.hostElement.removeEventListener("mouseover",
_.sb(this,this.endAutoScroll)),this.endAutoScroll())};
_.u.autoScroll=function(I){this.autoScrollAnimationStart||(this.autoScrollAnimationStart=I);var C;if(C=!this.autoScrollPaused&&this.scrollTarget)C=this.scrollTarget,C=C.scrollHeight-C.scrollTop!==C.clientHeight;C&&(C=1E3/this.scrollRate,I-=this.autoScrollAnimationStart,I>C&&(this.scrollTarget.scrollTop+=Math.ceil(I/C),this.autoScrollAnimationStart=0),this.startAutoScroll())};
_.u.startAutoScroll=function(){this.autoScrollPaused=!1;this.autoScrollRafId=window.requestAnimationFrame(this.boundAutoScrollHandler)};
_.u.endAutoScroll=function(){this.autoScrollPaused=!0;window.cancelAnimationFrame(this.autoScrollRafId)};
y2.prototype.autoScrollEnabledChanged=y2.prototype.autoScrollEnabledChanged;_.E([_.d(),_.h("design:type",Object)],y2.prototype,"scrollRate",void 0);_.E([_.d(),_.h("design:type",Object)],y2.prototype,"scrollTarget",void 0);_.E([_.d(),_.h("design:type",Boolean)],y2.prototype,"autoScrollEnabled",void 0);_.E([_.FI("autoScrollEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],y2.prototype,"autoScrollEnabledChanged",null);y2=_.E([_.eA()],y2);_.ZCH=[y2.prototype];var BMR;_.B9(_.nz,"yt-avatar-stack-view-model",{props:{className:_.As,data:_.As,isOverlay:_.As,useMediumText:_.As,decorations:_.As,hideAvatar:_.As}});var PyL=_.Qg({buttonRenderer:_.Gf});_.MU(LmY);_.aj(LmY,"timed-animation-button-renderer",{propNames:["data","uniqueId","overrides"]});var ka=function(){var I=_.q.apply(this,arguments)||this;I.hideJoinButtonBeforeSubscribed=_.V("hide_join_button_before_subscribed");I.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-unsubscribe-action":"handleUnsubscribeAction"};return I};
_.R(ka,_.q);_.u=ka.prototype;
_.u.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"}}}};
_.u.updateJoinButtonOverrides=function(){var I,C;(I=_.f(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||(C=I.polymerController)==null||C.set("overrides",this.joinButtonOverrides);if(I=_.f(this.hostElement).querySelector("#sponsor-button timed-animation-button-renderer"))I.overrides=this.joinButtonOverrides};
_.u.handleButtonRefreshAction=function(I){if(I=_.l(I,_.KAq))this.set("data.membershipButton",I.membershipButton),this.notifyPath("data.membershipButton")};
_.u.onYtServiceRequestError=function(I){_.ly(this.hostElement,I.detail.error.message)};
_.u.handleUnsubscribeAction=function(){var I,C,y;((I=this.data)==null?void 0:(C=I.membershipButton)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.style)==="STYLE_PRIMARY"&&_.f(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").polymerController.set("data.style","STYLE_SUGGESTIVE")};
_.H1.Object.defineProperties(ka.prototype,{hideJoin:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.hideMembershipButtonIfUnsubscribed)&&!this.subscribed}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.subscriptionStateEntity)==null||!I.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.data)==null?void 0:I.membershipButton,y;I=(C==null?void 0:C.buttonRenderer)||_.l(C==null?void 0:(y=C.timedAnimationButtonRenderer)==null?void 0:y.buttonRenderer,_.fZ);return(I==null?void 0:I.style)==="STYLE_BRAND_GRADIENT"?{style:"brand-gradient",type:"filled"}:(I==null?void 0:I.style)==="STYLE_MONO_OUTLINE"?{style:"mono",type:"outline"}:(I==null?void 0:I.style)==="STYLE_MONO_TONAL"?{style:"mono",type:"tonal"}:{style:"mono",
type:this.subscribed?"filled":"tonal"}}}});
ka.prototype.onYtServiceRequestError=ka.prototype.onYtServiceRequestError;ka.prototype.updateJoinButtonOverrides=ka.prototype.updateJoinButtonOverrides;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ka.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ka.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ka.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],ka.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ka.prototype,"data",void 0);_.E([_.v("data.hideMembershipButtonIfUnsubscribed","subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],ka.prototype,"hideJoin",null);_.E([_.d(),_.h("design:type",String)],ka.prototype,"subscribeKey",void 0);_.E([_.d({selectorArgs:["subscribeKey"],selector:_.CM}),_.h("design:type",Object)],ka.prototype,"subscriptionStateEntity",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ka.prototype,"hideJoinButtonBeforeSubscribed",void 0);_.E([_.v("subscriptionStateEntity"),_.d({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],ka.prototype,"subscribed",null);_.E([_.v("subscribed","data.membershipButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],ka.prototype,"joinButtonOverrides",null);
_.E([_.FI("joinButtonOverrides"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ka.prototype,"updateJoinButtonOverrides",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],ka.prototype,"onYtServiceRequestError",null);ka=_.E([_.m({is:"ytd-video-owner-renderer",disableElementRegistration:!0})],ka);
_.Z(ka,"ytd-video-owner-renderer",function(){if(BMR!==void 0)return BMR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-video-owner-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<a class="yt-simple-endpoint style-scope ytd-video-owner-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]" tabindex="-1"><yt-img-shadow id="avatar" alt="[[getSimpleString(data.title)]]" hidden="[[!data.thumbnail]]" thumbnail="[[data.thumbnail]]" width="40" class="style-scope ytd-video-owner-renderer"></yt-img-shadow><div id="avatar-stack" hidden="[[!data.avatarStack.avatarStackViewModel]]" class="style-scope ytd-video-owner-renderer"></div></a><div id="upload-info" class="style-scope ytd-video-owner-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" class="style-scope ytd-video-owner-renderer"></ytd-channel-name><yt-formatted-string id="owner-sub-count" hidden="[[!data.subscriberCountText]]" text="[[data.subscriberCountText]]" class="style-scope ytd-video-owner-renderer"></yt-formatted-string><slot name="date" class="style-scope ytd-video-owner-renderer"></slot></div><div id="purchase-button" hidden="[[!data.purchaseButton]]" class="style-scope ytd-video-owner-renderer"></div><div id="sponsor-button" hidden="[[hideJoin]]" class="style-scope ytd-video-owner-renderer"></div><div id="analytics-button" class="style-scope ytd-video-owner-renderer"></div>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BMR=I},{mode:1});var ENj;var Fx=function(){var I=_.q.apply(this,arguments)||this;I.buttonUpdate=_.V("web_button_rework");I.dismissButtonOverrides=_.V("web_button_rework")?{iconPosition:"icon-only",style:"overlay-dark",type:"tonal",size:"M",state:"active"}:void 0;I.forceDarkTheme=!1;I.forceLightTheme=!1;I.dynamicTextHeight=94;I.hasOverflowButton=!1;I.isInfeedModernization=!1;return I};
_.R(Fx,_.q);_.u=Fx.prototype;_.u.computeUrlImg=function(I){if(I)return _.hE(I.thumbnails)};
_.u.getLogoHeight=function(I){return this.logoWithPadding(I)?"31":"24"};
_.u.getLogoClassName=function(I){return this.logoWithPadding(I)?"ytd-banner-promo-renderer-logo-with-padding":"ytd-banner-promo-renderer-logo"};
_.u.logoWithPadding=function(I){var C,y;return(I=(C=I.thumbnails)==null?void 0:(y=C[0])==null?void 0:y.height)&&I%31===0?!0:!1};
_.u.sendImpressionEndpoints=function(I){I.impressionEndpoints&&_.Tg(this.hostElement,I.impressionEndpoints)};
_.u.observeBasicPalette=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.colorData)==null?void 0:C.basicColorPaletteData;y?_.N3(this.hostElement,y):_.N3(this.hostElement,{})};
_.u.observeDataChanged=function(){var I;this.dynamicTextHeight=((I=this.data)==null?0:I.supplementalText)?74:94;var C;this.hasSupplementalText=!((C=this.data)==null||!C.supplementalText);if(_.V("web_button_rework")){var y,k,F,z;I=(y=this.data)==null?void 0:(k=y.actionButton)==null?void 0:(F=k.buttonRenderer)==null?void 0:(z=F.colorData)==null?void 0:z.basicColorPaletteData;var c,r,w;if(!((c=this.data)==null?0:(r=c.actionButton)==null?0:(w=r.buttonRenderer)==null?0:w.style)&&I){this.computeIsInfeedModernization(this.data)||
(I.borderColor=I.foregroundTitleColor);var L,D;this.set("data.actionButton.buttonRenderer",_.Le.unsafeClone((L=this.data)==null?void 0:(D=L.actionButton)==null?void 0:D.buttonRenderer))}}};
_.u.observeDataForCounterfactual=function(){if(_.V("kevlar_banner_cf_extra_logging")){var I;((I=this.data)==null?0:I.isVisible)||this.sendImpressionEndpoints(this.data)}};
_.u.computeSupplementalStyle=function(){var I;if((I=this.data)!=null&&I.supplementalText){var C,y,k;if((C=this.data)==null?0:(y=C.colorData)==null?0:(k=y.basicColorPaletteData)==null?0:k.foregroundActivatedColor)return I=_.lg(this.data.colorData.basicColorPaletteData.foregroundActivatedColor),"--yt-endpoint-color:"+I+"; --yt-endpoint-hover-color:"+I+"; --yt-endpoint-visited-color:"+I+"; --yt-formatted-string-bold-font-weight:700;"}};
_.u.computeForcedDarkTheme=function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.actionButton)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.style,F,z,c;I=enP(((F=this.data)==null?void 0:(z=F.colorData)==null?void 0:(c=z.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return k&&I};
_.u.computeForcedLightTheme=function(){var I,C,y,k=(I=this.data)==null?void 0:(C=I.actionButton)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.style,F,z,c;I=!enP(((F=this.data)==null?void 0:(z=F.colorData)==null?void 0:(c=z.basicColorPaletteData)==null?void 0:c.backgroundColor)||0);return k&&I};
_.u.computeHasOverflowButton=function(I){return!!I.overflowButton};
_.u.computeHasTitle=function(I){return!!I.title};
_.u.computeTitleMaxFontSize=function(I){return this.computeHasOverflowButton(I)?28:64};
_.u.onDismissClick=function(){this.hostElement.classList.add("dismissed")};
_.u.computeIsInfeedModernization=function(){var I,C,y,k,F=(I=this.data)==null?void 0:(C=I.actionButton)==null?void 0:(y=C.buttonRenderer)==null?void 0:(k=y.colorData)==null?void 0:k.basicColorPaletteData;return(F==null?void 0:F.backgroundColor)===452984831||(F==null?void 0:F.backgroundColor)===218103808};
Fx.prototype.observeDataForCounterfactual=Fx.prototype.observeDataForCounterfactual;Fx.prototype.observeDataChanged=Fx.prototype.observeDataChanged;Fx.prototype.observeBasicPalette=Fx.prototype.observeBasicPalette;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Fx.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Fx.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fx.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Fx.prototype,"buttonUpdate",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Fx.prototype,"hasSupplementalText",void 0);_.E([_.d(),_.h("design:type",Object)],Fx.prototype,"dismissButtonOverrides",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasTitle(data)"}),_.h("design:type",Boolean)],Fx.prototype,"hasTitle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeForcedDarkTheme(data)"}),_.h("design:type",Object)],Fx.prototype,"forceDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeForcedLightTheme(data)"}),_.h("design:type",Object)],Fx.prototype,"forceLightTheme",void 0);_.E([_.d(),_.h("design:type",Object)],Fx.prototype,"dynamicTextHeight",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Object)],Fx.prototype,"hasOverflowButton",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsInfeedModernization(data)"}),_.h("design:type",Object)],Fx.prototype,"isInfeedModernization",void 0);_.E([_.FI("data.colorData.basicColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fx.prototype,"observeBasicPalette",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fx.prototype,"observeDataChanged",null);_.E([_.FI("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fx.prototype,"observeDataForCounterfactual",null);Fx=_.E([_.m({is:"ytd-banner-promo-renderer",disableElementRegistration:!0})],Fx);
_.Z(Fx,"ytd-banner-promo-renderer",function(){if(ENj!==void 0)return ENj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ENj=I},{mode:1});var hnB;var UwM;var HCK;var uD=function(){return _.q.apply(this,arguments)||this};
_.R(uD,_.q);_.E([_.d(),_.h("design:type",Object)],uD.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uD.prototype,"ytRendererBehavior",void 0);uD=_.E([_.m({is:"ytd-hashtag-grid-tile-renderer",disableElementRegistration:!0})],uD);
_.Z(uD,"ytd-hashtag-grid-tile-renderer",function(){if(HCK!==void 0)return HCK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HCK=I},{mode:1});var zt=function(){return _.q.apply(this,arguments)||this};
_.R(zt,_.q);zt.prototype.configureRendererStamper=function(){return{"data.tiles":{id:"tiles",mapping:{hashtagGridTileRenderer:"ytd-hashtag-grid-tile-renderer"}}}};
zt.prototype.updateRichGridTrendingHashtagsVisibility=function(){var I,C;if(((I=this.data)==null||!I.isExpanded)&&(C=this.data)!=null&&C.tiles){I=this.data.tiles.length;C=I>this.richGridItemsPerRow?this.richGridItemsPerRow+1:I;var y=Math.ceil(I/C);this.fullyVisibleRows=I%C===1&&y===2?1:Math.min(y,2);this.isShowMoreVisible=this.fullyVisibleRows<y}};
zt.prototype.onShowMoreClick=function(){this.isShowMoreVisible=!1;this.data&&(this.data.isExpanded=!0)};
zt.prototype.updateRichGridTrendingHashtagsVisibility=zt.prototype.updateRichGridTrendingHashtagsVisibility;_.E([_.d(),_.h("design:type",Object)],zt.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Number)],zt.prototype,"fullyVisibleRows",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],zt.prototype,"isShowMoreVisible",void 0);_.E([_.d({selector:_.Y9,value:0}),_.h("design:type",Number)],zt.prototype,"richGridItemsPerRow",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],zt.prototype,"ytdReduxBehavior",void 0);_.E([_.FI("data","richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zt.prototype,"updateRichGridTrendingHashtagsVisibility",null);
zt=_.E([_.m({is:"ytd-hashtag-grid-shelf-renderer",disableElementRegistration:!0})],zt);
_.Z(zt,"ytd-hashtag-grid-shelf-renderer",function(){if(UwM!==void 0)return UwM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UwM=I},{mode:1});var tTH;var J6y;var Tt=function(){var I=_.q.apply(this,arguments)||this;I.visibleVideos=[];I.hiddenVideos=[];I.modern=_.V("web_modern_buttons");I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(Tt,_.q);_.u=Tt.prototype;_.u.attached=function(){var I=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.onDarkModeToggledAction(I)};
_.u.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"}}}};
_.u.dataChanged=function(){var I=this;this.requestElementsPerRow();var C,y;this.currentColorPalette=this.isDarkTheme?(C=this.data)==null?void 0:C.darkColorData:(y=this.data)==null?void 0:y.lightColorData;var k;if((k=this.currentColorPalette)==null?0:k.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor;this.updateButtonPalette();this.setHasMovieRenderer();this.setVisibleVideos(this.hasMovieRenderer);_.hn(this,function(){I.updateVisibilityForHiddenVideos()});
this.checkExpanded(this.data)};
_.u.elementsPerRowChanged=function(){this.updateTitleSpec();this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.u.slimItemsPerRowChanged=function(){this.setVisibleVideos(this.hasMovieRenderer);this.updateVisibilityForHiddenVideos();this.checkExpanded(this.data)};
_.u.computeIsFirstFeedItem=function(I){return I};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I);this.data&&(this.currentColorPalette=I?this.data.darkColorData:this.data.lightColorData,this.updateButtonPalette())};
_.u.getCurrentLogo=function(I,C){if(I)return C?I.darkLogoImage:I.lightLogoImage};
_.u.computeTitleStyle=function(I){var C;if((C=this.data)!=null&&C.title&&I&&I.textPrimary!==void 0)return"color:"+_.lg(I.textPrimary)+";"};
_.u.computeSubtitleStyle=function(I){var C;if((C=this.data)!=null&&C.subtitle&&I&&I.textSecondary!==void 0)return"color:"+_.lg(I.textSecondary)+";"};
_.u.computeDismissIconStyle=function(I){if(this.data&&this.data.dismissButton&&I&&I.textPrimary!==void 0)return"--yt-button-color:"+_.lg(I.textPrimary)+";"};
_.u.computeOverflowButtonStyle=function(I){if(this.data&&this.data.overflowButton&&I&&I.textPrimary!==void 0)return"--ytd-menu-renderer-button-color:"+_.lg(I.textPrimary)+";--yt-spec-icon-active-other:"+_.lg(I.textPrimary)+";"};
_.u.computeBackgroundStyle=function(I){if(I&&this.data){var C="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.hE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&(C+='background-image:url("'+y+'");')}I.backgroundColor!==void 0&&(C+="background-color:"+_.Xl(I.backgroundColor)+";");return C}};
_.u.computeButton=function(){var I,C=Object.assign({},_.l((I=this.data)==null?void 0:I.showMoreButton,_.fZ));if(this.modern&&C){C.style="STYLE_MONO_OUTLINE";var y;if(I=(y=this.currentColorPalette)==null?void 0:y.textPrimary)C.colorData={basicColorPaletteData:{foregroundTitleColor:I,borderColor:I}}}return C};
_.u.shouldShowBottomButton=function(I,C){return!(I==null?0:I.header)&&!(I==null||!I.primaryButton)&&C<3};
_.u.checkExpanded=function(I){this.isExpanded=I&&I.content?this.hiddenVideos.length===0:!0};
_.u.onShowMoreTap=function(){this.data&&(this.isExpanded=!0,this.updateVisibilityForHiddenVideos())};
_.u.getLogoHeight=function(I){return this.logoWithPadding(I)?"26":"20"};
_.u.getLogoImageId=function(I){return this.logoWithPadding(I)?"logo-image-with-padding":"logo-image"};
_.u.computeHasSectionHeader=function(I){return!!I.header};
_.u.updateButtonPalette=function(){if(this.data)if(this.currentColorPalette){var I;if((I=this.data.primaryButton)==null?0:I.buttonRenderer)this.currentColorPalette.primaryButtonColorData?(this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0):this.currentColorPalette.primaryButtonStyleType&&(this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0),this.set("primaryButton",Object.assign({},this.data.primaryButton.buttonRenderer));var C;((C=this.data.dismissButton)==null?0:C.buttonRenderer)&&this.currentColorPalette.dismissButtonColorData&&(this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData})}else{var y,k;((y=this.data)==null?0:(k=y.primaryButton)==null?0:k.buttonRenderer)&&this.set("primaryButton",this.data.primaryButton.buttonRenderer)}};
_.u.setVisibleVideos=function(I){if(this.data&&this.data.content)if(this.data.content.length){var C=this.data.content.length;this.data.header?I?(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.slimItemsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.slimItemsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):this.elementsPerRow<3?(this.visibleVideos=
this.data.content.slice(0,Math.min(C,this.elementsPerRow)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow),C)):(this.visibleVideos=this.data.content.slice(0,Math.min(C,this.elementsPerRow-1)),this.hiddenVideos=this.data.content.slice(Math.min(C,this.elementsPerRow-1),C))}else this.visibleVideos=[],this.hiddenVideos=[]};
_.u.setHasMovieRenderer=function(){var I;if((I=this.data)!=null&&I.content){var C;this.hasMovieRenderer=!!_.l((C=this.data)==null?void 0:C.content[0],_.qIw)}else this.hasMovieRenderer=!1};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
_.u.updateVisibilityForHiddenVideos=function(){if(this.data&&this.data.content){for(var I=_.T(this.hiddenMediaRenderers),C=I.next();!C.done;C=I.next())C.value.hidden=!this.isExpanded;this.isExpanded&&this.hiddenMediaRenderers[0]&&(I=_.f(this.hiddenMediaRenderers[0]).querySelector("#video-title-link"))&&I.focus()}};
_.u.updateTitleSpec=function(){var I;(I=this.data)!=null&&I.titleLength&&(this.largeTitle=this.elementsPerRow===2&&this.data.titleLength>10?!0:!1)};
_.u.logoWithPadding=function(I){var C,y,k;return(I=(C=this.getCurrentLogo(I,this.isDarkTheme))==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?!0:!1};
_.u.onUpdateElementsPerRowAction=function(I,C,y){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I);y&&this.slimItemsPerRow!==y&&(this.slimItemsPerRow=y)};
Tt.prototype.slimItemsPerRowChanged=Tt.prototype.slimItemsPerRowChanged;Tt.prototype.elementsPerRowChanged=Tt.prototype.elementsPerRowChanged;Tt.prototype.dataChanged=Tt.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Tt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Tt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Tt.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Tt.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Tt.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Tt.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Tt.prototype,"currentColorPalette",void 0);_.E([_.d(),_.h("design:type",Array)],Tt.prototype,"visibleVideos",void 0);_.E([_.d(),_.h("design:type",Array)],Tt.prototype,"hiddenVideos",void 0);
_.E([_.d(),_.h("design:type",Object)],Tt.prototype,"primaryButton",void 0);_.E([_.d({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],Tt.prototype,"elementsPerRow",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Tt.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Tt.prototype,"isExpanded",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Tt.prototype,"largeTitle",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Tt.prototype,"hasMovieRenderer",void 0);_.E([_.d(),_.h("design:type",Number)],Tt.prototype,"slimItemsPerRow",void 0);_.E([_.d(),_.h("design:type",Boolean)],Tt.prototype,"showLightVideoMetadata",void 0);_.E([_.d(),_.h("design:type",Boolean)],Tt.prototype,"showDarkVideoMetadata",void 0);_.E([_.d(),_.h("design:type",Number)],Tt.prototype,"videoMetadataColor",void 0);
_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],Tt.prototype,"miniMode",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],Tt.prototype,"isFirstFeedItem",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasSectionHeader(data)"}),_.h("design:type",Boolean)],Tt.prototype,"hasSectionHeader",void 0);
_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Tt.prototype,"roundedContainer",void 0);_.E([_.T$("#visible-video-container ytd-rich-grid-media"),_.h("design:type",Array)],Tt.prototype,"visibleMediaRenderers",void 0);_.E([_.T$("#hidden-video-container ytd-rich-grid-media"),_.h("design:type",Array)],Tt.prototype,"hiddenMediaRenderers",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tt.prototype,"modern",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tt.prototype,"dataChanged",null);_.E([_.FI("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tt.prototype,"elementsPerRowChanged",null);_.E([_.FI("slimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tt.prototype,"slimItemsPerRowChanged",null);
Tt=_.E([_.m({is:"ytd-brand-video-shelf-renderer",disableElementRegistration:!0})],Tt);
_.Z(Tt,"ytd-brand-video-shelf-renderer",function(){if(J6y!==void 0)return J6y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return J6y=I},{mode:1});var OCY;var cd=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction","yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(cd,_.q);_.u=cd.prototype;_.u.attached=function(){var I=!!document.documentElement.hasAttribute("dark");this.set("isDarkTheme",I);this.onDarkModeToggledAction(I)};
_.u.configureRendererStamper=function(){return{primaryButton:{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.dismissButton":{id:"dismiss-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"}}}};
_.u.dataChanged=function(){this.requestElementsPerRow();var I,C;this.currentColorPalette=this.isDarkTheme?(I=this.data)==null?void 0:I.darkColorData:(C=this.data)==null?void 0:C.lightColorData;this.computeVideoMetadataColor(this.isDarkTheme);this.updateButtonPalette()};
_.u.elementsPerRowChanged=function(){this.updateTitleSpec()};
_.u.computeIsFirstFeedItem=function(I){return I};
_.u.onDarkModeToggledAction=function(I){I!==this.isDarkTheme&&this.set("isDarkTheme",I);this.data&&(this.currentColorPalette=I?this.data.darkColorData:this.data.lightColorData,this.computeVideoMetadataColor(I),this.updateButtonPalette())};
_.u.shouldShowThumbnailInMetadata=function(I){return I<=1};
_.u.getCurrentLogo=function(I,C){if(I)return C?I.darkLogoImage:I.lightLogoImage};
_.u.computeVideoMetadataColor=function(){if(this.data){var I;if((I=this.currentColorPalette)==null?0:I.accentColor)this.videoMetadataColor=this.currentColorPalette.accentColor}};
_.u.computeTitleStyle=function(I){var C;if((C=this.data)!=null&&C.title&&I&&I.textPrimary!==void 0)return"color:"+_.lg(I.textPrimary)+";"};
_.u.computeSubtitleStyle=function(I){var C;if((C=this.data)!=null&&C.subtitle&&I&&I.textSecondary!==void 0)return"color:"+_.lg(I.textSecondary)+";"};
_.u.computeDismissIconStyle=function(I){if(this.data&&this.data.dismissButton){var C;if(I==null?0:(C=I.dismissButtonColorData)==null?0:C.foregroundTitleColor)return"--yt-button-color:"+_.lg(I.dismissButtonColorData.foregroundTitleColor)+";";var y,k,F,z;if((y=this.data.dismissButton)==null?0:(k=y.buttonRenderer)==null?0:(F=k.colorData)==null?0:(z=F.basicColorPaletteData)==null?0:z.foregroundTitleColor)return"--yt-button-color:"+_.lg(this.data.dismissButton.buttonRenderer.colorData.basicColorPaletteData.foregroundTitleColor)+
";"}};
_.u.computeOverflowButtonStyle=function(I){var C;if(this.data&&this.data.overflowButton&&(I==null?0:(C=I.dismissButtonColorData)==null?0:C.foregroundTitleColor))return"--ytd-menu-renderer-button-color:"+_.lg(I.dismissButtonColorData.foregroundTitleColor)+";--yt-spec-icon-active-other:"+_.lg(I.dismissButtonColorData.foregroundTitleColor)+";"};
_.u.computeBackgroundStyle=function(I){if(I&&this.data){var C="";if(this.data.lightBackgroundImage&&this.data.darkBackgroundImage){var y=_.hE((this.isDarkTheme?this.data.darkBackgroundImage:this.data.lightBackgroundImage).thumbnails);y&&(C+='background-image:url("'+y+'");')}I.backgroundColor!==void 0&&(C+="background-color:"+_.Xl(I.backgroundColor)+";");return C}};
_.u.computeHasOverflowButton=function(I){return!!I.overflowButton};
_.u.getLogoHeight=function(I){return this.logoWithPadding(I)?"26":"20"};
_.u.getLogoImageId=function(I){return this.logoWithPadding(I)?"logo-image-with-padding":"logo-image"};
_.u.updateButtonPalette=function(){if(this.data){var I;if((I=this.data.primaryButton)==null?0:I.buttonRenderer){var C;if((C=this.currentColorPalette)==null?0:C.primaryButtonColorData)this.data.primaryButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.primaryButtonColorData},this.data.primaryButton.buttonRenderer.style=void 0;else{var y;if((y=this.currentColorPalette)==null?0:y.primaryButtonStyleType)this.data.primaryButton.buttonRenderer.style=this.currentColorPalette.primaryButtonStyleType,
this.data.primaryButton.buttonRenderer.colorData=void 0}this.set("primaryButton",{buttonRenderer:Object.assign({},this.data.primaryButton.buttonRenderer)})}var k;if((k=this.data.dismissButton)==null?0:k.buttonRenderer){var F;if((F=this.currentColorPalette)==null?0:F.dismissButtonColorData)this.data.dismissButton.buttonRenderer.colorData={basicColorPaletteData:this.currentColorPalette.dismissButtonColorData}}}};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
_.u.updateTitleSpec=function(){var I;(I=this.data)!=null&&I.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")};
_.u.logoWithPadding=function(I){var C,y,k;return(I=(C=this.getCurrentLogo(I,this.isDarkTheme))==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?!0:!1};
_.u.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
cd.prototype.elementsPerRowChanged=cd.prototype.elementsPerRowChanged;cd.prototype.dataChanged=cd.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],cd.prototype,"ytdDismissibleItemBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],cd.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],cd.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cd.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],cd.prototype,"currentColorPalette",void 0);_.E([_.d(),_.h("design:type",Object)],cd.prototype,"primaryButton",void 0);
_.E([_.d({reflectToAttribute:!0,value:3}),_.h("design:type",Number)],cd.prototype,"elementsPerRow",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],cd.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],cd.prototype,"titleSize",void 0);_.E([_.d(),_.h("design:type",Number)],cd.prototype,"videoMetadataColor",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],cd.prototype,"miniMode",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsFirstFeedItem(data.isFirstFeedItem)"}),_.h("design:type",Boolean)],cd.prototype,"isFirstFeedItem",void 0);_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],cd.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasOverflowButton(data)"}),_.h("design:type",Boolean)],cd.prototype,"hasOverflowButton",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cd.prototype,"dataChanged",null);_.E([_.FI("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cd.prototype,"elementsPerRowChanged",null);cd=_.E([_.m({is:"ytd-brand-video-singleton-renderer",disableElementRegistration:!0})],cd);
_.Z(cd,"ytd-brand-video-singleton-renderer",function(){if(OCY!==void 0)return OCY;var I=document.createElement("template");_.Y(I,'\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" style$="[[computeBackgroundStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n  <div id="content-wrapper" 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="header-container" hidden="[[data.overflowButton]]" class="style-scope ytd-brand-video-singleton-renderer">\n          <yt-img-shadow height$="[[getLogoHeight(data)]]" hidden="[[!data.lightLogoImage]]" id$="[[getLogoImageId(data)]]" thumbnail="[[getCurrentLogo(data, isDarkTheme)]]" class="style-scope ytd-brand-video-singleton-renderer">\n          </yt-img-shadow>\n          <div id="badge-container" style$="[[computeTitleStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer">\n            <yt-formatted-string id="badge" text="[[data.badgeText]]" class="style-scope ytd-brand-video-singleton-renderer"></yt-formatted-string>\n          </div>\n        </div>\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)]]" hidden="[[!data.overflowButton]]" 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="dismiss-button" hidden="[[data.overflowButton]]" style$="[[computeDismissIconStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n  <div id="overflow-button" hidden="[[!data.overflowButton]]" style$="[[computeOverflowButtonStyle(currentColorPalette)]]" class="style-scope ytd-brand-video-singleton-renderer"></div>\n</div>\n<div id="dismissed" class="style-scope ytd-brand-video-singleton-renderer"></div>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return OCY=I},{mode:_.Ij("kevlar_poly_si_batch_j070")?1:2});var aTK;var MTj=_.BO(function(I){var C=I.data;return _.P(_.x$,{data:function(){return C().thumbnail},
alt:"",className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail-image",targetHeight:function(){a:switch(C().variant){case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_VERTICAL":var y=108;break a;case "PROFILE_PAGE_HEADER_THUMBNAIL_VARIANT_FULL_BLEED_HORIZONTAL":y=88;break a;default:y=88}return y},
preserveHeight:!0,preserveWidth:!0,useWidth:!1,contentMode:function(){return C().thumbnail.contentMode||"CONTENT_MODE_SCALE_ASPECT_FIT"}})},"Th"),CJP=_.BO(function(I){var C=I.metadataRow;
var y=I.delimiter;return _.P(_.pH,{each:function(){return C().textParts||[]},
keyBy:"INDEX"},function(k,F){return _.P(_.aF,null,_.P(_.wh,{text:k,noWrap:!0,userInput:!0}),_.P(IcP,{delimiter:y,max:function(){return C().textParts.length},
index:F}))})},"Uh"),IcP=_.BO(function(I){var C=I.delimiter;
var y=I.max;var k=I.index;return _.P(_.Dx,{cond:function(){return(C==null?void 0:C())&&y()-1>k()},
then:function(){return _.P("span",null,C)}})},"Vh"),sgH=_.BO(function(I){var C=I.data;
I={};return _.P("yt-profile-page-header-information-view-model",{class:_.sZ("profile-page-header-information-view-model-wiz",(I["profile-page-header-information-view-model-wiz--mobile"]=!1,I))},_.P(_.Dx,{cond:function(){return C().onTap},
then:function(){return _.P(_.ik,{className:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail",command:function(){return _.Rj(C().onTap)}},_.P(_.lY,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:MTj}))},
else:function(){return _.P("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-thumbnail"},_.P(_.lY,{data:function(){return C().thumbnail}},{profilePageHeaderThumbnailViewModel:MTj}))}}),_.P("div",{class:"profile-page-header-information-view-model-wiz__flex-container"},_.P(_.Dx,{cond:function(){return C().onTap},
then:function(){return _.P(_.lY,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(y){var k=y.data;
return _.P(_.ik,{className:"profile-page-header-information-view-model-wiz__profile-page-header-title",command:function(){return _.Rj(k().onTap)}},_.P(_.wh,{text:function(){return k().title}}))}})},
else:function(){return _.P(_.lY,{data:function(){return C().title}},{profilePageHeaderTitleViewModel:function(y){var k=y.data;
return _.P(_.wh,{text:function(){return k().title},
className:"profile-page-header-information-view-model-wiz__profile-page-header-title"})}})}}),_.P(_.lY,{data:function(){return C().metadata}},{profilePageHeaderMetadataViewModel:function(y){var k=y.data;
return _.P(_.Dx,{cond:function(){return k().metadataRows},
then:function(F){return _.P("div",{class:"profile-page-header-information-view-model-wiz__profile-page-header-metadata"},_.P(_.pH,{each:F,keyBy:"INDEX"},function(z,c){return _.P(_.aF,null,_.P(CJP,{metadataRow:z,delimiter:" \u2022 "}),_.P(IcP,{delimiter:" \u2022 ",max:function(){return F().length},
index:c}))}))}})}})))},"Wh");
sgH.idomCompat=!0;_.B9(sgH,"yt-profile-page-header-information-view-model",{props:{data:_.As}});var e3=function(){return _.q.apply(this,arguments)||this};
_.R(e3,_.q);e3.prototype.configureRendererStamper=function(){return{"data.information":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],e3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],e3.prototype,"data",void 0);e3=_.E([_.m({is:"ytd-effect-pivot-header-view-model",disableElementRegistration:!0})],e3);
_.Z(e3,"ytd-effect-pivot-header-view-model",function(){if(aTK!==void 0)return aTK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return aTK=
I},{mode:1});var oLL;var rV=function(){return _.q.apply(this,arguments)||this};
_.R(rV,_.q);rV.prototype.configureRendererStamper=function(){return{"data.headerInformation":{id:"header",mapping:{profilePageHeaderInformationViewModel:"yt-profile-page-header-information-view-model"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rV.prototype,"data",void 0);rV=_.E([_.m({is:"ytd-source-pivot-header-renderer",disableElementRegistration:!0})],rV);
_.Z(rV,"ytd-source-pivot-header-renderer",function(){if(oLL!==void 0)return oLL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return oLL=I},{mode:1});_.B9(_.BO(function(I){var C=function(){return _.l(I.data().flowRoot,fT8)};
_.RU(function(){var y=C(),k=function(){},F=function(){};
if(y){var z,c,r=(c=_.l((z=y.steps)==null?void 0:z[0],_.u$y))==null?void 0:c.stepId;NMB(y,r||"");k=j3y(y);F=lTY(y)}_.$4(function(){k();k=function(){};
F();F=function(){}})});
return _.P("ytd-talk-to-recs-flow-renderer",{class:"ytdTalkToRecsFlowRendererHost"},_.P(_.JFm,{contentId:function(){return I.data().contentId}},function(){return _.P("div",{class:"ytdTalkToRecsFlowRendererFlowContent"},_.P(_.Dx,{cond:C,
then:function(y){return _.P(_.OHH,{data:y})}}))}))},"Xh"),"ytd-talk-to-recs-flow-renderer",{props:{data:_.As}});_.B9(_.BO(function(){return _.P("ytd-chips-shelf-with-video-shelf-ghost-card-view-model",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelHost"},_.P("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelTitle"}),_.P("div",{class:"ytdChipsShelfWithVideoShelfGhostCardViewModelChipsShelf"},_.P(_.fJB,null)),_.P(_.UNq,{data:{rows:1},isExploreHub:!0}))},"Yh"),"ytd-chips-shelf-with-video-shelf-ghost-card-view-model");_.B9(_.BO(function(I){var C=I.data;var y=I.standardUnitMinWidth;I=_.Es();var k=_.T((0,_.ORe)(C)),F=k.next().value,z=k.next().value,c=function(){var w,L=(w=F())==null?void 0:w.contents;return L==null||L.length===0},r=function(){z(Object.assign({},F(),{contents:[]}))};
_.a0(I,{showOption:{calledOnce:!0,state:"visible"},visibilityCallback:function(){var w=_.l(C().chipsShelf,Sk8);if(w!=null&&w!=null&&w.autoselectChipOnVisible){var L,D,p=_.l(w==null?void 0:(L=w.contents)==null?void 0:L[(D=w.autoselectedChipIndex)!=null?D:0],_.Ao);p&&p.tapCommand&&_.Gp(p.tapCommand)}}});
return _.P("ytd-chips-shelf-with-video-shelf-renderer",{class:"ytdChipsShelfWithVideoShelfRendererHost",el:I},_.P(_.JFm,{contentId:function(){return C().contentId},
useLegacyShelfStyle:function(){return!0}},function(){return _.P("div",null,_.P("div",{class:"ytdChipsShelfWithVideoShelfRendererHeader"},_.P(_.lY,{data:function(){return C().header}},{sectionHeaderViewModel:function(w){return _.P(_.Jv,{data:w.data,
disableHorizontalPadding:!0})}})),_.P("div",{class:"ytdChipsShelfWithVideoShelfRendererChipsShelf"},_.P(_.lY,{data:function(){return C().chipsShelf}},{chipsShelfViewModel:function(w){return _.P(_.mgq,{data:w.data,
callback:r,enableSingleChipSelection:!0})}})),_.P("div",null,_.P(_.Dx,{cond:c,
then:function(){return _.P("div",{class:"ytdChipsShelfWithVideoShelfRendererGhostCards"},_.P(_.UNq,{data:{rows:1},isExploreHub:!0}))}}),_.P(_.lY,{data:function(){var w;
return(w=F())==null?void 0:w.contents}},{richShelfRenderer:function(w){return _.P(_.Jb8,{data:w.data,
isInnerShelf:!0,standardUnitMinWidth:y})}})))}))},"Zh"),"ytd-chips-shelf-with-video-shelf-renderer",{props:{data:_.As,
standardUnitMinWidth:_.As}});var iD=function(){return _.q.apply(this,arguments)||this};
_.R(iD,_.q);
iD.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{backgroundPromoRenderer:"ytd-background-promo-renderer",compactPromotedItemRenderer:"ytd-compact-promoted-item-renderer",counterfactualRenderer:"ytd-counterfactual-renderer",destinationShelfRenderer:{component:"ytd-destination-shelf-renderer",params:{isRichGrid:!0}},hashtagGridShelfRenderer:"ytd-hashtag-grid-shelf-renderer",inlineSurveyRenderer:"ytd-inline-survey-renderer",primetimePromoRenderer:"ytd-primetime-promo-renderer",richShelfRenderer:{component:"ytd-rich-shelf-renderer",
properties:{standardUnitMinWidth:"[[standardUnitMinWidth]]"}},sourcePivotHeaderRenderer:"ytd-source-pivot-header-renderer",effectPivotHeaderViewModel:"ytd-effect-pivot-header-view-model",showingResultsForRenderer:"yt-showing-results-for-renderer",statementBannerRenderer:"ytd-statement-banner-renderer",brandVideoShelfRenderer:"ytd-brand-video-shelf-renderer",brandVideoSingletonRenderer:"ytd-brand-video-singleton-renderer",richListHeaderRenderer:"ytd-rich-list-header-renderer",faqSectionRenderer:"yt-faq-section-renderer",
feedNudgeRenderer:"ytd-feed-nudge-renderer",shelfRenderer:"ytd-shelf-renderer",talkToRecsFlowRenderer:"ytd-talk-to-recs-flow-renderer",chipsShelfViewModel:"chips-shelf-view-model",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}}};
iD.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
_.E([_.g(_.lZ),_.h("design:type",Object)],iD.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],iD.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iD.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iD.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Number)],iD.prototype,"standardUnitMinWidth",void 0);iD=_.E([_.m({is:"ytd-rich-section-renderer",disableElementRegistration:!0})],iD);
_.Z(iD,"ytd-rich-section-renderer",function(){if(tTH!==void 0)return tTH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return tTH=I},{mode:_.Ij("kevlar_poly_si_batch_j029")?
1:2});_.B9(_.lfK,"yt-profile-identity-info-view-model",{props:{data:_.As,hideDivider:_.As}});_.B9(_.AWq,"yt-page-header-view-model",{props:{data:_.As,noPadding:_.As,enableBanner:_.As,cinematicContainerTopbarOffset:_.As,allowCinematicContainerOverflow:_.As,displayAsSidebar:_.As,displayAsPanel:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=function(){var F;return(F=C().numColumns)!=null?F:2},k=function(){return y()>1?3:2};
I={};return _.P("ytd-rich-grid-group",{class:_.sZ("ytdRichGridGroupHost",(I.ytdRichGridGroupHostFirstColumn=function(){return C().colIndex===0},I)),
style:_.cP({"--ytd-rich-grid-group-num-columns":y,"--ytd-rich-grid-items-per-group":k})},_.P("div",{class:"ytdRichGridGroupContents"},_.P(_.lY,{data:function(){var F;return(F=C().contents)==null?void 0:F.slice(0,k())}},{richItemRenderer:function(F){return _.P(_.HUc,{data:F.data,
noGutterMargins:!0,isInlineGroupItem:!0,insetMetadata:!0})}})))},"$h"),"ytd-rich-grid-group",{props:{data:_.As}});var wV=function(){var I=_.q.apply(this,arguments)||this;I.resizeOnObserverInit=!1;I.isInlinePreviewDisabled=_.V("web_disable_inline_preview");I.disableStickyFilterBar=!1;I.transparentBackgroundChipsBar=!1;I.hideChipsBar=!1;I.isWatchDefaultLayout=!0;I.continuationShowButton=!1;I.rowReducedHorizontalMargin=!1;I.useCompactList=!1;I.manualDownloadsPresent=!1;I.smartDownloadsPresent=!1;I.shouldRenderDownloadsBanner=!1;I.hasOptedIntoSmartDownloads=!1;I.elementsPerRow=4;I.typographyBump=!1;I.showGnomeContents=
!1;I.showExploreHubContents=!1;I.slimItemsPerRow=1;I.pageLoadingFromNavigation=!1;I.loggingRefactor=_.V("kevlar_rich_grid_logging_fix");I.resizeObserver=null;I.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"};I.rendererToTagNameMap=
new Map(Object.entries(I.contentMapping()).map(function(C){var y=_.T(C);C=y.next().value;y=y.next().value;return[C,y.component]}));
I.insertedContent=new Map;return I};
_.R(wV,_.q);_.u=wV.prototype;_.u.onUseCompactListChange=function(){if(this.useCompactList!==void 0)for(var I=_.T(_.f(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=I.next();!C.done;C=I.next())C.value.useCompactList=this.useCompactList};
_.u.onSizingChange=function(){if(this.sizing!==void 0&&this.typographyBump!==void 0)for(var I=_.T(_.f(this.hostElement).querySelectorAll("ytd-rich-item-renderer")),C=I.next();!C.done;C=I.next())C=C.value,C.sizing=this.sizing,C.typographyBump=this.typographyBump};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents","yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.contentMapping=function(){return{richGroupRenderer:{component:"ytd-rich-grid-group"},richItemRenderer:{component:"ytd-rich-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",isSlimGrid:"[[isSlimGrid]]",isCompactGrid:"[[isCompactGrid]]",isShortsPanelGrid:"[[isShortsPanel]]",noGutterMargins:"[[noRichItemGutterMargins]]",force16By9ThumbnailAspectRatio:"[[force16By9ThumbnailAspectRatio]]",useCompactList:"[[useCompactList]]",sizing:"[[sizing]]",typographyBump:"[[typographyBump]]",itemWidth:"[[itemWidth]]"},
params:{renderedFromRichGrid:!0}},richSectionRenderer:{component:"ytd-rich-section-renderer",properties:{standardUnitMinWidth:"[[data.minItemWidth]]"}},continuationItemRenderer:{component:"ytd-continuation-item-renderer",properties:{isShortsGrid:"[[isShortsGrid]]",showButton:"[[continuationShowButton]]",continuationTriggerOffset:"[[continuationTriggerOffset]]"}}}};
_.u.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}}};
_.u.attached=function(){document.addEventListener("yt-page-type-changed",_.sb(this,this.onPageChange));this.updateItemMinAndMaxWidth();this.throttledOnResize=new _.OG(this.resizeObserved,_.s8("rich_grid_resize_delay_ms",50),this)};
_.u.detached=function(){var I;(I=this.resizeObserver)==null||I.disconnect();document.removeEventListener("yt-page-type-changed",_.sb(this,this.onPageChange))};
_.u.insertRichSection=function(I){var C=I.richItemTargetId;I=I.richSectionRendererToInsert;C&&I&&(this.insertedContent.set(C,I),this.reflowContent())};
_.u.computeIsReloading=function(){return this.ytContinuationHandlerBehavior.continuationIsReloading};
_.u.computeIsInlinePreviewEnabled=function(I,C,y){return _.V("web_disable_inline_preview")?!1:!y&&_.OL8({miniplayerIsActive:I,miniplayerPlaybackState:C})};
_.u.computeSizing=function(){var I=_.sXF(this.data);if(I||!(this.isShortsGrid||this.isSlimGrid||this.isCompactGrid||this.isShortsPanel))return I?this.useCompactList?"COMPACT":I:this.miniMode?"COMPACT":_.V("web_use_layout_library_for_rich_grid")?"STANDARD":void 0};
_.u.updateItemMinAndMaxWidth=function(){var I=_.s8("rich_grid_max_item_width",500);I>0&&_.CK(this.hostElement,{"--ytd-rich-grid-item-max-width":I+"px"});var C;I=this.getRichItemMinWidth((C=this.hostElement)==null?void 0:C.clientWidth);I>0&&_.CK(this.hostElement,{"--ytd-rich-grid-item-min-width":I+"px"})};
_.u.forceRefreshAndLog=function(){this.refreshGridLayout(!0);this.updateRichItemGridPositions()};
_.u.resizeObserved=function(){_.uW(this.hostElement,"yt-rich-grid-resize-observed");this.refreshGridLayout(!1,!0)&&this.updateRichItemGridPositions()};
_.u.navigateBackToHome=function(){_.V("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=!1);_.V("web_hide_explore_hub_until_user_navigates_back_to_home")&&(this.showExploreHubContents=!1);var I=_.N().resolve(_.BP).isOnWatch(),C,y=((C=_.CeI(location.pathname))==null?void 0:C.toString())||"";(["search".toString(),"subscriptions".toString(),"shorts".toString()].includes(y)||I)&&this.gnomeContents&&_.V("web_hide_gnome_until_user_navigates_back_to_home")&&(this.showGnomeContents=
!0);I&&this.exploreHubContents&&_.V("web_hide_explore_hub_until_user_navigates_back_to_home")&&(_.Hg().dispatch(_.yE({type:"TALK_TO_RECS_RESET_STEP_STATES",payload:null})),this.showExploreHubContents=!0)};
_.u.onPageChange=function(){var I=this;this.isCurrentPage()?(this.pageLoadingFromNavigation=!0,_.V("disable_chip_select_on_nav")||_.uW(this.hostElement,"yt-chip-cloud-chip-deselect-action"),_.b$.addJob(function(){I.pageLoadingFromNavigation=!1;_.V("disable_chip_select_on_nav")&&_.V("h5_reset_cache_and_filter_before_update_masthead")&&I.resetCacheAndIsFilteredFeed();I.setMasthead();I.maybeSetBigYoodle();I.forceRefreshAndLog();I.terminateVideoPreview();_.V("web_hide_gnome_until_user_navigates_back_to_home")&&
(I.dataChanged(),_.hn(I,function(){if(I.showGnomeContents){var C=Array.from(_.f(I.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(k){k=_.f(k).querySelector("ytd-rich-shelf-renderer");return!!k&&k.isGnomeShelf()});
if(C){C=C.offsetTop-I.contentsElement.offsetTop;var y=_.N().resolve(_.BP).getCurrentPage();y&&y.getPageScrollingElement().scrollTo({top:C,behavior:"smooth"})}}}));
_.V("web_hide_explore_hub_until_user_navigates_back_to_home")&&(I.dataChanged(),_.hn(I,function(){if(I.showExploreHubContents&&!_.V("web_explore_hub_no_scroll")){var C=Array.from(_.f(I.hostElement).querySelectorAll("ytd-rich-section-renderer")).find(function(k){return!!k.querySelector("ytd-talk-to-recs-flow-renderer")});
if(C){C=C.offsetTop-I.contentsElement.offsetTop;var y=_.N().resolve(_.BP).getCurrentPage();y&&y.getPageScrollingElement().scrollTo({top:C,behavior:"smooth"})}}}))},8)):((_.V("web_hide_gnome_until_user_navigates_back_to_home")||_.V("web_hide_explore_hub_until_user_navigates_back_to_home"))&&this.navigateBackToHome(),this.mastheadData&&(this.mastheadData=void 0))};
_.u.dataChanged=function(){var I=this,C=_.s8("web_rich_grid_row_margin",0);C>0&&_.CK(this.hostElement,{"--ytd-rich-grid-row-margin":C+"px"});_.uW(this.hostElement,"ytd-update-grid-state-action");this.data&&this.pageLoadingFromNavigation||(this.pagePath=location.pathname,this.resetCacheAndIsFilteredFeed(),this.maybeSetBigYoodle(),this.setMasthead(),this.refreshGridLayout(),_.hn(this,function(){I.updateRichItemGridPositions();I.contentsElement&&_.CK(I.hostElement,{"--ytd-rich-grid-content-offset-top":I.contentsElement.offsetTop+
"px"})}),this.initResizeObserver())};
_.u.initResizeObserver=function(){var I=this;if(window.ResizeObserver){var C;(C=this.resizeObserver)==null||C.disconnect();var y=!1;this.resizeObserver=new ResizeObserver(function(){if(y){var k;(k=I.resizeObserver)==null||k.disconnect();var F;(F=I.throttledOnResize)==null||F.fire();requestAnimationFrame(function(){var c;(c=I.throttledOnResize)==null||c.fire();I.initResizeObserver()})}else if(y=!0,I.resizeOnObserverInit){var z;
(z=I.throttledOnResize)==null||z.fire()}});
this.resizeObserver.observe(this.hostElement)}};
_.u.contentLengthChanged=function(){if(_.V("rich_grid_contents_check_width_ks")||this.containerWidth||this.isShortsPanel)this.reflowContent(),_.uW(this.hostElement,"ytd-rich-item-index-update-action")};
_.u.updateElementsPerRow=function(){_.uW(this.hostElement,"ytd-update-elements-per-row-action",[this.elementsPerRow,this.postsPerRow,this.slimItemsPerRow,this.gameCardsPerRow,this.miniGameCardsPerRow,this.containerWidth]);this.ytdReduxBehavior.dispatch(_.yE({type:"SET_RICH_GRID_ITEMS_PER_ROW",payload:this.elementsPerRow}));this.ytdReduxBehavior.dispatch(_.yE({type:"SET_RICH_GRID_SLIM_ITEMS_PER_ROW",payload:this.slimItemsPerRow}))};
_.u.onRequestElementsPerRow=function(){this.updateElementsPerRow()};
_.u.onRichShelfRendererCollapse=function(I){if(this.shownItems){var C=I.detail;I=this.shownItems.findIndex(function(k){var F,z;return((z=_.l(k==null?void 0:(F=k.richSectionRenderer)==null?void 0:F.content,_.iWP))==null?void 0:z.trackingParams)===C});
var y=I+1;I<0||y>=this.contentsElement.children.length||!this.shownItems[y].richItemRenderer||this.contentsElement.children[y].scrollIntoView({behavior:"smooth",block:"start"})}};
_.u.onSoftReloadPage=function(){this.scrollUpToTop()};
_.u.handleRerenderDownloadsData=function(){_.V("kevlar_modern_downloads_page")&&this.entityDrivenRichGridData&&this.set("data.contents",this.entityDrivenRichGridData.contents)};
_.u.handlePlaylistRemoveVideosAction=function(I){var C;if(((C=_.l(I,_.KRw))==null?0:C.setVideoIds)&&this.data&&this.data.contents){I=_.l(I,_.KRw).setVideoIds;for(C=this.data.contents.length-1;C>=0;){var y=_.l(this.data.contents[C],_.XH);(y=y&&_.l(y.content,_.GX))&&y.setVideoId&&I.includes(y.setVideoId)&&this.splice("data.contents",C,1);C--}this.updateIndices()}};
_.u.updateIndices=function(){if(this.data&&this.data.contents)for(var I=0;I<this.data.contents.length;I++)this.set("data.contents."+I+".richItemRenderer.index",_.Ee(String(I+1)))};
_.u.hasTopRowInlinePlayableVideoWithEndorsement=function(I){var C;return!((C=I.slice(0,this.getItemsPerRow()))==null||!C.some(function(y){var k;y=_.l(y==null?void 0:(k=y.richItemRenderer)==null?void 0:k.content,_.VcY);var F;return(y==null?void 0:y.inlinePlaybackEndpoint)&&(y==null?void 0:(F=y.thumbnailOverlays)==null?void 0:F.some(function(z){return z.thumbnailOverlayEndorsementRenderer}))}))};
_.u.refreshGridLayoutNew=function(I,C,y,k){var F=k.postsPerRow;var z=k.slimItemsPerRow;var c=k.gameCardsPerRow;k=k.miniGameCardsPerRow;var r;if((r=this.data)==null||!r.contents||!this.containerWidth)return!1;var w;if((w=this.data.responsiveContainerConfiguration)==null?0:w.responsiveSize){var L=_.OGK(this.data.responsiveContainerConfiguration,this.containerWidth),D;r=_.Hj(Object.assign({},L,{standardUnitMinWidth:(D=this.data)==null?void 0:D.minItemWidth}));this.useCompactList=!!(this.containerWidth<
528&&L.isCompactList)}else r=_.Hj({containerWidth:this.containerWidth,sizing:this.sizing,marginSettings:2,isCompactList:this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST",standardUnitMinWidth:(L=this.data)==null?void 0:L.minItemWidth}),this.data.layoutType==="RICH_GRID_LAYOUT_TYPE_COMPACT_LIST"&&(this.useCompactList=this.containerWidth<528);this.typographyBump=r.typographyBump;D=!1;if(I||this.elementsPerRow!==r.numItems||this.postsPerRow!==F||this.slimItemsPerRow!==z||this.gameCardsPerRow!==
c||this.miniGameCardsPerRow!==k||this.gutter!==r.gutter)D=this.elementsPerRow!==r.numItems,this.elementsPerRow=r.numItems,this.postsPerRow=F,this.slimItemsPerRow=z,this.gameCardsPerRow=c,this.miniGameCardsPerRow=k,this.gutter=r.gutter,this.itemWidth=r.itemWidth,this.reflowContent(C),_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow,"--ytd-rich-grid-item-margin":r.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(y);this.ytdReduxBehavior.dispatch(_.yE({type:"SET_RICH_GRID_CONTAINER_WIDTH",payload:r.maxContainerWidth}));return D};
_.u.refreshGridLayout=function(I,C){var y,k=(y=this.hostElement)==null?void 0:y.clientWidth;this.containerWidth=this.adjustRichGridWidth(k,!0);var F;if((F=this.data)==null||!F.contents||!this.containerWidth)return I&&(this.pendingForceReflow=!0),!1;this.pendingForceReflow&&!_.V("rg_pending_reflow_ks")&&(I=!0,this.pendingForceReflow=!1);y=this.getRichItemMinWidth(k);var z=this.isShortsPanel?146:194,c=this.getMiniGameCardMinWidth(),r=this.isShortsGridSlim?2:this.isShortsGrid||this.isCompactGrid?3:6;
k=y=this.calcElementsPerRow(y,r);(F=y<=3&&this.miniModeAllowed())&&(y=this.calcElementsPerRow(240,4));var w=this.calcMaxSlimElementsPerRow(y,r,this.isDefaultGrid);r=this.calcElementsPerRow(z,w);var L=this.calcElementsPerRow(this.isCompactGrid?z:154,w);z=this.calcElementsPerRow(this.isCompactGrid?z:c,w);c=!1;if(this.sizing)return this.refreshGridLayoutNew(I,C,F,{postsPerRow:k,slimItemsPerRow:r,gameCardsPerRow:L,miniGameCardsPerRow:z});if(I||this.elementsPerRow!==y||this.postsPerRow!==k||this.slimItemsPerRow!==
r||this.gameCardsPerRow!==L||this.miniGameCardsPerRow!==z)c=this.elementsPerRow!==y,this.elementsPerRow=y,this.postsPerRow=k,this.slimItemsPerRow=r,this.gameCardsPerRow=L,this.miniGameCardsPerRow=z,this.reflowContent(C),this.updateElementsPerRow(),_.CK(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)&&_.CK(this.hostElement,{"--ytd-rich-grid-shorts-item-margin":this.slimItemsPerRow<4?"1px":"4px"});this.updateMiniMode(F);_.uW(this.hostElement,"yt-rich-grid-layout-refreshed");return c};
_.u.getRichItemMinWidth=function(I){var C=_.s8("rich_grid_min_item_width",310);if(!_.V("kevlar_disable_min_width_override")){var y,k;C=(k=(y=this.data)==null?void 0:y.minItemWidth)!=null?k:C}return C+_.tMO(I)};
_.u.calcMaxSlimElementsPerRow=function(I,C,y){return(y===void 0?0:y)?I===1?2:I%2===0?_.V("web_shorts_2_by_3_reduce_items_per_row")&&I>=4?I/2*3-1:I/2*3:_.V("web_shorts_2_by_3_reduce_items_per_row")&&I>=3?I+1:I+2:C*2};
_.u.adjustRichGridWidth=function(I,C){var y=_.V("disable_rich_grid_guide_compensation");if(!this.isWatch&&!y){y=_.N().resolve(_.aU(_.Yx));var k=y==null?void 0:y.guideElement;if(!(!y||y.getData()||k!=null&&k.opened||y.getMiniGuideVisible()))if(y.canFitPersistentGuide(I)&&y.getGuideExpandsAutomatically()){var F,z,c=Number((F=window.getComputedStyle(this.hostElement))==null?void 0:(z=F.getPropertyValue("--app-drawer-width"))==null?void 0:z.replace("px",""));I-=c||0}else if(y.canFitMiniGuide(I)){var r;
F=Number((c=window.getComputedStyle(this.hostElement))==null?void 0:(r=c.getPropertyValue("--ytd-mini-guide-width"))==null?void 0:r.replace("px",""));I-=F||0}}I>600&&(this.isShortsGrid||this.isShortsGridSlim||this.isCompactGrid||(I-=C?32:48));return I};
_.u.calcElementsPerRow=function(I,C){var y=this.adjustRichGridWidth(this.hostElement.clientWidth,!1),k=this.isShortsPanel?2:this.isShortsGrid||this.isCompactGrid?4:16;return Math.min(Math.floor((y+k)/(I+k))||1,C)};
_.u.reflowContent=function(I){var C=this;if(!this.isReflowing){this.isReflowing=!0;var y,k,F=!!((y=this.data)==null?0:(k=y.contents)==null?0:k.some(function(X){return _.l(X,_.kH)}));
y=this.getItemsPerRow();var z;k=(z=this.data)==null?void 0:z.reflowOptions;I&&(_.Sr("rgr_s"),_.hn(this,function(){_.Sr("rgr_nrf")}));
I={};(z=_.f(this.hostElement).querySelector("#contents"))&&(I={contentElement:z,rendererToTagNameMap:this.rendererToTagNameMap});z=(z=this.data.contents)?z.slice():[];var c=(_.V("web_hide_gnome_behind_feed_filter_chip")||_.V("web_hide_gnome_until_user_navigates_back_to_home"))&&!this.showGnomeContents,r=_.V("web_hide_explore_hub_until_user_navigates_back_to_home")&&!this.showExploreHubContents,w=-1,L=-1;if(this.isHomePage&&r){for(r=0;r<z.length;r++){var D=void 0,p=void 0;_.l((D=z[r])==null?void 0:
(p=D.richSectionRenderer)==null?void 0:p.content,GSH)&&(L=r)}L>-1&&(this.exploreHubContents=z.splice(L,1))}if(this.isHomePage&&c){for(L=0;L<z.length;L++)p=D=void 0,(r=_.l((D=z[L])==null?void 0:(p=D.richSectionRenderer)==null?void 0:p.content,_.iWP))&&c&&(p=D=void 0,r=_.l((D=r)==null?void 0:(p=D.contents)==null?void 0:p[0],_.XH),D=void 0,_.l((D=r)==null?void 0:D.content,_.wlb)&&(w=L));w>-1&&(this.gnomeContents=z.splice(w,1))}var Q=nNK(z,y,F,k,this.getRichGridStyle(),I,this.insertedContent);F=function(){C.shownItems=
Q;C.isReflowing=!1};
this.shownItems.length===0?(this.shownItems=this.getFirstRowItems(Q),_.hn(this,F)):F()}};
_.u.getFirstRowItems=function(I){for(var C=[],y=0;y<I.length;y++){var k=void 0,F=void 0,z=void 0,c=void 0,r=void 0,w=void 0;if(((k=I[y])==null?void 0:(F=k.richItemRenderer)==null?void 0:F.rowIndex)===0||((z=I[y])==null?void 0:(c=z.richGroupRenderer)==null?void 0:c.rowIndex)===0||((r=I[y])==null?void 0:(w=r.richSectionRenderer)==null?void 0:w.rowIndex)===0)C.push(I[y]);else break}return C};
_.u.getItemsPerRow=function(){return this.isShortsGrid||this.isCompactGrid?this.slimItemsPerRow:this.elementsPerRow};
_.u.handleChipCloudChipSelectAction=function(I,C){this.terminateVideoPreview();this.cachedContents||this.setCacheAndIsFilteredFeed();_.V("web_hide_gnome_behind_feed_filter_chip")&&(C?(this.showGnomeContents=!0,this.set("data.contents",this.gnomeContents)):this.showGnomeContents=!1)};
_.u.onReloadContinuationFinish=function(){this.data&&this.data.header&&Array.isArray(this.data.header)&&this.data.header.length>0&&(this.data.header=this.data.header[0]);_.V("enable_rich_grid_continuation_reflow_fix")||this.reflowContent();this.isShortsPanel||this.scrollUpToTop();this.ytRendererBehavior.markDirty()};
_.u.handleChipCloudChipDeselectAction=function(){this.terminateVideoPreview();_.V("web_hide_gnome_behind_feed_filter_chip")&&(this.showGnomeContents=!1);this.cachedContents&&(this.set("data.contents",this.cachedContents),this.resetCacheAndIsFilteredFeed(),this.reflowContent(),this.scrollUpToTop())};
_.u.terminateVideoPreview=function(){_.uW(this.hostElement,"yt-terminate-video-preview-action")};
_.u.updateRichItemGridPositions=function(){var I={gridData:{gridColumnCount:this.elementsPerRow}},C;if((C=this.data)==null?0:C.trackingParams)this.loggingRefactor?_.e2().stateChanged(this.data.trackingParams,I):(C=_.Si())&&_.UN(C,_.nv(this.data.trackingParams),I);_.uW(this.hostElement,"ytd-rich-item-index-update-action")};
_.u.miniModeAllowed=function(){return _.V("disable_channels_mini_mode")?!1:this.isChannelPage};
_.u.getMiniGameCardMinWidth=function(){return 154};
_.u.updateMiniMode=function(I){this.miniMode=this.miniModeAllowed()&&I;this.ytdReduxBehavior.dispatch(_.yE({type:"SET_RICH_GRID_MINI_MODE",payload:I}))};
_.u.isCurrentPage=function(){return location.pathname===this.pagePath};
_.u.scrollUpToTop=function(){if(!this.isChannelPage&&!this.isWatch){var I=_.N().resolve(_.BP).getCurrentPage();I&&I.setScrollTop(0)}};
_.u.setCacheAndIsFilteredFeed=function(){this.cachedContents=this.get("contents",this.data);this.isFilteredFeed=!0};
_.u.resetCacheAndIsFilteredFeed=function(){this.cachedContents=void 0;this.isFilteredFeed=!1};
_.u.maybeSetBigYoodle=function(){var I,C=(I=this.data)==null?void 0:I.bigYoodle;this.bigYoodleData!==C&&(this.bigYoodleData=C)};
_.u.setMasthead=function(){var I;((I=this.data)==null?0:I.masthead)?this.mastheadData=this.data.masthead:_.V("disable_cached_masthead_data")&&(this.mastheadData=void 0)};
_.u.getRichGridStyle=function(){var I,C;return(C=(I=this.data)==null?void 0:I.style)!=null?C:"RICH_GRID_STYLE_UNKNOWN"};
_.u.onIsShortsGridChange=function(){var I=this.ytdReduxBehavior,C=I.dispatch,y=this.getRichGridStyle();C.call(I,_.yE({type:"SET_RICH_GRID_STYLE",payload:y}))};
_.H1.Object.defineProperties(wV.prototype,{entitySelectorType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.entitySelectorType)||"RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED"}},
isSub:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="browse-feedFEsubscriptions_shorts"}},
isWatch:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="watch-next-feed"}},
isShortsPanel:{configurable:!0,enumerable:!0,get:function(){var I=_.N().resolve(_.BP).getCurrentPage(),C,y,k;return(((C=this.data)==null?void 0:C.targetId)==="browse-feedFEsfv_audio_pivot"||_.V("web_enable_channel_pivot_panel")&&((y=this.data)==null?void 0:y.targetId)==="browse-feedFEsfv_channel_pivot"||_.V("web_enable_effect_pivot_panel")&&((k=this.data)==null?void 0:k.targetId)==="browse-feedFEsfv_effect_pivot")&&(I==null?void 0:I.pageSubtype)==="shorts"}},
reducedTopMargin:{configurable:!0,enumerable:!0,get:function(){return this.isWatch&&_.V("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 I;return!((I=this.data)==null?0:I.header)}},
isChannelPage:{configurable:!0,enumerable:!0,get:function(){var I;return((I=_.N().resolve(_.BP).getCurrentPage())==null?void 0:I.pageSubtype)==="channels"}},
isHomePage:{configurable:!0,enumerable:!0,get:function(){var I;return((I=_.N().resolve(_.BP).getCurrentPage())==null?void 0:I.pageSubtype)==="home"}},
isSlimGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SLIM"}},
isShortsGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID"||this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
noRichItemGutterMargins:{configurable:!0,enumerable:!0,get:function(){return this.isSlimGrid||this.isShortsGrid}},
isShortsGridSlim:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"}},
isCompactGrid:{configurable:!0,enumerable:!0,get:function(){return this.getRichGridStyle()==="RICH_GRID_STYLE_COMPACT"}},
isDefaultGrid:{configurable:!0,enumerable:!0,get:function(){return!this.getRichGridStyle()||this.getRichGridStyle()==="RICH_GRID_STYLE_UNKNOWN"}},
hideChipsBarOnHome:{configurable:!0,enumerable:!0,get:function(){var I;return this.hideChipsBar||(((I=this.data)==null?void 0:I.targetId)||"")==="browse-feedFEwhat_to_watch"&&_.V("kevlar_hide_chips_on_home")}},
hideChipsBarOnWatch:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.targetId)||"")==="watch-next-feed"&&!_.V("swatcheroo_disable_chips")}},
force16By9ThumbnailAspectRatio:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?0:I.enableContentSpecificAspectRatio)||((C=this.data)==null?0:(y=C.responsiveContainerConfiguration)==null?0:y.enableContentSpecificAspectRatio)?!1:!0}},
continuationTriggerOffset:{configurable:!0,enumerable:!0,get:function(){return this.isHomePage?_.s8("web_continuation_handler_margin",0):0}}});
wV.prototype.onIsShortsGridChange=wV.prototype.onIsShortsGridChange;wV.prototype.onReloadContinuationFinish=wV.prototype.onReloadContinuationFinish;wV.prototype.reflowContent=wV.prototype.reflowContent;wV.prototype.handleRerenderDownloadsData=wV.prototype.handleRerenderDownloadsData;wV.prototype.onRichShelfRendererCollapse=wV.prototype.onRichShelfRendererCollapse;wV.prototype.onRequestElementsPerRow=wV.prototype.onRequestElementsPerRow;wV.prototype.contentLengthChanged=wV.prototype.contentLengthChanged;
wV.prototype.dataChanged=wV.prototype.dataChanged;wV.prototype.onSizingChange=wV.prototype.onSizingChange;wV.prototype.onUseCompactListChange=wV.prototype.onUseCompactListChange;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],wV.prototype,"ironResizableBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],wV.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],wV.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],wV.prototype,"componentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],wV.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],wV.prototype,"miniMode",void 0);_.E([_.d({value:[]}),_.h("design:type",Array)],wV.prototype,"shownItems",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],wV.prototype,"isReflowing",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],wV.prototype,"isFilteredFeed",void 0);_.E([_.d({selector:_.TOF}),_.h("design:type",Boolean)],wV.prototype,"guideIsExpanded",void 0);
_.E([_.d({selectorArgs:["entitySelectorType"],selector:function(I,C){if(_.V("kevlar_modern_downloads_page")&&C&&C!=="RICH_GRID_ENTITY_SELECTOR_TYPE_UNSPECIFIED")switch(C){case "RICH_GRID_ENTITY_SELECTOR_TYPE_DOWNLOADS":var y=I.entities;C=_.Xy(y);var k=_.$9(y),F=_.RSm(I),z=_.$Dt(I);I=_.bZF(I);var c=_.CvK(y),r=_.QE(C);y=_.RQ(y);return _.B6O(C,k,c,F,z,r,y,I);case "RICH_GRID_ENTITY_SELECTOR_TYPE_SMART_DOWNLOADS":return C=_.Xy(I.entities),_.haF(C);case "RICH_GRID_ENTITY_SELECTOR_TYPE_HOME_DOWNLOADS":return C=
_.OVK(I.entities),_.Uvz(C);default:_.SN(new _.ph("Error: entitySelectorType defined but not matched in selector.",I,C))}}}),
_.h("design:type",Object)],wV.prototype,"entityDrivenRichGridData",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"resizeOnObserverInit",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"bigYoodleData",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"mastheadData",void 0);_.E([_.d(),_.h("design:type",Boolean)],wV.prototype,"isInlinePreviewDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"disableStickyFilterBar",void 0);
_.E([_.d(),_.h("design:type",Object)],wV.prototype,"transparentBackgroundChipsBar",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wV.prototype,"hideChipsBar",void 0);_.E([_.d(),_.h("design:type",Object)],wV.prototype,"isWatchDefaultLayout",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wV.prototype,"continuationShowButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wV.prototype,"rowReducedHorizontalMargin",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wV.prototype,"useCompactList",void 0);_.E([_.d({selector:function(I){return _.$9(I.entities).length>0}}),
_.h("design:type",Object)],wV.prototype,"manualDownloadsPresent",void 0);_.E([_.d({selector:function(I){return _.Xy(I.entities).length>0}}),
_.h("design:type",Object)],wV.prototype,"smartDownloadsPresent",void 0);_.E([_.d({selector:_.$Dt}),_.h("design:type",Object)],wV.prototype,"shouldRenderDownloadsBanner",void 0);_.E([_.d({selector:_.RSm}),_.h("design:type",Object)],wV.prototype,"hasOptedIntoSmartDownloads",void 0);_.E([_.FI("useCompactList"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"onUseCompactListChange",null);
_.E([_.FI("sizing","typographyBump"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"onSizingChange",null);_.E([_.d({selector:_.w3z}),_.h("design:type",Number)],wV.prototype,"miniplayerPlaybackState",void 0);_.E([_.d({selector:_.GL}),_.h("design:type",Boolean)],wV.prototype,"miniplayerIsActive",void 0);
_.E([_.d({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],wV.prototype,"isInlinePreviewEnabled",void 0);_.E([_.d({computed:"computeSizing(data, useCompactList, miniMode, isShortsGrid, isSlimGrid, isCompactGrid, isShortsPanel)"}),_.h("design:type",String)],wV.prototype,"sizing",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wV.prototype,"elementsPerRow",void 0);
_.E([_.d(),_.h("design:type",Object)],wV.prototype,"typographyBump",void 0);_.E([_.d(),_.h("design:type",Number)],wV.prototype,"itemWidth",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],wV.prototype,"headerElement",void 0);_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],wV.prototype,"contentsElement",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"dataChanged",null);
_.E([_.rW("data.contents.length"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"contentLengthChanged",null);_.E([_.km("yt-request-elements-per-row"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"onRequestElementsPerRow",null);
_.E([_.km("yt-rich-shelf-renderer-collapse"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wV.prototype,"onRichShelfRendererCollapse",null);_.E([_.rW("shouldRenderDownloadsBanner","hasOptedIntoSmartDownloads","manualDownloadsPresent","smartDownloadsPresent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"handleRerenderDownloadsData",null);
_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],wV.prototype,"entitySelectorType",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isSub",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isWatch",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isShortsPanel",null);_.E([_.d({reflectToAttribute:!0}),_.v("isWatch"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"reducedTopMargin",null);_.E([_.d({reflectToAttribute:!0}),_.v("data","isWatch","isWatchDefaultLayout"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"noTopMargin",null);
_.E([_.d({reflectToAttribute:!0}),_.v("isInlinePreviewEnabled","shownItems"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"topRowEndorsement",null);_.E([_.v("data.header"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"hideHeader",null);_.E([_.km("yt-rich-grid-reflow"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],wV.prototype,"reflowContent",null);
_.E([_.km("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"onReloadContinuationFinish",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isSlimGrid",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isShortsGrid",null);
_.E([_.v("data","isSlimGrid","isShortsGrid"),_.d(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"noRichItemGutterMargins",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isShortsGridSlim",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isCompactGrid",null);
_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"isDefaultGrid",null);_.E([_.v("data.targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"hideChipsBarOnHome",null);_.E([_.v("data.targetId"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"hideChipsBarOnWatch",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wV.prototype,"onIsShortsGridChange",null);_.E([_.v("data.enableContentSpecificAspectRatio"),_.d(),_.h("design:type",Boolean),_.h("design:paramtypes",[])],wV.prototype,"force16By9ThumbnailAspectRatio",null);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],wV.prototype,"continuationTriggerOffset",null);wV=_.E([_.m({is:"ytd-rich-grid-renderer",disableElementRegistration:!0})],wV);
_.Z(wV,"ytd-rich-grid-renderer",function(){if(hnB!==void 0)return hnB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hnB=I},{mode:2});var yrR=_.BO(function(I){var C=I.thumbsUp;I=I.thumbsDown;var y=_.T(_.c4(!1,void 0,"OxPsH")),k=y.next().value,F=y.next().value;y=_.T(_.c4(!1,void 0,"V5vWne"));var z=y.next().value,c=y.next().value;return _.P("div",{class:"ytwThumbsUpDownThumbs"},_.P(_.RY,{data:C,onToggle:function(r){F(r);z()&&c(!1)},
buttonShapeOverrides:function(){return{toggled:k()}}}),_.P(_.RY,{data:I,
onToggle:function(r){c(r);k()&&F(!1)},
buttonShapeOverrides:function(){return{toggled:z()}}}))},"ai");
yrR.idomCompat=!0;var F5P=_.BO(function(I){var C=function(){return I.data().pendingStateEntityKey||""},y=_.cj(_.XXR,C),k=function(){var F;
if(!(F=I.disabled())){var z;F=!((z=y())==null||!z.isPendingResponse)}return F};
return _.P("you-chat-chips-data",{class:"ytwYouChatChipsDataHost"},_.P(_.pH,{each:function(){return I.data().chipData||[]},
keyBy:"REFERENCE"},function(F){return _.P(kFH,{data:F,disabled:k,pendingStateKey:C,onError:I.onError})}))},"bi"),kFH=_.BO(function(I){var C=_.Es(),y=_.T(_.c4(!0,void 0,"HBREAe")),k=y.next().value,F=y.next().value,z=function(){return I.data().text.content},c=_.uk(function(r){var w,L,D,p,Q,X,b,S;
return _.e(function(A){switch(A.nextAddress){case 1:r.stopPropagation();if(I.disabled())return A.return();L=String(Math.floor(((w=_.oY())==null?void 0:w.getCurrentTime())||0)*1E3);D="youchat-"+Date.now();p=function(){_.bU(I.data().onClick||{});var x={continuationCommand:{token:I.data().continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},B={inputComposerFormData:{clientMessageId:D,playerOffsetMs:L}};return new Promise(function(t,U){_.bU(x,{form:{formData:B},commandController:{onSuccess:function(yW,
a){t(a)},
onServerError:function(yW,a){U(a.error)}}})})};
Q=_.$wY(I.pendingStateKey());Q(!0);_.c6R("#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");F(!1);_.aM(A,2);return _.n(A,p(),4);case 4:_.dC(A,3);break;case 2:X=_.sj(A),(S=(b=I).onError)==null||S.call(b,X);case 3:Q(!1),_.oI(A)}})});
return _.P(_.Dx,{cond:k,then:function(){return _.P("div",{class:"ytwYouChatChipsDataChipWrapper"},_.P("button",{el:C,class:"ytwYouChatChipsDataChip","data-disabled":I.disabled,"on:click":c,tabindex:0},z))}})},"ci");var utK=_.BO(function(I){var C=I.data;return _.P("yt-conversation-resource-view-model",{class:_.sZ("ytConversationResourceViewModelHost","ytConversationResourceViewModelHostSectionList")},_.P(_.Dx,{cond:function(){var y;return(y=C().conversationResourceData)==null?void 0:y.learningGuideData},
then:function(y){return _.P(_.pH,{each:function(){return y().sectionData||[]}},function(k){return _.P("div",{class:"ytConversationResourceViewModelHostSectionContainer"},_.P(_.wh,{text:function(){return k.timestamp},
className:"ytConversationResourceViewModelHostTimestampText"}),_.P("div",{class:"ytConversationResourceViewModelHostSectionTextContainer"},_.P(_.wh,{text:function(){return k.title},
className:"ytConversationResourceViewModelHostTitleText"}),_.P(_.wh,{text:function(){return k.summary},
className:"ytConversationResourceViewModelHostSummaryText"})))})}}))},"di");
utK.idomCompat=!0;var z_8=_.BO(function(I){var C=function(){var x;return(x=I.data().text)==null?void 0:x.content},y=function(){var x,B;
return(x=I.data().webData)==null?void 0:(B=x.textResult)==null?void 0:B.content},k=_.N().resolve(_.v9),F=_.yg(),z=function(){return I.data().chatResponseStyle},c=function(){return{animationConfig:{autoplay:!1,
loop:!1,renderer:"svg",rendererSettings:{viewBoxSize:"12 0 48 48"},name:"YOUCHAT_ICON",path:I.data().animationUrl||"https://www.gstatic.com/youtube/img/lottie/youchat_animations/progress_indicator_solo_v1.json"}}},r=function(){var x;
return I.data().webData||((x=I.data().text)==null?void 0:x.content)||I.data().videoResultsData||I.data().conversationResourceViewModel},w=function(){var x;
return(x=I.data().videoResultsData)==null?void 0:x.videoShelf},L=function(){var x;
return _.l(((x=I.data().videoResultsData)==null?void 0:x.videoShelf)||{},KmS)},D=function(){var x;
return(x=I.data().webData)==null?void 0:x.sourcesShelf},p=function(){var x;
return _.l(((x=I.data().webData)==null?void 0:x.sourcesShelf)||{},KmS)},Q=function(){return _.l(I.data().conversationResourceViewModel||{},gNy)},X=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"?!1:I.data().thumbsDownViewModel&&I.data().thumbsUpViewModel},b=function(){return _.l(I.data().thumbsUpViewModel,_.$A)},S=function(){return _.l(I.data().thumbsDownViewModel,_.$A)};
_.X2(function(){requestAnimationFrame(function(){var x;(x=I.shouldAnimateIcon)!=null&&x.call(I)&&RnP(F.lottieEl)})});
var A={};return _.P("you-chat-item-view-model",{class:_.sZ("ytwYouChatItemViewModelYouChatItemViewModel",(A.ytwYouChatItemViewModelHostNoPadding=function(){return!1},A)),
"data-target-id":function(){return I.data().id||""}},_.P(_.Dx,{cond:r,
then:function(){var x={};return _.P("div",{"aria-hidden":"true"},_.P(_.o8,{className:_.sZ("ytwYouChatItemViewModelIcon",(x.ytwYouChatItemViewModelRtl=k==="rtl",x.ytwYouChatItemViewModelHidden=function(){return!(I.data().hideIcon||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"||z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"?0:r())},x)),
animationName:"YOUCHAT_ICON",data:c,animationRef:F}))}}),_.P(_.Dx,{cond:r,
then:function(){var x={};return _.P("div",{class:_.sZ("ytwYouChatItemViewModelHost",(x.ytwYouChatItemViewModelChatResponseStyleMultiPartStart=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_START"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartMiddle=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_MIDDLE"},x.ytwYouChatItemViewModelChatResponseStyleMultiPartEnd=function(){return z()==="CHAT_RESPONSE_STYLE_MULTI_PART_END"},x)),
role:"alert"},_.P(_.Dx,{cond:C,then:function(B){return _.P(_.VD,{text:B})}}),_.P(_.Dx,{cond:y,
then:function(B){return _.P(_.VD,{text:B})}}),_.P(_.Dx,{cond:w,
then:function(){return _.P("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.P(_.QD,{data:L,hasPeek:!0,disableArrows:!1,protectBackground:!0}))}}),_.P(_.Dx,{cond:D,
then:function(){return _.P("div",{class:"ytwYouChatItemViewModelLockupShelf"},_.P(_.QD,{data:p,hasPeek:!0,disableArrows:!1}))}}),_.P(_.Dx,{cond:Q,
then:function(){return _.P(utK,{data:Q})}}),_.P(_.Dx,{cond:X,
then:function(){return _.P(yrR,{thumbsUp:b,thumbsDown:S})}}))}}),_.P(_.Dx,{cond:function(){return I.data().chipsData},
then:function(x){return _.P(F5P,{data:x,disabled:I.pending,onError:I.onError})}}))},"ei");
z_8.idomCompat={callbacks:{onError:!0,onSend:!0}};var TZY=_.BO(function(I){var C=function(){return I.data().choiceSelectedText};
return _.P("yt-you-chat-user-turn",{class:"ytYouChatUserTurnHost"},_.P(_.Dx,{cond:C,then:function(){return _.P("div",{class:"ytYouChatUserTurnChoiceSelected"},_.P(_.wh,{text:C}))}}),_.P("div",{class:"ytYouChatUserTurnUserMessage"},function(){return I.data().text}))},"fi");var crR=_.BO(function(I){var C=_.T((0,_.I2m)(I.data)).next().value;return _.P("yt-item-section-renderer",{class:"ytItemSectionRendererHost","data-target-id":function(){return I.data().targetId||""}},_.P(_.lY,{data:function(){return C().contents}},{accordionViewModel:_.Lpd,
chatLoadingViewModel:_.S8K,chatUserTurnViewModel:TZY,learningJourneyLoaderViewModel:_.iBP,lockupViewModel:_.UA,youChatItemViewModel:function(y){return _.P(z_8,{data:y.data,pending:!1})}}))},"gi");_.B9(_.BO(function(I){var C=_.T((0,_.I2m)(I.data)).next().value;return _.P("yt-section-list-renderer",{class:_.sZ("ytSectionListRendererHost",I.className),"data-target-id":function(){return I.data().targetId||""}},_.P(_.lY,{data:function(){return C().contents}},{itemSectionRenderer:crR}))},"hi"),"yt-section-list-renderer",{props:{data:_.As,
className:_.Z_}});var e_H;var rrR;var nm=function(){return _.q.apply(this,arguments)||this};
_.R(nm,_.q);_.E([_.d(),_.h("design:type",Object)],nm.prototype,"data",void 0);nm=_.E([_.lT({is:"yt-alert-renderer",disableElementRegistration:!0})],nm);
_.Z(nm,"yt-alert-renderer",function(){if(rrR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;e_H===void 0&&(e_H=document.createElement("template"));var k=e_H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);rrR=I}I=rrR;return I},{mode:2});
}catch(e){_._DumpException(e)}
try{
_.zkB=function(I,C){var y,k;C=C===void 0?{}:C;var F,z,c,r,w,L,D,p,Q,X,b,S;return _.e(function(A){switch(A.nextAddress){case 1:F=C;z=F.shouldWrap===void 0?!0:F.shouldWrap;c=F.skipTransitionTimeoutMs===void 0?300:F.skipTransitionTimeoutMs;r=F.beforeTransition;w=F.afterTransition;if(!z||!document.startViewTransition||document.visibilityState==="hidden")return A.return(I());y=window.innerWidth;k=window.innerHeight;L=!1;(D=r)==null||D();_.aM(A,2);p=document.startViewTransition(I);Q=setTimeout(function(){p.skipTransition();
L=!0},c);
return _.n(A,p.ready,4);case 4:return clearTimeout(Q),_.n(A,p.finished,5);case 5:clearTimeout(Q);(X=w)==null||X();_.dC(A,0);break;case 2:b=_.sj(A),(S=w)==null||S(),b&&!L&&document.visibilityState!=="hidden"&&y===window.innerWidth&&k===window.innerHeight&&_.GB(b),_.oI(A)}})};
_.pC=function(I){return I.watch.isTheaterMode};
_.T4K=function(I){var C=_.c2("DIV");I&&(C.className=I);C.style.cssText="overflow:auto;position:absolute;top:0;width:100px;height:100px";I=_.c2("DIV");_.oGw(I,"200px","200px");C.appendChild(I);document.body.appendChild(C);I=C.offsetWidth-C.clientWidth;_.ey(C);return I};
_.Qb=function(){for(var I=Array(36),C=0,y,k=0;k<36;k++)k==8||k==13||k==18||k==23?I[k]="-":k==14?I[k]="4":(C<=2&&(C=33554432+Math.random()*16777216|0),y=C&15,C>>=4,I[k]=_.GNq[k==19?y&3|8:y]);return I.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 cMS=_.hu(['<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>']),
ek8=_.D15(cMS);ek8.setAttribute("style","display: none;");document.head.appendChild(ek8.content);_.Nw=_.w5Y(_.T4K);var rMS;var i1P;var Vb=function(){var I=_.q.apply(this,arguments)||this;I.icon=null;return I};
_.R(Vb,_.q);Vb.prototype.dismiss=function(){_.k3(this.hostElement,"yt-live-chat-error-message-dismiss")};
Vb.prototype.computeIcon=function(I){return I&&I.iconType?"yt-icons:"+I.iconType.toLowerCase():"yt-icons:close"};
_.E([_.d(),_.h("design:type",Object)],Vb.prototype,"data",void 0);_.E([_.d({computed:"computeIcon(data.icon)"}),_.h("design:type",Object)],Vb.prototype,"icon",void 0);Vb=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-error-message-renderer",noInjection:!0})],Vb);
_.Z(Vb,"yt-live-chat-error-message-renderer",function(){if(i1P===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;rMS===void 0&&(rMS=document.createElement("template"));var k=rMS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);i1P=I}I=i1P;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});
}catch(e){_._DumpException(e)}
try{
var DvP,pBj,QkM,N6H,jU,RaL,bGL,YcS,GjS,fqH,$2,Sc8,KSS,R2,AVM,gPj,vPY,WSL,dvK,xvB,qcB,mvY,ZGR,B6R,EPL,haH,UvK,HG8,t6L,JVH,OGj,aqK,M6B,bO,IKK,CdY,syy,kHy,FJH,uuM,zuj,TEK,cRM,oij,yRS,rRP,iTj,w_Y,ni8,PdR,euK,p_y;DvP=function(I,C){return _.cg(I.entities,"timedMarkersListSyncEntity",C)};
pBj=function(I,C){return _.cg(I.entities,"liveReactionsDataEntity",C)};
QkM=function(I,C){I=_.cg(I.entities,"booleanEntity",C);return!(!I||!I.value)};
N6H=function(I,C){var y=_.Si();y&&I&&_.q1(y,_.nv(I),C)};
_.V6y=function(){_.V("web_watch_log_theater_mode")&&_.nLX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_THEATER_MODE_ENABLED")};
_.jkR=function(I,C,y){if(!I.includes("START_TIME_PLACEHOLDER")||!I.includes("END_TIME_PLACEHOLDER"))return I;var k=new Date(0),F=new Date(0);k.setUTCMilliseconds(C);F.setUTCMilliseconds(y);return I.replace("START_TIME_PLACEHOLDER",_.qk(k,7)).replace("END_TIME_PLACEHOLDER",_.qk(F,7))};
jU=function(I){return I.watch.isWatchActive};
_.lO=function(I){return I!=null&&I.watch?I.watch.isWatchFullscreen:!1};
_.lq8=function(I){return I.watch.watchWindowSize};
_.XBH=function(I){return _.pC(I)||_.lO(I)||_.Qgz(I)};
_.$vS=function(I){return!_.XBH(I)};
_.XK=function(I){return I.watch.watchScrollTop};
RaL=function(I){return I.watch.isLiveChatCollapsed};
bGL=function(I){return I.watch.openEngagementPanels};
YcS=function(I,C){return _.cg(I.entities,"booleanEntity",C)};
GjS=function(){return function(I){_.qH(_.wJ("booleanEntity","chat_input_view_model_state",{key:"chat_input_view_model_state",value:I}))}};
fqH=function(I){switch(I){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}};
$2=function(I,C,y){var k=_.Rj(y);I&&C&&k&&I.getPlayerPromise().then(function(F){_.YOK(k)&&_.Yo();(new _.T7(F)).executeCommand(k,C);_.V("continue_playback_on_desktop_companion_click")||F.pauseVideo()})};
Sc8=function(I){var C=_.hU(),y;if(y=_.d5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;y=(k=y())==null?void 0:k.layoutId}else y=null;$2(C,y,I)};
KSS=function(I){var C=_.hU(),y;if(y=_.d5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;y=(k=y())==null?void 0:k.layoutId}else y=null;$2(C,y,I)};
R2=function(I,C){var y=I<0?"-":"";I=Math.abs(I);var k=Math.floor(I/3600),F=Math.floor(I)%3600,z=Math.floor(F/60);F=Math.floor(F)%60;var c="";(C===void 0?0:C)&&(c="."+Math.round((I-Math.floor(I))*10));return k>0?y+k+":"+(z<10?"0"+z:""+z)+":"+(F<10?"0"+F:""+F)+c:y+z+":"+(F<10?"0"+F:""+F)+c};
AVM=function(I){var C=I.match(/[^0-9:\.]/g);if(C&&C.length>0)return null;I=I.split(":");if(I.length===0||I.length>3)return null;C=1;for(var y=0;I.length>0;){var k=I.pop();if(k===void 0)break;var F=Number(k);if(k===""||isNaN(F))return null;y+=F*C;C*=60}return y};
gPj=function(I,C,y,k){I=Math.max(y,I);C=Math.min(C,k-y);I+C>k?(y=k,I=y-C):y=I+C;return{start:I,end:y}};
vPY=function(I,C,y,k,F,z){I<y?I=y:I+F>k&&(I=k-F);C>k&&(C=k);C=Math.min(I+z,Math.max(I+F,C));return{start:I,end:C}};
WSL=function(I,C,y,k,F,z){C>k?C=k:C-F<y&&(C=y+F);I<y&&(I=y);I=Math.min(C-F,Math.max(C-z,I));return{start:I,end:C}};
dvK=function(I){return _.V("web_transcript_cue_id_killswitch")?String(I):"ytd-transcript-renderer_"+I};
xvB=function(I){return _.V("web_transcript_cue_id_killswitch")?!0:I.startsWith("ytd-transcript-renderer")};
qcB=function(I){var C=_.hU(),y;if(y=_.d5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var k;y=(k=y())==null?void 0:k.layoutId}else y=null;$2(C,y,I)};
mvY=function(I){I.style.height="auto";I.style.height=Math.min(I.scrollHeight||20,80)+"px"};
ZGR=function(I,C){return{listMutationCommand:{operations:{operations:[{insertItemSectionContent:{contents:[{chatUserTurnViewModel:{text:C}}],insertByPositionInSection:{sectionTargetId:I,position:"INSERTION_POSITION_LAST"}}}]}}}};
B6R=function(I){var C=_.hU(),y;y=(y=_.d5("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;$2(C,y,I)};
EPL=function(I){var C=_.hU(),y;y=(y=_.d5("yt.www.ads.eventcache.getLastCompanionData"))?(y=y())&&y.layoutId:null;$2(C,y,I)};
haH=function(I,C){C=C===void 0?!1:C;if(I.simpleText)I=[{text:I.simpleText}];else{var y;I=((y=I.runs)!=null?y:[]).map(function(k){return Object.assign({},k)})}if(C)for(C=_.T(I),y=C.next();!y.done;y=C.next())y.value.bold=!0;
return I};
UvK=function(I){var C=I.startEndTimeTemplate,y=I.startTimeUtcMillis;I=I.endTimeUtcMillis;if(C&&y&&I)return _.Ee(_.jkR(_.hS(C),Number(y),Number(I)))};
HG8=function(I,C){var y,k,F=I==null?void 0:(y=I.viewCount)==null?void 0:(k=y.videoViewCountRenderer)==null?void 0:k.shortViewCount;if(!C&&F)return F;var z,c;return I==null?void 0:(z=I.viewCount)==null?void 0:(c=z.videoViewCountRenderer)==null?void 0:c.viewCount};
t6L=function(I,C){var y=I==null?void 0:I.relativeDateText;return!C&&y?[y,!0]:[I==null?void 0:I.dateText,!1]};
JVH=function(I,C,y,k,F){k=k===void 0?!0:k;F=F===void 0?"":F;var z=HG8(I,C),c=_.T(t6L(I,C)),r=c.next().value;c=c.next().value;C=C?I==null?void 0:I.sponsorsOnlyFirstTimeLongText:I==null?void 0:I.sponsorsOnlyFirstTimeShortText;var w=[];y&&z&&w.push(z);!y&&c||!r||w.push(r);I=[].concat(_.Py(w),[C,I==null?void 0:I.stationName,I==null?void 0:I.rating,I?UvK(I):void 0,I==null?void 0:I.upNextProgramText,I==null?void 0:I.superTitleLink]).filter(function(L){return!!L});
y={runs:[]};for(z=0;z<I.length;z++)y.runs.push.apply(y.runs,_.Py(haH(I[z],k))),z<I.length-1&&y.runs.push({text:" "+F+" ",bold:k});return y};
OGj=function(I){if(I)return{runs:[{text:I,bold:!0}]}};
aqK=function(I){var C,y,k,F;if(I=I==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.results)==null?void 0:(F=k.results)==null?void 0:F.contents){var z,c;return(c=(z=I.find(function(r){return!!r.videoPrimaryInfoRenderer}))==null?void 0:z.videoPrimaryInfoRenderer)==null?void 0:c.updatedMetadataEndpoint}};
M6B=function(I,C){var y;return(y=I.sourceConfigs)==null?void 0:y.find(function(k){return k.videoId===C})};
bO=function(I){return I==="End of video"||I==="End of playlist"};
IKK=function(I){var C,y,k,F;return(C=I.getWatchNextResponse())==null?void 0:(y=C.contents)==null?void 0:(k=y.twoColumnWatchNextResults)==null?void 0:(F=k.playlist)==null?void 0:F.playlist};
CdY=function(I){var C,y,k,F,z,c;return(C=IKK(I))==null?void 0:(y=C.playlistButtons)==null?void 0:(k=y.menuRenderer)==null?void 0:(F=k.topLevelButtons)==null?void 0:(z=F[0])==null?void 0:(c=z.playlistLoopButtonRenderer)==null?void 0:c.playlistLoopStateEntityKey};
syy=function(I){var C=_.N().resolve(_.Gk),y;return(C=(y=_.l(C.getAutoplayEndpoint(),_.H$))==null?void 0:y.playlistId)&&C===I};
kHy=function(I,C,y,k,F){function z(){_.b$.cancelJob(Y2);var c=oij(C,y/I.getPlaybackRate()),r=c.hours,w=c.minutes;c=(c.seconds*1E3||6E4)/I.getPlaybackRate();I.setVideoTimeLeft(yRS(r,w));k&&I.getPlayerState()!==0&&I.setSleepTimerTimeLeft(yRS(r,w,!0));(r>0||w>0)&&!F&&(Y2=_.LM(_.b$,z,c))}
_.b$.cancelJob(Y2);Y2=_.LM(_.b$,z)};
FJH=function(I,C,y){function k(){_.b$.cancelJob(Gs);var F=oij(C,y),z=F.hours;F=F.minutes;var c=6E4/I.getPlaybackRate();if(z>0||F>0)I.setSleepTimerTimeLeft(yRS(z,F,!0)),Gs=_.LM(_.b$,k,c)}
_.b$.cancelJob(Gs);Gs=_.LM(_.b$,k)};
uuM=function(I,C){var y=I.getVolume()/(C/500),k=function(F){_.b$.cancelJob(fg);var z=Math.floor(F-y);I.setVolume(z,!1);z>0&&(fg=_.LM(_.b$,function(){k(z)},500))};
_.b$.cancelJob(fg);fg=_.LM(_.b$,function(){k(I.getVolume())})};
zuj=function(I,C){_.b$.cancelJob(fg);C&&I.syncVolume()};
TEK=function(){var I={openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:{responseText:{simpleText:_.PQ("SLEEP_TIMER_DISRUPTED")}}}}};_.N().resolve(_.ID).resolveCommand(I)};
cRM=function(I){return(I.getDuration()-I.getProgressState().current)*1E3};
oij=function(I,C){I=I+C-(0,_.JY)();if(I<=0)return{hours:0,minutes:0,seconds:0};var y=new euK(0,0,0,0,0,0,I);I=y.getHours();C=y.getMinutes();y=y.getSeconds();y!==0&&C++;C!==0&&C%60===0&&(I++,C=0);return{hours:I,minutes:C,seconds:y}};
yRS=function(I,C,y){return I>0&&C>0?y?_.PQ("TIME_LEFT_HOURS_MINUTES",{hours:I.toString(),minutes:C.toString()}):_.PQ("TIME_HOURS_MINUTES",{hours:I.toString(),minutes:C.toString()}):I>0?y?_.LA("TIME_LEFT_HOURS",I):_.LA("TIME_HOURS",I):y?_.PQ("TIME_LEFT_MINUTES",{minutes:C.toString()}):_.PQ("TIME_MINUTES",{minutes:C.toString()})};
rRP=function(I,C){if(I.timelyActions)return I.timelyActions.find(function(y){var k;return((k=_.l(y,SU))==null?void 0:k.cueRangeId)===C})};
iTj=function(I){var C=["expflag","debug_forced_internalcountrycode","internalcountrycode"];_.k6(I);I.keyMap_.forEach(function(y,k){_.qz(C,k)||this.remove(k)},I)};
w_Y=function(I,C){I.reloadContinuationItemsCommandMatcher=C};
_.Kg=function(I,C){I.insertBefore(C,I.childNodes[0]||null)};
ni8=function(I){if(I>=48&&I<=57||I>=96&&I<=106||I>=65&&I<=90||_.z6&&I==0)return!0;switch(I){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 _.u4;default:return!1}};
PdR=function(I){if(I.altKey&&!I.ctrlKey||I.metaKey||I.keyCode>=112&&I.keyCode<=123)return!1;if(ni8(I.keyCode))return!0;switch(I.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!_.u4;default:return I.keyCode<166||I.keyCode>183}};
euK=function(I,C,y,k,F,z,c){this.date=typeof I==="number"?new Date(I,C||0,y||1,k||0,F||0,z||0,c||0):new Date(I&&I.getTime?I.getTime():_.CF())};
_.s0(euK,_.p6);_.u=euK.prototype;_.u.getHours=function(){return this.date.getHours()};
_.u.getMinutes=function(){return this.date.getMinutes()};
_.u.getSeconds=function(){return this.date.getSeconds()};
_.u.getMilliseconds=function(){return this.date.getMilliseconds()};
_.u.getUTCDay=function(){return this.date.getUTCDay()};
_.u.getUTCHours=function(){return this.date.getUTCHours()};
_.u.getUTCMinutes=function(){return this.date.getUTCMinutes()};
_.u.getUTCSeconds=function(){return this.date.getUTCSeconds()};
_.u.getUTCMilliseconds=function(){return this.date.getUTCMilliseconds()};
_.u.setHours=function(I){this.date.setHours(I)};
_.u.setMinutes=function(I){this.date.setMinutes(I)};
_.u.setSeconds=function(I){this.date.setSeconds(I)};
_.u.setMilliseconds=function(I){this.date.setMilliseconds(I)};
_.u.setUTCHours=function(I){this.date.setUTCHours(I)};
_.u.setUTCMinutes=function(I){this.date.setUTCMinutes(I)};
_.u.setUTCSeconds=function(I){this.date.setUTCSeconds(I)};
_.u.setUTCMilliseconds=function(I){this.date.setUTCMilliseconds(I)};
_.u.add=function(I){_.p6.prototype.add.call(this,I);I.hours&&this.setUTCHours(this.date.getUTCHours()+I.hours);I.minutes&&this.setUTCMinutes(this.date.getUTCMinutes()+I.minutes);I.seconds&&this.setUTCSeconds(this.date.getUTCSeconds()+I.seconds)};
_.u.JSC$9111_toIsoString=function(I){var C=_.p6.prototype.JSC$9111_toIsoString.call(this,I);return I?C+"T"+_.Id(this.getHours(),2)+":"+_.Id(this.getMinutes(),2)+":"+_.Id(this.getSeconds(),2):C+"T"+_.Id(this.getHours(),2)+_.Id(this.getMinutes(),2)+_.Id(this.getSeconds(),2)};
_.u.equals=function(I){return this.getTime()==I.getTime()};
_.u.toString=function(){return this.JSC$9111_toIsoString()};
_.u.clone=function(){var I=new euK(this.date);I.firstDayOfWeek_=this.firstDayOfWeek_;I.firstWeekCutOffDay_=this.firstWeekCutOffDay_;return I};
_.LJY=function(I){return _.yE({type:"SET_IS_WATCH_ACTIVE",payload:{isWatchActive:I}})};
_.D_H=function(I){return _.yE({type:"SET_IS_WATCH_NARROW_WIDTH",payload:{isWatchNarrowWidth:I}})};
p_y=new _.J("imageTileRenderer");var QyB=new _.J("adGridCardCollectionViewModel");var NEy=new _.J("carouselTitleViewModel");var V0B=new _.J("ctaCarouselItemViewModel");var jyM=new _.J("textFieldViewModel");_.lKy=new _.J("engagementPanelHeaderShowNavigationButtonCommand");var X_L=new _.J("hideEngagementPanelScrimAction");var $_Y=new _.J("setActivePanelItemAction");var Ru8=new _.J("showEngagementPanelScrimAction");var bTH=new _.J("updateEngagementPanelAction");var YyK=new _.J("updateSearchInVideoResultsAction");var GH8=new _.J("transcriptCueGroupRenderer");var fKK=new _.J("transcriptCueRenderer");var Syy=new _.J("transcriptFooterRenderer");var KJj=new _.J("engagementPanelAdSubtitleRenderer");var ARY=new _.J("videoDescriptionFantasySectionViewModel");var gi8=new _.J("deleteClipEngagementPanelCommand");var viy=new _.J("loopCommand");var WJL=new _.J("changeCreatorEndscreenVisibilityCommand");var d_Y=new _.J("liveChatCallForQuestionsRenderer");var x_L=new _.J("updateTimedMarkersSyncObserverCommand");var SU=new _.J("timelyActionViewModel");var qyY=new _.J("timelyActionsOverlayViewModel");var m_P=new _.J("repeatChapterCommand");var ZTB=new _.J("watchPlayerOverflowMenuCommand");var BEM=new _.J("compositeVideoOverlayRenderer");var EiR=new _.J("sortFilterSubMenuRenderer");var huH=new _.J("switchListItemViewModel");var U_j=new _.J("inputComposerViewModel");var HTR=new _.J("transcriptEditSegmentCommand");var t0L=new _.J("transcriptUpdateSegmentTextCommand");var JRS=new _.J("transcriptSearchBoxRenderer");var OTM=new _.J("transcriptSegmentListRenderer");var aKB=new _.J("transcriptSegmentRenderer");_.M0S=new _.J("updateDateTextAction");var IEY=new _.J("updateTitleAction");var CrM=new _.J("updateViewershipAction");var sxy=new _.J("carouselLockupRenderer");var ony=new _.J("expandableVideoDescriptionBodyRenderer");var ybH=new _.J("videoDescriptionYouchatSectionViewModel");_.At=_.s8("kevlar_watch_page_horizontal_margin",24);_.kQH=_.s8("kevlar_watch_page_columns_top_padding",24);_.F3M=426+_.At*2;_.gN=_.s8("kevlar_watch_two_column_width_threshold",1E3);_.vM=_.At*2;_.WM=_.s8("kevlar_watch_secondary_width",402);_.uXM=_.s8("kevlar_watch_secondary_max_width",600);_.zej=_.s8("kevlar_watch_max_player_width",1280);_.T$M=_.s8("kevlar_watch_flexy_metadata_height",136);_.cbR=_.vM+310+_.At;_.eeL=_.vM+360+_.At;var rbK={PAUSE_CHAT:18};var iU8;var wIS;var dN=function(){return _.q.apply(this,arguments)||this};
_.R(dN,_.q);dN.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonViewModel:{component:"yt-button-view-model",properties:{scopingClassName:"[[is]]"}}},reuseComponents:!0}}};
dN.prototype.onEnabledChange=function(){if(this.data&&this.data.button){var I=_.l(this.data.button,_.Xi);I&&(I.state=this.enabled?"BUTTON_VIEW_MODEL_STATE_ACTIVE":"BUTTON_VIEW_MODEL_STATE_DISABLED",this.data=Object.assign({},this.data))}};
_.H1.Object.defineProperties(dN,{template:{configurable:!0,enumerable:!0,get:function(){if(wIS===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;iU8===void 0&&(iU8=document.createElement("template"));var k=iU8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);wIS=I}I=wIS;return I}}});
_.E([_.g(_.la),_.h("design:type",Object)],dN.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({selectorArgs:["data.enabledEntityKey"],selector:QkM,observer:"onEnabledChange"}),_.h("design:type",Boolean)],dN.prototype,"enabled",void 0);_.E([_.d(),_.h("design:type",Object)],dN.prototype,"data",void 0);dN=_.E([_.lT({is:"yt-disableable-button-view-model",noInjection:!0})],dN);var nnS;var PrP;var L3j=["transVert01","transVert02","transVert03"],DBK="transHorizLeft01 transHorizRight01 transHorizLeft02 transHorizRight02 transHorizLeft03 transHorizRight03 transHorizLeft04 transHorizRight04".split(" "),x2=function(){var I=_.q.apply(this,arguments)||this;I.emojiManager=_.$p;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.actionMap={"yt-create-user-reaction-animation":"createUserReactionAnimation"};I.reactionBuckets=[];I.noEmojiIdentifier="NO_EMOJI";return I};
_.R(x2,_.q);_.u=x2.prototype;_.u.isActiveChanged=function(){this.isActive||this.cleanupFountain()};
_.u.desktopFountainEmojiSizePxChanged=function(){_.CK(this.hostElement,{"--emoji-size":this.desktopFountainEmojiSizePx+"px"})};
_.u.createUserReactionAnimation=function(I){this.createEmojiAnimation(I,!0)};
_.u.cleanupFountain=function(){clearTimeout(this.emojiBucketTimerId);clearTimeout(this.emojiAnimationTimerId);var I;((I=this.data)==null?0:I.emojiFountainDataEntityKey)&&this.ytLiveChatReduxBehavior.dispatch(_.wJ("emojiFountainDataEntity",this.data.emojiFountainDataEntityKey,{}));[].concat(_.Py(this.emojiContainer.children)).forEach(function(C){C.remove()})};
_.u.detached=function(){this.cleanupFountain()};
_.u.onEmojiFountainDataEntityUpdate=function(){if(this.isActive){clearTimeout(this.emojiBucketTimerId);var I;this.reactionBuckets=_.Le.unsafeClone((I=this.emojiFountainData)==null?void 0:I.reactionBuckets)||[];this.processEmojiBucket(0)}};
_.u.processEmojiBucket=function(I){var C=this;if(this.reactionBuckets&&!(I>=this.reactionBuckets.length)){clearTimeout(this.emojiAnimationTimerId);var y=this.reactionBuckets[I];this.generateEmojiAnimations(y);if(I<this.reactionBuckets.length-1){var k;if(y==null?0:(k=y.duration)==null?0:k.seconds)this.emojiBucketTimerId=setTimeout(function(){C.processEmojiBucket(I+1)},Number(y.duration.seconds)*1E3)}}};
_.u.generateEmojiAnimations=function(I){var C=this,y=this.getRandomEmojiIdFromBucketWithOverride(I);if(y&&y!==this.noEmojiIdentifier){var k=0;I.targetEps?(k=this.linearInterpolateBounded(1,20,100,12,I.emojiSizeIndex||0),this.createEmojiAnimation(y,!1,I.emojiAnimationMs,k),k=this.getEmojiDelayMsFromTargetEps(I.targetEps)):(this.createEmojiAnimation(y),k=this.getEmojiDelayMsFromDistribution(I.intensityScore));this.emojiAnimationTimerId=setTimeout(function(){C.generateEmojiAnimations(I)},k)}};
_.u.getRandomEmojiIdFromBucketWithOverride=function(I){if(!(I&&I.reactionsData&&I.reactionsData.length&&I.totalReactions))return this.noEmojiIdentifier;for(var C=I.totalReactions,y=1,k=_.T(I.reactionsData),F=k.next();!F.done;F=k.next())F=F.value,(F.reactionWeightOverride||F.reactionWeightOverride===0)&&F.reactionCount&&(C-=F.reactionCount,y-=F.reactionWeightOverride);k=!0;y<0&&(k=!1,C=I.totalReactions,y=1);if(k&&y>0&&C===0)if(y===1){F=0;for(var z=_.T(I.reactionsData),c=z.next();!c.done;c=z.next())c=
c.value,c.reactionCount&&c.reactionCount>0&&F++;F=1/F;z=_.T(I.reactionsData);for(c=z.next();!c.done;c=z.next())c.value.reactionWeightOverride=F}else for(F=1/(1-y),z=_.T(I.reactionsData),c=z.next();!c.done;c=z.next())c=c.value,c.reactionWeightOverride&&(c.reactionWeightOverride*=F);F=Math.random();z=0;c=_.T(I.reactionsData);for(var r=c.next();!r.done;r=c.next())if(r=r.value,r.reactionCount&&(z=(r.reactionWeightOverride||r.reactionWeightOverride===0)&&k?z+r.reactionWeightOverride:z+y*r.reactionCount/
C,z>F&&(r.reactionCount--,I.totalReactions--,r=this.reactionItemToEmojiString(r),r!==this.noEmojiIdentifier)))return r;return this.noEmojiIdentifier};
_.u.reactionItemToEmojiString=function(I){if(I.unicodeEmojiId)return I.unicodeEmojiId;if(I.emoteId)return I.emoteId;if(I.videoReactionType)switch(I.videoReactionType){case "VIDEO_REACTION_TYPE_LIKE":return"yt-icons:like-filled"}return this.noEmojiIdentifier};
_.u.createEmojiAnimation=function(I,C,y,k){C=C===void 0?!1:C;this.lastEmojiRequestedForTesting=I;var F=I.startsWith("yt-icons:"),z=_.le(this.emojiManager,I);if(z||F){var c=document.createElement("emoji");c.classList.add("yt-emoji-fountain-view-model");c.classList.add(L3j[Math.floor(Math.random()*L3j.length)]);var r=document.createElement("div");r.classList.add("yt-emoji-fountain-view-model");r.classList.add("horizontal-container");r.classList.add(DBK[Math.floor(Math.random()*DBK.length)]);C?(y=document.createElement("div"),
y.classList.add("user-reaction-bubble"),y.classList.add("yt-emoji-fountain-view-model"),r.appendChild(y)):(y&&(c.style.animationDuration=y+"ms",r.style.animationDuration=y+"ms"),k&&(c.style.width=k+"px",c.style.height=k+"px"));F?(F=document.createElement("yt-icon"),F.polymerController.icon=I,k&&(F.style.width=k+"px",F.style.height=k+"px"),I=F):I=this.emojiManager.createEmoji(z,!1);I.classList.add("yt-emoji-fountain-view-model");r.appendChild(I);c.appendChild(r);this.emojiContainer.appendChild(c);
c.addEventListener("animationend",function(){c.remove()});
var w,L;if((w=this.data)==null?0:(L=w.loggingDirectives)==null?0:L.trackingParams)C=C?_.Dn(183501):_.Dn(183500),N6H(this.data.loggingDirectives.trackingParams,C),_.dRW(C);setTimeout(function(){c&&c.remove()},2E3)}};
_.u.getEmojiDelayMsFromDistribution=function(I){return Math.random()*(I||1)*1E3};
_.u.getEmojiDelayMsFromTargetEps=function(I){return Math.random()*2*(1/I)*1E3};
_.u.linearInterpolateBounded=function(I,C,y,k,F){F=Math.min(Math.max(F,I),y);return(C*(y-F)+k*(F-I))/(y-I)};
x2.prototype.onEmojiFountainDataEntityUpdate=x2.prototype.onEmojiFountainDataEntityUpdate;x2.prototype.desktopFountainEmojiSizePxChanged=x2.prototype.desktopFountainEmojiSizePxChanged;x2.prototype.isActiveChanged=x2.prototype.isActiveChanged;_.E([_.d(),_.h("design:type",_.jD)],x2.prototype,"emojiManager",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],x2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],x2.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],x2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],x2.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.emojiFountainDataEntityKey"],selector:function(I,C){return _.cg(I.entities,"emojiFountainDataEntity",C)}}),
_.h("design:type",Object)],x2.prototype,"emojiFountainData",void 0);_.E([_.d(),_.h("design:type",Boolean)],x2.prototype,"isActive",void 0);_.E([_.FI("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x2.prototype,"isActiveChanged",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],x2.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",String)],x2.prototype,"lastEmojiRequestedForTesting",void 0);
_.E([_.d({value:function(){return _.s8("desktop_fountain_emoji_size_px",20)}}),
_.h("design:type",Number)],x2.prototype,"desktopFountainEmojiSizePx",void 0);_.E([_.FI("desktopFountainEmojiSizePx"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x2.prototype,"desktopFountainEmojiSizePxChanged",null);_.E([_.z$("#emoji-container"),_.h("design:type",HTMLElement)],x2.prototype,"emojiContainer",void 0);
_.E([_.FI("emojiFountainData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],x2.prototype,"onEmojiFountainDataEntityUpdate",null);x2=_.E([_.lT({disableElementRegistration:!0,is:"yt-emoji-fountain-view-model",noInjection:!0})],x2);
_.Z(x2,"yt-emoji-fountain-view-model",function(){if(PrP===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;nnS===void 0&&(nnS=document.createElement("template"));var k=nnS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);PrP=I}I=PrP;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var pIK;var QxY;var qt=function(){return _.q.apply(this,arguments)||this};
_.R(qt,_.q);qt.prototype.onChoiceChanged=function(){this.data&&_.CK(this.hostElement,{"--yt-live-chat-poll-choice-vote-bar-transform":"translateX("+(100*(this.data.voteRatio||0)-100+"%)")})};
qt.prototype.onChoiceChanged=qt.prototype.onChoiceChanged;_.E([_.d(),_.h("design:type",Object)],qt.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qt.prototype,"onChoiceChanged",null);qt=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-banner-poll-choice"})],qt);
_.Z(qt,"yt-live-chat-banner-poll-choice",function(){if(QxY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;pIK===void 0&&(pIK=document.createElement("template"));var k=pIK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);QxY=I}I=QxY;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var N$H;var VpL;var mi=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework_with_live");I.small=!1;return I};
_.R(mi,_.q);mi.prototype.computeIsSmall=function(){var I;return((I=this.buttonOverrides)==null?void 0:I.size)==="S"};
mi.prototype.computeId=function(){return this.data&&this.data.targetId};
_.E([_.g(_.Xk.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],mi.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",String)],mi.prototype,"id",void 0);_.E([_.d(),_.h("design:type",Object)],mi.prototype,"buttonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],mi.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mi.prototype,"modern",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsSmall(buttonOverrides)"}),_.h("design:type",Object)],mi.prototype,"small",void 0);mi=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-button"})],mi);
_.Z(mi,"yt-live-chat-button",function(){if(VpL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;N$H===void 0&&(N$H=document.createElement("template"));var k=N$H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);VpL=I}I=VpL;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var jxL;var lEM;var Z3=function(){var I=_.q.apply(this,arguments)||this;I.inCollapsedBanner=!1;I.buttonOverrides={size:"S",style:"mono-inverse",iconPosition:"icon-only"};I.questionButtonOverrides={style:"mono",type:"filled"};return I};
_.R(Z3,_.q);_.u=Z3.prototype;_.u.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]]"}}}}}};
_.u.onContextMenuButtonClick=function(I){this.ytLiveChatItemBehavior.showContextMenu(I)};
_.u.onYtRendererstamperFinished=function(){this.menuButton=_.f(this.hostElement).querySelector("#menu-button")};
_.u.dataChanged=function(){var I,C;if((C=_.l((I=this.data)==null?void 0:I.overflowMenuButton,_.fZ))==null?0:C.command)this.data.contextMenuEndpoint=_.l(this.data.overflowMenuButton,_.fZ).command};
_.u.onButtonClick=function(){var I,C=_.l((I=this.data)==null?void 0:I.askQuestionButton,_.fZ);if(C){if(C.trackingParams&&(I=_.nv(C.trackingParams))){var y=_.Si();y&&_.EN(y,I)}_.k3(this.hostElement,"innertube-command",C.command)}};
Z3.prototype.onYtRendererstamperFinished=Z3.prototype.onYtRendererstamperFinished;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Z3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],Z3.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],Z3.prototype,"ytLiveChatItemBehavior",void 0);_.E([_.d({observer:"dataChanged"}),_.h("design:type",Object)],Z3.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Z3.prototype,"inCollapsedBanner",void 0);_.E([_.d(),_.h("design:type",Object)],Z3.prototype,"buttonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],Z3.prototype,"questionButtonOverrides",void 0);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Z3.prototype,"onYtRendererstamperFinished",null);
Z3=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-call-for-questions-renderer"})],Z3);
_.Z(Z3,"yt-live-chat-call-for-questions-renderer",function(){if(lEM===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;jxL===void 0&&(jxL=document.createElement("template"));var k=jxL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);lEM=I}I=lEM;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var XIR={};XIR.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 I=this;window.requestAnimationFrame(function(){I.restoreFocusNode_||(I.restoreFocusNode_=document.activeElement);var C=_.ZMd(I.hostElement);C.length&&C[C.length-1].focus()})},
isAttachedChanged_:function(I,C){I?this.focusChild_():C&&this.restoreFocus_()},
hiddenChanged_:function(){this.hidden?this.restoreFocus_():this.focusChild_()},
restoreFocus_:function(){this.restoreFocusNode_&&(this.restoreFocusNode_.focus(),this.restoreFocusNode_=null)},
onFocus_:function(I){this.hidden||_.qc(I).indexOf(this.hostElement)!==-1||(I.stopPropagation(),this.focusChild_())}};var $BP;var ReR;var BM=function(){return _.q.apply(this,arguments)||this};
_.R(BM,_.q);BM.prototype.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm_button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.cancelButton":{id:"cancel_button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
BM.prototype.onClick=function(I){I.target!==this.confirmButton&&I.target!==this.cancelButton&&(this.hidden=!0)};
_.E([_.z$("#confirm_button"),_.h("design:type",Object)],BM.prototype,"confirmButton",void 0);_.E([_.z$("#cancel_button"),_.h("design:type",Object)],BM.prototype,"cancelButton",void 0);_.E([_.d(),_.h("design:type",bUB)],BM.prototype,"data",void 0);_.E([_.d({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],BM.prototype,"hidden",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],BM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(XIR.YtLiveChatDialogBehavior),_.h("design:type",Object)],BM.prototype,"ytLiveChatDialogBehavior",void 0);BM=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-dialog-renderer",noInjection:!0})],BM);
var bUB=_.Z(BM,"yt-live-chat-dialog-renderer",function(){if(ReR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;$BP===void 0&&($BP=document.createElement("template"));var k=$BP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ReR=I}I=ReR;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var YTB;var GQM,fEL=function(){if(GQM!==void 0)return GQM;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;YTB===void 0&&(YTB=document.createElement("template"));var k=YTB;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return GQM=I};var STy;var K3B;var EY=function(){var I=_.q.apply(this,arguments)||this;I.tooltip=null;I.data=null;I.id="";I.active=!1;I.icon="";I.disabled=!1;I.showTooltip=!1;I.useToggledActiveState=!0;I.actionMap={"yt-live-chat-actions":"handleLiveChatActions"};return I};
_.R(EY,_.q);_.u=EY.prototype;
_.u.dataChanged=function(){var I;((I=this.data)==null?0:I.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,_.IH)(this.tooltip).textContent=this.data.tooltip):this.tooltip&&(this.hostElement.removeChild(this.tooltip),this.tooltip=null);var C;if((C=this.data)==null?0:C.disabled)this.disabled=!0};
_.u.computeId=function(I){return I};
_.u.computeIcon=function(I,C){if(!I)return"";if(this.useToggledActiveState)return"yt-icons:"+I.toLowerCase();var y,k;return C&&((y=this.data)==null?0:(k=y.toggledIcon)==null?0:k.iconType)?"yt-icons:"+this.data.toggledIcon.iconType.toLowerCase():"yt-icons:"+I.toLowerCase()};
_.u.logPDGEntryPoint=function(){_.O0X(_.z8("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")};
_.u.immediatelyShowTooltip=function(){var I=_.f(this.hostElement).querySelector("#tooltip");I.animationDelay=0;I.animationConfig={entry:[{name:"fade-in-animation",timing:{}}]};I.show()};
_.u.disabledChanged=function(){this.disabled?this.hostElement.setAttribute("aria-disabled",""):this.hostElement.removeAttribute("aria-disabled")};
_.u.onClick=function(I){var C;((C=this.data)==null?0:C.disabled)?this.showTooltip&&this.immediatelyShowTooltip():(this.active=!this.active,this.tooltip&&(this.tooltip.hide(),this.maybeUpdateTooltipText()),this.active&&this.data&&(this.ytRendererBehavior.logExplicitClick(this.data),this.id==="product-picker"&&(this.logPDGEntryPoint(),I.stopPropagation())),this.id!=="creator"&&this.id!=="product-picker"||this.removeBubble(),_.k3(this.hostElement,"yt-live-chat-icon-toggle-button-renderer-toggle",{targetId:this.id}))};
_.u.computeShowTooltip=function(I,C){return!!(I&&I.tooltip&&C)};
_.u.maybeUpdateTooltipText=function(){var I=this,C;if((C=this.data)==null?0:C.tooltip){var y=this.active&&this.data.activeTooltip?this.data.activeTooltip:this.data.tooltip;setTimeout(function(){(0,_.IH)(I.tooltip).textContent=y},250)}};
_.u.handleLiveChatActions=function(I){var C=this;I.length&&(this.id!=="creator"&&this.id!=="product-picker"||I.forEach(function(y){(y=C.get("addLiveChatTickerItemAction.item.liveChatTickerPaidMessageItemRenderer",y))&&y.durationSec===y.fullDurationSec&&C.startBubble(C.colorFromDecimal(y.startBackgroundColor))}))};
_.u.onAnimationEnd=function(){this.hostElement.removeAttribute("bubble")};
_.u.startBubble=function(I){_.CK(this.hostElement,{"--yt-live-chat-monetization-button-glow":I});this.hostElement.setAttribute("bubble","")};
_.u.removeBubble=function(){this.hostElement.removeAttribute("bubble")};
_.u.colorFromDecimal=function(I){typeof I==="string"&&(I=Number(I));return"rgba("+[I>>16&255,I>>8&255,I&255,(I>>24&255)/255].join()+")"};
EY.prototype.onAnimationEnd=EY.prototype.onAnimationEnd;EY.prototype.disabledChanged=EY.prototype.disabledChanged;EY.prototype.dataChanged=EY.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],EY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],EY.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Xk.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],EY.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],EY.prototype,"data",void 0);_.E([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],EY.prototype,"id",void 0);_.E([_.d({notify:!0,reflectToAttribute:!0}),_.h("design:type",Object)],EY.prototype,"active",void 0);
_.E([_.d({readOnly:!0,computed:"computeIcon(data.icon.iconType, active)"}),_.h("design:type",Object)],EY.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],EY.prototype,"disabled",void 0);_.E([_.d({computed:"computeShowTooltip(data, disabled)"}),_.h("design:type",Object)],EY.prototype,"showTooltip",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],EY.prototype,"useToggledActiveState",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EY.prototype,"dataChanged",null);_.E([_.FI("disabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EY.prototype,"disabledChanged",null);_.E([_.km("animationend"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],EY.prototype,"onAnimationEnd",null);
EY=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-icon-toggle-button-renderer",noInjection:!0})],EY);
_.Z(EY,"yt-live-chat-icon-toggle-button-renderer",function(){if(K3B===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;STy===void 0&&(STy=document.createElement("template"));var k=STy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);K3B=I}I=K3B;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var AbL;var gnR;var ht=function(){return _.q.apply(this,arguments)||this};
_.R(ht,_.q);ht.prototype.configureRendererStamper=function(){return{"data.helpButton":{id:"help-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.closeButton":{id:"close-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.E([_.d(),_.h("design:type",Object)],ht.prototype,"data",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ht.prototype,"ytRendererstamperBehavior",void 0);ht=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-message-input-prompt-header-renderer"})],ht);
_.Z(ht,"yt-live-chat-message-input-prompt-header-renderer",function(){if(gnR===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;AbL===void 0&&(AbL=document.createElement("template"));var k=AbL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);gnR=I}I=gnR;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var vnY;var W3R;var dBR;var xBR;var qTL;var mBM;var UY=function(){return _.q.apply(this,arguments)||this};
_.R(UY,_.q);_.E([_.d(),_.h("design:type",Object)],UY.prototype,"data",void 0);UY=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-message-subtext-renderer",noInjection:!0})],UY);
_.Z(UY,"yt-live-chat-message-subtext-renderer",function(){if(mBM===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;qTL===void 0&&(qTL=document.createElement("template"));var k=qTL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);mBM=I}I=mBM;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var HM=function(){var I=_.q.apply(this,arguments)||this;I.subtextOnBottom=!1;I.buttonOverrides={style:"mono",type:"tonal"};return I};
_.R(HM,_.q);HM.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:{component:"yt-button-renderer",properties:{overrides:"[[buttonOverrides]]"}}}},"data.subtext":{id:"subtext",mapping:{messageSubtextRenderer:"yt-live-chat-message-subtext-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],HM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HM.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],HM.prototype,"subtextOnBottom",void 0);_.E([_.d(),_.h("design:type",Object)],HM.prototype,"buttonOverrides",void 0);
HM=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-message-renderer",noInjection:!0})],HM);
_.Z(HM,"yt-live-chat-message-renderer",function(){if(xBR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;dBR===void 0&&(dBR=document.createElement("template"));var k=dBR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);xBR=I}I=xBR;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var ZUy;var B$j;var tt=function(){var I=_.q.apply(this,arguments)||this;I.isRemovable=!1;I.hasPrefilledText=!1;I.isInputDirty=!1;I.overCharacterLimit=!1;I.underCharacterLimit=!1;I.showErrorMessage=!1;return I};
_.R(tt,_.q);_.u=tt.prototype;_.u.computeId=function(){return this.data.id};
_.u.computeInputData=function(){return this.data.inputData};
_.u.computeHasPrefilledText=function(){return this.data.hasPrefilledText};
_.u.computeIsRemovable=function(){return!!this.data&&!!this.data.isRemovable};
_.u.computeShowErrorMessage=function(){return this.data&&this.data.charCountErrorText?this.overCharacterLimit||this.underCharacterLimit&&this.isInputDirty:!1};
_.u.getLiveChatRichMessageInput=function(){return _.f(this.hostElement).querySelector("#input").liveChatRichMessageInput};
_.u.clearInput=function(){_.f(this.hostElement).querySelector("#input").setLiveChatRichMessageInput(null)};
_.u.computeCharactersRemaining=function(){if(this.data&&this.data.maxCharacterLimit!==void 0&&this.characterCount!==void 0)return this.data.maxCharacterLimit-this.characterCount};
_.u.computeOverCharacterLimit=function(){return this.charactersRemaining!==void 0&&this.charactersRemaining<0};
_.u.computeUnderCharacterLimit=function(){return this.hasPrefilledText?!1:!!this.data&&this.characterCount!==void 0&&this.data.minCharacterLimit>this.characterCount};
_.u.handleTextInputCharCountChanged=function(I){I=I.detail&&I.detail.characterCount;I!==void 0&&(this.characterCount=I,I!==0&&(this.isInputDirty=!0))};
_.u.onInputFocusOut=function(){this.isInputDirty=!0};
_.u.onClickCloseButton=function(){_.k3(this.hostElement,"yt-live-chat-poll-editor-input-closed",{id:this.id})};
tt.prototype.handleTextInputCharCountChanged=tt.prototype.handleTextInputCharCountChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tt.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tt.prototype,"data",void 0);_.E([_.d({computed:"computeId(data.id)"}),_.h("design:type",String)],tt.prototype,"id",void 0);_.E([_.d({computed:"computeInputData(data.inputData)"}),_.h("design:type",Object)],tt.prototype,"inputData",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeIsRemovable(data.isRemovable)"}),_.h("design:type",Object)],tt.prototype,"isRemovable",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasPrefilledText(data.hasPrefilledText)"}),_.h("design:type",Object)],tt.prototype,"hasPrefilledText",void 0);_.E([_.d({computed:"computeCharactersRemaining(data.maxCharacterLimit, characterCount)"}),_.h("design:type",Number)],tt.prototype,"charactersRemaining",void 0);
_.E([_.d(),_.h("design:type",Number)],tt.prototype,"characterCount",void 0);_.E([_.d(),_.h("design:type",Object)],tt.prototype,"isInputDirty",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeOverCharacterLimit(charactersRemaining)"}),_.h("design:type",Object)],tt.prototype,"overCharacterLimit",void 0);_.E([_.d({computed:"computeUnderCharacterLimit(data, characterCount, hasPrefilledText)"}),_.h("design:type",Object)],tt.prototype,"underCharacterLimit",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeShowErrorMessage(data.charCountErrorText, overCharacterLimit, isInputDirty, characterCount)"}),_.h("design:type",Object)],tt.prototype,"showErrorMessage",void 0);_.E([_.km("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],tt.prototype,"handleTextInputCharCountChanged",null);
tt=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-input",noInjection:!0})],tt);
_.Z(tt,"yt-live-chat-poll-editor-input",function(){if(B$j===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;ZUy===void 0&&(ZUy=document.createElement("template"));var k=ZUy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);B$j=I}I=B$j;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var EnK;var heL;var UBM={minPollOptions:2,maxPollOptions:4,minPollOptionChars:1,maxPollOptionChars:35,maxPollQuestionChars:100,optionPlaceholderText:{simpleText:""},questionPlaceholderText:{simpleText:""},customOptionPlaceholderText:[],pollOptionData:{}},Jt=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_button_rework_with_live");I.closeButtonOverrides={iconPosition:"icon-only"};I.startButtonOverrides={style:"mono",type:"filled"};I.addOptionButtonOverrides={style:"mono",type:"text"};return I};
_.R(Jt,_.q);_.u=Jt.prototype;
_.u.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"}}}}};
_.u.dataChanged=function(){this.isValidPoll=this.getIsValidPoll();var I;_.l((I=this.data)==null?void 0:I.startButton,_.fZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.u.computeId=function(){return this.data&&this.data.id||""};
_.u.computeOverQuestionCharacterLimit=function(){return this.pollEditorInfoWithDefaults?this.pollQuestionCharacterCount>this.pollEditorInfoWithDefaults.maxPollQuestionChars:!1};
_.u.computeCurrentNumPollOptions=function(){return this.pollOptionsData.length};
_.u.computeHasMaxNumPollOptions=function(){return!this.pollEditorInfoWithDefaults||this.currentNumPollOptions>=this.pollEditorInfoWithDefaults.maxPollOptions};
_.u.computeShowQuestionErrorMessage=function(){return!!this.pollEditorInfoWithDefaults&&this.overQuestionCharacterLimit&&!!this.pollEditorInfoWithDefaults.pollQuestionCharCountErrorText};
_.u.shouldInitializePollChanged=function(){if(this.shouldInitializePoll)for(var I=0;I<this.pollEditorInfoWithDefaults.minPollOptions;I++)this.addPollOptionData()};
_.u.getIsValidPoll=function(){var I=this;if(!this.pollEditorInfoWithDefaults)return!1;var C=this.pollEditorInfoWithDefaults,y=C.minPollOptionChars,k=C.maxPollOptionChars,F=C.customOptionPlaceholderText;if(this.pollQuestionCharacterCount>C.maxPollQuestionChars)return!1;C=_.f(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input");return Array.from(C).every(function(z,c){z=z.characterCount;!z&&F[c]&&(z=I.ytRendererBehavior.getSimpleString(F[c]).length);return z!==void 0&&z>=y&&z<=k})};
_.u.isValidPollChanged=function(){var I;_.l((I=this.data)==null?void 0:I.startButton,_.fZ)&&this.set("data.startButton.buttonRenderer.isDisabled",!this.isValidPoll)};
_.u.addPollOptionData=function(){var I=this.pollEditorInfoWithDefaults,C=I.maxPollOptionChars,y=I.optionPlaceholderText,k=I.customOptionPlaceholderText,F=I.pollOptionData;this.currentNumPollOptions>=I.maxPollOptions||(I={liveChatPollOptionInput:{inputData:{placeholder:k[this.currentNumPollOptions]||y,maxCharacterLimit:C},maxCharacterLimit:C,minCharacterLimit:I.minPollOptionChars,hasPrefilledText:!!k[this.currentNumPollOptions],isRemovable:this.currentNumPollOptions>=I.minPollOptions}},F.charCountErrorText&&
(I.liveChatPollOptionInput.charCountErrorText=F.charCountErrorText),F.charsRemainingAltLabel&&(I.liveChatPollOptionInput.charsRemainingAltLabel=F.charsRemainingAltLabel),F.removeOptionAltText&&(I.liveChatPollOptionInput.removeOptionAltText=F.removeOptionAltText),this.push("pollOptionsData",I),F=Array.from(_.f(_.f(this.hostElement).querySelector("#poll-options")).children),F.forEach(function(z,c){z.polymerController.set("data.id",c)}),_.f(F[F.length-1]).querySelector("#input").focus())};
_.u.getPollOptionInputValues=function(){var I=this,C=[],y=_.f(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input"),k=this.get("data.pollEditorInfo.customOptionPlaceholderText")||[];Array.from(y).forEach(function(F,z){var c=null;F=F.getLiveChatRichMessageInput();var r;(F==null?0:(r=F.textSegments)==null?0:r.length)?c=_.GN(F):k[z]&&(c=I.formattedStringToLiveChatRichMessageInput(k[z]));C.push(c)});
return C};
_.u.requestCreateAndStartPoll=function(I){var C=this.getPollOptionInputValues();if(!C.some(function(k){return!k})){C={optionText:C};
var y=_.f(_.f(this.hostElement).querySelector("#poll-question")).firstChild;y&&y.liveChatRichMessageInput&&(C.questionText=_.GN(y.liveChatRichMessageInput));_.Tg(this.hostElement,[I,C])}};
_.u.selectedChanged=function(){if(this.selected){var I=_.f(_.f(this.hostElement).querySelector("#start-button")).firstElementChild;if(I){var C;(C=_.f(I).querySelector("#button")||_.Oq(I).querySelector("button"))==null||C.focus()}}};
_.u.handleTextInputChanged=function(I){var C;((C=I.target)==null?void 0:C.id)==="poll-question-input"&&(this.pollQuestionCharacterCount=I.detail.characterCount);this.isValidPoll=this.getIsValidPoll()};
_.u.handleStartButtonAction=function(I){I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),(I=I.detail.args[1])&&this.requestCreateAndStartPoll(I))};
_.u.handleServiceRequestSent=function(){this.createPollRequestInFlight=!0};
_.u.handleServiceRequestCompleted=function(I){this.createPollRequestInFlight=!1;(I=I.detail&&I.detail.data)&&I.success&&(_.k3(this.hostElement,"picker-cancelled"),_.Fe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels"))};
_.u.onCloseClick=function(){_.k3(this.hostElement,"picker-cancelled");_.Fe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.onAddOptionButtonClick=function(){this.addPollOptionData();this.isValidPoll=this.getIsValidPoll()};
_.u.handlePollEditorInputClosed=function(I){var C=this.pollOptionsData.findIndex(function(y){return y.liveChatPollOptionInput.id===I.detail.id});
this.splice("pollOptionsData",C,1);this.isValidPoll=this.getIsValidPoll()};
_.u.onPickerCancelled=function(){this.reset()};
_.u.reset=function(){if(this.pollEditorInfoWithDefaults){for(;this.currentNumPollOptions>this.pollEditorInfoWithDefaults.minPollOptions;)this.pop("pollOptionsData");var I=_.f(_.f(this.hostElement).querySelector("#poll-question")).firstChild;I&&I.setLiveChatRichMessageInput(null);if(I=_.f(this.hostElement).querySelectorAll("yt-live-chat-poll-editor-input")){I=_.T(Array.from(I));for(var C=I.next();!C.done;C=I.next())C.value.clearInput()}this.isValidPoll=this.getIsValidPoll()}};
_.u.formattedStringToLiveChatRichMessageInput=function(I){return I.simpleText?{text_segments:[I.simpleText]}:{text_segments:I.runs}};
_.H1.Object.defineProperties(Jt.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(UBM,this.data.pollEditorInfo)}},
shouldInitializePoll:{configurable:!0,enumerable:!0,get:function(){return!!this.pollEditorInfoWithDefaults&&!this.pollOptionsData.length}}});
Jt.prototype.onPickerCancelled=Jt.prototype.onPickerCancelled;Jt.prototype.handlePollEditorInputClosed=Jt.prototype.handlePollEditorInputClosed;Jt.prototype.handleServiceRequestCompleted=Jt.prototype.handleServiceRequestCompleted;Jt.prototype.handleServiceRequestSent=Jt.prototype.handleServiceRequestSent;Jt.prototype.handleTextInputChanged=Jt.prototype.handleTextInputChanged;Jt.prototype.selectedChanged=Jt.prototype.selectedChanged;Jt.prototype.isValidPollChanged=Jt.prototype.isValidPollChanged;
Jt.prototype.shouldInitializePollChanged=Jt.prototype.shouldInitializePollChanged;Jt.prototype.dataChanged=Jt.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Jt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Jt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Jt.prototype,"modern",void 0);
_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"closeButtonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"startButtonOverrides",void 0);_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"addOptionButtonOverrides",void 0);_.E([_.d({computed:"computeId(data.id)",reflectToAttribute:!0}),_.h("design:type",String)],Jt.prototype,"id",void 0);_.E([_.d({value:function(){return[]}}),
_.h("design:type",Array)],Jt.prototype,"pollOptionsData",void 0);_.E([_.v("pollEditorInfoWithDefaults"),_.h("design:type",Object),_.h("design:paramtypes",[])],Jt.prototype,"pollQuestionData",null);_.E([_.d({value:0}),_.h("design:type",Number)],Jt.prototype,"pollQuestionCharacterCount",void 0);_.E([_.v("pollEditorInfoWithDefaults.maxPollQuestionChars","pollQuestionCharacterCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],Jt.prototype,"pollQuestionCharactersRemaining",null);
_.E([_.d({reflectToAttribute:!0,computed:"computeOverQuestionCharacterLimit(pollQuestionCharacterCount, pollEditorInfoWithDefaults)"}),_.h("design:type",Boolean)],Jt.prototype,"overQuestionCharacterLimit",void 0);_.E([_.v("data.pollEditorInfo"),_.h("design:type",Object),_.h("design:paramtypes",[])],Jt.prototype,"pollEditorInfoWithDefaults",null);_.E([_.d({computed:"computeCurrentNumPollOptions(pollOptionsData.splices)",value:0}),_.h("design:type",Number)],Jt.prototype,"currentNumPollOptions",void 0);
_.E([_.d({computed:"computeHasMaxNumPollOptions(pollEditorInfoWithDefaults, currentNumPollOptions)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Jt.prototype,"hasMaxNumPollOptions",void 0);_.E([_.v("pollEditorInfoWithDefaults","pollOptionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Jt.prototype,"shouldInitializePoll",null);_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"isValidPoll",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Jt.prototype,"createPollRequestInFlight",void 0);_.E([_.d(),_.h("design:type",Object)],Jt.prototype,"selected",void 0);_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeShowQuestionErrorMessage(pollEditorInfoWithDefaults, overQuestionCharacterLimit)"}),_.h("design:type",Boolean)],Jt.prototype,"showQuestionErrorMessage",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"dataChanged",null);_.E([_.FI("shouldInitializePoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"shouldInitializePollChanged",null);_.E([_.FI("isValidPoll"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"isValidPollChanged",null);
_.E([_.FI("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"selectedChanged",null);_.E([_.km("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Jt.prototype,"handleTextInputChanged",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"handleServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Jt.prototype,"handleServiceRequestCompleted",null);
_.E([_.km("yt-live-chat-poll-editor-input-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Jt.prototype,"handlePollEditorInputClosed",null);_.E([_.km("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Jt.prototype,"onPickerCancelled",null);Jt=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-poll-editor-panel-renderer",noInjection:!0})],Jt);
_.Z(Jt,"yt-live-chat-poll-editor-panel-renderer",function(){if(heL===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;EnK===void 0&&(EnK=document.createElement("template"));var k=EnK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);heL=I}I=heL;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var HUP;var tpM;var OY=function(){return _.q.apply(this,arguments)||this};
_.R(OY,_.q);OY.prototype.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
OY.prototype.onClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.H1.Object.defineProperties(OY.prototype,{itemId:{configurable:!0,enumerable:!0,get:function(){var I,C;return(I=this.data)==null?void 0:(C=I.title)==null?void 0:C.content}},
hasPromotion:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.hasBlueDot)}},
innertubeCommand:{configurable:!0,enumerable:!0,get:function(){var I;return _.Rj((I=this.data)==null?void 0:I.onTapCommand)}}});
_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],OY.prototype,"ytEndpointBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],OY.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OY.prototype,"itemId",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],OY.prototype,"hasPromotion",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],OY.prototype,"innertubeCommand",null);OY=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-item-view-model",noInjection:!0})],OY);
_.Z(OY,"yt-live-chat-product-picker-panel-item-view-model",function(){if(tpM===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;HUP===void 0&&(HUP=document.createElement("template"));var k=HUP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);tpM=I}I=tpM;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var Jbj;var OUR;var a2=function(){var I=_.q.apply(this,arguments)||this;I.id="product-picker";I.selected=!1;I.closeButtonId="close-button";I.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return I};
_.R(a2,_.q);_.u=a2.prototype;_.u.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{liveChatProductPickerPanelItemViewModel:"yt-live-chat-product-picker-panel-item-view-model"}}}};
_.u.observeSelected=function(){this.selected&&this.hostElement.focus();var I=_.f(this.hostElement).querySelectorAll("yt-live-chat-product-picker-panel-item-view-model");I.length&&I[0].focus()};
_.u.onCloseBuyFlow=function(){_.k3(this.hostElement,"picker-cancelled")};
_.u.onCloseClick=function(){_.k3(this.hostElement,"picker-cancelled");var I;((I=this.data)==null?0:I.closeButton)&&this.ytRendererBehavior.logExplicitClick(_.l(this.data.closeButton,_.Xi))};
_.u.onCloseEngageWithAudienceEditorPanels=function(){_.k3(this.hostElement,"picker-cancelled")};
a2.prototype.observeSelected=a2.prototype.observeSelected;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],a2.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],a2.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],a2.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],a2.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],a2.prototype,"id",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],a2.prototype,"selected",void 0);_.E([_.d(),_.h("design:type",Object)],a2.prototype,"closeButtonId",void 0);_.E([_.FI("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],a2.prototype,"observeSelected",null);
a2=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-product-picker-panel-view-model",noInjection:!0})],a2);
_.Z(a2,"yt-live-chat-product-picker-panel-view-model",function(){if(OUR===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Jbj===void 0&&(Jbj=document.createElement("template"));var k=Jbj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);OUR=I}I=OUR;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var aEH;var MpL;var Mt=function(){var I=_.q.apply(this,arguments)||this;I.iconId="";I.icon="";I.disabled=!1;I.systemIcons=_.V("kevlar_system_icons");return I};
_.R(Mt,_.q);_.u=Mt.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","-1")};
_.u.computeIconId=function(I){return I&&I.icon&&I.icon.iconType?I.icon.iconType.toLowerCase():""};
_.u.computeIcon=function(I){return I&&I.icon&&I.icon.iconType?(I=I.icon.iconType.toLowerCase(),(I.toLowerCase()=="gift"?"yt-sys-icons":"yt-icons")+":"+I):""};
_.u.computeDisabled=function(I){return!!I};
_.u.computeCommand=function(I,C){return C?void 0:I};
_.u.computeTooltip=function(I,C){return C&&I?I:""};
_.u.onClick=function(){this.data&&!this.disabled&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],Mt.prototype,"ytEndpointBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mt.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mt.prototype,"data",void 0);_.E([_.d({computed:"computeIconId(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Mt.prototype,"iconId",void 0);
_.E([_.d({computed:"computeIcon(data)",reflectToAttribute:!0}),_.h("design:type",Object)],Mt.prototype,"icon",void 0);_.E([_.d({computed:"computeDisabled(data.isDisabled)",reflectToAttribute:!0}),_.h("design:type",Object)],Mt.prototype,"disabled",void 0);_.E([_.d({computed:"computeCommand(data.command, disabled)"}),_.h("design:type",Object)],Mt.prototype,"command",void 0);_.E([_.d({computed:"computeTooltip(data.disabledTooltip, disabled)"}),_.h("design:type",String)],Mt.prototype,"tooltip",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mt.prototype,"systemIcons",void 0);Mt=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-product-button-renderer",noInjection:!0})],Mt);
_.Z(Mt,"yt-live-chat-product-button-renderer",function(){if(MpL===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-live-chat-product-button-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.live_chat.yt_live_chat_product_button_renderer.yt.live.chat.product.button.renderer.css.js--\x3e<a id="endpoint" class="yt-simple-endpoint style-scope yt-live-chat-product-button-renderer" data="[[command]]" title$="[[tooltip]]">\n  <tp-yt-paper-item id="container" disabled$="[[disabled]]" on-click="onClick" class="style-scope yt-live-chat-product-button-renderer">\n    <div id="icon" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-icon icon="[[icon]]" class="style-scope yt-live-chat-product-button-renderer"></yt-icon>\n      <span hidden="[[!data.iconBadgeText]]" id="icon-badge-text" class="style-scope yt-live-chat-product-button-renderer">[[data.iconBadgeText]]</span>\n    </div>\n    <div id="text" class="style-scope yt-live-chat-product-button-renderer">\n      <yt-formatted-string text="[[data.text]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      <div id="subtext" class="style-scope yt-live-chat-product-button-renderer">\n        <yt-formatted-string text="[[data.subtext]]" class="style-scope yt-live-chat-product-button-renderer"></yt-formatted-string>\n      </div>\n    </div>\n  </tp-yt-paper-item>\n</a>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;aEH===void 0&&(aEH=document.createElement("template"));var k=aEH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);MpL=I}I=MpL;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var IPK;var CPH;var Ip=function(){var I=_.q.apply(this,arguments)||this;I.selected=!1;I.actionMap={"yt-live-chat-close-buy-flow":"onCloseBuyFlow","yt-live-chat-close-engage-with-audience-editor-panels":"onCloseEngageWithAudienceEditorPanels"};return I};
_.R(Ip,_.q);_.u=Ip.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.computeId=function(I){return I.id||""};
_.u.onCloseClick=function(){_.k3(this.hostElement,"picker-cancelled")};
_.u.observeSelected=function(){this.selected&&this.hostElement.focus();var I=this.hostElement.querySelectorAll("yt-live-chat-product-button-renderer");I.length&&I[0].focus()};
_.u.onCloseBuyFlow=function(){_.k3(this.hostElement,"picker-cancelled")};
_.u.onCloseEngageWithAudienceEditorPanels=function(){_.k3(this.hostElement,"picker-cancelled")};
Ip.prototype.observeSelected=Ip.prototype.observeSelected;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ip.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ip.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ip.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ip.prototype,"data",void 0);
_.E([_.d({computed:"computeId(data)",reflectToAttribute:!0}),_.h("design:type",String)],Ip.prototype,"id",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ip.prototype,"selected",void 0);_.E([_.FI("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ip.prototype,"observeSelected",null);Ip=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-product-picker-renderer",noInjection:!0})],Ip);
_.Z(Ip,"yt-live-chat-product-picker-renderer",function(){if(CPH===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;IPK===void 0&&(IPK=document.createElement("template"));var k=IPK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);CPH=I}I=CPH;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var soM;var oEP;var yOR;var kCj;var Cl=function(){return _.q.apply(this,arguments)||this};
_.R(Cl,_.q);Cl.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()};
Cl.prototype.computeUseRegularBackground=function(){return!this.useLargeBackground&&!this.useAnimationBackground};
Cl.prototype.created=function(){this.ids={background:_.Qb(),maskOne:_.Qb(),maskTwo:_.Qb(),gradient:_.Qb(),largeBackground:_.Qb(),largeGradientOne:_.Qb(),largeGradientTwo:_.Qb(),largeGradientPath:_.Qb()}};
Cl.prototype.maybeLoadAnimationBackground=Cl.prototype.maybeLoadAnimationBackground;_.E([_.d({value:!1}),_.h("design:type",Boolean)],Cl.prototype,"useLargeBackground",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Cl.prototype,"useAnimationBackground",void 0);_.E([_.d({value:!0,computed:"computeUseRegularBackground(useLargeBackground, useAnimationBackground)"}),_.h("design:type",Boolean)],Cl.prototype,"useRegularBackground",void 0);
_.E([_.d(),_.h("design:type",Object)],Cl.prototype,"ids",void 0);_.E([_.d(),_.h("design:type",Object)],Cl.prototype,"lottieAnimation",void 0);_.E([_.z$("#animation-background"),_.h("design:type",HTMLDivElement)],Cl.prototype,"animationBackground",void 0);_.E([_.FI("useAnimationBackground"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Cl.prototype,"maybeLoadAnimationBackground",null);
Cl=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-interactivity-component-background",noInjection:!0})],Cl);
_.Z(Cl,"yt-live-interactivity-component-background",function(){if(kCj===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;yOR===void 0&&(yOR=document.createElement("template"));var k=yOR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);kCj=I}I=kCj;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var sX=function(){var I=_.q.apply(this,arguments)||this;I.characterCount=0;I.showInputErrorMessage=!1;I.startQnaRequestInFlight=!1;I.modern=_.V("web_button_rework_with_live");I.buttonOverrides={style:"mono",type:"filled"};I.closeButtonOverrides={iconPosition:"icon-only"};I.actionMap={"yt-live-chat-open-qna-start-panel":"handleOpenQnaStartPanel"};return I};
_.R(sX,_.q);_.u=sX.prototype;
_.u.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]]"}}}}}};
_.u.onCharacterCountChanged=function(I){var C,y,k,F,z=(y=_.l(this==null?void 0:(C=this.data)==null?void 0:C.creatorCallForQuestions,d_Y))==null?void 0:(k=y.inputField)==null?void 0:(F=k.liveChatTextInputFieldRenderer)==null?void 0:F.maxCharacterLimit,c,r;z!=null&&(I==null?void 0:(c=I.detail)==null?void 0:c.characterCount)!=null&&_.l(this==null?void 0:(r=this.data)==null?void 0:r.startButton,_.fZ)&&(C=I.detail.characterCount>z,this.set("data.startButton.buttonRenderer.isDisabled",I.detail.characterCount===
0||C),this.showInputErrorMessage=C)};
_.u.onCloseClick=function(){_.k3(this.hostElement,"picker-cancelled");_.Fe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.onPickerCancelled=function(){var I=_.f(this.hostElement).querySelector("#qna-creator-text-input-field");I&&I.setLiveChatRichMessageInput(null)};
_.u.handleOpenQnaStartPanel=function(){var I=_.f(this.hostElement).querySelector("#qna-creator-text-input-field");I&&I.focus()};
_.u.handleStartButtonAction=function(I){var C=this;if(I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),I=I.detail.args[1])){var y=_.f(this.hostElement).querySelector("#qna-creator-text-input-field"),k;(y==null?0:(k=y.liveChatRichMessageInput)==null?0:k.textSegments)&&y.liveChatRichMessageInput.textSegments.length!==0&&(k={rich_message:_.GN(y.liveChatRichMessageInput)},_.Tg(this.hostElement,[I,k]).then(function(){_.k3(C.hostElement,"picker-cancelled")}))}};
_.u.handleServiceRequestSent=function(){this.startQnaRequestInFlight=!0};
_.u.handleServiceRequestCompleted=function(I){var C;I=I==null?void 0:(C=I.detail)==null?void 0:C.data;(I==null?0:I.actions)&&I.actions.length>0?this.startQnaRequestInFlight=!1:_.Fe(this.hostElement,"yt-live-chat-close-engage-with-audience-editor-panels")};
_.u.handleServiceRequestError=function(){this.startQnaRequestInFlight=!1};
sX.prototype.handleServiceRequestError=sX.prototype.handleServiceRequestError;sX.prototype.handleServiceRequestCompleted=sX.prototype.handleServiceRequestCompleted;sX.prototype.handleServiceRequestSent=sX.prototype.handleServiceRequestSent;sX.prototype.onPickerCancelled=sX.prototype.onPickerCancelled;sX.prototype.onCharacterCountChanged=sX.prototype.onCharacterCountChanged;_.E([_.d(),_.h("design:type",Object)],sX.prototype,"characterCount",void 0);
_.E([_.d(),_.h("design:type",Object)],sX.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sX.prototype,"showInputErrorMessage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sX.prototype,"startQnaRequestInFlight",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],sX.prototype,"modern",void 0);_.E([_.d(),_.h("design:type",Object)],sX.prototype,"buttonOverrides",void 0);
_.E([_.d(),_.h("design:type",Object)],sX.prototype,"closeButtonOverrides",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],sX.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.g(_.RW.YtLiveChatItemBehavior),_.h("design:type",_.be)],sX.prototype,"ytLiveChatItemBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.km("yt-live-chat-text-input-field-renderer-character-count-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sX.prototype,"onCharacterCountChanged",null);_.E([_.km("picker-cancelled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sX.prototype,"onPickerCancelled",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sX.prototype,"handleServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sX.prototype,"handleServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],sX.prototype,"handleServiceRequestError",null);sX=_.E([_.m({disableElementRegistration:!0,is:"yt-live-chat-qna-start-panel-renderer"})],sX);
_.Z(sX,"yt-live-chat-qna-start-panel-renderer",function(){if(oEP===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;soM===void 0&&(soM=document.createElement("template"));var k=soM;y.call(C,k.content.cloneNode(!0),I.content.firstChild);oEP=I}I=oEP;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var FER;var u_8;var op=function(){return _.q.apply(this,arguments)||this};
_.R(op,_.q);op.prototype.dismiss=function(){_.k3(this.hostElement,"yt-live-chat-error-message-dismiss")};
op.prototype.edit=function(){_.k3(this.hostElement,"yt-live-chat-error-message-edit",this.data.originalRichMessage)};
_.E([_.d(),_.h("design:type",Object)],op.prototype,"data",void 0);op=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-text-actions-error-message-renderer",noInjection:!0})],op);
_.Z(op,"yt-live-chat-text-actions-error-message-renderer",function(){if(u_8===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;FER===void 0&&(FER=document.createElement("template"));var k=FER;y.call(C,k.content.cloneNode(!0),I.content.firstChild);u_8=I}I=u_8;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var z6H;var Tvj;var cOH;var e6K;var yO=function(){var I=_.q.apply(this,arguments)||this;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.newnessDotEligible=!1;return I};
_.R(yO,_.q);yO.prototype.sendReaction=function(){var I,C,y=((I=this.data)==null?void 0:I.emojiId)||((C=this.data)==null?void 0:C.emoteId),k;y&&((k=this.data)==null?0:k.shouldTriggerAnimation)&&_.Fe(this.hostElement,"yt-create-user-reaction-animation",[y]);var F;(I=_.Rj((F=this.data)==null?void 0:F.onTap))&&_.uU(I,this.hostElement);this.showNewnessDot&&_.Fe(this.hostElement,"yt-hide-newness-dot")};
yO.prototype.onClick=function(I){(!I||I.clientX||I.clientY)&&this.sendReaction()};
yO.prototype.onKeyDown=function(I){I.key!=="Enter"&&I.key!==" "||I.repeat||this.sendReaction()};
_.H1.Object.defineProperties(yO.prototype,{showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.maybeShowNewnessDot)&&this.newnessDotEligible}},
useYtImage:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!(((I=this.data)==null?0:I.emojiId)||((C=this.data)==null?0:C.emoteId))}}});
_.E([_.d(),_.h("design:type",Object)],yO.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],yO.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],yO.prototype,"newnessDotEligible",void 0);_.E([_.v("data.maybeShowNewnessDot"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yO.prototype,"showNewnessDot",null);_.E([_.v("data.emojiId","data.emoteId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],yO.prototype,"useYtImage",null);
yO=_.E([_.lT({disableElementRegistration:!0,is:"yt-reaction-control-panel-button-view-model",noInjection:!0})],yO);
_.Z(yO,"yt-reaction-control-panel-button-view-model",function(){if(e6K===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;cOH===void 0&&(cOH=document.createElement("template"));var k=cOH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);e6K=I}I=e6K;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var rOR;var i3R;var kc=function(){var I=_.q.apply(this,arguments)||this;I.reactionControlPanelExpanded=!1;I.isDarkTheme=document.documentElement.hasAttribute("dark");I.newnessDotEligible=!1;return I};
_.R(kc,_.q);_.u=kc.prototype;_.u.expandedButtonsChanged=function(){var I,C;_.CK(this.hostElement,{"--expanded-buttons-height":((C=(I=this.expandedButtonsData)==null?void 0:I.length)!=null?C:0)*36+"px"})};
_.u.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}}};
_.u.onMouseEnter=function(){clearTimeout(this.collapseTimer);this.collapseTimer=void 0;this.reactionControlPanelExpanded=!0};
_.u.onMouseLeave=function(){var I=this;this.collapseTimer=setTimeout(function(){I.reactionControlPanelExpanded=!1},500)};
_.u.onFocusIn=function(){this.onMouseEnter()};
_.u.onFocusOut=function(){this.onMouseLeave()};
_.u.onCollapsedButtonFocusIn=function(){var I=this;setTimeout(function(){var C;(C=I.expandedButtons.querySelector("button"))==null||C.focus()},100)};
_.u.onCollapsedButtonFocusOut=function(I){I.stopPropagation()};
_.H1.Object.defineProperties(kc.prototype,{expandedButtonsData:{configurable:!0,enumerable:!0,get:function(){var I,C;return _.Le.unsafeClone((I=this.liveReactionsData)==null?void 0:I.emojiButtonData)||((C=this.data)==null?void 0:C.expandedButtons)}},
showNewnessDot:{configurable:!0,enumerable:!0,get:function(){var I;return this.newnessDotEligible&&!this.reactionControlPanelExpanded&&!((I=this.data)==null||!I.maybeShowNewnessDot)}}});
kc.prototype.expandedButtonsChanged=kc.prototype.expandedButtonsChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],kc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],kc.prototype,"ytLiveChatReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kc.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],kc.prototype,"reactionControlPanelExpanded",void 0);_.E([_.d({selectorArgs:["data.liveReactionsDataEntityKey"],selector:pBj}),_.h("design:type",Object)],kc.prototype,"liveReactionsData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],kc.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],kc.prototype,"newnessDotEligible",void 0);
_.E([_.v("liveReactionsData","data.expandedButtons"),_.h("design:type",Object),_.h("design:paramtypes",[])],kc.prototype,"expandedButtonsData",null);_.E([_.v("newnessDotEligible","reactionControlPanelExpanded","data.maybeShowNewnessDot"),_.d({reflectToAttribute:!0}),_.h("design:type",Object),_.h("design:paramtypes",[])],kc.prototype,"showNewnessDot",null);_.E([_.z$("#expanded-buttons"),_.h("design:type",HTMLElement)],kc.prototype,"expandedButtons",void 0);
_.E([_.FI("expandedButtonsData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kc.prototype,"expandedButtonsChanged",null);kc=_.E([_.lT({disableElementRegistration:!0,is:"yt-reaction-control-panel-view-model",noInjection:!0})],kc);
_.Z(kc,"yt-reaction-control-panel-view-model",function(){if(i3R===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;rOR===void 0&&(rOR=document.createElement("template"));var k=rOR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);i3R=I}I=i3R;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var F7=new _.Kw("yt-live-chat"),wtM=Date.parse("2024-7-24"),ux=function(){var I=_.q.apply(this,arguments)||this;I.emojiManager=_.$p;I.newnessDotEligible=!1;I.newnessDotImpressionCounted=!1;I.actionMap={"yt-live-reactions-mute":"handleReactionsMute","yt-hide-newness-dot":"hideNewnessDot"};return I};
_.R(ux,_.q);_.u=ux.prototype;_.u.emojiCustomizationEnabledChanged=function(){var I;((I=this.data)==null?0:I.emojiCustomizationEnabled)&&!this.newnessDotImpressionCounted&&((I=F7.getCreationTime("emoji-customization-count"))&&I<wtM&&F7.set("emoji-customization-count","0"),I=Number(F7.get("emoji-customization-count"))||0,I<3&&(this.newnessDotEligible=!0,F7.set("emoji-customization-count",(I+1).toString())),this.newnessDotImpressionCounted=!0)};
_.u.hideNewnessDot=function(){this.newnessDotEligible=!1;F7.set("emoji-customization-count",(3).toString());this.data=Object.assign({},this.data||{})};
_.u.handleReactionsMute=function(I){var C=_.Si(),y=_.Dn(206221),k={checkboxData:{state:I?"CHECKBOX_STATE_OFF":"CHECKBOX_STATE_ON"}};C&&_.EN(C,y,k);this.reactionsMuted=I};
_.u.liveReactionsSettingChanged=function(){this.data=Object.assign({},this.data||{})};
_.u.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}}};
_.H1.Object.defineProperties(ux.prototype,{liveReactionsEnabled:{configurable:!0,enumerable:!0,get:function(){var I;return(!((I=this.liveReactionsData)==null||!I.isEnabled)||this.liveReactionsSetting)&&!this.reactionsMuted}}});
ux.prototype.liveReactionsSettingChanged=ux.prototype.liveReactionsSettingChanged;ux.prototype.emojiCustomizationEnabledChanged=ux.prototype.emojiCustomizationEnabledChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ux.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ux.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.la),_.h("design:type",Object)],ux.prototype,"ytLiveChatReduxBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ux.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ux.prototype,"data",void 0);_.E([_.d(),_.h("design:type",_.jD)],ux.prototype,"emojiManager",void 0);_.E([_.d(),_.h("design:type",Object)],ux.prototype,"newnessDotEligible",void 0);_.E([_.d(),_.h("design:type",Object)],ux.prototype,"newnessDotImpressionCounted",void 0);
_.E([_.d({selectorArgs:["data.liveReactionsSettingEntityKey"],selector:QkM}),_.h("design:type",Boolean)],ux.prototype,"liveReactionsSetting",void 0);_.E([_.d({selectorArgs:["data.liveReactionsDataEntityKey"],selector:pBj}),_.h("design:type",Object)],ux.prototype,"liveReactionsData",void 0);_.E([_.d({value:function(){var I=_.V("enable_lwe_web_mute"),C=F7.get("allow-reactions");return C===void 0?!1:!C&&I}}),
_.h("design:type",Boolean)],ux.prototype,"reactionsMuted",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("liveReactionsSetting","reactionsMuted","liveReactionsData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ux.prototype,"liveReactionsEnabled",null);_.E([_.FI("data.emojiCustomizationEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ux.prototype,"emojiCustomizationEnabledChanged",null);
_.E([_.FI("liveReactionsEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ux.prototype,"liveReactionsSettingChanged",null);ux=_.E([_.lT({disableElementRegistration:!0,is:"yt-reaction-control-panel-overlay-view-model",noInjection:!0})],ux);
_.Z(ux,"yt-reaction-control-panel-overlay-view-model",function(){if(Tvj===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;z6H===void 0&&(z6H=document.createElement("template"));var k=z6H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);Tvj=I}I=Tvj;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var nEH={YtPickerBehavior:{listeners:{"picker-cancelled":"onPickerCancel_"},togglePicker_:function(I){var C=this.$.pickers.selected;if(C){_.f(this.hostElement).removeAttribute(C+"-open");var y="#picker-buttons";this.hostElement.tagName=="YT-LIVE-CHAT-MESSAGE-INPUT-RENDERER"&&(y="#picker-buttons",C==="emoji"&&_.f(this.hostElement).querySelector("#emoji-picker-button")&&(y="#emoji-picker-button"));if(y=_.f(this.hostElement).querySelector(y).querySelector("#"+C))y.active=!1}y=I;C==I&&(y=null);C!=I&&
_.f(this.hostElement).setAttribute(I+"-open","");this.$.pickers.selected=y;_.Fe(this.hostElement,"yt-live-chat-picker-changed",[y])},
onPickerCancel_:function(){this.togglePicker_(this.$.pickers.selected)}}};var zy=function(){var I=_.q.apply(this,arguments)||this;I.numSentMessages=0;I.timeoutDurationMs=0;I.timeoutMs=0;I.lastTimeoutTimeMs=0;I.pendingMessageId="";I.hasFiredInitialFocusActions=!1;I.isBeforeFocusEnabled=!0;I.id="";I.characterCount=0;I.maxCharacterLimit=0;I.remainingCharacterCount=0;I.inputExpanded=!1;I.buttonOverrides={iconPosition:"icon-only"};I.inReplyPanel=!1;I.countdownRatio=0;I.isTooltipVisible=!1;I.tooltipTimeout=1E4;I.systemIcons=_.V("kevlar_system_icons");I.tallerEmojiPicker=_.V("live_chat_taller_emoji_picker");
I.blockSendMessageWithCountdown=!_.V("live_chat_enable_send_button_in_slow_mode");I.sendReplyMessageInFlight=!1;I.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"};I.onResize=function(){I.maybeToggleCharacterCount()};
return I};
_.R(zy,_.q);_.u=zy.prototype;
_.u.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"}}}};
_.u.attached=function(){window.addEventListener("resize",this.onResize)};
_.u.detached=function(){window.removeEventListener("resize",this.onResize)};
_.u.dataChanged=function(){this.data.sendButton&&this.data.sendButton.buttonRenderer&&(this.data.sendButton.buttonRenderer.isDisabled=this.sendDisabled)};
_.u.sendMessage=function(){var I=this,C,y,k,F;return _.e(function(z){if(I.sendDisabled)return z.return();I.isTooltipVisible&&_.Fe(I.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);if(I.data.sendButton&&I.data.sendButton.buttonRenderer){I.input.completeEmojis();C=I.data.sendButton.buttonRenderer.serviceEndpoint;if(!C)return z.return();k=((y=_.l(C,_.WXq))==null?void 0:y.clientIdPrefix)||"";F={client_message_id:k+String(I.numSentMessages++),rich_message:_.GN(I.input.liveChatRichMessageInput)};
I.pendingMessageId=F.client_message_id;I.inReplyPanel&&(I.sendReplyMessageInFlight=!0);_.Tg(I.hostElement,[C,F]);I.input.setLiveChatRichMessageInput(null)}_.oI(z)})};
_.u.handleSendButtonAction=function(I){I.detail.actionName==="yt-service-request"&&(I.stopPropagation(),this.sendMessage())};
_.u.onSendCompleted=function(I,C){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);(I=this.get("timeoutDurationUsec",C.data))&&this.handleTimeout(Number(I)/1E3);this.errorMessage=this.get("errorMessage",C.data);this.pendingMessageId=""};
_.u.onSendError=function(){this.inReplyPanel&&(this.sendReplyMessageInFlight=!1);this.pendingMessageId&&_.Fe(this.hostElement,"yt-dim-chat-item-action",[{dimChatItemAction:{clientAssignedId:this.pendingMessageId}}]);this.pendingMessageId="";this.genericErrorMessage&&(this.errorMessage={liveChatErrorMessageRenderer:{errorText:this.genericErrorMessage}})};
_.u.handlePickerButtonToggle=function(I){I=I.detail.targetId;this.ytPickerBehavior.togglePicker_(I);if(I==="emoji")this.input.focus();else if(I==="qna-start-panel"){var C,y;(C=_.f(this.hostElement).querySelector("yt-live-chat-qna-start-panel-renderer"))==null||(y=C.querySelector("#qna-creator-text-input-field"))==null||y.focus()}};
_.u.onComponentReplaced=function(I){var C,y;I.toReplace==="REPLACE_LIVE_CHAT_ACTION_PANEL"&&((C=I.replacement.liveChatMessageInputRenderer)==null?0:(y=C.headerRenderer)==null?0:y.liveChatQnaInputPromptHeaderRenderer)&&this.input.focus()};
_.u.onEmojiSelect=function(I){this.input.focus();this.input.insertEmoji(I.detail)};
_.u.onDisableBeforeFocus=function(){this.isBeforeFocusEnabled=!1};
_.u.onInputFocusIn=function(){this.data&&(this.data.beforeFocusCommand&&this.isBeforeFocusEnabled?_.Fe(this.hostElement,"yt-live-chat-actions",[[this.data.beforeFocusCommand]]):this.data.onInitialFocusCommand&&!this.hasFiredInitialFocusActions&&(_.Fe(this.hostElement,"yt-live-chat-actions",[[this.data.onInitialFocusCommand]]),this.hasFiredInitialFocusActions=!0))};
_.u.onOpenPopupAction=function(I,C){var y=this;C===this.hostElement&&(this.isTooltipVisible=!0);this.tooltipTimeout&&setTimeout(function(){_.Fe(y.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},this.tooltipTimeout)};
_.u.onClosePopupAction=function(){this.isTooltipVisible=!1};
_.u.characterCountChanged=function(){this.maybeToggleCharacterCount()};
_.u.focusChanged=function(){this.maybeToggleCharacterCount()};
_.u.maybeToggleCharacterCount=function(){if(this.maxCharacterLimit){var I=this.characterCount/this.maxCharacterLimit*100;this.count.classList.toggle("warning",this.characterCount!==0&&this.input.clientHeight>36);this.count.classList.toggle("error",I>100)}this.inputExpanded=this.characterCount!==0&&this.inputContainer.clientHeight>36};
_.u.computeId=function(){return this.data&&this.data.targetId||""};
_.u.computeSendDisabled=function(I,C,y,k){I=!!(this.blockSendMessageWithCountdown&&y||!I||C&&I>C||k);(C=_.f(this.hostElement).querySelector("#send-button"))&&C.children.length&&(C.children[0].disabled=I);return I};
_.u.handleTimeout=function(I){this.timeoutDurationMs=this.timeoutMs=I;this.countdownRatio=1;this.lastTimeoutTimeMs===0&&window.requestAnimationFrame(this.updateTimeout.bind(this))};
_.u.updateTimeout=function(I){this.lastTimeoutTimeMs&&(this.timeoutMs=Math.max(0,this.timeoutMs-(I-this.lastTimeoutTimeMs)),this.countdownRatio=this.timeoutMs/this.timeoutDurationMs);this.isAttached&&this.timeoutMs?(this.lastTimeoutTimeMs=I,window.requestAnimationFrame(this.updateTimeout.bind(this))):this.lastTimeoutTimeMs=0};
_.u.onErrorMessageDismiss=function(){this.errorMessage=void 0};
_.u.onErrorMessageEdit=function(I){this.input.setLiveChatRichMessageInput(I.detail);this.input.focusAtEnd();this.errorMessage=void 0};
_.u.errorMessageChanged=function(){var I=this;_.SA(function(){_.Fe(I.hostElement,"yt-live-chat-maybe-scroll-to-bottom")})};
_.u.computeAuthorNameColor=function(I){var C;if(_.V("live_chat_author_name_color_usernames")&&(I==null?0:(C=I.authorName)==null?0:C.simpleText))return _.N_O(_.Vnz(I.authorName.simpleText));if(_.V("live_chat_seed_color_usernames")&&(I==null?0:I.authorSeedColorArgb))return _.N_O(_.s5(I.authorSeedColorArgb));if(_.V("live_chat_colored_usernames"))return"#cc0000";var y;return _.V("live_chat_simple_color_usernames")&&(I==null?0:(y=I.authorName)==null?0:y.simpleText)&&(I==null?0:I.authorUsernameColorLight)&&
(I==null?0:I.authorUsernameColorDark)?document.documentElement.hasAttribute("dark")?_.s5(I.authorUsernameColorDark):_.s5(I.authorUsernameColorLight):""};
_.u.onIsTooltipVisibleChanged=function(){var I=_.f(this.hostElement).querySelector("#tooltip-accessibility-text");this.isTooltipVisible?setTimeout(function(){I.hidden=!1;I.setAttribute("role","alert")},0):(I.hidden=!0,I.removeAttribute("role"))};
_.u.onFocusedChanged=function(I){this.inputFocused=I.detail.value};
_.H1.Object.defineProperties(zy.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 I;return!((I=this.data)==null||!I.authorPhoto)&&this.characterCount>0}},
hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.pickers)==null?void 0:C.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}},
tooltipMessage:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.onInitialFocusCommand.showLiveChatTooltipCommand.tooltip.tooltipRenderer.detailsText");return I?this.ytRendererBehavior.getSimpleString(I):""}},
authorNameColor:{configurable:!0,enumerable:!0,get:function(){return this.computeAuthorNameColor(this.data)}}});
zy.prototype.onIsTooltipVisibleChanged=zy.prototype.onIsTooltipVisibleChanged;zy.prototype.errorMessageChanged=zy.prototype.errorMessageChanged;zy.prototype.onErrorMessageEdit=zy.prototype.onErrorMessageEdit;zy.prototype.onErrorMessageDismiss=zy.prototype.onErrorMessageDismiss;zy.prototype.focusChanged=zy.prototype.focusChanged;zy.prototype.characterCountChanged=zy.prototype.characterCountChanged;zy.prototype.onEmojiSelect=zy.prototype.onEmojiSelect;zy.prototype.handlePickerButtonToggle=zy.prototype.handlePickerButtonToggle;
zy.prototype.onSendError=zy.prototype.onSendError;zy.prototype.onSendCompleted=zy.prototype.onSendCompleted;zy.prototype.sendMessage=zy.prototype.sendMessage;zy.prototype.dataChanged=zy.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zy.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],zy.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(nEH.YtPickerBehavior),_.h("design:type",Object)],zy.prototype,"ytPickerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Xk.YtLiveChatTooltipTargetingBehavior),_.h("design:type",Object)],zy.prototype,"ytLiveChatTooltipTargetingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"hasFiredInitialFocusActions",void 0);
_.E([_.d(),_.h("design:type",Object)],zy.prototype,"isBeforeFocusEnabled",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"data",void 0);_.E([_.d({computed:"computeId(data.targetId)",reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"id",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"characterCount",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"maxCharacterLimit",void 0);
_.E([_.d(),_.h("design:type",Object)],zy.prototype,"remainingCharacterCount",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"inputExpanded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],zy.prototype,"inputFocused",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],zy.prototype,"disableEmojiPickerIncrementalLoading",void 0);_.E([_.d(),_.h("design:type",_.fX)],zy.prototype,"participantsManager",void 0);
_.E([_.d(),_.h("design:type",Object)],zy.prototype,"buttonOverrides",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"inReplyPanel",void 0);_.E([_.v("characterCount, maxCharacterLimit, countdownActive","blockSendMessageWithCountdown"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"sendDisabled",null);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"countdownRatio",void 0);
_.E([_.v("countdownRatio"),_.h("design:type",Number),_.h("design:paramtypes",[])],zy.prototype,"countdownStrokeDashOffset",null);_.E([_.v("countdownRatio"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"countdownActive",null);_.E([_.v("data.interactionMessage"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"hasInteractionMessage",null);
_.E([_.v("data.emojiPickerButton"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"hasEmojiPickerButton",null);_.E([_.v("data, characterCount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"showAvatar",null);_.E([_.v("data.pickers"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zy.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.d(),_.h("design:type",Object)],zy.prototype,"errorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"genericErrorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"isTooltipVisible",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"tooltipTimeout",void 0);_.E([_.v("data.onInitialFocusCommand"),_.h("design:type",String),_.h("design:paramtypes",[])],zy.prototype,"tooltipMessage",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"tallerEmojiPicker",void 0);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],zy.prototype,"authorNameColor",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zy.prototype,"blockSendMessageWithCountdown",void 0);_.E([_.d(),_.h("design:type",Object)],zy.prototype,"sendReplyMessageInFlight",void 0);
_.E([_.z$("#input"),_.h("design:type",_.UPm)],zy.prototype,"input",void 0);_.E([_.z$("#count"),_.h("design:type",HTMLElement)],zy.prototype,"count",void 0);_.E([_.z$("#input-container"),_.h("design:type",HTMLElement)],zy.prototype,"inputContainer",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"dataChanged",null);
_.E([_.km("yt-live-chat-send-message"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],zy.prototype,"sendMessage",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.xs]),_.h("design:returntype")],zy.prototype,"onSendCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"onSendError",null);
_.E([_.km("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zy.prototype,"handlePickerButtonToggle",null);_.E([_.km("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zy.prototype,"onEmojiSelect",null);
_.E([_.FI("characterCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"characterCountChanged",null);_.E([_.FI("inputFocused"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"focusChanged",null);_.E([_.km("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"onErrorMessageDismiss",null);
_.E([_.km("yt-live-chat-error-message-edit"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],zy.prototype,"onErrorMessageEdit",null);_.E([_.FI("errorMessage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"errorMessageChanged",null);_.E([_.FI("isTooltipVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zy.prototype,"onIsTooltipVisibleChanged",null);
zy=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-message-input-renderer",noInjection:!0})],zy);
_.Z(zy,"yt-live-chat-message-input-renderer",function(){if(W3R===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;vnY===void 0&&(vnY=document.createElement("template"));var k=vnY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);W3R=I}I=W3R;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var PPS;var LEy;var Ty=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.firedOnClickCommand=!1;I.inReplyPanel=!1;return I};
_.R(Ty,_.q);
Ty.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"}}}};
Ty.prototype.onButtonToggle=function(I){I.target.disabled||this.ytPickerBehavior.togglePicker_(I.detail.targetId)};
Ty.prototype.onClick=function(){var I=this;this.get("onClickCommand.liveChatAddToToastAction",this.data)&&!this.firedOnClickCommand&&(_.Fe(this.hostElement,"yt-live-chat-add-to-toast-action",[this.data.onClickCommand]),this.firedOnClickCommand=!0,setTimeout(function(){return I.firedOnClickCommand=!1},5E3))};
_.H1.Object.defineProperties(Ty.prototype,{hasProductPickerPanelViewModel:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.panels)==null?void 0:C.find(function(y){return y.liveChatProductPickerPanelViewModel}))!==void 0}}});
Ty.prototype.onButtonToggle=Ty.prototype.onButtonToggle;_.E([_.g(nEH.YtPickerBehavior),_.h("design:type",Object)],Ty.prototype,"ytPickerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ty.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ty.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ty.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ty.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Object)],Ty.prototype,"firedOnClickCommand",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ty.prototype,"inReplyPanel",void 0);_.E([_.v("data.pickers"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Ty.prototype,"hasProductPickerPanelViewModel",null);
_.E([_.km("yt-live-chat-icon-toggle-button-renderer-toggle"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Ty.prototype,"onButtonToggle",null);Ty=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-restricted-participation-renderer",noInjection:!0})],Ty);
_.Z(Ty,"yt-live-chat-restricted-participation-renderer",function(){if(LEy===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;PPS===void 0&&(PPS=document.createElement("template"));var k=PPS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);LEy=I}I=LEy;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var cS=function(){var I=_.q.apply(this,arguments)||this;I.genericErrorMessage=_.Ee("Error, try again.");I.inReplyPanel=!1;I.hideBorder=!1;return I};
_.R(cS,_.q);cS.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}}}}}};
_.H1.Object.defineProperties(cS,{template:{configurable:!0,enumerable:!0,get:function(){return fEL()}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cS.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],cS.prototype,"genericErrorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],cS.prototype,"inReplyPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cS.prototype,"hideBorder",void 0);
cS=_.E([_.lT({is:"yt-live-chat-engagement-panel-input-renderer",disableElementRegistration:!0,noInjection:!0})],cS);_.Z(cS,"yt-live-chat-engagement-panel-input-renderer",function(){return fEL()},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var D4P,ptK;D4P=_.Dn(115994);ptK=_.Dn(115993);_.eQ=function(I,C,y){var k=this;var F=y.dragDownAction;this.layer=0;this.JSC$19785_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.JSC$19785_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.fullscreen=!1;var z=_.e2();_.y4(z,D4P,this.layer);_.y4(z,ptK,this.layer);this.dragDownAction=function(){F();_.Sz(z,{visualElement:k.fullscreen?D4P:ptK})};
this.gesture=new _.oB(I,C,this.JSC$19785_watchConfig,"pandown");this.attach()};
_.eQ.prototype.attach=function(){this.gesture.attach()};
_.eQ.prototype.detach=function(){this.gesture.detach()};
_.eQ.prototype.update=function(I){this.fullscreen=I;this.gesture.config=I?this.JSC$19785_watchFullScreenConfig:this.JSC$19785_watchConfig};var QoY={YtMacroReplacementBehavior:[{sendServiceRequestAction:function(I){if(I&&I.length==1&&Array.isArray(I[0].loggingUrls)){I=_.Le.unsafeClone(I[0]);var C=this.macros||{},y=this.getAdModuleClient_();if(!y)return _.er();I.loggingUrls.forEach(function(k){if(k.baseUrl){var F=k.baseUrl;var z=C;z=z===void 0?{}:z;F=y.getOptions().includes("replaceUrlMacros")?_.NK8(y,"replaceUrlMacros",{url:F,additionalMapping:z}):F;k.baseUrl=F}},this);
I=[I]}return _.Tg(this.hostElement,I)},
getAdModuleClient_:function(){var I=_.hU(this);return I?(I=I.getPlayer())?new _.T7(I):null:null}}]};var NvS;var rt=function(){var I=_.q.apply(this,arguments)||this;I.isCollapsed=!1;I.modernPanels=_.V("kevlar_watch_modern_panels");I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-update-donation-shelf-command":"handleUpdate","yt-open-popup-action":"handleOpenPopupAction"};return I};
_.R(rt,_.q);_.u=rt.prototype;_.u.configureRendererStamper=function(){return{"data.donateButton":{id:"donate-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.onDonateTap=function(){var I=this.get("data.donateButton.buttonRenderer.command");if(I){var C=_.Si(),y=this.get("data.donateButton.buttonRenderer.trackingParams");C&&y&&_.EN(C,_.nv(y));this.ytOpenPopupBehavior.openPopup(I)}};
_.u.onShowMore=function(){this.isCollapsed=!1;var I=_.Si(),C=this.get("data.expandButton.buttonRenderer.trackingParams");I&&C&&_.EN(I,_.nv(C))};
_.u.onShowLess=function(){this.isCollapsed=!0};
_.u.dataChanged=function(){_.CK(this.hostElement,{"--progress-bar-completion":this.data.progress*100+"%"})};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.handleUpdate=function(I){if(I=this.get("updateDonationShelfCommand.donationShelf.donationShelfRenderer",I))this.set("data.startLabel",I.startLabel),this.set("data.endLabel",I.endLabel),this.set("data.progress",I.progress),this.set("data.amountRaisedLabel",I.amountRaisedLabel),this.dataChanged()};
_.u.handleOpenPopupAction=function(I){this.get("openPopupAction.popup.ypcTransactionErrorMessageRenderer",I)&&_.Fe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"])};
_.u.computeHeaderBackgroundUrl=function(I,C){if(I)return C?I.headerBackgroundDarkUrl:I.headerBackgroundUrl};
_.u.isProgressBarVisible=function(I){return!(!I||I.progress===void 0)};
_.u.headerBackgroundClass=function(){return _.Aq("HTML_DIR")==="rtl"?"flip":""};
rt.prototype.dataChanged=rt.prototype.dataChanged;_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],rt.prototype,"ytOpenPopupBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],rt.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],rt.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],rt.prototype,"isCollapsed",void 0);_.E([_.d({computed:"computeHeaderBackgroundUrl(data, isDarkTheme)"}),_.h("design:type",String)],rt.prototype,"headerBackgroundUrl",void 0);_.E([_.d(),_.h("design:type",Boolean)],rt.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rt.prototype,"modernPanels",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rt.prototype,"dataChanged",null);rt=_.E([_.m({is:"ytd-donation-shelf-renderer",disableElementRegistration:!0})],rt);
_.Z(rt,"ytd-donation-shelf-renderer",function(){if(NvS!==void 0)return NvS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NvS=I},{mode:1});var VqY;var ix=function(){return _.q.apply(this,arguments)||this};
_.R(ix,_.q);_.E([_.d(),_.h("design:type",Object)],ix.prototype,"data",void 0);ix=_.E([_.m({is:"ytd-donation-unavailable-renderer",disableElementRegistration:!0})],ix);
_.Z(ix,"ytd-donation-unavailable-renderer",function(){if(VqY!==void 0)return VqY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return VqY=I},{mode:1});var joP;var wt=function(){return _.q.apply(this,arguments)||this};
_.R(wt,_.q);wt.prototype.computeIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wt.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wt.prototype,"data",void 0);wt=_.E([_.m({is:"ytd-limited-state-message-renderer",disableElementRegistration:!0})],wt);
_.Z(wt,"ytd-limited-state-message-renderer",function(){if(joP!==void 0)return joP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return joP=I},{mode:1});var lPL;var nl=function(){return _.q.apply(this,arguments)||this};
_.R(nl,_.q);nl.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
nl.prototype.onTap=function(I){var C=this.data&&this.data.endpoint;C&&!_.q3(_.qc(I),this.hostElement,["YTD-SUBSCRIBE-BUTTON-RENDERER","YTD-BUTTON-RENDERER"])&&_.k3(this.hostElement,"yt-navigate",{endpoint:C})};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nl.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nl.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nl.prototype,"data",void 0);nl=_.E([_.m({is:"ytd-autotagging-metadata-renderer",disableElementRegistration:!0})],nl);
_.Z(nl,"ytd-autotagging-metadata-renderer",function(){if(lPL!==void 0)return lPL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return lPL=I},{mode:1});var XtB;var PS=function(){return _.q.apply(this,arguments)||this};
_.R(PS,_.q);PS.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{autotaggingMetadataRenderer:"ytd-autotagging-metadata-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],PS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PS.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PS.prototype,"data",void 0);PS=_.E([_.m({is:"ytd-autotagging-metadata-row-renderer",disableElementRegistration:!0})],PS);
_.Z(PS,"ytd-autotagging-metadata-row-renderer",function(){if(XtB!==void 0)return XtB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return XtB=I},{mode:1});var $4K;var R6j;var Ll=function(){var I=_.q.apply(this,arguments)||this;I.engagementPanelContent=!1;return I};
_.R(Ll,_.q);Ll.prototype.computeHasDividerLine=function(I,C){return I&&!C};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ll.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ll.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine, engagementPanelContent)"}),_.h("design:type",Boolean)],Ll.prototype,"hasDividerLine",void 0);_.E([_.d(),_.h("design:type",Object)],Ll.prototype,"engagementPanelContent",void 0);
Ll=_.E([_.m({is:"ytd-metadata-row-header-renderer",disableElementRegistration:!0})],Ll);
_.Z(Ll,"ytd-metadata-row-header-renderer",function(){if(R6j!==void 0)return R6j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return R6j=I},{mode:1});var b3Y;var DU=function(){return _.q.apply(this,arguments)||this};
_.R(DU,_.q);DU.prototype.computeHasDividerLine=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DU.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DU.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],DU.prototype,"hasDividerLine",void 0);DU=_.E([_.m({is:"ytd-metadata-row-renderer",disableElementRegistration:!0})],DU);
_.Z(DU,"ytd-metadata-row-renderer",function(){if(b3Y!==void 0)return b3Y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return b3Y=I},{mode:1});var Yxy;var pl=function(){return _.q.apply(this,arguments)||this};
_.R(pl,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pl.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pl.prototype,"data",void 0);pl=_.E([_.m({is:"ytd-metadata-with-image-row-renderer",disableElementRegistration:!0})],pl);
_.Z(pl,"ytd-metadata-with-image-row-renderer",function(){if(Yxy!==void 0)return Yxy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Yxy=I},{mode:1});var GCK;var QO=function(){var I=_.q.apply(this,arguments)||this;I.rounded=!0;I.fixie=!1;I.fullWidth=!1;return I};
_.R(QO,_.q);_.u=QO.prototype;_.u.configureRendererStamper=function(){return{"data.informationButton":{id:"information-button-container",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.onDataChanged=function(){var I=this;this.data&&!this.endpointHref&&(this.endpointLink.classList.add("button-mode"),this.endpointLink.setAttribute("tabindex","0"),this.endpointLink.setAttribute("role","button"),this.endpointLink.addEventListener("keypress",function(C){I.onEndpointLinkKeyPress(C)}))};
_.u.onEndpointLinkKeyPress=function(I){I.target===this.endpointLink&&I.keyCode===13&&_.k3(this.hostElement,"click")};
_.u.onClick=function(){if(!this.endpointHref){this.endpointLink.blur();var I;if((I=this.data)==null?0:I.endpoint)_.cQ(this.hostElement,[this.data.endpoint],this.hostElement),this.ytRendererBehavior.logExplicitClick(this.data)}};
_.u.onYtNavigate=function(I){this.endpointHref||(I.stopPropagation(),I.preventDefault())};
_.u.onInformationButtonContainerClick=function(I){I.target.id!=="information-button-container"&&(I.stopPropagation(),I.preventDefault())};
_.u.computeStyle=function(I){return I};
_.u.computeIsThumbnailStyle=function(I){return I==="RICH_METADATA_RENDERER_STYLE_THUMBNAIL"};
_.u.computeThumbnailWidth=function(I){switch(I){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}};
_.u.computeThumbnailObjectFit=function(I){switch(I){case "RICH_METADATA_RENDERER_STYLE_SQUARE":return"CONTAIN"}};
_.H1.Object.defineProperties(QO.prototype,{endpointHref:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?0:I.endpoint)?this.componentBehavior.computeOptionalHref_(this.data.endpoint):null}}});
QO.prototype.onYtNavigate=QO.prototype.onYtNavigate;QO.prototype.onClick=QO.prototype.onClick;QO.prototype.onDataChanged=QO.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],QO.prototype,"componentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QO.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],QO.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],QO.prototype,"componentStyle",void 0);_.E([_.d({computed:"computeIsThumbnailStyle(data.style)"}),_.h("design:type",Boolean)],QO.prototype,"isThumbnailStyle",void 0);_.E([_.d({computed:"computeThumbnailObjectFit(data.style)"}),_.h("design:type",String)],QO.prototype,"thumbnailObjectFit",void 0);
_.E([_.d({computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],QO.prototype,"thumbnailWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QO.prototype,"rounded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QO.prototype,"fixie",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QO.prototype,"fullWidth",void 0);_.E([_.z$("#endpoint-link"),_.h("design:type",HTMLAnchorElement)],QO.prototype,"endpointLink",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QO.prototype,"onDataChanged",null);_.E([_.v("data.endpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],QO.prototype,"endpointHref",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],QO.prototype,"onClick",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],QO.prototype,"onYtNavigate",null);QO=_.E([_.m({is:"ytd-rich-metadata-renderer",disableElementRegistration:!0})],QO);
_.Z(QO,"ytd-rich-metadata-renderer",function(){if(GCK!==void 0)return GCK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return GCK=I},{mode:_.Ij("kevlar_poly_si_batch_j075")?1:2});var fPY;var Np=function(){var I=_.q.apply(this,arguments)||this;I.fixie=!1;I.fullWidth=!1;return I};
_.R(Np,_.q);Np.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{richMetadataRenderer:{component:"ytd-rich-metadata-renderer",properties:{fixie:"[[fixie]]",fullWidth:"[[fullWidth]]"}}}}}};
Np.prototype.computeHasDividerLine=function(I){return I};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Np.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Np.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasDividerLine(data.hasDividerLine)"}),_.h("design:type",Boolean)],Np.prototype,"hasDividerLine",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Np.prototype,"fixie",void 0);_.E([_.d(),_.h("design:type",Object)],Np.prototype,"fullWidth",void 0);
Np=_.E([_.m({is:"ytd-rich-metadata-row-renderer",disableElementRegistration:!0})],Np);
_.Z(Np,"ytd-rich-metadata-row-renderer",function(){if(fPY!==void 0)return fPY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return fPY=I},{mode:1});var VO=function(){var I=_.q.apply(this,arguments)||this;I.engagementPanelContent=!1;I.fixie=!1;I.fullWidth=!1;return I};
_.R(VO,_.q);
VO.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"}}}};
VO.prototype.computeCollapsibleItems=function(I,C,y){return I===void 0||C===void 0||y===void 0||y?[]:I.slice(C)};
VO.prototype.computeAlwaysShownItems=function(I,C){return I&&I.length?I.slice(0,C):[]};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],VO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VO.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],VO.prototype,"collapsed",void 0);
_.E([_.d({computed:"computeAlwaysShownItems(data.rows,data.collapsedItemCount)"}),_.h("design:type",Array)],VO.prototype,"alwaysShownItems",void 0);_.E([_.d({computed:"computeCollapsibleItems(data.rows,data.collapsedItemCount,collapsed)"}),_.h("design:type",Array)],VO.prototype,"collapsibleItems",void 0);_.E([_.d(),_.h("design:type",Object)],VO.prototype,"engagementPanelContent",void 0);_.E([_.d(),_.h("design:type",Object)],VO.prototype,"fixie",void 0);
_.E([_.d(),_.h("design:type",Object)],VO.prototype,"fullWidth",void 0);VO=_.E([_.m({is:"ytd-metadata-row-container-renderer",disableElementRegistration:!0})],VO);
_.Z(VO,"ytd-metadata-row-container-renderer",function(){if($4K!==void 0)return $4K;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $4K=I},{mode:1});var SxK;var jQ=function(){var I=_.q.apply(this,arguments)||this;I.currentPageUrl="";I.baseUrl="";I.isHiddenByUser=null;I.hidden=!1;I.showAboveScrim=!1;I.watchNextGrid=_.V("kevlar_watch_grid");I.modernButtons=_.V("web_modern_buttons");I.roundedContainer=!0;I.noBorder=!1;I.roundBackground=!_.V("live_chat_round_background_killswitch");I.overflowHideChat=_.V("live_chat_overflow_hide_chat");I.forceDarkTheme=!1;I.theaterWatchWhile=!1;I.isListeningForPlayerProgress=!1;I.JSC$19821_playerEvents=new Map;I.isFrameReady=
!1;I.player=null;I.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 I};
_.R(jQ,_.q);_.u=jQ.prototype;_.u.onShowHideChat=function(){this.isHiddenByUser=!this.collapsed;_.uW(this.hostElement,"yt-set-live-chat-collapsed",[this.collapsed])};
_.u.created=function(){var I=this;this.handleIframeEventListener=function(C){I.handleIframeEvent(C)};
this.handleKeyboardEventListener=function(C){I.handleKeyboardEvent(C)};
this.JSC$19821_playerEvents.set("onVideoProgress",this.playerProgressHandler);this.JSC$19821_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19821_playerEvents.set("onAdEnd",this.playerAdEndHandler);this.JSC$19821_playerEvents.set("onStateChange",this.playerStateChangeHandler);this.JSC$19821_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange)};
_.u.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()};
_.u.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};
_.u.computeBaseUrl=function(I){var C="/live_chat";this.isChatReplay()&&(C="/live_chat_replay");return _.IN(_.M2(_.az(_.dQ(I),C),null),"").toString()};
_.u.dataChanged=function(){_.V("web_watch_theater_chat")&&(this.isHiddenByUser=null)};
_.u.urlChanged=function(){if(this.url!==void 0){this.isFrameReady=!this.isChatReplay();var I=this.url;if(this.isChatReplay()&&this.player){var C=Math.floor(this.player.getProgressState().current*1E3);I=_.q9(_.dQ(I),"playerOffsetMs",C.toString()).toString()}C=this.chatframe;try{var y=I==="about:blank"?_.gzb:_.ra(I),k=C.contentDocument.location,F=_.Dd(y);F!==void 0&&k.replace(F)}catch(z){C.src=I}}};
_.u.collapsedChanged=function(){_.k3(this.hostElement,"yt-chat-collapsed-changed",this.collapsed)};
_.u.handleIframeEvent=function(I){if(I&&this.baseUrl.startsWith(I.origin)&&I.source===this.chatframe.contentWindow&&_.sw(I.data))if(I.data["yt-iframed-buyflow-launcher"])this.handleBuyflowMessages(I);else if(I.data["yt-iframed-player-progress-relay"])this.handleChatFrameReady();else if(I.data["yt-show-feedback-dialog"]){var C=_.N().resolve(_.aU(_.Cxb));if(C){var y=I.ports,k;y&&y.length&&(k=function(){y[0].postMessage({})});
I=I.data["yt-show-feedback-dialog"];C.showFeedbackDialog(I.customProductData,I.feedbackContent,k,I.bucket)}}else if(I.data["yt-show-survey"])_.k3(this.hostElement,"yt-show-survey",I.data["yt-show-survey"]);else if(I.data["yt-purchase-membership"])_.N().resolve(_.ID).resolveCommand(I.data["yt-purchase-membership"],{form:{element:this.hostElement}});else if(I.data["yt-tunnel-out-live-service-request"])this.ytComponentBehavior.resolveCommand(I.data["yt-tunnel-out-live-service-request"]);else if(I.data["yt-user-activity"])_.I0();
else if(I.data["yt-attach-live-chat-response-tracking-params"])this.attachLiveChatResponseVeTrackingParams(I.data["yt-attach-live-chat-response-tracking-params"].trackingParams);else if(I.data["yt-open-popup"])this.ytOpenPopupBehavior.openPopup(I.data["yt-open-popup"]);else if(I.data["yt-log-flow-logging-event-command"])this.ytComponentBehavior.resolveCommand(I.data["yt-log-flow-logging-event-command"]);else if(I.data["yt-hide-live-chat"])this.onShowHideChat();else I.data["yt-report-moderation-state-log"]&&
this.player&&(C={cpn:this.player.getVideoData().cpn},_.b2("liveChatBeingModerated",C))};
_.u.attachLiveChatResponseVeTrackingParams=function(I){I=_.nv(I);var C=_.Si(),y=_.d5("liveChatRenderer.trackingParams",this.data);C&&y&&_.q1(C,_.nv(y),I)};
_.u.handleBuyflowMessages=function(I){var C=I.data["yt-iframed-buyflow-launcher"].encryptedPurchaseParams,y=I.data["yt-iframed-buyflow-launcher"].serializedTransactionFlowLoggingParams,k=I.data["yt-iframed-buyflow-launcher"].serializedPaymentsClientParams;_.vez(_.Fv(_.xk),C.replace(/-/g,"+").replace(/_/g,"/"),function(F){I.ports[0].postMessage({success:!0,buyFlowResponse:F})},void 0,function(F){I.ports[0].postMessage({success:!1,
error:F&&F.message||"Buyflow rejected without error."})},_.pA().get("hl"),void 0,function(){I.ports[0].postMessage({closed:!0})},y,k)};
_.u.setupPlayerProgressRelay=function(){var I=this;if(!this.isListeningForPlayerProgress){var C=_.UZ();C!=null&&C.getPlayerPromise&&(C.getPlayerPromise().then(function(y){I.playerApiReady(y)}),this.isListeningForPlayerProgress=!0)}};
_.u.handleChatFrameReady=function(){this.isFrameReady=!0;this.player&&this.player.getAdState()===1&&this.postToContentWindow({"yt-player-ad-start":""})};
_.u.playerApiReady=function(I){this.setPlayer(I)};
_.u.playerProgressHandler=function(){if(this.player){var I=this.player.getProgressState();this.postToContentWindow({"yt-player-video-progress":I.current})}};
_.u.playerAdStartHandler=function(I){this.postToContentWindow({"yt-player-ad-start":I})};
_.u.playerAdEndHandler=function(){this.postToContentWindow({"yt-player-ad-end":!0})};
_.u.playerStateChangeHandler=function(I){this.postToContentWindow({"yt-player-state-change":I})};
_.u.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19821_playerEvents);I&&(this.player=I,this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$19821_playerEvents),_.k3(this.hostElement,"player-api-ready"))};
_.u.liveChatPageUrl=function(I,C,y,k){return!y||C?"about:blank":y.liveChatRenderer?(C=_.dQ(this.currentPageUrl).JSC$7905_queryData_,iTj(C),I=_.dQ(I),C.add("continuation",y.liveChatRenderer.continuations[0].reloadContinuationData.continuation),y=_.fp()==="USER_INTERFACE_THEME_DARK",(k||y)&&C.add("dark_theme","true"),_.M2(I,C),k=_.dQ(I.toString()),y=k.JSC$7905_queryData_,"SESSION_INDEX"in _.SR&&(y.add("authuser",_.Aq("SESSION_INDEX")),"DELEGATED_SESSION_ID"in _.SR&&y.add("pageId",_.Aq("DELEGATED_SESSION_ID"))),
"INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT"in _.SR&&y.add("sdc",_.Aq("INNERTUBE_CONTEXT_SERIALIZED_DELEGATION_CONTEXT")),k.toString()):""};
_.u.isCollapsed=function(I,C){return C!==null?C:this.isChatReplay()||I&&I.conversationBarRenderer&&I.conversationBarRenderer.availabilityMessage?!0:I?I.liveChatRenderer?I.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_COLLAPSED":!_.V("live_chat_hide_premiere_replay_message")||I.conversationBarRenderer&&I.conversationBarRenderer.availabilityMessage?!1:!0:!1};
_.u.isHidden=function(I,C,y){var k=C&&C.conversationBarRenderer&&C.conversationBarRenderer.availabilityMessage,F=C&&C.liveChatRenderer&&C.liveChatRenderer.showHideButton,z=C&&C.liveChatRenderer&&C.liveChatRenderer.showButton;return y&&I&&!k&&!z||!y&&I&&!k&&!F?!0:C&&C.liveChatRenderer&&C.liveChatRenderer.initialDisplayState?C.liveChatRenderer.initialDisplayState==="LIVE_CHAT_DISPLAY_STATE_HIDDEN":!1};
_.u.computeButtonOverride=function(I,C){if(I&&C)return{type:"outline"}};
_.u.setCollapsedState=function(I){_.l(I,_.jNd)&&(this.isHiddenByUser=!!_.l(I,_.jNd).collapsed,!this.isHiddenByUser&&_.V("enable_teaser_framework_web_client")&&_.Fe(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement]))};
_.u.forwardReduxActionToIframe=function(I){this.postToContentWindow({"yt-live-chat-forward-redux-action":I})};
_.u.onLoopRangeChange=function(I){this.showAboveScrim=!(I==null||!I.postId)};
_.u.onDarkThemeAction=function(){this.sendDarkThemePostMessage(!0)};
_.u.onLightThemeAction=function(){this.sendDarkThemePostMessage(!1)};
_.u.onClosePdgBuyFlow=function(){this.postToContentWindow({"yt-live-chat-close-buy-flow":!0})};
_.u.sendDarkThemePostMessage=function(I){this.postToContentWindow({"yt-live-chat-set-dark-theme":I})};
_.u.onLiveChatBuyFlowCallback=function(I){this.postToContentWindow({"yt-live-chat-buy-flow-callback":I})};
_.u.handleKeyboardEvent=function(I){(0,_.Le.containsValue)(rbK,I.keyCode)&&this.postToContentWindow({"yt-live-chat-keyboard-event":{eventType:I.type,keyCode:I.keyCode}})};
_.u.isChatReplay=function(){return!!(this.data&&this.data.liveChatRenderer&&this.data.liveChatRenderer.isReplay)};
_.u.postToContentWindow=function(I){if(this.isFrameReady)try{var C=window.location.protocol+"//"+window.location.host,y;(y=this.chatframe)!=null&&y.contentWindow?this.chatframe.contentWindow.postMessage(I,C):_.SN(new _.ph("Tried posting a message to an iframe with no content window",I))}catch(k){_.GB(k)}};
_.u.shouldHideChatFrame=function(I){return I&&_.V("hide_live_chat_button_when_collapsed")};
_.H1.Object.defineProperties(jQ.prototype,{enableShowWithoutHideChatButton:{configurable:!0,enumerable:!0,get:function(){if(_.V("live_chat_overflow_hide_chat")||_.V("web_watch_chat_hide_button_killswitch"))return _.V("live_chat_overflow_hide_chat");var I,C,y,k;return!!((I=this.data)==null?0:(C=I.liveChatRenderer)==null?0:(y=C.header)==null?0:(k=y.liveChatHeaderRenderer)==null?0:k.collapseButton)}}});
jQ.prototype.collapsedChanged=jQ.prototype.collapsedChanged;jQ.prototype.urlChanged=jQ.prototype.urlChanged;jQ.prototype.dataChanged=jQ.prototype.dataChanged;jQ.prototype.onShowHideChat=jQ.prototype.onShowHideChat;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],jQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jQ.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],jQ.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],jQ.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],jQ.prototype,"ytOpenPopupBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jQ.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],jQ.prototype,"currentPageUrl",void 0);
_.E([_.d({computed:"computeBaseUrl(currentPageUrl,data)"}),_.h("design:type",Object)],jQ.prototype,"baseUrl",void 0);_.E([_.d({computed:"liveChatPageUrl(baseUrl, collapsed, data, forceDarkTheme)"}),_.h("design:type",String)],jQ.prototype,"url",void 0);_.E([_.d(),_.h("design:type",Object)],jQ.prototype,"isHiddenByUser",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isHidden(collapsed, data, enableShowWithoutHideChatButton)"}),_.h("design:type",Object)],jQ.prototype,"hidden",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"isCollapsed(data,isHiddenByUser)"}),_.h("design:type",Boolean)],jQ.prototype,"collapsed",void 0);_.E([_.d({reflectToAttribute:!0,computed:"shouldHideChatFrame(collapsed)"}),_.h("design:type",Boolean)],jQ.prototype,"hideChatFrame",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"showAboveScrim",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"watchNextGrid",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],jQ.prototype,"modernButtons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"noBorder",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],jQ.prototype,"roundBackground",void 0);
_.E([_.d({computed:"computeButtonOverride(collapsed,modernButtons)"}),_.h("design:type",Object)],jQ.prototype,"toggleButtonOverride",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],jQ.prototype,"overflowHideChat",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"forceDarkTheme",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],jQ.prototype,"enableShowWithoutHideChatButton",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],jQ.prototype,"theaterWatchWhile",void 0);_.E([_.z$("#chatframe"),_.h("design:type",HTMLIFrameElement)],jQ.prototype,"chatframe",void 0);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jQ.prototype,"onShowHideChat",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jQ.prototype,"dataChanged",null);
_.E([_.FI("url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jQ.prototype,"urlChanged",null);_.E([_.FI("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jQ.prototype,"collapsedChanged",null);jQ=_.E([_.m({is:"ytd-live-chat-frame",disableElementRegistration:!0})],jQ);
_.Z(jQ,"ytd-live-chat-frame",function(){if(SxK!==void 0)return SxK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return SxK=I},{mode:1});var KER;var lx=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_modern_buttons");I.buttonOverrides={style:"call-to-action",type:"filled"};return I};
_.R(lx,_.q);lx.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=_.lg(this.data.backgroundColor)))};
lx.prototype.onHeadlineClick=function(){if(this.data&&this.data.headline){var I=this.getFormattedStringLoggingDirectives(this.data.headline);I&&this.rendererBehavior.logExplicitClick(I)}};
lx.prototype.onDescriptionClick=function(){if(this.data&&this.data.description){var I=this.getFormattedStringLoggingDirectives(this.data.description);I&&this.rendererBehavior.logExplicitClick(I)}};
lx.prototype.getFormattedStringLoggingDirectives=function(I){return I&&I.runs&&I.runs.length>0&&I.runs[0]&&I.runs[0].loggingDirectives?I.runs[0].loggingDirectives:null};
lx.prototype.dataChanged=lx.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lx.prototype,"rendererBehavior",void 0);_.E([_.g(QoY.YtMacroReplacementBehavior),_.h("design:type",Object)],lx.prototype,"macroReplacementBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lx.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],lx.prototype,"navigationEndpoint",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],lx.prototype,"enableColors",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lx.prototype,"modern",void 0);_.E([_.d(),_.h("design:type",Object)],lx.prototype,"buttonOverrides",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lx.prototype,"dataChanged",null);lx=_.E([_.m({is:"ytd-action-basic-immersive-content-renderer",disableElementRegistration:!0})],lx);
_.Z(lx,"ytd-action-basic-immersive-content-renderer",function(){if(KER!==void 0)return KER;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return KER=I},{mode:1});var AOY;var gEH;var X7=function(){return _.q.apply(this,arguments)||this};
_.R(X7,_.q);X7.prototype.dataChanged=function(){var I;((I=this.data)==null?void 0:I.backgroundColor)!==void 0&&_.CK(this.hostElement,{"--bgu-color":_.lg(this.data.backgroundColor)})};
X7.prototype.onImageTileClick=function(){var I;((I=this.data)==null?0:I.navigationEndpoint)&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});var C;((C=this.data)==null?0:C.clickCommand)&&this.componentBehavior.resolveCommand(this.data.clickCommand)};
_.H1.Object.defineProperties(X7.prototype,{hasBackgroundColor:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.backgroundColor)!==void 0}},
getObjectFit:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.data)==null?void 0:I.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 I;return((I=this.data)==null?void 0:I.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"}},
getSecondaryDetails:{configurable:!0,enumerable:!0,get:function(){var I,C,y;if(((I=this.data)==null?void 0:(C=I.detailsLine)==null?void 0:C.texts)!=null&&((y=this.data)==null?void 0:y.detailsLine.texts.length)>0){var k;return(k=this.data)==null?void 0:k.detailsLine.texts.map(function(F){return F.text}).join("")}return null}},
getOptionalDetails:{configurable:!0,enumerable:!0,get:function(){var I,C,y;if(((I=this.data)==null?void 0:(C=I.optionalDetailsLine)==null?void 0:C.texts)!=null&&((y=this.data)==null?void 0:y.optionalDetailsLine.texts.length)>0){var k;return(k=this.data)==null?void 0:k.optionalDetailsLine.texts.map(function(F){return F.text}).join("")}return null}}});
X7.prototype.dataChanged=X7.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],X7.prototype,"rendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],X7.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],X7.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.backgroundColor"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],X7.prototype,"hasBackgroundColor",null);
_.E([_.v("data.objectFit"),_.h("design:type",Object),_.h("design:paramtypes",[])],X7.prototype,"getObjectFit",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.tileRenderingStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],X7.prototype,"hasTileMetadata",null);_.E([_.v("data.detailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],X7.prototype,"getSecondaryDetails",null);
_.E([_.v("data.optionalDetailsLine"),_.h("design:type",Object),_.h("design:paramtypes",[])],X7.prototype,"getOptionalDetails",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X7.prototype,"dataChanged",null);X7=_.E([_.m({is:"ytd-image-tile-renderer",disableElementRegistration:!0})],X7);
_.Z(X7,"ytd-image-tile-renderer",function(){if(gEH!==void 0)return gEH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return gEH=I},{mode:1});var vER;var $c=function(){return _.q.apply(this,arguments)||this};
_.R($c,_.q);$c.prototype.getOpenLinkIcon=function(){return _.V("swap_open_in_new_with_arrow_diagonal_up_right_on_desktop")?"arrow_diagonal_up_right":"open_in_new"};
$c.prototype.onSitelinkTap=function(){_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint});if(this.data&&this.data.clickCommands)if(_.V("kevlar_command_handler_migration_killswitch"))_.cQ(this.hostElement,this.data.clickCommands,this.hostElement);else for(var I=_.T(this.data.clickCommands),C=I.next();!C.done;C=I.next())this.ytComponentBehavior.resolveCommand(C.value)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],$c.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$c.prototype,"rendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$c.prototype,"data",void 0);$c=_.E([_.m({is:"ytd-sitelink-renderer",disableElementRegistration:!0})],$c);
_.Z($c,"ytd-sitelink-renderer",function(){if(vER!==void 0)return vER;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return vER=I},{mode:1});var Rp=function(){var I=_.q.apply(this,arguments)||this;I.paddingFix=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return I};
_.R(Rp,_.q);Rp.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"}}}};
Rp.prototype.dataChanged=function(){var I=this;this.data&&this.data.impressionCommands&&this.data.impressionCommands.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;I.ytMacroReplacementBehavior.sendServiceRequestAction([C])})};
Rp.prototype.shouldHideFooter=function(I){return!(I&&_.V("use_ads_engagement_panel_desktop_footer_cta"))};
_.H1.Object.defineProperties(Rp.prototype,{removeBorderFromImageTiles:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var k;return(k=_.l(y,p_y))==null?void 0:k.removeBorder})}},
useFooteredMetadataRenderingStyle:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.imageTileRenderers)===void 0||((C=this.data)==null?void 0:C.imageTileRenderers.length)===0?!1:this.data.imageTileRenderers.some(function(y){var k;return((k=_.l(y,p_y))==null?void 0:k.tileRenderingStyle)==="TILE_RENDERING_STYLE_FOOTERED_METADATA"})}}});
Rp.prototype.dataChanged=Rp.prototype.dataChanged;_.E([_.g(QoY.YtMacroReplacementBehavior),_.h("design:type",Object)],Rp.prototype,"ytMacroReplacementBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Rp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Rp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Rp.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Rp.prototype,"paddingFix",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Rp.prototype,"removeBorderFromImageTiles",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.imageTileRenderers"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Rp.prototype,"useFooteredMetadataRenderingStyle",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rp.prototype,"dataChanged",null);Rp=_.E([_.m({is:"ytd-action-engagement-panel-content-renderer",disableElementRegistration:!0})],Rp);
_.Z(Rp,"ytd-action-engagement-panel-content-renderer",function(){if(AOY!==void 0)return AOY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return AOY=I},{mode:1});var WEK;var d4R=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});return _.P("ad-grid-card-image-full-metadata-view-model",{class:function(){var k;return((k=C().interaction)==null?0:k.onTap)?"ytwAdGridCardImageFullMetadataViewModelHostIsClickableAdComponent":"ytwAdGridCardImageFullMetadataViewModelHost"},
el:I,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostImage"},_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(k){return _.P(_.IO,{data:k.data,
customCommandResolver:y})}})),_.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadata"},_.P(_.Dx,{cond:function(){return C().headline},
then:function(k){return _.P(_.wh,{text:k,className:"ytwAdGridCardImageFullMetadataViewModelHostMetadataHeadline"})}}),_.P(_.Dx,{cond:function(){return C().detailsLine},
then:function(k){return _.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataPrimary"},_.P(_.lY,{data:k},{adDetailsLineViewModel:function(F){return _.P(_.h2,{data:F.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}}),_.P(_.Dx,{cond:function(){return C().secondaryDetailsLine},
then:function(k){return _.P("div",{class:"ytwAdGridCardImageFullMetadataViewModelHostMetadataSecondary"},_.P(_.lY,{data:k},{adDetailsLineViewModel:function(F){return _.P(_.h2,{data:F.data,customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))}})))},"ni");var x4Y=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});return _.P("ad-grid-card-image-view-model",{class:function(){var k;return((k=C().interaction)==null?0:k.onTap)?"ytwAdGridCardImageViewModelHostIsClickableAdComponent":"ytwAdGridCardImageViewModelHost"},
el:I,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(k){return _.P(_.IO,{data:k.data,
customCommandResolver:y})}}),_.P("div",{class:"ytwAdGridCardImageViewModelHostCardBadge"},_.P(_.lY,{data:function(){return C().adCardBadge}},{adCardBadgeViewModel:_.qfP})))},"oi");var qxR=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});return _.P("ad-grid-card-text-view-model",{class:function(){var k;return((k=C().interaction)==null?0:k.onTap)?"ytwAdGridCardTextViewModelHostIsClickableAdComponent":"ytwAdGridCardTextViewModelHost"},
el:I,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P("div",{class:"ytwAdGridCardTextViewModelHostMetadata"},_.P(_.Dx,{cond:function(){return C().title},
then:function(k){return _.P(_.wh,{text:k,className:"ytwAdGridCardTextViewModelHostMetadataHeadline"})}}),_.P("div",{class:function(){return _.V("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInline":"ytwAdGridCardTextViewModelHostMetadataDescription"}},_.P(_.pH,{each:function(){var k;
return((k=C())==null?void 0:k.descriptions)||[]},
keyBy:"INDEX"},function(k){return _.P(_.wh,{text:k,className:function(){return _.V("desktop_sitelinks_inline_descriptions")?"ytwAdGridCardTextViewModelHostMetadataDescriptionInlineStringInline":"ytwAdGridCardTextViewModelHostMetadataDescriptionString"}})}))),_.P("div",{class:"ytwAdGridCardTextViewModelHostButton"},_.P(_.lY,{data:function(){return C().moreInfoButton}},{adButtonViewModel:function(k){return _.P(_.qr,{data:k.data,
customCommandResolver:y})}})))},"pi");var m4R=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;var k=I.adGridCardCollectionStyle;I=_.Es();_.a0(I,{visibilityCallback:function(F){var z,c=(z=C().interaction)==null?void 0:z.onFirstVisible;F&&c&&_.Gp(c)},
showOption:_.dF});return _.P("ad-grid-card-collection-view-model",{class:function(){return"ytwAdGridCardCollectionViewModelHost"},
el:I,style:function(){return"grid-template-columns: repeat("+fqH(k?k():C().style)+", minmax(0, 1fr));"}},_.P(_.lY,{data:function(){var F;
return(F=C())==null?void 0:F.gridCards}},{adGridCardImageViewModel:function(F){return _.P(x4Y,{data:F.data,
customCommandResolver:y})},
adGridCardImageFullMetadataViewModel:function(F){return _.P(d4R,{data:F.data,customCommandResolver:y})},
adGridCardTextViewModel:function(F){return _.P(qxR,{data:F.data,customCommandResolver:y})}}))},"qi");_.B9(_.BO(function(I){var C=I.data;I=_.Es();_.UG(I,function(){return C().interaction},Sc8);
_.a0(I,{visibilityCallback:function(y){var k,F=(k=C().interaction)==null?void 0:k.onFirstVisible;y&&F&&_.Gp(F)},
showOption:_.dF});return _.P("panel-text-icon-image-tiles-button-layout-content-view-model",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHost",el:I},_.P("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostCardCollection"},_.P(_.Dx,{cond:_.iU9("(min-width: "+((0,_.Nw)()+_.gN)+"px)"),then:function(){return _.P(_.lY,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.P(m4R,{data:y.data,
customCommandResolver:Sc8})}})},
else:function(){return _.P(_.lY,{data:function(){return C().adGridCardCollection}},{adGridCardCollectionViewModel:function(y){return _.P(m4R,{data:y.data,
customCommandResolver:Sc8,adGridCardCollectionStyle:"AD_GRID_CARD_COLLECTION_STYLE_FIXED_SIX_COLUMNS"})}})}})),_.P("div",{class:"ytwPanelTextIconImageTilesButtonLayoutContentViewModelHostButton"},_.P(_.lY,{data:function(){return C().adButton}},{adButtonViewModel:function(y){return _.P(_.qr,{data:y.data,
customCommandResolver:Sc8})}})))},"ri"),"panel-text-icon-image-tiles-button-layout-content-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;I=_.Es();_.UG(I,function(){return C().interaction},KSS);
_.a0(I,{visibilityCallback:function(y){var k,F=(k=C().interaction)==null?void 0:k.onFirstVisible;y&&F&&_.Gp(F)},
showOption:_.dF});return _.P("panel-text-icon-text-grid-cards-sub-layout-content-view-model",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHost",el:I},_.P("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostCardCollection"},_.P(_.lY,{data:function(){if(_.iU9("(min-width: "+((0,_.Nw)()+_.gN)+"px)")())var y=C().adGridCardCollection;else{y=Object.assign({},_.l(C().adGridCardCollection,QyB));var k;y.gridCards!==void 0&&((k=y.gridCards)==null?void 0:k.length)>1?y.style=
"AD_GRID_CARD_COLLECTION_STYLE_FIXED_TWO_COLUMNS":y.style="AD_GRID_CARD_COLLECTION_STYLE_FIXED_ONE_COLUMN";y={adGridCardCollectionViewModel:y}}return y}},{adGridCardCollectionViewModel:function(y){return _.P(m4R,{data:y.data,
customCommandResolver:KSS})}})),_.P("div",{class:"ytwPanelTextIconTextGridCardsSubLayoutContentViewModelHostButton"},_.P(_.lY,{data:function(){return C().adButton}},{adButtonViewModel:function(y){return _.P(_.qr,{data:y.data,
customCommandResolver:KSS})}})))},"si"),"panel-text-icon-text-grid-cards-sub-layout-content-view-model",{props:{data:_.As}});var bx=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-ad-engagement-panel-click-action":"handleAdsEngagementPanelClick"};return I};
_.R(bx,_.q);_.u=bx.prototype;_.u.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"}}}};
_.u.attached=function(){this.getDataFromPlayerAndRender()};
_.u.dataChanged=function(){this.getDataFromPlayerAndRender()};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=null)};
_.u.getDataFromPlayerAndRender=function(){var I=this,C=_.hU(this.hostElement);C&&C.getPlayerPromise().then(function(y){I.getCachedDataAndListen(y)})};
_.u.getCachedDataAndListen=function(I){this.resolveCachedActions();this.player||(this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"updateEngagementPanelAction",this.sendUpdateEngagementPanelAction),this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"changeEngagementPanelVisibility",this.sendChangeEngagementPanelVisibilityAction),this.player=I)};
_.u.resolveCachedActions=function(){var I=_.d5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction");(I=I&&I())&&!_.Le.isEmpty(I)&&this.sendUpdateEngagementPanelAction(I);(I=(I=_.d5("yt.www.ads.eventcache.getLastChangeEngagementPanelVisibilityAction"))&&I())&&!_.Le.isEmpty(I)&&this.sendChangeEngagementPanelVisibilityAction(I);(I=(I=_.d5("yt.www.ads.eventcache.getLastScrollToEngagementPanelCommand"))&&I())&&!_.Le.isEmpty(I)&&this.sendScrollToEngagementPanelCommand(I)};
_.u.sendUpdateEngagementPanelAction=function(I){var C;_.Fe(this.hostElement,"yt-update-engagement-panel-action",[(C=_.Le.get(I,"action"))!=null?C:I])};
_.u.sendChangeEngagementPanelVisibilityAction=function(I){_.Fe(this.hostElement,"yt-change-engagement-panel-visibility-action",[I])};
_.u.sendScrollToEngagementPanelCommand=function(I){_.Fe(this.hostElement,"yt-scroll-to-engagement-panel-command",[I])};
_.u.handleAdsEngagementPanelClick=function(){this.player?(this.player.onAdUxClicked("ads-engagement-panel"),_.V("pause_ad_video_on_desktop_engagement_panel_click")&&this.player.pauseVideo()):_.SN(Error("gm"))};
bx.prototype.dataChanged=bx.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],bx.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],bx.prototype,"componentBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],bx.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bx.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bx.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],bx.prototype,"player",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bx.prototype,"dataChanged",null);bx=_.E([_.m({is:"ytd-ads-engagement-panel-content-renderer",disableElementRegistration:!0})],bx);
_.Z(bx,"ytd-ads-engagement-panel-content-renderer",function(){if(WEK!==void 0)return WEK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return WEK=I},{mode:1});var Z3P;var Yc=function(){var I=_.q.apply(this,arguments)||this;I.player=null;I.JSC$19858_playerEvents=new Map;I.actionMap={"yt-delete-clip-engagement-panel-command":"onYtDeleteClipEngagementPanelCommand"};return I};
_.R(Yc,_.q);_.u=Yc.prototype;_.u.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]]"}}}}}};
_.u.created=function(){this.player=null;this.JSC$19858_playerEvents=new Map;this.JSC$19858_playerEvents.set("onLoopRangeChange",this.onLoopRangeChange);this.JSC$19858_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19858_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19858_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.u.attached=function(){var I=this,C=_.hU();this.set("isDarkTheme",!!document.documentElement.hasAttribute("dark"));C&&C.getPlayerPromise().then(function(y){I.setPlayer(y);I.set("isPageLoad",!1)})};
_.u.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19858_playerEvents);this.set("player",I);I&&(this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$19858_playerEvents),I.getPresentingPlayerType()===2&&this.playerAdStartHandler())};
_.u.onLoopRangeChange=function(I){var C=_.N().resolve(_.aU(_.BP));if((!C||C.isOnWatch())&&this.hostElement.clientHeight){var y;!I&&((y=this.data)==null?0:y.onScrubExit)&&this.ytComponentBehavior.resolveCommand(this.data.onScrubExit)}};
_.u.onVideoProgress=function(I){var C,y,k=((C=this.player)==null?void 0:(y=C.getPresentingPlayerType)==null?void 0:y.call(C))===2;this.isAdPlaying!==k&&this.set("isAdPlaying",k);var F;if(!k&&(F=this.player)!=null&&F.getLoopRange()){y=this.player.getLoopRange();C=y.startTimeMs;y=y.endTimeMs;k=this.player.getProgressState(1).seekableStart;var z;C<k*1E3&&((z=this.data)==null?0:z.onClipViewInvalidCommand)&&(this.player.seekToLiveHead(),this.ytComponentBehavior.resolveCommand(this.data.onClipViewInvalidCommand));
I=y<I*1E3;var c;((c=this.player)==null?0:c.getLoopRange())&&I&&this.player.seekTo(C/1E3)}};
_.u.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.u.onYtDeleteClipEngagementPanelCommand=function(I){_.l(I,gi8).command&&this.ytComponentBehavior.resolveCommand(_.l(I,gi8).command)};
_.H1.Object.defineProperties(Yc.prototype,{voteCount:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.voteCount)||_.Ee("0")}},
channelEndpoint:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.channelNavigationEndpoint}},
channelHref:{configurable:!0,enumerable:!0,get:function(){return this.ytComponentBehavior.computeHref_(this.channelEndpoint)}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Yc.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Yc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Yc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Yc.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],Yc.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Yc.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Yc.prototype,"isAdPlaying",void 0);_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Yc.prototype,"isPageLoad",void 0);_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Yc.prototype,"isDarkTheme",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yc.prototype,"voteCount",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yc.prototype,"channelEndpoint",null);_.E([_.v("channelEndpoint"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yc.prototype,"channelHref",null);Yc=_.E([_.m({is:"ytd-clip-attribution-renderer",disableElementRegistration:!0})],Yc);
_.Z(Yc,"ytd-clip-attribution-renderer",function(){if(Z3P!==void 0)return Z3P;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Z3P=I},{mode:1});var Bv8;var Gy=function(){var I=_.q.apply(this,arguments)||this;I.player=null;I.JSC$19863_playerEvents=new Map;return I};
_.R(Gy,_.q);_.u=Gy.prototype;_.u.created=function(){this.player=null;this.JSC$19863_playerEvents=new Map;this.JSC$19863_playerEvents.set("onVideoProgress",this.onVideoProgress);this.JSC$19863_playerEvents.set("onAdStart",this.playerAdStartHandler);this.JSC$19863_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler)};
_.u.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.u.attached=function(){var I=this,C=_.hU();C&&C.getPlayerPromise().then(function(y){I.setPlayer(y);I.set("isPageLoad",!1)})};
_.u.setPlayer=function(I){this.player&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19863_playerEvents);this.set("player",I);if(I){this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$19863_playerEvents);var C;(I==null?void 0:(C=I.getPresentingPlayerType)==null?void 0:C.call(I))===2&&this.playerAdStartHandler()}};
_.u.playerAdStartHandler=function(){this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler=function(){this.set("isAdPlaying",!1)};
_.u.onVideoProgress=function(){var I,C,y=((I=this.player)==null?void 0:(C=I.getPresentingPlayerType)==null?void 0:C.call(I))===2;this.isAdPlaying!==y&&this.set("isAdPlaying",y)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Gy.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Gy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],Gy.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Gy.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],Gy.prototype,"isAdPlaying",void 0);
_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Gy.prototype,"isPageLoad",void 0);Gy=_.E([_.m({is:"ytd-clip-section-footer-renderer",disableElementRegistration:!0})],Gy);
_.Z(Gy,"ytd-clip-section-footer-renderer",function(){if(Bv8!==void 0)return Bv8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Bv8=I},{mode:1});var EER;var h6j;var fl=function(){return _.q.apply(this,arguments)||this};
_.R(fl,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fl.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fl.prototype,"data",void 0);fl=_.E([_.m({is:"ytd-clip-ad-state-renderer",disableElementRegistration:!0})],fl);
_.Z(fl,"ytd-clip-ad-state-renderer",function(){if(h6j!==void 0)return h6j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return h6j=I},{mode:1});var U4j;var SQ=function(){var I=_.q.apply(this,arguments)||this;I.value="";I.valid=!1;I.userChangedValue=!1;I.disabled=!1;I.actionMap={"yt-clip-creation-disable":"onClipCreationDisable","yt-clip-creation-enable":"onClipCreationEnable","yt-clip-creation-visibility-changed":"onClipCreationVisibilityChange"};return I};
_.R(SQ,_.q);_.u=SQ.prototype;_.u.detached=function(){this.userChangedValue=!1};
_.u.handleKeyDown=function(I){if(_.u4)var C=13;else _.tUO&&_.z6?C=13:C=13;I.keyCode===C&&I.preventDefault()};
_.u.handleInput=function(){var I=_.f(this.hostElement).querySelector("#title");if(I){var C=(I.value||"").replace(/\r|\n/g," ");this.set("value",C);I.value=C;this.valid=I.validate();this.userChangedValue=!0}};
_.u.handleBlur=function(){this.valid=_.f(this.hostElement).querySelector("#title").validate()};
_.u.onValueChanged=function(){_.k3(this.hostElement,"title-changed",{title:this.value})};
_.u.onValidChanged=function(){_.k3(this.hostElement,"title-valid-changed",{valid:this.valid})};
_.u.setInput=function(I,C){var y=_.f(this.hostElement).querySelector("#title");y&&(y.value=I,this.handleInput(),C&&(y.invalid=!1,this.valid=!0))};
_.u.onClipCreationDisable=function(){this.set("disabled",!0)};
_.u.onClipCreationEnable=function(){this.set("disabled",!1)};
_.u.onClipCreationVisibilityChange=function(I){var C=this;I.visible?requestAnimationFrame(function(){var y;((y=_.f(C.hostElement).querySelector("#title"))==null?void 0:y.inputElement).textarea.focus()}):(this.setInput("",!0),this.userChangedValue=!1)};
SQ.prototype.onValidChanged=SQ.prototype.onValidChanged;SQ.prototype.onValueChanged=SQ.prototype.onValueChanged;SQ.prototype.handleBlur=SQ.prototype.handleBlur;SQ.prototype.handleInput=SQ.prototype.handleInput;SQ.prototype.handleKeyDown=SQ.prototype.handleKeyDown;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],SQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],SQ.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],SQ.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],SQ.prototype,"value",void 0);_.E([_.d(),_.h("design:type",Object)],SQ.prototype,"valid",void 0);_.E([_.d(),_.h("design:type",Object)],SQ.prototype,"userChangedValue",void 0);_.E([_.d(),_.h("design:type",Object)],SQ.prototype,"disabled",void 0);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],SQ.prototype,"handleKeyDown",null);
_.E([_.km("input"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SQ.prototype,"handleInput",null);_.E([_.km("blur"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SQ.prototype,"handleBlur",null);_.E([_.FI("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SQ.prototype,"onValueChanged",null);
_.E([_.FI("valid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],SQ.prototype,"onValidChanged",null);SQ=_.E([_.m({is:"ytd-clip-creation-text-input-renderer",disableElementRegistration:!0})],SQ);
_.Z(SQ,"ytd-clip-creation-text-input-renderer",function(){if(U4j!==void 0)return U4j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return U4j=I},{mode:1});var H3L;var tq8;var JOH;var O3Y;var aPP;var Kl=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled_","yt-clip-creation-enable":"onClipCreationEnable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};I.pendingStoryboardImages_={};I.pixelRatioBreakpoints_=["1dppx","1.5dppx","2dppx","3dppx"];I.tickLabelInterval=30;I.mediumTickInterval=5;I.largeTickInterval=15;I.aboveRulerHeight=32;I.rulerHeight=50;I.smallTickHeight=4;I.mediumTickHeight=8;I.largeTickHeight=16;I.mediaListeners_=
{};return I};
_.R(Kl,_.q);_.u=Kl.prototype;_.u.attached=function(){var I=this;this.updatePixelRatio_();this.pixelRatioBreakpoints_.forEach(function(C){C=_.T(["screen and (min-resolution: "+C+")","screen and (max-resolution: "+C+")"]);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=window.matchMedia(y);k&&(I.mediaListeners_[y]=I.updatePixelRatio_.bind(I),k.addEventListener?k.addEventListener("change",I.mediaListeners_[y]):k.addListener?k.addListener(I.mediaListeners_[y]):delete I.mediaListeners_[y])}})};
_.u.detached=function(){this.setPlayer(null);for(var I=_.T(Object.keys(this.mediaListeners_)),C=I.next();!C.done;C=I.next()){var y=C.value;C=this.mediaListeners_[y];(y=window.matchMedia(y))&&(y.removeEventListener?y.removeEventListener("change",C):y.removeListener&&y.removeListener(C))}this.mediaListeners_={};this.storyboardImages_&&this.splice("storyboardImages_",0,this.storyboardImages_.length)};
_.u.onVisibilityChangedAction_=function(I){var C=this;I.visible&&!this.player_&&(I=_.hU())&&I.getPlayerPromise().then(function(y){C.setPlayer(y)})};
_.u.setPlayer=function(I){I&&this.set("player_",I)};
_.u.updatePixelRatio_=function(){this.set("devicePixelRatio_",Math.max(1,window.devicePixelRatio))};
_.u.setUpCanvas_=function(){var I=this.rulerWidth,C=this.devicePixelRatio_,y=this.visible;this.set("canvasReady_",!1);if(y&&C!==0){y=this.aboveRulerHeight+this.rulerHeight;var k=_.f(this.hostElement).querySelector("#ticks");k.width=I*C;k.height=y*C;k.style.width=I+"px";k.style.height=y+"px";k.getContext("2d").scale(C,C);this.set("canvasReady_",!0)}};
_.u.drawRuler_=function(I,C,y,k,F,z,c,r,w,L,D,p){I&&y&&C&&(I=_.f(this.hostElement).querySelector("#ticks"),C=I.getContext("2d"),C.clearRect(0,0,I.width,I.height),C.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),C.lineWidth=2,C.beginPath(),C.moveTo(0,this.aboveRulerHeight),C.lineTo(I.width,this.aboveRulerHeight),C.moveTo(0,I.height),C.lineTo(I.width,I.height),C.stroke(),this.drawRulerTicks_(I,z,F,k),this.drawStoryboardImages_(I,y,z,F,k),C.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-themed-overlay-background"),
C.fillRect(0,this.aboveRulerHeight,this.timeToPixels_(c-z,k,!1),this.rulerHeight),y=this.timeToPixels_(r-z,k,!1),C.fillRect(y,this.aboveRulerHeight,I.width-y,this.rulerHeight),this.drawSpeedLines_(I,z,p))};
_.u.drawRulerTicks_=function(I,C,y,k){var F=I.getContext("2d");F.save();F.lineWidth=1;for(var z=Math.floor(Math.max(0,C-this.tickLabelInterval));z<C+y;z++){F.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled");var c=(z-C)*k;F.beginPath();F.moveTo(c,I.height);var r=this.smallTickHeight;z%this.largeTickInterval===0?r=this.largeTickHeight:z%this.mediumTickInterval===0&&(r=this.mediumTickHeight);F.lineTo(c,I.height-r);F.stroke();z%this.tickLabelInterval===0&&(F.font=
getComputedStyle(this.hostElement).getPropertyValue("font"),F.fillStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-disabled"),F.fillText(R2(z),c+4,12),F.strokeStyle=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-10-percent-layer"),F.moveTo(c,0),F.lineTo(c,this.aboveRulerHeight),F.stroke())}F.restore()};
_.u.percentToHex_=function(I){I=Math.round(I*255).toString(16);I.length<2&&(I="0"+I);return I};
_.u.drawSpeedLines_=function(I,C,y){var k=I.getContext("2d");k.save();var F=Math.min(25,Math.abs(y)-15)/25,z=I.width*.3*F,c=I.width*-.3,r=I.width*1.3,w=this.aboveRulerHeight;I=I.height;var L=Math.round(4*F),D=getComputedStyle(this.hostElement).getPropertyValue("--yt-spec-text-primary");D.length<7&&(D="#"+D.substring(1,4).repeat(2));var p=this.percentToHex_(.5+F/2);p=D+p;D+="00";if(F>0)for(F=0;F<L;F++){var Q=c+Math.random()*(r-c),X=w+Math.random()*(I-w),b=z+C%z,S=k.createLinearGradient(Q,X,Q+b,X);
y<0?(S.addColorStop(0,p),S.addColorStop(.4,p),S.addColorStop(.9,D)):(S.addColorStop(.1,D),S.addColorStop(.6,p),S.addColorStop(1,p));k.strokeStyle=S;k.lineWidth=1;k.beginPath();k.moveTo(Q,X);k.lineTo(Q+b,X);k.stroke()}k.restore()};
_.u.getStoryboardForTime_=function(I,C,y){y===void 0&&(y=C.getNumberOfStoryboardLevels()-1);I=C.getStoryboardFrameIndex(I,y);return C.getStoryboardFrame(I,y)};
_.u.drawStoryboardImages_=function(I,C,y,k,F){if(!this.disabled){I=I.getContext("2d");var z=this.getStoryboardForTime_(0,C);if(z){var c=z.width/z.columns;z=z.height/z.rows;var r=c/z,w=this.rulerHeight*r;w=this.tickLabelInterval*(r<this.tickLabelInterval*F/this.rulerHeight?1/Math.floor(this.tickLabelInterval*F/w):Math.round(w/(this.tickLabelInterval*F)));var L=w*F,D=this.rulerHeight,p=L/this.rulerHeight,Q=Math.floor(Math.max(0,y-w));for(Q-=Q%w;Q<y+k;Q+=w){var X=this.getStoryboardForTime_(Q,C),b=this.getPreloadedStoryboard_(X.url);
if(b){var S=(Q-y)*F,A=this.aboveRulerHeight,x=X.column*c,B=X.row*z;if(r<p){var t=D/(L/r);X=c;t*=z;B+=(z-t)/2}else X=L/(D*r)*c,t=z,x+=(c-X)/2;I.drawImage(b,x,B,X,t,S,A,L,D)}else this.fetchStoryboardImage_(X)}}}};
_.u.getPreloadedStoryboard_=function(I){return this.storyboardImages_.find(function(C){if(C.src==I)return!0;var y=C.src.indexOf(I);return y!=-1&&y==C.src.length-I.length})};
_.u.fetchStoryboardImage_=function(I){var C=this,y=this.getPreloadedStoryboard_(I.url),k=this.pendingStoryboardImages_[I.url];y||k!==void 0||(y=new Promise(function(F){var z=new Image(I.width,I.height);z.src=I.url;z.onload=function(){F(z)};
z.onerror=function(){F(null)}}),this.pendingStoryboardImages_[I.url]=y,y.then(function(F){F&&C.push("storyboardImages_",F);
return F}).finally(function(){delete C.pendingStoryboardImages_[I.url]}))};
_.u.onClipCreationEnable_=function(){this.set("forceRender_",this.forceRender_+1)};
_.u.timeToPixels_=function(I,C,y){I*=C;return y===void 0||y?I+"px":I};
_.u.onDarkModeToggled_=function(){this.set("forceRender_",this.forceRender_+1)};
Kl.prototype.drawRuler_=Kl.prototype.drawRuler_;Kl.prototype.setUpCanvas_=Kl.prototype.setUpCanvas_;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Kl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Kl.prototype,"ytRendererBehavior",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Kl.prototype,"start",void 0);_.E([_.d({value:30}),_.h("design:type",Number)],Kl.prototype,"end",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],Kl.prototype,"visible",void 0);_.E([_.d(),_.h("design:type",Object)],Kl.prototype,"player_",void 0);_.E([_.d(),_.h("design:type",Number)],Kl.prototype,"tickSpacing",void 0);_.E([_.d(),_.h("design:type",Number)],Kl.prototype,"windowSizeSec",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Kl.prototype,"rulerWidth",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Kl.prototype,"rulerShift",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],Kl.prototype,"canvasReady_",void 0);_.E([_.d({value:function(){return[]}}),
_.h("design:type",Array)],Kl.prototype,"storyboardImages_",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Kl.prototype,"disabled",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Kl.prototype,"forceRender_",void 0);_.E([_.d({value:1}),_.h("design:type",Number)],Kl.prototype,"devicePixelRatio_",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Kl.prototype,"windowSpeed",void 0);
_.E([_.FI("visible","devicePixelRatio_","rulerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Kl.prototype,"setUpCanvas_",null);
_.E([_.FI("visible","canvasReady_","player_","tickSpacing","windowSizeSec","rulerShift","start","end","storyboardImages_.*","forceRender_","disabled","windowSpeed"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean,Boolean,Object,Number,Number,Number,Number,Number,Object,Number,Boolean,Number]),_.h("design:returntype")],Kl.prototype,"drawRuler_",null);Kl=_.E([_.lT({is:"yt-clip-creation-scrubber-canvas",disableElementRegistration:!0})],Kl);
_.Z(Kl,"yt-clip-creation-scrubber-canvas",function(){if(aPP===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);aPP=I}I=aPP;return I},
{mode:2});var MqY;var IOH;var Al=function(){var I=_.q.apply(this,arguments)||this;I.start=0;I.end=30;I.visible=!1;I.draggingLeft_=!1;I.draggingRight_=!1;I.draggingRuler_=!1;I.draggingWindow_=!1;I.seekableStart=0;I.seekableEnd=0;I.rulerWidth_=0;I.rulerShift_=0;I.windowSlideSpeed=0;I.disabled=!1;I.initialized=!1;I.durationAccessibilityLabel="";I.activeLoopRange_=!1;I.rulerDragMouseStart_=0;I.rulerDragRulerStart_=0;I.rulerDragStartTime_=0;I.rulerDragEndTime_=0;I.dragMouseLastX_=0;I.scrollInterval_=null;I.scrubberVe_=null;I.boundHandlers_=
{};I.actionMap={"yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return I};
_.R(Al,_.q);_.u=Al.prototype;
_.u.created=function(){var I=this;this.JSC$19876_playerEvents=new Map;this.JSC$19876_playerEvents.set("onVideoProgress",this.onVideoProgress_);this.JSC$19876_playerEvents.set("SEEK_COMPLETE",this.onSeekComplete_);this.JSC$19876_playerEvents.set("onStateChange",this.onStateChange_);var C={mouseup:this.endDrag_,mousemove:this.handleMouseDrag_,resize:this.updateRulerSize_,handles_mousedown:this.beginHandleDrag_,ruler_mousedown:this.beginRulerDrag_};Object.keys(C).forEach(function(y){I.boundHandlers_[y]=C[y].bind(I)})};
_.u.attached=function(){this.activeLoopRange_=!1;_.f(this.hostElement).querySelector("#handles").addEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.f(this.hostElement).querySelector("#ticks").addEventListener("mousedown",this.boundHandlers_.ruler_mousedown);window.addEventListener("resize",this.boundHandlers_.resize);this.scrubberVe_=_.Dn(156731)};
_.u.detached=function(){this.setPlayer(null);window.removeEventListener("resize",this.boundHandlers_.resize);this.removeMouseEventHandlers_();_.f(this.hostElement).querySelector("#handles").removeEventListener("mousedown",this.boundHandlers_.handles_mousedown);_.f(this.hostElement).querySelector("#ticks").removeEventListener("mousedown",this.boundHandlers_.ruler_mousedown)};
_.u.onVisibilityChangedAction_=function(I){var C=this;I.visible&&!this.player_&&(I=_.hU())&&I.getPlayerPromise().then(function(y){C.setPlayer(y)})};
_.u.setPlayer=function(I){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19876_playerEvents);I&&(this.set("player_",I),this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$19876_playerEvents))};
_.u.addMouseEventHandlers_=function(){window.addEventListener("mouseup",this.boundHandlers_.mouseup);window.addEventListener("mousemove",this.boundHandlers_.mousemove)};
_.u.removeMouseEventHandlers_=function(){window.removeEventListener("mouseup",this.boundHandlers_.mouseup);window.removeEventListener("mousemove",this.boundHandlers_.mousemove)};
_.u.beginHandleDrag_=function(I){this.disabled||(I.preventDefault(),this.draggingWindow_=this.draggingRuler_=this.draggingRight_=this.draggingLeft_=!1,this.dragMouseLastX_=I.clientX,I.target===_.f(this.hostElement).querySelector("#handle-left")?this.beginLeftHandleDrag_():I.target===_.f(this.hostElement).querySelector("#handle-right")?this.beginRightHandleDrag_():this.beginWindowDrag_())};
_.u.beginLeftHandleDrag_=function(){this.draggingLeft_=!0;this.beginDrag_()};
_.u.beginRightHandleDrag_=function(){this.draggingRight_=!0;this.beginDrag_()};
_.u.beginWindowDrag_=function(){this.disabled||(this.draggingWindow_=!0,this.beginWindowScroll_(),this.beginDrag_())};
_.u.beginRulerDrag_=function(I){this.disabled||(I.preventDefault(),this.draggingRight_=this.draggingLeft_=!1,this.draggingRuler_=!0,this.draggingWindow_=!1,this.rulerDragMouseStart_=I.clientX,this.rulerDragRulerStart_=this.rulerShift_,this.rulerDragStartTime_=this.start,this.rulerDragEndTime_=this.end,this.beginDrag_())};
_.u.beginDrag_=function(){this.player_.pauseVideo();this.addMouseEventHandlers_()};
_.u.beginWindowScroll_=function(){var I=this;this.scrollInterval_=setInterval(function(){var C=I.windowSlideSpeed;if(C=_.I2R(I.start,I.boundedRulerStartLimit_())?C-.1:_.I2R(I.end,I.boundedRulerEndLimit_())?C+.1:0){var y=I.capRulerOffset_(I.rulerShift_+C);y==I.rulerShift_?C=0:(I.set("rulerShift_",y),_.k3(I.hostElement,"set-fixed-length-range",{start:I.start+C,duration:I.end-I.start}))}I.set("windowSlideSpeed",C)},33)};
_.u.endWindowScroll_=function(){this.scrollInterval_&&(clearInterval(this.scrollInterval_),this.scrollInterval_=null,this.windowSlideSpeed=0)};
_.u.endDrag_=function(){this.logClick();var I=void 0;this.draggingRight_?I=this.end-1:this.draggingLeft_&&(I=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,I);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))};
_.u.onVisibleChanged_=function(){this.visible&&this.updateRulerSize_()};
_.u.updateRulerSize_=function(){this.set("rulerWidth_",_.f(this.hostElement).querySelector("#ruler").getBoundingClientRect().width)};
_.u.handleMouseDrag_=function(I){I.buttons==0&&(this.draggingLeft_||this.draggingRight_||this.draggingRuler_||this.draggingWindow_)&&this.endDrag_();this.disabled||(this.draggingRuler_?this.handleRulerDrag_(I):this.draggingLeft_||this.draggingRight_?this.handleWindowHandleDrag_(I):this.draggingWindow_&&this.handleWindowDrag_(I))};
_.u.handleRulerDrag_=function(I){I=this.pixelsToTime_(I.clientX-this.rulerDragMouseStart_);I=this.capRulerOffset_(this.rulerDragRulerStart_-I);this.set("rulerShift_",I);var C=this.rulerDragStartTime_-(this.rulerDragRulerStart_-I);_.k3(this.hostElement,"set-fixed-length-range",{start:C,duration:this.rulerDragEndTime_-(this.rulerDragRulerStart_-I)-C})};
_.u.handleWindowDrag_=function(I){var C=I.clientX-this.dragMouseLastX_;this.dragMouseLastX_=I.clientX;I=this.pixelsToTime_(C);_.k3(this.hostElement,"set-fixed-length-range",{start:this.start+I,duration:this.end-this.start,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.u.capRulerOffset_=function(I){var C=this.seekableStart-this.pixelsToTime_(16),y=this.seekableEnd-this.windowSizeSec_+this.pixelsToTime_(16);return Math.min(Math.max(C,I),y)};
_.u.boundedRulerStartLimit_=function(){return this.rulerShift_+this.pixelsToTime_(16)};
_.u.boundedRulerEndLimit_=function(){return this.rulerShift_+this.windowSizeSec_-this.pixelsToTime_(16)};
_.u.draggableStartLimit_=function(){return Math.max(this.boundedRulerStartLimit_(),this.seekableStart)};
_.u.draggableEndLimit_=function(){return Math.min(this.boundedRulerEndLimit_(),this.seekableEnd)};
_.u.handleWindowHandleDrag_=function(I){var C=I.clientX-this.dragMouseLastX_;this.dragMouseLastX_=I.clientX;I=this.pixelsToTime_(C);if(this.draggingLeft_){var y=this.start+I;var k=this.end}else this.draggingRight_&&(y=this.start,k=this.end+I);_.k3(this.hostElement,"set-range",{start:y,end:k,startLimit:this.draggableStartLimit_(),endLimit:this.draggableEndLimit_()})};
_.u.onVideoProgress_=function(I){this.disabled||(I=this.timeToPixels_(I-this.rulerShift_,this.tickSpacing_),_.f(this.hostElement).querySelector("#playhead").style.transform="translateX("+I+")")};
_.u.onClipCreationDisable_=function(){this.endDrag_()};
_.u.timeToPixels_=function(I,C,y){I*=C;return y===void 0||y?I+"px":I};
_.u.pixelsToTime_=function(I){return I/this.tickSpacing_};
_.u.onInitializedChanged_=function(){this.initialized&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.u.centerRuler_=function(I,C,y){this.set("rulerShift_",this.capRulerOffset_(I+(C-I)/2-y/2))};
_.u.onUpdateLoopRange=function(){this.updateLoopRange_(this.player_,this.visible,this.disabled,this.initialized,this.start,this.end)};
_.u.updateLoopRange_=function(I,C,y,k,F,z,c){I&&(C&&k&&!y?(this.draggingLeft_||this.draggingRuler_||this.draggingWindow_?(I.pauseVideo(),I.seekTo(F,!1,void 0,void 0,50)):this.draggingRight_?(I.pauseVideo(),I.seekTo(z-.1,!1,void 0,void 0,50)):(c!==void 0?I.seekTo(c,!0,void 0,void 0,50):(C=I.getCurrentTime(),C<F||C>z?I.seekTo(F,!0,void 0,void 0,50):I.seekTo(C,!0,void 0,void 0,50)),I.playVideo()),I.setLoopRange({startTimeMs:F*1E3,endTimeMs:z*1E3,type:"clips"}),this.activeLoopRange_=!0,this.onVideoProgress_(I.getCurrentTime())):
this.activeLoopRange_&&(I.setLoopRange(null),this.activeLoopRange_=!1))};
_.u.updateHandles_=function(){_.f(this.hostElement).querySelector("#handles").style.left=String(this.timeToPixels_(this.start-this.rulerShift_,this.tickSpacing_));_.f(this.hostElement).querySelector("#handles").style.width=String(this.timeToPixels_(this.end-this.start,this.tickSpacing_))};
_.u.updateRuler_=function(){var I=this.end,C=this.start,y=this.draggableStartLimit_(),k=this.draggableEndLimit_();(C<y-.001||I>k+.001)&&this.centerRuler_(this.start,this.end,this.windowSizeSec_)};
_.u.computeDurationLabel_=function(I,C){return I?I.replace("$clip_length",parseFloat(C).toFixed(1)):""};
_.u.computeDuration_=function(I,C){return this.isValidTime_(I)&&this.isValidTime_(C)&&I<C?C-I:0};
_.u.isValidTime_=function(I){return isNaN(parseFloat(I))||I<0?!1:this.player_?I>=this.seekableStart&&I<=this.seekableEnd:!0};
_.u.computeWindowSizeSec_=function(I,C,y){return Math.min((I||12E4)/1E3,y-C)};
_.u.computeTickSpacing_=function(I,C){return C?C/I:1};
_.u.onDragStateChanged_=function(){_.k3(this.hostElement,"clips-drag-state",{startChanging:this.draggingLeft_||this.draggingWindow_||this.draggingRuler_,endChanging:this.draggingRight_||this.draggingWindow_||this.draggingRuler_})};
_.u.centerRangeOnTime_=function(I){var C=this.duration;I=gPj(I-C/2,C,this.seekableStart,this.seekableEnd);_.k3(this.hostElement,"set-fixed-length-range",{start:I.start,duration:I.end-I.start})};
_.u.nearlyLessThan_=function(I,C,y){return I+(y===void 0?1E-6:y)<C};
_.u.onSeekComplete_=function(){if(this.visible&&!this.disabled&&this.dragState=="none"){var I=this.player_.getCurrentTime();(!this.player_.getLoopRange()||this.nearlyLessThan_(I,this.start)||this.nearlyLessThan_(this.end,I))&&this.centerRangeOnTime_(I)}};
_.u.onStateChange_=function(I){this.visible&&!this.disabled&&I==0&&this.centerRangeOnTime_(this.seekableEnd)};
_.u.computeDragState_=function(I,C,y,k){return I?"left":C?"right":y?"ruler":k?"window":"none"};
_.u.logClick=function(){var I=_.Si(),C=_.fq();I&&C&&this.scrubberVe_&&(_.V("combine_ve_grafts")?_.oV(_.e2(),this.scrubberVe_,C):_.q1(I,C,this.scrubberVe_),_.EN(I,this.scrubberVe_))};
Al.prototype.onDragStateChanged_=Al.prototype.onDragStateChanged_;Al.prototype.updateRuler_=Al.prototype.updateRuler_;Al.prototype.updateHandles_=Al.prototype.updateHandles_;Al.prototype.onUpdateLoopRange=Al.prototype.onUpdateLoopRange;Al.prototype.onInitializedChanged_=Al.prototype.onInitializedChanged_;Al.prototype.onVisibleChanged_=Al.prototype.onVisibleChanged_;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Al.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",Object)],Al.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Al.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"start",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"end",void 0);_.E([_.d({computed:"computeDuration_(start, end)"}),_.h("design:type",Number)],Al.prototype,"duration",void 0);
_.E([_.d(),_.h("design:type",String)],Al.prototype,"lengthTemplate",void 0);_.E([_.d({computed:"computeDurationLabel_(lengthTemplate, duration)"}),_.h("design:type",String)],Al.prototype,"durationLabel",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"visible",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"player_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"draggingLeft_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"draggingRight_",void 0);
_.E([_.d(),_.h("design:type",Object)],Al.prototype,"draggingRuler_",void 0);_.E([_.d({value:!1}),_.h("design:type",Object)],Al.prototype,"draggingWindow_",void 0);_.E([_.d({computed:"computeTickSpacing_(windowSizeSec_, rulerWidth_)"}),_.h("design:type",Number)],Al.prototype,"tickSpacing_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"seekableStart",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"seekableEnd",void 0);
_.E([_.d(),_.h("design:type",Number)],Al.prototype,"windowSizeMs",void 0);_.E([_.d({computed:"computeWindowSizeSec_(windowSizeMs, seekableStart, seekableEnd)"}),_.h("design:type",Number)],Al.prototype,"windowSizeSec_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"rulerWidth_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"rulerShift_",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"windowSlideSpeed",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Al.prototype,"disabled",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"initialized",void 0);_.E([_.d(),_.h("design:type",Object)],Al.prototype,"durationAccessibilityLabel",void 0);_.E([_.d({computed:"computeDragState_(draggingLeft_, draggingRight_, draggingRuler_, draggingWindow_)",reflectToAttribute:!0}),_.h("design:type",String)],Al.prototype,"dragState",void 0);
_.E([_.FI("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onVisibleChanged_",null);_.E([_.FI("initialized"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onInitializedChanged_",null);_.E([_.FI("player_","visible","disabled","initialized","start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onUpdateLoopRange",null);
_.E([_.FI("start","end","rulerShift_","tickSpacing_","windowSizeSec_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"updateHandles_",null);_.E([_.FI("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"updateRuler_",null);
_.E([_.FI("draggingLeft_","draggingRight_","draggingRuler_","draggingWindow_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Al.prototype,"onDragStateChanged_",null);Al=_.E([_.lT({is:"yt-clip-creation-scrubber-view",disableElementRegistration:!0})],Al);
_.Z(Al,"yt-clip-creation-scrubber-view",function(){if(IOH===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;MqY===void 0&&(MqY=document.createElement("template"));var k=MqY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);IOH=I}I=IOH;return I},{mode:2});var gt=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_","yt-clip-creation-disable":"onClipCreationDisable_","yt-clip-creation-enable":"onClipCreationEnable_"};I.startHighlightTimeout=0;I.endHighlightTimeout=0;return I};
_.R(gt,_.q);_.u=gt.prototype;_.u.attached=function(){var I=this;this.startInput.addEventListener("input",function(C){return I.handleStartInput_(C)});
this.endInput.addEventListener("input",function(C){return I.handleEndInput_(C)});
this.startInput.addEventListener("focusout",function(C){return I.handleStartBlur_(C)});
this.endInput.addEventListener("focusout",function(C){return I.handleEndBlur_(C)})};
_.u.setPlayer=function(I){this.set("player_",I)};
_.u.onSetFixedLengthRange_=function(I){var C=I.detail;I=C.start;var y=C.duration,k=C.startLimit;C=C.endLimit;k||(k=this.seekableStart_);C||(C=this.seekableEnd_);I=gPj(I,y,k,C);this.start=I.start;this.end=I.end};
_.u.onSetRange_=function(I){var C=I.detail;I=C.start;var y=C.end,k=C.startLimit;C=C.endLimit;k||(k=this.seekableStart_);C||(C=this.seekableEnd_);if(I=vPY(I,y,k,C,this.minLengthSec,this.maxLengthSec))this.start=I.start,this.end=I.end};
_.u.updateInputs_=function(){var I=this.end,C=this.start;this.startInput.focused||(this.startInput.value=R2(C,!0));this.endInput.focused||(this.endInput.value=R2(I,!0))};
_.u.handleStartInput_=function(I){I=AVM(I.target.value);if(I===null)this.set("startValid",!1);else{var C=this.end,y=vPY(I,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("endWillUpdate",y.end!==C),this.set("startValid",y.start===I)):this.set("startValid",!1)}};
_.u.handleEndInput_=function(I){I=AVM(I.target.value);if(I===null)this.set("endValid",!1);else{var C=this.start,y=WSL(this.start,I,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec);y?(this.set("startWillUpdate",y.start!==C),this.set("endValid",y.end===I)):this.set("endValid",!1)}};
_.u.handleStartBlur_=function(I){I=AVM(I.target.value);I===null?this.startInput.value=R2(this.start,!0):this.forceUpdateInputs_(vPY(I,this.end,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.u.handleEndBlur_=function(I){I=AVM(I.target.value);I===null?this.endInput.value=R2(this.end,!0):this.forceUpdateInputs_(WSL(this.start,I,this.seekableStart_,this.seekableEnd_,this.minLengthSec,this.maxLengthSec))};
_.u.forceUpdateInputs_=function(I){I&&(this.start=I.start,this.end=I.end);this.startInput.value=R2(this.start,!0);this.endInput.value=R2(this.end,!0);this.endValid=this.startValid=!0;this.startWillUpdate=this.endWillUpdate=!1};
_.u.initializeClipRange_=function(){var I=this.seekableEnd_,C=this.seekableStart_,y=this.visible_,k=this.player_;if(!k||!y||C===null||!I)this.set("initialized",!1);else if(!this.initialized){var F=k.getCurrentTime(),z=this.getDefaultLengthSec_();y=k.getVideoData();var c=k.getPlayerState()==1,r=y.isLive;z=Math.min(z,I-C);F=Math.max(0,F);I=r?WSL(F-z,F,C,I,this.minLengthSec,this.maxLengthSec):c?gPj(F-z/2,z,C,I):gPj(F,z,C,I);this.start=I.start;this.end=I.end;this.set("initialized",!0);y.isLive&&k.seekTo(I.start);
this.startInput.value=R2(this.start,!0);this.endInput.value=R2(this.end,!0)}};
_.u.onStartChanged_=function(){var I=this;_.k3(this.hostElement,"start-changed",{start:this.start});var C;isNaN((C=this.oldStart)!=null?C:NaN)||(this.set("highlightStart",!0),clearTimeout(this.startHighlightTimeout),this.startHighlightTimeout=setTimeout(function(){I.set("highlightStart",!1);I.startHighlightTimeout=0;I.oldStart=I.start},3E3))};
_.u.onEndChanged_=function(){var I=this;_.k3(this.hostElement,"end-changed",{end:this.end});var C;isNaN((C=this.oldEnd)!=null?C:NaN)||(this.set("highlightEnd",!0),clearTimeout(this.endHighlightTimeout),this.endHighlightTimeout=setTimeout(function(){I.set("highlightEnd",!1);I.endHighlightTimeout=0;I.oldEnd=I.end},3E3))};
_.u.onVisibilityChangedAction_=function(I){var C=this;this.set("visible_",I.visible);this.visible_&&!this.player_&&(I=_.hU())&&I.getPlayerPromise().then(function(y){C.setPlayer(y)})};
_.u.computeMinLengthSec_=function(I){return I/1E3||5};
_.u.computeMaxLengthSec_=function(I){return I/1E3||60};
_.u.computeDefaultLengthSec_=function(I){return I/1E3};
_.u.getDefaultLengthSec_=function(){return this.defaultLengthSec||30};
_.u.computeSeekableStart_=function(I,C){return I&&C?I.getProgressState(1).seekableStart:0};
_.u.computeSeekableEnd_=function(I,C){return I&&C?I.getProgressState(1).seekableEnd:0};
_.u.onClipCreationDisable_=function(){this.set("disabled",!0)};
_.u.onClipCreationEnable_=function(){this.set("disabled",!1)};
_.u.onDragState_=function(I){this.set("highlightStart",I.detail.startChanging);this.set("highlightEnd",I.detail.endChanging)};
gt.prototype.onDragState_=gt.prototype.onDragState_;gt.prototype.onEndChanged_=gt.prototype.onEndChanged_;gt.prototype.onStartChanged_=gt.prototype.onStartChanged_;gt.prototype.initializeClipRange_=gt.prototype.initializeClipRange_;gt.prototype.updateInputs_=gt.prototype.updateInputs_;gt.prototype.onSetRange_=gt.prototype.onSetRange_;gt.prototype.onSetFixedLengthRange_=gt.prototype.onSetFixedLengthRange_;
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],gt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gt.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gt.prototype,"data",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],gt.prototype,"start",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],gt.prototype,"startValid",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gt.prototype,"startWillUpdate",void 0);_.E([_.d({value:30}),_.h("design:type",Number)],gt.prototype,"end",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],gt.prototype,"endValid",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gt.prototype,"endWillUpdate",void 0);_.E([_.d({computed:"computeMinLengthSec_(data.minLengthMs)"}),_.h("design:type",Number)],gt.prototype,"minLengthSec",void 0);
_.E([_.d({computed:"computeMaxLengthSec_(data.maxLengthMs)"}),_.h("design:type",Number)],gt.prototype,"maxLengthSec",void 0);_.E([_.d({computed:"computeDefaultLengthSec_(data.defaultLengthMs)"}),_.h("design:type",Number)],gt.prototype,"defaultLengthSec",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],gt.prototype,"visible_",void 0);_.E([_.d(),_.h("design:type",Object)],gt.prototype,"player_",void 0);
_.E([_.d({value:0,computed:"computeSeekableStart_(player_, visible_)"}),_.h("design:type",Number)],gt.prototype,"seekableStart_",void 0);_.E([_.d({computed:"computeSeekableEnd_(player_, visible_)"}),_.h("design:type",Number)],gt.prototype,"seekableEnd_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],gt.prototype,"initialized",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gt.prototype,"disabled",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gt.prototype,"highlightStart",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],gt.prototype,"highlightEnd",void 0);_.E([_.z$("#start"),_.h("design:type",HTMLInputElement)],gt.prototype,"startInput",void 0);_.E([_.z$("#end"),_.h("design:type",HTMLInputElement)],gt.prototype,"endInput",void 0);
_.E([_.km("set-fixed-length-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],gt.prototype,"onSetFixedLengthRange_",null);_.E([_.km("set-range"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],gt.prototype,"onSetRange_",null);_.E([_.FI("start","end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gt.prototype,"updateInputs_",null);
_.E([_.FI("player_","visible_","seekableStart_","seekableEnd_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gt.prototype,"initializeClipRange_",null);_.E([_.FI("start"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gt.prototype,"onStartChanged_",null);_.E([_.FI("end"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gt.prototype,"onEndChanged_",null);
_.E([_.km("clips-drag-state"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],gt.prototype,"onDragState_",null);gt=_.E([_.lT({is:"yt-clip-creation-scrubber-renderer",disableElementRegistration:!0})],gt);
_.Z(gt,"yt-clip-creation-scrubber-renderer",function(){if(O3Y===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;JOH===void 0&&(JOH=document.createElement("template"));var k=JOH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);O3Y=I}I=O3Y;return I},{mode:2});var vS=function(){var I=_.q.apply(this,arguments)||this;I.player_=null;I.JSC$19890_playerEvents=new Map;I.actionMap={"yt-clip-creation-visibility-changed":"onVisibilityChangedAction_"};return I};
_.R(vS,_.q);_.u=vS.prototype;_.u.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"}}}};
_.u.created=function(){this.JSC$19890_playerEvents.set("onAdStart",this.playerAdStartHandler_);this.JSC$19890_playerEvents.set("onPlaybackStartExternal",this.playerAdEndHandler_);this.JSC$19890_playerEvents.set("onVideoDataChange",this.onVideoDataChange_);this.JSC$19890_playerEvents.set("onVideoProgress",this.onVideoProgress_)};
_.u.detached=function(){this.setPlayer(null)};
_.u.onVisibilityChangedAction_=function(I){var C=this,y;if((y=this.data)==null?0:y.externalVideoId){var k;this.videoId=(k=this.data)==null?void 0:k.externalVideoId}this.getPlayer().then(function(F){if(I.visible)C.returnTime=F.getCurrentTime(),C.isAtLiveHead=F.getProgressState().isAtLiveHead;else{var z=C.returnTime;C.isAtLiveHead&&(z=Number.POSITIVE_INFINITY);F.seekTo(z,void 0,void 0,void 0,51)}})};
_.u.getPlayer=function(){var I=this;if(!this.player_){var C=_.hU();if(C)return C.getPlayerPromise().then(function(y){I.setPlayer(y);return y})}return Promise.resolve(this.player_)};
_.u.setPlayer=function(I){this.player_&&this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player_,this.JSC$19890_playerEvents);if(I){this.player_=I;var C;((C=this.data)==null?0:C.externalVideoId)||this.set("videoId",I.getVideoData().video_id||"");var y;(I==null?void 0:(y=I.getPresentingPlayerType)==null?void 0:y.call(I))===2&&(this.set("isAdPlaying",!0),_.Fe(this.hostElement,"yt-clip-creation-disable"));this.ytPlayerListenerBehavior.listenToPlayerEvents(I,this.JSC$19890_playerEvents)}};
_.u.ready=function(){_.f(this.hostElement).querySelector("#share").addEventListener("tap",this.onSubmit_.bind(this))};
_.u.onTitleChanged_=function(I){this.set("titleValue",I.detail.title)};
_.u.onStartChanged_=function(I){this.set("start",I.detail.start)};
_.u.onEndChanged_=function(I){this.set("end",I.detail.end)};
_.u.onTitleValidChanged_=function(I){this.set("titleValid",I.detail.valid)};
_.u.onStartValidChanged_=function(I){this.set("startValid",I.detail.valid)};
_.u.onEndValidChanged_=function(I){this.set("endValid",I.detail.valid)};
_.u.onVideoDataChange_=function(){var I;if((I=this.data)==null||!I.externalVideoId){var C;this.set("videoId",((C=this.player_)==null?void 0:C.getVideoData().video_id)||"")}};
_.u.computeFormValid_=function(I,C,y,k){return!!(I&&C&&y&&k)};
_.u.computeCancelButton_=function(I,C,y){return I&&_.l(I,_.fZ)?{buttonRenderer:Object.assign({},_.l(I,_.fZ),{isDisabled:C||y})}:null};
_.u.computeSubmitButton_=function(I,C,y){return I&&_.l(I,_.fZ)?{buttonRenderer:Object.assign({},_.l(I,_.fZ),{command:void 0,isDisabled:!this.formValid||C||y})}:null};
_.u.computeSubmitCommand_=function(I){return I||null};
_.u.onSubmit_=function(I){var C=this;I.stopPropagation();I.preventDefault();this.submitCommand_&&(I={},I.comment_text=this.titleValue,I.clip_external_video_id=this.videoId,I.clip_offset_ms=parseInt(this.start*1E3,10),I.clip_duration_ms=parseInt((this.end-this.start)*1E3,10),this.set("isLoading_",!0),_.Tg(this.hostElement,[this.submitCommand_,I]).then(function(){C.set("isLoading_",!1)},function(){C.set("isLoading_",!1)}))};
_.u.playerAdStartHandler_=function(){_.Fe(this.hostElement,"yt-clip-creation-disable");this.set("isAdPlaying",!0)};
_.u.playerAdEndHandler_=function(){_.Fe(this.hostElement,"yt-clip-creation-enable");this.set("isAdPlaying",!1)};
_.u.onVideoProgress_=function(){var I=this;this.getPlayer().then(function(C){var y,k=(C==null?void 0:(y=C.getPresentingPlayerType)==null?void 0:y.call(C))===2;I.isAdPlaying!==k&&(k?I.playerAdStartHandler_():I.playerAdEndHandler_())})};
vS.prototype.onEndValidChanged_=vS.prototype.onEndValidChanged_;vS.prototype.onStartValidChanged_=vS.prototype.onStartValidChanged_;vS.prototype.onTitleValidChanged_=vS.prototype.onTitleValidChanged_;vS.prototype.onEndChanged_=vS.prototype.onEndChanged_;vS.prototype.onStartChanged_=vS.prototype.onStartChanged_;vS.prototype.onTitleChanged_=vS.prototype.onTitleChanged_;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],vS.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",Object)],vS.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vS.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vS.prototype,"data",void 0);_.E([_.d({value:""}),_.h("design:type",String)],vS.prototype,"titleValue",void 0);
_.E([_.d({value:!1}),_.h("design:type",Boolean)],vS.prototype,"titleValid",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],vS.prototype,"start",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],vS.prototype,"startValid",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],vS.prototype,"end",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],vS.prototype,"endValid",void 0);_.E([_.d({value:""}),_.h("design:type",String)],vS.prototype,"videoId",void 0);
_.E([_.d({computed:"computeFormValid_(data, titleValid, startValid, endValid)"}),_.h("design:type",Boolean)],vS.prototype,"formValid",void 0);_.E([_.d({computed:"computeSubmitButton_(data.saveButton, isAdPlaying, isLoading_, formValid)"}),_.h("design:type",Object)],vS.prototype,"submitButton_",void 0);_.E([_.d({computed:"computeSubmitCommand_(data.saveButton.buttonRenderer.command)"}),_.h("design:type",Object)],vS.prototype,"submitCommand_",void 0);
_.E([_.d({computed:"computeCancelButton_(data.cancelButton, isAdPlaying, isLoading_)"}),_.h("design:type",Object)],vS.prototype,"cancelButton_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],vS.prototype,"isLoading_",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],vS.prototype,"isAdPlaying",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],vS.prototype,"returnTime",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],vS.prototype,"isAtLiveHead",void 0);
_.E([_.km("title-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onTitleChanged_",null);_.E([_.km("start-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onStartChanged_",null);_.E([_.km("end-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onEndChanged_",null);
_.E([_.km("title-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onTitleValidChanged_",null);_.E([_.km("start-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onStartValidChanged_",null);_.E([_.km("end-valid-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vS.prototype,"onEndValidChanged_",null);
vS=_.E([_.lT({is:"yt-clip-creation-renderer",disableElementRegistration:!0})],vS);
_.Z(vS,"yt-clip-creation-renderer",function(){if(tq8===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;H3L===void 0&&(H3L=document.createElement("template"));var k=H3L;y.call(C,k.content.cloneNode(!0),I.content.firstChild);tq8=I}I=tq8;return I},{mode:2});var WS=function(){return _.q.apply(this,arguments)||this};
_.R(WS,_.q);WS.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"}}}};
WS.prototype.onPanelContentVisibleChanged=function(){this.data&&this.data.contents&&this.data.contents.some(function(I){return I.hasOwnProperty("clipCreationRenderer")})&&_.Fe(this.hostElement,"yt-clip-creation-visibility-changed",[{visible:!!this.panelContentVisible}])};
WS.prototype.onPanelContentVisibleChanged=WS.prototype.onPanelContentVisibleChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],WS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WS.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],WS.prototype,"ytVisibilityBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],WS.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],WS.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],WS.prototype,"panelContentVisible",void 0);_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],WS.prototype,"onPanelContentVisibleChanged",null);WS=_.E([_.m({is:"ytd-clip-section-renderer",disableElementRegistration:!0})],WS);
_.Z(WS,"ytd-clip-section-renderer",function(){if(EER!==void 0)return EER;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return EER=I},{mode:1});var CcR;var dt=function(){return _.q.apply(this,arguments)||this};
_.R(dt,_.q);_.u=dt.prototype;
_.u.onKeyDown=function(I){if(this.snippetElements.length!==0&&(I=I.keyCode,I===38||I===40)){this.highlightedIndex>=0&&this.removeSnippetHighlight(this.snippetElements[this.highlightedIndex]);I===38?this.highlightedIndex--:this.highlightedIndex++;this.highlightedIndex=_.St(this.highlightedIndex,-1,this.snippetElements.length);I=this.snippetElements.length;var C=this.highlightedIndex%I;this.highlightedIndex=C*I<0?C+I:C;I=this.snippetElements[this.highlightedIndex];this.highlightSnippet(I);this.ensureVisible(I)}};
_.u.onKeyUp=function(I){var C=this;PdR(I)&&(I.keyCode===13?(this.selectSnippet(this.snippetElements[this.highlightedIndex]),this.inputElement.blur()):this.filterSnippets(this.snippets,this.typedValue),this.inputTimerId&&_.b$.cancelJob(this.inputTimerId),this.inputTimerId=_.b$.addLowPriorityJob(function(){C.typedValue&&(C.fetchSnippets(C.typedValue),C.logInputGesture(C.data))},1E3))};
_.u.onClick=function(I){(I=_.O8b(I.target,null,"snippet-item"))&&this.selectSnippet(I)};
_.u.panelContentVisibleChanged=function(){this.panelContentVisible&&this.inputElement.focus()};
_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-update-search-in-video-results-action":"onUpdateSearchInVideoResults"}};
_.u.ready=function(){var I=this;this.inputElement.addEventListener("focus",function(){I.snippetsWrapper.style.removeProperty("display")})};
_.u.dataChanged=function(){this.typedValue="";this.snippets=[];this.fetchSnippets("")};
_.u.getSourceTimelines=function(){if(!this.data)return[];var I=[];if(this.data.searchInVideoSources)for(var C=_.T(this.data.searchInVideoSources),y=C.next();!y.done;y=C.next())y=y.value,y==="SEARCH_IN_VIDEO_SOURCE_ASR"?I.push({type:"TIMELINE_TYPE_STRUCTURAL_ASR"}):y==="SEARCH_IN_VIDEO_SOURCE_OCR"&&I.push({type:"TIMELINE_TYPE_OCR_LABEL_SPAN"});return I};
_.u.fetchSnippets=function(I){var C=_.Fe(this.hostElement,"yt-get-current-video-id-action")[0],y=this.getSourceTimelines();I={getSearchInVideoCommand:{externalVideoId:C,query:I!=null?I:"",sourceTimelines:y},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/in_video/search",sendPost:!0}}};_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})};
_.u.filterSnippets=function(I,C){var y=this;if(C){this.filteredSnippets=(0,_.Le.unsafeClone)(I);var k=RegExp(_.G6z(C),"i");this.filteredSnippets=this.filteredSnippets.filter(function(c){return k.test(y.ytRendererBehavior.getSimpleString(c.snippet))});
I=_.T(this.filteredSnippets);for(var F=I.next();!F.done;F=I.next()){F=F.value;var z=this.ytRendererBehavior.getSimpleString(F.snippet);F.snippet={runs:[{text:z.substring(0,z.toLowerCase().indexOf(C))},{text:z.substring(z.toLowerCase().indexOf(C),z.toLowerCase().indexOf(C)+C.length),bold:!0},{text:z.substring(z.toLowerCase().indexOf(C)+C.length,z.length)}]}}}else this.filteredSnippets=I};
_.u.onUpdateSearchInVideoResults=function(I){if(!(this.snippets.length>0)){var C,y,k;if((k=(C=_.l(I,YyK))==null?void 0:(y=C.results)==null?void 0:y.length)!=null&&k){var F;this.filteredSnippets=this.snippets=((F=_.l(I,YyK))==null?void 0:F.results).map(function(z){var c,r,w;return{startMs:z==null?void 0:(c=z.searchInVideoResultRenderer)==null?void 0:c.startMs,startTimeText:z==null?void 0:(r=z.searchInVideoResultRenderer)==null?void 0:r.startTimeText,snippet:z==null?void 0:(w=z.searchInVideoResultRenderer)==
null?void 0:w.snippet}})}}};
_.u.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};
_.u.highlightSnippet=function(I){I.classList.add("highlighted")};
_.u.removeSnippetHighlight=function(I){I.classList.remove("highlighted")};
_.u.selectSnippet=function(I){this.typedValue=String(I.dataset.text);this.filterSnippets(this.snippets,this.typedValue);this.snippetsWrapper.style.display="none";this.seekPlayer(I);this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
_.u.ensureVisible=function(I){var C=this.snippetsWrapper.scrollTop,y=C+this.snippetsWrapper.clientHeight,k=I.offsetTop-this.snippetsWrapper.offsetTop;I=k+I.clientHeight;k<C?this.snippetsWrapper.scrollTop-=C-k:I>y&&(this.snippetsWrapper.scrollTop+=I-y)};
_.u.seekPlayer=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1){if(!I)return k.jumpTo(0);C=Number(I.dataset.startOffset);return _.n(k,_.UZ().getPlayerPromise(),3)}y=k.yieldResult;y.seekTo(C/1E3,!0);y.wakeUpControls();_.oI(k)})};
_.u.logInputGesture=function(I){var C=_.Si();C&&(I==null?0:I.trackingParams)&&_.h7(C,_.nv(I.trackingParams),"INTERACTION_LOGGING_GESTURE_TYPE_INPUT_TEXT")};
_.u.typedValueChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("typed-value-changed",this.typedValue))};
_.u.updateTypedValueFromBinding=function(I){this.typedValue=I.currentTarget.value};
dt.prototype.typedValueChangedForBinding=dt.prototype.typedValueChangedForBinding;dt.prototype.dataChanged=dt.prototype.dataChanged;dt.prototype.panelContentVisibleChanged=dt.prototype.panelContentVisibleChanged;dt.prototype.onClick=dt.prototype.onClick;dt.prototype.onKeyUp=dt.prototype.onKeyUp;dt.prototype.onKeyDown=dt.prototype.onKeyDown;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dt.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],dt.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dt.prototype,"data",void 0);_.E([_.d({value:[]}),_.h("design:type",Array)],dt.prototype,"snippets",void 0);_.E([_.d({value:[]}),_.h("design:type",Array)],dt.prototype,"filteredSnippets",void 0);_.E([_.d({value:[]}),_.h("design:type",Array)],dt.prototype,"snippetElements",void 0);
_.E([_.z$("#siv-input"),_.h("design:type",HTMLElement)],dt.prototype,"inputElement",void 0);_.E([_.z$("#siv-snippets-wrapper"),_.h("design:type",HTMLElement)],dt.prototype,"snippetsWrapper",void 0);_.E([_.d(),_.h("design:type",String)],dt.prototype,"typedValue",void 0);_.E([_.d({value:-1}),_.h("design:type",Number)],dt.prototype,"highlightedIndex",void 0);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[_.iR]),_.h("design:returntype")],dt.prototype,"onKeyDown",null);
_.E([_.km("keyup"),_.h("design:type",Function),_.h("design:paramtypes",[_.iR]),_.h("design:returntype")],dt.prototype,"onKeyUp",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],dt.prototype,"onClick",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],dt.prototype,"panelContentVisible",void 0);
_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dt.prototype,"panelContentVisibleChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dt.prototype,"dataChanged",null);_.E([_.FI("typedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dt.prototype,"typedValueChangedForBinding",null);
dt=_.E([_.m({is:"ytd-search-in-video-renderer",disableElementRegistration:!0})],dt);
_.Z(dt,"ytd-search-in-video-renderer",function(){if(CcR!==void 0)return CcR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CcR=I},{mode:1});var svK;var xc=function(){return _.q.apply(this,arguments)||this};
_.R(xc,_.q);xc.prototype.computeButtonOverride=function(){if(this.data)return{size:"S"}};
xc.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]]"}}}}}};
xc.prototype.showSnackbarIfPlaceholder=function(){if(this.isProductPlaceholder){var I,C,y,k,F=(C=_.l((I=this.data)==null?void 0:I.onClickCommand,_.fzw))==null?void 0:(y=C.item)==null?void 0:(k=y.notificationTextRenderer)==null?void 0:k.successResponseText;F&&_.CoX(this.hostElement,F)}};
_.H1.Object.defineProperties(xc.prototype,{useCenterLayoutContainer:{configurable:!0,enumerable:!0,get:function(){return this.isProductPlaceholder}},
isProductPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isProductPlaceholder)}},
showDropCountdown:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return this.isProductPlaceholder&&((I=this.data)==null?void 0:(C=I.hiddenProductOptions)==null?void 0:C.showDropCountdown)&&!!((y=this.data)==null?0:(k=y.hiddenProductOptions)==null?0:k.dropTimestamp)}},
showBrandName:{configurable:!0,enumerable:!0,get:function(){var I;return!this.isProductPlaceholder&&!((I=this.data)==null?0:I.merchantName)}},
showPriceReplacementText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.priceReplacementText)}},
showPrice:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null?0:I.priceReplacementText)&&!((C=this.data)==null||!C.price)}},
showMetadata:{configurable:!0,enumerable:!0,get:function(){return!this.isProductPlaceholder}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xc.prototype,"componentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xc.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"useCenterLayoutContainer",null);_.E([_.d({computed:"computeButtonOverride(data)"}),_.h("design:type",Object)],xc.prototype,"buttonOverride",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"isProductPlaceholder",null);
_.E([_.v("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"showDropCountdown",null);_.E([_.v("isProductPlaceholder","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"showBrandName",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"showPriceReplacementText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"showPrice",null);
_.E([_.v("isProductPlaceholder"),_.h("design:type",Object),_.h("design:paramtypes",[])],xc.prototype,"showMetadata",null);xc=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-list-item-renderer"})],xc);
_.Z(xc,"ytd-product-list-item-renderer",function(){if(svK!==void 0)return svK;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return svK=I},{mode:1});var oe8;var qp=function(){return _.q.apply(this,arguments)||this};
_.R(qp,_.q);qp.prototype.created=function(){this.ytRendererBehavior.monitorScroll=!0};
qp.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{productListHeaderRenderer:"ytd-product-list-header-renderer",productListItemRenderer:"ytd-product-list-item-renderer"}}}};
qp.prototype.panelContentVisibleChanged=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return I.playerApi?y.jumpTo(2):_.n(y,_.UZ().getPlayerPromise(),3);y.nextAddress!=2&&(I.playerApi=y.yieldResult);(C=I.playerApi)==null||C.productsInVideoVisibilityUpdated(!!I.panelContentVisible);_.oI(y)})};
qp.prototype.panelContentVisibleChanged=qp.prototype.panelContentVisibleChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],qp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],qp.prototype,"panelContentVisible",void 0);_.E([_.d(),_.h("design:type",Object)],qp.prototype,"data",void 0);
_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],qp.prototype,"panelContentVisibleChanged",null);qp=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-list-renderer"})],qp);
_.Z(qp,"ytd-product-list-renderer",function(){if(oe8!==void 0)return oe8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return oe8=I},{mode:1});var ydM;var mv=function(){var I=_.q.apply(this,arguments)||this;I.hideTimestamps=!!_.Fk("hide-transcript-timestamps");I.currentCueIndex=-1;I.flatCues=[];I.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-player-time-changed":"onYtPlayerTimeChanged"};I.TEST_ONLY={getFlatCues:function(){return I.flatCues}};
return I};
_.R(mv,_.q);_.u=mv.prototype;_.u.hideTimestampsChanged=function(){_.ky("hide-transcript-timestamps",this.hideTimestamps)};
_.u.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.u.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.u.dataChanged=function(){var I;if((I=this.data)!=null&&I.cueGroups){this.flatCues.length=0;this.currentCueIndex=-1;I=_.T(this.data.cueGroups);for(var C=I.next();!C.done;C=I.next()){C=_.T(_.l(C.value,GH8).cues);for(var y=C.next();!y.done;y=C.next())this.flatCues.push(Number(_.l(y.value,fKK).startOffsetMs))}}};
_.u.onYtPlayerTimeChanged=function(I){if(!(I<0)){for(var C=this.currentCueIndex,y=C;;){var k=y>=0?this.flatCues[y]/1E3:-1;if(I+.5<k)--y;else if(k=y+1<this.flatCues.length?this.flatCues[y+1]/1E3:Infinity,I+.5>k)y+=1;else break}y!==C&&(C>=0&&((I=this.getCueElement(C))&&I.classList.remove("active"),(C=this.getCueGroupElement(C))&&C.classList.remove("active")),(C=this.getCueElement(y))&&C.classList.add("active"),(C=this.getCueGroupElement(y))&&C.classList.add("active"),this.currentCueIndex=y,this.isHovered||
this.scrollElementToTop(y))}};
_.u.scrollElementToTop=function(I){I=this.getCueElement(I>=3?I-3:0);this.hostElement.scrollTop=Math.min(I.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.u.getCueElement=function(I){return _.f(this.hostElement).querySelector('.cue[start-offset="'+this.flatCues[I]+'"]')};
_.u.getCueGroupElement=function(I){return(I=this.getCueElement(I))&&I.parentElement?I.parentElement.parentElement:null};
_.u.onTap=function(I){var C=_.m0(I);I.target.classList.contains("cue")&&this.seekCueElement(C)};
_.u.onKeyPress=function(I){I.keyCode==13&&(I=_.O8b(I.target,null,"cue"))&&this.seekCueElement(I)};
_.u.seekCueElement=function(I){I=Number(I.getAttribute("start-offset"));_.Fe(this.hostElement,"yt-transcript-player-seek",[I/1E3])};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
mv.prototype.onMouseLeave=mv.prototype.onMouseLeave;mv.prototype.onMouseEnter=mv.prototype.onMouseEnter;mv.prototype.onKeyPress=mv.prototype.onKeyPress;mv.prototype.onTap=mv.prototype.onTap;mv.prototype.dataChanged=mv.prototype.dataChanged;mv.prototype.hideTimestampsChanged=mv.prototype.hideTimestampsChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],mv.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mv.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mv.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mv.prototype,"hideTimestamps",void 0);_.E([_.d(),_.h("design:type",Boolean)],mv.prototype,"isHovered",void 0);_.E([_.FI("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mv.prototype,"hideTimestampsChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mv.prototype,"dataChanged",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],mv.prototype,"onTap",null);_.E([_.km("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],mv.prototype,"onKeyPress",null);
_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mv.prototype,"onMouseEnter",null);_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mv.prototype,"onMouseLeave",null);mv=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-body-renderer"})],mv);
_.Z(mv,"ytd-transcript-body-renderer",function(){if(ydM!==void 0)return ydM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ydM=I},{mode:1});var kaP;var ZU=function(){var I=_.q.apply(this,arguments)||this;I.darkerPanels=_.V("web_watch_darker_panels");return I};
_.R(ZU,_.q);ZU.prototype.configureRendererStamper=function(){return{"data.languageMenu":{id:"menu",mapping:{sortFilterSubMenuRenderer:"yt-sort-filter-sub-menu-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ZU.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ZU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ZU.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ZU.prototype,"darkerPanels",void 0);ZU=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-footer-renderer"})],ZU);
_.Z(ZU,"ytd-transcript-footer-renderer",function(){if(kaP!==void 0)return kaP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return kaP=I},{mode:1});var FKL;var ufY;var BS=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.showClearButton=!1;return I};
_.R(BS,_.q);_.u=BS.prototype;_.u.handleInput=function(I){var C=this;I.target.value.length?_.KK(this,"ytdTranscriptSearchBoxSearch",function(){C.emitSearchEvent(I)},500):(_.$Gt(this,"ytdTranscriptSearchBoxSearch"),this.emitClearEvent());
this.showClearButton=I.target.value.length>0};
_.u.clear=function(){this.inputBox.value="";this.showClearButton=!1};
_.u.handleClick=function(){var I,C=(I=this.data)==null?void 0:I.trackingParams;C&&_.FV(_.e2(),C)};
_.u.handleClear=function(){_.$Gt(this,"ytdTranscriptSearchBoxSearch");this.emitClearEvent();var I,C,y=(C=_.l((I=this.data)==null?void 0:I.clearButton,_.fZ))==null?void 0:C.trackingParams;y&&_.FV(_.e2(),y);this.clear()};
_.u.emitSearchEvent=function(I){_.k3(this.hostElement,"yt-transcript-search-box-search",{query:I.target.value});var C,y;(I=(y=_.l((C=this.data)==null?void 0:C.searchButton,_.fZ))==null?void 0:y.trackingParams)&&_.FV(_.e2(),I)};
_.u.emitClearEvent=function(){_.k3(this.hostElement,"yt-transcript-search-box-clear")};
_.H1.Object.defineProperties(BS.prototype,{inputBox:{configurable:!0,enumerable:!0,get:function(){return _.f(this.hostElement).querySelector("#transcript-search-box-input")}},
value:{configurable:!0,enumerable:!0,get:function(){return this.inputBox.value}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BS.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BS.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BS.prototype,"systemIcons",void 0);BS=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-box-renderer"})],BS);
_.Z(BS,"ytd-transcript-search-box-renderer",function(){if(ufY!==void 0)return ufY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ufY=I},{mode:1});var zIK;var Tmy;var EX=function(){return _.q.apply(this,arguments)||this};
_.R(EX,_.q);EX.prototype.dataChanged=function(){if(this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData){var I,C;this.sectionHeaderAriaLabel=(I=this.data)==null?void 0:(C=I.accessibility)==null?void 0:C.accessibilityData.label}};
EX.prototype.fireSelectedEvent=function(I){_.k3(this.hostElement,"ytd-transcript-section-header",{startMs:I})};
EX.prototype.handleClick=function(){this.data&&this.fireSelectedEvent(Number(this.data.startMs))};
EX.prototype.handleKeyPress=function(I){this.data&&I.key==="Enter"&&this.fireSelectedEvent(Number(this.data.startMs))};
_.H1.Object.defineProperties(EX.prototype,{enableTappableTranscriptHeader:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.data)==null?void 0:I.enableTappableTranscriptHeader)!=null?C:!1}}});
EX.prototype.dataChanged=EX.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],EX.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],EX.prototype,"sectionHeaderAriaLabel",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],EX.prototype,"enableTappableTranscriptHeader",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],EX.prototype,"dataChanged",null);
EX=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-section-header-renderer"})],EX);
_.Z(EX,"ytd-transcript-section-header-renderer",function(){if(Tmy!==void 0)return Tmy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Tmy=I},{mode:1});var cdj;var eI8;var hl=function(){var I=_.q.apply(this,arguments)||this;I.isEditMode=!1;I.touchCaptionsEnabled=!1;I.deleteCaptionCorrectionPopupCommand=null;I.voteCaptionCorrectionPopupCommand=null;I.roundedContainer=!0;I.mouseOver=!1;I.textChanged=!1;I.messages={suggest_correction:_.PQ("suggest_correction",void 0,"Edit caption"),suggested_caption:_.PQ("suggested_caption",void 0,"Suggested caption"),submit_correction:_.PQ("submit_correction",void 0,"Submit for review"),cancel_correction:_.PQ("cancel_correction",
void 0,"Cancel"),replay_segment:_.PQ("replay_segment",void 0,"Re-play segment"),delete_correction:_.PQ("delete_correction",void 0,"Delete correction")};I.actionMap={"yt-transcript-update-segment-text-command":"handleUpdateSegmentText","yt-transcript-edit-segment-command":"handleEditSegmentCommand"};return I};
_.R(hl,_.q);_.u=hl.prototype;_.u.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)};
_.u.handleDelete=function(I){if(this.deleteCaptionCorrectionPopupCommand){var C=this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.deleteCaptionCorrectionPopupCommand);C&&this.ytdOpenPopupBehavior.openPopup(C);I.stopPropagation()}};
_.u.handleSubmit=function(I){if(this.data&&this.data.submitCaptionCorrectionCommand&&(I.stopPropagation(),this.textChanged)){var C;I=(C=_.l(this.data.submitCaptionCorrectionCommand,_.l4d))==null?void 0:C.params;C=Object.assign({},this.data.submitCaptionCorrectionCommand,{transcriptSubmitCaptionCorrectionCommand:{params:I,correctionText:String(this.ironTextAreaElement.value),originalText:_.hS(this.data.snippet)}});this.ytComponentBehavior.resolveCommand(C);this.isEditMode=!1}};
_.u.handleUpdateSegmentText=function(I){(I=_.l(I,t0L))&&I.targetId&&this.data&&I.targetId===this.data.targetId&&(I.userCorrection&&(this.editedText=I.userCorrection),I.restoreOriginalCaption&&(this.editedText=void 0,this.ironTextAreaElement.value=_.hS(this.data.snippet)),I.deleteCaptionCorrectionPopupCommand?this.deleteCaptionCorrectionPopupCommand=I.deleteCaptionCorrectionPopupCommand:this.deleteCaptionCorrectionPopupCommand=null,this.voteCaptionCorrectionPopupCommand=I.voteCaptionCorrectionPopupCommand?
I.voteCaptionCorrectionPopupCommand:null,I.accessibility&&(this.segmentAriaLabel=I.accessibility.accessibilityData.label))};
_.u.handleCancel=function(I){this.isEditMode=!1;I.stopPropagation();this.logClientVe(159409)};
_.u.handleEditSegmentCommand=function(I){(I=_.l(I,HTR))&&I.targetId&&this.data&&I.targetId===this.data.targetId&&this.handleEdit()};
_.u.handleEditButtonClick=function(I){this.data&&(this.handleEdit(),I.stopPropagation())};
_.u.handleEdit=function(){if(this.data){this.fireEditEvent(Number(this.data.startMs),Number(this.data.endMs));this.isEditMode=!0;var I;(I=this.ironTextAreaElement.textarea)==null||I.focus();this.logClientVe(159407)}};
_.u.handleMouseEnter=function(){this.mouseOver=!0};
_.u.handleMouseLeave=function(){this.mouseOver=!1};
_.u.handleReplay=function(I){this.data&&(this.fireReplayEvent(Number(this.data.startMs),Number(this.data.endMs)),I.stopPropagation(),this.logClientVe(159408))};
_.u.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()))};
_.u.handleKeypress=function(I){this.data&&(this.isEditMode?I.stopPropagation():this.isEnterPress(I)?(this.fireSelectedEvent(Number(this.data.startMs)),this.logClick()):this.isCopyPress(I)&&this.logClientVe(138758))};
_.u.handleTextboxClick=function(I){I.stopPropagation()};
_.u.handleTextboxKeydown=function(I){this.isControlEnterPress(I)?this.handleSubmit(I):I.key==="Escape"&&this.handleCancel(I)};
_.u.handleTextboxKeyup=function(){this.textChanged=_.hS(this.latestText)!==String(this.ironTextAreaElement.value)};
_.u.fireSelectedEvent=function(I){_.k3(this.hostElement,"yt-transcript-segment-selected",{startMs:I})};
_.u.fireReplayEvent=function(I,C){_.k3(this.hostElement,"yt-transcript-segment-replay",{startMs:Math.max(I-100,0),endMs:C})};
_.u.fireEditEvent=function(I,C){_.k3(this.hostElement,"yt-transcript-segment-edit",{startMs:I,endMs:C})};
_.u.isEnterPress=function(I){return I.key==="Enter"||I.code==="Enter"||I.code==="NumpadEnter"||I.keyCode===13?!0:!1};
_.u.isControlEnterPress=function(I){var C=I.key==="Enter"||I.code==="Enter"||I.code==="NumpadEnter"||I.keyCode===13;return(I.ctrlKey||I.metaKey)&&C};
_.u.isCopyPress=function(I){var C=I.ctrlKey;return I.key==="c"&&C};
_.u.logClick=function(){var I,C=(I=this.data)==null?void 0:I.trackingParams;C&&_.FV(_.e2(),C)};
_.u.logClientVe=function(I){_.kU(_.e2(),_.Dn(I))};
_.H1.Object.defineProperties(hl.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}}});
hl.prototype.handleMouseLeave=hl.prototype.handleMouseLeave;hl.prototype.handleMouseEnter=hl.prototype.handleMouseEnter;hl.prototype.dataChanged=hl.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],hl.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],hl.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hl.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],hl.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hl.prototype,"isEditMode",void 0);_.E([_.d(),_.h("design:type",Object)],hl.prototype,"touchCaptionsEnabled",void 0);_.E([_.d(),_.h("design:type",Object)],hl.prototype,"editedText",void 0);_.E([_.d(),_.h("design:type",Object)],hl.prototype,"deleteCaptionCorrectionPopupCommand",void 0);_.E([_.d(),_.h("design:type",Object)],hl.prototype,"voteCaptionCorrectionPopupCommand",void 0);
_.E([_.d(),_.h("design:type",String)],hl.prototype,"segmentAriaLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hl.prototype,"roundedContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hl.prototype,"mouseOver",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hl.prototype,"textChanged",void 0);_.E([_.d(),_.h("design:type",Object)],hl.prototype,"messages",void 0);
_.E([_.z$("#suggestion"),_.h("design:type",Object)],hl.prototype,"ironTextAreaElement",void 0);_.E([_.v("data","editedText"),_.h("design:type",Object),_.h("design:paramtypes",[])],hl.prototype,"latestText",null);_.E([_.v("touchCaptionsEnabled","isEditMode"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hl.prototype,"enableEditButton",null);
_.E([_.v("enableEditButton","deleteCaptionCorrectionPopupCommand"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],hl.prototype,"enableUndoButton",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hl.prototype,"dataChanged",null);_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hl.prototype,"handleMouseEnter",null);
_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hl.prototype,"handleMouseLeave",null);hl=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-renderer"})],hl);
_.Z(hl,"ytd-transcript-segment-renderer",function(){if(eI8!==void 0)return eI8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eI8=I},{mode:1});var UX=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-player-time-changed":"onYtPlayerTimeChanged"};I.isError=!1;I.darkerPanels=_.V("web_watch_darker_panels");I.segmentOffsets=[];I.segmentIndex=-1;return I};
_.R(UX,_.q);_.u=UX.prototype;_.u.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"}}}}};
_.u.segmentsChanged=function(){this.updateOffsets()};
_.u.onYtPlayerTimeChanged=function(I){for(var C=this.segmentIndex,y=C;;){if(y>=0){var k=this.segmentOffsets[y].start;var F=this.segmentOffsets[y].isAutoScrollable}else k=-1,F=!0;var z=I+.5;if(!F){k=y+1<this.segmentOffsets.length?this.segmentOffsets[y+1].start:Infinity;if(z>=k){y+=1;continue}y=-1;break}if(z<k)k=y-1>=0&&this.segmentOffsets[y-1].isAutoScrollable,F=y===0||k?1:2,y-=F;else if(F=y+1<this.segmentOffsets.length&&this.segmentOffsets[y+1].isAutoScrollable?1:2,k=y+F<this.segmentOffsets.length?
this.segmentOffsets[y+F].start:Infinity,z>k)y+=F;else{if(y<0)break;y<this.segmentOffsets.length&&z>this.segmentOffsets[y].end&&(y=-1);break}}if(C!==y){if(C>=0){var c;(c=this.getSegmentElement(C))==null||c.classList.remove("active")}this.segmentIndex=y;if(!(y<0)){var r;(r=this.getSegmentElement(y))==null||r.classList.add("active");this.isHovered||this.scrollElementToTop(y)}}};
_.u.handleSegmentEdit=function(I){I.target&&(this.lastSegmentEdited&&(this.lastSegmentEdited.isEditMode=!1),this.lastSegmentEdited=I.target,_.Fe(this.hostElement,"yt-transcript-player-edit",[I.detail.startMs/1E3,I.detail.endMs/1E3]))};
_.u.handleSegmentSelected=function(I){_.Fe(this.hostElement,"yt-transcript-player-seek",[I.detail.startMs/1E3])};
_.u.handleSegmentReplay=function(I){_.Fe(this.hostElement,"yt-transcript-player-replay",[I.detail.startMs/1E3,I.detail.endMs/1E3])};
_.u.handleSectionHeaderSelected=function(I){_.Fe(this.hostElement,"yt-transcript-player-seek",[I.detail.startMs/1E3])};
_.u.onMouseEnter=function(){this.isHovered=!0};
_.u.onMouseLeave=function(){this.isHovered=!1};
_.u.onRetryButtonClick=function(){_.k3(this.hostElement,"transcript-retry-button-click")};
_.u.getSegmentElement=function(I){return _.f(this.hostElement).querySelector(":nth-child("+(I+1)+")")};
_.u.scrollElementToTop=function(I){I=this.getSegmentElement(I>=2?I-2:0);this.hostElement.scrollTop=Math.min(I.offsetTop-this.hostElement.offsetTop,this.hostElement.scrollHeight-this.hostElement.offsetHeight)};
_.u.updateOffsets=function(){this.segmentOffsets=this.segments.map(function(I){var C,y=(C=I.transcriptSegmentRenderer)!=null?C:I.transcriptSectionHeaderRenderer;return{start:Number(y.startMs)/1E3,end:Number(y.endMs)/1E3,isAutoScrollable:I.transcriptSegmentRenderer!==void 0}});
this.segmentIndex=-1;this.clearHighlightedSegments()};
_.u.clearHighlightedSegments=function(){var I=_.f(this.hostElement);I=_.T(I.querySelectorAll("ytd-transcript-segment-renderer"));for(var C=I.next();!C.done;C=I.next())C.value.classList.remove("active")};
_.H1.Object.defineProperties(UX.prototype,{segments:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.searchResultSegments)||((C=this.data)==null?void 0:C.initialSegments)||[]}},
displayNoResults:{configurable:!0,enumerable:!0,get:function(){return!!this.segments&&this.segments.length===0&&!!this.noResultLabel}}});
UX.prototype.onMouseLeave=UX.prototype.onMouseLeave;UX.prototype.onMouseEnter=UX.prototype.onMouseEnter;UX.prototype.handleSectionHeaderSelected=UX.prototype.handleSectionHeaderSelected;UX.prototype.handleSegmentReplay=UX.prototype.handleSegmentReplay;UX.prototype.handleSegmentSelected=UX.prototype.handleSegmentSelected;UX.prototype.handleSegmentEdit=UX.prototype.handleSegmentEdit;UX.prototype.segmentsChanged=UX.prototype.segmentsChanged;
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],UX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],UX.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],UX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UX.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],UX.prototype,"isError",void 0);
_.E([_.d(),_.h("design:type",Object)],UX.prototype,"noResultLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],UX.prototype,"darkerPanels",void 0);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],UX.prototype,"segments",null);_.E([_.v("segments","noResultLabel"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],UX.prototype,"displayNoResults",null);
_.E([_.FI("segments"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UX.prototype,"segmentsChanged",null);_.E([_.km("yt-transcript-segment-edit"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],UX.prototype,"handleSegmentEdit",null);_.E([_.km("yt-transcript-segment-selected"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],UX.prototype,"handleSegmentSelected",null);
_.E([_.km("yt-transcript-segment-replay"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],UX.prototype,"handleSegmentReplay",null);_.E([_.km("ytd-transcript-section-header"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],UX.prototype,"handleSectionHeaderSelected",null);_.E([_.km("mouseenter"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UX.prototype,"onMouseEnter",null);
_.E([_.km("mouseleave"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UX.prototype,"onMouseLeave",null);UX=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-segment-list-renderer"})],UX);
_.Z(UX,"ytd-transcript-segment-list-renderer",function(){if(cdj!==void 0)return cdj;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cdj=I},{mode:1});var HS=function(){var I=_.q.apply(this,arguments)||this;I.hideTimestamps=!!_.Fk("hide-transcript-timestamps");I.isLoadingTranscripts=!1;I.darkerPanels=_.V("web_watch_darker_panels");I.isError=!1;I.actionMap={"yt-signal-action-toggle-transcript-timestamps":"handleSignalActionToggleTranscriptTimestamps","yt-signal-action-copy-transcript":"handleSignalActionCopyTranscript"};return I};
_.R(HS,_.q);_.u=HS.prototype;_.u.headerChanged=function(){var I,C;this.baseGetTranscriptsCommand=(C=_.l((I=this.data)==null?void 0:I.header,JRS))==null?void 0:C.onTextChangeCommand};
_.u.bodyChanged=function(){var I=this.getBodyRenderer();I&&(I.initialSegments&&(this.initialTranscriptsRenderer=I),I.noResultLabel&&(this.noResultLabel=I.noResultLabel),I.retryLabel&&(this.retryLabel=I.retryLabel))};
_.u.detached=function(){this.clearSearchBoxText()};
_.u.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"body"}};
_.u.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"}}}};
_.u.onReloadContinuationFinish=function(){this.isLoadingTranscripts=!1};
_.u.fireSearch=function(I){var C=this;if(I){var y=I.detail.query;if(this.baseGetTranscriptsCommand){var k;I=(k=_.l(this.baseGetTranscriptsCommand,_.QzY))==null?void 0:k.params;var F;k=_.l((F=this.data)==null?void 0:F.footer,Syy);var z;if((F=(z=_.l(k==null?void 0:k.languageMenu,EiR))==null?void 0:z.subMenuItems)&&F.length>0&&(z=F.find(function(w){return w.selected}))){var c,r;
I=(c=z.continuation)==null?void 0:(r=c.reloadContinuationData)==null?void 0:r.continuation}c=Object.assign({},this.baseGetTranscriptsCommand,{getTranscriptEndpoint:{params:I,searchQuery:y}});this.ytComponentBehavior.resolveCommand(c,{commandController:{onServerError:function(){C.setError()}}});
this.isLoadingTranscripts=!0;this.set("data.body",{});w_Y(this.ytContinuationHandlerBehavior,function(){return y===C.getCurrentSearchBoxText()})}}};
_.u.searchCleared=function(){this.data&&this.data.body&&(this.isLoadingTranscripts=!1,this.set("data.body",{transcriptSegmentListRenderer:this.initialTranscriptsRenderer}))};
_.u.onRetryButtonClick=function(){this.isError=!1;var I={query:this.getCurrentSearchBoxText()};this.fireSearch(new CustomEvent("yt-transcript-search-box-search",{detail:I}))};
_.u.hideTimestampsChanged=function(){_.ky("hide-transcript-timestamps",this.hideTimestamps)};
_.u.toggleTranscriptTimestampAction=function(){this.hideTimestamps=!this.hideTimestamps};
_.u.handleSignalActionToggleTranscriptTimestamps=function(){this.toggleTranscriptTimestampAction()};
_.u.handleSignalActionCopyTranscript=function(){var I=this,C=this.getBodyRenderer();C&&(C=((C==null?void 0:C.searchResultSegments)||(C==null?void 0:C.initialSegments)||[]).map(function(y){return _.l(y,aKB)}).filter(function(y){return!!y}).map(function(y){return{snippet:y.snippet||{runs:[{text:""}]},
startTimeText:y.startTimeText||{simpleText:""}}}).map(function(y){var k=(y.snippet.runs||[]).reduce(function(F,z){return F+z.text},"");
return I.hideTimestamps?k:y.startTimeText.simpleText+" "+k}).join("\n"),this.copyToClipboard(C))};
_.u.copyToClipboard=function(I){navigator.clipboard&&navigator.clipboard.writeText(I)};
_.u.getCurrentSearchBoxText=function(){var I;return(I=this.searchBox)==null?void 0:I.value};
_.u.clearSearchBoxText=function(){this.searchBox&&this.searchBox.clear()};
_.u.getBodyRenderer=function(){var I;return _.l((I=this.data)==null?void 0:I.body,OTM)};
_.u.setError=function(){this.isLoadingTranscripts=!1;this.isError=!0};
_.H1.Object.defineProperties(HS.prototype,{searchBox:{configurable:!0,enumerable:!0,get:function(){return _.f(this.hostElement).querySelector("ytd-transcript-search-box-renderer")}}});
HS.prototype.hideTimestampsChanged=HS.prototype.hideTimestampsChanged;HS.prototype.searchCleared=HS.prototype.searchCleared;HS.prototype.fireSearch=HS.prototype.fireSearch;HS.prototype.onReloadContinuationFinish=HS.prototype.onReloadContinuationFinish;HS.prototype.bodyChanged=HS.prototype.bodyChanged;HS.prototype.headerChanged=HS.prototype.headerChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HS.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],HS.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],HS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],HS.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HS.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],HS.prototype,"hideTimestamps",void 0);
_.E([_.d(),_.h("design:type",Object)],HS.prototype,"isLoadingTranscripts",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],HS.prototype,"darkerPanels",void 0);_.E([_.d(),_.h("design:type",Object)],HS.prototype,"isError",void 0);_.E([_.FI("data.header"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HS.prototype,"headerChanged",null);
_.E([_.rW("data.body"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HS.prototype,"bodyChanged",null);_.E([_.km("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HS.prototype,"onReloadContinuationFinish",null);_.E([_.km("yt-transcript-search-box-search"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],HS.prototype,"fireSearch",null);
_.E([_.km("yt-transcript-search-box-clear"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HS.prototype,"searchCleared",null);_.E([_.FI("hideTimestamps"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HS.prototype,"hideTimestampsChanged",null);HS=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-search-panel-renderer"})],HS);
_.Z(HS,"ytd-transcript-search-panel-renderer",function(){if(zIK!==void 0)return zIK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zIK=I},{mode:1});var tl=function(){var I=_.q.apply(this,arguments)||this;I.player=null;I.playerPollJobId=0;return I};
_.R(tl,_.q);_.u=tl.prototype;_.u.panelContentVisibleChanged=function(){this.updatePlayerListening()};
_.u.onLoadReloadContinuation=function(I){_.V("enable_att_for_transcript_request_on_web_client")?this.ytComponentBehavior.resolveCommand({getTranscriptEndpoint:{params:I.target.data.continuation}}):(I={clickTrackingParams:I.target.data.clickTrackingParams,getTranscriptEndpoint:{params:I.target.data.continuation},commandMetadata:{webCommandMetadata:{apiUrl:"/youtubei/v1/get_transcript",sendPost:!0}}},_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}}))};
_.u.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"}}}};
_.u.created=function(){this.ytActionHandlerBehavior.actionMap={"yt-transcript-player-edit":"onYtTranscriptPlayerEdit","yt-transcript-player-seek":"onYtTranscriptPlayerSeek","yt-transcript-player-replay":"onYtTranscriptPlayerReplay"}};
_.u.attached=function(){this.updatePlayerListening()};
_.u.detached=function(){this.updatePlayerListening()};
_.u.updatePlayerListening=function(){this.isAttached&&this.panelContentVisible?(this.player&&this.stopPlayerListening(),this.startPlayerListening()):this.stopPlayerListening()};
_.u.startPlayerListening=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return(C=_.hU())?_.n(y,C.getPlayerPromise(),2):y.return();I.player=y.yieldResult;I.playerPollJobId=_.b$.addLowPriorityJob(function(){I.getPlayerVideoProgress()},1E3);
I.player.addEventListener("onCueRangeEnter",function(k){I.onCueRangeEnter(k)});
I.player.addEventListener("onCueRangeExit",function(k){I.onCueRangeExit(k)});
I.player.addEventListener("onStateChange",function(k){I.onPlayerStateChange(k)});
I.player.addEventListener("SEEK_TO",function(k){I.onPlayerSeek(k)});
_.oI(y)})};
_.u.getPlayerVideoProgress=function(){var I=this;_.b$.cancelJob(this.playerPollJobId);if(this.player){var C=this.player.getCurrentTime();_.Fe(this.hostElement,"yt-player-time-changed",[C])}this.playerPollJobId=_.b$.addLowPriorityJob(function(){I.getPlayerVideoProgress()},1E3)};
_.u.stopPlayerListening=function(){this.player=null;_.b$.cancelJob(this.playerPollJobId)};
_.u.onPlayerStateChange=function(I){I===2&&this.removePendingCue()};
_.u.onPlayerSeek=function(I){var C;if(C=this.pendingReplayCueId)C=this.pendingReplayCueId,C=I===(_.V("web_transcript_cue_id_killswitch")?Number(C):Number(C.split("_")[1]));C||this.removePendingCue()};
_.u.onCueRangeEnter=function(I){xvB(I)&&(this.pendingReplayCueId=I)};
_.u.onCueRangeExit=function(I){xvB(I)&&this.player&&(this.player.pauseVideo(),this.removePendingCue())};
_.u.removePendingCue=function(){this.player&&this.pendingReplayCueId&&this.player.removeCueRange(this.pendingReplayCueId);this.pendingReplayCueId=void 0};
_.u.onYtTranscriptPlayerSeek=function(I){this.player&&this.player.seekTo(I,!0)};
_.u.onYtTranscriptPlayerReplay=function(I,C){this.player&&(this.player.addCueRange(dvK(I),I,C),this.player.seekTo(I,!0),this.player.playVideo())};
_.u.onYtTranscriptPlayerEdit=function(I,C){this.player&&(this.player.getPlayerState()===1&&this.player.addCueRange(dvK(I),I,C),this.player.seekTo(I,!0))};
tl.prototype.onLoadReloadContinuation=tl.prototype.onLoadReloadContinuation;tl.prototype.panelContentVisibleChanged=tl.prototype.panelContentVisibleChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tl.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],tl.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tl.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],tl.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tl.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],tl.prototype,"panelContentVisible",void 0);_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tl.prototype,"panelContentVisibleChanged",null);
_.E([_.km("yt-load-reload-continuation"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],tl.prototype,"onLoadReloadContinuation",null);tl=_.E([_.m({disableElementRegistration:!0,is:"ytd-transcript-renderer"})],tl);
_.Z(tl,"ytd-transcript-renderer",function(){if(FKL!==void 0)return FKL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return FKL=I},{mode:1});var rdy;var iSP;var Jl=function(){return _.q.apply(this,arguments)||this};
_.R(Jl,_.q);Jl.prototype.onTap=function(){this.data&&(this.data.navigationEndpoint&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.clickCommand&&_.cQ(this.hostElement,[this.data.clickCommand],this.hostElement))};
Jl.prototype.computeHideMediaQuery=function(){return"(min-width: 600px) and (max-width: "+((0,_.Nw)()+_.gN)+"px)"};
Jl.prototype.updateShouldHideFromBinding=function(I){this.shouldHide=I.detail.value};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Jl.prototype,"rendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Jl.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],Jl.prototype,"shouldHide",void 0);Jl=_.E([_.m({is:"ytd-ad-engagement-panel-banner-renderer",disableElementRegistration:!0})],Jl);
_.Z(Jl,"ytd-ad-engagement-panel-banner-renderer",function(){if(iSP!==void 0)return iSP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return iSP=I},{mode:_.Ij("kevlar_poly_si_batch_j070")?1:2});var wcL;var OX=function(){var I=_.q.apply(this,arguments)||this;I.modernPanels=_.V("kevlar_watch_modern_panels");I.buttonUpdate=_.V("web_modern_buttons");I.adsSemanticText=_.V("enable_ads_web_ep_buenos_aires_and_padding_fix");return I};
_.R(OX,_.q);OX.prototype.computeHideDefaultAdBadge=function(){return this.data&&!this.data.badges};
_.E([_.d(),_.h("design:type",Object)],OX.prototype,"data",void 0);_.E([_.d({computed:"computeHideDefaultAdBadge(data)"}),_.h("design:type",Boolean)],OX.prototype,"hideDefaultAdBadge",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OX.prototype,"modernPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OX.prototype,"buttonUpdate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OX.prototype,"adsSemanticText",void 0);
OX=_.E([_.m({is:"ytd-engagement-panel-ad-subtitle-renderer",disableElementRegistration:!0})],OX);
_.Z(OX,"ytd-engagement-panel-ad-subtitle-renderer",function(){if(wcL!==void 0)return wcL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return wcL=I},{mode:1});var neL;var ap=function(){var I=_.q.apply(this,arguments)||this;I.darkerPanels=_.V("web_watch_darker_panels");I.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");I.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");I.modernPanels=_.V("kevlar_watch_modern_panels");I.actionMap={"yt-engagement-panel-header-show-navigation-button-command":"onYtEngagementPanelHeaderShowNavigationButtonCommand"};return I};
_.R(ap,_.q);_.u=ap.prototype;_.u.computeAdsInfoButton=function(){if(_.V("web_modern_buttons")){var I,C;return(C=_.l((I=this.data)==null?void 0:I.subtitleComplex,KJj))==null?void 0:C.adInfoRenderer}};
_.u.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}}}}}};
_.u.collapsedChanged=function(){var I;(I=this.data)!=null&&I.actionButton?this.hideActionButton=this.targetId==="engagement-panel-ads"&&_.V("use_ads_engagement_panel_desktop_footer_cta")?!this.collapsed:!1:this.hideActionButton=!0};
_.u.focus=function(I){this.titleElement&&_.UL(this.titleElement,I)};
_.u.computeTitleAriaLabel=function(I){var C=[];if(I.title){var y,k;C.push(this.ytRendererBehavior.getSimpleString(I.title)||((y=I.title.accessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label))}I.contextualInfo&&C.push(this.ytRendererBehavior.getSimpleString(I.contextualInfo));return C.join(" ")};
_.u.onHeaderClick=function(I){this.shouldTriggerHeaderClick(I)&&this.data&&(this.data.navigationEndpoint||this.data.onClickCommand?(this.data.navigationEndpoint&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}),this.data.onClickCommand&&_.cQ(this.hostElement,[this.data.onClickCommand],this.hostElement)):(I=this.getVisibilityToggleButton())&&I.click())};
_.u.onVisibilityButtonClick=function(){if(this.data&&this.data.visibilityButton){var I=_.l(this.data.visibilityButton,_.fZ)||_.l(this.data.visibilityButton,_.SV);I&&this.ytRendererBehavior.logExplicitClick(I)}};
_.u.getVisibilityToggleButton=function(){var I=_.f(this.hostElement).querySelector("#visibility-button").firstElementChild;return(I==null?void 0:I.is)==="ytd-toggle-button-renderer"?I:null};
_.u.shouldTriggerHeaderClick=function(I){return!_.q3(_.qc(I),this.hostElement,["YTD-MENU-RENDERER","YTD-BUTTON-RENDERER","YTD-TOGGLE-BUTTON-RENDERER"])};
_.u.onYtEngagementPanelHeaderShowNavigationButtonCommand=function(I){I=_.l(I,_.lKy);this.targetId&&(I==null?void 0:I.targetId)===this.targetId&&(I=I.navigationButton)&&this.set("data.navigationButton",I)};
_.H1.Object.defineProperties(ap.prototype,{adsSemanticText:{configurable:!0,enumerable:!0,get:function(){return _.V("enable_ads_web_ep_buenos_aires_and_padding_fix")&&this.targetId==="engagement-panel-ads"}},
isActionButtonHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!!(((I=this.entity)==null?0:I.isActionButtonHidden)||this.hideActionButton)}}});
ap.prototype.collapsedChanged=ap.prototype.collapsedChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ap.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ap.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ap.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],ap.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],ap.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],ap.prototype,"targetId",void 0);_.E([_.d(),_.h("design:type",Boolean)],ap.prototype,"collapsed",void 0);_.E([_.d(),_.h("design:type",Boolean)],ap.prototype,"hideActionButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ap.prototype,"shortsPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ap.prototype,"liveChatEngagementPanel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ap.prototype,"darkerPanels",void 0);_.E([_.z$("#title"),_.h("design:type",HTMLElement)],ap.prototype,"titleElement",void 0);_.E([_.d({computed:"computeAdsInfoButton(data)"}),_.h("design:type",Object)],ap.prototype,"adsInfoButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ap.prototype,"enableSqueezebackPanels",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ap.prototype,"enableAnchoredPanel",void 0);_.E([_.d({selectorArgs:["data.engagementPanelTitleHeaderEntityKey"],selector:function(I,C){return _.cg(I.entities,"engagementPanelTitleHeaderEntity",C)}}),
_.h("design:type",Object)],ap.prototype,"entity",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ap.prototype,"modernPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("targetId"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ap.prototype,"adsSemanticText",null);_.E([_.rW("collapsed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ap.prototype,"collapsedChanged",null);
_.E([_.v("entity","hideActionButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ap.prototype,"isActionButtonHidden",null);ap=_.E([_.m({is:"ytd-engagement-panel-title-header-renderer",disableElementRegistration:!0})],ap);
_.Z(ap,"ytd-engagement-panel-title-header-renderer",function(){if(neL!==void 0)return neL;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-engagement-panel-title-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="banner" aria-hidden="true" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="ads-info-button" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n<div id="header" on-click="onHeaderClick" class="style-scope ytd-engagement-panel-title-header-renderer">\n  <div id="navigation-button" hidden="[[!data.navigationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <yt-img-shadow id="icon" hidden="[[!data.icon]]" thumbnail="[[data.icon]]" class="style-scope ytd-engagement-panel-title-header-renderer"></yt-img-shadow>\n  <div id="title-container" class="style-scope ytd-engagement-panel-title-header-renderer">\n    <h2 id="title" aria-label$="[[computeTitleAriaLabel(data)]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      <yt-formatted-string id="title-text" ellipsis-truncate="" text="[[data.title]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n      <yt-formatted-string id="contextual-info" hidden="[[!data.contextualInfo]]" text="[[data.contextualInfo]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n      </yt-formatted-string>\n    </h2>\n    <yt-formatted-string id="subtitle" hidden="[[!data.subtitle]]" text="[[data.subtitle]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </yt-formatted-string>\n    <ytd-badge-supported-renderer hidden="[[!data.titleBadge]]" top-standalone-badge="[[data.titleBadge]]" class="style-scope ytd-engagement-panel-title-header-renderer">\n    </ytd-badge-supported-renderer>\n    <div id="subtitle-complex" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  </div>\n  <div id="action-button" hidden="[[isActionButtonHidden]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="information-button" hidden="[[!data.informationButton]]" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="menu" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n  <div id="visibility-button" on-click="onVisibilityButtonClick" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n</div>\n<div id="subheader" class="style-scope ytd-engagement-panel-title-header-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return neL=I},{mode:1});var Pcy;var Mp=function(){return _.q.apply(this,arguments)||this};
_.R(Mp,_.q);Mp.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}},"data.editButton":{id:"edit",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Mp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mp.prototype,"data",void 0);Mp=_.E([_.m({is:"ytd-macro-markers-info-item-renderer",disableElementRegistration:!0})],Mp);
_.Z(Mp,"ytd-macro-markers-info-item-renderer",function(){if(Pcy!==void 0)return Pcy;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Pcy=I},{mode:1});var LKB;var QvP=function(I,C,y,k,F,z){_.LL.call(this);var c=this;this.JSC$19992_containerElement=I;this.hostElement=C;this.supportedSyncItems=y;this.syncEntityKey=k;this.options=F;this.renderLazyListItems=z;this.activeItemBelowSyncPosition=this.contentVisible=this.browsingMode=!1;DgL(this);pcy(this);this.JSC$19992_scrollAnimation=new _.XQ(function(r){I.scrollTop=r});
_.kq(this,this.JSC$19992_scrollAnimation);this.addOnDisposeCallback(function(){c.exitBrowsingMode(!1);c.activeItem&&c.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}))})};
_.R(QvP,_.LL);var DgL=function(I){var C=_.rf(_.N().resolve(_.VL),function(y){return y.entities.markersEngagementPanelSyncEntity||{}},function(y,k){var F;
y[I.syncEntityKey]!==k[I.syncEntityKey]&&((F=y[I.syncEntityKey])==null?void 0:F.activeItemIndex)!==void 0&&I.updatePanelActiveItem(y[I.syncEntityKey].activeItemIndex)});
I.unsubscribeFromTimedMarkersListSyncEntity=C;I.addOnDisposeCallback(C);Nm8(I)},Nm8=function(I){var C=_.N().resolve(_.VL);
C=_.frm(C.getState(),I.syncEntityKey);(C==null?void 0:C.activeItemIndex)!==void 0&&(C=I.getItemByIndex(C.activeItemIndex))&&I.setActiveItem(C)},pcy=function(I){var C=new _.OG(I.onScroll,50,I);
_.kq(I,C);var y=function(){C.fire()};
I.JSC$19992_containerElement.addEventListener("scroll",y);I.addOnDisposeCallback(function(){I.JSC$19992_containerElement.removeEventListener("scroll",y)})};
_.u=QvP.prototype;
_.u.updatePanelActiveItem=function(I){var C=this.getItemByIndex(I);if(C){if(this.setActiveItem(C),this.contentVisible)if(this.browsingMode){var y;((y=this.options)==null?void 0:y.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(I=VCK(this),C.offsetTop<this.JSC$19992_containerElement.clientHeight+this.JSC$19992_containerElement.scrollTop&&I&&!this.activeItemBelowSyncPosition&&this.exitBrowsingMode(!1));jvY(this)}else this.scrollToItem(C)}else _.SN(new _.ph("Could not find "+this.supportedSyncItems+
" sync child to set active.",I,this.JSC$19992_containerElement.querySelectorAll(this.supportedSyncItems).length))};
_.u.getItemByIndex=function(I){var C;(C=this.renderLazyListItems)==null||C.call(this,I);C=this.JSC$19992_containerElement.querySelectorAll(this.supportedSyncItems);if(C.length>I)return C[I]};
_.u.setActiveItem=function(I){this.activeItem&&this.activeItem.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!1}}));I.dispatchEvent(new CustomEvent("yt-synced-panel-active-item-update",{detail:{active:!0}}));this.activeItem=I};
_.u.scrollToItem=function(I){I=this.getScrollPositionForItem(I);this.JSC$19992_containerElement.scrollTop!==I&&this.JSC$19992_scrollAnimation.start(this.JSC$19992_containerElement.scrollTop,I,300)};
_.u.getScrollPositionForItem=function(I){if(this.JSC$19992_containerElement.querySelectorAll(this.supportedSyncItems)[0]===I)return 0;var C,y=((C=this.options)==null?0:C.percentOffset)?this.JSC$19992_containerElement.clientHeight*this.options.percentOffset:0;I=_.l3(I).y+this.JSC$19992_containerElement.scrollTop-(_.l3(this.JSC$19992_containerElement).y+y);return Math.max(0,Math.min(I,this.JSC$19992_containerElement.scrollHeight-this.JSC$19992_containerElement.offsetHeight))};
_.u.onScroll=function(){this.activeItemBelowSyncPosition=VCK(this);if(this.activeItem&&!this.JSC$19992_scrollAnimation.isAnimating()&&Math.abs(this.JSC$19992_containerElement.scrollTop-this.getScrollPositionForItem(this.activeItem))>10){var I;switch((I=this.options)==null?void 0:I.floatingPillType){case "FLOATING_PILL_TYPE_MODERN_TRANSCRIPT":this.enterBrowsingMode(!lOY(this));jvY(this);break;default:this.enterBrowsingMode(!0)}}};
_.u.enterBrowsingMode=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1){if(C.browsingMode)return F.return();C.browsingMode=!0;I&&C.hostElement.classList.add("browsing-mode");C.playerExitBrowsingModeListener=function(){C.exitBrowsingMode(!1)};
return _.n(F,_.sG(),2)}y=F.yieldResult;(k=y)==null||k.addEventListener("SEEK_TO",C.playerExitBrowsingModeListener);_.oI(F)})};
_.u.exitBrowsingMode=function(I){I=I===void 0?!0:I;this.browsingMode&&(this.browsingMode=!1,this.hostElement.classList.remove("browsing-mode"),I&&this.scrollToItem(this.activeItem),this.removePlayerSeekListener())};
_.u.removePlayerSeekListener=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1)return I.playerExitBrowsingModeListener?_.n(k,_.sG(),3):k.jumpTo(0);C=k.yieldResult;(y=C)==null||y.removeEventListener("SEEK_TO",I.playerExitBrowsingModeListener);I.playerExitBrowsingModeListener=void 0;_.oI(k)})};
var jvY=function(I){var C;((C=I.options)==null?void 0:C.floatingPillType)==="FLOATING_PILL_TYPE_MODERN_TRANSCRIPT"&&(lOY(I)?I.hostElement.classList.remove("browsing-mode"):I.activeItem&&I.hostElement.classList.add("browsing-mode"))},VCK=function(I){if(!I.activeItem)return!1;
var C,y=((C=I.options)==null?0:C.percentOffset)?I.JSC$19992_containerElement.clientHeight*I.options.percentOffset:0;return I.activeItem.offsetTop>=I.JSC$19992_containerElement.scrollTop+y},lOY=function(I){if(!I.activeItem)return!1;
var C=I.activeItem.offsetTop+14<=I.JSC$19992_containerElement.scrollTop+I.JSC$19992_containerElement.clientHeight;return I.activeItem.offsetTop+I.activeItem.clientHeight-14>=I.JSC$19992_containerElement.scrollTop&&C};
QvP.prototype.panelContentVisibleChanged=function(I){(this.contentVisible=I)&&!this.browsingMode&&this.activeItem&&this.scrollToItem(this.activeItem)};
var XcY=function(I,C){I.syncEntityKey=C;var y;(y=I.unsubscribeFromTimedMarkersListSyncEntity)==null||y.call(I);DgL(I)},$gL=function(I,C){I.options=C};var Il=function(){var I=_.q.apply(this,arguments)||this;I.browsingMode=!1;I.modern=_.V("web_button_rework");I.actionMap={"yt-set-active-panel-item-action":"handleSetActivePanelItemAction"};return I};
_.R(Il,_.q);_.u=Il.prototype;_.u.activeItemChanged=function(){if(!_.V("synced_panel_scrolling_controller")){var I;((I=this.syncEntity)==null?void 0:I.activeItemIndex)!==void 0&&this.updatePanelActiveItem(this.syncEntity.activeItemIndex)}};
_.u.created=function(){var I=this;_.V("synced_panel_scrolling_controller")||(this.JSC$19996_scrollAnimation=new _.XQ(function(C){I.contents.scrollTop=C}),this.boundExitBrowsingMode=function(){I.exitBrowsingMode(!1)})};
_.u.detached=function(){if(_.V("synced_panel_scrolling_controller")){var I;(I=this.scrollController)==null||I.dispose();this.scrollController=void 0}else this.removePlayerSeekListener()};
_.u.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"}}}};
_.u.dataChanged=function(){var I=this;_.V("synced_panel_scrolling_controller")?_.hn(this,function(){if(I.scrollController){var C;(C=I.scrollController)==null||C.exitBrowsingMode(!1);var y,k,F;(k=I.scrollController)==null||XcY(k,(F=(y=I.data)==null?void 0:y.syncModelEntityKey)!=null?F:"default-macro-markers-list-renderer-entity-key");var z,c,r;(r=I.scrollController)==null||$gL(r,{percentOffset:(z=I.data)==null?void 0:z.selectedItemAlignmentPercentOffset,floatingPillType:(c=I.data)==null?void 0:c.floatingPillType})}else{var w,
L,D,p;I.scrollController=new QvP(I.contents,I.hostElement,"ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model",(p=(w=I.data)==null?void 0:w.syncModelEntityKey)!=null?p:"default-macro-markers-list-renderer-entity-key",{percentOffset:(L=I.data)==null?void 0:L.selectedItemAlignmentPercentOffset,floatingPillType:(D=I.data)==null?void 0:D.floatingPillType},function(Q){I.renderLazyListItems(Q)})}I.scrollController.panelContentVisibleChanged(!!I.panelContentVisible)}):this.exitBrowsingMode()};
_.u.computeButtonShape=function(){var I=this;if(this.data&&this.data.syncButtonLabel&&this.modern)return{onTap:function(){I.onSyncClick()},
style:"mono",type:"filled",state:"active",size:"S",focused:!1,buttonText:this.ytRendererBehavior.getSimpleString(this.data.syncButtonLabel)}};
_.u.computeSyncEnabled=function(I){return!(I==null||!I.syncButtonLabel)};
_.u.renderLazyListItems=function(I){for(var C=this.contents.children,y=0,k=0;k<C.length;k++){var F=void 0;(F=C[k].ytLazyListBehavior)==null||F.fillRemainingListItems();var z=void 0,c=void 0;F=_.l((z=this.data)==null?void 0:(c=z.contents)==null?void 0:c[k],_.pcH);c=z=void 0;if((z=F)==null?0:(c=z.contents)==null?0:c.length)y+=F.contents.length;if(y>=I)break}};
_.u.getItemByIndex=function(I){this.renderLazyListItems(I);var C=this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model");if(C.length>I)return C[I]};
_.u.setActiveItem=function(I){this.currentActiveItem&&this.currentActiveItem.active!==void 0&&(this.currentActiveItem.active=!1);I.active!==void 0&&(I.active=!0);this.currentActiveItem=I};
_.u.handleSetActivePanelItemAction=function(I){if((I=_.l(I,$_Y))&&this.panelTargetId===I.panelTargetId){I=I.itemIndex;if(_.V("synced_panel_scrolling_controller")){var C,y;var k=(y=(C=this.data)==null?void 0:C.syncModelEntityKey)!=null?y:"default-macro-markers-list-renderer-entity-key"}else{var F;k=(F=this.data)==null?void 0:F.syncModelEntityKey}if(k){var z;((z=this.syncEntity)==null?void 0:z.activeItemIndex)!==I&&this.ytdReduxBehavior.dispatch(_.wJ("markersEngagementPanelSyncEntity",k,{key:k,activeItemIndex:I}))}else this.updatePanelActiveItem(I)}};
_.u.updatePanelActiveItem=function(I){var C=this.getItemByIndex(I);C?(this.setActiveItem(C),!this.browsingMode&&this.panelContentVisible&&this.scrollToItem(C)):_.SN(new _.ph("Could not find ytd-macro-markers-list-renderer sync child to set active.",I,this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model").length))};
_.u.scrollToItem=function(I){I=this.getScrollPositionForItem(I);this.contents.scrollTop!==I&&this.JSC$19996_scrollAnimation.start(this.contents.scrollTop,I,300)};
_.u.getScrollPositionForItem=function(I){if(this.contents.querySelectorAll("ytd-macro-markers-list-item-renderer,macro-markers-panel-item-view-model")[0]===I)return 0;I=_.l3(I).y+this.contents.scrollTop-_.l3(this.contents).y-this.getStickyHeaderHeight(I);return Math.min(I,this.contents.scrollHeight-this.contents.offsetHeight)};
_.u.getStickyHeaderHeight=function(I){if(I.nodeName==="MACRO-MARKERS-PANEL-ITEM-VIEW-MODEL"){var C,y,k;return(k=(C=I.closest('ytd-item-section-renderer[header-style="sticky-header"]'))==null?void 0:(y=C.header)==null?void 0:y.offsetHeight)!=null?k:0}return 0};
_.u.onScroll=function(){_.V("synced_panel_scrolling_controller")||(this.ytRendererBehavior.markDirty(),this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&!this.JSC$19996_scrollAnimation.isAnimating()&&Math.abs(this.contents.scrollTop-this.getScrollPositionForItem(this.currentActiveItem))>10&&this.enterBrowsingMode())};
_.u.enterBrowsingMode=function(){var I=this;return _.e(function(C){if(C.nextAddress==1){if(I.browsingMode)return C.return();I.browsingMode=!0;return _.n(C,_.UZ().getPlayerPromise(),2)}I.player=C.yieldResult;I.player.addEventListener("SEEK_TO",I.boundExitBrowsingMode);_.oI(C)})};
_.u.exitBrowsingMode=function(I){this.browsingMode&&(this.browsingMode=!1,(I===void 0||I)&&this.scrollToItem(this.currentActiveItem),this.removePlayerSeekListener())};
_.u.removePlayerSeekListener=function(){this.player&&(this.player.removeEventListener("SEEK_TO",this.boundExitBrowsingMode),this.player=void 0)};
_.u.onSyncClick=function(){if(_.V("synced_panel_scrolling_controller")){var I;(I=this.scrollController)==null||I.exitBrowsingMode()}else this.exitBrowsingMode()};
_.u.panelContentVisibleChanged=function(){if(_.V("synced_panel_scrolling_controller")){var I;(I=this.scrollController)==null||I.panelContentVisibleChanged(!!this.panelContentVisible)}else this.panelContentVisible&&this.syncEnabled&&!this.browsingMode&&this.currentActiveItem&&this.scrollToItem(this.currentActiveItem)};
Il.prototype.panelContentVisibleChanged=Il.prototype.panelContentVisibleChanged;Il.prototype.dataChanged=Il.prototype.dataChanged;Il.prototype.activeItemChanged=Il.prototype.activeItemChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Il.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Il.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Il.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Il.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Il.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Il.prototype,"useCustomColors",void 0);_.E([_.d({computed:"computeSyncEnabled(data)"}),_.h("design:type",Boolean)],Il.prototype,"syncEnabled",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Il.prototype,"panelTargetId",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Il.prototype,"panelContentVisible",void 0);_.E([_.z$("#contents"),_.h("design:type",HTMLElement)],Il.prototype,"contents",void 0);_.E([_.z$("#sync-container"),_.h("design:type",HTMLElement)],Il.prototype,"syncContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Il.prototype,"browsingMode",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Il.prototype,"modern",void 0);_.E([_.d({selectorArgs:["data.syncModelEntityKey"],selector:_.frm}),_.h("design:type",Object)],Il.prototype,"syncEntity",void 0);_.E([_.FI("syncEntity.activeItemIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Il.prototype,"activeItemChanged",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Il.prototype,"dataChanged",null);_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Il.prototype,"panelContentVisibleChanged",null);Il=_.E([_.m({is:"ytd-macro-markers-list-renderer",disableElementRegistration:!0})],Il);
_.Z(Il,"ytd-macro-markers-list-renderer",function(){if(LKB!==void 0)return LKB;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-macro-markers-list-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="contents" on-scroll="onScroll" class="style-scope ytd-macro-markers-list-renderer"></div>\n<div id="sync-container" hidden="[[!syncEnabled]]" class="style-scope ytd-macro-markers-list-renderer">\n  <tp-yt-paper-button id="sync-button" disable-upgrade="[[modern]]" hidden="[[modern]]" on-click="onSyncClick" class="style-scope ytd-macro-markers-list-renderer">\n    [[getSimpleString(data.syncButtonLabel)]]\n  </tp-yt-paper-button>\n  <yt-button-shape id="sync-button-modern" data="[[computeButtonShape(data)]]" disable-upgrade="[[!modern]]" hidden="[[!modern]]" class="style-scope ytd-macro-markers-list-renderer">\n  </yt-button-shape>\n</div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return LKB=I},{mode:1});var RIY;var Cj=function(){return _.q.apply(this,arguments)||this};
_.R(Cj,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Cj.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Cj.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Cj.prototype,"data",void 0);Cj=_.E([_.m({is:"ytd-error-corrections-section-item-renderer",disableElementRegistration:!0})],Cj);
_.Z(Cj,"ytd-error-corrections-section-item-renderer",function(){if(RIY!==void 0)return RIY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return RIY=I},{mode:1});var bSL;var sa=function(){return _.q.apply(this,arguments)||this};
_.R(sa,_.q);sa.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{errorCorrectionsSectionItemRenderer:"ytd-error-corrections-section-item-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sa.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],sa.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sa.prototype,"data",void 0);sa=_.E([_.m({is:"ytd-error-corrections-section-renderer",disableElementRegistration:!0})],sa);
_.Z(sa,"ytd-error-corrections-section-renderer",function(){if(bSL!==void 0)return bSL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return bSL=I},{mode:1});var Y4L;var ol=function(){return _.q.apply(this,arguments)||this};
_.R(ol,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ol.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ol.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ol.prototype,"data",void 0);ol=_.E([_.m({is:"ytd-topic-link-renderer",disableElementRegistration:!0})],ol);
_.Z(ol,"ytd-topic-link-renderer",function(){if(Y4L!==void 0)return Y4L;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Y4L=I},{mode:1});var GaB;var y1=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("kevlar_modern_sd_v2");I.modernLockupV2=_.V("modernize_structured_description_playlist_lockups_v2");I.modernTypography=_.V("web_modern_typography");return I};
_.R(y1,_.q);y1.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{structuredDescriptionPlaylistLockupRenderer:{component:"ytd-structured-description-playlist-lockup-renderer",properties:{showSidePanelThumbnailOverlay:"[[modernLockupV2]]"}}}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],y1.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],y1.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],y1.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],y1.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],y1.prototype,"modernLockupV2",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],y1.prototype,"modernTypography",void 0);y1=_.E([_.m({is:"ytd-video-description-course-section-renderer",disableElementRegistration:!0})],y1);
_.Z(y1,"ytd-video-description-course-section-renderer",function(){if(GaB!==void 0)return GaB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return GaB=I},{mode:1});var fOK;var kM=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("kevlar_modern_sd_v2");I.modernTypography=_.V("web_modern_typography");return I};
_.R(kM,_.q);kM.prototype.configureRendererStamper=function(){return{"data.files":{id:"file-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.viewAllButton":{id:"view-all-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],kM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kM.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],kM.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],kM.prototype,"modernTypography",void 0);
kM=_.E([_.m({is:"ytd-video-description-files-section-renderer",disableElementRegistration:!0})],kM);
_.Z(kM,"ytd-video-description-files-section-renderer",function(){if(fOK!==void 0)return fOK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fOK=I},{mode:1});var S4L;var F5=function(){return _.q.apply(this,arguments)||this};
_.R(F5,_.q);F5.prototype.configureRendererStamper=function(){return{"data.mediaLockups":{id:"media-lockups",mapping:{mediaLockupRenderer:"ytd-media-lockup-renderer"}},"data.topicLink":{id:"topic-link",mapping:{topicLinkRenderer:"ytd-topic-link-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],F5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],F5.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],F5.prototype,"data",void 0);F5=_.E([_.m({is:"ytd-video-description-gaming-section-renderer",disableElementRegistration:!0})],F5);
_.Z(F5,"ytd-video-description-gaming-section-renderer",function(){if(S4L!==void 0)return S4L;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return S4L=I},{mode:1});var KK8;var uE=function(){var I=_.q.apply(this,arguments)||this;I.isExpanded=!1;return I};
_.R(uE,_.q);uE.prototype.computeHasDefaultMetadataEndpoint=function(I){var C;I=I==null?void 0:(C=I.defaultMetadata)==null?void 0:C.runs;return!(!I||I.length!==1||!I[0].navigationEndpoint)};
uE.prototype.onRowExpand=function(){this.isExpandable&&!this.isExpanded&&(this.isExpanded=!0)};
_.H1.Object.defineProperties(uE.prototype,{isExpandable:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.expandedMetadata)}},
showExpandedMetadata:{configurable:!0,enumerable:!0,get:function(){return!(!this.isExpandable||!this.isExpanded)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uE.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],uE.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uE.prototype,"isExpanded",void 0);_.E([_.d({computed:"computeHasDefaultMetadataEndpoint(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],uE.prototype,"hasDefaultMetadataEndpoint",void 0);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uE.prototype,"isExpandable",null);_.E([_.v("data","isExpandable","isExpanded"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],uE.prototype,"showExpandedMetadata",null);uE=_.E([_.m({is:"ytd-info-row-renderer",disableElementRegistration:!0})],uE);
_.Z(uE,"ytd-info-row-renderer",function(){if(KK8!==void 0)return KK8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return KK8=I},{mode:1});var AdB;var zq=function(){var I=_.q.apply(this,arguments)||this;I.currentIndex=0;I.supportComponentResize=!0;I.modern=_.V("kevlar_modern_sd_v2");I.JSC$20022_lastScrollContainerWidth=NaN;return I};
_.R(zq,_.q);_.u=zq.prototype;
_.u.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"}}}};
_.u.getItemsPath=function(){return"videoLockups"};
_.u.hiddenChanged=function(){this.contentHidden||this.updateVideoLockupStyles()};
_.u.onIronResize=function(){this.updateVideoLockupStyles()};
_.u.dataChanged=function(){this.updateVideoLockupStyles();this.ytdHorizontalListBehavior.reset()};
_.u.updateVideoLockupStyles=function(){var I;this.JSC$20022_scrollContainer!==void 0&&(I=this.videoLockups)!=null&&I.length&&(I=this.JSC$20022_scrollContainer.clientWidth,I!==this.JSC$20022_lastScrollContainerWidth&&(this.JSC$20022_lastScrollContainerWidth=I,_.CK(this.hostElement,{"--ytd-compact-video-renderer-width":Math.min(I*.8,415)+"px"}),_.k3(this.hostElement,"iron-resize")))};
_.H1.Object.defineProperties(zq.prototype,{videoLockups:{configurable:!0,enumerable:!0,get:function(){var I=[],C;if((C=this.data)==null||!C.carouselLockups)return I;C=_.T(this.data.carouselLockups);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;((k=_.l(y,sxy))==null?0:k.videoLockup)&&I.push(_.l(y,sxy).videoLockup)}return I}},
hasVideoLockups:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoLockups)==null||!I.length)}},
infoRows:{configurable:!0,enumerable:!0,get:function(){var I=[],C;if((C=this.data)==null||!C.carouselLockups)return I;var y;return(y=_.l(this.data.carouselLockups[this.scrollCount],sxy))==null?void 0:y.infoRows}}});
zq.prototype.dataChanged=zq.prototype.dataChanged;zq.prototype.onIronResize=zq.prototype.onIronResize;zq.prototype.hiddenChanged=zq.prototype.hiddenChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],zq.prototype,"componentBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],zq.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zq.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],zq.prototype,"inlineStructuredDescription",void 0);_.E([_.d({value:2}),_.h("design:type",Number)],zq.prototype,"initialCount",void 0);_.E([_.d(),_.h("design:type",Object)],zq.prototype,"currentIndex",void 0);
_.E([_.d(),_.h("design:type",Number)],zq.prototype,"scrollCount",void 0);_.E([_.d(),_.h("design:type",Object)],zq.prototype,"supportComponentResize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],zq.prototype,"contentHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],zq.prototype,"modern",void 0);_.E([_.z$("#scroll-container"),_.h("design:type",HTMLDivElement)],zq.prototype,"JSC$20022_scrollContainer",void 0);
_.E([_.FI("contentHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"hiddenChanged",null);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],zq.prototype,"videoLockups",null);_.E([_.v("videoLockups"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zq.prototype,"hasVideoLockups",null);
_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"onIronResize",null);_.E([_.v("data","scrollCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],zq.prototype,"infoRows",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zq.prototype,"dataChanged",null);zq=_.E([_.m({is:"ytd-video-description-music-section-renderer",disableElementRegistration:!0})],zq);
_.Z(zq,"ytd-video-description-music-section-renderer",function(){if(AdB!==void 0)return AdB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return AdB=I},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var geR;var Tq=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("kevlar_modern_sd_v2");I.modernTypography=_.V("web_modern_typography");return I};
_.R(Tq,_.q);Tq.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Tq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Tq.prototype,"ytRendererBehavior",void 0);_.E([_.d({}),_.h("design:type",Object)],Tq.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tq.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tq.prototype,"modernTypography",void 0);
Tq=_.E([_.m({is:"ytd-video-description-transcript-section-renderer",disableElementRegistration:!0})],Tq);
_.Z(Tq,"ytd-video-description-transcript-section-renderer",function(){if(geR!==void 0)return geR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return geR=I},{mode:1});var veK;_.B9(_.BO(function(I){var C=_.cj(_.sgF,function(){return I.data().firstProviderLinkStatusEntityKey}),y=_.cj(_.sgF,function(){return I.data().secondProviderLinkStatusEntityKey}),k=function(){var F,z;
return((F=C())==null?void 0:F.linked)||((z=y())==null?void 0:z.linked)};
return _.P("ytw-video-description-fantasy-section-view-model",{class:"ytwVideoDescriptionFantasySectionViewModelHost"},_.P(_.wh,{className:"ytwVideoDescriptionFantasySectionViewModelTitle",text:function(){return I.data().sectionTitle}}),_.P(_.wh,{className:"ytwVideoDescriptionFantasySectionViewModelMessage",
text:function(){return k()?I.data().connectedMessage:I.data().notConnectedMessage}}),_.P(_.Dx,{cond:k,
then:function(){return _.P(_.lY,{data:function(){return I.data().connectedButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}),_.P(_.Dx,{cond:function(){return!k()},
then:function(){return _.P(_.lY,{data:function(){return I.data().notConnectedButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytwVideoDescriptionFantasySectionViewModelButton"})}})}}))},"ti"),"ytw-video-description-fantasy-section-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;return _.P("how-this-was-made-section-view-model",{class:"ytwHowThisWasMadeSectionViewModelHost",tabindex:-1},_.P("div",{class:"ytwHowThisWasMadeSectionViewModelSectionTitle"},_.P(_.wh,{text:function(){return C().sectionTitle}})),_.P("div",{class:"ytwHowThisWasMadeSectionViewModelBodyHeader"},_.P(_.wh,{text:function(){return C().bodyHeader}})),_.P("div",{class:"ytwHowThisWasMadeSectionViewModelBodyText"},_.P(_.wh,{text:function(){return C().bodyText}})),_.P(_.Dx,
{cond:function(){return C().attributionText},
then:function(){return _.P("div",{class:"ytwHowThisWasMadeSectionViewModelAttributionText"},_.P(_.wh,{text:function(){return C().attributionText}}))}}))},"ui"),"how-this-was-made-section-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){return _.P("yt-video-description-youchat-section-view-model",{class:_.sZ("ytVideoDescriptionYouchatSectionViewModelHost")},_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelSectionTitle"},_.P(_.wh,{text:function(){return I.data().sectionTitle}})),_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelSubHeaderText"},_.P(_.wh,{text:function(){return I.data().subHeaderText}})),_.P("div",{class:"ytVideoDescriptionYouchatSectionViewModelPrimaryButton"},_.P(_.fM,{data:function(){return _.l(I.data().primaryButton,
_.Xi)}})))},"vi"),"yt-video-description-youchat-section-view-model",{props:{data:_.As}});var c0=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("kevlar_modern_sd_v2");I.actionMap={"yt-set-active-panel-item-action":"handleSetActiveItemAction"};return I};
_.R(c0,_.q);_.u=c0.prototype;
_.u.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}}}}}};
_.u.panelContentVisibleChanged=function(){this.description&&(this.description.panelContentVisible=this.panelContentVisible)};
_.u.dataChanged=function(){var I,C;this.hasDescriptionOnly=!(((I=this.data)==null?void 0:(C=I.items)==null?void 0:C.length)!==1||!_.l(this.data.items[0],ony))};
_.u.onHiddenChanged=function(){this.musicMetadataSection&&(this.musicMetadataSection.contentHidden=this.hidden);this.hidden||this.resize()};
_.u.onYtExpanderMoreTapped=function(){this.autoFocusDescription()};
_.u.autoFocusDescription=function(){var I;((I=_.N().resolve(_.aU(_.Du)))==null?0:I.isKeyBoardInUse())&&this.description&&_.HF(this.description)};
_.u.resize=function(){if(_.V("kevlar_disable_sd_resize"))this.JSC$20030_cardList&&_.k3(this.JSC$20030_cardList,"iron-resize"),this.problemWalkthroughCardList&&_.k3(this.problemWalkthroughCardList,"iron-resize"),this.musicMetadataSection&&_.k3(this.musicMetadataSection,"iron-resize");else if(this.ironResizableBehavior.notifyResize(),this.shelfSection)this.shelfSection.onParentResize()};
_.u.scrollToSection=function(I){if(I=this.getSectionElement(I))_.Fe(this.hostElement,"yt-scroll-to-watch-element",[I]),I.focus()};
_.u.getSectionElement=function(I){switch(I){case "infocards-item-section":var C;return(C=this.infocardsSection)!=null?C:null;case "transcript-item-section":var y;return(y=this.transcriptSection)!=null?y:null;case "how-this-was-made-section-item-section":var k;return(k=this.howThisWasMadeSection)!=null?k:null;case "files-item-section":var F;return(F=this.filesSection)!=null?F:null;default:return null}};
_.u.handleSetActiveItemAction=function(I){var C=_.l(I,$_Y),y=C&&(C==null?void 0:C.panelTargetId)==="engagement-panel-macro-markers-problem-walkthroughs"?this.problemWalkthroughCardList:this.JSC$20030_cardList;if(C&&y){I=this.currentActiveChapter;var k=this.currentActiveProblem;C=y==null?void 0:y.getItemByIndex(C.itemIndex);var F=y=!0;C&&(C.active=!0,C.carouselType==="MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_DEFAULT"?(y=I!==C,F=!1,this.currentActiveChapter=C):(C==null?void 0:C.carouselType)===
"MACRO_MARKERS_LIST_ITEM_RENDERER_CAROUSEL_TYPE_TEXT_ONLY"&&(y=!1,F=k!==C,this.currentActiveProblem=C));I&&y&&(I.active=!1);k&&F&&(k.active=!1)}};
_.H1.Object.defineProperties(c0.prototype,{showVideoSummary:{configurable:!0,enumerable:!0,get:function(){return _.V("web_watch_move_summary_to_sd")&&!!this.videoSummary}}});
c0.prototype.onYtExpanderMoreTapped=c0.prototype.onYtExpanderMoreTapped;c0.prototype.onHiddenChanged=c0.prototype.onHiddenChanged;c0.prototype.dataChanged=c0.prototype.dataChanged;c0.prototype.panelContentVisibleChanged=c0.prototype.panelContentVisibleChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],c0.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],c0.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],c0.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],c0.prototype,"ironResizableBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],c0.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],c0.prototype,"panelContentVisible",void 0);_.E([_.d(),_.h("design:type",Boolean)],c0.prototype,"hasDescriptionOnly",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],c0.prototype,"inlineStructuredDescription",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],c0.prototype,"hidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],c0.prototype,"shortsPanel",void 0);_.E([_.d(),_.h("design:type",Object)],c0.prototype,"videoSummary",void 0);_.E([_.d(),_.h("design:type",Object)],c0.prototype,"merchShelf",void 0);
_.E([_.v("videoSummary"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],c0.prototype,"showVideoSummary",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],c0.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],c0.prototype,"engagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],c0.prototype,"watchWhileSdp",void 0);
_.E([_.z$("ytd-expandable-video-description-body-renderer"),_.h("design:type",Object)],c0.prototype,"description",void 0);_.E([_.z$("ytd-horizontal-card-list-renderer"),_.h("design:type",Object)],c0.prototype,"JSC$20030_cardList",void 0);_.E([_.z$("ytd-horizontal-card-list-renderer[center-items]"),_.h("design:type",Object)],c0.prototype,"problemWalkthroughCardList",void 0);_.E([_.z$("ytd-shelf-renderer"),_.h("design:type",Object)],c0.prototype,"shelfSection",void 0);
_.E([_.z$("ytd-video-description-music-section-renderer"),_.h("design:type",Object)],c0.prototype,"musicMetadataSection",void 0);_.E([_.z$("ytd-video-description-infocards-section-renderer"),_.h("design:type",Object)],c0.prototype,"infocardsSection",void 0);_.E([_.z$("ytd-video-description-transcript-section-renderer"),_.h("design:type",Object)],c0.prototype,"transcriptSection",void 0);
_.E([_.z$("how-this-was-made-section-view-model"),_.h("design:type",Object)],c0.prototype,"howThisWasMadeSection",void 0);_.E([_.z$("ytd-video-description-files-section-renderer"),_.h("design:type",Object)],c0.prototype,"filesSection",void 0);_.E([_.FI("panelContentVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c0.prototype,"panelContentVisibleChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c0.prototype,"dataChanged",null);_.E([_.FI("hidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c0.prototype,"onHiddenChanged",null);_.E([_.km("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c0.prototype,"onYtExpanderMoreTapped",null);
c0=_.E([_.m({is:"ytd-structured-description-content-renderer",disableElementRegistration:!0})],c0);
_.Z(c0,"ytd-structured-description-content-renderer",function(){if(veK!==void 0)return veK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return veK=I},{mode:2});var WKH;var dgH;var eY=function(){return _.q.apply(this,arguments)||this};
_.R(eY,_.q);eY.prototype.computeAriaLabel=function(I){var C,y;return(I==null?void 0:(C=I.accessibility)==null?void 0:(y=C.accessibilityData)==null?void 0:y.label)||_.PQ("LOADING",void 0,"Loading")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eY.prototype,"data",void 0);_.E([_.d({computed:"computeAriaLabel(data)"}),_.h("design:type",String)],eY.prototype,"ariaLabel",void 0);eY=_.E([_.lT({disableElementRegistration:!0,is:"yt-content-loading-renderer"})],eY);
_.Z(eY,"yt-content-loading-renderer",function(){if(dgH===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;WKH===void 0&&(WKH=document.createElement("template"));var k=WKH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);dgH=I}I=dgH;return I},{mode:_.Ij("kevlar_poly_si_batch_j043")?1:2});var xgR=_.BO(function(I){var C=I.data;I=_.Es();_.ql(I,function(){return C().rendererContext});
var y=function(){var k;return _.dJ((k=C())==null?void 0:k.rendererContext)};
return _.P("content-list-item-view-model",{el:I,class:"ytContentListItemViewModelHost",role:function(){return y()?"listitem":void 0},
tabindex:function(){return y()?0:void 0}},_.P("div",{class:"ytContentListItemViewModelContentListItemWrapper"},_.P("div",{class:"ytContentListItemViewModelImageContainer"},_.P(_.Dx,{cond:function(){return C().image},
then:function(k){return _.P(_.x$,{data:k,alt:"",targetWidth:72,targetHeight:72,preserveWidth:!0,preserveHeight:!0,className:"ytContentListItemViewModelimageClassName"})}}),_.P(_.lY,{data:function(){var k;
return(k=C())==null?void 0:k.avatar}},{avatarViewModel:_.rF})),_.P("div",{class:"ytContentListItemViewModelTitleMetadataWrapper"},_.P("div",{class:"ytContentListItemViewModelTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytContentListItemViewModelMetadata"},_.P(_.lY,{data:function(){return C().metadata}},{contentMetadataViewModel:function(k){return _.P(_.E0q,{data:k.data,
layout:1})}})))),_.P("div",{class:"ytContentListItemViewModelActionButton"},_.P(_.lY,{data:function(){var k;
return(k=C())==null?void 0:k.actionButton}},{buttonViewModel:_.fM,
toggleButtonViewModel:_.RY})))},"wi");_.B9(_.BO(function(I){var C=_.T(_.c4(!1,void 0,"WbYeXc")),y=C.next().value,k=C.next().value;C=_.T(_.c4(!1,void 0,"msXkzc"));var F=C.next().value,z=C.next().value;_.RU(function(){var w=_.l(I.data().collaboratePlaylistCollaborationSetting,huH);w&&k(w.switchedOnByDefault);var L=_.l(I.data().allowNewCollaboratorsPlaylistCollaborationSetting,huH);L&&z(L.switchedOnByDefault);if(!w&&!L||!w&&I.data().collaborationType==="COLLABORATION_TYPE_TASTE_MATCH")k(!0),z(!0)});
var c=function(w){k(w);z(w);var L=I.data().playlistCollaborationEntityKey||"";var D=_.dW().getState();(D=_.cg(D.entities,"playlistCollaborationEntity",L))&&(D==null?void 0:D.isCollaborative)===w||_.dW().dispatch(_.wJ("playlistCollaborationEntity",L,Object.assign({},D,{isCollaborative:w})))},r=function(w){z(w)};
return _.P("playlist-collaboration-view-model",{class:"ytPlaylistCollaborationViewModelHost"},_.P("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.P(_.lY,{data:function(){return I.data().collaboratePlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.P(_.D$,{data:w.data,
onSwitch:c})}})),_.P(_.Dx,{cond:y,
then:function(){return _.P("div",null,_.P("div",{class:"ytPlaylistCollaborationViewModelSwitchListItemViewModelWrapper"},_.P(_.lY,{data:function(){return I.data().allowNewCollaboratorsPlaylistCollaborationSetting}},{switchListItemViewModel:function(w){return _.P(_.D$,{data:w.data,
onSwitch:r,overrideDisabled:!1})}})),_.P(_.Dx,{cond:F,
then:function(){return _.P("div",{class:"ytPlaylistCollaborationViewModelButtonViewModelWrapper"},_.P(_.lY,{data:function(){return I.data().copyLinkButton}},{buttonViewModel:_.fM}))}}),_.P("div",{class:"ytPlaylistCollaborationViewModelContentListItemViewModelWrapper"},_.P(_.lY,{data:function(){return I.data().playlistCollaborators}},{contentListItemViewModel:xgR})))}}))},"xi"),"playlist-collaboration-view-model",{props:{data:_.As}});var q4y=_.BO(function(I){var C=I.data;var y=I.customCommandResolver;return _.P(_.aF,null,_.P("div",{class:"ytwAdAvatarLockupViewModelHostAvatarStyleCompact"},_.P(_.lY,{data:function(){return C().adAvatar}},{adAvatarViewModel:function(k){return _.P(_.Otq,{data:k.data,
customCommandResolver:y})}})),_.P("div",{class:"ytwAdAvatarLockupViewModelHostTextsStyleCompact"},_.P(_.Dx,{cond:function(){return C().headline},
then:function(k){return _.P(_.wh,{text:k,className:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactHeadlineWidthUnlocked"}})}}),_.P("div",{class:function(){return"ytwAdAvatarLockupViewModelHostTextsStyleCompactDescriptionWidthUnlocked"}},_.P(_.lY,{data:function(){return C().adBadge}},{adBadgeViewModel:function(k){return _.P(_.EA,{data:k.data,
hasDot:function(){return C().primaryDetailsLine!==void 0},
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}),_.P(_.lY,{data:function(){return C().primaryDetailsLine}},{adDetailsLineViewModel:function(k){return _.P(_.h2,{data:k.data,
customCommandResolver:y,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}}))))},"yi"),mgR=_.BO(function(I){var C=I.data;
var y=I.customCommandResolver;I=_.Es();_.UG(I,function(){return C().interaction},y);
_.a0(I,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});return _.P("ad-avatar-lockup-view-model",{class:function(){var k;return((k=C().interaction)==null?0:k.onTap)?"ytwAdAvatarLockupViewModelHostIsClickableAdComponent":"ytwAdAvatarLockupViewModelHost"},
el:I,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P(_.Vr,null,_.P(_.Qr,{when:function(){return C().style==="AD_AVATAR_LOCKUP_STYLE_COMPACT"}},function(){return _.P(q4y,{data:C,
customCommandResolver:y})}),_.P(_.N$,null,function(){return null})))},"zi");_.B9(_.BO(function(I){var C=I.data;var y=I.panelContentVisibility;I=_.Es();_.UG(I,function(){return C().interaction},qcB);
_.a0(I,{visibilityCallback:function(F){var z,c=(z=C().interaction)==null?void 0:z.onFirstVisible;F&&c&&_.Gp(c)},
showOption:_.dF});_.X$(function(){var F,z;if(z=_.d5("yt.www.ads.eventcache.getLastUpdateEngagementPanelAction")){var c;z=(c=z())==null?void 0:c.onLayoutVisibleCallback}else z=null;(F=z)==null||F()});
var k=function(){return y()==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"};
return _.P("panel-ad-header-image-lockup-view-model",{class:"ytwPanelAdHeaderImageLockupViewModelHost",el:I},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeader"},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderBannerImage"},_.P(_.Dx,{cond:_.iU9("(min-width: "+((0,_.Nw)()+_.gN)+"px) or (max-width: 600px)"),then:function(){return _.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(F){return _.P(_.IO,{data:F.data,
targetHeight:80,customCommandResolver:qcB})}})}})),_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadata"},_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataAvatarLockup"},_.P(_.lY,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(F){return _.P(mgR,{data:F.data,
customCommandResolver:qcB})}})),_.P(_.Dx,{cond:k,
then:function(){return _.P(_.lY,{data:function(){return C().adButton}},{adButtonViewModel:function(F){return _.P(_.qr,{data:F.data,
customCommandResolver:qcB})}})},
else:function(){return _.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:_.fM})}}),_.P("div",{class:"ytwPanelAdHeaderImageLockupViewModelHostHeaderMetadataMenu"},_.P(_.lY,{data:function(){var F=_.l(C().toggleButton,_.$A);
return{toggleButtonViewModel:Object.assign({},F,{isTogglingDisabled:!0,isToggled:k()})}}},{toggleButtonViewModel:_.RY})))))},"Ai"),"panel-ad-header-image-lockup-view-model",{props:{data:_.As,
panelContentVisibility:_.As}});_.B9(_.BO(function(I){var C=function(){return _.l(I.data().inputComposerViewModel,U_j)},y=function(){var A;
return((A=C())==null?void 0:A.youchatPendingResponseEntityKey)||""},k=_.cj(_.XXR,y),F=function(){var A;
return!((A=k())==null||!A.isPendingResponse)},z=_.T(_.c4(!0,void 0,"DR0q1d")),c=z.next().value,r=z.next().value,w=function(){return C().sectionTargetId||"youchat_messages_section"};
z=_.h3();var L=_.Es(),D=_.cj(YcS,"chat_input_view_model_state"),p=GjS(),Q=function(){var A;return!((A=D())==null||!A.value)};
_.RU(function(){var A;!Q()&&((A=C())==null?0:A.welcomeFeatureContinuation)&&(A={continuationCommand:{token:C().welcomeFeatureContinuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}},_.bU(A),p(!0));var x=w(),B;(B=_.N().resolve(_.aU(_.st)))==null||B.addEventListener("yt-navigate-start",function(){_.Nl.remove(x);p(!1)},{once:!0})});
var X=_.uk(function(A){var x=F()||!1;mvY(L.value);x||A.key!=="Enter"||A.shiftKey||(A.preventDefault(),S());return!1}),b=_.uk(function(){r(L.value.value.length===0);
return!1}),S=function(){var A,x,B,t,U,yW,a,cs,XO;
return _.e(function(Rm){A=L.value.value;L.value.value="";mvY(L.value);x=ZGR(w(),A);_.bU(x);B=_.$wY(y());_.Gp(((t=C())==null?void 0:t.onSubmitCommand)||{});B(!0);yW=String(Math.floor(((U=_.oY())==null?void 0:U.getCurrentTime())||0)*1E3);cs={continuationCommand:{token:(a=C())==null?void 0:a.continuation,request:"CONTINUATION_REQUEST_TYPE_GET_PANEL"}};XO={inputComposerFormData:{clientMessageId:"youchat-"+Date.now(),userInputText:A,playerOffsetMs:yW}};_.bU(cs,{form:{formData:XO},commandController:{onSuccess:function(){B(!1)},
onServerError:function(){var $z=w();_.bU({listMutationCommand:{operations:{operations:[{removeItem:{removeByTargetId:{targetIds:["loading_response_message_id"]},sectionTargetId:$z}}]}}});B(!1)}}});
_.oI(Rm)})};
return _.P("yt-chat-input-view-model",{class:"chatInputViewModelChatInputViewModel",el:z},_.P("div",{class:"chatInputViewModelChatInputWrapper"},_.P("form",{class:"chatInputViewModelChatInputForm"},_.P("textarea",{class:"chatInputViewModelChatInput",el:L,"on:keydown":X,"on:keyup":b,placeholder:function(){var A,x;var B=_.l((x=C())==null?void 0:x.inputFormField,jyM);return B==null?void 0:(A=B.contentProperties)==null?void 0:A.placeholderText},
rows:1}),_.P(_.fM,{data:function(){return _.l(I.data().sendButton,_.Xi)},
onClick:function(A){A.preventDefault();S();r(L.value.value.length===0)},
buttonOverrides:function(){return{disabled:c()||F()}}})),_.P(_.wh,{className:"chatInputViewModelChatDisclaimer",
text:function(){var A;return(A=_.l(I.data().disclaimer,_.Qiu))==null?void 0:A.text}})))},"Bi"),"yt-chat-input-view-model",{props:{data:_.As}});var ZSM=["engagement-panel-clip-create","engagement-panel-clip-view"],BmY=0,ru=function(){var I=_.q.apply(this,arguments)||this;var C;I.headerData=(C=I.data)==null?void 0:C.header;I.darkerPanels=_.V("web_watch_darker_panels");I.matchContentTheme=_.V("web_watch_panel_content_match_theme");I.disableAutoFill=!1;I.isFullscreen=!1;I.modernPanels=_.V("kevlar_watch_modern_panels");I.liveChatReplyPanel=!1;I.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");I.disableBackdropFilter=_.V("web_disable_backdrop_filter");
I.trackEngagementPanelVisibility=_.V("web_watch_track_engagement_panel_visibility");I.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 I};
_.R(ru,_.q);_.u=ru.prototype;
_.u.configureRendererStamper=function(){return{headerData:{id:"header",mapping:{engagementPanelTitleHeaderRenderer:{component:"ytd-engagement-panel-title-header-renderer",properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",targetId:"[[data.targetId]]",shortsPanel:"[[shortsPanel]]"}},panelAdHeaderImageLockupViewModel:{component:"panel-ad-header-image-lockup-view-model"},pageHeaderViewModel:{component:"yt-page-header-view-model"}},events:!0},"data.content":{id:"content",mapping:{sectionListRenderer:{matcher:function(I){var C;
if((I==null?void 0:(C=I.webComponentHint)==null?void 0:C.componentVersion)==="WEB_COMPONENT_VERSION_SHARED")return"yt-section-list-renderer";I=I==null?void 0:I.contents;if(!I||I.length<1)return"ytd-section-list-renderer";var y,k;I=(y=I[0])==null?void 0:(k=y.itemSectionRenderer)==null?void 0:k.contents;if(!I||I.length<1)return"ytd-section-list-renderer";var F;return((F=I[0])==null?0:F.youChatItemViewModel)?"yt-section-list-renderer":"ytd-section-list-renderer"},
params:{engagementPanel:!0},properties:{liveChatEngagementPanel:"[[liveChatEngagementPanel]]",inReplyPanel:"[[liveChatReplyPanel]]",engagementPanelDropdown:"[[dropdown]]",engagementPanelDialog:"[[dialog]]",disableAutoFill:"[[disableAutoFill]]"}},continuationItemRenderer:"ytd-continuation-item-renderer",richGridRenderer:"ytd-rich-grid-renderer",transcriptRenderer:"ytd-transcript-renderer",clipSectionRenderer:"ytd-clip-section-renderer",adsEngagementPanelContentRenderer:"ytd-ads-engagement-panel-content-renderer",
macroMarkersListRenderer:"ytd-macro-markers-list-renderer",searchInVideoRenderer:"ytd-search-in-video-renderer",structuredDescriptionContentRenderer:{component:"ytd-structured-description-content-renderer",params:{engagementPanel:!0},properties:{shortsPanel:"[[shortsPanel]]",watchWhileSdp:"[[isWatchWhilePanel]]"}},mediaUpsellRenderer:"ytd-media-upsell-renderer",productListRenderer:"ytd-product-list-renderer",contentLoadingRenderer:"yt-content-loading-renderer",flowRootRenderer:"ytd-flow-root-renderer",
sponsorshipsGiftingOptInRenderer:"ytd-sponsorships-gifting-opt-in-renderer",playlistCollaborationViewModel:"playlist-collaboration-view-model"},events:!0},"data.footer":{id:"footer",mapping:{commerceCartCheckoutButtonRenderer:{component:"ytd-commerce-cart-checkout-button-renderer",params:{fullWidth:!0}},cardItemRenderer:"yt-card-item-renderer",chatInputViewModel:"yt-chat-input-view-model",liveChatEngagementPanelInputRenderer:{component:"yt-live-chat-engagement-panel-input-renderer",properties:{inReplyPanel:"[[liveChatReplyPanel]]",
hideBorder:"[[hideFooterBorder]]"}},liveLeaderboardItemViewModel:"ytvl-live-leaderboard-item-view-model",disableableButtonViewModel:"yt-disableable-button-view-model"}}}};
_.u.attached=function(){this.hostElement.parentElement&&this.hostElement.parentElement.is==="tp-yt-paper-dialog"&&(this.dialog=!0);var I;if((I=this.hostElement.parentElement)==null?0:I.classList.contains("tp-yt-iron-dropdown"))this.dropdown=!0;this.disableAutoFill=!(!this.dialog&&!this.dropdown)};
_.u.detached=function(){this.updateTheaterDisablement()};
_.u.showPanel=function(){var I=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");this.showDelayMs?_.b$.addJob(function(){I.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"},2,this.showDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"};
_.u.maybeScrollToItemSection=function(I){var C=this,y,k=I==null?void 0:(y=I.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;k&&_.b$.addJob(function(){var F;(F=C.sectionListRendererElement)==null||F.scrollToItemSection(k)},8)};
_.u.hidePanel=function(){var I=this;this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_HIDDEN");this.hideDelayMs?_.b$.addJob(function(){I.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"},2,this.hideDelayMs):this.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.u.isVisible=function(){return!!this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"};
_.u.getPanelContent=function(){return{engagementPanelSectionListRenderer:this.data}};
_.u.updatePanel=function(I,C,y,k){var F=this;if((I=I==null?void 0:I.engagementPanelSectionListRenderer)||k){if(I){k=I.header;var z=I.content,c=I.footer;(I=I.targetId)&&this.set("data.targetId",I);k&&this.set("data.header",k);z&&this.set("data.content",z);c&&this.set("data.footer",c)}else k&&(I=k.content,z=k.secondaryHeaderContent,(k=k.targetId)&&this.set("data.targetId",k),I&&this.set("data.content",I),z&&(this.secondaryHeaderData=z));this.updateChildVisibilityProperties();if(C){var r;_.V("kevlar_update_panel_focus_scroll_killswitch")||
(r={preventScroll:!0});this.focus(r)}_.hn(this,function(){_.k3(F.hostElement,"yt-refit");F.maybeScrollToItemSection(y)})}};
_.u.computeHeaderData=function(){var I,C=(0,_.Le.unsafeClone)((I=this.data)==null?void 0:I.header);if(C){I=new _.J(Object.keys(C)[0]);var y=_.l(C,I),k=_.l(this.secondaryHeaderData,I);k&&_.V5(C,I,Object.assign({},k,y))}return C};
_.u.getReloadContinuation=function(){var I,C,y,k=_.T(((I=this.data)==null?void 0:(C=I.content)==null?void 0:(y=C.sectionListRenderer)==null?void 0:y.continuations)||[]);for(I=k.next();!I.done;I=k.next())if(I=I.value,I.reloadContinuationData)return I.reloadContinuationData.continuation};
_.u.onYtRendererstamperFinished=function(){this.updateChildVisibilityProperties();var I;((I=this.data)==null?0:I.targetId)&&(I=this.contentElement.firstElementChild)&&I.setAttribute("panel-target-id",this.data.targetId)};
_.u.forwardPopupClosedToFlowRootRenderer=function(){var I=_.f(this.hostElement).querySelector("ytd-flow-root-renderer");if(I)I.onPopupClosed()};
_.u.dataChanged=function(){this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_LIVE_CHAT"&&(this.liveChatEngagementPanel=!0,this.getIdentifier()==="PAreply_thread"&&(this.liveChatReplyPanel=!0));if(_.V("kevlar_watch_metadata_ep_killswitch")||this.getIdentifier()!=="engagement-panel-structured-description"||this.getSurface()==="ENGAGEMENT_PANEL_SURFACE_SHORTS"){var I;this.visibility=(I=this.data)==null?void 0:I.visibility;var C;this.trackEngagementPanelVisibility&&((C=this.data)==null?void 0:C.visibility)===
"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&this.notifyVisibilityChanged("ENGAGEMENT_PANEL_VISIBILITY_EXPANDED");var y,k,F,z;this.contentEmpty=!!(((y=this.data)==null?0:(k=y.content)==null?0:k.structuredDescriptionContentRenderer)&&Object.keys((F=this.data)==null?void 0:(z=F.content)==null?void 0:z.structuredDescriptionContentRenderer).length===0);(I=_.N().resolve(_.wp))&&I.registerPanel(this.getIdentifier(),this);this.updateTheaterDisablement()}else this.data.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",
this.visibility=this.data.visibility};
_.u.isFullscreenChanged=function(){this.isFullscreen&&_.V("web_watch_close_eps_on_fullscreen")&&this.hidePanel()};
_.u.focus=function(I){if(this.header)this.header.focus(I);else{var C;(C=_.f(this.hostElement).querySelector("ytd-flow-root-renderer"))==null||C.focus(I)}};
_.u.visibilityChanged=function(){if(!_.V("kevlar_use_engagement_panel_management_component")){this.updateChildVisibilityProperties();var I=this.visibility&&this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",y=this.lastVisibility&&this.lastVisibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",k=this.lastVisibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",F=k||!this.lastVisibility,z,c,r=(z=this.data)==null?void 0:(c=z.identifier)==null?void 0:c.tag,
w;if(((w=this.data)==null?0:w.onShowCommands)&&I&&F)_.cQ(this.hostElement,this.data.onShowCommands,this.hostElement),r&&_.Hg().dispatch(_.yE({type:"ADD_OPEN_ENGAGEMENT_PANEL",payload:{panelToAdd:r}}));else{var L;((L=this.data)==null?0:L.onHideCommands)&&C&&y&&(_.cQ(this.hostElement,this.data.onHideCommands,this.hostElement),r&&_.Hg().dispatch(_.yE({type:"REMOVE_OPEN_ENGAGEMENT_PANEL",payload:{panelToRemove:r}})))}I&&this.lastVisibility!==void 0&&(this.hostElement.style.order=String(-1*BmY++));_.V("kevlar_watch_focus_on_engagement_panels")&&
I&&k&&this.focus({preventScroll:!0});this.updateTheaterDisablement()}this.lastVisibility=this.visibility};
_.u.notifyVisibilityChanged=function(I){var C;_.uW(this.hostElement,"yt-engagement-panel-visible-changed",[this.data,I,(C=this.data)==null?void 0:C.targetId])};
_.u.updateTheaterDisablement=function(){if(!_.V("kevlar_watch_theater_disablement_killswitch")){var I=this.theaterDisablementPanelIdentifier||this.getIdentifier()||"";if(this.isWatch&&ZSM.includes(I)&&!_.V("watch_next_grid_ignore_disallowed_panels")){var C=_.pC(_.Hg().getState()),y=this.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";I!==this.getIdentifier()&&this.originalTheaterState?this.clearTheaterDisablement():y?(this.originalTheaterState===void 0&&(this.originalTheaterState=C,this.theaterDisablementPanelIdentifier=
I),C&&_.Fe(this.hostElement,"yt-toggle-theater-mode",[!1,!1])):this.originalTheaterState&&this.clearTheaterDisablement()}}};
_.u.clearTheaterDisablement=function(){_.Fe(this.hostElement,"yt-toggle-theater-mode",[!0,!1]);this.theaterDisablementPanelIdentifier=this.originalTheaterState=void 0};
_.u.updateChildVisibilityProperties=function(){this.hostElement||_.V("kevlar_panel_property_init_killswitch")||this._enableProperties();var I=this.visibility;this.adHeaderImageLockupViewModel&&(this.adHeaderImageLockupViewModel.panelContentVisibility=I);var C,y=(C=this.headerElement)==null?void 0:C.firstElementChild;if(y&&!this.adHeaderImageLockupViewModel){C=I==="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED";y.collapsed=C;y=_.f(y).querySelector("#visibility-button");if(!y)return;(y=y.firstElementChild)&&
y.polymerController.is==="ytd-toggle-button-renderer"&&y.polymerController.data.isToggled!==C&&y.polymerController.set("data.isToggled",C)}var k;if(C=(k=this.contentElement)==null?void 0:k.firstElementChild)if(I&&I!=="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")C.removeAttribute("panel-content-visible");else{C.setAttribute("panel-content-visible","");var F;(F=C.markDirty)==null||F.call(C)}};
_.u.onYtChangeEngagementPanelVisibilityAction=function(I){var C=this,y,k=(y=this.data)==null?void 0:y.targetId,F,z,c;y=((F=this.data)==null?void 0:(z=F.identifier)==null?void 0:z.tag)||((c=this.data)==null?void 0:c.panelIdentifier);var r=_.l(I,_.GEu),w;I=k&&(r==null?void 0:r.targetId)===k||y&&(r==null?void 0:(w=r.panelIdentifier)==null?void 0:w.tag)===y;this.dialog&&I&&(r==null?void 0:r.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(k==="engagement-panel-comments-section"?_.Fe(this.hostElement,
"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer"]):_.Fe(this.hostElement,"yt-close-popup-action",["ytd-engagement-panel-section-list-renderer",y]));k=this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN";w=this.isFullscreen&&_.V("kevlar_single_panel_fullscreen");k=!I&&(r==null?void 0:r.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&!k&&w;_.V("kevlar_use_engagement_panel_management_component")||(I?(k=r.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED",this.hideDelayMs&&
!k?_.b$.addJob(function(){C.visibility=r.visibility},2,this.hideDelayMs):this.visibility=r.visibility,r.visibility&&this.notifyVisibilityChanged(r.visibility)):k&&this.hidePanel())};
_.u.onYtScrollToEngagementPanelCommand=function(I){var C,y=(C=this.data)==null?void 0:C.targetId,k,F,z;C=((k=this.data)==null?void 0:(F=k.identifier)==null?void 0:F.tag)||((z=this.data)==null?void 0:z.panelIdentifier);I=_.l(I,_.mYw);var c;(y&&(I==null?void 0:I.targetId)===y||C&&(I==null?void 0:(c=I.panelIdentifier)==null?void 0:c.tag)===C)&&this.visibility==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&_.Fe(this.hostElement,"yt-scroll-to-watch-element",[this.hostElement])};
_.u.attachVEs=function(I){var C,y;(I==null?0:(C=I.content)==null?0:(y=C.productListRenderer)==null?0:y.trackingParams)&&_.e2().graftServerVe(I.content.productListRenderer.trackingParams);var k,F;(I==null?0:(k=I.content)==null?0:(F=k.transcriptRenderer)==null?0:F.trackingParams)&&_.e2().graftServerVe(I.content.transcriptRenderer.trackingParams)};
_.u.onYtUpdateEngagementPanelAction=function(I){var C,y=(C=this.data)==null?void 0:C.targetId;I=_.l(I,bTH);y&&(I==null?void 0:I.targetId)===y&&(this.updatePanel({engagementPanelSectionListRenderer:{header:I==null?void 0:I.header,content:I==null?void 0:I.content}},!1),this.attachVEs(I))};
_.u.onYtShowEngagementPanelScrimAction=function(I){var C,y=(C=this.data)==null?void 0:C.targetId;I=_.l(I,Ru8);y&&(I==null?void 0:I.engagementPanelTargetId)===y&&(this.scrimmed=!0)};
_.u.onYtHideEngagementPanelScrimAction=function(I){var C,y=(C=this.data)==null?void 0:C.targetId;I=_.l(I,X_L);y&&(I==null?void 0:I.engagementPanelTargetId)===y&&(this.scrimmed=!1)};
_.u.getIdentifier=function(){var I,C,y;return((I=this.data)==null?void 0:I.panelIdentifier)||((C=this.data)==null?void 0:(y=C.identifier)==null?void 0:y.tag)};
_.u.getSurface=function(){var I,C;return(I=this.data)==null?void 0:(C=I.identifier)==null?void 0:C.surface};
_.H1.Object.defineProperties(ru.prototype,{targetId:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.targetId}},
webSize:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.size}},
hideFooterBorder:{configurable:!0,enumerable:!0,get:function(){var I=this.getIdentifier();return I==="engagement-panel-youchat"||I==="PAyouchat"}}});
ru.prototype.visibilityChanged=ru.prototype.visibilityChanged;ru.prototype.isFullscreenChanged=ru.prototype.isFullscreenChanged;ru.prototype.dataChanged=ru.prototype.dataChanged;ru.prototype.forwardPopupClosedToFlowRootRenderer=ru.prototype.forwardPopupClosedToFlowRootRenderer;ru.prototype.onYtRendererstamperFinished=ru.prototype.onYtRendererstamperFinished;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ru.prototype,"actionHandlerBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ru.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],ru.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],ru.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ru.prototype,"data",void 0);
_.E([_.d({computed:"computeHeaderData(data.header, secondaryHeaderData)"}),_.h("design:type",Object)],ru.prototype,"headerData",void 0);_.E([_.d(),_.h("design:type",Object)],ru.prototype,"secondaryHeaderData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"visibility",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"contentEmpty",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"scrimmed",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"dialog",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"dropdown",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"darkerPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"matchContentTheme",void 0);_.E([_.d(),_.h("design:type",Object)],ru.prototype,"disableAutoFill",void 0);
_.E([_.d({reflectToAttribute:!0,value:_.V("optimal_reading_width_comments_ep")}),_.h("design:type",Boolean)],ru.prototype,"optimalReadingWidthComments",void 0);_.E([_.d(),_.h("design:type",Number)],ru.prototype,"hideDelayMs",void 0);_.E([_.d({selector:_.lO,reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"isFullscreen",void 0);_.E([_.d(),_.h("design:type",Number)],ru.prototype,"showDelayMs",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.targetId"),_.h("design:type",Object),_.h("design:paramtypes",[])],ru.prototype,"targetId",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ru.prototype,"webSize",null);_.E([_.d(),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ru.prototype,"hideFooterBorder",null);_.E([_.d(),_.h("design:type",Object)],ru.prototype,"isWatch",void 0);
_.E([_.d(),_.h("design:type",Object)],ru.prototype,"originalTheaterState",void 0);_.E([_.d(),_.h("design:type",Object)],ru.prototype,"theaterDisablementPanelIdentifier",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"modernPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"isWatchWhilePanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"shortsPanel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ru.prototype,"liveChatEngagementPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"liveChatReplyPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"enableAnchoredPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ru.prototype,"disableBackdropFilter",void 0);
_.E([_.d(),_.h("design:type",Object)],ru.prototype,"trackEngagementPanelVisibility",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],ru.prototype,"headerElement",void 0);_.E([_.z$("#header > *"),_.h("design:type",HTMLElement)],ru.prototype,"header",void 0);_.E([_.z$("ytd-section-list-renderer"),_.h("design:type",Object)],ru.prototype,"sectionListRendererElement",void 0);
_.E([_.z$("panel-ad-header-image-lockup-view-model"),_.h("design:type",HTMLElement)],ru.prototype,"adHeaderImageLockupViewModel",void 0);_.E([_.z$("#content"),_.h("design:type",HTMLElement)],ru.prototype,"contentElement",void 0);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"onYtRendererstamperFinished",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"forwardPopupClosedToFlowRootRenderer",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"dataChanged",null);_.E([_.FI("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"isFullscreenChanged",null);
_.E([_.FI("visibility"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ru.prototype,"visibilityChanged",null);ru=_.E([_.m({is:"ytd-engagement-panel-section-list-renderer",disableElementRegistration:!0})],ru);
_.Z(ru,"ytd-engagement-panel-section-list-renderer",function(){if(rdy!==void 0)return rdy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rdy=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var EeP;var iE=function(){var I=_.q.apply(this,arguments)||this;I.lastRenderedPanelIds=new Set;I.visiblePanels=[];I.actionMap={"yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return I};
_.R(iE,_.q);_.u=iE.prototype;_.u.dataChanged=function(){if(this.data){for(var I=[],C=_.T(this.data),y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0,F=void 0,z=(k=y)==null?void 0:(F=k.engagementPanelSectionListRenderer)==null?void 0:F.visibility;F=k=void 0;((k=y)==null?0:(F=k.engagementPanelSectionListRenderer)==null?0:F.targetId)&&z!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&I.push(y)}this.visiblePanels=I}else this.visiblePanels=[]};
_.u.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}}};
_.u.withoutVisiblePanelById=function(I){return this.visiblePanels.filter(function(C){var y;return((y=C.engagementPanelSectionListRenderer)==null?void 0:y.targetId)!==I})};
_.u.onYtChangeEngagementPanelVisibilityAction=function(I){var C=this,y=_.l(I,_.GEu);if(this.data&&(y==null?0:y.targetId)&&(y==null?0:y.visibility)){var k,F=(k=this.data.find(function(c){var r;return((r=c.engagementPanelSectionListRenderer)==null?void 0:r.targetId)===y.targetId}))==null?void 0:k.engagementPanelSectionListRenderer;
if(F){var z=this.withoutVisiblePanelById(y.targetId);y.visibility!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&(I=this.data.find(function(c){var r;return((r=c.engagementPanelSectionListRenderer)==null?void 0:r.targetId)===y.targetId}))&&(z=[I].concat(_.Py(z)));
this.hideDelayMs&&y.visibility==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&z.length===0?_.b$.addJob(function(){F.visibility=y.visibility;C.visiblePanels=z},10,this.hideDelayMs):(F.visibility=y.visibility,this.visiblePanels=z);
_.uW(this.hostElement,"yt-engagement-panels-visible-changed",[z])}}};
_.u.onRendererstamperFinished=function(){var I=new Set(this.visiblePanels.map(function(C){var y;return(y=C.engagementPanelSectionListRenderer)==null?void 0:y.targetId}));
this.handlePanelVisibilityChange(I,this.lastRenderedPanelIds);this.lastRenderedPanelIds=I};
_.u.handlePanelVisibilityChange=function(I,C){I=I===void 0?new Set:I;C=C===void 0?new Set:C;if(this.data)for(var y=_.T(this.data),k=y.next();!k.done;k=y.next()){k=k.value;var F=void 0,z=void 0,c=(F=k)==null?void 0:(z=F.engagementPanelSectionListRenderer)==null?void 0:z.targetId;if(c&&(F=C.has(c),z=I.has(c),c=void 0,!F&&z?(z=F=void 0,c=(F=k)==null?void 0:(z=F.engagementPanelSectionListRenderer)==null?void 0:z.onShowCommands):F&&!z&&(z=F=void 0,c=(F=k)==null?void 0:(z=F.engagementPanelSectionListRenderer)==
null?void 0:z.onHideCommands),c))for(k=_.T(c),c=k.next();!c.done;c=k.next())this.ytComponentBehavior.resolveCommand(c.value)}};
iE.prototype.onRendererstamperFinished=iE.prototype.onRendererstamperFinished;iE.prototype.dataChanged=iE.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],iE.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],iE.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iE.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iE.prototype,"lastRenderedPanelIds",void 0);_.E([_.d(),_.h("design:type",Number)],iE.prototype,"hideDelayMs",void 0);_.E([_.d(),_.h("design:type",Array)],iE.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],iE.prototype,"visiblePanels",void 0);_.E([_.d(),_.h("design:type",Boolean)],iE.prototype,"isWatchWhilePanel",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iE.prototype,"dataChanged",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],iE.prototype,"onRendererstamperFinished",null);iE=_.E([_.m({is:"ytd-watch-engagement-panels",disableElementRegistration:!0})],iE);
_.Z(iE,"ytd-watch-engagement-panels",function(){if(EeP!==void 0)return EeP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return EeP=I},{mode:1});var hIj;var wu=function(){return _.q.apply(this,arguments)||this};
_.R(wu,_.q);wu.prototype.dataChanged=function(){this.data&&this.data.companionLegalText!==void 0&&this.data.companionLegalText!==null&&_.SO(_.f(this.hostElement).querySelector("#text"),_.Z5w(_.hbd,this.data.companionLegalText))};
wu.prototype.computeAutoScrollEnabled=function(I,C){return I&&!C};
wu.prototype.expandedChanged=function(){this.expanderIcon=this.expanded?"expand-less":"expand-more"};
wu.prototype.onToggleTap=function(){this.expanded=!this.expanded};
wu.prototype.expandedChanged=wu.prototype.expandedChanged;wu.prototype.dataChanged=wu.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wu.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.ZCH),_.h("design:type",Object)],wu.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wu.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],wu.prototype,"expanded",void 0);
_.E([_.d({computed:"computeAutoScrollEnabled(data.companionLegalTextEnableAutoscroll, expanded)"}),_.h("design:type",Boolean)],wu.prototype,"autoScrollEnabled",void 0);_.E([_.d(),_.h("design:type",String)],wu.prototype,"expanderIcon",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wu.prototype,"dataChanged",null);
_.E([_.FI("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wu.prototype,"expandedChanged",null);wu=_.E([_.m({disableElementRegistration:!0,is:"ytd-companion-legal-text-renderer"})],wu);
_.Z(wu,"ytd-companion-legal-text-renderer",function(){if(hIj!==void 0)return hIj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hIj=I},{mode:1});var UgK;var nj=function(){var I=_.q.apply(this,arguments)||this;I.buttonUpdate=_.V("web_modern_buttons");I.kevlarWatchGrid=_.V("kevlar_watch_grid");I.centerAlignDescription=_.V("action_companion_center_align_description");I.truncateDomain=_.V("action_companion_truncate_domain");return I};
_.R(nj,_.q);_.u=nj.prototype;_.u.computeButtonOverride=function(){if(this.buttonUpdate)return{style:"call-to-action",type:"filled"}};
_.u.getOnLayoutVisibleCallback=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.u.dataChanged=function(){if(this.data){this.data.adBadge||this.set("data.adBadge",nj.JSC$20076_DEFAULT_AD_BADGE_RENDERER);var I=this.getOnLayoutVisibleCallback();I&&I()}};
_.u.getButtonRenderer=function(I){return I.actionButton&&_.l(I.actionButton,_.fZ)?(delete _.l(I.actionButton,_.fZ).navigationEndpoint,_.l(I.actionButton,_.fZ)):{}};
_.u.onClick=function(I){var C=this;if((!_.V("web_modern_buttons")||!_.q3(_.qc(I),this.hostElement,["YTD-AD-HOVER-TEXT-BUTTON-RENDERER"]))&&this.data&&this.data.navigationEndpoint){I=_.hU();var y=this.getLayoutId();I&&y&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(k){(new _.T7(k)).executeCommand(C.data.navigationEndpoint,y)}):_.V("kevlar_companion_resolve_command_killswitch")?_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint}):
this.ytComponentBehavior.resolveCommand(this.data.navigationEndpoint);
_.Fe(this.hostElement,"yt-companion-ad-clicked",["action-companion",y])}};
_.H1.Object.defineProperties(nj.prototype,{getRating:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?0:(C=I.detailsLine)==null?0:(y=C.adRating)==null?0:y.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 I,C,y,k;return((I=this.data)==null?0:(C=I.detailsLine)==null?0:(y=C.adRating)==null?0:(k=y.ratingIcon)==null?0:k.iconType)?_.y5(this.data.detailsLine.adRating.ratingIcon.iconType):null}},
getDetailsLine:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return((I=this.data)==null?0:(C=I.detailsLine)==null?0:(y=C.texts)==null?0:(k=y[0])==null?0:k.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 I,C;return((I=this.data)==null?0:(C=I.description)==null?0:C.text)?this.data.description.text:null}},
computeDescriptionTextHidden:{configurable:!0,enumerable:!0,get:function(){return!this.getDescriptionText}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}},
hideBanner:{configurable:!0,enumerable:!0,get:function(){var I=this.data.bannerImage&&this.get("thumbnail.thumbnails.0.url",this.data.bannerImage);return I?I.indexOf("/default_banner")!==-1:!0}}});
nj.prototype.onClick=nj.prototype.onClick;nj.prototype.dataChanged=nj.prototype.dataChanged;nj.JSC$20076_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.PQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],nj.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nj.prototype,"rendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],nj.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nj.prototype,"buttonUpdate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nj.prototype,"kevlarWatchGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nj.prototype,"centerAlignDescription",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nj.prototype,"truncateDomain",void 0);
_.E([_.d({computed:"computeButtonOverride(buttonUpdate)"}),_.h("design:type",Object)],nj.prototype,"buttonOverride",void 0);_.E([_.v("data.detailsLine.adRating.ratingText"),_.h("design:type",Object),_.h("design:paramtypes",[])],nj.prototype,"getRating",null);_.E([_.v("getRating"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nj.prototype,"computeRatingHidden",null);
_.E([_.v("data.detailsLine.adRating.ratingIcon.iconType"),_.h("design:type",Object),_.h("design:paramtypes",[])],nj.prototype,"iconType",null);_.E([_.v("data.detailsLine.texts.0.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],nj.prototype,"getDetailsLine",null);_.E([_.v("getDetailsLine"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nj.prototype,"computeDetailsLineHidden",null);
_.E([_.v("data.description.text"),_.h("design:type",Object),_.h("design:paramtypes",[])],nj.prototype,"getDescriptionText",null);_.E([_.v("getDescriptionText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nj.prototype,"computeDescriptionTextHidden",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],nj.prototype,"interactionLoggingClientData",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],nj.prototype,"hideBanner",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nj.prototype,"dataChanged",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],nj.prototype,"onClick",null);nj=_.E([_.m({is:"ytd-action-companion-ad-renderer",disableElementRegistration:!0})],nj);
_.Z(nj,"ytd-action-companion-ad-renderer",function(){if(UgK!==void 0)return UgK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return UgK=I},{mode:_.Ij("kevlar_poly_si_batch_j067")?1:2});var HSL;var tCR;var P0=function(){var I=_.q.apply(this,arguments)||this;I.buttonUpdate=_.V("web_modern_buttons");I.hideLegacyBanner=_.V("enable_dsa_one_click_ata_translators_infeed_elements");I.adInfoButtonStyle="mono";I.adInfoButtonType="text";I.noDotAdBadge=!0;return I};
_.R(P0,_.q);_.u=P0.prototype;_.u.getOnLayoutVisibleCallback=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.u.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 I=this.data.image.thumbnail.thumbnails[0];this.imageSrc=I.url?_.ra(I.url):void 0;this.imageWidth=I.width||0;this.imageHeight=I.height||0}this.data.clickthroughEndpoint&&_.l(this.data.clickthroughEndpoint,_.xo)&&(I=_.l(this.data.clickthroughEndpoint,_.xo).url,_.V("kevlar_sanitize_image_companion_killswitch")?this.clickThroughUrl=
I||"":I?(I=_.ra(I),this.clickThroughUrl=_.zK(I)):this.clickThroughUrl=void 0);(I=this.getOnLayoutVisibleCallback())&&I()}};
_.u.onClick=function(I){_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString()])||this.handleClick(I)};
_.u.handleClick=function(){var I=this;this.data&&this.data.clickthroughEndpoint&&(_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.clickthroughEndpoint}),this.data.onClickCommands&&this.data.onClickCommands.forEach(function(C){I.macroReplacementBehavior.sendServiceRequestAction([C])}),_.Fe(this.hostElement,"yt-companion-ad-clicked",["image-companion",
this.getLayoutId()]))};
_.u.onLoad=function(){_.uW(this.hostElement,"yt-refit-popups-action")};
_.H1.Object.defineProperties(P0.prototype,{macros:{configurable:!0,enumerable:!0,get:function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.macros||{}:{}}},
interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}}});
P0.prototype.onLoad=P0.prototype.onLoad;P0.prototype.onClick=P0.prototype.onClick;P0.prototype.dataChanged=P0.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],P0.prototype,"rendererBehavior",void 0);_.E([_.g(QoY.YtMacroReplacementBehavior),_.h("design:type",Object)],P0.prototype,"macroReplacementBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],P0.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],P0.prototype,"buttonUpdate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],P0.prototype,"hideLegacyBanner",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],P0.prototype,"adInfoButtonStyle",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],P0.prototype,"adInfoButtonType",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],P0.prototype,"macros",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],P0.prototype,"interactionLoggingClientData",null);_.E([_.d(),_.h("design:type",String)],P0.prototype,"clickThroughUrl",void 0);_.E([_.d(),_.h("design:type",_.yp)],P0.prototype,"imageSrc",void 0);_.E([_.d(),_.h("design:type",Number)],P0.prototype,"imageWidth",void 0);_.E([_.d(),_.h("design:type",Number)],P0.prototype,"imageHeight",void 0);_.E([_.d(),_.h("design:type",Object)],P0.prototype,"noDotAdBadge",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P0.prototype,"dataChanged",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],P0.prototype,"onClick",null);_.E([_.km("load"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],P0.prototype,"onLoad",null);P0=_.E([_.m({is:"ytd-image-companion-renderer",disableElementRegistration:!0})],P0);
_.Z(P0,"ytd-image-companion-renderer",function(){if(tCR!==void 0)return tCR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return tCR=I},{mode:_.Ij("kevlar_poly_si_batch_j067")?1:2});var JdM;var Lj=function(){return _.q.apply(this,arguments)||this};
_.R(Lj,_.q);_.u=Lj.prototype;_.u.dataChanged=function(){this.set("data.adBadge",Lj.JSC$20085_DEFAULT_AD_BADGE_RENDERER);if(this.data){var I=this.getOnLayoutVisibleCallback();I&&I()}};
_.u.getOnLayoutVisibleCallback=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.onLayoutVisibleCallback:null};
_.u.getLayoutId=function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.layoutId:null};
_.u.onCompanionClicked=function(I){this.data&&(I.target!==this.shopTitle&&this.sendTrackingPings(this.data.clickTrackingEndpoints),_.Fe(this.hostElement,"yt-companion-ad-clicked",["shopping-companion",this.getLayoutId()]))};
_.u.onShopTextTap=function(){if(this.data&&this.data.clickToAdvSiteEndpoint){var I=_.hU(),C=this.getLayoutId(),y=this.data.clickToAdvSiteEndpoint;I&&C&&_.V("h5_companion_enable_adcpn_macro_substitution_for_click_pings")?I.getPlayerPromise().then(function(k){(new _.T7(k)).executeCommand(y,C)}):_.k3(this.hostElement,"yt-navigate",{endpoint:y})}};
_.u.sendTrackingPings=function(I){if(I&&I.length!==0&&I[0].loggingUrls&&(I=I[0].loggingUrls.map(this.getBaseUrl)))for(var C=0;C<I.length;C++)_.dI(I[C])};
_.u.getBaseUrl=function(I){return I.baseUrl||""};
_.H1.Object.defineProperties(Lj.prototype,{interactionLoggingClientData:{configurable:!0,enumerable:!0,get:function(){var I=_.d5("yt.www.ads.eventcache.getLastCompanionData");return I?(I=I())&&I.interactionLoggingClientData:null}}});
Lj.prototype.onCompanionClicked=Lj.prototype.onCompanionClicked;Lj.prototype.dataChanged=Lj.prototype.dataChanged;Lj.JSC$20085_DEFAULT_AD_BADGE_RENDERER={metadataBadgeRenderer:{label:_.PQ("AD_BADGE_TEXT",void 0,"Ad"),style:"BADGE_STYLE_TYPE_AD"}};_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Lj.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Lj.prototype,"data",void 0);_.E([_.z$("#title"),_.h("design:type",HTMLElement)],Lj.prototype,"shopTitle",void 0);
_.E([_.rW("data.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lj.prototype,"dataChanged",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Lj.prototype,"interactionLoggingClientData",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],Lj.prototype,"onCompanionClicked",null);
Lj=_.E([_.m({is:"ytd-shopping-companion-renderer",disableElementRegistration:!0})],Lj);
_.Z(Lj,"ytd-shopping-companion-renderer",function(){if(JdM!==void 0)return JdM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return JdM=I},{mode:1});_.B9(_.BO(function(I){var C=I.data;var y=_.Es();_.UG(y,function(){return C().interaction},B6R);
_.a0(y,{visibilityCallback:function(k){var F,z=(F=C().interaction)==null?void 0:F.onFirstVisible;k&&z&&_.Gp(z)},
showOption:_.dF});_.X$(function(){var k,F;F=(F=_.d5("yt.www.ads.eventcache.getLastCompanionData"))?(F=F())&&F.onLayoutVisibleCallback:null;(k=F)==null||k()});
I=_.uk(function(){_.uW(y.value,"yt-refit-popups-action")});
return _.P("banner-image-layout-view-model",{class:"ytwBannerImageLayoutViewModelHost","on:load":I,el:y,"aria-label":function(){var k,F;return(k=C().interaction)==null?void 0:(F=k.accessibility)==null?void 0:F.label}},_.P("div",{class:"ytwBannerImageLayoutViewModelHostBannerImage"},_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(k){return _.P(_.IO,{data:k.data,
targetHeight:80,customCommandResolver:B6R})}})),_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadata"},_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadataAdBadge"},_.P(_.lY,{data:function(){return C().adBadge}},{adBadgeViewModel:function(k){return _.P(_.EA,{data:k.data,
hasDot:!1,adRenderingContextType:function(){return"AD_RENDERING_CONTEXT_TYPE_WATCH_NEXT"}})}})),_.P("div",{class:"ytwBannerImageLayoutViewModelHostMetadataMenu"},_.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:_.fM}))))},"Ci"),"banner-image-layout-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;I=_.Es();_.UG(I,function(){return C().interaction},EPL);
_.a0(I,{visibilityCallback:function(y){var k,F=(k=C().interaction)==null?void 0:k.onFirstVisible;y&&F&&_.Gp(F)},
showOption:_.dF});_.X$(function(){var y,k;k=(k=_.d5("yt.www.ads.eventcache.getLastCompanionData"))?(k=k())&&k.onLayoutVisibleCallback:null;(y=k)==null||y()});
return _.P("top-banner-image-text-icon-buttoned-layout-view-model",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHost",el:I},_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostBannerImage"},_.P(_.lY,{data:function(){return C().adImage}},{adImageViewModel:function(y){return _.P(_.IO,{data:y.data,
targetHeight:80,customCommandResolver:EPL})}})),_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadata"},_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataAvatarLockup"},_.P(_.lY,{data:function(){return C().adAvatarLockup}},{adAvatarLockupViewModel:function(y){return _.P(mgR,{data:y.data,
customCommandResolver:EPL})}})),_.P(_.lY,{data:function(){return C().adButton}},{adButtonViewModel:function(y){return _.P(_.qr,{data:y.data,
customCommandResolver:EPL})}}),_.P("div",{class:"ytwTopBannerImageTextIconButtonedLayoutViewModelHostMetadataMenu"},_.P(_.lY,{data:function(){return C().menu}},{buttonViewModel:_.fM}))))},"Di"),"top-banner-image-text-icon-buttoned-layout-view-model",{props:{data:_.As}});var OSH={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"},DM=function(){var I=_.q.apply(this,arguments)||this;I.updateCompanionDataJobId=0;I.contentVideoId=null;I.player=null;I.actionMap={"yt-companion-ad-clicked":"handleCompanionAdClicked"};
return I};
_.R(DM,_.q);_.u=DM.prototype;_.u.configureRendererStamper=function(){return{oneofRenderer:{id:"companion",mapping:OSH}}};
_.u.attached=function(){var I=this,C=_.hU();C&&C.getPlayerPromise().then(function(y){I.getCachedDataAndListen(y)})};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(this.player,"updateKevlarOrC3Companion",this.receiveCompanionData),this.player=null)};
_.u.updateRendererStamper=function(){var I={};if(this.data)for(var C in OSH)if(this.data[C]){I[C]=this.data[C];break}if(this.oneofRenderer!=void 0||Object.keys(I).length)this.oneofRenderer=I};
_.u.getCachedDataAndListen=function(I){var C=this.retrieveCachedCompanionData();C&&Object.keys(C).length&&this.receiveCompanionData(C);this.ytPlayerListenerBehavior.listenToPlayerEvent(I,"updateKevlarOrC3Companion",this.receiveCompanionData);this.player=I};
_.u.retrieveCachedCompanionData=function(){return _.sF.yt&&_.sF.yt.www&&_.sF.yt.www.ads&&_.sF.yt.www.ads.eventcache&&_.sF.yt.www.ads.eventcache.getLastCompanionData?_.sF.yt.www.ads.eventcache.getLastCompanionData():null};
_.u.receiveCompanionData=function(I){I&&Object.keys(I).length?(this.contentVideoId=I.contentVideoId,this.setCompanionData(I)):this.setCompanionData(I)};
_.u.setCompanionData=function(I){this.cancelPendingCompanionAdJobs();if(I){this.updateCompanionDataJobId=0;for(var C in OSH)OSH.hasOwnProperty(C)&&(this.data[C]=void 0);I.shoppingCompanionCarouselRenderer?this.set("data.shoppingCompanionCarouselRenderer",I.shoppingCompanionCarouselRenderer):I.imageCompanionAdRenderer?this.set("data.imageCompanionAdRenderer",I.imageCompanionAdRenderer):I.actionCompanionAdRenderer?(this.set("data.actionCompanionAdRenderer",I.actionCompanionAdRenderer),_.uW(this.hostElement,
"yt-hide-unlimited-offer-module"),_.uW(this.hostElement,"yt-hide-tvfilm-offer-module")):I.bannerImageLayoutViewModel?this.set("data.bannerImageLayoutViewModel",I.bannerImageLayoutViewModel):I.topBannerImageTextIconButtonedLayoutViewModel&&this.set("data.topBannerImageTextIconButtonedLayoutViewModel",I.topBannerImageTextIconButtonedLayoutViewModel);this.updateRendererStamper()}};
_.u.dataChanged=function(){var I=this,C=_.hU();C?C.getPlayerPromise().then(function(y){I.contentVideoId&&y.getVideoUrl().includes("v="+I.contentVideoId)||(I.cancelPendingCompanionAdJobs(),I.updateRendererStamper())}):_.xS(Error("hm"))};
_.u.cancelPendingCompanionAdJobs=function(){this.updateCompanionDataJobId&&(_.b$.cancelJob(this.updateCompanionDataJobId),this.updateCompanionDataJobId=0)};
_.u.handleCompanionAdClicked=function(I,C){this.player.onAdUxClicked(I,C);this.player.pauseVideo()};
DM.prototype.dataChanged=DM.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],DM.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],DM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],DM.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],DM.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DM.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],DM.prototype,"oneofRenderer",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DM.prototype,"dataChanged",null);DM=_.E([_.m({is:"ytd-companion-slot-renderer",disableElementRegistration:!0})],DM);
_.Z(DM,"ytd-companion-slot-renderer",function(){if(HSL!==void 0)return HSL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return HSL=I},{mode:_.Ij("kevlar_poly_si_batch_j067")?
1:2});var aOS;var pj=function(){return _.q.apply(this,arguments)||this};
_.R(pj,_.q);pj.prototype.dataChanged=function(){this.companionSlotData={hack:!0}};
pj.prototype.dataChanged=pj.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pj.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pj.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],pj.prototype,"companionSlotData",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pj.prototype,"dataChanged",null);
pj=_.E([_.m({disableElementRegistration:!0,is:"ytd-player-legacy-desktop-watch-ads-renderer"})],pj);
_.Z(pj,"ytd-player-legacy-desktop-watch-ads-renderer",function(){if(aOS!==void 0)return aOS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return aOS=I},{mode:1});var MCM;var Q1=function(){var I=_.q.apply(this,arguments)||this;I.skinnyMode=!1;I.COMPACT_EVENT_COUNT=4;I.onShelfToggleButtonTap=function(){I.logTap(I.data);I.showingMore=!I.showingMore};
I.onShelfToggleButtonFocus=function(){I.showingMore||(I.logTap(I.data),I.showingMore=!0,_.hn(I,function(){var C=I.COMPACT_EVENT_COUNT-1,y;(y=_.f(I.hostElement).querySelector("#event-"+C))==null||y.focus()}))};
return I};
_.R(Q1,_.q);_.u=Q1.prototype;_.u.attached=function(){this.shelfToggleButton.addEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.addEventListener("focus",this.onShelfToggleButtonFocus);this.addInfoTooltipListeners()};
_.u.detached=function(){this.shelfToggleButton.removeEventListener("tap",this.onShelfToggleButtonTap);this.shelfToggleButton.removeEventListener("focus",this.onShelfToggleButtonFocus);this.removeInfoTooltipListeners()};
_.u.addInfoTooltipListeners=function(){this.infoContainer.addEventListener("tap",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseenter",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("focus",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.addEventListener("mouseleave",_.sb(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.addEventListener("blur",_.sb(this.infoTooltip,this.infoTooltip.hide))};
_.u.removeInfoTooltipListeners=function(){this.infoContainer.removeEventListener("tap",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseenter",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("focus",_.sb(this.infoTooltip,this.infoTooltip.show));this.infoContainer.removeEventListener("mouseleave",_.sb(this.infoTooltip,this.infoTooltip.hide));this.infoContainer.removeEventListener("blur",_.sb(this.infoTooltip,this.infoTooltip.hide))};
_.u.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)};
_.u.onShowingMoreChanged=function(){var I;this.showingMoreChanged((I=this.showingMore)!=null?I:!1)};
_.u.showingMoreChanged=function(I){var C=this.get("data.events")||[];this.set("restEvents",C.slice(1,I?C.length:this.COMPACT_EVENT_COUNT).map(function(y){return y.ticketEventRenderer}));
C.slice(0,I?C.length:this.COMPACT_EVENT_COUNT).forEach(function(y){var k=_.Si();y=y.ticketEventRenderer.trackingParams;_.fq()&&k&&y&&(y=_.nv(y),k&&_.mM(k,y))});
this.shelfTogglerLabelText=this.showingMore?this.data.showLess||"":this.data.showMore||"";this.shelfTogglerIcon=this.showingMore?"yt-icons:expand-less":"yt-icons:expand-more"};
_.u.computeAriaLabel=function(I){return I.subtitle1+", "+I.subtitle2};
_.u.logTap=function(I){_.fq()&&this.ytRendererBehavior.logExplicitClick(I)};
_.u.isKeyboardAction=function(I){return this.get("detail.x",I)===0&&this.get("detail.y",I)===0};
_.u.onFirstEventTap=function(I){I.target&&this.handleTap(I.target,this.firstEvent,this.isKeyboardAction(I))};
_.u.onTicketLinkTap=function(I){I.target&&this.handleTap(I.target,I.model.item,this.isKeyboardAction(I))};
_.u.handleTap=function(I,C,y){if(C.buttonCommand)if(C.hasMultipleOffers)Object.assign(_.l(C.buttonCommand,_.jV),{properties:{source:y?"keyboard":"tap"}}),this.logTap(C),this.popupPositionTarget=I,_.cQ(this.hostElement,[C.buttonCommand],this.hostElement);else{var k;if((k=_.l(C.buttonCommand,_.xo))==null?0:k.url)this.logTap(C),_.XG(window,_.l(C.buttonCommand,_.xo).url)}};
Q1.prototype.onShowingMoreChanged=Q1.prototype.onShowingMoreChanged;Q1.prototype.dataChanged=Q1.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Q1.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Q1.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Q1.prototype,"firstEvent",void 0);_.E([_.d(),_.h("design:type",Object)],Q1.prototype,"restEvents",void 0);_.E([_.d(),_.h("design:type",String)],Q1.prototype,"imageUrl",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Q1.prototype,"showingMore",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Q1.prototype,"canShowMore",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q1.prototype,"skinnyMode",void 0);_.E([_.d(),_.h("design:type",HTMLElement)],Q1.prototype,"popupPositionTarget",void 0);_.E([_.z$("#banner-info-tooltip"),_.h("design:type",Object)],Q1.prototype,"infoTooltip",void 0);
_.E([_.z$("#info-container"),_.h("design:type",HTMLElement)],Q1.prototype,"infoContainer",void 0);_.E([_.z$("#shelf-toggler"),_.h("design:type",HTMLElement)],Q1.prototype,"shelfToggleButton",void 0);_.E([_.z$("#separator"),_.h("design:type",HTMLDivElement)],Q1.prototype,"separator",void 0);_.E([_.d(),_.h("design:type",String)],Q1.prototype,"shelfTogglerLabelText",void 0);_.E([_.d(),_.h("design:type",String)],Q1.prototype,"shelfTogglerIcon",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q1.prototype,"dataChanged",null);_.E([_.rW("showingMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q1.prototype,"onShowingMoreChanged",null);Q1=_.E([_.m({disableElementRegistration:!0,is:"ytd-ticket-shelf-renderer"})],Q1);
_.Z(Q1,"ytd-ticket-shelf-renderer",function(){if(MCM!==void 0)return MCM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return MCM=I},{mode:1});var IpL;var CMj;var Nh=function(){return _.q.apply(this,arguments)||this};
_.R(Nh,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Nh.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Nh.prototype,"data",void 0);Nh=_.E([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-message-renderer"})],Nh);
_.Z(Nh,"ytd-comments-entry-point-message-renderer",function(){if(CMj!==void 0)return CMj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CMj=I},{mode:1});var sZj;var V1=function(){return _.q.apply(this,arguments)||this};
_.R(V1,_.q);_.H1.Object.defineProperties(V1.prototype,{hasAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.teaserAvatar)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],V1.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],V1.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],V1.prototype,"hasAvatar",null);V1=_.E([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-teaser-renderer"})],V1);
_.Z(V1,"ytd-comments-entry-point-teaser-renderer",function(){if(sZj!==void 0)return sZj;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return sZj=I},{mode:1});var o_R;var jY=function(){return _.q.apply(this,arguments)||this};
_.R(jY,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jY.prototype,"data",void 0);jY=_.E([_.m({disableElementRegistration:!0,is:"ytd-comments-simplebox-renderer"})],jY);
_.Z(jY,"ytd-comments-simplebox-renderer",function(){if(o_R!==void 0)return o_R;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return o_R=I},{mode:1});var lE=function(){var I=_.q.apply(this,arguments)||this;I.fullHeight=!_.V("comment_teaser_full_height_kill_switch")&&_.V("kevlar_watch_grid");return I};
_.R(lE,_.q);lE.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"}}}};
lE.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
lE.prototype.onTap=function(){var I=this.tapCommand;I&&(this.data&&this.ytRendererBehavior.logExplicitClick(this.data),this.ytComponentBehavior.resolveCommand(I))};
lE.prototype.onKeyUp=function(I){if(I.keyCode===13)this.onTap()};
_.H1.Object.defineProperties(lE.prototype,{tapCommand:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.onTap)return this.data.onTap;var C,y;if(((C=this.data)==null?0:C.teaserContent)||((y=this.data)==null?0:y.simpleboxPlaceholder))return{signalAction:{signal:"SCROLL_TO_COMMENTS"}}}},
simpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.simpleboxPlaceholder}},
hasSimpleboxPlaceholder:{configurable:!0,enumerable:!0,get:function(){return!!this.simpleboxPlaceholder}},
simpleboxAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.simpleboxAvatar}},
teaserContent:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.teaserContent}},
hasTeaserContent:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserContent}},
teaserAvatar:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.teaserAvatar}},
hasTeaserAvatar:{configurable:!0,enumerable:!0,get:function(){return!!this.teaserAvatar}},
messageText:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.messageText}},
contentRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.contentRenderer}},
hasContents:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)!=null&&I.contents?this.data.contents.length>0:!1}},
hasContentRenderer:{configurable:!0,enumerable:!0,get:function(){return!!this.contentRenderer}}});
lE.prototype.onKeyUp=lE.prototype.onKeyUp;lE.prototype.onTap=lE.prototype.onTap;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lE.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lE.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lE.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lE.prototype,"fullHeight",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"tapCommand",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"simpleboxPlaceholder",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lE.prototype,"hasSimpleboxPlaceholder",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"simpleboxAvatar",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"teaserContent",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lE.prototype,"hasTeaserContent",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"teaserAvatar",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lE.prototype,"hasTeaserAvatar",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"messageText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],lE.prototype,"contentRenderer",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lE.prototype,"hasContents",null);
_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],lE.prototype,"hasContentRenderer",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lE.prototype,"onTap",null);_.E([_.km("keypress"),_.h("design:type",Function),_.h("design:paramtypes",[_.iR]),_.h("design:returntype")],lE.prototype,"onKeyUp",null);lE=_.E([_.m({disableElementRegistration:!0,is:"ytd-comments-entry-point-header-renderer"})],lE);
_.Z(lE,"ytd-comments-entry-point-header-renderer",function(){if(IpL!==void 0)return IpL;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return IpL=I},{mode:1});var yWY;_.aj(_.FU,"yt-animated-rolling-number",{propNames:["numberText","numberValue","heightPx","shouldAnimate","forceRollUp"]});var k3y=Number(getComputedStyle(document.documentElement).fontSize.replace("px","")),FpR={numberText:"",heightPx:2*k3y,shouldAnimate:!1},X5=function(){var I=_.q.apply(this,arguments)||this;I.usingAnimatedComponents=!0;I.wasDetailed=!1;I.JSC$20122_browserSupportsAnimation=_.V("web_supports_animations_api");I.actionMap={"yt-update-viewership-action":"onYtUpdateViewershipAction","yt-update-date-text-action":"onYtUpdateDateTextAction"};I.detailed=!1;I.shouldAnimate=!1;I.viewCountProps=FpR;I.dateTextProps=
FpR;I.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");return I};
_.R(X5,_.q);_.u=X5.prototype;_.u.resetAnimationState=function(){this.shouldAnimate=!1};
_.u.updateDynamicMetadata=function(){if(this.JSC$20122_browserSupportsAnimation){if(!this.detailed){var I,C,y,k;var F=(I=this.videoPrimaryInfoRenderer)==null?void 0:(C=I.viewCount)==null?void 0:(y=C.videoViewCountRenderer)==null?void 0:(k=y.extraShortViewCount)==null?void 0:k.simpleText;var z,c,r,w;var L=(z=this.videoPrimaryInfoRenderer)==null?void 0:(c=z.viewCount)==null?void 0:(r=c.videoViewCountRenderer)==null?void 0:(w=r.shortViewCount)==null?void 0:w.simpleText}if(!L){var D,p,Q,X;F=(D=this.videoPrimaryInfoRenderer)==
null?void 0:(p=D.viewCount)==null?void 0:(Q=p.videoViewCountRenderer)==null?void 0:(X=Q.unlabeledViewCountValue)==null?void 0:X.simpleText;var b,S,A,x;L=(b=this.videoPrimaryInfoRenderer)==null?void 0:(S=b.viewCount)==null?void 0:(A=S.videoViewCountRenderer)==null?void 0:(x=A.viewCount)==null?void 0:x.simpleText}var B,t,U;I=Number((B=this.videoPrimaryInfoRenderer)==null?void 0:(t=B.viewCount)==null?void 0:(U=t.videoViewCountRenderer)==null?void 0:U.originalViewCount);var yW,a;B=(yW=this.videoPrimaryInfoRenderer)==
null?void 0:(a=yW.relativeDateText)==null?void 0:a.simpleText;var cs;yW=!((cs=this.videoPrimaryInfoRenderer)==null||!cs.relativeDateText);if(F&&L&&I&&(B||!yW)){this.wasDetailed!==this.detailed&&(this.shouldAnimate=!1);this.wasDetailed=this.detailed;cs=L.split(new RegExp("("+F+")"));F=OGj(cs[0]);var XO;L={numberText:(XO=cs[1])!=null?XO:"",numberValue:I,heightPx:2*k3y,shouldAnimate:this.shouldAnimate&&!!this.viewCountProps.numberText};var Rm;XO=((Rm=cs[2])!=null?Rm:"")+"  ";this.setViewCount(L,F,OGj(XO));
if(!this.detailed&&yW){F=B.split(/(\d+)/);Rm=OGj(F[0]);var $z;XO={numberText:($z=F[1])!=null?$z:"",heightPx:2*k3y,shouldAnimate:this.shouldAnimate&&!!this.dateTextProps.numberText};var hX;$z=((hX=F[2])!=null?hX:"")+"  ";this.setDateText(XO,Rm,OGj($z))}else this.setDateText();this.usingAnimatedComponents=!0;this.shouldAnimate=!1}else this.usingAnimatedComponents=!1,this.setViewCount(),this.setDateText()}else this.usingAnimatedComponents=!1};
_.u.setViewCount=function(I,C,y){_.hS(C)!==_.hS(this.viewCountPreNumberText)&&(this.viewCountPreNumberText=C);this.viewCountProps.numberText!==(I==null?void 0:I.numberText)&&(this.viewCountProps=I||FpR);_.hS(y)!==_.hS(this.viewCountPostNumberText)&&(this.viewCountPostNumberText=y)};
_.u.setDateText=function(I,C,y){_.hS(C)!==_.hS(this.dateTextPreNumberText)&&(this.dateTextPreNumberText=C);this.dateTextProps.numberText!==(I==null?void 0:I.numberText)&&(this.dateTextProps=I||FpR);_.hS(y)!==_.hS(this.dateTextPostNumberText)&&(this.dateTextPostNumberText=y)};
_.u.onYtUpdateViewershipAction=function(I){this.videoPrimaryInfoRenderer&&(_.l(I,CrM).isEmpty?this.set("videoPrimaryInfoRenderer.viewCount",null):_.l(I,CrM).viewCount&&(this.shouldAnimate=!0,this.set("videoPrimaryInfoRenderer.viewCount",_.l(I,CrM).viewCount)))};
_.u.onYtUpdateDateTextAction=function(I){if(this.videoPrimaryInfoRenderer){I=_.l(I,_.M0S).dateText;this.shouldAnimate=!0;var C;((C=this.videoPrimaryInfoRenderer)==null?0:C.relativeDateText)?this.set("videoPrimaryInfoRenderer.relativeDateText",I):this.set("videoPrimaryInfoRenderer.dateText",I)}};
_.H1.Object.defineProperties(X5.prototype,{infoText:{configurable:!0,enumerable:!0,get:function(){return JVH(this.videoPrimaryInfoRenderer,this.detailed,!this.usingAnimatedComponents)}},
descriptionInfoTooltipText:{configurable:!0,enumerable:!0,get:function(){return _.hS(JVH(this.videoPrimaryInfoRenderer,!0,!0,!1,"\u2022"))}},
animatedViewCountAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.hS(this.viewCountPreNumberText),this.viewCountProps.numberText,_.hS(this.viewCountPostNumberText)].join("")}},
animatedDateTextAccessibilityLabel:{configurable:!0,enumerable:!0,get:function(){return[_.hS(this.dateTextPreNumberText),this.dateTextProps.numberText,_.hS(this.dateTextPostNumberText)].join("")}}});
X5.prototype.updateDynamicMetadata=X5.prototype.updateDynamicMetadata;X5.prototype.resetAnimationState=X5.prototype.resetAnimationState;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],X5.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],X5.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],X5.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],X5.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],X5.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"detailed",void 0);_.E([_.d(),_.h("design:type",Object)],X5.prototype,"shouldAnimate",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"viewCountPreNumberText",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"viewCountProps",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"viewCountPostNumberText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"dateTextPreNumberText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"dateTextProps",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"dateTextPostNumberText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],X5.prototype,"metadataBadgesInDescription",void 0);_.E([_.v("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed","usingAnimatedComponents"),_.h("design:type",Object),_.h("design:paramtypes",[])],X5.prototype,"infoText",null);
_.E([_.v("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount"),_.h("design:type",String),_.h("design:paramtypes",[])],X5.prototype,"descriptionInfoTooltipText",null);_.E([_.v("viewCountPreNumberText","viewCountProps.numberText","viewCountPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],X5.prototype,"animatedViewCountAccessibilityLabel",null);
_.E([_.v("dateTextPreNumberText","dateTextProps.numberText","dateTextPostNumberText"),_.h("design:type",String),_.h("design:paramtypes",[])],X5.prototype,"animatedDateTextAccessibilityLabel",null);_.E([_.FI("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X5.prototype,"resetAnimationState",null);
_.E([_.FI("videoPrimaryInfoRenderer","videoPrimaryInfoRenderer.dateText","videoPrimaryInfoRenderer.viewCount","detailed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X5.prototype,"updateDynamicMetadata",null);X5=_.E([_.m({disableElementRegistration:!0,is:"ytd-watch-info-text"})],X5);
_.Z(X5,"ytd-watch-info-text",function(){if(yWY!==void 0)return yWY;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-info-text--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="info-container" class="style-scope ytd-watch-info-text">\n  <div id="view-count" aria-label$="[[animatedViewCountAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number id="view-count-number" force-roll-up="[[viewCountProps.forceRollUp]]" height-px="[[viewCountProps.heightPx]]" number-text="[[viewCountProps.numberText]]" number-value="[[viewCountProps.numberValue]]" should-animate="[[viewCountProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[viewCountPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <div id="date-text" aria-label$="[[animatedDateTextAccessibilityLabel]]" class="style-scope ytd-watch-info-text">\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPreNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n    <yt-animated-rolling-number force-roll-up="true" height-px="[[dateTextProps.heightPx]]" number-text="[[dateTextProps.numberText]]" number-value="[[dateTextProps.numberValue]]" should-animate="[[dateTextProps.shouldAnimate]]" class="style-scope ytd-watch-info-text"></yt-animated-rolling-number>\n    <yt-formatted-string aria-hidden="true" text="[[dateTextPostNumberText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  </div>\n  <yt-formatted-string id="info" text="[[infoText]]" class="style-scope ytd-watch-info-text"></yt-formatted-string>\n  <template is="dom-if" if="[[metadataBadgesInDescription]]" class="style-scope ytd-watch-info-text">\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[!videoPrimaryInfoRenderer.badges]]" class="style-scope ytd-watch-info-text">\n    </ytd-badge-supported-renderer>\n  </template>\n</div>\n<tp-yt-paper-tooltip class="style-scope ytd-watch-info-text">[[descriptionInfoTooltipText]]</tp-yt-paper-tooltip>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yWY=I},{mode:1});var ucL;var zRK=_.BO(function(I){var C=I.data;var y=I.setTapCommand;_.l0(function(){var k=_.Rj(C().onTap);y(k)});
return _.P("yt-comment-input-box-carousel-item-view-model",{class:"ytCommentInputBoxCarouselItemViewModelHost"},_.P(_.lY,{data:function(){return C().avatar}},{avatarViewModel:_.rF}),_.P("div",{class:"ytCommentInputBoxCarouselItemViewModelInputBox"},_.P("span",null,function(){return C().simpleboxText})))},"Ei");var TGR=_.BO(function(I){return _.P("comments-entry-point-teaser-view-model",{class:"ytCommentsEntryPointTeaserViewModelHost"},_.P(_.Dx,{cond:function(){return _.l(I.data().avatar,_.EG)},
then:function(C){return _.P(_.rF,{data:C,avatarButtonCustomClassName:"ytCommentsEntryPointTeaserViewModelAvatar"})}}),_.P("div",{class:"ytCommentsEntryPointTeaserViewModelTeaser"},_.P(_.wh,{text:function(){return I.data().teaserText}})))},"Fi");var cWY=_.BO(function(I){var C=I.data;var y=I.setTapCommand;_.l0(function(){var k=_.Rj(C().onTap);y(k)});
return _.P("yt-comment-teaser-carousel-item-view-model",{class:"ytCommentTeaserCarouselItemViewModelHost"},_.P(_.lY,{data:function(){return C().teasers}},{commentsEntryPointTeaserViewModel:TGR}))},"Gi");var eRR=_.BO(function(I){var C=I.data;var y=I.setTapCommand;_.l0(function(){var k=_.Rj(C().onTap);y(k)});
return _.P("yt-comments-entry-point-message-view-model",{class:"ytCommentsEntryPointMessageViewModelHost"},_.P(_.wh,{text:function(){return C().messageText}}))},"Hi");var rWL=_.BO(function(I){var C=I.data;var y=I.setTapCommand;var k=I.isDisabled;_.l0(function(){var F=(k==null?0:k())?void 0:_.Rj(C().onTap);y(F)});
return _.P("yt-text-carousel-item-view-model",{class:"ytTextCarouselItemViewModelHost"},_.P(_.ez,{icon:function(){return C().iconName},
className:"ytTextCarouselItemViewModelImageType"}),_.P(_.Dx,{cond:function(){return C().image},
then:function(F){return _.P(_.x$,{data:F,alt:"",className:"ytTextCarouselItemViewModelImageType"})}}),_.P(_.wh,{text:function(){return C().text},
className:function(){return C().image||C().iconName?"ytTextCarouselItemViewModelText":"ytTextCarouselItemViewModelTextWithoutImage"},
ellipsisTruncate:!0}),_.P(_.lY,{data:function(){return C().button}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytTextCarouselItemViewModelButton",buttonOverrides:function(){return{disabled:k==null?void 0:k()}}})}}))},"Ii");var iBL=_.BO(function(I){var C=I.data;var y=I.itemIndex;var k=I.selectedIndex;var F=I.indexUpdatedCallback;var z=I.observer;I=I.title;var c=_.Es(),r=function(p){y()===k()&&F(p)},w=_.XU(RaL),L=_.XU(bGL),D=function(){var p,Q,X;
return((p=C())==null?void 0:p.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_LIVE_CHAT_STATIC_TEXT"&&!w()||((Q=C())==null?void 0:Q.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_QUIZ_TEASER_STATIC_TEXT"&&L().includes("PAposts_by_host")||((X=C())==null?void 0:X.itemType)==="VIDEO_METADATA_CAROUSEL_PAGINATION_TYPE_YOUCHAT_STATIC_TEXT"&&L().includes("PAyouchat")};
_.RU(function(){z&&z().observe(c.value)});
return _.P("yt-carousel-item-view-model",{el:c,class:"ytCarouselItemViewModelHost",tabindex:0,"aria-label":I},_.P(_.lY,{data:function(){var p,Q;return(Q=(p=_.l(C().carouselItem,V0B))==null?void 0:p.textCarousel)!=null?Q:C().carouselItem}},{textCarouselItemViewModel:function(p){return _.P(rWL,{data:p.data,
setTapCommand:r,isDisabled:D})},
commentTeaserCarouselItemViewModel:function(p){return _.P(cWY,{data:p.data,setTapCommand:r})},
commentInputBoxCarouselItemViewModel:function(p){return _.P(zRK,{data:p.data,setTapCommand:r})},
commentsEntryPointMessageViewModel:function(p){return _.P(eRR,{data:p.data,setTapCommand:r})}}))},"Ji");var wYR=_.BO(function(I){var C=I.numDots;var y=I.activeIndex;return _.P("yt-carousel-dots-shape",{class:"ytCarouselDotsShapeHost"},_.P(_.pH,{each:function(){return Array.from({length:C()})},
keyBy:"INDEX"},function(k,F){return _.P("div",{class:function(){var z={};return _.yc("ytCarouselDotsShapeDot",(z.ytCarouselDotsShapeDotActive=F===y(),z))}})}))},"Ki");var n_Y=_.BO(function(I){var C=I.data;var y=I.handleCarouselNavigation;var k=I.numItems;var F=I.selectedIndex;var z=function(){return{disabled:F()===0}},c=function(){return{disabled:F()===k()-1}};
return _.P("yt-carousel-title-view-model",{class:"ytCarouselTitleViewModelHost"},_.P("div",null,_.P("h2",{class:"ytCarouselTitleViewModelTitle","aria-live":"polite"},function(){return C().title}),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(r){return _.P("span",{class:"ytCarouselTitleViewModelSubtitle","aria-label":function(){return C().subtitleAccessibilityText}},r)}})),_.P(_.Dx,{cond:function(){return k()>1},
then:function(){return _.P("div",{class:"ytCarouselTitleViewModelNavigation"},_.P(wYR,{numDots:k,activeIndex:F}),_.P(_.Dx,{cond:function(){return C().previousButton},
then:function(r){return _.P(_.lY,{data:r},{buttonViewModel:function(w){return _.P(_.fM,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(-1)},
buttonOverrides:z})}})}}),_.P(_.Dx,{cond:function(){return C().nextButton},
then:function(r){return _.P(_.lY,{data:r},{buttonViewModel:function(w){return _.P(_.fM,{data:w.data,className:"ytCarouselTitleViewModelNavigationButton",onClick:function(){return y(1)},
buttonOverrides:c})}})}}))}}))},"Li");_.B9(_.BO(function(I){var C=I.data;var y=_.Es(),k=_.Es(),F=_.Aq("HTML_DIR")==="rtl",z=!1,c=0,r=0;I=_.T(_.c4(0,void 0,"m0dtIf"));var w=I.next().value,L=I.next().value;I=_.T(_.c4(0,void 0,"fL6I6"));var D=I.next().value,p=I.next().value;I=_.T(_.c4(!1,void 0,"ZPrwNb"));var Q=I.next().value,X=I.next().value,b=function(){var cs,XO,Rm;return(Rm=(cs=C())==null?void 0:(XO=cs.carouselTitles)==null?void 0:XO.length)!=null?Rm:0},S=function(){k.value&&k.value.scrollLeft!==c&&L((F?k.value.scrollLeft<c:k.value.scrollLeft>
c)?Math.min(w()+1,b()-1):Math.max(w()-1,0))},A;
window.IntersectionObserver&&(A=new IntersectionObserver(function(cs){cs=_.T(cs);for(var XO=cs.next();!XO.done;XO=cs.next())if(XO.value.isIntersecting){if(z){z=!1;break}S()}else L(r)},{threshold:.2}));
_.l0(function(){if(k.value){var cs=(F?-1:1)*(D()/b()+12)*(Q()&&A?r:w());typeof k.value.scrollTo==="function"?k.value.scrollTo({left:cs,behavior:"smooth"}):k.value.scrollLeft=cs;c=cs;r=Q()&&A?r:w()}});
var x,B=function(cs){x=cs};
_.RU(function(){var cs=function(){var Rm=k.value.offsetWidth*b(),$z=24*(b()-1);p(Rm+$z)};
cs();if(window.ResizeObserver){var XO=new ResizeObserver(cs);XO.observe(k.value);_.$4(function(){XO.disconnect();A&&A.disconnect()})}});
I=_.uk(function(cs){if(_.b49(_.vj(cs),y.value,["BUTTON".toString()])||!x)return!1;_.N().resolve(_.ID).resolveCommand(x,{forceClickLogging:!0});return!1});
var t=function(cs){cs=w()+cs;cs>=0&&cs<b()&&(z=!0,L(cs))},U=_.uk(function(){X(!0);
return!1}),yW=_.uk(function(){A||S();
X(!1);return!1}),a={};
return _.P("yt-video-metadata-carousel-view-model",{class:_.sZ("ytVideoMetadataCarouselViewModelHost",(a.ytVideoMetadataCarouselViewModelShortMode=_.V("mweb_video_metadata_carousel_short_mode"),a)),el:y,"on:click":I,"on:touchstart":U,"on:touchend":yW,hidden:function(){var cs,XO;return!((cs=C())==null?0:(XO=cs.carouselItems)==null?0:XO.length)}},_.P("div",{class:"ytVideoMetadataCarouselViewModelTitleSection"},_.P(_.Dx,{cond:function(){return C().carouselTitles},
then:function(cs){return _.P(_.lY,{data:function(){return cs()[Q()&&A?r:w()]}},{carouselTitleViewModel:function(XO){return _.P(n_Y,{data:XO.data,
handleCarouselNavigation:t,numItems:b,selectedIndex:w})}})}})),_.P("div",{class:"ytVideoMetadataCarouselViewModelCarouselContainer",
el:k},_.P("div",{class:"ytVideoMetadataCarouselViewModelItemSection",style:function(){return"min-width: "+D()+"px;"}},_.P(_.Dx,{cond:function(){return C().carouselItems},
then:function(cs){return _.P(_.pH,{each:cs},function(XO,Rm){return _.P(_.lY,{data:function(){return XO}},{carouselItemViewModel:function($z){return _.P(iBL,{data:$z.data,
itemIndex:Rm,selectedIndex:w,indexUpdatedCallback:B,observer:A,title:function(){a:{var hX=Rm();var vs,mY=(vs=C())==null?void 0:vs.carouselTitles;if(mY&&(hX=mY[hX])){var Bs;hX=(Bs=_.l(hX,NEy))==null?void 0:Bs.title;break a}hX=void 0}return hX}})}})})}}))))},"Mi"),"yt-video-metadata-carousel-view-model",{props:{data:_.As}});var PMY=_.V("web_action_buttons_update_owner_width")?32:12,$M=function(){var I=_.q.apply(this,arguments)||this;I.metadataBadgesInDescription=_.V("web_metadata_badges_in_description");I.descriptionCollapsed=!0;I.useFadedScrimDescription=_.V("kevlar_enable_faded_scrim_on_description");I.skinnyMode=!1;I.playlist=!1;I.isDark=document.documentElement.hasAttribute("dark");I.disableVideoOwnerOnTap=_.V("swatchie_video_owner_on_tap_ks");I.swatcherooDelayLoad=_.V("swatcheroo_enable_ghost_cards");I.primaryMenuWidth=
0;I.videoId="";I.titleHeadlineXs=_.V("web_watch_typography_title_headline_xs");I.titleHeadlineS=_.V("web_watch_typography_title_headline_s");I.titleHeadlineM=_.V("web_watch_typography_title_headline_m");I.titleHashtagBlackLinkified=_.V("web_title_hashtag_black_linkified");I.titleHashtagGreyLinkified=_.V("web_title_hashtag_grey_linkified");I.actionButtonsUpdateOwnerWidth=_.V("web_action_buttons_update_owner_width");I.shouldForceIconOnly=!1;I.actionMap={"yt-update-title-action":"onYtUpdateTitleAction",
"yt-update-description-action":"onYtUpdateDescriptionAction","yt-dark-mode-toggled-action":"onYtDarkModeToggledAction"};return I};
_.R($M,_.q);_.u=$M.prototype;_.u.ready=function(){this.updateOwnerAndDescriptionPosition()};
_.u.updateOwnerAndDescriptionPosition=function(){_.V("kevlar_watch_grid")&&(this.skinnyMode?(this.titleElement.appendChild(this.descriptionElement),_.Kg(this.bottomRowElement,this.ownerElement)):(_.Kg(this.bottomRowElement,this.descriptionElement),_.Kg(this.topRowElement,this.ownerElement)))};
_.u.titleOnTap=function(I){if(this.descriptionExpandCommand&&this.skinnyMode&&!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||this.handleExpandDescriptionCommands()}};
_.u.videoOwnerOnTap=function(I){this.disableVideoOwnerOnTap||this.skinnyMode&&this.videoOwnerCommand&&(_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])||this.ytComponentBehavior.resolveCommand(this.videoOwnerCommand))};
_.u.detached=function(){var I=this,C;return _.e(function(y){(C=I.resizeObserver)==null||C.disconnect();_.oI(y)})};
_.u.maybeAttachResizeObserver=function(){var I=this;this.flexMenuEnabled&&window.ResizeObserver&&(this.resizeThrottle||(this.resizeThrottle=new _.OG(this.resize,200,this)),this.resizeObserver=this.resizeObserver||new ResizeObserver(function(){I.resizeThrottle.fire()}),this.resizeObserver.observe(this.hostElement))};
_.u.maybeUpdateActionsOnSeparateLine=function(){if(this.skinnyMode)this.actionsOnSeparateLine=!0;else if(this.primaryMenuWidth){var I=this.hostElement.clientWidth,C=Math.max(this.largerItemWrap?400:350,I/2-PMY);if(_.V("web_action_buttons_update_owner_width")){var y;C=(((y=document.getElementById("owner"))==null?void 0:y.clientWidth)||0)+PMY}this.actionsOnSeparateLine=this.primaryMenuWidth>I-C?!0:!1}};
_.u.stripAttributedDescription=function(I){return{content:I.content.replace(/[\r\n]{2,}/g,"\n")}};
_.u.configureRendererStamper=function(){return{"videoPrimaryInfoRenderer.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,disableTextTransformOnButtons:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("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:_.V("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"}}}};
_.u.videoPrimaryInfoRendererChanged=function(){var I;if((I=this.videoPrimaryInfoRenderer)==null?0:I.trackingParams)this.data={trackingParams:this.videoPrimaryInfoRenderer.trackingParams};this.flexMenuEnabled&&(this.maybeAttachResizeObserver(),this.updatePrimaryMenuWidth())};
_.u.videoSecondaryInfoRendererChanged=function(){var I,C;(C=(I=this.descriptionInlineExpander).collapse)==null||C.call(I);this.descriptionExpandClientVe=_.Dn(110509);this.descriptionCollapseClientVe=_.Dn(110510);I=_.Si();C=_.fq();I&&C&&(_.V("combine_ve_grafts")?(_.oV(_.e2(),this.descriptionExpandClientVe,C),_.oV(_.e2(),this.descriptionCollapseClientVe,C)):_.m5(I,C,[this.descriptionExpandClientVe,this.descriptionCollapseClientVe]))};
_.u.structuredDescriptionContentRendererChanged=function(){_.V("ytd-watch-metadata-manual-sd-updates-killswitch")||(this.useFadedScrimDescription&&this.fadedStructuredDescriptionContentRendererElement?this.fadedStructuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer:this.structuredDescriptionContentRendererElement&&(this.structuredDescriptionContentRendererElement.data=this.structuredDescriptionContentRenderer))};
_.u.updateTopLevelIconsOnly=function(){var I=this;_.V("top_level_update_killswitch")||this.menu&&_.b$.addLowPriorityJob(function(){I.menu.topLevelIconsOnly=I.skinnyMode},_.s8("swathceroo_delay_flexible_menu_update",100))};
_.u.updateShouldForceIconOnly=function(){this.shouldForceIconOnly=this.skinnyMode||_.V("web_action_buttons_minimize_subscribe")};
_.u.moveActionsElement=function(){this.skinnyMode?this.bottomActionsElement.appendChild(this.actionsElement):this.topRowElement.appendChild(this.actionsElement)};
_.u.onYtTextInlineExpanderExpandClicked=function(){this.logExpandClick()};
_.u.onYtTextInlineExpanderCollapseClicked=function(){this.logCollapseClick();this.isWatchFlexy&&this.scrollToTopOfContainer()};
_.u.onYtTextInlineExpanderExpandedChanged=function(){if(!_.V("kevlar_watch_grid")){this.descriptionCollapsed=!this.descriptionInlineExpander.isExpanded;var I,C;(C=(I=this.structuredDescriptionContentRendererElement).resize)==null||C.call(I)}};
_.u.onRenderStamperFinished=function(I){(I==null?void 0:I.target)===this.hostElement&&this.updatePrimaryMenuWidth()};
_.u.onYtExpanderMoreTapped=function(){this.handleExpandDescriptionCommands()};
_.u.onYtExpanderLessTapped=function(){var I,C=(I=this.videoSecondaryInfoRenderer)==null?void 0:I.showLessCommand;C&&this.ytComponentBehavior.resolveCommand(C)};
_.u.onDescriptionDown=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerDown()};
_.u.onDescriptionUp=function(){this.descriptionCollapsed&&this.descriptionInteraction.triggerUp()};
_.u.onDescriptionClick=function(I){if(!_.q3(_.qc(I)||[],this.hostElement,["A".toString(),"BUTTON".toString(),"TP-YT-PAPER-BUTTON"])){var C;((C=window.getSelection())==null?0:C.toString().length)||(this.descriptionCollapsed?this.handleExpandDescriptionClick():_.V("kevlar_watch_metadata_entire_collapse_click_target")&&this.handleCollapseDescriptionClick())}};
_.u.handleExpandDescriptionClick=function(){this.descriptionCollapsed&&(this.useFadedScrimDescription&&this.logExpandClick(),this.expandDescription())};
_.u.handleCollapseDescriptionClick=function(){!this.descriptionCollapsed&&this.useFadedScrimDescription&&(this.collapseDescription(),this.scrollToTopOfContainer(),this.logCollapseClick())};
_.u.logCollapseClick=function(){var I=_.Si();I&&this.descriptionCollapseClientVe&&_.EN(I,this.descriptionCollapseClientVe)};
_.u.logExpandClick=function(){var I=_.Si();I&&this.descriptionExpandClientVe&&_.EN(I,this.descriptionExpandClientVe)};
_.u.collapseDescription=function(){this.descriptionCollapsed=!0};
_.u.scrollToTopOfContainer=function(){_.Fe(this.hostElement,"yt-scroll-to-watch-element",[this.titleElement])};
_.u.expandDescription=function(){if(this.descriptionCollapsed)if(this.useFadedScrimDescription)this.descriptionCollapsed=!1,this.handleExpandDescriptionCommands();else this.descriptionInlineExpander.onExpandClick()};
_.u.handleExpandDescriptionCommands=function(){this.descriptionExpandCommand&&!this.structuredDescriptionContentRenderer&&this.ytComponentBehavior.resolveCommand(this.descriptionExpandCommand)};
_.u.getAboveTheFoldHeight=function(){return this.aboveTheFoldContainer.offsetHeight};
_.u.resize=function(){if(this.descriptionInlineExpander){var I,C;(C=(I=this.descriptionInlineExpander).resize)==null||C.call(I)}else _.SN(new _.ph("Tried to resize description inline expander when the HTML element was null",this.videoSecondaryInfoRenderer));if(this.flexMenuEnabled){var y;(y=this.menu)==null||y.maybeFlushDebouncer();this.primaryMenuWidth===0?this.updatePrimaryMenuWidth():(_.V("web_action_buttons_overlap_fix")&&this.updatePrimaryMenuWidth(),this.maybeUpdateActionsOnSeparateLine())}};
_.u.updatePrimaryMenuWidth=function(){if(this.flexMenuEnabled&&this.menu){var I,C,y,k,F=_.V("web_action_buttons_update_owner_width")?(y=(I=_.f(this.menu).querySelector("#button-shape"))==null?void 0:I.clientWidth)!=null?y:0:(k=(C=_.f(this.menu).querySelector("#button"))==null?void 0:C.clientWidth)!=null?k:0,z,c;I=((c=(z=_.f(this.menu).querySelector("#top-level-buttons-computed"))==null?void 0:z.clientWidth)!=null?c:0)+8+F;var r,w;F=(w=(r=_.f(this.menu).querySelector("#top-level-buttons-computed"))==
null?void 0:r.children.length)!=null?w:2;I<=8*F||(this.primaryMenuWidth=I)}};
_.u.onYtUpdateTitleAction=function(I){this.videoPrimaryInfoRenderer&&this.set("videoPrimaryInfoRenderer.title",_.l(I,IEY).title)};
_.u.onYtUpdateDescriptionAction=function(I){if(I=_.l(I,_.Y7q)){var C,y=!((C=this.videoSecondaryInfoRenderer)==null||!C.attributedDescription);I.isEmpty||!I.description&&!I.attributedDescription?(this.set("videoSecondaryInfoRenderer.attributedDescription",null),this.set("videoSecondaryInfoRenderer.description",null)):I.attributedDescription?this.set("videoSecondaryInfoRenderer.attributedDescription",I.attributedDescription):I.description&&(y?this.set("videoSecondaryInfoRenderer.attributedDescription",
_.j2(I.description)):this.set("videoSecondaryInfoRenderer.description",I.description))}};
_.u.onYtDarkModeToggledAction=function(I){this.isDark=I};
_.u.registerPanel=function(){if(!_.V("kevlar_watch_metadata_ep_killswitch")&&this.hasInlineStructuredDescription){var I=_.N().resolve(_.wp);I&&I.registerPanel("engagement-panel-structured-description",this)}};
_.u.resetDescriptionState=function(){this.useFadedScrimDescription&&(this.descriptionCollapsed=!0)};
_.u.showPanel=function(I){this.expandDescription();var C=this.useFadedScrimDescription?this.fadedStructuredDescriptionContentRendererElement:this.structuredDescriptionContentRendererElement;C.resize();var y,k=I==null?void 0:(y=I.sectionListEngagementPanelExtras)==null?void 0:y.scrollToItemSectionIdentifier;k?_.b$.addJob(function(){C==null||C.scrollToSection(k)},8):this.scrollToTopOfContainer()};
_.u.isVisible=function(){return!this.descriptionCollapsed};
_.u.getReloadContinuation=function(){};
_.u.hidePanel=function(){};
_.u.updatePanel=function(){};
_.H1.Object.defineProperties($M.prototype,{productShelf:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.structuredDescriptionContentRenderer)!=null&&I.items){var C;I=_.T((C=this.structuredDescriptionContentRenderer)==null?void 0:C.items);for(C=I.next();!C.done;C=I.next())if(C=_.l(C.value,_.dCw))return C}}},
shouldHideBadges:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoPrimaryInfoRenderer)==null?0:I.badges)||this.metadataBadgesInDescription}},
shouldShowProductShelf:{configurable:!0,enumerable:!0,get:function(){return!(!this.productShelf||this.descriptionCollapsed)}},
largerItemWrap:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!!((I=this.videoSecondaryInfoRenderer)==null?0:(C=I.owner)==null?0:(y=C.videoOwnerRenderer)==null?0:y.membershipButton)}},
descriptionText:{configurable:!0,enumerable:!0,get:function(){if(this.skinnyMode&&!_.V("swatchie_sd_new_line_strip_ks")){var I,C;if((I=this.videoSecondaryInfoRenderer)==null?0:(C=I.attributedDescription)==null?0:C.content){var y,k;return(k=this.stripAttributedDescription((y=this.videoSecondaryInfoRenderer)==null?void 0:y.attributedDescription))!=null?k:{runs:[]}}}var F,z,c,r;return(r=(c=(F=this.videoSecondaryInfoRenderer)==null?void 0:F.description)!=null?c:(z=this.videoSecondaryInfoRenderer)==null?
void 0:z.attributedDescription)!=null?r:{runs:[]}}},
headerRuns:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.videoSecondaryInfoRenderer)==null?void 0:I.headerRuns)!=null?C:[]}},
hasTeaser:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.commentsEntryPointHeaderRenderer)==null||!I.commentsEntryPointHeaderRenderer)}},
hasTeaserCarousel:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.videoMetadataCarousel)==null||!I.videoMetadataCarouselViewModel)}},
descriptionMaxLines:{configurable:!0,enumerable:!0,get:function(){return this.skinnyMode?_.s8("swatchie_desc_lines",3):this.hasTeaserCarousel?_.s8("teaser_carousel_desc_lines",2):3}},
collapsibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){var I,C,y=Object.assign({},(I=this.videoSecondaryInfoRenderer)==null?void 0:(C=I.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0&&!(y.rows.length<=y.collapsedItemCount))return y.rows=y.rows.slice(y.collapsedItemCount),y.collapsedItemCount=0,y}},
alwaysVisibleMetadataRows:{configurable:!0,enumerable:!0,get:function(){if(!this.suppressTopLevelMetadataRows){var I,C,y=Object.assign({},(I=this.videoSecondaryInfoRenderer)==null?void 0:(C=I.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer);if(y&&y.rows&&y.collapsedItemCount!==void 0)return y.rows=y.rows.slice(0,y.collapsedItemCount),y.collapsedItemCount=y.rows.length,y}}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.structuredDescriptionContentRenderer)==null?0:(C=I.items)==null?0:C.length)}},
showInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!this.useFadedScrimDescription&&this.hasInlineStructuredDescription&&!this.descriptionCollapsed}},
descriptionExpandCommand:{configurable:!0,enumerable:!0,get:function(){if(this.structuredDescriptionContentRenderer)return null;var I;return(I=this.videoSecondaryInfoRenderer)==null?void 0:I.showMoreCommand}},
videoOwnerCommand:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.videoSecondaryInfoRenderer)==null?0:(C=I.owner)==null?0:(y=C.videoOwnerRenderer)==null?0:y.navigationEndpoint)?this.videoSecondaryInfoRenderer.owner.videoOwnerRenderer.navigationEndpoint:null}},
flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return!!((I=this.videoPrimaryInfoRenderer)==null?0:(C=I.videoActions)==null?0:(y=C.menuRenderer)==null?0:(k=y.flexibleItems)==null?0:k.length)}},
showAttributedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&_.gY(this.descriptionText)}},
showFormattedStringDescription:{configurable:!0,enumerable:!0,get:function(){return this.useFadedScrimDescription&&!_.gY(this.descriptionText)}},
showFadedStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.useFadedScrimDescription||!this.hasInlineStructuredDescription||this.descriptionCollapsed)}},
videoTitle:{configurable:!0,enumerable:!0,get:function(){var I=this;if(_.V("web_title_hashtag_grey_delinkified")){var C,y=_.Le.unsafeClone((C=this.videoPrimaryInfoRenderer)==null?void 0:C.title);(C=y==null?void 0:y.runs)&&C.forEach(function(k){if(k==null?0:k.navigationEndpoint)k.textColor=4284506208,I.isDark&&(k.textColor=4289374890)});
return y}return(y=this.videoPrimaryInfoRenderer)==null?void 0:y.title}},
noEndpoints:{configurable:!0,enumerable:!0,get:function(){return _.V("web_title_hashtag_black_delinkified")||_.V("web_title_hashtag_grey_delinkified")}}});
$M.prototype.resetDescriptionState=$M.prototype.resetDescriptionState;$M.prototype.registerPanel=$M.prototype.registerPanel;$M.prototype.onYtExpanderLessTapped=$M.prototype.onYtExpanderLessTapped;$M.prototype.onYtExpanderMoreTapped=$M.prototype.onYtExpanderMoreTapped;$M.prototype.onRenderStamperFinished=$M.prototype.onRenderStamperFinished;$M.prototype.onYtTextInlineExpanderExpandedChanged=$M.prototype.onYtTextInlineExpanderExpandedChanged;$M.prototype.onYtTextInlineExpanderCollapseClicked=$M.prototype.onYtTextInlineExpanderCollapseClicked;
$M.prototype.onYtTextInlineExpanderExpandClicked=$M.prototype.onYtTextInlineExpanderExpandClicked;$M.prototype.moveActionsElement=$M.prototype.moveActionsElement;$M.prototype.updateShouldForceIconOnly=$M.prototype.updateShouldForceIconOnly;$M.prototype.updateTopLevelIconsOnly=$M.prototype.updateTopLevelIconsOnly;$M.prototype.structuredDescriptionContentRendererChanged=$M.prototype.structuredDescriptionContentRendererChanged;$M.prototype.videoSecondaryInfoRendererChanged=$M.prototype.videoSecondaryInfoRendererChanged;
$M.prototype.videoPrimaryInfoRendererChanged=$M.prototype.videoPrimaryInfoRendererChanged;$M.prototype.maybeUpdateActionsOnSeparateLine=$M.prototype.maybeUpdateActionsOnSeparateLine;$M.prototype.updateOwnerAndDescriptionPosition=$M.prototype.updateOwnerAndDescriptionPosition;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],$M.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],$M.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$M.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$M.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#above-the-fold"),_.h("design:type",HTMLElement)],$M.prototype,"aboveTheFoldContainer",void 0);_.E([_.z$("#menu ytd-menu-renderer"),_.h("design:type",Object)],$M.prototype,"menu",void 0);
_.E([_.z$("#description-inline-expander"),_.h("design:type",Object)],$M.prototype,"descriptionInlineExpander",void 0);_.E([_.z$("#faded-structured-description"),_.h("design:type",Object)],$M.prototype,"fadedStructuredDescriptionContentRendererElement",void 0);_.E([_.z$("#structured-description"),_.h("design:type",Object)],$M.prototype,"structuredDescriptionContentRendererElement",void 0);_.E([_.z$("#title"),_.h("design:type",HTMLElement)],$M.prototype,"titleElement",void 0);
_.E([_.z$("#description"),_.h("design:type",HTMLElement)],$M.prototype,"descriptionElement",void 0);_.E([_.z$("#description-interaction"),_.h("design:type",Object)],$M.prototype,"descriptionInteraction",void 0);_.E([_.z$("#owner"),_.h("design:type",HTMLElement)],$M.prototype,"ownerElement",void 0);_.E([_.z$("#top-row"),_.h("design:type",HTMLElement)],$M.prototype,"topRowElement",void 0);_.E([_.z$("#bottom-row"),_.h("design:type",HTMLElement)],$M.prototype,"bottomRowElement",void 0);
_.E([_.z$("#actions"),_.h("design:type",HTMLElement)],$M.prototype,"actionsElement",void 0);_.E([_.z$("#bottom-actions"),_.h("design:type",HTMLElement)],$M.prototype,"bottomActionsElement",void 0);_.E([_.z$("#ytd-watch-info-text"),_.h("design:type",Object)],$M.prototype,"watchInfoTextElement",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"videoPrimaryInfoRenderer",void 0);
_.E([_.d(),_.h("design:type",Object)],$M.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"videoMetadataCarousel",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"videoSummary",void 0);
_.E([_.d(),_.h("design:type",Object)],$M.prototype,"merchShelf",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"infoPanelBelowMetadata",void 0);_.E([_.v("structuredDescriptionContentRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"productShelf",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"metadataBadgesInDescription",void 0);
_.E([_.v("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"shouldHideBadges",null);_.E([_.v("productShelf","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"shouldShowProductShelf",null);_.E([_.d(),_.h("design:type",Boolean)],$M.prototype,"isWatchFlexy",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"descriptionCollapsed",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],$M.prototype,"useFadedScrimDescription",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"skinnyMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"largerItemWrap",null);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"playlist",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"clarifyBox",void 0);
_.E([_.d(),_.h("design:type",Object)],$M.prototype,"playerAds",void 0);_.E([_.d(),_.h("design:type",Boolean)],$M.prototype,"isDark",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],$M.prototype,"actionsOnSeparateLine",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"disableVideoOwnerOnTap",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"swatcherooDelayLoad",void 0);
_.E([_.d(),_.h("design:type",Boolean)],$M.prototype,"suppressTopLevelMetadataRows",void 0);_.E([_.d(),_.h("design:type",Object)],$M.prototype,"primaryMenuWidth",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"videoId",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"titleHeadlineXs",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"titleHeadlineS",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"titleHeadlineM",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"titleHashtagBlackLinkified",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"titleHashtagGreyLinkified",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$M.prototype,"actionButtonsUpdateOwnerWidth",void 0);
_.E([_.d(),_.h("design:type",Object)],$M.prototype,"shouldForceIconOnly",void 0);_.E([_.rW("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"updateOwnerAndDescriptionPosition",null);_.E([_.rW("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"maybeUpdateActionsOnSeparateLine",null);
_.E([_.v("videoSecondaryInfoRenderer.description","videoSecondaryInfoRenderer.attributedDescription"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"descriptionText",null);_.E([_.v("videoSecondaryInfoRenderer.headerRuns"),_.h("design:type",Array),_.h("design:paramtypes",[])],$M.prototype,"headerRuns",null);_.E([_.d({value:!1}),_.v("commentsEntryPointHeaderRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"hasTeaser",null);
_.E([_.d({value:!1,reflectToAttribute:!0}),_.v("videoMetadataCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"hasTeaserCarousel",null);_.E([_.d({value:3}),_.v("skinnyMode","playerAds","clarifyBox","hasTeaserCarousel"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"descriptionMaxLines",null);_.E([_.v("videoSecondaryInfoRenderer.metadataRowContainer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"collapsibleMetadataRows",null);
_.E([_.v("videoSecondaryInfoRenderer.metadataRowContainer","suppressTopLevelMetadataRows"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"alwaysVisibleMetadataRows",null);_.E([_.v("videoSecondaryInfoRenderer","structuredDescriptionContentRenderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"hasInlineStructuredDescription",null);
_.E([_.v("useFadedScrimDescription","hasInlineStructuredDescription","descriptionCollapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"showInlineStructuredDescription",null);_.E([_.v("data","hasInlineStructuredDescription","videoSecondaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"descriptionExpandCommand",null);
_.E([_.v("videoSecondaryInfoRenderer.owner"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"videoOwnerCommand",null);_.E([_.d({reflectToAttribute:!0}),_.v("videoPrimaryInfoRenderer.videoActions"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"flexMenuEnabled",null);_.E([_.v("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"showAttributedStringDescription",null);
_.E([_.v("descriptionText","useFadedScrimDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"showFormattedStringDescription",null);_.E([_.v("useFadedScrimDescription","descriptionCollapsed","hasInlineStructuredDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],$M.prototype,"showFadedStructuredDescription",null);
_.E([_.rW("videoPrimaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"videoPrimaryInfoRendererChanged",null);_.E([_.v("videoPrimaryInfoRenderer.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"videoTitle",null);_.E([_.v("videoPrimaryInfoRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],$M.prototype,"noEndpoints",null);
_.E([_.rW("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"videoSecondaryInfoRendererChanged",null);_.E([_.FI("videoPrimaryInfoRenderer","structuredDescriptionContentRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"structuredDescriptionContentRendererChanged",null);
_.E([_.FI("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"updateTopLevelIconsOnly",null);_.E([_.FI("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"updateShouldForceIconOnly",null);_.E([_.FI("skinnyMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"moveActionsElement",null);
_.E([_.km("yt-text-inline-expander-expand-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"onYtTextInlineExpanderExpandClicked",null);_.E([_.km("yt-text-inline-expander-collapse-clicked"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"onYtTextInlineExpanderCollapseClicked",null);
_.E([_.km("yt-text-inline-expander-expanded-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"onYtTextInlineExpanderExpandedChanged",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],$M.prototype,"onRenderStamperFinished",null);
_.E([_.km("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"onYtExpanderMoreTapped",null);_.E([_.km("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"onYtExpanderLessTapped",null);
_.E([_.FI("videoPrimaryInfoRenderer","hasInlineStructuredDescription"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"registerPanel",null);_.E([_.FI("videoSecondaryInfoRenderer"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$M.prototype,"resetDescriptionState",null);$M=_.E([_.m({disableElementRegistration:!0,is:"ytd-watch-metadata"})],$M);
_.Z($M,"ytd-watch-metadata",function(){if(ucL!==void 0)return ucL;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-metadata--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="above-the-fold" class="style-scope ytd-watch-metadata">\n  <div id="title" on-click="titleOnTap" class="style-scope ytd-watch-metadata">\n    <ytd-badge-supported-renderer hidden="[[!videoPrimaryInfoRenderer.topStandaloneBadge]]" top-standalone-badge="[[videoPrimaryInfoRenderer.topStandaloneBadge]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n    <h1 class="style-scope ytd-watch-metadata">\n      <yt-formatted-string force-default-style="" no-endpoints="[[noEndpoints]]" text="[[videoTitle]]" title="[[getSimpleString(videoPrimaryInfoRenderer.title)]]" class="style-scope ytd-watch-metadata">\n      </yt-formatted-string>\n    </h1>\n    <ytd-badge-supported-renderer badges="[[videoPrimaryInfoRenderer.badges]]" hidden="[[shouldHideBadges]]" class="style-scope ytd-watch-metadata">\n    </ytd-badge-supported-renderer>\n  </div>\n\n  <div id="top-row" class="style-scope ytd-watch-metadata">\n    <div id="owner" class="item style-scope ytd-watch-metadata" hidden="[[!videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" on-click="videoOwnerOnTap">\n      <ytd-video-owner-renderer data="[[videoSecondaryInfoRenderer.owner.videoOwnerRenderer]]" subscribe-key="[[videoSecondaryInfoRenderer.subscribeButton.subscribeButtonRenderer.subscribedEntityKey]]" watch-metadata-refresh="" class="style-scope ytd-watch-metadata">\n      </ytd-video-owner-renderer>\n      <div id="subscribe-button" class="style-scope ytd-watch-metadata"></div>\n    </div>\n    <div id="actions" class="item style-scope ytd-watch-metadata">\n      <div id="actions-inner" class="style-scope ytd-watch-metadata">\n        <div id="menu" class="style-scope ytd-watch-metadata"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="middle-row" class="style-scope ytd-watch-metadata"></div>\n\n  <div id="bottom-row" class="style-scope ytd-watch-metadata">\n    <div id="description" class="item style-scope ytd-watch-metadata" on-down="onDescriptionDown" on-up="onDescriptionUp" on-click="onDescriptionClick">\n      <div id="description-inner" class="style-scope ytd-watch-metadata">\n        <ytd-watch-info-text id="ytd-watch-info-text" detailed="[[!descriptionCollapsed]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" class="style-scope ytd-watch-metadata"></ytd-watch-info-text>\n        \n        <template is="dom-if" if="[[shouldShowProductShelf]]" restamp="" id="product-shelf" class="style-scope ytd-watch-metadata">\n          <ytd-merch-shelf-renderer data="[[productShelf]]" class="style-scope ytd-watch-metadata">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <yt-formatted-string id="description-placeholder" hidden="[[!videoSecondaryInfoRenderer.descriptionPlaceholder]]" text="[[videoSecondaryInfoRenderer.descriptionPlaceholder]]" class="style-scope ytd-watch-metadata">\n        </yt-formatted-string>\n        <div id="description-text-container" hidden="[[!useFadedScrimDescription]]" class="style-scope ytd-watch-metadata">\n          <yt-attributed-string id="attributed-description-text" data="[[descriptionText]]" disable-upgrade$="[[!showAttributedStringDescription]]" header-runs="[[headerRuns]]" hidden="[[!showAttributedStringDescription]]" user-input="" class="style-scope ytd-watch-metadata">\n          </yt-attributed-string>\n          \n          <yt-formatted-string id="formatted-description-text" disable-upgrade$="[[!showFormattedStringDescription]]" hidden="[[!showFormattedStringDescription]]" split-lines="[[showFormattedStringDescription]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          </yt-formatted-string>\n          <ytd-structured-description-content-renderer id="faded-structured-description" data="[[structuredDescriptionContentRenderer]]" disable-upgrade$="[[!showFadedStructuredDescription]]" hidden="[[!showFadedStructuredDescription]]" inline-structured-description="" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n          </ytd-structured-description-content-renderer>\n          <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n          </ytd-metadata-row-container-renderer>\n          <tp-yt-paper-button id="collapse-button" class="button style-scope ytd-watch-metadata" hidden="[[descriptionCollapsed]]" on-click="handleCollapseDescriptionClick">[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]</tp-yt-paper-button>\n        </div>\n        <ytd-text-inline-expander id="description-inline-expander" always-show-expand-button="" collapse-label="[[getSimpleString(videoSecondaryInfoRenderer.showLessText)]]" disable-upgrade$="[[useFadedScrimDescription]]" expand-command="[[descriptionExpandCommand]]" expand-label="[[getSimpleString(videoSecondaryInfoRenderer.showMoreText)]]" header-runs="[[headerRuns]]" hidden="[[useFadedScrimDescription]]" max-lines="[[descriptionMaxLines]]" text="[[descriptionText]]" class="style-scope ytd-watch-metadata">\n          <div slot="extra-content" class="style-scope ytd-watch-metadata">\n            <ytd-structured-description-content-renderer id="structured-description" data="[[structuredDescriptionContentRenderer]]" hidden="[[!showInlineStructuredDescription]]" inline-structured-description="" merch-shelf="[[merchShelf]]" video-summary="[[videoSummary]]" class="style-scope ytd-watch-metadata">\n            </ytd-structured-description-content-renderer>\n            <ytd-metadata-row-container-renderer data="[[collapsibleMetadataRows]]" disable-upgrade$="[[!collapsibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n            </ytd-metadata-row-container-renderer>\n          </div>\n        </ytd-text-inline-expander>\n      </div>\n      <yt-interaction id="description-interaction" class="rounded-large style-scope ytd-watch-metadata" hidden="[[skinnyMode]]"></yt-interaction>\n    </div>\n    <div id="bottom-actions" class="style-scope ytd-watch-metadata"></div>\n    <div id="comment-teaser" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaser]]"></div>\n    <div id="teaser-carousel" class="item style-scope ytd-watch-metadata" hidden="[[!hasTeaserCarousel]]"></div>\n  </div>\n</div>\n\n<ytd-metadata-row-container-renderer data="[[alwaysVisibleMetadataRows]]" full-width="[[skinnyMode]]" class="style-scope ytd-watch-metadata">\n</ytd-metadata-row-container-renderer>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ucL=I},{mode:2});var lpK=function(I){_.LL.call(this);this.JSC$20145_watchApi=I;this.temporaryTheaterMode=this.autonavCancelledBySignal=!1;LpY(this);Day(this);pYR(this);QZR(this);NGH(this);VhB(this);jZY(this)};
_.R(lpK,_.LL);var pYR=function(I){var C=function(){_.V("kevlar_is_pupi_enabled")||Rl(I)};
I.JSC$20145_watchApi.getRoot().addEventListener("yt-player-updated",C);I.addOnDisposeCallback(function(){I.JSC$20145_watchApi.getRoot().removeEventListener("yt-player-updated",C)})},NGH=function(I){if(_.V("kevlar_endscreen_auto_theater_mode")){var C=_.rf(_.Hg(),jU,function(){XYR(I)});
I.addOnDisposeCallback(C)}},LpY=function(I){var C,y,k,F,z;
_.e(function(c){if(c.nextAddress==1)return _.n(c,I.JSC$20145_watchApi.playerApi,2);C=c.yieldResult;y=function(r){r=!!r;bE(I)&&(r=r?2:1,_.ho.getInstance().setState(r,!0,!1))};
k=function(r){r&&_.$vS(_.Hg().getState())&&(_.Fe(I.JSC$20145_watchApi.getRoot(),"yt-toggle-theater-mode",[!0,!1]),I.temporaryTheaterMode=!0)};
F=function(r){_.V("kevlar_player_update_autonav_on_new_data")&&r.type==="newdata"&&(_.V("kevlar_is_pupi_enabled")||Rl(I))};
z=function(r){I.onPlayerStateChange(r)};
_.V("kevlar_endscreen_auto_theater_mode")&&C.addEventListener("onAutonavCancelled",k);C.addEventListener("onAutonavChangeRequest",y);C.addEventListener("onVideoDataChange",F);C.addEventListener("onStateChange",z);I.addOnDisposeCallback(function(){C.removeEventListener("onAutonavChangeRequest",y);C.removeEventListener("onVideoDataChange",F);C.removeEventListener("onStateChange",z);_.V("kevlar_endscreen_auto_theater_mode")&&C.removeEventListener("onAutonavCancelled",k)});
_.oI(c)})},Day=function(I){I.JSC$20145_watchApi.registerActionHandler("yt-signal-action-cancel-autonav",function(){I.autonavCancelledBySignal=!0;
_.V("kevlar_is_pupi_enabled")||Rl(I)});
I.JSC$20145_watchApi.registerActionHandler("yt-autonav-state-changed-action",function(C,y,k){y&&Rl(I,k)});
I.JSC$20145_watchApi.registerActionHandler("yt-enable-autoplay-command",function(){bE(I)&&_.ho.getInstance().setState(2,!0,!0)});
I.JSC$20145_watchApi.registerActionHandler("yt-disable-autoplay-command",function(){bE(I)&&_.ho.getInstance().setState(1,!0,!0)});
I.addOnDisposeCallback(function(){YM(I.JSC$20145_watchApi,"yt-signal-action-cancel-autonav");YM(I.JSC$20145_watchApi,"yt-autonav-state-changed-action");YM(I.JSC$20145_watchApi,"yt-enable-autoplay-command");YM(I.JSC$20145_watchApi,"yt-disable-autoplay-command")})},QZR=function(I){var C=I.JSC$20145_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){jZY(I)}),y=I.JSC$20145_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){VhB(I)});
I.addOnDisposeCallback(function(){I.JSC$20145_watchApi.unsubscribeByKey(C);I.JSC$20145_watchApi.unsubscribeByKey(y)})},jZY=function(I){I.autonavCancelledBySignal=!1;
_.V("kevlar_is_pupi_enabled")||Rl(I)},VhB=function(I){var C=I.JSC$20145_watchApi.getWatchNextResponse(),y,k;
var F=(C=(k=_.l(C==null?void 0:(F=C.playerOverlays)==null?void 0:(y=F.playerOverlayRenderer)==null?void 0:y.autonavToggle,_.f4u))==null?void 0:k.enabled)?2:1;_.V("kevlar_is_pupi_enabled")?_.ho.getInstance().setState(F,!1,!1):Rl(I);_.V("web_persist_server_autonav_state_on_client")&&typeof C==="boolean"&&_.wlm(F===2)},bE=function(I){if(I.autonavCancelledBySignal)return!1;
var C,y,k,F;return!!((C=I.JSC$20145_watchApi.getWatchNextResponse())==null?0:(y=C.contents)==null?0:(k=y.twoColumnWatchNextResults)==null?0:(F=k.autoplay)==null?0:F.autoplay)};
lpK.prototype.onPlayerStateChange=function(I){if(I===0){I=!_.ho.getInstance().isAutoplaySetExplicitly();var C=this.JSC$20145_watchApi.getWatchNextResponse(),y,k,F,z;C=_.l(C==null?void 0:(y=C.contents)==null?void 0:(k=y.twoColumnWatchNextResults)==null?void 0:(F=k.autoplay)==null?void 0:(z=F.autoplay)==null?void 0:z.autoplayExplicitChoiceDialogRenderer,_.etu);bE(this)&&I&&C&&_.FW.instance.resolveCommand({openPopupAction:{popup:{confirmDialogRenderer:C},popupType:"DIALOG"}})}else XYR(this)};
var XYR=function(I){I.temporaryTheaterMode&&(I.temporaryTheaterMode=!1,_.Fe(I.JSC$20145_watchApi.getRoot(),"yt-toggle-theater-mode",[!1,!1]))},Rl=function(I,C){C=C===void 0?!1:C;
var y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20145_watchApi.playerApi,2);y=k.yieldResult;bE(I)?y.setAutonavState(_.ho.getInstance().getState(),C):y.setAutonavState(1,C);_.oI(k)})};var $ay={PLAYLIST:"PLAYLIST",ERROR_SCREEN:"ERROR_SCREEN",PRIMARY_INFO:"PRIMARY_INFO",SECONDARY_INFO:"SECONDARY_INFO",CLARIFICATION:"CLARIFICATION",INFO_PANEL_BELOW_METADATA:"INFO_PANEL_BELOW_METADATA",RICH_METADATA:"RICH_METADATA",COMMENTS_ENTRY_POINT_HEADER:"COMMENTS_ENTRY_POINT_HEADER",MERCH_SHELF:"MERCH_SHELF",MERCH_SHELF_IN_SD:"MERCH_SHELF_IN_SD",DONATION_SHELF:"DONATION_SHELF",OFFER_MODULE:"OFFER_MODULE",TICKET_SHELF:"TICKET_SHELF",LIMITED_STATE:"LIMITED_STATE",ALERTS:"ALERTS",SINGLE_COLUMN_CONTENTS:"SINGLE_COLUMN_CONTENTS",
COMMENTS:"COMMENTS",ENGAGEMENT_PANELS:"ENGAGEMENT_PANELS",INLINE_ENGAGEMENT_PANELS:"INLINE_ENGAGEMENT_PANELS",RICH_GRID_RENDERER:"RICH_GRID_RENDERER",WATCH_NEXT_SECONDARY_RESULTS:"WATCH_NEXT_SECONDARY_RESULTS",EXPANDABLE_METADATA:"EXPANDABLE_METADATA",LIVE_CHAT:"LIVE_CHAT",VIDEO_METADATA_CAROUSEL:"VIDEO_METADATA_CAROUSEL"};var bBj=function(I){_.LL.call(this);var C=this;this.JSC$20150_watchApi=I;var y=this.JSC$20150_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){RRy(C)});
this.addOnDisposeCallback(function(){C.JSC$20150_watchApi.unsubscribeByKey(y)});
RRy(this)};
_.R(bBj,_.LL);var RRy=function(I){var C=I.JSC$20150_watchApi.getPlayerResponse(),y=I.JSC$20150_watchApi.getWatchNextResponse();if(!_.g_O(C==null?void 0:C.playabilityStatus,y==null?void 0:y.playerOverlays)){var k;var F=C==null?void 0:(k=C.playabilityStatus)==null?void 0:k.errorScreen}I.JSC$20150_watchApi.provideRenderingData("ERROR_SCREEN",F)};var YiY=_.BO(function(I){var C=I.data;return _.P("yt-player-overlay-video-details-renderer",{class:"ytPlayerOverlayVideoDetailsRendererHost"},_.P("div",{class:"ytPlayerOverlayVideoDetailsRendererTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("div",{class:"ytPlayerOverlayVideoDetailsRendererSubtitle"},_.P(_.lY,{data:function(){return C().channelAvatar}},{avatarViewModel:_.rF}),_.P(_.wh,{text:function(){return C().subtitle}})))},"Ni");var G3L=_.BO(function(I){return _.P("yt-player-quick-action-buttons",{class:_.sZ("ytPlayerQuickActionButtonsHost")},_.P(_.pH,{each:I.data},function(C){return _.P(_.lY,{data:function(){return C}},{buttonViewModel:_.fM,
likeButtonViewModel:function(y){return _.P(_.enc,{data:y.data,disableIconAnimation:!0})},
dislikeButtonViewModel:_.c6m})}))},"Oi");var SiR=function(I){_.LL.call(this);var C=this;this.JSC$20153_watchApi=I;I=_.T(_.c4({},void 0,"ufFdVc"));this.quickActionsViewModel=I.next().value;this.setQuickActionsViewModel=I.next().value;I=_.T(_.c4({},void 0,"atbdp"));this.playerOverlayVideoDetailsRenderer=I.next().value;this.setPlayerOverlayVideoDetailsRenderer=I.next().value;var y=this.JSC$20153_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fpP(C)});
this.addOnDisposeCallback(function(){C.JSC$20153_watchApi.unsubscribeByKey(y)});
fpP(this)};
_.R(SiR,_.LL);
var fpP=function(I){var C,y,k,F,z,c,r,w,L,D,p,Q,X,b;_.e(function(S){if(S.nextAddress==1)return _.n(S,I.JSC$20153_watchApi.playerApi,2);C=S.yieldResult;y=I.JSC$20153_watchApi.getWatchNextResponse();z=(k=y)==null?void 0:(F=k.playerOverlays)==null?void 0:F.playerOverlayRenderer;r=_.l((c=z)==null?void 0:c.fullscreenQuickActionsBar,_.hXw);(L=(w=I).setQuickActionsViewModel)==null||L.call(w,r||{});r&&KpP(I,C);Q=(D=z)==null?void 0:(p=D.videoDetails)==null?void 0:p.playerOverlayVideoDetailsRenderer;(b=(X=
I).setPlayerOverlayVideoDetailsRenderer)==null||b.call(X,Q||{});Q&&AWR(I,C);_.oI(S)})},KpP=function(I,C){if(!I.quickActionButtonsContainer){I.quickActionButtonsContainer=document.createElement("div");
C.setFullscreenQuickActions(I.quickActionButtonsContainer);var y=function(){return I.quickActionsViewModel().quickActionButtons||[]},k=_.lh(I.quickActionButtonsContainer,function(){return _.P(G3L,{data:y})});
I.addOnDisposeCallback(function(){C.setFullscreenQuickActions(void 0);k()})}},AWR=function(I,C){if(!I.playerOverlayVideoDetailsRendererContainer){I.playerOverlayVideoDetailsRendererContainer=document.createElement("div");
C.setPlayerOverlayVideoDetailsRenderer(I.playerOverlayVideoDetailsRendererContainer);var y=_.lh(I.playerOverlayVideoDetailsRendererContainer,function(){return _.P(YiY,{data:I.playerOverlayVideoDetailsRenderer})});
I.addOnDisposeCallback(function(){C.setPlayerOverlayVideoDetailsRenderer(void 0);y()})}};var Gq=function(I){_.LL.call(this);var C=this;this.JSC$20158_watchApi=I;this.JSC$20158_miniplayerActive=this.isFullscreen=this.shouldShowFullerscreenEdu=this.fullerscreenEduButtonClickedThisPlayback=this.fullerscreenEduButtonShownThisPlayback=!1;I=_.rf(_.Hg(),_.lO,function(y){g_R(C,y)});
this.addOnDisposeCallback(I);I=_.rf(_.Hg(),_.XK,function(y){C.onWatchScroll(y)});
this.addOnDisposeCallback(I);_.V("kevlar_watch_while_v2")&&(I=_.rf(_.Hg(),_.GL,function(y){v_S(C,y)}),this.addOnDisposeCallback(I));
Wpj(this);da8(this);xaP();this.onWatchScroll(_.XK(_.Hg().getState()));_.g5("START_IN_FULL_WINDOW_MODE")&&this.JSC$20158_watchApi.dispatchEvent("yt-set-fullerscreen-styles")};
_.R(Gq,_.LL);var Wpj=function(I){I.JSC$20158_watchApi.registerActionHandler("yt-fullscreen-change-action",function(C){var y=jU(_.Hg().getState());C&&!y||_.Hg().dispatch(_.yE({type:"SET_IS_WATCH_FULLSCREEN",payload:{isWatchFullscreen:!!C}}))});
I.addOnDisposeCallback(function(){YM(I.JSC$20158_watchApi,"yt-fullscreen-change-action")})},da8=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20158_watchApi.playerApi,2);C=k.yieldResult;y=function(){I.onFullerscreenEduClicked()};
C.addEventListener("onFullerscreenEduClicked",y);I.addOnDisposeCallback(function(){C.removeEventListener("onFullerscreenEduClicked",y)});
_.oI(k)})},g_R=function(I,C){var y;
_.e(function(k){if(k.nextAddress==1)return I.isFullscreen=!!_.CA(),_.n(k,I.JSC$20158_watchApi.playerApi,2);y=k.yieldResult;I.JSC$20158_miniplayerActive||y.setFauxFullscreen(I.isFullscreen);if(C&&(I.JSC$20158_watchApi.focusOnPlayer(),!I.fullerscreenEduButtonShownThisPlayback)){I.fullerscreenEduButtonShownThisPlayback=!0;var F=_.Fk("yt-fullerscreen-edu-button-shown-count")||0;_.ky("yt-fullerscreen-edu-button-shown-count",F+1,31536E3);I.updateFullerscreenEduButtonSubtleModeState()}_.oI(k)})},v_S=function(I,
C){var y;
_.e(function(k){if(k.nextAddress==1)return I.JSC$20158_miniplayerActive=C,_.n(k,I.JSC$20158_watchApi.playerApi,2);y=k.yieldResult;y.setFauxFullscreen(!I.JSC$20158_miniplayerActive&&I.isFullscreen);_.oI(k)})};
Gq.prototype.onWatchScroll=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return _.V("external_fullscreen_with_edu")?_.n(F,C.JSC$20158_watchApi.playerApi,2):F.return();y=F.yieldResult;k=I<=0;C.shouldShowFullerscreenEdu!==k&&(C.shouldShowFullerscreenEdu=k,y.updateFullerscreenEduButtonVisibility(!C.shouldShowFullerscreenEdu));_.oI(F)})};
Gq.prototype.onFullerscreenEduClicked=function(){this.JSC$20158_watchApi.scrollWatchTo(186,!0);if(!this.fullerscreenEduButtonClickedThisPlayback){this.fullerscreenEduButtonClickedThisPlayback=!0;var I=_.Fk("yt-fullerscreen-edu-button-click-count")||0;_.ky("yt-fullerscreen-edu-button-click-count",I+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState()}};
Gq.prototype.updateFullerscreenEduButtonSubtleModeState=function(){var I=this,C,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return C=_.Fk("yt-fullerscreen-edu-button-click-count")||0,y=_.Fk("yt-fullerscreen-edu-button-shown-count")||0,k=_.s8("external_fullscreen_button_click_threshold"),F=_.s8("external_fullscreen_button_shown_threshold"),z=C>=k||y>=F,_.n(r,I.JSC$20158_watchApi.playerApi,2);c=r.yieldResult;c.updateFullerscreenEduButtonSubtleModeState(z);_.oI(r)})};
Gq.prototype.disposeInternal=function(){_.LL.prototype.disposeInternal.call(this);var I=_.CA();_.V("kevlar_exit_fullscreen_leaving_watch")&&I&&_.sN(I)};
var xaP=function(){if(_.V("web_watch_add_viewport_meta_tag")){var I=document.querySelector("meta[name=viewport]"),C=document.head;C&&!I&&(I=document.createElement("meta"),I.name="viewport",I.content="width=device-width, initial-scale=1.0, viewport-fit=cover",C.appendChild(I))}};var maB=function(I){_.LL.call(this);var C=this;this.JSC$20162_watchApi=I;this.jobId=0;this.pendingRequestId=void 0;var y=this.JSC$20162_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){qij(C)});
this.addOnDisposeCallback(function(){C.JSC$20162_watchApi.unsubscribeByKey(y)});
qij(this)};
_.R(maB,_.LL);var ZBY=function(I){_.b$.cancelJob(I.jobId);I.pendingRequestId=void 0},qij=function(I){ZBY(I);
var C=aqK(I.JSC$20162_watchApi.getWatchNextResponse());if(C){var y=250,k,F=(k=_.l(C,_.HZq))==null?void 0:k.initialDelayMs;_.V("web_watch_updated_metadata_server_initial_delay")&&F&&(y=F);I.jobId=_.b$.addLowPriorityJob(function(){return I.fetchUpdatedMetadata(C)},y)}};
maB.prototype.fetchUpdatedMetadata=function(I,C){var y=this,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x;return _.e(function(B){switch(B.nextAddress){case 1:C&&(k={continuation:C});if(!_.V("web_get_updated_metadata_fantasy_panel_continuation_params")){B.jumpTo(2);break}F=_.N().resolve(_.wp);z="PAsports_fantasy";return _.n(B,F.isVisible(z,!0),3);case 3:B.yieldResult&&(L=(r=(c=F).getUpdatePanelContinuationData)==null?void 0:(w=r.call(c,z))==null?void 0:w.updatePanelContinuationRequest)&&(k||(k={}),k.clientParams=
{panelContinuationParams:{panelContinuation:L}});case 2:D=_.N().resolve(_.Q0);if(!D)return _.GB(Error("im")),B.return();p={};y.pendingRequestId=p;return _.n(B,_.gh(D,I,k),4);case 4:Q=B.yieldResult;if(p!==y.pendingRequestId)return B.return();S=(X=Q)==null?void 0:(b=X.continuation)==null?void 0:b.timedContinuationData;((A=S)==null?0:A.continuation)&&((x=S)==null?0:x.timeoutMs)&&(y.jobId=_.b$.addLowPriorityJob(function(){return y.fetchUpdatedMetadata(I,S.continuation)},S.timeoutMs));
_.oI(B)}})};
maB.prototype.disposeInternal=function(){_.LL.prototype.disposeInternal.call(this);ZBY(this)};var BGY=_.BO(function(I){var C=_.uk(function(){var k=I.data().videoId;if(I.active())k=_.IQ(k),_.N().resolve(_.ID).resolveCommand(k);else{var F=I.playerApi(),z=F.getAvailableAudioTracks(),c,r,w=(c=I.sourceVideoConfig().audioTracks)==null?void 0:(r=c.find(function(L){return L.isDefaultForSource}))==null?void 0:r.id;
if(z=z.find(function(L){return L.getLanguageInfo().getId()===w}))F.setAudioTrack(z,!0),F.setCompositeParam({activeVideoId:k}),I.setActiveSourceId(k)}}),y={};
return _.P("ytw-composite-source-video-overlay",{class:_.sZ("ytwCompositeSourceVideoOverlayHost",(y.ytwCompositeSourceVideoOverlayActive=I.active,y.ytwCompositeSourceVideoOverlayInteracting=I.interacting,y)),style:_.cP({left:function(){var k;return((k=I.data().topLeftCornerX)!=null?k:0)*100+"%"},
top:function(){var k;return((k=I.data().topLeftCornerY)!=null?k:0)*100+"%"},
width:function(){var k;return((k=I.data().width)!=null?k:0)*100+"%"},
height:function(){var k;return((k=I.data().height)!=null?k:0)*100+"%"}}),
"on:click":C},_.P("div",{class:"ytwCompositeSourceVideoOverlayOutline"}))},"Pi");var E_B=_.BO(function(I){var C=_.T(_.TN(function(){var r,w=(r=I.data().sources)==null?void 0:r.find(function(L){return L.isActive});
if(w)return w.videoId})),y=C.next().value,k=C.next().value;
C=_.T(_.c4(!1,void 0,"WI4BUb"));var F=C.next().value,z=C.next().value;C=_.uk(function(){z(!0)});
var c=_.uk(function(){z(!1)});
return _.P("ytw-composite-video-overlay-renderer",{class:"ytwCompositeVideoOverlayRendererHost","on:mouseover":C,"on:mouseout":c},_.P(_.Dx,{cond:function(){return I.data().sources},
then:function(r){return _.P(_.pH,{each:r},function(w){return _.P(BGY,{data:w,active:function(){return w.videoId===y()},
setActiveSourceId:k,interacting:F,playerApi:I.playerApi,sourceVideoConfig:function(){return M6B(I.compositeVideoConfig(),w.videoId)}})})}}))},"Qi");var HBH=function(I){_.LL.call(this);this.JSC$20178_watchApi=I;I=_.T(_.c4({},void 0,"gyAjHd"));this.compositeVideoOverlayRenderer=I.next().value;this.setCompositeVideoOverlayRenderer=I.next().value;I=_.T(_.c4({},void 0,"U5hcq"));this.compositeVideoConfig=I.next().value;this.setCompositeVideoConfig=I.next().value;hRY(this);UaR(this)};
_.R(HBH,_.LL);var hRY=function(I){var C=I.JSC$20178_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){UaR(I)});
I.addOnDisposeCallback(function(){I.JSC$20178_watchApi.unsubscribeByKey(C)})},thY=function(I){var C;
return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20178_watchApi.playerApi,2);C=y.yieldResult;C.setCompositeVideoOverlayRendererComponent(I.container);_.oI(y)})},JWK=function(I){var C;
return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20178_watchApi.playerApi,2);C=y.yieldResult;C.setCompositeVideoOverlayRendererComponent(void 0);_.oI(y)})},OBY=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20178_watchApi.playerApi,2);C=k.yieldResult;I.container=document.createElement("div");y=_.lh(I.container,function(){return _.P(E_B,{data:I.compositeVideoOverlayRenderer,compositeVideoConfig:I.compositeVideoConfig,playerApi:C})});
I.addOnDisposeCallback(y);_.oI(k)})},UaR=function(I){var C,y,k,F,z,c,r,w;
_.e(function(L){return L.nextAddress==1?(C=I.JSC$20178_watchApi.getPlayerResponse(),z=_.l((y=C)==null?void 0:(k=y.overlay)==null?void 0:(F=k.playerControlsOverlayRenderer)==null?void 0:F.compositeVideoOverlay,BEM),w=(c=C)==null?void 0:(r=c.playerConfig)==null?void 0:r.compositeVideoConfig,z&&I.setCompositeVideoOverlayRenderer(z),w&&I.setCompositeVideoConfig(w),z&&w?I.container?L.jumpTo(6):_.n(L,OBY(I),6):apj(I)?_.n(L,JWK(I),0):L.jumpTo(0)):apj(I)?L.jumpTo(0):_.n(L,thY(I),0)})},apj=function(I){var C;
return!((C=I.container)==null||!C.parentElement)};
HBH.prototype.disposeInternal=function(){apj(this)&&JWK(this);_.LL.prototype.disposeInternal.call(this)};var oa8=function(I){_.LL.call(this);var C=this;this.JSC$20184_watchApi=I;var y=this.JSC$20184_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){var k=C.JSC$20184_watchApi.getPlayerResponse();if(k){var F,z;if(k=_.l((F=k.endscreen)==null?void 0:(z=F.endscreenRenderer)==null?void 0:z.hideButton,_.$A)){var c;(c=C.setEndscreenHideButton)==null||c.call(C,k);MhL(C)}}});
this.addOnDisposeCallback(function(){C.JSC$20184_watchApi.unsubscribeByKey(y)});
I=_.T(_.c4({},void 0,"PPHRb"));this.endscreenHideButton=I.next().value;this.setEndscreenHideButton=I.next().value;IaK(this);CDy(this);sBj(this)};
_.R(oa8,_.LL);var MhL=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return I.creatorEndscreenHideButtonContainer?k.return():_.n(k,I.JSC$20184_watchApi.playerApi,2);C=k.yieldResult;I.creatorEndscreenHideButtonContainer=document.createElement("div");_.mc(I.creatorEndscreenHideButtonContainer,!1);C.setCreatorEndscreenHideButton(I.creatorEndscreenHideButtonContainer);y=_.lh(I.creatorEndscreenHideButtonContainer,function(){return _.P(_.RY,{data:I.endscreenHideButton,useOutlinedIcon:!0})});
I.addOnDisposeCallback(function(){y();C.setCreatorEndscreenHideButton(void 0)});
_.oI(k)})},IaK=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20184_watchApi.playerApi,2);C=k.yieldResult;y=function(){I.creatorEndscreenHideButtonContainer&&_.mc(I.creatorEndscreenHideButtonContainer,!0)};
C.addEventListener("endscreenelementshown",y);I.addOnDisposeCallback(function(){C.removeEventListener("endscreenelementshown",y)});
_.oI(k)})},CDy=function(I){var C=function(){I.creatorEndscreenHideButtonContainer&&_.mc(I.creatorEndscreenHideButtonContainer,!1)},y=I.JSC$20184_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",C),k=I.JSC$20184_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",C);
I.addOnDisposeCallback(function(){I.JSC$20184_watchApi.unsubscribeByKey(y);I.JSC$20184_watchApi.unsubscribeByKey(k)})},sBj=function(I){I.JSC$20184_watchApi.registerActionHandler("yt-change-creator-endscreen-visibility-command",function(C){var y=_.l(C,WJL);
I.JSC$20184_watchApi.playerApi.then(function(k){k==null||k.setCreatorEndscreenVisibility(!!y.hide)})});
I.addOnDisposeCallback(function(){YM(I.JSC$20184_watchApi,"yt-change-creator-endscreen-visibility-command")})};var ktB=function(I){_.LL.call(this);this.JSC$20190_watchApi=I;yIy(this)};
_.R(ktB,_.LL);var yIy=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20190_watchApi.playerApi,2);C=k.yieldResult;y=function(F){_.Hg().dispatch(_.yE({type:"SET_IS_WATCH_RETRO_MODE",payload:{isWatchRetroMode:F}}))};
C.addEventListener("onRetroModeChanged",y);I.addOnDisposeCallback(function(){C.removeEventListener("onRetroModeChanged",y)});
_.oI(k)})};var Gs=0,Y2=0,fg=0;var F$j=new Map([["10",6E5],["15",9E5],["20",12E5],["30",18E5],["45",27E5],["60",36E5]]),fj=function(I){_.LL.call(this);this.JSC$20203_watchApi=I;this.selectedOption="Off";this.pauseAutonavPlayback=!1;this.adjustmentsCount=this.presetPauseSchedulerId=this.presetFadeSchedulerId=0;uxL(this)};
_.R(fj,_.LL);
var uxL=function(I){var C,y,k;_.e(function(F){if(F.nextAddress==1)return _.n(F,I.JSC$20203_watchApi.playerApi,2);C=F.yieldResult;if(I.isDisposed())return F.return();I.sessionStorage=_.cPM("yt-sleep-timer");I.sessionStorage||_.SN(new _.ph("SessionStorage for Sleep Timer is undefined."));((y=I.sessionStorage)==null?void 0:y.get("yt-sleep-timer"))==="true"&&(TEK(),(k=I.sessionStorage)==null||k.remove("yt-sleep-timer"),C.syncVolume());zUR(I,C);TVR(I,C);cIY(I,C);_.oI(F)})},zUR=function(I,C){var y=function(L){I.onSleepTimerSettingsChanged(L,
C)},k=function(L){I.onPlayerStateChange(L,C)},F=function(){I.onLoopChange(C)},z=function(){I.onCloseMiniplayer(C)},c=function(){kHy(C,(0,_.JY)(),cRM(C),I.selectedOption==="End of video",C.getPlayerState()!==1)},r=function(){I.onSeekComplete(C)},w=function(){_.b$.cancelJob(Y2);
var L=C.getCurrentTime()>=C.getDuration(),D=I.selectedOption==="End of video"||I.selectedOption==="End of playlist"&&!syy(I.playlistId);L&&D&&eUB(I,C)};
C.addEventListener("onSleepTimerSettingsChanged",y);C.addEventListener("onLoopChange",F);C.addEventListener("onLoopRangeChange",F);C.addEventListener("onStateChange",k);C.addEventListener("onCloseMiniplayer",z);C.addEventListener("onSleepTimerFeatureAvailable",c);C.addEventListener("SEEK_COMPLETE",r);C.addEventListener("onAdStart",w);I.addOnDisposeCallback(function(){C.removeEventListener("onSleepTimerSettingsChanged",y);C.removeEventListener("onLoopChange",F);C.removeEventListener("onLoopRangeChange",
F);C.removeEventListener("onStateChange",k);C.removeEventListener("onCloseMiniplayer",z);C.removeEventListener("onSleepTimerFeatureAvailable",c);C.removeEventListener("SEEK_COMPLETE",r);C.removeEventListener("onAdStart",w)})},TVR=function(I,C){var y=I.JSC$20203_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){a:{var k=C.getVideoData().video_id,F,z=(F=IKK(I.JSC$20203_watchApi))==null?void 0:F.playlistId;
I.pauseAutonavPlayback&&(C.pauseVideo(),C.syncVolume(),I.pauseAutonavPlayback=!1);if(I.selectedOption==="End of video"&&k!==I.videoId)SY(I,C);else{if(I.selectedOption==="End of playlist"){F=syy(I.playlistId);if(z!==I.playlistId){SY(I,C);break a}F?F&&rIS(I,C):imy(I,C)}I.videoId=k;I.playlistId=z}}});
I.addOnDisposeCallback(function(){I.JSC$20203_watchApi.unsubscribeByKey(y)})},cIY=function(I,C){var y=_.N().resolve(_.VL),k=_.rf(y,_.eSW,function(z){z&&I.selectedOption!=="Off"&&SY(I,C)}),F=_.rf(y,jU,function(z){var c,r;
return _.e(function(w){if(w.nextAddress==1)return _.n(w,_.ck().navigationFinishPromise,2);c=!_.hru();r=_.N().resolve(_.WJ).isMiniplayerActive();z||!bO(I.selectedOption)||r||c||SY(I,C);_.oI(w)})});
y=_.rf(y,function(z){return z.entities.playlistLoopStateEntity||{}},function(z){z=z===void 0?{}:z;
var c=CdY(I.JSC$20203_watchApi);if(c){var r;((r=z[c])==null?void 0:r.state)==="PLAYLIST_LOOP_STATE_ALL"&&bO(I.selectedOption)&&SY(I,C)}});
I.addOnDisposeCallback(k);I.addOnDisposeCallback(y);I.addOnDisposeCallback(F)};
fj.prototype.onSleepTimerSettingsChanged=function(I,C){switch(I){case "Off":this.selectedOption!=="Off"&&SY(this,C);break;case "End of video":case "End of playlist":wdS(this,I,C);break;default:wdS(this,I,C,F$j.get(I))}};
fj.prototype.onLoopChange=function(I){(I.getLoopVideo()||I.getLoopRange())&&bO(this.selectedOption)&&SY(this,I)};
fj.prototype.onCloseMiniplayer=function(I){bO(this.selectedOption)&&SY(this,I)};
var wdS=function(I,C,y,k){naY(I,y);I.selectedOption=C;I.videoId=y.getVideoData().video_id;I.playlistId="";var F;(F=I.sessionStorage)==null||F.set("yt-sleep-timer","true");I.adjustmentsCount++;kHy(y,(0,_.JY)(),cRM(y),I.selectedOption==="End of video");if(I.selectedOption==="End of video")imy(I,y),PDK(I,y);else if(I.selectedOption==="End of playlist"){PDK(I,y);var z,c;I.playlistId=(c=(z=IKK(I.JSC$20203_watchApi))==null?void 0:z.playlistId)!=null?c:"";syy(I.playlistId)||imy(I,y)}else k&&(I.presetFadeSchedulerId=
_.LM(_.b$,function(){uuM(y,15E3)},k-15E3),I.presetPauseSchedulerId=_.LM(_.b$,function(){eUB(I,y)},k),FJH(y,(0,_.JY)(),k))},eUB=function(I,C){if(jU(_.N().resolve(_.VL).getState())){var y={dismissDialogEndpoint:{}};
var k={commandExecutorCommand:{commands:[y,{watchPlayerOverflowMenuCommand:{openMenuItemKey:"menu_item_sleep_timer"}}]}};y={buttonViewModel:{title:_.PQ("CLOSE"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_FILLED",onTap:{innertubeCommand:y}}};k={buttonViewModel:{title:_.PQ("SLEEP_TIMER_ADD_TIME_LABEL"),style:"BUTTON_VIEW_MODEL_STYLE_MONO",type:"BUTTON_VIEW_MODEL_TYPE_TONAL",onTap:{innertubeCommand:k}}};var F={dialogHeaderViewModel:{headline:{content:_.PQ("SLEEP_TIMER_ENDED_TITLE")}}},
z={basicContentViewModel:{paragraphs:[{text:{content:_.PQ("SLEEP_TIMER_ENDED_TEXT")}}]}};y={showDialogCommand:{panelLoadingStrategy:{inlineContent:{dialogViewModel:{header:F,content:z,footer:{panelFooterViewModel:{primaryButton:y,secondaryButton:k,shouldHideDivider:!0}}}}}}};_.N().resolve(_.ID).resolveCommand(y,{form:{element:I}})}else TEK();L$K(I,!1);DOK(I,C);C.pauseVideo();_.ho.getInstance().getState()===2&&C.getPlayerState()===5&&(I.pauseAutonavPlayback=!0)},SY=function(I,C){L$K(I,!0);
DOK(I,C);TEK()},DOK=function(I,C){naY(I,C);
I.selectedOption="Off";I.videoId="";I.playlistId="";I.adjustmentsCount=0;var y;(y=I.sessionStorage)==null||y.remove("yt-sleep-timer");_.b$.cancelJob(Gs);C.resetSleepTimerMenuSettings()},L$K=function(I,C){C={timer_length_adjustment_times_during_session:I.adjustmentsCount-1,
is_session_cancelled:C};switch(I.selectedOption){case "Off":C.option_type="SLEEP_TIMER_OPTION_TYPE_OFF";break;case "End of video":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_VIDEO";break;case "End of playlist":C.option_type="SLEEP_TIMER_OPTION_TYPE_END_OF_PLAYLIST";break;default:C.option_type="SLEEP_TIMER_OPTION_TYPE_FIXED_MINUTES_DURATION",C.option_duration_in_minutes=F$j.get(I.selectedOption)/6E4}_.b2("sleepTimerSessionFinishEvent",C)};
fj.prototype.onPlayerStateChange=function(I,C){I===1?kHy(C,(0,_.JY)(),cRM(C),this.selectedOption==="End of video"):I===0?(_.b$.cancelJob(Y2),C.setVideoTimeLeft(yRS(0,0))):I===2&&_.b$.cancelJob(Y2);this.selectedOption==="End of video"?I===0?eUB(this,C):I===2&&zuj(C):this.selectedOption!=="End of playlist"||syy(this.playlistId)||(I===0?eUB(this,C):I===2&&zuj(C))};
fj.prototype.onSeekComplete=function(I){I.getPlayerState()===2&&kHy(I,(0,_.JY)(),cRM(I),this.selectedOption==="End of video",!0)};
fj.prototype.onCueRangeEnter=function(I,C){I==="sleep-timer-fade-audio"&&uuM(C,(C.getDuration()-C.getProgressState().current)*1E3)};
fj.prototype.onCueRangeExit=function(I,C){I==="sleep-timer-fade-audio"&&C.getPlayerState()!==0&&zuj(C,!0)};
var imy=function(I,C){C.addCueRange("sleep-timer-fade-audio",C.getDuration()-15,C.getDuration());C.addEventListener("onCueRangeEnter",function(y){I.onCueRangeEnter(y,C)});
C.addEventListener("onCueRangeExit",function(y){I.onCueRangeExit(y,C)})},rIS=function(I,C){C.removeCueRange("sleep-timer-fade-audio");
C.removeEventListener("onCueRangeEnter",function(y){I.onCueRangeEnter(y,C)});
C.removeEventListener("onCueRangeExit",function(y){I.onCueRangeExit(y,C)})},naY=function(I,C){bO(I.selectedOption)?rIS(I,C):(_.b$.cancelJob(I.presetPauseSchedulerId),_.b$.cancelJob(I.presetFadeSchedulerId),I.presetPauseSchedulerId=0,I.presetFadeSchedulerId=0);
zuj(C,!0)},PDK=function(I,C){C.setLoop(!1);
C.setLoopVideo(!1);C.setLoopRange(null);(I=CdY(I.JSC$20203_watchApi))&&_.N().resolve(_.VL).dispatch(_.wJ("playlistLoopStateEntity",I,{key:I,state:"PLAYLIST_LOOP_STATE_NONE"}))};var V3Y=function(I){_.LL.call(this);this.JSC$20206_watchApi=I;pdH(this);QBy(this);NVS(this);I=I.getRoot();if(I.is==="ytd-watch-flexy"||I.is==="ytd-watch-grid")I.onTheaterReduxValueUpdate(this.getState());this.getState()&&_.V6y();_.V("web_watch_log_theater_mode_cookie_state")&&_.wC.get("wide","0")==="1"&&_.nLX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_USER_HAS_THEATER_MODE_COOKIE_ENABLED")};
_.R(V3Y,_.LL);var pdH=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20206_watchApi.playerApi,2);C=k.yieldResult;y=function(F){jBP(I,!!F)};
C.addEventListener("SIZE_CLICKED",y);I.addOnDisposeCallback(function(){C.removeEventListener("SIZE_CLICKED",y)});
_.oI(k)})},QBy=function(I){I.JSC$20206_watchApi.registerActionHandler("yt-toggle-theater-mode",function(C,y){jBP(I,C,y===void 0?!0:y)});
I.addOnDisposeCallback(function(){YM(I.JSC$20206_watchApi,"yt-toggle-theater-mode")})};
V3Y.prototype.getState=function(){return _.pC(_.Hg().getState())};
var jBP=function(I,C,y){y=y===void 0?!0:y;var k,F,z,c=_.V("enable_player_resize_transition")&&!!I.JSC$20206_watchApi.getWatchNextResponse()&&!((k=I.JSC$20206_watchApi.getWatchNextResponse())==null?0:(F=k.contents)==null?0:(z=F.twoColumnWatchNextResults)==null?0:z.conversationBar);_.zkB(function(){_.Hg().dispatch(_.yE({type:"SET_IS_THEATER_MODE",payload:{isTheaterMode:C}}));_.V("theater_mode_scroll_to_top_killswitch")||I.JSC$20206_watchApi.scrollWatchTo(0,!1);_.CA()&&_.V("external_fullscreen")&&_.sN(document.documentElement);
NVS(I);y&&_.nh("wide",C?"1":"0",-1);_.Fe(I.JSC$20206_watchApi.getRoot(),"yt-close-popup-action",["yt-tooltip-renderer"]);I.JSC$20206_watchApi.dispatchEvent("yt-set-theater-mode-enabled",{enabled:C});C&&_.V6y()},{shouldWrap:c})},NVS=function(I){var C;
_.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20206_watchApi.playerApi,2);C=y.yieldResult;C.setSizeStyle(!0,I.getState());_.oI(y)})};var $OR=function(I){_.LL.call(this);var C=this;this.playerApi=I;this.timeToPanelSyncKeyMap={};var y;if(I==null?0:(y=I.isReady)==null?0:y.call(I)){y=_.rf(_.N().resolve(_.VL),function(F){return F.entities.timedMarkersListSyncEntity||{}},function(F,z){F=F===void 0?{}:F;
z=z===void 0?{}:z;for(var c=_.T(Object.keys(z)),r=c.next();!r.done;r=c.next())r=r.value,F[r]!==z[r]&&laL(C,z[r]);z=_.T(Object.keys(F));for(c=z.next();!c.done;c=z.next())c=c.value,r=F[c],C.timeToPanelSyncKeyMap[c]&&XdK(C,r)});
this.addOnDisposeCallback(y);var k=function(F){C.onCueRangeEnter(F)};
I.addEventListener("onCueRangeEnter",k);this.addOnDisposeCallback(function(){var F;(F=I.removeEventListener)==null||F.call(I,"onCueRangeEnter",k)})}};
_.R($OR,_.LL);
var XdK=function(I,C){var y,k;if((y=I.playerApi)==null?0:(k=y.isReady)==null?0:k.call(y)){var F;if((y=C==null?void 0:(F=C.timedListData)==null?void 0:F.sections)&&C!=null&&C.key)for(F=_.T(y),y=F.next();!y.done;y=F.next())if(y=y.value,y.timedSyncDataList&&y.sectionId)for(k=0;k<y.timedSyncDataList.length;k++){var z=y.timedSyncDataList[k];z.syncItemId&&I.playerApi.addCueRange(y.sectionId+"_"+C.key+"_"+z.syncItemId,Number(z.videoTimeMs)/1E3,k===y.timedSyncDataList.length-1?0x8000000000000:Number(y.timedSyncDataList[k+
1].videoTimeMs)/1E3)}}},laL=function(I,C){var y,k;
if((y=I.playerApi)==null?0:(k=y.isReady)==null?0:k.call(y)){var F;if((y=C==null?void 0:(F=C.timedListData)==null?void 0:F.sections)&&C!=null&&C.key)for(F=_.T(y),y=F.next();!y.done;y=F.next())if(y=y.value,y.timedSyncDataList&&y.sectionId){k=_.T(y.timedSyncDataList);for(var z=k.next();!z.done;z=k.next())z=z.value,z.syncItemId&&I.playerApi.removeCueRange(y.sectionId+"_"+C.key+"_"+z.syncItemId)}}};
$OR.prototype.onCueRangeEnter=function(I){for(var C=_.T(Object.keys(this.timeToPanelSyncKeyMap)),y=C.next();!y.done;y=C.next()){y=y.value;var k=_.T(I.split("_"+y+"_")),F=k.next().value;k=k.next().value;if(F&&k){I=_.N().resolve(_.VL);C=this.timeToPanelSyncKeyMap[y];var z=_.frm(I.getState(),C);y=RUP(y,F,k);if(y===-1)break;y={activeSyncId:k,activeItemIndex:y,activeSectionInfo:{sectionIdentifier:F}};z?I.dispatch(_.bY("markersEngagementPanelSyncEntity",C,y)):I.dispatch(_.wJ("markersEngagementPanelSyncEntity",
C,Object.assign({},{key:C},y)));break}}};
var RUP=function(I,C,y){var k=_.N().resolve(_.VL),F,z;I=(F=DvP(k.getState(),I))==null?void 0:(z=F.timedListData)==null?void 0:z.sections;if(!I)return-1;F=0;z=_.T(I);for(I=z.next();!I.done;I=z.next()){I=I.value;k=I.timedSyncDataList||[];if(I.sectionId===C)return C=k.findIndex(function(c){return c.syncItemId===y}),C===-1?C:F+C;
F+=k.length}return-1};var GtK=function(I){_.LL.call(this);var C=this;this.JSC$20218_watchApi=I;this.unresolvedCommands=[];this.JSC$20218_watchApi.registerActionHandler("yt-update-timed-markers-sync-observer-command",function(y){bmR(C,y)});
this.addOnDisposeCallback(function(){YM(C.JSC$20218_watchApi,"yt-update-timed-markers-sync-observer-command")});
YDR(this)};
_.R(GtK,_.LL);var YDR=function(I){var C;_.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20218_watchApi.playerApi,2);C=y.yieldResult;if(I.isDisposed())return y.return();I.timedSyncObserver=new $OR(C);I.unresolvedCommands.length&&(I.unresolvedCommands.forEach(function(k){return bmR(I,k)}),I.unresolvedCommands=[]);
_.kq(I,I.timedSyncObserver);_.oI(y)})},bmR=function(I,C){if(I.timedSyncObserver){var y=_.l(C,x_L);
if(y&&y.timedSyncEntityKey&&y.panelSyncEntityKey){I=I.timedSyncObserver;C=y.timedSyncEntityKey;var k=y.panelSyncEntityKey;y=!!y.isEnabled;y=y===void 0?!0:y;var F=_.N().resolve(_.VL);F=DvP(F.getState(),C);y?I.timeToPanelSyncKeyMap[C]||(I.timeToPanelSyncKeyMap[C]=k,XdK(I,F)):(delete I.timeToPanelSyncKeyMap[C],laL(I,F))}}else I.unresolvedCommands.push(C)};var faP=_.BO(function(I){var C=I.data,y=I.maybeLogSmartSkipClientData,k=_.Es();_.ql(k,function(){return C().rendererContext},{onTap:function(D,p){p({disableClickTracking:!0})}});
var F=null,z=null,c=_.V("web_enable_auto_focus_for_timely_action_button"),r=function(){F=document.activeElement},w=function(){C().smartSkipMetadata&&(F=document.activeElement,_.c6R(function(){return z}))},L=function(D){if(C().smartSkipMetadata&&(!D||D.key!=="Enter")){F&&F.isConnected&&(_.c6R(function(){return F}),F=null);
var p;(p=z)==null||p.blur()}};
I=_.uk(function(){y==null||y(!0,C());return!1});
_.a0(k,{visibilityCallback:function(D){if(c)D?z&&C().smartSkipMetadata&&(w(),document.addEventListener("focusin",r)):(document.removeEventListener("focusin",r),L());else if(D&&_.V("web_ephemeral_actions")){D=_.Wj(C().rendererContext);var p=Number(C().maxVisibleDurationMilliseconds),Q,X=(Q=_.l(C().rendererContext,_.mO))==null?void 0:Q.label;D&&p&&X&&(Q={label:X,command:D,durationMs:p},_.N().resolve(_.yb).enqueue(Q))}},
showOption:{calledOnce:!1,state:"visible"},hideOption:{calledOnce:!1,state:"hidden"}});_.X2(function(){if(c){var D;if((z=(D=k.value)==null?void 0:D.querySelector("button"))&&C().smartSkipMetadata){var p;(p=k.value)==null||p.addEventListener("keydown",L)}}});
_.$4(function(){c&&(z&&C().smartSkipMetadata&&z.removeEventListener("keydown",L),document.removeEventListener("focusin",r),L())});
return _.P("ytw-timely-action-view-model",{class:"ytwTimelyActionViewModelHost",el:k,"on:click":I},_.P(_.lY,{data:function(){return C().content}},{buttonViewModel:_.fM}))},"Ri");var SDL=_.BO(function(I){var C=I.data,y=I.playerApi,k=_.N().resolve(_.LNw);I=_.T(_.TN(function(){C()}));
var F=I.next().value,z=I.next().value,c=function(){return rRP(C(),F())},r=function(L,D){var p,Q,X=(p=_.l(D==null?void 0:D.rendererContext,_.qEK))==null?void 0:(Q=p.loggingDirectives)==null?void 0:Q.trackingParams;
if((D=D==null?void 0:D.smartSkipMetadata)&&D.loggingData&&(Q=D.loggingData,D=Q.algorithmId,p=Q.startMilliseconds,Q=Q.endMilliseconds,D&&p!==void 0&&Q!==void 0)){var b,S;L={smartSkipData:Object.assign({},{versionName:D,startMediaTimeMs:p,endMediaTimeMs:Q},L&&{userInteractionMediaTimeMs:(Math.floor(((b=_.hU())==null?void 0:(S=b.getPlayer())==null?void 0:S.getCurrentTime())||0)*1E3).toString()})};b=_.Si();var A;X&&(A=_.nv(X));b&&A&&_.UN(b,A,L)}},w=function(L,D){var p=rRP(C(),L);
if(p){var Q=_.l(p,SU),X;if(X=D)X=y(),p=_.l(p,SU),X=p!=null&&p.smartSkipMetadata?!(X==null?0:X.isSameMarkerTypeVisible((p==null?void 0:p.smartSkipMetadata.markerKey)||"")):!0;if(X){var b,S;(Q==null?0:(b=Q.smartSkipMetadata)==null?0:(S=b.loggingData)==null?0:S.isCounterfactual)||(r(!1,Q),z(L))}else D||F()!==L||z(void 0)}};
_.l0(function(){var L=C().timelyActions;if(L){L=_.T(L);for(var D=L.next();!D.done;D=L.next()){D=_.l(D.value,SU);var p=void 0;(p=D)!=null&&p.cueRangeId&&k.timelyActionsMap.set(D.cueRangeId,w)}_.$4(function(){k.timelyActionsMap.clear()})}});
return _.P("ytw-timely-actions-overlay-view-model",{class:"ytwTimelyActionsOverlayViewModelHost"},_.P(_.lY,{data:c},{timelyActionViewModel:function(L){return _.P(faP,{data:L.data,maybeLogSmartSkipClientData:function(){r(!0,_.l(c(),SU))}})}}))},"Si");var AIY=function(I){_.LL.call(this);this.JSC$20230_watchApi=I;I=_.T(_.c4({},void 0,"pLDp2"));this.timelyActionsOverlay=I.next().value;this.setTimelyActionsOverlay=I.next().value;K$Y(this)};
_.R(AIY,_.LL);var K$Y=function(I){var C,y,k,F;_.e(function(z){if(z.nextAddress==1)return gaK(I),vaK(I),I.timelyActionsContainer=document.createElement("div"),_.n(z,I.JSC$20230_watchApi.playerApi,2);C=z.yieldResult;(k=(y=C).insertTimelyActionUi)==null||k.call(y,I.timelyActionsContainer);F=_.lh(I.timelyActionsContainer,function(){return _.P(SDL,{data:I.timelyActionsOverlay,playerApi:C})});
I.addOnDisposeCallback(F);_.oI(z)})},vaK=function(I){var C=I.JSC$20230_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gaK(I)});
I.addOnDisposeCallback(function(){I.JSC$20230_watchApi.unsubscribeByKey(C)})},gaK=function(I){var C=I.JSC$20230_watchApi.getWatchNextResponse();
if(C){var y,k;if(C=_.l((y=C.playerOverlays)==null?void 0:(k=y.playerOverlayRenderer)==null?void 0:k.timelyActionsOverlayViewModel,qyY)){var F;(F=I.setTimelyActionsOverlay)==null||F.call(I,C)}}};var dOY=function(I){_.LL.call(this);this.JSC$20234_watchApi=I;W$Y(this)};
_.R(dOY,_.LL);var W$Y=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20234_watchApi.playerApi,2);C=k.yieldResult;y=function(F){_.FW.instance.resolveCommand({openPopupAction:{popup:{notificationActionRenderer:_.l(F,_.saP)},popupType:"TOAST"}})};
C.addEventListener("onYtShowToast",y);I.addOnDisposeCallback(function(){C.removeEventListener("onYtShowToast",y)});
_.oI(k)})};var xOP=!1,BVB=function(I){_.LL.call(this);this.JSC$20237_watchApi=I;this.fullscreen=this.theater=!1;qDL(this);mO8(this);ZmR(this)};
_.R(BVB,_.LL);var ZmR=function(I){var C,y,k;_.e(function(F){if(F.nextAddress==1)return _.n(F,I.JSC$20237_watchApi.playerApi,2);C=F.yieldResult;if(I.isDisposed())return F.return();y=I.JSC$20237_watchApi.getElement("CINEMATICS");if(!y)return F.return();I.JSC$20237_cinematicController=new _.sY(y,C);_.kq(I,I.JSC$20237_cinematicController);_.l2Y(I.JSC$20237_cinematicController);Ea8(I,_.ev9());k=I.JSC$20237_cinematicController.subscribe("CINEMATICS_ALLOWED_CHANGED",function(z){hUK(I,z)});
I.addOnDisposeCallback(function(){I.JSC$20237_watchApi.unsubscribeByKey(k)});
UOP(I);hUK(I,I.JSC$20237_cinematicController.isAllowed());HmL(I,I.fullscreen,I.theater);t3L(I);_.oI(F)})},qDL=function(I){var C=I.JSC$20237_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){UOP(I)});
I.addOnDisposeCallback(function(){I.JSC$20237_watchApi.unsubscribeByKey(C)})},mO8=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20237_watchApi.playerApi,2);C=k.yieldResult;y=function(F){Ea8(I,F)};
C.addEventListener("cinematicSettingsToggleChange",y);I.addOnDisposeCallback(function(){C.removeEventListener("cinematicSettingsToggleChange",y)});
_.oI(k)})},UOP=function(I){var C=I.JSC$20237_watchApi.getWatchNextResponse(),y;
C=_.l(C==null?void 0:(y=C.pageVisualEffects)==null?void 0:y[0],_.Pd);var k;(k=I.JSC$20237_cinematicController)==null||_.$ZY(k,C)},Ea8=function(I,C){var y;
(y=I.JSC$20237_cinematicController)==null||_.X6Y(y,C);JIM(I)},hUK=function(I,C){var y;
_.e(function(k){if(k.nextAddress==1)return _.V("kevlar_watch_cinematics_invisible")&&(C=!1),_.n(k,I.JSC$20237_watchApi.playerApi,2);y=k.yieldResult;y.updateCinematicSettings(C);JIM(I);_.oI(k)})},t3L=function(I){var C=_.pA();
if(_.V("kevlar_measure_ambient_mode_idle")&&!C.getFlag(192)&&!xOP){xOP=!0;var y=_.NU(_.b$,function(){_.N().resolve(_.zYP).start(1E4)},5E3);
I.addOnDisposeCallback(function(){_.b$.cancelJob(y);_.N().resolve(_.zYP).stop()})}},HmL=function(I,C,y){I.fullscreen=C;
I.theater=y;var k;(k=I.JSC$20237_cinematicController)==null||k.setFullscreen(I.fullscreen,I.theater);if(_.V("web_cinematics_pausing")&&!document.documentElement.hasAttribute("dark"))if(I.theater||I.fullscreen){var F;(F=I.JSC$20237_cinematicController)!=null&&(F=F.currentCinematicEffect)!=null&&(F=F.storyboardManager,F.paused=!1,_.uFK(F),F.update())}else(I=I.JSC$20237_cinematicController)==null||(F=I.currentCinematicEffect)!=null&&F.pause()},JIM=function(I){if(_.V("web_cinematic_theater_mode")||_.V("web_cinematic_fullscreen")){var C;
I.JSC$20237_watchApi.getRoot().toggleCinematicsActive(!((C=I.JSC$20237_cinematicController)==null||!C.isEnabled()))}};var IFH=function(I){_.LL.call(this);var C=this;this.JSC$20240_watchApi=I;this.commentsReady=!1;this.setCommentsJobId=0;I=_.rf(_.Hg(),_.XK,function(){OmK(C)});
this.addOnDisposeCallback(I);var y=this.JSC$20240_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){aaj(C)}),k=this.JSC$20240_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){aaj(C)});
this.addOnDisposeCallback(function(){C.JSC$20240_watchApi.unsubscribeByKey(y);C.JSC$20240_watchApi.unsubscribeByKey(k)});
var F=function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&M3j(C,"false")};
this.JSC$20240_watchApi.getRoot().addEventListener("yt-page-data-will-update",F);this.addOnDisposeCallback(function(){C.JSC$20240_watchApi.getRoot().removeEventListener("yt-page-data-will-update",F)});
aaj(this)};
_.R(IFH,_.LL);var aaj=function(I){I.commentsReady=!1;_.b$.cancelJob(I.setCommentsJobId);I.setCommentsJobId=_.NU(_.b$,function(){OmK(I)},1E3)},OmK=function(I){if(!I.commentsReady){_.Sr("cmi");
_.b$.cancelJob(I.setCommentsJobId);var C,y,k,F,z=(C=I.JSC$20240_watchApi.getWatchNextResponse())==null?void 0:(y=C.contents)==null?void 0:(k=y.twoColumnWatchNextResults)==null?void 0:(F=k.results)==null?void 0:F.results.contents;C=void 0;if(z&&z.length)for(z=_.T(z),y=z.next();!y.done;y=z.next())if(y=y.value,F=k=void 0,((k=y)==null?void 0:(F=k.itemSectionRenderer)==null?void 0:F.sectionIdentifier)==="comment-item-section"){_.V("web_watch_provide_undefined_comments")?C=y.itemSectionRenderer:I.JSC$20240_watchApi.provideRenderingData("COMMENTS",
y.itemSectionRenderer);M3j(I,"true");break}_.V("web_watch_provide_undefined_comments")&&I.JSC$20240_watchApi.provideRenderingData("COMMENTS",C);I.commentsReady=!0;I.JSC$20240_watchApi.dispatchEvent("yt-watch-comments-ready")}},M3j=function(I,C){var y;
(y=I.JSC$20240_watchApi.getElement("COMMENTS"))==null||y.setAttribute("canScheduleJobs",C)};var kzP;_.CQL=["engagement-panel-ads"];
kzP=function(I){_.LL.call(this);var C=this;this.JSC$20243_watchApi=I;this.providePlayerJobId=this.provideWatchNextJobId=this.provideRichGridJobId=0;this.directlyProvideComments=_.V("swatcheroo_directly_provide_comments");this.provideWatchNextSecondaryResults=_.V("web_watch_provide_secondary_results_renderer");this.swatcherooProvideAllDataOnScheduledJob=_.V("swatcheroo_provide_all_data_on_scheduled_job");this.provideAllDataDelayMs=_.s8("swatcheroo_provide_all_data_delay_ms",250);if(this.swatcherooProvideAllDataOnScheduledJob)sqB(this);
else{var y=this.JSC$20243_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){Kj(C);AA(C)}),k=this.JSC$20243_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){gu(C);
AA(C)});
this.JSC$20243_watchApi.getRoot().is==="ytd-watch-grid"&&_.V("swatcheroo_pbs_load_grid")&&(o7R(this),yNB(this));this.addOnDisposeCallback(function(){C.JSC$20243_watchApi.unsubscribeByKey(y);C.JSC$20243_watchApi.unsubscribeByKey(k);_.b$.cancelJob(C.provideRichGridJobId)});
Kj(this);gu(this)}};
_.R(kzP,_.LL);var sqB=function(I){var C=I.JSC$20243_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){I.providePlayerJobId=_.jj(_.b$,function(){Kj(I);AA(I)},I.provideAllDataDelayMs)}),y=I.JSC$20243_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){I.provideWatchNextJobId=_.jj(_.b$,function(){gu(I);
AA(I)},I.provideAllDataDelayMs)}),k=I.JSC$20243_watchApi.subscribe("WATCH_NEXT_RESPONSE_RELOADED",function(){I.provideWatchNextJobId=_.jj(_.b$,function(){gu(I);
AA(I)},I.provideAllDataDelayMs)});
I.JSC$20243_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.NU(_.b$,function(){Kj(I);gu(I);AA(I)},100)});
FVB(I.JSC$20243_watchApi,function(){_.b$.cancelJob(I.provideWatchNextJobId);_.b$.cancelJob(I.providePlayerJobId)});
I.addOnDisposeCallback(function(){YM(I.JSC$20243_watchApi,"yt-pending-navigation-cancelled");I.JSC$20243_watchApi.unsubscribeByKey(C);I.JSC$20243_watchApi.unsubscribeByKey(y);I.JSC$20243_watchApi.unsubscribeByKey(k);_.b$.cancelJob(I.providePlayerJobId);_.b$.cancelJob(I.provideWatchNextJobId)});
Kj(I);gu(I)},Kj=function(I){var C=I.JSC$20243_watchApi.getPlayerResponse(),y,k,F=(k=C==null?void 0:(y=C.playabilityStatus)==null?void 0:y.messageRenderers)!=null?k:[],z,c;
C=(c=C==null?void 0:(z=C.playabilityStatus)==null?void 0:z.messages)!=null?c:[];z=_.T(C);for(c=z.next();!c.done;c=z.next())F.push({alertRenderer:{text:_.Ee(c.value),type:"WARNING"}});I.JSC$20243_watchApi.provideRenderingData("ALERTS",F)},gu=function(I){var C=[],y,k,F,z=I.JSC$20243_watchApi.getWatchNextResponse(),c,r,w,L,D=z==null?void 0:(c=z.contents)==null?void 0:(r=c.twoColumnWatchNextResults)==null?void 0:(w=r.results)==null?void 0:(L=w.results)==null?void 0:L.contents;
if(D)for(c=_.T(D),r=c.next();!r.done;r=c.next())if(r=r.value,r.videoPrimaryInfoRenderer)var p=r;else if(r.videoSecondaryInfoRenderer){var Q=r;L=w=void 0;r=Object.assign({},(w=r.videoSecondaryInfoRenderer)==null?void 0:(L=w.metadataRowContainer)==null?void 0:L.metadataRowContainerRenderer);if(r.rows&&r.collapsedItemCount!==void 0){r.rows=r.rows.slice(0,r.collapsedItemCount).filter(function(Ws){return!!Ws.richMetadataRowRenderer});
r.collapsedItemCount=r.rows.length;var X={metadataRowContainerRenderer:r}}}else if(r.merchandiseShelfRenderer)var b=r;else if(r.ticketShelfRenderer)var S=r;else if(r.expandableMetadataRenderer)var A=r;else if(r.itemSectionRenderer)if(w=r.itemSectionRenderer.contents,L=void 0,I.directlyProvideComments&&((L=r.itemSectionRenderer)==null?void 0:L.sectionIdentifier)==="comment-item-section")_.Sr("cmi"),I.JSC$20243_watchApi.provideRenderingData("COMMENTS",r.itemSectionRenderer);else if(w)for(r=_.T(w),w=
r.next();!w.done;w=r.next())if(w=w.value,w.commentsEntryPointHeaderRenderer)var x=w;else if(w.clarificationRenderer||w.infoPanelContainerRenderer||w.infoPanelContentRenderer||w.emergencyOneboxRenderer){C.push(w);var B=B||!!Q}else w.limitedStateMessageRenderer?k=w:w.videoMetadataCarouselViewModel&&(F=w);if(_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&b&&S){var t=b;b=void 0}if(I.provideWatchNextSecondaryResults){var U,yW,a;I.JSC$20243_watchApi.provideRenderingData("WATCH_NEXT_SECONDARY_RESULTS",
z==null?void 0:(U=z.contents)==null?void 0:(yW=U.twoColumnWatchNextResults)==null?void 0:(a=yW.secondaryResults)==null?void 0:a.secondaryResults)}if(I.JSC$20243_watchApi.getRoot().is==="ytd-watch-grid"&&!_.V("swa_prov_panels_ks")&&(z==null?0:z.engagementPanels)){var cs=z.engagementPanels.filter(function(Ws){var i8,l8;return _.CQL.includes((l8=Ws==null?void 0:(i8=Ws.engagementPanelSectionListRenderer)==null?void 0:i8.targetId)!=null?l8:"")});
var XO=z.engagementPanels.filter(function(Ws){var i8,l8;return!_.CQL.includes((l8=Ws==null?void 0:(i8=Ws.engagementPanelSectionListRenderer)==null?void 0:i8.targetId)!=null?l8:"")})}if(I.JSC$20243_watchApi.getRoot().is==="ytd-watch-grid"){var Rm,$z;
I.JSC$20243_watchApi.provideRenderingData("LIVE_CHAT",z==null?void 0:(Rm=z.contents)==null?void 0:($z=Rm.twoColumnWatchNextResults)==null?void 0:$z.conversationBar)}var hX,vs,mY,Bs;(U=z==null?void 0:(hX=z.contents)==null?void 0:(vs=hX.twoColumnWatchNextResults)==null?void 0:(mY=vs.secondaryResults)==null?void 0:(Bs=mY.secondaryResults)==null?void 0:Bs.offerModule)&&(U.donationShelfRenderer||U.donationUnavailableRenderer)&&I.JSC$20243_watchApi.getRoot().is!=="ytd-watch-grid"&&(y=U);hX=I.JSC$20243_watchApi.getPlayerResponse();
if(!hX||!_.g_O(hX.playabilityStatus,z==null?void 0:z.playerOverlays)){var n5;if(z==null?0:(n5=z.contents)==null?0:n5.singleColumnWatchNextResults){var sH,Zt;var Qd=z==null?void 0:(sH=z.contents.singleColumnWatchNextResults.results)==null?void 0:(Zt=sH.results)==null?void 0:Zt.contents}else{var OF,Rw,ku,xK;n5=!!(D==null?0:(OF=D[0])==null?0:(Rw=OF.itemSectionRenderer)==null?0:(ku=Rw.contents)==null?0:(xK=ku[0])==null?0:xK.backgroundPromoRenderer);var yf,uK;OF=!!(z==null?0:(yf=z.contents)==null?0:(uK=
yf.twoColumnWatchNextResults)==null?0:uK.secondaryResults);n5&&!OF&&(Qd=D)}}D=C[0];yf=C[1];B&&C.length===1&&(yf=D,D=void 0);I.JSC$20243_watchApi.provideRenderingData("PRIMARY_INFO",p);I.JSC$20243_watchApi.provideRenderingData("SECONDARY_INFO",Q);I.JSC$20243_watchApi.provideRenderingData("COMMENTS_ENTRY_POINT_HEADER",x);I.JSC$20243_watchApi.provideRenderingData("VIDEO_METADATA_CAROUSEL",F);I.JSC$20243_watchApi.provideRenderingData("CLARIFICATION",D);I.JSC$20243_watchApi.provideRenderingData("RICH_METADATA",
X);I.JSC$20243_watchApi.getRoot().is!=="ytd-watch-grid"||_.V("swa_prov_panels_ks")||_.V("web_watch_inject_placeholder_panels")||(I.JSC$20243_watchApi.provideRenderingData("ENGAGEMENT_PANELS",XO),I.JSC$20243_watchApi.provideRenderingData("INLINE_ENGAGEMENT_PANELS",cs));I.JSC$20243_watchApi.provideRenderingData("MERCH_SHELF",b);_.V("web_watch_merch_in_sd_when_ticket_shelf_present")&&I.JSC$20243_watchApi.provideRenderingData("MERCH_SHELF_IN_SD",t);I.JSC$20243_watchApi.provideRenderingData("TICKET_SHELF",
S);I.JSC$20243_watchApi.provideRenderingData("LIMITED_STATE",k);I.JSC$20243_watchApi.getRoot().is!=="ytd-watch-grid"&&I.JSC$20243_watchApi.provideRenderingData("DONATION_SHELF",y);I.JSC$20243_watchApi.provideRenderingData("SINGLE_COLUMN_CONTENTS",Qd);I.JSC$20243_watchApi.provideRenderingData("INFO_PANEL_BELOW_METADATA",yf);I.JSC$20243_watchApi.provideRenderingData("EXPANDABLE_METADATA",A);if(I.swatcherooProvideAllDataOnScheduledJob){var oL,Uw,TR,G0,hc,wS;p=z==null?void 0:(oL=z.contents)==null?void 0:
(Uw=oL.twoColumnWatchNextResults)==null?void 0:(TR=Uw.secondaryResults)==null?void 0:(G0=TR.secondaryResults)==null?void 0:(hc=G0.results)==null?void 0:(wS=hc[0])==null?void 0:wS.richGridRenderer;I.JSC$20243_watchApi.provideRenderingData("RICH_GRID_RENDERER",p)}};
kzP.prototype.hasCompanionAds=function(I){var C,y;return(y=I==null?void 0:(C=I.adPlacements)==null?void 0:C.some(function(k){var F,z,c,r;return(k==null?void 0:(F=k.adPlacementRenderer)==null?void 0:(z=F.renderer)==null?void 0:z.actionCompanionAdRenderer)||(k==null?void 0:(c=k.adPlacementRenderer)==null?void 0:(r=c.renderer)==null?void 0:r.topBannerImageTextIconButtonedLayoutViewModel)}))!=null?y:!1};
var AA=function(I){if(!_.V("swaterdoo_ps_wn_handle_ks")){I.swatcherooProvideAllDataOnScheduledJob||yNB(I,3E3);var C=I.JSC$20243_watchApi.getPlayerResponse(),y,k,F,z,c,r=(y=I.JSC$20243_watchApi.getWatchNextResponse())==null?void 0:(k=y.contents)==null?void 0:(F=k.twoColumnWatchNextResults)==null?void 0:(z=F.secondaryResults)==null?void 0:(c=z.secondaryResults)==null?void 0:c.offerModule;C=I.hasCompanionAds(C);var w,L;y=(r==null?void 0:(w=r.tvfilmOfferModuleRenderer)==null?void 0:w.clientShouldSuppressIfCompanionAdDisplayed)||
(r==null?void 0:(L=r.unlimitedOfferModuleRenderer)==null?void 0:L.suppressIfCompanionAds);w=C&&y;I.JSC$20243_watchApi.getRoot().is==="ytd-watch-grid"&&I.JSC$20243_watchApi.provideRenderingData("OFFER_MODULE",w?void 0:r)}},yNB=function(I,C){_.V("swatcheroo_pbs_load_grid")&&(I.provideRichGridJobId&&_.b$.cancelJob(I.provideRichGridJobId),I.provideRichGridJobId=_.jj(_.b$,function(){I.provideRichGridJobId=0;
var y,k,F,z,c,r,w,L=(y=I.JSC$20243_watchApi.getWatchNextResponse())==null?void 0:(k=y.contents)==null?void 0:(F=k.twoColumnWatchNextResults)==null?void 0:(z=F.secondaryResults)==null?void 0:(c=z.secondaryResults)==null?void 0:(r=c.results)==null?void 0:(w=r[0])==null?void 0:w.richGridRenderer;L&&I.JSC$20243_watchApi.provideRenderingData("RICH_GRID_RENDERER",L)},C))},o7R=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20243_watchApi.playerApi,2);C=k.yieldResult;y=function(){I.onPlaybackStart()};
C.addEventListener("onPlaybackStartExternal",y);I.addOnDisposeCallback(function(){C.removeEventListener("onPlaybackStartExternal",y)});
_.oI(k)})};
kzP.prototype.onPlaybackStart=function(){yNB(this)};var zgK=function(I){_.LL.call(this);var C=this;this.JSC$20253_watchApi=I;I.playerApi.then(function(y){C.player=y});
this.gestures=new _.eQ(this.JSC$20253_watchApi.getRoot(),I.getElement("PLAYER_CONTAINER"),{dragDownAction:function(){if(jU(_.Hg().getState())&&_.XK(_.Hg().getState())<=0)if(_.lO(_.Hg().getState())){var y;(y=C.player)==null||y.toggleFullscreen()}else _.Fe(C.JSC$20253_watchApi.getRoot(),"yt-activate-miniplayer-from-watch-action")}});
uDj(this)};
_.R(zgK,_.LL);var uDj=function(I){var C=_.rf(_.Hg(),_.lO,function(y){I.gestures&&I.gestures.update(y)});
I.addOnDisposeCallback(C);C=_.rf(_.Hg(),_.XK,function(y){I.gestures&&(y>0?I.gestures.detach():I.gestures.attach())});
I.addOnDisposeCallback(C)};var cNM=function(I){_.LL.call(this);var C=this;this.JSC$20256_watchApi=I;this.clearDataJobId=0;this.pageDisposalDataTypes=[];this.runPageDisposeJob=function(){};
this.runClearDataJob=function(){};
this.runOnYtNavigateAwayFinish=function(){};
I=_.rf(_.Hg(),jU,function(y){C.onActiveChanged(y)});
this.addOnDisposeCallback(I);TqR(this);this.onActiveChanged(jU(_.Hg().getState()))};
_.R(cNM,_.LL);var egS=function(I){if(_.V("swatcheroo_page_dispose_all_watch_data"))I.pageDisposalDataTypes=Object.values($ay).filter(function(y){return y!=="PLAYLIST"});
else if(_.V("swatcheroo_page_dispose_rich_grid")){var C;(C=I.pageDisposalDataTypes)==null||C.push("RICH_GRID_RENDERER")}},TqR=function(I){_.V("swatcheroo_enable_ghost_cards")&&(egS(I),I.JSC$20256_watchApi.registerActionHandler("yt-pending-navigation-cancelled",function(){_.b$.cancelJob(I.clearDataJobId);
I.clearDataJobId=0}),I.runPageDisposeJob=function(){var C=_.N().resolve(_.BP).getDestinationPageType()==="watch";
I.clearDataJobId=_.jj(_.b$,I.runClearDataJob,C?0:_.s8("web_watch_delay_page_dispose_ms",1E4))},I.runClearDataJob=function(){rNj(I)},I.runOnYtNavigateAwayFinish=function(){I.clearDataJobId&&(_.b$.cancelJob(I.clearDataJobId),I.clearDataJobId=0,rNj(I))},document.addEventListener("yt-navigate-finish",I.runOnYtNavigateAwayFinish),FVB(I.JSC$20256_watchApi,I.runPageDisposeJob),I.addOnDisposeCallback(function(){var C=I.JSC$20256_watchApi;
C.rootElement.pageDisposeJobs&&_.Hs(C.rootElement.pageDisposeJobs,I.runPageDisposeJob);YM(I.JSC$20256_watchApi,"yt-pending-navigation-cancelled");document.removeEventListener("yt-navigate-finish",I.runOnYtNavigateAwayFinish)}))},rNj=function(I){I.pageDisposalDataTypes.forEach(function(C){I.JSC$20256_watchApi.provideRenderingData(C,void 0)});
I.clearDataJobId=0};
cNM.prototype.onActiveChanged=function(I){I&&((I=document.querySelector("#watch-page-skeleton"))&&_.ey(I),iYR(this),document.body.removeAttribute("no-y-overflow"),_.g5("IS_SHELL_LOAD")&&_.wUY())};
var iYR=function(I){_.e(function(C){if(C.nextAddress==1)return _.n(C,I.JSC$20256_watchApi.playerApi,2);_.Ja();_.oI(C)})};var wuj=_.V("kevlar_watch_while_counterfactual")?0:.25,D0y=function(I){_.LL.call(this);this.JSC$20259_watchApi=I;this.JSC$20259_watchWhileEnabled=_.V("kevlar_watch_while_v2");this.pipEnabled=_.V("web_enable_pip_on_miniplayer");n7L(this);PQy(this);LVR(this)};
_.R(D0y,_.LL);var n7L=function(I){I.JSC$20259_watchApi.registerActionHandler("yt-activate-miniplayer-from-watch-action",function(){puY(I)});
I.addOnDisposeCallback(function(){YM(I.JSC$20259_watchApi,"yt-activate-miniplayer-from-watch-action")})},PQy=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20259_watchApi.playerApi,2);C=k.yieldResult;y=function(){puY(I)};
C.addEventListener("onCollapseMiniplayer",y);I.addOnDisposeCallback(function(){C.removeEventListener("onCollapseMiniplayer",y)});
_.oI(k)})},LVR=function(I){var C=I.JSC$20259_watchApi.getElement("PLAYER_CONTAINER");
window.IntersectionObserver&&C&&I.JSC$20259_watchWhileEnabled&&(I.playerIntersectionObserver=new IntersectionObserver(function(y){I.handleIntersect(y)},{threshold:[wuj]}),I.playerIntersectionObserver.observe(C),I.addOnDisposeCallback(function(){var y;
(y=I.playerIntersectionObserver)==null||y.disconnect()}))},puY=function(I){var C,y,k;
_.e(function(F){if(F.nextAddress==1){C=_.N().resolve(_.BP);y=C.data;k=_.SDY(y.response,y.playerResponse);_.ck().miniplayerButtonActivation=!0;if(I.pipEnabled)return _.ck().watchPipActivation=!0,F.jumpTo(2);_.N().resolve(_.WJ).collapse();return _.n(F,_.ck().navigationFinishPromise,2)}if(F.nextAddress!=4)return _.ck().currentEndpoint=k.watchEndpoint||null,_.n(F,_.N().resolve(_.WJ).activate(I.JSC$20259_watchApi.getElement("PLAYER"),k,y),4);_.ck().userActivation=!0;_.oI(F)})};
D0y.prototype.handleIntersect=function(I){QqY(this,I[I.length-1])};
var QqY=function(I,C){I.watchWhileJobId&&_.b$.cancelJob(I.watchWhileJobId);I.watchWhileJobId=_.b$.addLowPriorityJob(function(){var y,k;return _.e(function(F){if(F.nextAddress==1)return I.watchWhileJobId=void 0,y=_.N().resolve(_.WJ),C.intersectionRatio>wuj?y.isMiniplayerActive()?_.n(F,y.deactivate(),0):F.jumpTo(0):(k=!y.isMiniplayerActive())?_.n(F,NqL(I),5):F.jumpTo(4);F.nextAddress!=4&&(k=F.yieldResult);if(!k)return F.jumpTo(0);_.ck().watchWhileActivation=!0;return _.n(F,VwY(I),0)})},100)},NqL=function(I){return _.e(function(C){return C.nextAddress==
1?_.V("kevlar_watch_while_paused")?C.return(!0):_.n(C,I.isPlayerPlaying(),2):C.return(C.yieldResult)})};
D0y.prototype.isPlayerPlaying=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20259_watchApi.playerApi,2);C=y.yieldResult;return y.return(C.getPlayerStateObject().isPlaying)})};
var VwY=function(I){var C,y;return _.e(function(k){C=_.N().resolve(_.BP).data;y=_.SDY(C.response,C.playerResponse);_.ck().currentEndpoint=y.watchEndpoint||null;return _.n(k,_.N().resolve(_.WJ).activate(I.JSC$20259_watchApi.getElement("PLAYER"),y,C),0)})};var XuY=function(I){_.LL.call(this);this.JSC$20263_watchApi=I;jqR(this);lFY(this)};
_.R(XuY,_.LL);var lFY=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20263_watchApi.playerApi,2);C=k.yieldResult;y=function(F){var z;F.sessionData&&F.sessionData.itct&&(z=F.sessionData.itct);var c=F.watchEndpoint;if(c&&F.sessionData&&F.sessionData.autonav)c=_.EIF(c,z);else{var r;c=_.IQ(F.videoId,(r=F.listId)!=null?r:void 0,z)}z={endpoint:c};F.sessionData&&(z.tempData=F.sessionData);I.JSC$20263_watchApi.dispatchEvent("yt-navigate",z)};
C.addEventListener("onPlayVideo",y);I.addOnDisposeCallback(function(){C.removeEventListener("onPlayVideo",y)});
_.oI(k)})},jqR=function(I){var C=function(y){I.onYtNavigate(y)};
I.JSC$20263_watchApi.getRoot().addEventListener("yt-navigate",C);I.addOnDisposeCallback(function(){I.JSC$20263_watchApi.getRoot().removeEventListener("yt-navigate",C)})};
XuY.prototype.onYtNavigate=function(I){var C=this,y,k,F,z,c,r,w,L,D;return _.e(function(p){if(p.nextAddress==1){if(!((y=I.detail)==null?0:(k=y.endpoint)==null?0:k.watchEndpoint))return p.return();F=I.detail.endpoint.watchEndpoint;z=C.JSC$20263_watchApi.getWatchNextResponse();r=_.l((c=z)==null?void 0:c.currentVideoEndpoint,_.H$);if(!r)return p.return();if(F.videoId!==r.videoId||F.playlistId&&F.playlistId!==r.playlistId||typeof F.startTimeSeconds!=="number")return p.jumpTo(0);I.stopPropagation();(w=
_.V("kevlar_watch_while_v2")&&!_.V("kevlar_watch_while_counterfactual"))&&_.N().resolve(_.WJ).isMiniplayerActive()||C.JSC$20263_watchApi.scrollWatchTo(0,!0);return _.n(p,C.JSC$20263_watchApi.playerApi,3)}L=p.yieldResult;D=F.startTimeSeconds;L.seekTo(D,void 0,void 0,void 0,84);L.wakeUpControls();D<L.getDuration()&&L.playVideo();_.oI(p)})};var GzR=function(I){_.LL.call(this);var C=this;this.JSC$20266_watchApi=I;I=_.rf(_.Hg(),_.Qgz,function(){$0M(C)});
this.addOnDisposeCallback(I);I=_.rf(_.Hg(),_.lq8,function(){$0M(C)});
this.addOnDisposeCallback(I);RgB(this);bYy(this);Y9L()};
_.R(GzR,_.LL);var RgB=function(I){var C=function(k){_.Hg().dispatch(_.D_H(k.matches))},y=window.matchMedia("(max-width: "+(999+_.Nw())+"px)");
y.addListener(C);I.addOnDisposeCallback(function(){y.removeListener(C)});
C(y)},bYy=function(I){I.JSC$20266_watchApi.registerActionHandler("yt-window-resized",function(){Y9L()});
I.addOnDisposeCallback(function(){YM(I.JSC$20266_watchApi,"yt-window-resized")})},Y9L=function(){var I=_.np();
_.Hg().dispatch(_.yE({type:"SET_WATCH_WINDOW_SIZE",payload:{watchWindowSize:{width:I.width,height:I.height}}}))},$0M=function(I){var C;
_.e(function(y){if(y.nextAddress==1)return _.n(y,I.JSC$20266_watchApi.playerApi,2);C=y.yieldResult;C.setSize(NaN,NaN);_.oI(y)})};var S9M=function(I){_.LL.call(this);var C=this;this.JSC$20270_watchApi=I;var y=this.JSC$20270_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){fFK(C)});
this.addOnDisposeCallback(function(){C.JSC$20270_watchApi.unsubscribeByKey(y)});
fFK(this)};
_.R(S9M,_.LL);var fFK=function(I){var C=I.JSC$20270_watchApi.getWatchNextResponse();if(C){var y,k=[].concat(_.Py((y=C==null?void 0:C.engagementPanels)!=null?y:[]));k.unshift.apply(k,_.Py(KVY(C)));I.JSC$20270_watchApi.provideRenderingData("ENGAGEMENT_PANELS",k)}},ANL=function(I){var C;
if(_.V("enable_yoututor_for_learning_journeys")&&((C=_.v2(window.location.href,"list"))==null?0:C.startsWith("LJ")))return!0;var y,k,F;C=(y=I.engagementPanels)==null?void 0:(k=y.find(function(X){var b;return((b=X.engagementPanelSectionListRenderer)==null?void 0:b.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(F=k.engagementPanelSectionListRenderer.content)==null?void 0:F.structuredDescriptionContentRenderer;
var z;if(_.l(C==null?void 0:(z=C.items)==null?void 0:z.find(function(X){return!!_.l(X,ybH)}),ybH))return!0;
var c,r,w,L;if(I=(((c=I.contents)==null?void 0:(r=c.twoColumnWatchNextResults)==null?void 0:(w=r.results)==null?void 0:(L=w.results)==null?void 0:L.contents)||[]).find(function(X){return X.videoPrimaryInfoRenderer})){var D,p,Q;
return(((D=I.videoPrimaryInfoRenderer)==null?void 0:(p=D.videoActions)==null?void 0:(Q=p.menuRenderer)==null?void 0:Q.flexibleItems)||[]).some(function(X){X=_.l(X,_.iVu);if(!X)return!1;var b,S;X=(b=X.topLevelButton)==null?void 0:(S=b.buttonViewModel)==null?void 0:S.onTap;if(!X)return!1;b=_.Rj(X);if(!b)return!1;var A;return((A=_.l(b,_.Gb))==null?void 0:A.panelIdentifier)==="PAyouchat"})}return!1},KVY=function(I){var C=[];
if(!_.V("web_watch_inject_placeholder_fantasy_panel_killswitch")){var y,k,F,z=(y=I.engagementPanels)==null?void 0:(k=y.find(function(r){var w;return((w=r.engagementPanelSectionListRenderer)==null?void 0:w.panelIdentifier)==="engagement-panel-structured-description"}))==null?void 0:(F=k.engagementPanelSectionListRenderer.content)==null?void 0:F.structuredDescriptionContentRenderer,c;
_.l(z==null?void 0:(c=z.items)==null?void 0:c.find(function(r){return!!_.l(r,ARY)}),ARY)&&(y=_.VCz("PAsports_fantasy"),y.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(y))}ANL(I)&&(I=_.VCz("PAyouchat"),I.engagementPanelSectionListRenderer.targetId="PAyouchat",I.engagementPanelSectionListRenderer.visibility="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",C.push(I));
return C};var v7B=function(I){_.LL.call(this);this.JSC$20273_watchApi=I;g7j(this)};
_.R(v7B,_.LL);var g7j=function(I){I.JSC$20273_watchApi.registerActionHandler("yt-loop-command",function(C){WVy(I,C)});
I.JSC$20273_watchApi.registerActionHandler("yt-repeat-chapter-command",function(C){d0M(I,C)});
I.addOnDisposeCallback(function(){YM(I.JSC$20273_watchApi,"yt-loop-command");YM(I.JSC$20273_watchApi,"yt-repeat-chapter-command")})},WVy=function(I,C){var y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20273_watchApi.playerApi,2);y=k.yieldResult;_.l(C,viy).loop?(y.setLoopRange({startTimeMs:Number(_.l(C,viy).startTimeMs),endTimeMs:Number(_.l(C,viy).endTimeMs),postId:_.l(C,viy).postId,type:"clips"}),y.playVideo()):y.setLoopRange(null);_.oI(k)})},d0M=function(I,C){var y,k;
_.e(function(F){if(F.nextAddress==1)return _.n(F,I.JSC$20273_watchApi.playerApi,2);y=F.yieldResult;k=_.l(C,m_P).repeat;k==="REPEAT_CHAPTER_TYPE_ENABLE_REPEAT"?(y.setLoopRange({startTimeMs:Number(_.l(C,m_P).startTimeMs),endTimeMs:Number(_.l(C,m_P).endTimeMs),type:"repeatChapter"}),y.playVideo()):k==="REPEAT_CHAPTER_TYPE_DISABLE_REPEAT"&&y.setLoopRange(null);_.oI(F)})};var q9S=function(I){_.LL.call(this);this.JSC$20278_watchApi=I;x0L(this)};
_.R(q9S,_.LL);var x0L=function(I){I.JSC$20278_watchApi.registerActionHandler("yt-watch-player-overflow-menu-command",function(C){m0Y(I,C)});
I.addOnDisposeCallback(function(){YM(I.JSC$20278_watchApi,"yt-watch-player-overflow-menu-command")})},m0Y=function(I,C){var y,k,F,z,c,r,w,L,D,p,Q;
_.e(function(X){if(X.nextAddress==1)return _.n(X,I.JSC$20278_watchApi.playerApi,2);y=X.yieldResult;if(z=(F=(k=_.l(C,ZTB))==null?void 0:k.highlightedMenuItemKey)!=null?F:"")(r=(c=y).highlightSettingsMenuItem)==null||r.call(c,z);if(D=(L=(w=_.l(C,ZTB))==null?void 0:w.openMenuItemKey)!=null?L:"")(Q=(p=y).openSettingsMenuItem)==null||Q.call(p,D);_.oI(X)})};var ZYL=_.TL("/youtube/app/watch/player_state","playerStateEntity");var E7L=function(I){_.LL.call(this);this.JSC$20281_watchApi=I;Bqy(this)};
_.R(E7L,_.LL);var hgL=function(I){switch(I){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"}},Bqy=function(I){var C,y;
_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20281_watchApi.playerApi,2);C=k.yieldResult;y=function(F){I.onPlayerStateChange(F)};
C.addEventListener("onStateChange",y);I.addOnDisposeCallback(function(){C.removeEventListener("onStateChange",y)});
_.oI(k)})};
E7L.prototype.onPlayerStateChange=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,C.JSC$20281_watchApi.playerApi,2);y=F.yieldResult;k=y.getVideoData().video_id;_.dW().dispatch(_.wJ("playerStateEntity",ZYL,{key:ZYL,playerState:hgL(I),videoId:k}));_.oI(F)})};var U0R=function(I){_.LL.call(this);var C=this;this.JSC$20285_watchApi=I;I=_.Hg();var y=_.rf(I,jU,function(k){C.onActiveChanged(k)});
this.addOnDisposeCallback(y);_.N().resolve(_.Gk).setPlayer(this.JSC$20285_watchApi.getElement("PLAYER"));this.onActiveChanged(jU(I.getState()))};
_.R(U0R,_.LL);U0R.prototype.onActiveChanged=function(I){var C=this,y=_.N().resolve(_.Gk),k=function(){HYj(C)};
I?(I=this.JSC$20285_watchApi.getElement("PLAYLIST_PANEL"))?(y.setPlaylistComponent(I),y.addEventListener("yt-playlist-data-updated",k),this.addOnDisposeCallback(function(){y.removeEventListener("yt-playlist-data-updated",k)}),HYj(this)):_.xS(Error("jm")):(y.removeEventListener("yt-playlist-data-updated",k),y.cancelVideoSkip())};
var HYj=function(I){var C=_.N().resolve(_.Gk);I.JSC$20285_watchApi.provideRenderingData("PLAYLIST",C.getPlaylistData())};var v0=function(I){_.LL.call(this);var C=this;this.JSC$20288_watchApi=I;this.onPageScroll=function(){C.scrollThrottle.fire();C.mastheadScrollThrottle.fire()};
this.scrollThrottle=new _.OG(this.onThrottledScroll,200,this);_.kq(this,this.scrollThrottle);this.mastheadScrollThrottle=new _.OG(this.onMastheadThrottledScroll,50,this);_.kq(this,this.mastheadScrollThrottle);this.animation=new _.XQ(function(y){C.JSC$20288_watchApi.getRoot().setScrollTop(y)});
I=_.rf(_.Hg(),_.lO,function(){twY(C)});
this.addOnDisposeCallback(I);JNj(this);OYY(this);this.onThrottledScroll()};
_.R(v0,_.LL);
var twY=function(I){var C=I.JSC$20288_watchApi.getRoot();!I.pageScrollElement&&C.pageScrollElement?(I.pageScrollElement=C.pageScrollElement,C.pageScrollElement.addEventListener("scroll",I.onPageScroll),I.addOnDisposeCallback(function(){I.pageScrollElement&&I.pageScrollElement.removeEventListener("scroll",I.onPageScroll)})):I.pageScrollElement&&!C.pageScrollElement&&(I.pageScrollElement.removeEventListener("scroll",I.onPageScroll),I.pageScrollElement=void 0)},JNj=function(I){window.addEventListener("scroll",I.onPageScroll);
I.addOnDisposeCallback(function(){window.removeEventListener("scroll",I.onPageScroll)})},OYY=function(I){I.JSC$20288_watchApi.registerActionHandler("yt-scroll-to-watch-element",function(C){a:{var y;
if(y=I.JSC$20288_watchApi.getRoot().contains(C)&&!I.animation.isAnimating()){y=C.tagName==="YTD-ENGAGEMENT-PANEL-SECTION-LIST-RENDERER";var k,F,z=(C==null?void 0:(k=C.parentElement)==null?void 0:(F=k.parentElement)==null?void 0:F.id)==="fixed-secondary";y=!(y&&z)}if(y){if(_.V("kevlar_watch_scroll_manager_absolute_offset_killswitch"))k=C.offsetTop;else for(k=0,F=C;F!==null;)k+=F.offsetTop,k-=F.scrollTop,F=F.offsetParent;F=k;k=F-24;C=F+C.offsetHeight+24;F=I.JSC$20288_watchApi.getRoot().getPageScrollingElement();
y=I.JSC$20288_watchApi.getRoot().getScrollTop();z=y+F.clientHeight-56;if(k<y+56)C=k-56;else if(C>z)C-=F.clientHeight;else break a;I.scrollWatchTo(Math.max(0,C),!0)}}});
I.addOnDisposeCallback(function(){YM(I.JSC$20288_watchApi,"yt-scroll-to-watch-element")})};
v0.prototype.onThrottledScroll=function(){var I=_.Hg(),C=I.dispatch,y=this.JSC$20288_watchApi.getRoot().getScrollTop();C.call(I,_.yE({type:"SET_WATCH_SCROLL_TOP",payload:{watchScrollTop:y}}))};
v0.prototype.onMastheadThrottledScroll=function(){this.JSC$20288_watchApi.dispatchEvent("yt-watch-masthead-scroll",this.JSC$20288_watchApi.getRoot().getScrollTop())};
v0.prototype.scrollWatchTo=function(I,C){(C===void 0?0:C)?this.animation.start(this.JSC$20288_watchApi.getRoot().getScrollTop(),Math.max(0,I),500):this.JSC$20288_watchApi.getRoot().setScrollTop(I)};var I3y=function(I){_.LL.call(this);var C=this;this.JSC$20291_watchApi=I;var y=this.JSC$20291_watchApi.subscribe("PLAYER_RESPONSE_UPDATED",function(){aFM(C)}),k=this.JSC$20291_watchApi.subscribe("WATCH_NEXT_RESPONSE_UPDATED",function(){MwR(C)});
this.addOnDisposeCallback(function(){C.JSC$20291_watchApi.unsubscribeByKey(y);C.JSC$20291_watchApi.unsubscribeByKey(k)});
aFM(this);MwR(this)};
_.R(I3y,_.LL);
var aFM=function(I){var C,y,k,F=(k=(C=I.JSC$20291_watchApi.getPlayerResponse())==null?void 0:(y=C.videoDetails)==null?void 0:y.title)!=null?k:"";I.JSC$20291_watchApi.dispatchEvent("yt-update-title",F)},MwR=function(I){var C,y,k,F,z,c,r,w=(r=((c=(C=I.JSC$20291_watchApi.getWatchNextResponse())==null?void 0:(y=C.contents)==null?void 0:(k=y.twoColumnWatchNextResults)==null?void 0:(F=k.results)==null?void 0:(z=F.results)==null?void 0:z.contents)!=null?c:[]).find(function(L){return!!L.videoPrimaryInfoRenderer}))==null?
void 0:r.videoPrimaryInfoRenderer;
(C=_.hS(w==null?void 0:w.title))&&I.JSC$20291_watchApi.dispatchEvent("yt-update-title",C)};var s2H=function(I){_.LL.call(this);this.JSC$20294_watchApi=I;COY(this)};
_.R(s2H,_.LL);var COY=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$20294_watchApi.playerApi,2);C=k.yieldResult;y=function(){I.onYpcContentRequest()};
C.addEventListener("onYpcContentRequest",y);I.addOnDisposeCallback(function(){C.removeEventListener("onYpcContentRequest",y)});
_.oI(k)})};
s2H.prototype.onYpcContentRequest=function(){var I,C,y,k,F,z=(I=this.JSC$20294_watchApi.getWatchNextResponse())==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.secondaryResults)==null?void 0:(F=k.secondaryResults)==null?void 0:F.offerModule,c,r,w,L;I=(L=(w=(r=(c=z==null?void 0:z.episodeOfferModuleRenderer)!=null?c:z==null?void 0:z.movieOfferModuleRenderer)!=null?r:z==null?void 0:z.unlimitedOfferModuleRenderer)!=null?w:z==null?void 0:z.liveOfferModuleRenderer)!=
null?L:z==null?void 0:z.tvfilmOfferModuleRenderer;var D,p,Q;z=(Q=z==null?void 0:(D=z.tvfilmOfferModuleRenderer)==null?void 0:(p=D.actionButtons)==null?void 0:p.length)!=null?Q:0;p=Math.max(z-1,0);var X,b,S;D=(S=I==null?void 0:(X=I.offerButton)==null?void 0:X.buttonRenderer)!=null?S:I==null?void 0:(b=I.actionButtons)==null?void 0:b[p].buttonRenderer;var A,x;(X=(x=(A=D==null?void 0:D.navigationEndpoint)!=null?A:D==null?void 0:D.serviceEndpoint)!=null?x:D==null?void 0:D.command)&&_.FW.instance.resolveCommand(X)};_.W0=function(I){_.BU.call(this);var C=this;this.rootElement=I;this.activeModules=[];this.actionHandlers=new Map;this.TEST_ONLY={getActiveModules:function(){return C.activeModules}};
o2Y(this);I=_.rf(_.Hg(),jU,function(y){C.initOrDisposeActiveModules(y)});
this.addOnDisposeCallback(I);this.initOrDisposeActiveModules(jU(_.Hg().getState()));this.onAttached()};
_.R(_.W0,_.BU);_.W0.prototype.getRoot=function(){return this.rootElement};
_.W0.prototype.getElement=function(I){return this.rootElement.getElement(I)};
_.du=function(I,C){I.playerResponse=C;I.publish("PLAYER_RESPONSE_UPDATED",C)};
_.W0.prototype.getPlayerResponse=function(){return this.playerResponse};
_.xM=function(I,C){I.watchNextResponse===C?I.publish("WATCH_NEXT_RESPONSE_RELOADED"):(I.watchNextResponse=C,I.publish("WATCH_NEXT_RESPONSE_UPDATED",C))};
_.W0.prototype.getWatchNextResponse=function(){return this.watchNextResponse};
_.W0.prototype.registerActionHandler=function(I,C){var y=this;if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var k={};_.mU(_.qU.getInstance(),(k[I]=C,k),this.getRoot())}else this.actionHandlers.has(I)||(this.actionHandlers.set(I,[]),k={},_.mU(_.qU.getInstance(),(k[I]=function(){var F=_.wa.apply(0,arguments);return(y.actionHandlers.get(I)||[]).map(function(z){return z.apply(null,_.Py(F))})},k),this.getRoot())),this.actionHandlers.get(I).push(C)};
var YM=function(I,C){if(_.V("web_watch_controller_reg_multiple_handlers_killswitch")){var y={};_.Zi(_.qU.getInstance(),(y[C]=!0,y),I.getRoot())}else(y=I.actionHandlers.get(C))?(y.pop(),y.length===0&&(y={},_.Zi(_.qU.getInstance(),(y[C]=!0,y),I.getRoot()),I.actionHandlers.delete(C))):_.SN(new _.ph("Attempted to unregister an action handler which is not registered.",C))},FVB=function(I,C){I.rootElement.pageDisposeJobs||(I.rootElement.pageDisposeJobs=[]);
_.Dzt(I.rootElement.pageDisposeJobs,C)};
_.W0.prototype.dispatchEvent=function(I,C){_.k3(this.rootElement,I,C)};
_.W0.prototype.provideRenderingData=function(I,C){this.rootElement.provideRenderingData(I,C)};
_.W0.prototype.scrollWatchTo=function(I,C){var y;(y=this.watchScrollManager)==null||y.scrollWatchTo(I,C)};
_.W0.prototype.focusOnPlayer=function(){var I=this.getElement("PLAYER");_.hn(I,function(){if(I&&I.firstElementChild){var C=I.querySelector(".html5-video-player");C&&(_.XZ8(_.N().resolve(_.Qc)),C.focus())}else _.SN(Error("km"))})};
_.ytR=function(I){var C=!!I.rootElement.theater,y=!!I.rootElement.fullscreen,k;(k=I.watchCinematicManager)==null||HmL(k,y,C)};
_.W0.prototype.onAttached=function(){var I=_.V("external_fullscreen");_.V("use_unified_flag_accessor")&&(I=_.N().resolve(_.Eu8).retriever.getFlag(_.ckd));(I||_.g5("START_IN_FULL_WINDOW_MODE"))&&this.dispatchEvent("yt-set-fullerscreen-styles")};
var ksK=function(I){return I.getRoot().is==="ytd-watch-flexy"||I.getRoot().is==="ytd-watch-grid"},qh=function(I){return I.getRoot().is==="ytd-watch-fixie"},o2Y=function(I){if(qh(I)||ksK(I)&&_.V("kevlar_watch_flexy_theater_manager")){var C=new V3Y(I);
_.kq(I,C)}C=new cNM(I);_.kq(I,C);C=new Gq(I);_.kq(I,C);C=new kzP(I);_.kq(I,C);C=new E7L(I);_.kq(I,C);C=new fj(I);_.kq(I,C);if(qh(I)||ksK(I)&&_.V("kevlar_watch_flexy_playlist_manager"))C=new U0R(I),_.kq(I,C)};
_.W0.prototype.initOrDisposeActiveModules=function(I){I?(this.watchScrollManager=new v0(this),this.activeModules.push(this.watchScrollManager),this.activeModules.push(new XuY(this)),this.activeModules.push(new lpK(this)),qh(this)&&this.activeModules.push(new GzR(this)),this.activeModules.push(new I3y(this)),this.activeModules.push(new D0y(this)),(qh(this)||_.V("kevlar_watch_flexy_error_screen_data_provider"))&&this.activeModules.push(new bBj(this)),this.activeModules.push(new v7B(this)),(qh(this)||
_.V("kevlar_watch_flexy_ypc_manager"))&&this.activeModules.push(new s2H(this)),(qh(this)||_.V("kevlar_watch_flexy_ads_manager"))&&this.activeModules.push(new dOY(this)),_.V("kevlar_watch_cinematics")&&(this.watchCinematicManager=new BVB(this),this.activeModules.push(this.watchCinematicManager),_.ytR(this)),_.V("kevlar_watch_player_menu_highlight_manager_killswitch")||this.activeModules.push(new q9S(this)),_.V("kevlar_watch_flexy_gestures_manager")&&this.activeModules.push(new zgK(this)),I=_.V("swatcheroo_directly_provide_comments")&&
this.getRoot().is==="ytd-watch-grid",_.V("kevlar_watch_flexy_comments_manager")&&!I&&this.activeModules.push(new IFH(this)),_.V("web_watch_get_updated_metadata_manager")&&this.activeModules.push(new maB(this)),this.activeModules.push(new GtK(this)),_.V("web_watch_inject_placeholder_panels")&&this.activeModules.push(new S9M(this)),_.V("web_enable_timely_actions")&&this.activeModules.push(new AIY(this)),_.V("web_enable_player_creator_endscreen_manager")&&this.activeModules.push(new oa8(this)),_.V("web_watch_enable_multiview_manager")&&
this.activeModules.push(new HBH(this)),_.V("web_fullscreen_video_action_bar")&&this.activeModules.push(new SiR(this)),_.V("web_player_rtr_ctrls")&&this.activeModules.push(new ktB(this))):(_.E1(this.activeModules),this.activeModules.length=0,this.watchScrollManager=void 0)};
_.W0.prototype.disposeInternal=function(){_.BU.prototype.disposeInternal.call(this);this.initOrDisposeActiveModules(!1)};
_.H1.Object.defineProperties(_.W0.prototype,{playerApi:{configurable:!0,enumerable:!0,get:function(){return this.getRoot().getPlayer().getPlayerPromise()}}});
}catch(e){_._DumpException(e)}
try{
var V7L;V7L=function(I){switch(I){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:_.C8(I,"unknown result type")}};
_.jDK=function(I,C,y){C=_.t9O[C];y={detected:I===0,source:C.p2s,detectionResult:V7L(I),contentCpn:y};_.b2("biscottiBasedDetection",y);_.gTw.increment(C.p2s,I);C.zVV!==void 0&&_.KH("CATSTAT",_.U8s(I,C))};
_.xL=function(I,C){var y={};y.key=I;y.value=C;return _.VDm().then(function(k){return new Promise(function(F,z){try{var c=k.transaction("swpushnotificationsstore","readwrite").objectStore("swpushnotificationsstore").put(y);c.onsuccess=function(){F()};
c.onerror=function(){z()}}catch(r){z(r)}})})};
_.XNP=function(){var I=_.s8("user_engagement_experiments_rate_limit_ms"),C=lJK.get("last-user-engagement-exp-trigger-timestamp");return!C||(0,_.JY)()>=C+I?(lJK.set("last-user-engagement-exp-trigger-timestamp",(0,_.JY)()),!0):!1};
_.qW=function(I,C,y,k,F){C=C===void 0?null:C;y=y===void 0?null:y;k=k===void 0?null:k;F=F===void 0?null:F;I={youThereEventType:I};y&&(I.lactThresholdMs=y.lactThresholdMs,I.mediaPosSec=y.promptDelaySec,I.lactServerRequestMs=y.lactServerRequestMs,I.triggerReason=y.triggerReason);F!=null&&(I.renderingMediaPosSec=Math.round(F));C||(C=_.Si());C&&(I.clientScreenNonce=C);k&&(I.clientPlaybackNonce=k);_.b2("youThere",I)};var lJK=new _.Kw("ratelimit");
}catch(e){_._DumpException(e)}
try{
_.kTM=function(I){return _.yE({type:"SET_SINGLE_OPTION_SURVEY_IS_ACTIVE",payload:I})};
}catch(e){_._DumpException(e)}
try{
var PO8,LiB,DtL,eLR,ctR,Q2P;_.uKP=function(){var I=window.location.hash;I.charAt(0)==="#"&&(I=I.charAt(1)==="!"?I.substring(2):I.substring(1));return _.Zx(I)};
_.zLR=function(I){var C;_.e(function(y){C=["b.f_","j.s_","r.s_","e.h_"];_.V("ab_det_sc_inj")&&C.push("s.i_");_.V("ab_deg_unex_thr")||C.push("a.o_");_.V("ks_get_o_pp")||C.push("g.o_");_.V("ks_det_gpbl")||C.push("p.i_");C.push("f.i_");C.push("a.b_");C.push("p.m_");_.V("ab_det_el_h_v2")&&C.push("n.h_");C.push("o.p_");_.V("ab_det_apm")&&C.push("o.a_");C.forEach(function(k){var F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,_.fhm[k](),2);F=z.yieldResult;I(F,k);_.oI(z)})});
_.oI(y)})};
_.TNL=function(I,C){I={videoId:I};C&&(I.playlistId=C);return I};
_.rtB=function(){if(_.h$Y()){var I=_.Aq("PLAYER_VARS",{});if(_.Le.get(I,"privembed",!1)!="1"&&!_.tgO(I)){var C=function(){ctR=!0;"google_ad_status"in window?_.KH("DCLKSTAT",1):_.KH("DCLKSTAT",2)};
try{_.W$("//static.doubleclick.net/instream/ad_status.js",C)}catch(y){}eLR.push(_.b$.addLowPriorityJob(function(){if(!(ctR||"google_ad_status"in window)){try{_.AZs("//static.doubleclick.net/instream/ad_status.js",C)}catch(y){}ctR=!0;_.KH("DCLKSTAT",3)}},5E3))}}};
_.ig8=function(I,C){I=I.width-_.T4K();return Math.max(_.WM,Math.min(_.uXM,_.WM+(I-(_.vM+_.WM+_.At+2*_.At+C))))};
_.ZM=function(I,C,y){y=y===void 0?!1:y;var k=Math.max(I.width,_.F3M);if(_.V("kevlar_watch_feed_big_thumbs")&&I.width>=1550-_.Nw()&&I.height>=800)k-=_.eeL;else if(I.width>=_.gN){var F=_.vM+_.WM+_.At;_.V("kevlar_watch_feed_big_thumbs")&&(F=_.cbR);k-=F}else k-=_.vM;k=Math.min(k,_.zej);F=240;y&&(F=380);C<.5624||(!_.V("kevlar_watch_flexy_disable_small_window_sizing")&&(I.height<630&&I.width>=657||I.height>=630&&I.width>=_.gN&&I.width<1327)?F=360:!_.V("kevlar_watch_flexy_disable_large_window_sizing")&&
I.height>=630&&I.width>=1327&&(F=480));var z=Math.min(k*C,I.height-(56+_.kQH+_.T$M));z=Math.max(z,F);C<1?k=z/C:I.width>=_.gN&&(k=_.ZM(I,.5625,y).width);return new _.y6(Math.round(k),Math.round(z))};
_.wML=function(I){var C=0;I.indexOf("h")!=-1&&(I=I.split("h"),C=I[0]*60*60,I=I[1]);I.indexOf("m")!=-1&&(I=I.split("m"),C=I[0]*60+C,I=I[1]);I.indexOf("s")!=-1?(I=I.split("s"),C=I[0]*1+C):C=I*1+C;return C};
_.n2H=function(){_.s8("service_worker_push_logged_out_prompt_watches")!=-1&&_.ZT("WatchCount").then(function(I){I>=100||_.xL("WatchCount",I+1)})};
PO8=function(I){var C=I.externalVideoId||"";return C?(_.V("webfe_watch_shorts_canonical_url_fix")||_.Aq("MWEB_ALLOW_SHORTS_CANONICAL_URL_FIX"))&&I.isShortsEligible?"https://www.youtube.com/shorts/"+C:"https://www.youtube.com/watch?v="+C:""};
LiB=function(I){var C=[];I.viewCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/WatchAction",userInteractionCount:I.viewCount});I.likeCount&&C.push({"@type":"InteractionCounter",interactionType:"https://schema.org/LikeAction",userInteractionCount:I.likeCount});return C};
DtL=function(I){var C,y,k={"@context":"https://schema.org","@type":"VideoObject",description:_.hS(I.description),duration:"PT"+(I.lengthSeconds||"0")+"S",embedUrl:I.embed?I.embed.iframeUrl:"",name:_.hS(I.title),thumbnailUrl:((C=I.thumbnail)==null?void 0:(y=C.thumbnails)==null?void 0:y.map(function(D){return D&&D.url||""}))||[],
uploadDate:I.publishDate};_.V("mweb_video_schema_id_killswitch")||(k["@id"]=PO8(I));C=LiB(I);C.length&&(k.interactionStatistic=C);I.category&&(k.genre=I.category);I.ownerChannelName&&(k.author=I.ownerChannelName);I.liveBroadcastDetails&&(k.publication=[{"@type":"BroadcastEvent",isLiveBroadcast:!0,startDate:I.liveBroadcastDetails.startTimestamp,endDate:I.liveBroadcastDetails.endTimestamp}]);if(I.learningResource){I=I.learningResource;k["@type"]=["VideoObject","LearningResource"];var F;if((F=I.learningResourceType)==
null?0:F.length)k.learningResourceType=I.learningResourceType[0];var z;if((z=I.educationalAlignment)==null?0:z.length)k.educationalAlignment={"@type":"AlignmentObject",targetName:I.educationalAlignment[0]};var c;if((c=I.educationalLevel)==null?0:c.length){F=I.educationalLevel[0];var r;if((r=I.educationalLevelCountry)==null?0:r.length)F+=" ("+I.educationalLevelCountry+")";k.educationalLevel=F}var w,L;if(((w=I.learningResourceType)==null?0:w.length)&&I.learningResourceType[0]==="Problem walkthrough"&&
((L=I.problemDescriptions)==null?0:L.length))for(k.hasPart=[],r=_.T(I.problemDescriptions),w=r.next();!w.done;w=r.next())F=w.value,w=F.problemDescriptionText,L=F.startOffset,F=F.url,w&&L!==void 0&&F&&k.hasPart.push({"@type":["Clip","LearningResource"],learningResourceType:"Problem walkthrough",name:w,text:w,startOffset:L,url:F})}return k};
_.pMj=function(I){return _.yE({type:"SET_IS_LIVE_CHAT_COLLAPSED",payload:{isLiveChatCollapsed:I}})};
eLR=[];ctR=!1;Q2P=new _.J("updateSentimentBarStateCommand");_.NNH=new _.J("showSurveyCommand");_.B0=new _.J("changeMarkersVisibilityCommand");var j2R,l3K,bgK,RL8,$tY,Ea;_.VUL=function(I,C){this.playerProvider_=I;this.actionSenderElement_=C;this.pausePlaybackJob_=this.showBlockingWarningJob_=this.showWarningJob_=0;this.youThereData_=null;this.inYouThereFlow_=this.ignoreFullscreenExitUserActivity_=this.isUserPredictedAbsent_=!1};
_.VUL.prototype.reset=function(){j2R(this);this.isUserPredictedAbsent_=!1};
j2R=function(I,C){!I.youThereData_||I.showWarningJob_||C!==void 0&&C||(_.qW("YOU_THERE_EVENT_TYPE_NAVIGATED_OUT",_.Si(),I.youThereData_,I.clientPlaybackNonce_),_.Yo());_.b$.cancelJob(I.showWarningJob_);I.showWarningJob_=0;_.b$.cancelJob(I.showBlockingWarningJob_);I.showBlockingWarningJob_=0;_.b$.cancelJob(I.pausePlaybackJob_);I.pausePlaybackJob_=0;I.youThereData_=null;I.clientPlaybackNonce_=void 0;I.inYouThereFlow_=!1};
_.XMP=function(I,C){var y,k,F;_.e(function(z){if(z.nextAddress==1)return I.reset(),_.n(z,I.playerProvider_().getPlayerPromise(),2);y=z.yieldResult;I.clientPlaybackNonce_=y.getVideoData().cpn;I.youThereData_=C.configData.youThereData;if(!I.youThereData_)return z.return();if(I.youThereData_.triggerReason&&I.youThereData_.triggerReason=="YOU_THERE_TRIGGER_REASON_3"&&!_.XNP())return _.qW("YOU_THERE_EVENT_TYPE_RATE_LIMITED",_.Si(),I.youThereData_,I.clientPlaybackNonce_),z.return();k=I.youThereData_.promptDelaySec;
F=y.getCurrentTime();I.showWarningJob_=_.b$.addLowPriorityJob(function(){return _.e(function(c){I.showWarningJob_=0;return _.n(c,l3K(I),0)})},Math.max(k-F,0)*1E3);
_.oI(z)})};
l3K=function(I){var C,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return _.n(r,I.playerProvider_().getPlayerPromise(),2);if(r.nextAddress!=3)return C=r.yieldResult,y=C.getCurrentTime(),_.n(r,$tY(I),3);k=r.yieldResult;if(!k||!I.youThereData_)return r.return();if(_.V("check_user_lact_at_prompt_shown_time_on_web")&&(F=parseInt(I.youThereData_.lactThresholdMs,10),_.Ci()<F))return _.qW("YOU_THERE_EVENT_TYPE_BELOW_LACT_THRESHOLD",_.Si(),I.youThereData_,I.clientPlaybackNonce_),r.return();if(I.youThereData_.playbackPauseDelayMs<=
0)return RL8(I),r.return();!_.V("external_fullscreen")&&(z=_.CA())&&(I.ignoreFullscreenExitUserActivity_=!0,_.b$.addLowPriorityJob(function(){I.ignoreFullscreenExitUserActivity_=!1},2E3),_.sN(z));
I.youThereData_.showToastWarningPrompt&&(Ea(I,I.youThereData_.showWarningActions),I.inYouThereFlow_=!0,_.qW("YOU_THERE_EVENT_TYPE_PROMPT_SHOWN",_.Si(),I.youThereData_,I.clientPlaybackNonce_,y),_.qW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN",_.Si(),I.youThereData_,I.clientPlaybackNonce_,y));c=0;I.youThereData_.blockingPromptDelayMs&&(c=I.youThereData_.blockingPromptDelayMs);I.showBlockingWarningJob_=_.b$.addLowPriorityJob(function(){return _.e(function(w){I.showBlockingWarningJob_=0;return _.n(w,
bgK(I),0)})},c);
_.oI(r)})};
bgK=function(I){var C,y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,$tY(I),2);C=F.yieldResult;if(!I.youThereData_)return F.return();C&&(I.youThereData_.showBlockingWarningAction&&(_.qW("YOU_THERE_EVENT_TYPE_WARNING_PROMPT_SHOWN_IN_DIALOG",_.Si(),I.youThereData_,I.clientPlaybackNonce_),(y=_.l(I.youThereData_.showBlockingWarningAction,_.r9))?Ea(I,y.commands):Ea(I,[I.youThereData_.showBlockingWarningAction]),I.inYouThereFlow_=!0),k=I.youThereData_.playbackPauseDelayMs,I.pausePlaybackJob_=
_.b$.addLowPriorityJob(function(){return _.e(function(z){I.pausePlaybackJob_=0;return _.n(z,RL8(I),0)})},k));
_.oI(F)})};
RL8=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,$tY(I),2);C=y.yieldResult;if(!I.youThereData_)return y.return();C&&(_.qW("YOU_THERE_EVENT_TYPE_PLAYBACK_PAUSED",_.Si(),I.youThereData_,I.clientPlaybackNonce_),Ea(I,I.youThereData_.showPausedActions),I.inYouThereFlow_=!0);_.oI(y)})};
_.VUL.prototype.onUserActivity=function(){if(this.youThereData_){if(this.ignoreFullscreenExitUserActivity_)return;if(this.youThereData_.userActiveDuringFlowAction){var I=_.l(this.youThereData_.userActiveDuringFlowAction,_.r9);I?Ea(this,I.commands):Ea(this,[this.youThereData_.userActiveDuringFlowAction])}this.inYouThereFlow_&&(_.qW("YOU_THERE_EVENT_TYPE_LACT_RESET",_.Si(),this.youThereData_,this.clientPlaybackNonce_),_.Yo());j2R(this,!0)}_.YYy(this,!1)};
_.GsB=function(I){_.qW("YOU_THERE_EVENT_TYPE_USER_RESPONDED",_.Si(),I.youThereData_,I.clientPlaybackNonce_)};
$tY=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.playerProvider_().getPlayerPromise(),2);C=k.yieldResult;y=C.getPlayerState();return k.return(y==-1||y==1||y==3)})};
_.YYy=function(I,C){var y;_.e(function(k){if(k.nextAddress==1){if(I.isUserPredictedAbsent_==C)return k.jumpTo(0);I.isUserPredictedAbsent_=C;return _.n(k,I.playerProvider_().getPlayerPromise(),3)}y=k.yieldResult;y.setUserEngagement(C);C&&_.qW("YOU_THERE_EVENT_TYPE_ABR_TRIGGERED",_.Si(),I.youThereData_,I.clientPlaybackNonce_);_.oI(k)})};
Ea=function(I,C){if(_.V("handle_service_request_actions")||_.V("kevlar_youthere_service_endpoint_actions_killswitch"))_.cQ(I.actionSenderElement_,C,I.actionSenderElement_);else{C=_.T(C);for(var y=C.next();!y.done;y=C.next())y=y.value,y.commandMetadata&&y.commandMetadata.webCommandMetadata&&y.commandMetadata.webCommandMetadata.sendPost?_.Tg(I.actionSenderElement_,[y]):_.cQ(I.actionSenderElement_,[y],I.actionSenderElement_)}};var f3H;var SYH;var hA=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.actionMap={"yt-update-sentiment-bar-state-command":"handleUpdateSentimentBarStateCommand"};return I};
_.R(hA,_.q);hA.prototype.observeLikeStatus=function(){if(this.data){if(this.data.likeStatus==="DISLIKE"){var I=this.data.percentIfDisliked||0;this.activated=!0}else this.data.likeStatus==="LIKE"?(I=this.data.percentIfLiked||0,this.activated=!0):(I=this.data.percentIfIndifferent||0,this.activated=!1);_.f(this.hostElement).querySelector("#like-bar").style.width=I+"%"}};
hA.prototype.handleUpdateSentimentBarStateCommand=function(I){this.data&&this.set("data.likeStatus",_.l(I,Q2P).likeStatus)};
hA.prototype.observeLikeStatus=hA.prototype.observeLikeStatus;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hA.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],hA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hA.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],hA.prototype,"activated",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hA.prototype,"systemIcons",void 0);_.E([_.FI("data.likeStatus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hA.prototype,"observeLikeStatus",null);hA=_.E([_.m({is:"ytd-sentiment-bar-renderer",disableElementRegistration:!0})],hA);
_.Z(hA,"ytd-sentiment-bar-renderer",function(){if(SYH!==void 0)return SYH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return SYH=I},{mode:1});var KiY;var Ua=function(){var I=_.q.apply(this,arguments)||this;I.small=!0;return I};
_.R(Ua,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ua.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ua.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ua.prototype,"small",void 0);Ua=_.E([_.m({disableElementRegistration:!0,is:"ytd-video-view-count-renderer"})],Ua);
_.Z(Ua,"ytd-video-view-count-renderer",function(){if(KiY!==void 0)return KiY;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return KiY=I},{mode:_.Ij("kevlar_poly_si_batch_j080")?1:2});var H0=function(){var I=_.q.apply(this,arguments)||this;I.infoFormattedStrings=[];I.wrapVideoActions=_.V("kevar_watch_wrap_video_actions");I.hideSentimentBar=_.V("kevlar_watch_hide_sentiment_bar");I.actionMap={};return I};
_.R(H0,_.q);_.u=H0.prototype;_.u.configureRendererStamper=function(){return{"data.videoActions":{id:"menu",mapping:{menuRenderer:{component:"ytd-menu-renderer",params:{icon:"yt-icons:more",styleActionButton:!0,tonalOverride:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.viewCount":{id:"count",mapping:{videoViewCountRenderer:"ytd-video-view-count-renderer"}}}};
_.u.dataChanged=function(){_.V("web_watch_get_updated_metadata_manager")||this.scheduleInitialUpdatedMetadataRequest();this.setSentimentBarWidth()};
_.u.computeInfoFormattedStrings=function(I){if(!I)return[];var C=[];I.dateText&&C.push(I.dateText);I.stationName&&C.push(I.stationName);I.rating&&C.push(I.rating);I.startEndTimeTemplate&&I.startTimeUtcMillis&&I.endTimeUtcMillis&&C.push(_.Ee(_.jkR(_.hS(I.startEndTimeTemplate),Number(I.startTimeUtcMillis),Number(I.endTimeUtcMillis))));I.upNextProgramText&&C.push(I.upNextProgramText);return C};
_.u.scheduleInitialUpdatedMetadataRequest=function(){var I,C=(I=this.data)==null?void 0:I.updatedMetadataEndpoint;if(C){var y;I=Number((y=_.l(C,_.HZq))==null?void 0:y.initialDelayMs);y=isNaN(I)?250:I;this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this),y)}};
_.u.setSentimentBarWidth=function(){var I=this;_.hn(this,function(){var C=_.f(I.hostElement).querySelector("ytd-menu-renderer");if(C){C=C.topLevelButtons;for(var y=0,k=0;k<C.length;k++){var F=C[k],z=I.get("toggleButtonSupportedData.toggleButtonIdData.id",F.data);if(z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"||z==="TOGGLE_BUTTON_ID_TYPE_LIKE")y+=F.clientWidth+8;else break}y&&(I.sentiment.style.width=y-8+" px")}})};
_.u.fetchUpdatedMetadata=function(I){var C;I&&(C={continuation:I});var y;(I=(y=this.data)==null?void 0:y.updatedMetadataEndpoint)&&_.N().resolve(_.ID).resolveCommand(I,{form:Object.assign({},C,{element:this.hostElement})})};
_.u.onYtServiceRequestSent=function(I,C){C.endpoint&&_.l(C.endpoint,_.Bp)&&(this.hasUpdateSentimentBarStateCommands()&&!_.V("kevlar_sentiment_bar_update_killswitch")||this.set("data.sentimentBar.sentimentBarRenderer.likeStatus",_.l(C.endpoint,_.Bp).status),this.setSentimentBarWidth())};
_.u.hasUpdateSentimentBarStateCommands=function(){var I,C,y,k,F=(k=(I=this.data)==null?void 0:(C=I.videoActions)==null?void 0:(y=C.menuRenderer)==null?void 0:y.topLevelButtons)!=null?k:[];I=_.T(F);for(C=I.next();!C.done;C=I.next()){C=C.value;F=k=y=void 0;var z=(y=C.toggleButtonRenderer)==null?void 0:(k=y.toggleButtonSupportedData)==null?void 0:(F=k.toggleButtonIdData)==null?void 0:F.id;if(z==="TOGGLE_BUTTON_ID_TYPE_LIKE"||z==="TOGGLE_BUTTON_ID_TYPE_DISLIKE"){k=y=void 0;C=(k=_.l((y=C.toggleButtonRenderer)==
null?void 0:y.defaultServiceEndpoint,_.r9))==null?void 0:k.commands;if(!C)break;C=_.T(C);for(y=C.next();!y.done;y=C.next())if(_.l(y.value,Q2P))return!0}}return!1};
_.u.onYtServiceRequestCompleted=function(I,C){var y;(I=(y=C.data)==null?void 0:y.loggingDirectives)&&_.MTK(_.e2(),I);this.get("continuation.timedContinuationData",C.data)&&this.data&&this.data.updatedMetadataEndpoint&&(C=C.data.continuation.timedContinuationData,this.ytTaskEmitterBehavior.getTaskManager().addLowPriorityJob(this.fetchUpdatedMetadata.bind(this,C.continuation),C.timeoutMs))};
_.u.computeHasDateText=function(I){return!!I&&!!I.dateText};
_.H1.Object.defineProperties(H0.prototype,{flexMenuEnabled:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return!((k=(I=this.data)==null?void 0:(C=I.videoActions)==null?void 0:(y=C.menuRenderer)==null?void 0:y.flexibleItems)==null||!k.length)}}});
H0.prototype.onYtServiceRequestCompleted=H0.prototype.onYtServiceRequestCompleted;H0.prototype.onYtServiceRequestSent=H0.prototype.onYtServiceRequestSent;H0.prototype.dataChanged=H0.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],H0.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],H0.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],H0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.xy.YtTaskEmitterBehavior),_.h("design:type",Object)],H0.prototype,"ytTaskEmitterBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],H0.prototype,"data",void 0);_.E([_.d({computed:"computeInfoFormattedStrings(data)"}),_.h("design:type",Array)],H0.prototype,"infoFormattedStrings",void 0);
_.E([_.d({computed:"computeHasDateText(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],H0.prototype,"hasDateText",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],H0.prototype,"wrapVideoActions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],H0.prototype,"hideSentimentBar",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],H0.prototype,"flexMenuEnabled",null);
_.E([_.z$("#sentiment"),_.h("design:type",Object)],H0.prototype,"sentiment",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],H0.prototype,"dataChanged",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],H0.prototype,"onYtServiceRequestSent",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],H0.prototype,"onYtServiceRequestCompleted",null);
_.Z(H0,"ytd-video-primary-info-renderer",function(){if(f3H===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);f3H=I}I=f3H;return I},{mode:1});var AtY;var tA=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-date-text-action":"handleUpdateDateTextAction","yt-update-description-action":"handleUpdateDescriptionAction","yt-change-engagement-panel-visibility-action":"onYtChangeEngagementPanelVisibilityAction"};return I};
_.R(tA,_.q);_.u=tA.prototype;_.u.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"}}}};
_.u.dataChanged=function(){var I;this.descriptionToggled=!((I=this.data)==null||!I.defaultExpanded);var C;this.collapsed=this.descriptionAlwaysCollapsed||!((C=this.data)==null?0:C.defaultExpanded);this.subscribeButtonData=this.data.subscribeButton;this.descriptionCollapsedHeight=(this.data.descriptionCollapsedLines||3)*20;this.showMoreClientVe=_.Dn(110509);this.showLessClientVe=_.Dn(110510);I=_.Si();C=_.fq();I&&C&&_.m5(I,C,[this.showMoreClientVe,this.showLessClientVe])};
_.u.onYtExpanderMoreTapped=function(){var I,C=(I=this.data)==null?void 0:I.showMoreCommand;C&&!this.hasInlineStructuredDescription&&this.componentBehavior.resolveCommand(C);(I=_.Si())&&this.showMoreClientVe&&_.EN(I,this.showMoreClientVe)};
_.u.onYtExpanderLessTapped=function(){var I=_.Si();I&&this.showLessClientVe&&_.EN(I,this.showLessClientVe);var C;(I=(C=this.data)==null?void 0:C.showLessCommand)&&this.componentBehavior.resolveCommand(I)};
_.u.handleUpdateDateTextAction=function(I){this.data&&this.data.dateText&&this.set("data.dateText",_.l(I,_.M0S).dateText)};
_.u.handleUpdateDescriptionAction=function(I){if(I=_.l(I,_.Y7q))I.isEmpty||!I.description?this.description.hidden=!0:this.hasAttributedDescription?this.set("data.attributedDescription",_.j2(I.description)):this.set("data.description",I.description)};
_.u.onYtChangeEngagementPanelVisibilityAction=function(I){if(_.V("web_structured_description_show_more")||_.V("web_engagement_panel_open_description")){var C,y=(C=_.l(I,_.GEu))==null?void 0:C.targetId,k;I=((k=_.l(I,_.GEu))==null?void 0:k.visibility)==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED";y==="engagement-panel-structured-description"&&I&&(this.descriptionToggled=!0)}};
_.u.updateCollapsedFromBinding=function(I){this.collapsed=I.detail.value};
_.u.updateDescriptionToggledFromBinding=function(I){this.descriptionToggled=I.detail.value};
_.u.updateCanCollapseFromBinding=function(I){this.canCollapse=I.detail.value};
_.H1.Object.defineProperties(tA.prototype,{metadataCollapsible:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.metadataRowContainer)==null?void 0:C.metadataRowContainerRenderer;return!!y&&!!y.rows&&y.rows.length>y.collapsedItemCount}},
hasInlineStructuredDescription:{configurable:!0,enumerable:!0,get:function(){return!!this.structuredDescriptionContentRenderer}},
hasAttributedDescription:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.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}}});
tA.prototype.onYtExpanderLessTapped=tA.prototype.onYtExpanderLessTapped;tA.prototype.onYtExpanderMoreTapped=tA.prototype.onYtExpanderMoreTapped;tA.prototype.dataChanged=tA.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],tA.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tA.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],tA.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tA.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],tA.prototype,"collapsed",void 0);_.E([_.d(),_.h("design:type",Boolean)],tA.prototype,"descriptionToggled",void 0);
_.E([_.d(),_.h("design:type",Boolean)],tA.prototype,"canCollapse",void 0);_.E([_.d(),_.h("design:type",Object)],tA.prototype,"subscribeButtonData",void 0);_.E([_.d(),_.h("design:type",Number)],tA.prototype,"descriptionCollapsedHeight",void 0);_.E([_.d(),_.h("design:type",Object)],tA.prototype,"structuredDescriptionContentRenderer",void 0);_.E([_.d({value:function(){return _.V("web_watch_description_always_collapsed")}}),
_.h("design:type",Boolean)],tA.prototype,"descriptionAlwaysCollapsed",void 0);_.E([_.z$("#description"),_.h("design:type",HTMLDivElement)],tA.prototype,"description",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tA.prototype,"dataChanged",null);_.E([_.km("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tA.prototype,"onYtExpanderMoreTapped",null);
_.E([_.km("yt-expander-less-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tA.prototype,"onYtExpanderLessTapped",null);_.E([_.v("data.metadataRowContainer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"metadataCollapsible",null);_.E([_.v("data","structuredDescriptionContentRenderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"hasInlineStructuredDescription",null);
_.E([_.v("data.attributedDescription"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"hasAttributedDescription",null);_.E([_.v("hasInlineStructuredDescription","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"loadStructuredDescription",null);_.E([_.v("data","structuredDescriptionContentRenderer","collapsed"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"showInlineStructuredDescription",null);
_.E([_.v("data","hasInlineStructuredDescription","metadataCollapsible"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tA.prototype,"descriptionAlwaysCollapsible",null);
_.Z(tA,"ytd-video-secondary-info-renderer",function(){if(AtY===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);AtY=I}I=AtY;return I},{mode:2});var g2Y;var JA=function(){return _.q.apply(this,arguments)||this};
_.R(JA,_.q);JA.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:_.V("web_modern_buttons"),forceIconButton:!_.V("web_modern_buttons")}}}},"data.subscribeButton":{id:"subscribe",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
JA.prototype.activate=function(I){I.appendTo(this.player);I.getPlayerPromise().then(function(C){C.setMinimized(!0)});
this.active=!0};
JA.prototype.deactivate=function(){var I=this.player.firstElementChild;I.getPlayerPromise().then(function(C){C.setMinimized(!1)});
this.active=!1;return I};
JA.prototype.onScrollUpTap=function(){var I=_.N().resolve(_.BP).getCurrentPage();I&&I.setScrollTop(0)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JA.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],JA.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],JA.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],JA.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],JA.prototype,"active",void 0);
_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_while_miniplayer_bar_dark_launch")}}),
_.h("design:type",Boolean)],JA.prototype,"darkLaunch",void 0);_.E([_.z$("#player"),_.h("design:type",HTMLDivElement)],JA.prototype,"player",void 0);JA=_.E([_.m({disableElementRegistration:!0,is:"ytd-miniplayer-bar-renderer"})],JA);
_.Z(JA,"ytd-miniplayer-bar-renderer",function(){if(g2Y!==void 0)return g2Y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return g2Y=I},{mode:1});_.B9(_.BO(function(I){var C=_.Es();_.l0(function(){var y;if(y=JSON)y=DtL(I.data()),y=_.bi(JSON.stringify(y).replace(/</g,"\\u003C"));var k=I.data(),F=_.hS(k.title).trim().length===0,z=!k.publishDate||k.publishDate.trim().length===0,c,r,w,L,D=!((c=k.thumbnail)==null?0:(r=c.thumbnails)==null?0:r.length)||!((w=k.thumbnail)==null?0:w.thumbnails[0].url)||((L=k.thumbnail)==null?void 0:L.thumbnails[0].url.trim().length)===0;C.value&&y&&!(F||z||D)&&_.GK(C.value,y)});
return _.P("player-microformat-renderer",{class:"playerMicroformatRendererHost"},_.P("script",{el:C,type:"application/ld+json"}))},"Ti"),"player-microformat-renderer",{props:{data:_.Z_}});
}catch(e){_._DumpException(e)}
try{
var PJY,Da,L5L,DWM,QgK,NZP,pUY,VxM;PJY=function(){var I=_.N1();I.info||(I.info={});return I.info};
Da=function(I){return Math.round(_.jr()+I)};
L5L=function(){var I;if(_.V("csi_use_performance_navigation_timing")||_.V("csi_use_performance_navigation_timing_tvhtml5")){var C,y,k,F=_.Vw==null?void 0:(I=_.Vw.getEntriesByType)==null?void 0:(C=I.call(_.Vw,"navigation"))==null?void 0:(y=C[0])==null?void 0:(k=y.toJSON)==null?void 0:k.call(y);F?(F.requestStart=Da(F.requestStart),F.responseEnd=Da(F.responseEnd),F.redirectStart=Da(F.redirectStart),F.redirectEnd=Da(F.redirectEnd),F.domainLookupEnd=Da(F.domainLookupEnd),F.connectStart=Da(F.connectStart),
F.connectEnd=Da(F.connectEnd),F.responseStart=Da(F.responseStart),F.secureConnectionStart=Da(F.secureConnectionStart),F.domainLookupStart=Da(F.domainLookupStart),F.isPerformanceNavigationTiming=!0,I=F):I=_.Vw.timing}else I=_.V("csi_performance_timing_to_object")?JSON.parse(JSON.stringify(_.Vw.timing)):_.Vw.timing;return I};
DWM=function(){if(_.Vw.getEntriesByType){var I=_.Vw.getEntriesByType("paint");if(I=_.AX(I,function(y){return y.name==="first-paint"}))return Da(I.startTime)}var C;
_.V("csi_use_performance_navigation_timing")||_.V("csi_use_performance_navigation_timing_tvhtml5")?C=_.Vw.getEntriesByType("first-paint")[0].startTime:C=_.Vw.timing.msFirstPaint;return C?Math.max(0,C):0};
QgK=function(){var I=window.location.protocol,C=_.Vw.getEntriesByType("resource");C=_.yv(C,function(y){return y.name.indexOf(I+"//fonts.gstatic.com/s/")===0});
(C=pUY(C,function(y,k){return k.duration>y.duration?k:y}))&&C.startTime>0&&C.responseEnd>0&&(_.lW("wffs",Da(C.startTime)),_.lW("wffe",Da(C.responseEnd)))};
NZP=function(I,C){I=document.querySelector(I);if(!I)return!1;var y="",k=I.nodeName;k==="SCRIPT"?(y=I.src,y||(y=I.getAttribute("data-timing-href"))&&(y=window.location.protocol+y)):k==="LINK"&&(y=I.href);_.$b(document)&&I.setAttribute("nonce",_.$b(document));return y?(I=_.Vw.getEntriesByName(y))&&I[0]&&(I=I[0],y=_.jr(),_.lW("rsf_"+C,y+Math.round(I.fetchStart)),_.lW("rse_"+C,y+Math.round(I.responseEnd)),I.transferSize!==void 0&&I.transferSize===0)?!0:!1:!1};
_.pm=function(I,C){_.W5(function(){_.XlF("").info.actionType=I;C&&_.KH("TIMING_AFT_KEYS",C);_.KH("TIMING_ACTION",I);var y=_.mit(_.Aq("TIMING_INFO",{}));Object.keys(y).length>0&&_.Rt(y);y={isNavigation:!0,actionType:_.bbs(_.Aq("TIMING_ACTION"))};var k=_.Aq("PREVIOUS_ACTION");k&&(y.previousAction=_.bbs(k));if(k=_.Aq("CLIENT_PROTOCOL"))y.httpProtocol=k;if(k=_.Aq("CLIENT_TRANSPORT"))y.transportProtocol=k;(k=_.Si())&&k!=="UNDEFINED_CSN"&&(y.clientScreenNonce=k);k=_.qUK();if(k===1||k===-1)y.isVisible=!0;
k=_.DiK().loadType==="cold";var F=PJY();k||(k=F.yt_lt==="cold");if(k){y.loadType="cold";k=PJY();F=L5L();var z=_.jr(),c=_.Aq("CSI_START_TIMESTAMP_MILLIS",0);c>0&&!_.V("embeds_web_enable_csi_start_override_killswitch")&&(z=c);z&&(_.lW("srt",F.responseStart),k.prerender!==1&&_.KXs(z));k=DWM();k>0&&_.lW("fpt",k);k=L5L();k.isPerformanceNavigationTiming&&_.Rt({performanceNavigationTiming:!0},void 0);_.lW("nreqs",k.requestStart,void 0);_.lW("nress",k.responseStart,void 0);_.lW("nrese",k.responseEnd,void 0);
k.redirectEnd-k.redirectStart>0&&(_.lW("nrs",k.redirectStart,void 0),_.lW("nre",k.redirectEnd,void 0));k.domainLookupEnd-k.domainLookupStart>0&&(_.lW("ndnss",k.domainLookupStart,void 0),_.lW("ndnse",k.domainLookupEnd,void 0));k.connectEnd-k.connectStart>0&&(_.lW("ntcps",k.connectStart,void 0),_.lW("ntcpe",k.connectEnd,void 0));k.secureConnectionStart>=_.jr()&&k.connectEnd-k.secureConnectionStart>0&&(_.lW("nstcps",k.secureConnectionStart,void 0),_.lW("ntcpe",k.connectEnd,void 0));_.Vw&&"getEntriesByType"in
_.Vw&&QgK();k=[];if(document.querySelector&&_.Vw&&_.Vw.getEntriesByName)for(var r in VxM)VxM.hasOwnProperty(r)&&(F=VxM[r],NZP(r,F)&&k.push(F));if(k.length>0)for(y.resourceInfo=[],r=_.T(k),k=r.next();!k.done;k=r.next())y.resourceInfo.push({resourceCache:k.value})}_.Rt(y);y=_.QNm();y.preLoggedGelInfos||(y.preLoggedGelInfos=[]);r=y.preLoggedGelInfos;y=_.NbI();k=void 0;for(F=0;F<r.length;F++)if(z=r[F],z.loadType){k=z.loadType;break}if(_.DiK().loadType==="cold"&&(y.loadType==="cold"||k==="cold")){k=_.plz();
F=_.QNm();F=F.gelTicks?F.gelTicks:F.gelTicks={};for(var w in k)if(!(w in F))if(typeof k[w]==="number")_.lW(w,_.bW(w));else if(_.V("log_repeated_ytcsi_ticks"))for(z=_.T(k[w]),c=z.next();!c.done;c=z.next())c=c.value,_.lW(w.slice(1),c);w={};k=!1;r=_.T(r);for(F=r.next();!F.done;F=r.next())k=F.value,_.njt(y,k),_.njt(w,k),k=!0;k&&_.Rt(w)}_.BbO(!0);w=_.Aq("TIMING_ACTION");_.d5("ytglobal.timingready_")&&w&&_.I9z()&&_.ZbO()&&_.diI()})()};
pUY=function(I,C){return Array.prototype.reduce.call(I,C,{duration:0})};
VxM={'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 jgR={};jgR.YtVisibilityRootBehavior=[_.Xqu.YtVisibilityObserverBehavior,{isVisibilityRoot:!0,resetVisibilityRoot:function(){_.Bi(this.visibilityObserverForChild_)},
disconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.disconnect(_.Aq("INNERTUBE_CLIENT_NAME")==="WEB")},
reconnectVisibilityRoot:function(){this.visibilityObserverForChild_&&this.visibilityObserverForChild_.reconnect();var I=_.Aq("INNERTUBE_CLIENT_NAME")!=="WEB";_.V("kevlar_use_vimio_behavior")&&I&&_.Y_S()}}];_.Q2={};_.Q2.YtPageBehavior=[[{listeners:{"yt-get-context-provider":"getContextProvider_"},attached:function(){this.getProvidedContext()&&this.getProvidedContext().start()},
detached:function(){this.getProvidedContext()&&this.getProvidedContext().pause()},
getContextProvider_:function(I){I.detail.contextProvider=this;I.stopPropagation()},
getProvidedContext:function(){return null}},
{created:function(){this.pageContext=null},
getProvidedContext:function(){return this.pageContext}}],
jgR.YtVisibilityRootBehavior,{_noAccessors:!0,properties:{active:Boolean,data:Object,loading:Boolean,pageDisposeJobs:Array},observers:["ytPageBehaviorActiveObserver_(active)"],created:function(){this.pageCount=0;this.readyResolver_=_.vP();this.pageScrollElement=null;this.isVisibilityRoot=!0},
ready:function(){this.readyResolver_.resolve()},
getReady:function(){return this.readyResolver_.promise},
loadPage:function(I){var C=this;this.pageCount+=1;_.V("kevlar_use_vimio_behavior")&&(_.Aq("INNERTUBE_CLIENT_NAME")==="WEB"?_.b$.addJob(function(){C.reconnectVisibilityRoot()},8):(this.disconnectVisibilityRoot(),this.reconnectVisibilityRoot()));
this.loadPage_(I)},
loadPage_:function(I){this.data=I},
ytPageBehaviorActiveObserver_:function(I){var C=this;_.V("kevlar_use_vimio_behavior")&&(I?_.Aq("INNERTUBE_CLIENT_NAME")==="WEB"?_.b$.addJob(function(){C.reconnectVisibilityRoot()},8):this.reconnectVisibilityRoot():this.disconnectVisibilityRoot())},
setScrollTop:function(I){if(!this.setScrollTopJobId_){var C=this;this.setScrollTopJobId_=window.requestAnimationFrame(function(){C.setScrollTopJobId_=0;var y=_.N().resolve(_.aU(_.Qc));y&&_.XZ8(y);this.getPageScrollingElement().scrollTop=I}.bind(this))}},
getPageScrollingElement:function(){return this.pageScrollElement||_.$g(document)},
getScrollTop:function(){return this.getPageScrollingElement().scrollTop}}];
}catch(e){_._DumpException(e)}
try{
var nLP;var Lm=function(){var I=_.q.apply(this,arguments)||this;I.playerListenerConfig=null;I.actionMap={"yt-show-watch-page-survey":"openSurvey"};return I};
_.R(Lm,_.q);_.u=Lm.prototype;_.u.dataChanged=function(){var I=this,C=_.hU();C&&C.getPlayerPromise().then(function(k){I.maybeRemovePlayerListeners(k)});
var y=this.data&&this.data.survey;y&&((y=(y=y.singleOptionSurveyRenderer||y.checkboxSurveyRenderer||y.multiStageSurveyRenderer)&&y.watchPageDisplayTriggers)?this.triggerWatchPageSurvey(C,y):this.openSurvey())};
_.u.triggerWatchPageSurvey=function(I,C){var y=this,k,F,z,c,r,w,L,D,p;return _.e(function(Q){if(Q.nextAddress==1)return I?_.n(Q,I.getPlayerPromise(),2):Q.return();y.player=Q.yieldResult;if(!y.player)return Q.return();k={};F=_.T(C);for(z=F.next();!z.done;z=F.next())c=z.value,r=_.T(y.createEventListenerPair(c)),w=r.next().value,L=r.next().value,D=w,p=L,D&&p&&(k[D]=p,y.ytPlayerListenerBehavior.listenToPlayerEvent(y.player,D,p));y.playerListenerConfig=k;_.oI(Q)})};
_.u.createEventListenerPair=function(I){var C=I.playbackEventTrigger;return C?this.handlePlaybackTrigger(C):(I=I.watchTimeTrigger)?this.handleWatchTimeTrigger(I):[void 0,void 0]};
_.u.handleWatchTimeTrigger=function(I){var C=this;this.accumulatedMediaTime=this.lastKnownPlaybackPosition=0;var y=I.videoWatchFraction,k=I.watchTimeSec;return k&&y?["onVideoProgress",function(){C.player&&C.isWatchTimeConditionMet(C.player,y,k)&&C.showSurvey()}]:[void 0,
void 0]};
_.u.isWatchTimeConditionMet=function(I,C,y){var k=I.getProgressState(),F=k.current-this.lastKnownPlaybackPosition;F<5&&(this.accumulatedMediaTime+=F);this.lastKnownPlaybackPosition=k.current;k=Math.round(this.accumulatedMediaTime/k.duration*1E3)/1E3;return I.getPresentingPlayerType&&I.getPresentingPlayerType()===1&&(this.accumulatedMediaTime>y||k>C)};
_.u.handlePlaybackTrigger=function(I){var C=this;I=I.playbackEvent;if(I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_PLAYBACK_FINISH"){var y="onStateChange";var k=function(F){F===0&&C.showSurvey()}}else I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_CONTENT_VIDEO_START"?(y="onVideoProgress",k=function(F){C.player&&C.player.getPresentingPlayerType&&C.player.getPresentingPlayerType()===1&&F&&C.showSurvey()}):I==="SURVEY_DISPLAY_TRIGGER_PLAYBACK_EVENT_AD_FINISH"&&(y="onAdEnd",k=this.showSurvey);
return[y,k]};
_.u.showSurvey=function(){this.openSurvey();this.player&&this.maybeRemovePlayerListeners(this.player)};
_.u.openSurvey=function(){var I=this,C=this.data&&this.data.survey;this.ytdReduxBehavior.dispatch(_.kTM(!!C));_.b$.addJob(function(){I.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"SURVEY",popup:C}})},0,0)};
_.u.maybeRemovePlayerListeners=function(I){if(this.playerListenerConfig){for(var C=_.T(Object.keys(this.playerListenerConfig)),y=C.next();!y.done;y=C.next())y=y.value,this.ytPlayerListenerBehavior.unlistenFromPlayerEvent(I,y,this.playerListenerConfig[y]);this.playerListenerConfig=null}};
Lm.prototype.dataChanged=Lm.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Lm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],Lm.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],Lm.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Lm.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],Lm.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Lm.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Lm.prototype,"playerListenerConfig",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Lm.prototype,"lastKnownPlaybackPosition",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],Lm.prototype,"accumulatedMediaTime",void 0);_.E([_.d(),_.h("design:type",Object)],Lm.prototype,"player",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lm.prototype,"dataChanged",null);Lm=_.E([_.m({is:"ytd-survey-trigger-renderer",disableElementRegistration:!0})],Lm);
_.Z(Lm,"ytd-survey-trigger-renderer",function(){if(nLP!==void 0)return nLP;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return nLP=I},{mode:1});
}catch(e){_._DumpException(e)}
try{
var FSK=new _.J("promotedSparklesWebRenderer");var uzj=new _.J("relatedChipCommand");var zaP;var T6S;var iO=function(){return _.q.apply(this,arguments)||this};
_.R(iO,_.q);iO.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iO.prototype,"data",void 0);iO=_.E([_.m({disableElementRegistration:!0,is:"ytd-compact-tvfilm-entry-point-renderer"})],iO);
_.Z(iO,"ytd-compact-tvfilm-entry-point-renderer",function(){if(T6S!==void 0)return T6S;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return T6S=I},{mode:1});var cVy;var eaB;var rVH;var wN=function(){return _.q.apply(this,arguments)||this};
_.R(wN,_.q);wN.prototype.ready=function(){this.initializeDefs()};
wN.prototype.initializeDefs=function(){var I=this.meta.byKey("yt-icons"),C=_.f(I).querySelector("#star"),y=_.f(I).querySelector("#star_half");I=_.f(I).querySelector("#star_border");C&&this.defs.appendChild(C.cloneNode(!0));y&&this.defs.appendChild(y.cloneNode(!0));I&&this.defs.appendChild(I.cloneNode(!0))};
wN.prototype.percentChanged=function(){for(var I=this.rating;I.firstChild;)I.removeChild(I.firstChild);var C=Math.round(this.percent/10);I=Math.floor(C/2);C%=2;var y=5-I-C;this.appendStars("star",I,0);this.appendStars("star_half",C,I);this.appendStars("star_border",y,I+C)};
wN.prototype.appendStars=function(I,C,y){for(var k=0;k<C;k++){var F=(18+this.spacing)*(k+y),z=document.createElementNS("http://www.w3.org/2000/svg","use");_.FwB(z,"#"+I);z.setAttribute("x",""+F);z.setAttribute("y","0");this.rating.appendChild(z)}};
wN.prototype.percentChanged=wN.prototype.percentChanged;_.E([_.z$("#defs"),_.h("design:type",HTMLElement)],wN.prototype,"defs",void 0);_.E([_.z$("#rating"),_.h("design:type",HTMLElement)],wN.prototype,"rating",void 0);_.E([_.d(),_.h("design:type",Number)],wN.prototype,"percent",void 0);_.E([_.d({value:6}),_.h("design:type",Number)],wN.prototype,"spacing",void 0);_.E([_.d({value:_.DQ.create("iron-meta",{type:"iconset"})}),_.h("design:type",_.jc)],wN.prototype,"meta",void 0);
_.E([_.FI("percent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wN.prototype,"percentChanged",null);wN=_.E([_.m({disableElementRegistration:!0,is:"ytd-ratings"})],wN);
_.Z(wN,"ytd-ratings",function(){if(rVH!==void 0)return rVH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rVH=I},{mode:1});var PM=function(){return _.q.apply(this,arguments)||this};
_.R(PM,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PM.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],PM.prototype,"data",void 0);PM=_.E([_.m({is:"ytd-offer-review-renderer",disableElementRegistration:!0})],PM);
_.Z(PM,"ytd-offer-review-renderer",function(){if(eaB!==void 0)return eaB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eaB=I},{mode:1});var Lg=function(){var I=_.q.apply(this,arguments)||this;I.badges=[{textBadge:{label:_.Ee("CC")}}];return I};
_.R(Lg,_.q);_.u=Lg.prototype;_.u.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
_.u.dataChanged=function(){var I=this.get("data.offerButton.buttonRenderer.serviceEndpoint");if(I&&I.commandMetadata&&_.l(I.commandMetadata,_.lv)&&_.l(I.commandMetadata,_.lv).fireAutomatically)_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}});else{var C;I&&((C=_.l(I,_.lv))==null?0:C.fireAutomatically)&&_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})}};
_.u.isEmptyContent=function(I){return this.isStorefrontEntryPointEmpty(I)&&this.shouldHideOfferModule(I)};
_.u.isStorefrontEntryPointEmpty=function(I){return!I||!I.storefrontEntryPoint};
_.u.shouldHideOfferModule=function(I){return!!I.hideVideoDetails};
_.u.isOfferModuleNavigationInactive=function(I){return!I.navigationEndpoint&&!I.serviceEndpoint};
_.u.maybeNavigateWithServiceEndpoint=function(){this.data&&this.data.navigationEndpoint||this.data&&this.data.serviceEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Lg.prototype.dataChanged=Lg.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Lg.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Lg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Lg.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isEmptyContent(data)"}),_.h("design:type",Boolean)],Lg.prototype,"hidden",void 0);
_.E([_.d(),_.h("design:type",Object)],Lg.prototype,"badges",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Lg.prototype,"dataChanged",null);Lg=_.E([_.m({disableElementRegistration:!0,is:"ytd-movie-offer-module-renderer"})],Lg);
_.Z(Lg,"ytd-movie-offer-module-renderer",function(){if(cVy!==void 0)return cVy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cVy=I},{mode:1});var iGY;var D3=function(){return _.q.apply(this,arguments)||this};
_.R(D3,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],D3.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],D3.prototype,"data",void 0);D3=_.E([_.m({disableElementRegistration:!0,is:"ytd-media-masthead-renderer"})],D3);
_.Z(D3,"ytd-media-masthead-renderer",function(){if(iGY!==void 0)return iGY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return iGY=I},{mode:1});var wBj;_.B9(_.bB8,"course-metadata-view-model",{props:{data:_.Z_,isOverlay:_.Z_}});var pg=function(){var I=_.q.apply(this,arguments)||this;I.isMetadataVisible=!1;I.modernPanels=_.V("kevlar_watch_modern_panels");I.actionMap={"yt-hide-tvfilm-offer-module":"handleHideAction"};return I};
_.R(pg,_.q);_.u=pg.prototype;
_.u.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"}}}}};
_.u.descriptionChanged=function(){this.expander.collapsed=!0;this.expander.reset()};
_.u.dataChanged=function(){this.hostElement.hidden=!1;this.isMetadataVisible=this.isExpandButtonToggled()};
_.u.expanderChanged=function(){var I;if((I=this.data)==null?0:I.expandedMetadata)this.expander.hidden=this.isMetadataVisible};
_.u.isExpandButtonToggled=function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.expandMetadataButton,_.$A))==null?void 0:C.isToggled};
_.u.onVisibilityButtonClick=function(){var I;if((I=this.data)==null?0:I.expandMetadataButton)this.isMetadataVisible=!this.isMetadataVisible};
_.u.handleHideAction=function(){this.data&&this.data.clientShouldSuppressIfCompanionAdDisplayed&&(this.hostElement.hidden=!0)};
pg.prototype.expanderChanged=pg.prototype.expanderChanged;pg.prototype.dataChanged=pg.prototype.dataChanged;pg.prototype.descriptionChanged=pg.prototype.descriptionChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pg.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pg.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],pg.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],pg.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],pg.prototype,"isMetadataVisible",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pg.prototype,"modernPanels",void 0);_.E([_.z$("#expander"),_.h("design:type",Object)],pg.prototype,"expander",void 0);_.E([_.FI("data.description"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pg.prototype,"descriptionChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pg.prototype,"dataChanged",null);_.E([_.FI("isMetadataVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pg.prototype,"expanderChanged",null);pg=_.E([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-module-renderer"})],pg);
_.Z(pg,"ytd-tvfilm-offer-module-renderer",function(){if(wBj!==void 0)return wBj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return wBj=I},{mode:2});var nPB;var QN=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-hide-unlimited-offer-module":"handleHideAction"};return I};
_.R(QN,_.q);QN.prototype.dataChanged=function(){this.hostElement.hidden=!1};
QN.prototype.configureRendererStamper=function(){return{"data.storefrontEntryPoint":{id:"storefront-entry-point",mapping:{compactTvfilmEntryPointRenderer:"ytd-compact-tvfilm-entry-point-renderer"}}}};
QN.prototype.onThumbnailTap=function(I){this.data&&this.data.serviceEndpoint&&(_.N().resolve(_.ID).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),I.stopPropagation())};
QN.prototype.handleHideAction=function(){this.data&&this.data.suppressIfCompanionAds&&(this.hostElement.hidden=!0)};
QN.prototype.dataChanged=QN.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QN.prototype,"rendererBehaviors",void 0);_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],QN.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],QN.prototype,"data",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QN.prototype,"dataChanged",null);QN=_.E([_.m({is:"ytd-unlimited-offer-module-renderer",disableElementRegistration:!0})],QN);
_.Z(QN,"ytd-unlimited-offer-module-renderer",function(){if(nPB!==void 0)return nPB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nPB=I},{mode:1});var Pwj;var LSS;var Nt=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-related-chip-command":"handleRelatedChipCommand"};return I};
_.R(Nt,_.q);Nt.prototype.configureRendererStamper=function(){return{"data.content":{id:"content",mapping:{chipCloudRenderer:{component:"yt-chip-cloud-renderer"}}}}};
Nt.prototype.handleRelatedChipCommand=function(I){I=_.l(I,uzj);var C=I.contents;C?_.uW(this.hostElement,"yt-item-section-replace-action",[C,I.targetSectionIdentifier]):_.uW(this.hostElement,"yt-item-section-continuation-action",[I.continuationData,I.targetSectionIdentifier])};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Nt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Nt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Nt.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Nt.prototype,"data",void 0);Nt=_.E([_.lT({is:"yt-related-chip-cloud-renderer",disableElementRegistration:!0})],Nt);
_.Z(Nt,"yt-related-chip-cloud-renderer",function(){if(LSS===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;Pwj===void 0&&(Pwj=document.createElement("template"));var k=Pwj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);LSS=I}I=LSS;return I},{mode:2});var VN=function(){var I=_.q.apply(this,arguments)||this;I.isTwoColumns=!0;I.hideOfferModules=!1;I.watchFeedBigThumbs=_.V("kevlar_watch_feed_big_thumbs");I.watchNextGridHideChips=_.V("kevlar_watch_grid_hide_chips");I.eligibleToSwitchToGrid=_.V("web_watch_eligible_to_switch_to_grid");I.disableShortsShelfHeightOverride=_.V("web_shorts_wn_shelf_ratio_tuning");I.isWatchNextGrid=!1;I.reuseComponents=!_.V("kevlar_watch_grid");I.nextContinuation={continuationType:"watchNextSecondaryResultsContinuation",contentsArray:"data.results",
continuationsArray:"data.continuations",responseContentsKey:"results",requestPath:"/related_ajax"};return I};
_.R(VN,_.q);_.u=VN.prototype;
_.u.configureRendererStamper=function(){return{"data.offerModule":{id:"offer-module",mapping:{movieOfferModuleRenderer:"ytd-movie-offer-module-renderer",episodeOfferModuleRenderer:"ytd-movie-offer-module-renderer",liveOfferModuleRenderer:"ytd-movie-offer-module-renderer",channelOfferModuleRenderer:"ytd-movie-offer-module-renderer",unlimitedOfferModuleRenderer:{component:"ytd-unlimited-offer-module-renderer",properties:{hidden:"[[hideUnlimitedOfferModule]]"}},tvfilmOfferModuleRenderer:{component:"ytd-tvfilm-offer-module-renderer",properties:{hidden:"[[hideTvfilmOfferModule]]"}},
ctaShelfRenderer:"ytd-brandconnect-cta-shelf-card-renderer"}},shownItems:{id:"items",reuseComponents:this.reuseComponents,mapping:{lockupViewModel:{component:"yt-lockup-view-model",params:{className:"ytd-watch-next-secondary-results-renderer lockup",sizing:"COMPACT",thumbnailFixedWidth:"168px",force16By9ThumbnailAspectRatio:!0},properties:{containerType:"[[lockupContainerType]]"}},compactMovieRenderer:"ytd-compact-movie-renderer",compactVideoRenderer:"ytd-compact-video-renderer",compactCourseVideoRenderer:"ytd-compact-video-renderer",
compactPromotedVideoRenderer:"ytd-compact-promoted-video-renderer",compactRadioRenderer:"ytd-compact-radio-renderer",compactPlaylistRenderer:"ytd-compact-playlist-renderer",promotedSparklesWebRenderer:"ytd-promoted-sparkles-web-renderer",adSlotRenderer:"ytd-ad-slot-renderer",relatedChipCloudRenderer:"yt-related-chip-cloud-renderer",itemSectionRenderer:{component:"ytd-item-section-renderer",params:{isWatch:!0},properties:{continuationShowButton:"[[showButton]]",eligibleToSwitchToGrid:"[[eligibleToSwitchToGrid]]"}},
reelShelfRenderer:"ytd-reel-shelf-renderer",richGridRenderer:{component:"ytd-rich-grid-renderer",properties:{disableStickyFilterBar:"[[isWatchNextGrid]]",transparentBackgroundChipsBar:"[[isWatchNextGrid]]",reducedBottomMargin:"[[isWatchNextGrid]]",rowReducedHorizontalMargin:"[[isWatchNextGrid]]"},params:{resizeOnObserverInit:!_.V("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}}};
_.u.getItemsPath=function(){return"data.results"};
_.u.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"results","yt-reload-continuation-items-command-body":"results"}};
_.u.created=function(){this.ytLazyListBehavior.initialCount=1};
_.u.ready=function(){_.CK(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%"})};
_.u.resultsChanged=function(){if(this.data&&this.data.results){for(var I=this.data.results,C=null,y=null,k=0;k<I.length;k++)I[k].relatedChipCloudRenderer?C=I[k].relatedChipCloudRenderer:I[k].itemSectionRenderer&&(y=I[k].itemSectionRenderer);if(C&&y)for(this.set("data.continuations",[]),I=_.l(C.content,_.Puw).chips,C=0;C<I.length;C++)if(k=this.get("chipCloudChipRenderer.navigationEndpoint.relatedChipCommand",I[C]),k.loadCached||!k.contents){k.contents=y.contents;break}}};
_.u.dataChanged=function(){var I=this,C;if((C=this.data)!=null&&C.results&&this.hasAllowedInstreamAd(this.playerData)){if(C=this.data.results.filter(function(r){return!!r.promotedSparklesWebRenderer})){for(var y=0;y<C.length;y++){var k=this.get("promotedSparklesWebRenderer.errorCommand.loggingUrls",C[y]);
if(k)for(var F=0;F<k.length;F++)k[F]&&k[F].baseUrl&&_.dI(k[F].baseUrl)}this.set("data.results",this.data.results.filter(function(r){return!r.promotedSparklesWebRenderer}))}if(C=this.data.results.filter(function(r){return!!I.getSparklesAd(r)})){C=_.T(C);
for(F=C.next();!F.done;F=C.next())if(k=y=void 0,F=(y=this.getSparklesAd(F.value))==null?void 0:(k=y.errorCommand)==null?void 0:k.loggingUrls)for(y=_.T(F),k=y.next();!k.done;k=y.next())(k=k.value)&&k.baseUrl&&_.dI(k.baseUrl);var z,c;this.set("data.results",(z=this.data)==null?void 0:(c=z.results)==null?void 0:c.filter(function(r){return!r.adSlotRenderer}))}}};
_.u.getSparklesAd=function(I){var C,y;I=_.l((C=I.adSlotRenderer)==null?void 0:(y=C.fulfillmentContent)==null?void 0:y.fulfilledLayout,_.dmq);return _.l(I==null?void 0:I.renderingContent,FSK)};
_.u.hasAllowedInstreamAd=function(I){I=this.get("adPlacements",I)||[];for(var C=0;C<I.length;C++){var y=this.get("adPlacementRenderer.config.adPlacementConfig",I[C]);if(y&&y.suppressDisplayAd)return!0}return!1};
_.u.computeHideUnlimitedOfferModule=function(I,C){return I&&I.offerModule&&C&&I.offerModule.unlimitedOfferModuleRenderer&&I.offerModule.unlimitedOfferModuleRenderer.suppressIfCompanionAds&&this.hasCompanionAds(C)?!0:!1};
_.u.hideUnlimitedOfferModuleChanged=function(){var I=_.f(this.hostElement).querySelector("ytd-unlimited-offer-module-renderer");I&&(I.hidden=this.hideUnlimitedOfferModule)};
_.u.updateLockupContainerTypes=function(I){if(this.eligibleToSwitchToGrid){var C;(C=Array.from(this.hostElement.querySelectorAll("#items yt-lockup-view-model")))==null||C.forEach(function(y){y.containerType=I})}};
_.u.computeHideTvfilmOfferModule=function(I,C){var y,k;return!!((I==null?0:(y=I.offerModule)==null?0:(k=y.tvfilmOfferModuleRenderer)==null?0:k.clientShouldSuppressIfCompanionAdDisplayed)&&C&&this.hasCompanionAds(C))};
_.u.hideTvfilmOfferModuleChanged=function(){var I=_.f(this.hostElement).querySelector("ytd-tvfilm-offer-module-renderer");I&&(I.hidden=this.hideTvfilmOfferModule)};
_.u.hasCompanionAds=function(I){I=this.get("adPlacements",I)||[];for(var C=0;C<I.length;C++){if(this.get("adPlacementRenderer.renderer.actionCompanionAdRenderer",I[C]))return!0;var y=void 0,k=void 0,F=void 0;if(!_.V("web_watch_top_banner_companion_check_killswitch")&&((y=I[C])==null?0:(k=y.adPlacementRenderer)==null?0:(F=k.renderer)==null?0:F.topBannerImageTextIconButtonedLayoutViewModel))return!0}return!1};
_.u.hasSuppressedResults=function(I){return I==null?!0:I.filter(function(C){return!C.continuationItemRenderer&&!C.compactPromotedVideoRenderer&&!C.promotedSparklesWebRenderer}).length===0};
_.u.computeShowButton=function(I,C){return this.isWatchNextGrid?I:I||this.hasSuppressedResults(C)};
_.u.showButtonChanged=function(){if(this.isWatchNextGrid){var I=_.f(this.hostElement).querySelector("ytd-rich-grid-renderer");I&&this.showButton!==null&&(I.continuationShowButton=this.showButton)}else{I=_.f(this.hostElement).querySelector("yt-next-continuation");var C=_.f(this.hostElement).querySelector("ytd-continuation-item-renderer"),y=_.f(this.hostElement).querySelector("ytd-item-section-renderer");I&&(I.showButton=this.showButton);C&&(C.showButton=this.showButton);y&&(y.continuationShowButton=
this.showButton)}};
_.u.continuationTap=function(I){var C;if(((C=this.data)==null?void 0:C.continuations)!=null&&I.target.tagName==="TP-YT-PAPER-BUTTON")for(I=this.data.continuations,C=0;C<I.length;C++)I[C].nextContinuationData&&this.ytRendererBehavior.logExplicitClick(I[C].nextContinuationData||{})};
_.u.shownItemsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("shown-items-changed",this.shownItems))};
_.H1.Object.defineProperties(VN.prototype,{lockupContainerType:{configurable:!0,enumerable:!0,get:function(){return this.eligibleToSwitchToGrid&&this.containsLockupViewModel?this.isGridViewEnabled?2:3:3}},
containsLockupViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.shownItems)==null||!I.some(function(C){return!!C.lockupViewModel}))}}});
VN.prototype.shownItemsChangedForBinding=VN.prototype.shownItemsChangedForBinding;VN.prototype.showButtonChanged=VN.prototype.showButtonChanged;VN.prototype.hideTvfilmOfferModuleChanged=VN.prototype.hideTvfilmOfferModuleChanged;VN.prototype.updateLockupContainerTypes=VN.prototype.updateLockupContainerTypes;VN.prototype.hideUnlimitedOfferModuleChanged=VN.prototype.hideUnlimitedOfferModuleChanged;VN.prototype.dataChanged=VN.prototype.dataChanged;VN.prototype.resultsChanged=VN.prototype.resultsChanged;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],VN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],VN.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.YZ.YtNextContinuationBehavior),_.h("design:type",Object)],VN.prototype,"ytNextContinuationBehavior",void 0);
_.E([_.g(_.b1),_.h("design:type",Object)],VN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],VN.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],VN.prototype,"playerData",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],VN.prototype,"autoFill",void 0);_.E([_.d({value:60}),_.h("design:type",Number)],VN.prototype,"targetFramerate",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VN.prototype,"isTwoColumns",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VN.prototype,"hideOfferModules",void 0);_.E([_.d(),_.h("design:type",Object)],VN.prototype,"shownItems",void 0);_.E([_.d({computed:"computeHideUnlimitedOfferModule(data, playerData)"}),_.h("design:type",Boolean)],VN.prototype,"hideUnlimitedOfferModule",void 0);
_.E([_.d({computed:"computeHideTvfilmOfferModule(data, playerData)"}),_.h("design:type",Boolean)],VN.prototype,"hideTvfilmOfferModule",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VN.prototype,"watchFeedBigThumbs",void 0);_.E([_.d(),_.h("design:type",Object)],VN.prototype,"watchNextGridHideChips",void 0);_.E([_.d(),_.h("design:type",Object)],VN.prototype,"eligibleToSwitchToGrid",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VN.prototype,"disableShortsShelfHeightOverride",void 0);_.E([_.d({selector:_.KM}),_.h("design:type",Object)],VN.prototype,"isGridViewEnabled",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],VN.prototype,"showMoreButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],VN.prototype,"isWatchNextGrid",void 0);
_.E([_.d({computed:"computeShowButton(showMoreButton, data.results)"}),_.h("design:type",Boolean)],VN.prototype,"showButton",void 0);_.E([_.rW("data.results.*"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"resultsChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"dataChanged",null);
_.E([_.FI("hideUnlimitedOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"hideUnlimitedOfferModuleChanged",null);_.E([_.v("isGridViewEnabled","containsLockupViewModel","data"),_.d({reflectToAttribute:!0}),_.h("design:type",Number),_.h("design:paramtypes",[])],VN.prototype,"lockupContainerType",null);
_.E([_.FI("lockupContainerType","data"),_.h("design:type",Function),_.h("design:paramtypes",[Number]),_.h("design:returntype")],VN.prototype,"updateLockupContainerTypes",null);_.E([_.FI("hideTvfilmOfferModule"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"hideTvfilmOfferModuleChanged",null);_.E([_.FI("showButton"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"showButtonChanged",null);
_.E([_.FI("shownItems"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VN.prototype,"shownItemsChangedForBinding",null);_.E([_.v("shownItems"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VN.prototype,"containsLockupViewModel",null);
_.Z(VN,"ytd-watch-next-secondary-results-renderer",function(){if(zaP===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-next-secondary-results-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="offer-module" hidden="[[hideOfferModules]]" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="items" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n<div id="continuations" hidden="[[canShowMore]]" on-click="continuationTap" class="style-scope ytd-watch-next-secondary-results-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);zaP=I}I=zaP;return I},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.v2L={};
_.v2L.YtdWatchBehavior=[_.M.YtRendererBehavior,_.gn.YtPlayerListenerBehavior,_.B7.YtRendererstamperBehavior,_.Et.YtActionHandlerBehavior,_.Q2.YtPageBehavior,_.IW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},clarifyBoxValue:{type:Object},
conversationBar:{type:Object},infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},merchShelfInSd:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,
value:null},playerData:{type:Object,observer:"playerDataChanged_"},playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g5("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("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 _.g5("START_IN_THEATER_MODE")}},
loading:{type:Boolean,observer:"onLoadingChanged_"},loadingData:{type:Object,value:{playlist:!1}},playerUnavailable:{type:Boolean,value:!1,reflectToAttribute:!0,computed:"isPlayerUnavailable_(playerData.playabilityStatus, playerLoading_, playerOverlays)"},playerOverlays:{type:Object,value:null,computed:"getPlayerOverlays_(data)"},plaShelfEnabled_:{type:Boolean,value:!1,computed:"isPlaShelfEnabled_(playerData)"},monetizationShelvesEnabled_:{type:Boolean,value:!0},watchNextShownItems:Array,watchNextCanShowMore:Boolean,
hidden:{type:Boolean,reflectToAttribute:!0,value:!1},shouldStampChat:{type:Boolean,value:!1,computed:"computeShouldStampChat_(data, hidden)",observer:"secondaryColumnModulePresenceChanged_",reflectToAttribute:!0},shouldCollapseDonationShelf:{type:Boolean,value:!1,computed:"computeIsDonationShelfCollapsed_(shouldStampChat)",reflectToAttribute:!0},shouldShowMerchShelf:{type:Boolean,value:!1,computed:"computeShouldShowMerchShelf(merchShelf, monetizationShelvesEnabled_)",reflectToAttribute:!0},canScheduleCommentJobs_:{type:Boolean,
value:!0},videoId:{type:String,value:"",computed:"identity(data.currentVideoEndpoint.watchEndpoint.videoId)",reflectToAttribute:!0},isTwoColumns_:{type:Boolean,reflectToAttribute:!0,observer:"isTwoColumnsChanged_"},isVerticalVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsVerticalVideo_(videoHeightToWidthRatio_)"},isFourThreeToSixteenNineVideo_:{type:Boolean,reflectToAttribute:!0,computed:"computeIsFourThreeToSixteenNineVideo_(videoHeightToWidthRatio_)"},isExtraWideVideo_:{type:Boolean,
reflectToAttribute:!0,computed:"computeIsExtraWideVideo_(videoHeightToWidthRatio_)"},videoHeightToWidthRatio_:{type:Number,value:.5625,observer:"videoHeightToWidthRatioChanged_"},flexySmallWindow_:{type:Boolean,reflectToAttribute:!0},flexyLargeWindow_:{type:Boolean,reflectToAttribute:!0},playerLoading_:{type:Boolean,value:!1},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},squeezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"squeezebackChanged",computed:"computeSqueezeback(engagementPanelExpanded, fullscreen)"},richItemMinWidth:{type:Number,value:function(){return _.s8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.s8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.V("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.V("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_fullerscreen_deprecation_ui")}},
iMaxTheaterMode:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_imax_theater_mode")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.V("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_frame0_loading_state")}},
retroMode:{type:Boolean,value:!1},roundedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeRoundedPlayer(defaultLayout, retroMode)"},showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,
reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_thumbnail_to_watch_transition")}},
playerContainerBackgroundImage:{type:Object,computed:"computePlayerContainerBackgroundImage(playerData, miniplayerIsActive)"},miniplayerIsActive:{type:Boolean}},observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout);onMiniplayerActiveReduxValueUpdate(miniplayerIsActive)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var I={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:_.Xr(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Xr(["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"||_.V("swa_prov_panels_ks")?_.V("web_watch_inject_placeholder_panels")?I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.V("kevlar_use_engagement_panel_management_component")||
(I["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):(I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},I.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});
return I},
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 I=this;this.watchController=void 0;this.pageDisposeJobs=[function(){I.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||I.clearComments_()},
function(){I.clearPlayerAds_()},
function(){I.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;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.VUL(function(){return _.EZ(I)},this.hostElement);
this.pageDisposeJobs.push(function(){I.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){I.resetFullerscreenEduButtonForNewPlayback_()}));
this.fullHeightPanelPositionUpdateJobId=this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0;this.playerEvents_=new _.kr;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;_.V("kevlar_watch_metadata_refresh")&&
(this.watchMetadata=void 0);_.V("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));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.sb(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(I){I&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:I}),I.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(I){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=I,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(I){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||I||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(I){this.active!==void 0&&(this.fullscreen=I,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(I){this.active!==void 0&&(_.k3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(I>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(I){this.initCsi_();this.updatePageData_(I)},
updatePageData_:function(I){var C=this;if(I)if(this.data===I){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||_.xM(y,this.data)}else this.data=I;this.playlist&&_.Gg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Sr("nw");this.loading=!1;_.NU(_.b$,function(){C.initDclkstatus_();var k,F=((k=C.player)==null?void 0:k.getVideoData().cpn)||"";_.zLR(function(z,c){_.jDK(z,c,F)})})},
onPageLoadWithSameData_:function(){_.V("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 I=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!I);this.set("loadingData.playlistLoading",I&&I!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),I=this.watchNextSkeletonEl_.firstElementChild;I;)I.classList.remove("hidden"),I=I.nextElementSibling;if(_.V("kevlar_watch_frame0_loading_state")){var C,y,k;I=(C=this.loadingData)==null?void 0:(y=C.endpoint)==null?void 0:(k=y.watchEndpoint)==null?void 0:k.videoId;var F;I&&(F="https://i.ytimg.com/vi/"+I+"/frame0.jpg");_.f(this.hostElement).querySelector("#player").style.backgroundImage=F?"url("+F+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var I=_.f(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&I&&(I.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,y;(y=(C=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(C);var k,F;(F=(k=this.watchMetadata).resize)==null||F.call(k)}_.V("kevlar_watch_frame0_loading_state")&&(_.f(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(I){var C=_.f(this.hostElement).querySelector(I);C?_.ot(C,!1):_.SN(new _.ph("Overscroll monitor not found for component: ",I))},
removeSplitScrollMouseTrap:function(I){var C=_.f(this.hostElement).querySelector(I);C?_.yw(C):_.SN(new _.ph("Disposal component for  overscroll monitoring not found: ",I))},
onLoadingChanged_:function(I){I?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(I){var C=this;I?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.b$.addLowPriorityJob(function(){C.onWindowResized_(_.np(!0))})},
updateTheaterModeState_:function(I){if(!_.V("kevlar_watch_flexy_theater_manager")){I=I||this.fullWindowMode_;if(this.theater!==void 0||I)this.theater=I;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();I&&_.V6y()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation();this.updatePanelsLocation()},
updatePlayerLocation:function(){var I=this.theater;_.V("external_fullscreen")&&this.fullscreen&&(I=!0);I=I?_.f(this.hostElement).querySelector("#player-full-bleed-container"):_.f(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),y=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");C.parentElement!==I&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.EZ(this).appendTo(I,C),I.appendChild(_.f(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var I=this;return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.N().resolve(_.WJ).deactivate(),2);I.updatePlayerLocation();_.oI(C)})},
updateCinematicsLocation:function(){var I=this.getElement("CINEMATICS");if(I){var C=this.getCinematicsLocationContainer();I.parentElement!==C&&C.appendChild(I);var y;(y=this.watchController)==null||_.ytR(y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.f(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.f(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(I,C){var y=document.documentElement.hasAttribute("dark"),k=y&&_.V("web_cinematic_theater_mode"),F=y&&_.V("web_cinematic_fullscreen");y=!y&&this.cinematicLightTheme;return I&&k||C&&F||(C||I)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var I=this,C;(C=this.watchController)==null||_.xM(C,this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.N().resolve(_.Gk).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,_.V("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.b$.addLowPriorityJob(function(){_.uW(I.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var y,k,F;if((y=this.data)==null?0:(k=y.contents)==null?0:(F=k.twoColumnWatchNextResults)==null?0:F.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,c;((z=this.data)==null?0:(c=z.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(I){var C;(C=this.watchController)==null||_.du(C,this.playerData);I&&I.playabilityStatus&&(C=this.isVideoPlayable_(I.playabilityStatus,this.getPlayerOverlays_(this.data)),I=this.isLiveStreamOffline_(I.playabilityStatus),C&&!I||_.hn(this,function(){_.Sr("pbu")}));
this.setPlayerAds_();_.uW(this.hostElement,"ytd-watch-player-data-changed")},
computePlayerContainerBackgroundImage:function(I,C){if((_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"))&&this.playerData&&C)return this.playerData.videoDetails},
watchPageActiveChanged_:function(I){_.Hg().dispatch(_.LJY(this.active));I?this.activate_():this.deactivate_()},
attached:function(){var I=this;this.watchController=new _.W0(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.du(this.watchController,this.playerData);this.data&&_.xM(this.watchController,this.data);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.EZ(this);_.V("kevlar_disable_prepare_player")||C.preparePlayer();
_.V("kevlar_watch_flexy_playlist_manager")||_.N().resolve(_.Gk).setPlayer(C);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.Nw()+"px"};this.is==="ytd-watch-grid"&&(C["--ytd-watch-flexy-sidebar-width"]=_.WM+"px",C["--ytd-watch-grid-horizontal-page-margins"]=_.At+"px",C["--ytd-watch-grid-columns-top-margins"]=_.kQH+"px",C["--ytd-watch-grid-min-player-height-medium"]="360px");!_.s8("kv_pl_mx_sz_ks")&&_.s8("kevlar_watch_max_player_width")&&
(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.zej+"px");_.s8("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.T$M+"px");this.safeUpdateStyles(C);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new _.eQ(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return I.onPlayerTouchPanDown_()}}));
_.V("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.f(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var I=_.Nw(),C=_.gN+I,y=C;this.fixedPanels&&(C+=_.WM);var k=657+I;I=1327+I;_.f(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.f(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(k+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(I+"px)");_.f(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(I+"px)");_.f(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+y+"px)"},
calculateCurrentPlayerSize_:function(){var I=_.f(this.hostElement).querySelector("#miniplayer-bar").firstChild;return I&&I.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.y6(NaN,NaN):_.ZM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ZM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Bi(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var I=this;this.onWindowResized_(_.np());_.V("browse_skeleton_removal_on_watch_killswitch")||_.g5("IS_SHELL_LOAD")&&_.wUY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.EZ(this);C.addEventListener("yt-player-updated",_.sb(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(y){I.playerApiReady_(y)});
_.V("kevlar_watch_flexy_playlist_manager")||(C=_.N().resolve(_.Gk),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.sb(this,this.onYtNavigate_)),C.setPlaylistComponent(_.f(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.sb(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.b$.addLowPriorityJob(function(){_.k3(I.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.EZ(this).removeEventListener("yt-player-updated",_.sb(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.V("kevlar_watch_flexy_playlist_manager")){var I=_.N().resolve(_.Gk);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&I.removeEventListener("yt-navigate",_.sb(this,this.onYtNavigate_));
I.cancelVideoSkip();I.removeEventListener("yt-playlist-data-updated",_.sb(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.k3(this.hostElement,"yt-autonav-pause-player",!1);I=_.CA();_.V("kevlar_exit_fullscreen_leaving_watch")&&I&&_.sN(I)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(I){this.player&&this.player.updateVideoData({rvs:I.rvs})},
getPageContents:function(I){return I&&I.contents&&I.contents.twoColumnWatchNextResults&&I.contents.twoColumnWatchNextResults.results&&I.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(I){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",I)},
onRetrieveLocation_:function(I,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);I.stopPropagation()},
onSubscriptionChanged_:function(I,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pm("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.f(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.f(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(I){this.player=I;this.setPlayerState(I.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.Ja()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(I,C){C=C===void 0?!0:C;_.CA()&&_.V("external_fullscreen")&&_.sN(document.documentElement);this.theaterRequested_=I;C&&_.nh("wide",I?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();this.schedulePanelMaxHeightUpdate_();_.Fe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.k3(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(I){_.Ki(I,typeof this.player),this.player&&_.Ki(I,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var I;((I=this.player)==null?0:I.isFullscreen())?this.player.toggleFullscreen():_.Fe(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(I,C){return this.loading?C:!!Object.keys(I).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(I){if(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next())C=C.value,C.youThereRenderer&&_.XMP(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(I){return I||{}},
userEngagementConfigDataChanged_:function(I){if(I)if(I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.Ci()<I.lowEngagementThresholdMs||_.YYy(C,!0)}else I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Fe(this.hostElement,"yt-autonav-pause-user-engagement",[I])},
isPlayerUnavailable_:function(I,C,y){return!!I&&!this.isVideoPlayable_(I,y)&&!C},
getPlayerOverlays_:function(I){return(I==null?void 0:I.playerOverlays)||null},
isVideoPlayable_:function(I,C){if(!I)return!1;var y=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",k=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",I)||this.get("errorScreen.ypcTrailerRenderer",I);I=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",I);var F;C=C==null?void 0:(F=C.playerOverlayRenderer)==null?void 0:F.gatedActionsOverlayRenderer;return!!y||!!k||!!I||!!C},
hasWatchNextResponseErrorRenderer:function(I){var C=this.getPageContents(I),y,k,F,z,c;return!(I==null?0:(y=I.contents)==null?0:(k=y.twoColumnWatchNextResults)==null?0:k.secondaryResults)&&!!((F=C[0])==null?0:(z=F.itemSectionRenderer)==null?0:(c=z.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(I){return I?I.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(I,C,y){var k=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),F=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];F=_.V("web_no_skip_video_on_verification_checks")?(I==null?void 0:I.status)&&F.includes(I.status):I&&I.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",I);z==void 0&&(z=!0);!y||this.isVideoPlayable_(I,this.getPlayerOverlays_(C))||
k||F||!z||_.N().resolve(_.Gk).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.n2H()},
onPlayerFeedbackStartRequest_:function(I){_.Fe(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:I}])},
onPlayerFeedbackArticleRequest_:function(I){_.Fe(this.hostElement,"yt-help-dialog-requested",[I])},
onPlayerYpcContentRequest_:function(){var I,C,y,k,F,z,c,r,w=((I=this.data)==null?NaN:(C=I.contents)==null?NaN:(y=C.twoColumnWatchNextResults)==null?NaN:(k=y.secondaryResults)==null?NaN:(F=k.secondaryResults)==null?NaN:(z=F.offerModule)==null?NaN:(c=z.tvfilmOfferModuleRenderer)==null?NaN:(r=c.actionButtons)==null?NaN:r.length)-1;I=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];C=_.T(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=C.next();!y.done;y=C.next())for(y=y.value,k=_.T(I),F=k.next();!F.done;F=k.next())if(F="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+F.value,F=this.get(F+"navigationEndpoint",this.data)||this.get(F+"serviceEndpoint",this.data)||this.get(F+"command",this.data)){_.uU(F,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(I){_.k3(this.hostElement,"yt-autonav-pause-player",I)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(I){I()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.k3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(I)},
setPlayerState:function(I){_.Hg().dispatch(_.mVP(I))},
onPlayerSubscribe_:function(I){_.Fe(this.hostElement,"yt-player-subscribe",[I])},
onPlayerUnsubscribe_:function(I){_.Fe(this.hostElement,"yt-player-unsubscribe",[I])},
onPlayerAdYtShowToast_:function(I){_.Fe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:I.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(I){if(I)return I},
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(I){return!_.V("web_watch_move_summary_to_sd")&&!!I},
computeWatchMetadataRefresh:function(){return _.V("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
computeRoundedPlayer:function(){return this.defaultLayout&&!(_.V("web_player_rtr_ctrls")&&this.retroMode)},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var I,C,y,k;this.watchNextSecondaryResults=(I=this.data)==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.secondaryResults)==null?void 0:k.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.V("swatcheroo_pbs_load_grid")&&!_.V("swatcheroo_provide_all_data_on_scheduled_job")){_.b$.cancelJob(this.setRichGridJobId_);var I,C,y,k,F,z,c;this.setRichGridRendererData((I=this.data)==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.secondaryResults)==null?void 0:(F=k.secondaryResults)==null?void 0:(z=F.results)==null?void 0:(c=z[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(I){this.richGridRendererData=I},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var I,C=(I=this.data)==null?void 0:I.engagementPanels;if(C==null?0:C.length){I=null;C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;if(((k=y.engagementPanelSectionListRenderer)==null?void 0:k.targetId)==="engagement-panel-structured-description"){I=y;break}}var F,z,c;I=(F=I)==null?void 0:(z=F.engagementPanelSectionListRenderer)==null?void 0:(c=z.content)==null?void 0:c.structuredDescriptionContentRenderer;if(I==null?0:I.items){F=
[];z=_.T(I.items);for(c=z.next();!c.done;c=z.next()){c=c.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var r=k=y=C=I=void 0,w=void 0,L=(I=c.horizontalCardListRenderer)==null?void 0:(C=I.header)==null?void 0:(y=C.richListHeaderRenderer)==null?void 0:(k=y.navigationButton)==null?void 0:(r=k.buttonRenderer)==null?void 0:(w=r.command)==null?void 0:w.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(D){return!_.l(D,_.lKy)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||F.push(c)}return{items:F}}}},
constructWarning_:function(I){return{text:_.Ee(I),type:"WARNING"}},
isPlaShelfEnabled_:function(I){if((this.get("adPlacements",I)||[]).length)return!0;I=this.get("playerAds",I)||[];return!(!I.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",I[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var I=this;_.k3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.EZ(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(I.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.k3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var I=this;this.commentsReady=!1;_.b$.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.NU(_.b$,function(){I.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Sr("cmi");_.b$.cancelJob(this.setCommentsJobId_);var I=this.getPageContents(this.data);if(I&&I.length){I=_.T(I);for(var C=I.next();!C.done;C=I.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.k3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Sr("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.b$.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.b$.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(I,C){var y=_.l(C.endpoint,_.H$);y&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==C.videoId||y.playlistId&&y.playlistId!==C.playlistId||y.index!==void 0&&y.index!==C.index||typeof y.startTimeSeconds!=="number"||(I.stopPropagation(),this.setScrollTop(0),_.EZ(this).getPlayerPromise().then(function(k){var F=y.startTimeSeconds;k.seekTo(F);k.wakeUpControls();F<k.getDuration()&&k.playVideo()})))},
updatePlayerStartTime_:function(){var I=_.uKP();"t"in I&&(I=_.wML(I.t),this.player.seekTo(I,!0))},
updateTitleFromWatchNext:function(I){I=this.getPageContents(I);var C,y;(I=_.hS(I==null?void 0:(C=I[0])==null?void 0:(y=C.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.k3(this.hostElement,"yt-update-title",I)},
updateTitle_:function(I){I=this.get("videoDetails.title",I)||"";_.k3(this.hostElement,"yt-update-title",I)},
syncWithRemoteVideo_:function(I,C,y){if(this.active&&this.player){var k=this.player.getVideoData();if(k.video_id===y&&(y=k.list,_.V("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),k.video_id!==I||y!=C)){var F;_.V("kevlar_player_watch_endpoint_navigation")?F=_.EIF(_.TNL(I,C)):F=this.buildWatchEndpoint_(I,C);_.k3(this.hostElement,"yt-navigate",{endpoint:F,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(I,C,y){return _.IQ(I,C,y)},
initDclkstatus_:function(){_.rtB()},
attachWatchPageSkeleton_:function(){var I=document.querySelector("#watch-page-skeleton");if(I){var C=I.querySelector("#primary-info"),y=I.querySelector("#secondary-info"),k=I.querySelector("#related");C&&_.f(this.hostElement).querySelector("#info-skeleton").appendChild(C);y&&_.f(this.hostElement).querySelector("#meta-skeleton").appendChild(y);k&&(_.f(this.hostElement).querySelector("#related-skeleton").appendChild(k),this.watchNextSkeletonEl_=k);_.ey(I)}},
handlePlayerUpdated_:function(){_.EZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(I,C){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof C!=="undefined"){var y=this.watchNextSkeletonEl_.children,k=I&&I.indexSplices.length?I.indexSplices[0].index:0;I=Math.min(this.watchNextShownItems.length,y.length);C||(k=0,I=y.length);for(C=k;C<I;C++)y[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(I){_.V("external_fullscreen")||_.Fe(this.hostElement,"yt-player-fullscreen",[I.fullscreen])},
onFullscreenChange_:function(I){this.fullscreen=I;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.EZ(this);C.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.CA())});
this.updateFullBleedElementLocations();I&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(I,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(I){return I},
computeShouldShowMerchShelf:function(I,C){return C&&!!I},
computeResponseHasComments:function(I){var C,y,k,F,z;return!!(I==null?0:(C=I.contents)==null?0:(y=C.twoColumnWatchNextResults)==null?0:(k=y.results)==null?0:(F=k.results)==null?0:(z=F.contents)==null?0:z.some(function(c){var r;return(c==null?void 0:(r=c.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(I,C,y,k){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&k?!1:!!I&&!!Object.keys(I).length&&!C},
identity:_.gH,onWindowResized_:function(I){this.windowSize_=I;this.active&&(this.schedulePlayerSizeUpdate_(!0),this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_());_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(I){var C=this;I&&I.type!=="dataloaded"&&I.type!=="dataupdated"||_.EZ(this).getPlayerPromise().then(function(y){var k=y.getPlayerState();k!==5&&k!==0&&(y=1/y.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==y&&(C.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(I){var C=this,y=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),k=function(){if(C.watchMetadata){var F,z;(z=(F=C.watchMetadata).resize)==null||z.call(F)}_.EZ(C).getPlayerPromise().then(function(c){if(_.V("kevlar_set_internal_player_size")){if(!y||!C.isMiniplayerActive()){var r=C.calculateCurrentPlayerSize_();c.setInternalSize(r.width,r.height)}}else c.setSize(NaN,NaN);_.V("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
I?k():_.jj(_.b$,k)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(I){this.set("data.survey",I.detail)},
onYtShowSurveyCommand_:function(I){this.set("data.survey",_.l(I,_.NNH).survey)},
onDownloadedVideoDeleted:function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1){if(!C.active||(y=C.playerData)==null||!y.offlineState||C.videoId!==I)return F.return();(k=C.player)==null||k.stopVideo();_.ck().navigatingAwayFromWatchDeletedVideo=!0;_.uU(_.KSt,C.hostElement);return _.n(F,_.ck().navigationFinishPromise,2)}_.ck().navigatingAwayFromWatchDeletedVideo=!1;_.oI(F)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var I;this.theater?I=_.St(.5625*this.windowSize_.width,480,this.windowSize_.height-185):I=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==I&&(this.watchWhileScrollThreshold_=I,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var I=_.f(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&I){var C=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!I.active&&C&&y>=this.watchWhileScrollThreshold_?(I.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):I.active&&(!C||y<this.watchWhileScrollThreshold_&&!_.CA())&&(I.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var I=_.f(this.hostElement).querySelector("#secondary-inner");if(I){var C=_.f(this.hostElement).querySelector("#below"),y=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#comments");k&&y&&C&&(this.defaultTwoColumnLayout?(I.appendChild(k),y.appendChild(I)):(C.appendChild(k),_.Kg(C,I)))}}},
isTwoColumnsChanged_:function(I,C){if(I!==!0||C!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(I=_.f(this.hostElement).querySelector("#secondary-inner"))){C=_.f(this.hostElement).querySelector("#below");var y=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#comments");k&&y&&C&&(this.isTwoColumns_?(I.appendChild(k),y.appendChild(I)):(C.appendChild(k),_.Kg(C,I)))}}else{I=!_.V("live_chat_over_engagement_panels");C=_.f(this.hostElement).querySelector("#chat-container");
y=_.f(this.hostElement).querySelector("#panels");var F=_.f(this.hostElement).querySelector("#alerts");k=_.f(this.hostElement).querySelector("#playlist");var z=_.f(this.hostElement).querySelector("#related"),c=_.f(this.hostElement).querySelector("#donation-shelf"),r=_.f(this.hostElement).querySelector("#comments");this.isTwoColumns_?(F=_.f(this.hostElement).querySelector("#secondary-inner"),I&&F.appendChild(y),F.appendChild(k),_.V("web_watch_theater_chat")||F.appendChild(C),I||F.appendChild(y),F.appendChild(c),
F.appendChild(z)):(I&&_.fQ(y,F),_.fQ(k,F),_.V("web_watch_theater_chat")||_.fQ(C,F),I||_.fQ(y,F),_.fQ(c,F),r&&_.fQ(z,r));this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.V("web_watch_theater_chat")){var I=_.f(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?_.V("web_watch_theater_chat_beside_player")?(C=_.f(this.hostElement).querySelector("#panels-full-bleed-container"),(I==null?void 0:I.parentElement)!==C&&C.append(I),this.panelsBesidePlayer=!0):
_.V("web_watch_theater_fixed_chat")&&(C=_.f(this.hostElement).querySelector("#columns"),(I==null?void 0:I.parentElement)!==C&&C.append(I),this.fixedPanels=!0):(_.V("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.V("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),C=_.f(this.hostElement).querySelector("#playlist"),I&&C?_.SZ(I,C):_.SN(new _.ph("Missing element when updating chat location",{"chatContainer defined":!!I,"playlist defined":!!C})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(I,C){return _.V("sw_metadata_vis_toggle_ks")?!0:!!I||!!C},
computeForceDarkPanelTheme:function(I){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&I:!1},
safeUpdateStyles:function(I){try{_.CK(this.hostElement,I)}catch(C){_.SN(C)}},
videoHeightToWidthRatioChanged_:function(I,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(I){this.videoHeightToWidthRatio_=1/I},
computeIsVerticalVideo_:function(I){return I>=1},
computeIsFourThreeToSixteenNineVideo_:function(I){return I<=.7501&&I>=.5624},
computeIsExtraWideVideo_:function(I){return I<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.EZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.EZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.GsB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(I){var C=_.Fk(I)||0;_.ky(I,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var I=_.Fk("yt-fullerscreen-edu-button-click-count")||0,C=_.Fk("yt-fullerscreen-edu-button-shown-count")||0,y=_.s8("external_fullscreen_button_shown_threshold"),k=I>=_.s8("external_fullscreen_button_click_threshold")||C>=y;_.EZ(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonSubtleModeState(k)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(I,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.N().resolve(_.Gk).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var I=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.b$.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.b$.addLowPriorityJob(function(){I.fullHeightPanelPositionUpdateJobId=0;var C=_.f(I.hostElement).querySelector("#secondary"),y=_.f(I.hostElement).querySelector("#fixed-secondary");C=C.getBoundingClientRect();var k=C.width;I.swatcherooSqueezeback&&
(k+=_.At);if(I.swatcherooSqueezeback){var F=_.f(I.hostElement).querySelector("#squeezeback-constraining-container");F.style.width=k+"px";F.style.flex="0 0 "+k+"px"}y.style.width=k+"px";y.style.left=C.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var I=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.b$.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.b$.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;var C;!I.isTwoColumns_||I.theater||I.fullscreen?C=460:C=I.calculateNormalPlayerSize_().height;var y=C+"px";_.V("live_chat_taller_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.V("live_chat_medium_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");I.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var I=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.V("web_watch_flexy_adjust_sidebar_width"))&&!_.V("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.b$.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.b$.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;if(I.isTwoColumns_){var C=_.ig8(I.windowSize_,I.calculateNormalPlayerSize_().width);C!==I.currentSidebarWidth&&(I.currentSidebarWidth=
C,I.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":C+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(I){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",I)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cQ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(I){var C=_.f(this.hostElement).querySelector("#engagement-panel-scrim");I?C.addEventListener("tap",_.sb(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.sb(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(I){if(this.hostElement.contains(I)&&!this.scrollToAnimation_.isAnimating()){var C=I.offsetTop-24;I=I.offsetTop+I.offsetHeight+24;var y=this.getPageScrollingElement(),k=this.getScrollTop(),F=k+y.clientHeight-56;if(C<k+56)C-=56;else if(I>F)C=I-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var I=this.hostElement.querySelector("#comments");if(I&&!this.scrollToAnimation_.isAnimating()){I=I.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(I-=_.kF().height/3,I<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,I),500)}},
onYtEngagementPanelVisibleChanged:function(I,C,y){this.active&&this.trackEngagementPanelVisibility&&!_.CQL.includes(y)&&(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(y),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.uW(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),C!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(I){return I?"":"watch-active-metadata"},
computeNewMetadataClass:function(I){return I?"watch-active-metadata":""},
computeFullBleedPlayer:function(I,C){return I||C},
computeDefaultLayout:function(I){return!I},
computeDefaultTwoColumnLayout:function(I,C){return!I&&C},
updatePanelsLocation:function(){if(_.V("web_watch_enable_fs_squeezeback_panels")){var I=_.f(this.hostElement).querySelector("#below"),C=_.f(this.hostElement).querySelector("#panels"),y=_.f(this.hostElement).querySelector("#panels-full-bleed-container"),k=_.f(this.hostElement).querySelector("#secondary-inner");this.fullscreen?y.appendChild(C):this.isTwoColumns_?_.Kg(k,C):I.appendChild(C)}},
swatcherooUpdatePanelsLocation:function(I,C,y,k,F,z){if(this.is==="ytd-watch-grid"){C=I&&!C;this.swatcherooSplitScroll&&(C?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));y=_.f(this.hostElement).querySelector("#panels");var c=_.f(this.hostElement).querySelector("#playlist"),r=_.f(this.hostElement).querySelector("#fixed-secondary"),w=_.f(this.hostElement).querySelector("#fixed-below"),
L=_.f(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),D=_.f(this.hostElement).querySelector("#chat-container");z&&(I?r.appendChild(y):w.appendChild(y));F?I?r.appendChild(D):w.appendChild(D):_.SZ(D,L);k?I?r.appendChild(c):w.appendChild(c):_.SZ(c,L);this.swatcherooSplitScroll&&(I=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#columns"),F=_.f(this.hostElement).querySelector("#fixed-columns-secondary"),C?F.appendChild(I):
k.appendChild(I))}},
computeMetadataSkinnyMode:function(I,C,y){return this.is!=="ytd-watch-grid"?!1:I?y:C},
computeWatchWhilePanelsActive:function(I,C){return I||C},
computeNoBorderOnChat:function(I){return _.V("web_watch_theater_chat_no_border")&&I},
computeLiveChatPresentAndExpanded:function(I,C){return I&&!C},
computePanelExpanded:function(I,C,y){return I||C||y},
computeSqueezeback:function(I,C){if(_.V("web_watch_enable_fs_squeezeback_panels"))return I&&C},
computeSwatcherooSqueezeback:function(I,C,y){return this.is!=="ytd-watch-grid"||_.V("ww_squeezeback_killswitch")?!1:I&&C&&y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
squeezebackChanged:function(){this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(I){_.EZ(this).getPlayerPromise().then(function(C){var y;(y=C.changeMarkerVisibility)==null||y.call(C,_.l(I,_.B0).isVisible||!1,_.l(I,_.B0).entityKeys||[],_.l(I,_.B0).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(I){this.liveChatCollapsed=I.detail;_.Hg().dispatch(_.pMj(I.detail))},
onSetPlaylistCollapsed:function(I){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!I)},
provideRenderingData:function(I,C){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "MERCH_SHELF_IN_SD":this.merchShelfInSd=C;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=
C;break;case "DONATION_SHELF":this.donation=C;break;case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=
C}},
toggleCinematicsActive:function(I){this.cinematicsActive=I},
isMiniplayerActive:function(){return _.N().resolve(_.WJ).isMiniplayerActive()}}];
}catch(e){_._DumpException(e)}
try{
var RwK;_.$SL=function(I){return I.shorts.isShortsActive};
_.bhS=function(I){return I.findIndex(function(C){return RwK.indexOf(C.tagName)>-1})>-1};
_.Y8K=function(I){return _.yE({type:"SET_IS_FULLSCREEN",payload:{isFullscreen:I}})};
_.Gl8=function(){var I=_.N().resolve(_.aV);_.XDz(["requestFullscreen","webkitRequestFullscreen","mozRequestFullScreen","msRequestFullscreen"],document.body)!=null&&(I.isFullscreenEnabled()?_.sN(document.documentElement):_.o6F(document.documentElement))};
RwK=["INPUT".toString(),"SELECT".toString(),"TEXTAREA".toString(),"EMBED".toString(),"YTD-COMMENTBOX","YT-LIVE-CHAT-RENDERER","YTD-PDG-BUY-FLOW-RENDERER"];_.Eg=new Map;_.Eg.set(32,59972);_.Eg.set(27,50765);_.Eg.set(70,60102);_.Eg.set(76,60221);_.Eg.set(77,60222);_.Eg.set(74,60223);_.Eg.set(84,60224);_.Eg.set(38,61941);_.Eg.set(40,61942);_.Eg.set(73,62521);_.Eg.set(67,62522);_.Eg.set(80,63390);_.Eg.set(78,63397);_.Eg.set(75,59972);_.Eg.set(188,63385);_.Eg.set(190,63384);_.Eg.set(36,63387);
_.Eg.set(35,63386);_.Eg.set(37,63388);_.Eg.set(39,63389);_.Eg.set(79,63423);_.Eg.set(87,63424);_.Eg.set(107,63426);_.Eg.set(109,63425);_.Eg.set(65,63428);_.Eg.set(83,63430);_.Eg.set(68,63429);_.Eg.set(221,63431);_.Eg.set(219,63432);_.Eg.set(97,63439);_.Eg.set(98,63440);_.Eg.set(99,63441);_.Eg.set(100,63442);_.Eg.set(101,63443);_.Eg.set(102,63444);_.Eg.set(103,63445);_.Eg.set(104,63446);_.Eg.set(105,63447);_.hr=new Map;_.hr.set(80,63390);_.hr.set(78,63397);_.hr.set(188,63400);_.hr.set(190,63401);
_.hr.set(191,60765);_.hr.set(13,247917);_.Ug=new Map;_.HU=new Map;
}catch(e){_._DumpException(e)}
try{
var AMj,WgK,dLP,xL8;_.GAL=function(I){return I.ui.guideIsVisibleButNotPersistent};
_.fRK=function(I){return I.ui.tabGesturesIsActive};
_.SjB=function(){var I=_.oD("service_worker_scope");try{return navigator.serviceWorker.getRegistration(I)}catch(C){return Promise.reject(C)}};
_.Kgj=function(I){return!(!I||!I.pushManager)};
AMj=function(){return _.SjB().then(_.Kgj).catch(function(){return!1})};
_.g5R=function(){return navigator.serviceWorker&&navigator.serviceWorker.getRegistration&&window.Notification?AMj():Promise.resolve(!1)};
_.v5K=function(){return window.MediaSource&&window.MediaSource.isTypeSupported&&window.MediaSource.isTypeSupported('video/mp4; codecs="av01.0.05M.08"')};
WgK=function(){var I,C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,_.pu.getInstance(),2);case 2:I=k.yieldResult;if(!I){C=void 0;k.jumpTo(3);break}return _.n(k,I.get("lmqf"),4);case 4:C=k.yieldResult;case 3:switch((y=C)||(y="SD"),y){case "HD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD");case "HD_1080":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_HD_1080");case "SD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_SD");case "LD":return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_LD");
default:return k.return("SETTINGS_OPTIONS_ID_TYPE_DOWNLOAD_QUALITY_UNKNOWN")}}})};
dLP=function(I){var C,y,k;return _.e(function(F){if(F.nextAddress==1){if(window.localStorage&&window.localStorage["yt-player-av1-pref"]){var z=window.localStorage["yt-player-av1-pref"];z=z==="480"?"SETTINGS_OPTIONS_ID_TYPE_AV1_SD":z==="8192"?"SETTINGS_OPTIONS_ID_TYPE_AV1_ALWAYS":"SETTINGS_OPTIONS_ID_TYPE_UNKNOWN"}else z="SETTINGS_OPTIONS_ID_TYPE_AV1_AUTO";if(C=I===z)return F.jumpTo(2);k=y=I;return _.n(F,WgK(),3)}F.nextAddress!=2&&(C=k===F.yieldResult);return F.return(C)})};var qjR;var mLK=_.Nu.IronButtonState,Z1Y=(0,_.L6)(HTMLElement);
_.pK({_template:function(){if(qjR!==void 0)return qjR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;xL8===void 0&&(xL8=document.createElement("template"));var k=xL8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return qjR=I},
is:"tp-yt-paper-dropdown-menu",hostAttributes:{"style-target":"host"},behaviors:[mLK,_.pV,_.Vu,_.Xo],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(I){var C=(0,_.P1)(this);C.attachShadow({mode:"open",delegatesFocus:!0,
shadyUpgradeFragment:I});C.shadowRoot.appendChild(I);return Z1Y.prototype._attachDom.call(this,I)},
focus:function(){this.$.input._focusableElement.focus()},
attached:function(){var I=this.contentElement;I&&I.selectedItem&&this._setSelectedItem(I.selectedItem)},
get contentElement(){for(var I=_.lG(this.$.content).getDistributedNodes(),C=0,y=I.length;C<y;C++)if(I[C].nodeType===Node.ELEMENT_NODE)return I[C]},open:function(){this.$.menuButton.open()},
close:function(){this.$.menuButton.close()},
_onIronSelect:function(I){this._setSelectedItem(I.detail.item)},
_onIronDeselect:function(){this._setSelectedItem(null)},
_onTap:function(I){_._findOriginalTarget$$module$third_party$javascript$polymer$v2$polymer$lib$utils$gestures(I)===this&&this.open()},
_selectedItemChanged:function(I){var C="";I?C=I.label||I.getAttribute("label")||I.textContent.trim():C="";this.value=C;this._setSelectedItemLabel(C)},
_computeMenuVerticalOffset:function(I,C){return C?C:I?-4:8},
_getValidity:function(){return this.disabled||!this.required||this.required&&!!this.value},
_openedChanged:function(){var I=this.opened?"true":"false",C=this.contentElement;C&&C.setAttribute("aria-expanded",I)}});_.ST=new _.J("navigateAction");var B4B=new _.J("formRenderer");var KC=function(){var I=_.cO.apply(this,arguments)||this;I.showInput=!1;return I};
_.R(KC,_.cO);_.u=KC.prototype;_.u.detached=function(){this.showInput&&window.removeEventListener("click",_.sb(this,this.closeOnOutsideClick_))};
_.u.stopPropagation_=function(I){this.showInput&&I.stopPropagation()};
_.u.closeOnOutsideClick_=function(I){this.closeOnOutsideClickCondition(I)&&(this.showInput=!1,window.removeEventListener("click",_.sb(this,this.closeOnOutsideClick_)),this.closeOnOutsideClickHandler())};
_.u.closeOnOutsideClickCondition=function(){return!0};
_.u.closeOnOutsideClickHandler=function(){};
_.u.openOnClick_=function(){this.showInput=!0;window.addEventListener("click",_.sb(this,this.closeOnOutsideClick_));this.openOnClickHandler()};
_.u.openOnClickHandler=function(){};
_.u.showInputChanged=function(){};
_.u.setShowInput=function(I){this.showInput=I};
KC.prototype.setShowInput=KC.prototype.setShowInput;KC.prototype.showInputChanged=KC.prototype.showInputChanged;KC.prototype.openOnClickHandler=KC.prototype.openOnClickHandler;KC.prototype.openOnClick_=KC.prototype.openOnClick_;KC.prototype.closeOnOutsideClickHandler=KC.prototype.closeOnOutsideClickHandler;KC.prototype.closeOnOutsideClickCondition=KC.prototype.closeOnOutsideClickCondition;KC.prototype.closeOnOutsideClick_=KC.prototype.closeOnOutsideClick_;KC.prototype.stopPropagation_=KC.prototype.stopPropagation_;
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],KC.prototype,"showInput",void 0);_.E([_.km("click"),_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],KC.prototype,"stopPropagation_",null);_.E([_.FI("showInput"),_.h("design:type",Function),_.h("design:paramtypes",[Boolean]),_.h("design:returntype")],KC.prototype,"showInputChanged",null);KC=_.E([_.eA()],KC);_.E5B=[KC.prototype];var hkK;var ULK;var A6=function(){return _.q.apply(this,arguments)||this};
_.R(A6,_.q);_.u=A6.prototype;_.u.computePreselectedOption=function(I,C){return C===this.itemSelected_?I:void 0};
_.u.dataChanged_=function(){var I=this;this.preselectedSubreason=this.itemSelected_=-1;var C;(C=this.data)!=null&&C.key&&_.hn(this,function(){var y,k=Number((y=I.data)==null?void 0:y.key);!Number.isNaN(k)&&(I.itemSelected_=k,y=(y=(I.data.items||[])[k])&&y.optionSelectableItemRenderer&&y.optionSelectableItemRenderer.preselectedIndex)&&(I.preselectedSubreason=y)})};
_.u.isSubReasonHidden_=function(I,C){return I!=C};
_.u.onTopItemSelected_=function(I,C){for(var y=_.f(this.hostElement).querySelectorAll("tp-yt-paper-listbox"),k=0,F=y.length;k<F;k++)y[k].select(0);_.Fe(this.hostElement,"yt-report-form-update",[C.item.value]);I.stopPropagation()};
_.u.onItemSelected_=function(I,C){_.Fe(this.hostElement,"yt-report-form-update",[C.item.value]);I.stopPropagation()};
_.u.getItem_=function(I){return I.serviceItem?I.serviceItem:I.navigationItem?I.navigationItem:I.optionSelectableItemRenderer?I.optionSelectableItemRenderer:null};
_.u.computeText_=function(I){return(I=this.getItem_(I))?this.ytRendererBehavior.getSimpleString(I.text):null};
_.u.validate=function(){return this.itemSelected_!==-1};
_.u.computeAriaLabel_=function(I){var C=_.hS(I.text);(I=I.accessibility&&I.accessibility.accessibilityData&&I.accessibility.accessibilityData.label)&&(C+=". "+I);return C};
_.u.computeItemSelected_=function(I){return I};
_.u.preventSelection_=function(I){I.stopPropagation();this.tooltipTapped=!0};
_.u.onPaperRippleTransitionEnd_=function(){this.tooltipTapped=!1};
_.u.updateItemSelectedFromBinding=function(I){this.itemSelected_=I.detail.value};
_.u.save=function(){var I;this.validate()&&(I=this.data)!=null&&I.items&&(I=this.data.items[this.itemSelected_],I!=null&&I.optionSelectableItemRenderer&&(this.ytComponentBehavior.resolveCommand(I.optionSelectableItemRenderer.submitEndpoint)||_.Tg(this.hostElement,[I.optionSelectableItemRenderer.submitEndpoint])))};
A6.prototype.onPaperRippleTransitionEnd_=A6.prototype.onPaperRippleTransitionEnd_;A6.prototype.dataChanged_=A6.prototype.dataChanged_;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],A6.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],A6.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],A6.prototype,"data",void 0);_.E([_.d({value:-1}),_.h("design:type",Number)],A6.prototype,"itemSelected_",void 0);
_.E([_.d({computed:"computeItemSelected_(itemSelected_)"}),_.h("design:type",Number)],A6.prototype,"value",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],A6.prototype,"restoreFocusOnClose",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],A6.prototype,"tooltipTapped",void 0);_.E([_.d({value:-1}),_.h("design:type",Number)],A6.prototype,"preselectedSubreason",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],A6.prototype,"dataChanged_",null);_.E([_.km("transitionend"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],A6.prototype,"onPaperRippleTransitionEnd_",null);A6=_.E([_.lT({is:"yt-options-renderer",disableElementRegistration:!0})],A6);
_.Z(A6,"yt-options-renderer",function(){if(ULK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;hkK===void 0&&(hkK=document.createElement("template"));var k=hkK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);ULK=I}I=ULK;return I},{mode:2});var H1L;var t1B;var JMK;var O1P;var aRL;var M1M;var gM=function(){return _.q.apply(this,arguments)||this};
_.R(gM,_.q);gM.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.onShow()};
gM.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
gM.prototype.onTap=function(I){if(this.hostElement.classList.contains("selected")||_.zg(this.hostElement,"yt-share-panel-can-select-contact-action"))I&&I.detail&&(I.detail.x||I.detail.y)&&_.f(this.hostElement).querySelector("#target").blur(),(I=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),I={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!1,serialization:I?this.data.serializedContactInvitee:
null,undoFn:this.onTap.bind(this)},_.Fe(this.hostElement,"yt-share-panel-select-contact-action",[I])};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gM.prototype,"ytRendererBehavior",void 0);_.E([_.d({observer:"onDataChanged"}),_.h("design:type",Object)],gM.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],gM.prototype,"componentTitle",void 0);_.E([_.z$("#thumbnail"),_.h("design:type",Object)],gM.prototype,"thumbnail",void 0);gM=_.E([_.lT({is:"yt-enrolled-contact-renderer",disableElementRegistration:!0})],gM);
_.Z(gM,"yt-enrolled-contact-renderer",function(){if(M1M===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;aRL===void 0&&(aRL=document.createElement("template"));var k=aRL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);M1M=I}I=M1M;return I},{mode:2});var IoM;var C3y;var vX=function(){return _.q.apply(this,arguments)||this};
_.R(vX,_.q);vX.prototype.onDataChanged=function(){if(this.thumbnail)this.thumbnail.polymerController.onShow_()};
vX.prototype.onFocus=function(){getComputedStyle(this.hostElement).getPropertyValue("pointer-events")==="none"?this.hostElement.setAttribute("aria-disabled","true"):this.hostElement.removeAttribute("aria-disabled")};
vX.prototype.onTap=function(I){if(this.hostElement.classList.contains("selected")||_.zg(this.hostElement,"yt-share-panel-can-select-contact-action"))I&&I.detail&&(I.detail.x||I.detail.y)&&_.f(this.hostElement).querySelector("#target").blur(),(I=this.hostElement.classList.toggle("selected"))?this.hostElement.setAttribute("aria-checked","true"):this.hostElement.removeAttribute("aria-checked"),I={name:this.componentTitle,id:this.data.contactId,isGroup:!1,isSuggested:!0,serialization:I?this.data.serializedSuggestedContact:
null,undoFn:this.onTap.bind(this)},_.Fe(this.hostElement,"yt-share-panel-select-contact-action",[I])};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vX.prototype,"ytRendererBehavior",void 0);_.E([_.d({observer:"onDataChanged"}),_.h("design:type",Object)],vX.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"getSimpleString(data.name)"}),_.h("design:type",String)],vX.prototype,"componentTitle",void 0);_.E([_.z$("#thumbnail"),_.h("design:type",Object)],vX.prototype,"thumbnail",void 0);vX=_.E([_.lT({is:"yt-suggested-contact-renderer",disableElementRegistration:!0})],vX);
_.Z(vX,"yt-suggested-contact-renderer",function(){if(C3y===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;IoM===void 0&&(IoM=document.createElement("template"));var k=IoM;y.call(C,k.content.cloneNode(!0),I.content.firstChild);C3y=I}I=C3y;return I},{mode:2});var WX=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-share-panel-reset-action":"onReset"};return I};
_.R(WX,_.q);WX.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"}}}}}};
WX.prototype.onDataChanged=function(){this.data&&this.data.selectMessageRenderer&&this.data.selectMessageRenderer.contactSelectMessageRenderer&&_.Fe(this.hostElement,"yt-share-panel-set-select-message-renderer-action",[this.data.selectMessageRenderer.contactSelectMessageRenderer])};
WX.prototype.onReset=function(){for(var I=_.f(this.hostElement).querySelector("#contents").getElementsByClassName("selected"),C=I.length-1;C>=0;C--)I[C].classList.toggle("selected")};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],WX.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WX.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],WX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({observer:"onDataChanged"}),_.h("design:type",Object)],WX.prototype,"data",void 0);
WX=_.E([_.lT({is:"yt-contact-section-renderer",disableElementRegistration:!0})],WX);
_.Z(WX,"yt-contact-section-renderer",function(){if(O1P===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;JMK===void 0&&(JMK=document.createElement("template"));var k=JMK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);O1P=I}I=O1P;return I},{mode:2});var dM=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-refresh-form-command":"onYtRefreshFormCommand"};return I};
_.R(dM,_.q);_.u=dM.prototype;_.u.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"}}}};
_.u.onYtRefreshFormCommand=function(I){var C;(I=_.l((C=_.l(I,_.xY0))==null?void 0:C.formRenderer,B4B))&&this.set("data",I)};
_.u.reset=function(){var I=_.f(this.hostElement).querySelector("#fields").children;I=_.T(I);for(var C=I.next();!C.done;C=I.next())C=C.value,C.reset&&C.reset()};
_.u.getForm=function(){var I={},C=_.f(this.hostElement).querySelector("#fields").children;C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;if(!y.validate())return null;I[y.data.key]=y.value}return I};
_.u.submitFormFields=function(){if(this.fields)for(var I=_.T(this.fields),C=I.next();!C.done;C=I.next())C=C.value,C.nodeName==="YT-TEXT-INPUT-FORM-FIELD-RENDERER"?C.save():C.nodeName==="YT-OPTIONS-RENDERER"&&C.save()};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],dM.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dM.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dM.prototype,"data",void 0);_.E([_.T$("#fields > *"),_.h("design:type",Array)],dM.prototype,"fields",void 0);
dM=_.E([_.lT({is:"yt-form-renderer",disableElementRegistration:!0})],dM);
_.Z(dM,"yt-form-renderer",function(){if(t1B===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;H1L===void 0&&(H1L=document.createElement("template"));var k=H1L;y.call(C,k.content.cloneNode(!0),I.content.firstChild);t1B=I}I=t1B;return I},{mode:2});var sER;var xN=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-settings-update-checkbox-command":"handleUpdateCheckboxCommand"};return I};
_.R(xN,_.q);xN.prototype.onCheckboxChange=function(I){this.data&&(I=(this.checked=_.m0(I).checked)?this.data.enableServiceEndpoint:this.data.disableServiceEndpoint)&&_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})};
xN.prototype.handleUpdateCheckboxCommand=function(I){(I=_.l(I,_.CRc))&&this.data&&this.data.id===I.id&&(this.set("data.disabled",I.disabled),this.set("data.title",I.title))};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],xN.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],xN.prototype,"checked",void 0);xN=_.E([_.m({is:"ytd-settings-checkbox-renderer",disableElementRegistration:!0})],xN);
_.Z(xN,"ytd-settings-checkbox-renderer",function(){if(sER!==void 0)return sER;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return sER=I},{mode:1});var oFR;var qw=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-select-settings-radio-option":"onSelectOption"};return I};
_.R(qw,_.q);qw.prototype.dataChanged=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return I.radio.removeAttribute("checked"),!I.data||!I.data.id||I.data.id!=="SETTINGS_OPTIONS_ID_TYPE_AV1_SD"||_.v5K()&&window.SourceBuffer&&window.SourceBuffer.prototype.changeType?(C=I.data&&I.data.id)?_.n(y,dLP(I.data.id),4):y.jumpTo(3):(I.set("data.hidden",!0),y.jumpTo(0));y.nextAddress!=3&&(C=y.yieldResult);C&&_.Fe(I.hostElement,"yt-select-settings-radio-option",[I.data.id]);_.oI(y)})};
qw.prototype.onButtonChanged=function(I){_.m0(I).checked?this.data&&this.data.id&&(this.data.serviceEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}}),_.Fe(this.hostElement,"yt-select-settings-radio-option",[this.data.id])):this.radio.setAttribute("checked","")};
qw.prototype.onSelectOption=function(I){this.data&&this.data.id&&(this.data.id===I?this.radio.setAttribute("checked",""):this.radio.removeAttribute("checked"))};
qw.prototype.dataChanged=qw.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qw.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],qw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.z$("#radio"),_.h("design:type",Object)],qw.prototype,"radio",void 0);_.E([_.d(),_.h("design:type",Object)],qw.prototype,"data",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],qw.prototype,"dataChanged",null);qw=_.E([_.m({is:"ytd-settings-radio-option-renderer",disableElementRegistration:!0})],qw);
_.Z(qw,"ytd-settings-radio-option-renderer",function(){if(oFR!==void 0)return oFR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oFR=I},{mode:1});var yi8;var mm=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-settings-update-text-command":"handleUpdateTextCommand","yt-settings-update-connected-app-renderer-command":"handleUpdateConnectedAppRendererCommand"};return I};
_.R(mm,_.q);
mm.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"}}}};
mm.prototype.handleUpdateTextCommand=function(I){(I=_.l(I,_.szP))&&this.data&&this.data.id===I.id&&this.set("data",I)};
mm.prototype.handleUpdateConnectedAppRendererCommand=function(I){if(_.l(I,_.k9c)&&this.data){var C,y;if(I=(C=_.l(I,_.k9c))==null?void 0:(y=C.newConnectedAppRenderer)==null?void 0:y.connectedAppRenderer)this.data=I}};
mm.prototype.computeConnectedAppStyle=function(I){return I.style?I.style.toLowerCase().replace(/_/g,"-"):""};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mm.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],mm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mm.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mm.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeConnectedAppStyle(data)"}),_.h("design:type",String)],mm.prototype,"connectedAppStyle",void 0);mm=_.E([_.m({is:"ytd-connected-app-renderer",disableElementRegistration:!0})],mm);
_.Z(mm,"ytd-connected-app-renderer",function(){if(yi8!==void 0)return yi8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yi8=I},{mode:1});
}catch(e){_._DumpException(e)}
try{
_.$q("iuT5Oc");

_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("L3n37");
var BNM=_.Dn(115994),E2B=_.Dn(115993),hLR=function(I,C,y){var k=this;var F=y.dragDownAction;this.layer=0;this.JSC$20357_watchConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{fade:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.JSC$20357_watchFullScreenConfig={startPosition:0,draggingClass:"gesture-dragging",triggers:{down:{disableFinish:!0,endOpacity:.6,endPosition:100,threshold:100,triggerAction:function(){return k.dragDownAction()}}}};
this.fullscreen=!1;var z=_.e2();_.y4(z,BNM,this.layer);_.y4(z,E2B,this.layer);this.dragDownAction=function(){F();_.Sz(z,{visualElement:k.fullscreen?BNM:E2B})};
this.gesture=new _.oB(I,C,this.JSC$20357_watchConfig,"pandown");this.attach()};
hLR.prototype.attach=function(){this.gesture.attach()};
hLR.prototype.detach=function(){this.gesture.detach()};
hLR.prototype.update=function(I){this.fullscreen=I;this.gesture.config=I?this.JSC$20357_watchFullScreenConfig:this.JSC$20357_watchConfig};var UtY={},HgR=["learning-journey-engagement-panel","PAyouchat"];
UtY.YtdLearningJourneyWatchBehavior=[_.M.YtRendererBehavior,_.gn.YtPlayerListenerBehavior,_.B7.YtRendererstamperBehavior,_.Et.YtActionHandlerBehavior,_.Q2.YtPageBehavior,_.IW.YtEndpointBehavior,{_noAccessors:!0,properties:{data:{type:Object,observer:"dataChanged_"},info:{type:Object},meta:{type:Object},ticket:{type:Object},donation:{type:Object},clarifyBox:{type:Object,computed:"getClarifyBox(data, clarifyBoxValue)"},offerModule:{type:Object},engagementPanels:{type:Object},inlineEngagementPanels:{type:Object},
learningJourneyEngagementPanels:{type:Object,computed:"getLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},nonLearningJourneyEngagementPanels:{type:Object,computed:"getNonLearningJourneyEngagementPanels(engagementPanels, learningJourneyEngagementPanelsValue)"},hasLearningJourneyPanels:{type:Boolean,reflectToAttribute:!0,computed:"getHasLearningJourneyPanels(learningJourneyEngagementPanels,hasLearningJourneyPanelsValue)"},clarifyBoxValue:{type:Object},conversationBar:{type:Object},
infoPanelBelowMetadata:{type:Object},expandableMetadata:{type:Object},limitedState:{type:Object,computed:"getLimitedState(data, limitedStateValue)"},limitedStateValue:{type:Object},merchShelf:{type:Object,computed:"getMerchShelf(data, merchShelfValue)"},merchShelfValue:{type:Object},singleColumn:{type:Object,computed:"getSingleColumn(playerData.playabilityStatus, data, singleColumnValue)"},singleColumnValue:{type:Object},comments:{type:Object,value:null},playerData:{type:Object,observer:"playerDataChanged_"},
playerAds:{type:Object,value:null},localPlaylistData_:{type:Object,value:{},computed:"setPlaylistData_(data.contents.twoColumnWatchNextResults.playlist.playlist)"},externalPlaylistData_:{type:Object,value:{}},playlistData:{type:Object,computed:"computePlaylistData_(localPlaylistData_, externalPlaylistData_)"},theater:{type:Boolean,value:!1,reflectToAttribute:!0},fullWindowMode_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.g5("START_IN_FULL_WINDOW_MODE")}},
useProviderForSecondaryResultsRenderer:{type:Boolean,value:function(){return _.V("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 _.g5("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 _.V("kevlar_watch_js_panel_height")},
reflectToAttribute:!0},showEngagementPanelScrim_:{type:Boolean,reflectToAttribute:!0,observer:"showEngagementPanelScrimChanged_"},watchFeedBigThumbs_:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_feed_big_thumbs")}},
useEngagementPanelManagementComponent:{type:Boolean,value:function(){return _.V("kevlar_use_engagement_panel_management_component")}},
watchMetadataRefresh:{type:Boolean,value:!1,computed:"computeWatchMetadataRefresh(videoPrimaryInfoRenderer)",reflectToAttribute:!0},liveChatCollapsed:{type:Boolean},liveChatPresentAndExpanded:{type:Boolean,reflectToAttribute:!0,computed:"computeLiveChatPresentAndExpanded(shouldStampChat, liveChatCollapsed)"},playlistPanelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1},engagementPanelExpanded:{type:Boolean,value:!1},panelExpanded:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computePanelExpanded(engagementPanelExpanded, playlistPanelExpanded, liveChatPresentAndExpanded)"},
swatcherooSqueezeback:{type:Boolean,reflectToAttribute:!0,value:!1,observer:"swatcherooSqueezebackChanged",computed:"computeSwatcherooSqueezeback(panelExpanded, fullBleedPlayer, isTwoColumns_)"},richItemMinWidth:{type:Number,value:function(){return _.s8("wn_grid_min_item_width",310)}},
richItemMaxWidth:{type:Number,value:function(){return _.s8("wn_grid_max_item_width",700)}},
commentsEntryPointHeaderRenderer:{type:Object,computed:"computeCommentsEntryPointHeaderRenderer(data, commentsEntryPointHeaderRendererValue, defaultTwoColumnLayout, isTwoColumns_)"},showRichGridContinuationButton:{type:Boolean,value:!1,computed:"computeShowRichGridContinuationButton(isTwoColumns_, commentsEntryPointHeaderRenderer)"},commentsEntryPointHeaderRendererValue:{type:Object},videoMetadataCarousel:{type:Object},richGridRendererData:{type:Object},watchNextSecondaryResults:{type:Object},videoPrimaryInfoRenderer:{type:Object,
computed:"computeVideoPrimaryInfoRenderer(data, videoPrimaryInfoRendererValue)"},videoPrimaryInfoRendererValue:{type:Object},videoSecondaryInfoRenderer:{type:Object,computed:"computeVideoSecondaryInfoRenderer(data, videoSecondaryInfoRendererValue)"},videoSecondaryInfoRendererValue:{type:Object},inlineStructuredDescriptionData:{type:Object,computed:"computeInlineStructuredDescriptionData(data)"},flexyEnableSmallWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.V("kevlar_watch_flexy_disable_small_window_sizing")}},
flexyEnableLargeWindowSizing:{type:Boolean,reflectToAttribute:!0,value:function(){return!_.V("kevlar_watch_flexy_disable_large_window_sizing")}},
hideComments:{type:Boolean},legacyMetadataClass:{type:String,computed:"computeLegacyMetadataClass(watchMetadataRefresh)"},newMetadataClass:{type:String,computed:"computeNewMetadataClass(watchMetadataRefresh)"},cinematicsEnabled:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_cinematics")}},
responseHasComments:{type:Boolean,reflectToAttribute:!0,value:function(){return!0}},
deprecateFullerscreenUi:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_fullerscreen_deprecation_ui")}},
swatcherooDirectUseRichGrid:{type:Boolean,value:function(){return _.V("swatcheroo_direct_use_rich_grid")}},
cinematicsActive:{type:Boolean,value:!1,reflectToAttribute:!0},noTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_no_top_margin")}},
reducedTopMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_reduced_top_margin")}},
frame0LoadingState:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("kevlar_watch_frame0_loading_state")}},
roundedPlayerMedium:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_rounded_player_medium")}},
roundedPlayerLarge:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("web_watch_rounded_player_large")||_.V("watch_next_grid_round_player")}},
showExpandableMetadata:{type:Boolean,reflectToAttribute:!0,computed:"computeShowExpandableMetadata(expandableMetadata)"},fullBleedPlayer:{type:Boolean,reflectToAttribute:!0,computed:"computeFullBleedPlayer(fullscreen, theater)"},defaultLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultLayout(fullBleedPlayer)"},defaultTwoColumnLayout:{type:Boolean,reflectToAttribute:!0,computed:"computeDefaultTwoColumnLayout(fullBleedPlayer, isTwoColumns_)"},swatcherooSplitScroll:{type:Boolean,reflectToAttribute:!0,
value:function(){return _.V("swatcheroo_split_scroll")}},
trackEngagementPanelVisibility:{type:Boolean,value:function(){return _.V("web_watch_track_engagement_panel_visibility")}},
commentTeaserEnabled:{type:Boolean,value:function(){return _.V("web_watch_show_comment_teaser")}},
swatcherooBinaryLayout:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_binary_layout")}},
swatcherooGhostCards:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("swatcheroo_enable_ghost_cards")}},
metadataSkinnyMode:{type:Boolean,reflectToAttribute:!0,value:!1,computed:"computeMetadataSkinnyMode(swatcherooBinaryLayout, isTwoColumns_, defaultTwoColumnLayout)"},fullBleedNoMaxWidthColumns:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_watch_while_wider_panels")}},
watchWhileMargin:{type:Boolean,reflectToAttribute:!0,value:function(){return _.V("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 _.V("web_thumbnail_to_watch_transition")}}},
observers:"watchPageActiveChanged_(active);shouldProceedToNextVideo_(playerData.playabilityStatus, data, playlist);userEngagementConfigDataChanged_(data.userEngagementConfig);updateTheaterModeState_(theaterRequested_);watchNextShownItemsAddedOrRemoved_(watchNextShownItems.splices, watchNextCanShowMore);youthereDataChanged_(playerData.messages);onSetPlaylistCollapsed(playlist);updateChatLocation(liveChatPresentAndExpanded);swatcherooUpdatePanelsLocation(isTwoColumns_, fullBleedPlayer, squeezeback, playlistPanelExpanded, liveChatPresentAndExpanded, engagementPanelExpanded);scheduleFullHeightPanelPositionUpdate(defaultTwoColumnLayout, panelExpanded);swatcherooRichGridRendererDataChanged(data);watchNextSecondaryResultsChanged(data);defaultTwoColumnLayoutChanged(defaultTwoColumnLayout)".split(";"),
monitorScroll:!0,configureRendererStamper:function(){var I={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:_.Xr(["aa","eocs"])},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:"ytd-survey-trigger-renderer"},initialRenderPriority:3,waitForSignal:_.Xr(["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"||_.V("swa_prov_panels_ks")?this.is==="ytd-watch-learning-journey"?(I.learningJourneyEngagementPanels={id:"plj-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},I.nonLearningJourneyEngagementPanels=
{id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}):_.V("web_watch_inject_placeholder_panels")?I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}}:_.V("kevlar_use_engagement_panel_management_component")||(I["data.engagementPanels"]={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatch:!0}}}}):(I.engagementPanels={id:"panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}}},I.inlineEngagementPanels={id:"inline-panels",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",params:{isWatch:!0}}},reuseComponents:!1});return I},
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 I=this;this.watchController=void 0;this.pageDisposeJobs=[function(){I.showMetadataPlaceholder_()},
function(){_.V("web_watch_dont_clear_comments")||I.clearComments_()},
function(){I.clearPlayerAds_()},
function(){I.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;_.V("kevlar_watch_while")&&(this.watchWhileScrollThreshold_=NaN);_.V("web_watch_start_chat_in_theater_mode")&&
(this.theaterEnabledForChat=!1);this.youThereManager_=new _.VUL(function(){return _.EZ(I)},this.hostElement);
this.pageDisposeJobs.push(function(){I.youThereManager_.reset()});
_.V("external_fullscreen")&&(this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1,this.pageDisposeJobs.push(function(){I.resetFullerscreenEduButtonForNewPlayback_()}));
_.V("kevlar_watch_js_panel_height")&&(this.scheduleSidebarSizeUpdateJobId_=this.panelMaxHeightUpdateJob_=0);this.fullHeightPanelPositionUpdateJobId=0;this.playerEvents_=new _.kr;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;_.V("kevlar_watch_metadata_refresh")&&(this.watchMetadata=void 0);_.V("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));_.V("kevlar_watch_flexy_comments_manager")||this.hostElement.addEventListener("yt-page-data-will-update",_.sb(this,this.onYtPageDataWillUpdate_))},
onYtUpdatedPlayabilityStatus:function(I){I&&(this.playerData=Object.assign({},this.playerData,{playabilityStatus:I}),I.status==="ERROR"&&(this.playerData.videoDetails=void 0))},
onTheaterReduxValueUpdate:function(I){_.V("kevlar_watch_flexy_theater_manager")&&(this.theater=I,this.updateFullBleedElementLocations(),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.active!==void 0&&this.schedulePanelMaxHeightUpdate_())},
onMiniplayerActiveReduxValueUpdate:function(I){!_.V("kevlar_watch_while_v2")&&!_.V("web_watch_pip")||I||(this.player&&this.setPlayerTheaterMode_(),this.schedulePlayerSizeUpdate_())},
onFullscreenReduxValueUpdate:function(I){this.active!==void 0&&(this.fullscreen=I,_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&this.gestures_.update(this.fullscreen),this.updateFullBleedElementLocations())},
onScrollReduxValueUpdate:function(I){this.active!==void 0&&(_.k3(this.hostElement,"yt-autonav-pause-scroll"),this.setComments_(),_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_(),_.V("kevlar_watch_flexy_gestures_manager")||this.gestures_&&(I>0?this.gestures_.detach():this.gestures_.attach()))},
loadPage_:function(I){this.initCsi_();this.updatePageData_(I)},
updatePageData_:function(I){var C=this;if(I)if(this.data===I){this.onPageLoadWithSameData_();var y;(y=this.watchController)==null||_.xM(y,this.data)}else this.data=I;this.playlist&&_.Gg({watchInfo:{isPlaylist:!0}});this.pageCount===1&&_.Sr("nw");this.loading=!1;_.NU(_.b$,function(){C.initDclkstatus_();var k,F=((k=C.player)==null?void 0:k.getVideoData().cpn)||"";_.zLR(function(z,c){_.jDK(z,c,F)})})},
onPageLoadWithSameData_:function(){_.V("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 I=this.get("endpoint.watchEndpoint.playlistId",this.loadingData);this.set("loadingData.playlist",!!I);this.set("loadingData.playlistLoading",I&&I!==this.get("playlistId",this.playlistData));this.toggleBodyScrolling_(!1);if(this.watchNextSkeletonEl_)for(this.playlist?this.watchNextSkeletonEl_.setAttribute("playlist",
""):this.watchNextSkeletonEl_.removeAttribute("playlist"),I=this.watchNextSkeletonEl_.firstElementChild;I;)I.classList.remove("hidden"),I=I.nextElementSibling;if(_.V("kevlar_watch_frame0_loading_state")){var C,y,k;I=(C=this.loadingData)==null?void 0:(y=C.endpoint)==null?void 0:(k=y.watchEndpoint)==null?void 0:k.videoId;var F;I&&(F="https://i.ytimg.com/vi/"+I+"/frame0.jpg");_.f(this.hostElement).querySelector("#player").style.backgroundImage=F?"url("+F+")":""}},
clearLoadingState_:function(){this.hostElement.classList.remove("show-skeleton");this.hostElement.classList.add("hide-skeleton");var I=_.f(this.hostElement).querySelector("#related-skeleton");!this.get("data.contents.twoColumnWatchNextResults.secondaryResults.secondaryResults")&&I&&(I.hidden=!0);this.clearPlayerLoadingState_();this.hostElement.classList.remove("loading");this.loadingData={playlist:!1};this.toggleBodyScrolling_(!0);if(this.watchMetadata){var C,y;(y=(C=this.watchMetadata).updateSentimentBarWidth)==
null||y.call(C);var k,F;(F=(k=this.watchMetadata).resize)==null||F.call(k)}_.V("kevlar_watch_frame0_loading_state")&&(_.f(this.hostElement).querySelector("#player").style.backgroundImage="")},
addSplitScrollMouseTrap:function(I){var C=_.f(this.hostElement).querySelector(I);C?_.ot(C,!1):_.SN(new _.ph("Overscroll monitor not found for component: ",I))},
removeSplitScrollMouseTrap:function(I){var C=_.f(this.hostElement).querySelector(I);C?_.yw(C):_.SN(new _.ph("Disposal component for  overscroll monitoring not found: ",I))},
onLoadingChanged_:function(I){I?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(I){var C=this;I?document.body.removeAttribute("no-y-overflow"):document.body.setAttribute("no-y-overflow","");_.b$.addLowPriorityJob(function(){C.onWindowResized_(_.np(!0))})},
updateTheaterModeState_:function(I){if(!_.V("kevlar_watch_flexy_theater_manager")){I=I||this.fullWindowMode_;if(this.theater!==void 0||I)this.theater=I;this.updateFullBleedElementLocations();this.player&&this.setPlayerTheaterMode_();this.togglePageSwatchActive_();I&&_.V6y()}},
updateFullBleedElementLocations:function(){this.updateChatLocation();this.updatePlayerLocation();this.updateCinematicsLocation()},
updatePlayerLocation:function(){var I=this.theater;_.V("external_fullscreen")&&this.fullscreen&&(I=!0);I=I?_.f(this.hostElement).querySelector("#player-full-bleed-container"):_.f(this.hostElement).querySelector("#player-container-inner");var C=this.getPlayerContainer(),y=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip");C.parentElement!==I&&(y&&this.isMiniplayerActive()?this.deactivateMiniplayerAndResetPlayer():(_.EZ(this).appendTo(I,C),I.appendChild(_.f(this.hostElement).querySelector("#error-screen"))))},
deactivateMiniplayerAndResetPlayer:function(){var I=this;return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.N().resolve(_.WJ).deactivate(),2);I.updatePlayerLocation();_.oI(C)})},
updateCinematicsLocation:function(){var I=this.getElement("CINEMATICS");if(I){var C=this.getCinematicsLocationContainer();I.parentElement!==C&&C.appendChild(I);var y;(y=this.watchController)==null||_.ytR(y)}},
getCinematicsLocationContainer:function(){return this.shouldCinematicsBeInWideContainer(this.theater&&!this.fullscreen,this.fullscreen)?_.f(this.hostElement).querySelector("#cinematics-full-bleed-container"):_.f(this.hostElement).querySelector("#cinematics-container")},
shouldCinematicsBeInWideContainer:function(I,C){var y=document.documentElement.hasAttribute("dark"),k=y&&_.V("web_cinematic_theater_mode"),F=y&&_.V("web_cinematic_fullscreen");y=!y&&this.cinematicLightTheme;return I&&k||C&&F||(C||I)&&y},
isTheater_:function(){return this.theater&&this.active},
dataChanged_:function(){var I=this,C;(C=this.watchController)==null||_.xM(C,this.data);_.V("kevlar_watch_flexy_comments_manager")||this.initComments_();_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.add("hide-skeleton");_.N().resolve(_.Gk).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,_.V("kevlar_watch_grid_auto_open_playlist"))this.onSetPlaylistCollapsed(!1),_.b$.addLowPriorityJob(function(){_.uW(I.hostElement,"yt-set-playlist-collapsed",[!1])},1E3);
else this.onSetPlaylistCollapsed(!this.playlistPanelExpanded);this.data&&this.updateCinematicsLocation();if(_.V("web_watch_start_chat_in_theater_mode")){var y,k,F;if((y=this.data)==null?0:(k=y.contents)==null?0:(F=k.twoColumnWatchNextResults)==null?0:F.conversationBar)this.setTheaterModeRequested(!0,!1),this.theaterEnabledForChat=!0;else{var z,c;((z=this.data)==null?0:(c=z.contents)==null?0:c.twoColumnWatchNextResults)&&this.theaterEnabledForChat&&(this.setTheaterModeRequested(!1,!1),this.theaterEnabledForChat=
!1)}}},
playerDataChanged_:function(I){var C;(C=this.watchController)==null||_.du(C,this.playerData);I&&I.playabilityStatus&&(C=this.isVideoPlayable_(I.playabilityStatus,this.getPlayerOverlays_(this.data)),I=this.isLiveStreamOffline_(I.playabilityStatus),C&&!I||_.hn(this,function(){_.Sr("pbu")}));
this.setPlayerAds_();_.uW(this.hostElement,"ytd-watch-player-data-changed")},
watchPageActiveChanged_:function(I){_.Hg().dispatch(_.LJY(this.active));I?this.activate_():this.deactivate_()},
attached:function(){var I=this;this.watchController=new _.W0(this.hostElement);this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.addSplitScrollMouseTrap("#primary"),this.addSplitScrollMouseTrap("#fixed-secondary"));this.playerData&&_.du(this.watchController,this.playerData);this.data&&_.xM(this.watchController,this.data);_.V("web_watch_common_class_killswitch")||this.hostElement.classList.add("watch-root-element");var C=_.EZ(this);_.V("kevlar_disable_prepare_player")||C.preparePlayer();
_.V("kevlar_watch_flexy_playlist_manager")||_.N().resolve(_.Gk).setPlayer(C);this.is!=="ytd-watch-grid"&&this.attachWatchPageSkeleton_();this.updatePageMediaQueries();C={"--ytd-watch-flexy-scrollbar-width":_.Nw()+"px"};this.is==="ytd-watch-grid"&&(C["--ytd-watch-flexy-sidebar-width"]=_.WM+"px",C["--ytd-watch-grid-horizontal-page-margins"]=_.At+"px",C["--ytd-watch-grid-columns-top-margins"]=_.kQH+"px",C["--ytd-watch-grid-min-player-height-medium"]="360px");!_.s8("kv_pl_mx_sz_ks")&&_.s8("kevlar_watch_max_player_width")&&
(C["--ytd-watch-flexy-max-player-width-wide-screen"]=_.zej+"px");_.s8("kevlar_watch_flexy_metadata_height")&&(C["--ytd-watch-flexy-space-below-player"]=_.T$M+"px");this.safeUpdateStyles(C);_.V("kevlar_watch_flexy_gestures_manager")||(this.gestures_=new hLR(this.hostElement,this.getPlayerContainer(),{dragDownAction:function(){return I.onPlayerTouchPanDown_()}}));
_.V("kevlar_watch_metadata_refresh")&&(this.watchMetadata=_.f(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"))},
updatePageMediaQueries:function(){var I=_.Nw(),C=_.gN+I,y=C;this.fixedPanels&&(C+=_.WM);var k=657+I;I=1327+I;_.f(this.hostElement).querySelector("#two-column-query").query="(min-width: "+C+"px)";_.f(this.hostElement).querySelector("#small-window-query").query="(max-height: 629px) and (min-width: "+(k+"px), (min-height: 630px) and (min-width: ")+(C+"px) and (max-width: ")+(I+"px)");_.f(this.hostElement).querySelector("#large-window-query").query="(min-height: 630px) and (min-width: "+(I+"px)");_.f(this.hostElement).querySelector("#watch-while-query").query=
"(min-width: "+y+"px)"},
calculateCurrentPlayerSize_:function(){var I=_.f(this.hostElement).querySelector("#miniplayer-bar").firstChild;return I&&I.active||this.theater||_.V("web_watch_fullscreen_panels")&&this.fullscreen||this.swatcherooSqueezeback||!this.active||!this.windowSize_?new _.y6(NaN,NaN):_.ZM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
calculateNormalPlayerSize_:function(){return _.ZM(this.windowSize_,this.videoHeightToWidthRatio_,this.isTwoColumns_&&(this.playlist||this.shouldStampChat))},
detached:function(){_.Bi(this.watchController);this.watchController=void 0;this.deactivate_()},
activate_:function(){var I=this;this.onWindowResized_(_.np());_.V("browse_skeleton_removal_on_watch_killswitch")||_.g5("IS_SHELL_LOAD")&&_.wUY();this.theaterRequested_=this.theater;this.togglePageSwatchActive_();var C=_.EZ(this);C.addEventListener("yt-player-updated",_.sb(this,this.onPlayerUpdated_));C.getPlayerPromise().then(function(y){I.playerApiReady_(y)});
_.V("kevlar_watch_flexy_playlist_manager")||(C=_.N().resolve(_.Gk),_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&C.addEventListener("yt-navigate",_.sb(this,this.onYtNavigate_)),C.setPlaylistComponent(_.f(this.hostElement).querySelector("#playlist")),C.addEventListener("yt-playlist-data-updated",_.sb(this,this.onYtPlaylistDataUpdated_)),this.onYtPlaylistDataUpdated_());_.b$.addLowPriorityJob(function(){_.k3(I.hostElement,"yt-autonav-pause-scroll")})},
deactivate_:function(){this.disconnectFromPlayer_();_.EZ(this).removeEventListener("yt-player-updated",_.sb(this,this.onPlayerUpdated_));this.swatcherooSplitScroll&&this.defaultTwoColumnLayout&&(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary"));if(!_.V("kevlar_watch_flexy_playlist_manager")){var I=_.N().resolve(_.Gk);_.V("kevlar_watch_observe_playlist_navigations_killswitch")&&I.removeEventListener("yt-navigate",_.sb(this,this.onYtNavigate_));
I.cancelVideoSkip();I.removeEventListener("yt-playlist-data-updated",_.sb(this,this.onYtPlaylistDataUpdated_))}this.loading&&this.toggleBodyScrolling_(!0);_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();this.schedulePlayerSizeUpdate_();_.k3(this.hostElement,"yt-autonav-pause-player",!1);I=_.CA();_.V("kevlar_exit_fullscreen_leaving_watch")&&I&&_.sN(I)},
disconnectFromPlayer_:function(){this.player&&(this.unlistenFromPlayerEvents(this.player,this.playerEvents_),this.player=null)},
onUpdatePlayerNextVideo_:function(I){this.player&&this.player.updateVideoData({rvs:I.rvs})},
getPageContents:function(I){return I&&I.contents&&I.contents.twoColumnWatchNextResults&&I.contents.twoColumnWatchNextResults.results&&I.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(I){return this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",I)},
onRetrieveLocation_:function(I,C){C.hasComments?C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0):C.locationRetrieved("/related_ajax",void 0);I.stopPropagation()},
onSubscriptionChanged_:function(I,C){this.player&&(C?this.player.channelSubscribed():this.player.channelUnsubscribed())},
initCsi_:function(){_.pm("watch",["pbs","pbp","pbu"])},
getPlayerContainer:function(){this.playerContainerEl||(this.playerContainerEl=_.f(this.hostElement).querySelector("#player-container"));return this.playerContainerEl},
getPlayer:function(){this.playerEl||(this.playerEl=_.f(this.hostElement).querySelector("#ytd-player"));return this.playerEl},
playerApiReady_:function(I){this.player=I;this.setPlayerState(I.getPlayerState());this.listenToPlayerEvents(this.player,this.playerEvents_);this.updatePlayerStartTime_();this.setPlayerTheaterMode_();this.onPlayerPresentingVideoDataChange_();this.handlePlayerUpdated_();_.V("external_fullscreen")&&this.updateFullerscreenEduButtonSubtleModeState_();(_.V("kevlar_unified_player")||_.V("kevlar_player_new_bootstrap_adoption"))&&_.Ja()},
onFullerscreenEduClicked_:function(){this.scrollToAnimation_.start(0,186,500);this.fullerscreenEduButtonClickedThisPlayback_||(this.fullerscreenEduButtonClickedThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-click-count"))},
setTheaterModeRequested:function(I,C){C=C===void 0?!0:C;_.CA()&&_.V("external_fullscreen")&&_.sN(document.documentElement);this.theaterRequested_=I;C&&_.nh("wide",I?"1":"0",-1);this.togglePageSwatchActive_();this.player&&this.setPlayerTheaterMode_();this.schedulePlayerSizeUpdate_();_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_();_.Fe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])},
togglePageSwatchActive_:function(){this.theater!==void 0&&this.active&&_.k3(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(I){_.Ki(I,typeof this.player),this.player&&_.Ki(I,this.player.setSizeStyle)}},
onPlayerTouchPanDown_:function(){if(this.active&&this.getScrollTop()<=0){var I;((I=this.player)==null?0:I.isFullscreen())?this.player.toggleFullscreen():_.Fe(this.hostElement,"yt-activate-miniplayer-from-watch-action")}},
hasPlaylist_:function(I,C){return this.loading?C:!!Object.keys(I).length},
autonavAllowed_:function(){return this.autonavCanceledSignal_?!1:!!this.get("contents.twoColumnWatchNextResults.autoplay.autoplay",this.data)},
youthereDataChanged_:function(I){if(I){I=_.T(I);for(var C=I.next();!C.done;C=I.next())C=C.value,C.youThereRenderer&&_.XMP(this.youThereManager_,C.youThereRenderer)}},
setPlaylistData_:function(I){return I||{}},
userEngagementConfigDataChanged_:function(I){if(I)if(I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_LOWER_QUALITY"){var C=this.youThereManager_;_.Ci()<I.lowEngagementThresholdMs||_.YYy(C,!0)}else I.lowUserEngagementAction==="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"&&_.Fe(this.hostElement,"yt-autonav-pause-user-engagement",[I])},
isPlayerUnavailable_:function(I,C,y){return!!I&&!this.isVideoPlayable_(I,y)&&!C},
getPlayerOverlays_:function(I){return(I==null?void 0:I.playerOverlays)||null},
isVideoPlayable_:function(I,C){if(!I)return!1;var y=I.status==="OK"||I.status==="LIVE_STREAM_OFFLINE",k=this.get("errorScreen.playerLegacyDesktopYpcTrailerRenderer",I)||this.get("errorScreen.ypcTrailerRenderer",I);I=this.get("errorScreen.playerLegacyDesktopYpcOfferRenderer",I);var F;C=C==null?void 0:(F=C.playerOverlayRenderer)==null?void 0:F.gatedActionsOverlayRenderer;return!!y||!!k||!!I||!!C},
hasWatchNextResponseErrorRenderer:function(I){var C=this.getPageContents(I),y,k,F,z,c;return!(I==null?0:(y=I.contents)==null?0:(k=y.twoColumnWatchNextResults)==null?0:k.secondaryResults)&&!!((F=C[0])==null?0:(z=F.itemSectionRenderer)==null?0:(c=z.contents[0])==null?0:c.backgroundPromoRenderer)},
isLiveStreamOffline_:function(I){return I?I.status==="LIVE_STREAM_OFFLINE":!1},
shouldProceedToNextVideo_:function(I,C,y){var k=!!this.get("contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule",C),F=["AGE_CHECK_REQUIRED","CONTENT_CHECK_REQUIRED","AGE_VERIFICATION_REQUIRED"];F=_.V("web_no_skip_video_on_verification_checks")?(I==null?void 0:I.status)&&F.includes(I.status):I&&I.status==="AGE_CHECK_REQUIRED";var z=this.get("skip.playabilityErrorSkipConfig.skipOnPlayabilityError",I);z==void 0&&(z=!0);!y||this.isVideoPlayable_(I,this.getPlayerOverlays_(C))||
k||F||!z||_.N().resolve(_.Gk).skipVideo()},
getServiceTrackingParams:function(){if(this.data&&this.data.responseContext)return this.data.responseContext.serviceTrackingParams},
onPlayerUpdated_:function(){this.handlePlayerUpdated_();_.n2H()},
onPlayerFeedbackStartRequest_:function(I){_.Fe(this.hostElement,"yt-feedback-dialog-requested",[{customProductData:I}])},
onPlayerFeedbackArticleRequest_:function(I){_.Fe(this.hostElement,"yt-help-dialog-requested",[I])},
onPlayerYpcContentRequest_:function(){var I,C,y,k,F,z,c,r,w=((I=this.data)==null?NaN:(C=I.contents)==null?NaN:(y=C.twoColumnWatchNextResults)==null?NaN:(k=y.secondaryResults)==null?NaN:(F=k.secondaryResults)==null?NaN:(z=F.offerModule)==null?NaN:(c=z.tvfilmOfferModuleRenderer)==null?NaN:(r=c.actionButtons)==null?NaN:r.length)-1;I=[".offerButton.buttonRenderer.",".actionButtons."+(w>=0?w:0)+".buttonRenderer."];C=_.T(["episodeOfferModuleRenderer","movieOfferModuleRenderer","unlimitedOfferModuleRenderer",
"liveOfferModuleRenderer","tvfilmOfferModuleRenderer"]);for(y=C.next();!y.done;y=C.next())for(y=y.value,k=_.T(I),F=k.next();!F.done;F=k.next())if(F="contents.twoColumnWatchNextResults.secondaryResults.secondaryResults.offerModule."+y+F.value,F=this.get(F+"navigationEndpoint",this.data)||this.get(F+"serviceEndpoint",this.data)||this.get(F+"command",this.data)){_.uU(F,this.hostElement);return}},
onPlayerAutonavPauseRequest_:function(I){_.k3(this.hostElement,"yt-autonav-pause-player",I)},
onPlayerPlaying_:function(){this.onPlayingCallbacks_.forEach(function(I){I()});
this.onPlayingCallbacks_.length=0},
onAdStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_(),this.onPlayerPlaying_()}},
onPlayerStateChange_:function(I){switch(I){case 3:this.clearPlayerLoadingState_();break;case 1:this.clearPlayerLoadingState_();this.onPlayerPlaying_();break;case 0:_.k3(this.hostElement,"yt-autonav-pause-player-ended")}this.setPlayerState(I)},
setPlayerState:function(I){_.Hg().dispatch(_.mVP(I))},
onPlayerSubscribe_:function(I){_.Fe(this.hostElement,"yt-player-subscribe",[I])},
onPlayerUnsubscribe_:function(I){_.Fe(this.hostElement,"yt-player-unsubscribe",[I])},
onPlayerAdYtShowToast_:function(I){_.Fe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popup:{notificationActionRenderer:I.notificationActionRenderer},popupType:"TOAST"}},this])},
getAlerts_:function(){return this.alertsValue},
getPlayerMicroformatRenderer_:function(I){if(I)return I},
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(I){return!_.V("web_watch_move_summary_to_sd")&&!!I},
computeWatchMetadataRefresh:function(){return _.V("kevlar_watch_metadata_refresh")&&this.videoPrimaryInfoRenderer?!0:!1},
watchNextSecondaryResultsChanged:function(){if(this.is!=="ytd-watch-grid"&&!this.useProviderForSecondaryResultsRenderer){var I,C,y,k;this.watchNextSecondaryResults=(I=this.data)==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.secondaryResults)==null?void 0:k.secondaryResults}},
swatcherooRichGridRendererDataChanged:function(){if(this.is==="ytd-watch-grid"&&this.swatcherooDirectUseRichGrid&&!_.V("swatcheroo_pbs_load_grid")&&!_.V("swatcheroo_provide_all_data_on_scheduled_job")){_.b$.cancelJob(this.setRichGridJobId_);var I,C,y,k,F,z,c;this.setRichGridRendererData((I=this.data)==null?void 0:(C=I.contents)==null?void 0:(y=C.twoColumnWatchNextResults)==null?void 0:(k=y.secondaryResults)==null?void 0:(F=k.secondaryResults)==null?void 0:(z=F.results)==null?void 0:(c=z[0])==null?
void 0:c.richGridRenderer)}},
setRichGridRendererData:function(I){this.richGridRendererData=I},
computeVideoPrimaryInfoRenderer:function(){return this.videoPrimaryInfoRendererValue},
computeVideoSecondaryInfoRenderer:function(){return this.videoSecondaryInfoRendererValue},
computeInlineStructuredDescriptionData:function(){var I,C=(I=this.data)==null?void 0:I.engagementPanels;if(C==null?0:C.length){I=null;C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;if(((k=y.engagementPanelSectionListRenderer)==null?void 0:k.targetId)==="engagement-panel-structured-description"){I=y;break}}var F,z,c;I=(F=I)==null?void 0:(z=F.engagementPanelSectionListRenderer)==null?void 0:(c=z.content)==null?void 0:c.structuredDescriptionContentRenderer;if(I==null?0:I.items){F=
[];z=_.T(I.items);for(c=z.next();!c.done;c=z.next()){c=c.value;if(!_.V("sd_horizontal_list_show_nav_killswitch")){var r=k=y=C=I=void 0,w=void 0,L=(I=c.horizontalCardListRenderer)==null?void 0:(C=I.header)==null?void 0:(y=C.richListHeaderRenderer)==null?void 0:(k=y.navigationButton)==null?void 0:(r=k.buttonRenderer)==null?void 0:(w=r.command)==null?void 0:w.commandExecutorCommand;L&&L.commands&&(L.commands=L.commands.filter(function(D){return!_.l(D,_.lKy)}))}c.expandableVideoDescriptionBodyRenderer||
c.videoDescriptionHeaderRenderer||F.push(c)}return{items:F}}}},
constructWarning_:function(I){return{text:_.Ee(I),type:"WARNING"}},
isPlaShelfEnabled_:function(I){if((this.get("adPlacements",I)||[]).length)return!0;I=this.get("playerAds",I)||[];return!(!I.length||!this.get("playerLegacyDesktopWatchAdsRenderer.playerAdParams.allowBelowThePlayerCompanion",I[0]))},
resetAutonavCanceledForNewPlayback_:function(){this.autonavCanceledSignal_=!1},
onThrottledScroll_:function(){var I=this;_.k3(this.hostElement,"yt-autonav-pause-scroll");this.setComments_();_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_();var C=this.getScrollTop()>0;this.gestures_&&(C?this.gestures_.detach():this.gestures_.attach());C!==this.showFullerscreenEdu_&&_.V("external_fullscreen_with_edu")&&this.fullscreen&&(this.showFullerscreenEdu_=C,_.EZ(this).getPlayerPromise().then(function(y){y.updateFullerscreenEduButtonVisibility(I.getScrollTop()>0)}))},
onMastheadThrottledScroll:function(){_.k3(this.hostElement,"yt-watch-masthead-scroll",this.getScrollTop())},
onYtPageDataWillUpdate_:function(){this.preparePageReset_()},
preparePageReset_:function(){this.clearScheduledCommentJobs_()},
initComments_:function(){var I=this;this.commentsReady=!1;_.b$.cancelJob(this.setCommentsJobId_);this.setCommentsJobId_=_.NU(_.b$,function(){I.setComments_()},1E3)},
setComments_:function(){if(!_.V("kevlar_watch_flexy_comments_manager")&&!this.commentsReady){_.Sr("cmi");_.b$.cancelJob(this.setCommentsJobId_);var I=this.getPageContents(this.data);if(I&&I.length){I=_.T(I);for(var C=I.next();!C.done;C=I.next())if(C=C.value,this.get("itemSectionRenderer.sectionIdentifier",C)==="comment-item-section"){this.comments=C.itemSectionRenderer;this.canScheduleCommentJobs_=!0;break}}this.commentsReady=!0}},
commentsReadyChanged_:function(){this.commentsReady&&_.k3(this.hostElement,"yt-watch-comments-ready")},
clearScheduledCommentJobs_:function(){_.V("kevlar_cancel_scheduled_comment_jobs_on_navigate")&&(this.canScheduleCommentJobs_=!1)},
showMetadataPlaceholder_:function(){_.V("kevlar_metadata_reset_on_nav")&&this.hostElement.classList.remove("hide-skeleton")},
clearComments_:function(){this.doRemoveComments_();_.Sr("cmc")},
doRemoveComments_:function(){this.comments={};_.V("kevlar_watch_hide_comments_while_panel_open")&&(this.hideComments=!1)},
setPlayerAds_:function(){_.b$.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=this.get("playerAds",this.playerData)},
clearPlayerAds_:function(){_.b$.cancelJob(this.clearPlayerAdsJobId_);this.playerAds=void 0},
onYtNavigate_:function(I,C){var y=_.l(C.endpoint,_.H$);y&&(!(C=this.get("data.currentVideoEndpoint.watchEndpoint"))||y.videoId!==C.videoId||y.playlistId&&y.playlistId!==C.playlistId||y.index!==void 0&&y.index!==C.index||typeof y.startTimeSeconds!=="number"||(I.stopPropagation(),this.setScrollTop(0),_.EZ(this).getPlayerPromise().then(function(k){var F=y.startTimeSeconds;k.seekTo(F);k.wakeUpControls();F<k.getDuration()&&k.playVideo()})))},
updatePlayerStartTime_:function(){var I=_.uKP();"t"in I&&(I=_.wML(I.t),this.player.seekTo(I,!0))},
updateTitleFromWatchNext:function(I){I=this.getPageContents(I);var C,y;(I=_.hS(I==null?void 0:(C=I[0])==null?void 0:(y=C.videoPrimaryInfoRenderer)==null?void 0:y.title))&&_.k3(this.hostElement,"yt-update-title",I)},
updateTitle_:function(I){I=this.get("videoDetails.title",I)||"";_.k3(this.hostElement,"yt-update-title",I)},
syncWithRemoteVideo_:function(I,C,y){if(this.active&&this.player){var k=this.player.getVideoData();if(k.video_id===y&&(y=k.list,_.V("polymer_enable_mdx_queue")&&y&&y.startsWith("RQ")&&(y=void 0),k.video_id!==I||y!=C)){var F;_.V("kevlar_player_watch_endpoint_navigation")?F=_.EIF(_.TNL(I,C)):F=this.buildWatchEndpoint_(I,C);_.k3(this.hostElement,"yt-navigate",{endpoint:F,isRemotePlayback:!0})}}},
buildWatchEndpoint_:function(I,C,y){return _.IQ(I,C,y)},
initDclkstatus_:function(){_.rtB()},
attachWatchPageSkeleton_:function(){var I=document.querySelector("#watch-page-skeleton");if(I){var C=I.querySelector("#primary-info"),y=I.querySelector("#secondary-info"),k=I.querySelector("#related");C&&_.f(this.hostElement).querySelector("#info-skeleton").appendChild(C);y&&_.f(this.hostElement).querySelector("#meta-skeleton").appendChild(y);k&&(_.f(this.hostElement).querySelector("#related-skeleton").appendChild(k),this.watchNextSkeletonEl_=k);_.ey(I)}},
handlePlayerUpdated_:function(){_.EZ(this).focusOnPlayer()},
watchNextShownItemsAddedOrRemoved_:function(I,C){if((this.is!=="ytd-watch-grid"||!this.swatcherooDirectUseRichGrid)&&this.watchNextSkeletonEl_&&typeof C!=="undefined"){var y=this.watchNextSkeletonEl_.children,k=I&&I.indexSplices.length?I.indexSplices[0].index:0;I=Math.min(this.watchNextShownItems.length,y.length);C||(k=0,I=y.length);for(C=k;C<I;C++)y[C].classList.add("hidden")}},
onPlayerFullscreenChange_:function(I){_.V("external_fullscreen")||_.Fe(this.hostElement,"yt-player-fullscreen",[I.fullscreen])},
onFullscreenChange_:function(I){this.fullscreen=I;this.gestures_&&this.gestures_.update(this.fullscreen);var C=_.EZ(this);C.getPlayerPromise().then(function(y){y.setFauxFullscreen(!!_.CA())});
this.updateFullBleedElementLocations();I&&(C.focusOnPlayer(),this.fullerscreenEduButtonShownThisPlayback_||(this.fullerscreenEduButtonShownThisPlayback_=!0,this.incrementFullerscreenEduButtonCount_("yt-fullerscreen-edu-button-shown-count")))},
computeShouldStampChat_:function(I,C){return!!this.get("data.contents.twoColumnWatchNextResults.conversationBar")&&!C},
computeIsDonationShelfCollapsed_:function(I){return I},
computeShouldShowMerchShelf:function(I,C){return C&&!!I},
computeResponseHasComments:function(I){var C,y,k,F,z;return!!(I==null?0:(C=I.contents)==null?0:(y=C.twoColumnWatchNextResults)==null?0:(k=y.results)==null?0:(F=k.results)==null?0:(z=F.contents)==null?0:z.some(function(c){var r;return(c==null?void 0:(r=c.itemSectionRenderer)==null?void 0:r.sectionIdentifier)==="comment-item-section"}))},
computeShowComments_:function(I,C,y,k){this.responseHasComments=this.computeResponseHasComments(this.data);return this.is==="ytd-watch-grid"&&k?!1:!!I&&!!Object.keys(I).length&&!C},
identity:_.gH,onWindowResized_:function(I){this.windowSize_=I;this.active&&(this.schedulePlayerSizeUpdate_(!0),_.V("kevlar_watch_js_panel_height")&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate(),this.scheduleSidebarSizeUpdate_()));_.V("kevlar_watch_while")&&this.updateMiniplayerBarVisibility_()},
onPlayerPresentingVideoDataChange_:function(I){var C=this;I&&I.type!=="dataloaded"&&I.type!=="dataupdated"||_.EZ(this).getPlayerPromise().then(function(y){var k=y.getPlayerState();k!==5&&k!==0&&(y=1/y.getVideoAspectRatio(),C.videoHeightToWidthRatio_!==y&&(C.videoHeightToWidthRatio_=y))})},
schedulePlayerSizeUpdate_:function(I){var C=this,y=_.V("kevlar_watch_while_v2")||_.V("web_watch_pip"),k=function(){if(C.watchMetadata){var F,z;(z=(F=C.watchMetadata).resize)==null||z.call(F)}_.EZ(C).getPlayerPromise().then(function(c){if(_.V("kevlar_set_internal_player_size")){if(!y||!C.isMiniplayerActive()){var r=C.calculateCurrentPlayerSize_();c.setInternalSize(r.width,r.height)}}else c.setSize(NaN,NaN);_.V("kevlar_watch_while")&&C.updateWatchWhileScrollThreshold_()})};
I?k():_.jj(_.b$,k)},
secondaryColumnModulePresenceChanged_:function(){this.isAttached&&this.schedulePlayerSizeUpdate_()},
onYtShowSurvey_:function(I){this.set("data.survey",I.detail)},
onYtShowSurveyCommand_:function(I){this.set("data.survey",_.l(I,_.NNH).survey)},
onDownloadedVideoDeleted:function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1){if(!C.active||(y=C.playerData)==null||!y.offlineState||C.videoId!==I)return F.return();(k=C.player)==null||k.stopVideo();_.ck().navigatingAwayFromWatchDeletedVideo=!0;_.uU(_.KSt,C.hostElement);return _.n(F,_.ck().navigationFinishPromise,2)}_.ck().navigatingAwayFromWatchDeletedVideo=!1;_.oI(F)})},
updateWatchWhileScrollThreshold_:function(){if(this.windowSize_){var I;this.theater?I=_.St(.5625*this.windowSize_.width,480,this.windowSize_.height-185):I=this.calculateNormalPlayerSize_().height+24;this.watchWhileScrollThreshold_!==I&&(this.watchWhileScrollThreshold_=I,this.updateMiniplayerBarVisibility_())}},
updateMiniplayerBarVisibility_:function(){var I=_.f(this.hostElement).querySelector("ytd-miniplayer-bar-renderer");if(this.windowSize_&&I){var C=this.windowSize_.height>=624,y=this.active?this.getScrollTop():0;!I.active&&C&&y>=this.watchWhileScrollThreshold_?(I.activate(this.getPlayer()),this.schedulePlayerSizeUpdate_()):I.active&&(!C||y<this.watchWhileScrollThreshold_&&!_.CA())&&(I.deactivate().appendTo(this.getPlayerContainer()),this.schedulePlayerSizeUpdate_())}},
defaultTwoColumnLayoutChanged:function(){if(this.swatcherooBinaryLayout&&this.is==="ytd-watch-grid"){var I=_.f(this.hostElement).querySelector("#secondary-inner");if(I){var C=_.f(this.hostElement).querySelector("#below"),y=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#comments");k&&y&&C&&(this.defaultTwoColumnLayout?(I.appendChild(k),y.appendChild(I)):(C.appendChild(k),_.Kg(C,I)))}}},
isTwoColumnsChanged_:function(I,C){if(I!==!0||C!==void 0)if(this.is==="ytd-watch-grid"){if(!this.swatcherooBinaryLayout&&(I=_.f(this.hostElement).querySelector("#secondary-inner"))){C=_.f(this.hostElement).querySelector("#below");var y=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#comments");k&&y&&C&&(this.isTwoColumns_?(I.appendChild(k),y.appendChild(I)):(C.appendChild(k),_.Kg(C,I)))}}else{I=!_.V("live_chat_over_engagement_panels");C=_.f(this.hostElement).querySelector("#chat-container");
y=_.f(this.hostElement).querySelector("#plj-sidebar");k=_.f(this.hostElement).querySelector("#panels");var F=_.f(this.hostElement).querySelector("#plj-panels"),z=_.f(this.hostElement).querySelector("#plj-playlist"),c=_.f(this.hostElement).querySelector("#alerts"),r=_.f(this.hostElement).querySelector("#playlist"),w=_.f(this.hostElement).querySelector("#related"),L=_.f(this.hostElement).querySelector("#donation-shelf"),D=_.f(this.hostElement).querySelector("#comments");this.isTwoColumns_?(c=_.f(this.hostElement).querySelector("#secondary-inner"),
c.appendChild(y),y.appendChild(z),z.appendChild(r),y.appendChild(F),I&&c.appendChild(k),_.V("web_watch_theater_chat")||c.appendChild(C),I||c.appendChild(k),c.appendChild(L),c.appendChild(w)):(I&&_.fQ(k,c),_.fQ(r,c),_.V("web_watch_theater_chat")||_.fQ(C,c),I||_.fQ(k,c),_.fQ(L,c),D&&_.fQ(w,D));_.V("kevlar_watch_js_panel_height")&&this.active&&(this.schedulePanelMaxHeightUpdate_(),this.scheduleFullHeightPanelPositionUpdate())}},
watchWhileWindowSizeSufficientChanged:function(){_.V("web_watch_theater_chat")&&this.updateChatLocation()},
updateChatLocation:function(){if(this.is!=="ytd-watch-grid"&&_.V("web_watch_theater_chat")){var I=_.f(this.hostElement).querySelector("#chat-container"),C=this.theater&&!this.fullscreen||_.V("web_watch_fullscreen_panels")&&this.fullscreen;this.watchWhileWindowSizeSufficient&&this.liveChatPresentAndExpanded&&C?_.V("web_watch_theater_chat_beside_player")?(C=_.f(this.hostElement).querySelector("#panels-full-bleed-container"),(I==null?void 0:I.parentElement)!==C&&C.append(I),this.panelsBesidePlayer=!0):
_.V("web_watch_theater_fixed_chat")&&(C=_.f(this.hostElement).querySelector("#columns"),(I==null?void 0:I.parentElement)!==C&&C.append(I),this.fixedPanels=!0):(_.V("web_watch_theater_chat_beside_player")?this.panelsBesidePlayer=!1:_.V("web_watch_theater_fixed_chat")&&(this.fixedPanels=!1),C=_.f(this.hostElement).querySelector("#playlist"),I&&C?_.SZ(I,C):_.SN(new _.ph("Missing element when updating chat location",{"chatContainer defined":!!I,"playlist defined":!!C})));this.updatePageMediaQueries();
this.schedulePlayerSizeUpdate_()}},
computeHasMetadata:function(I,C){return _.V("sw_metadata_vis_toggle_ks")?!0:!!I||!!C},
computeForceDarkPanelTheme:function(I){return _.V("web_watch_theater_chat_beside_player_dark")?!document.documentElement.hasAttribute("dark")&&I:!1},
safeUpdateStyles:function(I){try{_.CK(this.hostElement,I)}catch(C){_.SN(C)}},
videoHeightToWidthRatioChanged_:function(I,C){C&&(this.safeUpdateStyles({"--ytd-watch-flexy-width-ratio":1,"--ytd-watch-flexy-height-ratio":this.videoHeightToWidthRatio_}),this.schedulePlayerSizeUpdate_(),_.V("kevlar_watch_js_panel_height")&&this.schedulePanelMaxHeightUpdate_())},
onYtInitialVideoAspectRatio_:function(I){this.videoHeightToWidthRatio_=1/I},
computeIsVerticalVideo_:function(I){return I>=1},
computeIsFourThreeToSixteenNineVideo_:function(I){return I<=.7501&&I>=.5624},
computeIsExtraWideVideo_:function(I){return I<.5624},
onYtUserActivity_:function(){this.youThereManager_.onUserActivity()},
handleSignalActionPausePlayer_:function(){this.active&&_.EZ(this).pause()},
handleSignalActionPlayPlayer_:function(){this.active&&_.EZ(this).play()},
handleSignalActionAcknowledgeYouThere_:function(){_.GsB(this.youThereManager_)},
incrementFullerscreenEduButtonCount_:function(I){var C=_.Fk(I)||0;_.ky(I,C+1,31536E3);this.updateFullerscreenEduButtonSubtleModeState_()},
updateFullerscreenEduButtonSubtleModeState_:function(){var I=_.Fk("yt-fullerscreen-edu-button-click-count")||0,C=_.Fk("yt-fullerscreen-edu-button-shown-count")||0,y=_.s8("external_fullscreen_button_shown_threshold"),k=I>=_.s8("external_fullscreen_button_click_threshold")||C>=y;_.EZ(this).getPlayerPromise().then(function(F){F.updateFullerscreenEduButtonSubtleModeState(k)})},
resetFullerscreenEduButtonForNewPlayback_:function(){this.fullerscreenEduButtonShownThisPlayback_=this.fullerscreenEduButtonClickedThisPlayback_=!1},
computePlaylistData_:function(I,C){return C},
onYtPlaylistDataUpdated_:function(){this.externalPlaylistData_=_.N().resolve(_.Gk).getPlaylistData()||{}},
scheduleFullHeightPanelPositionUpdate:function(){var I=this;this.is==="ytd-watch-grid"&&(this.panelExpanded||this.playlist)&&(this.fullHeightPanelPositionUpdateJobId&&_.b$.cancelJob(this.fullHeightPanelPositionUpdateJobId),this.fullHeightPanelPositionUpdateJobId=_.b$.addLowPriorityJob(function(){I.fullHeightPanelPositionUpdateJobId=0;var C=_.f(I.hostElement).querySelector("#secondary"),y=_.f(I.hostElement).querySelector("#fixed-secondary");C=C.getBoundingClientRect();var k=C.width;I.swatcherooSqueezeback&&
(k+=_.At);if(I.swatcherooSqueezeback){var F=_.f(I.hostElement).querySelector("#squeezeback-constraining-container");F.style.width=k+"px";F.style.flex="0 0 "+k+"px"}y.style.width=k+"px";y.style.left=C.left+"px"}))},
schedulePanelMaxHeightUpdate_:function(){var I=this;this.is!=="ytd-watch-grid"&&(this.panelMaxHeightUpdateJob_&&_.b$.cancelJob(this.panelMaxHeightUpdateJob_),this.panelMaxHeightUpdateJob_=_.b$.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;var C;!I.isTwoColumns_||I.theater||I.fullscreen?C=460:C=I.calculateNormalPlayerSize_().height;var y=C+"px";_.V("live_chat_taller_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) -\n                        (var(--ytd-margin-6x) * 2))");
_.V("live_chat_medium_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 144px)");_.V("live_chat_scaled_height")&&!I.theater&&(y="calc(100vh - var(--ytd-toolbar-height) - 238px)");I.safeUpdateStyles({"--ytd-watch-flexy-panel-max-height":C+"px","--ytd-watch-flexy-chat-max-height":y,"--ytd-watch-flexy-structured-description-max-height":C+"px","--ytd-watch-flexy-comments-panel-max-height":C+"px","--ytd-comments-engagement-panel-content-height":C+"px"})}))},
scheduleSidebarSizeUpdate_:function(){var I=this;(this.is==="ytd-watch-grid"||this.is==="ytd-watch-flexy"&&_.V("web_watch_flexy_adjust_sidebar_width"))&&!_.V("swatchie_sidebar_killswitch")&&(this.scheduleSidebarSizeUpdateJobId_&&_.b$.cancelJob(this.scheduleSidebarSizeUpdateJobId_),this.scheduleSidebarSizeUpdateJobId_=_.b$.addLowPriorityJob(function(){I.panelMaxHeightUpdateJob_=0;if(I.isTwoColumns_){var C=_.ig8(I.windowSize_,I.calculateNormalPlayerSize_().width);C!==I.currentSidebarWidth&&(I.currentSidebarWidth=
C,I.safeUpdateStyles({"--ytd-watch-flexy-sidebar-width":C+"px"}))}}))},
onYtShowEngagementPanelScrimAction_:function(I){this.engagementPanelScrimOnClickCommands_=this.get("showEngagementPanelScrimAction.onClickCommands",I)||null;this.showEngagementPanelScrim_=!0},
onYtHideEngagementPanelScrimAction_:function(){this.engagementPanelScrimOnClickCommands_=null;this.showEngagementPanelScrim_=!1},
onEngagementPanelScrimClick_:function(){this.engagementPanelScrimOnClickCommands_&&_.cQ(this.hostElement,this.engagementPanelScrimOnClickCommands_,this.hostElement)},
showEngagementPanelScrimChanged_:function(I){var C=_.f(this.hostElement).querySelector("#engagement-panel-scrim");I?C.addEventListener("tap",_.sb(this,this.onEngagementPanelScrimClick_)):C.removeEventListener("tap",_.sb(this,this.onEngagementPanelScrimClick_))},
onGetCurrentVideoIdAction_:function(){if(this.active)return this.videoId},
onYtScrollToWatchElement_:function(I){if(this.hostElement.contains(I)&&!this.scrollToAnimation_.isAnimating()){var C=I.offsetTop-24;I=I.offsetTop+I.offsetHeight+24;var y=this.getPageScrollingElement(),k=this.getScrollTop(),F=k+y.clientHeight-56;if(C<k+56)C-=56;else if(I>F)C=I-y.clientHeight;else return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,C),500)}},
onYtSignalActionScrollToComments:function(){var I=this.hostElement.querySelector("#comments");if(I&&!this.scrollToAnimation_.isAnimating()){I=I.offsetTop-56-24;if(_.V("kevlar_comment_teaser_scroll_to_midpoint")&&(I-=_.kF().height/3,I<this.getScrollTop()))return;this.scrollToAnimation_.start(this.getScrollTop(),Math.max(0,I),500)}},
onYtEngagementPanelVisibleChanged:function(I,C,y){this.active&&this.trackEngagementPanelVisibility&&!_.CQL.includes(y)&&(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED"&&(this.visiblePanelIdentifiers_.add(y),this.swatcherooBinaryLayout&&(this.onSetPlaylistCollapsed(!0),_.uW(this.hostElement,"yt-set-live-chat-collapsed-state-action",[{setLiveChatCollapsedStateAction:{collapsed:!0}}]))),C!=="ENGAGEMENT_PANEL_VISIBILITY_COLLAPSED"&&C!=="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"||this.visiblePanelIdentifiers_.delete(y),
this.engagementPanelExpanded=this.visiblePanelIdentifiers_.size>0)},
computeLegacyMetadataClass:function(I){return I?"":"watch-active-metadata"},
computeNewMetadataClass:function(I){return I?"watch-active-metadata":""},
computeFullBleedPlayer:function(I,C){return I||C},
computeDefaultLayout:function(I){return!I},
computeDefaultTwoColumnLayout:function(I,C){return!I&&C},
swatcherooUpdatePanelsLocation:function(I,C,y,k,F,z){if(this.is==="ytd-watch-grid"){C=I&&!C;this.swatcherooSplitScroll&&(C?(this.addSplitScrollMouseTrap("#secondary-inner"),this.addSplitScrollMouseTrap("#fixed-secondary")):(this.removeSplitScrollMouseTrap("#secondary-inner"),this.removeSplitScrollMouseTrap("#fixed-secondary")));y=_.f(this.hostElement).querySelector("#panels");var c=_.f(this.hostElement).querySelector("#playlist"),r=_.f(this.hostElement).querySelector("#fixed-secondary"),w=_.f(this.hostElement).querySelector("#fixed-below"),
L=_.f(this.hostElement).querySelector("ytd-watch-metadata:not([swatcheroo-secondary-below-metadata])"),D=_.f(this.hostElement).querySelector("#chat-container");z&&(I?r.appendChild(y):w.appendChild(y));F?I?r.appendChild(D):w.appendChild(D):_.SZ(D,L);k?I?r.appendChild(c):w.appendChild(c):_.SZ(c,L);this.swatcherooSplitScroll&&(I=_.f(this.hostElement).querySelector("#secondary"),k=_.f(this.hostElement).querySelector("#columns"),F=_.f(this.hostElement).querySelector("#fixed-columns-secondary"),C?F.appendChild(I):
k.appendChild(I))}},
computeMetadataSkinnyMode:function(I,C,y){return this.is!=="ytd-watch-grid"?!1:I?y:C},
computeWatchWhilePanelsActive:function(I,C){return I||C},
computeNoBorderOnChat:function(I){return _.V("web_watch_theater_chat_no_border")&&I},
computeLiveChatPresentAndExpanded:function(I,C){return I&&!C},
computePanelExpanded:function(I,C,y){return I||C||y},
computeSwatcherooSqueezeback:function(I,C,y){return this.is!=="ytd-watch-grid"||_.V("ww_squeezeback_killswitch")?!1:I&&C&&y},
swatcherooSqueezebackChanged:function(){this.is==="ytd-watch-grid"&&this.schedulePlayerSizeUpdate_()},
onChangeMarkersVisibility:function(I){_.EZ(this).getPlayerPromise().then(function(C){var y;(y=C.changeMarkerVisibility)==null||y.call(C,_.l(I,_.B0).isVisible||!1,_.l(I,_.B0).entityKeys||[],_.l(I,_.B0).visibilityRestrictionMode||void 0)})},
onYtChatCollapsedChanged:function(I){this.liveChatCollapsed=I.detail;_.Hg().dispatch(_.pMj(I.detail))},
onSetPlaylistCollapsed:function(I){this.is==="ytd-watch-grid"&&(this.playlistPanelExpanded=this.playlist&&!I)},
provideRenderingData:function(I,C){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnValue=C;break;case "PRIMARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_primary_data")||(this.info=C);this.videoPrimaryInfoRendererValue=C==null?void 0:C.videoPrimaryInfoRenderer;break;case "SECONDARY_INFO":_.V("kevlar_watch_metadata_refresh_no_old_secondary_data")||(this.meta=C);this.videoSecondaryInfoRendererValue=C==null?void 0:C.videoSecondaryInfoRenderer;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRendererValue=
C;break;case "CLARIFICATION":this.clarifyBoxValue=C;break;case "LIVE_CHAT":this.conversationBar=C;break;case "INFO_PANEL_BELOW_METADATA":this.infoPanelBelowMetadata=C;break;case "PLAYLIST":this.externalPlaylistData_=C!=null?C:{};break;case "MERCH_SHELF":this.merchShelfValue=C==null?void 0:C.merchandiseShelfRenderer;break;case "TICKET_SHELF":this.ticket=C;break;case "OFFER_MODULE":this.offerModule=C;break;case "LIMITED_STATE":this.limitedStateValue=C;break;case "DONATION_SHELF":this.donation=C;break;
case "ALERTS":this.alertsValue=C;break;case "COMMENTS":this.comments=C;break;case "WATCH_NEXT_SECONDARY_RESULTS":this.watchNextSecondaryResults=C;break;case "ENGAGEMENT_PANELS":this.engagementPanels=C;break;case "INLINE_ENGAGEMENT_PANELS":this.inlineEngagementPanels=C;break;case "RICH_GRID_RENDERER":this.richGridRendererData=C;break;case "EXPANDABLE_METADATA":this.expandableMetadata=C;break;case "VIDEO_METADATA_CAROUSEL":this.videoMetadataCarousel=C}},
toggleCinematicsActive:function(I){this.cinematicsActive=I},
isMiniplayerActive:function(){return _.N().resolve(_.WJ).isMiniplayerActive()},
getLearningJourneyEngagementPanels:function(I){return HgR.map(function(C){return I.find(function(y){var k;return(y==null?void 0:(k=y.engagementPanelSectionListRenderer)==null?void 0:k.targetId)===C})}).filter(function(C){return C!==void 0})},
getNonLearningJourneyEngagementPanels:function(I){return I.filter(function(C){var y;return!HgR.includes((C==null?void 0:(y=C.engagementPanelSectionListRenderer)==null?void 0:y.targetId)||"")})},
getHasLearningJourneyPanels:function(I){return I.length>0}}];var tUR;var Mh=function(){var I=_.q.apply(this,arguments)||this;I.flexy=!0;I.learningJourney=!0;I.roundedInfoPanel=!0;I.viewTransitionEnabled=_.V("enable_player_resize_transition");I.smallerChatMinHeight=_.V("live_chat_smaller_min_height");I.cinematicTheaterMode=_.V("web_cinematic_theater_mode");I.transparentTheaterMode=_.V("web_transparent_theater_mode");I.cinematicFullscreen=_.V("web_cinematic_fullscreen");I.useLargerMaxPlayerValue=_.V("kevlar_flexy_use_larger_player_value");I.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");
I.isDarkTheme=document.documentElement.hasAttribute("dark");I.theaterLargerPlayer=_.V("web_watch_theater_larger_player");I.defaultCollapsePlaylist=_.V("web_watch_default_collapse_playlist");return I};
_.R(Mh,_.q);_.u=Mh.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.u.ready=function(){var I=this,C=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(I){_.V("web_watch_update_narrow_width_killswitch")||_.Hg().dispatch(_.D_H(!I.detail.value));this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.u.updateShownItemsFromBinding=function(I){I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value};
_.u.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20363_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20363_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H1.Object.defineProperties(Mh.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(I=_.l(this.data.pageVisualEffects[C],_.Pd))return C=void 0,(C=I.config)==null?void 0:C.enableInLightTheme;return!1}}});
_.H1.Object.defineProperties(Mh,{template:{configurable:!0,enumerable:!0,get:function(){if(tUR===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-learning-journey--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-learning-journey">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-learning-journey"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-learning-journey"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-learning-journey">\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-learning-journey"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-learning-journey"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-learning-journey">\n\n  <div id="secondary" class="style-scope ytd-watch-learning-journey">\n    <div id="secondary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="plj-sidebar" class="style-scope ytd-watch-learning-journey">\n        <div id="plj-playlist" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="plj-panels" class="style-scope ytd-watch-learning-journey"></div>\n      </div>\n      <div id="panels" class="style-scope ytd-watch-learning-journey">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-learning-journey">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-learning-journey"></div>\n      <div id="chat-container" class="style-scope ytd-watch-learning-journey">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-learning-journey">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-learning-journey">\n        <div id="player-ads" class="style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-learning-journey">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n      </div>\n    </div>\n  </div>\n\n  <div id="primary" class="style-scope ytd-watch-learning-journey">\n    <div id="primary-inner" class="style-scope ytd-watch-learning-journey">\n      <div id="player" class="style-scope ytd-watch-learning-journey">\n        <div id="cinematics-container" class="style-scope ytd-watch-learning-journey">\n          <div id="cinematics" class="style-scope ytd-watch-learning-journey"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-learning-journey">\n          <div id="player-container-inner" class="style-scope ytd-watch-learning-journey">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-learning-journey">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-learning-journey">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-learning-journey">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-learning-journey">\n        <div id="alerts" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="messages" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-learning-journey"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-learning-journey" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-learning-journey="" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-learning-journey">\n          <div id="info" class="style-scope ytd-watch-learning-journey">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-learning-journey">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-learning-journey"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-learning-journey"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-learning-journey"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-learning-journey">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-learning-journey">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-learning-journey">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-learning-journey"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-learning-journey"></div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);tUR=I}I=tUR;return I}}});
Mh.prototype.updateMiniplayerIsActiveValue=Mh.prototype.updateMiniplayerIsActiveValue;Mh.prototype.updateScrollTopValue=Mh.prototype.updateScrollTopValue;Mh.prototype.updateFullscreenValue=Mh.prototype.updateFullscreenValue;Mh.prototype.updateTheaterValue=Mh.prototype.updateTheaterValue;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mh.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Mh.prototype,"ytComponentBehavior",void 0);
_.E([_.g(UtY.YtdLearningJourneyWatchBehavior),_.h("design:type",Object)],Mh.prototype,"ytdWatchBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Mh.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mh.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Mh.prototype,"playerData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"flexy",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"learningJourney",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"roundedInfoPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"viewTransitionEnabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"smallerChatMinHeight",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"cinematicTheaterMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"transparentTheaterMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"cinematicFullscreen",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"useLargerMaxPlayerValue",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"cinematicFullscreenV2",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"isDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Mh.prototype,"theaterLargerPlayer",void 0);_.E([_.d(),_.h("design:type",Object)],Mh.prototype,"defaultCollapsePlaylist",void 0);_.E([_.d({selector:_.pC}),_.h("design:type",Object)],Mh.prototype,"theaterValue",void 0);
_.E([_.d({selector:_.lO}),_.h("design:type",Object)],Mh.prototype,"fullscreenValue",void 0);_.E([_.d({selector:_.XK}),_.h("design:type",Object)],Mh.prototype,"scrollTopValue",void 0);_.E([_.d({selector:_.GL}),_.h("design:type",Object)],Mh.prototype,"miniplayerIsActiveValue",void 0);_.E([_.Zc("ytd-player"),_.h("design:type",HTMLElement)],Mh.prototype,"ytdPlayer",void 0);_.E([_.z$("#playlist"),_.h("design:type",HTMLElement)],Mh.prototype,"JSC$20363_ytdPlaylistPanelRenderer",void 0);
_.E([_.Zc("ytd-comments"),_.h("design:type",HTMLElement)],Mh.prototype,"ytdComments",void 0);_.E([_.z$("#primary"),_.h("design:type",HTMLElement)],Mh.prototype,"primary",void 0);_.E([_.z$("#secondary"),_.h("design:type",HTMLElement)],Mh.prototype,"secondary",void 0);_.E([_.z$("#player-container"),_.h("design:type",HTMLElement)],Mh.prototype,"playerContainer",void 0);_.E([_.z$("#cinematics"),_.h("design:type",HTMLElement)],Mh.prototype,"JSC$20363_cinematics",void 0);
_.E([_.FI("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mh.prototype,"updateTheaterValue",null);_.E([_.FI("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mh.prototype,"updateFullscreenValue",null);_.E([_.FI("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mh.prototype,"updateScrollTopValue",null);
_.E([_.FI("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Mh.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Mh.prototype,"cinematicLightTheme",null);Mh=_.E([_.m({is:"ytd-watch-learning-journey"})],Mh);_.pX.registerService(_.S9I,Mh);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("Tm0L3c");
var dtS;var xtY;var qYL=function(){return _.q.apply(this,arguments)||this};
_.R(qYL,_.q);qYL=_.E([_.m({is:"ytd-ghost-comments-renderer",disableElementRegistration:!0})],qYL);
_.Z(qYL,"ytd-ghost-comments-renderer",function(){if(xtY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);xtY=I}I=xtY;return I},{mode:1});var mtj;var ZgY=function(){return _.q.apply(this,arguments)||this};
_.R(ZgY,_.q);ZgY=_.E([_.m({is:"ytd-ghost-watch-metadata-renderer",disableElementRegistration:!0})],ZgY);
_.Z(ZgY,"ytd-ghost-watch-metadata-renderer",function(){if(mtj===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);mtj=I}I=mtj;return I},{mode:1});var al=function(){var I=_.q.apply(this,arguments)||this;I.ghostGridRenderer={rows:6};I.roundedInfoPanel=!0;I.hideOfferModules=!0;I.smallerChatMinHeight=_.V("live_chat_smaller_min_height");I.cinematicTheaterMode=_.V("web_cinematic_theater_mode");I.transparentTheaterMode=_.V("web_transparent_theater_mode");I.darkerPanels=_.V("web_watch_darker_panels");I.cinematicFullscreen=_.V("web_cinematic_fullscreen");I.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");I.isDarkTheme=document.documentElement.hasAttribute("dark");
return I};
_.R(al,_.q);_.u=al.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateMiniplayerIsActiveValue=function(){this.ytdWatchBehavior.onMiniplayerActiveReduxValueUpdate(!!this.miniplayerIsActiveValue)};
_.u.ready=function(){var I=this,C=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(I){this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.u.updateShownItemsFromBinding=function(I){_.V("swatcheroo_direct_use_rich_grid")||(I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value)};
_.u.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20354_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20354_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H1.Object.defineProperties(al.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(I=_.l(this.data.pageVisualEffects[C],_.Pd))return C=void 0,(C=I.config)==null?void 0:C.enableInLightTheme;return!1}}});
al.prototype.updateMiniplayerIsActiveValue=al.prototype.updateMiniplayerIsActiveValue;al.prototype.updateScrollTopValue=al.prototype.updateScrollTopValue;al.prototype.updateFullscreenValue=al.prototype.updateFullscreenValue;al.prototype.updateTheaterValue=al.prototype.updateTheaterValue;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],al.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],al.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.v2L.YtdWatchBehavior),_.h("design:type",Object)],al.prototype,"ytdWatchBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],al.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],al.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],al.prototype,"ghostGridRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],al.prototype,"playerData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"roundedInfoPanel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"hideOfferModules",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"smallerChatMinHeight",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"cinematicTheaterMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"transparentTheaterMode",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"darkerPanels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"cinematicFullscreen",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"cinematicFullscreenV2",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],al.prototype,"isDarkTheme",void 0);_.E([_.d({selector:_.pC}),_.h("design:type",Object)],al.prototype,"theaterValue",void 0);
_.E([_.d({selector:_.lO}),_.h("design:type",Object)],al.prototype,"fullscreenValue",void 0);_.E([_.d({selector:_.XK}),_.h("design:type",Object)],al.prototype,"scrollTopValue",void 0);_.E([_.d({selector:_.GL}),_.h("design:type",Object)],al.prototype,"miniplayerIsActiveValue",void 0);_.E([_.z$("#ytd-player"),_.h("design:type",HTMLElement)],al.prototype,"ytdPlayer",void 0);_.E([_.z$("#playlist"),_.h("design:type",HTMLElement)],al.prototype,"JSC$20354_ytdPlaylistPanelRenderer",void 0);
_.E([_.z$("#ytd-comments"),_.h("design:type",HTMLElement)],al.prototype,"ytdComments",void 0);_.E([_.z$("#primary"),_.h("design:type",HTMLElement)],al.prototype,"primary",void 0);_.E([_.z$("#secondary"),_.h("design:type",HTMLElement)],al.prototype,"secondary",void 0);_.E([_.z$("#player-container"),_.h("design:type",HTMLElement)],al.prototype,"playerContainer",void 0);_.E([_.z$("#cinematics"),_.h("design:type",HTMLElement)],al.prototype,"JSC$20354_cinematics",void 0);
_.E([_.FI("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],al.prototype,"updateTheaterValue",null);_.E([_.FI("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],al.prototype,"updateFullscreenValue",null);_.E([_.FI("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],al.prototype,"updateScrollTopValue",null);
_.E([_.FI("miniplayerIsActiveValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],al.prototype,"updateMiniplayerIsActiveValue",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],al.prototype,"cinematicLightTheme",null);
_.Z(al,"ytd-watch-grid",function(){if(dtS===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-grid--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-grid"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-grid">\n</iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-grid"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-grid"></div>\n\n<div id="player-full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-grid">\n  </div>\n  <div id="squeezeback-constraining-container" hidden="[[!squeezeback]]" class="style-scope ytd-watch-grid"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-grid"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-grid">\n  <div id="primary" class="style-scope ytd-watch-grid">\n    <div id="primary-inner" class="style-scope ytd-watch-grid">\n      <div id="player" class="style-scope ytd-watch-grid">\n        <div id="cinematics-container" class="style-scope ytd-watch-grid">\n          <div id="cinematics" class="style-scope ytd-watch-grid"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-grid">\n          <div id="player-container-inner" class="style-scope ytd-watch-grid">\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-grid">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-grid">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-grid">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-grid">\n        <div id="fixed-below" class="style-scope ytd-watch-grid"></div>\n        <div id="bottom-grid" class="style-scope ytd-watch-grid">\n          <ytd-rich-grid-renderer continuation-show-button="[[showRichGridContinuationButton]]" data="[[richGridRendererData]]" disable-upgrade$="[[!richGridRendererData]]" hidden="[[!richGridRendererData]]" hide-chips-bar="" is-watch-default-layout="[[defaultTwoColumnLayout]]" item-max-width="[[richItemMaxWidth]]" item-min-width="[[richItemMinWidth]]" reduced-bottom-margin="" row-reduced-horizontal-margin="" transparent-background-chips-bar="" class="style-scope ytd-watch-grid">\n          </ytd-rich-grid-renderer>\n          <ytd-ghost-grid-renderer data="[[ghostGridRenderer]]" hidden="[[richGridRendererData]]" is-watch-next="" rich-item-min-width="[[richItemMinWidth]]" class="style-scope ytd-watch-grid"></ytd-ghost-grid-renderer>\n        </div>\n      </div>\n    </div>\n  </div>\n  <div id="secondary" class="style-scope ytd-watch-grid">\n    <div id="fixed-secondary" class="style-scope ytd-watch-grid">\n      <div id="panels" class="style-scope ytd-watch-grid">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-engagement-panels>\n      </div>\n      <div id="chat-container" class="style-scope ytd-watch-grid">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-grid">\n          <ytd-live-chat-frame id="chat" data="[[conversationBar]]" class="style-scope ytd-watch-grid">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n    </div>\n    <div id="secondary-inner" class="style-scope ytd-watch-grid">\n        <ytd-watch-metadata clarify-box="[[clarifyBox]]" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" hidden="[[!videoPrimaryInfoRenderer]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" player-ads="[[playerAds]]" playlist="[[playlist]]" skinny-mode="[[metadataSkinnyMode]]" swatcheroo-enable-double-metadata="[[swatcherooUseDoubleMetadata]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" class="style-scope ytd-watch-grid">\n        </ytd-watch-metadata>\n        <ytd-ghost-watch-metadata-renderer hidden="[[hasMetadata]]" class="style-scope ytd-watch-grid"></ytd-ghost-watch-metadata-renderer>\n        <div id="inline-panels" class="style-scope ytd-watch-grid"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-grid"></div>\n        <div id="alerts" class="style-scope ytd-watch-grid"></div>\n        <div id="messages" class="style-scope ytd-watch-grid"></div>\n        <div id="related" class="style-scope ytd-watch-grid">\n          <div id="player-ads" class="style-scope ytd-watch-grid"></div>\n          <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n        </div>\n        <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[!playlistPanelExpanded]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" meta-panel="[[swatcherooSplitScroll]]" class="style-scope ytd-watch-grid">\n        </ytd-playlist-panel-renderer>\n        <div id="expandable-metadata" hidden="[[!expandableMetadata]]" class="style-scope ytd-watch-grid"></div>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-grid" hidden="">\n          <div id="info" class="style-scope ytd-watch-grid">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-grid">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-grid"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid"></div>\n          </div>\n        </div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-grid"></div>\n      <div id="offer-module" class="style-scope ytd-watch-grid"></div>\n      <div id="donation-shelf" class="style-scope ytd-watch-grid"></div>\n      <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-grid"></div>\n      \n      <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-grid">\n        <ytd-merch-shelf-renderer data="[[merchShelf]]" meta-panel="[[swatcherooSplitScroll]]" skinny-mode="[[isTwoColumns_]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-grid">\n        </ytd-merch-shelf-renderer>\n      </template>\n      <ytd-ghost-comments-renderer hidden="[[comments]]" class="style-scope ytd-watch-grid"></ytd-ghost-comments-renderer>\n      <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat, commentsEntryPointHeaderRenderer)]]" hide-panel-button="[[!defaultTwoColumnLayout]]" is-watch-grid="" class="style-scope ytd-watch-grid">\n      </ytd-comments>\n    </div>\n  </div>\n</div>\n<div id="fixed-columns-secondary" hidden="[[!swatcherooSplitScroll]]" class="style-scope ytd-watch-grid"> </div>\n\n<div id="survey" class="style-scope ytd-watch-grid"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-grid"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);dtS=I}I=dtS;return I},{mode:2});_.pX.registerService(_.fFz,al);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("CF909");
var WiR;var Oa=function(){var I=_.q.apply(this,arguments)||this;I.flexy=!0;I.roundedInfoPanel=!0;I.viewTransitionEnabled=_.V("enable_player_resize_transition");I.smallerChatMinHeight=_.V("live_chat_smaller_min_height");I.cinematicTheaterMode=_.V("web_cinematic_theater_mode");I.transparentTheaterMode=_.V("web_transparent_theater_mode");I.cinematicFullscreen=_.V("web_cinematic_fullscreen");I.useLargerMaxPlayerValue=_.V("kevlar_flexy_use_larger_player_value");I.cinematicFullscreenV2=_.V("web_cinematic_fullscreen_v2");
I.isDarkTheme=document.documentElement.hasAttribute("dark");I.defaultCollapsePlaylist=_.V("web_watch_default_collapse_playlist");I.retroModeReduxValue=!1;return I};
_.R(Oa,_.q);_.u=Oa.prototype;_.u.updateTheaterValue=function(){this.ytdWatchBehavior.onTheaterReduxValueUpdate(!!this.theaterValue)};
_.u.updateFullscreenValue=function(){this.ytdWatchBehavior.onFullscreenReduxValueUpdate(!!this.fullscreenValue)};
_.u.updateScrollTopValue=function(){this.ytdWatchBehavior.onScrollReduxValueUpdate(this.scrollTopValue||0)};
_.u.updateRetroModeReduxValue=function(){_.V("web_player_rtr_ctrls")&&(this.ytdWatchBehavior.retroMode=this.retroModeReduxValue)};
_.u.ready=function(){var I=this,C=function(){I.onColumnScroll()};
this.primary.addEventListener("scroll",C);this.secondary.addEventListener("scroll",C)};
_.u.onColumnScroll=function(){this.ytRendererBehavior.markDirty()};
_.u.updateIsTwoColumnsFromBinding=function(I){_.V("web_watch_update_narrow_width_killswitch")||_.Hg().dispatch(_.D_H(!I.detail.value));this.ytdWatchBehavior.isTwoColumns_=I.detail.value};
_.u.updateFlexySmallWindowFromBinding=function(I){this.ytdWatchBehavior.flexySmallWindow_=I.detail.value};
_.u.updateFlexyLargeWindowFromBinding=function(I){this.ytdWatchBehavior.flexyLargeWindow_=I.detail.value};
_.u.updateWatchWhileWindowSizeSufficientFromBinding=function(I){this.ytdWatchBehavior.watchWhileWindowSizeSufficient=I.detail.value};
_.u.updateWatchNextCanShowMoreFromBinding=function(I){this.ytdWatchBehavior.watchNextCanShowMore=I.detail.value};
_.u.updateShownItemsFromBinding=function(I){I.detail.path?this.set(I.detail.path,I.detail.value):this.ytdWatchBehavior.watchNextShownItems=I.detail.value};
_.u.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20349_ytdPlaylistPanelRenderer;case "CINEMATICS":return this.JSC$20349_cinematics;case "PLAYER_CONTAINER":return this.playerContainer;case "COMMENTS":return this.ytdComments}};
_.H1.Object.defineProperties(Oa.prototype,{cinematicLightTheme:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.pageVisualEffects)return!1;for(var C=0;C<this.data.pageVisualEffects.length;C++)if(I=_.l(this.data.pageVisualEffects[C],_.Pd))return C=void 0,(C=I.config)==null?void 0:C.enableInLightTheme;return!1}}});
_.H1.Object.defineProperties(Oa,{template:{configurable:!0,enumerable:!0,get:function(){if(WiR===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-flexy--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e\n<iron-media-query id="two-column-query" query-matches="[[isTwoColumns_]]" on-query-matches-changed="updateIsTwoColumnsFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n<iron-media-query id="small-window-query" query-matches="[[flexySmallWindow_]]" on-query-matches-changed="updateFlexySmallWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="large-window-query" query-matches="[[flexyLargeWindow_]]" on-query-matches-changed="updateFlexyLargeWindowFromBinding" class="style-scope ytd-watch-flexy">\n</iron-media-query>\n<iron-media-query id="watch-while-query" query-matches="[[watchWhileWindowSizeSufficient]]" on-query-matches-changed="updateWatchWhileWindowSizeSufficientFromBinding" class="style-scope ytd-watch-flexy"></iron-media-query>\n\n<div id="microformat" class="style-scope ytd-watch-flexy"></div>\n\n<div id="miniplayer-bar" class="style-scope ytd-watch-flexy"></div>\n\n<div id="full-bleed-container" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="player-full-bleed-container" class="style-scope ytd-watch-flexy">\n    <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n      <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n    </div>\n    <div id="cinematics-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n  </div>\n  <div id="panels-full-bleed-container" class="style-scope ytd-watch-flexy"></div>\n</div>\n\n<div id="single-column-container" hidden="[[!singleColumn]]" class="style-scope ytd-watch-flexy"></div>\n<div id="columns" hidden="[[singleColumn]]" class="style-scope ytd-watch-flexy">\n  <div id="primary" class="style-scope ytd-watch-flexy">\n    <div id="primary-inner" class="style-scope ytd-watch-flexy">\n      <div id="player" class="style-scope ytd-watch-flexy">\n        <div id="cinematics-container" class="style-scope ytd-watch-flexy">\n          <div id="cinematics" class="style-scope ytd-watch-flexy"></div>\n        </div>\n        <div id="player-container-outer" class="style-scope ytd-watch-flexy">\n          <div id="player-container-inner" class="style-scope ytd-watch-flexy">\n            <div class="player-container-background style-scope ytd-watch-flexy" hidden="[[!playerContainerBackgroundImage]]">\n              <ytd-thumbnail class="player-container-background-image style-scope ytd-watch-flexy" data="[[playerContainerBackgroundImage]]"></ytd-thumbnail>\n            </div>\n            <div id="player-container" role="complementary" class="style-scope ytd-watch-flexy">\n              <ytd-player id="ytd-player" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_WATCH" watch-next-data="[[data]]" class="style-scope ytd-watch-flexy">\n              </ytd-player>\n            </div>\n          </div>\n        </div>\n        <yt-playability-error-supported-renderers id="error-screen" data="[[playerData.playabilityStatus.errorScreen]]" disable-upgrade$="[[!playerUnavailable]]" hidden$="[[!playerUnavailable]]" status="[[playerData.playabilityStatus.status]]" class="style-scope ytd-watch-flexy">\n        </yt-playability-error-supported-renderers>\n      </div>\n      <div id="below" class="style-scope ytd-watch-flexy">\n        <div id="alerts" class="style-scope ytd-watch-flexy"></div>\n        <div id="messages" class="style-scope ytd-watch-flexy"></div>\n        <div id="clarify-box" class="attached-message style-scope ytd-watch-flexy"></div>\n        <div id="limited-state" class="attached-message style-scope ytd-watch-flexy"></div>\n        <ytd-watch-metadata class$="[[newMetadataClass]] style-scope ytd-watch-flexy" comments-entry-point-header-renderer="[[commentsEntryPointHeaderRenderer]]" disable-upgrade$="[[!watchMetadataRefresh]]" hidden="[[!watchMetadataRefresh]]" info-panel-below-metadata="[[infoPanelBelowMetadata]]" is-watch-flexy="" merch-shelf="[[merchShelfInSd]]" structured-description-content-renderer="[[inlineStructuredDescriptionData]]" video-id="[[videoId]]" video-metadata-carousel="[[videoMetadataCarousel]]" video-primary-info-renderer="[[videoPrimaryInfoRenderer]]" video-secondary-info-renderer="[[videoSecondaryInfoRenderer]]" video-summary="[[expandableMetadata]]">\n        </ytd-watch-metadata>\n        <div class$="[[legacyMetadataClass]] style-scope ytd-watch-flexy">\n          <div id="info" class="style-scope ytd-watch-flexy">\n            <div id="info-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="info-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n          <div id="meta" class="style-scope ytd-watch-flexy">\n            <div id="meta-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n            <div id="meta-contents" hidden="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy"></div>\n          </div>\n        </div>\n        <div id="expandable-metadata" hidden="[[!showExpandableMetadata]]" class="style-scope ytd-watch-flexy"></div>\n        <div id="ticket-shelf" hidden="[[!monetizationShelvesEnabled_]]" class="style-scope ytd-watch-flexy"></div>\n        \n        <template is="dom-if" if="[[shouldShowMerchShelf]]" restamp="" id="merch-shelf" class="style-scope ytd-watch-flexy">\n          <ytd-merch-shelf-renderer data="[[merchShelf]]" watch-metadata-refresh="[[watchMetadataRefresh]]" class="style-scope ytd-watch-flexy">\n          </ytd-merch-shelf-renderer>\n        </template>\n        <ytd-comments id="comments" can-schedule-jobs="[[canScheduleCommentJobs_]]" data="[[comments]]" disable-upgrade$="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" hidden="[[!computeShowComments_(comments, hideComments, shouldStampChat)]]" class="style-scope ytd-watch-flexy">\n        </ytd-comments>\n      </div>\n    </div>\n  </div>\n\n  <div id="secondary" class="style-scope ytd-watch-flexy">\n    <div id="secondary-inner" class="style-scope ytd-watch-flexy">\n      <div id="panels" class="style-scope ytd-watch-flexy">\n        <ytd-watch-engagement-panels data="[[data.engagementPanels]]" disable-upgrade$="[[!useEngagementPanelManagementComponent]]" hidden="[[!useEngagementPanelManagementComponent]]" class="style-scope ytd-watch-flexy">\n        </ytd-watch-engagement-panels>\n      </div>\n      <ytd-playlist-panel-renderer id="playlist" autoplay-data="[[data.contents.twoColumnWatchNextResults.autoplay.autoplay]]" collapsed="[[defaultCollapsePlaylist]]" data="[[playlistData]]" hidden="[[!playlist]]" loading$="[[loadingData.playlistLoading]]" class="style-scope ytd-watch-flexy">\n      </ytd-playlist-panel-renderer>\n      <div id="donation-shelf" class="style-scope ytd-watch-flexy"></div>\n      <div id="chat-container" class="style-scope ytd-watch-flexy">\n        \n        <template is="dom-if" if="[[shouldStampChat]]" restamp="" id="chat-template" class="style-scope ytd-watch-flexy">\n          <ytd-live-chat-frame id="chat" data="[[data.contents.twoColumnWatchNextResults.conversationBar]]" force-dark-theme="[[forceDarkPanelTheme]]" no-border="[[noBorderOnChat]]" theater-watch-while="[[watchWhilePanelsActive]]" class="style-scope ytd-watch-flexy">\n          </ytd-live-chat-frame>\n        </template>\n      </div>\n      <div id="related" class="style-scope ytd-watch-flexy">\n        <div id="player-ads" class="style-scope ytd-watch-flexy"></div>\n        <ytd-watch-next-secondary-results-renderer can-show-more="[[watchNextCanShowMore]]" data="[[watchNextSecondaryResults]]" disable-upgrade$="[[!watchNextSecondaryResults]]" hidden="[[!watchNextSecondaryResults]]" is-two-columns="[[isTwoColumns_]]" player-data="[[playerData]]" show-more-button="[[!isTwoColumns_]]" shown-items="[[watchNextShownItems]]" on-can-show-more-changed="updateWatchNextCanShowMoreFromBinding" on-shown-items-changed="updateShownItemsFromBinding" class="style-scope ytd-watch-flexy">\n        </ytd-watch-next-secondary-results-renderer>\n        <div id="related-skeleton" class="watch-skeleton style-scope ytd-watch-flexy"></div>\n      </div>\n    </div>\n  </div>\n</div>\n\n<div id="survey" class="style-scope ytd-watch-flexy"></div>\n<div id="engagement-panel-scrim" hidden="[[!showEngagementPanelScrim_]]" class="style-scope ytd-watch-flexy"></div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);WiR=I}I=WiR;return I}}});
Oa.prototype.updateRetroModeReduxValue=Oa.prototype.updateRetroModeReduxValue;Oa.prototype.updateScrollTopValue=Oa.prototype.updateScrollTopValue;Oa.prototype.updateFullscreenValue=Oa.prototype.updateFullscreenValue;Oa.prototype.updateTheaterValue=Oa.prototype.updateTheaterValue;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Oa.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Oa.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.v2L.YtdWatchBehavior),_.h("design:type",Object)],Oa.prototype,"ytdWatchBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Oa.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Oa.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Oa.prototype,"playerData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"flexy",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"roundedInfoPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"viewTransitionEnabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"smallerChatMinHeight",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"cinematicTheaterMode",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"transparentTheaterMode",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"cinematicFullscreen",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"useLargerMaxPlayerValue",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"cinematicFullscreenV2",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Oa.prototype,"isDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],Oa.prototype,"defaultCollapsePlaylist",void 0);_.E([_.d({selector:_.pC}),_.h("design:type",Object)],Oa.prototype,"theaterValue",void 0);_.E([_.d({selector:_.lO}),_.h("design:type",Object)],Oa.prototype,"fullscreenValue",void 0);_.E([_.d({selector:_.XK}),_.h("design:type",Object)],Oa.prototype,"scrollTopValue",void 0);
_.E([_.d({selector:_.GL}),_.h("design:type",Object)],Oa.prototype,"miniplayerIsActive",void 0);_.E([_.d({selector:function(I){return I.watch.isWatchRetroMode}}),
_.h("design:type",Object)],Oa.prototype,"retroModeReduxValue",void 0);_.E([_.Zc("ytd-player"),_.h("design:type",HTMLElement)],Oa.prototype,"ytdPlayer",void 0);_.E([_.z$("#playlist"),_.h("design:type",HTMLElement)],Oa.prototype,"JSC$20349_ytdPlaylistPanelRenderer",void 0);_.E([_.Zc("ytd-comments"),_.h("design:type",HTMLElement)],Oa.prototype,"ytdComments",void 0);_.E([_.z$("#primary"),_.h("design:type",HTMLElement)],Oa.prototype,"primary",void 0);
_.E([_.z$("#secondary"),_.h("design:type",HTMLElement)],Oa.prototype,"secondary",void 0);_.E([_.z$("#player-container"),_.h("design:type",HTMLElement)],Oa.prototype,"playerContainer",void 0);_.E([_.z$("#cinematics"),_.h("design:type",HTMLElement)],Oa.prototype,"JSC$20349_cinematics",void 0);_.E([_.FI("theaterValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Oa.prototype,"updateTheaterValue",null);
_.E([_.FI("fullscreenValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Oa.prototype,"updateFullscreenValue",null);_.E([_.FI("scrollTopValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Oa.prototype,"updateScrollTopValue",null);_.E([_.FI("retroModeReduxValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Oa.prototype,"updateRetroModeReduxValue",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Oa.prototype,"cinematicLightTheme",null);Oa=_.E([_.m({is:"ytd-watch-flexy"})],Oa);_.pX.registerService(_.GzO,Oa);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("nmfa2d");
var FiY;var mN=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;I.errorScreen=null;I.playlistData={};return I};
_.R(mN,_.q);_.u=mN.prototype;_.u.getPlayer=function(){return this.ytdPlayer};
_.u.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:_.Xr(["aa","eocs"])}}};
_.u.onActiveChanged=function(){_.Hg().dispatch(_.LJY(this.ytPageBehavior.active))};
_.u.playerDataChanged=function(){var I;(I=this.watchController)==null||_.du(I,this.playerData)};
_.u.dataChanged=function(){var I;(I=this.watchController)==null||_.xM(I,this.data)};
_.u.sizeChanged=function(){var I,C;(C=(I=this.metadata).resize)==null||C.call(I)};
_.u.attached=function(){this.watchController=new _.W0(this);this.playerData&&_.du(this.watchController,this.playerData);this.data&&_.xM(this.watchController,this.data)};
_.u.detached=function(){_.Bi(this.watchController);this.watchController=void 0};
_.u.getPlayerContainer=function(){return this.playerContainer};
_.u.getElement=function(I){switch(I){case "PLAYER":return this.ytdPlayer;case "PLAYLIST_PANEL":return this.JSC$20301_playlistPanel}};
_.u.provideRenderingData=function(I,C){switch(I){case "SINGLE_COLUMN_CONTENTS":this.singleColumnContents=C;break;case "ERROR_SCREEN":this.errorScreen=C!=null?C:null;break;case "PRIMARY_INFO":this.videoPrimaryInfoRenderer=C;break;case "SECONDARY_INFO":this.videoSecondaryInfoRenderer=C;break;case "COMMENTS_ENTRY_POINT_HEADER":this.commentsEntryPointHeaderRenderer=C;break;case "RICH_METADATA":this.richMetadataRowContainer=C;break;case "CLARIFICATION":this.clarificationData=C;break;case "PLAYLIST":this.playlistData=
C!=null?C:{};break;case "MERCH_SHELF":this.merchShelf=C;break;case "TICKET_SHELF":this.ticketShelf=C;break;case "LIMITED_STATE":this.limitedState=C;break;case "DONATION_SHELF":this.donationShelf=C;break;case "ALERTS":this.alerts=C}};
_.H1.Object.defineProperties(mN.prototype,{hasPlaylistData:{configurable:!0,enumerable:!0,get:function(){return this.playlistData&&!!Object.keys(this.playlistData).length}},
hasChat:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return!this.hidden&&!!((I=this.data)==null?0:(C=I.contents)==null?0:(y=C.twoColumnWatchNextResults)==null?0:y.conversationBar)}}});
mN.prototype.sizeChanged=mN.prototype.sizeChanged;mN.prototype.dataChanged=mN.prototype.dataChanged;mN.prototype.playerDataChanged=mN.prototype.playerDataChanged;mN.prototype.onActiveChanged=mN.prototype.onActiveChanged;_.E([_.g(_.Q2.YtPageBehavior),_.h("design:type",Object)],mN.prototype,"ytPageBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],mN.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],mN.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"playerData",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mN.prototype,"hidden",void 0);_.E([_.z$("#ytd-player"),_.h("design:type",HTMLElement)],mN.prototype,"ytdPlayer",void 0);_.E([_.z$("#player-container"),_.h("design:type",HTMLElement)],mN.prototype,"playerContainer",void 0);_.E([_.z$("#metadata"),_.h("design:type",Object)],mN.prototype,"metadata",void 0);_.E([_.z$("#playlist"),_.h("design:type",HTMLElement)],mN.prototype,"JSC$20301_playlistPanel",void 0);
_.E([_.d({selector:_.$vS,reflectToAttribute:!0}),_.h("design:type",Object)],mN.prototype,"fixie",void 0);_.E([_.d({selector:_.XBH,reflectToAttribute:!0}),_.h("design:type",Object)],mN.prototype,"singleColumn",void 0);_.E([_.d({selector:function(I){return _.pC(I)&&!_.lO(I)},
reflectToAttribute:!0}),_.h("design:type",Object)],mN.prototype,"theater",void 0);_.E([_.d({selector:_.lO,reflectToAttribute:!0}),_.h("design:type",Object)],mN.prototype,"fullscreen",void 0);_.E([_.d({selector:_.lq8}),_.h("design:type",Object)],mN.prototype,"windowSize",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"singleColumnContents",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"errorScreen",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"playlistData",void 0);
_.E([_.d(),_.h("design:type",Object)],mN.prototype,"videoPrimaryInfoRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"videoSecondaryInfoRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"richMetadataRowContainer",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"clarificationData",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"commentsEntryPointHeaderRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"ticketShelf",void 0);
_.E([_.d(),_.h("design:type",Object)],mN.prototype,"merchShelf",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"donationShelf",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"limitedState",void 0);_.E([_.d(),_.h("design:type",Object)],mN.prototype,"alerts",void 0);_.E([_.v("playlistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],mN.prototype,"hasPlaylistData",null);
_.E([_.v("data","hidden"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],mN.prototype,"hasChat",null);_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mN.prototype,"onActiveChanged",null);_.E([_.FI("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mN.prototype,"playerDataChanged",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mN.prototype,"dataChanged",null);_.E([_.FI("windowSize","singleColumn"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mN.prototype,"sizeChanged",null);
_.Z(mN,"ytd-watch-fixie",function(){if(FiY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);FiY=I}I=FiY;return I},{mode:1});_.pX.registerService(_.Y9Y,mN);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("xwEKAe");
var RNM=function(I){var C=_.pA();if(C.getFlag(202))C=C.getFlag(201);else{var y;C=(I==null?void 0:(y=I.config)==null?void 0:y.settingOnByDefault)!==void 0?I.config.settingOnByDefault:!_.V("web_shorts_cinematics_disabled_by_default")}return C},bkP=function(I){var C=_.pA();
_.Qw(0,201,I);_.Qw(0,202,!0);C.save()},YfP=function(I){return(I=_.nR9(I))?_.LbF(I):0},GmY=function(I){return I.shorts.isSmallScreenSqueezeback},f2Y=function(I){return I.shorts.isPlaybackStarted},SfY=function(I,C,y,k){I=C-I;
y=k-y;return Math.sqrt(I*I+y*y)},KWB=function(I,C){I&&_.N().resolve(_.ID).resolveCommand(I,{forceClickLogging:!0,
form:{element:C}})},ABM=function(I){I.unsubscribeFromStore=_.rf(I.storeWithShorts,_.$SL,function(C){I.initOrDisposeActiveModules(C);
!C&&I.storeWithShorts.getState().shorts.isFullscreen&&(_.sN(document.documentElement),I.storeWithShorts.dispatch(_.Y8K(!1)))});
I.initOrDisposeActiveModules(_.$SL(I.storeWithShorts.getState()))},gJS=function(I){var C=_.N().resolve(_.aV);
C.rootElement=I;ABM(C)},vJL=function(){return _.N().resolve(_.aV).dismissedIndices},WWy=function(I){return _.yE({type:"SET_IS_WATCH_WHILE_MODE",
payload:{isWatchWhileMode:I}})},dZS=function(I){return _.yE({type:"SET_IS_SMALL_SCREEN_SQUEEZEBACK",
payload:{isSmallScreenSqueezeback:I}})},o2=function(I){return _.yE({type:"SET_IS_PLAYBACK_STARTED",
payload:{isPlaybackStarted:I}})},yN=function(I,C){if(I instanceof yN)this.array_=I.array_;
else{var y;if(y=_.Mz(I))a:{for(var k=y=0;k<I.length;k++){if(!_.Mz(I[k])||y>0&&I[k].length!=y){y=!1;break a}for(var F=0;F<I[k].length;F++)if(typeof I[k][F]!=="number"){y=!1;break a}y==0&&(y=I[k].length)}y=y!=0}if(y)this.array_=_.tX(I);else if(I instanceof _.y6)this.array_=xZY(I.height,I.width);else if(typeof I==="number"&&typeof C==="number"&&I>0&&C>0)this.array_=xZY(I,C);else throw Error("Yl");}this.size_=new _.y6(this.array_[0].length,this.array_.length)},qfL=function(I,C,y){for(var k=0;k<I.getSize().height;k++)for(var F=
0;F<I.getSize().width;F++)C.call(y,I.array_[k][F],k,F,I)},mZM=function(I,C){var y=new yN(I.getSize());
qfL(I,function(k,F,z){y.array_[F][z]=C.call(void 0,k,F,z,I)});
return y},xZY=function(I,C){for(var y=[],k=0;k<I;k++){y[k]=[];
for(var F=0;F<C;F++)y[k][F]=0}return y};
yN.prototype.add=function(I){if(!_.CoP(this.size_,I.getSize()))throw Error("Zl");return mZM(this,function(C,y,k){return C+I.array_[y][k]})};
yN.prototype.equals=function(I,C){if(this.size_.width!=I.size_.width||this.size_.height!=I.size_.height)return!1;C=C||0;for(var y=0;y<this.size_.height;y++)for(var k=0;k<this.size_.width;k++)if(!_.I2R(this.array_[y][k],I.array_[y][k],C))return!1;return!0};
yN.prototype.getSize=function(){return this.size_};
var k2=function(I,C,y){return C>=0&&C<I.size_.height&&y>=0&&y<I.size_.width?I.array_[C][y]:null};
yN.prototype.isSquare=function(){return this.size_.width==this.size_.height};
var ZkM=function(I,C,y,k){if(!(C>=0&&C<I.size_.height&&y>=0&&y<I.size_.width))throw Error("$l`"+C+"`"+y+"`"+I.size_.height+"`"+I.size_.width);I.array_[C][y]=k};
yN.prototype.multiply=function(I){if(I instanceof yN){if(this.size_.width!=I.getSize().height)throw Error("am");return BDY(this,I)}if(typeof I==="number")return EJY(this,I);throw Error("bm");};
var BDY=function(I,C){var y=new yN(I.size_.height,C.getSize().width);qfL(y,function(k,F,z){for(var c=k=0;c<this.size_.width;c++)k+=k2(this,F,c)*k2(C,c,z);ZkM(y,F,z,k)},I);
return y},EJY=function(I,C){return mZM(I,function(y){return y*C})};var hN8=new _.J("inlineSurveyRenderer");var UZL=new _.J("interstitialViewModel");var HkL=new _.J("reelNavigateCommand");var t5K=new _.J("reelNonVideoContentDismissalCommand");var JB8=new _.J("showReelsCommentsOverlayCommand");var OkB=new _.J("videoInteractionPopUpRenderer");var a2K;var M5K;var IqY;var FK=function(){var I=_.q.apply(this,arguments)||this;I.ctaVisualElement=null;I.currentCsn=null;return I};
_.R(FK,_.q);_.u=FK.prototype;_.u.onDataChanged=function(){this.maybeLogShows()};
_.u.computeButtonShape=function(){var I=this;if(this.data)return{buttonText:_.hS(this.data.text),state:"active",onTap:function(){I.onTap()},
iconPosition:"leading",style:"overlay-dark",type:"tonal",size:"M"}};
_.u.maybeCreateCtaVe=function(){var I;if((I=this.data)!=null&&I.badgeInteractionLogging){var C;if(I=(C=this.data.badgeInteractionLogging)==null?void 0:C.trackingParams)this.ctaVisualElement=_.nv(I)}};
_.u.maybeLogClicks=function(){this.currentCsn=_.Si(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.EN(this.currentCsn,this.ctaVisualElement)};
_.u.maybeLogShows=function(){this.currentCsn=_.Si(this.ytRendererBehavior.getScreenLayer());this.maybeCreateCtaVe();this.ctaVisualElement&&this.currentCsn&&_.Z0(this.currentCsn,[this.ctaVisualElement])};
_.u.onTap=function(){var I;if((I=this.data)!=null&&I.onClickCommand){var C;this.ytComponentBehavior.resolveCommand((C=this.data)==null?void 0:C.onClickCommand);this.maybeLogClicks()}};
FK.prototype.onDataChanged=FK.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],FK.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],FK.prototype,"ytComponentBehavior",void 0);_.E([_.d({}),_.h("design:type",Object)],FK.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],FK.prototype,"onDataChanged",null);
FK=_.E([_.m({disableElementRegistration:!0,is:"ytd-shopping-overlay-badge-renderer"})],FK);
_.Z(FK,"ytd-shopping-overlay-badge-renderer",function(){if(IqY!==void 0)return IqY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return IqY=I},{mode:1});_.B9(_.wmy,"reel-sound-metadata-view-model",{props:{data:_.Z_,overlayDensity:_.Z_}});_.B9(_.IdK,"player-disclosure-view-model",{props:{data:_.As}});_.B9(_.hN5,"pivot-button-view-model",{props:{data:_.Z_,className:_.Z_}});_.B9(_.UZw,"reel-action-bar-view-model",{props:{data:_.As,buttonShapeOverrideables:_.As}});_.B9(_.BO(function(I){function C(){var mY,Bs,n5,sH,Zt=(Bs=_.l((mY=t())==null?void 0:mY.command,_.fzw))==null?void 0:(n5=Bs.item)==null?void 0:(sH=n5.notificationTextRenderer)==null?void 0:sH.successResponseText;if(Zt)_.Fe(k.value,"yt-open-popup-action",[_.JS(Zt),k.value]);else if(U())KWB(U(),b.value);else{var Qd;KWB((Qd=t())==null?void 0:Qd.command,b.value);document.dispatchEvent(new CustomEvent("yt-shorts-reset"))}}
var y=I.data;var k=_.Es();I=_.T(_.c4("0px",void 0,"O1N7Ce"));var F=I.next().value,z=I.next().value;I=_.T(_.c4("0px",void 0,"tTDBdb"));var c=I.next().value,r=I.next().value;I=_.T(_.c4(0,void 0,"fh8Zkc"));var w=I.next().value,L=I.next().value;I=_.T(_.c4(0,void 0,"CUjqGd"));var D=I.next().value,p=I.next().value,Q=function(){var mY;if(((mY=_.oY())==null?void 0:mY.getPlayerState())!==-1){k.value.style.display="inherit";var Bs;(Bs=_.oY())==null||Bs.removeEventListener("onStateChange",Q)}X()},X=function(){var mY=
document.querySelector("video");
if(mY){L(mY.getBoundingClientRect().width);p(mY.getBoundingClientRect().height);var Bs;z((mY==null?void 0:(Bs=mY.style)==null?void 0:Bs.left)||"0px");var n5;r((mY==null?void 0:(n5=mY.style)==null?void 0:n5.top)||"0px")}};
_.l0(function(){var mY,Bs,n5;if(((mY=_.oY())==null?void 0:mY.getPlayerState())===-1&&Math.round(((n5=(Bs=_.oY())==null?void 0:Bs.getVideoAspectRatio())!=null?n5:0)*100)!==Math.round(w()/D()*100)){k.value.style.display="none";var sH,Zt;p(w()/((Zt=(sH=_.oY())==null?void 0:sH.getVideoAspectRatio())!=null?Zt:1))}},"VB5m5");
_.X2(function(){var mY;(mY=_.oY())==null||mY.addEventListener("onStateChange",Q);window.addEventListener("resize",X);X();var Bs,n5,sH;if((sH=(Bs=y())==null?void 0:(n5=Bs.regions)==null?void 0:n5[0])==null||!sH.transformationMatrix)throw Error("fm");var Zt;if((Zt=y())==null?0:Zt.trackingParams){var Qd;_.e2().graftServerVe((Qd=y().trackingParams)!=null?Qd:"")}_.$4(function(){var OF;(OF=_.oY())==null||OF.removeEventListener("onStateChange",Q);window.removeEventListener("resize",X)})});
var b=_.Es(),S=_.T(_.c4(!1,void 0,"TPsTce"));I=S.next().value;var A=S.next().value,x=_.T(_.c4(!1,void 0,"Uz6CHf"));S=x.next().value;var B=x.next().value,t=function(){var mY;return _.l((mY=y())==null?void 0:mY.popUp,OkB)},U=function(){var mY;
return(mY=y())==null?void 0:mY.command},yW=function(){return _.l(U(),_.nM)!==void 0};
x=_.uk(function(){yW()&&A(!0);B(!0);return!1});
var a=_.uk(function(){A(!1);B(!1);return!1}),cs=_.uk(function(){yW()&&A(!0);
return!1}),XO=_.uk(function(){yW()&&A(!1);
return!1}),Rm=_.uk(function(){C();
return!1}),$z=_.uk(function(mY){mY.key==="Enter"&&C();
return!1}),hX={},vs={};
return _.P("yt-player-overlay-video-interactions",{el:k},_.P("svg",{"on:mouseover":x,"on:mouseout":a,"on:keydown":$z,"on:focus":cs,"on:blur":XO,el:b,tabindex:0,"aria-label":function(){var mY;return(mY=y())==null?void 0:mY.a11yString},
id:"player-overlay-video-interaction-svg",class:_.sZ("yt-player-overlay-video-interactions__interactions-svg",(hX["yt-player-overlay-video-interactions__interactions-svg-hover"]=I,hX),(vs["yt-player-overlay-video-interactions__interactions-svg-hide-outline"]=S,vs)),role:"button",style:function(){var mY,Bs,n5,sH=(n5=(mY=y())==null?void 0:(Bs=mY.regions)==null?void 0:Bs[0].transformationMatrix)!=null?n5:[];mY=w();Bs=D();n5=[];for(var Zt=0,Qd=-1;Zt<sH.length;Zt++)Zt%3===0&&(Qd++,n5[Qd]=[]),n5[Qd].push(sH[Zt]);
sH=new yN(n5);n5=new yN([[0,1,1,0],[0,0,1,1],[1,1,1,1]]);n5=sH.multiply(n5);sH=new yN([[0,0],[0,0],[0,0],[0,0]]);for(Zt=0;Zt<n5.getSize().width;Zt++){Qd=k2(n5,0,Zt);var OF=k2(n5,1,Zt);if(Qd===null||OF===null)throw Error("em`"+(Zt+1).toString());ZkM(sH,Zt,0,Qd*mY);ZkM(sH,Zt,1,OF*Bs)}mY=k2(sH,0,0);Zt=k2(sH,1,0);Bs=k2(sH,0,1);Qd=k2(sH,1,1);if(mY===null||Zt===null||Bs===null||Qd===null)throw Error("cm");n5=SfY(mY,Zt,Bs,Qd);OF=k2(sH,3,0);sH=k2(sH,3,1);if(OF===null||sH===null)throw Error("dm");sH=SfY(mY,
OF,Bs,sH);Qd=(Number((Qd*-1).toFixed(2))-Number((Bs*-1).toFixed(2)))/(Number(Zt.toFixed(2))-Number(mY.toFixed(2)));OF=Math.atan(Qd)*180/Math.PI;Zt=Qd===Number.POSITIVE_INFINITY?-90:Qd===Number.NEGATIVE_INFINITY?90:Object.is(Qd,-0)?180:Qd===0?0:Qd>0?OF*-1:mY<Zt?OF*-1:Math.abs(OF)+180;return"left:calc("+mY+"px + "+F()+"); top:calc("+(Bs+"px + "+c()+"); width:")+(n5+"px; height:")+(sH+"px; transform:rotate(")+(Zt+"deg);")},
"on:click":Rm}))},"li"),"yt-player-overlay-video-interactions",{props:{data:_.As}});_.B9(_.kKj,"yt-reel-metapanel-view-model",{props:{data:_.As,overlayDensity:_.As}});var uO=function(){var I=_.q.apply(this,arguments)||this;I.showScrubber=!1;I.isWatchWhileMode=!1;I.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");I.anchoredPanelActive=!1;I.enableLivingroomLayout=_.V("reels_enable_livingroom_layout");I.enablePlayerMetadataContainer=_.V("reels_web_enable_metadata_container");I.enableSqueezebackPanels=_.V("web_shorts_enable_squeezeback_panels");I.isSqueezebackActive=!1;I.smallScreenSqueezeback=!1;I.isPlayerStarted=!1;I.overlayDensity=0;I.isOverlay=!1;I.isImmersive=
!1;I.isImmersiveHorizontal=!1;I.isFullscreen=!1;I.onWindowResized=function(){var C;I.set("isImmersive",((C=window.getComputedStyle(I.hostElement))==null?void 0:C.getPropertyValue("--immersive-mode-on"))==="1");I.set("isImmersiveHorizontal",I.isImmersive&&I.enableLivingroomLayout&&!I.isWatchWhileMode)};
return I};
_.R(uO,_.q);_.u=uO.prototype;_.u.updateIsOverlay=function(I){this.isOverlay=I.detail.value};
_.u.computeIsShortsOverlay=function(){this.enableLivingroomLayout&&(this.isWatchWhileMode?(this.isImmersiveHorizontal=!1,this.isOverlay=!0):(!this.isOverlay&&this.isImmersive&&(this.isImmersiveHorizontal=!0),this.isOverlay=!1));if(_.V("web_enable_flexible_overlay")||_.V("web_enable_format_first")||_.V("web_enable_format_first_organic_only"))this.isOverlay=this.overlayDensity===2;return this.isWatchWhileMode&&!this.enableAnchoredPanel&&!this.enableLivingroomLayout||this.isOverlay};
_.u.computeIsShortsImmersive=function(){return!this.isWatchWhileMode&&this.isImmersive&&!this.anchoredPanelActive};
_.u.onIsActiveChanged=function(){this.isActive||this.setEmptyOverlayMetadata()};
_.u.computeButtonOverride=function(){return{style:this.isOverlay||this.isWatchWhileMode&&!this.enableAnchoredPanel?"overlay-dark":"mono",type:"tonal",iconPosition:"icon-with-label",size:"L"}};
_.u.attached=function(){window.addEventListener("resize",this.onWindowResized);this.onWindowResized()};
_.u.detached=function(){window.removeEventListener("resize",this.onWindowResized)};
_.u.ready=function(){this.get("data.likeButton")||this.get("data.viewCommentsButton")||this.get("data.shareButton")||this.get("data.remixButton")||this.get("data.menu")||this.get("data.subscribeButtonRenderer")||this.setFakeLoadingButtons();this.hostElement.style.setProperty("--metadata-justify-content",_.oD("reels_metadata_justified_content")||"flex-start");this.hostElement.style.setProperty("--action-justify-content",_.oD("reels_action_justified_content")||"flex-start")};
_.u.configureRendererStamper=function(){return{"data.pivotButton":{id:"pivot-button",mapping:{pivotButtonViewModel:{component:"pivot-button-view-model",params:{className:"ytd-reel-player-overlay-renderer"}}},renderPriority:0},"data.badge":{id:"badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}},renderPriority:0},"data.disclosure":{id:"disclosure",mapping:{playerDisclosureViewModel:{component:"player-disclosure-view-model"}},
renderPriority:0},"data.infoPanel":{id:"info-panel",mapping:{infoPanelContainerRenderer:{component:"ytd-info-panel-container-renderer",params:{roundedContainer:!1}}},renderPriority:0}}};
_.u.setFakeLoadingButtons=function(){this.set("data.likeButton",{likeButtonRenderer:{likesAllowed:!0,likeStatus:"INDIFFERENT",likeCountText:{simpleText:_.PQ("LIKE_LABEL",void 0,"Like")},dislikeCountText:{simpleText:_.PQ("DISLIKE_LABEL",void 0,"Dislike")}}});this.set("data.viewCommentsButton",{buttonRenderer:{icon:{iconType:"SHORTS_COMMENT"},text:{simpleText:_.PQ("COMMENT_LABEL",void 0,"Comment")}}});this.set("data.shareButton",{buttonRenderer:{icon:{iconType:"SHORTS_SHARE"},text:{simpleText:_.PQ("SHARE_LABEL",
void 0,"Share")}}});_.V("web_enable_shorts_remix_handoff_ep")&&this.set("data.remixButton",{buttonRenderer:{icon:{iconType:"REMIX_FILLED"},text:{simpleText:_.PQ("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()};
_.u.setEmptyOverlayMetadata=function(){_.V("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}))};
_.H1.Object.defineProperties(uO.prototype,{hasInfoPanel:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.infoPanel)}}});
uO.prototype.onIsActiveChanged=uO.prototype.onIsActiveChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],uO.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],uO.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],uO.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],uO.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],uO.prototype,"isActive",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],uO.prototype,"hidden",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],uO.prototype,"useShortsIcon",void 0);_.E([_.d({value:"left"}),_.h("design:type",String)],uO.prototype,"buttonTooltipPosition",void 0);
_.E([_.d({value:_.V("reels_enable_livingroom_layout")?"top":"left"}),_.h("design:type",String)],uO.prototype,"likeButtonTooltipPosition",void 0);_.E([_.d({value:"none"}),_.h("design:type",String)],uO.prototype,"textTransform",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"showScrubber",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"isWatchWhileMode",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.infoPanel"),_.h("design:type",Object),_.h("design:paramtypes",[])],uO.prototype,"hasInfoPanel",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"enableAnchoredPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"anchoredPanelActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"enableLivingroomLayout",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],uO.prototype,"enablePlayerMetadataContainer",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"enableSqueezebackPanels",void 0);_.E([_.d({selector:_.gJt,reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"isSqueezebackActive",void 0);_.E([_.d({selector:GmY,reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"smallScreenSqueezeback",void 0);
_.E([_.d({selector:f2Y}),_.h("design:type",Object)],uO.prototype,"isPlayerStarted",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"overlayDensity",void 0);_.E([_.d(),_.h("design:type",Object)],uO.prototype,"isOverlay",void 0);_.E([_.d({computed:"computeIsShortsOverlay(isOverlay, isWatchWhileMode, overlayDensity)"}),_.h("design:type",Boolean)],uO.prototype,"isShortsOverlay",void 0);_.E([_.d(),_.h("design:type",Object)],uO.prototype,"isImmersive",void 0);
_.E([_.d(),_.h("design:type",Object)],uO.prototype,"isImmersiveHorizontal",void 0);_.E([_.d({computed:"computeIsShortsImmersive(isImmersive, isWatchWhileMode, anchoredPanelActive)"}),_.h("design:type",Boolean)],uO.prototype,"isShortsImmersive",void 0);_.E([_.d({computed:"computeButtonOverride(isOverlay, isWatchWhileMode)"}),_.h("design:type",Object)],uO.prototype,"buttonOverride",void 0);_.E([_.d({selector:_.rl,reflectToAttribute:!0}),_.h("design:type",Object)],uO.prototype,"isFullscreen",void 0);
_.E([_.FI("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uO.prototype,"onIsActiveChanged",null);uO=_.E([_.m({is:"ytd-reel-player-overlay-renderer",disableElementRegistration:!0})],uO);
_.Z(uO,"ytd-reel-player-overlay-renderer",function(){if(M5K!==void 0)return M5K;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-player-overlay-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="metadata-container style-scope ytd-reel-player-overlay-renderer" role="heading" aria-level="1">\n  <div id="overlay" class="style-scope ytd-reel-player-overlay-renderer">\n      <template is="dom-repeat" items="[[data.videoInteractions.interactions]]" as="item" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-player-overlay-video-interactions data="[[item]]" class="style-scope ytd-reel-player-overlay-renderer">\n        </yt-player-overlay-video-interactions>\n      </template>\n    <template is="dom-if" if="[[data.metapanel]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="metapanel" class="style-scope ytd-reel-player-overlay-renderer">\n        <yt-reel-metapanel-view-model data="[[data.metapanel.reelMetapanelViewModel]]" overlay-density="[[overlayDensity]]" class="style-scope ytd-reel-player-overlay-renderer"></yt-reel-metapanel-view-model>\n      </div>\n    </template>\n  </div>\n  <div id="info-panel" class="style-scope ytd-reel-player-overlay-renderer"></div>\n</div>\n\n<div class="action-container style-scope ytd-reel-player-overlay-renderer">\n  <div id="actions" class="style-scope ytd-reel-player-overlay-renderer">\n    <template is="dom-if" if="[[data.buttonBar]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="button-bar" class="style-scope ytd-reel-player-overlay-renderer">\n        <reel-action-bar-view-model button-shape-overrideables="[[buttonOverride]]" data="[[data.buttonBar.reelActionBarViewModel]]" class="style-scope ytd-reel-player-overlay-renderer"></reel-action-bar-view-model>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.likeButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="like-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-like-button-renderer button-tooltip-position="[[likeButtonTooltipPosition]]" data="[[data.likeButton.likeButtonRenderer]]" overrides="[[buttonOverride]]" text-transform="[[textTransform]]" use-shorts-icon="[[useShortsIcon]]" vertical="[[!isImmersiveHorizontal]]" class="style-scope ytd-reel-player-overlay-renderer"></ytd-like-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.viewCommentsButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="comments-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.viewCommentsButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.shareButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="share-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.shareButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <template is="dom-if" if="[[data.remixButton]]" class="style-scope ytd-reel-player-overlay-renderer">\n      <div id="remix-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n        <ytd-button-renderer button-tooltip-position="[[buttonTooltipPosition]]" data="[[data.remixButton.buttonRenderer]]" overrides="[[buttonOverride]]" vertically-aligned="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-button-renderer>\n      </div>\n    </template>\n    <div id="menu-button" class="button-container style-scope ytd-reel-player-overlay-renderer">\n      <ytd-menu-renderer data="[[data.menu.menuRenderer]]" is-overlay="[[isShortsOverlay]]" three-dot-size="L" tonal-override="" use-overlay-dark="" class="style-scope ytd-reel-player-overlay-renderer"></ytd-menu-renderer>\n    </div>\n    <div id="pivot-button" class="button-container style-scope ytd-reel-player-overlay-renderer" tabindex="0"></div>\n  </div>\n</div>\n<iron-media-query id="overlay-query" query="(max-width: 599px)" query-matches="[[isOverlay]]" on-query-matches-changed="updateIsOverlay" class="style-scope ytd-reel-player-overlay-renderer"></iron-media-query>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return M5K=I},{mode:1});var CwB;var zs=function(){var I=_.q.apply(this,arguments)||this;I.videoDuration=0;I.playedTime=0;I.isActive=!1;I.JSC$19566_playerEvents=new Map;return I};
_.R(zs,_.q);_.u=zs.prototype;_.u.created=function(){this.JSC$19566_playerEvents.set("onVideoDataChange",this.onVideoDataChange);this.JSC$19566_playerEvents.set("onVideoProgress",this.onVideoProgress)};
_.u.attached=function(){this.getPlayerAndInitializeListeners()};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19566_playerEvents),this.player=null);document.removeEventListener("yt-page-type-changed",_.sb(this,this.onPageChanged))};
_.u.getPlayerAndInitializeListeners=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return C=_.hU(),C?_.n(y,C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.sb(I,I.onPageChanged)),y.jumpTo(0));I.player=y.yieldResult;I.initializePlayerListeners();_.oI(y)})};
_.u.onPageChanged=function(I){var C=this;return _.e(function(y){if(y.nextAddress==1)return I.detail.newPageType!=="ytd-shorts"?y.return():_.n(y,_.UZ().getPlayerPromise(),2);C.player=y.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.sb(C,C.onPageChanged));_.oI(y)})};
_.u.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19566_playerEvents)};
_.u.onVideoDataChange=function(I){var C=this;return _.e(function(y){if(!C.player||I.type!=="newdata")return y.return();C.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(I.playertype).seekableEnd:C.player.getDuration(I.playertype);C.playedTime=0;_.oI(y)})};
_.u.onVideoProgress=function(I){var C=this,y,k;return _.e(function(F){if(!C.player)return F.return();y=C.player.getPresentingPlayerType();k=C.player.getPlayerState();C.videoDuration=_.V("web_shorts_use_progress_state_for_gapless")?C.player.getProgressState(y).seekableEnd:C.player.getDuration(y);C.playedTime=k===0?C.videoDuration:I;_.oI(F)})};
_.u.getPercentPlayed=function(I,C){return I?_.St(C/I,0,1):0};
_.H1.Object.defineProperties(zs.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 I="";return I=this.videoDuration&&this.playedTime?I+("transform:scaleX("+this.getPercentPlayed(this.videoDuration,this.playedTime)+");"):I+"transform:scaleX(0);"}},
hideProgressBar:{configurable:!0,enumerable:!0,get:function(){return this.videoDuration?!(this.isActive&&this.videoDuration>30):!1}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],zs.prototype,"componentBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],zs.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zs.prototype,"player",void 0);_.E([_.d(),_.h("design:type",Object)],zs.prototype,"videoDuration",void 0);_.E([_.d(),_.h("design:type",Object)],zs.prototype,"playedTime",void 0);_.E([_.d(),_.h("design:type",Object)],zs.prototype,"isActive",void 0);
_.E([_.v("videoDuration","playedTime"),_.h("design:type",Number),_.h("design:paramtypes",[])],zs.prototype,"percentPlayed",null);_.E([_.v("videoDuration","playedTime"),_.h("design:type",Object),_.h("design:paramtypes",[])],zs.prototype,"percentPlayedStyle",null);_.E([_.v("videoDuration","isActive"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],zs.prototype,"hideProgressBar",null);
_.Z(zs,"ytd-progress-bar-line",function(){if(CwB===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);CwB=I}I=CwB;return I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var skH;_.aj(_.LVO,"desktop-shorts-volume-controls",{propNames:["noSlider","orientation"]});var Ts=function(){var I=_.q.apply(this,arguments)||this;I.playerState=null;I.isMuted=!1;var C;if(C=_.V("web_shorts_pip_button"))_.N().resolve(_.JXL),C=!!window.documentPictureInPicture&&_.bK();I.shortsPipButtonEnabled=C;I.JSC$19569_playerEvents=new Map;return I};
_.R(Ts,_.q);_.u=Ts.prototype;_.u.created=function(){this.JSC$19569_playerEvents.set("onStateChange",this.onPlayerStateChange);this.JSC$19569_playerEvents.set("onVolumeChange",this.onPlayerVolumeChange)};
_.u.attached=function(){this.getPlayerAndInitializeListeners();this.muteButtonClientVE=_.Dn(28662);this.playPauseButtonClientVE=_.Dn(36842);this.fullscreenButtonToggleOffClientVE=_.Dn(222256);this.fullscreenButtonToggleOnClientVE=_.Dn(222257);var I=_.Si(),C=_.fq();I&&C&&(_.V("combine_ve_grafts")?(_.oV(_.e2(),this.muteButtonClientVE,C),_.oV(_.e2(),this.playPauseButtonClientVE,C)):_.m5(I,C,[this.muteButtonClientVE,this.playPauseButtonClientVE,this.fullscreenButtonToggleOffClientVE,this.fullscreenButtonToggleOnClientVE]))};
_.u.detached=function(){this.player&&(this.ytPlayerListenerBehavior.unlistenFromPlayerEvents(this.player,this.JSC$19569_playerEvents),this.player=null)};
_.u.getPlayerAndInitializeListeners=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return C=_.hU(),C?_.n(y,C.getPlayerPromise(),3):(document.addEventListener("yt-page-type-changed",_.sb(I,I.onPageChanged)),y.jumpTo(0));I.player=y.yieldResult;I.initializePlayerListeners();_.oI(y)})};
_.u.onPageChanged=function(I){var C=this;return _.e(function(y){if(y.nextAddress==1)return I.detail.newPageType!=="ytd-shorts"?y.return():_.n(y,_.UZ().getPlayerPromise(),2);C.player=y.yieldResult;C.initializePlayerListeners();document.removeEventListener("yt-page-type-changed",_.sb(C,C.onPageChanged));_.oI(y)})};
_.u.initializePlayerListeners=function(){this.ytPlayerListenerBehavior.listenToPlayerEvents(this.player,this.JSC$19569_playerEvents)};
_.u.onPlayerStateChange=function(I){this.playerState=I};
_.u.onPlayerVolumeChange=function(I){this.isMuted=I.muted};
_.u.onPlayPauseButtonClick=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.UZ().getPlayerPromise(),2);C=k.yieldResult;(y=_.Si())&&I.playPauseButtonClientVE&&_.EN(y,I.playPauseButtonClientVE);C.getPlayerState()!==1?C.playVideo():C.pauseVideo();_.oI(k)})};
_.u.computePlayPauseIcon=function(I){return I===2||I===-1||I===5?"PLAY_ARROW_FILLED":"miniplayer:shorts-pause"};
_.u.computeFullscreenLabel=function(I){return I?_.PQ("FULLSCREEN_EXIT_LABEL"):_.PQ("FULLSCREEN_ENTER_LABEL")};
_.u.computeShortsPipLabel=function(I){return I?_.PQ("MINIPLAYER_CLOSE"):_.PQ("OPEN_IN_MINIPLAYER")};
_.u.computePlayPauseLabel=function(I){return I===1||I===3?_.PQ("PLAYER_LABEL_PAUSE"):_.PQ("PLAYER_LABEL_PLAY")};
_.u.onMuteButtonClick=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.UZ().getPlayerPromise(),2);C=k.yieldResult;(y=_.Si())&&I.muteButtonClientVE&&_.EN(y,I.muteButtonClientVE);C.isMuted()?C.unMute(!0):C.mute(!0);_.oI(k)})};
_.u.computeMuteIcon=function(I){return I?"miniplayer:volume-off":"miniplayer:volume-up"};
_.u.computeMuteLabel=function(I){return I?_.PQ("PLAYER_LABEL_UNMUTE"):_.PQ("PLAYER_LABEL_MUTE")};
_.u.onFullscreenButtonClick=function(){var I=_.Si();I&&(this.fullscreenButtonToggleOffClientVE&&this.isFullscreen?_.EN(I,this.fullscreenButtonToggleOffClientVE):this.fullscreenButtonToggleOnClientVE&&!this.isFullscreen&&_.EN(I,this.fullscreenButtonToggleOnClientVE));document.activeElement instanceof HTMLElement&&document.activeElement.blur();_.Gl8()};
_.u.onShortsPipButtonClick=function(){var I=_.N().resolve(_.aV);if(_.V("web_shorts_pip")){var C=_.N().resolve(_.WJ);I.isShortsPipActive()?C.deactivate():C.isMiniplayerActive()||(_.ck().shortsPipActivation=!0,_.Taj(C))}};
_.H1.Object.defineProperties(Ts.prototype,{playPauseButtonData:{configurable:!0,enumerable:!0,get:function(){var I=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(){I.onPlayPauseButtonClick()}}}},
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)}}},
shortsPipButtonData:{configurable:!0,enumerable:!0,get:function(){return{disabled:!1,accessibilityLabel:this.computeShortsPipLabel(this.isShortsPipActive),iconPosition:"icon-only",size:"L",state:"active",style:"overlay-dark",type:"tonal",tooltipText:this.computeShortsPipLabel(this.isShortsPipActive)}}},
fullscreenIcon:{configurable:!0,enumerable:!0,get:function(){return this.isFullscreen?"screen_full_exit":"screen_full"}},
shortsPipIcon:{configurable:!0,enumerable:!0,get:function(){return this.isShortsPipActive?"miniplayer_exit":"picture_in_picture"}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ts.prototype,"componentBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],Ts.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Ts.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ts.prototype,"player",void 0);_.E([_.d(),_.h("design:type",Object)],Ts.prototype,"playerState",void 0);_.E([_.d(),_.h("design:type",Object)],Ts.prototype,"isMuted",void 0);
_.E([_.d({computed:"computePlayPauseIcon(playerState)"}),_.h("design:type",String)],Ts.prototype,"playPauseIcon",void 0);_.E([_.d({computed:"computeMuteIcon(isMuted)"}),_.h("design:type",String)],Ts.prototype,"muteIcon",void 0);_.E([_.d({selector:_.rl}),_.h("design:type",Boolean)],Ts.prototype,"isFullscreen",void 0);_.E([_.d({selector:_.is}),_.h("design:type",Boolean)],Ts.prototype,"isShortsPipActive",void 0);_.E([_.d(),_.h("design:type",Object)],Ts.prototype,"shortsPipButtonEnabled",void 0);
_.E([_.v("playerState"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ts.prototype,"playPauseButtonData",null);_.E([_.v("isFullscreen"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ts.prototype,"fullscreenButtonData",null);_.E([_.v("isShortsPipActive"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ts.prototype,"shortsPipButtonData",null);_.E([_.v("isFullscreen"),_.h("design:type",String),_.h("design:paramtypes",[])],Ts.prototype,"fullscreenIcon",null);
_.E([_.v("isShortsPipActive"),_.h("design:type",String),_.h("design:paramtypes",[])],Ts.prototype,"shortsPipIcon",null);
_.Z(Ts,"ytd-shorts-player-controls",function(){if(skH===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts-player-controls--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-button-shape id="play-pause-button-shape" data="[[playPauseButtonData]]" icon-name="[[playPauseIcon]]" class="style-scope ytd-shorts-player-controls">\n</yt-button-shape>\n<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 is="dom-if" if="[[shortsPipButtonEnabled]]" class="style-scope ytd-shorts-player-controls">\n  <yt-button-shape id="shorts-pip-button-shape" data="[[shortsPipButtonData]]" icon-name="[[shortsPipIcon]]" on-click="onShortsPipButtonClick" class="style-scope ytd-shorts-player-controls">\n  </yt-button-shape>\n</template>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);skH=I}I=skH;return I},{mode:1});var oPY;_.B9(_.zoe,"yt-interstitial-view-model",{props:{data:_.As}});var yV8=_.BO(function(I){var C=I.data;return _.P("reel-watch-break-view-model",{class:"reelWatchBreakViewModelHost"},_.P("h1",{class:"reelWatchBreakViewModelHostTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("h2",{class:"reelWatchBreakViewModelHostBody"},_.P(_.wh,{text:function(){return C().body},
isOverlay:!0})),_.P(_.lY,{data:function(){return C().buttons}},{buttonViewModel:function(y,k){return _.P("div",{class:function(){return k()===0?"reelWatchBreakViewModelHostContinueWatchingButton":"reelWatchBreakViewModelHostGoHomeButton"}},_.P(_.fM,{data:y.data}))}}))},"mi");
yV8.idomCompat=!0;_.B9(yV8,"reel-watch-break-view-model",{props:{data:_.As}});var cM=function(){return _.q.apply(this,arguments)||this};
_.R(cM,_.q);cM.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}}};
_.H1.Object.defineProperties(cM.prototype,{isSurvey:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.l((I=this.data)==null?void 0:I.renderer,hN8)}},
isInterstitialViewModel:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.l((I=this.data)==null?void 0:I.renderer,UZL)}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cM.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],cM.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],cM.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cM.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],cM.prototype,"isSurvey",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.renderer"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],cM.prototype,"isInterstitialViewModel",null);cM=_.E([_.m({is:"ytd-reel-non-video-content-renderer",disableElementRegistration:!0})],cM);
_.Z(cM,"ytd-reel-non-video-content-renderer",function(){if(oPY!==void 0)return oPY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return oPY=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var kjY;_.B9(_.MFj,"desktop-shorts-player-controls",{});var eU=function(){var I=_.q.apply(this,arguments)||this;I.isPlayerPaused=!1;I.isPlayerStarted=!1;I.showPlayerControls=!1;I.showScrubber=!1;I.autoHideJobId=0;I.modern=_.V("web_button_rework");I.overlayType=_.oD("web_shorts_expanded_overlay_type");I.panelData=void 0;I.isWatchWhileMode=!1;I.hasError=!1;I.panelShowDelayMs=1;I.scrubberComponent={};I.useStamper=_.V("web_shorts_enable_title_deflation");I.isFullscreen=!1;I.shouldHideOverlay=!1;I.enableAnchoredPanel=_.V("desktop_shorts_v2_anchored_panel");
I.enablePersistentAnchoredPanel=_.V("desktop_shorts_v2_persistent_anchored_panel");I.hideWatchWhilePanel=_.V("web_shorts_hide_watch_while_panel");I.isPersistentPanelActive=!1;I.anchoredPanelActive=!1;I.isShortsPipActive=!1;I.smallScreenSqueezeback=!1;I.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");I.overlayDensity=0;I.actionMap={"yt-show-reels-comments-overlay-command":"handleShowReelsCommentsOverlayCommand","yt-engagement-panel-visible-changed":"handleEngagementPanelVisibilityChanged"};
I.onWindowResized=function(){_.KK(I,"calculateOverlayDensity",function(){I.calculateOverlayDensity()},100)};
return I};
_.R(eU,_.q);_.u=eU.prototype;_.u.updateShouldHideOverlay=function(){this.shouldHideOverlay=this.isActive&&this.hasError};
_.u.onScrubberDataChange=function(){this.shouldRenderScrubber?this.scrubberComponent={desktopShortsPlayerControls:{}}:this.scrubberComponent={}};
_.u.shouldRenderOverlayControl=function(I){return!this.useStamper&&this.isVideoContent(I)};
_.u.onEngagementPanelsChanged=function(){if(this.watchWhileEngagementPanels)if(this.isActive){if(this.panelData=this.watchWhileEngagementPanels,this.isActive){var I=_.N().resolve(_.wp);this.isWatchWhileMode&&(_.V("web_enable_shorts_new_carousel")?_.b$.addJob(function(){I.showPanel("shorts-comments-panel",void 0,void 0,void 0,null)},0):I.showPanel("shorts-comments-panel",void 0,void 0,void 0,null))}}else this.panelData=void 0};
_.u.handleShowReelsCommentsOverlayCommand=function(I){I=_.l(I,JB8);this.isActive&&(I==null?0:I.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))};
_.u.updateEngagementPanelVisibility=function(I,C){I&&this.ytComponentBehavior.resolveCommand({changeEngagementPanelVisibilityAction:{visibility:C?"ENGAGEMENT_PANEL_VISIBILITY_EXPANDED":"ENGAGEMENT_PANEL_VISIBILITY_HIDDEN",targetId:I}})};
_.u.detached=function(){this.panelData=this.watchWhileEngagementPanels=void 0;this.isWatchWhileMode=!1;(this.enableFlexibleOverlay||this.enableFormatFirst)&&window.removeEventListener("resize",this.onWindowResized)};
_.u.handleEngagementPanelVisibilityChanged=function(){this.isActive&&!this.enablePersistentAnchoredPanel&&(_.N().resolve(_.aV).watchWhileIndices.has(this.index)?this.anchoredPanelActive=!0:this.anchoredPanelActive=!1)};
_.u.handleWatchWhilePanelScrimClick=function(){var I=_.N().resolve(_.wp);this.activeWatchWhilePanel&&(I.hidePanel(this.activeWatchWhilePanel),this.isWatchWhileMode=!1,this.activeWatchWhilePanel=void 0)};
_.u.attached=function(){this.isFirstReel()&&this.handlePlayerClick();if(this.enableFlexibleOverlay||this.enableFormatFirst)window.addEventListener("resize",this.onWindowResized),this.calculateOverlayDensity()};
_.u.configureRendererStamper=function(){return{scrubberComponent:{id:"scrubber",mapping:{desktopShortsPlayerControls:{component:"desktop-shorts-player-controls"}},initialRenderPriority:2},overlayComponent:{id:"experiment-overlay",mapping:{reelPlayerOverlayRenderer:{component:"ytd-reel-player-overlay-renderer",properties:{anchoredPanelActive:"[[anchoredPanelActive]]",disableUpgrade:"[[shouldHideOverlay]]",hidden:"[[shouldHideOverlay]]",isActive:"[[isActive]]",isWatchWhileMode:"[[watchWhileOrPersistentActive]]",
overlayDensity:"[[overlayDensity]]",showScrubber:"[[showScrubber]]"}},adsOverlay:{component:"ytd-ad-slot-renderer",properties:{overlayDensity:"[[overlayDensity]]"}}},renderPriority:_.V("web_enable_shorts_new_carousel")?0:void 0}}};
_.u.handlePlayerClick=function(I){var C=this,y,k;if((k=(y=window).matchMedia)!=null&&k.call(y,"(any-pointer: coarse)").matches||!I)this.showPlayerControls=!0,_.b$.cancelJob(this.autoHideJobId),this.autoHideJobId=_.NU(_.b$,function(){C.showPlayerControls=!1},4E3)};
_.u.isFirstReel=function(){return this.index===0};
_.u.handleMouseenter=function(){_.b$.cancelJob(this.autoHideJobId);this.showPlayerControls=!0};
_.u.handleMouseleave=function(){this.isPlayerPaused||(this.showPlayerControls=!1)};
_.u.handleScrubberEnter=function(){this.showScrubber=!0};
_.u.handleScrubberLeave=function(){this.showScrubber=!1};
_.u.maybeLogNonDefaultAspectRatio=function(){var I;(I=this.data)!=null&&I.thumbnail&&this.isActive&&.5625!==YfP(this.data.thumbnail)&&_.nLX("GENERIC_CLIENT_EXPERIMENT_EVENT_TYPE_SHORTS_NON_DEFAULT_ASPECT_RATIO")};
_.u.calculateOverlayDensity=function(){if(this.enableFlexibleOverlay||this.enableFormatFirst){var I=document.querySelector("#shorts-container");if(I){I=I.offsetWidth-96-this.playerContainer.offsetWidth-72;I=I>=720?1:I>=144?0:2;this.enableFormatFirst&&!this.enableFlexibleOverlay&&I===1&&(I=0);this.isPersistentPanelActive&&(I=0);this.overlayDensity=I;var C;(C=this.onOverlayDensityChanged)==null||C.call(this,this.index,this.overlayDensity)}}};
_.u.onOverlayDensityChange=function(){var I;(I=this.onOverlayDensityChanged)==null||I.call(this,this.index,this.overlayDensity);(I=_.f(this.hostElement).querySelector("ytd-reel-player-overlay-renderer"))&&I.set("overlayDensity",this.overlayDensity);if(I=this.hostElement.querySelector("reels-player-overlay-layout-view-model"))I.overlayDensity=this.overlayDensity};
_.u.isVideoContent=function(I){_.N().resolve(_.aV);return!!_.l(I,_.PD)};
_.u.isNonVideoContent=function(I){_.N().resolve(_.aV);return!!_.l(I,_.Yf)};
_.u.closeInactiveWatchWhilePanel=function(){this.activeWatchWhilePanel&&this.isWatchWhileMode&&this.updateEngagementPanelVisibility(this.activeWatchWhilePanel,!1)};
_.H1.Object.defineProperties(eU.prototype,{enableFormatFirst:{configurable:!0,enumerable:!0,get:function(){var I,C;return _.V("web_enable_format_first")||((I=this.data)==null?void 0:I.adsOverlay)&&_.V("web_enable_format_first_ads_only")||((C=this.data)==null?void 0:C.reelPlayerOverlayRenderer)&&_.V("web_enable_format_first_organic_only")}},
shouldRenderPlayerElements:{configurable:!0,enumerable:!0,get:function(){return this.isActive&&!this.hasError}},
watchWhileOrPersistentActive:{configurable:!0,enumerable:!0,get:function(){return this.isWatchWhileMode}},
shouldRenderScrubber:{configurable:!0,enumerable:!0,get:function(){var I;return!this.isActive||!this.isPlayerStarted||(I=this.data)!=null&&I.adsOverlay?!1:!0}},
overlayComponent:{configurable:!0,enumerable:!0,get:function(){var I;if(this.useStamper&&((I=this.data)==null?0:I.command)&&this.isVideoContent(this.data.command)){var C,y;if(((C=this.data)==null?0:C.adsOverlay)&&Object.keys((y=this.data)==null?void 0:y.adsOverlay).length>0)return{adsOverlay:this.data.adsOverlay};var k,F;if(((k=this.data)==null?0:k.reelPlayerOverlayRenderer)&&Object.keys((F=this.data)==null?void 0:F.reelPlayerOverlayRenderer).length>0)return{reelPlayerOverlayRenderer:this.data.reelPlayerOverlayRenderer}}return{}}}});
eU.prototype.onOverlayDensityChange=eU.prototype.onOverlayDensityChange;eU.prototype.calculateOverlayDensity=eU.prototype.calculateOverlayDensity;eU.prototype.maybeLogNonDefaultAspectRatio=eU.prototype.maybeLogNonDefaultAspectRatio;eU.prototype.onEngagementPanelsChanged=eU.prototype.onEngagementPanelsChanged;eU.prototype.onScrubberDataChange=eU.prototype.onScrubberDataChange;eU.prototype.updateShouldHideOverlay=eU.prototype.updateShouldHideOverlay;
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],eU.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],eU.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],eU.prototype,"index",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],eU.prototype,"isActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],eU.prototype,"isHiddenInDom",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"isPlayerPaused",void 0);_.E([_.d({selector:f2Y}),_.h("design:type",Object)],eU.prototype,"isPlayerStarted",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"showPlayerControls",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"showScrubber",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"autoHideJobId",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"overlayType",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],eU.prototype,"ytdReduxBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],eU.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"watchWhileEngagementPanels",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"panelData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"isWatchWhileMode",void 0);_.E([_.d(),_.h("design:type",String)],eU.prototype,"activeWatchWhilePanel",void 0);
_.E([_.d(),_.h("design:type",Object)],eU.prototype,"hasError",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"panelShowDelayMs",void 0);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"scrubberComponent",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"useStamper",void 0);_.E([_.d({selector:_.rl,reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"isFullscreen",void 0);
_.E([_.d(),_.h("design:type",Object)],eU.prototype,"shouldHideOverlay",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"enableAnchoredPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"enablePersistentAnchoredPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"hideWatchWhilePanel",void 0);
_.E([_.d({selector:_.gJt,reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"isPersistentPanelActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"anchoredPanelActive",void 0);_.E([_.d({selector:_.is,reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"isShortsPipActive",void 0);_.E([_.d({selector:GmY,reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"smallScreenSqueezeback",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],eU.prototype,"enableFormatFirst",null);_.E([_.d(),_.h("design:type",Object)],eU.prototype,"enableFlexibleOverlay",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eU.prototype,"overlayDensity",void 0);_.E([_.d(),_.h("design:type",Function)],eU.prototype,"onOverlayDensityChanged",void 0);
_.E([_.d(),_.v("isActive","hasError"),_.h("design:type",Object),_.h("design:paramtypes",[])],eU.prototype,"shouldRenderPlayerElements",null);_.E([_.d(),_.v("isActive","isWatchWhileMode"),_.h("design:type",Object),_.h("design:paramtypes",[])],eU.prototype,"watchWhileOrPersistentActive",null);_.E([_.FI("isActive","hasError","showingExpandedOverlay"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"updateShouldHideOverlay",null);
_.E([_.d({reflectToAttribute:!0}),_.v("isActive","isPlayerStarted","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],eU.prototype,"shouldRenderScrubber",null);_.E([_.FI("shouldRenderScrubber"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"onScrubberDataChange",null);_.E([_.v("useStamper","data.adsOverlay","data.reelPlayerOverlayRenderer"),_.h("design:type",Object),_.h("design:paramtypes",[])],eU.prototype,"overlayComponent",null);
_.E([_.FI("watchWhileEngagementPanels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"onEngagementPanelsChanged",null);_.E([_.z$("#player-container"),_.h("design:type",HTMLElement)],eU.prototype,"playerContainer",void 0);_.E([_.z$("#cinematic-container"),_.h("design:type",HTMLElement)],eU.prototype,"cinematicContainer",void 0);
_.E([_.FI("isPersistentPanelActive","data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"maybeLogNonDefaultAspectRatio",null);_.E([_.FI("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"calculateOverlayDensity",null);_.E([_.FI("overlayDensity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eU.prototype,"onOverlayDensityChange",null);
eU=_.E([_.m({is:"ytd-reel-video-renderer",disableElementRegistration:!0})],eU);
_.Z(eU,"ytd-reel-video-renderer",function(){if(kjY!==void 0)return kjY;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-reel-video-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="short-video-container style-scope ytd-reel-video-renderer" id="short-video-container" hidden="[[!isVideoContent(data.command)]]">\n  <div id="cinematic-container" class="cinematic-container style-scope ytd-reel-video-renderer"></div>\n  <div class="player-wrapper style-scope ytd-reel-video-renderer">\n    <div id="player-container" class="player-container style-scope ytd-reel-video-renderer" on-click="handlePlayerClick" on-mouseenter="handleMouseenter" on-mouseleave="handleMouseleave">\n      <div class="pip-blur-filter style-scope ytd-reel-video-renderer" hidden="[[!isShortsPipActive]]"></div>\n          <template is="dom-if" if="[[shouldRenderPlayerElements]]" restamp="" class="style-scope ytd-reel-video-renderer">\n            <div class="player-controls style-scope ytd-reel-video-renderer">\n              <ytd-shorts-player-controls disable-upgrade="[[!isActive]]" class="style-scope ytd-reel-video-renderer"></ytd-shorts-player-controls>\n            </div>\n          </template>\n    </div>\n    <div id="scrubber" on-mouseenter="handleScrubberEnter" on-mouseleave="handleScrubberLeave" class="style-scope ytd-reel-video-renderer">\n    </div>\n  </div>\n</div>\n<div id="experiment-overlay" class="overlay style-scope ytd-reel-video-renderer"></div>\n<template is="dom-if" if="[[shouldRenderOverlayControl(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <div id="control-overlay" class="overlay style-scope ytd-reel-video-renderer">\n    <template is="dom-if" if="[[data.reelPlayerOverlayRenderer]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-reel-player-overlay-renderer anchored-panel-active="[[anchoredPanelActive]]" data="[[data.reelPlayerOverlayRenderer]]" disable-upgrade="[[shouldHideOverlay]]" hidden="[[shouldHideOverlay]]" is-active="[[isActive]]" is-player-started="[[isPlayerStarted]]" is-watch-while-mode="[[watchWhileOrPersistentActive]]" show-scrubber="[[showScrubber]]" class="style-scope ytd-reel-video-renderer"></ytd-reel-player-overlay-renderer>\n    </template>\n    <template is="dom-if" if="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer">\n      <ytd-ad-slot-renderer data="[[data.adsOverlay]]" class="style-scope ytd-reel-video-renderer"></ytd-ad-slot-renderer>\n    </template>\n  </div>\n</template>\n<template is="dom-if" if="[[isNonVideoContent(data.command)]]" class="style-scope ytd-reel-video-renderer">\n  <ytd-reel-non-video-content-renderer data="[[data.reelNonVideoContentRenderer]]" class="style-scope ytd-reel-video-renderer">\n  </ytd-reel-non-video-content-renderer>\n</template>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return kjY=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var rN=function(){var I=_.q.apply(this,arguments)||this;I.isPreviousPageShorts=!1;I.index=0;I.delayedActiveIndex=0;I.playablePreviousIndex=null;I.isPlayerPaused=!1;I.isPlayerStarted=!1;I.intersectionObserverThreshold=.6;I.fitToVisibleBounds=!1;I.pageSubtype="shorts";I.panelShowDelayMs=_.s8("enable_shorts_panel_show_delay_ms");I.enablePreviousContinuation=_.V("shorts_in_playlists_web");I.shortsPipEnabled=_.V("web_shorts_pip");I.isDark=document.documentElement.hasAttribute("dark");I.shortsViewTransitions=
_.V("web_shorts_view_transitions");I.isFullscreen=!1;I.isShortsPipActive=!1;I.buttonOverride={iconPosition:"icon-only",size:"XL"};I.anchoredPanelActive=!1;I.isActive=!1;I.smallScreenPersistentPanel=!1;I.isPersistentPanelActive=!1;I.smallScreenSqueezeBack=!1;I.enableScrollIntoViewCenter=_.V("web_scroll_into_view_center");I.formatFirst=_.V("web_enable_format_first")||_.V("web_enable_format_first_ads_only")||_.V("web_enable_format_first_organic_only");I.enableFlexibleOverlay=_.V("web_enable_flexible_overlay");
I.isShortsInitialized=!1;I.hidePreviousButtonImmediately=!1;I.showPreviousButtonImmediately=!1;I.endOfNextContinuation=!1;I.currentPlayerIndex=0;I.nextReelVe=_.Dn(56921);I.prevReelVe=_.Dn(56922);I.loopToggleOffVe=_.Dn(198013);I.loopToggleOnVe=_.Dn(198014);I.ambientModeToggleVe=_.Dn(227860);I.reelPlayerPausedStateRendererVe=_.Dn(141313);I.storedPlaybackSpeed=null;I.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"};I.onOverlayDensityChanged=function(C,y){var k;(k=I.getActiveReelVideo(C))==null||k.setAttribute("overlay-density",String(y))};
return I};
_.R(rN,_.q);_.u=rN.prototype;
_.u.deflateInactivePreviousSlides=function(){var I=_.s8("web_shorts_deflate_inactive_slides_aggressive_distance");if(I>0&&this.shortsProcessedSequence&&this.activeIndex){I=this.activeIndex-I;for(var C=0;C<=I;C++){var y=void 0;((y=this.shortsProcessedSequence[C].reelPlayerOverlayRenderer)==null?0:y.likeButton)&&this.set("shortsProcessedSequence."+C+".reelPlayerOverlayRenderer",{});y=void 0;((y=this.shortsProcessedSequence[C].adsOverlay)==null?0:y.adSlotMetadata)&&this.set("shortsProcessedSequence."+C+
".adsOverlay",{})}}};
_.u.calculateIsSmallWidth=function(){return window.innerWidth<=599};
_.u.onResize=function(){var I=_.Hg(),C=I.dispatch,y=this.calculateIsSmallWidth();C.call(I,_.yE({type:"SET_IS_DESKTOP_SMALL_WIDTH",payload:{isDesktopSmallWidth:y}}));this.updateBackNavContainerWidth();this.calculateSqueezebackPanelSize()};
_.u.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:_.V("web_enable_shorts_new_carousel")?0:void 0},anchoredEngagementPanels:{id:"anchored-panel",mapping:{engagementPanelSectionListRenderer:{component:"ytd-engagement-panel-section-list-renderer",
params:{isWatchWhilePanel:!0,shortsPanel:!0},properties:{showDelayMs:"[[panelShowDelayMs]]"}}},renderPriority:0}}};
_.u.updateBackNavContainerWidth=function(){if(this.player&&this.backNavButton){var I=(this.hostElement.clientWidth-this.shortsInnerContainer.clientWidth)/2,C=I,y=0;I<250&&(C=I+this.shortsInnerContainer.clientWidth,y=24);_.CK(this.hostElement,{"--ytd-shorts-header-width":C+"px","--ytd-shorts-top-spacing":y+"px"})}};
_.u.isFirstShorts=function(I){return I?this.index===-I.length:this.index===0};
_.u.isActiveReel=function(I,C,y){y&&(C=this.calculatePrevIndex(C,y));return I===C};
_.u.onFullscreenChange=function(){if(_.V("web_fullscreen_shorts")){var I;(I=this.getActiveReelVideo(this.activeIndex))==null||I.scrollIntoView({behavior:"instant",block:"nearest",inline:this.enableScrollIntoViewCenter?"center":"start"});this.isFullscreen&&this.isShortsPipActive&&_.N().resolve(_.WJ).close(!0)}};
_.u.engagementPanelsChanged=function(){var I;this.watchWhileEngagementPanels=(I=this.data)==null?void 0:I.engagementPanels};
_.u.unregisterPanels=function(){var I=_.N().resolve(_.wp);if(this.watchWhileEngagementPanels)for(var C=_.T(this.watchWhileEngagementPanels),y=C.next();!y.done;y=C.next()){var k=void 0,F=void 0;y=(k=y.value.engagementPanelSectionListRenderer)==null?void 0:(F=k.identifier)==null?void 0:F.tag;I&&y&&I.panelMap.delete(y)}};
_.u.isVideoContent=function(I){return this.isVideoContentCommand(I==null?void 0:I.command)};
_.u.getActiveReelVideo=function(I){return _.f(this.hostElement).querySelector('.reel-video-in-sequence-new[id="'+I+'"]')};
_.u.calculatePrevIndex=function(I,C){return C?I-((C==null?void 0:C.length)||0):-1};
_.u.onKeydown=function(I){var C=_.qc(I)||[];if(!_.bhS(C))if(I.code==="ArrowUp")I.preventDefault(),this.handlePrevButtonClick();else if(I.code==="ArrowDown")I.preventDefault(),this.handleNextButtonClick();else if(I.code==="KeyM")this.toggleMuteUnmuteVideo();else if(I.code==="KeyK"||I.code==="Space")this.togglePlayPauseVideo();else if((I.code==="KeyA"||I.code==="ArrowLeft")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")){var y;(y=this.player)==null||y.seekBy(-5)}else if((I.code==="KeyD"||I.code===
"ArrowRight")&&_.V("web_shorts_keyboard_enable_seek_shortcuts")&&this.player&&this.player.getDuration()>this.player.getCurrentTime()+6){var k;(k=this.player)==null||k.seekBy(5)}};
_.u.onServiceRequestCompleted=function(I,C){I=C.data;I.continuationEndpoint&&I.entries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{entries:I.entries,continuationEndpoint:I.continuationEndpoint}}):I.prevContinuationEndpoint&&I.prevEntries?this.processAppendReelWatchSequenceContinuationEntriesAction({appendReelWatchSequenceContinuationEntriesAction:{prevEntries:I.prevEntries,prevContinuationEndpoint:I.prevContinuationEndpoint}}):this.shortsProcessedSequence&&
this.index>0&&(this.endOfNextContinuation=!0)};
_.u.handleEngagementPanelVisibilityChanged=function(I,C){var y=_.N().resolve(_.wp);if(I&&y){var k,F=((k=I.identifier)==null?void 0:k.tag)||I.panelIdentifier||I.targetId;if(C==="ENGAGEMENT_PANEL_VISIBILITY_EXPANDED")if(this.anchoredPanelActive&&this.activePanel!==F){y.hidePanel(this.activePanel);var z;this.activePanel=((z=I.identifier)==null?void 0:z.tag)||I.panelIdentifier}else this.isPersistentPanelActive=!0,_.Hg().dispatch(WWy(!0)),this.anchoredPanelActive=!0,this.activePanel=F;else C==="ENGAGEMENT_PANEL_VISIBILITY_HIDDEN"&&
this.activePanel===F&&(this.isPersistentPanelActive=this.anchoredPanelActive=!1,_.Hg().dispatch(WWy(!1)))}};
_.u.handlePanelScrimClick=function(){var I=_.N().resolve(_.wp);this.activePanel&&(I.hidePanel(this.activePanel),_.Hg().dispatch(WWy(!1)))};
_.u.getShortsLoopSetting=function(){var I,C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return _.V("kevlar_shorts_auto_advance")?_.n(z,_.pu.getInstance(),2):z.return(!0);case 2:return(I=z.yieldResult)?_.n(z,I.get("sfvles"),3):z.return(!0);case 3:return y=(C=z.yieldResult)!=null?C:!1,_.n(z,I.get("sfvle"),4);case 4:return F=(k=z.yieldResult)!=null?k:!0,y?z.return(F):z.return(!0)}})};
_.u.handleSignalActionToggleLoopShortsOff=function(){var I=this,C,y,k;return _.e(function(F){switch(F.nextAddress){case 1:if(!I.player)return F.return();I.player.setLoopVideo(!1);C=_.e2();_.kU(C,I.loopToggleOffVe);return _.n(F,_.pu.getInstance(),2);case 2:return(y=F.yieldResult)?_.n(F,y.set("sfvle",!1),3):F.return();case 3:return _.n(F,y.set("sfvles",!0),4);case 4:k=_.pA(),_.Qw(0,203,!1),_.Qw(0,204,!0),k.save(),_.oI(F)}})};
_.u.handleSignalActionToggleLoopShortsOn=function(){var I=this,C,y,k;return _.e(function(F){switch(F.nextAddress){case 1:if(!I.player)return F.return();I.player.setLoopVideo(!0);C=_.e2();_.kU(C,I.loopToggleOnVe);return _.n(F,_.pu.getInstance(),2);case 2:return(y=F.yieldResult)?_.n(F,y.set("sfvle",!0),3):F.return();case 3:return _.n(F,y.set("sfvles",!0),4);case 4:k=_.pA(),_.Qw(0,203,!0),_.Qw(0,204,!0),k.save(),_.oI(F)}})};
_.u.handleSignalActionToggleCinematicShortsOn=function(){bkP(!0);var I;(I=this.JSC$19593_cinematicController)==null||_.X6Y(I,!0);_.kU(_.e2(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!1}})};
_.u.handleSignalActionToggleCinematicShortsOff=function(){bkP(!1);var I;(I=this.JSC$19593_cinematicController)==null||_.X6Y(I,!1);_.kU(_.e2(),this.ambientModeToggleVe,{toggleButtonData:{isToggledOn:!0}})};
_.u.toggleMuteUnmuteVideo=function(){this.player&&(this.player.isMuted()?this.player.unMute():this.player.mute())};
_.u.togglePlayPauseVideo=function(){this.player&&(this.player.getPlayerState()===1?this.player.pauseVideo():this.player.getPlayerState()===2&&this.player.playVideo())};
_.u.unhideCurrentOverlay=function(){if(this.overlayContainer){var I=this.overlayContainer.querySelector("#experiment-overlay");I&&_.b$.addLowPriorityJob(function(){I.style.display="unset"},100)}};
_.u.getCurrentShort=function(){if(this.currentEndpoint){var I=this.currentEndpoint;if(this.isNonVideoContentCommand(I)){var C=_.l(I,_.Yf);return{reelNonVideoContentRenderer:_.l(C==null?void 0:C.renderer,_.k_c),command:I}}if(this.data){var y;C=(y=_.l(this.currentEndpoint,_.PD))==null?void 0:y.thumbnail;var k;y=(k=this.data.overlay)==null?void 0:k.reelPlayerOverlayRenderer;_.N().resolve(_.aV);var F,z;k=_.l((F=this.data.overlay)==null?void 0:(z=F.shortsAdsRenderer)==null?void 0:z.overlay,_.q00);I=Object.assign({},
this.currentEndpoint,{reelWatchEndpoint:Object.assign({},_.l(this.currentEndpoint,_.PD),{sequenceParams:void 0,sequenceProvider:void 0,racyCheckOk:void 0,contentCheckOk:void 0})});return{reelPlayerOverlayRenderer:y,thumbnail:C,command:I,adsOverlay:k}}}};
_.u.created=function(){var I=this;this.scrollToVideoThrottle=new _.OG(function(C){var y;(y=I.getActiveReelVideo(C))==null||y.scrollIntoView({behavior:"smooth",block:"nearest",inline:I.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.transitionToVideoThrottle=new _.OG(function(C){var y;(y=I.getActiveReelVideo(C))==null||y.scrollIntoView({behavior:"auto",block:"nearest",inline:I.enableScrollIntoViewCenter?"center":"start"})},500,this);
this.maybeCreateIntersectionObserver()};
_.u.onScroll=function(){this.scrollToVideoThrottle.fire(this.index)};
_.u.attached=function(){var I=this;gJS(this);this.pageScrollElement=_.f(this.hostElement).querySelector("#shorts-container");document.addEventListener("yt-shorts-reset",_.sb(this,this.processResetAction));_.V("web_reels_min_height_adjustment")&&this.hostElement.style.setProperty("--ytd-reels-min-height","460px");_.V("web_fullscreen_shorts")&&window.ResizeObserver&&!this.resizeObserver&&(this.resizeObserver=this.onResizeFinished(this.shortsContainer,function(){var C=I.getActiveReelVideo(I.activeIndex);
I.maybeCreateIntersectionObserver();C==null||C.scrollIntoView({behavior:"instant",block:"nearest",inline:I.enableScrollIntoViewCenter?"center":"start"});I.shortsContainer.style.overflowY="scroll"}))};
_.u.calculateSqueezebackPanelSize=function(){var I=this,C=window.innerWidth-456-(window.innerHeight-106)*.5625;_.b$.addLowPriorityJob(function(){C<360?_.Hg().dispatch(dZS(!0)):(I.hostElement.style.setProperty("--anchored-panel-width",Math.min(C,480)+"px"),_.Hg().dispatch(dZS(!1)))})};
_.u.detached=function(){var I=_.N().resolve(_.aV);I.rootElement=void 0;var C;(C=I.unsubscribeFromStore)==null||C.call(I);I.unsubscribeFromStore=void 0;document.removeEventListener("yt-shorts-reset",_.sb(this,this.processResetAction));this.intersectionObserver=this.resizeObserver=void 0};
_.u.onResizeFinished=function(I,C){var y=this,k=new ResizeObserver(function(){y.shortsContainer.style.overflowY="hidden";_.b$.addLowPriorityJob(function(){C()},100)});
k.observe(I);return k};
_.u.resetDocumentScrollTop=function(){var I,C;if((I=document)==null?0:(C=I.scrollingElement)==null?0:C.scrollTop)document.scrollingElement.scrollTop=0};
_.u.loadPage_=function(I){var C=this;this.resetDocumentScrollTop();if(this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint))this.data=this.playerData=void 0;else if(this.initCsi(),this.updateTitle(this.playerData),I){var y;if((y=_.l(this.currentEndpoint,_.PD))==null?0:y.sequenceParams)this.index=0,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index);this.data=I;this.isPlayerStarted?this.handleOnPlaybackCommand():this.afterPlayerStarted=function(){C.isPlayerStarted&&
(C.handleOnPlaybackCommand(),C.afterPlayerStarted=function(){})};
this.registerPanel(I)}};
_.u.afterPlayerStarted=function(){};
_.u.handleOnPlaybackCommand=function(){if(_.V("web_shorts_comment_stickers")&&this.isPlayerStarted){var I,C=(I=_.l(this.currentEndpoint,_.PD))==null?void 0:I.onPlaybackCommand;C&&this.ytComponentBehavior.resolveCommand(C)}};
_.u.maybeCreateIntersectionObserver=function(){var I=this,C=this.calculateIntersectionObserverThreshold();if(!this.intersectionObserver||this.intersectionObserverThreshold!==C){this.intersectionObserverThreshold=C;var y={rootMargin:"0px",threshold:C},k;(k=this.intersectionObserver)==null||k.disconnect();this.intersectionObserver=new IntersectionObserver(function(F){F=_.T(F);for(var z=F.next();!z.done;z=F.next())if(z=z.value,z.intersectionRatio>C){z=Number(z.target.id);if(isNaN(z))break;if(z===I.index)break;
_.Jjz();I.loadVideo(z);_.A7("r_vtc")}},y);
this.observeShorts()}};
_.u.observeShorts=function(){var I=[].concat(_.Py(_.f(this.hostElement).querySelectorAll(".reel-video-in-sequence-new")));I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=void 0;(y=this.intersectionObserver)==null||y.observe(C)}};
_.u.initCsi=function(){_.pm("reel_watch","pbs pbp pbu r_vtc r_tr cpt".split(" "));var I={reelInfo:{transitionType:this.isPreviousPageShorts?"LATENCY_REEL_TRANSITION_TYPE_REEL_TO_REEL":"LATENCY_REEL_TRANSITION_TYPE_START",videoType:this.isAd()?"REEL_VIDEO_TYPE_AD":"REEL_VIDEO_TYPE_VIDEO",reelToReelBaseline:"REEL_TO_REEL_BASELINE_VIEW_TRANSITION_START"}},C,y;if((C=this.playerData)==null?0:(y=C.cacheMetadata)==null?0:y.isCacheHit)I.isCacheHit=!0;var k;if(C=(k=_.l(this.currentEndpoint,_.PD))==null?void 0:
k.prefetchTaskId)I.prefetchInfo={taskId:C};_.Gg(I)};
_.u.isAd=function(){var I,C;return!!((I=_.l(this.currentEndpoint,_.PD))==null?0:(C=I.adClientParams)==null?0:C.isAd)};
_.u.getPlayer=function(){this.$||this._enableProperties();return this.playerElement};
_.u.getPlayerContainer=function(){var I;return(I=_.f(this.hostElement).querySelector("ytd-reel-video-renderer"))==null?void 0:I.playerContainer};
_.u.onPlayerStateChange=function(I){var C=this;this.isPlayerPaused=I===2;I!==1&&this.isShortPlayable()||this.currentPlayerIndex===this.index?I===1&&this.index===0&&(this.isPlayerStarted||_.Hg().dispatch(o2(!0))):(this.movePlayerToVideo(this.index),this.isPlayerStarted||_.Hg().dispatch(o2(!0)));this.player&&!this.player.getLoopVideo()&&_.b$.addLowPriorityJob(function(){C.getShortsLoopSetting().then(function(y){var k;(k=C.player)==null||k.setLoopVideo(y)})});
this.isPlayerPaused&&_.V("web_shorts_paused_state_logging")&&_.Z0(_.Si(),[this.reelPlayerPausedStateRendererVe])};
_.u.isInBackground=function(){var I=window.document.visibilityState;return!(!I||I==="visible")};
_.u.isShortPlayable=function(){if(_.V("kevlar_playable_short_killswitch"))return!0;var I;return(I=this.playerData)!=null&&I.playabilityStatus?this.playerData.playabilityStatus.status==="OK":!1};
_.u.setNormalPlaybackSpeed=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.getPlayer().getPlayerPromise(),2);C=k.yieldResult;y=C.getPlaybackRate();y!==1&&(I.storedPlaybackSpeed=y,C.setPlaybackRate(1));_.oI(k)})};
_.u.restorePlaybackSpeed=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1)return I.storedPlaybackSpeed===null?y.jumpTo(0):_.n(y,I.getPlayer().getPlayerPromise(),3);C=y.yieldResult;C.setPlaybackRate(I.storedPlaybackSpeed);I.storedPlaybackSpeed=null;_.oI(y)})};
_.u.playerDataChanged=function(){var I=this,C,y,k,F,z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1){C=I.getPlayer();_.V("web_shorts_dynamic_intersection_observer_threshold")&&((y=I.intersectionObserver)==null||y.disconnect());if(I.playerData){if(((k=I.playerData.videoDetails)==null?void 0:k.videoId)!==((F=C.getPlayer())==null?void 0:F.getVideoData().video_id)){z={};if(c=_.l(I.currentEndpoint,_.PD))z.watch_endpoint=c,c.endTimeSeconds&&(z.end=c.endTimeSeconds);C.loadVideoWithPlayerResponse(I.playerData,
z)}}else return D.return();return I.player?D.jumpTo(2):_.n(D,C.getPlayerPromise(),3)}D.nextAddress!=2&&(I.player=D.yieldResult,I.JSC$19593_playerStateChangeListener=I.onPlayerStateChange.bind(I),I.player.addEventListener("onStateChange",I.JSC$19593_playerStateChangeListener),_.V("kevlar_client_enable_shorts_player_bootstrap")&&_.Ja(),I.scrollToVideoThrottle.fire(I.index),I.movePlayerToVideo(I.index),_.b$.addLowPriorityJob(function(){I.getShortsLoopSetting().then(function(p){var Q;(Q=I.player)==null||
Q.setLoopVideo(p)})}),_.Ks0.resolve(I.player),I.player.syncVolume(),I.getPlayer().focusOnPlayer());
_.V("web_shorts_caption_language_entity_killswitch")||_.b$.addLowPriorityJob(function(){var p=_.N().resolve(_.aV),Q,X=(Q=I.player)==null?void 0:Q.getOption("captions","track");Q=_.TL("/youtube/app/player_caption_language_entity_key","stringEntity",2);if(X){var b;((b=_.cj(_.cgO,Q)())==null?void 0:b.value)!==X.displayName&&p.store.dispatch(_.wJ("stringEntity",Q,{key:Q,value:X.displayName||""}))}else p.store.dispatch(_.wJ("stringEntity",Q,{key:Q,value:"CAPTIONS_UNAVAILABLE"}))});
_.b$.addLowPriorityJob(function(){I.observeShorts()},100);
r=I.player.getPlayerState(I.player.getPresentingPlayerType());r!==1||I.isPlayerStarted||_.Hg().dispatch(o2(!0));I.updateBackNavContainerWidth();w=_.l(I.currentEndpoint,_.PD);((L=w)==null?0:L.startTimeSeconds)&&I.player.seekTo(w.startTimeSeconds);if(I.JSC$19593_cinematicController||I.cinematicsInitializeJobId)return D.return();I.cinematicsInitializeJobId=_.b$.addLowPriorityJob(function(){I.initCinematicController();I.cinematicsInitializeJobId=void 0});
_.oI(D)})};
_.u.onShortUndoDismiss=function(){var I=this,C=vJL().pop();C!==void 0&&(_.hn(this,function(){I.showCardWithIndex(C)}),this.playablePreviousIndex=this.getPlayablePreviousIndex())};
_.u.onShortsDismiss=function(I){if(I=I.detail.reelDismissalActionRenderer)(I=_.l(I.onDismissalCompletionRenderer,_.saP))&&this.ytComponentBehavior.resolveCommand({openPopupAction:{popupType:"TOAST",popup:{notificationActionRenderer:I}}}),this.scrollAndDismissCard()};
_.u.processReelNonVideoContentDismissalCommand=function(I){var C=this;this.activeDimissalTimeout&&(clearTimeout(this.activeDimissalTimeout),this.activeDimissalTimeout=void 0);I=_.l(I,t5K);this.activeDimissalTimeout=setTimeout(function(){C.scrollAndDismissCard()},Number(I==null?void 0:I.delayMs))};
_.u.scrollAndDismissCard=function(){var I=this,C=this.index;vJL().push(C);_.hn(this,function(){var y=I.getPlayableNextIndex();y!==null&&(y=I.getActiveReelVideo(y),I.hideCardWithIndex(C),y==null||y.scrollIntoView({behavior:"smooth",block:"nearest",inline:I.enableScrollIntoViewCenter?"center":"start"}))})};
_.u.hideCardWithIndex=function(I){if(I=this.getActiveReelVideo(I))I.hidden=!0};
_.u.showCardWithIndex=function(I){if(I=this.getActiveReelVideo(I))I.hidden=!1};
_.u.onActiveChanged=function(){this.activeChanged(this.ytPageBehavior.active)};
_.u.activeChanged=function(I){_.Hg().dispatch(_.yE({type:"SET_IS_SHORTS_ACTIVE",payload:{isShortsActive:I}}));if(I)document.addEventListener("keydown",_.sb(this,this.onKeydown)),document.body.setAttribute("no-y-overflow",""),this.setNormalPlaybackSpeed(),this.getPlayer().focusOnPlayer();else{if(this.isAd()){var C;(C=this.player)==null||C.sendAbandonmentPing()}var y;(y=this.player)==null||y.cueVideoByPlayerVars({videoId:"00000000"});document.removeEventListener("keydown",_.sb(this,this.onKeydown));
document.body.removeAttribute("no-y-overflow");this.restorePlaybackSpeed();this.processResetAction()}};
_.u.graftClientVisualElements=function(){if(this.data){var I=_.e2();_.KBb(I,_.er({response:this.reelWatchSequenceResponse}));_.oV(I,this.nextReelVe);_.oV(I,this.prevReelVe);_.V("kevlar_shorts_auto_advance")&&(_.oV(I,this.loopToggleOffVe),_.oV(I,this.loopToggleOnVe));_.oV(I,this.ambientModeToggleVe);_.Z0(_.Si(),[this.nextReelVe,this.prevReelVe]);_.V("web_shorts_paused_state_logging")&&_.oV(I,this.reelPlayerPausedStateRendererVe)}};
_.u.graftNvcRenderer=function(){var I,C,y,k,F=this.index<0?(I=this.shortsProcessedPrevSequence)==null?void 0:(C=I[this.shortsProcessedPrevSequence.length+this.index])==null?void 0:C.command:(y=this.shortsProcessedSequence)==null?void 0:(k=y[this.index])==null?void 0:k.command;if(F&&this.isNonVideoContentCommand(F)){I=_.l(F,_.Yf);var z,c;(I=(z=_.l(I==null?void 0:I.renderer,_.k_c))==null?void 0:(c=z.loggingDirectives)==null?void 0:c.trackingParams)&&_.e2().graftServerVe(I)}};
_.u.setActiveIndex=function(){_.N().resolve(_.aV).setActiveIndex(this.index)};
_.u.onShortsPipActiveChanged=function(){this.isShortsMiniplayerActive()&&this.updateMiniplayerData()};
_.u.lazyUpdateMiniplayerData=function(){var I=this;this.isShortsMiniplayerActive()&&(this.cancelPreviousMiniplayerDataUpdate(),this.updateMiniplayerDataJobId=_.b$.addLowPriorityJob(function(){I.updateMiniplayerData();I.updateMiniplayerDataJobId=void 0}))};
_.u.cancelPreviousMiniplayerDataUpdate=function(){this.updateMiniplayerDataJobId&&_.b$.cancelJob(this.updateMiniplayerDataJobId)};
_.u.updateMiniplayerData=function(){var I,C,y,k=_.N().resolve(_.WJ),F={shortsData:this.getCurrentShort(),previousButtonDisabled:!((I=this.prevButtonData)==null||!I.isDisabled),nextButtonDisabled:!((C=this.nextButtonData)==null||!C.isDisabled),playabilityStatus:(y=this.playerData)==null?void 0:y.playabilityStatus};_.PX(k,F)};
_.u.resetPlayerLocation=function(){var I=this.getPlayer();this.initialPlayerContainer&&(I.appendTo(this.initialPlayerContainer,void 0,!0),this.overlayContainer&&(this.initialPlayerContainer.appendChild(this.overlayContainer),this.overlayContainer=void 0))};
_.u.movePlayerToVideo=function(I,C){var y=this;C=C===void 0?!0:C;var k=this.getActiveReelVideo(I),F=this.getPlayer();if(k){this.overlayContainer||(this.overlayContainer=_.f(this.hostElement).querySelector("ytd-reel-video-renderer")||void 0,this.isShortsMiniplayerActive()||F.appendTo(this.overlayContainer.playerContainer,void 0,!0));k.appendChild(this.overlayContainer);var z;(z=this.player)==null||z.setSize(NaN,NaN);this.isActive||_.NU(_.b$,function(){y.isActive=!0});
F.style.visibility="visible";_.V("reels_web_disable_rtr_tick")||_.V("reels_web_use_pbs_first_shorts")&&I===0||_.Sr("r_tr");this.currentPlayerIndex=I;k.appendChild(this.errorScreenContainer);this.maybeMoveCinematicsToVideo()}else C?_.b$.addLowPriorityJob(function(){y.movePlayerToVideo(y.index,!1)}):Math.random()<=_.s8("web_shorts_error_logging_threshold")&&_.fi(new _.ph("Trying to movePlayerToVideo with undefined container.",{firstAttempt:C,
index:I}))};
_.u.enableFormatFirst=function(I){return _.V("web_enable_format_first")||I.adsOverlay&&_.V("web_enable_format_first_ads_only")||I.reelPlayerOverlayRenderer&&_.V("web_enable_format_first_organic_only")};
_.u.getAspectRatio=function(I){if(I!=null&&I.thumbnail&&this.enableFormatFirst(I))return"--ytd-shorts-player-ratio: "+YfP(I.thumbnail)};
_.u.getBackgroundImage=function(I){if(I!=null&&I.thumbnail)return(I=_.hE(I.thumbnail.thumbnails))?'background-image:url("'+I+'");':"background-color:black;"};
_.u.onPersistentPanelActiveChanged=function(){var I=this.getCurrentShort();if(I&&this.enableFormatFirst(I)&&(I==null?0:I.thumbnail)&&YfP(I.thumbnail)!==.5625){var C;(C=this.player)==null||C.setSize(NaN,NaN)}};
_.u.isShortsMiniplayerActive=function(){return this.shortsPipEnabled&&this.isShortsPipActive};
_.u.maybeMoveCinematicsToVideo=function(){var I=this;this.cinematicTransitionJobId&&_.b$.cancelJob(this.cinematicTransitionJobId);this.cinematicTransitionJobId=_.b$.addLowPriorityJob(function(){I.moveCinematicsToVideo()},500)};
_.u.moveCinematicsToVideo=function(){var I;(I=this.JSC$19593_cinematicController)!=null&&(I=I.currentCinematicEffect)!=null&&(I=I.storyboardManager,I.paused=!1,_.uFK(I),I.update());I=_.f(this.hostElement).querySelector("ytd-reel-video-renderer");(I==null?0:I.cinematicContainer)&&I.cinematicContainer!==this.shortsCinematicContainer.parentElement&&I.cinematicContainer.appendChild(this.shortsCinematicContainer)};
_.u.onPrevButtonDataChange=function(){this.updatePrevButtonData()};
_.u.updatePrevButtonData=function(){var I=this.get("overlay.reelPlayerOverlayRenderer.prevItemButton.buttonRenderer",this.data);if(I){var C;this.prevButtonData=I=Object.assign({},I,{accessibility:{label:_.PQ("PREVIOUS_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_UP"},isDisabled:I.isDisabled||this.index===-(((C=this.shortsProcessedPrevSequence)==null?void 0:C.length)||0),tooltip:this.isUpArrowHidden?"":_.PQ("PREVIOUS_VIDEO_LABEL")})}else this.prevButtonData&&(this.prevButtonData=I=Object.assign({},
this.prevButtonData,{isDisabled:!1}))};
_.u.onNextButtonDataChange=function(){this.updateNextButtonData()};
_.u.updateNextButtonData=function(){var I=this.get("overlay.reelPlayerOverlayRenderer.nextItemButton.buttonRenderer",this.data);if(I){var C;this.nextButtonData=I=Object.assign({},I,{accessibility:{label:_.PQ("NEXT_VIDEO_LABEL")},icon:{iconType:"YOUTUBE_SHORTS_ARROW_DOWN"},isDisabled:I.isDisabled||this.index===((C=this.shortsProcessedSequence)==null?void 0:C.length),tooltip:_.PQ("NEXT_VIDEO_LABEL")||""})}};
_.u.getPlayablePreviousIndex=function(){for(var I,C=this.index-1;C>=-(((I=this.prevShortsSequence)==null?void 0:I.length)||0);C--)if(!vJL().includes(C))return C;return null};
_.u.getIndexInSequence=function(I,C){return I.findIndex(function(y){var k;return((k=_.l(y.command,_.PD))==null?void 0:k.videoId)===C})};
_.u.handlePrevButtonClick=function(I){var C=this,y,k;return _.e(function(F){y=C.getPlayablePreviousIndex();if(y===null)return F.return();C.gestureType=((k=I)==null?void 0:k.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";y===0&&(C.hidePreviousButtonImmediately=!0);if(C.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){C.transitionToVideoThrottle.fire(y)}),F.return();
C.scrollToVideoThrottle.fire(y);_.oI(F)})};
_.u.getPlayableNextIndex=function(){for(var I,C=this.index+1;C<(((I=this.shortsProcessedSequence)==null?void 0:I.length)||0);C++)if(!vJL().includes(C))return C;return null};
_.u.handleNextButtonClick=function(I,C){var y=this,k,F;return _.e(function(z){k=y.getPlayableNextIndex();if(k===null)return z.return();k===1&&(y.showPreviousButtonImmediately=!0);y.gestureType=((F=I)==null?void 0:F.type)==="click"?"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK":"INTERACTION_LOGGING_GESTURE_TYPE_KEY_PRESS";C&&(y.gestureType=C);if(y.shortsViewTransitions&&document.startViewTransition)return document.startViewTransition(function(){y.transitionToVideoThrottle.fire(k)}),z.return();
y.scrollToVideoThrottle.fire(k);_.oI(z)})};
_.u.handleReelNavigateCommand=function(I,C,y){(I=_.l(I,HkL))&&C&&I.destination==="REEL_NAVIGATION_DESTINATION_NEXT"&&this.handleNextButtonClick(y)};
_.u.loadVideo=function(I,C){C=C===void 0?!1:C;if(I!==this.currentPlayerIndex){_.Hg().dispatch(o2(!1));if(this.isAd()&&!C){var y;(y=this.player)==null||y.notifyShortsAdSwipeEvent()}this.cinematicTransitionJobId&&_.b$.cancelJob(this.cinematicTransitionJobId);if((C=this.JSC$19593_cinematicController)!=null){var k;(k=C.currentCinematicEffect)==null||k.pause()}if((k=this.JSC$19593_cinematicController)!=null){var F;(F=k.currentCinematicEffect)==null||F.clear()}k=I>this.index;this.isShortsMiniplayerActive()&&
(this.cancelPreviousMiniplayerDataUpdate(),this.setMiniplayerPreview(k));this.getPlayer().style.visibility="hidden";this.overlayContainer&&(this.overlayContainer.querySelector("#experiment-overlay").style.display="none");var z,c,r,w;F=I<0?(z=this.shortsProcessedPrevSequence)==null?void 0:(c=z[this.shortsProcessedPrevSequence.length+I])==null?void 0:c.command:(r=this.shortsProcessedSequence)==null?void 0:(w=r[I])==null?void 0:w.command;this.index=I;this.gestureType||(this.gestureType=k?"INTERACTION_LOGGING_GESTURE_TYPE_SWIPE":
"INTERACTION_LOGGING_GESTURE_TYPE_BACK_SWIPE");F&&this.isVideoContentCommand(F)&&(this.ytComponentBehavior.resolveCommand(F,{form:{createScreenConfig:{clickedVisualElement:k?this.nextReelVe:this.prevReelVe,implicitGestureType:this.gestureType}}}),this.gestureType=void 0);if(F&&this.isNonVideoContentCommand(F)){this.currentEndpoint=F;this.data=void 0;z=_.e2();c=_.l(F,_.Yf);var L,D;(c=(L=_.l(c==null?void 0:c.renderer,_.k_c))==null?void 0:(D=L.screenLoggingData)==null?void 0:D.screenVeType)&&_.s7(z,
c);this.currentPlayerIndex=-1;this.player&&this.isShortPlayable()&&this.player.pauseVideo()}L=_.s8("reels_enable_early_continuation_offset")<=0?1:_.s8("reels_enable_early_continuation_offset");var p,Q;if(((p=this.reelWatchSequenceResponse)==null?0:p.continuationEndpoint)&&((Q=this.reelWatchSequenceResponse)==null?0:Q.entries)&&I===this.reelWatchSequenceResponse.entries.length-L){var X,b;p={contentPlaybackContext:_.Lp({},(b=_.l((X=this.currentEndpoint)==null?void 0:X.commandMetadata,_.It))==null?void 0:
b.url,window.location.href)};this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.continuationEndpoint,{form:p})}var S,A,x;((S=this.reelWatchSequenceResponse)==null?0:S.prevContinuationEndpoint)&&I===-(((A=this.reelWatchSequenceResponse)==null?void 0:(x=A.prevEntries)==null?void 0:x.length)||0)&&this.ytComponentBehavior.resolveCommand(this.reelWatchSequenceResponse.prevContinuationEndpoint)}};
_.u.setMiniplayerPreview=function(I){I=(I===void 0?0:I)?this.getPlayableNextIndex():this.getPlayablePreviousIndex();var C,y,k=_.N().resolve(_.WJ),F={shortsData:void 0,shortsPreviewThumbnail:I?(C=this.shortsProcessedSequence)==null?void 0:(y=C[I])==null?void 0:y.thumbnail:void 0};_.PX(k,F)};
_.u.updateTitle=function(I){var C,y;I=(I==null?0:I.adPlacements)?"":(y=I==null?void 0:(C=I.videoDetails)==null?void 0:C.title)!=null?y:"";_.k3(this.hostElement,"yt-update-title",I)};
_.u.registerPanel=function(I){var C=_.N().resolve(_.wp);if(C){I=_.T(I.engagementPanels||[]);for(var y=I.next();!y.done;y=I.next()){y=y.value;var k=y.engagementPanelSectionListRenderer,F=void 0,z=void 0,c=void 0,r=void 0,w=((F=k)==null?void 0:F.targetId)||((z=k)==null?void 0:z.panelIdentifier)||((c=k)==null?void 0:(r=c.identifier)==null?void 0:r.tag);F=k=void 0;(F=(k=C).registerPanelContent)==null||F.call(k,w,y)}}};
_.u.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;_.Hg().dispatch(o2(!1));this.isShortsInitialized=!1;this.resetPlayerLocation();_.Hg().dispatch(WWy(!1));var I=_.N().resolve(_.aV);I.dismissedIndices=[];I.watchWhileIndices.clear();this.isShortsMiniplayerActive()&&_.N().resolve(_.WJ).close(!0)};
_.u.processAppendReelWatchSequenceContinuationEntriesAction=function(I){var C=this,y;(y=this.intersectionObserver)==null||y.disconnect();I=I.appendReelWatchSequenceContinuationEntriesAction;if(I==null?0:I.entries){var k;this.reelWatchSequenceResponse=Object.assign({},this.reelWatchSequenceResponse,{entries:[].concat(_.Py(((k=this.reelWatchSequenceResponse)==null?void 0:k.entries)||[]),_.Py(I.entries)),continuationEndpoint:I.continuationEndpoint})}else if(I==null?0:I.prevEntries){var F;this.reelWatchSequenceResponse=
Object.assign({},this.reelWatchSequenceResponse,{prevEntries:[].concat(_.Py(((F=this.reelWatchSequenceResponse)==null?void 0:F.prevEntries)||[]),_.Py(I.prevEntries)),prevContinuationEndpoint:I.prevContinuationEndpoint});_.b$.addLowPriorityJob(function(){C.movePlayerToVideo(C.index);var z;(z=C.getActiveReelVideo(C.index))==null||z.scrollIntoView({block:"nearest",inline:C.enableScrollIntoViewCenter?"center":"start"})})}else return;
_.b$.addLowPriorityJob(function(){C.observeShorts()},100)};
_.u.processWatchSequence=function(I){var C=this;return I.map(function(y){y=y.command;if(C.isVideoContentCommand(y)){var k=_.l(y,_.PD);return{reelPlayerOverlayRenderer:_.l(k==null?void 0:k.overlay,_.Fqb),thumbnail:k.thumbnail,command:y}}return C.isNonVideoContentCommand(y)?(k=_.l(y,_.Yf),{reelNonVideoContentRenderer:_.l(k==null?void 0:k.renderer,_.k_c),command:y}):{command:y}})};
_.u.calculateIntersectionObserverThreshold=function(){if(!_.V("web_shorts_dynamic_intersection_observer_threshold"))return.6;var I=_.f(this.hostElement).querySelector("ytd-reel-video-renderer"),C=1;(I==null?0:I.offsetHeight)&&(I==null?0:I.offsetWidth)&&(C=Math.min(I.offsetHeight,this.shortsContainer.offsetHeight)/I.offsetHeight*(Math.min(I.offsetWidth,this.shortsContainer.offsetWidth)/I.offsetWidth));return Math.round(C*.6*10)/10};
_.u.isVideoContentCommand=function(I){_.N().resolve(_.aV);return!!_.l(I,_.PD)};
_.u.isNonVideoContentCommand=function(I){_.N().resolve(_.aV);return!!_.l(I,_.Yf)};
_.u.initCinematicController=function(){var I=this;if(this.player&&this.shortsCinematicContainer){this.JSC$19593_cinematicController=new _.sY(this.shortsCinematicContainer,this.player);var C,y=_.l((C=this.data)==null?void 0:C.background,_.Pd);_.$ZY(this.JSC$19593_cinematicController,y);_.X6Y(this.JSC$19593_cinematicController,RNM(y));_.l2Y(this.JSC$19593_cinematicController);_.b$.addLowPriorityJob(function(){I.moveCinematicsToVideo()})}};
_.u.handleMiniplayerNavigateShorts=function(I){I==="REEL_NAVIGATION_DESTINATION_NEXT"?this.handleNextButtonClick():I==="REEL_NAVIGATION_DESTINATION_PREV"&&this.handlePrevButtonClick()};
_.u.shouldDisplayReelVideoOverlay=function(I,C){return _.V("web_enable_shorts_new_carousel")?Math.abs(I-C)<2:!0};
_.H1.Object.defineProperties(rN.prototype,{prevShortsSequence:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.reelWatchSequenceResponse)!=null&&I.prevEntries)return this.processWatchSequence([].concat(_.Py(this.reelWatchSequenceResponse.prevEntries)).reverse())}},
shortsProcessedPrevSequence:{configurable:!0,enumerable:!0,get:function(){if(this.prevShortsSequence){var I=this.getCurrentShort();if(this.index>=0&&this.shortsProcessedPrevSequence||!I)return this.shortsProcessedPrevSequence;if(this.shortsProcessedPrevSequence){if(this.shortsProcessedPrevSequence.length<this.prevShortsSequence.length){var C=this.prevShortsSequence.length-this.shortsProcessedPrevSequence.length;return[].concat(_.Py(this.prevShortsSequence.slice(0,C)),[I],_.Py(this.prevShortsSequence.slice(C+
1)))}C=this.index+this.shortsProcessedPrevSequence.length;I.thumbnail=this.shortsProcessedPrevSequence[C].thumbnail;return[].concat(_.Py(this.shortsProcessedPrevSequence.slice(0,C)),[I],_.Py(this.shortsProcessedPrevSequence.slice(C+1)))}return this.prevShortsSequence}}},
shortsSequence:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.reelWatchSequenceResponse)!=null&&I.entries)return this.processWatchSequence(this.reelWatchSequenceResponse.entries)}},
shortsProcessedSequence:{configurable:!0,enumerable:!0,get:function(){if(this.data||this.shortsSequence){var I=this.getCurrentShort();if(!I||this.index<0)return this.shortsProcessedSequence;if(!this.shortsSequence)return[I];if(I==null||!I.reelNonVideoContentRenderer){var C=this.getIndexInSequence(this.shortsSequence,_.l(this.currentEndpoint,_.PD).videoId);if(this.index===0&&C!==-1)return this.currentPlayerIndex=this.index=C,this.scrollToVideoThrottle.fire(this.index),this.movePlayerToVideo(this.index),
[].concat(_.Py(this.shortsSequence.slice(0,this.index)),[I],_.Py(this.shortsSequence.slice(this.index+1)))}if(this.shortsProcessedSequence){I.thumbnail=this.shortsProcessedSequence[this.index].thumbnail;var y,k,F,z;C=((k=_.l((y=this.shortsProcessedSequence[0])==null?void 0:y.command,_.PD))==null?void 0:k.videoId)===((z=_.l((F=this.shortsSequence[0])==null?void 0:F.command,_.PD))==null?void 0:z.videoId)?this.index+1:this.index;this.deflateInactivePreviousSlides();return[].concat(_.Py(this.shortsProcessedSequence.slice(0,
this.index)),[I],_.Py(this.shortsSequence.slice(C)))}return[I].concat(_.Py(this.shortsSequence))}}},
isUpArrowHidden:{configurable:!0,enumerable:!0,get:function(){this.playablePreviousIndex=this.getPlayablePreviousIndex();var I=this.isFirstShorts(this.prevShortsSequence)||this.playablePreviousIndex===null;I&&(this.hidePreviousButtonImmediately=!1);if(this.showPreviousButtonImmediately){if(I)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 I,C;return this.index===((I=this.reelWatchSequenceResponse)==null?void 0:(C=I.entries)==null?void 0:C.length)}var y;return!((y=this.reelWatchSequenceResponse)==null?0:y.entries)&&this.index===0}},
activeIndex:{configurable:!0,enumerable:!0,get:function(){var I;(I=this.delayedActiveIndexUpdateDebouncer)==null||I.fire(this.index);return this.index}},
shouldRenderOfflineContent:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return this.isShortPlayable()||((C=_.l((I=this.data)==null?void 0:I.watchStatus,_.nrw))==null?void 0:(y=C.style)==null?void 0:y.value)!=="BACKGROUND_PROMO_STYLE_TYPE_FULL_HEIGHT"?!1:!0}},
anchoredEngagementPanels:{configurable:!0,enumerable:!0,get:function(){var I=this,C=this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint),y;if((this.data||C)&&(((y=this.data)==null?0:y.engagementPanels)||this.isAd()||C)){C=!1;this.activePanel="shorts-comments-panel";var k;y=_.T(((k=this.data)==null?void 0:k.engagementPanels)||[]);for(k=y.next();!k.done;k=y.next()){k=k.value.engagementPanelSectionListRenderer;var F=void 0,z=void 0,c=void 0,r=void 0;if((((F=k)==null?void 0:(z=F.identifier)==
null?void 0:z.tag)||((c=k)==null?void 0:c.targetId)||((r=k)==null?void 0:r.panelIdentifier))===this.activePanel){C=!0;break}}if(this.isPersistentPanelActive){var w=_.N().resolve(_.wp);_.NU(_.b$,function(){w.showPanel(I.activePanel,void 0,void 0,void 0,null)},100)}y=this.get("overlay.reelPlayerOverlayRenderer.viewCommentsButton.buttonRenderer",this.data);
k=this.get("overlay.reelPlayerOverlayRenderer.buttonBar.reelActionBarViewModel.buttonViewModels.2.buttonViewModel",this.data);if(y===void 0&&k===void 0||(y==null?0:y.isDisabled)||(k==null?void 0:k.state)==="BUTTON_VIEW_MODEL_STATE_DISABLED"||this.currentEndpoint&&this.isNonVideoContentCommand(this.currentEndpoint)||this.isAd()||!C){var L,D,p=(L=this.data)==null?void 0:(D=L.engagementPanels)==null?void 0:D.findIndex(function(S){var A,x;return((A=S.engagementPanelSectionListRenderer)==null?void 0:(x=
A.identifier)==null?void 0:x.tag)==="shorts-comments-panel"});
if(p!==-1&&p!==void 0){var Q,X;(Q=this.data)==null||(X=Q.engagementPanels)==null||X.splice(p,1)}var b;return[{engagementPanelSectionListRenderer:{header:{engagementPanelTitleHeaderRenderer:{title:{runs:[{text:_.PQ("COMMENTS",void 0,"Comments")}]},visibilityButton:{buttonRenderer:{style:"STYLE_DEFAULT",size:"SIZE_DEFAULT",icon:{iconType:"CLOSE"},accessibilityData:{accessibilityData:{label:_.PQ("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:_.PQ("COMMENTS_OFF",void 0,"Comments are turned off. ")},{text:" "},{text:_.PQ("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(_.Py(Object.values(((b=this.data)==null?void 0:b.engagementPanels)||{})))}return(p=this.data)==null?void 0:p.engagementPanels}}},
activeReel:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.shortsProcessedSequence)==null?void 0:I[this.activeIndex]}},
errorScreen:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y,k;if((C=this.playerData)==null?0:(y=C.playabilityStatus)==null?0:(k=y.errorScreen)==null?0:k.playerInterstitialRenderer)return _.b$.addLowPriorityJob(function(){I.movePlayerToVideo(I.index)}),this.playerData.playabilityStatus.errorScreen;
var F,z;return((F=this.data)==null?void 0:F.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&((z=this.data)==null?0:z.watchStatus)&&_.l(this.data.watchStatus,_.LXS)?(_.b$.addLowPriorityJob(function(){I.movePlayerToVideo(I.index)}),this.data.watchStatus):null}},
hasError:{configurable:!0,enumerable:!0,get:function(){return!!this.errorScreen}}});
_.H1.Object.defineProperties(rN,{template:{configurable:!0,enumerable:!0,get:function(){if(a2K===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-shorts--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-shorts">\n  <div id="back-nav-button" class="style-scope ytd-shorts"></div>\n</div>\n<div id="offline-container" hidden="[[!shouldRenderOfflineContent]]" class="style-scope ytd-shorts"></div>\n<div id="shorts-container" hidden="[[shouldRenderOfflineContent]]" class="style-scope ytd-shorts">\n  <div id="cinematic-shorts-scrim" class="style-scope ytd-shorts"></div>\n  <div id="shorts-inner-container" class="style-scope ytd-shorts">\n    <template is="dom-if" if="[[enablePreviousContinuation]]" class="style-scope ytd-shorts">\n      <dom-repeat items="[[shortsProcessedPrevSequence]]" class="style-scope ytd-shorts">\n        <template class="style-scope ytd-shorts">\n          <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[calculatePrevIndex(index, shortsProcessedPrevSequence)]]" style$="[[getAspectRatio(item)]]">\n            <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n            </div>\n          </div>\n        </template>\n      </dom-repeat>\n    </template>\n    <dom-repeat items="[[shortsProcessedSequence]]" class="style-scope ytd-shorts">\n      <template class="style-scope ytd-shorts">\n        <div class="reel-video-in-sequence-new style-scope ytd-shorts" id$="[[index]]" style$="[[getAspectRatio(item)]]">\n          <div class="reel-video-in-sequence-thumbnail style-scope ytd-shorts" style$="[[getBackgroundImage(item)]]">\n          </div>\n        </div>\n      </template>\n    </dom-repeat>\n    <div id="initial-player-container" class="style-scope ytd-shorts">\n      <div id="shorts-cinematic-container" class="style-scope ytd-shorts"></div>\n      <ytd-player id="player" aria-hidden="[[hasError]]" context="WEB_PLAYER_CONTEXT_CONFIG_ID_KEVLAR_SHORTS" disable-touch-gestures="" class="style-scope ytd-shorts">\n      </ytd-player>\n      <yt-playability-error-supported-renderers id="error-screen" data="[[errorScreen]]" hidden$="[[!errorScreen]]" no-background="" class="style-scope ytd-shorts">\n      </yt-playability-error-supported-renderers>\n    </div>\n    <ytd-reel-video-renderer id="reel-video-renderer" data="[[getCurrentShort(data)]]" has-error="[[hasError]]" index="[[index]]" is-active="[[isActive]]" is-persistent-panel-active="[[isPersistentPanelActive]]" is-player-paused="[[isPlayerPaused]]" watch-while-engagement-panels="[[watchWhileEngagementPanels]]" on-overlay-density-changed="[[onOverlayDensityChanged]]" class="style-scope ytd-shorts">\n    </ytd-reel-video-renderer>\n  </div>\n</div>\n<div id="shorts-panel-container" class="style-scope ytd-shorts">\n  <div id="anchored-panel-scrim" on-click="handlePanelScrimClick" class="style-scope ytd-shorts"></div>\n  <div id="anchored-panel" class="anchored-panel style-scope ytd-shorts"></div>\n</div>\n<div class="navigation-container style-scope ytd-shorts">\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-up">\n    <ytd-button-renderer button-tooltip-position="left" data="[[prevButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handlePrevButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n  <div class="navigation-button style-scope ytd-shorts" id="navigation-button-down">\n    <ytd-button-renderer button-tooltip-position="left" data="[[nextButtonData]]" fit-to-visible-bounds="[[fitToVisibleBounds]]" overrides="[[buttonOverride]]" on-click="handleNextButtonClick" class="style-scope ytd-shorts">\n    </ytd-button-renderer>\n  </div>\n</div>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);a2K=I}I=a2K;return I}}});
rN.prototype.onNextButtonDataChange=rN.prototype.onNextButtonDataChange;rN.prototype.onPrevButtonDataChange=rN.prototype.onPrevButtonDataChange;rN.prototype.onPersistentPanelActiveChanged=rN.prototype.onPersistentPanelActiveChanged;rN.prototype.lazyUpdateMiniplayerData=rN.prototype.lazyUpdateMiniplayerData;rN.prototype.onShortsPipActiveChanged=rN.prototype.onShortsPipActiveChanged;rN.prototype.setActiveIndex=rN.prototype.setActiveIndex;rN.prototype.graftNvcRenderer=rN.prototype.graftNvcRenderer;
rN.prototype.graftClientVisualElements=rN.prototype.graftClientVisualElements;rN.prototype.onActiveChanged=rN.prototype.onActiveChanged;rN.prototype.onShortsDismiss=rN.prototype.onShortsDismiss;rN.prototype.onShortUndoDismiss=rN.prototype.onShortUndoDismiss;rN.prototype.playerDataChanged=rN.prototype.playerDataChanged;rN.prototype.afterPlayerStarted=rN.prototype.afterPlayerStarted;rN.prototype.unhideCurrentOverlay=rN.prototype.unhideCurrentOverlay;rN.prototype.onServiceRequestCompleted=rN.prototype.onServiceRequestCompleted;
rN.prototype.engagementPanelsChanged=rN.prototype.engagementPanelsChanged;rN.prototype.onFullscreenChange=rN.prototype.onFullscreenChange;rN.prototype.onResize=rN.prototype.onResize;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],rN.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Q2.YtPageBehavior),_.h("design:type",Object)],rN.prototype,"ytPageBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],rN.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.Ri),_.h("design:type",Object)],rN.prototype,"ironResizableBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],rN.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],rN.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],rN.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"playerData",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"reelWatchSequenceResponse",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"cachedReelWatchSequenceResponse",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"currentEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"nextButtonData",void 0);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"prevButtonData",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"isPreviousPageShorts",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"index",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"delayedActiveIndex",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"playablePreviousIndex",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"player",void 0);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"isPlayerPaused",void 0);_.E([_.d({selector:f2Y}),_.h("design:type",Object)],rN.prototype,"isPlayerStarted",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"intersectionObserver",void 0);_.E([_.d(),_.h("design:type",Number)],rN.prototype,"cinematicsInitializeJobId",void 0);_.E([_.d(),_.h("design:type",Number)],rN.prototype,"cinematicTransitionJobId",void 0);
_.E([_.d(),_.h("design:type",Number)],rN.prototype,"updateMiniplayerDataJobId",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"fitToVisibleBounds",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"pageSubtype",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"panelShowDelayMs",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],rN.prototype,"enablePreviousContinuation",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"shortsPipEnabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"isDark",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"shortsViewTransitions",void 0);_.E([_.d({selector:_.rl,reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"isFullscreen",void 0);
_.E([_.d({selector:_.is,reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"isShortsPipActive",void 0);_.E([_.z$("#shorts-inner-container"),_.h("design:type",HTMLElement)],rN.prototype,"shortsInnerContainer",void 0);_.E([_.z$("#back-nav-button ytd-button-renderer"),_.h("design:type",_.d3)],rN.prototype,"backNavButton",void 0);_.E([_.z$("#shorts-container"),_.h("design:type",HTMLElement)],rN.prototype,"shortsContainer",void 0);
_.E([_.Zc("error-screen"),_.h("design:type",HTMLElement)],rN.prototype,"errorScreenContainer",void 0);_.E([_.Zc("player"),_.h("design:type",Object)],rN.prototype,"playerElement",void 0);_.E([_.Zc("shorts-cinematic-container"),_.h("design:type",HTMLElement)],rN.prototype,"shortsCinematicContainer",void 0);_.E([_.Zc("initial-player-container"),_.h("design:type",HTMLElement)],rN.prototype,"initialPlayerContainer",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"buttonOverride",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"anchoredPanelActive",void 0);_.E([_.d(),_.h("design:type",String)],rN.prototype,"activePanel",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"isActive",void 0);_.E([_.d({selector:GmY,reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"smallScreenPersistentPanel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"isPersistentPanelActive",void 0);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"smallScreenSqueezeBack",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"enableScrollIntoViewCenter",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"formatFirst",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rN.prototype,"enableFlexibleOverlay",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"panelContainer",void 0);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"overlayContainer",void 0);_.E([_.d(),_.h("design:type",Object)],rN.prototype,"isShortsInitialized",void 0);_.E([_.v("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"prevShortsSequence",null);_.E([_.v("data","prevShortsSequence"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"shortsProcessedPrevSequence",null);
_.E([_.v("reelWatchSequenceResponse"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"shortsSequence",null);_.E([_.v("data","shortsSequence"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"shortsProcessedSequence",null);
_.E([_.d({reflectToAttribute:!0}),_.v("index","playablePreviousIndex","prevShortsSequence","hidePreviousButtonImmediately","showPreviousButtonImmediately"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rN.prototype,"isUpArrowHidden",null);_.E([_.d({reflectToAttribute:!0}),_.v("reelWatchSequenceResponse","index","endOfNextContinuation"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rN.prototype,"isDownArrowHidden",null);
_.E([_.d(),_.v("index"),_.h("design:type",Number),_.h("design:paramtypes",[])],rN.prototype,"activeIndex",null);_.E([_.v("isShortPlayable","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rN.prototype,"shouldRenderOfflineContent",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onResize",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"anchoredEngagementPanels",null);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"watchWhileEngagementPanels",void 0);_.E([_.FI("isFullscreen"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onFullscreenChange",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"engagementPanelsChanged",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],rN.prototype,"onServiceRequestCompleted",null);_.E([_.v("data","shortsSequence","index"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"activeReel",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"unhideCurrentOverlay",null);
_.E([_.FI("isPlayerStarted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"afterPlayerStarted",null);_.E([_.v("playerData","reelWatchSequenceResponse","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rN.prototype,"errorScreen",null);_.E([_.v("errorScreen"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],rN.prototype,"hasError",null);
_.E([_.FI("playerData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],rN.prototype,"playerDataChanged",null);_.E([_.km("yt-dismissible-item-undo-feedback"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onShortUndoDismiss",null);_.E([_.km("yt-disable-lockup-interaction"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],rN.prototype,"onShortsDismiss",null);
_.E([_.rW("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onActiveChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"graftClientVisualElements",null);_.E([_.FI("currentPlayerIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"graftNvcRenderer",null);
_.E([_.FI("index"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"setActiveIndex",null);_.E([_.FI("isShortsPipActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onShortsPipActiveChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"lazyUpdateMiniplayerData",null);
_.E([_.d(),_.h("design:type",Object)],rN.prototype,"onOverlayDensityChanged",void 0);_.E([_.FI("isPersistentPanelActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onPersistentPanelActiveChanged",null);_.E([_.FI("index","data","isUpArrowHidden"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onPrevButtonDataChange",null);
_.E([_.FI("index","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],rN.prototype,"onNextButtonDataChange",null);rN=_.E([_.m({is:"ytd-shorts"})],rN);_.pX.registerService(_.bYH,rN);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("JzFVk");
var Y6K=function(I){return _.P("ytd-button-banner-view-model",{class:"ytwYtdButtonBannerViewModelHost"},bRH(I.data.ctaButton,{buttonViewModel:{}}),_.P(_.wh,{text:I.data.subtext,className:"ytwYtdButtonBannerViewModelSubtext"}))};var G1L;var fXK;var fY=function(){return _.q.apply(this,arguments)||this};
_.R(fY,_.q);fY.prototype.configureRendererStamper=function(){return{"data.menu":{id:"menu",mapping:{menuRenderer:"ytd-menu-renderer"}}}};
fY.prototype.computeBlueBottomLink=function(I){return I};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fY.prototype,"data",void 0);_.E([_.d({computed:"computeIcon_(data.bottomIcon)"}),_.h("design:type",String)],fY.prototype,"bottomIcon",void 0);
_.E([_.d({computed:"computeBlueBottomLink(data.blueBottomLink)",reflectToAttribute:!0}),_.h("design:type",Boolean)],fY.prototype,"enableBlueBottomLink",void 0);fY=_.E([_.m({is:"ytd-web-answer-renderer",disableElementRegistration:!0})],fY);
_.Z(fY,"ytd-web-answer-renderer",function(){if(fXK!==void 0)return fXK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fXK=I},{mode:_.Ij("kevlar_poly_si_batch_j035")?1:2});var S6B;var Sw=function(){var I=_.q.apply(this,arguments)||this;I.hasChipBar=!1;return I};
_.R(Sw,_.q);Sw.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}}};
Sw.prototype.computeHasChipBar=function(I){return!(I==null||!I.chipBar)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Sw.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sw.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sw.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasChipBar(data)"}),_.h("design:type",Object)],Sw.prototype,"hasChipBar",void 0);Sw=_.E([_.m({is:"ytd-search-header-renderer",disableElementRegistration:!0})],Sw);
_.Z(Sw,"ytd-search-header-renderer",function(){if(S6B!==void 0)return S6B;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return S6B=I},{mode:1});var KHL;var KY=function(){return _.q.apply(this,arguments)||this};
_.R(KY,_.q);KY.prototype.configureRendererStamper=function(){return{"data.pages":{id:"pages",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KY.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],KY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KY.prototype,"data",void 0);KY=_.E([_.m({disableElementRegistration:!0,is:"ytd-page-continuation"})],KY);
_.Z(KY,"ytd-page-continuation",function(){if(KHL!==void 0)return KHL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return KHL=I},{mode:1});var AHL;var gQH;var vQL;var AN=function(){return _.q.apply(this,arguments)||this};
_.R(AN,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AN.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AN.prototype,"data",void 0);AN=_.E([_.m({disableElementRegistration:!0,is:"ytd-watch-card-one-vs-one-event"})],AN);
_.Z(AN,"ytd-watch-card-one-vs-one-event",function(){if(vQL!==void 0)return vQL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return vQL=I},{mode:1});var gq=function(){return _.q.apply(this,arguments)||this};
_.R(gq,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gq.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gq.prototype,"data",void 0);gq=_.E([_.m({is:"ytd-watch-card-hero-one-vs-one-event-renderer",disableElementRegistration:!0})],gq);
_.Z(gq,"ytd-watch-card-hero-one-vs-one-event-renderer",function(){if(gQH!==void 0)return gQH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return gQH=I},{mode:1});var WHL;var vu=function(){return _.q.apply(this,arguments)||this};
_.R(vu,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vu.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vu.prototype,"data",void 0);vu=_.E([_.m({is:"ytd-banner-and-box-hero-image-renderer",disableElementRegistration:!0})],vu);
_.Z(vu,"ytd-banner-and-box-hero-image-renderer",function(){if(WHL!==void 0)return WHL;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return WHL=I},{mode:1});var dNR;var Wu=function(){var I=_.q.apply(this,arguments)||this;I.modern=_.V("web_modern_buttons");return I};
_.R(Wu,_.q);Wu.prototype.computeIcon=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType;if(y)return _.y5(y)};
Wu.prototype.computeButtonShape=function(){var I;return{buttonText:_.hS((I=this.data)==null?void 0:I.label),iconPosition:"leading",style:"overlay",type:"filled",size:"M",state:"active"}};
_.H1.Object.defineProperties(Wu.prototype,{buttonColor:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style.replace("CALL_TO_ACTION_BUTTON_RENDERER_STYLE_",""):"RED"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Wu.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Wu.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Wu.prototype,"modern",void 0);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0,reflectToAttribute:!0}),_.v("data.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],Wu.prototype,"buttonColor",null);
Wu=_.E([_.m({is:"ytd-call-to-action-button-renderer",disableElementRegistration:!0})],Wu);
_.Z(Wu,"ytd-call-to-action-button-renderer",function(){if(dNR!==void 0)return dNR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return dNR=I},{mode:1});var xN8;var dq=function(){return _.q.apply(this,arguments)||this};
_.R(dq,_.q);dq.prototype.onLeftThumbnailChanged=function(){this.data&&this.data.leftThumbnail&&(_.f(this.hostElement).querySelector("#section-left").style.backgroundImage="url("+_.E5(this.data.leftThumbnail.thumbnails,216)+")")};
dq.prototype.onLeftThumbnailChanged=dq.prototype.onLeftThumbnailChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dq.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dq.prototype,"data",void 0);_.E([_.FI("data.leftThumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],dq.prototype,"onLeftThumbnailChanged",null);dq=_.E([_.m({is:"ytd-collage-hero-image-renderer",disableElementRegistration:!0})],dq);
_.Z(dq,"ytd-collage-hero-image-renderer",function(){if(xN8!==void 0)return xN8;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return xN8=I},{mode:1});var q6j;var x7=function(){return _.q.apply(this,arguments)||this};
_.R(x7,_.q);x7.prototype.computeStyle=function(I){return I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],x7.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],x7.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyle(data.style)"}),_.h("design:type",String)],x7.prototype,"componentStyle",void 0);x7=_.E([_.m({is:"ytd-single-hero-image-renderer",disableElementRegistration:!0})],x7);
_.Z(x7,"ytd-single-hero-image-renderer",function(){if(q6j!==void 0)return q6j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return q6j=I},{mode:1});var mNy;var q0=function(){return _.q.apply(this,arguments)||this};
_.R(q0,_.q);_.u=q0.prototype;
_.u.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:_.V("defer_overlays")?0:void 0,waitForSignal:"eocs"}}};
_.u.computeSubtitle=function(I){if(this.data){var C;if(this.data.upcomingEventData){I=_.hS(I.subtitle);var y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(C=_.Ee(_.Sj(I,y)))}else C=I.subtitle;return C}};
_.u.onHeroTap=function(I){I.preventDefault();var C=this.data&&this.data.navigationEndpoint;!C||!_.q3(_.qc(I),this.hostElement,["YTD-CALL-TO-ACTION-BUTTON-RENDERER"])&&_.q3(_.qc(I),this.hostElement,["A".toString(),"BUTTON".toString()])||(_.V("kevlar_watchcard_hero_video_renderer_killswitch")?_.k3(this.hostElement,"yt-navigate",{navigationEndpoint:C}):this.ytComponentBehavior.resolveCommand(C))};
_.u.computeHeroTabIndex=function(I){return I&&I.simpleText?-1:0};
_.u.computeHeroRole=function(I){return I&&I.simpleText?"":"link"};
_.u.computeIsReminderButtonPresent=function(I){return!(!I||!I.reminderButton)};
_.u.computeHideBottomItems=function(I){return!(this.computeIsReminderButtonPresent(I)||I.subtitle)};
_.u.dataChanged=function(){var I=this.get("data.buttons.buttonRenderer.serviceEndpoint"),C;((C=_.l(I==null?void 0:I.commandMetadata,_.lv))==null?0:C.fireAutomatically)&&this.ytComponentBehavior.resolveCommand(I)};
q0.prototype.dataChanged=q0.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],q0.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],q0.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],q0.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],q0.prototype,"data",void 0);
_.E([_.d({computed:"computeSubtitle(data)"}),_.h("design:type",String)],q0.prototype,"subtitle",void 0);_.E([_.d({computed:"computeIsReminderButtonPresent(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],q0.prototype,"isReminderButtonPresent",void 0);_.E([_.d({computed:"computeHideBottomItems(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],q0.prototype,"hideBottomItems",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q0.prototype,"dataChanged",null);q0=_.E([_.m({is:"ytd-watch-card-hero-video-renderer",disableElementRegistration:!0})],q0);
_.Z(q0,"ytd-watch-card-hero-video-renderer",function(){if(mNy!==void 0)return mNy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mNy=I},{mode:1});var ZRj;var mV=function(){return _.q.apply(this,arguments)||this};
_.R(mV,_.q);_.u=mV.prototype;_.u.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"}}}};
_.u.computeTitleBadges=function(I){return I?[I]:[]};
_.u.computeHeaderStyle=function(I){return I?I.replace("WATCH_CARD_RICH_HEADER_RENDERER_STYLE_","").toLowerCase():""};
_.u.computeAvatarAriaLabel=function(I){if(I){var C,y,k,F;return(F=(C=I.avatar)==null?void 0:(y=C.accessibility)==null?void 0:(k=y.accessibilityData)==null?void 0:k.label)!=null?F:_.hS(I==null?void 0:I.title)}};
_.u.computeAvatarHeight=function(I){return I==="WATCH_CARD_RICH_HEADER_RENDERER_STYLE_LEFT_AVATAR"?72:48};
_.u.computeBadgeRowClass=function(I){return(I==null?0:I[0].metadataBadgeRenderer)?"layout-block":"layout-inline"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mV.prototype,"data",void 0);_.E([_.d({computed:"computeTitleBadges(data.titleBadge)"}),_.h("design:type",Array)],mV.prototype,"titleBadges",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHeaderStyle(data.style)"}),_.h("design:type",String)],mV.prototype,"headerStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeBadgeRowClass(data.badges)"}),_.h("design:type",String)],mV.prototype,"badgeRowClass",void 0);mV=_.E([_.m({is:"ytd-watch-card-rich-header-renderer",disableElementRegistration:!0})],mV);
_.Z(mV,"ytd-watch-card-rich-header-renderer",function(){if(ZRj!==void 0)return ZRj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ZRj=I},{mode:1});var BKL;var EQY;var ZF=function(){return _.q.apply(this,arguments)||this};
_.R(ZF,_.q);ZF.prototype.onMetadataTap=function(I){var C=this.data&&this.data.navigationEndpoint;C&&!_.q3(_.qc(I),this.hostElement,["A".toString()])&&_.k3(this.hostElement,"yt-navigate",{endpoint:C})};
_.H1.Object.defineProperties(ZF.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 I;if(this.data.upcomingEventData){var C=_.hS(this.data.subtitle),y=Number(this.data.upcomingEventData.startTime);isNaN(y)||(I=_.Ee(_.Sj(C,y)))}else I=this.data.subtitle;return I}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ZF.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ZF.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data.style"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ZF.prototype,"isCondensed",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ZF.prototype,"subtitle",null);
ZF=_.E([_.m({is:"ytd-watch-card-compact-video-renderer",disableElementRegistration:!0})],ZF);
_.Z(ZF,"ytd-watch-card-compact-video-renderer",function(){if(EQY!==void 0)return EQY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return EQY=I},{mode:1});var hDS;var Bu=function(){return _.q.apply(this,arguments)||this};
_.R(Bu,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Bu.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Bu.prototype,"data",void 0);Bu=_.E([_.m({is:"ytd-watch-card-one-vs-one-event-compact-video-renderer",disableElementRegistration:!0})],Bu);
_.Z(Bu,"ytd-watch-card-one-vs-one-event-compact-video-renderer",function(){if(hDS!==void 0)return hDS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hDS=I},{mode:1});var E9=function(){return _.q.apply(this,arguments)||this};
_.R(E9,_.q);E9.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{watchCardCompactVideoRenderer:{component:"ytd-watch-card-compact-video-renderer",noInjection:!0},watchCardOneVsOneEventCompactVideoRenderer:{component:"ytd-watch-card-one-vs-one-event-compact-video-renderer",noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],E9.prototype,"ytRendererStamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],E9.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],E9.prototype,"data",void 0);E9=_.E([_.m({is:"ytd-vertical-watch-card-list-renderer",disableElementRegistration:!0})],E9);
_.Z(E9,"ytd-vertical-watch-card-list-renderer",function(){if(BKL!==void 0)return BKL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BKL=I},{mode:1});var UNR;var hN=function(){var I=_.q.apply(this,arguments)||this;I.ariaExpanded="false";return I};
_.R(hN,_.q);_.u=hN.prototype;_.u.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:"ytd-vertical-watch-card-list-renderer"}}}};
_.u.dataChanged=function(){var I;this.currentSeasonIndex=((I=this.data)==null?void 0:I.dropdownDefaultSelectedIndex)||0;this.lists.select(this.currentSeasonIndex);this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex])};
_.u.computeEpisodesInfo=function(I,C,y){if(I!==void 0&&C.length===I.length)return I[y]};
_.u.onSeasonSelect=function(){this.ytRendererBehavior.markDirty()};
_.u.currentSeasonIndexChanged=function(){this.data&&this.data.dropdownTitles&&(this.label=this.getUppercaseSimpleString(this.data.dropdownTitles[this.currentSeasonIndex]))};
_.u.onLabelClick=function(){this.hostElement.ariaExpanded="true"};
_.u.onIronOverlayClosed=function(){this.hostElement.ariaExpanded="false"};
_.u.getUppercaseSimpleString=function(I){return this.ytRendererBehavior.getSimpleString(I).toUpperCase()};
_.u.updateCurrentSeasonIndexFromBinding=function(I){this.currentSeasonIndex=I.detail.value};
hN.prototype.onIronOverlayClosed=hN.prototype.onIronOverlayClosed;hN.prototype.currentSeasonIndexChanged=hN.prototype.currentSeasonIndexChanged;hN.prototype.dataChanged=hN.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hN.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",String)],hN.prototype,"label",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],hN.prototype,"currentSeasonIndex",void 0);_.E([_.d({computed:"computeEpisodesInfo(data.dropdownSubtitles,data.dropdownTitles,currentSeasonIndex)"}),_.h("design:type",Object)],hN.prototype,"episodesInfo",void 0);_.E([_.d({value:"false"}),_.h("design:type",Object)],hN.prototype,"ariaExpanded",void 0);_.E([_.z$("#lists"),_.h("design:type",Object)],hN.prototype,"lists",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hN.prototype,"dataChanged",null);_.E([_.rW("currentSeasonIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hN.prototype,"currentSeasonIndexChanged",null);_.E([_.km("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],hN.prototype,"onIronOverlayClosed",null);
hN=_.E([_.m({is:"ytd-watch-card-section-dropdown-renderer",disableElementRegistration:!0})],hN);
_.Z(hN,"ytd-watch-card-section-dropdown-renderer",function(){if(UNR!==void 0)return UNR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-watch-card-section-dropdown-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div class="season-picker-container style-scope ytd-watch-card-section-dropdown-renderer">\n  <tp-yt-paper-menu-button id="input" dynamic-align="" horizontal-align="left" class="style-scope ytd-watch-card-section-dropdown-renderer">\n    <tp-yt-paper-button id="label" class="dropdown-trigger style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-trigger" aria-expanded$="[[ariaExpanded]]" aria-label$="[[label]]" on-tap="onLabelClick">\n      <div id="label-text" class="style-scope ytd-watch-card-section-dropdown-renderer">[[label]]</div>\n      <yt-icon id="label-icon" icon="yt-icons:arrow_drop_down" class="style-scope ytd-watch-card-section-dropdown-renderer">\n      </yt-icon>\n    </tp-yt-paper-button>\n    <tp-yt-paper-listbox id="seasons" class="dropdown-content style-scope ytd-watch-card-section-dropdown-renderer" slot="dropdown-content" selected="[[currentSeasonIndex]]" on-iron-select="onSeasonSelect" on-selected-changed="updateCurrentSeasonIndexFromBinding">\n      <template is="dom-repeat" items="[[data.dropdownTitles]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n        <tp-yt-paper-item aria-label$="[[item.accessibility.accessibilityData.label]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n          [[getUppercaseSimpleString(item)]]\n        </tp-yt-paper-item>\n      </template>\n    </tp-yt-paper-listbox>\n  </tp-yt-paper-menu-button>\n  <span id="spacer" class="style-scope ytd-watch-card-section-dropdown-renderer"></span>\n  <yt-formatted-string id="episodes" text="[[episodesInfo]]" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  </yt-formatted-string>\n</div>\n<tp-yt-iron-pages id="lists" selected="[[currentSeasonIndex]]" on-selected-changed="updateCurrentSeasonIndexFromBinding" class="style-scope ytd-watch-card-section-dropdown-renderer">\n  \n</tp-yt-iron-pages>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UNR=I},{mode:1});var HRy;var U9=function(){var I=_.q.apply(this,arguments)||this;I.isSearch=!1;return I};
_.R(U9,_.q);U9.prototype.configureRendererStamper=function(){return{"data.lists":{id:"lists",mapping:{verticalWatchCardListRenderer:{component:"ytd-vertical-watch-card-list-renderer",noInjection:!0},horizontalCardListRenderer:{component:"ytd-horizontal-card-list-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],U9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],U9.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],U9.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],U9.prototype,"isSearch",void 0);U9=_.E([_.m({is:"ytd-watch-card-section-sequence-renderer",disableElementRegistration:!0})],U9);
_.Z(U9,"ytd-watch-card-section-sequence-renderer",function(){if(HRy!==void 0)return HRy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return HRy=I},{mode:1});var bRH=_.Qg({buttonViewModel:_.fM});_.MU(Y6K);_.aj(Y6K,"ytd-button-banner-view-model",{propNames:["data"]});var Hu=function(){var I=_.q.apply(this,arguments)||this;I.isSearch=!1;return I};
_.R(Hu,_.q);
Hu.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{watchCardRichHeaderRenderer:{component:"ytd-watch-card-rich-header-renderer",noInjection:!0}}},"data.callToAction":{id:"hero",mapping:{watchCardHeroVideoRenderer:{component:"ytd-watch-card-hero-video-renderer",noInjection:!0},watchCardHeroOneVsOneEventRenderer:{component:"ytd-watch-card-hero-one-vs-one-event-renderer",noInjection:!0}}},"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0}}},
"data.sections":{id:"sections",mapping:{watchCardSectionDropdownRenderer:{component:"ytd-watch-card-section-dropdown-renderer",noInjection:!0},watchCardSectionSequenceRenderer:{component:"ytd-watch-card-section-sequence-renderer",properties:{isSearch:"[[isSearch]]"},noInjection:!0}}},"data.footer":{id:"footer",mapping:{buttonBannerViewModel:"ytd-button-banner-view-model"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Hu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Hu.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Hu.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Hu.prototype,"rounded",void 0);_.E([_.d(),_.h("design:type",Object)],Hu.prototype,"isSearch",void 0);
Hu=_.E([_.m({is:"ytd-universal-watch-card-renderer",disableElementRegistration:!0})],Hu);
_.Z(Hu,"ytd-universal-watch-card-renderer",function(){if(AHL!==void 0)return AHL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return AHL=I},{mode:1});var tbR;_.B9(_.BO(function(I){var C=I.data;var y;I=!((y=_.N().resolve(_.aU(_.AE)))==null||!y());y={};return _.P("overview-message-view-model",{class:_.sZ("ytwOverviewMessageViewModelHost",(y.ytwOverviewMessageViewModelDarkBackground=I,y.ytwOverviewMessageViewModelLightBackground=!I,y))},_.P(_.Dx,{cond:function(){return C().primaryImage},
then:function(k){return _.P(_.x$,{data:k,contentMode:"CONTENT_MODE_CENTER",alt:"",targetWidth:120,targetHeight:120,className:"ytwOverviewMessageViewModelMessageImage"})}}),_.P(_.Dx,{cond:function(){return C().primaryText},
then:function(){return _.P("div",{class:"ytwOverviewMessageViewModelPrimaryMessageText"},_.P(_.wh,{text:function(){return C().primaryText}}))}}),_.P(_.Dx,{cond:function(){return C().secondaryText},
then:function(){return _.P("div",{class:"ytwOverviewMessageViewModelSecondaryMessageText"},_.P(_.wh,{text:function(){return C().secondaryText}}))}}))},"ki"),"overview-message-view-model",{props:{data:_.As}});_.aj(_.xac,"ytd-overview-answer-view-model",{propNames:["data"]});var tN=function(){return _.q.apply(this,arguments)||this};
_.R(tN,_.q);tN.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"}}}};
tN.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents"}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tN.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],tN.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tN.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],tN.prototype,"isSearch",void 0);
tN=_.E([_.m({disableElementRegistration:!0,is:"ytd-secondary-search-container-renderer"})],tN);
_.Z(tN,"ytd-secondary-search-container-renderer",function(){if(tbR!==void 0)return tbR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return tbR=I},{mode:1});var JHy;var JN=function(){var I=_.q.apply(this,arguments)||this;I.renderSecondarySearchContainer=!1;I.isSearch=!1;I.isSearchDova=_.V("dova_on_search");return I};
_.R(JN,_.q);_.u=JN.prototype;_.u.configureRendererStamper=function(){return{"data.primaryContents":{id:"primary",mapping:{sectionListRenderer:{component:"ytd-section-list-renderer",properties:{isSearch:"[[isSearch]]",isSearchDova:"[[isSearchDova]]"}}}},"data.continuations":{id:"continuations",mapping:{pageContinuationData:"ytd-page-continuation"}}}};
_.u.created=function(){var I=this;this.boundStampSecondarySearchContainerIfFits=function(){I.stampSecondarySearchContainerIfFits()};
_.KH("REMAINING_DOVA_DEFERRED_CHUNKS",1)};
_.u.computeIsSearchFrictionPage=function(I){var C,y,k,F,z;I=I==null?void 0:(C=I.primaryContents)==null?void 0:(y=C.sectionListRenderer)==null?void 0:(k=y.contents)==null?void 0:(F=k[0])==null?void 0:(z=F.itemSectionRenderer)==null?void 0:z.contents;if(!I)return!1;C=_.T(I);for(y=C.next();!y.done;y=C.next())if(k=void 0,(k=y.value)==null?0:k.searchFrictionViewModel)return!0;return!1};
_.u.computeShowSecondaryColumn=function(I,C){return!!(C&&C.secondaryContents&&I)};
_.u.activeChanged=function(){var I=this;this.active&&!this.renderSecondarySearchContainer?(window.addEventListener("resize",_.sb(this,this.debounceStampSecondarySearchContainerIfFits)),_.SA(function(){I.debounceStampSecondarySearchContainerIfFits()})):this.active||window.removeEventListener("resize",_.sb(this,this.debounceStampSecondarySearchContainerIfFits))};
_.u.persistentGuideChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
_.u.stampSecondarySearchContainerIfFits=function(){!this.renderSecondarySearchContainer&&window.innerWidth>=1090&&(this.renderSecondarySearchContainer=!0)};
_.u.debounceStampSecondarySearchContainerIfFits=function(){_.KK(this,"stampSecondarySearchContainerIfFits",this.boundStampSecondarySearchContainerIfFits)};
_.u.onRetrieveLocation=function(I,C){C.locationRetrieved(location.pathname+location.search+"&pbj=1",void 0);I.stopPropagation()};
_.u.dataChanged=function(){this.active&&!this.renderSecondarySearchContainer&&this.debounceStampSecondarySearchContainerIfFits()};
JN.prototype.dataChanged=JN.prototype.dataChanged;JN.prototype.onRetrieveLocation=JN.prototype.onRetrieveLocation;JN.prototype.persistentGuideChanged=JN.prototype.persistentGuideChanged;JN.prototype.activeChanged=JN.prototype.activeChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],JN.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JN.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],JN.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],JN.prototype,"ironResizableBehavior",void 0);_.E([_.d(),_.h("design:type",Boolean)],JN.prototype,"active",void 0);_.E([_.d(),_.h("design:type",Object)],JN.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.V("enable_desktop_search_bigger_thumbs")}}),
_.h("design:type",Boolean)],JN.prototype,"useBiggerThumbs",void 0);_.E([_.d({reflectToAttribute:!0,value:function(){return _.oD("desktop_search_bigger_thumbs_style")}}),
_.h("design:type",String)],JN.prototype,"biggerThumbsStyle",void 0);_.E([_.d(),_.h("design:type",Object)],JN.prototype,"renderSecondarySearchContainer",void 0);_.E([_.d({computed:"computeShowSecondaryColumn(renderSecondarySearchContainer, data)"}),_.h("design:type",Boolean)],JN.prototype,"showSecondaryColumn",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsSearchFrictionPage(data)"}),_.h("design:type",Boolean)],JN.prototype,"isSearchFrictionPage",void 0);
_.E([_.d(),_.h("design:type",Object)],JN.prototype,"isSearch",void 0);_.E([_.d(),_.h("design:type",Object)],JN.prototype,"isSearchDova",void 0);_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JN.prototype,"activeChanged",null);_.E([_.FI("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JN.prototype,"persistentGuideChanged",null);
_.E([_.km("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],JN.prototype,"onRetrieveLocation",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JN.prototype,"dataChanged",null);JN=_.E([_.m({disableElementRegistration:!0,is:"ytd-two-column-search-results-renderer"})],JN);
_.Z(JN,"ytd-two-column-search-results-renderer",function(){if(JHy!==void 0)return JHy;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return JHy=I},{mode:1});var O9=function(){var I=_.q.apply(this,arguments)||this;I.hasSearchHeader=!1;I.hasSecondaryContent=!1;I.hasBiggerThumbs=_.V("enable_desktop_search_bigger_thumbs");I.actionMap={"yt-show-search-contents-command":"onYtShowSearchContentsCommand"};return I};
_.R(O9,_.q);_.u=O9.prototype;_.u.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:_.Xr(["aa","eocs"])}}};
_.u.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"contents","yt-reload-continuation-items-command-header":"header"}};
_.u.loadPage_=function(I){this.initCsi();I&&(this.data=I,_.KH("REFINEMENTS_TUPLE",["FromSearchResponse",I.refinements||[]]),this.ytRendererBehavior.parentComponent&&_.HF(this.ytRendererBehavior.parentComponent));this.updateTitle()};
_.u.initCsi=function(){_.pm("results",["ol","cpt"])};
_.u.updateTitle=function(){var I=_.v2(window.location.href,"q");I||(I=_.v2(window.location.href,"search_query"));_.k3(this.hostElement,"yt-update-title",I||"")};
_.u.onYtShowSearchContentsCommand=function(){this.set("data.hideContents",!1)};
_.u.dataChanged=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data);_.V("web_srp_data_changed_terminate_imp_killswitch")||_.Fe(this.hostElement,"yt-terminate-video-preview-action")};
_.u.onReloadContinuationFinish=function(){this.hasSearchHeader=this.computeHasSearchHeader(this.data);this.hasSecondaryContent=this.computeHasSecondaryContent(this.data)};
_.u.computeHasSearchHeader=function(I){var C;I=I==null?void 0:(C=I.header)==null?void 0:C.searchHeaderRenderer;return!!I&&(!!I.searchFilterButton||!!I.chipBar)};
_.u.computeHasSecondaryContent=function(I){var C,y;return!!(I==null?0:(C=I.contents)==null?0:(y=C.twoColumnSearchResultsRenderer)==null?0:y.secondaryContents)};
_.H1.Object.defineProperties(O9,{template:{configurable:!0,enumerable:!0,get:function(){if(G1L===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);G1L=I}I=G1L;return I}}});
O9.prototype.onReloadContinuationFinish=O9.prototype.onReloadContinuationFinish;O9.prototype.dataChanged=O9.prototype.dataChanged;_.E([_.g(_.Q2.YtPageBehavior),_.h("design:type",Object)],O9.prototype,"ytPageBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],O9.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],O9.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],O9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],O9.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],O9.prototype,"data",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],O9.prototype,"monitorScroll",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"hasSearchHeader",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"hasSecondaryContent",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],O9.prototype,"hasBiggerThumbs",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"dataChanged",null);
_.E([_.km("yt-reload-continuation-finish"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],O9.prototype,"onReloadContinuationFinish",null);O9=_.E([_.m({is:"ytd-search"})],O9);_.pX.registerService(_.RgI,O9);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("h8y2qb");
var lcy=function(I){if(I=_.nR9(I)){var C;(C=I.sources)!=null&&C[0]?(C=_.LbF(I),C=C<1?"VERTICAL":C>1?"HORIZONTAL":"SQUARE"):C=void 0;return C}},NO=function(I){_.pb.call(this,"upload");
this.opts.query=I},$WS=function(I,C){return _.P(XUL,{data:I,
onYtNavigate:C})},b48=function(I,C){return I.map(function(y){if(y.tabRenderer)return R_Y(y.tabRenderer);
if(y.expandableTabRenderer&&C){var k=y.expandableTabRenderer;return{customTabRenderable:function(){return C(k)}}}return{}})},R_Y=function(I){return{identifier:I.tabIdentifier,
aTagConfig:_.Y$({innertubeCommand:I.endpoint,forceNewState:!0}),title:I.title,selected:I.selected,disabled:I.unselectable,icon:I.icon}},YgY=function(I,C){return _.cg(I.entities,"pageHeaderEntity",C)},SgK=function(I){var C=I.data;
var y=I.noPadding===void 0?!1:I.noPadding;var k=I.enableBanner===void 0?!1:I.enableBanner;var F=I.cinematicContainerTopbarOffset;var z=I.allowCinematicContainerOverflow===void 0?!1:I.allowCinematicContainerOverflow;var c=I.displayAsSidebar===void 0?!1:I.displayAsSidebar;I=I.className;if(C==null?0:C.tagManagerId)_.rx(C.tagManagerId,_.Aq("GL")),GFL(C.tagManagerId);a:{if(C.pageHeaderEntityKey){var r=_.TU(YgY,C.pageHeaderEntityKey);if(r==null?0:r.header){r=r==null?void 0:r.header;break a}}r=c&&C.sidebarContent?
C.sidebarContent:C.content}return _.P("yt-page-header-renderer",{class:_.yc("page-header-renderer-wiz",I)},fc8(r,{pageHeaderViewModel:{noPadding:y,enableBanner:k,cinematicContainerTopbarOffset:F,allowCinematicContainerOverflow:z,displayAsSidebar:c&&C.enableSidebarView}}))},K5B=function(I){return _.yE({type:"SET_TAB_GESTURES_IS_ACTIVE",
payload:I})},GFL=function(I){if(!_.HP(document,"gtm-noscript")){var C=document.createElement("noscript");
C.id="gtm-noscript";C.textContent='<iframe src="https://www.googletagmanager.com/ns.html?id='+I+'" height="0" width="0" style="display:none;visibility:hidden"></iframe>';document.body.prepend(C)}};_.s0(NO,_.pb);NO.prototype.JSC$7947_setLabel=function(I){NO.superClass_.JSC$7947_setLabel.call(this,I);return this};
NO.prototype.addUploadMetadata=function(I,C){NO.superClass_.addUploadMetadata.call(this,I,C);return this};var ArM=function(I){if(I!=="youtubebanner"&&I!=="youtube-channel-banner")throw Error("Ul");NO.call(this,I)};
_.R(ArM,NO);ArM.prototype.JSC$7947_setLabel=function(I){NO.prototype.JSC$7947_setLabel.call(this,I);return this};
ArM.prototype.addUploadMetadata=function(I,C){NO.prototype.addUploadMetadata.call(this,I,C);return this};var gLR=[_.Ri,{listeners:{"app-reset-layout":"_appResetLayoutHandler","iron-resize":"resetLayout"},attached:function(){this.fire("app-reset-layout")},
_appResetLayoutHandler:function(I){_.lG(I).path[0]!==this&&(this.resetLayout(),I.stopPropagation())},
_updateLayoutStates:function(){console.error("unimplemented")},
resetLayout:function(){var I=this._updateLayoutStates.bind(this);this._layoutDebouncer=_.on(this._layoutDebouncer,_.D_,I);_.yP(this._layoutDebouncer);this._notifyDescendantResize()},
_notifyLayoutChanged:function(){var I=this;requestAnimationFrame(function(){I.fire("app-reset-layout")})},
_notifyDescendantResize:function(){this.isAttached&&this._interestedResizables.forEach(function(I){this.resizerShouldNotify(I)&&this._notifyDescendant(I)},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 vLL=[_.ln5,{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(I,C){var y=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[I];if(!y)throw new ReferenceError(this._getUndefinedMsg(I));I=this._boundEffect(y,C||{});I.setUp();return I},
_effectsChanged:function(I,C,y){this._tearDownEffects();I&&y&&(I.split(" ").forEach(function(k){var F;k!==""&&((F=_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers[k])?this._effects.push(this._boundEffect(F,C[k])):console.warn(this._getUndefinedMsg(k)))},this),this._setUpEffect())},
_layoutIfDirty:function(){return this.offsetWidth},
_boundEffect:function(I,C){C=C||{};var y=parseFloat(C.startsAt||0),k=parseFloat(C.endsAt||1),F=k-y,z=function(){};
k=y===0&&k===1?I.run:function(c,r){I.run.call(this,Math.max(0,(c-y)/F),r)};
return{setUp:I.setUp?I.setUp.bind(this,C):z,run:I.run?k.bind(this):z,tearDown:I.tearDown?I.tearDown.bind(this):z}},
_setUpEffect:function(){this.isAttached&&this._effects&&(this._effectsRunFn=[],this._effects.forEach(function(I){I.setUp()!==!1&&this._effectsRunFn.push(I.run)},this))},
_tearDownEffects:function(){this._effects&&this._effects.forEach(function(I){I.tearDown()});
this._effectsRunFn=[];this._effects=[]},
_runEffects:function(I,C){this._effectsRunFn&&this._effectsRunFn.forEach(function(y){y(I,C)})},
_scrollHandler:function(){this._scrollStateChanged()},
_scrollStateChanged:function(){if(!this.disabled){var I=this._clampedScrollTop;this._updateScrollState(I);this.threshold>0&&this._setThresholdTriggered(I>=this.threshold)}},
_getDOMRef:function(I){console.warn("_getDOMRef","`"+I+"` is undefined")},
_getUndefinedMsg:function(I){return"Scroll effect `"+I+"` is undefined. Did you forget to import app-layout/app-scroll-effects/effects/"+I+".html ?"}}];if(_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]!=null)throw Error("Vl`parallax-background");
_._scrollEffects$$module$third_party$javascript$youtube_components$tp_yt_app_layout$tp_yt_helpers$tp_yt_helpers["parallax-background"]={setUp:function(I){var C={};I=parseFloat(I.scalar);C.background=this._getDOMRef("background");C.backgroundFrontLayer=this._getDOMRef("backgroundFrontLayer");C.backgroundRearLayer=this._getDOMRef("backgroundRearLayer");C.deltaBg=C.backgroundFrontLayer.offsetHeight-C.background.offsetHeight;C.deltaBg===0?(isNaN(I)&&(I=.8),C.deltaBg=(this._dHeight||0)*I):(isNaN(I)&&(I=
1),C.deltaBg*=I);this._fxParallaxBackground=C},
run:function(I){var C=this._fxParallaxBackground;this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,I)+"px, 0px)",C.backgroundFrontLayer);C.backgroundRearLayer&&this.transform("translate3d(0px, "+C.deltaBg*Math.min(1,I)+"px, 0px)",C.backgroundRearLayer)},
tearDown:function(){delete this._fxParallaxBackground}};var W5S;var dWY;var xWK=function(){};
_.u=xWK.prototype;_.u._scrollTargetChanged=function(){};
_.u.scroll=function(){};
_.u._isValidScrollTarget=function(){};
_.u._toggleScrollListener=function(){};
_.u.toggleScrollListener=function(){};
_.u.createEffect=function(){};
_.u._effectsChanged=function(){};
_.u._layoutIfDirty=function(){};
_.u._boundEffect=function(){};
_.u._setUpEffect=function(){};
_.u._tearDownEffects=function(){};
_.u._runEffects=function(){};
_.u._scrollHandler=function(){};
_.u._scrollStateChanged=function(){};
_.u._getUndefinedMsg=function(){};
_.u.notifyResize=function(){};
_.u.assignParentResizable=function(){};
_.u.stopResizeNotificationsFor=function(){};
_.u._subscribeIronResize=function(){};
_.u._unsubscribeIronResize=function(){};
_.u.resizerShouldNotify=function(){};
_.u._onDescendantIronResize=function(){};
_.u._fireResize=function(){};
_.u._onIronRequestResizeNotifications=function(){};
_.u._parentResizableChanged=function(){};
_.u._notifyDescendant=function(){};
_.u._requestResizeNotifications=function(){};
_.u._findParent=function(){};
_.u._appResetLayoutHandler=function(){};
_.u.resetLayout=function(){};
_.u._notifyLayoutChanged=function(){};
_.u._notifyDescendantResize=function(){};
_.u._setThresholdTriggered=function(){};
xWK=_.pK({_template:function(){if(dWY!==void 0)return dWY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;W5S===void 0&&(W5S=document.createElement("template"));var k=W5S;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return dWY=I},
is:"tp-yt-app-header",behaviors:[vLL,gLR],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 I=_.lG(this.$.slot).getDistributedNodes(),C=0,y;y=I[C];C++)if(y.nodeType===Node.ELEMENT_NODE)if(y.hasAttribute("sticky")){this._stickyElRef=y;break}else this._stickyElRef||(this._stickyElRef=y);return this._stickyElRef},_configChanged:function(){this.resetLayout();this._notifyLayoutChanged()},
_updateLayoutStates:function(){if(this.offsetWidth!==0||this.offsetHeight!==0){var I=this._clampedScrollTop,C=this._height===0||I===0,y=this.disabled;this._height=this.offsetHeight;this._stickyElRef=null;this.disabled=!0;C||this._updateScrollState(0,!0);this._mayMove()?this._dHeight=this._stickyEl?this._height-this._stickyEl.offsetHeight:0:this._dHeight=0;this._stickyElTop=this._stickyEl?this._stickyEl.offsetTop:0;this._setUpEffect();C?this._updateScrollState(I,!0):(this._updateScrollState(this._lastScrollTop,
!0),this._layoutIfDirty());this.disabled=y}},
_updateScrollState:function(I,C){if(this._height!==0){var y=0,k=this._top;var F=this._maxHeaderTop;var z=I-this._lastScrollTop,c=Math.abs(z),r=I>this._lastScrollTop,w=performance.now();this._mayMove()&&(y=this._clamp(this.reveals?k+z:I,0,F));I>=this._dHeight&&(y=this.condenses&&!this.fixed?Math.max(this._dHeight,y):y,this.style.transitionDuration="0ms");if(this.reveals&&!this.disabled&&c<100){if(w-this._initTimestamp>300||this._wasScrollingDown!==r)this._initScrollTop=I,this._initTimestamp=w;I>=F&&
(Math.abs(this._initScrollTop-I)>30||c>10?(r&&I>=F?y=F:!r&&I>=this._dHeight&&(y=this.condenses&&!this.fixed?this._dHeight:0),this.style.transitionDuration=this._clamp((y-k)/(z/(w-this._lastTimestamp)),0,300)+"ms"):y=this._top)}F=this._dHeight===0?I>0?1:0:y/this._dHeight;C||(this._lastScrollTop=I,this._top=y,this._wasScrollingDown=r,this._lastTimestamp=w);if(C||F!==this._progress||k!==y||I===0)this._progress=F,this._runEffects(F,y),this._transformHeader(y)}},
_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(I){this.translate3d(0,-I+"px",0);this._stickyEl&&this.translate3d(0,this.condenses&&I>=this._stickyElTop?Math.min(I,this._dHeight)-this._stickyElTop+"px":0,0,this._stickyEl)},
_clamp:function(I,C,y){return Math.min(y,Math.max(C,I))},
_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),_.lG(this.root).insertBefore(this._bgContainer,this.$.contentContainer))},
_getDOMRef:function(I){switch(I){case "backgroundFrontLayer":return this._ensureBgContainers(),this._bgFront;case "backgroundRearLayer":return this._ensureBgContainers(),this._bgRear;case "background":return this._ensureBgContainers(),this._bgContainer;case "mainTitle":return _.lG(this).querySelector("[main-title]");case "condensedTitle":return _.lG(this).querySelector("[condensed-title]")}return null},
getScrollState:function(){return{progress:this._progress,top:this._top}}});var qgH;var mWY;_.pK({_template:function(){if(mWY!==void 0)return mWY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;qgH===void 0&&(qgH=document.createElement("template"));var k=qgH;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return mWY=I},
is:"tp-yt-app-header-layout",behaviors:[gLR],properties:{hasScrollingRegion:{type:Boolean,value:!1,reflectToAttribute:!0}},observers:["resetLayout(isAttached, hasScrollingRegion)"],get header(){return _.lG(this.$.headerSlot).getDistributedNodes()[0]},_updateLayoutStates:function(){var I=this.header;if(this.isAttached&&I){this.$.wrapper.classList.remove("initializing");I.scrollTarget=this.hasScrollingRegion?this.$.contentContainer:this.ownerDocument.documentElement;if(this.hasScrollingRegion)I.style.left=
"",I.style.right="";else{var C=this.getBoundingClientRect(),y=document.documentElement.clientWidth-C.right;I.style.left=C.left+"px";I.style.right=y+"px"}C=this.$.contentContainer.style;y=I.offsetHeight;I.fixed&&!I.condenses&&this.hasScrollingRegion?(C.marginTop=y+"px",C.paddingTop=""):(C.paddingTop=y+"px",C.marginTop="")}}});var Z4j=new _.J("replaceFeedContentAction");var BZR=new _.J("alertCommand");var ELR=new _.J("manageLabsStateCommand");var h_j=new _.J("channelBannerEditorRenderer");var UWR=new _.J("inlineFormRenderer");var V2=new _.J("playlistSidebarPrimaryInfoRenderer");var H48=new _.J("productDetailsThumbnailRenderer"),txY=new _.J("productDetailsVariantRenderer"),JrH=new _.J("productDetailsVariantOptionRenderer"),O4L=new _.J("productDetailsOffersContainerRenderer"),acL=new _.J("productDetailsOfferRenderer");var MxL=new _.J("shoppingFlaggingRenderer");var IVH=new _.J("playlistBylineRenderer");var C5y=new _.J("insertChannelTabCommand");var j3=function(){return _.cO.apply(this,arguments)||this};
_.R(j3,_.cO);_.u=j3.prototype;_.u.activeChanged=function(){if(this.active){var I=_.f(this.hostElement).querySelector("#header");I&&_.k3(I,"iron-resize");window.addEventListener("scroll",_.sb(this,this.onScroll))}else window.removeEventListener("scroll",_.sb(this,this.onScroll)),_.k3(this.hostElement,"yt-request-panel-mode-change",{mode:"seamed"})};
_.u.guideVisibleChanged=function(){var I=_.f(this.hostElement).querySelector("#header");I&&_.k3(I,"iron-resize")};
_.u.onScroll=function(){var I=this;_.KK(this,"onScroll",function(){var C=_.f(I.hostElement).querySelector("#header");C&&C.polymerController&&(C=C.polymerController.getScrollState().progress===1?"standard":"seamed",_.k3(I.hostElement,"yt-request-panel-mode-change",{mode:C}))},10)};
_.u.tabsChanged=function(){if(this.tabs){for(var I=null,C=0,y=this.tabs.length;C<y;++C){var k=this.tabs[C].tabRenderer;if(k&&k.selected){I=C;break}}this.selected=I}};
_.u.onTabsActivate=function(I){_.k3(this.hostElement,"yt-navigate",{endpoint:this.tabs[I.detail.selected].tabRenderer.endpoint})};
j3.prototype.tabsChanged=j3.prototype.tabsChanged;j3.prototype.guideVisibleChanged=j3.prototype.guideVisibleChanged;j3.prototype.activeChanged=j3.prototype.activeChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],j3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],j3.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.d(),_.h("design:type",Array)],j3.prototype,"tabs",void 0);
_.E([_.d(),_.h("design:type",Object)],j3.prototype,"selected",void 0);_.E([_.d(),_.h("design:type",Boolean)],j3.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],j3.prototype,"disableHeaderFluidWidth",void 0);_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"activeChanged",null);
_.E([_.FI("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"guideVisibleChanged",null);_.E([_.FI("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j3.prototype,"tabsChanged",null);j3=_.E([_.eA()],j3);var sTM=[_.M.YtRendererBehavior,_.GW.YtdGuideStateAwareBehavior,j3.prototype];var o0P=2/3,yFR=_.Dn(130749),kYY=function(I,C){var y=this;this.element=I;this.layer=0;this.refreshConfig={startPosition:0,startAction:function(){y.startAction()},
draggingClass:"gesture-dragging",triggers:{down:{endPosition:80,threshold:120,disableFinish:!0,translateBack:!0,moveRatio:o0P,moveAction:function(k){y.moveAction(k)},
triggerAction:function(){y.element.isReloading=!0;_.Sz(_.e2(),{visualElement:yFR});_.FW.instance.resolveCommand({signalAction:{signal:"SOFT_RELOAD_PAGE"}},{form:{element:y.element}})}}}};
_.y4(_.e2(),yFR,this.layer);this.gesture=new _.oB(I,C,this.refreshConfig,"pan-down");this.attach()};
_.u=kYY.prototype;_.u.attach=function(){this.gesture.attach()};
_.u.detach=function(){this.gesture.detach()};
_.u.reset=function(){this.element.close()};
_.u.startAction=function(){this.element.reset();this.element.isReloading=!1};
_.u.moveAction=function(I){this.element.rotation=I*360};var F6R=_.Dn(130750),lD=function(I,C,y,k,F){var z=this;this.element=I;this.parent=y;this.channelHeader=k;this.ytdReduxDispatch=F;this.layer=0;this.scrollPositionNeedsUpdate=!1;this.scrollPositionForTabs=new Map;this.tabConfig={startPosition:0,draggingClass:"gesture-tab-dragging",startAction:function(){z.tabsStartAtInPx=z.channelHeader.clientHeight-48;var c;(c=z.selectedTab)!=null&&c.title&&(c=_.N().resolve(_.aU(_.BP)))&&(c=c.getCurrentPage(),z.lastVisitedTabScrollPosition=c.getScrollTop(),z.previousTab&&
((z.lastVisitedTabScrollPosition===void 0?0:z.lastVisitedTabScrollPosition<z.channelHeader.clientHeight-48)?z.scrollPositionForTabs.has(z.selectedTab.title)&&z.scrollPositionForTabs.delete(z.selectedTab.title):z.scrollPositionForTabs.set(z.selectedTab.title,c.getScrollTop())))},
triggers:{right:{endPosition:500,threshold:100,transitionEndPosition:uYj(),triggerAction:function(){z.navigate(z.previousTab)},
moveAction:function(c,r){z.moveAction(c,r)}},
left:{endPosition:-500,threshold:-100,transitionEndPosition:-uYj(),triggerAction:function(){z.navigate(z.nextTab)},
moveAction:function(c,r){z.moveAction(c,r)}}}};
_.y4(_.e2(),F6R,this.layer);this.gesture=new _.oB(I,C,this.tabConfig);this.attach()};
lD.prototype.attach=function(){this.gesture.attach()};
lD.prototype.detach=function(){this.gesture.detach()};
lD.prototype.tabsChanged=function(I){if(I){var C=void 0;this.nextTab=this.previousTab=this.selectedTab=void 0;I=_.T(I);for(var y=I.next();!y.done;y=I.next()){y=y.value.tabRenderer;this.selectedTab&&!this.nextTab&&(this.nextTab=y);var k=void 0;if((k=y)==null?0:k.selected)this.previousTab=C,this.selectedTab=y;C=y}C=this.gesture;I=this.previousTab?this.nextTab?this.tabConfig:Object.assign({},this.tabConfig,{triggers:{right:this.tabConfig.triggers.right}}):Object.assign({},this.tabConfig,{triggers:{left:this.tabConfig.triggers.left}});
C.config=I;this.scrollPositionNeedsUpdate=!0}};
lD.prototype.moveAction=function(I,C){if(!this.tabsElement){var y;this.tabsElement=(y=this.parent.header)==null?void 0:y.tabsElement;C==="right"&&this.previousTab?_.Q90(_.IA.instance,this.previousTab.endpoint,{},""):C==="left"&&this.nextTab&&_.Q90(_.IA.instance,this.nextTab.endpoint,{},"");if(!this.tabsElement)return}y=this.tabsElement._pos;C==="right"&&(I*=-1);this.tabsElement._positionBar(y.width,y.left*1+y.width*I)};
var uYj=function(){var I,C;return(C=(I=_.N().resolve(_.BP).getCurrentPage())==null?void 0:I.clientWidth)!=null?C:0};
lD.prototype.navigate=function(I){this.element.data=void 0;if(I=I==null?void 0:I.endpoint)this.ytdReduxDispatch(K5B(!0)),_.Sz(_.e2(),{visualElement:F6R}),_.FW.instance.resolveCommand({navigateAction:{endpoint:I}},{form:{element:this.element}})};var zPB;var TwK;var Xx=function(){return _.q.apply(this,arguments)||this};
_.R(Xx,_.q);Xx.prototype.configureRendererStamper=function(){return{"data.deleteButton":{id:"delete-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Xx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Xx.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Xx.prototype,"data",void 0);Xx=_.E([_.m({is:"ytd-labs-edit-renderer",disableElementRegistration:!0})],Xx);
_.Z(Xx,"ytd-labs-edit-renderer",function(){if(TwK!==void 0)return TwK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TwK=I},{mode:1});var cFR;var $a=function(){var I=_.q.apply(this,arguments)||this;I.dark=!1;I.headerBackgroundLight="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";I.headerBackgroundDark="https://www.gstatic.com/youtube/img/labs/early_access_web_background_expanded_ai_2x.jpg";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R($a,_.q);$a.prototype.configureRendererStamper=function(){return{"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
$a.prototype.ready=function(){var I=document.documentElement.hasAttribute("dark");this.setBackgroundImage(I);this.dark=I};
$a.prototype.onDarkModeToggledAction=function(I){this.setBackgroundImage(I);this.dark=I};
$a.prototype.setBackgroundImage=function(I){_.CK(this.hostElement,{"--yt-labs-header-background":"url("+(I?this.headerBackgroundDark:this.headerBackgroundLight)+")"})};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$a.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$a.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],$a.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$a.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],$a.prototype,"dark",void 0);
$a=_.E([_.m({is:"ytd-labs-header-renderer",disableElementRegistration:!0})],$a);
_.Z($a,"ytd-labs-header-renderer",function(){if(cFR!==void 0)return cFR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cFR=I},{mode:1});var ePK;var RB=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-check-labs-opted-in-state":"onCheckLabsOptedInState","yt-manage-labs-state-command":"onManageLabsState"};return I};
_.R(RB,_.q);RB.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"}}}}}};
RB.prototype.onYtToggleButton=function(I){this.notifyPath("data.primaryButton.toggleButtonRenderer.isToggled",I.detail.toggled)};
RB.prototype.onManageLabsState=function(I){if(I=_.l(I,ELR))I.stateChange==="LABS_STATE_TYPE_OVERRIDE_OPT_IN"&&this.data?I.labsItemId!==this.data.labsItemId?this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1):this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0):this.data&&I.labsItemId===this.data.labsItemId&&(I.stateChange==="LABS_STATE_TYPE_OPT_IN"?_.Fe(this.hostElement,"yt-check-labs-opted-in-state").some(function(C){return C})&&this.data.confirmationDialogCommand?_.cQ(this.hostElement,
[this.data.confirmationDialogCommand],this.hostElement):this.data.optInCommand&&(_.N().resolve(_.ID).resolveCommand(this.data.optInCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!0)):this.data.optOutCommand&&I.stateChange==="LABS_STATE_TYPE_OPT_OUT"&&(_.N().resolve(_.ID).resolveCommand(this.data.optOutCommand,{form:{element:this.hostElement}}),this.set("data.primaryButton.toggleButtonRenderer.isToggled",!1)))};
RB.prototype.onCheckLabsOptedInState=function(){var I=this.get("data.primaryButton.toggleButtonRenderer");return I?I.isToggled:!1};
_.H1.Object.defineProperties(RB.prototype,{itemStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.itemStyle}}});
RB.prototype.onYtToggleButton=RB.prototype.onYtToggleButton;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],RB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],RB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],RB.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],RB.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],RB.prototype,"itemStyle",null);_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],RB.prototype,"onYtToggleButton",null);RB=_.E([_.m({is:"ytd-labs-item-renderer",disableElementRegistration:!0})],RB);
_.Z(RB,"ytd-labs-item-renderer",function(){if(ePK!==void 0)return ePK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ePK=I},{mode:1});var rF8;var itj;var bD=function(){return _.q.apply(this,arguments)||this};
_.R(bD,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bD.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bD.prototype,"data",void 0);bD=_.E([_.m({is:"ytd-live-chat-history-new-sponsor-chip-renderer",disableElementRegistration:!0})],bD);
_.Z(bD,"ytd-live-chat-history-new-sponsor-chip-renderer",function(){if(itj!==void 0)return itj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return itj=I},{mode:1});var w8L;var Ya=function(){return _.q.apply(this,arguments)||this};
_.R(Ya,_.q);Ya.prototype.observeSuperchatChip=function(){if(this.data){var I={"--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)};_.CK(this.hostElement,I)}};
Ya.prototype.colorFromDecimal=function(I){return _.Xl(Number(I||0))};
Ya.prototype.observeSuperchatChip=Ya.prototype.observeSuperchatChip;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ya.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ya.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ya.prototype,"observeSuperchatChip",null);Ya=_.E([_.m({is:"ytd-live-chat-history-super-chat-chip-renderer",disableElementRegistration:!0})],Ya);
_.Z(Ya,"ytd-live-chat-history-super-chat-chip-renderer",function(){if(w8L!==void 0)return w8L;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return w8L=I},{mode:1});var Gt=function(){return _.q.apply(this,arguments)||this};
_.R(Gt,_.q);Gt.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"}}}};
_.H1.Object.defineProperties(Gt.prototype,{hideMessageBlock:{configurable:!0,enumerable:!0,get:function(){return!!this.data&&!this.data.charityName&&!!this.data.chip}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Gt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Gt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$x),_.h("design:type",Object)],Gt.prototype,"ytdDismissibleItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Gt.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Gt.prototype,"hideMessageBlock",null);
Gt=_.E([_.m({is:"ytd-live-chat-history-entry-renderer",disableElementRegistration:!0})],Gt);
_.Z(Gt,"ytd-live-chat-history-entry-renderer",function(){if(rF8!==void 0)return rF8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rF8=I},{mode:1});var n0j;var fm=function(){return _.q.apply(this,arguments)||this};
_.R(fm,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fm.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fm.prototype,"data",void 0);fm=_.E([_.m({is:"ytd-channel-options-renderer",disableElementRegistration:!0})],fm);
_.Z(fm,"ytd-channel-options-renderer",function(){if(n0j!==void 0)return n0j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return n0j=I},{mode:1});var P5j;var S3=function(){return _.q.apply(this,arguments)||this};
_.R(S3,_.q);S3.prototype.configureRendererStamper=function(){return{"data.resumeButton":{id:"resume-button",mapping:{buttonRenderer:"ytd-button-renderer",toggleButtonRenderer:"ytd-toggle-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],S3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],S3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],S3.prototype,"data",void 0);S3=_.E([_.m({is:"ytd-settings-email-item-renderer",disableElementRegistration:!0})],S3);
_.Z(S3,"ytd-settings-email-item-renderer",function(){if(P5j!==void 0)return P5j;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return P5j=I},{mode:1});var L6Y;var Km=function(){return _.q.apply(this,arguments)||this};
_.R(Km,_.q);Km.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"}}}};
Km.prototype.getExpansionIcon=function(I){return I?"arrow_drop_up":"arrow_drop_down"};
Km.prototype.onToggleListExpansion=function(){this.expanded=!this.expanded};
_.H1.Object.defineProperties(Km.prototype,{emailListExpanded:{configurable:!0,enumerable:!0,get:function(){return this.expanded?"true":"false"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Km.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Km.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Km.prototype,"data",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Km.prototype,"expanded",void 0);_.E([_.v("expanded"),_.h("design:type",String),_.h("design:paramtypes",[])],Km.prototype,"emailListExpanded",null);
_.E([_.z$("#options"),_.h("design:type",Object)],Km.prototype,"options",void 0);Km=_.E([_.m({is:"ytd-settings-email-list-renderer",disableElementRegistration:!0})],Km);
_.Z(Km,"ytd-settings-email-list-renderer",function(){if(L6Y!==void 0)return L6Y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return L6Y=I},{mode:1});var DAS;var AI=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return I};
_.R(AI,_.q);AI.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"}}}};
AI.prototype.handleSignalActionSubmitForm=function(){var I,C=(I=this.formRenderer)==null?void 0:I.getForm();C&&this.data.serviceEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.serviceEndpoint,{form:Object.assign({},C,{element:this.hostElement})})};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AI.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],AI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],AI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AI.prototype,"data",void 0);_.E([_.z$("yt-form-renderer"),_.h("design:type",Object)],AI.prototype,"formRenderer",void 0);
AI=_.E([_.m({is:"ytd-settings-gaia-link-renderer",disableElementRegistration:!0})],AI);
_.Z(AI,"ytd-settings-gaia-link-renderer",function(){if(DAS!==void 0)return DAS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DAS=I},{mode:1});var p8H;var gV=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-settings-update-options-command":"handleUpdateOptionsCommand"};return I};
_.R(gV,_.q);gV.prototype.dataChanged=function(){this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_AV1_OPTIONS"&&_.v5K()&&this.set("data.hidden",!1)};
gV.prototype.onSwitchReady=function(){var I=this;this.data&&this.data.id&&this.data.id==="SETTINGS_OPTIONS_ID_TYPE_PUSH_NOTIFICATIONS_ENABLED"&&_.V("service_worker_push_enabled")&&navigator.serviceWorker.ready.then(function(){_.g5R().then(function(C){C&&(Notification.permission==="default"?I.set("data.hidden",!1):Notification.permission==="granted"&&_.ZT("NotificationsDisabled").then(function(y){y||_.Fe(I.hostElement,"yt-toggle-settings-switch",[I.data.id,!y]);I.set("data.hidden",!1)}).catch(function(){}))})})};
gV.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}}}}};
gV.prototype.handleUpdateOptionsCommand=function(I){(I=_.l(I,_.ojw))&&this.data&&this.data.id===I.id&&(this.set("data.hidden",I.hidden),I.text!==void 0&&this.set("data.text",I.text),I.clearOptions&&this.set("data.options",[]))};
gV.prototype.onSwitchReady=gV.prototype.onSwitchReady;gV.prototype.dataChanged=gV.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],gV.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],gV.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],gV.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gV.prototype,"data",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gV.prototype,"dataChanged",null);_.E([_.km("yt-settings-switch-ready"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gV.prototype,"onSwitchReady",null);gV=_.E([_.m({is:"ytd-settings-options-renderer",disableElementRegistration:!0})],gV);
_.Z(gV,"ytd-settings-options-renderer",function(){if(p8H!==void 0)return p8H;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return p8H=I},{mode:1});var QTR;var vd=function(){return _.q.apply(this,arguments)||this};
_.R(vd,_.q);vd.prototype.onYtExpanderMoreTapped=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
vd.prototype.configureRendererStamper=function(){return{"data.attributionLinkButtonRenderer":{id:"attribution-link-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{disableTextTransform:!0}}}}}};
vd.prototype.onYtExpanderMoreTapped=vd.prototype.onYtExpanderMoreTapped;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],vd.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vd.prototype,"data",void 0);
_.E([_.km("yt-expander-more-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vd.prototype,"onYtExpanderMoreTapped",null);vd=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-description-renderer"})],vd);
_.Z(vd,"ytd-product-details-description-renderer",function(){if(QTR!==void 0)return QTR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return QTR=I},{mode:1});var NwY;var Wd=function(){var I=_.q.apply(this,arguments)||this;I.shippingIcon="https://www.gstatic.com/images/icons/material/system/1x/local_shipping_grey600_48dp.png";I.shippingAddressIcon="https://www.gstatic.com/images/icons/material/system/1x/location_on_grey600_48dp.png";I.googleGuaranteeIcon="https://www.gstatic.com/images/icons/material/system/1x/google_guarantee_grey600_48dp.png";I.returnPolicyIcon="https://www.gstatic.com/images/icons/material/system/1x/undo_grey600_48dp.png";return I};
_.R(Wd,_.q);Wd.prototype.configureRendererStamper=function(){return{"data.purchaseButtonRenderer":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.purchaseButtonRenderers":{id:"purchase-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H1.Object.defineProperties(Wd.prototype,{showAdditionalFees:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:(C=I.offerData)==null?void 0:C.additionalFeesText)!==""}},
showMultiPurchaseButtons:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?void 0:I.purchaseButtonRenderers)!==void 0&&((C=this.data)==null?void 0:C.purchaseButtonRenderers.length)!==0}},
showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.formattedFromMerchantText)&&(!((C=this.data)==null||!C.purchaseButtonRenderer)||this.showMultiPurchaseButtons)}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Wd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Wd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Wd.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Wd.prototype,"data",void 0);
_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],Wd.prototype,"shippingIcon",void 0);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],Wd.prototype,"shippingAddressIcon",void 0);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],Wd.prototype,"googleGuaranteeIcon",void 0);
_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?String:void 0}),_.h("design:type",Object)],Wd.prototype,"returnPolicyIcon",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Wd.prototype,"showAdditionalFees",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Wd.prototype,"showMultiPurchaseButtons",null);
_.E([_.v("data","showMultiPurchaseButtons"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Wd.prototype,"showPurchaseData",null);Wd=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-hero-offer-renderer"})],Wd);
_.Z(Wd,"ytd-product-details-hero-offer-renderer",function(){if(NwY!==void 0)return NwY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NwY=I},{mode:1});var VMj;var jTL;var dV=function(){return _.q.apply(this,arguments)||this};
_.R(dV,_.q);_.u=dV.prototype;_.u.attached=function(){this.hostElement.addEventListener("click",this.handleSelection);this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
_.u.onKeyDown=function(I){I=I.keyCode;I!==13&&I!==32||this.handleSelection()};
_.u.onMouseEnterImage=function(){var I;((I=this.data)==null?void 0:I.thumbnailDetails)!==void 0&&_.uW(this.polymerController.hostElement,"ytd-product-details-variant-image-select",[this.data.thumbnailDetails])};
_.u.onMouseLeaveImage=function(){_.uW(this.polymerController.hostElement,"ytd-product-details-variant-image-unselect")};
_.u.handleSelection=function(){this.data&&_.k3(this.hostElement,"ytd-product-details-thumbnail-renderer-selected",this.data.index)};
_.H1.Object.defineProperties(dV.prototype,{isSelected:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.isSelected)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dV.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],dV.prototype,"isSelected",null);dV=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-thumbnail-renderer"})],dV);
_.Z(dV,"ytd-product-details-thumbnail-renderer",function(){if(jTL!==void 0)return jTL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return jTL=I},{mode:1});var xa=function(){var I=_.q.apply(this,arguments)||this;var C={};I.actionMap=(C["ytd-product-details-variant-image-select"]="handlePreviewImageSelect",C["ytd-product-details-variant-image-unselect"]="handlePreviewImageDeselect",C);I.selectedThumbnailIndex=0;I.selectItem=function(y){y.target.onKeyDown(y)};
return I};
_.R(xa,_.q);_.u=xa.prototype;_.u.handlePreviewImageSelect=function(I){this.hoverThumbnail=I};
_.u.handlePreviewImageDeselect=function(){this.hoverThumbnail=void 0};
_.u.configureRendererStamper=function(){return{"populatedData.imageRenderer":{id:"items",mapping:{productDetailsThumbnailRenderer:{component:"ytd-product-details-thumbnail-renderer",attributes:{role:"option"}}}}}};
_.u.onThumbnailSelected=function(I,C){this.selectedThumbnailIndex=C};
_.u.dataChanged=function(){this.ytdHorizontalListBehavior.reset();this.selectedThumbnailIndex=0};
_.u.updateOffset=function(){var I=_.f(this.hostElement).querySelector("#scroll-container").clientWidth;this.ytdHorizontalListBehavior.offset=Math.max(0,Math.min(this.ytdHorizontalListBehavior.offset,this.items.clientWidth-I));this.ytdHorizontalListBehavior.reposition_()};
_.H1.Object.defineProperties(xa.prototype,{showThumbnails:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.imageRenderer){var C,y;return((C=this.data)==null?void 0:(y=C.imageRenderer)==null?void 0:y.length)>1}return!1}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.hoverThumbnail!==void 0)return this.hoverThumbnail;var I;if((I=this.data)==null?0:I.imageRenderer){var C;return(C=_.l(this.data.imageRenderer[this.selectedThumbnailIndex],H48))==null?void 0:C.thumbnailDetails}}},
populatedData:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y,k,F=(k=(C=this.data)==null?void 0:(y=C.imageRenderer)==null?void 0:y.map(function(z,c){return{productDetailsThumbnailRenderer:Object.assign({},_.l(z,H48),{index:c,isSelected:c===I.selectedThumbnailIndex})}}))!=null?k:[];
return Object.assign({},this.data,{imageRenderer:F})}}});
xa.prototype.updateOffset=xa.prototype.updateOffset;xa.prototype.dataChanged=xa.prototype.dataChanged;xa.prototype.onThumbnailSelected=xa.prototype.onThumbnailSelected;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xa.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],xa.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.hx.YtdHorizontalListBehavior),_.h("design:type",Object)],xa.prototype,"ytdHorizontalListBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],xa.prototype,"componentBehavior",void 0);_.E([_.g([_.Et.YtActionHandlerBehavior]),_.h("design:type",Object)],xa.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xa.prototype,"data",void 0);_.E([_.d({value:"$.items.children"}),_.h("design:type",String)],xa.prototype,"itemsPath",void 0);_.E([_.d({value:3}),_.h("design:type",Number)],xa.prototype,"initialCount",void 0);
_.E([_.z$("#items"),_.h("design:type",Object)],xa.prototype,"items",void 0);_.E([_.d(),_.h("design:type",Object)],xa.prototype,"selectedThumbnailIndex",void 0);_.E([_.d(),_.h("design:type",Object)],xa.prototype,"hoverThumbnail",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],xa.prototype,"showThumbnails",null);
_.E([_.km("ytd-product-details-thumbnail-renderer-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Number]),_.h("design:returntype")],xa.prototype,"onThumbnailSelected",null);_.E([_.v("data","selectedThumbnailIndex","hoverThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],xa.prototype,"thumbnailDetails",null);_.E([_.v("data","selectedThumbnailIndex"),_.h("design:type",Object),_.h("design:paramtypes",[])],xa.prototype,"populatedData",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xa.prototype,"dataChanged",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xa.prototype,"updateOffset",null);xa=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-image-carousel-renderer"})],xa);
_.Z(xa,"ytd-product-details-image-carousel-renderer",function(){if(VMj!==void 0)return VMj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return VMj=I},{mode:_.Ij("kevlar_poly_si_batch_j079")?1:2});var lVH;var qO=function(){return _.q.apply(this,arguments)||this};
_.R(qO,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qO.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],qO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],qO.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qO.prototype,"data",void 0);qO=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-offer-renderer"})],qO);
_.Z(qO,"ytd-product-details-offer-renderer",function(){if(lVH!==void 0)return lVH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return lVH=I},{mode:1});var X8K;var m$=function(){var I=_.q.apply(this,arguments)||this;I.isOffersHidden=!0;return I};
_.R(m$,_.q);m$.prototype.toggleOffers=function(){this.isOffersHidden=!this.isOffersHidden;var I,C=_.l((I=this.data)==null?void 0:I.viewOffersButton,_.fZ);C&&this.ytRendererBehavior.logExplicitClick(C)};
m$.prototype.configureRendererStamper=function(){return{"data.offers":{id:"offer",mapping:{productDetailsOfferRenderer:"ytd-product-details-offer-renderer"}}}};
_.H1.Object.defineProperties(m$.prototype,{firstOfferVendorLogoUrl:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return(y=_.l((I=this.data)==null?void 0:(C=I.offers)==null?void 0:C[0],acL))==null?void 0:(k=y.offerData)==null?void 0:k.vendorLogoUrl}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],m$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],m$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],m$.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],m$.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],m$.prototype,"isOffersHidden",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],m$.prototype,"firstOfferVendorLogoUrl",null);m$=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-offers-container-renderer"})],m$);
_.Z(m$,"ytd-product-details-offers-container-renderer",function(){if(X8K!==void 0)return X8K;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return X8K=I},{mode:1});var $A8;var RPP;var Za=function(){return _.q.apply(this,arguments)||this};
_.R(Za,_.q);Za.prototype.ready=function(){this.hostElement.addEventListener("mouseenter",this.onMouseEnterImage);this.hostElement.addEventListener("mouseleave",this.onMouseLeaveImage)};
Za.prototype.onMouseEnterImage=function(){this.isImageButton&&this.thumbnailDetails!==void 0&&_.uW(this,"ytd-product-details-variant-image-select",[this.thumbnailDetails])};
Za.prototype.onMouseLeaveImage=function(){this.isImageButton&&_.uW(this,"ytd-product-details-variant-image-unselect")};
_.H1.Object.defineProperties(Za.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 I;return((I=this.data)==null?void 0:I.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"}},
isUnavailable:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?void 0:I.variantAvailability)==="VARIANT_AVAILABILITY_NO_OFFERS"||((C=this.data)==null?void 0:C.variantOptionState)==="VARIANT_OPTION_STATE_OTHER_ATTRIBUTE_WILL_CHANGE"||((y=this.data)==null?void 0:y.variantOptionState)==="VARIANT_OPTION_STATE_DISABLED"}},
thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){if(this.isImageButton){var I;if(((I=this.data)==null?void 0:I.imageDetails)!==void 0)return this.data.imageDetails}}},
accessibilityLabel:{configurable:!0,enumerable:!0,get:function(){var I,C;return this.isUnavailable?(I=this.data)==null?void 0:I.variantOptionUnavailableAccessibilityLabel:(C=this.data)==null?void 0:C.variantOptionAccessibilityLabel}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Za.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Za.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Za.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Za.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],Za.prototype,"displayType",void 0);
_.E([_.v("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Za.prototype,"isImageButton",null);_.E([_.v("displayType","data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Za.prototype,"isPillButton",null);_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Za.prototype,"isActive",null);
_.E([_.v("data"),_.d({reflectToAttribute:!0}),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Za.prototype,"isUnavailable",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Za.prototype,"thumbnailDetails",null);_.E([_.v("isUnavailable","data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Za.prototype,"accessibilityLabel",null);Za=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-option-renderer"})],Za);
_.Z(Za,"ytd-product-details-variant-option-renderer",function(){if(RPP!==void 0)return RPP;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return RPP=I},{mode:1});var btL;var Bd=function(){var I=_.q.apply(this,arguments)||this;I.variantsExpanded=!1;I.hideShowMoreLessVariantButton=!0;I.initialized=!1;I.computeVariantsDebouncer=null;I.computeVariants=function(C){C=C===void 0?!1:C;I.variantsExpanded||I.showOptions()||!C||(I.variantsExpanded=!0);if(I.variantsExpanded){C=_.T(I.items.children);for(var y=C.next();!y.done;y=C.next())y.value.hidden=!1}I.initialized=!0};
return I};
_.R(Bd,_.q);_.u=Bd.prototype;_.u.ready=function(){var I=this;setTimeout(function(){I.computeVariants(!0)})};
_.u.showOptions=function(){for(var I=_.T(this.items.children),C=I.next();!C.done;C=I.next())C.value.hidden=!0;var y=this.container.getBoundingClientRect().width,k=0,F=I=0;C=!1;for(var z=_.T(this.items.children),c=z.next();!c.done;c=z.next()){c=c.value;c.hidden=!1;var r=c.getBoundingClientRect().width;if(k+r<y)k+=r;else if(++F<2)k=r;else break;I+=1;c.hasAttribute("is-active")&&(C=!0)}for(y=I;y<this.items.children.length;y++)this.items.children[y].hidden=!0;this.hideShowMoreLessVariantButton=I===this.items.children.length;
return C};
_.u.debouncedComputeVariants=function(){this.computeVariantsDebouncer=_.on(this.computeVariantsDebouncer,_.EI.after(100),this.computeVariants)};
_.u.onShowMoreLessVariantsButtonClick=function(){var I;(I=this.data)!=null&&I.variantOptionRenderers&&(this.variantsExpanded=!this.variantsExpanded,this.computeVariants())};
_.u.configureRendererStamper=function(){return{"data.variantOptionRenderers":{id:"items",mapping:{productDetailsVariantOptionRenderer:{component:"ytd-product-details-variant-option-renderer",properties:{displayType:"[[displayType]]"}}}}}};
_.H1.Object.defineProperties(Bd.prototype,{selectedOptionName:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.variantOptionRenderers)==null?void 0:C.find(function(z){return _.l(z,JrH).variantOptionState==="VARIANT_OPTION_STATE_SELECTED"}),k,F;
return(F=(k=_.l(y,JrH))==null?void 0:k.name)!=null?F:""}},
displayType:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.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"}}}});
Bd.prototype.debouncedComputeVariants=Bd.prototype.debouncedComputeVariants;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Bd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Bd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Bd.prototype,"componentBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],Bd.prototype,"ironResizableBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Bd.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Bd.prototype,"variantsExpanded",void 0);_.E([_.d(),_.h("design:type",Object)],Bd.prototype,"hideShowMoreLessVariantButton",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Bd.prototype,"initialized",void 0);_.E([_.z$("#items"),_.h("design:type",HTMLDivElement)],Bd.prototype,"items",void 0);_.E([_.z$("#container"),_.h("design:type",HTMLDivElement)],Bd.prototype,"container",void 0);
_.E([_.z$("#more-variants-button"),_.h("design:type",HTMLElement)],Bd.prototype,"moreVariantsButton",void 0);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Bd.prototype,"selectedOptionName",null);_.E([_.FI("data","variantsExpanded"),_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Bd.prototype,"debouncedComputeVariants",null);
_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],Bd.prototype,"displayType",null);_.E([_.v("displayType"),_.h("design:type",Object),_.h("design:paramtypes",[])],Bd.prototype,"variantItemsClassname",null);Bd=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-variant-renderer"})],Bd);
_.Z(Bd,"ytd-product-details-variant-renderer",function(){if(btL!==void 0)return btL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return btL=I},{mode:1});var ED=function(){return _.q.apply(this,arguments)||this};
_.R(ED,_.q);
ED.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"}}}};
_.H1.Object.defineProperties(ED.prototype,{showPurchaseData:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.heroOfferRenderer)}},
showHeroOfferRenderer:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.heroOfferRenderer)}},
showBrandText:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.formattedByBrandText)}},
showOffers:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(C=_.l((I=this.data)==null?void 0:I.offersContainerRenderer,O4L))==null?void 0:C.offers;return y!==void 0&&(y==null?void 0:y.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 I,C,y;return((y=(I=this.data)==null?void 0:(C=I.variants)==null?void 0:C.map(function(k){var F,z;k=(z=(F=_.l(k,txY))==null?void 0:F.variantOptionRenderers)==null?void 0:z.find(function(r){var w;return((w=_.l(r,JrH))==null?void 0:w.variantOptionState)==="VARIANT_OPTION_STATE_SELECTED"});
var c;return(c=_.l(k,JrH))==null?void 0:c.name}).filter(function(k){return typeof k==="string"}))!=null?y:[]).join(" \u2022 ")}},
shoppingReportingButtonData:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k=(C=_.l((I=this.data)==null?void 0:I.shoppingFlaggingRenderer,MxL))==null?void 0:(y=C.reportButton)==null?void 0:y.buttonRenderer;if(k)return{text:k.text,command:k.command,icon:{iconType:"FLAG"},accessibilityData:k.accessibilityData,trackingParams:k.trackingParams,loggingDirectives:k.loggingDirectives}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ED.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ED.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ED.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ED.prototype,"data",void 0);_.E([_.z$("#image-carousel-renderer"),_.h("design:type",Object)],ED.prototype,"imageCarouselRenderer",void 0);
_.E([_.z$("#hero-offer-renderer"),_.h("design:type",Object)],ED.prototype,"productDetailsHeroOfferRenderer",void 0);_.E([_.z$("#variants"),_.h("design:type",Object)],ED.prototype,"productDetailsVariantRenderer",void 0);_.E([_.z$("#offers"),_.h("design:type",Object)],ED.prototype,"productDetailsOffersContainerRenderer",void 0);_.E([_.z$("#description-renderer"),_.h("design:type",Object)],ED.prototype,"productDetailsDescriptionRenderer",void 0);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showPurchaseData",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showHeroOfferRenderer",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showBrandText",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showOffers",null);
_.E([_.v("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showBuySeparator",null);_.E([_.v("showOffers","showPurchaseData"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],ED.prototype,"showBuyCard",null);_.E([_.v("data"),_.h("design:type",String),_.h("design:paramtypes",[])],ED.prototype,"selectedVariantsText",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ED.prototype,"shoppingReportingButtonData",null);
ED=_.E([_.m({disableElementRegistration:!0,is:"ytd-product-details-renderer"})],ED);
_.Z(ED,"ytd-product-details-renderer",function(){if($A8!==void 0)return $A8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $A8=I},{mode:1});var YzK;var GYS;var fVY;var hI=function(){return _.q.apply(this,arguments)||this};
_.R(hI,_.q);hI.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H1.Object.defineProperties(hI.prototype,{vcBalanceWidgetStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_BALANCE_WIDGET_STYLE_UNKNOWN"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hI.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hI.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],hI.prototype,"formattedAmount",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hI.prototype,"ariaLabel",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],hI.prototype,"vcBalanceWidgetStyle",null);hI=_.E([_.lT({is:"yt-vc-balance-renderer",disableElementRegistration:!0})],hI);
_.Z(hI,"yt-vc-balance-renderer",function(){if(fVY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;GYS===void 0&&(GYS=document.createElement("template"));var k=GYS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);fVY=I}I=fVY;return I},{mode:2});_.jz("vcBalanceRenderer","vcBalanceRenderer","ytd-vc-balance-renderer");var UD=function(){return _.q.apply(this,arguments)||this};
_.R(UD,_.q);_.H1.Object.defineProperties(UD.prototype,{formattedAmount:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.formattedAmount?this.vcBalanceEntity.formattedAmount:""}},
vcBalanceAriaLabel:{configurable:!0,enumerable:!0,get:function(){return this.vcBalanceEntity&&this.vcBalanceEntity.accessibilityFormattedAmount?this.vcBalanceEntity.accessibilityFormattedAmount:""}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],UD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],UD.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UD.prototype,"data",void 0);_.E([_.d({selectorArgs:["data.vcBalanceEntityKey"],selector:function(I,C){return _.cg(I.entities,"vcBalanceEntity",C)}}),
_.h("design:type",Object)],UD.prototype,"vcBalanceEntity",void 0);_.E([_.v("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],UD.prototype,"formattedAmount",null);_.E([_.v("vcBalanceEntity"),_.h("design:type",String),_.h("design:paramtypes",[])],UD.prototype,"vcBalanceAriaLabel",null);UD=_.E([_.m({disableElementRegistration:!0,is:"ytd-vc-balance-renderer"})],UD);
_.Z(UD,"ytd-vc-balance-renderer",function(){if(YzK!==void 0)return YzK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return YzK=I},{mode:1});var SzY;var Hd=function(){var I=_.q.apply(this,arguments)||this;I.rotation=0;I.isReloading=!1;return I};
_.R(Hd,_.q);Hd.prototype.rotationChanged=function(){this.icon.style.transform="rotate("+(this.rotation+180)+"deg)";this.icon.style.opacity=""+(.7/360*this.rotation+.3)};
Hd.prototype.reset=function(){this.hostElement.style.opacity=""};
Hd.prototype.close=function(){var I=this;return _.e(function(C){if(C.nextAddress==1)return _.n(C,I.hostElement.animate([{transform:"scale(1)",opacity:1},{transform:"scale(.4)",opacity:0}],{duration:150,easing:"cubic-bezier(.05, 0, 0, 1)"}).finished,2);I.hostElement.style.opacity="0";_.oI(C)})};
Hd.prototype.rotationChanged=Hd.prototype.rotationChanged;_.E([_.d(),_.h("design:type",Object)],Hd.prototype,"rotation",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Hd.prototype,"isReloading",void 0);_.E([_.z$("#icon"),_.h("design:type",HTMLElement)],Hd.prototype,"icon",void 0);_.E([_.FI("rotation"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Hd.prototype,"rotationChanged",null);
Hd=_.E([_.m({disableElementRegistration:!0,is:"ytd-refresh"})],Hd);
_.Z(Hd,"ytd-refresh",function(){if(SzY!==void 0)return SzY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return SzY=I},{mode:1});var K6R;var AFR;var g0R=function(I,C,y,k,F,z,c,r){this.minWidth=I;this.minHeight=C;this.recommendedWidth=y;this.recommendedHeight=k;this.JSC$19294_maxFileSize=F;this.title=z;this.bannerGalleryTitle=c;this.channelId=r;this.picker_=null;I=_.iXY("yt-banner");C=I.addView;y=(new ArM("youtubebanner")).addUploadMetadata("silo_id","19");y.opts.ytMaxFileSize=this.JSC$19294_maxFileSize;k=this.recommendedHeight;y.opts.ytRecWidth=this.recommendedWidth;y.opts.ytRecHeight=k;C.call(I,y);I.addView(new _.Va);C=I.addView;y=new _.Va;
y.opts.type="ytbanner";C.call(I,y.JSC$7947_setLabel(this.bannerGalleryTitle));C=I.setTitle(this.title).setSize(1E3);C.urlParamMap_.set("thumbs","orig");y=this.minWidth;k=this.minHeight;if(isNaN(y)||isNaN(k))throw Error("kb`"+y+"`"+k);C.urlParamMap_.set("minSize",y+"x"+k);C.urlParamMap_.set("cropMode","ytcb");this.builder_=I};
g0R.prototype.open=function(){var I=this;return new _.eN(function(C,y){_.QUm(I.builder_,function(k){k.action=="picked"?C(k):k.action=="cancel"&&y(Error("Wl"))});
I.picker_&&I.picker_.dispose();I.picker_=I.builder_.build();I.picker_.setVisible(!0)})};
g0R.prototype.dispose=function(){this.picker_&&(this.picker_.dispose(),this.picker_=null)};var v0S=function(I){this.channelId=I},W68=function(I,C){var y="";
C.viewToken&&(y=C.viewToken[2].type);var k=C.docs[0];C=k.crop;I={channel_id:I.channelId,fife_url:k.thumbnails[0].url,photo_id:k.id,is_gallery_image:y=="ytbanner"};C&&(I.crop_top=C.top,I.crop_right=C.right,I.crop_bottom=C.bottom,I.crop_left=C.left);return _.ptz("/channels_profile_ajax?action_update_banner_image=1",{method:"POST",postParams:I})};var tI=function(){var I=_.q.apply(this,arguments)||this;I.ariaLabel=null;return I};
_.R(tI,_.q);_.u=tI.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","button");this.hostElement.hasAttribute("tabindex")||this.hostElement.setAttribute("tabindex","0")};
_.u.detached=function(){this.picker&&this.picker.dispose()};
_.u.dataChanged=function(){this.uploader=this.picker=this.message=null};
_.u.computeAriaLabel=function(I){return I};
_.u.onTap=function(){var I=this,C;if((C=this.data)==null||!C.editBannerCommand){this.message=null;!this.picker&&this.data&&(this.picker=new g0R(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 y;(y=this.picker)==null||y.open().then(function(k){I.handleBannerPicked(k)},function(){})}};
_.u.handleBannerPicked=function(I){var C=this;this.uploader||(this.uploader=new v0S(this.data.channelId||""));this.message=this.data.uploadingText;W68(this.uploader,I).then(function(y){C.handleBannerUploadSucceeded(y)},function(y){C.handleBannerUploadFailed(y)})};
_.u.handleBannerUploadSucceeded=function(I){I&&I.errors?this.handleBannerUploadFailed(I):(_.k3(this.hostElement,"yt-banner-updated",I),this.message=null)};
_.u.handleBannerUploadFailed=function(I){this.message=I&&I.errors&&I.errors.length?I.errors[0]:null};
tI.prototype.dataChanged=tI.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],tI.prototype,"componentBehavior",void 0);_.E([_.g(_.Yr),_.h("design:type",Object)],tI.prototype,"ironButtonState",void 0);_.E([_.d(),_.h("design:type",Object)],tI.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.buttonLabel)"}),_.h("design:type",Object)],tI.prototype,"ariaLabel",void 0);
_.E([_.d(),_.h("design:type",Object)],tI.prototype,"message",void 0);_.E([_.d(),_.h("design:type",Object)],tI.prototype,"picker",void 0);_.E([_.d(),_.h("design:type",Object)],tI.prototype,"uploader",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tI.prototype,"dataChanged",null);tI=_.E([_.m({is:"ytd-channel-banner-editor-renderer",disableElementRegistration:!0})],tI);
_.Z(tI,"ytd-channel-banner-editor-renderer",function(){if(AFR!==void 0)return AFR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return AFR=I},{mode:1});var dAR;var xAP=_.hu(["#"]),JI=function(){return _.q.apply(this,arguments)||this};
_.R(JI,_.q);JI.prototype.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I,!0)||_.na(xAP)};
JI.prototype.dataChanged=function(){var I=this.data;I&&I.targetId&&_.vZb(_.oA(),I.targetId,this.moreIcon)};
JI.prototype.dataChanged=JI.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],JI.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],JI.prototype,"data",void 0);_.E([_.z$("#more-icon"),_.h("design:type",Object)],JI.prototype,"moreIcon",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],JI.prototype,"dataChanged",null);
JI=_.E([_.m({is:"ytd-channel-tagline-renderer",disableElementRegistration:!0})],JI);
_.Z(JI,"ytd-channel-tagline-renderer",function(){if(dAR!==void 0)return dAR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return dAR=I},{mode:1});var qzR;var OD=function(){return _.q.apply(this,arguments)||this};
_.R(OD,_.q);_.u=OD.prototype;_.u.ready=function(){var I=this;_.f(this.hostElement).querySelector("#form").addEventListener("submit",function(C){I.onSubmit(C)})};
_.u.onDataChanged=function(){var I;((I=this.data)==null?0:I.selected)&&this.ytdExpandableInputBehavior.setShowInput(!0)};
_.u.onIconButtonKeydown=function(I){I.keyCode===13&&this.iconButton.click()};
_.u.closeOnOutsideClickHandler=function(){this.set("data.expandedText","")};
_.u.openOnClickHandler=function(){this.input.focus()};
_.u.onSubmit=function(I){I.preventDefault();return!1};
_.u.submitOnEnterKeyUp=function(I){var C;if(I.keyCode===13&&((C=this.data)==null?0:C.expandedText)){I=this.data.endpoint;C=_.Le.unsafeClone(I);var y;((y=_.l(C==null?void 0:C.commandMetadata,_.It))==null?0:y.url)?(_.l(C.commandMetadata,_.It).url=_.gT(_.l(C.commandMetadata,_.It).url,"query",this.data.expandedText),_.l(C,_.rU)&&(_.l(C,_.rU).query=this.data.expandedText),_.k3(this.hostElement,"yt-navigate",{endpoint:C,tempData:{disableCache:!0}})):(y=new _.ph("Error: Trying to navigate to an endpoint without url",
I),_.GB(y))}};
_.u.updateDataExpandedTextFromBinding=function(I){this.set("data.expandedText",I.detail.value)};
OD.prototype.onDataChanged=OD.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],OD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.E5B),_.h("design:type",Object)],OD.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],OD.prototype,"data",void 0);_.E([_.z$("#input"),_.h("design:type",Object)],OD.prototype,"input",void 0);_.E([_.z$("#icon-button"),_.h("design:type",HTMLElement)],OD.prototype,"iconButton",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OD.prototype,"onDataChanged",null);OD=_.E([_.m({disableElementRegistration:!0,is:"ytd-expandable-tab-renderer"})],OD);
var XUL=_.MH()(OD,"ytd-expandable-tab-renderer",function(){if(qzR===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-expandable-tab-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-icon-button id="icon-button" label="[[data.title]]" on-click="openOnClick_" on-keydown="onIconButtonKeydown" class="style-scope ytd-expandable-tab-renderer">\n  <yt-icon icon="yt-icons:search" class="style-scope ytd-expandable-tab-renderer"></yt-icon>\n</yt-icon-button>\n<form id="form" action="[[data.endpoint.commandMetadata.webCommandMetadata.url]]" class="style-scope ytd-expandable-tab-renderer">\n  <tp-yt-paper-input id="input" autocomplete="off" label="[[data.title]]" max-length="100" name="query" no-label-float="" value="[[data.expandedText]]" on-keyup="submitOnEnterKeyUp" on-value-changed="updateDataExpandedTextFromBinding" class="style-scope ytd-expandable-tab-renderer">\n   </tp-yt-paper-input>\n</form>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);qzR=I}I=qzR;return I},{allowedProps:["data"],
callbackProps:["onYtNavigate"],mode:1});var mAL;var ZtR=_.hu(["#"]),aB=function(){return _.q.apply(this,arguments)||this};
_.R(aB,_.q);aB.prototype.computeHrefWithDefault=function(I){return this.ytComponentBehavior.computeHref_(I,!0)||_.na(ZtR)};
_.H1.Object.defineProperties(aB.prototype,{primaryLinkEndpoint:{configurable:!0,enumerable:!0,get:function(){var I;return _.Rj((I=this.data)==null?void 0:I.primaryLinkOnTap)}},
moreEndpoint:{configurable:!0,enumerable:!0,get:function(){var I;return _.Rj((I=this.data)==null?void 0:I.moreOnTap)}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],aB.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],aB.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],aB.prototype,"usePageHeaderStyle",void 0);_.E([_.v("data.primaryOnTap"),_.h("design:type",Object),_.h("design:paramtypes",[])],aB.prototype,"primaryLinkEndpoint",null);
_.E([_.v("data.moreOnTap"),_.h("design:type",Object),_.h("design:paramtypes",[])],aB.prototype,"moreEndpoint",null);aB=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-header-links-view-model"})],aB);
_.Z(aB,"ytd-channel-header-links-view-model",function(){if(mAL!==void 0)return mAL;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-channel-header-links-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-channel-header-links-view-model">\n  <yt-attributed-string id="first-link" data="[[data.firstLink]]" ellipsis-truncate="true" hidden="[[!data.firstLink]]" link-inherit-color="true" user-input="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <yt-attributed-string id="more" data="[[data.more]]" hidden="[[!data.more]]" link-inherit-color="true" no-wrap="true" class="style-scope ytd-channel-header-links-view-model">\n  </yt-attributed-string>\n  <a id="primary-link" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(primaryLinkEndpoint)]]" data="[[primaryLinkEndpoint]]" dir="ltr" hidden="[[!data.primaryLink]]">\n    [[data.primaryLink]]\n  </a>\n  <a id="suffix" class="yt-simple-endpoint style-scope ytd-channel-header-links-view-model" href$="[[computeHrefWithDefault(moreEndpoint)]]" data="[[moreEndpoint]]" hidden="[[!data.suffix]]">\n    [[data.suffix]]\n  </a>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mAL=I},{mode:1});var BwL;var MO=function(){var I=_.q.apply(this,arguments)||this;I.avatarSize=80;I.ariaLabel=_.PQ("EDIT_AVATAR_LABEL",void 0,"Edit channel icon");return I};
_.R(MO,_.q);MO.prototype.attached=function(){this.hostElement.setAttribute("role","button");this.hostElement.setAttribute("tabindex","0")};
MO.prototype.computeHref=function(I){var C;return((C=_.l(I,_.xo))==null?0:C.url)?this.componentBehavior.computeHref_(I):null};
MO.prototype.onTap=function(){var I,C;(I=this.data)==null||!I.editAvatarServiceEndpoint||((C=_.l(this.data.editAvatarServiceEndpoint,_.xo))==null?0:C.url)||_.N().resolve(_.ID).resolveCommand(this.data.editAvatarServiceEndpoint,{form:{element:this.hostElement}})};
_.E([_.g(_.Yr),_.h("design:type",Object)],MO.prototype,"ironButtonState",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],MO.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],MO.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],MO.prototype,"avatarSize",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],MO.prototype,"ariaLabel",void 0);MO=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-avatar-editor"})],MO);
_.Z(MO,"ytd-channel-avatar-editor",function(){if(BwL!==void 0)return BwL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return BwL=I},{mode:1});_.B9(_.OBb,"yt-tab-group-shape",{props:{shape:_.As}});var Iq=function(){var I=_.q.apply(this,arguments)||this;I.expandableCustomTabRenderable=function(C){return $WS(C,function(){return void I.onSearchNavigate()})};
I.isRichGrid=!1;I.richGridMiniMode=!1;I.actionMap={"yt-button-refresh-action":"handleButtonRefreshAction","yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-unsubscribe-action":"handleUnsubscribeAction","yt-window-resized":"onWindowResize"};return I};
_.R(Iq,_.q);_.u=Iq.prototype;_.u.areAllFalse=function(I,C,y){return!I&&!C&&!y};
_.u.updateJoinButtonOverrides=function(){var I;(I=_.f(this.hostElement).querySelector("#sponsor-button ytd-button-renderer"))==null||I.set("overrides",this.joinButtonOverrides)};
_.u.configureRendererStamper=function(){return{"data.purchaseButton":{id:"purchase-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.sponsorButton":{id:"sponsor-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[joinButtonOverrides]]"}}}},"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}},
"data.editChannelButtons":{id:"edit-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.otherButtons":{id:"other-buttons",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.tagline":{id:"channel-tagline",mapping:{channelTaglineRenderer:"ytd-channel-tagline-renderer"}},"data.headerLinks":{id:"channel-header-links",mapping:{channelHeaderLinksViewModel:{component:"ytd-channel-header-links-view-model",properties:{usePageHeaderStyle:"[[usePageHeaderStyle]]"}}}}}};
_.u.attached=function(){this.data&&this.dataChanged()};
_.u.computeHeaderDisabled=function(I,C){return C||!I};
_.u.handleButtonRefreshAction=function(I){(I=_.l(I,_.KAq))&&this.set("data.sponsorButton",I.membershipButton)};
_.u.handleInsertTabCommand=function(I){var C=_.l(I,C5y);C&&C.externalChannelId===this.data.channelId&&(C.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(y){return y.tabRenderer&&y.tabRenderer.tabIdentifier===C.tabIdentifier})||this.splice("tabs",C.tabIndex||-1,0,C.tab))};
_.u.handleRefreshChannelTabAction=function(I){var C,y=(C=this.tabs)==null?void 0:C.filter(function(z){var c;return(c=z.tabRenderer)==null?void 0:c.selected});
C=(y==null?void 0:y.length)===1?y[0]:void 0;var k;if((C==null?void 0:(k=C.tabRenderer)==null?void 0:k.tabIdentifier)===I){var F;_.k3(this.hostElement,"yt-navigate",{endpoint:(F=C.tabRenderer)==null?void 0:F.endpoint,tempData:{disableCache:!0}})}};
_.u.onWindowResize=function(){_.f(this.hostElement).querySelector("#header").fire("iron-resize")};
_.u.dataChanged=function(){var I=this.hasChannelArt;this.hasChannelArt=!1;if(this.data&&this.data.banner){var C=_.E5(this.data.banner.thumbnails,this.hostElement.clientWidth);C&&(C.indexOf("//")===0&&(C="https:"+C),this.hasChannelArt=!0,_.CK(this.hostElement,{"--yt-channel-banner":"url("+C+")"}))}this.hasChannelArt!==I&&_.f(this.hostElement).querySelector("#header").fire("iron-resize")};
_.u.onBannerUpdated=function(I,C){I=window.devicePixelRatio>1?C.hq_url:C.url;I.indexOf("//")===0&&(I="https:"+I);this.hasChannelArt=!0;_.CK(this.hostElement,{"--yt-channel-banner":"url("+I+")"})};
_.u.observeLightsourcePalette=function(){var I,C,y=(I=this.data)==null?void 0:(C=I.headerColorPalette)==null?void 0:C.lightsourceColorPaletteData;y&&_.N3(this.hostElement,y)};
_.u.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.u.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.u.handleUnsubscribeAction=function(){var I,C;((C=_.l((I=this.data)==null?void 0:I.sponsorButton,_.fZ))==null?void 0:C.style)==="STYLE_PRIMARY"&&_.f(this.hostElement).querySelector("#sponsor-button ytd-button-renderer").set("data.style","STYLE_SUGGESTIVE")};
_.u.onFocusedChanged=function(I){(I=_.m0(I))&&I.is==="tp-yt-paper-tab"&&I.hasRipple()&&(I.getRipple().holdDown=!I.pointerDown&&I.focused)};
_.u.updateSelectedFromBinding=function(I){this.ytdTabbedHeaderBehavior.selected=I.detail.value};
_.H1.Object.defineProperties(Iq.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b48(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasChannelHeaderLinks:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.data)==null?0:(C=I.headerLinks)==null?0:C.channelHeaderLinksViewModel)}},
subscribeKey:{configurable:!0,enumerable:!0,get:function(){return this.get("subscribeButton.subscribeButtonRenderer.subscribedEntityKey",this.data)}},
subscribed:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.subscriptionStateEntity)==null||!I.subscribed)}},
joinButtonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono",buttonType:this.subscribed?"filled":"tonal"}}},
useModernStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="C4_TABBED_HEADER_RENDERER_STYLE_MODERN"}},
usePageHeaderStyle:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.style)==="C4_TABBED_HEADER_RENDERER_STYLE_PAGE_HEADER"}},
avatarSize:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?160:this.useModernStyle?128:80}},
shouldInlineChannelName:{configurable:!0,enumerable:!0,get:function(){var I=this.channelHandleDisplayStyle;return I==="MODERN"||I==="PAGE_HEADER"}},
hideBannerEndpoint:{configurable:!0,enumerable:!0,get:function(){var I;return this.usePageHeaderStyle||!((I=this.data)==null?0:I.bannerLinkEndpoint)}},
hideBannerVisibleArea:{configurable:!0,enumerable:!0,get:function(){var I;return this.usePageHeaderStyle||!((I=this.data)==null||!I.bannerLinkEndpoint)}},
showBannerEditor:{configurable:!0,enumerable:!0,get:function(){var I;return!!_.l((I=this.data)==null?void 0:I.bannerEditor,h_j)}},
bannerEffects:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:"parallax-background"}},
effectsConfig:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle?null:{"parallax-background":{scalar:.5}}}},
shouldShowPageHeaderBanner:{configurable:!0,enumerable:!0,get:function(){return this.usePageHeaderStyle&&!!this.hasChannelArt}},
isChannelHandlePresent:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.channelHandleText)}},
channelHandleDisplayStyle:{configurable:!0,enumerable:!0,get:function(){return this.isChannelHandlePresent?this.usePageHeaderStyle?"PAGE_HEADER":this.useModernStyle?"MODERN":"CLASSIC":"NOT_AVAILABLE"}},
shouldShowChannelPronouns:{configurable:!0,enumerable:!0,get:function(){var I;return _.V("enable_view_pronouns_on_main_app")&&!((I=this.data)==null||!I.channelPronouns)}},
shouldShowSubscriberCount:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.subscriberCountText)}},
shouldShowVideosCount:{configurable:!0,enumerable:!0,get:function(){var I;return(this.useModernStyle||this.usePageHeaderStyle)&&!((I=this.data)==null||!I.videosCountText)}}});
Iq.prototype.observerRichGridItemsPerRow=Iq.prototype.observerRichGridItemsPerRow;Iq.prototype.observeLightsourcePalette=Iq.prototype.observeLightsourcePalette;Iq.prototype.onBannerUpdated=Iq.prototype.onBannerUpdated;Iq.prototype.dataChanged=Iq.prototype.dataChanged;Iq.prototype.updateJoinButtonOverrides=Iq.prototype.updateJoinButtonOverrides;_.E([_.g(_.bZ),_.h("design:type",Object)],Iq.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.g(sTM),_.h("design:type",Object)],Iq.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Iq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Iq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Iq.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],Iq.prototype,"ytdReduxBehavior",void 0);_.E([_.z$("#tabs"),_.h("design:type",Object)],Iq.prototype,"tabsElement",void 0);_.E([_.d(),_.h("design:type",Array)],Iq.prototype,"tabs",void 0);_.E([_.v("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"tabGroupShape",null);_.E([_.d(),_.h("design:type",Object)],Iq.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Iq.prototype,"isRichGrid",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Object)],Iq.prototype,"richGridMiniMode",void 0);_.E([_.d({selector:_.Y9}),_.h("design:type",Number)],Iq.prototype,"richGridItemsPerRow",void 0);_.E([_.d(),_.h("design:type",Object)],Iq.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Iq.prototype,"hasChannelArt",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"hasChannelHeaderLinks",null);_.E([_.d({selector:_.GAL,reflectToAttribute:!0}),_.h("design:type",Boolean)],Iq.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"subscribeKey",null);
_.E([_.d({selectorArgs:["subscribeKey"],selector:_.CM}),_.h("design:type",Object)],Iq.prototype,"subscriptionStateEntity",void 0);_.E([_.v("subscriptionStateEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"subscribed",null);_.E([_.v("subscribed"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"joinButtonOverrides",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"useModernStyle",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"usePageHeaderStyle",null);_.E([_.v("useModernStyle","usePageHeaderStyle"),_.h("design:type",Number),_.h("design:paramtypes",[])],Iq.prototype,"avatarSize",null);
_.E([_.v("channelHandleDisplayStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"shouldInlineChannelName",null);_.E([_.v("data","usePageHeaderStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"hideBannerEndpoint",null);_.E([_.v("data","usePageHeaderStyle"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"hideBannerVisibleArea",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"showBannerEditor",null);_.E([_.v("usePageHeaderStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"bannerEffects",null);_.E([_.v("usePageHeaderStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Iq.prototype,"effectsConfig",null);_.E([_.v("usePageHeaderStyle","hasChannelArt"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"shouldShowPageHeaderBanner",null);
_.E([_.v("data.channelHandleText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"isChannelHandlePresent",null);_.E([_.v("isChannelHandlePresent","useModernStyle","usePageHeaderStyle"),_.h("design:type",String),_.h("design:paramtypes",[])],Iq.prototype,"channelHandleDisplayStyle",null);_.E([_.v("data.channelPronouns"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"shouldShowChannelPronouns",null);
_.E([_.v("data.subscriberCountText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"shouldShowSubscriberCount",null);_.E([_.v("useModernStyle","data.videosCountText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Iq.prototype,"shouldShowVideosCount",null);_.E([_.FI("joinButtonOverrides"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iq.prototype,"updateJoinButtonOverrides",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iq.prototype,"dataChanged",null);_.E([_.km("yt-banner-updated"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Iq.prototype,"onBannerUpdated",null);_.E([_.FI("data.headerColorPalette.lightsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iq.prototype,"observeLightsourcePalette",null);
_.E([_.FI("richGridItemsPerRow","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Iq.prototype,"observerRichGridItemsPerRow",null);Iq=_.E([_.m({is:"ytd-c4-tabbed-header-renderer",disableElementRegistration:!0})],Iq);
_.Z(Iq,"ytd-c4-tabbed-header-renderer",function(){if(K6R!==void 0)return K6R;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-c4-tabbed-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-c4-tabbed-header-renderer"><tp-yt-app-header id="header" slot="header" condenses="" disabled="[[computeHeaderDisabled(active, guideIsVisibleButNotPersistent)]]" effects="[[bannerEffects]]" effects-config="[[effectsConfig]]" fixed="" class="style-scope ytd-c4-tabbed-header-renderer"><a class="banner-visible-area yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" aria-label$="[[data.banner.accessibility.accessibilityData.label]]" data="[[data.bannerLinkEndpoint]]" hidden="[[hideBannerEndpoint]]" href="[[computeHref_(data.bannerLinkEndpoint)]]"></a><template is="dom-if" if="[[!hideBannerVisibleArea]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="banner-visible-area style-scope ytd-c4-tabbed-header-renderer"><div id="banner-editor" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><template is="dom-if" if="[[shouldShowPageHeaderBanner]]" class="style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-sizer style-scope ytd-c4-tabbed-header-renderer"><div class="page-header-banner-image style-scope ytd-c4-tabbed-header-renderer"></div><template is="dom-if" if="[[showBannerEditor]]" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-banner-editor-renderer data="[[data.bannerEditor.channelBannerEditorRenderer]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-banner-editor-renderer></template></div></div></template><div id="channel-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header" class="style-scope ytd-c4-tabbed-header-renderer"><div id="channel-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow id="avatar" hidden="[[data.editAvatarServiceEndpoint]]" thumbnail="[[data.avatar]]" width="[[avatarSize]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><ytd-channel-avatar-editor id="avatar-editor" avatar-size="[[avatarSize]]" data="[[data]]" disable-upgrade$="[[!data.editAvatarServiceEndpoint]]" hidden="[[!data.editAvatarServiceEndpoint]]" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-avatar-editor><div id="inner-header-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="meta" class="style-scope ytd-c4-tabbed-header-renderer"><ytd-channel-name id="channel-name" badges="[[data.badges]]" channel-name="[[data.title]]" has-channel-art="[[hasChannelArt]]" wrap-text="" class="style-scope ytd-c4-tabbed-header-renderer"></ytd-channel-name><p hidden="[[!equals(channelHandleDisplayStyle, \'CLASSIC\')]]" class="style-scope ytd-c4-tabbed-header-renderer"><yt-formatted-string id="channel-handle" class="meta-item style-scope ytd-c4-tabbed-header-renderer" respect-lang-dir="" text="[[data.channelHandleText]]"></yt-formatted-string></p><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldInlineChannelName]]"><yt-formatted-string id="channel-handle" respect-lang-dir="" text="[[data.channelHandleText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowChannelPronouns, shouldShowSubscriberCount, shouldShowVideosCount)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowChannelPronouns]]"><yt-formatted-string id="channel-pronouns" text="[[data.channelPronouns]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[areAllFalse(shouldShowSubscriberCount, shouldShowVideosCount, false)]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowSubscriberCount]]"><yt-formatted-string id="subscriber-count" text="[[data.subscriberCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string><span aria-hidden="true" class="delimiter style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]">\u2027</span></span><span class="meta-item style-scope ytd-c4-tabbed-header-renderer" hidden="[[!shouldShowVideosCount]]"><yt-formatted-string id="videos-count" text="[[data.videosCountText]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></span><div id="channel-tagline" class="style-scope ytd-c4-tabbed-header-renderer"></div><div id="channel-header-links" class="style-scope ytd-c4-tabbed-header-renderer"></div></div><div id="buttons" class="style-scope ytd-c4-tabbed-header-renderer"><div id="purchase-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="subscribe-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="sponsor-button" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="edit-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div><div id="other-buttons" class="channel-action style-scope ytd-c4-tabbed-header-renderer"></div></div></div></div><div id="links-holder" class="style-scope ytd-c4-tabbed-header-renderer"><div id="primary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.primaryLinks]]" as="primaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint container style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(primaryLink.navigationEndpoint)]]" data="[[primaryLink.navigationEndpoint]]" title$="[[getSimpleString(primaryLink.title)]]"><div class="icon-container style-scope ytd-c4-tabbed-header-renderer"><yt-img-shadow height="16" thumbnail="[[primaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow><yt-formatted-string text="[[primaryLink.title]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-formatted-string></div></a></template></div><div id="secondary-links" class="style-scope ytd-c4-tabbed-header-renderer"><template is="dom-repeat" items="[[data.headerLinks.channelHeaderLinksRenderer.secondaryLinks]]" as="secondaryLink" class="style-scope ytd-c4-tabbed-header-renderer"><a class="yt-simple-endpoint style-scope ytd-c4-tabbed-header-renderer" href$="[[computeHref_(secondaryLink.navigationEndpoint)]]" data="[[secondaryLink.navigationEndpoint]]" title$="[[getSimpleString(secondaryLink.title)]]"><yt-img-shadow height="16" thumbnail="[[secondaryLink.icon]]" width="16" class="style-scope ytd-c4-tabbed-header-renderer"></yt-img-shadow></a></template></div></div></div></div><tp-yt-app-toolbar sticky="" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-inner-container" class="style-scope ytd-c4-tabbed-header-renderer"><div id="tabs-divider" class="style-scope ytd-c4-tabbed-header-renderer"></div><tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-c4-tabbed-header-renderer"><yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-c4-tabbed-header-renderer"></yt-tab-group-shape></tp-yt-paper-tabs></div></div></tp-yt-app-toolbar></tp-yt-app-header></tp-yt-app-header-layout>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return K6R=I},{mode:1});var E0R;var CY=function(){return _.q.apply(this,arguments)||this};
_.R(CY,_.q);CY.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"}}}};
CY.prototype.dataChanged=function(){if(this.data){var I=this.hasBannerArt;this.hasBannerArt=!1;if(this.data&&this.data.banner){var C=_.E5(this.data.banner.thumbnails,this.hostElement.clientWidth);C&&(C.indexOf("//")===0&&(C="https:"+C),this.hasBannerArt=!0,_.CK(this.hostElement,{"--ytd-interactive-tabbed-header-renderer-banner-url":"url("+C+")"}))}this.hasBannerArt!==I&&_.f(this.hostElement).querySelector("#header").fire("iron-resize")}};
CY.prototype.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
CY.prototype.dataChanged=CY.prototype.dataChanged;_.E([_.g(sTM),_.h("design:type",Object)],CY.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],CY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.bZ),_.h("design:type",Object)],CY.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],CY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],CY.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CY.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],CY.prototype,"selected",void 0);_.E([_.d(),_.h("design:type",Boolean)],CY.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],CY.prototype,"hasBannerArt",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CY.prototype,"dataChanged",null);CY=_.E([_.m({is:"ytd-interactive-tabbed-header-renderer",disableElementRegistration:!0})],CY);
_.Z(CY,"ytd-interactive-tabbed-header-renderer",function(){if(E0R!==void 0)return E0R;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return E0R=I},{mode:1});var hPY;var s9=function(){return _.q.apply(this,arguments)||this};
_.R(s9,_.q);s9.prototype.configureRendererStamper=function(){return{"data.leftActions":{id:"left-actions",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.actions":{id:"actions",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
s9.prototype.computeActionsAlignment=function(I){return(I==null?void 0:I.actionsAlignment)||""};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],s9.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],s9.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],s9.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeActionsAlignment(data)"}),_.h("design:type",String)],s9.prototype,"actionsAlignment",void 0);
s9=_.E([_.m({is:"ytd-page-footer-renderer",disableElementRegistration:!0})],s9);
_.Z(s9,"ytd-page-footer-renderer",function(){if(hPY!==void 0)return hPY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hPY=I},{mode:1});var UAR;var HtB;var oq=function(){var I=_.q.apply(this,arguments)||this;I.isEditing=!1;I.useSlot=!1;I.isMultiline=!1;return I};
_.R(oq,_.q);_.u=oq.prototype;_.u.onKeydown=function(I){if(I.keyCode===13&&!this.isMultiline)this.onSave();else if(I.keyCode===27)this.onCancel()};
_.u.computeComponentStyle=function(I){return(I==null?0:I.style)?I.style:"INLINE_FORM_STYLE_UNKNOWN"};
_.u.computeisMultiline=function(I){if(this.multilineOverride!==void 0)return this.multilineOverride;var C,y;return!!(I==null?0:(C=I.formField)==null?0:(y=C.textInputFormFieldRenderer)==null?0:y.isMultiline)};
_.u.computeTextDisplayed=function(I,C){if(I)return I;if(C)return C};
_.u.onEdit=function(){this.isEditing=!0;this.textForm.focusTextInput()};
_.u.onSave=function(){if(this.textForm.validate()){this.textForm.save();var I=this.textForm.value;if(I)this.set("data.textDisplayed",_.Ee(I));else{var C;((C=this.data)==null?0:C.placeholder)&&this.set("data.textDisplayed",this.data.placeholder)}this.hostElement.dispatchEvent(new _.Gd("inline-form-changed",this.data));this.isEditing=!1}};
_.u.onCancel=function(){var I=_.hS(this.data.textDisplayed);I===this.data.placeholder?this.textForm.reset(""):this.textForm.reset(I);this.isEditing=!1};
oq.prototype.onKeydown=oq.prototype.onKeydown;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],oq.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],oq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],oq.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],oq.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],oq.prototype,"isEditing",void 0);_.E([_.d(),_.h("design:type",Object)],oq.prototype,"useSlot",void 0);_.E([_.d(),_.h("design:type",Boolean)],oq.prototype,"multilineOverride",void 0);_.E([_.d(),_.h("design:type",Boolean)],oq.prototype,"enableOverlayTheme",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeComponentStyle(data)"}),_.h("design:type",String)],oq.prototype,"componentStyle",void 0);
_.E([_.d({computed:"computeisMultiline(data)"}),_.h("design:type",Object)],oq.prototype,"isMultiline",void 0);_.E([_.z$("#text-form"),_.h("design:type",Object)],oq.prototype,"textForm",void 0);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],oq.prototype,"onKeydown",null);oq=_.E([_.m({is:"ytd-inline-form-renderer",disableElementRegistration:!0})],oq);
_.Z(oq,"ytd-inline-form-renderer",function(){if(HtB!==void 0)return HtB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return HtB=I},{mode:1});var tMR;var k7=function(){var I=_.q.apply(this,arguments)||this;I.previousSelectValue=void 0;I.selectedItemMessage=void 0;return I};
_.R(k7,_.q);k7.prototype.detached=function(){this.selectedItemMessage=this.previousSelectValue=void 0};
k7.prototype.selectedValueChanged=function(){if(this.selectedValue!==void 0){var I,C,y,k,F=(I=this.data)==null?void 0:(C=I.dropdown)==null?void 0:(y=C.dropdownRenderer)==null?void 0:(k=y.entries)==null?void 0:k.map(function(r){return r.privacyDropdownItemRenderer});
I=_.T(F!=null?F:[]);for(C=I.next();!C.done;C=I.next())if((C=C.value)&&C.int32Value===this.selectedValue){this.selectedItemMessage=C.itemMessage;break}}else this.selectedItemMessage=void 0;var z;(z=this.onValueChanged)==null||z.call(this);if(this.selectedValue!==-1)if(this.previousSelectValue===void 0)this.previousSelectValue=this.selectedValue;else if(this.previousSelectValue!==this.selectedValue){var c;(c=this.data)!=null&&c.key&&this.data.onChange&&(this.set(this.data.key,this.selectedValue,this.data.onChange),
this.ytComponentBehavior.resolveCommand(this.data.onChange),this.previousSelectValue=this.selectedValue)}};
k7.prototype.onValueChangedForSelectedValue=function(I){this.selectedValue=I.detail.value};
k7.prototype.selectedValueChanged=k7.prototype.selectedValueChanged;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],k7.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],k7.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],k7.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],k7.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],k7.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],k7.prototype,"theme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Number)],k7.prototype,"selectedValue",void 0);_.E([_.d(),_.h("design:type",Function)],k7.prototype,"onValueChanged",void 0);
_.E([_.rW("selectedValue"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],k7.prototype,"selectedValueChanged",null);k7=_.E([_.m({is:"ytd-dropdown-form-field-renderer",disableElementRegistration:!0})],k7);
_.Z(k7,"ytd-dropdown-form-field-renderer",function(){if(tMR!==void 0)return tMR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tMR=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var JFR;var FD=function(){return _.q.apply(this,arguments)||this};
_.R(FD,_.q);_.H1.Object.defineProperties(FD.prototype,{byline:{configurable:!0,enumerable:!0,get:function(){for(var I=[],C=_.T(this.data||[]),y=C.next();!y.done;y=C.next())(y=_.l(y.value,IVH))&&I.push(y);return I}}});
_.E([_.d(),_.h("design:type",Array)],FD.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],FD.prototype,"byline",null);FD=_.E([_.m({is:"ytd-playlist-byline-renderer",disableElementRegistration:!0})],FD);
_.Z(FD,"ytd-playlist-byline-renderer",function(){if(JFR!==void 0)return JFR;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return JFR=I},{mode:1});var OtK;var uQ=function(){var I=_.q.apply(this,arguments)||this;I.rtlBullet=_.V("web_playlist_stats_rtl_bullet_icon_killswitch");I.modern=_.V("web_modern_buttons");I.actionMap={"yt-update-playlist-action":"onUpdatePlaylistAction"};return I};
_.R(uQ,_.q);_.u=uQ.prototype;_.u.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"}}}}};
_.u.attached=function(){};
_.u.computeIsCustomThumbnail=function(I){return I?!!I.playlistCustomThumbnailRenderer:!1};
_.u.onYtNavigate=function(I,C){if(C&&C.actions&&C.actions.indexOf("shuffle")>-1){I=_.N().resolve(_.Gk);var y=C.tempData||{};y.watch_params=this.get("menu.menuRenderer.topLevelButtons[1].buttonRenderer.navigationEndpoint.watchEndpoint.params",this.data);C.tempData=y;I.isShuffleNextPlaylist=!0}};
_.u.onUpdatePlaylistAction=function(I){var C;I=(C=_.l(I,_.Ahd))==null?void 0:C.updatedRenderer;if(C=_.l(I,V2))this.data=C};
_.u.computeStyleType=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeThumbnailWidth=function(I){return I==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"?412:357};
_.u.computeHideThumbnailAria=function(I){if(I==null?0:I.thumbnailOverlays)for(var C=0;C<I.thumbnailOverlays.length;C++){var y=void 0;if((y=I.thumbnailOverlays[C])==null?0:y.tvfilmShowWatchForwardOverlayRenderer)return!1}return!0};
uQ.prototype.onYtNavigate=uQ.prototype.onYtNavigate;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],uQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],uQ.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],uQ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"rtlBullet",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeStyleType(data.style)"}),_.h("design:type",String)],uQ.prototype,"styleType",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeThumbnailWidth(data.style)"}),_.h("design:type",Number)],uQ.prototype,"thumbnailWidth",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],uQ.prototype,"modern",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsCustomThumbnail(data.thumbnailRenderer)"}),_.h("design:type",Boolean)],uQ.prototype,"isCustomThumbnail",void 0);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],uQ.prototype,"onYtNavigate",null);
uQ=_.E([_.m({is:"ytd-playlist-sidebar-primary-info-renderer",disableElementRegistration:!0})],uQ);
_.Z(uQ,"ytd-playlist-sidebar-primary-info-renderer",function(){if(OtK!==void 0)return OtK;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OtK=I},{mode:1});var aVY;var zz=function(){return _.q.apply(this,arguments)||this};
_.R(zz,_.q);zz.prototype.computeOwnerVisibility=function(I){return!(!I.videoOwner&&!I.button)};
zz.prototype.configureRendererStamper=function(){return{"data.videoOwner":{id:"video-owner",mapping:{videoOwnerRenderer:"ytd-video-owner-renderer"}},"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer",subscriptionNotificationToggleButtonRenderer:"ytd-subscription-notification-toggle-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zz.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zz.prototype,"data",void 0);zz=_.E([_.m({is:"ytd-playlist-sidebar-secondary-info-renderer",disableElementRegistration:!0})],zz);
_.Z(zz,"ytd-playlist-sidebar-secondary-info-renderer",function(){if(aVY!==void 0)return aVY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return aVY=I},{mode:1});var MMy;var Tz=function(){var I=_.q.apply(this,arguments)||this;I.expanded=!1;I.isCompact=!1;return I};
_.R(Tz,_.q);_.u=Tz.prototype;_.u.attached=function(){this.ytdAutoScrollBehavior.scrollTarget=this.text};
_.u.dataChanged=function(){this.data&&_.SO(_.f(this.text),_.Z5w(_.hbd,_.hS(this.data.text||null)))};
_.u.computeAutoScrollEnabled=function(I,C){return I&&!C};
_.u.expandedChanged=function(){this.expanderIcon.icon="yt-icons:expand-"+(this.expanded?"less":"more")};
_.u.toggleOnTap=function(){this.expanded=!this.expanded};
Tz.prototype.expandedChanged=Tz.prototype.expandedChanged;Tz.prototype.dataChanged=Tz.prototype.dataChanged;_.E([_.g(_.ZCH),_.h("design:type",Object)],Tz.prototype,"ytdAutoScrollBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Tz.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Tz.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tz.prototype,"expanded",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Tz.prototype,"isCompact",void 0);_.E([_.d({computed:"computeAutoScrollEnabled(data.autoscroll, expanded)"}),_.h("design:type",Boolean)],Tz.prototype,"autoScrollEnabled",void 0);_.E([_.z$("#text"),_.h("design:type",Object)],Tz.prototype,"text",void 0);_.E([_.z$("#expander-icon"),_.h("design:type",Object)],Tz.prototype,"expanderIcon",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tz.prototype,"dataChanged",null);_.E([_.FI("expanded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Tz.prototype,"expandedChanged",null);Tz=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-legal-info-renderer"})],Tz);
_.Z(Tz,"ytd-channel-legal-info-renderer",function(){if(MMy!==void 0)return MMy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return MMy=I},{mode:1});var IXS;var CSY=_.PQ("DOWNLOAD",{},"Download"),sXH=_.PQ("DOWNLOADING",{},"Downloading"),oQK=_.PQ("DOWNLOADED",{},"Downloaded"),cu=function(){var I=_.q.apply(this,arguments)||this;I.downloadProgress=0;I.isDownloadComplete=!1;I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.R(cu,_.q);_.u=cu.prototype;_.u.attached=function(){this.hostElement.hasAttribute("button-renderer")||this.hostElement.setAttribute("button-renderer","true")};
_.u.dataChanged=function(){var I;(I=this.data)!=null&&I.tooltip||(I=_.AS(_.Hg().getState(),this.playlistId),this.updateButtonState(I))};
_.u.computePlaylistId=function(I){return I};
_.u.onTransferStateChanged=function(){this.updateButtonState(this.transferState)};
_.u.updateButtonState=function(I){if(this.data&&(this.data.tooltip!==sXH||!_.px(I))){this.isDownloadComplete=!1;switch(I){case "TRANSFER_STATE_UNKNOWN":I=CSY;var C="OFFLINE_DOWNLOAD";var y="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_COMPLETE":I=oQK;C="OFFLINE_PIN";y="ACTION_REMOVE_WITH_PROMPT";this.isDownloadComplete=!0;break;case "TRANSFER_STATE_PRE_TRANSFER":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":case "TRANSFER_STATE_TRANSFERRING":I=sXH;C="OFFLINE_DOWNLOADING_ZERO";y="ACTION_REMOVE_WITH_PROMPT";
break;default:I=CSY,C="OFFLINE_DOWNLOAD",y="ACTION_ADD"}var k=Object.assign({},this.data);k.tooltip=I;k.accessibilityData={accessibilityData:{label:I}};k.icon={iconType:C};k.size="SIZE_DEFAULT";_.l(k.command,_.zU)&&(_.l(k.command,_.zU).action=y);this.set("data",k)}};
_.u.updateProgress=function(){if(this.data&&this.transferState!=="TRANSFER_STATE_COMPLETE"){this.isDownloadComplete=!1;var I="OFFLINE_DOWNLOAD";this.downloadProgress>0&&this.downloadProgress<=.1?I="OFFLINE_DOWNLOADING_ZERO":this.downloadProgress>.1&&this.downloadProgress<=.3?I="OFFLINE_DOWNLOADING_TWENTY":this.downloadProgress>.3&&this.downloadProgress<=.5?I="OFFLINE_DOWNLOADING_FORTY":this.downloadProgress>.5&&this.downloadProgress<=.7?I="OFFLINE_DOWNLOADING_SIXTY":this.downloadProgress>.7&&this.downloadProgress<
1?I="OFFLINE_DOWNLOADING_EIGHTY":this.downloadProgress===1&&(I="OFFLINE_PIN",this.isDownloadComplete=!0);var C;I!==((C=this.data.icon)==null?void 0:C.iconType)&&(C=Object.assign({},this.data),C.tooltip=sXH,C.accessibilityData={accessibilityData:{label:sXH}},C.icon={iconType:I},_.l(C.command,_.zU)&&(_.l(C.command,_.zU).action="ACTION_REMOVE_WITH_PROMPT"),this.set("data",C))}};
cu.prototype.updateProgress=cu.prototype.updateProgress;cu.prototype.onTransferStateChanged=cu.prototype.onTransferStateChanged;cu.prototype.dataChanged=cu.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cu.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],cu.prototype,"ytdReduxBehavior",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"forceIconButton",void 0);
_.E([_.d({value:!0}),_.h("design:type",Boolean)],cu.prototype,"forceIconOnly",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"overrides",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"buttonTooltipPosition",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"styleActionButton",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"disableTextTransform",void 0);
_.E([_.d({computed:"computePlaylistId(data.command.offlinePlaylistEndpoint.playlistId)"}),_.h("design:type",String)],cu.prototype,"playlistId",void 0);_.E([_.d(),_.h("design:type",Object)],cu.prototype,"data",void 0);_.E([_.d({selector:_.VVO,selectorArgs:["playlistId"]}),_.h("design:type",Object)],cu.prototype,"downloadProgress",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],cu.prototype,"isDownloadComplete",void 0);
_.E([_.d({selector:_.AS,selectorArgs:["playlistId"]}),_.h("design:type",String)],cu.prototype,"transferState",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],cu.prototype,"showTooltips",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],cu.prototype,"sendCommandWhenDisabled",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],cu.prototype,"disabled",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cu.prototype,"dataChanged",null);_.E([_.rW("transferState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cu.prototype,"onTransferStateChanged",null);_.E([_.rW("downloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cu.prototype,"updateProgress",null);
cu=_.E([_.m({disableElementRegistration:!0,is:"ytd-download-playlist-button-renderer"})],cu);
_.Z(cu,"ytd-download-playlist-button-renderer",function(){if(IXS!==void 0)return IXS;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return IXS=I},{mode:1});var yHy;_.B9(_.vx,"thumbnail-overlay-button-view-model",{props:{data:_.As,lockupExperiments:_.As}});var ew=function(){var I=_.q.apply(this,arguments)||this;I.isSquare=!1;I.isVertical=!1;return I};
_.R(ew,_.q);ew.prototype.computeIsSquare=function(I){return I!=null&&I.thumbnail?lcy(I.thumbnail)==="SQUARE":!1};
ew.prototype.computeIsVertical=function(I){return I!=null&&I.thumbnail?lcy(I.thumbnail)==="VERTICAL":!1};
ew.prototype.configureRendererStamper=function(){return{"data.thumbnailOverlays":{id:"overlays",mapping:{thumbnailOverlayHoverTextRenderer:"ytd-thumbnail-overlay-hover-text-renderer",thumbnailOverlayButtonViewModel:"thumbnail-overlay-button-view-model"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ew.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ew.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsSquare(data)"}),_.h("design:type",Object)],ew.prototype,"isSquare",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsVertical(data)"}),_.h("design:type",Object)],ew.prototype,"isVertical",void 0);
_.E([_.d(),_.h("design:type",Object)],ew.prototype,"data",void 0);ew=_.E([_.m({disableElementRegistration:!0,is:"ytd-hero-playlist-thumbnail-renderer"})],ew);
_.Z(ew,"ytd-hero-playlist-thumbnail-renderer",function(){if(yHy!==void 0)return yHy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return yHy=I},{mode:1});var rq=function(){var I=_.q.apply(this,arguments)||this;I.isDarkTheme=!1;I.isUltraWide=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction","yt-window-resized":"onWindowResize"};return I};
_.R(rq,_.q);_.u=rq.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");_.N();var I;(I=_.N().resolve(_.aU(_.vb)))!=null&&(I.headerElement=this.hostElement)};
_.u.detached=function(){var I;(I=_.N().resolve(_.aU(_.vb)))!=null&&(I.headerElement=void 0)};
_.u.onUpdateHeader=function(I){(I=I.detail)&&this.set("data",I)};
_.u.computeTextDisplayed=function(I){if(I)return I.textDisplayed?I.textDisplayed:I.placeholder};
_.u.gradientColorToLinearGradientStop=function(I){var C=this.isDarkTheme?I.darkThemeColor:I.lightThemeColor;return C?_.Xl(C)+" "+((I==null?void 0:I.startLocation)||0)*100+"%":"transparent"};
_.u.onWindowResize=function(){var I;((I=this.data)==null?0:I.descriptionForm)?this.editableDescriptionInlineExpander.resize():this.descriptionInlineExpander.resize()};
_.u.onIronResize=function(I){this.isUltraWide=!I.detail.value};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.onUpdatePlaylistName=function(I){var C=this;this.set("data.titleForm.inlineFormRenderer",Object.assign({},I.detail.value));_.hn(this,function(){var y;(y=C.editableTitle)==null||y.resize()})};
_.u.onUpdatePlaylistDescription=function(I){var C=this;this.set("data.descriptionForm.inlineFormRenderer",Object.assign({},I.detail.value));_.hn(this,function(){var y;(y=C.editableDescriptionInlineExpander)==null||y.resize()})};
_.u.getCinematicData=function(I){return _.l(I==null?void 0:I.cinematicContainer,_.Pd)};
_.H1.Object.defineProperties(rq.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 I,C=(I=this.getCinematicData(this.data))==null?void 0:I.config;return(I=this.isDarkTheme?C==null?void 0:C.darkThemeBackgroundColor:C==null?void 0:C.lightThemeBackgroundColor)?"background-color:"+_.lg(I)+";":"background-color:transparent;"}},
descriptionFormData:{configurable:!0,enumerable:!0,get:function(){var I;return _.l((I=this.data)==null?void 0:I.descriptionForm,UWR)}},
getDropdownTheme:{configurable:!0,enumerable:!0,get:function(){return this.noCinematicData?"":"WHITE_THEME"}},
gradientStyle:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y,k;return"background:linear-gradient(to bottom, "+(((k=(C=this.getCinematicData(this.data))==null?void 0:(y=C.gradientColorConfig)==null?void 0:y.map(function(F){return I.gradientColorToLinearGradientStop(F)}))==null?void 0:k.join(", "))+");")}},
descriptionTapText:{configurable:!0,enumerable:!0,get:function(){var I;return _.hS((I=this.data)==null?void 0:I.descriptionTapText)}}});
rq.prototype.onUpdateHeader=rq.prototype.onUpdateHeader;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],rq.prototype,"actionHandlerBehavior",void 0);_.E([_.z$("#description-inline-expander"),_.h("design:type",Object)],rq.prototype,"descriptionInlineExpander",void 0);
_.E([_.z$("#editable-description-inline-expander"),_.h("design:type",Object)],rq.prototype,"editableDescriptionInlineExpander",void 0);_.E([_.d(),_.h("design:type",Object)],rq.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],rq.prototype,"isUltraWide",void 0);_.E([_.z$("#editable-title-display"),_.h("design:type",Object)],rq.prototype,"editableTitle",void 0);_.E([_.v("isUltraWide"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"maxDescriptionLines",null);
_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"noCinematicData",null);_.E([_.km("yt-new-playlist-header"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],rq.prototype,"onUpdateHeader",null);_.E([_.v("data","isDarkTheme"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"backgroundStyle",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"descriptionFormData",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"getDropdownTheme",null);_.E([_.v("data","isDarkTheme"),_.h("design:type",String),_.h("design:paramtypes",[])],rq.prototype,"gradientStyle",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],rq.prototype,"descriptionTapText",null);
rq=_.E([_.m({is:"ytd-playlist-header-renderer",disableElementRegistration:!0})],rq);
_.Z(rq,"ytd-playlist-header-renderer",function(){if(UAR!==void 0)return UAR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UAR=I},{mode:_.Ij("kevlar_poly_si_batch_j078")?1:2});var k1P;var FHH;var iQ=function(){return _.q.apply(this,arguments)||this};
_.R(iQ,_.q);iQ.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{gridShowRenderer:"ytd-grid-show-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iQ.prototype,"data",void 0);iQ=_.E([_.m({is:"ytd-playlist-sidebar-tertiary-info-renderer",disableElementRegistration:!0})],iQ);
_.Z(iQ,"ytd-playlist-sidebar-tertiary-info-renderer",function(){if(FHH!==void 0)return FHH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return FHH=I},{mode:1});var wq=function(){return _.q.apply(this,arguments)||this};
_.R(wq,_.q);
wq.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}}}}};
wq.prototype.computeUsePremiumShowStyle=function(I){if(!I||!I.items)return!1;for(var C=0;C<I.items.length;C++)if(_.l(I.items[C],V2)){var y=void 0;return((y=_.l(I.items[C],V2))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wq.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeUsePremiumShowStyle(data)"}),_.h("design:type",Boolean)],wq.prototype,"usePremiumShowStyle",void 0);
wq=_.E([_.m({is:"ytd-playlist-sidebar-renderer",disableElementRegistration:!0})],wq);
_.Z(wq,"ytd-playlist-sidebar-renderer",function(){if(k1P!==void 0)return k1P;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return k1P=I},{mode:1});var uA8;var fc8=_.Qg({pageHeaderViewModel:_.Kpc});_.MU(SgK);var zDR=_.BO(function(I){var C=I.data;var y=I.noPadding;var k=I.enableBanner;var F=I.cinematicContainerTopbarOffset;var z=I.allowCinematicContainerOverflow;var c=I.displayAsSidebar;I=I.className;_.l0(function(){C().tagManagerId&&(_.rx(C().tagManagerId,_.Aq("GL")),GFL(C().tagManagerId))});
var r=_.cj(YgY,function(){return C().pageHeaderEntityKey});
return _.P("yt-page-header-renderer",{class:_.sZ("page-header-renderer-wiz",I)},_.P(_.lY,{data:function(){var w;return((w=r())==null?0:w.header)?r().header:(c==null?0:c())&&C().sidebarContent?C().sidebarContent:C().content}},{pageHeaderViewModel:function(w){return _.P(_.AWq,{data:w.data,
noPadding:y,enableBanner:k,cinematicContainerTopbarOffset:F,allowCinematicContainerOverflow:z,displayAsSidebar:function(){return(c==null?void 0:c())&&C().enableSidebarView}})}}))},"ii"),TKH=_.V("web_enable_sink_yt_page_header_renderer")?zDR:SgK;
zDR.idomCompat=!0;_.V("web_enable_sink_yt_page_header_renderer")?_.B9(TKH,"yt-page-header-renderer",{props:{data:_.As,noPadding:_.As,enableBanner:_.As,cinematicContainerTopbarOffset:_.As,allowCinematicContainerOverflow:_.As,displayAsSidebar:_.As,className:_.As}}):_.aj(TKH,"yt-page-header-renderer",{propNames:"noPadding data enableBanner cinematicContainerTopbarOffset allowCinematicContainerOverflow displayAsSidebar className".split(" ")});_.B9(_.Nn,"yt-image-banner-view-model",{props:{data:_.As,isPositionRelative:_.As}});var nY=function(){var I=_.q.apply(this,arguments)||this;I.expandableCustomTabRenderable=function(C){return $WS(C,function(){return void I.onSearchNavigate()})};
I.isRichGrid=!1;I.isConstrainedList=!1;I.richGridMiniMode=!1;I.richGridStyle="RICH_GRID_STYLE_UNKNOWN";I.isRichGridShorts=!1;I.responsiveSizing="COMPACT";I.disableGridStateAware=!1;I.actionMap={"yt-insert-channel-tab-command":"handleInsertTabCommand","ytd-refresh-channel-tab-action":"handleRefreshChannelTabAction","yt-window-resized":"onWindowResize"};return I};
_.R(nY,_.q);_.u=nY.prototype;_.u.computeHeaderDisabled=function(I,C){return C||!I||this.tabsHidden};
_.u.computeTabsHidden=function(){return!this.tabs||this.tabs.length<=1};
_.u.computeIsRichGridShorts=function(I){return I==="RICH_GRID_STYLE_SHORTS_GRID"||I==="RICH_GRID_STYLE_SHORTS_GRID_SLIM"};
_.u.computeImageBannerViewModel=function(){var I,C;return _.l((C=_.l((I=this.data)==null?void 0:I.content,_.P_c))==null?void 0:C.banner,_.N$F)};
_.u.computeHasCinematicContainer=function(){var I,C;return!((C=_.l((I=this.data)==null?void 0:I.content,_.P_c))==null||!C.background)};
_.u.handleHeaderResize=function(){var I=_.f(this.hostElement).querySelector("#header");I&&_.k3(I,"iron-resize")};
_.u.handleInsertTabCommand=function(I){var C=_.l(I,C5y);C&&(C.tabIdentifier&&this.ytdTabbedHeaderBehavior.tabs.some(function(y){return y.tabRenderer&&y.tabRenderer.tabIdentifier===C.tabIdentifier})||this.splice("tabs",C.tabIndex||-1,0,C.tab))};
_.u.handleRefreshChannelTabAction=function(I){this.ytdTabbedHeaderBehavior.selected&&this.ytdTabbedHeaderBehavior.tabs[this.ytdTabbedHeaderBehavior.selected].tabRenderer.tabIdentifier===I&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.ytdGuideStateAwareBehavior.activeEndpoint,tempData:{disableCache:!0}})};
_.u.observerRichGridItemsPerRow=function(){this.isRichGrid&&this.richGridItemsPerRow&&_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.u.observerRichGridSlimItemsPerRow=function(){_.CK(this.hostElement,{"--ytd-rich-grid-slim-items-per-row":""+this.richGridSlimItemsPerRow})};
_.u.updateCssVars=function(){this.richGridItemsPerRow&&_.CK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.s8("rich_grid_max_item_width",500))+16)-16+"px"})};
_.u.updateCssVarsForResponsiveGrid=function(){this.richGridContainerWidth&&_.CK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridContainerWidth+"px"})};
_.u.onDataChanged=function(){this.handleHeaderResize()};
_.u.onWindowResize=function(){this.handleHeaderResize()};
_.u.onFocusedChanged=function(I){(I=_.m0(I))&&I.is==="tp-yt-paper-tab"&&I.hasRipple()&&(I.getRipple().holdDown=!I.pointerDown&&I.focused)};
_.u.updateSelectedFromBinding=function(I){this.ytdTabbedHeaderBehavior.selected=I.detail.value};
_.u.onSearchNavigate=function(){this.tabsElement.selected=-1};
_.H1.Object.defineProperties(nY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b48(this.tabs,this.expandableCustomTabRenderable)}:{}}},
hasBanner:{configurable:!0,enumerable:!0,get:function(){return!!this.imageBannerViewModel}},
hasInsetBanner:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.imageBannerViewModel)==null?void 0:I.style)==="IMAGE_BANNER_STYLE_INSET"}}});
nY.prototype.onDataChanged=nY.prototype.onDataChanged;nY.prototype.updateCssVarsForResponsiveGrid=nY.prototype.updateCssVarsForResponsiveGrid;nY.prototype.updateCssVars=nY.prototype.updateCssVars;nY.prototype.observerRichGridSlimItemsPerRow=nY.prototype.observerRichGridSlimItemsPerRow;nY.prototype.observerRichGridItemsPerRow=nY.prototype.observerRichGridItemsPerRow;_.E([_.g(_.bZ),_.h("design:type",Object)],nY.prototype,"ytdGridStateAwareBehavior",void 0);
_.E([_.g(sTM),_.h("design:type",Object)],nY.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],nY.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],nY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],nY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],nY.prototype,"ytdReduxBehavior",void 0);_.E([_.z$("#tabs"),_.h("design:type",Object)],nY.prototype,"tabsElement",void 0);_.E([_.d(),_.h("design:type",Array)],nY.prototype,"tabs",void 0);_.E([_.d(),_.h("design:type",Object)],nY.prototype,"expandableCustomTabRenderable",void 0);_.E([_.v("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],nY.prototype,"tabGroupShape",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nY.prototype,"isRichGrid",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nY.prototype,"isConstrainedList",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Object)],nY.prototype,"richGridMiniMode",void 0);_.E([_.d({selector:function(I){return I.ui.richGridStyle}}),
_.h("design:type",Object)],nY.prototype,"richGridStyle",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeIsRichGridShorts(richGridStyle)"}),_.h("design:type",Object)],nY.prototype,"isRichGridShorts",void 0);_.E([_.d({selector:_.Y9}),_.h("design:type",Number)],nY.prototype,"richGridItemsPerRow",void 0);_.E([_.d({selector:function(I){return I.ui.richGridContainerWidth}}),
_.h("design:type",Number)],nY.prototype,"richGridContainerWidth",void 0);_.E([_.d({selector:_.zSz}),_.h("design:type",Number)],nY.prototype,"richGridSlimItemsPerRow",void 0);_.E([_.d(),_.h("design:type",Object)],nY.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nY.prototype,"responsiveSizing",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],nY.prototype,"disableGridStateAware",void 0);
_.E([_.d({computed:"computeImageBannerViewModel(data)"}),_.h("design:type",Object)],nY.prototype,"imageBannerViewModel",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasCinematicContainer(data)"}),_.h("design:type",Boolean)],nY.prototype,"hasCinematicContainer",void 0);_.E([_.d({selector:_.GAL,reflectToAttribute:!0}),_.h("design:type",Boolean)],nY.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],nY.prototype,"hasBanner",null);_.E([_.d({reflectToAttribute:!0}),_.v("imageBannerViewModel"),_.h("design:type",Object),_.h("design:paramtypes",[])],nY.prototype,"hasInsetBanner",null);_.E([_.d({computed:"computeTabsHidden(tabs)",value:!0}),_.h("design:type",Boolean)],nY.prototype,"tabsHidden",void 0);
_.E([_.FI("richGridItemsPerRow","isRichGrid"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nY.prototype,"observerRichGridItemsPerRow",null);_.E([_.FI("richGridSlimItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nY.prototype,"observerRichGridSlimItemsPerRow",null);
_.E([_.FI("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nY.prototype,"updateCssVars",null);_.E([_.FI("richGridContainerWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nY.prototype,"updateCssVarsForResponsiveGrid",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nY.prototype,"onDataChanged",null);
nY=_.E([_.m({is:"ytd-tabbed-page-header",disableElementRegistration:!0})],nY);
_.Z(nY,"ytd-tabbed-page-header",function(){if(uA8!==void 0)return uA8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return uA8=I},{mode:1});var cHY;var Pu=function(){return _.q.apply(this,arguments)||this};
_.R(Pu,_.q);Pu.prototype.observerRichGridItemsPerRow=function(){this.richGridItemsPerRow&&_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.richGridItemsPerRow})};
_.H1.Object.defineProperties(Pu.prototype,{badgeIconName:{configurable:!0,enumerable:!0,get:function(){var I,C;return this.componentBehavior.computeIcon_(((C=_.l((I=this.data)==null?void 0:I.badge,_.wfu))==null?void 0:C.icon)||null)}},
badgeLabel:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.badge,_.wfu))==null?void 0:C.label}}});
Pu.prototype.observerRichGridItemsPerRow=Pu.prototype.observerRichGridItemsPerRow;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Pu.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Pu.prototype,"componentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Pu.prototype,"ytdReduxBehavior",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.b6}),_.h("design:type",Boolean)],Pu.prototype,"richGridMiniMode",void 0);
_.E([_.d({selector:_.Y9}),_.h("design:type",Number)],Pu.prototype,"richGridItemsPerRow",void 0);_.E([_.d(),_.h("design:type",Object)],Pu.prototype,"data",void 0);_.E([_.FI("richGridItemsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pu.prototype,"observerRichGridItemsPerRow",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pu.prototype,"badgeIconName",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pu.prototype,"badgeLabel",null);Pu=_.E([_.m({is:"ytd-member-hub-profile-renderer",disableElementRegistration:!0})],Pu);
_.Z(Pu,"ytd-member-hub-profile-renderer",function(){if(cHY!==void 0)return cHY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return cHY=I},{mode:1});var eDM;var LY=function(){return _.q.apply(this,arguments)||this};
_.R(LY,_.q);LY.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LY.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],LY.prototype,"data",void 0);LY=_.E([_.m({is:"ytd-settings-sidebar-renderer",disableElementRegistration:!0})],LY);
_.Z(LY,"ytd-settings-sidebar-renderer",function(){if(eDM!==void 0)return eDM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return eDM=I},{mode:1});var rHP;var DF=function(){return _.q.apply(this,arguments)||this};
_.R(DF,_.q);DF.prototype.shouldHideHashtagInfo_=function(I){return!(I==null?0:I.hashtagInfoText)};
DF.prototype.onFocusedChanged=function(I){(I=_.m0(I))&&I.is==="tp-yt-paper-tab"&&I.hasRipple()&&(I.getRipple().holdDown=!I.pointerDown&&I.focused)};
DF.prototype.updateSelectedFromBinding=function(I){this.selected=I.detail.value};
_.H1.Object.defineProperties(DF.prototype,{tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
_.E([_.g(sTM),_.h("design:type",Object)],DF.prototype,"ytdTabbedHeaderBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DF.prototype,"rendererBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],DF.prototype,"data",void 0);_.E([_.z$("#tabs"),_.h("design:type",Object)],DF.prototype,"tabsElement",void 0);_.E([_.d(),_.h("design:type",Array)],DF.prototype,"tabs",void 0);_.E([_.d(),_.h("design:type",Object)],DF.prototype,"selected",void 0);
_.E([_.v("tabs"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],DF.prototype,"tabsEnabled",null);DF=_.E([_.m({disableElementRegistration:!0,is:"ytd-hashtag-header-renderer"})],DF);
_.Z(DF,"ytd-hashtag-header-renderer",function(){if(rHP!==void 0)return rHP;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-hashtag-header-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<tp-yt-app-header-layout class="style-scope ytd-hashtag-header-renderer">\n  <tp-yt-app-header id="header" slot="header" condenses="" effects="parallax-background" effects-config="{&quot;parallax-background&quot;: {&quot;scalar&quot;: 0.5}}" fixed="" class="style-scope ytd-hashtag-header-renderer">\n    <div id="hashtag-info-container" class="style-scope ytd-hashtag-header-renderer">\n      <yt-formatted-string id="hashtag" dir="auto" text="[[data.hashtag]]" class="style-scope ytd-hashtag-header-renderer">\n      </yt-formatted-string>\n      <div id="hashtag-info" hidden="[[shouldHideHashtagInfo_(data)]]" class="style-scope ytd-hashtag-header-renderer">\n        <yt-formatted-string id="hashtag-info-text" hidden="[[!data.hashtagInfoText]]" text="[[data.hashtagInfoText]]" class="style-scope ytd-hashtag-header-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <tp-yt-app-toolbar hidden="[[!tabsEnabled]]" sticky="" class="style-scope ytd-hashtag-header-renderer">\n      <div id="tabs-container" class="style-scope ytd-hashtag-header-renderer">\n        \n        <div id="tabs-inner-container" class="style-scope ytd-hashtag-header-renderer">\n          <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActivate" on-selected-changed="updateSelectedFromBinding" class="style-scope ytd-hashtag-header-renderer">\n            <template is="dom-repeat" items="[[tabs]]" class="style-scope ytd-hashtag-header-renderer">\n              <tp-yt-paper-tab disable-upgrade$="[[!item.tabRenderer]]" hidden="[[!item.tabRenderer]]" on-focused-changed="onFocusedChanged" class="style-scope ytd-hashtag-header-renderer">\n                [[item.tabRenderer.title]]\n              </tp-yt-paper-tab>\n            </template>\n          </tp-yt-paper-tabs>\n        </div>\n        <div id="tabs-divider" class="style-scope ytd-hashtag-header-renderer"></div>\n      </div>\n    </tp-yt-app-toolbar>\n  </tp-yt-app-header>\n</tp-yt-app-header-layout>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return rHP=I},{mode:_.Ij("kevlar_poly_si_batch_j078")?1:2});var iRR;var pY=function(){var I=_.q.apply(this,arguments)||this;I.expandableCustomTabRenderable=function(C){return $WS(C,function(){return void I.onSearchNavigate()})};
return I};
_.R(pY,_.q);pY.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe-button",mapping:{buttonRenderer:"ytd-button-renderer",subscribeButtonRenderer:"ytd-subscribe-button-renderer"}}}};
pY.prototype.onSearchNavigate=function(){this.selected=void 0};
pY.prototype.onTabsChange=function(){var I,C=(I=this.tabs)==null?void 0:I.findIndex(function(y){var k;return y==null?void 0:(k=y.tabRenderer)==null?void 0:k.selected});
C!==void 0&&(this.selected=C)};
pY.prototype.onTabsActive=function(I){if(this.tabs!==void 0){var C,y;(I=(C=this.tabs[I.detail.selected])==null?void 0:(y=C.tabRenderer)==null?void 0:y.endpoint)&&_.k3(this.hostElement,"yt-navigate",{endpoint:I})}};
_.H1.Object.defineProperties(pY.prototype,{tabGroupShape:{configurable:!0,enumerable:!0,get:function(){return this.tabs?{isOverflowHidden:!0,tabs:b48(this.tabs,this.expandableCustomTabRenderable)}:{}}},
tabsEnabled:{configurable:!0,enumerable:!0,get:function(){return this.tabs!==void 0&&this.tabs.length>1}}});
pY.prototype.onTabsChange=pY.prototype.onTabsChange;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pY.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.bZ),_.h("design:type",Object)],pY.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pY.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],pY.prototype,"ytdGuideStateAwareBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],pY.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],pY.prototype,"tabs",void 0);_.E([_.d(),_.h("design:type",Number)],pY.prototype,"selected",void 0);_.E([_.v("tabs.*"),_.h("design:type",Object),_.h("design:paramtypes",[])],pY.prototype,"tabGroupShape",null);_.E([_.d(),_.h("design:type",Object)],pY.prototype,"expandableCustomTabRenderable",void 0);
_.E([_.v("tabs"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pY.prototype,"tabsEnabled",null);_.E([_.rW("tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pY.prototype,"onTabsChange",null);pY=_.E([_.m({is:"ytd-topic-channel-details-renderer",disableElementRegistration:!0})],pY);
_.Z(pY,"ytd-topic-channel-details-renderer",function(){if(iRR!==void 0)return iRR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-topic-channel-details-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-topic-channel-details-renderer">\n  <div id="channel-header-container" class="style-scope ytd-topic-channel-details-renderer">\n    <a class="yt-simple-endpoint style-scope ytd-topic-channel-details-renderer" href$="[[computeHref_(data.navigationEndpoint)]]" data="[[data.navigationEndpoint]]">\n      <yt-img-shadow id="avatar" thumbnail="[[data.avatar]]" width="80" class="style-scope ytd-topic-channel-details-renderer"> </yt-img-shadow>\n      <div id="inner-header-container" class="style-scope ytd-topic-channel-details-renderer">\n        <h1 class="style-scope ytd-topic-channel-details-renderer">\n          <yt-formatted-string id="title" text="[[data.title]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n        </h1>\n        <yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-formatted-string>\n      </div>\n    </a>\n    <div id="subscribe-button" class="style-scope ytd-topic-channel-details-renderer"></div>\n  </div>\n  <div id="tabs-container" hidden="[[!tabsEnabled]]" class="style-scope ytd-topic-channel-details-renderer">\n    <div id="tabs-inner-container" class="style-scope ytd-topic-channel-details-renderer">\n      <tp-yt-paper-tabs id="tabs" noink="" remove-idle-scroll-buttons="true" scrollable="" selected="[[selected]]" on-iron-activate="onTabsActive" class="style-scope ytd-topic-channel-details-renderer">\n        <yt-tab-group-shape shape="[[tabGroupShape]]" class="style-scope ytd-topic-channel-details-renderer"> </yt-tab-group-shape>\n      </tp-yt-paper-tabs>\n    </div>\n  </div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return iRR=I},{mode:1});var whB;var Qt=function(){var I=_.q.apply(this,arguments)||this;I.disableGridStateAware=!1;return I};
_.R(Qt,_.q);Qt.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]]"}}}}}};
Qt.prototype.activeChanged=function(){this.carousel&&(this.carousel.active=this.active)};
Qt.prototype.updateCssVars=function(){_.CK(this.hostElement,{"--ytd-rich-grid-max-width":this.richGridItemsPerRow*((this.richGridMiniMode?320:_.s8("rich_grid_max_item_width",500))+16)-16+"px"})};
Qt.prototype.updateCssVars=Qt.prototype.updateCssVars;Qt.prototype.activeChanged=Qt.prototype.activeChanged;_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Qt.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Qt.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Qt.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Qt.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Qt.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],Qt.prototype,"tabs",void 0);_.E([_.d(),_.h("design:type",Boolean)],Qt.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Qt.prototype,"disableGridStateAware",void 0);
_.E([_.d({selector:_.Y9}),_.h("design:type",Number)],Qt.prototype,"richGridItemsPerRow",void 0);_.E([_.d({selector:_.b6}),_.h("design:type",Boolean)],Qt.prototype,"richGridMiniMode",void 0);_.E([_.z$("ytd-carousel-item-renderer"),_.h("design:type",Object)],Qt.prototype,"carousel",void 0);_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qt.prototype,"activeChanged",null);
_.E([_.FI("richGridItemsPerRow","richGridMiniMode"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qt.prototype,"updateCssVars",null);Qt=_.E([_.m({disableElementRegistration:!0,is:"ytd-carousel-header-renderer"})],Qt);
_.Z(Qt,"ytd-carousel-header-renderer",function(){if(whB!==void 0)return whB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return whB=I},{mode:1});var nQH;var PSK=_.hu(["https://www.google-analytics.com/analytics.js"]),N0=function(){var I=_.q.apply(this,arguments)||this;I.scriptAnalyticsAdded=!1;return I};
_.R(N0,_.q);N0.prototype.dataChanged=function(){this.data&&this.data.analyticsId&&this.sendGoogleAnalyticsPageview(this.data.analyticsId);var I,C=(I=this.data)==null?void 0:I.tagManagerId;C&&(_.rx(C,_.Aq("GL")),GFL(C))};
N0.prototype.sendGoogleAnalyticsPageview=function(I){this.scriptAnalyticsAdded||this.appendAnalyticsScript();window.ga=window.ga||function(){var y=_.wa.apply(0,arguments);(window.ga.q=window.ga.q||[]).push(y)};
var C=window.ga;C("set","page",window.location.pathname);C.l=+new Date;C("set","forceSSL",!0);C("create",I,"'auto'");C("send","pageview")};
N0.prototype.appendAnalyticsScript=function(){this.scriptAnalyticsAdded=!0;var I=_.c2("SCRIPT");I.name="ga-analytics";var C=_.tM(PSK);_.fa(I,C);I.async=!0;_.f(this.hostElement).appendChild(I)};
N0.prototype.dataChanged=N0.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],N0.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],N0.prototype,"dataChanged",null);N0=_.E([_.m({disableElementRegistration:!0,is:"ytd-channel-metadata-renderer"})],N0);
_.Z(N0,"ytd-channel-metadata-renderer",function(){if(nQH!==void 0)return nQH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nQH=I},{mode:1});var LHy;var DNS;var Vt=function(){return _.q.apply(this,arguments)||this};
_.R(Vt,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Vt.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Vt.prototype,"data",void 0);Vt=_.E([_.m({is:"ytd-sub-feed-option-renderer",disableElementRegistration:!0})],Vt);
_.Z(Vt,"ytd-sub-feed-option-renderer",function(){if(DNS!==void 0)return DNS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DNS=I},{mode:1});var ph8;var jw=function(){return _.q.apply(this,arguments)||this};
_.R(jw,_.q);jw.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{subFeedOptionRenderer:{component:"ytd-sub-feed-option-renderer",noInjection:!0}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jw.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jw.prototype,"ytRendererStamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jw.prototype,"data",void 0);jw=_.E([_.m({is:"ytd-sub-feed-selector-renderer",disableElementRegistration:!0})],jw);
_.Z(jw,"ytd-sub-feed-selector-renderer",function(){if(ph8!==void 0)return ph8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ph8=I},{mode:1});var lQ=function(){return _.q.apply(this,arguments)||this};
_.R(lQ,_.q);
lQ.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{buttonRenderer:{component:"ytd-button-renderer",noInjection:!0},searchBoxRenderer:{component:"ytd-search-box-renderer",noInjection:!0},subFeedSelectorRenderer:{component:"ytd-sub-feed-selector-renderer",noInjection:!0},toggleButtonRenderer:{component:"ytd-toggle-button-renderer",noInjection:!0},compactLinkRenderer:{component:"ytd-compact-link-renderer",noInjection:!0},eomSettingsDisclaimerRenderer:{component:"ytd-eom-settings-disclaimer-renderer",noInjection:!0}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lQ.prototype,"data",void 0);lQ=_.E([_.m({is:"ytd-browse-feed-actions-renderer",disableElementRegistration:!0})],lQ);
_.Z(lQ,"ytd-browse-feed-actions-renderer",function(){if(LHy!==void 0)return LHy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return LHy=I},{mode:1});var QXL;var NKj;var XD=function(){return _.q.apply(this,arguments)||this};
_.R(XD,_.q);XD.prototype.configureRendererStamper=function(){return{"data.subscribeButton":{id:"subscribe",mapping:{subscribeButtonRenderer:"ytd-subscribe-button-renderer",buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],XD.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],XD.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],XD.prototype,"data",void 0);XD=_.E([_.m({is:"ytd-mini-channel-renderer",disableElementRegistration:!0})],XD);
_.Z(XD,"ytd-mini-channel-renderer",function(){if(NKj!==void 0)return NKj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NKj=I},{mode:1});var VbR;var $7=function(){return _.q.apply(this,arguments)||this};
_.R($7,_.q);$7.prototype.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:{miniChannelRenderer:"ytd-mini-channel-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$7.prototype,"data",void 0);$7=_.E([_.m({disableElementRegistration:!0,is:"ytd-vertical-channel-section-renderer"})],$7);
_.Z($7,"ytd-vertical-channel-section-renderer",function(){if(VbR!==void 0)return VbR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return VbR=I},{mode:1});var Rq=function(){return _.q.apply(this,arguments)||this};
_.R(Rq,_.q);Rq.prototype.configureRendererStamper=function(){return{"data.contents":{id:"contents",mapping:{verticalChannelSectionRenderer:{component:"ytd-vertical-channel-section-renderer",noInjection:!0}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Rq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Rq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Rq.prototype,"data",void 0);Rq=_.E([_.m({is:"ytd-browse-secondary-contents-renderer",disableElementRegistration:!0})],Rq);
_.Z(Rq,"ytd-browse-secondary-contents-renderer",function(){if(QXL!==void 0)return QXL;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return QXL=I},{mode:1});var jXL;var bQ=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-replace-feed-content-action":"onReplaceFeedContentAction"};I.notActive=!1;I.isConstrainedList=!1;return I};
_.R(bQ,_.q);_.u=bQ.prototype;
_.u.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(I){var C;return(I==null?void 0:(C=I.webComponentHint)==null?void 0:C.componentVersion)==="WEB_COMPONENT_VERSION_SHARED"?"yt-section-list-renderer":
"ytd-section-list-renderer"}}}},
"data.secondaryContents":{id:"secondary",mapping:{browseFeedActionsRenderer:{component:"ytd-browse-feed-actions-renderer",noInjection:!0},browseSecondaryContentsRenderer:{component:"ytd-browse-secondary-contents-renderer",noInjection:!0},profileColumnRenderer:{component:"ytd-profile-column-renderer",noInjection:!0}}}}};
_.u.getPath=function(I,C){var y="data.tabs.#"+C+".";I.tabs[C].tabRenderer?y+="tabRenderer.":I.tabs[C].expandableTabRenderer&&(y+="expandableTabRenderer.");return y+"content.sectionListRenderer"};
_.u.computeDisplayedContent=function(I){this.unlinkPaths("content");if(I&&I.tabs)for(var C=I.tabs.length,y=0;y<C;y++){var k=I.tabs[y].tabRenderer||I.tabs[y].expandableTabRenderer;if(k.selected&&k.content)return this.linkPaths("content",this.getPath(I,y)),k.content}return null};
_.u.computeHasSecondaryColumnData=function(I){return!!I&&!!I.secondaryContents};
_.u.onRetrieveLocation=function(I,C){C.locationRetrieved(C.hasComments?"/comment_service_ajax?action_get_comments=1&pbj=1":"/browse_ajax",void 0);I.stopPropagation()};
_.u.onYtServiceRequestSent=function(I,C){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.u.onYtServiceRequestCompleted=function(I,C){_.V("replace_feed_content_action_killswitch")&&this.handleServiceRequestActions(C)};
_.u.onReplaceFeedContentAction=function(I){if(!_.V("replace_feed_content_action_killswitch")&&!this.notActive){var C;(I=(C=_.l(I,Z4j))==null?void 0:C.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(I)}};
_.u.handleServiceRequestActions=function(I){if(I=I.actions){I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;var y=void 0;((y=_.l(C,Z4j))==null?0:y.items)&&this.listRenderer&&this.listRenderer.replacePrimaryContent(_.l(C,Z4j).items)}}};
bQ.prototype.onYtServiceRequestCompleted=bQ.prototype.onYtServiceRequestCompleted;bQ.prototype.onYtServiceRequestSent=bQ.prototype.onYtServiceRequestSent;bQ.prototype.onRetrieveLocation=bQ.prototype.onRetrieveLocation;_.E([_.g(_.bZ),_.h("design:type",Object)],bQ.prototype,"ytdGridStateAwareBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],bQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bQ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bQ.prototype,"data",void 0);_.E([_.d({computed:"computeDisplayedContent(data)"}),_.h("design:type",Object)],bQ.prototype,"content",void 0);
_.E([_.d({computed:"computeHasSecondaryColumnData(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],bQ.prototype,"hasSecondaryColumnData",void 0);_.E([_.d({value:function(){return window.outerHeight>1024?3:2}}),
_.h("design:type",Number)],bQ.prototype,"initialCount",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],bQ.prototype,"pageSubtype",void 0);_.E([_.z$("ytd-section-list-renderer"),_.h("design:type",Object)],bQ.prototype,"listRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],bQ.prototype,"notActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],bQ.prototype,"isConstrainedList",void 0);
_.E([_.d(),_.h("design:type",String)],bQ.prototype,"responsiveSizing",void 0);_.E([_.km("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bQ.prototype,"onRetrieveLocation",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],bQ.prototype,"onYtServiceRequestSent",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],bQ.prototype,"onYtServiceRequestCompleted",null);bQ=_.E([_.m({disableElementRegistration:!0,is:"ytd-two-column-browse-results-renderer"})],bQ);
_.Z(bQ,"ytd-two-column-browse-results-renderer",function(){if(jXL!==void 0)return jXL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return jXL=I},{mode:2});var lXy;var XhL;var Y7=function(){var I=_.q.apply(this,arguments)||this;I.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"]);I.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"]);I.actionMap={"ytd-update-elements-per-row-action":"onUpdateElementsPerRowAction"};
return I};
_.R(Y7,_.q);_.u=Y7.prototype;_.u.attached=function(){this.requestElementsPerRow()};
_.u.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_]]"}}}}}};
_.u.onUpdateElementsPerRowAction=function(I){I&&this.elementsPerRow!==I&&(this.elementsPerRow=I)};
_.u.dismissButtonTap_=function(){this.set("data.isVisible",!this.closeOnDismissButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.u.acceptButtonTap_=function(){this.set("data.isVisible",!this.closeOnAcceptButton.has(this.data.dismissStrategy||"ALERT_WITH_ACTIONS_DISMISS_STRATEGY_UNKNOWN"))};
_.u.computeAlertStyle_=function(I){return I};
_.u.observerElementsPerRow=function(){this.elementsPerRow&&_.CK(this.hostElement,{"--ytd-rich-grid-items-per-row":""+this.elementsPerRow})};
_.u.onIsVisibleChanged_=function(){this.data&&!this.data.isVisible&&this.ytRendererBehavior.impressionLog()};
_.u.requestElementsPerRow=function(){_.k3(this.hostElement,"yt-request-elements-per-row")};
Y7.prototype.onIsVisibleChanged_=Y7.prototype.onIsVisibleChanged_;Y7.prototype.observerElementsPerRow=Y7.prototype.observerElementsPerRow;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Y7.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Y7.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Y7.prototype,"actionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Y7.prototype,"data",void 0);_.E([_.d({value:6,reflectToAttribute:!0}),_.h("design:type",Number)],Y7.prototype,"elementsPerRow",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],Y7.prototype,"wrapButtons",void 0);_.E([_.d({value:_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],Y7.prototype,"isMusic",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeAlertStyle_(data.alertType.type)"}),_.h("design:type",String)],Y7.prototype,"alertStyle",void 0);_.E([_.d({value:function(){return this.dismissButtonTap_.bind(this)}}),
_.h("design:type",Function)],Y7.prototype,"dismissBoundButtonTap_",void 0);_.E([_.d({value:function(){return this.acceptButtonTap_.bind(this)}}),
_.h("design:type",Function)],Y7.prototype,"acceptBoundButtonTap_",void 0);_.E([_.FI("elementsPerRow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y7.prototype,"observerElementsPerRow",null);_.E([_.FI("data.isVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Y7.prototype,"onIsVisibleChanged_",null);Y7=_.E([_.lT({is:"yt-alert-with-actions-renderer",disableElementRegistration:!0})],Y7);
_.Z(Y7,"yt-alert-with-actions-renderer",function(){if(XhL===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;lXy===void 0&&(lXy=document.createElement("template"));var k=lXy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);XhL=I}I=XhL;return I},{mode:2});_.B9(_.BO(function(I){function C(B){var t={};return _.P(_.wh,{text:B,className:_.sZ("ytPersonalGreetingViewModelHeadline",(t.ytPersonalGreetingViewModelHeadlineSmall=function(){return r()===48},t))})}
function y(B,t){return _.P("span",{el:B,class:"ytPersonalGreetingViewModelHeadlineInvisible","aria-hidden":"true"},C(t))}
var k=_.Es(),F=_.Es(),z=_.Es(),c=function(){return I.data().canvasPromoData},r=function(){var B;
return(B=I.data().bannerHeight)!=null?B:56},w=_.T(_.c4({content:""},void 0,"rcUSic")),L=w.next().value,D=w.next().value,p=_.bTF(k,{throttleMs:100}),Q=_.bTF(F,{throttleMs:100}),X=_.bTF(z,{throttleMs:100});
w=_.T(_.c4(!0,void 0,"b0Yv9d"));var b=w.next().value,S=w.next().value;w=_.T(_.c4(!0,void 0,"ByEGnd"));var A=w.next().value,x=w.next().value;_.l0(function(){x(Q.width()-p.width()>1);S(X.width()+(I.data().avatar?48:0)-p.width()>1);D(b()?I.data().shorterGreeting:I.data().greeting)},"nSIsDe");
_.ql(k,function(){var B;return(B=I.data())==null?void 0:B.rendererContext},void 0,void 0,void 0,!0);
return _.P("yt-personal-greeting-view-model",{el:k,"aria-hidden":function(){return A()},
class:_.sZ(I.className,"ytPersonalGreetingViewModelHost"),style:_.cP({height:(0,_.nJ)(function(){return A()?0:r()})})},_.P(_.Dx,{cond:function(){return I.data().avatar&&!b()},
then:function(){return _.P(_.lY,{data:function(){return I.data().avatar}},{decoratedAvatarViewModel:function(B){return _.P(_.wF,{data:B.data,
className:_.sZ("ytPersonalGreetingViewModelAvatar")})}})}}),C(function(){var B;
return(c==null?void 0:(B=c())==null?void 0:B.headline)||L()}),y(z,function(){return I.data().greeting}),y(F,function(){return I.data().shorterGreeting}))},"ji"),"yt-personal-greeting-view-model",{props:{data:_.As,
className:_.As}});var Gz=function(){var I=_.q.apply(this,arguments)||this;I.hidden=!1;I.isConstrainedList=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.responsiveSizing="COMPACT";I.attachedPlayers=_.V("kevlar_channel_trailer_multi_attach")?[]:void 0;I.player=null;I.actionMap={"yt-alert-command":"handleAlertCommand","yt-playlist-deletion-redirect-command":"handleYtPlaylistDeletionRedirect"};return I};
_.R(Gz,_.q);_.u=Gz.prototype;
_.u.configureRendererStamper=function(){return{mastheadAdData:{id:"masthead-ad",mapping:{bannerPromoRenderer:{component:"ytd-banner-promo-renderer",noInjection:!0},videoMastheadAdV3Renderer:{component:"ytd-video-masthead-ad-v3-renderer",noInjection:!0}},reuseComponents:!1},alertBannerData:{id:"alert-banner",mapping:{alertWithActionsRenderer:{component:"yt-alert-with-actions-renderer",noInjection:!0}}},greetingData:{id:"personal-greeting",mapping:{personalGreetingViewModel:{component:"yt-personal-greeting-view-model",properties:{className:"[[is]]"},
noInjection:!0}}},"data.alerts":{id:"alerts",mapping:{alertRenderer:{component:"yt-alert-renderer",noInjection:!0},unlimitedUserNotificationRenderer:{component:"yt-unlimited-user-notification-renderer",noInjection:!0},alertWithButtonRenderer:{component:"ytd-alert-with-button-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},"data.survey":{id:"survey",mapping:{surveyTriggerRenderer:{component:"ytd-survey-trigger-renderer",noInjection:!0}},initialRenderPriority:3,waitForSignal:"eocs"},
"data.metadata":{id:"metadata",mapping:{channelMetadataRenderer:{component:"ytd-channel-metadata-renderer",noInjection:!0}}},"data.header":{id:"header",mapping:{c4TabbedHeaderRenderer:{component:"ytd-c4-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",isRichGrid:"[[fluidWidth]]"},noInjection:!0},pageHeaderRenderer:{component:"ytd-tabbed-page-header",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]",
isRichGrid:"[[richGrid]]",disableGridStateAware:"[[fluidWidth]]",disableHeaderFluidWidth:"[[disableHeaderFluidWidth]]",isConstrainedList:"[[isConstrainedList]]",responsiveSizing:"[[responsiveSizing]]"}},interactiveTabbedHeaderRenderer:{component:"ytd-interactive-tabbed-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},carouselHeaderRenderer:{component:"ytd-carousel-header-renderer",properties:{active:"[[active]]",disableGridStateAware:"[[fluidWidth]]",
tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},hashtagHeaderRenderer:{component:"ytd-hashtag-header-renderer",properties:{active:"[[active]]",tabs:"[[data.contents.twoColumnBrowseResultsRenderer.tabs]]"},noInjection:!0},memberHubProfileRenderer:{component:"ytd-member-hub-profile-renderer",noInjection:!0}},events:!0},"data.footer":{id:"footer",mapping:{pageFooterRenderer:{component:"ytd-page-footer-renderer",noInjection:!0}}}}};
_.u.created=function(){var I=this;this.ytRendererBehavior.monitorScroll=!0;this.ytPageBehavior.pageDisposeJobs=[function(){I.disposeMastheadAd()}]};
_.u.attached=function(){this.pageSubtype==="home"&&this.refresh&&this.contents&&(this.refreshGesture=new kYY(this.refresh,this.contents))};
_.u.detached=function(){this.tabGestures&&(this.tabGestures.detach(),this.tabGestures=void 0);this.refreshGesture&&(this.refreshGesture.detach(),this.refreshGesture=void 0)};
_.u.activeChanged=function(){var I=this.ytPageBehavior.active;this.header&&this.header.firstChild&&(this.header.firstChild.active=I)};
_.u.tabsChanged=function(){var I=this,C,y,k,F;if(this.pageSubtype==="channels"||_.V("kevlar_tab_gestures_for_tabbed_header_data")&&(((C=this.data)==null?0:(y=C.header)==null?0:y.c4TabbedHeaderRenderer)||((k=this.data)==null?0:(F=k.header)==null?0:F.carouselHeaderRenderer)))this.tabGestures=new lD(this.contents,this.contents,this.hostElement,this.header,function(w){I.ytdReduxBehavior.dispatch(w)});
var z,c,r;C=(z=this.data)==null?void 0:(c=z.contents)==null?void 0:(r=c.twoColumnBrowseResultsRenderer)==null?void 0:r.tabs;this.header&&this.header.firstChild&&(this.header.firstChild.tabs=C);this.tabGestures&&this.tabGestures.tabsChanged(C)};
_.u.channelIdChanged=function(){if(this.tabGestures){var I,C,y,k=this.tabGestures,F=(I=this.data)==null?void 0:(C=I.header)==null?void 0:(y=C.c4TabbedHeaderRenderer)==null?void 0:y.channelId;F&&F!==k.currentChannelId&&(k.scrollPositionForTabs.clear(),k.currentChannelId=F,k.lastVisitedTabScrollPosition=void 0,k.tabsStartAtInPx=0)}};
_.u.scrollAtTopChanged=function(){this.refreshGesture&&(this.scrollAtTop?this.refreshGesture.attach():this.refreshGesture.detach())};
_.u.engagementPanelsChanged=function(){var I=_.N().resolve(_.wp);if(I){if(this.engagementPanels)for(var C=_.T(this.engagementPanels),y=C.next();!y.done;y=C.next()){var k=void 0;(y=(k=y.value.identifier)==null?void 0:k.tag)&&I.panelMap.delete(y)}this.engagementPanels=[];var F;C=_.T(((F=this.data)==null?void 0:F.panels)||[]);for(F=C.next();!F.done;F=C.next()){F=_.l(F.value,_.A6Y);var z=y=void 0,c=void 0,r=void 0;if(k=((y=F)==null?void 0:y.targetId)||((z=F)==null?void 0:z.panelIdentifier)||((c=F)==null?
void 0:(r=c.identifier)==null?void 0:r.tag))z=y=void 0,(z=(y=I).registerPanelContent)==null||z.call(y,k,{engagementPanelSectionListRenderer:F}),this.engagementPanels.push(F)}}};
_.u.onStampFinished=function(){var I=this;_.hn(this,function(){if(I.tabGestures){var C=I.tabGestures;if(C.scrollPositionNeedsUpdate){var y=_.N().resolve(_.aU(_.BP)),k;if((k=C.selectedTab)!=null&&k.title&&y&&(k=y.getCurrentPage())){if(C.scrollPositionForTabs.has(C.selectedTab.title)){var F,z;y=(z=(F=y.getCurrentPage())==null?void 0:F.clientHeight)!=null?z:0;F=C.scrollPositionForTabs.get(C.selectedTab.title);k.setScrollTop(F);y>F+100&&(C.scrollPositionNeedsUpdate=!1)}else k.setScrollTop(Math.min(C.lastVisitedTabScrollPosition!==
void 0?C.lastVisitedTabScrollPosition:Number.MAX_SAFE_INTEGER,C.tabsStartAtInPx)),C.scrollPositionNeedsUpdate=!1;C.ytdReduxDispatch(K5B(!1))}}}})};
_.u.loadPage_=function(I){this.initCsi();I&&(this.data=I);this.updateTitle(this.data);this.setMastheadAd(this.data)};
_.u.getTitle=function(I){if(this.pageSubtype=="home")return"";if(this.get("microformat.microformatDataRenderer.title",I))return this.get("microformat.microformatDataRenderer.title",I);if(this.get("header.c4TabbedHeaderRenderer.title",I))return this.get("header.c4TabbedHeaderRenderer.title",I);if(this.get("header.feedTabbedHeaderRenderer.title",I))return _.hS(this.get("header.feedTabbedHeaderRenderer.title",I));if(this.get("header.interactiveTabbedHeaderRenderer.title",I))return this.get("header.interactiveTabbedHeaderRenderer.title",
I);if(this.get("header.hashtagHeaderRenderer.hashtag",I))return _.hS(this.get("header.hashtagHeaderRenderer.hashtag",I));if(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",I))return _.hS(this.get("contents.twoColumnBrowseResultsRenderer.tabs.0.tabRenderer.content.richGridRenderer.contents.0.richSectionRenderer.content.sourcePivotHeaderRenderer.headerInformation.profilePageHeaderInformationRenderer.title.profilePageHeaderTitleRenderer.title",
I));var C,y;return _.V("enable_page_header_page_title")&&(I==null?0:(C=I.header)==null?0:(y=C.pageHeaderRenderer)==null?0:y.pageTitle)?I.header.pageHeaderRenderer.pageTitle:""};
_.u.updateTitle=function(I){_.k3(this.hostElement,"yt-update-title",this.getTitle(I))};
_.u.initCsi=function(){_.pm(this.pageSubtype||"browse",["ol","cpt"])};
_.u.getPlayer=function(){if(_.V("kevlar_channel_trailer_multi_attach")){for(var I=_.T(this.attachedPlayers),C=I.next();!C.done;C=I.next())if(C=C.value,C.isConnected||_.gQ(this.hostElement,C))return C;return null}return this.player};
_.u.getPlayerContainer=function(){return null};
_.u.onPlayerAttached=function(I,C){_.V("kevlar_channel_trailer_multi_attach")?this.attachedPlayers.push(C):this.player=C};
_.u.onPlayerDetached=function(I,C){_.V("kevlar_channel_trailer_multi_attach")?(I=this.attachedPlayers.indexOf(C),I<0||this.attachedPlayers.splice(I,1)):this.player=null};
_.u.getServiceTrackingParams=function(){var I,C;return((I=this.data)==null?void 0:(C=I.responseContext)==null?void 0:C.serviceTrackingParams)||[]};
_.u.setMastheadAd=function(I){I&&I.mastheadAd&&(this.mastheadAdData=void 0);this.mastheadAdData=I&&I.mastheadAd};
_.u.dataChanged=function(){var I=this;this.refreshGesture&&this.refreshGesture.reset();this.get("filler",this.data)||_.wUY();_.hn(this,function(){_.uW(I.hostElement,"ytd-update-grid-state-action")})};
_.u.disposeMastheadAd=function(){this.mastheadAdData=void 0};
_.u.computeAlertBannerData=function(){if(this.data&&this.data.alerts){var I=this.data.alerts;return I&&I.find(function(C){return!!C.alertWithActionsRenderer})}};
_.u.computeGreetingData=function(){if(this.data&&this.data.alerts){var I=this.data.alerts;return I&&I.find(function(C){return!!C.personalGreetingViewModel})}};
_.u.computeHasC4TabbedHeaderRenderer=function(I){var C;return!!(I==null?0:(C=I.header)==null?0:C.c4TabbedHeaderRenderer)};
_.u.computeHasMemberHubProfileRenderer=function(I){var C;return!!(I==null?0:(C=I.header)==null?0:C.memberHubProfileRenderer)};
_.u.handleAlertCommand=function(I){this.get("alertCommand.alert.alertWithActionsRenderer",I)&&(I=_.l(I,BZR),this.data.alerts||this.set("data.alerts",[]),this.unshift("data.alerts",I.alert))};
_.u.handleYtPlaylistDeletionRedirect=function(I){I=this.get("playlistDeletionRedirectCommand.redirectEndpoint",I);_.k3(this.hostElement,"yt-navigate",{endpoint:I})};
_.u.computeFluidWidth=function(I,C,y){if(C==="mini_app"||y)return!0;var k,F,z;I=I==null?void 0:(k=I.contents)==null?void 0:(F=k.twoColumnBrowseResultsRenderer)==null?void 0:(z=F.tabs)==null?void 0:z.find(function(w){var L;return w==null?void 0:(L=w.tabRenderer)==null?void 0:L.selected});
if(!I)return!1;var c,r;return!!((c=I.tabRenderer)==null?0:(r=c.content)==null?0:r.richGridRenderer)&&!["channel","channels","playables"].includes(C)};
_.u.computeHeaderFluidWidth=function(I){return I==="hashtag-landing-page"};
_.u.computeHasSidebar=function(I){var C;return!!(I.sidebar||((C=I.header)==null?0:C.playlistHeaderRenderer))};
_.u.computeHasPageHeaderSidebar=function(I){var C,y;return!!((C=I.header)==null?0:(y=C.pageHeaderRenderer)==null?0:y.enableSidebarView)};
_.u.computeUseUnifiedShowPageLayout=function(I){if(!I||this.pageSubtype!=="show"||!I.sidebar||!I.sidebar.playlistSidebarRenderer)return!1;I=I.sidebar.playlistSidebarRenderer;if(!I.items)return!1;for(var C=0;C<I.items.length;C++)if(_.l(I.items[C],V2)){var y=void 0;return((y=_.l(I.items[C],V2))==null?void 0:y.style)==="PLAYLIST_SIDEBAR_PRIMARY_INFO_RENDERER_STYLE_TYPE_SHOW"}return!1};
_.u.computeIsConstrainedList=function(I){return _.V("web_enable_constrained_list_subscriptions_channels")&&I==="subscriptions-channels"};
_.u.computeResponsiveSizing=function(I){return I==="subscriptions-channels"?"STANDARD":"COMPACT"};
_.H1.Object.defineProperties(Gz.prototype,{usePlaylistHeaderRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C;return((I=this.data)==null?0:(C=I.header)==null?0:C.playlistHeaderRenderer)?!0:!1}},
useOldPlaylistSidebarRenderer:{configurable:!0,enumerable:!0,get:function(){var I,C;if(!((I=this.data)==null?0:(C=I.sidebar)==null?0:C.playlistSidebarRenderer))return!1;var y;return(y=this.data)!=null&&y.header?!1:!0}}});
_.H1.Object.defineProperties(Gz,{template:{configurable:!0,enumerable:!0,get:function(){if(zPB===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);zPB=I}I=zPB;return I}}});
Gz.prototype.dataChanged=Gz.prototype.dataChanged;Gz.prototype.onPlayerDetached=Gz.prototype.onPlayerDetached;Gz.prototype.onPlayerAttached=Gz.prototype.onPlayerAttached;Gz.prototype.onStampFinished=Gz.prototype.onStampFinished;Gz.prototype.engagementPanelsChanged=Gz.prototype.engagementPanelsChanged;Gz.prototype.scrollAtTopChanged=Gz.prototype.scrollAtTopChanged;Gz.prototype.channelIdChanged=Gz.prototype.channelIdChanged;Gz.prototype.tabsChanged=Gz.prototype.tabsChanged;
Gz.prototype.activeChanged=Gz.prototype.activeChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Gz.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],Gz.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Gz.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Gz.prototype,"ytdReduxBehavior",void 0);
_.E([_.g(_.Q2.YtPageBehavior),_.h("design:type",Object)],Gz.prototype,"ytPageBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Gz.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],Gz.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Gz.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Gz.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Gz.prototype,"hidden",void 0);_.E([_.d(),_.h("design:type",Object)],Gz.prototype,"mastheadAdData",void 0);_.E([_.d({readOnly:!0,computed:"computeAlertBannerData(data.alerts.*)"}),_.h("design:type",Object)],Gz.prototype,"alertBannerData",void 0);_.E([_.d({readOnly:!0,computed:"computeGreetingData(data.alerts.*)"}),_.h("design:type",Object)],Gz.prototype,"greetingData",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],Gz.prototype,"pageSubtype",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasC4TabbedHeaderRenderer(data)"}),_.h("design:type",Boolean)],Gz.prototype,"hasC4TabbedHeaderRenderer",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasMemberHubProfileRenderer(data)"}),_.h("design:type",Boolean)],Gz.prototype,"hasMemberHubProfileRenderer",void 0);
_.E([_.d({computed:"computeHasSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Gz.prototype,"hasSidebar",void 0);_.E([_.d({computed:"computeHasPageHeaderSidebar(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Gz.prototype,"hasPageHeaderSidebar",void 0);_.E([_.d({reflectToAttribute:!0,value:!0}),_.h("design:type",Boolean)],Gz.prototype,"roundedContainer",void 0);
_.E([_.d({computed:"computeUseUnifiedShowPageLayout(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Gz.prototype,"useUnifiedShowPageLayout",void 0);_.E([_.d({computed:"computeIsConstrainedList(pageSubtype)"}),_.h("design:type",Object)],Gz.prototype,"isConstrainedList",void 0);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Gz.prototype,"usePlaylistHeaderRenderer",null);
_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Gz.prototype,"useOldPlaylistSidebarRenderer",null);_.E([_.d({computed:"computeFluidWidth(data, pageSubtype, isConstrainedList)"}),_.h("design:type",Boolean)],Gz.prototype,"fluidWidth",void 0);_.E([_.d({selector:function(I){return I.ui.scrollAtTop}}),
_.h("design:type",Boolean)],Gz.prototype,"scrollAtTop",void 0);_.E([_.d({selector:_.fRK}),_.h("design:type",Boolean)],Gz.prototype,"tabGesturesIsActive",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Gz.prototype,"darkerDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHeaderFluidWidth(pageSubtype)"}),_.h("design:type",Boolean)],Gz.prototype,"disableHeaderFluidWidth",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeResponsiveSizing(pageSubtype)"}),_.h("design:type",String)],Gz.prototype,"responsiveSizing",void 0);_.E([_.z$("ytd-two-column-browse-results-renderer"),_.h("design:type",HTMLElement)],Gz.prototype,"contents",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],Gz.prototype,"header",void 0);_.E([_.z$("ytd-refresh"),_.h("design:type",Object)],Gz.prototype,"refresh",void 0);
_.E([_.FI("active"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"activeChanged",null);_.E([_.FI("data.contents.twoColumnBrowseResultsRenderer.tabs"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"tabsChanged",null);_.E([_.FI("data.header.c4TabbedHeaderRenderer.channelId"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"channelIdChanged",null);
_.E([_.FI("scrollAtTop"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"scrollAtTopChanged",null);_.E([_.d(),_.h("design:type",Object)],Gz.prototype,"engagementPanels",void 0);_.E([_.FI("data.panels"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"engagementPanelsChanged",null);
_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"onStampFinished",null);_.E([_.km("yt-player-attached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],Gz.prototype,"onPlayerAttached",null);_.E([_.km("yt-player-detached"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Element]),_.h("design:returntype")],Gz.prototype,"onPlayerDetached",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Gz.prototype,"dataChanged",null);Gz=_.E([_.m({is:"ytd-browse"})],Gz);_.pX.registerService(_.$0I,Gz);
_.R1();
}catch(e){_._DumpException(e)}
try{
_.$q("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 KZH=function(I,C){return I<C?-1:I>C?1:0},tr=function(I,C){var y=0;
I=(0,_.oh)(String(I)).split(".");C=(0,_.oh)(String(C)).split(".");for(var k=Math.max(I.length,C.length),F=0;y==0&&F<k;F++){var z=I[F]||"",c=C[F]||"";do{z=/(\d*)(\D*)(.*)/.exec(z)||["","","",""];c=/(\d*)(\D*)(.*)/.exec(c)||["","","",""];if(z[0].length==0&&c[0].length==0)break;y=KZH(z[1].length==0?0:parseInt(z[1],10),c[1].length==0?0:parseInt(c[1],10))||KZH(z[2].length==0,c[2].length==0)||KZH(z[2],c[2]);z=z[3];c=c[3]}while(y==0)}return y},Jr=function(I){if(!I)return"browse";
var C=I.page,y=I.url,k,F,z,c=(k=I.response)==null?void 0:(F=k.responseContext)==null?void 0:(z=F.webResponseContextExtensionData)==null?void 0:z.pageTheme;if(c)C=c.toLowerCase().replace(/_/g,"-");else if(C!=="watch"){var r,w;if((C==="browse"||C==="settings")&&((r=I.response)==null?0:(w=r.sidebar)==null?0:w.settingsSidebarRenderer))C="WEB_PAGE_TYPE_SETTINGS";else{var L,D;C==="browse"&&((L=I.response)==null?0:(D=L.metadata)==null?0:D.channelMetadataRenderer)?C="channel":y&&(C=_.CeI(y)||C)}}return C},
AYj=function(){var I=_.d5("yt.aba.att");
return I?I:_.hy.instance!==void 0?_.hy.instance.k3O.bind(_.hy.instance):null},gtY=function(I,C){var y;
return _.e(function(k){return(y=AYj())?k.return(y(I,C,6E4)):k.return(Promise.resolve({error:"ATTESTATION_ERROR_API_NOT_READY"}))})},vtL=function(I,C,y,k,F){C=C===void 0?[]:C;
F=F?{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:F}]}}:void 0;return{popupType:"DIALOG",popup:{confirmDialogRenderer:{title:_.Cx(I),dialogMessages:C.map(function(z){return _.Cx(z)}),
confirmButton:{buttonRenderer:{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(y),serviceEndpoint:F}},cancelButton:{buttonRenderer:{style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(k)}}}}}},WZY=function(I){var C=!!_.gf().queueProxy;
var y,k,F;I=I==null?void 0:(y=I.response)==null?void 0:(k=y.currentVideoEndpoint)==null?void 0:(F=k.watchEndpoint)==null?void 0:F.playlistId;return!(!C&&!I)},dS8=function(I,C){var y=_.ck();
if(WZY(I))return y.playlistWatchPageActivation=!0;switch(Jr(C)){case "yts-products":return y.productDetailsPageActivation=!0;case "mini_app":return y.miniAppPageActivation=!0;case "playables":return y.playablesDestPageActivation=!0;default:return!1}},xSB=function(I,C,y){for(var k=typeof I==="string"?I.split(""):I,F=I.length-1;F>=0;--F)F in k&&C.call(y,k[F],F,I)},q8L=function(I,C){C=_.PKz(I,C);
C>=0&&_.UF(I,C)},mSK=function(I){return Array.prototype.concat.apply([],arguments)},Zh8=function(I){var C=0;
C=C===void 0?0:C;if(!_.cR(I))throw _.cm("uint64");var y=typeof I;switch(C){case 512:switch(y){case "string":return _.GM(I);case "bigint":return String((0,_.f8)(64,I));default:return _.uq9(I)}case 1024:switch(y){case "string":return _.TSF(I);case "bigint":return _.Bm((0,_.f8)(64,I));default:return _.zbH(I)}case 0:switch(y){case "string":return _.GM(I);case "bigint":return _.Bm((0,_.f8)(64,I));default:return _.RL(I)}default:return _.C8(C,"Unknown format requested type for int64")}},BCS=function(I){I!=
null&&(I=I.JSC$6687_value_||"",I=typeof I==="string"?I:new Uint8Array(I));
return I},EtY=function(I){for(var C=_.wa.apply(1,arguments),y=I[0],k=0;k<I.length-1;k++)y+=String(C[k]),y+=I[k+1];
C=document.implementation.createHTMLDocument("");k=C.createElement("style");C.head.appendChild(k);C=k.sheet;C.insertRule(y,0);if(C.cssRules.length===1&&(y=C.cssRules[0],y instanceof CSSStyleRule))return new _.vn(y.cssText.replace(/</g,"\\3C "))},hwH=function(I,C){if(/-[a-z]/.test(C))return null;
if(_.aSb&&I.dataset){if(_.uOz()&&!(C in I.dataset))return null;I=I.dataset[C];return I===void 0?null:I}return I.getAttribute("data-"+_.nq(C))},HhH=function(){var I=USR;
_.d5("yt.ads.biscotti.getId_")||_.U8("yt.ads.biscotti.getId_",I)},t7L=function(I){_.U8("yt.ads.biscotti.lastId_",I)},Ohy=function(){var I={};
for(_.lX=new JYM(I.handleError===void 0?_.fi:I.handleError,I.logEvent===void 0?_.b2:I.logEvent);_.XT.length>0;)switch(I=_.XT.shift(),I.type){case "ERROR":_.lX.logError(I.payload);break;case "EVENT":_.lX.logEvent(I.eventType,I.payload)}},aJH=function(I,C,y){return _.X$z(function(k){return y?k.userIdentifier!==void 0&&!I.includes(k.userIdentifier)&&y.includes(k.publicName):k.userIdentifier!==void 0&&!I.includes(k.userIdentifier)},C)},M78=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1)return C=_.Lh("YtIdbMeta hasAnyMeta other"),_.n(k,_.X$z(function(F){return F.userIdentifier!==void 0&&F.userIdentifier!==C},I),2);
y=k.yieldResult;return k.return(y.length>0)})},C$H=function(I,C){IvR||(IvR=_.b$.addLowPriorityJob(function(){var y,k,F,z,c;
return _.e(function(r){switch(r.nextAddress){case 1:return _.n(r,_.HN(),2);case 2:y=r.yieldResult;if(!y)return r.return();k=!0;_.aM(r,3);return _.n(r,aJH(I,y,C),5);case 5:F=r.yieldResult;if(!F.length){k=!1;r.jumpTo(6);break}z=F[0];return _.n(r,_.xt(z.actualName),7);case 7:return _.n(r,_.ZJ(z.actualName,y),6);case 6:_.dC(r,4);break;case 3:c=_.sj(r),_.$t(c),k=!1;case 4:_.b$.cancelJob(IvR),IvR=0,k&&C$H(I,C),_.oI(r)}})}))},seS=function(){var I;
return _.e(function(C){return C.nextAddress==1?_.n(C,_.HN(),2):(I=C.yieldResult)?C.return(M78(I)):C.return(!1)})},oVK=function(I){var C=100;
C=C===void 0?500:C;var y,k,F,z,c,r;return _.e(function(w){return w.nextAddress==1?(y=_.Aq("INNERTUBE_CONTEXT_CLIENT_NAME",0),k=[y,(0,_.JY)()-2592E6],F=[y,(0,_.JY)()],z=IDBKeyRange.bound(k,F),_.n(w,_.MdW(I),2)):w.nextAddress!=3?(c=w.yieldResult,r=[],_.n(w,_.mZ(c,["SWHealthLog"],{mode:"readwrite",enableRetries:!0},function(L){r.length=0;return _.O8(L.objectStore("SWHealthLog").index("swHealthNewRequest"),{query:z,direction:"prev"},function(D){if(D.getValue()&&r.length<C)return r.push(D.getValue()),
D.delete().then(function(){return D.continue()})})}),3)):w.return(r)})},yzM=function(){var I;
return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.HN(),2);I=C.yieldResult;if(!I||!_.DJ()&&!_.V("nwl_init_require_datasync_id_killswitch")||!_.Dct())return C.jumpTo(0);_.Q_t=!0;_.pDW.isNwlInitialized=_.Q_t;return _.n(C,_.rnw().awaitInitialization(),0)})},Og=function(I,C){_.vkF[I]=!0;
var y=_.ss();y&&y.publish.apply(y,arguments);_.vkF[I]=!1},FxS=function(){if(_.ixH()&&!kDK){var I=function(y){y=y.data;
if(y.op==="serializedGelBatch"){var k=_.Whs.get(y.key);k&&(_.xHm(y.serializedBatch,k.client,k.resolve,k.networklessOptions,k.isIsolated,k.useVSSEndpoint,k.dangerousLogToVisitorSession,k.requestsOutstanding),_.Whs.delete(y.key))}},C=_.rSO();
C&&(C.addEventListener("message",I),C.onerror=function(){_.Whs.clear()});
kDK=!0}},ag=function(){this.relativeTimeStart_=_.CF()},ujj=function(I,C){I!=null&&this.append.apply(this,arguments)},z18=function(){return _.g8("SLI_NAME_YOUTUBE_WEB_YT_GUIDE_DATA_PRESENT","GUIDE_DATA_PRESENT",6E4,"FAILURE")},TIR=function(I,C,y){y=y===void 0?!1:y;
var k,F,z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:_.nh("SOCS",I,34128E3,"youtube.com",!0);if(_.T6)return F=fetch(C,{method:"POST",mode:_.Eh(C),credentials:_.B$(C),cache:"no-store",headers:{"Content-Type":"text/plain"}}).catch(function(){}),z=fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",
mode:_.Eh("/upgrade_visitor_cookie?eom=1"),credentials:_.B$("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),_.n(w,Promise.all([F,z]).then(function(L){return L[1]}),5);
fetch(C,{method:"POST",mode:_.Eh(C),credentials:_.B$(C),cache:"no-store",headers:{"Content-Type":"text/plain"}});return _.n(w,fetch("/upgrade_visitor_cookie?eom=1",{method:"POST",mode:_.Eh("/upgrade_visitor_cookie?eom=1"),credentials:_.B$("/upgrade_visitor_cookie?eom=1"),cache:"no-store",headers:{"Content-Type":"application/x-www-form-urlencoded"}}),4);case 4:k=w.yieldResult;w.jumpTo(3);break;case 5:k=c=w.yieldResult;case 3:if(!k.ok)throw Error("mf");return _.n(w,k.text(),7);case 7:r=w.yieldResult,
!r.includes('"state_switch":true')&&!y||r.includes("skip_reload_for_test")||window.location.reload(),_.oI(w)}})},czj=function(I){return _.e(function(C){return C.nextAddress==1?_.n(C,TIR(I.socsCookie,I.savePreferenceUrl,!0),2):C.return()})},e1L=function(I){return _.e(function(C){return C.nextAddress==1?_.n(C,TIR(I.socsCookie,I.savePreferenceUrl),2):C.return()})},iwL=function(I){I=I.xhr.responseText;
if(!_.FO(I,")]}'"))throw new MW;I=JSON.parse(I.substr(4));if((I.type||1)>1)throw new MW;I=I.id;t7L(I);IT=_.xf(I);rzH(18E5,2);return I},nVy=function(I,C){C=new wFR(C);
t7L("");IT=_.X7P(C);I>0&&rzH(12E4,I-1);throw C;},rzH=function(I,C){_.FT(function(){_.x2F().then(iwL,function(y){return nVy(C,y)}).thenCatch(_.nQ)},I)},USR=function(){var I=_.JZH();
if(I!==void 0)return _.mr(I);IT||(IT=_.x2F().then(iwL).thenCatch(function(C){return nVy(2,C)}));
return IT},P$L=function(){var I=document;
return _.AX(["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],function(C){return"on"+C.toLowerCase()in I})},LxK=function(I){I.addEventListener("click",function(C){var y=C.target;
y&&y.getAttribute("href")&&(y=y.getAttribute("href"),_.XG(window,y,"_blank"),C.preventDefault(),C.stopImmediatePropagation())})},DyP=function(I){var C,y,k,F=(k=(y=((C=I.mainDownloadsListEntity)!=null?C:{})[_.s$z])==null?void 0:y.refresh)!=null?k:"",z;
I=(z=I.refresh)==null?void 0:z[F];F=I!=null?I:{};return(F==null?0:F.refreshTime)?Number(F==null?void 0:F.refreshTime):0},pFP=function(I,C){var y=_.l6(I);
return C.every(function(k){var F;k=k==null?void 0:(F=k.playbackDataEntity)==null?void 0:F.key;if(!k)return!1;F=_.TL(_.Fy(k).entityId,"mainVideoEntity");return!!y[F]})},QeK=function(I){I=_.Nk(I.entities);
return _.d7K(I).length},NIY=function(I,C){if(C){var y;
I=(y=_.cg(I.entities,"downloadQualityPickerEntity",C))!=null?y:void 0}else I=void 0;return I},lvH=function(){VPB||(_.Bg=_.aNs,VPB=new jej);
return VPB},XF8=function(I){var C=document.getElementsByTagName("ytd-enforcement-message-view-model");
C.length===0||getComputedStyle(C[0]).display==="none"?I(0,"p.h_"):I(1,"p.h_")},Ct=function(I){var C,y;
(I=(y=_.l(I==null?void 0:I.commandMetadata,_.It))==null?void 0:y.url)&&(C=_.CeI(I));return C},$yL=function(){sz=0;
var I=[_.np(!0)];oT&&_.uW(oT,"yt-window-resized",I)},R1R=function(){sz||(sz=_.b$.addLowPriorityJob($yL,200))},YLY=function(){yi=0;
bwL=_.GM5(document);var I=[bwL];oT&&_.uW(oT,"yt-window-scrolled",I)},GDM=function(){yi||(yi=_.b$.addLowPriorityJob(YLY,200))},SLY=function(I){I=I===void 0?null:I;
fvP.push(_.ae(window,"resize",R1R));fvP.push(_.ae(window,"scroll",GDM));I&&(oT=I)},KxB=function(I){_.e(function(C){if(C.nextAddress==1)return _.n(C,I.delete("yt-appshell-assets"),2);
_.oI(C)})},AzL=function(I){return _.qS((0,_.HoP)(),I)},vVK=function(){var I;
_.e(function(C){return C.nextAddress==1?_.n(C,k0.getInstance(),2):(I=C.yieldResult)?_.n(C,gVR(I),0):C.jumpTo(0)})},dyK=function(){var I;
_.e(function(C){return C.nextAddress==1?_.n(C,FY.getInstance(),2):(I=C.yieldResult)?_.n(C,WxR(I),0):C.jumpTo(0)})},xyL=function(I){KxB(I);
vVK();dyK()},qLH=function(I){var C,y;
return _.e(function(k){if(k.nextAddress==1)return _.n(k,_.YPm(I),2);if(C=k.yieldResult){var F;a:{if(C.headers&&(F=C.headers.get("date"))&&(F=Date.parse(F),!isNaN(F))){F=Math.round((0,_.JY)()-F);break a}F=-1}y=F;if(y>-1)return k.return(y)}return k.return(-1)})},myY=function(){var I=_.sF.caches,C=_.g5("IS_SHELL_LOAD"),y,k;
_.e(function(F){if(F.nextAddress==1)return y=-1,C?_.n(F,qLH(I),3):(k=_.jr(),y=Math.round((0,_.JY)()-k),F.jumpTo(2));F.nextAddress!=2&&(y=F.yieldResult);y>=0&&y<2147483648&&_.Gg({appInstallDataAgeMs:y});_.oI(F)})},ZwM=function(I){var C=_.dQ(_.sF.location.href),y={};
"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(k){var F=C.JSC$7905_queryData_.getValues(k);if(F==null?0:F.length)y[k]=F});
return _.JM(I,new Map(Object.entries(y)))},BIY=function(I){I=I.match(/(.*)::.*::.*/);
if(I!==null)return I[1]},EVM=function(I){if(_.HXz()){var C=Object.keys(window.localStorage);
C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=BIY(y);k===void 0||I.includes(k)||self.localStorage.removeItem(y)}}},h1j=function(){if(!_.HXz())return!1;
var I=_.Lh(),C=Object.keys(window.localStorage);C=_.T(C);for(var y=C.next();!y.done;y=C.next())if(y=BIY(y.value),y!==void 0&&y!==I)return!0;return!1},UyM=function(I){return _.xL("NotificationsDisabled",I)},HwM=function(){return Notification.permission!="granted"?Promise.resolve():_.SjB().then(function(I){return I?I.pushManager.getSubscription().then(function(C){if(C)return Promise.resolve();
C={userVisibleOnly:!0,applicationServerKey:_.T0("BPr83OIQ0ehMqbAUQWSaFHZOJeRvvXddR5EONgwwQcHR6FRe6G43LgD36pJq1IuGN10mmMv-V7IKSIZludF9G1k")};return I.pushManager.subscribe(C).then(function(){return Promise.resolve()},function(){return Promise.resolve()})}):Promise.resolve()}).catch(function(){})},tPB=function(I){return _.SjB().then(function(C){if(!C||!C.active)return Promise.reject(new _.ph("serviceworker.postMessage",I,C));
try{return C.active.postMessage(I),Promise.resolve()}catch(y){return Promise.reject(y)}})},JzL=function(){tPB({type:"notifications_register",
data:_.Aq("ID_TOKEN")})},avR=function(){var I={isWide:_.wC.get("wide","0")==="1"},C=_.pA();
if(C=C.getFlag(165)||C.getFlag(174))I.theme=_.fp(!0);if(_.rxz()){var y=_.G8()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT";I.systemTheme=y}!C&&_.V("parent_tools_enable_app_settings")&&_.B5(window.location.href).theme!==void 0&&(I.theme=_.fp());if((C=u5)?!_.Le.equals(C,I):I)C={currentValue:I},Owy&&(C.timeSinceLastSnapshotSecs=Math.round(((0,_.JY)()-Owy)/1E3)),u5&&(C.previousValue=u5),_.b2("appSettingsCaptured",C),u5=I,Owy=(0,_.JY)()},MPH=function(){if(!_.g5("LOGGED_IN"))return Promise.resolve(!1);
var I=_.oD("service_worker_push_force_notification_prompt_tag");return I?_.ZT("PromptTags").then(function(C){if(!C)return!0;var y=[];try{y=JSON.parse(C)}catch(k){return!1}return y&&y.indexOf(I)==-1}):Promise.resolve(!1)},IiM=function(){var I=_.s8("service_worker_push_prompt_delay_microseconds");
return I?_.ZT("PromptTime").then(function(C){return Promise.resolve(Date.now()-I>(C||0))}):Promise.resolve(!0)},C2S=function(){var I=_.s8("service_worker_push_logged_out_prompt_watches");
return I==-1?Promise.resolve(!1):_.ZT("WatchCount").then(function(C){return C>=I})},s0y=function(){var I=_.HP(document,"yt-push-prompt-modal-bg");
I&&_.ey(I)},ooj=function(){return _.s8("service_worker_push_prompt_cap")==-1?Promise.resolve(!0):_.ZT("PromptCount").then(function(I){I||(I=0);
return Promise.resolve(I<_.s8("service_worker_push_prompt_cap"))})},y3y=function(I){return _.g5("SERVICE_WORKER_PROMPT_NOTIFICATIONS")||_.g5("LOGGED_IN")&&(I===void 0?0:I)?MPH().then(function(C){if(C)return!0;
C=[ooj(),IiM()];_.g5("LOGGED_IN")||C.push(C2S());return Promise.all(C).then(function(y){return y.every(function(k){return k})})}):Promise.resolve(!1)},kBR=function(){_.ZT("PromptCount").then(function(I){return _.xL("PromptCount",I+1)}).then(function(){return _.xL("PromptTime",Date.now())}).then(function(){var I=_.oD("service_worker_push_force_notification_prompt_tag");
if(I)return _.ZT("PromptTags").then(function(C){var y=[];if(C)try{y=JSON.parse(C)}catch(k){return!1}y||(y=[]);y.push(I);return _.xL("PromptTags",JSON.stringify(y))})})},u9B=function(){FUY||s0y()},zjS=function(I){I.style.zIndex=2147483648;
I.style.pointerEvents="auto";I.style.backgroundColor="rgba(0, 0, 0, 0.6)";I.style.width="100%";I.style.height="100vh";I.style.position="absolute";I.style.top="0";I.style.left="0";I.style.border="none"},TTy=function(){var I=_.HP(document,"yt-push-prompt-modal-bg");
FUY=_.V("service_worker_push_prompt_modal_ignore_click");I?zjS(I):(I=_.Rd("div",{id:"yt-push-prompt-modal-bg"}),zjS(I),document.body.appendChild(I),_.Sqm(document,"click",u9B))},c3R=function(){var I=arguments;
_.V("service_worker_push_prompt_modal_enable")&&TTy();return Notification.requestPermission().then(function(C){s0y();var y=document.getElementById("ticker");y&&(y.className=y.classList.remove("show"));if(C=="granted")return HwM().then(function(){UyM(!1);JzL();return Promise.resolve(!0)});
C=="denied"&&JzL();return Promise.resolve(!1)}).catch(function(){s0y();
return Promise.reject.apply(Promise,_.Py(I))})},ejH=function(I){I=I===void 0?!1:I;
var C=_.LBI().client;if(C&&C.browserVersion){var y=C.browserVersion,k=C.browserName=="CHROME"&&tr(y,"50.0.0")<0;C=C.browserName=="OPERA"&&tr(y,"42.0.0")<0;if(k||C)return Promise.resolve()}return _.g5R().then(function(F){if(!F)return Promise.resolve();F=HwM().then(function(){return tPB({type:"notifications_check_registration",data:_.Aq("ID_TOKEN")})});
return Notification.permission!="default"?F.catch(function(){}):F.then(function(){return y3y(I)}).then(function(z){if(z)return kBR(),c3R().then(function(){})}).catch(function(){})})},r3R=function(I){return _.Kgj(I)?ejH():Promise.resolve()},iij=function(I){var C=I.installing||I.waiting;
return I.active||!C?Promise.resolve(I):new Promise(function(y){var k=function(F){F=F.target;if(F.state==="activated"||F.state==="redundant")C.removeEventListener("statechange",k),y(I)};
C.addEventListener("statechange",k)})},wHL=function(){var I=new _.N1I("SLI_NAME_YOUTUBE_WEB_SERVICE_WORKER_REGISTRATION","",12E4,"TIMEOUT");
_.iz(I,{mainAppWeb:_.gU()});var C=_.woS;_.V("service_worker_forward_exp_params")&&(C=ZwM(C));try{var y=_.QsY(C).catch(function(){_.wA(I,"FAILURE");return new Promise(function(){})});
_.V("service_worker_push_enabled")&&y.then(function(k){_.wA(I,"SUCCESS");return k}).then(iij).then(r3R)}catch(k){if(_.wA(I,"FAILURE"),k.name!=="SecurityError")throw k;
}},noy=function(){navigator.serviceWorker&&navigator.serviceWorker.getRegistrations&&window.location.protocol==="https:"&&wHL()},P28=function(I,C){var y={};
C&&(y.serializedYpcFamilyCreateLoggingParams=C);_.b2(I,y);_.Yo()},LUy=function(I,C){var y={};
y.serializedYpcRefundFlowLoggingParams=C;I&&(y.eventType=I);_.b2("ypcRefundFlowEvent",y);_.Yo()},DUP=function(I){I&&_.VHK("transactionFlowSucceeded",I)},pHy=function(I){I&&_.jT("ypcCancelFlowFailed","serializedYpcCancelFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_YPC_CANCEL_RECURRENCE_TRANSACTION_FAILURE")},Q0L=function(I){var C,y,k,F,z,c,r;
_.e(function(w){if(w.nextAddress==1)return _.n(w,_.nhI(),2);if(w.nextAddress!=3){if(!w.yieldResult)return w.return(!1);C=[];return _.n(w,_.JE.keys(),3)}y=w.yieldResult;k=_.T(y);for(F=k.next();!F.done;F=k.next())z=F.value,c=_.iOt(z),r=c.datasyncId,!r||I.includes(r)||C.push(_.JE.delete(z));return w.return(Promise.all(C).then(function(L){return L.some(function(D){return D})}))})},NT8=function(){var I,C,y,k,F,z,c;
return _.e(function(r){if(r.nextAddress==1)return _.n(r,_.nhI(),2);if(r.nextAddress!=3){if(!r.yieldResult)return r.return(!1);I=_.Lh("cache contains other");return _.n(r,_.JE.keys(),3)}C=r.yieldResult;y=_.T(C);for(k=y.next();!k.done;k=y.next())if(F=k.value,z=_.iOt(F),(c=z.datasyncId)&&c!==I)return r.return(!0);return r.return(!1)})},VNR=function(){var I=_.N().resolve(_.aU(_.ajb));
return I?I.getCurrentTime():0},j0j=function(){var I,C,y,k,F,z,c,r,w,L,D,p,Q,X;
return _.e(function(b){switch(b.nextAddress){case 1:I={},C=_.Tjm(),y=_.T(Object.entries(C)),k=y.next();case 4:if(k.done){b.jumpTo(3);break}F=k.value;z=_.T(F);c=z.next().value;r=z.next().value;w=c;L=r;if(!L){b.jumpTo(5);break}return _.n(b,L(),8);case 8:I[w]=b.yieldResult;case 5:k=y.next();b.jumpTo(4);break;case 2:D=_.T(void 0),p=D.next();case 9:if(p.done){b.jumpTo(3);break}Q=p.value;X=C[Q];if(!X){b.jumpTo(10);break}return _.n(b,X(),13);case 13:I[Q]=b.yieldResult;case 10:p=D.next();b.jumpTo(9);break;
case 3:return b.return(I)}})},liR=function(){var I;
_.e(function(C){if(C.nextAddress==1)return _.n(C,j0j(),2);I=C.yieldResult;return _.n(C,navigator.clipboard.writeText(JSON.stringify(I,null,2)),0)})},XHH=function(I,C){return _.cg(I.entities,"superThanksSelectedTierEntity",C)},$UY=function(I){var C;
return(C=I.sharedUi)==null?void 0:C.currentPageType},RjB=function(I,C){return{popup:{searchSuggestionReportDialog:{searchQuery:I,
title:_.PQ("SBOX_INAPPROPRIATE_TITLE"),suggestions:C,categoryLabel:_.PQ("SBOX_INAPPROPRIATE_CATEGORY"),categories:[{id:1,label:_.PQ("SBOX_INAPPROPRIATE_HATEFUL")},{id:2,label:_.PQ("SBOX_INAPPROPRIATE_EXPLICIT")},{id:3,label:_.PQ("SBOX_INAPPROPRIATE_VIOLENT")},{id:4,label:_.PQ("SBOX_INAPPROPRIATE_DANGEROUS")},{id:5,label:_.PQ("SBOX_INAPPROPRIATE_OTHER"),reasonLabel:_.PQ("SBOX_INAPPROPRIATE_REASON")}],detailsPlaceholderLabel:_.PQ("SBOX_INAPPROPRIATE_ADDITIONAL"),cancelButtonLabel:_.PQ("SBOX_INAPPROPRIATE_CANCEL"),
submitButtonLabel:_.PQ("SBOX_INAPPROPRIATE_REPORT")}},popupType:"DIALOG"}},biB=function(I){var C,y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t;
return _.e(function(U){switch(U.nextAddress){case 1:return _.n(U,_.i6(),2);case 2:return(C=U.yieldResult)?_.n(U,_.TGO(C),3):U.return();case 3:y=U.yieldResult;if(!y)return U.return();F=((k=y.offlineVideos)==null?void 0:k.length)||0;c=((z=y.offlinePlaylists)==null?void 0:z.length)||0;if(F===0&&c===0)return U.return();r=0;if(y.offlineVideos)for(w=_.T(y.offlineVideos),L=w.next();!L.done;L=w.next())D=L.value,"OFFLINE_VIDEO_STATE_PLAYABLE"===D.videoState&&(r+=1);I.offline_videos_count=F.toString();_.V("kevlar_log_offline_current_network_type_ks")||
(I.offline_current_network_type=(p=_.Msm())!=null?p:"CONN_INVALID");_.V("kevlar_log_updated_time_for_smart_downloads")&&(Q=_.Hg().getState().entities,X=_.RQ(Q),b=DyP(Q),I.offline_smart_downloads_last_sync_time_ms=X.toString(),I.offline_smart_downloads_next_sync_time_ms=b.toString());I.offline_videos_playable=r.toString();I.offline_playlists_count=c.toString();if(!_.V("woffle_used_state_report")){U.jumpTo(4);break}y.offlineVideos&&(S=y.offlineVideos.reduce(function(yW,a){a.downloadedBytes&&(yW+=Number(a.downloadedBytes));
return yW},0).toString())&&(I.offline_used_disk_space_bytes=S);
if(!((A=navigator)==null?0:(x=A.storage)==null?0:x.estimate)){U.jumpTo(4);break}return _.n(U,navigator.storage.estimate(),6);case 6:B=U.yieldResult,I.offline_free_disk_space_bytes=(((t=B)==null?void 0:t.quota)||0).toString();case 4:I.offline_client_state=JSON.stringify(y),_.oI(U)}})},YsY=function(I){I=I.match(/(.*)::.*::.*/);
if(I!==null)return I[1]},GBM=function(I){if(_.zUO()){var C=Object.keys(window.sessionStorage);
C=_.T(C);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=YsY(y);k===void 0||I.includes(k)||self.sessionStorage.removeItem(y)}}},fij=function(){if(!_.zUO())return!1;
var I=_.Lh(),C=Object.keys(window.sessionStorage);C=_.T(C);for(var y=C.next();!y.done;y=C.next())if(y=YsY(y.value),y!==void 0&&y!==I)return!0;return!1},zY=function(I,C,y){(_.V("desktop_keyboard_shortcut_usage_log")||y&&_.V("web_shorts_keyboard_shortcut_usage_log"))&&(C?_.hr.get(I):_.Eg.get(I))&&(I=C?_.HU.get(I):_.Ug.get(I))&&_.EN(_.Si(),I)},SsR=function(I,C){C.stack&&(I.stack+="\n"+C.stack);
return I},goR=function(I){var C=TY(I,"Content-Type");
if(!C)return null;C=C.toLowerCase();if(C.startsWith("application/json"))return C.startsWith("application/json+protobuf")?new KUL:new _.sJ;if(C.startsWith("application/x-protobuf")){I=TY(I,"Content-Transfer-Encoding");if(!I)return new c8;if(I.toLowerCase()=="base64")return new A3Y}return null},EoK=function(I,C,y,k){var F=new voY(function(r,w){return WUR.has(w)?r.sentinel==="gal"&&r.event!==void 0:!1},function(r){r.event?(r=dUy(r.event),r=!r||xUY(k,r)?!0:_.Pv(I.lastEvent,eM,2,rw)?!_.Pv(r,i5,1,rw)&&
!_.Pv(r,eM,2,rw):!_.Pv(r,i5,1,rw)&&!_.Pv(r,eM,3,rw)):r=!0;
return r});
y=_.JM(I.trustedUrl,new Map([["result_channel","5"],["origin",(new URL(window.location.href)).origin],["color_scheme",qsB(y)]]));if(I.nestedOrigins!==void 0)for(var z=_.T(I.nestedOrigins),c=z.next();!c.done;c=z.next())y=_.JM(y,new Map([["origin",c.value]]));return mUH(F,y,C).then(function(r){r=Zij(r.event);if(_.Pv(r,i5,1,rw)){var w,L=(w=_.Sk(r,i5,1,rw))==null?void 0:_.YC(w,2);L&&k.JSC$16981_logErrorEvent(BT8(L));w=_.Sk(r,i5,1,rw);_.YC(w,2)===4?(r=_.Sk(r,i5,1,rw),r={statusCode:11,statusMessage:_.b4(r,
3)}):(r=_.Sk(r,i5,1,rw),r={statusCode:12,statusMessage:_.b4(r,3)});return r}_.Pv(r,eM,3,rw)?(r=_.Sk(r,eM,3,rw),r={statusCode:1,consentLanguageKeys:_.b4(r,2)}):r={statusCode:1};return r}).catch(function(r){return r.errorCode!==void 0?{statusCode:r.errorCode,
statusMessage:r.errorMessage}:{statusCode:7,statusMessage:"Data Usage Notice screen did not return result"}})},tNY=function(I){var C={};
if(I===void 0||I===null)return C;I.getToken()!==void 0&&hj8(I.getToken())&&hj8(I.getToken()).length>0&&(C.scopes=new Set(hj8(I.getToken())));I.getToken()!==void 0&&UUM(I.getToken())&&UUM(I.getToken()).length>0&&(C.capabilities=new Set(UUM(I.getToken())));_.b4(I,3)!==void 0&&(C.consistencyKey=_.b4(I,3));I.getName()!==void 0&&I.getName()!==""&&(C.linkName=I.getName());_.nF(I,HiH,4)&&(I=_.MS(I,HiH,4),I=Object.assign({},_.b4(I,1)&&{userId:_.b4(I,1)},_.b4(I,2)&&{displayName:_.b4(I,2)},_.b4(I,3)&&{email:_.b4(I,
3)},_.b4(I,5)&&{username:_.b4(I,5)},_.b4(I,4)&&{profilePicture:_.b4(I,4)}),C.profile=I);return C},J3P=function(I,C){var y=I.flowParams;
return{serviceId:y.serviceId,sessionId:y.sessionId,currentFlow:I.currentFlow,googleScopesString:C,linkingSessionSerialized:I.session.serialize(),consentLanguageKeys:y.consentLanguageKeys,callerState:I.callerState,dynamicUrlParameters:y.dynamicUrlParameters,partnerConfigMinReadTimestamp:y.partnerConfigMinReadTimestamp}},CfS=function(I){var C=I.googleScopes!==void 0?Array.from(I.googleScopes).join(","):"";
Oij(J3P(I,C));C=aiY(I);return C===null?Promise.resolve(MNK):C.start().then(function(y){var k,F=(k=y.link)==null?void 0:k.consistencyKey;return y.statusCode===1&&I.googleScopes!==void 0&&I.googleScopes.size>0&&F!==void 0?(k=I.flowParams,I7K(k.serviceId,k.sessionId,I.googleScopes,F,k.galService,I.config,y)):y})},sRB=function(I){var C=aiY(I);
return C===null?Promise.resolve(ww({statusCode:7,statusMessage:"Failed to create flow object"},I.callerState)):C.complete().then(function(y){var k,F=(k=y.link)==null?void 0:k.consistencyKey;return y.statusCode===1&&I.googleScopes!==void 0&&I.googleScopes.size>0&&F!==void 0?(k=I.flowParams,I7K(k.serviceId,k.sessionId,I.googleScopes,F,k.galService,I.config,y)):ww(y,I.callerState)},function(y){return ww({statusCode:12,
statusMessage:"Failed to complete the flow: "+y.message},I.callerState)})},I7K=function(I,C,y,k,F,z,c){return odR(F,{serviceId:I,
sessionId:C,googleScopes:y,consistencyKey:k}).then(function(){return c},function(r){return F.deleteLink({serviceId:I,
sessionId:C,accountLinkingEntryPoint:z.accountLinkingEntryPoint}).then(function(){return{statusCode:12,statusMesaage:"2-way linking failed: "+r.message}},function(w){return{statusCode:12,
statusMesaage:"2-way linking failed and did not cleanup the link:\n                            "+w.message}})})},aiY=function(I){switch(I.currentFlow){case 1:var C=I.flowParams;
I=_.MS(I.session,yny,1);return nt.createOAuthFlow(C,I);case 2:case 3:return C=I.flowParams,I=_.MS(I.session,k2H,6),P8.createStreamlinedFlow(C,I);default:return null}},Foj=function(I,C){I===2&&(I=3);
var y=0;Lt.indexOf(I)!==-1&&(y=Lt.indexOf(I)+1);for(I=y;I<Lt.length;I++)if(C.has(Lt[I]))return Lt[I]},TXY=function(I){var C=I.serviceId;
var y=I.sessionId;var k=I.config;var F=I.galService;var z=I.capabilities;var c=I.scopes;var r=I.loginHint;var w=I.callerState;var L=I.consentLanguageKeys;var D=I.linkName;var p=I.dynamicUrlParameters;var Q=I.partnerConfigMinReadTimestamp;I=k.dataUsageNoticeConfig?k.dataUsageNoticeConfig.enabledDataUsageNoticeUis:void 0;return F.startLinkingSession({serviceId:C,sessionId:y,capabilities:z,scopes:c,loginHint:r,callerState:w,supportedFlows:u1y(k.supportedFlows),completionUrl:k.completionUrl,accountLinkingEntryPoint:k.accountLinkingEntryPoint,
consentLanguageKeys:L,dataUsageNoticeConfig:I,linkName:D,dynamicUrlParameters:p,partnerConfigMinReadTimestamp:Q}).then(function(X){return new z0K(C,y,k,F,X,void 0,w,L,p,Q)})},w1L=function(I,C,y){a:{var k=new cnK;
if(k.storage!==null)try{var F=k.storage.get("SAVED_SESSION");if(F===void 0){var z=null;break a}if(F.serviceId===I){z=F;break a}}catch(c){}z=null}if(z===null)return Promise.resolve({statusCode:2});e0L(I);k=rnH(z.linkingSessionSerialized);return i7L(new z0K(I,z.sessionId,C,y,k,z.googleScopesString!==""&&z.googleScopesString!==void 0?new Set(z.googleScopesString.split(",")):void 0,z.callerState,z.consentLanguageKeys,z.dynamicUrlParameters,z.partnerConfigMinReadTimestamp),z.currentFlow,z.consentLanguageKeys)},
Oij=function(I){var C=new cnK;
C.storage!==null&&C.storage.set("SAVED_SESSION",I)},e0L=function(I){var C=new cnK;
if(C.storage!==null){var y=C.storage.get("SAVED_SESSION");y!==void 0&&y.serviceId===I&&C.storage.remove("SAVED_SESSION")}},u1y=function(I){var C=new Set;
I=_.T(I);for(var y=I.next();!y.done;y=I.next())y=y.value,y!==1&&ndY.has(y)&&C.add(ndY.get(y));return C},ww=function(I,C){C!==void 0&&(I.callerState=C);
return I},PfK=function(I){switch(I){case 5:return 3;
case 7:return 4;case 16:return 5;case 13:return 7;default:return 12}},p1K=function(){var I={timeout:5E3};
I=I===void 0?{}:I;return LoL!=null?LoL:LoL=DsY(I)},QRY=function(){return new Promise(function(I,C){window.gapi.load("client",{callback:I,
onerror:C})})},DsY=function(I){I=I===void 0?{}:I;
var C;return _.e(function(y){if(y.nextAddress==1){if((C=window.gapi)&&C.client&&C.client.load)y=y.return(C);else{var k=_.Ca("https://apis.google.com/js/api.js");y=_.n(y,_.bL(k,I),2)}return y}if(y.nextAddress!=3){C=window.gapi;if(!C)throw Error("Yj");return C.client&&C.client.load?y.jumpTo(3):_.n(y,QRY(),3)}return y.return(C)})},VsL=function(I,C){C=C===void 0?0:C;
var y=I.auth2.getAuthInstance().currentUser.get(),k=y.getAuthResponse(!0);if(k&&k.expires_at-Date.now()<C){if(NXR.has(I))return NXR.get(I);C=Promise.resolve(y.reloadAuthResponse()).finally(function(){NXR.delete(I)});
NXR.set(I,C);return C}return Promise.resolve()},jRR=function(I,C){var y;
return I.client.init({apiKey:C.apiKey,clientId:C.clientId,scope:C.scope,discoveryDocs:C.discoveryDocs,hostedDomain:C.hostedDomain,fetchBasicProfile:(y=C.fetchBasicProfile)!=null?y:!0})},l7y=function(I){if(I.queryParams!=null){var C={},y;
for(y in I.queryParams)I.queryParams[y]!==void 0&&(C[y]=I.queryParams[y]);I.queryParams=C}},R0K=function(I){return new X1K(I,new $sL(I))},G2S=function(I,C){C=C===void 0?!1:C;
var y=document.createElement("div");I&&(y.style.transform="scaleX(-1)");y.style.backgroundColor=C?"rgba(138,180,248,.24)":"#e8f0fe";y.style.height="4px";y.style.overflow="hidden";y.style.position="absolute";y.style.top="0";y.style.width="100%";y.style.zIndex="1500";y.setAttribute("aria-label","Loading");y.setAttribute("aria-live","polite");I=document.createElement("style");I.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  }";
y.appendChild(I);I=b7K();I.style.animation="omdc-linear-progress-primary-indeterminate-translate 2s infinite linear";I.style.left="-145.166611%";var k=YoL(C);k.style.animation="omdc-linear-progress-primary-indeterminate-scale 2s infinite linear";I.appendChild(k);y.appendChild(I);I=b7K();I.style.animation="omdc-linear-progress-secondary-indeterminate-translate 2s infinite linear";I.style.left="-54.888891%";C=YoL(C);C.style.animation="omdc-linear-progress-secondary-indeterminate-scale 2s infinite linear";
I.appendChild(C);y.appendChild(I);return y},b7K=function(){var I=document.createElement("div");
I.style.height="100%";I.style.position="absolute";I.style.transformOrigin="top left";I.style.width="100%";return I},YoL=function(I){var C=document.createElement("span");
C.style.borderTop=I?"4px solid #669df6":"4px solid #4285f4";C.style.display="inline-block";C.style.position="absolute";C.style.width="100%";return C},f7j=function(I){return I==null?void 0:_.Lzq(I).valueOf()},gd8=function(I){var C=document.body,y=!1,k=function(){y||(y=!0,SoL(F,z),setTimeout(function(){C.removeChild(z);
C.removeChild(F)},150))},F=KoB(I,getComputedStyle(C).direction==="rtl",k),z=AnY(k);
SoL(F,z);C.appendChild(z);C.appendChild(F);window.requestAnimationFrame(function(){z.style.opacity="1";F.style.opacity="1";F.style.transform="translate(-50%, -50%) scale(1)";F.children[0].focus()})},KoB=function(I,C,y){var k=document.createElement("div");
k.style.position="fixed";k.style.alignItems="center";k.style.backgroundColor=I?"rgb(32, 33, 36)":"white";k.style.boxShadow="0px 1px 2px rgba(60,64,67,0.3), 0px 2px 6px 2px rgba(60,64,67,0.15);";k.style.display="flex";k.style.flexDirection="column";k.style.justifyContent="center";k.style.left="50%";k.style.top="50%";k.style.transition="opacity 75ms linear,transform 150ms cubic-bezier(0,0,0.2,1)";k.style.zIndex="2002";document.body.clientWidth>=660?(k.style.borderRadius="8px",k.style.minHeight="220px",
k.style.maxHeight="90%",k.style.maxWidth="90%",k.style.minWidth="540px"):(k.style.height="100%",k.style.width="100%");k.setAttribute("aria-label","Error");k.setAttribute("aria-modal","true");k.setAttribute("role","alertdialog");k.addEventListener("keydown",function(z){z.key==="Escape"&&y()});
C=vdM(I,C,y);k.appendChild(WoR(C));k.appendChild(C);var F=document.createElement("img");F.src=I?"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";F.style.height="72px";F.style.width="72px";F.style.color="#9aa0a6";F.setAttribute("alt","");k.appendChild(F);F=document.createElement("h1");F.textContent="Something went wrong.  Try again.";
F.style.fontFamily="'Google Sans', Roboto, Arial, sans-serif";F.style.lineHeight="24px";F.style.fontSize="16px";F.style.textAlign="center";F.style.letterSpacing="0.1px";F.style.color=I?"rgb(232,234,237)":"#3c4043";k.appendChild(F);k.appendChild(WoR(C));return k},vdM=function(I,C,y){var k=document.createElement("button");
k.style.backgroundColor="transparent";k.style.border="none";k.style.borderRadius="50%";k.style.cursor="pointer";k.style.outline="none";k.style.padding="12px";k.setAttribute("aria-label","Close dialog");k.style.position="absolute";k.style.top="0";C?k.style.right="0":k.style.left="0";k.addEventListener("focus",function(){k.style.backgroundColor=I?"rgba(232, 234, 237,.12)":"rgba(0,0,0,.12)"});
k.addEventListener("blur",function(){k.style.backgroundColor="transparent"});
k.addEventListener("mouseenter",function(){k.style.backgroundColor=I?"rgba(232, 234, 237, .04) ":"rgba(0,0,0,.04)"});
k.addEventListener("mouseleave",function(){k.style.backgroundColor="transparent"});
k.addEventListener("click",y);k.addEventListener("keydown",function(F){F.key!=="Enter"&&F.key!=="Space"||y()});
C=document.createElement("img");C.src=I?"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey200-24dp/1x/gm_close_gm_grey200_24dp.png":"https://fonts.gstatic.com/s/i/googlematerialicons/close/v19/gm_grey600-24dp/1x/gm_close_gm_grey600_24dp.png";C.style.display="block";C.style.height="24px";C.style.width="24px";C.setAttribute("alt","");k.appendChild(C);return k},WoR=function(I){var C=document.createElement("div");
C.setAttribute("tabindex","0");C.setAttribute("aria-hidden","true");C.addEventListener("focus",function(){return void I.focus()});
return C},AnY=function(I){var C=document.createElement("div");
C.style.backgroundColor="rgba(32,33,36,0.6)";C.style.bottom="0";C.style.left="0";C.style.position="fixed";C.style.right="0";C.style.top="0";C.style.transition=" opacity 150 ms linear";C.style.zIndex="2001";C.addEventListener("click",I);return C},SoL=function(I,C){C.style.opacity="0";
I.style.opacity="0";I.style.transform="translate(-50%, -50%) scale(0.8)"},dsY=function(I,C){I.sandbox&&I.sandbox.add&&(I.sandbox.add("allow-same-origin","allow-scripts","allow-forms","allow-popups","allow-popups-to-escape-sandbox","allow-storage-access-by-user-activation"),I.sandbox.add("allow-downloads"));
I.src=C},DV=function(I){xsR.call(this,I)},pt=function(I,C){C=C===void 0?!1:C;
this.parsedImageUrl_=null;I instanceof qoK||(msR==void 0&&(msR=new Z7B),I=msR.parse(I.toString(),C));I=this.parsedImageUrl_=I;I.JSC$17212_parsedOptions_==void 0&&((C=I.getOptions())||(C=""),I.JSC$17212_parsedOptions_=(new BX8).parse(C));xsR.call(this,I.JSC$17212_parsedOptions_);this.protocolPrefix_=this.parsedImageUrl_.originalPrefix_;I=this.parsedImageUrl_;C=I.uri_.JSC$7905_port_;this.JSC$17214_domain_=I.uri_.JSC$7905_domain_+(C?":"+C:"");this.JSC$17214_query_=this.parsedImageUrl_.uri_.JSC$7905_queryData_.toString()},
EdP=function(I){this.mode=4;
this.data=I;this.parsedData=[];I=0;for(var C=this.data.length;I<C;I++){var y=[],k=this.data.charCodeAt(I);k>65536?(y[0]=240|(k&1835008)>>>18,y[1]=128|(k&258048)>>>12,y[2]=128|(k&4032)>>>6,y[3]=128|k&63):k>2048?(y[0]=224|(k&61440)>>>12,y[1]=128|(k&4032)>>>6,y[2]=128|k&63):k>128?(y[0]=192|(k&1984)>>>6,y[1]=128|k&63):y[0]=k;this.parsedData.push(y)}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))},h0R=function(I){this.typeNumber=0;
this.errorCorrectLevel=I===void 0?2:I;this.modules=null;this.moduleCount=0;this.dataCache=null;this.dataList=[]},Qi=function(I,C){if(I.length==void 0)throw Error("sk`"+I.length+"`"+C);
for(var y=0;y<I.length&&I[y]==0;)y++;this.num=Array(I.length-y+C);for(C=0;C<I.length-y;C++)this.num[C]=I[C+y]},UsL=function(I,C){this.totalCount=I;
this.dataCount=C},H7Y=function(){this.buffer=[];
this.length=0},tsY=function(){var I=!1;
if(_.emY()){I=_.wH();var C="";_.wsX()?(C=/Windows (?:NT|Phone) ([0-9.]+)/,C=(I=C.exec(I))?I[1]:"0.0"):_.f9()?(C=/(?:iPhone|iPod|iPad|CPU)\s+OS\s+(\S+)/,C=(I=C.exec(I))&&I[1].replace(/_/g,".")):_.i9K()?(C=/Mac OS X ([0-9_.]+)/,C=(I=C.exec(I))?I[1].replace(/_/g,"."):"10"):_.iK(_.wH(),"KaiOS")?(C=/(?:KaiOS)\/(\S+)/i,C=(I=C.exec(I))&&I[1]):_.emY()?(C=/Android\s+([^\);]+)(\)|;)/,C=(I=C.exec(I))&&I[1]):_.nzI()&&(C=/(?:CrOS\s+(?:i686|x86_64)\s+([0-9.]+))/,C=(I=C.exec(I))&&I[1]);I=C||""}return I},CGM=function(I,
C){this.JSC$17237__htOption={width:256,
height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:2};if(C)for(var y in C)this.JSC$17237__htOption[y]=C[y];this.JSC$17237__htOption.useSVG&&(JnL=O7S);this.JSC$17237__android=tsY();this.JSC$17237__el=I;this._oQRCode=null;this._oDrawing=new JnL(this.JSC$17237__el,this.JSC$17237__htOption);this.JSC$17237__htOption.text&&(I=this.JSC$17237__htOption.text,this._oQRCode=new h0R(this.JSC$17237__htOption.correctLevel),a78(this._oQRCode,I),C=this._oQRCode,MsL(C,!1,ICR(C)),this.JSC$17237__el.title=
I,this._oDrawing.draw(this._oQRCode),this.makeImage())},sCR=function(I,C,y,k,F){I.save();
var z=new Path2D;z.roundRect(C,y,k*7,k*7,k*2);z.roundRect(C+k,y+k,k*5,k*5,k*1.3);z.roundRect(C+2*k,y+2*k,k*3,k*3,k);I.clip(z,"evenodd");I.fillStyle=F;I.fillRect(0,0,I.canvas.width,I.canvas.height);I.restore()},NA=function(I,C){if(typeof I!=="function")throw Error("vk");
return _.sF.setTimeout(function(){I()},C)},Vi=function(){},y$Y=function(I,C,y,k,F){(new Vi).debug("TestLoadImageWithRetries: "+F);
if(k==0)y(!1);else{var z=F||0;k--;oBy(I,C,function(c){c?y(!0):_.sF.setTimeout(function(){y$Y(I,C,y,k,z)},z)})}},oBy=function(I,C,y){var k=new Vi;
k.debug("TestLoadImage: loading "+I);var F=new Image;F.onload=function(){try{k.debug("TestLoadImage: loaded"),k5R(F),y(!0)}catch(z){}};
F.onerror=function(){try{k.debug("TestLoadImage: error"),k5R(F),y(!1)}catch(z){}};
F.onabort=function(){try{k.debug("TestLoadImage: abort"),k5R(F),y(!1)}catch(z){}};
F.ontimeout=function(){try{k.debug("TestLoadImage: timeout"),k5R(F),y(!1)}catch(z){}};
_.sF.setTimeout(function(){if(F.ontimeout)F.ontimeout()},C);
F.src=I},k5R=function(I){I.onload=null;
I.onerror=null;I.onabort=null;I.ontimeout=null},FrY=function(){this.front_=[];
this.back_=[]},udR=function(I,C){_.LL.call(this);
this.delay_=new _.pL(this.JSC$17363_onTick_,0,this);_.kq(this,this.delay_);this.JSC$17361_interval_=5E3;this.nextTickTime_=0;if(typeof I==="function")C&&(I=(0,_.DD)(I,C));else if(I&&typeof I.handleEvent==="function")I=(0,_.DD)(I.handleEvent,I);else throw Error("Ca");this.JSC$17363_listener_=I},jM=function(I,C,y,k,F,z,c,r,w,L,D,p,Q,X){y=y===void 0?!1:y;
k=k===void 0?function(){return""}:k;
F=F===void 0?!1:F;z=z===void 0?!1:z;c=c===void 0?!1:c;r=r===void 0?function(){return _.er({})}:r;
w=w===void 0?!1:w;D=D===void 0?!1:D;p=p===void 0?!1:p;Q=Q===void 0?!1:Q;X=X===void 0?!1:X;this.JSC$17364_pathPrefix_=I;this.defaultQueryParams_=C;this.pubsub_=new _.rC;this.reconnectTimer_=new udR(this.safeReconnect_,this);this.JSC$17364_channel_=null;this.JSC$17364_disposed_=!1;this.connectionParams_=null;this.sCookie_="";this.disconnectUi_=this.connectUi_=0;this.JSC$17364_pendingMessages_=[];this.enableAsyncTest_=y;this.JSC$17364_getXsrfToken_=k;this.useAsyncBrowserChannelHandler_=z;this.getAuthorizationHeader_=
r;this.getAuthorizationHeaderSync_=L;this.enableCachedUpdateAuthorizationHeader_=c;this.updateAuthorizationHeaderPromise_=null;this.connectPromise_=_.er();this.enableLoungeTokenRefresh_=F;this.enableAsyncMdxLibraryWithoutAuthHeaderFetch_=w;this.disableMdxAuthForNonPlaybackMessages_=D;this.disableMdxAuthForAdMessages_=p;this.enableMdxAuthForConnectionOnly_=Q;this.disableMdxAuthForShortsMessages_=X;this.JSC$17364_channelOpenedCounter=new zyS;this.JSC$17364_channelClosedCounter=new T8R;this.channelMessageSentCounter=
new c$8;this.JSC$17364_channelMessageReceivedCounter=new eyY;this.JSC$17364_channelErrorCounter=new r$j;this.pendingMapsOnClosedCounter=new iq8;this.undeliveredMapsOnClosedCounter=new w$M},l5=function(I){this.scheme="https";
this.port=this.domain="";this.basePath="/api/lounge";this.supportCors=!0;I=I||document.location.href;var C=Number(_.U3(I)[4]||null)||"";C&&(this.port=":"+C);this.domain=_.H5(I)||"";I=_.wH();I.search("MSIE")>=0&&tr(I.match(/MSIE ([\d.]+)/)[1],"10.0")<0&&(this.supportCors=!1)},XY=function(I){I=I||{};
this.name=I.name||"";this.id=I.id||I.screenId||"";this.token=I.token||I.loungeToken||"";this.uuid=I.uuid||I.dialId||"";this.idType=I.screenIdType||"normal"},nBL=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(I){var C=Math.random()*16|0;
return(I=="x"?C:C&3|8).toString(16)})},PGj=function(I){return _.pe(I,function(C){return{key:C.id,
name:C.name}})},LrS=function(I,C){return _.AX(I,function(y){return y||C?!y!=!C?!1:y.id==C.id:!0})},RT=function(I,C){return _.AX(I,function(y){return $0(y,C)})},ViM=function(){var I=DJH(),C=p$B();
if(QCK()){var y=I,k=_.NHm(y,C);k<0&&_.Qmm(y,-(k+1),0,C)}I=N8R(I);if(I.length==0)try{_.tsm("remote_sid")}catch(F){}else try{_.nh("remote_sid",I.join(","),-1)}catch(F){}},DJH=function(){var I=_.Fk("yt-remote-connected-devices")||[];
I.sort(_.Fq);return I},N8R=function(I){if(I.length==0)return[];
var C=I[0].indexOf("#"),y=C==-1?I[0]:I[0].substring(0,C);return _.pe(I,function(k,F){return F==0?k:k.substring(y.length)})},jCR=function(I){_.ky("yt-remote-connected-devices",I,86400)},p$B=function(){if(lCB)return lCB;
var I=_.Fk("yt-remote-device-id");I||(I=nBL(),_.ky("yt-remote-device-id",I,31536E3));for(var C=DJH(),y=1,k=I;_.qz(C,k);)y++,k=I+"#"+y;return lCB=k},X$K=function(){return _.Fk("yt-remote-session-browser-channel")},QCK=function(){return _.Fk("yt-remote-session-screen-id")},bqB=function(I){I.length>5&&(I=I.slice(I.length-5));
var C=_.pe($JP(),function(k){return k.loungeToken}),y=_.pe(I,function(k){return k.loungeToken});
_.Epm(y,function(k){return!_.qz(C,k)})&&RyP();
_.ky("yt-remote-local-screens",I,31536E3)},$JP=function(){return _.Fk("yt-remote-local-screens")||[]},RyP=function(){_.ky("yt-remote-lounge-token-expiration",!0,86400)},b5=function(I){I||(_.ua("yt-remote-session-screen-id"),_.ua("yt-remote-session-video-id"));
ViM();I=DJH();_.Hs(I,p$B());jCR(I)},G5R=function(){YhK();
return Y0?!!Y0.get("yt-remote-use-staging-server"):!1},YhK=function(){if(!Y0){var I=_.y$W();
I&&(Y0=new _.QS(I))}},A$K=function(I,C,y,k,F){y=y===void 0?function(){return""}:y;
var z=function(){return new jM(GY(I,"/bc"),C,!1,y,k)};
return _.V("enable_mdx_web_channel_desktop")?new fCH(function(){return new ShB(GY(I,"/wc"),C,y)}):new KrM(z,F)},dJB=function(){var I=gBy;
vBK();ft.push(I);WrR()},SM=function(I,C){vBK();
var y=xJM(I,String(C));ft.length==0?qhL(y):(WrR(),_.mn(ft,function(k){k(y)}))},Kt=function(I){SM("CP",I)},vBK=function(){ft||(ft=_.d5("yt.mdx.remote.debug.handlers_")||[],_.U8("yt.mdx.remote.debug.handlers_",ft))},qhL=function(I){var C=(AF+1)%50;
AF=C;mJM[C]=I;ZqL||(ZqL=C==49)},WrR=function(){var I=ft;
if(mJM[0]){var C=ZqL?AF:-1,y={};do y={record$jscomp$13:void 0},C=(C+1)%50,y.record$jscomp$13=mJM[C],_.mn(I,function(k){return function(F){F(k.record$jscomp$13)}}(y));
while(C!=AF);mJM=Array(50);AF=-1;ZqL=!1}},xJM=function(I,C){var y=(Date.now()-B8K)/1E3;
y.toFixed&&(y=y.toFixed(3));var k=[];k.push("[",y+"s","] ");k.push("[","yt.mdx.remote","] ");k.push(I+": "+C,"\n");return k.join("")},gw=function(I){_.BU.call(this);
this.JSC$17388_logName_=I;this.screens=[]},W8=function(I){gw.call(this,"LocalScreenService");
this.JSC$17395_http_=I;this.loungeTokenRefreshTimer_=NaN;v8(this);this.info("Initializing with "+EBL(this.screens))},dw=function(I,C){C=C===void 0?!1:C;
gw.call(this,"ScreenService");this.JSC$17401_http_=I;this.disableAutomaticScreenCache_=C;this.onlineScreenService_=this.localScreenService_=null;this.automaticScreens_=[];this.deviceToScreenId_={};hyP(this)},x0=function(I,C,y){_.BU.call(this);
this.JSC$17405_logName_=y;this.JSC$17405_screenService_=I;this.receiver_=C;this.screen_=null},ueL=function(I,C,y){y.disableCastApi?qA("Cannot initialize because disabled by Mdx config."):UJK()?HqR(I,y)&&(tiL(!0),window.chrome&&chrome.cast&&chrome.cast.isAvailable?J$B(C):(window.__onGCastApiAvailable=function(k,F){k?J$B(C):(m6("Failed to load cast API: "+F),Oqj(!1),tiL(!1),_.ua("yt-remote-cast-available"),_.ua("yt-remote-cast-receiver"),aCY(),C(!1))},y.loadCastApiSetupScript?_.W$("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"):
window.navigator.userAgent.indexOf("Android")>=0&&window.navigator.userAgent.indexOf("Chrome/")>=0&&window.navigator.presentation?MiK()>=60&&I0B():!window.chrome||!window.navigator.presentation||window.navigator.userAgent.indexOf("Edge")>=0?CWP():MiK()>=89?stj():(o3M(),y7P(kgM.map(FMH))))):qA("Cannot initialize because not running Chrome")},aCY=function(){qA("dispose");
var I=ZV();I&&I.dispose();_.U8("yt.mdx.remote.cloudview.instance_",null);zQL(!1);_.W0t(T9H);T9H.length=0},c7y=function(){return!!_.Fk("yt-remote-cast-installed")},eQY=function(){var I=_.Fk("yt-remote-cast-receiver");
return I?I.friendlyName:null},r7R=function(){qA("clearCurrentReceiver");
_.ua("yt-remote-cast-receiver")},iAH=function(){return c7y()?ZV()?ZV().getCastSession():(m6("getCastSelector: Cast is not initialized."),null):(m6("getCastSelector: Cast API is not installed!"),null)},n3K=function(I,C){wQy()?ZV().setConnectedScreenStatus(I,C):m6("setConnectedScreenStatus called before ready.")},UJK=function(){var I=_.wH().search(/ (CrMo|Chrome|CriOS)\//)>=0;
return _.cv||I},HqR=function(I,C){var y=!1;
ZV()||(I=new B8(I,C),I.subscribe("yt-remote-cast2-availability-change",function(k){_.ky("yt-remote-cast-available",k);Og("yt-remote-cast2-availability-change",k)}),I.subscribe("yt-remote-cast2-receiver-selected",function(k){qA("onReceiverSelected: "+k.friendlyName);
_.ky("yt-remote-cast-receiver",k);Og("yt-remote-cast2-receiver-selected",k)}),I.subscribe("yt-remote-cast2-receiver-resumed",function(k){qA("onReceiverResumed: "+k.friendlyName);
_.ky("yt-remote-cast-receiver",k);Og("yt-remote-cast2-receiver-resumed",k)}),I.subscribe("yt-remote-cast2-session-change",function(k){qA("onSessionChange: "+PWS(k));
k||_.ua("yt-remote-cast-receiver");Og("yt-remote-cast2-session-change",k)}),_.U8("yt.mdx.remote.cloudview.instance_",I),y=!0);
qA("cloudview.createSingleton_: "+y);return y},ZV=function(){return _.d5("yt.mdx.remote.cloudview.instance_")},J$B=function(I){Oqj(!0);
tiL(!1);ZV().init(!1,function(C){C?(zQL(!0),_.dc9("yt-remote-cast2-api-ready")):(m6("Failed to initialize cast API."),Oqj(!1),_.ua("yt-remote-cast-available"),_.ua("yt-remote-cast-receiver"),aCY());I(C)})},qA=function(I){SM("cloudview",I)},m6=function(I){SM("cloudview",I)},Oqj=function(I){qA("setCastInstalled_ "+I);
_.ky("yt-remote-cast-installed",I)},wQy=function(){return!!_.d5("yt.mdx.remote.cloudview.apiReady_")},zQL=function(I){qA("setApiReady_ "+I);
_.U8("yt.mdx.remote.cloudview.apiReady_",I)},tiL=function(I){_.U8("yt.mdx.remote.cloudview.initializing_",I)},Ez=function(I){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(I)},LMH=function(){var I,C;
return _.e(function(y){if(y.nextAddress==1)return(_.NUI()||_.V("use_new_nwl"))&&_.L0X().isNetworkAvailable()?_.n(y,_.HN(),2):y.return();if(y.nextAddress!=3)return(I=y.yieldResult)?_.n(y,oVK(I),3):y.return();C=y.yieldResult;if(!C.length)return y.return();C.forEach(function(k){var F={timestamp:k.timestamp};k=k.appShellAssetLoadReport?{payloadName:"appShellAssetLoadReport",payload:k.appShellAssetLoadReport,options:F}:k.clientError?{payloadName:"clientError",payload:k.clientError,options:F}:void 0;k&&
_.b2(k.payloadName,k.payload,k.options)});
C.length===100&&_.b$.addLowPriorityJob(LMH);_.oI(y)})},D18=function(I){if(I.playerResponse){if(I=I.playerResponse,I.messages&&I.messages.length>0&&(I=I.messages.find(function(C){return!(!C||!C.mealbarPromoRenderer)}))&&I.mealbarPromoRenderer)return I.mealbarPromoRenderer}else if(I.response&&(I=I.response)&&I.overlay&&I.overlay.mealbarPromoRenderer)return I.overlay.mealbarPromoRenderer},pQY=function(I){if(I.response){var C=I.response;
if(C&&C.overlay&&C.overlay.tooltipRenderer)return C.overlay.tooltipRenderer}if(I.playerResponse&&(I=I.playerResponse,I.messages&&I.messages.length>0&&(I=I.messages.find(function(y){return!(!y||!y.tooltipRenderer)}))&&I.tooltipRenderer))return I.tooltipRenderer},N9L=function(I){if(!QtM&&(I=I||_.Aq("ZWIEBACK_PING_URLS"))&&I.length){QtM=!0;
for(var C=0;C<I.length;C++)_.dI(I[C])}},jtK=function(I){if(_.Le.get(_.Aq("PLAYER_VARS",{}),"privembed",!1)!="1"){I&&HhH();
try{VrL().then(function(){},function(){}),_.FT(jtK,18E5)}catch(C){_.v5(C)}}},l0R=function(){var I=_.pA(),C=I.getFlag(119),y=window.devicePixelRatio>1;
document.body&&_.d1(document.body,"exp-invert-logo")&&(y&&!_.d1(document.body,"inverted-hdpi")?_.qx(document.body,"inverted-hdpi"):!y&&_.d1(document.body,"inverted-hdpi")&&_.dY(document.body,"inverted-hdpi"));C!=y&&(_.Qw(0,119,y),I.save())},XQj=function(I){return I.filter(function(C){return"ypcGetCartEndpoint"in C||"ypcFixInstrumentEndpoint"in C})},$1L=function(I){return I.filter(function(C){return!_.l(C,_.Tx5)})},bAL=function(I){I=_.T(I);
for(var C=I.next(),y={};!C.done;y={setter$jscomp$6:void 0},C=I.next()){var k=C.value;C=k.params;k=k.service;C&&k&&(y.setter$jscomp$6=RQB[k],y.setter$jscomp$6&&C.forEach(function(F){return function(z){var c=z.key;z=z.value;c&&z&&(0,F.setter$jscomp$6)(c,z)}}(y)))}},GgY=function(I,C){var y,k,F,z,c,r,w;
_.e(function(L){switch(L.nextAddress){case 1:y=_.AG.getInstance();k=_.FW.instance;F=_.KE.instance;if(!F)return YNR(I,k,C),L.return();_.aM(L,2);I.onLoadingCommand&&k.resolveCommand(I.onLoadingCommand);return _.n(L,y.getCurrentPositionFromGeolocation(),4);case 4:z=L.yieldResult;if(!I.resolveLocationCommand){L.jumpTo(5);break}c=y.createLocationInfo(z);return _.n(L,_.gh(F,I.resolveLocationCommand,{locationInfo:c}),6);case 6:r=L.yieldResult;if(!r||"error"in r&&r.error||r.errorMetadata)return YNR(I,k,C),
L.return();var D;if(r==null?0:(D=r.onResponseReceivedActions)==null?0:D.length){D=_.T(r.onResponseReceivedActions);for(var p=D.next();!p.done;p=D.next())k.resolveCommand(p.value)}(_.l(I.onSuccessCommand,_.H$)||_.l(I.onSuccessCommand,_.rU))&&_.k3(C.hostElement,"yt-navigate",{endpoint:I.onSuccessCommand,reload:!0});case 5:_.dC(L,0);break;case 2:w=_.sj(L);if(w instanceof GeolocationPositionError&&w.code===GeolocationPositionError.PERMISSION_DENIED)return I.onDeniedCommand&&k.resolveCommand(I.onDeniedCommand),
L.return();YNR(I,k,C);_.oI(L)}})},YNR=function(I,C,y){I.onFailureCommand&&(C.resolveCommand(I.onFailureCommand),_.Fe(y.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]))},SNj=function(I,C){var y=_.l(I,_.ggY);
if(y&&C){I=y.videoIds||[y.videoId];var k;C=(k=_.k3(C,"yt-lockup-requested",{videoIds:I}).detail)==null?void 0:k.returnValue;var F;y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"?F=C?C:I.map(function(z){return{videoId:z,navigationEndpoint:y.videoCommand}}):C&&(F=C);
F&&(k=F.map(function(z){var c=Object,r=c.assign;var w=z.navigationEndpoint;if(!_.l(w,_.PD)){var L=_.l(w,_.H$);if(L){if(delete L.index,delete L.playlistId,L=_.l(w==null?void 0:w.commandMetadata,_.It),L==null?0:L.url){var D=L.url;D=_.MJ(D,"list");D=_.MJ(D,"index");L.url=D}}else w=void 0}return r.call(c,{},z,{ownerBadges:void 0,topStandaloneBadge:void 0,menu:void 0,navigationEndpoint:w})}),f0Y(k,y))}},KMH=function(I){var C=_.gf();
if(I=_.l(I,_.vgw))I.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"&&C.clearQueue(),I.closeMiniplayer&&_.N().resolve(_.WJ).close(!0)},g3B=function(I){A7j(_.gf(),I)},v3P=function(I){var C;
(I=(C=_.l(I,_.KRw))==null?void 0:C.setVideoIds)&&I.forEach(function(y){_.pxq(_.gf(),y)})},d1K=function(I){WMR(_.gf(),I)},x1B=function(){try{return!(!window.AudioContext&&!window.webkitAudioContext)}catch(I){return!1}},qNR=function(I,C,y){return{horizontalAlignment:I.x+y.width/2<C.width/2?"west":"east",
verticalAlignment:I.y+y.height/2<C.height/2?"north":"south"}},B9M=function(I,C,y,k,F){F=F===void 0?new _.Q6(0,0):F;
return m1B(ZAR(I,C,y,k),F)},ZAR=function(I,C,y,k){return new _.Q6(I==="west"?16:y.width-k.width-16,C==="north"?16:y.height-k.height-16)},E38=function(I,C){var y=0;
I&&(y+=76);C&&(y+=285);return y},hQj=function(I){var C=["h",
"m","s"],y=_.tX(C);y.reverse();var k={};I=(I.toLowerCase().match(/\d+\s*[hms]?/g)||[]).filter(function(c){var r=(c.match(/[hms]/)||[""])[0];return r?(k[r]=parseInt(c.match(/\d+/)[0],10),!1):!0});
for(I.reverse();I.length&&y.length;){var F=y.shift();F in k||(k[F]=parseInt(I.shift(),10))}if(I.length||k.s>59||k.m>59||k.h>9)return null;var z="";C.forEach(function(c){k[c]&&(z+=""+k[c]+c)});
return z||null},U1K=function(I){I=I.data;
return _.P("yt-profile-badge-view-model",{class:"profile-badge-view-model-wiz"},_.P("div",{class:"profile-badge-view-model-wiz__badge-icon-container"},_.P(_.x$,{data:{thumbnails:[{url:I.badgeIconUrl}]},alt:"",targetWidth:36,targetHeight:36})),_.P("div",{class:"profile-badge-view-model-wiz__content"},_.P("div",{class:"profile-badge-view-model-wiz__badge-description"},I.badgeDesc),I.badgeSubtitle?_.P("div",{class:"profile-badge-view-model-wiz__badge-subtitle"},I.badgeSubtitle):null))},HA8=function(I){I=
I.data;
var C=_.Es();_.xA(C,I.rendererContext);return _.P("yt-comment-interaction-view-model",{el:C,class:"yt-comment-interaction-view-model-wiz"},_.P("div",{class:"yt-comment-interaction-view-model-wiz__frame",role:"button","aria-label":I.onTapA11yLabel,"on:keydown":_.gJ(),tabindex:0},_.P("div",{class:"yt-comment-interaction-view-model-wiz__header"},_.P("div",{class:"yt-comment-interaction-view-model-wiz__video-title"},I.headerPrefix,' "',I.videoTitle),_.P("div",{class:"yt-comment-interaction-view-model-wiz__video-title-quote"},
'"')),_.P("div",{class:"yt-comment-interaction-view-model-wiz__content"},_.P("div",{class:"yt-comment-interaction-view-model-wiz__comment-content"},I.commentContent),_.P("div",{class:"yt-comment-interaction-view-model-wiz__chevron"},_.P(_.x$,{data:{thumbnails:[{url:I.chevronUrl}]},alt:"",targetWidth:18,targetHeight:18})))))},J7K=function(I){I=I.data;
return _.P("yt-shared-subscription-view-model",{class:"yt-shared-subscription-view-model-wiz"},trL(I.avatar),_.P("div",{class:"yt-shared-subscription-view-model-wiz__channel-name"},I.channelName))},a0H=function(I){I=I.data;
var C;return _.P("div",{class:"yt-profile-info-view-model-wiz__activity"},_.P("div",{class:"yt-profile-info-view-model-wiz__header"},_.P("div",{class:"yt-profile-info-view-model-wiz__section-title"},I.commentsInteractionTitle)),(C=I.comments)==null?void 0:C.map(function(y){return _.P("div",{class:"yt-profile-info-view-model-wiz__activity"},OAY(y))}))},MrK=function(I){I=I.data;
var C=_.Y$({elementsCommand:I.subscriptionsAccessButtonCommand}),y=_.Es();_.n0K(y,_.Rj(I.subscriptionsAccessButtonCommand));var k=_.uk(function(z){if(C==null?0:C.onclick)C.onclick(z);return!1}),F;
return _.P("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.P("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.P("a",{el:y,"on:click":k,class:"yt-profile-info-view-model-wiz__another-header"},_.P("div",{class:"yt-profile-info-view-model-wiz__section-title-modern"},I.sharedSubscriptionsTitle),_.P("div",null,OAY(I.subscriptionsAccessButton)))),_.P("div",{class:"yt-profile-info-view-model-wiz__subs"},(F=I.sharedSubscriptions)==null?void 0:F.slice(0,5).map(function(z){return _.P("div",
{class:"yt-profile-info-view-model-wiz__sub"}," ",OAY(z))})))},IkK=function(I){I=I.data;
var C;return _.P("div",{class:"yt-profile-info-view-model-wiz__sub-section"},_.P("div",{class:"yt-profile-info-view-model-wiz__sub-header"},_.P("h2",{class:"yt-profile-info-view-model-wiz__section-title"},I.sharedSubscriptionsTitle)),_.P("div",{class:"yt-profile-info-view-model-wiz__subs"},(C=I.sharedSubscriptions)==null?void 0:C.slice(0,5).map(function(y){return _.P("div",{class:"yt-profile-info-view-model-wiz__sub"}," ",OAY(y))})))},C6B=function(I){I=I.data;
return _.P("div",{class:"yt-profile-info-view-model-wiz__activity"},[I.profileBadgeInfoYtWide,I.profileBadgeInfoChannelWide].map(function(C){var y,k,F,z,c;return C?_.P(_.aF,null,_.P("div",{class:"yt-profile-info-view-model-wiz__header"},_.P("div",{class:"yt-profile-info-view-model-wiz__section-title"},C==null?void 0:C.profileSectionTitle),_.P("div",{class:"yt-profile-info-view-model-wiz__section-desc"},_.P("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},C==null?void 0:(y=C.commentBadge)==
null?void 0:y.commentDesc),(C==null?0:(k=C.commentBadge)==null?0:k.blackHeartDesc)?_.P("div",{class:"yt-profile-info-view-model-wiz__section-divider"},"\u2022"):null,_.P("div",{class:"yt-profile-info-view-model-wiz__section-heart-icon"},_.P(_.x$,{data:{thumbnails:[{url:C==null?void 0:(F=C.commentBadge)==null?void 0:F.blackHeartIconUrl}]},alt:"",targetWidth:14,targetHeight:14,preserveWidth:!0,preserveHeight:!0})),_.P("div",{class:"yt-profile-info-view-model-wiz__section-subtitle"},C==null?void 0:(z=
C.commentBadge)==null?void 0:z.blackHeartDesc))),_.P("div",{class:"yt-profile-info-view-model-wiz__badge"},C==null?void 0:(c=C.badges)==null?void 0:c.map(function(r){return _.P(U1K,{data:r})}))):null}))},sQY=function(I){I=I.data;
return _.P("yt-profile-info-view-model",{class:"yt-profile-info-view-model-wiz"},_.P(C6B,{data:I}),I.comments?_.P(a0H,{data:I}):null,I.sharedSubscriptionsTitle?I.subscriptionsAccessButtonCommand?_.P(MrK,{data:I}):_.P(IkK,{data:I}):null)},ySR=function(I){var C=I.data;
I=C?o9Y(C.profileIdentityInfo):void 0;C=C?o9Y(C.profileInfo):void 0;return _.P("yt-profile-card-view-model",{class:"yt-profile-card-view-model-wiz",style:"overflow: hidden"},I,C)},kLL=function(I,C){var y=_.nCw(C,{},I,!0);
return new Promise(function(k,F){y.listenOnce("n",function(){F(Error("fl`"+y.JSC$25655_getErrorDescription()))});
y.listenOnce("l",function(){var z=y.getResponseCode();if(z!==200)F(Error("gl`"+C+"`"+I.type+"`"+I.size+"`"+z));else try{k(JSON.parse(y.getResponseText()).encryptedBlobId)}catch(c){F(c)}});
y.run()})},FjY=function(I){return I.substring(I.indexOf(":")+1,I.indexOf(";"))},uyK=function(I){return new Promise(function(C,y){var k=new FileReader;
k.onloadend=function(){try{var F=new Uint8Array(k.result);F.length<8&&y(void 0);var z=F.subarray(0,8);F="";for(var c=0;c<z.length;c++)F+=("0"+z[c].toString(16)).substr(-2);F.startsWith("ffd8ff")?C("image/jpeg"):F.startsWith("47494638")?C("image/gif"):F.startsWith("89504e470d0a1a0a")?C("image/png"):F.startsWith("424d")?C("image/bmp"):C(void 0)}catch(r){y(r)}};
k.onerror=y;k.readAsArrayBuffer(I)})},zdB=function(I){return new Promise(function(C,y){var k=new Image;
k.crossOrigin="anonymous";k.onload=function(){var F=document.createElement("canvas");F.width=k.naturalWidth;F.height=k.naturalHeight;var z=F.getContext("2d");if(!z)throw Error("hl");z.drawImage(k,0,0);z=FjY(I);F.toBlob(function(c){c?C(c):y()},z)};
k.src=I})},cSK=function(I,C){var y;
if(((y=_.l(I,_.PD))==null?void 0:y.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"){var k;_.k3((k=C.hostElement)!=null?k:C,"yt-shorts-reset");_.P18(_.N().resolve(_.aV),I).then(function(z){TiK(z,C,I)})}else{var F;
_.Tg((F=C.hostElement)!=null?F:C,[I]).then(function(z){z&&TiK(z.data,C,I)})}},TiK=function(I,C,y){if(I){var k=_.l(I.replacementEndpoint,_.PD);
if(k){I.sequenceContinuation&&(k.sequenceParams=I.sequenceContinuation);var F;_.k3((F=C.hostElement)!=null?F:C,"yt-navigate",{endpoint:I.replacementEndpoint})}else if((I==null?void 0:I.status)==="REEL_ITEM_WATCH_STATUS_EMPTY"&&(I==null?0:I.watchStatus)&&_.l(I.watchStatus,_.LXS)){var z;_.k3((z=C.hostElement)!=null?z:C,"yt-navigate",{endpoint:y})}}},edL=function(){var I=_.N().resolve(_.VL),C=$UY(I.getState())||"";
I=_.VMK(I.getState())||"";return{disableCache:C==="ytd-browse"&&I==="home"}},rSR=function(I){if(!I)return!1;
try{if(I.host&&I.host.tagName==="YT-FORMATTED-STRING"&&I.host.id==="contenteditable-textarea"||I.nodeType===Node.ELEMENT_NODE&&I.tagName==="YTD-COMMENT-INPUT")return!0}catch(C){return!1}return rSR(I.parentNode)},hF=function(I){return I?I.tagName==="A"&&I.href&&I.classList.contains("yt-simple-endpoint"):!1},ixy=function(I){return I?I.tagName==="IMG"&&I.classList.contains("emoji"):!1},wgY=function(I,C,y){if(!I)return null;
var k=hF(I);if(k&&y)return C=I.pathname.substring(I.pathname.indexOf("/channel/")+9),document.createTextNode("@"+C);if(k&&!y)return document.createTextNode("");if(ixy(I))return y=I.alt,I=I.dataset.emojiId,!I&&C&&(C=_.nn(C,y))&&C.isCustomEmoji&&(I=C.emojiId),I?document.createTextNode("<URehb0Lc5mi4S0dpuLG8:"+I+">"):document.createTextNode(y);k=I.cloneNode(!1);for(var F=0;F<I.childNodes.length;++F){var z=wgY(I.childNodes[F],C,y);z&&k.appendChild(z)}return k},Uz=function(I){return I?hF(I)?I:Uz(I.lastChild):
null},n9H=function(I){return I?hF(I)?I:n9H(I.firstChild):null},P6L=function(I){if(!I)return null;
for(var C=I.previousSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.previousSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.previousSibling;else break;(C=Uz(C))?I=C:I=(I=I.parentNode)?Uz(I.previousElementSibling):null;return I},LjB=function(I){if(!I)return null;
for(var C=I.nextSibling;C;)if(C.nodeType===Node.ELEMENT_NODE&&C.nodeName==="BR")C=C.nextSibling;else if(C.nodeType===Node.TEXT_NODE&&/\s+/.test(C.textContent))C=C.nextSibling;else break;return(C=n9H(C))?C:LjB(I.parentNode)},DkR=function(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();
if(!rSR(y.parentNode))return null;C=C.JSC$9128_getStartOffset();if(y.nodeType===Node.TEXT_NODE){var k=_.$F(y,hF);if(k){if(I&&C===0||!I&&C===y.length)return k}else{if(I&&C===y.length)return!y||y.nodeName==="BR"||y.nextElementSibling&&_.DZ(y.nextElementSibling,"display")==="block"?null:n9H(y.nextElementSibling);if(!I&&C===0)return y?Uz(y.previousElementSibling):null}}if(y.nodeType===Node.ELEMENT_NODE)if(I){if(0<=C&&C<y.childNodes.length)return n9H(y.childNodes[C])}else if(0<C&&C<=y.childNodes.length)return Uz(y.childNodes[C-
1]);return null},pgL=function(I,C,y){if(!I)return null;
if(I.nodeType===Node.TEXT_NODE)if(y){var k=P6L(I);if(k&&!/^\s+\S/.test(I.wholeText.substr(0,C)))return k}else if((k=LjB(I))&&!/\S\s+/.test(I.wholeText.substr(C,I.wholeText.length)))return k;return I.nodeType===Node.ELEMENT_NODE?y?P6L(I.childNodes[C]):LjB(I.childNodes[C]):pgL(I.parentNode,C,y)},QQP=function(I){if(I.hasChildNodes())switch(I.tagName){case "DIV":case "A":case "SPAN":var C="";
for(I=I.firstChild;I;I=I.nextSibling)C+=QQP(I);return C;default:return""}else switch(I.nodeType){case 3:return I.textContent;default:return""}},NiL=function(I){I=I.data;
return _.P("ytd-menu-title-renderer",{class:"ytd-menu-title-renderer"},_.P("div",null,_.P(_.wh,{text:I.title})),I.subtitle?_.P("div",{class:"ytd-menu-title-renderer__subtitle"},_.P(_.wh,{text:I.subtitle})):null)},Vd8=function(I){switch(I){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"}},jQM=function(I){return I.map(function(C){return{settingsRadioOptionRenderer:{title:_.oQ(C.name),
asideText:_.oQ(C.approximateSize),id:Vd8(C.format)}}})},XgR=function(I){if(I&&I.length!==0)return I.filter(lkK()).map(function(C){return{settingsRadioOptionRenderer:{title:C.name,
asideText:C.approximateSize,id:Vd8(C.formatType)}}})},H8=function(I){if(I)return I.replaceAll("&nbsp;"," ").replaceAll("&#39;","'")},$kM=function(I){I=new Set(I!=null?I:[]);
if(I.has(790))return"YOUTUBE_ENTITY_TYPE_CHANNEL";if(I.has(788))return"YOUTUBE_ENTITY_TYPE_TV_SHOW";if(I.has(789))return"YOUTUBE_ENTITY_TYPE_MOVIE";if(I.has(786))return"YOUTUBE_ENTITY_TYPE_SONG";if(I.has(787))return"YOUTUBE_ENTITY_TYPE_ALBUM"},RdM=function(I){var C=I.indexOf("(");
return C!==-1?I.substring(C+1,I.length-1):I},bxL=function(I){switch(I){case 38:return-1;
case 40:return 1;case 37:return-1;case 39:return 1;default:return 0}},GL8=function(I,C,y,k,F,z){var c=_.Le.clone(YeP);
c.locale=_.Aq("SBOX_SETTINGS",{}).REQUEST_LANGUAGE;c.report={description:F||"<empty>"};F=_.Aq("SBOX_SETTINGS",{});C=C.join(",");var r=Date.now();I={choice_cc:k,choice_id_cc:y,choices_sc:C,gl:F.REQUEST_DOMAIN,hl:F.REQUEST_LANGUAGE,query:I,time:r};z&&(I.choice_additional_comment_cc=z);_.NdP(c,I)},fkH=function(I){var C=new Map;
C.set("authuser",_.Aq("SESSION_INDEX","0"));return _.JM(I,C)},KjK=function(I){var C;
return _.e(function(y){switch(y.nextAddress){case 1:if(!I||!SeS(I))return y.return(null);C=null;switch(_.Aq("INNERTUBE_CLIENT_NAME")){case "WEB":return y.jumpTo(2);case "WEB_REMIX":C=I.getPlayer()}y.jumpTo(3);break;case 2:return _.n(y,I.getPlayerPromise(),4);case 4:C=y.yieldResult;y.jumpTo(3);break;case 3:return y.return(C)}})},SeS=function(I){return["ytd-player",
"ytmusic-player"].includes(String(I.tagName||"").toLowerCase())},ASj=function(I){I=Math.round(I);
return I%2?I-1:I},g9P=function(I){I=Math.round(I);
return I%2===0?I-1:I},v9K=function(I){var C,y,k;
if(I=(C=I.createPlaylistDialogFormSchema)==null?void 0:(y=C.fieldSchemas)==null?void 0:(k=y.title)==null?void 0:k.validationSchema)for(C=[I.syncStep,I.asyncStep].filter(function(F){return F!==void 0}),C=_.T(C),y=C.next();!y.done;y=C.next()){y=y.value.rules;
if(!y)break;y=_.T(y);for(y=y.next();!y.done;y=y.next())return _.l(y.value,_.s1y)}},dk8=function(I){var C,y,k;
if(I=(C=I.createPlaylistDialogFormSchema)==null?void 0:(y=C.fieldSchemas)==null?void 0:(k=y.visibility)==null?void 0:k.validationSchema)for(C=[I.syncStep,I.asyncStep].filter(function(F){return F!==void 0}),C=_.T(C),y=C.next();!y.done;y=C.next()){y=y.value.rules;
if(!y)break;y=_.T(y);for(k=y.next();!k.done;k=y.next())if(k=_.l(k.value,WjR))return C=void 0,(C=k.translations)==null?void 0:C.visibilityNotValidErrorMessage}},xk8=function(){var I,C;
return(C=(I=_.N().resolve(_.aU(_.AE)))==null?void 0:I())!=null?C:!1},qeK=function(I,C){a:switch(C){case "DIALOG_HEADER_ASSET_PADDING_STYLE_INSET":C="CONTENT_PREVIEW_IMAGE_STYLE_CUSTOM_ASPECT_RATIO";
break a;default:C="CONTENT_PREVIEW_IMAGE_STYLE_DEFAULT"}return{themedImage:I,style:C,layoutMode:"CONTENT_PREVIEW_IMAGE_LAYOUT_MODE_FULL_WIDTH"}},mkR=function(I){_.Fe(I,"yt-refit-popups-action")},Biy=function(I){var C=I.data;
var y=I.disablePadding;var k=I.className;var F=_.Es(),z=qeK(C.banner,C.assetContainerPaddingStyle),c=qeK(C.imageBanner,C.assetContainerPaddingStyle),r=C.assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET",w=C.assetContainerMaxHeight;_.RU(function(){var L;(L=F.value)==null||L.addEventListener("image-loaded",function(){mkR(F.value)})});
_.$4(function(){var L;(L=F.value)==null||L.removeEventListener("image-loaded",function(){mkR(F.value)})});
I={};return _.P("yt-dialog-header-view-model",{el:F,class:_.yc(k,(I.ytDialogHeaderViewModelHost=!0,I.ytDialogHeaderViewModelHostDisablePadding=!!y,I))},_.H2(C.banner,function(){var L={};return _.P("div",{class:_.yc(k,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!r,L)),style:"max-height: "+(w?w+"px":"")},_.P(_.Zh,{data:z,className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.H2(C.imageBanner,function(){var L={};
return _.P("div",{class:_.yc(k,(L.ytDialogHeaderViewModelBanner=!0,L.ytDialogHeaderViewModelBannerFullBleed=!!r,L)),style:_.cP({"max-height":function(){return w!==void 0?w+"px":void 0}})},_.P(_.Zh,{data:c,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}),_.H2(C.customAssetContainer,function(){return _.P("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},ZxY(C.customAssetContainer))}),_.H2(C.customBanner,function(){return _.P("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},ZxY(C.customBanner))}),_.H2(C.headline,function(){return _.P("h2",null,_.P(_.wh,{text:C.headline,
className:"ytDialogHeaderViewModelText"}))}))},E9M=function(I){var C=21;
if(!I)return C;C+=I.headerTitle?27:0;C+=I.headerTitle&&I.hasHeaderActionHeader?4:0;return C+=I.headerTitle&&I.headerSubtitle?16:0},hdS=function(I){var C=0;
if(!I)return C;C+=I.hasFooterPrimaryButton||I.hasFooterSecondaryButton?48:0;C+=I.footerTrailingLabel||I.footerLeadingLabel?30:0;return C+=I.hasFooterPrimaryButton||I.hasFooterSecondaryButton||!I.footerTrailingLabel&&!I.footerLeadingLabel?0:12},Uky=function(I){var C=new _.rC,y=I;
return{subscribe:function(k){C.subscribe("changed",k)},
dispatch:function(k,F){var z=y;k==="Touch Start"?y=Object.assign({},z,{isAnimating:!1,initialY:F.event.touches[0].clientY}):k==="Touch Move"?(k=Math.min(F.fullContentWrapperHeight,F.contentHeightMap[F.contentWrapperId]+E9M(F.header)-hdS(F.footer)),y=Object.assign({},z,{currentY:Math.max(F.contentScrollable?-1*(z.initialY-24):0,F.event.touches[0].clientY-z.initialY),maxHeightForContentWrapper:Math.min(k,Math.max(0,(z.isFullScreen?k:F.contentWrapperHeight)-z.currentY))})):y=k==="Snap To Full Screen"?
Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!0,maxHeightForContentWrapper:F.maxHeight}):k==="Snap To Neutral Position"?Object.assign({},z,{isAnimating:!1,currentY:0,isFullScreen:!1,maxHeightForContentWrapper:F.maxHeight}):k==="Close Sheet"?Object.assign({},z,{isAnimating:!0,currentY:F.clientHeight,isFullScreen:!1,maxHeightForContentWrapper:F.maxHeight}):z;C.publish("changed",y)}}},Hxy=function(I){return _.uk(function(C){I(C);
return!1})},tdY=function(){_.N().resolve(_.nD).closeSheet()},JSy=function(I){var C,y,k,F,z,c,r,w,L,D,p;
return{headerTitle:(C=I.headerTitle)==null?void 0:C.call(I),headerSubtitle:(y=I.headerSubtitle)==null?void 0:y.call(I),headerActionHeader:I.headerActionHeader,footerPrimaryButton:I.footerPrimaryButton,footerSecondaryButton:I.footerSecondaryButton,footerButtonType:(k=I.footerButtonType)==null?void 0:k.call(I),footerLeadingLabel:(F=I.footerLeadingLabel)==null?void 0:F.call(I),footerTrailingLabel:(z=I.footerTrailingLabel)==null?void 0:z.call(I),shouldShowIcons:(c=I.shouldShowIcons)==null?void 0:c.call(I),
skipContentClick:(r=I.skipContentClick)==null?void 0:r.call(I),additionalClassName:(w=I.additionalClassName)==null?void 0:w.call(I),onClosedCallback:I.onClosedCallback,focusOnClose:(L=I.focusOnClose)==null?void 0:L.call(I),isDisabled:(D=I.isDisabled)==null?void 0:D.call(I),disabledCommand:(p=I.disabledCommand)==null?void 0:p.call(I),headerFn:I.headerFn,contentFn:I.contentFn,footerFn:I.footerFn,hasHeaderFn:I.hasHeaderFn(),hasContentFn:I.hasContentFn(),hasFooterFn:I.hasFooterFn(),hasFooterPrimaryButton:I.hasFooterPrimaryButton(),
hasFooterSecondaryButton:I.hasFooterSecondaryButton(),hasHeaderActionHeader:I.hasHeaderActionHeader()}},OxM=function(I){switch(I){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""}},aky=function(I){switch(I){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""}},MdY=function(I){switch(I){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""}},IWS=function(I,C,y){C.forEach(function(k){_.FV(_.N().resolve(_.zd),k)});
_.Fe(I,"yt-close-popup-action",["yt-gen-ai-feedback-form-view-model",y])},yGL=function(I,C,y,k){var F=_.l(y,_.gO).commandLifeCycleConfig;
F&&F.onStartCommand&&_.cQ(I,[F.onStartCommand],C);_.Ed(C);var z=_.KE.instance;z&&_.AU(z,y)?_.gh(z,y,k).then(function(c){if(!c||(c==null?0:c.error))return c=_.l(y,_.gO).serializedTransactionFlowLoggingParams,_.ta(C),_.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",c));_.ta(C);return{data:c}}).then(function(c){_.ta(C);
Cg8(c.data);var r=c.data.command;r&&_.cQ(I,[r],C);r=s_K(y,c.data);if(!r){var w=c.data;c=!1;if(w&&w.command&&_.l(w.command,_.r9)){var L;w=((L=_.l(w.command,_.r9))==null?void 0:L.commands)||[];for(L=0;L<w.length;L++)if(_.l(w[L],_.hfw)){c=!0;break}}c||_.ia('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}')}!r&&F&&F.onSuccessCommand?_.cQ(I,[F.onSuccessCommand],C):r&&F&&F.onFailureCommand&&_.cQ(I,[F.onFailureCommand],C)},function(){_.ta(C);
F&&F.onFailureCommand&&_.cQ(I,[F.onFailureCommand],C);okK(y)}):_.GB(Error("yl"),"ERROR")},k8K=function(I,C,y){var k=[C];
y&&k.push(y);return _.Tg(I,k).then(function(F){var z=_.l(C,_.gO).serializedTransactionFlowLoggingParams,c=F.data,r=s_K(C,c);r?F=_.mr(new tF(r,z)):Cg8(c);return F},function(){var F=_.l(C,_.gO).serializedTransactionFlowLoggingParams;
okK(C);return _.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",F))})},s_K=function(I,C){I=_.l(I,_.gO).serializedTransactionFlowLoggingParams;
var y=null;switch(C.ypcResponseCode){case "YPC_RESPONSE_CODE_ERROR":y="TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE";break;case "YPC_RESPONSE_CODE_ERROR_PROMO_CODE_POLICY_VIOLATION":y="TRANSACTION_ERROR_TYPE_REJECTED_WITH_PROMO_CODE_POLICY_VIOLATION";break;case "YPC_RESPONSE_CODE_LIVE_CHAT_BACKEND_ERROR":y="TRANSACTION_ERROR_TYPE_LIVE_CHAT_BACKEND_ERROR"}y?_.WD(y,I):DUP(I);return y},okK=function(I){_.WD("TRANSACTION_ERROR_TYPE_YPC_HANDLE_TRANSACTION_RPC_FAILURE",_.l(I,_.gO).serializedTransactionFlowLoggingParams)},
Cg8=function(I){if(I.trackingParams){var C=_.Si(),y=_.fq();
C&&y&&_.q1(C,y,_.nv(I.trackingParams))}},F0Y=function(I,C,y){var k=_.KE.instance,F=_.KK9(_.Aq("YPC_MB_URL")),z=(new _.fOz).init(),c=_.S4m(),r=_.l(y,_.mX0).languageCode;
r===void 0?_.GB(Error("Di"),"ERROR"):_.QZ([z,F]).then(function(){var w={ctk:payments.business.integration.ClientTokenFactory.createClientToken(r,c)};k&&_.AU(k,y)?_.gh(k,y,w).then(function(L){return{data:L}}).then(function(L){_.k3(C,"yt-service-request-completed",L);
L.code!=="ERROR"&&(L=L.data.command)&&_.cQ(I,[L],C)}):_.GB(Error("yl"),"ERROR")})},TUB=function(I,C,y,k){var F=_.KE.instance;
F&&_.AU(F,y)?_.gh(F,y,k).then(function(z){return{data:z}}).then(function(z){ulL(I,C,y,z)},function(){zMK(y)}):(F=_.N().resolve(_.aU(_.pp)))&&F.requestDataForServiceEndpoint(y,k).then(function(z){ulL(I,C,y,z)},function(){zMK(y)})},ulL=function(I,C,y,k){_.k3(C,"yt-service-request-completed",k);
if(k.code&&k.code=="ERROR")zMK(y);else{(k=k.data.commands)&&_.cQ(I,k,C);var F;(I=(F=_.l(y,_.Hu0))==null?void 0:F.serializedYpcPauseFlowLoggingParams)&&I&&_.jT("ypcPauseFlowSucceeded","serializedYpcPauseFlowLoggingParams",I)}},zMK=function(I){var C;
(I=(C=_.l(I,_.Hu0))==null?void 0:C.serializedYpcPauseFlowLoggingParams)&&I&&_.jT("ypcPauseFlowFailed","serializedYpcPauseFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},rGK=function(I,C,y){var k=_.KE.instance;
k&&_.AU(k,y)?_.gh(k,y).then(function(F){return{data:F}}).then(function(F){cGY(I,C,y,F)},function(){eMy(y)}):(k=_.N().resolve(_.aU(_.pp)))&&k.requestDataForServiceEndpoint(y).then(function(F){cGY(I,C,y,F)},function(){eMy(y)})},cGY=function(I,C,y,k){_.k3(C,"yt-service-request-completed",k);
k.code&&k.code=="ERROR"?eMy(y):((k=k.data.commands)&&_.cQ(I,k,C),(I=_.l(y,_.tom).serializedYpcResumeFlowLoggingParams)&&I&&_.jT("ypcResumeFlowSucceeded","serializedYpcResumeFlowLoggingParams",I))},eMy=function(I){(I=_.l(I,_.tom).serializedYpcResumeFlowLoggingParams)&&I&&_.jT("ypcResumeFlowFailed","serializedYpcResumeFlowLoggingParams",I,void 0,"YPC_ERROR_REASON_INNERTUBE_RESPONSE_FAILURE")},ipy=function(I){I=I===void 0?{}:I;
_.N().resolve(_.Cxb).showFeedbackDialog(I.customProductData,I.feedbackContent,I.onFeedbackSubmitted,I.bucket)},wDK=function(I){I=I===void 0?{}:I;
_.N().resolve(_.Cxb).showHelpDialog(I.helpContext,I.articleId,I.productData)},nky=function(){wDK()},Pgj=function(){ipy()},DcS=function(I,C,y){var k,F,z,c,r,w,L;
return _.e(function(D){switch(D.nextAddress){case 1:k=_.l(I,L0P);if((F=k)==null?0:F.productId){w={productId:k.productId,bucket:k.bucket,enableAnonymousFeedback:(r=k.enableAnonymousFeedback)!=null?r:!0,allowNonLoggedInFeedback:!0};L={feedbackChoice:y.feedbackChoice};if(!_.V("web_collect_offline_state")){D.jumpTo(8);break}_.aM(D,9);return _.n(D,biB(L),11)}c={bucket:(z=k)==null?void 0:z.bucket};if(!_.V("web_collect_offline_state")){D.jumpTo(4);break}c.customProductData={};_.aM(D,5);return _.n(D,biB(c.customProductData),
7);case 7:_.dC(D,4);break;case 5:_.sj(D);case 4:ipy(c);D.jumpTo(0);break;case 11:_.dC(D,8);break;case 9:_.sj(D);case 8:_.$4z(L),_.XtI("GFEEDBACK",L),k.productId==="5295751"&&(L.client_attestation=Number(_.Aq("CATSTAT",0))),k.productId==="5295751"&&(L.client_time=Date.now()/1E3/3600),k.productId==="5295751"&&(L.original_playback_id=_.YAY||""),_.NdP(w,L),_.oI(D)}})},pDY=function(I){if(I=_.l(I,_.t$I)){var C={bucket:I.bucketIdentifier};
I.additionalDatas&&(C.customProductData={},I.additionalDatas.forEach(function(y){if(y=y.userFeedbackEndpointProductSpecificValueData)C.customProductData[y.key]=y.value}));
ipy(C)}},Q_S=function(I){var C=_.qU.getInstance();
var y=_.PQ("DELETE_ALL_DOWNLOADS_PROMPT",void 0,"Delete all downloads?");var k=_.PQ("DELETE",void 0,"Delete"),F=_.PQ("CANCEL",void 0,"Cancel");y=vtL(y,void 0,k,F,{signal:"DELETE_ALL_DOWNLOADS"});_.Gv(C,[{openPopupAction:y}],I)},VfP=function(){return _.e(function(I){return I.nextAddress==1?_.n(I,_.N().resolve(_.h1),2):_.n(I,NUB(),0)})},j_B=function(I){var C,y;
return _.e(function(k){return k.nextAddress==1?(y=(C=_.l(I,_.WH))==null?void 0:C.targetId)?_.n(k,_.N().resolve(_.h1),3):k.jumpTo(0):_.n(k,_.N().resolve(_.EW).deleteVideo(y),0)})},XDK=function(I){var C,y;
return _.e(function(k){return k.nextAddress==1?(y=(C=_.l(I,_.WH))==null?void 0:C.targetId)?_.n(k,_.N().resolve(_.h1),3):k.jumpTo(0):_.n(k,lW8(_.N().resolve(_.EW),y),0)})},RMM=function(I){var C,y;
return _.e(function(k){return(y=(C=_.l(I,_.WH))==null?void 0:C.targetId)?_.n(k,$cj(y),0):k.jumpTo(0)})},YqY=function(){_.V("kevlar_woffle_refresh_dl_load_killswitch")||bpY()},fWY=function(){_.V("kevlar_woffle")&&_.Kp.instance&&G8R()},K0y=function(I){var C;
if((C=_.l(I,_.uY))==null||!C.videoId)return!1;SqY(_.N().resolve(_.EW),_.l(I,_.uY),I.clickTrackingParams);return!0},gkY=function(I){var C;
if((C=_.l(I,_.zU))==null||!C.playlistId)return!1;AGR(_.N().resolve(_.EW),_.l(I,_.zU),I.clickTrackingParams);return!0},W0S=function(I){var C=_.l(I,_.JoY);
(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_ENABLED"&&(C==null?void 0:C.settingItemId)!=="SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED"||vkH(_.N().resolve(_.EW),_.l(I,_.JoY))},xcM=function(I){I=_.l(I,_.jnS);
var C;(I==null?0:(C=I.actions)==null?0:C.length)&&dc8(I)},Zp8=function(I){var C,y;
return _.e(function(k){C=_.l(I,qqR);return(y=C)!=null&&y.localWatchHistoryCommandType?_.n(k,mcy(C),0):k.return()})},BUy=function(I){setTimeout(function(){requestAnimationFrame(I)},80)},Ek8=function(I){return Object.entries(I).map(function(C){return C.join(":")}).join(";")},UcP=function(I){var C,y,k;
_.e(function(F){if(F.nextAddress==1)return _.n(F,hMK(),2);C=F.yieldResult;y=_.FW.instance;switch(C){case "granted":k=I.getLocationCommand;break;case "denied":k=I.openDeniedDialogAction;break;case "prompt":k=I.openCollectionDialogAction;break;default:k=I.openCollectionDialogAction}k&&y.resolveCommand(k);_.oI(F)})},hMK=function(){var I,C;
return _.e(function(y){if(y.nextAddress==1)return I="prompt",navigator.permissions?_.n(y,navigator.permissions.query({name:"geolocation"}),3):y.jumpTo(2);y.nextAddress!=2&&(C=y.yieldResult,I=C.state);return y.return(I)})},tfK=function(){_.e(function(I){return _.n(I,_.HpP(),0)})},JGj=function(){var I,C,y;
return _.e(function(k){if(k.nextAddress==1)return I=_.N().resolve(_.Q0),I?_.n(k,_.gh(I,{signalServiceEndpoint:{signal:"GET_DATASYNC_IDS"}}),2):(_.SN(Error("Bl")),k.return(void 0));if(C=k.yieldResult){if(C.errorMetadata)return _.SN(Error("Cl`"+C.errorMetadata.status+"`"+C.error)),k.return(void 0);y=C.datasyncIds;_.IMu=y.length;return k.return(y)}_.SN(Error("Dl"));return k.return(void 0)})},OpK=function(){JGj().then(function(I){I&&(C$H(I),Q0L(I),EVM(I),GBM(I))})},aWy=function(I){_.b$.addLowPriorityJob(function(){var C,
y,k,F,z;
return _.e(function(c){switch(c.nextAddress){case 1:if(_.V("ytidb_clear_optimizations_killswitch")){c.jumpTo(2);break}C=_.Lh("clear");if(C.startsWith("V")&&C.endsWith("||")){var r=[C];C$H(r);Q0L(r);EVM(r);GBM(r);return c.return()}y=h1j();k=fij();return _.n(c,NT8(),3);case 3:return F=c.yieldResult,_.n(c,seS(),4);case 4:if(z=c.yieldResult,!(y||k||F||z))return c.return();case 2:I.isNetworkAvailable()?OpK():I.listenOnce("publicytnetworkstatus-online",OpK),_.oI(c)}})})},JF=function(I){I={openPopupAction:{popupType:"TOAST",
popup:{notificationActionRenderer:{responseText:_.Ee(I)}}}};_.FW.instance&&_.FW.instance.resolveCommand(I)},MfK=function(I){if(I){var C=_.e2();
_.s7(C,3854,void 0,{layer:0,parentLayer:4});switch(I){case 1:var y=238708;break;case 2:y=238715;break;case 3:y=238710;break;case 6:y=238709}y&&(I=_.c9(C,{veType:y}))&&_.kU(C,I)}},IBK=function(I){if(I){var C=_.e2();
_.s7(C,3854,void 0,{layer:0,parentLayer:4});switch(I){case 1:var y=238714;break;case 2:y=238711;break;case 8:y=238709;break;case 7:y=238713;break;case 3:case 4:case 5:y=238712}y&&(I=_.c9(C,{veType:y}))&&_.kU(C,I)}},CTH=function(I){switch(I.latencyType){case 0:_.fA("consent_primitive_flow");
_.Sr("cpit",I.timestampEpochMillis,"consent_primitive_flow");break;case 3:_.Sr("cpist",I.timestampEpochMillis,"consent_primitive_flow");break;case 5:_.Sr("cprtif",I.timestampEpochMillis,"consent_primitive_flow");break;case 4:_.Sr("cprtli",I.timestampEpochMillis,"consent_primitive_flow");break;case 6:_.Sr("cprt",I.timestampEpochMillis,"consent_primitive_flow");break;case 7:_.Sr("cpdt",I.timestampEpochMillis,"consent_primitive_flow");break;case 8:_.Sr("cpjct",I.timestampEpochMillis,"consent_primitive_flow")}},
elY=function(I,C){var y,k,F,z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t,U,yW;
return _.e(function(a){switch(a.nextAddress){case 1:_.aM(a,2);(k=(y=_.l(I,sHR))==null?void 0:y.serializedConsentRequest)||(k=(F=_.l(I,omY))==null?void 0:F.serializedConsentRequest);k&&(z=yLS(_.T0(k)));if(z===void 0)return a.return();c=k$M(z);c.latencyCallback=CTH;C&&FhK(c,function(){C.then(function(cs){cs.pauseVideo();(new uIR).increment()})});
return((r=_.l(I,sHR))==null?void 0:r.consentAction)==="CONSENT_ACTION_PREWARM"||((w=_.l(I,omY))==null?void 0:w.consentAction)==="CONSENT_ACTION_PREWARM"?_.n(a,zly(c),5):_.n(a,TWK(c),6);case 6:L=a.yieldResult;D=_.pF(L,Oz);if(D===1){if(((p=_.Sk(L,aT,1,Oz))==null?void 0:_.YC(p,1))===1||((Q=_.Sk(L,aT,1,Oz))==null?void 0:_.YC(Q,1))===2||((X=_.Sk(L,aT,1,Oz))==null?void 0:_.YC(X,1))===3)_.l(I,omY)?JF(_.PQ("MMG_CONFIRMATION",{},"Your choices have been saved. You can change your choices anytime in your Google Account.")):
JF(_.PQ("DMA_CONSENT_CONFIRMATION2",{},"Your choices have been saved. You can change your choices anytime in your Google Account."));MfK((b=_.Sk(L,aT,1,Oz))==null?void 0:_.YC(b,1),_.U1(L,cLK,3,_.Hi()))}else D===2?(((S=MA(L))==null?void 0:_.YC(S,1))===5?_.l(I,omY)?JF(_.PQ("MMG_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):JF(_.PQ("DMA_CONSENT_RECORD_ERROR",{},"Something went wrong while loading")):((A=MA(L))==null?void 0:_.YC(A,1))===1||((x=MA(L))==null?void 0:_.YC(x,1))===4?JF(_.PQ("DMA_CONSENT_GENERAL_ERROR",
{},"Something went wrong while loading")):((B=MA(L))==null?void 0:_.YC(B,1))===7&&((t=z)==null?void 0:(U=_.MS(t,IX,4))==null?void 0:_.YC(U,4))!==1&&JF(_.PQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),IBK((yW=MA(L))==null?void 0:_.YC(yW,1))):JF(_.PQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading"));a.jumpTo(5);break;case 5:_.dC(a,0);break;case 2:_.sj(a),JF(_.PQ("DMA_CONSENT_GENERAL_ERROR",{},"Something went wrong while loading")),_.oI(a)}})},iKB=function(){if(!rLH.has("Worker")){rLH.set("Worker",
!0);
var I={api:"BROWSER_API_WEB_WORKER"};I.available="Worker"in window?!0:!1;_.b2("apiTest",I)}},wOR=function(I){return typeof I==="undefined"?"-1":String(Math.ceil(I/1048576))},DH8=function(I,C){nmR(new PTj(_.l(C,Lh8).addToken,_.l(C,Lh8).commonToken)).then(function(){_.k3(I,"yt-invoke-instrument-manager-action-completed")},function(y){_.k3(I,"yt-invoke-instrument-manager-action-error",y)})},pOK={},QHR=function(I){return _.iHX(pOK,I,function(){return tr(_.u79,I)>=0})},NWR=function(I){return _.Wv(I)},
VAL=function(I){var C=1;
I=I.split(":");for(var y=[];C>0&&I.length;)y.push(I.shift()),C--;I.length&&y.push(I.join(":"));return y},jHP=function(I,C){C=I.aspectRatio()<=C.aspectRatio()?C.width/I.width:C.height/I.height;
I.scale(C)},lBy=function(I,C){C=I.aspectRatio()>C.aspectRatio()?C.width/I.width:C.height/I.height;
return I.scale(C)},XOM=function(I){var C=new _.kj;
return _.KF(C,11,I)},$H8=function(I){var C={};
I=I.getAllResponseHeaders().split("\r\n");for(var y=0;y<I.length;y++)if(!_.eI(I[y])){var k=VAL(I[y]),F=k[0];k=k[1];if(typeof k==="string"){k=k.trim();var z=C[F]||[];C[F]=z;z.push(k)}}return _.Le.map(C,function(c){return c.join(", ")})},TY=function(I,C){return I.JSC$7668_xhr_?I.JSC$7668_xhr_.getResponseHeader(C):null},CR=function(I,C,y){Array.isArray(y)||(y=[String(y)]);
_.yf5(I.JSC$7905_queryData_,C,y);return I},G8R=function(){var I=_.Kp.instance;
_.e(function(C){return I.deferredInstallPrompt?_.n(C,I.deferredInstallPrompt.prompt(),0):C.jumpTo(0)})},RlP=function(I,C,y){if(_.Mz(I))_.mn(I,C,y);
else for(I=_.ejw(I);;){var k=I.next();if(k.done)break;C.call(y,k.value,void 0,I)}},bKR={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}"]},jjj,l_R,X9B,$xR,Rsj,bvY,Y5R,GpM,f_j,$cj,lW8,NUB,S5K,KdK,AEK,g$L,v$R,AGR,SqY,WdP,dxK,xxY,bpY,vkH,q5S,dc8,mxY,mcy,ZvR,BYK,E$Y,hsH,UxY,HvS,t2R,uS,JEM,OvY,
A7j,f0Y,a_Y,M2L,z1,T1,ch,InL,Ckj,s8y,osP,yUM,kNY,F4M,uUK,zVK,ThP;bKR={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 YbK=function(I,C){var y=[];RlP(C,function(k){try{var F=_.oC.prototype.getWrapper.call(this,k,!0)}catch(z){if(z=="Storage: Invalid value was encountered")return;throw z;}F===void 0?y.push(k):_.c3q(F)&&y.push(k)},I);
return y},G$Y=function(I,C){YbK(I,C).forEach(function(y){_.oC.prototype.remove.call(this,y)},I)},fBB=function(I){var C=_.qu;
C._minimumZ=Math.max(C._minimumZ,I)},SbS=["www.youtube-nocookie.com",
"www.youtubeeducation.com","youtube.googleapis.com"],KhK=function(I,C){_.Bi(I.uQ);I.uQ=C},ALL=function(I,C,y,k){I.setState(5);
var F=!!I.zTq&&SbS.includes(_.H5(I.zTq)||"");try{var z=new _.G9({program:C,globalName:y,zr:{disable:!_.V("att_web_record_metrics")||!_.V("att_skip_metrics_for_cookieless_domains_ks")&&F,sC:"aGIf"}});z.dNI.then(function(){I.setState(6);k&&k(C)});
KhK(I,z)}catch(c){I.setState(7),c instanceof Error&&_.SN(c)}},gmK=function(I,C,y,k,F,z){var c=c===void 0?"trayride":c;
y?(I.setState(2),_.W$(y,function(){if(window[c])ALL(I,k,c,F);else{I.setState(3);var r=_.gjt(y),w=document.getElementById(r);w&&(_.qqs(r),w.parentNode.removeChild(w));_.SN(new _.ph("BL:ULB",y))}},z)):C?(z=_.c2("SCRIPT"),C instanceof _.RM?_.GK(z,C):z.textContent=C,z.nonce=_.$b(document),document.head.appendChild(z),document.head.removeChild(z),window[c]?ALL(I,k,c,F):(I.setState(4),_.SN(new _.ph("BL:ULBJ")))):_.SN(new _.ph("BL:ULV"))},vmP=function(){this.state=1;
this.uQ=null;this.zTq=void 0};
_.u=vmP.prototype;_.u.initialize=function(I,C,y,k){this.zTq=k;if(I.program){var F;k=(F=I.interpreterUrl)!=null?F:null;if(I.interpreterSafeScript)F=_.zdI(I.interpreterSafeScript);else{var z;F=(z=I.interpreterScript)!=null?z:null}I.interpreterSafeUrl&&(k=_.YV(I.interpreterSafeUrl).toString());gmK(this,F,k,I.program,C,y)}else _.SN(Error("kf"))};
_.u.isInitialized=function(){return!!this.uQ};
_.u.getState=function(){return this.state};
_.u.isLoading=function(){return this.state===2};
_.u.invoke=function(I){I=I===void 0?{}:I;var C;this.uQ?C=_.ULu(this.uQ,{tY:I}):C=null;return C};
_.u.dispose=function(){KhK(this,null);this.setState(8)};
_.u.setState=function(I){this.state=I};
var WhR=function(I,C){return I.uQ.snapshot(C)},dHY=function(I,C){var y=_.s8("botguard_async_snapshot_timeout_ms",3E3);
C=C===void 0?{}:C;y=y===void 0?3E3:y;return I.uQ?new Promise(function(k,F){var z=!1,c=_.b$.addJob(function(){z=!0;F(Error("lf"))},1,y);
I.uQ?WhR(I,{tY:C}).then(function(r){_.b$.cancelJob(c);z||k(r)}).catch(function(r){_.b$.cancelJob(c);
z||F(r)}):(_.b$.cancelJob(c),k(null))}):Promise.resolve(null)},xHY=["att/log"],qbL;
qbL={searchEndpoint:{},commandMetadata:{webCommandMetadata:{url:"/results?search_query=",rootVe:4724,webPageType:"WEB_PAGE_TYPE_SEARCH"}}};var mHS={signalServiceEndpoint:{signal:"LOAD_GUIDE"}},ZKR=function(I,C){return _.Pg(I,{mode:"readwrite",enableRetries:!0},function(y){return _.jnH(y,C,"settingEntity")})},BWY=function(I,C,y){return _.Pg(I,{mode:"readonly",
enableRetries:!0},function(k){return _.Lsq(k,C,y)})},Emj=function(I){if(!I.storage)return!1;
a:{if(I.storage){try{var C=I.storage.get("TLPQtimestamp")}catch(y){}I=Number(C);if(!isNaN(I))break a}I=void 0}return I?Date.now()-I<864E5:!1},hlP=function(I,C){I.queueProxy&&C.forEach(function(y){if(y.videoId&&y.trackingParams&&I.queueProxy instanceof _.$U){var k=_.Si();
I.queueProxy.attributionData.set(y.videoId,{enqueueingVe:_.nv(y.trackingParams).getAsJson(),enqueueingCsn:k?k:void 0,clientEnqueueingTimeMs:Math.floor((0,_.JY)()).toString()})}})},UHY=function(I){var C=_.J2w(I);
C!=I.currentSnapState_&&(I.currentSnapState_=C,I.actionRouter_.triggerOptionalAction("ytd-update-grid-state-action"))},s6=function(I){this.JSC$10837_networkManager_=I;
this.partCallbacks_=[]};
s6.prototype.getCacheKeyForEndpoint=function(I){return _.FkW(I,!1)};
s6.prototype.onPartsCallback_=function(I){this.partCallbacks_.forEach(function(C){I&&C(I)})};
var oX=function(I,C,y){s6.call(this,I);this.player_=C;this.autoplayData_=y};
_.R(oX,s6);oX.prototype.getCacheKeyForEndpoint=function(I){return _.FkW(I,!!this.autoplayData_)};
oX.prototype.getTempData=function(I,C){C=C.timeBeforeNextVideo;I={itct:I.clickTrackingParams,lact:_.Ci(),pbis:C,prefetch_reason:"hc_pbis",vis:this.player_.getVisibilityState()};this.autoplayData_&&(I.autonav=1);return I};
oX.prototype.getXhrParams=function(I){return Object.assign({pbj:"prefetch"},I)};
oX.prototype.getParams=function(I){I={frags:I.fragmentsRequested.join(",")};_.V("kevlar_droppable_prefetchable_requests")&&(I.prefetch=1);return I};
var HKP=function(I){I.playerEvents_.forEach(function(C){I.player.removeEventListener(C.eventName,C.callback)});
I.playerEvents_.length=0},yA=function(I,C,y){this.player=I;
this.JSC$10847_taskManager=C;this.prefetchDelay=y;this.completionResolver_=null;this.playerEvents_=[]};
yA.prototype.start=function(){var I=this;this.completionResolver_=_.vP();_.N2(this.completionResolver_.promise,function(){HKP(I);I.completionResolver_=null});
this.prepareTrigger(this.completionResolver_);return this.completionResolver_.promise};
var tAL=function(I,C,y){I.player.addEventListener(C,y);I.playerEvents_.push({eventName:C,callback:y})},JLH={watch:{pageFragments:["pl",
"wn"],prefetchedFragments:["pl"]},shorts:{pageFragments:["pl","riw"],prefetchedFragments:["pl"]}},OK8={pl:{requiredKeys:["playerResponse"],graftedKeys:["playerResponse"]},wn:{requiredKeys:["response"],graftedKeys:["response"]}},aBL=function(I,C,y){yA.call(this,I,C,y);this.cueId_="playbackTrigger-"+Math.random()};
_.R(aBL,yA);
aBL.prototype.prepareTrigger=function(I){var C=this,y=this.player.getDuration(),k=this.player.getVideoData(),F=k.isLive&&k.hasProgressBarBoundaries;if(F&&k.progressBarEndPositionUtcTimeMillis){var z=k.progressBarEndPositionUtcTimeMillis/1E3;isNaN(z)||(y=z)}var c=0;this.prefetchDelay>=0?F?k.progressBarStartPositionUtcTimeMillis&&(k=k.progressBarStartPositionUtcTimeMillis/1E3,isNaN(k)||(c=k+this.prefetchDelay)):c=this.prefetchDelay:c=y+this.prefetchDelay;F?this.player.addUtcCueRange(this.cueId_,c,y):
this.player.addCueRange(this.cueId_,c,y);_.N2(I.promise,function(){C.player.removeCueRange(C.cueId_)});
tAL(this,"onCueRangeEnter",function(r){r==C.cueId_&&I.resolve(y-c)})};
var MAY=function(I,C){I.fragmentConfiguration_[C].requiredKeys.every(function(y){return!!I.prefetchedData_[y]})&&(I.validatedFragments_.push(C),C=I.missingFragments_.indexOf(C),C!==-1&&I.missingFragments_.splice(C,1))},I_H=function(I){I.prefetchedFragments_.forEach(function(C){MAY(I,C)})},CUK=function(I,C,y){this.pageFragments_=I;
this.prefetchedFragments_=C;this.fragmentConfiguration_=OK8;this.prefetchedData_=y;this.validatedFragments_=[];this.missingFragments_=this.pageFragments_.slice();this.mergedPrefetchedData_=null;I_H(this)},sjL=function(){},o$B=function(I){this.JSC$10861_playlistManager_=I};
_.R(o$B,sjL);o$B.prototype.getPrefetchEndpoint=function(){return this.JSC$10861_playlistManager_.getAutoplayEndpoint()};
var yEK=function(I){this.autonavEndpoints_=I};
_.R(yEK,sjL);yEK.prototype.getPrefetchEndpoint=function(){return this.autonavEndpoints_.length?this.autonavEndpoints_[0]:void 0};
var kpK=function(I,C,y,k,F){this.autonavEndpoints=I;this.foregroundTrigger=C;this.backgroundTrigger=y;this.pageType=k;this.isInPlaylist=F},FdR=function(I,C){if(I.webPrefetchData&&I.webPrefetchData.navigationEndpoints&&I.webPrefetchData.navigationEndpoints.length){I=I.webPrefetchData.navigationEndpoints;
var y=_.l(I[0],_.H$);if(y.watchEndpointSupportedPrefetchConfig&&y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig){var k=y.watchEndpointSupportedPrefetchConfig.prefetchHintConfig;y=k.playbackRelativeSecondsPrefetchCondition;y=typeof y==="number"&&Math.abs(y)<C.videoDuration?y:void 0;k=k.countdownUiRelativeSecondsPrefetchCondition;k=typeof k!=="number"||_.V("prefetch_job_config_cleanup_ks")&&C.inPlaylist?void 0:k;if(typeof k==="number")return new kpK(I,C.makeUpNextTrigger(k),C.makePlaybackTrigger(k),
"watch",C.inPlaylist);if(typeof y==="number")return new kpK(I,C.makePlaybackTrigger(y),null,"watch",C.inPlaylist)}}},uWy=function(I){return I.prefetchJobConfig_.backgroundTrigger?_.W5(_.qUK)()==0?I.prefetchJobConfig_.backgroundTrigger:I.prefetchJobConfig_.foregroundTrigger:I.prefetchJobConfig_.foregroundTrigger},zsS=function(I){_.Pf(document,"visibilitychange",I.onVisibilityChange_,!1,I)},kQ=function(I){s6.call(this,I)};
_.R(kQ,s6);kQ.prototype.getCacheKeyForEndpoint=function(I){return s6.prototype.getCacheKeyForEndpoint.call(this,I)};
kQ.prototype.getTempData=function(){return{}};
kQ.prototype.getXhrParams=function(I){return I};
kQ.prototype.getParams=function(){return{}};
var TYP=function(I,C,y){var k=I.prefetchDelay*1E3;if(Math.abs(k)>C)y.promise.cancel("Not enough time to prefetch, cancelling prefetch job");else{var F=k,z=C-k;k<0&&(F=C+k,z=Math.abs(k));var c=I.JSC$10847_taskManager.addJob(function(){y.resolve(z/1E3)},10,F);
y.promise.thenCatch(function(){I.JSC$10847_taskManager.cancelJob(c)})}},cEy=function(I,C,y){yA.call(this,I,C,y)};
_.R(cEy,yA);cEy.prototype.prepareTrigger=function(I){var C=this;tAL(this,"onAutonavCoundownStarted",function(y){TYP(C,y,I)})};
var esY=function(I){I.pendingPrefetchJob_&&(I.pendingPrefetchJob_.cancel(),I.pendingPrefetchJob_=null)},rEL=function(I,C,y){if(!I.triggeredTargets.has(C)){var k=_.gZS(I,C);
k.action=y;_.KQu(I,C,k)}},ivS=function(I){_.XWd();
_.MGY("cpt")&&_.SN(Error("lh"));_.sF.requestAnimationFrame(function(){_.sF.setTimeout(function(){_.Sr("cpt");var C=_.g9("vpl"),y=_.g9("cpt");C&&y&&_.Sr("ol",Math.max(C,y))})});
try{_.Sr("fr_s"),I()}catch(C){_.GB(C)}_.sF.requestAnimationFrame(function(){_.Sr("bcp")})},w9Y=function(I,C){I.serviceEndpointHandlers.push(C)},n$Y=function(I,C){C=I.pendingPages_.indexOf(C);
C>-1&&I.pendingPages_.splice(C,1)},PUP=function(I,C){var y=_.xIm.indexOf(C);
y>-1&&_.xIm.splice(y,1);I.targetPage_==C?(I.abort(),_.mI0(I)):n$Y(I,C)},Ldj=function(I,C,y,k){C={challenge:C};
y&&(C.webResponse=y);return _.b_(I.innertubeTransportService,C,_.tS(xHY),k)},DxL=function(I,C,y){if(!C.challenge)throw Error("ni");
if(C.botguardData&&C.botguardData.program){var k=new vmP;k.initialize(C.botguardData,function(){dHY(k,{atr_challenge:C.challenge}).then(function(F){if(!F)throw Error("oi");return Ldj(I,C.challenge,F,y)}).catch(function(F){_.SN(F);
return Ldj(I,C.challenge,void 0,y)})},void 0)}else Ldj(I,C.challenge,void 0,y)},p9j=function(I,C,y){var k={};
C.ids&&(k.ids=[].concat(_.Py(C.ids)));C.engagementType&&(k.engagementType=C.engagementType);return _.b_(I.innertubeTransportService,k,_.tS(_.Ase),y).then(function(F){if(!F)throw new _.ph("GetAttestationChallenge returned falsy");DxL(I,F,y)}).thenCatch(function(F){_.GB(F)})},QjR=function(I,C,y){return new _.eN(function(k,F){var z;
return _.e(function(c){if(c.nextAddress==1){var r=C.engagementType,w=C.ids,L={};w=_.T(w!=null?w:[]);for(var D=w.next();!D.done;D=w.next())D=D.value,D.encryptedVideoId?L.encryptedVideoId=D.encryptedVideoId:D.externalChannelId?L.externalChannelId=D.externalChannelId:D.commentId?L.commentId=D.commentId:D.externalOwnerId?L.externalOwnerId=D.externalOwnerId:D.artistId?L.artistId=D.artistId:D.playlistId?L.playlistId=D.playlistId:D.externalPostId?L.externalPostId=D.externalPostId:D.shareId&&(L.shareId=D.shareId);
return _.n(c,gtY(r,L),2)}z=c.yieldResult;if(!z.challenge)return _.SN(Error("pi")),p9j(I,C,y).then(k,F),c.return();r=z;L={challenge:r.challenge};L.webResponse=r.webResponse;L.engagementType=C.engagementType;L.ids=C.ids;_.b_(I.innertubeTransportService,L,_.tS(xHY),y).then(k,F);_.oI(c)})})},WMR=function(I,C){var y,k,F,z;
_.e(function(c){if(c.nextAddress==1){y=_.l(C,_.dYb);if(!(y&&y.listId&&I.response&&I.response.playingVideoId)||I.listId!==y.listId)return c.return();I.index===void 0&&(I.index=0);return _.n(c,_.agu(I.JSC$10670_playlistNetworkManager,y.listId,I.index,I.response.playingVideoId),2)}k=c.yieldResult;if(!k)return c.return();F=k.playlistId;z=k.playlistPanelRenderer;I.setPlaylistData(F,z,k.autoplayRenderer);_.oI(c)})},NYK=function(I,C,y){var k=I.getParams(y),F=_.p9K(C,k),z=I.getTempData(C,y);
z.endpoint=JSON.stringify(C);_.V("enable_unknown_lact_fix_on_html5")&&(_.N().resolve(_.Qc),z.lact=_.Ci());var c={headers:{"X-YouTube-STS":_.Aq("STS"),"x-youtube-csoc":1}};_.aC(F,z);return new _.eN(function(r,w){var L=I.getXhrParams(k),D;_.V("kevlar_cache_on_ttl_player")&&(D=_.IA.instance);D&&_.rDm(D,C)?_.Q90(D,C,z,window.location.href).then(function(p){p?r(p):w()},w):_.W9m(I.JSC$10837_networkManager_,C,L,I.onPartsCallback_.bind(I),c).then(function(p){p?r(p):w()},w)})},V2j=function(I,C){I.triggerPromise_=
C.start();
I.triggerPromise_.then(function(y){var k=I.prefetchEndpointProvider_.getPrefetchEndpoint();if(k){var F=JLH[I.prefetchJobConfig_.pageType].prefetchedFragments;I.prefetchRequestPromise_=NYK(I.JSC$10873_networkPrefetchRequest_,k,{fragmentsRequested:F,timeBeforeNextVideo:y});I.prefetchResponseCacheKey_=I.JSC$10873_networkPrefetchRequest_.getCacheKeyForEndpoint(k);zsS(I);I.prefetchRequestPromise_.then(function(z){I.storePrefetchedDataCallback_(I.prefetchResponseCacheKey_,z);if(_.V("web_prefetch_preload_video")&&
F.length===1&&F[0]==="pl"&&z&&!z.playerAds&&!z.adPlacements){var c=_.l(k,_.PD),r=c!=null,w={raw_player_response:z,watch_endpoint:c};(z=_.N().resolve(r?_.A48:_.OZ))&&k&&z.then(function(L){r&&_.V("web_queue_preload_video")?(w.prefer_gapless=!0,L.queueNextVideo(w)):L.preloadVideoByPlayerVars(w)})}})}})},FA=function(I,C,y,k){this.prefetchEndpointProvider_=I;
this.prefetchRequestPromise_=this.triggerPromise_=null;this.storePrefetchedDataCallback_=C;this.prefetchJobConfig_=y;this.JSC$10873_networkPrefetchRequest_=k;this.prefetchResponseCacheKey_=null};
FA.prototype.enqueue=function(){this.triggerPromise_||(V2j(this,uWy(this)),_.Lv(document,"visibilitychange",this.onVisibilityChange_,!1,this))};
FA.prototype.resolve=function(){this.cancel()};
FA.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.");zsS(this)};
FA.prototype.onVisibilityChange_=function(){var I=this;_.W5(_.qUK)()==0?this.triggerPromise_&&(this.triggerPromise_.thenCatch(function(){I.triggerPromise_=null}),this.triggerPromise_.cancel("Visibility changed to background, trigger promise cancelled.")):this.triggerPromise_||V2j(this,uWy(this))};
jjj=function(I,C,y,k,F){C&&(C==null?0:C.videoId)&&y&&y.entries&&_.V("kevlar_enable_shorts_prefetch_in_sequence")&&(esY(I),C=y.entries.map(function(z){var c;return(c=_.l(z.command,_.PD))==null?void 0:c.videoId}).indexOf(C.videoId),y=y.entries[C+1],y!=null&&y.command&&!_.l(y==null?void 0:y.command,_.Yf)&&(k=new kpK([y.command],new aBL(k,_.b$,1),null,"shorts",!1),I.pendingPrefetchJob_=new FA(new yEK(k.autonavEndpoints),function(){return!1},k,new kQ(F)),I.pendingPrefetchJob_.enqueue()))};
l_R=function(I,C,y,k,F,z){var c=_.ho.getInstance();if(!_.V("block_all_player_prefetch_requests")){esY(I);var r=!!y.getPlaylistId(),w=y.getVideoData().isLive&&y.getVideoData().hasProgressBarBoundaries;if((c.getState()==2||r||w)&&(!y.getVideoData().isLive||w)){c={inPlaylist:r,videoDuration:y.getDuration(),makeUpNextTrigger:function(D){return new cEy(y,_.b$,D)},
makePlaybackTrigger:function(D){return new aBL(y,_.b$,D)}};
var L=FdR(C,c);L&&(I.pendingPrefetchJob_=new FA(L.isInPlaylist?new o$B(F):new yEK(L.autonavEndpoints),function(D,p){p=new CUK(JLH[L.pageType].pageFragments,JLH[L.pageType].prefetchedFragments,p);return _.lwm(p)?(I.prefetchCache_.set(D,p),!0):!1},L,new oX(k,y,z,F)),I.pendingPrefetchJob_.enqueue())}}};
X9B=function(){var I=_.gf();I.signals.parkOrScheduleJob(function(){var C=I.storage;if(C.storage)if(Emj(C)){var y=C.getPlaylistId();C=C.getIndex();y=!!y&&C!==void 0}else C.clear(),y=!1;else y=!1;if(y){y=I.pageManager.isOnWatch();a:{var k=I.storage;if(k.storage&&Emj(k)&&(C=k.getPlaylistId(),k=k.getIndex(),C&&k!==void 0)){y={recoverPlaylistCommand:{listId:C,index:k,openMiniplayer:!y,openListPanel:y,listType:"PLAYLIST_EDIT_LIST_TYPE_QUEUE"}};break a}y=void 0}y&&_.Gv(I.JSC$10670_actionRouter,[y],null)}},
0,"ma")};
$xR=function(I,C,y,k,F,z){var c=_.Dn(7111);_.oV(I.JSC$15992_screenManager,c,z?_.nv(z):void 0);_.kU(I.JSC$15992_screenManager,c,{offlineabilityData:{offlineModeType:"OFFLINE_NOW",offlineObjectType:k,offlineId:C,offlineabilityFormatType:y,isDefaultFormatType:F==="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED",downloadQualitySettingsAction:F}})};
Rsj=function(I,C,y,k,F){var z,c,r,w,L;return _.e(function(D){if(D.nextAddress==1)return _.n(D,I.JSC$15992_playerApiPromise,2);z=D.yieldResult;$xR(I,C,y,"OFFLINE_OBJECT_TYPE_PLAYLIST",k,F);if(r=_.lg0[I.entityTypeMap.listEntityType])L={},c=(L[r]={maximumDownloadQuality:(w=y)!=null?w:void 0},L);return _.n(D,z.queueOfflineAction(C,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)})};
bvY=function(I,C){var y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return _.n(c,I.JSC$15992_persistentStorePromiseAccessor(),2);if(c.nextAddress!=3){y=c.yieldResult;if(!y)return _.SN(new _.ph("PES is undefined")),c.return();k=_.TL(C,"downloadStatusEntity");return _.n(c,BWY(y,k,"downloadStatusEntity"),3)}F=c.yieldResult;return c.return((z=F)==null?void 0:z.downloadState)})};
Y5R=function(I,C,y,k,F){var z,c,r,w,L,D;return _.e(function(p){switch(p.nextAddress){case 1:return _.n(p,I.JSC$15992_playerApiPromise,2);case 2:z=p.yieldResult;$xR(I,C,y,"OFFLINE_OBJECT_TYPE_VIDEO",k,F);if(r=_.lg0[I.entityTypeMap.singleEntityType])L={},c=(L[r]={maximumDownloadQuality:(w=y)!=null?w:void 0},L);return _.n(p,bvY(I,C),3);case 3:D=p.yieldResult;if(D!=="DOWNLOAD_STATE_USER_DELETED"){p.jumpTo(4);break}return _.n(p,I.deleteVideo(C),4);case 4:return _.n(p,z.queueOfflineAction(C,I.entityTypeMap.singleEntityType,
"OFFLINE_ORCHESTRATION_ACTION_TYPE_ADD",c),0)}})};
GpM=function(I,C,y,k,F){return _.e(function(z){return z.nextAddress==1?_.n(z,I.deleteVideo(C,"OFFLINE_DELETE_REASON_FAILED_VIDEO_RETRY"),2):_.n(z,Y5R(I,C,y,k,F),0)})};
f_j=function(I,C,y){var k,F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.JSC$15992_playerApiPromise,2);k=z.yieldResult;F=_.TL(C,"mainVideoDownloadStateEntity");return _.n(z,k.updateDownloadState(F,y),0)})};
$cj=function(I){var C=_.N().resolve(_.EW);return _.e(function(y){if(y.nextAddress==1)return C.previousDownloadStateForVideo[I]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&C.previousDownloadStateForVideo[I]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"?y.jumpTo(2):_.n(y,C.resumeVideoDownload(I),2);if(y.nextAddress!=4)return _.n(y,f_j(C,I,C.previousDownloadStateForVideo[I]),4);delete C.previousDownloadStateForVideo[I];_.oI(y)})};
lW8=function(I,C){var y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$15992_playerApiPromise,2);y=k.yieldResult;return _.n(k,y.queueOfflineAction(C,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE"),0)})};
NUB=function(){var I=_.N().resolve(_.EW),C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$15992_playerApiPromise,2);if(k.nextAddress!=3)return C=k.yieldResult,y={offlineLoggingData:{offlineDeleteReason:"OFFLINE_DELETE_REASON_SETTINGS_DELETE_ALL"}},_.n(k,C.queueOfflineAction("!*$_ALL_ENTITIES_!*$",I.entityTypeMap.singleEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE",y),3);var F=I.JSC$15992_commandHandler,z=F.resolveCommand,c=_.PQ("DELETING_ALL",void 0,"Downloads are being deleted");
z.call(F,{openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cx(c)}},popupType:"TOAST"}});_.oI(k)})};
S5K=function(I){var C,y;return _.e(function(k){if(k.nextAddress==1)return _.n(k,I.JSC$15992_prefStorage,2);C=k.yieldResult;return k.return((y=C)==null?void 0:y.get("sdois"))})};
KdK=function(I){var C,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return _.n(r,I.JSC$15992_persistentStorePromiseAccessor(),2);if(r.nextAddress!=3){C=r.yieldResult;if(!C)return _.SN(new _.ph("PES is undefined")),r.return();y=_.TL("SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED","settingEntity");return _.n(r,BWY(C,y,"settingEntity"),3)}k=r.yieldResult;return r.return((c=(F=k)==null?void 0:(z=F.settingOptionValue)==null?void 0:z.boolValue)!=null?c:!1)})};
AEK=function(I,C){var y,k,F,z;return _.e(function(c){switch(c.nextAddress){case 1:return((y=C)==null?void 0:y.formatType)===void 0?c.return():_.n(c,I.JSC$15992_prefStorage,2);case 2:k=c.yieldResult;if(k===void 0)return c.return();if(((F=C)==null?void 0:F.settingsAction)==="DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE")return _.n(c,k.set("lmqf",C.formatType),8);if(((z=C)==null?void 0:z.settingsAction)!=="DOWNLOAD_QUALITY_SETTINGS_ACTION_EXPIRING_SAVE"){c.jumpTo(0);break}return _.n(c,k.set("lmqf",C.formatType),
6);case 6:return _.n(c,k.set("lmqflst",Math.floor((0,_.JY)())),0);case 8:return _.n(c,k.remove("lmqflst"),0)}})};
g$L=function(I){var C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,I.JSC$15992_prefStorage,2);case 2:C=k.yieldResult;if(!C){k.jumpTo(3);break}return _.n(k,C.get("lmqflst"),4);case 4:if(y=k.yieldResult,y!==void 0)return k.return(y);case 3:return k.return(0)}})};
v$R=function(I){var C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,I.JSC$15992_prefStorage,2);case 2:C=k.yieldResult;if(C===void 0){k.jumpTo(3);break}return _.n(k,C.get("lmqf"),4);case 4:if(y=k.yieldResult,y!==void 0)return k.return(y);case 3:return k.return("SD")}})};
AGR=function(I,C,y){var k,F,z,c,r,w,L,D;_.e(function(p){switch(p.nextAddress){case 1:return _.n(p,AEK(I,(k=C)==null?void 0:k.actionParams),2);case 2:F=C.playlistId;if(!F)return p.return();if(C.action==="ACTION_ADD")return((c=C.actionParams)==null?0:c.formatType)?_.n(p,Rsj(I,F,C.actionParams.formatType,(D=C.actionParams)==null?void 0:D.settingsAction,y),0):_.n(p,I.offlineWebClientEligibility,14);if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var Q=I.JSC$15992_commandHandler,X=Q.resolveCommand,b=_.Aq("INNERTUBE_CLIENT_NAME");
var S=b==="WEB_REMIX"?_.PQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.PQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var A=b==="WEB_REMIX"?[_.PQ("REMOVE_DOWNLOAD_CONFIRMATION",void 0,"Items you remove will no longer play without an internet connection.")]:[];b=b==="WEB_REMIX"?_.PQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.PQ("DELETE",void 0,"Delete");var x=_.PQ("CANCEL",void 0,"Cancel");S=vtL(S,A,b,x,{signal:"DELETE_PLAYLIST_DOWNLOAD",targetId:F});X.call(Q,{openPopupAction:S});
return p.return()}if(C.action==="ACTION_REMOVE")return _.n(p,lW8(I,F),0);if(C.action!=="ACTION_SYNC"){p.jumpTo(0);break}return _.n(p,I.JSC$15992_playerApiPromise,9);case 9:return z=p.yieldResult,_.n(p,z.queueOfflineAction(F,I.entityTypeMap.listEntityType,"OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);case 14:return r=p.yieldResult,_.n(p,v$R(I),15);case 15:return w=p.yieldResult,_.n(p,g$L(I),16);case 16:L=p.yieldResult,C.onAddCommand&&I.JSC$15992_commandHandler.resolveCommand(C.onAddCommand,{form:{preferredFormatType:w,
offlineWebClientEligibility:r,lastOfflineQualitySettingsSavedMs:L.toString()}}),p.jumpTo(0)}})};
SqY=function(I,C,y){var k,F,z,c,r,w,L,D,p,Q,X,b,S,A;_.e(function(x){switch(x.nextAddress){case 1:return _.n(x,AEK(I,(k=C)==null?void 0:k.actionParams),2);case 2:F=C.videoId;if(!F)return x.return();if(C.action==="ACTION_REMOVE_WITH_PROMPT"){var B=I.JSC$15992_commandHandler,t=B.resolveCommand,U=_.Aq("INNERTUBE_CLIENT_NAME");var yW=U==="WEB_REMIX"?_.PQ("REMOVE_DOWNLOAD_QUESTION",void 0,"Remove download?"):_.PQ("DELETE_FROM_DOWNLOADS",void 0,"Remove from downloads");var a=U==="WEB_REMIX"?[_.PQ("REMOVE_DOWNLOAD_CONFIRMATION_TRACK_OFFLINE",
void 0,"This track won't be available to listen offline.")]:[];U=U==="WEB_REMIX"?_.PQ("REMOVE_DOWNLOAD_BUTTON",void 0,"Remove"):_.PQ("DELETE",void 0,"Delete");var cs=_.PQ("CANCEL",void 0,"Cancel");yW=vtL(yW,a,U,cs,{signal:"DELETE_DOWNLOAD",targetId:F});t.call(B,{openPopupAction:yW});return x.return()}if(C.action==="ACTION_ADD")return((Q=C.actionParams)==null?0:Q.formatType)?_.n(x,Y5R(I,F,C.actionParams.formatType,(A=C.actionParams)==null?void 0:A.settingsAction,y),0):_.n(x,I.offlineWebClientEligibility,
23);if(C.action==="ACTION_RETRY")return _.n(x,v$R(I),19);if(C.action==="ACTION_PAUSE")return _.n(x,I.pauseVideoDownload(F),0);if(C.action==="ACTION_RESUME")return _.n(x,I.resumeVideoDownload(F),0);if(C.action!=="ACTION_REMOVE"){x.jumpTo(0);break}return _.n(x,bvY(I,F),13);case 13:return z=x.yieldResult,I.previousDownloadStateForVideo[F]=(c=z)!=null?c:"DOWNLOAD_STATE_UNKNOWN",_.n(x,f_j(I,F,"DOWNLOAD_STATE_USER_DELETED"),14);case 14:if(I.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_DOWNLOAD_IN_PROGRESS"&&
I.previousDownloadStateForVideo[F]!=="DOWNLOAD_STATE_PENDING_DOWNLOAD"){x.jumpTo(15);break}return _.n(x,I.pauseVideoDownload(F),15);case 15:B=_.PQ("DELETED_VIDEO",void 0,"Video deleted from downloads.");t=_.PQ("UNDO_ACTION",void 0,"Undo");yW=_.PQ("CLOSE",void 0,"Close");r={openPopupAction:{popup:{notificationActionRenderer:{responseText:_.Cx(B),actionButton:{buttonRenderer:{style:"STYLE_LIGHT_TEXT",size:"SIZE_DEFAULT",text:_.Cx(t),serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"UNDO_DELETE_DOWNLOAD",
targetId:F}}]}},loggingDirectives:{clientVeSpec:{uiType:169048}},accessibilityData:{accessibilityData:{label:B+" "+t}}}},closeActionButton:{buttonRenderer:{icon:{iconType:"CLOSE"},serviceEndpoint:{signalServiceEndpoint:{signal:"CLIENT_SIGNAL",actions:[{signalAction:{signal:"DELETE_DOWNLOAD",targetId:F}}]}},loggingDirectives:{clientVeSpec:{uiType:169049}},accessibilityData:{accessibilityData:{label:yW}}}},loggingDirectives:{clientVeSpec:{uiType:169047}}}},popupType:"TOAST"}};I.JSC$15992_commandHandler.resolveCommand(r);
x.jumpTo(0);break;case 19:w=x.yieldResult;w==="UNKNOWN_FORMAT_TYPE"&&(w="SD");L="DOWNLOAD_QUALITY_SETTINGS_ACTION_ALREADY_SAVED";if((D=C.actionParams)==null?0:D.formatType)w=C.actionParams.formatType,L=(p=C.actionParams)==null?void 0:p.settingsAction;return _.n(x,GpM(I,F,w,L,y),20);case 20:return x.return();case 23:return X=x.yieldResult,_.n(x,v$R(I),24);case 24:return b=x.yieldResult,_.n(x,g$L(I),25);case 25:S=x.yieldResult,C.onAddCommand&&I.JSC$15992_commandHandler.resolveCommand(C.onAddCommand,
{form:{preferredFormatType:b,offlineWebClientEligibility:X,lastOfflineQualitySettingsSavedMs:S.toString()}}),x.jumpTo(0)}})};
WdP=function(I,C){var y,k,F,z,c,r,w;return _.e(function(L){if(L.nextAddress==1)return _.n(L,I.JSC$15992_persistentStorePromiseAccessor(),2);y=L.yieldResult;if(!y)return _.SN(new _.ph("PES is undefined")),L.return();if((k=C)==null||!k.settingItemId)return L.return();F=C;z=F.settingItemId;c=F.boolValue;r=_.TL(z,"settingEntity");w={key:r,settingOptionValue:{boolValue:c}};return _.n(L,ZKR(y,w),0)})};
dxK=function(I,C){var y,k,F,z,c,r,w;return _.e(function(L){switch(L.nextAddress){case 1:return _.n(L,I.JSC$15992_prefStorage,2);case 2:return y=L.yieldResult,k=_.pA(),_.n(L,I.JSC$15992_persistentStorePromiseAccessor(),3);case 3:return F=L.yieldResult,y?F?_.n(L,y.get("sdois"),4):(_.SN(new _.ph("PES is undefined")),L.return()):(_.SN(new _.ph("prefStorage is undefined")),L.return());case 4:z=L.yieldResult;r=(c=C)==null?void 0:c.boolValue;r===void 0||_.V("kevlar_set_sd_enabled_flag_killswitch")||_.Qw(0,
197,!0);z===void 0&&r===void 0&&(r=!1);if(r===void 0){L.jumpTo(0);break}return _.n(L,y.set("sdois",r),6);case 6:return _.V("kevlar_set_sd_enabled_flag_killswitch")||(_.Qw(0,196,r),k.save()),w={settingItemId:"SMART_DOWNLOADS_ENABLED",boolValue:r},_.n(L,WdP(I,w),0)}})};
xxY=function(I,C,y){var k,F,z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:return _.n(w,S5K(I),2);case 2:return k=w.yieldResult,_.n(w,dxK(I,y),3);case 3:return _.n(w,S5K(I),4);case 4:return F=w.yieldResult,z=F!==k,_.n(w,KdK(I),5);case 5:c=w.yieldResult&&!_.V("kevlar_modern_downloads_page");if((r=!F&&!c)||z)return _.n(w,C.queueOfflineAction("DOWNLOADS_LIST_ENTITY_ID_SMART_DOWNLOADS","mainDownloadsListEntity","OFFLINE_ORCHESTRATION_ACTION_TYPE_REFRESH"),0);w.jumpTo(0)}})};
bpY=function(){var I=_.N().resolve(_.EW),C;_.e(function(y){switch(y.nextAddress){case 1:return _.n(y,I.JSC$15992_playerApiPromise,2);case 2:C=y.yieldResult;if(!_.V("kevlar_force_refresh_smart_downloads")){y.jumpTo(3);break}return _.n(y,C.refreshAllStaleEntities(0),4);case 4:return y.return();case 3:return _.n(y,C.refreshAllStaleEntities(),5);case 5:return _.n(y,xxY(I,C),0)}})};
vkH=function(I,C){var y,k;_.e(function(F){switch(F.nextAddress){case 1:return _.n(F,I.JSC$15992_playerApiPromise,2);case 2:y=F.yieldResult;switch((k=C)==null?void 0:k.settingItemId){case "SMART_DOWNLOADS_ENABLED":return F.jumpTo(3);case "SMART_DOWNLOADS_OPT_IN_BANNER_DISMISSED":return F.jumpTo(4)}F.jumpTo(0);break;case 3:return _.n(F,xxY(I,y,C),6);case 6:F.jumpTo(0);break;case 4:return _.n(F,WdP(I,C),7);case 7:F.jumpTo(0)}})};
q5S=function(I,C){var y,k,F;return _.e(function(z){if(z.nextAddress==1)return _.n(z,I.JSC$15992_persistentStorePromiseAccessor(),2);if(z.nextAddress!=3){y=z.yieldResult;if(!y)return _.SN(new _.ph("PES is undefined")),z.return(!1);if(!C)return z.return(!1);k=_.TL(C,"mainVideoEntity");return _.n(z,BWY(y,k,"mainVideoEntity"),3)}F=z.yieldResult;return z.return(F!==void 0)})};
dc8=function(I){var C=_.N().resolve(_.EW),y,k,F,z,c,r,w,L,D,p,Q;_.e(function(X){switch(X.nextAddress){case 1:return _.n(X,C.JSC$15992_playerApiPromise,2);case 2:y=X.yieldResult;F=(k=I)==null?void 0:k.actions;if(!F)return X.return();z=_.T(F);c=z.next();case 3:if(c.done){X.jumpTo(0);break}r=c.value;L=w=void 0;if(!(((w=r)==null?0:w.entityKey)&&((L=r)==null?0:L.actionType))){X.jumpTo(4);break}D=_.Fy(r.entityKey);p=D.entityId;Q=D.entityType;return _.n(X,y.queueOfflineAction(p,Q,r.actionType),4);case 4:c=
z.next(),X.jumpTo(3)}})};
mxY=function(I,C){var y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return _.n(r,I.JSC$15992_prefStorage,2);if(r.nextAddress!=3)return(y=r.yieldResult)?_.n(r,y.get("psi"),3):r.return();k=r.yieldResult;c={isPaused:C,lastSyncTimestamp:(z=(F=k)==null?void 0:F.lastSyncTimestamp)!=null?z:"0"};return _.n(r,y.set("psi",c),0)})};
mcy=function(I){var C=_.N().resolve(_.EW),y,k,F,z,c,r,w,L;return _.e(function(D){switch(D.nextAddress){case 1:return _.n(D,C.JSC$15992_playerApiPromise,2);case 2:y=D.yieldResult;F=((k=I)==null?void 0:k.localWatchHistoryCommandType)==="LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE";switch((r=I)==null?void 0:r.localWatchHistoryCommandType){case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_CLEAR":z="!*$_ALL_ENTITIES_!*$";c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE";break;case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_PAUSE":case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_RESUME":return D.jumpTo(3);
case "LOCAL_WATCH_HISTORY_COMMAND_TYPE_REMOVE":return D.jumpTo(4)}D.jumpTo(5);break;case 3:return _.n(D,mxY(C,F),6);case 6:D.jumpTo(5);break;case 4:return _.n(D,q5S(C,(w=I)==null?void 0:w.videoId),7);case 7:D.yieldResult&&(z=(L=I)==null?void 0:L.videoId,c="OFFLINE_ORCHESTRATION_ACTION_TYPE_DELETE");D.jumpTo(5);break;case 5:if(z&&c)return _.n(D,y.queueOfflineAction(z,"videoPlaybackPositionEntity",c),0);D.jumpTo(0)}})};
ZvR=function(I,C){var y;C!==1||((y=I.currentPersistentToast)==null?0:y.opened)?I.openToast():I.currentPersistentToast=void 0};
BYK=function(){var I,C,y,k;return _.e(function(F){if(F.nextAddress==1)return I=navigator,(C=I.storage)!=null&&C.persisted?_.n(F,(y=I.storage)==null?void 0:y.persisted(),2):F.return("PERSISTED_STATE_NOT_SUPPORTED");k=F.yieldResult;return F.return(k?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
E$Y=function(){var I,C,y,k;return _.e(function(F){if(F.nextAddress==1)return I=navigator,(C=I.storage)!=null&&C.persist?_.n(F,(y=I.storage)==null?void 0:y.persist(),2):F.return("PERSISTED_STATE_NOT_SUPPORTED");k=F.yieldResult;return F.return(k?"PERSISTED_STATE_GRANTED":"PERSISTED_STATE_NOT_GRANTED")})};
hsH=function(){var I,C;return _.e(function(y){switch(y.nextAddress){case 1:return I="PERSISTED_STATE_NOT_SUPPORTED",_.aM(y,2),_.n(y,BYK(),4);case 4:I=y.yieldResult;if(I!=="PERSISTED_STATE_NOT_GRANTED"){y.jumpTo(5);break}return _.n(y,E$Y(),6);case 6:I=y.yieldResult;case 5:_.dC(y,3);break;case 2:C=_.sj(y),C instanceof Error&&_.GB(C);case 3:return _.b2("persistentStorageStateChecked",{persistedState:I}),y.return(I)}})};
UxY=function(I,C){var y=[],k=!1;C=_.T(C);for(var F=C.next();!F.done;F=C.next()){F=I.moduleRegistry[F.value];var z=void 0,c=void 0;((z=F)==null?0:z.isFetching)&&((c=F)==null?0:c.resolver)?(y.push(F.resolver.promise),k=!0):(F=new _.ug,F.resolve(void 0),y.push(F.promise))}return k?Promise.all(y):void 0};
HvS=function(I,C,y){y=y===void 0?{}:y;var k=I.defaultViewTransitionOptions,F=C.map(function(c){return c.beforeTransition}),z=C.map(function(c){return c.afterTransition});
return Object.assign({},k,y,{beforeTransition:function(){var c;(c=k.beforeTransition)==null||c.call(k);var r,w;(w=(r=y).beforeTransition)==null||w.call(r);c=_.T(F);for(r=c.next();!r.done;r=c.next())r=r.value,r()},
afterTransition:function(){var c;(c=k.afterTransition)==null||c.call(k);var r,w;(w=(r=y).afterTransition)==null||w.call(r);c=_.T(z);for(r=c.next();!r.done;r=c.next())r=r.value,r()}})};
t2R=function(I,C,y){var k,F,z,c,r,w,L;_.e(function(D){if(I.config.disableAllTransitions)return D.return(C());if((k=y)==null||!k.transitionName)return D.return(_.zkB(C,(F=y)==null?void 0:F.viewTransitionOptions));z=y;c=z.transitionName;r=z.viewTransitionOptions;w=I.config.transitionConfigs.get(c);if(!w)return D.return(C());var p;L=(p=I.transitionTasksMap.get(c))!=null?p:[];return D.return(_.zkB(C,HvS(w,L,r)))})};
uS=function(I,C,y){I.transitionTasksMap.has(C)?I.transitionTasksMap.get(C).push(y):(I=new _.ph("Transition task registered for unknown transition name",C),_.GB(I))};
JEM=function(I,C,y){if(I.isInitialized()){var k=Jr(y),F=k==="watch";k=k==="shorts";var z=Jr(C)==="watch";if(F)z||(I.backgroundPageData=C),I.watchPipMode&&z||I.deactivate(y.endpoint);else if(k){if(Jr(C)!=="shorts"){var c;(c=I.getPlayerElement())==null||c.pause()}}else z&&!I.watchPipMode&&(dS8(C,y)?(I.watchWhileMode&&_.wnK(I,!1),_.zEM(I,C)):I.isMiniplayerActive()&&I.watchWhileMode&&I.deactivate());z&&_.PiS(I);I.shortsPipMode&&!k&&(window.focus(),I.deactivate());if(k&&I.shortsPipEnabled||F&&I.watchPipEnabled)_.LpW(I.handleMediaSessionPipActivation);
else if(!I.isMiniplayerActive()&&(I.shortsPipEnabled||I.watchPipEnabled)&&_.bK()&&_.cXm("Chromium")>=120){I=_.PMW().mediaSession;try{I.setActionHandler("enterpictureinpicture",null)}catch(r){}}}};
OvY=function(I,C){var y,k;_.e(function(F){if(F.nextAddress==1){if(!I||!I.navigationEndpoint)return F.return();_.ck().lockupActivation=!0;var z;C?z=_.Ee(_.PQ("QUEUE",void 0,"Queue")):z=I.longBylineText;k=(y=z)&&I.title?{miniplayerTitle:I.title,miniplayerSubtitle:y,playlistData:null}:void 0;return _.n(F,_.fPb(_.N().resolve(_.WJ),I.navigationEndpoint,!0,k),2)}_.ck().userActivation=!0;_.oI(F)})};
A7j=function(I,C){var y,k,F,z,c,r;_.e(function(w){if(w.nextAddress==1){y=_.l(C,_.WR8);if(!y||!y.listId)return w.return();I.index=y.index||I.index||0;k=I.response&&I.response.playingVideoId||void 0;return _.n(w,_.agu(I.JSC$10670_playlistNetworkManager,y.listId,I.index,k),2)}F=w.yieldResult;if(!F)return w.return();z=F.playlistId;c=F.playlistPanelRenderer;!I.queueProxy&&z&&c&&z.startsWith("TLPQ")&&(I.queueProxy=new _.$U(I.JSC$10670_playlistNetworkManager,z,I.setPlaylistData.bind(I),I.clearQueue.bind(I),
_.JJt(c),I.storage));if(y.openMiniplayer&&(r=_.OuH(c))&&!I.pageManager.isOnWatch()){var L=r,D=y.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE";I.isMiniplayerActive()?I.openToast(L):OvY(L,D)}I.setPlaylistData(z,c,F.autoplayRenderer);_.oI(w)})};
f0Y=function(I,C){var y=_.gf();y.index===void 0&&(y.index=0);y.temporaryItems.push.apply(y.temporaryItems,_.Py(I));if((C.videoId||C.videoIds)&&y.index!==void 0&&C.listType==="PLAYLIST_EDIT_LIST_TYPE_QUEUE"){if(!y.queueProxy){var k=[];if(y.response){var F=_.N().resolve(_.WJ).isMiniplayerActive();if(y.response.playlistPanelRenderer&&y.response.playlistId&&!y.response.playlistId.startsWith("TLPQ")){if(y.pageManager.isOnWatch()||F)k=_.JJt(y.response.playlistPanelRenderer)}else y.response.playingVideoId&&
!C.openMiniplayer?k.push(y.response.playingVideoId):F&&y.response.playingVideoId&&C.openMiniplayer&&k.push(y.response.playingVideoId)}y.queueProxy=new _.$U(y.JSC$10670_playlistNetworkManager,"",y.setPlaylistData.bind(y),y.clearQueue.bind(y),k,y.storage);y.queueProxy.JSC$10616_setCurrentIndex(y.index)}y.queueProxy.addVideos(C.videoIds||[C.videoId],C)}hlP(y,I);y.response&&_.vk(y,_.Wk(y,y.response.autoplayRenderer));y.pageManager.isOnWatch()?y.isMiniplayerActive()&&y.openToast(I[0]):(I=I[0],C=C.listType===
"PLAYLIST_EDIT_LIST_TYPE_QUEUE",y.isMiniplayerActive()?y.openToast(I):OvY(I,C))};
a_Y=function(I){var C=_.zM(I);if(C=="object"||C=="array"){if(typeof I.clone==="function")return I.clone();if(typeof Map!=="undefined"&&I instanceof Map)return new Map(I);if(typeof Set!=="undefined"&&I instanceof Set)return new Set(I);C=C=="array"?[]:{};for(var y in I)C[y]=a_Y(I[y]);return C}return I};
M2L=function(I,C){I=_.wd(I,C,void 0,_.i4);I!=null&&(typeof I==="bigint"?I>=0&&(0,_.UH)(I)?I=Number(I):(I=(0,_.f8)(64,I),I=(0,_.UH)(I)?Number(I):String(I)):I=_.cR(I)?typeof I==="number"?_.RL(I):_.GM(I):void 0);return I};
z1=function(I,C){return _.tI9(_.wd(I,C,void 0,_.i4))};
T1=function(I,C){return _.DS(_.wd(I,C,void 0,_.i4))};
ch=function(I,C){return _.wd(I,C,void 0,_.i4,_.uj)};
InL=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;_.xG(C,y,_.vv(I.decoder_,_.aw));return!0},_.Em,_.xC);
Ckj=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.vv(I.decoder_,_.aw));return!0},_.Em,_.xC);
s8y=_.dR(function(I,C,y){if(I.nextWireType_!==1)return!1;var k=I.decoder_;I=_.dd(k);k=_.dd(k);I=_.Jc(I,k);_.xG(C,y,I);return!0},_.Z8t,_.u59);
osP=_.dR(function(I,C,y){if(I.nextWireType_!==5)return!1;_.xG(C,y,_.dd(I.decoder_));return!0},function(I,C,y){C=_.p8(C);
C!=null&&(_.qj(I,y,5),_.Z8(I.encoder_,C))},_.l7());
yUM=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;I=_.mpW(I.decoder_);_.xG(C,y,I===!1?void 0:I);return!0},_.ByX,_.yAt);
kNY=_.dR(function(I,C,y){if(I.nextWireType_!==2)return!1;I=_.Hlm(I);_.xG(C,y,I===""?void 0:I);return!0},_.hYs,_.kqm);
F4M=_.dR(function(I,C,y){if(I.nextWireType_!==2)return!1;I=_.tQX(I);_.xG(C,y,I===_.gS()?void 0:I);return!0},_.H8H,_.Tut);
uUK=_.KLs(function(I,C,y){if(I.nextWireType_!==0&&I.nextWireType_!==2)return!1;C=_.L2(C,C[_.Vd]|0,y);I.nextWireType_==2?_.Jlm(I,NWR,C):C.push(_.Wv(I.decoder_));return!0},function(I,C,y){C=_.SHz(_.DS,C,!0);
if(C!=null&&C.length){y=_.TyF(I,y);for(var k=0;k<C.length;k++)_.xKt(I.encoder_,C[k]);_.cPI(I,y)}},_.cAI);
zVK=_.dR(function(I,C,y){if(I.nextWireType_!==0)return!1;I=_.Wv(I.decoder_);_.xG(C,y,I===0?void 0:I);return!0},_.tBH,_.cAI);
ThP=_.dR(function(I,C,y,k){if(I.nextWireType_!==0)return!1;_.Dz(C,y,k,_.Wv(I.decoder_));return!0},_.tBH,_.cAI);
_.vn=function(I){this.privateDoNotAccessOrElseWrappedStyleSheet=I};
_.vn.prototype.toString=function(){return this.privateDoNotAccessOrElseWrappedStyleSheet};
var cUM=function(I,C){var y=[];for(C=C||0;C<I.length;C+=2)_.pR5(I[C],I[C+1],y);return y.join("&")},eVB=function(I,C){var y=arguments.length==2?cUM(arguments[1],0):cUM(arguments,1);
return _.DKd(I,y)},m1B=function(I,C){return new _.Q6(I.x+C.x,I.y+C.y)},rUj=function(I){return I.previousElementSibling!==void 0?I.previousElementSibling:_.WLS(I.previousSibling,!1)},iEL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(iEL,_.GR);iEL.prototype.getValue=function(){var I=_.wd(this,2);if(Array.isArray(I)||I instanceof _.GR)throw Error("aa");return _.LF(this,2)};
var zyS=function(){var I=_.o_();this.JSC$7786_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/opened",_.aE("channel_type"))};
zyS.prototype.increment=function(I){this.JSC$7786_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/opened",I)};
var T8R=function(){var I=_.o_();this.JSC$7789_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/closed",_.aE("channel_type"))};
T8R.prototype.increment=function(I){this.JSC$7789_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/closed",I)};
var eyY=function(){var I=_.o_();this.JSC$7792_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",_.aE("channel_type"))};
eyY.prototype.increment=function(I){this.JSC$7792_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/message_received",I)};
var c$8=function(){var I=_.o_();this.JSC$7795_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
c$8.prototype.increment=function(){this.JSC$7795_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/success")};
var r$j=function(){var I=_.o_();this.JSC$7798_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/channel/error",_.aE("channel_type"),_.aE("error_type"))};
r$j.prototype.increment=function(I,C){this.JSC$7798_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/channel/error",I,C)};
var iq8=function(){var I=_.o_();this.JSC$7801_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
iq8.prototype.increment=function(){this.JSC$7801_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps")};
var w$M=function(){var I=_.o_();this.JSC$7804_streamzService=I;I.addNewCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
w$M.prototype.increment=function(){this.JSC$7804_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps")};
var uIR=function(){var I=_.o_();this.JSC$7810_streamzService=I;I.addNewCounter("/client_streamz/youtube/identity/dma_pause_player")};
uIR.prototype.increment=function(){this.JSC$7810_streamzService.JSC$7659_incrementCounter("/client_streamz/youtube/identity/dma_pause_player")};
var wPS=function(I){return I.getCount&&typeof I.getCount=="function"?I.getCount():_.Mz(I)||typeof I==="string"?I.length:_.Le.getCount(I)},nsM=function(I,C){if(typeof I.every=="function")return I.every(C,void 0);
if(_.Mz(I)||typeof I==="string")return Array.prototype.every.call(I,C,void 0);for(var y=_.tyu(I),k=_.Hf(I),F=k.length,z=0;z<F;z++)if(!C.call(void 0,k[z],y&&y[z],I))return!1;return!0},PkL=function(I,C,y,k){var F=new _.t$(null);
I&&_.tZ(F,I);C&&_.JZ(F,C);y&&_.Ov(F,y);k&&_.az(F,k);return F},L4R=function(){var I=_.S7&&tr(_.uTc,10)>=0,C;
if(C=_.Cxm)C=tr(_.FZY,10)>=0;var y=_.cv&&tr(_.uTc,85)>=0;return _.u4||I||C||y},D3S=function(I){var C=_.zTd(I);
return C&&L4R()?-I.scrollLeft:C&&_.Ak(I,"overflowX")!="visible"?I.scrollWidth-I.clientWidth-I.scrollLeft:I.scrollLeft},pPY=function(I,C){C=Math.max(C,0);
_.zTd(I)?L4R()?I.scrollLeft=-C:I.scrollLeft=I.scrollWidth-C-I.clientWidth:I.scrollLeft=C},IvR=0,kDK=!1;
ag.prototype.set=function(I){this.relativeTimeStart_=I};
ag.prototype.reset=function(){this.set(_.CF())};
ag.prototype.get=function(){return this.relativeTimeStart_};
var Q8j=null,NhS=function(){Q8j||(Q8j=new ag)},VzL=function(){Q8j||(Q8j=new ag)};
_.s0(VzL,NhS);_.u=ujj.prototype;_.u.JSC$9137_buffer_="";_.u.set=function(I){this.JSC$9137_buffer_=""+I};
_.u.append=function(I,C,y){this.JSC$9137_buffer_+=String(I);if(C!=null)for(var k=1;k<arguments.length;k++)this.JSC$9137_buffer_+=arguments[k];return this};
_.u.clear=function(){this.JSC$9137_buffer_=""};
_.u.getLength=function(){return this.JSC$9137_buffer_.length};
_.u.toString=function(){return this.JSC$9137_buffer_};
var j8K=function(){var I={type:"unit",style:"narrow"};this.listType_=I&&I.type?I.type:"conjunction";this.listStyle_=I&&I.style?I.style:"long";this.listSymbols_=bKR;I=0;switch(this.listStyle_){case "short":I=1;break;case "narrow":I=2}switch(this.listType_){case "conjunction":this.listStartPattern_=this.listSymbols_.AND_START[I];this.listTwoPattern_=(this.listSymbols_.AND_TWO||this.listSymbols_.AND_END)[I];this.listMiddlePattern_=(this.listSymbols_.AND_MIDDLE||this.listSymbols_.AND_START)[I];this.listEndPattern_=
this.listSymbols_.AND_END[I];break;case "disjunction":this.listStartPattern_=(this.listSymbols_.OR_START||this.listSymbols_.AND_START)[I];this.listTwoPattern_=(this.listSymbols_.OR_TWO||this.listSymbols_.OR_END)[I];this.listMiddlePattern_=(this.listSymbols_.OR_MIDDLE||this.listSymbols_.AND_START)[I];this.listEndPattern_=this.listSymbols_.OR_END[I];break;case "unit":this.listStartPattern_=(this.listSymbols_.UNIT_START||this.listSymbols_.AND_START)[I],this.listTwoPattern_=(this.listSymbols_.UNIT_TWO||
this.listSymbols_.UNIT_END)[I],this.listMiddlePattern_=(this.listSymbols_.UNIT_MIDDLE||this.listSymbols_.AND_START)[I],this.listEndPattern_=this.listSymbols_.UNIT_END[I]}};
j8K.prototype.format=function(I){return ln8(this,I)};
var ln8=function(I,C){var y=C.length;switch(y){case 0:return"";case 1:return String(C[0]);case 2:return I.listTwoPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1]))}for(var k=I.listStartPattern_.replace("{0}",String(C[0])).replace("{1}",String(C[1])),F=2;F<y-1;++F)k=I.listMiddlePattern_.replace("{0}",k).replace("{1}",String(C[F]));return I.listEndPattern_.replace("{0}",k).replace("{1}",String(C[y-1]))},jej=function(){var I={style:1};
this.style_=(I==null?void 0:I.style)||0;this.durationSymbols_=_.$Vb||_.mcS},XPP=function(I,C){switch(C){default:case "years":return I.durationSymbols_.YEAR;
case "months":return I.durationSymbols_.MONTH;case "weeks":return I.durationSymbols_.WEEK;case "days":return I.durationSymbols_.DAY;case "hours":return I.durationSymbols_.HOUR;case "minutes":return I.durationSymbols_.MINUTE;case "seconds":return I.durationSymbols_.SECOND}},eb=function(I,C,y){a:{y=XPP(I,y);
switch(I.style_){case 1:if(y.LONG!=void 0){I=y.LONG;break a}case 2:if(y.NARROW!=void 0){I=y.NARROW;break a}default:I=y.SHORT;break a}I=void 0}return I?(new _.cLq("{DURATION_VALUE,plural,"+I+"}")).format({DURATION_VALUE:C}):""};
jej.prototype.format=function(I){var C=[],y=I.years,k=I.months,F=I.weeks,z=I.days,c=I.hours,r=I.minutes;I=I.seconds;y!=null&&C.push(eb(this,y,"years"));k!=null&&C.push(eb(this,k,"months"));F!=null&&C.push(eb(this,F,"weeks"));z!=null&&C.push(eb(this,z,"days"));c!=null&&C.push(eb(this,c,"hours"));r!=null&&C.push(eb(this,r,"minutes"));I!=null&&C.push(eb(this,I,"seconds"));return(new j8K).format(C)};
var $3j=!1,wFR=function(I){_.Im.call(this,I.message||I.description||I.name);this.isMissing=I instanceof MW;this.isTimeout=I instanceof _.xB&&I.errorCode=="net.timeout";this.isCanceled=I instanceof _.qJ};
_.R(wFR,_.Im);wFR.prototype.name="BiscottiError";var MW=function(){_.Im.call(this,"Biscotti ID is missing from server")};
_.R(MW,_.Im);MW.prototype.name="BiscottiMissingError";var IT=null,VrL=function(){try{var I=_.d5("yt.ads.biscotti.getId_");return I?I():USR()}catch(C){return _.mr(C)}},VPB,RVL=function(I){return _.yE({type:"SET_GUIDE_IS_EXPANDED",
payload:I})},bES=function(I){return _.yE({type:"SET_ONLINE_STATUS",
payload:I})},YZS=function(I,C){return _.yE({type:"SET_TRANSCRIPTION_STATE",
payload:{high:I,low:C}})},GNR=function(I){return _.yE({type:"SET_OVERLAY_STATE",
payload:I})},fnY=0,SZH=function(I,C,y){var k=this;
this.priority=C;this.delay=y;this.jobId=0;this.completionCallback=_.nQ;this.wrappedJob=function(){I();k.completionCallback()};
this.id=++fnY};
SZH.prototype.enqueue=function(I){this.completionCallback=I;this.jobId=_.b$.addJob(this.wrappedJob,this.priority,this.delay)};
var rK=function(){_.Mi.call(this);this.isActive=!1;this.suspendedTasks=new Set;this.scheduledTasks=new Set;this.taskIdToTask=new Map};
_.R(rK,_.Mi);rK.prototype.addJob=function(I,C,y){I=new SZH(I,C,y);this.taskIdToTask.set(I.id,I);this.isActive?K4P(this,I):this.suspendedTasks.add(I);return I.id};
var K4P=function(I,C){I.scheduledTasks.add(C);C.enqueue(function(){I.scheduledTasks.delete(C)})};
rK.prototype.cancelJob=function(I){(I=this.taskIdToTask.get(I))&&(this.scheduledTasks.delete(I)?_.b$.cancelJob(I.jobId):this.suspendedTasks.delete(I))};
rK.prototype.pause=function(){var I=this;this.isActive=!1;this.scheduledTasks.forEach(function(C){_.b$.cancelJob(C.jobId);I.suspendedTasks.add(C)});
this.scheduledTasks.clear()};
rK.prototype.start=function(){var I=this;this.isActive=!0;this.suspendedTasks.forEach(function(C){K4P(I,C)});
this.suspendedTasks.clear()};
rK.prototype.reset=function(){this.scheduledTasks.forEach(function(I){_.b$.cancelJob(I.jobId)});
this.scheduledTasks.clear();this.suspendedTasks.clear();this.taskIdToTask.clear()};
var iS=function(I,C){this.JSC$10797_networkService_=I;this.pageRequestPromise=C};
iS.prototype.fetchData=function(I){AUK(this,this.JSC$10797_networkService_.fetchData(I))};
iS.prototype.postData=function(I,C){AUK(this,this.JSC$10797_networkService_.postData(I,C))};
iS.prototype.requestDataForServiceEndpoint=function(I,C){AUK(this,this.JSC$10797_networkService_.requestDataForServiceEndpoint(I,C))};
var AUK=function(I,C){C.then(I.pageRequestPromise.onSuccess,I.pageRequestPromise.onFailure,I.pageRequestPromise)};
iS.prototype.cancel=function(){this.pageRequestPromise.cancel()};
var wK=function(I){this.buildNetworkRequest_=I;this.pendingRequests_=new Set};
wK.prototype.reset=function(){this.pendingRequests_.forEach(function(I){I.cancel()});
this.pendingRequests_.clear()};
wK.prototype.fetchData=function(I){var C=gsL(this);C.fetchData(I);return C.pageRequestPromise};
wK.prototype.postData=function(I,C){var y=gsL(this);y.postData(I,C);return y.pageRequestPromise};
wK.prototype.requestDataForServiceEndpoint=function(I,C){var y=gsL(this);y.requestDataForServiceEndpoint(I,C);return y.pageRequestPromise};
var gsL=function(I){var C=I.buildNetworkRequest_();I.pendingRequests_.add(C);var y=function(){I.pendingRequests_.delete(C)};
C.pageRequestPromise.then(y,y);return C},vsY=function(I){var C=new rK;
this.JSC$10804_networkService_=I;this.JSC$10804_taskManager_=C;this.JSC$10804_networkManager_=new wK(this.networkRequestFactory_.bind(this))};
_.u=vsY.prototype;_.u.networkRequestFactory_=function(){return new iS(this.JSC$10804_networkService_,new _.O7(this.JSC$10804_taskManager_))};
_.u.reset=function(){this.JSC$10804_taskManager_.reset();this.JSC$10804_networkManager_.reset()};
_.u.start=function(){this.JSC$10804_taskManager_.start()};
_.u.pause=function(){this.JSC$10804_taskManager_.pause()};
_.u.getTaskManager=function(){return this.JSC$10804_taskManager_};
_.u.getNetworkManager=function(){return this.JSC$10804_networkManager_};
var bwL=null,fvP=[],sz=0,yi=0,oT=null,W4B=function(){var I=(0,_.BPP)();I&&G$Y(I,I.mechanism.__iterator__(!0))},FY=function(I){this.token=I};
FY.getInstance=function(){var I;return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.HN(),2);I=C.yieldResult;if(!I)return C.return();FY.instance||(FY.instance=new FY(I));return C.return(FY.instance)})};
var WxR=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,AzL(I.token),2);C=y.yieldResult;return y.return(C.clear("resource-manifest-assets"))})},k0=function(I){this.token=I};
k0.getInstance=function(){var I;return _.e(function(C){if(C.nextAddress==1)return _.n(C,_.HN(),2);I=C.yieldResult;if(!I)return C.return();k0.instance||(k0.instance=new k0(I));return C.return(k0.instance)})};
var gVR=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,AzL(I.token),2);C=y.yieldResult;return _.n(y,C.clear("auth"),0)})},d3Y=!1,u5=null,Owy=void 0,FUY=!1,x3M=function(I){_.Im.call(this,I)};
_.R(x3M,_.xN5);var MiK=function(){var I=window.navigator.userAgent.match(/Chrome\/([0-9]+)/);return I?parseInt(I[1],10):0},qZ8=function(I){return!!document.currentScript&&(document.currentScript.src.indexOf("?"+I)!=-1||document.currentScript.src.indexOf("&"+I)!=-1)},m3H=function(){return typeof window.__onGCastApiAvailable=="function"?window.__onGCastApiAvailable:null},y7P=function(I){I.length?ZES(I.shift(),function(){y7P(I)}):CWP()},FMH=function(I){return"chrome-extension://"+I+"/cast_sender.js"},ZES=function(I,
C,y){var k=document.createElement("script");
k.onerror=C;y&&(k.onload=y);_.fa(k,_.Qo(I));(document.head||document.documentElement).appendChild(k)},BhR=function(){var I=MiK(),C=[];
if(I>1){var y=I-1;C.push("//www.gstatic.com/eureka/clank/"+I+"/cast_sender.js");C.push("//www.gstatic.com/eureka/clank/"+y+"/cast_sender.js")}return C},CWP=function(){var I=m3H();
I&&I(!1,"No cast extension found")},o3M=function(){if(EsR){var I=2,C=m3H(),y=function(){I--;
I==0&&C&&C(!0)};
window.__onGCastApiAvailable=y;ZES("//www.gstatic.com/cast/sdk/libs/sender/1.0/cast_framework.js",CWP,y)}},I0B=function(){o3M();
var I=BhR();I.push("//www.gstatic.com/eureka/clank/cast_sender.js");y7P(I)},stj=function(){o3M();
var I=BhR();I.push.apply(I,_.Py(kgM.map(FMH)));I.push("//www.gstatic.com/eureka/clank/cast_sender.js");y7P(I)},EsR=qZ8("loadCastFramework")||qZ8("loadCastApplicationFramework"),kgM=["pkedcjkdefgpdelpbcmbmeomcjbeemfm",
"enhhojjnijigcajfphajepfemndkmdlo"];var hVL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(hVL,_.GR);var U38=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(U38,_.GR);var HEY=function(){var I=new U38;return _.A0(I,1,3)};var nR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(nR,_.GR);var HiH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(HiH,_.GR);var tz8=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(tz8,_.GR);tz8.prototype.getToken=function(){return _.b4(this,1)};
tz8.prototype.setToken=function(I){return _.ac(this,1,I)};
var hj8=function(I){return _.u7(I,3,_.AP,_.Hi())},UUM=function(I){return _.u7(I,6,_.AP,_.Hi())};var Ph=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(Ph,_.GR);Ph.prototype.getToken=function(){return _.MS(this,tz8,2)};
Ph.prototype.setToken=function(I){return _.JT(this,2,I)};
Ph.prototype.getName=function(){return _.b4(this,6)};
var JUY=_.Ha(Ph);var OEy=function(I,C,y){this.requestMessage=I;this.methodDescriptor=C;this.metadata=y};
OEy.prototype.getMetadata=function(){return this.metadata};var anK=function(I,C){C=C===void 0?{}:C;this.responseMessage=I;this.metadata=C;this.status=null};
anK.prototype.getMetadata=function(){return this.metadata};
anK.prototype.getStatus=function(){return this.status};var LR=function(I,C,y,k,F){this.name=I;this.methodType="unary";this.requestType=C;this.responseType=y;this.requestSerializeFn=k;this.responseDeserializeFn=F},MzP=function(I,C,y){y=y===void 0?{}:y;
return new OEy(C,I,y)};
LR.prototype.getName=function(){return this.name};var DX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(DX,_.GR);DX.prototype.setHeader=function(I){return _.JT(this,1,I)};
DX.prototype.hasHeader=function(){return _.nF(this,nR,1)};var IuL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(IuL,_.GR);var CYP=new LR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",DX,IuL,function(I){return I.serialize()},_.Ha(IuL));var pR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(pR,_.GR);pR.prototype.setHeader=function(I){return _.JT(this,1,I)};
pR.prototype.hasHeader=function(){return _.nF(this,nR,1)};var sYB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(sYB,_.GR);var oA8=new LR("/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",pR,sYB,function(I){return I.serialize()},_.Ha(sYB));var QA=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(QA,_.GR);QA.prototype.setHeader=function(I){return _.JT(this,1,I)};
QA.prototype.hasHeader=function(){return _.nF(this,nR,1)};var y98=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(y98,_.GR);y98.prototype.getLink=function(){return _.MS(this,Ph,1)};var kUP=new LR("/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",QA,y98,function(I){return I.serialize()},_.Ha(y98));var NN=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(NN,_.GR);NN.prototype.setHeader=function(I){return _.JT(this,1,I)};
NN.prototype.hasHeader=function(){return _.nF(this,nR,1)};var FO8=new LR("/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",NN,Ph,function(I){return I.serialize()},JUY);var uiY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(uiY,_.GR);var z4H=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(z4H,_.GR);z4H.prototype.getUrl=function(){return _.b4(this,2)};
z4H.prototype.setUrl=function(I){return _.ac(this,2,I)};var TJM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(TJM,_.GR);var c9Y=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(c9Y,_.GR);var e4H=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(e4H,_.GR);var k2H=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(k2H,_.GR);var yny=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(yny,_.GR);var r9L=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(r9L,_.GR);var rnH=_.Ha(r9L);var iMj=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(iMj,_.GR);var VA=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(VA,_.GR);VA.prototype.setHeader=function(I){return _.JT(this,1,I)};
VA.prototype.hasHeader=function(){return _.nF(this,nR,1)};
VA.prototype.getCompletionUrl=function(){return _.b4(this,6)};
VA.prototype.getDeviceId=function(){return _.b4(this,11)};var wjY=new LR("/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",VA,r9L,function(I){return I.serialize()},rnH);var nAj=new Set(["SAPISIDHASH","APISIDHASH"]);var PYB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(PYB,_.GR);PYB.prototype.getMessage=function(){return _.b4(this,2)};
var LOB=_.Ha(PYB);var jb=function(I,C){this.xhrNodeReadableStream_=I.nodeReadableStream;this.grpcResponseDeserializeFn_=C;this.JSC$16906_xhr_=I.xhr;this.onDataCallbacks_=[];this.onMetadataCallbacks_=[];this.onStatusCallbacks_=[];this.onEndCallbacks_=[];this.JSC$16906_onErrorCallbacks_=[];this.xhrNodeReadableStream_&&DlB(this)},luS=function(I,C){var y=new pjR;
_.Lv(I.JSC$16906_xhr_,"complete",function(){if(I.JSC$16906_xhr_.isSuccess()){var k=I.JSC$16906_xhr_.getResponseText();var F;if(F=C)F=I.JSC$16906_xhr_,F.JSC$7668_xhr_&&F.isComplete()?(F=F.JSC$7668_xhr_.getResponseHeader("Content-Type"),F=F===null?void 0:F):F=void 0,F=F==="text/plain";if(F){if(!atob)throw Error("Jj");k=atob(k)}try{var z=I.grpcResponseDeserializeFn_(k)}catch(r){lS(I,SsR(new _.jg(13,"Error when deserializing response data; error: "+r+(", response: "+k)),y));return}k=_.o1(I.JSC$16906_xhr_.getStatus());
QYY(I,NJP(I));k==0?Vj8(I,z):lS(I,SsR(new _.jg(k,"Xhr succeeded but the status code is not 200"),y))}else{k=I.JSC$16906_xhr_.getResponseText();z=NJP(I);if(k){var c=jYS(I,k);k=c.code;F=c.details;c=c.metadata}else k=2,F="Rpc failed due to xhr error. uri: "+String(I.JSC$16906_xhr_.JSC$7668_lastUri_)+", error code: "+I.JSC$16906_xhr_.JSC$7668_lastErrorCode_+", error: "+I.JSC$16906_xhr_.getLastError(),c=z;QYY(I,z);lS(I,SsR(new _.jg(k,F,c),y))}})},DlB=function(I){I.xhrNodeReadableStream_.on("data",function(C){if("1"in
C){var y=C["1"];
try{var k=I.grpcResponseDeserializeFn_(y)}catch(F){lS(I,new _.jg(13,"Error when deserializing response data; error: "+F+(", response: "+y)))}k&&Vj8(I,k)}if("2"in C)for(C=jYS(I,C["2"]),y=0;y<I.onStatusCallbacks_.length;y++)I.onStatusCallbacks_[y](C)});
I.xhrNodeReadableStream_.on("end",function(){QYY(I,NJP(I));for(var C=0;C<I.onEndCallbacks_.length;C++)I.onEndCallbacks_[C]()});
I.xhrNodeReadableStream_.on("error",function(){if(I.JSC$16906_onErrorCallbacks_.length!=0){var C=I.JSC$16906_xhr_.JSC$7668_lastErrorCode_;C!==0||I.JSC$16906_xhr_.isSuccess()||(C=6);var y=-1;switch(C){case 0:var k=2;break;case 7:k=10;break;case 8:k=4;break;case 6:y=I.JSC$16906_xhr_.getStatus();k=_.o1(y);break;default:k=14}QYY(I,NJP(I));C=_.Rkm(C)+", error: "+I.JSC$16906_xhr_.getLastError();y!=-1&&(C+=", http status code: "+y);lS(I,new _.jg(k,C))}})},NJP=function(I){var C={},y=$H8(I.JSC$16906_xhr_);
Object.keys(y).forEach(function(k){C[k]=y[k]});
return C},jYS=function(I,C){var y=2,k={};
try{var F=LOB(C);y=_.ti(F,1);var z=F.getMessage();_.U1(F,iEL,3,_.Hi()).length&&(k["grpc-web-status-details-bin"]=C)}catch(c){I.JSC$16906_xhr_&&I.JSC$16906_xhr_.getStatus()===404?(y=5,z="Not Found: "+String(I.JSC$16906_xhr_.JSC$7668_lastUri_)):(y=14,z="Unable to parse RpcStatus: "+c)}return{code:y,details:z,metadata:k}};
jb.prototype.on=function(I,C){I=="data"?this.onDataCallbacks_.push(C):I=="metadata"?this.onMetadataCallbacks_.push(C):I=="status"?this.onStatusCallbacks_.push(C):I=="end"?this.onEndCallbacks_.push(C):I=="error"&&this.JSC$16906_onErrorCallbacks_.push(C);return this};
var XA=function(I,C){C=I.indexOf(C);C>-1&&I.splice(C,1)};
jb.prototype.removeListener=function(I,C){I=="data"?XA(this.onDataCallbacks_,C):I=="metadata"?XA(this.onMetadataCallbacks_,C):I=="status"?XA(this.onStatusCallbacks_,C):I=="end"?XA(this.onEndCallbacks_,C):I=="error"&&XA(this.JSC$16906_onErrorCallbacks_,C);return this};
jb.prototype.cancel=function(){this.JSC$16906_xhr_.abort()};
var Vj8=function(I,C){for(var y=0;y<I.onDataCallbacks_.length;y++)I.onDataCallbacks_[y](C)},QYY=function(I,C){for(var y=0;y<I.onMetadataCallbacks_.length;y++)I.onMetadataCallbacks_[y](C)},lS=function(I,C){for(var y=0;y<I.JSC$16906_onErrorCallbacks_.length;y++)I.JSC$16906_onErrorCallbacks_[y](C)};
jb.prototype.cancel=jb.prototype.cancel;jb.prototype.removeListener=jb.prototype.removeListener;jb.prototype.on=jb.prototype.on;var pjR=function(){var I=Error.call(this);this.message=I.message;"stack"in I&&(this.stack=I.stack);Object.setPrototypeOf(this,this.constructor.prototype);this.name="AsyncStack"};
_.R(pjR,Error);var $Q=function(I){this.JSC$16915_worker_=I.worker||null;this.JSC$16915_streamBinaryChunks_=I.streamBinaryChunks||!1;this.JSC$16915_credentialsMode_=void 0};
_.s0($Q,_.h3W);$Q.prototype.createInstance=function(){var I=new RX(this.JSC$16915_worker_,this.JSC$16915_streamBinaryChunks_);this.JSC$16915_credentialsMode_&&I.setCredentialsMode(this.JSC$16915_credentialsMode_);return I};
$Q.prototype.setCredentialsMode=function(I){this.JSC$16915_credentialsMode_=I};
var RX=function(I,C){_.LW.call(this);this.JSC$16919_worker_=I;this.JSC$16919_streamBinaryChunks_=C;this.JSC$16919_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$16919_responseHeaders_=null;this.JSC$16919_method_="GET";this.JSC$16919_url_="";this.inProgress_=!1;this.JSC$16919_textDecoder_=this.currentReader_=this.fetchResponse_=null};
_.s0(RX,_.LW);RX.prototype.open=function(I,C){if(this.readyState!=0)throw this.abort(),Error("Kj");this.JSC$16919_method_=I;this.JSC$16919_url_=C;this.readyState=1;bS(this)};
RX.prototype.send=function(I){if(this.readyState!=1)throw this.abort(),Error("Lj");this.inProgress_=!0;var C={headers:this.requestHeaders_,method:this.JSC$16919_method_,credentials:this.JSC$16919_credentialsMode_,cache:void 0};I&&(C.body=I);(this.JSC$16919_worker_||_.sF).fetch(new Request(this.JSC$16919_url_,C)).then(this.handleResponse_.bind(this),this.handleSendFailure_.bind(this))};
RX.prototype.abort=function(){this.response=this.responseText="";this.requestHeaders_=new Headers;this.status=0;this.currentReader_&&this.currentReader_.cancel("Request was aborted.").catch(function(){return null});
this.readyState>=1&&this.inProgress_&&this.readyState!=4&&(this.inProgress_=!1,YQ(this));this.readyState=0};
RX.prototype.handleResponse_=function(I){if(this.inProgress_&&(this.fetchResponse_=I,this.JSC$16919_responseHeaders_||(this.status=this.fetchResponse_.status,this.statusText=this.fetchResponse_.statusText,this.JSC$16919_responseHeaders_=I.headers,this.readyState=2,bS(this)),this.inProgress_&&(this.readyState=3,bS(this),this.inProgress_)))if(this.responseType==="arraybuffer")I.arrayBuffer().then(this.handleResponseArrayBuffer_.bind(this),this.handleSendFailure_.bind(this));else if(typeof _.sF.ReadableStream!==
"undefined"&&"body"in I){this.currentReader_=I.body.getReader();if(this.JSC$16919_streamBinaryChunks_){if(this.responseType)throw Error("Mj");this.response=[]}else this.response=this.responseText="",this.JSC$16919_textDecoder_=new TextDecoder;Xjj(this)}else I.text().then(this.handleResponseText_.bind(this),this.handleSendFailure_.bind(this))};
var Xjj=function(I){I.currentReader_.read().then(I.handleDataFromStream_.bind(I)).catch(I.handleSendFailure_.bind(I))};
RX.prototype.handleDataFromStream_=function(I){if(this.inProgress_){if(this.JSC$16919_streamBinaryChunks_&&I.value)this.response.push(I.value);else if(!this.JSC$16919_streamBinaryChunks_){var C=I.value?I.value:new Uint8Array(0);if(C=this.JSC$16919_textDecoder_.decode(C,{stream:!I.done}))this.response=this.responseText+=C}I.done?YQ(this):bS(this);this.readyState==3&&Xjj(this)}};
RX.prototype.handleResponseText_=function(I){this.inProgress_&&(this.response=this.responseText=I,YQ(this))};
RX.prototype.handleResponseArrayBuffer_=function(I){this.inProgress_&&(this.response=I,YQ(this))};
RX.prototype.handleSendFailure_=function(){this.inProgress_&&YQ(this)};
var YQ=function(I){I.readyState=4;I.fetchResponse_=null;I.currentReader_=null;I.JSC$16919_textDecoder_=null;bS(I)};
RX.prototype.setRequestHeader=function(I,C){this.requestHeaders_.append(I,C)};
RX.prototype.getResponseHeader=function(I){return this.JSC$16919_responseHeaders_?this.JSC$16919_responseHeaders_.get(I.toLowerCase())||"":""};
RX.prototype.getAllResponseHeaders=function(){if(!this.JSC$16919_responseHeaders_)return"";for(var I=[],C=this.JSC$16919_responseHeaders_.entries(),y=C.next();!y.done;)y=y.value,I.push(y[0]+": "+y[1]),y=C.next();return I.join("\r\n")};
RX.prototype.setCredentialsMode=function(I){this.JSC$16919_credentialsMode_=I};
var bS=function(I){I.onreadystatechange&&I.onreadystatechange.call(I)};
Object.defineProperty(RX.prototype,"withCredentials",{get:function(){return this.JSC$16919_credentialsMode_==="include"},
set:function(I){this.setCredentialsMode(I?"include":"same-origin")}});var $lY=function(I){var C="";_.Le.forEach(I,function(y,k){C+=k;C+=":";C+=y;C+="\r\n"});
return C},R4K=function(I,C,y){if(_.Le.isEmpty(y))return I;
y=$lY(y);if(typeof I==="string")return _.Vx(I,_.q$(C),y);_.q9(I,C,y);return I};var bMy=function(){this.isInputValid_=!0;this.JSC$16925_streamPos_=0;this.leftoverInput_=""};
bMy.prototype.isInputValid=function(){return this.isInputValid_};var c8=function(){this.errorMessage_=null;this.result_=[];this.countLengthBytes_=this.length_=this.tag_=this.state_=this.JSC$16928_streamPos_=0;this.messageBuffer_=null;this.countMessageBytes_=0};
c8.prototype.isInputValid=function(){return this.state_!=3};
var G1=function(I,C,y,k){I.state_=3;I.errorMessage_="The stream is broken @"+I.JSC$16928_streamPos_+"/"+y+". Error: "+k+". With input:\n"+C;throw Error(I.errorMessage_);};
c8.prototype.acceptsBinaryInput=function(){return!0};
c8.prototype.parse=function(I){function C(w){w&128&&G1(z,c,r,"invalid tag");(w&7)!=2&&G1(z,c,r,"invalid wire type");z.tag_=w>>>3;z.tag_!=1&&z.tag_!=2&&z.tag_!=15&&G1(z,c,r,"unexpected tag");z.state_=1;z.length_=0;z.countLengthBytes_=0}
function y(w){z.countLengthBytes_++;z.countLengthBytes_==5&&w&240&&G1(z,c,r,"message length too long");z.length_|=(w&127)<<(z.countLengthBytes_-1)*7;w&128||(z.state_=2,z.countMessageBytes_=0,typeof Uint8Array!=="undefined"?z.messageBuffer_=new Uint8Array(z.length_):z.messageBuffer_=Array(z.length_),z.length_==0&&F())}
function k(w){z.messageBuffer_[z.countMessageBytes_++]=w;z.countMessageBytes_==z.length_&&F()}
function F(){if(z.tag_<15){var w={};w[z.tag_]=z.messageBuffer_;z.result_.push(w)}z.state_=0}
for(var z=this,c=I instanceof Array?I:new Uint8Array(I),r=0;r<c.length;){switch(z.state_){case 3:G1(z,c,r,"stream already broken");break;case 0:C(c[r]);break;case 1:y(c[r]);break;case 2:k(c[r]);break;default:throw Error("Oj`"+z.state_);}z.JSC$16928_streamPos_++;r++}I=z.result_;z.result_=[];return I.length>0?I:null};var A3Y=function(){this.errorMessage_=null;this.JSC$16931_streamPos_=0;this.base64Decoder_=new bMy;this.pbParser_=new c8};
A3Y.prototype.isInputValid=function(){return this.errorMessage_===null};
var YGK=function(I,C,y){I.errorMessage_="The stream is broken @"+I.JSC$16931_streamPos_+". Error: "+y+". With input:\n"+C;throw Error(I.errorMessage_);};
A3Y.prototype.acceptsBinaryInput=function(){return!1};
A3Y.prototype.parse=function(I){this.errorMessage_!==null&&YGK(this,I,"stream already broken");var C=null;try{var y=this.base64Decoder_;if(!y.isInputValid_)throw y.isInputValid_=!1,Error("Nj`"+y.JSC$16925_streamPos_+"`stream already broken`"+I);y.leftoverInput_+=I;var k=Math.floor(y.leftoverInput_.length/4);if(k==0)var F=null;else{try{var z=_.qxO(y.leftoverInput_.slice(0,k*4))}catch(w){var c=y.leftoverInput_,r=w.message;y.isInputValid_=!1;throw Error("Nj`"+y.JSC$16925_streamPos_+"`"+r+"`"+c);}y.JSC$16925_streamPos_+=
k*4;y.leftoverInput_=y.leftoverInput_.slice(k*4);F=z}C=F===null?null:this.pbParser_.parse(F)}catch(w){YGK(this,I,w.message)}this.JSC$16931_streamPos_+=I.length;return C};var KUL=function(){this.errorMessage_=this.jsonStreamParser_=null;this.state_=this.JSC$16934_streamPos_=0;this.result_=[];this.statusParsed_=!1};
KUL.prototype.isInputValid=function(){return this.errorMessage_===null};
KUL.prototype.acceptsBinaryInput=function(){return!1};
KUL.prototype.parse=function(I){function C(w){z.state_=6;z.errorMessage_="The stream is broken @"+z.JSC$16934_streamPos_+"/"+c+". Error: "+w+". With input:\n";throw Error(z.errorMessage_);}
function y(){z.jsonStreamParser_=new _.sJ({allowCompactJsonArrayFormat:!0,deliverMessageAsRawString:!0})}
function k(w){if(w)for(var L=0;L<w.length;L++){var D={};D[1]=w[L];z.result_.push(D)}}
function F(w){if(w){(z.statusParsed_||w.length>1)&&C("extra status: "+w);z.statusParsed_=!0;var L={};L[2]=w[0];z.result_.push(L)}}
for(var z=this,c=0;c<I.length;){var r;if(r=z.state_!==2){a:{for(;c<I.length;){if(!_.CV(I[c])){r=!0;break a}c++;z.JSC$16934_streamPos_++}r=!1}r=!r}if(r)return null;switch(z.state_){case 6:C("stream already broken");break;case 0:I[c]==="["?(z.state_=1,c++,z.JSC$16934_streamPos_++):C("unexpected input token");break;case 1:I[c]==="["?(z.state_=2,y()):I[c]===","||I.slice(c,c+5)=="null,"?z.state_=3:I[c]==="]"?(z.state_=5,c++,z.JSC$16934_streamPos_++):C("unexpected input token");break;case 2:r=z.jsonStreamParser_.parse(I.substring(c));
k(r);z.jsonStreamParser_.done()?(z.state_=3,r=z.jsonStreamParser_.JSC$9264_buffer_,z.JSC$16934_streamPos_+=I.length-c-r.length,I=r,c=0):(z.JSC$16934_streamPos_+=I.length-c,c=I.length);break;case 3:I[c]===","||I.slice(c,c+5)=="null,"?(z.state_=4,y(),z.jsonStreamParser_.parse("["),c+=I[c]===","?1:5,z.JSC$16934_streamPos_++):I[c]==="]"&&(z.state_=5,c++,z.JSC$16934_streamPos_++);break;case 4:r=z.jsonStreamParser_.parse(I.substring(c));F(r);z.jsonStreamParser_.done()?(z.state_=5,r=z.jsonStreamParser_.JSC$9264_buffer_,
z.JSC$16934_streamPos_+=I.length-c-r.length,I=r,c=0):(z.JSC$16934_streamPos_+=I.length-c,c=I.length);break;case 5:C("extra input after stream end")}}return z.result_.length>0?(I=z.result_,z.result_=[],I):null};var GUS=function(I){this.JSC$16937_xhr_=I;this.JSC$16937_parser_=null;this.status_=this.JSC$16937_pos_=0;this.hasStreamingResponseData_=!1;this.dataHandler_=this.statusHandler_=this.JSC$16937_textDecoder_=null;this.JSC$16937_eventHandler_=new _.Cq(this);this.JSC$16937_eventHandler_.listen(this.JSC$16937_xhr_,"readystatechange",this.JSC$16939_readyStateChangeHandler_)},fR=function(I,C){I.status_!=C&&(I.status_=C,I.statusHandler_&&I.statusHandler_())},Sb=function(I){I.JSC$16937_eventHandler_.removeAll();
if(I.JSC$16937_xhr_){var C=I.JSC$16937_xhr_;I.JSC$16937_xhr_=null;C.abort();C.dispose()}};
GUS.prototype.getStatus=function(){return this.status_};
GUS.prototype.JSC$16939_readyStateChangeHandler_=function(I){I=I.target;try{if(I==this.JSC$16937_xhr_)a:{var C=_.Rz(this.JSC$16937_xhr_),y=this.JSC$16937_xhr_.JSC$7668_lastErrorCode_,k=this.JSC$16937_xhr_.getStatus(),F=this.JSC$16937_xhr_.getResponseText();I=[];if(this.JSC$16937_xhr_.getResponse()instanceof Array){var z=this.JSC$16937_xhr_.getResponse();z.length>0&&z[0]instanceof Uint8Array&&(this.hasStreamingResponseData_=!0,I=z)}if(!(C<3||C==3&&!F&&I.length==0))if(k=k==200||k==206,C==4&&(y==8?fR(this,
7):y==7?fR(this,8):k||fR(this,3)),this.JSC$16937_parser_||(this.JSC$16937_parser_=goR(this.JSC$16937_xhr_),this.JSC$16937_parser_==null&&fR(this,5)),this.status_>2)Sb(this);else{if(I.length>this.JSC$16937_pos_){var c=I.length;y=[];try{if(this.JSC$16937_parser_.acceptsBinaryInput())for(var r=0;r<c;r++){var w=this.JSC$16937_parser_.parse(Array.from(I[r]));w&&(y=y.concat(w))}else{w="";if(!this.JSC$16937_textDecoder_){if(typeof TextDecoder==="undefined")throw Error("Pj");this.JSC$16937_textDecoder_=new TextDecoder}for(r=
0;r<c;r++)w+=this.JSC$16937_textDecoder_.decode(I[r],{stream:C==4&&r==c-1});y=this.JSC$16937_parser_.parse(w)}I.splice(0,c);y&&this.dataHandler_(y)}catch(D){fR(this,5);Sb(this);break a}}else if(F.length>this.JSC$16937_pos_){r=F.slice(this.JSC$16937_pos_);this.JSC$16937_pos_=F.length;try{var L=this.JSC$16937_parser_.parse(r);L!=null&&this.dataHandler_&&this.dataHandler_(L)}catch(D){fR(this,5);Sb(this);break a}}C==4?(F.length!=0||this.hasStreamingResponseData_?fR(this,2):fR(this,4),Sb(this)):fR(this,
1)}}}catch(D){fR(this,6),Sb(this)}};var fuK=function(I){I=this.xhrReader_=I;var C=(0,_.DD)(this.onData_,this);I.dataHandler_=C;I=this.xhrReader_;C=(0,_.DD)(this.onStatusChange_,this);I.statusHandler_=C;this.JSC$16941_callbackMap_={};this.callbackOnceMap_={}};
_.u=fuK.prototype;_.u.on=function(I,C){var y=this.JSC$16941_callbackMap_[I];y||(y=[],this.JSC$16941_callbackMap_[I]=y);y.push(C);return this};
_.u.addListener=function(I,C){this.on(I,C);return this};
_.u.removeListener=function(I,C){var y=this.JSC$16941_callbackMap_[I];y&&_.Hs(y,C);(I=this.callbackOnceMap_[I])&&_.Hs(I,C);return this};
_.u.once=function(I,C){var y=this.callbackOnceMap_[I];y||(y=[],this.callbackOnceMap_[I]=y);y.push(C);return this};
_.u.onData_=function(I){var C=this.JSC$16941_callbackMap_.data;C&&SGS(I,C);(C=this.callbackOnceMap_.data)&&SGS(I,C);this.callbackOnceMap_.data=[]};
var SGS=function(I,C){for(var y={},k=0;k<I.length;y={message$jscomp$968:void 0},k++)y.message$jscomp$968=I[k],C.forEach(function(F){return function(z){try{z(F.message$jscomp$968)}catch(c){}}}(y))};
fuK.prototype.onStatusChange_=function(){switch(this.xhrReader_.getStatus()){case 1:KOR(this,"readable");break;case 5:case 6:case 4:case 7:case 3:KOR(this,"error");break;case 8:KOR(this,"close");break;case 2:KOR(this,"end")}};
var KOR=function(I,C){var y=I.JSC$16941_callbackMap_[C];y&&y.forEach(function(k){try{k()}catch(F){}});
(y=I.callbackOnceMap_[C])&&y.forEach(function(k){k()});
I.callbackOnceMap_[C]=[]};var A9L=function(){var I={format:"jspb"};I=I===void 0?{}:I;this.suppressCorsPreflight=I.suppressCorsPreflight||_.d5("suppressCorsPreflight",I)||!1;this.withCredentials=I.withCredentials||_.d5("withCredentials",I)||!1;this.streamInterceptors=I.streamInterceptors||[];this.unaryInterceptors=I.unaryInterceptors||[];this.workerScope=I.workerScope;this.chunkedServerStreaming=I.useFetchDownloadStreams||!1},WOY=function(I,C,y,k,F,z){z=z===void 0?{}:z;
var c=C.substring(0,C.length-F.name.length),r,w=(r=z)==null?void 0:r.signal;return gAK(function(L){return new Promise(function(D,p){if(w==null?0:w.aborted){var Q=new _.jg(1,"Aborted");Q.cause=w.reason;p(Q)}else{var X={},b=vAY(I,L,c);b.on("error",function(S){return void p(S)});
b.on("metadata",function(S){X=S});
b.on("data",function(S){var A=X;A=A===void 0?{}:A;D(new anK(S,A))});
w&&w.addEventListener("abort",function(){b.cancel();var S=new _.jg(1,"Aborted");S.cause=w.reason;p(S)})}})},I.unaryInterceptors).call(I,MzP(F,y,k)).then(function(L){return L.responseMessage})},KR=function(I,C,y,k,F){var z=z===void 0?{}:z;
return WOY(I,C,y,k,F,z)};
A9L.prototype.serverStreaming=function(I,C,y,k){var F=this,z=I.substring(0,I.length-k.name.length);return dlR(function(c){var r=c.methodDescriptor,w=c.getMetadata(),L=xlY(F,!1);w=qGB(F,w,L,z+r.getName());var D=mlK(L,r.responseDeserializeFn,!0);c=r.requestSerializeFn(c.requestMessage);L.send(w,"POST",c);return D},this.streamInterceptors).call(this,MzP(k,C,y))};
var vAY=function(I,C,y){var k=C.methodDescriptor,F=C.getMetadata(),z=xlY(I,!0);I=qGB(I,F,z,y+k.getName());y=mlK(z,k.responseDeserializeFn,!1);luS(y,F["X-Goog-Encode-Response-If-Executable"]==="base64");C=k.requestSerializeFn(C.requestMessage);z.send(I,"POST",C);return y},xlY=function(I,C){C=I.chunkedServerStreaming&&!C;
return I.workerScope||C?new _.Xn(new $Q({worker:I.workerScope,streamBinaryChunks:C})):new _.Xn},qGB=function(I,C,y,k){C["Content-Type"]="application/json+protobuf";
C["X-User-Agent"]="grpc-web-javascript/0.1";var F=C.Authorization;if(F&&nAj.has(F.split(" ")[0])||I.withCredentials)y.JSC$7668_withCredentials_=!0;if(I.suppressCorsPreflight)k=R4K(k,"$httpHeaders",C);else for(I=_.T(Object.keys(C)),F=I.next();!F.done;F=I.next())F=F.value,y.headers.set(F,C[F]);return k},mlK=function(I,C,y){if(y){y=new GUS(I);
var k=new fuK(y)}return new jb({xhr:I,nodeReadableStream:k},C)},dlR=function(I,C){return C.reduce(function(y,k){return function(F){return k.intercept(F,y)}},I)},gAK=function(I,C){return C.reduce(function(y,k){return function(F){return k.intercept(F,y)}},I)};var ZMY=function(I){this.client_=new A9L;this.hostname_=I==void 0?I:I.replace(/\/+$/,"")};
_.u=ZMY.prototype;_.u.JSC$16960_depositGoogleCredential=function(I,C){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DepositGoogleCredential",I,C||{},oA8)};
_.u.deleteLink=function(I,C){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/DeleteLink",I,C||{},CYP)};
_.u.JSC$16960_finishOAuth=function(I,C){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/FinishOAuth",I,C||{},kUP)};
_.u.getLink=function(I,C){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/GetLink",I,C||{},FO8)};
_.u.startLinkingSession=function(I,C){return KR(this.client_,this.hostname_+"/$rpc/google.internal.identity.accountlinking.v1.AccountLinkingService/StartLinkingSession",I,C||{},wjY)};var BJ8=[0,yUM,1,uUK,[0,_.h0,[0,kNY,-1]],[0,F4M],[0,zVK,-1]];var EAL=function(){this.storage=new Map},UlL=function(I,C,y,k,F){if(!I.storage.has(C))return null;
I=_.T(I.storage.get(C));for(C=I.next();!C.done;C=I.next())if(C=C.value,!F||C.linkName===F)if(y&&C.scopes&&h4Y(C.scopes,y)||k&&C.capabilities&&h4Y(C.capabilities,k))return C;return null},HM8=function(I,C,y){if(!y)I.storage.delete(C);
else if(I.storage.has(C)){var k=I.storage.get(C).filter(function(F){return F.linkName!==y});
k.length>0?I.storage.set(C,k):I.storage.delete(C)}},h4Y=function(I,C){C=_.T(C);
for(var y=C.next();!y.done;y=C.next())if(!I.has(y.value))return!1;return!0};var tjB=function(){var I=_.Aq("LINK_GAL_DOMAIN");this.alsDomain1p=_.Aq("LINK_GAL_DOMAIN");this.alsDomain3p=I;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},J9M=function(I,C){I.apiKey=C;
return I};
tjB.prototype.build=function(){var I={};if(this.supportedFlows===void 0||this.supportedFlows.size===0)throw Error("Qj");I.supportedFlows=this.supportedFlows;if(this.dataUsageNoticeConfig!==void 0){if(this.dataUsageNoticeConfig.enabledDataUsageNoticeUis.size===0)throw Error("Rj");if(!this.dataUsageNoticeConfig.uiAdapter)throw Error("Sj");I.dataUsageNoticeConfig=this.dataUsageNoticeConfig}this.galSdkEventHandler!==void 0&&(I.galSdkEventHandler=this.galSdkEventHandler);if(this.apiKey!==void 0)I.apiKey=
this.apiKey,I.alsDomain=this.alsDomain1p;else{if(this.oauthToken===void 0)throw Error("Tj");I.oauthToken=this.oauthToken;I.alsDomain=this.alsDomain3p}I.clientXd3=this.clientXd3;I.accountLinkingEntryPoint=this.accountLinkingEntryPoint;this.authUser!==void 0&&(I.authUser=this.authUser);this.bucket!==void 0&&(I.bucket=this.bucket);this.completionUrl!==void 0&&(I.completionUrl=this.completionUrl);this.interactionMode!==void 0&&(I.interactionMode=this.interactionMode);this.redirectServiceUrl!==void 0&&
(I.redirectServiceUrl=this.redirectServiceUrl);this.locale!==void 0&&(I.locale=this.locale);I.loggerType=this.loggerType;I.clientEnvironment=this.clientEnvironment;I.colorScheme=this.colorScheme;I.showCloseOption=this.showCloseOption;return I};var eM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(eM,_.GR);var OMY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(OMY,_.GR);var auB=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(auB,_.GR);var i5=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(i5,_.GR);var MjR=function(I){return _.YC(I,1)};var IZM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(IZM,_.GR);var Zij=_.Ha(IZM),rw=[1,2,3,4,5];var dUy=function(I){try{return Zij(I)}catch(C){return null}},CsL=function(){},xUY=function(I,C){switch(_.pF(C,rw)){case 4:return(C=_.Sk(C,auB,4,rw))&&I.logStateTransition(_.YC(C,1)),!0;
case 5:return(C=_.Sk(C,OMY,5,rw))&&I.logInternalEvent(_.YC(C,1)),!0}return!1},BT8=function(I){switch(I){case 0:return 0;
case 1:return 6;case 2:return 2;case 3:return 3;case 4:return 50;default:_.C8(I)}};var voY=function(I,C){var y=this;this.validator=I;this.messageListener=C;this.dismissCallback=function(){scY(y,{errorCode:9,errorMessage:"iFrame closed by parent window"})};
this.JSC$16989_receiveMessage=function(k){k.type==="message"&&(k=k.event_,k!==null&&(new URL(y.iframe.src)).origin===k.origin&&y.validator(k.data,k.origin)&&!y.messageListener(k.data)&&(y.JSC$16989_resolveCb!==void 0&&y.JSC$16989_resolveCb(k.data),oXR(y)))}},mUH=function(I,C,y){I.uiHandler!==void 0&&scY(I,{errorCode:7,
errorMessage:"iFrame window is already open"});return new Promise(function(k,F){I.JSC$16989_resolveCb=k;I.JSC$16989_rejectCb=F;I.iframe=document.createElement("iframe");_.jO(I.iframe,C);I.uiHandler=y.displayContent(I.iframe,I.dismissCallback);_.Lv(window,"message",I.JSC$16989_receiveMessage,!1,I)})},scY=function(I,C){I.JSC$16989_rejectCb!==void 0&&I.JSC$16989_rejectCb(C);
oXR(I)},oXR=function(I){I.uiHandler!==void 0&&I.uiHandler.hideContent();
_.Pf(window,"message",I.JSC$16989_receiveMessage,!1,I);I.JSC$16989_resolveCb=void 0;I.JSC$16989_rejectCb=void 0;I.uiHandler=void 0;I.iframe=void 0};var yaY=function(I){if(I===2){var C;I=((C=window)==null?0:C.matchMedia("(prefers-color-scheme: dark)").matches)?1:0}return I},qsB=function(I){I=yaY(I);
switch(I){case 0:return"light";case 1:return"dark";default:_.C8(I)}};var WUR=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),kxR=function(I,C){this.JSC$17001_linkingSession=I;this.noticeConfig=C;this.displayInfoMap=new Map;var y=new Map;if(_.nF(this.JSC$17001_linkingSession,TJM,7))for(I=_.MS(this.JSC$17001_linkingSession,TJM,7),I=_.U1(I,z4H,1,_.Hi()),I=_.T(I),C=I.next();!C.done;C=I.next())C=C.value,y.set(_.YC(C,1),_.i$Y(_.MS(C,_.h6K,3)));if(y.size>
0&&this.noticeConfig!==void 0&&this.noticeConfig.enabledDataUsageNoticeUis.size>0){C=this.noticeConfig.enabledDataUsageNoticeUis;I=C.has(0)?y.get(1):void 0;C=C.has(1)?y.get(2):void 0;y=I!==void 0&&C!==void 0?y.get(3):void 0;var k=this.noticeConfig.nestedOrigins;var F=new IZM;var z=new eM;F=_.Om(F,2,rw,z);z=new IZM;var c=new eM;z=_.Om(z,3,rw,c);c=[];I!==void 0&&(this.displayInfoMap.set(1,[{trustedUrl:I,lastEvent:F,nestedOrigins:k}]),c.push({trustedUrl:I,lastEvent:F,nestedOrigins:k}));C!==void 0&&(this.displayInfoMap.set(2,
[{trustedUrl:C,lastEvent:z,nestedOrigins:k}]),c.push({trustedUrl:C,lastEvent:z,nestedOrigins:k}));y!==void 0?this.displayInfoMap.set(3,[{trustedUrl:y,lastEvent:z,nestedOrigins:k}]):this.displayInfoMap.set(3,c)}};var F2R=function(I){var C=new EAL;this.galService=I;this.galCache=C};
F2R.prototype.getLink=function(I){var C=I.serviceId;var y=I.scopes;var k=I.capabilities;var F=I.linkName;var z=this,c;return _.e(function(r){if(k!==void 0&&y!==void 0)throw Error("Uj");c=UlL(z.galCache,C,y,k,F);return c!==null?r.return(c):r.return(z.galService.getLink({serviceId:C,sessionId:Math.floor(Math.random()*2147483648),scopes:y,capabilities:k,linkName:F}).then(function(w){w=tNY(w);var L=z.galCache;L.storage.has(C)?L.storage.get(C).push(w):L.storage.set(C,[w]);return w}))})};
F2R.prototype.deleteLink=function(I,C,y){var k=this;return _.e(function(F){HM8(k.galCache,I,y);return F.return(k.galService.deleteLink({serviceId:I,sessionId:Math.floor(Math.random()*2147483648),accountLinkingEntryPoint:C,linkName:y}).then(function(){return!0}))})};var z9R=function(I,C){var y=this;this.validator=I;this.msgHandler=C;this.closedPopupTimeout=this.JSC$17023_rejectCb=this.JSC$17023_resolveCb=this.popup=null;this.JSC$17023_receiveMessage=function(k){if(k!==null&&(k=k.event_,k.source===y.popup)){var F=k.data;if(y.validator(F,k.origin)){var z;(z=y.msgHandler)!=null&&z.call(y,F)||(y.JSC$17023_resolveCb!==null&&y.JSC$17023_resolveCb(F),uS8(y))}}}};
z9R.prototype.open=function(I,C){var y=this;this.popup!==null&&TlP(this);return new Promise(function(k,F){y.JSC$17023_resolveCb=k;y.JSC$17023_rejectCb=F;y.popup=_.XG(window,I,"",C);_.Lv(window,"message",y.JSC$17023_receiveMessage,!1,y);ca8(y)})};
var TlP=function(I,C){I.JSC$17023_rejectCb!==null&&I.JSC$17023_rejectCb(C);uS8(I)},uS8=function(I){I.closedPopupTimeout&&(I.closedPopupTimeout.cancel(),I.closedPopupTimeout=null);
I.popup&&I.popup.close();_.Pf(window,"message",I.JSC$17023_receiveMessage,!1,I);I.popup=null;I.JSC$17023_resolveCb=null;I.JSC$17023_rejectCb=null},ca8=function(I){I.closedPopupTimeout=_.V1e(100).then(function(){I.popup?I.popup.closed?e98(I):ca8(I):TlP(I,{errorCode:8,
errorMessage:"Popup blocked by the browser"})},function(){})},e98=function(I){I.closedPopupTimeout=_.V1e(100).then(function(){TlP(I,{errorCode:9,
errorMessage:"Popup closed by the user"})},function(){})};var raB=new Set(["https://oauth-redirect.googleusercontent.com","https://oauth-redirect-sandbox.googleusercontent.com","https://oauth-redirect-test.googleusercontent.com"]),inH=function(I,C,y,k,F,z,c,r,w,L){var D=this;this.serviceId=I;this.sessionId=C;this.galService=y;this.oauthDetails=k;this.galLogger=F;this.interactionMode=z;this.redirectServiceUrl=c;this.consentLanguageKeys=r;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=L;this.started=!1;this.JSC$17029_dataValidator=function(p,
Q){var X=raB.has(Q);X||D.redirectServiceUrl===void 0||(X=D.redirectServiceUrl===Q);return X?p.sentinel==="gdi":!1}};
inH.prototype.complete=function(){var I=this,C;return _.e(function(y){if(I.interactionMode!==1)return y.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=nt.getRedirectStateFromUri();return C===null?y.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"})):y.return(wpS(I,C))})};
inH.prototype.start=function(){var I=this,C;return _.e(function(y){if(I.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"OAuth flow is already active."}));if(!_.b4(I.oauthDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"OAuth flow does not have redirect URL"}));if(I.interactionMode===1)return nt.setLocation(_.b4(I.oauthDetails,1)),y.return(Promise.resolve({statusCode:6,statusMessage:"OAuth flow redirected to different page"}));I.started=!0;I.galLogger.logStateTransition(5);
C=nt.getPostMessagePopup(I.JSC$17029_dataValidator);return y.return(C.open(_.b4(I.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(k){I.started=!1;var F=I.galLogger;if((k==null?void 0:k.error)!==void 0)throw F.logInternalEvent(59),Error("Vj");if((k==null?void 0:k.redirect_state)===void 0)throw F.logInternalEvent(131),Error("Wj");return wpS(I,k.redirect_state)}).catch(function(k){I.started=
!1;
return k.errorCode!==void 0?{statusCode:k.errorCode,statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"OAuth flow popup page did not return result"}}))})};
var wpS=function(I,C){return _.e(function(y){return y.return(nXL(I.galService,{serviceId:I.serviceId,sessionId:I.sessionId,dynamicUrlParameters:I.dynamicUrlParameters,redirectState:C,consentLanguageKeys:I.consentLanguageKeys,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp}).then(function(k){var F={statusCode:1,link:tNY(k.getLink())};BCS(_.LF(k,3))!==void 0&&(F.callerState=BCS(_.LF(k,3)));I.galLogger.logInternalEvent(134);return F}))})},nt={getPostMessagePopup:function(I){return new z9R(I)},
getRedirectStateFromUri:function(){var I=_.dQ(nt.getLocation()).fragment_;return(new _.sU(I)).get("redirect_state",null)},
getLocation:function(){return window.location.href},
setLocation:function(I){_.Wn(window.location,_.ra(I))},
createOAuthFlow:function(I,C){return new inH(I.serviceId,I.sessionId,I.galService,C,I.galLogger,I.interactionMode,I.redirectServiceUrl,I.consentLanguageKeys,I.dynamicUrlParameters,I.partnerConfigMinReadTimestamp)}};var PsY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(PsY,_.GR);var L2Y=_.Ha(PsY);var DEj=new Set(["https://myaccount.google.com","https://myaccount-dev.corp.google.com","https://myaccount-autopush.corp.google.com","https://myaccount-staging.corp.google.com"]),ppL=function(I,C,y,k,F,z,c,r,w){var L=this;this.serviceId=I;this.sessionId=C;this.galService=y;this.gsiWebFlowDetails=k;this.colorScheme=F;this.showCloseOption=z;this.galLogger=c;this.interactionMode=r;this.redirectServiceUrl=w;this.started=!1;this.JSC$17041_dataValidator=function(D,p){var Q=DEj.has(p);Q||L.redirectServiceUrl===
void 0||(Q=L.redirectServiceUrl===p);return Q?D.sentinel==="gal":!1};
this.logEventProcessor=function(D){return D.result?(D=dUy(D.result))?xUY(L.galLogger,D):!1:!1}};
ppL.prototype.complete=function(){var I=this,C,y;return _.e(function(k){if(I.interactionMode!==1)return k.return(Promise.resolve({statusCode:7,statusMessage:"Flow completion is only supported for redirect mode"}));C=P8.getRedirectStateFromUri();if(C===void 0)return I.galLogger.JSC$16981_logErrorEvent(131),k.return(Promise.resolve({statusCode:12,statusMessage:"redirect_state is missing in URI"}));try{return y=QcM(I,C),k.return(NlR(I,y))}catch(F){return k.return(Promise.resolve({statusCode:12,statusMessage:"`e`"}))}})};
ppL.prototype.start=function(){var I=this,C;return _.e(function(y){if(I.started)return y.return(Promise.resolve({statusCode:12,statusMessage:"Streamlined flow is already active."}));if(!_.b4(I.gsiWebFlowDetails,1))return y.return(Promise.resolve({statusCode:7,statusMessage:"Streamlined flow does not have URL"}));if(I.interactionMode===1)return P8.setLocation(VLY(I,_.b4(I.gsiWebFlowDetails,1))),y.return(Promise.resolve({statusCode:6,statusMessage:"Streamlined flow redirected to different page"}));
I.started=!0;C=P8.getPostMessagePopup(I.JSC$17041_dataValidator,I.logEventProcessor);return y.return(C.open(VLY(I,_.b4(I.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(k){I.started=!1;if((k==null?void 0:k.result)===void 0)throw I.galLogger.JSC$16981_logErrorEvent(131),Error("Wj");k=QcM(I,k.result);return NlR(I,k)}).catch(function(k){I.started=!1;
return k.errorCode!==void 0?{statusCode:k.errorCode,statusMessage:k.errorMessage}:{statusCode:7,statusMessage:"Streamlined flow popup page did not return result"}}))})};
var VLY=function(I,C){I=["result_channel",I.interactionMode===1?"2":"1","color_scheme",qsB(I.colorScheme),"show_close_option",I.showCloseOption];return eVB(C,I)},NlR=function(I,C){if(C!==null&&_.nF(C,i5,2)){var y,k=C==null?void 0:(y=_.MS(C,i5,2))==null?void 0:_.YC(y,2);
k&&I.galLogger.JSC$16981_logErrorEvent(BT8(k));return MjR(_.MS(C,i5,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 I.galService.getLink({serviceId:I.serviceId,sessionId:I.sessionId,consistencyKey:_.b4(C,1)}).then(function(F){F=tNY(F);I.galLogger.logInternalEvent(134);return{statusCode:1,link:F}})},QcM=function(I,C){C=L2Y(C);
if(!_.nF(C,i5,2)&&_.b4(C,1)==="")throw I.galLogger.JSC$16981_logErrorEvent(5),Error("Xj");return C},P8={getPostMessagePopup:function(I,C){return new z9R(I,C)},
getRedirectStateFromUri:function(){return _.xq(_.dQ(P8.getLocation()),"redirect_state")},
getLocation:function(){return window.location.href},
setLocation:function(I){_.Wn(window.location,_.ra(I))},
createStreamlinedFlow:function(I,C){return new ppL(I.serviceId,I.sessionId,I.galService,C,I.colorScheme,I.showCloseOption,I.galLogger,I.interactionMode,I.redirectServiceUrl)}};var cnK=function(){var I=_.k5s("GAL");this.storage=I?new _.QS(I):null};var AH=function(){};
_.R(AH,CsL);AH.prototype.logStateTransition=function(){};
AH.prototype.logInternalEvent=function(){};
AH.prototype.JSC$16981_logErrorEvent=function(){};var jcP=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(jcP,_.GR);jcP.prototype.getCompletionUrl=function(){return _.b4(this,15)};var gK=function(I,C,y,k,F,z){this.serviceId=I;this.environment=C;this.sessionId=y;this.colorSchemeSelected=k;this.colorThemeDisplayed=F;this.JSC$17054_transport=z;this.currentState=1};
_.R(gK,CsL);gK.prototype.logStateTransition=function(I){var C=lZP(this);C=_.Ie(C,3,this.currentState);C=_.Ie(C,1,I);this.currentState=I;I=XOM(1);this.dispatch(C,I)};
gK.prototype.logInternalEvent=function(I){I=XOM(I);this.dispatch(lZP(this),I)};
gK.prototype.JSC$16981_logErrorEvent=function(I){var C=lZP(this);C=_.Ie(C,1,10);I=XOM(I);this.dispatch(C,I)};
var lZP=function(I){var C=new jcP;C=_.Ie(C,1,I.currentState);C=_.zT(C,7,I.serviceId);var y,k;var F=((y=window)==null?0:(k=y.location)==null?0:k.href)?_.dQ(window.location.href).JSC$7905_domain_:"NO_PACKAGE_NAME";y=_.zT(C,8,F);y=_.Ie(y,6,I.environment);y=_.zT(y,5,"100");y=_.Ie(y,11,I.colorSchemeSelected);return _.Ie(y,12,I.colorThemeDisplayed)};
gK.prototype.dispatch=function(I,C){C===void 0&&(C=new _.kj);var y=C;I=I.serialize();y=_.zT(y,8,I);_.pi(y,12,this.sessionId);this.JSC$17054_transport.dispatch(C)};var XpR=function(I,C){this.loggerType=I;this.sessionIndex=C!=null?C:0},$E8;
XpR.prototype.create=function(I,C,y,k,F){switch(this.loggerType){case 0:return new AH;case 1:return $E8||($E8=(new _.yo(555,this.sessionIndex.toString())).build()),new gK(I,C,y,k,F,$E8);default:_.C8(this.loggerType,"unknown logger type")}};var Lt=[6,2,3,1],ndY=new Map([[4,1],[1,6],[2,2],[3,3]]),MNK={statusCode:7,statusMessage:"Failed to create flow object"},z0K=function(I,C,y,k,F,z,c,r,w,L){this.serviceId=I;this.sessionId=C;this.config=y;this.galService=k;this.JSC$17061_linkingSession=F;this.googleScopes=z;this.callerState=c;this.consentLanguageKeys=r;this.dynamicUrlParameters=w;this.partnerConfigMinReadTimestamp=L;this.currentFlow=0;k=this.JSC$17061_linkingSession;F=new Set;_.nF(k,yny,1)&&F.add(1);_.nF(k,e4H,2)&&_.nF(k,k2H,6)&&F.add(2);
_.nF(k,c9Y,3)&&_.nF(k,k2H,6)&&F.add(3);_.nF(k,uiY,4)&&F.add(6);this.supportedFlows=F;k=y.loggerType;F=y.clientEnvironment;a:{z=y.colorScheme;switch(z){case 0:z=1;break a;case 1:z=2;break a;case 2:z=3;break a;default:_.C8(z)}z=void 0}a:{c=y.colorScheme;c=yaY(c);switch(c){case 0:c=1;break a;case 1:c=2;break a;default:_.C8(c)}c=void 0}this.galLogger=(new XpR(k,y.authUser)).create(I,F,C,z,c)},bnK=function(I){return new Promise(function(C){var y,k,F,z,c,r,w,L,D,p;
return _.e(function(Q){switch(Q.nextAddress){case 1:y=Foj(I.currentFlow,I.supportedFlows),k=!1,F=new kxR(I.JSC$17061_linkingSession,I.config.dataUsageNoticeConfig);case 2:if(y===void 0){Q.jumpTo(4);break}_.aM(Q,5);var X=F,b=y,S=void 0;k?b===1&&(S=X.displayInfoMap.get(2)):b===2||b===3?S=X.displayInfoMap.get(1):b===1&&(S=X.displayInfoMap.get(3));z=S?S:[];c=I.consentLanguageKeys;r=_.T(z);w=r.next();case 7:if(w.done)return I.currentFlow=y,_.n(Q,CfS(R98(I,c)),11);L=w.value;return _.n(Q,EoK(L,I.config.dataUsageNoticeConfig.uiAdapter,
I.config.colorScheme,I.galLogger),10);case 10:D=Q.yieldResult;if(D.statusCode!==1)return e0L(I.serviceId),I.currentFlow=0,C(ww({statusCode:D.statusCode,statusMessage:D.statusMessage},I.callerState)),Q.return();D.consentLanguageKeys!==void 0&&(c=D.consentLanguageKeys);w=r.next();Q.jumpTo(7);break;case 11:p=Q.yieldResult;if(p.statusCode!==10)return p.statusCode!==6&&(e0L(I.serviceId),I.currentFlow=0),p.statusCode!==1&&I.callerState!==void 0&&(p.callerState=I.callerState),C(p),Q.return();_.dC(Q,6);break;
case 5:_.sj(Q);case 6:y=Foj(I.currentFlow,I.supportedFlows);k=!0;Q.jumpTo(2);break;case 4:e0L(I.serviceId),I.currentFlow=0,C(ww({statusCode:12,statusMessage:"Linking failed"},I.callerState)),_.oI(Q)}})})},i7L=function(I,C,y){I.currentFlow=C;
return sRB(R98(I,y)).then(function(k){return k.statusCode===10&&I.config.interactionMode===1&&Foj(I.currentFlow,I.supportedFlows)!==void 0?bnK(I):k})},R98=function(I,C){return{flowParams:{serviceId:I.serviceId,
sessionId:I.sessionId,galService:I.galService,galLogger:I.galLogger,interactionMode:I.config.interactionMode,redirectServiceUrl:I.config.redirectServiceUrl,colorScheme:I.config.colorScheme,consentLanguageKeys:C,dynamicUrlParameters:I.dynamicUrlParameters,showCloseOption:I.config.showCloseOption,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp},currentFlow:I.currentFlow,config:I.config,session:I.JSC$17061_linkingSession,googleScopes:I.googleScopes,callerState:I.callerState}};var X1K=function(I,C){this.config=I;this.galService=C.getService();this.JSC$17074_galRepository=C.JSC$17111_galRepository};
X1K.prototype.getLink=function(I,C){return YdH(this,I,C)};
var YdH=function(I,C,y){return I.JSC$17074_galRepository.getLink({serviceId:C,scopes:void 0,capabilities:void 0,linkName:y}).then(function(k){return{statusCode:1,link:k}}).catch(function(k){return{statusCode:PfK(k.code),
statusMessage:k.message}})};
X1K.prototype.deleteLink=function(I,C){return this.JSC$17074_galRepository.deleteLink(I,this.config.accountLinkingEntryPoint,C).then(function(){return{statusCode:1}}).catch(function(y){return{statusCode:PfK(y.code),
statusMessage:y.message}})};
X1K.prototype.startLinkingSession=function(I){var C=I.serviceId;var y=I.sessionId;return TXY({serviceId:C,sessionId:y!==void 0?y:Math.floor(Math.random()*2147483648),config:this.config,galService:this.galService,loginHint:I.loginHint,callerState:I.callerState,consentLanguageKeys:I.consentLanguageKeys,linkName:I.linkName,dynamicUrlParameters:I.dynamicUrlParameters,partnerConfigMinReadTimestamp:I.partnerConfigMinReadTimestamp})};var LoL=null,NXR=new WeakMap;var Gx8=function(){};
Gx8.prototype.send=function(I,C){l7y(I);return this.makeRequest(I).then(function(y){if(C){var k=new C;if(y!=null){if(C==null)throw Error("Zj");new C;throw Error("ak");}y=k}return y})};var fZM=function(I,C,y,k,F){this.gapiUrl=I;this.gapiKey=C;this.gapiConfigUpdates=y||{};this.gapiAuthParams=k||{};this.defaultApiId=F};
_.R(fZM,Gx8);var K2B=function(I){return p1K().then(function(C){C=C||window.gapi;Sdy(I,C);return jRR(C,{apiKey:I.gapiKey,clientId:I.gapiAuthParams.clientId,scope:I.gapiAuthParams.scope,hostedDomain:I.gapiAuthParams.hostedDomain,fetchBasicProfile:I.gapiAuthParams.fetchBasicProfile}).then(function(){return C})})};
fZM.prototype.makeRequest=function(I){var C=this;return K2B(this).then(function(y){return _.e(function(k){if(k.nextAddress==1)return C.gapiAuthParams.minAuthTokenTimeRemaining===void 0?k.jumpTo(2):_.n(k,VsL(y,C.gapiAuthParams.minAuthTokenTimeRemaining),2);Sdy(C,y);return k.return(AaK(y.client.request({root:C.gapiUrl,path:I.path,method:I.httpMethod,body:I.body,params:I.queryParams,headers:I.headers,authType:I.authType,apiId:I.apiId||C.defaultApiId})))})})};
var AaK=function(I){return new Promise(function(C,y){I.then(function(k){C(k.result===!1&&k.body!=null?{data:k.body}:k.result)},function(k){y(k.result===!1&&k.body!=null?{data:k.body}:k.result)})})},Sdy=function(I,C){for(var y in I.gapiConfigUpdates)if(I.gapiConfigUpdates.hasOwnProperty(y)){var k=C,F=y,z=I.gapiConfigUpdates[y],c=k.config.get(F);
z!==c&&k.config.update(F,z)}};
fZM.$inject=["gapiUrl","gapiKey","gapiConfigUpdates","gapiAuthParams","defaultApiId"];var vh=function(I,C,y,k,F,z,c,r){this.apiKey=C;this.authUser=y;this.oauthToken=k;this.bucket=F;this.locale=c;this.galSdkEventHandler=r;if(k===void 0){if(C===void 0)throw Error("bk");this.requestService=new fZM(I,C,{"googleapis.config/auth/useFirstPartyAuth":!0,"googleapis.config/auth/useFirstPartyAuthV2":!0,"client/xd4":z===void 0||z===!1,"client/xd3":z===!0})}this.galServiceClient=new ZMY(I)};
vh.prototype.deleteLink=function(I){var C=I.serviceId;var y=I.sessionId;var k=I.accountLinkingEntryPoint;var F=I.linkName;var z=this,c;return _.e(function(r){var w=(new DX).setHeader(Wh(z,y));var L=gXB({serviceId:C,linkName:F});w=_.JT(w,2,L);c=_.A0(w,3,k);return r.return(z.makeRequest(z.galServiceClient.deleteLink,c,[1,3],[2,4]))})};
var nXL=function(I,C){var y=C.serviceId;var k=C.sessionId;var F=C.dynamicUrlParameters;var z=C.redirectState;var c=C.consentLanguageKeys;var r=C.partnerConfigMinReadTimestamp;var w;return _.e(function(L){var D=(new QA).setHeader(Wh(I,k,F));D=_.ac(D,2,y);w=_.ac(D,4,z);c!==void 0&&_.ac(w,5,c);r!==void 0&&_.JT(w,6,r);return L.return(I.makeRequest(I.galServiceClient.JSC$16960_finishOAuth,w,[1,3],[2,4]))})};
vh.prototype.getLink=function(I){var C=I.serviceId;var y=I.sessionId;var k=I.scopes;var F=I.capabilities;var z=I.consistencyKey;var c=I.linkName;var r=this,w;return _.e(function(L){var D=(new NN).setHeader(Wh(r,y)),p=gXB({serviceId:C,scopes:k,capabilities:F,linkName:c});w=_.JT(D,2,p);z!==void 0&&(D=HEY(),D=_.ac(D,2,z),_.JT(w,3,D));return L.return(r.makeRequest(r.galServiceClient.getLink,w,[1,3],[2,4]))})};
var odR=function(I,C){var y=C.serviceId;var k=C.sessionId;var F=C.googleScopes;var z=C.consistencyKey;var c;return _.e(function(r){var w=(new pR).setHeader(Wh(I,k));w=_.ac(w,2,y);var L=Array.from(F.values());w=_.i7(w,3,L,_.SB);L=HEY();L=_.ac(L,2,z);c=_.JT(w,4,L);return r.return(I.makeRequest(I.galServiceClient.JSC$16960_depositGoogleCredential,c,[1,3],[2,4]))})};
vh.prototype.startLinkingSession=function(I){var C=I.serviceId;var y=I.sessionId;var k=I.scopes;var F=I.capabilities;var z=I.loginHint;var c=I.supportedFlows;var r=I.completionUrl;var w=I.usePingPong;var L=I.twoWayLinking;var D=I.accountLinkingEntryPoint;var p=I.callerState;var Q=I.consentLanguageKeys;var X=I.googleScopes;var b=I.dataUsageNoticeConfig;var S=I.linkName;var A=I.dynamicUrlParameters;var x=I.partnerConfigMinReadTimestamp;var B=this,t,U;return _.e(function(yW){if(F!==void 0&&k!==void 0)throw Error("Uj");
var a=(new VA).setHeader(Wh(B,y,A));t=_.ac(a,2,C);S!==void 0&&_.ac(t,14,S);if(F!==void 0){a=t;var cs=Array.from(F.values());_.i7(a,5,cs,_.SB)}else k!==void 0&&(a=t,cs=Array.from(k.values()),_.i7(a,3,cs,_.SB));r!==void 0&&_.ac(t,6,r);w!==void 0&&_.bG(t,15,w);c!==void 0&&(a=t,cs=Array.from(c.values()),_.i7(a,4,cs,_.eB));if(L!==void 0){if(L&&(!X||X.size===0))throw Error("ck");_.bG(t,8,L)}D!==void 0&&_.A0(t,9,D);z!==void 0&&_.ac(t,13,z);p!==void 0&&(a=t,cs=(new TextEncoder).encode(p),_.n2(a,12,_.vm(cs,
!1),_.gS()));Q!==void 0&&_.ac(t,16,Q);x!==void 0&&_.JT(t,18,x);if(b!==void 0&&b.size>0||X!==void 0&&X.size>0)U=new iMj,X!==void 0&&X.size>0&&(a=U,cs=Array.from(X.values()),_.i7(a,1,cs,_.SB)),b!==void 0&&(b.has(0)&&_.oKz(U,2,_.eB,1,_.ij),b.has(1)&&_.oKz(U,2,_.eB,2,_.ij)),_.JT(t,17,U);return yW.return(B.makeRequest(B.galServiceClient.startLinkingSession,t,[1],[2]))})};
vh.prototype.getMetadata=function(){var I=this,C,y,k;return _.e(function(F){if(F.nextAddress==1)return C={},I.requestService?_.n(F,K2B(I.requestService),3):(C.Authorization="Bearer "+I.oauthToken,F.jumpTo(2));F.nextAddress!=2&&(y=F.yieldResult,C["X-Goog-Api-Key"]=I.apiKey,C["X-Goog-AuthUser"]=I.authUser!==void 0?I.authUser.toString():"0",(k=y.auth.getAuthHeaderValueForFirstParty([]))&&(C.Authorization=k));I.locale&&(C["accept-language"]=I.locale);return F.return(C)})};
vh.prototype.makeRequest=function(I,C,y,k){var F=this,z;return _.e(function(c){if(c.nextAddress==1)return _.n(c,F.getMetadata(),2);z=c.yieldResult;vXY(F,y);return c.return(I.bind(F.galServiceClient)(C,z).finally(function(){vXY(F,k)}))})};
var vXY=function(I,C){I.galSdkEventHandler!==void 0&&C.forEach(function(y){I.galSdkEventHandler.onEvent(y)})},Wh=function(I,C,y){var k=new nR;
C=_.n2(k,2,_.PR(C),0);C=_.A0(C,5,3);y=_.i7(C,8,y,_.SB);I.bucket!==void 0&&_.ac(y,1,I.bucket);return y},gXB=function(I){var C=I.serviceId;
var y=I.scopes;var k=I.capabilities;I=I.linkName;if(k!==void 0&&y!==void 0)throw Error("Uj");var F=new hVL;C=_.ac(F,1,C);k!==void 0?(y=Array.from(k.values()),_.i7(C,5,y,_.SB)):y!==void 0&&(y=Array.from(y.values()),_.i7(C,3,y,_.SB));I!==void 0&&_.ac(C,6,I);return C};var $sL=function(I){this.galService=new vh(I.alsDomain,I.apiKey,I.authUser,I.oauthToken,I.bucket,I.clientXd3,I.locale,I.galSdkEventHandler);this.JSC$17111_galRepository=new F2R(this.galService)};
$sL.prototype.getService=function(){return this.galService};var W2H=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(W2H,_.GR);var dEK=function(I){var C=new W2H;return _.Ie(C,1,I)};
W2H.prototype.setErrorMessage=function(I){return _.zT(this,2,I)};var xEH=[0,_.Hv,_.E0,_.Hv];var dK=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(dK,_.GR);var qdL=[0,[1,2,3],_.U0,[0,InL,osP,-1],_.U0,[0,s8y,-1],_.Num];var mEH=[0,_.mA,1,_.Hv,_.E0,-1,1,_.lMI,_.qm,_.Hv,-1,qdL];var ZnK=[0,_.Hv,[0,_.lMI,_.qm,[0,_.E0]],_.Bv,[0,_.Hv,-1]];var IX=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(IX,_.GR);var BlS=[0,_.E0,_.Hv,-2,_.mA,_.Hv,_.mA,_.Hv,-2,1,_.Bv];var EXR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(EXR,_.GR);var h9K=[0,_.mA];var UEH=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(UEH,_.GR);var Hny=[0,_.Hv,ZnK,h9K,BlS,mEH];var yLS=_.hT(UEH,Hny);var tLj=[0,BJ8];var cLK=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(cLK,_.GR);var JaP=[0,[1,3],ThP,_.Hv,ThP];var aT=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(aT,_.GR);var On8=[0,_.Hv];var aZj=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(aZj,_.GR);var MA=function(I){return _.Sk(I,W2H,2,Oz)},MLM=function(I){var C=new aZj;
return _.Om(C,2,Oz,I)},Oz=[1,
2];var IHP=[0,Oz,_.U0,On8,_.U0,xEH,_.h0,JaP,1,_.Hv,tLj];var CzR=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(CzR,_.GR);var oHR=function(I){var C=new CzR;return _.Om(C,3,s7y,I)},s7y=[2,
3];var xQ=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(xQ,_.GR);var yuP=function(I,C){return _.JT(I,2,C)},kb8=function(I,C){return _.JT(I,8,C)},Fej=function(I,C){return _.JT(I,3,C)};var uvY=[0,_.Hv,IHP,Hny,_.Ymw,[0,[5,6],[0,_.Hv,-2],[0,_.mA,_.Hv,_.E0],[0,qdL],[0,_.E0,_.Hv,-1,_.b2c],_.U0,[0,[0,_.mA],_.Hv,-1],_.U0,[0,[3,4],_.Hv,-1,_.U0,[0,[0,_.Hv,_.Bv]],_.U0,[0,[0,[0,[1,2],_.U0,[0],_.U0,[0]]]]]],_.Ymw,-1,[0,s7y,_.Hv,_.U0,On8,_.U0,xEH,_.h0,JaP,[0,BJ8]]];var zFP=_.hT(xQ,uvY),TAS=_.Um(uvY);var cuj=function(){_.LL.call(this)};
_.R(cuj,_.LL);cuj.prototype.init=function(){};
new cuj;var eFB=_.hu(["data-"]),ruK=_.hu(["aria-"]),iI8=_.hu(["aria-"]),qN=function(I,C){this.isLatencyMeasurementExperiment=I===void 0?!1:I;this.enableDialogA11yFix=C===void 0?!1:C;this.JSC$17140_win=window;this.focusChangeListener=this.handleFocusChange.bind(this);this.origin=_.wRb(_.sF.location.href)},FhK=function(I,C){I.onConsentPrimitiveShownCallback=C},wJj=function(I,C){return I.overriddenIframeLoadTimeout?I.overriddenIframeLoadTimeout:C!==void 0?C:5E3},zly=function(I){if(I.prewarmPromise!==void 0)return I.prewarmPromise;
I.prewarmPromise=new Promise(function(C,y){mH(I,1);nHj(I,PzL(I,!0),LeB(I));I.iframe?I.prewarmChannel||DdL(I,I.iframe,C):y(Error("dk"))});
I.prewarmPromise.finally(function(){I.prewarmPromise=void 0});
return I.prewarmPromise};
qN.prototype.showPrimitive=function(){var I=this;if(this.consentPromise!==void 0)return this.consentPromise;var C=Date.now();pJM(this,C);this.consentPromise=new Promise(function(y,k){mH(I,0,C);var F=I.isDarkTheme();I.isLatencyMeasurementExperiment||I.initialLoadingStrategy===1||I.initialLoadingStrategy===2||(I.loadingBar||(I.loadingBar=G2S(getComputedStyle(document.body).direction==="rtl",F),I.loadingBar.style.position="fixed",I.loadingBar.style.zIndex="15000"),document.body.appendChild(I.loadingBar));
nHj(I,PzL(I),LeB(I));I.iframe?I.channel||Q7K(I,I.iframe,y,k):(NAK(I),k(Error("dk")))});
this.consentPromise.finally(function(){I.consentPromise=void 0});
return this.consentPromise};
var Q7K=function(I,C,y,k){var F,z;_.e(function(c){switch(c.nextAddress){case 1:mH(I,3);F=!1;setTimeout(function(){if(!F){NAK(I);VtK(I);j7Y(I);var r=dEK(7).setErrorMessage("Timeout connecting to iframe");y(kb8(yuP(new xQ,MLM(r)),oHR(r)))}},wJj(I,lHR(I)));
if(!I.prewarmPromise){c.jumpTo(2);break}_.aM(c,3);return _.n(c,I.prewarmPromise,5);case 5:_.dC(c,2);break;case 3:_.sj(c),z=dEK(4).setErrorMessage("Error while prewarming."),y(kb8(yuP(new xQ,MLM(z)),oHR(z)));case 2:I.prewarmChannel&&I.prewarmChannel.send(TAS(Fej(new xQ,I.consentPrimitiveRequest))),I.channel=_.O0({destination:I.JSC$17140_win,iframe:C,origin:XJP(I),channelName:"cpw",onEstablished:function(){F=!0;NAK(I);I.isLatencyMeasurementExperiment||(I.JSC$17140_previousBodyOverflow=document.body.style.overflow,
I.JSC$17140_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior,I.JSC$17140_previousBodyOverscroll=document.body.style.overscrollBehavior,document.documentElement.style.overscrollBehavior="contain",document.body.style.overscrollBehavior="contain",document.body.style.overflow="hidden",I.enableDialogA11yFix&&window.addEventListener("blur",I.focusChangeListener));var r=I.iframe;r.style.bottom="0";r.style.position="fixed";r.style.right="0";r.style.border="none";r.style.left="0";r.style.top=
"0";r.style.zIndex="5000";r.style.pointerEvents="";r.style.visibility="";I.initialLoadingStrategy===2||I.initialLoadingStrategy===3?mH(I,4):mH(I,6);var w;(w=I.onConsentPrimitiveShownCallback)==null||w.call(I)},
onMessage:function(r){r=zFP(r.data);switch(_.YC(r,1)){case 1:VtK(I);var w=f7j(_.MS(r,_.xX,7));w&&(I.initialLoadingStrategy!==2&&I.initialLoadingStrategy!==3||mH(I,6,w),mH(I,5,w));if(w=f7j(_.MS(r,_.xX,6)))mH(I,7,w),mH(I,8);var L,D;((L=_.MS(r,aZj,2))==null?void 0:_.pF(L,Oz))!==0&&((D=_.MS(r,CzR,8))==null?void 0:_.pF(D,s7y))!==0||k(Error("ek"));y(r);break;case 2:j7Y(I)}}}),_.oI(c)}})},DdL=function(I,C,y){I.prewarmChannel=_.O0({destination:I.JSC$17140_win,
iframe:C,origin:XJP(I),channelName:"pwcp",onEstablished:function(){mH(I,2);y()}})},XJP=function(I){var C=_.sC(I.src).toString();
return C&&C.indexOf("://")<0&&C.indexOf("//")!==0?I.origin:_.wRb(C)},PzL=function(I,C){C=C===void 0?!1:C;
var y,k=new Map([["origin",I.origin],["hl",(y=$dK(I))!=null?y:null]]);C&&k.set("pw","1");C=_.T([["cpr",I.consentPrimitiveRequest.serialize()]]);for(y=C.next();!y.done;y=C.next()){var F=_.T(y.value);y=F.next().value;F=F.next().value;k.set(y,F)}I.isDarkTheme()&&k.set("color_scheme","dark");return _.JM(I.src,k)},NAK=function(I){I.isLatencyMeasurementExperiment||I.loadingBar&&document.body.removeChild(I.loadingBar)};
qN.prototype.getSrc=function(){var I=_.H5(this.origin),C;var y=(C=_.MS(this.consentPrimitiveRequest,EXR,3))==null?void 0:_.ti(C,1);C="consent.google.com";y=y?"/u/"+encodeURIComponent(y.toString()):"";(I==null?0:I.endsWith("youtube.com"))?C="consent.youtube.com":(I=I==null?void 0:I.match("google\\.(co\\.)?([a-z]{2,3})$"))&&(C="consent.google."+((I[1]?"co.":"")+encodeURIComponent(I[2])));return _.Ca("https://"+C+"/signedin"+y+"/landing")};
var nHj=function(I,C,y){I.iframe||(I.iframe=document.createElement("iframe"),I.iframe.style.width="100%",I.iframe.style.height="100%",y!==112496729&&(I.iframe.style.colorScheme="auto"),I.isLatencyMeasurementExperiment&&(I.iframe.style.display="none"),_.jO(I.iframe,C),I.iframe.setAttribute("jsname","C5o1O"),RFY(I.iframe),document.body.appendChild(I.iframe))},RFY=function(I){I.style.bottom="-200vh";
I.style.position="fixed";I.style.right="-200vw";I.style.border="";I.style.left="";I.style.top="";I.style.zIndex="";I.style.pointerEvents="none";I.style.visibility="hidden"},VtK=function(I){I.iframe&&(I.isLatencyMeasurementExperiment||(I.JSC$17140_previousHtmlOverscroll!==void 0&&(document.documentElement.style.overscrollBehavior=I.JSC$17140_previousHtmlOverscroll),I.JSC$17140_previousBodyOverscroll!==void 0&&(document.body.style.overscrollBehavior=I.JSC$17140_previousBodyOverscroll),I.JSC$17140_previousBodyOverflow!==
void 0&&(document.body.style.overflow=I.JSC$17140_previousBodyOverflow),I.enableDialogA11yFix&&bIB(I,!1)),RFY(I.iframe))};
qN.prototype.handleFocusChange=function(){document.activeElement===this.iframe&&(bIB(this,!0),window.removeEventListener("blur",this.focusChangeListener))};
var bIB=function(I,C){var y,k,F=(y=I.iframe)==null?void 0:(k=y.parentElement)==null?void 0:k.children;if(F)for(y=0;y<F.length;y++)k=F[y],k!==I.iframe&&(C?(k.hasAttribute("aria-hidden")&&_.Ka([_.Uj(eFB)],k,"data-old-aria-hidden",k.getAttribute("aria-hidden")),_.Ka([_.Uj(ruK)],k,"aria-hidden","true")):(k.removeAttribute("aria-hidden"),k.hasAttribute("data-old-aria-hidden")&&(_.Ka([_.Uj(iI8)],k,"aria-hidden",k.getAttribute("data-old-aria-hidden")),k.removeAttribute("data-old-aria-hidden"))))},mH=function(I,
C,y){var k;
(k=I.latencyCallback)==null||k.call(I,{latencyType:C,timestampEpochMillis:y!=null?y:Date.now()})};var YnY=function(I,C,y){qN.call(this,C,y===void 0?!1:y);this.consentPrimitiveRequest=I;I=$dK(this);if(!(0,_.jpX)(I))throw Error("H``"+String(I));this.src=this.getSrc();var k;this.initialLoadingStrategy=(k=_.MS(this.consentPrimitiveRequest,IX,4))==null?void 0:_.YC(k,4)},GbP;
_.R(YnY,qN);var k$M=function(I){var C=_.V("enable_primitive_dialog_aria_hide_siblings");I={request:I,enableDialogA11yFix:C===void 0?!1:C};GbP||(GbP=new YnY(I.request,I.isLatencyMeasurementExperiment||_.YC(I.request,1)===2,I.enableDialogA11yFix));return GbP},$dK=function(I){var C;
return(C=_.MS(I.consentPrimitiveRequest,IX,4))==null?void 0:_.b4(C,1)},pJM=function(I,C){if(!_.nF(I.consentPrimitiveRequest,dK,5)){var y=I.consentPrimitiveRequest,k=new dK;
_.JT(y,5,k)}var F;if((F=_.MS(I.consentPrimitiveRequest,dK,5))==null||_.l4(F,8)==null){var z;(z=_.MS(I.consentPrimitiveRequest,dK,5))!=null&&_.pi(z,8,C)}},LeB=function(I){var C;
return(C=_.MS(I.consentPrimitiveRequest,dK,5))==null?void 0:_.ti(C,1)};
YnY.prototype.isDarkTheme=function(){var I;return((I=_.MS(this.consentPrimitiveRequest,IX,4))==null?void 0:_.YC(I,2))===2};
var lHR=function(I){var C;return((C=_.MS(I.consentPrimitiveRequest,IX,4))==null?void 0:_.ti(C,5))||void 0},j7Y=function(I){I.channel=void 0;
I.prewarmChannel=void 0;I.iframe&&(document.body.contains(I.iframe)&&document.body.removeChild(I.iframe),I.iframe=void 0);GbP=void 0},TWK=function(I){return qN.prototype.showPrimitive.call(I).then(function(C){return _.MS(C,aZj,2)})};for(var ZX={},fHM=(ZX[64]="ma",ZX[73]="ogb",ZX[89]="cr",ZX[21]="test",ZX[0]="unkn",ZX[137]="con",ZX[155]="hl",ZX[78]="yt",ZX[171]="lp",ZX[172]="ap",ZX[177]="amo",ZX[178]="pqe",ZX[74]="gg",ZX[1]="gm",ZX[140]="am",ZX),SnY=_.T(Object.keys(fHM)),KeL=SnY.next();!KeL.done;KeL=SnY.next());var AuL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(AuL,_.GR);var gH8=[0,[2,3,4],_.Hv,Ckj,ThP,_.Num];var vHM=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(vHM,_.GR);var WeS=_.hT(vHM,[0,zVK,_.E0,_.Hv,_.E0,_.Hv,gH8]);var ddL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(ddL,_.GR);ddL.prototype.getCommand=function(){return _.YC(this,1)};
var xdR=function(){var I=new ddL;return _.A0(I,1,0)};var qnP=_.Um([0,zVK,_.E0,[0,_.Hv,_.E0,-1]]);var mdH=new _.eg("s"),ZIR=new _.eg("t"),BAB=new _.eg("u"),EHR=new _.eg("v"),hFY=function(I,C,y){_.r1.call(this,mdH);this.mediaKey=I;this.photoUrl=C;this.photoSource=y};
_.R(hFY,_.r1);var UdL=function(){_.r1.call(this,ZIR)};
_.R(UdL,_.r1);var HIL=function(I){I=I===void 0?!1:I;_.r1.call(this,BAB);this.isError=I};
_.R(HIL,_.r1);var ttH=function(){_.r1.call(this,EHR)};
_.R(ttH,_.r1);var Juj=/^\[([a-z0-9-]+)(="([^\\"]*)")?]$/,IzM=function(I){if(typeof I=="string"){if(I.charAt(0)==".")return OIY(I.substr(1));if(I.charAt(0)=="["){var C=Juj.exec(I);I=I.indexOf("=")==-1?void 0:C[3];return aHB(C[1],I)}return MtS(I)}return I},OIY=function(I){return function(C){return C.getAttribute&&_.d1(C,I)}},aHB=function(I,C){return function(y){return C!==void 0?y.getAttribute&&y.getAttribute(I)==C:y.hasAttribute&&y.hasAttribute(I)}},MtS=function(I){I=I.toUpperCase();
return function(C){return(C=C.tagName)&&C.toUpperCase()==I}},C4H=function(){return!0};var Bh=function(I,C){this.JSC$17168_key_=I;this.JSC$17168_value_=C},E6=function(I){throw Error("fk`"+I.JSC$17168_key_);
},shR=function(I,C){return new TypeError("gk`"+C+"`"+I.JSC$17168_key_+"`"+I.JSC$17168_value_+"`"+typeof I.JSC$17168_value_)};
Bh.prototype.string=function(I){if(arguments.length==0)var C=oCK(this);else{var y;C=(y=y0R(this))!=null?y:I}return C};
var oCK=function(I){var C=y0R(I);C===null&&E6(I);return C},y0R=function(I){var C=I.JSC$17168_value_;
if(C==null)return null;if(typeof C==="string")return C;throw shR(I,"string");};
Bh.prototype.bool=function(I){if(arguments.length==0){var C=this.optionalBool();C===null&&E6(this)}else{var y;C=(y=this.optionalBool())!=null?y:I}return C};
Bh.prototype.optionalBool=function(){var I=this.JSC$17168_value_;if(I==null)return null;if(typeof I==="boolean")return I;if(typeof I==="string"){I=I.toLowerCase();if(I==="true"||I==="1")return!0;if(I==="false"||I==="0")return!1}throw shR(this,"boolean");};
Bh.prototype.number=function(I){if(arguments.length==0){var C=k6H(this);C===null&&E6(this)}else{var y;C=(y=k6H(this))!=null?y:I}return C};
var k6H=function(I){var C=I.JSC$17168_value_;if(C==null)return null;if(typeof C==="number")return C;if(typeof C==="string"){var y=Number(C);if(!isNaN(y)&&(y!==0||C.trim().length!==0))return y}throw shR(I,"number");};
Bh.prototype.toString=function(){return oCK(this)};
Bh.prototype.array=function(I){if(arguments.length==0){var C=FAH(this);C===null&&E6(this);return C}C=FAH(this);return C==null?I:C};
var FAH=function(I){var C=I.JSC$17168_value_;if(C==null)return null;Array.isArray(C)||(typeof C!=="string"?C=[C]:(C=C.trim(),C=C==""?[]:C.split(",").map(function(y){return y.trim()})));
return u8M(I,C)},u8M=function(I,C){var y=I.JSC$17168_key_+"[";
return Array.from(C,function(k,F){return new Bh(y+F+"]",k)})};
Bh.prototype.object=function(I){var C=this.JSC$17168_value_;if(C==null)return I===void 0&&E6(this),I;if(typeof C==="object"&&C.constructor===Object){I={};var y=this.JSC$17168_key_+".",k;for(k in C)I[k]=new Bh(y+k,C[k]);return I}throw shR(this,"object");};var hH=function(I){this.list_=zB8(I)},zB8=function(I){if(I instanceof hH)I=I.list_;
else if(I[0]instanceof hH){for(var C=new Set,y=0;y<I.length;y++)for(var k=_.T(I[y].list_),F=k.next();!F.done;F=k.next())C.add(F.value);I=C}return[].concat(_.Py(I))};
_.u=hH.prototype;_.u.each=function(I,C,y){((y===void 0?0:y)?xSB:_.mn)(this.list_,I,C);return this};
_.u.size=function(){return this.list_.length};
_.u.isEmpty=function(){return this.list_.length===0};
_.u.get=function(I){return this.list_[I]||null};
_.u.el=function(){return this.list_[0]||null};
_.u.map=function(I,C){return _.pe(this.list_,I,C)};
_.u.equals=function(I){return this===I||_.u8(this.list_,I.list_)};
_.u.first=function(){return this.list_.length==0?null:new U6(this.list_[0])};
_.u.find=function(I){var C=[];this.each(function(y){y=y.querySelectorAll(String(I));for(var k=0;k<y.length;k++)C.push(y[k])});
return new hH(C)};
_.u.parent=function(){var I=[];this.each(function(C){(C=C.parentElement||null)&&!_.qz(I,C)&&I.push(C)});
return new hH(I)};
_.u.children=function(){var I=[];this.each(function(C){C=_.KQ(C);for(var y=0;y<C.length;y++)I.push(C[y])});
return new hH(I)};
_.u.filter=function(I){I=_.yv(this.list_,IzM(I));return new hH(I)};
_.u.closest=function(I){var C=[],y=IzM(I),k=function(F){return _.tz(F)&&y(F)};
this.each(function(F){(F=_.$F(F,k,!0))&&!_.qz(C,F)&&C.push(F)});
return new hH(C)};
_.u.next=function(I){return TdY(this,_.dK0,I)};
_.u.prev=function(I){return TdY(this,rUj,I)};
var TdY=function(I,C,y){var k=[];var F=y?IzM(y):C4H;I.each(function(z){(z=C(z))&&F(z)&&k.push(z)});
return new hH(k)};
hH.prototype.setClass=function(I){return this.each(function(C){_.Wf(C,I)})};
var c0M=function(I,C){return I.each(function(y){_.qx(y,C)})},eB8=function(I,C){return I.each(function(y){_.dY(y,C)})};
hH.prototype.toggleClass=function(I,C){return C===!0?c0M(this,I):C===!1?eB8(this,I):this.each(function(y){_.d1(y,I)?_.dY(y,I):_.qx(y,I)})};
hH.prototype.setText=function(I){return this.each(function(C){_.Ah(C,I)})};
var r0K=function(I){I.each(function(C){C.removeAttribute("aria-hidden")})};
hH.prototype.getStyle=function(I){if(this.list_.length>0){var C=this.list_[0],y=C.style[_.P$(I)];return typeof y!=="undefined"?y:C.style[_.I8d(C,I)]||""}};
hH.prototype.getData=function(I){if(this.list_.length===0)return new Bh(I,null);var C=hwH(this.list_[0],I);return new Bh(I,C)};
hH.prototype.focus=function(I){try{I?this.el().focus(I):this.el().focus()}catch(C){}return this};
hH.prototype.click=function(){var I=_.V6(this.el());if(I.createEvent){var C=I.createEvent("MouseEvents");C.initMouseEvent("click",!0,!0,I.defaultView,1,0,0,0,0,!1,!1,!1,!1,0,null);this.el().dispatchEvent(C)}else I=I.createEventObject(),I.clientX=0,I.clientY=0,I.screenX=0,I.screenY=0,I.altKey=!1,I.ctrlKey=!1,I.shiftKey=!1,I.button=0,this.el().fireEvent("onclick",I)};
var Hh=function(I,C,y,k){function F(r,w,L){var D=w;w&&w.parentNode&&(D=w.cloneNode(!0));r(D,L)}
k=k===void 0?!1:k;if(I.list_.length==1){var z=I.list_[0],c=function(r){return C(r,z)};
y instanceof hH?y.each(c,void 0,k):Array.isArray(y)?(k?xSB:_.mn)(y,c):c(y);return I}return I.each(function(r){y instanceof hH?y.each(function(w){F(C,w,r)}):Array.isArray(y)?_.mn(y,function(w){F(C,w,r)}):F(C,y,r)})};
_.u=hH.prototype;_.u.append=function(I){return Hh(this,function(C,y){C&&y.appendChild(C)},I)};
_.u.appendTo=function(I){(new hH([I])).append(this);return this};
_.u.remove=function(){return Hh(this,function(I,C){_.ey(C)},null)};
_.u.empty=function(){return Hh(this,function(I,C){_.GE(C)},null)};
_.u.after=function(I,C){return Hh(this,function(y,k){y&&_.SZ(y,k)},I,!(C===void 0||C))};
_.u.before=function(I){return Hh(this,function(C,y){C&&_.fQ(C,y)},I)};
_.u.replaceWith=function(I){return Hh(this,function(C,y){C&&_.gK5(C,y)},I)};
_.u.toggle=function(I){return this.each(function(C){_.mc(C,I)})};
_.u.show=function(){return this.toggle(!0)};
_.u.hide=function(){return this.toggle(!1)};
_.u.trigger=function(I,C,y,k){return iFB(this,I,C,y,k)};
var iFB=function(I,C,y,k,F){return I.each(function(z){_.Lnz(_.V6(z)).triggerWizEventInternal(z,C,y,k,F)})},U6=function(I,C){I instanceof hH&&(C=I.list_,I=null);
this.list_=zB8(I!=null?[I]:C)};
_.s0(U6,hH);_.u=U6.prototype;_.u.children=function(){return new hH(Array.prototype.slice.call(_.KQ(this.list_[0])))};
_.u.each=function(I,C){I.call(C,this.list_[0],0);return this};
_.u.size=function(){return 1};
_.u.el=function(){return this.list_[0]};
_.u.first=function(){return this};var tH=function(I,C){C=C===void 0?window:C;this.hostId=I;this.JSC$17179_win=C;this.scheme="https";this.domain="myaccount.google.com";this.authUser=this.port=0;this.colorScheme="";this.parentElement=document.body;this.iframePosition="fixed";this.opened=!1;this.JSC$17179_previousHtmlOverscroll=this.JSC$17179_previousBodyOverscroll=this.JSC$17179_previousBodyOverflow="";this.eventTarget=new _.LW;this.JSC$17179_win.location.hostname.indexOf("youtube.com")>=0&&(this.domain="profilewidgets.youtube.com")},
P4Y=function(I){var C=wvR(wvR(wvR(new nCH(78),"po"),"hppp"),"hhc");
C.authUser=Number(_.Aq("SESSION_INDEX","0"));C.colorScheme=I;return C};
tH.prototype.getOrigin=function(){return this.origin?this.origin:_.Ov(_.JZ(_.tZ(new _.t$,this.JSC$17179_win.location.protocol),this.JSC$17179_win.location.hostname),this.JSC$17179_win.location.port).toString()};
tH.prototype.getTargetOrigin=function(){return _.Ov(_.JZ(_.tZ(new _.t$,this.scheme),this.domain),this.port)};
tH.prototype.preloadIframe=function(I){var C=this;if(this.iframeLoadPromise===void 0){var y=document.createElement("iframe");this.iframe=y;dsY(y,I);this.iframeLoadPromise=new Promise(function(k,F){var z=!1,c=function(r){r.stopPropagation();y.removeEventListener("error",c);y.removeEventListener("securitypolicyviolation",c);F(Error("hk",{cause:r}))};
y.addEventListener("error",c);y.addEventListener("securitypolicyviolation",c);setTimeout(function(){z||F(Error("ik"))},3E4);
LAR(C,y,function(){z=!0;y.removeEventListener("error",c);y.removeEventListener("securitypolicyviolation",c);k()})});
DmL(this);I=this.getTargetOrigin().toString();y.setAttribute("allow","camera "+I+"; display-capture "+I);this.parentElement.appendChild(y)}return this.iframeLoadPromise};
var NdL=function(I,C){var y,k;return _.e(function(F){if(F.nextAddress==1)return y=G2S(getComputedStyle(I.parentElement).direction==="rtl"),I.parentElement.appendChild(y),document.activeElement instanceof HTMLElement&&(I.elementToFocusAfterClose=document.activeElement),_.aM(F,2),_.n(F,I.preloadIframe(C),4);if(F.nextAddress!=2){I.parentElement.removeChild(y);I.JSC$17179_previousBodyOverflow=I.parentElement.style.overflow;I.JSC$17179_previousHtmlOverscroll=document.documentElement.style.overscrollBehavior;
I.JSC$17179_previousBodyOverscroll=I.parentElement.style.overscrollBehavior;document.documentElement.style.overscrollBehavior="contain";I.parentElement.style.overscrollBehavior="contain";I.parentElement.style.overflow="hidden";var z=I.iframe;z.style.bottom="0";z.style.border="none";z.style.height="100%";z.style.left="0";z.style.position=I.iframePosition;z.style.right="0";z.style.top="0";z.style.width="100%";z.style.zIndex="2202";z.setAttribute("aria-hidden","false");z.setAttribute("aria-modal","true");
I.opened=!0;pvK(I);return _.dC(F,0)}k=_.sj(F);I.parentElement.removeChild(y);gd8(I.isDarkTheme());QhH(I,!1);throw Error("jk",{cause:k});})},QhH=function(I,C){C=C===void 0?!0:C;
I.iframe!==void 0&&(VkH(I),document.documentElement.style.overscrollBehavior=I.JSC$17179_previousHtmlOverscroll,I.parentElement.style.overscrollBehavior=I.JSC$17179_previousBodyOverscroll,I.parentElement.style.overflow=I.JSC$17179_previousBodyOverflow,I.elementToFocusAfterClose!==void 0&&(I.elementToFocusAfterClose.focus(),I.elementToFocusAfterClose=void 0),C?DmL(I):(I.parentElement.removeChild(I.iframe),I.iframe=void 0,I.iframeLoadPromise=void 0,I.mainChannel=void 0),I.opened=!1)},VkH=function(I){I.backgroundElementsAriaHiddenIsNull&&
(r0K(I.backgroundElementsAriaHiddenIsNull),I.backgroundElementsAriaHiddenIsNull=void 0);
I.backgroundElementsAriaHiddenIsFalse&&(I.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","false")}),I.backgroundElementsAriaHiddenIsFalse=void 0);
I.backgroundElementsWithoutInert&&(I.backgroundElementsWithoutInert.each(function(C){C.removeAttribute("inert")}),I.backgroundElementsWithoutInert=void 0)},pvK=function(I){I.backgroundElementsAriaHiddenIsNull=(new U6(I.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")===null&&C!==I.iframe});
I.backgroundElementsAriaHiddenIsNull.each(function(C){C.setAttribute("aria-hidden","true")});
I.backgroundElementsAriaHiddenIsFalse=(new U6(I.iframe.parentElement)).children().filter(function(C){return C.getAttribute("aria-hidden")==="false"&&C!==I.iframe});
I.backgroundElementsAriaHiddenIsFalse.each(function(C){C.setAttribute("aria-hidden","true")});
I.backgroundElementsWithoutInert=(new U6(I.iframe.parentElement)).children().filter(function(C){return!C.hasAttribute("inert")&&C!==I.iframe});
I.backgroundElementsWithoutInert.each(function(C){C.setAttribute("inert","true")})},DmL=function(I){I=I.iframe;
I.style.bottom="-1000px";I.style.position="fixed";I.style.right="-1000px";I.style.border="";I.style.height="";I.style.left="";I.style.top="";I.style.width="";I.style.zIndex="";I.setAttribute("aria-hidden","true");I.setAttribute("aria-modal","false")};
tH.prototype.isDarkTheme=function(){return this.colorScheme==="dark"||window.matchMedia("(prefers-color-scheme: dark)").matches&&this.colorScheme!=="light"};var nCH=function(I,C){tH.call(this,fHM[I],C);this.options=[];this.style=""};
_.R(nCH,tH);var jhY=function(I){I.style="youtube";return I},lzM=function(I,C){I.eventTarget.listen(BAB,C);
return I},XvY=function(I,C){I.eventTarget.listen(mdH,C);
return I},wvR=function(I,C){I.options.push(C);
return I},$mS=function(I){var C=[I.getOrigin()];
I.ancestorOrigins&&C.push.apply(C,_.Py(I.ancestorOrigins));var y=new _.t$(I.JSC$17179_win.location.href),k=I.startUrl?I.startUrl:I.options.includes("po")?"profile-picture/art":"profile-picture";C=CR(_.az(I.getTargetOrigin(),k),"origin",C);I.startUrl&&_.q9(C,"startPath",I.startUrl);I.authUser>0&&_.q9(C,"authuser",I.authUser);I.pageId!==void 0&&_.q9(C,"pageId",I.pageId);_.q9(C,"hostId",I.hostId);I.jsMode!==void 0&&_.q9(C,"jsmode",I.jsMode);I.options.length>0&&_.q9(C,"opts",I.options.join(","));try{for(var F=
_.T(["utm_source","utm_medium","utm_campaign","utm_content"]),z=F.next();!z.done;z=F.next()){var c=z.value;_.xq(y,c)&&_.q9(C,c,_.xq(y,c))}var r,w=(r=I.hl)!=null?r:_.xq(y,"hl");w!==void 0&&_.q9(C,"hl",w)}catch(L){if(!(L instanceof URIError))throw L;}I.colorScheme&&_.q9(C,"theme",I.colorScheme);I.style&&_.q9(C,"style",I.style);return C},RBM=function(I,C){I.mainChannel=_.O0({destination:I.JSC$17179_win,
iframe:C,origin:I.getTargetOrigin().toString(),channelName:"ow",onMessage:function(y){y=WeS(y.data);if(C===I.iframe)switch(_.YC(y,1)){case 1:I.eventTarget.dispatchEvent(new HIL);QhH(I);break;case 2:I.eventTarget.dispatchEvent(new hFY(_.b4(y,4),_.b4(y,2),_.YC(y,5),_.MS(y,AuL,6)));break;case 0:var k;I.eventTarget.dispatchEvent(new UdL(_.b4(y,2),(k=_.YC(y,3))!=null?k:0));break;case 3:I.eventTarget.dispatchEvent(new HIL(!0));QhH(I,!1);break;case 4:I.eventTarget.dispatchEvent(new ttH)}}})},LAR=function(I,
C,y){_.O0({destination:I.JSC$17179_win,
iframe:C,origin:_.Ov(_.JZ(_.tZ(new _.t$,I.scheme),I.domain),I.port).toString(),channelName:"owi",onMessage:function(k){C===I.iframe&&(y!==void 0&&y(),RBM(I,C),I.opened&&I.mainChannel.send(qnP(xdR())),k.reply(),LAR(I,C))}})};
nCH.prototype.preloadIframe=function(){return this.iframeLoadPromise===void 0?tH.prototype.preloadIframe.call(this,$mS(this).toString()):this.iframeLoadPromise};
nCH.prototype.openPicker=function(I){var C=this;return _.e(function(y){if(y.nextAddress==1)return C.startUrl=I?I:C.options.includes("po")?"profile-picture/art":"profile-picture",_.n(y,NdL(C,$mS(C).toString()),2);if(C.mainChannel){var k=C.mainChannel,F=k.send;var z=xdR();z=_.zT(z,2,C.startUrl);F.call(k,qnP(z))}_.oI(y)})};var bFY=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(bFY,_.GR);_.u=bFY.prototype;_.u.getSize=function(){return T1(this,1)};
_.u.setSize=function(I){return _.KF(this,1,I)};
_.u.getWidth=function(){return T1(this,12)};
_.u.getHeight=function(){return T1(this,13)};
_.u.setCenterCrop=function(I){return _.Mb(this,20,I)};
_.u.getHtml=function(){return _.X8(this,4)};
_.u.getToken=function(){return _.Te(this,24)};
_.u.setToken=function(I){return _.zT(this,24,I)};
_.u.getBackgroundColor=function(){return T1(this,87)};
_.u.hasBackgroundColor=function(){return _.DS(_.wd(this,87))!=null};
_.u.getStoryboardLevel=function(){return T1(this,109)};var JH=function(I){this.JSC$17187_value_=void 0;this.childNodes_={};if(I){var C=_.tyu(I);I=_.Hf(I);for(var y=0;y<C.length;y++)this.set(C[y],I[y])}};
JH.prototype.set=function(I,C){Y0B(this,I,C,!1)};
JH.prototype.add=function(I,C){Y0B(this,I,C,!0)};
var Y0B=function(I,C,y,k){for(var F=0;F<C.length;F++){var z=C.charAt(F);I.childNodes_[z]||(I.childNodes_[z]=new JH);I=I.childNodes_[z]}if(k&&I.JSC$17187_value_!==void 0)throw Error("kk`"+C);I.JSC$17187_value_=y},G6K=function(I,C){for(var y=0;y<C.length;y++)if(I=I.childNodes_[C.charAt(y)],!I)return;
return I};
JH.prototype.get=function(I){return(I=G6K(this,I))?I.JSC$17187_value_:void 0};
JH.prototype.getValues=function(){var I=[];fzL(this,I);return I};
var fzL=function(I,C){I.JSC$17187_value_!==void 0&&C.push(I.JSC$17187_value_);for(var y in I.childNodes_)fzL(I.childNodes_[y],C)};
JH.prototype.getKeys=function(I){var C=[];if(I){for(var y=this,k=0;k<I.length;k++){var F=I.charAt(k);if(!y.childNodes_[F])return[];y=y.childNodes_[F]}S0H(y,I,C)}else S0H(this,"",C);return C};
var S0H=function(I,C,y){I.JSC$17187_value_!==void 0&&y.push(C);for(var k in I.childNodes_)S0H(I.childNodes_[k],C+k,y)};
_.u=JH.prototype;_.u.containsKey=function(I){return this.get(I)!==void 0};
_.u.containsValue=function(I){if(this.JSC$17187_value_===I)return!0;for(var C in this.childNodes_)if(this.childNodes_[C].containsValue(I))return!0;return!1};
_.u.clear=function(){this.childNodes_={};this.JSC$17187_value_=void 0};
_.u.remove=function(I){for(var C=this,y=[],k=0;k<I.length;k++){var F=I.charAt(k);if(!C.childNodes_[F])throw Error("lk`"+I);y.push([C,F]);C=C.childNodes_[F]}I=C.JSC$17187_value_;for(delete C.JSC$17187_value_;y.length>0;)if(k=y.pop(),C=k[0],k=k[1],C.childNodes_[k].isEmpty())delete C.childNodes_[k];else break;return I};
_.u.clone=function(){return new JH(this)};
_.u.getCount=function(){return wPS(this.getValues())};
_.u.isEmpty=function(){return this.JSC$17187_value_===void 0&&_.Le.isEmpty(this.childNodes_)};var BX8=function(){if(!KAK){var I=KAK=new JH,C;for(C in A0Y)I.add(C,A0Y[C])}},KAK,O6=function(I,C){this.types=I;
this.setters=C},A0Y={a:new O6([3,
0],[function(I,C){_.Mb(I,21,C)},
function(I,C){_.KF(I,56,C)}]),
al:new O6([3],[function(I,C){_.Mb(I,74,C)}]),
b:new O6([3,0],[function(I,C){_.Mb(I,23,C)},
function(I,C){_.KF(I,38,C)}]),
ba:new O6([0],[function(I,C){_.KF(I,85,C)}]),
bc:new O6([0],[function(I,C){_.KF(I,87,C)}]),
br:new O6([0],[function(I,C){_.KF(I,86,C)}]),
c:new O6([3,0],[function(I,C){_.Mb(I,2,C)},
function(I,C){_.KF(I,39,C)}]),
cc:new O6([3],[function(I,C){_.Mb(I,51,C)}]),
ci:new O6([3],[function(I,C){_.Mb(I,32,C)}]),
ckm:new O6([3],[function(I,C){_.Mb(I,104,C)}]),
cp:new O6([0],[function(I,C){_.KF(I,92,C)}]),
cr:new O6([3],[function(I,C){_.Mb(I,108,C)}]),
cv:new O6([0],[function(I,C){_.KF(I,94,C)}]),
d:new O6([3],[function(I,C){_.Mb(I,3,C)}]),
dc:new O6([5],[function(I,C){_.zT(I,99,C)}]),
df:new O6([3],[function(I,C){_.Mb(I,80,C)}]),
dv:new O6([3],[function(I,C){_.Mb(I,90,C)}]),
e:new O6([0],[function(I,C){_.KF(I,15,C)}]),
em:new O6([0],[function(I,C){_.KF(I,107,C)}]),
f:new O6([4],[function(I,C){_.zT(I,16,C)}]),
fg:new O6([3],[function(I,C){_.Mb(I,34,C)}]),
fh:new O6([3],[function(I,C){_.Mb(I,30,C)}]),
fm:new O6([3],[function(I,C){_.Mb(I,84,C)}]),
fo:new O6([2],[function(I,C){_.Cw(I,79,_.kK(C))}]),
ft:new O6([3],[function(I,C){_.Mb(I,50,C)}]),
fv:new O6([3],[function(I,C){_.Mb(I,31,C)}]),
g:new O6([3],[function(I,C){_.Mb(I,14,C)}]),
gce:new O6([4],[function(I,C){_.zT(I,112,C)}]),
gd:new O6([3],[function(I,C){_.Mb(I,83,C)}]),
gm:new O6([3],[function(I,C){_.Mb(I,105,C)}]),
h:new O6([3,0],[function(I,C){_.Mb(I,4,C)},
function(I,C){_.KF(I,13,C)}]),
i:new O6([3],[function(I,C){_.Mb(I,22,C)}]),
ic:new O6([0],[function(I,C){_.KF(I,71,C)}]),
id:new O6([3],[function(I,C){_.Mb(I,70,C)}]),
il:new O6([3],[function(I,C){_.Mb(I,96,C)}]),
ip:new O6([3],[function(I,C){_.Mb(I,54,C)}]),
iv:new O6([0],[function(I,C){_.pi(I,75,C)}]),
j:new O6([1],[function(I,C){C=C==null?C:Zh8(C);_.Cw(I,29,C)}]),
k:new O6([3,0],[function(I,C){_.Mb(I,17,C)},
function(I,C){_.KF(I,42,C)}]),
l:new O6([0],[function(I,C){_.KF(I,44,C)}]),
lf:new O6([3],[function(I,C){_.Mb(I,65,C)}]),
lo:new O6([3],[function(I,C){_.Mb(I,97,C)}]),
m:new O6([0],[function(I,C){_.KF(I,63,C)}]),
md:new O6([3],[function(I,C){_.Mb(I,91,C)}]),
mm:new O6([4],[function(I,C){_.zT(I,81,C)}]),
mo:new O6([3],[function(I,C){_.Mb(I,73,C)}]),
mv:new O6([3],[function(I,C){_.Mb(I,66,C)}]),
n:new O6([3],[function(I,C){I.setCenterCrop(C)}]),
nc:new O6([3],[function(I,C){_.Mb(I,55,C)}]),
nd:new O6([3],[function(I,C){_.Mb(I,53,C)}]),
ng:new O6([3],[function(I,C){_.Mb(I,95,C)}]),
ngm:new O6([3],[function(I,C){_.Mb(I,106,C)}]),
no:new O6([3],[function(I,C){_.Mb(I,37,C)}]),
ns:new O6([3],[function(I,C){_.Mb(I,40,C)}]),
nt0:new O6([4],[function(I,C){_.zT(I,36,C)}]),
ntm:new O6([3],[function(I,C){_.Mb(I,114,C)}]),
nu:new O6([3],[function(I,C){_.Mb(I,46,C)}]),
nw:new O6([3],[function(I,C){_.Mb(I,48,C)}]),
o:new O6([1,3],[function(I,C){C=C==null?C:Zh8(C);_.Cw(I,7,C)},
function(I,C){_.Mb(I,27,C)}]),
p:new O6([3,0],[function(I,C){_.Mb(I,19,C)},
function(I,C){_.KF(I,43,C)}]),
pa:new O6([3],[function(I,C){_.Mb(I,61,C)}]),
pc:new O6([0],[function(I,C){_.KF(I,88,C)}]),
pd:new O6([3],[function(I,C){_.Mb(I,60,C)}]),
pf:new O6([3],[function(I,C){_.Mb(I,67,C)}]),
pg:new O6([3],[function(I,C){_.Mb(I,72,C)}]),
pi:new O6([2],[function(I,C){_.Cw(I,76,_.kK(C))}]),
pp:new O6([3],[function(I,C){_.Mb(I,52,C)}]),
pt:new O6([4],[function(I,C){_.zT(I,111,C)}]),
q:new O6([4],[function(I,C){_.zT(I,28,C)}]),
r:new O6([3,0],[function(I,C){_.Mb(I,6,C)},
function(I,C){_.KF(I,26,C)}]),
ra:new O6([3],[function(I,C){_.Mb(I,103,C)}]),
rf:new O6([3],[function(I,C){_.Mb(I,100,C)}]),
rg:new O6([3],[function(I,C){_.Mb(I,59,C)}]),
rh:new O6([3],[function(I,C){_.Mb(I,49,C)}]),
rj:new O6([3],[function(I,C){_.Mb(I,57,C)}]),
ro:new O6([2],[function(I,C){_.Cw(I,78,_.kK(C))}]),
rp:new O6([3],[function(I,C){_.Mb(I,58,C)}]),
rw:new O6([3],[function(I,C){_.Mb(I,35,C)}]),
rwa:new O6([3],[function(I,C){_.Mb(I,64,C)}]),
rwu:new O6([3],[function(I,C){_.Mb(I,41,C)}]),
s:new O6([3,0],[function(I,C){_.Mb(I,33,C)},
function(I,C){I.setSize(C)}]),
sb:new O6([0],[function(I,C){_.KF(I,110,C)}]),
sc:new O6([0],[function(I,C){_.KF(I,89,C)}]),
sg:new O6([3],[function(I,C){_.Mb(I,82,C)}]),
sl:new O6([0],[function(I,C){_.KF(I,109,C)}]),
sm:new O6([3],[function(I,C){_.Mb(I,93,C)}]),
t:new O6([4],[function(I,C){I.setToken(C)}]),
tm:new O6([3],[function(I,C){_.Mb(I,113,C)}]),
u:new O6([3],[function(I,C){_.Mb(I,18,C)}]),
ut:new O6([3],[function(I,C){_.Mb(I,45,C)}]),
v:new O6([0],[function(I,C){_.KF(I,62,C)}]),
vb:new O6([0],[function(I,C){_.pi(I,68,C)}]),
vf:new O6([4],[function(I,C){_.zT(I,102,C)}]),
vl:new O6([0],[function(I,C){_.pi(I,69,C)}]),
vm:new O6([3],[function(I,C){_.Mb(I,98,C)}]),
w:new O6([0],[function(I,C){_.KF(I,12,C)}]),
x:new O6([0],[function(I,C){_.KF(I,9,C)}]),
y:new O6([0],[function(I,C){_.KF(I,10,C)}]),
ya:new O6([2],[function(I,C){_.Cw(I,77,_.kK(C))}]),
z:new O6([0],[function(I,C){_.KF(I,11,C)}])};
BX8.prototype.parse=function(I){var C=new bFY,y=new bFY;if(I=="")I=!0;else{I=I.split("-");for(var k=!0,F=0;F<I.length;F++){var z=I[F];if(z.length==0)k=!1;else{var c=z,r=!1;var w=c;var L=c.charAt(0);L!=L.toLowerCase()&&(r=!0,w=c.charAt(0).toLowerCase()+c.substring(1));var D=KAK;for(L=1;L<=w.length;++L){var p=D,Q=w.substring(0,L);if(Q.length==0?p.isEmpty():!G6K(p,Q))break}w=L==1?null:(w=D.get(w.substring(0,L-1)))?{option:c.substring(0,L-1),value:c.substring(L-1),signed:r,attributes:w}:null;if(w){c=
[];r=[];L=!1;for(D=0;D<w.attributes.types.length;D++){p=w.attributes.types[D];var X=w.value;Q=F;if(w.signed&&p==1)for(var b=X.length;b<12&&Q<I.length-1;)X+="-"+I[Q+1],b=X.length,++Q;else if(p==2)for(;Q<I.length-1&&I[Q+1].match(/^[\d\.]/);)X+="-"+I[Q+1],++Q;b=w.attributes.setters[D];X=gCP(this,p)(w.option,X,C,y,b);if(X===null){L=!0;F=Q;break}else c.push(p),r.push(X)}if(!L)for(w=0;w<r.length;w++)D=c[w],X=r[w],vCL(this,D)(z,X);k=k&&L}else k=!1}}I=k}return new WAM(C,y,I)};
var aX=function(I,C,y,k,F,z){F(y,C);I=I.charAt(0);z=z(I==I.toUpperCase());F(k,z)};
_.u=BX8.prototype;_.u.parseAndSetIntOption_=function(I,C,y,k,F){if(C=="")return 0;isFinite(C)&&(C=String(C));C=typeof C==="string"?/^\s*-?0x/i.test(C)?parseInt(C,16):parseInt(C,10):NaN;if(isNaN(C))return 1;aX(I,C,y,k,F,Number);return null};
_.u.logIntParseError_=function(){};
_.u.parseAndSetFloatOption_=function(I,C,y,k,F){if(C=="")return 0;var z=Number(C);C=z==0&&_.eI(C)?NaN:z;if(isNaN(C))return 1;aX(I,C,y,k,F,Number);return null};
_.u.logFloatParseError_=function(){};
_.u.parseAndSetBoolOption_=function(I,C,y,k,F){if(C!="")return 2;aX(I,!0,y,k,F,Boolean);return null};
_.u.logBoolParseError_=function(){};
_.u.parseAndSetStringOption_=function(I,C,y,k,F){if(C=="")return 0;aX(I,C,y,k,F,function(z){return z?"1":""});
return null};
_.u.logStringParseError_=function(){};
_.u.parseAndSetUint64Base64Option_=function(I,C,y,k,F){if(C=="")return 0;aX(I,C,y,k,F,function(z){return z?1:0});
return null};
var gCP=function(I,C){switch(C){case 0:return(0,_.DD)(I.parseAndSetIntOption_,I);case 2:return(0,_.DD)(I.parseAndSetFloatOption_,I);case 3:return(0,_.DD)(I.parseAndSetBoolOption_,I);case 4:return(0,_.DD)(I.parseAndSetStringOption_,I);case 1:return(0,_.DD)(I.parseAndSetUint64Base64Option_,I);default:return function(){}}},vCL=function(I,C){switch(C){case 0:return(0,_.DD)(I.logIntParseError_,I);
case 2:return(0,_.DD)(I.logFloatParseError_,I);case 3:return(0,_.DD)(I.logBoolParseError_,I);case 4:case 1:return(0,_.DD)(I.logStringParseError_,I);default:return function(){}}},WAM=function(I,C,y){this.valueProto_=I;
this.signatureFlagProto_=C;this.JSC$17199_valid_=y};
WAM.prototype.isValid=function(){return this.JSC$17199_valid_};var xsR=function(I){this.JSC$17200_parser_=null;this.JSC$17200_components_=[];this.JSC$17200_parsedOptions_=null;dmR(this,I)},xmK=function(I){I.JSC$17200_parser_==null&&(I.JSC$17200_parser_=new BX8);
return I.JSC$17200_parser_},dmR=function(I,C){I.JSC$17200_parsedOptions_=C?typeof C==="string"?xmK(I).parse(C):C:xmK(I).parse("")},MN=function(I,C){return I==C?!1:!0};
_.u=xsR.prototype;_.u.JSC$17202_setCrop=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,_.X8(y,2),_.X8(C.signatureFlagProto_,2))&&_.Mb(y,2,I);return this};
_.u.JSC$17202_setCircleCrop=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,z1(y,51),z1(C.signatureFlagProto_,51))&&_.Mb(y,51,I);return this};
_.u.JSC$17202_setImageCrop=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,z1(y,32),z1(C.signatureFlagProto_,32))&&_.Mb(y,32,I);return this};
_.u.JSC$17202_setHeight=function(I){var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,y.getHeight(),C.signatureFlagProto_.getHeight())&&_.KF(y,13,I);return this};
_.u.setCenterCrop=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,_.X8(y,20),_.X8(C.signatureFlagProto_,20))&&y.setCenterCrop(I);return this};
_.u.JSC$17202_setSmartCrop=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,_.X8(y,19),_.X8(C.signatureFlagProto_,19))&&_.Mb(y,19,I);return this};
_.u.JSC$17202_setPad=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,z1(y,60),z1(C.signatureFlagProto_,60))&&_.Mb(y,60,I);return this};
_.u.JSC$17202_setSmartCropUseFace=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,_.X8(y,67),_.X8(C.signatureFlagProto_,67))&&_.Mb(y,67,I);return this};
_.u.JSC$17202_setSmartCropNoClip=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,_.X8(y,52),_.X8(C.signatureFlagProto_,52))&&_.Mb(y,52,I);return this};
_.u.setSize=function(I){var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,y.getSize(),C.signatureFlagProto_.getSize())&&y.setSize(I);return this};
_.u.setToken=function(I){I=I||void 0;var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,y.getToken(),C.signatureFlagProto_.getToken())&&y.setToken(I);return this};
_.u.JSC$17202_setWidth=function(I){var C=this.JSC$17200_parsedOptions_,y=C.valueProto_;MN(I,y.getWidth(),C.signatureFlagProto_.getWidth())&&_.KF(y,12,I);return this};
_.u.clearOptions=function(){dmR(this,"");return this};
_.u.build=function(){this.JSC$17200_components_.length=0;var I=this.JSC$17200_parsedOptions_,C=I.valueProto_;I=I.signatureFlagProto_;Ia(this,"s",C.getSize(),I.getSize());Ia(this,"w",C.getWidth(),I.getWidth());Ck(this,"c",_.X8(C,2),_.X8(I,2));Ck(this,"d",_.X8(C,3),_.X8(I,3));Ia(this,"h",C.getHeight(),I.getHeight());Ck(this,"s",z1(C,33),z1(I,33));Ck(this,"h",C.getHtml(),I.getHtml());Ck(this,"p",_.X8(C,19),_.X8(I,19));Ck(this,"pp",_.X8(C,52),_.X8(I,52));Ck(this,"pf",_.X8(C,67),_.X8(I,67));Ck(this,"n",
_.X8(C,20),_.X8(I,20));Ia(this,"r",T1(C,26),T1(I,26));Ck(this,"r",_.X8(C,6),_.X8(I,6));Ck(this,"o",z1(C,27),z1(I,27));var y=M2L(C,7);sf(this,"o",y,M2L(I,7));y=M2L(C,29);sf(this,"j",y,M2L(I,29));Ia(this,"x",T1(C,9),T1(I,9));Ia(this,"y",T1(C,10),T1(I,10));Ia(this,"z",T1(C,11),T1(I,11));Ck(this,"g",_.X8(C,14),_.X8(I,14));Ia(this,"e",T1(C,15),T1(I,15));sf(this,"f",_.Te(C,16),_.Te(I,16));Ck(this,"k",z1(C,17),z1(I,17));Ck(this,"u",z1(C,18),!0);Ck(this,"ut",z1(C,45),!0);Ck(this,"i",z1(C,22),!0);Ck(this,
"a",z1(C,21),z1(I,21));Ck(this,"b",_.X8(C,23),_.X8(I,23));Ia(this,"b",T1(C,38),T1(I,38));Ia(this,"c",T1(C,39),T1(I,39),16,8);sf(this,"q",_.Te(C,28),_.Te(I,28));Ck(this,"fh",z1(C,30),z1(I,30));Ck(this,"fv",z1(C,31),z1(I,31));Ck(this,"fg",_.X8(C,34),_.X8(I,34));Ck(this,"ci",z1(C,32),z1(I,32));sf(this,"t",C.getToken(),I.getToken());sf(this,"nt0",_.Te(C,36),_.Te(I,36));Ck(this,"rw",_.X8(C,35),_.X8(I,35));Ck(this,"rwu",_.X8(C,41),_.X8(I,41));Ck(this,"rwa",_.X8(C,64),_.X8(I,64));Ck(this,"nw",_.X8(C,48),
_.X8(I,48));Ck(this,"rh",_.X8(C,49),_.X8(I,49));Ck(this,"no",_.X8(C,37),_.X8(I,37));Ck(this,"ns",z1(C,40),z1(I,40));Ia(this,"k",T1(C,42),T1(I,42));Ia(this,"p",T1(C,43),T1(I,43));Ia(this,"l",T1(C,44),T1(I,44));Ia(this,"v",T1(C,62),T1(I,62));Ck(this,"nu",z1(C,46),z1(I,46));Ck(this,"ft",z1(C,50),z1(I,50));Ck(this,"cc",z1(C,51),z1(I,51));Ck(this,"nd",z1(C,53),z1(I,53));Ck(this,"ip",z1(C,54),z1(I,54));Ck(this,"nc",z1(C,55),z1(I,55));Ia(this,"a",T1(C,56),T1(I,56));Ck(this,"rj",z1(C,57),z1(I,57));Ck(this,
"rp",z1(C,58),z1(I,58));Ck(this,"rg",z1(C,59),z1(I,59));Ck(this,"pd",z1(C,60),z1(I,60));Ck(this,"pa",z1(C,61),z1(I,61));Ia(this,"m",T1(C,63),T1(I,63));Ia(this,"vb",_.l4(C,68,_.i4),_.l4(I,68,_.i4));Ia(this,"vl",_.l4(C,69,_.i4),_.l4(I,69,_.i4));Ck(this,"lf",z1(C,65),z1(I,65));Ck(this,"mv",z1(C,66),z1(I,66));Ck(this,"id",z1(C,70),z1(I,70));Ia(this,"ic",T1(C,71),!0);Ck(this,"pg",_.X8(C,72),_.X8(I,72));Ck(this,"mo",z1(C,73),z1(I,73));Ck(this,"al",z1(C,74),z1(I,74));Ia(this,"iv",_.l4(C,75,_.i4),_.l4(I,
75,_.i4));Ia(this,"pi",ch(C,76),ch(I,76));Ia(this,"ya",ch(C,77),ch(I,77));Ia(this,"ro",ch(C,78),ch(I,78));Ia(this,"fo",ch(C,79),ch(I,79));Ck(this,"df",z1(C,80),z1(I,80));sf(this,"mm",_.Te(C,81),_.Te(I,81));Ck(this,"sg",z1(C,82),z1(I,82));Ck(this,"gd",z1(C,83),z1(I,83));Ck(this,"fm",z1(C,84),z1(I,84));Ia(this,"ba",T1(C,85),T1(I,85));Ia(this,"br",T1(C,86),T1(I,86));Ia(this,"bc",C.getBackgroundColor(),I.getBackgroundColor(),16,8);Ia(this,"pc",T1(C,88),T1(I,88),16,8);Ia(this,"sc",T1(C,89),T1(I,89),16,
8);Ck(this,"dv",z1(C,90),z1(I,90));Ck(this,"md",z1(C,91),z1(I,91));Ia(this,"cp",T1(C,92),T1(I,92));Ck(this,"sm",z1(C,93),z1(I,93));Ia(this,"cv",T1(C,94),T1(I,94));Ck(this,"ng",z1(C,95),z1(I,95));Ck(this,"il",z1(C,96),z1(I,96));Ck(this,"lo",z1(C,97),z1(I,97));Ck(this,"vm",z1(C,98),z1(I,98));sf(this,"dc",_.Te(C,99),_.Te(I,99));Ck(this,"rf",z1(C,100),z1(I,100));sf(this,"vf",_.Te(C,102),_.Te(I,102));Ck(this,"ra",_.X8(C,103),_.X8(I,103));Ck(this,"ckm",z1(C,104),z1(I,104));Ck(this,"gm",z1(C,105),z1(I,105));
Ck(this,"ngm",z1(C,106),z1(I,106));Ia(this,"em",T1(C,107),T1(I,107));Ck(this,"cr",z1(C,108),z1(I,108));Ia(this,"sl",C.getStoryboardLevel(),I.getStoryboardLevel());Ia(this,"sb",T1(C,110),T1(I,110));sf(this,"pt",_.Te(C,111),_.Te(I,111));sf(this,"gce",_.Te(C,112),_.Te(I,112));Ck(this,"tm",z1(C,113),z1(I,113));Ck(this,"ntm",z1(C,114),z1(I,114));return this.JSC$17200_components_.join("-")};
var Ia=function(I,C,y,k,F,z){if(y!=null){var c=F==void 0||F!=10&&F!=16?10:F;y=y.toString(c);F=new ujj;F.append(c==16?"0x":"");c=F.append;z==void 0?z="":(z-=y.length,z=z<=0?"":(0,_.MI8)("0",z));c.call(F,z);F.append(y);GGj(I,C,F.toString(),!!k)}},Ck=function(I,C,y,k){y&&GGj(I,C,"",!!k)},sf=function(I,C,y,k){y&&GGj(I,C,y,!!k)},GGj=function(I,C,y,k){k&&(C=C.charAt(0).toUpperCase()+C.substring(1));
I.JSC$17200_components_.push(C+y)};_.s0(DV,xsR);_.u=DV.prototype;_.u.JSC$17202_setCrop=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setCrop.call(this,I)};
_.u.JSC$17202_setHeight=function(I){I=I==null||I<0?void 0:I;I!=null&&this.setSize();return DV.superClass_.JSC$17202_setHeight.call(this,I)};
_.u.JSC$17202_setImageCrop=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setImageCrop.call(this,I)};
_.u.JSC$17202_setCircleCrop=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setCircleCrop.call(this,I)};
_.u.setSize=function(I){_.sw(I)&&(I=Math.max(I.width,I.height));I=I==null||I<0?void 0:I;I!=null&&(this.JSC$17202_setWidth(),this.JSC$17202_setHeight());return DV.superClass_.setSize.call(this,I)};
_.u.JSC$17202_setSmartCrop=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setSmartCrop.call(this,I)};
_.u.JSC$17202_setSmartCropNoClip=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setSmartCropNoClip.call(this,I)};
_.u.JSC$17202_setSmartCropUseFace=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setSmartCropUseFace.call(this,I)};
_.u.setCenterCrop=function(I){I&&oa(this);return DV.superClass_.setCenterCrop.call(this,I)};
_.u.JSC$17202_setPad=function(I){I&&oa(this);return DV.superClass_.JSC$17202_setPad.call(this,I)};
_.u.JSC$17202_setWidth=function(I){I=I==null||I<0?void 0:I;I!=null&&this.setSize();return DV.superClass_.JSC$17202_setWidth.call(this,I)};
var fA8=function(I){I.clearOptions();var C=I.JSC$17200_parsedOptions_,y=C.valueProto_;MN(!0,_.X8(y,3),_.X8(C.signatureFlagProto_,3))&&_.Mb(y,3,!0);return I},oa=function(I){I.setCenterCrop();
I.JSC$17202_setCircleCrop();I.JSC$17202_setCrop();I.JSC$17202_setImageCrop();I.JSC$17202_setPad();I.JSC$17202_setSmartCrop();I.JSC$17202_setSmartCropNoClip();I.JSC$17202_setSmartCropUseFace()};
DV.prototype.build=function(){var I=this.JSC$17200_parsedOptions_.valueProto_;z1(I,18)||z1(I,45)?I.getSize()||this.setSize(0):(I=this.JSC$17200_parsedOptions_.valueProto_,I.getSize()||I.getWidth()||I.getHeight()||(this.setSize(),this.JSC$17202_setHeight(),this.JSC$17202_setWidth(),oa(this)));return DV.superClass_.build.call(this)};var SUL=/^[^\/]*\/\//,y8=function(I,C){C=C===void 0?!1:C;this.original_=I;this.originalPrefix_="";(I=this.original_.match(SUL))&&I[0]?(this.originalPrefix_=I[0],I=this.originalPrefix_.match(/\w+/)?this.original_:"http://"+this.original_.substring(this.originalPrefix_.length)):I="http://"+this.original_;this.uri_=_.dQ(I,!0);this.isFreeformUrl_=C;this.JSC$17206_valid_=!0;this.obfuscated_=!1},KXR=function(I,C){I.JSC$17208_pathPrefix_=I.JSC$17208_pathPrefix_?I.JSC$17208_pathPrefix_+("/"+C):C},kJ=function(I){if(I.JSC$17208_components_==
void 0){var C=I.uri_.getPath().substring(1);
I.JSC$17208_pathPrefix_=null;if(I.isFreeformUrl_){I.JSC$17208_components_=[];if((C.match(/=/g)||[]).length>1)return I.JSC$17206_valid_=!1,I.JSC$17208_components_;var y=C.indexOf("=");y!=-1?(I.JSC$17208_components_.push(C.substr(0,y)),I.JSC$17208_components_.push(C.substr(y+1))):I.JSC$17208_components_.push(C);return I.JSC$17208_components_}I.JSC$17208_components_=C.split("/");C=I.JSC$17208_components_.length;C>2&&I.JSC$17208_components_[0]=="u"&&(KXR(I,I.JSC$17208_components_[0]+"/"+I.JSC$17208_components_[1]),
I.JSC$17208_components_.shift(),I.JSC$17208_components_.shift(),C-=2);if(C==0||C==4||C>7)return I.JSC$17206_valid_=!1,I.JSC$17208_components_;if(C==2)KXR(I,I.JSC$17208_components_[0]);else if(I.JSC$17208_components_[0]=="image")KXR(I,I.JSC$17208_components_[0]);else if(C==7||C==3)return I.JSC$17206_valid_=!1,I.JSC$17208_components_;if(C<=3){I.obfuscated_=!0;C==3&&(KXR(I,I.JSC$17208_components_[1]),I.JSC$17208_components_.shift(),--C);--C;y=I.JSC$17208_components_[C];var k=y.indexOf("=");k!=-1&&(I.JSC$17208_components_[C]=
y.substr(0,k),I.JSC$17208_components_.push(y.substr(k+1)))}}return I.JSC$17208_components_};
y8.prototype.isValid=function(){kJ(this);return this.JSC$17206_valid_};
y8.prototype.isObfuscated=function(){kJ(this);return this.obfuscated_};
var AjY=function(I){kJ(I);return I.isFreeformUrl_},FF=function(I){kJ(I);
I.JSC$17208_pathPrefix_==void 0&&(I.JSC$17208_pathPrefix_=null);return I.JSC$17208_pathPrefix_},g6B=function(I){switch(kJ(I).length){case 7:return!0;
case 6:return FF(I)==null;case 5:return!1;case 3:return!0;case 2:return FF(I)==null;case 1:return!1;default:return!1}},uo=function(I,C){if(AjY(I))a:{switch(C){case 7:C=0;
break;case 4:if(!g6B(I)){I=null;break a}C=1;break;default:I=null;break a}I=kJ(I)[C]}else if(I.isObfuscated())a:{var y=FF(I)!=null?1:0;switch(C){case 6:C=y;break;case 4:if(!g6B(I)){I=null;break a}C=1+y;break;default:I=null;break a}I=kJ(I)[C]}else a:{y=FF(I)!=null?1:0;switch(C){case 0:C=y;break;case 1:C=1+y;break;case 2:C=2+y;break;case 3:C=3+y;break;case 4:if(!g6B(I)){I=null;break a}C=4+y;break;case 5:C=g6B(I)?1:0;C=4+y+C;break;default:I=null;break a}I=kJ(I)[C]}return I};
y8.prototype.getOptions=function(){this.options_==void 0&&(this.options_=uo(this,4));return this.options_};var Z7B=function(){};
Z7B.prototype.parse=function(I,C){return new qoK(I,C===void 0?!1:C)};
var qoK=function(I,C){y8.call(this,I,C===void 0?!1:C)};
_.R(qoK,y8);_.s0(pt,DV);var msR;pt.prototype.isValid=function(){return this.parsedImageUrl_.isValid()};
pt.prototype.build=function(){if(!this.parsedImageUrl_.isValid())return this.parsedImageUrl_.original_;var I=pt.superClass_.build.call(this),C=[];FF(this.parsedImageUrl_)!=null&&C.push(FF(this.parsedImageUrl_));var y=AjY(this.parsedImageUrl_);if(this.parsedImageUrl_.isObfuscated()){var k=this.parsedImageUrl_;k.obfuscatedData_==void 0&&(k.obfuscatedData_=uo(k,6));C.push(k.obfuscatedData_+(I?"="+I:""))}else if(y){k=C.push;var F=this.parsedImageUrl_;F.freeformUrlPath_===void 0&&(F.freeformUrlPath_=uo(F,
7));k.call(C,F.freeformUrlPath_);I&&C.push(I)}else k=C.push,F=this.parsedImageUrl_,F.obfuscatedGaiaId_==void 0&&(F.obfuscatedGaiaId_=uo(F,0)),k.call(C,F.obfuscatedGaiaId_),k=C.push,F=this.parsedImageUrl_,F.photoId_==void 0&&(F.photoId_=uo(F,1)),k.call(C,F.photoId_),k=C.push,F=this.parsedImageUrl_,F.imageVersion_==void 0&&(F.imageVersion_=uo(F,2)),k.call(C,F.imageVersion_),k=C.push,F=this.parsedImageUrl_,F.signature_==void 0&&(F.signature_=uo(F,3)),k.call(C,F.signature_),I&&C.push(I),I=C.push,k=this.parsedImageUrl_,
k.filename_==void 0&&(k.filename_=uo(k,5)),I.call(C,k.filename_);C=y?C.join("="):C.join("/");C=_.dQ(this.protocolPrefix_+this.JSC$17214_domain_+"/"+C+(this.JSC$17214_query_?"?"+this.JSC$17214_query_:"")).toString();C.startsWith("%3a//")&&(C=C.replace("%3a//","://"));return C};var v6L=_.hu(["viewBox"]),WXR=_.hu(["width"]),diB=_.hu(["height"]),xiY=_.hu(["fill"]),qUj=_.hu(["id"]),miS=_.hu(["x"]),ZbR=_.hu(["y"]);EdP.prototype.getLength=function(){return this.parsedData.length};
EdP.prototype.write=function(I){for(var C=0,y=this.parsedData.length;C<y;C++)I.put(this.parsedData[C],8)};
var a78=function(I,C){var y=new EdP(C);I.dataList.push(y);y=I.errorCorrectLevel;var k=1,F=encodeURI(C).toString().replace(/%[0-9a-fA-F]{2}/g,"a");C=F.length+(F.length!=C?3:0);F=0;for(var z=zm.length;F<=z;F++){var c=0;switch(y){case 1:c=zm[F][0];break;case 0:c=zm[F][1];break;case 3:c=zm[F][2];break;case 2:c=zm[F][3]}if(C<=c)break;else k++}if(k>zm.length)throw Error("uk");I.typeNumber=k;I.dataCache=null};
h0R.prototype.isDark=function(I,C){if(I<0||this.moduleCount<=I||C<0||this.moduleCount<=C)throw Error("mk`"+I+"`"+C);return this.modules[I][C]};
for(var MsL=function(I,C,y){I.moduleCount=I.typeNumber*4+17;I.modules=Array(I.moduleCount);for(var k=0;k<I.moduleCount;k++){I.modules[k]=Array(I.moduleCount);for(var F=0;F<I.moduleCount;F++)I.modules[k][F]=null}BbR(I,0,0);BbR(I,I.moduleCount-7,0);BbR(I,0,I.moduleCount-7);k=E6P[I.typeNumber-1];for(F=0;F<k.length;F++)for(var z=0;z<k.length;z++){var c=k[F],r=k[z];if(I.modules[c][r]==null)for(var w=-2;w<=2;w++)for(var L=-2;L<=2;L++)I.modules[c+w][r+L]=w==-2||w==2||L==-2||L==2||w==0&&L==0?!0:!1}for(k=
8;k<I.moduleCount-8;k++)I.modules[k][6]==null&&(I.modules[k][6]=k%2==0);for(k=8;k<I.moduleCount-8;k++)I.modules[6][k]==null&&(I.modules[6][k]=k%2==0);k=I.errorCorrectLevel<<3|y;for(F=k<<10;Tm(F)-Tm(1335)>=0;)F^=1335<<Tm(F)-Tm(1335);k=(k<<10|F)^21522;for(F=0;F<15;F++)z=!C&&(k>>F&1)==1,F<6?I.modules[F][8]=z:F<8?I.modules[F+1][8]=z:I.modules[I.moduleCount-15+F][8]=z;for(F=0;F<15;F++)z=!C&&(k>>F&1)==1,F<8?I.modules[8][I.moduleCount-F-1]=z:F<9?I.modules[8][15-F-1+1]=z:I.modules[8][15-F-1]=z;I.modules[I.moduleCount-
8][8]=!C;if(I.typeNumber>=7){k=I.typeNumber;for(F=k<<12;Tm(F)-Tm(7973)>=0;)F^=7973<<Tm(F)-Tm(7973);k=k<<12|F;for(F=0;F<18;F++)z=!C&&(k>>F&1)==1,I.modules[Math.floor(F/3)][F%3+I.moduleCount-8-3]=z;for(F=0;F<18;F++)z=!C&&(k>>F&1)==1,I.modules[F%3+I.moduleCount-8-3][Math.floor(F/3)]=z}if(I.dataCache==null){F=I.typeNumber;z=I.dataList;C=I.errorCorrectLevel;k=hJ8(F,C);if(k==void 0)throw Error("tk`"+F+"`"+C);c=k.length/3;C=[];for(r=0;r<c;r++){w=k[r*3];L=k[r*3+1];for(var D=k[r*3+2],p=0;p<w;p++)C.push(new UsL(L,
D))}k=new H7Y;for(c=0;c<z.length;c++)r=z[c],k.put(r.mode,4),k.put(r.getLength(),UiH(r.mode,F)),r.write(k);for(c=F=0;c<C.length;c++)F+=C[c].dataCount;if(k.length>F*8)throw Error("nk`"+k.length+"`"+F*8);for(k.length+4<=F*8&&k.put(0,4);k.length%8!=0;)HbL(k,!1);for(;!(k.length>=F*8);){k.put(236,8);if(k.length>=F*8)break;k.put(17,8)}z=F=L=0;c=Array(C.length);r=Array(C.length);for(w=0;w<C.length;w++){p=C[w].dataCount;var Q=C[w].totalCount-p;F=Math.max(F,p);z=Math.max(z,Q);c[w]=Array(p);for(D=0;D<c[w].length;D++)c[w][D]=
255&k.buffer[D+L];L+=p;D=Q;p=new Qi([1],0);for(Q=0;Q<D;Q++)p=p.multiply(new Qi([1,tG8(Q)],0));D=p;p=(new Qi(c[w],D.getLength()-1)).mod(D);r[w]=Array(D.getLength()-1);for(D=0;D<r[w].length;D++)Q=D+p.getLength()-r[w].length,r[w][D]=Q>=0?p.get(Q):0}for(D=k=0;D<C.length;D++)k+=C[D].totalCount;k=Array(k);for(D=L=0;D<F;D++)for(w=0;w<C.length;w++)D<c[w].length&&(k[L++]=c[w][D]);for(D=0;D<z;D++)for(w=0;w<C.length;w++)D<r[w].length&&(k[L++]=r[w][D]);I.dataCache=k}C=I.dataCache;k=-1;F=I.moduleCount-1;z=7;c=
0;for(r=I.moduleCount-1;r>0;r-=2)for(r==6&&r--;;){for(w=0;w<2;w++)I.modules[F][r-w]==null&&(L=!1,c<C.length&&(L=(C[c]>>>z&1)==1),JjK(y,F,r-w)&&(L=!L),I.modules[F][r-w]=L,z--,z==-1&&(c++,z=7));F+=k;if(F<0||I.moduleCount<=F){F-=k;k=-k;break}}},BbR=function(I,C,y){for(var k=-1;k<=7;k++)if(!(C+k<=-1||I.moduleCount<=C+k))for(var F=-1;F<=7;F++)y+F<=-1||I.moduleCount<=y+F||(I.modules[C+k][y+F]=0<=k&&k<=6&&(F==0||F==6)||0<=F&&F<=6&&(k==0||k==6)||2<=k&&k<=4&&2<=F&&F<=4?!0:!1)},ICR=function(I){for(var C=0,
y=0,k=0;k<8;k++){MsL(I,!0,k);
var F=I;for(var z=F.moduleCount,c=0,r=0;r<z;r++)for(var w=0;w<z;w++){for(var L=0,D=F.isDark(r,w),p=-1;p<=1;p++)if(!(r+p<0||z<=r+p))for(var Q=-1;Q<=1;Q++)w+Q<0||z<=w+Q||(p!=0||Q!=0)&&D==F.isDark(r+p,w+Q)&&L++;L>5&&(c+=3+L-5)}for(r=0;r<z-1;r++)for(w=0;w<z-1;w++)if(L=0,F.isDark(r,w)&&L++,F.isDark(r+1,w)&&L++,F.isDark(r,w+1)&&L++,F.isDark(r+1,w+1)&&L++,L==0||L==4)c+=3;for(r=0;r<z;r++)for(w=0;w<z-6;w++)F.isDark(r,w)&&!F.isDark(r,w+1)&&F.isDark(r,w+2)&&F.isDark(r,w+3)&&F.isDark(r,w+4)&&!F.isDark(r,w+5)&&
F.isDark(r,w+6)&&(c+=40);for(w=0;w<z;w++)for(r=0;r<z-6;r++)F.isDark(r,w)&&!F.isDark(r+1,w)&&F.isDark(r+2,w)&&F.isDark(r+3,w)&&F.isDark(r+4,w)&&!F.isDark(r+5,w)&&F.isDark(r+6,w)&&(c+=40);for(w=L=0;w<z;w++)for(r=0;r<z;r++)F.isDark(r,w)&&L++;F=c+=Math.abs(100*L/z/z-50)/5*10;if(k==0||C>F)C=F,y=k}return y},E6P=[[],
[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]],Tm=function(I){for(var C=0;I!=0;)C++,I>>>=1;return C},JjK=function(I,C,y){switch(I){case 0:return(C+y)%2==0;
case 1:return C%2==0;case 2:return y%3==0;case 3:return(C+y)%3==0;case 4:return(Math.floor(C/2)+Math.floor(y/3))%2==0;case 5:return C*y%2+C*y%3==0;case 6:return(C*y%2+C*y%3)%2==0;case 7:return(C*y%3+(C+y)%2)%2==0;default:throw Error("ok`"+I);}},UiH=function(I,C){if(1<=C&&C<10)switch(I){case 1:return 10;
case 2:return 9;case 4:return 8;case 8:return 8;default:throw Error("pk`"+I);}else if(C<27)switch(I){case 1:return 12;case 2:return 11;case 4:return 16;case 8:return 10;default:throw Error("pk`"+I);}else if(C<41)switch(I){case 1:return 14;case 2:return 13;case 4:return 16;case 8:return 12;default:throw Error("pk`"+I);}else throw Error("qk`"+C);},c6=function(I){if(I<1)throw Error("rk`"+I);
return ObS[I]},tG8=function(I){for(;I<0;)I+=255;
for(;I>=256;)I-=255;return e5[I]},e5=Array(256),ObS=Array(256),aAH=0;aAH<8;aAH++)e5[aAH]=1<<aAH;
for(var rD=8;rD<256;rD++)e5[rD]=e5[rD-4]^e5[rD-5]^e5[rD-6]^e5[rD-8];for(var MGL=0;MGL<255;MGL++)ObS[e5[MGL]]=MGL;Qi.prototype.get=function(I){return this.num[I]};
Qi.prototype.getLength=function(){return this.num.length};
Qi.prototype.multiply=function(I){for(var C=Array(this.getLength()+I.getLength()-1),y=0;y<this.getLength();y++)for(var k=0;k<I.getLength();k++)C[y+k]^=tG8(c6(this.get(y))+c6(I.get(k)));return new Qi(C,0)};
Qi.prototype.mod=function(I){if(this.getLength()-I.getLength()<0)return this;for(var C=c6(this.get(0))-c6(I.get(0)),y=Array(this.getLength()),k=0;k<this.getLength();k++)y[k]=this.get(k);for(k=0;k<I.getLength();k++)y[k]^=tG8(c6(I.get(k))+C);return(new Qi(y,0)).mod(I)};
var I9K=[[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]],hJ8=function(I,C){switch(C){case 1:return I9K[(I-1)*4];case 0:return I9K[(I-1)*4+1];case 3:return I9K[(I-1)*4+2];case 2:return I9K[(I-1)*4+3]}};
H7Y.prototype.get=function(I){return(this.buffer[Math.floor(I/8)]>>>7-I%8&1)==1};
H7Y.prototype.put=function(I,C){for(var y=0;y<C;y++)HbL(this,(I>>>C-y-1&1)==1)};
var HbL=function(I,C){var y=Math.floor(I.length/8);I.buffer.length<=y&&I.buffer.push(0);C&&(I.buffer[y]|=128>>>I.length%8);I.length++},zm=[[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]],O7S=function(){var I=function(C,y){this.JSC$17234__el=C;this.JSC$17234__htOption=y};
I.prototype.draw=function(C){function y(D,p){D=document.createElementNS("http://www.w3.org/2000/svg",D);for(var Q in p)p.hasOwnProperty(Q)&&(Q==="href"?_.FwB(D,p[Q]):_.Ka([_.Uj(v6L),_.Uj(WXR),_.Uj(diB),_.Uj(xiY),_.Uj(qUj),_.Uj(miS),_.Uj(ZbR)],D,Q,p[Q]));return D}
var k=this.JSC$17234__htOption,F=this.JSC$17234__el,z=C.moduleCount;this.clear();var c=y("svg",{viewBox:"0 0 "+String(z)+" "+String(z),width:"100%",height:"100%",fill:k.colorLight,"xmlns:xlink":"http://www.w3.org/1999/xlink"});F.appendChild(c);c.appendChild(y("rect",{fill:k.colorLight,width:"100%",height:"100%"}));c.appendChild(y("rect",{fill:k.colorDark,width:"1",height:"1",id:"template"}));for(var r=0;r<z;r++)for(var w=0;w<z;w++)if(C.isDark(r,w)){var L=y("use",{x:String(r),y:String(w),href:"#template"});
c.appendChild(L)}};
I.prototype.clear=function(){for(;this.JSC$17234__el.hasChildNodes();)this.JSC$17234__el.removeChild(this.JSC$17234__el.lastChild)};
return I}(),JnL=document.documentElement.tagName.toLowerCase()==="svg"?O7S:typeof CanvasRenderingContext2D!="undefined"?function(){var I=function(C,y){this._bIsPainted=!1;
tsY();this.JSC$17234__htOption=y;this._elCanvas=document.createElement("canvas");this._elCanvas.width=y.width;this._elCanvas.height=y.height;C.appendChild(this._elCanvas);this.JSC$17234__el=C;this._oContext=this._elCanvas.getContext("2d");this._bIsPainted=!1;this._elImage=document.createElement("img");this._elImage.alt="Scan me!";this._elImage.style.display="none";this.JSC$17234__el.appendChild(this._elImage);this._bSupportDataURI=null};
I.prototype._onMakeImage=function(){var C=this._elCanvas.toDataURL("image/png");this._elImage.src=C;this._elImage.style.display="block";this._elCanvas.style.display="none"};
I.prototype._safeSetDataURI=function(C,y){var k=this;k._fFail=y;k._fSuccess=C;k._bSupportDataURI===null?(C=_.c2("IMG"),y=function(){k._bSupportDataURI=!1;k._fFail&&k._fFail.call(k)},C.onabort=y,C.onerror=y,C.onload=function(){k._bSupportDataURI=!0;
k._fSuccess&&k._fSuccess.call(k)},C.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=="):k._bSupportDataURI===!0&&k._fSuccess?k._fSuccess.call(k):k._bSupportDataURI===!1&&k._fFail&&k._fFail.call(k)};
I.prototype.draw=function(C){var y=this._oContext,k=this.JSC$17234__htOption,F=C.moduleCount,z=k.width/F,c=k.height/F,r=Math.round(z),w=Math.round(c);this._elImage.style.display="none";this.clear();for(var L=0;L<F;L++)for(var D=0;D<F;D++){var p=C.isDark(L,D),Q=D*z,X=L*c;y.strokeStyle=p?k.colorDark:k.colorLight;y.lineWidth=1;y.fillStyle=p?k.colorDark:k.colorLight;y.fillRect(Q,X,z,c);y.strokeRect(Math.floor(Q)+.5,Math.floor(X)+.5,r,w);y.strokeRect(Math.ceil(Q)-.5,Math.ceil(X)-.5,r,w)}this._bIsPainted=
!0};
I.prototype.makeImage=function(){this._bIsPainted&&this._safeSetDataURI(this._onMakeImage,function(){})};
I.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height);this._bIsPainted=!1};
I.prototype.round=function(C){return C?Math.floor(C*1E3)/1E3:C};
return I}():function(){var I=function(C,y){this.JSC$17234__el=C;
this.JSC$17234__htOption=y};
I.prototype.draw=function(C){for(var y=this.JSC$17234__htOption,k=this.JSC$17234__el,F=C.moduleCount,z=Math.floor(y.width/F),c=Math.floor(y.height/F),r=['<table style="border:0;border-collapse:collapse;">'],w=0;w<F;w++){r.push("<tr>");for(var L=0;L<F;L++)r.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+z+"px;height:"+c+"px;background-color:"+(C.isDark(w,L)?y.colorDark:y.colorLight)+';"></td>');r.push("</tr>")}r.push("</table>");C=r.join("");C=_.Z5w(_.Eu5,C);_.SO(k,C);
C=k.childNodes[0];F=(y.width-C.offsetWidth)/2;z=(y.height-C.offsetHeight)/2;F>0&&z>0&&(C.style.margin=z+"px "+F+"px")};
I.prototype.clear=function(){this.JSC$17234__el.textContent=""};
return I}();
CGM.prototype.makeImage=function(){typeof this._oDrawing.makeImage=="function"&&(!this.JSC$17237__android||this.JSC$17237__android>=3)&&this._oDrawing.makeImage()};
CGM.prototype.clear=function(){this._oDrawing.clear()};
_.sF.QRCode=CGM;var CpY={cellSize:16,cellStyle:2,relativeCircleSize:.9375,color:"white",backgroundColor:"black",autoClear:!0,logoPadding:1,padding:0,borderRadius:0};var io=function(){};
io.prototype.stringify=function(I){return _.sF.JSON.stringify(I,void 0)};
io.prototype.parse=function(I){return _.sF.JSON.parse(I,void 0)};var srK=function(){_.r1.call(this,"z")};
_.s0(srK,_.r1);var oYY=function(){_.r1.call(this,"y")};
_.s0(oYY,_.r1);var yeP=null,kvY=function(){return yeP=yeP||new _.LW},FIS=function(I){_.r1.call(this,"serverreachability",I)};
_.s0(FIS,_.r1);var wD=function(I){var C=kvY();C.dispatchEvent(new FIS(C,I))},uZM=function(I){_.r1.call(this,"statevent",I)};
_.s0(uZM,_.r1);var nk=function(I){var C=kvY();C.dispatchEvent(new uZM(C,I))},zxL=function(I,C,y,k){_.r1.call(this,"timingevent",I);
this.size=C;this.rtt=y;this.retries=k};
_.s0(zxL,_.r1);var TrH=function(I,C,y){var k=kvY();k.dispatchEvent(new zxL(k,I,C,y))},P6=function(I,C){if(typeof I!=="function")throw Error("vk");
return _.sF.setTimeout(function(){I()},C)};var Lk=function(){this.redactEnabled_=!0};
Lk.prototype.disableRedact=function(){this.redactEnabled_=!1};
var ceM=function(I,C,y,k,F,z){I.info(function(){if(I.redactEnabled_)if(z){var c="";for(var r=z.split("&"),w=0;w<r.length;w++){var L=r[w].split("=");if(L.length>1){var D=L[0];L=L[1];var p=D.split("_");c=p.length>=2&&p[1]=="type"?c+(D+"="+L+"&"):c+(D+"=redacted&")}}}else c=null;else c=z;return"XMLHTTP REQ ("+k+") [attempt "+F+"]: "+C+"\n"+y+"\n"+c})},exj=function(I,C,y,k,F,z,c){I.info(function(){return"XMLHTTP RESP ("+k+") [ attempt "+F+"]: "+C+"\n"+y+"\n"+z+" "+c})},D2=function(I,C,y,k){I.info(function(){return"XMLHTTP TEXT ("+
C+"): "+reL(I,y)+(k?" "+k:"")})},iyK=function(I,C){I.info(function(){return"TIMEOUT: "+C})};
Lk.prototype.debug=function(){};
Lk.prototype.info=function(){};
Lk.prototype.warning=function(){};
var reL=function(I,C){if(!I.redactEnabled_)return C;if(!C)return null;try{var y=JSON.parse(C);if(y)for(var k=0;k<y.length;k++)if(Array.isArray(y[k])){var F=y[k];if(!(F.length<2)){var z=F[1];if(Array.isArray(z)&&!(z.length<1)){var c=z[0];if(c!="noop"&&c!="stop"&&c!="close")for(var r=1;r<z.length;r++)z[r]=""}}}return(0,_.lR)(y)}catch(w){return I.debug("Exception parsing expected JS array - probably was not JS"),C}};var pk=function(I,C,y,k,F){this.JSC$17259_channel_=I;this.JSC$17259_channelDebug_=C;this.sid_=y;this.JSC$17259_rid_=k;this.JSC$17259_retryId_=F||1;this.JSC$17259_eventHandler_=new _.Cq(this);this.timeout_=45E3;this.JSC$17259_extraHeaders_=null;this.JSC$17259_successful_=!1;this.JSC$17259_postData_=this.JSC$17259_requestUri_=this.JSC$17259_baseUri_=this.JSC$17259_type_=this.JSC$17259_requestStartTime_=this.JSC$17259_watchDogTimeoutTime_=this.JSC$17259_watchDogTimerId_=null;this.JSC$17259_pendingMessages_=
[];this.JSC$17259_xmlHttp_=null;this.JSC$17259_xmlHttpChunkStart_=0;this.JSC$17259_lastError_=this.JSC$17259_verb_=null;this.JSC$17259_lastStatusCode_=-1;this.JSC$17259_cancelled_=!1;this.JSC$17259_readyStateChangeThrottleMs_=0;this.JSC$17259_readyStateChangeThrottle_=null;this.firstByteReceived_=this.initialResponseDecoded_=this.decodeInitialResponse_=this.decodeChunks_=!1;this.fetchResponseState_=new wKY},wKY=function(){this.textDecoder=null;
this.responseBuffer="";this.responseArrivedForFetch=!1},nYL=function(I,C){switch(I){case 0:return"Non-200 return code ("+C+")";
case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},PpS={},LIL={};
pk.prototype.setTimeout=function(I){this.timeout_=I};
var pKy=function(I,C,y){I.JSC$17259_type_=1;I.JSC$17259_baseUri_=_.ya(C.clone());I.JSC$17259_postData_=y;I.decodeChunks_=!0;DCR(I,null)},DCR=function(I,C){I.JSC$17259_requestStartTime_=Date.now();
QrR(I);I.JSC$17259_requestUri_=I.JSC$17259_baseUri_.clone();CR(I.JSC$17259_requestUri_,"t",I.JSC$17259_retryId_);I.JSC$17259_xmlHttpChunkStart_=0;var y=I.JSC$17259_channel_.JSC$17278_supportsCrossDomainXhrs_;I.fetchResponseState_=new wKY;I.JSC$17259_xmlHttp_=NrR(I.JSC$17259_channel_,y?C:null,!I.JSC$17259_postData_);I.JSC$17259_readyStateChangeThrottleMs_>0&&(I.JSC$17259_readyStateChangeThrottle_=new _.OG((0,_.DD)(I.JSC$17263_xmlHttpHandler_,I,I.JSC$17259_xmlHttp_),I.JSC$17259_readyStateChangeThrottleMs_));
I.JSC$17259_eventHandler_.listen(I.JSC$17259_xmlHttp_,"readystatechange",I.JSC$17263_readyStateChangeHandler_);C=I.JSC$17259_extraHeaders_?_.Le.clone(I.JSC$17259_extraHeaders_):{};I.JSC$17259_postData_?(I.JSC$17259_verb_||(I.JSC$17259_verb_="POST"),C["Content-Type"]="application/x-www-form-urlencoded",I.JSC$17259_xmlHttp_.send(I.JSC$17259_requestUri_,I.JSC$17259_verb_,I.JSC$17259_postData_,C)):(I.JSC$17259_verb_="GET",I.JSC$17259_xmlHttp_.send(I.JSC$17259_requestUri_,I.JSC$17259_verb_,null,C));wD(1);
ceM(I.JSC$17259_channelDebug_,I.JSC$17259_verb_,I.JSC$17259_requestUri_,I.JSC$17259_rid_,I.JSC$17259_retryId_,I.JSC$17259_postData_)};
pk.prototype.JSC$17263_readyStateChangeHandler_=function(I){I=I.target;var C=this.JSC$17259_readyStateChangeThrottle_;C&&_.Rz(I)==3?(this.JSC$17259_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$17263_xmlHttpHandler_(I)};
pk.prototype.JSC$17263_xmlHttpHandler_=function(I){try{I==this.JSC$17259_xmlHttp_?VEK(this):this.JSC$17259_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(C){this.JSC$17259_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_"),jrK(this)}finally{}};
var VEK=function(I){var C=_.Rz(I.JSC$17259_xmlHttp_),y=I.JSC$17259_xmlHttp_.JSC$7668_lastErrorCode_,k=I.JSC$17259_xmlHttp_.getStatus();if(!(C<3||C==3&&!jrK(I))){I.JSC$17259_cancelled_||C!=4||y==7||(y==8||k<=0?wD(3):wD(2));l9K(I);var F=I.JSC$17259_xmlHttp_.getStatus();I.JSC$17259_lastStatusCode_=F;y=XKK(I);jrK(I)||I.JSC$17259_channelDebug_.debug(function(){return"No response text for uri "+I.JSC$17259_requestUri_+" status "+F});
I.JSC$17259_successful_=F==200;exj(I.JSC$17259_channelDebug_,I.JSC$17259_verb_,I.JSC$17259_requestUri_,I.JSC$17259_rid_,I.JSC$17259_retryId_,C,F);if(I.JSC$17259_successful_){if(I.decodeInitialResponse_&&!I.initialResponseDecoded_)if(k=$CP(I))D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,k,"Initial handshake response via X-HTTP-Initial-Response"),I.initialResponseDecoded_=!0,RxY(I,k);else{I.JSC$17259_successful_=!1;I.JSC$17259_lastError_=3;nk(12);I.JSC$17259_channelDebug_.warning("XMLHTTP Missing X_HTTP_INITIAL_RESPONSE ("+
I.JSC$17259_rid_+")");Q8(I);NZ(I);return}I.decodeChunks_?byR(I,C,y):(D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,y,null),RxY(I,y));C==4&&Q8(I);I.JSC$17259_successful_&&!I.JSC$17259_cancelled_&&(C==4?YIS(I.JSC$17259_channel_,I):(I.JSC$17259_successful_=!1,QrR(I)))}else $H8(I.JSC$17259_xmlHttp_),F==400&&y.indexOf("Unknown SID")>0?(I.JSC$17259_lastError_=3,nk(12),I.JSC$17259_channelDebug_.warning("XMLHTTP Unknown SID ("+I.JSC$17259_rid_+")")):(I.JSC$17259_lastError_=0,nk(13),I.JSC$17259_channelDebug_.warning("XMLHTTP Bad status "+
F+" ("+I.JSC$17259_rid_+")")),Q8(I),NZ(I)}},$CP=function(I){return I.JSC$17259_xmlHttp_&&(I=TY(I.JSC$17259_xmlHttp_,"X-HTTP-Initial-Response"))&&!_.eI(I)?I:null},XKK=function(I){if(!GvB(I))return I.JSC$17259_xmlHttp_.getResponseText();
var C=I.JSC$17259_xmlHttp_.getResponse();if(C==="")return"";var y="",k=C.length,F=_.Rz(I.JSC$17259_xmlHttp_)==4;if(!I.fetchResponseState_.textDecoder){if(typeof TextDecoder==="undefined")return Q8(I),NZ(I),"";I.fetchResponseState_.textDecoder=new _.sF.TextDecoder}for(var z=0;z<k;z++)I.fetchResponseState_.responseArrivedForFetch=!0,y+=I.fetchResponseState_.textDecoder.decode(C[z],{stream:!(F&&z==k-1)});C.length=0;I.fetchResponseState_.responseBuffer+=y;I.JSC$17259_xmlHttpChunkStart_=0;return I.fetchResponseState_.responseBuffer},
jrK=function(I){return I.JSC$17259_xmlHttp_?I.fetchResponseState_.responseArrivedForFetch?!0:!(!I.JSC$17259_xmlHttp_.getResponseText()&&!I.JSC$17259_xmlHttp_.getResponse()):!1},GvB=function(I){return I.JSC$17259_xmlHttp_?I.JSC$17259_verb_=="GET"&&I.JSC$17259_type_!=2&&I.JSC$17259_channel_.usesFetchStreams_:!1},byR=function(I,C,y){for(var k=!0,F;!I.JSC$17259_cancelled_&&I.JSC$17259_xmlHttpChunkStart_<y.length;)if(F=f9P(I,y),F==LIL){C==4&&(I.JSC$17259_lastError_=4,nk(14),k=!1);
D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,null,"[Incomplete Response]");break}else if(F==PpS){I.JSC$17259_lastError_=4;nk(15);D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,y,"[Invalid Chunk]");k=!1;break}else D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,F,null),RxY(I,F);GvB(I)&&I.JSC$17259_xmlHttpChunkStart_!=0&&(I.fetchResponseState_.responseBuffer=I.fetchResponseState_.responseBuffer.slice(I.JSC$17259_xmlHttpChunkStart_),I.JSC$17259_xmlHttpChunkStart_=0);C!=4||y.length!=0||I.fetchResponseState_.responseArrivedForFetch||
(I.JSC$17259_lastError_=1,nk(16),k=!1);I.JSC$17259_successful_=I.JSC$17259_successful_&&k;k?y.length>0&&!I.firstByteReceived_&&(I.firstByteReceived_=!0,C=I.JSC$17259_channel_,C.JSC$17278_backChannelRequest_==I&&C.detectBufferingProxy_&&!C.bpDetectionDone_&&(C.JSC$17278_channelDebug_.info("Great, no buffering proxy detected. Bytes received: "+y.length),SIR(C),C.bpDetectionDone_=!0,nk(11))):(D2(I.JSC$17259_channelDebug_,I.JSC$17259_rid_,y,"[Invalid Chunked Response]"),Q8(I),NZ(I))},f9P=function(I,C){var y=
I.JSC$17259_xmlHttpChunkStart_,k=C.indexOf("\n",y);
if(k==-1)return LIL;y=Number(C.substring(y,k));if(isNaN(y))return PpS;k+=1;if(k+y>C.length)return LIL;C=C.slice(k,k+y);I.JSC$17259_xmlHttpChunkStart_=k+y;return C};
pk.prototype.cancel=function(){this.JSC$17259_cancelled_=!0;Q8(this)};
var QrR=function(I){I.JSC$17259_watchDogTimeoutTime_=Date.now()+I.timeout_;KIS(I,I.timeout_)},KIS=function(I,C){if(I.JSC$17259_watchDogTimerId_!=null)throw Error("wk");
I.JSC$17259_watchDogTimerId_=P6((0,_.DD)(I.JSC$17263_onWatchDogTimeout_,I),C)},l9K=function(I){I.JSC$17259_watchDogTimerId_&&(_.sF.clearTimeout(I.JSC$17259_watchDogTimerId_),I.JSC$17259_watchDogTimerId_=null)};
pk.prototype.JSC$17263_onWatchDogTimeout_=function(){this.JSC$17259_watchDogTimerId_=null;var I=Date.now();I-this.JSC$17259_watchDogTimeoutTime_>=0?(iyK(this.JSC$17259_channelDebug_,this.JSC$17259_requestUri_),this.JSC$17259_type_!=2&&(wD(3),nk(17)),Q8(this),this.JSC$17259_lastError_=2,NZ(this)):(this.JSC$17259_channelDebug_.warning("WatchDog timer called too early"),KIS(this,this.JSC$17259_watchDogTimeoutTime_-I))};
var NZ=function(I){I.JSC$17259_channel_.state_==0||I.JSC$17259_cancelled_||YIS(I.JSC$17259_channel_,I)},Q8=function(I){l9K(I);
_.Bi(I.JSC$17259_readyStateChangeThrottle_);I.JSC$17259_readyStateChangeThrottle_=null;I.JSC$17259_eventHandler_.removeAll();if(I.JSC$17259_xmlHttp_){var C=I.JSC$17259_xmlHttp_;I.JSC$17259_xmlHttp_=null;C.abort();C.dispose()}};
pk.prototype.getLastError=function(){return this.JSC$17259_lastError_};
var RxY=function(I,C){try{var y=I.JSC$17259_channel_;if(y.state_!=0&&(y.JSC$17278_backChannelRequest_==I||Ae8(y.forwardChannelRequestPool_,I)))if(!I.initialResponseDecoded_&&Ae8(y.forwardChannelRequestPool_,I)&&y.state_==3){try{var k=y.wireCodec_.JSC$17273_parser_.parse(C)}catch(r){k=null}if(Array.isArray(k)&&k.length==3){C=k;if(C[0]==0)a:if(y.JSC$17278_channelDebug_.debug("Server claims our backchannel is missing."),y.JSC$17278_backChannelTimerId_)y.JSC$17278_channelDebug_.debug("But we are currently starting the request.");
else{if(y.JSC$17278_backChannelRequest_)if(y.JSC$17278_backChannelRequest_.JSC$17259_requestStartTime_+3E3<I.JSC$17259_requestStartTime_)gYR(y),vYY(y);else break a;else y.JSC$17278_channelDebug_.warning("We do not have a BackChannel established");WIY(y);nk(18)}else{y.JSC$17278_lastPostResponseArrayId_=C[1];var F=y.JSC$17278_lastPostResponseArrayId_-y.JSC$17278_lastArrayId_;if(0<F){var z=C[2];y.JSC$17278_channelDebug_.debug(z+" bytes (in "+F+" arrays) are outstanding on the BackChannel");z<37500&&
y.enableStreaming_&&y.JSC$17278_backChannelRetryCount_==0&&!y.JSC$17278_deadBackChannelTimerId_&&(y.JSC$17278_deadBackChannelTimerId_=P6((0,_.DD)(y.JSC$17280_onBackChannelDead_,y),6E3))}}if(dCL(y.forwardChannelRequestPool_)<=1&&y.forwardChannelFlushedCallback_){try{y.forwardChannelFlushedCallback_()}catch(r){}y.forwardChannelFlushedCallback_=void 0}}else y.JSC$17278_channelDebug_.debug("Bad POST response data returned"),V8(y,11)}else if((I.initialResponseDecoded_||y.JSC$17278_backChannelRequest_==
I)&&gYR(y),!_.eI(C)){var c=y.wireCodec_.JSC$17273_parser_.parse(C);y.onInput_(c,I)}wD(4)}catch(r){}};var xCj=function(I,C){this.JSC$17266_mapId=I;this.map=C;this.context=null};var qIH=function(I){this.maxPoolSizeConfigured_=I||10;_.sF.PerformanceNavigationTiming?(I=_.sF.performance.getEntriesByType("navigation"),I=I.length>0&&(I[0].nextHopProtocol=="hq"||I[0].nextHopProtocol=="h2")):I=!!(_.sF.chrome&&_.sF.chrome.loadTimes&&_.sF.chrome.loadTimes()&&_.sF.chrome.loadTimes().wasFetchedViaSpdy);this.JSC$17269_maxSize_=I?this.maxPoolSizeConfigured_:1;this.requestPool_=null;this.JSC$17269_maxSize_>1&&(this.requestPool_=new Set);this.JSC$17269_request_=null;this.JSC$17269_pendingMessages_=
[]},mCK=function(I){return I.JSC$17269_request_?!0:I.requestPool_?I.requestPool_.size>=I.JSC$17269_maxSize_:!1},dCL=function(I){return I.JSC$17269_request_?1:I.requestPool_?I.requestPool_.size:0},Ae8=function(I,C){return I.JSC$17269_request_?I.JSC$17269_request_==C:I.requestPool_?I.requestPool_.has(C):!1},ZyL=function(I,C){I.requestPool_?I.requestPool_.add(C):I.JSC$17269_request_=C},BrR=function(I,C){I.JSC$17269_request_&&I.JSC$17269_request_==C?I.JSC$17269_request_=null:I.requestPool_&&I.requestPool_.has(C)&&
I.requestPool_.delete(C)};
qIH.prototype.cancel=function(){this.JSC$17269_pendingMessages_=EYS(this);if(this.JSC$17269_request_)this.JSC$17269_request_.cancel(),this.JSC$17269_request_=null;else if(this.requestPool_&&this.requestPool_.size!==0){for(var I=_.T(this.requestPool_.values()),C=I.next();!C.done;C=I.next())C.value.cancel();this.requestPool_.clear()}};
var EYS=function(I){if(I.JSC$17269_request_!=null)return I.JSC$17269_pendingMessages_.concat(I.JSC$17269_request_.JSC$17259_pendingMessages_);if(I.requestPool_!=null&&I.requestPool_.size!==0){var C=I.JSC$17269_pendingMessages_;I=_.T(I.requestPool_.values());for(var y=I.next();!y.done;y=I.next())C=C.concat(y.value.JSC$17259_pendingMessages_);return C}return _.tX(I.JSC$17269_pendingMessages_)},hxH=function(I,C){I.JSC$17269_pendingMessages_=I.JSC$17269_pendingMessages_.concat(C)};var UC8=function(I,C){var y=new Lk;y.debug("TestLoadImage: loading "+I);if(_.sF.Image){var k=new Image;k.onload=_.D0(j5,y,"TestLoadImage: loaded",!0,C,k);k.onerror=_.D0(j5,y,"TestLoadImage: error",!1,C,k);k.onabort=_.D0(j5,y,"TestLoadImage: abort",!1,C,k);k.ontimeout=_.D0(j5,y,"TestLoadImage: timeout",!1,C,k);_.sF.setTimeout(function(){if(k.ontimeout)k.ontimeout()},1E4);
k.src=I}else C(!1)},HyB=function(I,C){var y=new Lk,k=new AbortController,F=setTimeout(function(){k.abort();
j5(y,"TestPingServer: timeout",!1,C)},1E4);
fetch(I,{signal:k.signal}).then(function(z){clearTimeout(F);z.ok?j5(y,"TestPingServer: ok",!0,C):j5(y,"TestPingServer: server error",!1,C)}).catch(function(){clearTimeout(F);
j5(y,"TestPingServer: error",!1,C)})},j5=function(I,C,y,k,F){try{I.debug(C),F&&(F.onload=null,F.onerror=null,F.onabort=null,F.ontimeout=null),k(y)}catch(z){}};var tEj=function(){this.JSC$17273_parser_=new io},JeS=function(I,C,y){var k=y||"";
try{_.Jkw(I,function(F,z){var c=F;_.sw(F)&&(c=(0,_.lR)(F));C.push(k+z+"="+encodeURIComponent(c))})}catch(F){throw C.push(k+"type="+encodeURIComponent("_badmap")),F;
}};var lo=function(I,C,y){return y&&y.internalChannelParams?y.internalChannelParams[I]||C:C},XF=function(I){this.serverVersion_=0;
this.JSC$17278_outgoingMaps_=[];this.JSC$17278_channelDebug_=new Lk;this.JSC$17278_hostPrefix_=this.JSC$17278_backChannelUri_=this.JSC$17278_forwardChannelUri_=this.JSC$17278_path_=this.JSC$17278_backChannelRequest_=this.httpSessionId_=this.httpSessionIdParam_=this.JSC$17278_extraParams_=this.httpHeadersOverwriteParam_=this.initHeaders_=this.JSC$17278_extraHeaders_=null;this.JSC$17278_nextMapId_=this.JSC$17278_nextRid_=0;this.JSC$17278_failFast_=lo("failFast",!1,I);this.enableStreaming_=this.JSC$17278_deadBackChannelTimerId_=
this.JSC$17278_backChannelTimerId_=this.JSC$17278_forwardChannelTimerId_=this.handler_=null;this.allowStreamingMode_=!0;this.errorResponseStatusCode_=this.JSC$17278_lastPostResponseArrayId_=this.JSC$17278_lastArrayId_=-1;this.JSC$17278_backChannelAttemptId_=this.JSC$17278_backChannelRetryCount_=this.JSC$17278_forwardChannelRetryCount_=0;this.JSC$17278_baseRetryDelayMs_=lo("baseRetryDelayMs",5E3,I);this.JSC$17278_retryDelaySeedMs_=lo("retryDelaySeedMs",1E4,I);this.JSC$17278_forwardChannelMaxRetries_=
lo("forwardChannelMaxRetries",2,I);this.JSC$17278_forwardChannelRequestTimeoutMs_=lo("forwardChannelRequestTimeoutMs",2E4,I);this.JSC$17278_xmlHttpFactory_=I&&I.xmlHttpFactory||void 0;this.networkTestUrl_=I&&I.networkTestUrl||void 0;this.usesFetchStreams_=I&&I.useFetchStreams||!1;this.backChannelRequestTimeoutMs_=void 0;this.JSC$17278_supportsCrossDomainXhrs_=I&&I.supportsCrossDomainXhr||!1;this.sid_="";this.forwardChannelRequestPool_=new qIH(I&&I.concurrentRequestLimit);this.wireCodec_=new tEj;this.fastHandshake_=
I&&I.fastHandshake||!1;this.encodeInitMessageHeaders_=I&&I.encodeInitMessageHeaders||!1;this.fastHandshake_&&this.encodeInitMessageHeaders_&&(this.JSC$17278_channelDebug_.warning("Ignore encodeInitMessageHeaders because fastHandshake is set."),this.encodeInitMessageHeaders_=!1);this.blockingHandshake_=I&&I.blockingHandshake||!1;I&&I.disableRedact&&this.JSC$17278_channelDebug_.disableRedact();I&&I.forceLongPolling&&(this.allowStreamingMode_=!1);this.detectBufferingProxy_=!this.fastHandshake_&&this.allowStreamingMode_&&
I&&I.detectBufferingProxy||!1;this.longPollingTimeout_=void 0;I&&I.longPollingTimeout&&I.longPollingTimeout>0&&(this.longPollingTimeout_=I.longPollingTimeout);this.forwardChannelFlushedCallback_=void 0;this.handshakeRttMs_=0;this.bpDetectionDone_=!1;this.nonAckedMapsAtChannelClose_=this.bpDetectionTimerId_=null};
XF.prototype.JSC$17280_channelVersion_=8;XF.prototype.state_=1;
XF.prototype.connect=function(I,C,y,k){this.JSC$17278_channelDebug_.debug("connect()");nk(0);this.JSC$17278_path_=I;this.JSC$17278_extraParams_=C||{};y&&k!==void 0&&(this.JSC$17278_extraParams_.OSID=y,this.JSC$17278_extraParams_.OAID=k);this.enableStreaming_=this.allowStreamingMode_;this.JSC$17278_channelDebug_.debug("connectChannel_()");I=OyR(this,null,this.JSC$17278_path_);this.JSC$17278_channelDebug_.debug("GetForwardChannelUri: "+I);this.JSC$17278_forwardChannelUri_=I;a9y(this)};
XF.prototype.disconnect=function(){this.JSC$17278_channelDebug_.debug("disconnect()");MEH(this);if(this.state_==3){var I=this.JSC$17278_nextRid_++,C=this.JSC$17278_forwardChannelUri_.clone();_.q9(C,"SID",this.sid_);_.q9(C,"RID",I);_.q9(C,"TYPE","terminate");$J(this,C);I=new pk(this,this.JSC$17278_channelDebug_,this.sid_,I);I.JSC$17259_type_=2;I.JSC$17259_baseUri_=_.ya(C.clone());C=!1;if(_.sF.navigator&&_.sF.navigator.sendBeacon)try{C=_.sF.navigator.sendBeacon(I.JSC$17259_baseUri_.toString(),"")}catch(y){}!C&&
_.sF.Image&&((new Image).src=I.JSC$17259_baseUri_,C=!0);C||(I.JSC$17259_xmlHttp_=NrR(I.JSC$17259_channel_,null),I.JSC$17259_xmlHttp_.send(I.JSC$17259_baseUri_));I.JSC$17259_requestStartTime_=Date.now();QrR(I)}IQS(this)};
var vYY=function(I){I.JSC$17278_backChannelRequest_&&(SIR(I),I.JSC$17278_backChannelRequest_.cancel(),I.JSC$17278_backChannelRequest_=null)},MEH=function(I){vYY(I);
I.JSC$17278_backChannelTimerId_&&(_.sF.clearTimeout(I.JSC$17278_backChannelTimerId_),I.JSC$17278_backChannelTimerId_=null);gYR(I);I.forwardChannelRequestPool_.cancel();I.JSC$17278_forwardChannelTimerId_&&(typeof I.JSC$17278_forwardChannelTimerId_==="number"&&_.sF.clearTimeout(I.JSC$17278_forwardChannelTimerId_),I.JSC$17278_forwardChannelTimerId_=null)};
XF.prototype.getState=function(){return this.state_};
var a9y=function(I){mCK(I.forwardChannelRequestPool_)||I.JSC$17278_forwardChannelTimerId_||(I.JSC$17278_forwardChannelTimerId_=!0,_.pW(I.JSC$17280_onStartForwardChannelTimer_,I),I.JSC$17278_forwardChannelRetryCount_=0)},snL=function(I,C){if(dCL(I.forwardChannelRequestPool_)>=I.forwardChannelRequestPool_.JSC$17269_maxSize_-(I.JSC$17278_forwardChannelTimerId_?1:0))return!1;
if(I.JSC$17278_forwardChannelTimerId_)return I.JSC$17278_channelDebug_.debug("Use the retry request that is already scheduled."),I.JSC$17278_outgoingMaps_=C.JSC$17259_pendingMessages_.concat(I.JSC$17278_outgoingMaps_),!0;if(I.state_==1||I.state_==2||I.JSC$17278_forwardChannelRetryCount_>=(I.JSC$17278_failFast_?0:I.JSC$17278_forwardChannelMaxRetries_))return!1;I.JSC$17278_channelDebug_.debug("Going to retry POST");I.JSC$17278_forwardChannelTimerId_=P6((0,_.DD)(I.JSC$17280_onStartForwardChannelTimer_,
I,C),Cb8(I,I.JSC$17278_forwardChannelRetryCount_));I.JSC$17278_forwardChannelRetryCount_++;return!0};
XF.prototype.JSC$17280_onStartForwardChannelTimer_=function(I){if(this.JSC$17278_forwardChannelTimerId_)if(this.JSC$17278_forwardChannelTimerId_=null,this.JSC$17278_channelDebug_.debug("startForwardChannel_"),this.state_==1){if(!I){this.JSC$17278_channelDebug_.debug("open_()");this.JSC$17278_nextRid_=Math.floor(Math.random()*1E5);I=this.JSC$17278_nextRid_++;var C=new pk(this,this.JSC$17278_channelDebug_,"",I),y=this.JSC$17278_extraHeaders_;this.initHeaders_&&(y?(y=_.Le.clone(y),_.Le.extend(y,this.initHeaders_)):
y=this.initHeaders_);this.httpHeadersOverwriteParam_!==null||this.encodeInitMessageHeaders_||(C.JSC$17259_extraHeaders_=y,y=null);var k;if(this.fastHandshake_)a:{for(var F=k=0;F<this.JSC$17278_outgoingMaps_.length;F++){b:{var z=this.JSC$17278_outgoingMaps_[F];if("__data__"in z.map&&(z=z.map.__data__,typeof z==="string")){z=z.length;break b}z=void 0}if(z===void 0)break;k+=z;if(k>4096){k=F;break a}if(k===4096||F===this.JSC$17278_outgoingMaps_.length-1){k=F+1;break a}}k=1E3}else k=1E3;k=o1Y(this,C,k);
F=this.JSC$17278_forwardChannelUri_.clone();_.q9(F,"RID",I);_.q9(F,"CVER",22);this.httpSessionIdParam_&&_.q9(F,"X-HTTP-Session-Id",this.httpSessionIdParam_);$J(this,F);y&&(this.encodeInitMessageHeaders_?k="headers="+_.q$($lY(y))+"&"+k:this.httpHeadersOverwriteParam_&&R4K(F,this.httpHeadersOverwriteParam_,y));ZyL(this.forwardChannelRequestPool_,C);this.blockingHandshake_&&_.q9(F,"TYPE","init");this.fastHandshake_?(_.q9(F,"$req",k),_.q9(F,"SID","null"),C.decodeInitialResponse_=!0,pKy(C,F,null)):pKy(C,
F,k);this.state_=2}}else this.state_==3&&(I?ypM(this,I):this.JSC$17278_outgoingMaps_.length==0?this.JSC$17278_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):mCK(this.forwardChannelRequestPool_)||(ypM(this),this.JSC$17278_channelDebug_.debug("startForwardChannel_ finished, sent request")))};
var ypM=function(I,C){var y;C?y=C.JSC$17259_rid_:y=I.JSC$17278_nextRid_++;var k=I.JSC$17278_forwardChannelUri_.clone();_.q9(k,"SID",I.sid_);_.q9(k,"RID",y);_.q9(k,"AID",I.JSC$17278_lastArrayId_);$J(I,k);I.httpHeadersOverwriteParam_&&I.JSC$17278_extraHeaders_&&R4K(k,I.httpHeadersOverwriteParam_,I.JSC$17278_extraHeaders_);y=new pk(I,I.JSC$17278_channelDebug_,I.sid_,y,I.JSC$17278_forwardChannelRetryCount_+1);I.httpHeadersOverwriteParam_===null&&(y.JSC$17259_extraHeaders_=I.JSC$17278_extraHeaders_);C&&
(I.JSC$17278_outgoingMaps_=C.JSC$17259_pendingMessages_.concat(I.JSC$17278_outgoingMaps_));C=o1Y(I,y,1E3);y.setTimeout(Math.round(I.JSC$17278_forwardChannelRequestTimeoutMs_*.5)+Math.round(I.JSC$17278_forwardChannelRequestTimeoutMs_*.5*Math.random()));ZyL(I.forwardChannelRequestPool_,y);pKy(y,k,C)},$J=function(I,C){I.JSC$17278_extraParams_&&_.Le.forEach(I.JSC$17278_extraParams_,function(y,k){_.q9(C,k,y)});
I.handler_&&_.Jkw({},function(y,k){_.q9(C,k,y)})},o1Y=function(I,C,y){y=Math.min(I.JSC$17278_outgoingMaps_.length,y);
var k=I.handler_?(0,_.DD)(I.handler_.JSC$17284_badMapError,I.handler_,I):null;a:{for(var F=I.JSC$17278_outgoingMaps_,z=-1;;){var c=["count="+y];z==-1?y>0?(z=F[0].JSC$17266_mapId,c.push("ofs="+z)):z=0:c.push("ofs="+z);for(var r=!0,w=0;w<y;w++){var L=F[w].JSC$17266_mapId,D=F[w].map;L-=z;if(L<0)z=Math.max(0,F[w].JSC$17266_mapId-100),r=!1;else try{JeS(D,c,"req"+L+"_")}catch(p){k&&k(D)}}if(r){k=c.join("&");break a}}k=void 0}I=I.JSC$17278_outgoingMaps_.splice(0,y);C.JSC$17259_pendingMessages_=I;return k},
kJK=function(I){I.JSC$17278_backChannelRequest_||I.JSC$17278_backChannelTimerId_||(I.JSC$17278_backChannelAttemptId_=1,_.pW(I.JSC$17280_onStartBackChannelTimer_,I),I.JSC$17278_backChannelRetryCount_=0)},WIY=function(I){if(I.JSC$17278_backChannelRequest_||I.JSC$17278_backChannelTimerId_||I.JSC$17278_backChannelRetryCount_>=3)return!1;
I.JSC$17278_channelDebug_.debug("Going to retry GET");I.JSC$17278_backChannelAttemptId_++;I.JSC$17278_backChannelTimerId_=P6((0,_.DD)(I.JSC$17280_onStartBackChannelTimer_,I),Cb8(I,I.JSC$17278_backChannelRetryCount_));I.JSC$17278_backChannelRetryCount_++;return!0};
XF.prototype.JSC$17280_onStartBackChannelTimer_=function(){this.JSC$17278_backChannelTimerId_=null;FaY(this);if(this.detectBufferingProxy_&&!this.bpDetectionDone_)if(this.JSC$17278_backChannelRequest_==null||this.handshakeRttMs_<=0)this.JSC$17278_channelDebug_.warning("Skip bpDetectionTimerId_ "+this.JSC$17278_backChannelRequest_+" "+this.handshakeRttMs_);else{var I=2*this.handshakeRttMs_;this.JSC$17278_channelDebug_.info("BP detection timer enabled: "+I);this.bpDetectionTimerId_=P6((0,_.DD)(this.onBpDetectionTimer_,
this),I)}};
XF.prototype.onBpDetectionTimer_=function(){if(this.bpDetectionTimerId_){this.bpDetectionTimerId_=null;this.JSC$17278_channelDebug_.info("BP detection timeout reached.");if(this.JSC$17278_backChannelRequest_.JSC$17259_xmlHttp_!=null){var I=this.JSC$17278_backChannelRequest_.JSC$17259_xmlHttp_.getResponseText();I&&this.JSC$17278_channelDebug_.warning("Timer should have been cancelled : "+I)}this.JSC$17278_channelDebug_.info("Buffering proxy detected and switch to long-polling!");this.enableStreaming_=
!1;this.bpDetectionDone_=!0;nk(10);vYY(this);FaY(this)}else this.JSC$17278_channelDebug_.warning("Invalid operation.")};
var SIR=function(I){I.bpDetectionTimerId_!=null&&(I.JSC$17278_channelDebug_.debug("Cancel the BP detection timer."),_.sF.clearTimeout(I.bpDetectionTimerId_),I.bpDetectionTimerId_=null)},FaY=function(I){I.JSC$17278_channelDebug_.debug("Creating new HttpRequest");
I.JSC$17278_backChannelRequest_=new pk(I,I.JSC$17278_channelDebug_,I.sid_,"rpc",I.JSC$17278_backChannelAttemptId_);I.httpHeadersOverwriteParam_===null&&(I.JSC$17278_backChannelRequest_.JSC$17259_extraHeaders_=I.JSC$17278_extraHeaders_);I.JSC$17278_backChannelRequest_.JSC$17259_readyStateChangeThrottleMs_=0;var C=I.JSC$17278_backChannelUri_.clone();_.q9(C,"RID","rpc");_.q9(C,"SID",I.sid_);_.q9(C,"AID",I.JSC$17278_lastArrayId_);_.q9(C,"CI",I.enableStreaming_?"0":"1");!I.enableStreaming_&&I.longPollingTimeout_&&
_.q9(C,"TO",I.longPollingTimeout_);_.q9(C,"TYPE","xmlhttp");$J(I,C);I.httpHeadersOverwriteParam_&&I.JSC$17278_extraHeaders_&&R4K(C,I.httpHeadersOverwriteParam_,I.JSC$17278_extraHeaders_);I.backChannelRequestTimeoutMs_&&I.JSC$17278_backChannelRequest_.setTimeout(I.backChannelRequestTimeoutMs_);var y=I.JSC$17278_backChannelRequest_,k=I.JSC$17278_hostPrefix_;y.JSC$17259_type_=1;y.JSC$17259_baseUri_=_.ya(C.clone());y.JSC$17259_postData_=null;y.decodeChunks_=!0;DCR(y,k);I.JSC$17278_channelDebug_.debug("New Request created")};
XF.prototype.JSC$17280_onBackChannelDead_=function(){this.JSC$17278_deadBackChannelTimerId_!=null&&(this.JSC$17278_deadBackChannelTimerId_=null,vYY(this),WIY(this),nk(19))};
var gYR=function(I){I.JSC$17278_deadBackChannelTimerId_!=null&&(_.sF.clearTimeout(I.JSC$17278_deadBackChannelTimerId_),I.JSC$17278_deadBackChannelTimerId_=null)},YIS=function(I,C){I.JSC$17278_channelDebug_.debug("Request complete");
var y=null;if(I.JSC$17278_backChannelRequest_==C){gYR(I);SIR(I);I.JSC$17278_backChannelRequest_=null;var k=2}else if(Ae8(I.forwardChannelRequestPool_,C))y=C.JSC$17259_pendingMessages_,BrR(I.forwardChannelRequestPool_,C),k=1;else return;if(I.state_!=0)if(C.JSC$17259_successful_)k==1?(TrH(C.JSC$17259_postData_?C.JSC$17259_postData_.length:0,Date.now()-C.JSC$17259_requestStartTime_,I.JSC$17278_forwardChannelRetryCount_),a9y(I)):kJK(I);else{var F=C.JSC$17259_lastStatusCode_,z=C.getLastError();if(z==3||
z==0&&F>0)I.JSC$17278_channelDebug_.debug("Not retrying due to error type"),F>200&&(I.errorResponseStatusCode_=C.JSC$17259_lastStatusCode_);else{I.JSC$17278_channelDebug_.debug(function(){return"Maybe retrying, last error: "+nYL(z,I.errorResponseStatusCode_)});
if(k==1&&snL(I,C)||k==2&&WIY(I))return;I.JSC$17278_channelDebug_.debug("Exceeded max number of retries")}y&&y.length>0&&hxH(I.forwardChannelRequestPool_,y);I.JSC$17278_channelDebug_.debug("Error: HTTP request failed");switch(z){case 1:V8(I,5);break;case 4:V8(I,10);break;case 3:V8(I,6);break;default:V8(I,2)}}},Cb8=function(I,C){var y=I.JSC$17278_baseRetryDelayMs_+Math.floor(Math.random()*I.JSC$17278_retryDelaySeedMs_);
I.isActive()||(I.JSC$17278_channelDebug_.debug("Inactive channel"),y*=2);return y*C};
XF.prototype.onInput_=function(I,C){for(var y=0;y<I.length;y++){var k=I[y];this.JSC$17278_lastArrayId_=k[0];k=k[1];if(this.state_==2)if(k[0]=="c"){this.sid_=k[1];this.JSC$17278_hostPrefix_=k[2];var F=k[3];F!=null&&(this.JSC$17280_channelVersion_=F,this.JSC$17278_channelDebug_.info("VER="+this.JSC$17280_channelVersion_));F=k[4];F!=null&&(this.serverVersion_=F,this.JSC$17278_channelDebug_.info("SVER="+this.serverVersion_));k=k[5];k!=null&&typeof k==="number"&&k>0&&(this.backChannelRequestTimeoutMs_=
k*=1.5,this.JSC$17278_channelDebug_.info("backChannelRequestTimeoutMs_="+k));if(k=C.JSC$17259_xmlHttp_){var z=TY(k,"X-Client-Wire-Protocol");z&&(F=this.forwardChannelRequestPool_,!F.requestPool_&&(_.rH(z,"spdy")||_.rH(z,"quic")||_.rH(z,"h2"))&&(F.JSC$17269_maxSize_=F.maxPoolSizeConfigured_,F.requestPool_=new Set,F.JSC$17269_request_&&(ZyL(F,F.JSC$17269_request_),F.JSC$17269_request_=null)));this.httpSessionIdParam_&&((k=TY(k,"X-HTTP-Session-Id"))?(this.httpSessionId_=k,_.q9(this.JSC$17278_forwardChannelUri_,
this.httpSessionIdParam_,k)):this.JSC$17278_channelDebug_.warning("Missing X_HTTP_SESSION_ID in the handshake response"))}this.state_=3;this.handler_&&this.handler_.JSC$17284_channelOpened();this.detectBufferingProxy_&&(this.handshakeRttMs_=Date.now()-C.JSC$17259_requestStartTime_,this.JSC$17278_channelDebug_.info("Handshake RTT: "+this.handshakeRttMs_+"ms"));k=C;F=OyR(this,this.JSC$17278_supportsCrossDomainXhrs_?this.JSC$17278_hostPrefix_:null,this.JSC$17278_path_);this.JSC$17278_channelDebug_.debug("GetBackChannelUri: "+
F);this.JSC$17278_backChannelUri_=F;k.initialResponseDecoded_?(this.JSC$17278_channelDebug_.debug("Upgrade the handshake request to a backchannel."),BrR(this.forwardChannelRequestPool_,k),F=k,(z=this.backChannelRequestTimeoutMs_)&&F.setTimeout(z),F.JSC$17259_watchDogTimerId_&&(l9K(F),QrR(F)),this.JSC$17278_backChannelRequest_=k):kJK(this);this.JSC$17278_outgoingMaps_.length>0&&a9y(this)}else k[0]!="stop"&&k[0]!="close"||V8(this,7);else this.state_==3&&(k[0]=="stop"||k[0]=="close"?k[0]=="stop"?V8(this,
7):this.disconnect():k[0]!="noop"&&this.handler_&&this.handler_.JSC$17284_channelHandleArray(k),this.JSC$17278_backChannelRetryCount_=0)}};
var V8=function(I,C){I.JSC$17278_channelDebug_.info("Error code "+C);if(C==2){var y=(0,_.DD)(I.testNetworkCallback_,I),k=I.networkTestUrl_,F=!k;k=new _.t$(k||"//www.google.com/images/cleardot.gif");_.sF.location&&_.sF.location.protocol=="http"||_.tZ(k,"https");_.ya(k);F?UC8(k.toString(),y):HyB(k.toString(),y)}else nk(2);I.onError_(C)};
XF.prototype.testNetworkCallback_=function(I){I?(this.JSC$17278_channelDebug_.info("Successfully pinged google.com"),nk(2)):(this.JSC$17278_channelDebug_.info("Failed to ping google.com"),nk(1))};
XF.prototype.onError_=function(I){this.JSC$17278_channelDebug_.debug("HttpChannel: error - "+I);this.state_=0;this.handler_&&this.handler_.JSC$17284_channelError(I);IQS(this);MEH(this)};
var IQS=function(I){I.state_=0;I.nonAckedMapsAtChannelClose_=[];if(I.handler_){var C=EYS(I.forwardChannelRequestPool_);if(C.length!=0||I.JSC$17278_outgoingMaps_.length!=0)I.JSC$17278_channelDebug_.debug(function(){return"Number of undelivered maps, pending: "+C.length+", outgoing: "+I.JSC$17278_outgoingMaps_.length}),_.C5(I.nonAckedMapsAtChannelClose_,C),_.C5(I.nonAckedMapsAtChannelClose_,I.JSC$17278_outgoingMaps_),I.forwardChannelRequestPool_.JSC$17269_pendingMessages_.length=0,_.tX(I.JSC$17278_outgoingMaps_),
I.JSC$17278_outgoingMaps_.length=0;
I.handler_.JSC$17284_channelClosed()}},uCL=function(I){if(I.state_==0)return I.nonAckedMapsAtChannelClose_;
var C=[];_.C5(C,EYS(I.forwardChannelRequestPool_));_.C5(C,I.JSC$17278_outgoingMaps_);return C},OyR=function(I,C,y){var k=_.dQ(y);
k.JSC$7905_domain_!=""?(C&&_.JZ(k,C+"."+k.JSC$7905_domain_),_.Ov(k,k.JSC$7905_port_)):(k=_.sF.location,k=PkL(k.protocol,C?C+"."+k.hostname:k.hostname,+k.port,y));C=I.httpSessionIdParam_;y=I.httpSessionId_;C&&y&&_.q9(k,C,y);_.q9(k,"VER",I.JSC$17280_channelVersion_);$J(I,k);return k},NrR=function(I,C,y){if(C&&!I.JSC$17278_supportsCrossDomainXhrs_)throw Error("xk");
C=I.usesFetchStreams_&&!I.JSC$17278_xmlHttpFactory_?new _.Xn(new $Q({streamBinaryChunks:y})):new _.Xn(I.JSC$17278_xmlHttpFactory_);C.JSC$7668_withCredentials_=I.JSC$17278_supportsCrossDomainXhrs_;return C};
XF.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
var zXR=function(){};
_.u=zXR.prototype;_.u.JSC$17284_channelOpened=function(){};
_.u.JSC$17284_channelHandleArray=function(){};
_.u.JSC$17284_channelError=function(){};
_.u.JSC$17284_channelClosed=function(){};
_.u.isActive=function(){return!0};
_.u.JSC$17284_badMapError=function(){};var ToP=function(){},bo=function(I,C){_.LW.call(this);
this.JSC$17287_channel_=new XF(C);this.JSC$17287_url_=I;this.messageUrlParams_=C&&C.messageUrlParams||null;I=C&&C.messageHeaders||null;C&&C.clientProtocolHeaderRequired&&(I?_.Le.set(I,"X-Client-Protocol","webchannel"):I=_.Le.create("X-Client-Protocol","webchannel"));this.JSC$17287_channel_.JSC$17278_extraHeaders_=I;I=C&&C.initMessageHeaders||null;C&&C.messageContentType&&(I?_.Le.set(I,"X-WebChannel-Content-Type",C.messageContentType):I=_.Le.create("X-WebChannel-Content-Type",C.messageContentType));
C&&C.clientProfile&&(I?_.Le.set(I,"X-WebChannel-Client-Profile",C.clientProfile):I=_.Le.create("X-WebChannel-Client-Profile",C.clientProfile));this.JSC$17287_channel_.initHeaders_=I;(I=C&&C.httpHeadersOverwriteParam)&&!_.eI(I)&&(this.JSC$17287_channel_.httpHeadersOverwriteParam_=I);this.supportsCrossDomainXhr_=C&&C.supportsCrossDomainXhr||!1;this.sendRawJson_=C&&C.sendRawJson||!1;(C=C&&C.httpSessionIdParam)&&!_.eI(C)&&(this.JSC$17287_channel_.httpSessionIdParam_=C,_.Le.containsKey(this.messageUrlParams_,
C)&&_.Le.remove(this.messageUrlParams_,C));this.channelHandler_=new Ra(this)};
_.s0(bo,_.LW);bo.prototype.open=function(){this.JSC$17287_channel_.handler_=this.channelHandler_;this.supportsCrossDomainXhr_&&(this.JSC$17287_channel_.JSC$17278_supportsCrossDomainXhrs_=!0);this.JSC$17287_channel_.connect(this.JSC$17287_url_,this.messageUrlParams_||void 0)};
bo.prototype.close=function(){this.JSC$17287_channel_.disconnect()};
bo.prototype.send=function(I){var C=this.JSC$17287_channel_;if(typeof I==="string"){var y={};y.__data__=I;I=y}else this.sendRawJson_&&(y={},y.__data__=(0,_.lR)(I),I=y);C.JSC$17278_outgoingMaps_.push(new xCj(C.JSC$17278_nextMapId_++,I));C.state_==3&&a9y(C)};
bo.prototype.disposeInternal=function(){this.JSC$17287_channel_.handler_=null;delete this.channelHandler_;this.JSC$17287_channel_.disconnect();delete this.JSC$17287_channel_;bo.superClass_.disposeInternal.call(this)};
var cp8=function(I){srK.call(this);I.__headers__&&(this.headers=I.__headers__,this.statusCode=I.__status__,delete I.__headers__,delete I.__status__);var C=I.__sm__;C?this.data=(this.metadataKey=_.Le.getAnyKey(C))?_.Le.get(C,this.metadataKey):C:this.data=I};
_.s0(cp8,srK);var eXR=function(I){oYY.call(this);this.status=1;this.errorCode=I};
_.s0(eXR,oYY);var Ra=function(I){this.JSC$17294_channel_=I};
_.s0(Ra,zXR);Ra.prototype.JSC$17284_channelOpened=function(){this.JSC$17294_channel_.dispatchEvent("w")};
Ra.prototype.JSC$17284_channelHandleArray=function(I){this.JSC$17294_channel_.dispatchEvent(new cp8(I))};
Ra.prototype.JSC$17284_channelError=function(I){this.JSC$17294_channel_.dispatchEvent(new eXR(I))};
Ra.prototype.JSC$17284_channelClosed=function(){this.JSC$17294_channel_.dispatchEvent("x")};
var rp8=function(I,C){this.transportChannel_=I;this.JSC$17297_channel_=C},i6R=function(I){return uCL(I.JSC$17297_channel_).map(function(C){var y=I.transportChannel_;
C=C.map;"__data__"in C?(C=C.__data__,y=y.sendRawJson_?(0,_.$Lw)(C):C):y=C;return y})};var YJ=function(I){wCP.dispatchEvent(new n1R(wCP,I))},wCP=new _.LW,n1R=function(I){_.r1.call(this,"statevent",I)};
_.R(n1R,_.r1);var Gm=function(I,C,y,k,F){this.JSC$17302_channel_=I;this.JSC$17302_channelDebug_=C;this.sid_=y;this.JSC$17302_rid_=k;this.JSC$17302_retryId_=F||1;this.timeout_=45E3;this.JSC$17302_eventHandler_=new _.Cq(this);this.pollingTimer_=new _.IC;this.pollingTimer_.setInterval(250)};
_.u=Gm.prototype;_.u.JSC$17304_extraHeaders_=null;_.u.JSC$17304_successful_=!1;_.u.JSC$17304_watchDogTimerId_=null;_.u.JSC$17304_watchDogTimeoutTime_=null;_.u.JSC$17304_requestStartTime_=null;_.u.JSC$17304_type_=null;_.u.JSC$17304_baseUri_=null;_.u.JSC$17304_requestUri_=null;_.u.JSC$17304_postData_=null;_.u.JSC$17304_xmlHttp_=null;_.u.JSC$17304_xmlHttpChunkStart_=0;_.u.trident_=null;_.u.JSC$17304_verb_=null;_.u.JSC$17304_lastError_=null;_.u.JSC$17304_lastStatusCode_=-1;_.u.sendClose_=!0;
_.u.JSC$17304_cancelled_=!1;_.u.JSC$17304_readyStateChangeThrottleMs_=0;_.u.JSC$17304_readyStateChangeThrottle_=null;var PbB=function(I,C){switch(I){case 0:return"Non-200 return code ("+C+")";case 1:return"XMLHTTP failure (no data)";case 2:return"HttpConnection timeout";default:return"Unknown error"}},Laj={},D7K={};
Gm.prototype.setTimeout=function(I){this.timeout_=I};
var QnR=function(I,C,y){I.JSC$17304_type_=1;I.JSC$17304_baseUri_=_.ya(C.clone());I.JSC$17304_postData_=y;I.decodeChunks_=!0;pCM(I,null)},NoL=function(I,C,y,k,F){I.JSC$17304_type_=1;
I.JSC$17304_baseUri_=_.ya(C.clone());I.JSC$17304_postData_=null;I.decodeChunks_=y;F&&(I.sendClose_=!1);pCM(I,k)},pCM=function(I,C){I.JSC$17304_requestStartTime_=Date.now();
V_K(I);I.JSC$17304_requestUri_=I.JSC$17304_baseUri_.clone();CR(I.JSC$17304_requestUri_,"t",I.JSC$17302_retryId_);I.JSC$17304_xmlHttpChunkStart_=0;I.JSC$17304_xmlHttp_=I.JSC$17302_channel_.JSC$17311_createXhrIo(I.JSC$17302_channel_.JSC$17311_shouldUseSecondaryDomains()?C:null);I.JSC$17304_readyStateChangeThrottleMs_>0&&(I.JSC$17304_readyStateChangeThrottle_=new _.OG((0,_.DD)(I.JSC$17304_xmlHttpHandler_,I,I.JSC$17304_xmlHttp_),I.JSC$17304_readyStateChangeThrottleMs_));I.JSC$17302_eventHandler_.listen(I.JSC$17304_xmlHttp_,
"readystatechange",I.JSC$17304_readyStateChangeHandler_);C=I.JSC$17304_extraHeaders_?_.Le.clone(I.JSC$17304_extraHeaders_):{};I.JSC$17304_postData_?(I.JSC$17304_verb_="POST",C["Content-Type"]="application/x-www-form-urlencoded",I.JSC$17304_xmlHttp_.send(I.JSC$17304_requestUri_,I.JSC$17304_verb_,I.JSC$17304_postData_,C)):(I.JSC$17304_verb_="GET",I.sendClose_&&!_.z6&&(C.Connection="close"),I.JSC$17304_xmlHttp_.send(I.JSC$17304_requestUri_,I.JSC$17304_verb_,null,C));I.JSC$17302_channel_.notifyServerReachabilityEvent(1);
C=I.JSC$17302_channelDebug_;var y=I.JSC$17304_postData_;if(y){var k="";y=y.split("&");for(var F=0;F<y.length;F++){var z=y[F].split("=");if(z.length>1){var c=z[0];z=z[1];var r=c.split("_");k=r.length>=2&&r[1]=="type"?k+(c+"="+z+"&"):k+(c+"=redacted&")}}}else k=null;C.info("XMLHTTP REQ ("+I.JSC$17302_rid_+") [attempt "+I.JSC$17302_retryId_+"]: "+I.JSC$17304_verb_+"\n"+I.JSC$17304_requestUri_+"\n"+k)};
Gm.prototype.JSC$17304_readyStateChangeHandler_=function(I){I=I.target;var C=this.JSC$17304_readyStateChangeThrottle_;C&&_.Rz(I)==3?(this.JSC$17302_channelDebug_.debug("Throttling readystatechange."),C.fire()):this.JSC$17304_xmlHttpHandler_(I)};
Gm.prototype.JSC$17304_xmlHttpHandler_=function(I){try{if(I==this.JSC$17304_xmlHttp_)a:{var C=_.Rz(this.JSC$17304_xmlHttp_),y=this.JSC$17304_xmlHttp_.JSC$7668_lastErrorCode_,k=this.JSC$17304_xmlHttp_.getStatus();if(_.z6&&!QHR("420+")){if(C<4)break a}else if(C<3||C==3&&!this.JSC$17304_xmlHttp_.getResponseText())break a;this.JSC$17304_cancelled_||C!=4||y==7||(y==8||k<=0?this.JSC$17302_channel_.notifyServerReachabilityEvent(3):this.JSC$17302_channel_.notifyServerReachabilityEvent(2));jny(this);var F=
this.JSC$17304_xmlHttp_.getStatus();this.JSC$17304_lastStatusCode_=F;var z=this.JSC$17304_xmlHttp_.getResponseText();z||this.JSC$17302_channelDebug_.debug("No response text for uri "+this.JSC$17304_requestUri_+" status "+F);this.JSC$17304_successful_=F==200;this.JSC$17302_channelDebug_.info("XMLHTTP RESP ("+this.JSC$17302_rid_+") [ attempt "+this.JSC$17302_retryId_+"]: "+this.JSC$17304_verb_+"\n"+this.JSC$17304_requestUri_+"\n"+C+" "+F);if(this.JSC$17304_successful_){C==4&&fk(this);if(this.decodeChunks_){for(I=
!0;!this.JSC$17304_cancelled_&&this.JSC$17304_xmlHttpChunkStart_<z.length;){var c=lQR(this,z);if(c==D7K){C==4&&(this.JSC$17304_lastError_=4,YJ(15),I=!1);S5(this.JSC$17302_channelDebug_,this.JSC$17302_rid_,null,"[Incomplete Response]");break}else if(c==Laj){this.JSC$17304_lastError_=4;YJ(16);S5(this.JSC$17302_channelDebug_,this.JSC$17302_rid_,z,"[Invalid Chunk]");I=!1;break}else S5(this.JSC$17302_channelDebug_,this.JSC$17302_rid_,c,null),XCL(this,c)}C==4&&z.length==0&&(this.JSC$17304_lastError_=1,
YJ(17),I=!1);this.JSC$17304_successful_=this.JSC$17304_successful_&&I;I||(S5(this.JSC$17302_channelDebug_,this.JSC$17302_rid_,z,"[Invalid Chunked Response]"),fk(this),$7K(this))}else S5(this.JSC$17302_channelDebug_,this.JSC$17302_rid_,z,null),XCL(this,z);this.JSC$17304_successful_&&!this.JSC$17304_cancelled_&&(C==4?this.JSC$17302_channel_.JSC$17311_onRequestComplete(this):(this.JSC$17304_successful_=!1,V_K(this)))}else F==400&&z.indexOf("Unknown SID")>0?(this.JSC$17304_lastError_=3,YJ(13),this.JSC$17302_channelDebug_.warning("XMLHTTP Unknown SID ("+
this.JSC$17302_rid_+")")):(this.JSC$17304_lastError_=0,YJ(14),this.JSC$17302_channelDebug_.warning("XMLHTTP Bad status "+F+" ("+this.JSC$17302_rid_+")")),fk(this),$7K(this)}else this.JSC$17302_channelDebug_.warning("Called back with an unexpected xmlhttp")}catch(r){this.JSC$17302_channelDebug_.debug("Failed call to OnXmlHttpReadyStateChanged_")}finally{}};
var lQR=function(I,C){var y=I.JSC$17304_xmlHttpChunkStart_,k=C.indexOf("\n",y);if(k==-1)return D7K;y=Number(C.substring(y,k));if(isNaN(y))return Laj;k+=1;if(k+y>C.length)return D7K;C=C.slice(k,k+y);I.JSC$17304_xmlHttpChunkStart_=k+y;return C};
Gm.prototype.cancel=function(){this.JSC$17304_cancelled_=!0;fk(this)};
var V_K=function(I){I.JSC$17304_watchDogTimeoutTime_=Date.now()+I.timeout_;RXy(I,I.timeout_)},RXy=function(I,C){if(I.JSC$17304_watchDogTimerId_!=null)throw Error("wk");
I.JSC$17304_watchDogTimerId_=NA((0,_.DD)(I.JSC$17304_onWatchDogTimeout_,I),C)},jny=function(I){I.JSC$17304_watchDogTimerId_&&(_.sF.clearTimeout(I.JSC$17304_watchDogTimerId_),I.JSC$17304_watchDogTimerId_=null)};
Gm.prototype.JSC$17304_onWatchDogTimeout_=function(){this.JSC$17304_watchDogTimerId_=null;var I=Date.now();I-this.JSC$17304_watchDogTimeoutTime_>=0?(this.JSC$17302_channelDebug_.info("TIMEOUT: "+this.JSC$17304_requestUri_),this.JSC$17304_type_!=2&&this.JSC$17302_channel_.notifyServerReachabilityEvent(3),fk(this),this.JSC$17304_lastError_=2,YJ(18),$7K(this)):(this.JSC$17302_channelDebug_.warning("WatchDog timer called too early"),RXy(this,this.JSC$17304_watchDogTimeoutTime_-I))};
var $7K=function(I){I.JSC$17302_channel_.JSC$17311_isClosed()||I.JSC$17304_cancelled_||I.JSC$17302_channel_.JSC$17311_onRequestComplete(I)},fk=function(I){jny(I);
_.Bi(I.JSC$17304_readyStateChangeThrottle_);I.JSC$17304_readyStateChangeThrottle_=null;I.pollingTimer_.stop();I.JSC$17302_eventHandler_.removeAll();if(I.JSC$17304_xmlHttp_){var C=I.JSC$17304_xmlHttp_;I.JSC$17304_xmlHttp_=null;C.abort();C.dispose()}I.trident_&&(I.trident_=null)};
Gm.prototype.getLastError=function(){return this.JSC$17304_lastError_};
var XCL=function(I,C){try{I.JSC$17302_channel_.JSC$17311_onRequestData(I,C),I.JSC$17302_channel_.notifyServerReachabilityEvent(4)}catch(y){}};var S5=function(I,C,y,k){var F=I.info;a:if(y&&y!="y2f%"){try{var z=JSON.parse(y);if(z)for(var c=0;c<z.length;c++)if(Array.isArray(z[c])){var r=z[c];if(!(r.length<2)){var w=r[1];if(Array.isArray(w)&&!(w.length<1)){var L=w[0];if(L!="noop"&&L!="stop")for(var D=1;D<w.length;D++)w[D]=""}}}var p=(0,_.lR)(z);break a}catch(Q){I.debug("Exception parsing expected JS array - probably was not JS");p=y;break a}p=void 0}else p=y;F.call(I,"XMLHTTP TEXT ("+C+"): "+p+(k?" "+k:""))};
Vi.prototype.debug=function(I){this.info(I)};
Vi.prototype.info=function(){};
Vi.prototype.warning=function(){};var b6R=function(I,C){this.JSC$17309_channel_=I;this.JSC$17309_channelDebug_=C;this.JSC$17309_parser_=new io};
_.u=b6R.prototype;_.u.JSC$17311_extraHeaders_=null;_.u.JSC$17311_request_=null;_.u.receivedIntermediateResult_=!1;_.u.JSC$17311_path_=null;_.u.state_=null;_.u.JSC$17311_lastStatusCode_=-1;_.u.JSC$17311_hostPrefix_=null;_.u.blockedPrefix_=null;
_.u.connect=function(I){this.JSC$17311_path_=I;I=YVL(this.JSC$17309_channel_,this.JSC$17311_path_);YJ(3);Date.now();var C=this.JSC$17309_channel_.firstTestResults_;C!=null?(this.JSC$17311_hostPrefix_=C[0],(this.blockedPrefix_=C[1])?(this.state_=1,GJK(this)):(this.state_=2,fQR(this))):(CR(I,"MODE","init"),this.JSC$17311_request_=new Gm(this,this.JSC$17309_channelDebug_),this.JSC$17311_request_.JSC$17304_extraHeaders_=this.JSC$17311_extraHeaders_,NoL(this.JSC$17311_request_,I,!1,null,!0),this.state_=
0)};
var GJK=function(I){var C=SVS(I.JSC$17309_channel_,I.blockedPrefix_,"/mail/images/cleardot.gif");_.ya(C);y$Y(C.toString(),5E3,(0,_.DD)(I.checkBlockedCallback_,I),3,2E3);I.notifyServerReachabilityEvent(1)};
b6R.prototype.checkBlockedCallback_=function(I){if(I)this.state_=2,fQR(this);else{YJ(4);var C=this.JSC$17309_channel_;C.JSC$17312_channelDebug_.debug("Test Connection Blocked");C.JSC$17316_lastStatusCode_=C.connectionTest_.JSC$17311_lastStatusCode_;Kk(C,9)}I&&this.notifyServerReachabilityEvent(2)};
var fQR=function(I){I.JSC$17309_channelDebug_.debug("TestConnection: starting stage 2");var C=I.JSC$17309_channel_.secondTestResults_;C!=null?(I.JSC$17309_channelDebug_.debug("TestConnection: skipping stage 2, precomputed result is "+C?"Buffered":"Unbuffered"),YJ(5),C?(YJ(11),AB(I.JSC$17309_channel_,I,!1)):(YJ(12),AB(I.JSC$17309_channel_,I,!0))):(I.JSC$17311_request_=new Gm(I,I.JSC$17309_channelDebug_),I.JSC$17311_request_.JSC$17304_extraHeaders_=I.JSC$17311_extraHeaders_,C=KaK(I.JSC$17309_channel_,
I.JSC$17311_hostPrefix_,I.JSC$17311_path_),YJ(5),CR(C,"TYPE","xmlhttp"),NoL(I.JSC$17311_request_,C,!1,I.JSC$17311_hostPrefix_,!1))};
_.u=b6R.prototype;_.u.JSC$17311_createXhrIo=function(I){return this.JSC$17309_channel_.JSC$17311_createXhrIo(I)};
_.u.abort=function(){this.JSC$17311_request_&&(this.JSC$17311_request_.cancel(),this.JSC$17311_request_=null);this.JSC$17311_lastStatusCode_=-1};
_.u.JSC$17311_isClosed=function(){return!1};
_.u.JSC$17311_onRequestData=function(I,C){this.JSC$17311_lastStatusCode_=I.JSC$17304_lastStatusCode_;if(this.state_==0)if(this.JSC$17309_channelDebug_.debug("TestConnection: Got data for stage 1"),C){try{var y=this.JSC$17309_parser_.parse(C)}catch(k){ApY(this.JSC$17309_channel_,this);return}this.JSC$17311_hostPrefix_=y[0];this.blockedPrefix_=y[1]}else this.JSC$17309_channelDebug_.debug("TestConnection: Null responseText"),ApY(this.JSC$17309_channel_,this);else this.state_==2&&(this.receivedIntermediateResult_?
(YJ(7),Date.now()):C=="11111"?(YJ(6),this.receivedIntermediateResult_=!0,Date.now(),this.JSC$17311_lastStatusCode_=200,this.JSC$17311_request_.cancel(),this.JSC$17309_channelDebug_.debug("Test connection succeeded; using streaming connection"),YJ(12),AB(this.JSC$17309_channel_,this,!0)):(YJ(8),Date.now(),this.receivedIntermediateResult_=!1))};
_.u.JSC$17311_onRequestComplete=function(){this.JSC$17311_lastStatusCode_=this.JSC$17311_request_.JSC$17304_lastStatusCode_;this.JSC$17311_request_.JSC$17304_successful_?this.state_==0?(this.JSC$17309_channelDebug_.debug("TestConnection: request complete for initial check"),this.blockedPrefix_?(this.state_=1,GJK(this)):(this.state_=2,fQR(this))):this.state_==2&&(this.JSC$17309_channelDebug_.debug("TestConnection: request complete for stage 2"),this.receivedIntermediateResult_?(this.JSC$17309_channelDebug_.debug("Test connection succeeded; using streaming connection"),
YJ(12),AB(this.JSC$17309_channel_,this,!0)):(this.JSC$17309_channelDebug_.debug("Test connection failed; not using streaming"),YJ(11),AB(this.JSC$17309_channel_,this,!1))):(this.JSC$17309_channelDebug_.debug("TestConnection: request failed, in state "+this.state_),this.state_==0?YJ(9):this.state_==2&&YJ(10),ApY(this.JSC$17309_channel_,this,this.JSC$17311_request_.getLastError()))};
_.u.JSC$17311_shouldUseSecondaryDomains=function(){return this.JSC$17309_channel_.JSC$17311_shouldUseSecondaryDomains()};
_.u.isActive=function(){return this.JSC$17309_channel_.isActive()};
_.u.notifyServerReachabilityEvent=function(I){this.JSC$17309_channel_.notifyServerReachabilityEvent(I)};var gD=function(I,C,y){this.state_=1;this.JSC$17312_outgoingMaps_=[];this.pendingMaps_=[];this.JSC$17312_channelDebug_=new Vi;this.JSC$17312_parser_=new io;this.firstTestResults_=I||null;this.secondTestResults_=C!=null?C:null;this.asyncTest_=y||!1},g1S=function(I,C){this.JSC$17314_mapId=I;
this.map=C;this.context=null};
_.u=gD.prototype;_.u.JSC$17316_extraHeaders_=null;_.u.JSC$17316_extraParams_=null;_.u.forwardChannelRequest_=null;_.u.JSC$17316_backChannelRequest_=null;_.u.JSC$17316_path_=null;_.u.JSC$17316_forwardChannelUri_=null;_.u.JSC$17316_backChannelUri_=null;_.u.JSC$17316_hostPrefix_=null;_.u.JSC$17316_nextRid_=0;_.u.JSC$17316_nextMapId_=0;_.u.handler_=null;_.u.JSC$17316_forwardChannelTimerId_=null;_.u.JSC$17316_backChannelTimerId_=null;_.u.JSC$17316_deadBackChannelTimerId_=null;_.u.connectionTest_=null;
_.u.useChunked_=null;_.u.JSC$17316_lastArrayId_=-1;_.u.JSC$17316_lastPostResponseArrayId_=-1;_.u.JSC$17316_lastStatusCode_=-1;_.u.JSC$17316_forwardChannelRetryCount_=0;_.u.JSC$17316_backChannelRetryCount_=0;_.u.JSC$17316_channelVersion_=8;var v1L={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},WaH=function(I,C,y,k){_.r1.call(this,"timingevent",I);this.size=C;this.rtt=y;this.retries=k};
_.s0(WaH,_.r1);var d7j=function(I){_.r1.call(this,"serverreachability",I)};
_.s0(d7j,_.r1);gD.prototype.connect=function(I,C,y,k,F){this.JSC$17312_channelDebug_.debug("connect()");YJ(0);this.JSC$17316_path_=C;this.JSC$17316_extraParams_=y||{};k&&F!==void 0&&(this.JSC$17316_extraParams_.OSID=k,this.JSC$17316_extraParams_.OAID=F);this.asyncTest_?(NA((0,_.DD)(this.connectTest_,this,I),100),x78(this)):this.connectTest_(I)};
gD.prototype.disconnect=function(){this.JSC$17312_channelDebug_.debug("disconnect()");qVR(this);if(this.state_==3){var I=this.JSC$17316_nextRid_++,C=this.JSC$17316_forwardChannelUri_.clone();_.q9(C,"SID",this.sid_);_.q9(C,"RID",I);_.q9(C,"TYPE","terminate");v6(this,C);I=new Gm(this,this.JSC$17312_channelDebug_,this.sid_,I);I.JSC$17304_type_=2;I.JSC$17304_baseUri_=_.ya(C.clone());(new Image).src=I.JSC$17304_baseUri_.toString();I.JSC$17304_requestStartTime_=Date.now();V_K(I)}m7L(this)};
gD.prototype.connectTest_=function(I){this.JSC$17312_channelDebug_.debug("connectTest_()");this.connectionTest_=new b6R(this,this.JSC$17312_channelDebug_);this.connectionTest_.JSC$17311_extraHeaders_=this.JSC$17316_extraHeaders_;this.connectionTest_.JSC$17309_parser_=this.JSC$17312_parser_;this.connectionTest_.connect(I)};
var x78=function(I){I.JSC$17312_channelDebug_.debug("connectChannel_()");I.JSC$17316_ensureInState_(1,0);I.JSC$17316_forwardChannelUri_=YVL(I,I.JSC$17316_path_);Z6Y(I)},qVR=function(I){I.connectionTest_&&(I.connectionTest_.abort(),I.connectionTest_=null);
I.JSC$17316_backChannelRequest_&&(I.JSC$17316_backChannelRequest_.cancel(),I.JSC$17316_backChannelRequest_=null);I.JSC$17316_backChannelTimerId_&&(_.sF.clearTimeout(I.JSC$17316_backChannelTimerId_),I.JSC$17316_backChannelTimerId_=null);Bo8(I);I.forwardChannelRequest_&&(I.forwardChannelRequest_.cancel(),I.forwardChannelRequest_=null);I.JSC$17316_forwardChannelTimerId_&&(_.sF.clearTimeout(I.JSC$17316_forwardChannelTimerId_),I.JSC$17316_forwardChannelTimerId_=null)},E1Y=function(I,C){if(I.state_==0)throw Error("zk");
I.JSC$17312_outgoingMaps_.length==1E3&&I.JSC$17312_parser_.stringify(C);I.JSC$17312_outgoingMaps_.push(new g1S(I.JSC$17316_nextMapId_++,C));I.state_!=2&&I.state_!=3||Z6Y(I)};
gD.prototype.JSC$17311_isClosed=function(){return this.state_==0};
gD.prototype.getState=function(){return this.state_};
var Z6Y=function(I){I.forwardChannelRequest_||I.JSC$17316_forwardChannelTimerId_||(I.JSC$17316_forwardChannelTimerId_=NA((0,_.DD)(I.JSC$17316_onStartForwardChannelTimer_,I),0),I.JSC$17316_forwardChannelRetryCount_=0)};
gD.prototype.JSC$17316_onStartForwardChannelTimer_=function(I){this.JSC$17316_forwardChannelTimerId_=null;hXH(this,I)};
var hXH=function(I,C){I.JSC$17312_channelDebug_.debug("startForwardChannel_");if(I.state_==1){if(!C){I.JSC$17312_channelDebug_.debug("open_()");I.JSC$17316_nextRid_=Math.floor(Math.random()*1E5);C=I.JSC$17316_nextRid_++;var y=new Gm(I,I.JSC$17312_channelDebug_,"",C);y.JSC$17304_extraHeaders_=I.JSC$17316_extraHeaders_;var k=U7L(I),F=I.JSC$17316_forwardChannelUri_.clone();_.q9(F,"RID",C);_.q9(F,"CVER","1");v6(I,F);QnR(y,F,k);I.forwardChannelRequest_=y;I.state_=2}}else I.state_==3&&(C?H68(I,C):I.JSC$17312_outgoingMaps_.length==
0?I.JSC$17312_channelDebug_.debug("startForwardChannel_ returned: nothing to send"):I.forwardChannelRequest_||(H68(I),I.JSC$17312_channelDebug_.debug("startForwardChannel_ finished, sent request")))},H68=function(I,C){if(C)if(I.JSC$17316_channelVersion_>6){I.JSC$17312_outgoingMaps_=I.pendingMaps_.concat(I.JSC$17312_outgoingMaps_);
I.pendingMaps_.length=0;var y=I.JSC$17316_nextRid_-1;C=U7L(I)}else y=C.JSC$17302_rid_,C=C.JSC$17304_postData_;else y=I.JSC$17316_nextRid_++,C=U7L(I);var k=I.JSC$17316_forwardChannelUri_.clone();_.q9(k,"SID",I.sid_);_.q9(k,"RID",y);_.q9(k,"AID",I.JSC$17316_lastArrayId_);v6(I,k);y=new Gm(I,I.JSC$17312_channelDebug_,I.sid_,y,I.JSC$17316_forwardChannelRetryCount_+1);y.JSC$17304_extraHeaders_=I.JSC$17316_extraHeaders_;y.setTimeout(1E4+Math.round(1E4*Math.random()));I.forwardChannelRequest_=y;QnR(y,k,C)},
v6=function(I,C){I.handler_&&(I=I.handler_.JSC$17323_getAdditionalParams())&&_.Le.forEach(I,function(y,k){_.q9(C,k,y)})},U7L=function(I){var C=Math.min(I.JSC$17312_outgoingMaps_.length,1E3),y=["count="+C];
if(I.JSC$17316_channelVersion_>6&&C>0){var k=I.JSC$17312_outgoingMaps_[0].JSC$17314_mapId;y.push("ofs="+k)}else k=0;for(var F={},z=0;z<C;F={mapId$jscomp$3:void 0},z++){F.mapId$jscomp$3=I.JSC$17312_outgoingMaps_[z].JSC$17314_mapId;var c=I.JSC$17312_outgoingMaps_[z].map;F.mapId$jscomp$3=I.JSC$17316_channelVersion_<=6?z:F.mapId$jscomp$3-k;try{_.Le.forEach(c,function(r){return function(w,L){y.push("req"+r.mapId$jscomp$3+"_"+L+"="+encodeURIComponent(w))}}(F))}catch(r){y.push("req"+F.mapId$jscomp$3+"_type="+
encodeURIComponent("_badmap"))}}I.pendingMaps_=I.pendingMaps_.concat(I.JSC$17312_outgoingMaps_.splice(0,C));
return y.join("&")},t_R=function(I){I.JSC$17316_backChannelRequest_||I.JSC$17316_backChannelTimerId_||(I.JSC$17316_backChannelAttemptId_=1,I.JSC$17316_backChannelTimerId_=NA((0,_.DD)(I.JSC$17316_onStartBackChannelTimer_,I),0),I.JSC$17316_backChannelRetryCount_=0)},O6j=function(I){if(I.JSC$17316_backChannelRequest_||I.JSC$17316_backChannelTimerId_||I.JSC$17316_backChannelRetryCount_>=3)return!1;
I.JSC$17312_channelDebug_.debug("Going to retry GET");I.JSC$17316_backChannelAttemptId_++;I.JSC$17316_backChannelTimerId_=NA((0,_.DD)(I.JSC$17316_onStartBackChannelTimer_,I),JpB(I,I.JSC$17316_backChannelRetryCount_));I.JSC$17316_backChannelRetryCount_++;return!0};
gD.prototype.JSC$17316_onStartBackChannelTimer_=function(){this.JSC$17316_backChannelTimerId_=null;this.JSC$17312_channelDebug_.debug("Creating new HttpRequest");this.JSC$17316_backChannelRequest_=new Gm(this,this.JSC$17312_channelDebug_,this.sid_,"rpc",this.JSC$17316_backChannelAttemptId_);this.JSC$17316_backChannelRequest_.JSC$17304_extraHeaders_=this.JSC$17316_extraHeaders_;this.JSC$17316_backChannelRequest_.JSC$17304_readyStateChangeThrottleMs_=0;var I=this.JSC$17316_backChannelUri_.clone();_.q9(I,
"RID","rpc");_.q9(I,"SID",this.sid_);_.q9(I,"CI",this.useChunked_?"0":"1");_.q9(I,"AID",this.JSC$17316_lastArrayId_);v6(this,I);_.q9(I,"TYPE","xmlhttp");NoL(this.JSC$17316_backChannelRequest_,I,!0,this.JSC$17316_hostPrefix_,!1);this.JSC$17312_channelDebug_.debug("New Request created")};
var AB=function(I,C,y){I.JSC$17312_channelDebug_.debug("Test Connection Finished");I.useChunked_=I.secondTestResults_==null?y:!I.secondTestResults_;I.JSC$17316_lastStatusCode_=C.JSC$17311_lastStatusCode_;I.asyncTest_||x78(I)},ApY=function(I,C){I.JSC$17312_channelDebug_.debug("Test Connection Failed");
I.JSC$17316_lastStatusCode_=C.JSC$17311_lastStatusCode_;Kk(I,2)};
gD.prototype.JSC$17311_onRequestData=function(I,C){if(this.state_!=0&&(this.JSC$17316_backChannelRequest_==I||this.forwardChannelRequest_==I))if(this.JSC$17316_lastStatusCode_=I.JSC$17304_lastStatusCode_,this.forwardChannelRequest_==I&&this.state_==3)if(this.JSC$17316_channelVersion_>7){try{var y=this.JSC$17312_parser_.parse(C)}catch(k){y=null}if(Array.isArray(y)&&y.length==3)if(C=y,C[0]==0)a:if(this.JSC$17312_channelDebug_.debug("Server claims our backchannel is missing."),this.JSC$17316_backChannelTimerId_)this.JSC$17312_channelDebug_.debug("But we are currently starting the request.");
else{if(this.JSC$17316_backChannelRequest_)if(this.JSC$17316_backChannelRequest_.JSC$17304_requestStartTime_+3E3<this.forwardChannelRequest_.JSC$17304_requestStartTime_)Bo8(this),this.JSC$17316_backChannelRequest_.cancel(),this.JSC$17316_backChannelRequest_=null;else break a;else this.JSC$17312_channelDebug_.warning("We do not have a BackChannel established");O6j(this);YJ(19)}else this.JSC$17316_lastPostResponseArrayId_=C[1],I=this.JSC$17316_lastPostResponseArrayId_-this.JSC$17316_lastArrayId_,0<
I&&(C=C[2],this.JSC$17312_channelDebug_.debug(C+" bytes (in "+I+" arrays) are outstanding on the BackChannel"),C<37500&&this.useChunked_&&this.JSC$17316_backChannelRetryCount_==0&&!this.JSC$17316_deadBackChannelTimerId_&&(this.JSC$17316_deadBackChannelTimerId_=NA((0,_.DD)(this.JSC$17316_onBackChannelDead_,this),6E3)));else this.JSC$17312_channelDebug_.debug("Bad POST response data returned"),Kk(this,11)}else C!="y2f%"&&(this.JSC$17312_channelDebug_.debug("Bad data returned - missing/invald magic cookie"),
Kk(this,11));else this.JSC$17316_backChannelRequest_==I&&Bo8(this),_.eI(C)||(I=this.JSC$17312_parser_.parse(C),this.onInput_(I))};
gD.prototype.JSC$17316_onBackChannelDead_=function(){this.JSC$17316_deadBackChannelTimerId_!=null&&(this.JSC$17316_deadBackChannelTimerId_=null,this.JSC$17316_backChannelRequest_.cancel(),this.JSC$17316_backChannelRequest_=null,O6j(this),YJ(20))};
var Bo8=function(I){I.JSC$17316_deadBackChannelTimerId_!=null&&(_.sF.clearTimeout(I.JSC$17316_deadBackChannelTimerId_),I.JSC$17316_deadBackChannelTimerId_=null)};
gD.prototype.JSC$17311_onRequestComplete=function(I){this.JSC$17312_channelDebug_.debug("Request complete");if(this.JSC$17316_backChannelRequest_==I){Bo8(this);this.JSC$17316_backChannelRequest_=null;var C=2}else if(this.forwardChannelRequest_==I)this.forwardChannelRequest_=null,C=1;else return;this.JSC$17316_lastStatusCode_=I.JSC$17304_lastStatusCode_;if(this.state_!=0)if(I.JSC$17304_successful_)if(C==1){C=I.JSC$17304_postData_?I.JSC$17304_postData_.length:0;I=Date.now()-I.JSC$17304_requestStartTime_;
var y=wCP;y.dispatchEvent(new WaH(y,C,I,this.JSC$17316_forwardChannelRetryCount_));Z6Y(this);this.handler_&&this.handler_.JSC$17323_channelSuccess(this,this.pendingMaps_);this.pendingMaps_.length=0}else t_R(this);else{y=I.getLastError();if(y==3||y==7||y==0&&this.JSC$17316_lastStatusCode_>0)this.JSC$17312_channelDebug_.debug("Not retrying due to error type");else{this.JSC$17312_channelDebug_.debug("Maybe retrying, last error: "+PbB(y,this.JSC$17316_lastStatusCode_));var k;if(k=C==1)this.forwardChannelRequest_||
this.JSC$17316_forwardChannelTimerId_||this.state_==1||this.JSC$17316_forwardChannelRetryCount_>=2?k=!1:(this.JSC$17312_channelDebug_.debug("Going to retry POST"),this.JSC$17316_forwardChannelTimerId_=NA((0,_.DD)(this.JSC$17316_onStartForwardChannelTimer_,this,I),JpB(this,this.JSC$17316_forwardChannelRetryCount_)),this.JSC$17316_forwardChannelRetryCount_++,k=!0);if(k||C==2&&O6j(this))return;this.JSC$17312_channelDebug_.debug("Exceeded max number of retries")}this.JSC$17312_channelDebug_.debug("Error: HTTP request failed");
switch(y){case 1:Kk(this,5);break;case 4:Kk(this,10);break;case 3:Kk(this,6);break;case 7:Kk(this,12);break;default:Kk(this,2)}}};
var JpB=function(I,C){var y=5E3+Math.floor(Math.random()*1E4);I.isActive()||(I.JSC$17312_channelDebug_.debug("Inactive channel"),y*=2);return y*C};
gD.prototype.onInput_=function(I){for(var C=0;C<I.length;C++){var y=I[C];this.JSC$17316_lastArrayId_=y[0];y=y[1];this.state_==2?y[0]=="c"?(this.sid_=y[1],this.JSC$17316_hostPrefix_=y[2],y=y[3],y!=null?this.JSC$17316_channelVersion_=y:this.JSC$17316_channelVersion_=6,this.state_=3,this.handler_&&this.handler_.JSC$17323_channelOpened(),this.JSC$17316_backChannelUri_=KaK(this,this.JSC$17316_hostPrefix_,this.JSC$17316_path_),t_R(this)):y[0]=="stop"&&Kk(this,7):this.state_==3&&(y[0]=="stop"?Kk(this,7):
y[0]!="noop"&&this.handler_&&this.handler_.JSC$17323_channelHandleArray(y),this.JSC$17316_backChannelRetryCount_=0)}};
gD.prototype.JSC$17316_ensureInState_=function(I){if(!_.qz(arguments,this.state_))throw Error("Ak`"+this.state_);};
var Kk=function(I,C){I.JSC$17312_channelDebug_.info("Error code "+C);if(C==2||C==9){var y=null;I.handler_&&(y=null);var k=(0,_.DD)(I.testGoogleComCallback_,I);y||(y=new _.t$("//www.google.com/images/cleardot.gif"),_.ya(y));oBy(y.toString(),1E4,k)}else YJ(2);I.onError_(C)};
gD.prototype.testGoogleComCallback_=function(I){I?(this.JSC$17312_channelDebug_.info("Successfully pinged google.com"),YJ(2)):(this.JSC$17312_channelDebug_.info("Failed to ping google.com"),YJ(1),this.onError_(8))};
gD.prototype.onError_=function(I){this.JSC$17312_channelDebug_.debug("HttpChannel: error - "+I);this.state_=0;this.handler_&&this.handler_.JSC$17323_channelError(I);m7L(this);qVR(this)};
var m7L=function(I){I.state_=0;I.JSC$17316_lastStatusCode_=-1;if(I.handler_)if(I.pendingMaps_.length==0&&I.JSC$17312_outgoingMaps_.length==0)I.handler_.JSC$17323_channelClosed();else{I.JSC$17312_channelDebug_.debug("Number of undelivered maps, pending: "+I.pendingMaps_.length+", outgoing: "+I.JSC$17312_outgoingMaps_.length);var C=_.tX(I.pendingMaps_),y=_.tX(I.JSC$17312_outgoingMaps_);I.pendingMaps_.length=0;I.JSC$17312_outgoingMaps_.length=0;I.handler_.JSC$17323_channelClosed(C,y)}},YVL=function(I,
C){C=SVS(I,null,C);
I.JSC$17312_channelDebug_.debug("GetForwardChannelUri: "+C);return C},KaK=function(I,C,y){C=SVS(I,I.JSC$17311_shouldUseSecondaryDomains()?C:null,y);
I.JSC$17312_channelDebug_.debug("GetBackChannelUri: "+C);return C},SVS=function(I,C,y){var k=_.dQ(y);
if(k.JSC$7905_domain_!="")C&&_.JZ(k,C+"."+k.JSC$7905_domain_),_.Ov(k,k.JSC$7905_port_);else{var F=window.location;k=PkL(F.protocol,C?C+"."+F.hostname:F.hostname,+F.port,y)}I.JSC$17316_extraParams_&&_.Le.forEach(I.JSC$17316_extraParams_,function(z,c){_.q9(k,c,z)});
_.q9(k,"VER",I.JSC$17316_channelVersion_);v6(I,k);return k};
gD.prototype.JSC$17311_createXhrIo=function(I){if(I)throw Error("xk");I=new _.Xn;I.JSC$7668_withCredentials_=!1;return I};
gD.prototype.isActive=function(){return!!this.handler_&&this.handler_.isActive(this)};
gD.prototype.notifyServerReachabilityEvent=function(I){var C=wCP;C.dispatchEvent(new d7j(C,I))};
gD.prototype.JSC$17311_shouldUseSecondaryDomains=function(){return!1};
new VzL;var aQL=function(){};
_.u=aQL.prototype;_.u.JSC$17323_channelOpened=function(){};
_.u.JSC$17323_channelHandleArray=function(){};
_.u.JSC$17323_channelSuccess=function(){};
_.u.JSC$17323_channelError=function(){};
_.u.JSC$17323_channelClosed=function(){};
_.u.JSC$17323_getAdditionalParams=function(){return{}};
_.u.isActive=function(){return!0};var M_H=function(I){I.front_.length===0&&(I.front_=I.back_,I.front_.reverse(),I.back_=[])};
_.u=FrY.prototype;_.u.enqueue=function(I){this.back_.push(I)};
_.u.peek=function(){M_H(this);return _.K9(this.front_)};
_.u.getCount=function(){return this.front_.length+this.back_.length};
_.u.isEmpty=function(){return this.front_.length===0&&this.back_.length===0};
_.u.clear=function(){this.front_=[];this.back_=[]};
_.u.contains=function(I){return _.qz(this.front_,I)||_.qz(this.back_,I)};
_.u.remove=function(I){var C=this.front_;var y=Array.prototype.lastIndexOf.call(C,I,C.length-1);y>=0?(_.UF(C,y),C=!0):C=!1;return C||_.Hs(this.back_,I)};
_.u.getValues=function(){for(var I=[],C=this.front_.length-1;C>=0;--C)I.push(this.front_[C]);C=this.back_.length;for(var y=0;y<C;++y)I.push(this.back_[y]);return I};var W6=function(I){this.JSC$17327_map_=new _.kr;this.size=0;I&&this.addAll(I)},Isy=function(I){var C=typeof I;
return C=="object"&&I||C=="function"?"o"+_.ow(I):C.charAt(0)+I};
_.u=W6.prototype;_.u.getCount=function(){return this.JSC$17327_map_.size};
_.u.add=function(I){this.JSC$17327_map_.set(Isy(I),I);this.size=this.JSC$17327_map_.size};
_.u.addAll=function(I){I=_.Hf(I);for(var C=I.length,y=0;y<C;y++)this.add(I[y]);this.size=this.JSC$17327_map_.size};
_.u.removeAll=function(I){I=_.Hf(I);for(var C=I.length,y=0;y<C;y++)this.remove(I[y]);this.size=this.JSC$17327_map_.size};
_.u.delete=function(I){I=this.JSC$17327_map_.remove(Isy(I));this.size=this.JSC$17327_map_.size;return I};
_.u.remove=function(I){return this.delete(I)};
_.u.clear=function(){this.JSC$17327_map_.clear();this.size=0};
_.u.isEmpty=function(){return this.JSC$17327_map_.size===0};
_.u.has=function(I){return this.JSC$17327_map_.containsKey(Isy(I))};
_.u.contains=function(I){return this.JSC$17327_map_.containsKey(Isy(I))};
_.u.getValues=function(){return this.JSC$17327_map_.getValues()};
_.u.values=function(){return this.JSC$17327_map_.values()};
_.u.clone=function(){return new W6(this)};
_.u.equals=function(I){return this.getCount()==wPS(I)&&CuH(this,I)};
var CuH=function(I,C){var y=wPS(C);if(I.getCount()>y)return!1;!(C instanceof W6)&&y>5&&(C=new W6(C));return nsM(I,function(k){var F=C;return F.contains&&typeof F.contains=="function"?F.contains(k):F.containsValue&&typeof F.containsValue=="function"?F.containsValue(k):_.Mz(F)||typeof F==="string"?_.qz(F,k):_.Le.containsValue(F,k)})};
W6.prototype.__iterator__=function(){return this.JSC$17327_map_.__iterator__(!1)};
W6.prototype[Symbol.iterator]=function(){return this.values()};var siy={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(I){return(this._clampValue(I)-this.min)/(this.max-this.min)},
_clampValue:function(I){return Math.min(this.max,Math.max(this.min,this._calcStep(I)))},
_calcStep:function(I){I=parseFloat(I);if(!this.step)return I;I=Math.round((I-this.min)/this.step);return this.step<1?I/(1/this.step)+this.min:I*this.step+this.min},
_validateValue:function(){var I=this._clampValue(this.value);this.value=this.oldValue=isNaN(I)?this.oldValue:I;return this.value!==I},
_update:function(){this._validateValue();this._setRatio(this._calcRatio(this.value)*100)}};var ory;var ywL;_.pK({_template:function(){if(ywL!==void 0)return ywL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;ory===void 0&&(ory=document.createElement("template"));var k=ory;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return ywL=I},
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(){_.hn(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(I){I.keyCode===27&&(I.preventDefault(),this.close())},
_track:function(I){if(!this.persistent&&!this.disableSwipe)switch(I.preventDefault(),I.detail.state){case "start":this._trackStart(I);break;case "track":this._trackMove(I);break;case "end":this._trackEnd(I)}},
_trackStart:function(){this._drawerState=this._DRAWER_STATE.TRACKING;var I=this.$.contentContainer.getBoundingClientRect();this._savedWidth=I.width;this._translateOffset=this.position==="left"?I.left:I.right-window.innerWidth;this._trackDetails=[];this._styleTransitionDuration(0);this.style.visibility="visible"},
_trackMove:function(I){this._trackDetails&&(this._translateDrawer(I.detail.dx+this._translateOffset),this._trackDetails.push({dx:I.detail.dx,timeStamp:Date.now()}))},
_trackEnd:function(I){if(this._trackDetails){var C=I.detail.dx+this._translateOffset,y=this.getWidth();C=this.position==="left"?C>=0||C<=-y:C<=0||C>=y;if(!C){var k=this._trackDetails;this._trackDetails=null;this._flingDrawer(I,k);if(this._drawerState===this._DRAWER_STATE.FLINGING)return}y/=2;I.detail.dx<-y?this.opened=this.position==="right":I.detail.dx>y&&(this.opened=this.position==="left");C?this.debounce("_resetDrawerState",this._resetDrawerState):this.debounce("_resetDrawerState",this._resetDrawerState,
this.transitionDuration);this._styleTransitionDuration(this.transitionDuration);this._resetDrawerTranslate();this.style.visibility=""}},
_calculateVelocity:function(I,C){for(var y=Date.now(),k=y-100,F,z=0,c=C.length-1;z<=c;){var r=z+c>>1,w=C[r];w.timeStamp>=k?(F=w,c=r-1):z=r+1}return F?(I.detail.dx-F.dx)/(y-F.timeStamp||1):0},
_flingDrawer:function(I,C){C=this._calculateVelocity(I,C);if(!(Math.abs(C)<this._MIN_FLING_THRESHOLD)){this._drawerState=this._DRAWER_STATE.FLINGING;I=I.detail.dx+this._translateOffset;var y=this.getWidth(),k=this.position==="left",F=C>0;F?(C=Math.max(C,this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="left"):(C=Math.min(C,-this._MIN_TRANSITION_VELOCITY),this.opened=this.position==="right");C=this._FLING_INITIAL_SLOPE*(!F&&k?-(I+y):F&&!k?y-I:-I)/C;this._styleTransitionDuration(C);this._styleTransitionTimingFunction(this._FLING_TIMING_FUNCTION);
this._resetDrawerTranslate();this.debounce("_resetDrawerState",this._resetDrawerState,C)}},
_styleTransitionDuration:function(I){this.style.transitionDuration=I+"ms";this.$.contentContainer.style.transitionDuration=I+"ms";this.$.scrim.style.transitionDuration=I+"ms"},
_styleTransitionTimingFunction:function(I){this.$.contentContainer.style.transitionTimingFunction=I;this.$.scrim.style.transitionTimingFunction=I},
_translateDrawer:function(I){var C=this.getWidth();this.position==="left"?(I=Math.max(-C,Math.min(I,0)),this.$.scrim.style.opacity=1+I/C):(I=Math.max(0,Math.min(I,C)),this.$.scrim.style.opacity=1-I/C);this.translate3d(I+"px","0","0",this.$.contentContainer)},
_resetDrawerTranslate:function(){this.$.scrim.style.opacity="";this.transform("",this.$.contentContainer)},
_resetDrawerState:function(){var I=this._drawerState;I===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;I!==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=""),I!==this._DRAWER_STATE.INIT&&this.fire("app-drawer-transitioned"))},
resetLayout:function(){this.fire("app-reset-layout")},
_setKeyboardFocusTrap:function(){if(!this.noFocusTrap){var I=_.lG(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"])');I.length>0?(this._firstTabStop=I[0],this._lastTabStop=I[I.length-1]):
this._lastTabStop=this._firstTabStop=null;(I=this.getAttribute("tabindex"))&&parseInt(I,10)>-1?this.focus():this._firstTabStop&&this._firstTabStop.focus()}},
_tabKeydownHandler:function(I){this.noFocusTrap||this._drawerState!==this._DRAWER_STATE.OPENED||I.keyCode!==9||(I.shiftKey?this._firstTabStop&&_.lG(I).localTarget===this._firstTabStop&&(I.preventDefault(),this._lastTabStop.focus()):this._lastTabStop&&_.lG(I).localTarget===this._lastTabStop&&(I.preventDefault(),this._firstTabStop.focus()))},
_openedPersistentChanged:function(I,C){this.toggleClass("visible",I&&!C,this.$.scrim);this.debounce("_resetDrawerState",this._resetDrawerState,this.transitionDuration)},
_MIN_FLING_THRESHOLD:.2,_MIN_TRANSITION_VELOCITY:1.2,_FLING_TIMING_FUNCTION:"cubic-bezier(0.667, 1, 0.667, 1)",_FLING_INITIAL_SLOPE:1.5,_DRAWER_STATE:{INIT:0,OPENED:1,OPENED_PERSISTENT:2,CLOSED:3,TRACKING:4,FLINGING:5}});var k_P;var FqY;_.pK({_template:function(){if(FqY!==void 0)return FqY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;k_P===void 0&&(k_P=document.createElement("template"));var k=k_P;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return FqY=I},
is:"tp-yt-paper-progress",behaviors:[siy],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(I){this.toggleClass("indeterminate",I,this.$.primaryProgress)},
_transformProgress:function(I,C){I.style.transform=I.style.webkitTransform="scaleX("+C/100+")"},
_mainRatioChanged:function(I){this._transformProgress(this.$.primaryProgress,I)},
_progressChanged:function(I,C,y,k,F){I=this._clampValue(I);C=this._clampValue(C);var z=this._calcRatio(I)*100,c=this._calcRatio(C)*100;this._setSecondaryRatio(z);this._transformProgress(this.$.secondaryProgress,z);this._transformProgress(this.$.primaryProgress,c);this.secondaryProgress=I;F?this.removeAttribute("aria-valuenow"):this.setAttribute("aria-valuenow",C);this.setAttribute("aria-valuemin",y);this.setAttribute("aria-valuemax",k)},
_disabledChanged:function(I){this.setAttribute("aria-disabled",I?"true":"false")},
_hideSecondaryProgress:function(I){return I===0}});var uoR;var ztj;var TkH=function(){};
_.u=TkH.prototype;_.u.registered=function(){};
_.u.addOwnKeyBinding=function(){};
_.u.removeOwnKeyBindings=function(){};
_.u.keyboardEventMatchesKeys=function(){};
_.u._collectKeyBindings=function(){};
_.u._prepKeyBindings=function(){};
_.u._addKeyBinding=function(){};
_.u._resetKeyEventListeners=function(){};
_.u._listenKeyEventListeners=function(){};
_.u._unlistenKeyEventListeners=function(){};
_.u._onKeyBindingEvent=function(){};
_.u._triggerKeyHandler=function(){};
_.u._tapHandler=function(){};
_.u._focusChanged=function(){};
_.u._detectKeyboardFocus=function(){};
_.u._userActivate=function(){};
_.u._upHandler=function(){};
_.u._spaceKeyDownHandler=function(){};
_.u._spaceKeyUpHandler=function(){};
_.u._asyncClick=function(){};
_.u._pressedChanged=function(){};
_.u._ariaActiveAttributeChanged=function(){};
_.u._activeChanged=function(){};
_.u._controlStateChanged=function(){};
_.u._changedButtonState=function(){};
_.u._focusBlurHandler=function(){};
_.u._disabledChanged=function(){};
_.u._changedControlState=function(){};
_.u._buttonStateChanged=function(){};
_.u._downHandler=function(){};
_.u.ensureRipple=function(){};
_.u.getRipple=function(){};
_.u.hasRipple=function(){};
_.u._noinkChanged=function(){};
_.u._calcRatio=function(){};
_.u._clampValue=function(){};
_.u._calcStep=function(){};
_.u._validateValue=function(){};
_.u._update=function(){};
_.u._setImmediateValue=function(){};
_.u._setExpand=function(){};
_.u._setDragging=function(){};
_.u._setTransiting=function(){};
_.u._setMarkers=function(){};
_.u._setPressed=function(){};
_.u._setPointerDown=function(){};
_.u._setReceivedFocusFromKeyboard=function(){};
_.u._setFocused=function(){};
_.u._setRatio=function(){};
TkH=_.pK({_template:function(){if(ztj!==void 0)return ztj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;uoR===void 0&&(uoR=document.createElement("template"));var k=uoR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return ztj=I},
is:"tp-yt-paper-slider",behaviors:[_.Ds,_.Vu,_.Tlc,siy],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&&_.G2(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(I,C,y){this.setAttribute("aria-valuemin",C);this.setAttribute("aria-valuemax",y);this.setAttribute("aria-valuenow",I);this._positionKnob(this._calcRatio(I)*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(I){this._setImmediateValue(this._calcStep(this._calcKnobPosition(I)));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(I){return(this.max-this.min)*I/100+this.min},
_onTrack:function(I){I.stopPropagation();switch(I.detail.state){case "start":this._trackStart(I);break;case "track":this._trackX(I);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(I){this.dragging||this._trackStart(I);this._x=this._startx+Math.min(this._maxx,Math.max(this._minx,I.detail.dx*(this._isRTL?-1:1)));I=this._calcStep(this._calcKnobPosition(this._x/this._w*100));this._setImmediateValue(I);I=this._calcRatio(this.immediateValue)*this._w-this._knobstartx;this.translate3d(I+"px",0,0,this.$.sliderKnob)},
_trackEnd:function(){var I=this.$.sliderKnob.style;this.$.sliderKnob.classList.remove("dragging");this._setDragging(!1);this._resetKnob();this.value=this.immediateValue;I.transform=I.webkitTransform="";this.fire("change",{composed:!0})},
_knobdown:function(I){this._expandKnob();I.preventDefault();this.focus()},
_bartrack:function(I){this._allowBarEvent(I)&&this._onTrack(I)},
_barclick:function(I){this._w=this.$.sliderBar.offsetWidth;var C=this.$.sliderBar.getBoundingClientRect();C=(I.detail.x-C.left)/this._w*100;this._isRTL&&(C=100-C);var y=this.ratio;this._setTransiting(!0);this._positionKnob(C);y===this.ratio&&this._setTransiting(!1);this.async(function(){this.fire("change",{composed:!0})});
I.preventDefault();this.focus()},
_bardown:function(I){this._allowBarEvent(I)&&(this.debounce("expandKnob",this._expandKnob,60),this._barclick(I))},
_knobTransitionEnd:function(I){I.target===this.$.sliderKnob&&this._setTransiting(!1)},
_updateMarkers:function(I,C,y,k){k||this._setMarkers([]);C=Math.round((y-C)/this.step);C>I&&(C=I);if(C<0||!isFinite(C))C=0;this._setMarkers(Array(C))},
_mergeClasses:function(I){return Object.keys(I).filter(function(C){return I[C]}).join(" ")},
_getClassNames:function(){return this._mergeClasses({disabled:this.disabled,pin:this.pin,snaps:this.snaps,ring:this.immediateValue<=this.min,expand:this.expand,dragging:this.dragging,transiting:this.transiting,editable:this.editable})},
_allowBarEvent:function(I){return!this.ignoreBarTouch||I.detail.sourceEvent instanceof MouseEvent},
get _isRTL(){this.__isRTL===void 0&&(this.__isRTL=window.getComputedStyle(this).direction==="rtl");return this.__isRTL},_leftKey:function(I){this._isRTL?this._incrementKey(I):this._decrementKey(I)},
_rightKey:function(I){this._isRTL?this._decrementKey(I):this._incrementKey(I)},
_incrementKey:function(I){this.disabled||(I.detail.key==="end"?this.value=this.max:this.increment(),this.fire("change"),I.preventDefault())},
_decrementKey:function(I){this.disabled||(I.detail.key==="home"?this.value=this.min:this.decrement(),this.fire("change"),I.preventDefault())},
_changeValue:function(I){this.value=I.target.value;this.fire("change",{composed:!0})},
_inputKeyDown:function(I){I.stopPropagation()},
_createRipple:function(){this._rippleContainer=this.$.sliderKnob;return _.z9q._createRipple.call(this)},
_focusedChanged:function(I){I&&this.ensureRipple();this.hasRipple()&&(this._ripple.style.display=I?"":"none",this._ripple.holdDown=I)}});var cwR;var etK;var dD=null,rwL=function(){};
_.u=rwL.prototype;_.u.fit=function(){};
_.u._discoverInfo=function(){};
_.u.resetFit=function(){};
_.u.refit=function(){};
_.u.position=function(){};
_.u.constrain=function(){};
_.u._sizeDimension=function(){};
_.u.__sizeDimension=function(){};
_.u.center=function(){};
_.u.__getNormalizedRect=function(){};
_.u.__getOffscreenArea=function(){};
_.u.__getPosition=function(){};
_.u.notifyResize=function(){};
_.u.assignParentResizable=function(){};
_.u.stopResizeNotificationsFor=function(){};
_.u._subscribeIronResize=function(){};
_.u._unsubscribeIronResize=function(){};
_.u.resizerShouldNotify=function(){};
_.u._onDescendantIronResize=function(){};
_.u._fireResize=function(){};
_.u._onIronRequestResizeNotifications=function(){};
_.u._parentResizableChanged=function(){};
_.u._notifyDescendant=function(){};
_.u._requestResizeNotifications=function(){};
_.u._findParent=function(){};
_.u.toggle=function(){};
_.u.open=function(){};
_.u.close=function(){};
_.u.cancel=function(){};
_.u.invalidateTabbables=function(){};
_.u._ensureSetup=function(){};
_.u._canceledChanged=function(){};
_.u._withBackdropChanged=function(){};
_.u._prepareRenderOpened=function(){};
_.u._finishRenderOpened=function(){};
_.u._finishRenderClosed=function(){};
_.u._preparePositioning=function(){};
_.u._finishPositioning=function(){};
_.u._applyFocus=function(){};
_.u._onCaptureClick=function(){};
_.u._onCaptureFocus=function(){};
_.u._onCaptureEsc=function(){};
_.u._onCaptureTab=function(){};
_.u._onIronResize=function(){};
_.u._onNodesChange=function(){};
_.u.__ensureFirstLastFocusables=function(){};
_.u.__openedChanged=function(){};
_.u.__deraf=function(){};
_.u.__updateScrollObservers=function(){};
_.u.__addScrollListeners=function(){};
_.u.__removeScrollListeners=function(){};
_.u.__isValidScrollAction=function(){};
_.u.__onCaptureScroll=function(){};
_.u.__saveScrollPosition=function(){};
_.u.__restoreScrollPosition=function(){};
_.u._setCanceled=function(){};
rwL=_.pK({_template:function(){if(etK!==void 0)return etK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;cwR===void 0&&(cwR=document.createElement("template"));var k=cwR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);return etK=I},
is:"tp-yt-paper-toast",behaviors:[_.Zs],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(){_.DQ._warn("`visible` is deprecated, use `opened` instead");return this.opened},get _canAutoClose(){return this.duration>0&&this.duration!==Infinity},created:function(){this._autoClose=null;_.WV.requestAvailability()},
show:function(I){typeof I=="string"&&(I={text:I});for(var C in I)C.indexOf("_")===0?_.DQ._warn('The property "'+C+'" is private and was not set.'):C in this?this[C]=I[C]:_.DQ._warn('The property "'+C+'" is not valid.');this.open()},
hide:function(){this.close()},
__onTransitionEnd:function(I){I&&I.target===this&&I.propertyName==="opacity"&&(this.opened?this._finishRenderOpened():this._finishRenderClosed())},
_openedChanged:function(){this._autoClose!==null&&(this.cancelAsync(this._autoClose),this._autoClose=null);this.opened?(dD&&dD!==this&&dD.close(),dD=this,this._fireIronAnnounce(),this._canAutoClose&&(this._autoClose=this.async(this.close,this.duration))):dD===this&&(dD=null);_.mq._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(I){this.positionTarget=I},
_fireIronAnnounce:function(){this.noIronAnnounce||this.fire("iron-announce",{text:this.label||this.text})}});var iVK=new _.J("disablePersonalizationAction");var sHR=new _.J("showDmaConsentFlowCommand");var omY=new _.J("showMmgNoticeCommand");var wVR=new _.J("saveConsentAction");var nrL=function(I){this.internalArrayDoNotAccessOrElseMightBeUndefinedWhoKnows=_.OH(I)};
_.R(nrL,_.GR);var PuL=_.aSm(nrL);var LqL=new _.J("updateTopbarAvatarAction");var DuR=new _.J("channelHandleValidationResultRenderer");var pVY=new _.J("generateHandleFromNameResultRenderer");var QiK=new _.J("channelHandleInputRenderer");var NkL=new _.J("copyLinkRenderer");var VcS=new _.J("timedCommand");var jiB=new _.J("clearCookieAction");var ls8=new _.J("getMultiPageMenuAction");var XVS=new _.J("addToGuideSectionAction"),$uR=new _.J("removeFromGuideSectionAction");var RtR=new _.J("updateNotificationsUnseenCountAction");var bVK=new _.J("resetChannelUnreadCountCommand");var YJM=new _.J("resetSubscriptionsUnreadDotCommand");var G_y=new _.J("selectLanguageCommand");var L0P=new _.J("sendFeedbackAction");var fsH=new _.J("uploadImageToScottyCommand");var SJR=new _.J("registerPromoCommand");var Kqy=new _.J("setPushNotificationsEnabledCommand");var AwB=new _.J("desktopTopbarRenderer");var grL=new _.J("surveyFollowUpRenderer");var vrL=new _.J("handlesClaimingRadioOptionRenderer");var Wqj=new _.J("hotkeyDialogRenderer");var duj=new _.J("modifyReportFormCommand");var xuK=new _.J("accountLinkCommand");var qJK=new _.J("accountUnlinkCommand");var muL=new _.J("logAccountLinkingEventCommand");var ZVP=new _.J("guideCollapsibleEntryRenderer");var BkH=new _.J("guideDownloadsEntryRenderer");var xJ=new _.J("guideEntryRenderer");var ErP=new _.J("getLocationCommand");var htP=new _.J("locationCollectionCommand");var UuR=new _.J("storiesItemViewModel");var HVj=new _.J("addToRemoteQueueAction");var tcP=new _.J("insertInRemoteQueueAction");var JwK=new _.J("removeFromRemoteQueueAction");var OVj=new _.J("notificationRenderer");var qqR=new _.J("localWatchHistoryCommand");var asR=new _.J("pdgBuyFlowHeaderRenderer");var McL=new _.J("pdgColorSliderRenderer");var INL=new _.J("pdgCommentOptionRenderer");var Cvj=new _.J("pdgCommentPreviewRenderer");var s$K=new _.J("superVodSelectableItemButtonRenderer");var ofL=new _.J("switchButtonRenderer");var yo8=new _.J("upsellDialogRenderer");var kXR=new _.J("feedbackQuestionRenderer"),F_B=new _.J("feedbackOptionRenderer");var uHY=new _.J("sponsorshipsTierRenderer"),zSK=new _.J("sponsorshipsPromotionChannelRenderer");var TOH=new _.J("simpleSurveyMessageRenderer");var Lh8=new _.J("invokeInstrumentManagerAction");var coR=new _.J("logYpcFlowDismissCommand");var eSY=new _.J("logYpcFlowStartCommand");var roy=new _.J("unlimitedCreateFamilyEndpoint");var iZj=new _.J("iconBadgeRenderer");var WjR=new _.J("collaborativePlaylistVisibilityValidationRule");var w3K=function(I){_.r1.call(this,"channelMessage");this.message=I};
_.R(w3K,_.r1);var nfj=function(I){_.r1.call(this,"channelError");this.error=I};
_.R(nfj,_.r1);var PvY={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"},L_K={UNKNOWN_THEME:"u",CLASSIC:"cl",KIDS:"k",INSTANT:"i",CREATOR:"cr",MUSIC:"m",GAMING:"g",UNPLUGGED:"up"},DDR={AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange"},p3Y={NOW_PLAYING:"nowPlaying",
ON_STATE_CHANGE:"onStateChange",AD_PLAYING:"adPlaying",ON_AD_STATE_CHANGE:"onAdStateChange",NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"},Q$K={NOW_PLAYING_SHORTS:"nowPlayingShorts",ON_SHORTS_STATE_CHANGE:"onShortsStateChange"};var qZ=function(I){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 _.kr;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";I&&(this.id=I.id||I.name,this.name=I.name,this.clientName=I.clientName?I.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.app=I.app,this.type=I.type||"REMOTE_CONTROL",this.username=I.user||"",this.avatar=I.userAvatarUri||"",this.obfuscatedGaiaId=I.obfuscatedGaiaId||"",this.ownerObfuscatedGaiaId=I.ownerObfuscatedGaiaId||"",this.theme=I.theme||"u",NOK(this,I.capabilities||""),VVR(this,I.compatibleSenderThemes||""),j$j(this,I.experiments||""),
this.remoteControllerUrl=I.remoteControllerUrl||"",this.localChannelEncryptionKey=I.localChannelEncryptionKey||"",this.deviceContext=I.deviceContext,this.brand=I.brand||"",this.model=I.model||"",this.year=I.year||0,this.os=I.os||"",this.osVersion=I.osVersion||"",this.chipset=I.chipset||"",this.mdxDialServerType=I.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN",this.pairingType=I.pairingType||"unknown",I=I.deviceInfo)&&(I=JSON.parse(I),this.brand=I.brand||"",this.model=I.model||"",this.year=I.year||
0,this.os=I.os||"",this.osVersion=I.osVersion||"",this.chipset=I.chipset||"",this.clientName=I.clientName?I.clientName.toUpperCase():"UNKNOWN_INTERFACE",this.mdxDialServerType=I.mdxDialServerType||"MDX_DIAL_SERVER_TYPE_UNKNOWN")};
qZ.prototype.copy=function(){var I={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&&(I.brand=this.brand);
this.model&&(I.model=this.model);this.year&&(I.year=this.year);this.os&&(I.os=this.os);this.osVersion&&(I.osVersion=this.osVersion);this.chipset&&(I.chipset=this.chipset);this.clientName!=="UNKNOWN_INTERFACE"&&(I.clientName=this.clientName);this.mdxDialServerType!=="MDX_DIAL_SERVER_TYPE_UNKNOWN"&&(I.mdxDialServerType=this.mdxDialServerType);I=new qZ(I);I.connected=this.connected;I.remoteControllerUrl=this.remoteControllerUrl;I.localChannelEncryptionKey=this.localChannelEncryptionKey;I.deviceContext=
this.deviceContext;return I};
qZ.prototype.equals=function(I){return I?this.id==I.id:!1};
var NOK=function(I,C){I.capabilities.clear();_.yv(C.split(","),_.D0(_.Le.contains,PvY)).forEach(function(y){I.capabilities.add(y)})},VVR=function(I,C){I.compatibleSenderThemes.clear();
_.yv(C.split(","),_.D0(_.Le.contains,L_K)).forEach(function(y){I.compatibleSenderThemes.add(y)})},j$j=function(I,C){I.experiments.clear();
C.split(",").forEach(function(y){I.experiments.add(y)})};var lNj=function(I,C){this.action=I;this.params=C||{}};_.s0(udR,_.LL);_.u=udR.prototype;_.u.JSC$17363_onTick_=function(){this.JSC$17361_interval_=Math.min(3E5,this.JSC$17361_interval_*2);this.JSC$17363_listener_();this.nextTickTime_&&this.start()};
_.u.start=function(){var I=this.JSC$17361_interval_+15E3*Math.random(),C=this.delay_;C.isActive()||C.start(I);this.nextTickTime_=Date.now()+I};
_.u.stop=function(){this.delay_.stop();this.nextTickTime_=0};
_.u.isActive=function(){return this.delay_.isActive()};
_.u.reset=function(){this.delay_.stop();this.JSC$17361_interval_=5E3};_.s0(jM,aQL);_.u=jM.prototype;_.u.subscribe=function(I,C,y){return this.pubsub_.subscribe(I,C,y)};
_.u.unsubscribe=function(I,C,y){return this.pubsub_.unsubscribe(I,C,y)};
_.u.unsubscribeByKey=function(I){return this.pubsub_.unsubscribeByKey(I)};
_.u.publish=function(I,C){return this.pubsub_.publish.apply(this.pubsub_,arguments)};
_.u.dispose=function(){this.JSC$17364_disposed_||(this.JSC$17364_disposed_=!0,_.Bi(this.pubsub_),this.disconnect(),_.Bi(this.reconnectTimer_),this.reconnectTimer_=null,this.JSC$17364_getXsrfToken_=function(){return""},this.getAuthorizationHeader_=function(){return _.er({})})};
_.u.isDisposed=function(){return this.JSC$17364_disposed_};
_.u.connect=function(I,C,y){var k=this,F,z,c,r;return _.e(function(w){if(w.nextAddress==1)return _.II(w,2),k.useAsyncBrowserChannelHandler_?_.n(w,k.connectPromise_,2):w.jumpTo(2);_.MM(w);if(k.JSC$17364_disposed_||k.JSC$17364_channel_&&k.JSC$17364_channel_.getState()==2)return w.return();k.sCookie_="";k.reconnectTimer_.stop();k.connectionParams_=I||null;k.connectUi_=C||0;F=k.JSC$17364_pathPrefix_+"/test";z=k.JSC$17364_pathPrefix_+"/bind";c=new gD(y?y.firstTestResults:null,y?y.secondTestResults:null,
k.enableAsyncTest_);if(r=k.JSC$17364_channel_)r.handler_=null;c.handler_=k;k.JSC$17364_channel_=c;if(k.useAsyncBrowserChannelHandler_)return k.connectPromise_=X3L(k).then(function(){return $DS(k,F,z,r,y)}),w.return(k.connectPromise_.then(function(){k.connectPromise_=_.er()}));
$DS(k,F,z,r,y);return _.C1(w,0)})};
var $DS=function(I,C,y,k,F){RSL(I);if(I.JSC$17364_channel_){var z=_.Aq("ID_TOKEN"),c=I.JSC$17364_channel_.JSC$17316_extraHeaders_||{};z?c["x-youtube-identity-token"]=z:delete c["x-youtube-identity-token"];I.JSC$17364_channel_.JSC$17316_extraHeaders_=c}bZH(I);k?(k.getState(),I.JSC$17364_channel_.connect(C,y,I.defaultQueryParams_,k.sid_,k.JSC$17316_lastArrayId_)):F?I.JSC$17364_channel_.connect(C,y,I.defaultQueryParams_,F.sessionId,F.arrayId):I.JSC$17364_channel_.connect(C,y,I.defaultQueryParams_)};
jM.prototype.disconnect=function(I){try{this.useAsyncBrowserChannelHandler_&&(this.connectPromise_.cancel(),this.connectPromise_=_.er())}finally{this.disconnectUi_=I||0,this.reconnectTimer_&&this.reconnectTimer_.stop(),RSL(this),this.JSC$17364_channel_&&(this.JSC$17364_channel_.getState()==3&&hXH(this.JSC$17364_channel_),this.JSC$17364_channel_.disconnect()),this.disconnectUi_=0}};
jM.prototype.sendMessage=function(I,C){var y=this,k;return _.e(function(F){switch(F.nextAddress){case 1:_.II(F,2);if(!y.useAsyncBrowserChannelHandler_){F.jumpTo(2);break}return _.n(F,y.connectPromise_,2);case 2:_.MM(F);if(y.JSC$17364_disposed_)return F.return();k={_sc:I};C&&_.Le.extend(k,C);if(y.reconnectTimer_.isActive()||(y.JSC$17364_channel_?y.JSC$17364_channel_.getState():0)==2){y.JSC$17364_pendingMessages_.push(k);F.jumpTo(6);break}if(!y.isChannelOpened()){F.jumpTo(6);break}_.II(F,8);if(!y.useAsyncBrowserChannelHandler_||
Y2L(y,I)){F.jumpTo(8);break}return _.n(F,X3L(y),8);case 8:_.MM(F,0,0,1);y.isChannelOpened()&&(Y2L(y,I)||bZH(y),RSL(y),E1Y(y.JSC$17364_channel_,k));_.C1(F,6,1);break;case 6:_.C1(F,0)}})};
var Y2L=function(I,C){return I.enableMdxAuthForConnectionOnly_?!0:I.disableMdxAuthForAdMessages_?Object.values(DDR).includes(C):I.disableMdxAuthForNonPlaybackMessages_?!Object.values(p3Y).includes(C):I.disableMdxAuthForShortsMessages_?Object.values(Q$K).includes(C):!1};
jM.prototype.JSC$17323_channelOpened=function(){this.reconnectTimer_.reset();this.connectionParams_=null;this.connectUi_=0;if(this.JSC$17364_pendingMessages_.length)if(this.useAsyncBrowserChannelHandler_)GXB(this);else{var I=this.JSC$17364_pendingMessages_;this.JSC$17364_pendingMessages_=[];var C=I.length;bZH(this);fNK(this,I,C);S2M(this)}else S2M(this)};
var GXB=function(I){var C,y;_.e(function(k){if(k.nextAddress==1)return _.II(k,2),_.n(k,X3L(I),2);_.MM(k);C=I.JSC$17364_pendingMessages_;I.JSC$17364_pendingMessages_=[];y=C.length;fNK(I,C,y);S2M(I);return _.C1(k,0)})},fNK=function(I,C,y){for(var k=0;k<y;++k)E1Y(I.JSC$17364_channel_,C[k]);
S2M(I)},S2M=function(I){I.publish("handlerOpened");
I.JSC$17364_channelOpenedCounter.increment("BROWSER_CHANNEL")};
_.u=jM.prototype;_.u.JSC$17323_channelError=function(I){var C=I==2&&this.JSC$17364_channel_.JSC$17316_lastStatusCode_==401;I==4||C||this.reconnectTimer_.start();this.publish("handlerError",I,C);C=Object.keys(v1L).find(function(y){return v1L[y]===I});
this.JSC$17364_channelErrorCounter.increment("BROWSER_CHANNEL",C!=null?C:"UNKNOWN")};
_.u.JSC$17323_channelClosed=function(I,C){if(!this.reconnectTimer_.isActive())this.publish("handlerClosed");else if(C)for(var y=C.length,k=0;k<y;++k){var F=C[k].map;F&&this.JSC$17364_pendingMessages_.push(F)}this.JSC$17364_channelClosedCounter.increment("BROWSER_CHANNEL");I&&this.pendingMapsOnClosedCounter.JSC$7801_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/pending_maps",I.length);C&&this.undeliveredMapsOnClosedCounter.JSC$7804_streamzService.JSC$7659_incrementCounterBy("/client_streamz/youtube/living_room/mdx/browser_channel/undelivered_maps",
C.length)};
_.u.JSC$17323_channelSuccess=function(I,C){C!=null&&I!=null&&this.channelMessageSentCounter.increment()};
_.u.JSC$17323_getAdditionalParams=function(){var I={v:2};this.sCookie_&&(I.gsessionid=this.sCookie_);this.connectUi_!=0&&(I.ui=""+this.connectUi_);this.disconnectUi_!=0&&(I.ui=""+this.disconnectUi_);this.connectionParams_&&_.Le.extend(I,this.connectionParams_);return I};
_.u.JSC$17323_channelHandleArray=function(I){I[0]=="S"?this.sCookie_=I[1]:I[0]=="gracefulReconnect"?(this.reconnectTimer_.start(),this.JSC$17364_channel_.disconnect()):this.publish("handlerMessage",new lNj(I[0],I[1]));this.JSC$17364_channelMessageReceivedCounter.increment("BROWSER_CHANNEL")};
_.u.isChannelOpened=function(){return!!this.JSC$17364_channel_&&this.JSC$17364_channel_.getState()==3};
var RSL=function(I){if(I.JSC$17364_channel_){var C=I.JSC$17364_getXsrfToken_(),y=I.JSC$17364_channel_.JSC$17316_extraHeaders_||{};C?y["x-youtube-lounge-xsrf-token"]=C:delete y["x-youtube-lounge-xsrf-token"];I.JSC$17364_channel_.JSC$17316_extraHeaders_=y}},X3L=function(I){if(I.enableAsyncMdxLibraryWithoutAuthHeaderFetch_)return _.er();
if(!I.enableCachedUpdateAuthorizationHeader_)return K_K(I);I.updateAuthorizationHeaderPromise_===null&&(I.updateAuthorizationHeaderPromise_=K_K(I));return I.updateAuthorizationHeaderPromise_},K_K=function(I){return _.N2(I.getAuthorizationHeader_().then(function(C){Ao8(I,C)}).thenCatch(function(){}),function(){I.updateAuthorizationHeaderPromise_=null})},Ao8=function(I,C){if(I.JSC$17364_channel_){var y=I.JSC$17364_channel_.JSC$17316_extraHeaders_||{};
C&&Object.keys(C).length>0?y=Object.assign({},y,C):delete y.Authorization;I.JSC$17364_channel_.JSC$17316_extraHeaders_=y}},bZH=function(I){I.getAuthorizationHeaderSync_&&!I.useAsyncBrowserChannelHandler_&&Ao8(I,I.getAuthorizationHeaderSync_())};
_.u=jM.prototype;_.u.setLoungeToken=function(I){(this.defaultQueryParams_.loungeIdToken=I)||this.reconnectTimer_.stop();if(this.enableLoungeTokenRefresh_&&this.JSC$17364_channel_){var C=this.JSC$17364_channel_.JSC$17316_extraHeaders_||{};I?C["X-YouTube-LoungeId-Token"]=I:delete C["X-YouTube-LoungeId-Token"];this.JSC$17364_channel_.JSC$17316_extraHeaders_=C}};
_.u.getDeviceId=function(){return this.defaultQueryParams_.id};
_.u.getReconnectTimeout=function(){return this.reconnectTimer_.isActive()?this.reconnectTimer_.nextTickTime_-Date.now():NaN};
_.u.reconnect=function(){var I=this.reconnectTimer_;I.delay_.fire();I.start()};
_.u.safeReconnect_=function(){var I=this.JSC$17364_channel_,C=0;I.JSC$17316_backChannelRequest_&&C++;I.forwardChannelRequest_&&C++;C==0&&this.connect(this.connectionParams_,this.connectUi_)};var GY=function(I,C){var y=I.basePath;I.supportCors&&(y=I.scheme+"://"+I.domain+I.port+I.basePath);return _.hq(y+C,{})};
l5.prototype.sendRequest=function(I,C,y,k,F,z,c){I={format:z?"RAW":"JSON",method:I,context:this,timeout:5E3,withCredentials:!!c,onSuccess:_.D0(this.JSC$17369_onSuccess_,k,!z),onError:_.D0(this.onError_,F),onTimeout:_.D0(this.JSC$17369_onTimeout_,F)};y&&(I.postParams=y,I.headers={"Content-Type":"application/x-www-form-urlencoded"});return _.cN(C,I)};
l5.prototype.JSC$17369_onSuccess_=function(I,C,y,k){C?I(k):I({text:y.responseText})};
l5.prototype.onError_=function(I,C){I(Error("Bk`"+C.status))};
l5.prototype.JSC$17369_onTimeout_=function(I){I(Error("Ck"))};var $0=function(I,C){return!!C&&(I.id==C||I.uuid==C)},gfR=function(I){return{name:I.name,
screenId:I.id,loungeToken:I.token,dialId:I.uuid,screenIdType:I.idType}},vf8=function(I){return new XY(I)},W_L=function(I){return Array.isArray(I)?_.pe(I,vf8):[]},PWS=function(I){if(!I)return"null";
var C=I.token?".."+I.token.slice(-6):"-",y=I.uuid?".."+I.uuid.slice(-6):"-";return'{name:"'+I.name+'",id:'+I.id.substr(0,6)+"..,token:"+(C+",uuid:"+y+",idType:"+I.idType+"}")},EBL=function(I){return Array.isArray(I)?"["+_.pe(I,PWS).join(",")+"]":"null"};var lCB="",Y0=null;var KrM=function(I,C){_.LW.call(this);var y=this;this.handler=I();this.handler.subscribe("handlerOpened",this.JSC$17376_onOpened,this);this.handler.subscribe("handlerClosed",this.onClosed,this);this.handler.subscribe("handlerError",function(k,F){y.onError(F)});
this.handler.subscribe("handlerMessage",this.onMessage,this);this.currentScreenId=C};
_.R(KrM,_.LW);_.u=KrM.prototype;_.u.connect=function(I,C,y){this.handler.connect(I,C,y)};
_.u.disconnect=function(I){this.handler.disconnect(I)};
_.u.reconnect=function(){this.handler.reconnect()};
_.u.getDeviceId=function(){return this.handler.getDeviceId()};
_.u.getReconnectTimeout=function(){return this.handler.getReconnectTimeout()};
_.u.isChannelOpened=function(){return this.handler.isChannelOpened()};
_.u.JSC$17376_onOpened=function(){this.dispatchEvent("channelOpened");var I=this.handler,C=this.currentScreenId;_.ky("yt-remote-session-browser-channel",{firstTestResults:[""],secondTestResults:!I.JSC$17364_channel_.useChunked_,sessionId:I.JSC$17364_channel_.sid_,arrayId:I.JSC$17364_channel_.JSC$17316_lastArrayId_});_.ky("yt-remote-session-screen-id",C);I=DJH();C=p$B();_.qz(I,C)||I.push(C);jCR(I);ViM()};
_.u.onClosed=function(){this.dispatchEvent("channelClosed")};
_.u.onMessage=function(I){this.dispatchEvent(new w3K(I))};
_.u.onError=function(I){this.dispatchEvent(new nfj(I?1:0))};
_.u.sendMessage=function(I,C){this.handler.sendMessage(I,C)};
_.u.setLoungeToken=function(I){this.handler.setLoungeToken(I)};
_.u.dispose=function(){this.handler.dispose()};var ShB=function(I,C,y){var k=this;y=y===void 0?function(){return""}:y;
var F=F===void 0?new ToP:F;var z=z===void 0?new _.rC:z;this.pathPrefix=I;this.defaultQueryParams=C;this.getXsrfToken=y;this.JSC$17379_pubsub=z;this.connectionParams=null;this.disconnectUi=this.connectUi=0;this.channel=null;this.channelState=0;this.reconnectTimer=new udR(function(){var c;((c=k.channel)==null?void 0:dCL((new rp8(c,c.JSC$17287_channel_)).JSC$17297_channel_.forwardChannelRequestPool_))===0&&k.connect(k.connectionParams,k.connectUi)});
this.webChannelMessageHeaders={};this.webChannelMessageUrlParams={};this.JSC$17379_disposed=!1;this.logger=null;this.nonAckedMessagesOnChannelClosed=[];this.lastStatusCode=void 0;this.JSC$17379_channelOpenedCounter=new zyS;this.JSC$17379_channelClosedCounter=new T8R;this.JSC$17379_channelMessageReceivedCounter=new eyY;this.JSC$17379_channelErrorCounter=new r$j};
ShB.prototype.connect=function(I,C){I=I===void 0?{}:I;C=C===void 0?0:C;this.channelState!==2&&(this.reconnectTimer.stop(),this.connectionParams=I,this.connectUi=C,dDM(this),(I=_.Aq("ID_TOKEN"))?this.webChannelMessageHeaders["x-youtube-identity-token"]=I: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 bo(this.pathPrefix,{httpSessionIdParam:"gsessionid",messageHeaders:this.webChannelMessageHeaders,
messageUrlParams:this.webChannelMessageUrlParams}),this.channel.open(),this.channelState=2,xDR(this))};
var xDR=function(I){_.Lv(I.channel,"w",function(){I.channelState=3;I.reconnectTimer.reset();I.connectionParams=null;I.connectUi=0;for(var C=_.T(I.nonAckedMessagesOnChannelClosed),y=C.next();!y.done;y=C.next())y=y.value,I.channel&&I.channel.send(y);I.nonAckedMessagesOnChannelClosed=[];I.publish("webChannelOpened");I.JSC$17379_channelOpenedCounter.increment("WEB_CHANNEL")});
_.Lv(I.channel,"x",function(){I.channelState=0;I.reconnectTimer.isActive()||I.publish("webChannelClosed");var C,y=(C=I.channel)==null?void 0:i6R(new rp8(C,C.JSC$17287_channel_));y&&(I.nonAckedMessagesOnChannelClosed=[].concat(_.Py(y)));I.JSC$17379_channelClosedCounter.increment("WEB_CHANNEL")});
_.Lv(I.channel,"z",function(C){var y=C.data;y[0]==="gracefulReconnect"?(I.reconnectTimer.start(),I.channel&&I.channel.close()):I.publish("webChannelMessage",new lNj(y[0],y[1]));I.lastStatusCode=C.statusCode;I.JSC$17379_channelMessageReceivedCounter.increment("WEB_CHANNEL")});
_.Lv(I.channel,"y",function(){I.lastStatusCode===401||I.reconnectTimer.start();I.publish("webChannelError");I.JSC$17379_channelErrorCounter.increment("WEB_CHANNEL","")})};
_.u=ShB.prototype;_.u.disconnect=function(I){this.disconnectUi=I===void 0?0:I;this.reconnectTimer.stop();dDM(this);this.channel&&(this.disconnectUi!==0?this.webChannelMessageUrlParams.ui=""+this.disconnectUi:delete this.webChannelMessageUrlParams.ui,this.channel.close());this.disconnectUi=0};
_.u.getReconnectTimeout=function(){return this.reconnectTimer.isActive()?this.reconnectTimer.nextTickTime_-Date.now():NaN};
_.u.reconnect=function(){var I=this.reconnectTimer;I.delay_.fire();I.start()};
_.u.sendMessage=function(I,C){this.channel&&(dDM(this),I=Object.assign({},{_sc:I},C),this.channel.send(I))};
_.u.setLoungeToken=function(I){I||this.reconnectTimer.stop();I?this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]=I:delete this.webChannelMessageHeaders["X-YouTube-LoungeId-Token"]};
var dDM=function(I){var C=I.getXsrfToken();C?I.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]=C:delete I.webChannelMessageHeaders["x-youtube-lounge-xsrf-token"]};
_.u=ShB.prototype;_.u.getDeviceId=function(){return this.defaultQueryParams?this.defaultQueryParams.id:""};
_.u.publish=function(I){return this.JSC$17379_pubsub.publish.apply(this.JSC$17379_pubsub,[I].concat(_.Py(_.wa.apply(1,arguments))))};
_.u.subscribe=function(I,C,y){return this.JSC$17379_pubsub.subscribe(I,C,y)};
_.u.unsubscribe=function(I,C,y){return this.JSC$17379_pubsub.unsubscribe(I,C,y)};
_.u.unsubscribeByKey=function(I){return this.JSC$17379_pubsub.unsubscribeByKey(I)};
_.u.dispose=function(){this.JSC$17379_disposed||(this.JSC$17379_disposed=!0,_.Bi(this.JSC$17379_pubsub),this.disconnect(),_.Bi(this.reconnectTimer),this.getXsrfToken=function(){return""})};
_.u.isDisposed=function(){return this.JSC$17379_disposed};var fCH=function(I){_.LW.call(this);this.webChannelService=I();this.webChannelService.subscribe("webChannelOpened",this.JSC$17387_onOpened,this);this.webChannelService.subscribe("webChannelClosed",this.onClosed,this);this.webChannelService.subscribe("webChannelError",this.onError,this);this.webChannelService.subscribe("webChannelMessage",this.onMessage,this)};
_.R(fCH,_.LW);_.u=fCH.prototype;_.u.connect=function(I,C){this.webChannelService.connect(I,C)};
_.u.disconnect=function(I){this.webChannelService.disconnect(I)};
_.u.reconnect=function(){this.webChannelService.reconnect()};
_.u.getDeviceId=function(){return this.webChannelService.getDeviceId()};
_.u.getReconnectTimeout=function(){return this.webChannelService.getReconnectTimeout()};
_.u.isChannelOpened=function(){return this.webChannelService.channelState===3};
_.u.JSC$17387_onOpened=function(){this.dispatchEvent("channelOpened")};
_.u.onClosed=function(){this.dispatchEvent("channelClosed")};
_.u.onMessage=function(I){this.dispatchEvent(new w3K(I))};
_.u.onError=function(){this.dispatchEvent(new nfj(this.webChannelService.lastStatusCode===401?1:0))};
_.u.sendMessage=function(I,C){this.webChannelService.sendMessage(I,C)};
_.u.setLoungeToken=function(I){this.webChannelService.setLoungeToken(I)};
_.u.dispose=function(){this.webChannelService.dispose()};var B8K=Date.now(),ft=null,mJM=Array(50),AF=-1,ZqL=!1;_.s0(gw,_.BU);gw.prototype.getScreens=function(){return this.screens};
gw.prototype.contains=function(I){return!!LrS(this.screens,I)};
gw.prototype.get=function(I){return I?RT(this.screens,I):null};
var q2L=function(I,C){var y=I.get(C.uuid)||I.get(C.id);if(y)return I=y.name,y.id=C.id||y.id,y.name=C.name,y.token=C.token,y.uuid=C.uuid||y.uuid,y.name!=I;I.screens.push(C);return!0},mDR=function(I,C){var y=I.screens.length!=C.length;
I.screens=_.yv(I.screens,function(z){return!!LrS(C,z)});
for(var k=C.length,F=0;F<k;F++)y=q2L(I,C[F])||y;return y},ZZy=function(I,C){var y=I.screens.length;
I.screens=_.yv(I.screens,function(k){return!(k||C?!k!=!C?0:k.id==C.id:1)});
return I.screens.length<y};
gw.prototype.info=function(I){SM(this.JSC$17388_logName_,I)};var BOy=function(I,C,y,k,F){_.BU.call(this);this.JSC$17391_http_=I;this.pairingCode_=C;this.deviceId_=y;this.friendlyName_=k;this.enableShortLivedLoungeToken_=F;this.pollIndex_=0;this.JSC$17391_xhr_=null;this.JSC$17391_timer_=NaN};
_.R(BOy,_.BU);_.u=BOy.prototype;_.u.start=function(){!this.JSC$17391_xhr_&&isNaN(this.JSC$17391_timer_)&&this.poll_()};
_.u.stop=function(){this.JSC$17391_xhr_&&(this.JSC$17391_xhr_.abort(),this.JSC$17391_xhr_=null);isNaN(this.JSC$17391_timer_)||(_.zl(this.JSC$17391_timer_),this.JSC$17391_timer_=NaN)};
_.u.disposeInternal=function(){this.stop();_.BU.prototype.disposeInternal.call(this)};
_.u.poll_=function(){this.JSC$17391_timer_=NaN;this.JSC$17391_xhr_=_.cN(GY(this.JSC$17391_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:this.pairingCode_},timeout:5E3,onSuccess:(0,_.DD)(this.JSC$17393_onSuccess_,this),onError:(0,_.DD)(this.onError_,this),onTimeout:(0,_.DD)(this.JSC$17393_onTimeout_,this)})};
_.u.JSC$17393_onSuccess_=function(I,C){this.JSC$17391_xhr_=null;I=C.screen||{};I.dialId=this.deviceId_;I.name=this.friendlyName_;C=-1;this.enableShortLivedLoungeToken_&&I.shortLivedLoungeToken&&I.shortLivedLoungeToken.value&&I.shortLivedLoungeToken.refreshIntervalMs&&(I.screenIdType="shortLived",I.loungeToken=I.shortLivedLoungeToken.value,C=I.shortLivedLoungeToken.refreshIntervalMs);this.publish("pairingComplete",new XY(I),C)};
_.u.onError_=function(I){this.JSC$17391_xhr_=null;I.status&&I.status==404?this.pollIndex_>=EfH.length?this.publish("pairingFailed",Error("Dk")):(I=EfH[this.pollIndex_],this.JSC$17391_timer_=_.FT((0,_.DD)(this.poll_,this),I),this.pollIndex_++):this.publish("pairingFailed",Error("Ek`"+I.status))};
_.u.JSC$17393_onTimeout_=function(){this.JSC$17391_xhr_=null;this.publish("pairingFailed",Error("Fk"))};
var EfH=[2E3,2E3,1E3,1E3,1E3,2E3,2E3,5E3,5E3,1E4];_.s0(W8,gw);_.u=W8.prototype;_.u.start=function(){v8(this)&&this.publish("screenChange");!_.Fk("yt-remote-lounge-token-expiration")&&hSS(this);_.zl(this.loungeTokenRefreshTimer_);this.loungeTokenRefreshTimer_=_.FT((0,_.DD)(this.start,this),1E4)};
_.u.add=function(I,C){v8(this);q2L(this,I);UDK(this,!1);this.publish("screenChange");C(I);I.token||hSS(this)};
_.u.remove=function(I,C){var y=v8(this);ZZy(this,I)&&(UDK(this,!1),y=!0);C(I);y&&this.publish("screenChange")};
_.u.updateName=function(I,C,y,k){var F=v8(this),z=this.get(I.id);z?(z.name!=C&&(z.name=C,UDK(this,!1),F=!0),y(I)):k(Error("Gk"));F&&this.publish("screenChange")};
_.u.disposeInternal=function(){_.zl(this.loungeTokenRefreshTimer_);W8.superClass_.disposeInternal.call(this)};
var hSS=function(I){if(I.screens.length){var C=_.pe(I.screens,function(k){return k.id}),y=GY(I.JSC$17395_http_,"/pairing/get_lounge_token_batch");
I.JSC$17395_http_.sendRequest("POST",y,{screen_ids:C.join(",")},(0,_.DD)(I.handleLoungeTokens_,I),(0,_.DD)(I.handleLoungeTokenError_,I))}};
W8.prototype.handleLoungeTokens_=function(I){v8(this);var C=this.screens.length;I=I&&I.screens||[];for(var y=I.length,k=0;k<y;++k){var F=I[k],z=this.get(F.screenId);z&&(z.token=F.loungeToken,--C)}UDK(this,!C);C&&SM(this.JSC$17388_logName_,"Missed "+C+" lounge tokens.")};
W8.prototype.handleLoungeTokenError_=function(I){SM(this.JSC$17388_logName_,"Requesting lounge tokens failed: "+I)};
var v8=function(I){if(_.V("deprecate_pair_servlet_enabled"))return mDR(I,[]);var C=W_L($JP());C=_.yv(C,function(y){return!y.uuid});
return mDR(I,C)},UDK=function(I,C){bqB(_.pe(I.screens,gfR));
C&&RyP()};var mW=function(I,C){_.BU.call(this);this.getScreensToCheck_=C;C=(C=_.Fk("yt-remote-online-screen-ids")||"")?C.split(","):[];for(var y={},k=this.getScreensToCheck_(),F=k.length,z=0;z<F;++z){var c=k[z].id;y[c]=_.qz(C,c)}this.screenIdSet_=y;this.JSC$17398_http_=I;this.refreshTimer_=this.fastCheckEndTime_=NaN;this.currentRequest_=null;HZR("Initialized with "+(0,_.lR)(this.screenIdSet_))};
_.R(mW,_.BU);mW.prototype.isOnline=function(I){return!!this.screenIdSet_[I]};
mW.prototype.start=function(){var I=parseInt(_.Fk("yt-remote-fast-check-period")||"0",10);(this.fastCheckEndTime_=_.CF()-144E5<I?0:I)?tVY(this):(this.fastCheckEndTime_=_.CF()+3E5,_.ky("yt-remote-fast-check-period",this.fastCheckEndTime_),this.requestScreenAvailability_())};
mW.prototype.isEmpty=function(){return _.Le.isEmpty(this.screenIdSet_)};
mW.prototype.update=function(){HZR("Updating availability on schedule.");var I=this.getScreensToCheck_(),C=_.Le.filter(this.screenIdSet_,function(y,k){return y&&!!RT(I,k)},this);
JoS(this,C)};
var OZY=function(I,C,y){var k=GY(I.JSC$17398_http_,"/pairing/get_screen_availability");I.JSC$17398_http_.sendRequest("POST",k,{lounge_token:C.token},(0,_.DD)(function(F){F=F.screens||[];for(var z=F.length,c=0;c<z;++c)if(F[c].loungeToken==C.token){y(F[c].status=="online");return}y(!1)},I),(0,_.DD)(function(){y(!1)},I))};
mW.prototype.disposeInternal=function(){_.zl(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&(this.currentRequest_.abort(),this.currentRequest_=null);_.BU.prototype.disposeInternal.call(this)};
var JoS=function(I,C){a:if(_.Le.getCount(C)!=_.Le.getCount(I.screenIdSet_))var y=!1;else{y=_.Le.getKeys(C);for(var k=y.length,F=0;F<k;++F)if(!I.screenIdSet_[y[F]]){y=!1;break a}y=!0}y||(HZR("Updated online screens: "+(0,_.lR)(I.screenIdSet_)),I.screenIdSet_=C,I.publish("screenChange"));aNR(I)},tVY=function(I){isNaN(I.refreshTimer_)||_.zl(I.refreshTimer_);
I.refreshTimer_=_.FT((0,_.DD)(I.requestScreenAvailability_,I),I.fastCheckEndTime_>0&&I.fastCheckEndTime_<_.CF()?2E4:1E4)};
mW.prototype.requestScreenAvailability_=function(){_.zl(this.refreshTimer_);this.refreshTimer_=NaN;this.currentRequest_&&this.currentRequest_.abort();var I=MVR(this);if(_.Le.getCount(I)){var C=GY(this.JSC$17398_http_,"/pairing/get_screen_availability"),y={lounge_token:_.Le.getKeys(I).join(",")};this.currentRequest_=this.JSC$17398_http_.sendRequest("POST",C,y,(0,_.DD)(this.onScreenAvailability_,this,I),(0,_.DD)(this.onScreenAvailabilityError_,this))}else JoS(this,{}),tVY(this)};
mW.prototype.onScreenAvailability_=function(I,C){this.currentRequest_=null;var y=_.Le.getKeys(MVR(this));if(_.u8(y,_.Le.getKeys(I))){C=C.screens||[];y={};for(var k=C.length,F=0;F<k;++F)y[I[C[F].loungeToken]]=C[F].status=="online";JoS(this,y);tVY(this)}else this.warn_("Changing Screen set during request."),this.requestScreenAvailability_()};
mW.prototype.onScreenAvailabilityError_=function(I){this.warn_("Screen availability failed: "+I);this.currentRequest_=null;tVY(this)};
var HZR=function(I){SM("OnlineScreenService",I)};
mW.prototype.warn_=function(I){SM("OnlineScreenService",I)};
var MVR=function(I){var C={};_.mn(I.getScreensToCheck_(),function(y){y.token?C[y.token]=y.id:this.warn_("Requesting availability of screen w/o lounge token.")});
return C},aNR=function(I){I=_.Le.getKeys(_.Le.filter(I.screenIdSet_,function(C){return C}));
I.sort(_.Fq);I.length?_.ky("yt-remote-online-screen-ids",I.join(","),60):_.ua("yt-remote-online-screen-ids")};_.s0(dw,gw);_.u=dw.prototype;_.u.start=function(){this.localScreenService_.start();this.onlineScreenService_.start();this.screens.length&&(this.publish("screenChange"),this.onlineScreenService_.isEmpty()||this.publish("onlineScreenChange"))};
_.u.add=function(I,C,y){this.localScreenService_.add(I,C,y)};
_.u.remove=function(I,C,y){this.localScreenService_.remove(I,C,y);this.onlineScreenService_.update()};
_.u.updateName=function(I,C,y,k){this.localScreenService_.contains(I)?this.localScreenService_.updateName(I,C,y,k):(I="Updating name of unknown screen: "+I.name,SM(this.JSC$17388_logName_,I),k(Error(I)))};
_.u.getScreens=function(I){return I?this.screens:mSK(this.screens,_.yv(this.automaticScreens_,function(C){return!this.contains(C)},this))};
_.u.JSC$17403_getOnlineScreens=function(){return _.yv(this.getScreens(!0),function(I){return this.onlineScreenService_.isOnline(I.id)},this)};
var C_S=function(I,C,y,k,F,z){I.info("getAutomaticScreenByIds "+y+" / "+C);y||(y=I.deviceToScreenId_[C]);var c=I.getScreens(),r=y?RT(c,y):null;y&&(I.disableAutomaticScreenCache_||r)||(r=RT(c,C));if(r){r.uuid=C;var w=Z2(I,r);OZY(I.onlineScreenService_,w,function(L){F(L?w:null)})}else y?I4L(I,y,(0,_.DD)(function(L){var D=Z2(this,new XY({name:k,
screenId:y,loungeToken:L,dialId:C||""}));OZY(this.onlineScreenService_,D,function(p){F(p?D:null)})},I),z):F(null)};
dw.prototype.JSC$17403_getScreenByPollingPairingCode=function(I,C,y,k,F,z){var c=this;this.info("getDialScreenByPairingCode "+I+" / "+C);var r=new BOy(this.JSC$17401_http_,I,C,y,k);r.subscribe("pairingComplete",function(w,L){_.Bi(r);F(Z2(c,w),L)});
r.subscribe("pairingFailed",function(w){_.Bi(r);z(w)});
r.start();return(0,_.DD)(r.stop,r)};
var sVR=function(I,C){for(var y=I.screens.length,k=0;k<y;++k)if(I.screens[k].name==C)return I.screens[k];return null};
dw.prototype.JSC$17403_getScreenByPairingCode=function(I,C,y,k){_.cN(GY(this.JSC$17401_http_,"/pairing/get_screen"),{method:"POST",postParams:{pairing_code:I},timeout:5E3,onSuccess:(0,_.DD)(function(F,z){F=new XY(z.screen||{});if(!F.name||sVR(this,F.name)){a:{z=F.name;for(var c=2,r=C(z,c);sVR(this,r);){c++;if(c>20)break a;r=C(z,c)}z=r}F.name=z}y(Z2(this,F))},this),
onError:(0,_.DD)(function(F){k(Error("Hk`"+F.status))},this),
onTimeout:(0,_.DD)(function(){k(Error("Ik"))},this)})};
var oUY=function(I,C,y){OZY(I.onlineScreenService_,C,y)};
dw.prototype.disposeInternal=function(){_.Bi(this.localScreenService_);_.Bi(this.onlineScreenService_);dw.superClass_.disposeInternal.call(this)};
var I4L=function(I,C,y,k){I.info("requestLoungeToken_ for "+C);var F={postParams:{screen_ids:C},method:"POST",context:I,onSuccess:function(z,c){z=c&&c.screens||[];z[0]&&z[0].screenId==C?y(z[0].loungeToken):k(Error("Jk"))},
onError:function(){k(Error("Kk"))}};
_.cN(GY(I.JSC$17401_http_,"/pairing/get_lounge_token_batch"),F)},yJL=function(I){I.screens=I.localScreenService_.getScreens();
for(var C=_.Le.transpose(I.deviceToScreenId_),y=I.screens.length,k=0;k<y;++k){var F=I.screens[k];F.uuid=C[F.id]||""}I.info("Updated manual screens: "+EBL(I.screens))};
dw.prototype.handleScreenChange_=function(){yJL(this);this.publish("screenChange");this.onlineScreenService_.update()};
var hyP=function(I){kkH(I);I.localScreenService_=new W8(I.JSC$17401_http_);I.localScreenService_.subscribe("screenChange",(0,_.DD)(I.handleScreenChange_,I));yJL(I);I.disableAutomaticScreenCache_||(I.automaticScreens_=W_L(_.Fk("yt-remote-automatic-screen-cache")||[]));kkH(I);I.info("Initializing automatic screens: "+EBL(I.automaticScreens_));I.onlineScreenService_=new mW(I.JSC$17401_http_,(0,_.DD)(I.getScreens,I,!0));I.onlineScreenService_.subscribe("screenChange",(0,_.DD)(function(){this.publish("onlineScreenChange")},
I))},Z2=function(I,C){var y=I.get(C.id);
y?(y.uuid=C.uuid,C=y):((y=RT(I.automaticScreens_,C.uuid))?(y.id=C.id,y.token=C.token,C=y):I.automaticScreens_.push(C),I.disableAutomaticScreenCache_||FyR(I));kkH(I);I.deviceToScreenId_[C.uuid]=C.id;_.ky("yt-remote-device-id-map",I.deviceToScreenId_,31536E3);return C},FyR=function(I){I=_.yv(I.automaticScreens_,function(C){return C.idType!="shortLived"});
_.ky("yt-remote-automatic-screen-cache",_.pe(I,gfR))},kkH=function(I){I.deviceToScreenId_=_.Fk("yt-remote-device-id-map")||{}};
dw.prototype.dispose=dw.prototype.dispose;_.s0(x0,_.BU);var B6=function(I,C){I.screen_=C;I.publish("sessionScreen",I.screen_)},uVy=function(I,C){I.screen_&&(I.screen_.token=C,Z2(I.JSC$17405_screenService_,I.screen_));
I.publish("sessionScreen",I.screen_)};
x0.prototype.onSessionStopped=function(I){this.isDisposed()||(I&&(Ef(this,""+I),this.publish("sessionFailed")),this.screen_=null,this.publish("sessionScreen",null))};
x0.prototype.info=function(I){SM(this.JSC$17405_logName_,I)};
var Ef=function(I,C){SM(I.JSC$17405_logName_,C)};
x0.prototype.JSC$17407_getCastSession=function(){return null};
x0.prototype.setDisplayStatus=function(I){var C=this.receiver_;I?(C.displayStatus=new chrome.cast.ReceiverDisplayStatus(I,[]),C.displayStatus.showStop=!0):C.displayStatus=null;chrome.cast.setReceiverDisplayStatus(C,(0,_.DD)(function(){this.info("Updated receiver status for "+C.friendlyName+": "+I)},this),(0,_.DD)(function(){Ef(this,"Failed to update receiver status for: "+C.friendlyName)},this))};
x0.prototype.disposeInternal=function(){this.setDisplayStatus("");x0.superClass_.disposeInternal.call(this)};var hB=function(I,C,y){x0.call(this,I,C,"CastSession");var k=this;this.config_=y;this.JSC$17410_session_=null;this.JSC$17410_boundSessionUpdate_=(0,_.DD)(this.JSC$17412_onSessionUpdate_,this);this.boundYoutubeMessage_=(0,_.DD)(this.onYoutubeMessage_,this);this.sessionStatusTimeoutKey_=_.FT(function(){zfP(k,null)},12E4);
this.getLoungeTokenTimeoutKey_=this.onLoungeTokenTimeoutKey_=this.JSC$17410_checkScreenAvailabilityTimeoutKey_=this.getScreenTimeoutKey_=0;this.JSC$17410_isInitLoungeToken_=!1;this.JSC$17410_lastLoungeTokenRefreshError_="unknown"};
_.R(hB,x0);_.u=hB.prototype;
_.u.setCastSession=function(I){if(this.JSC$17410_session_){if(this.JSC$17410_session_==I)return;Ef(this,"Overriding cast session with new session object");TfL(this);this.JSC$17410_isInitLoungeToken_=!1;this.JSC$17410_lastLoungeTokenRefreshError_="unknown";this.JSC$17410_session_.removeUpdateListener(this.JSC$17410_boundSessionUpdate_);this.JSC$17410_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_)}this.JSC$17410_session_=I;this.JSC$17410_session_.addUpdateListener(this.JSC$17410_boundSessionUpdate_);this.JSC$17410_session_.addMessageListener("urn:x-cast:com.google.youtube.mdx",
this.boundYoutubeMessage_);cJR(this,"getMdxSessionStatus")};
_.u.launchWithParams=function(I){this.info("launchWithParams no-op for Cast: "+(0,_.lR)(I))};
_.u.stop=function(){if(this.JSC$17410_session_)this.JSC$17410_session_.stop((0,_.DD)(function(){this.onSessionStopped()},this),(0,_.DD)(function(){this.onSessionStopped(Error("Lk"))},this));
else this.onSessionStopped(Error("Mk"))};
_.u.setDisplayStatus=function(){};
_.u.disposeInternal=function(){this.info("disposeInternal");TfL(this);this.JSC$17410_session_&&(this.JSC$17410_session_.removeUpdateListener(this.JSC$17410_boundSessionUpdate_),this.JSC$17410_session_.removeMessageListener("urn:x-cast:com.google.youtube.mdx",this.boundYoutubeMessage_));this.JSC$17410_session_=null;x0.prototype.disposeInternal.call(this)};
var rJM=function(I,C){_.zl(I.getLoungeTokenTimeoutKey_);I.getLoungeTokenTimeoutKey_=0;C==0?efP(I):I.getLoungeTokenTimeoutKey_=_.FT(function(){efP(I)},C)},efP=function(I){cJR(I,"getLoungeToken");
_.zl(I.onLoungeTokenTimeoutKey_);I.onLoungeTokenTimeoutKey_=_.FT(function(){iuM(I,null)},3E4)},cJR=function(I,C){I.info("sendYoutubeMessage_: "+C+" "+(0,_.lR)(void 0));
var y={};y.type=C;I.JSC$17410_session_?I.JSC$17410_session_.sendMessage("urn:x-cast:com.google.youtube.mdx",y,function(){},(0,_.DD)(function(){Ef(this,"Failed to send message: "+C+".")},I)):Ef(I,"Sending yt message without session: "+(0,_.lR)(y))};
hB.prototype.onYoutubeMessage_=function(I,C){if(!this.isDisposed())if(C)if(C=(0,_.RC)(C),_.sw(C))switch(I=""+C.type,C=C.data||{},this.info("onYoutubeMessage_: "+I+" "+(0,_.lR)(C)),I){case "mdxSessionStatus":zfP(this,C);break;case "loungeToken":iuM(this,C);break;default:Ef(this,"Unknown youtube message: "+I)}else Ef(this,"Unable to parse message.");else Ef(this,"No data in message.")};
var wk8=function(I,C){if(C)I.info("onConnectedScreenId_: Received screenId: "+C),I.screen_&&I.screen_.id==C||I.getScreen_(C,function(y){B6(I,y)},function(){return I.onSessionStopped()},5);
else I.onSessionStopped(Error("Nk"))},P_P=function(I,C,y){I.info("onConnectedScreenData_: Received screenData: "+JSON.stringify(C));
var k=new XY(C);nUH(I,k,function(F){F?(I.JSC$17410_isInitLoungeToken_=!0,Z2(I.JSC$17405_screenService_,k),B6(I,k),I.JSC$17410_lastLoungeTokenRefreshError_="unknown",rJM(I,y)):(_.v5(Error("Ok`"+JSON.stringify(C))),I.onSessionStopped())},5)},zfP=function(I,C){_.zl(I.sessionStatusTimeoutKey_);
I.sessionStatusTimeoutKey_=0;if(C)I.config_.enableCastLoungeToken&&C.loungeToken?C.deviceId?I.screen_&&I.screen_.uuid==C.deviceId||(C.loungeTokenRefreshIntervalMs?P_P(I,{name:I.receiver_.friendlyName,screenId:C.screenId,loungeToken:C.loungeToken,dialId:C.deviceId,screenIdType:"shortLived"},C.loungeTokenRefreshIntervalMs):(_.v5(Error("Qk`"+JSON.stringify(C))),wk8(I,C.screenId))):(_.v5(Error("Pk`"+JSON.stringify(C))),wk8(I,C.screenId)):wk8(I,C.screenId);else I.onSessionStopped(Error("Nk"))},iuM=function(I,
C){_.zl(I.onLoungeTokenTimeoutKey_);
I.onLoungeTokenTimeoutKey_=0;var y=null;if(C)if(C.loungeToken){var k;((k=I.screen_)==null?void 0:k.token)==C.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";else y="noLoungeTokenResponse";y?(I.info("Did not receive a new lounge token in onLoungeToken_ with data: "+(JSON.stringify(C)+", error: "+y)),I.JSC$17410_lastLoungeTokenRefreshError_=y,rJM(I,3E4)):(uVy(I,C.loungeToken),I.JSC$17410_isInitLoungeToken_=!1,I.JSC$17410_lastLoungeTokenRefreshError_="unknown",rJM(I,C.loungeTokenRefreshIntervalMs))};
hB.prototype.getScreen_=function(I,C,y,k){_.zl(this.getScreenTimeoutKey_);this.getScreenTimeoutKey_=0;C_S(this.JSC$17405_screenService_,this.receiver_.label,I,this.receiver_.friendlyName,(0,_.DD)(function(F){F?C(F):k>=0?(Ef(this,"Screen "+I+" appears to be offline. "+k+" retries left."),this.getScreenTimeoutKey_=_.FT((0,_.DD)(this.getScreen_,this,I,C,y,k-1),300)):y(Error("Rk"))},this),y)};
var nUH=function(I,C,y,k){_.zl(I.JSC$17410_checkScreenAvailabilityTimeoutKey_);I.JSC$17410_checkScreenAvailabilityTimeoutKey_=0;oUY(I.JSC$17405_screenService_,C,function(F){F||k<0?y(F):I.JSC$17410_checkScreenAvailabilityTimeoutKey_=_.FT(function(){nUH(I,C,y,k-1)},300)})};
hB.prototype.JSC$17407_getCastSession=function(){return this.JSC$17410_session_};
hB.prototype.JSC$17412_onSessionUpdate_=function(I){this.isDisposed()||I||(Ef(this,"Cast session died."),this.onSessionStopped())};
var TfL=function(I){_.zl(I.getScreenTimeoutKey_);I.getScreenTimeoutKey_=0;_.zl(I.JSC$17410_checkScreenAvailabilityTimeoutKey_);I.JSC$17410_checkScreenAvailabilityTimeoutKey_=0;_.zl(I.sessionStatusTimeoutKey_);I.sessionStatusTimeoutKey_=0;_.zl(I.onLoungeTokenTimeoutKey_);I.onLoungeTokenTimeoutKey_=0;_.zl(I.getLoungeTokenTimeoutKey_);I.getLoungeTokenTimeoutKey_=0};var Uf=function(I,C,y,k){x0.call(this,I,C,"DialSession");this.config_=k;this.JSC$17414_session_=this.launchData_=null;this.reversePairingCode_="";this.JSC$17414_theme_=y;this.connectData_=null;this.deferredLaunch_=function(){};
this.JSC$17414_deferredLaunchDeadlineTimer_=NaN;this.JSC$17414_boundSessionUpdate_=(0,_.DD)(this.JSC$17416_onSessionUpdate_,this);this.cancelPolling_=function(){};
this.getDialAppInfoTimeoutKey_=this.JSC$17414_checkScreenAvailabilityTimeoutKey_=0;this.JSC$17414_isInitLoungeToken_=!1;this.JSC$17414_lastLoungeTokenRefreshError_="unknown"};
_.R(Uf,x0);Uf.prototype.setCastSession=function(I){this.JSC$17414_session_=I;this.JSC$17414_session_.addUpdateListener(this.JSC$17414_boundSessionUpdate_)};
Uf.prototype.launchWithParams=function(I){this.connectData_=I;this.deferredLaunch_()};
Uf.prototype.stop=function(){LyP(this);if(this.JSC$17414_session_)this.JSC$17414_session_.stop((0,_.DD)(this.onSessionStopped,this,null),(0,_.DD)(this.onSessionStopped,this,"Failed to stop DIAL device."));else this.onSessionStopped()};
Uf.prototype.disposeInternal=function(){LyP(this);this.JSC$17414_session_&&this.JSC$17414_session_.removeUpdateListener(this.JSC$17414_boundSessionUpdate_);this.JSC$17414_session_=null;x0.prototype.disposeInternal.call(this)};
var DXK=function(I){var C;return!!(I.config_.enableDialLoungeToken&&((C=I.JSC$17414_session_)==null?0:C.getDialAppInfo))},pkR=function(I){I.cancelPolling_=I.JSC$17405_screenService_.JSC$17403_getScreenByPollingPairingCode(I.reversePairingCode_,I.receiver_.label,I.receiver_.friendlyName,DXK(I),function(C,y){I.cancelPolling_=function(){};
I.JSC$17414_isInitLoungeToken_=!0;B6(I,C);C.idType=="shortLived"&&y>0&&H6(I,y)},function(C){I.cancelPolling_=function(){};
I.onSessionStopped(C)})};
Uf.prototype.JSC$17416_onSessionUpdate_=function(I){this.isDisposed()||I||(Ef(this,"DIAL session died."),this.cancelPolling_(),this.cancelPolling_=function(){},this.onSessionStopped())};
var QVR=function(I){var C={};C.pairingCode=I.reversePairingCode_;C.theme=I.JSC$17414_theme_;G5R()&&(C.env_useStageMdx=1);return _.e7(C)},NfP=function(I){return new Promise(function(C){I.reversePairingCode_=nBL();
if(I.connectData_){var y=new chrome.cast.DialLaunchResponse(!0,QVR(I));C(y);pkR(I)}else I.deferredLaunch_=function(){_.zl(I.JSC$17414_deferredLaunchDeadlineTimer_);I.deferredLaunch_=function(){};
I.JSC$17414_deferredLaunchDeadlineTimer_=NaN;var k=new chrome.cast.DialLaunchResponse(!0,QVR(I));C(k);pkR(I)},I.JSC$17414_deferredLaunchDeadlineTimer_=_.FT(function(){I.deferredLaunch_()},100)})},jVS=function(I,C,y){I.info("initOnConnectedScreenDataPromise_: Received screenData: "+JSON.stringify(C));
var k=new XY(C);return(new Promise(function(F){VoL(I,k,function(z){z?(I.JSC$17414_isInitLoungeToken_=!0,Z2(I.JSC$17405_screenService_,k),B6(I,k),H6(I,y)):_.v5(Error("Tk`"+JSON.stringify(C)));F(z)},5)})).then(function(F){return F?new chrome.cast.DialLaunchResponse(!1):NfP(I)})},l4Y=function(I,C){var y=I.launchData_.receiver.label,k=I.receiver_.friendlyName;
return(new Promise(function(F){C_S(I.JSC$17405_screenService_,y,C,k,function(z){z&&z.token&&B6(I,z);F(z)},function(z){Ef(I,"Failed to get DIAL screen: "+z);
F(null)})})).then(function(F){return F&&F.token?new chrome.cast.DialLaunchResponse(!1):NfP(I)})},VoL=function(I,C,y,k){_.zl(I.JSC$17414_checkScreenAvailabilityTimeoutKey_);
I.JSC$17414_checkScreenAvailabilityTimeoutKey_=0;oUY(I.JSC$17405_screenService_,C,function(F){F||k<0?y(F):I.JSC$17414_checkScreenAvailabilityTimeoutKey_=_.FT(function(){VoL(I,C,y,k-1)},300)})},H6=function(I,C){I.info("getDialAppInfoWithTimeout_ "+C);
DXK(I)&&(_.zl(I.getDialAppInfoTimeoutKey_),I.getDialAppInfoTimeoutKey_=0,C==0?XkM(I):I.getDialAppInfoTimeoutKey_=_.FT(function(){XkM(I)},C))},XkM=function(I){DXK(I)&&I.JSC$17414_session_.getDialAppInfo(function(C){I.info("getDialAppInfo dialLaunchData: "+JSON.stringify(C));
C=C.extraData||{};var y=null;if(C.loungeToken){var k;((k=I.screen_)==null?void 0:k.token)==C.loungeToken&&(y="staleLoungeToken")}else y="missingLoungeToken";y?(I.JSC$17414_lastLoungeTokenRefreshError_=y,H6(I,3E4)):(I.JSC$17414_isInitLoungeToken_=!1,I.JSC$17414_lastLoungeTokenRefreshError_="unknown",uVy(I,C.loungeToken),H6(I,C.loungeTokenRefreshIntervalMs))},function(C){I.info("getDialAppInfo error: "+C);
I.JSC$17414_lastLoungeTokenRefreshError_="noLoungeTokenResponse";H6(I,3E4)})},LyP=function(I){_.zl(I.JSC$17414_checkScreenAvailabilityTimeoutKey_);
I.JSC$17414_checkScreenAvailabilityTimeoutKey_=0;_.zl(I.getDialAppInfoTimeoutKey_);I.getDialAppInfoTimeoutKey_=0;I.cancelPolling_();I.cancelPolling_=function(){};
_.zl(I.JSC$17414_deferredLaunchDeadlineTimer_)};var tB=function(I,C){x0.call(this,I,C,"ManualSession");this.JSC$17418_deferredLaunchDeadlineTimer_=_.FT((0,_.DD)(this.launchWithParams,this,null),150)};
_.R(tB,x0);tB.prototype.stop=function(){this.onSessionStopped()};
tB.prototype.setCastSession=function(){};
tB.prototype.launchWithParams=function(){_.zl(this.JSC$17418_deferredLaunchDeadlineTimer_);this.JSC$17418_deferredLaunchDeadlineTimer_=NaN;var I=RT(this.JSC$17405_screenService_.getScreens(),this.receiver_.label);if(I)B6(this,I);else this.onSessionStopped(Error("Uk"))};
tB.prototype.disposeInternal=function(){_.zl(this.JSC$17418_deferredLaunchDeadlineTimer_);this.JSC$17418_deferredLaunchDeadlineTimer_=NaN;x0.prototype.disposeInternal.call(this)};var B8=function(I,C){_.BU.call(this);this.config_=C;this.JSC$17421_screenService_=I;this.JSC$17421_appId_=C.appId||"233637DE";this.JSC$17421_theme_=C.theme||"cl";this.disableDial_=C.disableCastApi||!1;this.forceMirroring_=C.forceMirroring||!1;this.JSC$17421_session_=null;this.hasCastReceiver_=!1;this.customReceivers_=[];this.boundReceiverActionListener_=(0,_.DD)(this.onReceiverAction_,this)};
_.R(B8,_.BU);
B8.prototype.init=function(I,C){chrome.cast.timeout.requestSession=3E4;var y=new chrome.cast.SessionRequest(this.JSC$17421_appId_,[chrome.cast.Capability.AUDIO_OUT]);_.V("desktop_enable_cast_connect")&&(y.androidReceiverCompatible=!0);this.disableDial_||(y.dialRequest=new chrome.cast.DialRequest("YouTube"));var k=chrome.cast.AutoJoinPolicy.TAB_AND_ORIGIN_SCOPED;I=I||this.forceMirroring_?chrome.cast.DefaultActionPolicy.CAST_THIS_TAB:chrome.cast.DefaultActionPolicy.CREATE_SESSION;var F=(0,_.DD)(this.onReceiverUpdated_,
this);y=new chrome.cast.ApiConfig(y,(0,_.DD)(this.onSessionEstablished_,this),F,k,I);y.customDialLaunchCallback=(0,_.DD)(this.onDialLaunchRequested_,this);chrome.cast.initialize(y,(0,_.DD)(function(){this.isDisposed()||(chrome.cast.addReceiverActionListener(this.boundReceiverActionListener_),dJB(),this.JSC$17421_screenService_.subscribe("onlineScreenChange",(0,_.DD)(this.JSC$17423_onScreenChange_,this)),this.customReceivers_=$XS(this),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},
(0,_.DD)(function(z){this.warn_("Failed to set initial custom receivers: "+(0,_.lR)(z))},this)),this.publish("yt-remote-cast2-availability-change",JB(this)),C(!0))},this),(0,_.DD)(function(z){this.warn_("Failed to initialize API: "+(0,_.lR)(z));
C(!1)},this))};
B8.prototype.setConnectedScreenStatus=function(I,C){Of("Setting connected screen ID: "+I+" -> "+C);if(this.JSC$17421_session_){var y=this.JSC$17421_session_.screen_;if(!I||y&&y.id!=I)Of("Unsetting old screen status: "+this.JSC$17421_session_.receiver_.friendlyName),aa(this,null)}if(I&&C){if(!this.JSC$17421_session_){I=RT(this.JSC$17421_screenService_.getScreens(),I);if(!I){Of("setConnectedScreenStatus: Unknown screen.");return}if(I.idType=="shortLived"){Of("setConnectedScreenStatus: Screen with id type to be short lived.");
return}y=RfL(this,I);y||(Of("setConnectedScreenStatus: Connected receiver not custom..."),y=new chrome.cast.Receiver(I.uuid?I.uuid:I.id,I.name),y.receiverType=chrome.cast.ReceiverType.CUSTOM,this.customReceivers_.push(y),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.DD)(function(k){this.warn_("Failed to set initial custom receivers: "+(0,_.lR)(k))},this)));
Of("setConnectedScreenStatus: new active receiver: "+y.friendlyName);aa(this,new tB(this.JSC$17421_screenService_,y),!0)}this.JSC$17421_session_.setDisplayStatus(C)}else Of("setConnectedScreenStatus: no screen.")};
var RfL=function(I,C){return C?_.AX(I.customReceivers_,function(y){return $0(C,y.label)},I):null};
B8.prototype.setLaunchParams=function(I){this.isDisposed()?this.warn_("Setting connection data on disposed cast v2"):this.JSC$17421_session_?this.JSC$17421_session_.launchWithParams(I):this.warn_("Setting connection data without a session")};
B8.prototype.JSC$17423_stopSession=function(){this.isDisposed()?this.warn_("Stopping session on disposed cast v2"):this.JSC$17421_session_?(this.JSC$17421_session_.stop(),aa(this,null)):Of("Stopping non-existing session")};
B8.prototype.requestSession=function(){chrome.cast.requestSession((0,_.DD)(this.onSessionEstablished_,this),(0,_.DD)(this.onSessionRequestFailed_,this))};
B8.prototype.disposeInternal=function(){this.JSC$17421_screenService_.unsubscribe("onlineScreenChange",(0,_.DD)(this.JSC$17423_onScreenChange_,this));window.chrome&&chrome.cast&&chrome.cast.removeReceiverActionListener(this.boundReceiverActionListener_);_.Hs(_.d5("yt.mdx.remote.debug.handlers_")||[],gBy);_.Bi(this.JSC$17421_session_);_.BU.prototype.disposeInternal.call(this)};
var Of=function(I){SM("Controller",I)};
B8.prototype.warn_=function(I){SM("Controller",I)};
var gBy=function(I){window.chrome&&chrome.cast&&chrome.cast.logMessage&&chrome.cast.logMessage(I)},JB=function(I){return I.hasCastReceiver_||!!I.customReceivers_.length||!!I.JSC$17421_session_},aa=function(I,C,y){C!=I.JSC$17421_session_&&(_.Bi(I.JSC$17421_session_),(I.JSC$17421_session_=C)?(y?I.publish("yt-remote-cast2-receiver-resumed",C.receiver_):I.publish("yt-remote-cast2-receiver-selected",C.receiver_),C.subscribe("sessionScreen",(0,_.DD)(I.onSessionScreen_,I,C)),C.subscribe("sessionFailed",
function(){return buY(I,C)}),C.screen_?I.publish("yt-remote-cast2-session-change",C.screen_):y&&I.JSC$17421_session_.launchWithParams(null)):I.publish("yt-remote-cast2-session-change",null))},buY=function(I,C){I.JSC$17421_session_==C&&I.publish("yt-remote-cast2-session-failed")};
_.u=B8.prototype;_.u.onSessionScreen_=function(I,C){this.JSC$17421_session_==I&&(C||aa(this,null),this.publish("yt-remote-cast2-session-change",C))};
_.u.onReceiverAction_=function(I,C){if(!this.isDisposed())if(I)switch(I.friendlyName=chrome.cast.unescape(I.friendlyName),Of("onReceiverAction_ "+I.label+" / "+I.friendlyName+"-- "+C),C){case chrome.cast.ReceiverAction.CAST:if(this.JSC$17421_session_)if(this.JSC$17421_session_.receiver_.label!=I.label)Of("onReceiverAction_: Stopping active receiver: "+this.JSC$17421_session_.receiver_.friendlyName),this.JSC$17421_session_.stop();else{Of("onReceiverAction_: Casting to active receiver.");this.JSC$17421_session_.screen_&&
this.publish("yt-remote-cast2-session-change",this.JSC$17421_session_.screen_);break}switch(I.receiverType){case chrome.cast.ReceiverType.CUSTOM:aa(this,new tB(this.JSC$17421_screenService_,I));break;case chrome.cast.ReceiverType.DIAL:aa(this,new Uf(this.JSC$17421_screenService_,I,this.JSC$17421_theme_,this.config_));break;case chrome.cast.ReceiverType.CAST:aa(this,new hB(this.JSC$17421_screenService_,I,this.config_));break;default:this.warn_("Unknown receiver type: "+I.receiverType)}break;case chrome.cast.ReceiverAction.STOP:this.JSC$17421_session_&&
this.JSC$17421_session_.receiver_.label==I.label?this.JSC$17421_session_.stop():this.warn_("Stopping receiver w/o session: "+I.friendlyName)}else this.warn_("onReceiverAction_ called without receiver.")};
_.u.onDialLaunchRequested_=function(I){if(this.isDisposed())return Promise.reject(Error("Vk"));var C=I.receiver;C.receiverType!=chrome.cast.ReceiverType.DIAL&&(this.warn_("Not DIAL receiver: "+C.friendlyName),C.receiverType=chrome.cast.ReceiverType.DIAL);var y=this.JSC$17421_session_?this.JSC$17421_session_.receiver_:null;if(!y||y.label!=C.label)return this.warn_("Receiving DIAL launch request for non-clicked DIAL receiver: "+C.friendlyName),Promise.reject(Error("Wk"));if(y&&y.label==C.label&&y.receiverType!=
chrome.cast.ReceiverType.DIAL){if(this.JSC$17421_session_.screen_)return Of("Reselecting dial screen."),this.publish("yt-remote-cast2-session-change",this.JSC$17421_session_.screen_),Promise.resolve(new chrome.cast.DialLaunchResponse(!1));this.warn_('Changing CAST intent from "'+y.receiverType+'" to "dial" for '+C.friendlyName);aa(this,new Uf(this.JSC$17421_screenService_,C,this.JSC$17421_theme_,this.config_))}C=this.JSC$17421_session_;C.launchData_=I;C.launchData_.appState==chrome.cast.DialAppState.RUNNING?
(I=C.launchData_.extraData||{},y=I.screenId||null,DXK(C)&&I.loungeToken?I.loungeTokenRefreshIntervalMs?I=jVS(C,{name:C.receiver_.friendlyName,screenId:I.screenId,loungeToken:I.loungeToken,dialId:C.launchData_.receiver.label,screenIdType:"shortLived"},I.loungeTokenRefreshIntervalMs):(_.v5(Error("Sk`"+JSON.stringify(I))),I=l4Y(C,y)):I=l4Y(C,y)):I=NfP(C);return I};
_.u.onSessionEstablished_=function(I){var C=this;if(!this.isDisposed()&&!this.forceMirroring_){Of("New cast session ID: "+I.sessionId);var y=I.receiver;if(y.receiverType!=chrome.cast.ReceiverType.CUSTOM){if(!this.JSC$17421_session_)if(y.receiverType==chrome.cast.ReceiverType.CAST)Of("Got resumed cast session before resumed mdx connection."),y.friendlyName=chrome.cast.unescape(y.friendlyName),aa(this,new hB(this.JSC$17421_screenService_,y,this.config_),!0);else{this.warn_("Got non-cast session without previous mdx receiver event, or mdx resume.");
return}var k=this.JSC$17421_session_.receiver_,F=RT(this.JSC$17421_screenService_.getScreens(),k.label);F&&$0(F,y.label)&&k.receiverType!=chrome.cast.ReceiverType.CAST&&y.receiverType==chrome.cast.ReceiverType.CAST&&(Of("onSessionEstablished_: manual to cast session change "+y.friendlyName),_.Bi(this.JSC$17421_session_),this.JSC$17421_session_=new hB(this.JSC$17421_screenService_,y,this.config_),this.JSC$17421_session_.subscribe("sessionScreen",(0,_.DD)(this.onSessionScreen_,this,this.JSC$17421_session_)),
this.JSC$17421_session_.subscribe("sessionFailed",function(){return buY(C,C.JSC$17421_session_)}),this.JSC$17421_session_.launchWithParams(null));
this.JSC$17421_session_.setCastSession(I)}}};
_.u.JSC$17423_getCastSession=function(){return this.JSC$17421_session_?this.JSC$17421_session_.JSC$17407_getCastSession():null};
_.u.onSessionRequestFailed_=function(I){this.isDisposed()||(this.warn_("Failed to estabilish a session: "+(0,_.lR)(I)),I.code!=chrome.cast.ErrorCode.CANCEL&&aa(this,null),this.publish("yt-remote-cast2-session-failed"))};
_.u.onReceiverUpdated_=function(I){Of("Receiver availability updated: "+I);if(!this.isDisposed()){var C=JB(this);this.hasCastReceiver_=I==chrome.cast.ReceiverAvailability.AVAILABLE;JB(this)!=C&&this.publish("yt-remote-cast2-availability-change",JB(this))}};
var $XS=function(I){var C=I.JSC$17421_screenService_.JSC$17403_getOnlineScreens(),y=I.JSC$17421_session_&&I.JSC$17421_session_.receiver_;I=_.pe(C,function(k){y&&$0(k,y.label)&&(y=null);var F=k.uuid?k.uuid:k.id,z=RfL(this,k);z?(z.label=F,z.friendlyName=k.name):(z=new chrome.cast.Receiver(F,k.name),z.receiverType=chrome.cast.ReceiverType.CUSTOM);return z},I);
y&&(y.receiverType!=chrome.cast.ReceiverType.CUSTOM&&(y=new chrome.cast.Receiver(y.label,y.friendlyName),y.receiverType=chrome.cast.ReceiverType.CUSTOM),I.push(y));return I};
B8.prototype.JSC$17423_onScreenChange_=function(){this.isDisposed()||(this.customReceivers_=$XS(this),Of("Updating custom receivers: "+(0,_.lR)(this.customReceivers_)),chrome.cast.setCustomReceivers(this.customReceivers_,function(){},(0,_.DD)(function(){this.warn_("Failed to set custom receivers.")},this)),this.publish("yt-remote-cast2-availability-change",JB(this)))};
B8.prototype.setLaunchParams=B8.prototype.setLaunchParams;B8.prototype.setConnectedScreenStatus=B8.prototype.setConnectedScreenStatus;B8.prototype.stopSession=B8.prototype.JSC$17423_stopSession;B8.prototype.getCastSession=B8.prototype.JSC$17423_getCastSession;B8.prototype.requestSession=B8.prototype.requestSession;B8.prototype.init=B8.prototype.init;B8.prototype.dispose=B8.prototype.dispose;var T9H=[];var Y7K=function(I){I.audioTrackId=null;I.trackData=null;I.playerState=-1;I.hasPrevious=!1;I.hasNext=!1;I.playerTime_=0;I.playerTimeAt_=_.CF();I.seekableStart_=0;I.seekableEnd_=0;I.duration_=0;I.loadedTime=0;I.liveIngestionTime_=NaN;I.isLive_=!1};
_.u=Ez.prototype;
_.u.reset=function(I){this.listId="";this.stopPlayer();this.volume=-1;this.muted=!1;I&&(this.index=I.index,this.listId=I.listId,this.videoId=I.videoId,this.playerState=I.playerState,this.volume=I.volume,this.muted=I.muted,this.audioTrackId=I.audioTrackId,this.trackData=I.trackData,this.hasPrevious=I.hasPrevious,this.hasNext=I.hasNext,this.playerTime_=I.playerTime,this.playerTimeAt_=I.playerTimeAt,this.seekableStart_=I.seekableStart,this.seekableEnd_=I.seekableEnd,this.duration_=I.duration,this.loadedTime=
I.loadedTime,this.liveIngestionTime_=I.liveIngestionTime,this.isLive_=!isNaN(this.liveIngestionTime_))};
_.u.stopPlayer=function(){this.index=-1;this.videoId="";Y7K(this)};
_.u.isPlaying=function(){return this.playerState==1};
_.u.isBuffering=function(){return this.playerState==3};
_.u.isAdPlaying=function(){return this.playerState==1081};
var MZ=function(I,C){I.playerTime_=C;I.playerTimeAt_=_.CF()},GkK=function(I){switch(I.playerState){case 1:case 1081:return(_.CF()-I.playerTimeAt_)/1E3+I.playerTime_;
case -1E3:return 0}return I.playerTime_};
Ez.prototype.getDuration=function(){return this.isLive_?this.duration_+(this.isPlaying()?(_.CF()-this.playerTimeAt_)/1E3:0):this.duration_};
var f4K=function(I,C,y){var k=I.videoId;I.videoId=C;I.index=y;C!=k&&Y7K(I)},S7Y=function(I){var C={};
C.index=I.index;C.listId=I.listId;C.videoId=I.videoId;C.playerState=I.playerState;C.volume=I.volume;C.muted=I.muted;C.audioTrackId=I.audioTrackId;C.trackData=_.Le.unsafeClone(I.trackData);C.hasPrevious=I.hasPrevious;C.hasNext=I.hasNext;C.playerTime=I.playerTime_;C.playerTimeAt=I.playerTimeAt_;C.seekableStart=I.seekableStart_;C.seekableEnd=I.seekableEnd_;C.duration=I.duration_;C.loadedTime=I.loadedTime;C.liveIngestionTime=I.liveIngestionTime_;return C};
Ez.prototype.clone=function(){return new Ez(S7Y(this))};var Ik=function(I,C){_.BU.call(this);var y=this;this.state_=0;this.connection_=I;this.contextSubscriptions_=[];this.actionQueue_=new FrY;this.castSession_=this.castMedia_=null;this.boundCastStatusListener_=(0,_.DD)(this.onCastStatusUpdate_,this);this.boundCastMediaListener_=(0,_.DD)(this.onCastMediaChange_,this);this.boundCastMediaUpdateListener_=(0,_.DD)(this.onCastMediaUpdate_,this);this.boundCloudviewAvailabilityChange_=(0,_.DD)(this.onCloudviewAvailabilityChange_,this);var k=0;I?(k=I.getProxyState(),
k!=3&&(I.subscribe("proxyStateChange",this.setState_,this),Kyy(this))):k=3;k!=0&&(C?this.setState_(k):_.FT(function(){y.setState_(k)},0));
(I=iAH())&&AJP(this,I);this.subscribe("yt-remote-cast2-session-change",this.boundCloudviewAvailabilityChange_)};
_.R(Ik,_.BU);Ik.prototype.getState=function(){return this.state_};
Ik.prototype.getReconnectTimeout=function(){return this.connection_.getReconnectTimeout()};
Ik.prototype.reconnect=function(){this.connection_.reconnect()};
var CG=function(I){return new Ez(I.connection_.getPlayerContextData())};
_.u=Ik.prototype;_.u.play=function(){sc(this)?(this.castMedia_?this.castMedia_.play(null,_.nQ,gUy(this,"play")):ok(this,"play"),vUS(this,1,GkK(CG(this))),this.publish("remotePlayerChange")):yh(this,this.play)};
_.u.pause=function(){sc(this)?(this.castMedia_?this.castMedia_.pause(null,_.nQ,gUy(this,"pause")):ok(this,"pause"),vUS(this,2,GkK(CG(this))),this.publish("remotePlayerChange")):yh(this,this.pause)};
_.u.seekTo=function(I){if(sc(this)){if(this.castMedia_){var C=CG(this),y=new chrome.cast.media.SeekRequest;y.currentTime=I;C.isPlaying()||C.isBuffering()?y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_START:y.resumeState=chrome.cast.media.ResumeState.PLAYBACK_PAUSE;this.castMedia_.seek(y,_.nQ,gUy(this,"seekTo",{newTime:I}))}else ok(this,"seekTo",{newTime:I});vUS(this,3,I);this.publish("remotePlayerChange")}else yh(this,_.D0(this.seekTo,I))};
_.u.stop=function(){if(sc(this)){this.castMedia_?this.castMedia_.stop(null,_.nQ,gUy(this,"stopVideo")):ok(this,"stopVideo");var I=CG(this);I.stopPlayer();kP(this,I);this.publish("remotePlayerChange")}else yh(this,this.stop)};
_.u.setVolume=function(I,C){if(sc(this)){var y=CG(this);if(this.castSession_){if(y.volume!=I){var k=Math.round(I)/100;this.castSession_.setReceiverVolumeLevel(k,(0,_.DD)(function(){Kt("set receiver volume: "+k)},this),(0,_.DD)(function(){this.warn_("failed to set receiver volume.")},this))}y.muted!=C&&this.castSession_.setReceiverMuted(C,(0,_.DD)(function(){Kt("set receiver muted: "+C)},this),(0,_.DD)(function(){this.warn_("failed to set receiver muted.")},this))}else{var F={volume:I,
muted:C};y.volume!=-1&&(F.delta=I-y.volume);ok(this,"setVolume",F)}y.muted=C;y.volume=I;kP(this,y)}else yh(this,_.D0(this.setVolume,I,C))};
_.u.setAudioTrack=function(I,C){sc(this)?(C=C.getLanguageInfo().getId(),ok(this,"setAudioTrack",{videoId:I,audioTrackId:C}),I=CG(this),I.audioTrackId=C,kP(this,I)):yh(this,_.D0(this.setAudioTrack,I,C))};
_.u.addVideo=function(I){sc(this)?ok(this,"addVideo",{videoId:I}):yh(this,_.D0(this.addVideo,I))};
_.u.addPlaylist=function(I){sc(this)?ok(this,"addVideos",{listId:I}):yh(this,_.D0(this.addPlaylist,I))};
_.u.addVideos=function(I){I.length==0?this.warn_("Ignore add videos request due to empty list"):sc(this)?ok(this,"addVideos",{videoIds:I.join(",")}):yh(this,_.D0(this.addVideos,I))};
_.u.JSC$17433_removeVideo=function(I){sc(this)?ok(this,"removeVideo",{videoId:I}):yh(this,_.D0(this.JSC$17433_removeVideo,I))};
_.u.JSC$17433_insertVideo=function(I){sc(this)?ok(this,"insertVideo",{videoId:I}):yh(this,_.D0(this.JSC$17433_insertVideo,I))};
_.u.playVideo=function(I,C,y,k,F,z,c){k=k===void 0?null:k;F=F===void 0?null:F;z=z===void 0?null:z;c=c===void 0?null:c;var r=CG(this),w={videoId:I};y!==void 0&&(w.currentIndex=y);f4K(r,I,y||0);C!==void 0&&(MZ(r,C),w.currentTime=C);k&&(w.listId=k);F&&(w.playerParams=F);z&&(w.clickTrackingParams=z);c&&(w.locationInfo=(0,_.lR)(c));ok(this,"setPlaylist",w);k||kP(this,r)};
_.u.nextVideo=function(I,C){if(sc(this)){if(I&&C){var y=CG(this);f4K(y,I,C);kP(this,y)}ok(this,"next")}else yh(this,_.D0(this.nextVideo,I,C))};
_.u.clearPlaylist=function(){if(sc(this)){ok(this,"clearPlaylist");var I=CG(this);I.reset();kP(this,I);this.publish("remotePlayerChange")}else yh(this,this.clearPlaylist)};
_.u.dispose=function(){if(this.state_!=3){var I=this.state_;this.state_=3;this.publish("proxyStateChange",I,this.state_)}_.BU.prototype.dispose.call(this)};
_.u.disposeInternal=function(){WyY(this);this.connection_=null;this.actionQueue_.clear();AJP(this,null);_.BU.prototype.disposeInternal.call(this)};
var Kyy=function(I){_.mn("nowAutoplaying autoplayDismissed remotePlayerChange remoteQueueChange autoplayModeChange autoplayUpNext previousNextChange multiStateLoopEnabled loopModeChange".split(" "),function(C){this.contextSubscriptions_.push(this.connection_.subscribe(C,_.D0(this.onProxyEvent_,C),this))},I)},WyY=function(I){_.mn(I.contextSubscriptions_,function(C){this.connection_.unsubscribeByKey(C)},I);
I.contextSubscriptions_.length=0},sc=function(I){return I.getState()==1},yh=function(I,C){I.actionQueue_.getCount()<50&&I.actionQueue_.enqueue(C)},vUS=function(I,C,y){var k=CG(I);
MZ(k,y);k.playerState!=-1E3&&(k.playerState=C);kP(I,k)},ok=function(I,C,y){I.connection_.sendMessage(C,y)},kP=function(I,C){WyY(I);
I.connection_.setPlayerContextData(S7Y(C));Kyy(I)};
Ik.prototype.setState_=function(I){if((I!=this.state_||I==2)&&this.state_!=3&&I!=0){var C=this.state_;this.state_=I;this.publish("proxyStateChange",C,I);if(I==1)for(;!this.actionQueue_.isEmpty();)I=this.actionQueue_,M_H(I),I.front_.pop().apply(this);else I==3&&this.dispose()}};
Ik.prototype.onProxyEvent_=function(I,C){this.publish(I,C)};
var AJP=function(I,C){I.castSession_&&(I.castSession_.removeUpdateListener(I.boundCastStatusListener_),I.castSession_.removeMediaListener(I.boundCastMediaListener_),I.onCastMediaChange_(null));I.castSession_=C;if(I.castSession_&&(Kt("Setting cast session: "+I.castSession_.sessionId),I.castSession_.addUpdateListener(I.boundCastStatusListener_),I.castSession_.addMediaListener(I.boundCastMediaListener_),I.castSession_.media.length))I.onCastMediaChange_(I.castSession_.media[0])};
Ik.prototype.onCastStatusUpdate_=function(I){if(!I)this.onCastMediaChange_(null),AJP(this,null);else if(this.castSession_.receiver.volume){I=this.castSession_.receiver.volume;var C=CG(this),y=Math.round(100*I.level||0);if(C.volume!=y||C.muted!=I.muted)Kt("Cast volume update: "+I.level+(I.muted?" muted":"")),C.volume=y,C.muted=!!I.muted,kP(this,C)}};
Ik.prototype.onCastMediaChange_=function(I){Kt("Cast media: "+!!I);this.castMedia_&&this.castMedia_.removeUpdateListener(this.boundCastMediaUpdateListener_);if(this.castMedia_=I)this.castMedia_.addUpdateListener(this.boundCastMediaUpdateListener_),dXY(this),this.publish("remotePlayerChange")};
var dXY=function(I){var C=I.castMedia_.media,y=I.castMedia_.customData;if(C&&y){var k=CG(I);C.contentId!=k.videoId&&Kt("Cast changing video to: "+C.contentId);k.videoId=C.contentId;k.playerState=y.playerState;MZ(k,I.castMedia_.getEstimatedTime());kP(I,k)}else Kt("No cast media video. Ignoring state update.")};
Ik.prototype.onCastMediaUpdate_=function(I){if(I)dXY(this),this.publish("remotePlayerChange");else this.onCastMediaChange_(null)};
Ik.prototype.onCloudviewAvailabilityChange_=function(){var I=iAH();I&&AJP(this,I)};
Ik.prototype.warn_=function(I){SM("CP",I)};
var gUy=function(I,C,y){return(0,_.DD)(function(k){this.warn_("Failed to "+C+" with cast v2 channel. Error code: "+k.code);k.code!=chrome.cast.ErrorCode.TIMEOUT&&(this.warn_("Retrying "+C+" using MDx browser channel."),ok(this,C,y))},I)};var uw=function(I,C,y,k){k=k===void 0?!1:k;_.BU.call(this);var F=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$17440_http_=I;this.enableConnectWithInitialState_=k;this.listeners_.push(_.ae(window,"beforeunload",function(){F.JSC$17443_disconnect_(2)}));
this.connectedDevices_=[];this.playerContext_=new Ez;this.currentScreenId_=C.id;this.currentScreenIdType_=C.idType;this.channelService=A$K(this.JSC$17440_http_,y,this.JSC$17443_getXsrfToken_,this.currentScreenIdType_=="shortLived",this.currentScreenId_);this.channelService.listen("channelOpened",function(){xXL(F)});
this.channelService.listen("channelClosed",function(){Fz("Channel closed");isNaN(F.connectTimerId_)?b5(!0):b5();F.dispose()});
this.channelService.listen("channelError",function(z){b5();isNaN(F.getReconnectTimeout_())?(z==1&&F.currentScreenIdType_=="shortLived"&&F.publish("browserChannelAuthError",z),Fz("Channel error: "+z+" without reconnection"),F.dispose()):(F.reconnecting_=!0,Fz("Channel error: "+z+" with reconnection in "+F.getReconnectTimeout_()+" ms"),q7M(F,2))});
this.channelService.listen("channelMessage",function(z){mXM(F,z)});
this.channelService.setLoungeToken(C.token);this.subscribe("remoteQueueChange",function(){var z=F.playerContext_.videoId;QCK()&&_.ky("yt-remote-session-video-id",z)})};
_.R(uw,_.BU);
uw.prototype.connect=function(I,C){if(C){var y=C.listId,k=C.videoId,F=C.videoIds,z=C.playerParams,c=C.clickTrackingParams,r=C.index,w={videoId:k},L=C.currentTime,D=C.locationInfo;C=C.loopMode;L!==void 0&&(w.currentTime=L<=5?0:L);z&&(w.playerParams=z);D&&(w.locationInfo=D);c&&(w.clickTrackingParams=c);y&&(w.listId=y);F&&F.length>0&&(w.videoIds=F.join(","));r!==void 0&&(w.currentIndex=r);this.enableConnectWithInitialState_&&(w.loopMode=C||"LOOP_MODE_OFF");y&&(this.playerContext_.listId=y);this.playerContext_.videoId=
k;this.playerContext_.index=r||0;this.playerContext_.state=3;MZ(this.playerContext_,L);this.autoplayMode_="UNSUPPORTED";y=this.enableConnectWithInitialState_?"setInitialState":"setPlaylist";Fz("Connecting with "+y+" and params: "+(0,_.lR)(w));this.channelService.connect({method:y,params:(0,_.lR)(w)},I,X$K())}else Fz("Connecting without params"),this.channelService.connect({},I,X$K());Zu8(this)};
uw.prototype.setLoungeToken=function(I){this.channelService.setLoungeToken(I)};
uw.prototype.dispose=function(){this.isDisposed()||(_.U8("yt.mdx.remote.remoteClient_",null),this.publish("beforeDispose"),q7M(this,3));_.BU.prototype.dispose.call(this)};
uw.prototype.disposeInternal=function(){BfK(this);EUL(this);hfL(this);_.zl(this.clientSetVideoTimerId_);this.clientSetVideoTimerId_=NaN;_.zl(this.idleDisconnectTimerId_);this.idleDisconnectTimerId_=NaN;this.clientVideoId_=null;_.fWm(this.listeners_);this.listeners_.length=0;this.channelService.dispose();_.BU.prototype.disposeInternal.call(this);this.autoplayMode_=this.autoplayVideoId_=this.connectedDevices_=this.playerContext_=this.channelService=null};
var UXR=function(I){return _.AX(I.connectedDevices_,function(C){return C.type=="LOUNGE_SCREEN"})},Fz=function(I){SM("conn",I)},q7M=function(I,C){I.publish("proxyStateChange",C)},Zu8=function(I){I.connectTimerId_=_.FT(function(){Fz("Connecting timeout");
I.JSC$17443_disconnect_(1)},2E4)},BfK=function(I){_.zl(I.connectTimerId_);
I.connectTimerId_=NaN},hfL=function(I){_.zl(I.reconnectedCheckScreenTimeout_);
I.reconnectedCheckScreenTimeout_=NaN},HuM=function(I){EUL(I);
I.playingSyncTimerId_=_.FT(function(){zj(I,"getNowPlaying")},2E4)},EUL=function(I){_.zl(I.playingSyncTimerId_);
I.playingSyncTimerId_=NaN},xXL=function(I){Fz("Channel opened");
I.reconnecting_&&(I.reconnecting_=!1,hfL(I),I.reconnectedCheckScreenTimeout_=_.FT(function(){Fz("Timing out waiting for a screen.");I.JSC$17443_disconnect_(1)},15E3))},JJS=function(I,C){var y=null;
if(C){var k=UXR(I);k&&(y={clientName:k.clientName,deviceMake:k.brand,deviceModel:k.model,osVersion:k.osVersion})}_.U8("yt.mdx.remote.remoteClient_",y);C&&(BfK(I),hfL(I));y=I.channelService.isChannelOpened()&&isNaN(I.connectTimerId_);C==y?C&&(q7M(I,1),zj(I,"getSubtitlesTrack")):C?(I.getOtherConnectedRemoteId_()&&I.playerContext_.reset(),q7M(I,1),zj(I,"getNowPlaying"),toR(I)):I.JSC$17443_disconnect_(1)},Ouy=function(I,C){var y=C.params.videoId;
delete C.params.videoId;y==I.playerContext_.videoId&&(_.Le.isEmpty(C.params)?I.playerContext_.trackData=null:I.playerContext_.trackData=C.params,I.publish("remotePlayerChange"))},a4Y=function(I,C,y){var k=C.params.videoId||C.params.video_id,F=parseInt(C.params.currentIndex,10);
I.playerContext_.listId=C.params.listId||I.playerContext_.listId;f4K(I.playerContext_,k,F);I.publish("remoteQueueChange",y)},MoY=function(I,C){C.params=C.params||{};
a4Y(I,C,"NOW_PLAYING_MAY_CHANGE");I.onStateChange_(C);I.publish("autoplayDismissed")};
uw.prototype.onStateChange_=function(I){var C=parseInt(I.params.currentTime||I.params.current_time,10);MZ(this.playerContext_,isNaN(C)?0:C);C=parseInt(I.params.state,10);C=isNaN(C)?-1:C;C==-1&&this.playerContext_.playerState==-1E3&&(C=-1E3);this.playerContext_.playerState=C;C=Number(I.params.loadedTime);this.playerContext_.loadedTime=isNaN(C)?0:C;C=Number(I.params.duration);this.playerContext_.duration_=isNaN(C)?0:C;C=this.playerContext_;var y=Number(I.params.liveIngestionTime);C.liveIngestionTime_=
y;C.isLive_=isNaN(y)?!1:!0;C=this.playerContext_;y=Number(I.params.seekableStartTime);I=Number(I.params.seekableEndTime);C.seekableStart_=isNaN(y)?0:y;C.seekableEnd_=isNaN(I)?0:I;this.playerContext_.playerState==1?HuM(this):EUL(this);this.publish("remotePlayerChange")};
uw.prototype.onAdStateChange_=function(I){if(this.playerContext_.playerState!=-1E3){var C=1085;switch(parseInt(I.params.adState,10)){case 1:C=1081;break;case 2:C=1084;break;case 0:C=1083}this.playerContext_.playerState=C;I=parseInt(I.params.currentTime,10);MZ(this.playerContext_,isNaN(I)?0:I);this.publish("remotePlayerChange")}};
var ILK=function(I,C){var y=C.params.muted=="true";I.playerContext_.volume=parseInt(C.params.volume,10);I.playerContext_.muted=y;I.publish("remotePlayerChange")},CaB=function(I,C){I.autoplayVideoId_=C.params.videoId;
I.publish("nowAutoplaying",parseInt(C.params.timeout,10))},sAS=function(I,C){I.autoplayVideoId_=C.params.videoId||null;
I.publish("autoplayUpNext",I.autoplayVideoId_)},oyR=function(I,C){I.autoplayMode_=C.params.autoplayMode;
I.publish("autoplayModeChange",I.autoplayMode_);I.autoplayMode_=="DISABLED"&&I.publish("autoplayDismissed")},ysj=function(I,C){var y=C.params.hasNext=="true";
I.playerContext_.hasPrevious=C.params.hasPrevious=="true";I.playerContext_.hasNext=y;I.publish("previousNextChange")};
uw.prototype.isCapabilitySupportedOnConnectedDevices_=function(I){if(!this.connectedDevices_||this.connectedDevices_.length===0)return!1;for(var C=_.T(this.connectedDevices_),y=C.next();!y.done;y=C.next())if(!y.value.capabilities.has(I))return!1;return!0};
var mXM=function(I,C){C=C.message;C.params?Fz("Received: action="+C.action+", params="+(0,_.lR)(C.params)):Fz("Received: action="+C.action+" {}");switch(C.action){case "loungeStatus":C=(0,_.RC)(C.params.devices);I.connectedDevices_=_.pe(C,function(k){return new qZ(k)});
C=!!_.AX(I.connectedDevices_,function(k){return k.type=="LOUNGE_SCREEN"});
JJS(I,C);C=I.isCapabilitySupportedOnConnectedDevices_("mlm");I.publish("multiStateLoopEnabled",C);break;case "loungeScreenDisconnected":q8L(I.connectedDevices_,function(k){return k.type=="LOUNGE_SCREEN"});
JJS(I,!1);break;case "remoteConnected":var y=new qZ((0,_.RC)(C.params.device));_.AX(I.connectedDevices_,function(k){return k.equals(y)})||_.Dzt(I.connectedDevices_,y);
break;case "remoteDisconnected":y=new qZ((0,_.RC)(C.params.device));q8L(I.connectedDevices_,function(k){return k.equals(y)});
break;case "gracefulDisconnect":break;case "playlistModified":a4Y(I,C,"QUEUE_MODIFIED");break;case "nowPlaying":MoY(I,C);break;case "onStateChange":I.onStateChange_(C);break;case "onAdStateChange":I.onAdStateChange_(C);break;case "onVolumeChanged":ILK(I,C);break;case "onSubtitlesTrackChanged":Ouy(I,C);break;case "nowAutoplaying":CaB(I,C);break;case "autoplayDismissed":I.publish("autoplayDismissed");break;case "autoplayUpNext":sAS(I,C);break;case "onAutoplayModeChanged":oyR(I,C);break;case "onHasPreviousNextChanged":ysj(I,
C);break;case "requestAssistedSignIn":I.publish("assistedSignInRequested",C.params.authCode);break;case "onLoopModeChanged":I.publish("loopModeChange",C.params.loopMode);break;default:Fz("Unrecognized action: "+C.action)}};
_.u=uw.prototype;_.u.getProxyState_=function(){var I=3;this.isDisposed()||(I=0,isNaN(this.getReconnectTimeout_())?this.channelService.isChannelOpened()&&isNaN(this.connectTimerId_)&&(I=1):I=2);return I};
_.u.JSC$17443_disconnect_=function(I){Fz("Disconnecting with "+I);_.U8("yt.mdx.remote.remoteClient_",null);BfK(this);this.publish("beforeDisconnect",I);I==1&&b5();this.channelService.disconnect(I);this.dispose()};
_.u.getPlayerContextData_=function(){var I=this.playerContext_;this.clientVideoId_&&(I=this.playerContext_.clone(),f4K(I,this.clientVideoId_,I.index));return S7Y(I)};
_.u.setPlayerContextData_=function(I){var C=this,y=new Ez(I);y.videoId&&y.videoId!=this.playerContext_.videoId&&(this.clientVideoId_=y.videoId,_.zl(this.clientSetVideoTimerId_),this.clientSetVideoTimerId_=_.FT(function(){if(C.clientVideoId_){var F=C.clientVideoId_;C.clientVideoId_=null;C.playerContext_.videoId!=F&&zj(C,"getNowPlaying")}},5E3));
var k=[];this.playerContext_.listId==y.listId&&this.playerContext_.videoId==y.videoId&&this.playerContext_.index==y.index||k.push("remoteQueueChange");this.playerContext_.playerState==y.playerState&&this.playerContext_.volume==y.volume&&this.playerContext_.muted==y.muted&&GkK(this.playerContext_)==GkK(y)&&(0,_.lR)(this.playerContext_.trackData)==(0,_.lR)(y.trackData)||k.push("remotePlayerChange");this.playerContext_.reset(I);_.mn(k,function(F){this.publish(F)},this)};
_.u.getOtherConnectedRemoteId_=function(){var I=this.channelService.getDeviceId(),C=_.AX(this.connectedDevices_,function(y){return y.type=="REMOTE_CONTROL"&&y.id!=I});
return C?C.id:""};
_.u.getReconnectTimeout_=function(){return this.channelService.getReconnectTimeout()};
_.u.getAutoplayMode_=function(){return this.autoplayMode_||"UNSUPPORTED"};
_.u.getAutoplayVideoId_=function(){return this.autoplayVideoId_||""};
_.u.JSC$17443_reconnect_=function(){!isNaN(this.getReconnectTimeout_())&&this.channelService.reconnect()};
var toR=function(I){_.zl(I.idleDisconnectTimerId_);I.idleDisconnectTimerId_=_.FT(function(){I.JSC$17443_disconnect_(1)},864E5)},zj=function(I,C,y){y?Fz("Sending: action="+C+", params="+(0,_.lR)(y)):Fz("Sending: action="+C);
I.channelService.sendMessage(C,y)};
uw.prototype.sendMessageWithUserAction_=function(I,C){zj(this,I,C);toR(this)};
uw.prototype.JSC$17443_getXsrfToken_=function(){var I=_.wC.get("SAPISID","")||_.wC.get("__Secure-1PAPISID",void 0)||"",C=_.wC.get("__Secure-3PAPISID","")||"";if(!I&&!C)return"";I=_.HR(_.nL(I),2);C=_.HR(_.nL(C),2);return _.HR(_.nL(","+I+","+C),2)};
uw.prototype.subscribe=uw.prototype.subscribe;uw.prototype.unsubscribeByKey=uw.prototype.unsubscribeByKey;uw.prototype.getProxyState=uw.prototype.getProxyState_;uw.prototype.disconnect=uw.prototype.JSC$17443_disconnect_;uw.prototype.getPlayerContextData=uw.prototype.getPlayerContextData_;uw.prototype.setPlayerContextData=uw.prototype.setPlayerContextData_;uw.prototype.getOtherConnectedRemoteId=uw.prototype.getOtherConnectedRemoteId_;uw.prototype.getReconnectTimeout=uw.prototype.getReconnectTimeout_;
uw.prototype.getAutoplayMode=uw.prototype.getAutoplayMode_;uw.prototype.getAutoplayVideoId=uw.prototype.getAutoplayVideoId_;uw.prototype.reconnect=uw.prototype.JSC$17443_reconnect_;uw.prototype.sendMessage=uw.prototype.sendMessageWithUserAction_;uw.prototype.getXsrfToken=uw.prototype.JSC$17443_getXsrfToken_;uw.prototype.isCapabilitySupportedOnConnectedDevices=uw.prototype.isCapabilitySupportedOnConnectedDevices_;var kZY=function(I){gw.call(this,"ScreenServiceProxy");this.instance_=I;this.subscriptionKeys_=[];this.subscriptionKeys_.push(this.instance_.$_s("screenChange",(0,_.DD)(this.JSC$17446_onScreenChange_,this)));this.subscriptionKeys_.push(this.instance_.$_s("onlineScreenChange",(0,_.DD)(this.onOnlineScreenChange_,this)))};
_.R(kZY,gw);_.u=kZY.prototype;_.u.getScreens=function(I){return this.instance_.$_gs(I)};
_.u.contains=function(I){return!!this.instance_.$_c(I)};
_.u.get=function(I){return this.instance_.$_g(I)};
_.u.start=function(){this.instance_.$_st()};
_.u.add=function(I,C,y){this.instance_.$_a(I,C,y)};
_.u.remove=function(I,C,y){this.instance_.$_r(I,C,y)};
_.u.updateName=function(I,C,y,k){this.instance_.$_un(I,C,y,k)};
_.u.disposeInternal=function(){for(var I=this.subscriptionKeys_.length,C=0;C<I;++C)this.instance_.$_ubk(this.subscriptionKeys_[C]);this.subscriptionKeys_.length=0;this.instance_=null;gw.prototype.disposeInternal.call(this)};
_.u.JSC$17446_onScreenChange_=function(){this.publish("screenChange")};
_.u.onOnlineScreenChange_=function(){this.publish("onlineScreenChange")};
dw.prototype.$_st=dw.prototype.start;dw.prototype.$_gspc=dw.prototype.JSC$17403_getScreenByPairingCode;dw.prototype.$_gsppc=dw.prototype.JSC$17403_getScreenByPollingPairingCode;dw.prototype.$_c=dw.prototype.contains;dw.prototype.$_g=dw.prototype.get;dw.prototype.$_a=dw.prototype.add;dw.prototype.$_un=dw.prototype.updateName;dw.prototype.$_r=dw.prototype.remove;dw.prototype.$_gs=dw.prototype.getScreens;dw.prototype.$_gos=dw.prototype.JSC$17403_getOnlineScreens;dw.prototype.$_s=dw.prototype.subscribe;
dw.prototype.$_ubk=dw.prototype.unsubscribeByKey;var rsH=function(I){YhK();if(!Y0||!Y0.get("yt-remote-disable-remote-module-for-dev")){I=_.Aq("MDX_CONFIG")||I;W4B();ViM();Tj||(Tj=new l5(I?I.loungeApiHost:void 0),G5R()&&(Tj.basePath="/api/loungedev"));cB||(cB=_.d5("yt.mdx.remote.deferredProxies_")||[],_.U8("yt.mdx.remote.deferredProxies_",cB));FtR();var C=e6();if(!C){var y=new dw(Tj,I?I.disableAutomaticScreenCache||!1:!1);_.U8("yt.mdx.remote.screenService_",y);C=e6();var k={};I&&(k={appId:I.appId,disableDial:I.disableDial,theme:I.theme,loadCastApiSetupScript:I.loadCastApiSetupScript,
disableCastApi:I.disableCastApi,enableDialLoungeToken:I.enableDialLoungeToken,enableCastLoungeToken:I.enableCastLoungeToken,forceMirroring:I.forceMirroring});_.U8("yt.mdx.remote.enableConnectWithInitialState_",I?I.enableConnectWithInitialState||!1:!1);ueL(y,function(z){z?r6()&&n3K(r6(),"YouTube TV"):y.subscribe("onlineScreenChange",function(){Og("yt-remote-receiver-availability-change")})},k)}if(I&&!_.d5("yt.mdx.remote.initialized_")){_.U8("yt.mdx.remote.initialized_",!0);
iw("Initializing: "+(0,_.lR)(I));w6.push(_.ko("yt-remote-cast2-api-ready",function(){Og("yt-remote-api-ready")}));
w6.push(_.ko("yt-remote-cast2-availability-change",function(){Og("yt-remote-receiver-availability-change")}));
w6.push(_.ko("yt-remote-cast2-receiver-selected",function(){ukR();Og("yt-remote-auto-connect","cast-selector-receiver")}));
w6.push(_.ko("yt-remote-cast2-receiver-resumed",function(){Og("yt-remote-receiver-resumed","cast-selector-receiver")}));
w6.push(_.ko("yt-remote-cast2-session-change",ziL));w6.push(_.ko("yt-remote-connection-change",function(z){z?n3K(r6(),"YouTube TV"):Tx8()||(n3K(null,null),r7R())}));
w6.push(_.ko("yt-remote-cast2-session-failed",function(){Og("yt-remote-connection-failed")}));
k=csy();I.isAuto&&(k.id+="#dial");var F=I.capabilities||[];_.V("desktop_enable_autoplay")&&F.push("atp");F.length>0&&(k.capabilities=F);k.name=I.device;k.app=I.app;(I=I.theme)&&(k.theme=I);iw(" -- with channel params: "+(0,_.lR)(k));k?(_.ky("yt-remote-session-app",k.app),_.ky("yt-remote-session-name",k.name)):(_.ua("yt-remote-session-app"),_.ua("yt-remote-session-name"));_.U8("yt.mdx.remote.channelParams_",k);C.start();r6()||ei8()}}},w7y=function(){var I=e6().instance_.$_gos();
var C=i0M();C&&nG()&&(LrS(I,C)||I.push(C));return PGj(I)},nyH=function(){var I=w7y(),C=i0M();
C||(C=Tx8());return _.AX(I,function(y){return C&&$0(C,y.key)?!0:!1})},i0M=function(){var I=r6();
if(!I)return null;var C=e6().getScreens();return RT(C,I)},ziL=function(I){iw("remote.onCastSessionChange_: "+PWS(I));
if(I){var C=i0M();C&&C.id==I.id?(n3K(C.id,"YouTube TV"),I.idType=="shortLived"&&(I=I.token)&&(C=nG())&&C.setLoungeToken(I)):(C&&Paj(),LtH(I,1))}else nG()&&Paj()},Paj=function(){wQy()?ZV().stopSession():m6("stopSession called before API ready.");
var I=nG();I&&(I.disconnect(1),D8K(null))},p7K=function(){var I=nG();
return I&&I.getProxyState()!=3?new Ik(nG(),void 0):null},iw=function(I){SM("remote",I)},e6=function(){if(!QAB){var I=_.d5("yt.mdx.remote.screenService_");
QAB=I?new kZY(I):null}return QAB},r6=function(){return _.d5("yt.mdx.remote.currentScreenId_")},Nxj=function(I){_.U8("yt.mdx.remote.currentScreenId_",I)},ukR=function(){_.U8("yt.mdx.remote.connectData_",null)},nG=function(){return _.d5("yt.mdx.remote.connection_")},D8K=function(I){var C=nG();
ukR();I||Nxj("");_.U8("yt.mdx.remote.connection_",I);cB&&(_.mn(cB,function(y){y(I)}),cB.length=0);
C&&!I?Og("yt-remote-connection-change",!1):!C&&I&&Og("yt-remote-connection-change",!0)},Tx8=function(){var I=QCK();
if(!I)return null;var C=e6();if(!C)return null;C=C.getScreens();return RT(C,I)},LtH=function(I,C){Nxj(I.id);
I=new uw(Tj,I,csy(),_.d5("yt.mdx.remote.enableConnectWithInitialState_")||!1);I.connect(C,_.d5("yt.mdx.remote.connectData_"));I.subscribe("beforeDisconnect",function(y){Og("yt-remote-before-disconnect",y)});
I.subscribe("beforeDispose",function(){nG()&&D8K(null)});
I.subscribe("browserChannelAuthError",function(){var y=i0M();y&&y.idType=="shortLived"&&(wQy()?ZV().handleBrowserChannelAuthError():m6("refreshLoungeToken called before API ready."))});
D8K(I)},ei8=function(){var I=Tx8();
I?(iw("Resume connection to: "+PWS(I)),LtH(I,0)):(b5(),r7R(),iw("Skipping connecting because no session screen found."))},Tj=null,cB=null,QAB=null,FtR=function(){var I=csy();
if(_.Le.isEmpty(I)){I=p$B();var C=_.Fk("yt-remote-session-name")||"",y=_.Fk("yt-remote-session-app")||"";I={device:"REMOTE_CONTROL",id:I,name:C,app:y,mdxVersion:3};I.authuser=String(_.Aq("SESSION_INDEX","0"));(C=_.Aq("DELEGATED_SESSION_ID"))&&(I.pageId=String(C));_.U8("yt.mdx.remote.channelParams_",I)}},csy=function(){return _.d5("yt.mdx.remote.channelParams_")||{}},w6=[];var V9P=new _.Kw("yt-menu"),jAL=function(){},X7L=function(I,C,y){I=C=="right-click"?y.rightClickMenuPopupHint:y.menuPopupHint;
if(!(lLR(C)>10))return C=C||"default",V9P.set(C+"-impression",lLR(C)+1),I},lLR=function(I){return parseInt(V9P.get((I||"default")+"-impression")||0,10)};
_.Ih(jAL);var $8j=function(){this.contexts_=new WeakMap;this.JSC$17452_networkService_=this.activeContext_=null},RiB=function(I,C,y){var k=I.contexts_.get(C);
k||(k=new vsY(I.JSC$17452_networkService_),I.contexts_.set(C,k));I.activeContext_=k;y&&I.activeContext_.reset();I.activeContext_.start();return I.activeContext_};var PB=function(){};
PB.prototype.enqueue=function(){var I=this,C;return _.e(function(y){if(I.isCounterfactual())return(C=I.getCounterfactualData())&&I.shouldLogCounterfactualImpression()&&I.sendImpressionEndpoints(C),y.return();I.doEnqueue();_.oI(y)})};
PB.prototype.sendImpressionEndpoints=function(I){_.qU.getInstance().triggerOptionalAction("yt-service-request",{},I[0])};var LG=function(I,C){this.renderer=I;this.page=C};
_.R(LG,PB);LG.prototype.getCounterfactualData=function(){if(this.renderer.impressionCommand)return[this.renderer.impressionCommand]};
LG.prototype.isCounterfactual=function(){return!this.renderer.isVisible};
LG.prototype.shouldLogCounterfactualImpression=function(){return!0};
LG.prototype.doEnqueue=function(){var I=_.EZ(this.page);I&&I.pause();this.renderer.impressionCommand&&_.qU.getInstance().triggerOptionalAction("yt-service-request",{},this.renderer.impressionCommand);this.renderer.promoCommand&&_.Gv(_.qU.getInstance(),[this.renderer.promoCommand],this.page)};var b0j=function(I,C){this.renderer=I;this.resolver=_.vP();this.JSC$17464_enforcementCounter=new _.tlY;C?this.JSC$17464_playerManager=_.EZ(C):this.JSC$17464_playerManager=null;_.ef(1,!0)};
_.R(b0j,PB);_.u=b0j.prototype;_.u.getCounterfactualData=function(){if(this.renderer.impressionEndpoints){var I=[];this.renderer.impressionEndpoints.forEach(function(C){(C=_.Rj(C))&&I.push(C)});
return I}};
_.u.isCounterfactual=function(){return this.renderer.isVisible===!1};
_.u.shouldLogCounterfactualImpression=function(){var I=_.AOm();I?(this.JSC$17464_enforcementCounter.increment("POPUP"),_.ef(3)):_.ef(2);return I};
_.u.cancel=function(){this.resolver.promise.cancel()};
_.u.doEnqueue=function(){var I=this;_.AOm()?(this.JSC$17464_enforcementCounter.increment("POPUP"),_.ef(3),Yty(this)):this.JSC$17464_playerManager?(this.resolver.promise.then(function(){Yty(I)}),GZj(this.resolver,this.JSC$17464_playerManager)):_.ef(2)};
var GZj=function(I,C){var y=_.vP();C.getPlayerPromise().then(function(k){y.resolve(k)});
y.promise.then(function(k){k.addEventListener("onAbnormalityDetected",I.resolve);_.N2(I.promise,function(){k.removeEventListener("onAbnormalityDetected",I.resolve)})});
I.promise.thenCatch(function(){y.promise.cancel()})},Yty=function(I){_.ef(3);
var C={popupType:"LOCKED_MODAL",popup:{enforcementMessageViewModel:I.renderer}};C=_.qU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});Promise.all(C).then(function(){fLY();I.JSC$17464_playerManager&&I.JSC$17464_playerManager.pause()})},fLY=function(){XF8(function(I,C){_.jDK(I,C);
I===0?_.ef(7):_.ef(4)})};var StY=function(I,C){this.renderer=I;this.page=C;this.resolver=_.vP()};
_.R(StY,PB);_.u=StY.prototype;_.u.cancel=function(){this.resolver.promise.cancel()};
_.u.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.u.isCounterfactual=function(){return!this.renderer.isVisible};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var I=this;this.resolver.promise.then(function(){var y={popup:{mealbarPromoRenderer:I.renderer},popupType:"MEALBAR"};_.qU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:y},{})});
switch(this.renderer.triggerCondition){case "TRIGGER_CONDITION_POST_AD":if(this.page){var C=_.EZ(this.page);C&&Ktj(this.resolver,C)}break;default:this.resolver.resolve()}};
var Ktj=function(I,C){var y=_.vP();C.getPlayerPromise().then(function(k){y.resolve(k)});
y.promise.then(function(k){k.addEventListener("onAdEnd",I.resolve);_.N2(I.promise,function(){k.removeEventListener("onAdEnd",I.resolve)})});
I.promise.thenCatch(function(){y.promise.cancel()})};var AsB=function(I,C){this.renderer=I;this.page=C};
_.R(AsB,PB);_.u=AsB.prototype;_.u.cancel=function(){this.JSC$17472_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17472_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17472_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.u.getCounterfactualData=function(){return this.renderer.impressionEndpoints};
_.u.isCounterfactual=function(){return!this.renderer.isVisible};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var I=this,C,y;((C=this.renderer.upsellDialogTriggerConditionSupportedDatas)==null?void 0:(y=C.playbackUpsellDialogTriggerConditionData)==null?void 0:y.triggerType)==="TRIGGER_TYPE_POST_DOWNLOAD"?this.JSC$17472_downloadedVideosCountSelectorUnsubscriber=_.rf(_.Hg(),QeK,function(k,F){k>F&&(gyS(I),I.cancel())}):gyS(this)};
var gyS=function(I){var C={popup:{upsellDialogRenderer:I.renderer},popupType:"MODAL"};_.qU.getInstance().triggerOptionalAction("yt-open-popup-action",{openPopupAction:C},{});(I=_.EZ(I.page))&&I.pause()};var Dq={},vyY=(Dq.TOOLTIP_POSITION_TYPE_BELOW="OPEN_POPUP_POSITION_BOTTOM",Dq.TOOLTIP_POSITION_TYPE_START="OPEN_POPUP_POSITION_LEFT",Dq.TOOLTIP_POSITION_TYPE_END="OPEN_POPUP_POSITION_RIGHT",Dq.TOOLTIP_POSITION_TYPE_BELOW_START="OPEN_POPUP_POSITION_BOTTOMLEFT",Dq.TOOLTIP_POSITION_TYPE_BELOW_END="OPEN_POPUP_POSITION_BOTTOMRIGHT",Dq.TOOLTIP_POSITION_TYPE_ABOVE_START="OPEN_POPUP_POSITION_TOPLEFT",Dq.TOOLTIP_POSITION_TYPE_ABOVE_END="OPEN_POPUP_POSITION_TOPRIGHT",Dq),Wty=function(I,C){this.renderer=I;this.targetManager=
C};
_.R(Wty,PB);_.u=Wty.prototype;_.u.cancel=function(){this.renderer.triggerCondition==="TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD"&&this.JSC$17479_downloadedVideosCountSelectorUnsubscriber&&(this.JSC$17479_downloadedVideosCountSelectorUnsubscriber(),this.JSC$17479_downloadedVideosCountSelectorUnsubscriber=void 0)};
_.u.getCounterfactualData=function(){if(this.isCounterfactual()){var I;return(I=this.renderer.promoConfig)==null?void 0:I.impressionEndpoints}};
_.u.isCounterfactual=function(){return!(!this.renderer.promoConfig||!this.renderer.promoConfig.isCounterfactual)};
_.u.shouldLogCounterfactualImpression=function(){return!0};
_.u.doEnqueue=function(){var I=this;if(this.renderer.targetId)switch(this.renderer.triggerCondition){case "TOOLTIP_TRIGGER_CONDITION_TYPE_POST_DOWNLOAD":this.JSC$17479_downloadedVideosCountSelectorUnsubscriber=_.rf(_.Hg(),QeK,function(C,y){I.renderer.targetId&&C>y&&(rEL(I.targetManager,I.renderer.targetId,d8P(I)),I.cancel())});
break;default:rEL(this.targetManager,this.renderer.targetId,d8P(this))}};
var d8P=function(I){var C;if((C=I.renderer.suggestedPosition)==null?0:C.type)var y=vyY[I.renderer.suggestedPosition.type];y||(y="OPEN_POPUP_POSITION_BOTTOM");return{openPopupAction:{popup:{tooltipRenderer:I.renderer},popupType:"HINT",position:y}}};var x8Y=function(){this.previousPage=null},qtM;
x8Y.prototype.registerPromoCommand=function(I,C){m88(this,void 0,void 0,_.l(I.roadblock,yo8),void 0,void 0,C)};
var m88=function(I,C,y,k,F,z,c){I.previousPage!==c&&I.pendingTooltipPromo&&I.pendingTooltipPromo.cancel();I.previousPage=c;F?(I.pendingEnforcementPromo&&I.pendingEnforcementPromo.cancel(),I.pendingEnforcementPromo=new b0j(F,c),I.pendingEnforcementPromo.enqueue()):z?(I.pendingCommandWrapperPromo=new LG(z,c),I.pendingCommandWrapperPromo.enqueue()):k?(I.pendingRoadblockPromo&&I.pendingRoadblockPromo.cancel(),I.pendingRoadblockPromo=new AsB(k,c),I.pendingRoadblockPromo.enqueue()):C?(I.pendingMealbarPromo&&
I.pendingMealbarPromo.cancel(),I.pendingMealbarPromo=new StY(C,c),I.pendingMealbarPromo.enqueue()):y&&(I.pendingTooltipPromo&&I.pendingTooltipPromo.cancel(),I.pendingTooltipPromo=new Wty(y,_.oA()),I.pendingTooltipPromo.enqueue())},Z0H=function(){qtM||(qtM=new x8Y);
return qtM};var QtM=!1;var PTj=function(I,C){var y=_.Aq("SESSION_INDEX");this.actionToken_=I;this.commonToken_=C;this.sessionIndex_=y},nmR=function(I){var C=_.vP(),y=_.d5("payments.business.integration.bootstrap"),k=_.d5("payments.business.integration"),F=k.Style.create().withMaterialDesignStyle(),z=k.mashupMode.popup("instrument-manager");
y.asMashupMode(z).usingUserIndex(I.sessionIndex_).usingDefaultActivityStatusChangeHandler().usingStyle(F).inStandaloneContext(k.standaloneContextAuthId.forUserId()).instrumentManager(I.actionToken_,I.commonToken_.length>0?I.commonToken_:void 0,function(c){var r=c.instrumentId;r?C.resolve(r):(r=_.d5("payments.business.integration.scenario.InstrumentManager"),C.reject(c.errorCode&&c.errorCode===r.FailureReason.CANCELLED?"instrumentManagerCancelled":"instrumentManagerCallbackError"))}).load(null,function(c){_.v5(c);
C.reject("instrumentManagerLoadError")});
return C.promise};var tF=function(I,C,y){this.payloadName="transactionFlowFailed";this.payload={errorType:I,serializedTransactionFlowLoggingParams:C,isUserDismiss:y===void 0?!1:y}};
_.U8("yt.ypc.shared.YpcTransactionFlowError",tF);var pG=function(){return _.cO.apply(this,arguments)||this};
_.R(pG,_.cO);pG.prototype.beforeRegister=function(){this.stampDom||(this.stampDom={});this.stampDom.errorRenderer={id:"error",mapping:{liveChatErrorMessageRenderer:"yt-live-chat-error-message-renderer"}}};
pG.prototype.onErrorMessageDismiss=function(){this._setErrorRenderer(null)};
pG.prototype.onErrorMessageDismiss=pG.prototype.onErrorMessageDismiss;_.E([_.d({readOnly:!0,observer:"errorRendererChanged"}),_.h("design:type",Object)],pG.prototype,"errorRenderer",void 0);_.E([_.km("yt-live-chat-error-message-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pG.prototype,"onErrorMessageDismiss",null);pG=_.E([_.eA()],pG);var BxB=[pG.prototype];var EyK;var hiy;var U8R=new _.Kw("yt-live-chat"),H0P=new Map;H0P.set("timestamp_toggle","show-timestamps");H0P.set("reactions_toggle","allow-reactions");var Qh=function(){return _.q.apply(this,arguments)||this};
_.R(Qh,_.q);_.u=Qh.prototype;_.u.menuItemIdentifierChanged=function(){var I;(I=this.data)!=null&&I.menuItemIdentifier&&(I=H0P.get(this.data.menuItemIdentifier))&&(_.V("enable_lwe_web_mute")?(I=U8R.get(I),this.isToggled=!(I===void 0?!this.data.isToggled:!I)):this.isToggled=U8R.get(I))};
_.u.onFocus=function(){this.toggleButton.focus()};
_.u.onTap=function(){var I=this.data.command;I&&this.componentBehavior.resolveCommand(I)};
_.u.computeText=function(I,C,y){return this.componentBehavior.getSimpleString(I?y:C)};
_.u.computeIcon=function(I,C,y){return(I=I?y:C)&&I.iconType?_.y5(I.iconType):""};
Qh.prototype.onTap=Qh.prototype.onTap;Qh.prototype.onFocus=Qh.prototype.onFocus;Qh.prototype.menuItemIdentifierChanged=Qh.prototype.menuItemIdentifierChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Qh.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Qh.prototype,"componentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Qh.prototype,"data",void 0);
_.E([_.d({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],Qh.prototype,"icon",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Qh.prototype,"isToggled",void 0);_.E([_.z$("tp-yt-paper-toggle-button"),_.h("design:type",Object)],Qh.prototype,"toggleButton",void 0);_.E([_.FI("data.menuItemIdentifier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qh.prototype,"menuItemIdentifierChanged",null);
_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qh.prototype,"onFocus",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Qh.prototype,"onTap",null);Qh=_.E([_.lT({disableElementRegistration:!0,is:"yt-live-chat-toggle-renderer",noInjection:!0})],Qh);
_.Z(Qh,"yt-live-chat-toggle-renderer",function(){if(hiy===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;EyK===void 0&&(EyK=document.createElement("template"));var k=EyK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);hiy=I}I=hiy;return I},{mode:_.V("live_chat_enable_sink_wrapper")?2:0});var t9R=new _.Jj("NAVIGATION_PROGRESS_TOKEN");_.KH("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS",{});var JsY={},RQB=(JsY.CSI=function(I,C){var y={};y[I]=C;I=_.W5(_.mit)(y);Object.keys(I).length>0&&_.Gg(I)},JsY.ECATCHER=function(I){return function(C,y){_.Aq(I)[C]=y}}("LATEST_ECATCHER_SERVICE_TRACKING_PARAMS"),JsY);var O0P={},aLL={},M9M=(aLL[htP.name]=!0,aLL),Nv=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;I.tabGesturesIsActive=!1;I.actionRouterIsRoot=!0;I.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"};I.pageTitle="";I.titleSuffix="YouTube";I.unseenNotificationCount=
0;I.hasNavigated=!1;I.hasSetScrollTopForNavigation=!1;I.pagePreparer=null;I.zwiebackInitJobId=0;I.dataUpdatePromise=null;I.loadDepsPromise=_.er();I.hasPendingNavigation=!1;I.pendingPlayerOnResponseReceivedActions=[];return I};
_.R(Nv,_.cO);Nv.prototype.attached=function(){Ib8(this);document.addEventListener("yt-navigate-cache",_.sb(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.registerActionMap(this.appBehaviorActionMap);var I=Vh();I.init();I.dispatchElement=this.hostElement};
var Ib8=function(I,C){C=C===void 0?0:C;var y=_.N().resolve(_.aU(_.st));if(y)CeB(I,y);else{if(C>=5)throw Error("Xk");setTimeout(function(){Ib8(I,C+1)},0)}},CeB=function(I,C){C.addEventListener("yt-navigate-start",_.sb(I,I.onYtNavigateStart));
C.addEventListener("yt-navigate-finish",_.sb(I,I.onYtNavigateFinish));C.addEventListener("yt-navigate-error",_.sb(I,I.onYtNavigateError));C.addEventListener("yt-page-data-fetched",_.sb(I,I.onYtPageDataFetched))};
_.u=Nv.prototype;_.u.detached=function(){var I=_.N().resolve(_.st);I.removeEventListener("yt-navigate-start",_.sb(this,this.onYtNavigateStart));I.removeEventListener("yt-navigate-finish",_.sb(this,this.onYtNavigateFinish));I.removeEventListener("yt-navigate-error",_.sb(this,this.onYtNavigateError));I.removeEventListener("yt-page-data-fetched",_.sb(this,this.onYtPageDataFetched));document.removeEventListener("yt-navigate-cache",_.sb(this,this.onYtNavigateCache));this.ytActionHandlerBehavior.unregisterActionMap(this.appBehaviorActionMap)};
_.u.setPageOffset=function(I,C){I?_.Fe(this.hostElement,"yt-set-page-offset",[I,C]):_.GB(Error("Yk"))};
_.u.setPageOffsetForNavigation=function(I,C){this.hasSetScrollTopForNavigation||(this.hasSetScrollTopForNavigation=!0,this.setPageOffset(I,C))};
_.u.onYtNavigateSetPageOffset=function(I,C){this.setPageOffsetForNavigation(C.page,C.offset)};
_.u.getPageOffset=function(){var I=_.f(this.hostElement).querySelector("#page-manager").getCurrentPage(),C=0;I&&(C=_.Fe(this.hostElement,"yt-get-page-offset",[I])[0]);return C};
_.u.onYtHistoryPop=function(I,C){if(_.g5("DISABLE_WARM_LOADS"))I.preventDefault(),window.location.reload();else{var y=_.N().resolve(_.st);y.hasPendingNavigation()&&I.preventDefault();y.cancelPendingNavigation();_.uW(this.hostElement,"yt-pending-navigation-cancelled");C.errorMsg&&(I=C.errorMsg.split(" - "),C=Error(I[0]),I.length==2&&I[1]&&(_.Ki(C,I[1]),_.SN(C)),window.location.reload())}};
_.u.onYtHistoryLoad=function(I,C){var y=this;if(_.g5("DISABLE_WARM_LOADS"))window.location.reload();else{this.hasError=!1;(I=C.endpoint)&&Object.keys(I).length||(I=null);var k=C.historyEntry,F=_.N().resolve(_.st),z=_.N().resolve(_.BP),c=null;k&&k.rootData&&(c=k.rootData);var r=c&&sWM(c);!c||r||c.filler?I?(F.navigate(I,!0),opB(this,I)):(C.legacyBorder||r||(C.JSC$26339_savedComponentState==null&&c==null?_.SN(new _.ph("Incomplete history entry",C.forward)):_.fi(new _.ph("Malformed history entry",C.JSC$26339_savedComponentState,
C.forward,c))),window.location.reload()):(_.Jjz({isHot:!0}),_.Gg({webInfo:{navigationReason:"h"}}),_.D6K(),_.Sr("srt"),_.Sr("pdc"),this.cancelPendingTasks(),ymK(this,C.forward,c),c.player&&(c.player.loaded=!1),opB(this,I),_.j4m(F,I||{},c,2,{},!1,C).then(function(){y.setPageOffset(z.getCurrentPage(),k.scrollTop||0)}))}};
_.u.initHistoryManager=function(I){if(!this.hasNavigated){this.hasNavigated=!0;var C=_.f(this.hostElement).querySelector("#page-manager").getCurrentData();I=isNaN(I)?this.getPageOffset():I;var y=_.N().resolve(_.st).currentEndpoint;this.replaceState(y,C,I)}};
_.u.cancelPendingTasks=function(){this.pagePreparer&&this.pagePreparer.cancel()};
_.u.onYtNavigateStart=function(I,C){this.cancelPendingTasks();C.noProgressBar||(I=_.N().resolve(_.aU(t9R)))&&I.start();I=this.hasPendingNavigation?null:this.data;this.hasError=!1;var y=_.N().resolve(_.BP),k,F,z;_.V("kevlar_use_vimio_behavior")&&!((k=C.endpoint)==null?0:(F=k.commandMetadata)==null?0:(z=F.webCommandMetadata)==null?0:z.ignoreNavigation)&&(k=y.getCurrentPage())&&k.disconnectVisibilityRoot();y.prepareForNavigation(C.pageType,C.endpoint);_.V("kevlar_remove_page_dom_on_switch")||(this.pagePreparer=
new _.mt(1,"pcl"),_.ZL(this.pagePreparer,y.preparePage.bind(y,C.pageType,C.endpoint)));k=this.getPageOffset();this.initHistoryManager(k);C.reload||this.hasPendingNavigation?this.replaceState(C.endpoint,I,k):(I==null?void 0:I.page)==="watch"&&C.pageType==="watch"&&_.V("kevlar_replace_watch_to_watch_history_state")?this.replaceState(C.endpoint,I,k):(I==null?void 0:I.page)!=="shorts"||C.pageType!=="shorts"||C.endpoint.reelWatchEndpoint.sequenceParams||_.V("short_to_short_back_nav_killswitch")?C.type!=
"navigate-back"&&C.type!="navigate-forward"&&(C.pageType==="shorts"&&_.k3(this.hostElement,"yt-shorts-reset"),this.saveAndPush(C.url,C.endpoint,I,k)):this.replaceState(C.endpoint,I,0);this.hasPendingNavigation=!0};
var kdB=function(I){I.hasPendingNavigation=!1;(I=_.N().resolve(_.aU(t9R)))&&I.finish()};
Nv.prototype.onYtNavigateError=function(I,C){kdB(this);this.hasError=!0;C&&C.errorMessage?this.errorMessage=C.errorMessage:this.errorMessage=void 0;I=this.get("endpoint.commandMetadata.webCommandMetadata.url",C);var y=_.B5(window.location.href);I&&!y.pbjreload&&(C=C.navigationErrorReason||"10",_.V("kevlar_parent_on_pbjreload")&&(y={csn:_.Si()},this.get("data.endpoint.clickTrackingParams")&&(y.itct=this.data.endpoint.clickTrackingParams),_.aC(I,y)),_.Yk(_.E3(I,{pbjreload:C})))};
Nv.prototype.onYtNavigateCache=function(I,C){var y=this,k=C.url,F=C.endpoint,z=C.data;I=!!C.miniplayer;C=!!C.skipHistory;if(k&&F&&z){var c=this.getPageOffset(),r=this.data||null;C||this.saveAndPush(k,F,r,c);k=_.j4m(_.N().resolve(_.st),F,z,I?4:3,{},I);I&&k.then(function(){y.dataUpdatePromise&&y.dataUpdatePromise.then(function(){var w=_.N().resolve(_.BP);y.setPageOffset(w.getCurrentPage(),0)})})}};
Nv.prototype.onYtNavigateFinish=function(I,C){var y=this;this.dataUpdatePromise&&this.dataUpdatePromise.then(function(){FkY(y,C.fromHistory)})};
var FkY=function(I,C){kdB(I);if(I.pendingPlayerOnResponseReceivedActions){for(var y=_.T(I.pendingPlayerOnResponseReceivedActions),k=y.next();!k.done;k=y.next())_.uU(k.value,I.hostElement);I.pendingPlayerOnResponseReceivedActions=[]}y=_.N().resolve(_.BP);!C&&I.hasNavigated&&((C=y.getCurrentPage())?C.is==="ytd-shorts"||I.tabGesturesIsActive||I.setPageOffsetForNavigation(C,0):_.SN(Error("Zk")));_.SA(function(){_.SA(function(){_.Sr("pda")})})};
Nv.prototype.onYtNavigate=function(I){if(!I.detail.endpoint){var C=new _.ph("Error: Missing yt-navigate endpoint from target:",I.target,I.target.nodeName);_.GB(C)}if(C=_.V("cold_missing_history"))C=Vh(),C.init(!1),C=!(C.browserHistory.boundHistoryReplaceState&&C.browserHistory.boundHistoryPushState);if(C){_.KH("DISABLE_WARM_LOADS",!0);C=new _.ph("Failed to initialize history manager",this.getDebugString());var y=navigator.userAgent&&navigator.userAgent.includes("Version/11.1.2 Safari");this.getThirdPartyManipulationSuspected()||
y?_.SN(C):_.GB(C)}C=I.detail.endpoint;var k,F;_.V("debug_forward_web_query_parameters")&&((k=C.commandMetadata)==null?0:(F=k.webCommandMetadata)==null?0:F.url)&&(C=JSON.parse(JSON.stringify(C)),C.commandMetadata.webCommandMetadata.url=_.G2t(C.commandMetadata.webCommandMetadata.url,window.location.search));I={type:0,command:C,form:{params:I.detail.params,tempData:I.detail.tempData||{},requestType:I.detail.type,createScreenConfig:I.detail.createScreenConfig,reload:I.detail.reload?I.detail.reload:!1,
requestForm:I.detail}};_.V("kevlar_yt_navigate_command_handler")?(k=_.N().resolve(_.ID),I.form.skipDefaultElement=!0,k.resolveCommand(C,{form:I.form})):this.handleNavigate(I)};
Nv.prototype.handleNavigate=function(I){this.hasSetScrollTopForNavigation=!1;var C=_.N().resolve(_.st),y=I.form||{};C.navigate(I.command,y.reload,y.params,y.tempData,y.requestType,y.createScreenConfig,y.ignoreConfirmation,y.requestForm)&&opB(this,I.command,y.tempData)};
Nv.prototype.onYtPageDataFetched=function(I,C){try{_.XWd().reset();this.data=C.pageData;this.dataUpdatePromise&&(this.dataUpdatePromise.cancel("canceled dataUpdatePromise_"),this.dataUpdatePromise=null);this.pendingPlayerOnResponseReceivedActions=[];this.dataUpdatePromise=_.N().resolve(_.BP).updatePageData(this.data);var y=this.get("playerResponse.responseContext.serviceTrackingParams",this.data);y&&bAL(y);var k=this.get("response.responseContext.serviceTrackingParams",this.data);k&&bAL(k);var F=
this.get("playerResponse.onResponseReceivedActions",this.data);F&&(F=uNM(this,F));F&&_.cQ(this.hostElement,F,this.hostElement);var z=this.get("playerResponse.responseContext.consistencyTokenJar",this.data),c=this.get("response.responseContext.consistencyTokenJar",this.data);if(z||c){var r=_.PZO(),w=(0,_.Le.getValues)(r.tokenJars);z&&r.replace(w,z);c&&r.replace(w,c)}}catch(L){_.GB(L)}};
var opB=function(I,C,y){try{I.onYtEndpointChangeHandler(C,y)}catch(k){_.GB(k)}};
_.u=Nv.prototype;_.u.onYtEndpointChangeHandler=function(){};
_.u.setPageTitle=function(I){I=(this.pageTitle=I)?I+" - "+this.titleSuffix:this.titleSuffix;document.title=(this.unseenNotificationCount?"("+this.unseenNotificationCount+") ":"")+I};
_.u.onYtUpdateTitle=function(I,C){this.setPageTitle(C)};
_.u.setUnseenNotificationCount=function(I){this.unseenNotificationCount=I;this.setPageTitle(this.pageTitle)};
_.u.handleUpdateNotificationsUnseenCountAction=function(I){_.l(I,RtR)&&((I=_.l(I,RtR).unseenCount)?this.setUnseenNotificationCount(I):this.setUnseenNotificationCount(0))};
_.u.handleClearCookieAction=function(I){var C;(I=(C=_.l(I,jiB))==null?void 0:C.cookieName)&&_.tsm(I)};
_.u.onYtUpdateUnseenNotificationCount=function(I,C){this.setUnseenNotificationCount(C)};
_.u.loadData=function(I){var C=this;this.loadDepsPromise.then(function(){var y=_.N().resolve(_.aU(_.st));y||_.GB(Error("$k"));if(I&&I.response){if(!I.endpoint){var k=_.ZC(window.document.location.href)||"/",F="";if(k==="/"||k.startsWith("/?"))F="WEB_PAGE_TYPE_BROWSE";I.endpoint={commandMetadata:{webCommandMetadata:{url:k,webPageType:F,rootVe:3854}}}}_.j4m(y,I.endpoint,I,5,{})}else I.endpoint?y.navigate(I.endpoint):y.navigate(_.eo);_.b$.cancelJob(C.zwiebackInitJobId);C.zwiebackInitJobId=_.b$.addLowPriorityJob(N9L)})};
var Vh=function(){return _.N().resolve(_.sQ)};
Nv.prototype.getDebugString=function(){return Vh().getDebugString()};
Nv.prototype.getThirdPartyManipulationSuspected=function(){return Vh().getThirdPartyManipulationSuspected()};
Nv.prototype.replaceState=function(I,C,y){Vh().saveAndReplace(I,C,y)};
Nv.prototype.saveAndPush=function(I,C,y,k){Vh().saveAndPush(I,C,y,k)};
var sWM=function(I){return _.V("web_honor_cache_for_back")&&(_.l(I.endpoint,_.H$)||_.l(I.endpoint,_.PD))?!0:!I||isNaN(I.expirationTime)?!1:(0,_.JY)()>I.expirationTime},ymK=function(I,C,y){var k=I.get("response.trackingParams",y),F=_.fq(),z=_.Si();
if(k&&F&&z&&(k=I.get("response.responseContext.webResponseContextExtensionData.ytConfigData.rootVisualElementType",y),!k&&y.rootVe&&(k=y.rootVe),F=C?"forwardButton":"backButton",C=I.get("playerResponse.topbar.desktopTopbarRenderer."+F+".buttonRenderer.command.clickTrackingParams",I.data),I=I.get("response.topbar.desktopTopbarRenderer."+F+".buttonRenderer.command.clickTrackingParams",I.data),C=(I=C||I)?_.nv(I):void 0,I=_.e2(),F=[_.er(y)],_.s7(I,k,C,{dataPromises:F,csnToClone:y.csn}),y.graftedVes))for(y=
_.T(y.graftedVes),k=y.next();!k.done;k=y.next())_.oV(I,k.value)};
Nv.prototype.onStoreGraftedVeAction=function(I){this.data?(this.data.graftedVes||(this.data.graftedVes=[]),this.data.graftedVes.push(I)):_.SN(Error("al"))};
var uNM=function(I,C){return C.filter(function(y){for(var k in y)if(M9M[k])return I.pendingPlayerOnResponseReceivedActions.push(y),!0;return!1})};
_.H1.Object.defineProperties(Nv.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){}}});
Nv.prototype.onStoreGraftedVeAction=Nv.prototype.onStoreGraftedVeAction;Nv.prototype.loadData=Nv.prototype.loadData;Nv.prototype.onYtUpdateUnseenNotificationCount=Nv.prototype.onYtUpdateUnseenNotificationCount;Nv.prototype.handleClearCookieAction=Nv.prototype.handleClearCookieAction;Nv.prototype.handleUpdateNotificationsUnseenCountAction=Nv.prototype.handleUpdateNotificationsUnseenCountAction;Nv.prototype.setUnseenNotificationCount=Nv.prototype.setUnseenNotificationCount;
Nv.prototype.onYtUpdateTitle=Nv.prototype.onYtUpdateTitle;Nv.prototype.setPageTitle=Nv.prototype.setPageTitle;Nv.prototype.onYtEndpointChangeHandler=Nv.prototype.onYtEndpointChangeHandler;Nv.prototype.onYtPageDataFetched=Nv.prototype.onYtPageDataFetched;Nv.prototype.handleNavigate=Nv.prototype.handleNavigate;Nv.prototype.onYtNavigate=Nv.prototype.onYtNavigate;Nv.prototype.onYtNavigateFinish=Nv.prototype.onYtNavigateFinish;Nv.prototype.onYtNavigateCache=Nv.prototype.onYtNavigateCache;
Nv.prototype.onYtNavigateError=Nv.prototype.onYtNavigateError;Nv.prototype.onYtNavigateStart=Nv.prototype.onYtNavigateStart;Nv.prototype.cancelPendingTasks=Nv.prototype.cancelPendingTasks;Nv.prototype.initHistoryManager=Nv.prototype.initHistoryManager;Nv.prototype.onYtHistoryLoad=Nv.prototype.onYtHistoryLoad;Nv.prototype.onYtHistoryPop=Nv.prototype.onYtHistoryPop;Nv.prototype.onYtNavigateSetPageOffset=Nv.prototype.onYtNavigateSetPageOffset;Nv.prototype.setPageOffset=Nv.prototype.setPageOffset;
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Nv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Nv.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],Nv.prototype,"hasError",void 0);_.E([_.d(),_.h("design:type",Object)],Nv.prototype,"errorMessage",void 0);
_.E([_.km("yt-navigate-set-page-offset"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Nv.prototype,"onYtNavigateSetPageOffset",null);_.E([_.km("yt-history-pop"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Nv.prototype,"onYtHistoryPop",null);
_.E([_.km("yt-history-load"),_.h("design:type",Function),_.h("design:paramtypes",[Event,_.Bje]),_.h("design:returntype")],Nv.prototype,"onYtHistoryLoad",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Nv.prototype,"onYtNavigate",null);_.E([_.km("yt-update-title"),_.h("design:type",Function),_.h("design:paramtypes",[Event,String]),_.h("design:returntype")],Nv.prototype,"onYtUpdateTitle",null);
_.E([_.km("yt-update-unseen-notification-count"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Number]),_.h("design:returntype")],Nv.prototype,"onYtUpdateUnseenNotificationCount",null);Nv=_.E([_.eA()],Nv);O0P.YtdAppBehavior=[_.Et.YtActionHandlerBehavior,Nv.prototype];var j6=function(){var I=_.cO.apply(this,arguments)||this;I._noAccessors=!0;return I};
_.R(j6,_.cO);j6.prototype.ready=function(){var I=this;_.f(this.hostElement).querySelector("#checkbox").addEventListener("change",function(){I.onChange_()})};
j6.prototype.dataChanged_=function(){_.f(this.hostElement).querySelector("#checkbox").checked=!1};
j6.prototype.onChange_=function(){var I=_.f(this.hostElement).querySelector("#checkbox").checked?"selected":"deselected";_.k3(this.hostElement,"yt-dismissal-reason-"+I,this.data.feedbackToken)};
j6.prototype.dataChanged_=j6.prototype.dataChanged_;_.E([_.d(),_.h("design:type",Object)],j6.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],j6.prototype,"dataChanged_",null);j6=_.E([_.eA()],j6);var zvK=[j6.prototype];var lw=function(){var I=_.cO.apply(this,arguments)||this;I.timeoutJobId=0;I.actionMap={"yt-open-popup-action":"startTimeout","yt-close-popup-action":"cancelTimeout"};return I};
_.R(lw,_.cO);lw.prototype.ytdHatsSurveyBehaviorDataChanged=function(){this.cancelTimeout()};
lw.prototype.startTimeout=function(){var I=this,C=this.data&&this.data.displayDurationSeconds;C&&!this.timeoutJobId&&(this.timeoutJobId=_.NU(_.b$,function(){_.Fe(I.hostElement,"yt-close-popup-action",[I.is]);I.timeoutJobId=0},C*1E3))};
lw.prototype.cancelTimeout=function(){_.b$.cancelJob(this.timeoutJobId);this.timeoutJobId=0};
lw.prototype.ytdHatsSurveyBehaviorDataChanged=lw.prototype.ytdHatsSurveyBehaviorDataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],lw.prototype,"ytActionHandlerBehavior",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lw.prototype,"ytdHatsSurveyBehaviorDataChanged",null);lw=_.E([_.eA()],lw);var T3R=[_.Et.YtActionHandlerBehavior,lw.prototype];var cmM=function(I,C){return I.SHARED_RENDERERS_.hasOwnProperty(C)?"yt":I.prefix},Xz={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}};Xz.MEALBAR={component:"tp-yt-paper-dialog",properties:{keepBelowPlayer:!_.V("kevlar_mealbar_above_player"),modern:_.V("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"}};
Xz.BOTTOM_SHEET={component:"tp-yt-paper-dialog",properties:{},styles:{position:"fixed",bottom:"0",width:"100%",margin:"0"}};Xz.MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0},forceFocus:!0,preventAutonav:!0};Xz.LOCKED_MODAL={component:"tp-yt-paper-dialog",properties:{modal:!0,modern:!0,scrollAction:"lock"},forceFocus:!0,preventAutonav:!0};
Xz.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)"}};
Xz.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};
Xz.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};
Xz.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};
Xz.CONTEXTUAL_SHEET={component:"tp-yt-iron-dropdown",properties:{noOverlap:!0,horizontalAlign:"auto",verticalAlign:"top",dynamicAlign:!0,withBackdrop:!1,avoidOuterEdge:!0},forceFocus:!0,slotName:"dropdown-content",preventAutonav:!0};Xz.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"}};
Xz.TOP_ALIGNED_DIALOG={component:"tp-yt-paper-dialog",properties:{withBackdrop:!0,verticalAlign:"top",horizontalAlign:"center"},styles:{margin:"8px 0 0 0"},targetContainer:!0};Xz.TOAST={component:null,properties:{}};var ev8=new function(I,C,y){this.supportedPopups=I;this.navigationEndpointPopupMap=C;this.popupTypeMap=y;this.supportedPopups=I;this.navigationEndpointPopupMap=C;this.popupTypeMap=y}({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:_.V("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"}),rmY=new function(){this.prefix="ytd";this.SHARED_RENDERERS_={aboutThisAdRenderer:!0,
bubbleHintRenderer:!0,confirmDialogRenderer:!0,fancyDismissibleDialogRenderer:!0,mealbarPromoRenderer:!0,notificationActionRenderer:!0,reportDetailsFormRenderer:!0,reportFormModalRenderer:!0,sharingEmbedRenderer:!0,sharingRenderer:!0,showActionDialogRenderer:!0,sortFilterSubMenuPopupRenderer:!0,tooltipRenderer:!0,unlimitedFamilyMessageInterstitialRenderer:!0,unlimitedFamilyProfileInterstitialRenderer:!0,unpluggedPauseMembershipDialogRenderer:!0,upsellDialogRenderer:!0,ypcOffersModalRenderer:!0,ypcUpgradeDialogRenderer:!0,
loadingRenderer:!0,sheetViewModel:!0,miniAppGameInfoDialogViewModel:!0,profileCardViewModel:!0,genAiFeedbackFormViewModel:!0,dialogViewModel:!0,gulpTriggeringDialogViewModel:!0,imageEditorRenderer:!0,storiesViewerViewModel:!0};this.JSC$17531_popupConfig=Xz;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 iXL=function(){this.pageNameToElement=new Map;this.TEST_ONLY=void 0;this.elementPoolPopulator=_.pN.getInstance()},$P=function(I,C){var y=I.pageNameToElement.get(C);
if(!y){switch(C){case "watch":var k=_.V("web_watch_force_learning_journey_for_testing")?_.q8("ytd-watch-learning-journey"):_.V("kevlar_watch_fixie")?_.q8("ytd-watch-fixie"):_.V("kevlar_watch_grid")?_.q8("ytd-watch-grid"):_.q8("ytd-watch-flexy");break;case "learning-journey-watch":k=_.q8("ytd-watch-learning-journey");break;case "shorts":k=_.q8("ytd-shorts");break;case "search":k=_.q8("ytd-search");break;case "channel":k=_.q8("ytd-browse");k.pageSubtype="channels";break;case "trending":k=_.q8("ytd-browse");
k.pageSubtype="trending";break;case "playlist":case "standalone":case "home":case "explore":case "learning":case "live":case "news":case "sports":case "music":case "playables":case "mini_app":case "red":case "WEB_PAGE_TYPE_SETTINGS":case "history":case "labs":case "handle":case "subscriptions":case "filteredsubscriptions":case "memberships-and-purchases":case "channel-memberships-shopfront":case "yts-products":case "ypc-offers":case "ypc-checkout":case "fashion":case "hashtag-landing-page":case "show":case "open-in-app":case "audio-pivot":case "subscriptions-channels":k=
_.q8("ytd-browse");k.pageSubtype=C;break;case "browse":k=_.q8("ytd-browse");break;default:_.SN(new _.ph("Error getting page element for type",C))}y=k;I.pageNameToElement.set(C,y)}return y};
iXL.prototype.preparePage=function(I,C,y){y&&(I=Ct(y)||I);if(I!=="watch"){var k=this.elementPoolPopulator,F=I;F!=k.targetPage_&&k.pendingPages_.indexOf(F)>-1&&(k.targetPage_&&(k.pendingPages_.unshift(k.targetPage_),k.abort()),n$Y(k,F),_.qMb(k,F))}if((k=$P(this,I))||!_.l(y,_.xo)){k.isAttached||k===C||(k.hidden=!0);if(!(k.data||I==="watch"&&_.V("swatcheroo_page_pool_dont_provide_filler_data"))){var z;if(I=(z=_.Aq("FILLER_DATA",{})[I])==null?void 0:z.response)k.data=I}return k}};var wAK=function(I){this.JSC$28261_clientRoot=I;this.playlistHandlerActionMap={"yt-add-to-playlist-command":SNj,"yt-end-playlist-command":KMH,"yt-recover-playlist-command":g3B,"yt-refresh-playlist-command":d1K,"yt-playlist-remove-videos-action":v3P};_.mU(_.qU.getInstance(),this.playlistHandlerActionMap,this.JSC$28261_clientRoot);X9B()},npK;var Rk=function(I,C,y){this.apiKey=I;this.endpoint=C;this.confidenceThreshold=y===void 0?.5:y;this.stream=null;this.state=0;this.manuallyClosedChannel=this.channelOpen=!1;this.prefetchResponseSetTimeoutId=-1;this.languageCode="en-us";this.youtubeAssistantRequest=null;this.listeningHandler=function(){};
this.audioDetectedHandler=function(){};
this.completeHandler=function(){};
this.errorHandler=function(){};
this.stopHandler=function(){};
this.transcriptionUpdateHandler=function(){};
this.transcriptionCompleteHandler=function(){};
this.vaaConsentUpdateHandler=function(){};
this.vozEndOfDataTimeout=this.noResponseReceivedTimeout=-1;this.transcribedSpeechResults=[];this.receivedEndOfUtterance=!1;this.startCustomCsiTimeline=!0;this.supportsCrossDomainXhr=!1;this.supportsHttpHeadersOverwriteParam=!0;this.prefetchResponseTimeoutMs=-1;this.isUsingVoz=C==="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||
C==="https://embeddedassistant-frontend-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel"||C==="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";new ToP};
_.u=Rk.prototype;
_.u.start=function(I){if(this.state===0)if(this.isOnline()){I.supportsHttpHeadersOverwriteParam!==void 0&&(this.supportsHttpHeadersOverwriteParam=I.supportsHttpHeadersOverwriteParam);I.startCustomCsiTimeline!==void 0&&(this.startCustomCsiTimeline=I.startCustomCsiTimeline);this.startCustomCsiTimeline&&_.fA("voice_assistant");_.KA("voz_ms",void 0,"voice_assistant");this.state=1;this.receivedEndOfUtterance=!1;this.languageCode=I.languageCode||"en-US";this.supportsCrossDomainXhr=I.supportsCrossDomainXhr||this.supportsCrossDomainXhr;
this.youtubeAssistantRequest=I.youtubeAssistantRequest||null;this.listeningHandler=I.listeningHandler||this.listeningHandler;this.audioDetectedHandler=I.audioDetectedHandler||this.audioDetectedHandler;this.stopHandler=I.stopHandler||this.stopHandler;this.completeHandler=I.completeHandler||this.completeHandler;this.transcriptionCompleteHandler=I.transcriptionCompleteHandler||this.transcriptionCompleteHandler;this.vaaConsentUpdateHandler=I.vaaConsentUpdateHandler||this.vaaConsentUpdateHandler;this.errorHandler=
I.errorHandler||this.errorHandler;this.transcriptionUpdateHandler=I.transcriptionUpdateHandler||this.transcriptionUpdateHandler;this.accessToken=I.accessToken;this.additionalHeaders=I.additionalHeaders||{};var C;this.prefetchResponseTimeoutMs=(C=I.prefetchResponseTimeoutMs)!=null?C:this.prefetchResponseTimeoutMs;PeY(this);this.startAudio();LkL(this)}else this.errorHandler("OFFLINE")};
_.u.stop=function(I){var C=I===void 0?{}:I;I=C.logCancel===void 0?!0:C.logCancel;var y=C.logMicClosed===void 0?!0:C.logMicClosed;var k=C.handleError===void 0?!0:C.handleError;C=C.handleStop===void 0?!0:C.handleStop;this.state!==0&&(I&&bw("voz_cx"),YP(this,{logMicClosed:y,handleStop:C}),k&&this.errorHandler("ABORTED"))};
_.u.getState=function(){return this.state};
_.u.isSupported=function(){return!0};
_.u.stopAudio=function(I){(I===void 0||I)&&bw("voz_mf")};
_.u.startAudio=function(){bw("voz_vp");return _.er(null)};
var DFj=function(I,C){I.channelOpen&&(I.state!==2&&(I.state=2,bw("voz_ss"),I.listeningHandler()),C=new Uint8Array(C),C='{ "audioIn": "'+_.HR(C)+'" }',I.channel.send(C))},YP=function(I,C){var y=C===void 0?{}:C;
C=y.logMicClosed===void 0?!0:y.logMicClosed;y=y.handleStop===void 0?!0:y.handleStop;I.vozEndOfDataTimeout>-1&&(clearTimeout(I.vozEndOfDataTimeout),I.vozEndOfDataTimeout=-1);pA8(I);I.stopAudio(C);I.channel&&(I.channelOpen=!1,I.manuallyClosedChannel=!0,I.channel.close(),I.channel=void 0);I.transcribedSpeechResults=[];I.state=0;y&&I.stopHandler()},PeY=function(I){var C={httpHeadersOverwriteParam:I.supportsHttpHeadersOverwriteParam?"$httpHeaders":void 0,
httpSessionIdParam:"gsessionid",sendRawJson:!0,initMessageHeaders:Object.assign({},I.additionalHeaders,I.accessToken&&I.isUsingVoz?{Authorization:"Bearer "+I.accessToken}:{"x-goog-api-key":I.apiKey}),supportsCrossDomainXhr:I.supportsCrossDomainXhr};I.channel=new bo(I.endpoint,C);I.channel.open();_.Lv(I.channel,"w",function(){var y=I.channel,k=y.send,F=I.isUsingVoz?"PLACEHOLDER":"example";F={config:{dialogStateIn:{languageCode:I.languageCode},deviceConfig:{deviceId:F,deviceModelId:F},audioInConfig:{encoding:"LINEAR16",
sampleRateHertz:16E3},audioOutConfig:{encoding:"MP3",sampleRateHertz:22050,volumePercentage:0}}};if(!I.isUsingVoz)F.config.requestType=4;else if(I.isUsingVoz&&I.youtubeAssistantRequest){var z=JSON.stringify(I.youtubeAssistantRequest);F.config.internalIn={youtubeAssistantS3InputJson:z}}k.call(y,F);I.channelOpen=!0;I.manuallyClosedChannel=!1});
_.Lv(I.channel,"x",function(){I.manuallyClosedChannel||(I.channelOpen=!1,I.channel=void 0,YP(I))});
_.Lv(I.channel,"z",function(y){if(y.data){pA8(I);for(var k=0;k<y.data.length;k++){var F=I,z=y.data[k],c=z.speechResults;if(c)a:{var r=[];z=[];var w=!1;c=_.T(c);for(var L=c.next();!L.done;L=c.next()){L=L.value;if(L.noSpeech){YP(F);F.errorHandler("NO_SPEECH");break a}L.transcript!==void 0&&L.stability!==void 0&&(L.stability<F.confidenceThreshold&&(w=!0),w?z.push(L.transcript):r.push(L.transcript))}if(r.length!==0||z.length!==0)r=r.join(" "),z=z.join(" "),F.receivedEndOfUtterance&&!F.isUsingVoz?F.isUsingVoz||
F.completeHandler([r,z]):(w=F,c=r,L=z,bw("voz_sf"),w.transcriptionUpdateHandler(c,L),w.transcribedSpeechResults=[c,L]),F.receivedEndOfUtterance&&(bw("voz_eou"),F.transcriptionCompleteHandler([r,z]),F.isUsingVoz&&(F.prefetchResponseTimeoutMs===0?YP(F,{logMicClosed:!1,handleStop:!0}):F.prefetchResponseTimeoutMs>0&&QWY(F)))}else F.isUsingVoz&&(z==null?0:z.internalOut)?(z=JSON.parse(z.internalOut.youtubeAssistantS3OutputJson),z.userHasOptedInToVaa||z.vaaConsent?F.vaaConsentUpdateHandler(!!z.userHasOptedInToVaa,
!!z.vaaConsent):(N3L(F),z&&(r=F.transcribedSpeechResults,bw("voz_rqf"),F.completeHandler(r,z)))):z.eventType==="END_OF_UTTERANCE"?F.receivedEndOfUtterance=!0:(bw("voz_err"),F.errorHandler("UNEXPECTED_ASSISTANT_RESPONSE"),_.SN(Error("bl")))}}});
_.Lv(I.channel,"y",function(y){YP(I);switch(y.status){case 1:y="WEBCHANNEL_NETWORK_ERROR";break;case 2:y="WEBCHANNEL_SERVER_ERROR";break;default:y="WEBCHANNEL_UNKNOWN_ERROR"}I.errorHandler(y);I.logError(Error(y))})};
Rk.prototype.logError=function(I){_.GB(I)};
Rk.prototype.isOnline=function(){return!0};
var QWY=function(I){N3L(I);I.prefetchResponseSetTimeoutId=setTimeout(function(){YP(I,{logMicClosed:!1,handleStop:!0})},I.prefetchResponseTimeoutMs)},N3L=function(I){I.prefetchResponseSetTimeoutId>-1&&(clearTimeout(I.prefetchResponseSetTimeoutId),I.prefetchResponseSetTimeoutId=-1)},LkL=function(I){pA8(I);
I.noResponseReceivedTimeout=window.setTimeout(function(){YP(I);I.errorHandler("NO_SPEECH")},11E3)},pA8=function(I){I.noResponseReceivedTimeout>-1&&(window.clearTimeout(I.noResponseReceivedTimeout),I.noResponseReceivedTimeout=-1)},bw=function(I){_.Sr(I,void 0,"voice_assistant")};var Gj=function(){Rk.apply(this,arguments);this.audioContext=this.processor=null;this.audioDetected=!1};
_.R(Gj,Rk);Gj.prototype.isSupported=function(){return x1B()};
Gj.prototype.startAudio=function(){var I=this;if(!navigator||!navigator.mediaDevices||!navigator.mediaDevices.getUserMedia)return _.mr(null);this.audioContext=new (window.AudioContext||window.webkitAudioContext)({latencyHint:"interactive"});this.processor=this.audioContext.createScriptProcessor(1024,1,1);this.processor.onaudioprocess=function(k){VDY(I,k)};
this.processor.connect(this.audioContext.destination);var C=function(k){I.stream=k;if(!I.audioContext)return _.er(null);k=I.audioContext.createMediaStreamSource(k);I.processor&&k.connect(I.processor);return _.er(null)},y={audio:{sampleSize:16,
channelCount:1},video:!1};this.stream?C(this.stream):navigator.mediaDevices.getUserMedia(y).then(C).catch(function(k){YP(I);k.name&&k.name==="NotAllowedError"?I.errorHandler("NO_MICROPHONE_PERMISSION"):(I.errorHandler("AUDIO_ERROR"),I.logError(k));return _.mr(null)});
return Rk.prototype.startAudio.call(this)};
Gj.prototype.stopAudio=function(I){I=I===void 0?!0:I;this.audioContext&&(this.audioContext.state==="running"&&this.processor&&(this.processor.onaudioprocess=function(){}),this.audioContext.close(),this.audioContext=null,this.stream&&(this.stream.getAudioTracks().forEach(function(C){C.stop()}),this.stream=null));
this.processor=null;this.audioDetected=!1;Rk.prototype.stopAudio.call(this,I)};
Gj.prototype.isOnline=function(){return navigator.onLine};
var VDY=function(I,C){if(I.audioContext)if(window.OfflineAudioContext){var y=I.audioContext.sampleRate,k=C.inputBuffer.getChannelData(0);C=new window.OfflineAudioContext(1,k.length,16E3);for(var F=C.createBuffer(1,k.length,y),z=F.getChannelData(0),c=0,r=0;r<k.length;r++)z[r]=k[r],c+=z[r]*z[r];!I.audioDetected&&Math.sqrt(c/k.length)>.01&&(I.audioDetected=!0,I.audioDetectedHandler());k=C.createBufferSource();k.buffer=F;k.connect(C.destination);k.start(0);C.oncomplete=function(w){w=w.renderedBuffer.getChannelData(0);
for(var L=Math.floor(16384E3/y),D=new Int16Array(L),p=0;p<L;++p)D[p]=Math.max(-1,Math.min(1,w[p]))*32767;DFj(I,D.buffer)};
C.startRendering()}else jWL(I,C)},jWL=function(I,C){var y=I.audioContext.sampleRate,k=C.inputBuffer.getChannelData(0),F=Math.floor((y+8E3)/16E3);
y=k.length/F;C=new Float32Array(y);for(var z=0;z<y;++z)C[z]=k[z*F];k=new Int16Array(y);for(F=0;F<y;++F)k[F]=Math.max(-1,Math.min(1,C[F]))*32767;DFj(I,k.buffer)};var lbL={FAILURE:"failure",NO_INPUT:"no_input",OPEN:"open",SUCCESS:"success"};var XAY=function(){this.JSC$17596_audioEnabled=!0;this.audioFeedbackHolder={}};
XAY.prototype.isPlaying=function(I){return I.currentTime>0&&!I.paused&&!I.ended&&I.readyState>2};
var $FK=function(I){for(var C=_.T(Object.values(lbL)),y=C.next();!y.done;y=C.next())y=y.value,I.audioFeedbackHolder[y]=new Audio,I.audioFeedbackHolder[y].src="/s/search/audio/"+y+".mp3",I.audioFeedbackHolder[y].load()},fG=function(I,C){if(I.JSC$17596_audioEnabled!==!1&&C in I.audioFeedbackHolder){for(var y=_.T(Object.values(I.audioFeedbackHolder)),k=y.next();!k.done;k=y.next())k=k.value,I.isPlaying(k)&&k.pause();
I.audioFeedbackHolder[C].currentTime=0;I.audioFeedbackHolder[C].play().catch(function(){})}};var RvR=function(I,C){var y=this;this.store=I;this.service=C;this.stream=null;this.permissionsSupported=!0;this.enableFirstPartyAuth=this.enableInlineSearchResponse=!1;this.audioPlayer=null;this.enableFPAForSignedInUsers=this.disableHttpHeadersOverwrite=!1;this.handleOfflineEvent=function(){y.setState("offline");y.stop()};
this.audioPlayer=new XAY;var k;(k=this.audioPlayer)==null||$FK(k)};
_.u=RvR.prototype;_.u.getService=function(){return this.service};
_.u.isEnabled=function(){return!!this.service};
_.u.isSupported=function(){var I;return(I=this.service)==null?void 0:I.isSupported()};
_.u.start=function(){var I=this,C,y,k,F,z,c,r,w,L,D,p,Q,X;return _.e(function(b){switch(b.nextAddress){case 1:I.store.dispatch(YZS("",""));if(!navigator.onLine)return I.setState("offline"),b.return();window.addEventListener("offline",I.handleOfflineEvent);I.stream=null;if(!I.permissionsSupported){b.jumpTo(2);break}_.aM(b,3);return _.n(b,bX8(I),5);case 5:C=b.yieldResult;if(!C)return(y=I.audioPlayer)==null||fG(y,"failure"),b.return();I.service.stream=I.stream;I.setState("listening");_.dC(b,2);break;
case 3:_.sj(b),I.permissionsSupported=!1;case 2:k={context:_.stK(_.aD())},k.youtubeAssistantParams={searchParams:{inlineSearchResponse:I.enableInlineSearchResponse}},F=function(S,A){I.store.dispatch(GNR("transcribing"));I.store.dispatch(YZS(S,A))},z=function(){var S;
(S=I.audioPlayer)==null||fG(S,"open");I.setState("listening")},c=function(){I.setState("transcribing")},r=function(S){I.setErrorState(S)},w=function(S,A){var x;
(x=I.audioPlayer)==null||fG(x,"success");A&&(_.V("kevlar_voice_search_inline_search")&&(I.responseProcessor=_.N().resolve(_.d0I),I.responseProcessor&&(x=A.navigationAction,S=A.prefetchedSearchResponse,x&&S&&(x=(new _.hpP).JSC$11789_getStoreKey(x),_.me(I.responseProcessor,S,x)))),I.JSC$17614_actionRouter.triggerOptionalAction("yt-speech-query-complete-action",A))},L=function(){window.removeEventListener("offline",I.handleOfflineEvent)},D=_.eQW(!1),p=D.Authorization!=null,Q=I.enableFirstPartyAuth||
I.enableFPAForSignedInUsers&&p?D:{"X-Goog-Visitor-Id":D["X-Goog-Visitor-Id"]},X={completeHandler:w,
errorHandler:r,listeningHandler:z,audioDetectedHandler:c,stopHandler:L,transcriptionUpdateHandler:F,youtubeAssistantRequest:k,languageCode:YPY(),additionalHeaders:Q,supportsCrossDomainXhr:I.enableFirstPartyAuth||I.enableFPAForSignedInUsers&&p,supportsHttpHeadersOverwriteParam:!I.disableHttpHeadersOverwrite},I.service.start(X),_.oI(b)}})};
_.u.stop=function(){this.service.getState()!==0&&this.service.stop()};
_.u.reset=function(){this.store.dispatch(_.yE({type:"RESET_VOICE_SEARCH_STATE"}))};
_.u.setState=function(I){this.store.dispatch(GNR(I))};
_.u.setErrorState=function(I){switch(I){case "OFFLINE":case "WEBCHANNEL_NETWORK_ERROR":case "WEBCHANNEL_SERVER_ERROR":case "WEBCHANNEL_UNKNOWN_ERROR":var C;(C=this.audioPlayer)==null||fG(C,"failure");this.setState("offline");break;case "NO_MICROPHONE_PERMISSION":if(this.permissionsSupported)bX8(this);else{var y;(y=this.audioPlayer)==null||fG(y,"failure");this.setState("permission-denied")}break;case "ABORTED":var k;(k=this.audioPlayer)==null||fG(k,"no_input");break;default:var F;(F=this.audioPlayer)==
null||fG(F,"no_input");this.setState("timeout")}};
var bX8=function(I){var C,y;return _.e(function(k){switch(k.nextAddress){case 1:return _.n(k,navigator.permissions.query({name:"microphone"}),2);case 2:C=k.yieldResult;if(C.state==="granted")return k.return(!0);if(C.state==="denied")return I.setState("permission-denied"),k.return(!1);I.setState("permission");y={audio:{sampleSize:16,channelCount:1},video:!1};_.aM(k,3);return _.n(k,navigator.mediaDevices.getUserMedia(y),5);case 5:return I.stream=k.yieldResult,k.return(!0);case 3:return _.sj(k),I.setState("permission-denied"),
k.return(!1)}})},YPY=function(){var I=_.Aq("INNERTUBE_CONTEXT_HL"),C=_.Aq("INNERTUBE_CONTEXT_GL");
return I.indexOf("-")>-1?I:I+"-"+C};var GdR=function(I,C,y){RvR.call(this,C,y);this.JSC$17614_actionRouter=I;this.enableInlineSearchResponse=_.V("kevlar_voice_search_inline_search");this.enableFirstPartyAuth=_.V("kevlar_voice_search_auth_enabled");this.disableHttpHeadersOverwrite=!0;this.enableFPAForSignedInUsers=_.V("kevlar_voice_search_enable_fpa_signedin_users")},fbH;
_.R(GdR,RvR);
var SPY=function(){if(!fbH){var I="https://embeddedassistant-webchannel.googleapis.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel";_.V("kevlar_voice_search_auth_enabled")||_.V("kevlar_voice_search_use_yt_endpoint")?I="https://embeddedassistant-frontend-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel":_.V("kevlar_voice_search_use_fp_endpoint")&&(I="https://embeddedassistant-clients6.youtube.com/google.assistant.embedded.v1.EmbeddedAssistant/YTAssist/channel");fbH=
new GdR(_.qU.getInstance(),_.Hg(),new Gj(_.Aq("VOZ_API_KEY"),I,.5))}return fbH};var KkP=function(I){this.JSC$17618_clientRoot=I;this.autonavPauseReasons={scroll:!1,inputBoxFocus:!1,overlayOpen:!1,guideOpen:!1,backgroundAndMute:!1,requestedByPlayer:!1,longIdle:!1,youthereLactExperiment:!1,userEngagement:!1};this.autonavPauseActionMap={"ytd-log-youthere-nav":this.onYtEndpointChanged.bind(this),"yt-autonav-pause-user-engagement":this.onYtAutonavPauseUserEngagement.bind(this),"yt-user-activity":this.onYtUserActivity.bind(this),"yt-get-autonav-pause-debug-state":this.onYtGetAutonavPauseDebugState.bind(this)};
this.userEngagementCsn=null;this.eventListeners=new Map;this.eventListeners.set(document,new Map([["visibilitychange",this.onYtAutonavVisibilityChanged.bind(this)]]));this.eventListeners.set(this.JSC$17618_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)]]));I=_.T(this.eventListeners);for(var C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;y=_.T(y);for(var k=y.next();!k.done;k=y.next()){var F=
_.T(k.value);k=F.next().value;F=F.next().value;C.addEventListener(k,F)}}_.mU(_.qU.getInstance(),this.autonavPauseActionMap,this.JSC$17618_clientRoot)},Am8,gpH=function(I){return _.V("kevlar_autonav_popup_filtering")?(I=_.m0(I))?I.hasAttribute("prevent-autonav"):!0:!0};
_.u=KkP.prototype;_.u.onIronOverlayOpened=function(I){gpH(I)&&(this.autonavPauseReasons.overlayOpen=!0,S6(this))};
_.u.onIronOverlayClosed=function(I){gpH(I)&&(this.autonavPauseReasons.overlayOpen=!1,S6(this))};
_.u.onYtAutonavPauseFocus=function(){this.autonavPauseReasons.inputBoxFocus=!0;S6(this)};
_.u.onYtAutonavPauseBlur=function(){var I=this;_.b$.addJob(function(){I.isInBackground()||(I.autonavPauseReasons.inputBoxFocus=!1,S6(I))},8,0)};
_.u.onYtAutonavPauseGuideOpened=function(){this.autonavPauseReasons.guideOpen=!0;S6(this)};
_.u.onYtAutonavPauseGuideClosed=function(){this.autonavPauseReasons.guideOpen=!1;S6(this)};
_.u.onYtAutonavPauseScroll=function(){var I=_.N().resolve(_.BP);I.isOnWatch()&&(I=I.getCurrentPage().getPlayerContainer())&&(this.autonavPauseReasons.scroll=I.getBoundingClientRect().top<-200,S6(this))};
_.u.onYtAutonavPauseUserEngagement=function(I){var C=this;if(_.V("user_engagement_enable_autoplay_pause_feature")){var y=Number(I.lowEngagementThresholdMs);isNaN(y)||y<=0||I.lowUserEngagementAction!=="LOW_USER_ENGAGEMENT_ACTION_PAUSE_AUTOPLAY"?_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_INVALID_LACT_THRESHOLD"):(_.N().resolve(_.Qc),_.Ci()<y?_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_BELOW_LACT_THRESHOLD")}):_.XNP()?(this.userEngagementCsn=_.Si(),_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_ENABLED",
C.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!0,S6(this)):_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_RATE_LIMITED"))}else _.PUX(Error("cl`"+JSON.stringify(I)))};
_.u.onYtAutonavPausePlayer=function(I){this.autonavPauseReasons.requestedByPlayer=!!I.detail;S6(this)};
_.u.onYtAutonavVisibilityChanged=function(){var I=this,C,y,k;return _.e(function(F){if(F.nextAddress==1)return(C=_.hU())?_.n(F,C.getPlayerPromise(),2):F.return();y=F.yieldResult;k=y.isMuted()||y.getVolume()===0;I.autonavPauseReasons.backgroundAndMute=I.isInBackground()&&k;S6(I);_.oI(F)})};
_.u.onYtAutonavPausePlayerEnded=function(){_.N().resolve(_.Qc);var I=144E5;_.V("user_engagement_enable_autoplay_pause_feature")||_.V("is_part_of_any_user_engagement_experiment")||(I=45E5);this.autonavPauseReasons.longIdle=_.Ci()>I;vpY(this);S6(this)};
_.u.onYtUserActivity=function(){var I=this;this.autonavPauseReasons.userEngagement&&(_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSE_DISABLED_BY_LACT_RESET",I.userEngagementCsn)}),this.autonavPauseReasons.userEngagement=!1,S6(this));
this.autonavPauseReasons.youthereLactExperiment&&(_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RESUMED",I.userEngagementCsn);_.Yo()}),this.autonavPauseReasons.youthereLactExperiment=!1,S6(this));
this.autonavPauseReasons.longIdle&&!_.V("disable_kevlar_resume_autonav_after_user_activity")&&(this.autonavPauseReasons.longIdle=!1,S6(this))};
_.u.isInBackground=function(){var I=window.document.visibilityState;return!(!I||I==="visible")};
var S6=function(I){for(var C=!1,y=_.T(Object.values(I.autonavPauseReasons)),k=y.next();!k.done;k=y.next())k=k.value,C=C||k;C?_.ho.getInstance().pause(I.autonavPauseReasons):(I=_.ho.getInstance(),I.autonavState_==3?(I.setState(2,!1,!1),I.autonavPauseReason_=void 0):I.autonavState_==1&&(I.disabledAutonavPauseReason_=void 0))},vpY=function(I){var C=!1;
if(_.V("enable_autoplay_pause_by_lact")){_.N().resolve(_.Qc);C=_.s8("autoplay_pause_by_lact_sec")*1E3;var y=_.s8("autoplay_pause_by_lact_sampling_fraction");(C=_.Ci()>=C&&Math.random()<y)&&!_.XNP()&&(_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_AUTOPLAY_RATE_LIMITED")}),C=!1)}C!==I.autonavPauseReasons.youthereLactExperiment&&(I.autonavPauseReasons.youthereLactExperiment=C)&&(I.userEngagementCsn=_.Si(),_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_AUTOPLAY_PAUSED",I.userEngagementCsn)}));
I.autonavPauseReasons.userEngagement&&_.NU(_.b$,function(){_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_PAUSED",I.userEngagementCsn)})};
KkP.prototype.onYtEndpointChanged=function(){this.autonavPauseReasons.youthereLactExperiment&&(_.qW("YOU_THERE_EVENT_TYPE_AUTOPLAY_NAVIGATED_OUT",this.userEngagementCsn),_.Yo(),this.autonavPauseReasons.youthereLactExperiment=!1,S6(this));this.autonavPauseReasons.userEngagement&&(_.qW("YOU_THERE_EVENT_TYPE_F_AUTONAV_NAVIGATED_OUT",this.userEngagementCsn),this.autonavPauseReasons.userEngagement=!1,S6(this))};
KkP.prototype.onYtGetAutonavPauseDebugState=function(){return JSON.stringify(this.autonavPauseReasons)};var KG=function(){var I=_.q.apply(this,arguments)||this;I.miniGuideVisible=!1;I.guideOpened=_.V("disable_initial_guide_state_fix")?!1:I.canFitPersistentGuide(I.initialBodyClientWidth);I.guideUserStateOpened=I.getInitialGuideUserStateOpened();I.isFullscreenShorts=!1;I.miniGuideWidthThreshold=_.s8("kevlar_mini_guide_width_threshold",791);I.persistentGuideBlockedPages="/clip /musicpremium /new /handle /premium /premiumlite /red /watch".split(" ");I.persistentGuideBlockedPagesPatterns="^/clip(/|$) ^/musicpremium(/|$) ^/new(/|$) ^/handle(/|$) ^/premium(/|$) ^/premiumlite(/|$) ^/red(/|$) ^/watch(/|$) ^/playables/(?!saved).".split(" ");
I.persistentGuideBlockedPagePathRegex=new RegExp(I.persistentGuideBlockedPagesPatterns.join("|"));I.animationTransitionDuration=0;I.lateDataResolver=_.vP();I.serviceEndpoint=mHS;I.initialGuideDataFetchFailed=!1;I.initialLoad=!0;I.guideRenderers=new Set;I.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts"};return I};
_.R(KG,_.q);_.u=KG.prototype;_.u.onGuidePersistendAndVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-and-visible-changed",{detail:{value:this.guidePersistentAndVisible,queueProperty:!0}}))};
_.u.onGuideIsVisibleButNotPersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-is-visible-but-not-persistent-changed",{detail:{value:this.guideIsVisibleButNotPersistent,queueProperty:!0}}))};
_.u.onMiniGuideVisibleChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("mini-guide-visible-changed",{detail:{value:this.miniGuideVisible,queueProperty:!0}}))};
_.u.onActiveEndpointChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("active-endpoint-changed",{detail:{value:this.activeEndpoint,queueProperty:!0}}))};
_.u.onRenderGuideChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("render-guide-changed",{detail:{value:this.renderGuide,queueProperty:!0}}))};
_.u.onGuidePersistentChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("guide-persistent-changed",{detail:{queueProperty:!0,value:this.guidePersistent}}))};
_.u.ready=function(){_.N().addProvider({provide:_.Yx,useValue:this.hostElement})};
_.u.attached=function(){var I=this;this.cachedClientWidth=this.initialBodyClientWidth;this.resetGuide();document.addEventListener("yt-navigate-finish",_.sb(this,this.onYtNavigateFinish));document.addEventListener("yt-guide-toggle",_.sb(this,this.onYtGuideToggle));document.addEventListener("yt-guide-close",_.sb(this,this.onYtGuideClose));document.addEventListener("yt-guide-show",_.sb(this,this.onYtGuideShow));_.hn(this,function(){I.animationTransitionDuration=200})};
_.u.detached=function(){document.removeEventListener("yt-navigate-finish",_.sb(this,this.onYtNavigateFinish));document.removeEventListener("yt-guide-toggle",_.sb(this,this.onYtGuideToggle));document.removeEventListener("yt-guide-close",_.sb(this,this.onYtGuideClose));document.removeEventListener("yt-guide-show",_.sb(this,this.onYtGuideShow));this.guideElement&&(this.guideElement.removeEventListener("opened-changed",_.sb(this,this.onDrawerOpenedChanged)),this.guideElement.removeEventListener("app-drawer-transitioned",
_.sb(this,this.onAppDrawerTransitioned)),this.guideElement.removeEventListener("app-drawer-transitioned",_.sb(this,this.onAppDrawerTransitionedFromKeyInput)))};
_.u.getData=function(){return this.data};
_.u.load=function(){var I=this,C,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:if(!window.ytInitialGuideData&&window.ytInitialGuideDataPresent)return window.loadGuideDataHook=I.lateDataResolver.resolve.bind(I),z.return(I.lateDataResolver.promise);if(window.ytInitialGuideData)return C=_.vP(),C.resolve(window.ytInitialGuideData),z.return(C.promise);k=!1;_.aM(z,2);return _.n(z,I.fetchGuideData(),4);case 4:y=z.yieldResult;_.dC(z,3);break;case 2:F=_.sj(z),F.message==="Returned error"&&(k=!0);
case 3:if(y)return z.return(y);I.onYtGuideClose();k||(I.initialGuideDataFetchFailed=!0);return z.return(I.lateDataResolver.promise)}})};
_.u.fetchGuideData=function(){var I=this,C,y,k,F,z,c;return _.e(function(r){if(r.nextAddress==1)return I.guidePromise||(I.guidePromise=_.Tg(I.hostElement,[I.serviceEndpoint])),_.n(r,I.guidePromise,2);if(r.nextAddress!=3)return C=r.yieldResult,y=_.N(),k=y.resolve(_.vG),_.n(r,k(),3);(F=r.yieldResult)&&((z=C)==null?0:z.data)&&((c=C.data.responseContext)==null?void 0:c.maxAgeSeconds)!==0&&F.put("service:guide:fallback",new _.as({innertubeResponse:C.data}));return r.return(C.data)})};
_.u.initializeGuideDataIfEmpty=function(){var I=this,C,y;return _.e(function(k){if(k.nextAddress==1){if(!I.initialGuideDataFetchFailed||I.data)return k.return();_.aM(k,2);return _.n(k,I.fetchGuideData(),4)}if(k.nextAddress!=2)return(C=k.yieldResult)&&I.lateDataResolver.resolve(C),_.dC(k,0);y=_.sj(k);_.SN(y);_.oI(k)})};
_.u.initializeGuideData=function(){var I=this,C;return _.e(function(y){switch(y.nextAddress){case 1:return _.iz(z18(),{mainAppWeb:_.gU()}),_.aM(y,2),_.n(y,I.load(),4);case 4:I.data=y.yieldResult;_.dC(y,3);break;case 2:_.sj(y),_.wA(z18(),"FAILURE");case 3:C=I.data&&I.data.items&&I.data.items.length>0?"SUCCESS":"FAILURE",_.wA(z18(),C),_.oI(y)}})};
_.u.setGuideData=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1)return C.disabled?F.return():C.data?(I.data=C.data,C.guideRenderers.add(I),F.return()):_.n(F,C.initializeGuideData(),2);C.graftGuideToPage();y=_.g5("IS_HOMEPAGE_COLD")?"eop":void 0;_.V("disable_element_pool_populator")?C.setGuideDataAfterInit(I):(k=new _.mt(1,y),_.ZL(k,C.setGuideDataAfterInit.bind(C,I)));_.oI(F)})};
_.u.setGuideDataAfterInit=function(I){I.data=this.data;I.markDirty();this.guideRenderers.add(I);_.SA(function(){_.Sr("gle")});
_.hn(this,function(){_.Sr("gpe")})};
_.u.graftGuideToPage=function(){if(this.data){var I=this.data&&this.data.trackingParams;I&&(I=_.nv(I),_.y4(_.e2(),I))}};
_.u.onGuideElementChanged=function(){this.guideElement.addEventListener("opened-changed",_.sb(this,this.onDrawerOpenedChanged));this.guideElement.swipeOpen=!0};
_.u.onDrawerOpenedChanged=function(I,C){!C.value&&this.guideOpened&&(this.guideOpened=!1)};
_.u.onYtGuideToggle=function(I){var C=this.guideOpened;this.guideOpened=!C;if(this.guidePersistent){this.guideUserStateOpened=this.guideOpened;var y=_.pA();_.Qw(0,109,!this.guideUserStateOpened);y.save()}this.updateGuideDrawerElementState();if(this.guideElement){var k;this.guideOpened&&((k=I.detail)==null?0:k.isKeyInput)&&this.guideElement.addEventListener("app-drawer-transitioned",_.sb(this,this.onAppDrawerTransitionedFromKeyInput));this.guideElement.addEventListener("app-drawer-transitioned",_.sb(this,
this.onAppDrawerTransitioned))}C||this.initializeGuideDataIfEmpty()};
_.u.onAppDrawerTransitionedFromKeyInput=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.sb(this,this.onAppDrawerTransitionedFromKeyInput));this.guideOpened&&this.guideElement&&_.HF(this.guideElement)};
_.u.onAppDrawerTransitioned=function(){this.guideElement.removeEventListener("app-drawer-transitioned",_.sb(this,this.onAppDrawerTransitioned));this.ytdReduxBehavior.dispatch(RVL(this.guideOpened))};
_.u.guidePersistentAndVisibleChanged=function(){_.uW(this.hostElement,"ytd-update-guide-state-action",[this.guidePersistentAndVisible])};
_.u.guideIsVisibleButNotPersistentChanged=function(){this.ytdReduxBehavior.dispatch(_.yE({type:"SET_GUIDE_IS_VISIBLE_BUT_NOT_PERSISTENT",payload:this.guideIsVisibleButNotPersistent}))};
_.u.miniGuideVisibleChanged=function(){_.uW(this.hostElement,"ytd-update-mini-guide-state-action",[this.miniGuideVisible])};
_.u.guideOpenedChanged=function(){this.initialLoad&&(this.ytdReduxBehavior.dispatch(RVL(this.guideOpened)),this.initialLoad=!1);_.uW(this.hostElement,"ytd-update-guide-opened-action",[this.guideOpened])};
_.u.activeEndpointChanged=function(){_.uW(this.hostElement,"ytd-update-active-endpoint-action",[this.activeEndpoint]);this.initializeGuideDataIfEmpty()};
_.u.resetGuide=function(){this.forceMiniGuideClose=!1;if(this.persistentGuideEnabled(this.pageType,this.pageUrl))this.onYtGuideShow();else this.onYtGuideClose()};
_.u.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()};
_.u.cachedClientWidthChanged=function(){if(this.persistentGuideEnabled(this.pageType,this.pageUrl)){var I=this.canFitPersistentGuide(this.cachedClientWidth);I?this.guideOpened=this.guideUserStateOpened:this.guidePersistent&&(this.guideOpened=!1);this.guidePersistent=I}this.updateGuideDrawerElementState()};
_.u.getGuidePersistentAndVisible=function(){return!!this.guidePersistentAndVisible};
_.u.getGuideOpened=function(){return this.guideOpened};
_.u.getGuideExpandsAutomatically=function(){return this.guideUserStateOpened};
_.u.getActiveEndpoint=function(){return this.activeEndpoint};
_.u.getMiniGuideVisible=function(){return this.miniGuideVisible};
_.u.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&&_.k3(this.hostElement,"yt-guide-hover"),!this.guideOpened||this.guidePersistent)&&(document.body.style.overflow="")};
_.u.computeGuidePersistentAndVisible=function(){var I=this;_.KK(this,"computeGuidePersistentAndVisible",function(){I.guidePersistentAndVisible=I.guideOpened&&I.guidePersistent;I.guideIsVisibleButNotPersistent=!(!I.guideOpened||I.guidePersistent)})};
_.u.observeForMiniGuideVisible=function(){this.guidePersistentAndVisible!==void 0&&(this.miniGuideVisible=!this.forceMiniGuideClose&&!this.guidePersistentAndVisible&&this.canFitMiniGuide(this.cachedClientWidth)&&this.persistentGuideEnabled(this.pageType,this.pageUrl))};
_.u.closeGuide=function(){this.guideOpened=!1;this.updateGuideDrawerElementState()};
_.u.onYtGuideClose=function(){this.closeGuide();this.forceMiniGuideClose=!0;this.guidePersistent=this.miniGuideVisible=!1};
_.u.startLoadingWatch=function(){this.closeGuide()};
_.u.startLoadingShorts=function(){_.V("web_hide_guide_on_shorts")&&this.closeGuide()};
_.u.onYtNavigateFinish=function(I,C){if(!_.F8||C){this.activeEndpoint=C.endpoint;this.pageType=C.pageType;this.pageUrl=C.response.url;var y,k;I=(k=_.l((y=C.endpoint)==null?void 0:y.commandMetadata,_.It))==null?void 0:k.url;!this.pageUrl&&I&&(this.pageUrl=I);_.V("kevlar_use_vimio_behavior")&&this.markGuideRendererDirty(this.getVisibleGuideRenderer())}};
_.u.getVisibleGuideRenderer=function(){for(var I=_.T(this.guideRenderers),C=I.next();!C.done;C=I.next())if(C=C.value,this.miniGuideVisible&&C.is==="ytd-mini-guide-renderer"||this.guideOpened&&C.is==="ytd-guide-renderer")return C;return null};
_.u.markGuideRendererDirty=function(I){if(I){typeof I.markDirty==="function"&&I.markDirty();I=_.T([].concat(_.Py(_.f(I).children)));for(var C=I.next();!C.done;C=I.next())this.markGuideRendererDirty(C.value)}};
_.u.persistentGuideEnabled=function(I,C){if(!C||I==="watch"||I==="settings"||I==="shorts"&&this.isFullscreenShorts||_.V("reels_web_disable_persistent_guide_shorts")&&I==="shorts")return!1;var y=_.Tl(C)||"";return _.V("kevlar_premium_guide_collapse_killswitch")?!this.persistentGuideBlockedPages.some(function(k){return y===k}):!this.persistentGuideBlockedPagePathRegex.test(y)};
_.u.canFitPersistentGuide=function(I){var C=_.s8("kevlar_persistent_guide_width_threshold",1312);return C===-1||_.V("reels_web_show_mini_guide_on_shorts")&&this.pageType==="shorts"?!1:I>C};
_.u.canFitMiniGuide=function(I){return this.miniGuideWidthThreshold===-1?!1:I>this.miniGuideWidthThreshold};
_.u.onResize=function(){var I=this;_.KK(this,"calculateGuideState",function(){I.onResizeDebounced()})};
_.u.onResizeDebounced=function(){this.cachedClientWidth=window.innerWidth};
_.u.disableGuideAnimation=function(){this.guideElement.transitionDuration=0};
_.u.enableGuideAnimation=function(){this.guideElement.transitionDuration=this.animationTransitionDuration};
_.u.getInitialGuideUserStateOpened=function(){return!_.pA().getFlag(109)};
_.H1.Object.defineProperties(KG.prototype,{initialBodyClientWidth:{configurable:!0,enumerable:!0,get:function(){return _.Aq("initialBodyClientWidth")||window.innerWidth}}});
KG.prototype.onResize=KG.prototype.onResize;KG.prototype.observeForMiniGuideVisible=KG.prototype.observeForMiniGuideVisible;KG.prototype.computeGuidePersistentAndVisible=KG.prototype.computeGuidePersistentAndVisible;KG.prototype.cachedClientWidthChanged=KG.prototype.cachedClientWidthChanged;KG.prototype.resetGuide=KG.prototype.resetGuide;KG.prototype.activeEndpointChanged=KG.prototype.activeEndpointChanged;KG.prototype.guideOpenedChanged=KG.prototype.guideOpenedChanged;
KG.prototype.miniGuideVisibleChanged=KG.prototype.miniGuideVisibleChanged;KG.prototype.guideIsVisibleButNotPersistentChanged=KG.prototype.guideIsVisibleButNotPersistentChanged;KG.prototype.guidePersistentAndVisibleChanged=KG.prototype.guidePersistentAndVisibleChanged;KG.prototype.onGuideElementChanged=KG.prototype.onGuideElementChanged;KG.prototype.onGuidePersistentChanged=KG.prototype.onGuidePersistentChanged;KG.prototype.onRenderGuideChanged=KG.prototype.onRenderGuideChanged;
KG.prototype.onActiveEndpointChanged=KG.prototype.onActiveEndpointChanged;KG.prototype.onMiniGuideVisibleChanged=KG.prototype.onMiniGuideVisibleChanged;KG.prototype.onGuideIsVisibleButNotPersistentChanged=KG.prototype.onGuideIsVisibleButNotPersistentChanged;KG.prototype.onGuidePersistendAndVisibleChanged=KG.prototype.onGuidePersistendAndVisibleChanged;_.E([_.g(_.Ri),_.h("design:type",Object)],KG.prototype,"ironResizableBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],KG.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],KG.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],KG.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KG.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"disabled",void 0);
_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"guidePersistentAndVisible",void 0);_.E([_.FI("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onGuidePersistendAndVisibleChanged",null);_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"guideIsVisibleButNotPersistent",void 0);
_.E([_.FI("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onGuideIsVisibleButNotPersistentChanged",null);_.E([_.d(),_.h("design:type",Object)],KG.prototype,"miniGuideVisible",void 0);_.E([_.FI("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onMiniGuideVisibleChanged",null);_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"forceMiniGuideClose",void 0);
_.E([_.d(),_.h("design:type",Object)],KG.prototype,"activeEndpoint",void 0);_.E([_.FI("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onActiveEndpointChanged",null);_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"renderGuide",void 0);_.E([_.FI("renderGuide"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onRenderGuideChanged",null);
_.E([_.d(),_.h("design:type",Object)],KG.prototype,"guideOpened",void 0);_.E([_.d(),_.h("design:type",Boolean)],KG.prototype,"guidePersistent",void 0);_.E([_.FI("guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onGuidePersistentChanged",null);_.E([_.d(),_.h("design:type",Object)],KG.prototype,"guideUserStateOpened",void 0);_.E([_.d(),_.h("design:type",String)],KG.prototype,"pageUrl",void 0);
_.E([_.d(),_.h("design:type",String)],KG.prototype,"pageType",void 0);_.E([_.d(),_.h("design:type",Number)],KG.prototype,"cachedClientWidth",void 0);_.E([_.d(),_.h("design:type",Object)],KG.prototype,"guideElement",void 0);_.E([_.d({selector:_.rl}),_.h("design:type",Object)],KG.prototype,"isFullscreenShorts",void 0);_.E([_.FI("guideElement"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onGuideElementChanged",null);
_.E([_.FI("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"guidePersistentAndVisibleChanged",null);_.E([_.rW("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"guideIsVisibleButNotPersistentChanged",null);
_.E([_.FI("miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"miniGuideVisibleChanged",null);_.E([_.rW("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"guideOpenedChanged",null);_.E([_.FI("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"activeEndpointChanged",null);
_.E([_.rW("pageUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"resetGuide",null);_.E([_.rW("cachedClientWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"cachedClientWidthChanged",null);_.E([_.FI("guideOpened","guidePersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"computeGuidePersistentAndVisible",null);
_.E([_.rW("guidePersistentAndVisible","pageUrl","cachedClientWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"observeForMiniGuideVisible",null);_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],KG.prototype,"onResize",null);KG=_.E([_.m({disableElementRegistration:!0,is:"yt-guide-manager"})],KG);var Wk8=_.Z(KG,"yt-guide-manager",void 0,{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var AV=function(){var I=_.q.apply(this,arguments)||this;I.JSC$17628_keyboardInUse=!1;I.boundHandleCapturedKeydownEvent=function(C){I.handleCapturedKeydownEvent(C)};
return I};
_.R(AV,_.q);_.u=AV.prototype;_.u.attached=function(){this.listenToDocument(document)};
_.u.listenToDocument=function(I){I.addEventListener("keydown",_.sb(this,this.onKeyDownEvent));I.addEventListener("keyup",_.sb(this,this.onKeyUpEvent));I.addEventListener("mousedown",_.sb(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||I.addEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);I.addEventListener("yt-page-data-updated",_.sb(this,this.onPageUpdate))};
_.u.detached=function(){this.unlistenFromDocument(document)};
_.u.unlistenFromDocument=function(I){I.removeEventListener("keydown",_.sb(this,this.onKeyDownEvent));I.removeEventListener("keyup",_.sb(this,this.onKeyUpEvent));I.removeEventListener("mousedown",_.sb(this,this.onMouseDownEvent));_.V("desktop_keyboard_capture_keydown_killswitch")||I.removeEventListener("keydown",this.boundHandleCapturedKeydownEvent,!0);I.removeEventListener("yt-page-data-updated",_.sb(this,this.onPageUpdate))};
_.u.ready=function(){_.N().addProvider({provide:_.Du,useValue:this})};
_.u.isKeyBoardInUse=function(){return this.JSC$17628_keyboardInUse};
_.u.handleCapturedKeydownEvent=function(I){if(I.keyCode===32&&!this.isKeyBoardInUse())this.onKeyDownEvent(I)};
_.u.onMouseDownEvent=function(){this.JSC$17628_keyboardInUse=!1};
_.u.onPageUpdate=function(){if(_.V("desktop_keyboard_shortcut_usage_log")||this.isShortsPage&&_.V("web_shorts_keyboard_shortcut_usage_log")){_.Ug.clear();for(var I=_.T(_.Eg),C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;y=_.Dn(y);_.Ug.set(C,y);_.q1(_.Si(),_.fq(),y)}_.HU.clear();I=_.T(_.hr);for(C=I.next();!C.done;C=I.next())y=_.T(C.value),C=y.next().value,y=y.next().value,y=_.Dn(y),_.HU.set(C,y),_.q1(_.Si(),_.fq(),y);_.m5(_.Si(),_.fq(),[].concat(_.Py(_.HU.values()),
_.Py(_.Ug.values())));_.Z0(_.Si(),[].concat(_.Py(_.HU.values()),_.Py(_.Ug.values())))}};
_.u.onMiniplayerActiveChange=function(){var I;(I=_.N().resolve(_.WJ).pipController.getWindow())&&(this.miniplayerIsActive?this.listenToDocument(I.document):this.unlistenFromDocument(I.document))};
_.u.ignoreKeyEvent=function(I){if(I.ctrlKey||I.altKey)if(_.V("kevlar_macro_markers_keyboard_shortcut")){if(I.keyCode!==37&&I.keyCode!==39)return!0}else return!0;var C=_.qc(I)||[];return _.bhS(C)?!0:I.defaultPrevented?(zY(I.keyCode,I.shiftKey,this.isShortsPage),!0):I.keyCode===32&&this.isKeyBoardInUse()?this.isSpacebarClick(I):!1};
_.u.isSpacebarClick=function(I){var C=I||window.event;var y;C.composedPath&&typeof C.composedPath==="function"?y=C.composedPath():y=C.path;y&&y.length?C=y[0]:(C=C||window.event,C=C.target||C.srcElement,C.nodeType==3&&(C=C.parentNode));return C&&I.keyCode===32&&(I=C.tagName==="BUTTON"||C.tagName==="A"||C.tagName==="INPUT",C=(C=C.getAttribute("role"))&&(C==="option"||C==="button"||C.indexOf("menuitem")===0),I||C)?!0:!1};
_.u.onKeyDownEvent=function(I){if(!this.ignoreKeyEvent(I)&&(I.keyCode===191&&(I.shiftKey||I.metaKey?I.repeat!=null&&I.repeat||(this.openHotkeyDialog(),zY(I.keyCode,I.shiftKey,this.isShortsPage)):(this.focusSearchBox(),I.preventDefault())),!I.metaKey)){var C=_.N().resolve(_.WJ);switch(I.keyCode){case 9:this.JSC$17628_keyboardInUse=!0;break;case 32:this.handlePlayerSpaceKey(I);break;case 84:C.pipController.getWindow()&&window.focus();this.toggleTheaterMode(I.keyCode,I.shiftKey);break;case 73:C.pipController.getWindow()&&
window.focus();this.toggleMiniplayer(I.keyCode,I.shiftKey);break;case 70:if(this.isShortsPage&&_.V("web_fullscreen_shorts")){_.Gl8();break}this.isMiniplayerActive()?C.pipController.getWindow()&&(C.close(!0),window.focus()):this.passEventToPlayer(I);break;case 27:this.closeMiniplayer(I.keyCode,I.shiftKey)||this.passEventToPlayer(I);break;case 13:I.shiftKey&&_.V("web_ephemeral_actions")&&_.N().resolve(_.yb).activate(I);break;default:this.passEventToPlayer(I)}}};
_.u.onKeyUpEvent=function(I){if(!this.ignoreKeyEvent(I))if(_.V("web_speedmaster_spacebar_control")&&I.keyCode===32)this.handlePlayerSpaceKey(I,!0);else{var C=this.getPlayerManager();C&&(C=C.getPlayer())&&C.handleGlobalKeyUp(I.keyCode,I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,I.key,I.code)}};
_.u.getPlayerManager=function(){var I=_.hU(),C=_.N().resolve(_.aU(_.BP));return I&&C&&C.isOnWatch()?I:null};
_.u.passEventToPlayer=function(I,C){var y=this,k,F,z;return _.e(function(c){if(c.nextAddress==1)return!_.V("desktop_keyboard_shortcuts_enabled_miniplayer_killswitch")&&y.isMiniplayerActive()?k=_.N().resolve(_.WJ).getPlayerElement():y.inlinePreviewIsActive?(F=_.uW(y.hostElement,"yt-get-inline-preview-player-action"))&&F[0]&&(k=F[0]):k=_.hU(),k?_.n(c,k.getPlayerPromise(),3):c.jumpTo(0);z=c.yieldResult;C?z.handleGlobalKeyUp(I.keyCode,I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,I.key,I.code,I.repeat):z.handleGlobalKeyDown(I.keyCode,
I.shiftKey,I.ctrlKey,I.altKey,I.metaKey,I.key,I.code,I.repeat);I.keyCode!==38&&I.keyCode!==40&&zY(I.keyCode,I.shiftKey,y.isShortsPage);_.oI(c)})};
_.u.focusSearchBox=function(){_.k3(this.hostElement,"yt-focus-searchbox")};
_.u.openHotkeyDialog=function(){_.k3(this.hostElement,"yt-open-hotkey-dialog")};
_.u.isMiniplayerActive=function(){return _.N().resolve(_.WJ).isMiniplayerActive()};
_.u.closeMiniplayer=function(I,C){return this.isMiniplayerActive()?(_.N().resolve(_.WJ).close(),zY(I,C,this.isShortsPage),!0):!1};
_.u.toggleTheaterMode=function(I,C){var y=_.pC(_.Hg().getState()),k=this.getPlayerManager(),F=_.V("disable_theater_mode_keyboard")||_.g5("START_IN_FULL_WINDOW_MODE");k&&!F&&(y=!y,_.CA()&&_.V("external_fullscreen")&&(y=!0),_.Fe(this.hostElement,"yt-toggle-theater-mode",[y]),zY(I,C,this.isShortsPage))};
_.u.toggleMiniplayer=function(I,C){var y=this.getPlayerManager();if(this.isMiniplayerActive()){var k;((k=_.N().resolve(_.aU(_.BP)))==null?0:k.isOnWatch())?_.N().resolve(_.WJ).close(!0):_.rM(_.N().resolve(_.WJ));zY(I,C,this.isShortsPage)}else y&&(_.Fe(this.hostElement,"yt-activate-miniplayer-from-watch-action"),zY(I,C,this.isShortsPage))};
_.u.handlePlayerSpaceKey=function(I,C){var y=!!_.hU()||this.isMiniplayerActive();y=_.V("disable_space_scroll_fix")||y;_.V("global_spacebar_pause")&&!this.isKeyBoardInUse()&&y&&(I.preventDefault(),this.passEventToPlayer(I,C))};
AV.prototype.onMiniplayerActiveChange=AV.prototype.onMiniplayerActiveChange;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],AV.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],AV.prototype,"ytdReduxBehavior",void 0);_.E([_.d({selector:_.roH}),_.h("design:type",Boolean)],AV.prototype,"inlinePreviewIsActive",void 0);_.E([_.d({selector:_.$SL}),_.h("design:type",Boolean)],AV.prototype,"isShortsPage",void 0);
_.E([_.d({selector:_.GL}),_.h("design:type",Boolean)],AV.prototype,"miniplayerIsActive",void 0);_.E([_.FI("miniplayerIsActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AV.prototype,"onMiniplayerActiveChange",null);AV=_.E([_.m({disableElementRegistration:!0,is:"yt-hotkey-manager"})],AV);_.Z(AV,"yt-hotkey-manager",void 0,{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var g6=function(){var I=_.q.apply(this,arguments)||this;I.loopStateEntityKey_=null;I.playlistLoopStateEntity_=null;I.isShuffleNextPlaylist=!1;I.JSC$17631_PLAYER_EVENTS_=new Map;I.playerListenersSetup_=!1;I.videoSkipJob_=0;I.canAutoAdvance_=!1;I.playerManager_=null;I.TEST_ONLY={};return I};
_.R(g6,_.q);_.u=g6.prototype;_.u.ready=function(){_.N().addProvider({provide:_.Gk,useValue:this.hostElement})};
_.u.created=function(){this.JSC$17631_PLAYER_EVENTS_.set("onPlaylistNext",this.onPlaylistNext);this.JSC$17631_PLAYER_EVENTS_.set("onPlaylistPrevious",this.onPlaylistPrevious);this.JSC$17631_PLAYER_EVENTS_.set("onPlaylistIndex",this.onPlaylistIndex_);this.JSC$17631_PLAYER_EVENTS_.set("onStateChange",this.onPlayerStateChange_);this.JSC$17631_PLAYER_EVENTS_.set("onLoopChange",this.onPlayerLoopChange_);this.JSC$17631_PLAYER_EVENTS_.set("onSleepTimerSettingsChanged",this.onSleepTimerSettingsChanged_)};
_.u.attached=function(){document.addEventListener("yt-navigate-start",_.sb(this,this.onYtNavigateStart_));document.addEventListener("yt-navigate-finish",_.sb(this,this.onYtNavigateFinish_))};
_.u.detached=function(){document.removeEventListener("yt-navigate-start",_.sb(this,this.onYtNavigateStart_));document.removeEventListener("yt-navigate-finish",_.sb(this,this.onYtNavigateFinish_))};
_.u.updatePlaylistEventListeners=function(I,C){C&&!this.playerListenersSetup_?(this.playerManager_=I,this.registerPlaylistEventListeners_(I)):!C&&this.playerListenersSetup_&&(this.playerManager_=null,this.removePlaylistEventListeners_(I))};
_.u.setPlayer=function(I){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_);this.playerManager_=I};
_.u.activate_=function(){this.playerManager_&&this.registerPlaylistEventListeners_(this.playerManager_)};
_.u.deactivate_=function(){this.playerManager_&&this.removePlaylistEventListeners_(this.playerManager_)};
_.u.registerPlaylistEventListeners_=function(I){var C=this;I.getPlayerPromise().then(function(y){C.playerListenersSetup_||(C.ytPlayerListenerBehavior.listenToPlayerEvents(y,C.JSC$17631_PLAYER_EVENTS_),C.playerListenersSetup_=!0)})};
_.u.removePlaylistEventListeners_=function(I){var C=this;I.getPlayerPromise().then(function(y){C.playerListenersSetup_&&(C.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y,C.JSC$17631_PLAYER_EVENTS_),C.playerListenersSetup_=!1)})};
_.u.setPlaylistComponent=function(I){this.playlistComponent&&(this.playlistComponent.removeEventListener("yt-navigate",_.sb(this,this.onPlaylistYtNavigate_)),I&&(I.data&&this.playlistComponent.data&&I.data.playlistId==this.playlistComponent.data.playlistId?(I.loopOn=this.playlistComponent.loopOn,I.shuffleOn=this.playlistComponent.shuffleOn):(I.loopOn=!1,I.shuffleOn=!1),this.isShuffleNextPlaylist&&(I.shuffleOn=!0,this.isShuffleNextPlaylist=!1)));this.playlistComponent=I;this.playlistComponent.addEventListener("yt-navigate",
_.sb(this,this.onPlaylistYtNavigate_))};
_.u.setAutoplayRenderer=function(I){this.autoplayData=I};
_.u.setPlaylistData=function(I){this.currentPlaylistData_=I;_.k3(this.hostElement,"yt-playlist-data-updated");_.Le.isEmpty(I)?this.deactivate_():this.activate_();this.setLoopStateEntityKey_(I)};
_.u.setPlayerPlaybackControlData=function(I){this.playerManager_&&this.playerManager_.updatePlayerComponents(I.playlistPanelRenderer)};
_.u.getPlaylistData=function(){return this.currentPlaylistData_};
_.u.getTempData_=function(I,C){if(this.playlistComponent==null)return null;I={};this.playlistComponent.shuffleOn&&(I.shuffle_on=this.playlistComponent.shuffleOn);this.playlistComponent.loopOn&&(I.loop_on=this.playlistComponent.loopOn);C&&(I.autonav="1",_.N().resolve(_.Qc),C=_.Ci(),C>0&&(I.lact=C),this.playerManager_&&(C=this.playerManager_.getPlayer())&&C.shouldSendVisibilityState()&&(C=C.getVisibilityState(),C!=0&&(I.vis=C)));_.V("enable_unknown_lact_fix_on_html5")&&(_.N().resolve(_.Qc),I.lact=_.Ci());
return I};
_.u.getPlaylistState_=function(){return this.playlistComponent.loopOn&&this.playlistComponent.shuffleOn?"LOOP_SHUFFLE":this.playlistComponent.loopOn?"LOOP":this.playlistComponent.shuffleOn?"SHUFFLE":"NORMAL"};
_.u.setLoopStateEntityKey_=function(I){var C;this.loopStateEntityKey_=((C=this.getPlaylistLoopData_(I))==null?void 0:C.playlistLoopStateEntityKey)||null};
_.u.onPlaylistNext=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"nextButtonVideo")};
_.u.onPlaylistPrevious=function(){this.playlistComponent&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"previousButtonVideo")};
_.u.skipVideo=function(){var I=this,C=_.V("web_playlist_queue_multiple_skips_ks");if(!this.videoSkipJob_||C)C=this.isInBackground_()?1E3:5E3,this.videoSkipJob_=_.LM(_.b$,function(){I.onPlaylistNext();I.videoSkipJob_=0},C)};
_.u.cancelVideoSkip=function(){this.videoSkipJob_&&(_.b$.cancelJob(this.videoSkipJob_),this.videoSkipJob_=0)};
_.u.isInBackground_=function(){var I=window.document.visibilityState;return!(!I||I=="visible")};
_.u.onPlaylistIndex_=function(I){this.playlistComponent&&(I=this.playlistComponent.data.contents[I].playlistPanelVideoRenderer.navigationEndpoint,_.k3(this.hostElement,"yt-navigate",{endpoint:I,tempData:this.getTempData_(I)}))};
_.u.onPlayerStateChange_=function(I){if(I=I==0&&this.playlistComponent&&this.canAutoAdvance_)I=_.ho.getInstance(),I=!(I.autonavState_===3?I.autonavPauseReason_&&I.autonavPauseReason_.inputBoxFocus===!0:I.autonavState_===1&&I.disabledAutonavPauseReason_&&I.disabledAutonavPauseReason_.inputBoxFocus===!0);I&&this.navigateToAutoplayWatchEndpoint_(this.getPlaylistState_(),"autoplayVideo",!0)};
_.u.onYtNavigateStart_=function(){this.canAutoAdvance_=!1};
_.u.onYtNavigateFinish_=function(){this.canAutoAdvance_=!0};
_.u.navigateToAutoplayWatchEndpoint_=function(I,C,y){var k=this.playlistComponent.data.currentIndex,F=this.getNumPlayableVideos_();I=="NORMAL"&&C=="autoplayVideo"&&k+1>=F&&y||!(I=this.getVideoEndpoint_(I,C))||(y=this.getTempData_(I,y),_.k3(this.hostElement,"yt-navigate",{endpoint:I,tempData:y}))};
_.u.getNumPlayableVideos_=function(){for(var I=0,C=_.T(this.playlistComponent.data.contents||[]),y=C.next();!y.done;y=C.next())y.value.playlistPanelVideoRenderer&&(I+=1);return I};
_.u.getVideoEndpoint_=function(I,C){if(this.autoplayData&&this.autoplayData.sets)for(var y=0,k=this.autoplayData.sets.length;y<k;y++){var F=this.autoplayData.sets[y];if(F.mode==I){if(F[C])return F[C];break}}else I=new _.ph("AutoplayData is undefined in playlist manager","Mode: "+I+" endpoint: "+C),_.SN(I)};
_.u.getAutoplayEndpoint=function(){if(this.playlistComponent)return this.getVideoEndpoint_(this.getPlaylistState_(),"autoplayVideo")};
_.u.onPlaylistYtNavigate_=function(I){if(I.detail.endpoint){I.stopPropagation();var C=I.detail;C.tempData=this.getTempData_(I.detail.endpoint);_.k3(this.hostElement,"yt-navigate",C)}};
_.u.hasAutoplayData=function(){return!(!this.autoplayData||!this.autoplayData.sets)};
_.u.onPlaylistLoopStateEntityChanged=function(){this.playlistLoopStateEntityChanged_(this.playlistLoopStateEntity_)};
_.u.playlistLoopStateEntityChanged_=function(I){var C=this,y,k,F;return _.e(function(z){if(z.nextAddress==1){if(!I)return z.return();y=I.state==="PLAYLIST_LOOP_STATE_ONE";return C.playerManager_?_.n(z,C.playerManager_.getPlayerPromise(),3):z.jumpTo(2)}z.nextAddress!=2&&(k=z.yieldResult,k.setLoopVideo(y));F=I.state==="PLAYLIST_LOOP_STATE_ALL";C.playlistComponent&&(C.playlistComponent.loopOn=F);_.oI(z)})};
_.u.getPlaylistLoopData_=function(I){var C,y;if(I=I==null?void 0:(C=I.playlistButtons)==null?void 0:(y=C.menuRenderer)==null?void 0:y.topLevelButtons)for(C=_.T(I),y=C.next();!y.done;y=C.next())if(y=y.value,y.playlistLoopButtonRenderer)return y.playlistLoopButtonRenderer};
_.u.getLoopStateCommand_=function(I){var C=this.getPlaylistData(),y;C=((y=this.getPlaylistLoopData_(C))==null?void 0:y.states)||[];var k;I=(k=_.l(C[I?1:2],_.PR0))==null?void 0:k.button;var F;return(F=_.l(I,_.fZ))==null?void 0:F.command};
_.u.onPlayerLoopChange_=function(I){this.playlistLoopStateEntity_&&(I?"PLAYLIST_LOOP_STATE_ONE":"PLAYLIST_LOOP_STATE_NONE")!==this.playlistLoopStateEntity_.state&&(I=this.getLoopStateCommand_(I))&&this.ytComponentBehavior.resolveCommand(I)};
_.u.onSleepTimerSettingsChanged_=function(I){this.canAutoAdvance_=I!=="End of video"};
g6.prototype.onPlaylistLoopStateEntityChanged=g6.prototype.onPlaylistLoopStateEntityChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],g6.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],g6.prototype,"ytPlayerListenerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],g6.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],g6.prototype,"loopStateEntityKey_",void 0);
_.E([_.d({selectorArgs:["loopStateEntityKey_"],selector:_.gwI}),_.h("design:type",Object)],g6.prototype,"playlistLoopStateEntity_",void 0);_.E([_.FI("playlistLoopStateEntity_"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g6.prototype,"onPlaylistLoopStateEntityChanged",null);g6=_.E([_.m({disableElementRegistration:!0,is:"yt-playlist-manager"})],g6);_.Z(g6,"yt-playlist-manager",void 0,{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var dFY,xFj=function(){if(dFY!==void 0)return dFY;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return dFY=I};var vB=function(){var I=_.q.apply(this,arguments)||this;I.lastCallback=null;I.getAccountLinkPromises={};I.redirectModeProviderAllowlist=new Set(["football.fantasysports.yahoo.com","riotgames.com"]);I.actionMap={"yt-initialize-third-party":"handleInitializeRequest","yt-account-link-command":"handleAccountLinkCommand","yt-account-unlink-command":"handleAccountUnlinkCommand","yt-log-account-linking-event-command":"handleLogAccountLinkingEventCommand"};return I};
_.R(vB,_.q);_.u=vB.prototype;_.u.getLocation=function(){return window.location.href};
_.u.getCompletionUrl=function(){return _.Oh(this.getLocation())};
_.u.containsRedirectState=function(I){return(I=_.$H(_.nwH(I)))?(new URLSearchParams(I)).get("redirect_state")!==null:!1};
_.u.createGalConfig=function(I,C){var y=new tjB;I=y=C?this.getPopupOrRedirectSetting(y,_.Aq("LINK_API_KEY"),_.Aq("LINK_API_KEY_REDIRECT"),I):J9M(y,_.Aq("LINK_API_KEY"));I.authUser=_.Aq("SESSION_INDEX")||0;I.supportedFlows=new Set([4]);return I.build()};
_.u.getPopupOrRedirectSetting=function(I,C,y,k){this.isGalInteractionPopupMode(k)?(I.interactionMode=0,I=J9M(I,C)):(I.interactionMode=1,C=this.getCompletionUrl(),I.completionUrl=C,I=J9M(I,y));return I};
_.u.isGalInteractionPopupMode=function(I){if(this.redirectModeProviderAllowlist.has(I))switch(I){case "football.fantasysports.yahoo.com":return!1;case "riotgames.com":return!_.V("main_web_redirect_integration_riot");default:return!1}return!0};
_.u.getStatusEntityKeyForProviderId=function(I){return _.TL(I+":all","accountLinkStatusEntity")};
_.u.findNestedPropValue=function(I,C){var y=!1,k=null;JSON.stringify(I,function(F,z){y||F!==C||(y=!0,k=z);return y?null:z});
return k};
_.u.findAccountLinkButtonViewModel=function(I,C){var y=null,k=!1;JSON.stringify(I,function(F,z){k||z.accountLinkStatusEntityKey!==C||z.accountLinkStatusSecondaryEntityKey||(k=!0,y=z);return k?null:z});
return y};
_.u.executeLinkingSuccessOrFailureCommands=function(I,C,y){var k=null,F;(C==null?0:(F=C.url)==null?0:F.includes("account_sharing"))?k=C==null?void 0:C.response:k=C==null?void 0:C.response;(C=this.findAccountLinkButtonViewModel(k,I))?(I=y?this.findNestedPropValue(C,"onSuccessCommand"):this.findNestedPropValue(C,"onFailureCommand"))?_.iW([I],this.hostElement):_.xS(Error("dl")):_.xS(Error("el`"+I))};
_.u.handleInitializeRequest=function(I,C){var y=this,k=R0K(this.createGalConfig(I,!0));this.containsRedirectState(this.getLocation())?w1L(I,k.config,k.galService).then(function(F){var z=y.getStatusEntityKeyForProviderId(I);if(F.statusCode===1)C&&y.executeLinkingSuccessOrFailureCommands(z,C,!0),F=y.getLocation().indexOf("#"),F!==-1&&window.history.pushState(null,"",y.getLocation().substring(0,F));else return C&&y.executeLinkingSuccessOrFailureCommands(z,C,!1),Promise.reject(Error(F.statusMessage))}).catch(function(F){_.SN(F);
_.b2("gamingAccountLinkStatusChanged",{serviceId:I,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(F)}):this.getAccountLinkPromises[I]=k.startLinkingSession({serviceId:I})};
_.u.handleAccountLinkCommand=function(I){_.l(I,xuK)&&this.handleLinkRequest(_.l(I,xuK))};
_.u.handleLinkRequest=function(I){var C=this,y=I.thirdPartyId;if(y)if(this.isGalInteractionPopupMode(y)){var k=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",I.onFailureCommand)},F=function(){C.closeAndFire("ytd-gaming-account-link-setting-renderer",I.onSuccessCommand)};
this.lastCallback=F;this.getAccountLinkPromises[y].then(function(z){bnK(z).then(function(c){c.statusCode===1?F():k()})}).catch(function(){k()})}else this.getAccountLinkPromises[y].then(function(z){bnK(z).then(function(c){if(c.statusCode!==1)return Promise.reject(Error(c.statusMessage))})}).catch(function(z){_.SN(z);
_.b2("gamingAccountLinkStatusChanged",{serviceId:y,event:"GAMING_ACCOUNT_LINK_ACTION_LINKING",actionStatus:"GAMING_ACCOUNT_LINK_ACTION_STATUS_FAILED"});return Promise.reject(z)})};
_.u.closeAndFire=function(I,C){_.Fe(this.hostElement,"yt-close-popup-action",[I]);C&&_.iW([C],this.hostElement)};
_.u.handleAccountUnlinkCommand=function(I){_.l(I,qJK)&&this.handleUnlinkRequest(_.l(I,qJK))};
_.u.handleUnlinkRequest=function(I){var C=this,y=I.thirdPartyId;if(y){var k=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",I.onFailureCommand)},F=function(){C.closeAndFire("ytd-gaming-account-link-confirm-dialog-renderer",I.onSuccessCommand)};
this.lastCallback=F;var z=R0K(this.createGalConfig(y,!1));this.unlinkUserGal(z,y).then(function(c){c.statusCode===1?F():k()}).catch(function(){k()})}};
_.u.unlinkUserGal=function(I,C){return I.deleteLink(C)};
_.u.handleLogAccountLinkingEventCommand=function(I){_.V("enable_gel_log_commands")&&_.l(I,muL)&&(I=_.l(I,muL).event)&&_.b2("gamingAccountLinkStatusChanged",I)};
_.H1.Object.defineProperties(vB,{template:{configurable:!0,enumerable:!0,get:function(){return xFj()}}});
_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],vB.prototype,"ytOpenPopupBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],vB.prototype,"ytActionHandlerBehavior",void 0);vB=_.E([_.m({disableElementRegistration:!0,is:"ytd-third-party-manager"})],vB);_.Z(vB,"ytd-third-party-manager",function(){return xFj()},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var qPK,mFy=function(){return qPK!==void 0?qPK:qPK=document.createElement("template")};
document.head.appendChild(mFy().content);var ZXR,B3j=function(){if(ZXR!==void 0)return ZXR;var I=document.createElement("template");_.Y(I,"\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-page-manager--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.pages.ytd_page_manager.ytd.page.manager.transitions.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e");I.content.insertBefore(mFy().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZXR=I};var EpY=_.hu(["\n          :root {\n            --page-manager-transition-exit-ms: ","ms;\n            --page-manager-transition-wait-ms: ","ms;\n            --page-manager-transition-enter-ms: ","ms;\n          }\n      "]),WB=function(){var I=_.q.apply(this,arguments)||this;I.currentPage=void 0;I.renderLoadingStateJobId=0;I.updatePageDataJobId=0;I.pageDisposeJobsets=new WeakMap;I.actionMap={"yt-start-loading-watch":"startLoadingWatch","yt-start-loading-shorts":"startLoadingShorts","yt-get-page-offset":"getPageOffset",
"yt-set-page-offset":"setPageOffset","yt-pause-active-page-context":"pauseActiveContext","yt-prepare-page-dispose":"preparePageDispose","yt-stop-old-player":"onYtStopOldPlayer"};I.applyZoomTransition=_.oD("web_page_transition_type")==="zoom";I.applySlideTransition=_.oD("web_page_transition_type")==="slide";I.TEST_ONLY=void 0;return I};
_.R(WB,_.q);_.u=WB.prototype;_.u.ready=function(){var I=_.N();I.addProvider({provide:_.BP,useValue:this});I.addProvider({provide:_.Q2c,useValue:this})};
_.u.created=function(){this.pagePool=new iXL;this.contextSwitcher=new $8j};
_.u.attached=function(){_.k3(this.hostElement,"attached");var I=_.N().resolve(_.aU(_.pp));I&&(this.contextSwitcher.JSC$17452_networkService_=I);this.viewTransitionManager=_.N().resolve(_.aU(_.cTK));this.setupPageTransitionAnimation()};
_.u.getPageOffset=function(I){return I.getScrollTop()};
_.u.setPageOffset=function(I,C){try{I.setScrollTop(C)}catch(y){}};
_.u.setPageOffsetForNavigation=function(I,C){_.k3(this.hostElement,"yt-navigate-set-page-offset",{page:I,offset:C===void 0?0:C})};
_.u.pauseActiveContext=function(){var I=this.contextSwitcher;I.activeContext_&&I.activeContext_.pause()};
_.u.getModuleNameForType=function(I){return I==="watch"?_.V("kevlar_watch_fixie")?"watchFixie":_.V("kevlar_watch_grid")?"watchGrid":"watchFlexy":I==="shorts"||I==="search"?I:"browse"};
_.u.attachPage=function(I){var C,y=!_.V("pc_is_attached_ks")&&(I==null?void 0:(C=I.polymerController)==null?void 0:C.isAttached);if(!I.isAttached&&!y)try{_.f(this.hostElement).appendChild(I)}catch(F){var k;_.SN(new _.ph("Error attaching page element for component",{origin:(k=this.currentPage)==null?void 0:k.is,component:I.is}))}};
_.u.setActivePage=function(I){var C=this,y=!1,k=function(){var F=C.isOnWatch(),z=C.currentPage;if(I)if(I!==C.currentPage){z&&(z.hidden=!0,z.active=!1,z.removeAttribute("role"));C.currentPage=I;var c,r=Ct((c=C.data)==null?void 0:c.endpoint);z&&_.k3(C.hostElement,"yt-page-type-changed",{oldPageType:z.is,newPageType:I.is,newPageSubtype:r});_.dW().dispatch(_.yE({type:"SET_SHARED_CURRENT_PAGE_TYPE",payload:I.is}));_.dW().dispatch(_.yE({type:"SET_SHARED_CURRENT_PAGE_SUB_TYPE",payload:r||""}));I.hidden=
!1;C.attachPage(I);I.active=!0;I.setAttribute("role","main");z&&C.setPageOffsetForNavigation(I,0);_.V("kevlar_remove_page_dom_on_switch")&&!F&&z&&_.f(C.hostElement).removeChild(z)}else y=!0;else F=new _.ph("Unable to set active page",z?z.is:"unknown origin",(r=C.data)==null?void 0:r.endpoint),_.GB(F)};
this.viewTransitionManager?t2R(this.viewTransitionManager,k,this.viewTransitionConfigForSetActivePage(this.currentPage,I)):k();return y};
_.u.viewTransitionConfigForSetActivePage=function(I,C){return _.V("web_thumbnail_to_watch_transition")&&(I==null?void 0:I.is)==="ytd-browse"&&this.isWatchPage(C)?{viewTransitionOptions:{shouldWrap:!0}}:(this.applySlideTransition||this.applyZoomTransition)&&(I==null?void 0:I.is)==="ytd-browse"&&(C==null?void 0:C.is)==="ytd-browse"&&I!==C?this.applySlideTransition?{transitionName:"slide"}:{transitionName:"zoom"}:{viewTransitionOptions:{shouldWrap:!1}}};
_.u.updatePageData=function(I){var C=this,y=this.data;this.updatePageDataJobId&&_.b$.cancelJob(this.updatePageDataJobId);this.data=I;return new _.eN(function(k){var F=function(){I.filler?C.performDataUpdate(I,y):ivS(function(){C.performDataUpdate(I,y)});
var w=_.So();_.Ku(w,"cr")||w.processSignal("cr");k()},z=function(){I&&I.page==="watch"?C.updatePageDataJobId=_.LM(_.b$,F):F()};
if(_.V("kevlar_enable_mss_page_modules_client")&&I){var c=_.N().resolve(_.xH),r=C.getModuleNameForType(I.page);(c=UxY(c,[r]))?c.then(z):z()}else z()})};
_.u.isDownloadsPage=function(I){var C,y;return(I==null?void 0:(C=I.endpoint)==null?void 0:(y=C.browseEndpoint)==null?void 0:y.browseId)==="FEdownloads"};
_.u.setPlayerSyncInterval=function(I){var C;return _.e(function(y){if(y.nextAddress==1)return _.n(y,_.N().resolve(_.OZ),2);C=y.yieldResult;C.setUpPositionSyncInterval(I);_.oI(y)})};
_.u.performDataUpdate=function(I,C){_.V("kevlar_early_popup_close")||_.Fe(this.hostElement,"yt-close-all-popups-action",[["ytd-video-download-toast-renderer"]]);var y=!I.filler;y&&(_.Sr("lps"),_.V("config_age_report_killswitch")||myY());var k=Jr(I),F,z=!1;if(_.V("kevlar_remove_page_dom_on_switch")){var c=C&&Jr(C);k===c&&(F=this.getCurrentPage())}F||(F=$P(this.pagePool,k));y&&PUP(this.pagePool.elementPoolPopulator,k);y&&!this.renderLoadingStateJobId&&(z=this.setActivePage(F));if(F){c=k==="watch";var r=
k==="shorts";_.V("kevlar_flush_jobs_before_setting_player_response")&&this.flushPageDisposeJobset(F);if(c||r)F.playerData=I.playerResponse;if(r){I.reelWatchSequenceResponse?F.reelWatchSequenceResponse=I.reelWatchSequenceResponse:I.cachedReelWatchSequenceResponse&&(F.reelWatchSequenceResponse=I.cachedReelWatchSequenceResponse);F.currentEndpoint=I.endpoint;var w;F.isPreviousPageShorts=!!(C==null?0:(w=C.endpoint)==null?0:w.reelWatchEndpoint);I.cachedReelWatchSequenceResponse=I.reelWatchSequenceResponse||
I.cachedReelWatchSequenceResponse||(C==null?void 0:C.cachedReelWatchSequenceResponse);F.cachedReelWatchSequenceResponse=I.cachedReelWatchSequenceResponse}w=this.isDownloadsPage(I);var L=this.isDownloadsPage(C);w&&!L?this.setPlayerSyncInterval(6E5):!w&&L&&this.setPlayerSyncInterval();_.V("block_all_player_prefetch_requests")||this.preparePrefetchRequest(I,F,y,c,r);JEM(_.N().resolve(_.WJ),C,I);_.XZ8(_.N().resolve(_.Qc));_.V("kevlar_flush_jobs_before_setting_player_response")||this.flushPageDisposeJobset(F);
y?(y=typeof F.loadPage,y==="function"?(F.pageContext=RiB(this.contextSwitcher,F,F.data!==I.response),C=function(){F.loadPage(I.response)},(this.applySlideTransition||this.applyZoomTransition)&&this.viewTransitionManager&&F.is==="ytd-browse"&&z?this.applySlideTransition?t2R(this.viewTransitionManager,C,{transitionName:"slide"}):t2R(this.viewTransitionManager,C,{transitionName:"zoom"}):C()):_.fi(new _.ph("b/38014653 ",[k,
F.is,F.nodeName,y,F.isAttached,C&&Jr(C),this.hostElement.children.length])),_.Sr("pdl")):(F.hidden=!0,I.response.filler=!0,F.data=I.response,this.attachPage(F));_.k3(this.hostElement,"yt-page-data-updated",{pageType:k})}_.NU(_.b$,function(){_.V("logging_avoid_blocking_during_navigation")&&_.mHt().transition("none");var D=Z0H(),p=F;if(I){var Q=D18(I),X=pQY(I),b;a:{if(I.playerResponse){var S=I.playerResponse,A;if((b=S.auxiliaryUi)==null?0:(A=b.messageRenderers)==null?0:A.upsellDialogRenderer){b=S.auxiliaryUi.messageRenderers.upsellDialogRenderer;
break a}}else if(I.response&&(b=I.response,(S=b.overlay)==null?0:S.upsellDialogRenderer)){b=b.overlay.upsellDialogRenderer;break a}b=void 0}var x;var B;A=(x=I.playerResponse)==null?void 0:(B=x.auxiliaryUi)==null?void 0:B.messageRenderers;x=(A==null?void 0:A.enforcementMessageViewModel)||(A==null?void 0:A.bkaEnforcementMessageViewModel);x=(x==null?void 0:x.displayType)!=="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"?x:void 0;var t;a:{if(I.response&&(B=I.response,(t=B.overlay)==null?0:t.commandWrapperPromoRenderer)){t=
B.overlay.commandWrapperPromoRenderer;break a}t=void 0}m88(D,Q,X,b,x,t,p)}})};
_.u.preparePrefetchRequest=function(I,C,y,k,F){var z,c,r,w,L,D,p,Q,X,b,S,A,x,B,t;return _.e(function(U){if(U.nextAddress==1)return!y||!k&&!F||_.V("kevlar_disable_background_prefetch")&&_.W5(_.qUK)()===0?U.return():(z=_.EZ(C))?_.n(U,z.getPlayerPromise(),2):U.return();c=U.yieldResult;r=_.N().resolve(_.aU(_.pp));if(!r)return U.return();if(F)return w=_.Fv(_.C0),jjj(w,(L=I.endpoint)==null?void 0:L.reelWatchEndpoint,C.reelWatchSequenceResponse,c,r),U.return();Q=(D=I.response)==null?void 0:(p=D.responseContext)==
null?void 0:p.webResponseContextExtensionData;if(!Q)return U.return();x=(X=I.response)==null?void 0:(b=X.contents)==null?void 0:(S=b.twoColumnWatchNextResults)==null?void 0:(A=S.autoplay)==null?void 0:A.autoplay;B=_.N().resolve(_.Gk);t=_.Fv(_.C0);l_R(t,Q,c,r,B,x);_.oI(U)})};
_.u.movePlayerToWatch=function(I){var C=this,y,k;return _.e(function(F){y=$P(C.pagePool,"watch");k=y.getPlayerContainer();I.appendTo(k);_.oI(F)})};
_.u.movePlayerToShorts=function(I){var C=this,y,k,F;return _.e(function(z){y=$P(C.pagePool,"shorts");k=y.getPlayerContainer();(F=I)==null||F.appendTo(k,void 0,!0);_.oI(z)})};
_.u.getPlayerFromWatch=function(){var I=$P(this.pagePool,"watch");return _.EZ(I)};
_.u.getPlayerFromShorts=function(){var I=$P(this.pagePool,"shorts");return _.EZ(I)};
_.u.startLoadingWatch=function(){var I=$P(this.pagePool,"watch");this.renderLoadingStateJobId?(_.b$.cancelJob(this.renderLoadingStateJobId),this.renderLoadingStateJobId=0,this.renderPageLoadingState("watch")):this.setActivePage(I)};
_.u.startLoadingShorts=function(){var I=$P(this.pagePool,"shorts");this.setActivePage(I)};
_.u.getCurrentPage=function(){return this.currentPage};
_.u.getDestinationPageType=function(){return this.destinationPageType};
_.u.getCurrentData=function(){return this.data};
_.u.isOnWatch=function(){return this.isWatchPage(this.currentPage)};
_.u.isOnShorts=function(){var I;return((I=this.currentPage)==null?void 0:I.is)==="ytd-shorts"};
_.u.isWatchPage=function(I){return!!I&&(I.is==="ytd-watch-flexy"||I.is==="ytd-watch-fixie"||I.is==="ytd-watch-grid")};
_.u.preparePage=function(I,C){var y=this,k=function(){var c=y.pagePool.preparePage(I,y.currentPage,C);c&&y.attachPage(c)},F=function(c){_.Ki(c,C);
_.SN(c)};
if(_.V("kevlar_enable_mss_page_modules_client")){var z=this.getModuleNameForType(I);if(z=UxY(_.N().resolve(_.xH),[z])){z.then(k.bind(this)).catch(F.bind(this));return}}try{k()}catch(c){F(c)}};
_.u.lazyPrepareCriticalPages=function(I,C){I=Ct(C)||I;_.V("kevlar_enable_mss_page_modules_client")?this.downloadPageModules(I).then(this.maybePrepareWatchPage.bind(this,I)):this.maybePrepareWatchPage(I)};
_.u.maybePrepareWatchPage=function(I){I!=="watch"&&_.NU(_.b$,this.preparePage.bind(this,"watch"))};
_.u.downloadPageModules=function(I){I=this.getModuleNameForType(I);var C=new Set(["browse","search","shorts",this.getModuleNameForType("watch")]);C.delete(I);var y=_.N().resolve(_.xH);y.JSC$16191_loadModules(I);return y.JSC$16191_loadModules.apply(y,_.Py(C))};
_.u.renderPageLoadingState=function(I,C){this.preparePage(I,C);var y=$P(this.pagePool,I);y.loadingData&&(y.loadingData.endpoint=C);y.loading=!0;this.setActivePage(y);I==="watch"&&_.k3(this.hostElement,"yt-guide-close")};
_.u.prepareForNavigation=function(I,C){var y=this;if(this.currentPage&&this.data){var k=Ct(C)||I;this.destinationPageType=k;Jr(this.data)==k&&_.k3(this.currentPage,"yt-page-data-will-update",{bubbles:!1})}if(I==="watch"&&this.data&&this.data.page!=="watch"){this.renderLoadingStateJobId&&_.b$.cancelJob(this.renderLoadingStateJobId);_.N().resolve(_.WJ).deactivate(C);var F=this.data;this.renderLoadingStateJobId=_.jj(_.b$,function(){if(y.data!=F){var z=$P(y.pagePool,I);y.setActivePage(z)}else y.renderPageLoadingState(I,
C);y.renderLoadingStateJobId=0},150)}};
_.u.preparePageDispose=function(){if(this.currentPage&&Array.isArray(this.currentPage.pageDisposeJobs)&&this.currentPage.pageDisposeJobs.length!==0){var I=new _.mt(1);this.currentPage.pageDisposeJobs.forEach(function(C){_.ZL(I,C)});
this.pageDisposeJobsets.set(this.currentPage,I)}};
_.u.flushPageDisposeJobset=function(I){var C=this.pageDisposeJobsets.get(I);C&&(C.flushJobs(),this.pageDisposeJobsets.delete(I))};
_.u.onYtStopOldPlayer=function(I,C){C=C===void 0?!1:C;var y,k=_.yS("kevlar_new_stop_old_player_logic_pages");if(_.V("kevlar_check_current_page_on_stop_old_player")&&(k.length===0||this.currentPage&&k.includes(this.currentPage.is)))if(this.data&&(y=Jr(this.data)),Jr(I)===y&&this.currentPage&&Jr(this.currentPage.data)!==y)var F=_.EZ(this.currentPage);else y=Jr(this.data),F=$P(this.pagePool,y),F=_.EZ(F);else this.data&&(y=Jr(this.data),F=$P(this.pagePool,y),F=_.EZ(F));if(F)if(I=Jr(I),k=$P(this.pagePool,
I),k=_.EZ(k),F==k)C&&!_.V("kevlar_disable_preemptive_player_reset")&&F.resetForNewPlayback();else if(C=y==="watch"&&I!=="watch",!C||I==="shorts"||_.hru()&&!WZY(this.data)&&I!=="yts-products"&&I!="mini_app"&&I!="playables")y=_.N().resolve(_.WJ),C&&y.isMiniplayerActive()&&y.pipController.getWindow()||F.stop()};
_.u.setupPageTransitionAnimation=function(){var I=this;if((this.applyZoomTransition||this.applySlideTransition)&&this.viewTransitionManager){uS(this.viewTransitionManager,"slide",{beforeTransition:function(){I.hostElement.style.viewTransitionName="page-manager-slide"},
afterTransition:function(){I.hostElement.style.viewTransitionName=""}});
uS(this.viewTransitionManager,"zoom",{beforeTransition:function(){I.hostElement.style.viewTransitionName="page-manager-zoom"},
afterTransition:function(){I.hostElement.style.viewTransitionName=""}});
var C=_.s8("web_page_transition_exit_ms"),y=_.s8("web_page_transition_wait_ms"),k=_.s8("web_page_transition_enter_ms");if(!isNaN(C)||!isNaN(y)||!isNaN(k))if(C=EtY(EpY,C,y,k))y=document.createElement("style"),y.textContent=_.QJF(C),document.head.appendChild(y)}};
_.H1.Object.defineProperties(WB,{template:{configurable:!0,enumerable:!0,get:function(){return B3j()}}});
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],WB.prototype,"ytActionHandlerBehavior",void 0);WB=_.E([_.m({disableElementRegistration:!0,is:"ytd-page-manager"})],WB);_.Z(WB,"ytd-page-manager",function(){return B3j()},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var d6=function(I,C,y){y=y===void 0?!1:y;_.LL.call(this);this.draggableElement=I;this.callbacks=C;this.allowClicks=y;this.dragOccurred=!1;this.internalDragger=new _.Kb(this.draggableElement);this.dragDelay=new _.Oo(this.delayedDrag.bind(this));hvy(this);this.allowClicks&&(_.ntu(this.internalDragger,5),I.addEventListener("click",_.sb(this,this.validateClick),{capture:!0}))};
_.R(d6,_.LL);var hvy=function(I){_.Lv(I.internalDragger,"earlycancel",function(){I.allowClicks&&(I.dragOccurred=!1)});
_.Lv(I.internalDragger,"start",function(C){var y,k;(k=(y=I.callbacks).onStartDrag)==null||k.call(y,C);!C.defaultPrevented&&I.allowClicks&&(I.dragOccurred=!0)});
_.Lv(I.internalDragger,"beforedrag",function(C){C.preventDefault();I.lastOffset=new _.Q6(C.clientX-I.internalDragger.startX,C.clientY-I.internalDragger.startY);I.dragDelay.start()});
_.Lv(I.internalDragger,"end",function(){I.dragDelay.stop();var C,y;(y=(C=I.callbacks).onEndDrag)==null||y.call(C);I.lastOffset=void 0})};
d6.prototype.delayedDrag=function(){if(this.lastOffset)this.callbacks.onDrag(this.lastOffset)};
d6.prototype.disposeInternal=function(){this.internalDragger.dispose();this.allowClicks&&this.draggableElement.removeEventListener("click",_.sb(this,this.validateClick),{capture:!0})};
d6.prototype.validateClick=function(I){this.dragOccurred&&(this.dragOccurred=!1,I.stopPropagation(),I.preventDefault())};var xP=function(I,C){_.LL.call(this);this.JSC$17653_resizeContainer=I;this.callbacks=C;this.aspectRatio=16/9;this.JSC$17653_resizers=[];I=_.T(this.JSC$17653_resizeContainer.children);for(C=I.next();!C.done;C=I.next())UFR(this,C.value)};
_.R(xP,_.LL);xP.prototype.disposeInternal=function(){for(var I=_.T(this.JSC$17653_resizers),C=I.next();!C.done;C=I.next())C.value.dispose();I=_.T(this.JSC$17653_resizeContainer.children);for(C=I.next();!C.done;C=I.next())C.value.setAttribute("disabled","");this.JSC$17653_resizers.length=0};
xP.prototype.setSize=function(I){this.currentMiniplayerSize=I};
xP.prototype.setAspectRatio=function(I){this.aspectRatio=I};
xP.prototype.update=function(I,C){for(var y=_.T(this.JSC$17653_resizeContainer.children),k=y.next();!k.done;k=y.next()){k=k.value;var F=k.getAttribute("alignment");_.Mc(k,"disabled",F===I||F===C)}};
var UFR=function(I,C){var y=C.getAttribute("alignment"),k=new d6(C,{onStartDrag:function(F){if(C.hasAttribute("disabled"))F.preventDefault();else{I.dragStartSize=I.currentMiniplayerSize;var z,c;(c=(z=I.callbacks).onStartResize)==null||c.call(z)}},
onDrag:function(F){if(I.dragStartSize){y!=="north"&&y!=="west"||F.scale(-1);var z=y==="north"||y==="south";F=z?F.y:F.x;z&&I.aspectRatio>=1?F*=I.aspectRatio:!z&&I.aspectRatio<1&&(F/=I.aspectRatio);I.callbacks.onResize(I.dragStartSize+F)}}});
I.JSC$17653_resizers.push(k)};var HXK,tDY=function(){return HXK!==void 0?HXK:HXK=document.createElement("template")};
document.head.appendChild(tDY().content);var Jmj;var OXK=_.BO(function(I){var C=_.Es(),y=I.onDrag,k=I.onDragStart,F=I.onDragEnd,z=_.ZB(I,{allowClicks:!1,dragThreshold:5}),c=z.dragThreshold,r=z.allowClicks;I=z.children;z=z.className;var w=void 0,L=void 0,D=new _.Q6(0,0),p=!1;_.RU(function(){w=new _.Kb(C.value);L=new _.Oo(X);Q(w,L);if(r()){_.ntu(w,c());var S;(S=C.value)==null||S.addEventListener("click",b,{capture:!0})}_.$4(function(){var A;(A=w)==null||A.dispose();if(r()){var x;(x=C.value)==null||x.removeEventListener("click",b,{capture:!0})}})});
var Q=function(S,A){_.Lv(S,"earlycancel",function(){r()&&(p=!1)});
_.Lv(S,"start",function(x){k==null||k(x);x.defaultPrevented||r()&&(p=!0)});
_.Lv(S,"beforedrag",function(x){w&&L&&(x.preventDefault(),D=new _.Q6(x.clientX-w.startX,x.clientY-w.startY),L.start())});
_.Lv(S,"end",function(){A.stop();F==null||F();D=new _.Q6(0,0)})},X=function(){D&&y(D)},b=function(S){p&&(p=!1,S.stopPropagation(),S.preventDefault())};
return _.P("yt-draggable",{el:C,class:_.sZ("ytDraggableComponentHost",z)},I)},"Vf");var abL=_.BO(function(I){var C=_.T(_.c4(0,void 0,"Pf10wb")),y=C.next().value,k=C.next().value;C=function(F){var z={},c={};return _.P(OXK,{className:_.sZ("ytdMiniplayerComponentResizer",(z.ytdMiniplayerComponentResizerDisabled=function(){return F===I.horizontalAlignment()||F===I.verticalAlignment()},z.ytdMiniplayerComponentResizerNorth=F==="north",z.ytdMiniplayerComponentResizerEast=F==="east",z.ytdMiniplayerComponentResizerSouth=F==="south",z.ytdMiniplayerComponentResizerWest=F==="west",z)),
onDragStart:function(){k(I.currentMiniplayerSize())},
onDrag:function(r){F!=="north"&&F!=="west"||r.scale(-1);var w;r=(w=F==="north"||F==="south")?r.y:r.x;var L=I.currentAspectRatio();w&&L>=1?r*=L:!w&&L<1&&(r/=L);w=r;I.onResize(y()+w)}},_.P("div",{class:_.sZ("ytdMiniplayerComponentResizerCorner",(c.ytdMiniplayerComponentResizerNorthCorner=F==="north",c.ytdMiniplayerComponentResizerEastCorner=F==="east",c.ytdMiniplayerComponentResizerSouthCorner=F==="south",c.ytdMiniplayerComponentResizerWestCorner=F==="west",c))}))};
return _.P("div",{class:"ytdMiniplayerComponentResizers"},C("north"),C("east"),C("south"),C("west"))},"Wf");var MDY=16/9,IyH=_.BO(function(){var I=_.Es(),C=_.T(_.c4(new _.y6(NaN,NaN),void 0,"yxHohf")),y=C.next().value,k=C.next().value;C=_.T(_.c4(!1,void 0,"ku1l7c"));var F=C.next().value,z=C.next().value;C=_.T(_.c4(!1,void 0,"pbOm3b"));var c=C.next().value,r=C.next().value;C=_.T(_.c4(!1,void 0,"LqfsYc"));var w=C.next().value,L=C.next().value;C=_.T(_.c4(!1,void 0,"wYZnZe"));var D=C.next().value,p=C.next().value;C=_.T(_.c4(!1,void 0,"KVndGb"));var Q=C.next().value,X=C.next().value;C=_.T(_.c4(!1,void 0,"ofTiZe"));
var b=C.next().value,S=C.next().value;C=_.T(_.c4(MDY,void 0,"bpheWd"));var A=C.next().value,x=C.next().value,B=_.T(_.c4(!1,void 0,"MIV0Jb"));C=B.next().value;var t=B.next().value;B=_.T(_.c4(!1,void 0,"Y2idSc"));var U=B.next().value,yW=B.next().value;B=_.T(_.c4(void 0,void 0,"IuZWBb"));var a=B.next().value,cs=B.next().value;B=_.T(_.c4(_.Aq("HTML_DIR")==="rtl"?"west":"east",void 0,"nLgCTd"));var XO=B.next().value,Rm=B.next().value;B=_.T(_.c4("south",void 0,"mV91if"));var $z=B.next().value,hX=B.next().value;
B=_.T(_.c4(400,void 0,"OwmImd"));var vs=B.next().value,mY=B.next().value,Bs=_.N().resolve(_.WJ).miniplayerPropSignalMap[0],n5=Bs.data,sH=Bs.externalPlaylistData;B=Bs.toastData;var Zt=Bs.playabilityStatus,Qd=Bs.isDisabled,OF=Bs.watchWhile;Bs=_.T(_.TN(Bs.isReadyToResume));var Rw=Bs.next().value,ku=Bs.next().value,xK;_.RU(function(){k(_.np());I.value.addEventListener("animationend",function(wS){wS.target===I.value&&(X(!1),S(!1))})});
_.BH("yt-window-resized",function(wS){wS&&k(wS)});
var yf=function(){xK&&x(xK.getVideoAspectRatio())},uK=function(){if(xK){var wS=xK.getPlayerState()===1;
Rw()&&wS&&ku(!1)}};
_.BH("yt-activate-miniplayer",function(wS){var Ws;return _.e(function(i8){if(i8.nextAddress==1)return F()?i8.return():_.n(i8,(Ws=_.N().resolve(_.WJ).getPlayerElement())==null?void 0:Ws.getPlayerPromise(),2);xK=i8.yieldResult;if(!xK)return i8.return();!U()&&_.V("kevlar_watch_while_v2")&&(hX(wS&&!_.V("kevlar_watch_while_bottom_align")?"north":"south"),Rm(_.Aq("HTML_DIR")==="rtl"?"west":"east"));var l8=xK;l8.addEventListener("onVideoDataChange",yf);l8.addEventListener("onStateChange",uK);x(xK.getVideoAspectRatio());
z(!0);X(!0);_.oI(i8)})});
_.BH("yt-deactivate-miniplayer",function(wS){return _.e(function(Ws){z(!1);ku(!1);S(wS);X(!0);if(xK){var i8=xK;i8.removeEventListener("onVideoDataChange",yf);i8.removeEventListener("onStateChange",uK)}_.oI(Ws)})});
var oL=function(){var wS=!!n5(),Ws=Q(),i8=OF();return(i8===void 0?0:i8)&&_.V("kevlar_watch_while_modern")?!1:wS||Ws},Uw=function(){var wS;
return!((wS=sH())==null||!wS.contents)},TR=function(){var wS=vs();
var Ws=y();Ws=Math.min(Math.min(Ws.width,Ws.height)-32,720);var i8=A(),l8=oL(),bj=Uw()&&c(),K5=Math.min(wS,Ws);wS=new _.y6(192,l8?116:192);i8=lBy(new _.y6(bj?MDY:i8,1),new _.y6(K5,l8?K5-76:K5));wS.width<=i8.width&&wS.height<=i8.height||(jHP(i8,wS),i8.width=Math.min(i8.width,Ws),i8.height=Math.min(i8.height,Ws));return new _.y6(i8.width,_.St(192,i8.height+E38(l8,bj),720))},G0=function(){var wS=TR(),Ws=oL(),i8=Uw()&&c();
return new _.y6(wS.width,wS.height-E38(Ws,i8))},hc=function(){var wS=function(Ws){Ws.target===I.value&&D()&&(p(!1),I.value.removeEventListener("transitionend",wS))};
I.value.addEventListener("transitionend",wS);p(!0);r(!c())};
Bs={};return _.P("ytd-miniplayer",{el:I,class:_.sZ("ytdMiniplayerComponentHost",(Bs.ytdMiniplayerComponentVisible=function(){return F()||Q()},Bs.ytdMiniplayerComponentAnimatingSnap=w,Bs.ytdMiniplayerComponentAnimatingPlaylistExpand=D,Bs.ytdMiniplayerComponentAnimatingFade=Q,Bs),function(){if(Q()){var wS=$z();
var Ws=F(),i8=b();wS=Ws?wS==="south"?"ytdMiniplayerComponentAnimatingFadeInSouth":"ytdMiniplayerComponentAnimatingFadeInNorth":i8?wS==="south"?"ytdMiniplayerComponentAnimatingFadeOutNorth":"ytdMiniplayerComponentAnimatingFadeOutSouth":wS==="south"?"ytdMiniplayerComponentAnimatingFadeOutSouth":"ytdMiniplayerComponentAnimatingFadeOutNorth"}else wS="";return wS}),
style:_.cP({top:function(){return $z()==="north"?"16px":""},
right:function(){return XO()==="east"?"16px":""},
bottom:function(){return $z()==="south"?"16px":""},
left:function(){return XO()==="west"?"16px":""},
width:function(){return TR().width+"px"},
height:function(){return TR().height+"px"},
transform:function(){var wS=a();return wS?"translate("+wS.x+"px, "+wS.y+"px)":""}})},_.P("div",{class:"ytdMiniplayerComponentContent"},_.P(OXK,{allowClicks:!0,
className:"ytdMiniplayerComponentDraggable",onDragStart:function(wS){var Ws=B9M(XO(),$z(),y(),TR(),a()),i8=G0();Math.abs(wS.clientY-(Ws.y+i8.height))>15?t(!0):wS.preventDefault()},
onDrag:function(wS){cs(wS)},
onDragEnd:function(){var wS=qNR(B9M(XO(),$z(),y(),TR(),a()),y(),TR()),Ws=ZAR(XO(),$z(),y(),TR()),i8=ZAR(wS.horizontalAlignment,wS.verticalAlignment,y(),TR());i8=new _.Q6(i8.x-Ws.x,i8.y-Ws.y);var l8;Ws=Ws.y+(((l8=a())==null?void 0:l8.y)||0)+TR().height/2;var bj=function(){XO()===wS.horizontalAlignment&&$z()===wS.verticalAlignment||yW(!0);Rm(wS.horizontalAlignment);hX(wS.verticalAlignment);cs(void 0)},K5=function(ZS){ZS.target===I.value&&w()&&(L(!1),bj(),I.value.removeEventListener("transitionend",
K5))};
t(!1);$z()==="south"&&Ws>y().height?(bj(),_.N().resolve(_.WJ).close()):(I.value.addEventListener("transitionend",K5),L(!0),cs(i8))}},_.P(_.Dx,{cond:F,
then:function(){return _.P(_.nGL,{isDisabled:Qd,playabilityStatus:Zt,size:G0})}}),_.P(_.Dx,{cond:oL,
then:function(){return _.P(_.i2R,{isReadyToResume:Rw,data:n5,expanded:c,onExpandClick:hc,playlistData:sH})}}),_.P(_.Dx,{cond:C,
then:function(){return _.P("div",{class:"ytdMiniplayerComponentDraggableDragCover"})}})),_.P(_.Dx,{cond:function(){return Uw()&&c()||D()},
then:function(){return _.P(_.mt8,{className:"ytdMiniplayerComponentPlaylistPanel",data:sH,hideHeaderText:!0,withinMiniplayer:!0})}}),_.P("div",{class:"ytdMiniplayerComponentToast"},_.P(_.P7H,{toastData:B}))),_.P(abL,{onResize:function(wS){mY(_.St(192,wS,720))},
currentAspectRatio:A,currentMiniplayerSize:vs,horizontalAlignment:XO,verticalAlignment:$z}))},"Xf");_.V("ytd_miniplayer_to_wiz")&&_.B9(IyH,"ytd-miniplayer",{});_.B9(_.P7H,"ytd-miniplayer-toast",{props:{toastData:_.As}});var CZR=16/9,ssL=new _.y6(400,400/CZR),qv=function(){var I=_.q.apply(this,arguments)||this;I.active=!1;I.hasNoData=!1;I.enabled=!1;I.expanded=!1;I.readyToResume=!1;I.isDisabled=!1;I.externalPlaylistData={};I.premiumBadges=[];I.watchWhile=!1;I.playerState=null;I.verticalAttachment="south";I.horizontalAttachment=_.Aq("HTML_DIR")==="rtl"?"west":"east";I.isAnimatingFade=!1;I.isAnimatingSnap=!1;I.isAnimatingExpand=!1;I.isDragging=!1;I.playerHidden=!1;I.hasPlaylistData=!1;I.closed=!1;I.expandedClosed=!1;
I.isForReadyToResume=!1;I.watchResponse=null;I.player=null;I.playerVe=null;I.expandVe=null;I.closeVe=null;I.readyToResumeCloseVe=null;I.disabledInitialStateIsPlaying=!1;I.PLAYER_EVENTS=new Map;I.aspectRatio=CZR;I.currentMiniplayerSize=400;I.userSetSize=!1;I.userSetPosition=!1;I.userHasDragged=!1;I.maxMiniplayerSize=720;I.transform=new _.Q6(0,0);I.windowDimensions=new _.y6(NaN,NaN);I.dimensions=ssL;I.screenLayer=3;I.actionMap={"yt-activate-miniplayer-action":"activate","yt-deactivate-miniplayer-action":"deactivate",
"yt-window-resized":"onWindowResized"};return I};
_.R(qv,_.q);_.u=qv.prototype;_.u.created=function(){this.PLAYER_EVENTS.set("onVideoDataChange",this.onPlayerVideoDataChange);this.PLAYER_EVENTS.set("onCloseMiniplayer",this.onPlayerCloseMiniplayer);this.PLAYER_EVENTS.set("onExpandMiniplayer",this.onPlayerExpandMiniplayer);this.PLAYER_EVENTS.set("onStateChange",this.onPlayerStateChange);this.registerViewTransitionTasks()};
_.u.ready=function(){this.setUpDragging();this.setUpResizing()};
_.u.attached=function(){this.onWindowResized(_.np());this.hostElement.addEventListener("animationend",_.sb(this,this.resetFadingAnimation))};
_.u.detached=function(){this.hostElement.removeEventListener("animationend",_.sb(this,this.resetFadingAnimation))};
_.u.resetFadingAnimation=function(I){I.target===this.hostElement&&(this.isAnimatingFade=!1)};
_.u.hasPlaylistDataChanged=function(){!this.hasPlaylistData&&this.expanded&&(this.expanded=!1);this.updateDimensionsAndResize()};
_.u.onPlayerVeChange=function(){this.playerVe&&this.logMiniplayer()};
_.u.premiumBrandingChanged=function(){if(this.premiumBranding){this.readyToResume=this.isForReadyToResume=!0;var I=_.Si(this.screenLayer);this.readyToResumeCloseVe&&I&&_.Z0(I,[this.readyToResumeCloseVe]);this.set("premiumBadges",[{metadataBadgeRenderer:{icon:{iconType:"PREMIUM_STANDALONE_CAIRO"}}}])}};
_.u.readyToResumeVeChanged=function(){if(this.readyToResumeVe){var I=_.Si(0),C=_.fq(0);I&&C&&(_.q1(I,C,this.readyToResumeVe),_.Z0(I,[this.readyToResumeVe]))}};
_.u.onIsDisabledChanged=function(){if(this.isDisabled&&this.player){var I=this.player.getPlayerState();(this.disabledInitialStateIsPlaying=I===-1||I===1||I===3)&&this.player.pauseVideo()}};
_.u.activate=function(I,C){C=C===void 0?!1:C;var y=this,k;return _.e(function(F){if(F.nextAddress==1)return y.setInitialActivatePositioning(C),y.enabled=!0,y.active=!0,y.expanded=!1,y.closed=!1,y.expandedClosed=!1,y.watchWhileHidden||(y.isAnimatingFade=!0),_.N().resolve(_.Gk).setPlaylistComponent(y.JSC$17664_playlistPanel),I.appendTo(y.playerContainer),_.n(F,I.getPlayerPromise(),2);k=F.yieldResult;k.setSizeStyle(!1,!0);y.ytPlayerListenerBehavior.listenToPlayerEvents(k,y.PLAYER_EVENTS);y.player=k;
y.watchWhile&&_.V("kevlar_watch_while_minimum_size")&&y.setMiniplayerSize(192);y.setAspectRatio(y.player.getVideoAspectRatio());y.onIsDisabledChanged();_.oI(F)})};
_.u.setInitialActivatePositioning=function(I){if(!this.userSetPosition&&_.V("kevlar_watch_while_v2")){this.verticalAttachment=I&&!_.V("kevlar_watch_while_bottom_align")?"north":"south";this.horizontalAttachment=_.Aq("HTML_DIR")==="rtl"?"west":"east";var C;(C=this.JSC$17664_resizers)==null||C.update(this.horizontalAttachment,this.verticalAttachment)}};
_.u.deactivate=function(I,C){var y=this;return _.e(function(k){if(!y.active)return k.return();I||(y.expanded?y.expandedClosed=!0:y.closed=!0);y.active=!1;y.isForReadyToResume=!1;C&&_.V("kevlar_watch_while_counterfactual")||(y.isAnimatingFade=!0);y.player&&y.ytPlayerListenerBehavior.unlistenFromPlayerEvents(y.player,y.PLAYER_EVENTS);y.player=null;_.oI(k)})};
_.u.onMetadataTap=function(I){this.expandVe&&(I===void 0||I)&&(I=_.Si(this.screenLayer))&&_.EN(I,this.expandVe);_.rM(_.N().resolve(_.WJ))};
_.u.onDisabledTap=function(I){I.target===_.f(this.hostElement).querySelector("#blocking-container")&&(this.disabledInitialStateIsPlaying&&this.player.playVideo(),this.onMetadataTap())};
_.u.onPlaylistExpandTap=function(I){if(this.hasPlaylistData){I=_.qc(I)||[];I=_.T(I);for(var C=I.next();!C.done;C=I.next()){C=C.value;if(C===this.hostElement)break;if(C.classList&&C.classList.contains("miniplayer-title"))return}this.playlistExpand()}};
_.u.playlistExpand=function(){this.hostElement.addEventListener("transitionend",_.sb(this,this.animatedResizePlaylist));this.isAnimatingExpand=!0;this.ytRendererBehavior.markDirty();this.expanded=!this.expanded;this.updateDimensionsAndResize()};
_.u.animatedResizePlaylist=function(I){I.target===this.hostElement&&(this.isAnimatingExpand=!1,this.hostElement.removeEventListener("transitionend",_.sb(this,this.animatedResizePlaylist)))};
_.u.getExpandIcon=function(I){return I?"miniplayer:keyboard-arrow-down":"miniplayer:keyboard-arrow-up"};
_.u.onPlayerVideoDataChange=function(){var I,C=(I=this.player)==null?void 0:I.getVideoAspectRatio();C&&C!==this.aspectRatio&&this.setAspectRatio(C)};
_.u.setAspectRatio=function(I){if(this.active){this.aspectRatio=I;this.updateDimensionsAndResize();var C;(C=this.JSC$17664_resizers)==null||C.setAspectRatio(I)}};
_.u.updateDimensionsAndResize=function(){var I=Math.min(this.currentMiniplayerSize,this.maxMiniplayerSize),C=this.expanded?CZR:this.aspectRatio,y=new _.y6(192,this.showInfoBar?116:192);I=lBy(new _.y6(C,1),new _.y6(I,this.showInfoBar?I-76:I));y.width<=I.width&&y.height<=I.height||(jHP(I,y),I.width=Math.min(I.width,this.maxMiniplayerSize),I.height=Math.min(I.height,this.maxMiniplayerSize),this.setMiniplayerSize(this.showInfoBar&&C<=1?Math.max(I.width,I.height)+76:Math.max(I.width,I.height)));this.dimensions=
new _.y6(I.width,this.clamp(I.height+this.getNonPlayerHeight()));this.resize()};
_.u.resize=function(){this.hostElement.style.width=this.dimensions.width+"px";this.hostElement.style.height=this.dimensions.height+"px";var I=this.getPlayerSize(this.dimensions);this.playerContainer.style.height=I.height+"px";var C;(C=this.player)==null||C.setInternalSize(I.width,I.height)};
_.u.getPlayerSize=function(I){var C=Math.max(0,I.height-this.getNonPlayerHeight());return new _.y6(I.width,C)};
_.u.getNonPlayerHeight=function(){var I=0;this.showInfoBar&&(I+=76);this.expanded&&(I+=285);return I};
_.u.onDisabledCloseMiniplayer=function(){this.logClosingClick();_.N().resolve(_.WJ).close()};
_.u.onPlayerCloseMiniplayer=function(){this.logClosingClick()};
_.u.logClosingClick=function(){this.closeVe&&_.EN(_.Si(this.screenLayer),this.closeVe);this.isForReadyToResume&&this.readyToResumeCloseVe&&_.EN(_.Si(this.screenLayer),this.readyToResumeCloseVe)};
_.u.onPlayerExpandMiniplayer=function(){if(this.expandVe){var I=_.Si(this.screenLayer);I&&_.EN(I,this.expandVe)}};
_.u.onPlayerStateChange=function(){if(this.player){this.playerState=this.player.getPlayerState();var I=this.playerState===1;this.continueWatching&&I&&(this.continueWatching=!1);this.premiumBadges.length&&I&&(this.set("premiumBadges",[]),this.readyToResume=this.premiumBranding=!1,this.updateDimensionsAndResize())}};
_.u.getScreenLayer=function(){return this.screenLayer};
_.u.logMiniplayer=function(){var I=_.Si(this.screenLayer),C=_.fq(this.screenLayer);I&&C&&this.playerVe&&(_.q1(I,C,this.playerVe),this.expandVe&&this.closeVe&&this.readyToResumeCloseVe&&(_.m5(I,this.playerVe,[this.expandVe,this.closeVe,this.readyToResumeCloseVe]),_.Z0(I,[this.expandVe,this.closeVe])),this.repositionVe&&this.resizeVe&&_.m5(I,this.playerVe,[this.repositionVe,this.resizeVe]))};
_.u.computePlaylistData=function(I,C){return C};
_.u.computeHasPlaylistData=function(){return!!this.playlistData&&!!this.playlistData.contents};
_.u.computeExpandButtonHidden=function(I,C,y){return!I||!C||y};
_.u.computePlaylistIndexHidden=function(I,C){return!I||C};
_.u.computePlaylistPanelHidden=function(I,C){return!C&&!I};
_.u.computeExpandButtonLabel=function(I){return I?_.PQ("MINIPLAYER_COLLAPSE_LABEL"):_.PQ("MINIPLAYER_EXPAND_LABEL")};
_.u.computeDisabledStateCloseButtonLabel=function(){return _.PQ("MINIPLAYER_CLOSE",void 0,"Close")};
_.u.onWindowResized=function(I){I&&(I=this.windowDimensions=I,this.maxMiniplayerSize=Math.min(Math.min(I.width,I.height)-32,720),this.updateDimensionsAndResize())};
_.u.setUpResizing=function(){var I=this;this.JSC$17664_resizers||(this.JSC$17664_resizers=new xP(this.JSC$17664_resizeContainer,{onStartResize:function(){I.handleResizeStart()},
onResize:function(C){I.handleResize(C)}}),this.JSC$17664_resizers.setSize(this.currentMiniplayerSize),this.JSC$17664_resizers.update(this.horizontalAttachment,this.verticalAttachment))};
_.u.handleResizeStart=function(){var I=_.Si(this.screenLayer);this.userSetSize||(this.userSetSize=!0,I&&this.resizeVe&&_.Z0(I,[this.resizeVe]));I&&this.resizeVe&&_.EN(I,this.resizeVe)};
_.u.handleResize=function(I){this.setMiniplayerSize(I);this.updateDimensionsAndResize()};
_.u.setUpDragging=function(){var I=this;this.JSC$17664_dragger||(this.JSC$17664_dragger=new d6(this.draggableContainer,{onStartDrag:function(C){!I.isSafeToDrag(C)||I.isAnimatingSnap?C.preventDefault():I.handleDragStart()},
onDrag:function(C){I.transform=C;I.setTransform(I.transform)},
onEndDrag:function(){I.handleDragEnd()}},!0))};
_.u.handleDragStart=function(){this.isDragging=!0;var I=_.Si(this.screenLayer);this.userHasDragged||(this.userHasDragged=!0,I&&this.repositionVe&&_.Z0(I,[this.repositionVe]));I&&this.repositionVe&&_.EN(I,this.repositionVe)};
_.u.handleDragEnd=function(){this.isDragging=!1;var I=this.getCurrentGlobalPosition().y+this.dimensions.height/2;this.verticalAttachment==="south"&&I>this.windowDimensions.height&&_.N().resolve(_.WJ).close();this.animateSnapToCorner()};
_.u.animateSnapToCorner=function(){var I=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment),C=this.getNearestAttachments();C=this.getGlobalPositionFromAttachments(C.horizontalAttachment,C.verticalAttachment);I=new _.Q6(C.x-I.x,C.y-I.y);this.isAnimatingSnap=!0;this.setTransform(I);this.hostElement.addEventListener("transitionend",_.sb(this,this.endSnapAnimation))};
_.u.endSnapAnimation=function(I){I.target===this.hostElement&&this.isAnimatingSnap&&(this.hostElement.removeEventListener("transitionend",_.sb(this,this.endSnapAnimation)),this.endDrag())};
_.u.endDrag=function(){this.isAnimatingSnap=!1;this.updateAttachments();this.setTransform(null)};
_.u.setTransform=function(I){this.hostElement.style.transform=I?"translate("+I.x+"px, "+I.y+"px)":""};
_.u.getGlobalPositionFromAttachments=function(I,C){return new _.Q6(I==="west"?16:this.windowDimensions.width-this.dimensions.width-16,C==="north"?16:this.windowDimensions.height-this.dimensions.height-16)};
_.u.updateAttachments=function(){var I=this.getNearestAttachments();if(this.horizontalAttachment!==I.horizontalAttachment||this.verticalAttachment!==I.verticalAttachment)this.userSetPosition=!0;this.horizontalAttachment=I.horizontalAttachment;this.verticalAttachment=I.verticalAttachment;var C;(C=this.JSC$17664_resizers)==null||C.update(this.horizontalAttachment,this.verticalAttachment)};
_.u.getNearestAttachments=function(){var I=this.getCurrentGlobalPosition();return{horizontalAttachment:I.x+this.dimensions.width/2<this.windowDimensions.width/2?"west":"east",verticalAttachment:I.y+this.dimensions.height/2<this.windowDimensions.height/2?"north":"south"}};
_.u.getCurrentGlobalPosition=function(){var I=this.getGlobalPositionFromAttachments(this.horizontalAttachment,this.verticalAttachment);return m1B(I,this.transform)};
_.u.isSafeToDrag=function(I){var C=this.playerContainer.getBoundingClientRect();return Math.abs(I.clientY-(C.y+C.height))>15};
_.u.setMiniplayerSize=function(I){this.currentMiniplayerSize=this.clamp(I);var C;(C=this.JSC$17664_resizers)==null||C.setSize(this.currentMiniplayerSize)};
_.u.clamp=function(I){return _.St(192,I,720)};
_.u.registerViewTransitionTasks=function(){var I=this,C=_.N().resolve(_.aU(_.cTK));if(C){var y={beforeTransition:function(){I.hostElement&&(I.hostElement.style.viewTransitionName="miniplayer-page-transition")},
afterTransition:function(){I.hostElement&&(I.hostElement.style.viewTransitionName="")}};
uS(C,"slide",y);uS(C,"zoom",y)}};
_.H1.Object.defineProperties(qv.prototype,{showInfoBar:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile?!_.V("kevlar_watch_while_modern"):!0}},
showOverlayPremiumBadges:{configurable:!0,enumerable:!0,get:function(){return!this.showInfoBar&&!!this.premiumBadges.length}},
miniplayerSubtitle:{configurable:!0,enumerable:!0,get:function(){if(this.continueWatching)return{simpleText:_.PQ("CONTINUE_WATCHING",void 0,"Continue watching")};var I;if((I=this.externalPlaylistData)==null?0:I.contents)return this.externalPlaylistData.titleText;var C;return(C=this.data)==null?void 0:C.miniplayerSubtitle}},
miniplayerTitle:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.externalPlaylistData)==null?0:I.contents){var C;return(C=_.OuH(this.externalPlaylistData))==null?void 0:C.title}var y;return(y=this.data)==null?void 0:y.miniplayerTitle}},
playlistIndexMessage:{configurable:!0,enumerable:!0,get:function(){var I,C,y,k;return((I=this.externalPlaylistData)==null?void 0:I.currentIndex)!==void 0&&((C=this.externalPlaylistData)==null?0:C.totalVideos)&&!((y=this.data)==null?0:(k=y.playlistData)==null?0:k.isCourse)?this.externalPlaylistData.currentIndex+1+" / "+this.externalPlaylistData.totalVideos:null}},
showErrorScreen:{configurable:!0,enumerable:!0,get:function(){return!!this.playabilityStatus&&!_.g_O(this.playabilityStatus)}},
watchWhileHidden:{configurable:!0,enumerable:!0,get:function(){return this.watchWhile&&_.V("kevlar_watch_while_counterfactual")}}});
qv.prototype.onIsDisabledChanged=qv.prototype.onIsDisabledChanged;qv.prototype.readyToResumeVeChanged=qv.prototype.readyToResumeVeChanged;qv.prototype.premiumBrandingChanged=qv.prototype.premiumBrandingChanged;qv.prototype.onPlayerVeChange=qv.prototype.onPlayerVeChange;qv.prototype.hasPlaylistDataChanged=qv.prototype.hasPlaylistDataChanged;_.E([_.g(_.gn.YtPlayerListenerBehavior),_.h("design:type",_.vw)],qv.prototype,"ytPlayerListenerBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],qv.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],qv.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],qv.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],qv.prototype,"ytdReduxBehavior",void 0);_.E([_.z$("#draggable"),_.h("design:type",HTMLDivElement)],qv.prototype,"draggableContainer",void 0);
_.E([_.z$("#resize-container"),_.h("design:type",HTMLDivElement)],qv.prototype,"JSC$17664_resizeContainer",void 0);_.E([_.z$("#video-container"),_.h("design:type",HTMLDivElement)],qv.prototype,"videoContainer",void 0);_.E([_.z$("#player-container"),_.h("design:type",HTMLDivElement)],qv.prototype,"playerContainer",void 0);_.E([_.z$("#playlist"),_.h("design:type",HTMLDivElement)],qv.prototype,"JSC$17664_playlistPanel",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"active",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"hasNoData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"enabled",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"expanded",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"readyToResume",void 0);
_.E([_.d(),_.h("design:type",Object)],qv.prototype,"isDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"externalPlaylistData",void 0);_.E([_.d(),_.h("design:type",Array)],qv.prototype,"premiumBadges",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"toastData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"watchWhile",void 0);_.E([_.d(),_.h("design:type",Boolean)],qv.prototype,"premiumBranding",void 0);
_.E([_.d(),_.h("design:type",Object)],qv.prototype,"playerState",void 0);_.E([_.d(),_.h("design:type",Boolean)],qv.prototype,"continueWatching",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],qv.prototype,"verticalAttachment",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],qv.prototype,"horizontalAttachment",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"isAnimatingFade",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"isAnimatingSnap",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"isAnimatingExpand",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"isDragging",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"playerHidden",void 0);
_.E([_.d({computed:"computePlaylistData(data.playlistData, externalPlaylistData)"}),_.h("design:type",Object)],qv.prototype,"playlistData",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHasPlaylistData(playlistData)"}),_.h("design:type",Object)],qv.prototype,"hasPlaylistData",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"closed",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],qv.prototype,"expandedClosed",void 0);
_.E([_.d({selector:_.cos}),_.h("design:type",Boolean)],qv.prototype,"isSingleOptionSurveyActive",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.fx}),_.h("design:type",Boolean)],qv.prototype,"isWatchPage",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("watchWhile"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"showInfoBar",null);_.E([_.v("premiumBadges","showInfoBar"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"showOverlayPremiumBadges",null);
_.E([_.d(),_.h("design:type",Object)],qv.prototype,"watchResponse",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"miniplayerRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"playabilityStatus",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"playerVe",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"expandVe",void 0);_.E([_.d(),_.h("design:type",Object)],qv.prototype,"closeVe",void 0);
_.E([_.d(),_.h("design:type",Object)],qv.prototype,"readyToResumeCloseVe",void 0);_.E([_.d(),_.h("design:type",_.G5)],qv.prototype,"readyToResumeVe",void 0);_.E([_.d(),_.h("design:type",_.G5)],qv.prototype,"resizeVe",void 0);_.E([_.d(),_.h("design:type",_.G5)],qv.prototype,"repositionVe",void 0);_.E([_.FI("hasPlaylistData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qv.prototype,"hasPlaylistDataChanged",null);
_.E([_.FI("playerVe"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qv.prototype,"onPlayerVeChange",null);_.E([_.FI("premiumBranding"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qv.prototype,"premiumBrandingChanged",null);_.E([_.FI("readyToResumeVe"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qv.prototype,"readyToResumeVeChanged",null);
_.E([_.FI("isDisabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],qv.prototype,"onIsDisabledChanged",null);_.E([_.v("continueWatching","data.miniplayerSubtitle","externalPlaylistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"miniplayerSubtitle",null);_.E([_.v("data.miniplayerTitle","externalPlaylistData"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"miniplayerTitle",null);
_.E([_.v("externalPlaylistData","continueWatching"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"playlistIndexMessage",null);_.E([_.d({reflectToAttribute:!0}),_.v("playabilityStatus"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"showErrorScreen",null);_.E([_.d({reflectToAttribute:!0}),_.v("watchWhile"),_.h("design:type",Object),_.h("design:paramtypes",[])],qv.prototype,"watchWhileHidden",null);
_.V("ytd_miniplayer_to_wiz")||_.Z(qv,"ytd-miniplayer",function(){if(Jmj===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-miniplayer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.main_desktop.player.ytd_miniplayer.ytd.miniplayer.view.transition.css.js,video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="blocking-container" hidden="[[!isDisabled]]" on-click="onDisabledTap" class="style-scope ytd-miniplayer">\n  <yt-icon-button aria-label$="[[computeDisabledStateCloseButtonLabel()]]" on-click="onDisabledCloseMiniplayer" class="style-scope ytd-miniplayer">\n    <yt-icon id="close-icon" icon="yt-icons:close" class="style-scope ytd-miniplayer"></yt-icon>\n  </yt-icon-button>\n</div>\n<div class="miniplayer style-scope ytd-miniplayer" role="dialog">\n  <div id="card" class="style-scope ytd-miniplayer">\n    <div id="draggable" class="style-scope ytd-miniplayer">\n      <div id="video-container" class="style-scope ytd-miniplayer">\n        <div id="player-container" class="style-scope ytd-miniplayer"></div>\n        <yt-playability-error-supported-renderers id="error-screen" compact="" data="[[playabilityStatus.errorScreen]]" hidden$="[[!showErrorScreen]]" reason="[[playabilityStatus.reason]]" status="[[playabilityStatus.status]]" class="style-scope ytd-miniplayer">\n        </yt-playability-error-supported-renderers>\n        <ytd-badge-supported-renderer class="premium-badges overlay style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!showOverlayPremiumBadges]]" overlay-premium="">\n        </ytd-badge-supported-renderer>\n        <yt-formatted-string id="card-owner-name" class="owner-name style-scope ytd-miniplayer" hidden="[[!showOverlayPremiumBadges]]" no-endpoints="" text="[[miniplayerSubtitle]]">\n        </yt-formatted-string>\n      </div>\n      <div id="info-bar" on-click="onPlaylistExpandTap" hidden="[[!showInfoBar]]" class="style-scope ytd-miniplayer">\n        <div class="metadata style-scope ytd-miniplayer">\n          <h1 aria-label$="[[getSimpleString(data.miniplayerTitle)]]" class="title meta style-scope ytd-miniplayer" hidden="[[!active]]" on-click="onMetadataTap" role="heading">\n            <yt-formatted-string class="miniplayer-title style-scope ytd-miniplayer" ellipsis-truncate="" text="[[miniplayerTitle]]">\n            </yt-formatted-string>\n          </h1>\n          <div class="channel style-scope ytd-miniplayer">\n            <ytd-badge-supported-renderer class="premium-badges style-scope ytd-miniplayer" badges="[[premiumBadges]]" hidden="[[!premiumBadges.length]]">\n            </ytd-badge-supported-renderer>\n            <yt-formatted-string id="owner-name" no-endpoints="" text="[[miniplayerSubtitle]]" class="style-scope ytd-miniplayer">\n            </yt-formatted-string>\n            <div class="index-message style-scope ytd-miniplayer" hidden="[[computePlaylistIndexHidden(playlistIndexMessage, readyToResume)]]">\n              <span class="text-divider style-scope ytd-miniplayer">\u2022</span>\n              <span class="style-scope ytd-miniplayer">[[playlistIndexMessage]]</span>\n            </div>\n          </div>\n        </div>\n        <div class="expander style-scope ytd-miniplayer" hidden="[[computeExpandButtonHidden(hasPlaylistData, active, isDisabled)]]">\n          <yt-icon-button label="[[computeExpandButtonLabel(expanded)]]" class="style-scope ytd-miniplayer">\n            <yt-icon icon="[[getExpandIcon(expanded)]]" class="style-scope ytd-miniplayer"></yt-icon>\n          </yt-icon-button>\n        </div>\n      </div>\n      <div class="dragging-cover style-scope ytd-miniplayer" hidden="[[!isDragging]]"></div>\n    </div>\n    <ytd-playlist-panel-renderer id="playlist" data="[[playlistData]]" hidden="[[computePlaylistPanelHidden(expanded, isAnimatingExpand)]]" hide-header-text="" within-miniplayer="" class="style-scope ytd-miniplayer">\n    </ytd-playlist-panel-renderer>\n    <div class="toast-container style-scope ytd-miniplayer">\n      <ytd-miniplayer-toast toast-data="[[toastData]]" class="style-scope ytd-miniplayer"></ytd-miniplayer-toast>\n    </div>\n  </div>\n  <div id="resize-container" aria-hidden="true" class="style-scope ytd-miniplayer">\n    \n    <div class="resizer style-scope ytd-miniplayer" alignment="north"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="east"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="south"><div class="corner style-scope ytd-miniplayer"></div></div>\n    <div class="resizer style-scope ytd-miniplayer" alignment="west"><div class="corner style-scope ytd-miniplayer"></div></div>\n  </div>\n</div>\n');
I.content.insertBefore(tDY().content.cloneNode(!0),I.content.firstChild);I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);Jmj=I}I=Jmj;return I},{mode:2});var oxR;var mS=function(){var I=_.q.apply(this,arguments)||this;I.useListItemStyles=_.V("web_list_item_style_for_menu_items");I.systemIcons=_.V("kevlar_system_icons");return I};
_.R(mS,_.q);_.u=mS.prototype;_.u.ready=function(){this.hostElement.addEventListener("tap",_.sb(this,this.onEndpointTapExtra))};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){var I;(I=_.f(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.u.onEndpointTapExtra=function(I){_.k3(this.hostElement,"iron-activate");var C=this.data.navigationEndpoint;C&&_.l(C,_.t$I)&&(I.stopPropagation(),_.cQ(this.hostElement,[C],this.hostElement))};
_.u.computeIcon=function(I){return I&&I.iconType?_.y5(I.iconType):""};
_.u.computeHasSeparator=function(){return!(!this.data||!this.data.hasSeparator)};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.CK(this.hostElement)};
mS.prototype.forceUpdateStylesOnLegacyBrowsers=mS.prototype.forceUpdateStylesOnLegacyBrowsers;mS.prototype.onFocus=mS.prototype.onFocus;_.E([_.g(_.vA),_.h("design:type",Object)],mS.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.E2e.YtConditionalRendererBehavior),_.h("design:type",Object)],mS.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],mS.prototype,"ytEndpointBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],mS.prototype,"data",void 0);_.E([_.d({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],mS.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],mS.prototype,"useIcons",void 0);_.E([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],mS.prototype,"hasSeparator",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mS.prototype,"useListItemStyles",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mS.prototype,"systemIcons",void 0);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mS.prototype,"onFocus",null);_.E([_.FI("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mS.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Z(mS,"ytd-menu-navigation-item-renderer",function(){if(oxR===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);oxR=I}I=oxR;return I},{mode:1});var yxR;var kWS=_.Ee(_.PQ("DOWNLOAD",{},"Download")),FBB=_.Ee(_.PQ("DELETE_FROM_DOWNLOADS",{},"Delete from downloads")),uwY=_.Ee(_.PQ("RETRY",{},"Retry")),zrR=_.Ee(_.PQ("PAUSE_DOWNLOADING",{},"Pause downloading")),TnK=_.Ee(_.PQ("RESUME_DOWNLOAD",{},"Resume download")),Zq=function(){var I=_.q.apply(this,arguments)||this;I.primaryText=kWS;I.primaryIconType="OFFLINE_DOWNLOAD";I.hasSecondaryContent=!1;I.hasSeparator=!1;I.transferState="TRANSFER_STATE_UNKNOWN";I.isVideoDeletedByUser=!1;I.isHidden=!1;I.offlineabilityState=
"ADD_TO_OFFLINE_BUTTON_STATE_ENABLED";return I};
_.R(Zq,_.q);_.u=Zq.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){this.primaryEntry.focus()};
_.u.onPrimaryClicked=function(){this.sendOfflineAction(this.primaryAction)};
_.u.onSecondaryClicked=function(){this.sendOfflineAction(this.secondaryAction)};
_.u.getRemoveAction=function(){return"ACTION_REMOVE"};
_.u.sendOfflineAction=function(I){var C=this.data.serviceEndpoint;if(C){var y=_.l(C,_.uY);y&&I&&(y.action=I);this.ytComponentBehavior.resolveCommand(C)}};
_.u.onTransferStateChange=function(){this.hasSecondaryContent=!1;this.secondaryAction=this.primaryAction=void 0;if(this.isVideoDeletedByUser)this.primaryText=kWS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD";else switch(this.transferState){case "TRANSFER_STATE_UNKNOWN":this.primaryText=kWS;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_ADD";break;case "TRANSFER_STATE_FAILED":case "TRANSFER_STATE_WAITING_FOR_PLAYER_RESPONSE_REFRESH":this.primaryText=uwY;
this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RETRY";this.secondaryText=FBB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_PAUSED_BY_USER":this.primaryText=TnK;this.primaryIconType="OFFLINE_DOWNLOAD";this.primaryAction="ACTION_RESUME";this.secondaryText=FBB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_TRANSFERRING":this.primaryText=
zrR;this.primaryIconType="OFFLINE_PAUSE";this.primaryAction="ACTION_PAUSE";this.secondaryText=FBB;this.secondaryIconType="DELETE";this.secondaryAction=this.getRemoveAction();this.hasSecondaryContent=!0;break;case "TRANSFER_STATE_COMPLETE":case "TRANSFER_STATE_TRANSFER_IN_QUEUE":this.primaryText=FBB;this.primaryIconType="DELETE";this.primaryAction=this.getRemoveAction();break;default:this.primaryText=kWS,this.primaryIconType="OFFLINE_DOWNLOAD",this.primaryAction="ACTION_ADD"}};
_.u.showHideButton=function(){this.isHidden=this.offlineabilityState!=="ADD_TO_OFFLINE_BUTTON_STATE_ENABLED"};
_.u.isSecondaryEntryHidden=function(I,C){return I?!0:!C};
_.u.computeHasSeparator=function(){var I;return!((I=this.data)==null||!I.hasSeparator)};
Zq.prototype.showHideButton=Zq.prototype.showHideButton;Zq.prototype.onTransferStateChange=Zq.prototype.onTransferStateChange;Zq.prototype.onFocus=Zq.prototype.onFocus;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Zq.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Zq.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Zq.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Zq.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Zq.prototype,"primaryText",void 0);_.E([_.d(),_.h("design:type",String)],Zq.prototype,"primaryIconType",void 0);_.E([_.d(),_.h("design:type",String)],Zq.prototype,"primaryAction",void 0);_.E([_.d(),_.h("design:type",Object)],Zq.prototype,"secondaryText",void 0);_.E([_.d(),_.h("design:type",String)],Zq.prototype,"secondaryIconType",void 0);
_.E([_.d(),_.h("design:type",String)],Zq.prototype,"secondaryAction",void 0);_.E([_.d(),_.h("design:type",Object)],Zq.prototype,"hasSecondaryContent",void 0);_.E([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Object)],Zq.prototype,"hasSeparator",void 0);_.E([_.d({selector:_.Kx,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",String)],Zq.prototype,"transferState",void 0);
_.E([_.d({selector:_.GXI,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],Zq.prototype,"isVideoDeletedByUser",void 0);_.E([_.d(),_.h("design:type",Object)],Zq.prototype,"isHidden",void 0);_.E([_.d({selector:_.lNK,selectorArgs:["data.serviceEndpoint.offlineVideoEndpoint.videoId"]}),_.h("design:type",Object)],Zq.prototype,"offlineabilityState",void 0);_.E([_.z$("#primary-entry"),_.h("design:type",Object)],Zq.prototype,"primaryEntry",void 0);
_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zq.prototype,"onFocus",null);_.E([_.rW("transferState","isVideoDeletedByUser"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zq.prototype,"onTransferStateChange",null);_.E([_.rW("offlineabilityState"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Zq.prototype,"showHideButton",null);
_.Z(Zq,"ytd-menu-service-item-download-renderer",function(){if(yxR===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);yxR=I}I=yxR;return I},{mode:1});var cxY;var BB=function(){var I=_.q.apply(this,arguments)||this;I.useIcons=!1;I.systemIcons=_.V("kevlar_system_icons");I.useListItemStyles=_.V("web_list_item_style_for_menu_items");return I};
_.R(BB,_.q);_.u=BB.prototype;_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menuitem")};
_.u.onFocus=function(){var I;(I=_.f(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.u.onTap=function(){_.uW(this.hostElement,"yt-menu-service-item-selected-action",[this.data]);var I=this.data.serviceEndpoint,C=this.data.command;if(I){var y,k=(y=this.data)==null?void 0:y.trackingParams;y=!!_.l(I,_.D7q);k&&y&&_.Hg().dispatch(_.yE({type:"SET_PARENT_CLICK_TRACKING_PARAMS",payload:{parentClickTrackingParams:k}}));this.ytComponentBehavior.resolveCommand(I)||_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}})}C&&(this.ytComponentBehavior.resolveCommand(C)||_.cQ(this.hostElement,
[C],this.hostElement))};
_.u.computeIcon=function(I){return I&&I.iconType?_.y5(I.iconType):""};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.computeHasSeparator=function(){var I;return!((I=this.data)==null||!I.hasSeparator)};
_.u.forceUpdateStylesOnLegacyBrowsers=function(){_.V("kevlar_legacy_browsers")&&_.CK(this.hostElement)};
_.u.computeIsSelected=function(){var I;return!((I=this.data)==null||!I.isSelected)};
BB.prototype.forceUpdateStylesOnLegacyBrowsers=BB.prototype.forceUpdateStylesOnLegacyBrowsers;BB.prototype.onTap=BB.prototype.onTap;BB.prototype.onFocus=BB.prototype.onFocus;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],BB.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],BB.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.E2e.YtConditionalRendererBehavior),_.h("design:type",Object)],BB.prototype,"ytConditionalRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],BB.prototype,"data",void 0);_.E([_.d({computed:"computeIcon(data.icon)",value:""}),_.h("design:type",String)],BB.prototype,"icon",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BB.prototype,"useIcons",void 0);
_.E([_.d({computed:"computeHasSeparator(data.hasSeparator)",reflectToAttribute:!0}),_.h("design:type",Boolean)],BB.prototype,"hasSeparator",void 0);_.E([_.d({computed:"computeIsSelected(data.isSelected)",reflectToAttribute:!0}),_.h("design:type",Boolean)],BB.prototype,"isSelected",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BB.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],BB.prototype,"useListItemStyles",void 0);
_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BB.prototype,"onFocus",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],BB.prototype,"onTap",null);_.E([_.FI("useIcons","hasSeparator"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BB.prototype,"forceUpdateStylesOnLegacyBrowsers",null);
_.Z(BB,"ytd-menu-service-item-renderer",function(){if(cxY===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);cxY=I}I=cxY;return I},{mode:2});var erS;var HB=function(){return _.q.apply(this,arguments)||this};
_.R(HB,_.q);_.u=HB.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onDataChanged=function(){var I=this;_.hn(this,function(){I.postbox.openDialog();I.focus();_.k3(I.hostElement,"yt-refit")})};
_.u.focus=function(){this.postbox.focus()};
_.u.closePopup=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
_.u.onYtCommentboxDismiss=function(){this.closePopup()};
HB.prototype.onYtCommentboxDismiss=HB.prototype.onYtCommentboxDismiss;HB.prototype.onDataChanged=HB.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HB.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],HB.prototype,"data",void 0);_.E([_.d({value:function(){return _.PQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],HB.prototype,"closeButtonAriaLabel",void 0);_.E([_.z$("#postbox"),_.h("design:type",Object)],HB.prototype,"postbox",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HB.prototype,"onDataChanged",null);_.E([_.km("yt-commentbox-dismiss"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HB.prototype,"onYtCommentboxDismiss",null);
HB=_.E([_.m({disableElementRegistration:!0,is:"ytd-backstage-post-dialog-popup-renderer"})],HB);
_.Z(HB,"ytd-backstage-post-dialog-popup-renderer",function(){if(erS!==void 0)return erS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return erS=I},{mode:1});var rxK;var tV=function(){return _.q.apply(this,arguments)||this};
_.R(tV,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tV.prototype,"data",void 0);tV=_.E([_.m({disableElementRegistration:!0,is:"ytd-sender-id-section-renderer"})],tV);
_.Z(tV,"ytd-sender-id-section-renderer",function(){if(rxK!==void 0)return rxK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return rxK=I},{mode:1});var iNj;var wwL;var nxK;var JV=function(){return _.q.apply(this,arguments)||this};
_.R(JV,_.q);JV.prototype.closePopup=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],JV.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],JV.prototype,"data",void 0);JV=_.E([_.lT({is:"yt-community-post-section-renderer",disableElementRegistration:!0})],JV);
_.Z(JV,"yt-community-post-section-renderer",function(){if(nxK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;wwL===void 0&&(wwL=document.createElement("template"));var k=wwL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);nxK=I}I=nxK;return I},{mode:2});var PZR;var LBB;var DfL;var pwL;var QsL;var NnP;var Oc=function(){return _.q.apply(this,arguments)||this};
_.R(Oc,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Oc.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Oc.prototype,"data",void 0);Oc=_.E([_.lT({is:"yt-share-start-time-with-context-renderer",disableElementRegistration:!0})],Oc);
_.Z(Oc,"yt-share-start-time-with-context-renderer",function(){if(NnP===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;QsL===void 0&&(QsL=document.createElement("template"));var k=QsL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);NnP=I}I=NnP;return I},{mode:2});var ak=function(){return _.q.apply(this,arguments)||this};
_.R(ak,_.q);ak.prototype.configureRendererStamper=function(){return{"data.subtitle":{id:"subtitle",mapping:{shareStartTimeWithContextRenderer:"yt-share-start-time-with-context-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ak.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ak.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ak.prototype,"data",void 0);ak=_.E([_.lT({is:"yt-share-panel-title-v15-renderer",disableElementRegistration:!0})],ak);
_.Z(ak,"yt-share-panel-title-v15-renderer",function(){if(pwL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;DfL===void 0&&(DfL=document.createElement("template"));var k=DfL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);pwL=I}I=pwL;return I},{mode:2});var Mv=function(){return _.q.apply(this,arguments)||this};
_.R(Mv,_.q);Mv.prototype.configureRendererStamper=function(){return{"data.title":{id:"title",mapping:{sharePanelTitleV15Renderer:"yt-share-panel-title-v15-renderer"}},"data.communityPost":{id:"community-post",mapping:{communityPostSectionRenderer:"yt-community-post-section-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Mv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Mv.prototype,"data",void 0);Mv=_.E([_.lT({is:"yt-share-panel-header-renderer",disableElementRegistration:!0})],Mv);
_.Z(Mv,"yt-share-panel-header-renderer",function(){if(LBB===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;PZR===void 0&&(PZR=document.createElement("template"));var k=PZR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);LBB=I}I=LBB;return I},{mode:2});var VHj;var jsR;var Iy=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-open-popup-action":"onOpen"};return I};
_.R(Iy,_.q);_.u=Iy.prototype;_.u.attached=function(){this.onOpen()};
_.u.updateTimeSecs=function(I){this.currentTimeSecs=I};
_.u.computeTimeString=function(I){I=I.toString();var C=Math.floor(Number(I)/3600),y=Math.floor(Number(I)%3600%60);return(C>0?C+":":"")+_.Id(Math.floor(Number(I)%3600/60),C>0?2:1)+":"+_.Id(y,2)};
_.u.computeTimeStringA11y=function(I){I=_.S2I({seconds:I});var C=I.hours===void 0?0:I.hours,y=I.minutes===void 0?0:I.minutes,k=I.seconds===void 0?0:I.seconds;I=[];if(C>0){var F=lvH().format({hours:C});if(!"be bg es et hu it ka lv pl pt-PT sl sq".split(" ").includes(_.Wg)||C>9999)F=F.replace(C.toString(),_.K_z(C)),_.Wg==="km"&&(F=F.replace(".",","));I.push(F)}y>0&&I.push(lvH().format({minutes:y}));k>0&&I.push(lvH().format({seconds:k}));C="be gu ja kk km ko mn ru tr uz zh-HK zh-TW".split(" ");y=_.Wg==
"am"?"{0}\u1363 ":_.Wg=="fa"?"{0}\u060c\u200f ":_.Wg=="my"?"{0} - ":_.Wg=="ne"?"{0},":_.Wg=="th"?"{0} ":_.Wg=="ur"?"{0}\u060c ":_.Wg=="ar"||_.Wg=="ar-XB"?"{0} \u0648":_.Wg=="ja"||_.Wg=="zh-CN"||_.Wg=="zh-HK"||_.Wg=="zh-TW"?"{0}\u3001":"{0}, ";k=_.Wg=="am"?"\u1363 ":_.Wg=="fa"?"\u060c\u200f ":_.Wg=="my"?" - ":_.Wg=="th"?" ":_.Wg=="ur"?"\u060c ":_.Wg=="ar"||_.Wg=="ar-XB"?" \u0648":_.Wg=="ja"||_.Wg=="zh-CN"||_.Wg=="zh-HK"||_.Wg=="zh-TW"?"\u3001":", ";F=_.Wg=="am"?" \u12a5\u1293 {0}":_.Wg=="as"?" \u0986\u09f0\u09c1 {0}":
_.Wg=="az"?" v\u0259 {0}":_.Wg=="bn"?" \u098f\u09ac\u0982 {0}":_.Wg=="cs"?" a\u00a0{0}":_.Wg=="de"?" und {0}":_.Wg=="el"?" \u03ba\u03b1\u03b9 {0}":_.Wg=="eu"?" eta {0}":_.Wg=="fa"?"\u060c \u0648 {0}":_.Wg=="fil"?", at {0}":_.Wg=="gu"?" \u0a85\u0aa8\u0ac7 {0}":_.Wg=="hi"?", \u0914\u0930 {0}":_.Wg=="hu"?" \u00e9s {0}":_.Wg=="hy"?" \u0587 {0}":_.Wg=="id"?", dan {0}":_.Wg=="iw"?" \u05d5-{0}":_.Wg=="ja"?"\u3001{0}":_.Wg=="ka"?" \u10d3\u10d0 {0}":_.Wg=="km"?" \u1793\u17b7\u1784 {0}":_.Wg=="kn"?", \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {0}":
_.Wg=="ko"?" \ubc0f {0}":_.Wg=="ky"?" \u0436\u0430\u043d\u0430 {0}":_.Wg=="lt"?" ir {0}":_.Wg=="lv"?" un {0}":_.Wg=="ml"?", {0} \u0d0e\u0d28\u0d4d\u0d28\u0d3f\u0d35":_.Wg=="mr"?" \u0906\u0923\u093f {0}":_.Wg=="ms"?" dan {0}":_.Wg=="my"?"\u1014\u103e\u1004\u1037\u103a {0}":_.Wg=="ne"?" \u0930 {0}":_.Wg=="or"?", \u0b13 {0}":_.Wg=="pa"?" \u0a05\u0a24\u0a47 {0}":_.Wg=="ro"?" \u0219i {0}":_.Wg=="si"?", \u0dc3\u0dc4 {0}":_.Wg=="sk"?" a {0}":_.Wg=="sl"?" in {0}":_.Wg=="sq"?" dhe {0}":_.Wg=="sv"?" och {0}":
_.Wg=="sw"?" na {0}":_.Wg=="ta"?" \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {0}":_.Wg=="te"?" \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {0}":_.Wg=="th"?" \u0e41\u0e25\u0e30{0}":_.Wg=="tr"?" ve {0}":_.Wg=="ur"?"\u060c \u0627\u0648\u0631 {0}":_.Wg=="uz"?" va {0}":_.Wg=="vi"?" v\u00e0 {0}":_.Wg=="zh-HK"?"\u53ca{0}":_.Wg=="zu"?", ne-{0}":_.Wg=="af"||_.Wg=="nl"?" en {0}":_.Wg=="ar"||_.Wg=="ar-XB"?" \u0648{0}":_.Wg=="be"||_.Wg=="uk"?" \u0456 {0}":_.Wg=="en-GB"||_.Wg=="en-IN"?" and {0}":_.Wg=="en"||_.Wg=="en-XA"?
", and {0}":_.Wg=="et"||_.Wg=="fi"?" ja {0}":_.Wg=="fr"||_.Wg=="fr-CA"?" et {0}":_.Wg=="zh-CN"||_.Wg=="zh-TW"?"\u548c{0}":_.Wg=="da"||_.Wg=="is"||_.Wg=="no"?" og {0}":_.Wg=="es"||_.Wg=="es-419"||_.Wg=="es-US"?" y {0}":_.Wg=="kk"||_.Wg=="lo"||_.Wg=="mn"?", {0}":_.Wg=="bg"||_.Wg=="mk"||_.Wg=="ru"||_.Wg=="sr"?" \u0438 {0}":_.Wg=="gl"||_.Wg=="it"||_.Wg=="pt-BR"||_.Wg=="pt-PT"?" e {0}":" i {0}";var z=_.Wg=="am"?"{0} \u12a5\u1293 {1}":_.Wg=="as"?"{0} \u0986\u09f0\u09c1 {1}":_.Wg=="az"?"{0} v\u0259 {1}":
_.Wg=="bn"?"{0} \u098f\u09ac\u0982 {1}":_.Wg=="de"?"{0} und {1}":_.Wg=="el"?"{0} \u03ba\u03b1\u03b9 {1}":_.Wg=="eu"?"{0} eta {1}":_.Wg=="fa"?"{0} \u0648 {1}":_.Wg=="fil"?"{0} at {1}":_.Wg=="gu"?"{0} \u0a85\u0aa8\u0ac7 {1}":_.Wg=="hi"?"{0} \u0914\u0930 {1}":_.Wg=="hu"?"{0} \u00e9s {1}":_.Wg=="hy"?"{0} \u0587 {1}":_.Wg=="iw"?"{0} \u05d5-{1}":_.Wg=="ja"?"{0}\u3001{1}":_.Wg=="ka"?"{0} \u10d3\u10d0 {1}":_.Wg=="kk"?"{0} \u0436\u04d9\u043d\u0435 {1}":_.Wg=="km"?"{0} \u1793\u17b7\u1784\u200b{1}":_.Wg=="kn"?
"{0} \u0cae\u0ca4\u0ccd\u0ca4\u0cc1 {1}":_.Wg=="ko"?"{0} \ubc0f {1}":_.Wg=="ky"?"{0} \u0436\u0430\u043d\u0430 {1}":_.Wg=="lo"?"{0} \u0ec1\u0ea5\u0eb0 {1}":_.Wg=="lt"?"{0} ir {1}":_.Wg=="lv"?"{0} un {1}":_.Wg=="ml"?"{0} \u0d15\u0d42\u0d1f\u0d3e\u0d24\u0d46 {1}":_.Wg=="mn"?"{0}, {1}":_.Wg=="mr"?"{0} \u0906\u0923\u093f {1}":_.Wg=="my"?"{0}\u1014\u103e\u1004\u1037\u103a {1}":_.Wg=="ne"?"{0} \u0930 {1}":_.Wg=="or"?"{0} \u0b13 {1}":_.Wg=="pa"?"{0} \u0a05\u0a24\u0a47 {1}":_.Wg=="ro"?"{0} \u0219i {1}":_.Wg==
"si"?"{0} \u0dc3\u0dc4 {1}":_.Wg=="sl"?"{0} in {1}":_.Wg=="sq"?"{0} dhe {1}":_.Wg=="sv"?"{0} och {1}":_.Wg=="sw"?"{0} na {1}":_.Wg=="ta"?"{0} \u0bae\u0bb1\u0bcd\u0bb1\u0bc1\u0bae\u0bcd {1}":_.Wg=="te"?"{0} \u0c2e\u0c30\u0c3f\u0c2f\u0c41 {1}":_.Wg=="th"?"{0}\u0e41\u0e25\u0e30{1}":_.Wg=="tr"?"{0} ve {1}":_.Wg=="ur"?"{0} \u0627\u0648\u0631 {1}":_.Wg=="uz"?"{0} va {1}":_.Wg=="vi"?"{0} v\u00e0 {1}":_.Wg=="zh-HK"?"{0}\u53ca{1}":_.Wg=="zu"?"{0} ne-{1}":_.Wg=="af"||_.Wg=="nl"?"{0} en {1}":_.Wg=="ar"||_.Wg==
"ar-XB"?"{0} \u0648{1}":_.Wg=="be"||_.Wg=="uk"?"{0} \u0456 {1}":_.Wg=="cs"||_.Wg=="sk"?"{0} a\u00a0{1}":_.Wg=="et"||_.Wg=="fi"?"{0} ja {1}":_.Wg=="fr"||_.Wg=="fr-CA"?"{0} et {1}":_.Wg=="id"||_.Wg=="ms"?"{0} dan {1}":_.Wg=="zh-CN"||_.Wg=="zh-TW"?"{0}\u548c{1}":_.Wg=="da"||_.Wg=="is"||_.Wg=="no"?"{0} og {1}":_.Wg=="es"||_.Wg=="es-419"||_.Wg=="es-US"?"{0} y {1}":_.Wg=="bg"||_.Wg=="mk"||_.Wg=="ru"||_.Wg=="sr"?"{0} \u0438 {1}":_.Wg=="en"||_.Wg=="en-GB"||_.Wg=="en-IN"||_.Wg=="en-XA"?"{0} and {1}":_.Wg==
"gl"||_.Wg=="it"||_.Wg=="pt-BR"||_.Wg=="pt-PT"?"{0} e {1}":"{0} i {1}";_.Wg==="sq"?(F=F.replace("dhe","e"),z=z.replace("dhe","e")):_.Wg==="th"?(k=k.replace("{0}"," {0}"),z=z.replace("{0}","{0} "),z=z.replace("{1}"," {1}")):_.Wg==="ne"?k=",":_.Wg==="zh-CN"?k="":C.includes(_.Wg)&&(k=" ");return I.length<2?I.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(_.Wg)?I.length===2?
z.replace("{0}",I[0]).replace("{1}",I[1]):y.replace("{0}",I[0])+I.slice(1,-1).join(k)+F.replace("{0}",I[I.length-1]):I.join(k)};
_.u.getTimeParam=function(){return hQj(this.timeString)};
_.u.onChangeStartAtCheckbox=function(){this.startAtTimestamp.disabled=!this.isStartAtChecked;this.setTimestamp();var I={checkboxData:{state:this.isStartAtChecked?"CHECKBOX_STATE_ON":"CHECKBOX_STATE_OFF"}},C;_.FV(_.e2(),(C=this.data)==null?void 0:C.trackingParams,I,7)};
_.u.onChangeStartAtTimestamp=function(){for(var I=this.startAtTimestamp.value.split(":"),C=0,y=1,k=I.length-1;k>=0;k--)C+=Number(I[k])*y,y*=60;this.updateTimeSecs(C);this.setTimestamp()};
_.u.onOpen=function(){var I=this;this.updateTimeSecs(0);this.isStartAtChecked=!1;var C=_.hU();C?C.getPlayerPromise().then(function(y){y=y.getCurrentTime();I.updateTimeSecs(y)}):VNR()&&this.updateTimeSecs(VNR())};
_.u.setTimestamp=function(){var I=Math.floor(this.currentTimeSecs);_.Fe(this.hostElement,"yt-share-panel-set-timestamp-action",[{isSet:this.isStartAtChecked&&!!I,timestamp:I||""}])};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Iy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Iy.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Iy.prototype,"data",void 0);_.E([_.d({value:!1,notify:!0}),_.h("design:type",Boolean)],Iy.prototype,"isStartAtChecked",void 0);_.E([_.d(),_.h("design:type",Number)],Iy.prototype,"currentTimeSecs",void 0);
_.E([_.d({computed:"computeTimeString(currentTimeSecs)"}),_.h("design:type",String)],Iy.prototype,"timeString",void 0);_.E([_.d({computed:"computeTimeStringA11y(currentTimeSecs)"}),_.h("design:type",String)],Iy.prototype,"timeStringA11y",void 0);_.E([_.z$("#start-at-timestamp"),_.h("design:type",Object)],Iy.prototype,"startAtTimestamp",void 0);Iy=_.E([_.lT({is:"yt-start-at-renderer",disableElementRegistration:!0})],Iy);
_.Z(Iy,"yt-start-at-renderer",function(){if(jsR===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;VHj===void 0&&(VHj=document.createElement("template"));var k=VHj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);jsR=I}I=jsR;return I},{mode:2});var lyK;var XwB;var $fP=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"]]),RrP=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"]]),bNB=new Map([["ARROW_CHART_NEUTRAL","yt-icons:"],["OFFLINE_NO_CONTENT","offline-no-content:"],["YOUTUBE","yt-logos:"]]);var Y_y={};Y_y.YtBindingExpressionsBehavior={identity:_.gH,msg:function(I,C){C=C===void 0?{}:C;return _.PQ(I,C,I)},
msgPlural:function(I,C){return _.LA(I,C)},
getMusicIconFromType:function(I){if(_.V("music_web_enable_icon_wil"))I=_.y5(I);else if(RrP.has(I))I="yt-sys-icons:"+RrP.get(I);else{var C=$fP.get(I)||_.y5(I).split(":")[1];C=_.KTz(C);var y;I=((y=bNB.get(I))!=null?y:"yt-sys-icons:")+C}return I}};var GWM;var fyB;var S_R;var KBY=document.head,AxB=KBY.appendChild,gx8;if(S_R===void 0){var vxj=document.createElement("template");_.Y(vxj,'\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>');S_R=vxj}gx8=S_R;AxB.call(KBY,gx8.content);var CT=function(){var I=_.q.apply(this,arguments)||this;I.screenLayer=7;return I};
_.R(CT,_.q);CT.prototype.getScreenLayer=function(){return this.screenLayer};
CT.prototype.onTap=function(I){I&&I.detail&&(I.detail.x||I.detail.y)&&_.f(this.hostElement).querySelector("#target").blur();this.data.serviceEndpoint?_.Tg(this.hostElement,[this.data.serviceEndpoint]):this.data.navigationEndpoint&&(I=this.getScreenLayer(),_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint,createScreenConfig:{layer:I}}));this.data.onTapCommand&&this.ytComponentBehavior.resolveCommand(this.data.onTapCommand,{form:{createScreenConfig:{layer:this.getScreenLayer()}}})};
_.H1.Object.defineProperties(CT.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()}}});
CT.prototype.onTap=CT.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],CT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],CT.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CT.prototype,"data",void 0);_.E([_.v("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],CT.prototype,"title",null);
_.E([_.v("data.serviceName"),_.h("design:type",String),_.h("design:paramtypes",[])],CT.prototype,"icon",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],CT.prototype,"onTap",null);CT=_.E([_.lT({is:"yt-share-target-renderer",disableElementRegistration:!0})],CT);
_.Z(CT,"yt-share-target-renderer",function(){if(fyB===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:yt-share-target-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js,video.youtube.src.web.polymer.shared.ui.renderers.sharing.yt_share_target_renderer.yt.share.target.renderer.css.js--\x3e<button id="target" title="[[title]]" class="style-scope yt-share-target-renderer">\n  <yt-icon class="icon-resize style-scope yt-share-target-renderer" icon="[[icon]]"></yt-icon>\n  <div id="title" style-target="title" class="style-scope yt-share-target-renderer">[[title]]</div>\n</button>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;GWM===void 0&&(GWM=document.createElement("template"));var k=GWM;y.call(C,k.content.cloneNode(!0),I.content.firstChild);fyB=I}I=fyB;return I},{mode:2});var WBY;var dfK;var sy=function(){var I=_.q.apply(this,arguments)||this;I.SHARE_TARGET_WIDTH=70;I.SHARE_TARGET_MARGIN_RIGHT=8;I.PAGE_SCROLL_SPEED=9;I.actionMap={"yt-share-panel-reset-action":"onReset_"};return I};
_.R(sy,_.q);_.u=sy.prototype;_.u.configureRendererStamper=function(){return{"data.shareTargets":{id:"contents",mapping:{shareTargetRenderer:{component:"yt-share-target-renderer",attributes:{role:"button"}}}}}};
_.u.onDataChanged_=function(){this.data&&this.data.shareTargets&&(_.f(this.hostElement).querySelector("#scroll-button-back").hidden=!0,_.f(this.hostElement).querySelector("#scroll-button-forward").hidden=this.data.shareTargets.length<=6)};
_.u.onReset_=function(){if(_.f(this.hostElement).querySelector("#list")){var I=_.f(this.hostElement).querySelector("#list");var C=_.f(this.hostElement).querySelector("#list");var y=C.offsetLeft,k=C.offsetParent;k||_.sJq(C)!="fixed"||(k=_.V6(C).documentElement);if(k){if(_.u4&&!QHR(58)){var F=_.cTu(k);y+=F.left}else Number(_.clW)>=8&&!(Number(_.clW)>=9)&&(F=_.cTu(k),y-=F.left);C=_.zTd(k)?k.clientWidth-(y+C.offsetWidth):y}else C=y;pPY(I,C);this.updateScrollButtons_()}};
_.u.onScrollBack_=function(){this.smoothScrollByOnePage_(!1)};
_.u.onScrollForward_=function(){this.smoothScrollByOnePage_(!0)};
_.u.onScrollWheel_=function(I){I.stopPropagation();I.preventDefault();var C=D3S(_.f(this.hostElement).querySelector("#list"));I=Math.abs(I.deltaX)>Math.abs(I.deltaY)?I.deltaX:I.deltaY;pPY(_.f(this.hostElement).querySelector("#list"),C+I);this.updateScrollButtons_()};
_.u.smoothScrollByOnePage_=function(I){var C=_.f(this.hostElement).querySelector("#list"),y=(Math.floor(C.clientWidth/this.SHARE_TARGET_WIDTH)*(this.SHARE_TARGET_WIDTH+this.SHARE_TARGET_MARGIN_RIGHT)-this.SHARE_TARGET_MARGIN_RIGHT)/2,k=D3S(C),F=y*(I?1:-1),z=this.PAGE_SCROLL_SPEED,c=this.updateScrollButtons_.bind(this),r=0,w;(function D(){r+=z;w=r/y*2;pPY(C,k+F*(w<1?w*w:-w*w+4*w-2));r<y?window.requestAnimationFrame(D):c()})()};
_.u.updateScrollButtons_=function(){var I=D3S(_.f(this.hostElement).querySelector("#list")),C=_.f(this.hostElement).querySelector("#list").scrollWidth-_.f(this.hostElement).querySelector("#list").clientWidth;_.f(this.hostElement).querySelector("#scroll-button-back").hidden=I<=0;_.f(this.hostElement).querySelector("#scroll-button-forward").hidden=I>=C};
sy.prototype.onScrollWheel_=sy.prototype.onScrollWheel_;sy.prototype.onDataChanged_=sy.prototype.onDataChanged_;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],sy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],sy.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(Y_y.YtBindingExpressionsBehavior),_.h("design:type",Object)],sy.prototype,"ytBindingExpressionsBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sy.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sy.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sy.prototype,"onDataChanged_",null);_.E([_.km("wheel"),_.h("design:type",Function),_.h("design:paramtypes",[WheelEvent]),_.h("design:returntype")],sy.prototype,"onScrollWheel_",null);
sy=_.E([_.lT({is:"yt-third-party-share-target-section-renderer",disableElementRegistration:!0})],sy);
_.Z(sy,"yt-third-party-share-target-section-renderer",function(){if(dfK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;WBY===void 0&&(WBY=document.createElement("template"));var k=WBY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);dfK=I}I=dfK;return I},{mode:2});var oy=function(){return _.q.apply(this,arguments)||this};
_.R(oy,_.q);oy.prototype.configureRendererStamper=function(){return{"data.shareTargetContainer":{id:"share-targets",mapping:{thirdPartyShareTargetSectionRenderer:"yt-third-party-share-target-section-renderer"}},"data.copyLinkContainer":{id:"copy-link",mapping:{copyLinkRenderer:"yt-copy-link-renderer"}},"data.startAtContainer":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],oy.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],oy.prototype,"data",void 0);oy=_.E([_.lT({is:"yt-third-party-network-section-renderer",disableElementRegistration:!0})],oy);
_.Z(oy,"yt-third-party-network-section-renderer",function(){if(XwB===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;lyK===void 0&&(lyK=document.createElement("template"));var k=lyK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);XwB=I}I=XwB;return I},{mode:2});_.B9(_.BO(function(I){return _.P("first-party-network-section-view-model",{class:"ytwFirstPartyNetworkSectionViewModelHost"},_.P("div",{class:"ytwFirstPartyNetworkSectionViewModelfirstPartyItems"},_.P(_.lY,{data:function(){return I.data().firstPartyItems}},{listItemViewModel:_.LJ})))},"Yf"),"first-party-network-section-view-model",{props:{data:_.As}});var xfL=_.hu(["data:image/svg+xml;charset=UTF-8;base64,",""]),yH=function(){var I=_.q.apply(this,arguments)||this;I.screenLayer=7;I.qrCodeEnabled=_.V("web_enable_sharing_qr_code");I.actionMap={"yt-share-panel-set-timestamp-action":"handleSetTimestamp"};return I};
_.R(yH,_.q);_.u=yH.prototype;_.u.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"}}}};
_.u.attached=function(){this.JSC$17716_scroller&&(this.JSC$17716_scroller.dialogElement=this.hostElement.parentNode,this.JSC$17716_scroller.attached&&typeof this.JSC$17716_scroller.attached==="function"&&this.JSC$17716_scroller.attached(),this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true"))};
_.u.onDataChanged=function(){var I=this,C;(C=this.data)!=null&&C.contents&&(this.hostElement.setAttribute("links-only","true"),_.Mc(this.hostElement,"can-post",this.hasCommunityPostRenderer()),this.logSharePanelPage(),this.maybeRenderQrCode(this.shortUrl()),_.hn(this,function(){_.k3(I.hostElement,"yt-refit");I.focusSharePanelHeader()}))};
_.u.focusSharePanelHeader=function(){this.header&&(this.header.setAttribute("tabindex","-1"),this.header.focus())};
_.u.handleSetTimestamp=function(I){var C=this.shortUrl();I.isSet&&(C=_.Vx(C,"t",I.timestamp));this.maybeRenderQrCode(C)};
_.u.shortUrl=function(){var I,C=(I=this.data)==null?void 0:I.contents;if(C)for(I=0;I<C.length;I++){var y=void 0,k=void 0;if((y=C[I])==null?0:(k=y.thirdPartyNetworkSection)==null?0:k.copyLinkContainer){var F=k=y=void 0;return(F=_.l((y=C[I])==null?void 0:(k=y.thirdPartyNetworkSection)==null?void 0:k.copyLinkContainer,NkL))==null?void 0:F.shortUrl}}};
_.u.maybeRenderQrCode=function(I){var C=this,y,k,F,z,c,r,w,L,D;return _.e(function(p){if(p.nextAddress==1){y=_.f(C.hostElement).querySelector("#qr-code");if(!C.qrCodeEnabled||!I)return y&&(y.style.display="none"),p.return();k=_.Jyz(_.N().resolve(_.k$),{iconName:"youtube_logo_icon",iconStyle:"youtube_fill"});F=document.createElement("div");return typeof k==="function"?(k(F),p.jumpTo(2)):_.n(p,k,3)}p.nextAddress!=2&&(z=p.yieldResult,z(F));w=(c=F)==null?void 0:(r=c.firstChild)==null?void 0:r.firstChild;
L=document.createElement("img");D=_.na(xfL,btoa(w.outerHTML));L.onload=function(){var Q={canvas:y,cellStyle:1,backgroundColor:"white",borderRadius:30,color:"black",padding:10,width:256,logo:L},X=new h0R;a78(X,I);MsL(X,!1,ICR(X));var b=X.modules,S=Object.assign({},CpY,Q);b=structuredClone(b);Q=b.length;var A,x=(A=S.canvas)!=null?A:document.createElement("canvas");A=S.cellSize;X=S.logo;var B,t=(B=S.logoSize)!=null?B:Math.floor(Q/4);Q%2!==t%2&&t++;var U=S.logoPadding,yW=S.backgroundColor;B=Q*A;var a=
S.width,cs=0;a&&(cs=S.padding,cs=Math.ceil(cs*B/(a-cs*2)),x.style.width=a+"px",x.style.height=a+"px");x.width!==B+cs*2&&(x.width=B+cs*2);x.height!==B+cs*2&&(x.height=B+cs*2);B=x.getContext("2d");S.autoClear&&B.clearRect(0,0,x.width,x.height);B.fillStyle=yW;B.beginPath();B.roundRect(0,0,x.width,x.height,S.borderRadius);B.fill();B.save();B.translate(cs,cs);if(X)for(x=Math.floor(Q-t)/2-U,U=Math.floor(Q+t)/2+U,yW=x;yW<U;yW++)for(a=x;a<U;a++)b[yW][a]=!1;for(x=0;x<Q;x++)for(U=0;U<Q;U++)(x<7&&U<7||x<7&&
U>=Q-7||x>=Q-7&&U<7)&&(b[x][U]=!1);var XO;x=(XO=S.markerColor)!=null?XO:S.color;sCR(B,0,0,A,x);sCR(B,A*(Q-7),0,A,x);sCR(B,0,A*(Q-7),A,x);switch(S.cellStyle){case 0:XO=b;b=XO.length;x=S.cellSize;B.beginPath();for(U=0;U<b;U++)for(yW=0;yW<b;yW++)XO[U][yW]&&B.rect(U*x,yW*x,x,x);B.fillStyle=S.color;B.fill();break;case 1:XO=b;b=XO.length;x=S.cellSize;U=x*S.relativeCircleSize;B.fillStyle=S.color;B.beginPath();for(S=0;S<b;S++)for(yW=0;yW<b;yW++)XO[S][yW]&&(B.beginPath(),B.ellipse((S+.5)*x,(yW+.5)*x,U/2,U/
2,0,0,2*Math.PI),B.fill());B.fill();break;case 2:XO=b;b=XO.length;x=S.cellSize;B.fillStyle=S.color;S=[[1,1],[-1,1],[-1,-1],[1,-1]];B.beginPath();for(U=0;U<b;U++)for(yW=0;yW<b;yW++)if(XO[U][yW])B.roundRect(U*x,yW*x,x,x,x/2),U+1<b&&XO[U+1][yW]&&B.rect(U*x+x/2,yW*x,x,x),yW+1<b&&XO[U][yW+1]&&B.rect(U*x,yW*x+x/2,x,x);else{a=U*x+x/2;cs=yW*x+x/2;for(var Rm=0;Rm<4;Rm++){var $z=_.T(S[Rm]),hX=$z.next().value;$z=$z.next().value;U+hX>=0&&U+hX<b&&yW+$z>=0&&yW+$z<b&&XO[U+hX][yW]&&XO[U][yW+$z]&&XO[U+hX][yW+$z]&&
(hX=Rm*Math.PI/2,$z=x/2,B.moveTo(a+$z*Math.cos(hX),cs+$z*Math.sin(hX)),B.arc(a,cs,x/2,hX,hX+Math.PI/2,!1),B.lineTo(a+$z*(Math.cos(hX)-Math.sin(hX)),cs+$z*(Math.cos(hX)+Math.sin(hX))),B.lineTo(a+$z*Math.cos(hX),cs+$z*Math.sin(hX)))}}B.fill()}X&&B.drawImage(X,(Q-t)*A/2,(Q-t)*A/2,t*A,t*A);B.restore();y.style.removeProperty("display")};
L.src=_.zK(D);_.oI(p)})};
_.u.hasCommunityPostRenderer=function(){var I,C,y,k;return!!((I=this.data)==null?0:(C=I.header)==null?0:(y=C.sharePanelHeaderRenderer)==null?0:(k=y.communityPost)==null?0:k.communityPostSectionRenderer)};
_.u.onTapClose=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-unified-share-panel-renderer"])};
_.u.getScreenLayer=function(){return this.screenLayer};
_.u.logSharePanelPage=function(){if(!_.V("enable_share_panel_navigation_logging_fix_on_web")){var I;if((I=this.data)!=null&&I.trackingParams){I=this.data.trackingParams;var C=this.parentClickTrackingParams;C=C?_.nv(C):void 0;var y=_.e2();_.s7(y,21760,C,{layer:7,parentLayer:0});y.graftServerVe(I,void 0,7);_.Hg().dispatch(_.yE({type:"CLEAR_PARENT_CLICK_TRACKING_PARAMS"}))}}};
yH.prototype.onDataChanged=yH.prototype.onDataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yH.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],yH.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],yH.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],yH.prototype,"data",void 0);_.E([_.d({value:_.PQ("SBOX_INAPPROPRIATE_CANCEL")}),_.h("design:type",String)],yH.prototype,"closeButtonAriaLabel",void 0);_.E([_.z$("yt-share-panel-header-renderer"),_.h("design:type",HTMLElement)],yH.prototype,"header",void 0);_.E([_.d({selector:function(I){return I.share.parentClickTrackingParams}}),
_.h("design:type",String)],yH.prototype,"parentClickTrackingParams",void 0);_.E([_.d(),_.h("design:type",Object)],yH.prototype,"qrCodeEnabled",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],yH.prototype,"JSC$17716_scroller",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yH.prototype,"onDataChanged",null);yH=_.E([_.m({disableElementRegistration:!0,is:"ytd-unified-share-panel-renderer"})],yH);
_.Z(yH,"ytd-unified-share-panel-renderer",function(){if(iNj!==void 0)return iNj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return iNj=I},{mode:1});var q_K;var ki=function(){var I=_.q.apply(this,arguments)||this;I.modernModal=_.V("kevlar_sign_in_modal_modernization");return I};
_.R(ki,_.q);ki.prototype.attached=function(){this.hostElement.setAttribute("modal","true")};
ki.prototype.computeShouldHideOldButtons=function(){var I;return!((I=this.data)==null?0:I.button)};
_.H1.Object.defineProperties(ki.prototype,{buttonRendererData:{configurable:!0,enumerable:!0,get:function(){var I,C;if(this.modernModal&&((I=this.data)==null?0:(C=I.button)==null?0:C.buttonRenderer))return Object.assign({},this.data.button.buttonRenderer,{style:"STYLE_MONO_FILLED"});var y,k;return(y=this.data)==null?void 0:(k=y.button)==null?void 0:k.buttonRenderer}}});
_.E([_.d(),_.h("design:type",Object)],ki.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ki.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],ki.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ki.prototype,"modernModal",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],ki.prototype,"buttonRendererData",null);
ki=_.E([_.m({disableElementRegistration:!0,is:"ytd-modal-with-title-and-button-renderer"})],ki);
_.Z(ki,"ytd-modal-with-title-and-button-renderer",function(){if(q_K!==void 0)return q_K;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return q_K=I},{mode:1});var mfL;var Fu=function(){return _.q.apply(this,arguments)||this};
_.R(Fu,_.q);Fu.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("page-changed",this.page))};
Fu.prototype.pageChangedForBinding=Fu.prototype.pageChangedForBinding;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Fu.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Fu.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],Fu.prototype,"page",void 0);_.E([_.FI("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Fu.prototype,"pageChangedForBinding",null);
Fu=_.E([_.m({is:"ytd-account-item-section-header-renderer",disableElementRegistration:!0})],Fu);
_.Z(Fu,"ytd-account-item-section-header-renderer",function(){if(mfL!==void 0)return mfL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mfL=I},{mode:1});var ZNB;var ud=function(){return _.q.apply(this,arguments)||this};
_.R(ud,_.q);ud.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"}}}};
ud.prototype.configureContinuationPathMap=function(){return{"yt-append-continuation-items-action":"contents"}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ud.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ud.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],ud.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ud.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Function)],ud.prototype,"onAccountItemTap",void 0);
ud=_.E([_.m({is:"ytd-account-item-section-renderer",disableElementRegistration:!0})],ud);
_.Z(ud,"ytd-account-item-section-renderer",function(){if(ZNB!==void 0)return ZNB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZNB=I},{mode:1});var BnK;var ExP;var zH=function(){return _.q.apply(this,arguments)||this};
_.R(zH,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zH.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zH.prototype,"data",void 0);zH=_.E([_.m({is:"ytd-accounts-dialog-header-renderer",disableElementRegistration:!0})],zH);
_.Z(zH,"ytd-accounts-dialog-header-renderer",function(){if(ExP!==void 0)return ExP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ExP=I},{mode:1});var hrK;var TH=function(){return _.q.apply(this,arguments)||this};
_.R(TH,_.q);TH.prototype.configureRendererStamper=function(){return{"data.managedAccountDisclaimer":{id:"managedAccountDisclaimer",mapping:{compactLinkRenderer:"ytd-compact-link-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],TH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],TH.prototype,"data",void 0);TH=_.E([_.m({is:"ytd-google-account-header-renderer",disableElementRegistration:!0})],TH);
_.Z(TH,"ytd-google-account-header-renderer",function(){if(hrK!==void 0)return hrK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hrK=I},{mode:1});var c_=function(){return _.q.apply(this,arguments)||this};
_.R(c_,_.q);c_.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"}}}};
c_.prototype.pageChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("page-changed",this.page))};
c_.prototype.pageChangedForBinding=c_.prototype.pageChangedForBinding;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],c_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],c_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],c_.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],c_.prototype,"page",void 0);
_.E([_.FI("page"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],c_.prototype,"pageChangedForBinding",null);c_=_.E([_.m({is:"ytd-account-section-list-renderer",disableElementRegistration:!0})],c_);
_.MH()(c_,"ytd-account-section-list-renderer",function(){if(BnK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);BnK=I}I=BnK;return I},{allowedProps:["data"],
mode:1});var UfR;var e0=function(){var I=_.q.apply(this,arguments)||this;I.enableHandlesAccountMenuSwitcher=_.V("enable_handles_account_menu_switcher");return I};
_.R(e0,_.q);e0.prototype.dataChanged=function(){if(this.data)this.avatar.onShow()};
e0.prototype.dataChanged=e0.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],e0.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],e0.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],e0.prototype,"enableHandlesAccountMenuSwitcher",void 0);_.E([_.z$("#avatar"),_.h("design:type",Object)],e0.prototype,"avatar",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],e0.prototype,"dataChanged",null);e0=_.E([_.m({is:"ytd-active-account-header-renderer",disableElementRegistration:!0})],e0);
_.MH()(e0,"ytd-active-account-header-renderer",function(){if(UfR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);UfR=I}I=UfR;return I},{allowedProps:["data"],
mode:1});var HNR;var tHR;var rE=function(){return _.q.apply(this,arguments)||this};
_.R(rE,_.q);rE.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
rE.prototype.onBackTap=function(){_.k3(this.hostElement,"yt-menu-back-tapped")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rE.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rE.prototype,"data",void 0);rE=_.E([_.m({is:"ytd-simple-menu-header-renderer",disableElementRegistration:!0})],rE);
_.MH()(rE,"ytd-simple-menu-header-renderer",function(){if(tHR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);tHR=I}I=tHR;return I},{allowedProps:["data"],
mode:2});var JxM;var id=function(){return _.q.apply(this,arguments)||this};
_.R(id,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],id.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],id.prototype,"data",void 0);id=_.E([_.m({is:"ytd-comment-video-thumbnail-header-renderer",disableElementRegistration:!0})],id);
_.Z(id,"ytd-comment-video-thumbnail-header-renderer",function(){if(JxM!==void 0)return JxM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return JxM=I},{mode:1});var ONB;var wE=function(){return _.q.apply(this,arguments)||this};
_.R(wE,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wE.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],wE.prototype,"data",void 0);wE=_.E([_.m({is:"ytd-abuse-type-selector-renderer",disableElementRegistration:!0})],wE);
_.Z(wE,"ytd-abuse-type-selector-renderer",function(){if(ONB!==void 0)return ONB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ONB=I},{mode:1});var ayR;var nT=function(){return _.q.apply(this,arguments)||this};
_.R(nT,_.q);nT.prototype.attached=function(){var I=this;this.additionalContext=this.additionalContextRedux||"";requestAnimationFrame(function(){I.additionalContextInput.focusTextInput()})};
nT.prototype.handleAdditionalContextChanged=function(){var I=this;_.KK(this,"ytd-report-channel-additional-context-update",function(){I.ytdReduxBehavior.dispatch(_.yE({type:"ADDITIONAL_CONTEXT_UPDATED",payload:I.additionalContext}))},300)};
nT.prototype.updateAdditionalContextFromBinding=function(I){this.additionalContext=I.detail.value};
nT.prototype.handleAdditionalContextChanged=nT.prototype.handleAdditionalContextChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],nT.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",String)],nT.prototype,"additionalContext",void 0);_.E([_.d({selector:function(I){return I.reportChannelAbuse.additionalContext}}),
_.h("design:type",String)],nT.prototype,"additionalContextRedux",void 0);_.E([_.d(),_.h("design:type",Object)],nT.prototype,"data",void 0);_.E([_.z$("yt-text-input-form-field-renderer"),_.h("design:type",Object)],nT.prototype,"additionalContextInput",void 0);_.E([_.FI("additionalContext"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nT.prototype,"handleAdditionalContextChanged",null);
nT=_.E([_.m({is:"ytd-report-channel-modal-additional-context-renderer",disableElementRegistration:!0})],nT);
_.Z(nT,"ytd-report-channel-modal-additional-context-renderer",function(){if(ayR!==void 0)return ayR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ayR=I},{mode:1});var MHR;var P_=function(){var I=_.q.apply(this,arguments)||this;I.nextButtonDisabled=null;I.submitEndpoint=null;I.navigationEndpoint=null;I.actionMap={"yt-report-form-update":"handleReportFormEndpointUpdateAction","yt-signal-action-submit-form":"handleSignalActionSubmitForm","ytd-report-channel-modal-disable-next-button-action":"handleReportChannelModalDisableNextButtonAction"};return I};
_.R(P_,_.q);_.u=P_.prototype;_.u.computeNextButtonData=function(I,C,y){var k={};C&&(k.navigationEndpoint=C);y&&(k.serviceEndpoint=y);I&&I.buttonRenderer&&_.Le.extend(k,I.buttonRenderer);return k};
_.u.handleReportChannelModalDisableNextButtonAction=function(I){this.setNextButtonIsDisabled(I)};
_.u.handleReportFormEndpointUpdateAction=function(I){this.setNextButtonIsDisabled(!!I.disableSubmitButton);this.resetEndpointData();I.submitEndpoint?this.submitEndpoint=I.submitEndpoint:I.submitNavigationEndpoint&&(this.navigationEndpoint=I.submitNavigationEndpoint)};
_.u.handleSignalActionSubmitForm=function(){var I,C=Object.keys(((I=this.reportChannelAbuseForm)==null?void 0:I.selectedVideoIds)||{}),y;I=((y=this.reportChannelAbuseForm)==null?void 0:y.additionalContext)||"";var k;y=((k=this.reportChannelAbuseForm)==null?void 0:k.impersonatedChannelUrl)||"";var F;if((F=this.data)==null?0:F.submitEndpoint){C={impersonated_channel_url:y,text:I,video_ids:C};var z;_.N().resolve(_.ID).resolveCommand((z=this.data)==null?void 0:z.submitEndpoint,{form:Object.assign({},
C,{element:this.hostElement})})}this.setNextButtonIsDisabled(!0)};
_.u.onYtServiceRequestCompleted=function(){this.resetEndpointData()};
_.u.onYtServiceRequestError=function(I){this.setNextButtonIsDisabled(!1);_.ly(this.hostElement,I.detail.error.message)};
_.u.setNextButtonIsDisabled=function(I){this.set("data.nextButton.buttonRenderer.isDisabled",I)};
_.u.resetEndpointData=function(){this.submitEndpoint=this.navigationEndpoint=null};
P_.prototype.onYtServiceRequestError=P_.prototype.onYtServiceRequestError;P_.prototype.onYtServiceRequestCompleted=P_.prototype.onYtServiceRequestCompleted;_.E([_.d(),_.h("design:type",Object)],P_.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],P_.prototype,"nextButtonDisabled",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],P_.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],P_.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],P_.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],P_.prototype,"submitEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],P_.prototype,"navigationEndpoint",void 0);_.E([_.d({selector:function(I){return I.reportChannelAbuse}}),
_.h("design:type",Object)],P_.prototype,"reportChannelAbuseForm",void 0);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],P_.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],P_.prototype,"onYtServiceRequestError",null);
P_=_.E([_.m({is:"ytd-report-channel-modal-footer-renderer",disableElementRegistration:!0})],P_);
_.Z(P_,"ytd-report-channel-modal-footer-renderer",function(){if(MHR!==void 0)return MHR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return MHR=I},{mode:1});var IgS;var LT=function(){var I=_.q.apply(this,arguments)||this;I.boundOnTapDismissButton=function(){I.closePopup()};
return I};
_.R(LT,_.q);LT.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapDismissButton]]"}}}}}};
LT.prototype.handleDataChanged=function(){_.UL(this.hostElement)};
LT.prototype.closePopup=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
LT.prototype.handleDataChanged=LT.prototype.handleDataChanged;_.E([_.d(),_.h("design:type",Object)],LT.prototype,"boundOnTapDismissButton",void 0);_.E([_.d(),_.h("design:type",Object)],LT.prototype,"data",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LT.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LT.prototype,"handleDataChanged",null);LT=_.E([_.m({is:"ytd-report-channel-modal-header-renderer",disableElementRegistration:!0})],LT);
_.Z(LT,"ytd-report-channel-modal-header-renderer",function(){if(IgS!==void 0)return IgS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return IgS=I},{mode:1});var CFR;var DK=function(){var I=_.q.apply(this,arguments)||this;I.autoValidate=!1;I.invalid=!1;I.actionMap={"yt-modify-report-form-command":"handleModifyReportFormCommand"};return I};
_.R(DK,_.q);_.u=DK.prototype;_.u.attached=function(){var I=this;this.impersonatedChannelUrlRedux?(this.impersonatedChannelUrl=this.impersonatedChannelUrlRedux,this.handleImpersonatedChannelUrlChanged()):this.impersonatedChannelUrl="";requestAnimationFrame(function(){I.channelUrlInput.focusTextInput()})};
_.u.disableNextButton=function(I){_.Fe(this.hostElement,"ytd-report-channel-modal-disable-next-button-action",[I])};
_.u.handleImpersonatedChannelUrlChanged=function(){var I=this;this.disableNextButton(!0);this.invalid=!1;_.KK(this,"ytd-report-channel-impersonated-channel-update",function(){var C=I.impersonatedChannelUrl.trim();I.ytdReduxBehavior.dispatch(_.yE({type:"IMPERSONATED_CHANNEL_URL_UPDATED",payload:C}));var y;((y=I.data)==null?0:y.submitEndpoint)&&C&&(_.V("web_ytd_report_channel_modal_impersonation_renderer_command_resolver_ks")?_.Tg(I.hostElement,[I.data.submitEndpoint,{impersonated_channel_url:C}]):
_.N().resolve(_.ID).resolveCommand(I.data.submitEndpoint,{form:{impersonated_channel_url:C,element:I.hostElement}}))},500)};
_.u.handleModifyReportFormCommand=function(I){this.invalid=this.get("modifyReportFormCommand.action",I)!=="REPORT_FORM_ACTION_ENABLE_SUBMIT_BUTTON";this.disableNextButton(this.invalid)};
_.u.updateInvalidFromBinding=function(I){this.invalid=I.detail.value};
_.u.updateImpersonatedChannelUrlFromBinding=function(I){this.impersonatedChannelUrl=I.detail.value};
DK.prototype.handleImpersonatedChannelUrlChanged=DK.prototype.handleImpersonatedChannelUrlChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],DK.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],DK.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DK.prototype,"autoValidate",void 0);_.E([_.d(),_.h("design:type",Object)],DK.prototype,"invalid",void 0);
_.E([_.d(),_.h("design:type",String)],DK.prototype,"impersonatedChannelUrl",void 0);_.E([_.d({selector:function(I){return I.reportChannelAbuse.impersonatedChannelUrl}}),
_.h("design:type",String)],DK.prototype,"impersonatedChannelUrlRedux",void 0);_.E([_.d(),_.h("design:type",Object)],DK.prototype,"data",void 0);_.E([_.z$("#text-input"),_.h("design:type",Object)],DK.prototype,"channelUrlInput",void 0);_.E([_.FI("impersonatedChannelUrl"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DK.prototype,"handleImpersonatedChannelUrlChanged",null);
DK=_.E([_.m({is:"ytd-report-channel-modal-impersonation-renderer",disableElementRegistration:!0})],DK);
_.Z(DK,"ytd-report-channel-modal-impersonation-renderer",function(){if(CFR!==void 0)return CFR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CFR=I},{mode:1});var s5B;var olH;var pT=function(){return _.q.apply(this,arguments)||this};
_.R(pT,_.q);pT.prototype.onCheckboxToggled=function(I){var C,y,k=(y=_.l((C=this.data)==null?void 0:C.video,_.VcY))==null?void 0:y.videoId;k&&this.ytdReduxBehavior.dispatch(I.target.checked?_.yE({type:"VIDEO_SELECTED",payload:k}):_.yE({type:"VIDEO_UNSELECTED",payload:k}))};
pT.prototype.configureRendererStamper=function(){return{video:{id:"video",mapping:{videoRenderer:{component:"ytd-video-renderer",params:{isPostCompactVideo:!0}}}}}};
_.H1.Object.defineProperties(pT.prototype,{video:{configurable:!0,enumerable:!0,get:function(){var I,C=(I=this.data)==null?void 0:I.video;if(!C)return{};var y;I=(y=_.l(C,_.VcY))==null?void 0:y.navigationEndpoint;if(!I)return C;_.l(I==null?void 0:I.commandMetadata,_.It)&&(_.l(I.commandMetadata,_.It).ignoreNavigation=!0);return C}}});
_.E([_.d({reflectToAttribute:!0,selector:function(I,C){return C in I.reportChannelAbuse.selectedVideoIds},
selectorArgs:["data.video.videoRenderer.videoId"]}),_.h("design:type",Boolean)],pT.prototype,"checked",void 0);_.E([_.d(),_.h("design:type",Object)],pT.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],pT.prototype,"video",null);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pT.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],pT.prototype,"ytdReduxBehavior",void 0);pT=_.E([_.m({is:"ytd-selectable-video-renderer",disableElementRegistration:!0})],pT);
_.Z(pT,"ytd-selectable-video-renderer",function(){if(olH!==void 0)return olH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return olH=I},{mode:1});var QH=function(){var I=_.q.apply(this,arguments)||this;I.monitorScroll=!0;return I};
_.R(QH,_.q);QH.prototype.configureRendererStamper=function(){return{"data.selectableVideos":{id:"selectable-videos",mapping:{selectableVideoRenderer:{component:"ytd-selectable-video-renderer"}},events:!0}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QH.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],QH.prototype,"data",void 0);QH=_.E([_.m({is:"ytd-selectable-video-list-renderer",disableElementRegistration:!0})],QH);
_.Z(QH,"ytd-selectable-video-list-renderer",function(){if(s5B!==void 0)return s5B;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return s5B=I},{mode:1});var y4K;_.jz("multiPageMenuSectionItems","toggleItemRenderer","ytd-toggle-item-renderer");var N_=function(){return _.q.apply(this,arguments)||this};
_.R(N_,_.q);N_.prototype.onChange=function(I){if(I=_.m0(I).checked?this.data.toggleOnActions:this.data.toggleOffActions)if(_.V("kevlar_command_handler_migration_killswitch"))_.cQ(this.hostElement,I,this.hostElement);else{I=_.T(I);for(var C=I.next();!C.done;C=I.next())this.ytComponentBehavior.resolveCommand(C.value)}};
N_.prototype.isEnabled=function(){return!!this.data.toggleOnActions||!!this.data.toggleOffActions};
N_.prototype.updateDataToggledFromBinding=function(I){this.set("data.toggled",I.detail.value)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],N_.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],N_.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],N_.prototype,"data",void 0);_.E([_.d({computed:"isEnabled(data)"}),_.h("design:type",Boolean)],N_.prototype,"enabled",void 0);N_=_.E([_.m({is:"ytd-toggle-item-renderer",disableElementRegistration:!0})],N_);
_.Z(N_,"ytd-toggle-item-renderer",function(){if(y4K!==void 0)return y4K;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return y4K=I},{mode:1});var khL;var FsR;var upK;var VH=function(){var I=_.q.apply(this,arguments)||this;I.setVisible=!1;I.boundOnSubmitButtonClick=function(){I.onSubmitButtonClick()};
I.actionMap={"yt-survey-flow-step-option-changed":"handleSurveyFlowStepOptionChanged","yt-signal-action-submit-form":"handleSignalActionSubmitForm"};return I};
_.R(VH,_.q);VH.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}}}}}};
VH.prototype.handleSurveyFlowStepOptionChanged=function(){this.setVisible=!0};
VH.prototype.onSubmitButtonClick=function(){var I;((I=this.data)==null?0:I.submitEndpoint)&&!_.V("enable_ytc_refunds_submit_form_signal_action")&&_.Tg(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
VH.prototype.handleSignalActionSubmitForm=function(){var I;((I=this.data)==null?0:I.submitEndpoint)&&_.Tg(this.hostElement,[this.data.submitEndpoint,{formData:{ypcBrowseFormData:{problemFlowFormData:{surveyFeedbackData:this.surveyFeedbackData}}}}])};
_.H1.Object.defineProperties(VH.prototype,{visibilityHidden:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.hiddenByDefault)&&!this.setVisible}}});
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],VH.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VH.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],VH.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VH.prototype,"setVisible",void 0);_.E([_.d(),_.h("design:type",Object)],VH.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],VH.prototype,"surveyFeedbackData",void 0);_.E([_.d(),_.h("design:type",Object)],VH.prototype,"boundOnSubmitButtonClick",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data","setVisible"),_.h("design:type",Object),_.h("design:paramtypes",[])],VH.prototype,"visibilityHidden",null);VH=_.E([_.lT({is:"yt-flow-footer-renderer",disableElementRegistration:!0})],VH);
_.Z(VH,"yt-flow-footer-renderer",function(){if(upK===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;FsR===void 0&&(FsR=document.createElement("template"));var k=FsR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);upK=I}I=upK;return I},{mode:2});var j0=function(){return _.q.apply(this,arguments)||this};
_.R(j0,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],j0.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],j0.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],j0.prototype,"data",void 0);_.E([_.d({selector:function(I){return I.ypc.surveyFeedbackData}}),
_.h("design:type",Object)],j0.prototype,"surveyFeedbackData",void 0);j0=_.E([_.m({disableElementRegistration:!0,is:"ytd-flow-footer-renderer"})],j0);
_.Z(j0,"ytd-flow-footer-renderer",function(){if(khL!==void 0)return khL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return khL=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var zAK;var TpM;var ld=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-broadcast-user-invalidation-action":"updateMenu_","yt-hide-enclosing-action":"handleHideEnclosingAction_"};return I};
_.R(ld,_.q);_.u=ld.prototype;_.u.configureRendererStamper=function(){return{"data.items":{id:"items",mapping:_.lk("multiPageMenuSectionItems")}}};
_.u.handleHideEnclosingAction_=function(I){if(this.data&&this.data.items)for(var C=0;C<this.data.items.length;C++){var y=this.data.items[C].notificationRenderer;if(y&&y.notificationId==I.hideEnclosingAction.notificationId){this.splice("data.items",C,1);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.maybeHideNotificationSection_();break}}};
_.u.maybeHideNotificationSection_=function(){this.data&&this.data.items&&this.data.items.length==0&&_.Mc(this.hostElement,"hidden",!0)};
_.u.updateMenu_=function(I){if(this.ytRendererBehavior.parentComponent.isPopUpOpen&&this.data&&this.data.continuations&&I&&!I.doNotRefreshInbox){I=this.data.continuations;for(var C=0;C<I.length;C++)if(I[C].invalidationContinuationData){var y=void 0;var k=(y=I[C].invalidationContinuationData)==null?void 0:y.continuation;break}I=_.Le.clone(this.data.continuationUpdateEndpoint||null);I.continuation=k;I.click_tracking_params=this.data.trackingParams;_.Tg(this.hostElement,[I])}};
_.u.onServiceRequestCompleted_=function(I,C){if(this.data&&(I=C.actions)){C=0;for(var y=I.length;C<y;C++){var k=_.l(I[C],_.YrS);if(!k)break;if((k.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"||k.target==="CONTINUATION_TARGET_CONVERSATION_MENU")&&k.continuationItems&&this.data.items){var F=this.data.items.length-1;this.data.items[F].continuationItemRenderer&&this.splice.apply(this,["data.items",F,1].concat(k.continuationItems))}}}};
ld.prototype.onServiceRequestCompleted_=ld.prototype.onServiceRequestCompleted_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ld.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ld.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ld.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ld.prototype,"data",void 0);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],ld.prototype,"onServiceRequestCompleted_",null);ld=_.E([_.lT({is:"yt-multi-page-menu-section-renderer",disableElementRegistration:!0})],ld);
_.MH()(ld,"yt-multi-page-menu-section-renderer",function(){if(TpM===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;zAK===void 0&&(zAK=document.createElement("template"));var k=zAK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);TpM=I}I=TpM;return I},{allowedProps:["data"],
mode:2});var c4B;var eAR;var Xu=function(){return _.q.apply(this,arguments)||this};
_.R(Xu,_.q);Xu.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}}}};
_.H1.Object.defineProperties(Xu.prototype,{showProgressBar:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.progress)!=null}},
progress:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.progress)==null?0:this.data.progress*100}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Xu.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Xu.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Xu.prototype,"data",void 0);_.E([_.v("data.progress"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],Xu.prototype,"showProgressBar",null);
_.E([_.v("data.progress"),_.h("design:type",Number),_.h("design:paramtypes",[])],Xu.prototype,"progress",null);Xu=_.E([_.lT({is:"yt-flow-header-renderer",disableElementRegistration:!0})],Xu);
_.Z(Xu,"yt-flow-header-renderer",function(){if(eAR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;c4B===void 0&&(c4B=document.createElement("template"));var k=c4B;y.call(C,k.content.cloneNode(!0),I.content.firstChild);eAR=I}I=eAR;return I},{mode:2});var r4K;var iDL;var $i=function(){return _.q.apply(this,arguments)||this};
_.R($i,_.q);$i.prototype.configureRendererStamper=function(){return{"data.text":{id:"text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$i.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$i.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$i.prototype,"data",void 0);$i=_.E([_.lT({is:"yt-post-confirmation-flow-step-renderer",disableElementRegistration:!0})],$i);
_.Z($i,"yt-post-confirmation-flow-step-renderer",function(){if(iDL===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;r4K===void 0&&(r4K=document.createElement("template"));var k=r4K;y.call(C,k.content.cloneNode(!0),I.content.firstChild);iDL=I}I=iDL;return I},{mode:2});var wrL;var nlS;var Ry=function(){return _.q.apply(this,arguments)||this};
_.R(Ry,_.q);
Ry.prototype.configureRendererStamper=function(){return{"data.userInfo":{id:"user-info",mapping:{cardItemTextWithImageRenderer:{component:"yt-card-item-text-with-image-renderer"}}},"data.confirmationText":{id:"confirmation-text",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}},"data.confirmationDetailsHeader":{id:"confirmation-details",mapping:{cardItemTextRenderer:{component:"yt-card-item-text-renderer"}}},"data.productDetails":{id:"product-details",mapping:{activityItemRenderer:{component:"yt-activity-item-renderer"}}},
"data.billingDetails":{id:"billing-details",mapping:{cardItemTextCollectionRenderer:{component:"yt-card-item-text-collection-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ry.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ry.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ry.prototype,"data",void 0);Ry=_.E([_.lT({is:"yt-refund-confirmation-flow-step-renderer",disableElementRegistration:!0})],Ry);
_.Z(Ry,"yt-refund-confirmation-flow-step-renderer",function(){if(nlS===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;wrL===void 0&&(wrL=document.createElement("template"));var k=wrL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);nlS=I}I=nlS;return I},{mode:2});_.MU(U1K);_.MU(HA8);var trL=_.Qg({avatarViewModel:_.XS});_.MU(J7K);var OAY=_.Qg({commentInteractionViewModel:HA8,sharedSubscriptionViewModel:J7K,buttonViewModel:_.fM});_.MU(a0H);_.MU(MrK);_.MU(IkK);_.MU(C6B);_.MU(sQY);var o9Y=_.Qg({profileIdentityInfoViewModel:_.QEH,profileInfoViewModel:sQY});_.MU(ySR);_.aj(ySR,"yt-profile-card-view-model",{propNames:["data"]});var bd=function(){var I=_.q.apply(this,arguments)||this;I.enableFocusFix=_.V("music_web_enable_focus_on_setting_menu_fix")&&_.g5("IS_MOBILE_WEB",!1);I.covered=!1;I.hideMenu=!1;I.isCommentNotificationOnProfileCard=!1;I.scrolledByTouch=!1;I.disableBackdropFilter=_.V("web_disable_backdrop_filter");I.HIGH_PRIORITY_NOTIFICATION_DISPLAY_TIMEOUT_MS=4E3;return I};
_.R(bd,_.q);_.u=bd.prototype;
_.u.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"}}}};
_.u.ready=function(){var I=this;this.JSC$17826_containerElement.addEventListener("scroll",function(){I.ytRendererBehavior.markDirty()})};
_.u.attributeChanged=function(I,C){I==="menu-style"&&_.Fe(this.hostElement,"yt-multi-page-menu-closed-action",[C])};
_.u.detached=function(){this.hostElement.removeEventListener("yt-rendererstamper-finished",_.sb(this,this.focusOnStampFinished))};
_.u.focusFirstItem=function(){this.doFocus();this.hostElement.addEventListener("yt-rendererstamper-finished",_.sb(this,this.focusOnStampFinished))};
_.u.reset=function(){this.closeJobId&&(_.b$.cancelJob(this.closeJobId),this.closeJobId=0);this.covered=!1};
_.u.focusOnStampFinished=function(I){I.detail.container===this.sectionsElement&&(this.hostElement.removeEventListener("yt-rendererstamper-finished",_.sb(this,this.focusOnStampFinished)),this.doFocus())};
_.u.doFocus=function(){var I=_.ZMd(this.sectionsElement);I.length&&I[0].focus()};
_.u.computeMenuStyle=function(I){return I?I.toLowerCase().replace(/_/g,"-"):""};
_.u.computeIsCommentNotificationOnProfileCard=function(I){return _.V("enable_profile_cards_on_comments")&&I.style==="MULTI_PAGE_MENU_STYLE_TYPE_PROFILE_CARD_COMMENTS"};
_.u.computeHideMenu=function(I,C){return I||!(!C||!C.showLoadingSpinner)};
_.u.onPopupClosed=function(){this.isPopUpOpen=!1;_.Fe(this.hostElement,"yt-multi-page-menu-closed-action",[this.menuStyle])};
_.u.onPopupOpened=function(I,C){this.isPopUpOpen=!0;C.is==="ytd-multi-page-menu-renderer"&&(this.reset(),_.k3(this.hostElement,"yt-refit"),this.enableFocusFix&&this.doFocus(),this.data.style==="MULTI_PAGE_MENU_STYLE_TYPE_REPORT_CHANNEL"&&this.ytdReduxBehavior.dispatch(_.yE({type:"CHANNEL_REPORT_RESET"})))};
_.u.onYtNavigate=function(I,C){this.shouldCloseOnNavigateEvent(C.endpoint)&&_.Fe(this.hostElement,"yt-close-all-popups-action")};
_.u.handleEndpoint=function(I){I=_.l(I,_.R$);!this.isCommentNotificationOnProfileCard&&I&&(this.spinnerElement.hidden=!1,this.headerElement.hidden=!0,this.JSC$17826_containerElement.hidden=!0,this.submenuElement.hidden=!0)};
_.u.handleActions=function(I){for(var C=0,y=I.length;C<y;C++){var k=_.l(I[C],ls8);k&&this.handleGetMultiPageMenuAction(k);(k=_.l(I[C],_.YrS))&&this.handleAppendContinuationItemsAction(k)}};
_.u.onServiceRequestSentOrCompleted=function(I,C){I.detail&&I.detail.endpoint&&this.handleEndpoint(I.detail.endpoint);C.actions&&this.handleActions(C.actions)};
_.u.handleGetMultiPageMenuAction=function(I){var C=document.createElement("ytd-multi-page-menu-renderer");this.refitAfterRender();this.emptySubmenuContainer();_.f(this.submenuElement).appendChild(C);(I=I.menu.multiPageMenuRenderer)&&this.logSubmenu(I);C.data=I;C.covered=!1;this.covered=!0;this.spinnerElement.hidden=!0};
_.u.handleAppendContinuationItemsAction=function(I){if(this.data&&I.target==="CONTINUATION_TARGET_NOTIFICATION_MENU"&&I.continuationItems&&this.data.sections){var C=this.data.sections.length-1;this.data.sections[C].continuationItemRenderer&&(this.splice("data.sections",this.data.sections.length-1,1),C--);if(this.data.sections[C].multiPageMenuNotificationSectionRenderer&&I.continuationItems){I=_.T(I==null?void 0:I.continuationItems);for(var y=I.next();!y.done;y=I.next())if(y=y.value,_.l(y,OVj)){var k=
void 0,F=void 0,z=void 0,c=void 0,r=void 0;((k=this)==null?0:(F=k.data)==null?0:(z=F.sections)==null?0:(c=z[C])==null?0:(r=c.multiPageMenuNotificationSectionRenderer)==null?0:r.items)&&this.push("data.sections."+C+".multiPageMenuNotificationSectionRenderer.items",y)}else if(_.l(y,_.njY)||_.l(y,_.kH))this.push("data.sections",y),C++}}};
_.u.logSubmenu=function(I){if(!_.V("kevlar_multi_page_menu_sub_page_loggin_killswitch")){var C=this.ytRendererBehavior.getScreenLayer(),y=_.Si(C),k=_.fq(C);if((I=I.trackingParams)&&y&&k){var F=_.nv(I);_.V("combine_ve_grafts")?_.e2().graftServerVe(I,k,C):_.q1(y,k,F)}}};
_.u.emptySubmenuContainer=function(){for(var I=_.f(this.submenuElement);I.firstChild;)I.removeChild(I.firstChild)};
_.u.onMenuBackTap=function(I){_.k3(this.hostElement,"yt-submenu-closed");I.stopPropagation()};
_.u.onSubmenuClosed=function(I){_.m0(I)!==this.hostElement&&(this.covered=!1,_.k3(this.hostElement,"yt-refit"),I.stopPropagation())};
_.u.onRetrieveLocation=function(I,C){C.hasComments&&(C.locationRetrieved("/comment_service_ajax?action_get_comments=1&pbj=1",void 0),I.stopPropagation())};
_.u.shouldCloseOnNavigateEvent=function(I){if(!I)return!0;if(_.l(I,_.eXm)||_.l(I,_.rp5)||_.l(I,_.cp5)||_.l(I,_.xo))return!1;var C;return((C=_.l(I==null?void 0:I.commandMetadata,_.It))==null?0:C.ignoreNavigation)?!1:!0};
_.u.onContainerTouchStart=function(){this.scrolledByTouch=!0};
_.u.onContainerTouchEnd=function(){this.scrolledByTouch=!1};
_.u.refitAfterRender=function(){var I=this;_.hn(this,function(){_.k3(I.hostElement,"yt-refit")})};
bd.prototype.refitAfterRender=bd.prototype.refitAfterRender;bd.prototype.onRetrieveLocation=bd.prototype.onRetrieveLocation;bd.prototype.onSubmenuClosed=bd.prototype.onSubmenuClosed;bd.prototype.onMenuBackTap=bd.prototype.onMenuBackTap;bd.prototype.onServiceRequestSentOrCompleted=bd.prototype.onServiceRequestSentOrCompleted;bd.prototype.onYtNavigate=bd.prototype.onYtNavigate;bd.prototype.onPopupOpened=bd.prototype.onPopupOpened;bd.prototype.onPopupClosed=bd.prototype.onPopupClosed;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bd.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],bd.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bd.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],bd.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bd.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],bd.prototype,"enableFocusFix",void 0);_.E([_.d(),_.h("design:type",Object)],bd.prototype,"covered",void 0);_.E([_.d({computed:"computeHideMenu(covered, data)"}),_.h("design:type",Object)],bd.prototype,"hideMenu",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeMenuStyle(data.style)"}),_.h("design:type",String)],bd.prototype,"menuStyle",void 0);
_.E([_.d({computed:"computeIsCommentNotificationOnProfileCard(data)"}),_.h("design:type",Object)],bd.prototype,"isCommentNotificationOnProfileCard",void 0);_.E([_.d(),_.h("design:type",Boolean)],bd.prototype,"isPopUpOpen",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],bd.prototype,"scrolledByTouch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],bd.prototype,"disableBackdropFilter",void 0);
_.E([_.z$("#sections"),_.h("design:type",HTMLElement)],bd.prototype,"sectionsElement",void 0);_.E([_.z$("#spinner"),_.h("design:type",HTMLElement)],bd.prototype,"spinnerElement",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],bd.prototype,"headerElement",void 0);_.E([_.z$("#container"),_.h("design:type",HTMLElement)],bd.prototype,"JSC$17826_containerElement",void 0);_.E([_.z$("#submenu"),_.h("design:type",HTMLElement)],bd.prototype,"submenuElement",void 0);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bd.prototype,"onPopupClosed",null);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bd.prototype,"onPopupOpened",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bd.prototype,"onYtNavigate",null);
_.E([_.km("yt-service-request-completed"),_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],bd.prototype,"onServiceRequestSentOrCompleted",null);_.E([_.km("yt-menu-back-tapped"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bd.prototype,"onMenuBackTap",null);
_.E([_.km("yt-submenu-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bd.prototype,"onSubmenuClosed",null);_.E([_.km("yt-retrieve-location"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bd.prototype,"onRetrieveLocation",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bd.prototype,"refitAfterRender",null);
bd=_.E([_.m({is:"ytd-multi-page-menu-renderer",disableElementRegistration:!0})],bd);
_.Z(bd,"ytd-multi-page-menu-renderer",function(){if(HNR!==void 0)return HNR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HNR=I},{mode:1});var PFR;var Yi=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction","yt-update-topbar-avatar-action":"handleUpdateTopbarAvatarAction"};return I};
_.R(Yi,_.q);_.u=Yi.prototype;_.u.created=function(){this.showTooltips=!0};
_.u.computeAccessibility_=function(I){return this.get("accessibility.accessibilityData",I)||null};
_.u.onTap=function(){var I=_.uW(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]);this.toggleIconState(!0);if(I&&I.length===1&&I[0])_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);else{var C;if((C=this.data)==null?0:C.menuRenderer)this.ytdOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DROPDOWN",popup:this.data.menuRenderer}});else{var y;((y=this.data)==null?0:y.menuRequest)&&_.Tg(this.hostElement,[this.data.menuRequest])}}};
_.u.handleTopbarMenuClosedAction=function(I){var C,y;(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(I)===((C=this.data)==null?void 0:(y=C.icon)==null?void 0:y.iconType)&&this.toggleIconState(!1)};
_.u.toggleIconState=function(I){_.V("kevlar_system_icons")&&this.iconButton&&(this.iconButton.pressed=I)};
_.u.handleUpdateTopbarAvatarAction=function(I){var C;I=(C=_.l(I,LqL))==null?void 0:C.avatarUrl;var y,k;C=(y=this.data)==null?void 0:(k=y.avatar)==null?void 0:k.thumbnails;I&&C&&(y={thumbnails:[Object.assign({},C[0],{url:I})]},this.set("data.avatar",y))};
_.H1.Object.defineProperties(Yi.prototype,{container:{configurable:!0,enumerable:!0,get:function(){return _.f(this.hostElement).querySelector("#button")}}});
Yi.prototype.onTap=Yi.prototype.onTap;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Yi.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Yi.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],Yi.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.Qbw.YtButtonBehavior),_.h("design:type",Object)],Yi.prototype,"ytButtonBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Yi.prototype,"data",void 0);
_.E([_.z$("yt-icon-button#button"),_.h("design:type",Object)],Yi.prototype,"iconButton",void 0);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Yi.prototype,"onTap",null);Yi=_.E([_.m({is:"ytd-topbar-menu-button-renderer",disableElementRegistration:!0})],Yi);
_.Z(Yi,"ytd-topbar-menu-button-renderer",function(){if(PFR!==void 0)return PFR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return PFR=I},{mode:1});var LsR;var GH=function(){return _.q.apply(this,arguments)||this};
_.R(GH,_.q);GH.prototype.getSelected=function(){return this.reasons.selected};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GH.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],GH.prototype,"data",void 0);_.E([_.z$("#reasons"),_.h("design:type",Object)],GH.prototype,"reasons",void 0);GH=_.E([_.m({is:"ytd-ad-feedback-content",disableElementRegistration:!0})],GH);
_.Z(GH,"ytd-ad-feedback-content",function(){if(LsR!==void 0)return LsR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return LsR=I},{mode:1});var DVK;var fT=function(){return _.q.apply(this,arguments)||this};
_.R(fT,_.q);_.u=fT.prototype;_.u.onPopupOpened=function(){_.Fe(this.hostElement,"yt-mute-ad-action",["ytd-ad-feedback-renderer",this])};
_.u.computeConfirmButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.confirmLabel}};
_.u.computeCancelButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.cancelLabel}};
_.u.onConfirmTap=function(){var I=this.content.getSelected();I!==void 0&&(I=this.data.reasons[I].endpoint)&&(_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}}),_.Fe(this.hostElement,"yt-close-popup-action"),this.sendFeedbackSubmitToastAction())};
_.u.sendFeedbackSubmitToastAction=function(){var I;(I=this.data)!=null&&I.completionMessage&&_.Fe(this.hostElement,"yt-open-popup-action",[_.JS(this.data.completionMessage),this])};
_.u.onCancelTap=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
fT.prototype.onPopupOpened=fT.prototype.onPopupOpened;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fT.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fT.prototype,"data",void 0);_.E([_.z$("#content"),_.h("design:type",Object)],fT.prototype,"content",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fT.prototype,"onPopupOpened",null);
fT=_.E([_.m({is:"ytd-ad-feedback-renderer",disableElementRegistration:!0})],fT);
_.Z(fT,"ytd-ad-feedback-renderer",function(){if(DVK!==void 0)return DVK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DVK=I},{mode:1});var prB;var S0=function(){return _.q.apply(this,arguments)||this};
_.R(S0,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],S0.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],S0.prototype,"data",void 0);S0=_.E([_.m({is:"ytd-ad-info-dialog-content",disableElementRegistration:!0})],S0);
_.Z(S0,"ytd-ad-info-dialog-content",function(){if(prB!==void 0)return prB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return prB=I},{mode:1});var Q5y;var KT=function(){return _.q.apply(this,arguments)||this};
_.R(KT,_.q);KT.prototype.computeConfirmButton=function(I){return{style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:I.confirmLabel}};
KT.prototype.onConfirmTap=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-ad-info-dialog-renderer"])};
KT.prototype.computeShouldShowTitle=function(){var I;return!((I=this.data)==null||!I.title)};
KT.prototype.onPopupClosed=function(){this.data&&this.data.confirmServiceEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.confirmServiceEndpoint,{form:{element:this.hostElement}})};
KT.prototype.onPopupClosed=KT.prototype.onPopupClosed;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],KT.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KT.prototype,"data",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],KT.prototype,"onPopupClosed",null);KT=_.E([_.m({is:"ytd-ad-info-dialog-renderer",disableElementRegistration:!0})],KT);
_.Z(KT,"ytd-ad-info-dialog-renderer",function(){if(Q5y!==void 0)return Q5y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Q5y=I},{mode:1});var NpY;var AR=function(){var I=_.q.apply(this,arguments)||this;I.actionButtonClass="action-button";I.dismissButtonId="dismiss-button";I.dialogDismiss=!0;return I};
_.R(AR,_.q);_.u=AR.prototype;_.u.computeInPlayer=function(I){return(I==null?void 0:I.displayType)==="ENFORCEMENT_MESSAGE_VIEW_MODEL_DISPLAY_TYPE_PLAYER"};
_.u.computedLogo=function(){var I,C;return this.isDarkTheme()?(I=this.data)==null?void 0:I.logoDark:(C=this.data)==null?void 0:C.logo};
_.u.computedHeaderImage=function(){var I,C;return this.isDarkTheme()?(I=this.data)==null?void 0:I.headerImageDark:(C=this.data)==null?void 0:C.headerImage};
_.u.computeLogoIconId=function(){var I,C,y,k=(I=this.computedLogo())==null?void 0:(C=I.sources)==null?void 0:(y=C[0])==null?void 0:y.height;return k&&k%31===0?"logo-icon-with-padding":"logo-icon"};
_.u.computeLogoIconHeight=function(){var I,C,y,k=(I=this.computedLogo())==null?void 0:(C=I.sources)==null?void 0:(y=C[0])==null?void 0:y.height;return k&&k%31===0?"31":"24"};
_.u.onPopupClosed=function(){_.N().resolve(_.Jy).dispose()};
_.u.isDarkTheme=function(){return document.documentElement.hasAttribute("dark")||this.inPlayer};
_.u.onShow=function(){this.inPlayer&&_.ef(6)};
_.u.impressionLog=function(){if(this.data&&this.data.impressionEndpoints)for(var I=0;I<this.data.impressionEndpoints.length;I++){var C=_.l(this.data.impressionEndpoints[I],_.$$);C&&this.ytComponentBehavior.resolveCommand(C)}};
_.u.onDismissClicked=function(){getComputedStyle(this.dismissButton).getPropertyValue("pointer-events")!=="none"&&_.Fe(this.hostElement,"yt-close-popup-action",["ytd-enforcement-message-view-model"])};
_.H1.Object.defineProperties(AR.prototype,{hasHeaderImage:{configurable:!0,enumerable:!0,get:function(){var I,C;return!((I=this.data)==null||!I.headerImageDark)&&!((C=this.data)==null||!C.headerImage)}},
hasPremiumButton:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.secondaryButton)}}});
AR.prototype.onPopupClosed=AR.prototype.onPopupClosed;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],AR.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],AR.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Yy.YtVisibilityBehavior),_.h("design:type",Object)],AR.prototype,"ytVisibilityBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],AR.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],AR.prototype,"actionButtonClass",void 0);_.E([_.d(),_.h("design:type",Object)],AR.prototype,"dismissButtonId",void 0);_.E([_.d(),_.h("design:type",Object)],AR.prototype,"dialogDismiss",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],AR.prototype,"hasHeaderImage",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],AR.prototype,"hasPremiumButton",null);
_.E([_.d({reflectToAttribute:!0,computed:"computeInPlayer(data)"}),_.h("design:type",Boolean)],AR.prototype,"inPlayer",void 0);_.E([_.z$("#dismiss-button"),_.h("design:type",HTMLElement)],AR.prototype,"dismissButton",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],AR.prototype,"onPopupClosed",null);AR=_.E([_.m({is:"ytd-enforcement-message-view-model",disableElementRegistration:!0})],AR);
_.Z(AR,"ytd-enforcement-message-view-model",function(){if(NpY!==void 0)return NpY;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-enforcement-message-view-model--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-enforcement-message-view-model">\n<div id="header" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedLogo(data)]]" height$="[[computeLogoIconHeight()]]" id$="[[computeLogoIconId()]]" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n  <yt-button-view-model id="[[dismissButtonId]]" data="[[data.dismissButton]]" icon="[[data.dismissButton.iconName]]" scoping-class-name="[[is]]" on-click="onDismissClicked" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="header-image" hidden="[[!hasHeaderImage]]" class="style-scope ytd-enforcement-message-view-model">\n  <yt-image data="[[computedHeaderImage(data)]]" height="64" preserve-height="" class="style-scope ytd-enforcement-message-view-model">\n  </yt-image>\n</div>\n\n<div id="title" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string data="[[data.title]]" class="style-scope ytd-enforcement-message-view-model"></yt-attributed-string>\n</div>\n\n<ul id="body" class="style-scope ytd-enforcement-message-view-model">\n  <template is="dom-repeat" items="[[data.bulletList.bulletListItems]]" as="item" class="style-scope ytd-enforcement-message-view-model">\n    <li class="style-scope ytd-enforcement-message-view-model">\n      <yt-attributed-string class="body-message style-scope ytd-enforcement-message-view-model" data="[[item.title]]"></yt-attributed-string>\n    </li>\n  </template>\n</ul>\n\n<div id="buttons" class="style-scope ytd-enforcement-message-view-model">\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.primaryButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n  <yt-button-view-model classes="[[actionButtonClass]]" data="[[data.secondaryButton]]" dialog-dismiss="[[dialogDismiss]]" hidden$="[[!hasPremiumButton]]" scoping-class-name="[[is]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-button-view-model>\n</div>\n\n<div id="divider" class="style-scope ytd-enforcement-message-view-model"></div>\n\n<div id="feedback" class="style-scope ytd-enforcement-message-view-model">\n  <yt-attributed-string id="feedback-message" data="[[data.feedbackMessage]]" class="style-scope ytd-enforcement-message-view-model">\n  </yt-attributed-string>\n</div>\n</div>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return NpY=I},{mode:1});var VJK;var j5K;var gE=function(){var I=_.q.apply(this,arguments)||this;I.TEST_ONLY={immediateValidation:function(){I.immediateValidation()},
onValidationResponse:function(C){I.onValidationResponse(C)},
onGenerateHandleFromNameResponse:function(C){I.onGenerateHandleFromNameResponse(C)}};
return I};
_.R(gE,_.q);_.u=gE.prototype;_.u.onValueChanged=function(){this.hostElement.dispatchEvent(new CustomEvent("value-changed",{detail:{value:this.value,queueProperty:!0}}))};
_.u.validate=function(){this.immediateValidation()};
_.u.applyHandleEdit=function(){this.handleEdit!==void 0&&this.setHandleInputValue(this.handleEdit)};
_.u.setHandleInputValue=function(I){this.handleDir=this.getHandleDir(I);this.handleInput.value=I;this.validationState={status:"PENDING"};this.immediateValidation()};
_.u.getHandleDir=function(I){var C=I===""&&!1;return(C=_.Kxe.test.call(_.Kxe,I))?"rtl":"ltr"};
_.u.onDataChanged=function(){var I,C;this.handleDir=this.getHandleDir((C=(I=this.data)==null?void 0:I.handle)!=null?C:"");var y;this.validationState=((y=this.data)==null?0:y.handle)?{status:"UNKNOWN",handle:this.data.handle}:void 0;var k;((k=this.data)==null?0:k.validateOnInit)&&this.immediateValidation()};
_.u.stopPropagation=function(I){I.stopPropagation()};
_.u.onInput=function(){var I;this.handleDir=this.getHandleDir((I=this.handleInput.value)!=null?I:"");this.wasEdited=!0;this.validationState={status:"PENDING"};this.delayedValidation()};
_.u.onFocusout=function(I){this.handleInput.contains(I.relatedTarget)||this.validationState!==void 0&&this.validationState.status!=="PENDING"||this.immediateValidation()};
_.u.delayedValidation=function(){var I,C;this.debouncedValidation((C=(I=this.data)==null?void 0:I.validationDelayMs)!=null?C:1E3)};
_.u.immediateValidation=function(){this.debouncedValidation(0)};
_.u.debouncedValidation=function(I){var C=this;_.KK(this,"debouncedValidation",function(){var y,k=C.staticValidation((y=C.handleInput.value)!=null?y:"");if(k!==void 0)C.validationState={status:"INVALID",errorIndicator:"BORDER",errorMessage:k};else{var F;if((F=C.data)!=null&&F.validateChannelHandleCommand){C.validationState={status:"LOADING"};var z;C.ytComponentBehavior.resolveCommand(C.data.validateChannelHandleCommand,{form:{handle:(z=C.handleInput.value)!=null?z:""},commandController:{onSuccess:function(c,
r){C.onValidationResponse(r)},
onServerError:function(c,r){C.onValidationServerError(r)}}})}else C.handleUnexpectedValidationError(new _.ph("Missing validateChannelHandleCommand in ChannelHandleInputRenderer.",C.data))}},I)};
_.u.staticValidation=function(I){var C;if(((C=this.data)==null?void 0:C.channelHandleStaticValidationParams)!==void 0){C=this.data.channelHandleStaticValidationParams;if(this.validValueRegexp!==void 0&&!this.validValueRegexp.test(I)&&C.validValueRegexpErrorMessage!==void 0)return C.validValueRegexpErrorMessage;if(C.minLength!==void 0&&I.length<C.minLength&&C.minLengthErrorMessage!==void 0)return C.minLengthErrorMessage;if(C.maxLength!==void 0&&I.length>C.maxLength&&C.maxLengthErrorMessage!==void 0)return C.maxLengthErrorMessage}};
_.u.onValidationResponse=function(I){var C=_.l(I.result,DuR);C===void 0?this.handleUnexpectedValidationError(new _.ph("ValidateChannelHandleResponse does not contain ChannelHandleValidationResultRenderer.",I)):this.handleValidationResultRenderer(C)};
_.u.onValidationServerError=function(I){this.handleUnexpectedValidationError(new _.ph("ValidateChannelHandle request failed.",I))};
_.u.handleValidationResultRenderer=function(I){if(I.handle===void 0)this.handleUnexpectedValidationError(new _.ph("ChannelHandleValidationResultRenderer does not contain handle.",I));else if(I.handle===this.handleInput.value)switch(I.result){case "CHANNEL_HANDLE_VALIDATION_RESULT_OK":this.validationState={status:"OK",handle:I.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:I.errorMessage};break;case "CHANNEL_HANDLE_VALIDATION_RESULT_UNKNOWN":case void 0:this.handleUnexpectedValidationError(new _.ph("Unrecognized ChannelHandleValidationResult",I));break;default:_.C8(I.result)}};
_.u.handleUnexpectedValidationError=function(I){var C;this.validationState={status:"UNKNOWN",handle:(C=this.handleInput.value)!=null?C:""};_.SN(I)};
_.u.stopEventPropagation=function(I){I.stopPropagation()};
_.u.updateHandleOnChannelNameInputChange=function(I){if(!this.wasEdited){var C,y;this.debouncedGenerateHandleFromName(I,(y=(C=this.data)==null?void 0:C.validationDelayMs)!=null?y:1E3)}};
_.u.debouncedGenerateHandleFromName=function(I,C){var y=this;_.KK(this,"debouncedGenerateHandleFromName",function(){var k;(k=y.data)!=null&&k.validateChannelHandleCommand?y.ytComponentBehavior.resolveCommand(y.data.validateChannelHandleCommand,{form:{name:I},commandController:{onSuccess:function(F,z){y.onGenerateHandleFromNameResponse(z)},
onServerError:function(F,z){_.SN(new _.ph("Error calling GenerateHandleFromName",z))}}}):_.SN(new _.ph("Missing validateChannelHandleCommand in ChannelHandleInputRenderer when generate handle from name.",y.data))},C)};
_.u.onGenerateHandleFromNameResponse=function(I){this.wasEdited||((I=_.l(I.result,pVY))?this.setHandleInputValue(I.handle):_.SN(new _.ph("Invalid results when generate handle from name")))};
_.H1.Object.defineProperties(gE.prototype,{value:{configurable:!0,enumerable:!0,get:function(){var I;if(I=this.validationState)I=this.validationState,I=I.status==="OK"||I.status==="UNKNOWN";if(I)return this.validationState.handle}},
errorIndicator:{configurable:!0,enumerable:!0,get:function(){var I;if(((I=this.validationState)==null?void 0:I.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 I,C=(I=this.channelHandleEntity)==null?void 0:I.handleEdit;this.handleDir=this.getHandleDir(C!=null?C:"");return C}},
validValueRegexp:{configurable:!0,enumerable:!0,get:function(){var I,C;if(((I=this.data)==null?void 0:(C=I.channelHandleStaticValidationParams)==null?void 0:C.validValueRegexp)!==void 0)return new RegExp("^"+this.data.channelHandleStaticValidationParams.validValueRegexp+"$")}}});
gE.prototype.stopEventPropagation=gE.prototype.stopEventPropagation;gE.prototype.onDataChanged=gE.prototype.onDataChanged;gE.prototype.applyHandleEdit=gE.prototype.applyHandleEdit;gE.prototype.onValueChanged=gE.prototype.onValueChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],gE.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],gE.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],gE.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Boolean)],gE.prototype,"wasEdited",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],gE.prototype,"handleDir",void 0);_.E([_.z$("#handle-input"),_.h("design:type",Object)],gE.prototype,"handleInput",void 0);_.E([_.d(),_.v("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],gE.prototype,"value",null);
_.E([_.FI("value"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gE.prototype,"onValueChanged",null);_.E([_.v("validationState"),_.h("design:type",Object),_.h("design:paramtypes",[])],gE.prototype,"errorIndicator",null);_.E([_.d({reflectToAttribute:!0}),_.v("errorIndicator"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],gE.prototype,"borderErrorIndicator",null);
_.E([_.d({selectorArgs:["data.channelHandleEntityKey"],selector:function(I,C){return _.cg(I.entities,"channelHandle",C)}}),
_.h("design:type",Object)],gE.prototype,"channelHandleEntity",void 0);_.E([_.v("channelHandleEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],gE.prototype,"handleEdit",null);_.E([_.FI("handleEdit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gE.prototype,"applyHandleEdit",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],gE.prototype,"onDataChanged",null);
_.E([_.v("data.channelHandleStaticValidationParams.validValueRegexp"),_.h("design:type",Object),_.h("design:paramtypes",[])],gE.prototype,"validValueRegexp",null);_.E([_.km("yt-service-request-sent"),_.km("yt-service-request-completed"),_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],gE.prototype,"stopEventPropagation",null);gE=_.E([_.m({is:"ytd-channel-handle-input-renderer",disableElementRegistration:!0})],gE);
_.Z(gE,"ytd-channel-handle-input-renderer",function(){if(j5K!==void 0)return j5K;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return j5K=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var v_=function(){var I=_.q.apply(this,arguments)||this;I.data=null;I.errorMessage=null;I.isLoading=!0;I.hideContainer=!1;I.enableNewChannelCreationOnIdForAll=_.V("enable_new_channel_creation_for_id4all");I.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"};I.testOnly={setErrorMessage:function(C){I.resetErrorState();
I.setErrorState(C)}};
return I};
_.R(v_,_.q);_.u=v_.prototype;_.u.created=function(){this.logScreenVe()};
_.u.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")};
_.u.dataChanged=function(){this.set("isLoading",!1);this.graftServerVe();this.set("errorMessage",null);var I;((I=this.zeroStepErrorMessageEntity)==null?0:I.value)&&this.set("errorMessage",_.Ee(this.zeroStepErrorMessageEntity.value))};
_.u.onCreateTap=function(){var I=this;if(this.data&&this.data.channelCreationEndpoint){var C,y;if(!((C=this.data.createChannelButton)==null?0:(y=C.buttonRenderer)==null?0:y.isDisabled)){var k;if((k=this.nameInput)!=null&&k.value){this.setLoadingState();var F,z;C=Object.assign({},{name:this.nameInput.value},this.encryptedBlobId?{encryptedBlobId:this.encryptedBlobId}:{avatar_url:this.userSetPhotoThumbnailUrl},{handle:(F=this.handleInput)==null?void 0:F.value,isNameChanged:this.isNameChanged(this.nameInput.value),
isHandleChanged:this.isHandleChanged((z=this.handleInput)==null?void 0:z.value),isDefaultProfilePhoto:this.data.isDefaultProfilePhoto,obakeImageSource:this.obakeImageSource,enableIdentityForAllChannelCreationDialog:this.enableIdentityForAllChannelCreationDialog});this.ytComponentBehavior.resolveCommand(this.data.channelCreationEndpoint,{form:C,commandController:{onSuccess:function(c,r){I.onChannelCreationEndpointSuccess(r);I.obakeImageSource&&_.b2("channelCreatedWithObakeImage",{imageSourceType:I.obakeImageSource})},
onServerError:function(){I.onChannelCreationEndpointError()}}});
this.maybeWipeZeroStepErrorMessage()}}}};
_.u.endpointRequiresServiceRequestAction=function(I){return!!_.l(I,_.Gb)||!!_.l(I,LqL)};
_.u.isNavigateAction=function(I){var C;return!!_.l(I,_.ST)||!!_.l((C=_.l(I,VcS))==null?void 0:C.command,_.ST)};
_.u.isPlaylistAction=function(I){return!!_.l(I,_.bv)||!!_.l(I,_.KZ)};
_.u.onChannelCreationEndpointSuccess=function(I){if(I.createChannelError){var C;this.setErrorState((C=I.createChannelError)==null?void 0:C.errorMessage);this.handleInput&&this.handleInput.validate()}else{_.V("enable_secondary_channel_creation_form")&&I.navigationEndpoint&&this.ytComponentBehavior.resolveCommand(I.navigationEndpoint);if(I.actions){C=_.T(I.actions);for(var y=C.next();!y.done;y=C.next())if(y=y.value,this.endpointRequiresServiceRequestAction(y)&&this.ytComponentBehavior.resolveCommand(y),
this.isNavigateAction(y)){var k=void 0;y=_.l((k=_.l(y,VcS))==null?void 0:k.command,_.ST);k=void 0;this.isPlaylistAction((k=y)==null?void 0:k.endpoint)&&(_.Fe(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"]),k=void 0,this.ytComponentBehavior.resolveCommand((k=y)==null?void 0:k.endpoint))}}I.actions&&I.actions.some(function(F){var z;return _.l(F,_.ST)||_.l((z=_.l(F,VcS))==null?void 0:z.command,_.ST)})||_.Fe(this.hostElement,"yt-close-popup-action",["ytd-channel-creation-dialog-renderer"])}};
_.u.onChannelCreationEndpointError=function(){this.setErrorState();this.handleInput&&this.handleInput.validate()};
_.u.onCancelTap=function(){var I,C,y;if(!((I=this.data)==null?0:(C=I.cancelButton)==null?0:(y=C.buttonRenderer)==null?0:y.isDisabled)){var k,F,z;I=(k=this.data)==null?void 0:(F=k.cancelButton)==null?void 0:(z=F.buttonRenderer)==null?void 0:z.command;if(!I||!_.l(I,_.$Im)){var c;this.nameInput&&((c=this.data)==null?0:c.name)&&(this.nameInput.value=this.data.name);var r;this.handleInput&&((r=this.data)==null?0:r.channelHandleInput)&&(this.handleInput.data=_.l(this.data.channelHandleInput,QiK));this.encryptedBlobId=
this.previewDataUrl=void 0;this.maybeWipeZeroStepErrorMessage()}}};
_.u.toggleCreateChannelButton=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!this.nameInput.value||this.handleInput&&this.handleInput.value===void 0)};
_.u.onChannelNameInput=function(){this.toggleCreateChannelButton();this.handleInput&&this.nameInput.value&&this.handleInput.updateHandleOnChannelNameInputChange(this.nameInput.value)};
_.u.onClearProfilePhotoTap=function(){var I,C,y;((I=this.data)==null?0:(C=I.clearProfilePhotoButton)==null?0:(y=C.buttonRenderer)==null?0:y.isDisabled)||(this.set("data.isDefaultProfilePhoto",!0),this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",!0))};
_.u.onEditAvatarTap=function(){var I,C,y;((I=this.data)==null?0:(C=I.editAvatarButton)==null?0:(y=C.buttonRenderer)==null?0:y.isDisabled)||(this.hideContainer=!0,this.openProfilePicturePicker())};
_.u.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)};
_.u.resetErrorState=function(){this.set("data.createChannelButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);var I;this.set("data.clearProfilePhotoButton.buttonRenderer.isDisabled",((I=this.data)==null?0:I.isDefaultProfilePhoto)?!0:!1);this.set("isLoading",!1);this.set("errorMessage",null)};
_.u.setErrorState=function(I){this.resetErrorState();if(I)this.set("errorMessage",I);else{var C;if((C=this.zeroStepErrorMessageEntity)==null?0:C.value)this.set("errorMessage",_.Ee(this.zeroStepErrorMessageEntity.value));else{var y;((y=this.data)==null?0:y.errorMessage)?this.set("errorMessage",this.data.errorMessage):this.set("errorMessage",null)}}};
_.u.fetchImageBlobWithAlr=function(I,C){C=C===void 0?5:C;var y=this,k,F,z,c,r;return _.e(function(w){switch(w.nextAddress){case 1:return _.n(w,fetch(I,{method:"GET",mode:"cors"}),2);case 2:k=w.yieldResult;if(k.ok){w.jumpTo(3);break}if(C===0)throw Error();F=y.addJitter(Math.pow(2,5-C));return _.n(w,new Promise(function(L){setTimeout(L,F*1E3)}),4);
case 4:return w.return(y.fetchImageBlobWithAlr(I,C-1));case 3:if(!k.headers.get("content-type").split(";").some(function(L){return L.trim()==="text/plain"})){w.jumpTo(5);
break}z=y;c=z.fetchImageBlobWithAlr;return _.n(w,k.text(),6);case 6:return w.return(c.call(z,w.yieldResult,C-1));case 5:return _.n(w,k.blob(),7);case 7:return r=w.yieldResult,w.return(r)}})};
_.u.addJitter=function(I){var C=I*.3*Math.random();Math.random()>.5&&(C*=-1);return I+C};
_.u.openProfilePicturePicker=function(){var I=this,C,y,k,F,z;return _.e(function(c){if(c.nextAddress==1){C=I.data.scottyUploadUrl;if(!C)return c.return();y=document.documentElement.hasAttribute("dark");k=document.body.style.colorScheme;y&&(document.body.style.colorScheme="dark");F=lzM(XvY(jhY(P4Y(y?"dark":"light")),function(r){var w,L,D,p,Q;return _.e(function(X){if(X.nextAddress==1)return w=_.Vx(fA8(new pt(r.photoUrl,!1)).build(),"alr","yes"),I.obakeImageSource=I.pictureChangeSourceToObakeImageSourceType(r.photoSource),
_.aM(X,2),I.setLoadingState(),_.n(X,I.fetchImageBlobWithAlr(w),4);if(X.nextAddress!=2)return L=X.yieldResult,D=new FileReader,D.addEventListener("load",function(){var b,S,A,x,B,t;return _.e(function(U){if(U.nextAddress==1){if(L.size>15728640)return I.setErrorState((b=I.data)==null?void 0:b.imageSizeErrorMessage),_.SN(Error("il")),U.return();if(!D.result)return I.setErrorState((S=I.data)==null?void 0:S.genericImageLoadErrorMessage),_.SN(Error("jl")),U.return();A=D.result;_.aM(U,2);return _.n(U,kLL(L,
C),4)}if(U.nextAddress!=2)return x=U.yieldResult,I.handleImageUpdatedAction(A,x),I.resetErrorState(),_.dC(U,0);B=_.sj(U);I.setErrorState((t=I.data)==null?void 0:t.uploadErrorMessage);if(B instanceof Error)_.GB(B);else{var yW=new _.ph(JSON.stringify(B));_.GB(yW)}_.oI(U)})}),D.readAsDataURL(L),_.dC(X,0);
p=_.sj(X);I.setErrorState((Q=I.data)==null?void 0:Q.genericImageLoadErrorMessage);p instanceof Error?_.GB(p):_.fi(new _.ph(JSON.stringify(p)));_.oI(X)})}),function(){I.hideContainer=!1;
document.body.style.colorScheme=k});
_.aM(c,2);return _.n(c,F.openPicker(),4)}if(c.nextAddress!=2)return _.dC(c,0);_.sj(c);I.setErrorState((z=I.data)==null?void 0:z.selectImageErrorMessage);_.oI(c)})};
_.u.pictureChangeSourceToObakeImageSourceType=function(I){switch(I){case 1:return 1;case 2:return 2;case 3:return 3;case 4:return 4;default:return 0}};
_.u.logScreenVe=function(){_.s7(_.e2(),124448)};
_.u.graftServerVe=function(){var I=_.fq(),C,y,k=(C=this.data)==null?void 0:(y=C.loggingDirectives)==null?void 0:y.trackingParams;k&&I&&(this.channelCreationFormVe=_.e2().graftServerVe(k,I),I={visualElement:this.channelCreationFormVe},_.Tp().reportShown(I))};
_.u.isNameChanged=function(I){var C;return((C=this.data)==null?void 0:C.name)!==I};
_.u.isHandleChanged=function(I){var C,y=_.l((C=this.data)==null?void 0:C.channelHandleInput,QiK);return y&&I?y.handle!==I:!1};
_.u.handleImageUpdatedAction=function(I,C){this.hideContainer=!1;this.previewDataUrl=I;this.encryptedBlobId=C};
_.u.handleImageSelectionErrorAction=function(I){this.hideContainer=!1;this.setErrorState(I)};
_.u.handleImageSelectionResetErrorAction=function(){this.hideContainer=!1;this.resetErrorState()};
_.u.showContainer=function(){this.hideContainer=!1};
_.u.maybeWipeZeroStepErrorMessage=function(){var I,C=(I=this.data)==null?void 0:I.zeroStepErrorMessageEntityKey,y;C&&((y=this.zeroStepErrorMessageEntity)==null?0:y.value)&&this.ytdReduxBehavior.dispatch(_.wJ("stringEntity",C,{key:C,value:""}))};
_.H1.Object.defineProperties(v_.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 I;return((I=this.photoThumbnail)==null?0:I.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 I;return!((I=this.data)==null||!I.descriptionInfo)}},
description:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.descriptionInfo}}});
v_.prototype.dataChanged=v_.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],v_.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],v_.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],v_.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],v_.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],v_.prototype,"errorMessage",void 0);
_.E([_.d(),_.h("design:type",Object)],v_.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",String)],v_.prototype,"previewDataUrl",void 0);_.E([_.d(),_.h("design:type",Number)],v_.prototype,"obakeImageSource",void 0);_.E([_.d(),_.h("design:type",Object)],v_.prototype,"hideContainer",void 0);_.E([_.z$("#title-input"),_.h("design:type",Object)],v_.prototype,"nameInput",void 0);_.E([_.z$("#handle-input"),_.h("design:type",Object)],v_.prototype,"handleInput",void 0);
_.E([_.d(),_.h("design:type",Boolean)],v_.prototype,"enableNewChannelCreationOnIdForAll",void 0);_.E([_.d({selectorArgs:["data.zeroStepErrorMessageEntityKey"],selector:_.cgO}),_.h("design:type",Object)],v_.prototype,"zeroStepErrorMessageEntity",void 0);_.E([_.v("data","data.isDefaultProfilePhoto","previewDataUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],v_.prototype,"photoThumbnail",null);
_.E([_.v("data","data.isDefaultProfilePhoto","photoThumbnail"),_.h("design:type",Object),_.h("design:paramtypes",[])],v_.prototype,"userSetPhotoThumbnailUrl",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],v_.prototype,"hideProfilePhotoButtonLayer",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],v_.prototype,"enableIdentityForAllChannelCreationDialog",null);
_.E([_.rW("data","zeroStepErrorMessageEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],v_.prototype,"dataChanged",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.descriptionInfo","zeroStepErrorMessageEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],v_.prototype,"description",null);v_=_.E([_.m({is:"ytd-channel-creation-dialog-renderer",disableElementRegistration:!0})],v_);
_.Z(v_,"ytd-channel-creation-dialog-renderer",function(){if(VJK!==void 0)return VJK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return VJK=I},{mode:1});var lgM;var W_=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;I.isDisabled=!1;return I};
_.R(W_,_.q);W_.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
W_.prototype.updateDisabled=function(){var I;this.isDisabled=this.isLoading||((I=this.handleInput)==null?void 0:I.value)===void 0;this.set("data.saveButton.buttonRenderer.isDisabled",this.isDisabled)};
W_.prototype.onSaveClick=function(){var I=this;if(!this.isDisabled&&this.handleInput.value!==void 0){var C;((C=this.data)==null?void 0:C.editChannelHandleEndpoint)!==void 0&&(this.errorMessage=void 0,this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.editChannelHandleEndpoint,{form:{handle:this.handleInput.value},commandController:{onSuccess:function(){var y;if((y=I.data)==null?0:y.nextEndpoint){var k;I.ytComponentBehavior.resolveCommand((k=I.data)==null?void 0:k.nextEndpoint)}else I.isLoading=
!1,I.closeDialog()},
onServerError:function(){I.isLoading=!1;I.handleInput.validate();var y;I.errorMessage=(y=I.data)==null?void 0:y.errorMessage}}}))}};
W_.prototype.closeDialog=function(){_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
W_.prototype.updateDisabled=W_.prototype.updateDisabled;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],W_.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],W_.prototype,"data",void 0);_.E([_.z$("#handle-input"),_.h("design:type",Object)],W_.prototype,"handleInput",void 0);_.E([_.FI("isLoading"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],W_.prototype,"updateDisabled",null);
W_=_.E([_.m({is:"ytd-channel-handle-edit-dialog-renderer",disableElementRegistration:!0})],W_);
_.Z(W_,"ytd-channel-handle-edit-dialog-renderer",function(){if(lgM!==void 0)return lgM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lgM=I},{mode:1});var XrL;var dE=function(){return _.q.apply(this,arguments)||this};
_.R(dE,_.q);dE.prototype.configureRendererStamper=function(){return{"data.button":{id:"button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.feedback":{id:"feedback",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],dE.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],dE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],dE.prototype,"data",void 0);dE=_.E([_.m({is:"ytd-channel-switcher-footer-renderer",disableElementRegistration:!0})],dE);
_.Z(dE,"ytd-channel-switcher-footer-renderer",function(){if(XrL!==void 0)return XrL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return XrL=I},{mode:1});var $VY;var RAL;var xi=function(){return _.q.apply(this,arguments)||this};
_.R(xi,_.q);xi.prototype.onIronChange=function(){if(this.checkbox&&this.onDontAskAgainChanged)this.onDontAskAgainChanged(this.checkbox.checked)};
xi.prototype.onIronChange=xi.prototype.onIronChange;_.E([_.d(),_.h("design:type",Object)],xi.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Function)],xi.prototype,"onDontAskAgainChanged",void 0);_.E([_.z$("#checkbox"),_.h("design:type",Object)],xi.prototype,"checkbox",void 0);_.E([_.km("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xi.prototype,"onIronChange",null);
xi=_.E([_.m({is:"ytd-identity-prompt-footer-renderer",disableElementRegistration:!0})],xi);
_.Z(xi,"ytd-identity-prompt-footer-renderer",function(){if(RAL!==void 0)return RAL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return RAL=I},{mode:1});var q_=function(){var I=_.q.apply(this,arguments)||this;I.dontAskAgain=!1;I.showPopup=!1;I.boundDontAskAgainChanged=function(C){I.dontAskAgainChanged(C)};
I.boundOnAccountItemTap=function(C){I.onAccountItemTap(C)};
return I};
_.R(q_,_.q);_.u=q_.prototype;
_.u.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]]"}}}}}};
_.u.ready=function(){var I=this;_.f(this.hostElement).querySelector("#container").addEventListener("scroll",function(){I.ytRendererBehavior.markDirty()})};
_.u.dontAskAgainChanged=function(I){this.dontAskAgain=I};
_.u.onAccountItemTap=function(I){if(I){var C={};this.dontAskAgain&&(C={dont_ask_again:this.dontAskAgain});_.Yk(I,C)}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){this.data&&this.redirectOnlyAccount(this.data)};
_.u.redirectOnlyAccount=function(I){I.sections&&I.sections.length>0&&(I=_.l(I.sections[0],_.$mY),(I==null?0:I.contents)&&(I==null?void 0:I.contents.length)<=1?(I=_.B5(window.location.href),(I==null?0:I.next)&&_.cnz(I.next)?_.Yk(I.next):_.Yk("/")):this.showPopup=!0)};
q_.prototype.dataChanged=q_.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],q_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],q_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],q_.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Object)],q_.prototype,"dontAskAgain",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],q_.prototype,"showPopup",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Object)],q_.prototype,"boundDontAskAgainChanged",void 0);_.E([_.d({reflectToAttribute:!1}),_.h("design:type",Object)],q_.prototype,"boundOnAccountItemTap",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q_.prototype,"dataChanged",null);
q_=_.E([_.m({is:"ytd-channel-switcher-renderer",disableElementRegistration:!0})],q_);
_.Z(q_,"ytd-channel-switcher-renderer",function(){if($VY!==void 0)return $VY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return $VY=I},{mode:1});var bDL;var mJ=function(){return _.q.apply(this,arguments)||this};
_.R(mJ,_.q);_.H1.Object.defineProperties(mJ.prototype,{steps:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.steps?this.data.steps:[]}}});
_.E([_.d(),_.h("design:type",Object)],mJ.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],mJ.prototype,"steps",null);mJ=_.E([_.m({is:"ytd-channel-transfer-stepper-renderer",disableElementRegistration:!0})],mJ);
_.Z(mJ,"ytd-channel-transfer-stepper-renderer",function(){if(bDL!==void 0)return bDL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return bDL=I},{mode:1});var YQY;var ZK=function(){var I=_.q.apply(this,arguments)||this;I.data=null;I.isError=!1;I.isLoading=!1;return I};
_.R(ZK,_.q);_.u=ZK.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){this.set("isLoading",!1);this.set("isError",!1)};
_.u.computeProfileName=function(I){return I?I.givenNameValue+" "+I.familyNameValue:""};
_.u.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)};
_.u.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)};
ZK.prototype.onYtServiceRequestError=ZK.prototype.onYtServiceRequestError;ZK.prototype.onYtServiceRequestSent=ZK.prototype.onYtServiceRequestSent;ZK.prototype.dataChanged=ZK.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ZK.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ZK.prototype,"data",void 0);
_.E([_.d({computed:"computeProfileName(data.personalAccountTile.contents.createCoreIdentityChannelContentRenderer)"}),_.h("design:type",String)],ZK.prototype,"profileName",void 0);_.E([_.d(),_.h("design:type",Object)],ZK.prototype,"isError",void 0);_.E([_.d(),_.h("design:type",Object)],ZK.prototype,"isLoading",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ZK.prototype,"dataChanged",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],ZK.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],ZK.prototype,"onYtServiceRequestError",null);ZK=_.E([_.m({is:"ytd-channel-warm-welcome-cont-renderer",disableElementRegistration:!0})],ZK);
_.Z(ZK,"ytd-channel-warm-welcome-cont-renderer",function(){if(YQY!==void 0)return YQY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return YQY=I},{mode:1});var GhK;var B_=function(){var I=_.q.apply(this,arguments)||this;I.data=null;return I};
_.R(B_,_.q);B_.prototype.configureRendererStamper=function(){return{"data.nextButton":{id:"next-button",mapping:{buttonRenderer:"ytd-button-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
B_.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("autofocus")||this.hostElement.setAttribute("autofocus","true")};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],B_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],B_.prototype,"data",void 0);B_=_.E([_.m({is:"ytd-channel-warm-welcome-renderer",disableElementRegistration:!0})],B_);
_.Z(B_,"ytd-channel-warm-welcome-renderer",function(){if(GhK!==void 0)return GhK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return GhK=I},{mode:1});var fgR;var Ey=function(){return _.q.apply(this,arguments)||this};
_.R(Ey,_.q);_.H1.Object.defineProperties(Ey.prototype,{thumbnailDetails:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.authorThumbnail)||{}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ey.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ey.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ey.prototype,"thumbnailDetails",null);Ey=_.E([_.m({is:"ytd-comment-preview-renderer",disableElementRegistration:!0})],Ey);
_.Z(Ey,"ytd-comment-preview-renderer",function(){if(fgR!==void 0)return fgR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fgR=I},{mode:1});var SQY;var hR=function(){return _.q.apply(this,arguments)||this};
_.R(hR,_.q);hR.prototype.configureRendererStamper=function(){return{submitButton:{id:"submit-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.H1.Object.defineProperties(hR.prototype,{submitButton:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.submitButton}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hR.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],hR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hR.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],hR.prototype,"submitButton",null);hR=_.E([_.m({is:"ytd-notice-renderer",disableElementRegistration:!0})],hR);
_.Z(hR,"ytd-notice-renderer",function(){if(SQY!==void 0)return SQY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return SQY=I},{mode:1});var KsM;var Uy=function(){return _.q.apply(this,arguments)||this};
_.R(Uy,_.q);Uy.prototype.configureRendererStamper=function(){return{"data.comment":{id:"comment-preview",mapping:{commentPreviewRenderer:{component:"ytd-comment-preview-renderer"}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Uy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Uy.prototype,"data",void 0);Uy=_.E([_.m({is:"ytd-preview-comment-dialog-content",disableElementRegistration:!0})],Uy);
_.Z(Uy,"ytd-preview-comment-dialog-content",function(){if(KsM!==void 0)return KsM;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return KsM=I},{mode:1});var A4j;var H_=function(){return _.q.apply(this,arguments)||this};
_.R(H_,_.q);H_.prototype.attached=function(){this.hostElement.setAttribute("dialog","true")};
H_.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:{component:"yt-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],H_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],H_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],H_.prototype,"data",void 0);H_=_.E([_.m({is:"ytd-preview-comment-dialog-renderer",disableElementRegistration:!0})],H_);
_.Z(H_,"ytd-preview-comment-dialog-renderer",function(){if(A4j!==void 0)return A4j;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return A4j=I},{mode:1});var glR;var vly=_.V("web_button_rework")&&_.g5("BUTTON_REWORK")||_.V("web_button_rework_with_live"),tR=function(){var I=_.q.apply(this,arguments)||this;I.selectedAmountIndex=1;I.privacyCheckboxValue=!1;I.useAmsterdamStyle=vly;I.amountPlaceholderIndex=-1;return I};
_.R(tR,_.q);_.u=tR.prototype;_.u.onAmountClick=function(I){this.selectedAmountIndex=_.f(this.hostElement).querySelector("#amounts").indexForElement(I.currentTarget)};
_.u.onCloseClick=function(){this.hostElement.hasAttribute("live-chat")&&(_.Fe(this.hostElement,"yt-live-chat-close-buy-flow"),this.ytLiveChatErrorMessageBehavior._setErrorRenderer(null))};
_.u.onDonateButtonClick=function(){if(this.hostElement.hasAttribute("live-chat"))this.donateCommand&&_.Fe(this.hostElement,"yt-live-chat-start-buy-flow",[this.donateCommand,{},this.donationCallback.bind(this)]);else{_.Fe(this.hostElement,"yt-close-popup-action",[this.is]);var I;(I=_.hU())==null||I.getPlayerPromise().then(function(C){C.pauseVideo()})}};
_.u.donationCallback=function(I){I.success?(this.hostElement.hasAttribute("live-chat")&&I.response&&I.response.data&&I.response.data.actions&&_.Fe(this.hostElement,"yt-live-chat-open-popup",[I.response.data.actions[0]]),_.Fe(this.hostElement,"yt-close-popup-action",[this.is]),_.Fe(this.hostElement,"yt-live-chat-close-buy-flow")):I.errorMessageRenderer&&this.ytLiveChatErrorMessageBehavior._setErrorRenderer(I.errorMessageRenderer)};
_.u.setFocusOnCustomAmountInput=function(){this.customAmount!==null&&_.f(this.hostElement).querySelector("#custom-amount-input").focus()};
_.u.updateConfirmationDialogTextWithAmount=function(I){var C=this.getConfirmDialogRuns();C&&this.set(["data","confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs",this.getAmountPlaceholderIndex(C),"text"],this.getFormattedAmount(I))};
_.u.getConfirmDialogRuns=function(){return this.get(["confirmLargeAmount","openPopupAction","popup","confirmDialogRenderer","dialogMessages",0,"runs"],this.data)};
_.u.getAmountPlaceholderIndex=function(I){this.amountPlaceholderIndex<0&&(this.amountPlaceholderIndex=I.findIndex(function(C){return C.text==="${amount}"}));
return this.amountPlaceholderIndex};
_.u.getFormattedAmount=function(I){var C;return(new _.di(4,((C=this.data)==null?void 0:C.currencyCode)||"")).format(I)};
_.u.isAmountValid=function(I){if(I==="")return!1;I=Number(I)*1E6;var C=this.get("minAmountMicros",this.data),y=this.get("maxAmountMicros",this.data);return C&&I<C||y&&I>y?!1:!0};
_.u.setInputError=function(){this.shouldShowValidationError?_.f(this.hostElement).querySelector("#custom-amount-input").setAttribute("invalid",""):_.f(this.hostElement).querySelector("#custom-amount-input").removeAttribute("invalid")};
_.u.setInitialCheckboxValue=function(){var I;this.privacyCheckboxValue=!((I=this.data)==null||!I.privacyCheckboxInitialState)};
_.u.updateCustomAmountInputFromBinding=function(I){this.customAmountInput=I.detail.value};
_.u.updatePrivacyCheckboxValueFromBinding=function(I){this.privacyCheckboxValue=I.detail.value};
_.H1.Object.defineProperties(tR.prototype,{suggestedAmountButtons:{configurable:!0,enumerable:!0,get:function(){var I=this,C,y;return((C=this.data)==null?void 0:(y=C.suggestedAmounts)==null?void 0:y.map(function(k,F){return{buttonRenderer:{style:I.selectedAmountIndex===F?"STYLE_PRIMARY":"STYLE_SUGGESTIVE",text:k.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 I;return!((I=this.data)==null||!I.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 I=this.hostElement.hasAttribute("live-chat")?this.get("payFromLiveChat",this.data):this.get("donateButton.buttonRenderer.command",this.data);if(I&&this.amountMicros!==null)return Object.assign({},I,{ypcGetCartEndpoint:Object.assign({},I.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 I=this.get("confirmLargeAmount",this.data);if(I&&this.amountMicros)return this.updateConfirmationDialogTextWithAmount(this.amountMicros/1E6),this.set("data.confirmLargeAmount.openPopupAction.popup.confirmDialogRenderer.confirmButton.buttonRenderer.command",this.donateCommand),I}},
donateButtonRenderer:{configurable:!0,enumerable:!0,get:function(){var I=this.get("donateButton.buttonRenderer",this.data);if(I)return Object.assign({},I,{isDisabled:!this.isDonateButtonEnabled,command:this.hostElement.hasAttribute("live-chat")?void 0:this.donateCommandWithConfirmation})}}});
tR.prototype.setInitialCheckboxValue=tR.prototype.setInitialCheckboxValue;tR.prototype.setInputError=tR.prototype.setInputError;tR.prototype.setFocusOnCustomAmountInput=tR.prototype.setFocusOnCustomAmountInput;_.E([_.g(BxB),_.h("design:type",Object)],tR.prototype,"ytLiveChatErrorMessageBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tR.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],tR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tR.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],tR.prototype,"selectedAmountIndex",void 0);_.E([_.d(),_.h("design:type",String)],tR.prototype,"customAmountInput",void 0);_.E([_.d(),_.h("design:type",Object)],tR.prototype,"privacyCheckboxValue",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],tR.prototype,"useAmsterdamStyle",void 0);_.E([_.FI("customAmount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tR.prototype,"setFocusOnCustomAmountInput",null);_.E([_.v("data","selectedAmountIndex"),_.h("design:type",Array),_.h("design:paramtypes",[])],tR.prototype,"suggestedAmountButtons",null);
_.E([_.v("data","selectedAmountIndex"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tR.prototype,"isCustomAmountSelected",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tR.prototype,"showPrivacyCheckbox",null);_.E([_.v("data","selectedAmountIndex","customAmount"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"amountMicros",null);
_.E([_.v("isCustomAmountSelected","customAmountInput"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"customAmount",null);_.E([_.v("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tR.prototype,"shouldShowValidationError",null);_.E([_.v("customAmount"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],tR.prototype,"isDonateButtonEnabled",null);
_.E([_.v("data","isDonateButtonEnabled","amountMicros","privacyCheckboxValue"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"donateCommand",null);_.E([_.v("donateCommand","isCustomAmountSelected","confirmLargeAmountCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"donateCommandWithConfirmation",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"largeDonationThreshold",null);
_.E([_.v("customAmount","donateCommand","amountMicros"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"confirmLargeAmountCommand",null);_.E([_.v("data","isDonateButtonEnabled","donateCommandWithConfirmation"),_.h("design:type",Object),_.h("design:paramtypes",[])],tR.prototype,"donateButtonRenderer",null);_.E([_.FI("shouldShowValidationError"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tR.prototype,"setInputError",null);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tR.prototype,"setInitialCheckboxValue",null);tR=_.E([_.m({is:"ytd-donation-amount-picker-renderer",disableElementRegistration:!0})],tR);
_.Z(tR,"ytd-donation-amount-picker-renderer",function(){if(glR!==void 0)return glR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-donation-amount-picker-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="container" class="style-scope ytd-donation-amount-picker-renderer">\n  <div id="top-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="title-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="title" class="style-scope ytd-donation-amount-picker-renderer">\n        <div class="title-text style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.pickerTitle)]]</div>\n        <yt-icon-button dialog-dismiss="" on-click="onCloseClick" class="style-scope ytd-donation-amount-picker-renderer">\n          <yt-icon icon="yt-icons:dismissal" class="style-scope ytd-donation-amount-picker-renderer"></yt-icon>\n        </yt-icon-button>\n      </div>\n    </div>\n    <div id="campaign-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-img-shadow object-fit="CONTAIN" thumbnail="[[data.campaignThumbnail]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-img-shadow>\n      <div id="text-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="campaign-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignTitle)]]\n        </div>\n        <div id="campaign-subtitle" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.campaignSubtitle)]]\n        </div>\n        <div id="description-column" class="style-scope ytd-donation-amount-picker-renderer">\n          <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n          <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n            [[getSimpleString(data.campaignDescription)]]\n          </div>\n        </div>\n      </div>\n    </div>\n    <div id="live-chat-description-column" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="campaign-description style-scope ytd-donation-amount-picker-renderer">\n        [[getSimpleString(data.campaignDescription)]]\n      </div>\n      <div class="separator style-scope ytd-donation-amount-picker-renderer"></div>\n    </div>\n  </div>\n  <div id="bottom-box" class="style-scope ytd-donation-amount-picker-renderer">\n    <div id="nonprofit-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <div class="style-scope ytd-donation-amount-picker-renderer">\n        <div id="nonprofit-title" class="style-scope ytd-donation-amount-picker-renderer">\n          [[getSimpleString(data.nonprofitTitle)]]\n          <yt-icon id="verified-icon" class="inline-icon style-scope ytd-donation-amount-picker-renderer" icon="check_circle" default-to-filled="true">\n          </yt-icon>\n        </div>\n        <yt-formatted-string id="nonprofit-subtitle" text="[[data.nonprofitSubtitle]]" class="style-scope ytd-donation-amount-picker-renderer">\n        </yt-formatted-string>\n      </div>\n    </div>\n    <div id="amount-selector" class="style-scope ytd-donation-amount-picker-renderer">\n      <div id="suggested-amount-buttons-row" class="style-scope ytd-donation-amount-picker-renderer">\n        <template id="amounts" is="dom-repeat" items="[[suggestedAmountButtons]]" class="style-scope ytd-donation-amount-picker-renderer">\n          <ytd-button-renderer class="suggested-amount style-scope ytd-donation-amount-picker-renderer" data="[[item.buttonRenderer]]" on-click="onAmountClick"></ytd-button-renderer>\n        </template>\n      </div>\n      <div id="custom-amount-container" class="style-scope ytd-donation-amount-picker-renderer">\n        <tp-yt-paper-input id="custom-amount-input" allowed-pattern="[0-9]" always-float-label="" error-message="[[getSimpleString(data.amountError)]]" hidden="[[!isCustomAmountSelected]]" label="[[getSimpleString(data.customAmountLabel)]]" use-v2-underline="" value="[[customAmountInput]]" on-value-changed="updateCustomAmountInputFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n          <div prefix="" slot="prefix" class="style-scope ytd-donation-amount-picker-renderer">[[getSimpleString(data.currencySymbol)]]\u00a0</div>\n        </tp-yt-paper-input>\n      </div>\n    </div>\n\n    <tp-yt-paper-checkbox id="privacy-checkbox" checked="[[privacyCheckboxValue]]" hidden="[[!showPrivacyCheckbox]]" on-checked-changed="updatePrivacyCheckboxValueFromBinding" class="style-scope ytd-donation-amount-picker-renderer">\n      <yt-formatted-string split-lines="" text="[[data.privacyCheckboxText]]" class="style-scope ytd-donation-amount-picker-renderer">\n      </yt-formatted-string>\n    </tp-yt-paper-checkbox>\n\n    <div id="button-row" class="style-scope ytd-donation-amount-picker-renderer">\n      <ytd-button-renderer data="[[donateButtonRenderer]]" on-click="onDonateButtonClick" class="style-scope ytd-donation-amount-picker-renderer">\n      </ytd-button-renderer>\n    </div>\n  </div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return glR=I},{mode:1});var WsL;var JR=function(){return _.q.apply(this,arguments)||this};
_.R(JR,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],JR.prototype,"ytComponentBehavior",void 0);_.E([_.d({}),_.h("design:type",Object)],JR.prototype,"data",void 0);JR=_.E([_.m({is:"ytd-donation-post-transaction-content",disableElementRegistration:!0})],JR);
_.Z(JR,"ytd-donation-post-transaction-content",function(){if(WsL!==void 0)return WsL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return WsL=I},{mode:1});var dVL;var Oy=function(){return _.q.apply(this,arguments)||this};
_.R(Oy,_.q);Oy.prototype.configureRendererStamper=function(){return{"data.doneButton":{id:"done-button",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Oy.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Oy.prototype,"ytRendererBehavior",void 0);_.E([_.d({}),_.h("design:type",Object)],Oy.prototype,"data",void 0);Oy=_.E([_.m({is:"ytd-donation-post-transaction-renderer",disableElementRegistration:!0})],Oy);
_.Z(Oy,"ytd-donation-post-transaction-renderer",function(){if(dVL!==void 0)return dVL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return dVL=I},{mode:1});var xVP;var qQY;var ay=function(){return _.q.apply(this,arguments)||this};
_.R(ay,_.q);ay.prototype.computeIsStreamingProvider=function(I){return!!I.isStreamingShelf};
ay.prototype.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",params:{alignByText:!1}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ay.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ay.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ay.prototype,"data",void 0);_.E([_.d({computed:"computeIsStreamingProvider(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],ay.prototype,"isStreamingProvider",void 0);
ay=_.E([_.m({is:"ytd-media-provider-renderer",disableElementRegistration:!0})],ay);
_.Z(ay,"ytd-media-provider-renderer",function(){if(qQY!==void 0)return qQY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qQY=I},{mode:1});var mVL;var M_=function(){return _.q.apply(this,arguments)||this};
_.R(M_,_.q);M_.prototype.observeLightsourcePalette=function(){var I,C=(I=this.data)==null?void 0:I.vibrantsourceColorPaletteData;C&&_.N3(this.hostElement,C)};
M_.prototype.observeLightsourcePalette=M_.prototype.observeLightsourcePalette;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],M_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],M_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],M_.prototype,"data",void 0);
_.E([_.FI("data.vibrantsourceColorPaletteData"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],M_.prototype,"observeLightsourcePalette",null);M_=_.E([_.m({is:"ytd-streaming-pop-up-dialog",disableElementRegistration:!0})],M_);
_.Z(M_,"ytd-streaming-pop-up-dialog",function(){if(mVL!==void 0)return mVL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return mVL=I},{mode:1});var Ix=function(){return _.q.apply(this,arguments)||this};
_.R(Ix,_.q);Ix.prototype.onPopupOpened_=function(){var I;((I=this.data)==null?0:I.serviceEndpoint)&&_.N().resolve(_.ID).resolveCommand(this.data.serviceEndpoint,{form:{element:this.hostElement}})};
Ix.prototype.configureContinuationPathMap=function(){return{"yt-reload-continuation-items-command-body":"content"}};
Ix.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"}}}}};
Ix.prototype.onPopupOpened_=Ix.prototype.onPopupOpened_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ix.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ix.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.b1),_.h("design:type",Object)],Ix.prototype,"ytContinuationHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ix.prototype,"data",void 0);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ix.prototype,"onPopupOpened_",null);Ix=_.E([_.m({is:"ytd-brandconnect-popup-renderer",disableElementRegistration:!0})],Ix);
_.Z(Ix,"ytd-brandconnect-popup-renderer",function(){if(xVP!==void 0)return xVP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xVP=I},{mode:1});var ZDY;var CU=function(){return _.q.apply(this,arguments)||this};
_.R(CU,_.q);_.u=CU.prototype;_.u.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{checkboxSurveyOptionRenderer:"ytd-checkbox-survey-option-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){for(var I=0;I<this.getOptionRenderers().length;I++)this.notifyPath("data.options."+I+".checkboxSurveyOptionRenderer.checked"),this.set("data.options."+I+".checkboxSurveyOptionRenderer.checked",!1);this.updateSubmitButton(!1)};
_.u.updateSubmitButton=function(I){this.set("data.submitButton.buttonRenderer.isDisabled",!I)};
_.u.computeAlt=function(I){return _.hS(I)};
_.u.onDismissTap=function(){_.Fe(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.u.getOptionRenderers=function(I){return(I=I||this.data)&&I.options?I.options.reduce(function(C,y){y.checkboxSurveyOptionRenderer&&C.push(y.checkboxSurveyOptionRenderer);return C},[]):[]};
_.u.onOptionChange=function(I){var C=this,y=!1;if(I.detail.checked)for(var k=this.getOptionRenderers().find(function(r){return r.value===I.detail.value}),F=this.getOptionRenderers(),z=0;z<F.length;z++){var c=F[z];
this.notifyPath("data.options."+z+".checkboxSurveyOptionRenderer.checked");c.checked&&((k==null?0:k.isExclusiveOption)?!c.isExclusiveOption:c.isExclusiveOption)?this.set("data.options."+z+".checkboxSurveyOptionRenderer.checked",!1):c.checked&&(y=!0)}else y=this.getOptionRenderers().some(function(r,w){C.notifyPath("data.options."+w+".checkboxSurveyOptionRenderer.checked");return r.checked});
this.updateSubmitButton(y)};
_.u.onSubmitTap=function(){var I=this.getOptionRenderers().filter(function(z){return z.checked});
if(I.length!==0){var C=I.map(function(z){return z.responseEndpoint});
I=[];for(var y=1;y<C.length;y++){var k=void 0,F=(k=_.l(C[y],_.fI))==null?void 0:k.feedbackToken;F&&I.push(F)}C=[C[0]];I.length&&C.push({extra_feedback_tokens:I});_.Tg(this.hostElement,C);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-checkbox-survey-renderer"]);I=this.data&&this.data.submitActions||[];if(_.V("kevlar_command_handler_migration_killswitch"))_.cQ(this.hostElement,I,this.hostElement);else for(I=_.T(I),C=I.next();!C.done;C=I.next())this.ytComponentBehavior.resolveCommand(C.value)}};
CU.prototype.onOptionChange=CU.prototype.onOptionChange;CU.prototype.dataChanged=CU.prototype.dataChanged;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],CU.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],CU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],CU.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],CU.prototype,"ytRendererBehavior",void 0);_.E([_.g(T3R),_.h("design:type",Object)],CU.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],CU.prototype,"data",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],CU.prototype,"dataChanged",null);
_.E([_.km("ytd-checkbox-survey-option-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],CU.prototype,"onOptionChange",null);CU=_.E([_.m({is:"ytd-checkbox-survey-renderer",disableElementRegistration:!0})],CU);
_.Z(CU,"ytd-checkbox-survey-renderer",function(){if(ZDY!==void 0)return ZDY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZDY=I},{mode:1});var Bp8;var ElP;var sT=function(){return _.q.apply(this,arguments)||this};
_.R(sT,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sT.prototype,"ytRendererBehavior",void 0);_.E([_.g(zvK),_.h("design:type",Object)],sT.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sT.prototype,"data",void 0);sT=_.E([_.m({is:"ytd-dismissal-reason-text-renderer",disableElementRegistration:!0})],sT);
_.Z(sT,"ytd-dismissal-reason-text-renderer",function(){if(ElP!==void 0)return ElP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ElP=I},{mode:1});var hAK;var ox=function(){return _.q.apply(this,arguments)||this};
_.R(ox,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ox.prototype,"ytRendererBehavior",void 0);_.E([_.g(zvK),_.h("design:type",Object)],ox.prototype,"ytdDismissalReasonBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ox.prototype,"data",void 0);ox=_.E([_.m({is:"ytd-dismissal-reason-video-renderer",disableElementRegistration:!0})],ox);
_.Z(ox,"ytd-dismissal-reason-video-renderer",function(){if(hAK!==void 0)return hAK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return hAK=I},{mode:1});var yT=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(yT,_.q);_.u=yT.prototype;_.u.created=function(){this.selectedFeedbackTokens=new W6};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.reasons":{id:"reasons",mapping:{dismissalReasonTextRenderer:"ytd-dismissal-reason-text-renderer",dismissalReasonVideoRenderer:"ytd-dismissal-reason-video-renderer"}}}};
_.u.dataChanged=function(){this.hasReasonsSelected=!1;this.selectedFeedbackTokens.clear()};
_.u.onDismissalReasonSelected=function(I,C){_.k3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.add(C);this.hasReasonsSelected=!0};
_.u.onDismissalReasonDeselected=function(I,C){_.k3(this.hostElement,"yt-invalidate-popup-tabbables");this.selectedFeedbackTokens.delete(C);this.hasReasonsSelected=this.selectedFeedbackTokens.size!==0};
_.u.onCancelTap=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
_.u.onSubmitTap=function(){var I=Array.from(this.selectedFeedbackTokens.values());this.data.submitFeedbackEndpoint&&(I={feedback_tokens:I},_.V("web_ytd_dismissal_follow_up_renderer_command_resolver_ks")?_.Tg(this.hostElement,[this.data.submitFeedbackEndpoint,I]):_.N().resolve(_.ID).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},I,{element:this.hostElement})}));_.Fe(this.hostElement,"yt-close-popup-action")};
yT.prototype.onDismissalReasonDeselected=yT.prototype.onDismissalReasonDeselected;yT.prototype.onDismissalReasonSelected=yT.prototype.onDismissalReasonSelected;yT.prototype.dataChanged=yT.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],yT.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],yT.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],yT.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Boolean)],yT.prototype,"hasReasonsSelected",void 0);_.E([_.d(),_.h("design:type",W6)],yT.prototype,"selectedFeedbackTokens",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],yT.prototype,"darkerDarkTheme",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yT.prototype,"dataChanged",null);
_.E([_.km("yt-dismissal-reason-selected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],yT.prototype,"onDismissalReasonSelected",null);_.E([_.km("yt-dismissal-reason-deselected"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,String]),_.h("design:returntype")],yT.prototype,"onDismissalReasonDeselected",null);yT=_.E([_.m({is:"ytd-dismissal-follow-up-renderer",disableElementRegistration:!0})],yT);
_.Z(yT,"ytd-dismissal-follow-up-renderer",function(){if(Bp8!==void 0)return Bp8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Bp8=I},{mode:1});var UVL;var kn=function(){return _.q.apply(this,arguments)||this};
_.R(kn,_.q);_.u=kn.prototype;_.u.onCheckedChange=function(){this.multiselect||_.k3(this.hostElement,"yt-feedback-single-select-changed");_.f(this.hostElement).querySelector("#freeform").focus();_.k3(this.hostElement,"yt-refit")};
_.u.showTextBox=function(I,C){return I&&C};
_.u.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))};
_.u.updateDataCheckedFromBinding=function(I){this.set("data.checked",I.detail.value)};
_.u.updateDataResultTextFromBinding=function(I){this.set("data.resultText",I.detail.value)};
kn.prototype.dataChanged=kn.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kn.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kn.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],kn.prototype,"multiselect",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kn.prototype,"dataChanged",null);
kn=_.E([_.m({is:"ytd-feedback-option-renderer",disableElementRegistration:!0})],kn);
_.Z(kn,"ytd-feedback-option-renderer",function(){if(UVL!==void 0)return UVL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UVL=I},{mode:1});var HDR;var FX=function(){return _.q.apply(this,arguments)||this};
_.R(FX,_.q);FX.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{feedbackOptionRenderer:{component:"ytd-feedback-option-renderer",properties:{multiselect:"[[data.multiSelect]]"}}}}}};
FX.prototype.onSingleSelectCheckedChanged=function(I){I=_.m0(I);for(var C=0;C<this.data.options.length;C++)if(I.data!==_.l(this.data.options[C],F_B)){var y="data.options."+C+".feedbackOptionRenderer.checked";this.notifyPath(y);this.set(y,!1)}};
FX.prototype.onSingleSelectCheckedChanged=FX.prototype.onSingleSelectCheckedChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],FX.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],FX.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],FX.prototype,"data",void 0);
_.E([_.km("yt-feedback-single-select-changed"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],FX.prototype,"onSingleSelectCheckedChanged",null);FX=_.E([_.m({is:"ytd-feedback-question-renderer",disableElementRegistration:!0})],FX);
_.Z(FX,"ytd-feedback-question-renderer",function(){if(HDR!==void 0)return HDR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HDR=I},{mode:1});var tJL;var ur=function(){return _.q.apply(this,arguments)||this};
_.R(ur,_.q);ur.prototype.configureRendererStamper=function(){return{"data.questions":{id:"questions",mapping:{feedbackQuestionRenderer:"ytd-feedback-question-renderer"}}}};
ur.prototype.getSelectedFeedbackResults=function(){for(var I={},C=0;C<this.data.questions.length;C++)for(var y=_.l(this.data.questions[C],kXR),k=0;k<y.options.length;k++){var F=_.l(y.options[k],F_B);F&&F.checked&&(I[F.optionKey]=F.resultText)}return I};
ur.prototype.onKeyUp=function(){var I=this;_.tE(_.b$,function(){_.k3(I.hostElement,"yt-refit")});
_.b$.start()};
ur.prototype.submitSurvey=function(){var I=this.getSelectedFeedbackResults();Object.keys(I).length>0&&this.data.submitFeedbackEndpoint&&(I={survey_results:I,is_feedback_token_unencrypted:!0},_.V("web_ytd_feedback_survey_renderer_command_resolver_ks")?_.Tg(this.hostElement,[this.data.submitFeedbackEndpoint,I]):_.N().resolve(_.ID).resolveCommand(this.data.submitFeedbackEndpoint,{form:Object.assign({},I,{element:this.hostElement})}))};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ur.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ur.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ur.prototype,"data",void 0);ur=_.E([_.m({is:"ytd-feedback-survey-renderer",disableElementRegistration:!0})],ur);
_.Z(ur,"ytd-feedback-survey-renderer",function(){if(tJL!==void 0)return tJL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return tJL=I},{mode:1});var J4y;var ODj;var zQ=function(){return _.q.apply(this,arguments)||this};
_.R(zQ,_.q);zQ.prototype.computeAlt=function(I){return _.hS(I)};
zQ.prototype.submitResponse=function(){var I,C;(I=this.data)!=null&&I.feedbackToken&&((C=this.data)==null?void 0:C.nextStageIndex)!==void 0&&(_.uW(this.hostElement,"yt-single-select-submit-feedback",[this.data.feedbackToken]),_.uW(this.hostElement,"yt-survey-set-stage-index",[this.data.nextStageIndex]))};
zQ.prototype.onClick=function(){this.submitResponse()};
zQ.prototype.onClick=zQ.prototype.onClick;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zQ.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],zQ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],zQ.prototype,"vertical",void 0);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zQ.prototype,"onClick",null);
zQ=_.E([_.m({is:"ytd-single-select-answer-option-renderer",disableElementRegistration:!0})],zQ);
_.Z(zQ,"ytd-single-select-answer-option-renderer",function(){if(ODj!==void 0)return ODj;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ODj=I},{mode:1});var agK;var TQ=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.actionMap={"yt-single-select-submit-feedback":"submitFeedback"};return I};
_.R(TQ,_.q);TQ.prototype.configureRendererStamper=function(){return{"data.answerOptions":{id:"options",mapping:{singleSelectAnswerOptionRenderer:{component:"ytd-single-select-answer-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
TQ.prototype.dataChanged=function(){var I,C;this.vertical=((C=(I=this.data)==null?void 0:I.answerOrientation)!=null?C:"SURVEY_LAYOUT_TYPE_HORIZONTAL")==="SURVEY_LAYOUT_TYPE_VERTICAL"};
TQ.prototype.submitFeedback=function(I){var C;((C=this.data)==null?0:C.responseEndpoint)&&I&&_.Tg(this.hostElement,[this.data.responseEndpoint,{extra_feedback_tokens:[I]}])};
TQ.prototype.dataChanged=TQ.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],TQ.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],TQ.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],TQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],TQ.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],TQ.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],TQ.prototype,"vertical",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],TQ.prototype,"darkerDarkTheme",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],TQ.prototype,"dataChanged",null);TQ=_.E([_.m({is:"ytd-single-select-question-renderer",disableElementRegistration:!0})],TQ);
_.Z(TQ,"ytd-single-select-question-renderer",function(){if(agK!==void 0)return agK;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return agK=I},{mode:1});var cI=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-survey-set-stage-index":"jumpToStage"};return I};
_.R(cI,_.q);_.u=cI.prototype;_.u.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"}}}};
_.u.dataChanged=function(){this.jumpToStage(0)};
_.u.jumpToStage=function(I){var C,y;if((C=this.data)==null?0:(y=C.stages)==null?0:y[I])this.currentStage=this.data.stages[I],this.refitAfterRender()};
_.u.computeAlt=function(I){return _.hS(I)};
_.u.computeSimpleMessage=function(I){var C;return(C=_.l(I,TOH))==null?void 0:C.messageText};
_.u.computeHideDismiss=function(I){var C;return(C=_.l(I,grL))==null?void 0:C.hideParentDismissButton};
_.u.onDismissTap=function(){_.Fe(this.hostElement,"yt-close-popup-action");_.l(this.currentStage,TOH)||this.data.dismissalEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}})};
_.u.refitAfterRender=function(){var I=this;_.hn(this,function(){_.k3(I.hostElement,"yt-refit")})};
cI.prototype.dataChanged=cI.prototype.dataChanged;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],cI.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],cI.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],cI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],cI.prototype,"ytActionHandlerBehavior",void 0);
_.E([_.g(T3R),_.h("design:type",Object)],cI.prototype,"ytdHatsSurveyBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cI.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],cI.prototype,"currentStage",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],cI.prototype,"dataChanged",null);cI=_.E([_.m({is:"ytd-multi-stage-survey-renderer",disableElementRegistration:!0})],cI);
_.Z(cI,"ytd-multi-stage-survey-renderer",function(){if(J4y!==void 0)return J4y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return J4y=I},{mode:1});var MJK;var ep=function(){return _.q.apply(this,arguments)||this};
_.R(ep,_.q);ep.prototype.computeAlt=function(I){return _.hS(I)};
ep.prototype.submitResponse=function(){this.data&&this.data.submissionEndpoint&&(_.N().resolve(_.ID).resolveCommand(this.data.submissionEndpoint,{form:{element:this.hostElement}}),_.Fe(this.hostElement,"yt-close-popup-action",["ytd-single-option-survey-renderer"]),this.ytdReduxBehavior.dispatch(_.kTM(!1)))};
ep.prototype.onTap=function(){this.vertical&&this.submitResponse()};
ep.prototype.onTap=ep.prototype.onTap;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ep.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],ep.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ep.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ep.prototype,"vertical",void 0);
_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ep.prototype,"onTap",null);ep=_.E([_.m({is:"ytd-single-option-survey-option-renderer",disableElementRegistration:!0})],ep);
_.Z(ep,"ytd-single-option-survey-option-renderer",function(){if(MJK!==void 0)return MJK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return MJK=I},{mode:1});var IhL;var r$=function(){return _.q.apply(this,arguments)||this};
_.R(r$,_.q);_.u=r$.prototype;_.u.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{singleOptionSurveyOptionRenderer:{component:"ytd-single-option-survey-option-renderer",properties:{vertical:"[[vertical]]"}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){var I,C;this.vertical=(((I=this.data)==null?void 0:(C=I.surveyOrientation)==null?void 0:C.type)||"HORIZONTAL")==="VERTICAL"};
_.u.computeAlt=function(I){return _.hS(I)};
_.u.onDismissTap=function(){_.Fe(this.hostElement,"yt-close-popup-action");this.data.dismissalEndpoint&&_.N().resolve(_.ID).resolveCommand(this.data.dismissalEndpoint,{form:{element:this.hostElement}});this.ytdReduxBehavior.dispatch(_.kTM(!1))};
r$.prototype.dataChanged=r$.prototype.dataChanged;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],r$.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],r$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],r$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(T3R),_.h("design:type",Object)],r$.prototype,"ytdHatsSurveyBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],r$.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],r$.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],r$.prototype,"vertical",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],r$.prototype,"dataChanged",null);r$=_.E([_.m({is:"ytd-single-option-survey-renderer",disableElementRegistration:!0})],r$);
_.Z(r$,"ytd-single-option-survey-renderer",function(){if(IhL!==void 0)return IhL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return IhL=I},{mode:1});var CnK;var ir=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(ir,_.q);ir.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
ir.prototype.onDismissTap=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
ir.prototype.onNavigate=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
ir.prototype.onNavigate=ir.prototype.onNavigate;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ir.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],ir.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ir.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ir.prototype,"darkerDarkTheme",void 0);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ir.prototype,"onNavigate",null);ir=_.E([_.m({is:"ytd-survey-follow-up-renderer",disableElementRegistration:!0})],ir);
_.Z(ir,"ytd-survey-follow-up-renderer",function(){if(CnK!==void 0)return CnK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return CnK=I},{mode:1});var suL;var oTY;var y2M;var w$=function(){var I=_.q.apply(this,arguments)||this;I.polymer2="Element"in Polymer;return I};
_.R(w$,_.q);_.u=w$.prototype;_.u.ready=function(){this.secondsEl.addEventListener("blur",this.formatSeconds.bind(this))};
_.u.secondsChanged=function(){this.secondsEl.focused||this.formatSeconds()};
_.u.formatSeconds=function(){this.seconds.length===1&&(this.seconds="0"+this.seconds)};
_.u.minutesChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("minutes-changed",this.minutes))};
_.u.secondsChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("seconds-changed",this.seconds))};
_.u.updateMinutesFromBinding=function(I){this.minutes=I.detail.value};
_.u.updateSecondsFromBinding=function(I){this.seconds=I.detail.value};
w$.prototype.secondsChangedForBinding=w$.prototype.secondsChangedForBinding;w$.prototype.minutesChangedForBinding=w$.prototype.minutesChangedForBinding;w$.prototype.secondsChanged=w$.prototype.secondsChanged;_.E([_.d(),_.h("design:type",String)],w$.prototype,"minutes",void 0);_.E([_.d(),_.h("design:type",String)],w$.prototype,"seconds",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],w$.prototype,"polymer2",void 0);
_.E([_.z$("#seconds"),_.h("design:type",Object)],w$.prototype,"secondsEl",void 0);_.E([_.FI("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w$.prototype,"secondsChanged",null);_.E([_.FI("minutes"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w$.prototype,"minutesChangedForBinding",null);
_.E([_.FI("seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],w$.prototype,"secondsChangedForBinding",null);w$=_.E([_.lT({is:"yt-timestamp-input",disableElementRegistration:!0})],w$);
_.Z(w$,"yt-timestamp-input",function(){if(y2M===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;oTY===void 0&&(oTY=document.createElement("template"));var k=oTY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);y2M=I}I=y2M;return I},{mode:2});var nU=function(){return _.q.apply(this,arguments)||this};
_.R(nU,_.q);_.u=nU.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.JSC$17998_scroller.dialogElement=this.hostElement.parentNode};
_.u.dataChanged=function(){var I=this;this.description.value="";this.seconds=this.minutes=this.fullName.value="";this.toggleSubmitButton(!1);this.showTimestamp&&_.UZ().getPlayerPromise().then(function(C){C=C.getCurrentTime();I.minutes=Math.floor(C/60).toString();I.seconds=(Math.floor(C)%60).toString()})};
_.u.onTapSubmit=function(I){I.stopPropagation();this.serviceEndpoint&&!this.get("submitButton.isDisabled")&&(I={flag_description:this.descriptionText.trim(),flag_issue_type:this.issueType,flag_affiliation:this.affiliation},this.fullNameText&&(I.flag_full_name=this.fullNameText.trim()),this.showTimestamp&&(I.minutes=this.minutes,I.seconds=this.seconds),_.N().resolve(_.ID).resolveCommand(this.serviceEndpoint,{form:Object.assign({},I,{element:this.hostElement})}))};
_.u.onYtServiceRequestSent=function(){this.toggleSubmitButton(!1)};
_.u.onYtServiceRequestCompleted=function(I,C){C=C.actions;if(Array.isArray(C))for(var y=0,k=C.length;y<k;y++)_.l(C[y],_.jV)&&(I.stopPropagation(),this.hostElement.parentElement.close(),this.ytOpenPopupBehavior.openPopup(C[y]))};
_.u.onYtServiceRequestError=function(){this.toggleSubmitButton(!0)};
_.u.toggleSubmitButton=function(I){this.set("submitButton.isDisabled",!I)};
_.u.handleInput=function(){var I=this.issueType,C=this.affiliation,y=this.minutes,k=this.seconds;y=!this.showTimestamp||!!y&&!!k;this.toggleSubmitButton(!!this.descriptionText&&!!I&&!!C&&y)};
_.u.computeServiceEndpoint=function(I){return this.get("submitButton.buttonRenderer.serviceEndpoint",I)};
_.u.computeSubmitButton=function(I){(I=this.get("submitButton.buttonRenderer",I))&&(I=Object.assign({},I,{serviceEndpoint:void 0}));return I};
_.u.computeShowTimestamp=function(I){return!!I};
_.u.onValueChangedForIssueType=function(I){this.issueType=I.detail.value};
_.u.onValueChangedForAffiliation=function(I){this.affiliation=I.detail.value};
_.u.updateDescriptionTextFromBinding=function(I){this.descriptionText=I.detail.value};
_.u.updateFullNameTextFromBinding=function(I){this.fullNameText=I.detail.value};
_.u.updateMinutesFromBinding=function(I){this.minutes=I.detail.value};
_.u.updateSecondsFromBinding=function(I){this.seconds=I.detail.value};
nU.prototype.handleInput=nU.prototype.handleInput;nU.prototype.onYtServiceRequestError=nU.prototype.onYtServiceRequestError;nU.prototype.onYtServiceRequestCompleted=nU.prototype.onYtServiceRequestCompleted;nU.prototype.onYtServiceRequestSent=nU.prototype.onYtServiceRequestSent;nU.prototype.dataChanged=nU.prototype.dataChanged;_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],nU.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nU.prototype,"ytRendererBehavior",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],nU.prototype,"JSC$17998_scroller",void 0);_.E([_.z$("#description"),_.h("design:type",HTMLInputElement)],nU.prototype,"description",void 0);_.E([_.z$("#full-name"),_.h("design:type",Object)],nU.prototype,"fullName",void 0);_.E([_.d(),_.h("design:type",Object)],nU.prototype,"data",void 0);
_.E([_.d({computed:"computeShowTimestamp(data.timestampLabel)"}),_.h("design:type",Boolean)],nU.prototype,"showTimestamp",void 0);_.E([_.d({readOnly:!0,computed:"computeServiceEndpoint(data)"}),_.h("design:type",Object)],nU.prototype,"serviceEndpoint",void 0);_.E([_.d({computed:"computeSubmitButton(data)"}),_.h("design:type",Object)],nU.prototype,"submitButton",void 0);_.E([_.d(),_.h("design:type",String)],nU.prototype,"descriptionText",void 0);
_.E([_.d(),_.h("design:type",Number)],nU.prototype,"issueType",void 0);_.E([_.d(),_.h("design:type",Number)],nU.prototype,"affiliation",void 0);_.E([_.d(),_.h("design:type",String)],nU.prototype,"fullNameText",void 0);_.E([_.d(),_.h("design:type",String)],nU.prototype,"minutes",void 0);_.E([_.d(),_.h("design:type",String)],nU.prototype,"seconds",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nU.prototype,"dataChanged",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],nU.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],nU.prototype,"onYtServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],nU.prototype,"onYtServiceRequestError",null);_.E([_.FI("descriptionText","issueType","affiliation","fullNameText","minutes","seconds"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nU.prototype,"handleInput",null);nU=_.E([_.m({is:"ytd-legal-report-details-form-renderer",disableElementRegistration:!0})],nU);
_.Z(nU,"ytd-legal-report-details-form-renderer",function(){if(suL!==void 0)return suL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return suL=I},{mode:1});var kfH;var PI=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-signal-action-submit-form":"handleSignalActionSubmitForm","yt-signal-action-submit-popup-form-fields":"handleSignalActionSubmitPopupFormFields"};return I};
_.R(PI,_.q);PI.prototype.configureRendererStamper=function(){return{"data.form":{id:"form",mapping:{formRenderer:"yt-form-renderer"}}}};
PI.prototype.handleSignalActionSubmitForm=function(){if(this.formRenderer){var I=this.formRenderer.getForm();I&&this.data.submitEndpoint&&(_.N().resolve(_.ID).resolveCommand(this.data.submitEndpoint,{form:Object.assign({},I,{element:this.hostElement})}),_.Fe(this.hostElement,"yt-close-popup-action"))}};
PI.prototype.handleSignalActionSubmitPopupFormFields=function(){this.formRenderer&&(this.formRenderer.submitFormFields(),_.Fe(this.hostElement,"yt-close-popup-action"))};
PI.prototype.onPopupClosed=function(){this.formRenderer&&this.formRenderer.reset()};
PI.prototype.onPopupClosed=PI.prototype.onPopupClosed;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],PI.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],PI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],PI.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],PI.prototype,"ytRendererBehavior",void 0);
_.E([_.z$("yt-form-renderer"),_.h("design:type",Object)],PI.prototype,"formRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],PI.prototype,"data",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],PI.prototype,"onPopupClosed",null);PI=_.E([_.m({is:"ytd-form-popup-content",disableElementRegistration:!0})],PI);
_.Z(PI,"ytd-form-popup-content",function(){if(kfH!==void 0)return kfH;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return kfH=I},{mode:1});var Flj;var LU=function(){return _.q.apply(this,arguments)||this};
_.R(LU,_.q);LU.prototype.configureRendererStamper=function(){return{"data.buttons":{id:"buttons",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
LU.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
LU.prototype.onPopupOpened=function(){_.k3(this.hostElement,"yt-invalidate-popup-tabbables")};
LU.prototype.onYtServiceRequestCompleted=function(I,C){C.data&&C.data.success&&(this.set("data.buttons.1.buttonRenderer.isDisabled",!1),_.k3(this.hostElement,"yt-invalidate-popup-tabbables"))};
LU.prototype.onYtServiceRequestCompleted=LU.prototype.onYtServiceRequestCompleted;LU.prototype.onPopupOpened=LU.prototype.onPopupOpened;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],LU.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LU.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],LU.prototype,"data",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LU.prototype,"onPopupOpened",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],LU.prototype,"onYtServiceRequestCompleted",null);LU=_.E([_.m({is:"ytd-form-popup-renderer",disableElementRegistration:!0})],LU);
_.Z(LU,"ytd-form-popup-renderer",function(){if(Flj!==void 0)return Flj;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Flj=I},{mode:1});var usL;var DE=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;return I};
_.R(DE,_.q);_.u=DE.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");LxK(this.hostElement)};
_.u.onYtServiceRequestSent=function(){this.isLoading=!0};
_.u.onYtServiceRequestCompleted=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-confirm-dialog-renderer"])};
_.u.fireOnCloseActions=function(){this.isLoading=!1;this.data&&this.data.onClosedActions&&_.cQ(this.hostElement,this.data.onClosedActions,this.hostElement)};
_.u.closePopupHandler=function(){this.fireOnCloseActions()};
_.u.onHeaderImageChanged=function(){if(this.data){this.data.headerImage?this.hostElement.setAttribute("dialog-with-header-image",""):this.hostElement.removeAttribute("dialog-with-header-image");var I=this.get("data.headerImage.thumbnails");I&&(I=_.E5(I,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+I+")")}};
_.u.onYtNavigate=function(I){(I=_.m0(I))&&I.parentElement===this.confirmButton&&this.hostElement.parentElement&&this.hostElement.parentElement.close()};
DE.prototype.onYtNavigate=DE.prototype.onYtNavigate;DE.prototype.onHeaderImageChanged=DE.prototype.onHeaderImageChanged;DE.prototype.closePopupHandler=DE.prototype.closePopupHandler;DE.prototype.onYtServiceRequestCompleted=DE.prototype.onYtServiceRequestCompleted;DE.prototype.onYtServiceRequestSent=DE.prototype.onYtServiceRequestSent;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DE.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],DE.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DE.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],DE.prototype,"isLoading",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLDivElement)],DE.prototype,"header",void 0);_.E([_.z$("#confirm-button"),_.h("design:type",_.kp)],DE.prototype,"confirmButton",void 0);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DE.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DE.prototype,"onYtServiceRequestCompleted",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DE.prototype,"closePopupHandler",null);_.E([_.FI("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DE.prototype,"onHeaderImageChanged",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DE.prototype,"onYtNavigate",null);
DE=_.E([_.m({is:"ytd-gaming-account-link-confirm-dialog-renderer",disableElementRegistration:!0})],DE);
_.Z(DE,"ytd-gaming-account-link-confirm-dialog-renderer",function(){if(usL!==void 0)return usL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return usL=I},{mode:1});var zqH;var pU=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;return I};
_.R(pU,_.q);_.u=pU.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable&&(this.scrollable.dialogElement=this.hostElement.parentNode);LxK(this.hostElement)};
_.u.onYtServiceRequestCompleted=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-gaming-account-link-setting-renderer"])};
_.u.onYtServiceRequestError=function(I){_.ly(this.hostElement,I.detail.error.message)};
_.u.onDomChange=function(){this.ytRendererBehavior.markDirty()};
_.u.onButtonClick=function(){this.data&&(this.data.isContinueDialog||this.data.thirdPartyId&&this.data.thirdPartyId!=="gpg"&&_.Fe(this.hostElement,"yt-initialize-third-party",[this.data.thirdPartyId]),this.isLoading=!0)};
_.u.onDataChanged=function(){this.isLoading=!1;var I=this.get("data.headerImage.thumbnails");I&&(I=_.E5(I,this.hostElement.clientWidth),this.header.style.backgroundImage="url("+I+")");I=_.Si();var C=_.fq(),y=this.get("data.trackingParams");y&&C&&I&&_.q1(I,C,_.nv(y))};
_.H1.Object.defineProperties(pU.prototype,{hasDescription:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||!this.data.descriptions)}}});
pU.prototype.onDataChanged=pU.prototype.onDataChanged;pU.prototype.onDomChange=pU.prototype.onDomChange;pU.prototype.onYtServiceRequestError=pU.prototype.onYtServiceRequestError;pU.prototype.onYtServiceRequestCompleted=pU.prototype.onYtServiceRequestCompleted;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pU.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pU.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],pU.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],pU.prototype,"isLoading",void 0);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],pU.prototype,"hasDescription",null);_.E([_.z$("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],pU.prototype,"scrollable",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],pU.prototype,"header",void 0);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"onYtServiceRequestError",null);
_.E([_.km("dom-change"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],pU.prototype,"onDomChange",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],pU.prototype,"onDataChanged",null);pU=_.E([_.m({is:"ytd-gaming-account-link-setting-renderer",disableElementRegistration:!0})],pU);
_.Z(pU,"ytd-gaming-account-link-setting-renderer",function(){if(zqH!==void 0)return zqH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return zqH=I},{mode:1});var TFy;var c2B;var QT=function(){var I=_.q.apply(this,arguments)||this;I.isHeader=!1;I.getEndpointForm=edL;return I};
_.R(QT,_.q);_.u=QT.prototype;_.u.triggerHintActions=function(){var I=this;this.data&&this.data.hintActions&&this.taskEmitterBehavior.getTaskManager().addLowPriorityJob(function(){var C=_.uW(I.hostElement,"yt-get-opened-popups-action");!(C&&C.length===1?C[0]:[]).some(function(y){y=y.openPopupAction.popupType;return y==="SURVEY"||y==="MEALBAR"||y==="HINT"})&&I.data.hintActions&&I.guideOpened&&(_.cQ(I.hostElement,I.data.hintActions,I.hostElement),I.data.hintActions=void 0)})};
_.u.getBadgeIconType=function(I){return I&&I.liveBroadcasting?"live":null};
_.u.onDown=function(){this.interaction.triggerDown()};
_.u.onUp=function(){this.interaction.triggerUp()};
_.u.onTap=function(I){if(this.data.serviceEndpoint){var C;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.l(this.data.serviceEndpoint,_.PD))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.componentBehavior.resolveCommand(this.data.serviceEndpoint):cSK(this.data.serviceEndpoint,this);I.preventDefault()}else this.data.navigationEndpoint&&!_.q3(_.qc(I),this.hostElement,["A".toString()])&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})};
_.u.computeActive=function(I,C){if(!I)return!1;var y=I.navigationEndpoint;I=I.serviceEndpoint;if(!y&&!I||!C)return!1;if(y){I=(I=Ct(C))&&["subscriptions","filteredsubscriptions"].includes(I);if(_.l(y,_.rU)&&_.l(C,_.rU)&&!I){var k=_.l(y,_.rU).browseId;C=_.l(C,_.rU).browseId;return k!==void 0&&C!==void 0&&(k===C||k==="VLWL"&&C==="FEwatch_later"||k==="FEwatch_later"&&C==="VLWL")}var F;y=(F=_.l(y.commandMetadata,_.It))==null?void 0:F.url;C=(k=_.l(C.commandMetadata,_.It))==null?void 0:k.url;return!(!y||
!C||y!==C&&y!==_.Tl(C))}return this.isActiveShortsTab(I,C)};
_.u.isActiveShortsTab=function(I,C){C=!!_.l(C,_.PD)||!!_.l(C,_.Yf);return(!!_.l(I,_.PD)||!!_.l(I,_.Yf))&&C};
_.u.computeIsPrimary=function(I){return!!I};
_.H1.Object.defineProperties(QT.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 I=this.get("data.accessibility.accessibilityData.label");if(this.lineEndStyle!=="none"&&I)return I}}});
QT.prototype.onTap=QT.prototype.onTap;QT.prototype.onUp=QT.prototype.onUp;QT.prototype.onDown=QT.prototype.onDown;QT.prototype.triggerHintActions=QT.prototype.triggerHintActions;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],QT.prototype,"componentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QT.prototype,"rendererBehavior",void 0);_.E([_.g(_.xy.YtTaskEmitterBehavior),_.h("design:type",Object)],QT.prototype,"taskEmitterBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],QT.prototype,"activeEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],QT.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],QT.prototype,"guideOpened",void 0);_.E([_.d(),_.h("design:type",String)],QT.prototype,"type",void 0);_.E([_.z$("yt-interaction"),_.h("design:type",Object)],QT.prototype,"interaction",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],QT.prototype,"isHeader",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data","activeEndpoint"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QT.prototype,"active",null);_.E([_.d({reflectToAttribute:!0}),_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],QT.prototype,"isPrimary",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.count","data.presentationStyle","data.badges.*"),_.h("design:type",String),_.h("design:paramtypes",[])],QT.prototype,"lineEndStyle",null);
_.E([_.v("lineEndStyle"),_.h("design:type",Object),_.h("design:paramtypes",[])],QT.prototype,"ariaLabel",null);_.E([_.FI("data.hintActions","guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"triggerHintActions",null);_.E([_.km("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"onDown",null);
_.E([_.km("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QT.prototype,"onUp",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],QT.prototype,"onTap",null);QT=_.E([_.m({is:"ytd-guide-entry-renderer",disableElementRegistration:!0})],QT);
_.Z(QT,"ytd-guide-entry-renderer",function(){if(c2B!==void 0)return c2B;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return c2B=I},{mode:1});var NB=function(){var I=_.q.apply(this,arguments)||this;I.userToggled=!1;return I};
_.R(NB,_.q);_.u=NB.prototype;_.u.getItemsPath=function(){return"data.expandableItems"};
_.u.configureRendererStamper=function(){return{shownItems:{id:"expandable-items",mapping:{guideEntryRenderer:{component:"ytd-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]"},noInjection:!0}}}}};
_.u.onExpanderItemTapped=function(I){var C=this;this._setExpanded(!0);this.userToggled=!0;this.ytLazyListBehavior.fillRemainingListItems();this.expandableItems&&!_.V("kevlar_guide_expandable_items_killswitch")&&_.hn(this,function(){_.HF(C.expandableItems)});
I.preventDefault()};
_.u.onCollapserItemTapped=function(I){var C=this;this._setExpanded(!1);this.userToggled=!0;I.preventDefault();this.expandableItems&&!_.V("kevlar_guide_collapsible_items_killswitch")&&_.hn(this,function(){_.UL(C.hostElement)})};
_.u.observeActiveEndpoint=function(){for(var I=this.activeEndpoint,C=this.data,y=this.expandableItems.children,k=0,F=y.length;k<F;k++)y[k].activeEndpoint=I;C&&C.autoExpandCommand&&I&&!this.userToggled&&(y=this.data.autoExpandCommand,C=!(!_.l(y,_.rU)||!_.l(I,_.rU)||_.l(y,_.rU).browseId!==_.l(I,_.rU).browseId),I=this.get("commandMetadata.webCommandMetadata.url",I),y=this.get("commandMetadata.webCommandMetadata.url",y),C=C||!!(I&&y&&I.includes(y)),this._setExpanded(C),C&&this.ytLazyListBehavior.fillRemainingListItems())};
NB.prototype.observeActiveEndpoint=NB.prototype.observeActiveEndpoint;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],NB.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],NB.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],NB.prototype,"ytLazyListBehavior",void 0);_.E([_.z$("#expandable-items"),_.h("design:type",HTMLElement)],NB.prototype,"expandableItems",void 0);
_.E([_.d(),_.h("design:type",Object)],NB.prototype,"data",void 0);_.E([_.d({readOnly:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],NB.prototype,"expanded",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],NB.prototype,"initialCount",void 0);_.E([_.d(),_.h("design:type",Object)],NB.prototype,"activeEndpoint",void 0);_.E([_.FI("data","activeEndpoint","canShowMore"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],NB.prototype,"observeActiveEndpoint",null);
NB=_.E([_.m({is:"ytd-guide-collapsible-entry-renderer",disableElementRegistration:!0})],NB);
_.Z(NB,"ytd-guide-collapsible-entry-renderer",function(){if(TFy!==void 0)return TFy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return TFy=I},{mode:_.Ij("kevlar_poly_si_batch_j079")?1:2});var eqS;var r2j;var VT=function(){var I=_.q.apply(this,arguments)||this;I.allVideosCount=0;I.renderGuideEntry=!1;return I};
_.R(VT,_.q);VT.prototype.observeRenderEntry=function(){var I;this.renderGuideEntry=!((I=this.data)==null||!I.alwaysShow)||!!this.allVideosCount};
VT.prototype.observeRenderEntry=VT.prototype.observeRenderEntry;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VT.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],VT.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VT.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],VT.prototype,"activeEndpoint",void 0);_.E([_.d({selector:_.p3m}),_.h("design:type",Object)],VT.prototype,"allVideosCount",void 0);
_.E([_.d(),_.h("design:type",Object)],VT.prototype,"renderGuideEntry",void 0);_.E([_.rW("allVideosCount","data.alwaysShow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],VT.prototype,"observeRenderEntry",null);VT=_.E([_.m({is:"ytd-guide-downloads-entry-renderer",disableElementRegistration:!0})],VT);
_.Z(VT,"ytd-guide-downloads-entry-renderer",function(){if(r2j===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);r2j=I}I=r2j;return I},{mode:1});var jp=function(){var I=_.q.apply(this,arguments)||this;I.youtab=_.V("web_enable_youtab");I.actionMap={"yt-add-to-guide-section-action":"handleAddToGuideSectionAction","yt-remove-from-guide-section-action":"handleRemoveFromGuideSectionAction"};return I};
_.R(jp,_.q);_.u=jp.prototype;_.u.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]]"}}}}}};
_.u.activeEndpointChanged=function(){if(this.activeEndpoint){this.headerEntry.activeEndpoint=this.activeEndpoint;for(var I=this.sectionItems.children,C=0,y=I.length;C<y;C++)I[C].activeEndpoint=this.activeEndpoint}};
_.u.handleAddToGuideSectionAction=function(I){var C=_.l(I,XVS);if(C&&this.data&&(I=C.items,C=C.handlerData,I&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1)){C=0;for(var y=I.length;C<y;C++)I[C].guideEntryRenderer&&this.data.sectionItems&&this.splice("data.sectionItems",this.data.sectionItems.length-1,0,I[C])}};
_.u.handleRemoveFromGuideSectionAction=function(I){var C=_.l(I,$uR);C&&this.data&&(I=C.guideEntryId,C=C.handlerData,I&&C&&this.data.handlerDatas&&this.data.handlerDatas.indexOf(C)>-1&&this.data&&this.data.sectionItems&&(this.removeFromExpandedSection(I,this.data.sectionItems),this.removeFromCollapsedSection(I,this.data.sectionItems)))};
_.u.removeFromExpandedSection=function(I,C){I=this.getEntryIndexMatchingId(I,C);I!==-1&&this.splice("data.sectionItems",I,1)};
_.u.removeFromCollapsedSection=function(I,C){var y=C.findIndex(function(k){return!!_.l(k,ZVP)});
y&&y!==-1&&C[y]&&_.l(C[y],ZVP)&&(C=_.l(C[y],ZVP).expandableItems)&&(I=this.getEntryIndexMatchingId(I,C),I!==-1&&this.splice("data.sectionItems."+y+".guideCollapsibleEntryRenderer.expandableItems",I,1))};
_.u.getEntryIndexMatchingId=function(I,C){var y=this;return C.findIndex(function(k){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",k)===I})};
jp.prototype.activeEndpointChanged=jp.prototype.activeEndpointChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jp.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],jp.prototype,"actionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jp.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#section-items"),_.h("design:type",HTMLDivElement)],jp.prototype,"sectionItems",void 0);
_.E([_.z$("#header-entry"),_.h("design:type",Object)],jp.prototype,"headerEntry",void 0);_.E([_.d(),_.h("design:type",Object)],jp.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],jp.prototype,"activeEndpoint",void 0);_.E([_.d(),_.h("design:type",Object)],jp.prototype,"youtab",void 0);_.E([_.FI("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jp.prototype,"activeEndpointChanged",null);
jp=_.E([_.m({is:"ytd-guide-collapsible-section-entry-renderer",disableElementRegistration:!0})],jp);
_.Z(jp,"ytd-guide-collapsible-section-entry-renderer",function(){if(eqS===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-guide-collapsible-section-entry-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  <ytd-guide-entry-renderer id="header-entry" data="[[data.headerEntry.guideEntryRenderer]]" is-header="[[youtab]]" class="style-scope ytd-guide-collapsible-section-entry-renderer">\n  </ytd-guide-entry-renderer>\n</div>\n<div id="section-items" class="style-scope ytd-guide-collapsible-section-entry-renderer"></div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);eqS=I}I=eqS;return I},{mode:1});var izL;var wxR;var lr=function(){var I=_.q.apply(this,arguments)||this;I.modernTypography=_.V("web_modern_typography");I.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 I};
_.R(lr,_.q);_.u=lr.prototype;
_.u.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}}}}};
_.u.persistentGuideChanged=function(){if(!this.ytdGuideStateAwareBehavior.guidePersistentAndVisible){var I=_.uW(this.hostElement,"yt-get-popup-opened-action",["yt-bubble-hint-renderer"]);I&&I.length===1&&I[0]&&_.uW(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"])}};
_.u.handleResetChannelUnreadCountCommand=function(I){var C;(I=(C=_.l(I,bVK))==null?void 0:C.channelId)&&this.data&&this.data.items&&(C=this.getPathToEntryMatchingId(I))&&(this.set(C+".guideEntryRenderer.count",0),this.set(C+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.u.handleResetSubscriptionsUnreadDotCommand=function(I){var C,y=(C=_.l(I,YJM))==null?void 0:C.targetId,k;y&&(k=this.data)!=null&&k.items&&(I=this.data.items.findIndex(function(F){var z;return((z=F.guideEntryRenderer)==null?void 0:z.targetId)===y}),I<0||this.set("data.items."+I+".guideEntryRenderer.presentationStyle","GUIDE_ENTRY_PRESENTATION_STYLE_NONE"))};
_.u.getPathToEntryMatchingId=function(I){if(this.data&&this.data.items){var C=this.getEntryIndexMatchingId(I,this.data.items);if(C>-1)return"data.items."+C;for(var y=0;y<this.data.items.length;y++)if(C=this.get("guideCollapsibleEntryRenderer.expandableItems",this.data.items[y]))if(C=this.getEntryIndexMatchingId(I,C),C>-1)return"data.items."+y+".guideCollapsibleEntryRenderer.expandableItems."+C}};
_.u.handleAddToGuideSectionAction=function(I){var C=this;if(_.l(I,XVS)){var y=_.l(I,XVS).items;I=_.l(I,XVS).handlerData;var k,F;y&&I&&((k=this.data)==null?void 0:(F=k.handlerDatas)==null?void 0:F.indexOf(I))>-1&&(y=y.filter(function(z){return(z=C.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",z))&&!C.isGuideItemPresent(z)}),this.unshift.apply(this,["data.items"].concat(_.Py(y))))}};
_.u.isGuideItemPresent=function(I){if(this.data&&this.data.items){if(this.getEntryIndexMatchingId(I,this.data.items)!==-1)return!0;var C=this.data.items.find(function(y){return!!y.guideCollapsibleEntryRenderer});
if((C==null?0:C.guideCollapsibleEntryRenderer.expandableItems)&&this.getEntryIndexMatchingId(I,C.guideCollapsibleEntryRenderer.expandableItems)!==-1)return!0}return!1};
_.u.getEntryIndexMatchingId=function(I,C){var y=this;return C.findIndex(function(k){return y.get("guideEntryRenderer.entryData.guideEntryData.guideEntryId",k)===I})};
_.u.handleRemoveFromGuideSectionAction=function(I){if(_.l(I,$uR)){var C=_.l(I,$uR).guideEntryId;I=_.l(I,$uR).handlerData;var y,k;C&&I&&((y=this.data)==null?void 0:(k=y.handlerDatas)==null?void 0:k.indexOf(I))>-1&&this.data&&this.data.items&&(this.removeFromExpandedSection(C,this.data.items),this.removeFromCollapsedSection(C,this.data.items))}};
_.u.removeFromExpandedSection=function(I,C){I=this.getEntryIndexMatchingId(I,C);I!==-1&&this.splice("data.items",I,1)};
_.u.removeFromCollapsedSection=function(I,C){var y=C.findIndex(function(k){return!!k.guideCollapsibleEntryRenderer});
y!==-1&&(C=C[y].guideCollapsibleEntryRenderer.expandableItems)&&(I=this.getEntryIndexMatchingId(I,C),I!==-1&&this.splice("data.items."+y+".guideCollapsibleEntryRenderer.expandableItems",I,1))};
_.u.activeEndpointChanged=function(){for(var I=_.f(this.hostElement).querySelector("#items").children,C=0,y=I.length;C<y;C++)I[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
_.u.guideOpenedChanged=function(){for(var I=_.f(this.hostElement).querySelector("#items").children,C=0,y=I.length;C<y;C++)I[C].guideOpened=this.ytdGuideStateAwareBehavior.guideOpened};
lr.prototype.guideOpenedChanged=lr.prototype.guideOpenedChanged;lr.prototype.activeEndpointChanged=lr.prototype.activeEndpointChanged;lr.prototype.persistentGuideChanged=lr.prototype.persistentGuideChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lr.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lr.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],lr.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],lr.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],lr.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lr.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lr.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],lr.prototype,"modernTypography",void 0);_.E([_.d(),_.h("design:type",String)],lr.prototype,"type",void 0);_.E([_.d({value:20}),_.h("design:type",Number)],lr.prototype,"initialCount",void 0);_.E([_.d({value:10}),_.h("design:type",Number)],lr.prototype,"targetFramerate",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],lr.prototype,"autoFill",void 0);_.E([_.d({value:50}),_.h("design:type",Number)],lr.prototype,"renderDelay",void 0);
_.E([_.FI("guidePersistentAndVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lr.prototype,"persistentGuideChanged",null);_.E([_.rW("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lr.prototype,"activeEndpointChanged",null);_.E([_.rW("guideOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lr.prototype,"guideOpenedChanged",null);
lr=_.E([_.m({is:"ytd-guide-section-renderer",disableElementRegistration:!0})],lr);
_.Z(lr,"ytd-guide-section-renderer",function(){if(wxR!==void 0)return wxR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return wxR=I},{mode:_.Ij("kevlar_poly_si_batch_j073")?1:2});var nTH;var XX=function(){return _.q.apply(this,arguments)||this};
_.R(XX,_.q);_.H1.Object.defineProperties(XX.prototype,{alignByText:{configurable:!0,enumerable:!0,get:function(){return this.get("data.signInButton.buttonRenderer.style")==="STYLE_BLUE_TEXT"}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],XX.prototype,"rendererBehaviors",void 0);_.E([_.d(),_.h("design:type",Object)],XX.prototype,"data",void 0);_.E([_.d(),_.v("data.signInButton.buttonRenderer.style"),_.h("design:type",Object),_.h("design:paramtypes",[])],XX.prototype,"alignByText",null);XX=_.E([_.m({is:"ytd-guide-signin-promo-renderer",disableElementRegistration:!0})],XX);
_.Z(XX,"ytd-guide-signin-promo-renderer",function(){if(nTH===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);nTH=I}I=nTH;return I},{mode:1});var $n=function(){var I=_.q.apply(this,arguments)||this;I.showFooter=!1;return I};
_.R($n,_.q);$n.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}}}}};
$n.prototype.attached=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1){C=_.N().resolve(_.aU(_.Yx));if(!C)return y.jumpTo(0);C.setGuideData(I.hostElement);return _.n(y,0,3)}I.ytLazyListBehavior.initialCount=2;return y.return()})};
$n.prototype.dataChanged=function(){this.data&&(this.showFooter=!0)};
$n.prototype.dataChanged=$n.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$n.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],$n.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.E_.YtLazyListBehavior),_.h("design:type",Object)],$n.prototype,"ytLazyListBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$n.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],$n.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],$n.prototype,"showFooter",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],$n.prototype,"autoFill",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],$n.prototype,"dataChanged",null);$n=_.E([_.m({is:"ytd-guide-renderer",disableElementRegistration:!0})],$n);
_.Z($n,"ytd-guide-renderer",function(){if(izL!==void 0)return izL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return izL=I},{mode:_.Ij("kevlar_poly_si_batch_j073")?1:2});var PnS;var Rx=function(){var I=_.q.apply(this,arguments)||this;I.systemIcons=_.V("kevlar_system_icons");I.frostedGlass=_.V("web_frosted_glass");I.getEndpointForm=edL;return I};
_.R(Rx,_.q);_.u=Rx.prototype;_.u.attached=function(){this.hostElement.setAttribute("role","tab");this.hostElement.setAttribute("tabindex","0")};
_.u.dataChanged=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive);this.hostElement.setAttribute("aria-label",_.hS(this.data.formattedTitle))};
_.u.onActiveStateChange=function(){this.hostElement.setAttribute("aria-selected",""+this.isActive)};
_.u.onDown=function(){this.interaction.triggerDown()};
_.u.onUp=function(){this.interaction.triggerUp()};
_.u.onTap=function(I){if(this.data.serviceEndpoint){var C;_.V("shorts_controller_retrieve_seedless_sequence_v2")&&((C=_.l(this.data.serviceEndpoint,_.PD))==null?void 0:C.inputType)==="REEL_WATCH_INPUT_TYPE_SEEDLESS"?this.ytComponentBehavior.resolveCommand(this.data.serviceEndpoint):cSK(this.data.serviceEndpoint,this);I.preventDefault()}else{var y;((y=this.data)==null?0:y.navigationEndpoint)&&!_.q3(_.qc(I),this.hostElement,["A".toString()])&&_.k3(this.hostElement,"yt-navigate",{endpoint:this.data.navigationEndpoint})}};
_.u.computeActive=function(I,C){if(!I)return!1;var y=I.navigationEndpoint;I=I.serviceEndpoint;if(!y&&!I||!C)return!1;if(y){I=_.l(y,_.rU);var k=_.l(C,_.rU);if(I&&k)return I.browseId===k.browseId&&I.params===k.params;var F;y=(F=_.l(y.commandMetadata,_.It))==null?void 0:F.url;var z;C=(z=_.l(C.commandMetadata,_.It))==null?void 0:z.url;return!(!y||!C||y!==C&&y!==_.Tl(C))}return this.isActiveShortsTab(I,C)};
_.u.isActiveShortsTab=function(I,C){C=!!_.l(C,_.PD)||!!_.l(C,_.Yf);return(!!_.l(I,_.PD)||!!_.l(I,_.Yf))&&C};
_.u.computeTitle=function(I,C){return C?"":_.hS(I)};
_.H1.Object.defineProperties(Rx.prototype,{ariaSelected:{configurable:!0,enumerable:!0,get:function(){if(this.isActive!==void 0)return this.isActive.toString()}}});
Rx.prototype.onTap=Rx.prototype.onTap;Rx.prototype.onUp=Rx.prototype.onUp;Rx.prototype.onDown=Rx.prototype.onDown;Rx.prototype.onActiveStateChange=Rx.prototype.onActiveStateChange;Rx.prototype.dataChanged=Rx.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Rx.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Rx.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.Yr),_.h("design:type",Object)],Rx.prototype,"ironButtonState",void 0);_.E([_.d(),_.h("design:type",Object)],Rx.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Rx.prototype,"activeEndpoint",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Rx.prototype,"noLabels",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeActive(data,activeEndpoint)"}),_.h("design:type",Boolean)],Rx.prototype,"isActive",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Rx.prototype,"systemIcons",void 0);_.E([_.z$("yt-interaction"),_.h("design:type",Object)],Rx.prototype,"interaction",void 0);_.E([_.v("isActive"),_.h("design:type",Object),_.h("design:paramtypes",[])],Rx.prototype,"ariaSelected",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Rx.prototype,"frostedGlass",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rx.prototype,"dataChanged",null);_.E([_.FI("isActive"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rx.prototype,"onActiveStateChange",null);_.E([_.km("down"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rx.prototype,"onDown",null);
_.E([_.km("up"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Rx.prototype,"onUp",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Rx.prototype,"onTap",null);Rx=_.E([_.m({is:"ytd-mini-guide-entry-renderer",disableElementRegistration:!0})],Rx);
_.Z(Rx,"ytd-mini-guide-entry-renderer",function(){if(PnS!==void 0)return PnS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return PnS=I},{mode:_.Ij("kevlar_poly_si_batch_j063")?1:2});var LlK;var br=function(){var I=_.q.apply(this,arguments)||this;I.allVideosCount=0;I.noLabels=_.V("kevlar_mini_guide_no_labels");I.frostedGlass=_.V("web_frosted_glass");return I};
_.R(br,_.q);_.u=br.prototype;_.u.configureRendererStamper=function(){return{miniGuideItems:{id:"items",mapping:{guideEntryRenderer:{component:"ytd-mini-guide-entry-renderer",properties:{activeEndpoint:"[[activeEndpoint]]",noLabels:"[[noLabels]]"},noInjection:!0}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","navigation")};
_.u.visibleChanged=function(){if(this.visible&&!this.data){var I=_.N().resolve(_.aU(_.Yx));I&&I.setGuideData(this.hostElement)}};
_.u.dataChanged=function(){var I=[],C;if((C=this.data)!=null&&C.items){C=_.T(this.data.items);for(var y=C.next();!y.done;y=C.next()){y=y.value;var k=void 0;if((k=y.guideSectionRenderer)==null?0:k.items)for(k=void 0,y=_.T((k=y.guideSectionRenderer)==null?void 0:k.items),k=y.next();!k.done;k=y.next())if(k=k.value,k.guideEntryRenderer)k=k.guideEntryRenderer,k.isPrimary&&I.push({guideEntryRenderer:k});else if(k.guideCollapsibleSectionEntryRenderer){var F=void 0;((F=_.l(k.guideCollapsibleSectionEntryRenderer.headerEntry,
xJ))==null?0:F.isPrimary)&&I.push({guideEntryRenderer:_.l(k.guideCollapsibleSectionEntryRenderer.headerEntry,xJ)});if(k=k.guideCollapsibleSectionEntryRenderer.sectionItems)for(k=_.T(k),F=k.next();!F.done;F=k.next()){var z=F.value;F=_.l(z,BkH);var c=void 0;((c=_.l(z,xJ))==null?0:c.isPrimary)?I.push({guideEntryRenderer:_.l(z,xJ)}):F&&(z=void 0,_.l((z=F)==null?void 0:z.entryRenderer,xJ)&&(F.alwaysShow||this.allVideosCount)&&I.push({guideEntryRenderer:_.l(F.entryRenderer,xJ)}))}}}}this.miniGuideItems=
I};
_.u.activeEndpointChanged=function(){for(var I=this.items.children,C=0;C<I.length;C++)I[C].activeEndpoint=this.ytdGuideStateAwareBehavior.activeEndpoint};
br.prototype.activeEndpointChanged=br.prototype.activeEndpointChanged;br.prototype.dataChanged=br.prototype.dataChanged;br.prototype.visibleChanged=br.prototype.visibleChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],br.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],br.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],br.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],br.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],br.prototype,"ytComponentBehavior",void 0);_.E([_.z$("#items"),_.h("design:type",Object)],br.prototype,"items",void 0);_.E([_.d(),_.h("design:type",Object)],br.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],br.prototype,"visible",void 0);
_.E([_.d(),_.h("design:type",Object)],br.prototype,"miniGuideItems",void 0);_.E([_.d({selector:_.p3m}),_.h("design:type",Object)],br.prototype,"allVideosCount",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],br.prototype,"noLabels",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],br.prototype,"frostedGlass",void 0);_.E([_.rW("visible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],br.prototype,"visibleChanged",null);
_.E([_.rW("data","allVideosCount"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],br.prototype,"dataChanged",null);_.E([_.rW("activeEndpoint"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],br.prototype,"activeEndpointChanged",null);br=_.E([_.m({is:"ytd-mini-guide-renderer",disableElementRegistration:!0})],br);
_.Z(br,"ytd-mini-guide-renderer",function(){if(LlK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);LlK=I}I=LlK;return I},{mode:1});var DrR;var pxK=/^[\x00-\x7F]+$/,Yn=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(Yn,_.q);_.H1.Object.defineProperties(Yn.prototype,{displayHandle:{configurable:!0,enumerable:!0,get:function(){var I,C=_.hS((I=this.data)==null?void 0:I.handle);if(C)return _.Ee("@"+C)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){var I=_.hS(this.displayHandle),C,y=_.hS((C=this.data)==null?void 0:C.handleUrl);if(I&&y)return _.Ee(y+I)}},
warningText:{configurable:!0,enumerable:!0,get:function(){var I=_.hS(this.displayHandle);if(I&&!pxK.test(I)){var C;return(C=this.data)==null?void 0:C.warningText}}},
urlInfoTextWithUrl:{configurable:!0,enumerable:!0,get:function(){var I=_.hS(this.displayHandleUrl),C,y=_.hS((C=this.data)==null?void 0:C.urlInfoText);if(I&&y)return _.Ee(y+" "+I)}}});
_.E([_.d(),_.h("design:type",Object)],Yn.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yn.prototype,"displayHandle",null);_.E([_.v("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yn.prototype,"displayHandleUrl",null);_.E([_.v("displayHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yn.prototype,"warningText",null);
_.E([_.v("displayHandleUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],Yn.prototype,"urlInfoTextWithUrl",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Yn.prototype,"darkerDarkTheme",void 0);Yn=_.E([_.m({is:"ytd-handles-claiming-confirm-dialog-content",disableElementRegistration:!0})],Yn);
_.Z(Yn,"ytd-handles-claiming-confirm-dialog-content",function(){if(DrR!==void 0)return DrR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DrR=I},{mode:1});var QuY;var GQ=function(){var I=_.q.apply(this,arguments)||this;I.okButtonOverride={style:"mono",type:"outline",size:"M"};return I};
_.R(GQ,_.q);GQ.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
GQ.prototype.configureRendererStamper=function(){return{"data.okButton":{id:"ok-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[okButtonOverride]]"}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GQ.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],GQ.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],GQ.prototype,"okButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],GQ.prototype,"data",void 0);GQ=_.E([_.m({is:"ytd-handles-claiming-confirm-dialog-renderer",disableElementRegistration:!0})],GQ);
_.Z(GQ,"ytd-handles-claiming-confirm-dialog-renderer",function(){if(QuY!==void 0)return QuY;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return QuY=I},{mode:1});var NFB;var V4K=/^[\x00-\x7F]+$/,fU=function(){var I=_.q.apply(this,arguments)||this;I.isLoading=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(fU,_.q);fU.prototype.selectedHandleChanged=function(){if(this.handleInput&&this.onSelectedHandleChanged){var I;this.selectedHandle=(I=this.handleInput)==null?void 0:I.value;this.onSelectedHandleChanged(this.selectedHandle);_.uW(this.hostElement,"yt-refit-popups-action")}};
_.H1.Object.defineProperties(fU.prototype,{handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var I;return(I=this.data)==null?void 0:I.handleUrlPrefix}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ee("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ee(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!V4K.test(this.selectedHandle)){var I;return(I=this.data)==null?void 0:I.warningText}}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],fU.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],fU.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],fU.prototype,"selectedHandle",void 0);_.E([_.d(),_.h("design:type",Object)],fU.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Function)],fU.prototype,"onSelectedHandleChanged",void 0);_.E([_.z$("#channel-handle-input"),_.h("design:type",Object)],fU.prototype,"handleInput",void 0);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],fU.prototype,"handleUrlPrefix",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],fU.prototype,"displayHandle",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],fU.prototype,"displayHandleUrl",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],fU.prototype,"warningText",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],fU.prototype,"darkerDarkTheme",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fU.prototype,"ytRendererBehavior",void 0);fU=_.E([_.m({is:"ytd-handles-claiming-edit-dialog-content",disableElementRegistration:!0})],fU);
_.Z(fU,"ytd-handles-claiming-edit-dialog-content",function(){if(NFB!==void 0)return NFB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NFB=I},{mode:1});var juL;var Sp=function(){var I=_.q.apply(this,arguments)||this;I.actionButtonOverride={style:"mono",type:"filled",size:"M"};I.cancelButtonOverride={style:"mono",type:"text",size:"M"};I.selectButtonDisabled=!1;I.isLoading=!1;I.hasSelectedHandleEventListener=!1;I.selectedHandleChanged=function(C){I.selectedHandle=C};
return I};
_.R(Sp,_.q);_.u=Sp.prototype;_.u.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled()};
_.u.onDataChanged=function(){var I,C;this.selectedHandle=(C=_.l((I=this.data)==null?void 0:I.inputField,QiK))==null?void 0:C.handle};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onCancel=function(){this.selectedHandle="";_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onSelectHandle=function(){var I=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,k){if(k.newHandleUpdateStatus!==void 0&&k.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&k.newHandleUpdateStatus.errorMessage)_.ly(I.hostElement,_.hS(k.newHandleUpdateStatus.errorMessage)),
I.isLoading=!1;else{var F;if((F=I.data)==null?0:F.onChannelUpdateSuccess){y=I.data.onChannelUpdateSuccess;var z,c;if(k=(z=_.l(y,_.jV))==null?void 0:(c=z.popup)==null?void 0:c.handlesClaimingConfirmDialogRenderer)k.handle=_.Ee(I.selectedHandle);I.ytComponentBehavior.resolveCommand(y);_.Fe(I.hostElement,"yt-close-popup-action",[I.is])}else I.isLoading=!1}},
onServerError:function(){var y;I.content&&((y=I.content)==null?0:y.handleInput)&&I.content.handleInput.validate();I.isLoading=!1;_.ly(I.hostElement,_.PQ("TRY_AGAIN_LATER"))}}}))}};
_.u.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
Sp.prototype.onDataChanged=Sp.prototype.onDataChanged;Sp.prototype.onSelectedHandleChanged=Sp.prototype.onSelectedHandleChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Sp.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"actionButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"cancelButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",String)],Sp.prototype,"selectedHandle",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"selectButtonDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"hasSelectedHandleEventListener",void 0);_.E([_.d(),_.h("design:type",Object)],Sp.prototype,"handleInput",void 0);
_.E([_.FI("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sp.prototype,"onSelectedHandleChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Sp.prototype,"onDataChanged",null);_.E([_.z$("ytd-handles-claiming-edit-dialog-content"),_.h("design:type",Object)],Sp.prototype,"content",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Sp.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sp.prototype,"ytRendererstamperBehavior",void 0);Sp=_.E([_.m({is:"ytd-handles-claiming-edit-dialog-renderer",disableElementRegistration:!0})],Sp);
_.Z(Sp,"ytd-handles-claiming-edit-dialog-renderer",function(){if(juL!==void 0)return juL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return juL=I},{mode:1});var lhy;var KU=function(){return _.q.apply(this,arguments)||this};
_.R(KU,_.q);_.H1.Object.defineProperties(KU.prototype,{formattedHandle:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null?0:I.handle){var C;return _.Ee("@"+_.hS((C=this.data)==null?void 0:C.handle))}}}});
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],KU.prototype,"formattedHandle",null);_.E([_.d(),_.h("design:type",Object)],KU.prototype,"data",void 0);KU=_.E([_.m({is:"ytd-handles-claiming-radio-option-renderer",disableElementRegistration:!0})],KU);
_.Z(KU,"ytd-handles-claiming-radio-option-renderer",function(){if(lhy!==void 0)return lhy;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return lhy=I},{mode:1});var Xx8;var $rY=/^[\x00-\x7F]+$/,Ab=function(){var I=_.q.apply(this,arguments)||this;I.initialRadioIndex="-1";I.isLoading=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.maybeSubmitFeedback=function(){I.feedbackSurveyRenderer.submitSurvey()};
return I};
_.R(Ab,_.q);Ab.prototype.updateSelectedHandleIndexFromBinding=function(I){this.selectedRadioIndex=+I.detail.value;if(this.onSelectedRadioIndexChanged)this.onSelectedRadioIndexChanged(I)};
Ab.prototype.selectedHandleChanged=function(I){if(this.handleInput&&Number(this.selectedRadioIndex)===this.radioButtonLength&&this.onSelectedHandleChanged){var C;this.selectedHandle=(C=this.handleInput)==null?void 0:C.value;this.onSelectedHandleChanged(I)}};
_.H1.Object.defineProperties(Ab.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.radioButton)||[]).length}},
handleUrlPrefix:{configurable:!0,enumerable:!0,get:function(){var I;return this.ytRendererBehavior.getSimpleString((I=this.data)==null?void 0:I.handleUrlPrefix)}},
displayHandle:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle)return _.Ee("@"+this.selectedHandle)}},
displayHandleUrl:{configurable:!0,enumerable:!0,get:function(){if(this.handleUrlPrefix&&this.selectedHandle)return _.Ee(this.handleUrlPrefix+"@"+this.selectedHandle)}},
warningText:{configurable:!0,enumerable:!0,get:function(){if(this.selectedHandle&&!$rY.test(this.selectedHandle)){var I;return(I=this.data)==null?void 0:I.warningText}}}});
_.E([_.d(),_.h("design:type",Object)],Ab.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ab.prototype,"initialRadioIndex",void 0);_.E([_.d(),_.h("design:type",Number)],Ab.prototype,"selectedRadioIndex",void 0);_.E([_.d(),_.h("design:type",String)],Ab.prototype,"selectedHandle",void 0);_.E([_.d(),_.h("design:type",Object)],Ab.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Function)],Ab.prototype,"onSelectedHandleChanged",void 0);
_.E([_.d(),_.h("design:type",Function)],Ab.prototype,"onSelectedRadioIndexChanged",void 0);_.E([_.z$("#channel-handle-input"),_.h("design:type",Object)],Ab.prototype,"handleInput",void 0);_.E([_.z$("ytd-feedback-survey-renderer"),_.h("design:type",Object)],Ab.prototype,"feedbackSurveyRenderer",void 0);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],Ab.prototype,"radioButtonLength",null);
_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ab.prototype,"handleUrlPrefix",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ab.prototype,"displayHandle",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ab.prototype,"displayHandleUrl",null);_.E([_.v("selectedHandle"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ab.prototype,"warningText",null);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ab.prototype,"darkerDarkTheme",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ab.prototype,"ytRendererBehavior",void 0);Ab=_.E([_.m({is:"ytd-handles-claiming-select-dialog-content",disableElementRegistration:!0})],Ab);
_.Z(Ab,"ytd-handles-claiming-select-dialog-content",function(){if(Xx8!==void 0)return Xx8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Xx8=I},{mode:1});var RqK;var g$=function(){var I=_.q.apply(this,arguments)||this;I.actionButtonOverride={style:"mono",type:"filled",size:"M"};I.cancelButtonOverride={style:"mono",type:"text",size:"M"};I.initialRadioIndex="-1";I.selectButtonDisabled=!1;I.isLoading=!1;I.selectedRadioIndexChanged=function(C){I.selectedRadioIndex=Number(C.detail.value)};
I.selectedHandleChanged=function(C){I.selectedHandle=C.detail.value};
I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(g$,_.q);_.u=g$.prototype;_.u.onDataChanged=function(){this.initialRadioIndex="0";this.selectedRadioIndex=0};
_.u.onSelectedHandleIndexChanged=function(){this.updateSelectedHandle()};
_.u.onSelectedHandleChanged=function(){this.updateSelectButtonDisabled();_.uW(this.hostElement,"yt-refit-popups-action")};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onCancel=function(){this.initialRadioIndex="-1";this.selectedRadioIndex=-1;_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onSelectHandle=function(){var I=this;if(this.selectedHandle!==void 0){var C;((C=this.data)==null?void 0:C.updateChannelPageSettings)!==void 0&&(this.isLoading=!0,this.ytComponentBehavior.resolveCommand(this.data.updateChannelPageSettings,{form:{handle:this.selectedHandle},commandController:{onSuccess:function(y,k){if(k.newHandleUpdateStatus!==void 0&&k.newHandleUpdateStatus.error==="HANDLE_UPDATE_ERROR_HANDLE_CHANGE_QUOTA_EXCEEDED"&&k.newHandleUpdateStatus.errorMessage)_.ly(I.hostElement,_.hS(k.newHandleUpdateStatus.errorMessage)),
I.isLoading=!1;else{var F;if((F=I.data)==null?0:F.onChannelUpdateSuccess){y=I.data.onChannelUpdateSuccess;k=_.l(y,_.jV);var z;if(k==null?0:(z=k.popup)==null?0:z.handlesClaimingConfirmDialogRenderer)k.popup.handlesClaimingConfirmDialogRenderer.handle=_.Ee(I.selectedHandle);I.ytComponentBehavior.resolveCommand(y);_.Fe(I.hostElement,"yt-close-popup-action",[I.is])}else I.isLoading=!1}},
onServerError:function(){if(I.selectedRadioIndex===I.radioButtonLength){var y;I.content&&((y=I.content)==null?0:y.handleInput)&&I.content.handleInput.validate()}I.isLoading=!1;_.ly(I.hostElement,_.PQ("TRY_AGAIN_LATER"))}}}))}};
_.u.updateSelectedHandle=function(){if(this.selectedRadioIndex!==void 0)if(this.selectedRadioIndex<0)this.selectedHandle=void 0;else if(this.selectedRadioIndex===this.radioButtonLength){var I,C;this.selectedHandle=(I=this.content)==null?void 0:(C=I.handleInput)==null?void 0:C.value}else this.selectedRadioIndex>=0&&((I=this.getRadioItem(this.selectedRadioIndex))?this.selectedHandle=this.ytRendererBehavior.getSimpleString(I==null?void 0:I.handle):this.selectedHandle=void 0)};
_.u.updateSelectButtonDisabled=function(){this.selectButtonDisabled=this.isLoading||this.selectedHandle===void 0||this.selectedHandle===""||!this.selectedHandle};
_.u.getRadioItem=function(I){if(this.radioButtonLength>I&&I>=0)return _.l(this.data.radioButton[I],vrL)};
_.H1.Object.defineProperties(g$.prototype,{radioButtonLength:{configurable:!0,enumerable:!0,get:function(){var I;return(((I=this.data)==null?void 0:I.radioButton)||[]).length}}});
g$.prototype.onSelectedHandleChanged=g$.prototype.onSelectedHandleChanged;g$.prototype.onSelectedHandleIndexChanged=g$.prototype.onSelectedHandleIndexChanged;g$.prototype.onDataChanged=g$.prototype.onDataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],g$.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],g$.prototype,"actionButtonOverride",void 0);_.E([_.d(),_.h("design:type",Object)],g$.prototype,"cancelButtonOverride",void 0);
_.E([_.d(),_.h("design:type",Object)],g$.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],g$.prototype,"initialRadioIndex",void 0);_.E([_.d(),_.h("design:type",Number)],g$.prototype,"selectedRadioIndex",void 0);_.E([_.d(),_.h("design:type",String)],g$.prototype,"selectedHandle",void 0);_.E([_.d(),_.h("design:type",Object)],g$.prototype,"selectButtonDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],g$.prototype,"isLoading",void 0);
_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],g$.prototype,"radioButtonLength",null);_.E([_.z$("ytd-handles-claiming-select-dialog-content"),_.h("design:type",Object)],g$.prototype,"content",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g$.prototype,"onDataChanged",null);
_.E([_.FI("selectedRadioIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g$.prototype,"onSelectedHandleIndexChanged",null);_.E([_.FI("selectedHandle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],g$.prototype,"onSelectedHandleChanged",null);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],g$.prototype,"darkerDarkTheme",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],g$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],g$.prototype,"ytRendererstamperBehavior",void 0);g$=_.E([_.m({is:"ytd-handles-claiming-select-dialog-renderer",disableElementRegistration:!0})],g$);
_.Z(g$,"ytd-handles-claiming-select-dialog-renderer",function(){if(RqK!==void 0)return RqK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return RqK=I},{mode:1});var bz8;var YAS;var vI=function(){return _.q.apply(this,arguments)||this};
_.R(vI,_.q);vI.prototype.configureRendererStamper=function(){return{"data.badge":{id:"standalone-badge",mapping:{metadataBadgeRenderer:{component:"ytd-badge-supported-renderer",properties:{topStandaloneBadge:"[[data.badge]]"}}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],vI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vI.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vI.prototype,"data",void 0);vI=_.E([_.m({is:"ytd-hotkey-dialog-section-option-renderer",disableElementRegistration:!0})],vI);
_.Z(vI,"ytd-hotkey-dialog-section-option-renderer",function(){if(YAS!==void 0)return YAS;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return YAS=I},{mode:1});var GfB;var WI=function(){return _.q.apply(this,arguments)||this};
_.R(WI,_.q);WI.prototype.configureRendererStamper=function(){return{"data.options":{id:"options",mapping:{hotkeyDialogSectionOptionRenderer:"ytd-hotkey-dialog-section-option-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],WI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],WI.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],WI.prototype,"data",void 0);WI=_.E([_.m({is:"ytd-hotkey-dialog-section-renderer",disableElementRegistration:!0})],WI);
_.Z(WI,"ytd-hotkey-dialog-section-renderer",function(){if(GfB!==void 0)return GfB;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return GfB=I},{mode:1});var d$=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(d$,_.q);d$.prototype.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{hotkeyDialogSectionRenderer:"ytd-hotkey-dialog-section-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],d$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],d$.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],d$.prototype,"darkerDarkTheme",void 0);d$=_.E([_.m({is:"ytd-hotkey-dialog-content",disableElementRegistration:!0})],d$);
_.Z(d$,"ytd-hotkey-dialog-content",function(){if(bz8!==void 0)return bz8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return bz8=I},{mode:1});var fhR;var xn=function(){return _.q.apply(this,arguments)||this};
_.R(xn,_.q);xn.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var I=document.querySelector("ytd-hotkey-dialog-content #scrollable");I&&(I.dialogElement=this.hostElement.parentElement)};
xn.prototype.onCloseTap=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xn.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xn.prototype,"data",void 0);xn=_.E([_.m({is:"ytd-hotkey-dialog-renderer",disableElementRegistration:!0})],xn);
_.Z(xn,"ytd-hotkey-dialog-renderer",function(){if(fhR!==void 0)return fhR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return fhR=I},{mode:1});var SAS;var qB=function(){return _.q.apply(this,arguments)||this};
_.R(qB,_.q);qB.prototype.onYtServiceRequestError=function(){if(this.blocked){var I;var C=(I=this.data)==null?void 0:I.defaultServiceEndpoint}else{var y;C=(y=this.data)==null?void 0:y.toggledServiceEndpoint}var k;(C=(k=_.l(C,_.plq))==null?void 0:k.onFailureAction)&&this.ytComponentBehavior.resolveCommand(C);this.updateBlockState(!this.blocked)};
qB.prototype.onYtToggleButton=function(I){this.updateBlockState(I.detail.toggled)};
qB.prototype.updateBlockState=function(I){if(I!==this.blocked){var C=this.blockedEntityKey;C&&this.ytdReduxBehavior.dispatch(_.wJ("blockStateEntity",C,{key:C,blocked:I}));this.set("data.isToggled",I)}};
_.H1.Object.defineProperties(qB.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)}}});
qB.prototype.onYtToggleButton=qB.prototype.onYtToggleButton;qB.prototype.onYtServiceRequestError=qB.prototype.onYtServiceRequestError;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],qB.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],qB.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],qB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],qB.prototype,"blockedEntityKey",void 0);
_.E([_.d({selectorArgs:["blockedEntityKey"],selector:function(I,C){return _.cg(I.entities,"blockStateEntity",C)}}),
_.h("design:type",Object)],qB.prototype,"blockStateEntity",void 0);_.E([_.v("data","blockStateEntity"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],qB.prototype,"blocked",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qB.prototype,"onYtServiceRequestError",null);
_.E([_.km("yt-toggle-button"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],qB.prototype,"onYtToggleButton",null);qB=_.E([_.m({is:"ytd-block-button",disableElementRegistration:!0})],qB);
_.Z(qB,"ytd-block-button",function(){if(SAS!==void 0)return SAS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return SAS=I},
{mode:1});var KlP;var A2y;var m3=function(){return _.q.apply(this,arguments)||this};
_.R(m3,_.q);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],m3.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],m3.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],m3.prototype,"data",void 0);m3=_.E([_.m({is:"ytd-kids-blocklist-picker-item-renderer",disableElementRegistration:!0})],m3);
_.Z(m3,"ytd-kids-blocklist-picker-item-renderer",function(){if(A2y!==void 0)return A2y;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return A2y=I},{mode:1});var ZE=function(){return _.q.apply(this,arguments)||this};
_.R(ZE,_.q);ZE.prototype.configureRendererStamper=function(){return{"data.childRows":{id:"child-rows",mapping:{kidsBlocklistPickerItemRenderer:"ytd-kids-blocklist-picker-item-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ZE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ZE.prototype,"data",void 0);ZE=_.E([_.m({is:"ytd-kids-blocklist-picker-content",disableElementRegistration:!0})],ZE);
_.Z(ZE,"ytd-kids-blocklist-picker-content",function(){if(KlP!==void 0)return KlP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return KlP=
I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var gTL;var BI=function(){var I=_.q.apply(this,arguments)||this;I.hasAnyRequestSucceeded=!1;I.hasAnyRequestFailed=!1;I.numPendingRequests=0;return I};
_.R(BI,_.q);_.u=BI.prototype;_.u.attached=function(){this.hostElement.setAttribute("dialog","")};
_.u.onDoneButtonTap=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-kids-blocklist-picker-renderer"])};
_.u.onYtServiceRequestSent=function(){this.numPendingRequests+=1};
_.u.onYtServiceRequestCompleted=function(){--this.numPendingRequests;this.hasAnyRequestSucceeded=!0};
_.u.onYtServiceRequestError=function(){--this.numPendingRequests;this.hasAnyRequestFailed=!0};
_.u.onPopupClosed=function(I){var C,y;if(((C=I.detail)==null?void 0:(y=C.popup)==null?void 0:y.is)==="tp-yt-paper-dialog"){var k;this.numPendingRequests<=0&&this.hasAnyRequestSucceeded&&!this.hasAnyRequestFailed&&((k=this.data)==null?0:k.successfulToastActionMessage)&&this.ytComponentBehavior.resolveCommand(_.JS(this.data.successfulToastActionMessage));this.hasAnyRequestFailed=this.hasAnyRequestSucceeded=!1;this.numPendingRequests=0}};
BI.prototype.onPopupClosed=BI.prototype.onPopupClosed;BI.prototype.onYtServiceRequestError=BI.prototype.onYtServiceRequestError;BI.prototype.onYtServiceRequestCompleted=BI.prototype.onYtServiceRequestCompleted;BI.prototype.onYtServiceRequestSent=BI.prototype.onYtServiceRequestSent;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],BI.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],BI.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],BI.prototype,"data",void 0);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BI.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BI.prototype,"onYtServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],BI.prototype,"onYtServiceRequestError",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],BI.prototype,"onPopupClosed",null);BI=_.E([_.m({is:"ytd-kids-blocklist-picker-renderer",disableElementRegistration:!0})],BI);
_.Z(BI,"ytd-kids-blocklist-picker-renderer",function(){if(gTL!==void 0)return gTL;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return gTL=I},{mode:1});var vTR;var Wl8;var ET=function(){return _.q.apply(this,arguments)||this};
_.R(ET,_.q);ET.prototype.setTip=function(I){var C=this;this.data&&(this.tip=X7L(jAL.getInstance(),I,this.data),_.hn(this,function(){_.k3(C.hostElement,"yt-refit")}))};
ET.prototype.clearTip=function(){this.tip=void 0};
ET.prototype.computeHidden=function(I){return!I};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],ET.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ET.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeHidden(tip)",value:!0}),_.h("design:type",Boolean)],ET.prototype,"hidden",void 0);_.E([_.d(),_.h("design:type",Object)],ET.prototype,"tip",void 0);ET=_.E([_.m({is:"ytd-menu-popup-tip-renderer",disableElementRegistration:!0})],ET);
_.Z(ET,"ytd-menu-popup-tip-renderer",function(){if(Wl8!==void 0)return Wl8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);
return Wl8=I},{mode:1});var drY;var hb=function(){var I=_.q.apply(this,arguments)||this;I.useIcons=!1;I.systemIcons=_.V("kevlar_system_icons");I.useListItemStyles=_.V("web_list_item_style_for_menu_items");return I};
_.R(hb,_.q);_.u=hb.prototype;_.u.onFocus=function(){var I;(I=_.f(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.u.onTap=function(){var I=this.data.isToggled?this.data.toggledServiceEndpoint:this.data.defaultServiceEndpoint;if(I&&_.l(I,_.r9))this.componentBehavior.resolveCommand(I),this.updateToggledStateInEntity();else if(I){this.componentBehavior.resolveCommand(I)||_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}});var C;((C=_.l(I,_.w9))==null?void 0:C.signal)==="CLIENT_SIGNAL"&&this.updateToggledStateInEntity()}};
_.u.onYtServiceRequestCompleted=function(){this.updateToggledStateInEntity()};
_.u.toggledStateEntityChanged=function(){this.toggleMenuServiceItemEntity&&this.set("data.isToggled",!!this.toggleMenuServiceItemEntity.isToggled)};
_.u.updateToggledStateInEntity=function(){var I=this.data.toggleMenuServiceItemEntityKey,C=!this.data.isToggled;I&&this.ytdReduxBehavior.dispatch(_.wJ("toggleMenuServiceItemEntity",I,{key:I,isToggled:C}))};
_.u.computeIcon=function(I,C,y){return(I=I?y:C)&&I.iconType?_.y5(I.iconType):""};
_.u.computeIconHidden=function(){return this.useIcons?!1:!this.icon};
_.u.isIconActive=function(I){return!_.V("toggle_menu_active_icon_killswitch")&&I};
_.H1.Object.defineProperties(hb.prototype,{toggleButtonText:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?0:I.isToggled)?(C=this.data)==null?void 0:C.toggledText:(y=this.data)==null?void 0:y.defaultText}}});
hb.prototype.toggledStateEntityChanged=hb.prototype.toggledStateEntityChanged;hb.prototype.onYtServiceRequestCompleted=hb.prototype.onYtServiceRequestCompleted;hb.prototype.onTap=hb.prototype.onTap;hb.prototype.onFocus=hb.prototype.onFocus;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],hb.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],hb.prototype,"componentBehavior",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],hb.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],hb.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hb.prototype,"useIcons",void 0);_.E([_.d({computed:"computeIcon(data.isToggled,data.defaultIcon,data.toggledIcon)",value:""}),_.h("design:type",String)],hb.prototype,"icon",void 0);
_.E([_.d({selectorArgs:["data.toggleMenuServiceItemEntityKey"],selector:function(I,C){return _.cg(I.entities,"toggleMenuServiceItemEntity",C)}}),
_.h("design:type",Object)],hb.prototype,"toggleMenuServiceItemEntity",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hb.prototype,"systemIcons",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],hb.prototype,"useListItemStyles",void 0);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hb.prototype,"onFocus",null);
_.E([_.v("data.isToggled"),_.h("design:type",Object),_.h("design:paramtypes",[])],hb.prototype,"toggleButtonText",null);_.E([_.km("tap"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hb.prototype,"onTap",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hb.prototype,"onYtServiceRequestCompleted",null);
_.E([_.FI("toggleMenuServiceItemEntity.isToggled","data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],hb.prototype,"toggledStateEntityChanged",null);hb=_.E([_.m({is:"ytd-toggle-menu-service-item-renderer",disableElementRegistration:!0})],hb);
_.Z(hb,"ytd-toggle-menu-service-item-renderer",function(){if(drY!==void 0)return drY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return drY=I},{mode:1});var xr8;var UT=function(){return _.q.apply(this,arguments)||this};
_.R(UT,_.q);UT.prototype.onFocus=function(){var I;(I=_.f(this.hostElement).querySelector("tp-yt-paper-item"))==null||I.focus()};
_.H1.Object.defineProperties(UT.prototype,{imageSource:{configurable:!0,enumerable:!0,get:function(){if(this.data&&this.data.iconUrl)return _.ra(this.data.iconUrl)}}});
UT.prototype.onFocus=UT.prototype.onFocus;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],UT.prototype,"rendererBehavior",void 0);_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],UT.prototype,"ytEndpointBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],UT.prototype,"data",void 0);_.E([_.km("focus"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],UT.prototype,"onFocus",null);
_.E([_.v("data.iconUrl"),_.h("design:type",Object),_.h("design:paramtypes",[])],UT.prototype,"imageSource",null);UT=_.E([_.m({disableElementRegistration:!0,is:"ytd-menu-custom-icon-item-renderer"})],UT);
_.Z(UT,"ytd-menu-custom-icon-item-renderer",function(){if(xr8!==void 0)return xr8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return xr8=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});_.B9(_.LJ,"yt-list-item-view-model",{props:{data:_.As,isMenuItem:_.As,isCompact:_.As,onTap:_.Z_,trailingAccessory:_.Z_,hideSelectionTextChevron:_.As,disabled:_.As,inPopup:_.As,disableHorizontalPadding:_.As,isOverlay:_.As}});var HI=function(){var I=_.q.apply(this,arguments)||this;I.disableBackdropFilter=_.V("web_disable_backdrop_filter");return I};
_.R(HI,_.q);_.u=HI.prototype;
_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","menu")};
_.u.computeAriaLabel=function(I){return I};
_.u.onPopupOpened=function(){this.items.selected=0;for(var I=_.T(_.f(this.items).children),C=I.next();!C.done;C=I.next())C.value.popupPositionTarget=this.positionTarget;if(I=this.popupTip||void 0)I.setTip(this.source||""),this.source=void 0;this.veData&&(I=_.Si())&&_.Z0(I,[this.veData])};
_.u.onPopupClosed=function(){var I=this.popupTip||void 0;I&&I.clearTip()};
_.u.onIronActivate=function(I){this.shouldPersist(I)||_.Fe(this.hostElement,"yt-close-popup-action",["ytd-menu-popup-renderer"]);this.veData&&(I=_.Si())&&_.EN(I,this.veData)};
_.u.shouldPersist=function(I){var C,y;if(((C=I.detail)==null?void 0:C.selected)===void 0||(y=this.data)==null||!y.items)return!1;var k,F;return!((F=(k=this.data.items[I.detail.selected])==null?void 0:k.toggleMenuServiceItemRenderer)==null||!F.persistentOnMenuPopup)};
_.u.computeUseIcons=function(){return this.data&&this.data.items?this.data.items.some(function(I){return I.menuNavigationItemRenderer?!!I.menuNavigationItemRenderer.icon:I.menuServiceItemRenderer?!!I.menuServiceItemRenderer.icon:I.menuConditionalServiceItemRenderer?!!I.menuConditionalServiceItemRenderer.icon:I.menuConditionalNavigationItemRenderer?!!I.menuConditionalNavigationItemRenderer.icon:I.toggleMenuServiceItemRenderer?!!I.toggleMenuServiceItemRenderer.defaultIcon:!1}):!1};
HI.prototype.onPopupClosed=HI.prototype.onPopupClosed;HI.prototype.onPopupOpened=HI.prototype.onPopupOpened;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],HI.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],HI.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],HI.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],HI.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],HI.prototype,"veData",void 0);_.E([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data.menuPopupAccessibility.label)"}),_.h("design:type",String)],HI.prototype,"ariaLabel",void 0);_.E([_.d({computed:"computeUseIcons(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],HI.prototype,"useIcons",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],HI.prototype,"disableBackdropFilter",void 0);_.E([_.z$("#items"),_.h("design:type",Object)],HI.prototype,"items",void 0);_.E([_.z$("ytd-menu-popup-tip-renderer"),_.h("design:type",Object)],HI.prototype,"popupTip",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HI.prototype,"onPopupOpened",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],HI.prototype,"onPopupClosed",null);HI=_.E([_.m({is:"ytd-menu-popup-renderer",disableElementRegistration:!0})],HI);
_.Z(HI,"ytd-menu-popup-renderer",function(){if(vTR!==void 0)return vTR;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return vTR=I},{mode:1});var qA8;var mrY=_.BO(function(I){I=_.ZB(I,{icon:void 0});var C=I.data;I=I.icon;var y=function(){return C().iconBadgeText},k={},F=_.sZ("yt-spec-icon-badge-shape",function(){a:switch(C().iconBadgeType){case "notification":var z="yt-spec-icon-badge-shape--type-notification";
break a;case "cart":z="yt-spec-icon-badge-shape--type-cart";break a;default:z=""}return z},function(){a:switch(C().iconBadgeStyle){case "overlay":var z="yt-spec-icon-badge-shape--style-overlay";
break a;default:z=""}return z},(k["yt-spec-icon-badge-shape--text-size-small"]=function(){var z=y();
return!!((z==null?0:z.length)&&z.length>2)},k));
return _.P("yt-icon-badge-shape",null,_.P(_.Dx,{cond:I,then:function(z){return _.P("div",{class:F},_.P("div",{class:"yt-spec-icon-badge-shape__icon"},_.P(_.ez,{icon:z})),_.P(_.Dx,{cond:y,then:function(c){return _.P("div",{class:"yt-spec-icon-badge-shape__badge"},c)}}))}}))},"Zf");
mrY.idomCompat=!0;_.B9(mrY,"yt-icon-badge-shape",{props:{data:_.As,icon:_.As}});var tb=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-notifications-unseen-count-action":"handleUpdateNotificationsUnseenCountAction","yt-multi-page-menu-closed-action":"handleTopbarMenuClosedAction"};I.unseenCount=0;I.isOverlay=!1;return I};
_.R(tb,_.q);_.u=tb.prototype;_.u.attached=function(){var I=this;this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);navigator&&navigator.serviceWorker&&navigator.serviceWorker.addEventListener("message",function(C){I.onServiceWorkerMessage(C)})};
_.u.onDataChanged=function(){this.isAttached&&!this.JSC$18129_lastData&&this.data&&this.data.updateUnseenCountEndpoint&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint);this.JSC$18129_lastData=this.data};
_.u.computeIconBadgeShape=function(){return{iconBadgeType:"notification",iconBadgeText:this.unseenCount,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.u.computeIcon=function(){var I,C;return(I=this.data)==null?void 0:(C=I.icon)==null?void 0:C.iconType};
_.u.onServiceWorkerMessage=function(I){I.data.type==="update_unseen_notifications_count_signal"&&this.data&&this.data.updateUnseenCountEndpoint&&this.hasUnseenNotificationCountEndpoint()&&this.sendUnseenCountRequest(this.data.updateUnseenCountEndpoint)};
_.u.hasUnseenNotificationCountEndpoint=function(){return!!this.data&&!!this.data.updateUnseenCountEndpoint&&!!_.l(this.data.updateUnseenCountEndpoint,_.w9)&&_.l(this.data.updateUnseenCountEndpoint,_.w9).signal==="GET_UNSEEN_NOTIFICATION_COUNT"};
_.u.handleUpdateNotificationsUnseenCountAction=function(I){var C=this;I=_.l(I,RtR);I!=null&&I.unseenCount&&I.handlerData==="NOTIFICATION_ACTION_UPDATE_UNSEEN_COUNT"&&(this.updateCountUI(I.unseenCount),_.b$.addLowPriorityJob(function(){C.data.updateUnseenCountEndpoint&&C.ytComponentBehavior.resolveCommand(C.data.updateUnseenCountEndpoint)},I.timeoutMs))};
_.u.onClick=function(){_.k3(this.hostElement,"yt-update-unseen-notification-count",0);this.set("unseenCount",0);this.toggleIconState(!0);var I=_.uW(this.hostElement,"yt-get-popup-opened-action",["ytd-multi-page-menu-renderer"]),C=this.data.menuRequest;I&&I.length===1&&I[0]?_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]):C&&this.ytComponentBehavior.resolveCommand(C)};
_.u.handleTopbarMenuClosedAction=function(I){I==="multi-page-menu-style-type-notifications"&&this.toggleIconState(!1)};
_.u.toggleIconState=function(I){this.iconButton&&(this.iconButton.pressed=I)};
_.u.sendUnseenCountRequest=function(I){var C=this;_.NU(_.b$,function(){C.ytComponentBehavior.resolveCommand(I)})};
_.u.updateCountUI=function(I){this.set("unseenCount",I<9?I:"9+")};
_.H1.Object.defineProperties(tb.prototype,{showNotificationCount:{configurable:!0,enumerable:!0,get:function(){return this.unseenCount}}});
tb.prototype.handleUpdateNotificationsUnseenCountAction=tb.prototype.handleUpdateNotificationsUnseenCountAction;tb.prototype.onDataChanged=tb.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],tb.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],tb.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.vA),_.h("design:type",Object)],tb.prototype,"ytdOpenPopupBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],tb.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],tb.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],tb.prototype,"unseenCount",void 0);_.E([_.d(),_.h("design:type",Object)],tb.prototype,"isOverlay",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],tb.prototype,"showTooltips",void 0);_.E([_.z$("yt-icon-button"),_.h("design:type",Object)],tb.prototype,"iconButton",void 0);
_.E([_.v("unseenCount"),_.h("design:type",Object),_.h("design:paramtypes",[])],tb.prototype,"showNotificationCount",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],tb.prototype,"onDataChanged",null);_.E([_.km("yt-update-notifications-unseen-count-action"),_.h("design:type",Function),_.h("design:paramtypes",[Object]),_.h("design:returntype")],tb.prototype,"handleUpdateNotificationsUnseenCountAction",null);
tb=_.E([_.m({is:"ytd-notification-topbar-button-renderer",disableElementRegistration:!0})],tb);
_.Z(tb,"ytd-notification-topbar-button-renderer",function(){if(qA8!==void 0)return qA8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return qA8=I},{mode:_.Ij("kevlar_poly_si_batch_j025")?1:2});var ZzK;var Jb=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggled"};return I};
_.R(Jb,_.q);Jb.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}}}}}};
Jb.prototype.attached=function(){this.dark=document.documentElement.hasAttribute("dark")};
Jb.prototype.onDarkModeToggled=function(I){this.dark=I};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Jb.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Jb.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Jb.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Jb.prototype,"data",void 0);_.E([_.d({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],Jb.prototype,"dark",void 0);
Jb=_.E([_.m({disableElementRegistration:!0,is:"yt-pdg-buy-flow-header-renderer"})],Jb);
_.Z(Jb,"yt-pdg-buy-flow-header-renderer",function(){if(ZzK!==void 0)return ZzK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ZzK=I},{mode:1});var BF8;var ETY;var OT=function(){var I=_.q.apply(this,arguments)||this;I.immediateValue=0;I.isDarkTheme=!1;I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(OT,_.q);_.u=OT.prototype;_.u.created=function(){_.WV.requestAvailability()};
_.u.attached=function(){this.isDarkTheme=document.documentElement.hasAttribute("dark")};
_.u.dataChanged=function(){var I=_.f(this.hostElement).querySelector("#color-slider");I.immediateValue&&this.updateSliderKnobAndGradientStyles(I.immediateValue);this.data.notches[0].knobColorArgb&&_.CK(this.hostElement,{"--ytd-pdg-color-slider-first-knob-color":_.Xl(this.data.notches[0].knobColorArgb)});this.data.notches&&(this.maxMarkers=this.data.notches.length-1);_.Aq("HTML_DIR")==="rtl"&&_.f(this.hostElement).querySelector("#color-slider").setAttribute("dir","rtl");this.updateSliderAria()};
_.u.onSliderImmediateChange=function(){var I=_.f(this.hostElement).querySelector("#color-slider");I.dragging&&(I.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(I.immediateValue),this.updateSliderKnobAndGradientStyles(I.immediateValue)),this.updateSliderAria())};
_.u.onSliderChange=function(){var I=_.f(this.hostElement).querySelector("#color-slider");I.immediateValue!==void 0&&(this.updateSuperThanksSelectedTierEntity(I.immediateValue),this.updateSliderKnobAndGradientStyles(I.immediateValue));this.updateSliderAria()};
_.u.updateSliderAria=function(){var I=_.f(this.hostElement).querySelector("#color-slider"),C=_.f(this.hostElement).querySelector("#color-slider");C=_.hS(this.data.notches[C.immediateValue].tierValue);_.Yz()&&_.k3(this.hostElement,"iron-announce",{text:C});I.setAttribute("aria-valuetext",C)};
_.u.updateSuperThanksSelectedTierEntity=function(I){if(I!==this.immediateValue){var C,y,k=this==null?void 0:(C=this.data)==null?void 0:(y=C.superThanksSelectedTierEntity)==null?void 0:y.key;k&&k.length>0&&this.ytdReduxBehavior.dispatch(_.wJ("superThanksSelectedTierEntity",k,{key:k,index:I}))}};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.updateSliderKnobAndGradientStyles=function(I){this.immediateValue=I;I=this.data.notches[I];if(I==null?0:I.knobColorArgb)var C={"--ytd-pdg-color-slider-knob-color":_.Xl(I.knobColorArgb)};(I==null?0:I.linearGradientCssStyle)&&C!==null&&(C=Object.assign({},C,{"--ytd-pdg-color-slider-active-color":I==null?void 0:I.linearGradientCssStyle}));C!==null&&_.CK(this.hostElement,C)};
OT.prototype.onSliderChange=OT.prototype.onSliderChange;OT.prototype.onSliderImmediateChange=OT.prototype.onSliderImmediateChange;OT.prototype.dataChanged=OT.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],OT.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],OT.prototype,"immediateValue",void 0);_.E([_.d(),_.h("design:type",Number)],OT.prototype,"maxMarkers",void 0);
_.E([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:XHH}),_.h("design:type",Object)],OT.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],OT.prototype,"isDarkTheme",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],OT.prototype,"ytdReduxBehavior",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OT.prototype,"dataChanged",null);
_.E([_.km("immediate-value-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OT.prototype,"onSliderImmediateChange",null);_.E([_.km("change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],OT.prototype,"onSliderChange",null);OT=_.E([_.m({disableElementRegistration:!0,is:"ytd-pdg-color-slider-renderer"})],OT);
_.Z(OT,"ytd-pdg-color-slider-renderer",function(){if(ETY!==void 0)return ETY;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return ETY=I},{mode:1});var hqR;var UrH;var ax=null;
_.pK({is:"ytd-comment-input",_template:function(){if(UrH!==void 0)return UrH;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return UrH=I},
behaviors:[_.kfF.YtHostElementBehavior,_.Ds,_.$y.YtComponentBehavior,_.B7.YtRendererstamperBehavior,_.Jgw.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 _.$p}},
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",_.sb(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;_.zJ();this.focus()},
detached:function(){document.removeEventListener("tap",_.sb(this,this.onTap_))},
created:function(){document.addEventListener("selectionchange",this.onSelectionChange_);this.textRequiresScrolling=!1},
onEmojiSelect:function(I){I=I.detail;I=I.isCustomEmoji?I.shortcuts[0]:I.emojiId;var C=this.getInputRange_().cloneRange();this.insertTextWithEmojis_(C,I);this.maybeUpdateTextDirection_();_.k3(this.hostElement,"input")},
getInputRange_:function(){var I=_.Ln();if(I){I=I.getBrowserRangeObject();for(var C=I.commonAncestorContainer;C;){if(C===this.getEditableTextArea_())return I;C=C.parentNode}}I=this.getEditableTextArea_();I=_.f6(I,I.childNodes.length);I.select();return I.getBrowserRangeObject()},
insertTextWithEmojis_:function(I,C,y){(C=this.emojiManager.createDocumentFragment(C,!0,!1,y===void 0?!0:y))&&C.childNodes.length!==0&&(I.collapsed||I.deleteContents(),y=C.lastChild,I.insertNode(C),_.Zxd(y).select(),this.getInputRange_().collapse(!1),this.getEditableTextArea_().normalize())},
onSelectionChange_:function(){var I=_.Ln();if(I){var C=I.JSC$9128_getStartNode(),y=I.JSC$9128_getEndNode();if(rSR(C)&&rSR(y)){var k=I.JSC$9128_getStartOffset(),F;if(_.T6&&C.nodeType===Node.ELEMENT_NODE&&(F=_.RYw(C)))_.f6(F,0).select();else{F=hF(C)?C:_.$F(C,hF);var z=hF(y)?y:_.$F(y,hF);if(F||z)if(I.isCollapsed()){if(C.nodeType===Node.TEXT_NODE){I=!0;k===C.length&&(I=!1);if(ax==="end"||ax==="right")I=!1;C=C.parentNode;I=[].concat(_.Py(C.parentNode.childNodes)).indexOf(C)+(I?0:1);_.f6(C.parentNode,I).select()}}else F?
F.previousSibling&&F.previousSibling.length>0?_.S_(y,I.JSC$9128_getEndOffset(),F.previousSibling,F.previousSibling.length-1).select():(C=document.createTextNode("\u200b"),F.parentNode.insertBefore(C,F),_.S_(y,I.JSC$9128_getEndOffset(),C,0).select()):z&&(z.nextSibling&&z.nextSibling.length>0?_.S_(C,I.JSC$9128_getStartOffset(),z.nextSibling,1).select():(y=document.createTextNode("\u200b"),z.parentNode.insertBefore(y,z.nextSibling),_.S_(C,I.JSC$9128_getStartOffset(),y,y.length).select()));ax=null}}else ax=
null}else ax=null},
leftKeyPressed_:function(){ax="left"},
rightKeyPressed_:function(){ax="right"},
endKeyPressed_:function(){ax="end"},
maybeDeleteChip_:function(){var I=DkR(!0);if(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();_.$1(y,C,I,I.childNodes.length).select()}},
maybeBackspaceChip_:function(){var I=DkR(!1);if(I){var C=_.Ln(),y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();_.$1(y,C,I,0).select()}},
maybeBackspaceChipWordMode_:function(I){var C=_.Ln();if(C.isCollapsed()){var y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();var k=pgL(y,C,!0);k&&(_.$1(y,C,k,0).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
maybeDeleteChipWordMode_:function(I){var C=_.Ln();if(C.isCollapsed()){var y=C.JSC$9128_getStartNode();C=C.JSC$9128_getStartOffset();var k=pgL(y,C,!1);k&&(_.$1(y,C,k,k.childNodes.length).select(),document.execCommand("delete"),I.preventDefault(),I.stopImmediatePropagation())}},
onContentClick:function(I){I.target.id==="content"&&this.getEditableTextArea_().focus()},
onTap_:function(I){I.defaultPrevented||I.currentTarget.tagName==="YTD-COMMENT-INPUT"&&hF(I.target)&&I.preventDefault()},
clear:function(){this.errorMessage_=null;this.setTextAreaValue(this.editableText);this.previousText_=this.getTextAreaValue().trim();this.updateCharCount_();this.receivedFocusPreviously_=!1},
getEditableTextArea_:function(){return _.f(this.hostElement).querySelector("#contenteditable-textarea").getRoot().root.node},
getEditableFormattedString_:function(){return _.f(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(I,C){I=wgY(I,this.emojiManager,C).cloneNode(!0);for(C=I.firstChild;C;)if(C.nodeType!==1)C=C.nextSibling;else switch(C.tagName){case "BR":var y=_.bB();_.gK5(y,C);C=y.nextSibling;break;case "DIV":(y=C.lastChild)&&C.nextSibling&&_.SZ(_.bB(),y);C.previousSibling&&(C.previousSibling.nodeType===1||C.previousSibling.nodeType===3&&!C.previousSibling.textContent.endsWith("\n"))&&_.fQ(_.bB(),C);y&&y.nodeName==="BR"&&_.ey(y);y=C;C.hasChildNodes()?(C=C.firstChild,
_.vK0(y)):(C=C.nextSibling,_.ey(y));break;default:C=C.nextSibling}return QQP(I)},
setTextAreaValue:function(I){I||(I="");var C=this.getEditableFormattedString_();C.text="";this.getEditableTextArea_().innerText="";typeof I==="string"&&(I={runs:[{text:I}]});C.text=I},
focus:function(){this.getEditableTextArea_().focus();this.maybeSetCursorAtEnd_();this.maybeUpdateTextDirection_();ax=null},
maybeSetCursorAtEnd_:function(){if(!this.receivedFocusPreviously_){var I=this.getEditableTextArea_();I&&(_.f6(I,I.childNodes.length).select(),this.receivedFocusPreviously_=!0)}},
maybeUpdateTextDirection_:function(){if(_.Aq("HTML_DIR")==="rtl"){var I=this.getEditableTextArea_(),C=this.getTextAreaValue()!==""?"auto":"rtl";I.setAttribute("dir",C)}},
handleInputEvent_:function(){var I=null;if(this.isEmojiButtonDisplayed){var C=this.getInputRange_();C&&(I=this.emojiInput.retrieveTextBeforeRange(C))}this.insertText_(I,!0);this.updateCharCount_();I=this.getEditableTextArea_();this.isBackstagePost&&(this.textRequiresScrolling=I.scrollHeight>I.clientHeight);this.maybeHeightChanged()},
maybeHeightChanged:function(){var I=52+this.getEditableTextArea_().offsetHeight;this.fire("yt-commentbox-resize",{height:I})},
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(I){this.isEmojiButtonDisplayed&&(I.preventDefault(),I.stopImmediatePropagation(),I=I.clipboardData.getData("text/plain"),this.insertText_(I,!1,!1),_.k3(this.hostElement,"input"))},
insertText_:function(I,C,y){C=C===void 0?!1:C;y=y===void 0?!0:y;this.maybeUpdateTextDirection_();if(this.isEmojiButtonDisplayed&&I){var k=this.getInputRange_().cloneRange();this.emojiManager&&k&&(C&&this.emojiInput.offsetStartOfRangeBy(k,I.length),this.insertTextWithEmojis_(k,I,y),ixy(this.getEditableTextArea_().lastChild)||(k=this.getInputRange_().cloneRange()),k&&(this.emojiInput.updateSuggestions(k,I),this.updateSuggestionOffset_(k)))}},
getSimpleString:_.hS,computeHasCommentChip_:function(){return this.commentChip!==void 0},
computeCreationBoxClass_:function(I){return I?"focused":"not-focused"},
computePlaceholderText_:function(I){return this.getSimpleString(I)},
computeEditableText_:function(I){return this.getSimpleString(I)},
onPrefilledContentDismissed_:function(I){I.stopPropagation();this.dismissPrefilledContent_();this.getEditableTextArea_().focus()},
onInsertMention_:function(){this.updateCharCount_()},
isValidInput_:function(){return this.aboveCharLimit_?!1:!!this.getTextAreaValue().trim()},
onIsInputFocusChanged_:function(I,C){I?this.fire("yt-autonav-pause-focus"):C!==void 0&&this.fire("yt-autonav-pause-blur")},
plaintextDrop_:function(I){var C=this.getEditableTextArea_();[].concat(_.Py(I.dataTransfer.items)).forEach(function(y){y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(k){C.appendChild(document.createTextNode(k))})});
I.preventDefault()},
preventDefault_:function(I){I.preventDefault()},
onSuggestionInsert_:function(I){this.insertTextWithEmojis_(I.detail.range,I.detail.text)},
onEmojiSuggestionClick_:function(I){this.emojiInput.insertSuggestion(I.detail)},
updateSuggestionOffset_:function(I){if(this.emojiInput&&_.f(this.emojiInput).querySelector("#dropdown")){var C=this.getEditableTextArea_().getBoundingClientRect().bottom,y=I.getBoundingClientRect().top;this.verticalSuggestionsOffset=Math.ceil(C-y)+5;C=this.getEditableTextArea_().getBoundingClientRect().left;I=I.getBoundingClientRect().left-C;_.f(this.emojiInput).querySelector("#dropdown").style.marginLeft=I+"px"}},
getLocalStorage_:function(){this.localStorage||(this.localStorage=new _.Kw("yt-post"));return this.localStorage}});var MB=function(){var I=_.q.apply(this,arguments)||this;I.currentCommentOptionIndex=0;I.isEmojiPickerDisplayed=!1;I.emojiManager=_.$p;I.isUgcEmpty=!1;I.userGeneratedCommentChangedHandler=function(){_.k3(I.hostElement,"ytd-pdg-user-generated-comment-changed");I.isEmojiYtdCommentInputEnabled&&(I.isUgcEmpty=!I.ytdCommentInputEl.getTextAreaValue())};
I.pasteHandler=function(C){C.preventDefault();C.stopImmediatePropagation();var y;if(C=(y=C.clipboardData)==null?void 0:y.getData("text/plain"))y=document.getSelection().getRangeAt(0),y.collapsed||y.deleteContents(),C=document.createTextNode(C),y.insertNode(C),y.selectNodeContents(C),y.collapse(!1),C=window.getSelection(),C.removeAllRanges(),C.addRange(y)};
I.onDocumentClick=function(C){if(I.isEmojiPickerDisplayed){var y,k,F;!(C.target instanceof Node)||(y=C.composedPath())!=null&&y.includes(I.editableTextEl)||(k=C.composedPath())!=null&&k.includes(I.emojiButtonEl)||(F=C.composedPath())!=null&&F.includes(I.emojiPickerEl)||(I.isEmojiPickerDisplayed=!1)}};
return I};
_.R(MB,_.q);_.u=MB.prototype;_.u.configureRendererStamper=function(){return{emojiPicker:{id:"emoji-picker",mapping:{emojiPickerRenderer:{component:"yt-emoji-picker-renderer",properties:{emojiManager:"[[emojiManager]]"}}}}}};
_.u.attached=function(){this.containerEl.addEventListener("input",this.userGeneratedCommentChangedHandler);this.containerEl.addEventListener("paste",this.pasteHandler);document.addEventListener("click",this.onDocumentClick)};
_.u.detached=function(){var I;(I=this.contentEl)==null||I.removeEventListener("input",this.userGeneratedCommentChangedHandler);var C;(C=this.contentEl)==null||C.removeEventListener("paste",this.pasteHandler);document.removeEventListener("click",this.onDocumentClick)};
_.u.currentCommentOptionChanged=function(){this.handleBackgroundColorStyling()};
_.u.dataChanged=function(){this.containerEl.classList.add("ugc");if(this.contentEl){var I;this.contentEl.textContent=this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.defaultCommentText)}this.isEmojiYtdCommentInputEnabled&&(this.containerEl.classList.add("emojis"),this.reloadEmojis());this.handleTextScrolling()};
_.u.reloadEmojis=function(){this.emojiPickerEl&&_.l(this.emojiPicker,_.GG8)&&this.emojiPickerEl.updateEmojiCategories()};
_.u.handleTextScrolling=function(){this.isEmojiYtdCommentInputEnabled||_.CK(this.hostElement,{"--ytd-pdg-comment-preview-max-height":"300px","--ytd-pdg-comment-preview-overflow":"auto"})};
_.u.handleBackgroundColorStyling=function(){var I;if((I=this.currentCommentOption)==null?0:I.commentBackgroundColorArgb){var C;_.CK(this.hostElement,{"--ytd-pdg-comment-preview-background-color":_.Xl((C=this.currentCommentOption)==null?void 0:C.commentBackgroundColorArgb)})}else _.CK(this.hostElement,{"--ytd-pdg-comment-preview-background-color":"initial"})};
_.u.onContainerClick=function(){if(this.isEmojiYtdCommentInputEnabled)this.containerEl.focus();else if(this.containerEl.classList.contains("ugc")){var I;(I=this.contentEl)==null||I.focus()}};
_.u.onEditButtonClick=function(I){var C=document.getSelection();C&&this.contentEl&&(I.stopPropagation(),I.preventDefault(),C.selectAllChildren(this.contentEl),C.collapseToEnd())};
_.u.onContentDrop=function(I){var C=this;if(I.dataTransfer){I=_.T(I.dataTransfer.items);for(var y=I.next();!y.done;y=I.next())y=y.value,y.kind==="string"&&y.type.match("^text/plain")&&y.getAsString(function(k){var F;(F=C.contentEl)==null||F.appendChild(document.createTextNode(k))})}};
_.u.onEmojiButtonClick=function(){this.isEmojiPickerDisplayed=!this.isEmojiPickerDisplayed;this.emojiPickerEl.selected=!this.emojiPickerEl.selected};
_.u.getUserGeneratedCommentText=function(){var I,C=this.isEmojiYtdCommentInputEnabled?this.ytdCommentInputEl.getTextAreaValue():(I=this.contentEl)==null?void 0:I.textContent;return C?C.trim():""};
_.u.getIsEmojiYtdCommentInputEnabled=function(){return this.isEmojiYtdCommentInputEnabled};
_.u.onEmojiSelect=function(I){this.ytdCommentInputEl.onEmojiSelect(I)};
_.H1.Object.defineProperties(MB.prototype,{isEmojiYtdCommentInputEnabled:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.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 I;return!((I=this.currentCommentOption)==null||!I.chipRenderer)}},
paidCommentChipRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if(_.l((I=this.currentCommentOption)==null?void 0:I.chipRenderer,_.qVm)){var C;return _.l((C=this.currentCommentOption)==null?void 0:C.chipRenderer,_.qVm)}}},
currentCommentOption:{configurable:!0,enumerable:!0,get:function(){if(this.superThanksSelectedTierEntity&&this.superThanksSelectedTierEntity.index!==void 0){var I,C;return((I=this.data)==null?0:I.commentOptionRenderers)?_.l((C=this.data)==null?void 0:C.commentOptionRenderers[this.superThanksSelectedTierEntity.index],INL):void 0}var y,k;return((y=this.data)==null?0:y.commentOptionRenderers)?_.l((k=this.data)==null?void 0:k.commentOptionRenderers[this.currentCommentOptionIndex],INL):void 0}},
commentText:{configurable:!0,enumerable:!0,get:function(){var I;return this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.defaultCommentText)}},
placeholderText:{configurable:!0,enumerable:!0,get:function(){var I;return this.rendererBehavior.getSimpleString((I=this.data)==null?void 0:I.placeholderText)}},
editableText:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.commentDialog,_.jd8))==null?void 0:C.editableText}},
emojiButton:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.commentDialog,_.jd8))==null?void 0:C.emojiButton}},
emojiPicker:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=_.l((I=this.data)==null?void 0:I.commentDialog,_.jd8))==null?void 0:C.emojiPicker}},
isEmojiButtonDisplayed:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(C=_.l((I=this.data)==null?void 0:I.commentDialog,_.jd8))==null?void 0:C.emojiPicker;if(!_.l(y,_.GG8)||!_.l(y,_.GG8).categories)return!1;I=function(z){return z.emojiPickerCategoryRenderer?z.emojiPickerCategoryRenderer.emojiIds&&z.emojiPickerCategoryRenderer.emojiIds.length>0:z.emojiPickerUpsellCategoryRenderer?z.emojiPickerUpsellCategoryRenderer.emojis&&z.emojiPickerUpsellCategoryRenderer.emojis.length>0:!1};
var k,F;return((k=_.l(y,_.GG8))==null?0:(F=k.categories)==null?0:F.find(I))?!0:!1}}});
MB.prototype.onEmojiSelect=MB.prototype.onEmojiSelect;MB.prototype.dataChanged=MB.prototype.dataChanged;MB.prototype.currentCommentOptionChanged=MB.prototype.currentCommentOptionChanged;_.E([_.g(_.lZ),_.h("design:type",Object)],MB.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],MB.prototype,"rendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],MB.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.z$("#content-dom-if"),_.h("design:type",_.NH)],MB.prototype,"contentDomIfEl",void 0);_.E([_.z$("#content-no-emojis"),_.h("design:type",HTMLElement)],MB.prototype,"contentEl",void 0);_.E([_.z$("#container"),_.h("design:type",HTMLElement)],MB.prototype,"containerEl",void 0);_.E([_.z$("#comment-chip-container"),_.h("design:type",HTMLElement)],MB.prototype,"paidCommentChipContainerEl",void 0);_.E([_.z$("#text-input"),_.h("design:type",HTMLElement)],MB.prototype,"editableTextEl",void 0);
_.E([_.z$("#emoji-button"),_.h("design:type",HTMLElement)],MB.prototype,"emojiButtonEl",void 0);_.E([_.z$("#emoji-picker > yt-emoji-picker-renderer"),_.h("design:type",Object)],MB.prototype,"emojiPickerEl",void 0);_.E([_.z$("#text-input > ytd-comment-input"),_.h("design:type",Object)],MB.prototype,"ytdCommentInputEl",void 0);_.E([_.d(),_.h("design:type",Object)],MB.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],MB.prototype,"currentCommentOptionIndex",void 0);
_.E([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:XHH}),_.h("design:type",Object)],MB.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.d(),_.h("design:type",Object)],MB.prototype,"isEmojiPickerDisplayed",void 0);_.E([_.d(),_.h("design:type",Object)],MB.prototype,"emojiManager",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],MB.prototype,"isUgcEmpty",void 0);
_.E([_.FI("currentCommentOption"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MB.prototype,"currentCommentOptionChanged",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],MB.prototype,"dataChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],MB.prototype,"isEmojiYtdCommentInputEnabled",null);
_.E([_.v("data.title"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"title",null);_.E([_.v("data.authorText"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"channelName",null);_.E([_.v("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],MB.prototype,"shouldShowPaidCommentChipRenderer",null);
_.E([_.v("data.commentOptionRenderers","currentCommentOption"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"paidCommentChipRenderer",null);_.E([_.v("data.commentOptionRenderers","currentCommentOptionIndex","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"currentCommentOption",null);
_.E([_.v("data.defaultCommentText","superThanksSelectedTierEntity"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"commentText",null);_.E([_.v("data.placeholderText"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"placeholderText",null);_.E([_.v("data.commentDialog.commentDialogRenderer.editableText"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"editableText",null);
_.E([_.v("data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"emojiButton",null);_.E([_.v("data.commentDialog.commentDialogRenderer.emojiPicker"),_.h("design:type",Object),_.h("design:paramtypes",[])],MB.prototype,"emojiPicker",null);
_.E([_.v("data.commentDialog.commentDialogRenderer.emojiPicker","data.commentDialog.commentDialogRenderer.emojiButton"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],MB.prototype,"isEmojiButtonDisplayed",null);_.E([_.km("yt-emoji-select"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],MB.prototype,"onEmojiSelect",null);MB=_.E([_.m({disableElementRegistration:!0,is:"ytd-pdg-comment-preview-renderer"})],MB);
_.Z(MB,"ytd-pdg-comment-preview-renderer",function(){if(hqR!==void 0)return hqR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return hqR=I},{mode:2});var HzP;var Io=function(){var I=_.q.apply(this,arguments)||this;I.selected=!1;return I};
_.R(Io,_.q);_.u=Io.prototype;_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={"enter:keydown":"onKeyboardSelect","space:keydown":"onKeyboardSelect"}};
_.u.attached=function(){this.hostElement.setAttribute("tabindex","0");this.hostElement.setAttribute("role","radio")};
_.u.dataChanged=function(){this.data&&(_.Oq(this.hostElement).setAttribute("selectable","true"),this.data.chipColorArgb&&this.data.chipFontColorArgb&&_.CK(this.hostElement,{"--yt-pdg-super-vod-selectable-item-button-chip-background-color":_.Xl(this.data.chipColorArgb),"--yt-pdg-super-vod-selectable-item-button-chip-font-color":_.Xl(this.data.chipFontColorArgb)}),this.basePriceText=this.data.basePriceText,this.purchaseCommand=this.data.purchaseCommand)};
_.u.selectedChanged=function(){this.hostElement.setAttribute("aria-checked",this.selected.toString())};
_.u.onClick=function(){this.logClick()};
_.u.onKeyboardSelect=function(){_.k3(this.hostElement,"tap");this.onClick()};
_.u.logClick=function(){this.data&&this.ytRendererBehavior.logExplicitClick(this.data)};
Io.prototype.onClick=Io.prototype.onClick;Io.prototype.selectedChanged=Io.prototype.selectedChanged;Io.prototype.dataChanged=Io.prototype.dataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Io.prototype,"componentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Io.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Ds),_.h("design:type",Object)],Io.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.g(_.gW),_.h("design:type",Object)],Io.prototype,"ironSelectableBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Io.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Io.prototype,"shownThumbnail",void 0);_.E([_.d(),_.h("design:type",Object)],Io.prototype,"basePriceText",void 0);_.E([_.d(),_.h("design:type",Object)],Io.prototype,"purchaseCommand",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Io.prototype,"selected",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Io.prototype,"dataChanged",null);_.E([_.FI("selected"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Io.prototype,"selectedChanged",null);_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Io.prototype,"onClick",null);
Io=_.E([_.m({disableElementRegistration:!0,is:"ytd-pdg-super-vod-selectable-item-button-renderer"})],Io);
_.Z(Io,"ytd-pdg-super-vod-selectable-item-button-renderer",function(){if(HzP!==void 0)return HzP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return HzP=I},{mode:1});var C3=function(){var I=_.q.apply(this,arguments)||this;I.selectedItemIndex=0;I.buyButtonDisabled=!1;return I};
_.R(C3,_.q);_.u=C3.prototype;
_.u.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]]"}}}}}};
_.u.onBuyButtonClick=function(){if(!this.buyButtonDisabled&&this.selectedItemIndex!==void 0){if(this.isColorSlider){var I;var C=(I=_.l(this.data.colorSlider,McL))==null?void 0:I.notches[this.selectedItemIndex].purchaseCommand}else{var y;C=(y=_.l(this.data.selectableItemButtons[this.selectedItemIndex],s$K))==null?void 0:y.purchaseCommand}if(C){I=_.l(C,_.Tx5);I.productData||(I.productData={});var k;I.productData={pdgData:{commentMessageText:(k=this.commentPreviewRenderer)==null?void 0:k.getUserGeneratedCommentText()}};
_.k3(this.hostElement,"yt-pdg-buy-flow-selection-submitted");this.ytComponentBehavior.resolveCommand(C)}}};
_.u.dataChanged=function(){if(this.data){_.$p.emojis.length===0&&(this.data.unicodeEmojisUrl&&_.YS0(_.$p,this.data.unicodeEmojisUrl),this.data.customEmojis&&_.$p.load(this.data.customEmojis));this.isColorSlider=!!this.data.colorSlider;var I;this.buyButtonDisabled=!((I=_.l(this.data.commentPreview,Cvj))==null||!I.placeholderText);this.updatePriceSelectorStatus();var C;if((C=this.data)==null?0:C.defaultPriceTier)this.selectedItemIndex=this.data.defaultPriceTier||0;I=[];this.data.preloadImages&&(I=this.data.preloadImages);
I=I.map(function(y){return _.E5(y.thumbnails,1920)});
I=_.T(I);for(C=I.next();!C.done;C=I.next())(C=C.value)&&_.W8H(C).thenCatch(function(){_.SN(Error("kl"))})}};
_.u.superThanksSelectedTierEntityChanged=function(){var I;(this==null?void 0:(I=this.superThanksSelectedTierEntity)==null?void 0:I.index)!==void 0&&(this.selectedItemIndex=this.superThanksSelectedTierEntity.index)};
_.u.selectedItemIndexChanged=function(){this.commentPreviewRenderer&&(this.commentPreviewRenderer.currentCommentOptionIndex=this.selectedItemIndex)};
_.u.updatePriceSelectorStatus=function(){this.isColorSlider?(_.f(this.hostElement).querySelector("#selectable-items").setAttribute("hidden","true"),_.f(this.hostElement).querySelector("#slider").removeAttribute("hidden")):(_.f(this.hostElement).querySelector("#selectable-items").removeAttribute("hidden"),_.f(this.hostElement).querySelector("#slider").setAttribute("hidden","true"))};
_.u.closeBuyFlow=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"])};
_.u.onUserGeneratedContentChanged=function(){var I;this.buyButtonDisabled=!((I=this.commentPreviewRenderer)==null?0:I.getUserGeneratedCommentText())};
_.u.updateSelectedItemIndexFromBinding=function(I){this.selectedItemIndex=I.detail.value};
_.H1.Object.defineProperties(C3.prototype,{isDisclaimerTextShown:{configurable:!0,enumerable:!0,get:function(){var I;return!((I=this.data)==null||!I.disclaimerText)}}});
C3.prototype.onUserGeneratedContentChanged=C3.prototype.onUserGeneratedContentChanged;C3.prototype.closeBuyFlow=C3.prototype.closeBuyFlow;C3.prototype.selectedItemIndexChanged=C3.prototype.selectedItemIndexChanged;C3.prototype.superThanksSelectedTierEntityChanged=C3.prototype.superThanksSelectedTierEntityChanged;C3.prototype.dataChanged=C3.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],C3.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],C3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],C3.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],C3.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],C3.prototype,"selectedItemIndex",void 0);_.E([_.d(),_.h("design:type",Boolean)],C3.prototype,"isColorSlider",void 0);
_.E([_.d(),_.h("design:type",Object)],C3.prototype,"buyButtonDisabled",void 0);_.E([_.d({selectorArgs:["data.superThanksSelectedTierEntity.key"],selector:XHH}),_.h("design:type",Object)],C3.prototype,"superThanksSelectedTierEntity",void 0);_.E([_.z$("ytd-pdg-comment-preview-renderer"),_.h("design:type",Object)],C3.prototype,"commentPreviewRenderer",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],C3.prototype,"ytdReduxBehavior",void 0);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C3.prototype,"dataChanged",null);_.E([_.FI("superThanksSelectedTierEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C3.prototype,"superThanksSelectedTierEntityChanged",null);_.E([_.FI("selectedItemIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C3.prototype,"selectedItemIndexChanged",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C3.prototype,"closeBuyFlow",null);_.E([_.km("ytd-pdg-user-generated-comment-changed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],C3.prototype,"onUserGeneratedContentChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],C3.prototype,"isDisclaimerTextShown",null);
C3=_.E([_.m({disableElementRegistration:!0,is:"yt-super-vod-buy-flow-content-renderer"})],C3);
_.Z(C3,"yt-super-vod-buy-flow-content-renderer",function(){if(BF8!==void 0)return BF8;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return BF8=I},{mode:1});var t4Y;var sx=function(){var I=_.q.apply(this,arguments)||this;I.lottieAnimationRef={};return I};
_.R(sx,_.q);_.u=sx.prototype;_.u.created=function(){_.WV.requestAvailability();this.hostElement.addEventListener("iron-overlay-opened",_.sb(this,this.onPopupIronOverlayOpened));this.ironOverlayBehavior.scrollAction="lock";this.ironOverlayBehavior.noCancelOnEscKey=!0;this.ironOverlayBehavior.noCancelOnOutsideClick=!0;this.ironOverlayBehavior.allowClickThrough=!1};
_.u.onPopupIronOverlayOpened=function(){this.data&&this.data.accessibility&&this.data.accessibility.accessibilityData&&this.data.accessibility.accessibilityData.label&&_.k3(this.hostElement,"iron-announce",{text:this.data.accessibility.accessibilityData.label})};
_.u.detached=function(){this.autoCloseJobId&&_.b$.cancelJob(this.autoCloseJobId);this.hostElement.removeEventListener("iron-overlay-opened",_.sb(this,this.onPopupIronOverlayOpened))};
_.u.dataChanged=function(){var I=this;this.data&&this.data.autoCloseDelay&&(_.Fe(this.hostElement,"yt-close-popup-action",["ytd-pdg-buy-flow-renderer"]),this.data.lottie||(this.autoCloseJobId=_.tE(_.b$,function(){I.closePopup()},(Number(this.data.autoCloseDelay.seconds)||0)*1E3)),this.data.lottieImageScalePercent&&this.data.lottie&&_.CK(this.hostElement,{"--ytd-desktop-image-overlay-scale-percent":this.data.lottieImageScalePercent+"%"}))};
_.u.onDOMLoadedLottie=function(){var I=this,C,y,k=Number((C=this.data)==null?void 0:(y=C.autoCloseDelay)==null?void 0:y.seconds)||0;this.fadeOutJobId=_.tE(_.b$,function(){I.lottiePlayerEl.classList.add("fadeout")},(k-.25)*1E3);
this.autoCloseJobId=_.tE(_.b$,function(){I.closePopup()},k*1E3)};
_.u.openPopup=function(){this.ironOverlayBehavior.open()};
_.u.closePopup=function(){this.ironOverlayBehavior.close();this.data&&(_.Fe(this.hostElement,"yt-close-popup-action",["ytd-desktop-image-overlay-renderer"]),this.data.onCloseCommand&&_.cQ(this.hostElement,[this.data.onCloseCommand],this.hostElement),this.data.onCloseSurveyCommand&&_.N().resolve(_.ID).resolveCommand(this.data.onCloseSurveyCommand,{form:{element:this.hostElement}}),this.autoCloseJobId&&_.b$.cancelJob(this.autoCloseJobId),this.fadeOutJobId&&_.b$.cancelJob(this.fadeOutJobId),this.lottiePlayerEl.classList.contains("fadeout")&&
this.lottiePlayerEl.classList.remove("fadeout"))};
_.u.maybeInitializeLottie=function(){if(this.hasLottieAnimation){var I,C;(I=this.lottieAnimationRef)==null||(C=I.lottieEl)==null||C.destroy();I=this.data.lottie;var y,k;this.lottiePlayerProps={animationRef:this.lottieAnimationRef,animationConfig:{name:I.url+"_"+Math.random(),path:I.url,autoplay:!0,loop:(k=(y=I.settings)==null?void 0:y.loop)!=null?k:!1,renderer:"svg",rendererSettings:{viewBoxOnly:!1,preserveAspectRatio:"xMidYMid meet"}},listeners:{DOMLoaded:this.onDOMLoadedLottie.bind(this)}}}};
_.H1.Object.defineProperties(sx.prototype,{hasLottieAnimation:{configurable:!0,enumerable:!0,get:function(){var I,C;return!!((I=this.data)==null?0:(C=I.lottie)==null?0:C.url)}}});
sx.prototype.maybeInitializeLottie=sx.prototype.maybeInitializeLottie;sx.prototype.dataChanged=sx.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],sx.prototype,"rendererBehavior",void 0);_.E([_.g(_.Zs),_.h("design:type",Object)],sx.prototype,"ironOverlayBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],sx.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],sx.prototype,"lottiePlayerProps",void 0);
_.E([_.d(),_.h("design:type",Object)],sx.prototype,"lottieAnimationRef",void 0);_.E([_.z$("ytd-lottie-player"),_.h("design:type",HTMLElement)],sx.prototype,"lottiePlayerEl",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sx.prototype,"dataChanged",null);_.E([_.v("data"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],sx.prototype,"hasLottieAnimation",null);
_.E([_.FI("data.lottie.url"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],sx.prototype,"maybeInitializeLottie",null);sx=_.E([_.m({disableElementRegistration:!0,is:"ytd-desktop-image-overlay-renderer"})],sx);
_.Z(sx,"ytd-desktop-image-overlay-renderer",function(){if(t4Y!==void 0)return t4Y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return t4Y=I},{mode:1});var J2H;var oo=function(){return _.q.apply(this,arguments)||this};
_.R(oo,_.q);_.u=oo.prototype;_.u.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"}}}}};
_.u.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",_.sb(this,this.closePopup))};
_.u.detached=function(){this.hostElement.removeEventListener("yt-popup-closed",_.sb(this,this.closePopup))};
_.u.dataChanged=function(){_.uW(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.data&&this.data.header&&_.l(this.data.header,asR)&&(this.hasBackgroundBanner=!!_.l(this.data.header,asR).backgroundBanner)};
_.u.handleBuyflowSelectionSubmitted=function(){this.hostElement.removeEventListener("yt-popup-closed",_.sb(this,this.closePopup))};
_.u.closePopup=function(){this.data&&this.data.onCloseCommand&&_.Tg(this.hostElement,[this.data.onCloseCommand])};
oo.prototype.handleBuyflowSelectionSubmitted=oo.prototype.handleBuyflowSelectionSubmitted;oo.prototype.dataChanged=oo.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],oo.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],oo.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],oo.prototype,"data",void 0);
_.E([_.d({value:!0,reflectToAttribute:!0}),_.h("design:type",Boolean)],oo.prototype,"hasBackgroundBanner",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oo.prototype,"dataChanged",null);_.E([_.km("yt-pdg-buy-flow-selection-submitted"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],oo.prototype,"handleBuyflowSelectionSubmitted",null);
oo=_.E([_.m({disableElementRegistration:!0,is:"ytd-pdg-buy-flow-renderer"})],oo);
_.Z(oo,"ytd-pdg-buy-flow-renderer",function(){if(J2H!==void 0)return J2H;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return J2H=I},{mode:1});var OzP;var y$=function(){var I=_.q.apply(this,arguments)||this;I.isOpen=!1;I.isPlaylistCreated=!1;return I};
_.R(y$,_.q);_.u=y$.prototype;_.u.reset=function(){this.isPlaylistCreated=this.isOpen=!1;this.nameInput.reset();this.privacyInput.reset()};
_.u.onOpenTap=function(){this.isOpen=!0;this.isPlaylistCreated=!1;this.nameInput.focusTextInput();_.k3(this.hostElement,"yt-refit")};
_.u.onCreateTap=function(){var I=this;!this.isPlaylistCreated&&this.nameInput.validate()&&(_.Tg(this.hostElement,[this.data.serviceEndpoint,{create_playlist_title:this.nameInput.value,create_playlist_privacy_status:this.privacyInput.value},{onSuccess:function(C,y){if(!_.V("killswitch_ep_in_create_playlist_response")&&(y==null?0:y.actions))for(C=_.T(y.actions),y=C.next();!y.done;y=C.next())y=y.value,_.l(y,_.Gb)&&I.ytComponentBehavior.resolveCommand(y)}}]),this.isPlaylistCreated=!0)};
_.u.onKeydown=function(I){if(I.keyCode===13)this.onCreateTap()};
_.u.onServiceRequestCompleted=function(I){I.stopPropagation();_.Fe(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.u.computePrivacyBadge=function(I){return I?[{metadataBadgeRenderer:I}]:[]};
y$.prototype.onServiceRequestCompleted=y$.prototype.onServiceRequestCompleted;y$.prototype.onKeydown=y$.prototype.onKeydown;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],y$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],y$.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],y$.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],y$.prototype,"isOpen",void 0);
_.E([_.d(),_.h("design:type",Object)],y$.prototype,"isPlaylistCreated",void 0);_.E([_.d({value:{REQUIRED_LABEL:_.PQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.PQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],y$.prototype,"addToStrings",void 0);_.E([_.d({computed:"computePrivacyBadge(data.privacyInput.metadataBadgeRenderer)"}),_.h("design:type",Array)],y$.prototype,"privacyBadge",void 0);
_.E([_.z$("#privacy-input"),_.h("design:type",Object)],y$.prototype,"privacyInput",void 0);_.E([_.z$("#name-input"),_.h("design:type",Object)],y$.prototype,"nameInput",void 0);_.E([_.km("keydown"),_.h("design:type",Function),_.h("design:paramtypes",[KeyboardEvent]),_.h("design:returntype")],y$.prototype,"onKeydown",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],y$.prototype,"onServiceRequestCompleted",null);
y$=_.E([_.m({is:"ytd-add-to-playlist-create-renderer",disableElementRegistration:!0})],y$);
_.Z(y$,"ytd-add-to-playlist-create-renderer",function(){if(OzP!==void 0)return OzP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OzP=I},{mode:1});var ahK;var M4L;var kE=function(){var I=_.q.apply(this,arguments)||this;I.transferState="TRANSFER_STATE_UNKNOWN";return I};
_.R(kE,_.q);kE.prototype.dataChanged=function(){this.data&&(this.checkbox.checked=this.data.containsSelectedVideos==="ALL")};
kE.prototype.onCheckboxChange=function(I){var C=this;this.data&&_.KK(this,"yt-playlist-checkbox-changed",function(){var y=_.m0(I).checked?C.data.addToPlaylistServiceEndpoint:C.data.removeFromPlaylistServiceEndpoint;y&&_.N().resolve(_.ID).resolveCommand(y,{form:{element:C.hostElement}});_.V("dl_playlist_killswitch")||C.transferState!=="TRANSFER_STATE_UNKNOWN"&&C.transferState!=="TRANSFER_STATE_FAILED"&&C.ytComponentBehavior.resolveCommand({offlinePlaylistEndpoint:{playlistId:C.data.playlistId,action:"ACTION_SYNC"}})},
100)};
kE.prototype.computeIconType=function(I){return I?"yt-icons:"+I.toLowerCase():null};
kE.prototype.dataChanged=kE.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],kE.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],kE.prototype,"data",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],kE.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],kE.prototype,"ytComponentBehavior",void 0);_.E([_.z$("#checkbox"),_.h("design:type",HTMLInputElement)],kE.prototype,"checkbox",void 0);
_.E([_.d({selector:_.AS,selectorArgs:["data.playlistId"]}),_.h("design:type",String)],kE.prototype,"transferState",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],kE.prototype,"dataChanged",null);kE=_.E([_.m({is:"ytd-playlist-add-to-option-renderer",disableElementRegistration:!0})],kE);
_.Z(kE,"ytd-playlist-add-to-option-renderer",function(){if(M4L!==void 0)return M4L;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return M4L=I},{mode:1});_.MU(NiL);_.aj(NiL,"ytd-menu-title-renderer",{propNames:["data"]});var F_=function(){var I=_.q.apply(this,arguments)||this;I.addToStrings={ADD_TO_DROPDOWN_LABEL:_.PQ("ADD_TO_DROPDOWN_LABEL",void 0,"Save to...")};I.closeButtonAriaLabel=_.PQ("SBOX_INAPPROPRIATE_CANCEL");I.dialog=_.V("desktop_add_to_playlist_renderer_dialog_popup");return I};
_.R(F_,_.q);_.u=F_.prototype;_.u.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"}}}};
_.u.onPopupOpened=function(){_.a_(this.playlists,"scrollable",!0);this.createRenderer&&this.createRenderer.reset()};
_.u.onPopupClosed=function(){_.a_(this.playlists,"scrollable",!1)};
_.u.computeAriaLabel=function(){var I;if(this==null?0:(I=this.data)==null?0:I.actions){I=_.T(this.data.actions);for(var C=I.next();!C.done;C=I.next())if(C=C.value,C.menuTitleRenderer)return _.hS(C.menuTitleRenderer.title)}};
_.u.onTapClose=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-add-to-playlist-renderer"])};
_.H1.Object.defineProperties(F_.prototype,{menuTitleRenderer:{configurable:!0,enumerable:!0,get:function(){var I;if(this==null?0:(I=this.data)==null?0:I.actions){I=_.T(this.data.actions);for(var C=I.next();!C.done;C=I.next())if(C=C.value,C.menuTitleRenderer)return C.menuTitleRenderer}return!1}}});
F_.prototype.onPopupClosed=F_.prototype.onPopupClosed;F_.prototype.onPopupOpened=F_.prototype.onPopupOpened;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],F_.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],F_.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],F_.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],F_.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],F_.prototype,"addToStrings",void 0);_.E([_.d({reflectToAttribute:!0,readOnly:!0,computed:"computeAriaLabel(data)"}),_.h("design:type",String)],F_.prototype,"ariaLabel",void 0);_.E([_.d(),_.h("design:type",String)],F_.prototype,"closeButtonAriaLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],F_.prototype,"dialog",void 0);
_.E([_.z$("#playlists"),_.h("design:type",HTMLElement)],F_.prototype,"playlists",void 0);_.E([_.z$("ytd-add-to-playlist-create-renderer"),_.h("design:type",Object)],F_.prototype,"createRenderer",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],F_.prototype,"menuTitleRenderer",null);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F_.prototype,"onPopupOpened",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],F_.prototype,"onPopupClosed",null);F_=_.E([_.m({is:"ytd-add-to-playlist-renderer",disableElementRegistration:!0})],F_);
_.Z(F_,"ytd-add-to-playlist-renderer",function(){if(ahK!==void 0)return ahK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ahK=I},{mode:1});var Iwj;var uP=function(){var I=_.q.apply(this,arguments)||this;I.isPlaylistEditComplete=!1;I.isCollabEngagementDisabled=!1;I.closeButtonAriaLabel=_.PQ("SBOX_INAPPROPRIATE_CANCEL");I.saveButton={title:_.PQ("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"};I.onValueChanged=function(){I.updateSaveButtonState();I.computeCollabEngagementDisabled()};
return I};
_.R(uP,_.q);_.u=uP.prototype;_.u.attached=function(){this.JSC$18185_scroller&&(this.JSC$18185_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18185_scroller.attached&&typeof this.JSC$18185_scroller.attached==="function"&&this.JSC$18185_scroller.attached())};
_.u.reset=function(){this.isPlaylistEditComplete=!1;this.nameInput.reset();this.descriptionInput.reset();this.computeCollabEngagementDisabled();this.updateSaveButtonState()};
_.u.onPopupClosed=function(){this.reset()};
_.u.close=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-playlist-settings-editor-renderer"])};
_.u.onClickSave=function(){var I=this;if(!this.isPlaylistEditComplete&&this.nameInput.validate()&&this.descriptionInput.validate()){var C=[];this.nameInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_NAME",playlistName:this.nameInput.value});this.descriptionInput.value!==null&&C.push({action:"ACTION_SET_PLAYLIST_DESCRIPTION",playlistDescription:this.descriptionInput.value});if(this.privacyInput.value!==null){var y=Number(this.privacyInput.value);isNaN(y)||C.push({action:"ACTION_SET_PLAYLIST_PRIVACY",
playlistPrivacy:y})}this.votingInput.value!==null&&(y=this.votingInput.value)&&C.push({action:"ACTION_SET_ALLOW_ITEM_VOTE",itemVotePermission:y});if(C.length>0){var k;_.l((k=this.data)==null?void 0:k.updateSettingsEndpoint,_.bv).actions=C;var F;if((F=this.data)==null?0:F.updateSettingsEndpoint)this.ytComponentBehavior.resolveCommand(this.data.updateSettingsEndpoint,{commandController:{onSuccess:function(){I.close()}}}),this.isPlaylistEditComplete=!0}}};
_.u.computePrivacyBadge=function(I){return I?[{metadataBadgeRenderer:I}]:[]};
_.u.computeEditorData=function(I){var C,y;return I==null?void 0:(C=I.sections)==null?void 0:(y=C[0])==null?void 0:y.playlistSettingsEditorCasualSectionRenderer};
_.u.computeCollabEngagementDisabled=function(){this.isCollabEngagementDisabled=this.privacyInput.value===0};
_.u.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}}}}}};
_.u.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"}))};
_.u.isFormValid=function(){return this.nameInput.validate()&&this.descriptionInput.validate()};
_.u.isFormChanged=function(){return this.isNameChanged()||this.isDescriptionChanged()||this.isPrivacyChanged()||this.isVotingChanged()};
_.u.isNameChanged=function(){var I,C,y;return(((I=this.editorData)==null?void 0:(C=I.name)==null?void 0:(y=C.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.nameInput.value||"")};
_.u.isDescriptionChanged=function(){var I,C,y;return(((I=this.editorData)==null?void 0:(C=I.description)==null?void 0:(y=C.textInputFormFieldRenderer)==null?void 0:y.value)||"")!==(this.descriptionInput.value||"")};
_.u.isPrivacyChanged=function(){var I,C,y,k,F,z,c,r;return((c=(I=this.editorData)==null?void 0:(C=I.privacy)==null?void 0:(y=C.dropdownFormFieldRenderer)==null?void 0:(k=y.dropdown)==null?void 0:(F=k.dropdownRenderer)==null?void 0:(z=F.entries)==null?void 0:z.find(function(w){var L;return w==null?void 0:(L=w.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(r=c.privacyDropdownItemRenderer)==null?void 0:r.int32Value)!==this.privacyInput.value};
_.u.isVotingChanged=function(){var I,C,y,k,F,z,c,r;return((c=(I=this.editorData)==null?void 0:(C=I.voting)==null?void 0:(y=C.dropdownFormFieldRenderer)==null?void 0:(k=y.dropdown)==null?void 0:(F=k.dropdownRenderer)==null?void 0:(z=F.entries)==null?void 0:z.find(function(w){var L;return w==null?void 0:(L=w.privacyDropdownItemRenderer)==null?void 0:L.isSelected}))==null?void 0:(r=c.privacyDropdownItemRenderer)==null?void 0:r.int32Value)!==this.votingInput.value};
uP.prototype.onPopupClosed=uP.prototype.onPopupClosed;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],uP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],uP.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],uP.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],uP.prototype,"ytRendererStamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],uP.prototype,"data",void 0);_.E([_.d({computed:"computePrivacyBadge(editorData.privacy.metadataBadgeRenderer)"}),_.h("design:type",Array)],uP.prototype,"privacyBadge",void 0);_.E([_.d({computed:"computeEditorData(data)"}),_.h("design:type",Object)],uP.prototype,"editorData",void 0);_.E([_.d(),_.h("design:type",Object)],uP.prototype,"isPlaylistEditComplete",void 0);_.E([_.d(),_.h("design:type",Object)],uP.prototype,"isCollabEngagementDisabled",void 0);
_.E([_.d({value:{REQUIRED_LABEL:_.PQ("REQUIRED_LABEL",void 0,"Required"),NO_ANGLE_BRACKET_LABEL:_.PQ("NO_ANGLE_BRACKET_LABEL",void 0,"Cannot contain < or >")}}),_.h("design:type",Object)],uP.prototype,"addToStrings",void 0);_.E([_.d(),_.h("design:type",String)],uP.prototype,"closeButtonAriaLabel",void 0);_.E([_.d(),_.h("design:type",Object)],uP.prototype,"saveButton",void 0);_.E([_.z$("#name-input"),_.h("design:type",Object)],uP.prototype,"nameInput",void 0);
_.E([_.z$("#description-input"),_.h("design:type",Object)],uP.prototype,"descriptionInput",void 0);_.E([_.z$("#privacy-input"),_.h("design:type",Object)],uP.prototype,"privacyInput",void 0);_.E([_.z$("#voting-input"),_.h("design:type",Object)],uP.prototype,"votingInput",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],uP.prototype,"JSC$18185_scroller",void 0);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],uP.prototype,"onPopupClosed",null);_.E([_.d(),_.h("design:type",Object)],uP.prototype,"onValueChanged",void 0);uP=_.E([_.m({is:"ytd-playlist-settings-editor-renderer",disableElementRegistration:!0})],uP);
_.Z(uP,"ytd-playlist-settings-editor-renderer",function(){if(Iwj===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-playlist-settings-editor-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="header-title" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-formatted-string text="[[editorData.title]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-formatted-string>\n  </div>\n  <yt-icon-button id="close-button" label="[[closeButtonAriaLabel]]" on-click="close" class="style-scope ytd-playlist-settings-editor-renderer">\n    <yt-icon icon="close" class="style-scope ytd-playlist-settings-editor-renderer"></yt-icon>\n  </yt-icon-button>\n</div>\n<tp-yt-paper-dialog-scrollable id="scroller" class="style-scope ytd-playlist-settings-editor-renderer">\n  <div id="content" class="style-scope ytd-playlist-settings-editor-renderer">\n    <div id="thumbnail" class="style-scope ytd-playlist-settings-editor-renderer"></div>\n    <div id="edit-playlist-form" class="style-scope ytd-playlist-settings-editor-renderer">\n      <yt-text-input-form-field-renderer id="name-input" data="[[editorData.name.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <yt-text-input-form-field-renderer id="description-input" data="[[editorData.description.textInputFormFieldRenderer]]" on-value-changed="[[onValueChanged]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </yt-text-input-form-field-renderer>\n      <ytd-badge-supported-renderer badges="[[privacyBadge]]" hidden="[[!editorData.privacy.metadataBadgeRenderer]]" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-badge-supported-renderer>\n      <ytd-dropdown-renderer id="privacy-input" data="[[editorData.privacy.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" hidden="[[!editorData.privacy]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <ytd-dropdown-renderer id="voting-input" data="[[editorData.voting.dropdownFormFieldRenderer.dropdown.dropdownRenderer]]" disabled="[[isCollabEngagementDisabled]]" hidden="[[!editorData.voting]]" on-value-changed="onValueChanged" class="style-scope ytd-playlist-settings-editor-renderer">\n      </ytd-dropdown-renderer>\n      <div id="collaborate" class="style-scope ytd-playlist-settings-editor-renderer">\n        <yt-list-item-view-model data="[[editorData.collaborate.listItemViewModel]]" disabled="[[isCollabEngagementDisabled]]" hidden$="[[!editorData.collaborate]]" class="style-scope ytd-playlist-settings-editor-renderer"></yt-list-item-view-model>\n      </div>\n    </div>\n  </div>\n</tp-yt-paper-dialog-scrollable>\n<div id="actions" class="style-scope ytd-playlist-settings-editor-renderer">\n  <yt-button-view-model data="[[saveButton]]" scoping-class-name="[[is]]" on-click="onClickSave" class="style-scope ytd-playlist-settings-editor-renderer">\n  </yt-button-view-model>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);Iwj=I}I=Iwj;return I},{mode:1});var C1R;_.jz("itemSectionRenderer","redCancelSurveyRenderer","ytd-red-cancel-survey-renderer");var zC=function(){return _.q.apply(this,arguments)||this};
_.R(zC,_.q);_.u=zC.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.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 I=this.get("data.nextButton.buttonRenderer.navigationEndpoint");I&&(this.nextNavigationEndpoint=I,this.set("data.nextButton.buttonRenderer.navigationEndpoint",void 0))};
_.u.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 I={feedbackTokens:[this.get(["data.singleOptions.styles",this.selectedResponseIndex]).radioButtonSurveyOptionRenderer.submissionEndpoint.feedbackEndpoint.feedbackToken]};
this.set("nextNavigationEndpoint.confirmDialogEndpoint.content.confirmDialogRenderer.confirmButton.buttonRenderer.serviceEndpoint.ypcCancelRecurrenceEndpoint.feedbackData",I)}}};
_.u.onPopupOpened=function(I){I.detail!==this&&I.detail!==this.hostElement||!_.V("enable_premium_voluntary_pause")||_.Fe(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"])};
_.u.onNextButtonTap=function(){var I=this.nextNavigationEndpoint&&this.ytdOpenPopupBehavior.getNavigationEndpointPopupAction(this.nextNavigationEndpoint);I&&this.ytdOpenPopupBehavior.openPopup(I)};
_.u.updateSelectedResponseIndexFromBinding=function(I){this.selectedResponseIndex=I.detail.value};
zC.prototype.onPopupOpened=zC.prototype.onPopupOpened;zC.prototype.onSelectedResponseIndexChange=zC.prototype.onSelectedResponseIndexChange;zC.prototype.dataChanged=zC.prototype.dataChanged;_.E([_.g(_.vA),_.h("design:type",Object)],zC.prototype,"ytdOpenPopupBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],zC.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],zC.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],zC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],zC.prototype,"selectedResponseIndex",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zC.prototype,"dataChanged",null);_.E([_.FI("selectedResponseIndex"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],zC.prototype,"onSelectedResponseIndexChange",null);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],zC.prototype,"onPopupOpened",null);zC=_.E([_.m({is:"ytd-red-cancel-survey-renderer",disableElementRegistration:!0})],zC);
_.Z(zC,"ytd-red-cancel-survey-renderer",function(){if(C1R!==void 0)return C1R;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return C1R=I},{mode:1});var s9L;var TC=function(){var I=_.q.apply(this,arguments)||this;I.closeButtonAriaLabel=_.PQ("SBOX_INAPPROPRIATE_CANCEL");return I};
_.R(TC,_.q);TC.prototype.configureRendererStamper=function(){return{"data.groups":{id:"options",mapping:{searchFilterGroupRenderer:{component:"ytd-search-filter-group-renderer"}}}}};
TC.prototype.onClickClose=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-search-filter-options-dialog-renderer"])};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],TC.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],TC.prototype,"rendererStamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],TC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],TC.prototype,"closeButtonAriaLabel",void 0);TC=_.E([_.m({is:"ytd-search-filter-options-dialog-renderer",disableElementRegistration:!0})],TC);
_.Z(TC,"ytd-search-filter-options-dialog-renderer",function(){if(s9L!==void 0)return s9L;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return s9L=I},{mode:1});var oZR;var lkK=function(){return function(I){I=I.availabilityType;return I===void 0||I==="OFFLINEABILITY_AVAILABILITY_TYPE_UNKNOWN"||I==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?!0:!1}};var ct=function(){var I=_.q.apply(this,arguments)||this;I.qualityOptions=[];I.upsellOptions=[];I.showUpsellSection=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.rememberSettingsChecked=!1;return I};
_.R(ct,_.q);_.u=ct.prototype;_.u.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}}}}};
_.u.dataChanged=function(){this.updateRememberString();this.updateQualityOptions()};
_.u.updateQualityOptions=function(){if(this.formats===void 0)_.Fe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);else{var I=[],C=[];this.showUpsellSection=!1;for(var y=_.T(this.formats),k=y.next();!k.done;k=y.next())(k=k.value)&&(k.availabilityType==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED"?C.push(k):I.push(k));I.length&&(this.qualityOptions=jQM(I));C.length&&(this.showUpsellSection=!0,this.upsellOptions=jQM(C))}};
_.u.updateRememberString=function(){if(this.downloadQualityPickerEntity)var I=this.downloadQualityPickerEntity.rememberSettingString;else if(this.selectedUpsellQuality){var C;I=(C=this.data)==null?void 0:C.premiumRememberSettingString}else{var y;I=(y=this.data)==null?void 0:y.rememberSettingString}I=I===void 0?_.PQ("REMEMBER_MY_SETTINGS",void 0,"Remember my settings"):I;this.rememberSettingsCheckboxRenderer={title:_.Cx(I),disabled:!1}};
_.u.rememberSettingsCheckedChanged=function(){if(this.onRememberSettingsCheckedChanged)this.onRememberSettingsCheckedChanged(this.rememberSettingsCheckbox.checked)};
_.H1.Object.defineProperties(ct.prototype,{formats:{configurable:!0,enumerable:!0,get:function(){var I;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(I=this.data)==null?void 0:I.qualityFormats}}});
ct.prototype.updateRememberString=ct.prototype.updateRememberString;ct.prototype.updateQualityOptions=ct.prototype.updateQualityOptions;ct.prototype.dataChanged=ct.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ct.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ct.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ct.prototype,"data",void 0);
_.E([_.g(_.lZ),_.h("design:type",Object)],ct.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Boolean)],ct.prototype,"selectedUpsellQuality",void 0);_.E([_.d({computed:"computeIcon_(data.premiumIcon)",value:""}),_.h("design:type",String)],ct.prototype,"premiumIcon",void 0);_.E([_.d({selector:NIY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],ct.prototype,"downloadQualityPickerEntity",void 0);
_.E([_.d(),_.h("design:type",Array)],ct.prototype,"qualityOptions",void 0);_.E([_.d(),_.h("design:type",Array)],ct.prototype,"upsellOptions",void 0);_.E([_.d(),_.h("design:type",Object)],ct.prototype,"showUpsellSection",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],ct.prototype,"darkerDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],ct.prototype,"rememberSettingsCheckboxRenderer",void 0);
_.E([_.z$("#remember-settings"),_.h("design:type",HTMLInputElement)],ct.prototype,"rememberSettingsCheckbox",void 0);_.E([_.d(),_.h("design:type",Object)],ct.prototype,"rememberSettingsChecked",void 0);_.E([_.d(),_.h("design:type",Function)],ct.prototype,"onRememberSettingsCheckedChanged",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ct.prototype,"dataChanged",null);
_.E([_.FI("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ct.prototype,"updateQualityOptions",null);_.E([_.FI("selectedUpsellQuality"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],ct.prototype,"updateRememberString",null);ct=_.E([_.m({is:"ytd-download-quality-selector-content",disableElementRegistration:!0})],ct);
_.Z(ct,"ytd-download-quality-selector-content",function(){if(oZR!==void 0)return oZR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return oZR=I},{mode:1});var yD8;var eq=function(){var I=_.q.apply(this,arguments)||this;I.selectedUpsellQuality=!1;I.qualityOptions=[];I.darkerDarkTheme=_.V("web_darker_dark_theme");I.useUpsellDismissAlternate=_.V("use_not_now_dl_upsell_dismiss_cta");I.shouldShowAlternateUpsellDimiss=!1;I.rememberSettings=!1;I.rememberSettingsChecked=!1;I.actionMap={"yt-select-settings-radio-option":"onQualityOptionsSelect"};I.rememberSettingsCheckedChanged=function(C){I.rememberSettingsChecked=C};
return I};
_.R(eq,_.q);_.u=eq.prototype;
_.u.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.rememberSettingsCheckedChanged(!1);this.downloadButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("DOWNLOAD",void 0,"Download")),isDisabled:!0};this.upsellButtonRenderer={style:"STYLE_BLUE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("GET_PREMIUM",void 0,"Get Premium")),isDisabled:!0};this.cancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("SBOX_INAPPROPRIATE_CANCEL",
void 0,"Cancel"))};this.upsellCancelButtonRenderer={style:"STYLE_TEXT",size:"SIZE_DEFAULT",text:_.Cx(_.PQ("NOT_NOW",void 0,"Not now"))};this.updateQualityOptions()};
_.u.updateQualityOptions=function(){this.formats===void 0?_.Fe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]):this.qualityOptions=jQM(this.formats)};
_.u.onQualityOptionsSelect=function(I){if(this.qualityOptions&&I){I!==void 0&&(this.downloadButtonRenderer&&(this.downloadButtonRenderer=Object.assign({},this.downloadButtonRenderer,{isDisabled:!1})),this.upsellButtonRenderer&&(this.upsellButtonRenderer=Object.assign({},this.upsellButtonRenderer,{isDisabled:!1})),this.upsellCancelButtonRenderer&&(this.upsellCancelButtonRenderer=Object.assign({},this.upsellCancelButtonRenderer,{isDisabled:!1})));for(var C=_.T(this.qualityOptions.entries()),y=C.next();!y.done;y=
C.next()){y=_.T(y.value);var k=y.next().value;y=y.next().value;var F=void 0,z=void 0;if(((F=y)==null?void 0:(z=F.settingsRadioOptionRenderer)==null?void 0:z.id)===I){this.selectedQualityIndex=k;I=void 0;this.shouldShowAlternateUpsellDimiss=(this.selectedUpsellQuality=((I=this.formats[k])==null?void 0:I.availabilityType)==="OFFLINEABILITY_AVAILABILITY_TYPE_PREMIUM_LOCKED")&&this.useUpsellDismissAlternate;break}}}};
_.u.onClickSubmit=function(){var I;if((I=this.downloadButtonRenderer)==null||!I.isDisabled){var C,y;I=(y=(C=this.data)==null?void 0:C.onSubmitEndpoint)!=null?y:{};var k,F;if(this.formats&&(((k=_.l(I,_.uY))==null?0:k.videoId)||((F=_.l(I,_.zU))==null?0:F.playlistId))){var z,c,r,w,L,D;C={formatType:(w=(z=this.formats)==null?void 0:(c=z[(r=this.selectedQualityIndex)!=null?r:0])==null?void 0:c.format)!=null?w:"UNKNOWN_FORMAT_TYPE",settingsAction:this.getOfflineSettingsAction(this.rememberSettingsChecked,
(L=this.getOfflineEndpoint(I))==null?void 0:(D=L.actionParams)==null?void 0:D.settingsAction)};this.getOfflineEndpoint(I).actionParams=C;this.ytComponentBehavior.resolveCommand(I)}_.Fe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])}};
_.u.onClickUpsell=function(){var I;if((I=this.upsellButtonRenderer)==null||!I.isDisabled){var C,y;I=(y=(C=this.data)==null?void 0:C.upsellEndpoint)!=null?y:{};this.ytComponentBehavior.resolveCommand(I);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"]);C="UNKNOWN_FORMAT_TYPE";if(this.rememberSettingsChecked){var k,F,z,c;C=(c=(k=this.formats)==null?void 0:(F=k[(z=this.selectedQualityIndex)!=null?z:0])==null?void 0:F.format)!=null?c:"UNKNOWN_FORMAT_TYPE"}this.ytComponentBehavior.resolveCommand({setPrefStorageEntryCommand:{key:"lmqf",
value:C}})}};
_.u.onClickClose=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-download-quality-selector-renderer"])};
_.u.getOfflineSettingsAction=function(I,C){return I?C===void 0?"DOWNLOAD_QUALITY_SETTINGS_ACTION_SAVE":C:"DOWNLOAD_QUALITY_SETTINGS_ACTION_DONT_SAVE"};
_.u.getOfflineEndpoint=function(I){return _.l(I,_.uY)?_.l(I,_.uY):_.l(I,_.zU)};
_.H1.Object.defineProperties(eq.prototype,{titleText:{configurable:!0,enumerable:!0,get:function(){return _.Cx(_.PQ("DOWNLOAD_QUALITY",void 0,"Download Quality"))}},
formats:{configurable:!0,enumerable:!0,get:function(){var I;return this.downloadQualityPickerEntity?this.downloadQualityPickerEntity.formats:(I=this.data)==null?void 0:I.qualityFormats}}});
eq.prototype.updateQualityOptions=eq.prototype.updateQualityOptions;eq.prototype.dataChanged=eq.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],eq.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eq.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],eq.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Number)],eq.prototype,"selectedQualityIndex",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"selectedUpsellQuality",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],eq.prototype,"ytdReduxBehavior",void 0);
_.E([_.d({selector:NIY,selectorArgs:["data.downloadQualityPickerEntityKey"]}),_.h("design:type",Object)],eq.prototype,"downloadQualityPickerEntity",void 0);_.E([_.d(),_.h("design:type",Array)],eq.prototype,"qualityOptions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],eq.prototype,"darkerDarkTheme",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],eq.prototype,"useUpsellDismissAlternate",void 0);
_.E([_.d(),_.h("design:type",Object)],eq.prototype,"shouldShowAlternateUpsellDimiss",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"downloadButtonRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"upsellButtonRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"cancelButtonRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"upsellCancelButtonRenderer",void 0);_.E([_.d(),_.h("design:type",Object)],eq.prototype,"rememberSettings",void 0);
_.E([_.d(),_.h("design:type",Object)],eq.prototype,"rememberSettingsChecked",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eq.prototype,"dataChanged",null);_.E([_.FI("downloadQualityPickerEntity"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eq.prototype,"updateQualityOptions",null);eq=_.E([_.m({is:"ytd-download-quality-selector-renderer",disableElementRegistration:!0})],eq);
_.Z(eq,"ytd-download-quality-selector-renderer",function(){if(yD8!==void 0)return yD8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return yD8=I},{mode:1});var k7y;var rv=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(rv,_.q);rv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
rv.prototype.configureRendererStamper=function(){return{"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.nextButton":{id:"next-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rv.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],rv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rv.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],rv.prototype,"darkerDarkTheme",void 0);_.E([_.d({computed:"computeIcon_(data.infoIcon)"}),_.h("design:type",Object)],rv.prototype,"infoIcon",void 0);
_.E([_.d({computed:"computeIcon_(data.warningIcon)"}),_.h("design:type",Object)],rv.prototype,"warningIcon",void 0);rv=_.E([_.m({is:"ytd-cross-account-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],rv);
_.Z(rv,"ytd-cross-account-transfer-channel-confirm-dialog-renderer",function(){if(k7y!==void 0)return k7y;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return k7y=I},{mode:1});var FQM;var iP=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(iP,_.q);iP.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
iP.prototype.configureRendererStamper=function(){return{"data.stepper":{id:"stepper",mapping:{channelTransferStepperRenderer:"ytd-channel-transfer-stepper-renderer"}},"data.cancelButton":{id:"cancel-button",mapping:{buttonRenderer:{attributes:{"dialog-dismiss":!0},component:"ytd-button-renderer"}}},"data.signinButton":{id:"signin-button",mapping:{buttonRenderer:{component:"ytd-button-renderer"}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],iP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],iP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],iP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],iP.prototype,"darkerDarkTheme",void 0);iP=_.E([_.m({is:"ytd-cross-account-transfer-channel-overview-renderer",disableElementRegistration:!0})],iP);
_.Z(iP,"ytd-cross-account-transfer-channel-overview-renderer",function(){if(FQM!==void 0)return FQM;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return FQM=I},{mode:1});var ubP;var wv=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(wv,_.q);wv.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
wv.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"}}}}};
wv.prototype.onServiceRequestSentOrCompleted=function(I,C){C&&C.actions&&C.actions.length>0&&_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
wv.prototype.onServiceRequestSentOrCompleted=wv.prototype.onServiceRequestSentOrCompleted;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wv.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],wv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],wv.prototype,"darkerDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],wv.prototype,"data",void 0);
_.E([_.km("yt-service-request-completed"),_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],wv.prototype,"onServiceRequestSentOrCompleted",null);wv=_.E([_.m({is:"ytd-cross-account-transfer-channel-tnc-dialog-renderer",disableElementRegistration:!0})],wv);
_.Z(wv,"ytd-cross-account-transfer-channel-tnc-dialog-renderer",function(){if(ubP!==void 0)return ubP;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ubP=I},{mode:1});var zWS;var n3=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.submitButtonDisabled=!0;return I};
_.R(n3,_.q);_.u=n3.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.sections":{id:"sections",mapping:{itemSectionRenderer:{component:"ytd-item-section-renderer",noInjection:!0}}}}};
_.u.onDataChanged=function(){var I,C,y;if(((I=this.data)==null?void 0:(C=I.confirmButton)==null?void 0:(y=C.buttonRenderer)==null?void 0:y.isDisabled)!==void 0){var k,F,z;this.submitButtonDisabled=(k=this.data)==null?void 0:(F=k.confirmButton)==null?void 0:(z=F.buttonRenderer)==null?void 0:z.isDisabled}};
_.u.checkboxChanged=function(){this.submitButtonDisabled=!this.submitButtonDisabled};
_.u.updateSubmitButtonDisabledFromBinding=function(I){this.submitButtonDisabled=I.detail.value};
_.u.updateSubmitButtonDisabledFromConfirmCheckbox=function(I){this.submitButtonDisabled=!I.detail.value};
n3.prototype.onDataChanged=n3.prototype.onDataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],n3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],n3.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],n3.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],n3.prototype,"darkerDarkTheme",void 0);
_.E([_.d(),_.h("design:type",Object)],n3.prototype,"submitButtonDisabled",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],n3.prototype,"onDataChanged",null);n3=_.E([_.m({is:"ytd-transfer-channel-confirm-dialog-renderer",disableElementRegistration:!0})],n3);
_.Z(n3,"ytd-transfer-channel-confirm-dialog-renderer",function(){if(zWS!==void 0)return zWS;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return zWS=I},{mode:1});var TPB;var Pt=function(){return _.q.apply(this,arguments)||this};
_.R(Pt,_.q);_.H1.Object.defineProperties(Pt.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){var I,C,y;return((I=this.data)==null?void 0:I.title)+" "+((C=this.data)==null?void 0:C.metadataPrimary)+" "+((y=this.data)==null?void 0:y.metadataSecondary)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Pt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Pt.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Pt.prototype,"data",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],Pt.prototype,"ariaLabel",null);Pt=_.E([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-item-renderer"})],Pt);
_.Z(Pt,"ytd-compact-product-list-item-renderer",function(){if(TPB!==void 0)return TPB;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return TPB=I},{mode:1});var cDH;var L3=function(){return _.q.apply(this,arguments)||this};
_.R(L3,_.q);L3.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]]"}}}}}};
_.H1.Object.defineProperties(L3.prototype,{buttonOverrides:{configurable:!0,enumerable:!0,get:function(){return{style:"mono"}}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],L3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],L3.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],L3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],L3.prototype,"data",void 0);L3=_.E([_.m({disableElementRegistration:!0,is:"ytd-compact-product-list-renderer"})],L3);
_.Z(L3,"ytd-compact-product-list-renderer",function(){if(cDH!==void 0)return cDH;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return cDH=I},{mode:1});var eWH;var DP=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(DP,_.q);_.u=DP.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.configureRendererStamper=function(){return{"data.okayButton":{id:"okay-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.u.getBackgroundUrl=function(){var I=this.get("data.headerImage.thumbnails");return I?"url("+_.E5(I,this.hostElement.clientWidth)+")":""};
_.u.onDataChanged=function(){var I=this.getBackgroundUrl();I&&(this.header.style.backgroundImage=I);I=_.Si();var C=_.fq(),y=this.get("data.trackingParams");y&&C&&I&&_.q1(I,C,_.nv(y));I=_.T(this.hostElement.querySelectorAll("yt-img-shadow"));for(C=I.next();!C.done;C=I.next())C.value.onShow()};
_.u.onPopupClosed=function(I){_.m0(I).localName==="ytd-membership-post-cancel-renderer"&&_.Fe(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"])};
DP.prototype.onPopupClosed=DP.prototype.onPopupClosed;DP.prototype.onDataChanged=DP.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],DP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DP.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],DP.prototype,"darkerDarkTheme",void 0);
_.E([_.z$("#header"),_.h("design:type",HTMLDivElement)],DP.prototype,"header",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DP.prototype,"onDataChanged",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],DP.prototype,"onPopupClosed",null);DP=_.E([_.m({disableElementRegistration:!0,is:"ytd-membership-post-cancel-renderer"})],DP);
_.Z(DP,"ytd-membership-post-cancel-renderer",function(){if(eWH!==void 0)return eWH;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return eWH=I},{mode:1});var rDR;var p3=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(p3,_.q);p3.prototype.maybeSubmitFeedback=function(){this.feedbackSurveyRenderer&&this.feedbackSurveyRenderer.submitSurvey()};
p3.prototype.configureRendererStamper=function(){return{"data.feedbackSurvey":{id:"feedback-survey",mapping:{feedbackSurveyRenderer:"ytd-feedback-survey-renderer"}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],p3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],p3.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],p3.prototype,"darkerDarkTheme",void 0);_.E([_.z$("ytd-feedback-survey-renderer"),_.h("design:type",Object)],p3.prototype,"feedbackSurveyRenderer",void 0);p3=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-content"})],p3);
_.Z(p3,"ytd-sponsorship-confirm-cancel-content",function(){if(rDR!==void 0)return rDR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return rDR=I},{mode:1});var ioY;var Q$=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.maybeSubmitFeedback=function(){I.content&&I.content.maybeSubmitFeedback()};
return I};
_.R(Q$,_.q);_.u=Q$.prototype;_.u.configureRendererStamper=function(){return{"data.confirmButton":{id:"confirm-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[maybeSubmitFeedback]]"}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.scrollable.dialogElement=this.hostElement.parentNode;this.scrollable._ensureTarget();this.onDataChanged()};
_.u.onYtPopupOpened=function(I,C){C===this&&this.data&&this.data.onOpenCommands&&_.cQ(this.hostElement,this.data.onOpenCommands,this.hostElement);_.Fe(this.hostElement,"yt-close-popups-action",[["ytd-manage-membership-renderer","ytd-membership-offer-renderer"]])};
_.u.onYtPopupClosed=function(I,C){(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.data&&this.data.onDismissCommands&&_.cQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestCompleted=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-sponsorship-confirm-cancel-renderer"])};
_.u.onYtServiceRequestError=function(I){_.ly(this.hostElement,I.detail.error.message)};
_.u.onDataChanged=function(){if(this.isAttached){var I=this.backgroundUrl;I&&(_.f(this.hostElement).querySelector("#header").style.backgroundImage=I)}};
_.H1.Object.defineProperties(Q$.prototype,{backgroundUrl:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipDialogHeaderRenderer.headerImage.thumbnails");return I?"url("+_.E5(I,this.hostElement.clientWidth)+")":""}}});
Q$.prototype.onDataChanged=Q$.prototype.onDataChanged;Q$.prototype.onYtServiceRequestError=Q$.prototype.onYtServiceRequestError;Q$.prototype.onYtServiceRequestCompleted=Q$.prototype.onYtServiceRequestCompleted;Q$.prototype.onYtPopupClosed=Q$.prototype.onYtPopupClosed;Q$.prototype.onYtPopupOpened=Q$.prototype.onYtPopupOpened;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Q$.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Q$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Q$.prototype,"data",void 0);_.E([_.d({value:function(){return _.PQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],Q$.prototype,"closeButtonAriaLabel",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Q$.prototype,"darkerDarkTheme",void 0);_.E([_.z$("#scrollable"),_.h("design:type",Object)],Q$.prototype,"scrollable",void 0);_.E([_.z$("ytd-sponsorship-confirm-cancel-content"),_.h("design:type",Object)],Q$.prototype,"content",void 0);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Q$.prototype,"onYtPopupOpened",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],Q$.prototype,"onYtPopupClosed",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Q$.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],Q$.prototype,"onYtServiceRequestError",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Q$.prototype,"onDataChanged",null);
Q$=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorship-confirm-cancel-renderer"})],Q$);
_.Z(Q$,"ytd-sponsorship-confirm-cancel-renderer",function(){if(ioY!==void 0)return ioY;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return ioY=I},{mode:_.Ij("kevlar_poly_si_batch_j081")?1:2});var weB;var N4=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(N4,_.q);N4.prototype.configureRendererStamper=function(){return{"data.contents":{id:"content",mapping:{sponsorshipsListTileRenderer:{component:"ytd-sponsorships-list-tile-renderer"}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],N4.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],N4.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],N4.prototype,"darkerDarkTheme",void 0);N4=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-content"})],N4);
_.Z(N4,"ytd-sponsorships-celebration-content",function(){if(weB!==void 0)return weB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return weB=
I},{mode:1});var nZR;var P1j=_.hu(["\n      window.dataLayer = window.dataLayer || [];\n      function gtag(){dataLayer.push(arguments);}\n      gtag('event', 'conversion', {'send_to': 'AW-10800507011/WarlCOX0sIIDEIPRip4o', 'transaction_id': ''});\n    "]),V$=function(){var I=_.q.apply(this,arguments)||this;I.scriptsAppended=!1;I.buttonOverrides={type:"tonal",style:"overlay-dark"};return I};
_.R(V$,_.q);_.u=V$.prototype;
_.u.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:_.V("web_modern_buttons")}}}},"data.primaryButton":{id:"primary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0}}}},"data.secondaryButton":{id:"secondary-button",mapping:{buttonRenderer:{component:"yt-button-renderer",
attributes:{"dialog-dismiss":!0}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.onDataChanged=function(){var I;(I=this.header)==null||I.style.setProperty("background-color",this.backgroundColor);if(I=this.headerImageUrl){var C;(C=this.header)==null||C.style.setProperty("background-image",I)}C=_.Si(4);I=_.fq(4);var y=this.get("data.trackingParams");if(y&&I&&C){var k=_.nv(y);_.q1(C,I,k);_.V("combine_ve_grafts")?_.e2().graftServerVe(y,I,4):_.q1(C,I,k)}C=_.T(this.hostElement.querySelectorAll("yt-img-shadow"));for(I=C.next();!I.done;I=C.next())I.value.onShow();if(C=this.get("data.gtmId"))_.rx(C,
_.Aq("GL","")),this.setupConversionTracking()};
_.u.setupConversionTracking=function(){if(!this.scriptsAppended){var I=document.createElement("script");var C=_.bi(P1j.join(""));_.GK(I,C);document.head.appendChild(I);I=document.createElement("noscript");I.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(I);this.scriptsAppended=!0}};
_.u.onPopupClosed=function(I){if(_.m0(I).localName==="ytd-sponsorships-celebration-renderer"){_.Fe(this.hostElement,"ytd-refresh-channel-tab-action",["TAB_ID_SPONSORSHIPS"]);var C;this.data&&((C=this.data)==null?0:C.dismissCommand)&&_.FW.instance.resolveCommand(this.data.dismissCommand,{form:{element:this.hostElement}})}};
_.H1.Object.defineProperties(V$.prototype,{backgroundColor:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");return _.Xl(I)}},
headerImageUrl:{configurable:!0,enumerable:!0,get:function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails");return I?"url("+_.E5(I,this.hostElement.getBoundingClientRect().width)+")":""}}});
V$.prototype.onPopupClosed=V$.prototype.onPopupClosed;V$.prototype.onDataChanged=V$.prototype.onDataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],V$.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],V$.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],V$.prototype,"data",void 0);_.E([_.z$("#header"),_.h("design:type",HTMLElement)],V$.prototype,"header",void 0);
_.E([_.d(),_.h("design:type",Object)],V$.prototype,"scriptsAppended",void 0);_.E([_.d(),_.h("design:type",Object)],V$.prototype,"buttonOverrides",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],V$.prototype,"onDataChanged",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],V$.prototype,"onPopupClosed",null);
V$=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-celebration-renderer"})],V$);
_.Z(V$,"ytd-sponsorships-celebration-renderer",function(){if(nZR!==void 0)return nZR;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-sponsorships-celebration-renderer--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<div id="header" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="avatar-container" class="style-scope ytd-sponsorships-celebration-renderer">\n    <yt-img-shadow class="avatar style-scope ytd-sponsorships-celebration-renderer" fit="true" thumbnail="[[data.header.sponsorshipsHeaderRenderer.channelImage]]">\n    </yt-img-shadow>\n  </div>\n  <div class="title-container style-scope ytd-sponsorships-celebration-renderer">\n    <yt-formatted-string class="title style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.title]]">\n    </yt-formatted-string>\n    <yt-formatted-string class="subtitle style-scope ytd-sponsorships-celebration-renderer" text="[[data.header.sponsorshipsHeaderRenderer.subtitle]]">\n    </yt-formatted-string>\n  </div>\n</div>\n<ytd-sponsorships-celebration-content data="[[data]]" class="style-scope ytd-sponsorships-celebration-renderer"></ytd-sponsorships-celebration-content>\n<div id="top-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="dismiss-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n<div id="button-bar" class="style-scope ytd-sponsorships-celebration-renderer">\n  <div id="secondary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n  <div id="primary-button" class="style-scope ytd-sponsorships-celebration-renderer"></div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return nZR=I},{mode:1});var LQK;var jq=function(){var I=_.q.apply(this,arguments)||this;I.isToggleChecked=!1;return I};
_.R(jq,_.q);jq.prototype.onDataChanged=function(){var I;this.isToggleChecked=((I=this.data)==null?void 0:I.initialOptInStatus)==="SPONSORSHIPS_GIFTING_OPT_IN_STATUS_ENABLED"};
jq.prototype.close=function(){var I;((I=this.data)==null?0:I.closeCommand)&&this.ytComponentBehavior.resolveCommand(this.data.closeCommand)};
jq.prototype.handleOptInToggle=function(){this.isToggleChecked=!this.isToggleChecked;var I,C=_.l((I=this.data)==null?void 0:I.switchButton,ofL);C&&(this.isToggleChecked&&C.switchOnInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOnInnertubeCommand),!this.isToggleChecked&&C.switchOffInnertubeCommand&&this.ytComponentBehavior.resolveCommand(C.switchOffInnertubeCommand))};
jq.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
jq.prototype.onDataChanged=jq.prototype.onDataChanged;_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],jq.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jq.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jq.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],jq.prototype,"isToggleChecked",void 0);_.E([_.d({value:_.PQ("CLOSE")}),_.h("design:type",String)],jq.prototype,"closeButtonAriaLabel",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],jq.prototype,"onDataChanged",null);jq=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-gifting-opt-in-renderer"})],jq);
_.Z(jq,"ytd-sponsorships-gifting-opt-in-renderer",function(){if(LQK!==void 0)return LQK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return LQK=I},{mode:1});var DGL;var lP=function(){return _.q.apply(this,arguments)||this};
_.R(lP,_.q);_.u=lP.prototype;_.u.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"}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.detached=function(){this.playerElement.stop()};
_.u.onYtServiceRequestCompleted=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-sponsorships-offer-renderer"])};
_.u.onYtServiceRequestError=function(I){_.ly(this.hostElement,I.detail.error.message)};
_.u.onYtPopupOpened=function(){this.scrollable&&(this.scrollable.scrollTarget.scrollTop=0)};
_.u.onYtPopupClosed=function(){this.playerElement.stop();this.backgroundPlayerElement&&this.isBackgroundPlayerAlreadyPlaying&&!this.tierRenderer.purchaseButtonClicked&&this.backgroundPlayerElement.play();this.set("selectedTier",0)};
_.u.getTier=function(I,C){return!I||!I.tiers||C<0?null:_.l(I.tiers[C],uHY)};
_.u.moreThanOne=function(I){return!!(I&&I.length>1)};
_.u.tierOverviewTap=function(I){var C=this;this.selectedTier=I.model.index;_.hn(this,function(){_.k3(C.hostElement,"yt-refit")})};
_.u.computeSelectedClass=function(I,C){return this.isSelected(I,C)?"selected":""};
_.u.computeButtonAriaPressed=function(I,C){return this.isSelected(I,C)?"true":"false"};
_.u.isSelected=function(I,C){return I===C};
_.u.onDataChanged=function(){_.f(this.hostElement).querySelector("#header-overlay").style.visibility="";_.f(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 I=_.T(this.hostElement.querySelectorAll("yt-img-shadow")),
C=I.next();!C.done;C=I.next())C.value.onShow();var y;this.set("selectedTier",(y=this.get("data.targetTierIndex"))!=null?y:0);var k;(I=(k=this.data)==null?void 0:k.onVisible)&&this.ytComponentBehavior.resolveCommand(I)};
_.u.initializeVe=function(I){var C=_.Si(),y=_.fq(),k=this.get("data.trackingParams");y&&C&&(this.screenLayer=4,C=_.W5(_.TrF)(void 0,69877,{clientScreenNonce:C,visualElement:y},void 0,void 0,void 0),_.rZO(C,69877,4),y=_.fq(4),k&&y&&(k=_.nv(k),_.q1(C,y,k),I&&(this.offerVideoVe=_.Dn(74659),_.q1(C,k,this.offerVideoVe))))};
_.u.setHeaderBackground=function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundColor");_.f(this.hostElement).querySelector("#background-image-layer").style.backgroundColor=_.Xl(I);if(I=this.getHeaderImage())I=_.E5(I,screen.width),_.f(this.hostElement).querySelector("#background-image-layer").style.backgroundImage="url("+I+")"};
_.u.getHeaderImage=function(){var I=this.get("data.header.sponsorshipsHeaderRenderer.backgroundImageDarkMode.thumbnails");return this.isAppDarkTheme()&&I?I:this.get("data.header.sponsorshipsHeaderRenderer.backgroundImage.thumbnails")};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u.setupVideoPlayer=function(I){var C=this,y,k,F,z;return _.e(function(c){if(c.nextAddress==1)return y=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.autoplay"),k=C.get("data.header.sponsorshipsHeaderRenderer.inlineVideo.sponsorshipsOfferVideoRenderer.playerWatchEndpointParams"),_.V("kevlar_player_update_killswitch")?C.playerElement.update({args:{autoplay:y,video_id:I,player_params:k}}):C.playerElement.loadVideoWithPlayerVars({autoplay:y,video_id:I,player_params:k}),
_.n(c,C.playerElement.getPlayerPromise(),2);F=c.yieldResult;F.addEventListener("onStateChange",function(r){C.onPlayerStateChange(r)});
F.setScreenLayer(C.screenLayer);(z=_.Si(4))&&C.offerVideoVe&&_.mM(z,C.offerVideoVe);y&&(C.pauseOtherPlayers(),C.playerElement.focusOnPlayer(),C.playerElement.getPlayer().hideControls(),_.NU(_.b$,function(){C.fadeOutHeaderOverlay()},4E3));
_.oI(c)})};
_.u.onPlayerStateChange=function(I){I===1?this.backgroundPlayerElement&&(I=this.backgroundPlayerElement.player_.getPlayerState(),I!==1&&I!==3||this.backgroundPlayerElement.pause()):I===0&&(_.f(this.hostElement).querySelector("#header-overlay").style.visibility="",this.playerElement.getPlayer().hideControls(),_.f(this.hostElement).querySelector("#header-overlay").classList.remove("header-overlay-transition"))};
_.u.fadeOutHeaderOverlay=function(){_.f(this.hostElement).querySelector("#header-overlay").classList.add("header-overlay-transition");this.playerElement.getPlayer().showControls()};
_.u.onHeaderTap=function(){if(this.offerVideo){_.f(this.hostElement).querySelector("#header-overlay").style.visibility="hidden";this.pauseOtherPlayers();var I;((I=this.playerElement.player_)==null?void 0:I.getPlayerState())===1?this.playerElement.pause():this.playerElement.play();(I=_.Si(4))&&this.offerVideoVe&&_.EN(I,this.offerVideoVe)}};
_.u.getBackgroundImageLayerClass=function(I){return I?"background-image-layer-with-video":""};
_.u.getHeaderClass=function(I){return I?"header-with-video":""};
_.u.getHeaderOverlayClass=function(I){return I?"header-overlay-with-video":""};
_.u.getTitleContainerClass=function(I,C){return I?"title-container-with-video":C?"title-container-without-video-flexible":"title-container-without-video"};
_.u.tierTitleDisplayStatus=function(I){return this.moreThanOne(I)?"hide":"show"};
_.u.pauseOtherPlayers=function(){this.isMiniplayerActive()?this.backgroundPlayerElement=_.N().resolve(_.WJ).getPlayerElement():this.backgroundPlayerElement=_.hU();if(this.backgroundPlayerElement&&this.backgroundPlayerElement.player_){var I=this.backgroundPlayerElement.player_.getPlayerState();this.isBackgroundPlayerAlreadyPlaying=I===1||I===3;this.backgroundPlayerElement.pause()}};
_.u.isMiniplayerActive=function(){return _.N().resolve(_.WJ).isMiniplayerActive()};
_.u.selectedTierChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("selected-tier-changed",this.selectedTier))};
lP.prototype.selectedTierChangedForBinding=lP.prototype.selectedTierChangedForBinding;lP.prototype.onDataChanged=lP.prototype.onDataChanged;lP.prototype.onYtPopupClosed=lP.prototype.onYtPopupClosed;lP.prototype.onYtPopupOpened=lP.prototype.onYtPopupOpened;lP.prototype.onYtServiceRequestError=lP.prototype.onYtServiceRequestError;lP.prototype.onYtServiceRequestCompleted=lP.prototype.onYtServiceRequestCompleted;
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lP.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],lP.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lP.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lP.prototype,"data",void 0);_.E([_.d({value:0}),_.h("design:type",Number)],lP.prototype,"selectedTier",void 0);
_.E([_.d({value:""}),_.h("design:type",String)],lP.prototype,"offerVideo",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],lP.prototype,"isBackgroundPlayerAlreadyPlaying",void 0);_.E([_.d({value:function(){return"ytd-sponsorships-offer-with-video-renderer-"+_.ow(this)}}),
_.h("design:type",String)],lP.prototype,"playerId",void 0);_.E([_.z$("tp-yt-paper-dialog-scrollable"),_.h("design:type",Object)],lP.prototype,"scrollable",void 0);_.E([_.z$("ytd-sponsorships-tier-renderer"),_.h("design:type",Object)],lP.prototype,"tierRenderer",void 0);_.E([_.z$("#player"),_.h("design:type",Object)],lP.prototype,"playerElement",void 0);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lP.prototype,"onYtServiceRequestCompleted",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],lP.prototype,"onYtServiceRequestError",null);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lP.prototype,"onYtPopupOpened",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lP.prototype,"onYtPopupClosed",null);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lP.prototype,"onDataChanged",null);
_.E([_.FI("selectedTier"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],lP.prototype,"selectedTierChangedForBinding",null);lP=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-offer-renderer"})],lP);
_.Z(lP,"ytd-sponsorships-offer-renderer",function(){if(DGL!==void 0)return DGL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return DGL=I},{mode:_.Ij("kevlar_poly_si_batch_j077")?1:2});var peB;var X_=function(){var I=_.q.apply(this,arguments)||this;I.buttonOverrides={type:"filled",style:"mono"};return I};
_.R(X_,_.q);X_.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}}}}}};
X_.prototype.backgroundColorChanged=function(){var I,C,y,k=(C=_.l((I=this.data)==null?void 0:I.content,zSK))==null?void 0:(y=C.backgroundColor)==null?void 0:y.backgroundColor;k&&(I=_.lg(k),_.f(this.hostElement).querySelector("#banner").style.backgroundColor=I,_.f(this.hostElement).querySelector("#abstract-art").style.backgroundColor=I)};
X_.prototype.attached=function(){this.JSC$18271_scroller&&(this.JSC$18271_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18271_scroller.attached&&typeof this.JSC$18271_scroller.attached==="function"&&this.JSC$18271_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
X_.prototype.backgroundColorChanged=X_.prototype.backgroundColorChanged;_.E([_.d(),_.h("design:type",Object)],X_.prototype,"data",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],X_.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],X_.prototype,"JSC$18271_scroller",void 0);_.E([_.d(),_.h("design:type",Object)],X_.prototype,"buttonOverrides",void 0);
_.E([_.FI("data.content.sponsorshipsPromotionChannelRenderer.backgroundColor"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],X_.prototype,"backgroundColorChanged",null);X_=_.E([_.m({disableElementRegistration:!0,is:"ytd-sponsorships-promotion-celebration-renderer"})],X_);
_.Z(X_,"ytd-sponsorships-promotion-celebration-renderer",function(){if(peB!==void 0)return peB;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return peB=I},{mode:_.Ij("kevlar_poly_si_batch_j077")?1:2});var Q9M;var NPK;var $E=function(){return _.q.apply(this,arguments)||this};
_.R($E,_.q);$E.prototype.getValue=function(){return this.checkbox.checked?this.data.params:void 0};
$E.prototype.computeIsInitiallyChecked=function(I){return I===1};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$E.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],$E.prototype,"data",void 0);_.E([_.z$("#checkbox"),_.h("design:type",Object)],$E.prototype,"checkbox",void 0);$E=_.E([_.m({disableElementRegistration:!0,is:"ytd-subscription-toggle-option-renderer"})],$E);
_.Z($E,"ytd-subscription-toggle-option-renderer",function(){if(NPK!==void 0)return NPK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return NPK=I},{mode:1});var Ro=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.actionMap={"yt-signal-action-submit-notification-options-form":"handleSignalActionSubmitNotificationOptionsForm"};return I};
_.R(Ro,_.q);Ro.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"}}}};
Ro.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ro.prototype.handleSignalActionSubmitNotificationOptionsForm=function(){var I=_.f(this.hostElement).querySelector("#options").selected;I=this.data.options[I].subscriptionRadioOptionRenderer.serviceEndpoint;var C=_.f(this.hostElement).querySelector("ytd-subscription-toggle-option-renderer");C&&I&&I.modifyChannelNotificationPreferenceEndpoint&&(C=C.getValue())&&(I.modifyChannelNotificationPreferenceEndpoint.secondaryParams=[C]);_.N().resolve(_.ID).resolveCommand(I,{form:{element:this.hostElement}});
_.Fe(this.hostElement,"yt-close-popup-action")};
_.H1.Object.defineProperties(Ro.prototype,{initialIndex:{configurable:!0,enumerable:!0,get:function(){if(!this.data||!this.data.options)return null;for(var I=this.data.options,C=0;C<I.length;C++){var y=I[C].subscriptionRadioOptionRenderer;if(y&&y.selected)return C}return null}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ro.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ro.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],Ro.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ro.prototype,"ytRendererBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],Ro.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Ro.prototype,"darkerDarkTheme",void 0);_.E([_.v("data.options"),_.h("design:type",Object),_.h("design:paramtypes",[])],Ro.prototype,"initialIndex",null);Ro=_.E([_.m({disableElementRegistration:!0,is:"ytd-subscription-notification-options-renderer"})],Ro);
_.Z(Ro,"ytd-subscription-notification-options-renderer",function(){if(Q9M!==void 0)return Q9M;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return Q9M=I},{mode:1});var Vv8;var bP=function(){return _.q.apply(this,arguments)||this};
_.R(bP,_.q);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bP.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bP.prototype,"data",void 0);bP=_.E([_.m({disableElementRegistration:!0,is:"ytd-tvfilm-offer-groups-renderer"})],bP);
_.Z(bP,"ytd-tvfilm-offer-groups-renderer",function(){if(Vv8!==void 0)return Vv8;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return Vv8=I},{mode:1});var j9L;var YE=function(){var I=_.q.apply(this,arguments)||this;I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(YE,_.q);_.u=YE.prototype;_.u.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"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.hasAttribute("aria-label")||this.hostElement.setAttribute("aria-label","Offers")};
_.u.computeThumbnailClass=function(I){return I.thumbnailOverlays?I.isShow?"thumbnail-show":"thumbnail-movie":I.isShow?"thumbnail-no-overlay-show":"thumbnail-no-overlay-movie"};
_.u.computeCommerceSectionClass=function(I){return I.offers&&I.offers.tvfilmOffersRenderer?"commerce-section-groups":"commerce-section-tabs"};
_.u.computeTitleClass=function(I){return I.offers&&I.offers.tvfilmOffersRenderer?"title-with-offer-groups":""};
_.u.onDataChanged=function(){[].concat(_.Py(this.hostElement.querySelectorAll("yt-img-shadow"))).forEach(function(I){I.onShow()})};
YE.prototype.onDataChanged=YE.prototype.onDataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],YE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],YE.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],YE.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],YE.prototype,"darkerDarkTheme",void 0);
_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],YE.prototype,"onDataChanged",null);YE=_.E([_.m({disableElementRegistration:!0,is:"ytd-ypc-offers-overlay-renderer"})],YE);
_.Z(YE,"ytd-ypc-offers-overlay-renderer",function(){if(j9L!==void 0)return j9L;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return j9L=I},{mode:_.Ij("kevlar_poly_si_batch_j028")?1:2});var lwR;var XeY=function(){this.usedMethods=new Set};
XeY.prototype.add=function(I){this.usedMethods.add(I)};
XeY.prototype.reset=function(){this.usedMethods.clear()};var boR=function(I,C){this.query=I;this.previousSearchQuery=C;this.id=$GS++;if(!RWy){C=_.Aq("SBOX_SETTINGS");I="https://"+((C==null?void 0:C.SEARCHBOX_HOST_OVERRIDE)||"suggestqueries-clients6.youtube.com")+"/complete/search?ds=yt";var y=C==null?void 0:C.REQUEST_LANGUAGE;y&&(I+="&hl="+y);(y=C==null?void 0:C.REQUEST_DOMAIN)&&(I+="&gl="+y);I+="&client=youtube&gs_ri=youtube";(y=C==null?void 0:C.SUGG_EXP_ID)&&(I+="&sugexp="+encodeURIComponent(y));(y=C==null?void 0:C.PSUGGEST_TOKEN)&&(I+="&tok="+y);(C=
C==null?void 0:C.SESSION_INDEX)&&(I+="&authuser="+C);_.V("desktop_enable_visual_suggest")&&(I+="&h=180&w=320&ytvs=1");RWy=I}},YpH=function(I){var C="q="+encodeURIComponent(I.query);
I.previousSearchQuery&&(C+="&pq="+encodeURIComponent(I.previousSearchQuery));return C},G7B=function(){var I=_.Aq("SBOX_SETTINGS"),C={};
if(I==null?0:I.SEND_VISITOR_DATA)C["X-Goog-Visitor-Id"]=I==null?void 0:I.VISITOR_DATA;return C},fwY=function(I){var C=RWy;
C+="&gs_id="+I.id.toString(36);C+="&q="+encodeURIComponent(I.query);C+="&cp="+I.query.length;I.previousSearchQuery&&(C+="&pq="+encodeURIComponent(I.previousSearchQuery));(I=window.URLSearchParams?(new URLSearchParams(window.location.search)).get("v"):null)&&(C+="&video_id="+I);return C},$GS=0,RWy="";var SpY=_.WU.SEARCH_ENTITY_SUGGESTION_ALBUM_NO_ARTIST,KQK=_.WU.SEARCH_ENTITY_SUGGESTION_MOVIE,ADL=_.WU.SEARCH_ENTITY_SUGGESTION_SONG_NO_ARTIST,gZy=_.WU.SEARCH_ENTITY_SUGGESTION_TV_SHOW,vZY=function(I,C){this.text=I;this.bold=C},WQS=function(I,C,y){this.input=C;
this.index=y;this.text="";this.suggestionSources={COMPLETE_SERVER:1};this.text=I[0];this.type=I[1];this.subtypes=I[2];var k;this.displayText=H8((k=I[3])==null?void 0:k.b);var F;this.ignoredPrefix=H8((F=I[3])==null?void 0:F.a);var z,c;this.hasNewVideo=((z=I[3])==null?void 0:(c=z.zam)==null?void 0:c.toString())==="true"?!0:!1;var r;this.visualSuggestUrl=(r=I[3])==null?void 0:r.zai;var w;this.entityType=H8((w=I[3])==null?void 0:w.zap);var L;this.entityName=H8((L=I[3])==null?void 0:L.zao);var D;C=H8((D=
I[3])==null?void 0:D.zaf);D=$kM(this.subtypes);if(C&&D){if(C){y="";switch(D){case "YOUTUBE_ENTITY_TYPE_SONG":y=ADL;break;case "YOUTUBE_ENTITY_TYPE_ALBUM":y=SpY;break;case "YOUTUBE_ENTITY_TYPE_TV_SHOW":y=gZy;break;case "YOUTUBE_ENTITY_TYPE_MOVIE":y=KQK}D=D==="YOUTUBE_ENTITY_TYPE_SONG"||D==="YOUTUBE_ENTITY_TYPE_ALBUM"?y+" \u2022  \u2022 "+C:C}else D="";this.entitySubtitle=D}var p;this.entityMid=(p=I[3])==null?void 0:p.zae;var Q;this.externalChannelId=(Q=I[3])==null?void 0:Q.zav},dG8=function(I){var C=
[],y,k=(y=I.displayText)!=null?y:I.text;
if(I.type===33)return C.push(new vZY(k,!1)),C;if(k.length>=I.input.length&&k.substring(0,I.input.length)===I.input)C.push(new vZY(I.input,!1)),C.push(new vZY(k.substring(I.input.length),!0));else{var F=new Set(I.input.split(/\s/)),z=k.split(/\s/);C=z.map(function(c,r){return new vZY(c.trim()+(r===z.length-1?"":" "),!F.has(c))})}return C},xGY=function(I){return!!$kM(I.subtypes)};var qpL=function(I){this.rawResponse=["",[],{}];this.suggestions=[];try{var C=JSON.parse(RdM(I));if(typeof C==="object"&&C!==null)this.rawResponse=C;else{console.log("Suggest: Unexpected type from JSON.parse!");return}}catch(k){console.log("Suggest: Failed to parse SuggestResponse!");return}var y=this.rawResponse[0];this.suggestions=this.rawResponse[1].map(function(k,F){return new WQS(k,y,F)})};var mGR=function(){this.sessionNumber=this.startTime=-1;this.outOfSyncResponseCount=0;this.zeroPrefixSuggestionCount=-1;this.availableSuggestions=[];this.previousSuggestions={};this.selectedSuggestionIndex=-1;this.inputMethodsTracker=new XeY;this.zeroPrefixRoundTripTime=this.maxRoundTripTime=this.JSC$18307_totalRoundTripTime=0;this.roundTripTimeHistogram=Array.from({length:10}).fill(0);this.lastEditTime=this.firstEditTime=this.lastQueryBuildTime=-1;this.experimentTriggeredBeforeFinal=this.experimentTriggeredFinal=
!1},ZoR,BPL=function(){ZoR||(ZoR=new mGR);
return ZoR};
mGR.prototype.updateSuggestions=function(I){var C=this;this.availableSuggestions.forEach(function(y){C.previousSuggestions[y]=!0});
this.availableSuggestions=I.map(function(y){var k=y.type.toString();y.subtypes.length>0&&(k+="i"+y.subtypes.join("i"),k+="k"+y.suggestionSources.COMPLETE_SERVER.toString());return k})};
var EZY=function(I,C){var y=Date.now();I.firstEditTime<0&&(I.firstEditTime=y);C&&(I.lastQueryBuildTime=y);I.lastEditTime=y};
mGR.prototype.reset=function(){this.startTime=Date.now();++this.sessionNumber;this.inputMethodsTracker.reset();this.selectedSuggestionIndex=-1;this.maxRoundTripTime=this.JSC$18307_totalRoundTripTime=this.outOfSyncResponseCount=0;this.roundTripTimeHistogram.fill(0);this.zeroPrefixSuggestionCount=this.lastQueryBuildTime=this.lastEditTime=this.firstEditTime=-1};
var hWM=function(I){var C="";I.availableSuggestions.forEach(function(F){delete I.previousSuggestions[F]});
for(var y=_.T(Object.keys(I.previousSuggestions)),k=y.next();!k.done;k=y.next())k=k.value,I.previousSuggestions[k]&&(C+=(C?"j":"")+k);return C},UGL=function(I,C){var y=[];
C&&(y[1]=C.toString());y[0]="youtube";y[7]=Date.now()-I.startTime;y[6]=I.sessionNumber;I.zeroPrefixSuggestionCount>=0&&(y[33]=I.zeroPrefixSuggestionCount);y[13]=I.outOfSyncResponseCount;if(I.availableSuggestions.length>0){for(var k=C="",F=0,z=_.T(I.availableSuggestions),c=z.next();!c.done;c=z.next())c=c.value,c!==k&&(F>1&&(C+="l"+F),C+=(k?"j":"")+c,F=0,k=c),F+=1;F>1&&(C+="l"+F);y[3]=C}y[35]=hWM(I);I.selectedSuggestionIndex>=0&&(y[2]=I.selectedSuggestionIndex);var r;if(C=(r=_.Aq("SBOX_SETTINGS"))==
null?void 0:r.SUGG_EXP_ID)y[19]=I.normalize(C),r=0,I.experimentTriggeredBeforeFinal&&(r|=1),I.experimentTriggeredFinal&&(r|=2),y[20]=r;y[26]=Array.from(I.inputMethodsTracker.usedMethods).join("j");if(I.JSC$18307_totalRoundTripTime>0){y[15]=I.JSC$18307_totalRoundTripTime;y[14]=I.maxRoundTripTime;r=[];for(F=C=0;F<10;F++)k=I.roundTripTimeHistogram[F],k===0?C++:(C>1?r.push(F+"-"+k):C===1?r.push("0j"+k):r.push(k.toString()),C=0);r=r.join("j");y[16]=r}I.zeroPrefixRoundTripTime>0&&(y[36]=I.zeroPrefixRoundTripTime);
I.lastQueryBuildTime>0&&(y[18]=I.lastQueryBuildTime-I.startTime);I.firstEditTime>0&&(y[4]=I.firstEditTime-I.startTime);I.lastEditTime>0&&(y[5]=I.lastEditTime-I.startTime);return y.join(".")};
mGR.prototype.normalize=function(I){return I.replaceAll(".","-")};
var HoL=[0,1,2,3,4,5,5,6,6,6,7,7,7,7,7,8,8,8,8,8];var GC=function(){var I=_.q.apply(this,arguments)||this;I.microphoneSpinnerActive=!1;I.noAnimations=!1;I.boundExitClick=function(){I.onExitButtonClick()};
I.speechOverlayClassName="";I.isLevelAnimating=!1;I.playCloseDialogAudioFeedback=!0;I.actionMap={"yt-speech-query-complete-action":"handleSpeechQueryCompleteAction"};return I};
_.R(GC,_.q);_.u=GC.prototype;_.u.configureRendererStamper=function(){return{"data.exitButton":{id:"exit-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundExitClick]]"}}}}}};
_.u.attached=function(){this.hostElement.setAttribute("dialog","true");this.manager=SPY()};
_.u.dataChanged=function(){this.logDialog()};
_.u.onPopupClosed=function(){if(this.manager){this.manager.reset();if(!this.playCloseDialogAudioFeedback){var I;(I=this.manager.audioPlayer)!=null&&(I.JSC$17596_audioEnabled=!1)}this.manager.stop();(I=this.manager.audioPlayer)!=null&&(I.JSC$17596_audioEnabled=!0);this.playCloseDialogAudioFeedback=!0}};
_.u.handleSpeechQueryCompleteAction=function(I){var C=I.navigationAction;C&&(I.trackingParams&&_.e2().graftServerVe(I.trackingParams,this.dialogVe,5),_.k3(this.hostElement,"yt-navigate",{endpoint:C,tempData:this.getNavigationParams(C),createScreenConfig:{parentLayer:5}}),this.playCloseDialogAudioFeedback=!1,this.closeDialog())};
_.u.onExitButtonClick=function(){this.closeDialog()};
_.u.onMicrophoneTap=function(){if(this.state==="listening"||this.state==="transcribing"){var I;if((I=this.manager)!=null){var C;(C=I.audioPlayer)==null||fG(C,"failure");I.setState("microphone-off");I.stop()}}else(I=this.manager)==null||I.start()};
_.u.transcriptionChanged=function(){var I,C;(((I=this.transcription)==null?0:I.low)||((C=this.transcription)==null?0:C.high))&&this.setState("transcribing",this.transcription)};
_.u.stateChanged=function(){this.setState(this.state,this.transcription)};
_.u.logDialog=function(){var I;(I=this.data)!=null&&I.trackingParams&&(I=_.e2(),_.s7(I,22678,void 0,{layer:5,parentLayer:0}),this.dialogVe=I.graftServerVe(this.data.trackingParams,void 0,5))};
_.u.getNavigationParams=function(I){var C={};if(_.V("web_yt_searchbox")){var y=BPL();y.inputMethodsTracker.add(6);y=UGL(y,15);C.gs_l=y;var k;C.oq=((k=_.l(I,_.ig))==null?void 0:k.query)||""}else if(I=window.ytvoicesearchloggingparams){if(I=I())C.oq=I.oq,C.gs_l=I.gs_l}else _.xS(Error("ll"));return C};
_.u.closeDialog=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-voice-search-dialog-renderer"])};
_.u.setState=function(I,C){if(this.data){var y=this.data,k={};switch(I){case "listening":k={headerText:y.placeholderHeader,microphoneState:"listening",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "timeout":k={headerText:y.promptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,microphoneAriaLabel:y.promptMicrophoneLabel};break;case "microphone-off":k={headerText:y.microphoneOffPromptHeader,microphoneState:"try-again",microphoneLabel:y.promptMicrophoneLabel,
microphoneAriaLabel:y.promptMicrophoneLabel};break;case "transcribing":(C==null?0:C.low)||(C==null?0:C.high)?k={transcriptionLow:C==null?void 0:C.low,transcriptionHigh:C==null?void 0:C.high,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel}:k={headerText:y.placeholderHeader,microphoneState:"speaking",microphoneAriaLabel:y.microphoneButtonAriaLabel};break;case "processing":k={headerText:y.loadingHeader,microphoneState:"processing",microphoneAriaLabel:y.microphoneButtonAriaLabel};
break;case "offline":k={headerText:y.connectionErrorHeader,microphoneState:"try-again",microphoneLabel:y.connectionErrorMicrophoneLabel,microphoneAriaLabel:y.connectionErrorMicrophoneLabel};break;case "permission":k={headerText:y.permissionsHeader,bodyLine1:y.permissionsSubtext,microphoneState:"try-again",microphoneAriaLabel:y.permissionsSubtext};break;case "permission-denied":k={headerText:y.disabledHeader,bodyLine1:y.disabledSubtext,microphoneState:"try-again",microphoneAriaLabel:y.disabledSubtext}}k.className=
I;this.speechOverlayState=k;this.setClass(this.speechOverlayState.className);this.setMicrophoneState(this.speechOverlayState.microphoneState)}};
_.u.setMicrophoneState=function(I){var C=this.isLevelAnimating;this.isLevelAnimating=I==="speaking";!C&&this.isLevelAnimating&&this.runLevelAnimation();this.microphoneSpinnerActive=I==="processing"&&!this.noAnimations};
_.u.setClass=function(I){this.speechOverlayClassName&&_.a_(this.hostElement,this.speechOverlayClassName,!1);I&&(this.speechOverlayClassName=I,_.a_(this.hostElement,I,!0))};
_.u.runLevelAnimation=function(){var I=this;if(!this.noAnimations&&this.level)if(this.isLevelAnimating){var C=1+Math.random()*.75,y=Math.round(110+Math.random()*10);this.level.style.setProperty("transition","transform "+y/1E3+"s ease-in-out");this.level.style.setProperty("transform","scale("+C+")");_.b$.addJob(function(){I.runLevelAnimation()},3,y)}else this.level.style.removeProperty("opacity"),this.level.style.removeProperty("transition"),this.level.style.removeProperty("transform")};
GC.prototype.stateChanged=GC.prototype.stateChanged;GC.prototype.transcriptionChanged=GC.prototype.transcriptionChanged;GC.prototype.onPopupClosed=GC.prototype.onPopupClosed;GC.prototype.dataChanged=GC.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],GC.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],GC.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],GC.prototype,"rendererStamperBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],GC.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],GC.prototype,"eventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],GC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],GC.prototype,"speechOverlayState",void 0);
_.E([_.d(),_.h("design:type",Object)],GC.prototype,"microphoneSpinnerActive",void 0);_.E([_.d({type:_.V("kevlar_property_type_migration_killswitch")?Boolean:void 0,reflectToAttribute:!0}),_.h("design:type",Object)],GC.prototype,"noAnimations",void 0);_.E([_.d({selector:function(I){var C;return(C=I.voiceSearch)==null?void 0:C.transcription}}),
_.h("design:type",Object)],GC.prototype,"transcription",void 0);_.E([_.d({selector:function(I){var C;return(C=I.voiceSearch)==null?void 0:C.overlay}}),
_.h("design:type",String)],GC.prototype,"state",void 0);_.E([_.d(),_.h("design:type",Object)],GC.prototype,"boundExitClick",void 0);_.E([_.z$("#microphone-levels"),_.h("design:type",HTMLElement)],GC.prototype,"level",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GC.prototype,"dataChanged",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GC.prototype,"onPopupClosed",null);
_.E([_.rW("transcription"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GC.prototype,"transcriptionChanged",null);_.E([_.rW("state"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],GC.prototype,"stateChanged",null);GC=_.E([_.m({disableElementRegistration:!0,is:"ytd-voice-search-dialog-renderer"})],GC);
_.Z(GC,"ytd-voice-search-dialog-renderer",function(){if(lwR!==void 0)return lwR;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return lwR=I},{mode:1});var tvP;var f3=function(){var I=_.q.apply(this,arguments)||this;I.isOverlay=!1;I.hidden=!1;return I};
_.R(f3,_.q);_.u=f3.prototype;_.u.onPopupClosed=function(){this.toggleIconState(!1)};
_.u.computeIcon=function(){var I,C,y;return(C=_.l((I=this.data)==null?void 0:I.icon,iZj))==null?void 0:(y=C.icon)==null?void 0:y.iconType};
_.u.computeIconBadgeShape=function(){var I;return{iconBadgeType:"cart",iconBadgeText:(I=this.iconBadgeEntity)==null?void 0:I.badgeText,iconBadgeStyle:this.isOverlay?"overlay":"mono"}};
_.u.onClick=function(){var I;(I=this.data)!=null&&I.onClick&&(this.toggleIconState(!0),this.ytComponentBehavior.resolveCommand(this.data.onClick))};
_.u.computeHidden=function(I){return!I};
_.u.toggleIconState=function(I){this.iconButton&&(this.iconButton.pressed=I)};
f3.prototype.onPopupClosed=f3.prototype.onPopupClosed;_.E([_.g(_.lZ),_.h("design:type",Object)],f3.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],f3.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],f3.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],f3.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],f3.prototype,"isOverlay",void 0);
_.E([_.d({computed:"computeHidden(iconBadgeEntity.isVisible)",reflectToAttribute:!0}),_.h("design:type",Object)],f3.prototype,"hidden",void 0);_.E([_.d({selectorArgs:["data.iconBadgeEntityKey"],selector:function(I,C){return _.cg(I.entities,"iconBadgeEntity",C)}}),
_.h("design:type",Object)],f3.prototype,"iconBadgeEntity",void 0);_.E([_.z$("yt-icon-button"),_.h("design:type",HTMLButtonElement)],f3.prototype,"iconButton",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],f3.prototype,"onPopupClosed",null);f3=_.E([_.m({disableElementRegistration:!0,is:"ytd-icon-badge-topbar-button-renderer"})],f3);
_.Z(f3,"ytd-icon-badge-topbar-button-renderer",function(){if(tvP!==void 0)return tvP;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return tvP=I},{mode:1});var JDB;var Sq=function(){var I=_.q.apply(this,arguments)||this;I.premiumOptions=[];I.darkerDarkTheme=_.V("web_darker_dark_theme");return I};
_.R(Sq,_.q);Sq.prototype.configureRendererStamper=function(){return{premiumOptions:{id:"premium-options",mapping:{settingsRadioOptionRenderer:{component:"ytd-settings-radio-option-renderer",noInjection:!0}}}}};
_.H1.Object.defineProperties(Sq.prototype,{hasPremiumOptions:{configurable:!0,enumerable:!0,get:function(){return!!this.premiumOptions}}});
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Sq.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Sq.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Array)],Sq.prototype,"premiumOptions",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Sq.prototype,"darkerDarkTheme",void 0);_.E([_.v("premiumOptions"),_.h("design:type",Object),_.h("design:paramtypes",[])],Sq.prototype,"hasPremiumOptions",null);
Sq=_.E([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-content"})],Sq);
_.Z(Sq,"ytd-offline-promo-content",function(){if(JDB!==void 0)return JDB;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-offline-promo-content--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-formatted-string id="subtitle" text="[[data.subtitle]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n<div id="premium-options" hidden="[[!hasPremiumOptions]]" class="style-scope ytd-offline-promo-content"></div>\n<yt-formatted-string id="description" hidden="[[!hasPremiumOptions]]" text="[[data.description]]" class="style-scope ytd-offline-promo-content"></yt-formatted-string>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return JDB=I},{mode:1});var OoL;var K3=function(){var I=_.q.apply(this,arguments)||this;I.premiumOptions=[];return I};
_.R(K3,_.q);K3.prototype.dataChanged=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");var I;this.premiumOptions=XgR((I=this.data)==null?void 0:I.formats)};
K3.prototype.onClickSubmit=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-offline-promo-renderer"]);var I;(I=_.hU())==null||I.pause()};
K3.prototype.attached=function(){this.JSC$18327_scroller&&(this.JSC$18327_scroller.dialogElement=this.hostElement.parentNode)};
_.H1.Object.defineProperties(K3.prototype,{showIcon:{configurable:!0,enumerable:!0,get:function(){return this.headersIcon}}});
K3.prototype.dataChanged=K3.prototype.dataChanged;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],K3.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],K3.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],K3.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],K3.prototype,"data",void 0);
_.E([_.d({computed:"computeIcon_(data.headersIcon)",value:""}),_.h("design:type",String)],K3.prototype,"headersIcon",void 0);_.E([_.d(),_.h("design:type",Array)],K3.prototype,"premiumOptions",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],K3.prototype,"JSC$18327_scroller",void 0);_.E([_.v("headersIcon"),_.h("design:type",Object),_.h("design:paramtypes",[])],K3.prototype,"showIcon",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],K3.prototype,"dataChanged",null);K3=_.E([_.m({disableElementRegistration:!0,is:"ytd-offline-promo-renderer"})],K3);
_.Z(K3,"ytd-offline-promo-renderer",function(){if(OoL!==void 0)return OoL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return OoL=I},{mode:1});var awL;var AO=function(){var I=_.q.apply(this,arguments)||this;I.playbackPauseInterval=NaN;I.isLoading=!1;I.hasError=!1;I.dialogClass="";I.youtubeLabel=_.PQ("LOGO_ALT_LABEL",{},"YouTube Home");I.logoName="yt-logos-ext:yt-logo-updated";I.actionMap={"yt-save-consent-action":"handleSaveConsent","yt-disable-personalization-action":"handleDisablePersonalization"};return I};
_.R(AO,_.q);_.u=AO.prototype;_.u.onDataChange=function(){var I;if(this.showEOMV1Text=!((I=this.data)==null||!I.eomV1Text))this.dialogClass="eom-v1-dialog"};
_.u.attached=function(){this.pausePlayer()};
_.u.detached=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN)};
_.u.handleLangSelect=function(I){this.langSelect.style.display="none";this.ytComponentBehavior.resolveCommand(this.data.languageList.dropdownRenderer.entries[I.target.selectedIndex].dropdownItemRenderer.onSelectCommand)};
_.u.showLangPicker=function(){this.langSelect.style.display=this.langSelect.style.display&&this.langSelect.style.display!=="none"?"none":"block"};
_.u.handleSaveConsent=function(I){var C=this;this.showLoadingSpinner();this.showLoadingSpinner();czj(_.l(I,wVR)).catch(function(y){_.SN(new _.ph("Something went wrong when save consent "+(y.message?y.message:y)+"."));C.hideLoadingSpinner();C.showErrorMessage()})};
_.u.handleDisablePersonalization=function(I){var C=this;this.showLoadingSpinner();e1L(_.l(I,iVK)).then(function(){C.dialog.close();C.resumePlayer()}).catch(function(y){_.SN(new _.ph("Something went wrong when disable personalization "+(y.message?y.message:y)+"."));
C.hideLoadingSpinner();C.showErrorMessage()})};
_.u.showLoadingSpinner=function(){var I=this;this.showSpinnerJobId=_.b$.addLowPriorityJob(function(){I.isLoading=!0},500)};
_.u.hideLoadingSpinner=function(){this.isLoading=!1;this.showSpinnerJobId!==void 0&&(_.b$.cancelJob(this.showSpinnerJobId),this.showSpinnerJobId=void 0)};
_.u.showErrorMessage=function(){var I=this;this.hasError=!0;_.b$.addLowPriorityJob(function(){I.hasError=!1},2E3)};
_.u.pausePlayer=function(){this.playbackPauseInterval||(this.playbackPauseInterval=_.uX(function(){try{var I=_.hU();I&&I.pause()}catch(C){}},100))};
_.u.resumePlayer=function(){this.playbackPauseInterval&&(window.clearInterval(this.playbackPauseInterval),this.playbackPauseInterval=NaN);try{var I=_.hU();I&&I.play()}catch(C){}};
_.H1.Object.defineProperties(AO.prototype,{eomEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.eomV1Text)return[];I=[];for(var C=["SHIELD","WARNING","BAR_CHART"],y=this.data.eomV1Text.essentialCookieMsg.items,k=0;k<C.length&&k<y.length;k++)I.push({icon:C[k],text:y[k]});return I}},
eomNonEssentialCookieMsgItems:{configurable:!0,enumerable:!0,get:function(){var I;if((I=this.data)==null||!I.eomV1Text)return[];I=[];for(var C=["TRENDING_UP","BAR_CHART","AUTO_AWESOME","PURCHASES"],y=this.data.eomV1Text.nonEssentialCookieMsg.items,k=0;k<C.length&&k<y.length;k++)I.push({icon:C[k],text:y[k]});return I}}});
AO.prototype.onDataChange=AO.prototype.onDataChange;_.E([_.d(),_.h("design:type",Object)],AO.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],AO.prototype,"showEOMV1Text",void 0);_.E([_.d(),_.h("design:type",Object)],AO.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Object)],AO.prototype,"hasError",void 0);_.E([_.d(),_.h("design:type",Number)],AO.prototype,"showSpinnerJobId",void 0);_.E([_.d(),_.h("design:type",Object)],AO.prototype,"dialogClass",void 0);
_.E([_.z$("#dialog"),_.h("design:type",Object)],AO.prototype,"dialog",void 0);_.E([_.z$("#cb-header"),_.h("design:type",HTMLElement)],AO.prototype,"header",void 0);_.E([_.z$("#lang-select"),_.h("design:type",HTMLElement)],AO.prototype,"langSelect",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],AO.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],AO.prototype,"ytComponentBehavior",void 0);
_.E([_.d(),_.h("design:type",String)],AO.prototype,"youtubeLabel",void 0);_.E([_.d(),_.h("design:type",Object)],AO.prototype,"logoName",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],AO.prototype,"onDataChange",null);_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],AO.prototype,"eomEssentialCookieMsgItems",null);
_.E([_.v("data"),_.h("design:type",Array),_.h("design:paramtypes",[])],AO.prototype,"eomNonEssentialCookieMsgItems",null);AO=_.E([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-lightbox"})],AO);
_.Z(AO,"ytd-consent-bump-v2-lightbox",function(){if(awL!==void 0)return awL;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return awL=I},{mode:1});var MvL;var gv=function(){return _.q.apply(this,arguments)||this};
_.R(gv,_.q);gv.prototype.ready=function(){if(!_.PN()||$3j)var I=!0;else $3j=!0,I=!1;I||(I=document.querySelector("ytd-app"),I||(I=document.body),this.internalLightBox=_.f(I).appendChild(this.lightBox),this.internalLightBox.dialog.open())};
_.E([_.d(),_.h("design:type",Object)],gv.prototype,"data",void 0);_.E([_.z$("#lightbox"),_.h("design:type",Object)],gv.prototype,"lightBox",void 0);gv=_.E([_.m({disableElementRegistration:!0,is:"ytd-consent-bump-v2-renderer"})],gv);
_.Z(gv,"ytd-consent-bump-v2-renderer",function(){if(MvL!==void 0)return MvL;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return MvL=I},{mode:1});var I1P;var C9j;var sOY;var vt=function(){var I=_.q.apply(this,arguments)||this;I.ephemeralActionsEnabled=_.V("web_ephemeral_actions");return I};
_.R(vt,_.q);_.u=vt.prototype;_.u.toastOpenedChanged=function(){this.toastManager&&this.hasOpened&&this.toast&&!this.toast.opened&&this.toastType!==1&&ZvR(this.toastManager,this.toastType)};
_.u.open=function(I){this.toast&&(this.ephemeralAction&&_.N().resolve(_.yb).enqueue(this.ephemeralAction),this.hasOpened=!0,this.toastManager?(this.toastType=I!=null?I:0,this.toastManager.enqueue(this.toast,I)):this.toast.open())};
_.u.close=function(I){var C;(C=this.toast)==null||C.close();this.toastManager&&I===1&&ZvR(this.toastManager,I)};
_.u.refit=function(){var I;(I=this.toast)==null||I.refit()};
_.u.tapClose=function(){if(!this.useCloseButton||this.closeToastOnActionButtonClick){var I;(I=this.toast)==null||I.close()}};
_.u.setVerticalOffset=function(I){this.toast&&(this.toast.verticalOffset=I,this.toast.fit())};
_.u.computeButtonClass_=function(I){return I?"toast-button":""};
_.u.computeText_=function(I){return _.hS(I)};
_.u.toastOpenedChangedForBinding=function(){this.hostElement.dispatchEvent(new _.Gd("toast-opened-changed",this.toastOpened))};
_.u.updateToastOpenedFromBinding=function(I){this.toastOpened=I.detail.value};
_.H1.Object.defineProperties(vt.prototype,{command:{configurable:!0,enumerable:!0,get:function(){var I,C,y=(I=this.data)==null?void 0:(C=I.actionButton)==null?void 0:C.buttonRenderer;return(y==null?void 0:y.command)||(y==null?void 0:y.serviceEndpoint)||(y==null?void 0:y.navigationEndpoint)}},
ephemeralAction:{configurable:!0,enumerable:!0,get:function(){if(this.ephemeralActionsEnabled&&this.labelText&&this.command&&this.duration)return{label:this.labelText,command:this.command,durationMs:this.duration}}},
hasEphemeralAction:{configurable:!0,enumerable:!0,get:function(){return!!this.ephemeralAction}},
labelText:{configurable:!0,enumerable:!0,get:function(){var I=[],C;((C=this.data)==null?0:C.responseText)&&I.push(_.hS(this.data.responseText));var y;((y=this.data)==null?0:y.subText)&&I.push(_.hS(this.data.subText));var k,F;if((k=this.data)==null?0:(F=k.actionButton)==null?0:F.buttonRenderer){var z,c;I.push(((z=this.data.actionButton.buttonRenderer.accessibilityData)==null?void 0:(c=z.accessibilityData)==null?void 0:c.label)||_.hS(this.data.actionButton.buttonRenderer.text))}return I.filter(function(r){return r}).join(". ")}},
opened:{configurable:!0,enumerable:!0,get:function(){var I,C;return(C=(I=this.toast)==null?void 0:I.opened)!=null?C:!1}}});
vt.prototype.toastOpenedChangedForBinding=vt.prototype.toastOpenedChangedForBinding;vt.prototype.toastOpenedChanged=vt.prototype.toastOpenedChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],vt.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],vt.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],vt.prototype,"duration",void 0);
_.E([_.d(),_.h("design:type",Number)],vt.prototype,"toastType",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],vt.prototype,"useCloseButton",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],vt.prototype,"closeToastOnActionButtonClick",void 0);_.E([_.d({value:function(){return _.PQ("SBOX_INAPPROPRIATE_CANCEL")}}),
_.h("design:type",String)],vt.prototype,"closeButtonAriaLabel",void 0);_.E([_.d(),_.h("design:type",Boolean)],vt.prototype,"toastOpened",void 0);_.E([_.d(),_.h("design:type",Boolean)],vt.prototype,"hasOpened",void 0);_.E([_.d(),_.h("design:type",Object)],vt.prototype,"ephemeralActionsEnabled",void 0);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"command",null);
_.E([_.v("ephemeralActionsEnabled","labelText","command","duration"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"ephemeralAction",null);_.E([_.v("ephemeralAction"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vt.prototype,"hasEphemeralAction",null);_.E([_.z$("#toast"),_.h("design:type",Object)],vt.prototype,"toast",void 0);_.E([_.d({value:function(){return{style:"call-to-action-inverse"}}}),
_.h("design:type",Object)],vt.prototype,"buttonOverrides",void 0);_.E([_.d({value:{style:"mono-inverse"}}),_.h("design:type",Object)],vt.prototype,"closeButtonOverrides",void 0);_.E([_.d({value:function(){return _.N().resolve(_.aU(_.FPR))}}),
_.h("design:type",Object)],vt.prototype,"toastManager",void 0);_.E([_.v("data.responseText","data.subText","data.actionButton"),_.h("design:type",Object),_.h("design:paramtypes",[])],vt.prototype,"labelText",null);_.E([_.FI("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vt.prototype,"toastOpenedChanged",null);
_.E([_.FI("toastOpened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vt.prototype,"toastOpenedChangedForBinding",null);vt=_.E([_.lT({is:"yt-notification-action-renderer",disableElementRegistration:!0})],vt);
_.Z(vt,"yt-notification-action-renderer",function(){if(sOY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;C9j===void 0&&(C9j=document.createElement("template"));var k=C9j;y.call(C,k.content.cloneNode(!0),I.content.firstChild);sOY=I}I=sOY;return I},{mode:2});var Wt=function(){var I=_.q.apply(this,arguments)||this;I.duration=4E3;I.downloadingCount=0;I.downloadedCount=0;I.downloadingOnlySmartDownloads=!1;I.sessionTotalDownloads=0;I.sessionDownloaded=0;I.previousSessionsDownloaded=0;I.totalDownloadPercentage=0;I.currentDownloadProgress=0;I.currentDownloadPercentage=0;I.isLeaderTab=!0;I.isFullScreen=!1;I.actionMap={"yt-fullscreen-change-action":"handleFullscreenChange"};I.boundBeforeUnload=function(C){I.isLeaderTab&&I.downloadingCount>0&&(C.preventDefault(),
C.returnValue=!0)};
return I};
_.R(Wt,_.q);_.u=Wt.prototype;
_.u.open=function(){this.updateDownloadState();if(this.data){var I=this.sessionDownloaded+1,C=this.sessionTotalDownloads>1?_.PQ("VIDEOS_DOWNLOADING_RATIO",{downloaded:I.toString(),total:this.sessionTotalDownloads.toString()},"Downloading... "+I+"/"+this.sessionTotalDownloads):_.PQ("DOWNLOADING",void 0,"Downloading")+"...";this.downloadingOnlySmartDownloads&&(C=this.sessionTotalDownloads>1?_.PQ("SMART_DOWNLOADS_UPDATING_RATIO",{downloaded:I.toString(),total:this.sessionTotalDownloads.toString()},"Updating Smart downloads... "+
I+"/"+this.sessionTotalDownloads):_.PQ("SMART_DOWNLOADS_UPDATING",void 0,"`Updating Smart downloads..."));I=this.isLeaderTab?_.PQ("KEEP_OPEN",{},"Keep window open to continue"):"";if(_.hS(this.data.responseText)!==C||_.hS(this.data.subText)!==I)this.set("data.responseText",_.Ee(C)),this.set("data.subText",_.Ee(I)),this.notificationActionRenderer.refit()}this.notificationActionRenderer.open(1);window.addEventListener("beforeunload",this.boundBeforeUnload)};
_.u.close=function(){this.previousSessionsDownloaded=this.sessionDownloaded=this.sessionTotalDownloads=0;this.notificationActionRenderer.hasOpened&&this.notificationActionRenderer.close(1);window.removeEventListener("beforeunload",this.boundBeforeUnload)};
_.u.updatePopup=function(){!this.data||this.isFullScreen||this.downloadingCount===0?this.close():this.open()};
_.u.updateCurrentDownloadProgress=function(){this.currentDownloadPercentage=Math.floor(this.currentDownloadProgress*100)};
_.u.updateDownloadState=function(){this.previousSessionsDownloaded===0&&(this.previousSessionsDownloaded=this.downloadedCount);var I=this.downloadedCount-this.previousSessionsDownloaded;I<this.sessionDownloaded&&(this.previousSessionsDownloaded-=this.sessionDownloaded-I);this.sessionDownloaded=this.downloadedCount-this.previousSessionsDownloaded;this.sessionTotalDownloads=this.downloadingCount+this.sessionDownloaded};
_.u.handleFullscreenChange=function(I){(this.isFullScreen=I)||this.updatePopup()};
Wt.prototype.updateCurrentDownloadProgress=Wt.prototype.updateCurrentDownloadProgress;Wt.prototype.updatePopup=Wt.prototype.updatePopup;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Wt.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],Wt.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],Wt.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Wt.prototype,"actionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"duration",void 0);_.E([_.d({selector:function(I){return _.Z6W(I.entities).length}}),
_.h("design:type",Object)],Wt.prototype,"downloadingCount",void 0);_.E([_.d({selector:QeK}),_.h("design:type",Object)],Wt.prototype,"downloadedCount",void 0);_.E([_.d({selector:function(I){var C=_.Z6W(I.entities);return pFP(I.entities,C)}}),
_.h("design:type",Object)],Wt.prototype,"downloadingOnlySmartDownloads",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"sessionTotalDownloads",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"sessionDownloaded",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"previousSessionsDownloaded",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"totalDownloadPercentage",void 0);
_.E([_.d({selector:function(I){var C;I=(C=_.Z6W(I.entities))!=null?C:[];return I.length>0?_.fQO(I.slice(-1)):0}}),
_.h("design:type",Object)],Wt.prototype,"currentDownloadProgress",void 0);_.E([_.d(),_.h("design:type",Object)],Wt.prototype,"currentDownloadPercentage",void 0);_.E([_.d({selector:_.j$K}),_.h("design:type",Object)],Wt.prototype,"isLeaderTab",void 0);_.E([_.z$("yt-notification-action-renderer"),_.h("design:type",Object)],Wt.prototype,"notificationActionRenderer",void 0);
_.E([_.rW("downloadingCount","downloadedCount","downloadingOnlySmartDownloads","isLeaderTab"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wt.prototype,"updatePopup",null);_.E([_.rW("currentDownloadProgress"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Wt.prototype,"updateCurrentDownloadProgress",null);Wt=_.E([_.m({disableElementRegistration:!0,is:"ytd-video-download-toast-renderer"})],Wt);
_.Z(Wt,"ytd-video-download-toast-renderer",function(){if(I1P!==void 0)return I1P;var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return I1P=I},{mode:1});var oOj;var yCR;var dv=function(){return _.q.apply(this,arguments)||this};
_.R(dv,_.q);dv.prototype.computeIsRedLogo=function(I,C){!I&&C&&(I=C);return I==="YOUTUBE_RED_LOGO"||I==="YOUTUBE_PREMIUM_LOGO"};
dv.prototype.computeLogoName=function(I){I=this.componentBehavior.computeIcon_(I);return I===""?"yt-logos-ext:yt-logo-updated":I};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],dv.prototype,"componentBehavior",void 0);_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(data.iconType, logoType)"}),_.h("design:type",Boolean)],dv.prototype,"isRedLogo",void 0);_.E([_.d({computed:"computeLogoName(data)"}),_.h("design:type",String)],dv.prototype,"logoName",void 0);_.E([_.d({value:{}}),_.h("design:type",Object)],dv.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],dv.prototype,"logoType",void 0);dv=_.E([_.m({disableElementRegistration:!0,is:"ytd-logo"})],dv);
_.Z(dv,"ytd-logo",function(){if(yCR!==void 0)return yCR;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return yCR=I},{mode:_.Ij("kevlar_poly_si_batch_j074")?1:2});var xE=function(){var I=_.q.apply(this,arguments)||this;I.animationRef={};return I};
_.R(xE,_.q);_.u=xE.prototype;_.u.attached=function(){document.addEventListener("yt-navigate-finish",_.sb(this,this.logYoodle))};
_.u.detached=function(){document.removeEventListener("yt-navigate-finish",_.sb(this,this.logYoodle))};
_.u.logYoodle=function(){var I,C;if((I=this.data)==null?0:(C=I.loggingDirectives)==null?0:C.trackingParams)this.ytRendererBehavior.markDirty(),_.e2().graftServerVe(this.data.loggingDirectives.trackingParams)};
_.u.computeHideImg=function(I,C){return!!I||!!C};
_.u.computeHideYtdLogo=function(I,C){return!I||!!C};
_.u.computeHideLottie=function(I){return!I};
_.u.computeIsRedLogo=function(I){return I==="YOUTUBE_RED_LOGO"||I==="YOUTUBE_PREMIUM_LOGO"};
_.u.renderLogoEntity=function(){var I=this.getThumbnailUrl(this.useDarkThemeYoodle,this.data),C=this.getAnimatedThumbnailUrl(this.useDarkThemeYoodle,this.data),y=this.getLogoTitleText(this.data),k=this.getLottieUrl(this.useDarkThemeYoodle,this.data);this.url!==I&&(this.url=I);this.animatedUrl!==C&&(this.animatedUrl=C);this.logoTitleText!==y&&(this.logoTitleText=y);this.lottieUrl!==k&&(this.lottieUrl=k,this.lottiePlayerProps=this.computeLottiePlayerProps(k))};
_.u.getSanitizedThumbnail=function(I){return I&&I.thumbnails?_.yyK(I.thumbnails,122)||"":""};
_.u.getThumbnailUrl=function(I,C){if(!C)return"";var y,k;I=I?(y=C.darkThemeLogo)==null?void 0:y.thumbnail:(k=C.lightThemeLogo)==null?void 0:k.thumbnail;return this.getSanitizedThumbnail(I)};
_.u.getAnimatedThumbnailUrl=function(I,C){return C?this.getSanitizedThumbnail(I?C.darkThemeAnimatedLogo:C.lightThemeAnimatedLogo):""};
_.u.getLogoTitleText=function(I){if(I)return _.hS(I.tooltipText)};
_.u.computeLogoIcon=function(I,C){if(C){var y,k;return I?(y=C.darkThemeLogo)==null?void 0:y.icon:(k=C.lightThemeLogo)==null?void 0:k.icon}};
_.u.playAnimation=function(){this.hideLottie||this.animationRef.lottieEl&&this.animationRef.lottieEl.isPaused&&this.animationRef.lottieEl.goToAndPlay(0)};
_.u.getLottieUrl=function(I,C){var y,k,F,z;return I?C==null?void 0:(y=C.darkThemeLogo)==null?void 0:(k=y.lottieAnimation)==null?void 0:k.url:C==null?void 0:(F=C.lightThemeLogo)==null?void 0:(z=F.lottieAnimation)==null?void 0:z.url};
_.u.computeLottiePlayerProps=function(I){if(I){var C;if((C=this.animationRef)==null?0:C.lottieEl){var y;(y=this.animationRef)==null||y.lottieEl.destroy()}return{animationRef:this.animationRef,animationConfig:{name:"LOGO_ENTITY_ANIMATION_NAME",path:I,autoplay:!0,loop:!1,rendererSettings:{viewBoxOnly:!1}},listeners:{data_failed:this.onLottieError.bind(this),error:this.onLottieError.bind(this)}}}};
_.u.onLottieError=function(){this.data&&this.lottieUrl&&_.k3(this.hostElement,"yoodle-error")};
_.u.onImgError=function(){this.data&&!this.lottieUrl&&_.k3(this.hostElement,"yoodle-error")};
xE.prototype.playAnimation=xE.prototype.playAnimation;xE.prototype.renderLogoEntity=xE.prototype.renderLogoEntity;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],xE.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],xE.prototype,"data",void 0);_.E([_.d({value:!1,computed:"computeHideImg(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],xE.prototype,"hideImg",void 0);
_.E([_.d({value:!0,computed:"computeHideYtdLogo(logoIcon, lottiePlayerProps)"}),_.h("design:type",Boolean)],xE.prototype,"hideYtdLogo",void 0);_.E([_.d({value:!0,reflectToAttribute:!0,computed:"computeHideLottie(lottiePlayerProps)"}),_.h("design:type",Boolean)],xE.prototype,"hideLottie",void 0);_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeIsRedLogo(logoType)"}),_.h("design:type",Boolean)],xE.prototype,"isRedLogo",void 0);
_.E([_.d(),_.h("design:type",Boolean)],xE.prototype,"useDarkThemeYoodle",void 0);_.E([_.d(),_.h("design:type",String)],xE.prototype,"url",void 0);_.E([_.d(),_.h("design:type",String)],xE.prototype,"animatedUrl",void 0);_.E([_.d(),_.h("design:type",String)],xE.prototype,"logoTitleText",void 0);_.E([_.d({value:{},computed:"computeLogoIcon(useDarkThemeYoodle, data)"}),_.h("design:type",Object)],xE.prototype,"logoIcon",void 0);_.E([_.d(),_.h("design:type",Object)],xE.prototype,"logoType",void 0);
_.E([_.d(),_.h("design:type",String)],xE.prototype,"lottieUrl",void 0);_.E([_.d(),_.h("design:type",Object)],xE.prototype,"lottiePlayerProps",void 0);_.E([_.d(),_.h("design:type",Object)],xE.prototype,"animationRef",void 0);_.E([_.FI("data"),_.FI("useDarkThemeYoodle"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],xE.prototype,"renderLogoEntity",null);
_.E([_.km("click"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],xE.prototype,"playAnimation",null);xE=_.E([_.m({disableElementRegistration:!0,is:"ytd-yoodle-renderer"})],xE);
_.Z(xE,"ytd-yoodle-renderer",function(){if(oOj!==void 0)return oOj;var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return oOj=I},{mode:_.Ij("kevlar_poly_si_batch_j074")?1:2});var koy;var FDM;var q4=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-navigate-home-action":"onNavigateHomeAction"};return I};
_.R(q4,_.q);_.u=q4.prototype;_.u.onYoodleError=function(){_.V("kevlar_yoodle_handle_load_failure_killswitch")||(this.yoodleError=!0)};
_.u.computeLogoName=function(I){I=this.componentBehavior.computeIcon_(I);return I===""?"yt-logos-ext:yt-logo-updated":I};
_.u.computeTitle=function(I,C,y){return y&&(C==null?0:C.tooltipText)?_.hS(C.tooltipText):_.hS(I)};
_.u.computeAriaLabel=function(I,C,y){return y&&(C==null?0:C.tooltipText)?_.hS(I):""};
_.u.computeShowYoodle=function(I,C,y){return!I||!C&&!!y&&!_.Le.isEmpty(y)};
_.u.onNavigateHomeAction=function(){if(_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var I;(I=_.f(this.hostElement).querySelector(".yt-simple-endpoint"))==null||I.click()}};
_.u.computeLogoHref=function(I,C,y){var k;(y==null?0:y.onTapCommand)?k=this.componentBehavior.computeHref_(y.onTapCommand):I&&(k=this.componentBehavior.computeHref_(I));return k?k:C};
_.u.computeCommand=function(I,C){return(C==null?void 0:C.onTapCommand)||I};
_.u.getEndpointForm=function(){if(_.V("kevlar_topbar_disable_cache_only_home")){var I=_.N().resolve(_.VL),C=$UY(I.getState())||"";I=_.VMK(I.getState())||"";return{disableCache:C==="ytd-browse"&&I==="home"}}return{disableCache:!0}};
q4.prototype.onYoodleError=q4.prototype.onYoodleError;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],q4.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],q4.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],q4.prototype,"componentBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],q4.prototype,"ytdReduxBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],q4.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],q4.prototype,"countryCode",void 0);_.E([_.d({selectorArgs:["data.overrideEntityKey"],selector:function(I,C){return _.cg(I.entities,"logoEntity",C)}}),
_.h("design:type",Object)],q4.prototype,"logoEntity",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeShowYoodle(data, yoodleError, logoEntity)"}),_.h("design:type",Boolean)],q4.prototype,"showYoodle",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],q4.prototype,"yoodleError",void 0);_.E([_.d({computed:"computeTitle(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],q4.prototype,"titleText",void 0);
_.E([_.d({value:"",computed:"computeAriaLabel(data.tooltipText, logoEntity, showYoodle)"}),_.h("design:type",String)],q4.prototype,"ariaLabelText",void 0);_.E([_.d({value:"/"}),_.h("design:type",String)],q4.prototype,"defaultEndpointUrl",void 0);_.E([_.d({computed:"computeLogoHref(data.endpoint, defaultEndpointUrl, logoEntity)"}),_.h("design:type",String)],q4.prototype,"endpointUrl",void 0);
_.E([_.d({computed:"computeCommand(data.endpoint, logoEntity)"}),_.h("design:type",String)],q4.prototype,"command",void 0);_.E([_.d(),_.h("design:type",Object)],q4.prototype,"logoType",void 0);_.E([_.d({}),_.h("design:type",Boolean)],q4.prototype,"useDarkThemeYoodle",void 0);_.E([_.km("yoodle-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],q4.prototype,"onYoodleError",null);q4=_.E([_.m({disableElementRegistration:!0,is:"ytd-topbar-logo-renderer"})],q4);
_.Z(q4,"ytd-topbar-logo-renderer",function(){if(FDM!==void 0)return FDM;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return FDM=I},{mode:_.Ij("kevlar_poly_si_batch_j027")?1:2});var um8=0;var z2Y=_.WU.SEARCH_APPEND_LABEL,T2y=_.WU.SUGGESTION_NEW_VIDEOS_TEXT,cCL=_.WU.SUGGESTION_THUMBNAIL_LABEL,e2j=_.BO(function(I){function C(Ws){var i8,l8;return _.e(function(bj){if(bj.nextAddress==1)return i8=new Request(Ws),_.aM(bj,2),_.n(bj,fetch(i8,{credentials:"include"}),4);if(bj.nextAddress!=2)return Rw(!0),_.dC(bj,0);l8=_.sj(bj);_.SN(l8);_.oI(bj)})}
var y=I.isHighlighted;var k=I.suggestion;var F=I.onClickCallback;var z=I.onHoverUpdateCallback;var c=I.labels;var r=I.queryBuilderFunction;var w=I.onRemoveCallback;var L=I.suggestionIndex;var D=I.generateUniqueId;var p=I.highlightedId;var Q=I.useScrollMargin;var X=I.isKeyboardMode;var b=null,S=null,A=_.Es(),x=_.Es(),B=_.h3(function(Ws){Ws&&_.KI(237477,Ws,S,function(i8){S=i8})}),t=_.h3(function(Ws){Ws&&_.KI(237477,Ws,S,function(i8){S=i8})}),U=_.uk(function(Ws){if((Ws==null?void 0:Ws.button)===2)return Ws.preventDefault(),
!1;
var i8=_.Si();i8&&b&&_.h7(i8,b,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");var l8;F(Ws,k().text,k().index,k().entityMid,Ws==null?void 0:(l8=Ws.detail)==null?void 0:l8.wasSelectedByKeyboard);return!1}),yW=function(){return k().type===35},a=function(){return _.V("desktop_enable_single_suggestion_highlight")},cs=function(){return _.V("desktop_enable_entity_suggest")},XO=function(){return _.s8("desktop_suggestions_panel_row_height")||0},Rm=function(){var Ws;
return _.V("desktop_enable_new_video_metadata")&&((Ws=k())==null?void 0:Ws.hasNewVideo)===!0},$z=function(){return _.V("desktop_enable_visual_suggest")},hX=function(){return k().entitySubtitle},vs=function(){return a()?(y==null?void 0:y())||yf()&&!(X==null?0:X()):(y==null?void 0:y())||yf()},mY=function(){var Ws=_.Aq("SBOX_SETTINGS");
return yW()&&!(Ws==null?0:Ws.HIDE_REMOVE_LINK)},Bs=function(){return dG8(k())},n5,sH=!((n5=_.N().resolve(_.aU(_.AE)))==null||!n5()),Zt=function(){return yW()?"ARROW_TIME":"SEARCH"},Qd=function(){return c==null?void 0:c().SUGGESTION_DISMISS_LABEL},OF=function(){return c==null?void 0:c().SUGGESTION_DISMISSED_LABEL};
n5=_.T(_.c4(!1,void 0,"kHLOZe"));I=n5.next().value;var Rw=n5.next().value;n5=_.T(_.c4(!1,void 0,"SGF2sd"));var ku=n5.next().value,xK=n5.next().value,yf=ku,uK=_.uk(function(){r(x.value.innerText);return!1}),oL=_.uk(function(Ws){Ws.preventDefault();
return!1}),Uw=_.uk(function(Ws){var i8=k().text,l8=_.Aq("SBOX_SETTINGS"),bj="https://"+(l8.SEARCHBOX_HOST_OVERRIDE||"suggestqueries-clients6.youtube.com")+"/complete/deleteitems?client=youtube";
bj+="&delq="+encodeURIComponent(i8);(i8=l8==null?void 0:l8.PSUGGEST_TOKEN)&&(bj+="&tok="+i8);(l8=l8==null?void 0:l8.SESSION_INDEX)&&(bj+="&authuser="+l8);C(bj);Ws.preventDefault();(Ws=_.Si())&&S&&_.h7(Ws,S,"INTERACTION_LOGGING_GESTURE_TYPE_GENERIC_CLICK");w(L==null?void 0:L());return!1}),TR=_.uk(function(){if(a()&&(X==null?0:X()))return!1;
xK(!0);z(!0);return!1}),G0=_.uk(function(){xK(!1);
z(!1);return!1});
n5=_.T(_.c4("",void 0,"yaN19c"));var hc=n5.next().value,wS=n5.next().value;_.X2(function(){mY()&&wS(D==null?void 0:D(L==null?void 0:L()));A.value&&_.KI(12453,A.value,b,function(Ws){b=Ws})});
return _.P(_.Dx,{cond:I,then:function(){var Ws={};return _.P("div",{class:_.sZ("ytSuggestionComponentRemovedText",(Ws.ytSuggestionComponentLargerRemovedText=function(){return $z()},Ws)),
style:function(){return XO()>0?"height: "+XO()+"px;":""},
role:"button"},OF)},
else:function(){var Ws={},i8={};return _.P("div",{class:_.sZ("ytSuggestionComponentSuggestion",(Ws.ytSuggestionComponentSuggestionHover=function(){return!a()},Ws.ytSuggestionComponentHighlighted=vs,Ws.ytSuggestionComponentPersonalizedSuggestion=yW,Ws.ytSuggestionComponentMweb=!1,Ws.ytSuggestionComponentLargerSuggestion=function(){return Rm()||$z()},Ws.ytSuggestionComponentThumbnailSuggestion=function(){return $z()},Ws.ytSuggestionComponentRoundedSuggestion=function(){return _.V("desktop_enable_scrollable_suggestions_panel")&&
_.V("desktop_enable_suggestions_panel_padding")},Ws)),
style:function(){return XO()>0?"height: "+XO()+"px;":""},
role:"presentation","on:mousedown":U,"on:mouseover":TR,"on:mouseout":G0,el:A},_.P("div",{class:_.sZ("ytSuggestionComponentText",(i8.ytSuggestionComponentScrollMargin=Q,i8)),"aria-label":function(){return Rm()?k().text+" "+T2y:k().text},
id:function(){return D==null?void 0:D(L==null?void 0:L())},
"on:mousedown":U,role:"option"},_.P(_.Dx,{cond:function(){return k().type!==33},
then:function(){return _.P(_.ez,{icon:Zt,className:"ytSuggestionComponentIcon"})}}),_.P("div",{class:"ytSuggestionComponentLeftContainer"},_.P("span",{el:x,
role:"button",tabindex:0},_.P(_.pH,{each:Bs},function(l8){return l8.bold?_.P("span",{class:"ytSuggestionComponentBold"},l8.text):_.P("span",null,l8.text)})),_.P(_.Dx,{cond:function(){return cs()&&xGY(k())&&!!k().entitySubtitle},
then:function(){return _.P("div",{class:"ytSuggestionComponentEntitySubtitle"},hX)}}),_.P(_.Dx,{cond:function(){return Rm()},
then:function(){return _.P("div",{class:"ytSuggestionComponentNewVideoContainer"},_.P("div",{class:"ytSuggestionComponentNewVideoIcon"}),_.P("div",{class:"ytSuggestionComponentNewVideoText"},T2y))}}))),_.P("div",{class:"ytSuggestionComponentRightContainer"},_.P(_.Dx,{cond:function(){return $z()&&k().visualSuggestUrl!==void 0},
then:function(){var l8={};return _.P("div",{class:"ytSuggestionComponentThumbnailContainer"},_.P("img",{"aria-label":cCL,class:_.sZ("ytSuggestionComponentVisualSuggestThumbnail",(l8.ytSuggestionComponentCircularFrame=function(){return cs()&&xGY(k())&&k().subtypes.includes(790)},l8.ytSuggestionComponentEntitySuggestThumbnail=function(){return cs()&&xGY(k())},l8)),
src:function(){return k().visualSuggestUrl}}))}}),_.P(_.Vr,null,_.P(_.Qr,{when:function(){return $z()&&mY()}},function(){var l8={};
return _.P("button",{class:_.sZ("ytSuggestionComponentRemoveLinkClearButton",(l8.ytSuggestionComponentRemoveLinkClearButtonSelected=function(){return hc()&&hc()===(p==null?void 0:p())},l8.ytSuggestionComponentRemoveLinkClearButtonHidden=function(){return!vs()},l8)),
el:t,"on:mousedown":Uw,"aria-label":Qd,id:function(){return hc()}},_.P(_.ez,{icon:"DISMISSAL",
className:"ytSuggestionComponentClearButtonIcon"}))}),_.P(_.Qr,{when:function(){return!($z()&&k().visualSuggestUrl!==void 0)&&mY()}},function(){var l8={};
return _.P("a",{class:_.sZ("ytSuggestionComponentRemoveLink",(l8.ytSuggestionComponentRemoveLinkDark=sH,l8.ytSuggestionComponentRemoveLinkSelected=function(){return hc()&&hc()===(p==null?void 0:p())},l8)),
el:B,"on:mousedown":Uw,"aria-label":Qd,tabindex:0,role:"button",id:function(){return hc()}},Qd)}),_.P(_.Qr,{when:function(){return!1}},function(){return _.P("button",{class:"ytSuggestionComponentQueryBuilderButton",
"on:click":uK,"on:mousedown":oL,role:"button","aria-label":z2Y},_.P(_.ez,{icon:"ARROW_DIAGONAL",className:"ytSuggestionComponentQueryBuilderButtonIcon"}))}))))}})},"$f");var rCL=_.BO(function(){var I=_.uk(function(){BPL().inputMethodsTracker.add(3);var C,y=(C=_.Aq("SBOX_SETTINGS"))==null?void 0:C.REQUEST_LANGUAGE;if(y)return _.W$("//www.google.com/textinputassistant/14/"+y+"_tia.js"),!1});
return _.P("ytd-text-input-assistant",{class:"ytdTextInputAssistantHost"},_.P("button",{class:"ytdTextInputAssistantButton","on:click":I},_.P("img",{class:"ytdTextInputAssistantIcon",tia_field_name:"search_query",tia_disable_swap:"true",tia_property:"youtube",src:"//www.gstatic.com/inputtools/images/tia.png",alt:""})))},"ag");var icy=function(){this.cache=new Map},woy=function(I){for(var C=_.T(I.cache.entries()),y=C.next();!y.done;y=C.next()){var k=_.T(y.value);
y=k.next().value;k=k.next().value;k.suggestions.some(function(F){return F.type===35})&&I.cache.delete(y)}};var nOY=_.WU.SEARCH,P9B=_.WU.SEARCH_CLEAR_LABEL,LDR=new _.Jj("FAKE_SUGGEST_RESPONSE");_.B9(_.BO(function(I){function C(){Ws||(Ws=setTimeout(function(){l8()},1E3))}
function y(p5,Pm,L8){if(p5.trim()){wS=p5;_.KH("REFINEMENTS_TUPLE",void 0);G0=!0;var wR;Pm=UGL(yf,Pm);var z0=(wR=I.searchEndpoint)==null?void 0:wR.call(I);wR=OF.value.value;z0||(z0=qbL);var Pn;(Pn=_.l(z0.commandMetadata,_.It))!=null&&Pn.url||(Pn=Error("ml`"+JSON.stringify(z0)),_.GB(Pn),z0=qbL);Pn=_.Le.unsafeClone(z0);z0=_.gT(_.l(Pn.commandMetadata,_.It).url,"search_query",p5);_.v2(location.href,"sv")==="1"&&(_.l(Pn,_.ig).params="EgOAAgE%3D",z0=_.gT(z0,"sv","1"));_.l(Pn,_.ig)&&(_.l(Pn,_.ig).query=p5);
z0=z0.replace(/%20/g,"+");_.l(Pn.commandMetadata,_.It).url=z0;L8=_.V("desktop_enable_entity_suggest")?{entityMid:L8}:{};_.N().resolve(_.ID).resolveCommand(Pn,{form:{tempData:Object.assign({},{gs_l:Pm,oq:wR!=null?wR:p5},L8)}});l8();OF.value.value=p5;OF.value.blur();yf.reset()}}
function k(p5){return _.e(function(Pm){return Pm.return(new Promise(function(L8){var wR=new XMLHttpRequest;wR.open("GET",fwY(p5),!0);wR.withCredentials=!0;var z0=_.Aq("SBOX_SETTINGS");(z0==null?0:z0.SEND_VISITOR_DATA)&&wR.setRequestHeader("X-Goog-Visitor-Id",z0==null?void 0:z0.VISITOR_DATA);wR.onload=function(){L8(wR.responseText)};
wR.onerror=function(){_.SN(Error("nl"));L8(null)};
setTimeout(function(){wR.abort()},1E4);
wR.send(null)}))})}
function F(p5){var Pm,L8,wR,z0;return _.e(function(Pn){switch(Pn.nextAddress){case 1:return Pm={credentials:"include",headers:G7B()},window.AbortController&&(L8=new AbortController,setTimeout(function(){L8.abort("ytsbox-suggest-timeout")},1E4),Pm.signal=L8.signal),_.aM(Pn,2),_.n(Pn,fetch(fwY(p5),Pm),4);
case 4:wR=Pn.yieldResult.text();_.dC(Pn,3);break;case 2:return z0=_.sj(Pn),z0!=="ytsbox-abort-last"&&z0!=="ytsbox-suggest-timeout"&&_.SN(z0),Pn.return(null);case 3:return Pn.return(wR)}})}
function z(p5){var Pm,L8,wR;return _.e(function(z0){switch(z0.nextAddress){case 1:if(Pm=_.N().resolve(_.aU(LDR)))return z0.return(Pm);L8=Date.now();C();return _.V("yt_searchbox_xhr")?_.n(z0,k(p5),5):_.n(z0,F(p5),4);case 4:wR=z0.yieldResult;z0.jumpTo(3);break;case 5:wR=z0.yieldResult;case 3:if(wR){Ws&&(clearTimeout(Ws),Ws=null);var Pn=yf,jy=L8,K2=p5.query.length===0;jy=Date.now()-jy;K2?Pn.zeroPrefixRoundTripTime=jy:(Pn.JSC$18307_totalRoundTripTime+=jy,Pn.maxRoundTripTime=Math.max(Pn.maxRoundTripTime,
jy),K2=Math.floor(jy/100),K2>=HoL.length?++Pn.roundTripTimeHistogram[9]:++Pn.roundTripTimeHistogram[HoL[K2]])}return z0.return(wR)}})}
function c(p5){var Pm,L8,wR;return _.e(function(z0){if(z0.nextAddress==1)return(Pm=xK.cache.get(YpH(p5)))?z0.return(Pm):_.n(z0,z(p5),2);L8=z0.yieldResult;if(L8===null)return z0.return(null);wR=new qpL(L8);p5.query.length===0&&wR.suggestions.length===0||xK.cache.set(YpH(p5),wR);return z0.return(wR)})}
function r(p5){var Pm,L8;return _.e(function(wR){if(wR.nextAddress==1){hc=!1;var z0=wS;z0=_.zNI()==="search"?(_.v2(location.href,"search_query")||_.v2(location.href,"q"))===z0:!1;Pm=new boR(p5,z0?wS:null);return _.n(wR,c(Pm),2)}L8=wR.yieldResult;if(L8===null)return wR.return();Pm.query.length===0&&(yf.zeroPrefixSuggestionCount=L8.suggestions.length);if(Pm.id<=i8)return yf.outOfSyncResponseCount++,wR.return();if(document.activeElement!==OF.value)return wR.return();i8=Pm.id;var Pn=yf,jy=L8.rawResponse[2]||
{};Pn.experimentTriggeredBeforeFinal||(Pn.experimentTriggeredBeforeFinal=Pn.experimentTriggeredFinal);Pn.experimentTriggeredFinal=!!jy.e;yf.updateSuggestions(L8.suggestions);A(-1);n5([]);L8.suggestions!==X()&&kV(L8.suggestions.length);b(L8.suggestions);XO(L8.suggestions.length>0&&L8.suggestions[0].type===33);ku&&(ku.hidden=L8.suggestions.length===0,cs()?(ku.style.minWidth="",Pn=ku.style,jy=(z0=X()[0])==null?void 0:z0.ignoredPrefix,Pn.marginLeft=(jy?Math.min(jy.length*6,Rw.value.offsetWidth):0).toString()+
"px"):(ku.style.minWidth=Rw.value.offsetWidth+"px",ku.style.marginLeft="0"),yX());_.oI(wR)})}
function w(){if(!G0)return!1;var p5=_.Aq("REFINEMENTS_TUPLE");return p5?(p5=p5[1].map(function(Pm,L8){return new WQS([Pm,0,[71]],OF.value.value,L8)}),X()!==p5&&kV(p5.length),n5([]),b(p5),yf.updateSuggestions(p5),G0=!1,ku.hidden=p5.length===0,hc=p5.length>0,!0):!1}
function L(){var p5=OF.value.value;(typeof p5==="string"||p5 instanceof String)&&p5!==""?U(!0):U(!1)}
function D(){if(_.zNI()==="search"){var p5=window.location.href;try{var Pm=_.v2(p5,"search_query")||_.v2(p5,"q")||""}catch(L8){Pm=""}Pm&&(OF.value.value=Pm,U(!0))}}
var p=_.T(_.c4([],void 0,"kGFAjf")),Q=p.next().value;p=p.next().value;var X=Q,b=p;Q=_.T(_.c4(-1,void 0,"mLGL9e"));var S=Q.next().value,A=Q.next().value;Q=_.T(_.c4(-1,void 0,"u2rYdc"));var x=Q.next().value,B=Q.next().value;Q=_.T(_.c4(!1,void 0,"W9DFC"));var t=Q.next().value,U=Q.next().value;Q=_.T(_.c4(!1,void 0,"Ip4dNc"));var yW=Q.next().value,a=Q.next().value;p=_.T(_.c4(!1,void 0,"ZNKSQb"));Q=p.next().value;p=p.next().value;var cs=Q,XO=p;p=_.T(_.c4(!1,void 0,"JBrGLd"));Q=p.next().value;var Rm=p.next().value;
p=_.T(_.c4(!1,void 0,"P2pD6e"));var $z=p.next().value,hX=p.next().value;p=_.T(_.c4(1,void 0,"SjP20c"));var vs=p.next().value,mY=p.next().value;p=_.T(_.c4([],void 0,"h4dRaf"));var Bs=p.next().value,n5=p.next().value;p=_.T(_.c4(!1,void 0,"TUTzaf"));var sH=p.next().value,Zt=p.next().value;p=_.V("web_searchbox_animate_suggestions")&&"contentVisibility"in document.documentElement.style&&"interpolateSize"in document.documentElement.style;var Qd=_.Es(),OF=_.Es(),Rw=_.Es(),ku,xK=new icy,yf=BPL(),uK=_.N().resolve(_.aU(_.AE)),
oL=function(){var p5;return((p5=I.forceDarkMode)==null?void 0:p5.call(I))||!(uK==null||!uK())},Uw=function(){return _.V("desktop_enable_scrollable_suggestions_panel")},TR="i"+um8++,G0=!1,hc=!1,wS="",Ws=null,i8=-1,l8=function(){n5([]);
b([]);XO(!1);ku&&(ku.hidden=!0);Ws&&(clearTimeout(Ws),Ws=null);A(-1)},bj=function(p5,Pm){p5.preventDefault();
Zt(!0);ku&&(ku.hidden=!1);var L8=S();p5=X();var wR=Bs();Pm=bxL(Pm);L8+=Pm;for(L8>=p5.length?L8=-1:L8<-1&&(L8=p5.length-1);L8!==-1&&(wR.includes(L8)||L8>=p5.length||L8<0);)L8+=Pm,L8>=p5.length&&(L8=-1);A(L8);S()>=0&&(OF.value.value=X()[S()].text,B(0),L(),p5=S(),wR=x(),(wR=document.getElementById(c5[p5][wR]))&&Uw()&&(p5===X().length-1?ku.scrollTop=ku.scrollHeight:wR.scrollIntoView({block:"nearest",inline:"start"})))},K5=_.uk(function(p5){if(!(p5.relatedTarget instanceof Element&&p5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){a(!0);
var Pm;(Pm=I.focusCallback)==null||Pm.call(I,!0);w()||(hc?ku.hidden=!1:(_.k3(Qd.value,"yt-autonav-pause-focus",{}),r(p5.target.value)))}}),ZS=_.uk(function(p5){if(!(p5.relatedTarget instanceof Element&&p5.relatedTarget.className.includes("ytSuggestionComponentRemoveLinkClearButton"))){a(!1);
var Pm;(Pm=I.focusCallback)==null||Pm.call(I,!1);ku.scrollTop=0;ku.hidden=!0;_.k3(Qd.value,"yt-autonav-pause-blur",{})}}),RJ=function(p5){p5=bxL(p5);
var Pm;((Pm=c5[S()])==null?0:Pm[x()+p5])&&B(x()+p5)},yk=_.uk(function(p5){var Pm=p5.target;
switch(p5.keyCode){case 13:p5.preventDefault();var L8;if((L8=c5[S()])==null?0:L8[x()]){var wR;(wR=document.getElementById(c5[S()][x()]))==null||wR.dispatchEvent(new CustomEvent("mousedown",{detail:{wasSelectedByKeyboard:!0}}));break}p5=p5.shiftKey?4:3;L8=yf;wR=S();L8.selectedSuggestionIndex=wR;y(Pm.value,p5);break;case 27:ku&&(ku.hidden=!0);break;case 40:bj(p5,40);break;case 38:bj(p5,38);break;case 39:RJ(39);break;case 37:RJ(37);break;case 229:yf.inputMethodsTracker.add(4);break;default:yf.inputMethodsTracker.add(1),
EZY(yf)}return!1}),D8=_.uk(function(p5){r(p5.target.value);
L();Uw()&&ku&&(ku.scrollTop=0);return!1}),qL=_.uk(function(){yf.inputMethodsTracker.add(2);
EZY(yf);return!1});
_.X2(function(){if(ku){yf.reset();if(window.ResizeObserver){var p5=new ResizeObserver(function(){cs()||(ku.style.minWidth=Rw.value.offsetWidth+"px")});
p5.observe(Rw.value);(new ResizeObserver(function(){yX()})).observe(ku);
_.$4(function(){p5.disconnect()})}D();
window.addEventListener("yt-navigate-finish",D);window.addEventListener("yt-focus-searchbox",function(){OF.value.focus()});
var Pm;Rm((Pm=_.Aq("SBOX_SETTINGS"))==null?void 0:Pm.HAS_ON_SCREEN_KEYBOARD)}else _.GB(new _.ph("suggestionsEl was not set in onInit. Component may be broken."),"WARNING")});
var kB=_.uk(function(p5){p5.preventDefault();y(OF.value.value,12);return!1}),K1=_.uk(function(p5){p5.preventDefault();
var Pm,L8;(Pm=OF)==null||(L8=Pm.value)==null||L8.focus();var wR,z0;((wR=OF)==null?void 0:(z0=wR.value)==null?void 0:z0.value)!==""&&(OF.value.value="",OF.value.dispatchEvent(new Event("input")));return!1}),eX=_.uk(function(){var p5=RjB(OF.value.value,X().filter(function(Pm){return Pm.type!==35}).map(function(Pm){return{label:Pm.text}}));
_.Fe(Qd.value,"yt-open-popup-action",[{openPopupAction:p5},document.body]);return!1}),Tu=_.uk(function(){OF.value.focus();
return!1}),kb=function(p5,Pm,L8,wR,z0){yf.selectedSuggestionIndex=L8;
y(Pm,z0?3:1,wR)},wX=function(p5){OF.value.value=p5;
OF.value.dispatchEvent(new Event("input"));yf.inputMethodsTracker.add(5);EZY(yf,!0)},c5=[[]],xV=function(p5){var Pm="searchbox-suggestion"+_.YX(_.Gx);
c5[p5].push(Pm);return Pm},kV=function(p5){if(X()){c5=[[]];
for(var Pm=0;Pm<p5;Pm++)c5.push([])}},yX=function(){if(Uw()){var p5=ku,Pm=p5.scrollTop;
p5=p5.scrollHeight-p5.clientHeight;hX(Pm>=p5);Pm=Math.abs(p5-Pm);Pm<=40?mY(1-(40-Pm)/40):mY(1)}},M$=function(){return"opacity: "+vs()*100+"%"},p9=_.uk(function(){yX();
return!1}),SI=_.uk(function(){Zt(!1);
return!1}),xz,L5={},yY={},b7={},ry={};
return _.P("yt-searchbox",{class:_.sZ("ytSearchboxComponentHost",(L5.ytSearchboxComponentMweb=!1,L5.ytSearchboxComponentDesktop=!0,L5["yt-searchbox-filled-query"]=function(){return t()},L5["ytd-masthead"]=function(){return!yW()},L5.ytSearchboxComponentHostDark=oL,L5)),
role:"search",el:Qd,"client-ve-type":10349},_.P("div",{el:Rw,"on:click":Tu,class:_.sZ("ytSearchboxComponentInputBox",(yY.ytSearchboxComponentInputBoxDark=oL,yY.ytSearchboxComponentInputBoxHasFocus=yW,yY))},_.P("form",{action:"/results",class:"ytSearchboxComponentSearchForm","on:submit":kB},_.P(_.Dx,{cond:yW,then:function(){return _.P("div",{class:"ytSearchboxComponentInnerSearchIcon"},_.P(_.ez,{icon:"SEARCH"}))}}),_.P("input",{el:OF,
class:_.sZ("ytSearchboxComponentInput","yt-searchbox-input","title"),name:"search_query","aria-controls":TR,"aria-expanded":!((xz=ku)==null?0:xz.hidden),type:"text",autocomplete:"off",autocorrect:"off",spellcheck:!1,"on:blur":ZS,"on:focus":K5,"on:input":D8,"on:keydown":yk,"on:paste":qL,placeholder:I.placeholderText,"aria-activedescendant":function(){var p5;return(p5=c5[S()])==null?void 0:p5[x()]},
"aria-autocomplete":"list",role:"combobox"})),_.P(_.Dx,{cond:Q,then:function(){return _.P("div",{class:"ytSearchboxComponentYtdTextInputAssistantWrapper"},_.P(rCL,null))}}),_.P(_.Dx,{cond:t,
then:function(){return _.P("div",{class:"ytSearchboxComponentClearButtonWrapper"},_.P("button",{class:"ytSearchboxComponentClearButton","on:click":K1,"aria-label":I.clearButtonAriaLabel||P9B},_.P(_.ez,{icon:"DISMISSAL",className:"ytSearchboxComponentClearButtonIcon"}),_.P(_.nE,{model:{}})))}})),_.P("button",{class:_.sZ("ytSearchboxComponentSearchButton",(b7.ytSearchboxComponentSearchButtonDark=oL,b7)),
"on:click":kB,"aria-label":nOY,title:I.placeholderText},_.P(_.ez,{icon:"SEARCH"})),_.P(_.Dx,{cond:function(){if(x1B()&&_.V("mweb_voice_search")&&I.voiceSearchButton)return I.voiceSearchButton()},
then:function(p5){var Pm={};return _.P("div",{class:_.sZ("ytSearchboxComponentVoiceSearchWrapper",(Pm.ytSearchboxComponentHideVoiceSearchButton=function(){return t()},Pm))},_.P(_.lY,{data:p5},{buttonRenderer:function(L8){return _.P(_.Gf,{data:L8.data,
onButtonClickCallback:function(){}})}}))}}),_.P("div",{el:_.Wbm(function(p5){return void(ku=p5)}),
id:TR,class:_.sZ("ytSearchboxComponentSuggestionsContainer",(ry.ytSearchboxComponentSuggestionsContainerDark=oL,ry["yt-searchbox-suggestions-container"]=!1,ry.ytSearchboxComponentSuggestionsContainerScrollable=Uw(),ry.ytSearchboxComponentSuggestionsContainerAnimated=p,ry)),"on:scroll":p9,"on:mousemove":SI,role:"listbox",hidden:!0},_.P(_.pH,{each:X},function(p5,Pm){return _.P(e2j,{suggestion:p5,isHighlighted:function(){return Pm()===S()},
onClickCallback:kb,onHoverUpdateCallback:function(L8){if(_.V("desktop_enable_single_suggestion_highlight")){var wR=Pm();L8&&(B(0),A(wR))}},
onRemoveCallback:function(L8){woy(xK);L8===void 0||L8<0||Bs().includes(L8)||n5([].concat(_.Py(Bs()),[L8]))},
labels:I.labels,queryBuilderFunction:wX,suggestionIndex:Pm,generateUniqueId:xV,highlightedId:function(){var L8;return(L8=c5[S()])==null?void 0:L8[x()]},
useScrollMargin:Uw(),isKeyboardMode:sH})}),_.P(_.Dx,{cond:function(){return!cs()&&X().find(function(p5){return p5.type!==35})&&_.V("searchbox_reporting")},
then:function(){return _.P("button",{class:"ytSearchboxComponentReportButton","on:mousedown":eX},_.PQ("SBOX_INAPPROPRIATE_PROMPT",void 0,"Report search predictions"))}}),_.P(_.Dx,{cond:function(){return!$z()&&Uw()},
then:function(){return _.P("div",{class:"ytSearchboxComponentSuggestionsContainerFooter"},_.P("div",{class:"ytSearchboxComponentSuggestionsContainerFooterGradient",style:M$}))}})))},"bg"),"yt-searchbox",{props:{searchEndpoint:_.As,
placeholderText:_.As,labels:_.As,voiceSearchButton:_.As,focusCallback:_.Z_,clearButtonAriaLabel:_.As,forceDarkMode:_.As}});var mE=function(){var I=_.q.apply(this,arguments)||this;I.menuButtonTargetId="topbar-guide-menu";I.narrow=!1;I.menuStrings={BACK_ALT_LABEL:_.PQ("BACK_ALT_LABEL",void 0,"Back"),GUIDE_ALT_LABEL:_.PQ("GUIDE_ALT_LABEL",void 0,"Guide"),LOGO_ALT_LABEL:_.PQ("LOGO_ALT_LABEL",void 0,"YouTube Home"),SEARCH_ALT_LABEL:_.PQ("SBOX_PLACEHOLDER",void 0,"Search")};I.pageDarkTheme=document.documentElement.hasAttribute("dark");I.watchPageScrollTop=0;I.theater=!1;I.fullscreen=!1;I.desktopUnifiedSearchPanelMode=_.V("desktop_enable_unified_search_panel");
I.cinematicTheaterMode=_.V("web_cinematic_theater_mode");I.ytSearchboxFocused=!1;I.searchboxLabels=_.Aq("SBOX_LABELS");I.topbarIsAboveChipbar=!1;I.isDarkThemeForced=!1;I.areGhostCardsHidden=!1;I.guideKeyboardToggle=!1;I.voiceSearchManager=SPY();I.actionMap={"yt-send-feedback-action":"onYtSendFeedbackAction","yt-fullscreen-change-action":"onFullscreenChangeAction"};I.setYtSearchboxFocused=function(C){I.ytSearchboxFocused=C};
return I};
_.R(mE,_.q);_.u=mE.prototype;_.u.computeSimpleText=function(I){return _.hS(I)};
_.u.onDarkChanged=function(){for(var I=_.T(this.buttons||[]),C=I.next();!C.done;C=I.next())C.value.isOverlay=!!this.dark;I=_.T(this.buttonRenderers||[]);for(C=I.next();!C.done;C=I.next())C.value.overrides=this.computeButtonOverride()};
_.u.computeButtonOverride=function(){return this.dark?{style:"overlay"}:void 0};
_.u.configureRendererStamper=function(){return{"data.interstitial":{id:"interstitial",mapping:{consentBumpV2Renderer:"ytd-consent-bump-v2-renderer"}},"data.voiceSearchButton":{id:"voice-search-button",mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{"on-tap":"[[boundOnTapVoiceButton]]",overrides:"[[buttonOverrides]]"}}},reuseComponents:!1},"data.topbarButtons":{id:"buttons",events:!0,mapping:{buttonRenderer:{component:"ytd-button-renderer",properties:{overrides:"[[buttonOverrides]]"}},
notificationTopbarButtonRenderer:{component:"ytd-notification-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},iconBadgeTopbarButtonRenderer:{component:"ytd-icon-badge-topbar-button-renderer",properties:{isOverlay:"[[dark]]"}},topbarMenuButtonRenderer:"ytd-topbar-menu-button-renderer"},initialRenderPriority:1},"data.a11ySkipNavigationButton":{id:"skip-navigation",mapping:{buttonRenderer:"ytd-button-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("role")||this.hostElement.setAttribute("role","banner");var I=_.Ku(_.So(),"aa");_.a_(this.hostElement,"shell",!1);!this.hostElement.classList.contains("dark")&&!this.hostElement.classList.contains("theater")||I||(this.isDarkThemeForced=this.dark=!0);this.logoType?(I=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?I.setAttribute("slot","masthead-logo-old"):_.ey(I)):this.logo.hidden=!0;document.addEventListener("yt-watch-masthead-scroll",
_.sb(this,this.onWatchScroll));document.addEventListener("yt-set-theater-mode-enabled",_.sb(this,this.onSetTheaterModeEnabled))};
_.u.detached=function(){document.removeEventListener("yt-watch-masthead-scroll",_.sb(this,this.onWatchScroll));document.removeEventListener("yt-set-theater-mode-enabled",_.sb(this,this.onSetTheaterModeEnabled))};
_.u.dataChanged=function(){var I=this.data;I&&(this.voiceEnabled=I.voiceSearchButton?SPY().isSupported():!1,_.vZb(_.oA(),this.menuButtonTargetId,this.guideButton),I.onReceivedActions&&I.onReceivedActions.length>0&&!this.hasShownCreatorEmailOptInPopup&&(_.cQ(this.hostElement,I.onReceivedActions,this.hostElement),this.hasShownCreatorEmailOptInPopup=!0),!this.hasRenderedWithData&&I&&(this.hasRenderedWithData=!0,this.logo.hidden=!1,_.a_(this.hostElement,"dark",!1),_.a_(this.hostElement,"theater",!1),
(I=this.hostElement.querySelector("#masthead-logo"))&&(_.V("polymer_on_demand_shady_dom")?I.setAttribute("slot","masthead-logo-old"):_.ey(I))))};
_.u.computeCenterHidden=function(){var I;return this.data&&!((I=this.data.searchbox)==null?0:I.fusionSearchboxRenderer)};
_.u.onRendererStamperFinished=function(){this.areGhostCardsHidden||(_.a_(this.hostElement,"masthead-finish",!0),this.areGhostCardsHidden=!0)};
_.u.onWatchPageChange=function(){this.isWatchPage||this.resetBackground()};
_.u.onWatchScroll=function(I){this.watchPageScrollTop=I.detail||0;this.updateMastheadBackgroundOpacity()};
_.u.onFullscreenChangeAction=function(I){I||(this.watchPageScrollTop=0);this.fullscreen=I;this.updateMastheadBackgroundOpacity()};
_.u.onSetTheaterModeEnabled=function(I){this.theater=I.detail.enabled;this.updateMastheadBackgroundOpacity()};
_.u.updateMastheadBackgroundOpacity=function(){this.shouldShowCinematicMastHead()&&(this.isBigPlayer()?this.resetBackground():document.body.className.indexOf("lock-scrollbar")===-1&&this.setBackgroundOpacity(this.watchPageScrollTop))};
_.u.resetBackground=function(){this.background.style.removeProperty("opacity");this.watchPageScrollTop=0};
_.u.setBackgroundOpacity=function(I){I=this.calculateBackgroundOpacity(I);this.background.style.opacity=""+I};
_.u.calculateBackgroundOpacity=function(I){var C=this.theater&&this.cinematicTheaterMode?.6:0,y=this.hostElement.clientHeight/2;return Math.min(Math.max(I,0),y)/y*(1-C)+C};
_.u.shouldShowCinematicMastHead=function(){var I=_.V("kevlar_watch_grid")&&!_.V("swatchie_cinematic_masthead_ks");return this.isWatchPage&&(I||this.pageDarkTheme)};
_.u.isBigPlayer=function(){return this.fullscreen||this.theater&&!this.cinematicTheaterMode};
_.u.focusGuide=function(){this.guideButton.focus()};
_.u.onIronResize=function(){(this.get("data.interstitial")||this.get("data.ticker"))&&_.k3(this.hostElement,"yt-masthead-height-changed",{height:this.hostElement.clientHeight})};
_.u.onGuideToggleTap=function(){_.k3(this.hostElement,"yt-guide-toggle",{isKeyInput:this.guideKeyboardToggle});this.guideKeyboardToggle=!1};
_.u.onGuideButtonKeydown=function(){this.guideKeyboardToggle=!0};
_.u.onGuideToggleHover=function(){_.k3(this.hostElement,"yt-guide-hover")};
_.u.onSearchCloseClick=function(){this.ytdExpandableInputBehavior.showInput=!1};
_.u.narrowChanged=function(){this.narrow?this.ytSearchboxFocused&&this.ytdExpandableInputBehavior.openOnClick_():this.ytdExpandableInputBehavior.showInput=!1};
_.u.closeOnOutsideClickCondition=function(I){for(I=_.qc(I);I[0];){var C=I.shift();if(C instanceof Element&&C.id==="kbd")return!1}return!0};
_.u.onVoiceTap=function(){this.pausePlayer();this.voiceSearchManager.start()};
_.u.pausePlayer=function(){var I;(I=_.hU())==null||I.pause();this.pauseMiniplayer()};
_.u.pauseMiniplayer=function(){if(this.isMiniplayerActive()){var I;(I=_.N().resolve(_.WJ).getPlayerElement())==null||I.pause()}};
_.u.isMiniplayerActive=function(){return _.N().resolve(_.WJ).isMiniplayerActive()};
_.u.updateNarrowFromBinding=function(I){this.narrow=I.detail.value};
_.u.onYtSendFeedbackAction=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.H1.Object.defineProperties(mE.prototype,{shouldShowVoiceSearchButton:{configurable:!0,enumerable:!0,get:function(){return!!this.voiceEnabled&&!this.desktopUnifiedSearchPanelMode}},
voiceSearchButton:{configurable:!0,enumerable:!0,get:function(){if(this.desktopUnifiedSearchPanelMode){var I;return(I=this.data)==null?void 0:I.voiceSearchButton}}}});
mE.prototype.narrowChanged=mE.prototype.narrowChanged;mE.prototype.onIronResize=mE.prototype.onIronResize;mE.prototype.onWatchPageChange=mE.prototype.onWatchPageChange;mE.prototype.onRendererStamperFinished=mE.prototype.onRendererStamperFinished;mE.prototype.dataChanged=mE.prototype.dataChanged;mE.prototype.onDarkChanged=mE.prototype.onDarkChanged;_.E([_.g(_.Ri),_.h("design:type",Object)],mE.prototype,"ironResizableBehavior",void 0);
_.E([_.g(_.E5B),_.h("design:type",Object)],mE.prototype,"ytdExpandableInputBehavior",void 0);_.E([_.g(_.GW.YtdGuideStateAwareBehavior),_.h("design:type",Object)],mE.prototype,"ytdGuideStateAwareBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],mE.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],mE.prototype,"ytComponentBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],mE.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],mE.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.lZ),_.h("design:type",Object)],mE.prototype,"ytdReduxBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"narrow",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"logoType",void 0);
_.E([_.d(),_.h("design:type",Boolean)],mE.prototype,"voiceEnabled",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"menuStrings",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],mE.prototype,"dark",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mE.prototype,"pageDarkTheme",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"watchPageScrollTop",void 0);
_.E([_.d({reflectToAttribute:!0,selector:_.fx}),_.h("design:type",Boolean)],mE.prototype,"isWatchPage",void 0);_.E([_.d({reflectToAttribute:!0,selector:_.eSW}),_.h("design:type",Boolean)],mE.prototype,"isShortsPage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mE.prototype,"theater",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],mE.prototype,"fullscreen",void 0);
_.E([_.d({reflectToAttribute:!0,selector:_.Pvm}),_.h("design:type",String)],mE.prototype,"frostedGlassMode",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"ytSearchboxFocused",void 0);_.E([_.T$("#buttons > *"),_.h("design:type",Array)],mE.prototype,"buttons",void 0);_.E([_.T$("ytd-button-renderer"),_.h("design:type",Array)],mE.prototype,"buttonRenderers",void 0);_.E([_.z$("#background"),_.h("design:type",HTMLDivElement)],mE.prototype,"background",void 0);
_.E([_.z$("#guide-button"),_.h("design:type",Object)],mE.prototype,"guideButton",void 0);_.E([_.z$("#logo"),_.h("design:type",Object)],mE.prototype,"logo",void 0);_.E([_.d({computed:"computeButtonOverride(dark)"}),_.h("design:type",Object)],mE.prototype,"buttonOverrides",void 0);_.E([_.rW("dark"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"onDarkChanged",null);_.E([_.d({value:function(){return this.onVoiceTap.bind(this)}}),
_.h("design:type",Function)],mE.prototype,"boundOnTapVoiceButton",void 0);_.E([_.d(),_.h("design:type",Object)],mE.prototype,"topbarIsAboveChipbar",void 0);_.E([_.v("voiceEnabled"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],mE.prototype,"shouldShowVoiceSearchButton",null);_.E([_.v("data"),_.h("design:type",Object),_.h("design:paramtypes",[])],mE.prototype,"voiceSearchButton",null);
_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"dataChanged",null);_.E([_.km("yt-rendererstamper-finished"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"onRendererStamperFinished",null);_.E([_.rW("isWatchPage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"onWatchPageChange",null);
_.E([_.km("iron-resize"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"onIronResize",null);_.E([_.rW("narrow"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],mE.prototype,"narrowChanged",null);mE=_.E([_.m({disableElementRegistration:!0,is:"ytd-masthead"})],mE);
_.Z(mE,"ytd-masthead",function(){if(koy!==void 0)return koy;var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-masthead--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<iron-media-query query="max-width: 656px" query-matches="[[narrow]]" on-query-matches-changed="updateNarrowFromBinding" class="style-scope ytd-masthead">\n</iron-media-query>\n<div id="ticker" class="style-scope ytd-masthead"></div>\n<div id="interstitial" class="style-scope ytd-masthead"></div>\n<div id="background" hidden="[[hideBackground]]" class="style-scope ytd-masthead"></div>\n<div id="container" class="style-scope ytd-masthead">\n  <div id="start" class="style-scope ytd-masthead">\n    <yt-icon-button id="back-button" label="[[menuStrings.BACK_ALT_LABEL]]" on-click="onSearchCloseClick" class="style-scope ytd-masthead">\n      <yt-icon disable-upgrade$="[[!showInput]]" icon="yt-icons:arrow-back" class="style-scope ytd-masthead">\n      </yt-icon>\n    </yt-icon-button>\n    <tp-yt-paper-tooltip id="back-button-tooltip" disable-upgrade$="[[!showInput]]" for="back-button" class="style-scope ytd-masthead">\n      [[menuStrings.BACK_ALT_LABEL]]\n    </tp-yt-paper-tooltip>\n    <yt-icon-button id="guide-button" label="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="[[guideOpened]]" toggleable="true" on-click="onGuideToggleTap" on-keydown="onGuideButtonKeydown" on-mouseenter="onGuideToggleHover" class="style-scope ytd-masthead">\n      <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-masthead"></yt-icon>\n    </yt-icon-button>\n    <slot name="masthead-logo" class="style-scope ytd-masthead"></slot>\n    <ytd-topbar-logo-renderer id="logo" country-code="[[data.countryCode]]" data="[[data.logo.topbarLogoRenderer]]" logo-type="[[logoType]]" use-dark-theme-yoodle="[[dark]]" class="style-scope ytd-masthead">\n    </ytd-topbar-logo-renderer>\n    <div id="skip-navigation" class="style-scope ytd-masthead"></div>\n  </div>\n  <div id="center" hidden="[[computeCenterHidden(data)]]" class="style-scope ytd-masthead">\n    <yt-searchbox clear-button-aria-label="[[data.searchbox.fusionSearchboxRenderer.clearButton.buttonRenderer.accessibilityData.accessibilityData.label]]" focus-callback="[[setYtSearchboxFocused]]" force-dark-mode="[[dark]]" labels="[[searchboxLabels]]" placeholder-text="[[computeSimpleText(data.searchbox.fusionSearchboxRenderer.placeholderText)]]" search-endpoint="[[data.searchbox.fusionSearchboxRenderer.searchEndpoint]]" voice-search-button="[[voiceSearchButton]]" class="style-scope ytd-masthead">\n    </yt-searchbox>\n    <yt-icon-button id="search-button-narrow" label="[[menuStrings.SEARCH_ALT_LABEL]]" on-click="openOnClick_" class="style-scope ytd-masthead">\n      <yt-icon class="topbar-icons style-scope ytd-masthead" disable-upgrade$="[[!narrow]]" icon="yt-icons:search">\n      </yt-icon>\n      <tp-yt-paper-tooltip disable-upgrade$="[[!narrow]]" for="search-button-narrow" hidden="[[!narrow]]" class="style-scope ytd-masthead">\n        [[menuStrings.SEARCH_ALT_LABEL]]\n      </tp-yt-paper-tooltip>\n    </yt-icon-button>\n    <div id="voice-search-button" hidden="[[!shouldShowVoiceSearchButton]]" class="style-scope ytd-masthead">\n    </div>\n  </div>\n  <div id="end" class="style-scope ytd-masthead">\n    <slot name="masthead-skeleton" class="style-scope ytd-masthead"></slot>\n    <div id="buttons" class="style-scope ytd-masthead"></div>\n  </div>\n</div>\n');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return koy=I},{mode:_.Ij("kevlar_poly_si_batch_j036")?1:2});var DoK;var poK={},QOj={},N2L={},VWj={},jOP=(VWj.OFFLINE=(poK["publicytnetworkstatus-online"]="BACK_ONLINE",poK),VWj.ONLINE=(QOj["publicytnetworkstatus-offline"]="OFFLINE",QOj),VWj.BACK_ONLINE=(N2L["publicytnetworkstatus-offline"]="OFFLINE",N2L.TIMER_TRIGGER="ONLINE",N2L),VWj),ZP=function(){var I=_.q.apply(this,arguments)||this;I.currentState="ONLINE";I.scheduledJobId=0;I.bannerString="";I.bannerVe=null;I.networkStatusManagerInstance=new _.mx;return I};
_.R(ZP,_.q);_.u=ZP.prototype;_.u.attached=function(){var I=this;this.networkStatusManagerInstance.isNetworkAvailable()||this.stateChangeHandler("publicytnetworkstatus-offline");this.networkStatusManagerInstance.listen("publicytnetworkstatus-online",function(){I.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.listen("publicytnetworkstatus-offline",function(){I.stateChangeHandler("publicytnetworkstatus-offline")})};
_.u.detached=function(){var I=this;this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-online",function(){I.stateChangeHandler("publicytnetworkstatus-online")});
this.networkStatusManagerInstance.unlisten("publicytnetworkstatus-offline",function(){I.stateChangeHandler("publicytnetworkstatus-offline")})};
_.u.enterState=function(I){var C=this;this.scheduledJobId&&_.b$.cancelJob(this.scheduledJobId);I==="ONLINE"?(this.logVisibility(!1),this.bannerString=""):I==="OFFLINE"?(this.logVisibility(!0),this.bannerString=_.PQ("NO_INTERNET_CONNECTION",void 0,"No internet connection")):I==="BACK_ONLINE"&&(this.bannerString=_.PQ("BACK_ONLINE",void 0,"Back Online"),this.scheduledJobId=_.NU(_.b$,function(){C.stateChangeHandler("TIMER_TRIGGER")},3E3));
this.currentState=I};
_.u.stateChangeHandler=function(I){(I=jOP[this.currentState][I])&&this.enterState(I)};
_.u.logVisibility=function(I){var C=_.Si();this.createBannerVe(I);C&&this.bannerVe&&(I?_.Z0(C,[this.bannerVe]):_.BQ(C,[this.bannerVe]))};
_.u.createBannerVe=function(I){!this.bannerVe&&I&&(this.bannerVe=_.Dn(37929),_.y4(_.e2(),this.bannerVe))};
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",String)],ZP.prototype,"currentState",void 0);_.E([_.d(),_.h("design:type",Object)],ZP.prototype,"scheduledJobId",void 0);_.E([_.d(),_.h("design:type",Object)],ZP.prototype,"bannerString",void 0);ZP=_.E([_.m({disableElementRegistration:!0,is:"ytd-network-status-banner"})],ZP);
_.Z(ZP,"ytd-network-status-banner",function(){if(DoK!==void 0)return DoK;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return DoK=
I},{mode:1});var l1K;var ov=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-update-permission-role-command":"handleUpdatePermissionRoleCommand"};I.hidden=!0;I.frostedGlass=_.V("web_frosted_glass");return I};
_.R(ov,_.q);ov.prototype.computeHidden=function(I){return I&&I.status?!1:!0};
ov.prototype.handleUpdatePermissionRoleCommand=function(I){if(I=_.l(I,_.Z6d))if(I=_.l(I.renderer,_.m7w))this.data=I};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],ov.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],ov.prototype,"componentBehavior",void 0);_.E([_.d({value:!0,computed:"computeHidden(data)"}),_.h("design:type",Object)],ov.prototype,"hidden",void 0);_.E([_.d(),_.h("design:type",Object)],ov.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],ov.prototype,"frostedGlass",void 0);
ov=_.E([_.m({disableElementRegistration:!0,is:"ytd-permission-role-bottom-bar-renderer"})],ov);
_.Z(ov,"ytd-permission-role-bottom-bar-renderer",function(){if(l1K!==void 0)return l1K;var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);return l1K=I},{mode:1});var XoM;var $o8;var YeP={productId:"5047190",bucket:"suggest",enableAnonymousFeedback:!0,flow:"submit",allowNonLoggedInFeedback:!0};var yR=function(){return _.q.apply(this,arguments)||this};
_.R(yR,_.q);_.u=yR.prototype;_.u.attached=function(){this.JSC$18409_scroller&&(this.JSC$18409_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18409_scroller.attached&&typeof this.JSC$18409_scroller.attached==="function"&&this.JSC$18409_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(){if(this.data!==void 0){Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).forEach(function(y){y.checked=!1});
this.catagorySelected=this.suggestionSelected=!1;var I=_.f(this.hostElement);I.querySelector("tp-yt-paper-radio-group").selected="";var C=I.querySelector("#reason-text");C&&(C.value="");I.querySelector("#description-text").value=""}};
_.u.canSubmit=function(I,C){_.k3(this.hostElement,"yt-invalidate-popup-tabbables");return!(I&&C)};
_.u.onCancel=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"])};
_.u.onSubmit=function(){var I=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).filter(function(z){return z.active}).map(function(z){return z.innerText.trim()}),C=this.hostElement.querySelector("tp-yt-paper-radio-group"),y=C.selectedItem,k=y.name;
y=y.innerText.trim();var F=C.querySelector("#reason-text");C=void 0;F&&(C=F.value);(F=this.descriptionText.value)&&(F=F.trim());GL8(this.data.searchQuery,I,k,y,F,C);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-search-suggestion-report-dialog"]);this.sendFormSubmitToast()};
_.u.sendFormSubmitToast=function(){var I=_.Oe(_.PQ("SBOX_INAPPROPRIATE_TOAST"));_.Fe(this.hostElement,"yt-open-popup-action",[I,this])};
_.u.onIronChange=function(){this.suggestionSelected=Array.prototype.slice.call(this.hostElement.querySelectorAll("tp-yt-paper-checkbox")).some(function(I){return I.active})};
_.u.onIronSelect=function(){this.catagorySelected=!!this.hostElement.querySelector("tp-yt-paper-radio-group").selected};
yR.prototype.onIronSelect=yR.prototype.onIronSelect;yR.prototype.onIronChange=yR.prototype.onIronChange;yR.prototype.dataChanged=yR.prototype.dataChanged;_.E([_.d(),_.h("design:type",Object)],yR.prototype,"data",void 0);_.E([_.d({value:!0,computed:"canSubmit(suggestionSelected,catagorySelected)"}),_.h("design:type",Boolean)],yR.prototype,"submitDisabled",void 0);_.E([_.d(),_.h("design:type",Boolean)],yR.prototype,"suggestionSelected",void 0);
_.E([_.d(),_.h("design:type",Boolean)],yR.prototype,"catagorySelected",void 0);_.E([_.z$("#scroller"),_.h("design:type",Object)],yR.prototype,"JSC$18409_scroller",void 0);_.E([_.z$("#description-text"),_.h("design:type",Object)],yR.prototype,"descriptionText",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yR.prototype,"dataChanged",null);
_.E([_.km("iron-change"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yR.prototype,"onIronChange",null);_.E([_.km("iron-select"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],yR.prototype,"onIronSelect",null);yR=_.E([_.m({disableElementRegistration:!0,is:"ytd-search-suggestion-report-dialog"})],yR);
_.Z(yR,"ytd-search-suggestion-report-dialog",function(){if($o8!==void 0)return $o8;var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return $o8=I},{mode:1});var ke=function(I){var C=I.openPopupAction;var y=I.target;var k=I.container;var F=I.popupContainerConfig;var z=I.getElement;I=I.removeWhenClosed===void 0?!1:I.removeWhenClosed;this.naturalHeight=this.popupContent=this.popup=void 0;this.openPopupAction=C;this.target=y;this.container=k;this.popupContainerConfig=F;this.getElement=z;this.JSC$18415_popupConfig=this.popupContainerConfig.JSC$17531_popupConfig[this.openPopupAction.popupType];this.rendererName=(C=this.getName())?_.V2K(C,cmM(this.popupContainerConfig,
C)):"";_.V("ytpopup_disable_default_html_caching")&&(this.removeWhenClosed=I);this.createPopup()};
ke.prototype.updatePopup=function(I){this.openPopupAction=I;this.JSC$18415_popupConfig=this.popupContainerConfig.JSC$17531_popupConfig[this.openPopupAction.popupType];R2H(this);_.V("reorder_popup_updates_killswitch")&&bcL(this);_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0)};
var f1L=function(I,C,y){I.target=y;var k;y=((k=I.target.polymerController)!=null?k:I.target).popupPositionTarget||I.target;I.JSC$18415_popupConfig.targetContainer&&(y=I.container);I.popup.positionTarget=y;I.popupContent.positionTarget=y;_.V("reorder_popup_updates_killswitch")||bcL(I);I.JSC$18415_popupConfig.forceFocus&&(I.popupContent.style.outline="none");I.popupContent.tabIndex=-1;I.JSC$18415_popupConfig.narrowProperties&&(I.popup.style.position="static");I.JSC$18415_popupConfig.preventAutonav&&
I.popup.setAttribute("prevent-autonav",!0);I.JSC$18415_popupConfig.forceCloseOnOutsideClick&&I.popup.setAttribute("force-close-on-outside-click",!0);YlH(I,C);GoY(I,I.JSC$18415_popupConfig.styles);I.isRtl()&&GoY(I,I.JSC$18415_popupConfig.rtlStyles);if(!I.openPopupAction.shouldStopParentSignal){var F;C=(F=I.target.polymerController)!=null?F:I.target;(I.popupContent.startForwardingEvents||I.popupContainerConfig.forwardingEnabledPopups.has(I.rendererName))&&C.parentComponent!==I.popupContent&&I.popupContent!==
I.target&&I.target!==document.body&&(I.popupContent.startForwardingEvents?I.popupContent.startForwardingEvents(I.popupContainerConfig.forwardedEvents,I.target):(I.JSC$18415_eventForwarder||(I.JSC$18415_eventForwarder=new _.rA(I.popupContent)),I.JSC$18415_eventForwarder.start(I.popupContainerConfig.forwardedEvents,I.target)))}};
ke.prototype.refit=function(){this.popup.opened&&this.popup.refit()};
var YlH=function(I,C){SlY(I,C&&I.JSC$18415_popupConfig.narrowProperties?I.JSC$18415_popupConfig.narrowProperties:I.JSC$18415_popupConfig.properties);I.isRtl()&&SlY(I,I.JSC$18415_popupConfig.rtlProperties);bcL(I)};
ke.prototype.createPopup=function(){var I=this.JSC$18415_popupConfig.component;if(this.popupContent=KDS(this,this.rendererName)){if(I){this.popup=KDS(this,I);var C=this.popupContent;_.V("web_enable_wrapper_for_cow_component_in_popup")&&(C=document.createElement("div"),C.appendChild(this.popupContent));_.V("kevlar_keyboard_button_focus")&&(this.popup.restoreFocusOnClose=!0);this.JSC$18415_popupConfig.slotName&&C.setAttribute("slot",this.JSC$18415_popupConfig.slotName);I=this.popup;var y=this.container.tagName.toLowerCase(),
k=_.ZW(C);_.s5I(_.Eq(I),_.HD(C,y,k));document.body.appendChild(this.popup)}else this.popup=this.popupContent;_.V("ytpopup_disable_default_html_caching")&&(this.popup.removeWhenClosed=this.removeWhenClosed);_.f(this.container).appendChild(this.popup)}};
var R2H=function(I){var C,y,k=(C=I.openPopupAction.accessibilityData)==null?void 0:(y=C.accessibilityData)==null?void 0:y.label;k&&(I.popup.ariaLabel=k);var F;((F=I.popupContent.polymerController)!=null?F:I.popupContent).data=(0,_.Le.unsafeClone)(I.openPopupAction.popup[I.getName()]);I.popupContent.duration=ACB(I);I.popupContent.positionType=I.openPopupAction.position;var z=I.openPopupAction.properties;z&&Object.keys(z).forEach(function(c){I.popupContent[c]=z[c]})},SlY=function(I,C){if(C)for(var y=
_.T(Object.keys(C)),k=y.next();!k.done;k=y.next())k=k.value,I.popup[k]=C[k]},bcL=function(I){if(I.openPopupAction.position){var C=I.JSC$18415_popupConfig.positionalProperties&&I.JSC$18415_popupConfig.positionalProperties[I.openPopupAction.position],y=I.JSC$18415_popupConfig.rtlPositionalProperties&&I.JSC$18415_popupConfig.rtlPositionalProperties[I.openPopupAction.position];
C=I.isRtl()&&y?y:C;C.shiftedHorizontalOffset&&(y=I.popup.style.display,I.popup.style.display="block",I.popupContent&&I.popup.positionTarget&&I.popupContent.clientWidth>I.popup.positionTarget.clientWidth&&(C.horizontalOffset=I.popup.positionTarget.clientWidth/2-C.shiftedHorizontalOffset),I.popup.style.display=y);SlY(I,C)}},GoY=function(I,C){if(C)for(var y=_.T(Object.keys(C)),k=y.next();!k.done;k=y.next())k=k.value,I.popup.style[k]=C[k]};
ke.prototype.getName=function(){return _.fH(this.openPopupAction.popup,"renderer")||_.fH(this.openPopupAction.popup,"dialog")||_.fH(this.openPopupAction.popup,"model")||void 0};
var ACB=function(I){I=I.openPopupAction.durationHintMs;return I===0?I:Math.max(4E3,I||4E3)};
ke.prototype.isRtl=function(){return _.Aq("HTML_DIR")==="rtl"};
var KDS=function(I,C){I=I.getElement(C,I.target);I==null&&_.SN(new _.ph("popup getElement returned null",C));return I};var gOL={};
gOL.YtPopupContainerBehavior=[_.$y.YtComponentBehavior,_.Et.YtActionHandlerBehavior,{created:function(){this.popupContainerConfig=null;this.popups_={};this.shownPopupKeys_=new Set;this.popupContainerActionMap_={"yt-close-popup-action":"handleClosePopupAction_","yt-close-popup-command":"handleClosePopupCommand_","yt-close-popups-action":"handleClosePopupsAction_","yt-close-all-popups-action":"handleCloseAllPopupsAction_","yt-get-popup-opened-action":"handleGetPopupOpenedAction_","yt-get-opened-popups-action":"handleGetOpenedPopupsAction_","yt-open-popup-action":"handleOpenPopupAction",
"yt-signal-action-close-popup":"handleSignalActionClosePopup_","yt-window-scrolled":"windowResizedOrScrolled_","yt-window-resized":"windowResizedOrScrolled_","yt-refit-popups-action":"refitPopups_"};this.narrowMediaQuery_=void 0;this.repositionEventsBound_=!1;this.setPopupVisibilityJobId_=this.setPopupPositioningJobId_=0;this.dynamicallyPositionedElements_=new Set},
attached:function(){this.registerActionMap(this.popupContainerActionMap_);_.ot(this.hostElement,!1)},
detached:function(){this.unregisterActionMap(this.popupContainerActionMap_);_.yw(this.hostElement)},
closePopup:function(I){var C=this.createCacheKey(void 0,I);this.popups_[C]&&this.handleClosePopupAction_(void 0,I)},
windowResizedOrScrolled_:function(){this.setPopupPositioningJobId_||(this.setPopupPositioningJobId_=_.b$.addLowPriorityJob(this.setPopupPositioning_.bind(this)));this.setPopupVisibilityJobId_||(this.setPopupVisibilityJobId_=_.b$.addLowPriorityJob(this.setPopupVisibility_.bind(this)))},
setPopupPositioning_:function(){this.dynamicallyPositionedElements_.forEach(function(I){I.opened&&I.keepBelowPlayer&&this.ensurePopupBelowPlayer(I)},this);
this.setPopupPositioningJobId_=0},
setPopupVisibility_:function(){for(var I in this.popups_){var C=this.popups_[I];if(C.popup.scrollAction==="refit"){var y=C.popup.positionTarget.getBoundingClientRect(),k=C.popup;y=y.top;var F=C;if(!F.naturalHeight){F.popup.hidden=!1;F.popup.style.position="fixed";F.popup.style.top="0px";F.popup.style.left="0px";var z=F.popup.getBoundingClientRect();F.naturalHeight=z.bottom-z.top;F.popup.refit()}k.hidden=!(y>=F.naturalHeight+60);C.popupContent.clientHeight===0&&C.popup.refit()}}this.setPopupVisibilityJobId_=
0},
ensurePopupBelowPlayer:function(){return!1},
initPopupContainerBehavior:function(I){this.popupContainerConfig=I},
handleOpenPopupAction:function(I,C){var y=I.openPopupAction,k=_.N().resolve(_.aU(_.FPR))&&y.popupType==="TOAST";k&&!y.uniqueId&&(y.uniqueId=_.Qb());if(!_.V("popup_container_parent_target_killswitch")){var F;C=(F=this.getParentTarget(C))!=null?F:C}var z=this.ensurePopup_(y,C);return new _.eN(function(c){z.then(function(r){if(!r)return c();this.maybeCreateNarrowMediaQuery_();var w=this.createCacheKey(r.rendererName,r.openPopupAction.uniqueId);if(y.showOncePerUniqueId){if(this.shownPopupKeys_.has(w))return c();
this.shownPopupKeys_.add(w)}w=this.popups_[w];var L=!(!w||!w.openPopupAction.beReused);L=!!y.reusePopup||L;if(r.popup.opened&&!L){k&&!r.openPopupAction.replacePopup||this.handleClosePopupAction_(r.rendererName,r.openPopupAction.uniqueId);L=y.popupType==="DIALOG"&&!_.V("popup_container_dialog_reopen_killswitch");if(!k&&!L&&w&&w.target==C&&!r.openPopupAction.replacePopup)return c();_.hn(r.popup,function(){this.completeOpenPopupAction_(y,C,r);c()}.bind(this))}else r.popup.opened?r.updatePopup(y):this.completeOpenPopupAction_(y,
C,r),c()}.bind(this))}.bind(this))},
getParentTarget:function(I){if(I&&I instanceof HTMLElement)for(var C=_.T(Object.entries(this.popups_)),y=C.next();!y.done;y=C.next())if(y=_.T(y.value),y.next(),y=y.next().value,y.popup.tagName==="TP-YT-IRON-DROPDOWN"&&y.popup.opened&&I.closest(y.rendererName))return y.target},
completeOpenPopupAction_:function(I,C,y){_.V("reorder_popup_updates_killswitch")?(f1L(y,this.narrowMediaQuery_.queryMatches,C),y.updatePopup(I)):(y.updatePopup(I),f1L(y,this.narrowMediaQuery_.queryMatches,C));I=y.popup;I.addEventListener("iron-overlay-opened",_.sb(this,this.onPopupIronOverlayOpened_));I.addEventListener("iron-overlay-closed",_.sb(this,this.onPopupIronOverlayClosed_));I.addEventListener("iron-overlay-canceled",_.sb(this,this.onPopupIronOverlayCanceled_));I.addEventListener("yt-refit",
_.sb(this,this.refitPopup_));I.addEventListener("yt-invalidate-popup-tabbables",_.sb(this,this.handleInvalidatePopupTabbables_));I.open()},
getPopupDurationMs_:function(I){return I.durationHintMs===0?I.durationHintMs:Math.max(4E3,I.durationHintMs||4E3)},
handleClosePopupAction_:function(I,C){var y=_.V("web_popup_cache_key_killswitch")||!!C;if(I||y){var k=this.createCacheKey(I,C);I=(I=this.popups_[k])&&I.popup}else I=_.h4d(_.qu);if(I&&I.close){if(C=_.N().resolve(_.aU(_.Du)))I.restoreFocusOnClose=C.isKeyBoardInUse();I.close();this.removePopup_(I,k)}},
handleClosePopupCommand_:function(I){I.closePopupCommand&&I.closePopupCommand.uniquePopupId&&this.handleClosePopupAction_(void 0,I.closePopupCommand.uniquePopupId)},
handleCloseAllPopupsAction_:function(I){var C={},y;for(y in this.popups_)if(C={key$jscomp$1162:C.key$jscomp$1162},C.key$jscomp$1162=y,!I||!I.some(function(z){return function(c){return c==z.key$jscomp$1162}}(C))){var k=this.popups_[C.key$jscomp$1162],F=k.popup;
_.N().resolve(_.aU(_.FPR))&&k.openPopupAction.popupType==="TOAST"||(F&&F.close&&F.close(),this.removePopup_(F,C.key$jscomp$1162))}},
handleClosePopupsAction_:function(I){I.forEach(function(C){var y=this.popups_[C];y&&((y=y.popup)&&y.close&&y.close(),this.removePopup_(y,C))}.bind(this))},
handleGetPopupOpenedAction_:function(I,C){return(C=this.createCacheKey(I,C))&&this.popups_[C]?this.popups_[I].popup.opened:!1},
handleGetOpenedPopupsAction_:function(){var I=[],C;for(C in this.popups_){var y=this.popups_[C];y.popup.opened&&I.push(y)}return I},
getOpenedPopups:function(){this.handleGetOpenedPopupsActions_()},
handleSignalActionClosePopup_:function(){this.handleCloseAllPopupsAction_()},
removePopup_:function(I,C){_.V("ytpopup_disable_default_html_caching")&&I&&I.removeWhenClosed&&(_.f(this.hostElement).removeChild(I),C&&this.popups_[C]&&delete this.popups_[C])},
shouldReusePopup_:function(I){return!(!I||!I.reusePopup)||!(!I||!I.beReused)},
ensurePopup_:function(I,C){this.maybeCreateNarrowMediaQuery_();var y=_.fH(I.popup,"renderer")||_.fH(I.popup,"dialog")||_.fH(I.popup,"model");if(!y)return _.er();y=_.V2K(y,cmM(this.popupContainerConfig,y));return _.er(this.getAndMaybeCreatePopup_(I,y,C))},
getAndMaybeCreatePopup_:function(I,C,y){var k=this.createCacheKey(C,I.uniqueId);if(this.popups_[k])return this.popups_[k];I=new ke({openPopupAction:I,target:y,container:this.hostElement,popupContainerConfig:this.popupContainerConfig,getElement:this.getElement.bind(this),removeWhenClosed:this.shouldRemoveWhenClosed_(C)});return this.popups_[k]=I},
getElement:function(){return null},
shouldRemoveWhenClosed_:function(I){return _.V("ytpopup_disable_default_html_caching")?I&&I.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",_.sb(this,this.openPopupQueryMatchesChanged_)),_.f(this.hostElement).appendChild(this.narrowMediaQuery_))},
openPopupQueryMatchesChanged_:function(I){I=I.detail.value;for(var C in this.popups_)YlH(this.popups_[C],I)},
onPopupIronOverlayClosed_:function(I){var C=I.currentTarget,y=_.VJz(C);y=y.length>0?y[0]:C;if(y.is!=="ytd-reel-watch-while-dialog-renderer"||I.target.is!=="tp-yt-iron-dropdown"){I.detail.popup=C;I.detail.popupRenderer=y;var k,F={context:{openingElement:((k=this.popups_[(y==null?void 0:y.is)||""])==null?void 0:k.target)||void 0}};Object.assign(F,I.detail);var z;_.k3((z=y.hostElement)!=null?z:y,"yt-popup-closed",F);C.removeEventListener("yt-refit",_.sb(this,this.refitPopup_));C.removeEventListener("yt-invalidate-popup-tabbables",
_.sb(this,this.handleInvalidatePopupTabbables_));C.removeEventListener("iron-overlay-canceled",_.sb(this,this.onPopupIronOverlayCanceled_));C.removeEventListener("iron-overlay-closed",_.sb(this,this.onPopupIronOverlayClosed_));this.dynamicallyPositionedElements_.delete(C)}},
onPopupIronOverlayCanceled_:function(I,C){var y=I.currentTarget,k=_.VJz(y);k=k.length>0?k[0]:y;if(k.is!=="ytd-reel-watch-while-dialog-renderer"||I.target.is!=="tp-yt-iron-dropdown"){var F;_.k3((F=k.hostElement)!=null?F:k,"yt-popup-canceled",I.detail);F=C?_.qc(C):null;(!C||["click","tap"].includes(C.type))&&!y.hasAttribute("force-close-on-outside-click")&&y.positionTarget&&F&&F.includes(y.positionTarget)&&I.preventDefault();y.restoreFocusOnClose=_.Ds.keyboardEventMatchesKeys(C,"esc")}},
onPopupIronOverlayOpened_:function(I){I=I.currentTarget;var C=_.VJz(I);C=C.length>0?C[0]:I;var y,k;_.k3((y=C.hostElement)!=null?y:C,"yt-popup-opened",(k=C.hostElement)!=null?k:C);I.keepBelowPlayer&&(this.ensurePopupBelowPlayer(I,!0),this.dynamicallyPositionedElements_.add(I));y=_.N().resolve(_.aU(_.Du));k=!!C.querySelector("#toast");y&&y.isKeyBoardInUse()&&!k&&(typeof C.focusFirstItem==="function"?C.focusFirstItem():(C=_.ZMd(I),C.length&&C[0].focus()));I.removeEventListener("iron-overlay-opened",
_.sb(this,this.onPopupIronOverlayOpened_))},
refitPopup_:function(I){I=I.currentTarget;I.refit&&I.refit()},
refitPopups_:function(){for(var I in this.popups_)this.popups_[I].refit()},
handleInvalidatePopupTabbables_:function(I){I=I.currentTarget;I.invalidateTabbables&&I.invalidateTabbables()},
createCacheKey:function(I,C){return _.V("web_popup_cache_key_killswitch")?C?I+"#"+C:I:C?"#"+C:I},
openSheet:function(I,C){var y=I==null?void 0:I.openPopupActionCommand;!y&&(I==null?0:I.viewModel)&&(y={openPopupAction:{popup:{sheetViewModel:I.viewModel},popupType:"CONTEXTUAL_SHEET"}});y&&this.handleOpenPopupAction(y,C)},
closeSheet:function(){this.handleClosePopupAction_("yt-sheet-view-model")},
isSheetOpen:function(){var I=this;return _.e(function(C){return C.return(I.handleGetOpenedPopupsAction_().filter(function(y){var k;return((k=y.openPopupAction)==null?void 0:k.popupType)==="CONTEXTUAL_SHEET"}).length>0)})},
getSheetContainerElement:function(){return this.hostElement},
openDialog:function(I,C,y){if(_.V("web_dialog_utils_killswitch")){var k=I==null?void 0:I.openPopupActionCommand,F=(y==null?0:y.ariaLabel)?{accessibilityData:{accessibilityData:{label:y.ariaLabel}}}:void 0;!k&&(I==null?0:I.viewModel)&&(k={openPopupAction:Object.assign({},{popup:{dialogViewModel:I.viewModel},popupType:(y==null?0:y.isModal)?"MODAL":"DIALOG"},F&&F)});k&&this.handleOpenPopupAction(k,C)}else{if(F=I==null?void 0:I.viewModel){var z=y=y===void 0?{}:y;y=z.ariaLabel;F={popup:{dialogViewModel:F},
popupType:z.isModal?"MODAL":"DIALOG"};z={accessibilityData:{label:y}};y&&(F.accessibilityData=z);F={openPopupAction:F}}else F=void 0;(F=(k=F)!=null?k:I==null?void 0:I.openPopupActionCommand)&&this.handleOpenPopupAction(F,C)}},
closeDialog:function(){this.handleClosePopupAction_("yt-dialog-view-model")},
isDialogOpen:function(){var I=this;return _.e(function(C){return C.return(I.handleGetOpenedPopupsAction_().filter(function(y){var k;return((k=y.openPopupAction)==null?void 0:k.popupType)==="DIALOG"}).length>0)})}}];var vOK;var WDL;var doM=_.hu(["about:blank"]),Ff=function(){var I=_.q.apply(this,arguments)||this;I.isMuted=!1;I.pageLoadTimeoutId=void 0;return I};
_.R(Ff,_.q);_.u=Ff.prototype;_.u.dataChanged=function(){var I=this;if(this.data){this.ytRendererBehavior.markDirty();this.isMuted=!1;var C=this.data.url,y=_.YV(C);_.V("enable_yt_ata_iframe_authuser")?(y=_.YV(C),_.jO(this.iframe,fkH(y))):_.jO(this.iframe,y);this.pageLoadTimeoutId=_.NU(_.R7(),function(){return void I.logStateChanged({pageLoadTimedOut:!0})},5E3);
_.O0({destination:window,iframe:this.iframe,origin:_.wRb(y.toString()),channelName:"ataiframe",onMessage:_.cXw(nrL,function(k){PuL(k.data)?(k=_.u7(k.data,1,_.ij,_.Hi()),k.length!==1?_.SN(Error("ol")):(k=k[0],k===3?(I.isMuted=!0,I.logStateChanged({adMuteRequested:!0})):k===1&&I.close())):_.SN(Error("pl"))}),
onEstablished:function(){I.cancelPageLoadTimeout();I.logStateChanged({pageLoadSucceeded:!0})}})}};
_.u.cancelPageLoadTimeout=function(){this.pageLoadTimeoutId!==void 0&&(_.R7().cancelJob(this.pageLoadTimeoutId),this.pageLoadTimeoutId=void 0)};
_.u.logStateChanged=function(I){var C;if((C=this.data)==null?0:C.trackingParams)I={adsClientData:{aboutThisAdData:I}},_.e2().stateChanged(this.data.trackingParams,I)};
_.u.close=function(){_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.handlesPopupClosed=function(I,C){var y=this,k,F;return _.e(function(z){if(z.nextAddress==1)return _.Aq("INNERTUBE_CLIENT_NAME")==="WEB_KIDS"?(_.Fe(y.hostElement,"on-about-this-ad-popup-closed",[y.isMuted,C]),z.jumpTo(0)):I&&SeS(I)?_.n(z,KjK(I),4):(y.isMuted&&_.Fe(y.hostElement,"yt-mute-ad-action",[y.is,y]),z.jumpTo(0));if(k=z.yieldResult){var c=F=new _.T7(k),r=y.isMuted;c.getOptions().includes("onAboutThisAdPopupClosed")?_.NK8(c,"onAboutThisAdPopupClosed",{isMuted:r,layoutId:C}):_.Ml("Calling onAboutThisAdPopupClosed when adModule is not loaded")}_.oI(z)})};
_.u.onPopupClosed=function(I){var C=this,y,k;return _.e(function(F){y=_.tM(doM);_.jO(C.iframe,y);C.cancelPageLoadTimeout();if(!C.data)return F.jumpTo(0);C.ytRendererBehavior.markDirty();k=I.detail.context.openingElement;return _.n(F,C.handlesPopupClosed(k,C.data.layoutId),0)})};
_.u.detached=function(){this.cancelPageLoadTimeout()};
_.u.ready=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
Ff.prototype.onPopupClosed=Ff.prototype.onPopupClosed;Ff.prototype.dataChanged=Ff.prototype.dataChanged;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ff.prototype,"ytRendererBehavior",void 0);_.E([_.z$("#iframe"),_.h("design:type",HTMLIFrameElement)],Ff.prototype,"iframe",void 0);_.E([_.d(),_.h("design:type",Object)],Ff.prototype,"data",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ff.prototype,"dataChanged",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype",Promise)],Ff.prototype,"onPopupClosed",null);Ff=_.E([_.lT({is:"yt-about-this-ad-renderer",disableElementRegistration:!0})],Ff);
_.Z(Ff,"yt-about-this-ad-renderer",function(){if(WDL===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;vOK===void 0&&(vOK=document.createElement("template"));var k=vOK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);WDL=I}I=WDL;return I},{mode:2});var xoL;var qlR;var uc=function(I){var C=Error.call(this,"Try adding a file that's {$maxFileSizeMB}MB or smaller");this.message=C.message;"stack"in C&&(this.stack=C.stack);this.maxFileSizeMB=I;Object.setPrototypeOf(this,uc.prototype)};
_.R(uc,Error);var moL=function(I,C){var y=Error.call(this,"Images must be at least {$minWidth} x {$minHeight} pixels");this.message=y.message;"stack"in y&&(this.stack=y.stack);this.minWidth=I;this.minHeight=C;Object.setPrototypeOf(this,moL.prototype)};
_.R(moL,Error);var Zcy=function(I){this.requirements=I;this.JSC$18443_maxFileSize=I.maxFileSizeMB*1024*1024},B2Y=function(I,C){if(C.size>I.JSC$18443_maxFileSize)throw new uc(I.requirements.maxFileSizeMB);
};var EOR=function(I,C){this.canvas=I;this.imageEditorBuilder=C};
EOR.prototype.addEventListeners=function(I){var C=function(F){h2L(I,F)};
this.JSC$18449_mouseDownEvent=C;var y=function(F){UoK(I,F)};
this.JSC$18449_mouseMoveEvent=y;var k=function(){Hc8(I)};
this.JSC$18449_mouseUpEvent=k;this.canvas.addEventListener("mousedown",C);this.canvas.addEventListener("mousemove",y);document.addEventListener("mouseup",k)};
EOR.prototype.removeEventListeners=function(){this.JSC$18449_mouseDownEvent&&this.canvas.removeEventListener("mousedown",this.JSC$18449_mouseDownEvent);this.JSC$18449_mouseMoveEvent&&this.canvas.removeEventListener("mousemove",this.JSC$18449_mouseMoveEvent);this.JSC$18449_mouseUpEvent&&document.removeEventListener("mouseup",this.JSC$18449_mouseUpEvent)};
var tWH=function(I,C){I.removeEventListeners();return new Promise(function(y){var k=new Image;k.crossOrigin="anonymous";k.onload=function(){var F=I.imageEditorBuilder(I.canvas,k);I.addEventListeners(F);y(F)};
k.src=C})},za=function(I,C,y,k,F,z,c,r){this.canvas=I;
this.image=C;this.requiredRatio=y;this.minImageCropDimension=k;this.minOutputImageResolution=F;this.component=z;this.styleFocusedCorner=r===void 0?!0:r;this.action=2;this.focusedCorner=this.resizeCorner=0;I=this.canvas.getContext("2d");if(!I)throw Error("ql");this.ctx=I;this.canvasMargin=c!=null?c:24;this.canvasInnerWidth=this.canvas.width-2*this.canvasMargin;c=this.image;I=this.canvasInnerWidth/c.width;c.height*I>912&&(I=c.width/c.height*912/c.width);c=I;this.scaledImageWidth=this.canvas.width%2?
g9P(this.image.width*c):ASj(this.image.width*c);this.scaledImageHeight=Math.round(this.image.height*c);this.canvas.height=this.scaledImageHeight+2*this.canvasMargin;this.horizontalMargin=(this.canvas.width-this.scaledImageWidth)/2;this.JSC$18452_overlayMarginBottom=this.JSC$18452_overlayMarginTop=this.canvasMargin;this.JSC$18452_overlayMarginRight=this.JSC$18452_overlayMarginLeft=this.horizontalMargin;this.JSC$18452_overlayWidth=this.scaledImageWidth;this.JSC$18452_overlayHeight=this.scaledImageHeight;
I=this.image.width/this.image.height;I>this.requiredRatio?(this.JSC$18452_overlayWidth=this.canvas.width%2?g9P(this.scaledImageHeight*this.requiredRatio):ASj(this.scaledImageHeight*this.requiredRatio),this.JSC$18452_overlayMarginRight=this.JSC$18452_overlayMarginLeft=(this.canvas.width-this.JSC$18452_overlayWidth)/2):I<this.requiredRatio&&(this.JSC$18452_overlayHeight=this.canvas.height%2?g9P(this.scaledImageWidth/this.requiredRatio):ASj(this.scaledImageWidth/this.requiredRatio),this.JSC$18452_overlayMarginBottom=
this.JSC$18452_overlayMarginTop=(this.canvas.height-this.JSC$18452_overlayHeight)/2);this.minOverlayWidth=Math.min(this.minImageCropDimension[0]*c,this.scaledImageWidth);JCR(this)};
za.prototype.getContext=function(){return this.ctx};
var h2L=function(I,C){C={x:Math.round(C.pageX-I.canvas.getBoundingClientRect().left),y:Math.round(C.pageY-I.canvas.getBoundingClientRect().top)};I.dragStart=C;OcM(I,C)!==0?(I.action=1,a1B(I,C),I.resizeCorner=OcM(I,C)):C.x>I.JSC$18452_overlayMarginLeft&&C.x<I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth&&C.y>I.JSC$18452_overlayMarginTop&&C.y<I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight&&(I.action=0)},MWH=function(I,C){switch(C){case 1:return{x:I.JSC$18452_overlayMarginLeft,
y:I.JSC$18452_overlayMarginTop};case 2:return{x:I.JSC$18452_overlayMarginLeft,y:I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight};case 3:return{x:I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth,y:I.JSC$18452_overlayMarginTop};case 4:return{x:I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth,y:I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight};default:throw Error("rl");}},CVR=function(I,C){if(I.focusedCorner!==0){I.dragStart=MWH(I,I.focusedCorner);
I.action=1;I.resizeCorner=I.focusedCorner;var y=I.dragStart.x,k=I.dragStart.y;switch(C){case 0:I.focusedCorner===1||I.focusedCorner===4?(y-=10,k-=10):(y-=10,k+=10);break;case 1:I.focusedCorner===1||I.focusedCorner===4?(y+=10,k+=10):(y+=10,k-=10);break;case 2:y=I.focusedCorner===1||I.focusedCorner===4?y-10:y+10;k-=10;break;case 3:y=I.focusedCorner===1||I.focusedCorner===4?y+10:y-10;k+=10;break;default:throw Error("sl");}IGH(I,{x:y,y:k});JCR(I);I.action=2;I.dragStart=void 0}},UoK=function(I,C){C={x:Math.round(C.pageX-
I.canvas.getBoundingClientRect().left),
y:Math.round(C.pageY-I.canvas.getBoundingClientRect().top)};a1B(I,C);switch(I.action){case 1:IGH(I,C);break;case 0:I.dragStart&&(I.JSC$18452_overlayMarginLeft=Math.max(I.horizontalMargin,Math.min(I.JSC$18452_overlayMarginLeft-(I.dragStart.x-C.x),I.horizontalMargin+I.scaledImageWidth-I.JSC$18452_overlayWidth)),I.JSC$18452_overlayMarginRight=I.canvas.width-I.JSC$18452_overlayMarginLeft-I.JSC$18452_overlayWidth,I.JSC$18452_overlayMarginTop=Math.max(I.canvasMargin,Math.min(I.JSC$18452_overlayMarginTop-
(I.dragStart.y-C.y),I.scaledImageHeight-I.JSC$18452_overlayHeight+I.canvasMargin)),I.JSC$18452_overlayMarginBottom=I.canvas.height-(I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight));break;default:return}JCR(I);I.dragStart=C},Hc8=function(I){I.action=2;
I.dragStart=void 0;document.body.style.cursor="auto"},a1B=function(I,C){switch(OcM(I,C)){case 1:document.body.style.cursor="nw-resize";
break;case 3:document.body.style.cursor="ne-resize";break;case 2:document.body.style.cursor="sw-resize";break;case 4:document.body.style.cursor="se-resize";break;default:I.action!==1&&(document.body.style.cursor="auto")}},OcM=function(I,C){var y=I.JSC$18452_overlayMarginLeft-5,k=I.JSC$18452_overlayMarginTop-5,F=I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth-5;
I=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-5;return sKP(C,{x:y,y:k})?1:sKP(C,{x:F,y:k})?3:sKP(C,{x:y,y:I})?2:sKP(C,{x:F,y:I})?4:0},sKP=function(I,C){return I.x>=C.x&&I.x<=C.x+10&&I.y>=C.y&&I.y<=C.y+10},IGH=function(I,C){if(I.dragStart)switch(I.resizeCorner){case 2:Math.abs((I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth-C.x)/(C.y-I.JSC$18452_overlayMarginTop))>=I.requiredRatio?oWK(I,C.x):y8H(I,C.y);
break;case 1:Math.abs((I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth-C.x)/(I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-C.y))>=I.requiredRatio?krR(I,C.x):y8H(I,C.y);break;case 4:Math.abs((C.x-I.JSC$18452_overlayMarginLeft)/(C.y-I.JSC$18452_overlayMarginTop))>=I.requiredRatio?oWK(I,C.x):FT8(I,C.y);break;case 3:Math.abs((C.x-I.JSC$18452_overlayMarginLeft)/(I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-C.y))>=I.requiredRatio?krR(I,C.x):FT8(I,C.y);break;default:throw Error("tl");
}},oWK=function(I,C){var y=I.JSC$18452_overlayMarginTop;
I.JSC$18452_overlayMarginBottom=uEH(I,C);I.JSC$18452_overlayHeight=I.canvas.height-I.JSC$18452_overlayMarginBottom-y;I.JSC$18452_overlayWidth=Math.round(I.JSC$18452_overlayHeight*I.requiredRatio);zcY(I)},krR=function(I,C){var y=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight;
I.JSC$18452_overlayMarginTop=uEH(I,C);I.JSC$18452_overlayHeight=y-I.JSC$18452_overlayMarginTop;I.JSC$18452_overlayWidth=Math.round(I.JSC$18452_overlayHeight*I.requiredRatio);zcY(I)},zcY=function(I){switch(I.resizeCorner){case 2:case 1:I.JSC$18452_overlayMarginLeft=I.canvas.width-I.JSC$18452_overlayMarginRight-I.JSC$18452_overlayWidth;
break;case 4:case 3:I.JSC$18452_overlayMarginRight=I.canvas.width-I.JSC$18452_overlayMarginLeft-I.JSC$18452_overlayWidth;break;default:throw Error("tl");}},y8H=function(I,C){var y=I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth;
I.JSC$18452_overlayMarginLeft=T_L(I,C);I.JSC$18452_overlayWidth=y-I.JSC$18452_overlayMarginLeft;I.JSC$18452_overlayHeight=Math.round(I.JSC$18452_overlayWidth/I.requiredRatio);c8L(I)},FT8=function(I,C){var y=I.JSC$18452_overlayMarginLeft;
I.JSC$18452_overlayMarginRight=T_L(I,C);I.JSC$18452_overlayWidth=I.canvas.width-I.JSC$18452_overlayMarginRight-y;I.JSC$18452_overlayHeight=Math.round(I.JSC$18452_overlayWidth/I.requiredRatio);c8L(I)},c8L=function(I){switch(I.resizeCorner){case 2:case 4:I.JSC$18452_overlayMarginBottom=I.canvas.height-I.JSC$18452_overlayMarginTop-I.JSC$18452_overlayHeight;
break;case 1:case 3:I.JSC$18452_overlayMarginTop=I.canvas.height-I.JSC$18452_overlayMarginBottom-I.JSC$18452_overlayHeight;break;default:throw Error("tl");}},uEH=function(I,C){switch(I.resizeCorner){case 2:C=I.canvas.height-(I.JSC$18452_overlayMarginTop+ecY(I,C));
break;case 4:C=I.canvas.height-(I.JSC$18452_overlayMarginTop+r88(I,C));break;case 1:C=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-ecY(I,C);break;case 3:C=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-r88(I,C);break;default:throw Error("tl");}return Math.max(C,I.canvasMargin)},ecY=function(I,C){C=I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth-Math.max(C,I.horizontalMargin);
C=C<0?I.JSC$18452_overlayWidth:Math.max(C,I.minOverlayWidth);return Math.round(C/I.requiredRatio)},r88=function(I,C){C=I.canvas.width-Math.max(I.canvas.width-C,I.horizontalMargin)-I.JSC$18452_overlayMarginLeft;
C=C<0?I.JSC$18452_overlayWidth:Math.max(C,I.minOverlayWidth);return Math.round(C/I.requiredRatio)},T_L=function(I,C){switch(I.resizeCorner){case 2:C=I.canvas.width-I.JSC$18452_overlayMarginRight-isR(I,C);
break;case 4:C=I.canvas.width-I.JSC$18452_overlayMarginLeft-isR(I,C);break;case 1:C=I.canvas.width-I.JSC$18452_overlayMarginRight-wqj(I,C);break;case 3:C=I.canvas.width-I.JSC$18452_overlayMarginLeft-wqj(I,C);break;default:throw Error("tl");}return Math.max(C,I.horizontalMargin)},isR=function(I,C){C=I.canvas.height-Math.max(I.canvas.height-C,I.canvasMargin)-I.JSC$18452_overlayMarginTop;
return C<0?I.JSC$18452_overlayWidth:Math.max(Math.round(C*I.requiredRatio),I.minOverlayWidth)},wqj=function(I,C){C=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-Math.max(C,I.canvasMargin);
return C<0?I.JSC$18452_overlayWidth:Math.max(Math.round(C*I.requiredRatio),I.minOverlayWidth)},JCR=function(I){I.ctx.clearRect(0,0,I.canvas.width,I.canvas.height);
I.ctx.drawImage(I.image,0,0,I.image.width,I.image.height,I.horizontalMargin,I.canvasMargin,I.canvas.width-2*I.horizontalMargin,I.scaledImageHeight);I.ctx.fillStyle="rgba(0, 0, 0, 0.7)";I.ctx.fillRect(I.horizontalMargin,I.JSC$18452_overlayMarginTop,I.JSC$18452_overlayMarginLeft-I.horizontalMargin,I.JSC$18452_overlayHeight);I.ctx.fillRect(I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth,I.JSC$18452_overlayMarginTop,I.JSC$18452_overlayMarginRight-I.horizontalMargin,I.JSC$18452_overlayHeight);I.ctx.fillRect(I.horizontalMargin,
I.canvasMargin,I.scaledImageWidth,I.JSC$18452_overlayMarginTop-I.canvasMargin);I.ctx.fillRect(I.horizontalMargin,I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight,I.scaledImageWidth,I.JSC$18452_overlayMarginBottom-I.canvasMargin);I.drawOverlay();I.component&&_.k3(I.component,"image-updated")};
za.prototype.drawOverlay=function(){this.ctx.lineWidth=2;this.ctx.strokeStyle="#3EA6FF";this.ctx.strokeRect(this.JSC$18452_overlayMarginLeft,this.JSC$18452_overlayMarginTop,this.JSC$18452_overlayWidth,this.JSC$18452_overlayHeight);nWK(this)};
var nWK=function(I){var C=I.JSC$18452_overlayMarginLeft-5,y=I.JSC$18452_overlayMarginTop-5,k=I.JSC$18452_overlayMarginLeft+I.JSC$18452_overlayWidth-5,F=I.JSC$18452_overlayMarginTop+I.JSC$18452_overlayHeight-5;I.ctx.fillStyle="#FFF";I.ctx.fillRect(C,y,10,10);I.ctx.strokeRect(C,y,10,10);I.ctx.fillRect(k,y,10,10);I.ctx.strokeRect(k,y,10,10);I.ctx.fillRect(C,F,10,10);I.ctx.strokeRect(C,F,10,10);I.ctx.fillRect(k,F,10,10);I.ctx.strokeRect(k,F,10,10);if(I.focusedCorner!==0&&I.styleFocusedCorner){I.ctx.lineWidth=
4;I.ctx.strokeStyle="#3EA6FF";switch(I.focusedCorner){case 1:--C;--y;break;case 2:--C;y=F-1;break;case 3:C=k-1;--y;break;case 4:C=k-1;y=F-1;break;default:return}I.ctx.strokeRect(C,y,12,12)}};
za.prototype.crop=function(I,C){C=C===void 0?!0:C;var y=this.image.width/this.scaledImageWidth,k=document.createElement("canvas"),F=this.minOutputImageResolution?this.minOutputImageResolution[1]:this.minImageCropDimension[1],z=this.JSC$18452_overlayWidth*y,c=this.JSC$18452_overlayHeight*y;k.width=Math.max(z,this.minOutputImageResolution?this.minOutputImageResolution[0]:this.minImageCropDimension[0]);k.height=Math.max(c,F);I&&(k.width=Math.min(k.width,k.height),k.height=Math.min(k.width,k.height));
I=k.getContext("2d");if(!I)throw Error("hl");F=(this.JSC$18452_overlayMarginLeft-this.horizontalMargin)*y;y*=this.JSC$18452_overlayMarginTop-this.canvasMargin;C||(I.fillStyle="white",I.fillRect(0,0,k.width,k.height));I.drawImage(this.image,F,y,z,c,0,0,k.width,k.height);return k};var PVH=function(I,C,y,k,F){za.call(this,I,C,y,k,void 0,F,8,!1)};
_.R(PVH,za);PVH.prototype.drawOverlay=function(){var I=this.getContext(),C=this.JSC$18452_overlayWidth,y=this.JSC$18452_overlayHeight,k=this.JSC$18452_overlayMarginTop,F=this.JSC$18452_overlayMarginLeft;I.lineWidth=2;I.strokeStyle="#3EA6FF";I.beginPath();I.arc(F+C/2,k+y/2,C/2,0,2*Math.PI);I.stroke();I.strokeRect(F,k,C,y);nWK(this)};
var LTM={maxFileSizeMB:15,minWidth:98,minHeight:98},D5B=["image/png","image/jpeg","image/gif"],Ta=function(){var I=_.q.apply(this,arguments)||this;I.fileSelectorFocusListener=null;I.errorMessage=null;I.isLoading=!0;I.hideContainer=!0;I.actionMap={"yt-upload-image-to-scotty-command":"handleUploadImageToScottyCommand","yt-image-selection-error-action":"handleImageSelectionErrorAction"};return I};
_.R(Ta,_.q);_.u=Ta.prototype;_.u.cleanupFocusListener=function(){this.fileSelectorFocusListener&&window.removeEventListener("focus",this.fileSelectorFocusListener)};
_.u.setLoadingState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!0);this.set("data.cancelButton.buttonRenderer.isDisabled",!0);this.isLoading=!0;this.errorMessage=null};
_.u.computePlaylistThumbnail=function(I){return I==="IMAGE_TYPE_PLAYLIST_THUMBNAIL"};
_.u.resetErrorState=function(){this.set("data.updateButton.buttonRenderer.isDisabled",!1);this.set("data.cancelButton.buttonRenderer.isDisabled",!1);this.isLoading=!1;this.errorMessage=null;this.isPlaylistThumbnail||_.Fe(this.hostElement,"yt-image-selection-reset-error-action",[])};
_.u.setErrorState=function(I){this.resetErrorState();I&&(this.errorMessage=I)};
_.u.showPopup=function(){var I=this;this.hideContainer=!1;_.NU(_.b$,function(){_.k3(I.hostElement,"yt-refit")});
this.isLoading=!1};
_.u.resetFileSelector=function(){this.fileSelector.value="";this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.u.closePopup=function(){this.resetFileSelector();_.Fe(this.hostElement,"yt-close-popup-action",[this.is])};
_.u.onCancelTap=function(){this.isPlaylistThumbnail||_.Fe(this.hostElement,"yt-show-caller-popup-action",[]);this.closePopup()};
_.u.openFileSelector=function(){var I=this;this.resetErrorState();try{this.fileSelector.click(),this.fileSelectorFocusListener=function(){_.NU(_.b$,function(){setTimeout(function(){if(!I.fileSelector.files||I.fileSelector.files.length===0)I.onCancelTap();I.cleanupFocusListener()},2E3)},500)},window.addEventListener("focus",this.fileSelectorFocusListener)}catch(C){C instanceof Error?_.GB(C):_.fi(new _.ph(JSON.stringify(C)))}};
_.u.handleFileSelection=function(){var I=this,C,y,k,F,z,c;return _.e(function(r){switch(r.nextAddress){case 1:_.aM(r,2);if(!I.fileSelector.files||!I.imageEditorCanvas)return I.onCancelTap(),r.return();C=I.fileSelector.files[0];B2Y(I.imageChecker,C);_.aM(r,4);return _.n(r,uyK(C),6);case 6:I.mimeType=r.yieldResult;_.dC(r,5,2);break;case 4:_.sj(r,2),_.Fe(I.hostElement,"yt-image-selection-error-action",[(y=I.data)==null?void 0:y.genericImageLoadErrorMessage]),I.onCancelTap();case 5:k=new FileReader;k.addEventListener("load",
function(){var w,L;return _.e(function(D){if(D.nextAddress==1){if(!k.result)return _.SN(Error("jl")),D.return();w=k.result;L=new Image;L.src=w;L.onload=function(){try{var p=I.imageChecker;if(L.width<p.requirements.minWidth||L.height<p.requirements.minHeight)throw new moL(p.requirements.minWidth,p.requirements.minHeight);}catch(X){if(X instanceof moL){var Q;_.Fe(I.hostElement,"yt-image-selection-error-action",[(Q=I.data)==null?void 0:Q.imageDimensionErrorMessage]);I.logImageDimensionErrorVe()}else X instanceof
Error?_.GB(X):(p=new _.ph(JSON.stringify(X)),_.GB(p));I.onCancelTap()}I.showPopup()};
L.onerror=function(){var p;_.Fe(I.hostElement,"yt-image-selection-error-action",[(p=I.data)==null?void 0:p.genericImageLoadErrorMessage]);I.onCancelTap()};
return _.n(D,tWH(I.imageEditorCanvas,w),2)}I.imageEditor=D.yieldResult;I.updatePositionOfAllCorners();I.addEventListeners(I.imageEditor);_.oI(D)})},!1);
k.readAsDataURL(C);_.dC(r,0);break;case 2:F=_.sj(r),F instanceof uc?_.Fe(I.hostElement,"yt-image-selection-error-action",[(z=I.data)==null?void 0:z.imageSizeErrorMessage]):(F instanceof Error?_.GB(F):_.fi(new _.ph(JSON.stringify(F))),_.Fe(I.hostElement,"yt-image-selection-error-action",[(c=I.data)==null?void 0:c.genericImageLoadErrorMessage])),I.onCancelTap(),_.oI(r)}})};
_.u.logImageDimensionErrorVe=function(){if(this.isPlaylistThumbnail){var I=_.c9(_.e2(),{veType:232707,visualElement:_.Dn(232707)});I&&(I={visualElement:I},_.Tp().reportShown(I))}};
_.u.handleImageSelectionErrorAction=function(I){this.isPlaylistThumbnail&&_.CoX(this.hostElement,I)};
_.u.convertToImageFormatBundle=function(I){var C=this,y,k,F;return _.e(function(z){switch(z.nextAddress){case 1:return y=I.toDataURL(C.outputMimeType,1),_.n(z,zdB(y),2);case 2:k=z.yieldResult;_.aM(z,3);B2Y(C.imageChecker,k);_.dC(z,4);break;case 3:F=_.sj(z);if(!(F instanceof uc))throw F;_.SN(new _.ph("Output size is bigger than input size for image",C.mimeType,C.outputMimeType,k.size));y=I.toDataURL("image/jpeg",.95);return _.n(z,zdB(y),6);case 6:k=z.yieldResult;case 4:return z.return({dataUrl:y,imageFile:k})}})};
_.u.handleUploadImageToScottyCommand=function(I){var C=this,y,k,F,z,c,r,w,L,D,p;return _.e(function(Q){switch(Q.nextAddress){case 1:if(!C.imageEditor||!_.l(I,fsH))return Q.return();y=_.l(I,fsH).scottyUploadUrl;if(!y){var X=new _.ph("Cannot handle UploadImageToScottyCommand without scotty upload\n    URL");_.GB(X);return Q.return()}_.aM(Q,2);C.setLoadingState();k=C.imageEditor.crop(!1,!1);return _.n(Q,C.convertToImageFormatBundle(k),4);case 4:return F=Q.yieldResult,_.n(Q,kLL(F.imageFile,y),5);case 5:z=
Q.yieldResult;((c=C.data)==null?0:c.onUploadEndpoint)?(r=C.buildUploadServiceEndpoint(z),C.ytComponentBehavior.resolveCommand(r),w=_.l(r,_.bv),((L=w)==null?0:L.params)?C.closePopup():C.resetFileSelector()):(_.Fe(C.hostElement,"yt-image-updated-action",[F.dataUrl,z]),C.closePopup());_.dC(Q,0);break;case 2:D=_.sj(Q),C.setErrorState((p=C.data)==null?void 0:p.uploadErrorMessage),D instanceof Error?_.GB(D):(X=new _.ph(JSON.stringify(D)),_.GB(X)),_.oI(Q)}})};
_.u.buildUploadServiceEndpoint=function(I){return this.data&&this.data.onUploadEndpoint?(this.set("data.onUploadEndpoint.playlistEditEndpoint.actions.0.addedCustomThumbnail.playlistScottyEncryptedBlobId",I),this.data.onUploadEndpoint):null};
_.u.dataChanged=function(){var I=this,C;return _.e(function(y){if(y.nextAddress==1){if(!I.data||!I.canvasElement)return y.return();I.data.imageRatio&&I.data.minImageCropWidth||_.fi(new _.ph("Renderer data is incomplete: missing image_ratio or \nmin_image_crop_width"));C=function(k,F){return I.data.imageType==="IMAGE_TYPE_AVATAR"?new PVH(k,F,I.data.imageRatio,[I.data.minImageCropWidth,I.data.minImageCropWidth/I.data.imageRatio],I.hostElement):new za(k,F,I.data.imageRatio,[I.data.minImageCropWidth,
I.data.minImageCropWidth/I.data.imageRatio],void 0,I.hostElement,8,!1)};
I.imageEditorCanvas=new EOR(I.canvasElement,C);return I.data.url?_.n(y,tWH(I.imageEditorCanvas,I.data.url),3):(I.hideContainer=!0,I.openFileSelector(),y.jumpTo(0))}I.imageEditor=y.yieldResult;I.showPopup();I.addEventListeners(I.imageEditor);_.oI(y)})};
_.u.addEventListeners=function(I){this.removeEventListeners();var C=function(F){h2L(I,F)};
this.JSC$18460_mouseDownEvent=C;var y=function(F){UoK(I,F)};
this.JSC$18460_mouseMoveEvent=y;var k=function(){Hc8(I)};
this.JSC$18460_mouseUpEvent=k;this.topLeftCorner.addEventListener("mousedown",C);this.topLeftCorner.addEventListener("mousemove",y);this.topLeftCorner.addEventListener("mouseup",k);this.topRightCorner.addEventListener("mousedown",C);this.topRightCorner.addEventListener("mousemove",y);this.topRightCorner.addEventListener("mouseup",k);this.bottomLeftCorner.addEventListener("mousedown",C);this.bottomLeftCorner.addEventListener("mousemove",y);this.bottomLeftCorner.addEventListener("mouseup",k);this.bottomRightCorner.addEventListener("mousedown",
C);this.bottomRightCorner.addEventListener("mousemove",y);this.bottomRightCorner.addEventListener("mouseup",k)};
_.u.removeEventListeners=function(){this.JSC$18460_mouseDownEvent&&(this.topLeftCorner.removeEventListener("mousedown",this.JSC$18460_mouseDownEvent),this.topRightCorner.removeEventListener("mousedown",this.JSC$18460_mouseDownEvent),this.bottomLeftCorner.removeEventListener("mousedown",this.JSC$18460_mouseDownEvent),this.bottomRightCorner.removeEventListener("mousedown",this.JSC$18460_mouseDownEvent));this.JSC$18460_mouseMoveEvent&&(this.topLeftCorner.removeEventListener("mousemove",this.JSC$18460_mouseMoveEvent),
this.topRightCorner.removeEventListener("mousemove",this.JSC$18460_mouseMoveEvent),this.bottomLeftCorner.removeEventListener("mousemove",this.JSC$18460_mouseMoveEvent),this.bottomRightCorner.removeEventListener("mousemove",this.JSC$18460_mouseMoveEvent));this.JSC$18460_mouseUpEvent&&(this.topLeftCorner.removeEventListener("mouseup",this.JSC$18460_mouseUpEvent),this.topRightCorner.removeEventListener("mouseup",this.JSC$18460_mouseUpEvent),this.bottomLeftCorner.removeEventListener("mouseup",this.JSC$18460_mouseUpEvent),
this.bottomRightCorner.removeEventListener("mouseup",this.JSC$18460_mouseUpEvent))};
_.u.setFocusInImageEditor=function(){if(!this.imageEditor)return!1;for(var I=document.activeElement;I&&I.shadowRoot&&I.shadowRoot.activeElement;)I=I.shadowRoot.activeElement;switch(I){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};
_.u.updatePositionOfCorner=function(I,C){var y=I.y-C.offsetHeight/2+4;C.style.left=I.x-C.offsetWidth/2+16+"px";C.style.top=y+"px"};
_.u.updatePositionOfAllCorners=function(){if(this.imageEditor)for(var I=_.T([{corner:1,div:this.topLeftCorner},{corner:3,div:this.topRightCorner},{corner:2,div:this.bottomLeftCorner},{corner:4,div:this.bottomRightCorner}]),C=I.next();!C.done;C=I.next()){C=C.value;var y=MWH(this.imageEditor,C.corner);this.updatePositionOfCorner(y,C.div)}};
_.u.onLeft=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(CVR(this.imageEditor,0),this.updatePositionOfAllCorners(),I.preventDefault())};
_.u.onRight=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(CVR(this.imageEditor,1),this.updatePositionOfAllCorners(),I.preventDefault())};
_.u.onUp=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(CVR(this.imageEditor,2),this.updatePositionOfAllCorners(),I.preventDefault())};
_.u.onDown=function(I){this.imageEditor&&this.setFocusInImageEditor()&&(CVR(this.imageEditor,3),this.updatePositionOfAllCorners(),I.preventDefault())};
_.u.beforeRegister=function(){this.ironA11yKeysBehavior.keyBindings={left:"onLeft",right:"onRight",up:"onUp",down:"onDown"}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.detached=function(){this.removeEventListeners();this.cleanupFocusListener();this.fileSelectorFocusListener=null};
_.H1.Object.defineProperties(Ta.prototype,{outputMimeType:{configurable:!0,enumerable:!0,get:function(){return this.mimeType&&D5B.includes(this.mimeType)?this.mimeType:"image/jpeg"}},
imageChecker:{configurable:!0,enumerable:!0,get:function(){var I,C,y;((C=this.data)==null?0:C.imageRatio)&&((y=this.data)==null?0:y.minImageCropWidth)?I={maxFileSizeMB:15,minWidth:this.data.minImageCropWidth,minHeight:this.data.minImageCropWidth/this.data.imageRatio}:I=LTM;return new Zcy(I)}}});
Ta.prototype.updatePositionOfAllCorners=Ta.prototype.updatePositionOfAllCorners;Ta.prototype.dataChanged=Ta.prototype.dataChanged;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ta.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],Ta.prototype,"ytComponentBehavior",void 0);_.E([_.g(_.Ds),_.h("design:type",Object)],Ta.prototype,"ironA11yKeysBehavior",void 0);
_.E([_.z$("#canvas"),_.h("design:type",HTMLCanvasElement)],Ta.prototype,"canvasElement",void 0);_.E([_.z$("#file-selector"),_.h("design:type",HTMLInputElement)],Ta.prototype,"fileSelector",void 0);_.E([_.z$("#top-left-corner"),_.h("design:type",HTMLDivElement)],Ta.prototype,"topLeftCorner",void 0);_.E([_.z$("#top-right-corner"),_.h("design:type",HTMLDivElement)],Ta.prototype,"topRightCorner",void 0);
_.E([_.z$("#bottom-left-corner"),_.h("design:type",HTMLDivElement)],Ta.prototype,"bottomLeftCorner",void 0);_.E([_.z$("#bottom-right-corner"),_.h("design:type",HTMLDivElement)],Ta.prototype,"bottomRightCorner",void 0);_.E([_.d(),_.h("design:type",Object)],Ta.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ta.prototype,"errorMessage",void 0);_.E([_.d(),_.h("design:type",Object)],Ta.prototype,"isLoading",void 0);_.E([_.d(),_.h("design:type",Object)],Ta.prototype,"hideContainer",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computePlaylistThumbnail(data.imageType)"}),_.h("design:type",Boolean)],Ta.prototype,"isPlaylistThumbnail",void 0);_.E([_.rW("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],Ta.prototype,"dataChanged",null);_.E([_.km("image-updated"),_.km("yt-refit"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ta.prototype,"updatePositionOfAllCorners",null);
Ta=_.E([_.lT({is:"yt-image-editor-renderer",disableElementRegistration:!0})],Ta);
_.Z(Ta,"yt-image-editor-renderer",function(){if(qlR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;xoL===void 0&&(xoL=document.createElement("template"));var k=xoL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);qlR=I}I=qlR;return I},{mode:2});var pq8;var QKj;var cc=function(){return _.q.apply(this,arguments)||this};
_.R(cc,_.q);cc.prototype.updateMinutesFromBinding=function(I){this.handleMinutesChanged&&this.handleMinutesChanged(I)};
cc.prototype.updateSecondsFromBinding=function(I){this.handleSecondsChanged&&this.handleSecondsChanged(I)};
cc.prototype.updateDescriptionFromBinding=function(I){this.handleDescriptionChanged&&this.handleDescriptionChanged(I)};
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],cc.prototype,"ytComponentBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],cc.prototype,"data",void 0);_.E([_.d(),_.h("design:type",String)],cc.prototype,"minutes",void 0);_.E([_.d(),_.h("design:type",String)],cc.prototype,"seconds",void 0);_.E([_.d(),_.h("design:type",String)],cc.prototype,"description",void 0);_.E([_.d(),_.h("design:type",Function)],cc.prototype,"handleMinutesChanged",void 0);
_.E([_.d(),_.h("design:type",Function)],cc.prototype,"handleSecondsChanged",void 0);_.E([_.d(),_.h("design:type",Function)],cc.prototype,"handleDescriptionChanged",void 0);_.E([_.d(),_.h("design:type",Number)],cc.prototype,"characterLimit",void 0);_.E([_.d(),_.h("design:type",Number)],cc.prototype,"textNumRows",void 0);cc=_.E([_.lT({is:"yt-report-details-form-content",disableElementRegistration:!0})],cc);
_.Z(cc,"yt-report-details-form-content",function(){if(QKj===void 0){var I=document.createElement("template");_.Y(I,'\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>');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;pq8===void 0&&(pq8=document.createElement("template"));var k=pq8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);QKj=I}I=QKj;return I},{mode:2});var N_R;var VnK;var eC=function(){var I=_.q.apply(this,arguments)||this;I.updateMinutesFromBinding=function(C){I.minutes=C.detail.value};
I.updateSecondsFromBinding=function(C){I.seconds=C.detail.value};
I.updateDescriptionFromBinding=function(C){I.description=C.detail.value};
return I};
_.R(eC,_.q);_.u=eC.prototype;_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isMusic&&(this.seconds=this.minutes="0")};
_.u.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"}}}};
_.u.ready=function(){_.f(this.hostElement).querySelector("#submit-button").addEventListener("yt-action",this.onSubmitYtAction.bind(this))};
_.u.onSubmitYtAction=function(I){var C=I.detail;C.actionName==="yt-service-request"&&(C=C.args[1],C.flagEndpoint&&(I.stopPropagation(),this.refireAction(C)))};
_.u.refireAction=function(I){var C={text:this.description,minutes:Number(this.minutes),seconds:Number(this.seconds)};this.vssId&&(C.vss_id=this.vssId);_.Tg(this.hostElement,[I,C]);this.submitDisabled=!0};
_.u.dataChanged=function(){var I=this;this.seconds=this.minutes="";this.isMusic&&(this.seconds=this.minutes="0");this.vssId=this.description="";this.submitDisabled=!1;var C=_.hU();C&&C.getPlayerPromise().then(function(y){var k=y.getOption("cc","track")||y.getOption("captions","track");k&&(I.vssId=k.vss_id);y=y.getCurrentTime();I.minutes=Math.floor(y/60).toString();I.seconds=(Math.floor(y)%60).toString()})};
_.u.updateSubmitButtonState=function(){var I;((I=this.data)==null?0:I.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==="")};
_.u.onYtServiceRequestCompleted=function(){_.Fe(this.hostElement,"yt-close-popup-action")};
_.u.onYtServiceRequestError=function(){this.submitDisabled=!1};
_.H1.Object.defineProperties(eC.prototype,{characterLimit:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.characterLimit)||500}},
textNumRows:{configurable:!0,enumerable:!0,get:function(){var I;return((I=this.data)==null?void 0:I.textNumRows)||4}}});
eC.prototype.onYtServiceRequestError=eC.prototype.onYtServiceRequestError;eC.prototype.onYtServiceRequestCompleted=eC.prototype.onYtServiceRequestCompleted;eC.prototype.updateSubmitButtonState=eC.prototype.updateSubmitButtonState;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],eC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],eC.prototype,"ytRendererBehavior",void 0);
_.E([_.d({observer:"dataChanged"}),_.h("design:type",Object)],eC.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Boolean)],eC.prototype,"submitDisabled",void 0);_.E([_.d(),_.h("design:type",String)],eC.prototype,"minutes",void 0);_.E([_.d(),_.h("design:type",String)],eC.prototype,"seconds",void 0);_.E([_.d(),_.h("design:type",String)],eC.prototype,"description",void 0);_.E([_.d(),_.h("design:type",String)],eC.prototype,"vssId",void 0);
_.E([_.d({value:_.Aq("INNERTUBE_CLIENT_NAME")==="WEB_REMIX",reflectToAttribute:!0}),_.h("design:type",Boolean)],eC.prototype,"isMusic",void 0);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],eC.prototype,"characterLimit",null);_.E([_.v("data"),_.h("design:type",Number),_.h("design:paramtypes",[])],eC.prototype,"textNumRows",null);
_.E([_.rW("minutes","seconds","description","submitDisabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eC.prototype,"updateSubmitButtonState",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eC.prototype,"onYtServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],eC.prototype,"onYtServiceRequestError",null);eC=_.E([_.lT({is:"yt-report-details-form-renderer",disableElementRegistration:!0})],eC);
_.Z(eC,"yt-report-details-form-renderer",function(){if(VnK===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;N_R===void 0&&(N_R=document.createElement("template"));var k=N_R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);VnK=I}I=VnK;return I});var jKS;var lGH;var XqK;var $5y;var rm=function(){return _.q.apply(this,arguments)||this};
_.R(rm,_.q);
rm.prototype.onCheckedChanged_=function(){if(this.data){var I=_.f(this.hostElement).querySelector("#checkbox").checked;this.data.identifier==="yt-external-links-checkbox"?_.Fe(this.hostElement,"yt-additional-detail-checkbox-update",[I]):this.data.identifier==="yt-hide-user-checkbox"?_.Fe(this.hostElement,"yt-hide-user-checkbox-update",[I]):I&&this.data.enableCommand?_.Fe(this.hostElement,"yt-modify-report-form-command",[_.l(this.data.enableCommand,duj)]):!I&&this.data.disableCommand&&_.Fe(this.hostElement,
"yt-modify-report-form-command",[_.l(this.data.enableCommand,duj)])}};
rm.prototype.onLabelTap_=function(I){I.target.tagName!="A"&&(_.f(this.hostElement).querySelector("#checkbox").checked=!_.f(this.hostElement).querySelector("#checkbox").checked)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],rm.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],rm.prototype,"data",void 0);rm=_.E([_.lT({is:"yt-boolean-form-field-v2-renderer",disableElementRegistration:!0})],rm);
_.Z(rm,"yt-boolean-form-field-v2-renderer",function(){if($5y===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;XqK===void 0&&(XqK=document.createElement("template"));var k=XqK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);$5y=I}I=$5y;return I});var ic=function(){var I=_.q.apply(this,arguments)||this;I.canShowAdditionalDetailCheckbox=!1;I.canShowCheckbox=!1;I.keepDropdownFocusedAfterSelection=!0;return I};
_.R(ic,_.q);ic.prototype.configureRendererStamper=function(){return{"data.legalReportCheckbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}},"data.additionalDetailCheckbox":{id:"additional-detail-checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],ic.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],ic.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],ic.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.d(),_.h("design:type",Object)],ic.prototype,"canShowCheckbox",void 0);_.E([_.d(),_.h("design:type",Object)],ic.prototype,"keepDropdownFocusedAfterSelection",void 0);
ic=_.E([_.lT({is:"yt-report-form-modal-content",disableElementRegistration:!0})],ic);
_.Z(ic,"yt-report-form-modal-content",function(){if(lGH===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;jKS===void 0&&(jKS=document.createElement("template"));var k=jKS;y.call(C,k.content.cloneNode(!0),I.content.firstChild);lGH=I}I=lGH;return I},{mode:2});var RcP;var bs8;var wm=function(){var I=_.q.apply(this,arguments)||this;I.submitting=!1;I.submitButtonDisabled=!0;I.command=null;I.canShowCheckbox=!1;I.canShowAdditionalDetailCheckbox=!1;I.canShowNextButton=!1;I.additionalDetailCheckboxChecked=!1;I.refitJob=0;I.keepDropdownFocusedAfterSelection=!0;I.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 I};
_.R(wm,_.q);_.u=wm.prototype;_.u.created=function(){this.refitJob=0};
_.u.attached=function(){this.JSC$18483_scroller&&(this.JSC$18483_scroller.dialogElement=this.hostElement.parentNode,this.JSC$18483_scroller.attached&&typeof this.JSC$18483_scroller.attached==="function"&&this.JSC$18483_scroller.attached());this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.dataChanged=function(I){I&&(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,I.legalReportCheckbox&&this.set("data.legalReportCheckbox.booleanFormFieldV2Renderer.value",
!1),I.additionalDetailCheckbox&&this.set("data.additionalDetailCheckbox.booleanFormFieldV2Renderer.value",!1),this.updateDialogStyling())};
_.u.onYtPopupOpened=function(){var I=_.hU();I&&I.getPlayerPromise().then(function(C){C.pauseVideo()})};
_.u.onYtNavigate=function(I){_.l(I.detail.endpoint,_.kEc)&&(I.stopPropagation(),this.hideReportForm=!0)};
_.u.onYtServiceRequestSent=function(){this.toggleSubmitButton(!0)};
_.u.onYtServiceRequestCompleted=function(I,C){var y=C.actions;if(y){if(y.length===1&&_.l(y[0],_.r9)){var k;y=((k=_.l(y[0],_.r9))==null?void 0:k.commands)||[]}k=0;for(var F=y.length;k<F;k++)_.l(y[k],_.jV)&&(I.stopPropagation(),this.hostElement.parentElement.close(),this.openPopupBehavior.openPopup(y[k]))}if(C.data&&(I=this.get("feedbackResponses",C.data)))for(C=0;C<I.length;C++)if(I[C].isThumbnailReporting){this.hostElement.parentElement.close();break}};
_.u.onYtServiceRequestError=function(){this.toggleSubmitButton(!1)};
_.u._onDescendantIronResize=function(I){I.stopPropagation();return!1};
_.u.handleReportFormEndpointUpdateAction=function(I){if(I.submitEndpoint){var C=this.command=I.submitEndpoint;C=_.l(C,_.Ejm);if(C==null?0:C.additionalDetailCheckboxChecked)C.additionalDetailCheckboxChecked=this.additionalDetailCheckboxChecked;this.toggleSubmitButton(!1)}else I.submitNavigationEndpoint?(this.command=I.submitNavigationEndpoint,this.toggleSubmitButton(!1)):I.confirmDialog?(this.command={confirmDialogEndpoint:{content:{confirmDialogRenderer:I.confirmDialog.confirmDialogRenderer}}},this.toggleSubmitButton(!1)):
this.command=null;I.disableSubmitButton&&this.toggleSubmitButton(!0);this.handleModifyReportFormCommand(this.get("clickCommands.0.modifyReportFormCommand",I));this.refit()};
_.u.handleConfirmDialogCloseAction=function(I){I.confirmed?this.hostElement.parentElement.close():this.hideReportForm=!1};
_.u.submitButtonDisabledChanged=function(){var I=this.hostElement.parentElement;I&&I.invalidateTabbables&&I.invalidateTabbables()};
_.u.handleModifyReportFormCommand=function(I){I=this.get("action",I);I==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_HIDE"?this.canShowCheckbox=!1:I==="REPORT_FORM_ACTION_LEGAL_CHECKBOX_SHOW"?this.canShowCheckbox=!0:I==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_HIDE"?this.canShowAdditionalDetailCheckbox=!1:I==="REPORT_FORM_ACTION_ADDITIONAL_DETAIL_CHECKBOX_SHOW"?this.canShowAdditionalDetailCheckbox=!0:I==="REPORT_FORM_ACTION_SUBMIT_BUTTON_SHOW"?this.canShowNextButton=!1:I==="REPORT_FORM_ACTION_NEXT_BUTTON_SHOW"&&
(this.canShowNextButton=!0);this.refit()};
_.u.updateDialogStyling=function(){var I,C,y,k,F,z=((F=(I=this.data)==null?void 0:(C=I.optionsSupportedRenderers)==null?void 0:(y=C.optionsRenderer)==null?void 0:(k=y.items)==null?void 0:k.length)!=null?F:0)<=2?0:240;_.CK(this.hostElement,{"--yt-report-form-modal-renderer-min-width":z+"px"})};
_.u.toggleSubmitButton=function(I){this.submitButtonDisabled=!I;this.submitButtonDisabled=I};
_.u.computeSubmitButtonData=function(I,C){var y={};_.l(C,_.kEc)?y.navigationEndpoint=C:y.command=C||void 0;I&&I.buttonRenderer&&_.Le.extend(y,I.buttonRenderer);return y};
_.u.computeNextButtonData=function(I,C){var y={};if(!I||!I.buttonRenderer)return y;_.Le.extend(y,I.buttonRenderer);if(!C)return y;if(_.l(C,_.kEc))y.navigationEndpoint=a_Y(C);else if(y.command=a_Y(C),I=_.l(y.command,_.Ejm))I.legalCheckboxChecked=!0;return y};
_.u.computeShowNextButton=function(I,C,y){return!!I&&C&&y};
_.u.refit=function(){var I=this;this.refitJob||(this.refitJob=_.b$.addLowPriorityJob(function(){_.k3(I.hostElement,"yt-refit");I.refitJob=0}))};
_.u.handleAdditionalDetailCheckboxUpdateAction=function(I){this.additionalDetailCheckboxChecked=I;_.l(this.command,_.Ejm).additionalDetailCheckboxChecked=I};
_.H1.Object.defineProperties(wm,{template:{configurable:!0,enumerable:!0,get:function(){if(bs8===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;RcP===void 0&&(RcP=document.createElement("template"));var k=RcP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);bs8=I}I=bs8;return I}}});
wm.prototype.onYtServiceRequestError=wm.prototype.onYtServiceRequestError;wm.prototype.onYtServiceRequestCompleted=wm.prototype.onYtServiceRequestCompleted;wm.prototype.onYtServiceRequestSent=wm.prototype.onYtServiceRequestSent;wm.prototype.onYtNavigate=wm.prototype.onYtNavigate;wm.prototype.onYtPopupOpened=wm.prototype.onYtPopupOpened;_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],wm.prototype,"openPopupBehavior",void 0);
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],wm.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],wm.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],wm.prototype,"eventForwardingBehavior",void 0);_.E([_.g(_.Ri),_.h("design:type",Object)],wm.prototype,"ironResizableBehavior",void 0);_.E([_.d({observer:"dataChanged"}),_.h("design:type",Object)],wm.prototype,"data",void 0);
_.E([_.d(),_.h("design:type",Object)],wm.prototype,"submitting",void 0);_.E([_.d({observer:"submitButtonDisabledChanged"}),_.h("design:type",Object)],wm.prototype,"submitButtonDisabled",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"command",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],wm.prototype,"hideReportForm",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"canShowCheckbox",void 0);
_.E([_.d(),_.h("design:type",Object)],wm.prototype,"canShowAdditionalDetailCheckbox",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"canShowNextButton",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"additionalDetailCheckboxChecked",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"refitJob",void 0);_.E([_.d(),_.h("design:type",Object)],wm.prototype,"keepDropdownFocusedAfterSelection",void 0);
_.E([_.z$("#scroller"),_.h("design:type",Object)],wm.prototype,"JSC$18483_scroller",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],wm.prototype,"onYtPopupOpened",null);_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wm.prototype,"onYtNavigate",null);
_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],wm.prototype,"onYtServiceRequestSent",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],wm.prototype,"onYtServiceRequestCompleted",null);
_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],wm.prototype,"onYtServiceRequestError",null);wm=_.E([_.lT({is:"yt-report-form-modal-renderer",notifyObserversOnUndefined:!1,noInjection:!0})],wm);var YEY;var GrS;var nS=function(){return _.q.apply(this,arguments)||this};
_.R(nS,_.q);_.u=nS.prototype;_.u.attached=function(){this.isDarkTheme=!!document.documentElement.hasAttribute("dark");this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.hostElement.id="mealbar-promo-renderer"};
_.u.onVisible=function(){if(_.V("web_ephemeral_actions_focus")){var I,C;(C=_.N().resolve(_.aU(_.yb)))==null||C.enqueue({label:_.hS((I=this.data)==null?void 0:I.messageTitle),elementToFocus:this.hostElement})}};
_.u.onThumbnailLoaded=function(){_.k3(this.hostElement,"yt-refit")};
_.u.onDismissTap=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-mealbar-promo-renderer"])};
_.u.computeAlternateIcon=function(I){return I?I==="BACKSTAGE_ARTWORK"?"backstage:artwork":I:null};
_.u.computeFontFamily=function(I){return I==="PROMO_FONT_FAMILY_YOUTUBE_SANS_BOLD"};
_.u.computeBackgroundStyle=function(I,C){if(I=this.computeBackgroundImage(I,C))if(I=_.hE(I.thumbnails))return'background-image: url("'+I+'");'};
_.u.computeHasFullHeightImage=function(I){return!(!(I&&I.thumbnails&&I.thumbnails.length>0)||this.modern)};
_.u.isModernStyle=function(I){return I.style==="STYLE_MODERN"};
_.u.computeIcon=function(I,C){if(I&&I.icon)return C?I.iconDark:I.icon};
_.u.computeBackgroundImage=function(I,C){if(I&&I.backgroundImage)return C?I.backgroundImageDark:I.backgroundImage};
_.u.computeLogo=function(I,C){if(I&&I.logo)return C?I.logoDark:I.logo};
_.u.computeShouldShowModernIcon=function(I,C){return I&&!!C};
_.u.getLogoContainerClassName=function(I){return this.logoWithPadding(I)?"yt-mealbar-promo-renderer-logo-with-padding":"yt-mealbar-promo-renderer-logo"};
_.u.getLogoImageId=function(I){return this.logoWithPadding(I)?"mealbar-logo-with-padding":"mealbar-logo"};
_.u.logoWithPadding=function(I){var C,y,k;return(I=(C=this.computeLogo(I,this.isDarkTheme))==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?!0:!1};
nS.prototype.onThumbnailLoaded=nS.prototype.onThumbnailLoaded;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],nS.prototype,"ytRendererBehavior",void 0);_.E([_.d({}),_.h("design:type",Object)],nS.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,computed:"isModernStyle(data)"}),_.h("design:type",Boolean)],nS.prototype,"modern",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],nS.prototype,"isDarkTheme",void 0);
_.E([_.d({computed:"computeIcon(data, isDarkTheme)"}),_.h("design:type",Object)],nS.prototype,"icon",void 0);_.E([_.d({computed:"computeLogo(data, isDarkTheme)"}),_.h("design:type",Object)],nS.prototype,"logo",void 0);_.E([_.d({computed:"computeBackgroundStyle(data, isDarkTheme)"}),_.h("design:type",Object)],nS.prototype,"backgroundStyle",void 0);_.E([_.d({computed:"computeAlternateIcon(data.alternateIcon.iconType)"}),_.h("design:type",Object)],nS.prototype,"alternateIcon",void 0);
_.E([_.d({reflectToAttribute:!0,computed:"computeHasFullHeightImage(data.icon)"}),_.h("design:type",Boolean)],nS.prototype,"hasFullHeightImage",void 0);_.E([_.d({reflectToAttribute:!0,computed:"computeFontFamily(data.font)"}),_.h("design:type",Boolean)],nS.prototype,"useYoutubeSans",void 0);_.E([_.d({computed:"computeShouldShowModernIcon(modern, icon)"}),_.h("design:type",Boolean)],nS.prototype,"shouldShowModernIcon",void 0);
_.E([_.km("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],nS.prototype,"onThumbnailLoaded",null);nS=_.E([_.lT({is:"yt-mealbar-promo-renderer",disableElementRegistration:!0})],nS);
_.Z(nS,"yt-mealbar-promo-renderer",function(){if(GrS===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;YEY===void 0&&(YEY=document.createElement("template"));var k=YEY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);GrS=I}I=GrS;return I},{mode:2});var fGL;var SEH;var Pc=function(){return _.q.apply(this,arguments)||this};
_.R(Pc,_.q);_.u=Pc.prototype;_.u.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]]"}}}}}};
_.u.computeHasButtons_=function(I){return!(!I.dismissButton&&!I.acceptButton)};
_.u.computeStyle_=function(I){return I||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.u.observeImpressionEndpoints_=function(){var I=this;this.data&&this.data.promoConfig&&this.data.promoConfig.impressionEndpoints&&this.data.promoConfig.impressionEndpoints.forEach(function(C){C.clickTrackingParams&&delete C.clickTrackingParams;_.Tg(I.hostElement,[C])})};
_.u.onTap_=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"])};
Pc.prototype.observeImpressionEndpoints_=Pc.prototype.observeImpressionEndpoints_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Pc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],Pc.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Pc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Pc.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Pc.prototype,"positionType",void 0);_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],Pc.prototype,"hasButtons_",void 0);_.E([_.d({value:function(){return this.onTap_.bind(this)}}),
_.h("design:type",Function)],Pc.prototype,"boundOnTap_",void 0);_.E([_.d({value:{style:"mono-inverse"}}),_.h("design:type",Object)],Pc.prototype,"buttonOverride",void 0);_.E([_.FI("data.promoConfig.impressionEndpoints"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Pc.prototype,"observeImpressionEndpoints_",null);Pc=_.E([_.lT({is:"yt-tooltip-renderer",disableElementRegistration:!0})],Pc);
_.Z(Pc,"yt-tooltip-renderer",function(){if(SEH===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;fGL===void 0&&(fGL=document.createElement("template"));var k=fGL;y.call(C,k.content.cloneNode(!0),I.content.firstChild);SEH=I}I=SEH;return I},{mode:2});var KTK;var A8B;var gW8={},vWS=(gW8.WEB_REMIX="music.youtube.com",gW8),LS=function(){var I=_.q.apply(this,arguments)||this;I.actionMap={"yt-signal-action-copy-share-embed-url":"handleSignalActionCopyShareEmbedUrl_","yt-share-panel-set-timestamp-action":"handleSetTimestamp_"};return I};
_.R(LS,_.q);_.u=LS.prototype;_.u.configureRendererStamper=function(){return{"data.actionButtons":{id:"action-buttons",mapping:{buttonRenderer:"yt-button-renderer"}},"data.startAt":{id:"start-at",mapping:{startAtRenderer:"yt-start-at-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.created=function(){this.embedHost_=vWS[_.Aq("INNERTUBE_CLIENT_NAME")]||"www.youtube.com"};
_.u.ready=function(){_.f(this.hostElement).querySelector("#embed-code").addEventListener("tap",this.onEmbedCode_.bind(this))};
_.u.computeEmbedCode_=function(I,C,y,k,F){if(!I)return"";var z=I.videoId,c=I.fullListId,r=[];I.attributionId&&r.push("si="+I.attributionId);k||r.push("controls=0");y&&Number(C)>0&&r.push("start="+C);c&&(z="videoseries",r.push("list="+c));y="https://"+(F?"www.youtube-nocookie.com":this.embedHost_)+"/embed/"+z;I.clipId&&(r.push("clip="+I.clipId),r.push("clipt="+I.clipTiming));C=r.length>0?y+"?"+r.join("&amp;"):y;I.encryptedEmbedConfig&&r.push("embed_config="+JSON.stringify({enc:I.encryptedEmbedConfig}));
r=r.length>0?y+"?"+r.join("&amp;"):y;_.V("web_sharing_embed_preview_killswitch")?_.f(this.videoPreviewContainer).innerHTML=this.getEmbedCode_(r,I.previewWidth||854,I.previewHeight||480):(_.GE(this.videoPreviewContainer),_.f(this.videoPreviewContainer).appendChild(this.buildIframeElement(r)));return this.getEmbedCode_(C,I.width||560,I.height||315)};
_.u.buildIframeElement=function(I){var C=document.createElement("iframe"),y,k;C.width=""+((k=(y=this.data)==null?void 0:y.previewWidth)!=null?k:854);var F,z;C.height=""+((z=(F=this.data)==null?void 0:F.previewHeight)!=null?z:480);_.nGY(C,2,I);C.title="YouTube video player";C.frameBorder="0";C.allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share";C.referrerPolicy="strict-origin-when-cross-origin";C.allowFullscreen=!0;return C};
_.u.computeIsSquareAspectRatio_=function(I){return I.previewHeight&&I.previewWidth?I.previewHeight==I.previewWidth:!1};
_.u.computeShowEmbedOptions_=function(I){return!!I.enablePrivacyModeOptionLabel||!!I.showPlayerControlsOptionLabel};
_.u.getEmbedCode_=function(I,C,y){return'<iframe width="'+C+'" height="'+y+'" src="'+I+'" 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>'};
_.u.handleSignalActionCopyShareEmbedUrl_=function(){_.f(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();document.execCommand("copy");this.trackEmbedCopyUrl_()};
_.u.handleSetTimestamp_=function(I){this.startAtTimeStamp_=(this.startAtChecked_=I.isSet)?I.timestamp:0};
_.u.closePanel_=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-sharing-embed-renderer"])};
_.u.onEmbedCode_=function(){_.f(this.hostElement).querySelector("#embed-code").inputElement.textarea.select();this.trackEmbedCopyUrl_()};
_.u.onYtPopupClosed_=function(){_.GE(_.f(this.hostElement).querySelector("#video-preview"))};
_.u.trackEmbedCopyUrl_=function(){this&&this.data&&this.data.actionButtons&&this.data.actionButtons.length>0&&_.l(this.data.actionButtons[0],_.fZ)&&this.ytRendererBehavior.logExplicitClick(_.l(this.data.actionButtons[0],_.fZ))};
LS.prototype.onYtPopupClosed_=LS.prototype.onYtPopupClosed_;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],LS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],LS.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],LS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],LS.prototype,"data",void 0);
_.E([_.d({computed:"computeEmbedCode_(data, startAtTimeStamp_, startAtChecked_, isPlayerControlsOptionChecked_, isPrivacyModeOptionChecked_)"}),_.h("design:type",String)],LS.prototype,"embedCode_",void 0);_.E([_.d({value:!0}),_.h("design:type",Boolean)],LS.prototype,"isPlayerControlsOptionChecked_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],LS.prototype,"isPrivacyModeOptionChecked_",void 0);_.E([_.d({value:!1,notify:!0}),_.h("design:type",Boolean)],LS.prototype,"startAtChecked_",void 0);
_.E([_.d({value:0}),_.h("design:type",Number)],LS.prototype,"startAtTimeStamp_",void 0);_.E([_.d({computed:"computeIsSquareAspectRatio_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],LS.prototype,"isSquareAspectRatio_",void 0);_.E([_.z$("#video-preview"),_.h("design:type",HTMLElement)],LS.prototype,"videoPreviewContainer",void 0);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],LS.prototype,"onYtPopupClosed_",null);
LS=_.E([_.lT({is:"yt-sharing-embed-renderer",disableElementRegistration:!0})],LS);
_.Z(LS,"yt-sharing-embed-renderer",function(){if(A8B===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;KTK===void 0&&(KTK=document.createElement("template"));var k=KTK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);A8B=I}I=A8B;return I},{mode:2});var WTR={};
WTR.YtUnlimitedFamilyInterstitialBehavior=[_.M8.YtOpenPopupBehavior,_.Et.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(I){I=_.O8b(_.m0(I),"yt-button-renderer");return I?I.hasAttribute("footer-button")?(this.hostElement.parentElement.close(),!0):!1:!1},
pushToHistory:function(I){this.dialogHistory_.push(I)},
popFromHistory:function(){return this.dialogHistory_.pop()},
handleSignalActionShowPreviousFamilyDialog_:function(){var I=this.popFromHistory();if(I){var C={openPopupAction:{popupType:"DIALOG",popup:{}}};C.openPopupAction.popup[I.renderer]=I.data;this.showingPreviousDialog_=!0;this.openPopup(C)}},
handleOpenPopupAction_:function(I){if(this.showingPreviousDialog_)this.showingPreviousDialog_=!1;else{var C=["unlimitedFamilyMessageInterstitialRenderer","unlimitedFamilyProfileInterstitialRenderer"].some(function(k){return!!I.openPopupAction.popup[k]}),y=this.getElementName_();
C&&this.data&&(this.pushToHistory({renderer:y,data:this.data}),this.hostElement.parentElement.close())}},
handleUnlimitedCreateFamilyEndpoint_:function(I){if(I=_.l(I,roy))this.loading=!0,_.Fe(this.hostElement,"yt-open-create-family-dialog",[I,this.unicornReadyCallback_.bind(this)])},
getElementName_:function(){var I=this.hostElement.nodeName.split("-").slice(1).map(function(C){return""+C[0].toUpperCase()+C.slice(1).toLowerCase()}).join("");
return I[0].toLowerCase()+I.slice(1)},
unicornReadyCallback_:function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1}}];var d5H;var x5y;var DO=function(){return _.q.apply(this,arguments)||this};
_.R(DO,_.q);_.u=DO.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.Fe(this.hostElement,"yt-register-create-family-dialog");_.f(this.hostElement).querySelector("#thumbnail").onShow()};
_.u.fireOnCloseCommand_=function(){var I;((I=this.data)==null?0:I.onCloseCommand)&&_.cQ(this.hostElement,[this.data.onCloseCommand],this.hostElement)};
_.u.onYtServiceRequestSent_=function(I,C){C&&C.endpoint&&_.l(C.endpoint,_.w9)||(this.loading=!0)};
_.u.onYtServiceRequestCompleted_=function(){var I=this.hostElement.parentElement;I.close&&I.close();this.loading=!1};
_.u.openPopupHandler_=function(I){if(I.detail==this){var C;((C=this.data)==null?0:C.onOpenCommands)&&_.cQ(this.hostElement,this.data.onOpenCommands,this.hostElement)}};
_.u.closePopupHandler_=function(I,C){this.fireOnCloseCommand_();if(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1){var y;((y=this.data)==null?0:y.onDismissCommands)&&_.cQ(this.hostElement,this.data.onDismissCommands,this.hostElement)}};
_.u.dataChanged_=function(){this.loading=!1};
DO.prototype.dataChanged_=DO.prototype.dataChanged_;DO.prototype.closePopupHandler_=DO.prototype.closePopupHandler_;DO.prototype.openPopupHandler_=DO.prototype.openPopupHandler_;DO.prototype.onYtServiceRequestCompleted_=DO.prototype.onYtServiceRequestCompleted_;DO.prototype.onYtServiceRequestSent_=DO.prototype.onYtServiceRequestSent_;_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],DO.prototype,"ytEventForwardingBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],DO.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(WTR.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],DO.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],DO.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],DO.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],DO.prototype,"loading",void 0);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],DO.prototype,"onYtServiceRequestSent_",null);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],DO.prototype,"onYtServiceRequestCompleted_",null);
_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DO.prototype,"openPopupHandler_",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],DO.prototype,"closePopupHandler_",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],DO.prototype,"dataChanged_",null);
DO=_.E([_.lT({is:"yt-unlimited-family-message-interstitial-renderer",disableElementRegistration:!0})],DO);
_.Z(DO,"yt-unlimited-family-message-interstitial-renderer",function(){if(x5y===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;d5H===void 0&&(d5H=document.createElement("template"));var k=d5H;y.call(C,k.content.cloneNode(!0),I.content.firstChild);x5y=I}I=x5y;return I},{mode:2});var qEj;var m5Y;var pS=function(){return _.q.apply(this,arguments)||this};
_.R(pS,_.q);pS.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"}}}};
pS.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f(this.hostElement).querySelectorAll(".secondary-thumbnail").forEach(function(I){I.onShow()});
_.f(this.hostElement).querySelector("#main-thumbnail").onShow()};
pS.prototype.onButtonTap_=function(I){this.ytUnlimitedFamilyInterstitialBehavior.maybeCloseDialogOnFooterButtonTap(I)};
pS.prototype.computeMainThumbnailWidth_=function(I){return I&&I.length!==0?72:96};
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],pS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],pS.prototype,"ytRendererBehavior",void 0);_.E([_.g(WTR.YtUnlimitedFamilyInterstitialBehavior),_.h("design:type",Object)],pS.prototype,"ytUnlimitedFamilyInterstitialBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],pS.prototype,"data",void 0);
_.E([_.d({computed:"computeMainThumbnailWidth_(data.secondaryThumbnails)"}),_.h("design:type",Number)],pS.prototype,"mainThumbnailWidth_",void 0);_.E([_.d({value:function(){return this.onButtonTap_.bind(this)}}),
_.h("design:type",Function)],pS.prototype,"boundButtonTap_",void 0);pS=_.E([_.lT({is:"yt-unlimited-family-profile-interstitial-renderer",disableElementRegistration:!0})],pS);
_.Z(pS,"yt-unlimited-family-profile-interstitial-renderer",function(){if(m5Y===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;qEj===void 0&&(qEj=document.createElement("template"));var k=qEj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);m5Y=I}I=m5Y;return I},{mode:2});var Zsy;var B_L;var QR=function(){var I=_.q.apply(this,arguments)||this;I.sliderAriaValueText_=null;I.selectedIndex_=0;I.messages={PAUSE_SLIDER:_.PQ("PAUSE_SLIDER",void 0,"Pause Duration")};return I};
_.R(QR,_.q);_.u=QR.prototype;_.u.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_]]"}}}}}};
_.u.onPopupOpened_=function(I){I.detail==this&&_.V("enable_premium_voluntary_pause")&&(_.Fe(this.hostElement,"yt-close-popup-action",["yt-confirm-dialog-renderer"]),this.handleOnOpenCommands_())};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true")};
_.u.setDialogData=function(I){this.data=I;this.resetSlider_()};
_.u.dataChanged_=function(){this.data&&this.resetSlider_()};
_.u.onSubmitTap_=function(){if(this.data.confirmCommand){var I=this.data.confirmCommand;_.l(I,_.Hu0)&&_.Tg(this.hostElement,[I,{resume_time_ms:parseInt(this.selectedData_.resumeTimeMs,10)}])}};
_.u.onExitButtonTap_=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-unplugged-pause-membership-dialog-renderer"])};
_.u.closePopupHandler_=function(I,C){(C&&C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.handleOnDismissCommands_()};
_.u.onSliderChange_=function(){this.selectedIndex_=_.f(this.hostElement).querySelector("#id-pause-slider").immediateValue;this.updateUiState_()};
_.u.updateUiState_=function(){this.data&&(this.selectedData_=this.data.endOptions[this.selectedIndex_],this.setSliderAriaValueText_())};
_.u.setSliderAriaValueText_=function(){this.selectedData_&&(this.sliderAriaValueText_=this.selectedData_.accessibilityData.label)};
_.u.resetSlider_=function(){if(this.data){var I=this.data.defaultEndOptionIndex||0,C=_.f(this.hostElement).querySelector("#id-pause-slider");if(C.immediateValue<I)for(;C.immediateValue!=I;)C.increment();else if(I<C.immediateValue)for(;C.immediateValue!=I;)C.decrement();this.selectedIndex_=I;this.selectIndexMax_=this.data.endOptions.length-1;this.updateUiState_()}};
_.u.handleOnOpenCommands_=function(){this.data&&this.data.onOpenCommands&&this.data.onOpenCommands&&_.cQ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.u.handleOnDismissCommands_=function(){this.data&&this.data.onDismissCommands&&this.data.onDismissCommands&&_.cQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestSent=function(){this.loading=!0};
_.u.onYtServiceRequestCompleted=function(){this.hostElement.parentElement.close&&this.hostElement.parentElement.close();this.loading=!1};
QR.prototype.onYtServiceRequestCompleted=QR.prototype.onYtServiceRequestCompleted;QR.prototype.onYtServiceRequestSent=QR.prototype.onYtServiceRequestSent;QR.prototype.closePopupHandler_=QR.prototype.closePopupHandler_;QR.prototype.dataChanged_=QR.prototype.dataChanged_;QR.prototype.onPopupOpened_=QR.prototype.onPopupOpened_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],QR.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],QR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],QR.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],QR.prototype,"loading",void 0);_.E([_.d(),_.h("design:type",Number)],QR.prototype,"selectIndexMax_",void 0);_.E([_.d(),_.h("design:type",Object)],QR.prototype,"selectedData_",void 0);
_.E([_.d(),_.h("design:type",Object)],QR.prototype,"sliderAriaValueText_",void 0);_.E([_.d({value:function(){return this.onSubmitTap_.bind(this)}}),
_.h("design:type",Function)],QR.prototype,"onButtonTap_",void 0);_.E([_.d({value:function(){return this.onExitButtonTap_.bind(this)}}),
_.h("design:type",Function)],QR.prototype,"onSecondaryTap_",void 0);_.E([_.d(),_.h("design:type",Object)],QR.prototype,"messages",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],QR.prototype,"onPopupOpened_",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],QR.prototype,"dataChanged_",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],QR.prototype,"closePopupHandler_",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],QR.prototype,"onYtServiceRequestSent",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],QR.prototype,"onYtServiceRequestCompleted",null);QR=_.E([_.lT({is:"yt-unplugged-pause-membership-dialog-renderer",disableElementRegistration:!0})],QR);
_.Z(QR,"yt-unplugged-pause-membership-dialog-renderer",function(){if(B_L===void 0){var I=document.createElement("template");_.Y(I,'\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>');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;Zsy===void 0&&(Zsy=document.createElement("template"));var k=Zsy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);B_L=I}I=B_L;return I},{mode:2});var EWR;var hcM;var Ng=function(){return _.q.apply(this,arguments)||this};
_.R(Ng,_.q);Ng.prototype.configureRendererStamper=function(){return{"data.vcBalance":{id:"vc-balance",mapping:_.lk("vcBalanceRenderer")}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ng.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Ng.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ng.prototype,"data",void 0);Ng=_.E([_.lT({is:"yt-vc-offer-layout-header-renderer",disableElementRegistration:!0})],Ng);
_.Z(Ng,"yt-vc-offer-layout-header-renderer",function(){if(hcM===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;EWR===void 0&&(EWR=document.createElement("template"));var k=EWR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);hcM=I}I=hcM;return I},{mode:2});var U5R;var HsR;var tny;var J8Y;var VR=function(){return _.q.apply(this,arguments)||this};
_.R(VR,_.q);VR.prototype.configureRendererStamper=function(){return{"data.vcIcon":{id:"vc-icon",mapping:{themedImageRenderer:{component:"yt-themed-image-renderer"}}}}};
_.H1.Object.defineProperties(VR.prototype,{ariaLabel:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.accessibilityText?this.data.accessibilityText:""}},
vcOfferStyle:{configurable:!0,enumerable:!0,get:function(){return this.data&&this.data.style?this.data.style:"VC_OFFER_STYLE_STANDARD"}},
showTitleText:{configurable:!0,enumerable:!0,get:function(){return!(!this.data||this.data.style!=="VC_OFFER_STYLE_HERO"||!this.data.titleText)}}});
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],VR.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],VR.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.UOc.YtTappableItemBehavior),_.h("design:type",Object)],VR.prototype,"ytTappableItemBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],VR.prototype,"data",void 0);
_.E([_.d({reflectToAttribute:!0}),_.v("data.accessibilityText"),_.h("design:type",String),_.h("design:paramtypes",[])],VR.prototype,"ariaLabel",null);_.E([_.d({reflectToAttribute:!0}),_.v("data.style"),_.h("design:type",String),_.h("design:paramtypes",[])],VR.prototype,"vcOfferStyle",null);_.E([_.v("data.style","data.titleText"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],VR.prototype,"showTitleText",null);VR=_.E([_.lT({is:"yt-vc-offer-renderer",disableElementRegistration:!0})],VR);
_.Z(VR,"yt-vc-offer-renderer",function(){if(J8Y===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;tny===void 0&&(tny=document.createElement("template"));var k=tny;y.call(C,k.content.cloneNode(!0),I.content.firstChild);J8Y=I}I=J8Y;return I},{mode:2});var jC=function(){return _.q.apply(this,arguments)||this};
_.R(jC,_.q);jC.prototype.configureRendererStamper=function(){return{"data.header":{id:"header",mapping:{vcOfferLayoutHeaderRenderer:{component:"yt-vc-offer-layout-header-renderer"}}},"data.offers":{id:"offers",mapping:{vcOfferRenderer:{component:"yt-vc-offer-renderer",attributes:{"dialog-dismiss":!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],jC.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],jC.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],jC.prototype,"data",void 0);jC=_.E([_.lT({is:"yt-vc-offer-layout-renderer",disableElementRegistration:!0})],jC);
_.Z(jC,"yt-vc-offer-layout-renderer",function(){if(HsR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;U5R===void 0&&(U5R=document.createElement("template"));var k=U5R;y.call(C,k.content.cloneNode(!0),I.content.firstChild);HsR=I}I=HsR;return I},{mode:2});var OsP;var aGS;var MnR;var IlY;var lc=function(){return _.q.apply(this,arguments)||this};
_.R(lc,_.q);lc.prototype.configureRendererStamper=function(){return{"data.dismiss":{id:"dismiss",mapping:{buttonRenderer:{component:"yt-button-renderer",attributes:{"dialog-dismiss":!0},params:{noink:!0}}}},"data.helpLink":{id:"help-link",mapping:{buttonRenderer:{component:"yt-button-renderer",params:{noink:!0}}}}}};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],lc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],lc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],lc.prototype,"data",void 0);lc=_.E([_.lT({is:"yt-ypc-offers-modal-top-bar-renderer",disableElementRegistration:!0})],lc);
_.Z(lc,"yt-ypc-offers-modal-top-bar-renderer",function(){if(IlY===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;MnR===void 0&&(MnR=document.createElement("template"));var k=MnR;y.call(C,k.content.cloneNode(!0),I.content.firstChild);IlY=I}I=IlY;return I},{mode:2});var Xf=function(){return _.q.apply(this,arguments)||this};
_.R(Xf,_.q);Xf.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"}}}}};
Xf.prototype.ready=function(){this.hostElement.setAttribute("dialog","")};
Xf.prototype.attached=function(){this.scrollable.dialogElement=this.hostElement.parentNode;var I=this.scrollable;I.attached&&typeof I.attached==="function"&&I.attached()};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Xf.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Xf.prototype,"ytRendererstamperBehavior",void 0);_.E([_.z$("#scrollable"),_.h("design:type",Object)],Xf.prototype,"scrollable",void 0);_.E([_.d(),_.h("design:type",Object)],Xf.prototype,"data",void 0);Xf=_.E([_.lT({is:"yt-ypc-offers-modal-renderer",disableElementRegistration:!0})],Xf);
_.Z(Xf,"yt-ypc-offers-modal-renderer",function(){if(aGS===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;OsP===void 0&&(OsP=document.createElement("template"));var k=OsP;y.call(C,k.content.cloneNode(!0),I.content.firstChild);aGS=I}I=aGS;return I},{mode:2});var CmK;var s6K;var $e=function(){return _.q.apply(this,arguments)||this};
_.R($e,_.q);_.u=$e.prototype;_.u.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}}}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f(this.hostElement).querySelector("#scrollable").dialogElement=this.hostElement.parentNode};
_.u.onYtServiceRequestCompleted_=function(){this.set("showSpinner",!1);_.Fe(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"])};
_.u.onYtPopupOpened_=function(I,C){(C==null?void 0:C.is)==="yt-ypc-upgrade-dialog-renderer"&&this.data.onOpenCommands&&_.cQ(this.hostElement,this.data.onOpenCommands,this.hostElement)};
_.u.onYtPopupClosed_=function(I,C){this.continueButtonTapped||C&&(C.canceled===!0||C.canceled===!1&&C.confirmed===!1)&&this.data.onDismissCommands&&_.cQ(this.hostElement,this.data.onDismissCommands,this.hostElement)};
_.u.onYtServiceRequestError_=function(I){this.set("showSpinner",!1);_.ly(this.hostElement,I.detail.error.message)};
_.u.onContinueTapped_=function(){this.set("continueButtonTapped",!0);_.V("enable_ypc_spinners")?_.Fe(this.hostElement,"yt-close-popup-action",["yt-ypc-upgrade-dialog-renderer"]):this.set("showSpinner",!0)};
$e.prototype.onYtServiceRequestError_=$e.prototype.onYtServiceRequestError_;$e.prototype.onYtPopupClosed_=$e.prototype.onYtPopupClosed_;$e.prototype.onYtPopupOpened_=$e.prototype.onYtPopupOpened_;$e.prototype.onYtServiceRequestCompleted_=$e.prototype.onYtServiceRequestCompleted_;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],$e.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],$e.prototype,"ytRendererstamperBehavior",void 0);
_.E([_.d(),_.h("design:type",Object)],$e.prototype,"data",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],$e.prototype,"showSpinner",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],$e.prototype,"continueButtonTapped",void 0);_.E([_.d({value:function(){return this.onContinueTapped_.bind(this)}}),
_.h("design:type",Function)],$e.prototype,"bindOnContinueTapped_",void 0);_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$e.prototype,"onYtServiceRequestCompleted_",null);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],$e.prototype,"onYtPopupOpened_",null);
_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],$e.prototype,"onYtPopupClosed_",null);_.E([_.km("yt-service-request-error"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],$e.prototype,"onYtServiceRequestError_",null);$e=_.E([_.lT({is:"yt-ypc-upgrade-dialog-renderer",disableElementRegistration:!0})],$e);
_.Z($e,"yt-ypc-upgrade-dialog-renderer",function(){if(s6K===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;CmK===void 0&&(CmK=document.createElement("template"));var k=CmK;y.call(C,k.content.cloneNode(!0),I.content.firstChild);s6K=I}I=s6K;return I},{mode:2});var o8j;var yvL;var Rv=function(){return _.q.apply(this,arguments)||this};
_.R(Rv,_.q);Rv.prototype.configureRendererStamper=function(){return{"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.confirmButton":{id:"accept-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
Rv.prototype.computeHasButtons_=function(I){return!(!I.dismissButton&&!I.confirmButton)};
Rv.prototype.computeStyle_=function(I){return I||"BUBBLE_HINT_STYLE_UNKNOWN"};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Rv.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],Rv.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],Rv.prototype,"ytRendererstamperBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Rv.prototype,"data",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],Rv.prototype,"positionType",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasButtons_(data)"}),_.h("design:type",Boolean)],Rv.prototype,"hasButtons_",void 0);_.E([_.d({computed:"computeStyle_(data.style)",reflectToAttribute:!0}),_.h("design:type",Boolean)],Rv.prototype,"style_",void 0);Rv=_.E([_.lT({is:"yt-bubble-hint-renderer",disableElementRegistration:!0})],Rv);
_.Z(Rv,"yt-bubble-hint-renderer",function(){if(yvL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;o8j===void 0&&(o8j=document.createElement("template"));var k=o8j;y.call(C,k.content.cloneNode(!0),I.content.firstChild);yvL=I}I=yvL;return I},{mode:2});var kPy;var FFK;var bc=function(){var I=_.tn.apply(this,arguments)||this;I.actionMap={"yt-hide-user-checkbox-update":"handleCheckBoxUpdateAction_"};return I};
_.R(bc,_.tn);_.u=bc.prototype;_.u.configureRendererStamper=function(){return{"data.checkbox":{id:"checkbox-container",mapping:{booleanFormFieldV2Renderer:{component:"yt-boolean-form-field-v2-renderer",noInjection:!0}}}}};
_.u.attached=function(){var I=this;this.hasAttribute("dialog")||this.setAttribute("dialog","true");this.$.scroller.dialogElement=this.parentNode;window.requestAnimationFrame(function(){I.$.thumbnail.onShow();I.$["header-image"].onShow()})};
_.u.handleCheckBoxUpdateAction_=function(I){this.canShowCheckboxEnabledConfirmButton=I};
_.u.computeUseOverlayForSpinner_=function(I,C){return!!I&&C};
_.u.computeShowSpinner_=function(I,C){return I||!!C};
_.u.fireOnCloseActions_=function(){var I,C=_.T(((I=this.data)==null?void 0:I.onClosedActions)||[]);for(I=C.next();!I.done;I=C.next())this.ytRendererBehavior.resolveCommand(I.value)};
_.u.fireOnOpenCommands_=function(I){var C,y=(C=this.data)==null?void 0:C.onOpenCommands;if(y)for(I.stopImmediatePropagation(),I=_.T(y),C=I.next();!C.done;C=I.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.u.fireOnDismissCommands_=function(I){var C,y=(C=this.data)==null?void 0:C.onDismissCommands;if(y)for(I.stopImmediatePropagation(),I=_.T(y),C=I.next();!C.done;C=I.next())this.ytRendererBehavior.resolveCommand(C.value)};
_.u.openPopupHandler_=function(I){I.detail==this&&this.fireOnOpenCommands_(I)};
_.u.closePopupHandler_=function(I,C){_.uW(this,"yt-confirm-dialog-close-action",[C]);this.fireOnCloseActions_();(C&&C.canceled===!0||C&&C.canceled===!1&&C.confirmed===!1)&&this.fireOnDismissCommands_(I)};
_.u.onHeaderImageChanged_=function(){var I;((I=this.data)==null?0:I.headerImage)?this.setAttribute("dialog-with-header-image",""):this.removeAttribute("dialog-with-header-image")};
_.u.computeHasHeaderImageWidth_=function(I){return I!=void 0};
_.u.computeHasLoadingMessage=function(I){return!!I};
_.u.onHeaderImageWidthChanged_=function(){var I,C=(I=this.data)==null?void 0:I.headerImageWidth;if(C){if(I=1.25*C*2+C,this.$.main.style.width=I+"px",C=this.$.scroller.firstElementChild)C.style.minWidth=I+"px"}else this.$.main.style.width="100%"};
_.u.onThumbnailChanged_=function(){var I;((I=this.data)==null?0:I.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")};
_.u.onYtNavigate_=function(I){I=_.m0(I);I instanceof Node&&_.Oq(this.$["confirm-button"]).contains(I)&&this.parentElement&&this.parentElement.close&&this.parentElement.close()};
_.u.computePrimaryIsCancel_=function(I){return I};
_.u.computeIsCancelButtonHidden_=function(I){return I.skipCancelButton||!I.cancelButton};
_.u.computeIsCheckboxHidden_=function(I){return!I.checkbox};
_.u.onThumbnailLoaded_=function(){this.parentElement&&this.parentElement.fit&&this.parentElement.fit()};
_.u.onYtServiceRequestSent_=function(){this.isActionInProgress_=!0};
_.u.onYtServiceRequestCompleted_=function(){var I;((I=this.data)==null?0:I.showLoadingSpinnerOnAction)&&this.parentElement&&this.parentElement.close&&this.parentElement.opened&&this.parentElement.close();this.isActionInProgress_=!1};
_.H1.Object.defineProperties(bc,{template:{configurable:!0,enumerable:!0,get:function(){if(FFK===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;kPy===void 0&&(kPy=document.createElement("template"));var k=kPy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);FFK=I}I=FFK;return I}}});
bc.prototype.onYtServiceRequestCompleted_=bc.prototype.onYtServiceRequestCompleted_;bc.prototype.onYtServiceRequestSent_=bc.prototype.onYtServiceRequestSent_;bc.prototype.onThumbnailLoaded_=bc.prototype.onThumbnailLoaded_;bc.prototype.onYtNavigate_=bc.prototype.onYtNavigate_;bc.prototype.onThumbnailChanged_=bc.prototype.onThumbnailChanged_;bc.prototype.onHeaderImageWidthChanged_=bc.prototype.onHeaderImageWidthChanged_;bc.prototype.onHeaderImageChanged_=bc.prototype.onHeaderImageChanged_;
bc.prototype.closePopupHandler_=bc.prototype.closePopupHandler_;bc.prototype.openPopupHandler_=bc.prototype.openPopupHandler_;_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],bc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],bc.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],bc.prototype,"ytRendererBehavior",void 0);
_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],bc.prototype,"ytEventForwardingBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],bc.prototype,"data",void 0);_.E([_.d({computed:"computePrimaryIsCancel_(data.primaryIsCancel)",reflectToAttribute:!0,readOnly:!0}),_.h("design:type",Boolean)],bc.prototype,"primaryIsCancel",void 0);_.E([_.d({computed:"computeIsCancelButtonHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],bc.prototype,"isCancelButtonHidden",void 0);
_.E([_.d({computed:"computeIsCheckboxHidden_(data)",readOnly:!0}),_.h("design:type",Boolean)],bc.prototype,"isCheckboxHidden",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],bc.prototype,"canShowCheckboxEnabledConfirmButton",void 0);_.E([_.d({value:!1,computed:"computeUseOverlayForSpinner_(data.showLoadingSpinnerOnAction, isActionInProgress_)",reflectToAttribute:!0}),_.h("design:type",Boolean)],bc.prototype,"useOverlayForSpinner_",void 0);
_.E([_.d({value:!1,computed:"computeShowSpinner_(useOverlayForSpinner_, data.showLoadingSpinner)"}),_.h("design:type",Boolean)],bc.prototype,"showSpinner_",void 0);_.E([_.d({value:!1}),_.h("design:type",Boolean)],bc.prototype,"isActionInProgress_",void 0);_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasHeaderImageWidth_(data.headerImageWidth)"}),_.h("design:type",Boolean)],bc.prototype,"hasHeaderImageWidth_",void 0);
_.E([_.d({value:!1,reflectToAttribute:!0,computed:"computeHasLoadingMessage(data.loadingMessage)"}),_.h("design:type",Boolean)],bc.prototype,"hasLoadingMessage",void 0);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bc.prototype,"openPopupHandler_",null);_.E([_.km("yt-popup-closed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],bc.prototype,"closePopupHandler_",null);
_.E([_.FI("data.headerImage"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bc.prototype,"onHeaderImageChanged_",null);_.E([_.FI("data.headerImageWidth"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bc.prototype,"onHeaderImageWidthChanged_",null);_.E([_.FI("data.thumbnail"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bc.prototype,"onThumbnailChanged_",null);
_.E([_.km("yt-navigate"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],bc.prototype,"onYtNavigate_",null);_.E([_.km("yt-img-shadow-loaded"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],bc.prototype,"onThumbnailLoaded_",null);_.E([_.km("yt-service-request-sent"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.fE]),_.h("design:returntype")],bc.prototype,"onYtServiceRequestSent_",null);
_.E([_.km("yt-service-request-completed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,_.xs]),_.h("design:returntype")],bc.prototype,"onYtServiceRequestCompleted_",null);bc=_.E([_.lT({is:"yt-confirm-dialog-renderer",noInjection:!0})],bc);var uPy;var zGR;var Ye=function(){return _.q.apply(this,arguments)||this};
_.R(Ye,_.q);Ye.prototype.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");_.f(this.hostElement).querySelector("#scroller").dialogElement=this.hostElement.parentNode};
Ye.prototype.computeConfirmButton_=function(I){var C={text:I.confirmLabel,size:"SIZE_DEFAULT",style:"STYLE_BLUE_TEXT"};I.confirmNavigationEndpoint?C.navigationEndpoint=I.confirmNavigationEndpoint:I.confirmServiceEndpoint&&(C.serviceEndpoint=I.confirmServiceEndpoint);return C};
Ye.prototype.computeShowTitle_=function(I){return!(I==null||!I.title)};
_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ye.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ye.prototype,"data",void 0);_.E([_.d({computed:"computeShowTitle_(data)"}),_.h("design:type",Boolean)],Ye.prototype,"showTitle",void 0);Ye=_.E([_.lT({is:"yt-fancy-dismissible-dialog-renderer",disableElementRegistration:!0})],Ye);
_.Z(Ye,"yt-fancy-dismissible-dialog-renderer",function(){if(zGR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;uPy===void 0&&(uPy=document.createElement("template"));var k=uPy;y.call(C,k.content.cloneNode(!0),I.content.firstChild);zGR=I}I=zGR;return I});var T7M;var cvR;var Ga=function(){var I=_.q.apply(this,arguments)||this;I.spinnerActive=!1;return I};
_.R(Ga,_.q);Ga.prototype.created=function(){fBB(2201)};
Ga.prototype.onIronOverlayOpened=function(){this.spinnerActive=!0};
Ga.prototype.onIronOverlayClosed=function(){this.spinnerActive=!1};
Ga.prototype.onIronOverlayClosed=Ga.prototype.onIronOverlayClosed;Ga.prototype.onIronOverlayOpened=Ga.prototype.onIronOverlayOpened;_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],Ga.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.Zs),_.h("design:type",Object)],Ga.prototype,"tpYtIronOverlayBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],Ga.prototype,"data",void 0);_.E([_.d(),_.h("design:type",Object)],Ga.prototype,"spinnerActive",void 0);
_.E([_.km("iron-overlay-opened"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ga.prototype,"onIronOverlayOpened",null);_.E([_.km("iron-overlay-closed"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],Ga.prototype,"onIronOverlayClosed",null);Ga=_.E([_.lT({is:"yt-loading-renderer",disableElementRegistration:!0})],Ga);
_.Z(Ga,"yt-loading-renderer",function(){if(cvR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;T7M===void 0&&(T7M=document.createElement("template"));var k=T7M;y.call(C,k.content.cloneNode(!0),I.content.firstChild);cvR=I}I=cvR;return I},{mode:2});var eGj;var rvR;var fS=function(){var I=_.q.apply(this,arguments)||this;I.closeOnDismissButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_DISMISS_BUTTON_TAP"]);I.closeOnAcceptButton_=new Set(["UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN","UPSELL_DIALOG_DISMISS_STRATEGY_ONLY_ACTION_BUTTON_TAP"]);I.defaultDismissStrategy_="UPSELL_DIALOG_DISMISS_STRATEGY_UNKNOWN";I.actionMap={"yt-dark-mode-toggled-action":"onDarkModeToggledAction"};return I};
_.R(fS,_.q);_.u=fS.prototype;_.u.configureRendererStamper=function(){return{"data.actionButton":{id:"action-button",mapping:{buttonRenderer:"yt-button-renderer"}},"data.dismissButton":{id:"dismiss-button",mapping:{buttonRenderer:"yt-button-renderer"}}}};
_.u.attached=function(){this.hostElement.hasAttribute("dialog")||this.hostElement.setAttribute("dialog","true");this.isDarkTheme=!!document.documentElement.hasAttribute("dark")};
_.u.onDarkModeToggledAction=function(I){this.isDarkTheme=I};
_.u.dataChanged_=function(){this.data&&(this.hostElement.hidden=!this.data.isVisible,this.data.isVisible||this.ytRendererBehavior.impressionLog())};
_.u.openPopupHandler_=function(I){I.detail===this.hostElement&&this.hostElement.hidden&&_.Fe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"])};
_.u.onDismissButtonTap_=function(){var I;this.closeOnDismissButton_.has(((I=this.data)==null?void 0:I.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Fe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.u.onAcceptButtonTap_=function(){var I;this.closeOnAcceptButton_.has(((I=this.data)==null?void 0:I.dismissStrategy)||this.defaultDismissStrategy_)&&(this.set("data.isVisible",!1),_.Fe(this.hostElement,"yt-close-popup-action",["yt-upsell-dialog-renderer"]))};
_.u.computeHasHeader_=function(I){return!!I.headerBackgroundImage};
_.u.computeLayoutStyle_=function(I){return I};
_.u.computePopupSize_=function(I){return I};
_.u.computeIconType_=function(I){return I.dialogIcon&&I.dialogIcon.iconType?I.dialogIcon.iconType==="YOUTUBE_LOGO"?"yt-logos-ext:yt-logo-updated":I.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"?"yt-logos-ext:yt-logo-red-updated":I.dialogIcon.iconType:""};
_.u.computeIsLogo_=function(I){return!!I.dialogIcon&&!!I.dialogIcon.iconType&&(I.dialogIcon.iconType==="YOUTUBE_LOGO"||I.dialogIcon.iconType==="YOUTUBE_PREMIUM_LOGO"||I.dialogIcon.iconType==="YOUTUBE_MUSIC_LOGO_SHORT")};
_.u.computeHasCustomLogo=function(I){return!(I==null||!I.headerForegroundImage)};
_.u.computeCustomLogo=function(I,C){if(I!=null&&I.headerForegroundImage)return I.headerForegroundImageDark?C?I.headerForegroundImageDark:I.headerForegroundImage:I.headerForegroundImage};
_.u.computeHeaderBackgroundImage=function(I,C){if(I!=null&&I.headerBackgroundImage)return C&&(I==null?0:I.headerBackgroundImageDark)?I.headerBackgroundImageDark:I.headerBackgroundImage};
_.u.shouldShowIconContainer=function(I,C){return I&&!C};
_.u.shouldShowNonYouTubeIcon=function(I,C){return!I&&!C};
_.u.getLogoImageId=function(I){var C,y,k;return(I=(C=this.computeCustomLogo(I,this.isDarkTheme))==null?void 0:(y=C.thumbnails)==null?void 0:(k=y[0])==null?void 0:k.height)&&I%31===0?"custom-logo-with-padding":"custom-logo"};
fS.prototype.openPopupHandler_=fS.prototype.openPopupHandler_;fS.prototype.dataChanged_=fS.prototype.dataChanged_;_.E([_.g(_.B7.YtRendererstamperBehavior),_.h("design:type",Object)],fS.prototype,"ytRendererstamperBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],fS.prototype,"ytRendererBehavior",void 0);_.E([_.d(),_.h("design:type",Boolean)],fS.prototype,"isDarkTheme",void 0);
_.E([_.d({computed:"computeCustomLogo(data, isDarkTheme)"}),_.h("design:type",Object)],fS.prototype,"customLogo",void 0);_.E([_.d({computed:"computeHeaderBackgroundImage(data, isDarkTheme)"}),_.h("design:type",Object)],fS.prototype,"headerBackgroundImage",void 0);_.E([_.d(),_.h("design:type",Object)],fS.prototype,"data",void 0);_.E([_.d({computed:"computeHasHeader_(data)"}),_.h("design:type",Boolean)],fS.prototype,"hasHeader",void 0);
_.E([_.d({computed:"computeLayoutStyle_(data.layout)",reflectToAttribute:!0}),_.h("design:type",Object)],fS.prototype,"layoutStyle",void 0);_.E([_.d({computed:"computePopupSize_(data.popupSize)",reflectToAttribute:!0}),_.h("design:type",Object)],fS.prototype,"popupSize",void 0);_.E([_.d({computed:"computeIsLogo_(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],fS.prototype,"hasLogo",void 0);
_.E([_.d({computed:"computeHasCustomLogo(data)",reflectToAttribute:!0}),_.h("design:type",Boolean)],fS.prototype,"hasCustomLogo",void 0);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],fS.prototype,"dataChanged_",null);_.E([_.km("yt-popup-opened"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],fS.prototype,"openPopupHandler_",null);
fS=_.E([_.lT({is:"yt-upsell-dialog-renderer",disableElementRegistration:!0})],fS);
_.Z(fS,"yt-upsell-dialog-renderer",function(){if(rvR===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;eGj===void 0&&(eGj=document.createElement("template"));var k=eGj;y.call(C,k.content.cloneNode(!0),I.content.firstChild);rvR=I}I=rvR;return I},{mode:2});var id8=_.BO(function(I){return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-header"},_.P(_.Dx,{cond:I.title,then:function(C){return _.P("h2",{class:"mini-app-game-info-dialog-view-model-wiz__header-title"},C)}}))},"cg"),wWY=_.BO(function(I){return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-dialog-footer"},_.P(_.lY,{data:I.closeButton},{buttonViewModel:function(C){return _.P("div",null,_.P(_.fM,{data:C.data}))}}))},"dg"),n8K=_.BO(function(I){var C=
I.data;
return _.P(_.aF,null,_.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info-details"},_.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-image-wrapper"},_.P(_.Dx,{cond:function(){return!!C().image&&!!C().title},
then:function(){return _.P(_.x$,{data:function(){return C().image},
alt:"",contentMode:"CONTENT_MODE_SCALE_ASPECT_FILL"})}})),_.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__primary-game-info"},_.P(_.Dx,{cond:function(){return C().title},
then:function(y){return _.P("h3",{class:"mini-app-game-info-dialog-view-model-wiz__title"},y)}}),_.P(_.Dx,{cond:function(){return C().primaryGenre},
then:function(y){return _.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__genre"},y)}}))),_.P(_.Dx,{cond:function(){var y=C().description;
return y&&y.length<=150},
then:function(){return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-description-wrapper"},_.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__game-description"},function(){return C().description}))}}))},"eg"),PmB=_.BO(function(I){I=I.infoRows;
var C=_.N().resolve(_.$h),y=_.V("enable_displaying_ppn");return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-rows-wrapper"},_.P(_.pH,{each:I},function(k){return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.P(_.Dx,{cond:function(){return k.label},
then:function(F){return _.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},F)}}),_.P(_.Dx,{cond:function(){return k.attributedLabel},
then:function(F){return _.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},_.P(_.wh,{text:F,noPreWrap:!0}))}}),_.P(_.Dx,{cond:function(){return k.value},
then:function(F){return _.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},F)}}),_.P(_.Dx,{cond:function(){return k.attributedValue},
then:function(F){return _.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},_.P(_.wh,{text:F,noPreWrap:!0}))}}))}),_.P(_.Dx,{cond:function(){return y&&C.clientData.has("post_play_nonce")},
then:function(){return _.P("div",{class:"mini-app-game-info-dialog-view-model-wiz__game-info-row"},_.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-label"},"Post Play Nonce"),_.P("span",{class:"mini-app-game-info-dialog-view-model-wiz__info-value"},C.getData("post_play_nonce")))}}))},"fg"),LFK=_.BO(function(I){var C=I.data;
return _.P("yt-mini-app-game-info-dialog-view-model",{class:"mini-app-game-info-dialog-view-model-wiz"},_.P(id8,{title:function(){return C().dialogTitle}}),_.P(n8K,{data:C}),_.P(_.Dx,{cond:function(){return C().infoRow},
then:function(y){return _.P(PmB,{infoRows:y})}}),_.P(wWY,{closeButton:function(){return C().closeButton}}))},"gg");
LFK.idomCompat=!0;_.B9(LFK,"yt-mini-app-game-info-dialog-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;return _.P("yt-gulp-triggering-dialog-view-model",{class:"ytGulpTriggeringDialogViewModelHost"},_.P(_.x$,{data:function(){return C().headerImage},
alt:"",className:"ytGulpTriggeringDialogViewModelHostImage"}),_.P("div",{class:"ytGulpTriggeringDialogViewModelHostDialog"},_.P("div",{class:"ytGulpTriggeringDialogViewModelHostIconDiv"},_.P(_.Dx,{cond:function(){var y=C().ytLogo;return y?y.iconType:null},
then:function(y){return _.P(_.ez,{icon:y,className:"ytGulpTriggeringDialogViewModelHostIcon"})}})),_.P("div",{class:"ytGulpTriggeringDialogViewModelHostContent"},_.P("p",{class:"ytGulpTriggeringDialogViewModelHostTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P("p",{class:"ytGulpTriggeringDialogViewModelHostParagraph"},_.P(_.wh,{text:function(){return C().body}})),_.P("p",{class:"ytGulpTriggeringDialogViewModelHostLastParagraph"},_.P(_.wh,{text:function(){return C().verifyStateText}}))),
_.P("div",{class:"ytGulpTriggeringDialogViewModelHostButtonRow"},_.P("div",null,_.P(_.lY,{data:function(){return C().dismissButton}},{buttonViewModel:_.fM})),_.P("div",null,_.P(_.lY,{data:function(){return C().linkParentButton}},{buttonViewModel:_.fM})))))},"hg"),"yt-gulp-triggering-dialog-view-model",{props:{data:_.As}});var DeM=_.BO(function(I){var C=I.data;return _.P("installment-agreements-view-model",{class:_.sZ("ytInstallmentAgreementsViewModelHost")},_.P(_.pH,{each:_.mh(function(){return C().agreements},[])},function(y){return _.P("div",{class:"ytInstallmentAgreementsViewModelAgreementRow"},_.P("div",{class:"ytInstallmentAgreementsViewModelAgreementLabel"},_.P(_.wh,{text:y.label})),_.P("div",{class:"ytInstallmentAgreementsViewModelAgreementButton"},_.P(_.lY,{data:function(){return y.openButton}},{buttonViewModel:_.fM})))}))},
"ig");
DeM.idomCompat=!0;var pWY=_.BO(function(I){return _.P("collaborative-playlist-invite-message-view-model",{class:"ytCollaborativePlaylistInviteMessageViewModelHost"},_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelInviteMessageWrapper"},_.P(_.wh,{text:function(){return I.data().inviteMessage}})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountSectionHeaderText"},_.P(_.wh,{text:function(){return I.data().attributedAccountSectionHeaderText}})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountWrapper"},
_.P(_.lY,{data:function(){return I.data().accountAvatar}},{avatarViewModel:_.rF}),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelAccountText"},_.P(_.wh,{text:function(){return I.data().accountName}}),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelHandle"},_.P(_.wh,{text:function(){return I.data().handle}}))),_.P(_.lY,{data:function(){return I.data().trailingButton}},{buttonViewModel:_.fM})),_.P("div",{class:"ytCollaborativePlaylistInviteMessageViewModelTermsOfService"},
_.P(_.wh,{text:function(){return I.data().termsOfService}})))},"jg");var Q6L=_.BO(function(I){var C=_.T(_.TN(function(){var a,cs;return((a=I.data().createPlaylistDialogFormSchema)==null?0:(cs=a.initialValues)==null?0:cs.title)?I.data().createPlaylistDialogFormSchema.initialValues.title:""})),y=C.next().value,k=C.next().value;
C=_.T(_.TN(function(){I.data();return!1}));
var F=C.next().value,z=C.next().value;C=_.T(_.TN(function(){I.data();return!1}));
var c=C.next().value,r=C.next().value;C=_.T(_.TN(function(){var a,cs;return(a=I.data().createPlaylistDialogFormSchema)==null?void 0:(cs=a.initialValues)==null?void 0:cs.visibility}));
var w=C.next().value,L=C.next().value;C=_.T(_.TN(function(){I.data();return!1}));
var D=C.next().value,p=C.next().value;C=_.T(_.TN(function(){var a,cs;return(a=I.data().createPlaylistDialogFormSchema)==null?void 0:(cs=a.initialValues)==null?void 0:cs.isCollaborative}));
var Q=C.next().value,X=C.next().value,b=_.Es();_.l0(function(){var a=b.value.querySelector("textarea");a&&(a.value=y())});
_.RU(function(){var a;_.OeK((a=I.data().createPlaylistDialogFormSchema)==null?void 0:a.id,{onSubmit:function(){var cs=y();var XO=w(),Rm=Q(),$z=I.data();cs={commandExecutorCommand:{commands:[{createPlaylistServiceEndpoint:{title:cs,privacyStatus:XO,videoIds:$z.videoIds,sourcePlaylistId:$z.sourcePlaylistId,params:Rm?$z.createPlaylistParamsCollaborationEnabled:$z.createPlaylistParamsCollaborationDisabled}},{dismissDialogEndpoint:{}}]}};_.N().resolve(_.ID).resolveCommand(cs)},
isValid:function(){return F()&&!c()&&!D()}})});
var S=function(a){if(a!==void 0&&(k(a),!F()&&a.length>0&&z(!0),F())){var cs=v9K(I.data());if(cs){var XO=cs.minLength;cs=cs.maxLength;XO&&a.length<XO?r(!0):cs&&a.length>cs?r(!0):r(!1)}}},A=function(){var a=!(!Q()||w()!=="PRIVATE");
p(a)},x=function(a){a!==void 0&&(L(a),A())},B=function(){if(D())return dk8(I.data())},t=function(){X(!Q());
A()},U=function(){return{validate:function(a){if(F()){var cs=v9K(I.data());
if(cs){var XO=cs.minLength;cs=cs.translations;if(XO&&a.length<XO)return cs==null?void 0:cs.minLengthErrorMessage}}}}},yW=function(){var a=v9K(I.data()),cs=a==null?void 0:a.maxLength,XO;
a=a==null?void 0:(XO=a.translations)==null?void 0:XO.maxLengthErrorMessage;if(cs&&a)return{maxChars:cs,errorMessage:a}};
return _.P("yt-create-playlist-dialog-form-view-model",{class:"ytCreatePlaylistDialogFormViewModelHost"},_.P("div",{class:"ytCreatePlaylistDialogFormViewModelTitleField",el:b},_.P(_.lY,{data:function(){return I.data().playlistTitle}},{textFormFieldViewModel:function(a){return _.P(_.fxR,{data:a.data,
text:y,onInput:S,validation:U,characterLimit:yW})},
textFieldViewModel:function(a){return _.P(_.GuR,{data:a.data,text:y,onInput:S,validation:U,characterLimit:yW})}})),_.P("div",{class:"ytCreatePlaylistDialogFormViewModelVisibilityField"},_.P(_.lY,{data:function(){return I.data().playlistVisibility}},{dropdownViewModel:function(a){return _.P(_.B5L,{data:a.data,
onSelected:x,error:B})}})),_.P(_.Dx,{cond:function(){return!!I.data().playlistCollaborate},
then:function(){return _.P("div",null,_.P(_.lY,{data:function(){return I.data().playlistCollaborate}},{switchListItemViewModel:function(a){return _.P(_.D$,{data:a.data,
onTap:t})}}))}}))},"kg");var N7L=_.BO(function(I){var C=_.mh(I.noPadding,!1),y=function(){var F,z;return(z=(F=I.data().logo.accessibilityData)==null?void 0:F.label)!=null?z:""},k={};
return _.P("upsell-view-model",{class:_.sZ("ytUpsellViewModelHost",(k.ytUpsellViewModelHostNoPadding=function(){return C()},k))},_.P("div",{class:"ytUpsellViewModelHostUpsellLogo"},_.P(_.Dx,{cond:function(){return _.J9(I.data().logo)},
then:function(F){return _.P(_.x$,{data:F,contentMode:"CONTENT_MODE_SCALE_ASPECT_FIT",alt:y})}})),_.P("div",{class:"ytUpsellViewModelHostUpsellTitle"},_.P(_.wh,{text:function(){return I.data().title}})),_.P("div",{class:"ytUpsellViewModelHostUpsellSubtitleSection"},_.P(_.pH,{each:function(){var F;
return(F=I.data().subtitles)!=null?F:[]},
keyBy:"INDEX"},function(F){return _.P("div",{class:"ytUpsellViewModelHostUpsellSubtitleSectionSubtitle"},_.P(_.wh,{text:F}))})),_.P("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSection"},_.P(_.pH,{each:function(){var F;
return(F=I.data().benefitInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){return _.P(_.Dx,{cond:function(){return F().info},
then:function(z){return _.P("div",{class:"ytUpsellViewModelHostUpsellBenefitInfoSectionBenefitInfo"},_.P(_.ez,{icon:"CHECK_CIRCLE_FILLED",className:"ytUpsellViewModelHostUpsellBenefitInfoSectionIcon"}),_.P(_.wh,{text:z}))}})})),_.P("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSection"},_.P(_.pH,{each:function(){var F;
return(F=I.data().legalInfos)!=null?F:[]},
keyBy:"INDEX"},function(F){return _.P("div",{class:"ytUpsellViewModelHostUpsellLegalInfoSectionLegalInfo"},_.P(_.wh,{text:F}))})))},"lg");var Vaj=_.BO(function(I){var C=I.data;I={};I=(I.ytMiniAppScoreChallengeViewModelScoreRadial=!0,I.ytMiniAppScoreChallengeViewModelDarkScoreRadial=xk8(),I);return _.P("yt-mini-app-score-challenge-view-model",{class:"ytMiniAppScoreChallengeViewModelHost"},_.P("div",{class:"ytMiniAppScoreChallengeViewModelTitle"},function(){return C().title}),_.P("div",{class:"ytMiniAppScoreChallengeViewModelSubtitle"},function(){return C().subtitle}),_.P("div",{class:_.yc(I)},_.P("div",{class:"ytMiniAppScoreChallengeViewModelScore"},
function(){return C().score})),_.P("div",{class:"ytMiniAppScoreChallengeViewModelPrompt"},function(){return C().prompt}))},"mg");var j6j=function(){this.store=_.dW();this.formId=""};var lly=_.BO(function(I){function C(r){if(r&&(r=_.l(r,_.Pj)))return Object.assign({},r,{isSelected:z()})}
var y=_.T(_.TN(function(){var r,w;return(w=(r=_.l(I.data().option,_.Pj))==null?void 0:r.isSelected)!=null?w:!1})),k=y.next().value,F=y.next().value,z=k;
_.RU(function(){var r;_.OeK((r=I.data().formSchema)==null?void 0:r.id,{onSubmit:function(){var w=_.N().resolve(_.ID),L=!!I.data().selectedCommand,D=!!I.data().unselectedCommand;if(z()){if(L)var p=I.data().selectedCommand}else D&&(p=I.data().unselectedCommand);p=_.Rj(p);C(I.data().option)&&!p?(w="",!L&&D?w="selected ":L&&!D&&(w="unselected "),L=new _.ph("No "+w+"command found for SelectionListItemFormViewModel"),_.GB(L)):p&&w.resolveCommand(p)},
isValid:function(){return!0}})});
var c=function(){F(!z())};
_.$4(function(){var r,w,L=(r=I.data())==null?void 0:(w=r.formSchema)==null?void 0:w.id;L&&_.tlS()().delete(L)});
return _.P("yt-selection-list-item-form-view-model",{class:"ytSelectionListItemFormViewModelHost"},_.P("div",{class:"ytSelectionListItemFormViewModelParagraph"},_.P(_.wh,{text:function(){return I.data().paragraph}})),_.P(_.Dx,{cond:function(){return C(I.data().option)},
then:function(r){return _.P(_.LJ,{data:r,isCompact:!0,hideSelectionTextChevron:!0,onTap:c,disableHorizontalPadding:!0})}}))},"ng");var ZxY=_.Qg({avatarStackViewModel:_.$WY});_.MU(Biy);var XWY=_.BO(function(I){var C=I.data;var y=I.disablePadding;var k=I.className;var F=_.Es(),z=function(){return qeK(C().banner,C().assetContainerPaddingStyle)},c=function(){return qeK(C().imageBanner,C().assetContainerPaddingStyle)},r=function(){return C().assetContainerPaddingStyle!=="DIALOG_HEADER_ASSET_PADDING_STYLE_INSET"};
_.RU(function(){var w=function(){mkR(F.value)},L;
(L=F.value)==null||L.addEventListener("image-loaded",w);_.$4(function(){var D;(D=F.value)==null||D.removeEventListener("image-loaded",w)})});
I={};return _.P("yt-dialog-header-view-model",{el:F,class:_.sZ(k,(I.ytDialogHeaderViewModelHost=!0,I.ytDialogHeaderViewModelHostDisablePadding=y,I))},_.P(_.Dx,{cond:function(){return C().banner},
then:function(){var w={};return _.P("div",{class:_.sZ(k,(w.ytDialogHeaderViewModelBanner=!0,w.ytDialogHeaderViewModelBannerFullBleed=r,w)),style:_.cP({"max-height":function(){return C().assetContainerMaxHeight?C().assetContainerMaxHeight+"px":""}})},_.P(_.Zh,{data:z,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.P(_.Dx,{cond:function(){return C().imageBanner},
then:function(){var w={};return _.P("div",{class:_.sZ(k,(w.ytDialogHeaderViewModelBanner=!0,w.ytDialogHeaderViewModelBannerFullBleed=r,w)),style:_.cP({"max-height":function(){return C().assetContainerMaxHeight!==void 0?C().assetContainerMaxHeight+"px":void 0}})},_.P(_.Zh,{data:c,
className:"ytDialogHeaderViewModelBannerImage",notifyOnLoaded:!0}))}}),_.P(_.Dx,{cond:function(){return C().customAssetContainer},
then:function(w){return _.P("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.P(_.lY,{data:w},{avatarStackViewModel:_.nz}))}}),_.P(_.Dx,{cond:function(){return C().customBanner},
then:function(w){return _.P("div",{class:"ytDialogHeaderViewModelCustomAssetContainer"},_.P(_.lY,{data:w},{avatarStackViewModel:_.nz}))}}),_.P(_.Dx,{cond:function(){return C().headline},
then:function(w){return _.P("h2",null,_.P(_.wh,{text:w,className:"ytDialogHeaderViewModelText"}))}}))},"og"),$eB=_.V("web_enable_sink_dialog_header_view_model")?XWY:_.ks(Biy);
XWY.idomCompat=!0;var RGB=_.BO(function(I){var C=_.aoB(function(){return I.data().formId}),y=C.onSubmit,k=C.isValid;
return _.P("yt-form-panel-footer-view-model",{class:"ytFormPanelFooterViewModelHost"},_.P(_.lY,{data:function(){return I.data().panelFooter}},{panelFooterViewModel:function(F){return _.P(_.K4,{data:F.data,
disablePadding:!0,disablePrimaryButton:function(){return!k()},
onClickPrimaryButton:function(){y()}})}}))},"pg");var GPY=_.BO(function(I){var C=_.ZB(I,{headerPosition:0,buttonLayout:0,buttonStyle:0,contentAlignment:0,maxHeight:0,isFullscreen:!1,isHeaderWizDefined:!1,isFooterWizDefined:!1}),y=C.elRefCallback;I=C.iconWiz;var k=C.assetWiz,F=C.assetType,z=C.titleWiz,c=C.leadingActionHeaderWiz,r=C.trailingActionHeaderWiz,w=C.headerPosition,L=C.contentWiz,D=C.buttonLayout,p=C.buttonStyle,Q=C.primaryButtonWiz,X=C.secondaryButtonWiz,b=C.contentAlignment,S=C.isFullscreen,A=C.width,x=C.maxHeight,B=C.isHeaderWizDefined,
t=C.headerWiz,U=C.isFooterWizDefined,yW=C.footerWiz;C=_.Es(function(Bs){y==null||y(Bs)});
var a=k?function(){return k({className:"yt-spec-dialog-layout__dialog-layout-asset-item"})}:void 0,cs=Q?function(){var Bs={};
return Q({buttonOverrides:function(){return{style:(p==null?void 0:p())===1?"call-to-action":"mono",type:"filled",state:"active",size:"M"}},
className:_.sZ((Bs["yt-spec-dialog-layout__dialog-layout-button"]=!0,Bs["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},Bs))})}:void 0,XO=X?function(){var Bs={};
return X({buttonOverrides:{style:"mono",type:"outline",state:"active",size:"M"},className:_.sZ((Bs["yt-spec-dialog-layout__dialog-layout-button"]=!0,Bs["yt-spec-dialog-layout__dialog-layout-button--dialog-buttons-inline-stretched"]=function(){return(D==null?void 0:D())===0||(D==null?void 0:D())===2},Bs))})}:void 0,Rm=function(){return(!!z||!!c||!!r)&&w()===0},$z={},hX={},vs={},mY={};
return _.P("dialog-layout",{el:C,class:_.sZ(($z["yt-spec-dialog-layout"]=!0,$z["yt-spec-dialog-layout--dialog-layout-fullscreen"]=S,$z["yt-spec-dialog-layout--dialog-layout-responsive"]=function(){return!S()},$z["yt-spec-dialog-layout--dialog-layout-extended-max-height"]=function(){return x()===1},$z["yt-spec-dialog-layout--dialog-layout-asset-inset"]=function(){return(F==null?void 0:F())===1},$z)),
style:function(){return(A==null?void 0:A())!==void 0?"width: "+A+"px;":""}},I?_.P("div",{class:_.sZ((hX["yt-spec-dialog-layout__dialog-layout-icon"]=!0,hX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-above-media"]=function(){return!!k&&w()===1},hX["yt-spec-dialog-layout__dialog-layout-icon--dialog-layout-icon-center-align"]=function(){return b()===1},hX))},_.P(I,null)):null,_.P(_.Dx,{cond:B,
then:function(){return t?_.P("div",{class:"yt-spec-dialog-layout__dialog-header-container"},_.P(t,null)):null},
else:function(){return _.P(_.aF,null,_.P(_.Dx,{cond:Rm,then:function(){return _.P(bdY,{contentAlignment:b,LeadingActionHeader:c,TrailingActionHeader:r,Title:z,isAboveAsset:!!a})}}),a?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-asset"},_.P(a,null)):null)}}),_.P("div",{class:_.sZ((vs["yt-spec-dialog-layout__dialog-layout-container"]=!0,vs["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(b==null?void 0:b())===1},vs["yt-spec-dialog-layout__dialog-layout-container--dialog-layout-container-top-padding"]=
function(){return!z&&!t||!!a&&(w==null?void 0:w())===0},vs))},_.P(_.Dx,{cond:function(){return z&&!t&&(w==null?void 0:w())===1},
then:function(){return _.P(bdY,{contentAlignment:b,LeadingActionHeader:c,TrailingActionHeader:r,Title:z,isAboveAsset:!1})}}),L?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-content"},_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-content-inner"},_.P(L,null))):null,_.P(_.Dx,{cond:U,
then:function(){return yW?_.P("div",{class:"yt-spec-dialog-layout__dialog-layout-footer-container"},_.P(yW,null)):null}}),cs||XO?_.P(YRH,{footerClasses:_.sZ((mY["yt-spec-dialog-layout__dialog-layout-footer-container"]=!0,mY["yt-spec-dialog-layout__dialog-layout-footer"]=!0,mY["yt-spec-dialog-layout--dialog-buttons-stacked"]=function(){return(D==null?void 0:D())===2},mY["yt-spec-dialog-layout__dialog-layout-footer--dialog-buttons-inline-end"]=function(){return(D==null?void 0:D())===1},mY)),
PrimaryButton:cs,SecondaryButton:XO}):null))},"qg"),bdY=_.BO(function(I){var C=_.ZB(I,{isAboveAsset:!1,
enableLeadingActionHeader:!0}),y=C.contentAlignment,k=C.LeadingActionHeader;I=C.Title;var F=C.TrailingActionHeader,z=C.isAboveAsset,c=C.enableLeadingActionHeader;C={};return _.P("div",{class:_.sZ((C["yt-spec-dialog-layout__dialog-header-container"]=!0,C["yt-spec-dialog-layout__dialog-header"]=!0,C["yt-spec-dialog-layout__dialog-header--dialog-header-above-asset"]=z,C["yt-spec-dialog-layout--dialog-layout-center-align"]=function(){return(y==null?void 0:y())===1&&c()},C))},_.P(_.Dx,{cond:function(){return c()},
then:function(){return k?_.P("div",{class:"yt-spec-dialog-layout__dialog-leading-action-header"},_.P(k,null)):null}}),I?_.P("h2",{class:"yt-spec-dialog-layout__dialog-layout-title"},_.P(I,null)):null,F?_.P("div",null,_.P(F,null)):null)},"rg"),YRH=_.BO(function(I){var C=I.footerClasses;
var y=I.PrimaryButton;I=I.SecondaryButton;return _.P("div",{class:C},I?_.P(I,null):null,y?_.P(y,null):null)},"sg");var flY=_.BO(function(I){var C=I.data;return _.P("ytfz-fanzone-scheduled-info-view-model",{class:"ytfzFanzoneScheduledInfoViewModelHost"},_.P("div",{class:"ytfzFanzoneScheduledInfoViewModelAvatar"},_.P(_.lY,{data:function(){return C().avatar}},{avatarViewModel:_.rF})),_.P("h2",{class:"ytfzFanzoneScheduledInfoViewModelTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P(_.wh,{text:function(){return C().description},
className:"ytfzFanzoneScheduledInfoViewModelDescription"}))},"tg");var SR8=_.BO(function(I){var C=I.data;return _.P("yt-access-confirmation-view-model",{class:"ytAccessConfirmationViewModelHost"},_.P("div",{class:"ytAccessConfirmationViewModelContent"},_.P(_.lY,{data:function(){return C().dualAvatar}},{dualAvatarViewModel:function(y){return _.P("div",{class:"ytAccessConfirmationViewModelDualAvatar"},_.P(_.f3w,{data:y.data}))}}),_.P("h2",{class:"ytAccessConfirmationViewModelTitle"},_.P(_.wh,{text:function(){return C().title}})),_.P(_.wh,{text:function(){return C().subtitle},
className:"ytAccessConfirmationViewModelSubtitle"})))},"ug");var KFy=_.BO(function(I){var C=I.data;var y=void 0;I=_.T(_.c4("",void 0,"O14qgc"));var k=I.next().value,F=I.next().value,z,c=function(){F("");var L;(L=y)!=null&&L.store.dispatch(_.yE({type:"RESET_COMMAND_MAP"}))};
_.RU(function(){y=new j6j;window.addEventListener("yt-popup-closed",c)});
_.l0(function(){if(y&&z!==C().formId){var L=y,D=C();D.formId&&(L.formId=D.formId,L.store.dispatch(_.yE({type:"SET_CURRENT_FORM_ID",payload:{formId:L.formId}})));z=C().formId}});
_.$4(function(){window.removeEventListener("yt-popup-closed",c)});
var r=function(L,D,p){D.key&&p&&D.key!==k()&&(F(D.key),y&&D.command&&y.store.dispatch(_.yE({type:"SET_COMMAND_FOR_GROUP_ID",payload:{groupId:p,command:D.command}})))},w=function(){if(_.l(C().content,_.ezH))return!(k==null?0:k())};
return _.P("yt-dialog-view-model",{class:_.sZ("ytDialogViewModelHost","ytDialogViewModelResetSpacing"),dialog:!0},_.P(GPY,{headerWiz:function(){return _.P("span",{skip:!0},_.P(_.lY,{data:function(){return C().header}},{dialogHeaderViewModel:function(L){return _.P($eB,{data:L.data,
disablePadding:!0})}}))},
isHeaderWizDefined:function(){return!!C().header},
contentWiz:function(){return _.P("span",{skip:!0},_.P(_.lY,{data:function(){return C().customContent?C().customContent:C().content}},{basicContentViewModel:_.zby,
createPlaylistDialogFormViewModel:Q6L,collaborativePlaylistInviteMessageViewModel:pWY,miniAppScoreChallengeViewModel:Vaj,radioButtonGroupViewModel:function(L){return _.P(_.q3R,{data:L.data,selectedKey:k,onSelected:r})},
selectionListItemFormViewModel:lly,upsellViewModel:function(L){return _.P(N7L,{data:L.data,noPadding:!0})},
fanzoneScheduledInfoViewModel:flY,installmentAgreementsViewModel:DeM,accessConfirmationViewModel:SR8,listViewModel:_.zRu}))},
footerWiz:function(){return _.P("span",{skip:!0},_.P(_.lY,{data:function(){return C().footer}},{panelFooterViewModel:function(L){return _.P(_.K4,{data:L.data,
disablePadding:!0,disablePrimaryButton:w})},
formPanelFooterViewModel:RGB,formFooterViewModel:function(L){return _.P(_.R8L,{data:L.data,disablePadding:!0})}}))},
isFooterWizDefined:function(){return!!C().footer}}))},"vg");
KFy.idomCompat=!0;_.B9(KFy,"yt-dialog-view-model",{props:{data:_.As},unsafeExternallySettableAttributes:new Set(["tabindex","style"])});var AvY=_.BO(function(I){var C=I.data;I={};return _.P("yt-panel-header-view-model",{class:_.sZ("yt-panel-header-view-model-wiz",(I["yt-panel-header-view-model-wiz--hide-divider"]=function(){return!!C().shouldHideDivider},I["yt-panel-header-view-model-wiz--compact"]=function(){return!!C().subtitle},I))},_.P("div",{class:"yt-panel-header-view-model-wiz__title-wrapper"},_.P(_.Dx,{cond:function(){return C().title},
then:function(y){return _.P(_.wh,{text:y,className:"yt-panel-header-view-model-wiz__title"})}}),_.P(_.Dx,{cond:function(){return C().subtitle},
then:function(y){return _.P(_.wh,{text:y,className:"yt-panel-header-view-model-wiz__subtitle"})}})),_.P("div",{class:"yt-panel-header-view-model-wiz__trailing-buttons"},_.P(_.lY,{data:function(){return C().trailingButtons}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"yt-panel-header-view-model-wiz__button"})}})))},"wg");
AvY.idomCompat=!0;var g8B=_.BO(function(I){var C=_.uk(function(z){var c;if((c=I.skipContentClick)==null?0:c.call(I))return!1;I.onContentWrapperClick(z);return!0}),y,k,F;
return _.P("div",{class:_.sZ("yt-spec-bottom-sheet-layout","yt-spec-bottom-sheet-layout__bottom-sheet-renderer-container","yt-spec-bottom-sheet-layout--modern"),style:function(){return I.isAnimating()?"transform: translateY("+I.currentY()+"px);transition: 0.2s":""}},(y=I.header)==null?void 0:y.call(I),_.P("div",{id:I.contentWrapperId,
class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-content-wrapper",style:_.cP({"max-height":(0,_.nJ)(I.maxHeightForContentWrapper)}),"on:scroll":Hxy(I.onScroll),"on:touchmove":Hxy(function(z){return void z.stopPropagation()})},_.P("div",{el:{onRender:I.contentWrapperEl},
class:"yt-spec-bottom-sheet-layout__bottom-sheet-content","on:click":C},(k=I.body)==null?void 0:k.call(I))),(F=I.footer)==null?void 0:F.call(I))},"xg");
g8B.idomCompat={callbacks:{onScroll:!0,contentWrapperEl:!0,onContentWrapperClick:!0}};var v8R=_.BO(function(I){var C=_.mh(I.leadingLabel),y=_.mh(I.trailingLabel),k=_.mh(I.footerButtonType),F=function(){return C()||y()||I.hasPrimaryButton()||I.hasSecondaryButton()},z={},c=_.sZ("yt-spec-bottom-sheet-layout__primary-button",(z["yt-spec-bottom-sheet-layout__primary-button--default"]=function(){return k()===0&&I.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--trailing-pair"]=function(){return k()===1&&I.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--split-pair"]=
function(){return k()===2&&I.hasPrimaryButton()},z["yt-spec-bottom-sheet-layout__primary-button--primary-split-pair"]=function(){return k()===3&&I.hasPrimaryButton()},z));
z={};var r=_.sZ("yt-spec-bottom-sheet-layout__secondary-button",(z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-trailing-pair"]=function(){return k()===1&&I.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-split-pair"]=function(){return k()===2&&I.hasSecondaryButton()},z["yt-spec-bottom-sheet-layout__secondary-button--secondary-button-primary-split-pair"]=function(){return k()===3&&I.hasPrimaryButton()},z));
return _.P(_.Dx,{cond:I.hasFooterOverride,then:function(){var w;return _.P(_.aF,null,(w=I.footerOverride)==null?void 0:w.call(I))},
else:function(){return _.P(_.Dx,{cond:F,then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-footer-wrapper"},_.P(_.Dx,{cond:function(){return C()||y()},
then:function(){var w={};return _.P("div",{class:_.sZ("yt-spec-bottom-sheet-layout__footer-label-wrapper",(w["yt-spec-bottom-sheet-layout__footer-label-wrapper--without-buttons"]=function(){return!I.hasPrimaryButton()},w))},_.P(_.Dx,{cond:C,
then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__leading-label"},C)}}),_.P(_.Dx,{cond:y,
then:function(){return _.P("div",{class:"yt-spec-bottom-sheet-layout__trailing-label"},y)}}))}}),_.P(_.Dx,{cond:function(){return I.hasPrimaryButton()||I.hasSecondaryButton()},
then:function(){var w={};return _.P("div",{class:_.sZ("yt-spec-bottom-sheet-layout__footer-button-wrapper",(w["yt-spec-bottom-sheet-layout__footer-button-wrapper--landscape-button-wrapper"]=_.rvq,w))},_.P(_.Dx,{cond:function(){return I.hasSecondaryButton()&&k()!==0},
then:function(){var L;return _.P("div",{class:r},(L=I.secondaryButton)==null?void 0:L.call(I))}}),_.P(_.Dx,{cond:I.hasPrimaryButton,
then:function(){var L;return _.P("div",{class:c},(L=I.primaryButton)==null?void 0:L.call(I))}}))}}))}})}})},"yg");
v8R.idomCompat={callbacks:{primaryButton:!0,secondaryButton:!0,footerOverride:!0}};var WFL=_.BO(function(I){var C=_.mh(I.title),y=_.mh(I.subtitle),k=_.uk(function(c){var r;(r=I.touchstart)==null||r.call(I,c);return!1}),F=_.uk(function(c){var r;
(r=I.touchmove)==null||r.call(I,c);return!1}),z=_.uk(function(c){var r;
(r=I.touchend)==null||r.call(I,c);return!1});
return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper",id:I.headerId,"on:touchstart":k,"on:touchmove":F,"on:touchend":z},_.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-drag-line"}),_.P(_.Dx,{cond:I.hasHeaderOverride,then:function(){var c;return _.P(_.aF,null,(c=I.headerOverride)==null?void 0:c.call(I))},
else:function(){var c={};return _.P("div",{class:_.sZ((c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header"]=!0,c["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header--with-title"]=C,c))},_.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-title-wrapper"},_.P(_.Dx,{cond:C,then:function(){return _.P(_.aF,null,_.P("h2",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-title"},C),_.P(_.Dx,{cond:y,then:function(){return _.P("h3",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-subtitle"},
y)}}))}})),_.P(_.Dx,{cond:function(){return C()&&I.hasActionHeader()},
then:function(){var r;return _.P("div",{class:"yt-spec-bottom-sheet-layout__bottom-sheet-layout-action-header"},(r=I.actionHeader)==null?void 0:r.call(I))}}))}}))},"zg");
WFL.idomCompat={callbacks:{touchstart:!0,touchmove:!0,touchend:!0,actionHeader:!0,headerOverride:!0}};_.BO(function(I){function C(a){if(!x&&typeof MutationObserver!=="undefined"){var cs={childList:!0};"MutationObserver"in window&&(x=new MutationObserver(y.bind(void 0,a)),x.observe(a,cs))}}
function y(a){typeof x!=="undefined"&&(B["content-wrapper"]===void 0&&(B["content-wrapper"]=a.children[0].clientHeight),X(B["content-wrapper"]),Q()>b()||S(Q()))}
function k(){p(window.innerHeight);Q()>b()||S(Q());t.isFullScreen[0]()&&Q()>b()?U().dispatch("Snap To Full Screen",{maxHeight:A()}):U().dispatch("Snap To Neutral Position",{maxHeight:b()})}
function F(a){document.body.style.overscrollBehavior="none";a.preventDefault();U().dispatch("Touch Start",{event:a})}
function z(a){a.preventDefault();U().dispatch("Touch Move",{event:a,contentScrollable:Q()>b(),fullContentWrapperHeight:A(),contentWrapperHeight:b(),contentHeightMap:B,contentWrapperId:"content-wrapper",header:JSy(I),footer:JSy(I)})}
function c(){document.body.style.overscrollBehavior="";t.isFullScreen[0]()?t.currentY[0]()>=60?U().dispatch("Snap To Neutral Position",{maxHeight:b()}):U().dispatch("Snap To Full Screen",{maxHeight:A()}):t.currentY[0]()>=60?r():t.currentY[0]()<=-60&&Q()>b()?U().dispatch("Snap To Full Screen",{maxHeight:A()}):U().dispatch("Snap To Neutral Position",{maxHeight:b()})}
function r(){U().dispatch("Close Sheet",{clientHeight:D(),maxHeight:0});setTimeout(function(){tdY()},250)}
var w=_.T(_.c4(window.innerHeight,void 0,"NWeFS")),L=w.next().value;w=w.next().value;var D=L,p=w;w=_.T(_.c4(0,void 0,"oxfm4"));L=w.next().value;w=w.next().value;var Q=L,X=w;w=_.T(_.TN(function(){var a=JSy(I);return.6*D()-E9M(a)-hdS(a)}));
L=w.next().value;w=w.next().value;var b=L,S=w,A=function(){var a=JSy(I);return D()-E9M(a)-hdS(a)-24-24},x=null,B={},t={initialY:_.c4(0,void 0,"cYBE5c"),
currentY:_.c4(0,void 0,"RndqHc"),isAnimating:_.c4(!1,void 0,"vO9DVd"),isFullScreen:_.c4(!1,void 0,"UOfBcf"),maxHeightForContentWrapper:_.TN(b)},U=function(){var a=null;return function(){if(!a){var cs={initialY:t.initialY[0](),currentY:t.currentY[0](),isAnimating:t.isAnimating[0](),isFullScreen:t.isFullScreen[0](),maxHeightForContentWrapper:t.maxHeightForContentWrapper[0]()};a=Uky(cs)}return a}}();
_.RU(function(){window.addEventListener("resize",k);U().subscribe(function(a){t.initialY[1](a.initialY);t.currentY[1](a.currentY);t.isAnimating[1](a.isAnimating);t.isFullScreen[1](a.isFullScreen);t.maxHeightForContentWrapper[1](a.maxHeightForContentWrapper)})});
_.$4(function(){window.removeEventListener("resize",k);x&&(x.disconnect(),x=null)});
var yW=_.sZ({"bottom-sheet-content-without-icon":function(){var a;return!((a=I.shouldShowIcons)==null?0:a.call(I))}});
return _.P("bottom-sheet-layout",null,_.P(g8B,{contentWrapperId:"content-wrapper",isAnimating:function(){return t.isAnimating[0]()},
currentY:function(){return t.currentY[0]()},
maxHeightForContentWrapper:function(){return t.maxHeightForContentWrapper[0]()},
shouldShowIcons:I.shouldShowIcons,skipContentClick:I.skipContentClick,onScroll:function(){var a=document.getElementById("header-wrapper"),cs=document.getElementById("content-wrapper");if(a&&cs){var XO={};XO=(XO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"]=!0,XO["yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper--bottom-border"]=!0,XO);a.className=cs.scrollTop>1?_.yc(XO):"yt-spec-bottom-sheet-layout__bottom-sheet-layout-header-wrapper"}},
onContentWrapperClick:tdY,contentWrapperEl:function(a){C(a);requestAnimationFrame(function(){y(a)})},
header:function(){return _.P(WFL,{touchstart:F,touchmove:z,touchend:c,title:I.headerTitle,subtitle:I.headerSubtitle,headerId:"header-wrapper",headerOverride:I.headerFn,hasHeaderOverride:I.hasHeaderFn,actionHeader:I.headerActionHeader,hasActionHeader:I.hasHeaderActionHeader})},
footer:function(){return _.P(v8R,{footerButtonType:I.footerButtonType,leadingLabel:I.footerLeadingLabel,trailingLabel:I.footerTrailingLabel,primaryButton:I.footerPrimaryButton,hasPrimaryButton:I.hasFooterPrimaryButton,secondaryButton:I.footerSecondaryButton,hasSecondaryButton:I.hasFooterSecondaryButton,footerOverride:I.footerFn,hasFooterOverride:I.hasFooterFn})},
body:function(){return _.P(_.Dx,{cond:I.hasContentFn,then:function(){var a;return _.P("div",{class:yW},(a=I.contentFn)==null?void 0:a.call(I))}})}}))},"Ag").idomCompat={callbacks:{headerActionHeader:!0,
headerFn:!0,contentFn:!0,footerFn:!0,footerPrimaryButton:!0,footerSecondaryButton:!0}};var dej=_.BO(function(I){var C=_.N().resolve(_.nD),y=_.uk(function(){return void C.closeSheet()});
return _.P("yt-contextual-sheet-layout",{class:"yt-contextual-sheet-layout-wiz","on:click":y},_.P(_.Dx,{cond:function(){return!!I.header},
then:function(){return _.P("div",{class:"yt-contextual-sheet-layout-wiz__header-container"},I.header())}}),_.P(_.Dx,{cond:function(){return!!I.content},
then:function(){return _.P("div",{class:"yt-contextual-sheet-layout-wiz__content-container"},I.content())}}),_.P(_.Dx,{cond:function(){return!!I.footer},
then:function(){return _.P("div",{class:"yt-contextual-sheet-layout-wiz__footer-container"},I.footer())}}))},"Bg");
dej.idomCompat={callbacks:{header:!0,content:!0,footer:!0}};var xey=_.BO(function(I){I=I.data;var C={};return _.P("yt-sheet-view-model",{class:_.sZ("yt-sheet-view-model-wiz",(C["yt-sheet-view-model-wiz--contextual"]=!0,C["yt-sheet-view-model-wiz--disable-backdrop-filter"]=_.V("web_disable_backdrop_filter"),C))},_.P(_.Dx,{cond:I,then:function(y){return _.P(dej,{header:function(){return _.P(_.lY,{data:function(){return y().header}},{panelHeaderViewModel:AvY})},
content:function(){return _.P(_.lY,{data:function(){return y().content}},{listViewModel:function(k){return _.P(_.zRu,{data:k.data,
isCompact:!0,inPopup:!0})},
upsellViewModel:N7L,miniAppScoreChallengeViewModel:Vaj})},
footer:function(){return _.P(_.lY,{data:function(){return y().footer}},{panelFooterViewModel:_.K4})}})}}))},"Cg");
xey.idomCompat=!0;_.B9(xey,"yt-sheet-view-model",{props:{data:_.As}});var meB=_.BO(function(I){var C=function(){var y;return(y=I.data().enableDebuggingFeatures)!=null?y:!1};
return _.P("yt-stories-sticker-layer-view-model",{class:"ytStoriesStickerLayerViewModelHost"},_.P(_.pH,{each:function(){var y;return(y=I.data().stickers)!=null?y:[]}},function(y){return _.P(qRy,{data:function(){return y},
debugMode:C})}))},"Dg"),qRy=_.BO(function(I){var C=_.ZB(I,{debugMode:!1}).debugMode,y=_.mh(function(){var w;
return(w=I.data().region)==null?void 0:w.w},0),k=_.mh(function(){var w;
return(w=I.data().region)==null?void 0:w.h},0),F=_.mh(function(){var w;
return(w=I.data().region)==null?void 0:w.x},0),z=_.mh(function(){var w;
return(w=I.data().region)==null?void 0:w.y},0),c=_.uk(function(){var w=I.data().onTap;
w&&_.Gp(w)}),r={};
return _.P("div",{class:_.sZ("ytStoriesStickerLayerViewModelSticker",(r.ytStoriesStickerLayerViewModelDebugMode=C,r)),style:_.cP({width:function(){return 100*y()+"%"},
height:function(){return 100*k()+"%"},
left:function(){return 100*F()+"%"},
top:function(){return 100*z()+"%"},
"flex-direction":function(){return OxM(I.data().flexDirection)},
"justify-content":function(){return aky(I.data().justifyContent)},
"align-items":function(){return MdY(I.data().alignItems)}}),
"on:click":c},_.P(_.lY,{data:function(){return I.data().button||I.data().toggleButton}},{buttonViewModel:function(w){return _.P(_.fM,{data:w.data,
className:"ytStoriesStickerLayerViewModelButton"})},
toggleButtonViewModel:function(w){return _.P(_.RY,{data:w.data,className:"ytStoriesStickerLayerViewModelButton"})}}))},"Eg");var B7M=_.BO(function(I){var C=function(){return I.data()},y=_.mh(function(){return C().backgroundColor},0),k=_.mh(function(){return C().actionButtons},[]),F=_.mh(function(){return C().stickerLayer},{}),z={},c=function(){var w,L;
return{animationRef:z,animationConfig:{autoplay:!1,loop:!1,path:(L=(w=C().foregroundAnimation)==null?void 0:w.url)!=null?L:"",name:"stories_item_foreground_animation"},listeners:{complete:function(){I.navigateToNextItemOnLottieComplete()}}}},r=function(){var w,L,D,p,Q,X,b,S;
return{animationConfig:{autoplay:(X=(w=C().backgroundAnimation)==null?void 0:(L=w.settings)==null?void 0:L.autoplay)!=null?X:!1,loop:(b=(D=C().backgroundAnimation)==null?void 0:(p=D.settings)==null?void 0:p.loop)!=null?b:!1,path:(S=(Q=C().backgroundAnimation)==null?void 0:Q.url)!=null?S:"",name:"stories_item_background_animation"}}};
_.l0(function(){if(I.isVisible()){var w;(w=z.lottieEl)==null||w.play()}else{var L;(L=z.lottieEl)==null||L.stop()}});
return _.P("yt-stories-item-view-model",{class:"ytStoriesItemViewModelHost",style:_.cP({"background-color":function(){return _.Xl(y())+";"}})},_.P("div",{class:"ytStoriesItemViewModelAssetContent"},_.P(_.Dx,{cond:function(){return!!C().backgroundAnimation},
then:function(){return _.P(_.o8,{data:r,animationName:function(){return r().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.P(_.Dx,{cond:function(){return!!C().backgroundImage},
then:function(){return _.P(_.x$,{data:function(){return C().backgroundImage},
className:"ytStoriesItemViewModelImage",alt:"background image"})}}),_.P(_.Dx,{cond:function(){return!!C().foregroundAnimation},
then:function(){return _.P(_.o8,{data:c,animationName:function(){return c().animationConfig.name},
className:"ytStoriesItemViewModelLottieAnimation"})}}),_.P(_.Dx,{cond:function(){return!!C().foregroundImage},
then:function(){return _.P(_.x$,{data:function(){return C().foregroundImage},
className:"ytStoriesItemViewModelImage",alt:"foreground image"})}}),_.P("div",{class:"ytStoriesItemViewModelTopShadow"}),_.P(_.lY,{data:function(){return F()}},{storiesStickerLayerViewModel:meB})),_.P("div",{class:"ytStoriesItemViewModelBottomShadow"},_.P("div",{class:"ytStoriesItemViewModelActionButtonWrapper",
"on:click":_.uk(I.pauseAutoNavigation)},_.P(_.pH,{each:k},function(w){return _.P(Zdy,{data:function(){return w}})}))))},"Fg"),Zdy=_.BO(function(I){var C={};
return _.P("div",{class:_.sZ("ytStoriesItemViewModelActionButton",(C.ytStoriesItemViewModelStretchedActionButton=function(){return I.data().size==="STORIES_BUTTON_SIZE_STRETCH"},C))},_.P(_.lY,{data:function(){return I.data().button}},{buttonViewModel:function(y){return _.P(_.fM,{data:y.data,
className:"ytStoriesItemViewModelButton"})}}))},"Gg");_.B9(_.BO(function(I){var C=_.T(_.TN(function(){var B;return(B=I.data().startIndex)!=null?B:0})),y=C.next().value,k=C.next().value;
C=_.T(_.c4(!1,void 0,"klmjc"));var F=C.next().value,z=C.next().value,c=function(){var B;return(B=I.data().storyItems)!=null?B:[]},r=function(){return I.data().dismissButton},w=function(){var B;
return _.l((B=_.l(r(),_.Xi))==null?void 0:B.onTap,_.$$)},L=_.Es(),D,p=function(){var B;
(B=D)==null||B.cancel();D=Q(y()).animate([{width:"0%"},{width:"100%"}],{duration:9E3,easing:"linear"});D.onfinish=function(){Q(y()).style.width="100%";var t=_.l(c()[y()],UuR),U,yW;t!=null&&t.foregroundAnimation&&((t==null?0:(U=t.foregroundAnimation)==null?0:U.url)||(t==null?0:(yW=t.foregroundAnimation)==null?0:yW.payload))||(y()!==c().length-1?(k(y()+1),p()):w()&&_.bU(w()))}},Q=function(B){return L.value.children[B].children[0]},X=function(){for(var B=0;B<y();B++)Q(B).style.width="100%"};
C=_.uk(function(){F()?z(!1):(y()===c().length-1&&w()&&_.bU(w()),Q(y()).style.width="100%",y()!==c().length-1&&(k(y()+1),p()))});
var b=_.uk(function(){F()?z(!1):(Q(y()).style.width="0%",y()!==0?k(y()-1):k(y()),p())}),S=function(){z(!0)},A=function(){Q(y()).style.width="100%";
y()!==c().length-1?(k(y()+1),p()):w()&&_.bU(w())},x=_.uk(function(){var B;
(B=D)==null||B.pause()});
_.l0(function(){if(F()){var B;(B=D)==null||B.pause()}else{var t;(t=D)==null||t.play()}});
_.l0(function(){X();y()===I.data().startIndex&&p()});
_.RU(function(){X();p()});
return _.P("yt-stories-viewer-view-model",{class:_.sZ("ytStoriesViewerViewModelHost","ytStoriesViewerViewModelResetSpacing"),dialog:!0},_.P("div",{class:"ytStoriesViewerViewModelNavigationContainer"},_.P("div",{class:"ytStoriesViewerViewModelPreviousNavigation","on:click":b,"on:mousedown":x}),_.P("div",{class:"ytStoriesViewerViewModelNextNavigation","on:click":C,"on:mousedown":x})),_.P(_.lY,{data:c},{storiesItemViewModel:function(B,t){var U=B.data;return _.P(_.Dx,{cond:function(){return Math.abs(t()-
y())<=1},
then:function(){var yW={};return _.P("div",{class:_.sZ("ytStoriesViewerViewModelStoryItem",(yW.ytStoriesViewerViewModelHiddenStoryItem=function(){return t()!==y()},yW))},_.P(B7M,{data:U,
pauseAutoNavigation:S,navigateToNextItemOnLottieComplete:A,isVisible:function(){return t()===y()}}))}})}}),_.P("div",{class:"ytStoriesViewerViewModelProgressBarsContainer",
el:L},_.P(_.pH,{each:c},function(){return _.P("div",{class:"ytStoriesViewerViewModelProgressBar"},_.P("div",{class:"ytStoriesViewerViewModelProgress"}))})),_.P("div",{class:"ytStoriesViewerViewModelActionButtonsContainer"},_.P(_.lY,{data:r},{buttonViewModel:_.fM})))},"Hg"),"yt-stories-viewer-view-model",{props:{data:_.As}});_.B9(_.BO(function(I){var C=I.data;var y=_.Es(),k=[];return _.P("yt-gen-ai-feedback-form-view-model",{el:y,class:"ytGenAiFeedbackFormViewModelHost"},_.P(_.wh,{text:function(){return C().title},
className:"ytGenAiFeedbackFormViewModelTitle"}),_.P("div",{class:"ytGenAiFeedbackFormViewModelChipsContainer"},_.P(_.lY,{data:function(){return C().feedbackChips}},{toggleButtonViewModel:function(F){var z=F.data;
return _.P(_.RY,{data:z,className:"ytGenAiFeedbackFormViewModelFeedbackChip",onToggle:function(c){var r=z();r=_.l(r,_.$A);r=_.l(r==null?void 0:r.defaultButtonViewModel,_.Xi).trackingParams;c?k.push(r):(c=k.indexOf(r),c>-1&&k.splice(c,1))}})}})),_.P(_.wh,{text:function(){return C().disclaimer},
className:"ytGenAiFeedbackFormViewModelDisclaimer"}),_.P("div",{class:"ytGenAiFeedbackFormViewModelBottomButtonsContainer"},_.P(_.lY,{data:function(){return C().submitButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytGenAiFeedbackFormViewModelSubmitButton",onClick:function(){IWS(y.value,k,C().uniqueId)}})}}),_.P(_.lY,{data:function(){return C().moreFeedbackButton}},{buttonViewModel:function(F){return _.P(_.fM,{data:F.data,
className:"ytGenAiFeedbackFormViewModelMoreFeedbackButton"})}})))},"Ig"),"yt-gen-ai-feedback-form-view-model",{props:{data:_.As},
unsafeExternallySettableAttributes:new Set(["tabindex"])});var SC=function(){return _.q.apply(this,arguments)||this};
_.R(SC,_.q);SC.prototype.created=function(){fBB(2200);this.ytPopupContainerBehavior.initPopupContainerBehavior(rmY);var I=_.N().resolve(_.Z9L);I&&(I.container=this.ytPopupContainerBehavior);if(I=_.N().resolve(_.nD))I.container=this.ytPopupContainerBehavior;if(I=_.N().resolve(_.Pr)){var C=this.ytPopupContainerBehavior;I.containerWasInjected?_.SN(Error("cj")):I.container=C}};
SC.prototype.ensurePopupBelowPlayer=function(I,C){var y=_.N().resolve(_.aU(_.BP));if(!y||!y.isOnWatch()||!_.hU())return!1;y=y.getCurrentPage().getPlayerContainer().getBoundingClientRect().bottom;_.np().height>y+this.getPopupHeight(I,C)?(I.style.top="auto",I.style.bottom="0px"):(I.style.top=y+"px",I.style.bottom="auto");return!0};
SC.prototype.getPopupHeight=function(I,C){C&&(I.cachedPopupHeight=0);if(!I.cachedPopupHeight){C=0;var y=I.clientHeight,k=window.getComputedStyle(I);C+=parseInt(k.marginTop,10);C+=parseInt(k.marginBottom,10);I.cachedPopupHeight=y+C}return I.cachedPopupHeight};
SC.prototype.getElement=function(I){return document.createElement(I)};
_.E([_.g(gOL.YtPopupContainerBehavior),_.h("design:type",Object)],SC.prototype,"ytPopupContainerBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],SC.prototype,"ytComponentBehavior",void 0);SC=_.E([_.m({disableElementRegistration:!0,is:"ytd-popup-container"})],SC);
_.Z(SC,"ytd-popup-container",function(){if(XoM!==void 0)return XoM;var I=document.createElement("template");_.Y(I,"\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");I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);return XoM=I},{mode:1});var E8M;var hGH={};hGH.YtLogYpcFlowCommandsBehavior=[_.Et.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(I){_.l(I,eSY)&&(I=_.l(I,eSY))&&(I.serializedTransactionFlowLoggingParams?_.jss(I.serializedTransactionFlowLoggingParams):I.serializedYpcCancelFlowLoggingParams?(I=I.serializedYpcCancelFlowLoggingParams)&&_.jT("ypcCancelFlowStarted","serializedYpcCancelFlowLoggingParams",I):I.serializedYpcResumeFlowLoggingParams?(I=I.serializedYpcResumeFlowLoggingParams)&&_.jT("ypcResumeFlowStarted","serializedYpcResumeFlowLoggingParams",I):I.serializedYpcPauseFlowLoggingParams?(I=I.serializedYpcPauseFlowLoggingParams)&&
_.jT("ypcPauseFlowStarted","serializedYpcPauseFlowLoggingParams",I):I.serializedYpcRefundFlowLoggingParams?(I=I.serializedYpcRefundFlowLoggingParams)&&LUy("YPC_EVENT_TYPE_START",I):I.serializedYpcDeactivateFlowLoggingParams?(I=I.serializedYpcDeactivateFlowLoggingParams)&&_.jT("ypcDeactivateFlowStarted","serializedYpcDeactivateFlowLoggingParams",I):I.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams&&(I=I.serializedYpcCancelFlowGoToPaymentProcessorLoggingParams)&&_.jT("ypcCancelFlowGoToPaymentProcessor",
"serializedYpcCancelFlowGoToPaymentProcessorLoggingParams",I))},
handleLogYpcFlowDismiss_:function(I){_.l(I,coR)&&(I=_.l(I,coR),I.serializedTransactionFlowLoggingParams?_.lyz(I.serializedTransactionFlowLoggingParams):I.serializedYpcCancelFlowLoggingParams?(I=I.serializedYpcCancelFlowLoggingParams)&&_.jT("ypcCancelFlowCancelled","serializedYpcCancelFlowLoggingParams",I):I.serializedYpcResumeFlowLoggingParams?(I=I.serializedYpcResumeFlowLoggingParams)&&_.jT("ypcResumeFlowCancelled","serializedYpcResumeFlowLoggingParams",I):I.serializedYpcPauseFlowLoggingParams?(I=
I.serializedYpcPauseFlowLoggingParams)&&_.jT("ypcPauseFlowCancelled","serializedYpcPauseFlowLoggingParams",I):I.serializedYpcRefundFlowLoggingParams&&(I=I.serializedYpcRefundFlowLoggingParams)&&LUy("YPC_EVENT_TYPE_CANCEL",I))}}];var UeY={};UeY.YtCancelRecurrenceBehavior=[_.$y.YtComponentBehavior,_.OO5,{attached:function(){var I=this;w9Y(this,function(C,y){return I.ypcCancelRecurrenceHandler(C,y)})},
ypcCancelRecurrenceHandler:function(I,C){var y=this;if(!C||!C.ypcCancelRecurrenceEndpoint)return!1;if(!C.ypcCancelRecurrenceEndpoint.params)return _.v5(Error("ul")),!0;_.Ed(this.hostElement);var k=_.KE.instance,F=_.N().resolve(_.aU(_.pp));k&&_.AU(k,C)?_.gh(k,C).then(function(z){y.ypcCancelRecurrenceSuccess_(I,C,{data:z})},function(z){y.ypcCancelRecurrenceFailure_(I,C,z)}).thenCatch(function(){_.v5(Error("vl"))}):F?F.requestDataForServiceEndpoint(C).then(function(z){y.ypcCancelRecurrenceSuccess_(I,
C,z)},function(z){y.ypcCancelRecurrenceFailure_(I,C,z)}).thenCatch(function(){_.v5(Error("vl"))}):_.v5(Error("wl"));
return!0},
ypcCancelRecurrenceSuccess_:function(I,C,y){_.ta(this.hostElement);y.data||(y={data:y});y.data&&y.data.actions&&_.cQ(this.hostElement,y.data.actions,this.hostElement);y.data.messageRenderer?pHy(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams):(C=C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams)&&_.jT("ypcCancelFlowSucceeded","serializedYpcCancelFlowLoggingParams",C);_.k3(I,"yt-service-request-completed",y)},
ypcCancelRecurrenceFailure_:function(I,C,y){_.ta(this.hostElement);pHy(C.ypcCancelRecurrenceEndpoint.serializedYpcCancelFlowLoggingParams);_.k3(I,"yt-service-request-error",{error:y,params:[I,C]})}}];var Hdj=function(I,C){_.Im.call(this,C)};
_.R(Hdj,x3M);var taL={};taL.YtCompleteTransactionBehavior=[_.$y.YtComponentBehavior,_.OO5,{attached:function(){var I=this;w9Y(this,function(C,y){return I.ypcCompleteTransactionHandler(C,y)})},
completeTransaction:function(I,C){var y=this;C={payments_payload:window.btoa(C.integratorData),buybucket_params:I.data.buybucketParams,offer_params:I.data.offerParams};var k=_.N().resolve(_.pp),F=I.data.completeTransactionEndpoint,z=this.get("ypcCompleteTransactionEndpoint.actions",F);z&&_.cQ(this.hostElement,z,this.hostElement);return(z=_.KE.instance)&&_.AU(z,F)?_.gh(z,F,C).then(function(c){return!c||(c==null?0:c.error)?(c=y.get("data.serializedTransactionFlowLoggingParams",I),_.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",
c))):{data:c}}).then(function(c){return y.handleCompleteTransactionSuccess_(c,I)},function(){return y.handleCompleteTransactionFailure_(I)}):k.requestDataForServiceEndpoint(F,C).then(function(c){return y.handleCompleteTransactionSuccess_(c,I)},function(){return y.handleCompleteTransactionFailure_(I)})},
handleCompleteTransactionSuccess_:function(I,C){I.data||(I={data:I});if(I.data.messageRenderer)return _.mr(new Hdj(I.data.messageRenderer));if(I.data.trackingParams){var y=_.Si(),k=_.fq();y&&k&&_.q1(y,k,_.nv(I.data.trackingParams))}C=this.get("data.serializedTransactionFlowLoggingParams",C);DUP(C);return _.er(I)},
handleCompleteTransactionFailure_:function(I){I=this.get("data.serializedTransactionFlowLoggingParams",I);_.WD("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",I);return _.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",I))},
ypcCompleteTransactionHandler:function(I,C){var y=this;if(!C.ypcCompleteTransactionEndpoint)return!1;if(!C.ypcCompleteTransactionEndpoint.transactionParams)return _.v5(Error("xl")),!0;C.ypcCompleteTransactionEndpoint&&C.ypcCompleteTransactionEndpoint.gtmData&&_.ia(C.ypcCompleteTransactionEndpoint.gtmData);var k=_.N().resolve(_.aU(_.pp));if(k){_.Ed(this.hostElement);var F=_.KE.instance;F&&_.AU(F,C)?_.gh(F,C).then(function(z){return!z||(z==null?0:z.error)?(z=y.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",
C),_.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE",z))):{data:z}}).then(function(z){_.k3(I,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(C,z)},function(){return y.ypcCompleteTransactionFailure_(C)}):k.requestDataForServiceEndpoint(C).then(function(z){_.k3(I,"yt-service-request-completed");
y.ypcCompleteTransactionSuccess_(C,z)},function(){return y.ypcCompleteTransactionFailure_(C)})}return!0},
ypcCompleteTransactionSuccess_:function(I,C){_.ta(this.hostElement);C.data||(C={data:C});_.Fe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);C.data.messageRenderer||C.data.ypcResponseCode==="YPC_RESPONSE_CODE_ERROR"?this.ypcCompleteTransactionFailure_(I):(_.ia('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'),this.logTransactionEvent_("transactionFlowSucceeded",I));C.data.actions&&(I=XQj(C.data.actions),C=$1L(C.data.actions),I.length&&_.Tg(this.hostElement,
I),C.length&&_.cQ(this.hostElement,C,this.hostElement))},
ypcCompleteTransactionFailure_:function(I){_.ta(this.hostElement);_.Fe(this.hostElement,"yt-close-popup-action",["yt-loading-renderer"]);this.logTransactionEvent_("transactionFlowFailed",I,"TRANSACTION_ERROR_TYPE_YPC_COMPLETE_TRANSACTION_RPC_FAILURE")},
logTransactionEvent_:function(I,C,y){if(C=this.get("ypcCompleteTransactionEndpoint.serializedTransactionFlowLoggingParams",C))C={serializedTransactionFlowLoggingParams:C},y&&(C.errorType=y),_.b2(I,C),_.Yo()}}];var JvR={};JvR.YtEndpointHandlerWithYpcBehavior=[_.OO5,_.Et.YtActionHandlerBehavior,[{openWalletDialog:function(I,C,y,k,F,z,c){var r=this,w=_.vP();C=C.replace(/-/g,"+").replace(/_/g,"/");var L=_.pA().get("hl");_.vez(_.Fv(_.xk),C,w.resolve,F,function(D){z&&z();w.reject(D)},L,function(D){return r.onServerBackendAnalyticEvent_(I,y,D)},this.onDialogClose_.bind(this),k,c);
return w.promise},
openFixFlowDialog:function(I,C,y,k){I=I.replace(/-/g,"+").replace(/_/g,"/");_.Fv(_.xk).openFixFlowDialog(I,C,y,k)},
onDialogClose_:function(){_.Fe(this,"yt-wallet-dialog-closed")},
onServerBackendAnalyticEvent_:function(I,C,y){I.fire("yt-commerce-action-init-done");C&&_.Tg(this.hostElement,[C,{backend_analytics:y}])}}],
_.M8.YtOpenPopupBehavior,[{listeners:{"yt-service-request-completed":"onUpdateFopServiceRequestCompleted_"},onUpdateFopServiceRequestCompleted_:function(I,C){I=this.get("data.nativeFlowEndpoint",C);C=this.get("data.fallbackEndpoint",C);I?_.Tg(this.hostElement,[I]):C&&_.k3(this.hostElement,"yt-navigate",{endpoint:C})}}],
UeY.YtCancelRecurrenceBehavior,taL.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 I=this;w9Y(this,function(C,y,k){return I.handleYPCEndpoint(C,y,k)});
this.ypcRegisterActionMapJobId_=_.NU(_.b$,function(){I.registerActionMap(I.buyFlowActionMap_)})},
detached:function(){var I=this;_.b$.cancelJob(this.ypcRegisterActionMapJobId_);_.NU(_.b$,function(){I.unregisterActionMap(I.buyFlowActionMap_)})},
handleYPCEndpoint:function(I,C,y){var k=C.ypcGetCartEndpoint;if(k){_.fA("commerce_transaction");var F=k.gtmId;F&&_.rx(F);(k=k.gtmData)&&_.ia(k)}return this.get("ypcGetCartEndpoint.prefetchConfig.ypcGetCartPrefetchResponseDataConfig.encryptedPurchaseParams",C)!=null?(this.handleYPCGetCartEndpointWithPrefetch_(I,C),!0):this.get("ypcFixInstrumentEndpoint.encryptedFixInstrumentParameters",C)!=null?(this.handleYPCFixInstrumentEndpoint_(I,C),!0):C.ypcPauseSubscriptionCommand?(TUB(this.hostElement,I,C,y),
!0):C.ypcResumeSubscriptionCommand?(rGK(this.hostElement,I,C),!0):C.getPaymentInstrumentsParamsCommand?(F0Y(this.hostElement,I,C),!0):C.ypcHandleTransactionEndpoint?(yGL(this.hostElement,I,C,y),!0):!1},
handleYPCGetCartEndpointWithPrefetch_:function(I,C){var y=this;_.Sr("ttcr",void 0,"commerce_transaction");C=C.ypcGetCartEndpoint;var k=C.prefetchConfig.ypcGetCartPrefetchResponseDataConfig,F=k.encryptedPurchaseParams,z=k.serializedTransactionFlowLoggingParams,c=k.serializedPaymentsClientParams,r=this.createGetCartResponseFromParams_(k,C.offerParams,z);this.changeButtonState(I,!0);_.N2(this.openWalletDialog(I,F,k.ypcLogWalletAnalyticDataEndpoint,z,function(){y.changeButtonState(I,!1)},function(){y.changeButtonState(I,
!1)},c).then(function(w){return y.handleBuyFlowCompleteCallback_(I,r,w)},function(){return y.handleOnLoadError(r)}).then(function(w){return void y.handlePostPurchaseSuccess_(I,r,w)},function(w){return void y.handlePostPurchaseError_(w)}),function(){y.changeButtonState(I,!1);
I instanceof Element&&_.k3(I,"yt-commerce-action-done")})},
createGetCartResponseFromParams_:function(I,C,y){var k=I.completeTransactionEndpoint,F=I.handleTransactionEndpoint;C={data:{offerParams:window.btoa(C),serializedTransactionFlowLoggingParams:y}};F?C.data.handleTransactionEndpoint=F:C.data.completeTransactionEndpoint=k;I.onCartDismissCommand&&(C.data.onCartDismissCommand=I.onCartDismissCommand);return C},
onGetCartServiceRequestCompleted_:function(I,C){var y=this,k=I.target;if(C&&C.data&&C.data.messageRenderer)_.ta(this.hostElement),this.handleMessageRenderer_(C.data.messageRenderer),this.changeButtonState(k,!1);else{var F=this.get("data.encryptedPurchaseParams",C),z=this.get("data.upgradeDialogRenderer.ypcUpgradeDialogRenderer",C),c=this.get("data.ypcLogWalletAnalyticDataEndpoint",C),r=this.get("data.serializedPaymentsClientParams",C),w=this.getLoggingParams_(C);if(w||F||z)I.stopPropagation(),_.Sr("ttcr",
void 0,"commerce_transaction"),F||_.ta(this.hostElement),this.changeButtonState(k,!1),z?_.Fe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:_.Aq("openPopupConfig").popupTypeMap.ypcUpgradeDialogRenderer,popup:{ypcUpgradeDialogRenderer:z}}},this]):F&&(this.changeButtonState(k,!0),I=null,I=this.openWalletDialog(k,F,c,w,function(){_.ta(y.hostElement);y.changeButtonState(k,!1)},function(){_.ta(y.hostElement);
y.changeButtonState(k,!1)},r),_.N2(I.then(function(L){return y.handleBuyFlowCompleteCallback_(k,C,L)},function(){return y.handleOnLoadError(C)}).then(function(L){return y.handlePostPurchaseSuccess_(k,C,L)},function(L){return y.handlePostPurchaseError_(L)}),function(){y.changeButtonState(k,!1);
_.k3(k,"yt-commerce-action-done")}))}},
onServiceRequestSent_:function(I,C){C&&C.endpoint&&C.endpoint.ypcGetCartEndpoint&&!C.endpoint.ypcGetCartEndpoint.prefetchConfig&&(this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)&&_.cQ(this.hostElement,[this.get("commandLifeCycleConfig.onStartCommand",C.endpoint.ypcGetCartEndpoint)],I.target),_.Ed(this.hostElement),this.changeButtonState(I.target,!0))},
onServiceRequestError_:function(I,C){if(C&&C.params&&C.params.length){C=_.T(C.params);for(var y=C.next();!y.done;y=C.next())if((y=y.value)&&y.ypcGetCartEndpoint){this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)&&_.cQ(this.hostElement,[this.get("commandLifeCycleConfig.onFailureCommand",y.ypcGetCartEndpoint)],I.target);_.ta(this.hostElement);this.changeButtonState(I.target,!1);break}}},
handleBuyFlowCompleteCallback_:function(I,C,y){var k=y.integratorData;return k==null||k===""||y.error!=null?(k=this.getLoggingParams_(C),String(y.error)==="-1"?(C.data.onCartDismissCommand&&_.cQ(this.hostElement,[C.data.onCartDismissCommand],I),_.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",k,!0))):_.mr(new tF("TRANSACTION_ERROR_TYPE_YPC_BUYFLOW_COMPLETE_FAILURE",k))):C.data.handleTransactionEndpoint?k8K(this.hostElement,C.data.handleTransactionEndpoint,{payments_payload:k,funds_guarantee_callback_client_data:y.integratorClientCallbackData}):
this.completeTransaction(C,y)},
handlePostPurchaseSuccess_:function(I,C,y){C=y.data;var k=!1,F,z;if(C&&((F=C.command)==null?0:(z=F.commandExecutorCommand)==null?0:z.commands)){var c,r;F=(c=C.command)==null?void 0:(r=c.commandExecutorCommand)==null?void 0:r.commands;for(c=0;c<F.length;c++)if(_.l(F[c],_.hfw)){k=!0;break}}k||(C&&C.gtmDatas&&C.gtmDatas.length?_.ia(C.gtmDatas[0]):_.ia('{"event": "purchase", "eventParams" : {"purchaseStatus": "success"}}'));y.data&&y.data.actions&&(C=XQj(y.data.actions),y=$1L(y.data.actions),C.length&&
_.Tg(this.hostElement,C),y.length&&_.cQ(this.hostElement,y,I))},
handlePostPurchaseError_:function(I){I&&I.payload&&I.payload.isUserDismiss||_.GB(Error("zl"))},
handleOnLoadError:function(I){I=this.getLoggingParams_(I);return _.mr(new tF("TRANSACTION_ERROR_TYPE_LOAD_FAILURE",I))},
getLoggingParams_:function(I){return this.get("data.serializedTransactionFlowLoggingParams",I)},
handleMessageRenderer_:function(I){var C=_.fH(I,"renderer"),y=_.Aq("openPopupConfig");C==="confirmDialogRenderer"&&y&&_.Fe(this.hostElement,"yt-open-popup-action",[{openPopupAction:{popupType:y.popupTypeMap[C],popup:I}},this])},
handleYPCFixInstrumentEndpoint_:function(I,C){var y=this,k=C.ypcFixInstrumentEndpoint;C=k.encryptedFixInstrumentParameters;this.logFixFopEvent_(k,"FIX_FOP_EVENT_TYPE_START");this.changeButtonState(I,!0);this.openFixFlowDialog(C,function(F,z){y.onFixFlowCompleteCallback_(k,F,z)},function(){return y.changeButtonState(I,!1)},function(){y.changeButtonState(I,!1);
y.logFixFopEvent_(k,"FIX_FOP_EVENT_TYPE_FAILURE","FIX_FOP_ERROR_TYPE_LOAD_FAILURE")})},
onFixFlowCompleteCallback_:function(I,C,y){var k=_.d5("payments.business.integration.scenario.FixInstrument");if(C==k.IntegratorCallbackType.ON_COMPLETE){C="FIX_FOP_EVENT_TYPE_CANCEL";var F=null;y.error!=null?y.error!=k.OnCompleteCallbackError.USER_CANCELLED&&(_.cQ(this.hostElement,[I.errorAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_FAILURE",F="FIX_FOP_ERROR_TYPE_UNSPECIFIED"):(_.cQ(this.hostElement,[I.successAction],this.hostElement),C="FIX_FOP_EVENT_TYPE_SUCCESS");_.cQ(this.hostElement,[I.onFinishAction],
this.hostElement);this.logFixFopEvent_(I,C,F)}},
logFixFopEvent_:function(I,C,y){(I=I.serializedFixFopLoggingParams)?(C={eventType:C,serializedFixFopLoggingParams:I},y!=null&&(C.errorType=y),_.b2("fixFopFlow",C),_.Yo()):_.GB(Error("Al"))},
changeButtonState:function(I,C){_.V("enable_ypc_spinners")&&I&&(I.is==="yt-button-renderer"||I.is==="ytd-button-renderer")&&(I.disabled=C)}}];var OdS=function(I){this.JSC$28561_clientRoot=I;this.feedbackCollectorActionMap={"yt-help-dialog-requested":wDK,"yt-feedback-dialog-requested":ipy,"yt-signal-action-help":nky,"yt-signal-action-send-feedback":Pgj,"yt-send-feedback-action":DcS,"yt-user-feedback-endpoint":pDY};_.mU(_.qU.getInstance(),this.feedbackCollectorActionMap,this.JSC$28561_clientRoot)},alj;var MaH=function(I){this.JSC$28566_clientRoot=I;this.downloadManagerActionMap={"yt-signal-action-delete-all-downloads-prompt":Q_S.bind(null,this.JSC$28566_clientRoot),"yt-signal-action-delete-all-downloads":VfP,"yt-signal-action-delete-download":j_B,"yt-signal-action-delete-playlist-download":XDK,"yt-signal-action-install-pwa":fWY,"yt-signal-action-refresh-downloads":YqY,"yt-offline-video-endpoint":K0y,"yt-offline-playlist-endpoint":gkY,"yt-update-local-app-setting-command":W0S,"yt-offline-orchestration-action-command":xcM,
"yt-signal-action-undo-delete-download":RMM,"yt-local-watch-history-command":Zp8};_.mU(_.qU.getInstance(),this.downloadManagerActionMap,this.JSC$28566_clientRoot);_.Kp.instance=new _.Kp},I$H;var KS=function(){var I=_.q.apply(this,arguments)||this;I.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_"};I.remoteApi_=null;return I};
_.R(KS,_.q);_.u=KS.prototype;
_.u.ready=function(){_.V("polymer_enable_mdx")&&(rsH({device:"Desktop",app:"youtube-desktop",appId:this.appId,loadCastApiSetupScript:_.V("mdx_load_cast_api_bootstrap_script"),enableDialLoungeToken:_.V("enable_dial_short_lived_lounge_token"),enableCastLoungeToken:_.V("enable_cast_short_lived_lounge_token")}),_.ko("yt-remote-connection-change",this.handleConnectionChange_,this),_.ko("yt-remote-receiver-availability-change",this.handleReceiverAvailabilityChange_,this),(this.remoteApi_=p7K())&&this.remoteApi_.subscribe("remoteQueueChange",
this.handleRemoteQueueChange_,this))};
_.u.handleGetMdxStatus_=function(){return{connected:this.mdxConnected,receiverAvailable:this.receiverAvailable,receiverName:this.receiverName}};
_.u.handleConnectionChange_=function(I){(this.mdxConnected=I)?(I=nyH(),!I&&c7y()&&eQY()&&(I={key:"cast-selector-receiver",name:eQY()}),I=I.name):I=null;this.receiverName=I;_.Bi(this.remoteApi_);(this.remoteApi_=p7K())&&this.remoteApi_.subscribe("remoteQueueChange",this.handleRemoteQueueChange_,this)};
_.u.handleReceiverAvailabilityChange_=function(){var I=w7y();c7y()&&_.Fk("yt-remote-cast-available")&&I.push({key:"cast-selector-receiver",name:"Cast..."});this.receiverAvailable=I.length>0};
_.u.handleRemoteQueueChange_=function(){var I=this.currentVideoId_,C=this.currentListId_,y=CG(this.remoteApi_);this.currentVideoId_=y.videoId;this.currentListId_=y.listId;this.currentVideoId_&&_.Fe(this.hostElement,"yt-sync-with-remote-video",[this.currentVideoId_,_.V("polymer_enable_mdx_queue")?this.currentListId_:null,I,C])};
_.u.handleAddToQueueAction_=function(I){I=_.l(I,HVj);this.remoteApi_&&(I.videoId?this.remoteApi_.addVideo(I.videoId):I.playlistId&&this.remoteApi_.addPlaylist(I.playlistId))};
_.u.handleClearQueueAction_=function(){this.remoteApi_&&this.remoteApi_.clearPlaylist()};
_.u.handleInsertInQueueAction_=function(I){I=_.l(I,tcP);this.remoteApi_&&I.videoId&&this.remoteApi_.JSC$17433_insertVideo(I.videoId)};
_.u.handleRemoveFromQueueAction_=function(I){I=_.l(I,JwK);this.remoteApi_&&I.videoId&&this.remoteApi_.JSC$17433_removeVideo(I.videoId)};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],KS.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d(),_.h("design:type",Object)],KS.prototype,"appId",void 0);_.E([_.d(),_.h("design:type",Boolean)],KS.prototype,"mdxConnected",void 0);_.E([_.d(),_.h("design:type",Boolean)],KS.prototype,"receiverAvailable",void 0);_.E([_.d(),_.h("design:type",Object)],KS.prototype,"receiverName",void 0);_.E([_.d(),_.h("design:type",Object)],KS.prototype,"currentVideoId_",void 0);
_.E([_.d(),_.h("design:type",Object)],KS.prototype,"currentListId_",void 0);KS=_.E([_.lT({is:"yt-mdx-manager",disableElementRegistration:!0})],KS);_.Z(KS,"yt-mdx-manager",void 0,{mode:2});var CCY;var sby;var Ad=function(){var I=_.q.apply(this,arguments)||this;I.APP_IDS={ytr:3,ytm:5};I.JSC$18672_timeoutId_=0;I.actionMap={"yt-open-create-family-dialog":"open"};return I};
_.R(Ad,_.q);_.u=Ad.prototype;_.u.created=function(){fBB(2200)};
_.u.detached=function(){this.observer_&&this.observer_.disconnect()};
_.u.open=function(I,C){var y=this,k=I.serializedYpcFamilyCreateLoggingParams;this.JSC$18672_timeoutId_=setTimeout(this.abort_.bind(this,I.postFlowErrorEndpoint,k),3E4);C&&(this.onReadyCallback_=C);var F=_.f(this.hostElement).querySelector("#unicorn-iframe");k&&k&&P28("ypcFamilyCreateFlowStarted",k);_.zJI("family_creation",function(){var z=_.d5("gapi.family_creation.render");_.d5("gapi.config.update")("iframes/family_creation/url",y.getFamilyCreationUrlWithUnicornParams_());var c=3;I.appId&&I.appId in
y.APP_IDS&&(c=y.APP_IDS[I.appId]);c={authUser:_.Aq("SESSION_INDEX")||0,clientId:c,darkmode:document.documentElement.hasAttribute("dark")?1:0,hl:_.Aq("HL"),initialflow:[4,5,6,7],m:y.isMobile?1:0,onFlowComplete:y.onUnicornFlowComplete_.bind(y,I.postFlowSuccessEndpoint,k),onError:y.onUnicornFlowError_.bind(y,I.postFlowErrorEndpoint,k),onReady:y.onUnicornFlowReady_.bind(y,I.referencePcidParams)};z(F,c)})};
_.u.close=function(){_.f(this.hostElement).querySelector("#dialog").close();this.observer_&&this.observer_.disconnect()};
_.u.onUnicornFlowComplete_=function(I,C){this.close();C&&C&&P28("ypcFamilyCreateFlowSucceeded",C);_.k3(this.hostElement,"yt-navigate",{endpoint:I})};
_.u.onUnicornFlowError_=function(I,C){this.close();C&&P28("ypcFamilyCreateFlowCancelled",C);_.k3(this.hostElement,"yt-navigate",{endpoint:I})};
_.u.onUnicornFlowReady_=function(I){var C=this;this.clearTimeout_();if(this.onReadyCallback_)this.onReadyCallback_();I&&_.d5("gapi.family_creation.setConfig")(0,I);this.observer_=new MutationObserver(function(){_.f(C.hostElement).querySelector("#dialog").fit()});
this.observer_.observe(_.f(this.hostElement).querySelector("#unicorn-iframe").querySelector("iframe"),{atttributes:!0,attributeFilter:["style"]});_.f(this.hostElement).querySelector("#dialog").open()};
_.u.getFamilyCreationUrlWithUnicornParams_=function(){return _.Aq("YTR_FAMILY_CREATION_URL")};
_.u.getCurrentUrl_=function(){return document.location.href};
_.u.abort_=function(I,C){this.clearTimeout_();this.onUnicornFlowError_(I,C)};
_.u.clearTimeout_=function(){clearTimeout(this.JSC$18672_timeoutId_)};
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],Ad.prototype,"ytActionHandlerBehavior",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],Ad.prototype,"isMobile",void 0);_.E([_.d(),_.h("design:type",Object)],Ad.prototype,"onReadyCallback_",void 0);_.E([_.d(),_.h("design:type",Object)],Ad.prototype,"observer_",void 0);Ad=_.E([_.lT({is:"yt-create-family-dialog",disableElementRegistration:!0})],Ad);
_.Z(Ad,"yt-create-family-dialog",function(){if(sby===void 0){var I=document.createElement("template");_.Y(I,'\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');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);var C=I.content,y=C.insertBefore;CCY===void 0&&(CCY=document.createElement("template"));var k=CCY;y.call(C,k.content.cloneNode(!0),I.content.firstChild);sby=I}I=sby;return I},{mode:2});var oR8;var yKL;var gm=function(){var I=_.q.apply(this,arguments)||this;I.STEP=1;I.BLOCK_ON=80;I.MIN_PROGESS=0;I.MAX_PROGESS=100;return I};
_.R(gm,_.q);_.u=gm.prototype;_.u.created=function(){this.boundNextProgress_=this.nextProgress_.bind(this)};
_.u.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));_.N().addProvider({provide:t9R,useValue:this})};
_.u.start=function(){this.progress=this.MIN_PROGESS;this.hostElement.hidden=!1;window.requestAnimationFrame(this.boundNextProgress_)};
_.u.finish=function(){var I=this;this.progress=this.MAX_PROGESS;BUy(function(){I.progress==I.MAX_PROGESS&&(I.hostElement.hidden=!0)})};
_.u.nextProgress_=function(){this.progress>=this.BLOCK_ON||(this.progress+=this.STEP,window.requestAnimationFrame(this.boundNextProgress_))};
_.H1.Object.defineProperties(gm.prototype,{progress:{configurable:!0,enumerable:!0,set:function(I){this.progress_=I;var C="scaleX("+I/this.MAX_PROGESS+")",y=_.f(this.hostElement).querySelector("#progress").style;y.transform=C;y.webkitTransform=C;this.hostElement.setAttribute("aria-valuenow",String(I))},
get:function(){return this.progress_}}});
_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],gm.prototype,"ytComponentBehavior",void 0);gm=_.E([_.lT({is:"yt-page-navigation-progress",disableElementRegistration:!0})],gm);
_.Z(gm,"yt-page-navigation-progress",function(){if(yKL===void 0){var I=document.createElement("template");_.Y(I,'\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');I.content.insertBefore(_.O().content.cloneNode(!0),
I.content.firstChild);var C=I.content,y=C.insertBefore;oR8===void 0&&(oR8=document.createElement("template"));var k=oR8;y.call(C,k.content.cloneNode(!0),I.content.firstChild);yKL=I}I=yKL;return I},{mode:2});var kVR={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"},FbM={"font-size":"12px","font-style":"italic"},u3j={padding:"8px 0","font-size":"14px","font-weight":"bold",color:"#f00"};_.HpP=function(){return _.e(function(I){_.oI(I)})};_.B9(_.BO(function(){var I=_.XU(_.zRz);return _.P("yt-ephemeral-actions",{class:"ytEphemeralActionsHost","aria-live":"polite","aria-atomic":"true"},function(){var C;return(C=I())==null?void 0:C.announcement})},"Jg"),"yt-ephemeral-actions");var rLH=new Map;var JYM=function(I,C){var y=this;this.handleError=I;this.logEventInternal=C;this.hasUnloaded=!1;self.document===void 0||self.addEventListener("beforeunload",function(){y.hasUnloaded=!0});
this.shouldLogTransactionEndedThisSession=Math.random()<=.2};
JYM.prototype.logError=function(I){this.handleError(I)};
JYM.prototype.logEvent=function(I,C){switch(I){case "IDB_DATA_CORRUPTED":_.V("idb_data_corrupted_killswitch")||this.logEventInternal("idbDataCorrupted",C);break;case "IDB_UNEXPECTEDLY_CLOSED":this.logEventInternal("idbUnexpectedlyClosed",C);break;case "IS_SUPPORTED_COMPLETED":_.V("idb_is_supported_completed_killswitch")||this.logEventInternal("idbIsSupportedCompleted",C);break;case "QUOTA_EXCEEDED":z7B(this,C);break;case "TRANSACTION_ENDED":this.shouldLogTransactionEndedThisSession&&Math.random()<=
.1&&this.logEventInternal("idbTransactionEnded",C);break;case "TRANSACTION_UNEXPECTEDLY_ABORTED":I=Object.assign({},C,{hasWindowUnloaded:this.hasUnloaded}),this.logEventInternal("idbTransactionAborted",I)}};
var z7B=function(I,C){_.Fr.getInstance().estimate().then(function(y){y=Object.assign({},C,{isSw:self.document===void 0,isIframe:self!==self.top,deviceStorageUsageMbytes:wOR(y==null?void 0:y.usage),deviceStorageQuotaMbytes:wOR(y==null?void 0:y.quota)});I.logEventInternal("idbQuotaExceeded",y)})};var vc=function(){var I=_.q.apply(this,arguments)||this;I.tabGesturesIsActive=!1;I.deprecateFullerscreenUi=_.V("web_watch_fullerscreen_deprecation_ui");I.hasDelegation=!1;I.darkerDarkTheme=_.V("web_darker_dark_theme");I.isFrostedGlassInitialized=!1;I.frostedGlassExp=_.V("web_frosted_glass");I.mastheadHiddenFocusWithinKillswitch=_.V("web_masthead_hidden_focus_within_killswitch");I.ephemeralActionsEnabled=_.V("web_ephemeral_actions");I.scrollAtTop=!0;I.guideScrollTop=0;I.isTheaterModeSession=_.g5("START_IN_THEATER_MODE");
I.iMaxTheaterMode=_.V("web_watch_imax_theater_mode");I.isFullWindowSession=_.g5("START_IN_FULL_WINDOW_MODE");I.hasCreateFamilyDialog=!1;I.mastheadHeight=56;I.networkStatusManager=new _.mx;I.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-clear-url-param-command":"handleClearUrlParamCommand","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-persist-subscriptions-display-preferences-command":"handlePersistSubscriptionsDisplayPreferencesCommand","yt-invoke-instrument-manager-action":"onInvokeInstrumentManagerAction","yt-entity-update-command":"handleEntityUpdateCommand","yt-web-native-share-command":"handleWebNativeShareCommand",
"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"};
I.dynamicActionMap={"yt-run-attestation-command":function(C){var y=_.lUS.instance,k=_.l(C,_.Vkw);return k?_.V("use_rta_manager_for_async")&&AYj()?QjR(y,k,C.clickTrackingParams):p9j(y,k,C.clickTrackingParams):_.mr(Error("mi"))}};
I.isFrostedGlassDisabled=!1;I.isChannelOrPlaylistPage=!1;return I};
_.R(vc,_.q);_.u=vc.prototype;_.u.created=function(){var I=_.N();_.V("kevlar_clear_duplicate_pref_cookie")&&_.NU(_.b$,function(){var C=_.wC.get("PREF");C&&!/f\d=/.test(C)&&(C=_.oD("kevlar_duplicate_pref_cookie_domain_override"),document.cookie=C?"PREF=null;domain="+C+";expires=Thu, 01 Jan 1970 00:00:01 GMT":"PREF=null;domain=.www.youtube.com;expires=Thu, 01 Jan 1970 00:00:01 GMT")});
_.V("gzip_gel_with_worker")&&_.LjI();_.V("jspb_serialize_with_worker")&&FxS();_.V("web_worker_availability_check")&&iKB();_.V("nwl_init_killswitch")||yzM().then(function(){_.b$.addLowPriorityJob(LMH)});
this.pageManagerAttachedPromise=_.vP();this.ytdAppBehavior.loadDepsPromise=_.QZ([this.ytdAppBehavior.loadDepsPromise,this.pageManagerAttachedPromise.promise]);this.scrollThrottle=new _.OG(this.onThrottledScroll,200,this);_.V("external_fullscreen")&&(this.fullscreen=!1);this.ephemeralResponseStore=I.resolve(_.O_);this.boundOnTouchStart=this.onTouchStart.bind(this);Ohy();d3Y=!!_.d5("ytappsettings.initialized");u5=_.d5("ytappsettings.previousValue");Owy=_.d5("ytappsettings.previousSnapshotTime");d3Y||
(d3Y=!0,avR());jtK();l0R();_.KH("DEFERRED_DETACH",_.V("kevlar_tuner_should_defer_detach"));_.KH("REUSE_COMPONENTS",!0);_.KH("STAMPER_STABLE_LIST",!0);_.KH("SCHEDULED_LAZY_LIST",!0);_.KH("openPopupConfig",ev8);_.KH("useClickHandler",!0);_.V("kevlar_shell_cleanup")&&_.b$.addLowPriorityJob(xyL.bind(this,_.sF.caches));_.g5("IS_SHELL_LOAD")&&_.Gg({shellStartupDurationMs:Math.round((0,_.JY)()-_.jr())});aWy(this.networkStatusManager);_.V("kevlar_is_hiring")&&(console.log("%cYouTube.com is hiring!",Ek8(kVR)),
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!",Ek8(FbM)),console.log("%cVisit http://go/join-youtube-web to apply today.",Ek8(u3j)));_.C0j(I.resolve(_.sk),1E3)};
_.u.ready=function(){this.guide.addEventListener("transitionend",this.processDrawerIronSelect.bind(this));this.guideInnerContent.addEventListener("scroll",this.ytRendererBehavior.markDirty.bind(this));var I=P$L();I&&!_.V("external_fullscreen_killswitch")&&document.addEventListener(I,this.setFullscreen.bind(this));(I=window.matchMedia("(prefers-color-scheme: dark)"))&&I.addEventListener&&I.addEventListener("change",this.onDeviceThemeChanged.bind(this));this.onDeviceThemeChanged()};
_.u.attached=function(){var I=this;_.So().processSignal("ci");_.V("kevlar_passive_event_listeners")?this.hostElement.addEventListener("touchstart",this.boundOnTouchStart,_.yXb?{passive:!0}:void 0):this.hostElement.addEventListener("touchstart",this.boundOnTouchStart);_.wA(_.Vgz(),"SUCCESS");this.updateIconSet();_.ot(this.guideInnerContent,!1);_.oA().initVisibilityObserver();this.guideService.guideElement=this.guide;var C=document.createElement("ytd-miniplayer"),y=_.f(this.hostElement).querySelector("#content");
_.f(this.hostElement).insertBefore(C,y);_.So().processSignal("ma");_.N().resolve(_.WJ).init(C);_.g5("IS_SHELL_LOAD")&&(y=document.createElement("ytd-network-status-banner"),_.f(this.hostElement).insertBefore(y,C));_.V("kevlar_right_click_on_lockups")&&_.qu._onCaptureClick&&document.addEventListener("contextmenu",_.qu._onCaptureClick.bind(_.qu),!0);var k=function(){var F=_.q8("yt-page-navigation-progress");_.f(I.hostElement).appendChild(F)};
setTimeout(function(){_.So().parkOrScheduleJob(k,0,"eocs",16)},0);
_.V("service_worker_push_enabled")&&_.NU(_.b$,noy);_.mU(_.qU.getInstance(),this.dynamicActionMap,this.hostElement);_.k3(this.hostElement,"ytd-app-attached");_.So().processSignal("aa");SLY(this.hostElement);_.U8("gapi.load",_.zJI);this.networkStatusManager.listen("publicytnetworkstatus-online",this.onlineHandler.bind(this));this.networkStatusManager.listen("publicytnetworkstatus-offline",this.offlineHandler.bind(this));this.networkStatusManager.isNetworkAvailable()||this.offlineHandler();_.NU(_.b$,
function(){var F=document.createElement("ytd-video-preview");_.f(_.f(I.hostElement).querySelector("#video-preview")).appendChild(F)});
this.updateIsInlinePreviewDisabled();this.scheduleFrostedGlassInitialization();_.NU(_.b$,function(){tfK();I.registerViewTransitionTasks()});
if(_.Sf()&&this.isAppDarkTheme()!==_.G8())this.onDarkModeToggledAction();else C=_.fp()==="USER_INTERFACE_THEME_DARK",this.isAppDarkTheme()!==C&&(_.V("enable_dark_theme_only_on_shorts")?_.Yk(_.V("enable_dark_theme_only_on_shorts_control")?window.location.href:_.E3(window.location.href,{theme:"dark"})):_.SN(new _.ph("Theme was not applied",this.getThemeSettingsToLog()))),this.standalone||(npK=new wAK(this.hostElement)),I$H=new MaH(this.hostElement),alj=new OdS(this.hostElement),Am8=new KkP(this.hostElement)};
_.u.getThemeSettingsToLog=function(){var I=_.fp()==="USER_INTERFACE_THEME_DARK";I=_.Sf()?_.G8()?"os-dark":"os-light":I?"dark":"light";return{appTheme:this.isAppDarkTheme()?"dark":"light",prefsTheme:I,cookiesEnabled:_.PN()}};
_.u.detached=function(){_.yw(this.guideInnerContent);_.b$.cancelJob(sz);sz=0;_.b$.cancelJob(yi);yi=0;_.fWm(fvP);fvP.length=0;bwL=_.ymz=null;_.oA().dispose();_.V("kevlar_passive_event_listeners")&&this.hostElement.removeEventListener("touchstart",this.boundOnTouchStart);_.Zi(_.qU.getInstance(),npK.playlistHandlerActionMap,npK.JSC$28261_clientRoot);_.Zi(_.qU.getInstance(),I$H.downloadManagerActionMap,I$H.JSC$28566_clientRoot);_.Zi(_.qU.getInstance(),alj.feedbackCollectorActionMap,alj.JSC$28561_clientRoot);
for(var I=_.T(Am8.eventListeners),C=I.next();!C.done;C=I.next()){var y=_.T(C.value);C=y.next().value;y=y.next().value;y=_.T(y);for(var k=y.next();!k.done;k=y.next()){var F=_.T(k.value);k=F.next().value;F=F.next().value;C.removeEventListener(k,F)}}_.Zi(_.qU.getInstance(),Am8.autonavPauseActionMap,Am8.JSC$17618_clientRoot)};
_.u.updateIsInlinePreviewDisabled=function(){this.isInlinePreviewDisabled=_.pA().getFlag(186)};
_.u.computeIsInlinePreviewEnabled=function(I,C,y){return!y&&_.OL8({miniplayerIsActive:I,miniplayerPlaybackState:C})};
_.u.dispatchFrostedGlassMode=function(){this.ytdReduxBehavior.dispatch(_.yE({type:"SET_FROSTED_GLASS_MODE",payload:!_.V("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"}))};
_.u.computeIsFrostedGlassDisabled=function(I,C,y,k){return I||C||y||k&&_.V("web_frosted_glass_disable_watch")};
_.u.computeIsHomePage=function(I,C){if(!I||C==null||!C.endpoint)return!1;var y;return((y=_.l(C.endpoint,_.rU))==null?void 0:y.browseId)==="FEwhat_to_watch"};
_.u.updateIsChannelOrPlaylistPage=function(){if(_.V("web_frosted_glass")){var I,C,y=(C=(I=_.N().resolve(_.aU(_.BP)))==null?void 0:I.getCurrentPage())==null?void 0:C.pageSubtype;this.isChannelOrPlaylistPage=y?["channel","channels","playlist"].includes(y):!1}};
_.u.scheduleFrostedGlassInitialization=function(){var I=this;_.V("web_frosted_glass")&&_.So().parkOrScheduleJob(function(){I.isFrostedGlassInitialized=!0},0,_.Xr(["eocs",
"cr"]),300)};
_.u.isInlinePreviewEnabledChanged=function(){this.ytdReduxBehavior.dispatch(_.qQd(this.isInlinePreviewEnabled));this.ytdReduxBehavior.dispatch(_.yE({type:"SET_SHARED_INLINE_PREVIEW_ENABLED",payload:this.isInlinePreviewEnabled}));this.ytdReduxBehavior.dispatch(_.yE({type:"SET_SHARED_ANIMATED_THUMBNAIL_ENABLED",payload:!this.isInlinePreviewDisabled}))};
_.u.onlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bES(!0))};
_.u.onYtSignalActionRequestPersistentStorage=function(){if(!_.V("request_persistent_storage_killswitch")){var I=_.N().resolve(_.ouK);I.cachedPersistStatePromise||(I.cachedPersistStatePromise=hsH())}};
_.u.handleYtChannelCreationFormEndpoints=function(I){I&&this.ytComponentBehavior.resolveCommand(I)};
_.u.handleShowEngagementPanelEndpoint=function(I){I&&this.ytComponentBehavior.resolveCommand(I)};
_.u.offlineHandler=function(){this.ytdReduxBehavior.store.dispatch(bES(!1))};
_.u.initIconDefs=function(I,C,y){var k=document.createElement("iron-iconset-svg");k.name=I;I=document.createElementNS("http://www.w3.org/2000/svg","svg");k.appendChild(I);I.appendChild(C);if(y)for(var F in y)k[F]=y[F];document.body.appendChild(k);return k};
_.u.onWindowResized=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-tooltip-renderer"]);var I=_.Ozc.getInstance();I.documentWidth_=document.body.clientWidth;UHY(I)};
_.u.onWindowScrolled=function(){var I=_.N().resolve(_.BP).getCurrentPage();if(I!=null&&I.getScrollTop){var C=this.ytdReduxBehavior,y=C.dispatch;I=I.getScrollTop()<=0;y.call(C,_.yE({type:"SET_SCROLL_AT_TOP",payload:I}))}};
_.u.guideIsVisibleButNotPersistentSelectorChanged=function(){var I=_.N().resolve(_.BP).getCurrentPage();this.getCurrentPageScrollableElementType()==="HTML"&&this.guideIsVisibleButNotPersistent?(document.body.style.overflowY="scroll",this.guideScrollTop=I.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"),
I.setScrollTop(this.guideScrollTop));_.uW(this.hostElement,"yt-rich-grid-layout-refreshed")};
_.u.getCurrentPageScrollableElementType=function(){var I=_.N().resolve(_.BP).getCurrentPage();if(I&&I.getPageScrollingElement())return I.getPageScrollingElement().nodeName};
_.u.observeGuideVisibility=function(){var I=_.Ozc.getInstance(),C=this.miniGuideVisible;I.guidePersistentAndVisible_=this.guidePersistentAndVisible;I.miniGuideVisible_=C;UHY(I)};
_.u.handleEduDismissAction=function(I){I&&I.eduDismissAction&&(_.Fe(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]),_.hqq.getInstance(),_.hJ.set(I.eduDismissAction.key+"-dismissed",!0))};
_.u.handleEduImpressionAction=function(I){if(I&&I.eduImpressionAction){var C=_.hqq.getInstance();I=I.eduImpressionAction.key;C.JSC$10768_eduDisplayedThisLoad_[_.ETd[I].setKey||I]=!0;_.hJ.set(I+"-impression",parseInt(_.hJ.get(I+"-impression")||0,10)+1)}};
_.u.onYtSignalActionConfirmMentionsEdu=function(){_.Fe(this.hostElement,"yt-close-popup-action",["yt-bubble-hint-renderer"]);_.tJ.getInstance();_.Hk.set("edu-dismissed",!0)};
_.u.onYtSignalActionRecordMentionsEduImpression=function(){_.tJ.getInstance();var I=_.Hk.set,C=parseInt(_.Hk.get("edu-impressions"),10);I.call(_.Hk,"edu-impressions",(isFinite(C)?C:0)+1)};
_.u.onYtPageManagerAttached=function(I){var C;((C=_.m0(I))==null?void 0:C.id)==="page-manager"&&this.pageManagerAttachedPromise.resolve()};
_.u.onInvokeInstrumentManagerAction=function(I,C){DH8(C,I)};
_.u.updateIconSet=function(){var I=this.hostElement.querySelector("#masthead");if(I){var C=_.Oq(I),y=C.querySelector("g#yt-logo-updated");y&&(I=document.createElementNS("http://www.w3.org/2000/svg","defs"),I.appendChild(y.cloneNode(!0)),(C=C.querySelector("g#yt-logo-red-updated"))&&I.appendChild(C.cloneNode(!0)),this.initIconDefs("yt-logos-ext",I))}};
_.u.updateMastheadData=function(){var I=this,C,y,k,F;return _.e(function(z){if(z.nextAddress==1){C=I.data;y=I.hostElement.querySelector("#masthead");if(!y)return z.return();_.hn(I,function(){y.data=I.topbarData});
return I.get("response.topbar",C)&&I.get("response.topbar.responseContext.maxAgeSeconds",C)!==0?(k=_.N().resolve(_.vG))?_.n(z,k(),7):I.ephemeralResponseStore?_.n(z,I.ephemeralResponseStore.put("service:topbar:fallback",new _.as({innertubeResponse:I.get("response.topbar",C)})),0):z.jumpTo(0):z.jumpTo(0)}return(F=z.yieldResult)?_.n(z,F.put("service:topbar:fallback",new _.as({innertubeResponse:I.get("response.topbar",C)})),0):z.jumpTo(0)})};
_.u.computeTopbarData=function(I){if(!I)return null;var C;return this.isShortsPage&&this.topbarData&&!_.l((C=I.response)==null?void 0:C.topbar,AwB)?this.topbarData:I.response&&"topbar"in I.response?_.l(I.response.topbar,AwB)||null:null};
_.u.onSetTheaterModeEnabled=function(I,C){this.isTheaterModeSession=C.enabled;this.setTheaterModeStyles(C.enabled)};
_.u.setTheaterModeStyles=function(){this.setMastheadTheme();this.iMaxTheaterMode&&this.updateScrollAndMasthead(!(!this.isWatchPage||!this.fullscreen),!(!this.isMiniAppPage||!this.fullscreen),!(!this.isShortsPage||!this.fullscreen),this.isWatchPage&&this.isTheaterMode())};
_.u.onDarkModeToggledAction=function(){var I=_.Tl(window.location.href);if(!_.iNK(I)){(I=!!_.B5(window.location.href).themeRefresh)&&_.SN(new _.ph("themeRefresh param is in url.",this.getThemeSettingsToLog()));if(!I){avR();I={themeRefresh:1};var C=_.N().resolve(_.BP);if(C.isOnWatch()){var y,k;C=((y=C.getPlayerFromWatch())==null?void 0:(k=y.getPlayer())==null?void 0:k.getCurrentTime())||0;C>=1&&(I.time_continue=Math.floor(C))}_.PN()||_.fp()!=="USER_INTERFACE_THEME_DARK"||(I.theme="dark");_.Yk(_.E3(window.location.href,
I))}_.V("web_appshell_refresh_trigger")&&_.sF.caches&&this.refreshAppShellResponse();y=_.ZC(window.location.href);_.CD(_.N().resolve(_.sQ),_.MJ(y,"theme"))}};
_.u.onYtSignalActionToggleRestrictedModeOnAction=function(){this.setRestrictedMode(!0)};
_.u.onYtSignalActionToggleRestrictedModeOffAction=function(){this.setRestrictedMode(!1)};
_.u.onPlayerFullscreen=function(I){_.CA();this.playerFullscreen=I};
_.u.setRestrictedMode=function(I){var C=_.pA();_.Qw(0,58,I);C.save();_.N().resolve(_.st).reload()};
_.u.onPageChanged=function(I){I.detail.newPageType==="ytd-watch-flexy"||I.detail.newPageType==="ytd-watch-fixie"||I.detail.newPageType==="ytd-watch-grid"?this.ytdReduxBehavior.dispatch(_.bz("WEB_PAGE_TYPE_WATCH")):I.detail.newPageType==="ytd-shorts"?this.ytdReduxBehavior.dispatch(_.bz("WEB_PAGE_TYPE_SHORTS")):I.detail.newPageType==="ytd-browse"&&I.detail.newPageSubtype==="mini_app"?this.ytdReduxBehavior.dispatch(_.bz("WEB_PAGE_TYPE_MINI_APP")):_.V("web_frosted_glass")&&I.detail.newPageType==="ytd-browse"?
this.ytdReduxBehavior.dispatch(_.bz("WEB_PAGE_TYPE_BROWSE")):this.ytdReduxBehavior.dispatch(_.bz("WEB_PAGE_TYPE_UNKNOWN"));I.detail.oldPageType&&this.setMastheadTheme();this.isFullWindowSession&&this.setFullscreen();this.updateIsInlinePreviewDisabled()};
_.u.onPageDataUpdated=function(){this.updateIsChannelOrPlaylistPage()};
_.u.onGuideToggleTap=function(){_.k3(this.hostElement,"yt-guide-toggle")};
_.u.onGuideToggleHover=function(){_.k3(this.hostElement,"yt-guide-hover")};
_.u.isTheaterMode=function(){return this.isWatchPage&&this.isTheaterModeSession};
_.u.isAppDarkTheme=function(){return document.documentElement.hasAttribute("dark")};
_.u.setMastheadTheme=function(){var I=_.Oq(this.hostElement).querySelector("#masthead");I&&(I.dark=I.isDarkThemeForced||this.isTheaterMode()||this.isAppDarkTheme(),I.isDarkThemeForced=!1)};
_.u.onRequestPanelModeChange=function(I,C){this.hideHeaderShadow=C.mode!=="seamed"};
_.u.onGuideOpenButtonHover=function(){this.renderGuide=!0};
_.u.onDrawerIronSelect=function(I){_.m0(I).id==="guide"&&this.processDrawerIronSelect()};
_.u.processDrawerIronSelect=function(){this.ytRendererBehavior.markDirty();var I="closed";this.guide.opened&&(this.renderGuide=!0,this.guide.persistent||(I="opened"));_.k3(this.hostElement,"yt-autonav-pause-guide-"+I)};
_.u.onAddElementToApp=function(I){_.f(this.hostElement).appendChild(I.detail)};
_.u.onThrottledScroll=function(){var I=_.N().resolve(_.BP).getCurrentPage();I&&(this.scrollAtTop=I.getScrollTop()<=0);this.mastheadHidden=this.canHideMasthead()};
_.u.canHideMasthead=function(){return this.scrollAtTop&&!!this.fullscreen};
_.u.setFullscreen=function(){if(_.V("external_fullscreen")||!this.isWatchPage){var I=_.V("kevlar_fullerscreen_root_only_killswitch")?!!_.CA():!!_.CA()&&_.CA()===document.documentElement;I=(this.isWatchPage||_.V("web_fullscreen_shorts")&&this.isShortsPage||this.isMiniAppPage)&&(I||this.isFullWindowSession);this.fullscreen!==I&&((this.fullscreen=I)&&_.uW(this.hostElement,"yt-close-all-popups-action"),this.isShortsPage&&(_.Hg().dispatch(_.Y8K(this.fullscreen)),this.setFullscreenLoggingForShorts(this.fullscreen)),
this.updateScrollAndMasthead(this.isWatchPage&&this.fullscreen,this.isMiniAppPage&&this.fullscreen,this.isShortsPage&&this.fullscreen,this.isWatchPage&&this.isTheaterMode()),_.Fe(this.hostElement,"yt-fullscreen-change-action",[this.fullscreen]))}};
_.u.setFullscreenLoggingForShorts=function(I){var C,y,k;return _.e(function(F){if(F.nextAddress==1)return _.n(F,(C=_.hU())==null?void 0:C.getPlayerPromise(),2);y=F.yieldResult;(k=y)==null||k.setAppFullscreen(I);_.oI(F)})};
_.u.updateMastheadCssHeight=function(){var I=this.mastheadHeight;this.fullscreen&&(I=0);_.CK(this.hostElement,{"--ytd-masthead-height":I+"px","--ytd-masthead-height-absolute":this.mastheadHeight+"px"})};
_.u.updateNetworkStatusBannerDisplayStatus=function(){var I="unset";this.fullscreen&&(I="none");_.CK(this.hostElement,{"--ytd-network-status-banner-display":I})};
_.u.updateNetworkStatusBannerCssHeight=function(){var I="unset";this.fullscreen&&(I="0px");_.CK(this.hostElement,{"--ytd-network-status-banner-max-height":I})};
_.u.updateScrollAndMasthead=function(I,C,y,k){this.iMaxTheaterMode||(k=!1);var F=_.N().resolve(_.BP).getCurrentPage();I||C||k?(document.body.classList.add("no-scroll"),F.pageScrollElement=this.hostElement,this.scrolling=!0,this.hostElement.addEventListener("scroll",_.sb(this,this.onScroll)),F.setScrollTop(0),_.CK(this.hostElement,{"--ytd-app-fullerscreen-scrollbar-width":_.Nw()+"px"})):y?_.k3(this.hostElement,"yt-guide-close"):(this.isShortsPage&&_.k3(this.hostElement,"yt-guide-show"),document.body.classList.remove("no-scroll"),
F.pageScrollElement=null,this.scrolling=!1,this.hostElement.removeEventListener("scroll",_.sb(this,this.onScroll)));this.mastheadHidden=I||C||y;this.updateMastheadCssHeight();_.V("network_status_banner_display_none")?this.updateNetworkStatusBannerDisplayStatus():this.updateNetworkStatusBannerCssHeight()};
_.u.onScroll=function(){this.ytRendererBehavior.markDirty();this.scrollThrottle.fire()};
_.u.onYtMastheadHeightChanged=function(I,C){this.mastheadHeight=C.height;this.updateMastheadCssHeight()};
_.u.onYtNavigateAction=function(I){I=this.get("navigateAction.endpoint",I);_.k3(this.hostElement,"yt-navigate",{endpoint:I})};
_.u.onYtRegisterCreateFamilyDialog=function(){if(!this.hasCreateFamilyDialog){var I=document.createElement("yt-create-family-dialog");_.f(this.hostElement).appendChild(I);this.hasCreateFamilyDialog=!0}};
_.u.onSetPushNotificationsEnabledCommand=function(I){var C=this,y=_.l(I,Kqy);y&&typeof y.enabled==="boolean"&&(Notification.permission!=="granted"?c3R().then(function(){Notification.permission==="granted"?(UyM(!y.enabled).then(JzL),y.successAction&&_.Tg(C.hostElement,[y.successAction])):y.failureAction&&_.Tg(C.hostElement,[y.failureAction])}):(UyM(!y.enabled).then(JzL),y.successAction&&_.Tg(this.hostElement,[y.successAction])))};
_.u.onYtSignalActionEnableChromeNotifications=function(){ejH(!0)};
_.u.onOpenHotkeyDialog=function(){this.topbarData.hotkeyDialog&&this.ytOpenPopupBehavior.openPopup({openPopupAction:{popupType:"DIALOG",popup:{hotkeyDialogRenderer:_.l(this.topbarData.hotkeyDialog,Wqj)}}})};
_.u.onYtSignalActionShowKeyboardShortcutDialog=function(){_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);this.onOpenHotkeyDialog()};
_.u.onYtEndpointChangeHandler=function(I,C){var y=_.Fv(_.C0);y.pendingPrefetchJob_&&(C=!(!C||C.autonav!="1"),y.pendingPrefetchJob_.resolve(I&&_.kdI(I)?_.FkW(I,C):""),y.pendingPrefetchJob_=null);_.Fe(this.hostElement,"yt-pause-active-page-context");_.Fe(this.hostElement,"ytd-log-youthere-nav");_.Fe(this.hostElement,"yt-prepare-page-dispose")};
_.u.handleClearUrlParamCommand=function(I){_.FW.instance.resolveCommand(I);_.V("web_clear_url_param_command_resolver_ks")||(I=new _.ph("ClearUrlParamCommand handled in YtdApp"),_.GB(I))};
_.u.handleCommandWithCommandHandler=function(I,C){_.FW.instance.resolveCommand(I,{form:{element:C}})};
_.u.onYtTimedCommand=function(I){var C=this;I=_.l(I,VcS);var y=I.command;y&&_.jj(_.b$,function(){var k=_.l(y,_.XVY);k?(_.FW.instance.resolveCommand(y),C.maybeLogGetAnswerRequestTick(k)):_.cQ(C.hostElement,[y],C.hostElement)},I.timeoutMs||0)};
_.u.maybeLogGetAnswerRequestTick=function(I){I&&I.isFirstRequest&&(_.fA("search_overview_answer"),_.Sr("so_rq",void 0,"search_overview_answer"))};
_.u.onYtSignalActionSkipNavigation=function(){var I=_.N().resolve(_.BP).getCurrentPage();_.HF(I)};
_.u.onYtSignalActionCopyDebugData=function(){liR()};
_.u.handleEntityUpdateCommand=function(I){_.nx(_.l(I,_.G9w).entityBatchUpdate,this.ytdReduxBehavior.store)};
_.u.logFlowLoggingEventCommand=function(I){if(I=_.l(I,_.MnO))if(I.eventType==="FLOW_LOGGING_EVENT_CLASSIFICATION_START_EVENT"){var C=I.flowEventNamespace,y=I.flowEventType,k=I.flowType;k&&C&&y&&_.O0X(_.z8(C,y,I.flowEventMetadata),k)}else{C=_.cD();y=I.flowEventNamespace;k=I.flowEventType;var F=I.flowType;F&&y&&k&&_.T8(C,_.z8(y,k,I.flowEventMetadata),F,I.flowNonce)}};
_.u.onGuideTouchStart=function(){this.guideScrolledByTouch=!0};
_.u.onGuideTouchEnd=function(){this.guideScrolledByTouch=!1};
_.u.onTouchStart=function(){var I=_.yL();_.Si()&&_.Sz(I.JSC$10920_screenManager,{visualElement:I.ve})};
_.u.handleWebNativeShareCommand=function(I){_.FW.instance.resolveCommand(I);_.V("web_native_share_command_resolver_ks")||(I=new _.ph("WebNativeShareCommand handled in YtdApp"),_.GB(I))};
_.u.handlePersistSubscriptionsDisplayPreferencesCommand=function(I){_.FW.instance.resolveCommand(I);_.V("web_persist_subscriptions_display_preferences_command_resolver_ks")||(I=new _.ph("PersistSubscriptionsDisplayPreferencesCommand handled in YtdApp"),_.GB(I))};
_.u.handleSelectLanguageCommand=function(I){if(I=_.l(I,G_y).hl){var C=_.pA();C.set("hl",I);C.save();_.N().resolve(_.st).reload()}};
_.u.handleConfirmDialogEndpoint=function(I){(I=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&this.ytOpenPopupBehavior.openPopup(I)};
_.u.handleOpenPopupNavigationEndpoints=function(I,C){_.V("web_button_rework")&&(I=this.ytOpenPopupBehavior.getNavigationEndpointPopupAction(I))&&this.ytOpenPopupBehavior.openPopup(I,C)};
_.u.handleSaveCommandToSessionStorage=function(I){if(I=_.l(I,_.bFd)){var C=I.key;C&&I.command&&window.sessionStorage.setItem(C,JSON.stringify(I.command))}};
_.u.hardReloadWithShellPurge=function(I){I=I===void 0?{}:I;I=Object.assign({},I,{purge_shell:1});I=_.jLd(I);_.Yk(I)};
_.u.refreshAppShellResponse=function(){navigator.serviceWorker&&navigator.serviceWorker.ready.then(function(I){I&&I.active&&I.active.postMessage({type:"refresh_shell"})}).catch(function(I){I.name!=="SecurityError"&&_.GB(I)})};
_.u.onDeviceThemeChanged=function(){var I=_.G8();_.Qw(_.pA(),185,I);_.pA().save()};
_.u.handleYtRegisterPromoCommand=function(I){if(_.l(I,SJR)){var C=_.N().resolve(_.BP).getCurrentPage()||this.hostElement;Z0H().registerPromoCommand(_.l(I,SJR),C)}};
_.u.onYtNavigateHomeAction=function(){if(!_.V("kevlar_miniplayer_navigate_home_from_app_killswitch")){var I,C,y,k,F=(k=(I=this.topbarData)==null?void 0:(C=I.logo)==null?void 0:(y=C.topbarLogoRenderer)==null?void 0:y.endpoint)!=null?k:_.eo;this.ytComponentBehavior.resolveCommand(F)}};
_.u.onYtLocationCollectionCommand=function(I){UcP(_.l(I,htP))};
_.u.onYtGetLocationCommand=function(I){GgY(_.l(I,ErP),this)};
_.u.updateRenderGuideFromBinding=function(I){this.renderGuide=I.detail.value};
_.u.updateGuidePersistentAndVisibleFromBinding=function(I){this.guidePersistentAndVisible=I.detail.value};
_.u.updateMiniGuideVisibleFromBinding=function(I){this.miniGuideVisible=I.detail.value};
_.u.onThemeSelected=function(I,C){var y=_.pA(),k=I||C?I:_.G8(),F=(k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_DARK"||!k&&this.getCurrentTheme()!=="USER_INTERFACE_THEME_LIGHT")&&!_.iNK(_.Tl(window.location.href));_.Qw(0,165,I);_.Qw(0,174,C);y.save();F&&_.Fe(this.hostElement,"yt-dark-mode-toggled-action",[k]);_.Fe(this.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"])};
_.u.getCurrentTheme=function(){return _.Sf()?this.isAppDarkTheme()?"USER_INTERFACE_THEME_DARK":"USER_INTERFACE_THEME_LIGHT":_.fp()};
_.u.handleSignalActionToggleDarkThemeOn=function(){this.onThemeSelected(!0,!1)};
_.u.handleSignalActionToggleDarkThemeOff=function(){this.onThemeSelected(!1,!0)};
_.u.handleSignalActionToggleDarkThemeDevice=function(){this.onThemeSelected(!1,!1)};
_.u.handleShowConsentPrimitive=function(I){var C=this,y,k;return _.e(function(F){if(F.nextAddress==1){try{y=(k=_.hU())==null?void 0:k.getPlayerPromise()}catch(z){}return _.n(F,elY(I,y),2)}_.Fe(C.hostElement,"yt-close-popup-action",["ytd-multi-page-menu-renderer"]);_.oI(F)})};
_.u.handleSelectActiveIdentityEndpointInternal=function(I){_.R_();I=_.l(I,_.Efw);if(I!=null&&I.supportedTokens){I=_.T(I.supportedTokens);for(var C=I.next();!C.done;C=I.next())C=C.value,C.accountSigninToken&&_.Yk(C.accountSigninToken.signinUrl,void 0,void 0,window.top)}};
_.u.handleUpdatePermissionRoleCommand=function(I){if(I=_.l(I,_.Z6d)){var C;this.hasDelegation=!((C=_.l(I.renderer,_.m7w))==null||!C.status)}};
_.u.registerViewTransitionTasks=function(){var I=this,C=_.N().resolve(_.aU(_.cTK));if(C){var y,k=(y=this.guide)==null?void 0:y.querySelector("#scrim"),F,z=(F=this.guide)==null?void 0:F.querySelector("#contentContainer");k&&z&&(y={beforeTransition:function(){var c;(c=I.guide)!=null&&c.persistent||(k.style.viewTransitionName="app-drawer-scrim",z.style.viewTransitionName="app-drawer-container")},
afterTransition:function(){var c;(c=I.guide)!=null&&c.persistent||(k.style.viewTransitionName="",z.style.viewTransitionName="")}},uS(C,"slide",y),uS(C,"zoom",y))}};
_.H1.Object.defineProperties(vc.prototype,{csiServiceName:{configurable:!0,enumerable:!0,get:function(){return"youtube"}},
applyFrostedGlassToChipBar:{configurable:!0,enumerable:!0,get:function(){return _.V("web_frosted_glass")&&this.isHomePage&&this.chipBarIsSticky}}});
_.H1.Object.defineProperties(vc,{template:{configurable:!0,enumerable:!0,get:function(){if(E8M===void 0){var I=document.createElement("template");_.Y(I,'\x3c!--css-build:shady--\x3e\x3c!--css_build_scope:ytd-app--\x3e\x3c!--css_build_styles:video.youtube.src.web.polymer.shared.ui.styles.yt_base_styles.yt.base.styles.css.js--\x3e<yt-guide-manager id="guide-service" disabled="[[standalone]]" guide-persistent-and-visible="[[guidePersistentAndVisible]]" mini-guide-visible="[[miniGuideVisible]]" render-guide="[[renderGuide]]" on-guide-persistent-and-visible-changed="updateGuidePersistentAndVisibleFromBinding" on-mini-guide-visible-changed="updateMiniGuideVisibleFromBinding" on-render-guide-changed="updateRenderGuideFromBinding" class="style-scope ytd-app">\n</yt-guide-manager>\n<yt-mdx-manager class="style-scope ytd-app"></yt-mdx-manager>\n<yt-playlist-manager class="style-scope ytd-app"></yt-playlist-manager>\n<yt-hotkey-manager class="style-scope ytd-app"></yt-hotkey-manager>\n<div id="content" class="style-scope ytd-app">\n  <div id="frosted-glass" class$="[[frostedGlassMode]] style-scope ytd-app"></div>\n  <div id="masthead-container" class="style-scope ytd-app">\n    <slot name="masthead" class="style-scope ytd-app"></slot>\n  </div>\n  <tp-yt-app-drawer id="guide" align="start" role="navigation" class="style-scope ytd-app">\n    <div id="guide-wrapper" class="style-scope ytd-app">\n      <div id="guide-spacer" class="style-scope ytd-app"></div>\n      <div id="guide-content" class="style-scope ytd-app">\n        <div id="header" hidden="[[guidePersistentAndVisible]]" class="style-scope ytd-app">\n          \n          <yt-icon-button id="guide-button" aria-label$="[[menuStrings.GUIDE_ALT_LABEL]]" pressed="true" toggleable="true" on-mouseenter="onGuideToggleHover" on-tap="onGuideToggleTap" class="style-scope ytd-app">\n            <yt-icon id="guide-icon" icon="yt-icons:menu" class="style-scope ytd-app"></yt-icon>\n          </yt-icon-button>\n          <ytd-topbar-logo-renderer country-code="[[topbarData.countryCode]]" data="[[topbarData.logo.topbarLogoRenderer]]" disable-upgrade$="[[guideIsVisibleButNotPersistent]]" class="style-scope ytd-app">\n          </ytd-topbar-logo-renderer>\n        </div>\n        <div id="guide-inner-content" on-touchstart="onGuideTouchStart" on-touchend="onGuideTouchEnd" class="style-scope ytd-app">\n          <template is="dom-if" if="[[renderGuide]]" class="style-scope ytd-app">\n            <ytd-guide-renderer id="guide-renderer" class="style-scope ytd-app">\n              <slot name="guide-links-primary" slot="guide-links-primary" class="style-scope ytd-app"></slot>\n              <slot name="guide-links-secondary" slot="guide-links-secondary" class="style-scope ytd-app"></slot>\n              <slot name="vat-notice" slot="vat-notice" class="style-scope ytd-app"></slot>\n              <slot name="copyright" slot="copyright" class="style-scope ytd-app"></slot>\n            </ytd-guide-renderer>\n          </template>\n        </div>\n      </div>\n    </div>\n  </tp-yt-app-drawer>\n  <ytd-mini-guide-renderer disable-upgrade$="[[!miniGuideVisible]]" hidden="[[!miniGuideVisible]]" visible="[[miniGuideVisible]]" class="style-scope ytd-app">\n  </ytd-mini-guide-renderer>\n  <ytd-page-manager id="page-manager" class="style-scope ytd-app"></ytd-page-manager>\n</div>\n<ytd-permission-role-bottom-bar-renderer class="style-scope ytd-app"></ytd-permission-role-bottom-bar-renderer>\n<ytd-popup-container class="style-scope ytd-app"></ytd-popup-container>\n<ytd-third-party-manager class="style-scope ytd-app"></ytd-third-party-manager>\n<div id="video-preview" class="style-scope ytd-app"></div>\n<template is="dom-if" if="[[ephemeralActionsEnabled]]" class="style-scope ytd-app">\n  <yt-ephemeral-actions class="style-scope ytd-app"></yt-ephemeral-actions>\n</template>\n');
I.content.insertBefore(_.O().content.cloneNode(!0),I.content.firstChild);E8M=I}I=E8M;return I}}});
vc.prototype.onOpenHotkeyDialog=vc.prototype.onOpenHotkeyDialog;vc.prototype.onYtMastheadHeightChanged=vc.prototype.onYtMastheadHeightChanged;vc.prototype.setFullscreen=vc.prototype.setFullscreen;vc.prototype.onAddElementToApp=vc.prototype.onAddElementToApp;vc.prototype.onDrawerIronSelect=vc.prototype.onDrawerIronSelect;vc.prototype.onGuideOpenButtonHover=vc.prototype.onGuideOpenButtonHover;vc.prototype.onRequestPanelModeChange=vc.prototype.onRequestPanelModeChange;
vc.prototype.onPageDataUpdated=vc.prototype.onPageDataUpdated;vc.prototype.onPageChanged=vc.prototype.onPageChanged;vc.prototype.onSetTheaterModeEnabled=vc.prototype.onSetTheaterModeEnabled;vc.prototype.updateMastheadData=vc.prototype.updateMastheadData;vc.prototype.onYtPageManagerAttached=vc.prototype.onYtPageManagerAttached;vc.prototype.observeGuideVisibility=vc.prototype.observeGuideVisibility;vc.prototype.guideIsVisibleButNotPersistentSelectorChanged=vc.prototype.guideIsVisibleButNotPersistentSelectorChanged;
vc.prototype.isInlinePreviewEnabledChanged=vc.prototype.isInlinePreviewEnabledChanged;vc.prototype.dispatchFrostedGlassMode=vc.prototype.dispatchFrostedGlassMode;_.E([_.g(_.lZ),_.h("design:type",Object)],vc.prototype,"ytdReduxBehavior",void 0);_.E([_.g(_.y_.YtEventForwardingBehavior),_.h("design:type",Object)],vc.prototype,"ytEventForwardingBehavior",void 0);_.E([_.g(_.M8.YtOpenPopupBehavior),_.h("design:type",Object)],vc.prototype,"ytOpenPopupBehavior",void 0);
_.E([_.g(_.Et.YtActionHandlerBehavior),_.h("design:type",Object)],vc.prototype,"ytActionHandlerBehavior",void 0);_.E([_.g({_noAccessors:!0,actionRouterIsRoot:!1,created:function(){this.actionRouter_=_.qU.getInstance();this.actionRouterNode=this.actionRouterIsRoot?document.body:this;this.onYtActionBoundListener_=this.onYtAction_.bind(this);this.actionRouterListenersRegistered_=!1;_.V("action_router_attached_only_killswitch")&&this.registerActionRouterEventListeners_()},
attached:function(){this.registerActionRouterEventListeners_()},
detached:function(){this.unregisterActionRouterEventListeners_()},
registerActionRouterEventListeners_:function(){if(!this.actionRouterListenersRegistered_){this.actionRouterListenersRegistered_=!0;var I;((I=this.actionRouterNode.hostElement)!=null?I:this.actionRouterNode).addEventListener("yt-action",this.onYtActionBoundListener_)}},
unregisterActionRouterEventListeners_:function(){this.actionRouterListenersRegistered_=!1;var I;((I=this.actionRouterNode.hostElement)!=null?I:this.actionRouterNode).removeEventListener("yt-action",this.onYtActionBoundListener_)},
onYtAction_:function(I){this.actionRouter_.handleAction(I.detail)}}),
_.h("design:type",Object)],vc.prototype,"ytActionRouterBehavior",void 0);_.E([_.g(O0P.YtdAppBehavior),_.h("design:type",Object)],vc.prototype,"ytdAppBehavior",void 0);_.E([_.g(_.IW.YtEndpointBehavior),_.h("design:type",Object)],vc.prototype,"ytEndpointBehavior",void 0);_.E([_.g(JvR.YtEndpointHandlerWithYpcBehavior),_.h("design:type",Object)],vc.prototype,"ytEndpointHandlerWithYpcBehavior",void 0);
_.E([_.g(hGH.YtLogYpcFlowCommandsBehavior),_.h("design:type",Object)],vc.prototype,"ytLogYpcFlowCommandsBehavior",void 0);_.E([_.g(_.M.YtRendererBehavior),_.h("design:type",Object)],vc.prototype,"ytRendererBehavior",void 0);_.E([_.g(_.$y.YtComponentBehavior),_.h("design:type",Object)],vc.prototype,"ytComponentBehavior",void 0);_.E([_.d({selector:_.fRK}),_.h("design:type",Object)],vc.prototype,"tabGesturesIsActive",void 0);_.E([_.d(),_.h("design:type",Boolean)],vc.prototype,"renderGuide",void 0);
_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"guidePersistentAndVisible",void 0);_.E([_.d({selector:_.GAL}),_.h("design:type",Boolean)],vc.prototype,"guideIsVisibleButNotPersistent",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"standalone",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"miniGuideVisible",void 0);
_.E([_.d({selector:_.w3z}),_.h("design:type",Number)],vc.prototype,"miniplayerPlaybackState",void 0);_.E([_.d({selector:_.GL,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"miniplayerIsActive",void 0);_.E([_.d({computed:"computeIsInlinePreviewEnabled(miniplayerIsActive, miniplayerPlaybackState, isInlinePreviewDisabled)"}),_.h("design:type",Boolean)],vc.prototype,"isInlinePreviewEnabled",void 0);_.E([_.d(),_.h("design:type",Boolean)],vc.prototype,"isInlinePreviewDisabled",void 0);
_.E([_.d({reflectToAttribute:!0,value:function(){return _.g5("START_IN_FULL_WINDOW_MODE")}}),
_.h("design:type",Boolean)],vc.prototype,"mastheadHidden",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"playerFullscreen",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"deprecateFullerscreenUi",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"fullscreen",void 0);_.E([_.d({value:!1,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"hideHeaderShadow",void 0);
_.E([_.d({value:{GUIDE_ALT_LABEL:_.PQ("GUIDE_ALT_LABEL",void 0,"Guide")}}),_.h("design:type",Object)],vc.prototype,"menuStrings",void 0);_.E([_.d({computed:"computeTopbarData(data)"}),_.h("design:type",Object)],vc.prototype,"topbarData",void 0);_.E([_.d({selector:_.fx}),_.h("design:type",Boolean)],vc.prototype,"isWatchPage",void 0);_.E([_.d({selector:_.eSW,reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"isShortsPage",void 0);
_.E([_.d({selector:function(I){return I.ui.currentPageType==="WEB_PAGE_TYPE_MINI_APP"}}),
_.h("design:type",Boolean)],vc.prototype,"isMiniAppPage",void 0);_.E([_.d({selector:function(I){return I.ui.currentPageType==="WEB_PAGE_TYPE_BROWSE"}}),
_.h("design:type",Boolean)],vc.prototype,"isBrowsePage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Boolean)],vc.prototype,"scrolling",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"hasDelegation",void 0);_.E([_.d({reflectToAttribute:!0,value:!1}),_.h("design:type",Boolean)],vc.prototype,"guideScrolledByTouch",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"darkerDarkTheme",void 0);
_.E([_.d(),_.h("design:type",Object)],vc.prototype,"isFrostedGlassInitialized",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"frostedGlassExp",void 0);_.E([_.d({selector:function(I){return I.ui.chipBarIsSticky}}),
_.h("design:type",Boolean)],vc.prototype,"chipBarIsSticky",void 0);_.E([_.d({computed:"computeIsHomePage(isBrowsePage, data)"}),_.h("design:type",Boolean)],vc.prototype,"isHomePage",void 0);_.E([_.d({reflectToAttribute:!0}),_.h("design:type",Object)],vc.prototype,"mastheadHiddenFocusWithinKillswitch",void 0);_.E([_.d(),_.h("design:type",Object)],vc.prototype,"ephemeralActionsEnabled",void 0);_.E([_.Zc("guide"),_.h("design:type",Object)],vc.prototype,"guide",void 0);
_.E([_.Zc("guide-service"),_.h("design:type",Wk8)],vc.prototype,"guideService",void 0);_.E([_.Zc("guide-inner-content"),_.h("design:type",HTMLDivElement)],vc.prototype,"guideInnerContent",void 0);_.E([_.d({selector:_.Pvm}),_.h("design:type",String)],vc.prototype,"frostedGlassMode",void 0);
_.E([_.FI("isFrostedGlassDisabled","isFrostedGlassInitialized","applyFrostedGlassToChipBar"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"dispatchFrostedGlassMode",null);_.E([_.d({computed:"computeIsFrostedGlassDisabled(isShortsPage, isMiniAppPage, isChannelOrPlaylistPage, isWatchPage)"}),_.h("design:type",Object)],vc.prototype,"isFrostedGlassDisabled",void 0);
_.E([_.v("isHomePage","chipBarIsSticky"),_.h("design:type",Boolean),_.h("design:paramtypes",[])],vc.prototype,"applyFrostedGlassToChipBar",null);_.E([_.d(),_.h("design:type",Object)],vc.prototype,"isChannelOrPlaylistPage",void 0);_.E([_.rW("isInlinePreviewEnabled"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"isInlinePreviewEnabledChanged",null);
_.E([_.FI("guideIsVisibleButNotPersistent"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"guideIsVisibleButNotPersistentSelectorChanged",null);_.E([_.FI("guidePersistentAndVisible","miniGuideVisible"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"observeGuideVisibility",null);
_.E([_.km("attached"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],vc.prototype,"onYtPageManagerAttached",null);_.E([_.FI("data"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype",Promise)],vc.prototype,"updateMastheadData",null);_.E([_.km("yt-set-theater-mode-enabled"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],vc.prototype,"onSetTheaterModeEnabled",null);
_.E([_.km("yt-page-type-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vc.prototype,"onPageChanged",null);_.E([_.km("yt-page-data-updated"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onPageDataUpdated",null);_.E([_.km("yt-request-panel-mode-change"),_.h("design:type",Function),_.h("design:paramtypes",[Event,Object]),_.h("design:returntype")],vc.prototype,"onRequestPanelModeChange",null);
_.E([_.km("yt-guide-hover"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onGuideOpenButtonHover",null);_.E([_.km("app-drawer-transitioned"),_.h("design:type",Function),_.h("design:paramtypes",[Event]),_.h("design:returntype")],vc.prototype,"onDrawerIronSelect",null);_.E([_.km("yt-add-element-to-app"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent]),_.h("design:returntype")],vc.prototype,"onAddElementToApp",null);
_.E([_.km("yt-set-fullerscreen-styles"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"setFullscreen",null);_.E([_.km("yt-masthead-height-changed"),_.h("design:type",Function),_.h("design:paramtypes",[CustomEvent,Object]),_.h("design:returntype")],vc.prototype,"onYtMastheadHeightChanged",null);_.E([_.km("yt-open-hotkey-dialog"),_.h("design:type",Function),_.h("design:paramtypes",[]),_.h("design:returntype")],vc.prototype,"onOpenHotkeyDialog",null);
vc=_.E([_.m({is:"ytd-app"})],vc);_.So().processSignal("eor");
_.R1();
}catch(e){_._DumpException(e)}
}).call(this,this.default_kevlar_base);
// Google Inc.
